@syncfusion/ej2-schedule 28.1.39 → 28.2.4
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/dist/ej2-schedule.min.js +2 -2
- 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 +19 -9
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +22 -11
- 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 +15 -15
- package/src/schedule/actions/crud.js +12 -5
- package/src/schedule/base/schedule-model.d.ts +2 -2
- package/src/schedule/base/schedule.d.ts +2 -2
- package/src/schedule/event-renderer/timeline-view.js +2 -2
- package/src/schedule/popups/quick-popups.js +3 -2
- package/src/schedule/renderer/header-renderer.js +1 -0
- package/src/schedule/renderer/month.js +4 -2
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.
|
|
3
|
+
* version : 28.2.4
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-schedule@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-schedule@28.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@28.2.3",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-vRaCJipyu0WOz8zNsBt0o5l6C5FlaVCFl6yhFGLNn+ipaJ3rYe9ayv5S/I0A2Qb4PLpuNEk8tYkpduppPwX4Mg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-schedule",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-schedule",
|
|
24
24
|
"/@syncfusion/ej2-vue-schedule"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.2.3.tgz",
|
|
27
|
+
"_shasum": "49008b0b547e8011d023d8ec52ba2706cca9c8a0",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~28.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~28.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~28.
|
|
41
|
-
"@syncfusion/ej2-data": "~28.
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~28.
|
|
43
|
-
"@syncfusion/ej2-excel-export": "~28.
|
|
44
|
-
"@syncfusion/ej2-inputs": "~28.
|
|
45
|
-
"@syncfusion/ej2-lists": "~28.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~28.
|
|
47
|
-
"@syncfusion/ej2-popups": "~28.
|
|
38
|
+
"@syncfusion/ej2-base": "~28.2.3",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~28.2.3",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~28.2.3",
|
|
41
|
+
"@syncfusion/ej2-data": "~28.2.3",
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~28.2.4",
|
|
43
|
+
"@syncfusion/ej2-excel-export": "~28.2.3",
|
|
44
|
+
"@syncfusion/ej2-inputs": "~28.2.3",
|
|
45
|
+
"@syncfusion/ej2-lists": "~28.2.3",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~28.2.4",
|
|
47
|
+
"@syncfusion/ej2-popups": "~28.2.3"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
50
50
|
"description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "28.
|
|
76
|
+
"version": "28.2.4",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -390,7 +390,7 @@ var Crud = /** @class */ (function () {
|
|
|
390
390
|
editParams.changedRecords.push(_this.parent.eventBase.processTimezone(parentEvent, true));
|
|
391
391
|
}
|
|
392
392
|
if (childEvent[fields.id] !== parentEvent[fields.id]) {
|
|
393
|
-
editParams.deletedRecords.push(childEvent);
|
|
393
|
+
editParams.deletedRecords.push(_this.parent.eventBase.processTimezone(childEvent, true));
|
|
394
394
|
isDeletedRecords = true;
|
|
395
395
|
}
|
|
396
396
|
break;
|
|
@@ -554,7 +554,7 @@ var Crud = /** @class */ (function () {
|
|
|
554
554
|
_this.parent.uiStateValues.isIgnoreOccurrence = false;
|
|
555
555
|
break;
|
|
556
556
|
case 'DeleteSeries':
|
|
557
|
-
editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(parentEvent));
|
|
557
|
+
editParams.deletedRecords = editParams.deletedRecords.concat(deletedEvents.concat(_this.parent.eventBase.processTimezone(parentEvent, true)));
|
|
558
558
|
isDeletedRecords = true;
|
|
559
559
|
break;
|
|
560
560
|
}
|
|
@@ -618,6 +618,12 @@ var Crud = /** @class */ (function () {
|
|
|
618
618
|
isDelete = deleteArgs.deletedRecords[parseInt(a.toString(), 10)][fields_3.id] !== parentEvent_1[fields_3.id];
|
|
619
619
|
}
|
|
620
620
|
if (isDelete) {
|
|
621
|
+
if (deleteArgs.deletedRecords instanceof Array) {
|
|
622
|
+
for (var _i = 0, _a = deleteArgs.deletedRecords; _i < _a.length; _i++) {
|
|
623
|
+
var event_8 = _a[_i];
|
|
624
|
+
_this.parent.eventBase.processTimezone(event_8, true);
|
|
625
|
+
}
|
|
626
|
+
}
|
|
621
627
|
editParams.deletedRecords.push(deleteArgs.deletedRecords[parseInt(a.toString(), 10)]);
|
|
622
628
|
}
|
|
623
629
|
};
|
|
@@ -625,7 +631,8 @@ var Crud = /** @class */ (function () {
|
|
|
625
631
|
_loop_5(a, count);
|
|
626
632
|
}
|
|
627
633
|
var promise = _this.parent.dataModule.dataManager.saveChanges(editParams, fields_3.id, _this.getTable(), _this.getQuery());
|
|
628
|
-
|
|
634
|
+
var cloneEvent = extend({}, deleteArgs.deletedRecords[deleteArgs.deletedRecords.length - 1], null, true);
|
|
635
|
+
_this.parent.eventBase.selectWorkCellByTime([_this.parent.eventBase.processTimezone(cloneEvent)]);
|
|
629
636
|
var crudArgs = {
|
|
630
637
|
requestType: 'eventRemoved', cancel: false, data: deleteArgs.deletedRecords, promise: promise, editParams: editParams
|
|
631
638
|
};
|
|
@@ -746,8 +753,8 @@ var Crud = /** @class */ (function () {
|
|
|
746
753
|
var eventCollection = (eventData instanceof Array) ? eventData : [eventData];
|
|
747
754
|
var value = false;
|
|
748
755
|
for (var _i = 0, eventCollection_1 = eventCollection; _i < eventCollection_1.length; _i++) {
|
|
749
|
-
var
|
|
750
|
-
value =
|
|
756
|
+
var event_9 = eventCollection_1[_i];
|
|
757
|
+
value = event_9[this.parent.eventFields.isBlock] || false;
|
|
751
758
|
}
|
|
752
759
|
return value;
|
|
753
760
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component, ModuleDeclaration, Property, Event, Animation, Collection, append } from '@syncfusion/ej2-base';import { EventHandler, EmitType, Browser, Internationalization, getDefaultDateObject, cldrData, L10n } from '@syncfusion/ej2-base';import { getValue, compile, extend, isNullOrUndefined, NotifyPropertyChanges, INotifyPropertyChanged, Complex } from '@syncfusion/ej2-base';import { getElement, removeClass, addClass, classList, remove, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';import { HeaderRenderer } from '../renderer/header-renderer';import { Scroll } from '../actions/scroll';import { ScheduleTouch } from '../actions/touch';import { KeyboardInteraction } from '../actions/keyboard';import { Data } from '../actions/data';import { View, CurrentAction, ReturnType, WeekRule, NavigationDirection } from '../base/type';import { EventBase } from '../event-renderer/event-base';import { InlineEdit } from '../event-renderer/inline-edit';import { QuickPopups } from '../popups/quick-popups';import { EventTooltip } from '../popups/event-tooltip';import { EventWindow } from '../popups/event-window';import { Render } from '../renderer/renderer';import { Day } from '../renderer/day';import { Week } from '../renderer/week';import { WorkWeek } from '../renderer/work-week';import { Month } from '../renderer/month';import { Year } from '../renderer/year';import { Agenda } from '../renderer/agenda';import { MonthAgenda } from '../renderer/month-agenda';import { TimelineViews } from '../renderer/timeline-view';import { TimelineMonth } from '../renderer/timeline-month';import { TimelineYear } from '../renderer/timeline-year';import { WorkHours } from '../models/work-hours';import { TimeScale } from '../models/time-scale';import { QuickInfoTemplates } from '../models/quick-info-templates';import { HeaderRows } from '../models/header-rows';import { Crud } from '../actions/crud';import { Resize } from '../actions/resize';import { DragAndDrop } from '../actions/drag';import { VirtualScroll } from '../actions/virtual-scroll';import { WorkCellInteraction } from '../actions/work-cells';import { WorkHoursModel, ViewsModel, EventSettingsModel, GroupModel, ResourcesModel, TimeScaleModel, ToolbarItemModel } from '../models/models';import { QuickInfoTemplatesModel, HeaderRowsModel } from '../models/models';import { EventSettings } from '../models/event-settings';import { Group } from '../models/group';import { Resources } from '../models/resources';import { ICalendarExport } from '../exports/calendar-export';import { ICalendarImport } from '../exports/calendar-import';import { ExcelExport } from '../exports/excel-export';import { Print } from '../exports/print';import { IRenderer, ActionEventArgs, NavigatingEventArgs, CellClickEventArgs, RenderCellEventArgs, ScrollCss, TimezoneFields } from '../base/interface';import { EventClickArgs, EventRenderedArgs, PopupOpenEventArgs, UIStateArgs, DragEventArgs, ResizeEventArgs } from '../base/interface';import { EventFieldsMapping, TdData, ResourceDetails, ResizeEdges, StateArgs, ExportOptions, SelectEventArgs } from '../base/interface';import { ViewsData, PopupCloseEventArgs, HoverEventArgs, MoreEventsClickArgs, ScrollEventArgs, CallbackFunction } from '../base/interface';import { CalendarUtil, Gregorian, Islamic, CalendarType } from '../../common/calendar-util';import { ResourceBase } from '../base/resource';import { Timezone, timezoneData } from '../timezone/timezone';import { RecurrenceEditor } from '../../recurrence-editor/recurrence-editor';import * as events from '../base/constant';import * as cls from '../base/css-constant';import * as util from '../base/util';import { ToolbarItem } from '../models/toolbar';
|
|
1
|
+
import { Component, ModuleDeclaration, Property, Event, Animation, Collection, append } from '@syncfusion/ej2-base';import { EventHandler, EmitType, Browser, Internationalization, getDefaultDateObject, cldrData, L10n } from '@syncfusion/ej2-base';import { getValue, compile, extend, isNullOrUndefined, NotifyPropertyChanges, INotifyPropertyChanged, Complex } from '@syncfusion/ej2-base';import { getElement, removeClass, addClass, classList, remove, SanitizeHtmlHelper } from '@syncfusion/ej2-base';import { createSpinner, hideSpinner, showSpinner } from '@syncfusion/ej2-popups';import { HeaderRenderer } from '../renderer/header-renderer';import { Scroll } from '../actions/scroll';import { ScheduleTouch } from '../actions/touch';import { KeyboardInteraction } from '../actions/keyboard';import { Data } from '../actions/data';import { View, CurrentAction, ReturnType, WeekRule, NavigationDirection } from '../base/type';import { EventBase } from '../event-renderer/event-base';import { InlineEdit } from '../event-renderer/inline-edit';import { QuickPopups } from '../popups/quick-popups';import { EventTooltip } from '../popups/event-tooltip';import { EventWindow } from '../popups/event-window';import { Render } from '../renderer/renderer';import { Day } from '../renderer/day';import { Week } from '../renderer/week';import { WorkWeek } from '../renderer/work-week';import { Month } from '../renderer/month';import { Year } from '../renderer/year';import { Agenda } from '../renderer/agenda';import { MonthAgenda } from '../renderer/month-agenda';import { TimelineViews } from '../renderer/timeline-view';import { TimelineMonth } from '../renderer/timeline-month';import { TimelineYear } from '../renderer/timeline-year';import { WorkHours } from '../models/work-hours';import { TimeScale } from '../models/time-scale';import { QuickInfoTemplates } from '../models/quick-info-templates';import { HeaderRows } from '../models/header-rows';import { Crud } from '../actions/crud';import { Resize } from '../actions/resize';import { DragAndDrop } from '../actions/drag';import { VirtualScroll } from '../actions/virtual-scroll';import { WorkCellInteraction } from '../actions/work-cells';import { WorkHoursModel, ViewsModel, EventSettingsModel, GroupModel, ResourcesModel, TimeScaleModel, ToolbarItemModel } from '../models/models';import { QuickInfoTemplatesModel, HeaderRowsModel } from '../models/models';import { EventSettings } from '../models/event-settings';import { Group } from '../models/group';import { Resources } from '../models/resources';import { ICalendarExport } from '../exports/calendar-export';import { ICalendarImport } from '../exports/calendar-import';import { ExcelExport } from '../exports/excel-export';import { Print } from '../exports/print';import { IRenderer, ActionEventArgs, NavigatingEventArgs, CellClickEventArgs, RenderCellEventArgs, ScrollCss, TimezoneFields, BeforePasteEventArgs } from '../base/interface';import { EventClickArgs, EventRenderedArgs, PopupOpenEventArgs, UIStateArgs, DragEventArgs, ResizeEventArgs } from '../base/interface';import { EventFieldsMapping, TdData, ResourceDetails, ResizeEdges, StateArgs, ExportOptions, SelectEventArgs } from '../base/interface';import { ViewsData, PopupCloseEventArgs, HoverEventArgs, MoreEventsClickArgs, ScrollEventArgs, CallbackFunction } from '../base/interface';import { CalendarUtil, Gregorian, Islamic, CalendarType } from '../../common/calendar-util';import { ResourceBase } from '../base/resource';import { Timezone, timezoneData } from '../timezone/timezone';import { RecurrenceEditor } from '../../recurrence-editor/recurrence-editor';import * as events from '../base/constant';import * as cls from '../base/css-constant';import * as util from '../base/util';import { ToolbarItem } from '../models/toolbar';
|
|
2
2
|
import {ComponentModel} from '@syncfusion/ej2-base';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -872,6 +872,6 @@ export interface ScheduleModel extends ComponentModel{
|
|
|
872
872
|
*
|
|
873
873
|
* @event 'beforePaste'
|
|
874
874
|
*/
|
|
875
|
-
beforePaste?: EmitType<
|
|
875
|
+
beforePaste?: EmitType<BeforePasteEventArgs>;
|
|
876
876
|
|
|
877
877
|
}
|
|
@@ -35,7 +35,7 @@ import { ICalendarExport } from '../exports/calendar-export';
|
|
|
35
35
|
import { ICalendarImport } from '../exports/calendar-import';
|
|
36
36
|
import { ExcelExport } from '../exports/excel-export';
|
|
37
37
|
import { Print } from '../exports/print';
|
|
38
|
-
import { IRenderer, ActionEventArgs, NavigatingEventArgs, CellClickEventArgs, RenderCellEventArgs, ScrollCss, TimezoneFields } from '../base/interface';
|
|
38
|
+
import { IRenderer, ActionEventArgs, NavigatingEventArgs, CellClickEventArgs, RenderCellEventArgs, ScrollCss, TimezoneFields, BeforePasteEventArgs } from '../base/interface';
|
|
39
39
|
import { EventClickArgs, EventRenderedArgs, PopupOpenEventArgs, UIStateArgs, DragEventArgs, ResizeEventArgs } from '../base/interface';
|
|
40
40
|
import { EventFieldsMapping, TdData, ResourceDetails, ResizeEdges, ExportOptions, SelectEventArgs } from '../base/interface';
|
|
41
41
|
import { ViewsData, PopupCloseEventArgs, HoverEventArgs, MoreEventsClickArgs, ScrollEventArgs, CallbackFunction } from '../base/interface';
|
|
@@ -916,7 +916,7 @@ export declare class Schedule extends Component<HTMLElement> implements INotifyP
|
|
|
916
916
|
*
|
|
917
917
|
* @event 'beforePaste'
|
|
918
918
|
*/
|
|
919
|
-
beforePaste: EmitType<
|
|
919
|
+
beforePaste: EmitType<BeforePasteEventArgs>;
|
|
920
920
|
/**
|
|
921
921
|
* Constructor for creating the Schedule widget
|
|
922
922
|
*
|
|
@@ -497,8 +497,8 @@ var TimelineEvent = /** @class */ (function (_super) {
|
|
|
497
497
|
return slotTd;
|
|
498
498
|
}
|
|
499
499
|
else {
|
|
500
|
-
var daySlot = Math.round(((
|
|
501
|
-
|
|
500
|
+
var daySlot = Math.round(((util.getUniversalTime(schedule.endHour) - util.getUniversalTime(schedule.startHour)) /
|
|
501
|
+
this.interval / util.MS_PER_MINUTE) * this.slotCount);
|
|
502
502
|
return (daySlot * day) + slotTd;
|
|
503
503
|
}
|
|
504
504
|
};
|
|
@@ -1307,7 +1307,7 @@ var QuickPopups = /** @class */ (function () {
|
|
|
1307
1307
|
QuickPopups.prototype.documentClick = function (e) {
|
|
1308
1308
|
var target = e.event.target;
|
|
1309
1309
|
var classNames = '.' + cls.POPUP_WRAPPER_CLASS + ',.' + cls.HEADER_CELLS_CLASS + ',.' + cls.ALLDAY_CELLS_CLASS +
|
|
1310
|
-
',.' + cls.WORK_CELLS_CLASS + ',.' + cls.APPOINTMENT_CLASS
|
|
1310
|
+
',.' + cls.WORK_CELLS_CLASS + ',.' + cls.APPOINTMENT_CLASS;
|
|
1311
1311
|
var popupWrap = this.parent.element.querySelector('.' + cls.POPUP_WRAPPER_CLASS);
|
|
1312
1312
|
if ((popupWrap && popupWrap.childElementCount > 0 && !closest(target, classNames)) || !closest(target, classNames)) {
|
|
1313
1313
|
this.quickPopupHide();
|
|
@@ -1322,7 +1322,8 @@ var QuickPopups = /** @class */ (function () {
|
|
|
1322
1322
|
}
|
|
1323
1323
|
if (!closest(target, '.' + cls.MORE_POPUP_WRAPPER_CLASS) && (target.classList &&
|
|
1324
1324
|
!target.classList.contains(cls.MORE_INDICATOR_CLASS))
|
|
1325
|
-
&& (!closest(target, '.' + cls.
|
|
1325
|
+
&& (!closest(target, '.' + cls.MORE_POPUP_WRAPPER_CLASS + '.' + cls.POPUP_OPEN))
|
|
1326
|
+
&& !closest(target, '.' + cls.WORK_CELLS_CLASS)) {
|
|
1326
1327
|
this.morePopup.hide();
|
|
1327
1328
|
}
|
|
1328
1329
|
};
|
|
@@ -493,6 +493,7 @@ var HeaderRenderer = /** @class */ (function () {
|
|
|
493
493
|
min: this.parent.minDate,
|
|
494
494
|
max: this.parent.maxDate,
|
|
495
495
|
firstDayOfWeek: this.parent.activeViewOptions.firstDayOfWeek,
|
|
496
|
+
weekNumber: this.parent.activeViewOptions.showWeekNumber,
|
|
496
497
|
enableRtl: this.parent.enableRtl,
|
|
497
498
|
locale: this.parent.locale,
|
|
498
499
|
depth: calendarView,
|
|
@@ -561,9 +561,11 @@ var Month = /** @class */ (function (_super) {
|
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
Month.prototype.getMonthStart = function (currentDate) {
|
|
564
|
-
var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && (this.parent.uiStateValues.
|
|
564
|
+
var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && !(this.parent.uiStateValues.isSwipeScroll) &&
|
|
565
|
+
(this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
|
|
565
566
|
var date = useDisplayDate ? this.parent.activeViewOptions.displayDate : !(this.parent.uiStateValues.isCustomMonth ||
|
|
566
|
-
this.isCustomRange()) && this.isCustomMonth() ? currentDate :
|
|
567
|
+
(!this.parent.uiStateValues.isSwipeScroll && this.isCustomRange())) && this.isCustomMonth() ? currentDate :
|
|
568
|
+
this.parent.calendarUtil.firstDateOfMonth(currentDate);
|
|
567
569
|
var monthStart = util.getWeekFirstDate(date, this.parent.activeViewOptions.firstDayOfWeek);
|
|
568
570
|
return new Date(monthStart.getFullYear(), monthStart.getMonth(), monthStart.getDate());
|
|
569
571
|
};
|