@syncfusion/ej2-schedule 22.2.5 → 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.
- package/CHANGELOG.md +15 -3
- 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 +25 -4
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +25 -4
- 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 +13 -13
- package/src/schedule/base/util.js +5 -2
- package/src/schedule/exports/calendar-import.js +17 -1
- package/src/schedule/popups/quick-popups.js +3 -1
- package/styles/material.css +1 -1
- package/styles/recurrence-editor/material.css +1 -1
- package/styles/schedule/material.css +1 -1
|
@@ -361,7 +361,7 @@ function getDateFromString(date) {
|
|
|
361
361
|
/** @private */
|
|
362
362
|
var scrollWidth = null;
|
|
363
363
|
/** @private */
|
|
364
|
-
var pixelRatio =
|
|
364
|
+
var pixelRatio = null;
|
|
365
365
|
/**
|
|
366
366
|
* Method to get scrollbar width
|
|
367
367
|
*
|
|
@@ -372,6 +372,9 @@ function getScrollBarWidth() {
|
|
|
372
372
|
if (scrollWidth !== null) {
|
|
373
373
|
return scrollWidth;
|
|
374
374
|
}
|
|
375
|
+
if (pixelRatio === null) {
|
|
376
|
+
pixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
377
|
+
}
|
|
375
378
|
var divNode = createElement('div');
|
|
376
379
|
var value = 0;
|
|
377
380
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -389,7 +392,7 @@ function getScrollBarWidth() {
|
|
|
389
392
|
*/
|
|
390
393
|
function resetScrollbarWidth() {
|
|
391
394
|
var zoomPixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
392
|
-
if (pixelRatio
|
|
395
|
+
if (pixelRatio && pixelRatio !== zoomPixelRatio) {
|
|
393
396
|
scrollWidth = null;
|
|
394
397
|
pixelRatio = zoomPixelRatio;
|
|
395
398
|
}
|
|
@@ -9085,7 +9088,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
|
|
|
9085
9088
|
this.renderQuickDialog();
|
|
9086
9089
|
};
|
|
9087
9090
|
QuickPopups.prototype.renderQuickPopup = function () {
|
|
9088
|
-
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' } });
|
|
9089
9092
|
if (this.parent.isAdaptive) {
|
|
9090
9093
|
document.body.appendChild(quickPopupWrapper);
|
|
9091
9094
|
addClass([quickPopupWrapper], DEVICE_CLASS);
|
|
@@ -9508,6 +9511,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
|
|
|
9508
9511
|
quickCellPopup.appendChild(this.getPopupHeader('Cell', temp));
|
|
9509
9512
|
quickCellPopup.appendChild(this.getPopupContent('Cell', args, temp));
|
|
9510
9513
|
quickCellPopup.appendChild(this.getPopupFooter('Cell', temp));
|
|
9514
|
+
this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('newEvent'));
|
|
9511
9515
|
var subjectElement = quickCellPopup.querySelector('.' + SUBJECT_CLASS);
|
|
9512
9516
|
if (subjectElement) {
|
|
9513
9517
|
Input.createInput({ element: subjectElement, properties: { placeholder: this.l10n.getConstant('addTitle') } });
|
|
@@ -9579,6 +9583,7 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
|
|
|
9579
9583
|
quickEventPopup.appendChild(this.getPopupHeader('Event', eventData));
|
|
9580
9584
|
quickEventPopup.appendChild(this.getPopupContent('Event', events, eventData));
|
|
9581
9585
|
quickEventPopup.appendChild(this.getPopupFooter('Event', eventData));
|
|
9586
|
+
this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('editEvent'));
|
|
9582
9587
|
var readonly = this.parent.activeViewOptions.readonly || eventData[this.parent.eventFields.isReadonly];
|
|
9583
9588
|
var editAction = !this.parent.eventSettings.allowEditing || readonly;
|
|
9584
9589
|
var deleteAction = !this.parent.eventSettings.allowDeleting || readonly;
|
|
@@ -27511,6 +27516,19 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
|
|
|
27511
27516
|
var events = [];
|
|
27512
27517
|
var uId = 'UID';
|
|
27513
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
|
+
}
|
|
27514
27532
|
var isEvent = false;
|
|
27515
27533
|
var curEvent;
|
|
27516
27534
|
// eslint-disable-next-line prefer-const
|
|
@@ -27578,7 +27596,10 @@ var ICalendarImport = /** @__PURE__ @class */ (function () {
|
|
|
27578
27596
|
curEvent[fields.location] = value;
|
|
27579
27597
|
break;
|
|
27580
27598
|
case 'DESCRIPTION':
|
|
27581
|
-
curEvent[fields.description]
|
|
27599
|
+
if (!(curEvent[fields.description])) {
|
|
27600
|
+
curEvent[fields.description] = value.replace(/\\,/g, ',')
|
|
27601
|
+
.replace(/\\n/g, '\n');
|
|
27602
|
+
}
|
|
27582
27603
|
break;
|
|
27583
27604
|
case 'ISREADONLY':
|
|
27584
27605
|
curEvent[fields.isReadonly] = (value.indexOf('true') > -1);
|