@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.
@@ -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.731-lite
135
+ Version: 2025.3.739-lite
136
136
  */
137
137
  "use strict";
138
138
  var DayPilot = { Global: {} };
@@ -1189,7 +1189,7 @@ var DayPilot = { Global: {} };
1189
1189
  if (C === k && (x.cut || _.cut))
1190
1190
  continue;
1191
1191
  var D = _.boxBottom, S = "Always" === o.useEventBoxes;
1192
- 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 + 1), w.part.barTop = Math.max(C - w.part.top - 1, 0), w.part.barHeight = Math.max(k - C - 2, 1);
1192
+ 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);
1193
1193
  var M = w.part.top, T = w.part.top + w.part.height;
1194
1194
  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);
1195
1195
  }
@@ -2502,7 +2502,7 @@ var DayPilot = { Global: {} };
2502
2502
  switch (i.timeRangeSelectedHandling) {
2503
2503
  case "Bind":
2504
2504
  var s = i.bound;
2505
- if ("object" == typeof s) {
2505
+ if (s && "object" == typeof s) {
2506
2506
  var l = {};
2507
2507
  l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
2508
2508
  }
@@ -2516,7 +2516,7 @@ var DayPilot = { Global: {} };
2516
2516
  switch (i.timeRangeSelectedHandling) {
2517
2517
  case "Bind":
2518
2518
  var s = i.bound;
2519
- if ("object" == typeof s) {
2519
+ if (s && "object" == typeof s) {
2520
2520
  var l = {};
2521
2521
  l.start = t, l.end = n, l.days = a, l.day = r, s.commandCallBack(i.command, l);
2522
2522
  }
@@ -2742,7 +2742,7 @@ var DayPilot = { Global: {} };
2742
2742
  o = s.end;
2743
2743
  }
2744
2744
  this.timeHeader.push(r);
2745
- } }, this.getPixels = function (e) { var t = l.startDate.addDays(l.days); e = e.ticks > t.ticks ? t.addTime(-1) : e; var n = e.ticks - this.startDate.ticks, a = l.Bb(n), i = l.cellWidth, r = Math.floor(a / i), o = r * i; return { left: a, boxLeft: o, boxRight: o + i, i: r }; }, this.getDate = function (e, t, n) { var a = this.Ie(e, n); if (!a)
2745
+ } }, 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) { var a = this.Ie(e, n); if (!a)
2746
2746
  return null; var i = a.x, r = l.Je(i); if (!r)
2747
2747
  return null; var o = n && !t ? r.end : r.start; return t ? o.addTime(this.Ke(a.offset)) : o; }, this.Ie = function (e, t) { t && (e -= 1); var n = Math.floor(e / l.cellWidth), a = l.Je(n); if (!a)
2748
2748
  return null; var i = {}; return i.x = n, i.offset = e % l.cellWidth, i.cell = a, i; }, this.Le = function (e) { var t = e.ticks - this.startDate.ticks, n = 60 * l.Me() * 1e3; if (t < 0)
@@ -2955,7 +2955,7 @@ var DayPilot = { Global: {} };
2955
2955
  s = Math.floor(s / h) * h;
2956
2956
  }
2957
2957
  else
