@daypilot/daypilot-lite-angular 3.0.0-sandbox.338 → 3.0.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 +30 -30
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +34 -34
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +29 -29
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -100,7 +100,7 @@ DayPilot Lite
|
|
|
100
100
|
Copyright (c) 2005 - 2021 Annpoint s.r.o.
|
|
101
101
|
http://www.daypilot.org/
|
|
102
102
|
Licensed under Apache Software License 2.0
|
|
103
|
-
Version: 2021.4.
|
|
103
|
+
Version: 2021.4.341-lite
|
|
104
104
|
*/
|
|
105
105
|
if ("undefined" == typeof DayPilot)
|
|
106
106
|
var DayPilot = {};
|
|
@@ -393,7 +393,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
393
393
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
394
394
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
395
395
|
var s = this;
|
|
396
|
-
this.uniqueID = null, this.v = "2021.4.
|
|
396
|
+
this.uniqueID = null, this.v = "2021.4.341-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.f = !0, this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", 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.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.i = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.j = function () { if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
397
397
|
return new Number(RegExp.$1) >= 10.5;
|
|
398
398
|
} return !1; }(), this.k = function () { if (/AppleWebKit[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
399
399
|
return new Number(RegExp.$1) >= 522;
|
|
@@ -927,7 +927,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
927
927
|
}();
|
|
928
928
|
if ("undefined" == typeof DayPilot)
|
|
929
929
|
var DayPilot = {};
|
|
930
|
-
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2021.4.
|
|
930
|
+
!function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) { this.v = "2021.4.341-lite"; var e = "navigator_" + (new Date).getTime(), i = this; this.prepare = function () { if (this.locale = "en-us", this.target = null, this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.cssClassPrefix = "navigator_default", this.theme = null, this.patterns = [], t)
|
|
931
931
|
for (var e in t)
|
|
932
932
|
this[e] = t[e]; this.init(); }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t && this.c(this.date), DayPilot.re(document, "mousedown", function () { i.close(); }); }, this.close = function () { this.d && (this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.b = function () { var t = this.e(); if (!t)
|
|
933
933
|
return this.date; var e = null; if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
|
|
@@ -938,7 +938,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
938
938
|
} return a; }, this.c = function (t) { var e = this.e(); if (e) {
|
|
939
939
|
var a = t.toString(i.pattern, i.locale);
|
|
940
940
|
"INPUT" === e.tagName ? e.value = a : e.innerHTML = a;
|
|
941
|
-
} }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.e = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, this.show = function () { var t = this.e(), a = this.navigator, a = new DayPilot.Navigator(e); a.api = 2, a.
|
|
941
|
+
} }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.e = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, this.show = function () { var t = this.e(), a = this.navigator, a = new DayPilot.Navigator(e); a.api = 2, a.theme = i.theme || i.cssClassPrefix, a.weekStarts = "Auto", a.locale = i.locale, a.timeRangeSelectedHandling = "JavaScript", a.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start, a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = a; var n = DayPilot.abs(t), o = t.offsetHeight, r = document.createElement("div"); r.style.position = "absolute", r.style.left = n.x + "px", r.style.top = n.y + o + "px"; var s = document.createElement("div"); s.id = e, r.appendChild(s), DayPilot.re(r, "mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r; var l = i.b() || (new DayPilot.Date).getDatePart(); a.startDate = l, a.selectionDay = l, a.init(), this.d = !0; }, this.prepare(); }); }();
|
|
942
942
|
"undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
|
|
943
943
|
"use strict";
|
|
944
944
|
function e(t, i, a) { var n = i.indexOf("."); if (n === -1)
|
|
@@ -1270,7 +1270,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1270
1270
|
var DayPilot = {};
|
|
1271
1271
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
1272
1272
|
var t = {};
|
|
1273
|
-
t.Month = function (e, i) { this.v = "2021.4.
|
|
1273
|
+
t.Month = function (e, i) { this.v = "2021.4.341-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.cssClassPrefix = "month_default", this.eventHeight = 30, this.eventsLoadMethod = "GET", this.a = !0, 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.afterRender = function () { }, this.eventClickHandling = "Enabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = 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.b = 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.c(), n.d(), n.f(), "Full" === t.UpdateType && (n.g(), n.h()), n.i(), n.show(), n.j(), 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) { t.calendar = n, n.events.list || (n.events.list = []), n.events.list.push(t.data), n.update(), n.k.notify(); }, this.events.update = function (t) { t.commit(), n.update(), n.k.notify(); }, this.events.remove = function (t) { var e = DayPilot.indexOf(n.events.list, t.data); n.events.list.splice(e, 1), n.update(), n.k.notify(); }, this.events.load = function (t, e, i) { var s = function (t) { var e = {}; e.exception = t.exception, e.request = t.request, "function" == typeof i && i(e); }, a = function (t) { var i, a = t.request; try {
|
|
1274
1274
|
i = JSON.parse(a.responseText);
|
|
1275
1275
|
}
|
|
1276
1276
|
catch (t) {
|
|
@@ -1568,13 +1568,13 @@ if ("undefined" == typeof DayPilot)
|
|
|
1568
1568
|
if ("undefined" == typeof DayPilot)
|
|
1569
1569
|
var DayPilot = {};
|
|
1570
1570
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () { if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
1571
|
-
DayPilot.Navigator = function (t, e) { this.v = "2021.4.
|
|
1571
|
+
DayPilot.Navigator = function (t, e) { this.v = "2021.4.341-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)
|
|
1572
1572
|
v.style.position = "absolute", v.style.left = y * t + "px", v.style.top = "0px", s.top = 0, s.left = y * t;
|
|
1573
1573
|
else {
|
|
1574
1574
|
v.style.position = "relative";
|
|
1575
|
-
var
|
|
1576
|
-
s.top =
|
|
1577
|
-
}
|
|
1575
|
+
var g = t > 0 ? i.months[t - 1].top + i.months[t - 1].height : 0;
|
|
1576
|
+
s.top = g, s.left = 0;
|
|
1577
|
+
} v.className = this.c("_month"), v.style.cursor = "default", v.style.MozUserSelect = "none", v.style.KhtmlUserSelect = "none", v.style.WebkitUserSelect = "none", v.month = s, this.root.appendChild(v); var m = this.titleHeight + this.dayHeaderHeight, b = document.createElement("div"); b.style.position = "absolute", b.style.left = "0px", b.style.right = "0px", b.style.top = "0px", b.style.width = a.cellWidth() + "px", b.style.height = this.titleHeight + "px", b.style.lineHeight = this.titleHeight + "px", b.setAttribute("unselectable", "on"), b.className = this.c("_titleleft"), e.left && (b.style.cursor = "pointer", b.innerHTML = "<span><</span>", b.onclick = this.j), v.appendChild(b), this.tl = b; var D = document.createElement("div"); D.style.position = "absolute", D.style.left = a.cellWidth() + "px", D.style.top = "0px", D.style.width = 5 * a.cellWidth() + this.d() + "px", D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.c("_title"), D.innerHTML = a.locale().monthNames[n.getMonth()] + " " + n.getYear(), v.appendChild(D), this.ti = D; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = 6 * a.cellWidth() + this.d() + "px", x.style.right = 6 * a.cellWidth() + this.d() + "px", x.style.top = "0px", x.style.width = a.cellWidth() + "px", x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.c("_titleright"), e.right && (x.style.cursor = "pointer", x.innerHTML = "<span>></span>", x.onclick = this.k), v.appendChild(x), this.tr = x; var w = this.d(); if (this.showWeekNumbers)
|
|
1578
1578
|
for (var k = 0; k < u; k++) {
|
|
1579
1579
|
var S = r.addDays(7 * k), C = null;
|
|
1580
1580
|
switch (this.weekNumberAlgorithm) {
|
|
@@ -1590,39 +1590,39 @@ if ("undefined" == typeof DayPilot)
|
|
|
1590
1590
|
default: throw "Unknown weekNumberAlgorithm value.";
|
|
1591
1591
|
}
|
|
1592
1592
|
var H = document.createElement("div");
|
|
1593
|
-
H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = k * this.cellHeight +
|
|
1594
|
-
} for (var
|
|
1595
|
-
s.cells[
|
|
1593
|
+
H.style.position = "absolute", H.style.left = "0px", H.style.right = "0px", H.style.top = k * this.cellHeight + m + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.cellHeight + "px", H.style.lineHeight = this.cellHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_weeknumber"), H.innerHTML = "<span>" + C + "</span>", v.appendChild(H), s.weeks.push(H);
|
|
1594
|
+
} for (var M = 0; M < 7; M++) {
|
|
1595
|
+
s.cells[M] = [];
|
|
1596
1596
|
var H = document.createElement("div");
|
|
1597
|
-
H.style.position = "absolute", H.style.left =
|
|
1597
|
+
H.style.position = "absolute", H.style.left = M * a.cellWidth() + w + "px", H.style.right = M * a.cellWidth() + w + "px", H.style.top = this.titleHeight + "px", H.style.width = a.cellWidth() + "px", H.style.height = this.dayHeaderHeight + "px", H.style.lineHeight = this.dayHeaderHeight + "px", H.setAttribute("unselectable", "on"), H.className = this.c("_dayheader"), H.innerHTML = "<span>" + this.l(M) + "</span>", v.appendChild(H), s.days.push(H);
|
|
1598
1598
|
for (var k = 0; k < u; k++) {
|
|
1599
|
-
var S = r.addDays(7 * k +
|
|
1599
|
+
var S = r.addDays(7 * k + M), P = this.m(S) && "none" !== this.n(), N = S.firstDayOfMonth() === n, E = S < n, W = S >= n.addMonths(1);
|
|
1600
1600
|
if ("month" === this.n())
|
|
1601
|
-
|
|
1601
|
+
P = P && N;
|
|
1602
1602
|
else if ("day" === this.n())
|
|
1603
|
-
|
|
1603
|
+
P = P && (N || l && E || o && W);
|
|
1604
1604
|
else if ("week" === this.n()) {
|
|
1605
|
-
var
|
|
1606
|
-
|
|
1605
|
+
var O = S.firstDayOfMonth() === n;
|
|
1606
|
+
P = P && (O || l && E || o && W);
|
|
1607
1607
|
}
|
|
1608
|
-
var
|
|
1609
|
-
s.cells[
|
|
1610
|
-
var
|
|
1611
|
-
|
|
1608
|
+
var R = document.createElement("div");
|
|
1609
|
+
s.cells[M][k] = R;
|
|
1610
|
+
var T = i.o(M, k), A = T.x, B = T.y;
|
|
1611
|
+
R.day = S, R.x = M, R.y = k, R.left = A, R.top = B, R.isCurrentMonth = N, R.isNextMonth = W, R.isPrevMonth = E, R.showBefore = l, R.showAfter = o, R.className = this.c(N ? "_day" : "_dayother"), i.g(R, "cell"), S.getTime() === f.getTime() && N && this.g(R, "today"), 0 !== S.dayOfWeek() && 6 !== S.dayOfWeek() || this.g(R, "weekend"), R.style.position = "absolute", R.style.left = A + "px", R.style.right = A + "px", R.style.top = B + "px", R.style.width = a.cellWidth() + "px", R.style.height = this.cellHeight + "px", R.style.lineHeight = this.cellHeight + "px";
|
|
1612
1612
|
var _ = document.createElement("div");
|
|
1613
|
-
_.style.position = "absolute",
|
|
1613
|
+
_.style.position = "absolute", _.className = S.getTime() === f.getTime() && N ? this.c("_todaybox") : this.c("_daybox"), i.g(_, "cell_box"), _.style.left = "0px", _.style.top = "0px", _.style.right = "0px", _.style.bottom = "0px", R.appendChild(_);
|
|
1614
1614
|
var U = null;
|
|
1615
1615
|
if (this.cells && this.cells[S.toStringSortable()] && (U = this.cells[S.toStringSortable()]), "function" == typeof i.onBeforeCellRender) {
|
|
1616
1616
|
var I = {};
|
|
1617
1617
|
I.cell = U || {}, I.cell.day = S, I.cell.isCurrentMonth = N, I.cell.isToday = S.getTime() === f.getTime() && N, I.cell.isWeekend = 0 === S.dayOfWeek() || 6 === S.dayOfWeek(), U ? (I.cell.html = U.html || S.getDay(), I.cell.cssClass = U.css) : (I.cell.html = S.getDay(), I.cell.cssClass = null), i.onBeforeCellRender(I), U = I.cell;
|
|
1618
1618
|
}
|
|
1619
|
-
if (U && DayPilot.Util.addClass(
|
|
1619
|
+
if (U && DayPilot.Util.addClass(R, U.cssClass || U.css), N || l && E || o && W) {
|
|
1620
1620
|
var L = document.createElement("div");
|
|
1621
|
-
L.innerHTML = S.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.g(L, "cell_text"),
|
|
1621
|
+
L.innerHTML = S.getDay(), L.style.position = "absolute", L.style.left = "0px", L.style.top = "0px", L.style.right = "0px", L.style.bottom = "0px", i.g(L, "cell_text"), R.isClickable = !0, U && U.html && (L.innerHTML = U.html), R.appendChild(L);
|
|
1622
1622
|
}
|
|
1623
|
-
|
|
1623
|
+
R.setAttribute("unselectable", "on"), R.onclick = this.p, v.appendChild(R), P && (i.q(v, M, k), this.selected.push(R));
|
|
1624
1624
|
}
|
|
1625
|
-
} var V = document.createElement("div"); V.style.position = "absolute", V.style.left = "0px", V.style.top =
|
|
1625
|
+
} var V = document.createElement("div"); V.style.position = "absolute", V.style.left = "0px", V.style.top = m - 2 + "px", V.style.width = 7 * a.cellWidth() + this.d() + "px", V.style.height = "1px", V.style.fontSize = "1px", V.style.lineHeight = "1px", V.className = this.c("_line"), v.appendChild(V), this.months.push(s); }, this.o = function (t, e) { var i = this.titleHeight + this.dayHeaderHeight, s = this.d(); return { "x": t * a.cellWidth() + s, "y": e * this.cellHeight + i }; }, this.q = function (t, e, s) { var n = t.month.cells[e][s]; i.g(n, "select"); }, this.r = function (t, e, s) { var n = t.month.cells[e][s]; i.h(n, "select"); }, this.d = function () { return this.showWeekNumbers ? a.cellWidth() : 0; }, this.s = function () { if (this.items)
|
|
1626
1626
|
for (var t = 0; t < this.showMonths; t++)
|
|
1627
1627
|
for (var e = 0; e < 7; e++)
|
|
1628
1628
|
for (var i = 0; i < 6; i++) {
|
|
@@ -1648,7 +1648,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1648
1648
|
(this.selectionStart < this.A() || this.selectionStart >= this.B()) && (o = this.selectionStart.firstDayOfMonth()), o.toStringSortable() !== this.startDate.toStringSortable() && (l = !0), this.startDate = o;
|
|
1649
1649
|
} this.u(), this.f(), this.b(), this.C(), this.s(), this.t(), !s || n.equals(this.selectionStart) && a.equals(this.selectionEnd) || this.D(), l && this.E(); }, this.update = function (t) { if (!i.z)
|
|
1650
1650
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that hasn't been initialized yet."); if (i.F)
|
|
1651
|
-
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed."); i.G(), i.H(t), i.I(); }, this.I = function () {
|
|
1651
|
+
throw new DayPilot.Exception("You are trying to update a DayPilot.Navigator instance that has been disposed."); i.G(), i.H(t), i.I(); }, this.I = function () { this.f(), this.b(), this.u(), this.C(), this.J(), this.s(), this.t(), this.visible ? this.show() : this.hide(); }, this.G = function () { i.a = {}; }, this.K = null, this.H = function (t) { if (t) {
|
|
1652
1652
|
var e = { "events": { "preInit": function () { var t = this.data; t && (DayPilot.isArray(t.list) ? i.events.list = t.list : i.events.list = t); } } };
|
|
1653
1653
|
this.K = e;
|
|
1654
1654
|
for (var s in t)
|
|
@@ -1871,7 +1871,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1871
1871
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1872
1872
|
throw "DayPilot.Navigator: The placeholder element not found: '" + t + "'.";
|
|
1873
1873
|
} this.root = this.nav.top; }, this.init = function () { if (this.ea(), !this.root.dp) {
|
|
1874
|
-
|
|
1874
|
+
this.u(), this.b(), this.C(), this.J(), this.s(), this.fa(), this.ga(), this.ha();
|
|
1875
1875
|
return this.ca() && this.E(), this.z = !0, this.L(), this.w && (this.select(this.w.date, this.w.options), this.w = null), this;
|
|
1876
1876
|
} }, this.ga = function () { i.nav.top.onmousedown = this.V, i.nav.top.onmousemove = this.W; }, this.ha = function () { DayPilot.re(document, "mouseup", i.ia); }, this.ia = function (t) { if (s.start && s.end) {
|
|
1877
1877
|
var e = DayPilot.mo3(i.nav.top, t);
|