@daypilot/daypilot-lite-angular 3.11.0 → 3.12.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/esm2020/lib/core/daypilot-core.mjs +34 -31
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +34 -31
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +33 -30
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +42 -0
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { EventEmitter, Component, Output, Input, NgModule } from '@angular/core'
|
|
|
3
3
|
|
|
4
4
|
//@ts-nocheck
|
|
5
5
|
/*
|
|
6
|
-
Copyright ©
|
|
6
|
+
Copyright © 2023 Annpoint, s.r.o.
|
|
7
7
|
|
|
8
8
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
9
|
you may not use this file except in compliance with the License.
|
|
@@ -118,10 +118,10 @@ var DayPilot;
|
|
|
118
118
|
})(DayPilot || (DayPilot = {}));
|
|
119
119
|
/*
|
|
120
120
|
DayPilot Lite
|
|
121
|
-
Copyright (c) 2005 -
|
|
121
|
+
Copyright (c) 2005 - 2023 Annpoint s.r.o.
|
|
122
122
|
https://www.daypilot.org/
|
|
123
123
|
Licensed under Apache Software License 2.0
|
|
124
|
-
Version:
|
|
124
|
+
Version: 2023.1.447-lite
|
|
125
125
|
*/
|
|
126
126
|
if ("undefined" == typeof DayPilot)
|
|
127
127
|
var DayPilot = {};
|
|
@@ -243,20 +243,22 @@ if ("undefined" == typeof DayPilot)
|
|
|
243
243
|
e.active.children = DayPilot.ac(e);
|
|
244
244
|
}
|
|
245
245
|
} }, DayPilot.Areas.createArea = function (e, t, a, r) {
|
|
246
|
-
function o(e
|
|
247
|
-
function n(e, t, a) {
|
|
248
|
-
function i(e, t, a,
|
|
246
|
+
function o(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
|
|
247
|
+
function n(e, t, a) { var r = {}; return r.area = e, r.source = t, r.originalEvent = a, r.preventDefault = function () { r.preventDefault.value = !0; }, "function" == typeof e.onClick && e.onClick(r), r; }
|
|
248
|
+
function i(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
|
|
249
|
+
function l(e, t, a, r) {
|
|
249
250
|
DayPilot.Menu && DayPilot.Menu.touchPosition(r);
|
|
250
251
|
var o = a.contextMenu || a.menu;
|
|
251
|
-
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
|
|
252
|
+
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
|
|
253
|
+
o && o.show) {
|
|
252
254
|
var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
|
|
253
255
|
o.show(t, { "initiator": n });
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
|
-
var r = r || {},
|
|
258
|
+
var r = r || {}, d = (r.offsetX || 0, r.eventDiv || e), s = document.createElement("div");
|
|
257
259
|
s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
|
|
258
260
|
var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
|
|
259
|
-
if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute",
|
|
261
|
+
if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute", s.style.width = o(u), s.style.height = o(c), s.style.right = o(a.right), s.style.top = o(a.top), s.style.left = o(a.left), s.style.bottom = o(a.bottom), "undefined" != typeof a.html || "undefined" != typeof a.text)
|
|
260
262
|
s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
|
|
261
263
|
else if (a.icon) {
|
|
262
264
|
var y = document.createElement("i");
|
|
@@ -320,12 +322,12 @@ if ("undefined" == typeof DayPilot)
|
|
|
320
322
|
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
321
323
|
}
|
|
322
324
|
if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
323
|
-
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(),
|
|
325
|
+
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(), l(e, t, a, r), t.calendar.internal.touch.preventEventTap = !0; }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
|
|
324
326
|
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
325
327
|
}
|
|
326
328
|
if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
327
|
-
var b = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); var r =
|
|
328
|
-
|
|
329
|
+
var b = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); var r = n(a, t, e); if (!r.preventDefault.value) {
|
|
330
|
+
i(t, a, e);
|
|
329
331
|
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
|
|
330
332
|
} }; }(d, t, a), D = function (e, t, a) { return function (e) { e.cancelBubble = !0, e.preventDefault(); }; }(d, t, a);
|
|
331
333
|
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
@@ -335,7 +337,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
335
337
|
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
336
338
|
}
|
|
337
339
|
if ("Bubble" === a.action && t.isEvent ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showEvent(t, !0) : t.calendar.bubble && t.calendar.bubble.showEvent(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.bubble && t.calendar.bubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && t.isRow ? (s.onmousemove = function (e, t, a) { return function (e) { a.bubble ? a.bubble.showResource(t, !0) : t.calendar.resourceBubble && t.calendar.resourceBubble.showResource(t, !0); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && (a.bubble ? a.bubble.hideOnMouseOut() : t.calendar.resourceBubble && t.calendar.resourceBubble.hideOnMouseOut()); }; }(e, t, a)) : "Bubble" === a.action && "undefined" != typeof DayPilot.Bubble && a.bubble instanceof DayPilot.Bubble && (s.onmousemove = function (e, t, a) { return function (e) { a.bubble.showHtml(null, null); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { "undefined" != typeof DayPilot.Bubble && a.bubble && a.bubble.hideOnMouseOut(); }; }(e, t, a)), "HoverMenu" === a.action && (s.onmousemove = function (e, t, a) { return function (e) { var r = a.menu; r && r.show && (r.visible ? r.source && "undefined" != typeof r.source.id && r.source.id !== t.id && r.show(t) : r.show(t), r.cancelHideTimeout()); }; }(e, t, a), s.onmouseout = function (e, t, a) { return function (e) { var t = a.menu; t && t.hideOnMouseOver && t.delayedHide(); }; }(e, t, a)), "None" === a.action) {
|
|
338
|
-
var b = function (e, t, a) { return function (e) { var r =
|
|
340
|
+
var b = function (e, t, a) { return function (e) { var r = n(a, t, e); "function" == typeof a.onClicked && a.onClicked(r), e.preventDefault(), e.stopPropagation(); }; }(d, t, a);
|
|
339
341
|
DayPilot.reNonPassive(s, DayPilot.touch.start, b);
|
|
340
342
|
}
|
|
341
343
|
return s.onmousedown = function (e, t, a) { return function (r) { if ("function" == typeof a.onmousedown && a.onmousedown(r), "function" == typeof a.mousedown) {
|
|
@@ -344,14 +346,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
344
346
|
} if ("Move" === a.action && t.isRow) {
|
|
345
347
|
var n = t.$.row;
|
|
346
348
|
(0, t.calendar.internal.rowStartMoving)(n);
|
|
347
|
-
} "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), "Move" === a.action && (DayPilot.Global.movingAreaData = a.data), "Move" === a.action && t.isEvent && t.calendar.internal && t.calendar.internal.startMoving && t.calendar.internal.startMoving(e, r); "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0); }; }(e, t, a), s.onclick = function (e, t, a) { return function (r) { var
|
|
349
|
+
} "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), "Move" === a.action && (DayPilot.Global.movingAreaData = a.data), "Move" === a.action && t.isEvent && t.calendar.internal && t.calendar.internal.startMoving && t.calendar.internal.startMoving(e, r); "Move" !== a.action && "ResizeEnd" !== a.action && "ResizeStart" !== a.action && a.action && "Default" !== a.action && (r.preventDefault(), r.cancelBubble = !0); }; }(e, t, a), s.onclick = function (e, t, a) { return function (r) { var o = n(a, t, r); if (!o.preventDefault.value) {
|
|
348
350
|
switch (a.action) {
|
|
349
351
|
case "ContextMenu":
|
|
350
|
-
|
|
352
|
+
l(e, t, a, r), r.cancelBubble = !0;
|
|
351
353
|
break;
|
|
352
354
|
case "None": r.cancelBubble = !0;
|
|
353
355
|
}
|
|
354
|
-
"function" == typeof a.onClicked && a.onClicked(
|
|
356
|
+
"function" == typeof a.onClicked && a.onClicked(o);
|
|
355
357
|
} }; }(e, t, a), "function" == typeof a.onMouseEnter && s.addEventListener("mouseenter", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseEnter(r); }; }(e, t, a)), "function" == typeof a.onMouseLeave && s.addEventListener("mouseleave", function (e, t, a) { return function (e) { var r = {}; r.area = a, r.source = t, r.originalEvent = e, a.onMouseLeave(r); }; }(e, t, a)), s;
|
|
356
358
|
}, DayPilot.Areas.all = [], DayPilot.Areas.hideAreas = function (e, t) { if (e && e && e.active) {
|
|
357
359
|
var a = e.active, r = e.areas;
|
|
@@ -394,8 +396,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
394
396
|
if (!(t instanceof Date))
|
|
395
397
|
throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";
|
|
396
398
|
r = a ? DayPilot.DateUtil.fromLocal(t).getTime() : t.getTime();
|
|
397
|
-
} var i = e(r); return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {},
|
|
398
|
-
DayPilot.Date.
|
|
399
|
+
} var i = e(r); return o[i] ? o[i] : (o[i] = this, o[r] = this, n && i !== t && DayPilot.DateUtil.hasTzSpec(t) && (o[t] = this), Object.defineProperty && !DayPilot.browser.ielt9 ? (Object.defineProperty(this, "ticks", { get: function () { return r; } }), Object.defineProperty(this, "value", { "value": i, "writable": !1, "enumerable": !0 })) : (this.ticks = r, this.value = i), DayPilot.Date.Config.legacyShowD && (this.d = new Date(r)), void (DayPilot.Stats.dateObjects += 1)); }, DayPilot.Date.Config = {}, DayPilot.Date.Config.legacyShowD = !1, DayPilot.Date.Cache = {}, DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {},
|
|
400
|
+
DayPilot.Date.Cache.clear = function () { DayPilot.Date.Cache.Parsing = {}, DayPilot.Date.Cache.Ctor = {}, DayPilot.Date.Cache.Ticks = {}, DayPilot.Date.Cache.DurationCtor = {}; }, DayPilot.Date.prototype.addDays = function (e) { return e ? new DayPilot.Date(this.ticks + 24 * e * 60 * 60 * 1e3) : this; }, DayPilot.Date.prototype.addHours = function (e) { return e ? this.addTime(60 * e * 60 * 1e3) : this; }, DayPilot.Date.prototype.addMilliseconds = function (e) { return e ? this.addTime(e) : this; }, DayPilot.Date.prototype.addMinutes = function (e) { return e ? this.addTime(60 * e * 1e3) : this; }, DayPilot.Date.prototype.addMonths = function (e) { if (!e)
|
|
399
401
|
return this; var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1; if (e > 0) {
|
|
400
402
|
for (; e >= 12;)
|
|
401
403
|
e -= 12, a++;
|
|
@@ -571,7 +573,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
571
573
|
if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
|
|
572
574
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
573
575
|
var s = this;
|
|
574
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "
|
|
576
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2023.1.447-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.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", 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.onBeforeEventRender = 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.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.g(); }, this.g = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.cleanSelection = this.clearSelection, this.i = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); __doPostBack(s.uniqueID, a); }, this.k = function (e, t, i) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { s.loadingStart(); }, 100); var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.j(); var a = "JSON" + DayPilot.JSON.stringify(n); this.backendUrl ? DayPilot.request(this.backendUrl, this.l, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.m, this.clientName, this.onCallbackError, !0); }, this.onCallbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.dispose = function () { var e = s; e.n(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.o(), e.p(), 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.q = function () { this.nav.top.dispose = this.dispose; }, this.l = function (e) { s.m(e.responseText); }, this.j = function () { var e = {}; return e.control = "dpc", e.id = this.id, e.v = this.v, e.days = s.days, e.startDate = s.startDate, e.heightSpec = s.heightSpec, e.businessBeginsHour = s.businessBeginsHour, e.businessEndsHour = s.businessEndsHour, e.hashes = s.hashes, e.timeFormat = s.timeFormat, e.viewType = s.viewType, e.locale = s.locale, e; }, this.r = function (e, t) { for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
575
577
|
i = i.parentNode; var n = document.createElement("div"); n.setAttribute("unselectable", "on"), n.style.position = "absolute", n.style.width = e.offsetWidth + "px", n.style.height = e.offsetHeight + "px", n.style.left = e.offsetLeft + "px", n.style.top = e.offsetTop + "px", n.style.boxSizing = "border-box", n.style.zIndex = 101, n.className = s.b("_shadow"); var a = document.createElement("div"); return a.className = s.b("_shadow_inner"), n.appendChild(a), i.firstChild.appendChild(n), n; }, this.s = {}, this.s.locale = function () { var e = DayPilot.Locale.find(s.locale); return e ? e : DayPilot.Locale.US; }, this.s.timeFormat = function () { return "Auto" !== s.timeFormat ? s.timeFormat : this.locale().timeFormat; }, this.s.t = function () { return "Disabled" !== s.xssProtection; };
|
|
576
578
|
var a = this.s;
|
|
577
579
|
this.m = function (e, t) { if (e && 0 === e.indexOf("$$$")) {
|
|
@@ -829,7 +831,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
829
831
|
d.setAttribute("unselectable", "on"), d.className = this.b("_event_bar_inner"), d.style.top = r + "%", 0 < h && h <= 1 ? d.style.height = "1px" : d.style.height = h + "%", i.barColor && (d.style.backgroundColor = i.barColor), c.appendChild(d), a.appendChild(c);
|
|
830
832
|
} if (e.client.deleteEnabled()) {
|
|
831
833
|
var u = document.createElement("div");
|
|
832
|
-
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.b("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
834
|
+
u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.b("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && s.P(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
|
|
833
835
|
} var v = i.areas ? DayPilot.Areas.copy(i.areas) : []; if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
|
|
834
836
|
n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.$(a);
|
|
835
837
|
} s.elements.events.push(a); }, this.$ = function (e) { for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
|
|
@@ -881,7 +883,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
881
883
|
for (var t = 0; t < e.rows.length; t++)
|
|
882
884
|
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
883
885
|
var s = i.cells[n];
|
|
884
|
-
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
886
|
+
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
887
|
+
s.onmouseup = null;
|
|
885
888
|
}
|
|
886
889
|
this.fasterDispose || DayPilot.pu(e);
|
|
887
890
|
}, this.C = function () { var e = this.nav.main, i = 18e5, n = this.J(), a = s.Q; for (e && this.o(); e && e.rows && e.rows.length > 0;)
|
|
@@ -1011,7 +1014,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1011
1014
|
s.wa(), s.n(), s.nav.top.style.cursor = "auto";
|
|
1012
1015
|
s.w(), s.B(), s.C(), s.D(), s.E(), s.ha(), s.ua(), s.xa(), s.z(), s.A(), s.u(), s.F(), s.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1013
1016
|
} }, this.ya = null, this.va = function (e) { if (e) {
|
|
1014
|
-
var t = { "events": { "preInit": function () { var e = this.data
|
|
1017
|
+
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e; } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
|
|
1015
1018
|
this.ya = t;
|
|
1016
1019
|
for (var i in e)
|
|
1017
1020
|
if (t[i]) {
|
|
@@ -1127,7 +1130,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1127
1130
|
}();
|
|
1128
1131
|
if ("undefined" == typeof DayPilot)
|
|
1129
1132
|
var DayPilot = {};
|
|
1130
|
-
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "
|
|
1133
|
+
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2023.1.447-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
|
|
1131
1134
|
for (var e in t)
|
|
1132
1135
|
this[e] = t[e]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () { var t = this.d(); if (!t)
|
|
1133
1136
|
return this.date; var e = null; if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
|
|
@@ -1158,7 +1161,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1158
1161
|
"use strict";
|
|
1159
1162
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1160
1163
|
var e = function () { }, t = {};
|
|
1161
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; this.v = "
|
|
1164
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) { var i = this, o = null; this.v = "2023.1.447-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.b = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, u) { u = u || {}; var a = null; if (n ? "string" == typeof n.id || "number" == typeof n.id ? a = n.id : "function" == typeof n.id ? a = n.id() : "function" == typeof n.value && (a = n.value()) : a = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), u.submenu || t.menuClean(), this.b.submenu = null, null !== t.mouse) {
|
|
1162
1165
|
i.cssOnly || (i.cssOnly = !0);
|
|
1163
1166
|
var s = null;
|
|
1164
1167
|
if (n && n.isRow && n.$.row.task ? (s = new DayPilot.Task(n.$.row.task, n.calendar), s.menuType = "resource") : s = n && n.isEvent && n.data.task ? new DayPilot.Task(n, n.calendar) : n, "function" == typeof i.onShow) {
|
|
@@ -1667,7 +1670,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1667
1670
|
var DayPilot = {};
|
|
1668
1671
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1669
1672
|
var t = {};
|
|
1670
|
-
t.Month = function (e, i) { this.v = "
|
|
1673
|
+
t.Month = function (e, i) { this.v = "2023.1.447-lite", this.nav = {}; var n = this; this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.contextMenu = null, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, 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 = 1, 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.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) { var e = null; if (t instanceof DayPilot.Event)
|
|
1671
1674
|
e = t.data;
|
|
1672
1675
|
else {
|
|
1673
1676
|
if ("object" != typeof t)
|
|
@@ -1705,7 +1708,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1705
1708
|
} }, this.update = function (t) { if (n.l(t), this.k && this.cells) {
|
|
1706
1709
|
n.b(), n.c(), n.d(), n.f(), n.g(), n.h(), n.m(), n.i(), this.visible ? this.show() : this.hide();
|
|
1707
1710
|
} }, this.n = null, this.l = function (t) { if (t) {
|
|
1708
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
1711
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t; } } };
|
|
1709
1712
|
this.n = e;
|
|
1710
1713
|
for (var i in t)
|
|
1711
1714
|
if (e[i]) {
|
|
@@ -2043,7 +2046,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2043
2046
|
if ("undefined" == typeof DayPilot)
|
|
2044
2047
|
var DayPilot = {};
|
|
2045
2048
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2046
|
-
DayPilot.Navigator = function (t, e) { this.v = "
|
|
2049
|
+
DayPilot.Navigator = function (t, e) { this.v = "2023.1.447-lite"; var i = this; 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.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) { var s = {}; s.cells = [], s.days = [], s.weeks = []; var n = this.startDate.addMonths(t), l = e.before, o = e.after, h = n.firstDayOfMonth(), r = h.firstDayOfWeek(a.weekStarts()), c = h.addMonths(1), d = DayPilot.DateUtil.daysDiff(r, c), u = "Auto" === this.rowsPerMonth ? Math.ceil(d / 7) : 6; s.rowCount = u; var f = (new DayPilot.Date).getDatePart(), y = 7 * a.cellWidth() + this.d(); s.width = y; var p = this.cellHeight * u + this.titleHeight + this.dayHeaderHeight; s.height = p; var v = document.createElement("div"); if (v.style.width = y + "px", v.style.height = p + "px", "Horizontal" === this.orientation)
|
|
2047
2050
|
v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
|
|
2048
2051
|
else {
|
|
2049
2052
|
v.style.position = "relative";
|
|
@@ -2117,8 +2120,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2117
2120
|
this.selectionEnd = t;
|
|
2118
2121
|
break;
|
|
2119
2122
|
default: throw "Unknown selectMode value.";
|
|
2120
|
-
} }, this.w = null, this.select = function (t, e, s) { var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s; if (!this.z)
|
|
2121
|
-
return void (this.w = { "date1": l, "date2": o, "options": h }); var r = !0, c = !0; "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h); var d = this.selectionStart, u = this.selectionEnd; this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (r) {
|
|
2123
|
+
} }, this.w = null, this.select = function (t, e, s) { var n = e && (e instanceof DayPilot.Date || "string" == typeof e), a = e && "object" == typeof e || "boolean" == typeof e, l = t, o = n ? e : null, h = a ? e : s; if (!this.z)
|
|
2124
|
+
return void (this.w = { "date1": l, "date2": o, "options": h }); var r = !0, c = !0; h && "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h); var d = this.selectionStart, u = this.selectionEnd; this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (r) {
|
|
2122
2125
|
var y = this.startDate;
|
|
2123
2126
|
(this.selectionStart < this.A() || this.selectionStart >= this.B()) && (y = this.selectionStart.firstDayOfMonth()), y.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = y;
|
|
2124
2127
|
} o && i.freeHandSelectionEnabled ? i.selectionEnd = new DayPilot.Date(o) : this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !c || d.equals(this.selectionStart) && u.equals(this.selectionEnd) || this.D(), f && this.E(); }, this.update = function (t) { if (i.F(t), this.z) {
|
|
@@ -2128,7 +2131,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2128
2131
|
var e = { "day": i.selectionDay, "start": i.selectionStart, "end": i.selectionEnd };
|
|
2129
2132
|
i.I(), e.start === i.selectionStart && e.end == i.selectionEnd && e.day === i.selectionDay || i.D();
|
|
2130
2133
|
} }, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.H = function () { i.a = {}; }, this.K = null, this.F = function (t) { if (t) {
|
|
2131
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
2134
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t; } } };
|
|
2132
2135
|
this.K = e;
|
|
2133
2136
|
for (var s in t)
|
|
2134
2137
|
if (e[s]) {
|