@syncfusion/ej2-vue-navigations 20.4.53 → 21.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +211 -142
  3. package/dist/ej2-vue-navigations.umd.min.js +2 -2
  4. package/dist/ej2-vue-navigations.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-vue-navigations.es2015.js +1195 -1613
  6. package/dist/es6/ej2-vue-navigations.es2015.js.map +1 -1
  7. package/dist/es6/ej2-vue-navigations.es5.js +1337 -1877
  8. package/dist/es6/ej2-vue-navigations.es5.js.map +1 -1
  9. package/dist/global/ej2-vue-navigations.min.js +2 -2
  10. package/package.json +11 -10
  11. package/src/accordion/accordion.component.d.ts +3 -31
  12. package/src/accordion/accordion.component.js +137 -168
  13. package/src/accordion/items.directive.d.ts +2 -12
  14. package/src/accordion/items.directive.js +22 -71
  15. package/src/appbar/appbar.component.d.ts +3 -22
  16. package/src/appbar/appbar.component.js +83 -112
  17. package/src/breadcrumb/breadcrumb.component.d.ts +3 -25
  18. package/src/breadcrumb/breadcrumb.component.js +119 -150
  19. package/src/breadcrumb/items.directive.d.ts +2 -12
  20. package/src/breadcrumb/items.directive.js +22 -71
  21. package/src/carousel/carousel.component.d.ts +3 -29
  22. package/src/carousel/carousel.component.js +131 -162
  23. package/src/carousel/items.directive.d.ts +2 -12
  24. package/src/carousel/items.directive.js +22 -71
  25. package/src/context-menu/contextmenu.component.d.ts +3 -32
  26. package/src/context-menu/contextmenu.component.js +113 -142
  27. package/src/menu/items.directive.d.ts +2 -12
  28. package/src/menu/items.directive.js +22 -71
  29. package/src/menu/menu.component.d.ts +3 -32
  30. package/src/menu/menu.component.js +113 -142
  31. package/src/sidebar/sidebar.component.d.ts +3 -28
  32. package/src/sidebar/sidebar.component.js +128 -159
  33. package/src/tab/items.directive.d.ts +2 -12
  34. package/src/tab/items.directive.js +22 -71
  35. package/src/tab/tab.component.d.ts +3 -32
  36. package/src/tab/tab.component.js +113 -142
  37. package/src/toolbar/items.directive.d.ts +2 -12
  38. package/src/toolbar/items.directive.js +22 -71
  39. package/src/toolbar/toolbar.component.d.ts +3 -28
  40. package/src/toolbar/toolbar.component.js +101 -130
  41. package/src/treeview/treeview.component.d.ts +3 -39
  42. package/src/treeview/treeview.component.js +134 -163
  43. package/styles/accordion/bootstrap-dark.css +0 -1
  44. package/styles/accordion/bootstrap.css +0 -1
  45. package/styles/accordion/bootstrap4.css +0 -1
  46. package/styles/accordion/bootstrap5-dark.css +3 -4
  47. package/styles/accordion/bootstrap5.css +3 -4
  48. package/styles/accordion/fabric-dark.css +0 -1
  49. package/styles/accordion/fabric.css +0 -1
  50. package/styles/accordion/fluent-dark.css +3 -4
  51. package/styles/accordion/fluent.css +3 -4
  52. package/styles/accordion/highcontrast-light.css +0 -1
  53. package/styles/accordion/highcontrast.css +0 -1
  54. package/styles/accordion/material-dark.css +0 -1
  55. package/styles/accordion/material.css +0 -1
  56. package/styles/accordion/tailwind-dark.css +3 -4
  57. package/styles/accordion/tailwind.css +3 -4
  58. package/styles/appbar/bootstrap-dark.css +3 -0
  59. package/styles/appbar/bootstrap.css +3 -0
  60. package/styles/appbar/bootstrap4.css +3 -0
  61. package/styles/appbar/bootstrap5-dark.css +3 -0
  62. package/styles/appbar/bootstrap5.css +3 -0
  63. package/styles/appbar/fabric-dark.css +3 -0
  64. package/styles/appbar/fabric.css +3 -0
  65. package/styles/appbar/fluent-dark.css +3 -0
  66. package/styles/appbar/fluent.css +3 -0
  67. package/styles/appbar/highcontrast-light.css +3 -0
  68. package/styles/appbar/highcontrast.css +3 -0
  69. package/styles/appbar/material-dark.css +3 -0
  70. package/styles/appbar/material.css +3 -0
  71. package/styles/appbar/tailwind-dark.css +3 -0
  72. package/styles/appbar/tailwind.css +3 -0
  73. package/styles/bootstrap-dark.css +669 -938
  74. package/styles/bootstrap.css +658 -927
  75. package/styles/bootstrap4.css +724 -993
  76. package/styles/bootstrap5-dark.css +685 -954
  77. package/styles/bootstrap5.css +686 -955
  78. package/styles/carousel/bootstrap-dark.css +4 -0
  79. package/styles/carousel/bootstrap.css +4 -0
  80. package/styles/carousel/bootstrap4.css +4 -0
  81. package/styles/carousel/bootstrap5-dark.css +4 -0
  82. package/styles/carousel/bootstrap5.css +4 -0
  83. package/styles/carousel/fabric-dark.css +4 -0
  84. package/styles/carousel/fabric.css +4 -0
  85. package/styles/carousel/fluent-dark.css +4 -0
  86. package/styles/carousel/fluent.css +4 -0
  87. package/styles/carousel/highcontrast-light.css +4 -0
  88. package/styles/carousel/highcontrast.css +4 -0
  89. package/styles/carousel/material-dark.css +4 -0
  90. package/styles/carousel/material.css +4 -0
  91. package/styles/carousel/tailwind-dark.css +4 -0
  92. package/styles/carousel/tailwind.css +4 -0
  93. package/styles/fabric-dark.css +669 -938
  94. package/styles/fabric.css +669 -938
  95. package/styles/fluent-dark.css +677 -946
  96. package/styles/fluent.css +677 -946
  97. package/styles/h-scroll/bootstrap-dark.css +1 -1
  98. package/styles/h-scroll/bootstrap.css +1 -1
  99. package/styles/h-scroll/bootstrap4.css +1 -1
  100. package/styles/h-scroll/bootstrap5-dark.css +1 -1
  101. package/styles/h-scroll/bootstrap5.css +1 -1
  102. package/styles/h-scroll/fabric-dark.css +1 -1
  103. package/styles/h-scroll/fabric.css +1 -1
  104. package/styles/h-scroll/fluent-dark.css +1 -1
  105. package/styles/h-scroll/fluent.css +1 -1
  106. package/styles/h-scroll/highcontrast-light.css +1 -1
  107. package/styles/h-scroll/highcontrast.css +1 -1
  108. package/styles/h-scroll/material-dark.css +1 -1
  109. package/styles/h-scroll/material.css +1 -1
  110. package/styles/h-scroll/tailwind-dark.css +1 -1
  111. package/styles/h-scroll/tailwind.css +1 -1
  112. package/styles/highcontrast-light.css +668 -937
  113. package/styles/highcontrast.css +675 -944
  114. package/styles/material-dark.css +669 -938
  115. package/styles/material.css +661 -930
  116. package/styles/menu/bootstrap-dark.css +7 -7
  117. package/styles/menu/bootstrap.css +7 -7
  118. package/styles/menu/bootstrap4.css +10 -10
  119. package/styles/menu/bootstrap5-dark.css +7 -7
  120. package/styles/menu/bootstrap5.css +7 -7
  121. package/styles/menu/fabric-dark.css +7 -7
  122. package/styles/menu/fabric.css +7 -7
  123. package/styles/menu/fluent-dark.css +7 -7
  124. package/styles/menu/fluent.css +7 -7
  125. package/styles/menu/highcontrast-light.css +7 -7
  126. package/styles/menu/highcontrast.css +7 -7
  127. package/styles/menu/material-dark.css +7 -7
  128. package/styles/menu/material.css +7 -7
  129. package/styles/menu/tailwind-dark.css +7 -7
  130. package/styles/menu/tailwind.css +7 -7
  131. package/styles/tab/bootstrap-dark.css +5 -2
  132. package/styles/tab/bootstrap.css +5 -2
  133. package/styles/tab/bootstrap4.css +12 -9
  134. package/styles/tab/bootstrap5-dark.css +11 -8
  135. package/styles/tab/bootstrap5.css +11 -8
  136. package/styles/tab/fabric-dark.css +7 -4
  137. package/styles/tab/fabric.css +7 -4
  138. package/styles/tab/fluent-dark.css +8 -5
  139. package/styles/tab/fluent.css +8 -5
  140. package/styles/tab/highcontrast-light.css +10 -7
  141. package/styles/tab/highcontrast.css +10 -7
  142. package/styles/tab/material-dark.css +4 -1
  143. package/styles/tab/material.css +4 -1
  144. package/styles/tab/tailwind-dark.css +8 -5
  145. package/styles/tab/tailwind.css +8 -5
  146. package/styles/tailwind-dark.css +668 -937
  147. package/styles/tailwind.css +668 -937
  148. package/styles/toolbar/bootstrap-dark.css +647 -925
  149. package/styles/toolbar/bootstrap.css +638 -916
  150. package/styles/toolbar/bootstrap4.css +657 -935
  151. package/styles/toolbar/bootstrap5-dark.css +658 -936
  152. package/styles/toolbar/bootstrap5.css +658 -936
  153. package/styles/toolbar/fabric-dark.css +645 -923
  154. package/styles/toolbar/fabric.css +651 -929
  155. package/styles/toolbar/fluent-dark.css +650 -928
  156. package/styles/toolbar/fluent.css +650 -928
  157. package/styles/toolbar/highcontrast-light.css +642 -920
  158. package/styles/toolbar/highcontrast.css +647 -925
  159. package/styles/toolbar/material-dark.css +649 -927
  160. package/styles/toolbar/material.css +646 -924
  161. package/styles/toolbar/tailwind-dark.css +647 -925
  162. package/styles/toolbar/tailwind.css +645 -923
