@syncfusion/ej2-schedule 20.4.42 → 20.4.43

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.
@@ -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', 'aria-pressed': 'false'
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), 'aria-pressed': 'false',
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-pressed': 'false', 'aria-label': this.parent.getAnnouncementString(eventData)
9063
+ 'aria-label': this.parent.getAnnouncementString(eventData)
9071
9064
  }
9072
9065
  });
9073
9066
  let templateElement;
@@ -10183,13 +10176,8 @@ class EventTooltip {
10183
10176
  startMonthDate = capitalizeFirstWord(startMonthDate, 'single');
10184
10177
  startMonthYearDate = capitalizeFirstWord(startMonthYearDate, 'single');
10185
10178
  endMonthYearDate = capitalizeFirstWord(endMonthYearDate, 'single');
10186
- const skeleton = 'short';
10187
- const startTime = globalize.formatDate(eventStart, {
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
- });
10179
+ const startTime = this.parent.getTimeString(eventStart);
10180
+ const endTime = this.parent.getTimeString(eventEnd);
10193
10181
  let tooltipDetails;
10194
10182
  if (startDate.getTime() === endDate.getTime()) {
10195
10183
  tooltipDetails =
@@ -19993,7 +19981,7 @@ class YearEvent extends TimelineEvent {
19993
19981
  'data-id': 'Appointment_' + record[this.fields.id],
19994
19982
  'data-guid': record.Guid,
19995
19983
  'role': 'button', 'tabindex': '0',
19996
- 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record), 'aria-pressed': 'false',
19984
+ 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
19997
19985
  'aria-label': this.parent.getAnnouncementString(record)
19998
19986
  }
19999
19987
  });
@@ -24021,7 +24009,6 @@ class AgendaBase extends ViewBase {
24021
24009
  'role': 'button',
24022
24010
  'tabindex': '0',
24023
24011
  'aria-disabled': this.parent.eventBase.getReadonlyAttribute(listData[parseInt(li.toString(), 10)]),
24024
- 'aria-pressed': 'false',
24025
24012
  'aria-label': this.parent.getAnnouncementString(listData[parseInt(li.toString(), 10)])
24026
24013
  }
24027
24014
  });