@syncfusion/ej2-schedule 22.1.38 → 22.2.8
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 +13 -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 +30 -10
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +30 -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 +23 -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
|
+
let scrollWidth = null;
|
|
363
|
+
/** @private */
|
|
364
|
+
let pixelRatio = null;
|
|
361
365
|
/**
|
|
362
366
|
* Method to get scrollbar width
|
|
363
367
|
*
|
|
@@ -365,6 +369,12 @@ function getDateFromString(date) {
|
|
|
365
369
|
* @private
|
|
366
370
|
*/
|
|
367
371
|
function getScrollBarWidth() {
|
|
372
|
+
if (scrollWidth !== null) {
|
|
373
|
+
return scrollWidth;
|
|
374
|
+
}
|
|
375
|
+
if (pixelRatio === null) {
|
|
376
|
+
pixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
377
|
+
}
|
|
368
378
|
const divNode = createElement('div');
|
|
369
379
|
let value = 0;
|
|
370
380
|
divNode.style.cssText = 'width:100px;height: 100px;overflow: scroll;position: absolute;top: -9999px;';
|
|
@@ -373,7 +383,19 @@ function getScrollBarWidth() {
|
|
|
373
383
|
Math.ceil(devicePixelRatio % 1) : Math.floor(devicePixelRatio % 1) : 0;
|
|
374
384
|
value = (divNode.offsetWidth - divNode.clientWidth - ratio) | 0;
|
|
375
385
|
document.body.removeChild(divNode);
|
|
376
|
-
return value;
|
|
386
|
+
return scrollWidth = value;
|
|
387
|
+
}
|
|
388
|
+
/**
|
|
389
|
+
* Method to reset scrollbar width
|
|
390
|
+
*
|
|
391
|
+
* @private
|
|
392
|
+
*/
|
|
393
|
+
function resetScrollbarWidth() {
|
|
394
|
+
const zoomPixelRatio = window.devicePixelRatio || window.screen.availWidth / document.documentElement.clientWidth;
|
|
395
|
+
if (pixelRatio && pixelRatio !== zoomPixelRatio) {
|
|
396
|
+
scrollWidth = null;
|
|
397
|
+
pixelRatio = zoomPixelRatio;
|
|
398
|
+
}
|
|
377
399
|
}
|
|
378
400
|
/**
|
|
379
401
|
* Method to find the index from data collection
|
|
@@ -10685,7 +10707,7 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
10685
10707
|
value: VALUEFIELD
|
|
10686
10708
|
},
|
|
10687
10709
|
placeholder: this.localeObj.getConstant(REPEAT),
|
|
10688
|
-
htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT)
|
|
10710
|
+
htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT) },
|
|
10689
10711
|
change: (args) => {
|
|
10690
10712
|
self.setProperties({ selectedType: this.frequencies.indexOf(args.value) }, false);
|
|
10691
10713
|
self.element.querySelector('.' + REPEATCONTENT).innerHTML =
|
|
@@ -10707,7 +10729,6 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
10707
10729
|
text: TEXTFIELD,
|
|
10708
10730
|
value: VALUEFIELD
|
|
10709
10731
|
},
|
|
10710
|
-
htmlAttributes: { role: 'option' },
|
|
10711
10732
|
change: (args) => {
|
|
10712
10733
|
self.freshOnEndForm();
|
|
10713
10734
|
self.updateEndOnForm(args.value);
|
|
@@ -10725,7 +10746,6 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
10725
10746
|
text: TEXTFIELD,
|
|
10726
10747
|
value: VALUEFIELD
|
|
10727
10748
|
},
|
|
10728
|
-
htmlAttributes: { role: 'option' },
|
|
10729
10749
|
index: 1,
|
|
10730
10750
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
10731
10751
|
change: (args) => {
|
|
@@ -10745,7 +10765,6 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
10745
10765
|
text: TEXTFIELD,
|
|
10746
10766
|
value: VALUEFIELD
|
|
10747
10767
|
},
|
|
10748
|
-
htmlAttributes: { role: 'option' },
|
|
10749
10768
|
enableRtl: this.enableRtl,
|
|
10750
10769
|
index: 7,
|
|
10751
10770
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -11043,7 +11062,7 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
11043
11062
|
'<input type="text" tabindex="0" class="' + REPEATELEMENT +
|
|
11044
11063
|
'"label="' + REPEATELEMENT.substr(2) + '" />' +
|
|
11045
11064
|
'</div><div class="' + INPUTWARAPPER + ' ' +
|
|
11046
|
-
INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '"><tr>' +
|
|
11065
|
+
INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '" role="none"><tr>' +
|
|
11047
11066
|
'<td><input type="text" tabindex="0" id="' + this.element.id + '_' + REPEATINTERVAL + '" class="' + REPEATINTERVAL +
|
|
11048
11067
|
'"title="' + this.localeObj.getConstant('repeatEvery') + '" /></td>' +
|
|
11049
11068
|
'<td><span class="' + REPEATCONTENT + '"></span></td>' +
|
|
@@ -11063,7 +11082,7 @@ let RecurrenceEditor = class RecurrenceEditor extends Component {
|
|
|
11063
11082
|
this.localeObj.getConstant('yearExpander') + '"/>' +
|
|
11064
11083
|
'</div>' +
|
|
11065
11084
|
'<div class="' + MONETHEXPANDERWRAPPER + '">' +
|
|
11066
|
-
'<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '"><tr><td>' +
|
|
11085
|
+
'<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '" role="none"><tr><td>' +
|
|
11067
11086
|
'<div class="' + INPUTWARAPPER + ' ' + MONTHEXPANDERCHECKBOXWRAPPER + '">' +
|
|
11068
11087
|
'<input class="' + MONTHEXPANDERELEMENT + '"title="' + this.localeObj.getConstant('monthExpander') + '" type="radio">' +
|
|
11069
11088
|
'</div></td>' +
|
|
@@ -11952,7 +11971,7 @@ class EventWindow {
|
|
|
11952
11971
|
query = (e.text !== '') ? query.where('Text', 'contains', e.text, true) : query;
|
|
11953
11972
|
e.updateData(this.parent.timezoneDataSource, query);
|
|
11954
11973
|
},
|
|
11955
|
-
htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName
|
|
11974
|
+
htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName },
|
|
11956
11975
|
floatLabelType: 'Always',
|
|
11957
11976
|
placeholder: this.getFieldLabel(value),
|
|
11958
11977
|
popupHeight: '230px'
|
|
@@ -14356,7 +14375,7 @@ class Crud {
|
|
|
14356
14375
|
editParams.deletedRecords = editParams.deletedRecords.concat(followData.follow);
|
|
14357
14376
|
}
|
|
14358
14377
|
if (isSpanned) {
|
|
14359
|
-
followData.occurrence = followData.occurrence.filter((eventObj) => eventObj[fields.recurrenceID] ===
|
|
14378
|
+
followData.occurrence = followData.occurrence.filter((eventObj) => eventObj[fields.recurrenceID] === parentEvent[fields.id]);
|
|
14360
14379
|
}
|
|
14361
14380
|
editParams.deletedRecords = editParams.deletedRecords.concat(followData.occurrence);
|
|
14362
14381
|
}
|
|
@@ -17133,6 +17152,7 @@ let Schedule = class Schedule extends Component {
|
|
|
17133
17152
|
if (this.quickPopup) {
|
|
17134
17153
|
this.quickPopup.onClosePopup();
|
|
17135
17154
|
}
|
|
17155
|
+
resetScrollbarWidth();
|
|
17136
17156
|
if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
|
|
17137
17157
|
&& !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
|
|
17138
17158
|
this.activeView.resetColWidth();
|
|
@@ -26903,5 +26923,5 @@ class Print {
|
|
|
26903
26923
|
* Export Schedule components
|
|
26904
26924
|
*/
|
|
26905
26925
|
|
|
26906
|
-
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 };
|
|
26926
|
+
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 };
|
|
26907
26927
|
//# sourceMappingURL=ej2-schedule.es2015.js.map
|