@daypilot/daypilot-lite-angular 4.2.0 → 4.2.1-sandbox.687
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/README.md +14 -4
- package/esm2020/lib/core/daypilot-core.mjs +10 -11
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +9 -16
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +9 -10
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -144,7 +144,7 @@ DayPilot Lite
|
|
|
144
144
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
145
145
|
https://www.daypilot.org/
|
|
146
146
|
Licensed under Apache Software License 2.0
|
|
147
|
-
Version: 2025.3.
|
|
147
|
+
Version: 2025.3.687-lite
|
|
148
148
|
*/
|
|
149
149
|
var DayPilot = {};
|
|
150
150
|
if ("undefined" == typeof DayPilot)
|
|
@@ -1033,7 +1033,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1033
1033
|
if (this instanceof t.Calendar && !this.P && (o = !0, this.P = !0), !o)
|
|
1034
1034
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
1035
1035
|
var r = this;
|
|
1036
|
-
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.
|
|
1036
|
+
this.uniqueID = null, this.isCalendar = !0, this.v = "2025.3.687-lite", this.id = e, this.clientName = e, this.cache = {}, this.cache.pixels = {}, this.elements = {}, this.elements.events = [], this.elements.selection = [], this.nav = {}, this.afterRender = function () { }, this.fasterDispose = !0, this.angularAutoApply = !1, this.api = 2, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.cellDuration = 30, this.cellHeight = 30, this.columnMarginLeft = 0, this.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.contextMenu = null, this.days = 1, this.durationBarVisible = !0, this.eventBorderRadius = null, this.eventsLoadMethod = "GET", this.headerDateFormat = null, this.headerHeight = 30, this.headerTextWrappingEnabled = !1, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelHtml = null, this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.locale = "en-us", this.snapToGrid = !0, this.showToolTip = !0, this.startDate = (new DayPilot.Date).getDatePart(), this.cssClassPrefix = "calendar_default", this.theme = null, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.viewType = "Days", this.visible = !0, this.xssProtection = "Enabled", this.headerClickHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.timeRangeSelectedHandling = "Enabled", this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeHeaderRender = null, this.onEventClick = null, this.onEventClicked = null, this.onEventDelete = null, this.onEventDeleted = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onEventRightClick = null, this.onEventRightClicked = null, this.onHeaderClick = null, this.onHeaderClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.Q = !1, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.R(); }, this.R = function () { DayPilot.de(r.elements.selection), r.elements.selection = [], r.nav.activeSelection = null; }, this.cleanSelection = this.clearSelection, this.S = function (e, t, n) { var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); __doPostBack(r.uniqueID, a); }, this.U = function (e, t, n) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.callbackTimeout = window.setTimeout(function () { r.loadingStart(); }, 100); var i = {}; i.action = e, i.parameters = n, i.data = t, i.header = this.T(); var a = "JSON" + DayPilot.JSON.stringify(i); this.backendUrl ? DayPilot.request(this.backendUrl, this.V, a, this.ajaxError) : "function" == typeof WebForm_DoCallback && WebForm_DoCallback(this.uniqueID, a, this.W, 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.Q || (e.Q = !0, clearInterval(e.X), e.Y(), e.nav.scroll.root = null, DayPilot.pu(e.nav.loading), e.Z(), e._(), 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.Q; }, this.aa = function () { this.nav.top.dispose = this.dispose; }, this.V = function (e) { r.W(e.responseText); }, this.T = 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.ba = function (e, t) {
|
|
1037
1037
|
for (var n = e.parentNode; n && "TD" !== n.tagName;)
|
|
1038
1038
|
n = n.parentNode;
|
|
1039
1039
|
var i = r.eventBorderRadius;
|
|
@@ -1276,7 +1276,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1276
1276
|
if (1 === t || 0 === t) {
|
|
1277
1277
|
DayPilot.Global.selecting = { calendar: r, start: r.coords };
|
|
1278
1278
|
var n = DayPilot.Global.selecting;
|
|
1279
|
-
return n.start.time = r.Ba(r.coords.x, r.coords.y), n.start.columnIndex = r.Ca(r.coords.x), n.start.column = r.za[n.start.columnIndex], r.Da(), r.Ea(), !1;
|
|
1279
|
+
return n.start.time = r.Ba(r.coords.x, r.coords.y), console.log("Selecting start time: " + n.start.time), n.start.columnIndex = r.Ca(r.coords.x), n.start.column = r.za[n.start.columnIndex], r.Da(), r.Ea(), !1;
|
|
1280
1280
|
}
|
|
1281
1281
|
}
|
|
1282
1282
|
}, this.Ea = function () {
|
|
@@ -1309,14 +1309,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
1309
1309
|
return i;
|
|
1310
1310
|
}
|
|
1311
1311
|
return null;
|
|
1312
|
-
}, this.Ba = function (e, t) {
|
|
1313
|
-
e = DayPilot.Util.atLeast(e, 0);
|
|
1314
|
-
var n = this.Ca(e), i = t / (60 / s.fa()) / r.cellHeight, a = 60 * i * 60 * 1e3, o = 6e4 * Math.floor(a / 6e4), l = o, d = this.za[n];
|
|
1315
|
-
if (!d)
|
|
1316
|
-
return null;
|
|
1317
|
-
var c = d.start.addTime(l);
|
|
1318
|
-
return c = c.addHours(r.sa());
|
|
1319
|
-
}, this.Ha = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var i = 60 * s.fa() * 1e3, a = n % i; return e.addTime(-a); }, this.Ia = function (e, t) { var n = this.Ha(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ja = {}, this.Ja.getCellCoords = function () {
|
|
1312
|
+
}, this.Ba = function (e, t) { e = DayPilot.Util.atLeast(e, 0); var n = this.Ca(e), i = t / (60 / s.fa()) / r.cellHeight, a = 60 * i * 60 * 1e3, o = 6e4 * Math.floor(a / 6e4), l = this.za[n]; return l ? l.start.addTime(o) : null; }, this.Ha = function (e, t) { var n = e.getTime(); t && (n -= t.getTime()); var i = 60 * s.fa() * 1e3, a = n % i; return e.addTime(-a); }, this.Ia = function (e, t) { var n = this.Ha(e, t); return n.getTime() === e.getTime() ? n : n.addTime(60 * s.fa() * 1e3); }, this.Ja = {}, this.Ja.getCellCoords = function () {
|
|
1320
1313
|
var e = {};
|
|
1321
1314
|
if (e.x = 0, e.y = 0, !r.coords)
|
|
1322
1315
|
return null;
|
|
@@ -2048,7 +2041,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
2048
2041
|
if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (DayPilot) {
|
|
2049
2042
|
"use strict";
|
|
2050
2043
|
"undefined" == typeof DayPilot.DatePicker && (DayPilot.DatePicker = function (e) {
|
|
2051
|
-
this.v = "2025.3.
|
|
2044
|
+
this.v = "2025.3.687-lite";
|
|
2052
2045
|
var t = "navigator_" + (new Date).getTime(), n = this;
|
|
2053
2046
|
this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
|
|
2054
2047
|
if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.ca.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, e)
|
|
@@ -2101,7 +2094,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
2101
2094
|
var e = function () { }, t = {};
|
|
2102
2095
|
t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (n) {
|
|
2103
2096
|
var i = this, a = null;
|
|
2104
|
-
this.v = "2025.3.
|
|
2097
|
+
this.v = "2025.3.687-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.Rb = function () { }, n && DayPilot.isArray(n) && (this.items = n), this.toJSON = function () { return null; }, this.show = function (n, o) {
|
|
2105
2098
|
o = o || {};
|
|
2106
2099
|
var r = null;
|
|
2107
2100
|
if (n ? "string" == typeof n.id || "number" == typeof n.id ? r = n.id : "function" == typeof n.id ? r = n.id() : "function" == typeof n.value && (r = n.value()) : r = null, "undefined" != typeof DayPilot.Bubble && DayPilot.Bubble.hideActive(), o.submenu || t.menuClean(), this.Rb.submenu = null, null !== t.mouse) {
|
|
@@ -3058,7 +3051,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
|
|
|
3058
3051
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
3059
3052
|
var e = {}, t = DayPilot.Util.isVueVNode;
|
|
3060
3053
|
e.Month = function (n, i) {
|
|
3061
|
-
this.v = "2025.3.
|
|
3054
|
+
this.v = "2025.3.687-lite", this.nav = {};
|
|
3062
3055
|
var a = this;
|
|
3063
3056
|
this.id = n, 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.Q = !1, this.W = function (e, t) { var e = JSON.parse(e); return e.CallBackRedirect ? void (document.location.href = e.CallBackRedirect) : "None" === e.UpdateType ? void a.fireAfterRenderDetached(e.CallBackData, !0) : (a.events.list = e.Events, "Full" === e.UpdateType && (a.startDate = e.StartDate, a.timeFormat = e.TimeFormat ? e.TimeFormat : a.timeFormat, "undefined" != typeof e.WeekStarts && (a.weekStarts = e.WeekStarts), a.hashes = e.Hashes), a.Y(), a.cd(), a.ha(), "Full" === e.UpdateType && (a.dd(), a.ed()), a.ma(), a.show(), a.na(), void a.fireAfterRenderDetached(e.CallBackData, !0)); }, this.fireAfterRenderDetached = function (e, t) { var n = function (e, t) { return function () { a.afterRender && a.afterRender(e, t); }; }; window.setTimeout(n(e, t), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (e) {
|
|
3064
3057
|
var t = null;
|
|
@@ -3760,7 +3753,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
3760
3753
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
|
|
3761
3754
|
var e = DayPilot.Util.isVueVNode;
|
|
3762
3755
|
DayPilot.Navigator = function (t, n) {
|
|
3763
|
-
this.v = "2025.3.
|
|
3756
|
+
this.v = "2025.3.687-lite";
|
|
3764
3757
|
var i = this;
|
|
3765
3758
|
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.showToday = !1, this.showWeekNumbers = !1, this.todayHtml = null, this.todayHeight = 40, this.todayPosition = "Bottom", this.todayText = "Today", 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.onTodayClick = null, this.nav = {}, this.xb = {}, this.ld = function () { this.root.dp = this, this.root.className = this.L("_main"), "Horizontal" === this.orientation ? (r.md() || (this.root.style.width = this.showMonths * (7 * r.cellWidth() + this.nd()) + "px"), this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : r.md() || (this.root.style.width = 7 * r.cellWidth() + this.nd() + "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 = i.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.ta = function () { return 2 === i.api; }, this.dd = function () { this.root.innerHTML = ""; }, this.L = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.od = function (e, t) { var n = this.L("_" + t); DayPilot.Util.addClass(e, n); }, this.pd = function (e, t) { var n = this.L("_" + t); DayPilot.Util.removeClass(e, n); }, this.qd = function () {
|
|
3766
3759
|
if (!r.md())
|
|
@@ -4345,7 +4338,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
|
|
|
4345
4338
|
if ("undefined" == typeof DayPilot.Scheduler) {
|
|
4346
4339
|
var t = navigator.userAgent.indexOf("iPad") > -1 || navigator.userAgent.indexOf("iPhone") > -1, n = {}, i = function () { }, a = !1, o = function () { return document.body; }, r = function () { return document.createElement("div"); };
|
|
4347
4340
|
DayPilot.Scheduler = function (a, s) {
|
|
4348
|
-
this.v = "2025.3.
|
|
4341
|
+
this.v = "2025.3.687-lite";
|
|
4349
4342
|
var l = this;
|
|
4350
4343
|
this.isScheduler = !0, this.id = a, this.beforeCellRenderCaching = !0, this.businessBeginsHour = 9, this.businessEndsHour = 18, this.businessWeekends = !1, this.cellDuration = 60, this.cellGroupBy = "Day", this.cellSweeping = !0, this.cellSweepingCacheSize = 1e3, this.cellWidth = 40, this.cellsMarkBusiness = !0, this.cssClassPrefix = "scheduler_default", this.days = 1, this.durationBarHeight = 3, this.durationBarVisible = !0, this.dynamicEventRendering = "Progressive", this.dynamicEventRenderingMargin = 50, this.dynamicEventRenderingMarginX = null, this.dynamicEventRenderingMarginY = null, this.dynamicEventRenderingCacheSweeping = !1, this.dynamicEventRenderingCacheSize = 200, this.eventEndSpec = "DateTime", this.eventHeight = 35, this.eventMinWidth = 1, this.eventResizeMargin = 5, this.eventTapAndHoldHandling = "Move", this.eventTextWrappingEnabled = !1, this.eventsLoadMethod = "GET", this.floatingEvents = !t, this.floatingTimeHeaders = !0, this.headerHeight = 30, this.heightSpec = "Max", this.height = 600, this.locale = "en-us", this.progressiveRowRendering = !0, this.progressiveRowRenderingPreload = 25, this.rowHeaderWidth = 80, this.rowMarginTop = 0, this.rowMarginBottom = 0, this.rowsLoadMethod = "GET", this.scale = "CellDuration", this.scrollDelayEvents = 200, this.scrollDelayCells = t ? 100 : 0, this.scrollDelayFloats = 0, this.scrollDelayRows = 0, this.showToolTip = !0, this.snapToGrid = !0, this.startDate = DayPilot.Date.today(), this.tapAndHoldTimeout = 300, this.timeHeaders = [{ "groupBy": "Default" }, { "groupBy": "Cell" }], this.timeHeaderTextWrappingEnabled = !1, this.timeFormat = "Auto", this.useEventBoxes = "Always", this.visible = !0, this.weekStarts = "Auto", this.width = null, this.xssProtection = "Enabled", this.eventClickHandling = "Enabled", this.eventDeleteHandling = "Disabled", this.eventMoveHandling = "Update", this.eventResizeHandling = "Update", this.eventRightClickHandling = "ContextMenu", this.timeHeaderClickHandling = "Enabled", this.timeHeaderRightClickHandling = "Enabled", this.timeRangeClickHandling = "Enabled", this.timeRangeSelectedHandling = "Enabled", this.onEventClick = null, this.onEventClicked = null, this.onEventMove = null, this.onEventMoved = null, this.onEventResize = null, this.onEventResized = null, this.onRowClick = null, this.onRowClicked = null, this.onTimeHeaderClick = null, this.onTimeHeaderClicked = null, this.onTimeHeaderRightClick = null, this.onTimeHeaderRightClicked = null, this.onTimeRangeClick = null, this.onTimeRangeClicked = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.onBeforeCellRender = null, this.onBeforeEventRender = null, this.onBeforeRowHeaderRender = null, this.onAfterUpdate = null, this.Q = !1, this.fe = -1, this.ge = !0, this.rowlist = [], this.events = {}, this.cells = {}, this.elements = {}, this.elements.events = [], this.elements.bars = [], this.elements.text = [], this.elements.cells = [], this.elements.linesVertical = [], this.elements.range = [], this.elements.timeHeader = [], this.xb = {}, this.xb.cells = [], this.xb.linesVertical = {}, this.xb.linesHorizontal = {}, this.xb.timeHeaderGroups = [], this.xb.timeHeader = {}, this.xb.events = [], this.nav = {}, this.scrollTo = function (e) { l.he(e); }, this.he = function (e) {
|
|
4351
4344
|
if (e) {
|