@daypilot/daypilot-lite-angular 3.4.0 → 3.5.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.2.374-lite
106
+ Version: 2022.2.384-lite
107
107
  */
108
108
  if ("undefined" == typeof DayPilot)
109
109
  var DayPilot = {};
@@ -492,7 +492,7 @@ if ("undefined" == typeof DayPilot)
492
492
  }, DayPilot.ColorUtil.rgbToHex = function (e) { return "#" + t(e.r) + t(e.g) + t(e.b); }, DayPilot.ColorUtil.adjustLuminance = function (e, t) { return { r: e.r + t, g: e.g + t, b: e.b + t }; }, DayPilot.ColorUtil.darker = function (e, t) { var a = DayPilot.ColorUtil.hexToRgb(e); t = t || 1; var r = 17, o = t * r, n = DayPilot.ColorUtil.adjustLuminance(a, -o); return DayPilot.ColorUtil.rgbToHex(n); }, DayPilot.Event = function (e, t, a) {
493
493
  var r = this;
494
494
  this.calendar = t, this.data = e ? e : {}, this.part = a ? a : {}, "undefined" == typeof this.data.id && (this.data.id = this.data.value);
495
- var o = {}, n = ["id", "text", "start", "end"];
495
+ var o = {}, n = ["id", "text", "start", "end", "resource"];
496
496
  this.isEvent = !0, this.temp = function () {
497
497
  if (o.dirty)
498
498
  return o;
@@ -511,7 +511,7 @@ if ("undefined" == typeof DayPilot)
511
511
  }
512
512
  }, this.dirty = function () { return o.dirty; }, this.id = function (e) { return "undefined" == typeof e ? r.data.id : void (this.temp().id = e); }, this.value = function (e) { return "undefined" == typeof e ? r.id() : void r.id(e); }, this.text = function (e) { return "undefined" == typeof e ? r.data.text : (this.temp().text = e, void this.client.innerHTML(e)); }, this.start = function (e) {
513
513
  return "undefined" == typeof e ? new DayPilot.Date(r.data.start) : void (this.temp().start = new DayPilot.Date(e));
514
- }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
514
+ }, this.end = function (e) { return "undefined" == typeof e ? new DayPilot.Date(r.data.end) : void (this.temp().end = new DayPilot.Date(e)); }, this.resource = function (e) { return "undefined" == typeof e ? r.data.resource : void (this.temp().resource = e); }, this.partStart = function () { return new DayPilot.Date(this.part.start); }, this.partEnd = function () { return new DayPilot.Date(this.part.end); }, this.tag = function (e) {
515
515
  var t = r.data.tag;
516
516
  if (!t)
517
517
  return null;
@@ -629,15 +629,13 @@ if ("undefined" == typeof DayPilot)
629
629
  var a = t.movingShadow.offsetTop;
630
630
  t.deleteShadow(t.movingShadow);
631
631
  var n = t.moving.event, o = t.movingShadow.column;
632
- t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto";
633
- var r = i || window.event;
634
- n.calendar.b(n, o, a, r);
632
+ t.moving = null, t.movingShadow = null, n.calendar.nav.top.style.cursor = "auto", n.calendar.b(n, o, a, i);
635
633
  }
636
634
  else if (t.selecting && null !== t.topSelectedCell) {
637
- var h = t.selecting.calendar;
635
+ var r = t.selecting.calendar;
638
636
  t.selecting = !1;
639
- var c = h.getSelection();
640
- h.c(c.start, c.end), "Hold" !== h.timeRangeSelectedHandling && "HoldForever" !== h.timeRangeSelectedHandling && e();
637
+ var h = r.getSelection();
638
+ r.c(h.start, h.end, h.resource), "Hold" !== r.timeRangeSelectedHandling && "HoldForever" !== r.timeRangeSelectedHandling && e();
641
639
  }
642
640
  else
643
641
  t.selecting = !1;
@@ -646,7 +644,7 @@ if ("undefined" == typeof DayPilot)
646
644
  if (this instanceof t.Calendar && !this.d && (n = !0, this.d = !0), !n)
647
645
  throw "DayPilot.Calendar() is a constructor and must be called as 'var c = new DayPilot.Calendar(id);'";
648
646
  var s = this;
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 () {
647
+ this.uniqueID = null, this.v = "2022.2.384-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 () {
650
648
  if (/Opera[\/\s](\d+\.\d+)/.test(navigator.userAgent)) {
651
649
  return new Number(RegExp.$1) >= 10.5;
652
650
  }
@@ -796,38 +794,38 @@ if ("undefined" == typeof DayPilot)
796
794
  }, this.b = function (e, t, i, n) {
797
795
  var a = 1, l = Math.floor((i - a) / s.cellHeight), o = 30 * l * 60 * 1e3, r = e.start(), h = e.end(), c = new Date;
798
796
  r instanceof DayPilot.Date && (r = r.toDate()), c.setTime(Date.UTC(r.getUTCFullYear(), r.getUTCMonth(), r.getUTCDate()));
799
- var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.columns[t], p = v.start.getTime(), f = new Date;
800
- f.setTime(p + o + d);
801
- var g = new DayPilot.Date(f), m = g.addTime(u);
797
+ var d = r.getTime() - (c.getTime() + 3600 * r.getUTCHours() * 1e3 + 30 * Math.floor(r.getUTCMinutes() / 30) * 60 * 1e3), u = h.getTime() - r.getTime(), v = this.S[t], p = v.id, f = v.start.getTime(), g = new Date;
798
+ g.setTime(f + o + d);
799
+ var m = new DayPilot.Date(g), y = m.addTime(u);
802
800
  if (s.O()) {
803
- var y = {};
804
- if (y.e = e, y.newStart = g, y.newEnd = m, y.ctrl = n.ctrlKey, y.shift = n.shiftKey, y.control = s, y.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.Q.apply(function () { s.onEventMove(y); }), y.preventDefault.value))
801
+ var b = {};
802
+ if (b.e = e, b.newStart = m, b.newEnd = y, b.newResource = p, b.ctrl = n.ctrlKey, b.shift = n.shiftKey, b.control = s, b.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onEventMove && (s.Q.apply(function () { s.onEventMove(b); }), b.preventDefault.value))
805
803
  return;
806
804
  switch (s.eventMoveHandling) {
807
805
  case "PostBack":
808
- s.eventMovePostBack(e, g, m, v.Value);
806
+ s.eventMovePostBack(e, m, y, v.id);
809
807
  break;
810
808
  case "CallBack":
811
- s.eventMoveCallBack(e, g, m, v.Value);
809
+ s.eventMoveCallBack(e, m, y, v.id);
812
810
  break;
813
- case "Update": e.start(g), e.end(m), s.events.update(e);
811
+ case "Update": e.start(m), e.end(y), e.resource(p), s.events.update(e);
814
812
  }
815
- "function" == typeof s.onEventMoved && s.Q.apply(function () { s.onEventMoved(y); });
813
+ "function" == typeof s.onEventMoved && s.Q.apply(function () { s.onEventMoved(b); });
816
814
  }
