tab-panel-options.js 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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 tab_panel_options_1 = require("./base/tab-panel-options");
  28. var item_dxi_1 = require("./item-dxi");
  29. var DxoTabPanelOptionsComponent = (function (_super) {
  30. __extends(DxoTabPanelOptionsComponent, _super);
  31. function DxoTabPanelOptionsComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. _this._createEventEmitters([
  34. { emit: 'itemsChange' },
  35. { emit: 'selectedIndexChange' },
  36. { emit: 'selectedItemChange' }
  37. ]);
  38. parentOptionHost.setNestedOption(_this);
  39. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  40. return _this;
  41. }
  42. Object.defineProperty(DxoTabPanelOptionsComponent.prototype, "_optionPath", {
  43. get: function () {
  44. return 'tabPanelOptions';
  45. },
  46. enumerable: true,
  47. configurable: true
  48. });
  49. Object.defineProperty(DxoTabPanelOptionsComponent.prototype, "itemsChildren", {
  50. get: function () {
  51. return this._getOption('items');
  52. },
  53. set: function (value) {
  54. this.setChildren('items', value);
  55. },
  56. enumerable: true,
  57. configurable: true
  58. });
  59. DxoTabPanelOptionsComponent.decorators = [
  60. { type: core_1.Component, args: [{
  61. selector: 'dxo-tab-panel-options',
  62. template: '',
  63. styles: [''],
  64. providers: [nested_option_1.NestedOptionHost],
  65. inputs: [
  66. 'accessKey',
  67. 'activeStateEnabled',
  68. 'animationEnabled',
  69. 'dataSource',
  70. 'deferRendering',
  71. 'disabled',
  72. 'elementAttr',
  73. 'focusStateEnabled',
  74. 'height',
  75. 'hint',
  76. 'hoverStateEnabled',
  77. 'itemHoldTimeout',
  78. 'items',
  79. 'itemTemplate',
  80. 'itemTitleTemplate',
  81. 'loop',
  82. 'noDataText',
  83. 'onContentReady',
  84. 'onDisposing',
  85. 'onInitialized',
  86. 'onItemClick',
  87. 'onItemContextMenu',
  88. 'onItemHold',
  89. 'onItemRendered',
  90. 'onOptionChanged',
  91. 'onSelectionChanged',
  92. 'onTitleClick',
  93. 'onTitleHold',
  94. 'onTitleRendered',
  95. 'repaintChangesOnly',
  96. 'rtlEnabled',
  97. 'scrollByContent',
  98. 'scrollingEnabled',
  99. 'selectedIndex',
  100. 'selectedItem',
  101. 'showNavButtons',
  102. 'swipeEnabled',
  103. 'tabIndex',
  104. 'visible',
  105. 'width'
  106. ]
  107. },] },
  108. ];
  109. /** @nocollapse */
  110. DxoTabPanelOptionsComponent.ctorParameters = function () { return [
  111. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  112. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  113. ]; };
  114. DxoTabPanelOptionsComponent.propDecorators = {
  115. "itemsChange": [{ type: core_1.Output },],
  116. "selectedIndexChange": [{ type: core_1.Output },],
  117. "selectedItemChange": [{ type: core_1.Output },],
  118. "itemsChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return item_dxi_1.DxiItemComponent; }),] },],
  119. };
  120. return DxoTabPanelOptionsComponent;
  121. }(tab_panel_options_1.DxoTabPanelOptions));
  122. exports.DxoTabPanelOptionsComponent = DxoTabPanelOptionsComponent;
  123. var DxoTabPanelOptionsModule = (function () {
  124. function DxoTabPanelOptionsModule() {
  125. }
  126. DxoTabPanelOptionsModule.decorators = [
  127. { type: core_1.NgModule, args: [{
  128. declarations: [
  129. DxoTabPanelOptionsComponent
  130. ],
  131. exports: [
  132. DxoTabPanelOptionsComponent
  133. ],
  134. },] },
  135. ];
  136. return DxoTabPanelOptionsModule;
  137. }());
  138. exports.DxoTabPanelOptionsModule = DxoTabPanelOptionsModule;
  139. //# sourceMappingURL=tab-panel-options.js.map