@daypilot/daypilot-lite-angular 3.3.0 → 3.4.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.
- package/esm2020/lib/core/daypilot-core.mjs +11 -9
- package/fesm2015/daypilot-daypilot-lite-angular.mjs +10 -6
- package/fesm2015/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/fesm2020/daypilot-daypilot-lite-angular.mjs +10 -8
- package/fesm2020/daypilot-daypilot-lite-angular.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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.2.
|
|
106
|
+
Version: 2022.2.374-lite
|
|
107
107
|
*/
|
|
108
108
|
if ("undefined" == typeof DayPilot)
|
|
109
109
|
var DayPilot = {};
|
|
@@ -646,7 +646,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
646
646
|
if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
|
|
647
647
|
throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
|
|
648
648
|
var s = this;
|
|
649
|
-
this.uniqueID = null, this.v = "2022.2.
|
|
649
|
+
this.uniqueID = null, this.v = "2022.2.374-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.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 () {
|
|
650
650
|
if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
|
|
651
651
|
return new Number(RegExp.$1) >= 10.5;
|
|
652
652
|
}
|
|
@@ -1199,6 +1199,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
1199
1199
|
}
|
|
1200
1200
|
s.events.list || (s.events.list = []), s.events.list.push(t), s.update(), s.Q.notify();
|
|
1201
1201
|
}, this.events.find = function (e) {
|
|
1202
|
+
if (!s.events.list)
|
|
1203
|
+
return null;
|
|
1202
1204
|
for (var t = 0; t < s.events.list.length; t++) {
|
|
1203
1205
|
var i = s.events.list[t];
|
|
1204
1206
|
if (i.id === e)
|
|
@@ -1419,7 +1421,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
1419
1421
|
var DayPilot = {};
|
|
1420
1422
|
!function () {
|
|
1421
1423
|
"undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
|
|
1422
|
-
this.v = "2022.2.
|
|
1424
|
+
this.v = "2022.2.374-lite";
|
|
1423
1425
|
var e = "navigator_" + (new Date).getTime(), i = this;
|
|
1424
1426
|
this.prepare = function () {
|
|
1425
1427
|
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)
|
|
@@ -2100,7 +2102,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2100
2102
|
if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
|
|
2101
2103
|
var t = {};
|
|
2102
2104
|
t.Month = function (e, i) {
|
|
2103
|
-
this.v = "2022.2.
|
|
2105
|
+
this.v = "2022.2.374-lite", this.nav = {};
|
|
2104
2106
|
var n = this;
|
|
2105
2107
|
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) {
|
|
2106
2108
|
var e = null;
|
|
@@ -2113,6 +2115,8 @@ if ("undefined" == typeof DayPilot)
|
|
|
2113
2115
|
}
|
|
2114
2116
|
n.events.list || (n.events.list = []), n.events.list.push(e), n.update(), n.j.notify();
|
|
2115
2117
|
}, this.events.find = function (t) {
|
|
2118
|
+
if (!n.events.list)
|
|
2119
|
+
return null;
|
|
2116
2120
|
for (var e = 0; e < n.events.list.length; e++) {
|
|
2117
2121
|
var i = n.events.list[e];
|
|
2118
2122
|
if (i.id === t)
|
|
@@ -2654,7 +2658,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2654
2658
|
"undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
|
|
2655
2659
|
if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
|
|
2656
2660
|
DayPilot.Navigator = function (t, e) {
|
|
2657
|
-
this.v = "2022.2.
|
|
2661
|
+
this.v = "2022.2.374-lite";
|
|
2658
2662
|
var i = this;
|
|
2659
2663
|
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) {
|
|
2660
2664
|
var s = {};
|
|
@@ -2739,7 +2743,7 @@ if ("undefined" == typeof DayPilot)
|
|
|
2739
2743
|
for (var e = 0; e < 7; e++)
|
|
2740
2744
|
for (var i = 0; i < 6; i++) {
|
|
2741
2745
|
var s = this.months[t].cells[e][i];
|
|
2742
|
-
s && (1 === this.items[s.day.toStringSortable()] ? this.g(s, "busy") : this.h(s, "busy"));
|
|
2746
|
+
s && (1 === this.items[s.day.toStringSortable()] ? (this.g(s, "busy"), this.h(s, "free")) : (this.h(s, "busy"), this.g(s, "free")));
|
|
2743
2747
|
}
|
|
2744
2748
|
}, this.t = function () { var t = {}; t.startDate = i.startDate, t.selectionStart = i.selectionStart, t.selectionEnd = i.selectionEnd.addDays(1), i.state.value = JSON.stringify(t); }, this.n = function () { return (this.selectMode || "").toLowerCase(); }, this.u = function () {
|
|
2745
2749
|
var t = this.selectionDay || this.selectionStart;
|