@globalpayments/vega 2.57.1 → 2.58.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/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/vega-calendar_3.cjs.entry.js +197 -114
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +28 -4
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +1 -1
- package/dist/cjs/vega-input-select.cjs.entry.js +6 -3
- package/dist/cjs/vega-selection-tile_2.cjs.entry.js +26 -2
- package/dist/cjs/vega.cjs.js +1 -1
- package/dist/collection/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.js +48 -0
- package/dist/collection/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.js +8 -2
- package/dist/collection/components/vega-calendar/vega-calendar.js +42 -1
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.js +27 -3
- package/dist/collection/components/vega-dropdown/vega-dropdown-item/vega-dropdown-item.css +6 -0
- package/dist/collection/components/vega-input-phone-number/vega-input-phone-number.css +4 -0
- package/dist/collection/components/vega-input-select/slimmers/renderers/vega-input-select-dropdown-renderer.js +5 -2
- package/dist/collection/components/vega-input-select/vega-input-select.css +0 -3
- package/dist/collection/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.js +7 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.js +37 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.css +12 -0
- package/dist/collection/components/vega-selection-tile/vega-selection-tile.js +7 -2
- package/dist/collection/helpers/calendar/calendar-period/month-period.js +15 -1
- package/dist/collection/helpers/calendar/calendar-period/week-period.js +6 -7
- package/dist/collection/helpers/calendar/test/calendar-period/month-period.test.js +12 -4
- package/dist/collection/helpers/calendar/test/calendar-period/week-period.test.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/vega-calendar_3.entry.js +197 -114
- package/dist/esm/vega-dropdown_5.entry.js +28 -4
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-input-phone-number.entry.js +1 -1
- package/dist/esm/vega-input-select.entry.js +6 -3
- package/dist/esm/vega-selection-tile_2.entry.js +26 -2
- package/dist/esm/vega.js +1 -1
- package/dist/types/components/vega-calendar/slimmers/common/controllers/vega-calendar-post-operation-date-controller.d.ts +23 -0
- package/dist/types/components/vega-calendar/slimmers/common/renderers/vega-calendar-switch-panel.d.ts +2 -0
- package/dist/types/components/vega-calendar/vega-calendar.d.ts +15 -1
- package/dist/types/components/vega-dropdown/vega-dropdown-item/slimmers/renderers/vega-dropdown-item-renderer.d.ts +4 -0
- package/dist/types/components/vega-selection-tile/slimmers/controllers/vega-selection-tile-state-controller.d.ts +1 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile-group/vega-selection-tile-group.d.ts +8 -0
- package/dist/types/components/vega-selection-tile/vega-selection-tile.d.ts +4 -0
- package/dist/types/components.d.ts +20 -0
- package/dist/types/helpers/calendar/calendar-period/calendar-period.abstract.d.ts +3 -3
- package/dist/types/helpers/calendar/calendar-period/month-period.d.ts +7 -1
- package/dist/vega/{p-f3ab00ad.entry.js → p-27a9ad35.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/p-8e2b1dae.entry.js +1 -0
- package/dist/vega/p-9540e3ed.entry.js +1 -0
- package/dist/vega/p-997a2064.entry.js +1 -0
- package/dist/vega/{p-39906ad2.entry.js → p-d661a5aa.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +1 -1
- package/dist/vega/p-080db42b.entry.js +0 -1
- package/dist/vega/p-45eb1e01.entry.js +0 -1
- package/dist/vega/p-9ca7467d.entry.js +0 -1
|
@@ -44,7 +44,7 @@ require('./static-subject-title-7e7d791a.js');
|
|
|
44
44
|
require('./regex-c1f70fd4.js');
|
|
45
45
|
require('./typography-4560e7f1.js');
|
|
46
46
|
|
|
47
|
-
var __decorate$
|
|
47
|
+
var __decorate$q = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
48
48
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
49
49
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
50
50
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -63,10 +63,10 @@ class VegaCalendarRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
63
63
|
this.viewRenderer.render()));
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
__decorate$
|
|
66
|
+
__decorate$q([
|
|
67
67
|
globalSlimmerRegistry.MapToComponentField()
|
|
68
68
|
], VegaCalendarRenderer.prototype, "switchPanelRenderer", void 0);
|
|
69
|
-
__decorate$
|
|
69
|
+
__decorate$q([
|
|
70
70
|
globalSlimmerRegistry.MapToComponentField()
|
|
71
71
|
], VegaCalendarRenderer.prototype, "viewRenderer", void 0);
|
|
72
72
|
|
|
@@ -490,17 +490,17 @@ class WeekPeriod extends CalendarPeriod {
|
|
|
490
490
|
* @inheritDoc
|
|
491
491
|
*/
|
|
492
492
|
next() {
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
return this.createBy(CalendarDate.from(
|
|
493
|
+
const currentDate = this.current.toDate();
|
|
494
|
+
currentDate.setDate(currentDate.getDate() + 7);
|
|
495
|
+
return this.createBy(CalendarDate.from(currentDate));
|
|
496
496
|
}
|
|
497
497
|
/**
|
|
498
498
|
* @inheritDoc
|
|
499
499
|
*/
|
|
500
500
|
previous() {
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
return this.createBy(CalendarDate.from(
|
|
501
|
+
const currentDate = this.current.toDate();
|
|
502
|
+
currentDate.setDate(currentDate.getDate() - 7);
|
|
503
|
+
return this.createBy(CalendarDate.from(currentDate));
|
|
504
504
|
}
|
|
505
505
|
/**
|
|
506
506
|
* @inheritDoc
|
|
@@ -516,7 +516,7 @@ WeekPeriod.DISPLAY_DATE_COUNT = 7;
|
|
|
516
516
|
*/
|
|
517
517
|
class MonthPeriod extends CalendarPeriod {
|
|
518
518
|
constructor(current, showWeekends) {
|
|
519
|
-
super(MonthPeriod.DISPLAY_DATE_COUNT,
|
|
519
|
+
super(MonthPeriod.DISPLAY_DATE_COUNT, current);
|
|
520
520
|
this._type = 'month';
|
|
521
521
|
this._showWeekends = true;
|
|
522
522
|
this._showWeekends = showWeekends === false ? false : true;
|
|
@@ -535,6 +535,19 @@ class MonthPeriod extends CalendarPeriod {
|
|
|
535
535
|
const date = calendarDate || CalendarDate.from(new Date());
|
|
536
536
|
return new CalendarDate(date.year, date.month, 1);
|
|
537
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Calculate the period start date and end date.
|
|
540
|
+
*
|
|
541
|
+
* @param {CalendarDate} date - The date to calculate the period from.
|
|
542
|
+
*/
|
|
543
|
+
calculatePeriod(date) {
|
|
544
|
+
const firstDay = MonthPeriod.getMonthFirstDay(date);
|
|
545
|
+
const cursor = firstDay.toDate();
|
|
546
|
+
cursor.setDate(cursor.getDate() - getWeekdays().indexOf(cursor.getDay()));
|
|
547
|
+
this._startDate = CalendarDate.from(cursor);
|
|
548
|
+
cursor.setDate(cursor.getDate() + this.count - 1);
|
|
549
|
+
this._endDate = CalendarDate.from(cursor);
|
|
550
|
+
}
|
|
538
551
|
/**
|
|
539
552
|
* @inheritDoc
|
|
540
553
|
*/
|
|
@@ -620,7 +633,7 @@ const ellipsisVertical = {
|
|
|
620
633
|
icon: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 128 512"><!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><path fill="currentColor" d="M48 464a48 48 0 1 1 0-96 48 48 0 1 1 0 96zm0-160a48 48 0 1 1 0-96 48 48 0 1 1 0 96zM0 96a48 48 0 1 1 96 0A48 48 0 1 1 0 96z"/></svg>`,
|
|
621
634
|
};
|
|
622
635
|
|
|
623
|
-
var __decorate$
|
|
636
|
+
var __decorate$p = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
624
637
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
625
638
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
626
639
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -636,7 +649,7 @@ class VegaCalendarSwitchPanelRenderer extends globalSlimmerRegistry.VegaSlimmer
|
|
|
636
649
|
* @param {NotifyObserverPayload<VegaCalendarViewModeType>} input mark which view should be selected
|
|
637
650
|
*/
|
|
638
651
|
this.handleViewChange = (input) => {
|
|
639
|
-
this.currentPeriodController.updateCalendarPeriod(input.detail, this.
|
|
652
|
+
this.currentPeriodController.updateCalendarPeriod(input.detail, this.postOperationDate);
|
|
640
653
|
};
|
|
641
654
|
/**
|
|
642
655
|
* reset view content to today
|
|
@@ -682,7 +695,7 @@ class VegaCalendarSwitchPanelRenderer extends globalSlimmerRegistry.VegaSlimmer
|
|
|
682
695
|
return (index.h("vega-flex", { direction: "row", gap: "size-16", justifyContent: "space-between", alignItems: "center", class: "calendar-switch-panel", ref: (node) => (this.switchPanelRef = node) },
|
|
683
696
|
this.renderDateSwitch(),
|
|
684
697
|
index.h("div", { class: "calendar-view-switch-container" },
|
|
685
|
-
this.renderViewSwitch(),
|
|
698
|
+
this.showSwitchView ? this.renderViewSwitch() : null,
|
|
686
699
|
this.renderMoreActionMenu())));
|
|
687
700
|
}
|
|
688
701
|
/**
|
|
@@ -778,32 +791,38 @@ VegaCalendarSwitchPanelRenderer.views = [
|
|
|
778
791
|
{ text: 'Week', key: 'week' },
|
|
779
792
|
{ text: 'Month', key: 'month' },
|
|
780
793
|
];
|
|
781
|
-
__decorate$
|
|
794
|
+
__decorate$p([
|
|
782
795
|
globalSlimmerRegistry.MapToComponentField()
|
|
783
796
|
], VegaCalendarSwitchPanelRenderer.prototype, "viewMode", void 0);
|
|
784
|
-
__decorate$
|
|
797
|
+
__decorate$p([
|
|
785
798
|
globalSlimmerRegistry.MapToComponentField()
|
|
786
799
|
], VegaCalendarSwitchPanelRenderer.prototype, "calendarView", void 0);
|
|
787
|
-
__decorate$
|
|
800
|
+
__decorate$p([
|
|
788
801
|
globalSlimmerRegistry.MapToComponentField()
|
|
789
802
|
], VegaCalendarSwitchPanelRenderer.prototype, "currentPeriod", void 0);
|
|
790
|
-
__decorate$
|
|
803
|
+
__decorate$p([
|
|
791
804
|
globalSlimmerRegistry.MapToComponentField()
|
|
792
805
|
], VegaCalendarSwitchPanelRenderer.prototype, "moreActionDropdownProps", void 0);
|
|
793
|
-
__decorate$
|
|
806
|
+
__decorate$p([
|
|
794
807
|
globalSlimmerRegistry.MapToComponentField()
|
|
795
808
|
], VegaCalendarSwitchPanelRenderer.prototype, "moreActionClickEmitter", void 0);
|
|
796
|
-
__decorate$
|
|
809
|
+
__decorate$p([
|
|
797
810
|
globalSlimmerRegistry.MapToComponentField()
|
|
798
811
|
], VegaCalendarSwitchPanelRenderer.prototype, "currentPeriodController", void 0);
|
|
799
|
-
__decorate$
|
|
812
|
+
__decorate$p([
|
|
800
813
|
globalSlimmerRegistry.MapToComponentField()
|
|
801
814
|
], VegaCalendarSwitchPanelRenderer.prototype, "calendarViewController", void 0);
|
|
802
|
-
__decorate$
|
|
815
|
+
__decorate$p([
|
|
803
816
|
globalSlimmerRegistry.MapToComponentField()
|
|
804
817
|
], VegaCalendarSwitchPanelRenderer.prototype, "translationSlimmer", void 0);
|
|
818
|
+
__decorate$p([
|
|
819
|
+
globalSlimmerRegistry.MapToComponentField()
|
|
820
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "postOperationDate", void 0);
|
|
821
|
+
__decorate$p([
|
|
822
|
+
globalSlimmerRegistry.MapToComponentField()
|
|
823
|
+
], VegaCalendarSwitchPanelRenderer.prototype, "showSwitchView", void 0);
|
|
805
824
|
|
|
806
|
-
var __decorate$
|
|
825
|
+
var __decorate$o = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
807
826
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
808
827
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
809
828
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -830,20 +849,20 @@ class VegaCalendarViewRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
830
849
|
: this.viewWithTimeRenderer.render()));
|
|
831
850
|
}
|
|
832
851
|
}
|
|
833
|
-
__decorate$
|
|
852
|
+
__decorate$o([
|
|
834
853
|
globalSlimmerRegistry.MapToComponentField()
|
|
835
854
|
], VegaCalendarViewRenderer.prototype, "viewMode", void 0);
|
|
836
|
-
__decorate$
|
|
855
|
+
__decorate$o([
|
|
837
856
|
globalSlimmerRegistry.MapToComponentField()
|
|
838
857
|
], VegaCalendarViewRenderer.prototype, "showWeekends", void 0);
|
|
839
|
-
__decorate$
|
|
858
|
+
__decorate$o([
|
|
840
859
|
globalSlimmerRegistry.MapToComponentField()
|
|
841
860
|
], VegaCalendarViewRenderer.prototype, "monthViewRenderer", void 0);
|
|
842
|
-
__decorate$
|
|
861
|
+
__decorate$o([
|
|
843
862
|
globalSlimmerRegistry.MapToComponentField()
|
|
844
863
|
], VegaCalendarViewRenderer.prototype, "viewWithTimeRenderer", void 0);
|
|
845
864
|
|
|
846
|
-
var __decorate$
|
|
865
|
+
var __decorate$n = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
847
866
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
848
867
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
849
868
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -947,32 +966,32 @@ class VegaCalendarMonthViewRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
947
966
|
return !element.classList.contains('more-button') && element.tagName !== 'VEGA-CALENDAR-EVENT';
|
|
948
967
|
}
|
|
949
968
|
}
|
|
950
|
-
__decorate$
|
|
969
|
+
__decorate$n([
|
|
951
970
|
globalSlimmerRegistry.MapToComponentField()
|
|
952
971
|
], VegaCalendarMonthViewRenderer.prototype, "viewMode", void 0);
|
|
953
|
-
__decorate$
|
|
972
|
+
__decorate$n([
|
|
954
973
|
globalSlimmerRegistry.MapToComponentField()
|
|
955
974
|
], VegaCalendarMonthViewRenderer.prototype, "calendarView", void 0);
|
|
956
|
-
__decorate$
|
|
975
|
+
__decorate$n([
|
|
957
976
|
globalSlimmerRegistry.MapToComponentField()
|
|
958
977
|
], VegaCalendarMonthViewRenderer.prototype, "currentPeriod", void 0);
|
|
959
|
-
__decorate$
|
|
978
|
+
__decorate$n([
|
|
960
979
|
globalSlimmerRegistry.MapToComponentField()
|
|
961
980
|
], VegaCalendarMonthViewRenderer.prototype, "currentPeriodController", void 0);
|
|
962
|
-
__decorate$
|
|
981
|
+
__decorate$n([
|
|
963
982
|
globalSlimmerRegistry.MapToComponentField()
|
|
964
983
|
], VegaCalendarMonthViewRenderer.prototype, "monthEventRenderer", void 0);
|
|
965
|
-
__decorate$
|
|
984
|
+
__decorate$n([
|
|
966
985
|
globalSlimmerRegistry.MapToComponentField()
|
|
967
986
|
], VegaCalendarMonthViewRenderer.prototype, "dateDblClickEmitter", void 0);
|
|
968
|
-
__decorate$
|
|
987
|
+
__decorate$n([
|
|
969
988
|
globalSlimmerRegistry.MapToComponentField()
|
|
970
989
|
], VegaCalendarMonthViewRenderer.prototype, "translationSlimmer", void 0);
|
|
971
|
-
__decorate$
|
|
990
|
+
__decorate$n([
|
|
972
991
|
globalSlimmerRegistry.MapToComponentField()
|
|
973
992
|
], VegaCalendarMonthViewRenderer.prototype, "isDateDisabled", void 0);
|
|
974
993
|
|
|
975
|
-
var __decorate$
|
|
994
|
+
var __decorate$m = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
976
995
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
977
996
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
978
997
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1069,35 +1088,35 @@ class VegaCalendarViewWithTimeRenderer extends globalSlimmerRegistry.VegaSlimmer
|
|
|
1069
1088
|
this.dateDblClickEmitter.emit({ year, month, date, hour, mouseEventInfo: { clientX, clientY } });
|
|
1070
1089
|
}
|
|
1071
1090
|
}
|
|
1072
|
-
__decorate$
|
|
1091
|
+
__decorate$m([
|
|
1073
1092
|
globalSlimmerRegistry.MapToComponentField()
|
|
1074
1093
|
], VegaCalendarViewWithTimeRenderer.prototype, "viewMode", void 0);
|
|
1075
|
-
__decorate$
|
|
1094
|
+
__decorate$m([
|
|
1076
1095
|
globalSlimmerRegistry.MapToComponentField()
|
|
1077
1096
|
], VegaCalendarViewWithTimeRenderer.prototype, "timeLineRenderer", void 0);
|
|
1078
|
-
__decorate$
|
|
1097
|
+
__decorate$m([
|
|
1079
1098
|
globalSlimmerRegistry.MapToComponentField()
|
|
1080
1099
|
], VegaCalendarViewWithTimeRenderer.prototype, "timeMarkerRenderer", void 0);
|
|
1081
|
-
__decorate$
|
|
1100
|
+
__decorate$m([
|
|
1082
1101
|
globalSlimmerRegistry.MapToComponentField()
|
|
1083
1102
|
], VegaCalendarViewWithTimeRenderer.prototype, "dayViewTimedEventRenderer", void 0);
|
|
1084
|
-
__decorate$
|
|
1103
|
+
__decorate$m([
|
|
1085
1104
|
globalSlimmerRegistry.MapToComponentField()
|
|
1086
1105
|
], VegaCalendarViewWithTimeRenderer.prototype, "dayViewFullDayEventRenderer", void 0);
|
|
1087
|
-
__decorate$
|
|
1106
|
+
__decorate$m([
|
|
1088
1107
|
globalSlimmerRegistry.MapToComponentField()
|
|
1089
1108
|
], VegaCalendarViewWithTimeRenderer.prototype, "calendarView", void 0);
|
|
1090
|
-
__decorate$
|
|
1109
|
+
__decorate$m([
|
|
1091
1110
|
globalSlimmerRegistry.MapToComponentField()
|
|
1092
1111
|
], VegaCalendarViewWithTimeRenderer.prototype, "dateDblClickEmitter", void 0);
|
|
1093
|
-
__decorate$
|
|
1112
|
+
__decorate$m([
|
|
1094
1113
|
globalSlimmerRegistry.MapToComponentField()
|
|
1095
1114
|
], VegaCalendarViewWithTimeRenderer.prototype, "translationSlimmer", void 0);
|
|
1096
|
-
__decorate$
|
|
1115
|
+
__decorate$m([
|
|
1097
1116
|
globalSlimmerRegistry.MapToComponentField()
|
|
1098
1117
|
], VegaCalendarViewWithTimeRenderer.prototype, "isDateDisabled", void 0);
|
|
1099
1118
|
|
|
1100
|
-
var __decorate$
|
|
1119
|
+
var __decorate$l = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1101
1120
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1102
1121
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1103
1122
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1144,11 +1163,11 @@ class VegaCalendarTimeLineRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
1144
1163
|
return timeLine;
|
|
1145
1164
|
}
|
|
1146
1165
|
}
|
|
1147
|
-
__decorate$
|
|
1166
|
+
__decorate$l([
|
|
1148
1167
|
globalSlimmerRegistry.MapToComponentField()
|
|
1149
1168
|
], VegaCalendarTimeLineRenderer.prototype, "timeFormat", void 0);
|
|
1150
1169
|
|
|
1151
|
-
var __decorate$
|
|
1170
|
+
var __decorate$k = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1152
1171
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1153
1172
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1154
1173
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1201,26 +1220,26 @@ class VegaCalendarViewController extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
1201
1220
|
this.calendarView = newView;
|
|
1202
1221
|
}
|
|
1203
1222
|
}
|
|
1204
|
-
__decorate$
|
|
1223
|
+
__decorate$k([
|
|
1205
1224
|
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
1206
1225
|
], VegaCalendarViewController.prototype, "calendarView", void 0);
|
|
1207
|
-
__decorate$
|
|
1226
|
+
__decorate$k([
|
|
1208
1227
|
globalSlimmerRegistry.MapToComponentField()
|
|
1209
1228
|
], VegaCalendarViewController.prototype, "currentPeriod", void 0);
|
|
1210
|
-
__decorate$
|
|
1229
|
+
__decorate$k([
|
|
1211
1230
|
globalSlimmerRegistry.MapToComponentField()
|
|
1212
1231
|
], VegaCalendarViewController.prototype, "showWeekends", void 0);
|
|
1213
|
-
__decorate$
|
|
1232
|
+
__decorate$k([
|
|
1214
1233
|
globalSlimmerRegistry.MapToComponentField()
|
|
1215
1234
|
], VegaCalendarViewController.prototype, "currentPeriodController", void 0);
|
|
1216
|
-
__decorate$
|
|
1235
|
+
__decorate$k([
|
|
1217
1236
|
globalSlimmerRegistry.MapToComponentMethod('componentWillLoad')
|
|
1218
1237
|
], VegaCalendarViewController.prototype, "initialCalendarView", null);
|
|
1219
|
-
__decorate$
|
|
1238
|
+
__decorate$k([
|
|
1220
1239
|
globalSlimmerRegistry.MapToComponentMethod('watchCurrentPeriodChange')
|
|
1221
1240
|
], VegaCalendarViewController.prototype, "generateCalendarView", null);
|
|
1222
1241
|
|
|
1223
|
-
var __decorate$
|
|
1242
|
+
var __decorate$j = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1224
1243
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1225
1244
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1226
1245
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1324,32 +1343,32 @@ class VegaCalendarCurrentPeriodController extends globalSlimmerRegistry.VegaSlim
|
|
|
1324
1343
|
};
|
|
1325
1344
|
}
|
|
1326
1345
|
}
|
|
1327
|
-
__decorate$
|
|
1346
|
+
__decorate$j([
|
|
1328
1347
|
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
1329
1348
|
], VegaCalendarCurrentPeriodController.prototype, "currentPeriod", void 0);
|
|
1330
|
-
__decorate$
|
|
1349
|
+
__decorate$j([
|
|
1331
1350
|
globalSlimmerRegistry.MapToComponentField()
|
|
1332
1351
|
], VegaCalendarCurrentPeriodController.prototype, "changeEventEmitter", void 0);
|
|
1333
|
-
__decorate$
|
|
1352
|
+
__decorate$j([
|
|
1334
1353
|
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
1335
1354
|
], VegaCalendarCurrentPeriodController.prototype, "viewMode", void 0);
|
|
1336
|
-
__decorate$
|
|
1355
|
+
__decorate$j([
|
|
1337
1356
|
globalSlimmerRegistry.MapToComponentField()
|
|
1338
1357
|
], VegaCalendarCurrentPeriodController.prototype, "showWeekends", void 0);
|
|
1339
|
-
__decorate$
|
|
1358
|
+
__decorate$j([
|
|
1340
1359
|
globalSlimmerRegistry.MapToComponentMethod('componentWillLoad')
|
|
1341
1360
|
], VegaCalendarCurrentPeriodController.prototype, "initialCurrentPeriod", null);
|
|
1342
|
-
__decorate$
|
|
1361
|
+
__decorate$j([
|
|
1343
1362
|
globalSlimmerRegistry.MapToComponentMethod('watchCurrentPeriodChange')
|
|
1344
1363
|
], VegaCalendarCurrentPeriodController.prototype, "emitChangeEvent", null);
|
|
1345
|
-
__decorate$
|
|
1364
|
+
__decorate$j([
|
|
1346
1365
|
globalSlimmerRegistry.MapToComponentMethod('watchViewModeChange')
|
|
1347
1366
|
], VegaCalendarCurrentPeriodController.prototype, "updateCurrentPeriodByViewMode", null);
|
|
1348
|
-
__decorate$
|
|
1367
|
+
__decorate$j([
|
|
1349
1368
|
globalSlimmerRegistry.MapToComponentMethod('watchShowWeekendsChange')
|
|
1350
1369
|
], VegaCalendarCurrentPeriodController.prototype, "updateCurrentPeriodAfterHideWeekEndsChange", null);
|
|
1351
1370
|
|
|
1352
|
-
var __decorate$
|
|
1371
|
+
var __decorate$i = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
1353
1372
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1354
1373
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
1355
1374
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -1506,22 +1525,22 @@ class VegaCalendarMonthEventRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
1506
1525
|
return rowEvents;
|
|
1507
1526
|
}
|
|
1508
1527
|
}
|
|
1509
|
-
__decorate$
|
|
1528
|
+
__decorate$i([
|
|
1510
1529
|
globalSlimmerRegistry.MapToComponentField()
|
|
1511
1530
|
], VegaCalendarMonthEventRenderer.prototype, "viewMode", void 0);
|
|
1512
|
-
__decorate$
|
|
1531
|
+
__decorate$i([
|
|
1513
1532
|
globalSlimmerRegistry.MapToComponentField()
|
|
1514
1533
|
], VegaCalendarMonthEventRenderer.prototype, "host", void 0);
|
|
1515
|
-
__decorate$
|
|
1534
|
+
__decorate$i([
|
|
1516
1535
|
globalSlimmerRegistry.MapToComponentField()
|
|
1517
1536
|
], VegaCalendarMonthEventRenderer.prototype, "calendarEventController", void 0);
|
|
1518
|
-
__decorate$
|
|
1537
|
+
__decorate$i([
|
|
1519
1538
|
globalSlimmerRegistry.MapToComponentField()
|
|
1520
1539
|
], VegaCalendarMonthEventRenderer.prototype, "eventItemRenderer", void 0);
|
|
1521
|
-
__decorate$
|
|
1540
|
+
__decorate$i([
|
|
1522
1541
|
globalSlimmerRegistry.MapToComponentField()
|
|
1523
1542
|
], VegaCalendarMonthEventRenderer.prototype, "fullDayEventLayoutRenderer", void 0);
|
|
1524
|
-
__decorate$
|
|
1543
|
+
__decorate$i([
|
|
1525
1544
|
globalSlimmerRegistry.MapToComponentMethod('componentWillLoad')
|
|
1526
1545
|
], VegaCalendarMonthEventRenderer.prototype, "addMaxDisplayCountChange", null);
|
|
1527
1546
|
|
|
@@ -2382,7 +2401,7 @@ class CalendarEvent {
|
|
|
2382
2401
|
}
|
|
2383
2402
|
}
|
|
2384
2403
|
|
|
2385
|
-
var __decorate$
|
|
2404
|
+
var __decorate$h = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2386
2405
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2387
2406
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2388
2407
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2488,23 +2507,23 @@ class VegaCalendarEventController extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
2488
2507
|
}
|
|
2489
2508
|
}
|
|
2490
2509
|
}
|
|
2491
|
-
__decorate$
|
|
2510
|
+
__decorate$h([
|
|
2492
2511
|
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
2493
2512
|
], VegaCalendarEventController.prototype, "calendarEvents", void 0);
|
|
2494
|
-
__decorate$
|
|
2513
|
+
__decorate$h([
|
|
2495
2514
|
globalSlimmerRegistry.MapToComponentField()
|
|
2496
2515
|
], VegaCalendarEventController.prototype, "currentPeriod", void 0);
|
|
2497
|
-
__decorate$
|
|
2516
|
+
__decorate$h([
|
|
2498
2517
|
globalSlimmerRegistry.MapToComponentField()
|
|
2499
2518
|
], VegaCalendarEventController.prototype, "events", void 0);
|
|
2500
|
-
__decorate$
|
|
2519
|
+
__decorate$h([
|
|
2501
2520
|
globalSlimmerRegistry.MapToComponentMethod('watchEventsChange')
|
|
2502
2521
|
], VegaCalendarEventController.prototype, "updateAfterEventChange", null);
|
|
2503
|
-
__decorate$
|
|
2522
|
+
__decorate$h([
|
|
2504
2523
|
globalSlimmerRegistry.MapToComponentMethod('componentWillLoad')
|
|
2505
2524
|
], VegaCalendarEventController.prototype, "updateWhenComponentWillLoad", null);
|
|
2506
2525
|
|
|
2507
|
-
var __decorate$
|
|
2526
|
+
var __decorate$g = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2508
2527
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2509
2528
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2510
2529
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2534,17 +2553,17 @@ class VegaCalendarEventItemRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
2534
2553
|
}
|
|
2535
2554
|
}
|
|
2536
2555
|
VegaCalendarEventItemRenderer.backgroundColorModeEventHeight = 18;
|
|
2537
|
-
__decorate$
|
|
2556
|
+
__decorate$g([
|
|
2538
2557
|
globalSlimmerRegistry.MapToComponentField()
|
|
2539
2558
|
], VegaCalendarEventItemRenderer.prototype, "host", void 0);
|
|
2540
|
-
__decorate$
|
|
2559
|
+
__decorate$g([
|
|
2541
2560
|
globalSlimmerRegistry.MapToComponentField()
|
|
2542
2561
|
], VegaCalendarEventItemRenderer.prototype, "calendarView", void 0);
|
|
2543
|
-
__decorate$
|
|
2562
|
+
__decorate$g([
|
|
2544
2563
|
globalSlimmerRegistry.MapToComponentField()
|
|
2545
2564
|
], VegaCalendarEventItemRenderer.prototype, "eventClickEmitter", void 0);
|
|
2546
2565
|
|
|
2547
|
-
var __decorate$
|
|
2566
|
+
var __decorate$f = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2548
2567
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2549
2568
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2550
2569
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2596,23 +2615,23 @@ class VegaCalendarEventResponsiveController extends pageResizeObserverSlimmer.Pa
|
|
|
2596
2615
|
}
|
|
2597
2616
|
}
|
|
2598
2617
|
VegaCalendarEventResponsiveController.monthDateTitleHeight = 26;
|
|
2599
|
-
__decorate$
|
|
2618
|
+
__decorate$f([
|
|
2600
2619
|
globalSlimmerRegistry.MapToComponentField()
|
|
2601
2620
|
], VegaCalendarEventResponsiveController.prototype, "host", void 0);
|
|
2602
|
-
__decorate$
|
|
2621
|
+
__decorate$f([
|
|
2603
2622
|
globalSlimmerRegistry.MapToComponentField()
|
|
2604
2623
|
], VegaCalendarEventResponsiveController.prototype, "monthEventRenderer", void 0);
|
|
2605
|
-
__decorate$
|
|
2624
|
+
__decorate$f([
|
|
2606
2625
|
globalSlimmerRegistry.MapToComponentField()
|
|
2607
2626
|
], VegaCalendarEventResponsiveController.prototype, "viewMode", void 0);
|
|
2608
|
-
__decorate$
|
|
2627
|
+
__decorate$f([
|
|
2609
2628
|
globalSlimmerRegistry.MapToComponentMethod('componentDidLoad')
|
|
2610
2629
|
], VegaCalendarEventResponsiveController.prototype, "updateMaxDisplayCount", null);
|
|
2611
|
-
__decorate$
|
|
2630
|
+
__decorate$f([
|
|
2612
2631
|
globalSlimmerRegistry.MapToComponentMethod('watchViewModeChange')
|
|
2613
2632
|
], VegaCalendarEventResponsiveController.prototype, "updateMaxDisplayCountAfterSwitchToMonthView", null);
|
|
2614
2633
|
|
|
2615
|
-
var __decorate$
|
|
2634
|
+
var __decorate$e = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2616
2635
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2617
2636
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2618
2637
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2677,26 +2696,26 @@ class VegaCalendarFullDayEventRenderer extends globalSlimmerRegistry.VegaSlimmer
|
|
|
2677
2696
|
}
|
|
2678
2697
|
}
|
|
2679
2698
|
VegaCalendarFullDayEventRenderer.maxDisplayEventLength = 2;
|
|
2680
|
-
__decorate$
|
|
2699
|
+
__decorate$e([
|
|
2681
2700
|
globalSlimmerRegistry.MapToComponentField()
|
|
2682
2701
|
], VegaCalendarFullDayEventRenderer.prototype, "calendarView", void 0);
|
|
2683
|
-
__decorate$
|
|
2702
|
+
__decorate$e([
|
|
2684
2703
|
globalSlimmerRegistry.MapToComponentField()
|
|
2685
2704
|
], VegaCalendarFullDayEventRenderer.prototype, "calendarEventController", void 0);
|
|
2686
|
-
__decorate$
|
|
2705
|
+
__decorate$e([
|
|
2687
2706
|
globalSlimmerRegistry.MapToComponentField()
|
|
2688
2707
|
], VegaCalendarFullDayEventRenderer.prototype, "eventItemRenderer", void 0);
|
|
2689
|
-
__decorate$
|
|
2708
|
+
__decorate$e([
|
|
2690
2709
|
globalSlimmerRegistry.MapToComponentField()
|
|
2691
2710
|
], VegaCalendarFullDayEventRenderer.prototype, "fullDayEventLayoutRenderer", void 0);
|
|
2692
|
-
__decorate$
|
|
2711
|
+
__decorate$e([
|
|
2693
2712
|
globalSlimmerRegistry.MapToComponentField()
|
|
2694
2713
|
], VegaCalendarFullDayEventRenderer.prototype, "showAllEventsInDayOrWeekView", void 0);
|
|
2695
|
-
__decorate$
|
|
2714
|
+
__decorate$e([
|
|
2696
2715
|
globalSlimmerRegistry.MapToComponentField()
|
|
2697
2716
|
], VegaCalendarFullDayEventRenderer.prototype, "dayViewFullDayEventMoreButtonRenderer", void 0);
|
|
2698
2717
|
|
|
2699
|
-
var __decorate$
|
|
2718
|
+
var __decorate$d = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
2700
2719
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
2701
2720
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
2702
2721
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -2761,7 +2780,7 @@ class VegaCalendarDayViewEventLayoutRenderer extends globalSlimmerRegistry.VegaS
|
|
|
2761
2780
|
}
|
|
2762
2781
|
}
|
|
2763
2782
|
VegaCalendarDayViewEventLayoutRenderer.totalNumberOfCells = 24 * 4;
|
|
2764
|
-
__decorate$
|
|
2783
|
+
__decorate$d([
|
|
2765
2784
|
globalSlimmerRegistry.MapToComponentField()
|
|
2766
2785
|
], VegaCalendarDayViewEventLayoutRenderer.prototype, "eventItemRenderer", void 0);
|
|
2767
2786
|
|
|
@@ -3047,7 +3066,7 @@ class VegaCalendarEventSorter {
|
|
|
3047
3066
|
}
|
|
3048
3067
|
}
|
|
3049
3068
|
|
|
3050
|
-
var __decorate$
|
|
3069
|
+
var __decorate$c = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3051
3070
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3052
3071
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3053
3072
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3086,13 +3105,13 @@ class VegaCalendarTimedEventRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
3086
3105
|
return this.dayViewEventLayoutRenderer.render(layout);
|
|
3087
3106
|
}
|
|
3088
3107
|
}
|
|
3089
|
-
__decorate$
|
|
3108
|
+
__decorate$c([
|
|
3090
3109
|
globalSlimmerRegistry.MapToComponentField()
|
|
3091
3110
|
], VegaCalendarTimedEventRenderer.prototype, "calendarView", void 0);
|
|
3092
|
-
__decorate$
|
|
3111
|
+
__decorate$c([
|
|
3093
3112
|
globalSlimmerRegistry.MapToComponentField()
|
|
3094
3113
|
], VegaCalendarTimedEventRenderer.prototype, "calendarEventController", void 0);
|
|
3095
|
-
__decorate$
|
|
3114
|
+
__decorate$c([
|
|
3096
3115
|
globalSlimmerRegistry.MapToComponentField()
|
|
3097
3116
|
], VegaCalendarTimedEventRenderer.prototype, "dayViewEventLayoutRenderer", void 0);
|
|
3098
3117
|
|
|
@@ -3261,7 +3280,7 @@ class VegaCalendarFullDayEventLayoutGenerator extends VegaCalendarBaseEventLayou
|
|
|
3261
3280
|
}
|
|
3262
3281
|
}
|
|
3263
3282
|
|
|
3264
|
-
var __decorate$
|
|
3283
|
+
var __decorate$b = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3265
3284
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3266
3285
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3267
3286
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3346,17 +3365,17 @@ class VegaCalendarFullDayEventLayoutRenderer extends globalSlimmerRegistry.VegaS
|
|
|
3346
3365
|
}
|
|
3347
3366
|
}
|
|
3348
3367
|
VegaCalendarFullDayEventLayoutRenderer.monthViewEventOffsetTop = 26;
|
|
3349
|
-
__decorate$
|
|
3368
|
+
__decorate$b([
|
|
3350
3369
|
globalSlimmerRegistry.MapToComponentField()
|
|
3351
3370
|
], VegaCalendarFullDayEventLayoutRenderer.prototype, "eventItemRenderer", void 0);
|
|
3352
|
-
__decorate$
|
|
3371
|
+
__decorate$b([
|
|
3353
3372
|
globalSlimmerRegistry.MapToComponentField()
|
|
3354
3373
|
], VegaCalendarFullDayEventLayoutRenderer.prototype, "viewMode", void 0);
|
|
3355
|
-
__decorate$
|
|
3374
|
+
__decorate$b([
|
|
3356
3375
|
globalSlimmerRegistry.MapToComponentField()
|
|
3357
3376
|
], VegaCalendarFullDayEventLayoutRenderer.prototype, "calendarView", void 0);
|
|
3358
3377
|
|
|
3359
|
-
var __decorate$
|
|
3378
|
+
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3360
3379
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3361
3380
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3362
3381
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3393,14 +3412,14 @@ class VegaCalendarFullDayEventMoreButtonRenderer extends globalSlimmerRegistry.V
|
|
|
3393
3412
|
this.showAllEventsInDayOrWeekView = false;
|
|
3394
3413
|
}
|
|
3395
3414
|
}
|
|
3396
|
-
__decorate$
|
|
3415
|
+
__decorate$a([
|
|
3397
3416
|
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
3398
3417
|
], VegaCalendarFullDayEventMoreButtonRenderer.prototype, "showAllEventsInDayOrWeekView", void 0);
|
|
3399
|
-
__decorate$
|
|
3418
|
+
__decorate$a([
|
|
3400
3419
|
globalSlimmerRegistry.MapToComponentMethod('watchViewModeChange')
|
|
3401
3420
|
], VegaCalendarFullDayEventMoreButtonRenderer.prototype, "resetShowAllFlag", null);
|
|
3402
3421
|
|
|
3403
|
-
var __decorate$
|
|
3422
|
+
var __decorate$9 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3404
3423
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3405
3424
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3406
3425
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
@@ -3544,25 +3563,72 @@ class VegaCalendarTimeMarkerRenderer extends globalSlimmerRegistry.VegaSlimmer {
|
|
|
3544
3563
|
return 0;
|
|
3545
3564
|
}
|
|
3546
3565
|
}
|
|
3547
|
-
__decorate$
|
|
3566
|
+
__decorate$9([
|
|
3548
3567
|
globalSlimmerRegistry.MapToComponentField()
|
|
3549
3568
|
], VegaCalendarTimeMarkerRenderer.prototype, "viewMode", void 0);
|
|
3550
|
-
__decorate$
|
|
3569
|
+
__decorate$9([
|
|
3551
3570
|
globalSlimmerRegistry.MapToComponentField()
|
|
3552
3571
|
], VegaCalendarTimeMarkerRenderer.prototype, "viewRenderer", void 0);
|
|
3553
|
-
__decorate$
|
|
3572
|
+
__decorate$9([
|
|
3554
3573
|
globalSlimmerRegistry.MapToComponentMethod('watchViewModeChange')
|
|
3555
3574
|
], VegaCalendarTimeMarkerRenderer.prototype, "updateTimeLine", null);
|
|
3556
|
-
__decorate$
|
|
3575
|
+
__decorate$9([
|
|
3557
3576
|
globalSlimmerRegistry.MapToComponentMethod('disconnectedCallback')
|
|
3558
3577
|
], VegaCalendarTimeMarkerRenderer.prototype, "clearTimer", null);
|
|
3559
|
-
__decorate$
|
|
3578
|
+
__decorate$9([
|
|
3560
3579
|
globalSlimmerRegistry.MapToComponentMethod('connectedCallback')
|
|
3561
3580
|
], VegaCalendarTimeMarkerRenderer.prototype, "updateTimeLineIfComponentAddBack", null);
|
|
3562
|
-
__decorate$
|
|
3581
|
+
__decorate$9([
|
|
3563
3582
|
globalSlimmerRegistry.MapToComponentMethod('componentDidLoad')
|
|
3564
3583
|
], VegaCalendarTimeMarkerRenderer.prototype, "displayCurrentTimeBlockByDefault", null);
|
|
3565
3584
|
|
|
3585
|
+
var __decorate$8 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
3586
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3587
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
3588
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
3589
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
3590
|
+
};
|
|
3591
|
+
/**
|
|
3592
|
+
* Controller for managing the post-operation date in the Vega Calendar.
|
|
3593
|
+
*/
|
|
3594
|
+
class VegaCalendarPostOperationDateController extends globalSlimmerRegistry.VegaSlimmer {
|
|
3595
|
+
/**
|
|
3596
|
+
* Set new current date
|
|
3597
|
+
*
|
|
3598
|
+
* @param {CalendarDate} currentDate new value
|
|
3599
|
+
*/
|
|
3600
|
+
setPostOperationDate(currentDate) {
|
|
3601
|
+
this.postOperationDate = currentDate;
|
|
3602
|
+
}
|
|
3603
|
+
/**
|
|
3604
|
+
* Set post operation Date when the current period changes
|
|
3605
|
+
*
|
|
3606
|
+
* @param {CalendarPeriod} newValue the new calendar period
|
|
3607
|
+
* @param {CalendarPeriod} oldValue the prev calendar period
|
|
3608
|
+
*/
|
|
3609
|
+
setDate(newValue, oldValue) {
|
|
3610
|
+
if (newValue.current !== this.postOperationDate) {
|
|
3611
|
+
// If the interval is changed from month to month, the time after the operation should be changed to the 1st of each month
|
|
3612
|
+
if (newValue.type === 'month' && (oldValue === null || oldValue === void 0 ? void 0 : oldValue.type) === 'month') {
|
|
3613
|
+
const currentDate = newValue.current.toDate();
|
|
3614
|
+
if (currentDate) {
|
|
3615
|
+
currentDate.setDate(1);
|
|
3616
|
+
this.setPostOperationDate(CalendarDate.from(currentDate));
|
|
3617
|
+
}
|
|
3618
|
+
}
|
|
3619
|
+
else {
|
|
3620
|
+
this.setPostOperationDate(CalendarDate.from(newValue.current.toDate()));
|
|
3621
|
+
}
|
|
3622
|
+
}
|
|
3623
|
+
}
|
|
3624
|
+
}
|
|
3625
|
+
__decorate$8([
|
|
3626
|
+
globalSlimmerRegistry.MapToComponentField({ writable: true })
|
|
3627
|
+
], VegaCalendarPostOperationDateController.prototype, "postOperationDate", void 0);
|
|
3628
|
+
__decorate$8([
|
|
3629
|
+
globalSlimmerRegistry.MapToComponentMethod('watchCurrentPeriodChange')
|
|
3630
|
+
], VegaCalendarPostOperationDateController.prototype, "setDate", null);
|
|
3631
|
+
|
|
3566
3632
|
const vegaCalendarCss = ".border-divider-top{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-left-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-top.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-left{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-right-width:0px;border-bottom-width:0px}.border-divider-left.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.border-divider-right{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-bottom-width:0px}.border-divider-bottom{border:1px solid rgba(var(--v-border-divider-secondary, 199, 217, 229, 1));border-top-width:0px;border-left-width:0px;border-right-width:0px}:host{display:flex;flex-direction:column;border-radius:12px;border:1px solid rgba(var(--v-border-divider, 171, 198, 216, 1));background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));overflow:hidden;width:100%;height:100%;box-sizing:border-box;max-height:1966px}.calendar-switch-panel{padding:24px;border-bottom-width:1px;border-top-width:0px;border-left-width:0px;border-right-width:0px;border-style:solid;border-color:rgba(var(--v-border-color-divider, 171, 198, 216, 1));flex-shrink:0;width:100%;box-sizing:border-box}.calendar-switch-panel .calendar-date-switch-container{display:flex;gap:8px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-view-switch-container{display:flex;gap:16px;align-items:center;flex-direction:row}.calendar-switch-panel .calendar-current-date{padding-left:8px}.calendar-view{width:100%;position:relative;flex-grow:1;overflow-y:auto;overflow-x:hidden;--calendar-weekday-columns:7}.calendar-view.calendar-hide-weekends{--calendar-weekday-columns:5}.calendar-view-month .calendar-view-month-container{width:100%;display:grid;min-height:100%;grid-template-rows:43px repeat(6, minmax(64px, 1fr))}.calendar-view-month .calendar-view-title{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));top:0;left:0;z-index:62}.calendar-view-month .calendar-view-title div{padding-top:12px;padding-bottom:12px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-title div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-month .calendar-view-row{position:relative;display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-month .calendar-view-row.calendar-view-title{position:sticky}.calendar-view-month .calendar-view-row:last-child{border-bottom-width:0px}.calendar-view-month .calendar-view-row .row-cell{overflow:hidden;display:flex;flex-direction:column;justify-content:space-between}.calendar-view-month .calendar-view-row .row-cell:last-child{border-right-width:0px}.calendar-view-month .calendar-view-row .row-cell .date{padding-top:4px;padding-bottom:4px;padding-right:12px;padding-left:8px}.calendar-view-month .calendar-view-row .row-cell .date>div{display:inline-block;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .calendar-view-row .row-cell .date>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-month .calendar-view-row .row-cell .date .month-block{margin-right:2px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col{text-align:center;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;cursor:pointer;width:18px;height:18px;line-height:18px}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:hover{background-color:rgba(var(--v-bg-action-secondary-hover, 4, 112, 236, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:active{background-color:rgba(var(--v-bg-action-secondary-active, 29, 65, 195, 0.1))}.calendar-view-month .calendar-view-row .row-cell .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-month .calendar-view-row .row-cell.current-month-day .date>div{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled{background-color:rgba(var(--v-bg-secondary, 245, 247, 247, 1))}.calendar-view-month .calendar-view-row .row-cell.disabled .date>div{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col{background-color:rgba(var(--v-bg-action, 19, 98, 226, 1));border-top-left-radius:9999px;border-bottom-left-radius:9999px;color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:hover{background-color:rgba(var(--v-bg-action-hover, 4, 112, 236, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:active{background-color:rgba(var(--v-bg-action-active, 29, 65, 195, 1))}.calendar-view-month .calendar-view-row .row-cell.active .date .grid-col:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:2px}.calendar-view-container{width:100%}.calendar-view-container .calendar-view-title-container{background-color:rgba(var(--v-bg-primary, 252, 252, 252, 1));position:sticky;top:0;left:0;z-index:62}.calendar-view-container .calendar-view-row{box-sizing:border-box;width:100%;display:flex;flex-direction:row}.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{width:72px;text-align:right;padding-right:8px;box-sizing:border-box;font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-primary, 32, 54, 69, 1));flex-shrink:0}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-row .time-line,.calendar-view-container .calendar-view-row .time-line-empty,.calendar-view-container .calendar-view-row .time-line-all{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.calendar-view-container .calendar-view-title{width:100%}.calendar-view-container .calendar-view-title>div{padding:12px;padding-bottom:8px;color:rgba(var(--v-text-secondary, 107, 116, 125, 1));font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px;text-align:center;display:flex;flex-direction:column;gap:8px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title>div{font-family:\"Inter\", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.calendar-view-container .calendar-view-title .week-day{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-title .week-day{font-family:\"Inter\", sans-serif;font-size:20px;font-weight:500;line-height:24px;letter-spacing:0px}}.calendar-view-container .calendar-view-title .active div{color:rgba(var(--v-text-link, 19, 98, 226, 1))}.calendar-view-container .calendar-view-event-all-container{align-items:center}.calendar-view-container .calendar-view-event-all{display:grid;grid-template-rows:1fr;flex-grow:1;min-height:18px}.calendar-view-container .calendar-view-day-container .time-line{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr))}.calendar-view-container .calendar-view-day-container .time-line .time-text{margin-top:-9px}.calendar-view-container .calendar-view-day-container .calendar-view-content{width:100%}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col{display:grid;grid-template-rows:16px repeat(24, minmax(74px, 1fr));grid-template-columns:minmax(64px, 1fr)}.calendar-view-container .calendar-view-day-container .calendar-view-content .grid-col>.border-divider-top:first-child{border-top-width:0px}.calendar-view-container .calendar-view-content-container{width:100%;position:relative}.calendar-view-week .calendar-view-container{min-height:100%}.calendar-view-week .calendar-view-container .calendar-view-title{display:grid;grid-template-rows:1fr;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-event-all{grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .calendar-view-container .calendar-view-day-container .calendar-view-content{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .time-marker-container .time-marker{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-week .day-event-container{display:grid;grid-template-columns:repeat(var(--calendar-weekday-columns), minmax(64px, 1fr))}.calendar-view-day .calendar-view-container{min-height:100%}.time-marker-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.time-marker-container.hidden{display:none}.time-marker-container .time-marker{position:absolute;height:2px;display:grid;min-width:100%;left:0;top:0;z-index:61}.time-marker-container .time-marker div{width:100%;height:2px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));opacity:0.3}.time-marker-container .time-marker div.active{opacity:1;position:relative}.time-marker-container .time-marker div.active::before{content:\"\";display:block;border-top-left-radius:9999px;border-bottom-left-radius:9999px;border-top-right-radius:9999px;border-bottom-right-radius:9999px;position:absolute;width:8px;height:8px;background-color:rgba(var(--v-bg-status-error, 255, 110, 139, 1));top:-3px;left:-4px}.day-event-container{position:absolute;min-width:100%;left:0;top:16px;height:calc(100% - 16px);pointer-events:none}.day-event-container .day-event-col{height:100%;overflow:hidden}.day-event-container vega-calendar-event{pointer-events:auto;height:100%}.calendar-view-month .month-event-row{position:absolute;width:100%;overflow:hidden;height:calc(100% - 26px);left:0;bottom:0}.calendar-view-month .events-container{width:100%;box-sizing:border-box;overflow:hidden;padding:2px;display:flex;flex-direction:column;gap:2px;justify-content:space-between;flex-grow:1}.calendar-view-month .events-container .event-list{display:flex;flex-direction:column;gap:2px;flex-grow:1}.calendar-view-month .events-container .event-list .month-event-block{box-sizing:border-box;padding-left:2px;padding-right:3px}.calendar-view-month .events-container .month-event-more .more-button{display:inline-block;height:16px;font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-month .events-container .month-event-more .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-month .events-container .month-event-more .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all{position:relative}.calendar-view-container .calendar-view-event-all .placeholder-block{padding-top:2px;padding-bottom:2px;box-sizing:content-box}.calendar-view-container .calendar-view-event-all .placeholder-block span{display:none}.calendar-view-container .calendar-view-event-all .day-event-block{padding-top:2px;padding-right:2px;box-sizing:border-box;padding-left:3px}.calendar-view-container .calendar-view-event-all .more-button{display:inline-block;height:16px;font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;border-radius:2px;margin-left:2px;padding:2px}@media screen and (min-width: 768px) and (max-width: 1023px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.calendar-view-container .calendar-view-event-all .more-button{font-family:\"Inter\", sans-serif;font-size:12px;font-weight:700;line-height:16px;letter-spacing:0px}}.calendar-view-container .calendar-view-event-all .more-button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px}.calendar-view-container .calendar-view-event-all .event-all-col{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start}.calendar-view-container .day-event-col{position:relative}.calendar-view-container .day-event-col .time-event-block{box-sizing:border-box;padding-right:8px;padding-bottom:2px;padding-top:3px}.calendar-view-container .day-event-col .time-event-block vega-calendar-event.bg-shadow::part(event-container):not(:focus){outline:2px solid rgba(var(--v-bg-primary, 252, 252, 252, 1))}.calendar-view-container .day-event-col .time-event-block:focus-within{z-index:60 !important}.calendar-event-slot-container{display:none}";
|
|
3567
3633
|
|
|
3568
3634
|
var __decorate$7 = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
@@ -3597,9 +3663,11 @@ const VegaCalendar = class {
|
|
|
3597
3663
|
this.timeLineRenderer = new VegaCalendarTimeLineRenderer();
|
|
3598
3664
|
this.timeMarkerRenderer = new VegaCalendarTimeMarkerRenderer();
|
|
3599
3665
|
this.monthEventRenderer = new VegaCalendarMonthEventRenderer();
|
|
3600
|
-
//The current period controller
|
|
3666
|
+
// The current period controller should be before the calendar view controller because the initial current period should be before the initial calendar view
|
|
3601
3667
|
this.currentPeriodController = new VegaCalendarCurrentPeriodController();
|
|
3602
3668
|
this.calendarViewController = new VegaCalendarViewController();
|
|
3669
|
+
// Date after recording the operation
|
|
3670
|
+
this.postOperationDateController = new VegaCalendarPostOperationDateController();
|
|
3603
3671
|
this.dayViewFullDayEventRenderer = new VegaCalendarFullDayEventRenderer();
|
|
3604
3672
|
this.dayViewFullDayEventMoreButtonRenderer = new VegaCalendarFullDayEventMoreButtonRenderer();
|
|
3605
3673
|
this.dayViewTimedEventRenderer = new VegaCalendarTimedEventRenderer();
|
|
@@ -3615,6 +3683,12 @@ const VegaCalendar = class {
|
|
|
3615
3683
|
this.changeEventPrevent = new childNodesEventPreventSlimmer.ChildNodesEventPreventSlimmer([domNodeSubjectFactory.VegaChange], () => this.switchPanelRenderer.getSwitchPanelRef());
|
|
3616
3684
|
this.timeFormatNotifySlimmer = subStateNotifySlimmer.createSubStateNotifySlimmer(VegaCalendar, 'timeFormat', 'watchTimeFormat');
|
|
3617
3685
|
this.showEventColorBarNotifySlimmer = subStateNotifySlimmer.createSubStateNotifySlimmer(VegaCalendar, 'showEventColorBar', 'watchShowEventColorBar');
|
|
3686
|
+
/**
|
|
3687
|
+
* This postOperationDate will record the time after the operation, which will affect the calculation of day/week/month, making the generated interval accurate
|
|
3688
|
+
*
|
|
3689
|
+
* @type {CalendarDate}
|
|
3690
|
+
*/
|
|
3691
|
+
this.postOperationDate = CalendarDate.from(new Date());
|
|
3618
3692
|
this.showAllEventsInDayOrWeekView = false;
|
|
3619
3693
|
this.calendarEvents = [];
|
|
3620
3694
|
/**
|
|
@@ -3649,6 +3723,12 @@ const VegaCalendar = class {
|
|
|
3649
3723
|
* @vegaVersion 2.21.0
|
|
3650
3724
|
*/
|
|
3651
3725
|
this.showEventColorBar = true;
|
|
3726
|
+
/**
|
|
3727
|
+
* Controls whether the switch view is displayed.
|
|
3728
|
+
*
|
|
3729
|
+
* @vegaVersion 2.58.0
|
|
3730
|
+
*/
|
|
3731
|
+
this.showSwitchView = true;
|
|
3652
3732
|
/**
|
|
3653
3733
|
* Controls the visibility of the weekend columns in the calendar.
|
|
3654
3734
|
*
|
|
@@ -3749,6 +3829,9 @@ __decorate$7([
|
|
|
3749
3829
|
__decorate$7([
|
|
3750
3830
|
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
3751
3831
|
], VegaCalendar.prototype, "calendarViewController", void 0);
|
|
3832
|
+
__decorate$7([
|
|
3833
|
+
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
3834
|
+
], VegaCalendar.prototype, "postOperationDateController", void 0);
|
|
3752
3835
|
__decorate$7([
|
|
3753
3836
|
globalSlimmerRegistry.InjectVegaSlimmer()
|
|
3754
3837
|
], VegaCalendar.prototype, "dayViewFullDayEventRenderer", void 0);
|