@daypilot/daypilot-lite-angular 3.6.0 → 3.7.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.
@@ -103,7 +103,7 @@ DayPilot Lite
103
103
  Copyright (c) 2005 - 2022 Annpoint s.r.o.
104
104
  http://www.daypilot.org/
105
105
  Licensed under Apache Software License 2.0
106
- Version: 2022.3.389-lite
106
+ Version: 2022.3.391-lite
107
107
  */
108
108
  if ("undefined" == typeof DayPilot)
109
109
  var DayPilot = {};
@@ -644,7 +644,7 @@ if ("undefined" == typeof DayPilot)
644
644
  if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
645
645
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
646
646
  var s = this;
647
- this.uniqueID = null, this.v = "2022.3.389-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.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.onBeforeEventRender = 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
647
+ this.uniqueID = null, this.v = "2022.3.391-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.columnMarginRight = 5, this.columnsLoadMethod = "GET", this.days = 1, this.durationBarVisible = !0, this.eventHeaderHeight = 14, this.eventHeaderVisible = !0, this.eventsLoadMethod = "GET", this.headerHeight = 30, this.height = 300, this.heightSpec = "BusinessHours", this.hideUntilInit = !0, this.hourWidth = 60, this.initScrollPos = "Auto", this.loadingLabelText = "Loading...", this.loadingLabelVisible = !0, this.loadingLabelBackColor = "ff0000", this.loadingLabelFontColor = "#ffffff", this.loadingLabelFontFamily = "Tahoma, Arial, Helvetica, sans-serif", this.loadingLabelFontSize = "10pt", 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.timeRangeSelectedHandling = "Enabled", this.eventClickHandling = "Enabled", this.eventResizeHandling = "Update", this.eventMoveHandling = "Update", this.eventDeleteHandling = "Disabled", this.onBeforeEventRender = 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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.clearSelection = function () { t.topSelectedCell = null, t.bottomSelectedCell = null, this.f(); }, this.f = function () { DayPilot.de(s.elements.selection), s.elements.selection = [], s.nav.activeSelection = null; }, this.g = navigator && navigator.userAgent && navigator.userAgent.indexOf("MSIE") !== -1, this.h = navigator && navigator.userAgent && navigator.userAgent.indexOf("Firefox") !== -1, this.i = function () {
648
648
  if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
649
649
  return new Number(RegExp.$1) >= 10.5;
650
650
  }
@@ -1465,33 +1465,47 @@ if ("undefined" == typeof DayPilot)
1465
1465
  var DayPilot = {};
