@syncfusion/ej2-schedule
Advanced tools
Comparing version 26.2.12 to 26.2.14
/*! | ||
* filename: index.d.ts | ||
* version : 26.2.12 | ||
* version : 26.2.14 | ||
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-schedule@*", | ||
"_id": "@syncfusion/ej2-schedule@26.2.10", | ||
"_id": "@syncfusion/ej2-schedule@26.2.12", | ||
"_inBundle": false, | ||
"_integrity": "sha512-8djuHRnSpt9qnIeu+M6Ge2/Yf+PQzRd7Lt2XoMXS5cdUH9movaNJZE1QFN20Mu3SFCAxX08ghlq5Ps8HViM4IA==", | ||
"_integrity": "sha512-mUILDakcc3sCVN0/q/N/vHLnFZjxmMf70dncdtrY/dPTE05kW6GNUfbKZMCflT09r86jZxo0BQM+WZ12d8eJ/A==", | ||
"_location": "/@syncfusion/ej2-schedule", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.2.10.tgz", | ||
"_shasum": "92f0ba266261b1ce26889c68c9d184065135e7e4", | ||
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-26.2.12.tgz", | ||
"_shasum": "fd72425ccf4ccd964d292e1ab6111c0f3a09dc70", | ||
"_spec": "@syncfusion/ej2-schedule@*", | ||
@@ -42,7 +42,7 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included", | ||
"@syncfusion/ej2-calendars": "~26.2.12", | ||
"@syncfusion/ej2-data": "~26.2.10", | ||
"@syncfusion/ej2-dropdowns": "~26.2.11", | ||
"@syncfusion/ej2-data": "~26.2.14", | ||
"@syncfusion/ej2-dropdowns": "~26.2.13", | ||
"@syncfusion/ej2-excel-export": "~26.2.11", | ||
"@syncfusion/ej2-inputs": "~26.2.11", | ||
"@syncfusion/ej2-lists": "~26.2.11", | ||
"@syncfusion/ej2-inputs": "~26.2.14", | ||
"@syncfusion/ej2-lists": "~26.2.14", | ||
"@syncfusion/ej2-navigations": "~26.2.12", | ||
@@ -79,4 +79,4 @@ "@syncfusion/ej2-popups": "~26.2.11", | ||
"typings": "index.d.ts", | ||
"version": "26.2.12", | ||
"version": "26.2.14", | ||
"sideEffects": false | ||
} |
@@ -507,5 +507,20 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
requestType: action === 'EditSeries' ? 'eventChange' : 'eventRemove', cancel: false, | ||
addedRecords: [], changedRecords: updateSeriesEvents, deletedRecords: [] | ||
addedRecords: [], changedRecords: [], deletedRecords: [] | ||
}; | ||
args.data = seriesData; | ||
if (action === 'EditSeries') { | ||
args.changedRecords = updateSeriesEvents; | ||
} | ||
else { | ||
args.deletedRecords = updateSeriesEvents; | ||
} | ||
if (action === 'EditSeries' && !this.parent.uiStateValues.isIgnoreOccurrence) { | ||
var seriesEvents = seriesData instanceof Array ? seriesData : [seriesData]; | ||
for (var a = 0, count = args.changedRecords.length; a < count; a++) { | ||
var parentEvent = seriesEvents[parseInt(a.toString(), 10)]; | ||
var eventCollections = this.parent.eventBase.getEventCollections(parentEvent); | ||
var deletedEvents = eventCollections.follow.concat(eventCollections.occurrence); | ||
args.deletedRecords = args.deletedRecords.concat(deletedEvents); | ||
} | ||
} | ||
this.parent.trigger(events.actionBegin, args, function (seriesArgs) { | ||
@@ -516,4 +531,5 @@ if (!seriesArgs.cancel) { | ||
var seriesEvents = seriesData instanceof Array ? seriesData : [seriesData]; | ||
var records = action === 'EditSeries' ? seriesArgs.changedRecords : seriesArgs.deletedRecords; | ||
var _loop_4 = function (a, count) { | ||
var childEvent = seriesArgs.changedRecords[parseInt(a.toString(), 10)]; | ||
var childEvent = records[parseInt(a.toString(), 10)]; | ||
var parentEvent = seriesEvents[parseInt(a.toString(), 10)]; | ||
@@ -548,7 +564,7 @@ var eventCollections = _this.parent.eventBase.getEventCollections(parentEvent); | ||
}; | ||
for (var a = 0, count = seriesArgs.changedRecords.length; a < count; a++) { | ||
for (var a = 0, count = records.length; a < count; a++) { | ||
_loop_4(a, count); | ||
} | ||
var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_2.id, _this.getTable(), _this.getQuery()); | ||
var cloneEvent = extend({}, seriesArgs.changedRecords[seriesArgs.changedRecords.length - 1], null, true); | ||
var cloneEvent = extend({}, records[records.length - 1], null, true); | ||
_this.parent.eventBase.selectWorkCellByTime(action === 'EditSeries' ? [_this.parent.eventBase.processTimezone(cloneEvent)] : [cloneEvent]); | ||
@@ -555,0 +571,0 @@ var crudArgs = { |
@@ -82,3 +82,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ | ||
var eventEnd = new Date('' + record[fields.endTime]); | ||
eventEnd = (eventEnd.getHours() === 0 && eventEnd.getMinutes() === 0) ? new Date(eventEnd.setMilliseconds(-1000)) : eventEnd; | ||
eventEnd = ((eventEnd.getTime() - eventStart.getTime() !== 0) && eventEnd.getHours() === 0 && eventEnd.getMinutes() === 0) ? | ||
new Date(eventEnd.setMilliseconds(-1000)) : eventEnd; | ||
var startDate = util.resetTime(new Date('' + eventStart)); | ||
@@ -85,0 +86,0 @@ var endDate = util.resetTime(new Date('' + eventEnd)); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23335473
272192