@syncfusion/ej2-schedule 20.2.38 → 20.2.40
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 +8 -0
- package/dist/ej2-schedule.umd.min.js +2 -2
- package/dist/ej2-schedule.umd.min.js.map +1 -1
- package/dist/es6/ej2-schedule.es2015.js +41 -24
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +41 -24
- package/dist/es6/ej2-schedule.es5.js.map +1 -1
- package/dist/global/ej2-schedule.min.js +2 -2
- package/dist/global/ej2-schedule.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -12
- package/src/schedule/actions/crud.d.ts +1 -0
- package/src/schedule/actions/crud.js +27 -2
- package/src/schedule/base/interface.d.ts +1 -1
- package/src/schedule/base/schedule.js +9 -21
- package/src/schedule/event-renderer/event-base.js +1 -1
- package/src/schedule/exports/calendar-export.d.ts +1 -0
- package/src/schedule/exports/calendar-export.js +5 -1
|
@@ -5154,7 +5154,7 @@ class EventBase {
|
|
|
5154
5154
|
if (timeZonePropChanged) {
|
|
5155
5155
|
this.processTimezoneChange(event, oldTimezone);
|
|
5156
5156
|
}
|
|
5157
|
-
else if (!this.parent.isPrinting && !this.parent.uiStateValues.
|
|
5157
|
+
else if (!this.parent.isPrinting && !this.parent.uiStateValues.isPreventTimezone) {
|
|
5158
5158
|
event = this.processTimezone(event);
|
|
5159
5159
|
}
|
|
5160
5160
|
for (let level = 0; level < resourceCollection.length; level++) {
|
|
@@ -13402,7 +13402,7 @@ class Crud {
|
|
|
13402
13402
|
const resultData = extend([], args.result, null, true);
|
|
13403
13403
|
this.parent.eventsData = resultData.filter((data) => !data[this.parent.eventFields.isBlock]);
|
|
13404
13404
|
this.parent.blockData = resultData.filter((data) => data[this.parent.eventFields.isBlock]);
|
|
13405
|
-
this.
|
|
13405
|
+
this.refreshProcessedData();
|
|
13406
13406
|
if (this.parent.dragAndDropModule && this.parent.dragAndDropModule.actionObj.action === 'drag') {
|
|
13407
13407
|
this.parent.dragAndDropModule.navigationWrapper();
|
|
13408
13408
|
}
|
|
@@ -13420,6 +13420,31 @@ class Crud {
|
|
|
13420
13420
|
}
|
|
13421
13421
|
this.parent.trigger(actionFailure, { error: e }, () => this.parent.hideSpinner());
|
|
13422
13422
|
}
|
|
13423
|
+
refreshProcessedData() {
|
|
13424
|
+
if (this.parent.dragAndDropModule) {
|
|
13425
|
+
this.parent.dragAndDropModule.actionObj.action = '';
|
|
13426
|
+
removeClass([this.parent.element], 'e-event-action');
|
|
13427
|
+
}
|
|
13428
|
+
if (this.parent.activeViewOptions && this.parent.activeViewOptions.eventTemplate) {
|
|
13429
|
+
let templateNames = ['eventTemplate'];
|
|
13430
|
+
if (this.crudObj.isCrudAction &&
|
|
13431
|
+
['Agenda', 'MonthAgenda', 'Year', 'TimelineYear'].indexOf(this.parent.currentView) === -1) {
|
|
13432
|
+
templateNames = [];
|
|
13433
|
+
for (let i = 0, len = this.crudObj.sourceEvent.length; i < len; i++) {
|
|
13434
|
+
templateNames.push('eventTemplate_' + this.crudObj.sourceEvent[i].groupIndex);
|
|
13435
|
+
if (this.crudObj.targetEvent[i] && this.crudObj.sourceEvent[i].groupIndex !==
|
|
13436
|
+
this.crudObj.targetEvent[i].groupIndex) {
|
|
13437
|
+
templateNames.push('eventTemplate_' + this.crudObj.targetEvent[i].groupIndex);
|
|
13438
|
+
}
|
|
13439
|
+
}
|
|
13440
|
+
}
|
|
13441
|
+
this.parent.resetTemplates(templateNames);
|
|
13442
|
+
}
|
|
13443
|
+
const eventsData = this.parent.eventsData || [];
|
|
13444
|
+
const blockData = this.parent.blockData || [];
|
|
13445
|
+
const data = eventsData.concat(blockData);
|
|
13446
|
+
this.parent.notify(dataReady, { processedData: this.parent.eventBase ? this.parent.eventBase.processData(data) : [] });
|
|
13447
|
+
}
|
|
13423
13448
|
refreshData(args) {
|
|
13424
13449
|
const actionArgs = {
|
|
13425
13450
|
requestType: args.requestType, cancel: false, data: args.data,
|
|
@@ -15919,7 +15944,7 @@ let Schedule = class Schedule extends Component {
|
|
|
15919
15944
|
if (this && isNullOrUndefined(this.uiStateValues) || !(this.enablePersistence)) {
|
|
15920
15945
|
this.uiStateValues = {
|
|
15921
15946
|
expand: false, isInitial: true, left: 0, top: 0, isGroupAdaptive: false,
|
|
15922
|
-
isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true,
|
|
15947
|
+
isIgnoreOccurrence: false, groupIndex: 0, action: false, isBlock: false, isCustomMonth: true, isPreventTimezone: false
|
|
15923
15948
|
};
|
|
15924
15949
|
}
|
|
15925
15950
|
this.activeCellsData = { startTime: this.getCurrentTime(), endTime: this.getCurrentTime(), isAllDay: false };
|
|
@@ -16379,11 +16404,9 @@ let Schedule = class Schedule extends Component {
|
|
|
16379
16404
|
}
|
|
16380
16405
|
if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
|
|
16381
16406
|
&& !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
|
|
16382
|
-
this.uiStateValues.isResize = true;
|
|
16383
16407
|
this.activeView.resetColWidth();
|
|
16384
16408
|
this.notify(scrollUiUpdate, { cssProperties: this.getCssProperties(), isPreventScrollUpdate: true });
|
|
16385
16409
|
this.refreshEvents(false);
|
|
16386
|
-
this.uiStateValues.isResize = false;
|
|
16387
16410
|
}
|
|
16388
16411
|
else {
|
|
16389
16412
|
this.notify(contentReady, {});
|
|
@@ -17449,25 +17472,15 @@ let Schedule = class Schedule extends Component {
|
|
|
17449
17472
|
this.crudModule.refreshDataManager();
|
|
17450
17473
|
}
|
|
17451
17474
|
else {
|
|
17452
|
-
if (this.
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
this.crudModule.crudObj.targetEvent[i].groupIndex) {
|
|
17461
|
-
templateNames.push('eventTemplate_' + this.crudModule.crudObj.targetEvent[i].groupIndex);
|
|
17462
|
-
}
|
|
17463
|
-
}
|
|
17464
|
-
}
|
|
17465
|
-
this.resetTemplates(templateNames);
|
|
17475
|
+
if (this.uiStateValues) {
|
|
17476
|
+
this.uiStateValues.isPreventTimezone = true;
|
|
17477
|
+
}
|
|
17478
|
+
if (this.crudModule) {
|
|
17479
|
+
this.crudModule.refreshProcessedData();
|
|
17480
|
+
}
|
|
17481
|
+
if (this.uiStateValues) {
|
|
17482
|
+
this.uiStateValues.isPreventTimezone = false;
|
|
17466
17483
|
}
|
|
17467
|
-
const eventsData = this.eventsData || [];
|
|
17468
|
-
const blockData = this.blockData || [];
|
|
17469
|
-
const data = eventsData.concat(blockData);
|
|
17470
|
-
this.notify(dataReady, { processedData: this.eventBase ? this.eventBase.processData(data) : [] });
|
|
17471
17484
|
}
|
|
17472
17485
|
}
|
|
17473
17486
|
/**
|
|
@@ -25152,6 +25165,10 @@ class ICalendarExport {
|
|
|
25152
25165
|
this.parent = parent;
|
|
25153
25166
|
}
|
|
25154
25167
|
initializeCalendarExport(fileName, customData) {
|
|
25168
|
+
const icsString = this.getCalendarString(fileName, customData);
|
|
25169
|
+
this.download(icsString, fileName);
|
|
25170
|
+
}
|
|
25171
|
+
getCalendarString(fileName, customData) {
|
|
25155
25172
|
let eventsData = (customData) ? customData :
|
|
25156
25173
|
extend([], this.parent.eventsData, null, true);
|
|
25157
25174
|
eventsData = this.parent.eventBase.sortByTime(eventsData);
|
|
@@ -25234,7 +25251,7 @@ class ICalendarExport {
|
|
|
25234
25251
|
'X-WR-TIMEZONE:' + timeZone
|
|
25235
25252
|
].join(SEPARATOR);
|
|
25236
25253
|
const icsString = iCalendar + SEPARATOR + iCalendarEvents.join(SEPARATOR) + SEPARATOR + 'END:VCALENDAR';
|
|
25237
|
-
|
|
25254
|
+
return icsString;
|
|
25238
25255
|
}
|
|
25239
25256
|
customFieldFilter(eventObj, fields) {
|
|
25240
25257
|
const defaultFields = Object.keys(fields).map((key) => fields[key]);
|