1466
1466
  !function () {
1467
1467
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1468
- this.v = "2022.3.389-lite";
1468
+ this.v = "2022.3.391-lite";
1469
1469
  var e = "navigator_" + (new Date).getTime(), i = this;
1470
- this.prepare = function () {
1471
- if (this.locale = "en-us", this.target = null, this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.cssClassPrefix = "navigator_default", this.theme = null, this.patterns = [], t)
1470
+ this.onShow = null, this.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.prepare = function () {
1471
+ if (this.locale = "en-us", this.target = null, this.targetAlignment = "left", this.resetTarget = !0, this.pattern = this.a.locale().datePattern, this.theme = "navigator_default", this.patterns = [], this.zIndex = null, t)
1472
1472
  for (var e in t)
1473
1473
  this[e] = t[e];
1474
- this.init();
1475
- }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t && this.c(this.date), DayPilot.re(document, "mousedown", function () { i.close(); }); }, this.close = function () { this.d && (this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.b = function () {
1476
- var t = this.e();
1474
+ }, this.init = function () { this.date = new DayPilot.Date(this.date); var t = this.b(); this.resetTarget && !t ? this.c(this.date) : this.resetTarget || (i.date = t); var e = this.d(); return e && e.addEventListener("input", function () { i.date = i.b(), i.date && i.navigator.select(i.date, { dontNotify: !0 }); }), document.addEventListener("mousedown", function () { i.close(); }), this; }, this.close = function () { this.e && (this.e = !1, this.navigator && this.navigator.dispose(), this.div.innerHTML = "", this.div && this.div.parentNode === document.body && document.body.removeChild(this.div)); }, this.setDate = function (t) { this.date = new DayPilot.Date(t), this.c(this.date); }, this.b = function () {
1475
+ var t = this.d();
1477
1476
  if (!t)
1478
1477
  return this.date;
1479
1478
  var e = null;
1480
1479
  if (e = "INPUT" === t.tagName ? t.value : t.innerText, !e)
1481
1480
  return null;
1482
- for (var a = DayPilot.Date.parse(e, i.pattern), n = 0; n < i.patterns.length; n++) {
1483
- if (a)
1484
- return a;
1485
- a = DayPilot.Date.parse(e, i.patterns[n]);
1481
+ for (var n = DayPilot.Date.parse(e, i.pattern), a = 0; a < i.patterns.length; a++) {
1482
+ if (n)
1483
+ return n;
1484
+ n = DayPilot.Date.parse(e, i.patterns[a]);
1486
1485
  }
1487
- return a;
1486
+ return n;
1488
1487
  }, this.c = function (t) {
1489
- var e = this.e();
1488
+ var e = this.d();
1490
1489
  if (e) {
1491
- var a = t.toString(i.pattern, i.locale);
1492
- "INPUT" === e.tagName ? e.value = a : e.innerHTML = a;
1490
+ var n = t.toString(i.pattern, i.locale);
1491
+ "INPUT" === e.tagName ? e.value = n : e.innerHTML = n;
1492
+ }
1493
+ }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.d = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, Object.defineProperty(this, "visible", { get: function () { return i.e; } }), this.show = function () {
1494
+ if (!this.e) {
1495
+ var t = this.d(), n = this.navigator, n = new DayPilot.Navigator(e);
1496
+ n.api = 2, n.cssOnly = !0, n.theme = i.theme, n.weekStarts = "Auto", n.locale = i.locale, n.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start.addTime(n.f), a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = n;
1497
+ var a = DayPilot.abs(t), o = t.offsetHeight, s = i.targetAlignment, r = document.createElement("div");
1498
+ r.style.position = "absolute", "left" === s && (r.style.left = a.x + "px"), r.style.top = a.y + o + "px", i.zIndex && (r.style.zIndex = i.zIndex);
1499
+ var l = document.createElement("div");
1500
+ l.id = e, r.appendChild(l), r.addEventListener("mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r;
1501
+ var h = i.b() || (new DayPilot.Date).getDatePart();
1502
+ if (n.startDate = h, n.f = h.getTimePart(), n.selectionDay = h.getDatePart(), n.init(), "right" === s) {
1503
+ var d = a.x + t.offsetWidth - n.nav.top.offsetWidth;
1504
+ r.style.left = d + "px";
1505
+ }
1506
+ this.e = !0, this.onShow && this.onShow();
1493
1507
  }
1494
- }, this.a = {}, this.a.locale = function () { return DayPilot.Locale.find(i.locale); }, this.e = function () { var t = this.target; return t && t.nodeType && 1 === t.nodeType ? t : document.getElementById(t); }, this.show = function () { var t = this.e(), a = this.navigator, a = new DayPilot.Navigator(e); a.api = 2, a.theme = i.theme || i.cssClassPrefix, a.weekStarts = "Auto", a.locale = i.locale, a.timeRangeSelectedHandling = "JavaScript", a.onTimeRangeSelected = function (t) { i.date = t.start; var e = t.start, a = e.toString(i.pattern, i.locale), t = {}; t.start = e, t.date = e, t.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof i.onTimeRangeSelect && (i.onTimeRangeSelect(t), t.preventDefault.value) || (i.c(a), i.close(), "function" == typeof i.onTimeRangeSelected && i.onTimeRangeSelected(t)); }, this.navigator = a; var n = DayPilot.abs(t), o = t.offsetHeight, r = document.createElement("div"); r.style.position = "absolute", r.style.left = n.x + "px", r.style.top = n.y + o + "px"; var s = document.createElement("div"); s.id = e, r.appendChild(s), DayPilot.re(r, "mousedown", function (t) { var t = t || window.event; t.cancelBubble = !0, t.stopPropagation && t.stopPropagation(); }), document.body.appendChild(r), this.div = r; var l = i.b() || (new DayPilot.Date).getDatePart(); a.startDate = l, a.selectionDay = l, a.init(), this.d = !0; }, this.prepare();
1508
+ }, this.prepare(), this.init();
1495
1509
  });
1496
1510
  }();
1497
1511
  "undefined" == typeof DayPilot && (DayPilot = {}), function (DayPilot) {
@@ -2209,7 +2223,7 @@ if ("undefined" == typeof DayPilot)
2209
2223
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2210
2224
  var t = {};
2211
2225
  t.Month = function (e, i) {
2212
- this.v = "2022.3.389-lite", this.nav = {};
2226
+ this.v = "2022.3.391-lite", this.nav = {};
2213
2227
  var n = this;
2214
2228
  this.id = e, this.isMonth = !0, this.api = 2, this.backendUrl = null, this.cellHeaderHeight = 24, this.cellHeight = 100, this.cssClassPrefix = "month_default", this.eventBarVisible = !0, 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 = 1, 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.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.onTimeRangeSelect = null, this.onTimeRangeSelected = null, this.cellEvents = [], this.elements = {}, this.elements.events = [], this.cache = {}, this.a = function (t, e) { var t = JSON.parse(t); return t.CallBackRedirect ? void (document.location.href = t.CallBackRedirect) : "None" === t.UpdateType ? void n.fireAfterRenderDetached(t.CallBackData, !0) : (n.events.list = t.Events, "Full" === t.UpdateType && (n.startDate = t.StartDate, n.timeFormat = t.TimeFormat ? t.TimeFormat : n.timeFormat, "undefined" != typeof t.WeekStarts && (n.weekStarts = t.WeekStarts), n.hashes = t.Hashes), n.b(), n.c(), n.d(), "Full" === t.UpdateType && (n.f(), n.g()), n.h(), n.show(), n.i(), void n.fireAfterRenderDetached(t.CallBackData, !0)); }, this.fireAfterRenderDetached = function (t, e) { var i = function (t, e) { return function () { n.afterRender && n.afterRender(t, e); }; }; window.setTimeout(i(t, e), 0); }, this.lineHeight = function () { return this.eventHeight + this.lineSpace; }, this.events = {}, this.events.add = function (t) {
2215
2229
  var e = null;
@@ -2765,7 +2779,7 @@ if ("undefined" == typeof DayPilot)
2765
2779
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2766
2780
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
2767
2781
  DayPilot.Navigator = function (t, e) {
2768
- this.v = "2022.3.389-lite";
2782
+ this.v = "2022.3.391-lite";
2769
2783
  var i = this;
2770
2784
  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.a = {}, this.b = function () { this.root.dp = this, this.root.className = this.c("_main"), "Horizontal" === this.orientation ? (this.root.style.width = this.showMonths * (7 * a.cellWidth() + this.d()) + "px", this.root.style.height = 6 * this.cellHeight + this.titleHeight + this.dayHeaderHeight + "px") : this.root.style.width = 7 * a.cellWidth() + this.d() + "px", this.rtl && (this.root.style.direction = "rtl"), this.root.style.position = "relative", this.visible || (this.root.style.display = "none"); var t = document.createElement("input"); t.type = "hidden", t.name = i.id + "_state", t.id = t.name, this.root.appendChild(t), this.state = t, this.startDate ? this.startDate = new DayPilot.Date(this.startDate).firstDayOfMonth() : this.startDate = DayPilot.Date.fromYearMonthDay(this.year, this.month), this.calendars = [], this.selected = [], this.months = []; }, this.e = function () { return 2 === i.api; }, this.f = function () { this.root.innerHTML = ""; }, this.c = function (t) { var e = this.theme || this.cssClassPrefix; return e ? e + t : ""; }, this.g = function (t, e) { var i = this.c("_" + e); DayPilot.Util.addClass(t, i); }, this.h = function (t, e) { var i = this.c("_" + e); DayPilot.Util.removeClass(t, i); }, this.i = function (t, e) {
2771
2785
  var s = {};