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