@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 = {};
|
|
@@ -333,20 +333,22 @@ if ("undefined" == typeof DayPilot)
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
}, DayPilot.Areas.createArea = function (e, t, a, r) {
|
|
336
|
-
function o(e
|
|
337
|
-
function n(e, t, a) {
|
|
338
|
-
function i(e, t, a,
|
|
336
|
+
function o(e) { return "string" == typeof e && isNaN(e) ? e : "undefined" != typeof e ? e + "px" : void 0; }
|
|
337
|
+
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; }
|
|
338
|
+
function i(e, t, a) { DayPilot.Bubble && DayPilot.Bubble.touchPosition(a), e.calendar.bubble && e.calendar.bubble.showEvent(e, !0); }
|
|
339
|
+
function l(e, t, a, r) {
|
|
339
340
|
DayPilot.Menu && DayPilot.Menu.touchPosition(r);
|
|
340
341
|
var o = a.contextMenu || a.menu;
|
|
341
|
-
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
|
|
342
|
+
if (o instanceof DayPilot.Menu || (t.isEvent && t.client.contextMenu() ? o = t.client.contextMenu() : t.isEvent && t.calendar.contextMenu && (o = t.calendar.contextMenu)),
|
|
343
|
+
o && o.show) {
|
|
342
344
|
var n = { "type": "area", "div": e, "e": t, "area": a, "a": s };
|
|
343
345
|
o.show(t, { "initiator": n });
|
|
344
346
|
}
|
|
345
347
|
}
|
|
346
|
-
var r = r || {},
|
|
348
|
+
var r = r || {}, d = (r.offsetX || 0, r.eventDiv || e), s = document.createElement("div");
|
|
347
349
|
s.isActiveArea = !0, s.area = a, s.setAttribute("unselectable", "on");
|
|
348
350
|
var u = a.w || a.width, c = a.h || a.height, f = a.cssClass || a.css || a.className;
|
|
349
|
-
if ("undefined" != typeof a.style && s.setAttribute("style", a.style), s.style.position = "absolute",
|
|
351
|
+
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)
|
|
350
352
|
s.innerHTML = DayPilot.Util.escapeTextHtml(a.text, a.html);
|
|
351
353
|
else if (a.icon) {
|
|
352
354
|
var y = document.createElement("i");
|
|
@@ -410,16 +412,16 @@ if ("undefined" == typeof DayPilot)
|
|
|
410
412
|
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
411
413
|
}
|
|
412
414
|
if ("ContextMenu" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
413
|
-
var b = function (e, t, a) { return function (r) { r.cancelBubble = !0, r.preventDefault(),
|
|
415
|
+
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);
|
|
414
416
|
DayPilot.reNonPassive(s, DayPilot.touch.start, b), DayPilot.reNonPassive(s, DayPilot.touch.end, D);
|
|
415
417
|
}
|
|
416
418
|
if ("Bubble" === a.action && t.isEvent && t.calendar.internal.touch) {
|
|
417
419
|
var b = function (e, t, a) {
|
|
418
420
|
return function (e) {
|
|
419
421
|
e.cancelBubble = !0, e.preventDefault();
|
|
420
|
-
var r =
|
|
422
|
+
var r = n(a, t, e);
|
|
421
423
|
if (!r.preventDefault.value) {
|
|
422
|
-
|
|
424
|
+
i(t, a, e);
|
|
423
425
|
t.calendar.internal.touch.preventEventTap = !0, "function" == typeof a.onClicked && a.onClicked(r);
|
|
424
426
|
}
|
|
425
427
|
};
|
|
@@ -431,7 +433,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
431
433
|
DayPilot.rePassive(s, DayPilot.touch.start, b);
|
|
432
434
|
}
|
|
433
435
|
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) {
|
|
434
|
-
var b = function (e, t, a) { return function (e) { var r =
|
|
436
|
+
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);
|
|
435
437
|
DayPilot.reNonPassive(s, DayPilot.touch.start, b);
|
|
436
438
|
}
|
|
437
439
|
return s.onmousedown = function (e, t, a) {
|
|
@@ -449,15 +451,15 @@ if ("undefined" == typeof DayPilot)
|
|
|
449
451
|
};
|
|
450
452
|
}(e, t, a), s.onclick = function (e, t, a) {
|
|
451
453
|
return function (r) {
|
|
452
|
-
var
|
|
453
|
-
if (!
|
|
454
|
+
var o = n(a, t, r);
|
|
455
|
+
if (!o.preventDefault.value) {
|
|
454
456
|
switch (a.action) {
|
|
455
457
|
case "ContextMenu":
|
|
456
|
-
|
|
458
|
+
l(e, t, a, r), r.cancelBubble = !0;
|
|
457
459
|
break;
|
|
458
460
|
case "None": r.cancelBubble = !0;
|
|
459
461
|
}
|
|
460
|
-
"function" == typeof a.onClicked && a.onClicked(
|
|
462
|
+
"function" == typeof a.onClicked && a.onClicked(o);
|
|
461
463
|
}
|
|
462
464
|
};
|
|
463
465
|
}(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;
|
|
@@ -532,8 +534,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
532
534
|
}
|
|
533
535
|
var i = e(r);
|
|
534
536
|
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));
|
|
535
|
-
}, DayPilot.Date.Config = {},
|
|
536
|
-
DayPilot.Date.
|
|
537
|
+
}, 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 = {},
|
|
538
|
+
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) {
|
|
537
539
|
if (!e)
|
|
538
540
|
return this;
|
|
539
541
|
var t = new Date(this.ticks), a = t.getUTCFullYear(), r = t.getUTCMonth() + 1;
|
|
@@ -864,7 +866,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
864
866
|
if (this instanceof t.Calendar && !this.f && (n = !0, this.f = !0), !n)
|
|
865
867
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
866
868
|
var s = this;
|
|
867
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "
|
|
869
|
+
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) {
|
|
868
870
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
869
871
|
i = i.parentNode;
|
|
870
872
|
var n = document.createElement("div");
|
|
@@ -1271,7 +1273,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1271
1273
|
}
|
|
1272
1274
|
if (e.client.deleteEnabled()) {
|
|
1273
1275
|
var u = document.createElement("div");
|
|
1274
|
-
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);
|
|
1276
|
+
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);
|
|
1275
1277
|
}
|
|
1276
1278
|
var v = i.areas ? DayPilot.Areas.copy(i.areas) : [];
|
|
1277
1279
|
if (DayPilot.Areas.attach(a, e, { "areas": v }), n.rows[0].cells[e.part.dayIndex]) {
|
|
@@ -1358,7 +1360,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
1358
1360
|
for (var t = 0; t < e.rows.length; t++)
|
|
1359
1361
|
for (var i = e.rows[t], n = 0; n < i.cells.length; n++) {
|
|
1360
1362
|
var s = i.cells[n];
|
|
1361
|
-
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
1363
|
+
s.root = null, s.onmousedown = null, s.onmousemove = null, s.onmouseout = null,
|
|
1364
|
+
s.onmouseup = null;
|
|
1362
1365
|
}
|
|
1363
1366
|
this.fasterDispose || DayPilot.pu(e);
|
|
1364
1367
|
}, this.C = function () {
|
|
@@ -1542,7 +1545,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1542
1545
|
}
|
|
1543
1546
|
}, this.ya = null, this.va = function (e) {
|
|
1544
1547
|
if (e) {
|
|
1545
|
-
var t = { "events": { "preInit": function () { var e = this.data
|
|
1548
|
+
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; } } };
|
|
1546
1549
|
this.ya = t;
|
|
1547
1550
|
for (var i in e)
|
|
1548
1551
|
if (t[i]) {
|
|
@@ -1721,7 +1724,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1721
1724
|
var DayPilot = {};
|
|
1722
1725
|
!function () {
|
|
1723
1726
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1724
|
-
this.v = "
|
|
1727
|
+
this.v = "2023.1.447-lite";
|
|
1725
1728
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1726
1729
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1727
1730
|
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)
|
|
@@ -1772,7 +1775,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1772
1775
|
var e = function () { }, t = {};
|
|
1773
1776
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
|
|
1774
1777
|
var i = this, o = null;
|
|
1775
|
-
this.v = "
|
|
1778
|
+
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) {
|
|
1776
1779
|
u = u || {};
|
|
1777
1780
|
var a = null;
|
|
1778
1781
|
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) {
|
|
@@ -2722,7 +2725,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2722
2725
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2723
2726
|
var t = {};
|
|
2724
2727
|
t.Month = function (e, i) {
|
|
2725
|
-
this.v = "
|
|
2728
|
+
this.v = "2023.1.447-lite", this.nav = {};
|
|
2726
2729
|
var n = this;
|
|
2727
2730
|
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) {
|
|
2728
2731
|
var e = null;
|
|
@@ -2783,7 +2786,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2783
2786
|
}
|
|
2784
2787
|
}, this.n = null, this.l = function (t) {
|
|
2785
2788
|
if (t) {
|
|
2786
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
2789
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? n.events.list = t.list : n.events.list = t; } } };
|
|
2787
2790
|
this.n = e;
|
|
2788
2791
|
for (var i in t)
|
|
2789
2792
|
if (e[i]) {
|
|
@@ -3305,7 +3308,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3305
3308
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
3306
3309
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
3307
3310
|
DayPilot.Navigator = function (t, e) {
|
|
3308
|
-
this.v = "
|
|
3311
|
+
this.v = "2023.1.447-lite";
|
|
3309
3312
|
var i = this;
|
|
3310
3313
|
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) {
|
|
3311
3314
|
var s = {};
|
|
@@ -3410,11 +3413,11 @@ if ("undefined" == typeof DayPilot)
|
|
|
3410
3413
|
default: throw "Unknown selectMode value.";
|
|
3411
3414
|
}
|
|
3412
3415
|
}, this.w = null, this.select = function (t, e, s) {
|
|
3413
|
-
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;
|
|
3416
|
+
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;
|
|
3414
3417
|
if (!this.z)
|
|
3415
3418
|
return void (this.w = { "date1": l, "date2": o, "options": h });
|
|
3416
3419
|
var r = !0, c = !0;
|
|
3417
|
-
"object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h);
|
|
3420
|
+
h && "object" == typeof h ? (h.dontFocus && (r = !1), h.dontNotify && (c = !1)) : "boolean" == typeof h && (r = !h);
|
|
3418
3421
|
var d = this.selectionStart, u = this.selectionEnd;
|
|
3419
3422
|
this.selectionStart = new DayPilot.Date(l).getDatePart(), this.selectionDay = this.selectionStart;
|
|
3420
3423
|
var f = !1;
|
|
@@ -3433,7 +3436,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
3433
3436
|
}
|
|
3434
3437
|
}, 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) {
|
|
3435
3438
|
if (t) {
|
|
3436
|
-
var e = { "events": { "preInit": function () { var t = this.data
|
|
3439
|
+
var e = { "events": { "preInit": function () { var t = this.data || []; DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t; } } };
|
|
3437
3440
|
this.K = e;
|
|
3438
3441
|
for (var s in t)
|
|
3439
3442
|
if (e[s]) {
|