@syncfusion/ej2-schedule 22.1.38 → 22.2.5
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 +8 -0
- 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 +27 -10
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +27 -10
- 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 +15 -15
- package/src/recurrence-editor/recurrence-editor.js +3 -6
- package/src/schedule/actions/crud.js +1 -1
- package/src/schedule/base/schedule-model.d.ts +27 -38
- package/src/schedule/base/schedule.d.ts +27 -38
- package/src/schedule/base/schedule.js +1 -0
- package/src/schedule/base/util.d.ts +6 -0
- package/src/schedule/base/util.js +20 -1
- package/src/schedule/models/event-settings-model.d.ts +6 -0
- package/src/schedule/models/event-settings.d.ts +6 -0
- package/src/schedule/models/group-model.d.ts +3 -0
- package/src/schedule/models/group.d.ts +3 -0
- package/src/schedule/models/header-rows-model.d.ts +3 -0
- package/src/schedule/models/header-rows.d.ts +3 -0
- package/src/schedule/models/quick-info-templates-model.d.ts +15 -6
- package/src/schedule/models/quick-info-templates.d.ts +15 -6
- package/src/schedule/models/time-scale-model.d.ts +8 -2
- package/src/schedule/models/time-scale.d.ts +8 -2
- package/src/schedule/models/views-model.d.ts +24 -0
- package/src/schedule/models/views.d.ts +24 -0
- package/src/schedule/popups/event-window.js +1 -1
|
@@ -358,6 +358,10 @@ function getDateFromString(date) {
|
|
|
358
358
|
return date.indexOf('Date') !== -1 ? new Date(parseInt(date.match(/\d+/g).toString(), 10)) :
|
|
359
359
|
date.indexOf('T') !== -1 ? new Date(date) : new Date(date.replace(/-/g, '/'));
|
|
360
360
|
}
|
|
361
|
+
/** @private */
|
|
362
|
+
var scrollWidth = null;
|
|
363
|
+
/** @private */
|
|
364
|
+
var pixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
361
365
|
/**
|
|
362
366
|
* Method to get scrollbar width
|
|
363
367
|
*
|
|
@@ -365,6 +369,9 @@ function getDateFromString(date) {
|
|
|
365
369
|
* @private
|
|
366
370
|
*/
|
|
367
371
|
function getScrollBarWidth() {
|
|
372
|
+
if (scrollWidth !== null) {
|
|
373
|
+
return scrollWidth;
|
|
374
|
+
}
|
|
368
375
|
var divNode = createElement('div');
|
|
369
376
|
var value = 0;
|
|
370
377
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -373,7 +380,19 @@ function getScrollBarWidth() {
|
|
|
373
380
|
Math.ceil(devicePixelRatio % 1) : Math.floor(devicePixelRatio % 1) : 0;
|
|
374
381
|
value = (divNode.offsetWidth - divNode.clientWidth - ratio) | 0;
|
|
375
382
|
document.body.removeChild(divNode);
|
|
376
|
-
return value;
|
|
383
|
+
return scrollWidth = value;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Method to reset scrollbar width
|
|
387
|
+
*
|
|
388
|
+
* @private
|
|
389
|
+
*/
|
|
390
|
+
function resetScrollbarWidth() {
|
|
391
|
+
var zoomPixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
392
|
+
if (pixelRatio != zoomPixelRatio) {
|
|
393
|
+
scrollWidth = null;
|
|
394
|
+
pixelRatio = zoomPixelRatio;
|
|
395
|
+
}
|
|
377
396
|
}
|
|
378
397
|
/**
|
|
379
398
|
* Method to find the index from data collection
|
|
@@ -10938,7 +10957,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
10938
10957
|
value: VALUEFIELD
|
|
10939
10958
|
},
|
|
10940
10959
|
placeholder: this.localeObj.getConstant(REPEAT),
|
|
10941
|
-
htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT)
|
|
10960
|
+
htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT) },
|
|
10942
10961
|
change: function (args) {
|
|
10943
10962
|
self.setProperties({ selectedType: _this.frequencies.indexOf(args.value) }, false);
|
|
10944
10963
|
self.element.querySelector('.' + REPEATCONTENT).innerHTML =
|
|
@@ -10960,7 +10979,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
10960
10979
|
text: TEXTFIELD,
|
|
10961
10980
|
value: VALUEFIELD
|
|
10962
10981
|
},
|
|
10963
|
-
htmlAttributes: { role: 'option' },
|
|
10964
10982
|
change: function (args) {
|
|
10965
10983
|
self.freshOnEndForm();
|
|
10966
10984
|
self.updateEndOnForm(args.value);
|
|
@@ -10978,7 +10996,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
10978
10996
|
text: TEXTFIELD,
|
|
10979
10997
|
value: VALUEFIELD
|
|
10980
10998
|
},
|
|
10981
|
-
htmlAttributes: { role: 'option' },
|
|
10982
10999
|
index: 1,
|
|
10983
11000
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10984
11001
|
change: function (args) {
|
|
@@ -10998,7 +11015,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
10998
11015
|
text: TEXTFIELD,
|
|
10999
11016
|
value: VALUEFIELD
|
|
11000
11017
|
},
|
|
11001
|
-
htmlAttributes: { role: 'option' },
|
|
11002
11018
|
enableRtl: this.enableRtl,
|
|
11003
11019
|
index: 7,
|
|
11004
11020
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -11302,7 +11318,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
11302
11318
|
'<input type="text" tabindex="0" class="' + REPEATELEMENT +
|
|
11303
11319
|
'"label="' + REPEATELEMENT.substr(2) + '" />' +
|
|
11304
11320
|
'</div><div class="' + INPUTWARAPPER + ' ' +
|
|
11305
|
-
INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '"><tr>' +
|
|
11321
|
+
INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '" role="none"><tr>' +
|
|
11306
11322
|
'<td><input type="text" tabindex="0" id="' + this.element.id + '_' + REPEATINTERVAL + '" class="' + REPEATINTERVAL +
|
|
11307
11323
|
'"title="' + this.localeObj.getConstant('repeatEvery') + '" /></td>' +
|
|
11308
11324
|
'<td><span class="' + REPEATCONTENT + '"></span></td>' +
|
|
@@ -11322,7 +11338,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
11322
11338
|
this.localeObj.getConstant('yearExpander') + '"/>' +
|
|
11323
11339
|
'</div>' +
|
|
11324
11340
|
'<div class="' + MONETHEXPANDERWRAPPER + '">' +
|
|
11325
|
-
'<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '"><tr><td>' +
|
|
11341
|
+
'<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '" role="none"><tr><td>' +
|
|
11326
11342
|
'<div class="' + INPUTWARAPPER + ' ' + MONTHEXPANDERCHECKBOXWRAPPER + '">' +
|
|
11327
11343
|
'<input class="' + MONTHEXPANDERELEMENT + '"title="' + this.localeObj.getConstant('monthExpander') + '" type="radio">' +
|
|
11328
11344
|
'</div></td>' +
|
|
@@ -12225,7 +12241,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
|
|
|
12225
12241
|
query = (e.text !== '') ? query.where('Text', 'contains', e.text, true) : query;
|
|
12226
12242
|
e.updateData(_this.parent.timezoneDataSource, query);
|
|
12227
12243
|
},
|
|
12228
|
-
htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName
|
|
12244
|
+
htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName },
|
|
12229
12245
|
floatLabelType: 'Always',
|
|
12230
12246
|
placeholder: this.getFieldLabel(value),
|
|
12231
12247
|
popupHeight: '230px'
|
|
@@ -14768,7 +14784,7 @@ var Crud = /** @__PURE__ @class */ (function () {
|
|
|
14768
14784
|
}
|
|
14769
14785
|
if (isSpanned) {
|
|
14770
14786
|
followData_1.occurrence = followData_1.occurrence.filter(function (eventObj) {
|
|
14771
|
-
return eventObj[fields_1.recurrenceID] ===
|
|
14787
|
+
return eventObj[fields_1.recurrenceID] === parentEvent[fields_1.id];
|
|
14772
14788
|
});
|
|
14773
14789
|
}
|
|
14774
14790
|
editParams.deletedRecords = editParams.deletedRecords.concat(followData_1.occurrence);
|
|
@@ -17759,6 +17775,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
|
|
|
17759
17775
|
if (this.quickPopup) {
|
|
17760
17776
|
this.quickPopup.onClosePopup();
|
|
17761
17777
|
}
|
|
17778
|
+
resetScrollbarWidth();
|
|
17762
17779
|
if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
|
|
17763
17780
|
&& !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
|
|
17764
17781
|
this.activeView.resetColWidth();
|
|
@@ -27945,5 +27962,5 @@ var Print = /** @__PURE__ @class */ (function () {
|
|
|
27945
27962
|
* Export Schedule components
|
|
27946
27963
|
*/
|
|
27947
27964
|
|
|
27948
|
-
export { Schedule, cellClick, cellDoubleClick, moreEventsClick, select, hover, actionBegin, actionComplete, actionFailure, navigating, renderCell, eventClick, eventRendered, dataBinding, dataBound, popupOpen, popupClose, dragStart, drag, dragStop, resizeStart, resizing, resizeStop, inlineClick, cellSelect, initialLoad, initialEnd, print$1 as print, dataReady, eventsLoaded, contentReady, scroll, virtualScroll, scrollUiUpdate, uiUpdate, documentClick, cellMouseDown, WEEK_LENGTH, DEFAULT_WEEKS, MS_PER_DAY, MS_PER_MINUTE, getElementHeightFromClass, getElementWidthFromClass, getTranslateY, getTranslateX, getWeekFirstDate, getWeekLastDate, firstDateOfMonth, lastDateOfMonth, getWeekNumber, getWeekMiddleDate, setTime, resetTime, getDateInMs, getDateCount, addDays, addMonths, addYears, getStartEndHours, getMaxDays, getDaysCount, getDateFromString, getScrollBarWidth, findIndexInData, getOuterHeight, removeChildren, isDaylightSavingTime, getUniversalTime, isMobile, isIPadDevice, capitalizeFirstWord, Resize, DragAndDrop, HeaderRenderer, ViewBase, Day, Week, WorkWeek, Month, Year, Agenda, MonthAgenda, TimelineViews, TimelineMonth, TimelineYear, Timezone, timezoneData, ICalendarExport, ICalendarImport, ExcelExport, Print, RecurrenceEditor, generateSummary, generate, getDateFromRecurrenceDateString, extractObjectFromRule, getCalendarUtil, getRecurrenceStringFromDate, Gregorian, Islamic };
|
|
27965
|
+
export { Schedule, cellClick, cellDoubleClick, moreEventsClick, select, hover, actionBegin, actionComplete, actionFailure, navigating, renderCell, eventClick, eventRendered, dataBinding, dataBound, popupOpen, popupClose, dragStart, drag, dragStop, resizeStart, resizing, resizeStop, inlineClick, cellSelect, initialLoad, initialEnd, print$1 as print, dataReady, eventsLoaded, contentReady, scroll, virtualScroll, scrollUiUpdate, uiUpdate, documentClick, cellMouseDown, WEEK_LENGTH, DEFAULT_WEEKS, MS_PER_DAY, MS_PER_MINUTE, getElementHeightFromClass, getElementWidthFromClass, getTranslateY, getTranslateX, getWeekFirstDate, getWeekLastDate, firstDateOfMonth, lastDateOfMonth, getWeekNumber, getWeekMiddleDate, setTime, resetTime, getDateInMs, getDateCount, addDays, addMonths, addYears, getStartEndHours, getMaxDays, getDaysCount, getDateFromString, getScrollBarWidth, resetScrollbarWidth, findIndexInData, getOuterHeight, removeChildren, isDaylightSavingTime, getUniversalTime, isMobile, isIPadDevice, capitalizeFirstWord, Resize, DragAndDrop, HeaderRenderer, ViewBase, Day, Week, WorkWeek, Month, Year, Agenda, MonthAgenda, TimelineViews, TimelineMonth, TimelineYear, Timezone, timezoneData, ICalendarExport, ICalendarImport, ExcelExport, Print, RecurrenceEditor, generateSummary, generate, getDateFromRecurrenceDateString, extractObjectFromRule, getCalendarUtil, getRecurrenceStringFromDate, Gregorian, Islamic };
|
|
27949
27966
|
//# sourceMappingURL=ej2-schedule.es5.js.map
|