@syncfusion/ej2-vue-schedule 20.4.53 → 21.1.35

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 (49) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/ej2-vue-schedule.umd.min.js +2 -2
  3. package/dist/ej2-vue-schedule.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-vue-schedule.es2015.js +401 -543
  5. package/dist/es6/ej2-vue-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-vue-schedule.es5.js +440 -628
  7. package/dist/es6/ej2-vue-schedule.es5.js.map +1 -1
  8. package/dist/global/ej2-vue-schedule.min.js +2 -2
  9. package/package.json +9 -9
  10. package/src/recurrence-editor/recurrenceeditor.component.d.ts +3 -28
  11. package/src/recurrence-editor/recurrenceeditor.component.js +101 -130
  12. package/src/schedule/headerrows.directive.d.ts +2 -12
  13. package/src/schedule/headerrows.directive.js +22 -71
  14. package/src/schedule/resources.directive.d.ts +2 -12
  15. package/src/schedule/resources.directive.js +22 -71
  16. package/src/schedule/schedule.component.d.ts +3 -70
  17. package/src/schedule/schedule.component.js +258 -286
  18. package/src/schedule/views.directive.d.ts +2 -12
  19. package/src/schedule/views.directive.js +22 -71
  20. package/styles/bootstrap-dark.css +99 -89
  21. package/styles/bootstrap.css +99 -89
  22. package/styles/bootstrap4.css +99 -89
  23. package/styles/bootstrap5-dark.css +110 -100
  24. package/styles/bootstrap5.css +110 -100
  25. package/styles/fabric-dark.css +98 -88
  26. package/styles/fabric.css +98 -88
  27. package/styles/fluent-dark.css +109 -99
  28. package/styles/fluent.css +109 -99
  29. package/styles/highcontrast-light.css +98 -88
  30. package/styles/highcontrast.css +98 -88
  31. package/styles/material-dark.css +98 -88
  32. package/styles/material.css +98 -88
  33. package/styles/schedule/bootstrap-dark.css +99 -89
  34. package/styles/schedule/bootstrap.css +99 -89
  35. package/styles/schedule/bootstrap4.css +99 -89
  36. package/styles/schedule/bootstrap5-dark.css +110 -100
  37. package/styles/schedule/bootstrap5.css +110 -100
  38. package/styles/schedule/fabric-dark.css +98 -88
  39. package/styles/schedule/fabric.css +98 -88
  40. package/styles/schedule/fluent-dark.css +109 -99
  41. package/styles/schedule/fluent.css +109 -99
  42. package/styles/schedule/highcontrast-light.css +98 -88
  43. package/styles/schedule/highcontrast.css +98 -88
  44. package/styles/schedule/material-dark.css +98 -88
  45. package/styles/schedule/material.css +98 -88
  46. package/styles/schedule/tailwind-dark.css +106 -96
  47. package/styles/schedule/tailwind.css +106 -96
  48. package/styles/tailwind-dark.css +106 -96
  49. package/styles/tailwind.css +106 -96
@@ -1,42 +1,10 @@
1
1
  import { RecurrenceEditor, Schedule } from '@syncfusion/ej2-schedule';
