@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,36 +1,14 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- 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;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- import { isUndefined } from '@syncfusion/ej2-base';
21
- import { ComponentBase, EJComponentDecorator, getProps, gh, isExecute } from '@syncfusion/ej2-vue-base';
1
+ import { ComponentBase, gh, getProps, isExecute, vueDefineComponent } from '@syncfusion/ej2-vue-base';
22
2
  import { isNullOrUndefined, getValue } from '@syncfusion/ej2-base';
3
+ import { isUndefined } from '@syncfusion/ej2-base';
23
4
  import { Schedule } from '@syncfusion/ej2-schedule';
24
5
  import { ViewsDirective, ViewDirective, ViewsPlugin, ViewPlugin } from './views.directive';
25
6
  import { ResourcesDirective, ResourceDirective, ResourcesPlugin, ResourcePlugin } from './resources.directive';
26
7
  import { HeaderRowsDirective, HeaderRowDirective, HeaderRowsPlugin, HeaderRowPlugin } from './headerrows.directive';
27
- import { Options } from 'vue-class-component';
28
- export 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'];
8
+ export 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'];
29
9
  export var modelProps = ['currentView', 'selectedDate'];
30
10
  export var testProp = getProps({ props: properties });
31
- export var props = testProp[0];
32
- export var watch = testProp[1];
33
- export var emitProbs = Object.keys(watch);
11
+ export var props = testProp[0], watch = testProp[1], emitProbs = Object.keys(watch);
34
12
  emitProbs.push('modelchanged', 'update:modelValue');
35
13
  for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
36
14
  var props_1 = modelProps_1[_i];
