@daypilot/daypilot-lite-angular 4.3.0 → 4.5.0-sandbox.707
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/esm2020/lib/core/daypilot-core.mjs +168 -139
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +95 -66
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +167 -138
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +42 -0
- package/package.json +13 -3
|
@@ -69,6 +69,15 @@ var DayPilot;
|
|
|
69
69
|
class Navigator extends NavigatorPropsAndEvents {
|
|
70
70
|
}
|
|
71
71
|
DayPilot.Navigator = Navigator;
|
|
72
|
+
class DatePickerPropsAndEvents {
|
|
73
|
+
}
|
|
74
|
+
DayPilot.DatePickerPropsAndEvents = DatePickerPropsAndEvents;
|
|
75
|
+
class DatePickerConfig extends DatePickerPropsAndEvents {
|
|
76
|
+
}
|
|
77
|
+
DayPilot.DatePickerConfig = DatePickerConfig;
|
|
78
|
+
class DatePicker extends DatePickerPropsAndEvents {
|
|
79
|
+
}
|
|
80
|
+
DayPilot.DatePicker = DatePicker;
|
|
72
81
|
class Locale {
|
|
73
82
|
}
|
|
74
83
|
DayPilot.Locale = Locale;
|
|
@@ -144,7 +153,7 @@ DayPilot Lite
|
|
|
144
153
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
145
154
|
https://www.daypilot.org/
|
|
146
155
|
Licensed under Apache Software License 2.0
|
|
147
|
-
Version: 2025.3.
|
|
156
|
+
Version: 2025.3.707-lite
|
|
148
157
|
*/
|
|
149
158
|
var DayPilot = {};
|
|
150
159
|
if ("undefined" == typeof DayPilot)
|
|
@@ -435,7 +444,11 @@ if (function () {
|
|
|
435
444
|
var y = document.createElementNS(p, "use");
|
|
436
445
|
y.setAttribute("href", n.symbol), m.appendChild(y), d.appendChild(m);
|
|
437
446
|
}
|
|
438
|
-
if (h && (d.className = h), n.toolTip && d.setAttribute("title", n.toolTip), n.backColor && (d.style.background = n.backColor), n.background && (d.style.background = n.background), n.fontColor && (d.style.color = n.fontColor), n.padding && (d.style.padding = n.padding + "px", d.style.boxSizing = "border-box"), n.
|
|
447
|
+
if (h && (d.className = h), n.toolTip && d.setAttribute("title", n.toolTip), n.backColor && (d.style.background = n.backColor), n.background && (d.style.background = n.background), n.fontColor && (d.style.color = n.fontColor), n.padding && (d.style.padding = n.padding + "px", d.style.boxSizing = "border-box"), n.borderColor) {
|
|
448
|
+
const g = n.borders;
|
|
449
|
+
g ? (g.top && (d.style.borderTop = "1px solid " + n.borderColor), g.right && (d.style.borderRight = "1px solid " + n.borderColor), g.bottom && (d.style.borderBottom = "1px solid " + n.borderColor), g.left && (d.style.borderLeft = "1px solid " + n.borderColor)) : d.style.border = "1px solid " + n.borderColor, d.style.boxSizing = "border-box";
|
|
450
|
+
}
|
|
451
|
+
if (n.verticalAlignment)
|
|
439
452
|
switch (d.style.display = "flex", n.verticalAlignment) {
|
|
440
453
|
case "center":
|
|
441
454
|
d.style.alignItems = "center";
|
|
@@ -479,15 +492,23 @@ if (function () {
|
|
|
479
492
|
d.onmousemove = function (e, t, n) { return function (i) { t.calendar.internal && t.calendar.internal.dragInProgress && t.calendar.internal.dragInProgress() || (i.cancelBubble = !0, e.style.cursor = n.cursor, n.dpBorder && (e.dpBorder = n.dpBorder)); }; }(l, t, n), d.onmouseout = function (e, t, n) { return function (t) { e.style.cursor = ""; }; }(l, t, n);
|
|
480
493
|
}
|
|
481
494
|
if (("ResizeEnd" === n.action || "ResizeStart" === n.action) && t.isEvent && t.calendar.internal.touch) {
|
|
482
|
-
var
|
|
483
|
-
|
|
495
|
+
var b = function (e, t, n) {
|
|
496
|
+
return function (i) {
|
|
497
|
+
i.cancelBubble = !0;
|
|
498
|
+
var a = t.calendar.internal.touch, o = i.touches ? i.touches[0] : i, r = {
|
|
499
|
+
x: o.pageX, y: o.pageY
|
|
500
|
+
};
|
|
501
|
+
t.calendar.coords = a.relativeCoords(i), a.preventEventTap = !0, t.calendar.isScheduler ? a.startResizing(e, "ResizeEnd" === n.action ? "right" : "left") : t.calendar.isCalendar && a.startResizing(e, "ResizeEnd" === n.action ? "bottom" : "top", r);
|
|
502
|
+
};
|
|
503
|
+
}(l, t, n);
|
|
504
|
+
DayPilot.rePassive(d, DayPilot.touch.start, b);
|
|
484
505
|
}
|
|
485
506
|
if ("ContextMenu" === n.action && t.isEvent && t.calendar.internal.touch) {
|
|
486
|
-
var
|
|
487
|
-
DayPilot.reNonPassive(d, DayPilot.touch.start,
|
|
507
|
+
var b = function (e, t, n) { return function (i) { i.cancelBubble = !0, i.preventDefault(), r(e, t, n, i), t.calendar.internal.touch.preventEventTap = !0; }; }(l, t, n), w = function (e, t, n) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(l, t, n);
|
|
508
|
+
DayPilot.reNonPassive(d, DayPilot.touch.start, b), DayPilot.reNonPassive(d, DayPilot.touch.end, w);
|
|
488
509
|
}
|
|
489
510
|
if ("Bubble" === n.action && t.isEvent && t.calendar.internal.touch) {
|
|
490
|
-
var
|
|
511
|
+
var b = function (e, t, n) {
|
|
491
512
|
return function (e) {
|
|
492
513
|
e.cancelBubble = !0, e.preventDefault();
|
|
493
514
|
var i = a(n, t, e);
|
|
@@ -496,16 +517,16 @@ if (function () {
|
|
|
496
517
|
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof n.onClicked && n.onClicked(i);
|
|
497
518
|
}
|
|
498
519
|
};
|
|
499
|
-
}(l, t, n),
|
|
500
|
-
DayPilot.reNonPassive(d, DayPilot.touch.start,
|
|
520
|
+
}(l, t, n), w = function (e, t, n) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(l, t, n);
|
|
521
|
+
DayPilot.reNonPassive(d, DayPilot.touch.start, b), DayPilot.reNonPassive(d, DayPilot.touch.end, w);
|
|
501
522
|
}
|
|
502
523
|
if ("Move" === n.action && t.isEvent && t.calendar.internal.touch) {
|
|
503
|
-
var
|
|
504
|
-
DayPilot.rePassive(d, DayPilot.touch.start,
|
|
524
|
+
var b = function (e, t, n) { return function (n) { n.cancelBubble = !0; var i = t.calendar.internal.touch, a = n.touches ? n.touches[0] : n, o = { x: a.pageX, y: a.pageY }; t.calendar.coords = i.relativeCoords(n), DayPilot.Global && DayPilot.Global.touch && (DayPilot.Global.touch.active = !0), i.preventEventTap = !0, i.startMoving(e, o); }; }(l, t, n);
|
|
525
|
+
DayPilot.rePassive(d, DayPilot.touch.start, b);
|
|
505
526
|
}
|
|
506
527
|
if ("Bubble" === n.action && t.isEvent ? (d.onmousemove = function (e, t, n) { return function (e) { n.bubble ? n.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, n), d.onmouseout = function (e, t, n) { return function (e) { "undefined" != typeof DayPilot.Bubble && (n.bubble ? n.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, n)) : "Bubble" === n.action && t.isRow ? (d.onmousemove = function (e, t, n) { return function (e) { n.bubble ? n.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, n), d.onmouseout = function (e, t, n) { return function (e) { "undefined" != typeof DayPilot.Bubble && (n.bubble ? n.bubble.hideOnMouseOut() : t.calendar.resourceBubble && t.calendar.resourceBubble.hideOnMouseOut()); }; }(e, t, n)) : "Bubble" === n.action && "undefined" != typeof DayPilot.Bubble && n.bubble instanceof DayPilot.Bubble && (d.onmousemove = function (e, t, n) { return function (e) { n.bubble.showHtml(null, null); }; }(e, t, n), d.onmouseout = function (e, t, n) { return function (e) { "undefined" != typeof DayPilot.Bubble && n.bubble && n.bubble.hideOnMouseOut(); }; }(e, t, n)), "HoverMenu" === n.action && (d.onmousemove = function (e, t, n) { return function (e) { var i = n.menu; i && i.show && (i.visible ? i.source && "undefined" != typeof i.source.id && i.source.id !== t.id && i.show(t) : i.show(t), i.cancelHideTimeout()); }; }(e, t, n), d.onmouseout = function (e, t, n) { return function (e) { var t = n.menu; t && t.hideOnMouseOver && t.delayedHide(); }; }(e, t, n)), "None" === n.action) {
|
|
507
|
-
var
|
|
508
|
-
DayPilot.reNonPassive(d, DayPilot.touch.start,
|
|
528
|
+
var b = function (e, t, n) { return function (e) { var i = a(n, t, e); "function" == typeof n.onClicked && n.onClicked(i), e.preventDefault(), e.stopPropagation(); }; }(l, t, n);
|
|
529
|
+
DayPilot.reNonPassive(d, DayPilot.touch.start, b);
|
|
509
530
|
}
|
|
510
531
|
return d.onmousedown = function (e, t, n) {
|
|
511
532
|
return function (i) {
|
|
@@ -683,9 +704,7 @@ if (function () {
|
|
|
683
704
|
n = (n < 10 ? "0" : "") + n;
|
|
684
705
|
var i = e;
|
|
685
706
|
return i = i.replace("mm", n), i = i.replace("m", t.minutes()), i = i.replace("H", t.hours()), i = i.replace("h", t.hours()), i = i.replace("d", t.days()), i = i.replace("s", t.seconds());
|
|
686
|
-
}, this.totalHours = function () { return t.ticks / i; }, this.totalDays = function () { return t.ticks / n; }, this.totalMinutes = function () { return t.ticks / a; }, this.totalSeconds = function () { return t.ticks / o; }, this.days = function () {
|
|
687
|
-
return Math.floor(t.totalDays());
|
|
688
|
-
}, this.hours = function () { var e = t.ticks - t.days() * n; return Math.floor(e / i); }, this.minutes = function () { var e = t.ticks - Math.floor(t.totalHours()) * i; return Math.floor(e / a); }, this.seconds = function () { var e = t.ticks - Math.floor(t.totalMinutes()) * a; return Math.floor(e / o); }, void (this.milliseconds = function () { return t.ticks % o; }));
|
|
707
|
+
}, this.totalHours = function () { return t.ticks / i; }, this.totalDays = function () { return t.ticks / n; }, this.totalMinutes = function () { return t.ticks / a; }, this.totalSeconds = function () { return t.ticks / o; }, this.days = function () { return Math.floor(t.totalDays()); }, this.hours = function () { var e = t.ticks - t.days() * n; return Math.floor(e / i); }, this.minutes = function () { var e = t.ticks - Math.floor(t.totalHours()) * i; return Math.floor(e / a); }, this.seconds = function () { var e = t.ticks - Math.floor(t.totalMinutes()) * a; return Math.floor(e / o); }, void (this.milliseconds = function () { return t.ticks % o; }));
|
|
689
708
|
}, DayPilot.Duration.weeks = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24 * 7); }, DayPilot.Duration.days = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60 * 24); }, DayPilot.Duration.hours = function (e) { return new DayPilot.Duration(1e3 * e * 60 * 60); }, DayPilot.Duration.minutes = function (e) { return new DayPilot.Duration(1e3 * e * 60); }, DayPilot.Duration.seconds = function (e) { return new DayPilot.Duration(1e3 * e); }, DayPilot.TimeSpan = function () { throw "Please use DayPilot.Duration class instead of DayPilot.TimeSpan."; };
|
|
690
709
|
try {
|
|
691
710
|
DayPilot.TimeSpan.prototype = Object.create(DayPilot.Duration.prototype);
|
|
@@ -1050,7 +1069,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1050
1069
|
if (this instanceof t.Calendar && !this.P && (o = !0, this.P = !0), !o)
|
|
1051
1070
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
1052
1071
|
var r = this;
|
|
1053
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.
|
|
1072
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.707-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.Q = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.R(); }, this.R = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.S = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); __doPostBack(r.uniqueID, a); }, this.U = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.W, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = r; e.Q || (e.Q = !0, clearInterval(e.X), e.Y(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Z(), e._(), e.nav.select = null, e.nav.cornerRight = null, e.nav.scrollable = null, e.nav.zoom = null, e.nav.loading = null, e.nav.header = null, e.nav.hourTable = null, e.nav.scrolltop = null, e.nav.scroll.onscroll = null, e.nav.scroll = null, e.nav.main = null, e.nav.message = null, e.nav.messageClose = null, e.nav.top = null, t.unregister(e)); }, this.disposed = function () { return this.Q; }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.V = function (e) { r.W(e.responseText); }, this.T = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = r.days, e.startDate = r.startDate, e.heightSpec = r.heightSpec, e.businessBeginsHour = r.businessBeginsHour, e.businessEndsHour = r.businessEndsHour, e.hashes = r.hashes, e.timeFormat = r.timeFormat, e.viewType = r.viewType, e.locale = r.locale, e; }, this.ba = function (e, t) {
|
|
1054
1073
|
for (var n = e.parentNode; n && "TD" !== n.tagName;)
|
|
1055
1074
|
n = n.parentNode;
|
|
1056
1075
|
var i = r.eventBorderRadius;
|
|
@@ -1086,8 +1105,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1086
1105
|
return void (document.location.href = e.CallBackRedirect);
|
|
1087
1106
|
if ("None" === e.UpdateType)
|
|
1088
1107
|
return r.loadingStop(), void r.u();
|
|
1089
|
-
if (r.Y(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec,
|
|
1090
|
-
r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.ga()), e.Hashes)
|
|
1108
|
+
if (r.Y(), "Full" === e.UpdateType && (r.columns = e.Columns, r.days = e.Days, r.startDate = new DayPilot.Date(e.StartDate), r.heightSpec = e.HeightSpec ? e.HeightSpec : r.heightSpec,
|
|
1109
|
+
r.businessBeginsHour = e.BusinessBeginsHour ? e.BusinessBeginsHour : r.businessBeginsHour, r.businessEndsHour = e.BusinessEndsHour ? e.BusinessEndsHour : r.businessEndsHour, r.headerDateFormat = e.HeaderDateFormat ? e.HeaderDateFormat : r.headerDateFormat, r.viewType = e.ViewType, r.backColor = e.BackColor ? e.BackColor : r.backColor, r.eventHeaderVisible = e.EventHeaderVisible ? e.EventHeaderVisible : r.eventHeaderVisible, r.timeFormat = e.TimeFormat ? e.TimeFormat : r.timeFormat, r.locale = e.Locale ? e.Locale : r.locale, r.ga()), e.Hashes)
|
|
1091
1110
|
for (var n in e.Hashes)
|
|
1092
1111
|
r.hashes[n] = e.Hashes[n];
|
|
1093
1112
|
r.events.list = e.Events, r.ha(), r.ia(), "Full" === e.UpdateType && (r.ja(), r.ka(), r.la(), r.ma()), r.u(), r.na(), r.clearSelection(), r.afterRender(e.CallBackData, !0), r.loadingStop();
|
|
@@ -1721,7 +1740,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1721
1740
|
var s, l = e ? document.createElement("div") : o.firstChild;
|
|
1722
1741
|
e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.L("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.L("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
|
|
1723
1742
|
var d = {};
|
|
1724
|
-
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.lb(a, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(a, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]),
|
|
1743
|
+
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.lb(a, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(a, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]),
|
|
1744
|
+
r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, a, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), a.toolTip && (s.title = a.toolTip), a.cssClass && DayPilot.Util.addClass(l, a.cssClass), a.backColor && (s.style.background = a.backColor), a.areas && DayPilot.Areas.attach(l, a);
|
|
1725
1745
|
var c = a.verticalAlignment;
|
|
1726
1746
|
if (c)
|
|
1727
1747
|
switch (s.style.display = "flex", c) {
|
|
@@ -2043,10 +2063,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2043
2063
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
2044
2064
|
"use strict";
|
|
2045
2065
|
"undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) {
|
|
2046
|
-
this.v = "2025.3.
|
|
2066
|
+
this.v = "2025.3.707-lite";
|
|
2047
2067
|
var t = "navigator_" + (new Date).getTime(), n = this;
|
|
2048
2068
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
2049
|
-
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", e)
|
|
2069
|
+
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, this.showToday = !0, this.todayText = "Today", this.weekStarts = "Auto", e)
|
|
2050
2070
|
for (var t in e)
|
|
2051
2071
|
this[t] = e[t];
|
|
2052
2072
|
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Pb(); this.resetTarget && !e ? this.Qb(this.date) : !this.resetTarget && e && (n.date = e); var t = this.D(); return t && t.addEventListener("input", function () { n.date = n.Pb(), n.date && n.navigator.select(n.date, { dontNotify: !0 }); }), this; }, this.close = function () { document.removeEventListener("mousedown", n.close), document.removeEventListener("wheel", n.close), window.removeEventListener("resize", n.close), n.Eb && (n.Eb = !1, n.navigator && n.navigator.dispose(), n.div.innerHTML = "", n.div && n.div.parentNode === document.body && document.body.removeChild(n.div)); }, this.Rb = function (e) { this.date = new DayPilot.Date(e), this.Qb(this.date); }, this.select = function (e) { var t = {}; t.date = new DayPilot.Date(e), t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(t), t.preventDefault.value) || (this.Rb(e), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(t)); }, this.Pb = function () {
|
|
@@ -2072,7 +2092,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2072
2092
|
if (!this.Eb) {
|
|
2073
2093
|
document.addEventListener("mousedown", n.close), document.addEventListener("wheel", n.close), window.addEventListener("resize", n.close);
|
|
2074
2094
|
var e = this.D(), i = new DayPilot.Navigator(t);
|
|
2075
|
-
i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday = n.showToday, i.todayText = n.todayText, i.onTodayClick = function (e) { i.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, i.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(i.Sb), a = t.toString(n.pattern, n.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(e), e.preventDefault.value) || (n.Qb(a), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(e)); }, this.navigator = i;
|
|
2095
|
+
i.api = 2, i.cssOnly = !0, i.theme = n.theme, i.weekStarts = "Auto", i.locale = n.locale, i.showToday = n.showToday, i.todayText = n.todayText, i.weekStarts = n.weekStarts, i.onTodayClick = function (e) { i.onTimeRangeSelected({ start: DayPilot.Date.today() }), e.preventDefault(); }, i.onTimeRangeSelected = function (e) { n.date = e.start; var t = e.start.addTime(i.Sb), a = t.toString(n.pattern, n.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof n.onTimeRangeSelect && (n.onTimeRangeSelect(e), e.preventDefault.value) || (n.Qb(a), n.close(), "function" == typeof n.onTimeRangeSelected && n.onTimeRangeSelected(e)); }, this.navigator = i;
|
|
2076
2096
|
var a = { x: 0, y: 0, w: 0, h: 0 };
|
|
2077
2097
|
e && (a = DayPilot.abs(e));
|
|
2078
2098
|
var o = a.h, r = n.targetAlignment, s = document.createElement("div");
|
|
@@ -2084,7 +2104,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2084
2104
|
var c = a.x + a.w - i.nav.top.offsetWidth;
|
|
2085
2105
|
s.style.left = c + "px";
|
|
2086
2106
|
}
|
|
2087
|
-
this.Eb = !0, this.onShow
|
|
2107
|
+
if (this.Eb = !0, this.onShow) {
|
|
2108
|
+
var u = {};
|
|
2109
|
+
this.onShow(u);
|
|
2110
|
+
}
|
|
2088
2111
|
}
|
|
2089
2112
|
}, this.prepare(), this.init();
|
|
2090
2113
|
});
|
|
@@ -2096,7 +2119,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2096
2119
|
var e = function () { }, t = {};
|
|
2097
2120
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
|
|
2098
2121
|
var i = this, a = null;
|
|
2099
|
-
this.v = "2025.3.
|
|
2122
|
+
this.v = "2025.3.707-lite", this.zIndex = 120, this.cssClassPrefix = "menu_default", this.cssOnly = !0, this.menuTitle = null, this.showMenuTitle = !1, this.hideOnMouseOut = !1, this.hideAfter = 200, this.theme = null, this.onShow = null, this.Tb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, o) {
|
|
2100
2123
|
o = o || {};
|
|
2101
2124
|
var r = null;
|
|
2102
2125
|
if (n ? "string" == typeof n.id || "number" == typeof n.id ? r = n.id : "function" == typeof n.id ? r = n.id() : "function" == typeof n.value && (r = n.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Tb.submenu = null, null !== t.mouse) {
|
|
@@ -2658,13 +2681,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2658
2681
|
t.result = n.serialize(), n.onChange(t);
|
|
2659
2682
|
}
|
|
2660
2683
|
}, o.onBlur = function () { n.canceling || n.Fc(o); }, o.apply(e), o.Ec = i, o.row = e, o.element && i.appendChild(o.element), this.f.push(o), this.Ec.appendChild(i);
|
|
2661
|
-
}, r.prototype.validate = function () {
|
|
2662
|
-
var e = this, t = !0;
|
|
2663
|
-
return this.f.forEach(function (n) {
|
|
2664
|
-
var i = e.Fc(n);
|
|
2665
|
-
t = t && i;
|
|
2666
|
-
}), t;
|
|
2667
|
-
}, r.prototype.Fc = function (e, t) {
|
|
2684
|
+
}, r.prototype.validate = function () { var e = this, t = !0; return this.f.forEach(function (n) { var i = e.Fc(n); t = t && i; }), t; }, r.prototype.Fc = function (e, t) {
|
|
2668
2685
|
function n() { e.Gc && (e.Gc.remove(), e.Gc = null), e.Ec.classList.add(u); var t = document.createElement("div"); t.classList.add(h), t.innerText = c.message, e.Gc = t, e.Ec.appendChild(t); }
|
|
2669
2686
|
t = t || {};
|
|
2670
2687
|
var i = t.debounce, a = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
|
|
@@ -3072,7 +3089,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3072
3089
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
3073
3090
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
3074
3091
|
e.Month = function (n, i) {
|
|
3075
|
-
this.v = "2025.3.
|
|
3092
|
+
this.v = "2025.3.707-lite", this.nav = {};
|
|
3076
3093
|
var a = this;
|
|
3077
3094
|
this.id = n, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cellMarginBottom = 0, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, this.eventBorderRadius = null, this.eventHeight = 25, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.hideUntilInit = !0, this.lineSpace = 1, this.locale = "en-us", this.showToolTip = !0, this.startDate = new DayPilot.Date, this.theme = null, this.visible = !0, this.weekStarts = "Auto", this.width = "100%", this.xssProtection = "Enabled", this.afterRender = function () { }, this.cellHeaderClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.headerClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onCellHeaderClick = null, this.onCellHeaderClicked = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeEventRender = null, this.onBeforeCellRender = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.Q = !1, this.W = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.Y(), a.ed(), a.ha(), "Full" === e.UpdateType && (a.fd(), a.gd()), a.ma(), a.show(), a.na(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
3078
3095
|
var t = null;
|
|
@@ -3262,10 +3279,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3262
3279
|
var h = a.eventBorderRadius;
|
|
3263
3280
|
for ("number" == typeof h && (h += "px"); l > 0 && n < this.rows.length;) {
|
|
3264
3281
|
var f = Math.min(this.getColCount() - t, l), v = this.rows[n], p = this.getRowTop(n), m = v.getHeight(), y = document.createElement("div");
|
|
3265
|
-
y.setAttribute("unselectable", "on"), y.style.position = "absolute", y.style.left = this.getCellWidth() * t + "%", y.style.width = this.getCellWidth() * f + "%", y.style.top = p + "px", y.style.height = m + "px", y.style.cursor = u,
|
|
3282
|
+
y.setAttribute("unselectable", "on"), y.style.position = "absolute", y.style.left = this.getCellWidth() * t + "%", y.style.width = this.getCellWidth() * f + "%", y.style.top = p + "px", y.style.height = m + "px", y.style.cursor = u,
|
|
3283
|
+
y.classList.add(a.L("_shadow"));
|
|
3266
3284
|
var g = document.createElement("div");
|
|
3267
|
-
g.setAttribute("unselectable", "on"), y.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.classList.add(a.L("_shadow_inner")), h && (l === o && (y.style.borderTopLeftRadius = h, y.style.borderBottomLeftRadius = h, g.style.borderTopLeftRadius = h, g.style.borderBottomLeftRadius = h),
|
|
3268
|
-
l <= f && (y.style.borderTopRightRadius = h, y.style.borderBottomRightRadius = h, g.style.borderTopRightRadius = h, g.style.borderBottomRightRadius = h)), this.nav.top.appendChild(y), this.shadow.list.push(y), l -= f + 7 - this.getColCount(), t = 0, n++;
|
|
3285
|
+
g.setAttribute("unselectable", "on"), y.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.classList.add(a.L("_shadow_inner")), h && (l === o && (y.style.borderTopLeftRadius = h, y.style.borderBottomLeftRadius = h, g.style.borderTopLeftRadius = h, g.style.borderBottomLeftRadius = h), l <= f && (y.style.borderTopRightRadius = h, y.style.borderBottomRightRadius = h, g.style.borderTopRightRadius = h, g.style.borderBottomRightRadius = h)), this.nav.top.appendChild(y), this.shadow.list.push(y), l -= f + 7 - this.getColCount(), t = 0, n++;
|
|
3269
3286
|
}
|
|
3270
3287
|
}, this.clearShadow = function () {
|
|
3271
3288
|
if (this.shadow) {
|
|
@@ -3727,7 +3744,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3727
3744
|
if (e.timeRangeSelecting) {
|
|
3728
3745
|
if (e.timeRangeSelecting.moved) {
|
|
3729
3746
|
var d = e.timeRangeSelecting, i = d.root, o = new DayPilot.Date(i.getDateFromCell(d.from.x, d.from.y)), c = o.addDays(d.width);
|
|
3730
|
-
i.O(o, c)
|
|
3747
|
+
i.O(o, c);
|
|
3731
3748
|
}
|
|
3732
3749
|
e.timeRangeSelecting = null;
|
|
3733
3750
|
}
|
|
@@ -3775,7 +3792,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3775
3792
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3776
3793
|
var e = DayPilot.Util.isVueVNode;
|
|
3777
3794
|
DayPilot.Navigator = function (t, n) {
|
|
3778
|
-
this.v = "2025.3.
|
|
3795
|
+
this.v = "2025.3.707-lite";
|
|
3779
3796
|
var i = this;
|
|
3780
3797
|
this.id = t, this.api = 2, this.isNavigator = !0, this.autoFocusOnClick = !0, this.weekStarts = "Auto", this.selectMode = "Day", this.titleHeight = 30, this.dayHeaderHeight = 30, this.bound = null, this.cellWidth = 30, this.cellHeight = 30, this.cssClassPrefix = "navigator_default", this.freeHandSelectionEnabled = !1, this.selectionStart = (new DayPilot.Date).getDatePart(), this.selectionEnd = null, this.selectionDay = null, this.showMonths = 1, this.skipMonths = 1, this.command = "navigate", this.year = (new DayPilot.Date).getYear(), this.month = (new DayPilot.Date).getMonth() + 1, this.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", this.weekNumberAlgorithm = "Auto", this.rowsPerMonth = "Six", this.orientation = "Vertical", this.locale = "en-us", this.rtl = !1, this.visible = !0, this.timeRangeSelectedHandling = "Bind", this.visibleRangeChangedHandling = "Enabled", this.onVisibleRangeChange = null, this.onVisibleRangeChanged = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onTodayClick = null, this.nav = {}, this.zb = {}, this.nd = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.od() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.pd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.od() || (this.root.style.width = 7 * r.cellWidth() + this.pd() + "px"), this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var e = document.createElement("input"); e.type = "hidden", e.name = i.id + "_state", e.id = e.name, this.root.appendChild(e), this.state = e, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.selectionDay ? this.startDate = new DayPilot.Date(this.selectionDay).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.ta = function () { return 2 === i.api; }, this.fd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.qd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.rd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.sd = function () {
|
|
3781
3798
|
if (!r.od())
|
|
@@ -3846,7 +3863,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3846
3863
|
var I = document.createElement("div");
|
|
3847
3864
|
a.cells[M][C] = I;
|
|
3848
3865
|
var R = i.Bd(M, C), L = R.x, B = R.y, z = r.od() ? "%" : "px";
|
|
3849
|
-
I.day = k, I.x = M, I.y = C, I.left = L, I.top = B, I.isCurrentMonth = A, I.isNextMonth = H,
|
|
3866
|
+
I.day = k, I.x = M, I.y = C, I.left = L, I.top = B, I.isCurrentMonth = A, I.isNextMonth = H,
|
|
3867
|
+
I.isPrevMonth = E, I.showBefore = s, I.showAfter = l, I.className = this.L(A ? "_day" : "_dayother"), i.qd(I, "cell"), k.getTime() === v.getTime() && A && this.qd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.qd(I, "weekend"), I.style.position = "absolute", I.style.left = L + z, I.style.right = L + z, I.style.top = B + "px", I.style.width = i.vd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
3850
3868
|
var U = document.createElement("div");
|
|
3851
3869
|
U.style.position = "absolute", U.className = k.getTime() === v.getTime() && A ? this.L("_todaybox") : this.L("_daybox"), i.qd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
|
|
3852
3870
|
var O = null;
|
|
@@ -4307,7 +4325,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4307
4325
|
i.O({ "mode": "FreeHand" });
|
|
4308
4326
|
}
|
|
4309
4327
|
a.start = null, a.end = null;
|
|
4310
|
-
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ub(n);
|
|
4328
|
+
}, this.dispose = function () { var e = i; e.root && (e.root.removeAttribute("style"), e.root.removeAttribute("class"), e.root.dp = null, e.root.innerHTML = null, e.root = null, e.Q = !0); }, this.disposed = function () { return this.Q; }, this.aa = function () { this.root.dispose = this.dispose; }, this.Init = this.init, this.ub(n);
|
|
4311
4329
|
}, "undefined" != typeof jQuery && !function (e) {
|
|
4312
4330
|
e.fn.daypilotNavigator = function (e) {
|
|
4313
4331
|
var t = null, n = this.each(function () {
|
|
@@ -4358,9 +4376,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4358
4376
|
if ("undefined" == typeof DayPilot.Scheduler) {
|
|
4359
4377
|
var t = navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1, n = {}, i = function () { }, a = !1, o = function () { return document.body; }, r = function () { return document.createElement("div"); };
|
|
4360
4378
|
DayPilot.Scheduler = function (a, s) {
|
|
4361
|
-
this.v = "2025.3.
|
|
4379
|
+
this.v = "2025.3.707-lite";
|
|
4362
4380
|
var l = this;
|
|
4363
|
-
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.he = -1, this.ie = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.zb = {}, this.zb.cells = [], this.zb.linesVertical = {}, this.zb.linesHorizontal = {}, this.zb.timeHeaderGroups = [], this.zb.timeHeader = {}, this.zb.events = [], this.nav = {}, this.scrollTo = function (e) { l.je(e); }, this.je = function (e) {
|
|
4381
|
+
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventBorderRadius = null, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onBeforeTimeHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.he = -1, this.ie = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.zb = {}, this.zb.cells = [], this.zb.linesVertical = {}, this.zb.linesHorizontal = {}, this.zb.timeHeaderGroups = [], this.zb.timeHeader = {}, this.zb.events = [], this.nav = {}, this.scrollTo = function (e) { l.je(e); }, this.je = function (e) {
|
|
4364
4382
|
if (e) {
|
|
4365
4383
|
if (!l.Ma)
|
|
4366
4384
|
return void (l.ke = e);
|
|
@@ -4483,7 +4501,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4483
4501
|
break;
|
|
4484
4502
|
s.left = this.getPixels(s.start).left;
|
|
4485
4503
|
var d = this.getPixels(s.end).left, c = d - s.left;
|
|
4486
|
-
s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ke()) : s.text = this.Le(s, i), c > 0
|
|
4504
|
+
if (s.width = c, "string" == typeof a ? s.text = s.start.toString(a, f.Ke()) : s.text = this.Le(s, i), c > 0) {
|
|
4505
|
+
if ("function" == typeof this.onBeforeTimeHeaderRender) {
|
|
4506
|
+
const u = {};
|
|
4507
|
+
u.start = s.start, u.end = s.end, u.text = s.text, u.html = null, u.toolTip = l.ab(s.text), u.backColor = null, u.fontColor = null, u.level = this.timeHeader.length, u.cssClass = null;
|
|
4508
|
+
const h = {};
|
|
4509
|
+
h.header = u, h.control = l, this.onBeforeTimeHeaderRender(h), s.text = u.text, s.html = u.html, s.backColor = u.backColor, s.fontColor = u.fontColor, s.toolTip = u.toolTip, s.areas = u.areas, s.cssClass = u.cssClass;
|
|
4510
|
+
}
|
|
4511
|
+
o.push(s);
|
|
4512
|
+
}
|
|
4513
|
+
r = s.end;
|
|
4487
4514
|
}
|
|
4488
4515
|
this.timeHeader.push(o);
|
|
4489
4516
|
}
|
|
@@ -4545,9 +4572,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4545
4572
|
}
|
|
4546
4573
|
"function" == typeof l.onEventDeleted && l.onEventDeleted(t);
|
|
4547
4574
|
}
|
|
4548
|
-
}, this.getScrollX = function () {
|
|
4549
|
-
return this.nav.scroll.scrollLeft;
|
|
4550
|
-
}, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, i) {
|
|
4575
|
+
}, this.getScrollX = function () { return this.nav.scroll.scrollLeft; }, this.getScrollY = function () { return this.nav.scroll.scrollTop; }, this.K = function (e, t, n, i) {
|
|
4551
4576
|
if ("Disabled" !== this.eventResizeHandling) {
|
|
4552
4577
|
n = l.Ve(n);
|
|
4553
4578
|
var a = {};
|
|
@@ -4959,13 +4984,16 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4959
4984
|
case "center": m.style.justifyContent = "center";
|
|
4960
4985
|
}
|
|
4961
4986
|
h.appendChild(m);
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4987
|
+
const y = d.areas || [];
|
|
4988
|
+
var g = l.Cg(a);
|
|
4989
|
+
DayPilot.Areas.attach(h, g, { areas: y });
|
|
4990
|
+
var b = r();
|
|
4991
|
+
b.style.position = "absolute", b.style.bottom = "0px", b.style.width = "100%", b.style.height = "0px", b.style.boxSizing = "content-box", b.style.borderBottom = "1px solid transparent", b.className = this.L("_resourcedivider"), h.appendChild(b);
|
|
4992
|
+
var w = r(), D = r();
|
|
4993
|
+
D.innerHTML = l.ab(d.text, d.html), D.className = l.L("_rowheader_inner_text"), s.textDiv = D, s.cellDiv = h, w.appendChild(D), m.appendChild(w);
|
|
4994
|
+
var x = d.verticalAlignment || d.verticalAlignment;
|
|
4995
|
+
if (x)
|
|
4996
|
+
switch (m.style.display = "flex", x) {
|
|
4969
4997
|
case "center":
|
|
4970
4998
|
m.style.alignItems = "center";
|
|
4971
4999
|
break;
|
|
@@ -5140,7 +5168,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5140
5168
|
return;
|
|
5141
5169
|
e.data = t;
|
|
5142
5170
|
}
|
|
5143
|
-
var n = e.index, i = l.rowlist, a = i[n], o = e.data, r =
|
|
5171
|
+
var n = e.index, i = l.rowlist, a = i[n], o = e.data, r = l.Kg(o), e = l.Lg(r);
|
|
5144
5172
|
e.level = a.level, e.index = n, e.top = a.top, e.height = a.height, i[n] = e, e.resetEvents(), l.Rf(e.index), l.Mg(e), l.Hg(e), l.lf(e.index), l.df(), l.gf();
|
|
5145
5173
|
}, this.Mg = function (e) {
|
|
5146
5174
|
for (var t = l.events.list, n = t.length, i = "function" == typeof l.onBeforeEventRender, a = 0; a < n; a++) {
|
|
@@ -5162,7 +5190,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5162
5190
|
e = e || [], l.rowlist = [], this.Ng(e);
|
|
5163
5191
|
}, this.sa = function () { return new DayPilot.Date(this.startDate); }, this.Pf = function () { return new DayPilot.Date(l.startDate).addDays(l.days); }, this.visibleStart = function () { return this.sa(); }, this.visibleEnd = function () { return this.Pf(); }, this.Lg = function (e) {
|
|
5164
5192
|
var t = {};
|
|
5165
|
-
return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l.ab(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.Ce, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () {
|
|
5193
|
+
return t.backColor = e.backColor, t.fontColor = e.fontColor, t.cssClass = e.cssClass, t.name = e.name, t.html = l.ab(e.name, e.html), t.id = e.id, t.toolTip = e.toolTip, t.areas = e.areas, t.tags = e.tags, t.height = l.eventHeight, t.level = 0, t.resource = e.Ce, t.lines = [], t.isRow = !0, t.getHeight = function () { return Math.max(l.eventHeight, this.lines.length * l.eventHeight); }, t.resetEvents = function () {
|
|
5166
5194
|
var e = this;
|
|
5167
5195
|
e.events = [], e.events.forRange = function (t, n) {
|
|
5168
5196
|
t = new DayPilot.Date(t), n = n ? new DayPilot.Date(n) : l.startDate.addDays(l.days);
|
|
@@ -5203,14 +5231,18 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5203
5231
|
var a = this.Kg(e[n], i), o = l.Lg(a, parent);
|
|
5204
5232
|
o.index = n, t.push(o);
|
|
5205
5233
|
}
|
|
5206
|
-
}, this.Ag = function (e) { var t = {}; return t.row = this.Cg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Kg = function (e, t) {
|
|
5234
|
+
}, this.Ag = function (e) { var t = {}; return t.row = this.Cg(e), DayPilot.Util.copyProps(e, t.row, ["html", "backColor", "fontColor", "cssClass", "toolTip", "areas"]), "function" == typeof this.onBeforeRowHeaderRender && this.onBeforeRowHeaderRender(t), t; }, this.Kg = function (e, t) {
|
|
5207
5235
|
var n = { get $data() { return this.Ce; } };
|
|
5208
5236
|
for (var i in t)
|
|
5209
5237
|
n[i] = t[i];
|
|
5210
5238
|
for (var i in e)
|
|
5211
5239
|
n[i] = e[i];
|
|
5212
5240
|
return n.html = l.ab(e.name, e.html), n.Ce = e, n;
|
|
5213
|
-
}, this.Pg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = h.Qg, this.nav.top.ontouchmove = h.Rg, this.nav.top.ontouchend = h.Sg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.gb()), t.appendChild(n), t.appendChild(this.Tg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ge() + this.Za() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ge() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, a.appendChild(l.Ug()), a.appendChild(l.Vg()), a.appendChild(o); var s = r(); s.style.clear = "left"; var d = r(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = c, this.nav.top.appendChild(t), this.nav.top.appendChild(i), this.nav.top.appendChild(a), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(c); }, this.ia = function () {
|
|
5241
|
+
}, this.Pg = function () { this.nav.top.dp = this, this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.L("_main")), this.nav.top.setAttribute("role", "region"), this.nav.top.setAttribute("aria-label", "scheduler"), this.nav.top.style.userSelect = "none", this.nav.top.style.webkitUserSelect = "none", this.nav.top.style.WebkitTapHighlightColor = "rgba(0,0,0,0)", this.nav.top.style.WebkitTouchCallout = "none", this.width && (this.nav.top.style.width = this.width), this.nav.top.style.lineHeight = "1.2", this.nav.top.style.position = "relative", this.visible || (this.nav.top.style.display = "none"), this.nav.top.ontouchstart = h.Qg, this.nav.top.ontouchmove = h.Rg, this.nav.top.ontouchend = h.Sg; var e = this.rowHeaderWidth, t = r(); t.style.position = "absolute", t.style.left = "0px", t.style.width = e + "px"; var n = r(); n.style.height = "0px", n.style.boxSizing = "content-box", n.style.borderTop = "1px solid transparent", n.className = this.L("_divider_horizontal"), this.nav.dh1 = n, this.nav.left = t, t.appendChild(this.gb()), t.appendChild(n), t.appendChild(this.Tg()); var i = r(); i.style.position = "absolute", i.style.left = e + "px", i.style.width = "1px", i.style.height = this.Ge() + this.Za() + "px", i.className = this.L("_splitter"), this.nav.divider = i; var a = r(); a.style.marginLeft = e + 1 + "px", a.style.position = "relative", this.nav.right = a; var o = r(); o.style.position = "absolute", o.style.top = this.Ge() + "px", o.style.width = "100%", o.style.height = "1px", o.style.boxSizing = "border-box", o.style.borderBottom = "1px solid transparent", o.setAttribute("data-dh2", "true"), o.className = this.L("_divider_horizontal"), this.nav.dh2 = o, a.appendChild(l.Ug()), a.appendChild(l.Vg()), a.appendChild(o); var s = r(); s.style.clear = "left"; var d = r(); d.style.height = "1px", d.style.position = "absolute", d.style.left = "0px", d.style.right = "0px", d.style.display = "none", d.className = this.L("_divider_horizontal"), this.nav.dividerTop = d; var c = r(); c.style.height = "1px", c.style.position = "absolute", c.style.left = "0px", c.style.right = "0px", c.style.display = "none", c.className = this.L("_divider_horizontal") + " " + this.L("_divider_horizontal_frozen_bottom"), this.nav.dividerBottom = c, this.nav.top.appendChild(t), this.nav.top.appendChild(i), this.nav.top.appendChild(a), this.nav.top.appendChild(s), this.nav.top.appendChild(d), this.nav.top.appendChild(c); }, this.ia = function () {
|
|
5242
|
+
var e = this.Ge();
|
|
5243
|
+
this.nav.corner && (this.nav.corner.style.height = e + "px"),
|
|
5244
|
+
this.divTimeScroll && (this.divTimeScroll.style.height = e + "px"), this.divNorth && (this.divNorth.style.height = e + "px"), this.nav.dh1 && this.nav.dh2 && (this.nav.dh1.style.top = e + "px", this.nav.dh2.style.top = e + "px"), this.nav.scroll.style.top = e + 1 + "px";
|
|
5245
|
+
}, this.Wg = function () { var e = this.rowHeaderWidth; this.nav.corner && (this.nav.corner.style.width = e + "px"), this.divResScroll.style.width = e + "px", this.nav.left.style.width = e + "px", this.nav.divider.style.left = e - 1 + "px", this.nav.right.style.marginLeft = e + "px"; }, this.Xg = function () {
|
|
5214
5246
|
var e = this.rowHeaderWidth, t = this.divHeader;
|
|
5215
5247
|
t.style.width = e + "px";
|
|
5216
5248
|
for (var n = l.sg(), i = n.start; i < n.end; i++) {
|
|
@@ -5222,13 +5254,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5222
5254
|
}
|
|
5223
5255
|
}
|
|
5224
5256
|
l.nav.resScrollSpace && (l.nav.resScrollSpace.style.width = e + "px");
|
|
5225
|
-
}, this.cf = function () { this.Wg(), this.Xg(); }, this.gb = function () {
|
|
5226
|
-
var e = this.rowHeaderWidth, t = r();
|
|
5227
|
-
l.nav.corner = t,
|
|
5228
|
-
t.style.width = e + "px", t.style.height = this.Ge() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner");
|
|
5229
|
-
var n = r();
|
|
5230
|
-
return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = " ", this.divCorner = n, t.appendChild(n), t;
|
|
5231
|
-
}, this.Ge = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Yg = null, this.Tg = function () {
|
|
5257
|
+
}, this.cf = function () { this.Wg(), this.Xg(); }, this.gb = function () { var e = this.rowHeaderWidth, t = r(); l.nav.corner = t, t.style.width = e + "px", t.style.height = this.Ge() + "px", t.style.overflow = "hidden", t.style.position = "relative", t.oncontextmenu = function () { return !1; }, t.className = this.L("_corner"); var n = r(); return n.style.position = "absolute", n.style.top = "0px", n.style.left = "0px", n.style.right = "0px", n.style.bottom = "0px", n.className = this.L("_corner_inner"), n.innerHTML = " ", this.divCorner = n, t.appendChild(n), t; }, this.Ge = function () { return l.timeHeaders ? l.timeHeaders.length * l.headerHeight : 0; }, this.Yg = null, this.Tg = function () {
|
|
5232
5258
|
var e = r();
|
|
5233
5259
|
e.style.width = this.rowHeaderWidth + "px", e.style.height = this.Za() + "px", e.style.overflow = "hidden", e.style.position = "relative", e.className = l.L("_rowheader_scroll");
|
|
5234
5260
|
var i = l.ca.zg();
|
|
@@ -5602,7 +5628,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5602
5628
|
default: throw n ? new DayPilot.Exception("Invalid scale value: " + t) : new DayPilot.Exception("Invalid groupBy value: " + t);
|
|
5603
5629
|
}
|
|
5604
5630
|
return i.getTime() > a.getTime() && (i = a), i;
|
|
5605
|
-
}, this.Qh = function (e, t) { var n = this.nav.timeHeader, i = this.timeHeader[t][e], a = t < this.timeHeader.length - 1, o = i.left, s = i.width, d = t * l.headerHeight, c = l.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = s + "px", u.style.height = c + "px", i.toolTip && (u.title = i.toolTip), u.setAttribute("aria-hidden", "true"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = i.start, u.cell.end = i.end, u.cell.level = t, u.cell.th = i, u.onclick = this.Dg, u.oncontextmenu = this.Eg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = l.ab(i.text, i.
|
|
5631
|
+
}, this.Qh = function (e, t) { var n = this.nav.timeHeader, i = this.timeHeader[t][e], a = t < this.timeHeader.length - 1, o = i.left, s = i.width, d = t * l.headerHeight, c = l.headerHeight, u = r(); u.style.position = "absolute", u.style.top = d + "px", u.style.left = o + "px", u.style.width = s + "px", u.style.height = c + "px", i.toolTip && (u.title = i.toolTip), u.setAttribute("aria-hidden", "true"), i.cssClass && DayPilot.Util.addClass(u, i.cssClass), u.style.userSelect = "none", u.style.webkitUserSelect = "none", u.oncontextmenu = function () { return !1; }, u.cell = {}, u.cell.start = i.start, u.cell.end = i.end, u.cell.level = t, u.cell.th = i, u.onclick = this.Dg, u.oncontextmenu = this.Eg, DayPilot.re(u, DayPilot.touch.start, function (e) { e.stopPropagation(); }), u.style.overflow = "hidden", l.timeHeaderTextWrappingEnabled || (u.style.whiteSpace = "nowrap"); var h = r(); h.innerHTML = l.ab(i.text, i.html), i.backColor && (h.style.background = i.backColor), i.fontColor && (h.style.color = i.fontColor); var f = this.L("_timeheadercol"), v = this.L("_timeheadercol_inner"); a && (f = this.L("_timeheadergroup"), v = this.L("_timeheadergroup_inner")), DayPilot.Util.addClass(u, f), DayPilot.Util.addClass(h, v), DayPilot.Util.addClass(u, l.L("_timeheader_cell")), DayPilot.Util.addClass(h, l.L("_timeheader_cell_inner")), u.appendChild(h), DayPilot.Areas.attach(u, i, { areas: i.areas }), this.zb.timeHeader[e + "_" + t] = u, this.elements.timeHeader.push(u), n.appendChild(u); }, this.dg = function () { l.rowlist.forEach(function (e) { var t = e.getHeight() + l.rowMarginTop + l.rowMarginBottom; e.height !== t && (l.of = !0), e.height = t; }), l.of && (l.zb.drawArea = null); }, this.bf = function () {
|
|
5606
5632
|
l.rowlist.forEach(function (e) {
|
|
5607
5633
|
var t = l.divHeader;
|
|
5608
5634
|
if (t) {
|
|
@@ -5840,7 +5866,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
5840
5866
|
return e ? e.weekStarts : 0;
|
|
5841
5867
|
}
|
|
5842
5868
|
return l.weekStarts || 0;
|
|
5843
|
-
}, f.zg = function () {
|
|
5869
|
+
}, f.zg = function () {
|
|
5870
|
+
var e = navigator.userAgent.toLowerCase();
|
|
5871
|
+
return e.indexOf("mobile") !== -1 || e.indexOf("android") != -1;
|
|
5872
|
+
}, f.gg = function (e) { return "Always" === l.useEventBoxes || "Never" !== l.useEventBoxes && e < 60 * l.Pe() * 1e3; }, this.hi = function (e, t) {
|
|
5844
5873
|
var n = e + "_" + t, i = l.rowlist;
|
|
5845
5874
|
if (this.cellProperties || (this.cellProperties = {}), this.cellProperties[n])
|
|
5846
5875
|
return this.cellProperties[n];
|