text-box.js 28 KB

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