@@ -42,281 +20,275 @@ for (var _i = 0, modelProps_1 = modelProps; _i < modelProps_1.length; _i++) {
42
20
  * <ejs-schedule></ejs-schedule>
43
21
  * ```
44
22
  */
45
- var ScheduleComponent = /** @class */ (function (_super) {
46
- __extends(ScheduleComponent, _super);
47
- function ScheduleComponent() {
48
- var _this = _super.call(this, arguments) || this;
49
- _this.propKeys = properties;
50
- _this.models = modelProps;
51
- _this.hasChildDirective = true;
52
- _this.hasInjectedModules = true;
53
- _this.tagMapper = { "e-views": "e-view", "e-resources": "e-resource", "e-header-rows": "e-header-row" };
54
- _this.tagNameMapper = { "e-header-rows": "e-headerRows" };
55
- _this.isVue3 = !isExecute;
56
- _this.ej2Instances = new Schedule({});
57
- _this.ej2Instances._trigger = _this.ej2Instances.trigger;
58
- _this.ej2Instances.trigger = _this.trigger;
59
- _this.bindProperties();
60
- _this.ej2Instances._setProperties = _this.ej2Instances.setProperties;
61
- _this.ej2Instances.setProperties = _this.setProperties;
62
- _this.ej2Instances.clearTemplate = _this.clearTemplate;
63
- _this.updated = _this.updated;
64
- return _this;
65
- }
66
- ScheduleComponent.prototype.clearTemplate = function (templateNames) {
67
- if (!templateNames) {
68
- templateNames = Object.keys(this.templateCollection || {});
23
+ export var ScheduleComponent = vueDefineComponent({
24
+ name: 'ScheduleComponent',
25
+ mixins: [ComponentBase],
26
+ props: props,
27
+ watch: watch,
28
+ emits: emitProbs,
29
+ model: { event: 'modelchanged' },
30
+ provide: function () { return { custom: this.custom }; },
31
+ data: function () {
32
+ return {
33
+ ej2Instances: new Schedule({}),
34
+ propKeys: properties,
35
+ models: modelProps,
36
+ hasChildDirective: true,
37
+ hasInjectedModules: true,
38
+ tagMapper: { "e-views": "e-view", "e-resources": "e-resource", "e-header-rows": "e-header-row" },
39
+ tagNameMapper: { "e-header-rows": "e-headerRows" },
40
+ isVue3: !isExecute,
41
+ templateCollection: {},
42
+ };
43
+ },
44
+ created: function () {
45
+ this.ej2Instances._trigger = this.ej2Instances.trigger;
46
+ this.ej2Instances.trigger = this.trigger;
47
+ this.bindProperties();
48
+ this.ej2Instances._setProperties = this.ej2Instances.setProperties;
49
+ this.ej2Instances.setProperties = this.setProperties;
50
+ this.ej2Instances.clearTemplate = this.clearTemplate;
51
+ this.updated = this.updated;
52
+ },
53
+ render: function (createElement) {
54
+ var h = !isExecute ? gh : createElement;
55
+ var slots = null;
56
+ if (!isNullOrUndefined(this.$slots.default)) {
57
+ slots = !isExecute ? this.$slots.default() : this.$slots.default;
69
58
  }
70
- if (templateNames.length && this.templateCollection) {
71
- for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
72
- var tempName = templateNames_1[_i];
73
- var elementCollection = this.templateCollection[tempName];
74
- if (elementCollection && elementCollection.length) {
75
- for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
76
- var ele = elementCollection_1[_a];
77
- var destroy = getValue('__vue__.$destroy', ele);
78
- if (destroy) {
79
- ele.__vue__.$destroy();
80
- }
81
- if (ele.innerHTML) {
82
- ele.innerHTML = '';
59
+ return h('div', slots);
60
+ },
61
+ methods: {
62
+ clearTemplate: function (templateNames) {
63
+ if (!templateNames) {
64
+ templateNames = Object.keys(this.templateCollection || {});
65
+ }
66
+ if (templateNames.length && this.templateCollection) {
67
+ for (var _i = 0, templateNames_1 = templateNames; _i < templateNames_1.length; _i++) {
68
+ var tempName = templateNames_1[_i];
69
+ var elementCollection = this.templateCollection[tempName];
70
+ if (elementCollection && elementCollection.length) {
71
+ for (var _a = 0, elementCollection_1 = elementCollection; _a < elementCollection_1.length; _a++) {
72
+ var ele = elementCollection_1[_a];
73
+ var destroy = getValue('__vue__.$destroy', ele);
74
+ if (destroy) {
75
+ ele.__vue__.$destroy();
76
+ }
77
+ if (ele.innerHTML) {
78
+ ele.innerHTML = '';
79
+ }
83
80
  }
81
+ delete this.templateCollection[tempName];
84
82
  }
85
- delete this.templateCollection[tempName];
86
83
  }
87
84
  }
88
- }
89
- };
90
- ScheduleComponent.prototype.setProperties = function (prop, muteOnChange) {
91
- var _this = this;
92
- if (this.isVue3) {
93
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
94
- }
95
- if (this.ej2Instances && this.ej2Instances._setProperties) {
96
- this.ej2Instances._setProperties(prop, muteOnChange);
97
- }
98
- if (prop && this.models && this.models.length) {
99
- Object.keys(prop).map(function (key) {
100
- _this.models.map(function (model) {
101
- if ((key === model) && !(/datasource/i.test(key))) {
102
- if (_this.isVue3) {
103
- _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
85
+ },
86
+ setProperties: function (prop, muteOnChange) {
87
+ var _this = this;
88
+ if (this.isVue3) {
89
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
90
+ }
91
+ if (this.ej2Instances && this.ej2Instances._setProperties) {
92
+ this.ej2Instances._setProperties(prop, muteOnChange);
93
+ }
94
+ if (prop && this.models && this.models.length) {
95
+ Object.keys(prop).map(function (key) {
96
+ _this.models.map(function (model) {
97
+ if ((key === model) && !(/datasource/i.test(key))) {
98
+ if (_this.isVue3) {
99
+ _this.ej2Instances.vueInstance.$emit('update:' + key, prop[key]);
100
+ }
101
+ else {
102
+ _this.$emit('update:' + key, prop[key]);
103
+ _this.$emit('modelchanged', prop[key]);
104
+ }
104
105
  }
105
- else {
106
- _this.$emit('update:' + key, prop[key]);
107
- _this.$emit('modelchanged', prop[key]);
106
+ });
107
+ });
108
+ }
109
+ },
110
+ trigger: function (eventName, eventProp, successHandler) {
111
+ if (!isExecute) {
112
+ this.models = !this.models ? this.ej2Instances.referModels : this.models;
113
+ }
114
+ if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
115
+ var key = this.models.toString().match(/checked|value/) || [];
116
+ var propKey = key[0];
117
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
118
+ if (!isExecute) {
119
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
120
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
121
+ this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
122
+ }
123
+ else {
124
+ if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
125
+ this.$emit('update:' + propKey, eventProp[propKey]);
126
+ this.$emit('modelchanged', eventProp[propKey]);
108
127
  }
109
128
  }
110
- });
111
- });
112
- }
113
- };
114
- ScheduleComponent.prototype.trigger = function (eventName, eventProp, successHandler) {
115
- if (!isExecute) {
116
- this.models = !this.models ? this.ej2Instances.referModels : this.models;
117
- }
118
- if ((eventName === 'change' || eventName === 'input') && this.models && (this.models.length !== 0)) {
119
- var key = this.models.toString().match(/checked|value/) || [];
120
- var propKey = key[0];
121
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
122
- if (!isExecute) {
123
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
124
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
125
- this.ej2Instances.vueInstance.$emit('update:modelValue', eventProp[propKey]);
126
129
  }
127
- else {
128
- if (eventName === 'change' || (this.$props && !this.$props.isLazyUpdate)) {
130
+ }
131
+ else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
132
+ var key = this.models.toString().match(/currentView|selectedDate/) || [];
133
+ var propKey = key[0];
134
+ if (eventProp && key && !isUndefined(eventProp[propKey])) {
135
+ if (!isExecute) {
136
+ this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
137
+ this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
138
+ }
139
+ else {
129
140
  this.$emit('update:' + propKey, eventProp[propKey]);
130
141
  this.$emit('modelchanged', eventProp[propKey]);
131
142
  }
132
143
  }
133
144
  }
134
- }
135
- else if ((eventName === 'actionBegin' && eventProp.requestType === 'dateNavigate') && this.models && (this.models.length !== 0)) {
136
- var key = this.models.toString().match(/currentView|selectedDate/) || [];
137
- var propKey = key[0];
138
- if (eventProp && key && !isUndefined(eventProp[propKey])) {
139
- if (!isExecute) {
140
- this.ej2Instances.vueInstance.$emit('update:' + propKey, eventProp[propKey]);
141
- this.ej2Instances.vueInstance.$emit('modelchanged', eventProp[propKey]);
142
- }
143
- else {
144
- this.$emit('update:' + propKey, eventProp[propKey]);
145
- this.$emit('modelchanged', eventProp[propKey]);
146
- }
145
+ if ((this.ej2Instances && this.ej2Instances._trigger)) {
146
+ this.ej2Instances._trigger(eventName, eventProp, successHandler);
147
147
  }
148
- }
149
- if ((this.ej2Instances && this.ej2Instances._trigger)) {
150
- this.ej2Instances._trigger(eventName, eventProp, successHandler);
151
- }
152
- };
153
- ScheduleComponent.prototype.render = function (createElement) {
154
- var h = !isExecute ? gh : createElement;
155
- var slots = null;
156
- if (!isNullOrUndefined(this.$slots.default)) {
157
- slots = !isExecute ? this.$slots.default() : this.$slots.default;
158
- }
159
- return h('div', slots);
160
- };
161
- ScheduleComponent.prototype.custom = function () {
162
- this.updated();
163
- };
164
- ScheduleComponent.prototype.addEvent = function (data) {
165
- return this.ej2Instances.addEvent(data);
166
- };
167
- ScheduleComponent.prototype.addResource = function (resources, name, index) {
168
- return this.ej2Instances.addResource(resources, name, index);
169
- };
170
- ScheduleComponent.prototype.changeCurrentView = function (viewName, viewIndex) {
171
- return this.ej2Instances.changeCurrentView(viewName, viewIndex);
172
- };
173
- ScheduleComponent.prototype.closeEditor = function () {
174
- return this.ej2Instances.closeEditor();
175
- };
176
- ScheduleComponent.prototype.closeQuickInfoPopup = function () {
177
- return this.ej2Instances.closeQuickInfoPopup();
178
- };
179
- ScheduleComponent.prototype.closeTooltip = function () {
180
- return this.ej2Instances.closeTooltip();
181
- };
182
- ScheduleComponent.prototype.collapseResource = function (resourceId, name) {
183
- return this.ej2Instances.collapseResource(resourceId, name);
184
- };
185
- ScheduleComponent.prototype.deleteEvent = function (id, currentAction) {
186
- return this.ej2Instances.deleteEvent(id, currentAction);
187
- };
188
- ScheduleComponent.prototype.expandResource = function (resourceId, name) {
189
- return this.ej2Instances.expandResource(resourceId, name);
190
- };
191
- ScheduleComponent.prototype.exportToExcel = function (excelExportOptions) {
192
- return this.ej2Instances.exportToExcel(excelExportOptions);
193
- };
194
- ScheduleComponent.prototype.exportToICalendar = function (fileName, customData) {
195
- return this.ej2Instances.exportToICalendar(fileName, customData);
196
- };
197
- ScheduleComponent.prototype.getBlockEvents = function (startDate, endDate, includeOccurrences) {
198
- return this.ej2Instances.getBlockEvents(startDate, endDate, includeOccurrences);
199
- };
200
- ScheduleComponent.prototype.getCellDetails = function (tdCol) {
201
- return this.ej2Instances.getCellDetails(tdCol);
202
- };
203
- ScheduleComponent.prototype.getCurrentViewDates = function () {
204
- return this.ej2Instances.getCurrentViewDates();
205
- };
206
- ScheduleComponent.prototype.getCurrentViewEvents = function () {
207
- return this.ej2Instances.getCurrentViewEvents();
208
- };
209
- ScheduleComponent.prototype.getCurrentViewIndex = function () {
210
- return this.ej2Instances.getCurrentViewIndex();
211
- };
212
- ScheduleComponent.prototype.getDeletedOccurrences = function (recurrenceData) {
213
- return this.ej2Instances.getDeletedOccurrences(recurrenceData);
214
- };
215
- ScheduleComponent.prototype.getEventDetails = function (element) {
216
- return this.ej2Instances.getEventDetails(element);
217
- };
218
- ScheduleComponent.prototype.getEventMaxID = function () {
219
- return this.ej2Instances.getEventMaxID();
220
- };
221
- ScheduleComponent.prototype.getEvents = function (startDate, endDate, includeOccurrences) {
222
- return this.ej2Instances.getEvents(startDate, endDate, includeOccurrences);
223
- };
224
- ScheduleComponent.prototype.getIndexFromResourceId = function (id, name) {
225
- return this.ej2Instances.getIndexFromResourceId(id, name);
226
- };
227
- ScheduleComponent.prototype.getOccurrencesByID = function (eventID) {
228
- return this.ej2Instances.getOccurrencesByID(eventID);
229
- };
230
- ScheduleComponent.prototype.getOccurrencesByRange = function (startTime, endTime) {
231
- return this.ej2Instances.getOccurrencesByRange(startTime, endTime);
232
- };
233
- ScheduleComponent.prototype.getResourceCollections = function () {
234
- return this.ej2Instances.getResourceCollections();
235
- };
236
- ScheduleComponent.prototype.getResourcesByIndex = function (index) {
237
- return this.ej2Instances.getResourcesByIndex(index);
238
- };
239
- ScheduleComponent.prototype.getSelectedElements = function () {
240
- return this.ej2Instances.getSelectedElements();
241
- };
242
- ScheduleComponent.prototype.hideSpinner = function () {
243
- return this.ej2Instances.hideSpinner();
244
- };
245
- ScheduleComponent.prototype.importICalendar = function (fileContent) {
246
- return this.ej2Instances.importICalendar(fileContent);
247
- };
248
- ScheduleComponent.prototype.isSlotAvailable = function (startTime, endTime, groupIndex) {
249
- return this.ej2Instances.isSlotAvailable(startTime, endTime, groupIndex);
250
- };
251
- ScheduleComponent.prototype.openEditor = function (data, action, isEventData, repeatType) {
252
- return this.ej2Instances.openEditor(data, action, isEventData, repeatType);
253
- };
254
- ScheduleComponent.prototype.openQuickInfoPopup = function (data) {
255
- return this.ej2Instances.openQuickInfoPopup(data);
256
- };
257
- ScheduleComponent.prototype.print = function (printOptions) {
258
- return this.ej2Instances.print(printOptions);
259
- };
260
- ScheduleComponent.prototype.refreshEvents = function (isRemoteRefresh) {
261
- return this.ej2Instances.refreshEvents(isRemoteRefresh);
262
- };
263
- ScheduleComponent.prototype.refreshLayout = function () {
264
- return this.ej2Instances.refreshLayout();
265
- };
266
- ScheduleComponent.prototype.refreshTemplates = function (templateName) {
267
- return this.ej2Instances.refreshTemplates(templateName);
268
- };
269
- ScheduleComponent.prototype.removeResource = function (resourceId, name) {
270
- return this.ej2Instances.removeResource(resourceId, name);
271
- };
272
- ScheduleComponent.prototype.resetWorkHours = function (dates, start, end, groupIndex) {
273
- return this.ej2Instances.resetWorkHours(dates, start, end, groupIndex);
274
- };
275
- ScheduleComponent.prototype.saveEvent = function (data, currentAction) {
276
- return this.ej2Instances.saveEvent(data, currentAction);
277
- };
278
- ScheduleComponent.prototype.scrollTo = function (hour, scrollDate) {
279
- return this.ej2Instances.scrollTo(hour, scrollDate);
280
- };
281
- ScheduleComponent.prototype.scrollToResource = function (resourceId, groupName) {
282
- return this.ej2Instances.scrollToResource(resourceId, groupName);
283
- };
284
- ScheduleComponent.prototype.selectResourceByIndex = function (groupIndex) {
285
- return this.ej2Instances.selectResourceByIndex(groupIndex);
286
- };
287
- ScheduleComponent.prototype.setRecurrenceEditor = function (recurrenceEditor) {
288
- return this.ej2Instances.setRecurrenceEditor(recurrenceEditor);
289
- };
290
- ScheduleComponent.prototype.setResourceCollections = function (resourceCol) {
291
- return this.ej2Instances.setResourceCollections(resourceCol);
292
- };
293
- ScheduleComponent.prototype.setWorkHours = function (dates, start, end, groupIndex) {
294
- return this.ej2Instances.setWorkHours(dates, start, end, groupIndex);
295
- };
296
- ScheduleComponent.prototype.showSpinner = function () {
297
- return this.ej2Instances.showSpinner();
298
- };
299
- ScheduleComponent = __decorate([
300
- EJComponentDecorator({
301
- props: properties,
302
- model: {
303
- event: 'modelchanged'
304
- }
305
- }, isExecute)
306
- ,Options({
307
- props: props,
308
- watch: watch,
309
- emits: emitProbs,
310
- provide: function provide() {
311
- return {
312
- custom: this.custom
313
- };
314
- }
315
- })
316
- ], ScheduleComponent);
317
- return ScheduleComponent;
318
- }(ComponentBase));
319
- export { ScheduleComponent };
148
+ },
149
+ custom: function () {
150
+ this.updated();
151
+ },
152
+ addEvent: function (data) {
153
+ return this.ej2Instances.addEvent(data);
154
+ },
155
+ addResource: function (resources, name, index) {
156
+ return this.ej2Instances.addResource(resources, name, index);
157
+ },
158
+ changeCurrentView: function (viewName, viewIndex) {
159
+ return this.ej2Instances.changeCurrentView(viewName, viewIndex);
160
+ },
161
+ closeEditor: function () {
162
+ return this.ej2Instances.closeEditor();
163
+ },
164
+ closeQuickInfoPopup: function () {
165
+ return this.ej2Instances.closeQuickInfoPopup();
166
+ },
167
+ closeTooltip: function () {
168
+ return this.ej2Instances.closeTooltip();
169
+ },
170
+ collapseResource: function (resourceId, name) {
171
+ return this.ej2Instances.collapseResource(resourceId, name);
172
+ },
173
+ deleteEvent: function (id, currentAction) {
174
+ return this.ej2Instances.deleteEvent(id, currentAction);
175
+ },
176
+ expandResource: function (resourceId, name) {
177
+ return this.ej2Instances.expandResource(resourceId, name);
178
+ },
179
+ exportToExcel: function (excelExportOptions) {
180
+ return this.ej2Instances.exportToExcel(excelExportOptions);
181
+ },
182
+ exportToICalendar: function (fileName, customData) {
183
+ return this.ej2Instances.exportToICalendar(fileName, customData);
184
+ },
185
+ generateEventOccurrences: function (event, startDate) {
186
+ return this.ej2Instances.generateEventOccurrences(event, startDate);
187
+ },
188
+ getBlockEvents: function (startDate, endDate, includeOccurrences) {
189
+ return this.ej2Instances.getBlockEvents(startDate, endDate, includeOccurrences);
190
+ },
191
+ getCellDetails: function (tdCol) {
192
+ return this.ej2Instances.getCellDetails(tdCol);
193
+ },
194
+ getCurrentViewDates: function () {
195
+ return this.ej2Instances.getCurrentViewDates();
196
+ },
197
+ getCurrentViewEvents: function () {
198
+ return this.ej2Instances.getCurrentViewEvents();
199
+ },
200
+ getCurrentViewIndex: function () {
201
+ return this.ej2Instances.getCurrentViewIndex();
202
+ },
203
+ getDeletedOccurrences: function (recurrenceData) {
204
+ return this.ej2Instances.getDeletedOccurrences(recurrenceData);
205
+ },
206
+ getEventDetails: function (element) {
207
+ return this.ej2Instances.getEventDetails(element);
208
+ },
209
+ getEventMaxID: function () {
210
+ return this.ej2Instances.getEventMaxID();
211
+ },
212
+ getEvents: function (startDate, endDate, includeOccurrences) {
213
+ return this.ej2Instances.getEvents(startDate, endDate, includeOccurrences);
214
+ },
215
+ getIndexFromResourceId: function (id, name) {
216
+ return this.ej2Instances.getIndexFromResourceId(id, name);
217
+ },
218
+ getOccurrencesByID: function (eventID) {
219
+ return this.ej2Instances.getOccurrencesByID(eventID);
220
+ },
221
+ getOccurrencesByRange: function (startTime, endTime) {
222
+ return this.ej2Instances.getOccurrencesByRange(startTime, endTime);
223
+ },
224
+ getResourceCollections: function () {
225
+ return this.ej2Instances.getResourceCollections();
226
+ },
227
+ getResourcesByIndex: function (index) {
228
+ return this.ej2Instances.getResourcesByIndex(index);
229
+ },
230
+ getSelectedElements: function () {
231
+ return this.ej2Instances.getSelectedElements();
232
+ },
233
+ hideSpinner: function () {
234
+ return this.ej2Instances.hideSpinner();
235
+ },
236
+ importICalendar: function (fileContent) {
237
+ return this.ej2Instances.importICalendar(fileContent);
238
+ },
239
+ isSlotAvailable: function (startTime, endTime, groupIndex) {
240
+ return this.ej2Instances.isSlotAvailable(startTime, endTime, groupIndex);
241
+ },
242
+ openEditor: function (data, action, isEventData, repeatType) {
243
+ return this.ej2Instances.openEditor(data, action, isEventData, repeatType);
244
+ },
245
+ openQuickInfoPopup: function (data) {
246
+ return this.ej2Instances.openQuickInfoPopup(data);
247
+ },
248
+ print: function (printOptions) {
249
+ return this.ej2Instances.print(printOptions);
250
+ },
251
+ refreshEvents: function (isRemoteRefresh) {
252
+ return this.ej2Instances.refreshEvents(isRemoteRefresh);
253
+ },
254
+ refreshLayout: function () {
255
+ return this.ej2Instances.refreshLayout();
256
+ },
257
+ refreshTemplates: function (templateName) {
258
+ return this.ej2Instances.refreshTemplates(templateName);
259
+ },
260
+ removeResource: function (resourceId, name) {
261
+ return this.ej2Instances.removeResource(resourceId, name);
262
+ },
263
+ resetWorkHours: function (dates, start, end, groupIndex) {
264
+ return this.ej2Instances.resetWorkHours(dates, start, end, groupIndex);
265
+ },
266
+ saveEvent: function (data, currentAction) {
267
+ return this.ej2Instances.saveEvent(data, currentAction);
268
+ },
269
+ scrollTo: function (hour, scrollDate) {
270
+ return this.ej2Instances.scrollTo(hour, scrollDate);
271
+ },
272
+ scrollToResource: function (resourceId, groupName) {
273
+ return this.ej2Instances.scrollToResource(resourceId, groupName);
274
+ },
275
+ selectResourceByIndex: function (groupIndex) {
276
+ return this.ej2Instances.selectResourceByIndex(groupIndex);
277
+ },
278
+ setRecurrenceEditor: function (recurrenceEditor) {
279
+ return this.ej2Instances.setRecurrenceEditor(recurrenceEditor);
280
+ },
281
+ setResourceCollections: function (resourceCol) {
282
+ return this.ej2Instances.setResourceCollections(resourceCol);
283
+ },
284
+ setWorkHours: function (dates, start, end, groupIndex) {
285
+ return this.ej2Instances.setWorkHours(dates, start, end, groupIndex);
286
+ },
287
+ showSpinner: function () {
288
+ return this.ej2Instances.showSpinner();
289
+ },
290
+ }
291
+ });
320
292
  export var SchedulePlugin = {
321
293
  name: 'ejs-schedule',
322
294
  install: function (Vue) {
@@ -1,10 +1,4 @@
1
- declare let vueImport: any;
2
- export declare class ViewsDirective extends vueImport {
3
- constructor();
4
- render(createElement: any): void;
5
- updated(): void;
6
- getTag(): string;
7
- }
1
+ export declare let ViewsDirective: any;
8
2
  export declare const ViewsPlugin: {
9
3
  name: string;
10
4
  install(Vue: any): void;
@@ -21,12 +15,8 @@ export declare const ViewsPlugin: {
21
15
  * </ejs-schedule>
22
16
  * ```
23
17
  */
24
- export declare class ViewDirective extends vueImport {
25
- render(): void;
26
- getTag(): string;
27
- }
18
+ export declare let ViewDirective: any;
28
19
  export declare const ViewPlugin: {
29
20
  name: string;
30
21
  install(Vue: any): void;
31
22
  };
32
- export {};