scale.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452
  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 break_dxi_1 = require("./break-dxi");
  29. var DxoScaleComponent = (function (_super) {
  30. __extends(DxoScaleComponent, _super);
  31. function DxoScaleComponent(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(DxoScaleComponent.prototype, "allowDecimals", {
  38. get: function () {
  39. return this._getOption('allowDecimals');
  40. },
  41. set: function (value) {
  42. this._setOption('allowDecimals', value);
  43. },
  44. enumerable: true,
  45. configurable: true
  46. });
  47. Object.defineProperty(DxoScaleComponent.prototype, "customMinorTicks", {
  48. get: function () {
  49. return this._getOption('customMinorTicks');
  50. },
  51. set: function (value) {
  52. this._setOption('customMinorTicks', value);
  53. },
  54. enumerable: true,
  55. configurable: true
  56. });
  57. Object.defineProperty(DxoScaleComponent.prototype, "customTicks", {
  58. get: function () {
  59. return this._getOption('customTicks');
  60. },
  61. set: function (value) {
  62. this._setOption('customTicks', value);
  63. },
  64. enumerable: true,
  65. configurable: true
  66. });
  67. Object.defineProperty(DxoScaleComponent.prototype, "endValue", {
  68. get: function () {
  69. return this._getOption('endValue');
  70. },
  71. set: function (value) {
  72. this._setOption('endValue', value);
  73. },
  74. enumerable: true,
  75. configurable: true
  76. });
  77. Object.defineProperty(DxoScaleComponent.prototype, "label", {
  78. get: function () {
  79. return this._getOption('label');
  80. },
  81. set: function (value) {
  82. this._setOption('label', value);
  83. },
  84. enumerable: true,
  85. configurable: true
  86. });
  87. Object.defineProperty(DxoScaleComponent.prototype, "minorTick", {
  88. get: function () {
  89. return this._getOption('minorTick');
  90. },
  91. set: function (value) {
  92. this._setOption('minorTick', value);
  93. },
  94. enumerable: true,
  95. configurable: true
  96. });
  97. Object.defineProperty(DxoScaleComponent.prototype, "minorTickInterval", {
  98. get: function () {
  99. return this._getOption('minorTickInterval');
  100. },
  101. set: function (value) {
  102. this._setOption('minorTickInterval', value);
  103. },
  104. enumerable: true,
  105. configurable: true
  106. });
  107. Object.defineProperty(DxoScaleComponent.prototype, "orientation", {
  108. get: function () {
  109. return this._getOption('orientation');
  110. },
  111. set: function (value) {
  112. this._setOption('orientation', value);
  113. },
  114. enumerable: true,
  115. configurable: true
  116. });
  117. Object.defineProperty(DxoScaleComponent.prototype, "scaleDivisionFactor", {
  118. get: function () {
  119. return this._getOption('scaleDivisionFactor');
  120. },
  121. set: function (value) {
  122. this._setOption('scaleDivisionFactor', value);
  123. },
  124. enumerable: true,
  125. configurable: true
  126. });
  127. Object.defineProperty(DxoScaleComponent.prototype, "startValue", {
  128. get: function () {
  129. return this._getOption('startValue');
  130. },
  131. set: function (value) {
  132. this._setOption('startValue', value);
  133. },
  134. enumerable: true,
  135. configurable: true
  136. });
  137. Object.defineProperty(DxoScaleComponent.prototype, "tick", {
  138. get: function () {
  139. return this._getOption('tick');
  140. },
  141. set: function (value) {
  142. this._setOption('tick', value);
  143. },
  144. enumerable: true,
  145. configurable: true
  146. });
  147. Object.defineProperty(DxoScaleComponent.prototype, "tickInterval", {
  148. get: function () {
  149. return this._getOption('tickInterval');
  150. },
  151. set: function (value) {
  152. this._setOption('tickInterval', value);
  153. },
  154. enumerable: true,
  155. configurable: true
  156. });
  157. Object.defineProperty(DxoScaleComponent.prototype, "horizontalOrientation", {
  158. get: function () {
  159. return this._getOption('horizontalOrientation');
  160. },
  161. set: function (value) {
  162. this._setOption('horizontalOrientation', value);
  163. },
  164. enumerable: true,
  165. configurable: true
  166. });
  167. Object.defineProperty(DxoScaleComponent.prototype, "verticalOrientation", {
  168. get: function () {
  169. return this._getOption('verticalOrientation');
  170. },
  171. set: function (value) {
  172. this._setOption('verticalOrientation', value);
  173. },
  174. enumerable: true,
  175. configurable: true
  176. });
  177. Object.defineProperty(DxoScaleComponent.prototype, "aggregationGroupWidth", {
  178. get: function () {
  179. return this._getOption('aggregationGroupWidth');
  180. },
  181. set: function (value) {
  182. this._setOption('aggregationGroupWidth', value);
  183. },
  184. enumerable: true,
  185. configurable: true
  186. });
  187. Object.defineProperty(DxoScaleComponent.prototype, "aggregationInterval", {
  188. get: function () {
  189. return this._getOption('aggregationInterval');
  190. },
  191. set: function (value) {
  192. this._setOption('aggregationInterval', value);
  193. },
  194. enumerable: true,
  195. configurable: true
  196. });
  197. Object.defineProperty(DxoScaleComponent.prototype, "breaks", {
  198. get: function () {
  199. return this._getOption('breaks');
  200. },
  201. set: function (value) {
  202. this._setOption('breaks', value);
  203. },
  204. enumerable: true,
  205. configurable: true
  206. });
  207. Object.defineProperty(DxoScaleComponent.prototype, "breakStyle", {
  208. get: function () {
  209. return this._getOption('breakStyle');
  210. },
  211. set: function (value) {
  212. this._setOption('breakStyle', value);
  213. },
  214. enumerable: true,
  215. configurable: true
  216. });
  217. Object.defineProperty(DxoScaleComponent.prototype, "categories", {
  218. get: function () {
  219. return this._getOption('categories');
  220. },
  221. set: function (value) {
  222. this._setOption('categories', value);
  223. },
  224. enumerable: true,
  225. configurable: true
  226. });
  227. Object.defineProperty(DxoScaleComponent.prototype, "endOnTick", {
  228. get: function () {
  229. return this._getOption('endOnTick');
  230. },
  231. set: function (value) {
  232. this._setOption('endOnTick', value);
  233. },
  234. enumerable: true,
  235. configurable: true
  236. });
  237. Object.defineProperty(DxoScaleComponent.prototype, "holidays", {
  238. get: function () {
  239. return this._getOption('holidays');
  240. },
  241. set: function (value) {
  242. this._setOption('holidays', value);
  243. },
  244. enumerable: true,
  245. configurable: true
  246. });
  247. Object.defineProperty(DxoScaleComponent.prototype, "logarithmBase", {
  248. get: function () {
  249. return this._getOption('logarithmBase');
  250. },
  251. set: function (value) {
  252. this._setOption('logarithmBase', value);
  253. },
  254. enumerable: true,
  255. configurable: true
  256. });
  257. Object.defineProperty(DxoScaleComponent.prototype, "marker", {
  258. get: function () {
  259. return this._getOption('marker');
  260. },
  261. set: function (value) {
  262. this._setOption('marker', value);
  263. },
  264. enumerable: true,
  265. configurable: true
  266. });
  267. Object.defineProperty(DxoScaleComponent.prototype, "maxRange", {
  268. get: function () {
  269. return this._getOption('maxRange');
  270. },
  271. set: function (value) {
  272. this._setOption('maxRange', value);
  273. },
  274. enumerable: true,
  275. configurable: true
  276. });
  277. Object.defineProperty(DxoScaleComponent.prototype, "minorTickCount", {
  278. get: function () {
  279. return this._getOption('minorTickCount');
  280. },
  281. set: function (value) {
  282. this._setOption('minorTickCount', value);
  283. },
  284. enumerable: true,
  285. configurable: true
  286. });
  287. Object.defineProperty(DxoScaleComponent.prototype, "minRange", {
  288. get: function () {
  289. return this._getOption('minRange');
  290. },
  291. set: function (value) {
  292. this._setOption('minRange', value);
  293. },
  294. enumerable: true,
  295. configurable: true
  296. });
  297. Object.defineProperty(DxoScaleComponent.prototype, "placeholderHeight", {
  298. get: function () {
  299. return this._getOption('placeholderHeight');
  300. },
  301. set: function (value) {
  302. this._setOption('placeholderHeight', value);
  303. },
  304. enumerable: true,
  305. configurable: true
  306. });
  307. Object.defineProperty(DxoScaleComponent.prototype, "showCustomBoundaryTicks", {
  308. get: function () {
  309. return this._getOption('showCustomBoundaryTicks');
  310. },
  311. set: function (value) {
  312. this._setOption('showCustomBoundaryTicks', value);
  313. },
  314. enumerable: true,
  315. configurable: true
  316. });
  317. Object.defineProperty(DxoScaleComponent.prototype, "singleWorkdays", {
  318. get: function () {
  319. return this._getOption('singleWorkdays');
  320. },
  321. set: function (value) {
  322. this._setOption('singleWorkdays', value);
  323. },
  324. enumerable: true,
  325. configurable: true
  326. });
  327. Object.defineProperty(DxoScaleComponent.prototype, "type", {
  328. get: function () {
  329. return this._getOption('type');
  330. },
  331. set: function (value) {
  332. this._setOption('type', value);
  333. },
  334. enumerable: true,
  335. configurable: true
  336. });
  337. Object.defineProperty(DxoScaleComponent.prototype, "valueType", {
  338. get: function () {
  339. return this._getOption('valueType');
  340. },
  341. set: function (value) {
  342. this._setOption('valueType', value);
  343. },
  344. enumerable: true,
  345. configurable: true
  346. });
  347. Object.defineProperty(DxoScaleComponent.prototype, "workdaysOnly", {
  348. get: function () {
  349. return this._getOption('workdaysOnly');
  350. },
  351. set: function (value) {
  352. this._setOption('workdaysOnly', value);
  353. },
  354. enumerable: true,
  355. configurable: true
  356. });
  357. Object.defineProperty(DxoScaleComponent.prototype, "workWeek", {
  358. get: function () {
  359. return this._getOption('workWeek');
  360. },
  361. set: function (value) {
  362. this._setOption('workWeek', value);
  363. },
  364. enumerable: true,
  365. configurable: true
  366. });
  367. Object.defineProperty(DxoScaleComponent.prototype, "_optionPath", {
  368. get: function () {
  369. return 'scale';
  370. },
  371. enumerable: true,
  372. configurable: true
  373. });
  374. Object.defineProperty(DxoScaleComponent.prototype, "breaksChildren", {
  375. get: function () {
  376. return this._getOption('breaks');
  377. },
  378. set: function (value) {
  379. this.setChildren('breaks', value);
  380. },
  381. enumerable: true,
  382. configurable: true
  383. });
  384. DxoScaleComponent.decorators = [
  385. { type: core_1.Component, args: [{
  386. selector: 'dxo-scale',
  387. template: '',
  388. styles: [''],
  389. providers: [nested_option_1.NestedOptionHost]
  390. },] },
  391. ];
  392. /** @nocollapse */
  393. DxoScaleComponent.ctorParameters = function () { return [
  394. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  395. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  396. ]; };
  397. DxoScaleComponent.propDecorators = {
  398. "allowDecimals": [{ type: core_1.Input },],
  399. "customMinorTicks": [{ type: core_1.Input },],
  400. "customTicks": [{ type: core_1.Input },],
  401. "endValue": [{ type: core_1.Input },],
  402. "label": [{ type: core_1.Input },],
  403. "minorTick": [{ type: core_1.Input },],
  404. "minorTickInterval": [{ type: core_1.Input },],
  405. "orientation": [{ type: core_1.Input },],
  406. "scaleDivisionFactor": [{ type: core_1.Input },],
  407. "startValue": [{ type: core_1.Input },],
  408. "tick": [{ type: core_1.Input },],
  409. "tickInterval": [{ type: core_1.Input },],
  410. "horizontalOrientation": [{ type: core_1.Input },],
  411. "verticalOrientation": [{ type: core_1.Input },],
  412. "aggregationGroupWidth": [{ type: core_1.Input },],
  413. "aggregationInterval": [{ type: core_1.Input },],
  414. "breaks": [{ type: core_1.Input },],
  415. "breakStyle": [{ type: core_1.Input },],
  416. "categories": [{ type: core_1.Input },],
  417. "endOnTick": [{ type: core_1.Input },],
  418. "holidays": [{ type: core_1.Input },],
  419. "logarithmBase": [{ type: core_1.Input },],
  420. "marker": [{ type: core_1.Input },],
  421. "maxRange": [{ type: core_1.Input },],
  422. "minorTickCount": [{ type: core_1.Input },],
  423. "minRange": [{ type: core_1.Input },],
  424. "placeholderHeight": [{ type: core_1.Input },],
  425. "showCustomBoundaryTicks": [{ type: core_1.Input },],
  426. "singleWorkdays": [{ type: core_1.Input },],
  427. "type": [{ type: core_1.Input },],
  428. "valueType": [{ type: core_1.Input },],
  429. "workdaysOnly": [{ type: core_1.Input },],
  430. "workWeek": [{ type: core_1.Input },],
  431. "breaksChildren": [{ type: core_1.ContentChildren, args: [core_1.forwardRef(function () { return break_dxi_1.DxiBreakComponent; }),] },],
  432. };
  433. return DxoScaleComponent;
  434. }(nested_option_2.NestedOption));
  435. exports.DxoScaleComponent = DxoScaleComponent;
  436. var DxoScaleModule = (function () {
  437. function DxoScaleModule() {
  438. }
  439. DxoScaleModule.decorators = [
  440. { type: core_1.NgModule, args: [{
  441. declarations: [
  442. DxoScaleComponent
  443. ],
  444. exports: [
  445. DxoScaleComponent
  446. ],
  447. },] },
  448. ];
  449. return DxoScaleModule;
  450. }());
  451. exports.DxoScaleModule = DxoScaleModule;
  452. //# sourceMappingURL=scale.js.map