817
815
  else
818
816
  switch (s.eventMoveHandling) {
819
817
  case "PostBack":
820
- s.eventMovePostBack(e, g, m, v.Value);
818
+ s.eventMovePostBack(e, m, y, v.id);
821
819
  break;
822
820
  case "CallBack":
823
- s.eventMoveCallBack(e, g, m, v.Value);
821
+ s.eventMoveCallBack(e, m, y, v.id);
824
822
  break;
825
- case "JavaScript": s.onEventMove(e, g, m, v.Value, !1);
823
+ case "JavaScript": s.onEventMove(e, m, y, v.id, !1);
826
824
  }
827
- }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t) {
825
+ }, this.timeRangeSelectedPostBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.k("TimeRangeSelected", n, s); }, this.timeRangeSelectedCallBack = function (e, t, i, n) { var s = {}; s.start = e, s.end = t, this.m("TimeRangeSelected", n, s); }, this.c = function (e, t, i) {
828
826
  if (e = new DayPilot.Date(e), t = new DayPilot.Date(t), this.O()) {
829
- var i = {};
830
- if (i.start = e, i.end = t, i.control = s, i.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.Q.apply(function () { s.onTimeRangeSelect(i); }), i.preventDefault.value))
827
+ var n = {};
828
+ if (n.start = e, n.end = t, n.resource = i, n.control = s, n.preventDefault = function () { this.preventDefault.value = !0; }, "function" == typeof s.onTimeRangeSelect && (s.Q.apply(function () { s.onTimeRangeSelect(n); }), n.preventDefault.value))
831
829
  return;
832
830
  switch (s.timeRangeSelectedHandling) {
833
831
  case "PostBack":
@@ -835,7 +833,7 @@ if ("undefined" == typeof DayPilot)
835
833
  break;
836
834
  case "CallBack": s.timeRangeSelectedCallBack(e, t);
837
835
  }
838
- "function" == typeof s.onTimeRangeSelected && s.Q.apply(function () { s.onTimeRangeSelected(i); });
836
+ "function" == typeof s.onTimeRangeSelected && s.Q.apply(function () { s.onTimeRangeSelected(n); });
839
837
  }
840
838
  else
841
839
  switch (s.timeRangeSelectedHandling) {
@@ -847,15 +845,15 @@ if ("undefined" == typeof DayPilot)
847
845
  break;
848
846
  case "JavaScript": s.onTimeRangeSelected(e, t);
849
847
  }
