@syncfusion/ej2-schedule 28.2.5 → 28.2.7

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 : 28.2.5
3
+ * version : 28.2.7
4
4
  * Copyright Syncfusion Inc. 2001 - 2024. 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@28.2.4",
3
+ "_id": "@syncfusion/ej2-schedule@28.2.6",
4
4
  "_inBundle": false,
5
- "_integrity": "sha512-ky2q+06Je15WPS2CED/mvPjSaQSlpslhiT5nBjPv557gqxuOIToe/SdJgKv12LCWuHiDoE9Cgouf+5yHf4P3+A==",
5
+ "_integrity": "sha512-wlfqPMf7s+ucbKqMjeJ8sSHY4LUAusnQ2tyH/q1KdZ365VPGxt+SsNx/joGzK9iP1nfetWZCiThny4zkRkfSXw==",
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-28.2.4.tgz",
27
- "_shasum": "b2c505b3dad05390e4b2406feaa1919dd92eb3d5",
26
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-schedule/-/ej2-schedule-28.2.6.tgz",
27
+ "_shasum": "ba839c0d282ba472a51f182fdef48536f21aeeec",
28
28
  "_spec": "@syncfusion/ej2-schedule@*",
29
29
  "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
30
30
  "author": {
@@ -36,15 +36,15 @@
36
36
  "bundleDependencies": false,
37
37
  "dependencies": {
38
38
  "@syncfusion/ej2-base": "~28.2.5",
39
- "@syncfusion/ej2-buttons": "~28.2.3",
40
- "@syncfusion/ej2-calendars": "~28.2.3",
39
+ "@syncfusion/ej2-buttons": "~28.2.7",
40
+ "@syncfusion/ej2-calendars": "~28.2.7",
41
41
  "@syncfusion/ej2-data": "~28.2.3",
42
- "@syncfusion/ej2-dropdowns": "~28.2.5",
42
+ "@syncfusion/ej2-dropdowns": "~28.2.7",
43
43
  "@syncfusion/ej2-excel-export": "~28.2.3",
44
44
  "@syncfusion/ej2-inputs": "~28.2.3",
45
45
  "@syncfusion/ej2-lists": "~28.2.3",
46
- "@syncfusion/ej2-navigations": "~28.2.5",
47
- "@syncfusion/ej2-popups": "~28.2.3"
46
+ "@syncfusion/ej2-navigations": "~28.2.6",
47
+ "@syncfusion/ej2-popups": "~28.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": "28.2.5",
76
+ "version": "28.2.7",
77
77
  "sideEffects": false
78
78
  }
@@ -17,6 +17,7 @@ export declare class ScheduleTouch {
17
17
  private scrollHandler;
18
18
  private swipeHandler;
19
19
  private tapHoldHandler;
20
+ private triggerResizeStart;
20
21
  private preventEventClick;
21
22
  private renderPanel;
22
23
  private swapPanels;
@@ -124,17 +124,21 @@ var ScheduleTouch = /** @class */ (function () {
124
124
  EventHandler.add(this.element, 'touchend', this.preventEventClick, this);
125
125
  }
126
126
  this.parent.quickPopup.tapHoldEventPopup(e.originalEvent);
127
+ this.triggerResizeStart(e.originalEvent);
127
128
  }
128
129
  else if (['Agenda', 'MonthAgenda', 'Year'].indexOf(this.parent.currentView) < 0) {
129
130
  this.parent.selectedElements = [];
130
131
  this.parent.eventBase.getSelectedEventElements(target);
131
- if (this.parent.resizeModule && closest(e.originalEvent.target, '.' + cls.EVENT_RESIZE_CLASS)) {
132
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
133
- this.parent.resizeModule.resizeStart(e.originalEvent);
134
- }
132
+ this.triggerResizeStart(e.originalEvent);
135
133
  }
136
134
  }
137
135
  };
