range-container.js 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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 nested_option_2 = require("../../core/nested-option");
  28. var range_dxi_1 = require("./range-dxi");
  29. var DxoRangeContainerComponent = (function (_super) {
  30. __extends(DxoRangeContainerComponent, _super);
  31. function DxoRangeContainerComponent(parentOptionHost, optionHost) {
  32. var _this = _super.call(this) || this;
  33. parentOptionHost.setNestedOption(_this);
  34. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  35. return _this;
  36. }
  37. Object.defineProperty(DxoRangeContainerComponent.prototype, "backgroundColor", {
  38. get: function () {
  39. return this._getOption('backgroundColor');
  40. },
  41. set: function (value) {
  42. this._setOption('backgroundColor', value);
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxoRangeContainerComponent.prototype, "offset", {
  48. get: function () {
  49. return this._getOption('offset');
  50. },
  51. set: function (value) {
  52. this._setOption('offset', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. Object.defineProperty(DxoRangeContainerComponent.prototype, "orientation", {
  58. get: function () {
  59. return this._getOption('orientation');
  60. },
  61. set: function (value) {
  62. this._setOption('orientation', value);
  63. },
  64. enumerable: true,
  65. configurable: true
  66. });
  67. Object.defineProperty(DxoRangeContainerComponent.prototype, "palette", {
  68. get: function () {
  69. return this._getOption('palette');
  70. },
  71. set: function (value) {
  72. this._setOption('palette', value);
  73. },
  74. enumerable: true,
  75. configurable: true
  76. });
  77. Object.defineProperty(DxoRangeContainerComponent.prototype, "paletteExtensionMode", {
  78. get: function () {
  79. return this._getOption('paletteExtensionMode');
  80. },
  81. set: function (value) {
  82. this._setOption('paletteExtensionMode', value);
  83. },
  84. enumerable: true,
  85. configurable: true
  86. });
  87. Object.defineProperty(DxoRangeContainerComponent.prototype, "ranges", {
  88. get: function () {
  89. return this._getOption('ranges');
  90. },
  91. set: function (value) {
  92. this._setOption('ranges', value);
  93. },
  94. enumerable: true,
  95. configurable: true
  96. });
  97. Object.defineProperty(DxoRangeContainerComponent.prototype, "width", {
  98. get: function () {
  99. return this._getOption('width');
  100. },
  101. set: function (value) {
  102. this._setOption('width', value);
  103. },
  104. enumerable: true,
  105. configurable: true
  106. });
  107. Object.defineProperty(DxoRangeContainerComponent.prototype, "horizontalOrientation", {
  108. get: function () {
  109. return this._getOption('horizontalOrientation');
  110. },
  111. set: function (value) {
  112. this._setOption('horizontalOrientation', value);
  113. },
  114. enumerable: true,
  115. configurable: true
  116. });
  117. Object.defineProperty(DxoRangeContainerComponent.prototype, "verticalOrientation", {
  118. get: function () {
  119. return this._getOption('verticalOrientation');
  120. },
  121. set: function (value) {
  122. this._setOption('verticalOrientation', value);
  123. },
  124. enumerable: true,
  125. configurable: true
  126. });
  127. Object.defineProperty(DxoRangeContainerComponent.prototype, "_optionPath", {
  128. get: function () {
  129. return 'rangeContainer';
  130. },
  131. enumerable: true,
  132. configurable: true
  133. });
  134. Object.defineProperty(DxoRangeContainerComponent.prototype, "rangesChildren", {
  135. get: function () {
  136. return this._getOption('ranges');
  137. },
  138. set: function (value) {
  139. this.setChildren('ranges', value);
  140. },
  141. enumerable: true,
  142. configurable: true
  143. });
  144. DxoRangeContainerComponent.decorators = [
  145. { type: core_1.Component, args: [{
  146. selector: 'dxo-range-container',
  147. template: '',
  148. styles: [''],
  149. providers: [nested_option_1.NestedOptionHost]
  150. },] },
  151. ];
  152. /** @nocollapse */
  153. DxoRangeContainerComponent.ctorParameters = function () { return [
  154. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  155. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  156. ]; };
  157. DxoRangeContainerComponent.propDecorators = {
  158. "backgroundColor": [{ type: core_1.Input },],
  159. "offset": [{ type: core_1.Input },],
  160. "orientation": [{ type: core_1.Input },],
  161. "palette": [{ type: core_1.Input },],
  162. "paletteExtensionMode": [{ type: core_1.Input },],
  163. "ranges": [{ type: core_1.Input },],
  164. "width": [{ type: core_1.Input },],
  165. "horizontalOrientation": [{ type: core_1.Input },],
  166. "verticalOrientation": [{ type: core_1.Input },],
  167. "rangesChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return range_dxi_1.DxiRangeComponent; }),] },],
  168. };
  169. return DxoRangeContainerComponent;
  170. }(nested_option_2.NestedOption));
  171. exports.DxoRangeContainerComponent = DxoRangeContainerComponent;
  172. var DxoRangeContainerModule = (function () {
  173. function DxoRangeContainerModule() {
  174. }
  175. DxoRangeContainerModule.decorators = [
  176. { type: core_1.NgModule, args: [{
  177. declarations: [
  178. DxoRangeContainerComponent
  179. ],
  180. exports: [
  181. DxoRangeContainerComponent
  182. ],
  183. },] },
  184. ];
  185. return DxoRangeContainerModule;
  186. }());
  187. exports.DxoRangeContainerModule = DxoRangeContainerModule;
  188. //# sourceMappingURL=range-container.js.map