@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.
@@ -9088,7 +9088,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9088
9088
  this.renderQuickDialog();
9089
9089
  };
9090
9090
  QuickPopups.prototype.renderQuickPopup = function () {
9091
- var quickPopupWrapper = createElement('div', { className: POPUP_WRAPPER_CLASS + ' e-popup-close' });
9091
+ var quickPopupWrapper = createElement('div', { className: POPUP_WRAPPER_CLASS + ' e-popup-close', attrs: { role: 'dialog' } });
9092
9092
  if (this.parent.isAdaptive) {
9093
9093
  document.body.appendChild(quickPopupWrapper);
9094
9094
  addClass([quickPopupWrapper], DEVICE_CLASS);
@@ -9511,6 +9511,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9511
9511
  quickCellPopup.appendChild(this.getPopupHeader('Cell', temp));
9512
9512
  quickCellPopup.appendChild(this.getPopupContent('Cell', args, temp));
9513
9513
  quickCellPopup.appendChild(this.getPopupFooter('Cell', temp));
9514
+ this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('newEvent'));
9514
9515
  var subjectElement = quickCellPopup.querySelector('.' + SUBJECT_CLASS);
9515
9516
  if (subjectElement) {
9516
9517
  Input.createInput({ element: subjectElement, properties: { placeholder: this.l10n.getConstant('addTitle') } });
@@ -9582,6 +9583,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
9582
9583
  quickEventPopup.appendChild(this.getPopupHeader('Event', eventData));
9583
9584
  quickEventPopup.appendChild(this.getPopupContent('Event', events, eventData));
9584
9585
  quickEventPopup.appendChild(this.getPopupFooter('Event', eventData));
9586
+ this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('editEvent'));
9585
9587
  var readonly = this.parent.activeViewOptions.readonly || eventData[this.parent.eventFields.isReadonly];
9586
9588
  var editAction = !this.parent.eventSettings.allowEditing || readonly;
9587
9589
  var deleteAction = !this.parent.eventSettings.allowDeleting || readonly;
@@ -27514,6 +27516,19 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
27514
27516
  var events = [];
27515
27517
  var uId = 'UID';
27516
27518
  var calArray = iCalString.replace(new RegExp('\\r', 'g'), '').split('\n');
27519
+ var descriptionIndex = calArray.findIndex(function (line) { return line.startsWith('DESCRIPTION:'); });
27520
+ if (descriptionIndex !== -1) {
27521
+ var description = calArray[descriptionIndex].substring('DESCRIPTION:'.length);
27522
+ for (var i = descriptionIndex + 1; i < calArray.length; i++) {
27523
+ if (calArray[i].startsWith(' ') || !(/[A-Z]{3}:/.test(calArray[i]))) {
27524
+ description += calArray[i];
27525
+ }
27526
+ else {
27527
+ calArray[descriptionIndex] = 'DESCRIPTION:' + description;
27528
+ break;
27529
+ }
27530
+ }
27531
+ }
27517
27532
  var isEvent = false;
27518
27533
  var curEvent;
27519
27534
  // eslint-disable-next-line prefer-const
@@ -27581,7 +27596,10 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
27581
27596
  curEvent[fields.location] = value;
27582
27597
  break;
27583
27598
  case 'DESCRIPTION':
27584
- curEvent[fields.description] = value;
27599
+ if (!(curEvent[fields.description])) {
27600
+ curEvent[fields.description] = value.replace(/\\,/g, ',')
27601
+ .replace(/\\n/g, '\n');
27602
+ }
27585
27603
  break;
27586
27604
  case 'ISREADONLY':
27587
27605
  curEvent[fields.isReadonly] = (value.indexOf('true') > -1);