@daypilot/daypilot-lite-angular 3.29.0 → 3.30.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 +117 -115
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +131 -127
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +116 -114
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/lib/core/daypilot-core.d.ts +1 -0
- package/package.json +2 -2
|
@@ -130,7 +130,7 @@ DayPilot Lite
|
|
|
130
130
|
Copyright (c) 2005 - 2024 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2024.4.
|
|
133
|
+
Version: 2024.4.622-lite
|
|
134
134
|
*/
|
|
135
135
|
var DayPilot = {};
|
|
136
136
|
if ("undefined" == typeof DayPilot)
|
|
@@ -992,7 +992,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
992
992
|
if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
|
|
993
993
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
994
994
|
var r = this;
|
|
995
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.
|
|
995
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.622-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.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.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.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.O = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.P(); }, this.P = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.Q = function (e, t, i) { var a = {}; a.action = e, a.parameters = i, a.data = t, a.header = this.R(); var n = "JSON" + DayPilot.JSON.stringify(a); __doPostBack(r.uniqueID, n); }, this.S = 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.R(); var n = "JSON" + DayPilot.JSON.stringify(a); this.backendUrl ? DayPilot.request(this.backendUrl, this.T, n, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, n, this.U, 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.O || (e.O = !0, clearInterval(e.V), e.W(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.X(), e.Y(), 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.O; }, this.Z = function () { this.nav.top.dispose = this.dispose; }, this.T = function (e) { r.U(e.responseText); }, this.R = 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._ = function (e, t) {
|
|
996
996
|
for (var i = e.parentNode; i && "TD" !== i.tagName;)
|
|
997
997
|
i = i.parentNode;
|
|
998
998
|
var a = r.eventBorderRadius;
|
|
@@ -1688,7 +1688,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1688
1688
|
this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
|
|
1689
1689
|
this.headerCreated = !0;
|
|
1690
1690
|
this.$a(t);
|
|
1691
|
-
}, 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.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { r.
|
|
1691
|
+
}, 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.S("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.cb = function () { var e = this.nav.scroll; e.root = this, r.db(), e.onscroll || (e.onscroll = function () { r.eb(); }); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.fb = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && (t.style.width = e + "px"); }, this.gb = 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) {
|
|
1692
1692
|
var t = null;
|
|
1693
1693
|
if (e instanceof DayPilot.Event)
|
|
1694
1694
|
t = e.data;
|
|
@@ -1778,12 +1778,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1778
1778
|
}, this.hb = function (e) {
|
|
1779
1779
|
if (this.Ba) {
|
|
1780
1780
|
var e = e || {}, t = !e.eventsOnly;
|
|
1781
|
-
r.kb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.da(), r.ga(), r.ha(), r.ia(), r.ja(), r.Wa(), r.fb(), r.ib(), r.
|
|
1781
|
+
r.kb(), r.W(), r.nav.top.style.cursor = "auto", t && (r.da(), r.ga(), r.ha(), r.ia(), r.ja(), r.Wa(), r.fb(), r.ib(), r.db()), r.ea(), r.fa(), r.ka(), r.clearSelection(), this.visible ? this.show() : this.hide();
|
|
1782
1782
|
}
|
|
1783
|
-
}, this.
|
|
1783
|
+
}, this.lb = null, this.jb = function (e) {
|
|
1784
1784
|
if (e) {
|
|
1785
1785
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? r.events.list = e.list : r.events.list = e; } }, "columns": { "preInit": function () { r.columns.list = this.data; } } };
|
|
1786
|
-
this.
|
|
1786
|
+
this.lb = t;
|
|
1787
1787
|
for (var i in e)
|
|
1788
1788
|
if (t[i]) {
|
|
1789
1789
|
var a = t[i];
|
|
@@ -1792,13 +1792,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1792
1792
|
else
|
|
1793
1793
|
r[i] = e[i];
|
|
1794
1794
|
}
|
|
1795
|
-
}, this.
|
|
1796
|
-
var e = this.
|
|
1795
|
+
}, this.mb = function () {
|
|
1796
|
+
var e = this.lb;
|
|
1797
1797
|
for (var t in e) {
|
|
1798
1798
|
var i = e[t];
|
|
1799
1799
|
i.postInit && i.postInit();
|
|
1800
1800
|
}
|
|
1801
|
-
}, this.
|
|
1801
|
+
}, this.nb = function () {
|
|
1802
1802
|
if (this.id && this.id.tagName)
|
|
1803
1803
|
this.nav.top = this.id;
|
|
1804
1804
|
else {
|
|
@@ -1807,8 +1807,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1807
1807
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
1808
1808
|
throw "DayPilot.Calendar: The placeholder element not found: '" + e + "'.";
|
|
1809
1809
|
}
|
|
1810
|
-
}, this.
|
|
1811
|
-
var t = this.
|
|
1810
|
+
}, this.ob = {}, this.ob.events = [], this.pb = function (e) {
|
|
1811
|
+
var t = this.ob.events, i = this.events.list[e], a = {};
|
|
1812
1812
|
for (var n in i)
|
|
1813
1813
|
a[n] = i[n];
|
|
1814
1814
|
if (a.start = new DayPilot.Date(i.start), a.end = new DayPilot.Date(i.end), "function" == typeof this.onBeforeEventRender) {
|
|
@@ -1818,7 +1818,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1818
1818
|
t[e] = a;
|
|
1819
1819
|
}, this.ea = function () {
|
|
1820
1820
|
var e = this.events.list;
|
|
1821
|
-
if (r.
|
|
1821
|
+
if (r.ob.events = [], e) {
|
|
1822
1822
|
if (!DayPilot.isArray(e))
|
|
1823
1823
|
throw new DayPilot.Exception("DayPilot.Calendar.events.list expects an array object. You supplied: " + typeof e);
|
|
1824
1824
|
var t = e.length, i = 864e5;
|
|
@@ -1838,7 +1838,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1838
1838
|
}
|
|
1839
1839
|
if ("function" == typeof this.onBeforeEventRender)
|
|
1840
1840
|
for (var n = 0; n < t; n++)
|
|
1841
|
-
this.
|
|
1841
|
+
this.pb(n);
|
|
1842
1842
|
for (var n = 0; n < this.va.length; n++) {
|
|
1843
1843
|
var l = {};
|
|
1844
1844
|
l.minEnd = 1e6, l.maxStart = -1, this.scrollLabels.push(l);
|
|
@@ -1858,21 +1858,21 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1858
1858
|
var k = x.boxBottom;
|
|
1859
1859
|
D.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, D.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - D.part.top, this.cellHeight - 1) + 1, D.part.barTop = Math.max(C - D.part.top - 1, 0), D.part.barHeight = Math.max(P - C - 2, 1);
|
|
1860
1860
|
var p = D.part.top, v = D.part.top + D.part.height;
|
|
1861
|
-
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.
|
|
1861
|
+
p > l.maxStart && (l.maxStart = p), v < l.minEnd && (l.minEnd = v), p < this.minStart && (this.minStart = p), v > this.maxEnd && (this.maxEnd = v), d.events.push(D), "function" == typeof this.onBeforeEventRender && (D.cache = this.ob.events[m]), D.part.start.getTime() === y && D.part.end.getTime() === g && (a[m] = !0);
|
|
1862
1862
|
}
|
|
1863
1863
|
}
|
|
1864
1864
|
}
|
|
1865
1865
|
}
|
|
1866
1866
|
for (var n = 0; n < this.va.length; n++) {
|
|
1867
1867
|
var d = this.va[n];
|
|
1868
|
-
d.events.sort(this.
|
|
1868
|
+
d.events.sort(this.qb);
|
|
1869
1869
|
for (var m = 0; m < d.events.length; m++) {
|
|
1870
1870
|
var o = d.events[m];
|
|
1871
1871
|
d.putIntoBlock(o);
|
|
1872
1872
|
}
|
|
1873
1873
|
for (var m = 0; m < d.blocks.length; m++) {
|
|
1874
1874
|
var _ = d.blocks[m];
|
|
1875
|
-
_.events.sort(this.
|
|
1875
|
+
_.events.sort(this.qb);
|
|
1876
1876
|
for (var S = 0; S < _.events.length; S++) {
|
|
1877
1877
|
var o = _.events[S];
|
|
1878
1878
|
_.putIntoLine(o);
|
|
@@ -1880,7 +1880,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1880
1880
|
}
|
|
1881
1881
|
}
|
|
1882
1882
|
}
|
|
1883
|
-
}, this.
|
|
1883
|
+
}, this.qb = function (e, t) {
|
|
1884
1884
|
if (!(e && t && e.start && t.start))
|
|
1885
1885
|
return 0;
|
|
1886
1886
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -1894,30 +1894,30 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1894
1894
|
var o = 18e5, r = a - i, s = r % o, l = r - s, d = l + o;
|
|
1895
1895
|
0 === s && (d = l);
|
|
1896
1896
|
var c = {};
|
|
1897
|
-
return c.cut = !1, c.top = this.
|
|
1898
|
-
}, this.
|
|
1899
|
-
if (r.nav.scroll) {
|
|
1897
|
+
return c.cut = !1, c.top = this.rb(r), c.boxTop = this.rb(l), c.boxBottom = this.rb(d), this.cache.pixels[a + "_" + i] = c, c;
|
|
1898
|
+
}, this.rb = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.kb = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.fa = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.ja = function () { var e = this.Oa(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { r.sa.scope && r.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.eb = function () {
|
|
1899
|
+
if (r.nav.scroll && r.sb()) {
|
|
1900
1900
|
var e = r.nav.scroll.scrollTop, t = e / (2 * r.cellHeight);
|
|
1901
|
-
r.
|
|
1901
|
+
r.tb.scrollHour = t;
|
|
1902
1902
|
}
|
|
1903
|
-
}, this.
|
|
1904
|
-
for (var e = this.
|
|
1903
|
+
}, this.db = function () { var e = 0; e = "number" == typeof r.tb.scrollHour ? 2 * r.cellHeight * r.tb.scrollHour : "Auto" === r.initScrollPos ? "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0 : this.initScrollPos; var t = r.nav.top; "none" === t.style.display ? (t.style.display = "", r.nav.scroll.scrollTop = e, t.style.display = "none") : r.nav.scroll.scrollTop = e; }, this.getScrollY = function () { return r.nav.scroll.scrollTop; }, this.setScrollY = function (e) { r.nav.scroll.scrollTop = e, r.eb(); }, this.ub = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof r.events.list || !r.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { r.visible = !0, r.nav.top.style.display = "", this.fb(); }, this.hide = function () { r.visible = !1, r.nav.top.style.display = "none"; }, this.vb = function () { this.kb(), this.da(), this.Na(), this.ga(), this.ha(), this.fb(), this.cb(), this.gb(), t.register(this), this.wb(), this.S("Init"); }, this.tb = {}, this.xb = function () { this.tb.themes = [], this.tb.themes.push(this.theme || this.cssClassPrefix); }, this.yb = function () {
|
|
1904
|
+
for (var e = this.tb.themes, t = 0; t < e.length; t++) {
|
|
1905
1905
|
var i = e[t];
|
|
1906
1906
|
DayPilot.Util.removeClass(this.nav.top, i + "_main");
|
|
1907
1907
|
}
|
|
1908
|
-
this.
|
|
1909
|
-
}, this.
|
|
1908
|
+
this.tb.themes = [];
|
|
1909
|
+
}, this.zb = function () {
|
|
1910
1910
|
if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
|
|
1911
1911
|
var e = {};
|
|
1912
1912
|
e.isCallBack = !1, this.onAfterRender(e);
|
|
1913
1913
|
}
|
|
1914
|
-
}, this.
|
|
1915
|
-
if ("function" == typeof this.onInit && !this.
|
|
1916
|
-
this.
|
|
1914
|
+
}, this.Ab = function () {
|
|
1915
|
+
if ("function" == typeof this.onInit && !this.Bb) {
|
|
1916
|
+
this.Bb = !0;
|
|
1917
1917
|
var e = {};
|
|
1918
1918
|
this.onInit(e);
|
|
1919
1919
|
}
|
|
1920
|
-
}, this.
|
|
1920
|
+
}, this.sb = function () { var e = r.nav.top; return !!e && (e.offsetWidth > 0 && e.offsetHeight > 0); }, this.wb = function () { var e = r.sb; e() || (r.V = setInterval(function () { e() && (r.cb(), r.fb(), clearInterval(r.V)); }, 100)); }, this.Ra = function (e, t) { return r.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ha = {}, this.Ha.Ga = null, this.Ha.Cb = function (e, t, i) {
|
|
1921
1921
|
var a = r.Ha.Ga;
|
|
1922
1922
|
if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
1923
1923
|
var n = a.createVNode(e, i);
|
|
@@ -1929,7 +1929,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1929
1929
|
var a = e;
|
|
1930
1930
|
DayPilot.isArray(e) && (a = i.h("div", null, e)), i.render(a, t);
|
|
1931
1931
|
}
|
|
1932
|
-
}, this.Ha.Ja = function (e) { var t = r.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.jb, this.internal.xssTextHtml = r.Ra, this.internal.enableVue = function (e) { r.Ha.Ga = e; }, this.internal.vueRef = function () { return r.Ha.Ga; }, this.internal.vueRendering = function () { return r.Ha.Ia; }, this.init = function () { this.
|
|
1932
|
+
}, this.Ha.Ja = function (e) { var t = r.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = r.jb, this.internal.xssTextHtml = r.Ra, this.internal.enableVue = function (e) { r.Ha.Ga = e; }, this.internal.vueRef = function () { return r.Ha.Ga; }, this.internal.vueRendering = function () { return r.Ha.Ia; }, this.init = function () { this.nb(); var e = this.ub(); return this.xb(), e ? void this.vb() : (this.kb(), this.da(), this.ea(), this.Na(), this.ga(), this.ha(), this.t(), this.fb(), this.cb(), this.gb(), t.register(this), this.events && (this.fa(), this.ka()), this.zb(), this.Ab(), this.wb(), this.Ba = !0, this); }, this.Init = this.init, this.jb(n);
|
|
1933
1933
|
}, 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) {
|
|
1934
1934
|
e.fn.daypilotCalendar = function (e) {
|
|
1935
1935
|
var t = null, i = this.each(function () {
|
|
@@ -1961,7 +1961,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1961
1961
|
l.call(t, d, function (e) {
|
|
1962
1962
|
for (var t in e)
|
|
1963
1963
|
n[t] = e[t];
|
|
1964
|
-
n.update(), n.
|
|
1964
|
+
n.update(), n.Ab();
|
|
1965
1965
|
}, !0), l.call(t, c, function (e) { n.events.list = e, n.update(); }, !0);
|
|
1966
1966
|
} };
|
|
1967
1967
|
}]);
|
|
@@ -1971,13 +1971,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1971
1971
|
var DayPilot = {};
|
|
1972
1972
|
if (function () {
|
|
1973
1973
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1974
|
-
this.v = "2024.4.
|
|
1974
|
+
this.v = "2024.4.622-lite";
|
|
1975
1975
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1976
1976
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1977
1977
|
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.aa.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
1978
1978
|
for (var t in e)
|
|
1979
1979
|
this[t] = e[t];
|
|
1980
|
-
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Db(); this.resetTarget && !e ? this.Eb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Db(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.
|
|
1980
|
+
}, this.init = function () { this.date = new DayPilot.Date(this.date); var e = this.Db(); this.resetTarget && !e ? this.Eb(this.date) : this.resetTarget || (i.date = e); var t = this.C(); return t && t.addEventListener("input", function () { i.date = i.Db(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.sb && (this.sb = !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.Eb(this.date); }, this.Db = function () {
|
|
1981
1981
|
var e = this.C();
|
|
1982
1982
|
if (!e)
|
|
1983
1983
|
return this.date;
|
|
@@ -1996,8 +1996,8 @@ if (function () {
|
|
|
1996
1996
|
var a = e.toString(i.pattern, i.locale);
|
|
1997
1997
|
"INPUT" === t.tagName ? t.value = a : t.innerHTML = a;
|
|
1998
1998
|
}
|
|
1999
|
-
}, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.
|
|
2000
|
-
if (!this.
|
|
1999
|
+
}, this.aa = {}, this.aa.locale = function () { return DayPilot.Locale.find(i.locale); }, this.C = function () { var e = this.target; return e && e.nodeType && 1 === e.nodeType ? e : document.getElementById(e); }, Object.defineProperty(this, "visible", { get: function () { return i.sb; } }), this.show = function () {
|
|
2000
|
+
if (!this.sb) {
|
|
2001
2001
|
var e = this.C(), a = this.navigator, a = new DayPilot.Navigator(t);
|
|
2002
2002
|
a.api = 2, a.cssOnly = !0, a.theme = i.theme, a.weekStarts = "Auto", a.locale = i.locale, a.onTimeRangeSelected = function (e) { i.date = e.start; var t = e.start.addTime(a.Fb), n = t.toString(i.pattern, i.locale), e = {}; e.start = t, e.date = t, e.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(e), e.preventDefault.value) || (i.Eb(n), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(e)); }, this.navigator = a;
|
|
2003
2003
|
var n = DayPilot.abs(e), o = e.offsetHeight, r = i.targetAlignment, s = document.createElement("div");
|
|
@@ -2009,7 +2009,7 @@ if (function () {
|
|
|
2009
2009
|
var c = n.x + e.offsetWidth - a.nav.top.offsetWidth;
|
|
2010
2010
|
s.style.left = c + "px";
|
|
2011
2011
|
}
|
|
2012
|
-
this.
|
|
2012
|
+
this.sb = !0, this.onShow && this.onShow();
|
|
2013
2013
|
}
|
|
2014
2014
|
}, this.prepare(), this.init();
|
|
2015
2015
|
});
|
|
@@ -2021,7 +2021,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2021
2021
|
var e = function () { }, t = {};
|
|
2022
2022
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
2023
2023
|
var a = this, n = null;
|
|
2024
|
-
this.v = "2024.4.
|
|
2024
|
+
this.v = "2024.4.622-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.Gb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
2025
2025
|
o = o || {};
|
|
2026
2026
|
var r = null;
|
|
2027
2027
|
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.Gb.submenu = null, null !== t.mouse) {
|
|
@@ -2151,7 +2151,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2151
2151
|
d.onclick = S, d.ontouchend = S, d.onmousedown = function (e) { e = e || window.event, e.cancelBubble = !0, e.stopPropagation && e.stopPropagation(); }, d.oncontextmenu = function () { return !1; }, document.body.appendChild(d), a.Gb.visible = !0, a.Gb.source = i, d.style.display = "";
|
|
2152
2152
|
var M = d.offsetHeight, H = d.offsetWidth;
|
|
2153
2153
|
d.style.display = "none";
|
|
2154
|
-
var
|
|
2154
|
+
var T = document.documentElement.clientHeight, A = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
|
|
2155
2155
|
if (function () {
|
|
2156
2156
|
var e = o.initiator;
|
|
2157
2157
|
if (e) {
|
|
@@ -2163,23 +2163,23 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2163
2163
|
}
|
|
2164
2164
|
}(), function () {
|
|
2165
2165
|
var e = "number" == typeof o.x ? o.x : t.mouse.x + 1, i = "number" == typeof o.y ? o.y : t.mouse.y + 1, a = document.body.scrollTop || document.documentElement.scrollTop, n = document.body.scrollLeft || document.documentElement.scrollLeft;
|
|
2166
|
-
if (i - a >
|
|
2167
|
-
var r = i - a - (
|
|
2166
|
+
if (i - a > T - M && 0 !== T) {
|
|
2167
|
+
var r = i - a - (T - M) + E;
|
|
2168
2168
|
d.style.top = i - r + "px";
|
|
2169
2169
|
}
|
|
2170
2170
|
else
|
|
2171
2171
|
d.style.top = i + "px";
|
|
2172
|
-
if ("right" === o.align && (e -= H), e - n >
|
|
2173
|
-
var s = e - n - (
|
|
2172
|
+
if ("right" === o.align && (e -= H), e - n > A - H && 0 !== A) {
|
|
2173
|
+
var s = e - n - (A - H) + E;
|
|
2174
2174
|
d.style.left = e - s + "px";
|
|
2175
2175
|
}
|
|
2176
2176
|
else
|
|
2177
2177
|
d.style.left = e + "px";
|
|
2178
2178
|
}(), o.parentLink) {
|
|
2179
2179
|
var N = o.parentLink, I = parseInt(new DayPilot.StyleReader(d).get("border-top-width")), R = DayPilot.abs(o.parentLink.parentNode), B = R.x + N.offsetWidth, z = R.y - I;
|
|
2180
|
-
B + H >
|
|
2180
|
+
B + H > A && (B = Math.max(0, R.x - H));
|
|
2181
2181
|
var O = document.body.scrollTop + document.documentElement.scrollTop;
|
|
2182
|
-
z + M - O >
|
|
2182
|
+
z + M - O > T && (z = Math.max(0, T - M + O)), d.style.left = B + "px", d.style.top = z + "px";
|
|
2183
2183
|
}
|
|
2184
2184
|
d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
|
|
2185
2185
|
}
|
|
@@ -2976,9 +2976,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2976
2976
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2977
2977
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
2978
2978
|
e.Month = function (i, a) {
|
|
2979
|
-
this.v = "2024.4.
|
|
2979
|
+
this.v = "2024.4.622-lite", this.nav = {};
|
|
2980
2980
|
var n = this;
|
|
2981
|
-
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.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.O = !1, this.U = 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.W(), n.Tc(), n.ea(), "Full" === e.UpdateType && (n.Uc(), n.Vc()), n.ja(), n.show(), n.ka(), 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) {
|
|
2981
|
+
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.O = !1, this.U = 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.W(), n.Tc(), n.ea(), "Full" === e.UpdateType && (n.Uc(), n.Vc()), n.ja(), n.show(), n.ka(), 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) {
|
|
2982
2982
|
var t = null;
|
|
2983
2983
|
if (e instanceof DayPilot.Event)
|
|
2984
2984
|
t = e.data;
|
|
@@ -3053,7 +3053,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3053
3053
|
var r = e, s = "start=" + n.visibleStart().toString() + "&end=" + n.visibleEnd().toString();
|
|
3054
3054
|
r += r.indexOf("?") > -1 ? "&" + s : "?" + s, DayPilot.Http.ajax({ "method": "GET", "url": r, "success": o, "error": a });
|
|
3055
3055
|
}
|
|
3056
|
-
}, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.
|
|
3056
|
+
}, this.events.forRange = function (e, t) { e = new DayPilot.Date(e), t = new DayPilot.Date(t); var i = (n.events.list || []).map(function (e) { return new DayPilot.Event(e); }); return i.sort(n.qb), i.filter(function (i) { var a = i.start(), n = i.end(); return a === n && a === e || DayPilot.Util.overlaps(e, t, a, n); }); }, this.update = function (e) {
|
|
3057
3057
|
if (n.jb(e), this.Ba) {
|
|
3058
3058
|
if (n.O)
|
|
3059
3059
|
throw new DayPilot.Exception("You are trying to update a DayPilot.Month instance that has been disposed.");
|
|
@@ -3061,10 +3061,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3061
3061
|
n.W(), n.Tc(), n.ea(), n.Uc(), n.Vc(), n.ja(), n.t(), n.ka(), this.visible ? this.show() : this.hide();
|
|
3062
3062
|
}
|
|
3063
3063
|
}
|
|
3064
|
-
}, this.
|
|
3064
|
+
}, this.lb = null, this.jb = function (e) {
|
|
3065
3065
|
if (e) {
|
|
3066
3066
|
var t = { "events": { "preInit": function () { var e = this.data || []; DayPilot.isArray(e.list) ? n.events.list = e.list : n.events.list = e; } } };
|
|
3067
|
-
this.
|
|
3067
|
+
this.lb = t;
|
|
3068
3068
|
for (var i in e)
|
|
3069
3069
|
if (t[i]) {
|
|
3070
3070
|
var a = t[i];
|
|
@@ -3073,14 +3073,14 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3073
3073
|
else
|
|
3074
3074
|
n[i] = e[i];
|
|
3075
3075
|
}
|
|
3076
|
-
}, this.
|
|
3077
|
-
var e = this.
|
|
3076
|
+
}, this.mb = function () {
|
|
3077
|
+
var e = this.lb;
|
|
3078
3078
|
for (var t in e) {
|
|
3079
3079
|
var i = e[t];
|
|
3080
3080
|
i.postInit && i.postInit();
|
|
3081
3081
|
}
|
|
3082
|
-
}, this.
|
|
3083
|
-
var t = this.
|
|
3082
|
+
}, this.ob = {}, this.ob.events = [], this.pb = function (e) {
|
|
3083
|
+
var t = this.ob.events, i = this.events.list[e], a = {};
|
|
3084
3084
|
for (var o in i)
|
|
3085
3085
|
a[o] = i[o];
|
|
3086
3086
|
if ("function" == typeof this.onBeforeEventRender) {
|
|
@@ -3095,7 +3095,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3095
3095
|
throw new DayPilot.Exception("DayPilot.Month.events.list expects an array object. You supplied: " + typeof e);
|
|
3096
3096
|
if ("function" == typeof this.onBeforeEventRender)
|
|
3097
3097
|
for (var t = 0; t < e.length; t++)
|
|
3098
|
-
this.
|
|
3098
|
+
this.pb(t);
|
|
3099
3099
|
for (var i = 0; i < e.length; i++) {
|
|
3100
3100
|
var a = e[i];
|
|
3101
3101
|
if ("object" != typeof a)
|
|
@@ -3108,12 +3108,12 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3108
3108
|
if (!(n.getTime() > o.getTime()))
|
|
3109
3109
|
for (var t = 0; t < this.rows.length; t++) {
|
|
3110
3110
|
var r = this.rows[t], s = new DayPilot.Event(a, this);
|
|
3111
|
-
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.
|
|
3111
|
+
r.belongsHere(s) && (r.events.push(s), "function" == typeof this.onBeforeEventRender && (s.cache = this.ob.events[i]));
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
3114
|
for (var l = 0; l < this.rows.length; l++) {
|
|
3115
3115
|
var r = this.rows[l];
|
|
3116
|
-
r.events.sort(this.
|
|
3116
|
+
r.events.sort(this.qb);
|
|
3117
3117
|
for (var d = 0; d < this.rows[l].events.length; d++) {
|
|
3118
3118
|
var c = r.events[d], u = r.getStartColumn(c), h = r.getWidth(c);
|
|
3119
3119
|
r.putIntoLine(c, u, h, l);
|
|
@@ -3142,7 +3142,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3142
3142
|
for (var t = this.rows[e], i = 0; i < t.lines.length; i++)
|
|
3143
3143
|
for (var a = t.lines[i], n = 0; n < a.length; n++)
|
|
3144
3144
|
this.Ka(a[n]);
|
|
3145
|
-
}, this.
|
|
3145
|
+
}, this.qb = function (e, t) {
|
|
3146
3146
|
if (!(e && t && e.start && t.start))
|
|
3147
3147
|
return 0;
|
|
3148
3148
|
var i = e.start().getTime() - t.start().getTime();
|
|
@@ -3162,11 +3162,13 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3162
3162
|
t -= c;
|
|
3163
3163
|
i < 0 && (i = 0, t = 0);
|
|
3164
3164
|
var u = null;
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
var y = document.createElement("div");
|
|
3169
|
-
y.setAttribute("unselectable", "on"),
|
|
3165
|
+
e.resizingEvent ? u = "w-resize" : e.movingEvent && (u = "move"), this.nav.top.style.cursor = u;
|
|
3166
|
+
var h = n.eventBorderRadius;
|
|
3167
|
+
for ("number" == typeof h && (h += "px"); l > 0 && i < this.rows.length;) {
|
|
3168
|
+
var f = Math.min(this.getColCount() - t, l), m = this.rows[i], p = this.getRowTop(i), v = m.getHeight(), y = document.createElement("div");
|
|
3169
|
+
y.setAttribute("unselectable", "on"), y.style.position = "absolute", y.style.left = this.getCellWidth() * t + "%", y.style.width = this.getCellWidth() * f + "%", y.style.top = p + "px", y.style.height = v + "px", y.style.cursor = u, y.classList.add(n.K("_shadow"));
|
|
3170
|
+
var g = document.createElement("div");
|
|
3171
|
+
g.setAttribute("unselectable", "on"), y.appendChild(g), g.style.position = "absolute", g.style.top = "0px", g.style.right = "0px", g.style.left = "0px", g.style.bottom = "0px", g.classList.add(n.K("_shadow_inner")), h && (l === o && (y.style.borderTopLeftRadius = h, y.style.borderBottomLeftRadius = h, g.style.borderTopLeftRadius = h, g.style.borderBottomLeftRadius = h), l <= f && (y.style.borderTopRightRadius = h, y.style.borderBottomRightRadius = h, g.style.borderTopRightRadius = h, g.style.borderBottomRightRadius = h)), this.nav.top.appendChild(y), this.shadow.list.push(y), l -= f + 7 - this.getColCount(), t = 0, i++;
|
|
3170
3172
|
}
|
|
3171
3173
|
}, this.clearShadow = function () {
|
|
3172
3174
|
if (this.shadow) {
|
|
@@ -3179,69 +3181,72 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3179
3181
|
i += this.rows[a].getHeight();
|
|
3180
3182
|
return i += this.cellHeaderHeight, i += t * this.lineHeight();
|
|
3181
3183
|
}, this.getDateFromCell = function (e, t) { return this.firstDate.addDays(7 * t + e); }, this.Ka = function (i) {
|
|
3182
|
-
var a = i.cache || i.data, o =
|
|
3183
|
-
|
|
3184
|
+
var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
|
|
3185
|
+
"number" == typeof o && (o += "px");
|
|
3186
|
+
var r = i.part.row, s = i.part.line, l = i.part.colStart, d = i.part.colWidth, c = this.getCellWidth() * l, u = this.getCellWidth() * d, h = this.getEventTop(r, s), f = document.createElement("div");
|
|
3187
|
+
f.setAttribute("unselectable", "on"), f.style.height = this.eventHeight + "px", f.style.overflow = "hidden", f.className = this.K("_event"), a.cssClass && DayPilot.Util.addClass(f, a.cssClass), i.part.startsHere || DayPilot.Util.addClass(f, this.K("_event_continueleft")), i.part.endsHere || DayPilot.Util.addClass(f, this.K("_event_continueright")), f.event = i, f.style.width = u + "%", f.style.position = "absolute", f.style.left = c + "%", f.style.top = h + "px", this.showToolTip && i.client.toolTip() && (f.title = i.client.toolTip()), f.onclick = n.ra, f.oncontextmenu = n.Xc, f.onmousedown = function (t) {
|
|
3184
3188
|
t = t || window.event;
|
|
3185
3189
|
var a = t.which || t.button;
|
|
3186
3190
|
if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
|
|
3187
3191
|
if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
|
|
3188
|
-
var
|
|
3189
|
-
|
|
3192
|
+
var o = {};
|
|
3193
|
+
o.start = {}, o.start.x = l, o.start.y = r, o.event = f.event, o.width = DayPilot.DateUtil.daysSpan(o.event.start(), o.event.end()) + 1,
|
|
3194
|
+
o.direction = this.style.cursor, e.resizingEvent = o;
|
|
3190
3195
|
}
|
|
3191
3196
|
else if ("move" === this.style.cursor || i.client.moveEnabled()) {
|
|
3192
3197
|
n.clearShadow();
|
|
3193
3198
|
var c = DayPilot.mo3(n.nav.top, t);
|
|
3194
3199
|
if (!c)
|
|
3195
3200
|
return;
|
|
3196
|
-
var u = n.getCellBelowPoint(c.x, c.y),
|
|
3197
|
-
|
|
3201
|
+
var u = n.getCellBelowPoint(c.x, c.y), h = DayPilot.DateUtil.daysDiff(i.start(), n.rows[r].start), m = 7 * u.y + u.x - (7 * r + l);
|
|
3202
|
+
h && (m += h);
|
|
3198
3203
|
var p = {};
|
|
3199
|
-
p.start = {}, p.start.x =
|
|
3204
|
+
p.start = {}, p.start.x = l, p.start.y = r, p.start.line = s, p.offset = n.eventMoveToPosition ? 0 : m, p.colWidth = d, p.event = f.event, p.coords = c, e.movingEvent = p;
|
|
3200
3205
|
}
|
|
3201
|
-
},
|
|
3206
|
+
}, f.onmousemove = function (t) {
|
|
3202
3207
|
if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
|
|
3203
|
-
var a = DayPilot.mo3(
|
|
3208
|
+
var a = DayPilot.mo3(f, t);
|
|
3204
3209
|
if (a) {
|
|
3205
|
-
|
|
3210
|
+
f.deleteIcon && (f.deleteIcon.style.display = "");
|
|
3206
3211
|
var n = 6;
|
|
3207
|
-
a.x <= n && i.client.resizeEnabled() ? i.part.startsHere ? (
|
|
3212
|
+
a.x <= n && i.client.resizeEnabled() ? i.part.startsHere ? (f.style.cursor = "w-resize", f.dpBorder = "left") : f.style.cursor = "not-allowed" : f.clientWidth - a.x <= n && i.client.resizeEnabled() ? i.part.endsHere ? (f.style.cursor = "e-resize", f.dpBorder = "right") : f.style.cursor = "not-allowed" : i.client.clickEnabled() ? f.style.cursor = "pointer" : f.style.cursor = "default";
|
|
3208
3213
|
}
|
|
3209
3214
|
}
|
|
3210
|
-
},
|
|
3211
|
-
var
|
|
3212
|
-
if (
|
|
3213
|
-
var m = document.createElement("div");
|
|
3214
|
-
m.setAttribute("unselectable", "on"), m.className = this.K("_event_bar"), m.style.position = "absolute";
|
|
3215
|
+
}, f.onmouseleave = function (e) { f.deleteIcon && (f.deleteIcon.style.display = "none"), f.style.cursor = ""; }, f.onmouseenter = function (e) { f.deleteIcon && (f.deleteIcon.style.display = ""); };
|
|
3216
|
+
var m = document.createElement("div");
|
|
3217
|
+
if (m.setAttribute("unselectable", "on"), m.className = this.K("_event_inner"), "darker" === a.borderColor && a.backColor ? m.style.borderColor = DayPilot.ColorUtil.darker(a.backColor, 2) : m.style.borderColor = a.borderColor, a.backColor && (m.style.background = a.backColor), a.fontColor && (m.style.color = a.fontColor), o && (f.style.borderRadius = o, m.style.borderRadius = o), f.appendChild(m), i.client.barVisible()) {
|
|
3215
3218
|
var p = document.createElement("div");
|
|
3216
|
-
p.setAttribute("unselectable", "on"), p.className = this.K("
|
|
3219
|
+
p.setAttribute("unselectable", "on"), p.className = this.K("_event_bar"), p.style.position = "absolute";
|
|
3220
|
+
var v = document.createElement("div");
|
|
3221
|
+
v.setAttribute("unselectable", "on"), v.className = this.K("_event_bar_inner"), v.style.top = "0%", v.style.height = "100%", a.barColor && (v.style.backgroundColor = a.barColor), p.appendChild(v), f.appendChild(p);
|
|
3217
3222
|
}
|
|
3218
3223
|
if (i.client.deleteEnabled()) {
|
|
3219
|
-
var
|
|
3220
|
-
|
|
3224
|
+
var y = Math.floor(n.eventHeight / 2 - 9), g = document.createElement("div");
|
|
3225
|
+
g.style.position = "absolute", g.style.right = "2px", g.style.top = y + "px", g.style.width = "18px", g.style.height = "18px", g.className = n.K("_event_delete"), g.onmousedown = function (e) { e.stopPropagation(); }, g.onclick = function (e) { e.stopPropagation(); var t = this.parentNode.event; t && n.ua(t); }, g.style.display = "none", f.deleteIcon = g, f.appendChild(g);
|
|
3221
3226
|
}
|
|
3222
|
-
var
|
|
3223
|
-
if (DayPilot.Areas.attach(
|
|
3224
|
-
var
|
|
3225
|
-
|
|
3227
|
+
var b = a.areas ? DayPilot.Areas.copy(a.areas) : [];
|
|
3228
|
+
if (DayPilot.Areas.attach(f, i, { "areas": b }), "function" == typeof n.onAfterEventRender) {
|
|
3229
|
+
var D = {};
|
|
3230
|
+
D.e = f.event, D.div = f, n.onAfterEventRender(D);
|
|
3226
3231
|
}
|
|
3227
3232
|
!function () {
|
|
3228
3233
|
var e = {};
|
|
3229
|
-
if (e.control = n, e.e =
|
|
3230
|
-
var
|
|
3231
|
-
if (
|
|
3232
|
-
e.Fa =
|
|
3234
|
+
if (e.control = n, e.e = i, e.element = null, f.domArgs = e, "function" == typeof n.onBeforeEventDomAdd && n.onBeforeEventDomAdd(e), e.element) {
|
|
3235
|
+
var a = m;
|
|
3236
|
+
if (a) {
|
|
3237
|
+
e.Fa = a;
|
|
3233
3238
|
if (t(e.element)) {
|
|
3234
3239
|
if (!n.Ha.Ga)
|
|
3235
3240
|
throw new DayPilot.Exception("Can't reach Vue");
|
|
3236
|
-
n.Ha.Ia = !0, n.Ha.La(e.element,
|
|
3241
|
+
n.Ha.Ia = !0, n.Ha.La(e.element, a, { "style": { "flexGrow": 1 } }), n.Ha.Ia = !1;
|
|
3237
3242
|
}
|
|
3238
3243
|
else
|
|
3239
|
-
|
|
3244
|
+
a.appendChild(e.element);
|
|
3240
3245
|
}
|
|
3241
3246
|
}
|
|
3242
3247
|
else
|
|
3243
|
-
|
|
3244
|
-
}(), this.elements.events.push(
|
|
3248
|
+
m.innerHTML = i.client.innerHTML();
|
|
3249
|
+
}(), this.elements.events.push(f), this.nav.events.appendChild(f);
|
|
3245
3250
|
}, this.lastVisibleDayOfMonth = function () { return this.startDate.lastDayOfMonth(); }, this.Tc = function () {
|
|
3246
3251
|
"string" == typeof this.startDate && (this.startDate = new DayPilot.Date(this.startDate)), this.startDate = this.startDate.firstDayOfMonth(), this.firstDate = this.startDate.firstDayOfWeek(this.getWeekStart());
|
|
3247
3252
|
var e, t = (this.startDate, this.lastVisibleDayOfMonth()), i = DayPilot.DateUtil.daysDiff(this.firstDate, t) + 1;
|
|
@@ -3572,7 +3577,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3572
3577
|
}
|
|
3573
3578
|
}, this.sa = {}, this.sa.scope = null, this.sa.notify = function () { n.sa.scope && n.sa.scope["$apply"](); }, this.sa.apply = function (e) { e(); }, this.clearSelection = function () { n.clearShadow(); }, this.commandCallBack = function (e, t) { var i = {}; i.command = e, this.S("Command", t, i); }, this.isWeekend = function (e) { return e = new DayPilot.Date(e), 0 === e.dayOfWeek() || 6 === e.dayOfWeek(); }, this.aa = {}, this.aa.locale = function () { var e = DayPilot.Locale.find(n.locale); return e ? e : DayPilot.Locale.US; }, this.aa.ba = function () { return "Disabled" !== n.xssProtection; };
|
|
3574
3579
|
var o = this.aa;
|
|
3575
|
-
this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.O || (e.O = !0, e.Uc(), e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.gb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.
|
|
3580
|
+
this.debug = function (e, t) { this.debuggingEnabled && (n.debugMessages || (n.debugMessages = []), n.debugMessages.push(e), "undefined" != typeof console && console.log(e)); }, this.dispose = function () { var e = n; e.O || (e.O = !0, e.Uc(), e.W(), e.nav.top.removeAttribute("style"), e.nav.top.removeAttribute("class"), e.nav.top.innerHTML = "", e.nav.top.dp = null, e.nav.top.onmousemove = null, e.nav.top = null); }, this.disposed = function () { return this.O; }, this.gb = function () { e.globalHandlers || (e.globalHandlers = !0, DayPilot.re(document, "mouseup", e.gMouseUp)); }, this.loadFromServer = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof n.events.list || !n.events.list); }, this.t = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { n.visible = !0, n.nav.top.style.display = ""; }, this.hide = function () { n.visible = !1, n.nav.top.style.display = "none"; }, this.nb = function () {
|
|
3576
3581
|
if (this.id && this.id.tagName)
|
|
3577
3582
|
this.nav.top = this.id;
|
|
3578
3583
|
else {
|
|
@@ -3581,19 +3586,19 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3581
3586
|
if (this.nav.top = document.getElementById(this.id), !this.nav.top)
|
|
3582
3587
|
throw "DayPilot.Month: The placeholder element not found: '" + id + "'.";
|
|
3583
3588
|
}
|
|
3584
|
-
}, this.
|
|
3589
|
+
}, this.vb = function () { this.Tc(), this.Na(), this.Vc(), this.gb(), this.S("Init"); }, this.Ra = function (e, t) { return n.aa.ba() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.Ha = {}, this.Ha.Ga = null, this.Ha.Cb = function (e, t, i) {
|
|
3585
3590
|
var a = n.Ha.Ga;
|
|
3586
3591
|
if ("function" == typeof a.createVNode && "function" == typeof a.render) {
|
|
3587
3592
|
var o = a.createVNode(e, i);
|
|
3588
3593
|
a.render(o, t);
|
|
3589
3594
|
}
|
|
3590
|
-
}, this.Ha.La = function (e, t) {
|
|
3591
|
-
var
|
|
3592
|
-
if ("function" == typeof
|
|
3593
|
-
var
|
|
3594
|
-
DayPilot.isArray(e) && (
|
|
3595
|
+
}, this.Ha.La = function (e, t, i) {
|
|
3596
|
+
var a = n.Ha.Ga;
|
|
3597
|
+
if ("function" == typeof a.render) {
|
|
3598
|
+
var o = e;
|
|
3599
|
+
DayPilot.isArray(e) && (o = a.h("div", i, e)), a.render(o, t);
|
|
3595
3600
|
}
|
|
3596
|
-
}, this.Ha.Ja = function (e) { var t = n.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.jb, this.internal.xssTextHtml = n.Ra, this.internal.enableVue = function (e) { n.Ha.Ga = e; }, this.internal.vueRef = function () { return n.Ha.Ga; }, this.internal.vueRendering = function () { return n.Ha.Ia; }, this.init = function () { return this.
|
|
3601
|
+
}, this.Ha.Ja = function (e) { var t = n.Ha.Ga; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.loadOptions = this.jb, this.internal.xssTextHtml = n.Ra, this.internal.enableVue = function (e) { n.Ha.Ga = e; }, this.internal.vueRef = function () { return n.Ha.Ga; }, this.internal.vueRendering = function () { return n.Ha.Ia; }, this.init = function () { return this.nb(), this.loadFromServer() ? void this.vb() : (this.Tc(), this.ea(), this.Na(), this.Vc(), this.t(), this.ka(), this.gb(), this.fireAfterRenderDetached(null, !1), this.Ba = !0, this); }, this.Init = this.init, Object.defineProperty(this, "durationBarVisible", { get: function () { return n.eventBarVisible; } }), this.jb(a);
|
|
3597
3602
|
}, e.gMouseUp = function (t) {
|
|
3598
3603
|
if (e.movingEvent) {
|
|
3599
3604
|
var i = e.movingEvent;
|
|
@@ -3674,9 +3679,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3674
3679
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3675
3680
|
var e = DayPilot.Util.isVueVNode;
|
|
3676
3681
|
DayPilot.Navigator = function (t, i) {
|
|
3677
|
-
this.v = "2024.4.
|
|
3682
|
+
this.v = "2024.4.622-lite";
|
|
3678
3683
|
var a = this;
|
|
3679
|
-
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.
|
|
3684
|
+
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.ob = {}, this._c = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.ad() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.bd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.ad() || (this.root.style.width = 7 * r.cellWidth() + this.bd() + "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.qa = function () { return 2 === a.api; }, this.Uc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.cd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.ed = function () {
|
|
3680
3685
|
if (!r.ad())
|
|
3681
3686
|
return null;
|
|
3682
3687
|
var e = 7;
|
|
@@ -3729,29 +3734,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3729
3734
|
var S = document.createElement("div");
|
|
3730
3735
|
S.style.position = "absolute", S.style.left = a.hd(M + C), S.style.right = a.hd(M + C), S.style.top = this.titleHeight + "px", S.style.width = a.hd(), S.style.height = this.dayHeaderHeight + "px", S.style.lineHeight = this.dayHeaderHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_dayheader"), S.innerHTML = "<span>" + this.ld(M) + "</span>", y.appendChild(S), n.days.push(S);
|
|
3731
3736
|
for (var P = 0; P < f; P++) {
|
|
3732
|
-
var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(),
|
|
3737
|
+
var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(), T = k.firstDayOfMonth() === o, A = k < o, E = k >= o.addMonths(1);
|
|
3733
3738
|
if ("month" === this.nd())
|
|
3734
|
-
H = H &&
|
|
3739
|
+
H = H && T;
|
|
3735
3740
|
else if ("day" === this.nd())
|
|
3736
|
-
H = H && (
|
|
3741
|
+
H = H && (T || s && A || l && E);
|
|
3737
3742
|
else if ("week" === this.nd()) {
|
|
3738
3743
|
var N = k.firstDayOfMonth() === o;
|
|
3739
|
-
H = H && (N || s &&
|
|
3744
|
+
H = H && (N || s && A || l && E);
|
|
3740
3745
|
}
|
|
3741
3746
|
var I = document.createElement("div");
|
|
3742
3747
|
n.cells[M][P] = I;
|
|
3743
3748
|
var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
|
|
3744
|
-
I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth =
|
|
3749
|
+
I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth = T, I.isNextMonth = E, I.isPrevMonth = A, I.showBefore = s, I.showAfter = l, I.className = this.K(T ? "_day" : "_dayother"), a.cd(I, "cell"), k.getTime() === m.getTime() && T && this.cd(I, "today"), 0 !== k.dayOfWeek() && 6 !== k.dayOfWeek() || this.cd(I, "weekend"), I.style.position = "absolute", I.style.left = B + O, I.style.right = B + O, I.style.top = z + "px", I.style.width = a.hd(), I.style.height = this.cellHeight + "px", I.style.lineHeight = this.cellHeight + "px";
|
|
3745
3750
|
var U = document.createElement("div");
|
|
3746
|
-
U.style.position = "absolute", U.className = k.getTime() === m.getTime() &&
|
|
3751
|
+
U.style.position = "absolute", U.className = k.getTime() === m.getTime() && T ? this.K("_todaybox") : this.K("_daybox"), a.cd(U, "cell_box"), U.style.left = "0px", U.style.top = "0px", U.style.right = "0px", U.style.bottom = "0px", I.appendChild(U);
|
|
3747
3752
|
var L = null;
|
|
3748
3753
|
this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
|
|
3749
3754
|
var j = L || {};
|
|
3750
|
-
if (j.day = k, j.isCurrentMonth =
|
|
3755
|
+
if (j.day = k, j.isCurrentMonth = T, j.isToday = k.getTime() === m.getTime() && T, j.isWeekend = 0 === k.dayOfWeek() || 6 === k.dayOfWeek(), L ? (j.html = L.html || k.getDay(), j.cssClass = L.css) : (j.html = k.getDay(), j.cssClass = null), "function" == typeof a.onBeforeCellRender) {
|
|
3751
3756
|
var W = {};
|
|
3752
3757
|
W.cell = j, a.onBeforeCellRender(W), L = W.cell;
|
|
3753
3758
|
}
|
|
3754
|
-
if (L && DayPilot.Util.addClass(I, L.cssClass || L.css),
|
|
3759
|
+
if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), T || s && A || l && E) {
|
|
3755
3760
|
var F = document.createElement("div");
|
|
3756
3761
|
F.innerHTML = k.getDay(), F.style.position = "absolute", F.style.left = "0px", F.style.top = "0px", F.style.right = "0px", F.style.bottom = "0px", a.cd(F, "cell_text"), I.isClickable = !0, L && L.html && (F.innerHTML = L.html), I.appendChild(F);
|
|
3757
3762
|
}
|
|
@@ -3777,7 +3782,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3777
3782
|
}
|
|
3778
3783
|
var J = document.createElement("div");
|
|
3779
3784
|
J.style.position = "absolute", J.style.left = "0px", J.style.top = b - 2 + "px", J.style.width = a.hd(7 + C), J.style.height = "1px", J.style.fontSize = "1px", J.style.lineHeight = "1px", J.className = this.K("_line"), y.appendChild(J), this.months.push(n);
|
|
3780
|
-
}, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) {
|
|
3785
|
+
}, this.od = function (e, t) { var i = this.titleHeight + this.dayHeaderHeight, n = (this.bd(), this.showWeekNumbers ? 1 : 0); return { "x": a.gd(e + n), "y": t * this.cellHeight + i }; }, this.qd = function (e, t, i) {
|
|
3786
|
+
var n = e.month.cells[t][i];
|
|
3787
|
+
a.cd(n, "select");
|
|
3788
|
+
}, this.rd = function (e, t, i) { var n = e.month.cells[t][i]; a.dd(n, "select"); }, this.bd = function () { return this.showWeekNumbers ? r.cellWidth() : 0; }, this.sd = function () {
|
|
3781
3789
|
if (this.items)
|
|
3782
3790
|
for (var e = 0; e < this.showMonths; e++)
|
|
3783
3791
|
for (var t = 0; t < 7; t++)
|
|
@@ -3785,11 +3793,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3785
3793
|
var a = this.months[e].cells[t][i];
|
|
3786
3794
|
a && (1 === this.items[a.day.toStringSortable()] ? (this.cd(a, "busy"), this.dd(a, "free")) : (this.dd(a, "busy"), this.cd(a, "free")));
|
|
3787
3795
|
}
|
|
3788
|
-
}, this.td = function () {
|
|
3789
|
-
var e = {};
|
|
3790
|
-
e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1),
|
|
3791
|
-
a.state.value = JSON.stringify(e);
|
|
3792
|
-
}, this.nd = function () { return (this.selectMode || "").toLowerCase(); }, this.ud = function () {
|
|
3796
|
+
}, this.td = function () { var e = {}; e.startDate = a.startDate, e.selectionStart = a.selectionStart, e.selectionEnd = a.selectionEnd.addDays(1), a.state.value = JSON.stringify(e); }, this.nd = function () { return (this.selectMode || "").toLowerCase(); }, this.ud = function () {
|
|
3793
3797
|
var e = this.selectionDay || this.selectionStart;
|
|
3794
3798
|
switch (e || (e = DayPilot.Date.today()), e = new DayPilot.Date(e), this.nd()) {
|
|
3795
3799
|
case "day":
|
|
@@ -3828,10 +3832,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3828
3832
|
var t = { "day": a.selectionDay, "start": a.selectionStart, "end": a.selectionEnd };
|
|
3829
3833
|
a.hb(), t.start === a.selectionStart && t.end === a.selectionEnd && t.day === a.selectionDay || a.M();
|
|
3830
3834
|
}
|
|
3831
|
-
}, this.hb = function () { this.Uc(), this._c(), this.ud(), this.yd(), this.ea(), this.sd(), this.td(), this.visible ? this.show() : this.hide(); }, this.Ad = function () { a.
|
|
3835
|
+
}, this.hb = function () { this.Uc(), this._c(), this.ud(), this.yd(), this.ea(), this.sd(), this.td(), this.visible ? this.show() : this.hide(); }, this.Ad = function () { a.ob = {}; }, this.lb = null, this.jb = function (e) {
|
|
3832
3836
|
if (e) {
|
|
3833
3837
|
var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? a.events.list = e.list : a.events.list = e); } } };
|
|
3834
|
-
this.
|
|
3838
|
+
this.lb = t;
|
|
3835
3839
|
for (var i in e)
|
|
3836
3840
|
if (t[i]) {
|
|
3837
3841
|
var n = t[i];
|
|
@@ -3840,8 +3844,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3840
3844
|
else
|
|
3841
3845
|
a[i] = e[i];
|
|
3842
3846
|
}
|
|
3843
|
-
}, this.
|
|
3844
|
-
var e = this.
|
|
3847
|
+
}, this.mb = function () {
|
|
3848
|
+
var e = this.lb;
|
|
3845
3849
|
for (var t in e) {
|
|
3846
3850
|
var i = e[t];
|
|
3847
3851
|
i.postInit && i.postInit();
|
|
@@ -4134,10 +4138,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4134
4138
|
}
|
|
4135
4139
|
return a.weekStarts;
|
|
4136
4140
|
}, r.cellWidth = function () {
|
|
4137
|
-
if (a.
|
|
4138
|
-
return a.
|
|
4141
|
+
if (a.ob.cellWidth)
|
|
4142
|
+
return a.ob.cellWidth;
|
|
4139
4143
|
var e = a.Od("_cell_dimensions").width;
|
|
4140
|
-
return e || (e = a.cellWidth), a.
|
|
4144
|
+
return e || (e = a.cellWidth), a.ob.cellWidth = e, e;
|
|
4141
4145
|
}, r.ad = function () { return "Auto" === a.aa.cellWidth(); }, this.clearSelection = function () {
|
|
4142
4146
|
for (var e = 0; e < this.selected.length; e++) {
|
|
4143
4147
|
var t = this.selected[e];
|
|
@@ -4160,7 +4164,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4160
4164
|
for (var t = new DayPilot.Date(e.start), i = new DayPilot.Date(e.end), a = {}, n = t.getDatePart(); n.getTime() <= i.getTime();)
|
|
4161
4165
|
a[n.toStringSortable()] = 1, n = n.addDays(1);
|
|
4162
4166
|
return a;
|
|
4163
|
-
}, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.
|
|
4167
|
+
}, this.show = function () { a.visible = !0, a.root.style.display = ""; }, this.hide = function () { a.visible = !1, a.root.style.display = "none"; }, this.nb = function () {
|
|
4164
4168
|
if (this.id && this.id.tagName)
|
|
4165
4169
|
this.nav.top = this.id;
|
|
4166
4170
|
else {
|
|
@@ -4171,9 +4175,9 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
4171
4175
|
}
|
|
4172
4176
|
this.root = this.nav.top;
|
|
4173
4177
|
}, this.init = function () {
|
|
4174
|
-
if (this.
|
|
4178
|
+
if (this.nb(), !this.root.dp) {
|
|
4175
4179
|
this.ud(), this._c(), this.yd(), this.ea(), this.sd(), this.Z(), this.Rd(), this.gb();
|
|
4176
|
-
if (this.Pd() && this.zd(), this.Ba = !0, this.
|
|
4180
|
+
if (this.Pd() && this.zd(), this.Ba = !0, this.mb(), this.vd) {
|
|
4177
4181
|
var e = this.vd;
|
|
4178
4182
|
this.select(e.date1, e.date2, e.options), this.vd = null;
|
|
4179
4183
|
}
|