@daypilot/daypilot-lite-angular 3.7.1 → 3.8.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 +41 -35
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +48 -40
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +40 -34
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +25 -0
- package/package.json +1 -1
|
@@ -33,6 +33,9 @@ var DayPilot;
|
|
|
33
33
|
class Calendar extends CalendarPropsAndEvents {
|
|
34
34
|
}
|
|
35
35
|
DayPilot.Calendar = Calendar;
|
|
36
|
+
class CalendarColumn {
|
|
37
|
+
}
|
|
38
|
+
DayPilot.CalendarColumn = CalendarColumn;
|
|
36
39
|
class MonthPropsAndEvents {
|
|
37
40
|
}
|
|
38
41
|
DayPilot.MonthPropsAndEvents = MonthPropsAndEvents;
|
|
@@ -103,7 +106,7 @@ DayPilot Lite
|
|
|
103
106
|
Copyright (c) 2005 - 2022 Annpoint s.r.o.
|
|
104
107
|
http://www.daypilot.org/
|
|
105
108
|
Licensed under Apache Software License 2.0
|
|
106
|
-
Version: 2022.3.
|
|
109
|
+
Version: 2022.3.398-lite
|
|
107
110
|
*/
|
|
108
111
|
if ("undefined" == typeof DayPilot)
|
|
109
112
|
var DayPilot = {};
|
|
@@ -645,7 +648,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
645
648
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
646
649
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
647
650
|
var s = this;
|
|
648
|
-
this.uniqueID = null, this.v = "2022.3.
|
|
651
|
+
this.uniqueID = null, this.v = "2022.3.398-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.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, 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.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.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
|
|
649
652
|
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
650
653
|
return new Number(RegExp.$1) >= 10.5;
|
|
651
654
|
}
|
|
@@ -924,7 +927,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
924
927
|
}
|
|
925
928
|
}, this.$ = function (e) {
|
|
926
929
|
var t = {};
|
|
927
|
-
return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
|
|
930
|
+
return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
|
|
928
931
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
929
932
|
var i = this.blocks[t];
|
|
930
933
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
@@ -1210,24 +1213,29 @@ if ("undefined" == typeof DayPilot)
|
|
|
1210
1213
|
}, this.ma = function (e) {
|
|
1211
1214
|
for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.S, n = i.length, a = 0; a < n; a++) {
|
|
1212
1215
|
var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
|
|
1213
|
-
o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
|
|
1216
|
+
o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px", o.onclick = s.na;
|
|
1214
1217
|
var r = e ? document.createElement("div") : o.firstChild;
|
|
1215
1218
|
if (e) {
|
|
1216
|
-
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
|
|
1219
|
+
r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px", s.headerTextWrappingEnabled || (r.style.whiteSpace = "nowrap");
|
|
1217
1220
|
var h = document.createElement("div");
|
|
1218
1221
|
h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
|
|
1219
1222
|
}
|
|
1220
1223
|
l.toolTip && (h.title = l.toolTip);
|
|
1221
1224
|
var h = r.firstChild;
|
|
1222
|
-
h.innerHTML = s.
|
|
1225
|
+
h.innerHTML = s.oa(l.name, l.html);
|
|
1226
|
+
}
|
|
1227
|
+
}, this.na = function (e) {
|
|
1228
|
+
if ("Disabled" !== s.headerClickHandling) {
|
|
1229
|
+
var t = this.data, i = s.pa(t), n = {};
|
|
1230
|
+
n.header = {}, n.header.id = t.id, n.header.name = t.name, n.header.start = t.start, n.column = i, n.originalEvent = e, n.shift = e.shiftKey, n.ctrl = e.ctrlKey, n.meta = e.metaKey, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onHeaderClick && (s.onHeaderClick(n), n.preventDefault.value) || "function" == typeof s.onHeaderClicked && s.onHeaderClicked(n);
|
|
1223
1231
|
}
|
|
1224
|
-
}, this.
|
|
1232
|
+
}, this.pa = function (e) { return new DayPilot.CalendarColumn(e, s); }, this.qa = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
|
|
1225
1233
|
var e = this.nav.header, t = !0, i = this.S;
|
|
1226
1234
|
for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
|
|
1227
1235
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1228
1236
|
this.headerCreated = !0;
|
|
1229
1237
|
this.ma(t);
|
|
1230
|
-
}, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.
|
|
1238
|
+
}, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.ra = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.sa(); }); var t = "undefined" != typeof this.ta.scrollpos ? this.ta.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ua = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.va = function () { t.globalHandlers || (t.globalHandlers = !0, DayPilot.re(document, "mouseup", t.gMouseUp), DayPilot.re(window, "unload", t.gUnload)); }, this.events = {}, this.events.add = function (e) {
|
|
1231
1239
|
var t = null;
|
|
1232
1240
|
if (e instanceof DayPilot.Event)
|
|
1233
1241
|
t = e.data;
|
|
@@ -1295,14 +1303,14 @@ if ("undefined" == typeof DayPilot)
|
|
|
1295
1303
|
l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
|
|
1296
1304
|
}
|
|
1297
1305
|
}, this.update = function (e) {
|
|
1298
|
-
if (s.
|
|
1299
|
-
s.
|
|
1300
|
-
s.B(), s.E(), s.F(), s.G(), s.H(), s.ja(), s.
|
|
1306
|
+
if (s.wa(e), this.Y) {
|
|
1307
|
+
s.xa(), s.p(), s.nav.top.style.cursor = "auto";
|
|
1308
|
+
s.B(), s.E(), s.F(), s.G(), s.H(), s.ja(), s.ya(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1301
1309
|
}
|
|
1302
|
-
}, this.
|
|
1310
|
+
}, this.za = null, this.wa = function (e) {
|
|
1303
1311
|
if (e) {
|
|
1304
1312
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
|
|
1305
|
-
this.
|
|
1313
|
+
this.za = t;
|
|
1306
1314
|
for (var i in e)
|
|
1307
1315
|
if (t[i]) {
|
|
1308
1316
|
var n = t[i];
|
|
@@ -1311,13 +1319,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1311
1319
|
else
|
|
1312
1320
|
s[i] = e[i];
|
|
1313
1321
|
}
|
|
1314
|
-
}, this.
|
|
1315
|
-
var e = this.
|
|
1322
|
+
}, this.Aa = function () {
|
|
1323
|
+
var e = this.za;
|
|
1316
1324
|
for (var t in e) {
|
|
1317
1325
|
var i = e[t];
|
|
1318
1326
|
i.postInit && i.postInit();
|
|
1319
1327
|
}
|
|
1320
|
-
}, this.
|
|
1328
|
+
}, this.Ba = function () {
|
|
1321
1329
|
if (this.id && this.id.tagName)
|
|
1322
1330
|
this.nav.top = this.id;
|
|
1323
1331
|
else {
|
|
@@ -1326,8 +1334,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
1326
1334
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1327
1335
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1328
1336
|
}
|
|
1329
|
-
}, this.
|
|
1330
|
-
var t = this.
|
|
1337
|
+
}, this.Ca = {}, this.Ca.events = [], this.Da = function (e) {
|
|
1338
|
+
var t = this.Ca.events, i = this.events.list[e], n = {};
|
|
1331
1339
|
for (var s in i)
|
|
1332
1340
|
n[s] = i[s];
|
|
1333
1341
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -1337,7 +1345,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1337
1345
|
t[e] = n;
|
|
1338
1346
|
}, this.C = function () {
|
|
1339
1347
|
var e = this.events.list;
|
|
1340
|
-
if (s.
|
|
1348
|
+
if (s.Ca.events = [], e) {
|
|
1341
1349
|
var t = e.length, i = 864e5;
|
|
1342
1350
|
this.cache.pixels = {};
|
|
1343
1351
|
var n = [];
|
|
@@ -1348,7 +1356,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1348
1356
|
}
|
|
1349
1357
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1350
1358
|
for (var a = 0; a < t; a++)
|
|
1351
|
-
this.
|
|
1359
|
+
this.Da(a);
|
|
1352
1360
|
for (var a = 0; a < this.S.length; a++) {
|
|
1353
1361
|
var o = {};
|
|
1354
1362
|
o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
|
|
@@ -1368,21 +1376,21 @@ if ("undefined" == typeof DayPilot)
|
|
|
1368
1376
|
var x = w.boxBottom;
|
|
1369
1377
|
b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
|
|
1370
1378
|
var p = b.part.top, f = b.part.top + b.part.height;
|
|
1371
|
-
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.
|
|
1379
|
+
p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.Ca.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
|
|
1372
1380
|
}
|
|
1373
1381
|
}
|
|
1374
1382
|
}
|
|
1375
1383
|
}
|
|
1376
1384
|
for (var a = 0; a < this.S.length; a++) {
|
|
1377
1385
|
var r = this.S[a];
|
|
1378
|
-
r.events.sort(this.
|
|
1386
|
+
r.events.sort(this.Ea);
|
|
1379
1387
|
for (var v = 0; v < r.events.length; v++) {
|
|
1380
1388
|
var l = r.events[v];
|
|
1381
1389
|
r.putIntoBlock(l);
|
|
1382
1390
|
}
|
|
1383
1391
|
for (var v = 0; v < r.blocks.length; v++) {
|
|
1384
1392
|
var k = r.blocks[v];
|
|
1385
|
-
k.events.sort(this.
|
|
1393
|
+
k.events.sort(this.Ea);
|
|
1386
1394
|
for (var H = 0; H < k.events.length; H++) {
|
|
1387
1395
|
var l = k.events[H];
|
|
1388
1396
|
k.putIntoLine(l);
|
|
@@ -1390,7 +1398,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1390
1398
|
}
|
|
1391
1399
|
}
|
|
1392
1400
|
}
|
|
1393
|
-
}, this.
|
|
1401
|
+
}, this.Ea = function (e, t) {
|
|
1394
1402
|
if (!(e && t && e.start && t.start))
|
|
1395
1403
|
return 0;
|
|
1396
1404
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1404,31 +1412,31 @@ if ("undefined" == typeof DayPilot)
|
|
|
1404
1412
|
var a = 18e5, l = n - i, o = l % a, r = l - o, h = r + a;
|
|
1405
1413
|
0 === o && (h = r);
|
|
1406
1414
|
var c = {};
|
|
1407
|
-
return c.cut = !1, c.top = this.
|
|
1408
|
-
}, this.
|
|
1415
|
+
return c.cut = !1, c.top = this.Fa(l), c.boxTop = this.Fa(r), c.boxBottom = this.Fa(h), this.cache.pixels[n + "_" + i] = c, c;
|
|
1416
|
+
}, this.Fa = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.xa = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ca(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.sa = function () {
|
|
1409
1417
|
if (s.nav.scroll) {
|
|
1410
1418
|
var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight);
|
|
1411
|
-
s.
|
|
1419
|
+
s.ta.scrollHour = t;
|
|
1412
1420
|
}
|
|
1413
|
-
}, this.
|
|
1414
|
-
for (var e = this.
|
|
1421
|
+
}, this.ya = function () { var e = 0; s.ta.scrollHour ? e = 2 * s.cellHeight * s.ta.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ga = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Ha = function () { this.xa(), this.B(), this.ba(), this.E(), this.F(), this.ua(), this.ra(), this.va(), t.register(this), this.Ia(), this.m("Init"); }, this.ta = {}, this.Ja = function () { this.ta.themes = [], this.ta.themes.push(this.theme || this.cssClassPrefix); }, this.Ka = function () {
|
|
1422
|
+
for (var e = this.ta.themes, t = 0; t < e.length; t++) {
|
|
1415
1423
|
var i = e[t];
|
|
1416
1424
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1417
1425
|
}
|
|
1418
|
-
this.
|
|
1419
|
-
}, this.
|
|
1426
|
+
this.ta.themes = [];
|
|
1427
|
+
}, this.La = function () {
|
|
1420
1428
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1421
1429
|
var e = {};
|
|
1422
1430
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1423
1431
|
}
|
|
1424
|
-
}, this.
|
|
1425
|
-
if ("function" == typeof this.onInit && !this.
|
|
1426
|
-
this.
|
|
1432
|
+
}, this.Ma = function () {
|
|
1433
|
+
if ("function" == typeof this.onInit && !this.Na) {
|
|
1434
|
+
this.Na = !0;
|
|
1427
1435
|
var e = {};
|
|
1428
1436
|
this.onInit(e);
|
|
1429
1437
|
}
|
|
1430
|
-
}, this.
|
|
1431
|
-
},
|
|
1438
|
+
}, this.Oa = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ia = function () { var e = s.Oa; e() || (s.Pa = setInterval(function () { e() && (s.ra(), s.ua(), clearInterval(s.Pa)); }, 100)); }, this.oa = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.loadOptions = s.wa, this.internal.xssTextHtml = s.oa, this.init = function () { this.Ba(); var e = this.Ga(); return this.Ja(), e ? void this.Ha() : (this.xa(), this.B(), this.C(), this.ba(), this.E(), this.F(), this.A(), this.ua(), this.ra(), this.va(), t.register(this), this.events && (this.D(), this.I()), this.La(), this.Ma(), this.Ia(), this.Y = !0, this); }, this.Init = this.init, this.wa(i);
|
|
1439
|
+
}, DayPilot.CalendarColumn = function (e, t) { var i = this; i.id = e.id, i.name = e.name, i.data = e.data, i.start = new DayPilot.Date(e.start), i.calendar = t, i.toJSON = function () { var e = {}; return e.id = this.id, this.start && (e.start = this.start.toString()), e.name = this.name, e; }; }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
|
|
1432
1440
|
e.fn.daypilotCalendar = function (e) {
|
|
1433
1441
|
var t = null, i = this.each(function () {
|
|
1434
1442
|
if (!this.daypilot) {
|
|
@@ -1459,7 +1467,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1459
1467
|
r.call(t, h, function (e) {
|
|
1460
1468
|
for (var t in e)
|
|
1461
1469
|
s[t] = e[t];
|
|
1462
|
-
s.update(), s.
|
|
1470
|
+
s.update(), s.Ma();
|
|
1463
1471
|
}, !0), r.call(t, c, function (e) { s.events.list = e, s.update(); }, !0);
|
|
1464
1472
|
} };
|
|
1465
1473
|
}]);
|
|
@@ -1470,7 +1478,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1470
1478
|
var DayPilot = {};
|
|
1471
1479
|
!function () {
|
|
1472
1480
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1473
|
-
this.v = "2022.3.
|
|
1481
|
+
this.v = "2022.3.398-lite";
|
|
1474
1482
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1475
1483
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1476
1484
|
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)
|
|
@@ -2228,7 +2236,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2228
2236
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2229
2237
|
var t = {};
|
|
2230
2238
|
t.Month = function (e, i) {
|
|
2231
|
-
this.v = "2022.3.
|
|
2239
|
+
this.v = "2022.3.398-lite", this.nav = {};
|
|
2232
2240
|
var n = this;
|
|
2233
2241
|
this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, 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.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.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) {
|
|
2234
2242
|
var e = null;
|
|
@@ -2784,7 +2792,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2784
2792
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2785
2793
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2786
2794
|
DayPilot.Navigator = function (t, e) {
|
|
2787
|
-
this.v = "2022.3.
|
|
2795
|
+
this.v = "2022.3.398-lite";
|
|
2788
2796
|
var i = this;
|
|
2789
2797
|
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) {
|
|
2790
2798
|
var s = {};
|