@@ -1,42 +1,10 @@
1
1
  import { Accordion, AppBar, Breadcrumb, Carousel, ContextMenu, Menu, Sidebar, Tab, Toolbar, TreeView } from '@syncfusion/ej2-navigations';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __extends = (undefined && undefined.__extends) || (function () {
8
- var extendStatics = function (d, b) {
9
- extendStatics = Object.setPrototypeOf ||
10
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12
- return extendStatics(d, b);
13
- };
14
- return function (d, b) {
15
- extendStatics(d, b);
16
- function __() { this.constructor = d; }
17
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
- };
19
- })();
20
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
- return c > 3 && r && Object.defineProperty(target, key, r), r;
25
- };
26
- import { Options } from 'vue-class-component';
27
- var vueImport;
28
- if (!isExecute || parseInt(allVue.version) < 3) {
29
- vueImport = Vue;
30
- }
31
- else {
32
- vueImport = Vue$1;
33
- }
34
- var AccordionItemsDirective = /** @__PURE__ @class */ (function (_super) {
35
- __extends(AccordionItemsDirective, _super);
36
- function AccordionItemsDirective() {
37
- return _super.call(this, arguments) || this;
38
- }
39
- AccordionItemsDirective.prototype.render = function (createElement) {
5
+ var AccordionItemsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
7
+ render: function (createElement) {
40
8
  if (!isExecute) {
41
9
  var h = !isExecute ? gh : createElement;
42
10
  var slots = null;
@@ -46,31 +14,22 @@ var AccordionItemsDirective = /** @__PURE__ @class */ (function (_super) {
46
14
  return h('div', { class: 'e-directive' }, slots);
47
15
  }
48
16
  return;
49
- };
50
- AccordionItemsDirective.prototype.updated = function () {
17
+ },
18
+ updated: function () {
51
19
  if (!isExecute && this.custom) {
52
20
  this.custom();
53
21
  }
54
- };
55
- AccordionItemsDirective.prototype.getTag = function () {
56
- return 'e-accordionitems';
57
- };
58
- AccordionItemsDirective = __decorate([
59
- EJComponentDecorator({}, isExecute)
60
- ,Options({
61
- inject: {
62
- custom: {
63
- default: null
64
- }
65
- }
66
- })
67
- ], AccordionItemsDirective);
68
- return AccordionItemsDirective;
69
- }(vueImport));
22
+ },
23
+ methods: {
24
+ getTag: function () {
25
+ return 'e-accordionitems';
26
+ }
27
+ }
28
+ });
70
29
  var AccordionItemsPlugin = {
71
30
  name: 'e-accordionitems',
72
- install: function (Vue$$1) {
73
- Vue$$1.component(AccordionItemsPlugin.name, AccordionItemsDirective);
31
+ install: function (Vue) {
32
+ Vue.component(AccordionItemsPlugin.name, AccordionItemsDirective);
74
33
  }
75
34
  };
76
35
  /**
@@ -85,49 +44,23 @@ var AccordionItemsPlugin = {
85
44
  * </ejs-accordion>
86
45
  * ```
87
46
  */
88
- var AccordionItemDirective = /** @__PURE__ @class */ (function (_super) {
89
- __extends(AccordionItemDirective, _super);
90
- function AccordionItemDirective() {
91
- return _super !== null && _super.apply(this, arguments) || this;
92
- }
93
- AccordionItemDirective.prototype.render = function () {
47
+ var AccordionItemDirective = vueDefineComponent({
48
+ render: function () {
94
49
  return;
95
- };
96
- AccordionItemDirective.prototype.getTag = function () {
97
- return 'e-accordionitem';
98
- };
99
- AccordionItemDirective = __decorate([
100
- EJComponentDecorator({}, isExecute)
101
- ], AccordionItemDirective);
102
- return AccordionItemDirective;
103
- }(vueImport));
50
+ },
51
+ methods: {
52
+ getTag: function () {
53
+ return 'e-accordionitem';
54
+ }
55
+ }
56
+ });
104
57
  var AccordionItemPlugin = {
105
58
  name: 'e-accordionitem',
106
- install: function (Vue$$1) {
107
- Vue$$1.component(AccordionItemPlugin.name, AccordionItemDirective);
59
+ install: function (Vue) {
60
+ Vue.component(AccordionItemPlugin.name, AccordionItemDirective);
108
61
  }
109
62
  };
110
63
 
111
- var __extends$1 = (undefined && undefined.__extends) || (function () {
112
- var extendStatics = function (d, b) {
113
- extendStatics = Object.setPrototypeOf ||
114
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
115
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
116
- return extendStatics(d, b);
117
- };
118
- return function (d, b) {
119
- extendStatics(d, b);
120
- function __() { this.constructor = d; }
121
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
122
- };
123
- })();
124
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
125
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
126
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
127
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
128
- return c > 3 && r && Object.defineProperty(target, key, r), r;
129
- };
130
- // {{VueImport}}
131
64
  var properties = ['isLazyUpdate', 'plugins', 'animation', 'dataSource', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandMode', 'expandedIndices', 'headerTemplate', 'height', 'itemTemplate', 'items', 'locale', 'width', 'clicked', 'created', 'destroyed', 'expanded', 'expanding'];
132
65
  var modelProps = ['expandedIndices'];
133
66
  var testProp = getProps({ props: properties });
@@ -145,205 +78,167 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
145
78
  * <ejs-accordion></ejs-accordion>
146
79
  * ```
147
80
  */
148
- var AccordionComponent = /** @__PURE__ @class */ (function (_super) {
149
- __extends$1(AccordionComponent, _super);
150
- function AccordionComponent() {
151
- var _this = _super.call(this, arguments) || this;
152
- _this.propKeys = properties;
153
- _this.models = modelProps;
154
- _this.hasChildDirective = true;
155
- _this.hasInjectedModules = false;
156
- _this.tagMapper = { "e-accordionitems": "e-accordionitem" };
157
- _this.tagNameMapper = { "e-accordionitems": "e-items" };
158
- _this.isVue3 = !isExecute;
159
- _this.ej2Instances = new Accordion({});
160
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
161
- _this.ej2Instances.trigger = _this.trigger;
162
- _this.bindProperties();
163
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
164
- _this.ej2Instances.setProperties = _this.setProperties;
165
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
166
- _this.updated = _this.updated;
167
- return _this;
168
- }
169
- AccordionComponent.prototype.clearTemplate = function (templateNames) {
170
- if (!templateNames) {
171
- templateNames = Object.keys(this.templateCollection || {});
81
+ var AccordionComponent = vueDefineComponent({
82
+ name: 'AccordionComponent',
83
+ mixins: [ComponentBase],
84
+ props: props,
85
+ watch: watch,
86
+ emits: emitProbs,
87
+ model: { event: 'modelchanged' },
88
+ provide: function () { return { custom: this.custom }; },
89
+ data: function () {
90
+ return {
91
+ ej2Instances: new Accordion({}),
92
+ propKeys: properties,
93
+ models: modelProps,
94
+ hasChildDirective: true,
95
+ hasInjectedModules: false,
96
+ tagMapper: { "e-accordionitems": "e-accordionitem" },
97
+ tagNameMapper: { "e-accordionitems": "e-items" },
98
+ isVue3: !isExecute,
99
+ templateCollection: {},
100
+ };
101
+ },
102
+ created: function () {
103
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
104
+ this.ej2Instances.trigger = this.trigger;
105
+ this.bindProperties();
106
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
107
+ this.ej2Instances.setProperties = this.setProperties;
108
+ this.ej2Instances.clearTemplate = this.clearTemplate;
109
+ this.updated = this.updated;
110
+ },
111
+ render: function (createElement) {
112
+ var h = !isExecute ? gh : createElement;
113
+ var slots = null;
114
+ if (!isNullOrUndefined(this.$slots.default)) {
115
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
172
116
  }
173
- if (templateNames.length && this.templateCollection) {
174
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
175
- var tempName = templateNames_1[_i];
176
- var elementCollection = this.templateCollection[tempName];
177
- if (elementCollection && elementCollection.length) {
178
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
179
- var ele = elementCollection_1[_a];
180
- var destroy = getValue('__vue__.$destroy', ele);
181
- if (destroy) {
182
- ele.__vue__.$destroy();
183
- }
184
- if (ele.innerHTML) {
185
- ele.innerHTML = '';
117
+ return h('div', slots);
118
+ },
119
+ methods: {
120
+ clearTemplate: function (templateNames) {
121
+ if (!templateNames) {
122
+ templateNames = Object.keys(this.templateCollection || {});
123
+ }
124
+ if (templateNames.length && this.templateCollection) {
125
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
126
+ var tempName = templateNames_1[_i];
127
+ var elementCollection = this.templateCollection[tempName];
128
+ if (elementCollection && elementCollection.length) {
129
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
130
+ var ele = elementCollection_1[_a];
131
+ var destroy = getValue('__vue__.$destroy', ele);
132
+ if (destroy) {
133
+ ele.__vue__.$destroy();
134
+ }
135
+ if (ele.innerHTML) {
136
+ ele.innerHTML = '';
137
+ }
186
138
  }
139
+ delete this.templateCollection[tempName];
187
140
  }
188
- delete this.templateCollection[tempName];
189
141
  }
190
142
  }
191
- }
192
- };
193
- AccordionComponent.prototype.setProperties = function (prop, muteOnChange) {
194
- var _this = this;
195
- if (this.isVue3) {
196
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
197
- }
198
- if (this.ej2Instances && this.ej2Instances._setProperties) {
199
- this.ej2Instances._setProperties(prop, muteOnChange);
200
- }
201
- if (prop && this.models && this.models.length) {
202
- Object.keys(prop).map(function (key) {
203
- _this.models.map(function (model) {
204
- if ((key === model) && !(/datasource/i.test(key))) {
205
- if (_this.isVue3) {
206
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
143
+ },
144
+ setProperties: function (prop, muteOnChange) {
145
+ var _this = this;
146
+ if (this.isVue3) {
147
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
148
+ }
149
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
150
+ this.ej2Instances._setProperties(prop, muteOnChange);
151
+ }
152
+ if (prop && this.models && this.models.length) {
153
+ Object.keys(prop).map(function (key) {
154
+ _this.models.map(function (model) {
155
+ if ((key === model) && !(/datasource/i.test(key))) {
156
+ if (_this.isVue3) {
157
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
158
+ }
159
+ else {
160
+ _this.$emit('update:' + key, prop[key]);
161
+ _this.$emit('modelchanged', prop[key]);
162
+ }
207
163
  }
208
- else {
209
- _this.$emit('update:' + key, prop[key]);
210
- _this.$emit('modelchanged', prop[key]);
164
+ });
165
+ });
166
+ }
167
+ },
168
+ trigger: function (eventName, eventProp, successHandler) {
169
+ if (!isExecute) {
170
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
171
+ }
172
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
173
+ var key = this.models.toString().match(/checked|value/) || [];
174
+ var propKey = key[0];
175
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
176
+ if (!isExecute) {
177
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
178
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
179
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
180
+ }
181
+ else {
182
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
183
+ this.$emit('update:' + propKey, eventProp[propKey]);
184
+ this.$emit('modelchanged', eventProp[propKey]);
211
185
  }
212
186
  }
213
- });
214
- });
215
- }
216
- };
217
- AccordionComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
218
- if (!isExecute) {
219
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
220
- }
221
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
222
- var key = this.models.toString().match(/checked|value/) || [];
223
- var propKey = key[0];
224
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
225
- if (!isExecute) {
226
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
227
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
228
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
229
187
  }
230
- else {
231
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
188
+ }
189
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
190
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
191
+ var propKey = key[0];
192
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
193
+ if (!isExecute) {
194
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
195
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
196
+ }
197
+ else {
232
198
  this.$emit('update:' + propKey, eventProp[propKey]);
233
199
  this.$emit('modelchanged', eventProp[propKey]);
234
200
  }
235
201
  }
236
202
  }
237
- }
238
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
239
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
240
- var propKey = key[0];
241
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
242
- if (!isExecute) {
243
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
244
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
245
- }
246
- else {
247
- this.$emit('update:' + propKey, eventProp[propKey]);
248
- this.$emit('modelchanged', eventProp[propKey]);
249
- }
203
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
204
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
250
205
  }
251
- }
252
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
253
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
254
- }
255
- };
256
- AccordionComponent.prototype.render = function (createElement) {
257
- var h = !isExecute ? gh : createElement;
258
- var slots = null;
259
- if (!isNullOrUndefined(this.$slots.default)) {
260
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
261
- }
262
- return h('div', slots);
263
- };
264
- AccordionComponent.prototype.custom = function () {
265
- this.updated();
266
- };
267
- AccordionComponent.prototype.addItem = function (item, index) {
268
- return this.ej2Instances.addItem(item, index);
269
- };
270
- AccordionComponent.prototype.enableItem = function (index, isEnable) {
271
- return this.ej2Instances.enableItem(index, isEnable);
272
- };
273
- AccordionComponent.prototype.expandItem = function (isExpand, index) {
274
- return this.ej2Instances.expandItem(isExpand, index);
275
- };
276
- AccordionComponent.prototype.hideItem = function (index, isHidden) {
277
- return this.ej2Instances.hideItem(index, isHidden);
278
- };
279
- AccordionComponent.prototype.removeItem = function (index) {
280
- return this.ej2Instances.removeItem(index);
281
- };
282
- AccordionComponent.prototype.select = function (index) {
283
- return this.ej2Instances.select(index);
284
- };
285
- AccordionComponent = __decorate$1([
286
- EJComponentDecorator({
287
- props: properties,
288
- model: {
289
- event: 'modelchanged'
290
- }
291
- }, isExecute)
292
- ,Options({
293
- props: props,
294
- watch: watch,
295
- emits: emitProbs,
296
- provide: function provide() {
297
- return {
298
- custom: this.custom
299
- };
300
- }
301
- })
302
- ], AccordionComponent);
303
- return AccordionComponent;
304
- }(ComponentBase));
206
+ },
207
+ custom: function () {
208
+ this.updated();
209
+ },
210
+ addItem: function (item, index) {
211
+ return this.ej2Instances.addItem(item, index);
212
+ },
213
+ enableItem: function (index, isEnable) {
214
+ return this.ej2Instances.enableItem(index, isEnable);
215
+ },
216
+ expandItem: function (isExpand, index) {
217
+ return this.ej2Instances.expandItem(isExpand, index);
218
+ },
219
+ hideItem: function (index, isHidden) {
220
+ return this.ej2Instances.hideItem(index, isHidden);
221
+ },
222
+ removeItem: function (index) {
223
+ return this.ej2Instances.removeItem(index);
224
+ },
225
+ select: function (index) {
226
+ return this.ej2Instances.select(index);
227
+ },
228
+ }
229
+ });
305
230
  var AccordionPlugin = {
306
231
  name: 'ejs-accordion',
307
- install: function (Vue$$1) {
308
- Vue$$1.component(AccordionPlugin.name, AccordionComponent);
309
- Vue$$1.component(AccordionItemPlugin.name, AccordionItemDirective);
310
- Vue$$1.component(AccordionItemsPlugin.name, AccordionItemsDirective);
232
+ install: function (Vue) {
233
+ Vue.component(AccordionPlugin.name, AccordionComponent);
234
+ Vue.component(AccordionItemPlugin.name, AccordionItemDirective);
235
+ Vue.component(AccordionItemsPlugin.name, AccordionItemsDirective);
311
236
  }
312
237
  };
313
238
 
314
- var __extends$2 = (undefined && undefined.__extends) || (function () {
315
- var extendStatics = function (d, b) {
316
- extendStatics = Object.setPrototypeOf ||
317
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
318
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
319
- return extendStatics(d, b);
320
- };
321
- return function (d, b) {
322
- extendStatics(d, b);
323
- function __() { this.constructor = d; }
324
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
325
- };
326
- })();
327
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
328
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
329
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
330
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
331
- return c > 3 && r && Object.defineProperty(target, key, r), r;
332
- };
333
- // {{VueImport}}
334
- var vueImport$1;
335
- if (!isExecute || parseInt(allVue.version) < 3) {
336
- vueImport$1 = Vue;
337
- }
338
- else {
339
- vueImport$1 = Vue$1;
340
- }
341
- var ItemsDirective = /** @__PURE__ @class */ (function (_super) {
342
- __extends$2(ItemsDirective, _super);
343
- function ItemsDirective() {
344
- return _super.call(this, arguments) || this;
345
- }
346
- ItemsDirective.prototype.render = function (createElement) {
239
+ var ItemsDirective = vueDefineComponent({
240
+ inject: { custom: { default: null } },
241
+ render: function (createElement) {
347
242
  if (!isExecute) {
348
243
  var h = !isExecute ? gh : createElement;
349
244
  var slots = null;
@@ -353,31 +248,22 @@ var ItemsDirective = /** @__PURE__ @class */ (function (_super) {
353
248
  return h('div', { class: 'e-directive' }, slots);
354
249
  }
355
250
  return;
356
- };
357
- ItemsDirective.prototype.updated = function () {
251
+ },
252
+ updated: function () {
358
253
  if (!isExecute && this.custom) {
359
254
  this.custom();
360
255
  }
361
- };
362
- ItemsDirective.prototype.getTag = function () {
363
- return 'e-items';
364
- };
365
- ItemsDirective = __decorate$2([
366
- EJComponentDecorator({}, isExecute)
367
- ,Options({
368
- inject: {
369
- custom: {
370
- default: null
371
- }
372
- }
373
- })
374
- ], ItemsDirective);
375
- return ItemsDirective;
376
- }(vueImport$1));
256
+ },
257
+ methods: {
258
+ getTag: function () {
259
+ return 'e-items';
260
+ }
261
+ }
262
+ });
377
263
  var ItemsPlugin = {
378
264
  name: 'e-items',
379
- install: function (Vue$$1) {
380
- Vue$$1.component(ItemsPlugin.name, ItemsDirective);
265
+ install: function (Vue) {
266
+ Vue.component(ItemsPlugin.name, ItemsDirective);
381
267
  }
382
268
  };
383
269
  /**
@@ -392,49 +278,23 @@ var ItemsPlugin = {
392
278
  * </ejs-toolbar>
393
279
  * ```
394
280
  */
395
- var ItemDirective = /** @__PURE__ @class */ (function (_super) {
396
- __extends$2(ItemDirective, _super);
397
- function ItemDirective() {
398
- return _super !== null && _super.apply(this, arguments) || this;
399
- }
400
- ItemDirective.prototype.render = function () {
281
+ var ItemDirective = vueDefineComponent({
282
+ render: function () {
401
283
  return;
402
- };
403
- ItemDirective.prototype.getTag = function () {
404
- return 'e-item';
405
- };
406
- ItemDirective = __decorate$2([
407
- EJComponentDecorator({}, isExecute)
408
- ], ItemDirective);
409
- return ItemDirective;
410
- }(vueImport$1));
284
+ },
285
+ methods: {
286
+ getTag: function () {
287
+ return 'e-item';
288
+ }
289
+ }
290
+ });
411
291
  var ItemPlugin = {
412
292
  name: 'e-item',
413
- install: function (Vue$$1) {
414
- Vue$$1.component(ItemPlugin.name, ItemDirective);
293
+ install: function (Vue) {
294
+ Vue.component(ItemPlugin.name, ItemDirective);
415
295
  }
416
296
  };
417
297
 
418
- var __extends$3 = (undefined && undefined.__extends) || (function () {
419
- var extendStatics = function (d, b) {
420
- extendStatics = Object.setPrototypeOf ||
421
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
422
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
423
- return extendStatics(d, b);
424
- };
425
- return function (d, b) {
426
- extendStatics(d, b);
427
- function __() { this.constructor = d; }
428
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
429
- };
430
- })();
431
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
432
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
433
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
434
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
435
- return c > 3 && r && Object.defineProperty(target, key, r), r;
436
- };
437
- // {{VueImport}}
438
298
  var properties$1 = ['isLazyUpdate', 'plugins', 'allowKeyboard', 'cssClass', 'enableCollision', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'height', 'items', 'locale', 'overflowMode', 'scrollStep', 'width', 'beforeCreate', 'clicked', 'created', 'destroyed'];
439
299
  var modelProps$1 = [];
440
300
  var testProp$1 = getProps({ props: properties$1 });
@@ -452,148 +312,122 @@ for (var _i$1 = 0, modelProps_1$1 = modelProps$1; _i$1 < modelProps_1$1.length;
452
312
  * <ejs-toolbar></ejs-toolbar>
453
313
  * ```
454
314
  */
455
- var ToolbarComponent = /** @__PURE__ @class */ (function (_super) {
456
- __extends$3(ToolbarComponent, _super);
457
- function ToolbarComponent() {
458
- var _this = _super.call(this, arguments) || this;
459
- _this.propKeys = properties$1;
460
- _this.models = modelProps$1;
461
- _this.hasChildDirective = true;
462
- _this.hasInjectedModules = false;
463
- _this.tagMapper = { "e-items": "e-item" };
464
- _this.tagNameMapper = {};
465
- _this.isVue3 = !isExecute;
466
- _this.ej2Instances = new Toolbar({});
467
- _this.bindProperties();
468
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
469
- _this.ej2Instances.setProperties = _this.setProperties;
470
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
471
- _this.updated = _this.updated;
472
- return _this;
473
- }
474
- ToolbarComponent.prototype.clearTemplate = function (templateNames) {
475
- if (!templateNames) {
476
- templateNames = Object.keys(this.templateCollection || {});
315
+ var ToolbarComponent = vueDefineComponent({
316
+ name: 'ToolbarComponent',
317
+ mixins: [ComponentBase],
318
+ props: props$1,
319
+ watch: watch$1,
320
+ emits: emitProbs$1,
321
+ provide: function () { return { custom: this.custom }; },
322
+ data: function () {
323
+ return {
324
+ ej2Instances: new Toolbar({}),
325
+ propKeys: properties$1,
326
+ models: modelProps$1,
327
+ hasChildDirective: true,
328
+ hasInjectedModules: false,
329
+ tagMapper: { "e-items": "e-item" },
330
+ tagNameMapper: {},
331
+ isVue3: !isExecute,
332
+ templateCollection: {},
333
+ };
334
+ },
335
+ created: function () {
336
+ this.bindProperties();
337
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
338
+ this.ej2Instances.setProperties = this.setProperties;
339
+ this.ej2Instances.clearTemplate = this.clearTemplate;
340
+ this.updated = this.updated;
341
+ },
342
+ render: function (createElement) {
343
+ var h = !isExecute ? gh : createElement;
344
+ var slots = null;
345
+ if (!isNullOrUndefined(this.$slots.default)) {
346
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
477
347
  }
478
- if (templateNames.length && this.templateCollection) {
479
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
480
- var tempName = templateNames_1[_i];
481
- var elementCollection = this.templateCollection[tempName];
482
- if (elementCollection && elementCollection.length) {
483
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
484
- var ele = elementCollection_1[_a];
485
- var destroy = getValue('__vue__.$destroy', ele);
486
- if (destroy) {
487
- ele.__vue__.$destroy();
488
- }
489
- if (ele.innerHTML) {
490
- ele.innerHTML = '';
348
+ return h('div', slots);
349
+ },
350
+ methods: {
351
+ clearTemplate: function (templateNames) {
352
+ if (!templateNames) {
353
+ templateNames = Object.keys(this.templateCollection || {});
354
+ }
355
+ if (templateNames.length && this.templateCollection) {
356
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
357
+ var tempName = templateNames_1[_i];
358
+ var elementCollection = this.templateCollection[tempName];
359
+ if (elementCollection && elementCollection.length) {
360
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
361
+ var ele = elementCollection_1[_a];
362
+ var destroy = getValue('__vue__.$destroy', ele);
363
+ if (destroy) {
364
+ ele.__vue__.$destroy();
365
+ }
366
+ if (ele.innerHTML) {
367
+ ele.innerHTML = '';
368
+ }
491
369
  }
370
+ delete this.templateCollection[tempName];
492
371
  }
493
- delete this.templateCollection[tempName];
494
372
  }
495
373
  }
496
- }
497
- };
498
- ToolbarComponent.prototype.setProperties = function (prop, muteOnChange) {
499
- var _this = this;
500
- if (this.isVue3) {
501
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
502
- }
503
- if (this.ej2Instances && this.ej2Instances._setProperties) {
504
- this.ej2Instances._setProperties(prop, muteOnChange);
505
- }
506
- if (prop && this.models && this.models.length) {
507
- Object.keys(prop).map(function (key) {
508
- _this.models.map(function (model) {
509
- if ((key === model) && !(/datasource/i.test(key))) {
510
- if (_this.isVue3) {
511
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
512
- }
513
- else {
514
- _this.$emit('update:' + key, prop[key]);
515
- _this.$emit('modelchanged', prop[key]);
374
+ },
375
+ setProperties: function (prop, muteOnChange) {
376
+ var _this = this;
377
+ if (this.isVue3) {
378
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
379
+ }
380
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
381
+ this.ej2Instances._setProperties(prop, muteOnChange);
382
+ }
383
+ if (prop && this.models && this.models.length) {
384
+ Object.keys(prop).map(function (key) {
385
+ _this.models.map(function (model) {
386
+ if ((key === model) && !(/datasource/i.test(key))) {
387
+ if (_this.isVue3) {
388
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
389
+ }
390
+ else {
391
+ _this.$emit('update:' + key, prop[key]);
392
+ _this.$emit('modelchanged', prop[key]);
393
+ }
516
394
  }
517
- }
395
+ });
518
396
  });
519
- });
520
- }
521
- };
522
- ToolbarComponent.prototype.render = function (createElement) {
523
- var h = !isExecute ? gh : createElement;
524
- var slots = null;
525
- if (!isNullOrUndefined(this.$slots.default)) {
526
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
527
- }
528
- return h('div', slots);
529
- };
530
- ToolbarComponent.prototype.custom = function () {
531
- this.updated();
532
- };
533
- ToolbarComponent.prototype.addItems = function (items, index) {
534
- return this.ej2Instances.addItems(items, index);
535
- };
536
- ToolbarComponent.prototype.disable = function (value) {
537
- return this.ej2Instances.disable(value);
538
- };
539
- ToolbarComponent.prototype.enableItems = function (items, isEnable) {
540
- return this.ej2Instances.enableItems(items, isEnable);
541
- };
542
- ToolbarComponent.prototype.hideItem = function (index, value) {
543
- return this.ej2Instances.hideItem(index, value);
544
- };
545
- ToolbarComponent.prototype.refreshOverflow = function () {
546
- return this.ej2Instances.refreshOverflow();
547
- };
548
- ToolbarComponent.prototype.removeItems = function (args) {
549
- return this.ej2Instances.removeItems(args);
550
- };
551
- ToolbarComponent = __decorate$3([
552
- EJComponentDecorator({
553
- props: properties$1
554
- }, isExecute)
555
- ,Options({
556
- props: props,
557
- watch: watch,
558
- emits: emitProbs,
559
- provide: function provide() {
560
- return {
561
- custom: this.custom
562
- };
563
- }
564
- })
565
- ], ToolbarComponent);
566
- return ToolbarComponent;
567
- }(ComponentBase));
397
+ }
398
+ },
399
+ custom: function () {
400
+ this.updated();
401
+ },
402
+ addItems: function (items, index) {
403
+ return this.ej2Instances.addItems(items, index);
404
+ },
405
+ disable: function (value) {
406
+ return this.ej2Instances.disable(value);
407
+ },
408
+ enableItems: function (items, isEnable) {
409
+ return this.ej2Instances.enableItems(items, isEnable);
410
+ },
411
+ hideItem: function (index, value) {
412
+ return this.ej2Instances.hideItem(index, value);
413
+ },
414
+ refreshOverflow: function () {
415
+ return this.ej2Instances.refreshOverflow();
416
+ },
417
+ removeItems: function (args) {
418
+ return this.ej2Instances.removeItems(args);
419
+ },
420
+ }
421
+ });
568
422
  var ToolbarPlugin = {
569
423
  name: 'ejs-toolbar',
570
- install: function (Vue$$1) {
571
- Vue$$1.component(ToolbarPlugin.name, ToolbarComponent);
572
- Vue$$1.component(ItemPlugin.name, ItemDirective);
573
- Vue$$1.component(ItemsPlugin.name, ItemsDirective);
424
+ install: function (Vue) {
425
+ Vue.component(ToolbarPlugin.name, ToolbarComponent);
426
+ Vue.component(ItemPlugin.name, ItemDirective);
427
+ Vue.component(ItemsPlugin.name, ItemsDirective);
574
428
  }
575
429
  };
576
430
 
577
- var __extends$4 = (undefined && undefined.__extends) || (function () {
578
- var extendStatics = function (d, b) {
579
- extendStatics = Object.setPrototypeOf ||
580
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
581
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
582
- return extendStatics(d, b);
583
- };
584
- return function (d, b) {
585
- extendStatics(d, b);
586
- function __() { this.constructor = d; }
587
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
588
- };
589
- })();
590
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
591
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
592
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
593
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
594
- return c > 3 && r && Object.defineProperty(target, key, r), r;
595
- };
596
- // {{VueImport}}
597
431
  var properties$2 = ['isLazyUpdate', 'plugins', 'animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hoverDelay', 'items', 'locale', 'showItemOnClick', 'target', 'template', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];
598
432
  var modelProps$2 = [];
599
433
  var testProp$2 = getProps({ props: properties$2 });
@@ -612,171 +446,135 @@ for (var _i$2 = 0, modelProps_1$2 = modelProps$2; _i$2 < modelProps_1$2.length;
612
446
  * <ejs-contextmenu target='#target' :items='menuItems'></ejs-contextmenu>
613
447
  * ```
614
448
  */
615
- var ContextMenuComponent = /** @__PURE__ @class */ (function (_super) {
616
- __extends$4(ContextMenuComponent, _super);
617
- function ContextMenuComponent() {
618
- var _this = _super.call(this, arguments) || this;
619
- _this.propKeys = properties$2;
620
- _this.models = modelProps$2;
621
- _this.hasChildDirective = false;
622
- _this.hasInjectedModules = false;
623
- _this.tagMapper = {};
624
- _this.tagNameMapper = {};
625
- _this.isVue3 = !isExecute;
626
- _this.ej2Instances = new ContextMenu({});
627
- _this.bindProperties();
628
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
629
- _this.ej2Instances.setProperties = _this.setProperties;
630
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
631
- _this.updated = _this.updated;
632
- return _this;
633
- }
634
- ContextMenuComponent.prototype.clearTemplate = function (templateNames) {
635
- if (!templateNames) {
636
- templateNames = Object.keys(this.templateCollection || {});
449
+ var ContextMenuComponent = vueDefineComponent({
450
+ name: 'ContextMenuComponent',
451
+ mixins: [ComponentBase],
452
+ props: props$2,
453
+ watch: watch$2,
454
+ emits: emitProbs$2,
455
+ provide: function () { return { custom: this.custom }; },
456
+ data: function () {
457
+ return {
458
+ ej2Instances: new ContextMenu({}),
459
+ propKeys: properties$2,
460
+ models: modelProps$2,
461
+ hasChildDirective: false,
462
+ hasInjectedModules: false,
463
+ tagMapper: {},
464
+ tagNameMapper: {},
465
+ isVue3: !isExecute,
466
+ templateCollection: {},
467
+ };
468
+ },
469
+ created: function () {
470
+ this.bindProperties();
471
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
472
+ this.ej2Instances.setProperties = this.setProperties;
473
+ this.ej2Instances.clearTemplate = this.clearTemplate;
474
+ this.updated = this.updated;
475
+ },
476
+ render: function (createElement) {
477
+ var h = !isExecute ? gh : createElement;
478
+ var slots = null;
479
+ if (!isNullOrUndefined(this.$slots.default)) {
480
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
637
481
  }
638
- if (templateNames.length && this.templateCollection) {
639
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
640
- var tempName = templateNames_1[_i];
641
- var elementCollection = this.templateCollection[tempName];
642
- if (elementCollection && elementCollection.length) {
643
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
644
- var ele = elementCollection_1[_a];
645
- var destroy = getValue('__vue__.$destroy', ele);
646
- if (destroy) {
647
- ele.__vue__.$destroy();
648
- }
649
- if (ele.innerHTML) {
650
- ele.innerHTML = '';
482
+ return h('ul', slots);
483
+ },
484
+ methods: {
485
+ clearTemplate: function (templateNames) {
486
+ if (!templateNames) {
487
+ templateNames = Object.keys(this.templateCollection || {});
488
+ }
489
+ if (templateNames.length && this.templateCollection) {
490
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
491
+ var tempName = templateNames_1[_i];
492
+ var elementCollection = this.templateCollection[tempName];
493
+ if (elementCollection && elementCollection.length) {
494
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
495
+ var ele = elementCollection_1[_a];
496
+ var destroy = getValue('__vue__.$destroy', ele);
497
+ if (destroy) {
498
+ ele.__vue__.$destroy();
499
+ }
500
+ if (ele.innerHTML) {
501
+ ele.innerHTML = '';
502
+ }
651
503
  }
504
+ delete this.templateCollection[tempName];
652
505
  }
653
- delete this.templateCollection[tempName];
654
506
  }
655
507
  }
656
- }
657
- };
658
- ContextMenuComponent.prototype.setProperties = function (prop, muteOnChange) {
659
- var _this = this;
660
- if (this.isVue3) {
661
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
662
- }
663
- if (this.ej2Instances && this.ej2Instances._setProperties) {
664
- this.ej2Instances._setProperties(prop, muteOnChange);
665
- }
666
- if (prop && this.models && this.models.length) {
667
- Object.keys(prop).map(function (key) {
668
- _this.models.map(function (model) {
669
- if ((key === model) && !(/datasource/i.test(key))) {
670
- if (_this.isVue3) {
671
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
672
- }
673
- else {
674
- _this.$emit('update:' + key, prop[key]);
675
- _this.$emit('modelchanged', prop[key]);
508
+ },
509
+ setProperties: function (prop, muteOnChange) {
510
+ var _this = this;
511
+ if (this.isVue3) {
512
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
513
+ }
514
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
515
+ this.ej2Instances._setProperties(prop, muteOnChange);
516
+ }
517
+ if (prop && this.models && this.models.length) {
518
+ Object.keys(prop).map(function (key) {
519
+ _this.models.map(function (model) {
520
+ if ((key === model) && !(/datasource/i.test(key))) {
521
+ if (_this.isVue3) {
522
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
523
+ }
524
+ else {
525
+ _this.$emit('update:' + key, prop[key]);
526
+ _this.$emit('modelchanged', prop[key]);
527
+ }
676
528
  }
677
- }
529
+ });
678
530
  });
679
- });
680
- }
681
- };
682
- ContextMenuComponent.prototype.render = function (createElement) {
683
- var h = !isExecute ? gh : createElement;
684
- var slots = null;
685
- if (!isNullOrUndefined(this.$slots.default)) {
686
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
687
- }
688
- return h('ul', slots);
689
- };
690
- ContextMenuComponent.prototype.custom = function () {
691
- this.updated();
692
- };
693
- ContextMenuComponent.prototype.close = function () {
694
- return this.ej2Instances.close();
695
- };
696
- ContextMenuComponent.prototype.enableItems = function (items, enable, isUniqueId) {
697
- return this.ej2Instances.enableItems(items, enable, isUniqueId);
698
- };
699
- ContextMenuComponent.prototype.getItemIndex = function (item, isUniqueId) {
700
- return this.ej2Instances.getItemIndex(item, isUniqueId);
701
- };
702
- ContextMenuComponent.prototype.hideItems = function (items, isUniqueId) {
703
- return this.ej2Instances.hideItems(items, isUniqueId);
704
- };
705
- ContextMenuComponent.prototype.insertAfter = function (items, text, isUniqueId) {
706
- return this.ej2Instances.insertAfter(items, text, isUniqueId);
707
- };
708
- ContextMenuComponent.prototype.insertBefore = function (items, text, isUniqueId) {
709
- return this.ej2Instances.insertBefore(items, text, isUniqueId);
710
- };
711
- ContextMenuComponent.prototype.open = function (top, left, target) {
712
- return this.ej2Instances.open(top, left, target);
713
- };
714
- ContextMenuComponent.prototype.removeItems = function (items, isUniqueId) {
715
- return this.ej2Instances.removeItems(items, isUniqueId);
716
- };
717
- ContextMenuComponent.prototype.setItem = function (item, id, isUniqueId) {
718
- return this.ej2Instances.setItem(item, id, isUniqueId);
719
- };
720
- ContextMenuComponent.prototype.showItems = function (items, isUniqueId) {
721
- return this.ej2Instances.showItems(items, isUniqueId);
722
- };
723
- ContextMenuComponent = __decorate$4([
724
- EJComponentDecorator({
725
- props: properties$2
726
- }, isExecute)
727
- ,Options({
728
- props: props,
729
- watch: watch,
730
- emits: emitProbs,
731
- provide: function provide() {
732
- return {
733
- custom: this.custom
734
- };
735
- }
736
- })
737
- ], ContextMenuComponent);
738
- return ContextMenuComponent;
739
- }(ComponentBase));
531
+ }
532
+ },
533
+ custom: function () {
534
+ this.updated();
535
+ },
536
+ close: function () {
537
+ return this.ej2Instances.close();
538
+ },
539
+ enableItems: function (items, enable, isUniqueId) {
540
+ return this.ej2Instances.enableItems(items, enable, isUniqueId);
541
+ },
542
+ getItemIndex: function (item, isUniqueId) {
543
+ return this.ej2Instances.getItemIndex(item, isUniqueId);
544
+ },
545
+ hideItems: function (items, isUniqueId) {
546
+ return this.ej2Instances.hideItems(items, isUniqueId);
547
+ },
548
+ insertAfter: function (items, text, isUniqueId) {
549
+ return this.ej2Instances.insertAfter(items, text, isUniqueId);
550
+ },
551
+ insertBefore: function (items, text, isUniqueId) {
552
+ return this.ej2Instances.insertBefore(items, text, isUniqueId);
553
+ },
554
+ open: function (top, left, target) {
555
+ return this.ej2Instances.open(top, left, target);
556
+ },
557
+ removeItems: function (items, isUniqueId) {
558
+ return this.ej2Instances.removeItems(items, isUniqueId);
559
+ },
560
+ setItem: function (item, id, isUniqueId) {
561
+ return this.ej2Instances.setItem(item, id, isUniqueId);
562
+ },
563
+ showItems: function (items, isUniqueId) {
564
+ return this.ej2Instances.showItems(items, isUniqueId);
565
+ },
566
+ }
567
+ });
740
568
  var ContextMenuPlugin = {
741
569
  name: 'ejs-contextmenu',
742
- install: function (Vue$$1) {
743
- Vue$$1.component(ContextMenuPlugin.name, ContextMenuComponent);
570
+ install: function (Vue) {
571
+ Vue.component(ContextMenuPlugin.name, ContextMenuComponent);
744
572
  }
745
573
  };
746
574
 
747
- var __extends$5 = (undefined && undefined.__extends) || (function () {
748
- var extendStatics = function (d, b) {
749
- extendStatics = Object.setPrototypeOf ||
750
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
751
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
752
- return extendStatics(d, b);
753
- };
754
- return function (d, b) {
755
- extendStatics(d, b);
756
- function __() { this.constructor = d; }
757
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
758
- };
759
- })();
760
- var __decorate$5 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
761
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
762
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
763
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
764
- return c > 3 && r && Object.defineProperty(target, key, r), r;
765
- };
766
- // {{VueImport}}
767
- var vueImport$2;
768
- if (!isExecute || parseInt(allVue.version) < 3) {
769
- vueImport$2 = Vue;
770
- }
771
- else {
772
- vueImport$2 = Vue$1;
773
- }
774
- var BreadcrumbItemsDirective = /** @__PURE__ @class */ (function (_super) {
775
- __extends$5(BreadcrumbItemsDirective, _super);
776
- function BreadcrumbItemsDirective() {
777
- return _super.call(this, arguments) || this;
778
- }
779
- BreadcrumbItemsDirective.prototype.render = function (createElement) {
575
+ var BreadcrumbItemsDirective = vueDefineComponent({
576
+ inject: { custom: { default: null } },
577
+ render: function (createElement) {
780
578
  if (!isExecute) {
781
579
  var h = !isExecute ? gh : createElement;
782
580
  var slots = null;
@@ -786,31 +584,22 @@ var BreadcrumbItemsDirective = /** @__PURE__ @class */ (function (_super) {
786
584
  return h('div', { class: 'e-directive' }, slots);
787
585
  }
788
586
  return;
789
- };
790
- BreadcrumbItemsDirective.prototype.updated = function () {
587
+ },
588
+ updated: function () {
791
589
  if (!isExecute && this.custom) {
792
590
  this.custom();
793
591
  }
794
- };
795
- BreadcrumbItemsDirective.prototype.getTag = function () {
796
- return 'e-breadcrumb-items';
797
- };
798
- BreadcrumbItemsDirective = __decorate$5([
799
- EJComponentDecorator({}, isExecute)
800
- ,Options({
801
- inject: {
802
- custom: {
803
- default: null
804
- }
805
- }
806
- })
807
- ], BreadcrumbItemsDirective);
808
- return BreadcrumbItemsDirective;
809
- }(vueImport$2));
592
+ },
593
+ methods: {
594
+ getTag: function () {
595
+ return 'e-breadcrumb-items';
596
+ }
597
+ }
598
+ });
810
599
  var BreadcrumbItemsPlugin = {
811
600
  name: 'e-breadcrumb-items',
812
- install: function (Vue$$1) {
813
- Vue$$1.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
601
+ install: function (Vue) {
602
+ Vue.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
814
603
  }
815
604
  };
816
605
  /**
@@ -825,49 +614,23 @@ var BreadcrumbItemsPlugin = {
825
614
  * </ejs-breadcrumb>
826
615
  * ```
827
616
  */
828
- var BreadcrumbItemDirective = /** @__PURE__ @class */ (function (_super) {
829
- __extends$5(BreadcrumbItemDirective, _super);
830
- function BreadcrumbItemDirective() {
831
- return _super !== null && _super.apply(this, arguments) || this;
832
- }
833
- BreadcrumbItemDirective.prototype.render = function () {
617
+ var BreadcrumbItemDirective = vueDefineComponent({
618
+ render: function () {
834
619
  return;
835
- };
836
- BreadcrumbItemDirective.prototype.getTag = function () {
837
- return 'e-breadcrumb-item';
838
- };
839
- BreadcrumbItemDirective = __decorate$5([
840
- EJComponentDecorator({}, isExecute)
841
- ], BreadcrumbItemDirective);
842
- return BreadcrumbItemDirective;
843
- }(vueImport$2));
620
+ },
621
+ methods: {
622
+ getTag: function () {
623
+ return 'e-breadcrumb-item';
624
+ }
625
+ }
626
+ });
844
627
  var BreadcrumbItemPlugin = {
845
628
  name: 'e-breadcrumb-item',
846
- install: function (Vue$$1) {
847
- Vue$$1.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
629
+ install: function (Vue) {
630
+ Vue.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
848
631
  }
849
632
  };
850
633
 
851
- var __extends$6 = (undefined && undefined.__extends) || (function () {
852
- var extendStatics = function (d, b) {
853
- extendStatics = Object.setPrototypeOf ||
854
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
855
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
856
- return extendStatics(d, b);
857
- };
858
- return function (d, b) {
859
- extendStatics(d, b);
860
- function __() { this.constructor = d; }
861
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
862
- };
863
- })();
864
- var __decorate$6 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
865
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
866
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
867
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
868
- return c > 3 && r && Object.defineProperty(target, key, r), r;
869
- };
870
- // {{VueImport}}
871
634
  var properties$3 = ['isLazyUpdate', 'plugins', 'activeItem', 'cssClass', 'disabled', 'enableActiveItemNavigation', 'enableNavigation', 'enablePersistence', 'enableRtl', 'itemTemplate', 'items', 'locale', 'maxItems', 'overflowMode', 'separatorTemplate', 'url', 'beforeItemRender', 'created', 'itemClick'];
872
635
  var modelProps$3 = ['activeItem'];
873
636
  var testProp$3 = getProps({ props: properties$3 });
@@ -885,187 +648,149 @@ for (var _i$3 = 0, modelProps_1$3 = modelProps$3; _i$3 < modelProps_1$3.length;
885
648
  * <ejs-breadcrumb :items='breadcrumbItems'></ejs-breadcrumb>
886
649
  * ```
887
650
  */
888
- var BreadcrumbComponent = /** @__PURE__ @class */ (function (_super) {
889
- __extends$6(BreadcrumbComponent, _super);
890
- function BreadcrumbComponent() {
891
- var _this = _super.call(this, arguments) || this;
892
- _this.propKeys = properties$3;
893
- _this.models = modelProps$3;
894
- _this.hasChildDirective = true;
895
- _this.hasInjectedModules = false;
896
- _this.tagMapper = { "e-breadcrumb-items": "e-breadcrumb-item" };
897
- _this.tagNameMapper = { "e-breadcrumb-items": "e-items" };
898
- _this.isVue3 = !isExecute;
899
- _this.ej2Instances = new Breadcrumb({});
900
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
901
- _this.ej2Instances.trigger = _this.trigger;
902
- _this.bindProperties();
903
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
904
- _this.ej2Instances.setProperties = _this.setProperties;
905
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
906
- _this.updated = _this.updated;
907
- return _this;
908
- }
909
- BreadcrumbComponent.prototype.clearTemplate = function (templateNames) {
910
- if (!templateNames) {
911
- templateNames = Object.keys(this.templateCollection || {});
651
+ var BreadcrumbComponent = vueDefineComponent({
652
+ name: 'BreadcrumbComponent',
653
+ mixins: [ComponentBase],
654
+ props: props$3,
655
+ watch: watch$3,
656
+ emits: emitProbs$3,
657
+ model: { event: 'modelchanged' },
658
+ provide: function () { return { custom: this.custom }; },
659
+ data: function () {
660
+ return {
661
+ ej2Instances: new Breadcrumb({}),
662
+ propKeys: properties$3,
663
+ models: modelProps$3,
664
+ hasChildDirective: true,
665
+ hasInjectedModules: false,
666
+ tagMapper: { "e-breadcrumb-items": "e-breadcrumb-item" },
667
+ tagNameMapper: { "e-breadcrumb-items": "e-items" },
668
+ isVue3: !isExecute,
669
+ templateCollection: {},
670
+ };
671
+ },
672
+ created: function () {
673
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
674
+ this.ej2Instances.trigger = this.trigger;
675
+ this.bindProperties();
676
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
677
+ this.ej2Instances.setProperties = this.setProperties;
678
+ this.ej2Instances.clearTemplate = this.clearTemplate;
679
+ this.updated = this.updated;
680
+ },
681
+ render: function (createElement) {
682
+ var h = !isExecute ? gh : createElement;
683
+ var slots = null;
684
+ if (!isNullOrUndefined(this.$slots.default)) {
685
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
912
686
  }
913
- if (templateNames.length && this.templateCollection) {
914
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
915
- var tempName = templateNames_1[_i];
916
- var elementCollection = this.templateCollection[tempName];
917
- if (elementCollection && elementCollection.length) {
918
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
919
- var ele = elementCollection_1[_a];
920
- var destroy = getValue('__vue__.$destroy', ele);
921
- if (destroy) {
922
- ele.__vue__.$destroy();
923
- }
924
- if (ele.innerHTML) {
925
- ele.innerHTML = '';
687
+ return h('nav', slots);
688
+ },
689
+ methods: {
690
+ clearTemplate: function (templateNames) {
691
+ if (!templateNames) {
692
+ templateNames = Object.keys(this.templateCollection || {});
693
+ }
694
+ if (templateNames.length && this.templateCollection) {
695
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
696
+ var tempName = templateNames_1[_i];
697
+ var elementCollection = this.templateCollection[tempName];
698
+ if (elementCollection && elementCollection.length) {
699
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
700
+ var ele = elementCollection_1[_a];
701
+ var destroy = getValue('__vue__.$destroy', ele);
702
+ if (destroy) {
703
+ ele.__vue__.$destroy();
704
+ }
705
+ if (ele.innerHTML) {
706
+ ele.innerHTML = '';
707
+ }
926
708
  }
709
+ delete this.templateCollection[tempName];
927
710
  }
928
- delete this.templateCollection[tempName];
929
711
  }
930
712
  }
931
- }
932
- };
933
- BreadcrumbComponent.prototype.setProperties = function (prop, muteOnChange) {
934
- var _this = this;
935
- if (this.isVue3) {
936
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
937
- }
938
- if (this.ej2Instances && this.ej2Instances._setProperties) {
939
- this.ej2Instances._setProperties(prop, muteOnChange);
940
- }
941
- if (prop && this.models && this.models.length) {
942
- Object.keys(prop).map(function (key) {
943
- _this.models.map(function (model) {
944
- if ((key === model) && !(/datasource/i.test(key))) {
945
- if (_this.isVue3) {
946
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
713
+ },
714
+ setProperties: function (prop, muteOnChange) {
715
+ var _this = this;
716
+ if (this.isVue3) {
717
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
718
+ }
719
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
720
+ this.ej2Instances._setProperties(prop, muteOnChange);
721
+ }
722
+ if (prop && this.models && this.models.length) {
723
+ Object.keys(prop).map(function (key) {
724
+ _this.models.map(function (model) {
725
+ if ((key === model) && !(/datasource/i.test(key))) {
726
+ if (_this.isVue3) {
727
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
728
+ }
729
+ else {
730
+ _this.$emit('update:' + key, prop[key]);
731
+ _this.$emit('modelchanged', prop[key]);
732
+ }
947
733
  }
948
- else {
949
- _this.$emit('update:' + key, prop[key]);
950
- _this.$emit('modelchanged', prop[key]);
734
+ });
735
+ });
736
+ }
737
+ },
738
+ trigger: function (eventName, eventProp, successHandler) {
739
+ if (!isExecute) {
740
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
741
+ }
742
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
743
+ var key = this.models.toString().match(/checked|value/) || [];
744
+ var propKey = key[0];
745
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
746
+ if (!isExecute) {
747
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
748
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
749
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
750
+ }
751
+ else {
752
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
753
+ this.$emit('update:' + propKey, eventProp[propKey]);
754
+ this.$emit('modelchanged', eventProp[propKey]);
951
755
  }
952
756
  }
953
- });
954
- });
955
- }
956
- };
957
- BreadcrumbComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
958
- if (!isExecute) {
959
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
960
- }
961
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
962
- var key = this.models.toString().match(/checked|value/) || [];
963
- var propKey = key[0];
964
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
965
- if (!isExecute) {
966
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
967
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
968
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
969
757
  }
970
- else {
971
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
758
+ }
759
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
760
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
761
+ var propKey = key[0];
762
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
763
+ if (!isExecute) {
764
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
765
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
766
+ }
767
+ else {
972
768
  this.$emit('update:' + propKey, eventProp[propKey]);
973
769
  this.$emit('modelchanged', eventProp[propKey]);
974
770
  }
975
771
  }
976
772
  }
977
- }
978
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
979
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
980
- var propKey = key[0];
981
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
982
- if (!isExecute) {
983
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
984
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
985
- }
986
- else {
987
- this.$emit('update:' + propKey, eventProp[propKey]);
988
- this.$emit('modelchanged', eventProp[propKey]);
989
- }
773
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
774
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
990
775
  }
991
- }
992
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
993
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
994
- }
995
- };
996
- BreadcrumbComponent.prototype.render = function (createElement) {
997
- var h = !isExecute ? gh : createElement;
998
- var slots = null;
999
- if (!isNullOrUndefined(this.$slots.default)) {
1000
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1001
- }
1002
- return h('nav', slots);
1003
- };
1004
- BreadcrumbComponent.prototype.custom = function () {
1005
- this.updated();
1006
- };
1007
- BreadcrumbComponent = __decorate$6([
1008
- EJComponentDecorator({
1009
- props: properties$3,
1010
- model: {
1011
- event: 'modelchanged'
1012
- }
1013
- }, isExecute)
1014
- ,Options({
1015
- props: props,
1016
- watch: watch,
1017
- emits: emitProbs,
1018
- provide: function provide() {
1019
- return {
1020
- custom: this.custom
1021
- };
1022
- }
1023
- })
1024
- ], BreadcrumbComponent);
1025
- return BreadcrumbComponent;
1026
- }(ComponentBase));
776
+ },
777
+ custom: function () {
778
+ this.updated();
779
+ },
780
+ }
781
+ });
1027
782
  var BreadcrumbPlugin = {
1028
783
  name: 'ejs-breadcrumb',
1029
- install: function (Vue$$1) {
1030
- Vue$$1.component(BreadcrumbPlugin.name, BreadcrumbComponent);
1031
- Vue$$1.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
1032
- Vue$$1.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
784
+ install: function (Vue) {
785
+ Vue.component(BreadcrumbPlugin.name, BreadcrumbComponent);
786
+ Vue.component(BreadcrumbItemPlugin.name, BreadcrumbItemDirective);
787
+ Vue.component(BreadcrumbItemsPlugin.name, BreadcrumbItemsDirective);
1033
788
  }
1034
789
  };
1035
790
 
1036
- var __extends$7 = (undefined && undefined.__extends) || (function () {
1037
- var extendStatics = function (d, b) {
1038
- extendStatics = Object.setPrototypeOf ||
1039
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1040
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1041
- return extendStatics(d, b);
1042
- };
1043
- return function (d, b) {
1044
- extendStatics(d, b);
1045
- function __() { this.constructor = d; }
1046
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1047
- };
1048
- })();
1049
- var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1050
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1051
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1052
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1053
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1054
- };
1055
- // {{VueImport}}
1056
- var vueImport$3;
1057
- if (!isExecute || parseInt(allVue.version) < 3) {
1058
- vueImport$3 = Vue;
1059
- }
1060
- else {
1061
- vueImport$3 = Vue$1;
1062
- }
1063
- var CarouselItemsDirective = /** @__PURE__ @class */ (function (_super) {
1064
- __extends$7(CarouselItemsDirective, _super);
1065
- function CarouselItemsDirective() {
1066
- return _super.call(this, arguments) || this;
1067
- }
1068
- CarouselItemsDirective.prototype.render = function (createElement) {
791
+ var CarouselItemsDirective = vueDefineComponent({
792
+ inject: { custom: { default: null } },
793
+ render: function (createElement) {
1069
794
  if (!isExecute) {
1070
795
  var h = !isExecute ? gh : createElement;
1071
796
  var slots = null;
@@ -1075,31 +800,22 @@ var CarouselItemsDirective = /** @__PURE__ @class */ (function (_super) {
1075
800
  return h('div', { class: 'e-directive' }, slots);
1076
801
  }
1077
802
  return;
1078
- };
1079
- CarouselItemsDirective.prototype.updated = function () {
803
+ },
804
+ updated: function () {
1080
805
  if (!isExecute && this.custom) {
1081
806
  this.custom();
1082
807
  }
1083
- };
1084
- CarouselItemsDirective.prototype.getTag = function () {
1085
- return 'e-carousel-items';
1086
- };
1087
- CarouselItemsDirective = __decorate$7([
1088
- EJComponentDecorator({}, isExecute)
1089
- ,Options({
1090
- inject: {
1091
- custom: {
1092
- default: null
1093
- }
1094
- }
1095
- })
1096
- ], CarouselItemsDirective);
1097
- return CarouselItemsDirective;
1098
- }(vueImport$3));
808
+ },
809
+ methods: {
810
+ getTag: function () {
811
+ return 'e-carousel-items';
812
+ }
813
+ }
814
+ });
1099
815
  var CarouselItemsPlugin = {
1100
816
  name: 'e-carousel-items',
1101
- install: function (Vue$$1) {
1102
- Vue$$1.component(CarouselItemsPlugin.name, CarouselItemsDirective);
817
+ install: function (Vue) {
818
+ Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
1103
819
  }
1104
820
  };
1105
821
  /**
@@ -1114,49 +830,23 @@ var CarouselItemsPlugin = {
1114
830
  * </ejs-carousel>
1115
831
  * ```
1116
832
  */
1117
- var CarouselItemDirective = /** @__PURE__ @class */ (function (_super) {
1118
- __extends$7(CarouselItemDirective, _super);
1119
- function CarouselItemDirective() {
1120
- return _super !== null && _super.apply(this, arguments) || this;
1121
- }
1122
- CarouselItemDirective.prototype.render = function () {
833
+ var CarouselItemDirective = vueDefineComponent({
834
+ render: function () {
1123
835
  return;
1124
- };
1125
- CarouselItemDirective.prototype.getTag = function () {
1126
- return 'e-carousel-item';
1127
- };
1128
- CarouselItemDirective = __decorate$7([
1129
- EJComponentDecorator({}, isExecute)
1130
- ], CarouselItemDirective);
1131
- return CarouselItemDirective;
1132
- }(vueImport$3));
836
+ },
837
+ methods: {
838
+ getTag: function () {
839
+ return 'e-carousel-item';
840
+ }
841
+ }
842
+ });
1133
843
  var CarouselItemPlugin = {
1134
844
  name: 'e-carousel-item',
1135
- install: function (Vue$$1) {
1136
- Vue$$1.component(CarouselItemPlugin.name, CarouselItemDirective);
845
+ install: function (Vue) {
846
+ Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
1137
847
  }
1138
848
  };
1139
849
 
1140
- var __extends$8 = (undefined && undefined.__extends) || (function () {
1141
- var extendStatics = function (d, b) {
1142
- extendStatics = Object.setPrototypeOf ||
1143
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1144
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1145
- return extendStatics(d, b);
1146
- };
1147
- return function (d, b) {
1148
- extendStatics(d, b);
1149
- function __() { this.constructor = d; }
1150
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1151
- };
1152
- })();
1153
- var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1154
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1155
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1156
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1157
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1158
- };
1159
- // {{VueImport}}
1160
850
  var properties$4 = ['isLazyUpdate', 'plugins', 'animationEffect', 'autoPlay', 'buttonsVisibility', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enableTouchSwipe', 'height', 'htmlAttributes', 'indicatorsTemplate', 'interval', 'itemTemplate', 'items', 'locale', 'loop', 'nextButtonTemplate', 'partialVisible', 'pauseOnHover', 'playButtonTemplate', 'previousButtonTemplate', 'selectedIndex', 'showIndicators', 'showPlayButton', 'width', 'slideChanged', 'slideChanging'];
1161
851
  var modelProps$4 = ['selectedIndex'];
1162
852
  var testProp$4 = getProps({ props: properties$4 });
@@ -1174,199 +864,161 @@ for (var _i$4 = 0, modelProps_1$4 = modelProps$4; _i$4 < modelProps_1$4.length;
1174
864
  * <ejs-carousel :items='carouselItems'></ejs-carousel>
1175
865
  * ```
1176
866
  */
1177
- var CarouselComponent = /** @__PURE__ @class */ (function (_super) {
1178
- __extends$8(CarouselComponent, _super);
1179
- function CarouselComponent() {
1180
- var _this = _super.call(this, arguments) || this;
1181
- _this.propKeys = properties$4;
1182
- _this.models = modelProps$4;
1183
- _this.hasChildDirective = true;
1184
- _this.hasInjectedModules = false;
1185
- _this.tagMapper = { "e-carousel-items": "e-carousel-item" };
1186
- _this.tagNameMapper = { "e-carousel-items": "e-items" };
1187
- _this.isVue3 = !isExecute;
1188
- _this.ej2Instances = new Carousel({});
1189
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
1190
- _this.ej2Instances.trigger = _this.trigger;
1191
- _this.bindProperties();
1192
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
1193
- _this.ej2Instances.setProperties = _this.setProperties;
1194
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
1195
- _this.updated = _this.updated;
1196
- return _this;
1197
- }
1198
- CarouselComponent.prototype.clearTemplate = function (templateNames) {
1199
- if (!templateNames) {
1200
- templateNames = Object.keys(this.templateCollection || {});
867
+ var CarouselComponent = vueDefineComponent({
868
+ name: 'CarouselComponent',
869
+ mixins: [ComponentBase],
870
+ props: props$4,
871
+ watch: watch$4,
872
+ emits: emitProbs$4,
873
+ model: { event: 'modelchanged' },
874
+ provide: function () { return { custom: this.custom }; },
875
+ data: function () {
876
+ return {
877
+ ej2Instances: new Carousel({}),
878
+ propKeys: properties$4,
879
+ models: modelProps$4,
880
+ hasChildDirective: true,
881
+ hasInjectedModules: false,
882
+ tagMapper: { "e-carousel-items": "e-carousel-item" },
883
+ tagNameMapper: { "e-carousel-items": "e-items" },
884
+ isVue3: !isExecute,
885
+ templateCollection: {},
886
+ };
887
+ },
888
+ created: function () {
889
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
890
+ this.ej2Instances.trigger = this.trigger;
891
+ this.bindProperties();
892
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
893
+ this.ej2Instances.setProperties = this.setProperties;
894
+ this.ej2Instances.clearTemplate = this.clearTemplate;
895
+ this.updated = this.updated;
896
+ },
897
+ render: function (createElement) {
898
+ var h = !isExecute ? gh : createElement;
899
+ var slots = null;
900
+ if (!isNullOrUndefined(this.$slots.default)) {
901
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1201
902
  }
1202
- if (templateNames.length && this.templateCollection) {
1203
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1204
- var tempName = templateNames_1[_i];
1205
- var elementCollection = this.templateCollection[tempName];
1206
- if (elementCollection && elementCollection.length) {
1207
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1208
- var ele = elementCollection_1[_a];
1209
- var destroy = getValue('__vue__.$destroy', ele);
1210
- if (destroy) {
1211
- ele.__vue__.$destroy();
1212
- }
1213
- if (ele.innerHTML) {
1214
- ele.innerHTML = '';
903
+ return h('div', slots);
904
+ },
905
+ methods: {
906
+ clearTemplate: function (templateNames) {
907
+ if (!templateNames) {
908
+ templateNames = Object.keys(this.templateCollection || {});
909
+ }
910
+ if (templateNames.length && this.templateCollection) {
911
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
912
+ var tempName = templateNames_1[_i];
913
+ var elementCollection = this.templateCollection[tempName];
914
+ if (elementCollection && elementCollection.length) {
915
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
916
+ var ele = elementCollection_1[_a];
917
+ var destroy = getValue('__vue__.$destroy', ele);
918
+ if (destroy) {
919
+ ele.__vue__.$destroy();
920
+ }
921
+ if (ele.innerHTML) {
922
+ ele.innerHTML = '';
923
+ }
1215
924
  }
925
+ delete this.templateCollection[tempName];
1216
926
  }
1217
- delete this.templateCollection[tempName];
1218
927
  }
1219
928
  }
1220
- }
1221
- };
1222
- CarouselComponent.prototype.setProperties = function (prop, muteOnChange) {
1223
- var _this = this;
1224
- if (this.isVue3) {
1225
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1226
- }
1227
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1228
- this.ej2Instances._setProperties(prop, muteOnChange);
1229
- }
1230
- if (prop && this.models && this.models.length) {
1231
- Object.keys(prop).map(function (key) {
1232
- _this.models.map(function (model) {
1233
- if ((key === model) && !(/datasource/i.test(key))) {
1234
- if (_this.isVue3) {
1235
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
929
+ },
930
+ setProperties: function (prop, muteOnChange) {
931
+ var _this = this;
932
+ if (this.isVue3) {
933
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
934
+ }
935
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
936
+ this.ej2Instances._setProperties(prop, muteOnChange);
937
+ }
938
+ if (prop && this.models && this.models.length) {
939
+ Object.keys(prop).map(function (key) {
940
+ _this.models.map(function (model) {
941
+ if ((key === model) && !(/datasource/i.test(key))) {
942
+ if (_this.isVue3) {
943
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
944
+ }
945
+ else {
946
+ _this.$emit('update:' + key, prop[key]);
947
+ _this.$emit('modelchanged', prop[key]);
948
+ }
1236
949
  }
1237
- else {
1238
- _this.$emit('update:' + key, prop[key]);
1239
- _this.$emit('modelchanged', prop[key]);
950
+ });
951
+ });
952
+ }
953
+ },
954
+ trigger: function (eventName, eventProp, successHandler) {
955
+ if (!isExecute) {
956
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
957
+ }
958
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
959
+ var key = this.models.toString().match(/checked|value/) || [];
960
+ var propKey = key[0];
961
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
962
+ if (!isExecute) {
963
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
964
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
965
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
966
+ }
967
+ else {
968
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
969
+ this.$emit('update:' + propKey, eventProp[propKey]);
970
+ this.$emit('modelchanged', eventProp[propKey]);
1240
971
  }
1241
972
  }
1242
- });
1243
- });
1244
- }
1245
- };
1246
- CarouselComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
1247
- if (!isExecute) {
1248
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1249
- }
1250
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1251
- var key = this.models.toString().match(/checked|value/) || [];
1252
- var propKey = key[0];
1253
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1254
- if (!isExecute) {
1255
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1256
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1257
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1258
973
  }
1259
- else {
1260
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
974
+ }
975
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
976
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
977
+ var propKey = key[0];
978
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
979
+ if (!isExecute) {
980
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
981
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
982
+ }
983
+ else {
1261
984
  this.$emit('update:' + propKey, eventProp[propKey]);
1262
985
  this.$emit('modelchanged', eventProp[propKey]);
1263
986
  }
1264
987
  }
1265
988
  }
1266
- }
1267
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1268
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
1269
- var propKey = key[0];
1270
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1271
- if (!isExecute) {
1272
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1273
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1274
- }
1275
- else {
1276
- this.$emit('update:' + propKey, eventProp[propKey]);
1277
- this.$emit('modelchanged', eventProp[propKey]);
1278
- }
989
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
990
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1279
991
  }
1280
- }
1281
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1282
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1283
- }
1284
- };
1285
- CarouselComponent.prototype.render = function (createElement) {
1286
- var h = !isExecute ? gh : createElement;
1287
- var slots = null;
1288
- if (!isNullOrUndefined(this.$slots.default)) {
1289
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1290
- }
1291
- return h('div', slots);
1292
- };
1293
- CarouselComponent.prototype.custom = function () {
1294
- this.updated();
1295
- };
1296
- CarouselComponent.prototype.next = function () {
1297
- return this.ej2Instances.next();
1298
- };
1299
- CarouselComponent.prototype.pause = function () {
1300
- return this.ej2Instances.pause();
1301
- };
1302
- CarouselComponent.prototype.play = function () {
1303
- return this.ej2Instances.play();
1304
- };
1305
- CarouselComponent.prototype.prev = function () {
1306
- return this.ej2Instances.prev();
1307
- };
1308
- CarouselComponent = __decorate$8([
1309
- EJComponentDecorator({
1310
- props: properties$4,
1311
- model: {
1312
- event: 'modelchanged'
1313
- }
1314
- }, isExecute)
1315
- ,Options({
1316
- props: props,
1317
- watch: watch,
1318
- emits: emitProbs,
1319
- provide: function provide() {
1320
- return {
1321
- custom: this.custom
1322
- };
1323
- }
1324
- })
1325
- ], CarouselComponent);
1326
- return CarouselComponent;
1327
- }(ComponentBase));
992
+ },
993
+ custom: function () {
994
+ this.updated();
995
+ },
996
+ next: function () {
997
+ return this.ej2Instances.next();
998
+ },
999
+ pause: function () {
1000
+ return this.ej2Instances.pause();
1001
+ },
1002
+ play: function () {
1003
+ return this.ej2Instances.play();
1004
+ },
1005
+ prev: function () {
1006
+ return this.ej2Instances.prev();
1007
+ },
1008
+ }
1009
+ });
1328
1010
  var CarouselPlugin = {
1329
1011
  name: 'ejs-carousel',
1330
- install: function (Vue$$1) {
1331
- Vue$$1.component(CarouselPlugin.name, CarouselComponent);
1332
- Vue$$1.component(CarouselItemPlugin.name, CarouselItemDirective);
1333
- Vue$$1.component(CarouselItemsPlugin.name, CarouselItemsDirective);
1012
+ install: function (Vue) {
1013
+ Vue.component(CarouselPlugin.name, CarouselComponent);
1014
+ Vue.component(CarouselItemPlugin.name, CarouselItemDirective);
1015
+ Vue.component(CarouselItemsPlugin.name, CarouselItemsDirective);
1334
1016
  }
1335
1017
  };
1336
1018
 
1337
- var __extends$9 = (undefined && undefined.__extends) || (function () {
1338
- var extendStatics = function (d, b) {
1339
- extendStatics = Object.setPrototypeOf ||
1340
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1341
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1342
- return extendStatics(d, b);
1343
- };
1344
- return function (d, b) {
1345
- extendStatics(d, b);
1346
- function __() { this.constructor = d; }
1347
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1348
- };
1349
- })();
1350
- var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1351
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1352
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1353
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1354
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1355
- };
1356
- // {{VueImport}}
1357
- var vueImport$4;
1358
- if (!isExecute || parseInt(allVue.version) < 3) {
1359
- vueImport$4 = Vue;
1360
- }
1361
- else {
1362
- vueImport$4 = Vue$1;
1363
- }
1364
- var TabItemsDirective = /** @__PURE__ @class */ (function (_super) {
1365
- __extends$9(TabItemsDirective, _super);
1366
- function TabItemsDirective() {
1367
- return _super.call(this, arguments) || this;
1368
- }
1369
- TabItemsDirective.prototype.render = function (createElement) {
1019
+ var TabItemsDirective = vueDefineComponent({
1020
+ inject: { custom: { default: null } },
1021
+ render: function (createElement) {
1370
1022
  if (!isExecute) {
1371
1023
  var h = !isExecute ? gh : createElement;
1372
1024
  var slots = null;
@@ -1376,31 +1028,22 @@ var TabItemsDirective = /** @__PURE__ @class */ (function (_super) {
1376
1028
  return h('div', { class: 'e-directive' }, slots);
1377
1029
  }
1378
1030
  return;
1379
- };
1380
- TabItemsDirective.prototype.updated = function () {
1031
+ },
1032
+ updated: function () {
1381
1033
  if (!isExecute && this.custom) {
1382
1034
  this.custom();
1383
1035
  }
1384
- };
1385
- TabItemsDirective.prototype.getTag = function () {
1386
- return 'e-tabitems';
1387
- };
1388
- TabItemsDirective = __decorate$9([
1389
- EJComponentDecorator({}, isExecute)
1390
- ,Options({
1391
- inject: {
1392
- custom: {
1393
- default: null
1394
- }
1395
- }
1396
- })
1397
- ], TabItemsDirective);
1398
- return TabItemsDirective;
1399
- }(vueImport$4));
1036
+ },
1037
+ methods: {
1038
+ getTag: function () {
1039
+ return 'e-tabitems';
1040
+ }
1041
+ }
1042
+ });
1400
1043
  var TabItemsPlugin = {
1401
1044
  name: 'e-tabitems',
1402
- install: function (Vue$$1) {
1403
- Vue$$1.component(TabItemsPlugin.name, TabItemsDirective);
1045
+ install: function (Vue) {
1046
+ Vue.component(TabItemsPlugin.name, TabItemsDirective);
1404
1047
  }
1405
1048
  };
1406
1049
  /**
@@ -1415,49 +1058,23 @@ var TabItemsPlugin = {
1415
1058
  * </ejs-tab>
1416
1059
  * ```
1417
1060
  */
1418
- var TabItemDirective = /** @__PURE__ @class */ (function (_super) {
1419
- __extends$9(TabItemDirective, _super);
1420
- function TabItemDirective() {
1421
- return _super !== null && _super.apply(this, arguments) || this;
1422
- }
1423
- TabItemDirective.prototype.render = function () {
1061
+ var TabItemDirective = vueDefineComponent({
1062
+ render: function () {
1424
1063
  return;
1425
- };
1426
- TabItemDirective.prototype.getTag = function () {
1427
- return 'e-tabitem';
1428
- };
1429
- TabItemDirective = __decorate$9([
1430
- EJComponentDecorator({}, isExecute)
1431
- ], TabItemDirective);
1432
- return TabItemDirective;
1433
- }(vueImport$4));
1064
+ },
1065
+ methods: {
1066
+ getTag: function () {
1067
+ return 'e-tabitem';
1068
+ }
1069
+ }
1070
+ });
1434
1071
  var TabItemPlugin = {
1435
1072
  name: 'e-tabitem',
1436
- install: function (Vue$$1) {
1437
- Vue$$1.component(TabItemPlugin.name, TabItemDirective);
1073
+ install: function (Vue) {
1074
+ Vue.component(TabItemPlugin.name, TabItemDirective);
1438
1075
  }
1439
1076
  };
1440
1077
 
1441
- var __extends$10 = (undefined && undefined.__extends) || (function () {
1442
- var extendStatics = function (d, b) {
1443
- extendStatics = Object.setPrototypeOf ||
1444
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1445
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1446
- return extendStatics(d, b);
1447
- };
1448
- return function (d, b) {
1449
- extendStatics(d, b);
1450
- function __() { this.constructor = d; }
1451
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1452
- };
1453
- })();
1454
- var __decorate$10 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1455
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1456
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1457
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1458
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1459
- };
1460
- // {{VueImport}}
1461
1078
  var properties$5 = ['isLazyUpdate', 'plugins', 'allowDragAndDrop', 'animation', 'cssClass', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'headerPlacement', 'height', 'heightAdjustMode', 'items', 'loadOn', 'locale', 'overflowMode', 'reorderActiveTab', 'scrollStep', 'selectedItem', 'showCloseButton', 'width', 'added', 'adding', 'created', 'destroyed', 'dragged', 'dragging', 'onDragStart', 'removed', 'removing', 'selected', 'selecting'];
1462
1079
  var modelProps$5 = [];
1463
1080
  var testProp$5 = getProps({ props: properties$5 });
@@ -1475,160 +1092,134 @@ for (var _i$5 = 0, modelProps_1$5 = modelProps$5; _i$5 < modelProps_1$5.length;
1475
1092
  * <ejs-tab></ejs-tab>
1476
1093
  * ```
1477
1094
  */
1478
- var TabComponent = /** @__PURE__ @class */ (function (_super) {
1479
- __extends$10(TabComponent, _super);
1480
- function TabComponent() {
1481
- var _this = _super.call(this, arguments) || this;
1482
- _this.propKeys = properties$5;
1483
- _this.models = modelProps$5;
1484
- _this.hasChildDirective = true;
1485
- _this.hasInjectedModules = false;
1486
- _this.tagMapper = { "e-tabitems": "e-tabitem" };
1487
- _this.tagNameMapper = { "e-tabitems": "e-items" };
1488
- _this.isVue3 = !isExecute;
1489
- _this.ej2Instances = new Tab({});
1490
- _this.bindProperties();
1491
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
1492
- _this.ej2Instances.setProperties = _this.setProperties;
1493
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
1494
- _this.updated = _this.updated;
1495
- return _this;
1496
- }
1497
- TabComponent.prototype.clearTemplate = function (templateNames) {
1498
- if (!templateNames) {
1499
- templateNames = Object.keys(this.templateCollection || {});
1095
+ var TabComponent = vueDefineComponent({
1096
+ name: 'TabComponent',
1097
+ mixins: [ComponentBase],
1098
+ props: props$5,
1099
+ watch: watch$5,
1100
+ emits: emitProbs$5,
1101
+ provide: function () { return { custom: this.custom }; },
1102
+ data: function () {
1103
+ return {
1104
+ ej2Instances: new Tab({}),
1105
+ propKeys: properties$5,
1106
+ models: modelProps$5,
1107
+ hasChildDirective: true,
1108
+ hasInjectedModules: false,
1109
+ tagMapper: { "e-tabitems": "e-tabitem" },
1110
+ tagNameMapper: { "e-tabitems": "e-items" },
1111
+ isVue3: !isExecute,
1112
+ templateCollection: {},
1113
+ };
1114
+ },
1115
+ created: function () {
1116
+ this.bindProperties();
1117
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1118
+ this.ej2Instances.setProperties = this.setProperties;
1119
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1120
+ this.updated = this.updated;
1121
+ },
1122
+ render: function (createElement) {
1123
+ var h = !isExecute ? gh : createElement;
1124
+ var slots = null;
1125
+ if (!isNullOrUndefined(this.$slots.default)) {
1126
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1500
1127
  }
1501
- if (templateNames.length && this.templateCollection) {
1502
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1503
- var tempName = templateNames_1[_i];
1504
- var elementCollection = this.templateCollection[tempName];
1505
- if (elementCollection && elementCollection.length) {
1506
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1507
- var ele = elementCollection_1[_a];
1508
- var destroy = getValue('__vue__.$destroy', ele);
1509
- if (destroy) {
1510
- ele.__vue__.$destroy();
1511
- }
1512
- if (ele.innerHTML) {
1513
- ele.innerHTML = '';
1128
+ return h('div', slots);
1129
+ },
1130
+ methods: {
1131
+ clearTemplate: function (templateNames) {
1132
+ if (!templateNames) {
1133
+ templateNames = Object.keys(this.templateCollection || {});
1134
+ }
1135
+ if (templateNames.length && this.templateCollection) {
1136
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1137
+ var tempName = templateNames_1[_i];
1138
+ var elementCollection = this.templateCollection[tempName];
1139
+ if (elementCollection && elementCollection.length) {
1140
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1141
+ var ele = elementCollection_1[_a];
1142
+ var destroy = getValue('__vue__.$destroy', ele);
1143
+ if (destroy) {
1144
+ ele.__vue__.$destroy();
1145
+ }
1146
+ if (ele.innerHTML) {
1147
+ ele.innerHTML = '';
1148
+ }
1514
1149
  }
1150
+ delete this.templateCollection[tempName];
1515
1151
  }
1516
- delete this.templateCollection[tempName];
1517
1152
  }
1518
1153
  }
1519
- }
1520
- };
1521
- TabComponent.prototype.setProperties = function (prop, muteOnChange) {
1522
- var _this = this;
1523
- if (this.isVue3) {
1524
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1525
- }
1526
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1527
- this.ej2Instances._setProperties(prop, muteOnChange);
1528
- }
1529
- if (prop && this.models && this.models.length) {
1530
- Object.keys(prop).map(function (key) {
1531
- _this.models.map(function (model) {
1532
- if ((key === model) && !(/datasource/i.test(key))) {
1533
- if (_this.isVue3) {
1534
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1535
- }
1536
- else {
1537
- _this.$emit('update:' + key, prop[key]);
1538
- _this.$emit('modelchanged', prop[key]);
1154
+ },
1155
+ setProperties: function (prop, muteOnChange) {
1156
+ var _this = this;
1157
+ if (this.isVue3) {
1158
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1159
+ }
1160
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1161
+ this.ej2Instances._setProperties(prop, muteOnChange);
1162
+ }
1163
+ if (prop && this.models && this.models.length) {
1164
+ Object.keys(prop).map(function (key) {
1165
+ _this.models.map(function (model) {
1166
+ if ((key === model) && !(/datasource/i.test(key))) {
1167
+ if (_this.isVue3) {
1168
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1169
+ }
1170
+ else {
1171
+ _this.$emit('update:' + key, prop[key]);
1172
+ _this.$emit('modelchanged', prop[key]);
1173
+ }
1539
1174
  }
1540
- }
1175
+ });
1541
1176
  });
1542
- });
1543
- }
1544
- };
1545
- TabComponent.prototype.render = function (createElement) {
1546
- var h = !isExecute ? gh : createElement;
1547
- var slots = null;
1548
- if (!isNullOrUndefined(this.$slots.default)) {
1549
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1550
- }
1551
- return h('div', slots);
1552
- };
1553
- TabComponent.prototype.custom = function () {
1554
- this.updated();
1555
- };
1556
- TabComponent.prototype.addTab = function (items, index) {
1557
- return this.ej2Instances.addTab(items, index);
1558
- };
1559
- TabComponent.prototype.disable = function (value) {
1560
- return this.ej2Instances.disable(value);
1561
- };
1562
- TabComponent.prototype.enableTab = function (index, value) {
1563
- return this.ej2Instances.enableTab(index, value);
1564
- };
1565
- TabComponent.prototype.getItemIndex = function (tabItemId) {
1566
- return this.ej2Instances.getItemIndex(tabItemId);
1567
- };
1568
- TabComponent.prototype.hideTab = function (index, value) {
1569
- return this.ej2Instances.hideTab(index, value);
1570
- };
1571
- TabComponent.prototype.refresh = function () {
1572
- return this.ej2Instances.refresh();
1573
- };
1574
- TabComponent.prototype.refreshActiveTab = function () {
1575
- return this.ej2Instances.refreshActiveTab();
1576
- };
1577
- TabComponent.prototype.refreshActiveTabBorder = function () {
1578
- return this.ej2Instances.refreshActiveTabBorder();
1579
- };
1580
- TabComponent.prototype.removeTab = function (index) {
1581
- return this.ej2Instances.removeTab(index);
1582
- };
1583
- TabComponent.prototype.select = function (args, event) {
1584
- return this.ej2Instances.select(args, event);
1585
- };
1586
- TabComponent = __decorate$10([
1587
- EJComponentDecorator({
1588
- props: properties$5
1589
- }, isExecute)
1590
- ,Options({
1591
- props: props,
1592
- watch: watch,
1593
- emits: emitProbs,
1594
- provide: function provide() {
1595
- return {
1596
- custom: this.custom
1597
- };
1598
- }
1599
- })
1600
- ], TabComponent);
1601
- return TabComponent;
1602
- }(ComponentBase));
1177
+ }
1178
+ },
1179
+ custom: function () {
1180
+ this.updated();
1181
+ },
1182
+ addTab: function (items, index) {
1183
+ return this.ej2Instances.addTab(items, index);
1184
+ },
1185
+ disable: function (value) {
1186
+ return this.ej2Instances.disable(value);
1187
+ },
1188
+ enableTab: function (index, value) {
1189
+ return this.ej2Instances.enableTab(index, value);
1190
+ },
1191
+ getItemIndex: function (tabItemId) {
1192
+ return this.ej2Instances.getItemIndex(tabItemId);
1193
+ },
1194
+ hideTab: function (index, value) {
1195
+ return this.ej2Instances.hideTab(index, value);
1196
+ },
1197
+ refresh: function () {
1198
+ return this.ej2Instances.refresh();
1199
+ },
1200
+ refreshActiveTab: function () {
1201
+ return this.ej2Instances.refreshActiveTab();
1202
+ },
1203
+ refreshActiveTabBorder: function () {
1204
+ return this.ej2Instances.refreshActiveTabBorder();
1205
+ },
1206
+ removeTab: function (index) {
1207
+ return this.ej2Instances.removeTab(index);
1208
+ },
1209
+ select: function (args, event) {
1210
+ return this.ej2Instances.select(args, event);
1211
+ },
1212
+ }
1213
+ });
1603
1214
  var TabPlugin = {
1604
1215
  name: 'ejs-tab',
1605
- install: function (Vue$$1) {
1606
- Vue$$1.component(TabPlugin.name, TabComponent);
1607
- Vue$$1.component(TabItemPlugin.name, TabItemDirective);
1608
- Vue$$1.component(TabItemsPlugin.name, TabItemsDirective);
1216
+ install: function (Vue) {
1217
+ Vue.component(TabPlugin.name, TabComponent);
1218
+ Vue.component(TabItemPlugin.name, TabItemDirective);
1219
+ Vue.component(TabItemsPlugin.name, TabItemsDirective);
1609
1220
  }
1610
1221
  };
1611
1222
 
1612
- var __extends$11 = (undefined && undefined.__extends) || (function () {
1613
- var extendStatics = function (d, b) {
1614
- extendStatics = Object.setPrototypeOf ||
1615
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1616
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1617
- return extendStatics(d, b);
1618
- };
1619
- return function (d, b) {
1620
- extendStatics(d, b);
1621
- function __() { this.constructor = d; }
1622
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1623
- };
1624
- })();
1625
- var __decorate$11 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1626
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1627
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1628
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1629
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1630
- };
1631
- // {{VueImport}}
1632
1223
  var properties$6 = ['isLazyUpdate', 'plugins', 'allowDragAndDrop', 'allowEditing', 'allowMultiSelection', 'allowTextWrap', 'animation', 'autoCheck', 'checkedNodes', 'cssClass', 'disabled', 'dragArea', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'expandOn', 'expandedNodes', 'fields', 'fullRowNavigable', 'fullRowSelect', 'loadOnDemand', 'locale', 'nodeTemplate', 'selectedNodes', 'showCheckBox', 'sortOrder', 'actionFailure', 'created', 'dataBound', 'dataSourceChanged', 'destroyed', 'drawNode', 'keyPress', 'nodeChecked', 'nodeChecking', 'nodeClicked', 'nodeCollapsed', 'nodeCollapsing', 'nodeDragStart', 'nodeDragStop', 'nodeDragging', 'nodeDropped', 'nodeEdited', 'nodeEditing', 'nodeExpanded', 'nodeExpanding', 'nodeSelected', 'nodeSelecting'];
1633
1224
  var modelProps$6 = [];
1634
1225
  var testProp$6 = getProps({ props: properties$6 });
@@ -1646,179 +1237,153 @@ for (var _i$6 = 0, modelProps_1$6 = modelProps$6; _i$6 < modelProps_1$6.length;
1646
1237
  * <ejs-treeview></ejs-treeview>
1647
1238
  * ```
1648
1239
  */
1649
- var TreeViewComponent = /** @__PURE__ @class */ (function (_super) {
1650
- __extends$11(TreeViewComponent, _super);
1651
- function TreeViewComponent() {
1652
- var _this = _super.call(this, arguments) || this;
1653
- _this.propKeys = properties$6;
1654
- _this.models = modelProps$6;
1655
- _this.hasChildDirective = false;
1656
- _this.hasInjectedModules = false;
1657
- _this.tagMapper = {};
1658
- _this.tagNameMapper = {};
1659
- _this.isVue3 = !isExecute;
1660
- _this.ej2Instances = new TreeView({});
1661
- _this.bindProperties();
1662
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
1663
- _this.ej2Instances.setProperties = _this.setProperties;
1664
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
1665
- _this.updated = _this.updated;
1666
- return _this;
1667
- }
1668
- TreeViewComponent.prototype.clearTemplate = function (templateNames) {
1669
- if (!templateNames) {
1670
- templateNames = Object.keys(this.templateCollection || {});
1240
+ var TreeViewComponent = vueDefineComponent({
1241
+ name: 'TreeViewComponent',
1242
+ mixins: [ComponentBase],
1243
+ props: props$6,
1244
+ watch: watch$6,
1245
+ emits: emitProbs$6,
1246
+ provide: function () { return { custom: this.custom }; },
1247
+ data: function () {
1248
+ return {
1249
+ ej2Instances: new TreeView({}),
1250
+ propKeys: properties$6,
1251
+ models: modelProps$6,
1252
+ hasChildDirective: false,
1253
+ hasInjectedModules: false,
1254
+ tagMapper: {},
1255
+ tagNameMapper: {},
1256
+ isVue3: !isExecute,
1257
+ templateCollection: {},
1258
+ };
1259
+ },
1260
+ created: function () {
1261
+ this.bindProperties();
1262
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1263
+ this.ej2Instances.setProperties = this.setProperties;
1264
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1265
+ this.updated = this.updated;
1266
+ },
1267
+ render: function (createElement) {
1268
+ var h = !isExecute ? gh : createElement;
1269
+ var slots = null;
1270
+ if (!isNullOrUndefined(this.$slots.default)) {
1271
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1671
1272
  }
1672
- if (templateNames.length && this.templateCollection) {
1673
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1674
- var tempName = templateNames_1[_i];
1675
- var elementCollection = this.templateCollection[tempName];
1676
- if (elementCollection && elementCollection.length) {
1677
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1678
- var ele = elementCollection_1[_a];
1679
- var destroy = getValue('__vue__.$destroy', ele);
1680
- if (destroy) {
1681
- ele.__vue__.$destroy();
1682
- }
1683
- if (ele.innerHTML) {
1684
- ele.innerHTML = '';
1273
+ return h('div', slots);
1274
+ },
1275
+ methods: {
1276
+ clearTemplate: function (templateNames) {
1277
+ if (!templateNames) {
1278
+ templateNames = Object.keys(this.templateCollection || {});
1279
+ }
1280
+ if (templateNames.length && this.templateCollection) {
1281
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1282
+ var tempName = templateNames_1[_i];
1283
+ var elementCollection = this.templateCollection[tempName];
1284
+ if (elementCollection && elementCollection.length) {
1285
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1286
+ var ele = elementCollection_1[_a];
1287
+ var destroy = getValue('__vue__.$destroy', ele);
1288
+ if (destroy) {
1289
+ ele.__vue__.$destroy();
1290
+ }
1291
+ if (ele.innerHTML) {
1292
+ ele.innerHTML = '';
1293
+ }
1685
1294
  }
1295
+ delete this.templateCollection[tempName];
1686
1296
  }
1687
- delete this.templateCollection[tempName];
1688
1297
  }
1689
1298
  }
1690
- }
1691
- };
1692
- TreeViewComponent.prototype.setProperties = function (prop, muteOnChange) {
1693
- var _this = this;
1694
- if (this.isVue3) {
1695
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1696
- }
1697
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1698
- this.ej2Instances._setProperties(prop, muteOnChange);
1699
- }
1700
- if (prop && this.models && this.models.length) {
1701
- Object.keys(prop).map(function (key) {
1702
- _this.models.map(function (model) {
1703
- if ((key === model) && !(/datasource/i.test(key))) {
1704
- if (_this.isVue3) {
1705
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1706
- }
1707
- else {
1708
- _this.$emit('update:' + key, prop[key]);
1709
- _this.$emit('modelchanged', prop[key]);
1299
+ },
1300
+ setProperties: function (prop, muteOnChange) {
1301
+ var _this = this;
1302
+ if (this.isVue3) {
1303
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1304
+ }
1305
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1306
+ this.ej2Instances._setProperties(prop, muteOnChange);
1307
+ }
1308
+ if (prop && this.models && this.models.length) {
1309
+ Object.keys(prop).map(function (key) {
1310
+ _this.models.map(function (model) {
1311
+ if ((key === model) && !(/datasource/i.test(key))) {
1312
+ if (_this.isVue3) {
1313
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1314
+ }
1315
+ else {
1316
+ _this.$emit('update:' + key, prop[key]);
1317
+ _this.$emit('modelchanged', prop[key]);
1318
+ }
1710
1319
  }
1711
- }
1320
+ });
1712
1321
  });
1713
- });
1714
- }
1715
- };
1716
- TreeViewComponent.prototype.render = function (createElement) {
1717
- var h = !isExecute ? gh : createElement;
1718
- var slots = null;
1719
- if (!isNullOrUndefined(this.$slots.default)) {
1720
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1721
- }
1722
- return h('div', slots);
1723
- };
1724
- TreeViewComponent.prototype.custom = function () {
1725
- this.updated();
1726
- };
1727
- TreeViewComponent.prototype.addNodes = function (nodes, target, index, preventTargetExpand) {
1728
- return this.ej2Instances.addNodes(nodes, target, index, preventTargetExpand);
1729
- };
1730
- TreeViewComponent.prototype.beginEdit = function (node) {
1731
- return this.ej2Instances.beginEdit(node);
1732
- };
1733
- TreeViewComponent.prototype.checkAll = function (nodes) {
1734
- return this.ej2Instances.checkAll(nodes);
1735
- };
1736
- TreeViewComponent.prototype.collapseAll = function (nodes, level, excludeHiddenNodes) {
1737
- return this.ej2Instances.collapseAll(nodes, level, excludeHiddenNodes);
1738
- };
1739
- TreeViewComponent.prototype.disableNodes = function (nodes) {
1740
- return this.ej2Instances.disableNodes(nodes);
1741
- };
1742
- TreeViewComponent.prototype.enableNodes = function (nodes) {
1743
- return this.ej2Instances.enableNodes(nodes);
1744
- };
1745
- TreeViewComponent.prototype.ensureVisible = function (node) {
1746
- return this.ej2Instances.ensureVisible(node);
1747
- };
1748
- TreeViewComponent.prototype.expandAll = function (nodes, level, excludeHiddenNodes) {
1749
- return this.ej2Instances.expandAll(nodes, level, excludeHiddenNodes);
1750
- };
1751
- TreeViewComponent.prototype.getAllCheckedNodes = function () {
1752
- return this.ej2Instances.getAllCheckedNodes();
1753
- };
1754
- TreeViewComponent.prototype.getDisabledNodes = function () {
1755
- return this.ej2Instances.getDisabledNodes();
1756
- };
1757
- TreeViewComponent.prototype.getNode = function (node) {
1758
- return this.ej2Instances.getNode(node);
1759
- };
1760
- TreeViewComponent.prototype.getTreeData = function (node) {
1761
- return this.ej2Instances.getTreeData(node);
1762
- };
1763
- TreeViewComponent.prototype.moveNodes = function (sourceNodes, target, index, preventTargetExpand) {
1764
- return this.ej2Instances.moveNodes(sourceNodes, target, index, preventTargetExpand);
1765
- };
1766
- TreeViewComponent.prototype.refreshNode = function (target, newData) {
1767
- return this.ej2Instances.refreshNode(target, newData);
1768
- };
1769
- TreeViewComponent.prototype.removeNodes = function (nodes) {
1770
- return this.ej2Instances.removeNodes(nodes);
1771
- };
1772
- TreeViewComponent.prototype.uncheckAll = function (nodes) {
1773
- return this.ej2Instances.uncheckAll(nodes);
1774
- };
1775
- TreeViewComponent.prototype.updateNode = function (target, newText) {
1776
- return this.ej2Instances.updateNode(target, newText);
1777
- };
1778
- TreeViewComponent = __decorate$11([
1779
- EJComponentDecorator({
1780
- props: properties$6
1781
- }, isExecute)
1782
- ,Options({
1783
- props: props,
1784
- watch: watch,
1785
- emits: emitProbs,
1786
- provide: function provide() {
1787
- return {
1788
- custom: this.custom
1789
- };
1790
- }
1791
- })
1792
- ], TreeViewComponent);
1793
- return TreeViewComponent;
1794
- }(ComponentBase));
1322
+ }
1323
+ },
1324
+ custom: function () {
1325
+ this.updated();
1326
+ },
1327
+ addNodes: function (nodes, target, index, preventTargetExpand) {
1328
+ return this.ej2Instances.addNodes(nodes, target, index, preventTargetExpand);
1329
+ },
1330
+ beginEdit: function (node) {
1331
+ return this.ej2Instances.beginEdit(node);
1332
+ },
1333
+ checkAll: function (nodes) {
1334
+ return this.ej2Instances.checkAll(nodes);
1335
+ },
1336
+ collapseAll: function (nodes, level, excludeHiddenNodes) {
1337
+ return this.ej2Instances.collapseAll(nodes, level, excludeHiddenNodes);
1338
+ },
1339
+ disableNodes: function (nodes) {
1340
+ return this.ej2Instances.disableNodes(nodes);
1341
+ },
1342
+ enableNodes: function (nodes) {
1343
+ return this.ej2Instances.enableNodes(nodes);
1344
+ },
1345
+ ensureVisible: function (node) {
1346
+ return this.ej2Instances.ensureVisible(node);
1347
+ },
1348
+ expandAll: function (nodes, level, excludeHiddenNodes) {
1349
+ return this.ej2Instances.expandAll(nodes, level, excludeHiddenNodes);
1350
+ },
1351
+ getAllCheckedNodes: function () {
1352
+ return this.ej2Instances.getAllCheckedNodes();
1353
+ },
1354
+ getDisabledNodes: function () {
1355
+ return this.ej2Instances.getDisabledNodes();
1356
+ },
1357
+ getNode: function (node) {
1358
+ return this.ej2Instances.getNode(node);
1359
+ },
1360
+ getTreeData: function (node) {
1361
+ return this.ej2Instances.getTreeData(node);
1362
+ },
1363
+ moveNodes: function (sourceNodes, target, index, preventTargetExpand) {
1364
+ return this.ej2Instances.moveNodes(sourceNodes, target, index, preventTargetExpand);
1365
+ },
1366
+ refreshNode: function (target, newData) {
1367
+ return this.ej2Instances.refreshNode(target, newData);
1368
+ },
1369
+ removeNodes: function (nodes) {
1370
+ return this.ej2Instances.removeNodes(nodes);
1371
+ },
1372
+ uncheckAll: function (nodes) {
1373
+ return this.ej2Instances.uncheckAll(nodes);
1374
+ },
1375
+ updateNode: function (target, newText) {
1376
+ return this.ej2Instances.updateNode(target, newText);
1377
+ },
1378
+ }
1379
+ });
1795
1380
  var TreeViewPlugin = {
1796
1381
  name: 'ejs-treeview',
1797
- install: function (Vue$$1) {
1798
- Vue$$1.component(TreeViewPlugin.name, TreeViewComponent);
1382
+ install: function (Vue) {
1383
+ Vue.component(TreeViewPlugin.name, TreeViewComponent);
1799
1384
  }
1800
1385
  };
1801
1386
 
1802
- var __extends$12 = (undefined && undefined.__extends) || (function () {
1803
- var extendStatics = function (d, b) {
1804
- extendStatics = Object.setPrototypeOf ||
1805
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1806
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1807
- return extendStatics(d, b);
1808
- };
1809
- return function (d, b) {
1810
- extendStatics(d, b);
1811
- function __() { this.constructor = d; }
1812
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
1813
- };
1814
- })();
1815
- var __decorate$12 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
1816
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
1817
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
1818
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
1819
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1820
- };
1821
- // {{VueImport}}
1822
1387
  var properties$7 = ['isLazyUpdate', 'plugins', 'animate', 'closeOnDocumentClick', 'dockSize', 'enableDock', 'enableGestures', 'enablePersistence', 'enableRtl', 'height', 'isOpen', 'locale', 'mediaQuery', 'position', 'showBackdrop', 'target', 'type', 'width', 'zIndex', 'change', 'close', 'created', 'destroyed', 'open'];
1823
1388
  var modelProps$7 = ['isOpen'];
1824
1389
  var testProp$7 = getProps({ props: properties$7 });
@@ -1836,194 +1401,156 @@ for (var _i$7 = 0, modelProps_1$7 = modelProps$7; _i$7 < modelProps_1$7.length;
1836
1401
  * <ejs-sidebar></ejs-sidebar>
1837
1402
  * ```
1838
1403
  */
1839
- var SidebarComponent = /** @__PURE__ @class */ (function (_super) {
1840
- __extends$12(SidebarComponent, _super);
1841
- function SidebarComponent() {
1842
- var _this = _super.call(this, arguments) || this;
1843
- _this.propKeys = properties$7;
1844
- _this.models = modelProps$7;
1845
- _this.hasChildDirective = false;
1846
- _this.hasInjectedModules = false;
1847
- _this.tagMapper = {};
1848
- _this.tagNameMapper = {};
1849
- _this.isVue3 = !isExecute;
1850
- _this.ej2Instances = new Sidebar({});
1851
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
1852
- _this.ej2Instances.trigger = _this.trigger;
1853
- _this.bindProperties();
1854
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
1855
- _this.ej2Instances.setProperties = _this.setProperties;
1856
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
1857
- _this.updated = _this.updated;
1858
- return _this;
1859
- }
1860
- SidebarComponent.prototype.clearTemplate = function (templateNames) {
1861
- if (!templateNames) {
1862
- templateNames = Object.keys(this.templateCollection || {});
1404
+ var SidebarComponent = vueDefineComponent({
1405
+ name: 'SidebarComponent',
1406
+ mixins: [ComponentBase],
1407
+ props: props$7,
1408
+ watch: watch$7,
1409
+ emits: emitProbs$7,
1410
+ model: { event: 'modelchanged' },
1411
+ provide: function () { return { custom: this.custom }; },
1412
+ data: function () {
1413
+ return {
1414
+ ej2Instances: new Sidebar({}),
1415
+ propKeys: properties$7,
1416
+ models: modelProps$7,
1417
+ hasChildDirective: false,
1418
+ hasInjectedModules: false,
1419
+ tagMapper: {},
1420
+ tagNameMapper: {},
1421
+ isVue3: !isExecute,
1422
+ templateCollection: {},
1423
+ };
1424
+ },
1425
+ created: function () {
1426
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
1427
+ this.ej2Instances.trigger = this.trigger;
1428
+ this.bindProperties();
1429
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1430
+ this.ej2Instances.setProperties = this.setProperties;
1431
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1432
+ this.updated = this.updated;
1433
+ },
1434
+ render: function (createElement) {
1435
+ var h = !isExecute ? gh : createElement;
1436
+ var slots = null;
1437
+ if (!isNullOrUndefined(this.$slots.default)) {
1438
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
1863
1439
  }
1864
- if (templateNames.length && this.templateCollection) {
1865
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1866
- var tempName = templateNames_1[_i];
1867
- var elementCollection = this.templateCollection[tempName];
1868
- if (elementCollection && elementCollection.length) {
1869
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1870
- var ele = elementCollection_1[_a];
1871
- var destroy = getValue('__vue__.$destroy', ele);
1872
- if (destroy) {
1873
- ele.__vue__.$destroy();
1874
- }
1875
- if (ele.innerHTML) {
1876
- ele.innerHTML = '';
1440
+ return h('div', slots);
1441
+ },
1442
+ methods: {
1443
+ clearTemplate: function (templateNames) {
1444
+ if (!templateNames) {
1445
+ templateNames = Object.keys(this.templateCollection || {});
1446
+ }
1447
+ if (templateNames.length && this.templateCollection) {
1448
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1449
+ var tempName = templateNames_1[_i];
1450
+ var elementCollection = this.templateCollection[tempName];
1451
+ if (elementCollection && elementCollection.length) {
1452
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1453
+ var ele = elementCollection_1[_a];
1454
+ var destroy = getValue('__vue__.$destroy', ele);
1455
+ if (destroy) {
1456
+ ele.__vue__.$destroy();
1457
+ }
1458
+ if (ele.innerHTML) {
1459
+ ele.innerHTML = '';
1460
+ }
1877
1461
  }
1462
+ delete this.templateCollection[tempName];
1878
1463
  }
1879
- delete this.templateCollection[tempName];
1880
1464
  }
1881
1465
  }
1882
- }
1883
- };
1884
- SidebarComponent.prototype.setProperties = function (prop, muteOnChange) {
1885
- var _this = this;
1886
- if (this.isVue3) {
1887
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1888
- }
1889
- if (this.ej2Instances && this.ej2Instances._setProperties) {
1890
- this.ej2Instances._setProperties(prop, muteOnChange);
1891
- }
1892
- if (prop && this.models && this.models.length) {
1893
- Object.keys(prop).map(function (key) {
1894
- _this.models.map(function (model) {
1895
- if ((key === model) && !(/datasource/i.test(key))) {
1896
- if (_this.isVue3) {
1897
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1466
+ },
1467
+ setProperties: function (prop, muteOnChange) {
1468
+ var _this = this;
1469
+ if (this.isVue3) {
1470
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1471
+ }
1472
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1473
+ this.ej2Instances._setProperties(prop, muteOnChange);
1474
+ }
1475
+ if (prop && this.models && this.models.length) {
1476
+ Object.keys(prop).map(function (key) {
1477
+ _this.models.map(function (model) {
1478
+ if ((key === model) && !(/datasource/i.test(key))) {
1479
+ if (_this.isVue3) {
1480
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1481
+ }
1482
+ else {
1483
+ _this.$emit('update:' + key, prop[key]);
1484
+ _this.$emit('modelchanged', prop[key]);
1485
+ }
1898
1486
  }
1899
- else {
1900
- _this.$emit('update:' + key, prop[key]);
1901
- _this.$emit('modelchanged', prop[key]);
1487
+ });
1488
+ });
1489
+ }
1490
+ },
1491
+ trigger: function (eventName, eventProp, successHandler) {
1492
+ if (!isExecute) {
1493
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1494
+ }
1495
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1496
+ var key = this.models.toString().match(/checked|value/) || [];
1497
+ var propKey = key[0];
1498
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1499
+ if (!isExecute) {
1500
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1501
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1502
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1503
+ }
1504
+ else {
1505
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1506
+ this.$emit('update:' + propKey, eventProp[propKey]);
1507
+ this.$emit('modelchanged', eventProp[propKey]);
1902
1508
  }
1903
1509
  }
1904
- });
1905
- });
1906
- }
1907
- };
1908
- SidebarComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
1909
- if (!isExecute) {
1910
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
1911
- }
1912
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
1913
- var key = this.models.toString().match(/checked|value/) || [];
1914
- var propKey = key[0];
1915
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1916
- if (!isExecute) {
1917
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1918
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1919
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
1920
1510
  }
1921
- else {
1922
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
1511
+ }
1512
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1513
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
1514
+ var propKey = key[0];
1515
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
1516
+ if (!isExecute) {
1517
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1518
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1519
+ }
1520
+ else {
1923
1521
  this.$emit('update:' + propKey, eventProp[propKey]);
1924
1522
  this.$emit('modelchanged', eventProp[propKey]);
1925
1523
  }
1926
1524
  }
1927
1525
  }
1928
- }
1929
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
1930
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
1931
- var propKey = key[0];
1932
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
1933
- if (!isExecute) {
1934
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
1935
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
1936
- }
1937
- else {
1938
- this.$emit('update:' + propKey, eventProp[propKey]);
1939
- this.$emit('modelchanged', eventProp[propKey]);
1940
- }
1526
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
1527
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
1941
1528
  }
1942
- }
1943
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
1944
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
1945
- }
1946
- };
1947
- SidebarComponent.prototype.render = function (createElement) {
1948
- var h = !isExecute ? gh : createElement;
1949
- var slots = null;
1950
- if (!isNullOrUndefined(this.$slots.default)) {
1951
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
1952
- }
1953
- return h('div', slots);
1954
- };
1955
- SidebarComponent.prototype.custom = function () {
1956
- this.updated();
1957
- };
1958
- SidebarComponent.prototype.hide = function (e) {
1959
- return this.ej2Instances.hide(e);
1960
- };
1961
- SidebarComponent.prototype.show = function (e) {
1962
- return this.ej2Instances.show(e);
1963
- };
1964
- SidebarComponent.prototype.toggle = function () {
1965
- return this.ej2Instances.toggle();
1966
- };
1967
- SidebarComponent = __decorate$12([
1968
- EJComponentDecorator({
1969
- props: properties$7,
1970
- model: {
1971
- event: 'modelchanged'
1972
- }
1973
- }, isExecute)
1974
- ,Options({
1975
- props: props,
1976
- watch: watch,
1977
- emits: emitProbs,
1978
- provide: function provide() {
1979
- return {
1980
- custom: this.custom
1981
- };
1982
- }
1983
- })
1984
- ], SidebarComponent);
1985
- return SidebarComponent;
1986
- }(ComponentBase));
1529
+ },
1530
+ custom: function () {
1531
+ this.updated();
1532
+ },
1533
+ hide: function (e) {
1534
+ return this.ej2Instances.hide(e);
1535
+ },
1536
+ show: function (e) {
1537
+ return this.ej2Instances.show(e);
1538
+ },
1539
+ toggle: function () {
1540
+ return this.ej2Instances.toggle();
1541
+ },
1542
+ }
1543
+ });
1987
1544
  var SidebarPlugin = {
1988
1545
  name: 'ejs-sidebar',
1989
- install: function (Vue$$1) {
1990
- Vue$$1.component(SidebarPlugin.name, SidebarComponent);
1546
+ install: function (Vue) {
1547
+ Vue.component(SidebarPlugin.name, SidebarComponent);
1991
1548
  }
1992
1549
  };
1993
1550
 
1994
- var __extends$13 = (undefined && undefined.__extends) || (function () {
1995
- var extendStatics = function (d, b) {
1996
- extendStatics = Object.setPrototypeOf ||
1997
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
1998
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
1999
- return extendStatics(d, b);
2000
- };
2001
- return function (d, b) {
2002
- extendStatics(d, b);
2003
- function __() { this.constructor = d; }
2004
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2005
- };
2006
- })();
2007
- var __decorate$13 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2008
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2009
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2010
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2011
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2012
- };
2013
- // {{VueImport}}
2014
- var vueImport$5;
2015
- if (!isExecute || parseInt(allVue.version) < 3) {
2016
- vueImport$5 = Vue;
2017
- }
2018
- else {
2019
- vueImport$5 = Vue$1;
2020
- }
2021
- var MenuItemsDirective = /** @__PURE__ @class */ (function (_super) {
2022
- __extends$13(MenuItemsDirective, _super);
2023
- function MenuItemsDirective() {
2024
- return _super.call(this, arguments) || this;
2025
- }
2026
- MenuItemsDirective.prototype.render = function (createElement) {
1551
+ var MenuItemsDirective = vueDefineComponent({
1552
+ inject: { custom: { default: null } },
1553
+ render: function (createElement) {
2027
1554
  if (!isExecute) {
2028
1555
  var h = !isExecute ? gh : createElement;
2029
1556
  var slots = null;
@@ -2033,76 +1560,41 @@ var MenuItemsDirective = /** @__PURE__ @class */ (function (_super) {
2033
1560
  return h('div', { class: 'e-directive' }, slots);
2034
1561
  }
2035
1562
  return;
2036
- };
2037
- MenuItemsDirective.prototype.updated = function () {
1563
+ },
1564
+ updated: function () {
2038
1565
  if (!isExecute && this.custom) {
2039
1566
  this.custom();
2040
1567
  }
2041
- };
2042
- MenuItemsDirective.prototype.getTag = function () {
2043
- return 'e-menu-items';
2044
- };
2045
- MenuItemsDirective = __decorate$13([
2046
- EJComponentDecorator({}, isExecute)
2047
- ,Options({
2048
- inject: {
2049
- custom: {
2050
- default: null
2051
- }
2052
- }
2053
- })
2054
- ], MenuItemsDirective);
2055
- return MenuItemsDirective;
2056
- }(vueImport$5));
1568
+ },
1569
+ methods: {
1570
+ getTag: function () {
1571
+ return 'e-menu-items';
1572
+ }
1573
+ }
1574
+ });
2057
1575
  var MenuItemsPlugin = {
2058
1576
  name: 'e-menu-items',
2059
- install: function (Vue$$1) {
2060
- Vue$$1.component(MenuItemsPlugin.name, MenuItemsDirective);
1577
+ install: function (Vue) {
1578
+ Vue.component(MenuItemsPlugin.name, MenuItemsDirective);
2061
1579
  }
2062
1580
  };
2063
- var MenuItemDirective = /** @__PURE__ @class */ (function (_super) {
2064
- __extends$13(MenuItemDirective, _super);
2065
- function MenuItemDirective() {
2066
- return _super !== null && _super.apply(this, arguments) || this;
2067
- }
2068
- MenuItemDirective.prototype.render = function () {
1581
+ var MenuItemDirective = vueDefineComponent({
1582
+ render: function () {
2069
1583
  return;
2070
- };
2071
- MenuItemDirective.prototype.getTag = function () {
2072
- return 'e-';
2073
- };
2074
- MenuItemDirective = __decorate$13([
2075
- EJComponentDecorator({}, isExecute)
2076
- ], MenuItemDirective);
2077
- return MenuItemDirective;
2078
- }(vueImport$5));
1584
+ },
1585
+ methods: {
1586
+ getTag: function () {
1587
+ return 'e-';
1588
+ }
1589
+ }
1590
+ });
2079
1591
  var MenuItemPlugin = {
2080
1592
  name: 'e-',
2081
- install: function (Vue$$1) {
2082
- Vue$$1.component(MenuItemPlugin.name, MenuItemDirective);
1593
+ install: function (Vue) {
1594
+ Vue.component(MenuItemPlugin.name, MenuItemDirective);
2083
1595
  }
2084
1596
  };
2085
1597
 
2086
- var __extends$14 = (undefined && undefined.__extends) || (function () {
2087
- var extendStatics = function (d, b) {
2088
- extendStatics = Object.setPrototypeOf ||
2089
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2090
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2091
- return extendStatics(d, b);
2092
- };
2093
- return function (d, b) {
2094
- extendStatics(d, b);
2095
- function __() { this.constructor = d; }
2096
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2097
- };
2098
- })();
2099
- var __decorate$14 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2100
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2101
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2102
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2103
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2104
- };
2105
- // {{VueImport}}
2106
1598
  var properties$8 = ['isLazyUpdate', 'plugins', 'animationSettings', 'cssClass', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableScrolling', 'fields', 'filter', 'hamburgerMode', 'hoverDelay', 'items', 'locale', 'orientation', 'showItemOnClick', 'target', 'template', 'title', 'beforeClose', 'beforeItemRender', 'beforeOpen', 'created', 'onClose', 'onOpen', 'select'];
2107
1599
  var modelProps$8 = [];
2108
1600
  var testProp$8 = getProps({ props: properties$8 });
@@ -2120,160 +1612,134 @@ for (var _i$8 = 0, modelProps_1$8 = modelProps$8; _i$8 < modelProps_1$8.length;
2120
1612
  * <ejs-menu :items='menuItems'></ejs-menu>
2121
1613
  * ```
2122
1614
  */
2123
- var MenuComponent = /** @__PURE__ @class */ (function (_super) {
2124
- __extends$14(MenuComponent, _super);
2125
- function MenuComponent() {
2126
- var _this = _super.call(this, arguments) || this;
2127
- _this.propKeys = properties$8;
2128
- _this.models = modelProps$8;
2129
- _this.hasChildDirective = true;
2130
- _this.hasInjectedModules = false;
2131
- _this.tagMapper = { "e-menu-items": "e-" };
2132
- _this.tagNameMapper = { "e-menu-items": "e-items" };
2133
- _this.isVue3 = !isExecute;
2134
- _this.ej2Instances = new Menu({});
2135
- _this.bindProperties();
2136
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
2137
- _this.ej2Instances.setProperties = _this.setProperties;
2138
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
2139
- _this.updated = _this.updated;
2140
- return _this;
2141
- }
2142
- MenuComponent.prototype.clearTemplate = function (templateNames) {
2143
- if (!templateNames) {
2144
- templateNames = Object.keys(this.templateCollection || {});
1615
+ var MenuComponent = vueDefineComponent({
1616
+ name: 'MenuComponent',
1617
+ mixins: [ComponentBase],
1618
+ props: props$8,
1619
+ watch: watch$8,
1620
+ emits: emitProbs$8,
1621
+ provide: function () { return { custom: this.custom }; },
1622
+ data: function () {
1623
+ return {
1624
+ ej2Instances: new Menu({}),
1625
+ propKeys: properties$8,
1626
+ models: modelProps$8,
1627
+ hasChildDirective: true,
1628
+ hasInjectedModules: false,
1629
+ tagMapper: { "e-menu-items": "e-" },
1630
+ tagNameMapper: { "e-menu-items": "e-items" },
1631
+ isVue3: !isExecute,
1632
+ templateCollection: {},
1633
+ };
1634
+ },
1635
+ created: function () {
1636
+ this.bindProperties();
1637
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1638
+ this.ej2Instances.setProperties = this.setProperties;
1639
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1640
+ this.updated = this.updated;
1641
+ },
1642
+ render: function (createElement) {
1643
+ var h = !isExecute ? gh : createElement;
1644
+ var slots = null;
1645
+ if (!isNullOrUndefined(this.$slots.default)) {
1646
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
2145
1647
  }
2146
- if (templateNames.length && this.templateCollection) {
2147
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
2148
- var tempName = templateNames_1[_i];
2149
- var elementCollection = this.templateCollection[tempName];
2150
- if (elementCollection && elementCollection.length) {
2151
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
2152
- var ele = elementCollection_1[_a];
2153
- var destroy = getValue('__vue__.$destroy', ele);
2154
- if (destroy) {
2155
- ele.__vue__.$destroy();
2156
- }
2157
- if (ele.innerHTML) {
2158
- ele.innerHTML = '';
1648
+ return h('ul', slots);
1649
+ },
1650
+ methods: {
1651
+ clearTemplate: function (templateNames) {
1652
+ if (!templateNames) {
1653
+ templateNames = Object.keys(this.templateCollection || {});
1654
+ }
1655
+ if (templateNames.length && this.templateCollection) {
1656
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1657
+ var tempName = templateNames_1[_i];
1658
+ var elementCollection = this.templateCollection[tempName];
1659
+ if (elementCollection && elementCollection.length) {
1660
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1661
+ var ele = elementCollection_1[_a];
1662
+ var destroy = getValue('__vue__.$destroy', ele);
1663
+ if (destroy) {
1664
+ ele.__vue__.$destroy();
1665
+ }
1666
+ if (ele.innerHTML) {
1667
+ ele.innerHTML = '';
1668
+ }
2159
1669
  }
1670
+ delete this.templateCollection[tempName];
2160
1671
  }
2161
- delete this.templateCollection[tempName];
2162
1672
  }
2163
1673
  }
2164
- }
2165
- };
2166
- MenuComponent.prototype.setProperties = function (prop, muteOnChange) {
2167
- var _this = this;
2168
- if (this.isVue3) {
2169
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
2170
- }
2171
- if (this.ej2Instances && this.ej2Instances._setProperties) {
2172
- this.ej2Instances._setProperties(prop, muteOnChange);
2173
- }
2174
- if (prop && this.models && this.models.length) {
2175
- Object.keys(prop).map(function (key) {
2176
- _this.models.map(function (model) {
2177
- if ((key === model) && !(/datasource/i.test(key))) {
2178
- if (_this.isVue3) {
2179
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
2180
- }
2181
- else {
2182
- _this.$emit('update:' + key, prop[key]);
2183
- _this.$emit('modelchanged', prop[key]);
1674
+ },
1675
+ setProperties: function (prop, muteOnChange) {
1676
+ var _this = this;
1677
+ if (this.isVue3) {
1678
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1679
+ }
1680
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1681
+ this.ej2Instances._setProperties(prop, muteOnChange);
1682
+ }
1683
+ if (prop && this.models && this.models.length) {
1684
+ Object.keys(prop).map(function (key) {
1685
+ _this.models.map(function (model) {
1686
+ if ((key === model) && !(/datasource/i.test(key))) {
1687
+ if (_this.isVue3) {
1688
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1689
+ }
1690
+ else {
1691
+ _this.$emit('update:' + key, prop[key]);
1692
+ _this.$emit('modelchanged', prop[key]);
1693
+ }
2184
1694
  }
2185
- }
1695
+ });
2186
1696
  });
2187
- });
2188
- }
2189
- };
2190
- MenuComponent.prototype.render = function (createElement) {
2191
- var h = !isExecute ? gh : createElement;
2192
- var slots = null;
2193
- if (!isNullOrUndefined(this.$slots.default)) {
2194
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
2195
- }
2196
- return h('ul', slots);
2197
- };
2198
- MenuComponent.prototype.custom = function () {
2199
- this.updated();
2200
- };
2201
- MenuComponent.prototype.close = function () {
2202
- return this.ej2Instances.close();
2203
- };
2204
- MenuComponent.prototype.enableItems = function (items, enable, isUniqueId) {
2205
- return this.ej2Instances.enableItems(items, enable, isUniqueId);
2206
- };
2207
- MenuComponent.prototype.getItemIndex = function (item, isUniqueId) {
2208
- return this.ej2Instances.getItemIndex(item, isUniqueId);
2209
- };
2210
- MenuComponent.prototype.hideItems = function (items, isUniqueId) {
2211
- return this.ej2Instances.hideItems(items, isUniqueId);
2212
- };
2213
- MenuComponent.prototype.insertAfter = function (items, text, isUniqueId) {
2214
- return this.ej2Instances.insertAfter(items, text, isUniqueId);
2215
- };
2216
- MenuComponent.prototype.insertBefore = function (items, text, isUniqueId) {
2217
- return this.ej2Instances.insertBefore(items, text, isUniqueId);
2218
- };
2219
- MenuComponent.prototype.open = function () {
2220
- return this.ej2Instances.open();
2221
- };
2222
- MenuComponent.prototype.removeItems = function (items, isUniqueId) {
2223
- return this.ej2Instances.removeItems(items, isUniqueId);
2224
- };
2225
- MenuComponent.prototype.setItem = function (item, id, isUniqueId) {
2226
- return this.ej2Instances.setItem(item, id, isUniqueId);
2227
- };
2228
- MenuComponent.prototype.showItems = function (items, isUniqueId) {
2229
- return this.ej2Instances.showItems(items, isUniqueId);
2230
- };
2231
- MenuComponent = __decorate$14([
2232
- EJComponentDecorator({
2233
- props: properties$8
2234
- }, isExecute)
2235
- ,Options({
2236
- props: props,
2237
- watch: watch,
2238
- emits: emitProbs,
2239
- provide: function provide() {
2240
- return {
2241
- custom: this.custom
2242
- };
2243
- }
2244
- })
2245
- ], MenuComponent);
2246
- return MenuComponent;
2247
- }(ComponentBase));
1697
+ }
1698
+ },
1699
+ custom: function () {
1700
+ this.updated();
1701
+ },
1702
+ close: function () {
1703
+ return this.ej2Instances.close();
1704
+ },
1705
+ enableItems: function (items, enable, isUniqueId) {
1706
+ return this.ej2Instances.enableItems(items, enable, isUniqueId);
1707
+ },
1708
+ getItemIndex: function (item, isUniqueId) {
1709
+ return this.ej2Instances.getItemIndex(item, isUniqueId);
1710
+ },
1711
+ hideItems: function (items, isUniqueId) {
1712
+ return this.ej2Instances.hideItems(items, isUniqueId);
1713
+ },
1714
+ insertAfter: function (items, text, isUniqueId) {
1715
+ return this.ej2Instances.insertAfter(items, text, isUniqueId);
1716
+ },
1717
+ insertBefore: function (items, text, isUniqueId) {
1718
+ return this.ej2Instances.insertBefore(items, text, isUniqueId);
1719
+ },
1720
+ open: function () {
1721
+ return this.ej2Instances.open();
1722
+ },
1723
+ removeItems: function (items, isUniqueId) {
1724
+ return this.ej2Instances.removeItems(items, isUniqueId);
1725
+ },
1726
+ setItem: function (item, id, isUniqueId) {
1727
+ return this.ej2Instances.setItem(item, id, isUniqueId);
1728
+ },
1729
+ showItems: function (items, isUniqueId) {
1730
+ return this.ej2Instances.showItems(items, isUniqueId);
1731
+ },
1732
+ }
1733
+ });
2248
1734
  var MenuPlugin = {
2249
1735
  name: 'ejs-menu',
2250
- install: function (Vue$$1) {
2251
- Vue$$1.component(MenuPlugin.name, MenuComponent);
2252
- Vue$$1.component(MenuItemPlugin.name, MenuItemDirective);
2253
- Vue$$1.component(MenuItemsPlugin.name, MenuItemsDirective);
1736
+ install: function (Vue) {
1737
+ Vue.component(MenuPlugin.name, MenuComponent);
1738
+ Vue.component(MenuItemPlugin.name, MenuItemDirective);
1739
+ Vue.component(MenuItemsPlugin.name, MenuItemsDirective);
2254
1740
  }
2255
1741
  };
2256
1742
 
2257
- var __extends$15 = (undefined && undefined.__extends) || (function () {
2258
- var extendStatics = function (d, b) {
2259
- extendStatics = Object.setPrototypeOf ||
2260
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
2261
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
2262
- return extendStatics(d, b);
2263
- };
2264
- return function (d, b) {
2265
- extendStatics(d, b);
2266
- function __() { this.constructor = d; }
2267
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
2268
- };
2269
- })();
2270
- var __decorate$15 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
2271
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
2272
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
2273
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
2274
- return c > 3 && r && Object.defineProperty(target, key, r), r;
2275
- };
2276
- // {{VueImport}}
2277
1743
  var properties$9 = ['isLazyUpdate', 'plugins', 'colorMode', 'cssClass', 'enablePersistence', 'enableRtl', 'htmlAttributes', 'isSticky', 'locale', 'mode', 'position', 'created', 'destroyed'];
2278
1744
  var modelProps$9 = [];
2279
1745
  var testProp$9 = getProps({ props: properties$9 });
@@ -2291,105 +1757,99 @@ for (var _i$9 = 0, modelProps_1$9 = modelProps$9; _i$9 < modelProps_1$9.length;
2291
1757
  * <ejs-appbar></ejs-appbar>
2292
1758
  * ```
2293
1759
  */
2294
- var AppBarComponent = /** @__PURE__ @class */ (function (_super) {
2295
- __extends$15(AppBarComponent, _super);
2296
- function AppBarComponent() {
2297
- var _this = _super.call(this, arguments) || this;
2298
- _this.propKeys = properties$9;
2299
- _this.models = modelProps$9;
2300
- _this.hasChildDirective = false;
2301
- _this.hasInjectedModules = false;
2302
- _this.tagMapper = {};
2303
- _this.tagNameMapper = {};
2304
- _this.isVue3 = !isExecute;
2305
- _this.ej2Instances = new AppBar({});
2306
- _this.bindProperties();
2307
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
2308
- _this.ej2Instances.setProperties = _this.setProperties;
2309
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
2310
- _this.updated = _this.updated;
2311
- return _this;
2312
- }
2313
- AppBarComponent.prototype.clearTemplate = function (templateNames) {
2314
- if (!templateNames) {
2315
- templateNames = Object.keys(this.templateCollection || {});
1760
+ var AppBarComponent = vueDefineComponent({
1761
+ name: 'AppBarComponent',
1762
+ mixins: [ComponentBase],
1763
+ props: props$9,
1764
+ watch: watch$9,
1765
+ emits: emitProbs$9,
1766
+ provide: function () { return { custom: this.custom }; },
1767
+ data: function () {
1768
+ return {
1769
+ ej2Instances: new AppBar({}),
1770
+ propKeys: properties$9,
1771
+ models: modelProps$9,
1772
+ hasChildDirective: false,
1773
+ hasInjectedModules: false,
1774
+ tagMapper: {},
1775
+ tagNameMapper: {},
1776
+ isVue3: !isExecute,
1777
+ templateCollection: {},
1778
+ };
1779
+ },
1780
+ created: function () {
1781
+ this.bindProperties();
1782
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
1783
+ this.ej2Instances.setProperties = this.setProperties;
1784
+ this.ej2Instances.clearTemplate = this.clearTemplate;
1785
+ this.updated = this.updated;
1786
+ },
1787
+ render: function (createElement) {
1788
+ var h = !isExecute ? gh : createElement;
1789
+ var slots = null;
1790
+ if (!isNullOrUndefined(this.$slots.default)) {
1791
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
2316
1792
  }
2317
- if (templateNames.length && this.templateCollection) {
2318
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
2319
- var tempName = templateNames_1[_i];
2320
- var elementCollection = this.templateCollection[tempName];
2321
- if (elementCollection && elementCollection.length) {
2322
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
2323
- var ele = elementCollection_1[_a];
2324
- var destroy = getValue('__vue__.$destroy', ele);
2325
- if (destroy) {
2326
- ele.__vue__.$destroy();
2327
- }
2328
- if (ele.innerHTML) {
2329
- ele.innerHTML = '';
1793
+ return h('header', slots);
1794
+ },
1795
+ methods: {
1796
+ clearTemplate: function (templateNames) {
1797
+ if (!templateNames) {
1798
+ templateNames = Object.keys(this.templateCollection || {});
1799
+ }
1800
+ if (templateNames.length && this.templateCollection) {
1801
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
1802
+ var tempName = templateNames_1[_i];
1803
+ var elementCollection = this.templateCollection[tempName];
1804
+ if (elementCollection && elementCollection.length) {
1805
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
1806
+ var ele = elementCollection_1[_a];
1807
+ var destroy = getValue('__vue__.$destroy', ele);
1808
+ if (destroy) {
1809
+ ele.__vue__.$destroy();
1810
+ }
1811
+ if (ele.innerHTML) {
1812
+ ele.innerHTML = '';
1813
+ }
2330
1814
  }
1815
+ delete this.templateCollection[tempName];
2331
1816
  }
2332
- delete this.templateCollection[tempName];
2333
1817
  }
2334
1818
  }
2335
- }
2336
- };
2337
- AppBarComponent.prototype.setProperties = function (prop, muteOnChange) {
2338
- var _this = this;
2339
- if (this.isVue3) {
2340
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
2341
- }
2342
- if (this.ej2Instances && this.ej2Instances._setProperties) {
2343
- this.ej2Instances._setProperties(prop, muteOnChange);
2344
- }
2345
- if (prop && this.models && this.models.length) {
2346
- Object.keys(prop).map(function (key) {
2347
- _this.models.map(function (model) {
2348
- if ((key === model) && !(/datasource/i.test(key))) {
2349
- if (_this.isVue3) {
2350
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
2351
- }
2352
- else {
2353
- _this.$emit('update:' + key, prop[key]);
2354
- _this.$emit('modelchanged', prop[key]);
1819
+ },
1820
+ setProperties: function (prop, muteOnChange) {
1821
+ var _this = this;
1822
+ if (this.isVue3) {
1823
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
1824
+ }
1825
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
1826
+ this.ej2Instances._setProperties(prop, muteOnChange);
1827
+ }
1828
+ if (prop && this.models && this.models.length) {
1829
+ Object.keys(prop).map(function (key) {
1830
+ _this.models.map(function (model) {
1831
+ if ((key === model) && !(/datasource/i.test(key))) {
1832
+ if (_this.isVue3) {
1833
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
1834
+ }
1835
+ else {
1836
+ _this.$emit('update:' + key, prop[key]);
1837
+ _this.$emit('modelchanged', prop[key]);
1838
+ }
2355
1839
  }
2356
- }
1840
+ });
2357
1841
  });
2358
- });
2359
- }
2360
- };
2361
- AppBarComponent.prototype.render = function (createElement) {
2362
- var h = !isExecute ? gh : createElement;
2363
- var slots = null;
2364
- if (!isNullOrUndefined(this.$slots.default)) {
2365
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
2366
- }
2367
- return h('header', slots);
2368
- };
2369
- AppBarComponent.prototype.custom = function () {
2370
- this.updated();
2371
- };
2372
- AppBarComponent = __decorate$15([
2373
- EJComponentDecorator({
2374
- props: properties$9
2375
- }, isExecute)
2376
- ,Options({
2377
- props: props,
2378
- watch: watch,
2379
- emits: emitProbs,
2380
- provide: function provide() {
2381
- return {
2382
- custom: this.custom
2383
- };
2384
- }
2385
- })
2386
- ], AppBarComponent);
2387
- return AppBarComponent;
2388
- }(ComponentBase));
1842
+ }
1843
+ },
1844
+ custom: function () {
1845
+ this.updated();
1846
+ },
1847
+ }
1848
+ });
2389
1849
  var AppBarPlugin = {
2390
1850
  name: 'ejs-appbar',
2391
- install: function (Vue$$1) {
2392
- Vue$$1.component(AppBarPlugin.name, AppBarComponent);
1851
+ install: function (Vue) {
1852
+ Vue.component(AppBarPlugin.name, AppBarComponent);
2393
1853
  }
2394
1854
  };
2395
1855