@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
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 22.2.
|
|
3
|
+
* version : 22.2.11
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-schedule@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-schedule@22.
|
|
3
|
+
"_id": "@syncfusion/ej2-schedule@22.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-Kx0CfzH9nk0XZaYgJGZpQXWGCWARyl7WB9pF2s8F7U749gjOQ/9T/+jYXY/9ViAcoH0YKgy1LsvCy1fl2Pa6cQ==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-schedule",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"/@syncfusion/ej2-react-schedule",
|
|
24
24
|
"/@syncfusion/ej2-vue-schedule"
|
|
25
25
|
],
|
|
26
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-22.
|
|
27
|
-
"_shasum": "
|
|
26
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-22.2.8.tgz",
|
|
27
|
+
"_shasum": "d4abd42dfb2c617501dbb6a65a870fd9e915774e",
|
|
28
28
|
"_spec": "@syncfusion/ej2-schedule@*",
|
|
29
29
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
30
30
|
"author": {
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"bundleDependencies": false,
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@syncfusion/ej2-base": "~22.2.
|
|
39
|
-
"@syncfusion/ej2-buttons": "~22.2.
|
|
40
|
-
"@syncfusion/ej2-calendars": "~22.2.
|
|
38
|
+
"@syncfusion/ej2-base": "~22.2.10",
|
|
39
|
+
"@syncfusion/ej2-buttons": "~22.2.9",
|
|
40
|
+
"@syncfusion/ej2-calendars": "~22.2.11",
|
|
41
41
|
"@syncfusion/ej2-data": "~22.2.5",
|
|
42
|
-
"@syncfusion/ej2-dropdowns": "~22.2.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~22.2.11",
|
|
43
43
|
"@syncfusion/ej2-excel-export": "~22.2.5",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~22.2.
|
|
45
|
-
"@syncfusion/ej2-lists": "~22.2.
|
|
46
|
-
"@syncfusion/ej2-navigations": "~22.2.
|
|
47
|
-
"@syncfusion/ej2-popups": "~22.2.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~22.2.9",
|
|
45
|
+
"@syncfusion/ej2-lists": "~22.2.11",
|
|
46
|
+
"@syncfusion/ej2-navigations": "~22.2.11",
|
|
47
|
+
"@syncfusion/ej2-popups": "~22.2.11"
|
|
48
48
|
},
|
|
49
49
|
"deprecated": false,
|
|
50
50
|
"description": "Flexible scheduling library with more built-in features and enhanced customization options similar to outlook and google calendar, allowing the users to plan and manage their appointments with efficient data-binding support.",
|
|
@@ -73,6 +73,6 @@
|
|
|
73
73
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
74
74
|
},
|
|
75
75
|
"typings": "index.d.ts",
|
|
76
|
-
"version": "22.2.
|
|
76
|
+
"version": "22.2.11",
|
|
77
77
|
"sideEffects": false
|
|
78
78
|
}
|
|
@@ -272,7 +272,7 @@ export function getDateFromString(date) {
|
|
|
272
272
|
/** @private */
|
|
273
273
|
var scrollWidth = null;
|
|
274
274
|
/** @private */
|
|
275
|
-
var pixelRatio =
|
|
275
|
+
var pixelRatio = null;
|
|
276
276
|
/**
|
|
277
277
|
* Method to get scrollbar width
|
|
278
278
|
*
|
|
@@ -283,6 +283,9 @@ export function getScrollBarWidth() {
|
|
|
283
283
|
if (scrollWidth !== null) {
|
|
284
284
|
return scrollWidth;
|
|
285
285
|
}
|
|
286
|
+
if (pixelRatio === null) {
|
|
287
|
+
pixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
288
|
+
}
|
|
286
289
|
var divNode = createElement('div');
|
|
287
290
|
var value = 0;
|
|
288
291
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -300,7 +303,7 @@ export function getScrollBarWidth() {
|
|
|
300
303
|
*/
|
|
301
304
|
export function resetScrollbarWidth() {
|
|
302
305
|
var zoomPixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
303
|
-
if (pixelRatio
|
|
306
|
+
if (pixelRatio && pixelRatio !== zoomPixelRatio) {
|
|
304
307
|
scrollWidth = null;
|
|
305
308
|
pixelRatio = zoomPixelRatio;
|
|
306
309
|
}
|
|
@@ -29,6 +29,19 @@ var ICalendarImport = /** @class */ (function () {
|
|
|
29
29
|
var events = [];
|
|
30
30
|
var uId = 'UID';
|
|
31
31
|
var calArray = iCalString.replace(new RegExp('\\r', 'g'), '').split('\n');
|
|
32
|
+
var descriptionIndex = calArray.findIndex(function (line) { return line.startsWith('DESCRIPTION:'); });
|
|
33
|
+
if (descriptionIndex !== -1) {
|
|
34
|
+
var description = calArray[descriptionIndex].substring('DESCRIPTION:'.length);
|
|
35
|
+
for (var i = descriptionIndex + 1; i < calArray.length; i++) {
|
|
36
|
+
if (calArray[i].startsWith(' ') || !(/[A-Z]{3}:/.test(calArray[i]))) {
|
|
37
|
+
description += calArray[i];
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
calArray[descriptionIndex] = 'DESCRIPTION:' + description;
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
32
45
|
var isEvent = false;
|
|
33
46
|
var curEvent;
|
|
34
47
|
// eslint-disable-next-line prefer-const
|
|
@@ -96,7 +109,10 @@ var ICalendarImport = /** @class */ (function () {
|
|
|
96
109
|
curEvent[fields.location] = value;
|
|
97
110
|
break;
|
|
98
111
|
case 'DESCRIPTION':
|
|
99
|
-
curEvent[fields.description]
|
|
112
|
+
if (!(curEvent[fields.description])) {
|
|
113
|
+
curEvent[fields.description] = value.replace(/\\,/g, ',')
|
|
114
|
+
.replace(/\\n/g, '\n');
|
|
115
|
+
}
|
|
100
116
|
break;
|
|
101
117
|
case 'ISREADONLY':
|
|
102
118
|
curEvent[fields.isReadonly] = (value.indexOf('true') > -1);
|
|
@@ -28,7 +28,7 @@ var QuickPopups = /** @class */ (function () {
|
|
|
28
28
|
this.renderQuickDialog();
|
|
29
29
|
};
|
|
30
30
|
QuickPopups.prototype.renderQuickPopup = function () {
|
|
31
|
-
var quickPopupWrapper = createElement('div', { className: cls.POPUP_WRAPPER_CLASS + ' e-popup-close' });
|
|
31
|
+
var quickPopupWrapper = createElement('div', { className: cls.POPUP_WRAPPER_CLASS + ' e-popup-close', attrs: { role: 'dialog' } });
|
|
32
32
|
if (this.parent.isAdaptive) {
|
|
33
33
|
document.body.appendChild(quickPopupWrapper);
|
|
34
34
|
addClass([quickPopupWrapper], cls.DEVICE_CLASS);
|
|
@@ -451,6 +451,7 @@ var QuickPopups = /** @class */ (function () {
|
|
|
451
451
|
quickCellPopup.appendChild(this.getPopupHeader('Cell', temp));
|
|
452
452
|
quickCellPopup.appendChild(this.getPopupContent('Cell', args, temp));
|
|
453
453
|
quickCellPopup.appendChild(this.getPopupFooter('Cell', temp));
|
|
454
|
+
this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('newEvent'));
|
|
454
455
|
var subjectElement = quickCellPopup.querySelector('.' + cls.SUBJECT_CLASS);
|
|
455
456
|
if (subjectElement) {
|
|
456
457
|
Input.createInput({ element: subjectElement, properties: { placeholder: this.l10n.getConstant('addTitle') } });
|
|
@@ -522,6 +523,7 @@ var QuickPopups = /** @class */ (function () {
|
|
|
522
523
|
quickEventPopup.appendChild(this.getPopupHeader('Event', eventData));
|
|
523
524
|
quickEventPopup.appendChild(this.getPopupContent('Event', events, eventData));
|
|
524
525
|
quickEventPopup.appendChild(this.getPopupFooter('Event', eventData));
|
|
526
|
+
this.quickPopup.element.setAttribute('aria-label', this.l10n.getConstant('editEvent'));
|
|
525
527
|
var readonly = this.parent.activeViewOptions.readonly || eventData[this.parent.eventFields.isReadonly];
|
|
526
528
|
var editAction = !this.parent.eventSettings.allowEditing || readonly;
|
|
527
529
|
var deleteAction = !this.parent.eventSettings.allowDeleting || readonly;
|
package/styles/material.css
CHANGED