@syncfusion/ej2-schedule 28.1.38 → 28.2.3
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/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 -3
- package/dist/es6/ej2-schedule.es2015.js.map +1 -1
- package/dist/es6/ej2-schedule.es5.js +22 -3
- 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 +15 -15
- package/src/schedule/base/css-constant.d.ts +2 -0
- package/src/schedule/base/css-constant.js +2 -0
- package/src/schedule/base/schedule-model.d.ts +2 -2
- package/src/schedule/base/schedule.d.ts +2 -2
- package/src/schedule/popups/event-tooltip.d.ts +1 -0
- package/src/schedule/popups/event-tooltip.js +15 -1
- package/src/schedule/renderer/header-renderer.js +1 -0
- package/src/schedule/renderer/month.js +4 -2
- 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';
|
|
@@ -1522,6 +1524,7 @@ var HeaderRenderer = /** @__PURE__ @class */ (function () {
|
|
|
1522
1524
|
min: this.parent.minDate,
|
|
1523
1525
|
max: this.parent.maxDate,
|
|
1524
1526
|
firstDayOfWeek: this.parent.activeViewOptions.firstDayOfWeek,
|
|
1527
|
+
weekNumber: this.parent.activeViewOptions.showWeekNumber,
|
|
1525
1528
|
enableRtl: this.parent.enableRtl,
|
|
1526
1529
|
locale: this.parent.locale,
|
|
1527
1530
|
depth: calendarView,
|
|
@@ -11260,6 +11263,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11260
11263
|
target: this.getTargets(),
|
|
11261
11264
|
beforeRender: this.onBeforeRender.bind(this),
|
|
11262
11265
|
beforeClose: this.onTooltipClose.bind(this),
|
|
11266
|
+
beforeOpen: this.onTooltipOpen.bind(this),
|
|
11263
11267
|
enableRtl: this.parent.enableRtl,
|
|
11264
11268
|
enableHtmlSanitizer: this.parent.enableHtmlSanitizer
|
|
11265
11269
|
});
|
|
@@ -11276,6 +11280,7 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11276
11280
|
return targets.join(',');
|
|
11277
11281
|
};
|
|
11278
11282
|
EventTooltip.prototype.onBeforeRender = function (args) {
|
|
11283
|
+
var _this = this;
|
|
11279
11284
|
if (this.parent.uiStateValues.isSwipeScroll) {
|
|
11280
11285
|
args.cancel = true;
|
|
11281
11286
|
return;
|
|
@@ -11370,7 +11375,19 @@ var EventTooltip = /** @__PURE__ @class */ (function () {
|
|
|
11370
11375
|
};
|
|
11371
11376
|
this.setContent(initializeCSPTemplate(contentTemp));
|
|
11372
11377
|
}
|
|
11373
|
-
this.parent.renderTemplates()
|
|
11378
|
+
this.parent.renderTemplates(function () {
|
|
11379
|
+
if (_this.parent && _this.parent.isReact && !isNullOrUndefined(_this.parent.eventSettings.tooltipTemplate)) {
|
|
11380
|
+
var wraps = (document.querySelector('.' + TOOLTIP_HIDDEN_CLASS));
|
|
11381
|
+
if (wraps) {
|
|
11382
|
+
removeClass([wraps], TOOLTIP_HIDDEN_CLASS);
|
|
11383
|
+
}
|
|
11384
|
+
}
|
|
11385
|
+
});
|
|
11386
|
+
};
|
|
11387
|
+
EventTooltip.prototype.onTooltipOpen = function (args) {
|
|
11388
|
+
if (args.element && this.parent.isReact && !isNullOrUndefined(this.parent.eventSettings.tooltipTemplate)) {
|
|
11389
|
+
addClass([args.element], TOOLTIP_HIDDEN_CLASS);
|
|
11390
|
+
}
|
|
11374
11391
|
};
|
|
11375
11392
|
EventTooltip.prototype.onTooltipClose = function (args) {
|
|
11376
11393
|
if (args.element) {
|
|
@@ -26384,9 +26401,11 @@ var Month = /** @__PURE__ @class */ (function (_super) {
|
|
|
26384
26401
|
}
|
|
26385
26402
|
};
|
|
26386
26403
|
Month.prototype.getMonthStart = function (currentDate) {
|
|
26387
|
-
var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && (this.parent.uiStateValues.
|
|
26404
|
+
var useDisplayDate = this.parent.currentView === 'Month' && !isNullOrUndefined(this.parent.activeViewOptions.displayDate) && !(this.parent.uiStateValues.isSwipeScroll) &&
|
|
26405
|
+
(this.parent.uiStateValues.isCustomMonth || this.isCustomRange());
|
|
26388
26406
|
var date = useDisplayDate ? this.parent.activeViewOptions.displayDate : !(this.parent.uiStateValues.isCustomMonth ||
|
|
26389
|
-
this.isCustomRange()) && this.isCustomMonth() ? currentDate :
|
|
26407
|
+
(!this.parent.uiStateValues.isSwipeScroll && this.isCustomRange())) && this.isCustomMonth() ? currentDate :
|
|
26408
|
+
this.parent.calendarUtil.firstDateOfMonth(currentDate);
|
|
26390
26409
|
var monthStart = getWeekFirstDate(date, this.parent.activeViewOptions.firstDayOfWeek);
|
|
26391
26410
|
return new Date(monthStart.getFullYear(), monthStart.getMonth(), monthStart.getDate());
|
|
26392
26411
|
};
|