2
- import { ComponentBase, EJComponentDecorator, allVue, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
3
- import { Vue } from 'vue-class-component';
2
+ import { ComponentBase, getProps, gh, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
4
3
  import { getValue, isNullOrUndefined, isUndefined } from '@syncfusion/ej2-base';
5
- import Vue$1 from 'vue';
6
4
 
7
- var __extends = (undefined && undefined.__extends) || (function () {
8
- var extendStatics = function (d, b) {
9
- extendStatics = Object.setPrototypeOf ||
10
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
12
- return extendStatics(d, b);
13
- };
14
- return function (d, b) {
15
- extendStatics(d, b);
16
- function __() { this.constructor = d; }
17
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
18
- };
19
- })();
20
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
21
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
22
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
23
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
24
- return c > 3 && r && Object.defineProperty(target, key, r), r;
25
- };
26
- import { Options } from 'vue-class-component';
27
- var vueImport;
28
- if (!isExecute || parseInt(allVue.version) < 3) {
29
- vueImport = Vue;
30
- }
31
- else {
32
- vueImport = Vue$1;
33
- }
34
- var ViewsDirective = /** @__PURE__ @class */ (function (_super) {
35
- __extends(ViewsDirective, _super);
36
- function ViewsDirective() {
37
- return _super.call(this, arguments) || this;
38
- }
39
- ViewsDirective.prototype.render = function (createElement) {
5
+ var ViewsDirective = vueDefineComponent({
6
+ inject: { custom: { default: null } },
7
+ render: function (createElement) {
40
8
  if (!isExecute) {
41
9
  var h = !isExecute ? gh : createElement;
42
10
  var slots = null;
@@ -46,31 +14,22 @@ var ViewsDirective = /** @__PURE__ @class */ (function (_super) {
46
14
  return h('div', { class: 'e-directive' }, slots);
47
15
  }
48
16
  return;
49
- };
50
- ViewsDirective.prototype.updated = function () {
17
+ },
18
+ updated: function () {
51
19
  if (!isExecute && this.custom) {
52
20
  this.custom();
53
21
  }
54
- };
55
- ViewsDirective.prototype.getTag = function () {
56
- return 'e-views';
57
- };
58
- ViewsDirective = __decorate([
59
- EJComponentDecorator({}, isExecute)
60
- ,Options({
61
- inject: {
62
- custom: {
63
- default: null
64
- }
65
- }
66
- })
67
- ], ViewsDirective);
68
- return ViewsDirective;
69
- }(vueImport));
22
+ },
23
+ methods: {
24
+ getTag: function () {
25
+ return 'e-views';
26
+ }
27
+ }
28
+ });
70
29
  var ViewsPlugin = {
71
30
  name: 'e-views',
72
- install: function (Vue$$1) {
73
- Vue$$1.component(ViewsPlugin.name, ViewsDirective);
31
+ install: function (Vue) {
32
+ Vue.component(ViewsPlugin.name, ViewsDirective);
74
33
  }
75
34
  };
76
35
  /**
@@ -85,62 +44,26 @@ var ViewsPlugin = {
85
44
  * </ejs-schedule>
86
45
  * ```
87
46
  */
88
- var ViewDirective = /** @__PURE__ @class */ (function (_super) {
89
- __extends(ViewDirective, _super);
90
- function ViewDirective() {
91
- return _super !== null && _super.apply(this, arguments) || this;
92
- }
93
- ViewDirective.prototype.render = function () {
47
+ var ViewDirective = vueDefineComponent({
48
+ render: function () {
94
49
  return;
95
- };
96
- ViewDirective.prototype.getTag = function () {
97
- return 'e-view';
98
- };
99
- ViewDirective = __decorate([
100
- EJComponentDecorator({}, isExecute)
101
- ], ViewDirective);
102
- return ViewDirective;
103
- }(vueImport));
50
+ },
51
+ methods: {
52
+ getTag: function () {
53
+ return 'e-view';
54
+ }
55
+ }
56
+ });
104
57
  var ViewPlugin = {
105
58
  name: 'e-view',
106
- install: function (Vue$$1) {
107
- Vue$$1.component(ViewPlugin.name, ViewDirective);
59
+ install: function (Vue) {
60
+ Vue.component(ViewPlugin.name, ViewDirective);
108
61
  }
109
62
  };
110
63
 
111
- var __extends$1 = (undefined && undefined.__extends) || (function () {
112
- var extendStatics = function (d, b) {
113
- extendStatics = Object.setPrototypeOf ||
114
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
115
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
116
- return extendStatics(d, b);
117
- };
118
- return function (d, b) {
119
- extendStatics(d, b);
120
- function __() { this.constructor = d; }
121
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
122
- };
123
- })();
124
- var __decorate$1 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
125
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
126
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
127
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
128
- return c > 3 && r && Object.defineProperty(target, key, r), r;
129
- };
130
- // {{VueImport}}
131
- var vueImport$1;
132
- if (!isExecute || parseInt(allVue.version) < 3) {
133
- vueImport$1 = Vue;
134
- }
135
- else {
136
- vueImport$1 = Vue$1;
137
- }
138
- var ResourcesDirective = /** @__PURE__ @class */ (function (_super) {
139
- __extends$1(ResourcesDirective, _super);
140
- function ResourcesDirective() {
141
- return _super.call(this, arguments) || this;
142
- }
143
- ResourcesDirective.prototype.render = function (createElement) {
64
+ var ResourcesDirective = vueDefineComponent({
65
+ inject: { custom: { default: null } },
66
+ render: function (createElement) {
144
67
  if (!isExecute) {
145
68
  var h = !isExecute ? gh : createElement;
146
69
  var slots = null;
@@ -150,31 +73,22 @@ var ResourcesDirective = /** @__PURE__ @class */ (function (_super) {
150
73
  return h('div', { class: 'e-directive' }, slots);
151
74
  }
152
75
  return;
153
- };
154
- ResourcesDirective.prototype.updated = function () {
76
+ },
77
+ updated: function () {
155
78
  if (!isExecute && this.custom) {
156
79
  this.custom();
157
80
  }
158
- };
159
- ResourcesDirective.prototype.getTag = function () {
160
- return 'e-resources';
161
- };
162
- ResourcesDirective = __decorate$1([
163
- EJComponentDecorator({}, isExecute)
164
- ,Options({
165
- inject: {
166
- custom: {
167
- default: null
168
- }
169
- }
170
- })
171
- ], ResourcesDirective);
172
- return ResourcesDirective;
173
- }(vueImport$1));
81
+ },
82
+ methods: {
83
+ getTag: function () {
84
+ return 'e-resources';
85
+ }
86
+ }
87
+ });
174
88
  var ResourcesPlugin = {
175
89
  name: 'e-resources',
176
- install: function (Vue$$1) {
177
- Vue$$1.component(ResourcesPlugin.name, ResourcesDirective);
90
+ install: function (Vue) {
91
+ Vue.component(ResourcesPlugin.name, ResourcesDirective);
178
92
  }
179
93
  };
180
94
  /**
@@ -189,62 +103,26 @@ var ResourcesPlugin = {
189
103
  * </ejs-schedule>
190
104
  * ```
191
105
  */
192
- var ResourceDirective = /** @__PURE__ @class */ (function (_super) {
193
- __extends$1(ResourceDirective, _super);
194
- function ResourceDirective() {
195
- return _super !== null && _super.apply(this, arguments) || this;
196
- }
197
- ResourceDirective.prototype.render = function () {
106
+ var ResourceDirective = vueDefineComponent({
107
+ render: function () {
198
108
  return;
199
- };
200
- ResourceDirective.prototype.getTag = function () {
201
- return 'e-resource';
202
- };
203
- ResourceDirective = __decorate$1([
204
- EJComponentDecorator({}, isExecute)
205
- ], ResourceDirective);
206
- return ResourceDirective;
207
- }(vueImport$1));
109
+ },
110
+ methods: {
111
+ getTag: function () {
112
+ return 'e-resource';
113
+ }
114
+ }
115
+ });
208
116
  var ResourcePlugin = {
209
117
  name: 'e-resource',
210
- install: function (Vue$$1) {
211
- Vue$$1.component(ResourcePlugin.name, ResourceDirective);
118
+ install: function (Vue) {
119
+ Vue.component(ResourcePlugin.name, ResourceDirective);
212
120
  }
213
121
  };
214
122
 
215
- var __extends$2 = (undefined && undefined.__extends) || (function () {
216
- var extendStatics = function (d, b) {
217
- extendStatics = Object.setPrototypeOf ||
218
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
219
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
220
- return extendStatics(d, b);
221
- };
222
- return function (d, b) {
223
- extendStatics(d, b);
224
- function __() { this.constructor = d; }
225
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
226
- };
227
- })();
228
- var __decorate$2 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
229
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
230
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
231
- 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;
232
- return c > 3 && r && Object.defineProperty(target, key, r), r;
233
- };
234
- // {{VueImport}}
235
- var vueImport$2;
236
- if (!isExecute || parseInt(allVue.version) < 3) {
237
- vueImport$2 = Vue;
238
- }
239
- else {
240
- vueImport$2 = Vue$1;
241
- }
242
- var HeaderRowsDirective = /** @__PURE__ @class */ (function (_super) {
243
- __extends$2(HeaderRowsDirective, _super);
244
- function HeaderRowsDirective() {
245
- return _super.call(this, arguments) || this;
246
- }
247
- HeaderRowsDirective.prototype.render = function (createElement) {
123
+ var HeaderRowsDirective = vueDefineComponent({
124
+ inject: { custom: { default: null } },
125
+ render: function (createElement) {
248
126
  if (!isExecute) {
249
127
  var h = !isExecute ? gh : createElement;
250
128
  var slots = null;
@@ -254,31 +132,22 @@ var HeaderRowsDirective = /** @__PURE__ @class */ (function (_super) {
254
132
  return h('div', { class: 'e-directive' }, slots);
255
133
  }
256
134
  return;
257
- };
258
- HeaderRowsDirective.prototype.updated = function () {
135
+ },
136
+ updated: function () {
259
137
  if (!isExecute && this.custom) {
260
138
  this.custom();
261
139
  }
262
- };
263
- HeaderRowsDirective.prototype.getTag = function () {
264
- return 'e-header-rows';
265
- };
266
- HeaderRowsDirective = __decorate$2([
267
- EJComponentDecorator({}, isExecute)
268
- ,Options({
269
- inject: {
270
- custom: {
271
- default: null
272
- }
273
- }
274
- })
275
- ], HeaderRowsDirective);
276
- return HeaderRowsDirective;
277
- }(vueImport$2));
140
+ },
141
+ methods: {
142
+ getTag: function () {
143
+ return 'e-header-rows';
144
+ }
145
+ }
146
+ });
278
147
  var HeaderRowsPlugin = {
279
148
  name: 'e-header-rows',
280
- install: function (Vue$$1) {
281
- Vue$$1.component(HeaderRowsPlugin.name, HeaderRowsDirective);
149
+ install: function (Vue) {
150
+ Vue.component(HeaderRowsPlugin.name, HeaderRowsDirective);
282
151
  }
283
152
  };
284
153
  /**
@@ -293,50 +162,24 @@ var HeaderRowsPlugin = {
293
162
  * </ejs-schedule>
294
163
  * ```
295
164
  */
296
- var HeaderRowDirective = /** @__PURE__ @class */ (function (_super) {
297
- __extends$2(HeaderRowDirective, _super);
298
- function HeaderRowDirective() {
299
- return _super !== null && _super.apply(this, arguments) || this;
300
- }
301
- HeaderRowDirective.prototype.render = function () {
165
+ var HeaderRowDirective = vueDefineComponent({
166
+ render: function () {
302
167
  return;
303
- };
304
- HeaderRowDirective.prototype.getTag = function () {
305
- return 'e-header-row';
306
- };
307
- HeaderRowDirective = __decorate$2([
308
- EJComponentDecorator({}, isExecute)
309
- ], HeaderRowDirective);
310
- return HeaderRowDirective;
311
- }(vueImport$2));
168
+ },
169
+ methods: {
170
+ getTag: function () {
171
+ return 'e-header-row';
172
+ }
173
+ }
174
+ });
312
175
  var HeaderRowPlugin = {
313
176
  name: 'e-header-row',
314
- install: function (Vue$$1) {
315
- Vue$$1.component(HeaderRowPlugin.name, HeaderRowDirective);
177
+ install: function (Vue) {
178
+ Vue.component(HeaderRowPlugin.name, HeaderRowDirective);
316
179
  }
317
180
  };
318
181
 
319
- var __extends$3 = (undefined && undefined.__extends) || (function () {
320
- var extendStatics = function (d, b) {
321
- extendStatics = Object.setPrototypeOf ||
322
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
323
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
324
- return extendStatics(d, b);
325
- };
326
- return function (d, b) {
327
- extendStatics(d, b);
328
- function __() { this.constructor = d; }
329
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
330
- };
331
- })();
332
- var __decorate$3 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
333
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
334
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
335
- 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;
336
- return c > 3 && r && Object.defineProperty(target, key, r), r;
337
- };
338
- // {{VueImport}}
339
- var properties = ['isLazyUpdate', 'plugins', 'agendaDaysCount', 'allowDragAndDrop', 'allowInline', 'allowKeyboardInteraction', 'allowMultiCellSelection', 'allowMultiDrag', 'allowMultiRowSelection', 'allowResizing', 'allowSwiping', 'calendarMode', 'cellHeaderTemplate', 'cellTemplate', 'cssClass', 'currentView', 'dateFormat', 'dateHeaderTemplate', 'dateRangeTemplate', 'dayHeaderTemplate', 'editorTemplate', 'enableAdaptiveUI', 'enableAllDayScroll', 'enablePersistence', 'enableRecurrenceValidation', 'enableRtl', 'endHour', 'eventDragArea', 'eventSettings', 'firstDayOfWeek', 'firstMonthOfYear', 'group', 'headerIndentTemplate', 'headerRows', 'height', 'hideEmptyAgendaDays', 'locale', 'maxDate', 'minDate', 'monthHeaderTemplate', 'monthsCount', 'quickInfoOnSelectionEnd', 'quickInfoTemplates', 'readonly', 'resourceHeaderTemplate', 'resources', 'rowAutoHeight', 'selectedDate', 'showHeaderBar', 'showQuickInfo', 'showTimeIndicator', 'showWeekNumber', 'showWeekend', 'startHour', 'timeFormat', 'timeScale', 'timezone', 'timezoneDataSource', 'views', 'weekRule', 'width', 'workDays', 'workHours', 'actionBegin', 'actionComplete', 'actionFailure', 'cellClick', 'cellDoubleClick', 'created', 'dataBinding', 'dataBound', 'destroyed', 'drag', 'dragStart', 'dragStop', 'eventClick', 'eventRendered', 'hover', 'moreEventsClick', 'navigating', 'popupClose', 'popupOpen', 'renderCell', 'resizeStart', 'resizeStop', 'resizing', 'select'];
182
+ var properties = ['isLazyUpdate', 'plugins', 'agendaDaysCount', 'allowDragAndDrop', 'allowInline', 'allowKeyboardInteraction', 'allowMultiCellSelection', 'allowMultiDrag', 'allowMultiRowSelection', 'allowResizing', 'allowSwiping', 'calendarMode', 'cellHeaderTemplate', 'cellTemplate', 'cssClass', 'currentView', 'dateFormat', 'dateHeaderTemplate', 'dateRangeTemplate', 'dayHeaderTemplate', 'editorTemplate', 'enableAdaptiveUI', 'enableAllDayScroll', 'enableHtmlSanitizer', 'enablePersistence', 'enableRecurrenceValidation', 'enableRtl', 'endHour', 'eventDragArea', 'eventSettings', 'firstDayOfWeek', 'firstMonthOfYear', 'group', 'headerIndentTemplate', 'headerRows', 'height', 'hideEmptyAgendaDays', 'locale', 'maxDate', 'minDate', 'monthHeaderTemplate', 'monthsCount', 'quickInfoOnSelectionEnd', 'quickInfoTemplates', 'readonly', 'resourceHeaderTemplate', 'resources', 'rowAutoHeight', 'selectedDate', 'showHeaderBar', 'showQuickInfo', 'showTimeIndicator', 'showWeekNumber', 'showWeekend', 'startHour', 'timeFormat', 'timeScale', 'timezone', 'timezoneDataSource', 'views', 'weekRule', 'width', 'workDays', 'workHours', 'actionBegin', 'actionComplete', 'actionFailure', 'cellClick', 'cellDoubleClick', 'created', 'dataBinding', 'dataBound', 'destroyed', 'drag', 'dragStart', 'dragStop', 'eventClick', 'eventRendered', 'hover', 'moreEventsClick', 'navigating', 'popupClose', 'popupOpen', 'renderCell', 'resizeStart', 'resizeStop', 'resizing', 'select'];
340
183
  var modelProps = ['currentView', 'selectedDate'];
341
184
  var testProp = getProps({ props: properties });
342
185
  var props = testProp[0];
@@ -353,313 +196,288 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
353
196
  * <ejs-schedule></ejs-schedule>
354
197
  * ```
355
198
  */
356
- var ScheduleComponent = /** @__PURE__ @class */ (function (_super) {
357
- __extends$3(ScheduleComponent, _super);
358
- function ScheduleComponent() {
359
- var _this = _super.call(this, arguments) || this;
360
- _this.propKeys = properties;
361
- _this.models = modelProps;
362
- _this.hasChildDirective = true;
363
- _this.hasInjectedModules = true;
364
- _this.tagMapper = { "e-views": "e-view", "e-resources": "e-resource", "e-header-rows": "e-header-row" };
365
- _this.tagNameMapper = { "e-header-rows": "e-headerRows" };
366
- _this.isVue3 = !isExecute;
367
- _this.ej2Instances = new Schedule({});
368
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
369
- _this.ej2Instances.trigger = _this.trigger;
370
- _this.bindProperties();
371
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
372
- _this.ej2Instances.setProperties = _this.setProperties;
373
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
374
- _this.updated = _this.updated;
375
- return _this;
376
- }
377
- ScheduleComponent.prototype.clearTemplate = function (templateNames) {
378
- if (!templateNames) {
379
- templateNames = Object.keys(this.templateCollection || {});
199
+ var ScheduleComponent = vueDefineComponent({
200
+ name: 'ScheduleComponent',
201
+ mixins: [ComponentBase],
202
+ props: props,
203
+ watch: watch,
204
+ emits: emitProbs,
205
+ model: { event: 'modelchanged' },
206
+ provide: function () { return { custom: this.custom }; },
207
+ data: function () {
208
+ return {
209
+ ej2Instances: new Schedule({}),
210
+ propKeys: properties,
211
+ models: modelProps,
212
+ hasChildDirective: true,
213
+ hasInjectedModules: true,
214
+ tagMapper: { "e-views": "e-view", "e-resources": "e-resource", "e-header-rows": "e-header-row" },
215
+ tagNameMapper: { "e-header-rows": "e-headerRows" },
216
+ isVue3: !isExecute,
217
+ templateCollection: {},
218
+ };
219
+ },
220
+ created: function () {
221
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
222
+ this.ej2Instances.trigger = this.trigger;
223
+ this.bindProperties();
224
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
225
+ this.ej2Instances.setProperties = this.setProperties;
226
+ this.ej2Instances.clearTemplate = this.clearTemplate;
227
+ this.updated = this.updated;
228
+ },
229
+ render: function (createElement) {
230
+ var h = !isExecute ? gh : createElement;
231
+ var slots = null;
232
+ if (!isNullOrUndefined(this.$slots.default)) {
233
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
380
234
  }
381
- if (templateNames.length && this.templateCollection) {
382
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
383
- var tempName = templateNames_1[_i];
384
- var elementCollection = this.templateCollection[tempName];
385
- if (elementCollection && elementCollection.length) {
386
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
387
- var ele = elementCollection_1[_a];
388
- var destroy = getValue('__vue__.$destroy', ele);
389
- if (destroy) {
390
- ele.__vue__.$destroy();
391
- }
392
- if (ele.innerHTML) {
393
- ele.innerHTML = '';
235
+ return h('div', slots);
236
+ },
237
+ methods: {
238
+ clearTemplate: function (templateNames) {
239
+ if (!templateNames) {
240
+ templateNames = Object.keys(this.templateCollection || {});
241
+ }
242
+ if (templateNames.length && this.templateCollection) {
243
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
244
+ var tempName = templateNames_1[_i];
245
+ var elementCollection = this.templateCollection[tempName];
246
+ if (elementCollection && elementCollection.length) {
247
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
248
+ var ele = elementCollection_1[_a];
249
+ var destroy = getValue('__vue__.$destroy', ele);
250
+ if (destroy) {
251
+ ele.__vue__.$destroy();
252
+ }
253
+ if (ele.innerHTML) {
254
+ ele.innerHTML = '';
255
+ }
394
256
  }
257
+ delete this.templateCollection[tempName];
395
258
  }
396
- delete this.templateCollection[tempName];
397
259
  }
398
260
  }
399
- }
400
- };
401
- ScheduleComponent.prototype.setProperties = function (prop, muteOnChange) {
402
- var _this = this;
403
- if (this.isVue3) {
404
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
405
- }
406
- if (this.ej2Instances && this.ej2Instances._setProperties) {
407
- this.ej2Instances._setProperties(prop, muteOnChange);
408
- }
409
- if (prop && this.models && this.models.length) {
410
- Object.keys(prop).map(function (key) {
411
- _this.models.map(function (model) {
412
- if ((key === model) && !(/datasource/i.test(key))) {
413
- if (_this.isVue3) {
414
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
261
+ },
262
+ setProperties: function (prop, muteOnChange) {
263
+ var _this = this;
264
+ if (this.isVue3) {
265
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
266
+ }
267
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
268
+ this.ej2Instances._setProperties(prop, muteOnChange);
269
+ }
270
+ if (prop && this.models && this.models.length) {
271
+ Object.keys(prop).map(function (key) {
272
+ _this.models.map(function (model) {
273
+ if ((key === model) && !(/datasource/i.test(key))) {
274
+ if (_this.isVue3) {
275
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
276
+ }
277
+ else {
278
+ _this.$emit('update:' + key, prop[key]);
279
+ _this.$emit('modelchanged', prop[key]);
280
+ }
415
281
  }
416
- else {
417
- _this.$emit('update:' + key, prop[key]);
418
- _this.$emit('modelchanged', prop[key]);
282
+ });
283
+ });
284
+ }
285
+ },
286
+ trigger: function (eventName, eventProp, successHandler) {
287
+ if (!isExecute) {
288
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
289
+ }
290
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
291
+ var key = this.models.toString().match(/checked|value/) || [];
292
+ var propKey = key[0];
293
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
294
+ if (!isExecute) {
295
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
296
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
297
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
298
+ }
299
+ else {
300
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
301
+ this.$emit('update:' + propKey, eventProp[propKey]);
302
+ this.$emit('modelchanged', eventProp[propKey]);
419
303
  }
420
304
  }
421
- });
422
- });
423
- }
424
- };
425
- ScheduleComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
426
- if (!isExecute) {
427
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
428
- }
429
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
430
- var key = this.models.toString().match(/checked|value/) || [];
431
- var propKey = key[0];
432
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
433
- if (!isExecute) {
434
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
435
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
436
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
437
305
  }
438
- else {
439
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
306
+ }
307
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
308
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
309
+ var propKey = key[0];
310
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
311
+ if (!isExecute) {
312
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
313
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
314
+ }
315
+ else {
440
316
  this.$emit('update:' + propKey, eventProp[propKey]);
441
317
  this.$emit('modelchanged', eventProp[propKey]);
442
318
  }
443
319
  }
444
320
  }
445
- }
446
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
447
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
448
- var propKey = key[0];
449
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
450
- if (!isExecute) {
451
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
452
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
453
- }
454
- else {
455
- this.$emit('update:' + propKey, eventProp[propKey]);
456
- this.$emit('modelchanged', eventProp[propKey]);
457
- }
458
- }
459
- }
460
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
461
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
462
- }
463
- };
464
- ScheduleComponent.prototype.render = function (createElement) {
465
- var h = !isExecute ? gh : createElement;
466
- var slots = null;
467
- if (!isNullOrUndefined(this.$slots.default)) {
468
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
469
- }
470
- return h('div', slots);
471
- };
472
- ScheduleComponent.prototype.custom = function () {
473
- this.updated();
474
- };
475
- ScheduleComponent.prototype.addEvent = function (data) {
476
- return this.ej2Instances.addEvent(data);
477
- };
478
- ScheduleComponent.prototype.addResource = function (resources, name, index) {
479
- return this.ej2Instances.addResource(resources, name, index);
480
- };
481
- ScheduleComponent.prototype.changeCurrentView = function (viewName, viewIndex) {
482
- return this.ej2Instances.changeCurrentView(viewName, viewIndex);
483
- };
484
- ScheduleComponent.prototype.closeEditor = function () {
485
- return this.ej2Instances.closeEditor();
486
- };
487
- ScheduleComponent.prototype.closeQuickInfoPopup = function () {
488
- return this.ej2Instances.closeQuickInfoPopup();
489
- };
490
- ScheduleComponent.prototype.closeTooltip = function () {
491
- return this.ej2Instances.closeTooltip();
492
- };
493
- ScheduleComponent.prototype.collapseResource = function (resourceId, name) {
494
- return this.ej2Instances.collapseResource(resourceId, name);
495
- };
496
- ScheduleComponent.prototype.deleteEvent = function (id, currentAction) {
497
- return this.ej2Instances.deleteEvent(id, currentAction);
498
- };
499
- ScheduleComponent.prototype.expandResource = function (resourceId, name) {
500
- return this.ej2Instances.expandResource(resourceId, name);
501
- };
502
- ScheduleComponent.prototype.exportToExcel = function (excelExportOptions) {
503
- return this.ej2Instances.exportToExcel(excelExportOptions);
504
- };
505
- ScheduleComponent.prototype.exportToICalendar = function (fileName, customData) {
506
- return this.ej2Instances.exportToICalendar(fileName, customData);
507
- };
508
- ScheduleComponent.prototype.getBlockEvents = function (startDate, endDate, includeOccurrences) {
509
- return this.ej2Instances.getBlockEvents(startDate, endDate, includeOccurrences);
510
- };
511
- ScheduleComponent.prototype.getCellDetails = function (tdCol) {
512
- return this.ej2Instances.getCellDetails(tdCol);
513
- };
514
- ScheduleComponent.prototype.getCurrentViewDates = function () {
515
- return this.ej2Instances.getCurrentViewDates();
516
- };
517
- ScheduleComponent.prototype.getCurrentViewEvents = function () {
518
- return this.ej2Instances.getCurrentViewEvents();
519
- };
520
- ScheduleComponent.prototype.getCurrentViewIndex = function () {
521
- return this.ej2Instances.getCurrentViewIndex();
522
- };
523
- ScheduleComponent.prototype.getDeletedOccurrences = function (recurrenceData) {
524
- return this.ej2Instances.getDeletedOccurrences(recurrenceData);
525
- };
526
- ScheduleComponent.prototype.getEventDetails = function (element) {
527
- return this.ej2Instances.getEventDetails(element);
528
- };
529
- ScheduleComponent.prototype.getEventMaxID = function () {
530
- return this.ej2Instances.getEventMaxID();
531
- };
532
- ScheduleComponent.prototype.getEvents = function (startDate, endDate, includeOccurrences) {
533
- return this.ej2Instances.getEvents(startDate, endDate, includeOccurrences);
534
- };
535
- ScheduleComponent.prototype.getIndexFromResourceId = function (id, name) {
536
- return this.ej2Instances.getIndexFromResourceId(id, name);
537
- };
538
- ScheduleComponent.prototype.getOccurrencesByID = function (eventID) {
539
- return this.ej2Instances.getOccurrencesByID(eventID);
540
- };
541
- ScheduleComponent.prototype.getOccurrencesByRange = function (startTime, endTime) {
542
- return this.ej2Instances.getOccurrencesByRange(startTime, endTime);
543
- };
544
- ScheduleComponent.prototype.getResourceCollections = function () {
545
- return this.ej2Instances.getResourceCollections();
546
- };
547
- ScheduleComponent.prototype.getResourcesByIndex = function (index) {
548
- return this.ej2Instances.getResourcesByIndex(index);
549
- };
550
- ScheduleComponent.prototype.getSelectedElements = function () {
551
- return this.ej2Instances.getSelectedElements();
552
- };
553
- ScheduleComponent.prototype.hideSpinner = function () {
554
- return this.ej2Instances.hideSpinner();
555
- };
556
- ScheduleComponent.prototype.importICalendar = function (fileContent) {
557
- return this.ej2Instances.importICalendar(fileContent);
558
- };
559
- ScheduleComponent.prototype.isSlotAvailable = function (startTime, endTime, groupIndex) {
560
- return this.ej2Instances.isSlotAvailable(startTime, endTime, groupIndex);
561
- };
562
- ScheduleComponent.prototype.openEditor = function (data, action, isEventData, repeatType) {
563
- return this.ej2Instances.openEditor(data, action, isEventData, repeatType);
564
- };
565
- ScheduleComponent.prototype.openQuickInfoPopup = function (data) {
566
- return this.ej2Instances.openQuickInfoPopup(data);
567
- };
568
- ScheduleComponent.prototype.print = function (printOptions) {
569
- return this.ej2Instances.print(printOptions);
570
- };
571
- ScheduleComponent.prototype.refreshEvents = function (isRemoteRefresh) {
572
- return this.ej2Instances.refreshEvents(isRemoteRefresh);
573
- };
574
- ScheduleComponent.prototype.refreshLayout = function () {
575
- return this.ej2Instances.refreshLayout();
576
- };
577
- ScheduleComponent.prototype.refreshTemplates = function (templateName) {
578
- return this.ej2Instances.refreshTemplates(templateName);
579
- };
580
- ScheduleComponent.prototype.removeResource = function (resourceId, name) {
581
- return this.ej2Instances.removeResource(resourceId, name);
582
- };
583
- ScheduleComponent.prototype.resetWorkHours = function (dates, start, end, groupIndex) {
584
- return this.ej2Instances.resetWorkHours(dates, start, end, groupIndex);
585
- };
586
- ScheduleComponent.prototype.saveEvent = function (data, currentAction) {
587
- return this.ej2Instances.saveEvent(data, currentAction);
588
- };
589
- ScheduleComponent.prototype.scrollTo = function (hour, scrollDate) {
590
- return this.ej2Instances.scrollTo(hour, scrollDate);
591
- };
592
- ScheduleComponent.prototype.scrollToResource = function (resourceId, groupName) {
593
- return this.ej2Instances.scrollToResource(resourceId, groupName);
594
- };
595
- ScheduleComponent.prototype.selectResourceByIndex = function (groupIndex) {
596
- return this.ej2Instances.selectResourceByIndex(groupIndex);
597
- };
598
- ScheduleComponent.prototype.setRecurrenceEditor = function (recurrenceEditor) {
599
- return this.ej2Instances.setRecurrenceEditor(recurrenceEditor);
600
- };
601
- ScheduleComponent.prototype.setResourceCollections = function (resourceCol) {
602
- return this.ej2Instances.setResourceCollections(resourceCol);
603
- };
604
- ScheduleComponent.prototype.setWorkHours = function (dates, start, end, groupIndex) {
605
- return this.ej2Instances.setWorkHours(dates, start, end, groupIndex);
606
- };
607
- ScheduleComponent.prototype.showSpinner = function () {
608
- return this.ej2Instances.showSpinner();
609
- };
610
- ScheduleComponent = __decorate$3([
611
- EJComponentDecorator({
612
- props: properties,
613
- model: {
614
- event: 'modelchanged'
615
- }
616
- }, isExecute)
617
- ,Options({
618
- props: props,
619
- watch: watch,
620
- emits: emitProbs,
621
- provide: function provide() {
622
- return {
623
- custom: this.custom
624
- };
321
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
322
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
625
323
  }
626
- })
627
- ], ScheduleComponent);
628
- return ScheduleComponent;
629
- }(ComponentBase));
324
+ },
325
+ custom: function () {
326
+ this.updated();
327
+ },
328
+ addEvent: function (data) {
329
+ return this.ej2Instances.addEvent(data);
330
+ },
331
+ addResource: function (resources, name, index) {
332
+ return this.ej2Instances.addResource(resources, name, index);
333
+ },
334
+ changeCurrentView: function (viewName, viewIndex) {
335
+ return this.ej2Instances.changeCurrentView(viewName, viewIndex);
336
+ },
337
+ closeEditor: function () {
338
+ return this.ej2Instances.closeEditor();
339
+ },
340
+ closeQuickInfoPopup: function () {
341
+ return this.ej2Instances.closeQuickInfoPopup();
342
+ },
343
+ closeTooltip: function () {
344
+ return this.ej2Instances.closeTooltip();
345
+ },
346
+ collapseResource: function (resourceId, name) {
347
+ return this.ej2Instances.collapseResource(resourceId, name);
348
+ },
349
+ deleteEvent: function (id, currentAction) {
350
+ return this.ej2Instances.deleteEvent(id, currentAction);
351
+ },
352
+ expandResource: function (resourceId, name) {
353
+ return this.ej2Instances.expandResource(resourceId, name);
354
+ },
355
+ exportToExcel: function (excelExportOptions) {
356
+ return this.ej2Instances.exportToExcel(excelExportOptions);
357
+ },
358
+ exportToICalendar: function (fileName, customData) {
359
+ return this.ej2Instances.exportToICalendar(fileName, customData);
360
+ },
361
+ generateEventOccurrences: function (event, startDate) {
362
+ return this.ej2Instances.generateEventOccurrences(event, startDate);
363
+ },
364
+ getBlockEvents: function (startDate, endDate, includeOccurrences) {
365
+ return this.ej2Instances.getBlockEvents(startDate, endDate, includeOccurrences);
366
+ },
367
+ getCellDetails: function (tdCol) {
368
+ return this.ej2Instances.getCellDetails(tdCol);
369
+ },
370
+ getCurrentViewDates: function () {
371
+ return this.ej2Instances.getCurrentViewDates();
372
+ },
373
+ getCurrentViewEvents: function () {
374
+ return this.ej2Instances.getCurrentViewEvents();
375
+ },
376
+ getCurrentViewIndex: function () {
377
+ return this.ej2Instances.getCurrentViewIndex();
378
+ },
379
+ getDeletedOccurrences: function (recurrenceData) {
380
+ return this.ej2Instances.getDeletedOccurrences(recurrenceData);
381
+ },
382
+ getEventDetails: function (element) {
383
+ return this.ej2Instances.getEventDetails(element);
384
+ },
385
+ getEventMaxID: function () {
386
+ return this.ej2Instances.getEventMaxID();
387
+ },
388
+ getEvents: function (startDate, endDate, includeOccurrences) {
389
+ return this.ej2Instances.getEvents(startDate, endDate, includeOccurrences);
390
+ },
391
+ getIndexFromResourceId: function (id, name) {
392
+ return this.ej2Instances.getIndexFromResourceId(id, name);
393
+ },
394
+ getOccurrencesByID: function (eventID) {
395
+ return this.ej2Instances.getOccurrencesByID(eventID);
396
+ },
397
+ getOccurrencesByRange: function (startTime, endTime) {
398
+ return this.ej2Instances.getOccurrencesByRange(startTime, endTime);
399
+ },
400
+ getResourceCollections: function () {
401
+ return this.ej2Instances.getResourceCollections();
402
+ },
403
+ getResourcesByIndex: function (index) {
404
+ return this.ej2Instances.getResourcesByIndex(index);
405
+ },
406
+ getSelectedElements: function () {
407
+ return this.ej2Instances.getSelectedElements();
408
+ },
409
+ hideSpinner: function () {
410
+ return this.ej2Instances.hideSpinner();
411
+ },
412
+ importICalendar: function (fileContent) {
413
+ return this.ej2Instances.importICalendar(fileContent);
414
+ },
415
+ isSlotAvailable: function (startTime, endTime, groupIndex) {
416
+ return this.ej2Instances.isSlotAvailable(startTime, endTime, groupIndex);
417
+ },
418
+ openEditor: function (data, action, isEventData, repeatType) {
419
+ return this.ej2Instances.openEditor(data, action, isEventData, repeatType);
420
+ },
421
+ openQuickInfoPopup: function (data) {
422
+ return this.ej2Instances.openQuickInfoPopup(data);
423
+ },
424
+ print: function (printOptions) {
425
+ return this.ej2Instances.print(printOptions);
426
+ },
427
+ refreshEvents: function (isRemoteRefresh) {
428
+ return this.ej2Instances.refreshEvents(isRemoteRefresh);
429
+ },
430
+ refreshLayout: function () {
431
+ return this.ej2Instances.refreshLayout();
432
+ },
433
+ refreshTemplates: function (templateName) {
434
+ return this.ej2Instances.refreshTemplates(templateName);
435
+ },
436
+ removeResource: function (resourceId, name) {
437
+ return this.ej2Instances.removeResource(resourceId, name);
438
+ },
439
+ resetWorkHours: function (dates, start, end, groupIndex) {
440
+ return this.ej2Instances.resetWorkHours(dates, start, end, groupIndex);
441
+ },
442
+ saveEvent: function (data, currentAction) {
443
+ return this.ej2Instances.saveEvent(data, currentAction);
444
+ },
445
+ scrollTo: function (hour, scrollDate) {
446
+ return this.ej2Instances.scrollTo(hour, scrollDate);
447
+ },
448
+ scrollToResource: function (resourceId, groupName) {
449
+ return this.ej2Instances.scrollToResource(resourceId, groupName);
450
+ },
451
+ selectResourceByIndex: function (groupIndex) {
452
+ return this.ej2Instances.selectResourceByIndex(groupIndex);
453
+ },
454
+ setRecurrenceEditor: function (recurrenceEditor) {
455
+ return this.ej2Instances.setRecurrenceEditor(recurrenceEditor);
456
+ },
457
+ setResourceCollections: function (resourceCol) {
458
+ return this.ej2Instances.setResourceCollections(resourceCol);
459
+ },
460
+ setWorkHours: function (dates, start, end, groupIndex) {
461
+ return this.ej2Instances.setWorkHours(dates, start, end, groupIndex);
462
+ },
463
+ showSpinner: function () {
464
+ return this.ej2Instances.showSpinner();
465
+ },
466
+ }
467
+ });
630
468
  var SchedulePlugin = {
631
469
  name: 'ejs-schedule',
632
- install: function (Vue$$1) {
633
- Vue$$1.component(SchedulePlugin.name, ScheduleComponent);
634
- Vue$$1.component(ViewPlugin.name, ViewDirective);
635
- Vue$$1.component(ViewsPlugin.name, ViewsDirective);
636
- Vue$$1.component(ResourcePlugin.name, ResourceDirective);
637
- Vue$$1.component(ResourcesPlugin.name, ResourcesDirective);
638
- Vue$$1.component(HeaderRowPlugin.name, HeaderRowDirective);
639
- Vue$$1.component(HeaderRowsPlugin.name, HeaderRowsDirective);
470
+ install: function (Vue) {
471
+ Vue.component(SchedulePlugin.name, ScheduleComponent);
472
+ Vue.component(ViewPlugin.name, ViewDirective);
473
+ Vue.component(ViewsPlugin.name, ViewsDirective);
474
+ Vue.component(ResourcePlugin.name, ResourceDirective);
475
+ Vue.component(ResourcesPlugin.name, ResourcesDirective);
476
+ Vue.component(HeaderRowPlugin.name, HeaderRowDirective);
477
+ Vue.component(HeaderRowsPlugin.name, HeaderRowsDirective);
640
478
  }
641
479
  };
642
480
 
643
- var __extends$4 = (undefined && undefined.__extends) || (function () {
644
- var extendStatics = function (d, b) {
645
- extendStatics = Object.setPrototypeOf ||
646
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
647
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
648
- return extendStatics(d, b);
649
- };
650
- return function (d, b) {
651
- extendStatics(d, b);
652
- function __() { this.constructor = d; }
653
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
654
- };
655
- })();
656
- var __decorate$4 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
657
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
658
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
659
- 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;
660
- return c > 3 && r && Object.defineProperty(target, key, r), r;
661
- };
662
- // {{VueImport}}
663
481
  var properties$1 = ['isLazyUpdate', 'plugins', 'calendarMode', 'cssClass', 'dateFormat', 'enablePersistence', 'enableRtl', 'firstDayOfWeek', 'frequencies', 'locale', 'maxDate', 'minDate', 'selectedType', 'startDate', 'value', 'change'];
664
482
  var modelProps$1 = [];
665
483
  var testProp$1 = getProps({ props: properties$1 });
@@ -677,123 +495,117 @@ for (var _i$1 = 0, modelProps_1$1 = modelProps$1; _i$1 < modelProps_1$1.length;
677
495
  * <ejs-recurrenceeditor></ejs-recurrenceeditor>
678
496
  * ```
679
497
  */
680
- var RecurrenceEditorComponent = /** @__PURE__ @class */ (function (_super) {
681
- __extends$4(RecurrenceEditorComponent, _super);
682
- function RecurrenceEditorComponent() {
683
- var _this = _super.call(this, arguments) || this;
684
- _this.propKeys = properties$1;
685
- _this.models = modelProps$1;
686
- _this.hasChildDirective = false;
687
- _this.hasInjectedModules = false;
688
- _this.tagMapper = {};
689
- _this.tagNameMapper = {};
690
- _this.isVue3 = !isExecute;
691
- _this.ej2Instances = new RecurrenceEditor({});
692
- _this.bindProperties();
693
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
694
- _this.ej2Instances.setProperties = _this.setProperties;
695
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
696
- _this.updated = _this.updated;
697
- return _this;
698
- }
699
- RecurrenceEditorComponent.prototype.clearTemplate = function (templateNames) {
700
- if (!templateNames) {
701
- templateNames = Object.keys(this.templateCollection || {});
498
+ var RecurrenceEditorComponent = vueDefineComponent({
499
+ name: 'RecurrenceEditorComponent',
500
+ mixins: [ComponentBase],
501
+ props: props$1,
502
+ watch: watch$1,
503
+ emits: emitProbs$1,
504
+ provide: function () { return { custom: this.custom }; },
505
+ data: function () {
506
+ return {
507
+ ej2Instances: new RecurrenceEditor({}),
508
+ propKeys: properties$1,
509
+ models: modelProps$1,
510
+ hasChildDirective: false,
511
+ hasInjectedModules: false,
512
+ tagMapper: {},
513
+ tagNameMapper: {},
514
+ isVue3: !isExecute,
515
+ templateCollection: {},
516
+ };
517
+ },
518
+ created: function () {
519
+ this.bindProperties();
520
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
521
+ this.ej2Instances.setProperties = this.setProperties;
522
+ this.ej2Instances.clearTemplate = this.clearTemplate;
523
+ this.updated = this.updated;
524
+ },
525
+ render: function (createElement) {
526
+ var h = !isExecute ? gh : createElement;
527
+ var slots = null;
528
+ if (!isNullOrUndefined(this.$slots.default)) {
529
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
702
530
  }
703
- if (templateNames.length && this.templateCollection) {
704
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
705
- var tempName = templateNames_1[_i];
706
- var elementCollection = this.templateCollection[tempName];
707
- if (elementCollection && elementCollection.length) {
708
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
709
- var ele = elementCollection_1[_a];
710
- var destroy = getValue('__vue__.$destroy', ele);
711
- if (destroy) {
712
- ele.__vue__.$destroy();
713
- }
714
- if (ele.innerHTML) {
715
- ele.innerHTML = '';
531
+ return h('div', slots);
532
+ },
533
+ methods: {
534
+ clearTemplate: function (templateNames) {
535
+ if (!templateNames) {
536
+ templateNames = Object.keys(this.templateCollection || {});
537
+ }
538
+ if (templateNames.length && this.templateCollection) {
539
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
540
+ var tempName = templateNames_1[_i];
541
+ var elementCollection = this.templateCollection[tempName];
542
+ if (elementCollection && elementCollection.length) {
543
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
544
+ var ele = elementCollection_1[_a];
545
+ var destroy = getValue('__vue__.$destroy', ele);
546
+ if (destroy) {
547
+ ele.__vue__.$destroy();
548
+ }
549
+ if (ele.innerHTML) {
550
+ ele.innerHTML = '';
551
+ }
716
552
  }
553
+ delete this.templateCollection[tempName];
717
554
  }
718
- delete this.templateCollection[tempName];
719
555
  }
720
556
  }
721
- }
722
- };
723
- RecurrenceEditorComponent.prototype.setProperties = function (prop, muteOnChange) {
724
- var _this = this;
725
- if (this.isVue3) {
726
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
727
- }
728
- if (this.ej2Instances && this.ej2Instances._setProperties) {
729
- this.ej2Instances._setProperties(prop, muteOnChange);
730
- }
731
- if (prop && this.models && this.models.length) {
732
- Object.keys(prop).map(function (key) {
733
- _this.models.map(function (model) {
734
- if ((key === model) && !(/datasource/i.test(key))) {
735
- if (_this.isVue3) {
736
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
737
- }
738
- else {
739
- _this.$emit('update:' + key, prop[key]);
740
- _this.$emit('modelchanged', prop[key]);
557
+ },
558
+ setProperties: function (prop, muteOnChange) {
559
+ var _this = this;
560
+ if (this.isVue3) {
561
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
562
+ }
563
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
564
+ this.ej2Instances._setProperties(prop, muteOnChange);
565
+ }
566
+ if (prop && this.models && this.models.length) {
567
+ Object.keys(prop).map(function (key) {
568
+ _this.models.map(function (model) {
569
+ if ((key === model) && !(/datasource/i.test(key))) {
570
+ if (_this.isVue3) {
571
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
572
+ }
573
+ else {
574
+ _this.$emit('update:' + key, prop[key]);
575
+ _this.$emit('modelchanged', prop[key]);
576
+ }
741
577
  }
742
- }
578
+ });
743
579
  });
744
- });
745
- }
746
- };
747
- RecurrenceEditorComponent.prototype.render = function (createElement) {
748
- var h = !isExecute ? gh : createElement;
749
- var slots = null;
750
- if (!isNullOrUndefined(this.$slots.default)) {
751
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
752
- }
753
- return h('div', slots);
754
- };
755
- RecurrenceEditorComponent.prototype.custom = function () {
756
- this.updated();
757
- };
758
- RecurrenceEditorComponent.prototype.getRecurrenceDates = function (startDate, rule, excludeDate, maximumCount, viewDate) {
759
- return this.ej2Instances.getRecurrenceDates(startDate, rule, excludeDate, maximumCount, viewDate);
760
- };
761
- RecurrenceEditorComponent.prototype.getRecurrenceRule = function () {
762
- return this.ej2Instances.getRecurrenceRule();
763
- };
764
- RecurrenceEditorComponent.prototype.getRuleSummary = function (rule) {
765
- return this.ej2Instances.getRuleSummary(rule);
766
- };
767
- RecurrenceEditorComponent.prototype.resetFields = function () {
768
- return this.ej2Instances.resetFields();
769
- };
770
- RecurrenceEditorComponent.prototype.setRecurrenceRule = function (rule, startDate) {
771
- return this.ej2Instances.setRecurrenceRule(rule, startDate);
772
- };
773
- RecurrenceEditorComponent.prototype.updateRuleUntilDate = function (startDate) {
774
- return this.ej2Instances.updateRuleUntilDate(startDate);
775
- };
776
- RecurrenceEditorComponent = __decorate$4([
777
- EJComponentDecorator({
778
- props: properties$1
779
- }, isExecute)
780
- ,Options({
781
- props: props,
782
- watch: watch,
783
- emits: emitProbs,
784
- provide: function provide() {
785
- return {
786
- custom: this.custom
787
- };
788
580
  }
789
- })
790
- ], RecurrenceEditorComponent);
791
- return RecurrenceEditorComponent;
792
- }(ComponentBase));
581
+ },
582
+ custom: function () {
583
+ this.updated();
584
+ },
585
+ getRecurrenceDates: function (startDate, rule, excludeDate, maximumCount, viewDate) {
586
+ return this.ej2Instances.getRecurrenceDates(startDate, rule, excludeDate, maximumCount, viewDate);
587
+ },
588
+ getRecurrenceRule: function () {
589
+ return this.ej2Instances.getRecurrenceRule();
590
+ },
591
+ getRuleSummary: function (rule) {
592
+ return this.ej2Instances.getRuleSummary(rule);
593
+ },
594
+ resetFields: function () {
595
+ return this.ej2Instances.resetFields();
596
+ },
597
+ setRecurrenceRule: function (rule, startDate) {
598
+ return this.ej2Instances.setRecurrenceRule(rule, startDate);
599
+ },
600
+ updateRuleUntilDate: function (startDate) {
601
+ return this.ej2Instances.updateRuleUntilDate(startDate);
602
+ },
603
+ }
604
+ });
793
605
  var RecurrenceEditorPlugin = {
794
606
  name: 'ejs-recurrenceeditor',
795
- install: function (Vue$$1) {
796
- Vue$$1.component(RecurrenceEditorPlugin.name, RecurrenceEditorComponent);
607
+ install: function (Vue) {
608
+ Vue.component(RecurrenceEditorPlugin.name, RecurrenceEditorComponent);
797
609
  }
798
610
  };
799
611