@daypilot/daypilot-lite-angular 3.30.0 → 3.31.0
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 +10 -1
- package/esm2020/lib/core/daypilot-core.mjs +198 -162
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +43 -39
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +197 -161
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +6 -0
- package/package.json +2 -2
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2024.4.
|
|
133
|
+
Version: 2024.4.631-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -992,7 +992,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
992
992
|
if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
|
|
993
993
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
994
994
|
var r = this;
|
|
995
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.
|
|
995
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.631-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.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.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", 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.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.S = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.U, 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.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), 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.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { r.U(e.responseText); }, this.R = 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._ = function (e, t) {
|
|
996
996
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
997
997
|
i = i.parentNode;
|
|
998
998
|
var a = r.eventBorderRadius;
|
|
@@ -1571,7 +1571,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1571
1571
|
u.start = p.start.addTime(m * a), u.end = u.start.addTime(a), u.resource = p.id, u.onmousedown = this.wa, u.onmouseup = function () { return !1; }, u.onclick = function () { return !1; }, u.root = this, u.style.padding = "0px", u.style.border = "0px none", u.style.verticalAlign = "top", u.style.height = r.cellHeight + "px", u.style.overflow = "hidden", u.unselectable = "on";
|
|
1572
1572
|
var h = document.createElement("div");
|
|
1573
1573
|
h.unselectable = "on", h.style.height = r.cellHeight + "px", h.style.position = "relative", h.className = this.K("_cell");
|
|
1574
|
-
var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y };
|
|
1574
|
+
var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y, "x": c, "y": m };
|
|
1575
1575
|
!function () {
|
|
1576
1576
|
if ("function" == typeof r.onBeforeCellRender) {
|
|
1577
1577
|
var e = {};
|
|
@@ -1581,7 +1581,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1581
1581
|
var b = document.createElement("div");
|
|
1582
1582
|
b.setAttribute("unselectable", "on"), b.className = this.K("_cell_inner");
|
|
1583
1583
|
var D = DayPilot.Util.escapeTextHtml(y.text, y.html);
|
|
1584
|
-
D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), h.appendChild(b), function () {
|
|
1584
|
+
D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), y.fontColor && (b.style.color = y.fontColor), h.appendChild(b), function () {
|
|
1585
1585
|
if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
|
|
1586
1586
|
var e = {};
|
|
1587
1587
|
if (e.control = r, e.cell = g, e.element = null, u.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
|
|
@@ -1658,10 +1658,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1658
1658
|
var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
|
|
1659
1659
|
o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r._a;
|
|
1660
1660
|
var s, l = e ? document.createElement("div") : o.firstChild;
|
|
1661
|
-
e ? (l.unselectable = "on",
|
|
1662
|
-
l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
|
|
1661
|
+
e ? (l.unselectable = "on",
|
|
1662
|
+
l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
|
|
1663
1663
|
var d = {};
|
|
1664
|
-
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
|
|
1664
|
+
d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
|
|
1665
1665
|
var c = n.verticalAlignment;
|
|
1666
1666
|
if (c)
|
|
1667
1667
|
switch (s.style.display = "flex", c) {
|
|
@@ -1673,6 +1673,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1673
1673
|
break;
|
|
1674
1674
|
case "bottom": s.style.alignItems = "flex-end";
|
|
1675
1675
|
}
|
|
1676
|
+
var u = n.horizontalAlignment;
|
|
1677
|
+
if (u)
|
|
1678
|
+
switch (u) {
|
|
1679
|
+
case "center":
|
|
1680
|
+
s.style.justifyContent = "center";
|
|
1681
|
+
break;
|
|
1682
|
+
case "left":
|
|
1683
|
+
s.style.justifyContent = "flex-start";
|
|
1684
|
+
break;
|
|
1685
|
+
case "right": s.style.justifyContent = "flex-end";
|
|
1686
|
+
}
|
|
1676
1687
|
l.firstChild.innerHTML = r.Ra(n.name, n.html);
|
|
1677
1688
|
}
|
|
1678
1689
|
for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, n = a.length, o = 0; o < n; o++)
|
|
@@ -1688,7 +1699,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1688
1699
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1689
1700
|
this.headerCreated = !0;
|
|
1690
1701
|
this.$a(t);
|
|
1691
|
-
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.root = this, r.db(), e.onscroll || (e.onscroll = function () { r.eb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.fb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.gb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)
|
|
1702
|
+
}, this.loadingStart = function () { this.loadingLabelVisible && (this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.top = this.headerHeight + 5 + "px", this.nav.loading.style.display = ""); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.root = this, r.db(), e.onscroll || (e.onscroll = function () { r.eb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.fb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.gb = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp)); }, this.events = {}, this.events.add = function (e) {
|
|
1692
1703
|
var t = null;
|
|
1693
1704
|
if (e instanceof DayPilot.Event)
|
|
1694
1705
|
t = e.data;
|
|
@@ -1971,7 +1982,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1971
1982
|
var DayPilot = {};
|
|
1972
1983
|
if (function () {
|
|
1973
1984
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1974
|
-
this.v = "2024.4.
|
|
1985
|
+
this.v = "2024.4.631-lite";
|
|
1975
1986
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1976
1987
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1977
1988
|
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
@@ -2021,7 +2032,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2021
2032
|
var e = function () { }, t = {};
|
|
2022
2033
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
2023
2034
|
var a = this, n = null;
|
|
2024
|
-
this.v = "2024.4.
|
|
2035
|
+
this.v = "2024.4.631-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.Gb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
2025
2036
|
o = o || {};
|
|
2026
2037
|
var r = null;
|
|
2027
2038
|
if (i ? "string" == typeof i.id || "number" == typeof i.id ? r = i.id : "function" == typeof i.id ? r = i.id() : "function" == typeof i.value && (r = i.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Gb.submenu = null, null !== t.mouse) {
|
|
@@ -2151,7 +2162,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2151
2162
|
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Gb.visible = !0, a.Gb.source = i, d.style.display = "";
|
|
2152
2163
|
var M = d.offsetHeight, H = d.offsetWidth;
|
|
2153
2164
|
d.style.display = "none";
|
|
2154
|
-
var
|
|
2165
|
+
var A = document.documentElement.clientHeight, T = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
2155
2166
|
if (function () {
|
|
2156
2167
|
var e = o.initiator;
|
|
2157
2168
|
if (e) {
|
|
@@ -2163,23 +2174,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2163
2174
|
}
|
|
2164
2175
|
}(), function () {
|
|
2165
2176
|
var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft;
|
|
2166
|
-
if (i - a >
|
|
2167
|
-
var r = i - a - (
|
|
2177
|
+
if (i - a > A - M && 0 !== A) {
|
|
2178
|
+
var r = i - a - (A - M) + E;
|
|
2168
2179
|
d.style.top = i - r + "px";
|
|
2169
2180
|
}
|
|
2170
2181
|
else
|
|
2171
2182
|
d.style.top = i + "px";
|
|
2172
|
-
if ("right" === o.align && (e -= H), e - n >
|
|
2173
|
-
var s = e - n - (
|
|
2183
|
+
if ("right" === o.align && (e -= H), e - n > T - H && 0 !== T) {
|
|
2184
|
+
var s = e - n - (T - H) + E;
|
|
2174
2185
|
d.style.left = e - s + "px";
|
|
2175
2186
|
}
|
|
2176
2187
|
else
|
|
2177
2188
|
d.style.left = e + "px";
|
|
2178
2189
|
}(), o.parentLink) {
|
|
2179
2190
|
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), B = R.x + N.offsetWidth, z = R.y - I;
|
|
2180
|
-
B + H >
|
|
2191
|
+
B + H > T && (B = Math.max(0, R.x - H));
|
|
2181
2192
|
var O = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2182
|
-
z + M - O >
|
|
2193
|
+
z + M - O > A && (z = Math.max(0, A - M + O)), d.style.left = B + "px", d.style.top = z + "px";
|
|
2183
2194
|
}
|
|
2184
2195
|
d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
2185
2196
|
}
|
|
@@ -2604,11 +2615,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2604
2615
|
var o = new s;
|
|
2605
2616
|
o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
|
|
2606
2617
|
}
|
|
2607
|
-
e.options.forEach(function (o) {
|
|
2608
|
-
var r = new s;
|
|
2609
|
-
r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r),
|
|
2610
|
-
n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); });
|
|
2611
|
-
});
|
|
2618
|
+
e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
|
|
2612
2619
|
}
|
|
2613
2620
|
else if ("title" === a) {
|
|
2614
2621
|
var o = new s;
|
|
@@ -2976,7 +2983,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2976
2983
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2977
2984
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
2978
2985
|
e.Month = function (i, a) {
|
|
2979
|
-
this.v = "2024.4.
|
|
2986
|
+
this.v = "2024.4.631-lite", this.nav = {};
|
|
2980
2987
|
var n = this;
|
|
2981
2988
|
this.id = i, 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.O = !1, this.U = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void n.fireAfterRenderDetached(e.CallBackData, !0) : (n.events.list = e.Events, "Full" === e.UpdateType && (n.startDate = e.StartDate, n.timeFormat = e.TimeFormat ? e.TimeFormat : n.timeFormat, "undefined" != typeof e.WeekStarts && (n.weekStarts = e.WeekStarts), n.hashes = e.Hashes), n.W(), n.Tc(), n.ea(), "Full" === e.UpdateType && (n.Uc(), n.Vc()), n.ja(), n.show(), n.ka(), void n.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var i = function (e, t) { return function () { n.afterRender && n.afterRender(e, t); }; }; window.setTimeout(i(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
2982
2989
|
var t = null;
|
|
@@ -3184,14 +3191,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3184
3191
|
var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
|
|
3185
3192
|
"number" == typeof o && (o += "px");
|
|
3186
3193
|
var r = i.part.row, s = i.part.line, l = i.part.colStart, d = i.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div");
|
|
3187
|
-
f.setAttribute("unselectable", "on"),
|
|
3194
|
+
f.setAttribute("unselectable", "on"),
|
|
3195
|
+
f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.ra, f.oncontextmenu = n.Xc, f.onmousedown = function (t) {
|
|
3188
3196
|
t = t || window.event;
|
|
3189
3197
|
var a = t.which || t.button;
|
|
3190
3198
|
if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
|
|
3191
3199
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
3192
3200
|
var o = {};
|
|
3193
|
-
o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
|
|
3194
|
-
o.direction = this.style.cursor, e.resizingEvent = o;
|
|
3201
|
+
o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1, o.direction = this.style.cursor, e.resizingEvent = o;
|
|
3195
3202
|
}
|
|
3196
3203
|
else if ("move" === this.style.cursor || i.client.moveEnabled()) {
|
|
3197
3204
|
n.clearShadow();
|
|
@@ -3679,7 +3686,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3679
3686
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3680
3687
|
var e = DayPilot.Util.isVueVNode;
|
|
3681
3688
|
DayPilot.Navigator = function (t, i) {
|
|
3682
|
-
this.v = "2024.4.
|
|
3689
|
+
this.v = "2024.4.631-lite";
|
|
3683
3690
|
var a = this;
|
|
3684
3691
|
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.showWeekNumbers = !1, 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.nav = {}, this.ob = {}, this._c = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.ad() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.bd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ad() || (this.root.style.width = 7 * r.cellWidth() + this.bd() + "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 = a.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.qa = function () { return 2 === a.api; }, this.Uc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.cd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.ed = function () {
|
|
3685
3692
|
if (!r.ad())
|
|
@@ -3734,29 +3741,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3734
3741
|
var S = document.createElement("div");
|
|
3735
3742
|
S.style.position = "absolute", S.style.left = a.hd(M + C), S.style.right = a.hd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.hd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_dayheader"), S.innerHTML = "<span>" + this.ld(M) + "</span>", y.appendChild(S), n.days.push(S);
|
|
3736
3743
|
for (var P = 0; P < f; P++) {
|
|
3737
|
-
var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(),
|
|
3744
|
+
var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(), A = k.firstDayOfMonth() === o, T = k < o, E = k >= o.addMonths(1);
|
|
3738
3745
|
if ("month" === this.nd())
|
|
3739
|
-
H = H &&
|
|
3746
|
+
H = H && A;
|
|
3740
3747
|
else if ("day" === this.nd())
|
|
3741
|
-
H = H && (
|
|
3748
|
+
H = H && (A || s && T || l && E);
|
|
3742
3749
|
else if ("week" === this.nd()) {
|
|
3743
3750
|
var N = k.firstDayOfMonth() === o;
|
|
3744
|
-
H = H && (N || s &&
|
|
3751
|
+
H = H && (N || s && T || l && E);
|
|
3745
3752
|
}
|
|
3746
3753
|
var I = document.createElement("div");
|
|
3747
3754
|
n.cells[M][P] = I;
|
|
3748
3755
|
var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
|
|
3749
|
-
I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth =
|
|
3756
|
+
I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = T, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.cd(I, "cell"), k.getTime() === m.getTime() && A && this.cd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.cd(I, "weekend"), I.style.position = "absolute", I.style.left = B + O, I.style.right = B + O, I.style.top = z + "px", I.style.width = a.hd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
3750
3757
|
var U = document.createElement("div");
|
|
3751
|
-
U.style.position = "absolute", U.className = k.getTime() === m.getTime() &&
|
|
3758
|
+
U.style.position = "absolute", U.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.cd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
|
|
3752
3759
|
var L = null;
|
|
3753
3760
|
this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
|
|
3754
3761
|
var j = L || {};
|
|
3755
|
-
if (j.day = k, j.isCurrentMonth =
|
|
3762
|
+
if (j.day = k, j.isCurrentMonth = A, j.isToday = k.getTime() === m.getTime() && A, j.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), L ? (j.html = L.html || k.getDay(), j.cssClass = L.css) : (j.html = k.getDay(), j.cssClass = null), "function" == typeof a.onBeforeCellRender) {
|
|
3756
3763
|
var W = {};
|
|
3757
3764
|
W.cell = j, a.onBeforeCellRender(W), L = W.cell;
|
|
3758
3765
|
}
|
|
3759
|
-
if (L && DayPilot.Util.addClass(I, L.cssClass || L.css),
|
|
3766
|
+
if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), A || s && T || l && E) {
|
|
3760
3767
|
var F = document.createElement("div");
|
|
3761
3768
|
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.cd(F, "cell_text"), I.isClickable = !0, L && L.html && (F.innerHTML = L.html), I.appendChild(F);
|
|
3762
3769
|
}
|
|
@@ -3782,10 +3789,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3782
3789
|
}
|
|
3783
3790
|
var J = document.createElement("div");
|
|
3784
3791
|
J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.hd(7 + C), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.K("_line"), y.appendChild(J), this.months.push(n);
|
|
3785
|
-
}, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) {
|
|
3786
|
-
var n = e.month.cells[t][i];
|
|
3787
|
-
a.cd(n, "select");
|
|
3788
|
-
}, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.bd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.sd = function () {
|
|
3792
|
+
}, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) { var n = e.month.cells[t][i]; a.cd(n, "select"); }, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.bd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.sd = function () {
|
|
3789
3793
|
if (this.items)
|
|
3790
3794
|
for (var e = 0; e < this.showMonths; e++)
|
|
3791
3795
|
for (var t = 0; t < 7; t++)
|