2958
- s = n.fg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-s); n.gg && (f = e.start()); var v = l.snapToGrid; v && (f = this.dg(f)), f = f.addTime(r); var p = f.addTime(a), m = f, g = p, y = this.getPixels(m), b = this.getPixels(g.addTime(-1)), w = v ? y.boxLeft : y.left, x = v && i ? b.boxRight - w : b.left - w, _ = {}; return _.top = t.top, _.left = w, _.row = t.element, _.rowIndex = t.i, _.width = x, _.start = f, _.end = p, _.relativeY = l.coords.y - t.top, _; }, this.Me = function () { switch (this.scale) {
2958
+ s = n.fg.getTime() - e.start().getTime(); var f = this.getDate(o, !0).addTime(-s); n.gg && (f = e.start()); var v = l.snapToGrid; v && (f = this.dg(f)), f = f.addTime(r); 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, _ = {}; return _.top = t.top, _.left = w, _.row = t.element, _.rowIndex = t.i, _.width = x, _.start = f, _.end = p, _.relativeY = l.coords.y - t.top, _; }, this.Me = function () { switch (this.scale) {
2959
2959
  case "CellDuration": return this.cellDuration;
2960
2960
  case "Minute": return 1;
2961
2961
  case "Hour": return 60;
@@ -3096,12 +3096,12 @@ var DayPilot = { Global: {} };
3096
3096
  var u = DayPilot.indexOf(l.events.list, e);
3097
3097
  c = l.yb.events[u];
3098
3098
  } if (t.id !== e.resource || (r <= o || i >= s) && (i !== r || i !== o))
3099
- return null; var h = new DayPilot.Event(e, l); 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); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end.addTime(-1)); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (d.eg(r - i)) {
3099
+ return null; var h = new DayPilot.Event(e, l); 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); var f = this.getPixels(h.part.start), v = this.getPixels(h.part.end); h.part.start === h.part.end && (v = this.getPixels(h.part.end.addMilliseconds(1))); var p = f.left, m = v.left; if (d.eg(r - i)) {
3100
3100
  var g = f.boxLeft, y = v.boxRight;
3101
3101
  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);
3102
3102
  }
3103
3103
  else
3104
- h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p - 1, 1); var b = l.eventMinWidth; 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; }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
3104
+ h.part.left = p, h.part.width = Math.max(m - p, 1), h.part.barLeft = 0, h.part.barWidth = Math.max(m - p, 1); var b = l.eventMinWidth; 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; }, this.Ab = function (e, t) { if (!(e && t && e.start && t.start))
3105
3105
  return 0; var n = e.start().ticks - t.start().ticks; return 0 !== n ? n : t.end().ticks - e.end().ticks; }, this.rows = {}, this.rows.all = function () { for (var e = [], t = 0; t < l.rowlist.length; t++) {
3106
3106
  var n = l.Ag(l.rowlist[t]);
3107
3107
  e.push(n);
@@ -3194,8 +3194,8 @@ var DayPilot = { Global: {} };
3194
3194
  var t = this.he;
3195
3195
  t.style.userSelect = "none", t.style.webkitUserSelect = "none", t.calendar = this, t.style.position = "absolute";
3196
3196
  var n = this.Ae();
3197
- 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),
3198
- this.divSeparators = o(), 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;
3197
+ 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(),
3198
+ 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;
3199
3199
  }, 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) { for (var t = 0, n = 0; n < e.lines.length; n++) {
3200
3200
  for (var a = e.lines[n], i = 0; i < a.length; i++) {
3201
3201
  var r = a[i];
@@ -3609,8 +3609,9 @@ var DayPilot = { Global: {} };
3609
3609
  } }, this.Sa.Wa = function (e, t) { var n = l.Sa.Ra; if ("function" == typeof n.render) {
3610
3610
  var a = e;
3611
3611
  DayPilot.isArray(e) && (a = n.h("div", null, e)), n.render(a, t);
3612
- } }, 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,
3613
- this.internal.enableAngular2 = function () { l.ze.enabled = !0; }, 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);
3612
+ } }, 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 () {
3613
+ l.ze.enabled = !0;
3614
+ }, 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);
3614
3615
  }, i = "${v}" === (new DayPilot.Scheduler).v, DayPilot.Row = function (e, t) { if (!e)
3615
3616
  throw new DayPilot.Exception("Now row object supplied when creating DayPilot.Row"); if (!t)
3616
3617
  throw new DayPilot.Exception("No parent control supplied when creating DayPilot.Row"); this.ki = {}; var n = this.ki; n.id = e.id, n.name = e.name, n.data = e.resource, n.tags = e.tags; var a = this; a.isRow = !0, a.menuType = "resource", a.name = e.name, a.id = e.id, a.tags = e.tags, a.index = e.index, a.calendar = t, a.data = e.resource, a.li = e, a.$ = {}, a.$.row = e, a.toJSON = function () { var e = {}; return e.start = this.start, e.name = this.name, e.id = this.id, e.index = this.index, e; }, a.events = {}, a.events.all = function () { for (var e = [], t = 0; t < a.li.events.length; t++)