136
+ ScheduleTouch.prototype.triggerResizeStart = function (e) {
137
+ if (this.parent.resizeModule && closest(e.target, '.' + cls.EVENT_RESIZE_CLASS)) {
138
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
139
+ this.parent.resizeModule.resizeStart(e);
140
+ }
141
+ };
138
142
  ScheduleTouch.prototype.preventEventClick = function (e) {
139
143
  e.preventDefault();
140
144
  EventHandler.remove(this.element, 'touchend', this.preventEventClick);
@@ -110,6 +110,7 @@ var MonthAgenda = /** @class */ (function (_super) {
110
110
  this.onEventRender(filterData, event.startTime);
111
111
  this.parent.notify(events.eventsLoaded, {});
112
112
  this.monthAgendaDate = new Date('' + event.startTime);
113
+ this.parent.setProperties({ selectedDate: this.monthAgendaDate }, true);
113
114
  };
114
115
  MonthAgenda.prototype.onEventRender = function (events, date) {
115
116
  this.agendaBase = this.getAgendaBase();
@@ -155,9 +155,16 @@ var TimelineViews = /** @class */ (function (_super) {
155
155
  var diffInDates = 0;
156
156
  var diffInMinutes = ((date.getHours() - startHour.getHours()) * 60) + (date.getMinutes() - startHour.getMinutes());
157
157
  var hoursRange = util.getStartEndHours(util.resetTime(new Date(date.getTime())), startHour, endHour);
158
- var interval = this.parent.activeViewOptions.timeScale.slotCount !== 1 ?
159
- this.parent.activeViewOptions.timeScale.interval :
160
- (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
158
+ var totalMinutes = (hoursRange.endHour.getTime() - hoursRange.startHour.getTime()) / util.MS_PER_MINUTE;
159
+ var timescaleInterval = this.parent.activeViewOptions.timeScale.interval;
160
+ var interval = 0;
161
+ if (startHour.getHours() === 0 && startHour.getMinutes() === 0 && endHour.getHours() === 0 && endHour.getMinutes() === 0) {
162
+ interval = timescaleInterval;
163
+ }
164
+ else {
165
+ interval = (this.parent.activeViewOptions.timeScale.slotCount !== 1) ? timescaleInterval :
166
+ (timescaleInterval > totalMinutes ? totalMinutes : timescaleInterval);
167
+ }
161
168
  if (!isNullOrUndefined(currentDateIndex)) {
162
169
  if (currentDateIndex[0] !== 0) {
163
170
  var index = this.parent.activeView.colLevels.findIndex(function (level) { return level[0].type === 'dateHeader'; });
@@ -4177,7 +4177,7 @@
4177
4177
  width: 100%;
4178
4178
  }
4179
4179
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
4180
- min-width: 94px;
4180
+ min-width: 100px;
4181
4181
  position: relative;
4182
4182
  right: 20px;
4183
4183
  }
@@ -4293,7 +4293,7 @@
4293
4293
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
4294
4294
  font-size: 12px;
4295
4295
  font-weight: 600;
4296
- margin-bottom: 6px;
4296
+ margin-bottom: 3px;
4297
4297
  padding-right: 16px;
4298
4298
  }
4299
4299
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -4414,7 +4414,7 @@
4414
4414
  }
4415
4415
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
4416
4416
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
4417
- margin-bottom: 6px;
4417
+ margin-bottom: 3px;
4418
4418
  }
4419
4419
  .e-recurrenceeditor .e-editor > div {
4420
4420
  margin-top: 20px;
@@ -4854,7 +4854,7 @@
4854
4854
  width: 100%;
4855
4855
  }
4856
4856
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
4857
- min-width: 94px;
4857
+ min-width: 100px;
4858
4858
  position: relative;
4859
4859
  right: 20px;
4860
4860
  }
@@ -4970,7 +4970,7 @@
4970
4970
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
4971
4971
  font-size: 12px;
4972
4972
  font-weight: 600;
4973
- margin-bottom: 6px;
4973
+ margin-bottom: 3px;
4974
4974
  padding-right: 16px;
4975
4975
  }
4976
4976
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -5091,7 +5091,7 @@
5091
5091
  }
5092
5092
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
5093
5093
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
5094
- margin-bottom: 6px;
5094
+ margin-bottom: 3px;
5095
5095
  }
5096
5096
  .e-recurrenceeditor .e-editor > div {
5097
5097
  margin-top: 20px;
@@ -1,5 +1,5 @@
1
1
  $recurrence-label-bottom: 7px !default;
2
- $recurrence-month-label-bottom: 6px !default;
2
+ $recurrence-month-label-bottom: 3px !default;
3
3
  $recurrence-month-label-bottom-bgr: 0 !default;
4
4
  $recurrence-week-label-bottom: 10px !default;
5
5
  $recurrence-label-font-weight: $font-weight-medium !default;
@@ -10,5 +10,5 @@ $recurrence-week-position-bgr-min-width: 130px !default;
10
10
  $recurrence-day-position-bgr-min-width: 190px !default;
11
11
  $recurrence-day-position-bgr-padding-left: 54px !default;
12
12
  $recurrence-end-bgr-padding-right: 5px !default;
13
- $recurrence-week-position-min-width: 94px !default;
13
+ $recurrence-week-position-min-width: 100px !default;
14
14
  $recurrence-end-on-date-margin-top: 24px !default;
@@ -105,7 +105,7 @@
105
105
  width: 100%;
106
106
  }
107
107
  .e-recurrenceeditor .e-recurrence-table .e-week-position {
108
- min-width: 94px;
108
+ min-width: 100px;
109
109
  position: relative;
110
110
  right: 20px;
111
111
  }
@@ -221,7 +221,7 @@
221
221
  .e-recurrenceeditor .e-input-wrapper-side.e-non-week > .e-month-expander-label {
222
222
  font-size: 12px;
223
223
  font-weight: 600;
224
- margin-bottom: 6px;
224
+ margin-bottom: 3px;
225
225
  padding-right: 16px;
226
226
  }
227
227
  .e-recurrenceeditor .e-input-wrapper-side .e-days .e-form-left {
@@ -342,7 +342,7 @@
342
342
  }
343
343
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-non-week > .e-month-expander-label,
344
344
  .e-recurrenceeditor .e-editor .e-input-wrapper-side.e-end-on .e-end-on-label {
345
- margin-bottom: 6px;
345
+ margin-bottom: 3px;
346
346
  }
347
347
  .e-recurrenceeditor .e-editor > div {
348
348
  margin-top: 20px;