@syncfusion/ej2-schedule 20.4.42 → 20.4.44
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 +19 -0
- 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 +143 -119
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +144 -121
- 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/base/schedule.d.ts +2 -1
- package/src/schedule/base/schedule.js +6 -2
- package/src/schedule/event-renderer/agenda-base.js +0 -1
- package/src/schedule/event-renderer/event-base.js +1 -9
- package/src/schedule/event-renderer/month.js +1 -1
- package/src/schedule/event-renderer/vertical-view.js +0 -1
- package/src/schedule/event-renderer/year.js +1 -1
- package/src/schedule/popups/event-tooltip.js +2 -7
- package/src/schedule/popups/event-window.js +40 -31
- package/src/schedule/popups/quick-popups.js +93 -68
|
@@ -5651,18 +5651,12 @@ class EventBase {
|
|
|
5651
5651
|
}
|
|
5652
5652
|
removeSelectedAppointmentClass() {
|
|
5653
5653
|
const selectedAppointments = this.getSelectedAppointments();
|
|
5654
|
-
for (const appointment of selectedAppointments) {
|
|
5655
|
-
appointment.setAttribute('aria-pressed', 'false');
|
|
5656
|
-
}
|
|
5657
5654
|
removeClass(selectedAppointments, APPOINTMENT_BORDER);
|
|
5658
5655
|
if (this.parent.currentView === 'Agenda' || this.parent.currentView === 'MonthAgenda') {
|
|
5659
5656
|
removeClass(selectedAppointments, AGENDA_SELECTED_CELL);
|
|
5660
5657
|
}
|
|
5661
5658
|
}
|
|
5662
5659
|
addSelectedAppointments(cells) {
|
|
5663
|
-
for (const cell of cells) {
|
|
5664
|
-
cell.setAttribute('aria-pressed', 'true');
|
|
5665
|
-
}
|
|
5666
5660
|
if (this.parent.currentView !== 'MonthAgenda') {
|
|
5667
5661
|
this.parent.removeSelectedClass();
|
|
5668
5662
|
}
|
|
@@ -6193,7 +6187,7 @@ class EventBase {
|
|
|
6193
6187
|
className: BLOCK_APPOINTMENT_CLASS,
|
|
6194
6188
|
attrs: {
|
|
6195
6189
|
'data-id': 'Appointment_' + record[this.parent.eventFields.id],
|
|
6196
|
-
'aria-disabled': 'true'
|
|
6190
|
+
'aria-disabled': 'true'
|
|
6197
6191
|
}
|
|
6198
6192
|
});
|
|
6199
6193
|
let templateElement;
|
|
@@ -6679,7 +6673,6 @@ class VerticalEvent extends EventBase {
|
|
|
6679
6673
|
'role': 'button',
|
|
6680
6674
|
'tabindex': '0',
|
|
6681
6675
|
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
|
|
6682
|
-
'aria-pressed': 'false',
|
|
6683
6676
|
'aria-label': this.parent.getAnnouncementString(record)
|
|
6684
6677
|
}
|
|
6685
6678
|
});
|
|
@@ -7581,7 +7574,7 @@ class MonthEvent extends EventBase {
|
|
|
7581
7574
|
const attrs = {
|
|
7582
7575
|
'data-id': 'Appointment_' + record[this.fields.id],
|
|
7583
7576
|
'role': 'button', 'tabindex': '0',
|
|
7584
|
-
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
|
|
7577
|
+
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
|
|
7585
7578
|
'aria-label': this.parent.getAnnouncementString(newRecord, eventSubject)
|
|
7586
7579
|
};
|
|
7587
7580
|
if (!isCloneElement) {
|
|
@@ -9067,7 +9060,7 @@ class QuickPopups {
|
|
|
9067
9060
|
'data-id': '' + eventData[fields.id],
|
|
9068
9061
|
'data-guid': eventData.Guid, 'role': 'button', 'tabindex': '0',
|
|
9069
9062
|
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(eventData),
|
|
9070
|
-
'aria-
|
|
9063
|
+
'aria-label': this.parent.getAnnouncementString(eventData)
|
|
9071
9064
|
}
|
|
9072
9065
|
});
|
|
9073
9066
|
let templateElement;
|
|
@@ -9136,7 +9129,7 @@ class QuickPopups {
|
|
|
9136
9129
|
if (deleteIcon) {
|
|
9137
9130
|
this.renderButton('e-flat e-round e-small', ICON + ' ' + DELETE_ICON_CLASS, deleteAction, deleteIcon, this.deleteClick);
|
|
9138
9131
|
}
|
|
9139
|
-
this.beforeQuickPopupOpen(target);
|
|
9132
|
+
this.beforeQuickPopupOpen(target, e);
|
|
9140
9133
|
}
|
|
9141
9134
|
isCellBlocked(args) {
|
|
9142
9135
|
const tempObj = {};
|
|
@@ -9223,7 +9216,7 @@ class QuickPopups {
|
|
|
9223
9216
|
this.quickPopup.content = quickCellPopup;
|
|
9224
9217
|
this.quickPopup.relateTo = target;
|
|
9225
9218
|
this.quickPopup.dataBind();
|
|
9226
|
-
this.beforeQuickPopupOpen(target);
|
|
9219
|
+
this.beforeQuickPopupOpen(target, args.event);
|
|
9227
9220
|
}
|
|
9228
9221
|
isSameEventClick(events) {
|
|
9229
9222
|
const isSameTarget = this.quickPopup.relateTo === closest(events.element, '.' + APPOINTMENT_CLASS);
|
|
@@ -9300,7 +9293,7 @@ class QuickPopups {
|
|
|
9300
9293
|
this.quickPopup.relateTo = this.parent.isAdaptive ? document.body :
|
|
9301
9294
|
closest(events.element, '.' + APPOINTMENT_CLASS);
|
|
9302
9295
|
this.quickPopup.dataBind();
|
|
9303
|
-
this.beforeQuickPopupOpen(events.element);
|
|
9296
|
+
this.beforeQuickPopupOpen(events.element, events.originalEvent);
|
|
9304
9297
|
}
|
|
9305
9298
|
}
|
|
9306
9299
|
getPopupHeader(headerType, headerData) {
|
|
@@ -9574,15 +9567,16 @@ class QuickPopups {
|
|
|
9574
9567
|
this.morePopup.relateTo = closest(target, '.' + WORK_CELLS_CLASS);
|
|
9575
9568
|
}
|
|
9576
9569
|
}
|
|
9577
|
-
this.parent.renderTemplates()
|
|
9578
|
-
|
|
9579
|
-
|
|
9580
|
-
|
|
9581
|
-
|
|
9582
|
-
|
|
9583
|
-
|
|
9584
|
-
|
|
9585
|
-
|
|
9570
|
+
this.parent.renderTemplates(() => {
|
|
9571
|
+
const eventProp = {
|
|
9572
|
+
type: 'EventContainer', cancel: false,
|
|
9573
|
+
element: this.morePopup.element, data: data
|
|
9574
|
+
};
|
|
9575
|
+
this.parent.trigger(popupOpen, eventProp, (popupArgs) => {
|
|
9576
|
+
if (!popupArgs.cancel) {
|
|
9577
|
+
this.morePopup.show();
|
|
9578
|
+
}
|
|
9579
|
+
});
|
|
9586
9580
|
});
|
|
9587
9581
|
}
|
|
9588
9582
|
saveClick(event) {
|
|
@@ -9772,70 +9766,94 @@ class QuickPopups {
|
|
|
9772
9766
|
}
|
|
9773
9767
|
});
|
|
9774
9768
|
}
|
|
9775
|
-
beforeQuickPopupOpen(target) {
|
|
9776
|
-
this.parent.renderTemplates()
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
|
|
9790
|
-
|
|
9791
|
-
|
|
9792
|
-
}
|
|
9793
|
-
else {
|
|
9794
|
-
const display = this.quickPopup.element.style.display;
|
|
9795
|
-
this.quickPopup.element.style.display = 'block';
|
|
9796
|
-
if (this.parent.isAdaptive) {
|
|
9797
|
-
this.quickPopup.element.removeAttribute('style');
|
|
9798
|
-
this.quickPopup.element.style.display = 'block';
|
|
9799
|
-
this.quickPopup.element.style.height = formatUnit((popupType === 'EditEventInfo') ? 65 : window.innerHeight);
|
|
9769
|
+
beforeQuickPopupOpen(target, originalEvent) {
|
|
9770
|
+
this.parent.renderTemplates(() => {
|
|
9771
|
+
const isEventPopup = this.quickPopup.element.querySelector('.' + EVENT_POPUP_CLASS);
|
|
9772
|
+
const popupType = this.parent.isAdaptive ? isEventPopup ? 'ViewEventInfo' : 'EditEventInfo' : 'QuickInfo';
|
|
9773
|
+
const eventProp = {
|
|
9774
|
+
type: popupType, cancel: false, data: extend({}, this.getDataFromTarget(target), null, true),
|
|
9775
|
+
target: target, element: this.quickPopup.element
|
|
9776
|
+
};
|
|
9777
|
+
this.parent.trigger(popupOpen, eventProp, (popupArgs) => {
|
|
9778
|
+
if (popupArgs.cancel) {
|
|
9779
|
+
this.quickPopupHide();
|
|
9780
|
+
this.destroyPopupButtons('quickPopup');
|
|
9781
|
+
if (popupArgs.element.classList.contains(POPUP_OPEN)) {
|
|
9782
|
+
this.quickPopupClose();
|
|
9783
|
+
}
|
|
9784
|
+
removeChildren(this.quickPopup.element);
|
|
9785
|
+
this.isMultipleEventSelect = false;
|
|
9800
9786
|
}
|
|
9801
9787
|
else {
|
|
9802
|
-
const
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
9810
|
-
|
|
9811
|
-
|
|
9812
|
-
this.
|
|
9813
|
-
|
|
9814
|
-
|
|
9815
|
-
|
|
9788
|
+
const display = this.quickPopup.element.style.display;
|
|
9789
|
+
this.quickPopup.element.style.display = 'block';
|
|
9790
|
+
if (this.parent.isAdaptive) {
|
|
9791
|
+
this.quickPopup.element.removeAttribute('style');
|
|
9792
|
+
this.quickPopup.element.style.display = 'block';
|
|
9793
|
+
this.quickPopup.element.style.height = formatUnit((popupType === 'EditEventInfo') ? 65 : window.innerHeight);
|
|
9794
|
+
}
|
|
9795
|
+
else {
|
|
9796
|
+
const isVirtualScroll = this.parent.virtualScrollModule && this.parent.virtualScrollModule.isHorizontalScroll
|
|
9797
|
+
&& !isNullOrUndefined(closest(target, '.' + CONTENT_TABLE_CLASS));
|
|
9798
|
+
const conTable = this.parent.element.querySelector('.' + CONTENT_WRAP_CLASS + ' table');
|
|
9799
|
+
this.quickPopup.offsetX = isVirtualScroll && !this.parent.enableRtl ? (getTranslateX(conTable) + 10) : 10;
|
|
9800
|
+
this.quickPopup.offsetY = this.parent.virtualScrollModule && !this.parent.virtualScrollModule.isHorizontalScroll ?
|
|
9801
|
+
this.quickPopup.offsetY : 0;
|
|
9802
|
+
this.quickPopup.collision = { X: this.parent.enableRtl ? 'flip' : 'none', Y: 'fit' };
|
|
9803
|
+
this.quickPopup.position = { X: this.parent.enableRtl ? 'left' : 'right', Y: this.parent.enableRtl ? 'bottom' : 'top' };
|
|
9816
9804
|
this.quickPopup.dataBind();
|
|
9817
9805
|
this.quickPopup.refreshPosition(null, true);
|
|
9818
|
-
const
|
|
9819
|
-
if (
|
|
9820
|
-
this.quickPopup.
|
|
9821
|
-
this.
|
|
9822
|
-
|
|
9806
|
+
const collide = isCollide(this.quickPopup.element, this.parent.element);
|
|
9807
|
+
if (collide.indexOf(this.parent.enableRtl ? 'left' : 'right') > -1) {
|
|
9808
|
+
this.quickPopup.offsetX = -target.offsetWidth - 10 - this.quickPopup.element.offsetWidth;
|
|
9809
|
+
if (isVirtualScroll && !this.parent.enableRtl) {
|
|
9810
|
+
this.quickPopup.offsetX = getTranslateX(conTable) + this.quickPopup.offsetX;
|
|
9811
|
+
}
|
|
9812
|
+
this.quickPopup.dataBind();
|
|
9813
|
+
this.quickPopup.refreshPosition(null, true);
|
|
9814
|
+
const leftCollide = isCollide(this.quickPopup.element, this.parent.element);
|
|
9815
|
+
if (leftCollide.indexOf('left') > -1) {
|
|
9816
|
+
this.quickPopup.position = { X: 'center', Y: 'center' };
|
|
9817
|
+
this.quickPopup.collision = { X: 'fit', Y: 'fit' };
|
|
9818
|
+
this.quickPopup.offsetX = -(this.quickPopup.element.offsetWidth / 2);
|
|
9819
|
+
this.quickPopup.dataBind();
|
|
9820
|
+
}
|
|
9821
|
+
}
|
|
9822
|
+
if (this.parent.virtualScrollModule && !this.parent.virtualScrollModule.isHorizontalScroll && (collide.indexOf('top') > -1 || collide.indexOf('bottom') > -1)) {
|
|
9823
|
+
const translateY = getTranslateY(conTable);
|
|
9824
|
+
this.quickPopup.offsetY = translateY;
|
|
9823
9825
|
this.quickPopup.dataBind();
|
|
9826
|
+
this.quickPopup.refreshPosition(null, true);
|
|
9827
|
+
}
|
|
9828
|
+
if (this.quickPopup.position.X === 'center' && this.quickPopup.position.Y === 'center' && !isNullOrUndefined(originalEvent)) {
|
|
9829
|
+
const previousOffset = this.quickPopup.offsetY;
|
|
9830
|
+
let collision = isCollide(target, this.quickPopup.element);
|
|
9831
|
+
const popupRect = this.quickPopup.element.getBoundingClientRect();
|
|
9832
|
+
if (collision.indexOf('top') > -1 || collision.indexOf('bottom') > -1) {
|
|
9833
|
+
if (popupRect.top <= originalEvent.clientY && originalEvent.clientY <= popupRect.top + popupRect.height) {
|
|
9834
|
+
this.quickPopup.offsetY = previousOffset - popupRect.height - 10;
|
|
9835
|
+
this.quickPopup.dataBind();
|
|
9836
|
+
collision = isCollide(this.quickPopup.element, this.parent.element);
|
|
9837
|
+
if (collision.indexOf('top') > -1) {
|
|
9838
|
+
this.quickPopup.offsetY = previousOffset + originalEvent.offsetY;
|
|
9839
|
+
this.quickPopup.dataBind();
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9842
|
+
else if (isCollide(this.quickPopup.element, this.parent.element).indexOf('bottom') > -1) {
|
|
9843
|
+
this.quickPopup.offsetY = previousOffset - originalEvent.offsetY - Math.ceil(popupRect.height) - 10;
|
|
9844
|
+
this.quickPopup.dataBind();
|
|
9845
|
+
}
|
|
9846
|
+
}
|
|
9824
9847
|
}
|
|
9825
9848
|
}
|
|
9826
|
-
if (
|
|
9827
|
-
|
|
9828
|
-
this.quickPopup.offsetY = translateY;
|
|
9829
|
-
this.quickPopup.dataBind();
|
|
9849
|
+
if (isEventPopup) {
|
|
9850
|
+
this.applyEventColor();
|
|
9830
9851
|
}
|
|
9852
|
+
this.quickPopup.element.style.display = display;
|
|
9853
|
+
this.quickPopup.dataBind();
|
|
9854
|
+
this.quickPopup.show();
|
|
9831
9855
|
}
|
|
9832
|
-
|
|
9833
|
-
this.applyEventColor();
|
|
9834
|
-
}
|
|
9835
|
-
this.quickPopup.element.style.display = display;
|
|
9836
|
-
this.quickPopup.dataBind();
|
|
9837
|
-
this.quickPopup.show();
|
|
9838
|
-
}
|
|
9856
|
+
});
|
|
9839
9857
|
});
|
|
9840
9858
|
}
|
|
9841
9859
|
applyEventColor() {
|
|
@@ -10183,13 +10201,8 @@ class EventTooltip {
|
|
|
10183
10201
|
startMonthDate = capitalizeFirstWord(startMonthDate, 'single');
|
|
10184
10202
|
startMonthYearDate = capitalizeFirstWord(startMonthYearDate, 'single');
|
|
10185
10203
|
endMonthYearDate = capitalizeFirstWord(endMonthYearDate, 'single');
|
|
10186
|
-
const
|
|
10187
|
-
const
|
|
10188
|
-
type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
|
|
10189
|
-
});
|
|
10190
|
-
const endTime = globalize.formatDate(eventEnd, {
|
|
10191
|
-
type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
|
|
10192
|
-
});
|
|
10204
|
+
const startTime = this.parent.getTimeString(eventStart);
|
|
10205
|
+
const endTime = this.parent.getTimeString(eventEnd);
|
|
10193
10206
|
let tooltipDetails;
|
|
10194
10207
|
if (startDate.getTime() === endDate.getTime()) {
|
|
10195
10208
|
tooltipDetails =
|
|
@@ -11591,8 +11604,9 @@ class EventWindow {
|
|
|
11591
11604
|
const templateId = this.parent.element.id + '_editorTemplate';
|
|
11592
11605
|
const tempEle = [].slice.call(this.parent.getEditorTemplate()(args || {}, this.parent, 'editorTemplate', templateId, false));
|
|
11593
11606
|
append(tempEle, form);
|
|
11594
|
-
this.parent.renderTemplates()
|
|
11595
|
-
|
|
11607
|
+
this.parent.renderTemplates(() => {
|
|
11608
|
+
this.applyFormValidation();
|
|
11609
|
+
});
|
|
11596
11610
|
}
|
|
11597
11611
|
else {
|
|
11598
11612
|
form.appendChild(this.getDefaultEventWindowContent());
|
|
@@ -12523,7 +12537,9 @@ class EventWindow {
|
|
|
12523
12537
|
}
|
|
12524
12538
|
}
|
|
12525
12539
|
if (this.recurrenceEditor && this.recurrenceEditor.value && this.recurrenceEditor.value !== '') {
|
|
12526
|
-
|
|
12540
|
+
if (this.parent.currentAction !== 'EditOccurrence') {
|
|
12541
|
+
alertType = this.recurrenceValidation(eventObj[this.fields.startTime], eventObj[this.fields.endTime], alert);
|
|
12542
|
+
}
|
|
12527
12543
|
let isShowAlert = true;
|
|
12528
12544
|
if (alertType === 'seriesChangeAlert' && this.parent.uiStateValues.isIgnoreOccurrence) {
|
|
12529
12545
|
isShowAlert = false;
|
|
@@ -12746,53 +12762,58 @@ class EventWindow {
|
|
|
12746
12762
|
if (isNullOrUndefined(index)) {
|
|
12747
12763
|
return false;
|
|
12748
12764
|
}
|
|
12765
|
+
const currentStartTime = new Date(+currentData[this.fields.startTime]);
|
|
12766
|
+
const currentEndTime = new Date(+currentData[this.fields.endTime]);
|
|
12767
|
+
if (index !== recurColl.length - 1) {
|
|
12768
|
+
var nextStartTime = new Date(+recurColl[index + 1][this.fields.startTime]);
|
|
12769
|
+
var nextEndTime = new Date(+recurColl[index + 1][this.fields.endTime]);
|
|
12770
|
+
}
|
|
12771
|
+
const lastEndTime = new Date(+recurColl[recurColl.length - 1][this.fields.endTime]);
|
|
12749
12772
|
if (index === 0) {
|
|
12750
12773
|
if (!isNullOrUndefined(recurColl[index + 1])) {
|
|
12751
|
-
if (!(
|
|
12752
|
-
resetTime(
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
this.parent.quickPopup.openRecurrenceValidationAlert('
|
|
12774
|
+
if (!(nextStartTime.getTime() >= currentEndTime.getTime()) &&
|
|
12775
|
+
(resetTime(lastEndTime).getTime() >=
|
|
12776
|
+
resetTime(currentStartTime).getTime()) ||
|
|
12777
|
+
resetTime(lastEndTime).getTime() < resetTime(currentStartTime).getTime()) {
|
|
12778
|
+
this.parent.quickPopup.openRecurrenceValidationAlert('occurrenceAlert');
|
|
12756
12779
|
return true;
|
|
12757
12780
|
}
|
|
12758
|
-
else if (resetTime(
|
|
12759
|
-
resetTime(
|
|
12760
|
-
this.parent.quickPopup.openRecurrenceValidationAlert('
|
|
12781
|
+
else if (!(resetTime(currentStartTime).getTime() <
|
|
12782
|
+
resetTime(nextStartTime).getTime())) {
|
|
12783
|
+
this.parent.quickPopup.openRecurrenceValidationAlert('sameDayAlert');
|
|
12761
12784
|
return true;
|
|
12762
12785
|
}
|
|
12763
12786
|
}
|
|
12764
12787
|
return false;
|
|
12765
12788
|
}
|
|
12766
12789
|
else {
|
|
12790
|
+
const previousStartTime = new Date(+recurColl[index - 1][this.fields.startTime]);
|
|
12791
|
+
const previousEndTime = new Date(+recurColl[index - 1][this.fields.endTime]);
|
|
12767
12792
|
if (index === recurColl.length - 1) {
|
|
12768
|
-
if (
|
|
12769
|
-
resetTime(
|
|
12770
|
-
|
|
12771
|
-
resetTime(new Date(+currentData[this.fields.endTime])).getTime())) {
|
|
12772
|
-
this.parent.quickPopup.openRecurrenceValidationAlert('sameDayAlert');
|
|
12793
|
+
if (resetTime(new Date(+recurColl[(recurColl.length - 1) - index][this.fields.startTime])).getTime() >
|
|
12794
|
+
resetTime(currentStartTime).getTime()) {
|
|
12795
|
+
this.parent.quickPopup.openRecurrenceValidationAlert('occurrenceAlert');
|
|
12773
12796
|
return true;
|
|
12774
12797
|
}
|
|
12775
|
-
else if (
|
|
12776
|
-
resetTime(
|
|
12777
|
-
this.parent.quickPopup.openRecurrenceValidationAlert('
|
|
12798
|
+
else if (!((previousEndTime.getTime() <= currentStartTime.getTime()) &&
|
|
12799
|
+
(resetTime(currentStartTime).getTime() > resetTime(previousStartTime).getTime()))) {
|
|
12800
|
+
this.parent.quickPopup.openRecurrenceValidationAlert('sameDayAlert');
|
|
12778
12801
|
return true;
|
|
12779
12802
|
}
|
|
12780
12803
|
}
|
|
12781
|
-
else if (!(((resetTime(
|
|
12782
|
-
resetTime(new Date(+
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
resetTime(new Date(+currentData[this.fields.endTime])).getTime()) ||
|
|
12787
|
-
(resetTime(new Date(+recurColl[recurColl.length - 1][this.fields.endTime])).getTime() <
|
|
12788
|
-
resetTime(new Date(+currentData[this.fields.startTime])).getTime())))) {
|
|
12804
|
+
else if (!(((resetTime(previousStartTime).getTime() < resetTime(currentStartTime).getTime()) ||
|
|
12805
|
+
resetTime(new Date(+recurColl[0][this.fields.startTime])).getTime() >
|
|
12806
|
+
resetTime(currentStartTime).getTime()) &&
|
|
12807
|
+
((resetTime(nextStartTime).getTime() > resetTime(currentStartTime).getTime()) ||
|
|
12808
|
+
(lastEndTime.getTime() < currentStartTime.getTime())))) {
|
|
12789
12809
|
this.parent.quickPopup.openRecurrenceValidationAlert('sameDayAlert');
|
|
12790
12810
|
return true;
|
|
12791
12811
|
}
|
|
12792
|
-
else if ((
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12812
|
+
else if (!(previousEndTime.getTime() <= currentStartTime.getTime() && nextStartTime.getTime() >
|
|
12813
|
+
currentEndTime.getTime()) || (resetTime(nextEndTime).getTime() <
|
|
12814
|
+
resetTime(currentStartTime).getTime()) ||
|
|
12815
|
+
(resetTime(previousStartTime).getTime() > resetTime(currentEndTime).getTime()) ||
|
|
12816
|
+
!(resetTime(currentStartTime).getTime() < resetTime(nextStartTime).getTime())) {
|
|
12796
12817
|
this.parent.quickPopup.openRecurrenceValidationAlert('occurrenceAlert');
|
|
12797
12818
|
return true;
|
|
12798
12819
|
}
|
|
@@ -15911,12 +15932,16 @@ let Schedule = class Schedule extends Component {
|
|
|
15911
15932
|
/**
|
|
15912
15933
|
* Method to render react templates
|
|
15913
15934
|
*
|
|
15935
|
+
* @param {Function} callBack - specifies the callBack method
|
|
15914
15936
|
* @returns {void}
|
|
15915
15937
|
* @private
|
|
15916
15938
|
*/
|
|
15917
|
-
renderTemplates() {
|
|
15939
|
+
renderTemplates(callback) {
|
|
15918
15940
|
if (this.isReact) {
|
|
15919
|
-
this.renderReactTemplates();
|
|
15941
|
+
this.renderReactTemplates(callback);
|
|
15942
|
+
}
|
|
15943
|
+
else if (callback) {
|
|
15944
|
+
callback();
|
|
15920
15945
|
}
|
|
15921
15946
|
}
|
|
15922
15947
|
/**
|
|
@@ -19993,7 +20018,7 @@ class YearEvent extends TimelineEvent {
|
|
|
19993
20018
|
'data-id': 'Appointment_' + record[this.fields.id],
|
|
19994
20019
|
'data-guid': record.Guid,
|
|
19995
20020
|
'role': 'button', 'tabindex': '0',
|
|
19996
|
-
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
|
|
20021
|
+
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
|
|
19997
20022
|
'aria-label': this.parent.getAnnouncementString(record)
|
|
19998
20023
|
}
|
|
19999
20024
|
});
|
|
@@ -24021,7 +24046,6 @@ class AgendaBase extends ViewBase {
|
|
|
24021
24046
|
'role': 'button',
|
|
24022
24047
|
'tabindex': '0',
|
|
24023
24048
|
'aria-disabled': this.parent.eventBase.getReadonlyAttribute(listData[parseInt(li.toString(), 10)]),
|
|
24024
|
-
'aria-pressed': 'false',
|
|
24025
24049
|
'aria-label': this.parent.getAnnouncementString(listData[parseInt(li.toString(), 10)])
|
|
24026
24050
|
}
|
|
24027
24051
|
});
|