@daypilot/daypilot-lite-angular 4.6.0 → 4.6.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 +14 -13
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +13 -12
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +13 -12
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -132,7 +132,7 @@ DayPilot Lite
|
|
|
132
132
|
Copyright (c) 2005 - 2025 Annpoint s.r.o.
|
|
133
133
|
https://www.daypilot.org/
|
|
134
134
|
Licensed under Apache Software License 2.0
|
|
135
|
-
Version: 2025.3.
|
|
135
|
+
Version: 2025.3.739-lite
|
|
136
136
|
*/
|
|
137
137
|
"use strict";
|
|
138
138
|
var DayPilot = { Global: {} };
|
|
@@ -1843,7 +1843,7 @@ var DayPilot = { Global: {} };
|
|
|
1843
1843
|
if (C === k && (x.cut || _.cut))
|
|
1844
1844
|
continue;
|
|
1845
1845
|
var D = _.boxBottom, S = "Always" === o.useEventBoxes;
|
|
1846
|
-
S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C
|
|
1846
|
+
S ? (w.part.top = Math.floor(C / this.cellHeight) * this.cellHeight + 1, w.part.height = Math.max(Math.ceil(D / this.cellHeight) * this.cellHeight - w.part.top, this.cellHeight - 1) + 1) : (w.part.top = C + 1, w.part.height = k - C), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
|
|
1847
1847
|
var M = w.part.top, T = w.part.top + w.part.height;
|
|
1848
1848
|
M > l.maxStart && (l.maxStart = M), T < l.minEnd && (l.minEnd = T), M < this.minStart && (this.minStart = M), T > this.maxEnd && (this.maxEnd = T), d.events.push(w), "function" == typeof this.onBeforeEventRender && (w.cache = this.yb.events[v]), w.part.start.getTime() === g && w.part.end.getTime() === y && (a[v] = !0);
|
|
1849
1849
|
}
|
|
@@ -4031,7 +4031,7 @@ var DayPilot = { Global: {} };
|
|
|
4031
4031
|
switch (i.timeRangeSelectedHandling) {
|
|
4032
4032
|
case "Bind":
|
|
4033
4033
|
var s = i.bound;
|
|
4034
|
-
if ("object" == typeof s) {
|
|
4034
|
+
if (s && "object" == typeof s) {
|
|
4035
4035
|
var l = {};
|
|
4036
4036
|
l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
|
|
4037
4037
|
}
|
|
@@ -4045,7 +4045,7 @@ var DayPilot = { Global: {} };
|
|
|
4045
4045
|
switch (i.timeRangeSelectedHandling) {
|
|
4046
4046
|
case "Bind":
|
|
4047
4047
|
var s = i.bound;
|
|
4048
|
-
if ("object" == typeof s) {
|
|
4048
|
+
if (s && "object" == typeof s) {
|
|
4049
4049
|
var l = {};
|
|
4050
4050
|
l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
|
|
4051
4051
|
}
|
|
@@ -4393,7 +4393,7 @@ var DayPilot = { Global: {} };
|
|
|
4393
4393
|
}
|
|
4394
4394
|
this.timeHeader.push(r);
|
|
4395
4395
|
}
|
|
4396
|
-
}, this.getPixels = function (e) { var t =
|
|
4396
|
+
}, this.getPixels = function (e) { var t = e.ticks - this.startDate.ticks, n = l.Bb(t), a = l.cellWidth, i = Math.floor(n / a), r = i * a; r = r < 0 ? 0 : r; var o = r + a; n % a === 0 && (o = r); var s = l.Ae(); return o = o > s ? s : o, { left: n, boxLeft: r, boxRight: o, i: i }; }, this.getDate = function (e, t, n) {
|
|
4397
4397
|
var a = this.Ie(e, n);
|
|
4398
4398
|
if (!a)
|
|
4399
4399
|
return null;
|
|
@@ -4760,7 +4760,7 @@ var DayPilot = { Global: {} };
|
|
|
4760
4760
|
n.gg && (f = e.start());
|
|
4761
4761
|
var v = l.snapToGrid;
|
|
4762
4762
|
v && (f = this.dg(f)), f = f.addTime(r);
|
|
4763
|
-
var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g
|
|
4763
|
+
var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {};
|
|
4764
4764
|
return _.top = t.top, _.left = w, _.row = t.element, _.rowIndex = t.i, _.width = x, _.start = f, _.end = p, _.relativeY = l.coords.y - t.top, _;
|
|
4765
4765
|
}, this.Me = function () {
|
|
4766
4766
|
switch (this.scale) {
|
|
@@ -4970,7 +4970,7 @@ var DayPilot = { Global: {} };
|
|
|
4970
4970
|
return null;
|
|
4971
4971
|
var h = new DayPilot.Event(e, l);
|
|
4972
4972
|
h.part.dayIndex = l.rowlist.indexOf(t), h.part.start = o < i ? n : l.startDate, h.part.end = s > r ? a : l.startDate.addDays(l.days);
|
|
4973
|
-
var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end
|
|
4973
|
+
var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end);
|
|
4974
4974
|
h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1)));
|
|
4975
4975
|
var p = f.left, m = v.left;
|
|
4976
4976
|
if (d.eg(r - i)) {
|
|
@@ -4978,7 +4978,7 @@ var DayPilot = { Global: {} };
|
|
|
4978
4978
|
h.part.left = g, h.part.width = y - g, h.part.barLeft = Math.max(p - h.part.left, 0), h.part.barWidth = Math.max(m - p, 1);
|
|
4979
4979
|
}
|
|
4980
4980
|
else
|
|
4981
|
-
h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p
|
|
4981
|
+
h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1);
|
|
4982
4982
|
var b = l.eventMinWidth;
|
|
4983
4983
|
return h.part.width = Math.max(h.part.width, b), h.part.right = h.part.left + h.part.width, h.cache = c, t.events.push(h), h;
|
|
4984
4984
|
}, this.Ab = function (e, t) {
|
|
@@ -5156,8 +5156,8 @@ var DayPilot = { Global: {} };
|
|
|
5156
5156
|
var t = this.he;
|
|
5157
5157
|
t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
|
|
5158
5158
|
var n = this.Ae();
|
|
5159
|
-
return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = o(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = o(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = o(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines),
|
|
5160
|
-
this.divSeparators
|
|
5159
|
+
return n > 0 && (t.style.width = n + "px"), t.onmousedown = this.bh, t.onmousemove = this.ch, t.onmouseup = this.dh, t.oncontextmenu = this.eh, t.className = this.L("_matrix"), this.divStretch = o(), this.divStretch.style.position = "absolute", this.divStretch.style.height = "1px", t.appendChild(this.divStretch), this.divCells = o(), this.divCells.style.position = "absolute", this.divCells.oncontextmenu = this.eh, t.appendChild(this.divCells), this.divLines = o(), this.divLines.style.position = "absolute", this.divLines.oncontextmenu = this.eh, t.appendChild(this.divLines), this.divSeparators = o(),
|
|
5160
|
+
this.divSeparators.style.position = "absolute", this.divSeparators.oncontextmenu = this.eh, t.appendChild(this.divSeparators), this.divRange = o(), this.divRange.style.position = "absolute", this.divRange.oncontextmenu = this.eh, t.appendChild(this.divRange), this.divEvents = o(), this.divEvents.style.position = "absolute", t.appendChild(this.divEvents), this.divShadow = o(), this.divShadow.style.position = "absolute", t.appendChild(this.divShadow), e.appendChild(t), e;
|
|
5161
5161
|
}, this.qb = function () { n.fh || (n.fh = !0, DayPilot.re(document, "mouseup", n._d), DayPilot.re(document, "touchmove", n.gh), DayPilot.re(document, "touchend", n.hh)); }, this.ih = function () { this.nav.scroll.root = this, this.nav.scroll.onscroll = this.ef, l.jh = this.nav.scroll.scrollLeft, l.kh = this.nav.scroll.scrollTop, this.divNorth && (l.lh = this.divNorth.clientWidth); }, this.mh = {}, this.mh.step = 300, this.mh.delay = 10, this.mh.mode = "display", this.mh.layers = !1, this.Gg = function (e) {
|
|
5162
5162
|
for (var t = 0, n = 0; n < e.lines.length; n++) {
|
|
5163
5163
|
for (var a = e.lines[n], i = 0; i < a.length; i++) {
|
|
@@ -5831,8 +5831,9 @@ var DayPilot = { Global: {} };
|
|
|
5831
5831
|
var a = e;
|
|
5832
5832
|
DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
|
|
5833
5833
|
}
|
|
5834
|
-
}, this.Sa.Ua = function (e) { var t = l.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.qf, this.internal.adjustEndNormalize = l.rf, this.internal.xssTextHtml = l._a, this.internal.touch = l.ce, this.internal.skipUpdate = l.ze.skipUpdate, this.internal.skipped = l.ze.skipped, this.internal.loadOptions = l.tb, this.internal.postInit = l.wb,
|
|
5835
|
-
|
|
5834
|
+
}, this.Sa.Ua = function (e) { var t = l.Sa.Ra; "function" == typeof t.render && t.render(null, e); }, this.internal = {}, this.internal.adjustEndIn = l.qf, this.internal.adjustEndNormalize = l.rf, this.internal.xssTextHtml = l._a, this.internal.touch = l.ce, this.internal.skipUpdate = l.ze.skipUpdate, this.internal.skipped = l.ze.skipped, this.internal.loadOptions = l.tb, this.internal.postInit = l.wb, this.internal.enableAngular2 = function () {
|
|
5835
|
+
l.ze.enabled = !0;
|
|
5836
|
+
}, this.internal.eventsFromAttr = function () { l.ze.Uf = !0; }, this.internal.resourcesFromAttr = function () { l.ze.bg = !0; }, this.internal.evImmediateRefresh = function () { l.events.uf(); }, this.internal.enableReact = function (e, t) { l.cg.react = e, l.cg.reactDOM = t; }, this.internal.reactRefs = function () { return DayPilot.Util.copyProps(l.cg, {}, ["react", "reactDOM"]); }, this.internal.enableVue = function (e) { l.Sa.Ra = e; }, this.internal.vueRef = function () { return l.Sa.Ra; }, this.internal.vueRendering = function () { return l.Sa.Ta; }, this.tb(s);
|
|
5836
5837
|
}, i = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) {
|
|
5837
5838
|
if (!e)
|
|
5838
5839
|
throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row");
|