label.js 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496
  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 DxoLabelComponent = (function (_super) {
  29. __extends(DxoLabelComponent, _super);
  30. function DxoLabelComponent(parentOptionHost, optionHost) {
  31. var _this = _super.call(this) || this;
  32. parentOptionHost.setNestedOption(_this);
  33. optionHost.setHost(_this, _this._fullOptionPath.bind(_this));
  34. return _this;
  35. }
  36. Object.defineProperty(DxoLabelComponent.prototype, "connectorColor", {
  37. get: function () {
  38. return this._getOption('connectorColor');
  39. },
  40. set: function (value) {
  41. this._setOption('connectorColor', value);
  42. },
  43. enumerable: true,
  44. configurable: true
  45. });
  46. Object.defineProperty(DxoLabelComponent.prototype, "connectorWidth", {
  47. get: function () {
  48. return this._getOption('connectorWidth');
  49. },
  50. set: function (value) {
  51. this._setOption('connectorWidth', value);
  52. },
  53. enumerable: true,
  54. configurable: true
  55. });
  56. Object.defineProperty(DxoLabelComponent.prototype, "customizeText", {
  57. get: function () {
  58. return this._getOption('customizeText');
  59. },
  60. set: function (value) {
  61. this._setOption('customizeText', value);
  62. },
  63. enumerable: true,
  64. configurable: true
  65. });
  66. Object.defineProperty(DxoLabelComponent.prototype, "font", {
  67. get: function () {
  68. return this._getOption('font');
  69. },
  70. set: function (value) {
  71. this._setOption('font', value);
  72. },
  73. enumerable: true,
  74. configurable: true
  75. });
  76. Object.defineProperty(DxoLabelComponent.prototype, "format", {
  77. get: function () {
  78. return this._getOption('format');
  79. },
  80. set: function (value) {
  81. this._setOption('format', value);
  82. },
  83. enumerable: true,
  84. configurable: true
  85. });
  86. Object.defineProperty(DxoLabelComponent.prototype, "indent", {
  87. get: function () {
  88. return this._getOption('indent');
  89. },
  90. set: function (value) {
  91. this._setOption('indent', value);
  92. },
  93. enumerable: true,
  94. configurable: true
  95. });
  96. Object.defineProperty(DxoLabelComponent.prototype, "visible", {
  97. get: function () {
  98. return this._getOption('visible');
  99. },
  100. set: function (value) {
  101. this._setOption('visible', value);
  102. },
  103. enumerable: true,
  104. configurable: true
  105. });
  106. Object.defineProperty(DxoLabelComponent.prototype, "horizontalAlignment", {
  107. get: function () {
  108. return this._getOption('horizontalAlignment');
  109. },
  110. set: function (value) {
  111. this._setOption('horizontalAlignment', value);
  112. },
  113. enumerable: true,
  114. configurable: true
  115. });
  116. Object.defineProperty(DxoLabelComponent.prototype, "position", {
  117. get: function () {
  118. return this._getOption('position');
  119. },
  120. set: function (value) {
  121. this._setOption('position', value);
  122. },
  123. enumerable: true,
  124. configurable: true
  125. });
  126. Object.defineProperty(DxoLabelComponent.prototype, "text", {
  127. get: function () {
  128. return this._getOption('text');
  129. },
  130. set: function (value) {
  131. this._setOption('text', value);
  132. },
  133. enumerable: true,
  134. configurable: true
  135. });
  136. Object.defineProperty(DxoLabelComponent.prototype, "verticalAlignment", {
  137. get: function () {
  138. return this._getOption('verticalAlignment');
  139. },
  140. set: function (value) {
  141. this._setOption('verticalAlignment', value);
  142. },
  143. enumerable: true,
  144. configurable: true
  145. });
  146. Object.defineProperty(DxoLabelComponent.prototype, "alignment", {
  147. get: function () {
  148. return this._getOption('alignment');
  149. },
  150. set: function (value) {
  151. this._setOption('alignment', value);
  152. },
  153. enumerable: true,
  154. configurable: true
  155. });
  156. Object.defineProperty(DxoLabelComponent.prototype, "customizeHint", {
  157. get: function () {
  158. return this._getOption('customizeHint');
  159. },
  160. set: function (value) {
  161. this._setOption('customizeHint', value);
  162. },
  163. enumerable: true,
  164. configurable: true
  165. });
  166. Object.defineProperty(DxoLabelComponent.prototype, "displayMode", {
  167. get: function () {
  168. return this._getOption('displayMode');
  169. },
  170. set: function (value) {
  171. this._setOption('displayMode', value);
  172. },
  173. enumerable: true,
  174. configurable: true
  175. });
  176. Object.defineProperty(DxoLabelComponent.prototype, "indentFromAxis", {
  177. get: function () {
  178. return this._getOption('indentFromAxis');
  179. },
  180. set: function (value) {
  181. this._setOption('indentFromAxis', value);
  182. },
  183. enumerable: true,
  184. configurable: true
  185. });
  186. Object.defineProperty(DxoLabelComponent.prototype, "overlappingBehavior", {
  187. get: function () {
  188. return this._getOption('overlappingBehavior');
  189. },
  190. set: function (value) {
  191. this._setOption('overlappingBehavior', value);
  192. },
  193. enumerable: true,
  194. configurable: true
  195. });
  196. Object.defineProperty(DxoLabelComponent.prototype, "rotationAngle", {
  197. get: function () {
  198. return this._getOption('rotationAngle');
  199. },
  200. set: function (value) {
  201. this._setOption('rotationAngle', value);
  202. },
  203. enumerable: true,
  204. configurable: true
  205. });
  206. Object.defineProperty(DxoLabelComponent.prototype, "staggeringSpacing", {
  207. get: function () {
  208. return this._getOption('staggeringSpacing');
  209. },
  210. set: function (value) {
  211. this._setOption('staggeringSpacing', value);
  212. },
  213. enumerable: true,
  214. configurable: true
  215. });
  216. Object.defineProperty(DxoLabelComponent.prototype, "textOverflow", {
  217. get: function () {
  218. return this._getOption('textOverflow');
  219. },
  220. set: function (value) {
  221. this._setOption('textOverflow', value);
  222. },
  223. enumerable: true,
  224. configurable: true
  225. });
  226. Object.defineProperty(DxoLabelComponent.prototype, "wordWrap", {
  227. get: function () {
  228. return this._getOption('wordWrap');
  229. },
  230. set: function (value) {
  231. this._setOption('wordWrap', value);
  232. },
  233. enumerable: true,
  234. configurable: true
  235. });
  236. Object.defineProperty(DxoLabelComponent.prototype, "argumentFormat", {
  237. get: function () {
  238. return this._getOption('argumentFormat');
  239. },
  240. set: function (value) {
  241. this._setOption('argumentFormat', value);
  242. },
  243. enumerable: true,
  244. configurable: true
  245. });
  246. Object.defineProperty(DxoLabelComponent.prototype, "backgroundColor", {
  247. get: function () {
  248. return this._getOption('backgroundColor');
  249. },
  250. set: function (value) {
  251. this._setOption('backgroundColor', value);
  252. },
  253. enumerable: true,
  254. configurable: true
  255. });
  256. Object.defineProperty(DxoLabelComponent.prototype, "border", {
  257. get: function () {
  258. return this._getOption('border');
  259. },
  260. set: function (value) {
  261. this._setOption('border', value);
  262. },
  263. enumerable: true,
  264. configurable: true
  265. });
  266. Object.defineProperty(DxoLabelComponent.prototype, "connector", {
  267. get: function () {
  268. return this._getOption('connector');
  269. },
  270. set: function (value) {
  271. this._setOption('connector', value);
  272. },
  273. enumerable: true,
  274. configurable: true
  275. });
  276. Object.defineProperty(DxoLabelComponent.prototype, "horizontalOffset", {
  277. get: function () {
  278. return this._getOption('horizontalOffset');
  279. },
  280. set: function (value) {
  281. this._setOption('horizontalOffset', value);
  282. },
  283. enumerable: true,
  284. configurable: true
  285. });
  286. Object.defineProperty(DxoLabelComponent.prototype, "showForZeroValues", {
  287. get: function () {
  288. return this._getOption('showForZeroValues');
  289. },
  290. set: function (value) {
  291. this._setOption('showForZeroValues', value);
  292. },
  293. enumerable: true,
  294. configurable: true
  295. });
  296. Object.defineProperty(DxoLabelComponent.prototype, "verticalOffset", {
  297. get: function () {
  298. return this._getOption('verticalOffset');
  299. },
  300. set: function (value) {
  301. this._setOption('verticalOffset', value);
  302. },
  303. enumerable: true,
  304. configurable: true
  305. });
  306. Object.defineProperty(DxoLabelComponent.prototype, "hideFirstOrLast", {
  307. get: function () {
  308. return this._getOption('hideFirstOrLast');
  309. },
  310. set: function (value) {
  311. this._setOption('hideFirstOrLast', value);
  312. },
  313. enumerable: true,
  314. configurable: true
  315. });
  316. Object.defineProperty(DxoLabelComponent.prototype, "indentFromTick", {
  317. get: function () {
  318. return this._getOption('indentFromTick');
  319. },
  320. set: function (value) {
  321. this._setOption('indentFromTick', value);
  322. },
  323. enumerable: true,
  324. configurable: true
  325. });
  326. Object.defineProperty(DxoLabelComponent.prototype, "useRangeColors", {
  327. get: function () {
  328. return this._getOption('useRangeColors');
  329. },
  330. set: function (value) {
  331. this._setOption('useRangeColors', value);
  332. },
  333. enumerable: true,
  334. configurable: true
  335. });
  336. Object.defineProperty(DxoLabelComponent.prototype, "location", {
  337. get: function () {
  338. return this._getOption('location');
  339. },
  340. set: function (value) {
  341. this._setOption('location', value);
  342. },
  343. enumerable: true,
  344. configurable: true
  345. });
  346. Object.defineProperty(DxoLabelComponent.prototype, "showColon", {
  347. get: function () {
  348. return this._getOption('showColon');
  349. },
  350. set: function (value) {
  351. this._setOption('showColon', value);
  352. },
  353. enumerable: true,
  354. configurable: true
  355. });
  356. Object.defineProperty(DxoLabelComponent.prototype, "radialOffset", {
  357. get: function () {
  358. return this._getOption('radialOffset');
  359. },
  360. set: function (value) {
  361. this._setOption('radialOffset', value);
  362. },
  363. enumerable: true,
  364. configurable: true
  365. });
  366. Object.defineProperty(DxoLabelComponent.prototype, "topIndent", {
  367. get: function () {
  368. return this._getOption('topIndent');
  369. },
  370. set: function (value) {
  371. this._setOption('topIndent', value);
  372. },
  373. enumerable: true,
  374. configurable: true
  375. });
  376. Object.defineProperty(DxoLabelComponent.prototype, "shadow", {
  377. get: function () {
  378. return this._getOption('shadow');
  379. },
  380. set: function (value) {
  381. this._setOption('shadow', value);
  382. },
  383. enumerable: true,
  384. configurable: true
  385. });
  386. Object.defineProperty(DxoLabelComponent.prototype, "useNodeColors", {
  387. get: function () {
  388. return this._getOption('useNodeColors');
  389. },
  390. set: function (value) {
  391. this._setOption('useNodeColors', value);
  392. },
  393. enumerable: true,
  394. configurable: true
  395. });
  396. Object.defineProperty(DxoLabelComponent.prototype, "dataField", {
  397. get: function () {
  398. return this._getOption('dataField');
  399. },
  400. set: function (value) {
  401. this._setOption('dataField', value);
  402. },
  403. enumerable: true,
  404. configurable: true
  405. });
  406. Object.defineProperty(DxoLabelComponent.prototype, "enabled", {
  407. get: function () {
  408. return this._getOption('enabled');
  409. },
  410. set: function (value) {
  411. this._setOption('enabled', value);
  412. },
  413. enumerable: true,
  414. configurable: true
  415. });
  416. Object.defineProperty(DxoLabelComponent.prototype, "_optionPath", {
  417. get: function () {
  418. return 'label';
  419. },
  420. enumerable: true,
  421. configurable: true
  422. });
  423. DxoLabelComponent.decorators = [
  424. { type: core_1.Component, args: [{
  425. selector: 'dxo-label',
  426. template: '',
  427. styles: [''],
  428. providers: [nested_option_1.NestedOptionHost]
  429. },] },
  430. ];
  431. /** @nocollapse */
  432. DxoLabelComponent.ctorParameters = function () { return [
  433. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.SkipSelf }, { type: core_1.Host },] },
  434. { type: nested_option_1.NestedOptionHost, decorators: [{ type: core_1.Host },] },
  435. ]; };
  436. DxoLabelComponent.propDecorators = {
  437. "connectorColor": [{ type: core_1.Input },],
  438. "connectorWidth": [{ type: core_1.Input },],
  439. "customizeText": [{ type: core_1.Input },],
  440. "font": [{ type: core_1.Input },],
  441. "format": [{ type: core_1.Input },],
  442. "indent": [{ type: core_1.Input },],
  443. "visible": [{ type: core_1.Input },],
  444. "horizontalAlignment": [{ type: core_1.Input },],
  445. "position": [{ type: core_1.Input },],
  446. "text": [{ type: core_1.Input },],
  447. "verticalAlignment": [{ type: core_1.Input },],
  448. "alignment": [{ type: core_1.Input },],
  449. "customizeHint": [{ type: core_1.Input },],
  450. "displayMode": [{ type: core_1.Input },],
  451. "indentFromAxis": [{ type: core_1.Input },],
  452. "overlappingBehavior": [{ type: core_1.Input },],
  453. "rotationAngle": [{ type: core_1.Input },],
  454. "staggeringSpacing": [{ type: core_1.Input },],
  455. "textOverflow": [{ type: core_1.Input },],
  456. "wordWrap": [{ type: core_1.Input },],
  457. "argumentFormat": [{ type: core_1.Input },],
  458. "backgroundColor": [{ type: core_1.Input },],
  459. "border": [{ type: core_1.Input },],
  460. "connector": [{ type: core_1.Input },],
  461. "horizontalOffset": [{ type: core_1.Input },],
  462. "showForZeroValues": [{ type: core_1.Input },],
  463. "verticalOffset": [{ type: core_1.Input },],
  464. "hideFirstOrLast": [{ type: core_1.Input },],
  465. "indentFromTick": [{ type: core_1.Input },],
  466. "useRangeColors": [{ type: core_1.Input },],
  467. "location": [{ type: core_1.Input },],
  468. "showColon": [{ type: core_1.Input },],
  469. "radialOffset": [{ type: core_1.Input },],
  470. "topIndent": [{ type: core_1.Input },],
  471. "shadow": [{ type: core_1.Input },],
  472. "useNodeColors": [{ type: core_1.Input },],
  473. "dataField": [{ type: core_1.Input },],
  474. "enabled": [{ type: core_1.Input },],
  475. };
  476. return DxoLabelComponent;
  477. }(nested_option_2.NestedOption));
  478. exports.DxoLabelComponent = DxoLabelComponent;
  479. var DxoLabelModule = (function () {
  480. function DxoLabelModule() {
  481. }
  482. DxoLabelModule.decorators = [
  483. { type: core_1.NgModule, args: [{
  484. declarations: [
  485. DxoLabelComponent
  486. ],
  487. exports: [
  488. DxoLabelComponent
  489. ],
  490. },] },
  491. ];
  492. return DxoLabelModule;
  493. }());
  494. exports.DxoLabelModule = DxoLabelModule;
  495. //# sourceMappingURL=label.js.map