context-menu.js 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  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 context_menu_1 = require("devextreme/ui/context_menu");
  29. var component_1 = require("../core/component");
  30. var template_host_1 = require("../core/template-host");
  31. var integration_1 = require("../core/integration");
  32. var template_1 = require("../core/template");
  33. var nested_option_1 = require("../core/nested-option");
  34. var watcher_helper_1 = require("../core/watcher-helper");
  35. var iterable_differ_helper_1 = require("../core/iterable-differ-helper");
  36. var animation_1 = require("./nested/animation");
  37. var hide_1 = require("./nested/hide");
  38. var show_1 = require("./nested/show");
  39. var item_dxi_1 = require("./nested/item-dxi");
  40. var position_1 = require("./nested/position");
  41. var at_1 = require("./nested/at");
  42. var boundary_offset_1 = require("./nested/boundary-offset");
  43. var collision_1 = require("./nested/collision");
  44. var my_1 = require("./nested/my");
  45. var offset_1 = require("./nested/offset");
  46. var show_event_1 = require("./nested/show-event");
  47. var show_submenu_mode_1 = require("./nested/show-submenu-mode");
  48. var delay_1 = require("./nested/delay");
  49. var item_dxi_2 = require("./nested/item-dxi");
  50. /**
  51. * The ContextMenu widget displays a single- or multi-level context menu. An end user invokes this menu by a right click or a long press.
  52. */
  53. var DxContextMenuComponent = (function (_super) {
  54. __extends(DxContextMenuComponent, _super);
  55. function DxContextMenuComponent(elementRef, ngZone, templateHost, _watcherHelper, _idh, optionHost, transferState, platformId) {
  56. var _this = _super.call(this, elementRef, ngZone, templateHost, _watcherHelper, transferState, platformId) || this;
  57. _this._watcherHelper = _watcherHelper;
  58. _this._idh = _idh;
  59. _this._createEventEmitters([
  60. { subscribe: 'contentReady', emit: 'onContentReady' },
  61. { subscribe: 'disposing', emit: 'onDisposing' },
  62. { subscribe: 'hidden', emit: 'onHidden' },
  63. { subscribe: 'hiding', emit: 'onHiding' },
  64. { subscribe: 'initialized', emit: 'onInitialized' },
  65. { subscribe: 'itemClick', emit: 'onItemClick' },
  66. { subscribe: 'itemContextMenu', emit: 'onItemContextMenu' },
  67. { subscribe: 'itemRendered', emit: 'onItemRendered' },
  68. { subscribe: 'optionChanged', emit: 'onOptionChanged' },
  69. { subscribe: 'positioning', emit: 'onPositioning' },
  70. { subscribe: 'selectionChanged', emit: 'onSelectionChanged' },
  71. { subscribe: 'showing', emit: 'onShowing' },
  72. { subscribe: 'shown', emit: 'onShown' },
  73. { emit: 'accessKeyChange' },
  74. { emit: 'activeStateEnabledChange' },
  75. { emit: 'animationChange' },
  76. { emit: 'closeOnOutsideClickChange' },
  77. { emit: 'cssClassChange' },
  78. { emit: 'dataSourceChange' },
  79. { emit: 'disabledChange' },
  80. { emit: 'disabledExprChange' },
  81. { emit: 'displayExprChange' },
  82. { emit: 'elementAttrChange' },
  83. { emit: 'focusStateEnabledChange' },
  84. { emit: 'heightChange' },
  85. { emit: 'hintChange' },
  86. { emit: 'hoverStateEnabledChange' },
  87. { emit: 'itemsChange' },
  88. { emit: 'itemsExprChange' },
  89. { emit: 'itemTemplateChange' },
  90. { emit: 'positionChange' },
  91. { emit: 'rtlEnabledChange' },
  92. { emit: 'selectByClickChange' },
  93. { emit: 'selectedExprChange' },
  94. { emit: 'selectedItemChange' },
  95. { emit: 'selectionModeChange' },
  96. { emit: 'showEventChange' },
  97. { emit: 'showSubmenuModeChange' },
  98. { emit: 'submenuDirectionChange' },
  99. { emit: 'tabIndexChange' },
  100. { emit: 'targetChange' },
  101. { emit: 'visibleChange' },
  102. { emit: 'widthChange' }
  103. ]);
  104. _this._idh.setHost(_this);
  105. optionHost.setHost(_this);
  106. return _this;
  107. }
  108. Object.defineProperty(DxContextMenuComponent.prototype, "accessKey", {
  109. get: /**
  110. * Specifies the shortcut key that sets focus on the widget.
  111. */
  112. function () {
  113. return this._getOption('accessKey');
  114. },
  115. set: function (value) {
  116. this._setOption('accessKey', value);
  117. },
  118. enumerable: true,
  119. configurable: true
  120. });
  121. Object.defineProperty(DxContextMenuComponent.prototype, "activeStateEnabled", {
  122. get: /**
  123. * A Boolean value specifying whether or not the widget changes its state when interacting with a user.
  124. */
  125. function () {
  126. return this._getOption('activeStateEnabled');
  127. },
  128. set: function (value) {
  129. this._setOption('activeStateEnabled', value);
  130. },
  131. enumerable: true,
  132. configurable: true
  133. });
  134. Object.defineProperty(DxContextMenuComponent.prototype, "animation", {
  135. get: /**
  136. * Configures widget visibility animations. This object contains two fields: show and hide.
  137. */
  138. function () {
  139. return this._getOption('animation');
  140. },
  141. set: function (value) {
  142. this._setOption('animation', value);
  143. },
  144. enumerable: true,
  145. configurable: true
  146. });
  147. Object.defineProperty(DxContextMenuComponent.prototype, "closeOnOutsideClick", {
  148. get: /**
  149. * Specifies whether to close the ContextMenu if a user clicks outside it.
  150. */
  151. function () {
  152. return this._getOption('closeOnOutsideClick');
  153. },
  154. set: function (value) {
  155. this._setOption('closeOnOutsideClick', value);
  156. },
  157. enumerable: true,
  158. configurable: true
  159. });
  160. Object.defineProperty(DxContextMenuComponent.prototype, "cssClass", {
  161. get: /**
  162. * Specifies the name of the CSS class to be applied to the root menu level and all submenus.
  163. */
  164. function () {
  165. return this._getOption('cssClass');
  166. },
  167. set: function (value) {
  168. this._setOption('cssClass', value);
  169. },
  170. enumerable: true,
  171. configurable: true
  172. });
  173. Object.defineProperty(DxContextMenuComponent.prototype, "dataSource", {
  174. get: /**
  175. * Binds the widget to data.
  176. */
  177. function () {
  178. return this._getOption('dataSource');
  179. },
  180. set: function (value) {
  181. this._setOption('dataSource', value);
  182. },
  183. enumerable: true,
  184. configurable: true
  185. });
  186. Object.defineProperty(DxContextMenuComponent.prototype, "disabled", {
  187. get: /**
  188. * Specifies whether the widget responds to user interaction.
  189. */
  190. function () {
  191. return this._getOption('disabled');
  192. },
  193. set: function (value) {
  194. this._setOption('disabled', value);
  195. },
  196. enumerable: true,
  197. configurable: true
  198. });
  199. Object.defineProperty(DxContextMenuComponent.prototype, "disabledExpr", {
  200. get: /**
  201. * Specifies the name of the data source item field whose value defines whether or not the corresponding widget item is disabled.
  202. */
  203. function () {
  204. return this._getOption('disabledExpr');
  205. },
  206. set: function (value) {
  207. this._setOption('disabledExpr', value);
  208. },
  209. enumerable: true,
  210. configurable: true
  211. });
  212. Object.defineProperty(DxContextMenuComponent.prototype, "displayExpr", {
  213. get: /**
  214. * Specifies the data field whose values should be displayed.
  215. */
  216. function () {
  217. return this._getOption('displayExpr');
  218. },
  219. set: function (value) {
  220. this._setOption('displayExpr', value);
  221. },
  222. enumerable: true,
  223. configurable: true
  224. });
  225. Object.defineProperty(DxContextMenuComponent.prototype, "elementAttr", {
  226. get: /**
  227. * Specifies the attributes to be attached to the widget's root element.
  228. */
  229. function () {
  230. return this._getOption('elementAttr');
  231. },
  232. set: function (value) {
  233. this._setOption('elementAttr', value);
  234. },
  235. enumerable: true,
  236. configurable: true
  237. });
  238. Object.defineProperty(DxContextMenuComponent.prototype, "focusStateEnabled", {
  239. get: /**
  240. * Specifies whether the widget can be focused using keyboard navigation.
  241. */
  242. function () {
  243. return this._getOption('focusStateEnabled');
  244. },
  245. set: function (value) {
  246. this._setOption('focusStateEnabled', value);
  247. },
  248. enumerable: true,
  249. configurable: true
  250. });
  251. Object.defineProperty(DxContextMenuComponent.prototype, "height", {
  252. get: /**
  253. * Specifies the widget's height.
  254. */
  255. function () {
  256. return this._getOption('height');
  257. },
  258. set: function (value) {
  259. this._setOption('height', value);
  260. },
  261. enumerable: true,
  262. configurable: true
  263. });
  264. Object.defineProperty(DxContextMenuComponent.prototype, "hint", {
  265. get: /**
  266. * Specifies text for a hint that appears when a user pauses on the widget.
  267. */
  268. function () {
  269. return this._getOption('hint');
  270. },
  271. set: function (value) {
  272. this._setOption('hint', value);
  273. },
  274. enumerable: true,
  275. configurable: true
  276. });
  277. Object.defineProperty(DxContextMenuComponent.prototype, "hoverStateEnabled", {
  278. get: /**
  279. * Specifies whether the widget changes its state when a user pauses on it.
  280. */
  281. function () {
  282. return this._getOption('hoverStateEnabled');
  283. },
  284. set: function (value) {
  285. this._setOption('hoverStateEnabled', value);
  286. },
  287. enumerable: true,
  288. configurable: true
  289. });
  290. Object.defineProperty(DxContextMenuComponent.prototype, "items", {
  291. get: /**
  292. * Holds an array of menu items.
  293. */
  294. function () {
  295. return this._getOption('items');
  296. },
  297. set: function (value) {
  298. this._setOption('items', value);
  299. },
  300. enumerable: true,
  301. configurable: true
  302. });
  303. Object.defineProperty(DxContextMenuComponent.prototype, "itemsExpr", {
  304. get: /**
  305. * Specifies which data field contains nested items.
  306. */
  307. function () {
  308. return this._getOption('itemsExpr');
  309. },
  310. set: function (value) {
  311. this._setOption('itemsExpr', value);
  312. },
  313. enumerable: true,
  314. configurable: true
  315. });
  316. Object.defineProperty(DxContextMenuComponent.prototype, "itemTemplate", {
  317. get: /**
  318. * Specifies a custom template for items.
  319. */
  320. function () {
  321. return this._getOption('itemTemplate');
  322. },
  323. set: function (value) {
  324. this._setOption('itemTemplate', value);
  325. },
  326. enumerable: true,
  327. configurable: true
  328. });
  329. Object.defineProperty(DxContextMenuComponent.prototype, "position", {
  330. get: /**
  331. * An object defining widget positioning options.
  332. */
  333. function () {
  334. return this._getOption('position');
  335. },
  336. set: function (value) {
  337. this._setOption('position', value);
  338. },
  339. enumerable: true,
  340. configurable: true
  341. });
  342. Object.defineProperty(DxContextMenuComponent.prototype, "rtlEnabled", {
  343. get: /**
  344. * Switches the widget to a right-to-left representation.
  345. */
  346. function () {
  347. return this._getOption('rtlEnabled');
  348. },
  349. set: function (value) {
  350. this._setOption('rtlEnabled', value);
  351. },
  352. enumerable: true,
  353. configurable: true
  354. });
  355. Object.defineProperty(DxContextMenuComponent.prototype, "selectByClick", {
  356. get: /**
  357. * Specifies whether or not an item becomes selected if a user clicks it.
  358. */
  359. function () {
  360. return this._getOption('selectByClick');
  361. },
  362. set: function (value) {
  363. this._setOption('selectByClick', value);
  364. },
  365. enumerable: true,
  366. configurable: true
  367. });
  368. Object.defineProperty(DxContextMenuComponent.prototype, "selectedExpr", {
  369. get: /**
  370. * Specifies the name of the data source item field whose value defines whether or not the corresponding widget items is selected.
  371. */
  372. function () {
  373. return this._getOption('selectedExpr');
  374. },
  375. set: function (value) {
  376. this._setOption('selectedExpr', value);
  377. },
  378. enumerable: true,
  379. configurable: true
  380. });
  381. Object.defineProperty(DxContextMenuComponent.prototype, "selectedItem", {
  382. get: /**
  383. * The selected item object.
  384. */
  385. function () {
  386. return this._getOption('selectedItem');
  387. },
  388. set: function (value) {
  389. this._setOption('selectedItem', value);
  390. },
  391. enumerable: true,
  392. configurable: true
  393. });
  394. Object.defineProperty(DxContextMenuComponent.prototype, "selectionMode", {
  395. get: /**
  396. * Specifies the selection mode supported by the menu.
  397. */
  398. function () {
  399. return this._getOption('selectionMode');
  400. },
  401. set: function (value) {
  402. this._setOption('selectionMode', value);
  403. },
  404. enumerable: true,
  405. configurable: true
  406. });
  407. Object.defineProperty(DxContextMenuComponent.prototype, "showEvent", {
  408. get: /**
  409. * Specifies options for displaying the widget.
  410. */
  411. function () {
  412. return this._getOption('showEvent');
  413. },
  414. set: function (value) {
  415. this._setOption('showEvent', value);
  416. },
  417. enumerable: true,
  418. configurable: true
  419. });
  420. Object.defineProperty(DxContextMenuComponent.prototype, "showSubmenuMode", {
  421. get: /**
  422. * Specifies options of submenu showing and hiding.
  423. */
  424. function () {
  425. return this._getOption('showSubmenuMode');
  426. },
  427. set: function (value) {
  428. this._setOption('showSubmenuMode', value);
  429. },
  430. enumerable: true,
  431. configurable: true
  432. });
  433. Object.defineProperty(DxContextMenuComponent.prototype, "submenuDirection", {
  434. get: /**
  435. * Specifies the direction at which submenus are displayed.
  436. */
  437. function () {
  438. return this._getOption('submenuDirection');
  439. },
  440. set: function (value) {
  441. this._setOption('submenuDirection', value);
  442. },
  443. enumerable: true,
  444. configurable: true
  445. });
  446. Object.defineProperty(DxContextMenuComponent.prototype, "tabIndex", {
  447. get: /**
  448. * Specifies the number of the element when the Tab key is used for navigating.
  449. */
  450. function () {
  451. return this._getOption('tabIndex');
  452. },
  453. set: function (value) {
  454. this._setOption('tabIndex', value);
  455. },
  456. enumerable: true,
  457. configurable: true
  458. });
  459. Object.defineProperty(DxContextMenuComponent.prototype, "target", {
  460. get: /**
  461. * The target element associated with the context menu.
  462. */
  463. function () {
  464. return this._getOption('target');
  465. },
  466. set: function (value) {
  467. this._setOption('target', value);
  468. },
  469. enumerable: true,
  470. configurable: true
  471. });
  472. Object.defineProperty(DxContextMenuComponent.prototype, "visible", {
  473. get: /**
  474. * A Boolean value specifying whether or not the widget is visible.
  475. */
  476. function () {
  477. return this._getOption('visible');
  478. },
  479. set: function (value) {
  480. this._setOption('visible', value);
  481. },
  482. enumerable: true,
  483. configurable: true
  484. });
  485. Object.defineProperty(DxContextMenuComponent.prototype, "width", {
  486. get: /**
  487. * Specifies the widget's width.
  488. */
  489. function () {
  490. return this._getOption('width');
  491. },
  492. set: function (value) {
  493. this._setOption('width', value);
  494. },
  495. enumerable: true,
  496. configurable: true
  497. });
  498. Object.defineProperty(DxContextMenuComponent.prototype, "itemsChildren", {
  499. get: function () {
  500. return this._getOption('items');
  501. },
  502. set: function (value) {
  503. this.setChildren('items', value);
  504. },
  505. enumerable: true,
  506. configurable: true
  507. });
  508. DxContextMenuComponent.prototype._createInstance = function (element, options) {
  509. return new context_menu_1.default(element, options);
  510. };
  511. DxContextMenuComponent.prototype.ngOnDestroy = function () {
  512. this._destroyWidget();
  513. };
  514. DxContextMenuComponent.prototype.ngOnChanges = function (changes) {
  515. _super.prototype.ngOnChanges.call(this, changes);
  516. this.setupChanges('dataSource', changes);
  517. this.setupChanges('items', changes);
  518. };
  519. DxContextMenuComponent.prototype.setupChanges = function (prop, changes) {
  520. if (!(prop in this._optionsToUpdate)) {
  521. this._idh.setup(prop, changes);
  522. }
  523. };
  524. DxContextMenuComponent.prototype.ngDoCheck = function () {
  525. this._idh.doCheck('dataSource');
  526. this._idh.doCheck('items');
  527. this._watcherHelper.checkWatchers();
  528. _super.prototype.ngDoCheck.call(this);
  529. _super.prototype.clearChangedOptions.call(this);
  530. };
  531. DxContextMenuComponent.prototype._setOption = function (name, value) {
  532. var isSetup = this._idh.setupSingle(name, value);
  533. var isChanged = this._idh.getChanges(name, value) !== null;
  534. if (isSetup || isChanged) {
  535. _super.prototype._setOption.call(this, name, value);
  536. }
  537. };
  538. DxContextMenuComponent.decorators = [
  539. { type: core_1.Component, args: [{
  540. selector: 'dx-context-menu',
  541. template: '',
  542. providers: [
  543. template_host_1.DxTemplateHost,
  544. watcher_helper_1.WatcherHelper,
  545. nested_option_1.NestedOptionHost,
  546. iterable_differ_helper_1.IterableDifferHelper
  547. ]
  548. },] },
  549. ];
  550. /** @nocollapse */
  551. DxContextMenuComponent.ctorParameters = function () { return [
  552. { type: core_1.ElementRef, },
  553. { type: core_1.NgZone, },
  554. { type: template_host_1.DxTemplateHost, },
  555. { type: watcher_helper_1.WatcherHelper, },
  556. { type: iterable_differ_helper_1.IterableDifferHelper, },
  557. { type: nested_option_1.NestedOptionHost, },
  558. { type: platform_browser_2.TransferState, },
  559. { type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
  560. ]; };
  561. DxContextMenuComponent.propDecorators = {
  562. "accessKey": [{ type: core_1.Input },],
  563. "activeStateEnabled": [{ type: core_1.Input },],
  564. "animation": [{ type: core_1.Input },],
  565. "closeOnOutsideClick": [{ type: core_1.Input },],
  566. "cssClass": [{ type: core_1.Input },],
  567. "dataSource": [{ type: core_1.Input },],
  568. "disabled": [{ type: core_1.Input },],
  569. "disabledExpr": [{ type: core_1.Input },],
  570. "displayExpr": [{ type: core_1.Input },],
  571. "elementAttr": [{ type: core_1.Input },],
  572. "focusStateEnabled": [{ type: core_1.Input },],
  573. "height": [{ type: core_1.Input },],
  574. "hint": [{ type: core_1.Input },],
  575. "hoverStateEnabled": [{ type: core_1.Input },],
  576. "items": [{ type: core_1.Input },],
  577. "itemsExpr": [{ type: core_1.Input },],
  578. "itemTemplate": [{ type: core_1.Input },],
  579. "position": [{ type: core_1.Input },],
  580. "rtlEnabled": [{ type: core_1.Input },],
  581. "selectByClick": [{ type: core_1.Input },],
  582. "selectedExpr": [{ type: core_1.Input },],
  583. "selectedItem": [{ type: core_1.Input },],
  584. "selectionMode": [{ type: core_1.Input },],
  585. "showEvent": [{ type: core_1.Input },],
  586. "showSubmenuMode": [{ type: core_1.Input },],
  587. "submenuDirection": [{ type: core_1.Input },],
  588. "tabIndex": [{ type: core_1.Input },],
  589. "target": [{ type: core_1.Input },],
  590. "visible": [{ type: core_1.Input },],
  591. "width": [{ type: core_1.Input },],
  592. "onContentReady": [{ type: core_1.Output },],
  593. "onDisposing": [{ type: core_1.Output },],
  594. "onHidden": [{ type: core_1.Output },],
  595. "onHiding": [{ type: core_1.Output },],
  596. "onInitialized": [{ type: core_1.Output },],
  597. "onItemClick": [{ type: core_1.Output },],
  598. "onItemContextMenu": [{ type: core_1.Output },],
  599. "onItemRendered": [{ type: core_1.Output },],
  600. "onOptionChanged": [{ type: core_1.Output },],
  601. "onPositioning": [{ type: core_1.Output },],
  602. "onSelectionChanged": [{ type: core_1.Output },],
  603. "onShowing": [{ type: core_1.Output },],
  604. "onShown": [{ type: core_1.Output },],
  605. "accessKeyChange": [{ type: core_1.Output },],
  606. "activeStateEnabledChange": [{ type: core_1.Output },],
  607. "animationChange": [{ type: core_1.Output },],
  608. "closeOnOutsideClickChange": [{ type: core_1.Output },],
  609. "cssClassChange": [{ type: core_1.Output },],
  610. "dataSourceChange": [{ type: core_1.Output },],
  611. "disabledChange": [{ type: core_1.Output },],
  612. "disabledExprChange": [{ type: core_1.Output },],
  613. "displayExprChange": [{ type: core_1.Output },],
  614. "elementAttrChange": [{ type: core_1.Output },],
  615. "focusStateEnabledChange": [{ type: core_1.Output },],
  616. "heightChange": [{ type: core_1.Output },],
  617. "hintChange": [{ type: core_1.Output },],
  618. "hoverStateEnabledChange": [{ type: core_1.Output },],
  619. "itemsChange": [{ type: core_1.Output },],
  620. "itemsExprChange": [{ type: core_1.Output },],
  621. "itemTemplateChange": [{ type: core_1.Output },],
  622. "positionChange": [{ type: core_1.Output },],
  623. "rtlEnabledChange": [{ type: core_1.Output },],
  624. "selectByClickChange": [{ type: core_1.Output },],
  625. "selectedExprChange": [{ type: core_1.Output },],
  626. "selectedItemChange": [{ type: core_1.Output },],
  627. "selectionModeChange": [{ type: core_1.Output },],
  628. "showEventChange": [{ type: core_1.Output },],
  629. "showSubmenuModeChange": [{ type: core_1.Output },],
  630. "submenuDirectionChange": [{ type: core_1.Output },],
  631. "tabIndexChange": [{ type: core_1.Output },],
  632. "targetChange": [{ type: core_1.Output },],
  633. "visibleChange": [{ type: core_1.Output },],
  634. "widthChange": [{ type: core_1.Output },],
  635. "itemsChildren": [{ type: core_1.ContentChildren, args: [item_dxi_2.DxiItemComponent,] },],
  636. };
  637. return DxContextMenuComponent;
  638. }(component_1.DxComponent));
  639. exports.DxContextMenuComponent = DxContextMenuComponent;
  640. var DxContextMenuModule = (function () {
  641. function DxContextMenuModule() {
  642. }
  643. DxContextMenuModule.decorators = [
  644. { type: core_1.NgModule, args: [{
  645. imports: [
  646. animation_1.DxoAnimationModule,
  647. hide_1.DxoHideModule,
  648. show_1.DxoShowModule,
  649. item_dxi_1.DxiItemModule,
  650. position_1.DxoPositionModule,
  651. at_1.DxoAtModule,
  652. boundary_offset_1.DxoBoundaryOffsetModule,
  653. collision_1.DxoCollisionModule,
  654. my_1.DxoMyModule,
  655. offset_1.DxoOffsetModule,
  656. show_event_1.DxoShowEventModule,
  657. show_submenu_mode_1.DxoShowSubmenuModeModule,
  658. delay_1.DxoDelayModule,
  659. integration_1.DxIntegrationModule,
  660. template_1.DxTemplateModule,
  661. platform_browser_1.BrowserTransferStateModule
  662. ],
  663. declarations: [
  664. DxContextMenuComponent
  665. ],
  666. exports: [
  667. DxContextMenuComponent,
  668. animation_1.DxoAnimationModule,
  669. hide_1.DxoHideModule,
  670. show_1.DxoShowModule,
  671. item_dxi_1.DxiItemModule,
  672. position_1.DxoPositionModule,
  673. at_1.DxoAtModule,
  674. boundary_offset_1.DxoBoundaryOffsetModule,
  675. collision_1.DxoCollisionModule,
  676. my_1.DxoMyModule,
  677. offset_1.DxoOffsetModule,
  678. show_event_1.DxoShowEventModule,
  679. show_submenu_mode_1.DxoShowSubmenuModeModule,
  680. delay_1.DxoDelayModule,
  681. template_1.DxTemplateModule
  682. ]
  683. },] },
  684. ];
  685. return DxContextMenuModule;
  686. }());
  687. exports.DxContextMenuModule = DxContextMenuModule;
  688. //# sourceMappingURL=context-menu.js.map