850
- }, this.S = function (e) {
848
+ }, this.T = function (e) {
851
849
  if (!t.selecting && "Disabled" !== s.timeRangeSelectedHandling) {
852
- var i = window.event ? window.event.button : e.which;
850
+ var i = e.which;
853
851
  if (1 === i || 0 === i)
854
- return t.firstMousePos = DayPilot.mc(e || window.event), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.T(), !1;
852
+ return t.firstMousePos = DayPilot.mc(e), t.selecting = {}, t.selecting.calendar = s, t.selectedCells && (s.clearSelection(), t.selectedCells = []), t.column = t.getColumn(this), t.selectedCells.push(this), t.firstSelected = this, t.topSelectedCell = this, t.bottomSelectedCell = this, s.U(), !1;
855
853
  }
856
- }, this.T = function () {
854
+ }, this.U = function () {
857
855
  this.getSelection();
858
- !function () { return; }(), function () {
856
+ !function () {
859
857
  var e = t.topSelectedCell, i = t.bottomSelectedCell, n = function () {
860
858
  if (e.data)
861
859
  return e.data.x;
@@ -863,7 +861,7 @@ if ("undefined" == typeof DayPilot)
863
861
  if (t[i] === e)
864
862
  return i;
865
863
  return -1;
866
- }(), a = s.columns[n];
864
+ }(), a = s.S[n];
867
865
  if (a) {
868
866
  var l = a.start, o = s.getPixels(e.start, l).boxTop, r = s.getPixels(i.end, l).boxBottom, h = r - o, c = function () {
869
867
  if (s.nav.activeSelection)
@@ -876,12 +874,12 @@ if ("undefined" == typeof DayPilot)
876
874
  c.className = s.u("_shadow"), c.firstChild.innerHTML = "", c.style.top = o + "px", c.style.height = h + "px";
877
875
  }
878
876
  }();
879
- }, this.U = function (e) {
877
+ }, this.V = function (e) {
880
878
  if ("undefined" != typeof t && t.selecting) {
881
- var i = DayPilot.mc(e || window.event);
882
- t.getColumn(this) === t.column && (s.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.T());
879
+ var i = DayPilot.mc(e);
880
+ t.getColumn(this) === t.column && (s.clearSelection(), i.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(this), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(this), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.U());
883
881
  }
884
- }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end; return new DayPilot.Selection(e, i, null, s); }, this.V = function (e) { }, this.W = function (e) {
882
+ }, this.getSelection = function () { var e = t.topSelectedCell.start, i = t.bottomSelectedCell.end, n = t.topSelectedCell.resource; return new DayPilot.Selection(e, i, n, s); }, this.W = function (e) {
885
883
  if (e < 0)
886
884
  return null;
887
885
  for (var t = 0, i = s.nav.events.rows[0].cells, n = 0; n < i.length; n++) {
@@ -896,12 +894,36 @@ if ("undefined" == typeof DayPilot)
896
894
  e.x = s.W(s.coords.x);
897
895
  var t = 0, i = Math.floor((s.coords.y - t) / s.cellHeight);
898
896
  return e.y = i, e.x < 0 ? null : e;
897
+ }, this.columns = {}, this.columns.list = [], this.columns.load = function (e, t, i) {
898
+ if (!e)
899
+ throw new DayPilot.Exception("columns.load(): 'url' parameter required");
900
+ var n = function (e) { var t = {}; t.exception = e.exception, t.request = e.request, "function" == typeof i && i(t); }, a = function (e) {
901
+ var i, a = e.request;
902
+ try {
903
+ i = JSON.parse(a.responseText);
904
+ }
905
+ catch (e) {
906
+ var l = {};
907
+ return l.exception = e, void n(l);
908
+ }
909
+ if (DayPilot.isArray(i)) {
910
+ var o = {};
911
+ if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
912
+ return;
913
+ s.columns.list = i, s.Y && s.update();
914
+ }
915
+ };
916
+ s.columnsLoadMethod && "POST" === s.columnsLoadMethod.toUpperCase() ? DayPilot.ajax({ "method": "POST", "url": e, "success": a, "error": n }) : DayPilot.ajax({ "method": "GET", "url": e, "success": a, "error": n });
899
917
  }, this.B = function () {
900
- "Resources" !== s.viewType && (this.columns = this.Y());
901
- for (var e = 0; e < this.columns.length; e++)
902
- this.Z(this.columns[e]);
903
- }, this.Z = function (e) {
904
- e.start = new DayPilot.Date(e.start), e.putIntoBlock = function (e) {
918
+ var e;
919
+ e = "Resources" !== s.viewType ? this.Z() : s.columns.list, this.S = [];
920
+ for (var t = 0; t < e.length; t++) {
921
+ var i = this.$(e[t]);
922
+ this.S.push(i);
923
+ }
924
+ }, this.$ = function (e) {
925
+ var t = {};
926
+ return t.name = e.name, t.html = e.html, t.id = e.id, t.toolTip = e.toolTip, e.start ? t.start = new DayPilot.Date(e.start) : t.start = new DayPilot.Date(s.startDate), t.putIntoBlock = function (e) {
905
927
  for (var t = 0; t < this.blocks.length; t++) {
906
928
  var i = this.blocks[t];
907
929
  if (i.overlapsWith(e.part.top, e.part.height))
@@ -924,7 +946,7 @@ if ("undefined" == typeof DayPilot)
924
946
  return !0;
925
947
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
926
948
  }, i.events.push(e), i.min = e.part.top, i.max = e.part.top + e.part.height, this.blocks.push(i), this.blocks.length - 1;
927
- }, e.putIntoLine = function (e) {
949
+ }, t.putIntoLine = function (e) {
928
950
  for (var t = 0; t < this.lines.length; t++) {
929
951
  var i = this.lines[t];
930
952
  if (i.isFree(e.part.top, e.part.height))
@@ -939,8 +961,8 @@ if ("undefined" == typeof DayPilot)
939
961
  }
940
962
  return !0;
941
963
  }, i.push(e), this.lines.push(i), this.lines.length - 1;
942
- };
943
- }, this.Y = function () {
964
+ }, t;
965
+ }, this.Z = function () {
944
966
  var e = [], t = this.startDate.getDatePart(), i = this.days;
945
967
  switch (this.viewType) {
946
968
  case "Day":
@@ -957,7 +979,24 @@ if ("undefined" == typeof DayPilot)
957
979
  o.start = t.addDays(n), o.name = o.start.toString(l, a.locale()), e.push(o);
958
980
  }
959
981
  return e;
960
- }, this.visibleStart = function () { return this.columns[0].start; }, this.visibleEnd = function () { var e = this.columns.length - 1; return this.columns[e].start.addDays(1); }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
982
+ }, this.visibleStart = function () {
983
+ if ("Resources" === s.viewType) {
984
+ if (0 === s.S.length)
985
+ return DayPilot.Date.today();
986
+ var e = s.S.map(function (e) { return e.start.getTime(); }), t = Math.min.apply(null, e);
987
+ return new DayPilot.Date(t);
988
+ }
989
+ return this.S[0].start;
990
+ }, this.visibleEnd = function () {
991
+ if ("Resources" === s.viewType) {
992
+ if (0 === s.S.length)
993
+ return DayPilot.Date.today().addDays(1);
994
+ var e = s.S.map(function (e) { return e.start.getTime(); }), t = Math.max.apply(null, e);
995
+ return new DayPilot.Date(t).addDays(1);
996
+ }
997
+ var t = this.S.length - 1;
998
+ return this.S[t].start.addDays(1);
999
+ }, this.u = function (e) { var t = this.theme || this.cssClassPrefix; return t ? t + e : ""; }, this.p = function () {
961
1000
  if (this.elements.events)
962
1001
  for (var e = 0; e < this.elements.events.length; e++) {
963
1002
  var t = this.elements.events[e], i = t.event;
@@ -968,7 +1007,7 @@ if ("undefined" == typeof DayPilot)
968
1007
  t.helper = null, t.data = null, t.event = null, DayPilot.de(t);
969
1008
  }
970
1009
  this.elements.events = [];
971
- }, this.$ = function (e) {
1010
+ }, this._ = function (e) {
972
1011
  var i = e.cache || e.data, n = this.nav.events, a = document.createElement("div");
973
1012
  a.style.position = "absolute", a.style.left = e.part.left + "%", a.style.top = e.part.top + "px", a.style.width = e.part.width + "%", a.style.height = Math.max(e.part.height, 2) + "px", a.style.overflow = "hidden", a.data = e, a.event = e, a.unselectable = "on", a.style.MozUserSelect = "none", a.style.KhtmlUserSelect = "none", a.className = this.u("_event"), i.cssClass && DayPilot.Util.addClass(a, i.cssClass), a.isFirst = e.part.start.getTime() === e.start().getTime(), a.isLast = e.part.end.getTime() === e.end().getTime(), a.onclick = this.P, a.onmouseout = function (e) { a.deleteIcon && (a.deleteIcon.style.display = "none"); }, a.onmousemove = function (e) {
974
1013
  var i = s.eventHeaderVisible ? s.eventHeaderHeight : 10;
@@ -981,13 +1020,12 @@ if ("undefined" == typeof DayPilot)
981
1020
  }
982
1021
  }
