@daypilot/daypilot-lite-angular 3.33.0 → 3.33.1
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 +40 -36
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +44 -40
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +39 -35
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +2 -0
- package/package.json +2 -2
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2025.2.
|
|
133
|
+
Version: 2025.2.646-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -654,7 +654,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
654
654
|
if (this instanceof t.Calendar && !this.O && (o = !0, this.O = !0), !o)
|
|
655
655
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
656
656
|
var r = this;
|
|
657
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.2.
|
|
657
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.2.646-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.P = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.Q(); }, this.Q = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.R = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.T = 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.S(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.V, 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.P || (e.P = !0, clearInterval(e.W), e.X(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Y(), e.Z(), 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.P; }, this._ = function () { this.nav.top.dispose = this.dispose; }, this.U = function (e) { r.V(e.responseText); }, this.S = 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.aa = function (e, t) {
|
|
658
658
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
659
659
|
i = i.parentNode;
|
|
660
660
|
var a = r.eventBorderRadius;
|
|
@@ -832,7 +832,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
832
832
|
}
|
|
833
833
|
} }, this.Ca = function () { var e = DayPilot.Global.selecting; !function () { var t = e.start.column, i = e.start.columnIndex, a = t.start, n = r.getPixels(e.startTime, a), o = r.getPixels(e.endTime, a), s = n.boxTop, l = o.boxBottom; r.snapToGrid || (s = n.top, l = o.top); var d = l - s, c = r.eventBorderRadius; "number" == typeof c && (c += "px"); var u = function () { if (r.nav.activeSelection)
|
|
834
834
|
return r.nav.activeSelection; var e = document.createElement("div"); e.setAttribute("unselectable", "on"), e.style.position = "absolute", e.style.left = "0px", e.style.width = "100%"; var t = document.createElement("div"); return t.setAttribute("unselectable", "on"), t.className = r.K("_shadow_inner"), c && (t.style.borderRadius = c, e.style.borderRadius = c), e.appendChild(t), r.nav.events.rows[0].cells[i].selection.appendChild(e), r.elements.selection.push(e), r.nav.activeSelection = e, e; }(); u.className = r.K("_shadow"), u.firstChild.innerHTML = "", u.style.top = s + "px", u.style.height = d + "px"; }(); }, this.Ba = function () { var e = DayPilot.Global.selecting; e.end = r.coords, e.end.time = r.za(e.start.x, e.end.y), e.end.column = r.xa[r.Aa(e.end.x)], r.Da && (e.end.time = r.za(e.end.x, e.end.y)), r.Ea(e); }, this.Ea = function (e) { var t, i, a; r.snapToGrid ? e.end.time < e.start.time ? (t = r.Fa(e.end.time, e.start.column.start), i = r.Ga(e.start.time, e.start.column.start), a = e.endTime) : (t = r.Fa(e.start.time, e.start.column.start), i = r.Ga(e.end.time, e.start.column.start), a = e.startTime) : e.end.time < e.start.time ? (t = e.end.time, i = e.start.time, a = e.endTime) : (t = e.start.time, i = e.end.time, a = e.startTime), e.startTime = t, e.endTime = i, e.anchor = a; }, this.getSelection = function () { if (!r.M)
|
|
835
|
-
return null; var e = r.M; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Aa = function (e) { if (e < 0)
|
|
835
|
+
return null; var e = r.M; return new DayPilot.Selection(e.startTime, e.endTime, e.start.column.id, r); }, this.Aa = function (e) { if (e -= r.hourWidth, e < 0)
|
|
836
836
|
return null; for (var t = 0, i = r.nav.events.rows[0].cells, a = 0; a < i.length; a++) {
|
|
837
837
|
if (t += i[a].offsetWidth, e < t)
|
|
838
838
|
return a;
|
|
@@ -1307,7 +1307,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1307
1307
|
}
|
|
1308
1308
|
}(), "undefined" == typeof DayPilot)
|
|
1309
1309
|
var DayPilot = {};
|
|
1310
|
-
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2025.2.
|
|
1310
|
+
if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2025.2.646-lite"; var t = "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.ba.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1311
1311
|
for (var t in e)
|
|
1312
1312
|
this[t] = e[t]; }, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Lb(); this.resetTarget && !e ? this.Mb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Lb(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.Ab && (this.Ab = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (e) { this.date = new DayPilot.Date(e), this.Mb(this.date); }, this.Lb = function () { var e = this.C(); if (!e)
|
|
1313
1313
|
return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
|
|
@@ -1337,7 +1337,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
1337
1337
|
"use strict";
|
|
1338
1338
|
if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
|
|
1339
1339
|
var e = function () { }, t = {};
|
|
1340
|
-
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2025.2.
|
|
1340
|
+
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2025.2.646-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.Ob = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) { o = o || {}; var r = null; 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.Ob.submenu = null, null !== t.mouse) {
|
|
1341
1341
|
a.cssOnly || (a.cssOnly = !0);
|
|
1342
1342
|
var s = null;
|
|
1343
1343
|
if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
|
|
@@ -1853,7 +1853,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1853
1853
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1854
1854
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
1855
1855
|
e.Month = function (i, a) {
|
|
1856
|
-
this.v = "2025.2.
|
|
1856
|
+
this.v = "2025.2.646-lite", this.nav = {};
|
|
1857
1857
|
var n = this;
|
|
1858
1858
|
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.P = !1, this.V = 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.X(), n._c(), n.ga(), "Full" === e.UpdateType && (n.ad(), n.bd()), n.la(), n.show(), n.ma(), 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) { var t = null; if (e instanceof DayPilot.Event)
|
|
1859
1859
|
t = e.data;
|
|
@@ -2331,7 +2331,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2331
2331
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
2332
2332
|
var e = DayPilot.Util.isVueVNode;
|
|
2333
2333
|
DayPilot.Navigator = function (t, i) {
|
|
2334
|
-
this.v = "2025.2.
|
|
2334
|
+
this.v = "2025.2.646-lite";
|
|
2335
2335
|
var a = this;
|
|
2336
2336
|
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.vb = {}, this.hd = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.jd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.kd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.jd() || (this.root.style.width = 7 * r.cellWidth() + this.kd() + "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.sa = function () { return 2 === a.api; }, this.ad = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.ld = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.md = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.nd = function () { if (!r.jd())
|
|
2337
2337
|
return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.od = function () { return r.jd() ? null : r.cellWidth(); }, this.pd = function (e) { return "number" != typeof e && (e = 1), r.jd() ? this.nd() * e : this.od() * e; }, this.qd = function (e) { var t = r.jd() ? "%" : "px"; return this.pd(e) + t; }, this.bd = function (t, i) {
|
|
@@ -2377,6 +2377,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2377
2377
|
var S = document.createElement("div");
|
|
2378
2378
|
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.qd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
|
|
2379
2379
|
}
|
|
2380
|
+
if (a.showWeekNumbers) {
|
|
2381
|
+
var S = document.createElement("div");
|
|
2382
|
+
S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = this.titleHeight + "px", S.style.width = a.qd(), S.style.height = this.dayHeaderHeight + "px", S.className = this.K("_dayheader"), y.appendChild(S);
|
|
2383
|
+
}
|
|
2380
2384
|
for (var M = 0; M < 7; M++) {
|
|
2381
2385
|
n.cells[M] = [];
|
|
2382
2386
|
var S = document.createElement("div");
|
|
@@ -2394,8 +2398,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2394
2398
|
var I = document.createElement("div");
|
|
2395
2399
|
n.cells[M][P] = I;
|
|
2396
2400
|
var O = a.wd(M, P), R = O.x, B = O.y, U = r.jd() ? "%" : "px";
|
|
2397
|
-
I.day = k, I.x = M, I.y = P, I.left = R, I.top = B,
|
|
2398
|
-
I.style.left = R + U, I.style.right = R + U, I.style.top = B + "px", I.style.width = a.qd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
2401
|
+
I.day = k, I.x = M, I.y = P, I.left = R, I.top = B,
|
|
2402
|
+
I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = H, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.ld(I, "cell"), k.getTime() === m.getTime() && A && this.ld(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.ld(I, "weekend"), I.style.position = "absolute", I.style.left = R + U, I.style.right = R + U, I.style.top = B + "px", I.style.width = a.qd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
2399
2403
|
var z = document.createElement("div");
|
|
2400
2404
|
z.style.position = "absolute", z.className = k.getTime() === m.getTime() && A ? this.K("_todaybox") : this.K("_daybox"), a.ld(z, "cell_box"), z.style.left = "0px", z.style.top = "0px", z.style.right = "0px", z.style.bottom = "0px", I.appendChild(z);
|
|
2401
2405
|
var j = null;
|
|
@@ -2453,13 +2457,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2453
2457
|
return void (this.Dd = { "date1": r, "date2": s, "options": l }); var d = !0, c = !0; l && "object" == typeof l ? (l.dontFocus && (d = !1), l.dontNotify && (c = !1)) : "boolean" == typeof l && (d = !l); var u = this.selectionStart, h = this.selectionEnd; this.selectionStart = new DayPilot.Date(r).getDatePart(), this.selectionDay = this.selectionStart; var f = !1; if (d) {
|
|
2454
2458
|
var m = this.startDate;
|
|
2455
2459
|
(this.selectionStart < this.Ed() || this.selectionStart >= this.Fd()) && (m = this.selectionStart.firstDayOfMonth()), m.toStringSortable() !== this.startDate.toStringSortable() && (f = !0), this.startDate = m;
|
|
2456
|
-
} s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.Cd(), this.ad(), this.hd(), this.Gd(), this.Ad(), this.Bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.N(), f && this.Hd(); }, this.update = function (e) { if (a.qb(e), this.Ia) {
|
|
2460
|
+
} s && a.freeHandSelectionEnabled ? a.selectionEnd = new DayPilot.Date(s) : this.Cd(), this.ad(), this.hd(), this.Gd(), this.Ad(), this.Bd(), !c || u.equals(this.selectionStart) && h.equals(this.selectionEnd) || this.N(), f && this.Hd(); }, this.update = function (e) { a.Id(e); }, this.Id = function (e) { if (a.qb(e), this.Ia) {
|
|
2457
2461
|
if (a.P)
|
|
2458
2462
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed.");
|
|
2459
|
-
a.
|
|
2463
|
+
a.Jd();
|
|
2460
2464
|
var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
|
|
2461
2465
|
a.ob(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.N();
|
|
2462
|
-
} }, this.ob = function () { this.ad(), this.hd(), this.Cd(), this.Gd(), this.ga(), this.Ad(), this.Bd(), this.visible ? this.show() : this.hide(); }, this.
|
|
2466
|
+
} }, this.ob = function () { this.ad(), this.hd(), this.Cd(), this.Gd(), this.ga(), this.Ad(), this.Bd(), this.visible ? this.show() : this.hide(); }, this.Jd = function () { a.vb = {}; }, this.sb = null, this.qb = function (e) { if (e) {
|
|
2463
2467
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
|
|
2464
2468
|
this.sb = t;
|
|
2465
2469
|
for (var i in e)
|
|
@@ -2472,12 +2476,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2472
2476
|
} }, this.tb = function () { var e = this.sb; for (var t in e) {
|
|
2473
2477
|
var i = e[t];
|
|
2474
2478
|
i.postInit && i.postInit();
|
|
2475
|
-
} }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.
|
|
2479
|
+
} }, this.T = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.S(); var n = "JSON" + JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.U, n, this.Kd) : WebForm_DoCallback(this.uniqueID, n, this.V, null, this.callbackError, !0); }, this.Kd = function (e) { if ("function" == typeof a.onAjaxError) {
|
|
2476
2480
|
var t = {};
|
|
2477
2481
|
t.request = e, a.onAjaxError(t);
|
|
2478
2482
|
}
|
|
2479
2483
|
else
|
|
2480
|
-
"function" == typeof a.ajaxError && a.ajaxError(e); }, this.U = function (e) { a.V(e.responseText); }, this.R = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.S(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.S = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.
|
|
2484
|
+
"function" == typeof a.ajaxError && a.ajaxError(e); }, this.U = function (e) { a.V(e.responseText); }, this.R = function (e, t, i) { var n = {}; n.action = e, n.parameters = i, n.data = t, n.header = this.S(); var o = "JSON" + JSON.stringify(n); __doPostBack(a.uniqueID, o); }, this.S = function () { var e = {}; return e.v = this.v, e.startDate = this.startDate, e.selectionStart = this.selectionStart, e.showMonths = this.showMonths, e; }, this.Ld = function (e, t) { "refresh" === e && this.Hd(); }, this.td = function (e) { var t = e + r.weekStarts(); return t > 6 && (t -= 7), r.locale().dayNamesShort[t]; }, this.ud = function (e) { return null !== this.selectionStart && null !== this.selectionEnd && (this.selectionStart.getTime() <= e.getTime() && e.getTime() <= this.selectionEnd.getTime()); }, this.Md = function (e) { for (var t = 0; t < a.months.length; t++) {
|
|
2481
2485
|
var i = a.months[t];
|
|
2482
2486
|
if (!i)
|
|
2483
2487
|
return null;
|
|
@@ -2488,19 +2492,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2488
2492
|
if (i.top <= e.y && e.y < i.top + i.height)
|
|
2489
2493
|
return t;
|
|
2490
2494
|
}
|
|
2491
|
-
} return null; }, this.
|
|
2492
|
-
return void (a.
|
|
2495
|
+
} return null; }, this.Nd = function (e) { }, this.Od = function () { if (!r.jd())
|
|
2496
|
+
return void (a.Pd = a.cellWidth); var e = a.months[0].cells[0][0], t = e.clientWidth; a.Pd = t, a.months.forEach(function (e) { e.width = e.div.clientWidth, "Horizontal" === a.orientation && (e.left = e.div.offsetLeft), e.cells.forEach(function (e, i) { e.forEach(function (e, a) { e.width = t, e.left = i * t; }); }); }); }, this.Qd = function (e) { a.Od(); var t = DayPilot.mo3(a.nav.top, e), i = a.Md(t); if (null === i)
|
|
2493
2497
|
return null; var n = a.months[i], o = this.titleHeight + this.dayHeaderHeight; if (n.top <= t.y && t.y < n.top + o)
|
|
2494
2498
|
return { "month": i, "x": 0, "y": 0, "coords": t, "header": !0 }; for (var r = 0; r < n.cells.length; r++)
|
|
2495
2499
|
for (var s = 0; s < n.cells[r].length; s++) {
|
|
2496
2500
|
var l = n.cells[r][s], d = l.top + n.top, c = l.left + n.left;
|
|
2497
|
-
if (c <= t.x && t.x < c + a.
|
|
2501
|
+
if (c <= t.x && t.x < c + a.Pd && d <= t.y && t.y < d + a.cellHeight)
|
|
2498
2502
|
return { "month": i, "x": r, "y": s, "coords": t };
|
|
2499
|
-
} return null; }, this.
|
|
2500
|
-
var t = a.
|
|
2503
|
+
} return null; }, this.Rd = function (e) { if (a.freeHandSelectionEnabled) {
|
|
2504
|
+
var t = a.Qd(e);
|
|
2501
2505
|
t && !t.header && (n.start = t), a.months[t.month].cells[t.x][t.y], e.preventDefault();
|
|
2502
|
-
} }, this.
|
|
2503
|
-
var t = a.
|
|
2506
|
+
} }, this.Sd = function (e) { if (n.start) {
|
|
2507
|
+
var t = a.Qd(e);
|
|
2504
2508
|
if (n.end)
|
|
2505
2509
|
n.end = t;
|
|
2506
2510
|
else if (t) {
|
|
@@ -2508,8 +2512,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2508
2512
|
o > i && (n.end = t);
|
|
2509
2513
|
}
|
|
2510
2514
|
n.end && (n.clear(), n.draw());
|
|
2511
|
-
} }, this.
|
|
2512
|
-
var n = this.
|
|
2515
|
+
} }, this.Td = {};
|
|
2516
|
+
var n = this.Td;
|
|
2513
2517
|
n.start = null, n.drawCell = function (e) { var t = a.months[e.month], i = a.wd(e.x, e.y), o = t.top + i.y, s = t.left + i.x, l = "px", d = a.qd(); if (r.jd()) {
|
|
2514
2518
|
var c = "Horizontal" === a.orientation ? a.showMonths : 1;
|
|
2515
2519
|
s = t.leftPct + i.x / c, l = "%", d = a.qd(1 / c);
|
|
@@ -2626,7 +2630,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2626
2630
|
break;
|
|
2627
2631
|
case "None": break;
|
|
2628
2632
|
case "PostBack": a.timeRangeSelectedPostBack(t, i, o);
|
|
2629
|
-
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.R("TimeRangeSelected", i, n); }, this.sd = function (e) { a.
|
|
2633
|
+
} }, this.timeRangeSelectedPostBack = function (e, t, i, a) { var n = {}; n.start = e, n.end = t, n.day = a, this.R("TimeRangeSelected", i, n); }, this.sd = function (e) { a.Ud(a.skipMonths); }, this.rd = function (e) { a.Ud(-a.skipMonths); }, this.Ud = function (e) { this.startDate = this.startDate.addMonths(e), this.ad(), this.hd(), this.Gd(), this.Bd(), this.Hd(), this.Ad(); }, this.Ed = function () { return a.startDate.firstDayOfMonth(); }, this.Fd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths); }, this.visibleStart = function () { return a.startDate.firstDayOfMonth().firstDayOfWeek(r.weekStarts()); }, this.visibleEnd = function () { return a.startDate.firstDayOfMonth().addMonths(this.showMonths - 1).firstDayOfWeek(r.weekStarts()).addDays(42); }, this.Hd = function () { var e = this.visibleStart(), t = this.visibleEnd(); if (a.sa()) {
|
|
2630
2634
|
var i = {};
|
|
2631
2635
|
if (i.start = e, i.end = t, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof a.onVisibleRangeChange && (a.onVisibleRangeChange(i), i.preventDefault.value))
|
|
2632
2636
|
return;
|
|
@@ -2654,9 +2658,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2654
2658
|
break;
|
|
2655
2659
|
case "Disabled":
|
|
2656
2660
|
} }, this.visibleRangeChangedCallBack = function (e) { var t = {}; this.T("Visible", e, t); }, this.visibleRangeChangedPostBack = function (e) { var t = {}; this.R("Visible", e, t); }, this.V = function (e, t) { var e = JSON.parse(e); a.items = e.Items, a.cells = e.Cells, a.cells ? a.update() : a.Ad(); }, this.Gd = function () { for (var e = 0; e < this.showMonths; e++) {
|
|
2657
|
-
var t = this.
|
|
2661
|
+
var t = this.Vd(e);
|
|
2658
2662
|
this.bd(e, t);
|
|
2659
|
-
} this.root.style.height = this.
|
|
2663
|
+
} this.root.style.height = this.Wd() + "px", this.nav.preselection = document.createElement("div"), this.nav.preselection.style.position = "absolute", this.nav.preselection.style.left = "0px", this.nav.preselection.style.right = "0px", this.nav.preselection.style.top = "0px", this.root.appendChild(this.nav.preselection); }, this.Wd = function () { if ("Horizontal" === this.orientation) {
|
|
2660
2664
|
for (var e = 0, t = 0; t < this.months.length; t++) {
|
|
2661
2665
|
var i = this.months[t];
|
|
2662
2666
|
i.height > e && (e = i.height);
|
|
@@ -2665,33 +2669,33 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2665
2669
|
} for (var a = 0, t = 0; t < this.months.length; t++) {
|
|
2666
2670
|
var i = this.months[t];
|
|
2667
2671
|
a += i.height;
|
|
2668
|
-
} return a; }, this.
|
|
2672
|
+
} return a; }, this.Vd = function (e) { if (this.internal.showLinks)
|
|
2669
2673
|
return this.internal.showLinks; var t = {}; return t.left = 0 === e, t.right = 0 === e, t.before = 0 === e, t.after = e === this.showMonths - 1, "Horizontal" === this.orientation && (t.right = e === this.showMonths - 1), t; }, this.ua = {}, this.ua.scope = null, this.ua.notify = function () { a.ua.scope && a.ua.scope["$apply"](); }, this.Oa = {}, this.Oa.Na = null, this.Oa.Kb = function (e, t, i) { var n = a.Oa.Na; if ("function" == typeof n.createVNode && "function" == typeof n.render) {
|
|
2670
2674
|
var o = n.createVNode(e, i);
|
|
2671
2675
|
n.render(o, t);
|
|
2672
2676
|
} }, this.Oa.Sa = function (e, t) { var i = a.Oa.Na; if ("function" == typeof i.render) {
|
|
2673
2677
|
var n = e;
|
|
2674
2678
|
DayPilot.isArray(e) && (n = i.h("div", null, e)), i.render(n, t);
|
|
2675
|
-
} }, this.Oa.Qa = function (e) { var t = a.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.qb, this.internal.initialized = function () { return a.Ia; }, this.internal.
|
|
2679
|
+
} }, this.Oa.Qa = function (e) { var t = a.Oa.Na; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = a.qb, this.internal.initialized = function () { return a.Ia; }, this.internal.enableVue = function (e) { a.Oa.Na = e; }, this.internal.vueRef = function () { return a.Oa.Na; }, this.internal.vueRendering = function () { return a.Oa.Pa; }, this.ba = {};
|
|
2676
2680
|
var r = this.ba;
|
|
2677
2681
|
r.locale = function () { return DayPilot.Locale.find(a.locale); }, r.weekStarts = function () { if ("Auto" === a.weekStarts) {
|
|
2678
2682
|
var e = r.locale();
|
|
2679
2683
|
return e ? e.weekStarts : 0;
|
|
2680
2684
|
} return a.weekStarts; }, r.cellWidth = function () { if (a.vb.cellWidth)
|
|
2681
|
-
return a.vb.cellWidth; var e = a.
|
|
2685
|
+
return a.vb.cellWidth; var e = a.Xd("_cell_dimensions").width; return e || (e = a.cellWidth), a.vb.cellWidth = e, e; }, r.jd = function () { return "Auto" === a.ba.cellWidth(); }, this.clearSelection = function () { for (var e = 0; e < this.selected.length; e++) {
|
|
2682
2686
|
var t = this.selected[e];
|
|
2683
2687
|
a.zd(t.parentNode, t.x, t.y);
|
|
2684
|
-
} this.selected = []; }, this.
|
|
2688
|
+
} this.selected = []; }, this.Yd = function () { return !!this.backendUrl && ("undefined" == typeof a.items || !a.items); }, this.events = {}, this.ga = function () { if (DayPilot.isArray(this.events.list)) {
|
|
2685
2689
|
this.items = {};
|
|
2686
2690
|
for (var e = 0; e < this.events.list.length; e++) {
|
|
2687
2691
|
var t = this.events.list[e];
|
|
2688
2692
|
if (!t.hidden) {
|
|
2689
|
-
var i = this.
|
|
2693
|
+
var i = this.Zd(t);
|
|
2690
2694
|
for (var a in i)
|
|
2691
2695
|
this.items[a] = 1;
|
|
2692
2696
|
}
|
|
2693
2697
|
}
|
|
2694
|
-
} }, this.
|
|
2698
|
+
} }, this.Xd = function (e) { var t = document.createElement("div"); t.style.position = "absolute", t.style.top = "-2000px", t.style.left = "-2000px", t.className = this.K(e); var i = a.root || document.body; i.appendChild(t); var n = t.offsetHeight, o = t.offsetWidth; i.removeChild(t); var r = {}; return r.height = n, r.width = o, r; }, this.Zd = function (e) { for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
2695
2699
|
a[n.toStringSortable()] = 1, n = n.addDays(1); return a; }, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.ub = function () { if (this.id && this.id.tagName)
|
|
2696
2700
|
this.nav.top = this.id;
|
|
2697
2701
|
else {
|
|
@@ -2700,13 +2704,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2700
2704
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
2701
2705
|
throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
|
|
2702
2706
|
} this.root = this.nav.top; }, this.init = function () { if (this.ub(), !this.root.dp) {
|
|
2703
|
-
this.Cd(), this.hd(), this.Gd(), this.ga(), this.Ad(), this._(), this
|
|
2704
|
-
if (this.
|
|
2707
|
+
this.Cd(), this.hd(), this.Gd(), this.ga(), this.Ad(), this._(), this.$d(), this.nb();
|
|
2708
|
+
if (this.Yd() && this.Hd(), this.Ia = !0, this.tb(), this.Dd) {
|
|
2705
2709
|
var e = this.Dd;
|
|
2706
2710
|
this.select(e.date1, e.date2, e.options), this.Dd = null;
|
|
2707
2711
|
}
|
|
2708
2712
|
return this;
|
|
2709
|
-
} }, this
|
|
2713
|
+
} }, this.$d = function () { a.nav.top.onmousedown = this.Rd, a.nav.top.onmousemove = this.Sd; }, this.nb = function () { DayPilot.re(document, "mouseup", a._d); }, this._d = function (e) { if (n.start && n.end) {
|
|
2710
2714
|
var t = DayPilot.mo3(a.nav.top, e);
|
|
2711
2715
|
if (t.x === n.start.coords.x && t.y === n.start.coords.y)
|
|
2712
2716
|
return n.start = null, void n.clear();
|