@daypilot/daypilot-lite-angular 3.30.0 → 3.31.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.
@@ -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.622-lite
133
+ Version: 2024.4.631-lite
134
134
  */
135
135
  var DayPilot = {};
136
136
  if ("undefined" == typeof DayPilot)
@@ -654,7 +654,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
654
654
  if (this instanceof t.Calendar && !this.N && (o = !0, this.N = !0), !o)
655
655
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
656
656
  var r = this;
657
- 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) {
657
+ this.uniqueID = null, this.isCalendar = !0, this.v = "2024.4.631-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) {
658
658
  for (var i = e.parentNode; i && "TD" !== i.tagName;)
659
659
  i = i.parentNode;
660
660
  var a = r.eventBorderRadius;
@@ -1022,7 +1022,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1022
1022
  u.start = p.start.addTime(m * a), u.end = u.start.addTime(a), u.resource = p.id, u.onmousedown = this.wa, u.onmouseup = function () { return !1; }, u.onclick = function () { return !1; }, u.root = this, u.style.padding = "0px", u.style.border = "0px none", u.style.verticalAlign = "top", u.style.height = r.cellHeight + "px", u.style.overflow = "hidden", u.unselectable = "on";
1023
1023
  var h = document.createElement("div");
1024
1024
  h.unselectable = "on", h.style.height = r.cellHeight + "px", h.style.position = "relative", h.className = this.K("_cell");
1025
- var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y };
1025
+ var v = this.Za(u.start, u.end), y = { "business": v, "text": null, "html": null, "cssClass": null, "backColor": null, "backImage": null, "backRepeat": null, "fontColor": null }, g = { "start": u.start, "end": u.end, "resource": u.resource, "properties": y, "x": c, "y": m };
1026
1026
  !function () { if ("function" == typeof r.onBeforeCellRender) {
1027
1027
  var e = {};
1028
1028
  e.cell = g, r.onBeforeCellRender(e);
@@ -1030,7 +1030,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1030
1030
  var b = document.createElement("div");
1031
1031
  b.setAttribute("unselectable", "on"), b.className = this.K("_cell_inner");
1032
1032
  var D = DayPilot.Util.escapeTextHtml(y.text, y.html);
1033
- D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), h.appendChild(b), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1033
+ D && (b.innerHTML = D), y.backColor && (b.style.backgroundColor = y.backColor), y.backImage && (b.style.backgroundImage = "url(" + y.backImage + ")"), y.backRepeat && (b.style.backgroundRepeat = y.backRepeat), y.fontColor && (b.style.color = y.fontColor), h.appendChild(b), function () { if ("function" == typeof r.onBeforeCellDomAdd || "function" == typeof r.onBeforeCellDomRemove) {
1034
1034
  var e = {};
1035
1035
  if (e.control = r, e.cell = g, e.element = null, u.domArgs = e, "function" == typeof r.onBeforeCellDomAdd && r.onBeforeCellDomAdd(e), e.element) {
1036
1036
  var t = b;
@@ -1094,10 +1094,10 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1094
1094
  var n = a[t], o = e ? i.insertCell(-1) : i.cells[t];
1095
1095
  o.data = n, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = r.headerHeight + "px", o.onclick = r._a;
1096
1096
  var s, l = e ? document.createElement("div") : o.firstChild;
1097
- e ? (l.unselectable = "on", l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative",
1098
- l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
1097
+ e ? (l.unselectable = "on",
1098
+ l.style.MozUserSelect = "none", l.style.cursor = "default", l.style.position = "relative", l.className = r.K("_colheader"), l.style.height = r.headerHeight + "px", r.headerTextWrappingEnabled || (l.style.whiteSpace = "nowrap"), s = document.createElement("div"), s.className = r.K("_colheader_inner"), s.unselectable = "on", l.appendChild(s), o.appendChild(l)) : s = l.firstChild;
1099
1099
  var d = {};
1100
- d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
1100
+ d.header = {}, d.header.cssClass = null, d.header.verticalAlignment = "center", d.header.horizontalAlignment = "center", d.column = r.ab(n, r), "function" == typeof r.onBeforeHeaderRender && (DayPilot.Util.copyProps(n, d.header, ["id", "start", "name", "html", "backColor", "toolTip", "areas"]), r.onBeforeHeaderRender(d), DayPilot.Util.copyProps(d.header, n, ["html", "backColor", "toolTip", "areas", "cssClass", "verticalAlignment", "horizontalAlignment"])), n.toolTip && (s.title = n.toolTip), n.cssClass && DayPilot.Util.addClass(l, n.cssClass), n.backColor && (s.style.background = n.backColor), n.areas && DayPilot.Areas.attach(l, n);
1101
1101
  var c = n.verticalAlignment;
1102
1102
  if (c)
1103
1103
  switch (s.style.display = "flex", c) {
@@ -1109,6 +1109,17 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1109
1109
  break;
1110
1110
  case "bottom": s.style.alignItems = "flex-end";
1111
1111
  }
1112
+ var u = n.horizontalAlignment;
1113
+ if (u)
1114
+ switch (u) {
1115
+ case "center":
1116
+ s.style.justifyContent = "center";
1117
+ break;
1118
+ case "left":
1119
+ s.style.justifyContent = "flex-start";
1120
+ break;
1121
+ case "right": s.style.justifyContent = "flex-end";
1122
+ }
1112
1123
  l.firstChild.innerHTML = r.Ra(n.name, n.html);
1113
1124
  }
1114
1125
  for (var i = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], a = this.va, n = a.length, o = 0; o < n; o++)
@@ -1117,7 +1128,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1117
1128
  var t = this.data, i = r.ab(t), a = {};
1118
1129
  a.header = {}, a.header.id = t.id, a.header.name = t.name, a.header.start = t.start, a.column = i, a.originalEvent = e, a.shift = e.shiftKey, a.ctrl = e.ctrlKey, a.meta = e.metaKey, a.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof r.onHeaderClick && (r.onHeaderClick(a), a.preventDefault.value) || "function" == typeof r.onHeaderClicked && r.onHeaderClicked(a);
1119
1130
  } }, this.ab = function (e) { return new DayPilot.CalendarColumn(e, r); }, this.bb = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.ga = function () { var e = this.nav.header, t = !0, i = this.va; for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1120
- this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.$a(t); }, 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) { var t = null; if (e instanceof DayPilot.Event)
1131
+ this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0); this.headerCreated = !0; this.$a(t); }, 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)); }, this.events = {}, this.events.add = function (e) { var t = null; if (e instanceof DayPilot.Event)
1121
1132
  t = e.data;
1122
1133
  else {
1123
1134
  if ("object" != typeof e)
@@ -1299,7 +1310,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1299
1310
  }
1300
1311
  }(), "undefined" == typeof DayPilot)