983
1022
  }, a.onmousedown = function (e) {
984
- e = e || window.event;
985
1023
  var i = e.which || e.button;
986
1024
  if ("n-resize" !== this.style.cursor && "s-resize" !== this.style.cursor || 1 !== i) {
987
1025
  if (1 === i && "Disabled" !== s.eventMoveHandling) {
988
1026
  t.moving = this, t.moving.event = this.event;
989
1027
  var n = t.moving.helper = {};
990
- n.oldColumn = s.columns[this.data.part.dayIndex].Value, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
1028
+ n.oldColumn = s.S[this.data.part.dayIndex].id, t.originalMouse = DayPilot.mc(e), t.originalTop = this.offsetTop;
991
1029
  var a = DayPilot.mo3(this, e);
992
1030
  a ? t.moveOffsetY = a.y : t.moveOffsetY = 0, s.nav.top.style.cursor = "move";
993
1031
  }
@@ -1008,19 +1046,19 @@ if ("undefined" == typeof DayPilot)
1008
1046
  u.style.position = "absolute", u.style.right = "2px", u.style.top = "2px", u.style.width = "17px", u.style.height = "17px", u.className = s.u("_event_delete"), u.onmousedown = function (e) { e.stopPropagation(); }, u.onclick = function (e) { var t = this.parentNode.event; t && s.R(t); }, u.style.display = "none", a.deleteIcon = u, a.appendChild(u);
1009
1047
  }
1010
1048
  if (n.rows[0].cells[e.part.dayIndex]) {
1011
- n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s._(a);
1049
+ n.rows[0].cells[e.part.dayIndex].firstChild.appendChild(a), s.aa(a);
1012
1050
  }
1013
1051
  s.elements.events.push(a);
1014
- }, this._ = function (e) {
1052
+ }, this.aa = function (e) {
1015
1053
  for (var t = e && e.childNodes ? e.childNodes.length : 0, i = 0; i < t; i++)
1016
1054
  try {
1017
1055
  var n = e.childNodes[i];
1018
- 1 === n.nodeType && (n.unselectable = "on", this._(n));
1056
+ 1 === n.nodeType && (n.unselectable = "on", this.aa(n));
1019
1057
  }
1020
1058
  catch (e) { }
1021
1059
  }, this.I = function () {
1022
- for (var e = 0; e < this.columns.length; e++) {
1023
- var t = this.columns[e];
1060
+ for (var e = 0; e < this.S.length; e++) {
1061
+ var t = this.S[e];
1024
1062
  if (t.blocks)
1025
1063
  for (var i = 0; i < t.blocks.length; i++)
1026
1064
  for (var n = t.blocks[i], s = 0; s < n.lines.length; s++)
@@ -1028,13 +1066,13 @@ if ("undefined" == typeof DayPilot)
1028
1066
  var o = a[l];
1029
1067
  o.part.width = 100 / n.lines.length, o.part.left = o.part.width * s;
1030
1068
  var r = s === n.lines.length - 1;
1031
- r || (o.part.width = 1.5 * o.part.width), this.$(o);
1069
+ r || (o.part.width = 1.5 * o.part.width), this._(o);
1032
1070
  }
1033
1071
  }
1034
- }, this.aa = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.ba() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.ca(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.da(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.ea(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.da = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.ea(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.fa()), s.appendChild(this.ga()), e.appendChild(t), this.nav.zoom = e, e; }, this.fa = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.ga = function () {
1072
+ }, this.ba = function () { this.nav.top.innerHTML = "", DayPilot.Util.addClass(this.nav.top, this.u("_main")), this.nav.top.style.MozUserSelect = "none", this.nav.top.style.KhtmlUserSelect = "none", this.nav.top.style.position = "relative", this.nav.top.style.width = this.width ? this.width : "100%", this.hideUntilInit && (this.nav.top.style.visibility = "hidden"), this.visible || (this.nav.top.style.display = "none"), this.nav.scroll = document.createElement("div"), this.nav.scroll.style.height = this.ca() + "px", "BusinessHours" === this.heightSpec ? this.nav.scroll.style.overflow = "auto" : this.nav.scroll.style.overflow = "hidden", this.nav.scroll.style.position = "relative"; var e = this.da(); this.nav.top.appendChild(e), this.nav.scroll.style.zoom = 1; var t = this.ea(); this.nav.scrollable = t.firstChild, this.nav.scroll.appendChild(t), this.nav.top.appendChild(this.nav.scroll), this.nav.scrollLayer = document.createElement("div"), this.nav.scrollLayer.style.position = "absolute", this.nav.scrollLayer.style.top = "0px", this.nav.scrollLayer.style.left = "0px", this.nav.top.appendChild(this.nav.scrollLayer), this.nav.loading = document.createElement("div"), this.nav.loading.style.position = "absolute", this.nav.loading.style.top = "0px", this.nav.loading.style.left = this.hourWidth + 5 + "px", this.nav.loading.style.backgroundColor = this.loadingLabelBackColor, this.nav.loading.style.fontSize = this.loadingLabelFontSize, this.nav.loading.style.fontFamily = this.loadingLabelFontFamily, this.nav.loading.style.color = this.loadingLabelFontColor, this.nav.loading.style.padding = "2px", this.nav.loading.innerHTML = this.loadingLabelText, this.nav.loading.style.display = "none", this.nav.top.appendChild(this.nav.loading); }, this.G = function () { this.fasterDispose || DayPilot.pu(this.nav.hourTable), this.nav.scrollable.rows[0].cells[0].innerHTML = "", this.nav.hourTable = this.fa(), this.nav.scrollable.rows[0].cells[0].appendChild(this.nav.hourTable); }, this.ea = function () { var e = document.createElement("div"); e.style.zoom = 1, e.style.position = "relative"; var t = document.createElement("table"); t.cellSpacing = "0", t.cellPadding = "0", t.border = "0", t.style.border = "0px none", t.style.width = "100%", t.style.position = "absolute"; var i, n = t.insertRow(-1); i = n.insertCell(-1), i.valign = "top", i.style.padding = "0px", i.style.border = "0px none", this.nav.hourTable = this.fa(), i.appendChild(this.nav.hourTable), i = n.insertCell(-1), i.valign = "top", i.width = "100%", i.style.padding = "0px", i.style.border = "0px none"; var s = document.createElement("div"); return s.style.position = "relative", i.appendChild(s), s.appendChild(this.ga()), s.appendChild(this.ha()), e.appendChild(t), this.nav.zoom = e, e; }, this.ga = function () { var e = document.createElement("table"); return e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.main = e, this.nav.events = e, e; }, this.ha = function () {
1035
1073
  var e = document.createElement("table");
1036
1074
  e.style.top = "0px", e.cellPadding = "0", e.cellSpacing = "0", e.border = "0", e.style.position = "absolute", e.style.width = "100%", e.style.border = "0px none", e.style.tableLayout = "fixed", this.nav.events = e;
1037
- for (var t = this.columns, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1075
+ for (var t = this.S, i = t.length, n = e.insertRow(-1), a = 0; a < i; a++) {
1038
1076
  var l = n.insertCell(-1);
1039
1077
  l.style.padding = "0px", l.style.border = "0px none", l.style.height = "0px", l.style.overflow = "visible", s.rtl || (l.style.textAlign = "left");
1040
1078
  var o = document.createElement("div");
@@ -1043,13 +1081,13 @@ if ("undefined" == typeof DayPilot)
1043
1081
  l.selection = r, l.appendChild(o), l.appendChild(r);
1044
1082
  }
1045
1083
  return e;
1046
- }, this.ea = function () {
1084
+ }, this.fa = function () {
1047
1085
  var e = document.createElement("table");
1048
1086
  e.cellSpacing = "0", e.cellPadding = "0", e.border = "0", e.style.border = "0px none", e.style.width = this.hourWidth + "px", e.oncontextmenu = function () { return !1; };
1049
1087
  for (var t = s.J(), i = 0; i < t; i++)
1050
- this.ha(e, i);
1088
+ this.ia(e, i);
1051
1089
  return e;
1052
- }, this.ha = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.ba = function () {
1090
+ }, this.ia = function (e, t) { var i = 2 * this.cellHeight, n = e.insertRow(-1); n.style.height = i + "px"; var l = n.insertCell(-1); l.valign = "bottom", l.unselectable = "on", l.style.cursor = "default", l.style.padding = "0px", l.style.border = "0px none"; var o = document.createElement("div"); o.style.position = "relative", o.className = this.u("_rowheader"), o.style.width = this.hourWidth + "px", o.style.height = i + "px", o.style.overflow = "hidden", o.unselectable = "on"; var r = document.createElement("div"); r.className = this.u("_rowheader_inner"), r.unselectable = "on"; var h = document.createElement("div"); h.unselectable = "on"; var c = this.startDate.addHours(t).addHours(s.N()), d = c.getHours(), u = d < 12, v = a.timeFormat(); "Clock12Hours" === v && (d %= 12, 0 === d && (d = 12)), h.innerHTML = d; var p = document.createElement("span"); p.unselectable = "on", p.className = this.u("_rowheader_minutes"); var f; f = "Clock12Hours" === v ? u ? "AM" : "PM" : "00", p.innerHTML = f, h.appendChild(p), r.appendChild(h), o.appendChild(r), l.appendChild(o); }, this.ca = function () {
1053
1091
  switch (this.heightSpec) {
1054
1092
  case "Full": return 48 * this.cellHeight;
1055
1093
  case "BusinessHours":
@@ -1060,21 +1098,21 @@ if ("undefined" == typeof DayPilot)
1060
1098
  return e * this.cellHeight * 2;
1061
1099
  default: throw "DayPilot.Calendar: Unexpected 'heightSpec' value.";
1062
1100
  }
1063
- }, this.ia = function () {
1101
+ }, this.ja = function () {
1064
1102
  var e = s.nav.corner ? s.nav.corner.parentNode : null;
1065
1103
  if (e) {
1066
1104
  e.innerHTML = "";
1067
- var t = this.ja();
1105
+ var t = this.ka();
1068
1106
  e.appendChild(t), s.nav.corner = t;
1069
1107
  }
1070
- }, this.ca = function () {
1108
+ }, this.da = function () {
1071
1109
  var e = document.createElement("div");
1072
1110
  e.style.overflow = "auto";
1073
1111
  var t = document.createElement("table");
1074
1112
  t.cellPadding = "0", t.cellSpacing = "0", t.border = "0", t.style.width = "100%", t.style.borderCollapse = "separate", t.style.border = "0px none";
1075
1113
  var i = t.insertRow(-1), n = i.insertCell(-1);
1076
1114
  n.style.padding = "0px", n.style.border = "0px none";
1077
- var s = this.ja();
1115
+ var s = this.ka();
1078
1116
  n.appendChild(s), this.nav.corner = s, n = i.insertCell(-1), n.style.width = "100%", n.valign = "top", n.style.position = "relative", n.style.padding = "0px", n.style.border = "0px none", this.nav.header = document.createElement("table"), this.nav.header.cellPadding = "0", this.nav.header.cellSpacing = "0", this.nav.header.border = "0", this.nav.header.width = "100%", this.nav.header.style.tableLayout = "fixed", this.nav.header.oncontextmenu = function () { return !1; };
1079
1117
  var a = "hidden" !== this.nav.scroll.style.overflow;
1080
1118
  if (n.appendChild(this.nav.header), a) {
@@ -1085,7 +1123,7 @@ if ("undefined" == typeof DayPilot)
1085
1123
  o.className = this.u("_cornerright_inner"), l.appendChild(o), n.appendChild(l), this.nav.cornerRight = l;
1086
1124
  }
1087
1125
  return e.appendChild(t), e;
1088
- }, this.ja = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
1126
+ }, this.ka = function () { var e = document.createElement("div"); e.style.position = "relative", e.className = this.u("_corner"), e.style.width = this.hourWidth + "px", e.style.height = this.headerHeight + "px", e.oncontextmenu = function () { return !1; }; var t = document.createElement("div"); return t.unselectable = "on", t.className = this.u("_corner_inner"), e.appendChild(t), e; }, this.q = function () {
1089
1127
  var e = this.nav.main;
1090
1128
  e.root = null, e.onmouseup = null;
1091
1129
  for (var t = 0; t < e.rows.length; t++)
@@ -1095,7 +1133,7 @@ if ("undefined" == typeof DayPilot)
1095
1133
  }
1096
1134
  this.fasterDispose || DayPilot.pu(e);
1097
1135
  }, this.F = function () {
1098
- var e = this.nav.main, i = 18e5, n = this.M(), a = s.columns;
1136
+ var e = this.nav.main, i = 18e5, n = this.M(), a = s.S;
1099
1137
  for (e && this.q(); e && e.rows && e.rows.length > 0;)
1100
1138
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1101
1139
  this.tableCreated = !0;
@@ -1111,19 +1149,19 @@ if ("undefined" == typeof DayPilot)
1111
1149
  }
1112
1150
  for (var v = 0; v < n; v++) {
1113
1151
  var r = e.insertRow(-1);
1114
- r.style.MozUserSelect = "none", r.style.KhtmlUserSelect = "none";
1152
+ r.style.MozUserSelect = "none",
1153
+ r.style.KhtmlUserSelect = "none";
1115
1154
  for (var h = 0; h < l; h++) {
1116
- var p = this.columns[h], c = r.insertCell(-1);
1117
- c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.onmousedown = this.S, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1155
+ var p = this.S[h], c = r.insertCell(-1);
1156
+ c.start = p.start.addTime(v * i), c.end = c.start.addTime(i), c.resource = p.id, c.onmousedown = this.T, c.onmouseup = function () { return !1; }, c.onclick = function () { return !1; }, c.root = this, c.style.padding = "0px", c.style.border = "0px none", c.style.verticalAlign = "top", c.style.height = s.cellHeight + "px", c.style.overflow = "hidden", c.unselectable = "on";
1118
1157
  var d = document.createElement("div");
1119
1158
  d.unselectable = "on", d.style.height = s.cellHeight + "px", d.style.position = "relative", d.className = this.u("_cell");
1120
- this.ka(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
1159
+ this.la(c.start, c.end) && DayPilot.Util.addClass(d, s.u("_cell_business"));
1121
1160
  var f = document.createElement("div");
1122
1161
  f.setAttribute("unselectable", "on"), f.className = this.u("_cell_inner"), d.appendChild(f), c.appendChild(d), c.appendChild(d);
1123
1162
  }
1124
1163
  }
1125
- e.onmouseup = this.V, e.root = this, s.nav.scrollable.onmousemove = function (e) {
1126
- e = e || window.event;
1164
+ e.root = this, s.nav.scrollable.onmousemove = function (e) {
1127
1165
  var i = s.nav.scrollable;
1128
1166
  s.coords = DayPilot.mo3(i, e);
1129
1167
  var n = DayPilot.mc(e);
@@ -1156,11 +1194,11 @@ if ("undefined" == typeof DayPilot)
1156
1194
  f < 0 && (f = 0), f < u.rows[0].cells.length && f >= 0 && t.movingShadow.column !== f && (t.movingShadow.column = f, t.moveShadow(u.rows[0].cells[f]));
1157
1195
  }
1158
1196
  else if (t.selecting) {
1159
- var n = DayPilot.mc(e || window.event), g = s.X.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1160
- n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.T();
1197
+ var n = DayPilot.mc(e), g = s.X.getCellCoords(), m = t.column, y = s.nav.main.rows[g.y].cells[m];
1198
+ n.y < t.firstMousePos.y ? (t.selectedCells = t.getCellsBelow(y), t.topSelectedCell = t.selectedCells[0], t.bottomSelectedCell = t.firstSelected) : (t.selectedCells = t.getCellsAbove(y), t.topSelectedCell = t.firstSelected, t.bottomSelectedCell = t.selectedCells[0]), s.U();
1161
1199
  }
1162
1200
  }, s.nav.scrollable.style.display = "";
1163
- }, this.ka = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.r = function () {
1201
+ }, this.la = function (e, t) { return this.businessBeginsHour < this.businessEndsHour ? !(e.getHours() < this.businessBeginsHour || e.getHours() >= this.businessEndsHour || 6 === e.getDayOfWeek() || 0 === e.getDayOfWeek()) : e.getHours() >= this.businessBeginsHour || e.getHours() < this.businessEndsHour; }, this.r = function () {
1164
1202
  var e = this.nav.header;
1165
1203
  if (e && e.rows)
1166
1204
  for (var t = 0; t < e.rows.length; t++)
@@ -1169,26 +1207,27 @@ if ("undefined" == typeof DayPilot)
1169
1207
  s.onclick = null, s.onmousemove = null, s.onmouseout = null;
1170
1208
  }
1171
1209
  this.fasterDispose || DayPilot.pu(e);
1172
- }, this.la = function (e) {
1173
- for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.columns, n = i.length, a = 0; a < n; a++) {
1210
+ }, this.ma = function (e) {
1211
+ for (var t = e ? this.nav.header.insertRow(-1) : this.nav.header.rows[0], i = this.S, n = i.length, a = 0; a < n; a++) {
1174
1212
  var l = i[a], o = e ? t.insertCell(-1) : t.cells[a];
1175
1213
  o.data = l, o.style.overflow = "hidden", o.style.padding = "0px", o.style.border = "0px none", o.style.height = this.headerHeight + "px";
1176
1214
  var r = e ? document.createElement("div") : o.firstChild;
1177
1215
  if (e) {
1178
- r.unselectable = "on", r.style.MozUserSelect = "none", r.style.backgroundColor = l.BackColor, r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
1216
+ r.unselectable = "on", r.style.MozUserSelect = "none", r.style.cursor = "default", r.style.position = "relative", r.className = s.u("_colheader"), r.style.height = this.headerHeight + "px";
1179
1217
  var h = document.createElement("div");
1180
1218
  h.className = s.u("_colheader_inner"), h.unselectable = "on", r.appendChild(h), o.appendChild(r);
1181
1219
  }
1220
+ l.toolTip && (h.title = l.toolTip);
1182
1221
  var h = r.firstChild;
1183
- h.innerHTML = s.ma(l.name, l.html);
1222
+ h.innerHTML = s.na(l.name, l.html);
1184
1223
  }
1185
- }, this.na = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1186
- var e = this.nav.header, t = !0, i = this.columns;
1224
+ }, this.oa = function () { return this.width && this.width.indexOf("px") !== -1 ? "Pixel" : "Percentage"; }, this.E = function () {
1225
+ var e = this.nav.header, t = !0, i = this.S;
1187
1226
  for (i.length; this.headerCreated && e && e.rows && e.rows.length > 0;)
1188
1227
  this.fasterDispose || DayPilot.pu(e.rows[0]), e.deleteRow(0);
1189
1228
  this.headerCreated = !0;
1190
- this.la(t);
1191
- }, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.oa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.pa(); }); var t = "undefined" != typeof this.qa.scrollpos ? this.qa.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.ra = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (t.style.width = e + "px"); }, this.sa = 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) {
1229
+ this.ma(t);
1230
+ }, 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.m("Command", t, i); }, this.loadingStop = function (e) { this.callbackTimeout && window.clearTimeout(this.callbackTimeout), this.nav.loading.style.display = "none"; }, this.pa = function () { var e = this.nav.scroll; e.onscroll || (e.onscroll = function () { s.qa(); }); var t = "undefined" != typeof this.ra.scrollpos ? this.ra.scrollpos : this.initScrollPos; t && ("Auto" === t && (t = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), e.root = this, 0 === e.scrollTop && (e.scrollTop = t)); }, this.callbackError = function (e, t) { alert("Error!\r\nResult: " + e + "\r\nContext:" + t); }, this.sa = function () { var e = DayPilot.sw(this.nav.scroll), t = this.nav.cornerRight; t && e > 0 && (t.style.width = e + "px"); }, this.ta = 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) {
1192
1231
  var t = null;
1193
1232
  if (e instanceof DayPilot.Event)
1194
1233
  t = e.data;
@@ -1246,7 +1285,7 @@ if ("undefined" == typeof DayPilot)
1246
1285
  var o = {};
1247
1286
  if (o.preventDefault = function () { this.preventDefault.value = !0; }, o.data = i, "function" == typeof t && t(o), o.preventDefault.value)
1248
1287
  return;
1249
- s.events.list = i, s.ta && s.update();
1288
+ s.events.list = i, s.Y && s.update();
1250
1289
  }
