@dereekb/dbx-form 9.17.2 → 9.18.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/calendar/README.md +6 -0
- package/calendar/index.d.ts +1 -0
- package/calendar/lib/calendar.module.d.ts +29 -0
- package/calendar/lib/calendar.schedule.selection.cell.component.d.ts +14 -0
- package/calendar/lib/calendar.schedule.selection.component.d.ts +27 -0
- package/calendar/lib/calendar.schedule.selection.d.ts +29 -0
- package/calendar/lib/calendar.schedule.selection.days.component.d.ts +17 -0
- package/calendar/lib/calendar.schedule.selection.days.form.component.d.ts +10 -0
- package/calendar/lib/calendar.schedule.selection.dialog.button.component.d.ts +12 -0
- package/calendar/lib/calendar.schedule.selection.dialog.component.d.ts +12 -0
- package/calendar/lib/calendar.schedule.selection.form.d.ts +4 -0
- package/calendar/lib/calendar.schedule.selection.popover.button.component.d.ts +15 -0
- package/calendar/lib/calendar.schedule.selection.popover.component.d.ts +14 -0
- package/calendar/lib/calendar.schedule.selection.popover.content.component.d.ts +7 -0
- package/calendar/lib/calendar.schedule.selection.range.component.d.ts +37 -0
- package/calendar/lib/calendar.schedule.selection.store.d.ts +142 -0
- package/calendar/lib/calendar.schedule.selection.store.provide.d.ts +24 -0
- package/calendar/lib/field/index.d.ts +1 -0
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +40 -0
- package/calendar/lib/field/schedule/calendar.schedule.field.d.ts +6 -0
- package/calendar/lib/field/schedule/calendar.schedule.module.d.ts +15 -0
- package/calendar/lib/field/schedule/index.d.ts +3 -0
- package/calendar/lib/index.d.ts +16 -0
- package/esm2020/calendar/dereekb-dbx-form-calendar.mjs +5 -0
- package/esm2020/calendar/index.mjs +2 -0
- package/esm2020/calendar/lib/calendar.module.mjs +138 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.cell.component.mjs +46 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.component.mjs +72 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.days.component.mjs +45 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.days.form.component.mjs +26 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.dialog.button.component.mjs +32 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.dialog.component.mjs +35 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.form.mjs +15 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.mjs +30 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +45 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.component.mjs +37 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +27 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +99 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.store.mjs +294 -0
- package/esm2020/calendar/lib/calendar.schedule.selection.store.provide.mjs +52 -0
- package/esm2020/calendar/lib/field/index.mjs +3 -0
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +95 -0
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.mjs +16 -0
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.module.mjs +54 -0
- package/esm2020/calendar/lib/field/schedule/index.mjs +4 -0
- package/esm2020/calendar/lib/index.mjs +17 -0
- package/esm2020/lib/form/action/form.action.directive.mjs +4 -4
- package/esm2020/lib/form/action/form.action.module.mjs +5 -5
- package/esm2020/lib/form/action/transition/form.action.transition.module.mjs +5 -5
- package/esm2020/lib/form/action/transition/form.action.transition.safety.directive.mjs +4 -4
- package/esm2020/lib/form/form.module.mjs +5 -5
- package/esm2020/lib/form/io/form.changes.directive.mjs +4 -4
- package/esm2020/lib/form/io/form.input.directive.mjs +4 -4
- package/esm2020/lib/form/io/form.io.module.mjs +5 -5
- package/esm2020/lib/form/io/form.loading.directive.mjs +4 -4
- package/esm2020/lib/form.module.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +7 -7
- package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +4 -4
- package/esm2020/lib/formly/field/checklist/checklist.item.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/component/component.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/component/component.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/form.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/selection/list/list.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/selection/list/list.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +4 -4
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +13 -13
- package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +10 -10
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +4 -4
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/selection/selection.module.mjs +5 -5
- package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/texteditor/texteditor.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +14 -6
- package/esm2020/lib/formly/field/value/array/array.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/array/array.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/boolean/boolean.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/date/date.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +19 -9
- package/esm2020/lib/formly/field/value/number/number.field.mjs +4 -1
- package/esm2020/lib/formly/field/value/number/number.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +4 -4
- package/esm2020/lib/formly/field/value/phone/phone.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/text/text.field.module.mjs +5 -5
- package/esm2020/lib/formly/field/value/value.module.mjs +5 -5
- package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +5 -5
- package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +4 -4
- package/esm2020/lib/formly/formly.context.directive.mjs +4 -4
- package/esm2020/lib/formly/formly.directive.mjs +13 -13
- package/esm2020/lib/formly/formly.form.component.mjs +4 -4
- package/esm2020/lib/formly/formly.module.mjs +5 -5
- package/esm2020/lib/layout/form.layout.module.mjs +5 -5
- package/esm2020/lib/layout/form.spacer.component.mjs +4 -4
- package/esm2020/mapbox/lib/field/latlng/latlng.field.component.mjs +4 -4
- package/esm2020/mapbox/lib/field/latlng/latlng.module.mjs +5 -5
- package/esm2020/mapbox/lib/field/zoom/zoom.field.component.mjs +4 -4
- package/esm2020/mapbox/lib/field/zoom/zoom.module.mjs +5 -5
- package/esm2020/mapbox/lib/mapbox.module.mjs +5 -5
- package/fesm2015/dereekb-dbx-form-calendar.mjs +1063 -0
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -0
- package/fesm2015/dereekb-dbx-form-mapbox.mjs +18 -18
- package/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +252 -230
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs +1055 -0
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -0
- package/fesm2020/dereekb-dbx-form-mapbox.mjs +18 -18
- package/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +252 -230
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/extension/_extension.scss +38 -0
- package/lib/extension/calendar/_calendar.scss +89 -0
- package/lib/formly/field/value/array/array.field.component.d.ts +9 -2
- package/lib/formly/field/value/array/array.field.d.ts +1 -0
- package/lib/formly/field/value/date/datetime.field.component.d.ts +9 -7
- package/lib/formly/field/value/number/number.field.d.ts +4 -0
- package/lib/style/_all-core.scss +3 -1
- package/lib/style/_all-theme.scss +2 -0
- package/lib/style/_all-typography.scss +3 -1
- package/lib/style/_config.scss +16 -0
- package/lib/style/_core.scss +2 -2
- package/mapbox/esm2020/lib/field/latlng/latlng.field.component.mjs +4 -4
- package/mapbox/esm2020/lib/field/latlng/latlng.module.mjs +5 -5
- package/mapbox/esm2020/lib/field/zoom/zoom.field.component.mjs +4 -4
- package/mapbox/esm2020/lib/field/zoom/zoom.module.mjs +5 -5
- package/mapbox/esm2020/lib/mapbox.module.mjs +5 -5
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs +18 -18
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs +18 -18
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/package.json +7 -7
- package/package.json +16 -8
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./calendar.schedule.selection.component";
|
|
3
|
+
import * as i2 from "./calendar.schedule.selection.days.component";
|
|
4
|
+
import * as i3 from "./calendar.schedule.selection.days.form.component";
|
|
5
|
+
import * as i4 from "./calendar.schedule.selection.range.component";
|
|
6
|
+
import * as i5 from "./calendar.schedule.selection.popover.button.component";
|
|
7
|
+
import * as i6 from "./calendar.schedule.selection.cell.component";
|
|
8
|
+
import * as i7 from "./calendar.schedule.selection.popover.component";
|
|
9
|
+
import * as i8 from "./calendar.schedule.selection.popover.content.component";
|
|
10
|
+
import * as i9 from "./calendar.schedule.selection.store.provide";
|
|
11
|
+
import * as i10 from "./calendar.schedule.selection.dialog.component";
|
|
12
|
+
import * as i11 from "./calendar.schedule.selection.dialog.button.component";
|
|
13
|
+
import * as i12 from "@dereekb/dbx-web";
|
|
14
|
+
import * as i13 from "@dereekb/dbx-form";
|
|
15
|
+
import * as i14 from "@dereekb/dbx-web/calendar";
|
|
16
|
+
import * as i15 from "@angular/common";
|
|
17
|
+
import * as i16 from "@angular/material/icon";
|
|
18
|
+
import * as i17 from "@angular/material/button";
|
|
19
|
+
import * as i18 from "@angular/forms";
|
|
20
|
+
import * as i19 from "@angular/material/form-field";
|
|
21
|
+
import * as i20 from "@angular/material/button-toggle";
|
|
22
|
+
import * as i21 from "@angular/material/datepicker";
|
|
23
|
+
import * as i22 from "angular-calendar";
|
|
24
|
+
import * as i23 from "@angular/flex-layout";
|
|
25
|
+
export declare class DbxFormCalendarModule {
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormCalendarModule, never>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormCalendarModule, [typeof i1.DbxScheduleSelectionCalendarComponent, typeof i2.DbxScheduleSelectionCalendarDateDaysComponent, typeof i3.DbxScheduleSelectionCalendarDateDaysFormComponent, typeof i4.DbxScheduleSelectionCalendarDateRangeComponent, typeof i5.DbxScheduleSelectionCalendarDatePopoverButtonComponent, typeof i6.DbxScheduleSelectionCalendarCellComponent, typeof i7.DbxScheduleSelectionCalendarDatePopoverComponent, typeof i8.DbxScheduleSelectionCalendarDatePopoverContentComponent, typeof i9.DbxCalendarScheduleSelectionStoreInjectionBlockDirective, typeof i10.DbxScheduleSelectionCalendarDateDialogComponent, typeof i11.DbxScheduleSelectionCalendarDateDialogButtonComponent], [typeof i12.DbxActionModule, typeof i13.DbxFormModule, typeof i13.DbxFormlyModule, typeof i14.DbxCalendarModule, typeof i15.CommonModule, typeof i16.MatIconModule, typeof i17.MatButtonModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.MatFormFieldModule, typeof i20.MatButtonToggleModule, typeof i12.DbxButtonModule, typeof i21.MatDatepickerModule, typeof i12.DbxDialogInteractionModule, typeof i12.DbxPopoverInteractionModule, typeof i22.CalendarModule, typeof i22.CalendarDayModule, typeof i23.FlexLayoutModule, typeof i22.CalendarWeekModule], [typeof i1.DbxScheduleSelectionCalendarComponent, typeof i2.DbxScheduleSelectionCalendarDateDaysComponent, typeof i3.DbxScheduleSelectionCalendarDateDaysFormComponent, typeof i4.DbxScheduleSelectionCalendarDateRangeComponent, typeof i5.DbxScheduleSelectionCalendarDatePopoverButtonComponent, typeof i6.DbxScheduleSelectionCalendarCellComponent, typeof i7.DbxScheduleSelectionCalendarDatePopoverComponent, typeof i8.DbxScheduleSelectionCalendarDatePopoverContentComponent, typeof i9.DbxCalendarScheduleSelectionStoreInjectionBlockDirective, typeof i10.DbxScheduleSelectionCalendarDateDialogComponent, typeof i11.DbxScheduleSelectionCalendarDateDialogButtonComponent]>;
|
|
28
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormCalendarModule>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CalendarMonthViewDay } from 'angular-calendar';
|
|
2
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
3
|
+
import { CalendarScheduleSelectionCellContent, CalendarScheduleSelectionMetadata } from './calendar.schedule.selection';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxScheduleSelectionCalendarCellComponent {
|
|
6
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
7
|
+
content: CalendarScheduleSelectionCellContent;
|
|
8
|
+
get icon(): string | undefined;
|
|
9
|
+
get text(): string | undefined;
|
|
10
|
+
constructor(dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore);
|
|
11
|
+
set day(day: CalendarMonthViewDay<CalendarScheduleSelectionMetadata>);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarCellComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarCellComponent, "dbx-schedule-selection-calendar-cell", never, { "day": "day"; }, {}, never, never, false>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { CalendarEvent, CalendarMonthViewDay } from 'angular-calendar';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { DbxCalendarEvent, DbxCalendarStore } from '@dereekb/dbx-web/calendar';
|
|
5
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
6
|
+
import { CalendarScheduleSelectionMetadata } from './calendar.schedule.selection';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DbxScheduleSelectionCalendarComponent<T> implements OnDestroy {
|
|
9
|
+
readonly calendarStore: DbxCalendarStore<T>;
|
|
10
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
11
|
+
clickEvent: EventEmitter<DbxCalendarEvent<T>>;
|
|
12
|
+
readonly state$: import("rxjs").Observable<import("./calendar.schedule.selection.store").CalendarScheduleSelectionState>;
|
|
13
|
+
readonly refresh$: Subject<undefined>;
|
|
14
|
+
readonly events$: import("rxjs").Observable<CalendarEvent<any>[]>;
|
|
15
|
+
readonly viewDate$: import("rxjs").Observable<Date>;
|
|
16
|
+
constructor(calendarStore: DbxCalendarStore<T>, dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore);
|
|
17
|
+
dayClicked({ date }: {
|
|
18
|
+
date: Date;
|
|
19
|
+
}): void;
|
|
20
|
+
eventClicked(action: string, event: CalendarEvent<T>): void;
|
|
21
|
+
beforeMonthViewRender({ body }: {
|
|
22
|
+
body: CalendarMonthViewDay<CalendarScheduleSelectionMetadata>[];
|
|
23
|
+
}): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarComponent<any>, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarComponent<any>, "dbx-schedule-selection-calendar", never, {}, { "clickEvent": "clickEvent"; }, never, never, false>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DateBlockIndex, DateRange, DateScheduleRange } from '@dereekb/date';
|
|
2
|
+
import { FactoryWithRequiredInput } from '@dereekb/util';
|
|
3
|
+
import { CalendarMonthViewDay } from 'angular-calendar';
|
|
4
|
+
export interface CalendarScheduleSelectionValue {
|
|
5
|
+
/**
|
|
6
|
+
* Schedule range.
|
|
7
|
+
*/
|
|
8
|
+
dateScheduleRange: DateScheduleRange;
|
|
9
|
+
/**
|
|
10
|
+
* Min and max dates in the selection.
|
|
11
|
+
*/
|
|
12
|
+
minMaxRange: DateRange;
|
|
13
|
+
}
|
|
14
|
+
export declare enum CalendarScheduleSelectionDayState {
|
|
15
|
+
NOT_APPLICABLE = 0,
|
|
16
|
+
DISABLED = 1,
|
|
17
|
+
NOT_SELECTED = 2,
|
|
18
|
+
SELECTED = 3
|
|
19
|
+
}
|
|
20
|
+
export interface CalendarScheduleSelectionMetadata {
|
|
21
|
+
state: CalendarScheduleSelectionDayState;
|
|
22
|
+
i: DateBlockIndex;
|
|
23
|
+
}
|
|
24
|
+
export interface CalendarScheduleSelectionCellContent {
|
|
25
|
+
icon?: string;
|
|
26
|
+
text?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare type CalendarScheduleSelectionCellContentFactory = FactoryWithRequiredInput<CalendarScheduleSelectionCellContent, CalendarMonthViewDay<CalendarScheduleSelectionMetadata>>;
|
|
29
|
+
export declare const defaultCalendarScheduleSelectionCellContentFactory: CalendarScheduleSelectionCellContentFactory;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { HandleActionFunction } from '@dereekb/dbx-core';
|
|
2
|
+
import { DbxCalendarStore } from '@dereekb/dbx-web/calendar';
|
|
3
|
+
import { IsModifiedFunction } from '@dereekb/rxjs';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { DbxScheduleSelectionCalendarDateDaysFormValue } from './calendar.schedule.selection.days.form.component';
|
|
6
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DbxScheduleSelectionCalendarDateDaysComponent {
|
|
9
|
+
readonly dbxCalendarStore: DbxCalendarStore;
|
|
10
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
11
|
+
readonly template$: Observable<DbxScheduleSelectionCalendarDateDaysFormValue>;
|
|
12
|
+
readonly isFormModified: IsModifiedFunction<DbxScheduleSelectionCalendarDateDaysFormValue>;
|
|
13
|
+
constructor(dbxCalendarStore: DbxCalendarStore, dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore);
|
|
14
|
+
readonly updateScheduleDays: HandleActionFunction<DbxScheduleSelectionCalendarDateDaysFormValue>;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDateDaysComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDateDaysComponent, "dbx-schedule-selection-calendar-date-days", never, {}, {}, never, never, false>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractSyncFormlyFormDirective } from '@dereekb/dbx-form';
|
|
2
|
+
import { EnabledDays } from '@dereekb/util';
|
|
3
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare type DbxScheduleSelectionCalendarDateDaysFormValue = EnabledDays;
|
|
6
|
+
export declare class DbxScheduleSelectionCalendarDateDaysFormComponent extends AbstractSyncFormlyFormDirective<DbxScheduleSelectionCalendarDateDaysFormValue> {
|
|
7
|
+
readonly fields: FormlyFieldConfig[];
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDateDaysFormComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDateDaysFormComponent, "dbx-schedule-selection-calendar-date-days-form", never, {}, {}, never, never, false>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DbxScheduleSelectionCalendarDateDialogButtonComponent {
|
|
5
|
+
readonly matDialog: MatDialog;
|
|
6
|
+
readonly injector: Injector;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
constructor(matDialog: MatDialog, injector: Injector);
|
|
9
|
+
clickCustomize(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDateDialogButtonComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDateDialogButtonComponent, "dbx-schedule-selection-calendar-date-dialog-button", never, { "buttonText": "buttonText"; }, {}, never, never, false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Injector } from '@angular/core';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { AbstractDialogDirective } from '@dereekb/dbx-web';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface DbxScheduleSelectionCalendarDatePopupConfig {
|
|
6
|
+
injector: Injector;
|
|
7
|
+
}
|
|
8
|
+
export declare class DbxScheduleSelectionCalendarDateDialogComponent extends AbstractDialogDirective<void> {
|
|
9
|
+
static openDialog(matDialog: MatDialog, { injector }: DbxScheduleSelectionCalendarDatePopupConfig): import("@angular/material/dialog").MatDialogRef<DbxScheduleSelectionCalendarDateDialogComponent, any>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDateDialogComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDateDialogComponent, "ng-component", never, {}, {}, never, never, false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function dbxScheduleSelectionCalendarDateDaysFormFields(): import("@ngx-formly/core").FormlyFieldConfig<import("@dereekb/dbx-form").DbxFlexWrapperConfig>[];
|
|
2
|
+
export declare function dbxScheduleSelectionCalendarDateDaysFormDayFields(): import("@ngx-formly/core").FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
3
|
+
[additionalProperties: string]: any;
|
|
4
|
+
}>[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { DbxPopoverService } from '@dereekb/dbx-web';
|
|
3
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxScheduleSelectionCalendarDatePopoverButtonComponent {
|
|
6
|
+
readonly popoverService: DbxPopoverService;
|
|
7
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
8
|
+
readonly injector: Injector;
|
|
9
|
+
buttonPopoverOrigin: ElementRef;
|
|
10
|
+
readonly buttonText$: import("rxjs").Observable<string>;
|
|
11
|
+
constructor(popoverService: DbxPopoverService, dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore, injector: Injector);
|
|
12
|
+
openPopover(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDatePopoverButtonComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDatePopoverButtonComponent, "dbx-schedule-selection-calendar-date-popover-button", never, {}, {}, never, never, false>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { DbxPopoverKey, AbstractPopoverDirective, DbxPopoverService } from '@dereekb/dbx-web';
|
|
3
|
+
import { NgPopoverRef } from 'ng-overlay-container';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const DEFAULT_SCHEDULE_SELECTION_CALENDAR_DATE_POPOVER_KEY = "calendarselection";
|
|
6
|
+
export interface DbxScheduleSelectionCalendarDatePopoverConfig {
|
|
7
|
+
origin: ElementRef;
|
|
8
|
+
injector: Injector;
|
|
9
|
+
}
|
|
10
|
+
export declare class DbxScheduleSelectionCalendarDatePopoverComponent extends AbstractPopoverDirective<void> {
|
|
11
|
+
static openPopover(popoverService: DbxPopoverService, { origin, injector }: DbxScheduleSelectionCalendarDatePopoverConfig, popoverKey?: DbxPopoverKey): NgPopoverRef<any, number>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDatePopoverComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDatePopoverComponent, "ng-component", never, {}, {}, never, never, false>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DbxScheduleSelectionCalendarDatePopoverContentComponent implements OnDestroy {
|
|
4
|
+
ngOnDestroy(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDatePopoverContentComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDatePopoverContentComponent, "dbx-schedule-selection-calendar-date-popover-content", never, {}, {}, never, never, false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
3
|
+
import { DbxCalendarStore } from '@dereekb/dbx-web/calendar';
|
|
4
|
+
import { FormGroup, FormControl } from '@angular/forms';
|
|
5
|
+
import { Maybe } from '@dereekb/util';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DbxScheduleSelectionCalendarDateRangeComponent implements OnDestroy {
|
|
10
|
+
readonly dbxCalendarStore: DbxCalendarStore;
|
|
11
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
appearance: MatFormFieldAppearance;
|
|
14
|
+
label?: Maybe<string>;
|
|
15
|
+
hint?: Maybe<string>;
|
|
16
|
+
set disabled(disabled: Maybe<boolean>);
|
|
17
|
+
showCustomize: boolean;
|
|
18
|
+
readonly random: number;
|
|
19
|
+
private _pickerOpened;
|
|
20
|
+
private _syncSub;
|
|
21
|
+
private _valueSub;
|
|
22
|
+
readonly range: FormGroup<{
|
|
23
|
+
start: FormControl<Maybe<Date>>;
|
|
24
|
+
end: FormControl<Maybe<Date>>;
|
|
25
|
+
}>;
|
|
26
|
+
readonly minDate$: Observable<Maybe<Date>>;
|
|
27
|
+
readonly maxDate$: Observable<Maybe<Date>>;
|
|
28
|
+
readonly isCustomized$: Observable<boolean>;
|
|
29
|
+
readonly pickerOpened$: Observable<boolean>;
|
|
30
|
+
constructor(dbxCalendarStore: DbxCalendarStore, dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore);
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngOnDestroy(): void;
|
|
33
|
+
pickerOpened(): void;
|
|
34
|
+
pickerClosed(): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxScheduleSelectionCalendarDateRangeComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxScheduleSelectionCalendarDateRangeComponent, "dbx-schedule-selection-calendar-date-range", never, { "required": "required"; "appearance": "appearance"; "label": "label"; "hint": "hint"; "disabled": "disabled"; "showCustomize": "showCustomize"; }, {}, never, ["[customizeButton]"], false>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { DateBlockDayOfWeekFactory, DateBlockIndex, DateBlockRangeWithRange, DateOrDateBlockIndex, DateRange, DateScheduleDateFilterConfig, DateScheduleDayCode, DateScheduleRange, DateTimingRelativeIndexFactory } from '@dereekb/date';
|
|
2
|
+
import { Maybe, DecisionFunction, IterableOrValue, MaybeMap, DayOfWeek } from '@dereekb/util';
|
|
3
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { CalendarScheduleSelectionCellContentFactory, CalendarScheduleSelectionValue } from './calendar.schedule.selection';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface CalendarScheduleSelectionInputDateRange {
|
|
8
|
+
/**
|
|
9
|
+
* Input Start Date
|
|
10
|
+
*/
|
|
11
|
+
inputStart: Date;
|
|
12
|
+
/**
|
|
13
|
+
* Input End Date
|
|
14
|
+
*/
|
|
15
|
+
inputEnd: Date;
|
|
16
|
+
}
|
|
17
|
+
export declare type PartialCalendarScheduleSelectionInputDateRange = Partial<MaybeMap<CalendarScheduleSelectionInputDateRange>>;
|
|
18
|
+
export interface CalendarScheduleSelectionState extends PartialCalendarScheduleSelectionInputDateRange {
|
|
19
|
+
/**
|
|
20
|
+
* Filters the days of the schedule to only allow selecting days in the schedule.
|
|
21
|
+
*/
|
|
22
|
+
filter?: Maybe<DateScheduleDateFilterConfig>;
|
|
23
|
+
/**
|
|
24
|
+
* Minimum date allowed if no filter is set. If a filter is set, the greater of the two dates is used as the minimum.
|
|
25
|
+
*/
|
|
26
|
+
minDate?: Maybe<Date>;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum date allowed if no fitler is set. If a filter is set, the lesser of the two dates is used as the maximum.
|
|
29
|
+
*/
|
|
30
|
+
maxDate?: Maybe<Date>;
|
|
31
|
+
/**
|
|
32
|
+
* Start date. Is updated as the inputStart is modified or filter is provided that provides the start date.
|
|
33
|
+
*
|
|
34
|
+
* Defaults to today and the current timezone.
|
|
35
|
+
*/
|
|
36
|
+
start: Date;
|
|
37
|
+
/**
|
|
38
|
+
* DateTimingRelativeIndexFactory
|
|
39
|
+
*/
|
|
40
|
+
indexFactory: DateTimingRelativeIndexFactory;
|
|
41
|
+
/**
|
|
42
|
+
* Array of manually selected dates.
|
|
43
|
+
*
|
|
44
|
+
* Values that exist outside of the "input" range are considered toggled on, while those
|
|
45
|
+
* that are selected within the range are considered toggled off.
|
|
46
|
+
*
|
|
47
|
+
* If dates are selected, and then a range is selected, then those dates within the range that fall
|
|
48
|
+
* within the range are cleared from selection.
|
|
49
|
+
*
|
|
50
|
+
* These indexes are relative to the start date.
|
|
51
|
+
*/
|
|
52
|
+
selectedIndexes: Set<DateBlockIndex>;
|
|
53
|
+
/**
|
|
54
|
+
* Days of the schedule that are allowed to be picked.
|
|
55
|
+
*/
|
|
56
|
+
scheduleDays: Set<DateScheduleDayCode>;
|
|
57
|
+
/**
|
|
58
|
+
* Set of the days of week that are allowed.
|
|
59
|
+
*/
|
|
60
|
+
allowedDaysOfWeek: Set<DayOfWeek>;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
*/
|
|
64
|
+
indexDayOfWeek: DateBlockDayOfWeekFactory;
|
|
65
|
+
/**
|
|
66
|
+
* Decision function that returns true if a value is enabled given the current filter.
|
|
67
|
+
*/
|
|
68
|
+
isEnabledFilterDay: DecisionFunction<DateOrDateBlockIndex>;
|
|
69
|
+
/**
|
|
70
|
+
* Decision function that returns true if a value is enabled.
|
|
71
|
+
*
|
|
72
|
+
* This function does not take the current filter into account.
|
|
73
|
+
*/
|
|
74
|
+
isEnabledDay: DecisionFunction<DateOrDateBlockIndex>;
|
|
75
|
+
/**
|
|
76
|
+
* CalendarScheduleSelectionCellContentFactory for the view.
|
|
77
|
+
*/
|
|
78
|
+
cellContentFactory: CalendarScheduleSelectionCellContentFactory;
|
|
79
|
+
/**
|
|
80
|
+
* Current selection value.
|
|
81
|
+
*/
|
|
82
|
+
currentSelectionValue?: Maybe<CalendarScheduleSelectionValue>;
|
|
83
|
+
}
|
|
84
|
+
export declare function initialCalendarScheduleSelectionState(): CalendarScheduleSelectionState;
|
|
85
|
+
export declare class DbxCalendarScheduleSelectionStore extends ComponentStore<CalendarScheduleSelectionState> {
|
|
86
|
+
constructor();
|
|
87
|
+
readonly filter$: Observable<Maybe<DateScheduleDateFilterConfig>>;
|
|
88
|
+
readonly inputStart$: Observable<Maybe<Date>>;
|
|
89
|
+
readonly inputEnd$: Observable<Maybe<Date>>;
|
|
90
|
+
readonly currentInputRange$: Observable<Maybe<CalendarScheduleSelectionInputDateRange>>;
|
|
91
|
+
readonly inputRange$: Observable<CalendarScheduleSelectionInputDateRange>;
|
|
92
|
+
readonly selectedDates$: Observable<Set<DateBlockIndex>>;
|
|
93
|
+
readonly isEnabledFilterDayFunction$: Observable<DecisionFunction<DateOrDateBlockIndex>>;
|
|
94
|
+
readonly isEnabledDayFunction$: Observable<DecisionFunction<DateOrDateBlockIndex>>;
|
|
95
|
+
readonly currentDateRange$: Observable<Maybe<DateRange>>;
|
|
96
|
+
readonly dateRange$: Observable<DateRange>;
|
|
97
|
+
readonly scheduleDays$: Observable<Set<DateScheduleDayCode>>;
|
|
98
|
+
readonly currentSelectionValue$: Observable<Maybe<CalendarScheduleSelectionValue>>;
|
|
99
|
+
readonly selectionValue$: Observable<CalendarScheduleSelectionValue>;
|
|
100
|
+
readonly currentDateScheduleRangeValue$: Observable<Maybe<DateScheduleRange>>;
|
|
101
|
+
readonly dateScheduleRangeValue$: Observable<DateScheduleRange>;
|
|
102
|
+
readonly minDate$: Observable<Maybe<Date>>;
|
|
103
|
+
readonly maxDate$: Observable<Maybe<Date>>;
|
|
104
|
+
readonly cellContentFactory$: Observable<CalendarScheduleSelectionCellContentFactory>;
|
|
105
|
+
readonly isCustomized$: Observable<boolean>;
|
|
106
|
+
readonly setFilter: (() => void) | ((observableOrValue: Maybe<DateScheduleDateFilterConfig> | Observable<Maybe<DateScheduleDateFilterConfig>>) => import("rxjs").Subscription);
|
|
107
|
+
readonly clearFilter: () => void;
|
|
108
|
+
readonly setTimezone: (() => void) | ((observableOrValue: Maybe<string> | Observable<Maybe<string>>) => import("rxjs").Subscription);
|
|
109
|
+
readonly setInputRange: (observableOrValue: CalendarScheduleSelectionInputDateRange | Observable<CalendarScheduleSelectionInputDateRange>) => import("rxjs").Subscription;
|
|
110
|
+
readonly toggleSelectedDates: (observableOrValue: IterableOrValue<DateOrDateBlockIndex> | Observable<IterableOrValue<DateOrDateBlockIndex>>) => import("rxjs").Subscription;
|
|
111
|
+
readonly addSelectedDates: (observableOrValue: IterableOrValue<DateOrDateBlockIndex> | Observable<IterableOrValue<DateOrDateBlockIndex>>) => import("rxjs").Subscription;
|
|
112
|
+
readonly removeSelectedDates: (observableOrValue: IterableOrValue<DateOrDateBlockIndex> | Observable<IterableOrValue<DateOrDateBlockIndex>>) => import("rxjs").Subscription;
|
|
113
|
+
readonly setSelectedDates: (observableOrValue: IterableOrValue<DateOrDateBlockIndex> | Observable<IterableOrValue<DateOrDateBlockIndex>>) => import("rxjs").Subscription;
|
|
114
|
+
readonly setScheduleDays: (observableOrValue: Iterable<DateScheduleDayCode> | Observable<Iterable<DateScheduleDayCode>>) => import("rxjs").Subscription;
|
|
115
|
+
readonly setAllowAllScheduleDays: () => void;
|
|
116
|
+
readonly setDateScheduleRangeValue: (() => void) | ((observableOrValue: Maybe<DateScheduleRange> | Observable<Maybe<DateScheduleRange>>) => import("rxjs").Subscription);
|
|
117
|
+
readonly setCellContentFactory: (observableOrValue: CalendarScheduleSelectionCellContentFactory | Observable<CalendarScheduleSelectionCellContentFactory>) => import("rxjs").Subscription;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCalendarScheduleSelectionStore, never>;
|
|
119
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxCalendarScheduleSelectionStore>;
|
|
120
|
+
}
|
|
121
|
+
export declare function updateStateWithFilter(state: CalendarScheduleSelectionState, filter: Maybe<DateScheduleDateFilterConfig>): CalendarScheduleSelectionState;
|
|
122
|
+
export declare function updateStateWithDateScheduleRangeValue(state: CalendarScheduleSelectionState, change: Maybe<DateScheduleRange>): CalendarScheduleSelectionState;
|
|
123
|
+
export declare function updateStateWithChangedScheduleDays(state: CalendarScheduleSelectionState, change: Maybe<Iterable<DateScheduleDayCode>>): CalendarScheduleSelectionState;
|
|
124
|
+
export interface CalendarScheduleSelectionStateDatesChange {
|
|
125
|
+
toggle?: IterableOrValue<DateOrDateBlockIndex>;
|
|
126
|
+
add?: IterableOrValue<DateOrDateBlockIndex>;
|
|
127
|
+
remove?: IterableOrValue<DateOrDateBlockIndex>;
|
|
128
|
+
set?: IterableOrValue<DateOrDateBlockIndex>;
|
|
129
|
+
}
|
|
130
|
+
export declare function updateStateWithChangedDates(state: CalendarScheduleSelectionState, change: CalendarScheduleSelectionStateDatesChange): CalendarScheduleSelectionState;
|
|
131
|
+
export declare function noSelectionCalendarScheduleSelectionState(state: CalendarScheduleSelectionState): CalendarScheduleSelectionState;
|
|
132
|
+
export declare function updateStateWithChangedRange(state: CalendarScheduleSelectionState, change: CalendarScheduleSelectionInputDateRange): CalendarScheduleSelectionState;
|
|
133
|
+
export declare function finalizeNewCalendarScheduleSelectionState(nextState: CalendarScheduleSelectionState): CalendarScheduleSelectionState;
|
|
134
|
+
export declare function isEnabledDayInCalendarScheduleSelectionState(state: CalendarScheduleSelectionState): DecisionFunction<DateOrDateBlockIndex>;
|
|
135
|
+
export declare function computeScheduleSelectionValue(state: CalendarScheduleSelectionState): Maybe<CalendarScheduleSelectionValue>;
|
|
136
|
+
export interface CalendarScheduleSelectionRangeAndExclusion extends DateRange {
|
|
137
|
+
dateBlockRange: DateBlockRangeWithRange;
|
|
138
|
+
excluded: DateBlockIndex[];
|
|
139
|
+
}
|
|
140
|
+
export declare function computeScheduleSelectionRangeAndExclusion(state: CalendarScheduleSelectionState): Maybe<CalendarScheduleSelectionRangeAndExclusion>;
|
|
141
|
+
export declare function computeCalendarScheduleSelectionRange(state: CalendarScheduleSelectionState): Maybe<DateRange>;
|
|
142
|
+
export declare function computeCalendarScheduleSelectionDateBlockRange(state: CalendarScheduleSelectionState): Maybe<DateBlockRangeWithRange>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Provider } from '@angular/core';
|
|
2
|
+
import { DbxCalendarScheduleSelectionStore } from './calendar.schedule.selection.store';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Token used by provideCalendarScheduleSelectionStoreIfDoesNotExist() to prevent injecting a parent DbxCalendarScheduleSelectionStore into the child view.
|
|
6
|
+
*/
|
|
7
|
+
export declare class DbxCalendarScheduleSelectionStoreProviderBlock {
|
|
8
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
9
|
+
constructor(dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore);
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCalendarScheduleSelectionStoreProviderBlock, [{ skipSelf: true; }]>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxCalendarScheduleSelectionStoreProviderBlock>;
|
|
12
|
+
}
|
|
13
|
+
export declare class DbxCalendarScheduleSelectionStoreInjectionBlockDirective {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxCalendarScheduleSelectionStoreInjectionBlockDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxCalendarScheduleSelectionStoreInjectionBlockDirective, "[dbxCalendarScheduleSelectionStoreParentBlocker]", never, {}, {}, never, never, false>;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Creates a Provider that initializes a new DbxCalendarScheduleSelectionStore if a parent does not exist.
|
|
19
|
+
*
|
|
20
|
+
* If a DbxCalendarScheduleSelectionStoreInjectionBlock is available in the context, and references the same dbxCalendarScheduleSelectionStore that is attempting to be injected, a new DbxCalendarScheduleSelectionStore is created.
|
|
21
|
+
*
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare function provideCalendarScheduleSelectionStoreIfParentIsUnavailable(): Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './schedule';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { CompactContextStore } from '@dereekb/dbx-web';
|
|
3
|
+
import { NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
4
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
|
+
import { Maybe } from '@dereekb/util';
|
|
6
|
+
import { FieldType } from '@ngx-formly/material';
|
|
7
|
+
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
8
|
+
import { DateScheduleDateFilterConfig } from '@dereekb/date';
|
|
9
|
+
import { DbxCalendarScheduleSelectionStore } from '../../calendar.schedule.selection.store';
|
|
10
|
+
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
11
|
+
import * as i0 from "@angular/core";
|
|
12
|
+
export interface DbxFormCalendarDateScheduleRangeFieldProps extends Pick<FormlyFieldProps, 'label' | 'description' | 'readonly' | 'required'> {
|
|
13
|
+
appearance?: MatFormFieldAppearance;
|
|
14
|
+
hideCustomize?: boolean;
|
|
15
|
+
filter?: ObservableOrValue<Maybe<DateScheduleDateFilterConfig>>;
|
|
16
|
+
}
|
|
17
|
+
export declare class DbxFormCalendarDateScheduleRangeFieldComponent<T extends DbxFormCalendarDateScheduleRangeFieldProps = DbxFormCalendarDateScheduleRangeFieldProps> extends FieldType<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
18
|
+
readonly compact: CompactContextStore;
|
|
19
|
+
readonly dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore;
|
|
20
|
+
readonly ngZone: NgZone;
|
|
21
|
+
private _syncSub;
|
|
22
|
+
private _valueSub;
|
|
23
|
+
private _filterSub;
|
|
24
|
+
private _formControlObs;
|
|
25
|
+
readonly formControl$: import("rxjs").Observable<AbstractControl<any, any>>;
|
|
26
|
+
readonly value$: import("rxjs").Observable<any>;
|
|
27
|
+
constructor(compact: CompactContextStore, dbxCalendarScheduleSelectionStore: DbxCalendarScheduleSelectionStore, ngZone: NgZone);
|
|
28
|
+
get formGroupName(): string;
|
|
29
|
+
get formGroup(): FormGroup;
|
|
30
|
+
get appearance(): MatFormFieldAppearance;
|
|
31
|
+
get label(): Maybe<string>;
|
|
32
|
+
get description(): Maybe<string>;
|
|
33
|
+
get isReadonlyOrDisabled(): boolean;
|
|
34
|
+
get showCustomize(): boolean;
|
|
35
|
+
get filter(): ObservableOrValue<Maybe<DateScheduleDateFilterConfig>>;
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormCalendarDateScheduleRangeFieldComponent<any>, [{ optional: true; }, null, null]>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormCalendarDateScheduleRangeFieldComponent<any>, "ng-component", never, {}, {}, never, never, false>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { DescriptionFieldConfig, FieldConfig, LabeledFieldConfig } from '@dereekb/dbx-form';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { DbxFormCalendarDateScheduleRangeFieldProps } from './calendar.schedule.field.component';
|
|
4
|
+
export interface DateScheduleRangeFieldConfig extends Omit<LabeledFieldConfig, 'key' | 'placeholder'>, DescriptionFieldConfig, Partial<FieldConfig>, DbxFormCalendarDateScheduleRangeFieldProps {
|
|
5
|
+
}
|
|
6
|
+
export declare function dateScheduleRangeField(config?: DateScheduleRangeFieldConfig): FormlyFieldConfig;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./calendar.schedule.field.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/material/icon";
|
|
5
|
+
import * as i4 from "../../calendar.module";
|
|
6
|
+
import * as i5 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@dereekb/dbx-web";
|
|
8
|
+
import * as i7 from "@angular/forms";
|
|
9
|
+
import * as i8 from "@angular/material/input";
|
|
10
|
+
import * as i9 from "@ngx-formly/core";
|
|
11
|
+
export declare class DbxFormDateScheduleRangeFieldModule {
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormDateScheduleRangeFieldModule, never>;
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormDateScheduleRangeFieldModule, [typeof i1.DbxFormCalendarDateScheduleRangeFieldComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.DbxFormCalendarModule, typeof i5.MatButtonModule, typeof i6.DbxTextModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.MatInputModule, typeof i9.FormlyModule], never>;
|
|
14
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormDateScheduleRangeFieldModule>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './field';
|
|
2
|
+
export * from './calendar.module';
|
|
3
|
+
export * from './calendar.schedule.selection.cell.component';
|
|
4
|
+
export * from './calendar.schedule.selection.component';
|
|
5
|
+
export * from './calendar.schedule.selection.days.component';
|
|
6
|
+
export * from './calendar.schedule.selection.days.form.component';
|
|
7
|
+
export * from './calendar.schedule.selection.dialog.component';
|
|
8
|
+
export * from './calendar.schedule.selection.dialog.button.component';
|
|
9
|
+
export * from './calendar.schedule.selection.form';
|
|
10
|
+
export * from './calendar.schedule.selection.popover.button.component';
|
|
11
|
+
export * from './calendar.schedule.selection.popover.component';
|
|
12
|
+
export * from './calendar.schedule.selection.popover.content.component';
|
|
13
|
+
export * from './calendar.schedule.selection.range.component';
|
|
14
|
+
export * from './calendar.schedule.selection.store.provide';
|
|
15
|
+
export * from './calendar.schedule.selection.store';
|
|
16
|
+
export * from './calendar.schedule.selection';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyZWVrYi1kYngtZm9ybS1jYWxlbmRhci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RieC1mb3JtL2NhbGVuZGFyL3NyYy9kZXJlZWtiLWRieC1mb3JtLWNhbGVuZGFyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './lib';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZm9ybS9jYWxlbmRhci9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxPQUFPLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2xpYic7XG4iXX0=
|