drop-down-options.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 popup_options_1 = require("./base/popup-options");
  28. var toolbar_item_dxi_1 = require("./toolbar-item-dxi");
  29. var DxoDropDownOptionsComponent = (function (_super) {
  30. __extends(DxoDropDownOptionsComponent, _super);
  31. function DxoDropDownOptionsComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. _this._createEventEmitters([
  34. { emit: 'heightChange' },
  35. { emit: 'positionChange' },
  36. { emit: 'visibleChange' },
  37. { emit: 'widthChange' }
  38. ]);
  39. parentOptionHost.setNestedOption(_this);
  40. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  41. return _this;
  42. }
  43. Object.defineProperty(DxoDropDownOptionsComponent.prototype, "_optionPath", {
  44. get: function () {
  45. return 'dropDownOptions';
  46. },
  47. enumerable: true,
  48. configurable: true
  49. });
  50. Object.defineProperty(DxoDropDownOptionsComponent.prototype, "toolbarItemsChildren", {
  51. get: function () {
  52. return this._getOption('toolbarItems');
  53. },
  54. set: function (value) {
  55. this.setChildren('toolbarItems', value);
  56. },
  57. enumerable: true,
  58. configurable: true
  59. });
  60. DxoDropDownOptionsComponent.decorators = [
  61. { type: core_1.Component, args: [{
  62. selector: 'dxo-drop-down-options',
  63. template: '',
  64. styles: [''],
  65. providers: [nested_option_1.NestedOptionHost],
  66. inputs: [
  67. 'accessKey',
  68. 'animation',
  69. 'closeOnOutsideClick',
  70. 'container',
  71. 'contentTemplate',
  72. 'deferRendering',
  73. 'disabled',
  74. 'dragEnabled',
  75. 'elementAttr',
  76. 'focusStateEnabled',
  77. 'fullScreen',
  78. 'height',
  79. 'hint',
  80. 'hoverStateEnabled',
  81. 'maxHeight',
  82. 'maxWidth',
  83. 'minHeight',
  84. 'minWidth',
  85. 'onContentReady',
  86. 'onDisposing',
  87. 'onHidden',
  88. 'onHiding',
  89. 'onInitialized',
  90. 'onOptionChanged',
  91. 'onResize',
  92. 'onResizeEnd',
  93. 'onResizeStart',
  94. 'onShowing',
  95. 'onShown',
  96. 'onTitleRendered',
  97. 'position',
  98. 'resizeEnabled',
  99. 'rtlEnabled',
  100. 'shading',
  101. 'shadingColor',
  102. 'showCloseButton',
  103. 'showTitle',
  104. 'tabIndex',
  105. 'title',
  106. 'titleTemplate',
  107. 'toolbarItems',
  108. 'visible',
  109. 'width'
  110. ]
  111. },] },
  112. ];
  113. /** @nocollapse */
  114. DxoDropDownOptionsComponent.ctorParameters = function () { return [
  115. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  116. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  117. ]; };
  118. DxoDropDownOptionsComponent.propDecorators = {
  119. "heightChange": [{ type: core_1.Output },],
  120. "positionChange": [{ type: core_1.Output },],
  121. "visibleChange": [{ type: core_1.Output },],
  122. "widthChange": [{ type: core_1.Output },],
  123. "toolbarItemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return toolbar_item_dxi_1.DxiToolbarItemComponent; }),] },],
  124. };
  125. return DxoDropDownOptionsComponent;
  126. }(popup_options_1.DxoPopupOptions));
  127. exports.DxoDropDownOptionsComponent = DxoDropDownOptionsComponent;
  128. var DxoDropDownOptionsModule = (function () {
  129. function DxoDropDownOptionsModule() {
  130. }
  131. DxoDropDownOptionsModule.decorators = [
  132. { type: core_1.NgModule, args: [{
  133. declarations: [
  134. DxoDropDownOptionsComponent
  135. ],
  136. exports: [
  137. DxoDropDownOptionsComponent
  138. ],
  139. },] },
  140. ];
  141. return DxoDropDownOptionsModule;
  142. }());
  143. exports.DxoDropDownOptionsModule = DxoDropDownOptionsModule;
  144. //# sourceMappingURL=drop-down-options.js.map