@dereekb/dbx-form 9.23.10 → 9.23.12
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/calendar/lib/calendar.module.d.ts +14 -13
- package/calendar/lib/calendar.schedule.selection.store.d.ts +16 -3
- package/calendar/lib/calendar.schedule.selection.toggle.button.component.d.ts +19 -0
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +5 -2
- package/calendar/lib/index.d.ts +1 -0
- package/esm2020/calendar/lib/calendar.module.mjs +8 -4
- package/esm2020/calendar/lib/calendar.schedule.selection.component.mjs +8 -6
- package/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +3 -3
- package/esm2020/calendar/lib/calendar.schedule.selection.store.mjs +75 -16
- package/esm2020/calendar/lib/calendar.schedule.selection.toggle.button.component.mjs +55 -0
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +12 -3
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.mjs +4 -3
- package/esm2020/calendar/lib/index.mjs +2 -1
- package/fesm2015/dereekb-dbx-form-calendar.mjs +144 -28
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs +147 -28
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
|
@@ -20,6 +20,7 @@ export class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
20
20
|
this._syncSub = new SubscriptionObject();
|
|
21
21
|
this._valueSub = new SubscriptionObject();
|
|
22
22
|
this._filterSub = new SubscriptionObject();
|
|
23
|
+
this._exclusionsSub = new SubscriptionObject();
|
|
23
24
|
this._formControlObs = new BehaviorSubject(undefined);
|
|
24
25
|
this.formControl$ = this._formControlObs.pipe(filterMaybe());
|
|
25
26
|
this.value$ = this.formControl$.pipe(switchMap((control) => control.valueChanges.pipe(startWith(control.value))), shareReplay(1));
|
|
@@ -45,6 +46,9 @@ export class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
45
46
|
get filter() {
|
|
46
47
|
return this.props.filter;
|
|
47
48
|
}
|
|
49
|
+
get exclusions() {
|
|
50
|
+
return this.props.exclusions;
|
|
51
|
+
}
|
|
48
52
|
get initialSelectionState() {
|
|
49
53
|
return this.props.initialSelectionState;
|
|
50
54
|
}
|
|
@@ -59,23 +63,28 @@ export class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
59
63
|
this._valueSub.subscription = this.dbxCalendarScheduleSelectionStore.currentDateScheduleRangeValue$.subscribe((x) => {
|
|
60
64
|
this.formControl.setValue(x);
|
|
61
65
|
});
|
|
62
|
-
const filter = this
|
|
66
|
+
const { filter, exclusions } = this;
|
|
63
67
|
if (filter != null) {
|
|
64
68
|
this._filterSub.subscription = this.dbxCalendarScheduleSelectionStore.setFilter(asObservable(filter));
|
|
65
69
|
}
|
|
70
|
+
if (exclusions != null) {
|
|
71
|
+
this._exclusionsSub.subscription = this.dbxCalendarScheduleSelectionStore.setExclusions(asObservable(exclusions));
|
|
72
|
+
}
|
|
66
73
|
if (this.initialSelectionState !== undefined) {
|
|
67
74
|
this.dbxCalendarScheduleSelectionStore.setInitialSelectionState(this.initialSelectionState);
|
|
68
75
|
}
|
|
69
76
|
if (this.computeSelectionResultRelativeToFilter != null) {
|
|
70
77
|
this.dbxCalendarScheduleSelectionStore.setComputeSelectionResultRelativeToFilter(this.computeSelectionResultRelativeToFilter);
|
|
71
78
|
}
|
|
79
|
+
// TODO: Also add ability to set min/max dates independent of the filter
|
|
72
80
|
}
|
|
73
81
|
ngOnDestroy() {
|
|
74
82
|
super.ngOnDestroy();
|
|
75
83
|
this._syncSub.destroy();
|
|
76
84
|
this._valueSub.destroy();
|
|
77
|
-
this._formControlObs.complete();
|
|
78
85
|
this._filterSub.destroy();
|
|
86
|
+
this._exclusionsSub.destroy();
|
|
87
|
+
this._formControlObs.complete();
|
|
79
88
|
}
|
|
80
89
|
}
|
|
81
90
|
DbxFormCalendarDateScheduleRangeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormCalendarDateScheduleRangeFieldComponent, deps: [{ token: i1.CompactContextStore, optional: true }, { token: i2.DbxCalendarScheduleSelectionStore }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -101,4 +110,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
101
110
|
}], ctorParameters: function () { return [{ type: i1.CompactContextStore, decorators: [{
|
|
102
111
|
type: Optional
|
|
103
112
|
}] }, { type: i2.DbxCalendarScheduleSelectionStore }, { type: i0.NgZone }]; } });
|
|
104
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuc2NoZWR1bGUuZmllbGQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZGJ4LWZvcm0vY2FsZW5kYXIvc3JjL2xpYi9maWVsZC9zY2hlZHVsZS9jYWxlbmRhci5zY2hlZHVsZS5maWVsZC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDdkQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLEVBQXFCLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUcvRSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFDakQsT0FBTyxFQUFFLGVBQWUsRUFBRSxvQkFBb0IsRUFBRSxXQUFXLEVBQUUsU0FBUyxFQUFnQixTQUFTLEVBQUUsTUFBTSxNQUFNLENBQUM7QUFDOU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WFsU2VsZWN0aW9uU3RhdGUpO1xuICAgIH1cblxuICAgIGlmICh0aGlzLmNvbXB1dGVTZWxlY3Rpb25SZXN1bHRSZWxhdGl2ZVRvRmlsdGVyICE9IG51bGwpIHtcbiAgICAgIHRoaXMuZGJ4Q2FsZW5kYXJTY2hlZHVsZVNlbGVjdGlvblN0b3JlLnNldENvbXB1dGVTZWxlY3Rpb25SZXN1bHRSZWxhdGl2ZVRvRmlsdGVyKHRoaXMuY29tcHV0ZVNlbGVjdGlvblJlc3VsdFJlbGF0aXZlVG9GaWx0ZXIpO1xuICAgIH1cblxuICAgIC8vIFRPRE86IEFsc28gYWRkIGFiaWxpdHkgdG8gc2V0IG1pbi9tYXggZGF0ZXMgaW5kZXBlbmRlbnQgb2YgdGhlIGZpbHRlclxuICB9XG5cbiAgb3ZlcnJpZGUgbmdPbkRlc3Ryb3koKTogdm9pZCB7XG4gICAgc3VwZXIubmdPbkRlc3Ryb3koKTtcbiAgICB0aGlzLl9zeW5jU3ViLmRlc3Ryb3koKTtcbiAgICB0aGlzLl92YWx1ZVN1Yi5kZXN0cm95KCk7XG4gICAgdGhpcy5fZmlsdGVyU3ViLmRlc3Ryb3koKTtcbiAgICB0aGlzLl9leGNsdXNpb25zU3ViLmRlc3Ryb3koKTtcbiAgICB0aGlzLl9mb3JtQ29udHJvbE9icy5jb21wbGV0ZSgpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { formlyField, propsAndConfigForFieldConfig } from '@dereekb/dbx-form';
|
|
2
2
|
export function dateScheduleRangeField(config = {}) {
|
|
3
|
-
const { key = 'schedule', filter, initialSelectionState, computeSelectionResultRelativeToFilter } = config;
|
|
3
|
+
const { key = 'schedule', filter, initialSelectionState, computeSelectionResultRelativeToFilter, exclusions } = config;
|
|
4
4
|
const fieldConfig = {
|
|
5
5
|
...formlyField({
|
|
6
6
|
key,
|
|
@@ -9,10 +9,11 @@ export function dateScheduleRangeField(config = {}) {
|
|
|
9
9
|
label: config.label ?? 'Schedule',
|
|
10
10
|
filter,
|
|
11
11
|
computeSelectionResultRelativeToFilter,
|
|
12
|
-
initialSelectionState
|
|
12
|
+
initialSelectionState,
|
|
13
|
+
exclusions
|
|
13
14
|
})
|
|
14
15
|
})
|
|
15
16
|
};
|
|
16
17
|
return fieldConfig;
|
|
17
18
|
}
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kYXIuc2NoZWR1bGUuZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZm9ybS9jYWxlbmRhci9zcmMvbGliL2ZpZWxkL3NjaGVkdWxlL2NhbGVuZGFyLnNjaGVkdWxlLmZpZWxkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBdUMsV0FBVyxFQUFzQiw0QkFBNEIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBTXZJLE1BQU0sVUFBVSxzQkFBc0IsQ0FBQyxTQUF1QyxFQUFFO0lBQzlFLE1BQU0sRUFBRSxHQUFHLEdBQUcsVUFBVSxFQUFFLE1BQU0sRUFBRSxxQkFBcUIsRUFBRSxzQ0FBc0MsRUFBRSxVQUFVLEVBQUUsR0FBRyxNQUFNLENBQUM7SUFDdkgsTUFBTSxXQUFXLEdBQXNCO1FBQ3JDLEdBQUcsV0FBVyxDQUFDO1lBQ2IsR0FBRztZQUNILElBQUksRUFBRSxxQkFBcUI7WUFDM0IsR0FBRyw0QkFBNEIsQ0FBQyxNQUFNLEVBQUU7Z0JBQ3RDLEtBQUssRUFBRSxNQUFNLENBQUMsS0FBSyxJQUFJLFVBQVU7Z0JBQ2pDLE1BQU07Z0JBQ04sc0NBQXNDO2dCQUN0QyxxQkFBcUI7Z0JBQ3JC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iAgY29uc3QgZmllbGRDb25maWc6IEZvcm1seUZpZWxkQ29uZmlnID0ge1xuICAgIC4uLmZvcm1seUZpZWxkKHtcbiAgICAgIGtleSxcbiAgICAgIHR5cGU6ICdkYXRlLXNjaGVkdWxlLXJhbmdlJyxcbiAgICAgIC4uLnByb3BzQW5kQ29uZmlnRm9yRmllbGRDb25maWcoY29uZmlnLCB7XG4gICAgICAgIGxhYmVsOiBjb25maWcubGFiZWwgPz8gJ1NjaGVkdWxlJyxcbiAgICAgICAgZmlsdGVyLFxuICAgICAgICBjb21wdXRlU2VsZWN0aW9uUmVzdWx0UmVsYXRpdmVUb0ZpbHRlcixcbiAgICAgICAgaW5pdGlhbFNlbGVjdGlvblN0YXRlLFxuICAgICAgICBleGNsdXNpb25zXG4gICAgICB9KVxuICAgIH0pXG4gIH07XG5cbiAgcmV0dXJuIGZpZWxkQ29uZmlnO1xufVxuIl19
|
|
@@ -14,4 +14,5 @@ export * from './calendar.schedule.selection.range.component';
|
|
|
14
14
|
export * from './calendar.schedule.selection.store.provide';
|
|
15
15
|
export * from './calendar.schedule.selection.store';
|
|
16
16
|
export * from './calendar.schedule.selection';
|
|
17
|
-
|
|
17
|
+
export * from './calendar.schedule.selection.toggle.button.component';
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZm9ybS9jYWxlbmRhci9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsbUJBQW1CLENBQUM7QUFDbEMsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLHlDQUF5QyxDQUFDO0FBQ3hELGNBQWMsOENBQThDLENBQUM7QUFDN0QsY0FBYyxtREFBbUQsQ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bGVuZGFyLnNjaGVkdWxlLnNlbGVjdGlvbi5wb3BvdmVyLmJ1dHRvbi5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci5zY2hlZHVsZS5zZWxlY3Rpb24ucG9wb3Zlci5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci5zY2hlZHVsZS5zZWxlY3Rpb24ucG9wb3Zlci5jb250ZW50LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NhbGVuZGFyLnNjaGVkdWxlLnNlbGVjdGlvbi5yYW5nZS5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9jYWxlbmRhci5zY2hlZHVsZS5zZWxlY3Rpb24uc3RvcmUucHJvdmlkZSc7XG5leHBvcnQgKiBmcm9tICcuL2NhbGVuZGFyLnNjaGVkdWxlLnNlbGVjdGlvbi5zdG9yZSc7XG5leHBvcnQgKiBmcm9tICcuL2NhbGVuZGFyLnNjaGVkdWxlLnNlbGVjdGlvbic7XG5leHBvcnQgKiBmcm9tICcuL2NhbGVuZGFyLnNjaGVkdWxlLnNlbGVjdGlvbi50b2dnbGUuYnV0dG9uLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -3,10 +3,10 @@ import { formlyField, propsAndConfigForFieldConfig, flexLayoutWrapper, toggleFie
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { Injectable, SkipSelf, Directive, Injector, Optional, Component, Inject, Input, ElementRef, ViewChild, ChangeDetectionStrategy, EventEmitter, Output, NgModule } from '@angular/core';
|
|
5
5
|
import { FieldType } from '@ngx-formly/material';
|
|
6
|
-
import { map, distinctUntilChanged, shareReplay, BehaviorSubject,
|
|
6
|
+
import { switchMap, first, tap, map, distinctUntilChanged, shareReplay, BehaviorSubject, of, startWith, filter, throttleTime } from 'rxjs';
|
|
7
7
|
import { filterMaybe, SubscriptionObject, asObservable } from '@dereekb/rxjs';
|
|
8
|
-
import { DateScheduleDayCode, expandDateScheduleDayCodesToDayOfWeekSet, dateTimingRelativeIndexFactory, dateBlockDayOfWeekFactory, findMaxDate, findMinDate, isSameDate, isSameDateRange, isSameDateScheduleRange, isSameDateDay, copyDateScheduleDateFilterConfig, dateScheduleDateFilter, expandDateScheduleDayCodes, isDateInDateRangeFunction, isDateWithinDateBlockRangeFunction, dateScheduleEncodedWeek, dateBlockTimingDateFactory, enabledDaysFromDateScheduleDayCodes, dateScheduleDayCodesFromEnabledDays, formatToMonthDayString } from '@dereekb/date';
|
|
9
|
-
import { setsAreEquivalent,
|
|
8
|
+
import { DateScheduleDayCode, expandDateScheduleDayCodesToDayOfWeekSet, dateTimingRelativeIndexFactory, dateBlockDayOfWeekFactory, findMaxDate, findMinDate, isSameDate, isSameDateRange, isSameDateScheduleRange, isSameDateDay, dateTimingRelativeIndexArrayFactory, copyDateScheduleDateFilterConfig, dateScheduleDateFilter, expandDateScheduleDayCodes, isDateInDateRangeFunction, isDateWithinDateBlockRangeFunction, dateScheduleEncodedWeek, dateBlockTimingDateFactory, enabledDaysFromDateScheduleDayCodes, dateScheduleDayCodesFromEnabledDays, formatToMonthDayString } from '@dereekb/date';
|
|
9
|
+
import { setsAreEquivalent, unique, mergeArrays, iterableToArray, toggleInSet, addToSet, isIndexNumberInIndexRangeFunction, range, minAndMaxNumber, randomNumberFactory, getDaysOfWeekNames } from '@dereekb/util';
|
|
10
10
|
import { ComponentStore } from '@ngrx/component-store';
|
|
11
11
|
import { startOfDay } from 'date-fns';
|
|
12
12
|
import * as i1$1 from '@dereekb/dbx-web';
|
|
@@ -21,7 +21,7 @@ import * as i3$1 from '@angular/common';
|
|
|
21
21
|
import { CommonModule } from '@angular/common';
|
|
22
22
|
import * as i7 from '@angular/material/datepicker';
|
|
23
23
|
import { MatDatepickerModule } from '@angular/material/datepicker';
|
|
24
|
-
import * as
|
|
24
|
+
import * as i5$1 from 'angular-calendar';
|
|
25
25
|
import { CalendarModule, CalendarDayModule, CalendarWeekModule } from 'angular-calendar';
|
|
26
26
|
import * as i3$2 from '@dereekb/dbx-core';
|
|
27
27
|
import * as i3$3 from '@angular/material/icon';
|
|
@@ -37,12 +37,13 @@ import { FlexLayoutModule } from '@angular/flex-layout';
|
|
|
37
37
|
|
|
38
38
|
function dateScheduleRangeField(config = {}) {
|
|
39
39
|
var _a;
|
|
40
|
-
const { key = 'schedule', filter, initialSelectionState, computeSelectionResultRelativeToFilter } = config;
|
|
40
|
+
const { key = 'schedule', filter, initialSelectionState, computeSelectionResultRelativeToFilter, exclusions } = config;
|
|
41
41
|
const fieldConfig = Object.assign({}, formlyField(Object.assign({ key, type: 'date-schedule-range' }, propsAndConfigForFieldConfig(config, {
|
|
42
42
|
label: (_a = config.label) !== null && _a !== void 0 ? _a : 'Schedule',
|
|
43
43
|
filter,
|
|
44
44
|
computeSelectionResultRelativeToFilter,
|
|
45
|
-
initialSelectionState
|
|
45
|
+
initialSelectionState,
|
|
46
|
+
exclusions
|
|
46
47
|
}))));
|
|
47
48
|
return fieldConfig;
|
|
48
49
|
}
|
|
@@ -79,9 +80,9 @@ const defaultCalendarScheduleSelectionCellContentFactory = (day) => {
|
|
|
79
80
|
};
|
|
80
81
|
|
|
81
82
|
function initialCalendarScheduleSelectionState() {
|
|
82
|
-
const start = startOfDay(new Date());
|
|
83
83
|
const scheduleDays = new Set([DateScheduleDayCode.WEEKDAY, DateScheduleDayCode.WEEKEND]);
|
|
84
84
|
const allowedDaysOfWeek = expandDateScheduleDayCodesToDayOfWeekSet(Array.from(scheduleDays));
|
|
85
|
+
const start = startOfDay(new Date());
|
|
85
86
|
const indexFactory = dateTimingRelativeIndexFactory({ start });
|
|
86
87
|
const indexDayOfWeek = dateBlockDayOfWeekFactory(start);
|
|
87
88
|
return {
|
|
@@ -116,8 +117,15 @@ function calendarScheduleMinAndMaxDate(x) {
|
|
|
116
117
|
class DbxCalendarScheduleSelectionStore extends ComponentStore {
|
|
117
118
|
constructor() {
|
|
118
119
|
super(initialCalendarScheduleSelectionState());
|
|
120
|
+
// MARK:
|
|
121
|
+
this.toggleSelection = this.effect((input) => {
|
|
122
|
+
return input.pipe(switchMap(() => this.nextToggleSelection$.pipe(first(), filterMaybe(), tap((x) => {
|
|
123
|
+
this.selectAllDates(x);
|
|
124
|
+
}))));
|
|
125
|
+
});
|
|
119
126
|
// MARK: Accessors
|
|
120
127
|
this.filter$ = this.state$.pipe(map((x) => x.filter), distinctUntilChanged(), shareReplay(1));
|
|
128
|
+
this.hasConfiguredMinMaxRange$ = this.state$.pipe(map((x) => Boolean(x.minDate && x.maxDate) || Boolean(x.filter && x.filter.start && x.filter.end)), distinctUntilChanged(), shareReplay(1));
|
|
121
129
|
this.inputStart$ = this.state$.pipe(map((x) => x.inputStart), distinctUntilChanged(isSameDate), shareReplay(1));
|
|
122
130
|
this.inputEnd$ = this.state$.pipe(map((x) => x.inputEnd), distinctUntilChanged(isSameDate), shareReplay(1));
|
|
123
131
|
this.currentInputRange$ = this.state$.pipe(map(({ inputStart, inputEnd }) => ({ inputStart, inputEnd })), distinctUntilChanged((a, b) => isSameDate(a.inputStart, b.inputStart) && isSameDate(a.inputEnd, b.inputEnd)), map((x) => {
|
|
@@ -138,6 +146,16 @@ class DbxCalendarScheduleSelectionStore extends ComponentStore {
|
|
|
138
146
|
this.dateRange$ = this.currentDateRange$.pipe(filterMaybe(), shareReplay(1));
|
|
139
147
|
this.scheduleDays$ = this.state$.pipe(map((x) => x.scheduleDays), distinctUntilChanged(setsAreEquivalent), shareReplay(1));
|
|
140
148
|
this.currentSelectionValue$ = this.state$.pipe(map((x) => x.currentSelectionValue), shareReplay(1));
|
|
149
|
+
this.nextToggleSelection$ = this.hasConfiguredMinMaxRange$.pipe(switchMap((hasConfiguredMinMaxRange) => {
|
|
150
|
+
let obs;
|
|
151
|
+
if (hasConfiguredMinMaxRange) {
|
|
152
|
+
obs = this.currentSelectionValue$.pipe(map((x) => (Boolean(x) ? 'none' : 'all')));
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
obs = this.currentSelectionValue$.pipe(map((x) => (Boolean(x) ? 'none' : undefined)));
|
|
156
|
+
}
|
|
157
|
+
return obs;
|
|
158
|
+
}), shareReplay(1));
|
|
141
159
|
this.selectionValue$ = this.currentSelectionValue$.pipe(filterMaybe(), shareReplay(1));
|
|
142
160
|
this.currentDateScheduleRangeValue$ = this.currentSelectionValue$.pipe(map((x) => x === null || x === void 0 ? void 0 : x.dateScheduleRange), distinctUntilChanged(isSameDateScheduleRange), shareReplay(1));
|
|
143
161
|
this.dateScheduleRangeValue$ = this.currentDateScheduleRangeValue$.pipe(filterMaybe(), shareReplay(1));
|
|
@@ -147,6 +165,7 @@ class DbxCalendarScheduleSelectionStore extends ComponentStore {
|
|
|
147
165
|
this.isCustomized$ = this.state$.pipe(map((x) => x.selectedIndexes.size > 0), distinctUntilChanged(), shareReplay(1));
|
|
148
166
|
// MARK: State Changes
|
|
149
167
|
this.setFilter = this.updater((state, filter) => updateStateWithFilter(state, filter));
|
|
168
|
+
this.setExclusions = this.updater((state, exclusions) => updateStateWithExclusions(state, exclusions));
|
|
150
169
|
this.setComputeSelectionResultRelativeToFilter = this.updater((state, computeSelectionResultRelativeToFilter) => updateStateWithComputeSelectionResultRelativeToFilter(state, computeSelectionResultRelativeToFilter));
|
|
151
170
|
this.clearFilter = this.updater((state) => updateStateWithFilter(state, undefined));
|
|
152
171
|
this.setTimezone = this.updater((state, timezone) => (Object.assign(Object.assign({}, state), { timezone })));
|
|
@@ -182,14 +201,47 @@ function updateStateWithComputeSelectionResultRelativeToFilter(currentState, com
|
|
|
182
201
|
}
|
|
183
202
|
return state;
|
|
184
203
|
}
|
|
204
|
+
function updateStateWithExclusions(state, inputExclusions) {
|
|
205
|
+
let computedExclusions;
|
|
206
|
+
if (inputExclusions) {
|
|
207
|
+
const { indexFactory } = state;
|
|
208
|
+
const indexArrayFactory = dateTimingRelativeIndexArrayFactory(indexFactory);
|
|
209
|
+
computedExclusions = indexArrayFactory(inputExclusions);
|
|
210
|
+
}
|
|
211
|
+
state = Object.assign(Object.assign({}, state), { inputExclusions, computedExclusions });
|
|
212
|
+
return updateStateWithFilter(state, state.filter);
|
|
213
|
+
}
|
|
185
214
|
function updateStateWithFilter(state, inputFilter) {
|
|
215
|
+
const { computedExclusions: exclusions } = state;
|
|
186
216
|
let isEnabledFilterDay = () => true;
|
|
187
217
|
let filter = null;
|
|
188
|
-
if (inputFilter) {
|
|
189
|
-
|
|
190
|
-
|
|
218
|
+
if (inputFilter || (exclusions === null || exclusions === void 0 ? void 0 : exclusions.length)) {
|
|
219
|
+
let enabledFilter;
|
|
220
|
+
if (inputFilter) {
|
|
221
|
+
filter = copyDateScheduleDateFilterConfig(inputFilter); // copy filter
|
|
222
|
+
if (exclusions === null || exclusions === void 0 ? void 0 : exclusions.length) {
|
|
223
|
+
enabledFilter = Object.assign(Object.assign({}, filter), { ex: unique(mergeArrays([filter.ex, exclusions])) });
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
enabledFilter = filter;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
else {
|
|
230
|
+
enabledFilter = {
|
|
231
|
+
w: '89',
|
|
232
|
+
ex: exclusions
|
|
233
|
+
};
|
|
234
|
+
}
|
|
235
|
+
isEnabledFilterDay = dateScheduleDateFilter(enabledFilter);
|
|
191
236
|
}
|
|
192
237
|
state = Object.assign(Object.assign({}, state), { filter, isEnabledFilterDay });
|
|
238
|
+
// If the input filter has a start date, use that as the relative start to ensure indexes are compared the same.
|
|
239
|
+
if (filter && filter.start) {
|
|
240
|
+
const start = filter.start;
|
|
241
|
+
state.start = start;
|
|
242
|
+
state.indexFactory = dateTimingRelativeIndexFactory({ start });
|
|
243
|
+
state.indexDayOfWeek = dateBlockDayOfWeekFactory(start);
|
|
244
|
+
}
|
|
193
245
|
// attempt to re-apply the initial selection state once filter is applied
|
|
194
246
|
if (state.initialSelectionState) {
|
|
195
247
|
state = updateStateWithInitialSelectionState(state, state.initialSelectionState);
|
|
@@ -231,8 +283,10 @@ function updateStateWithChangedScheduleDays(state, change) {
|
|
|
231
283
|
}
|
|
232
284
|
function updateStateWithChangedDates(state, change) {
|
|
233
285
|
var _a;
|
|
234
|
-
const { indexFactory, allowedDaysOfWeek, indexDayOfWeek } = state;
|
|
286
|
+
const { indexFactory, allowedDaysOfWeek, indexDayOfWeek, inputStart: currentInputStart, inputEnd: currentInputEnd } = state;
|
|
235
287
|
const { minDate, maxDate } = calendarScheduleMinAndMaxDate(state);
|
|
288
|
+
let inputStart = currentInputStart;
|
|
289
|
+
let inputEnd = currentInputEnd;
|
|
236
290
|
let selectedIndexes;
|
|
237
291
|
if (change.reset || change.selectAll != null || change.set) {
|
|
238
292
|
let set = (_a = change.set) !== null && _a !== void 0 ? _a : [];
|
|
@@ -240,12 +294,14 @@ function updateStateWithChangedDates(state, change) {
|
|
|
240
294
|
switch (selectAll) {
|
|
241
295
|
case 'all':
|
|
242
296
|
if (minDate != null && maxDate != null) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
set =
|
|
297
|
+
inputStart = minDate;
|
|
298
|
+
inputEnd = maxDate;
|
|
299
|
+
set = [];
|
|
246
300
|
}
|
|
247
301
|
break;
|
|
248
302
|
case 'none':
|
|
303
|
+
inputStart = null;
|
|
304
|
+
inputEnd = null;
|
|
249
305
|
set = [];
|
|
250
306
|
break;
|
|
251
307
|
}
|
|
@@ -266,7 +322,7 @@ function updateStateWithChangedDates(state, change) {
|
|
|
266
322
|
addToSet(selectedIndexes, iterableToArray(change.remove).map(indexFactory));
|
|
267
323
|
}
|
|
268
324
|
}
|
|
269
|
-
const nextState = Object.assign(Object.assign({}, state), { selectedIndexes });
|
|
325
|
+
const nextState = Object.assign(Object.assign({}, state), { inputStart, inputEnd, selectedIndexes });
|
|
270
326
|
nextState.isEnabledDay = isEnabledDayInCalendarScheduleSelectionState(nextState);
|
|
271
327
|
// Recalculate the range and simplified to exclusions
|
|
272
328
|
const rangeAndExclusion = computeScheduleSelectionRangeAndExclusion(nextState);
|
|
@@ -282,7 +338,7 @@ function noSelectionCalendarScheduleSelectionState(state) {
|
|
|
282
338
|
return finalizeNewCalendarScheduleSelectionState(Object.assign(Object.assign({}, state), { selectedIndexes: new Set(), inputStart: null, inputEnd: null }));
|
|
283
339
|
}
|
|
284
340
|
function updateStateWithChangedRange(state, change) {
|
|
285
|
-
const { inputStart: currentInputStart, inputEnd: currentInputEnd, indexFactory, minDate, maxDate
|
|
341
|
+
const { inputStart: currentInputStart, inputEnd: currentInputEnd, indexFactory, minDate, maxDate } = state;
|
|
286
342
|
let inputStart = startOfDay(change.inputStart);
|
|
287
343
|
let inputEnd = startOfDay(change.inputEnd);
|
|
288
344
|
const isValidRange = minDate != null || maxDate != null ? isDateInDateRangeFunction({ start: minDate !== null && minDate !== void 0 ? minDate : undefined, end: maxDate !== null && maxDate !== void 0 ? maxDate : undefined }) : () => true;
|
|
@@ -290,12 +346,13 @@ function updateStateWithChangedRange(state, change) {
|
|
|
290
346
|
return state; // if no change, return the current state.
|
|
291
347
|
}
|
|
292
348
|
// retain all indexes that are within the new range
|
|
293
|
-
const minIndex =
|
|
349
|
+
const minIndex = indexFactory(inputStart);
|
|
294
350
|
const maxIndex = indexFactory(inputEnd) + 1;
|
|
295
351
|
const currentIndexes = Array.from(state.selectedIndexes);
|
|
296
352
|
const isInCurrentRange = isIndexNumberInIndexRangeFunction({ minIndex, maxIndex });
|
|
297
353
|
const excludedIndexesInNewRange = currentIndexes.filter(isInCurrentRange);
|
|
298
|
-
const
|
|
354
|
+
const selectedIndexes = new Set(excludedIndexesInNewRange);
|
|
355
|
+
const nextState = Object.assign(Object.assign({}, state), { selectedIndexes, inputStart, inputEnd });
|
|
299
356
|
return finalizeNewCalendarScheduleSelectionState(nextState);
|
|
300
357
|
}
|
|
301
358
|
function finalizeNewCalendarScheduleSelectionState(nextState) {
|
|
@@ -549,10 +606,10 @@ class DbxScheduleSelectionCalendarDateRangeComponent {
|
|
|
549
606
|
}
|
|
550
607
|
}
|
|
551
608
|
DbxScheduleSelectionCalendarDateRangeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDateRangeComponent, deps: [{ token: i1.DbxCalendarStore }, { token: DbxCalendarScheduleSelectionStore }, { token: MAT_FORM_FIELD_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Component });
|
|
552
|
-
DbxScheduleSelectionCalendarDateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: { required: "required", label: "label", hint: "hint", disabled: "disabled", showCustomize: "showCustomize" }, ngImport: i0, template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n</mat-form-field>\n", dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: i7.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i7.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i7.MatStartDate, selector: "input[matStartDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i7.MatEndDate, selector: "input[matEndDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i7.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
609
|
+
DbxScheduleSelectionCalendarDateRangeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarDateRangeComponent, selector: "dbx-schedule-selection-calendar-date-range", inputs: { required: "required", label: "label", hint: "hint", disabled: "disabled", showCustomize: "showCustomize" }, ngImport: i0, template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n <mat-hint>{{ hint }}</mat-hint>\n</mat-form-field>\n", dependencies: [{ kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.MatError, selector: "mat-error", inputs: ["id"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i5.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i5.MatLabel, selector: "mat-label" }, { kind: "directive", type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: i7.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "component", type: i7.MatDateRangeInput, selector: "mat-date-range-input", inputs: ["rangePicker", "required", "dateFilter", "min", "max", "disabled", "separator", "comparisonStart", "comparisonEnd"], exportAs: ["matDateRangeInput"] }, { kind: "directive", type: i7.MatStartDate, selector: "input[matStartDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "directive", type: i7.MatEndDate, selector: "input[matEndDate]", inputs: ["errorStateMatcher"], outputs: ["dateChange", "dateInput"] }, { kind: "component", type: i7.MatDateRangePicker, selector: "mat-date-range-picker", exportAs: ["matDateRangePicker"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
553
610
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarDateRangeComponent, decorators: [{
|
|
554
611
|
type: Component,
|
|
555
|
-
args: [{ selector: 'dbx-schedule-selection-calendar-date-range', template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n</mat-form-field>\n" }]
|
|
612
|
+
args: [{ selector: 'dbx-schedule-selection-calendar-date-range', template: "<mat-form-field class=\"dbx-schedule-selection-calendar-date-range-field\">\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\n <div *ngIf=\"showCustomize && (isCustomized$ | async)\" class=\"date-range-field-customized\">\n <span class=\"dbx-accent-bg date-range-field-customized-text\">Custom</span>\n </div>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <dbx-button-spacer></dbx-button-spacer>\n <mat-date-range-input [required]=\"required\" [min]=\"minDate$ | async\" [max]=\"maxDate$ | async\" [formGroup]=\"range\" [rangePicker]=\"picker\">\n <input matStartDate formControlName=\"start\" placeholder=\"Start date\" />\n <input matEndDate formControlName=\"end\" placeholder=\"End date\" />\n </mat-date-range-input>\n <div *ngIf=\"showCustomize\">\n <dbx-button-spacer></dbx-button-spacer>\n <ng-content select=\"[customizeButton]\"></ng-content>\n </div>\n <mat-date-range-picker #picker (opened)=\"pickerOpened()\" (closed)=\"pickerClosed()\"></mat-date-range-picker>\n <mat-error *ngIf=\"range.controls.start.hasError('matStartDateInvalid')\">Invalid start date</mat-error>\n <mat-error *ngIf=\"range.controls.end.hasError('matEndDateInvalid')\">Invalid end date</mat-error>\n <mat-hint>{{ hint }}</mat-hint>\n</mat-form-field>\n" }]
|
|
556
613
|
}], ctorParameters: function () {
|
|
557
614
|
return [{ type: i1.DbxCalendarStore }, { type: DbxCalendarScheduleSelectionStore }, { type: undefined, decorators: [{
|
|
558
615
|
type: Inject,
|
|
@@ -766,6 +823,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
766
823
|
type: Input
|
|
767
824
|
}] } });
|
|
768
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Toggle button for selecting and clearing the current selection.
|
|
828
|
+
*/
|
|
829
|
+
class DbxScheduleSelectionCalendarSelectionToggleButtonComponent {
|
|
830
|
+
constructor(popoverService, dbxCalendarScheduleSelectionStore, injector) {
|
|
831
|
+
this.popoverService = popoverService;
|
|
832
|
+
this.dbxCalendarScheduleSelectionStore = dbxCalendarScheduleSelectionStore;
|
|
833
|
+
this.injector = injector;
|
|
834
|
+
this.disableButton$ = this.dbxCalendarScheduleSelectionStore.nextToggleSelection$.pipe(map((x) => !x));
|
|
835
|
+
this.buttonDisplay$ = this.dbxCalendarScheduleSelectionStore.nextToggleSelection$.pipe(map((x) => {
|
|
836
|
+
let buttonDisplay;
|
|
837
|
+
switch (x) {
|
|
838
|
+
case 'all':
|
|
839
|
+
buttonDisplay = {
|
|
840
|
+
icon: 'select_all',
|
|
841
|
+
text: 'Select All'
|
|
842
|
+
};
|
|
843
|
+
break;
|
|
844
|
+
default:
|
|
845
|
+
case 'none':
|
|
846
|
+
buttonDisplay = {
|
|
847
|
+
icon: 'clear',
|
|
848
|
+
text: 'Clear Selection'
|
|
849
|
+
};
|
|
850
|
+
break;
|
|
851
|
+
}
|
|
852
|
+
return buttonDisplay;
|
|
853
|
+
}), shareReplay(1));
|
|
854
|
+
}
|
|
855
|
+
toggleSelection() {
|
|
856
|
+
this.dbxCalendarScheduleSelectionStore.toggleSelection();
|
|
857
|
+
}
|
|
858
|
+
}
|
|
859
|
+
DbxScheduleSelectionCalendarSelectionToggleButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarSelectionToggleButtonComponent, deps: [{ token: i1$1.DbxPopoverService }, { token: DbxCalendarScheduleSelectionStore }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
860
|
+
DbxScheduleSelectionCalendarSelectionToggleButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarSelectionToggleButtonComponent, selector: "dbx-schedule-selection-calendar-selection-toggle-button", ngImport: i0, template: `
|
|
861
|
+
<dbx-button [disabled]="disableButton$ | async" [buttonDisplay]="buttonDisplay$ | async" [raised]="true" (buttonClick)="toggleSelection()"></dbx-button>
|
|
862
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "iconOnly", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }] });
|
|
863
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarSelectionToggleButtonComponent, decorators: [{
|
|
864
|
+
type: Component,
|
|
865
|
+
args: [{
|
|
866
|
+
selector: 'dbx-schedule-selection-calendar-selection-toggle-button',
|
|
867
|
+
template: `
|
|
868
|
+
<dbx-button [disabled]="disableButton$ | async" [buttonDisplay]="buttonDisplay$ | async" [raised]="true" (buttonClick)="toggleSelection()"></dbx-button>
|
|
869
|
+
`
|
|
870
|
+
}]
|
|
871
|
+
}], ctorParameters: function () { return [{ type: i1$1.DbxPopoverService }, { type: DbxCalendarScheduleSelectionStore }, { type: i0.Injector }]; } });
|
|
872
|
+
|
|
769
873
|
class DbxScheduleSelectionCalendarComponent {
|
|
770
874
|
constructor(calendarStore, dbxCalendarScheduleSelectionStore) {
|
|
771
875
|
this.calendarStore = calendarStore;
|
|
@@ -819,10 +923,10 @@ class DbxScheduleSelectionCalendarComponent {
|
|
|
819
923
|
}
|
|
820
924
|
}
|
|
821
925
|
DbxScheduleSelectionCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarComponent, deps: [{ token: i1.DbxCalendarStore }, { token: DbxCalendarScheduleSelectionStore }], target: i0.ɵɵFactoryTarget.Component });
|
|
822
|
-
DbxScheduleSelectionCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarComponent, selector: "dbx-schedule-selection-calendar", outputs: { clickEvent: "clickEvent" }, providers: [DbxCalendarStore], ngImport: i0, template: "<dbx-calendar-base class=\"dbx-schedule-selection-calendar\">\n <ng-container controls>\n <dbx-schedule-selection-calendar-date-popover-button></dbx-schedule-selection-calendar-date-popover-button>\n </ng-container>\n <div class=\"dbx-calendar-content dbx-calendar-content-month\">\n <mwl-calendar-month-view [refresh]=\"refresh$\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\" (beforeViewRender)=\"beforeMonthViewRender($event)\" [cellTemplate]=\"monthDayCellTemplate\"></mwl-calendar-month-view>\n </div>\n</dbx-calendar-base>\n\n<!-- Cell -->\n<ng-template #monthDayCellTemplate let-day=\"day\" let-locale=\"locale\">\n <div class=\"cal-cell-top\">\n <span class=\"cal-day-badge\" *ngIf=\"day.badgeTotal > 0\">{{ day.badgeTotal }}</span>\n <span class=\"cal-day-number\">{{ day.date | calendarDate: 'monthViewDayNumber':locale }}</span>\n </div>\n <dbx-schedule-selection-calendar-cell [day]=\"day\"></dbx-schedule-selection-calendar-cell>\n</ng-template>\n", dependencies: [{ kind: "component", type: i1.DbxCalendarBaseComponent, selector: "dbx-calendar-base" }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type:
|
|
926
|
+
DbxScheduleSelectionCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: DbxScheduleSelectionCalendarComponent, selector: "dbx-schedule-selection-calendar", outputs: { clickEvent: "clickEvent" }, providers: [DbxCalendarStore], ngImport: i0, template: "<dbx-calendar-base class=\"dbx-schedule-selection-calendar\">\n <ng-container controls>\n <dbx-schedule-selection-calendar-selection-toggle-button></dbx-schedule-selection-calendar-selection-toggle-button>\n <dbx-button-spacer></dbx-button-spacer>\n <dbx-schedule-selection-calendar-date-popover-button></dbx-schedule-selection-calendar-date-popover-button>\n </ng-container>\n <div class=\"dbx-calendar-content dbx-calendar-content-month\">\n <mwl-calendar-month-view [refresh]=\"refresh$\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\" (beforeViewRender)=\"beforeMonthViewRender($event)\" [cellTemplate]=\"monthDayCellTemplate\"></mwl-calendar-month-view>\n </div>\n</dbx-calendar-base>\n\n<!-- Cell -->\n<ng-template #monthDayCellTemplate let-day=\"day\" let-locale=\"locale\">\n <div class=\"cal-cell-top\">\n <span class=\"cal-day-badge\" *ngIf=\"day.badgeTotal > 0\">{{ day.badgeTotal }}</span>\n <span class=\"cal-day-number\">{{ day.date | calendarDate: 'monthViewDayNumber':locale }}</span>\n </div>\n <dbx-schedule-selection-calendar-cell [day]=\"day\"></dbx-schedule-selection-calendar-cell>\n</ng-template>\n", dependencies: [{ kind: "component", type: i1.DbxCalendarBaseComponent, selector: "dbx-calendar-base" }, { kind: "directive", type: i3$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: i5$1.CalendarMonthViewComponent, selector: "mwl-calendar-month-view", inputs: ["viewDate", "events", "excludeDays", "activeDayIsOpen", "activeDay", "refresh", "locale", "tooltipPlacement", "tooltipTemplate", "tooltipAppendToBody", "tooltipDelay", "weekStartsOn", "headerTemplate", "cellTemplate", "openDayEventsTemplate", "eventTitleTemplate", "eventActionsTemplate", "weekendDays"], outputs: ["beforeViewRender", "dayClicked", "eventClicked", "columnHeaderClicked", "eventTimesChanged"] }, { kind: "component", type: DbxScheduleSelectionCalendarDatePopoverButtonComponent, selector: "dbx-schedule-selection-calendar-date-popover-button" }, { kind: "component", type: DbxScheduleSelectionCalendarCellComponent, selector: "dbx-schedule-selection-calendar-cell", inputs: ["day"] }, { kind: "component", type: DbxScheduleSelectionCalendarSelectionToggleButtonComponent, selector: "dbx-schedule-selection-calendar-selection-toggle-button" }, { kind: "pipe", type: i3$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5$1.ɵCalendarDatePipe, name: "calendarDate" }] });
|
|
823
927
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxScheduleSelectionCalendarComponent, decorators: [{
|
|
824
928
|
type: Component,
|
|
825
|
-
args: [{ selector: 'dbx-schedule-selection-calendar', providers: [DbxCalendarStore], template: "<dbx-calendar-base class=\"dbx-schedule-selection-calendar\">\n <ng-container controls>\n <dbx-schedule-selection-calendar-date-popover-button></dbx-schedule-selection-calendar-date-popover-button>\n </ng-container>\n <div class=\"dbx-calendar-content dbx-calendar-content-month\">\n <mwl-calendar-month-view [refresh]=\"refresh$\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\" (beforeViewRender)=\"beforeMonthViewRender($event)\" [cellTemplate]=\"monthDayCellTemplate\"></mwl-calendar-month-view>\n </div>\n</dbx-calendar-base>\n\n<!-- Cell -->\n<ng-template #monthDayCellTemplate let-day=\"day\" let-locale=\"locale\">\n <div class=\"cal-cell-top\">\n <span class=\"cal-day-badge\" *ngIf=\"day.badgeTotal > 0\">{{ day.badgeTotal }}</span>\n <span class=\"cal-day-number\">{{ day.date | calendarDate: 'monthViewDayNumber':locale }}</span>\n </div>\n <dbx-schedule-selection-calendar-cell [day]=\"day\"></dbx-schedule-selection-calendar-cell>\n</ng-template>\n" }]
|
|
929
|
+
args: [{ selector: 'dbx-schedule-selection-calendar', providers: [DbxCalendarStore], template: "<dbx-calendar-base class=\"dbx-schedule-selection-calendar\">\n <ng-container controls>\n <dbx-schedule-selection-calendar-selection-toggle-button></dbx-schedule-selection-calendar-selection-toggle-button>\n <dbx-button-spacer></dbx-button-spacer>\n <dbx-schedule-selection-calendar-date-popover-button></dbx-schedule-selection-calendar-date-popover-button>\n </ng-container>\n <div class=\"dbx-calendar-content dbx-calendar-content-month\">\n <mwl-calendar-month-view [refresh]=\"refresh$\" [viewDate]=\"(viewDate$ | async)!\" [events]=\"(events$ | async)!\" (dayClicked)=\"dayClicked($event.day)\" (eventClicked)=\"eventClicked('Clicked', $event.event)\" (beforeViewRender)=\"beforeMonthViewRender($event)\" [cellTemplate]=\"monthDayCellTemplate\"></mwl-calendar-month-view>\n </div>\n</dbx-calendar-base>\n\n<!-- Cell -->\n<ng-template #monthDayCellTemplate let-day=\"day\" let-locale=\"locale\">\n <div class=\"cal-cell-top\">\n <span class=\"cal-day-badge\" *ngIf=\"day.badgeTotal > 0\">{{ day.badgeTotal }}</span>\n <span class=\"cal-day-number\">{{ day.date | calendarDate: 'monthViewDayNumber':locale }}</span>\n </div>\n <dbx-schedule-selection-calendar-cell [day]=\"day\"></dbx-schedule-selection-calendar-cell>\n</ng-template>\n" }]
|
|
826
930
|
}], ctorParameters: function () { return [{ type: i1.DbxCalendarStore }, { type: DbxCalendarScheduleSelectionStore }]; }, propDecorators: { clickEvent: [{
|
|
827
931
|
type: Output
|
|
828
932
|
}] } });
|
|
@@ -894,6 +998,7 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
894
998
|
this._syncSub = new SubscriptionObject();
|
|
895
999
|
this._valueSub = new SubscriptionObject();
|
|
896
1000
|
this._filterSub = new SubscriptionObject();
|
|
1001
|
+
this._exclusionsSub = new SubscriptionObject();
|
|
897
1002
|
this._formControlObs = new BehaviorSubject(undefined);
|
|
898
1003
|
this.formControl$ = this._formControlObs.pipe(filterMaybe());
|
|
899
1004
|
this.value$ = this.formControl$.pipe(switchMap((control) => control.valueChanges.pipe(startWith(control.value))), shareReplay(1));
|
|
@@ -920,6 +1025,9 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
920
1025
|
get filter() {
|
|
921
1026
|
return this.props.filter;
|
|
922
1027
|
}
|
|
1028
|
+
get exclusions() {
|
|
1029
|
+
return this.props.exclusions;
|
|
1030
|
+
}
|
|
923
1031
|
get initialSelectionState() {
|
|
924
1032
|
return this.props.initialSelectionState;
|
|
925
1033
|
}
|
|
@@ -934,23 +1042,28 @@ class DbxFormCalendarDateScheduleRangeFieldComponent extends FieldType {
|
|
|
934
1042
|
this._valueSub.subscription = this.dbxCalendarScheduleSelectionStore.currentDateScheduleRangeValue$.subscribe((x) => {
|
|
935
1043
|
this.formControl.setValue(x);
|
|
936
1044
|
});
|
|
937
|
-
const filter = this
|
|
1045
|
+
const { filter, exclusions } = this;
|
|
938
1046
|
if (filter != null) {
|
|
939
1047
|
this._filterSub.subscription = this.dbxCalendarScheduleSelectionStore.setFilter(asObservable(filter));
|
|
940
1048
|
}
|
|
1049
|
+
if (exclusions != null) {
|
|
1050
|
+
this._exclusionsSub.subscription = this.dbxCalendarScheduleSelectionStore.setExclusions(asObservable(exclusions));
|
|
1051
|
+
}
|
|
941
1052
|
if (this.initialSelectionState !== undefined) {
|
|
942
1053
|
this.dbxCalendarScheduleSelectionStore.setInitialSelectionState(this.initialSelectionState);
|
|
943
1054
|
}
|
|
944
1055
|
if (this.computeSelectionResultRelativeToFilter != null) {
|
|
945
1056
|
this.dbxCalendarScheduleSelectionStore.setComputeSelectionResultRelativeToFilter(this.computeSelectionResultRelativeToFilter);
|
|
946
1057
|
}
|
|
1058
|
+
// TODO: Also add ability to set min/max dates independent of the filter
|
|
947
1059
|
}
|
|
948
1060
|
ngOnDestroy() {
|
|
949
1061
|
super.ngOnDestroy();
|
|
950
1062
|
this._syncSub.destroy();
|
|
951
1063
|
this._valueSub.destroy();
|
|
952
|
-
this._formControlObs.complete();
|
|
953
1064
|
this._filterSub.destroy();
|
|
1065
|
+
this._exclusionsSub.destroy();
|
|
1066
|
+
this._formControlObs.complete();
|
|
954
1067
|
}
|
|
955
1068
|
}
|
|
956
1069
|
DbxFormCalendarDateScheduleRangeFieldComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormCalendarDateScheduleRangeFieldComponent, deps: [{ token: i1$1.CompactContextStore, optional: true }, { token: DbxCalendarScheduleSelectionStore }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -991,7 +1104,8 @@ const declarations = [
|
|
|
991
1104
|
DbxScheduleSelectionCalendarDatePopoverContentComponent,
|
|
992
1105
|
DbxCalendarScheduleSelectionStoreInjectionBlockDirective,
|
|
993
1106
|
DbxScheduleSelectionCalendarDateDialogComponent,
|
|
994
|
-
DbxScheduleSelectionCalendarDateDialogButtonComponent
|
|
1107
|
+
DbxScheduleSelectionCalendarDateDialogButtonComponent,
|
|
1108
|
+
DbxScheduleSelectionCalendarSelectionToggleButtonComponent
|
|
995
1109
|
];
|
|
996
1110
|
class DbxFormCalendarModule {
|
|
997
1111
|
}
|
|
@@ -1008,7 +1122,8 @@ DbxFormCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
1008
1122
|
DbxScheduleSelectionCalendarDatePopoverContentComponent,
|
|
1009
1123
|
DbxCalendarScheduleSelectionStoreInjectionBlockDirective,
|
|
1010
1124
|
DbxScheduleSelectionCalendarDateDialogComponent,
|
|
1011
|
-
DbxScheduleSelectionCalendarDateDialogButtonComponent
|
|
1125
|
+
DbxScheduleSelectionCalendarDateDialogButtonComponent,
|
|
1126
|
+
DbxScheduleSelectionCalendarSelectionToggleButtonComponent
|
|
1012
1127
|
], imports: [
|
|
1013
1128
|
//
|
|
1014
1129
|
DbxActionModule,
|
|
@@ -1042,7 +1157,8 @@ DbxFormCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
1042
1157
|
DbxScheduleSelectionCalendarDatePopoverContentComponent,
|
|
1043
1158
|
DbxCalendarScheduleSelectionStoreInjectionBlockDirective,
|
|
1044
1159
|
DbxScheduleSelectionCalendarDateDialogComponent,
|
|
1045
|
-
DbxScheduleSelectionCalendarDateDialogButtonComponent
|
|
1160
|
+
DbxScheduleSelectionCalendarDateDialogButtonComponent,
|
|
1161
|
+
DbxScheduleSelectionCalendarSelectionToggleButtonComponent
|
|
1046
1162
|
] });
|
|
1047
1163
|
DbxFormCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFormCalendarModule, imports: [
|
|
1048
1164
|
//
|
|
@@ -1144,5 +1260,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
|
|
|
1144
1260
|
* Generated bundle index. Do not edit.
|
|
1145
1261
|
*/
|
|
1146
1262
|
|
|
1147
|
-
export { CalendarScheduleSelectionDayState, DEFAULT_SCHEDULE_SELECTION_CALENDAR_DATE_POPOVER_KEY, DbxCalendarScheduleSelectionStore, DbxCalendarScheduleSelectionStoreInjectionBlockDirective, DbxCalendarScheduleSelectionStoreProviderBlock, DbxFormCalendarDateScheduleRangeFieldComponent, DbxFormCalendarModule, DbxFormDateScheduleRangeFieldModule, DbxScheduleSelectionCalendarCellComponent, DbxScheduleSelectionCalendarComponent, DbxScheduleSelectionCalendarDateDaysComponent, DbxScheduleSelectionCalendarDateDaysFormComponent, DbxScheduleSelectionCalendarDateDialogButtonComponent, DbxScheduleSelectionCalendarDateDialogComponent, DbxScheduleSelectionCalendarDatePopoverButtonComponent, DbxScheduleSelectionCalendarDatePopoverComponent, DbxScheduleSelectionCalendarDatePopoverContentComponent, DbxScheduleSelectionCalendarDateRangeComponent, calendarScheduleMaxDate, calendarScheduleMinAndMaxDate, calendarScheduleMinDate, computeCalendarScheduleSelectionDateBlockRange, computeCalendarScheduleSelectionRange, computeScheduleSelectionRangeAndExclusion, computeScheduleSelectionValue, dateScheduleRangeField, dbxScheduleSelectionCalendarDateDaysFormDayFields, dbxScheduleSelectionCalendarDateDaysFormFields, defaultCalendarScheduleSelectionCellContentFactory, finalizeNewCalendarScheduleSelectionState, initialCalendarScheduleSelectionState, isEnabledDayInCalendarScheduleSelectionState, noSelectionCalendarScheduleSelectionState, provideCalendarScheduleSelectionStoreIfParentIsUnavailable, updateStateWithChangedDates, updateStateWithChangedRange, updateStateWithChangedScheduleDays, updateStateWithComputeSelectionResultRelativeToFilter, updateStateWithDateScheduleRangeValue, updateStateWithFilter, updateStateWithInitialSelectionState };
|
|
1263
|
+
export { CalendarScheduleSelectionDayState, DEFAULT_SCHEDULE_SELECTION_CALENDAR_DATE_POPOVER_KEY, DbxCalendarScheduleSelectionStore, DbxCalendarScheduleSelectionStoreInjectionBlockDirective, DbxCalendarScheduleSelectionStoreProviderBlock, DbxFormCalendarDateScheduleRangeFieldComponent, DbxFormCalendarModule, DbxFormDateScheduleRangeFieldModule, DbxScheduleSelectionCalendarCellComponent, DbxScheduleSelectionCalendarComponent, DbxScheduleSelectionCalendarDateDaysComponent, DbxScheduleSelectionCalendarDateDaysFormComponent, DbxScheduleSelectionCalendarDateDialogButtonComponent, DbxScheduleSelectionCalendarDateDialogComponent, DbxScheduleSelectionCalendarDatePopoverButtonComponent, DbxScheduleSelectionCalendarDatePopoverComponent, DbxScheduleSelectionCalendarDatePopoverContentComponent, DbxScheduleSelectionCalendarDateRangeComponent, DbxScheduleSelectionCalendarSelectionToggleButtonComponent, calendarScheduleMaxDate, calendarScheduleMinAndMaxDate, calendarScheduleMinDate, computeCalendarScheduleSelectionDateBlockRange, computeCalendarScheduleSelectionRange, computeScheduleSelectionRangeAndExclusion, computeScheduleSelectionValue, dateScheduleRangeField, dbxScheduleSelectionCalendarDateDaysFormDayFields, dbxScheduleSelectionCalendarDateDaysFormFields, defaultCalendarScheduleSelectionCellContentFactory, finalizeNewCalendarScheduleSelectionState, initialCalendarScheduleSelectionState, isEnabledDayInCalendarScheduleSelectionState, noSelectionCalendarScheduleSelectionState, provideCalendarScheduleSelectionStoreIfParentIsUnavailable, updateStateWithChangedDates, updateStateWithChangedRange, updateStateWithChangedScheduleDays, updateStateWithComputeSelectionResultRelativeToFilter, updateStateWithDateScheduleRangeValue, updateStateWithExclusions, updateStateWithFilter, updateStateWithInitialSelectionState };
|
|
1148
1264
|
//# sourceMappingURL=dereekb-dbx-form-calendar.mjs.map
|