@syncfusion/ej2-schedule 22.2.8 → 22.2.11

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.
@@ -8876,7 +8876,7 @@ class QuickPopups {
8876
8876
  this.renderQuickDialog();
8877
8877
  }
8878
8878
  renderQuickPopup() {
8879
- const quickPopupWrapper = createElement('div', { className: POPUP_WRAPPER_CLASS + ' e-popup-close' });
8879
+ const quickPopupWrapper = createElement('div', { className: POPUP_WRAPPER_CLASS + ' e-popup-close', attrs: { role: 'dialog' } });
8880
8880
  if (this.parent.isAdaptive) {
8881
8881
  document.body.appendChild(quickPopupWrapper);
8882
8882
  addClass([quickPopupWrapper], DEVICE_CLASS);
@@ -9292,6 +9292,7 @@ class QuickPopups {
9292
9292
  quickCellPopup.appendChild(this.getPopupHeader('Cell', temp));
9293
9293
  quickCellPopup.appendChild(this.getPopupContent('Cell', args, temp));
9294
9294
  quickCellPopup.appendChild(this.getPopupFooter('Cell', temp));
9295
+ this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('newEvent'));
9295
9296
  const subjectElement = quickCellPopup.querySelector('.' + SUBJECT_CLASS);
9296
9297
  if (subjectElement) {
9297
9298
  Input.createInput({ element: subjectElement, properties: { placeholder: this.l10n.getConstant('addTitle') } });
@@ -9363,6 +9364,7 @@ class QuickPopups {
9363
9364
  quickEventPopup.appendChild(this.getPopupHeader('Event', eventData));
9364
9365
  quickEventPopup.appendChild(this.getPopupContent('Event', events, eventData));
9365
9366
  quickEventPopup.appendChild(this.getPopupFooter('Event', eventData));
9367
+ this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('editEvent'));
9366
9368
  const readonly = this.parent.activeViewOptions.readonly || eventData[this.parent.eventFields.isReadonly];
9367
9369
  const editAction = !this.parent.eventSettings.allowEditing || readonly;
9368
9370
  const deleteAction = !this.parent.eventSettings.allowDeleting || readonly;
@@ -26488,6 +26490,19 @@ class ICalendarImport {
26488
26490
  const events = [];
26489
26491
  const uId = 'UID';
26490
26492
  const calArray = iCalString.replace(new RegExp('\\r', 'g'), '').split('\n');
26493
+ const descriptionIndex = calArray.findIndex((line) => line.startsWith('DESCRIPTION:'));
26494
+ if (descriptionIndex !== -1) {
26495
+ let description = calArray[descriptionIndex].substring('DESCRIPTION:'.length);
26496
+ for (let i = descriptionIndex + 1; i < calArray.length; i++) {
26497
+ if (calArray[i].startsWith(' ') || !(/[A-Z]{3}:/.test(calArray[i]))) {
26498
+ description += calArray[i];
26499
+ }
26500
+ else {
26501
+ calArray[descriptionIndex] = 'DESCRIPTION:' + description;
26502
+ break;
26503
+ }
26504
+ }
26505
+ }
26491
26506
  let isEvent = false;
26492
26507
  let curEvent;
26493
26508
  // eslint-disable-next-line prefer-const
@@ -26555,7 +26570,10 @@ class ICalendarImport {
26555
26570
  curEvent[fields.location] = value;
26556
26571
  break;
26557
26572
  case 'DESCRIPTION':
26558
- curEvent[fields.description] = value;
26573
+ if (!(curEvent[fields.description])) {
26574
+ curEvent[fields.description] = value.replace(/\\,/g, ',')
26575
+ .replace(/\\n/g, '\n');
26576
+ }
26559
26577
  break;
26560
26578
  case 'ISREADONLY':
26561
26579
  curEvent[fields.isReadonly] = (value.indexOf('true') > -1);