@syncfusion/ej2-schedule 22.1.36 → 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.
Files changed (33) hide show
  1. package/CHANGELOG.md +12 -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 +29 -11
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +29 -11
  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 +20 -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
  33. package/src/schedule/popups/quick-popups.js +2 -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
@@ -10363,7 +10382,8 @@ var QuickPopups = /** @__PURE__ @class */ (function () {
10363
10382
  this.dialogEvent = event;
10364
10383
  }
10365
10384
  this.quickPopupHide();
10366
- if (isNullOrUndefined(event) || (!isNullOrUndefined(event) && event.action !== 'escape')) {
10385
+ if (isNullOrUndefined(event) || (!isNullOrUndefined(event) && event.action !== 'escape') ||
10386
+ (this.parent.inlineModule && this.parent.element.querySelector('.' + INLINE_APPOINTMENT_CLASS))) {
10367
10387
  this.parent.eventBase.focusElement();
10368
10388
  }
10369
10389
  };
@@ -10937,7 +10957,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10937
10957
  value: VALUEFIELD
10938
10958
  },
10939
10959
  placeholder: this.localeObj.getConstant(REPEAT),
10940
- htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT), role: 'option' },
10960
+ htmlAttributes: { 'title': this.localeObj.getConstant(REPEAT) },
10941
10961
  change: function (args) {
10942
10962
  self.setProperties({ selectedType: _this.frequencies.indexOf(args.value) }, false);
10943
10963
  self.element.querySelector('.' + REPEATCONTENT).innerHTML =
@@ -10959,7 +10979,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10959
10979
  text: TEXTFIELD,
10960
10980
  value: VALUEFIELD
10961
10981
  },
10962
- htmlAttributes: { role: 'option' },
10963
10982
  change: function (args) {
10964
10983
  self.freshOnEndForm();
10965
10984
  self.updateEndOnForm(args.value);
@@ -10977,7 +10996,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10977
10996
  text: TEXTFIELD,
10978
10997
  value: VALUEFIELD
10979
10998
  },
10980
- htmlAttributes: { role: 'option' },
10981
10999
  index: 1,
10982
11000
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
10983
11001
  change: function (args) {
@@ -10997,7 +11015,6 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
10997
11015
  text: TEXTFIELD,
10998
11016
  value: VALUEFIELD
10999
11017
  },
11000
- htmlAttributes: { role: 'option' },
11001
11018
  enableRtl: this.enableRtl,
11002
11019
  index: 7,
11003
11020
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -11301,7 +11318,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11301
11318
  '<input type="text" tabindex="0" class="' + REPEATELEMENT +
11302
11319
  '"label="' + REPEATELEMENT.substr(2) + '" />' +
11303
11320
  '</div><div class="' + INPUTWARAPPER + ' ' +
11304
- INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '"><tr>' +
11321
+ INTERVALCLASS + ' ' + FORMRIGHT + '"><table class="' + RECURRENCETABLE + ' ' + REPEATCONTENTWRAPPER + '" role="none"><tr>' +
11305
11322
  '<td><input type="text" tabindex="0" id="' + this.element.id + '_' + REPEATINTERVAL + '" class="' + REPEATINTERVAL +
11306
11323
  '"title="' + this.localeObj.getConstant('repeatEvery') + '" /></td>' +
11307
11324
  '<td><span class="' + REPEATCONTENT + '"></span></td>' +
@@ -11321,7 +11338,7 @@ var RecurrenceEditor = /** @__PURE__ @class */ (function (_super) {
11321
11338
  this.localeObj.getConstant('yearExpander') + '"/>' +
11322
11339
  '</div>' +
11323
11340
  '<div class="' + MONETHEXPANDERWRAPPER + '">' +
11324
- '<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '"><tr><td>' +
11341
+ '<table class="' + RECURRENCETABLE + ' ' + MONETHEXPANDWRAPPER + '" role="none"><tr><td>' +
11325
11342
  '<div class="' + INPUTWARAPPER + ' ' + MONTHEXPANDERCHECKBOXWRAPPER + '">' +
11326
11343
  '<input class="' + MONTHEXPANDERELEMENT + '"title="' + this.localeObj.getConstant('monthExpander') + '" type="radio">' +
11327
11344
  '</div></td>' +
@@ -12224,7 +12241,7 @@ var EventWindow = /** @__PURE__ @class */ (function () {
12224
12241
  query = (e.text !== '') ? query.where('Text', 'contains', e.text, true) : query;
12225
12242
  e.updateData(_this.parent.timezoneDataSource, query);
12226
12243
  },
12227
- htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName, role: 'option' },
12244
+ htmlAttributes: { 'title': this.getFieldLabel(value), 'name': fieldName },
12228
12245
  floatLabelType: 'Always',
12229
12246
  placeholder: this.getFieldLabel(value),
12230
12247
  popupHeight: '230px'
@@ -14767,7 +14784,7 @@ var Crud = /** @__PURE__ @class */ (function () {
14767
14784
  }
14768
14785
  if (isSpanned) {
14769
14786
  followData_1.occurrence = followData_1.occurrence.filter(function (eventObj) {
14770
- return eventObj[fields_1.recurrenceID] === childEvent[fields_1.id];
14787
+ return eventObj[fields_1.recurrenceID] === parentEvent[fields_1.id];
14771
14788
  });
14772
14789
  }
14773
14790
  editParams.deletedRecords = editParams.deletedRecords.concat(followData_1.occurrence);
@@ -17758,6 +17775,7 @@ var Schedule = /** @__PURE__ @class */ (function (_super) {
17758
17775
  if (this.quickPopup) {
17759
17776
  this.quickPopup.onClosePopup();
17760
17777
  }
17778
+ resetScrollbarWidth();
17761
17779
  if (this.currentView === 'Month' || ((this.currentView !== 'Agenda' && this.currentView !== 'MonthAgenda')
17762
17780
  && !this.activeViewOptions.timeScale.enable) || this.activeView.isTimelineView()) {
17763
17781
  this.activeView.resetColWidth();
@@ -27944,5 +27962,5 @@ var Print = /** @__PURE__ @class */ (function () {
27944
27962
  * Export Schedule components
27945
27963
  */
27946
27964
 
27947
- 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 };
27948
27966
  //# sourceMappingURL=ej2-schedule.es5.js.map