1301
1312
  var DayPilot = {};
1302
- if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.4.622-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1313
+ if (function () { "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (e) { this.v = "2024.4.631-lite"; var t = "navigator_" + (new Date).getTime(), i = this; this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () { 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)
1303
1314
  for (var t in e)
1304
1315
  this[t] = e[t]; }, 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 () { var e = this.C(); if (!e)
1305
1316
  return this.date; var t = null; if (t = "INPUT" === e.tagName ? e.value : e.innerText, !t)
@@ -1329,7 +1340,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1329
1340
  "use strict";
1330
1341
  if ("undefined" == typeof DayPilot.Menu || !DayPilot.Menu.def) {
1331
1342
  var e = function () { }, t = {};
1332
- t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; 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) { o = o || {}; var r = null; 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) {
1343
+ t.mouse = null, t.menu = null, t.handlersRegistered = !1, t.hideTimeout = null, t.waitingSubmenu = null, DayPilot.Menu = function (i) { var a = this, n = null; this.v = "2024.4.631-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) { o = o || {}; var r = null; 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) {
1333
1344
  a.cssOnly || (a.cssOnly = !0);
1334
1345
  var s = null;
1335
1346
  if (i && i.isRow && i.$.row.task ? (s = new DayPilot.Task(i.$.row.task, i.calendar), s.menuType = "resource") : s = i && i.isEvent && i.data.task ? new DayPilot.Task(i, i.calendar) : i, "function" == typeof a.onShow) {
@@ -1425,28 +1436,28 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1425
1436
  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 = "";
1426
1437
  var M = d.offsetHeight, H = d.offsetWidth;
1427
1438
  d.style.display = "none";
1428
- var T = document.documentElement.clientHeight, A = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1439
+ var A = document.documentElement.clientHeight, T = window.innerWidth, E = "number" == typeof o.windowMargin ? o.windowMargin : 5;
1429
1440
  if (function () { var e = o.initiator; if (e) {
1430
1441
  var t = e.div, i = e.e, a = e.area, r = a.visibility || a.v || "Visible", s = e.a;
1431
1442
  if ("Visible" !== r && (s = DayPilot.Areas.createArea(t, i, a), t.appendChild(s), n = s), s) {
1432
1443
  var l = DayPilot.abs(s);
1433
1444
  o.x = l.x, o.y = l.y + l.h + 2;
1434
1445
  }
1435
- } }(), function () { 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; if (i - a > T - M && 0 !== T) {
1436
- var r = i - a - (T - M) + E;
1446
+ } }(), function () { 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; if (i - a > A - M && 0 !== A) {
1447
+ var r = i - a - (A - M) + E;
1437
1448
  d.style.top = i - r + "px";
1438
1449
  }
1439
1450
  else
1440
- d.style.top = i + "px"; if ("right" === o.align && (e -= H), e - n > A - H && 0 !== A) {
1441
- var s = e - n - (A - H) + E;
1451
+ d.style.top = i + "px"; if ("right" === o.align && (e -= H), e - n > T - H && 0 !== T) {
1452
+ var s = e - n - (T - H) + E;
1442
1453
  d.style.left = e - s + "px";
1443
1454
  }
1444
1455
  else
1445
1456
  d.style.left = e + "px"; }(), o.parentLink) {
1446
1457
  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;
1447
- B + H > A && (B = Math.max(0, R.x - H));
1458
+ B + H > T && (B = Math.max(0, R.x - H));
1448
1459
  var O = document.body.scrollTop + document.documentElement.scrollTop;
1449
- z + M - O > T && (z = Math.max(0, T - M + O)), d.style.left = B + "px", d.style.top = z + "px";
1460
+ z + M - O > A && (z = Math.max(0, A - M + O)), d.style.left = B + "px", d.style.top = z + "px";
1450
1461
  }
1451
1462
  d.style.display = "", this.addShadow(d), this.Gb.div = d, o.submenu || (DayPilot.Menu.active = this);
1452
1463
  } }, this.Ib = function (e, t) { var i = e, n = t.source; if ((!a.Gb.submenu || a.Gb.submenu.item !== e) && (a.Gb.submenu && a.Gb.submenu.item !== e && (DayPilot.Util.removeClass(a.Gb.submenu.link.parentNode, a.Hb("item_haschildren_active")), a.Gb.submenu.menu.hide(), a.Gb.submenu = null), e.items)) {
@@ -1511,20 +1522,29 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1511
1522
  var e = this.list[this.list.length - 1];
1512
1523
  e && e.stretch();
1513
1524
  } }, DayPilot.ModalStatic.last = function () { var e = DayPilot.ModalStatic.list; return e.length > 0 ? e[e.length - 1] : null; };
1514
- var i = function () { if ("undefined" == typeof window) {
1515
- var e = {};
1516
- return e.add = function () { }, e.commit = function () { }, e;
1517
- } var t = document.createElement("style"); t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t); var i = !!t.styleSheet, e = {}; return e.rules = [], e.commit = function () { try {
1518
- i && (t.styleSheet.cssText = this.rules.join("\n"));
1519
- }
1520
- catch (e) { } }, e.add = function (e, a, n) { if (i)
1521
- return void this.rules.push(e + "{" + a + "}"); if (t.sheet.insertRule)
1522
- "undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n);
1523
- else {
1524
- if (!t.sheet.addRule)
1525
- throw "No CSS registration method found";
1526
- t.sheet.addRule(e, a, n);
1527
- } }, e; }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
1525
+ var i = function () {
1526
+ if ("undefined" == typeof window) {
1527
+ var e = {};
1528
+ return e.add = function () { }, e.commit = function () { }, e;
1529
+ }
1530
+ var t = document.createElement("style");
1531
+ t.setAttribute("type", "text/css"), t.styleSheet || t.appendChild(document.createTextNode("")), (document.head || document.getElementsByTagName("head")[0]).appendChild(t);
1532
+ var i = !!t.styleSheet, e = {};
1533
+ return e.rules = [], e.commit = function () { try {
1534
+ i && (t.styleSheet.cssText = this.rules.join("\n"));
1535
+ }
1536
+ catch (e) { } }, e.add = function (e, a, n) {
1537
+ if (i)
1538
+ return void this.rules.push(e + "{" + a + "}");
1539
+ if (t.sheet.insertRule)
1540
+ "undefined" == typeof n && (n = t.sheet.cssRules.length), t.sheet.insertRule(e + "{" + a + "}", n);
1541
+ else {
1542
+ if (!t.sheet.addRule)
1543
+ throw "No CSS registration method found";
1544
+ t.sheet.addRule(e, a, n);
1545
+ }
1546
+ }, e;
1547
+ }, a = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxwYXRoCiAgICAgICBpZD0icGF0aDMxNzMiCiAgICAgICBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojOTk5OTk5O3N0cm9rZS13aWR0aDoxLjg1MTk2ODUzO3N0cm9rZS1saW5lY2FwOnJvdW5kO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZSIKICAgICAgIGQ9Ik0gMC45NTQxNDgzOCwwLjY4MTYwMzEgNS4wMzkwNjI1LDUuNDExNTM4NiA5LjEyMzk3NjYsMC42ODE2MDMxIgogICAgICAgIC8+CiAgPC9nPgo8L3N2Zz4K", n = new i;
1528
1548
  n.add(".modal_default_main", "border: 10px solid #ccc; max-width: 90%;"), n.add(".modal_default_main:focus", "outline: none;"), n.add(".modal_default_content", "padding: 10px 0px;"), n.add(".modal_default_inner", "padding: 20px;"), n.add(".modal_default_input", "padding: 10px 0px;"), n.add(".modal_default_buttons", "margin-top: 10px;"), n.add(".modal_default_buttons", "padding: 10px 0px;"), n.add(".modal_default_form_item", "padding: 10px 0px; position: relative;"), n.add(".modal_default_form_item_level1", "border-left: 2px solid #ccc; margin-left: 10px; padding-left: 20px;"), n.add(".modal_default_form_item.modal_default_form_title", "font-size: 1.5rem; font-weight: bold;"), n.add(".modal_default_form_item input[type=text]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item textarea", "width: 100%; height: 200px; box-sizing: border-box;"), n.add(".modal_default_form_item input[type=select]", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item label", "display: block;"), n.add(".modal_default_form_item select", "width: 100%; box-sizing: border-box;"), n.add(".modal_default_form_item_label", "margin: 2px 0px;"), n.add(".modal_default_form_item_image img", "max-width: 100%; height: auto;"), n.add(".modal_default_form_item_invalid", ""), n.add(".modal_default_form_item_invalid_message", "position: absolute; right: 0px; top: 9px; background-color: red; color: #ffffff; padding: 2px; border-radius: 2px;"), n.add(".modal_default_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_default_ok", "padding: 3px; width: 80px;"), n.add(".modal_default_cancel", "padding: 3px; width: 80px;"), n.add(".modal_default_form_item_date", "position: relative;"), n.add(".modal_default_form_item_date:after", "content: ''; position: absolute; right: 7px; top: 50%; margin-top: 3px; width: 10px; height: 15px; background-image:url(" + "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIgogICB3aWR0aD0iMTAiCiAgIGhlaWdodD0iMTUiCj4KICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLDUpIj4KICAgIDxyZWN0CiAgICAgICBzdHlsZT0iZmlsbDojY2NjY2NjO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lO3N0cm9rZS13aWR0aDoxLjM4MDM3MzM2O3N0cm9rZS1saW5lY2FwOmJ1dHQ7c3Ryb2tlLWxpbmVqb2luOnJvdW5kO3N0cm9rZS1taXRlcmxpbWl0OjQ7c3Ryb2tlLWRhc2hhcnJheTpub25lO3N0cm9rZS1vcGFjaXR5OjEiCiAgICAgICBpZD0icmVjdDE5MjgiCiAgICAgICB3aWR0aD0iOS45MTUzMDYxIgogICAgICAgaGVpZ2h0PSIxMS4zNjkzNyIKICAgICAgIHg9IjAuMTE3MTg3NSIKICAgICAgIHk9Ii0zLjAwOTk5NTciCiAgICAgICByeT0iMS4zMTE4NTA1IiAvPgogICAgPHJlY3QKICAgICAgIHN0eWxlPSJmaWxsOiNjY2NjY2M7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmU7c3Ryb2tlLXdpZHRoOjEuNTk4MTQwMTI7c3Ryb2tlLWxpbmVjYXA6YnV0dDtzdHJva2UtbGluZWpvaW46cm91bmQ7c3Ryb2tlLW1pdGVybGltaXQ6NDtzdHJva2UtZGFzaGFycmF5Om5vbmU7c3Ryb2tlLW9wYWNpdHk6MSIKICAgICAgIGlkPSJyZWN0MTkzMCIKICAgIC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k6MTtzdHJva2U6bm9uZTtzdHJva2Utd2lkdGg6MS40MjE4OTE5MztzdHJva2UtbGluZWNhcDpidXR0O3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbWl0ZXJsaW1pdDo0O3N0cm9rZS1kYXNoYXJyYXk6bm9uZTtzdHJva2Utb3BhY2l0eToxIiAvPgogIDwvZz4KPC9zdmc+Cg==" + ")"), "undefined" != typeof navigator && navigator.userAgent.indexOf("Edge") !== -1 && n.add(".modal_default_form_item_date input::-ms-clear", "display: none;"), n.add(".modal_default_form_item_scrollable_scroll", "width: 100%; height: 200px; box-sizing: border-box; border: 1px solid #ccc; overflow-y: auto;"), n.add(".modal_default_form_item_scrollable_scroll_content", "padding: 5px;"), n.add(".modal_default_form_item_searchable", "position: relative;"), n.add(".modal_default_form_item_searchable_icon", ""), n.add(".modal_default_form_item_searchable_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_searchable_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_searchable_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_searchable_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_time", "position: relative;"), n.add(".modal_default_form_item_time_icon", ""), n.add(".modal_default_form_item_time_icon:after", "content:''; position: absolute; right: 5px; top: 50%; margin-top: -8px; width: 10px; height: 15px; background-image:url(" + a + ");"), n.add(".modal_default_form_item_time_list", "box-sizing: border-box; border: 1px solid #999; max-height: 150px; overflow-y: auto;"), n.add(".modal_default_form_item_time_list_item", "background: white; padding: 2px; cursor: default;"), n.add(".modal_default_form_item_time_list_item_highlight", "background: #ccc;"), n.add(".modal_default_form_item_datetime_parent", "display: flex;"), n.add(".modal_default_form_item_datetime .modal_default_form_item_time_main", "margin-left: 5px;"), n.add(".modal_default_form_item_datetime input[type='text'].modal_default_input_date ", ""), n.add(".modal_default_form_item_tabular_main", "margin-top: 10px;"), n.add(".modal_default_form_item_tabular_table", "display: table; width: 100%; xbackground-color: #fff; border-collapse: collapse;"), n.add(".modal_default_form_item_tabular_tbody", "display: table-row-group;"), n.add(".modal_default_form_item_tabular_row", "display: table-row;"), n.add(".modal_default_form_item_tabular_row.modal_default_form_item_tabular_header", ""), n.add(".modal_default_form_item_tabular_cell.modal_default_form_item_tabular_rowaction", "padding: 0px; width: 23px;"), n.add(".modal_default_form_item_tabular_cell", "display: table-cell; border: 0px; padding: 2px 2px 2px 0px; cursor: default; vertical-align: bottom;"), n.add(".modal_default_form_item_tabular_header .modal_default_form_item_tabular_cell", "padding-left: 0px; padding-bottom: 0px;"), n.add(".modal_default_form_item_tabular_table input[type=text], .modal_default_form_item_tabular_table input[type=number]", "width:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_table select", "width:100%; height:100%; box-sizing: border-box;"), n.add(".modal_default_form_item_tabular_plus", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_plus:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSA1LjAgMC41IEwgNS4wIDkuNSBNIDAuNSA1LjAgTCA5LjUgNS4wJyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_delete", "display: inline-block; background-color: #ccc; color: white; width: 20px; height: 20px; border-radius: 10px; box-sizing: border-box; position: relative; margin-left: 3px; margin-top: 3px; cursor: pointer;"), n.add(".modal_default_form_item_tabular_delete:after", "content: ''; position: absolute; left: 5px; top: 5px; width: 10px; height: 10px; background-image: url(\"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2Zyc+PHBhdGggZD0nTSAwLjUgMC41IEwgOS41IDkuNSBNIDAuNSA5LjUgTCA5LjUgMC41JyBzdHlsZT0nZmlsbDpub25lO3N0cm9rZTojZmZmZmZmO3N0cm9rZS13aWR0aDoyO3N0cm9rZS1saW5lam9pbjpyb3VuZDtzdHJva2UtbGluZWNhcDpidXR0JyAvPjwvc3ZnPg==\")"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_plus_max.modal_default_form_item_tabular_plus", "display: none;"), n.add(".modal_default_form_item_tabular_disabled .modal_default_form_item_tabular_delete", "visibility: hidden;"), n.add(".modal_default_form_item_tabular_empty", "height: 1px; margin: 5px 23px 5px 0px; background-color: #ccc;"), n.add(".modal_default_form_item_tabular_spacer .modal_default_form_item_tabular_cell", "padding: 0px;"), n.add(".modal_min_main", "border: 1px solid #ccc; max-width: 90%;"), n.add(".modal_min_background", "opacity: 0.5; background-color: #000;"), n.add(".modal_min_ok", "padding: 3px 10px;"), n.add(".modal_min_cancel", "padding: 3px 10px;"), n.add(".navigator_modal_main", "border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;"), n.add(".navigator_modal_main *, .navigator_modal_main *:before, .navigator_modal_main *:after", "box-sizing: content-box;"), n.add(".navigator_modal_month", "font-size: 11px;"), n.add(".navigator_modal_day", "color: black;"), n.add(".navigator_modal_weekend", "background-color: #f0f0f0;"), n.add(".navigator_modal_dayheader", "color: black;"), n.add(".navigator_modal_line", "border-bottom: 1px solid #c0c0c0;"), n.add(".navigator_modal_dayother", "color: gray;"), n.add(".navigator_modal_todaybox", "border: 1px solid red;"), n.add(".navigator_modal_title, .navigator_modal_titleleft, .navigator_modal_titleright", "border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;"), n.add(".navigator_modal_busy", "font-weight: bold;"), n.add(".navigator_modal_cell", "text-align: center;"), n.add(".navigator_modal_select .navigator_modal_cell_box", "background-color: #FFE794; opacity: 0.5;"), n.add(".navigator_modal_title", "text-align: center;"), n.add(".navigator_modal_titleleft, .navigator_modal_titleright", "text-align: center;"), n.add(".navigator_modal_dayheader", "text-align: center;"), n.add(".navigator_modal_weeknumber", "text-align: center;"), n.add(".navigator_modal_cell_text", "cursor: pointer;"), n.commit(), DayPilot.Modal = function (e) { this.autoFocus = !0, this.focus = null, this.autoStretch = !0, this.autoStretchFirstLoadOnly = !1, this.className = null, this.theme = "modal_default", this.disposeOnClose = !0, this.dragDrop = !0, this.loadingHtml = null, this.maxHeight = null, this.scrollWithPage = !0, this.useIframe = !0, this.zIndex = 99999, this.left = null, this.width = 600, this.top = 20, this.height = 200, this.locale = null, this.closed = null, this.onClose = null, this.onClosed = null, this.onShow = null; var t = this; this.id = "_" + (new Date).getTime() + "n" + 10 * Math.random(), this.Ob = !1, this.Pb = null, this.Qb = null, this.showHtml = function (e) { if (DayPilot.ModalStatic.displayed(this))
1529
1549
  throw "This modal dialog is already displayed."; if (this.div || this.Rb(), this.hb(), this.useIframe) {
1530
1550
  var t = function (e, t) { return function () { e.setInnerHTML(e.id + "iframe", t); }; };
@@ -1668,48 +1688,46 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function (D
1668
1688
  else
1669
1689
  i();
1670
1690
  r = c.valid;
1671
- } return r; }, r.prototype.load = function () { var e = this; this.form.forEach(function (t) { e.processFormItem(t, 0); }); var i; try {
1672
- var a = JSON.stringify(this.data);
1673
- i = t(JSON.parse(a));
1674
- }
1675
- catch (e) {
1676
- throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1677
- } for (var n in i)
1678
- this.setValue(n, i[n]); }, r.prototype.setValue = function (e, t) { this.oc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.pc ? this.pc : this.oc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) {
1679
- var i = this, a = this.getFieldType(e), n = [];
1680
- if ("radio" === a) {
1681
- if (e.name) {
1682
- var o = new s;
1683
- o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
1684
- }
1685
- e.options.forEach(function (o) {
1686
- var r = new s;
1687
- r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r),
1688
- n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); });
1689
- });
1690
- }
1691
- else if ("title" === a) {
1692
- var o = new s;
1693
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
1691
+ } return r; }, r.prototype.load = function () {
1692
+ var e = this;
1693
+ this.form.forEach(function (t) { e.processFormItem(t, 0); });
1694
+ var i;
1695
+ try {
1696
+ var a = JSON.stringify(this.data);
1697
+ i = t(JSON.parse(a));
1694
1698
  }
1695
- else if ("image" === a) {
1696
- var o = new s;
1697
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1698
- }
1699
- else if ("html" === a) {
1700
- var o = new s;
1701
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1702
- }
1703
- else if ("scrollable" === a) {
1704
- var o = new s;
1705
- o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1699
+ catch (e) {
1700
+ throw new Error("The 'data' object is not serializable (it may contain circular dependencies): " + e);
1706
1701
  }
1707
- else {
1702
+ for (var n in i)
1703
+ this.setValue(n, i[n]);
1704
+ }, r.prototype.setValue = function (e, t) { this.oc.forEach(function (i) { i.applyValue(e, t); }); }, r.prototype.updateDependentState = function () { var e = this, t = [!0]; (this.pc ? this.pc : this.oc).forEach(function (i) { var a = e.updateState(i, { enabled: t[i.level] && !i.data.disabled }); a.isValue && (t[a.level + 1] = a.enabled && a.checked); }); }, r.prototype.processFormItem = function (e, t) { var i = this, a = this.getFieldType(e), n = []; if ("radio" === a) {
1705
+ if (e.name) {
1708
1706
  var o = new s;
1709
- o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.oc.push(o), n.push(o);
1707
+ o.field = e.id, o.data = e, o.level = t, o.type = "label", o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
1710
1708
  }
1711
- return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n;
1712
- }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1709
+ e.options.forEach(function (o) { var r = new s; r.field = e.id, r.data = o, r.level = t, r.type = a, r.isValue = !0, r.text = o.name, r.resolved = o.id, i.oc.push(r), n.push(r), o.children && o.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); }); });
1710
+ }
1711
+ else if ("title" === a) {
1712
+ var o = new s;
1713
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = e.name, i.oc.push(o), n.push(o);
1714
+ }
1715
+ else if ("image" === a) {
1716
+ var o = new s;
1717
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1718
+ }
1719
+ else if ("html" === a) {
1720
+ var o = new s;
1721
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1722
+ }
1723
+ else if ("scrollable" === a) {
1724
+ var o = new s;
1725
+ o.isValue = !0, o.field = e.id, o.data = e, o.level = t, o.type = a, o.interactive = !1, o.text = null, i.oc.push(o), n.push(o);
1726
+ }
1727
+ else {
1728
+ var o = new s;
1729
+ o.field = e.id, o.data = e, o.level = t, o.type = a, o.text = e.name, o.children = [], i.oc.push(o), n.push(o);
1730
+ } return "checkbox" === a && (o.isValue = !0, o.resolved = !0, e.children && e.children.forEach(function (e) { var a = i.processFormItem(e, t + 1); n = n.concat(a); })), n; }, r.prototype.doOnKey = function (e) { if ("function" == typeof this.onKey) {
1713
1731
  var t = { key: e };
1714
1732
  this.onKey(t);
1715
1733
  } }, r.prototype.createInteractive = function (e) { var t = this, i = { "label": function () { return new l; }, "title": function () { return new l; }, "image": function () { var t = new l, i = document.createElement("img"); return i.src = e.data.image, t.element = i, t; }, "html": function () { var t = new l, i = document.createElement("div"); return "string" == typeof e.data.text ? i.innerText = e.data.text : "string" == typeof e.data.html && (i.innerHTML = e.data.html), t.element = i, t; }, "scrollable": function () { var i = new l, a = document.createElement("div"); a.className = t.theme + "_form_item_scrollable_scroll", e.data.height && (a.style.height = e.data.height + "px"); var n = document.createElement("div"); return n.className = t.theme + "_form_item_scrollable_scroll_content", "string" == typeof e.data.text ? n.innerText = e.data.text : "string" == typeof e.data.html && (n.innerHTML = e.data.html), a.appendChild(n), i.element = a, i; }, "text": function () { var i = new l; i.apply = function (e) { i.row = e; var t = i.element; t.value = e.value, t.disabled = !e.enabled; }; var a = document.createElement("input"); return a.name = e.field, a.type = "text", a.autocomplete = "off", a.onkeydown = function (e) { var i = !1; switch (e.keyCode) {
@@ -1843,7 +1861,7 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1843
1861
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
1844
1862
  var e = {}, t = DayPilot.Util.isVueVNode;
1845
1863
  e.Month = function (i, a) {
1846
- this.v = "2024.4.622-lite", this.nav = {};
1864
+ this.v = "2024.4.631-lite", this.nav = {};
1847
1865
  var n = this;
1848
1866
  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) { var t = null; if (e instanceof DayPilot.Event)
1849
1867
  t = e.data;
@@ -1979,26 +1997,22 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
1979
1997
  var a = i.cache || i.data, o = a.borderRadius || n.eventBorderRadius;
1980
1998
  "number" == typeof o && (o += "px");
1981
1999
  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");
1982
- 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) {
1983
- t = t || window.event;
1984
- var a = t.which || t.button;
1985
- if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
1986
- if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
1987
- var o = {};
1988
- 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,
1989
- o.direction = this.style.cursor, e.resizingEvent = o;
1990
- }
1991
- else if ("move" === this.style.cursor || i.client.moveEnabled()) {
1992
- n.clearShadow();
1993
- var c = DayPilot.mo3(n.nav.top, t);
1994
- if (!c)
1995
- return;
1996
- 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);
1997
- h && (m += h);
1998
- var p = {};
1999
- 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;
2000
- }
2001
- }, f.onmousemove = function (t) { if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
2000
+ f.setAttribute("unselectable", "on"),
2001
+ 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) { t = t || window.event; var a = t.which || t.button; if (t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(), 1 === a)
2002
+ if (e.movingEvent = null, "w-resize" === this.style.cursor || "e-resize" === this.style.cursor) {
2003
+ var o = {};
2004
+ 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, o.direction = this.style.cursor, e.resizingEvent = o;
2005
+ }
2006
+ else if ("move" === this.style.cursor || i.client.moveEnabled()) {
2007
+ n.clearShadow();
2008
+ var c = DayPilot.mo3(n.nav.top, t);
2009
+ if (!c)
2010
+ return;
2011
+ 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);
2012
+ h && (m += h);
2013
+ var p = {};
2014
+ 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;
2015
+ } }, f.onmousemove = function (t) { if ("undefined" != typeof e && !e.movingEvent && !e.resizingEvent) {
2002
2016
  var a = DayPilot.mo3(f, t);
2003
2017
  if (a) {
2004
2018
  f.deleteIcon && (f.deleteIcon.style.display = "");
@@ -2324,84 +2338,106 @@ if ("undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function ()
2324
2338
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.def) {
2325
2339
  var e = DayPilot.Util.isVueVNode;
2326
2340
  DayPilot.Navigator = function (t, i) {
2327
- this.v = "2024.4.622-lite";
2341
+ this.v = "2024.4.631-lite";
2328
2342
  var a = this;
2329
2343
  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 () { if (!r.ad())
2330
- return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.fd = function () { return r.ad() ? null : r.cellWidth(); }, this.gd = function (e) { return "number" != typeof e && (e = 1), r.ad() ? this.ed() * e : this.fd() * e; }, this.hd = function (e) { var t = r.ad() ? "%" : "px"; return this.gd(e) + t; }, this.Vc = function (t, i) { var n = {}; n.cells = [], n.days = [], n.weeks = []; var o = this.startDate.addMonths(t), s = i.before, l = i.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6; n.rowCount = f; var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd(); n.width = p; var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight; n.height = v; var y = document.createElement("div"); if (r.ad() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
2331
- y.style.position = "absolute", r.ad() ? (y.style.left = 100 / a.showMonths * t + "%", n.leftPct = 100 / a.showMonths * t) : y.style.left = p * t + "px", y.style.top = "0px", n.top = 0, n.left = p * t;
2332
- else {
2333
- y.style.position = "relative";
2334
- var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
2335
- n.top = g, n.left = 0, n.leftPct = 0;
2336
- } y.className = this.K("_month"), y.style.cursor = "default", y.style.MozUserSelect = "none", y.style.KhtmlUserSelect = "none", y.style.WebkitUserSelect = "none", y.month = n, n.div = y, this.root.appendChild(y); var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div"); D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.hd(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_titleleft"), i.left && (D.style.cursor = "pointer", D.innerHTML = "<span>&lt;</span>", D.onclick = this.jd), y.appendChild(D), this.tl = D; var w = document.createElement("div"); w.style.position = "absolute", w.style.left = a.hd(), w.style.top = "0px", w.style.width = a.hd(a.showWeekNumbers ? 6 : 5), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_title"), w.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(w), this.ti = w; var x = document.createElement("div"); x.style.position = "absolute", x.style.left = a.hd(a.showWeekNumbers ? 7 : 6), x.style.right = a.hd(a.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = a.hd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), i.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.kd), y.appendChild(x), this.tr = x; var C = (this.bd(), a.showWeekNumbers ? 1 : 0); if (this.showWeekNumbers)
2337
- for (var P = 0; P < f; P++) {
2338
- var k = c.addDays(7 * P), _ = null;
2339
- switch (this.weekNumberAlgorithm) {
2340
- case "Auto":
2341
- _ = 1 === r.weekStarts() ? k.weekNumberISO() : k.weekNumber();
2342
- break;
2343
- case "US":
2344
- _ = k.weekNumber();
2345
- break;
2346
- case "ISO8601":
2347
- _ = k.weekNumberISO();
2348
- break;
2349
- default: throw "Unknown weekNumberAlgorithm value.";
2344
+ return null; var e = 7; return this.showWeekNumbers && e++, 100 / e; }, this.fd = function () { return r.ad() ? null : r.cellWidth(); }, this.gd = function (e) { return "number" != typeof e && (e = 1), r.ad() ? this.ed() * e : this.fd() * e; }, this.hd = function (e) { var t = r.ad() ? "%" : "px"; return this.gd(e) + t; }, this.Vc = function (t, i) {
2345
+ var n = {};
2346
+ n.cells = [], n.days = [], n.weeks = [];
2347
+ var o = this.startDate.addMonths(t), s = i.before, l = i.after, d = o.firstDayOfMonth(), c = d.firstDayOfWeek(r.weekStarts()), u = d.addMonths(1), h = DayPilot.DateUtil.daysDiff(c, u), f = "Auto" === this.rowsPerMonth ? Math.ceil(h / 7) : 6;
2348
+ n.rowCount = f;
2349
+ var m = (new DayPilot.Date).getDatePart(), p = 7 * r.cellWidth() + this.bd();
2350
+ n.width = p;
2351
+ var v = this.cellHeight * f + this.titleHeight + this.dayHeaderHeight;
2352
+ n.height = v;
2353
+ var y = document.createElement("div");
2354
+ if (r.ad() ? "Horizontal" === this.orientation && (y.style.width = 100 / a.showMonths + "%") : y.style.width = p + "px", y.style.height = v + "px", "Horizontal" === this.orientation)
2355
+ y.style.position = "absolute", r.ad() ? (y.style.left = 100 / a.showMonths * t + "%", n.leftPct = 100 / a.showMonths * t) : y.style.left = p * t + "px", y.style.top = "0px", n.top = 0, n.left = p * t;
2356
+ else {
2357
+ y.style.position = "relative";
2358
+ var g = t > 0 ? a.months[t - 1].top + a.months[t - 1].height : 0;
2359
+ n.top = g, n.left = 0, n.leftPct = 0;
2360
+ }
2361
+ y.className = this.K("_month"), y.style.cursor = "default", y.style.MozUserSelect = "none", y.style.KhtmlUserSelect = "none", y.style.WebkitUserSelect = "none", y.month = n, n.div = y, this.root.appendChild(y);
2362
+ var b = this.titleHeight + this.dayHeaderHeight, D = document.createElement("div");
2363
+ D.style.position = "absolute", D.style.left = "0px", D.style.right = "0px", D.style.top = "0px", D.style.width = a.hd(), D.style.height = this.titleHeight + "px", D.style.lineHeight = this.titleHeight + "px", D.setAttribute("unselectable", "on"), D.className = this.K("_titleleft"), i.left && (D.style.cursor = "pointer", D.innerHTML = "<span>&lt;</span>", D.onclick = this.jd), y.appendChild(D), this.tl = D;
2364
+ var w = document.createElement("div");
2365
+ w.style.position = "absolute", w.style.left = a.hd(), w.style.top = "0px", w.style.width = a.hd(a.showWeekNumbers ? 6 : 5), w.style.height = this.titleHeight + "px", w.style.lineHeight = this.titleHeight + "px", w.setAttribute("unselectable", "on"), w.className = this.K("_title"), w.innerHTML = r.locale().monthNames[o.getMonth()] + " " + o.getYear(), y.appendChild(w), this.ti = w;
2366
+ var x = document.createElement("div");
2367
+ x.style.position = "absolute", x.style.left = a.hd(a.showWeekNumbers ? 7 : 6), x.style.right = a.hd(a.showWeekNumbers ? 7 : 6), x.style.top = "0px", x.style.width = a.hd(), x.style.height = this.titleHeight + "px", x.style.lineHeight = this.titleHeight + "px", x.setAttribute("unselectable", "on"), x.className = this.K("_titleright"), i.right && (x.style.cursor = "pointer", x.innerHTML = "<span>&gt;</span>", x.onclick = this.kd), y.appendChild(x), this.tr = x;
2368
+ var C = (this.bd(), a.showWeekNumbers ? 1 : 0);
2369
+ if (this.showWeekNumbers)
2370
+ for (var P = 0; P < f; P++) {
2371
+ var k = c.addDays(7 * P), _ = null;
2372
+ switch (this.weekNumberAlgorithm) {
2373
+ case "Auto":
2374
+ _ = 1 === r.weekStarts() ? k.weekNumberISO() : k.weekNumber();
2375
+ break;
2376
+ case "US":
2377
+ _ = k.weekNumber();
2378
+ break;
2379
+ case "ISO8601":
2380
+ _ = k.weekNumberISO();
2381
+ break;
2382
+ default: throw "Unknown weekNumberAlgorithm value.";
2383
+ }
2384
+ var S = document.createElement("div");
2385
+ S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.hd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
2350
2386
  }
2387
+ for (var M = 0; M < 7; M++) {
2388
+ n.cells[M] = [];
2351
2389
  var S = document.createElement("div");
2352
- S.style.position = "absolute", S.style.left = "0px", S.style.right = "0px", S.style.top = P * this.cellHeight + b + "px", S.style.width = a.hd(), S.style.height = this.cellHeight + "px", S.style.lineHeight = this.cellHeight + "px", S.setAttribute("unselectable", "on"), S.className = this.K("_weeknumber"), S.innerHTML = "<span>" + _ + "</span>", y.appendChild(S), n.weeks.push(S);
2353
- } for (var M = 0; M < 7; M++) {
2354
- n.cells[M] = [];
2355
- var S = document.createElement("div");
2356
- 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);
2357
- for (var P = 0; P < f; P++) {
2358
- 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);
2359
- if ("month" === this.nd())
2360
- H = H && T;
2361
- else if ("day" === this.nd())
2362
- H = H && (T || s && A || l && E);
2363
- else if ("week" === this.nd()) {
2364
- var N = k.firstDayOfMonth() === o;
2365
- H = H && (N || s && A || l && E);
2366
- }
2367
- var I = document.createElement("div");
2368
- n.cells[M][P] = I;
2369
- var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
2370
- 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";
2371
- var U = document.createElement("div");
2372
- 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);
2373
- var L = null;
2374
- this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
2375
- var j = L || {};
2376
- 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) {
2377
- var W = {};
2378
- W.cell = j, a.onBeforeCellRender(W), L = W.cell;
2379
- }
2380
- if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), T || s && A || l && E) {
2381
- var F = document.createElement("div");
2382
- 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);
2383
- }
2384
- I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () { if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
2385
- var t = {};
2386
- if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
2387
- var i = U;
2388
- if (i) {
2389
- t.Fa = i;
2390
- if (e(t.element)) {
2391
- if (!a.Ha.Ga)
2392
- throw new DayPilot.Exception("Can't reach Vue");
2393
- a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
2390
+ 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);
2391
+ for (var P = 0; P < f; P++) {
2392
+ var k = c.addDays(7 * P + M), H = this.md(k) && "none" !== this.nd(), A = k.firstDayOfMonth() === o, T = k < o, E = k >= o.addMonths(1);
2393
+ if ("month" === this.nd())
2394
+ H = H && A;
2395
+ else if ("day" === this.nd())
2396
+ H = H && (A || s && T || l && E);
2397
+ else if ("week" === this.nd()) {
2398
+ var N = k.firstDayOfMonth() === o;
2399
+ H = H && (N || s && T || l && E);
2400
+ }
2401
+ var I = document.createElement("div");
2402
+ n.cells[M][P] = I;
2403
+ var R = a.od(M, P), B = R.x, z = R.y, O = r.ad() ? "%" : "px";
2404
+ I.day = k, I.x = M, I.y = P, I.left = B, I.top = z, I.isCurrentMonth = A, I.isNextMonth = E, I.isPrevMonth = T, I.showBefore = s, I.showAfter = l, I.className = this.K(A ? "_day" : "_dayother"), a.cd(I, "cell"), k.getTime() === m.getTime() && A && 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";
2405
+ var U = document.createElement("div");
2406
+ U.style.position = "absolute", U.className = k.getTime() === m.getTime() && A ? 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);
2407
+ var L = null;
2408
+ this.cells && this.cells[k.toStringSortable()] && (L = this.cells[k.toStringSortable()]);
2409
+ var j = L || {};
2410
+ if (j.day = k, j.isCurrentMonth = A, j.isToday = k.getTime() === m.getTime() && A, 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) {
2411
+ var W = {};
2412
+ W.cell = j, a.onBeforeCellRender(W), L = W.cell;
2413
+ }
2414
+ if (L && DayPilot.Util.addClass(I, L.cssClass || L.css), A || s && T || l && E) {
2415
+ var F = document.createElement("div");
2416
+ 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);
2417
+ }
2418
+ I.setAttribute("unselectable", "on"), I.onclick = this.pd, function () {
2419
+ if ("function" == typeof a.onBeforeCellDomAdd || "function" == typeof a.onBeforeCellDomRemove) {
2420
+ var t = {};
2421
+ if (t.control = a, t.cell = j, t.element = null, I.domArgs = t, "function" == typeof a.onBeforeCellDomAdd && a.onBeforeCellDomAdd(t), t.element) {
2422
+ var i = U;
2423
+ if (i) {
2424
+ t.Fa = i;
2425
+ if (e(t.element)) {
2426
+ if (!a.Ha.Ga)
2427
+ throw new DayPilot.Exception("Can't reach Vue");
2428
+ a.Ha.Ia = !0, a.Ha.La(t.element, i), a.Ha.Ia = !1;
2429
+ }
2430
+ else
2431
+ i.appendChild(t.element);
2432
+ }
2394
2433
  }
2395
- else
2396
- i.appendChild(t.element);
2397
2434
  }
2398
- }
2399
- } }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
2435
+ }(), y.appendChild(I), H && (a.qd(y, M, P), this.selected.push(I));
2436
+ }
2400
2437
  }
2401
- } var J = document.createElement("div"); 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); }, 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) {
2402
- var n = e.month.cells[t][i];
2403
- a.cd(n, "select");
2404
- }, 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 () { if (this.items)
2438
+ var J = document.createElement("div");
2439
+ 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);
2440
+ }, 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) { var n = e.month.cells[t][i]; a.cd(n, "select"); }, 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 () { if (this.items)
2405
2441
  for (var e = 0; e < this.showMonths; e++)
2406
2442
  for (var t = 0; t < 7; t++)
2407
2443
  for (var i = 0; i < 6; i++) {