@syncfusion/ej2-schedule 25.2.4 → 25.2.6

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * filename: index.d.ts
3
- * version : 25.2.4
3
+ * version : 25.2.6
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. 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@25.2.3",
3
+ "_id": "@syncfusion/ej2-schedule@25.2.4",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-MWSpBfzIs0mW4kqATTjlmMeFZ1Mm2+LylE8fjjZ0fM79QH8/EetEh/0tW/JijPCx3onoD6QIq2VBGoY56/UiYg==",
5
+ "_integrity": "sha512-GotTq1HrcT++YmcD8AsfKhcdJtUYrCa0DLNCTe2vYuPOHHPiJbNyJuXqVGIhENXl9OsDqa3D2RwyddA0Ntd7kA==",
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.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-25.2.3.tgz",
27
- "_shasum": "a6028db684557182b950796fcabf473dc847dadd",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-25.2.4.tgz",
27
+ "_shasum": "e8ed70e9296b26f48063202ea4729c9917b27076",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_25.1.1/packages/included",
30
30
  "author": {
@@ -35,16 +35,16 @@
35
35
  },
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
- "@syncfusion/ej2-base": "~25.2.3",
39
- "@syncfusion/ej2-buttons": "~25.2.4",
40
- "@syncfusion/ej2-calendars": "~25.2.4",
38
+ "@syncfusion/ej2-base": "~25.2.5",
39
+ "@syncfusion/ej2-buttons": "~25.2.6",
40
+ "@syncfusion/ej2-calendars": "~25.2.5",
41
41
  "@syncfusion/ej2-data": "~25.2.3",
42
- "@syncfusion/ej2-dropdowns": "~25.2.4",
42
+ "@syncfusion/ej2-dropdowns": "~25.2.6",
43
43
  "@syncfusion/ej2-excel-export": "~25.2.3",
44
- "@syncfusion/ej2-inputs": "~25.2.3",
44
+ "@syncfusion/ej2-inputs": "~25.2.6",
45
45
  "@syncfusion/ej2-lists": "~25.2.3",
46
- "@syncfusion/ej2-navigations": "~25.2.4",
47
- "@syncfusion/ej2-popups": "~25.2.4"
46
+ "@syncfusion/ej2-navigations": "~25.2.6",
47
+ "@syncfusion/ej2-popups": "~25.2.6"
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": "25.2.4",
76
+ "version": "25.2.6",
77
77
  "sideEffects": false
78
78
  }
@@ -897,7 +897,7 @@ var ResourceBase = /** @class */ (function () {
897
897
  // eslint-disable-next-line prefer-spread
898
898
  var resourceDates = [].concat.apply([], this.lastResourceLevel.map(function (e) { return e.renderDates; }));
899
899
  var time = resourceDates.map(function (dateObj) { return dateObj.getTime(); });
900
- var removeDuplicateDates = function (dateColl) { return dateColl.filter(function (date, index, dates) {
900
+ var removeDuplicateDates = function (dateColl) { return dateColl.filter(function (date, index) {
901
901
  return time.indexOf(date.getTime()) === index;
902
902
  }); };
903
903
  var renderDates = removeDuplicateDates(resourceDates);
@@ -225,9 +225,13 @@ var Month = /** @class */ (function (_super) {
225
225
  this.renderHeader();
226
226
  this.parent.notify(event.contentReady, {});
227
227
  var dateHeader = this.element.querySelector('.' + cls.DATE_HEADER_WRAP_CLASS);
228
+ var contentWrapper = this.element.querySelector('.' + cls.CONTENT_WRAP_CLASS);
228
229
  if (dateHeader) {
229
230
  dateHeader.scrollLeft = this.parent.uiStateValues.left;
230
231
  }
232
+ if (contentWrapper) {
233
+ contentWrapper.scrollLeft = this.parent.uiStateValues.left;
234
+ }
231
235
  };
232
236
  Month.prototype.wireCellEvents = function (element) {
233
237
  EventHandler.add(element, 'mousedown', this.parent.workCellAction.cellMouseDown, this.parent.workCellAction);
@@ -25,10 +25,27 @@ var ViewBase = /** @class */ (function () {
25
25
  // Method to refresh the date header
26
26
  };
27
27
  ViewBase.prototype.refreshResourceHeader = function () {
28
- remove(this.element.querySelector('tbody').lastElementChild.firstElementChild);
29
- var resTd = createElement('td');
30
- resTd.appendChild(this.parent.resourceBase.createResourceColumn());
31
- prepend([resTd], this.element.querySelector('tbody').lastElementChild);
28
+ var resTbl = this.element.querySelector('.' + cls.RESOURCE_COLUMN_TABLE_CLASS);
29
+ var resourceTd = Array.from(resTbl.querySelectorAll('.' + cls.RESOURCE_CELLS_CLASS));
30
+ resourceTd.forEach(function (currentElement) {
31
+ var children = Array.from(currentElement.children);
32
+ children.forEach(function (child) {
33
+ if (!child.classList.contains(cls.RESOURCE_EXPAND_CLASS) && !child.classList.contains(cls.RESOURCE_COLLAPSE_CLASS)) {
34
+ remove(child);
35
+ }
36
+ });
37
+ });
38
+ if (!isNullOrUndefined(this.parent.resourceBase.renderedResources) && this.parent.resourceBase.renderedResources.length > 0) {
39
+ for (var i = 0; i < resourceTd.length; i++) {
40
+ var element = resourceTd[parseInt(i.toString(), 10)];
41
+ var data = this.parent.resourceBase.renderedResources[parseInt(i.toString(), 10)];
42
+ if (this.parent.activeView && !isNullOrUndefined(element) && !isNullOrUndefined(data)
43
+ && parseInt(element.getAttribute('data-group-index'), 10) === data.groupIndex) {
44
+ this.parent.activeView.setResourceHeaderContent(element, data, cls.RESOURCE_TEXT_CLASS);
45
+ }
46
+ }
47
+ }
48
+ this.parent.renderTemplates();
32
49
  this.parent.notify(event.contentReady, {});
33
50
  };
34
51
  ViewBase.prototype.getDayName = function (date) {