1251
1290
  };
1252
1291
  if (s.eventsLoadMethod && "POST" === s.eventsLoadMethod.toUpperCase())
@@ -1255,9 +1294,9 @@ if ("undefined" == typeof DayPilot)
1255
1294
  var l = e, o = "start=" + s.visibleStart().toString() + "&end=" + s.visibleEnd().toString();
1256
1295
  l += l.indexOf("?") > -1 ? "&" + o : "?" + o, DayPilot.Http.ajax({ "method": "GET", "url": l, "success": a, "error": n });
1257
1296
  }
1258
- }, this.update = function (e) { s.ua(e), s.va(), s.p(), s.nav.top.style.cursor = "auto"; s.B(), s.E(), s.F(), s.G(), s.H(), s.ia(), s.wa(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide(); }, this.xa = null, this.ua = function (e) {
1297
+ }, this.update = function (e) { s.ua(e), s.va(), s.p(), s.nav.top.style.cursor = "auto"; s.B(), s.E(), s.F(), s.G(), s.H(), s.ja(), s.wa(), s.C(), s.D(), s.A(), s.I(), s.clearSelection(), this.visible ? this.show() : this.hide(); }, this.xa = null, this.ua = function (e) {
1259
1298
  if (e) {
1260
- var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } } };
1299
+ var t = { "events": { "preInit": function () { var e = this.data; e && (DayPilot.isArray(e.list) ? s.events.list = e.list : s.events.list = e); } }, "columns": { "preInit": function () { s.columns.list = this.data; } } };
1261
1300
  this.xa = t;
