@syncfusion/ej2-vue-schedule 20.4.52 → 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.
- package/CHANGELOG.md +30 -0
- package/dist/ej2-vue-schedule.umd.min.js +2 -2
- package/dist/ej2-vue-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-vue-schedule.es2015.js +401 -543
- package/dist/es6/ej2-vue-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-vue-schedule.es5.js +440 -628
- package/dist/es6/ej2-vue-schedule.es5.js.map +1 -1
- package/dist/global/ej2-vue-schedule.min.js +2 -2
- package/package.json +9 -9
- package/src/recurrence-editor/recurrenceeditor.component.d.ts +3 -28
- package/src/recurrence-editor/recurrenceeditor.component.js +101 -130
- package/src/schedule/headerrows.directive.d.ts +2 -12
- package/src/schedule/headerrows.directive.js +22 -71
- package/src/schedule/resources.directive.d.ts +2 -12
- package/src/schedule/resources.directive.js +22 -71
- package/src/schedule/schedule.component.d.ts +3 -70
- package/src/schedule/schedule.component.js +258 -286
- package/src/schedule/views.directive.d.ts +2 -12
- package/src/schedule/views.directive.js +22 -71
- package/styles/bootstrap-dark.css +99 -89
- package/styles/bootstrap.css +99 -89
- package/styles/bootstrap4.css +99 -89
- package/styles/bootstrap5-dark.css +110 -100
- package/styles/bootstrap5.css +110 -100
- package/styles/fabric-dark.css +98 -88
- package/styles/fabric.css +98 -88
- package/styles/fluent-dark.css +109 -99
- package/styles/fluent.css +109 -99
- package/styles/highcontrast-light.css +98 -88
- package/styles/highcontrast.css +98 -88
- package/styles/material-dark.css +98 -88
- package/styles/material.css +98 -88
- package/styles/schedule/bootstrap-dark.css +99 -89
- package/styles/schedule/bootstrap.css +99 -89
- package/styles/schedule/bootstrap4.css +99 -89
- package/styles/schedule/bootstrap5-dark.css +110 -100
- package/styles/schedule/bootstrap5.css +110 -100
- package/styles/schedule/fabric-dark.css +98 -88
- package/styles/schedule/fabric.css +98 -88
- package/styles/schedule/fluent-dark.css +109 -99
- package/styles/schedule/fluent.css +109 -99
- package/styles/schedule/highcontrast-light.css +98 -88
- package/styles/schedule/highcontrast.css +98 -88
- package/styles/schedule/material-dark.css +98 -88
- package/styles/schedule/material.css +98 -88
- package/styles/schedule/tailwind-dark.css +106 -96
- package/styles/schedule/tailwind.css +106 -96
- package/styles/tailwind-dark.css +106 -96
- package/styles/tailwind.css +106 -96
|
@@ -1,36 +1,14 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
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 =
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
128
|
-
|
|
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
|
-
|
|
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
|
-
|
|
150
|
-
this.
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
|
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
|
|
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 {};
|