@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.
Files changed (32) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/ej2-schedule.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js +2 -2
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +30 -10
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +30 -10
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/dist/global/ej2-schedule.min.js +2 -2
  10. package/dist/global/ej2-schedule.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +15 -15
  13. package/src/recurrence-editor/recurrence-editor.js +3 -6
  14. package/src/schedule/actions/crud.js +1 -1
  15. package/src/schedule/base/schedule-model.d.ts +27 -38
  16. package/src/schedule/base/schedule.d.ts +27 -38
  17. package/src/schedule/base/schedule.js +1 -0
  18. package/src/schedule/base/util.d.ts +6 -0
  19. package/src/schedule/base/util.js +23 -1
  20. package/src/schedule/models/event-settings-model.d.ts +6 -0
  21. package/src/schedule/models/event-settings.d.ts +6 -0
  22. package/src/schedule/models/group-model.d.ts +3 -0
  23. package/src/schedule/models/group.d.ts +3 -0
  24. package/src/schedule/models/header-rows-model.d.ts +3 -0
  25. package/src/schedule/models/header-rows.d.ts +3 -0
  26. package/src/schedule/models/quick-info-templates-model.d.ts +15 -6
  27. package/src/schedule/models/quick-info-templates.d.ts +15 -6
  28. package/src/schedule/models/time-scale-model.d.ts +8 -2
  29. package/src/schedule/models/time-scale.d.ts +8 -2
  30. package/src/schedule/models/views-model.d.ts +24 -0
  31. package/src/schedule/models/views.d.ts +24 -0
  32. 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 = 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
  var divNode = createElement('div');
369
379
  var 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
+ var 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
@@ -10938,7 +10960,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10938
10960
  value: VALUEFIELD
10939
10961
  },
10940
10962
  placeholder: this.localeObj.getConstant(REPEAT),
10941
- htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT), role: 'option' },
10963
+ htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT) },
10942
10964
  change: function (args) {
10943
10965
  self.setProperties({ selectedType: _this.frequencies.indexOf(args.value) }, false);
10944
10966
  self.element.querySelector('.' + REPEATCONTENT).innerHTML =
@@ -10960,7 +10982,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10960
10982
  text: TEXTFIELD,
10961
10983
  value: VALUEFIELD
10962
10984
  },
10963
- htmlAttributes: { role: 'option' },
10964
10985
  change: function (args) {
10965
10986
  self.freshOnEndForm();
10966
10987
  self.updateEndOnForm(args.value);
@@ -10978,7 +10999,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10978
10999
  text: TEXTFIELD,
10979
11000
  value: VALUEFIELD
10980
11001
  },
10981
- htmlAttributes: { role: 'option' },
10982
11002
  index: 1,
10983
11003
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10984
11004
  change: function (args) {
@@ -10998,7 +11018,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10998
11018
  text: TEXTFIELD,
10999
11019
  value: VALUEFIELD
11000
11020
  },
11001
- htmlAttributes: { role: 'option' },
11002
11021
  enableRtl: this.enableRtl,
11003
11022
  index: 7,
11004
11023
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -11302,7 +11321,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11302
11321
  '<input type="text" tabindex="0" class="' + REPEATELEMENT +
11303
11322
  '"label="' + REPEATELEMENT.substr(2) + '" />' +
11304
11323
  '</div><div class="' + INPUTWARAPPER + ' ' +
11305
- INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '"><tr>' +
11324
+ INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '" role="none"><tr>' +
11306
11325
  '<td><input type="text" tabindex="0" id="' + this.element.id + '_' + REPEATINTERVAL + '" class="' + REPEATINTERVAL +
11307
11326
  '"title="' + this.localeObj.getConstant('repeatEvery') + '" /></td>' +
11308
11327
  '<td><span class="' + REPEATCONTENT + '"></span></td>' +
@@ -11322,7 +11341,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11322
11341
  this.localeObj.getConstant('yearExpander') + '"/>' +
11323
11342
  '</div>' +
11324
11343
  '<div class="' + MONETHEXPANDERWRAPPER + '">' +
11325
- '<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '"><tr><td>' +
11344
+ '<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '" role="none"><tr><td>' +
11326
11345
  '<div class="' + INPUTWARAPPER + ' ' + MONTHEXPANDERCHECKBOXWRAPPER + '">' +
11327
11346
  '<input class="' + MONTHEXPANDERELEMENT + '"title="' + this.localeObj.getConstant('monthExpander') + '" type="radio">' +
11328
11347
  '</div></td>' +
@@ -12225,7 +12244,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12225
12244
  query = (e.text !== '') ? query.where('Text', 'contains', e.text, true) : query;
12226
12245
  e.updateData(_this.parent.timezoneDataSource, query);
12227
12246
  },
12228
- htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName, role: 'option' },
12247
+ htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName },
12229
12248
  floatLabelType: 'Always',
12230
12249
  placeholder: this.getFieldLabel(value),
12231
12250
  popupHeight: '230px'
@@ -14768,7 +14787,7 @@ var Crud = /** @__PURE__ @class */ (function () {
14768
14787
  }
14769
14788
  if (isSpanned) {
14770
14789
  followData_1.occurrence = followData_1.occurrence.filter(function (eventObj) {
14771
- return eventObj[fields_1.recurrenceID] === childEvent[fields_1.id];
14790
+ return eventObj[fields_1.recurrenceID] === parentEvent[fields_1.id];
14772
14791
  });
14773
14792
  }
14774
14793
  editParams.deletedRecords = editParams.deletedRecords.concat(followData_1.occurrence);
@@ -17759,6 +17778,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17759
17778
  if (this.quickPopup) {
17760
17779
  this.quickPopup.onClosePopup();
17761
17780
  }
17781
+ resetScrollbarWidth();
17762
17782
  if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
17763
17783
  && !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
17764
17784
  this.activeView.resetColWidth();
@@ -27945,5 +27965,5 @@ var Print = /** @__PURE__ @class */ (function () {
27945
27965
  * Export Schedule components
27946
27966
  */
27947
27967
 
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 };
27968
+ 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
27969
  //# sourceMappingURL=ej2-schedule.es5.js.map