1262
1301
  for (var i in e)
1263
1302
  if (t[i]) {
@@ -1305,43 +1344,43 @@ if ("undefined" == typeof DayPilot)
1305
1344
  if ("function" == typeof this.onBeforeEventRender)
1306
1345
  for (var a = 0; a < t; a++)
1307
1346
  this.Ba(a);
1308
- for (var a = 0; a < this.columns.length; a++) {
1347
+ for (var a = 0; a < this.S.length; a++) {
1309
1348
  var o = {};
1310
1349
  o.minEnd = 1e6, o.maxStart = -1, this.scrollLabels.push(o);
1311
- var r = this.columns[a];
1350
+ var r = this.S[a];
1312
1351
  r.events = [], r.lines = [], r.blocks = [];
1313
1352
  for (var h = new DayPilot.Date(r.start), c = h.getTime(), d = h.addTime(i), u = d.getTime(), v = 0; v < t; v++)
1314
1353
  if (!n[v]) {
1315
1354
  var l = e[v], p = l.start, f = l.end, g = p.getTime(), m = f.getTime();
1316
1355
  if (!(m < g)) {
1317
1356
  var y = !(m <= c || g >= u);
1318
- if (y) {
1357
+ if ("Resources" === s.viewType && (y = y && r.id === l.resource), y) {
1319
1358
  var b = new DayPilot.Event(l, s);
1320
1359
  b.part.dayIndex = a, b.part.start = c < g ? l.start : h, b.part.end = u > m ? l.end : d;
1321
1360
  var C = this.getPixels(b.part.start, r.start), w = this.getPixels(b.part.end, r.start), D = C.top, S = w.top;
1322
1361
  if (D === S && (C.cut || w.cut))
1323
1362
  continue;
1324
- var k = w.boxBottom;
1325
- b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(k / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
1363
+ var x = w.boxBottom;
1364
+ b.part.top = Math.floor(D / this.cellHeight) * this.cellHeight + 1, b.part.height = Math.max(Math.ceil(x / this.cellHeight) * this.cellHeight - b.part.top, this.cellHeight - 1) + 1, b.part.barTop = Math.max(D - b.part.top - 1, 0), b.part.barHeight = Math.max(S - D - 2, 1);
1326
1365
  var p = b.part.top, f = b.part.top + b.part.height;
1327
1366
  p > o.maxStart && (o.maxStart = p), f < o.minEnd && (o.minEnd = f), p < this.minStart && (this.minStart = p), f > this.maxEnd && (this.maxEnd = f), r.events.push(b), "function" == typeof this.onBeforeEventRender && (b.cache = this.Aa.events[v]), b.part.start.getTime() === g && b.part.end.getTime() === m && (n[v] = !0);
1328
1367
  }
1329
1368
  }
1330
1369
  }
1331
1370
  }
1332
- for (var a = 0; a < this.columns.length; a++) {
1333
- var r = this.columns[a];
1371
+ for (var a = 0; a < this.S.length; a++) {
1372
+ var r = this.S[a];
1334
1373
  r.events.sort(this.Ca);
1335
1374
  for (var v = 0; v < r.events.length; v++) {
1336
1375
  var l = r.events[v];
1337
1376
  r.putIntoBlock(l);
1338
1377
  }
1339
1378
  for (var v = 0; v < r.blocks.length; v++) {
1340
- var x = r.blocks[v];
1341
- x.events.sort(this.Ca);
1342
- for (var H = 0; H < x.events.length; H++) {
1343
- var l = x.events[H];
1344
- x.putIntoLine(l);
1379
+ var k = r.blocks[v];
1380
+ k.events.sort(this.Ca);
1381
+ for (var H = 0; H < k.events.length; H++) {
1382
+ var l = k.events[H];
1383
+ k.putIntoLine(l);
1345
1384
  }
1346
1385
  }
1347
1386
  }
@@ -1361,12 +1400,12 @@ if ("undefined" == typeof DayPilot)
1361
1400
  0 === o && (h = r);
1362
1401
  var c = {};
1363
1402
  return c.cut = !1, c.top = this.Da(l), c.boxTop = this.Da(r), c.boxBottom = this.Da(h), this.cache.pixels[n + "_" + i] = c, c;
1364
- }, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ba(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.pa = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.qa.scrollHour = t; }, this.wa = function () { var e = 0; s.qa.scrollHour ? e = 2 * s.cellHeight * s.qa.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ea = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Fa = function () { this.va(), this.B(), this.aa(), this.E(), this.F(), this.ra(), this.oa(), this.sa(), t.register(this), this.Ga(), this.m("Init"); }, this.qa = {}, this.Ha = function () { this.qa.themes = [], this.qa.themes.push(this.theme || this.cssClassPrefix); }, this.Ia = function () {
1365
- for (var e = this.qa.themes, t = 0; t < e.length; t++) {
1403
+ }, this.Da = function (e) { return Math.floor(this.cellHeight * e / 18e5); }, this.va = function () { this.startDate = new DayPilot.Date(this.startDate).getDatePart(); }, this.D = function () { this.nav.corner && (this.nav.corner.style.height = this.headerHeight + "px"); }, this.H = function () { var e = this.ca(); this.nav.scroll && e > 0 && (this.nav.scroll.style.height = e + "px"); }, this.Q = {}, this.Q.scope = null, this.Q.notify = function () { s.Q.scope && s.Q.scope["$apply"](); }, this.Q.apply = function (e) { e(); }, this.qa = function () { var e = s.nav.scroll.scrollTop, t = e / (2 * s.cellHeight); s.ra.scrollHour = t; }, this.wa = function () { var e = 0; s.ra.scrollHour ? e = 2 * s.cellHeight * s.ra.scrollHour : "Auto" === s.initScrollPos && (e = "BusinessHours" === this.heightSpec ? 2 * this.cellHeight * this.businessBeginsHour : 0), s.nav.scroll.scrollTop = e; }, this.Ea = function () { return !(!this.backendUrl && "function" != typeof WebForm_DoCallback) && ("undefined" == typeof s.events.list || !s.events.list); }, this.A = function () { "hidden" === this.nav.top.style.visibility && (this.nav.top.style.visibility = "visible"); }, this.show = function () { s.visible = !0, s.nav.top.style.display = ""; }, this.hide = function () { s.visible = !1, s.nav.top.style.display = "none"; }, this.Fa = function () { this.va(), this.B(), this.ba(), this.E(), this.F(), this.sa(), this.pa(), this.ta(), t.register(this), this.Ga(), this.m("Init"); }, this.ra = {}, this.Ha = function () { this.ra.themes = [], this.ra.themes.push(this.theme || this.cssClassPrefix); }, this.Ia = function () {
1404
+ for (var e = this.ra.themes, t = 0; t < e.length; t++) {
1366
1405
  var i = e[t];
1367
1406
  DayPilot.Util.removeClass(this.nav.top, i + "_main");
1368
1407
  }
1369
- this.qa.themes = [];
1408
+ this.ra.themes = [];
1370
1409
  }, this.Ja = function () {
1371
1410
  if (this.afterRender(null, !1), "function" == typeof this.onAfterRender) {
1372
1411
  var e = {};
@@ -1378,7 +1417,7 @@ if ("undefined" == typeof DayPilot)
1378
1417
  var e = {};
1379
1418
  this.onInit(e);
1380
1419
  }
1381
- }, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.oa(), s.ra(), clearInterval(s.Na)); }, 100)); }, this.ma = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.xssTextHtml = s.ma, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.aa(), this.E(), this.F(), this.A(), this.ra(), this.oa(), this.sa(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.ta = !0, this); }, this.Init = this.init, this.ua(i);
1420
+ }, this.Ma = function () { var e = s.nav.top; return e.offsetWidth > 0 && e.offsetHeight > 0; }, this.Ga = function () { var e = s.Ma; e() || (s.Na = setInterval(function () { e() && (s.pa(), s.sa(), clearInterval(s.Na)); }, 100)); }, this.na = function (e, t) { return s.w.z() ? DayPilot.Util.escapeTextHtml(e, t) : DayPilot.Util.isNullOrUndefined(t) ? DayPilot.Util.isNullOrUndefined(e) ? "" : e : t; }, this.internal = {}, this.internal.xssTextHtml = s.na, this.init = function () { this.za(); var e = this.Ea(); return this.Ha(), e ? void this.Fa() : (this.va(), this.B(), this.C(), this.ba(), this.E(), this.F(), this.A(), this.sa(), this.pa(), this.ta(), t.register(this), this.events && (this.D(), this.I()), this.Ja(), this.Ka(), this.Ga(), this.Y = !0, this); }, this.Init = this.init, this.ua(i);
1382
1421
  }, t.Cell = function (e, t, i) { this.start = e, this.end = t, this.column = function () { }; }, t.Column = function (e, t, i) { this.value = e, this.name = t, this.date = new DayPilot.Date(i); }, DayPilot.Calendar = t.Calendar, "undefined" != typeof jQuery && !function (e) {
1383
1422
  e.fn.daypilotCalendar = function (e) {
1384
1423
  var t = null, i = this.each(function () {
@@ -1421,7 +1460,7 @@ if ("undefined" == typeof DayPilot)
1421
1460
  var DayPilot = {};
1422
1461
  !function () {
1423
1462
  "undefined" != typeof DayPilot.DatePicker && DayPilot.DatePicker.close || (DayPilot.DatePicker = function (t) {
1424
- this.v = "2022.2.374-lite";
1463
+ this.v = "2022.2.384-lite";
1425
1464
  var e = "navigator_" + (new Date).getTime(), i = this;
1426
1465
  this.prepare = function () {
1427
1466
  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)
@@ -2102,7 +2141,7 @@ if ("undefined" == typeof DayPilot)
2102
2141
  if ("undefined" == typeof DayPilot.Month || !DayPilot.Month.events) {
2103
2142
  var t = {};
2104
2143
  t.Month = function (e, i) {
2105
- this.v = "2022.2.374-lite", this.nav = {};
2144
+ this.v = "2022.2.384-lite", this.nav = {};
2106
2145
  var n = this;
2107
2146
  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) {
2108
2147
  var e = null;
@@ -2658,7 +2697,7 @@ if ("undefined" == typeof DayPilot)
2658
2697
  "undefined" == typeof DayPilot.Global && (DayPilot.Global = {}), function () {
2659
2698
  if ("undefined" == typeof DayPilot.Navigator || !DayPilot.Navigator.nav) {
2660
2699
  DayPilot.Navigator = function (t, e) {
2661
- this.v = "2022.2.374-lite";
2700
+ this.v = "2022.2.384-lite";
2662
2701
  var i = this;
2663
2702
  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) {
2664
2703
  var s = {};