box.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. "use strict";
  2. var __extends = (this && this.__extends) || (function () {
  3. var extendStatics = Object.setPrototypeOf ||
  4. ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
  5. function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
  6. return function (d, b) {
  7. extendStatics(d, b);
  8. function __() { this.constructor = d; }
  9. d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
  10. };
  11. })();
  12. /*!
  13. * devextreme-angular
  14. * Version: 19.1.16
  15. * Build date: Tue Oct 18 2022
  16. *
  17. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  18. *
  19. * This software may be modified and distributed under the terms
  20. * of the MIT license. See the LICENSE file in the root of the project for details.
  21. *
  22. * https://github.com/DevExpress/devextreme-angular
  23. */
  24. Object.defineProperty(exports, "__esModule", { value: true });
  25. var core_1 = require("@angular/core");
  26. var nested_option_1 = require("../../core/nested-option");
  27. var box_options_1 = require("./base/box-options");
  28. var item_dxi_1 = require("./item-dxi");
  29. var DxoBoxComponent = (function (_super) {
  30. __extends(DxoBoxComponent, _super);
  31. function DxoBoxComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. _this._createEventEmitters([
  34. { emit: 'itemsChange' }
  35. ]);
  36. parentOptionHost.setNestedOption(_this);
  37. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  38. return _this;
  39. }
  40. Object.defineProperty(DxoBoxComponent.prototype, "_optionPath", {
  41. get: function () {
  42. return 'box';
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxoBoxComponent.prototype, "itemsChildren", {
  48. get: function () {
  49. return this._getOption('items');
  50. },
  51. set: function (value) {
  52. this.setChildren('items', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. DxoBoxComponent.decorators = [
  58. { type: core_1.Component, args: [{
  59. selector: 'dxo-box',
  60. template: '',
  61. styles: [''],
  62. providers: [nested_option_1.NestedOptionHost],
  63. inputs: [
  64. 'align',
  65. 'crossAlign',
  66. 'dataSource',
  67. 'direction',
  68. 'disabled',
  69. 'elementAttr',
  70. 'height',
  71. 'hoverStateEnabled',
  72. 'itemHoldTimeout',
  73. 'items',
  74. 'itemTemplate',
  75. 'onContentReady',
  76. 'onDisposing',
  77. 'onInitialized',
  78. 'onItemClick',
  79. 'onItemContextMenu',
  80. 'onItemHold',
  81. 'onItemRendered',
  82. 'onOptionChanged',
  83. 'rtlEnabled',
  84. 'visible',
  85. 'width'
  86. ]
  87. },] },
  88. ];
  89. /** @nocollapse */
  90. DxoBoxComponent.ctorParameters = function () { return [
  91. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  92. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  93. ]; };
  94. DxoBoxComponent.propDecorators = {
  95. "itemsChange": [{ type: core_1.Output },],
  96. "itemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return item_dxi_1.DxiItemComponent; }),] },],
  97. };
  98. return DxoBoxComponent;
  99. }(box_options_1.DxoBoxOptions));
  100. exports.DxoBoxComponent = DxoBoxComponent;
  101. var DxoBoxModule = (function () {
  102. function DxoBoxModule() {
  103. }
  104. DxoBoxModule.decorators = [
  105. { type: core_1.NgModule, args: [{
  106. declarations: [
  107. DxoBoxComponent
  108. ],
  109. exports: [
  110. DxoBoxComponent
  111. ],
  112. },] },
  113. ];
  114. return DxoBoxModule;
  115. }());
  116. exports.DxoBoxModule = DxoBoxModule;
  117. //# sourceMappingURL=box.js.map