@syncfusion/ej2-schedule 28.1.37 → 28.1.39
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/README.md +1 -1
- 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 +21 -11
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +22 -11
- 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 +11 -10
- package/src/schedule/actions/keyboard.js +5 -7
- package/src/schedule/base/css-constant.d.ts +2 -0
- package/src/schedule/base/css-constant.js +2 -0
- package/src/schedule/popups/event-tooltip.d.ts +1 -0
- package/src/schedule/popups/event-tooltip.js +15 -1
- package/src/schedule/renderer/month.js +0 -3
- package/styles/bds-lite.css +4 -0
- package/styles/bds.css +4 -0
- package/styles/bootstrap-dark-lite.css +4 -0
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap-lite.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4-lite.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark-lite.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5-lite.css +4 -0
- package/styles/bootstrap5.3-lite.css +4 -0
- package/styles/bootstrap5.3.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark-lite.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric-lite.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/fluent-dark-lite.css +4 -0
- package/styles/fluent-dark.css +4 -0
- package/styles/fluent-lite.css +4 -0
- package/styles/fluent.css +4 -0
- package/styles/fluent2-lite.css +4 -0
- package/styles/fluent2.css +4 -0
- package/styles/highcontrast-light-lite.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast-lite.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark-lite.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material-lite.css +4 -0
- package/styles/material.css +4 -0
- package/styles/material3-dark-lite.css +4 -0
- package/styles/material3-dark.css +4 -0
- package/styles/material3-lite.css +4 -0
- package/styles/material3.css +4 -0
- package/styles/schedule/_layout.scss +4 -0
- package/styles/schedule/bds.css +4 -0
- package/styles/schedule/bootstrap-dark.css +4 -0
- package/styles/schedule/bootstrap.css +4 -0
- package/styles/schedule/bootstrap4.css +4 -0
- package/styles/schedule/bootstrap5-dark.css +4 -0
- package/styles/schedule/bootstrap5.3.css +4 -0
- package/styles/schedule/bootstrap5.css +4 -0
- package/styles/schedule/fabric-dark.css +4 -0
- package/styles/schedule/fabric.css +4 -0
- package/styles/schedule/fluent-dark.css +4 -0
- package/styles/schedule/fluent.css +4 -0
- package/styles/schedule/fluent2.css +4 -0
- package/styles/schedule/highcontrast-light.css +4 -0
- package/styles/schedule/highcontrast.css +4 -0
- package/styles/schedule/material-dark.css +4 -0
- package/styles/schedule/material.css +4 -0
- package/styles/schedule/material3-dark.css +4 -0
- package/styles/schedule/material3.css +4 -0
- package/styles/schedule/tailwind-dark.css +4 -0
- package/styles/schedule/tailwind.css +4 -0
- package/styles/schedule/tailwind3.css +4 -0
- package/styles/tailwind-dark-lite.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind-lite.css +4 -0
- package/styles/tailwind.css +4 -0
- package/styles/tailwind3-lite.css +4 -0
- package/styles/tailwind3.css +4 -0
|
@@ -975,6 +975,8 @@ var ERROR_VALIDATION_CLASS = 'e-schedule-error';
|
|
|
975
975
|
/** @private */
|
|
976
976
|
var EVENT_TOOLTIP_ROOT_CLASS = 'e-schedule-event-tooltip';
|
|
977
977
|
/** @private */
|
|
978
|
+
var TOOLTIP_HIDDEN_CLASS = 'e-tooltip-hidden';
|
|
979
|
+
/** @private */
|
|
978
980
|
var ALLDAY_ROW_ANIMATE_CLASS = 'e-animate';
|
|
979
981
|
/** @private */
|
|
980
982
|
var TIMESCALE_DISABLE = 'e-timescale-disable';
|
|
@@ -2321,13 +2323,13 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
2321
2323
|
if (e.event.target.classList.contains(WORK_CELLS_CLASS) && e.event.which !== 3) {
|
|
2322
2324
|
this.parent.removeSelectedClass();
|
|
2323
2325
|
EventHandler.add(this.parent.getContentTable(), 'mousemove', this.onMouseSelection, this);
|
|
2324
|
-
EventHandler.add(this.parent.getContentTable(), 'mouseup', this.onMoveUp, this);
|
|
2326
|
+
EventHandler.add(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp, this);
|
|
2325
2327
|
}
|
|
2326
2328
|
if (e.event.target.classList.contains(ALLDAY_CELLS_CLASS) && e.event.which !== 3) {
|
|
2327
2329
|
this.parent.removeSelectedClass();
|
|
2328
2330
|
var allDayRow = this.parent.getAllDayRow();
|
|
2329
2331
|
EventHandler.add(allDayRow, 'mousemove', this.onMouseSelection, this);
|
|
2330
|
-
EventHandler.add(allDayRow, 'mouseup', this.onMoveUp, this);
|
|
2332
|
+
EventHandler.add(allDayRow, 'mouseup mouseleave', this.onMoveUp, this);
|
|
2331
2333
|
}
|
|
2332
2334
|
};
|
|
2333
2335
|
KeyboardInteraction.prototype.onMouseSelection = function (e) {
|
|
@@ -2359,14 +2361,12 @@ var KeyboardInteraction = /** @__PURE__ @class */ (function () {
|
|
|
2359
2361
|
var _this = this;
|
|
2360
2362
|
var appointments = [].slice.call(this.parent.element.querySelectorAll('.' + APPOINTMENT_CLASS));
|
|
2361
2363
|
removeClass(appointments, 'e-allow-select');
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
EventHandler.remove(this.parent.getContentTable(), 'mouseup', this.onMoveUp);
|
|
2365
|
-
}
|
|
2364
|
+
EventHandler.remove(this.parent.getContentTable(), 'mousemove', this.onMouseSelection);
|
|
2365
|
+
EventHandler.remove(this.parent.getContentTable(), 'mouseup mouseleave', this.onMoveUp);
|
|
2366
2366
|
if (e.target.classList.contains(ALLDAY_CELLS_CLASS)) {
|
|
2367
2367
|
var allDayRow = this.parent.getAllDayRow();
|
|
2368
2368
|
EventHandler.remove(allDayRow, 'mousemove', this.onMouseSelection);
|
|
2369
|
-
EventHandler.remove(allDayRow, 'mouseup', this.onMoveUp);
|
|
2369
|
+
EventHandler.remove(allDayRow, 'mouseup mouseleave', this.onMoveUp);
|
|
2370
2370
|
}
|
|
2371
2371
|
if (this.isPreventAction(e)) {
|
|
2372
2372
|
return;
|
|
@@ -11262,6 +11262,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11262
11262
|
target: this.getTargets(),
|
|
11263
11263
|
beforeRender: this.onBeforeRender.bind(this),
|
|
11264
11264
|
beforeClose: this.onTooltipClose.bind(this),
|
|
11265
|
+
beforeOpen: this.onTooltipOpen.bind(this),
|
|
11265
11266
|
enableRtl: this.parent.enableRtl,
|
|
11266
11267
|
enableHtmlSanitizer: this.parent.enableHtmlSanitizer
|
|
11267
11268
|
});
|
|
@@ -11278,6 +11279,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11278
11279
|
return targets.join(',');
|
|
11279
11280
|
};
|
|
11280
11281
|
EventTooltip.prototype.onBeforeRender = function (args) {
|
|
11282
|
+
var _this = this;
|
|
11281
11283
|
if (this.parent.uiStateValues.isSwipeScroll) {
|
|
11282
11284
|
args.cancel = true;
|
|
11283
11285
|
return;
|
|
@@ -11372,7 +11374,19 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11372
11374
|
};
|
|
11373
11375
|
this.setContent(initializeCSPTemplate(contentTemp));
|
|
11374
11376
|
}
|
|
11375
|
-
this.parent.renderTemplates()
|
|
11377
|
+
this.parent.renderTemplates(function () {
|
|
11378
|
+
if (_this.parent && _this.parent.isReact && !isNullOrUndefined(_this.parent.eventSettings.tooltipTemplate)) {
|
|
11379
|
+
var wraps = (document.querySelector('.' + TOOLTIP_HIDDEN_CLASS));
|
|
11380
|
+
if (wraps) {
|
|
11381
|
+
removeClass([wraps], TOOLTIP_HIDDEN_CLASS);
|
|
11382
|
+
}
|
|
11383
|
+
}
|
|
11384
|
+
});
|
|
11385
|
+
};
|
|
11386
|
+
EventTooltip.prototype.onTooltipOpen = function (args) {
|
|
11387
|
+
if (args.element && this.parent.isReact && !isNullOrUndefined(this.parent.eventSettings.tooltipTemplate)) {
|
|
11388
|
+
addClass([args.element], TOOLTIP_HIDDEN_CLASS);
|
|
11389
|
+
}
|
|
11376
11390
|
};
|
|
11377
11391
|
EventTooltip.prototype.onTooltipClose = function (args) {
|
|
11378
11392
|
if (args.element) {
|
|
@@ -25931,9 +25945,6 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
25931
25945
|
args.scrollPosition.left;
|
|
25932
25946
|
}
|
|
25933
25947
|
}
|
|
25934
|
-
else {
|
|
25935
|
-
this.scrollToSelectedDate();
|
|
25936
|
-
}
|
|
25937
25948
|
this.retainScrollPosition();
|
|
25938
25949
|
};
|
|
25939
25950
|
Month.prototype.scrollToSelectedDate = function () {
|