number-box.js 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740
  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 platform_browser_1 = require("@angular/platform-browser");
  26. var platform_browser_2 = require("@angular/platform-browser");
  27. var core_1 = require("@angular/core");
  28. var number_box_1 = require("devextreme/ui/number_box");
  29. var forms_1 = require("@angular/forms");
  30. var component_1 = require("../core/component");
  31. var template_host_1 = require("../core/template-host");
  32. var integration_1 = require("../core/integration");
  33. var template_1 = require("../core/template");
  34. var nested_option_1 = require("../core/nested-option");
  35. var watcher_helper_1 = require("../core/watcher-helper");
  36. var iterable_differ_helper_1 = require("../core/iterable-differ-helper");
  37. var button_dxi_1 = require("./nested/button-dxi");
  38. var options_1 = require("./nested/options");
  39. var format_1 = require("./nested/format");
  40. var button_dxi_2 = require("./nested/button-dxi");
  41. var CUSTOM_VALUE_ACCESSOR_PROVIDER = {
  42. provide: forms_1.NG_VALUE_ACCESSOR,
  43. useExisting: core_1.forwardRef(function () { return DxNumberBoxComponent; }),
  44. multi: true
  45. };
  46. /**
  47. * The NumberBox is a widget that displays a numeric value and allows a user to modify it by typing in a value, and incrementing or decrementing it using the keyboard or mouse.
  48. */
  49. var DxNumberBoxComponent = (function (_super) {
  50. __extends(DxNumberBoxComponent, _super);
  51. function DxNumberBoxComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  52. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  53. _this._watcherHelper = _watcherHelper;
  54. _this._idh = _idh;
  55. _this.touched = function (_) { };
  56. _this._createEventEmitters([
  57. { subscribe: 'change', emit: 'onChange' },
  58. { subscribe: 'contentReady', emit: 'onContentReady' },
  59. { subscribe: 'copy', emit: 'onCopy' },
  60. { subscribe: 'cut', emit: 'onCut' },
  61. { subscribe: 'disposing', emit: 'onDisposing' },
  62. { subscribe: 'enterKey', emit: 'onEnterKey' },
  63. { subscribe: 'focusIn', emit: 'onFocusIn' },
  64. { subscribe: 'focusOut', emit: 'onFocusOut' },
  65. { subscribe: 'initialized', emit: 'onInitialized' },
  66. { subscribe: 'input', emit: 'onInput' },
  67. { subscribe: 'keyDown', emit: 'onKeyDown' },
  68. { subscribe: 'keyPress', emit: 'onKeyPress' },
  69. { subscribe: 'keyUp', emit: 'onKeyUp' },
  70. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  71. { subscribe: 'paste', emit: 'onPaste' },
  72. { subscribe: 'valueChanged', emit: 'onValueChanged' },
  73. { emit: 'accessKeyChange' },
  74. { emit: 'activeStateEnabledChange' },
  75. { emit: 'buttonsChange' },
  76. { emit: 'disabledChange' },
  77. { emit: 'elementAttrChange' },
  78. { emit: 'focusStateEnabledChange' },
  79. { emit: 'formatChange' },
  80. { emit: 'heightChange' },
  81. { emit: 'hintChange' },
  82. { emit: 'hoverStateEnabledChange' },
  83. { emit: 'inputAttrChange' },
  84. { emit: 'invalidValueMessageChange' },
  85. { emit: 'isValidChange' },
  86. { emit: 'maxChange' },
  87. { emit: 'minChange' },
  88. { emit: 'modeChange' },
  89. { emit: 'nameChange' },
  90. { emit: 'placeholderChange' },
  91. { emit: 'readOnlyChange' },
  92. { emit: 'rtlEnabledChange' },
  93. { emit: 'showClearButtonChange' },
  94. { emit: 'showSpinButtonsChange' },
  95. { emit: 'stepChange' },
  96. { emit: 'stylingModeChange' },
  97. { emit: 'tabIndexChange' },
  98. { emit: 'textChange' },
  99. { emit: 'useLargeSpinButtonsChange' },
  100. { emit: 'validationErrorChange' },
  101. { emit: 'validationMessageModeChange' },
  102. { emit: 'valueChange' },
  103. { emit: 'valueChangeEventChange' },
  104. { emit: 'visibleChange' },
  105. { emit: 'widthChange' },
  106. { emit: 'onBlur' }
  107. ]);
  108. _this._idh.setHost(_this);
  109. optionHost.setHost(_this);
  110. return _this;
  111. }
  112. Object.defineProperty(DxNumberBoxComponent.prototype, "accessKey", {
  113. get: /**
  114. * Specifies the shortcut key that sets focus on the widget.
  115. */
  116. function () {
  117. return this._getOption('accessKey');
  118. },
  119. set: function (value) {
  120. this._setOption('accessKey', value);
  121. },
  122. enumerable: true,
  123. configurable: true
  124. });
  125. Object.defineProperty(DxNumberBoxComponent.prototype, "activeStateEnabled", {
  126. get: /**
  127. * Specifies whether or not the widget changes its state when interacting with a user.
  128. */
  129. function () {
  130. return this._getOption('activeStateEnabled');
  131. },
  132. set: function (value) {
  133. this._setOption('activeStateEnabled', value);
  134. },
  135. enumerable: true,
  136. configurable: true
  137. });
  138. Object.defineProperty(DxNumberBoxComponent.prototype, "buttons", {
  139. get: /**
  140. * Allows you to add custom buttons to the input text field.
  141. */
  142. function () {
  143. return this._getOption('buttons');
  144. },
  145. set: function (value) {
  146. this._setOption('buttons', value);
  147. },
  148. enumerable: true,
  149. configurable: true
  150. });
  151. Object.defineProperty(DxNumberBoxComponent.prototype, "disabled", {
  152. get: /**
  153. * Specifies whether the widget responds to user interaction.
  154. */
  155. function () {
  156. return this._getOption('disabled');
  157. },
  158. set: function (value) {
  159. this._setOption('disabled', value);
  160. },
  161. enumerable: true,
  162. configurable: true
  163. });
  164. Object.defineProperty(DxNumberBoxComponent.prototype, "elementAttr", {
  165. get: /**
  166. * Specifies the attributes to be attached to the widget's root element.
  167. */
  168. function () {
  169. return this._getOption('elementAttr');
  170. },
  171. set: function (value) {
  172. this._setOption('elementAttr', value);
  173. },
  174. enumerable: true,
  175. configurable: true
  176. });
  177. Object.defineProperty(DxNumberBoxComponent.prototype, "focusStateEnabled", {
  178. get: /**
  179. * Specifies whether the widget can be focused using keyboard navigation.
  180. */
  181. function () {
  182. return this._getOption('focusStateEnabled');
  183. },
  184. set: function (value) {
  185. this._setOption('focusStateEnabled', value);
  186. },
  187. enumerable: true,
  188. configurable: true
  189. });
  190. Object.defineProperty(DxNumberBoxComponent.prototype, "format", {
  191. get: /**
  192. * Specifies the value's display format and controls user input accordingly.
  193. */
  194. function () {
  195. return this._getOption('format');
  196. },
  197. set: function (value) {
  198. this._setOption('format', value);
  199. },
  200. enumerable: true,
  201. configurable: true
  202. });
  203. Object.defineProperty(DxNumberBoxComponent.prototype, "height", {
  204. get: /**
  205. * Specifies the widget's height.
  206. */
  207. function () {
  208. return this._getOption('height');
  209. },
  210. set: function (value) {
  211. this._setOption('height', value);
  212. },
  213. enumerable: true,
  214. configurable: true
  215. });
  216. Object.defineProperty(DxNumberBoxComponent.prototype, "hint", {
  217. get: /**
  218. * Specifies text for a hint that appears when a user pauses on the widget.
  219. */
  220. function () {
  221. return this._getOption('hint');
  222. },
  223. set: function (value) {
  224. this._setOption('hint', value);
  225. },
  226. enumerable: true,
  227. configurable: true
  228. });
  229. Object.defineProperty(DxNumberBoxComponent.prototype, "hoverStateEnabled", {
  230. get: /**
  231. * Specifies whether the widget changes its state when a user pauses on it.
  232. */
  233. function () {
  234. return this._getOption('hoverStateEnabled');
  235. },
  236. set: function (value) {
  237. this._setOption('hoverStateEnabled', value);
  238. },
  239. enumerable: true,
  240. configurable: true
  241. });
  242. Object.defineProperty(DxNumberBoxComponent.prototype, "inputAttr", {
  243. get: /**
  244. * Specifies the attributes to be passed on to the underlying HTML element.
  245. */
  246. function () {
  247. return this._getOption('inputAttr');
  248. },
  249. set: function (value) {
  250. this._setOption('inputAttr', value);
  251. },
  252. enumerable: true,
  253. configurable: true
  254. });
  255. Object.defineProperty(DxNumberBoxComponent.prototype, "invalidValueMessage", {
  256. get: /**
  257. * Specifies the text of the message displayed if the specified value is not a number.
  258. */
  259. function () {
  260. return this._getOption('invalidValueMessage');
  261. },
  262. set: function (value) {
  263. this._setOption('invalidValueMessage', value);
  264. },
  265. enumerable: true,
  266. configurable: true
  267. });
  268. Object.defineProperty(DxNumberBoxComponent.prototype, "isValid", {
  269. get: /**
  270. * Specifies whether the editor's value is valid.
  271. */
  272. function () {
  273. return this._getOption('isValid');
  274. },
  275. set: function (value) {
  276. this._setOption('isValid', value);
  277. },
  278. enumerable: true,
  279. configurable: true
  280. });
  281. Object.defineProperty(DxNumberBoxComponent.prototype, "max", {
  282. get: /**
  283. * The maximum value accepted by the number box.
  284. */
  285. function () {
  286. return this._getOption('max');
  287. },
  288. set: function (value) {
  289. this._setOption('max', value);
  290. },
  291. enumerable: true,
  292. configurable: true
  293. });
  294. Object.defineProperty(DxNumberBoxComponent.prototype, "min", {
  295. get: /**
  296. * The minimum value accepted by the number box.
  297. */
  298. function () {
  299. return this._getOption('min');
  300. },
  301. set: function (value) {
  302. this._setOption('min', value);
  303. },
  304. enumerable: true,
  305. configurable: true
  306. });
  307. Object.defineProperty(DxNumberBoxComponent.prototype, "mode", {
  308. get: /**
  309. * Specifies the value to be passed to the type attribute of the underlying `` element.
  310. */
  311. function () {
  312. return this._getOption('mode');
  313. },
  314. set: function (value) {
  315. this._setOption('mode', value);
  316. },
  317. enumerable: true,
  318. configurable: true
  319. });
  320. Object.defineProperty(DxNumberBoxComponent.prototype, "name", {
  321. get: /**
  322. * The value to be assigned to the `name` attribute of the underlying HTML element.
  323. */
  324. function () {
  325. return this._getOption('name');
  326. },
  327. set: function (value) {
  328. this._setOption('name', value);
  329. },
  330. enumerable: true,
  331. configurable: true
  332. });
  333. Object.defineProperty(DxNumberBoxComponent.prototype, "placeholder", {
  334. get: /**
  335. * The text displayed by the widget when the widget value is empty.
  336. */
  337. function () {
  338. return this._getOption('placeholder');
  339. },
  340. set: function (value) {
  341. this._setOption('placeholder', value);
  342. },
  343. enumerable: true,
  344. configurable: true
  345. });
  346. Object.defineProperty(DxNumberBoxComponent.prototype, "readOnly", {
  347. get: /**
  348. * Specifies whether the editor is read-only.
  349. */
  350. function () {
  351. return this._getOption('readOnly');
  352. },
  353. set: function (value) {
  354. this._setOption('readOnly', value);
  355. },
  356. enumerable: true,
  357. configurable: true
  358. });
  359. Object.defineProperty(DxNumberBoxComponent.prototype, "rtlEnabled", {
  360. get: /**
  361. * Switches the widget to a right-to-left representation.
  362. */
  363. function () {
  364. return this._getOption('rtlEnabled');
  365. },
  366. set: function (value) {
  367. this._setOption('rtlEnabled', value);
  368. },
  369. enumerable: true,
  370. configurable: true
  371. });
  372. Object.defineProperty(DxNumberBoxComponent.prototype, "showClearButton", {
  373. get: /**
  374. * Specifies whether to display the Clear button in the widget.
  375. */
  376. function () {
  377. return this._getOption('showClearButton');
  378. },
  379. set: function (value) {
  380. this._setOption('showClearButton', value);
  381. },
  382. enumerable: true,
  383. configurable: true
  384. });
  385. Object.defineProperty(DxNumberBoxComponent.prototype, "showSpinButtons", {
  386. get: /**
  387. * Specifies whether to show the buttons that change the value by a step.
  388. */
  389. function () {
  390. return this._getOption('showSpinButtons');
  391. },
  392. set: function (value) {
  393. this._setOption('showSpinButtons', value);
  394. },
  395. enumerable: true,
  396. configurable: true
  397. });
  398. Object.defineProperty(DxNumberBoxComponent.prototype, "step", {
  399. get: /**
  400. * Specifies how much the widget's value changes when using the spin buttons, Up/Down arrow keys, or mouse wheel.
  401. */
  402. function () {
  403. return this._getOption('step');
  404. },
  405. set: function (value) {
  406. this._setOption('step', value);
  407. },
  408. enumerable: true,
  409. configurable: true
  410. });
  411. Object.defineProperty(DxNumberBoxComponent.prototype, "stylingMode", {
  412. get: /**
  413. * Specifies how the widget's text field is styled.
  414. */
  415. function () {
  416. return this._getOption('stylingMode');
  417. },
  418. set: function (value) {
  419. this._setOption('stylingMode', value);
  420. },
  421. enumerable: true,
  422. configurable: true
  423. });
  424. Object.defineProperty(DxNumberBoxComponent.prototype, "tabIndex", {
  425. get: /**
  426. * Specifies the number of the element when the Tab key is used for navigating.
  427. */
  428. function () {
  429. return this._getOption('tabIndex');
  430. },
  431. set: function (value) {
  432. this._setOption('tabIndex', value);
  433. },
  434. enumerable: true,
  435. configurable: true
  436. });
  437. Object.defineProperty(DxNumberBoxComponent.prototype, "text", {
  438. get: /**
  439. * The read-only option that holds the text displayed by the widget input element.
  440. */
  441. function () {
  442. return this._getOption('text');
  443. },
  444. set: function (value) {
  445. this._setOption('text', value);
  446. },
  447. enumerable: true,
  448. configurable: true
  449. });
  450. Object.defineProperty(DxNumberBoxComponent.prototype, "useLargeSpinButtons", {
  451. get: /**
  452. * Specifies whether to use touch friendly spin buttons. Applies only if showSpinButtons is true.
  453. */
  454. function () {
  455. return this._getOption('useLargeSpinButtons');
  456. },
  457. set: function (value) {
  458. this._setOption('useLargeSpinButtons', value);
  459. },
  460. enumerable: true,
  461. configurable: true
  462. });
  463. Object.defineProperty(DxNumberBoxComponent.prototype, "validationError", {
  464. get: /**
  465. * Specifies information on the validation error when using a custom validation engine. Should be changed at runtime along with the isValid option.
  466. */
  467. function () {
  468. return this._getOption('validationError');
  469. },
  470. set: function (value) {
  471. this._setOption('validationError', value);
  472. },
  473. enumerable: true,
  474. configurable: true
  475. });
  476. Object.defineProperty(DxNumberBoxComponent.prototype, "validationMessageMode", {
  477. get: /**
  478. * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.
  479. */
  480. function () {
  481. return this._getOption('validationMessageMode');
  482. },
  483. set: function (value) {
  484. this._setOption('validationMessageMode', value);
  485. },
  486. enumerable: true,
  487. configurable: true
  488. });
  489. Object.defineProperty(DxNumberBoxComponent.prototype, "value", {
  490. get: /**
  491. * The current number box value.
  492. */
  493. function () {
  494. return this._getOption('value');
  495. },
  496. set: function (value) {
  497. this._setOption('value', value);
  498. },
  499. enumerable: true,
  500. configurable: true
  501. });
  502. Object.defineProperty(DxNumberBoxComponent.prototype, "valueChangeEvent", {
  503. get: /**
  504. * Specifies the DOM events after which the widget's value should be updated.
  505. */
  506. function () {
  507. return this._getOption('valueChangeEvent');
  508. },
  509. set: function (value) {
  510. this._setOption('valueChangeEvent', value);
  511. },
  512. enumerable: true,
  513. configurable: true
  514. });
  515. Object.defineProperty(DxNumberBoxComponent.prototype, "visible", {
  516. get: /**
  517. * Specifies whether the widget is visible.
  518. */
  519. function () {
  520. return this._getOption('visible');
  521. },
  522. set: function (value) {
  523. this._setOption('visible', value);
  524. },
  525. enumerable: true,
  526. configurable: true
  527. });
  528. Object.defineProperty(DxNumberBoxComponent.prototype, "width", {
  529. get: /**
  530. * Specifies the widget's width.
  531. */
  532. function () {
  533. return this._getOption('width');
  534. },
  535. set: function (value) {
  536. this._setOption('width', value);
  537. },
  538. enumerable: true,
  539. configurable: true
  540. });
  541. DxNumberBoxComponent.prototype.change = function (_) { };
  542. Object.defineProperty(DxNumberBoxComponent.prototype, "buttonsChildren", {
  543. get: function () {
  544. return this._getOption('buttons');
  545. },
  546. set: function (value) {
  547. this.setChildren('buttons', value);
  548. },
  549. enumerable: true,
  550. configurable: true
  551. });
  552. DxNumberBoxComponent.prototype._createInstance = function (element, options) {
  553. return new number_box_1.default(element, options);
  554. };
  555. DxNumberBoxComponent.prototype.writeValue = function (value) {
  556. this.eventHelper.lockedValueChangeEvent = true;
  557. this.value = value;
  558. this.eventHelper.lockedValueChangeEvent = false;
  559. };
  560. DxNumberBoxComponent.prototype.setDisabledState = function (isDisabled) {
  561. this.disabled = isDisabled;
  562. };
  563. DxNumberBoxComponent.prototype.registerOnChange = function (fn) { this.change = fn; };
  564. DxNumberBoxComponent.prototype.registerOnTouched = function (fn) { this.touched = fn; };
  565. DxNumberBoxComponent.prototype._createWidget = function (element) {
  566. var _this = this;
  567. _super.prototype._createWidget.call(this, element);
  568. this.instance.on('focusOut', function (e) {
  569. _this.eventHelper.fireNgEvent('onBlur', [e]);
  570. });
  571. };
  572. DxNumberBoxComponent.prototype.ngOnDestroy = function () {
  573. this._destroyWidget();
  574. };
  575. DxNumberBoxComponent.prototype.ngOnChanges = function (changes) {
  576. _super.prototype.ngOnChanges.call(this, changes);
  577. this.setupChanges('buttons', changes);
  578. };
  579. DxNumberBoxComponent.prototype.setupChanges = function (prop, changes) {
  580. if (!(prop in this._optionsToUpdate)) {
  581. this._idh.setup(prop, changes);
  582. }
  583. };
  584. DxNumberBoxComponent.prototype.ngDoCheck = function () {
  585. this._idh.doCheck('buttons');
  586. this._watcherHelper.checkWatchers();
  587. _super.prototype.ngDoCheck.call(this);
  588. _super.prototype.clearChangedOptions.call(this);
  589. };
  590. DxNumberBoxComponent.prototype._setOption = function (name, value) {
  591. var isSetup = this._idh.setupSingle(name, value);
  592. var isChanged = this._idh.getChanges(name, value) !== null;
  593. if (isSetup || isChanged) {
  594. _super.prototype._setOption.call(this, name, value);
  595. }
  596. };
  597. DxNumberBoxComponent.decorators = [
  598. { type: core_1.Component, args: [{
  599. selector: 'dx-number-box',
  600. template: '',
  601. providers: [
  602. template_host_1.DxTemplateHost,
  603. watcher_helper_1.WatcherHelper,
  604. CUSTOM_VALUE_ACCESSOR_PROVIDER,
  605. nested_option_1.NestedOptionHost,
  606. iterable_differ_helper_1.IterableDifferHelper
  607. ]
  608. },] },
  609. ];
  610. /** @nocollapse */
  611. DxNumberBoxComponent.ctorParameters = function () { return [
  612. { type: core_1.ElementRef, },
  613. { type: core_1.NgZone, },
  614. { type: template_host_1.DxTemplateHost, },
  615. { type: watcher_helper_1.WatcherHelper, },
  616. { type: iterable_differ_helper_1.IterableDifferHelper, },
  617. { type: nested_option_1.NestedOptionHost, },
  618. { type: platform_browser_2.TransferState, },
  619. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  620. ]; };
  621. DxNumberBoxComponent.propDecorators = {
  622. "accessKey": [{ type: core_1.Input },],
  623. "activeStateEnabled": [{ type: core_1.Input },],
  624. "buttons": [{ type: core_1.Input },],
  625. "disabled": [{ type: core_1.Input },],
  626. "elementAttr": [{ type: core_1.Input },],
  627. "focusStateEnabled": [{ type: core_1.Input },],
  628. "format": [{ type: core_1.Input },],
  629. "height": [{ type: core_1.Input },],
  630. "hint": [{ type: core_1.Input },],
  631. "hoverStateEnabled": [{ type: core_1.Input },],
  632. "inputAttr": [{ type: core_1.Input },],
  633. "invalidValueMessage": [{ type: core_1.Input },],
  634. "isValid": [{ type: core_1.Input },],
  635. "max": [{ type: core_1.Input },],
  636. "min": [{ type: core_1.Input },],
  637. "mode": [{ type: core_1.Input },],
  638. "name": [{ type: core_1.Input },],
  639. "placeholder": [{ type: core_1.Input },],
  640. "readOnly": [{ type: core_1.Input },],
  641. "rtlEnabled": [{ type: core_1.Input },],
  642. "showClearButton": [{ type: core_1.Input },],
  643. "showSpinButtons": [{ type: core_1.Input },],
  644. "step": [{ type: core_1.Input },],
  645. "stylingMode": [{ type: core_1.Input },],
  646. "tabIndex": [{ type: core_1.Input },],
  647. "text": [{ type: core_1.Input },],
  648. "useLargeSpinButtons": [{ type: core_1.Input },],
  649. "validationError": [{ type: core_1.Input },],
  650. "validationMessageMode": [{ type: core_1.Input },],
  651. "value": [{ type: core_1.Input },],
  652. "valueChangeEvent": [{ type: core_1.Input },],
  653. "visible": [{ type: core_1.Input },],
  654. "width": [{ type: core_1.Input },],
  655. "onChange": [{ type: core_1.Output },],
  656. "onContentReady": [{ type: core_1.Output },],
  657. "onCopy": [{ type: core_1.Output },],
  658. "onCut": [{ type: core_1.Output },],
  659. "onDisposing": [{ type: core_1.Output },],
  660. "onEnterKey": [{ type: core_1.Output },],
  661. "onFocusIn": [{ type: core_1.Output },],
  662. "onFocusOut": [{ type: core_1.Output },],
  663. "onInitialized": [{ type: core_1.Output },],
  664. "onInput": [{ type: core_1.Output },],
  665. "onKeyDown": [{ type: core_1.Output },],
  666. "onKeyPress": [{ type: core_1.Output },],
  667. "onKeyUp": [{ type: core_1.Output },],
  668. "onOptionChanged": [{ type: core_1.Output },],
  669. "onPaste": [{ type: core_1.Output },],
  670. "onValueChanged": [{ type: core_1.Output },],
  671. "accessKeyChange": [{ type: core_1.Output },],
  672. "activeStateEnabledChange": [{ type: core_1.Output },],
  673. "buttonsChange": [{ type: core_1.Output },],
  674. "disabledChange": [{ type: core_1.Output },],
  675. "elementAttrChange": [{ type: core_1.Output },],
  676. "focusStateEnabledChange": [{ type: core_1.Output },],
  677. "formatChange": [{ type: core_1.Output },],
  678. "heightChange": [{ type: core_1.Output },],
  679. "hintChange": [{ type: core_1.Output },],
  680. "hoverStateEnabledChange": [{ type: core_1.Output },],
  681. "inputAttrChange": [{ type: core_1.Output },],
  682. "invalidValueMessageChange": [{ type: core_1.Output },],
  683. "isValidChange": [{ type: core_1.Output },],
  684. "maxChange": [{ type: core_1.Output },],
  685. "minChange": [{ type: core_1.Output },],
  686. "modeChange": [{ type: core_1.Output },],
  687. "nameChange": [{ type: core_1.Output },],
  688. "placeholderChange": [{ type: core_1.Output },],
  689. "readOnlyChange": [{ type: core_1.Output },],
  690. "rtlEnabledChange": [{ type: core_1.Output },],
  691. "showClearButtonChange": [{ type: core_1.Output },],
  692. "showSpinButtonsChange": [{ type: core_1.Output },],
  693. "stepChange": [{ type: core_1.Output },],
  694. "stylingModeChange": [{ type: core_1.Output },],
  695. "tabIndexChange": [{ type: core_1.Output },],
  696. "textChange": [{ type: core_1.Output },],
  697. "useLargeSpinButtonsChange": [{ type: core_1.Output },],
  698. "validationErrorChange": [{ type: core_1.Output },],
  699. "validationMessageModeChange": [{ type: core_1.Output },],
  700. "valueChange": [{ type: core_1.Output },],
  701. "valueChangeEventChange": [{ type: core_1.Output },],
  702. "visibleChange": [{ type: core_1.Output },],
  703. "widthChange": [{ type: core_1.Output },],
  704. "onBlur": [{ type: core_1.Output },],
  705. "change": [{ type: core_1.HostListener, args: ['valueChange', ['$event'],] },],
  706. "touched": [{ type: core_1.HostListener, args: ['onBlur', ['$event'],] },],
  707. "buttonsChildren": [{ type: core_1.ContentChildren, args: [button_dxi_2.DxiButtonComponent,] },],
  708. };
  709. return DxNumberBoxComponent;
  710. }(component_1.DxComponent));
  711. exports.DxNumberBoxComponent = DxNumberBoxComponent;
  712. var DxNumberBoxModule = (function () {
  713. function DxNumberBoxModule() {
  714. }
  715. DxNumberBoxModule.decorators = [
  716. { type: core_1.NgModule, args: [{
  717. imports: [
  718. button_dxi_1.DxiButtonModule,
  719. options_1.DxoOptionsModule,
  720. format_1.DxoFormatModule,
  721. integration_1.DxIntegrationModule,
  722. template_1.DxTemplateModule,
  723. platform_browser_1.BrowserTransferStateModule
  724. ],
  725. declarations: [
  726. DxNumberBoxComponent
  727. ],
  728. exports: [
  729. DxNumberBoxComponent,
  730. button_dxi_1.DxiButtonModule,
  731. options_1.DxoOptionsModule,
  732. format_1.DxoFormatModule,
  733. template_1.DxTemplateModule
  734. ]
  735. },] },
  736. ];
  737. return DxNumberBoxModule;
  738. }());
  739. exports.DxNumberBoxModule = DxNumberBoxModule;
  740. //# sourceMappingURL=number-box.js.map