@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.
@@ -5716,20 +5716,12 @@ var EventBase = /** @__PURE__ @class */ (function () {
5716
5716
  };
5717
5717
  EventBase.prototype.removeSelectedAppointmentClass = function () {
5718
5718
  var selectedAppointments = this.getSelectedAppointments();
5719
- for (var _i = 0, selectedAppointments_1 = selectedAppointments; _i < selectedAppointments_1.length; _i++) {
5720
- var appointment = selectedAppointments_1[_i];
5721
- appointment.setAttribute('aria-pressed', 'false');
5722
- }
5723
5719
  removeClass(selectedAppointments, APPOINTMENT_BORDER);
5724
5720
  if (this.parent.currentView === 'Agenda' || this.parent.currentView === 'MonthAgenda') {
5725
5721
  removeClass(selectedAppointments, AGENDA_SELECTED_CELL);
5726
5722
  }
5727
5723
  };
5728
5724
  EventBase.prototype.addSelectedAppointments = function (cells) {
5729
- for (var _i = 0, cells_1 = cells; _i < cells_1.length; _i++) {
5730
- var cell = cells_1[_i];
5731
- cell.setAttribute('aria-pressed', 'true');
5732
- }
5733
5725
  if (this.parent.currentView !== 'MonthAgenda') {
5734
5726
  this.parent.removeSelectedClass();
5735
5727
  }
@@ -6293,7 +6285,7 @@ var EventBase = /** @__PURE__ @class */ (function () {
6293
6285
  className: BLOCK_APPOINTMENT_CLASS,
6294
6286
  attrs: {
6295
6287
  'data-id': 'Appointment_' + record[this.parent.eventFields.id],
6296
- 'aria-disabled': 'true', 'aria-pressed': 'false'
6288
+ 'aria-disabled': 'true'
6297
6289
  }
6298
6290
  });
6299
6291
  var templateElement;
@@ -6814,7 +6806,6 @@ var VerticalEvent = /** @__PURE__ @class */ (function (_super) {
6814
6806
  'role': 'button',
6815
6807
  'tabindex': '0',
6816
6808
  'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
6817
- 'aria-pressed': 'false',
6818
6809
  'aria-label': this.parent.getAnnouncementString(record)
6819
6810
  }
6820
6811
  });
@@ -7758,7 +7749,7 @@ var MonthEvent = /** @__PURE__ @class */ (function (_super) {
7758
7749
  var attrs = {
7759
7750
  'data-id': 'Appointment_' + record[this.fields.id],
7760
7751
  'role': 'button', 'tabindex': '0',
7761
- 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record), 'aria-pressed': 'false',
7752
+ 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
7762
7753
  'aria-label': this.parent.getAnnouncementString(newRecord, eventSubject)
7763
7754
  };
7764
7755
  if (!isCloneElement) {
@@ -9282,7 +9273,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9282
9273
  'data-id': '' + eventData[fields.id],
9283
9274
  'data-guid': eventData.Guid, 'role': 'button', 'tabindex': '0',
9284
9275
  'aria-disabled': this_1.parent.eventBase.getReadonlyAttribute(eventData),
9285
- 'aria-pressed': 'false', 'aria-label': this_1.parent.getAnnouncementString(eventData)
9276
+ 'aria-label': this_1.parent.getAnnouncementString(eventData)
9286
9277
  }
9287
9278
  });
9288
9279
  var templateElement = void 0;
@@ -10415,13 +10406,8 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
10415
10406
  startMonthDate = capitalizeFirstWord(startMonthDate, 'single');
10416
10407
  startMonthYearDate = capitalizeFirstWord(startMonthYearDate, 'single');
10417
10408
  endMonthYearDate = capitalizeFirstWord(endMonthYearDate, 'single');
10418
- var skeleton = 'short';
10419
- var startTime = globalize.formatDate(eventStart, {
10420
- type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
10421
- });
10422
- var endTime = globalize.formatDate(eventEnd, {
10423
- type: 'time', skeleton: skeleton, calendar: this.parent.getCalendarMode()
10424
- });
10409
+ var startTime = this.parent.getTimeString(eventStart);
10410
+ var endTime = this.parent.getTimeString(eventEnd);
10425
10411
  var tooltipDetails = void 0;
10426
10412
  if (startDate.getTime() === endDate.getTime()) {
10427
10413
  tooltipDetails =
@@ -20705,7 +20691,7 @@ var YearEvent = /** @__PURE__ @class */ (function (_super) {
20705
20691
  'data-id': 'Appointment_' + record[this.fields.id],
20706
20692
  'data-guid': record.Guid,
20707
20693
  'role': 'button', 'tabindex': '0',
20708
- 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record), 'aria-pressed': 'false',
20694
+ 'aria-disabled': this.parent.eventBase.getReadonlyAttribute(record),
20709
20695
  'aria-label': this.parent.getAnnouncementString(record)
20710
20696
  }
20711
20697
  });
@@ -24918,7 +24904,6 @@ var AgendaBase = /** @__PURE__ @class */ (function (_super) {
24918
24904
  'role': 'button',
24919
24905
  'tabindex': '0',
24920
24906
  'aria-disabled': _this.parent.eventBase.getReadonlyAttribute(listData[parseInt(li.toString(), 10)]),
24921
- 'aria-pressed': 'false',
24922
24907
  'aria-label': _this.parent.getAnnouncementString(listData[parseInt(li.toString(), 10)])
24923
24908
  }
24924
24909
  });