@daypilot/daypilot-lite-angular 3.32.0 → 3.32.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 +35 -35
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +20 -14
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +34 -34
- 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 - 2025 Annpoint s.r.o.
|
|
131
131
|
https://www.daypilot.org/
|
|
132
132
|
Licensed under Apache Software License 2.0
|
|
133
|
-
Version: 2025.1.
|
|
133
|
+
Version: 2025.1.638-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 = "2025.1.
|
|
995
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.1.638-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.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;
|
|
@@ -1300,7 +1300,11 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1300
1300
|
}
|
|
1301
1301
|
}, this.Ea = function (e) {
|
|
1302
1302
|
var t = {};
|
|
1303
|
-
|
|
1303
|
+
if (t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, t.data = e, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(r.startDate), "BusinessHoursNoScroll" === this.heightSpec) {
|
|
1304
|
+
var i = t.start.getDatePart();
|
|
1305
|
+
t.start = i.addHours(this.businessBeginsHour);
|
|
1306
|
+
}
|
|
1307
|
+
return t.putIntoBlock = function (e) {
|
|
1304
1308
|
for (var t = 0; t < this.blocks.length; t++) {
|
|
1305
1309
|
var i = this.blocks[t];
|
|
1306
1310
|
if (i.overlapsWith(e.part.top, e.part.height))
|
|
@@ -1352,7 +1356,6 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1352
1356
|
break;
|
|
1353
1357
|
case "WorkWeek": i = 5, t = t.firstDayOfWeek(1);
|
|
1354
1358
|
}
|
|
1355
|
-
"BusinessHoursNoScroll" === this.heightSpec && (t = t.addHours(this.businessBeginsHour));
|
|
1356
1359
|
for (var n = 0; n < i; n++) {
|
|
1357
1360
|
var o = r.headerDateFormat ? r.headerDateFormat : s.locale().datePattern, l = {};
|
|
1358
1361
|
l.start = t.addDays(n), l.name = l.start.toString(o, s.locale()), e.push(l);
|
|
@@ -1991,7 +1994,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1991
1994
|
var DayPilot = {};
|
|
1992
1995
|
if (function () {
|
|
1993
1996
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) {
|
|
1994
|
-
this.v = "2025.1.
|
|
1997
|
+
this.v = "2025.1.638-lite";
|
|
1995
1998
|
var t = "navigator_" + (new Date).getTime(), i = this;
|
|
1996
1999
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
1997
2000
|
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)
|
|
@@ -2041,7 +2044,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2041
2044
|
var e = function () { }, t = {};
|
|
2042
2045
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) {
|
|
2043
2046
|
var a = this, n = null;
|
|
2044
|
-
this.v = "2025.1.
|
|
2047
|
+
this.v = "2025.1.638-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.Hb = function () { }, i && DayPilot.isArray(i) && (this.items = i), this.toJSON = function () { return null; }, this.show = function (i, o) {
|
|
2045
2048
|
o = o || {};
|
|
2046
2049
|
var r = null;
|
|
2047
2050
|
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.Hb.submenu = null, null !== t.mouse) {
|
|
@@ -2319,7 +2322,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2319
2322
|
var e = this.list[this.list.length - 1];
|
|
2320
2323
|
e && e.stretch();
|
|
2321
2324
|
}
|
|
2322
|
-
}, DayPilot.ModalStatic.last = function () {
|
|
2325
|
+
}, DayPilot.ModalStatic.last = function () {
|
|
2326
|
+
var e = DayPilot.ModalStatic.list;
|
|
2327
|
+
return e.length > 0 ? e[e.length - 1] : null;
|
|
2328
|
+
};
|
|
2323
2329
|
var i = function () {
|
|
2324
2330
|
if ("undefined" == typeof window) {
|
|
2325
2331
|
var e = {};
|
|
@@ -2594,8 +2600,8 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2594
2600
|
var a = t.debounce, n = t.silent, o = e.row, r = !0, s = "function" == typeof o.data.onValidate ? o.data.onValidate : null, l = "function" == typeof o.data.validate ? o.data.validate : null, d = s || l;
|
|
2595
2601
|
if (d) {
|
|
2596
2602
|
var c = {};
|
|
2597
|
-
c.valid = !0, c.value = e.save()[o.field], c.message = "Error",
|
|
2598
|
-
c.result = this.serialize(), d(c);
|
|
2603
|
+
c.valid = !0, c.value = e.save()[o.field], c.message = "Error",
|
|
2604
|
+
c.values = this.serialize(), c.result = this.serialize(), d(c);
|
|
2599
2605
|
var u = this.theme + "_form_item_invalid", h = this.theme + "_form_item_invalid_message";
|
|
2600
2606
|
if (c.valid)
|
|
2601
2607
|
clearTimeout(this.rc[o.field]), e.uc && (e.uc.remove(), e.uc = null), e.sc.classList.remove(u);
|
|
@@ -2997,7 +3003,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2997
3003
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2998
3004
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
2999
3005
|
e.Month = function (i, a) {
|
|
3000
|
-
this.v = "2025.1.
|
|
3006
|
+
this.v = "2025.1.638-lite", this.nav = {};
|
|
3001
3007
|
var n = this;
|
|
3002
3008
|
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.Uc(), n.fa(), "Full" === e.UpdateType && (n.Vc(), n.Wc()), n.ka(), n.show(), n.la(), 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) {
|
|
3003
3009
|
var t = null;
|
|
@@ -3699,7 +3705,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3699
3705
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3700
3706
|
var e = DayPilot.Util.isVueVNode;
|
|
3701
3707
|
DayPilot.Navigator = function (t, i) {
|
|
3702
|
-
this.v = "2025.1.
|
|
3708
|
+
this.v = "2025.1.638-lite";
|
|
3703
3709
|
var a = this;
|
|
3704
3710
|
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.pb = {}, this.ad = function () { this.root.dp = this, this.root.className = this.K("_main"), "Horizontal" === this.orientation ? (r.bd() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.cd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.bd() || (this.root.style.width = 7 * r.cellWidth() + this.cd() + "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.ra = function () { return 2 === a.api; }, this.Vc = function () { this.root.innerHTML = ""; }, this.K = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.dd = function (e, t) { var i = this.K("_" + t); DayPilot.Util.addClass(e, i); }, this.ed = function (e, t) { var i = this.K("_" + t); DayPilot.Util.removeClass(e, i); }, this.fd = function () {
|
|
3705
3711
|
if (!r.bd())
|
|
@@ -3774,10 +3780,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3774
3780
|
var j = L || {};
|
|
3775
3781
|
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) {
|
|
3776
3782
|
var W = {};
|
|
3777
|
-
W.cell = j,
|
|
3783
|
+
W.cell = j,
|
|
3784
|
+
a.onBeforeCellRender(W), L = W.cell;
|
|
3778
3785
|
}
|
|
3779
|
-
if (L && DayPilot.Util.addClass(N, L.cssClass || L.css),
|
|
3780
|
-
T || s && H || l && E) {
|
|
3786
|
+
if (L && DayPilot.Util.addClass(N, L.cssClass || L.css), T || s && H || l && E) {
|
|
3781
3787
|
var F = document.createElement("div");
|
|
3782
3788
|
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.dd(F, "cell_text"), N.isClickable = !0, L && L.html && (F.innerHTML = L.html), N.appendChild(F);
|
|
3783
3789
|
}
|