lookup.js 49 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320
  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 lookup_1 = require("devextreme/ui/lookup");
  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 animation_1 = require("./nested/animation");
  38. var hide_1 = require("./nested/hide");
  39. var show_1 = require("./nested/show");
  40. var item_dxi_1 = require("./nested/item-dxi");
  41. var position_1 = require("./nested/position");
  42. var at_1 = require("./nested/at");
  43. var boundary_offset_1 = require("./nested/boundary-offset");
  44. var collision_1 = require("./nested/collision");
  45. var my_1 = require("./nested/my");
  46. var offset_1 = require("./nested/offset");
  47. var item_dxi_2 = require("./nested/item-dxi");
  48. var CUSTOM_VALUE_ACCESSOR_PROVIDER = {
  49. provide: forms_1.NG_VALUE_ACCESSOR,
  50. useExisting: core_1.forwardRef(function () { return DxLookupComponent; }),
  51. multi: true
  52. };
  53. /**
  54. * The Lookup is a widget that allows an end user to search for an item in a collection shown in a drop-down menu.
  55. */
  56. var DxLookupComponent = (function (_super) {
  57. __extends(DxLookupComponent, _super);
  58. function DxLookupComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  59. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  60. _this._watcherHelper = _watcherHelper;
  61. _this._idh = _idh;
  62. _this.touched = function (_) { };
  63. _this._createEventEmitters([
  64. { subscribe: 'closed', emit: 'onClosed' },
  65. { subscribe: 'contentReady', emit: 'onContentReady' },
  66. { subscribe: 'disposing', emit: 'onDisposing' },
  67. { subscribe: 'initialized', emit: 'onInitialized' },
  68. { subscribe: 'itemClick', emit: 'onItemClick' },
  69. { subscribe: 'opened', emit: 'onOpened' },
  70. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  71. { subscribe: 'pageLoading', emit: 'onPageLoading' },
  72. { subscribe: 'pullRefresh', emit: 'onPullRefresh' },
  73. { subscribe: 'scroll', emit: 'onScroll' },
  74. { subscribe: 'selectionChanged', emit: 'onSelectionChanged' },
  75. { subscribe: 'titleRendered', emit: 'onTitleRendered' },
  76. { subscribe: 'valueChanged', emit: 'onValueChanged' },
  77. { emit: 'accessKeyChange' },
  78. { emit: 'activeStateEnabledChange' },
  79. { emit: 'animationChange' },
  80. { emit: 'applyButtonTextChange' },
  81. { emit: 'applyValueModeChange' },
  82. { emit: 'cancelButtonTextChange' },
  83. { emit: 'cleanSearchOnOpeningChange' },
  84. { emit: 'clearButtonTextChange' },
  85. { emit: 'closeOnOutsideClickChange' },
  86. { emit: 'dataSourceChange' },
  87. { emit: 'deferRenderingChange' },
  88. { emit: 'disabledChange' },
  89. { emit: 'displayExprChange' },
  90. { emit: 'displayValueChange' },
  91. { emit: 'elementAttrChange' },
  92. { emit: 'fieldTemplateChange' },
  93. { emit: 'focusStateEnabledChange' },
  94. { emit: 'fullScreenChange' },
  95. { emit: 'groupedChange' },
  96. { emit: 'groupTemplateChange' },
  97. { emit: 'heightChange' },
  98. { emit: 'hintChange' },
  99. { emit: 'hoverStateEnabledChange' },
  100. { emit: 'inputAttrChange' },
  101. { emit: 'isValidChange' },
  102. { emit: 'itemsChange' },
  103. { emit: 'itemTemplateChange' },
  104. { emit: 'minSearchLengthChange' },
  105. { emit: 'nameChange' },
  106. { emit: 'nextButtonTextChange' },
  107. { emit: 'noDataTextChange' },
  108. { emit: 'openedChange' },
  109. { emit: 'pageLoadingTextChange' },
  110. { emit: 'pageLoadModeChange' },
  111. { emit: 'placeholderChange' },
  112. { emit: 'popupHeightChange' },
  113. { emit: 'popupWidthChange' },
  114. { emit: 'positionChange' },
  115. { emit: 'pulledDownTextChange' },
  116. { emit: 'pullingDownTextChange' },
  117. { emit: 'pullRefreshEnabledChange' },
  118. { emit: 'refreshingTextChange' },
  119. { emit: 'rtlEnabledChange' },
  120. { emit: 'searchEnabledChange' },
  121. { emit: 'searchExprChange' },
  122. { emit: 'searchModeChange' },
  123. { emit: 'searchPlaceholderChange' },
  124. { emit: 'searchTimeoutChange' },
  125. { emit: 'selectedItemChange' },
  126. { emit: 'shadingChange' },
  127. { emit: 'showCancelButtonChange' },
  128. { emit: 'showClearButtonChange' },
  129. { emit: 'showDataBeforeSearchChange' },
  130. { emit: 'showPopupTitleChange' },
  131. { emit: 'stylingModeChange' },
  132. { emit: 'tabIndexChange' },
  133. { emit: 'textChange' },
  134. { emit: 'titleChange' },
  135. { emit: 'titleTemplateChange' },
  136. { emit: 'useNativeScrollingChange' },
  137. { emit: 'usePopoverChange' },
  138. { emit: 'validationErrorChange' },
  139. { emit: 'validationMessageModeChange' },
  140. { emit: 'valueChange' },
  141. { emit: 'valueChangeEventChange' },
  142. { emit: 'valueExprChange' },
  143. { emit: 'visibleChange' },
  144. { emit: 'widthChange' },
  145. { emit: 'onBlur' }
  146. ]);
  147. _this._idh.setHost(_this);
  148. optionHost.setHost(_this);
  149. return _this;
  150. }
  151. Object.defineProperty(DxLookupComponent.prototype, "accessKey", {
  152. get: /**
  153. * Specifies the shortcut key that sets focus on the widget.
  154. */
  155. function () {
  156. return this._getOption('accessKey');
  157. },
  158. set: function (value) {
  159. this._setOption('accessKey', value);
  160. },
  161. enumerable: true,
  162. configurable: true
  163. });
  164. Object.defineProperty(DxLookupComponent.prototype, "activeStateEnabled", {
  165. get: /**
  166. * Specifies whether or not the widget changes its state when interacting with a user.
  167. */
  168. function () {
  169. return this._getOption('activeStateEnabled');
  170. },
  171. set: function (value) {
  172. this._setOption('activeStateEnabled', value);
  173. },
  174. enumerable: true,
  175. configurable: true
  176. });
  177. Object.defineProperty(DxLookupComponent.prototype, "animation", {
  178. get: /**
  179. * Configures widget visibility animations. This object contains two fields: show and hide.
  180. */
  181. function () {
  182. return this._getOption('animation');
  183. },
  184. set: function (value) {
  185. this._setOption('animation', value);
  186. },
  187. enumerable: true,
  188. configurable: true
  189. });
  190. Object.defineProperty(DxLookupComponent.prototype, "applyButtonText", {
  191. get: /**
  192. * The text displayed on the Apply button.
  193. */
  194. function () {
  195. return this._getOption('applyButtonText');
  196. },
  197. set: function (value) {
  198. this._setOption('applyButtonText', value);
  199. },
  200. enumerable: true,
  201. configurable: true
  202. });
  203. Object.defineProperty(DxLookupComponent.prototype, "applyValueMode", {
  204. get: /**
  205. * Specifies the way an end-user applies the selected value.
  206. */
  207. function () {
  208. return this._getOption('applyValueMode');
  209. },
  210. set: function (value) {
  211. this._setOption('applyValueMode', value);
  212. },
  213. enumerable: true,
  214. configurable: true
  215. });
  216. Object.defineProperty(DxLookupComponent.prototype, "cancelButtonText", {
  217. get: /**
  218. * The text displayed on the Cancel button.
  219. */
  220. function () {
  221. return this._getOption('cancelButtonText');
  222. },
  223. set: function (value) {
  224. this._setOption('cancelButtonText', value);
  225. },
  226. enumerable: true,
  227. configurable: true
  228. });
  229. Object.defineProperty(DxLookupComponent.prototype, "cleanSearchOnOpening", {
  230. get: /**
  231. * Specifies whether or not the widget cleans the search box when the popup window is displayed.
  232. */
  233. function () {
  234. return this._getOption('cleanSearchOnOpening');
  235. },
  236. set: function (value) {
  237. this._setOption('cleanSearchOnOpening', value);
  238. },
  239. enumerable: true,
  240. configurable: true
  241. });
  242. Object.defineProperty(DxLookupComponent.prototype, "clearButtonText", {
  243. get: /**
  244. * The text displayed on the Clear button.
  245. */
  246. function () {
  247. return this._getOption('clearButtonText');
  248. },
  249. set: function (value) {
  250. this._setOption('clearButtonText', value);
  251. },
  252. enumerable: true,
  253. configurable: true
  254. });
  255. Object.defineProperty(DxLookupComponent.prototype, "closeOnOutsideClick", {
  256. get: /**
  257. * Specifies whether to close the drop-down menu if a user clicks outside it.
  258. */
  259. function () {
  260. return this._getOption('closeOnOutsideClick');
  261. },
  262. set: function (value) {
  263. this._setOption('closeOnOutsideClick', value);
  264. },
  265. enumerable: true,
  266. configurable: true
  267. });
  268. Object.defineProperty(DxLookupComponent.prototype, "dataSource", {
  269. get: /**
  270. * Binds the widget to data.
  271. */
  272. function () {
  273. return this._getOption('dataSource');
  274. },
  275. set: function (value) {
  276. this._setOption('dataSource', value);
  277. },
  278. enumerable: true,
  279. configurable: true
  280. });
  281. Object.defineProperty(DxLookupComponent.prototype, "deferRendering", {
  282. get: /**
  283. * Specifies whether to render the drop-down field's content when it is displayed. If false, the content is rendered immediately.
  284. */
  285. function () {
  286. return this._getOption('deferRendering');
  287. },
  288. set: function (value) {
  289. this._setOption('deferRendering', value);
  290. },
  291. enumerable: true,
  292. configurable: true
  293. });
  294. Object.defineProperty(DxLookupComponent.prototype, "disabled", {
  295. get: /**
  296. * Specifies whether the widget responds to user interaction.
  297. */
  298. function () {
  299. return this._getOption('disabled');
  300. },
  301. set: function (value) {
  302. this._setOption('disabled', value);
  303. },
  304. enumerable: true,
  305. configurable: true
  306. });
  307. Object.defineProperty(DxLookupComponent.prototype, "displayExpr", {
  308. get: /**
  309. * Specifies the data field whose values should be displayed.
  310. */
  311. function () {
  312. return this._getOption('displayExpr');
  313. },
  314. set: function (value) {
  315. this._setOption('displayExpr', value);
  316. },
  317. enumerable: true,
  318. configurable: true
  319. });
  320. Object.defineProperty(DxLookupComponent.prototype, "displayValue", {
  321. get: /**
  322. * Returns the value currently displayed by the widget.
  323. */
  324. function () {
  325. return this._getOption('displayValue');
  326. },
  327. set: function (value) {
  328. this._setOption('displayValue', value);
  329. },
  330. enumerable: true,
  331. configurable: true
  332. });
  333. Object.defineProperty(DxLookupComponent.prototype, "elementAttr", {
  334. get: /**
  335. * Specifies the attributes to be attached to the widget's root element.
  336. */
  337. function () {
  338. return this._getOption('elementAttr');
  339. },
  340. set: function (value) {
  341. this._setOption('elementAttr', value);
  342. },
  343. enumerable: true,
  344. configurable: true
  345. });
  346. Object.defineProperty(DxLookupComponent.prototype, "fieldTemplate", {
  347. get: /**
  348. * Specifies a custom template for the input field.
  349. */
  350. function () {
  351. return this._getOption('fieldTemplate');
  352. },
  353. set: function (value) {
  354. this._setOption('fieldTemplate', value);
  355. },
  356. enumerable: true,
  357. configurable: true
  358. });
  359. Object.defineProperty(DxLookupComponent.prototype, "focusStateEnabled", {
  360. get: /**
  361. * Specifies whether the widget can be focused using keyboard navigation.
  362. */
  363. function () {
  364. return this._getOption('focusStateEnabled');
  365. },
  366. set: function (value) {
  367. this._setOption('focusStateEnabled', value);
  368. },
  369. enumerable: true,
  370. configurable: true
  371. });
  372. Object.defineProperty(DxLookupComponent.prototype, "fullScreen", {
  373. get: /**
  374. * A Boolean value specifying whether or not to display the lookup in full-screen mode.
  375. */
  376. function () {
  377. return this._getOption('fullScreen');
  378. },
  379. set: function (value) {
  380. this._setOption('fullScreen', value);
  381. },
  382. enumerable: true,
  383. configurable: true
  384. });
  385. Object.defineProperty(DxLookupComponent.prototype, "grouped", {
  386. get: /**
  387. * A Boolean value specifying whether or not to group widget items.
  388. */
  389. function () {
  390. return this._getOption('grouped');
  391. },
  392. set: function (value) {
  393. this._setOption('grouped', value);
  394. },
  395. enumerable: true,
  396. configurable: true
  397. });
  398. Object.defineProperty(DxLookupComponent.prototype, "groupTemplate", {
  399. get: /**
  400. * Specifies a custom template for group captions.
  401. */
  402. function () {
  403. return this._getOption('groupTemplate');
  404. },
  405. set: function (value) {
  406. this._setOption('groupTemplate', value);
  407. },
  408. enumerable: true,
  409. configurable: true
  410. });
  411. Object.defineProperty(DxLookupComponent.prototype, "height", {
  412. get: /**
  413. * Specifies the widget's height.
  414. */
  415. function () {
  416. return this._getOption('height');
  417. },
  418. set: function (value) {
  419. this._setOption('height', value);
  420. },
  421. enumerable: true,
  422. configurable: true
  423. });
  424. Object.defineProperty(DxLookupComponent.prototype, "hint", {
  425. get: /**
  426. * Specifies text for a hint that appears when a user pauses on the widget.
  427. */
  428. function () {
  429. return this._getOption('hint');
  430. },
  431. set: function (value) {
  432. this._setOption('hint', value);
  433. },
  434. enumerable: true,
  435. configurable: true
  436. });
  437. Object.defineProperty(DxLookupComponent.prototype, "hoverStateEnabled", {
  438. get: /**
  439. * Specifies whether the widget changes its state when a user pauses on it.
  440. */
  441. function () {
  442. return this._getOption('hoverStateEnabled');
  443. },
  444. set: function (value) {
  445. this._setOption('hoverStateEnabled', value);
  446. },
  447. enumerable: true,
  448. configurable: true
  449. });
  450. Object.defineProperty(DxLookupComponent.prototype, "inputAttr", {
  451. get: /**
  452. * Specifies the attributes to be passed on to the underlying HTML element.
  453. */
  454. function () {
  455. return this._getOption('inputAttr');
  456. },
  457. set: function (value) {
  458. this._setOption('inputAttr', value);
  459. },
  460. enumerable: true,
  461. configurable: true
  462. });
  463. Object.defineProperty(DxLookupComponent.prototype, "isValid", {
  464. get: /**
  465. * Specifies whether the editor's value is valid.
  466. */
  467. function () {
  468. return this._getOption('isValid');
  469. },
  470. set: function (value) {
  471. this._setOption('isValid', value);
  472. },
  473. enumerable: true,
  474. configurable: true
  475. });
  476. Object.defineProperty(DxLookupComponent.prototype, "items", {
  477. get: /**
  478. * An array of items displayed by the widget.
  479. */
  480. function () {
  481. return this._getOption('items');
  482. },
  483. set: function (value) {
  484. this._setOption('items', value);
  485. },
  486. enumerable: true,
  487. configurable: true
  488. });
  489. Object.defineProperty(DxLookupComponent.prototype, "itemTemplate", {
  490. get: /**
  491. * Specifies a custom template for items.
  492. */
  493. function () {
  494. return this._getOption('itemTemplate');
  495. },
  496. set: function (value) {
  497. this._setOption('itemTemplate', value);
  498. },
  499. enumerable: true,
  500. configurable: true
  501. });
  502. Object.defineProperty(DxLookupComponent.prototype, "minSearchLength", {
  503. get: /**
  504. * The minimum number of characters that must be entered into the text box to begin a search. Applies only if searchEnabled is true.
  505. */
  506. function () {
  507. return this._getOption('minSearchLength');
  508. },
  509. set: function (value) {
  510. this._setOption('minSearchLength', value);
  511. },
  512. enumerable: true,
  513. configurable: true
  514. });
  515. Object.defineProperty(DxLookupComponent.prototype, "name", {
  516. get: /**
  517. * The value to be assigned to the `name` attribute of the underlying HTML element.
  518. */
  519. function () {
  520. return this._getOption('name');
  521. },
  522. set: function (value) {
  523. this._setOption('name', value);
  524. },
  525. enumerable: true,
  526. configurable: true
  527. });
  528. Object.defineProperty(DxLookupComponent.prototype, "nextButtonText", {
  529. get: /**
  530. * The text displayed on the button used to load the next page from the data source.
  531. */
  532. function () {
  533. return this._getOption('nextButtonText');
  534. },
  535. set: function (value) {
  536. this._setOption('nextButtonText', value);
  537. },
  538. enumerable: true,
  539. configurable: true
  540. });
  541. Object.defineProperty(DxLookupComponent.prototype, "noDataText", {
  542. get: /**
  543. * The text or HTML markup displayed by the widget if the item collection is empty.
  544. */
  545. function () {
  546. return this._getOption('noDataText');
  547. },
  548. set: function (value) {
  549. this._setOption('noDataText', value);
  550. },
  551. enumerable: true,
  552. configurable: true
  553. });
  554. Object.defineProperty(DxLookupComponent.prototype, "opened", {
  555. get: /**
  556. * Specifies whether or not the drop-down editor is displayed.
  557. */
  558. function () {
  559. return this._getOption('opened');
  560. },
  561. set: function (value) {
  562. this._setOption('opened', value);
  563. },
  564. enumerable: true,
  565. configurable: true
  566. });
  567. Object.defineProperty(DxLookupComponent.prototype, "pageLoadingText", {
  568. get: /**
  569. * Specifies the text shown in the pullDown panel, which is displayed when the widget is scrolled to the bottom.
  570. */
  571. function () {
  572. return this._getOption('pageLoadingText');
  573. },
  574. set: function (value) {
  575. this._setOption('pageLoadingText', value);
  576. },
  577. enumerable: true,
  578. configurable: true
  579. });
  580. Object.defineProperty(DxLookupComponent.prototype, "pageLoadMode", {
  581. get: /**
  582. * Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked.
  583. */
  584. function () {
  585. return this._getOption('pageLoadMode');
  586. },
  587. set: function (value) {
  588. this._setOption('pageLoadMode', value);
  589. },
  590. enumerable: true,
  591. configurable: true
  592. });
  593. Object.defineProperty(DxLookupComponent.prototype, "placeholder", {
  594. get: /**
  595. * The text displayed by the widget when nothing is selected.
  596. */
  597. function () {
  598. return this._getOption('placeholder');
  599. },
  600. set: function (value) {
  601. this._setOption('placeholder', value);
  602. },
  603. enumerable: true,
  604. configurable: true
  605. });
  606. Object.defineProperty(DxLookupComponent.prototype, "popupHeight", {
  607. get: /**
  608. * Specifies the popup element's height. Applies only if fullScreen is false.
  609. */
  610. function () {
  611. return this._getOption('popupHeight');
  612. },
  613. set: function (value) {
  614. this._setOption('popupHeight', value);
  615. },
  616. enumerable: true,
  617. configurable: true
  618. });
  619. Object.defineProperty(DxLookupComponent.prototype, "popupWidth", {
  620. get: /**
  621. * Specifies the popup element's width. Applies only if fullScreen is false.
  622. */
  623. function () {
  624. return this._getOption('popupWidth');
  625. },
  626. set: function (value) {
  627. this._setOption('popupWidth', value);
  628. },
  629. enumerable: true,
  630. configurable: true
  631. });
  632. Object.defineProperty(DxLookupComponent.prototype, "position", {
  633. get: /**
  634. * An object defining widget positioning options.
  635. */
  636. function () {
  637. return this._getOption('position');
  638. },
  639. set: function (value) {
  640. this._setOption('position', value);
  641. },
  642. enumerable: true,
  643. configurable: true
  644. });
  645. Object.defineProperty(DxLookupComponent.prototype, "pulledDownText", {
  646. get: /**
  647. * Specifies the text displayed in the pullDown panel when the widget is pulled below the refresh threshold.
  648. */
  649. function () {
  650. return this._getOption('pulledDownText');
  651. },
  652. set: function (value) {
  653. this._setOption('pulledDownText', value);
  654. },
  655. enumerable: true,
  656. configurable: true
  657. });
  658. Object.defineProperty(DxLookupComponent.prototype, "pullingDownText", {
  659. get: /**
  660. * Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold.
  661. */
  662. function () {
  663. return this._getOption('pullingDownText');
  664. },
  665. set: function (value) {
  666. this._setOption('pullingDownText', value);
  667. },
  668. enumerable: true,
  669. configurable: true
  670. });
  671. Object.defineProperty(DxLookupComponent.prototype, "pullRefreshEnabled", {
  672. get: /**
  673. * A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture.
  674. */
  675. function () {
  676. return this._getOption('pullRefreshEnabled');
  677. },
  678. set: function (value) {
  679. this._setOption('pullRefreshEnabled', value);
  680. },
  681. enumerable: true,
  682. configurable: true
  683. });
  684. Object.defineProperty(DxLookupComponent.prototype, "refreshingText", {
  685. get: /**
  686. * Specifies the text displayed in the pullDown panel while the widget is being refreshed.
  687. */
  688. function () {
  689. return this._getOption('refreshingText');
  690. },
  691. set: function (value) {
  692. this._setOption('refreshingText', value);
  693. },
  694. enumerable: true,
  695. configurable: true
  696. });
  697. Object.defineProperty(DxLookupComponent.prototype, "rtlEnabled", {
  698. get: /**
  699. * Switches the widget to a right-to-left representation.
  700. */
  701. function () {
  702. return this._getOption('rtlEnabled');
  703. },
  704. set: function (value) {
  705. this._setOption('rtlEnabled', value);
  706. },
  707. enumerable: true,
  708. configurable: true
  709. });
  710. Object.defineProperty(DxLookupComponent.prototype, "searchEnabled", {
  711. get: /**
  712. * Specifies whether the search box is visible.
  713. */
  714. function () {
  715. return this._getOption('searchEnabled');
  716. },
  717. set: function (value) {
  718. this._setOption('searchEnabled', value);
  719. },
  720. enumerable: true,
  721. configurable: true
  722. });
  723. Object.defineProperty(DxLookupComponent.prototype, "searchExpr", {
  724. get: /**
  725. * Specifies the name of a data source item field or an expression whose value is compared to the search criterion.
  726. */
  727. function () {
  728. return this._getOption('searchExpr');
  729. },
  730. set: function (value) {
  731. this._setOption('searchExpr', value);
  732. },
  733. enumerable: true,
  734. configurable: true
  735. });
  736. Object.defineProperty(DxLookupComponent.prototype, "searchMode", {
  737. get: /**
  738. * Specifies a comparison operation used to search widget items.
  739. */
  740. function () {
  741. return this._getOption('searchMode');
  742. },
  743. set: function (value) {
  744. this._setOption('searchMode', value);
  745. },
  746. enumerable: true,
  747. configurable: true
  748. });
  749. Object.defineProperty(DxLookupComponent.prototype, "searchPlaceholder", {
  750. get: /**
  751. * The text that is provided as a hint in the lookup's search bar.
  752. */
  753. function () {
  754. return this._getOption('searchPlaceholder');
  755. },
  756. set: function (value) {
  757. this._setOption('searchPlaceholder', value);
  758. },
  759. enumerable: true,
  760. configurable: true
  761. });
  762. Object.defineProperty(DxLookupComponent.prototype, "searchTimeout", {
  763. get: /**
  764. * Specifies the time delay, in milliseconds, after the last character has been typed in, before a search is executed.
  765. */
  766. function () {
  767. return this._getOption('searchTimeout');
  768. },
  769. set: function (value) {
  770. this._setOption('searchTimeout', value);
  771. },
  772. enumerable: true,
  773. configurable: true
  774. });
  775. Object.defineProperty(DxLookupComponent.prototype, "selectedItem", {
  776. get: /**
  777. * Gets the currently selected item.
  778. */
  779. function () {
  780. return this._getOption('selectedItem');
  781. },
  782. set: function (value) {
  783. this._setOption('selectedItem', value);
  784. },
  785. enumerable: true,
  786. configurable: true
  787. });
  788. Object.defineProperty(DxLookupComponent.prototype, "shading", {
  789. get: /**
  790. * Specifies whether to shade the container when the lookup is active. Applies only if usePopover is false.
  791. */
  792. function () {
  793. return this._getOption('shading');
  794. },
  795. set: function (value) {
  796. this._setOption('shading', value);
  797. },
  798. enumerable: true,
  799. configurable: true
  800. });
  801. Object.defineProperty(DxLookupComponent.prototype, "showCancelButton", {
  802. get: /**
  803. * Specifies whether to display the Cancel button in the lookup window.
  804. */
  805. function () {
  806. return this._getOption('showCancelButton');
  807. },
  808. set: function (value) {
  809. this._setOption('showCancelButton', value);
  810. },
  811. enumerable: true,
  812. configurable: true
  813. });
  814. Object.defineProperty(DxLookupComponent.prototype, "showClearButton", {
  815. get: /**
  816. * Specifies whether or not to display the Clear button in the lookup window.
  817. */
  818. function () {
  819. return this._getOption('showClearButton');
  820. },
  821. set: function (value) {
  822. this._setOption('showClearButton', value);
  823. },
  824. enumerable: true,
  825. configurable: true
  826. });
  827. Object.defineProperty(DxLookupComponent.prototype, "showDataBeforeSearch", {
  828. get: /**
  829. * Specifies whether or not the widget displays unfiltered values until a user types a number of characters exceeding the minSearchLength option value.
  830. */
  831. function () {
  832. return this._getOption('showDataBeforeSearch');
  833. },
  834. set: function (value) {
  835. this._setOption('showDataBeforeSearch', value);
  836. },
  837. enumerable: true,
  838. configurable: true
  839. });
  840. Object.defineProperty(DxLookupComponent.prototype, "showPopupTitle", {
  841. get: /**
  842. * A Boolean value specifying whether or not to display the title in the popup window.
  843. */
  844. function () {
  845. return this._getOption('showPopupTitle');
  846. },
  847. set: function (value) {
  848. this._setOption('showPopupTitle', value);
  849. },
  850. enumerable: true,
  851. configurable: true
  852. });
  853. Object.defineProperty(DxLookupComponent.prototype, "stylingMode", {
  854. get: /**
  855. * Specifies how the widget's text field is styled.
  856. */
  857. function () {
  858. return this._getOption('stylingMode');
  859. },
  860. set: function (value) {
  861. this._setOption('stylingMode', value);
  862. },
  863. enumerable: true,
  864. configurable: true
  865. });
  866. Object.defineProperty(DxLookupComponent.prototype, "tabIndex", {
  867. get: /**
  868. * Specifies the number of the element when the Tab key is used for navigating.
  869. */
  870. function () {
  871. return this._getOption('tabIndex');
  872. },
  873. set: function (value) {
  874. this._setOption('tabIndex', value);
  875. },
  876. enumerable: true,
  877. configurable: true
  878. });
  879. Object.defineProperty(DxLookupComponent.prototype, "text", {
  880. get: /**
  881. * The read-only option that holds the text displayed by the widget input element.
  882. */
  883. function () {
  884. return this._getOption('text');
  885. },
  886. set: function (value) {
  887. this._setOption('text', value);
  888. },
  889. enumerable: true,
  890. configurable: true
  891. });
  892. Object.defineProperty(DxLookupComponent.prototype, "title", {
  893. get: /**
  894. * The title of the lookup window.
  895. */
  896. function () {
  897. return this._getOption('title');
  898. },
  899. set: function (value) {
  900. this._setOption('title', value);
  901. },
  902. enumerable: true,
  903. configurable: true
  904. });
  905. Object.defineProperty(DxLookupComponent.prototype, "titleTemplate", {
  906. get: /**
  907. * Specifies a custom template for the title.
  908. */
  909. function () {
  910. return this._getOption('titleTemplate');
  911. },
  912. set: function (value) {
  913. this._setOption('titleTemplate', value);
  914. },
  915. enumerable: true,
  916. configurable: true
  917. });
  918. Object.defineProperty(DxLookupComponent.prototype, "useNativeScrolling", {
  919. get: /**
  920. * Specifies whether or not the widget uses native scrolling.
  921. */
  922. function () {
  923. return this._getOption('useNativeScrolling');
  924. },
  925. set: function (value) {
  926. this._setOption('useNativeScrolling', value);
  927. },
  928. enumerable: true,
  929. configurable: true
  930. });
  931. Object.defineProperty(DxLookupComponent.prototype, "usePopover", {
  932. get: /**
  933. * Specifies whether or not to show lookup contents in a Popover widget.
  934. */
  935. function () {
  936. return this._getOption('usePopover');
  937. },
  938. set: function (value) {
  939. this._setOption('usePopover', value);
  940. },
  941. enumerable: true,
  942. configurable: true
  943. });
  944. Object.defineProperty(DxLookupComponent.prototype, "validationError", {
  945. get: /**
  946. * Specifies information on the validation error when using a custom validation engine. Should be changed at runtime along with the isValid option.
  947. */
  948. function () {
  949. return this._getOption('validationError');
  950. },
  951. set: function (value) {
  952. this._setOption('validationError', value);
  953. },
  954. enumerable: true,
  955. configurable: true
  956. });
  957. Object.defineProperty(DxLookupComponent.prototype, "validationMessageMode", {
  958. get: /**
  959. * Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed.
  960. */
  961. function () {
  962. return this._getOption('validationMessageMode');
  963. },
  964. set: function (value) {
  965. this._setOption('validationMessageMode', value);
  966. },
  967. enumerable: true,
  968. configurable: true
  969. });
  970. Object.defineProperty(DxLookupComponent.prototype, "value", {
  971. get: /**
  972. * Specifies the currently selected value. May be an object if dataSource contains objects and valueExpr is not set.
  973. */
  974. function () {
  975. return this._getOption('value');
  976. },
  977. set: function (value) {
  978. this._setOption('value', value);
  979. },
  980. enumerable: true,
  981. configurable: true
  982. });
  983. Object.defineProperty(DxLookupComponent.prototype, "valueChangeEvent", {
  984. get: /**
  985. * Specifies the DOM events after which the widget's value should be updated.
  986. */
  987. function () {
  988. return this._getOption('valueChangeEvent');
  989. },
  990. set: function (value) {
  991. this._setOption('valueChangeEvent', value);
  992. },
  993. enumerable: true,
  994. configurable: true
  995. });
  996. Object.defineProperty(DxLookupComponent.prototype, "valueExpr", {
  997. get: /**
  998. * Specifies which data field provides unique values to the widget's value.
  999. */
  1000. function () {
  1001. return this._getOption('valueExpr');
  1002. },
  1003. set: function (value) {
  1004. this._setOption('valueExpr', value);
  1005. },
  1006. enumerable: true,
  1007. configurable: true
  1008. });
  1009. Object.defineProperty(DxLookupComponent.prototype, "visible", {
  1010. get: /**
  1011. * Specifies whether the widget is visible.
  1012. */
  1013. function () {
  1014. return this._getOption('visible');
  1015. },
  1016. set: function (value) {
  1017. this._setOption('visible', value);
  1018. },
  1019. enumerable: true,
  1020. configurable: true
  1021. });
  1022. Object.defineProperty(DxLookupComponent.prototype, "width", {
  1023. get: /**
  1024. * Specifies the widget's width.
  1025. */
  1026. function () {
  1027. return this._getOption('width');
  1028. },
  1029. set: function (value) {
  1030. this._setOption('width', value);
  1031. },
  1032. enumerable: true,
  1033. configurable: true
  1034. });
  1035. DxLookupComponent.prototype.change = function (_) { };
  1036. Object.defineProperty(DxLookupComponent.prototype, "itemsChildren", {
  1037. get: function () {
  1038. return this._getOption('items');
  1039. },
  1040. set: function (value) {
  1041. this.setChildren('items', value);
  1042. },
  1043. enumerable: true,
  1044. configurable: true
  1045. });
  1046. DxLookupComponent.prototype._createInstance = function (element, options) {
  1047. return new lookup_1.default(element, options);
  1048. };
  1049. DxLookupComponent.prototype.writeValue = function (value) {
  1050. this.eventHelper.lockedValueChangeEvent = true;
  1051. this.value = value;
  1052. this.eventHelper.lockedValueChangeEvent = false;
  1053. };
  1054. DxLookupComponent.prototype.setDisabledState = function (isDisabled) {
  1055. this.disabled = isDisabled;
  1056. };
  1057. DxLookupComponent.prototype.registerOnChange = function (fn) { this.change = fn; };
  1058. DxLookupComponent.prototype.registerOnTouched = function (fn) { this.touched = fn; };
  1059. DxLookupComponent.prototype._createWidget = function (element) {
  1060. var _this = this;
  1061. _super.prototype._createWidget.call(this, element);
  1062. this.instance.on('focusOut', function (e) {
  1063. _this.eventHelper.fireNgEvent('onBlur', [e]);
  1064. });
  1065. };
  1066. DxLookupComponent.prototype.ngOnDestroy = function () {
  1067. this._destroyWidget();
  1068. };
  1069. DxLookupComponent.prototype.ngOnChanges = function (changes) {
  1070. _super.prototype.ngOnChanges.call(this, changes);
  1071. this.setupChanges('dataSource', changes);
  1072. this.setupChanges('items', changes);
  1073. this.setupChanges('searchExpr', changes);
  1074. };
  1075. DxLookupComponent.prototype.setupChanges = function (prop, changes) {
  1076. if (!(prop in this._optionsToUpdate)) {
  1077. this._idh.setup(prop, changes);
  1078. }
  1079. };
  1080. DxLookupComponent.prototype.ngDoCheck = function () {
  1081. this._idh.doCheck('dataSource');
  1082. this._idh.doCheck('items');
  1083. this._idh.doCheck('searchExpr');
  1084. this._watcherHelper.checkWatchers();
  1085. _super.prototype.ngDoCheck.call(this);
  1086. _super.prototype.clearChangedOptions.call(this);
  1087. };
  1088. DxLookupComponent.prototype._setOption = function (name, value) {
  1089. var isSetup = this._idh.setupSingle(name, value);
  1090. var isChanged = this._idh.getChanges(name, value) !== null;
  1091. if (isSetup || isChanged) {
  1092. _super.prototype._setOption.call(this, name, value);
  1093. }
  1094. };
  1095. DxLookupComponent.decorators = [
  1096. { type: core_1.Component, args: [{
  1097. selector: 'dx-lookup',
  1098. template: '',
  1099. providers: [
  1100. template_host_1.DxTemplateHost,
  1101. watcher_helper_1.WatcherHelper,
  1102. CUSTOM_VALUE_ACCESSOR_PROVIDER,
  1103. nested_option_1.NestedOptionHost,
  1104. iterable_differ_helper_1.IterableDifferHelper
  1105. ]
  1106. },] },
  1107. ];
  1108. /** @nocollapse */
  1109. DxLookupComponent.ctorParameters = function () { return [
  1110. { type: core_1.ElementRef, },
  1111. { type: core_1.NgZone, },
  1112. { type: template_host_1.DxTemplateHost, },
  1113. { type: watcher_helper_1.WatcherHelper, },
  1114. { type: iterable_differ_helper_1.IterableDifferHelper, },
  1115. { type: nested_option_1.NestedOptionHost, },
  1116. { type: platform_browser_2.TransferState, },
  1117. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  1118. ]; };
  1119. DxLookupComponent.propDecorators = {
  1120. "accessKey": [{ type: core_1.Input },],
  1121. "activeStateEnabled": [{ type: core_1.Input },],
  1122. "animation": [{ type: core_1.Input },],
  1123. "applyButtonText": [{ type: core_1.Input },],
  1124. "applyValueMode": [{ type: core_1.Input },],
  1125. "cancelButtonText": [{ type: core_1.Input },],
  1126. "cleanSearchOnOpening": [{ type: core_1.Input },],
  1127. "clearButtonText": [{ type: core_1.Input },],
  1128. "closeOnOutsideClick": [{ type: core_1.Input },],
  1129. "dataSource": [{ type: core_1.Input },],
  1130. "deferRendering": [{ type: core_1.Input },],
  1131. "disabled": [{ type: core_1.Input },],
  1132. "displayExpr": [{ type: core_1.Input },],
  1133. "displayValue": [{ type: core_1.Input },],
  1134. "elementAttr": [{ type: core_1.Input },],
  1135. "fieldTemplate": [{ type: core_1.Input },],
  1136. "focusStateEnabled": [{ type: core_1.Input },],
  1137. "fullScreen": [{ type: core_1.Input },],
  1138. "grouped": [{ type: core_1.Input },],
  1139. "groupTemplate": [{ type: core_1.Input },],
  1140. "height": [{ type: core_1.Input },],
  1141. "hint": [{ type: core_1.Input },],
  1142. "hoverStateEnabled": [{ type: core_1.Input },],
  1143. "inputAttr": [{ type: core_1.Input },],
  1144. "isValid": [{ type: core_1.Input },],
  1145. "items": [{ type: core_1.Input },],
  1146. "itemTemplate": [{ type: core_1.Input },],
  1147. "minSearchLength": [{ type: core_1.Input },],
  1148. "name": [{ type: core_1.Input },],
  1149. "nextButtonText": [{ type: core_1.Input },],
  1150. "noDataText": [{ type: core_1.Input },],
  1151. "opened": [{ type: core_1.Input },],
  1152. "pageLoadingText": [{ type: core_1.Input },],
  1153. "pageLoadMode": [{ type: core_1.Input },],
  1154. "placeholder": [{ type: core_1.Input },],
  1155. "popupHeight": [{ type: core_1.Input },],
  1156. "popupWidth": [{ type: core_1.Input },],
  1157. "position": [{ type: core_1.Input },],
  1158. "pulledDownText": [{ type: core_1.Input },],
  1159. "pullingDownText": [{ type: core_1.Input },],
  1160. "pullRefreshEnabled": [{ type: core_1.Input },],
  1161. "refreshingText": [{ type: core_1.Input },],
  1162. "rtlEnabled": [{ type: core_1.Input },],
  1163. "searchEnabled": [{ type: core_1.Input },],
  1164. "searchExpr": [{ type: core_1.Input },],
  1165. "searchMode": [{ type: core_1.Input },],
  1166. "searchPlaceholder": [{ type: core_1.Input },],
  1167. "searchTimeout": [{ type: core_1.Input },],
  1168. "selectedItem": [{ type: core_1.Input },],
  1169. "shading": [{ type: core_1.Input },],
  1170. "showCancelButton": [{ type: core_1.Input },],
  1171. "showClearButton": [{ type: core_1.Input },],
  1172. "showDataBeforeSearch": [{ type: core_1.Input },],
  1173. "showPopupTitle": [{ type: core_1.Input },],
  1174. "stylingMode": [{ type: core_1.Input },],
  1175. "tabIndex": [{ type: core_1.Input },],
  1176. "text": [{ type: core_1.Input },],
  1177. "title": [{ type: core_1.Input },],
  1178. "titleTemplate": [{ type: core_1.Input },],
  1179. "useNativeScrolling": [{ type: core_1.Input },],
  1180. "usePopover": [{ type: core_1.Input },],
  1181. "validationError": [{ type: core_1.Input },],
  1182. "validationMessageMode": [{ type: core_1.Input },],
  1183. "value": [{ type: core_1.Input },],
  1184. "valueChangeEvent": [{ type: core_1.Input },],
  1185. "valueExpr": [{ type: core_1.Input },],
  1186. "visible": [{ type: core_1.Input },],
  1187. "width": [{ type: core_1.Input },],
  1188. "onClosed": [{ type: core_1.Output },],
  1189. "onContentReady": [{ type: core_1.Output },],
  1190. "onDisposing": [{ type: core_1.Output },],
  1191. "onInitialized": [{ type: core_1.Output },],
  1192. "onItemClick": [{ type: core_1.Output },],
  1193. "onOpened": [{ type: core_1.Output },],
  1194. "onOptionChanged": [{ type: core_1.Output },],
  1195. "onPageLoading": [{ type: core_1.Output },],
  1196. "onPullRefresh": [{ type: core_1.Output },],
  1197. "onScroll": [{ type: core_1.Output },],
  1198. "onSelectionChanged": [{ type: core_1.Output },],
  1199. "onTitleRendered": [{ type: core_1.Output },],
  1200. "onValueChanged": [{ type: core_1.Output },],
  1201. "accessKeyChange": [{ type: core_1.Output },],
  1202. "activeStateEnabledChange": [{ type: core_1.Output },],
  1203. "animationChange": [{ type: core_1.Output },],
  1204. "applyButtonTextChange": [{ type: core_1.Output },],
  1205. "applyValueModeChange": [{ type: core_1.Output },],
  1206. "cancelButtonTextChange": [{ type: core_1.Output },],
  1207. "cleanSearchOnOpeningChange": [{ type: core_1.Output },],
  1208. "clearButtonTextChange": [{ type: core_1.Output },],
  1209. "closeOnOutsideClickChange": [{ type: core_1.Output },],
  1210. "dataSourceChange": [{ type: core_1.Output },],
  1211. "deferRenderingChange": [{ type: core_1.Output },],
  1212. "disabledChange": [{ type: core_1.Output },],
  1213. "displayExprChange": [{ type: core_1.Output },],
  1214. "displayValueChange": [{ type: core_1.Output },],
  1215. "elementAttrChange": [{ type: core_1.Output },],
  1216. "fieldTemplateChange": [{ type: core_1.Output },],
  1217. "focusStateEnabledChange": [{ type: core_1.Output },],
  1218. "fullScreenChange": [{ type: core_1.Output },],
  1219. "groupedChange": [{ type: core_1.Output },],
  1220. "groupTemplateChange": [{ type: core_1.Output },],
  1221. "heightChange": [{ type: core_1.Output },],
  1222. "hintChange": [{ type: core_1.Output },],
  1223. "hoverStateEnabledChange": [{ type: core_1.Output },],
  1224. "inputAttrChange": [{ type: core_1.Output },],
  1225. "isValidChange": [{ type: core_1.Output },],
  1226. "itemsChange": [{ type: core_1.Output },],
  1227. "itemTemplateChange": [{ type: core_1.Output },],
  1228. "minSearchLengthChange": [{ type: core_1.Output },],
  1229. "nameChange": [{ type: core_1.Output },],
  1230. "nextButtonTextChange": [{ type: core_1.Output },],
  1231. "noDataTextChange": [{ type: core_1.Output },],
  1232. "openedChange": [{ type: core_1.Output },],
  1233. "pageLoadingTextChange": [{ type: core_1.Output },],
  1234. "pageLoadModeChange": [{ type: core_1.Output },],
  1235. "placeholderChange": [{ type: core_1.Output },],
  1236. "popupHeightChange": [{ type: core_1.Output },],
  1237. "popupWidthChange": [{ type: core_1.Output },],
  1238. "positionChange": [{ type: core_1.Output },],
  1239. "pulledDownTextChange": [{ type: core_1.Output },],
  1240. "pullingDownTextChange": [{ type: core_1.Output },],
  1241. "pullRefreshEnabledChange": [{ type: core_1.Output },],
  1242. "refreshingTextChange": [{ type: core_1.Output },],
  1243. "rtlEnabledChange": [{ type: core_1.Output },],
  1244. "searchEnabledChange": [{ type: core_1.Output },],
  1245. "searchExprChange": [{ type: core_1.Output },],
  1246. "searchModeChange": [{ type: core_1.Output },],
  1247. "searchPlaceholderChange": [{ type: core_1.Output },],
  1248. "searchTimeoutChange": [{ type: core_1.Output },],
  1249. "selectedItemChange": [{ type: core_1.Output },],
  1250. "shadingChange": [{ type: core_1.Output },],
  1251. "showCancelButtonChange": [{ type: core_1.Output },],
  1252. "showClearButtonChange": [{ type: core_1.Output },],
  1253. "showDataBeforeSearchChange": [{ type: core_1.Output },],
  1254. "showPopupTitleChange": [{ type: core_1.Output },],
  1255. "stylingModeChange": [{ type: core_1.Output },],
  1256. "tabIndexChange": [{ type: core_1.Output },],
  1257. "textChange": [{ type: core_1.Output },],
  1258. "titleChange": [{ type: core_1.Output },],
  1259. "titleTemplateChange": [{ type: core_1.Output },],
  1260. "useNativeScrollingChange": [{ type: core_1.Output },],
  1261. "usePopoverChange": [{ type: core_1.Output },],
  1262. "validationErrorChange": [{ type: core_1.Output },],
  1263. "validationMessageModeChange": [{ type: core_1.Output },],
  1264. "valueChange": [{ type: core_1.Output },],
  1265. "valueChangeEventChange": [{ type: core_1.Output },],
  1266. "valueExprChange": [{ type: core_1.Output },],
  1267. "visibleChange": [{ type: core_1.Output },],
  1268. "widthChange": [{ type: core_1.Output },],
  1269. "onBlur": [{ type: core_1.Output },],
  1270. "change": [{ type: core_1.HostListener, args: ['valueChange', ['$event'],] },],
  1271. "touched": [{ type: core_1.HostListener, args: ['onBlur', ['$event'],] },],
  1272. "itemsChildren": [{ type: core_1.ContentChildren, args: [item_dxi_2.DxiItemComponent,] },],
  1273. };
  1274. return DxLookupComponent;
  1275. }(component_1.DxComponent));
  1276. exports.DxLookupComponent = DxLookupComponent;
  1277. var DxLookupModule = (function () {
  1278. function DxLookupModule() {
  1279. }
  1280. DxLookupModule.decorators = [
  1281. { type: core_1.NgModule, args: [{
  1282. imports: [
  1283. animation_1.DxoAnimationModule,
  1284. hide_1.DxoHideModule,
  1285. show_1.DxoShowModule,
  1286. item_dxi_1.DxiItemModule,
  1287. position_1.DxoPositionModule,
  1288. at_1.DxoAtModule,
  1289. boundary_offset_1.DxoBoundaryOffsetModule,
  1290. collision_1.DxoCollisionModule,
  1291. my_1.DxoMyModule,
  1292. offset_1.DxoOffsetModule,
  1293. integration_1.DxIntegrationModule,
  1294. template_1.DxTemplateModule,
  1295. platform_browser_1.BrowserTransferStateModule
  1296. ],
  1297. declarations: [
  1298. DxLookupComponent
  1299. ],
  1300. exports: [
  1301. DxLookupComponent,
  1302. animation_1.DxoAnimationModule,
  1303. hide_1.DxoHideModule,
  1304. show_1.DxoShowModule,
  1305. item_dxi_1.DxiItemModule,
  1306. position_1.DxoPositionModule,
  1307. at_1.DxoAtModule,
  1308. boundary_offset_1.DxoBoundaryOffsetModule,
  1309. collision_1.DxoCollisionModule,
  1310. my_1.DxoMyModule,
  1311. offset_1.DxoOffsetModule,
  1312. template_1.DxTemplateModule
  1313. ]
  1314. },] },
  1315. ];
  1316. return DxLookupModule;
  1317. }());
  1318. exports.DxLookupModule = DxLookupModule;
  1319. //# sourceMappingURL=lookup.js.map