@dereekb/dbx-form 11.1.7 → 12.0.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/lib/calendar.module.d.ts +1 -14
- package/calendar/lib/calendar.schedule.selection.cell.component.d.ts +8 -5
- package/calendar/lib/calendar.schedule.selection.component.d.ts +13 -10
- package/calendar/lib/calendar.schedule.selection.d.ts +6 -6
- package/calendar/lib/calendar.schedule.selection.days.component.d.ts +1 -1
- package/calendar/lib/calendar.schedule.selection.days.form.component.d.ts +1 -1
- package/calendar/lib/calendar.schedule.selection.dialog.button.component.d.ts +4 -4
- package/calendar/lib/calendar.schedule.selection.dialog.component.d.ts +5 -5
- package/calendar/lib/calendar.schedule.selection.popover.button.component.d.ts +4 -2
- package/calendar/lib/calendar.schedule.selection.popover.component.d.ts +1 -1
- package/calendar/lib/calendar.schedule.selection.popover.content.component.d.ts +1 -1
- package/calendar/lib/calendar.schedule.selection.range.component.d.ts +19 -17
- package/calendar/lib/calendar.schedule.selection.store.d.ts +2 -2
- package/calendar/lib/calendar.schedule.selection.store.provide.d.ts +1 -1
- package/calendar/lib/calendar.schedule.selection.toggle.button.component.d.ts +8 -12
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +22 -22
- package/calendar/lib/field/schedule/calendar.schedule.module.d.ts +2 -10
- package/esm2022/calendar/lib/calendar.module.mjs +19 -101
- package/esm2022/calendar/lib/calendar.schedule.selection.cell.component.mjs +27 -28
- package/esm2022/calendar/lib/calendar.schedule.selection.component.mjs +38 -55
- package/esm2022/calendar/lib/calendar.schedule.selection.days.component.mjs +17 -13
- package/esm2022/calendar/lib/calendar.schedule.selection.days.form.component.mjs +11 -12
- package/esm2022/calendar/lib/calendar.schedule.selection.dialog.button.component.mjs +18 -21
- package/esm2022/calendar/lib/calendar.schedule.selection.dialog.component.mjs +12 -9
- package/esm2022/calendar/lib/calendar.schedule.selection.mjs +3 -2
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +22 -18
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.component.mjs +12 -9
- package/esm2022/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +13 -10
- package/esm2022/calendar/lib/calendar.schedule.selection.range.component.mjs +52 -70
- package/esm2022/calendar/lib/calendar.schedule.selection.store.mjs +5 -5
- package/esm2022/calendar/lib/calendar.schedule.selection.store.provide.mjs +9 -8
- package/esm2022/calendar/lib/calendar.schedule.selection.toggle.button.component.mjs +48 -50
- package/esm2022/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +17 -14
- package/esm2022/calendar/lib/field/schedule/calendar.schedule.module.mjs +8 -40
- package/esm2022/lib/form/action/form.action.directive.mjs +58 -55
- package/esm2022/lib/form/action/form.action.module.mjs +9 -9
- package/esm2022/lib/form/action/transition/form.action.transition.module.mjs +9 -8
- package/esm2022/lib/form/action/transition/form.action.transition.safety.directive.mjs +14 -11
- package/esm2022/lib/form/form.mjs +1 -1
- package/esm2022/lib/form/form.module.mjs +4 -4
- package/esm2022/lib/form/io/form.changes.directive.mjs +11 -16
- package/esm2022/lib/form/io/form.input.directive.mjs +24 -38
- package/esm2022/lib/form/io/form.io.module.mjs +15 -9
- package/esm2022/lib/form/io/form.loading.directive.mjs +22 -42
- package/esm2022/lib/form.module.mjs +4 -4
- package/esm2022/lib/form.providers.mjs +32 -0
- package/esm2022/lib/formly/field/checklist/checklist.field.mjs +5 -5
- package/esm2022/lib/formly/field/checklist/checklist.item.field.component.mjs +51 -47
- package/esm2022/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +41 -29
- package/esm2022/lib/formly/field/checklist/checklist.item.field.mjs +3 -3
- package/esm2022/lib/formly/field/checklist/checklist.item.field.module.mjs +8 -45
- package/esm2022/lib/formly/field/checklist/checklist.item.mjs +1 -1
- package/esm2022/lib/formly/field/component/component.field.component.mjs +11 -8
- package/esm2022/lib/formly/field/component/component.field.module.mjs +8 -14
- package/esm2022/lib/formly/field/field.mjs +1 -1
- package/esm2022/lib/formly/field/form.field.module.mjs +4 -4
- package/esm2022/lib/formly/field/selection/list/list.field.component.mjs +17 -14
- package/esm2022/lib/formly/field/selection/list/list.field.module.mjs +8 -58
- package/esm2022/lib/formly/field/selection/pickable/pickable.chip.field.component.mjs +17 -13
- package/esm2022/lib/formly/field/selection/pickable/pickable.field.directive.mjs +16 -16
- package/esm2022/lib/formly/field/selection/pickable/pickable.field.module.mjs +8 -68
- package/esm2022/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +71 -54
- package/esm2022/lib/formly/field/selection/pickable/pickable.util.mjs +2 -2
- package/esm2022/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +21 -16
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.mjs +51 -49
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.directive.mjs +35 -27
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.mjs +1 -1
- package/esm2022/lib/formly/field/selection/searchable/searchable.field.module.mjs +8 -65
- package/esm2022/lib/formly/field/selection/searchable/searchable.mjs +1 -1
- package/esm2022/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +48 -30
- package/esm2022/lib/formly/field/selection/searchable/text.chip.field.mjs +2 -2
- package/esm2022/lib/formly/field/selection/selection.field.mjs +1 -1
- package/esm2022/lib/formly/field/selection/selection.mjs +1 -1
- package/esm2022/lib/formly/field/selection/selection.module.mjs +4 -4
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +20 -21
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.module.mjs +6 -73
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.mjs +1 -1
- package/esm2022/lib/formly/field/texteditor/texteditor.field.component.mjs +37 -22
- package/esm2022/lib/formly/field/texteditor/texteditor.field.mjs +2 -2
- package/esm2022/lib/formly/field/texteditor/texteditor.field.module.mjs +8 -33
- package/esm2022/lib/formly/field/value/array/array.field.component.mjs +72 -50
- package/esm2022/lib/formly/field/value/array/array.field.module.mjs +8 -44
- package/esm2022/lib/formly/field/value/boolean/boolean.field.mjs +2 -2
- package/esm2022/lib/formly/field/value/boolean/boolean.field.module.mjs +4 -4
- package/esm2022/lib/formly/field/value/date/date.field.module.mjs +5 -9
- package/esm2022/lib/formly/field/value/date/date.value.mjs +1 -1
- package/esm2022/lib/formly/field/value/date/datetime.field.component.mjs +8 -8
- package/esm2022/lib/formly/field/value/date/datetime.field.service.mjs +4 -4
- package/esm2022/lib/formly/field/value/date/datetime.mjs +1 -1
- package/esm2022/lib/formly/field/value/date/fixeddaterange.field.component.mjs +8 -8
- package/esm2022/lib/formly/field/value/number/number.field.mjs +1 -1
- package/esm2022/lib/formly/field/value/number/number.field.module.mjs +4 -4
- package/esm2022/lib/formly/field/value/phone/phone.field.component.mjs +4 -4
- package/esm2022/lib/formly/field/value/phone/phone.field.module.mjs +4 -4
- package/esm2022/lib/formly/field/value/text/text.address.field.mjs +1 -1
- package/esm2022/lib/formly/field/value/text/text.field.mjs +1 -1
- package/esm2022/lib/formly/field/value/text/text.field.module.mjs +4 -4
- package/esm2022/lib/formly/field/value/value.module.mjs +4 -4
- package/esm2022/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +9 -7
- package/esm2022/lib/formly/field/wrapper/expand.wrapper.component.mjs +19 -24
- package/esm2022/lib/formly/field/wrapper/expand.wrapper.delegate.mjs +7 -4
- package/esm2022/lib/formly/field/wrapper/flex.wrapper.component.mjs +11 -8
- package/esm2022/lib/formly/field/wrapper/form.wrapper.module.mjs +8 -39
- package/esm2022/lib/formly/field/wrapper/index.mjs +2 -1
- package/esm2022/lib/formly/field/wrapper/info.wrapper.component.mjs +19 -16
- package/esm2022/lib/formly/field/wrapper/section.wrapper.component.mjs +11 -7
- package/esm2022/lib/formly/field/wrapper/style.wrapper.component.mjs +16 -11
- package/esm2022/lib/formly/field/wrapper/subsection.wrapper.component.mjs +11 -8
- package/esm2022/lib/formly/field/wrapper/toggle.wrapper.component.mjs +21 -17
- package/esm2022/lib/formly/field/wrapper/working.wrapper.component.mjs +11 -8
- package/esm2022/lib/formly/field/wrapper/wrapper.mjs +1 -1
- package/esm2022/lib/formly/form/form.form.module.mjs +4 -4
- package/esm2022/lib/formly/form/search.form.component.mjs +4 -4
- package/esm2022/lib/formly/formly.component.template.mjs +29 -0
- package/esm2022/lib/formly/formly.context.directive.mjs +6 -5
- package/esm2022/lib/formly/formly.context.mjs +12 -8
- package/esm2022/lib/formly/formly.directive.mjs +29 -44
- package/esm2022/lib/formly/formly.form.component.mjs +24 -18
- package/esm2022/lib/formly/formly.module.mjs +10 -14
- package/esm2022/lib/formly/index.mjs +2 -1
- package/esm2022/lib/formly/template/login.mjs +1 -1
- package/esm2022/lib/formly/template/timezone.mjs +1 -1
- package/esm2022/lib/index.mjs +2 -1
- package/esm2022/lib/layout/form.layout.module.mjs +4 -4
- package/esm2022/lib/layout/form.spacer.component.mjs +3 -3
- package/esm2022/lib/validator/available.mjs +1 -1
- package/esm2022/lib/validator/boolean.mjs +1 -1
- package/esm2022/lib/validator/field.mjs +2 -2
- package/esm2022/lib/validator/number.mjs +1 -1
- package/esm2022/lib/validator/phone.mjs +1 -1
- package/esm2022/mapbox/lib/field/latlng/latlng.field.component.mjs +65 -47
- package/esm2022/mapbox/lib/field/latlng/latlng.field.marker.component.mjs +13 -10
- package/esm2022/mapbox/lib/field/latlng/latlng.module.mjs +10 -43
- package/esm2022/mapbox/lib/field/zoom/zoom.field.component.mjs +32 -26
- package/esm2022/mapbox/lib/field/zoom/zoom.module.mjs +8 -36
- package/esm2022/mapbox/lib/mapbox.module.mjs +4 -4
- package/fesm2022/dereekb-dbx-form-calendar.mjs +340 -457
- package/fesm2022/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form-mapbox.mjs +114 -141
- package/fesm2022/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-form.mjs +935 -1106
- package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
- package/lib/extension/calendar/_calendar.scss +3 -3
- package/lib/form/_form.scss +3 -3
- package/lib/form/action/form.action.directive.d.ts +35 -16
- package/lib/form/action/form.action.module.d.ts +4 -3
- package/lib/form/action/transition/form.action.transition.module.d.ts +4 -2
- package/lib/form/action/transition/form.action.transition.safety.directive.d.ts +4 -2
- package/lib/form/io/form.changes.directive.d.ts +3 -4
- package/lib/form/io/form.input.directive.d.ts +7 -10
- package/lib/form/io/form.io.module.d.ts +8 -2
- package/lib/form/io/form.loading.directive.d.ts +10 -11
- package/lib/form.providers.d.ts +8 -0
- package/lib/formly/_formly.scss +3 -3
- package/lib/formly/field/checklist/_checklist.scss +3 -3
- package/lib/formly/field/checklist/checklist.field.d.ts +7 -7
- package/lib/formly/field/checklist/checklist.item.d.ts +7 -9
- package/lib/formly/field/checklist/checklist.item.field.component.d.ts +19 -18
- package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +5 -5
- package/lib/formly/field/checklist/checklist.item.field.d.ts +1 -1
- package/lib/formly/field/checklist/checklist.item.field.module.d.ts +3 -11
- package/lib/formly/field/component/_component.scss +3 -3
- package/lib/formly/field/component/component.field.component.d.ts +1 -1
- package/lib/formly/field/component/component.field.module.d.ts +2 -4
- package/lib/formly/field/field.d.ts +8 -5
- package/lib/formly/field/selection/list/_list.scss +3 -3
- package/lib/formly/field/selection/list/list.field.component.d.ts +7 -5
- package/lib/formly/field/selection/list/list.field.module.d.ts +2 -12
- package/lib/formly/field/selection/pickable/_pickable.scss +3 -3
- package/lib/formly/field/selection/pickable/pickable.chip.field.component.d.ts +1 -1
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +25 -23
- package/lib/formly/field/selection/pickable/pickable.field.module.d.ts +2 -13
- package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +15 -14
- package/lib/formly/field/selection/searchable/_searchable.scss +3 -3
- package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +4 -4
- package/lib/formly/field/selection/searchable/searchable.d.ts +3 -3
- package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +8 -12
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +30 -25
- package/lib/formly/field/selection/searchable/searchable.field.module.d.ts +2 -13
- package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +6 -8
- package/lib/formly/field/selection/selection.d.ts +5 -5
- package/lib/formly/field/selection/sourceselect/_sourceselect.scss +3 -3
- package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +1 -1
- package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +5 -3
- package/lib/formly/field/selection/sourceselect/sourceselect.field.module.d.ts +2 -17
- package/lib/formly/field/texteditor/_texteditor.scss +9 -9
- package/lib/formly/field/texteditor/texteditor.field.component.d.ts +5 -4
- package/lib/formly/field/texteditor/texteditor.field.module.d.ts +2 -8
- package/lib/formly/field/value/array/_array.scss +5 -5
- package/lib/formly/field/value/array/array.field.component.d.ts +16 -18
- package/lib/formly/field/value/array/array.field.d.ts +8 -5
- package/lib/formly/field/value/array/array.field.module.d.ts +2 -10
- package/lib/formly/field/value/boolean/_boolean.scss +3 -3
- package/lib/formly/field/value/date/_date.scss +5 -5
- package/lib/formly/field/value/date/date.field.module.d.ts +8 -9
- package/lib/formly/field/value/date/datetime.field.service.d.ts +1 -1
- package/lib/formly/field/value/date/fixeddaterange.field.component.d.ts +13 -13
- package/lib/formly/field/value/number/_number.scss +2 -2
- package/lib/formly/field/value/phone/_phone.scss +6 -6
- package/lib/formly/field/value/phone/phone.field.component.d.ts +6 -5
- package/lib/formly/field/value/text/_text.scss +3 -3
- package/lib/formly/field/wrapper/_wrapper.scss +3 -3
- package/lib/formly/field/wrapper/autotouch.wrapper.component.d.ts +1 -1
- package/lib/formly/field/wrapper/expand.wrapper.component.d.ts +1 -1
- package/lib/formly/field/wrapper/expand.wrapper.delegate.d.ts +2 -0
- package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +4 -4
- package/lib/formly/field/wrapper/form.wrapper.module.d.ts +2 -8
- package/lib/formly/field/wrapper/index.d.ts +1 -0
- package/lib/formly/field/wrapper/info.wrapper.component.d.ts +2 -2
- package/lib/formly/field/wrapper/section.wrapper.component.d.ts +1 -1
- package/lib/formly/field/wrapper/style.wrapper.component.d.ts +5 -3
- package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +1 -1
- package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +2 -1
- package/lib/formly/field/wrapper/working.wrapper.component.d.ts +2 -2
- package/lib/formly/form/_form.scss +3 -3
- package/lib/formly/formly.component.template.d.ts +19 -0
- package/lib/formly/formly.context.d.ts +11 -7
- package/lib/formly/formly.context.directive.d.ts +2 -2
- package/lib/formly/formly.directive.d.ts +10 -10
- package/lib/formly/formly.form.component.d.ts +18 -13
- package/lib/formly/formly.module.d.ts +1 -1
- package/lib/formly/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/layout/_layout.scss +3 -3
- package/lib/style/_all-typography.scss +1 -1
- package/lib/style/_theming.scss +1 -1
- package/mapbox/lib/field/latlng/latlng.field.component.d.ts +25 -23
- package/mapbox/lib/field/latlng/latlng.field.marker.component.d.ts +2 -1
- package/mapbox/lib/field/latlng/latlng.module.d.ts +2 -11
- package/mapbox/lib/field/zoom/zoom.field.component.d.ts +13 -13
- package/mapbox/lib/field/zoom/zoom.module.d.ts +3 -10
- package/package.json +10 -11
- package/mapbox/esm2022/dereekb-dbx-form-mapbox.mjs +0 -5
- package/mapbox/esm2022/index.mjs +0 -3
- package/mapbox/esm2022/lib/field/index.mjs +0 -3
- package/mapbox/esm2022/lib/field/latlng/index.mjs +0 -5
- package/mapbox/esm2022/lib/field/latlng/latlng.field.component.mjs +0 -244
- package/mapbox/esm2022/lib/field/latlng/latlng.field.marker.component.mjs +0 -31
- package/mapbox/esm2022/lib/field/latlng/latlng.field.mjs +0 -35
- package/mapbox/esm2022/lib/field/latlng/latlng.module.mjs +0 -59
- package/mapbox/esm2022/lib/field/zoom/index.mjs +0 -4
- package/mapbox/esm2022/lib/field/zoom/zoom.field.component.mjs +0 -140
- package/mapbox/esm2022/lib/field/zoom/zoom.field.mjs +0 -23
- package/mapbox/esm2022/lib/field/zoom/zoom.module.mjs +0 -57
- package/mapbox/esm2022/lib/mapbox.module.mjs +0 -16
- package/mapbox/fesm2022/dereekb-dbx-form-mapbox.mjs +0 -566
- package/mapbox/fesm2022/dereekb-dbx-form-mapbox.mjs.map +0 -1
- package/mapbox/package.json +0 -21
|
@@ -52,7 +52,7 @@ export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey =
|
|
|
52
52
|
private readonly _formControlObs;
|
|
53
53
|
private readonly _fromOpenSource;
|
|
54
54
|
private readonly _loadSources;
|
|
55
|
-
buttonElement: ElementRef
|
|
55
|
+
readonly buttonElement: import("@angular/core").Signal<ElementRef<HTMLElement> | undefined>;
|
|
56
56
|
readonly formControl$: Observable<AbstractControl<T[], T[]>>;
|
|
57
57
|
readonly currentFormControlValue$: Observable<T[]>;
|
|
58
58
|
readonly values$: Observable<T[]>;
|
|
@@ -67,6 +67,8 @@ export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey =
|
|
|
67
67
|
readonly options$: Observable<SourceSelectOptions<T, M>>;
|
|
68
68
|
readonly nonGroupedValues$: Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
69
69
|
readonly groupedOptions$: Observable<SourceSelectDisplayValueGroup<T, M>[]>;
|
|
70
|
+
readonly nonGroupedValuesSignal: import("@angular/core").Signal<SourceSelectDisplayValue<T, M>[] | undefined>;
|
|
71
|
+
readonly groupedOptionsSignal: import("@angular/core").Signal<SourceSelectDisplayValueGroup<T, M>[] | undefined>;
|
|
70
72
|
get sourceSelectField(): SourceSelectFieldProps<T, M>;
|
|
71
73
|
get openSource(): SourceSelectOpenFunction<M> | undefined;
|
|
72
74
|
get showOpenSourceButton(): boolean;
|
|
@@ -81,7 +83,7 @@ export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey =
|
|
|
81
83
|
getSourceSelectValueForValues(values: T[]): Observable<SourceSelectValue<T, M>[]>;
|
|
82
84
|
loadDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<LoadingState<SourceSelectDisplayValue<T, M>[]>>;
|
|
83
85
|
getDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
84
|
-
readonly context: import("@dereekb/rxjs").
|
|
86
|
+
readonly context: import("@dereekb/rxjs").MutableLoadingStateContext<unknown, LoadingState<SourceSelectDisplayValueGroup<T, M>[]>, import("@dereekb/rxjs").LoadingContextEvent & LoadingState<SourceSelectDisplayValueGroup<T, M>[]>>;
|
|
85
87
|
ngOnInit(): void;
|
|
86
88
|
ngOnDestroy(): void;
|
|
87
89
|
readonly handleSelectOptions: WorkUsingContext<unknown>;
|
|
@@ -89,5 +91,5 @@ export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey =
|
|
|
89
91
|
private addToCurrentValue;
|
|
90
92
|
private setCurrentValue;
|
|
91
93
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceSelectFieldComponent<any, any>, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSourceSelectFieldComponent<any, any>, "
|
|
94
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSourceSelectFieldComponent<any, any>, "dbx-form-sourceselectfield", never, {}, {}, never, never, true, never>;
|
|
93
95
|
}
|
|
@@ -1,23 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./sourceselect.field.component";
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@angular/material/input";
|
|
6
|
-
import * as i5 from "@angular/material/divider";
|
|
7
|
-
import * as i6 from "@angular/material/form-field";
|
|
8
|
-
import * as i7 from "@angular/material/select";
|
|
9
|
-
import * as i8 from "@angular/material/button";
|
|
10
|
-
import * as i9 from "@angular/material/datepicker";
|
|
11
|
-
import * as i10 from "@angular/material/core";
|
|
12
|
-
import * as i11 from "@angular/material/menu";
|
|
13
|
-
import * as i12 from "@dereekb/dbx-core";
|
|
14
|
-
import * as i13 from "@dereekb/dbx-web";
|
|
15
|
-
import * as i14 from "@angular/material/chips";
|
|
16
|
-
import * as i15 from "@angular/material/icon";
|
|
17
|
-
import * as i16 from "@ngbracket/ngx-layout";
|
|
18
|
-
import * as i17 from "@ngx-formly/core";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
19
4
|
export declare class DbxFormFormlySourceSelectModule {
|
|
20
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySourceSelectModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySourceSelectModule, [typeof i1.DbxFormSourceSelectFieldComponent
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySourceSelectModule, never, [typeof i1.DbxFormSourceSelectFieldComponent, typeof i2.FormlyModule], [typeof i1.DbxFormSourceSelectFieldComponent]>;
|
|
22
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySourceSelectModule>;
|
|
23
8
|
}
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@mixin color($theme-config) {
|
|
25
|
-
$color-config: theming.get-color-config($theme-config);
|
|
25
|
+
$color-config: theming.m2-get-color-config($theme-config);
|
|
26
26
|
$background: map.get($color-config, 'background');
|
|
27
27
|
$foreground: map.get($color-config, 'foreground');
|
|
28
|
-
$background-color: theming.get-color-from-palette($background, 'background');
|
|
29
|
-
$hover-color: theming.get-color-from-palette($background, 'hover');
|
|
30
|
-
$focused-color: theming.get-color-from-palette($background, 'focused-button');
|
|
31
|
-
$border-color: theming.get-color-from-palette($foreground, 'divider');
|
|
32
|
-
$text-color: theming.get-color-from-palette($foreground, 'text');
|
|
28
|
+
$background-color: theming.m2-get-color-from-palette($background, 'background');
|
|
29
|
+
$hover-color: theming.m2-get-color-from-palette($background, 'hover');
|
|
30
|
+
$focused-color: theming.m2-get-color-from-palette($background, 'focused-button');
|
|
31
|
+
$border-color: theming.m2-get-color-from-palette($foreground, 'divider');
|
|
32
|
+
$text-color: theming.m2-get-color-from-palette($foreground, 'text');
|
|
33
33
|
|
|
34
34
|
.dbx-texteditor-field {
|
|
35
35
|
.NgxEditor {
|
|
@@ -77,9 +77,9 @@
|
|
|
77
77
|
|
|
78
78
|
@mixin theme($theme-config) {
|
|
79
79
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-texteditor') {
|
|
80
|
-
$color: theming.get-color-config($theme-config);
|
|
81
|
-
$density: theming.get-density-config($theme-config);
|
|
82
|
-
$typography: theming.get-typography-config($theme-config);
|
|
80
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
81
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
82
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
83
83
|
|
|
84
84
|
@if $color !=null {
|
|
85
85
|
@include color($theme-config);
|
|
@@ -8,9 +8,10 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export type TextEditorComponentFieldProps = FormlyFieldProps;
|
|
9
9
|
export declare class DbxTextEditorFieldComponent<T extends TextEditorComponentFieldProps = TextEditorComponentFieldProps> extends FieldType<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
10
10
|
private readonly _compactContextStore;
|
|
11
|
-
private _editor
|
|
12
|
-
private _sub;
|
|
13
|
-
readonly compactClass$: import("rxjs").Observable<
|
|
11
|
+
private _editor;
|
|
12
|
+
private readonly _sub;
|
|
13
|
+
readonly compactClass$: import("rxjs").Observable<string>;
|
|
14
|
+
readonly compactClassSignal: import("@angular/core").Signal<string>;
|
|
14
15
|
get formGroupName(): string;
|
|
15
16
|
get formGroup(): FormGroup;
|
|
16
17
|
get editor(): Editor;
|
|
@@ -19,5 +20,5 @@ export declare class DbxTextEditorFieldComponent<T extends TextEditorComponentFi
|
|
|
19
20
|
ngOnInit(): void;
|
|
20
21
|
ngOnDestroy(): void;
|
|
21
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxTextEditorFieldComponent<any>, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTextEditorFieldComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxTextEditorFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
23
24
|
}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./texteditor.field.component";
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "@dereekb/dbx-web";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "ngx-editor";
|
|
7
|
-
import * as i6 from "@angular/material/form-field";
|
|
8
|
-
import * as i7 from "@angular/material/input";
|
|
9
|
-
import * as i8 from "@ngx-formly/core";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
10
4
|
export declare class DbxFormFormlyTextEditorFieldModule {
|
|
11
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyTextEditorFieldModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextEditorFieldModule, [typeof i1.DbxTextEditorFieldComponent
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyTextEditorFieldModule, never, [typeof i1.DbxTextEditorFieldComponent, typeof i2.FormlyModule], [typeof i1.DbxTextEditorFieldComponent]>;
|
|
13
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyTextEditorFieldModule>;
|
|
14
8
|
}
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
@mixin color($theme-config) {
|
|
48
|
-
$color-config: theming.get-color-config($theme-config);
|
|
48
|
+
$color-config: theming.m2-get-color-config($theme-config);
|
|
49
49
|
$background: map.get($color-config, 'background');
|
|
50
50
|
|
|
51
|
-
$form-repeat-array-field-bg: theming.get-color-from-palette($background, 'card');
|
|
51
|
+
$form-repeat-array-field-bg: theming.m2-get-color-from-palette($background, 'card');
|
|
52
52
|
|
|
53
53
|
.dbx-form-repeat-array-field {
|
|
54
54
|
background: $form-repeat-array-field-bg;
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
|
|
70
70
|
@mixin theme($theme-config) {
|
|
71
71
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-array') {
|
|
72
|
-
$color: theming.get-color-config($theme-config);
|
|
73
|
-
$density: theming.get-density-config($theme-config);
|
|
74
|
-
$typography: theming.get-typography-config($theme-config);
|
|
72
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
73
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
74
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
75
75
|
|
|
76
76
|
@if $color !=null {
|
|
77
77
|
@include color($theme-config);
|
|
@@ -1,62 +1,61 @@
|
|
|
1
1
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { TrackByFunction } from '@angular/core';
|
|
3
2
|
import { DecisionFunction, FactoryWithRequiredInput, IndexRef, type Maybe } from '@dereekb/util';
|
|
4
3
|
import { FieldArrayTypeConfig, FieldArrayType, FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export interface DbxFormRepeatArrayPair<T = unknown> extends IndexRef {
|
|
7
|
-
value?: T | undefined;
|
|
6
|
+
readonly value?: T | undefined;
|
|
8
7
|
}
|
|
9
8
|
export interface DbxFormRepeatArrayFieldConfigPair<T = unknown> extends Partial<DbxFormRepeatArrayPair<T>> {
|
|
10
|
-
fieldConfig: FormlyFieldConfig;
|
|
9
|
+
readonly fieldConfig: FormlyFieldConfig;
|
|
11
10
|
}
|
|
12
11
|
export type DbxFormRepeatArrayAddTemplateFunction<T> = FactoryWithRequiredInput<Partial<Maybe<T>>, number>;
|
|
13
12
|
export interface DbxFormRepeatArrayConfig<T = unknown> extends Pick<FormlyFieldProps, 'maxLength' | 'label' | 'description'> {
|
|
14
|
-
labelForField?: string | FactoryWithRequiredInput<string, DbxFormRepeatArrayFieldConfigPair<T>>;
|
|
13
|
+
readonly labelForField?: string | FactoryWithRequiredInput<string, DbxFormRepeatArrayFieldConfigPair<T>>;
|
|
15
14
|
/**
|
|
16
15
|
* Text for the add button.
|
|
17
16
|
*/
|
|
18
|
-
addText?: string;
|
|
17
|
+
readonly addText?: string;
|
|
19
18
|
/**
|
|
20
19
|
* Optional template function to create a new template when using the add button.
|
|
21
20
|
*/
|
|
22
|
-
addTemplate?: DbxFormRepeatArrayAddTemplateFunction<T>;
|
|
21
|
+
readonly addTemplate?: DbxFormRepeatArrayAddTemplateFunction<T>;
|
|
23
22
|
/**
|
|
24
23
|
* Text for the duplicate button.
|
|
25
24
|
*/
|
|
26
|
-
duplicateText?: string;
|
|
25
|
+
readonly duplicateText?: string;
|
|
27
26
|
/**
|
|
28
27
|
* Text for the remove button.
|
|
29
28
|
*/
|
|
30
|
-
removeText?: string;
|
|
29
|
+
readonly removeText?: string;
|
|
31
30
|
/**
|
|
32
31
|
* Whethe or not to disable rearranging items.
|
|
33
32
|
*
|
|
34
33
|
* False by default.
|
|
35
34
|
*/
|
|
36
|
-
disableRearrange?: boolean;
|
|
35
|
+
readonly disableRearrange?: boolean;
|
|
37
36
|
/**
|
|
38
37
|
* Wether or not to show the add button.
|
|
39
38
|
*
|
|
40
39
|
* True by default.
|
|
41
40
|
*/
|
|
42
|
-
allowAdd?: boolean;
|
|
41
|
+
readonly allowAdd?: boolean;
|
|
43
42
|
/**
|
|
44
43
|
* Whether or not to allow duplicateing items. Can optionally pass a decision function that decides whether or not a specific item can be removed.
|
|
45
44
|
*/
|
|
46
|
-
allowDuplicate?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
45
|
+
readonly allowDuplicate?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
47
46
|
/**
|
|
48
47
|
* Whether or not to allow removing items. Can optionally pass a decision function that decides whether or not a specific item can be removed.
|
|
49
48
|
*/
|
|
50
|
-
allowRemove?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
49
|
+
readonly allowRemove?: boolean | DecisionFunction<DbxFormRepeatArrayPair<T>>;
|
|
51
50
|
/**
|
|
52
51
|
* Adds the duplicate to the end of the values
|
|
53
52
|
*/
|
|
54
|
-
addDuplicateToEnd?: boolean;
|
|
53
|
+
readonly addDuplicateToEnd?: boolean;
|
|
55
54
|
}
|
|
56
55
|
export declare class DbxFormRepeatArrayTypeComponent<T = unknown> extends FieldArrayType<FieldArrayTypeConfig<DbxFormRepeatArrayConfig>> {
|
|
57
|
-
private _labelForField;
|
|
58
|
-
private _allowRemove;
|
|
59
|
-
private _allowDuplicate;
|
|
56
|
+
private readonly _labelForField;
|
|
57
|
+
private readonly _allowRemove;
|
|
58
|
+
private readonly _allowDuplicate;
|
|
60
59
|
get repeatArrayField(): DbxFormRepeatArrayConfig;
|
|
61
60
|
get label(): string;
|
|
62
61
|
get description(): Maybe<string>;
|
|
@@ -73,7 +72,6 @@ export declare class DbxFormRepeatArrayTypeComponent<T = unknown> extends FieldA
|
|
|
73
72
|
allowDuplicate(i: number): boolean;
|
|
74
73
|
get addItemDisabled(): boolean;
|
|
75
74
|
get canAddItem(): boolean;
|
|
76
|
-
readonly trackByFunction: TrackByFunction<FormlyFieldConfig>;
|
|
77
75
|
/**
|
|
78
76
|
* Moves the target index up one value.
|
|
79
77
|
*
|
|
@@ -87,5 +85,5 @@ export declare class DbxFormRepeatArrayTypeComponent<T = unknown> extends FieldA
|
|
|
87
85
|
drop(event: CdkDragDrop<unknown>): void;
|
|
88
86
|
labelForItem(fieldConfig: FormlyFieldConfig, i: number): string;
|
|
89
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormRepeatArrayTypeComponent<any>, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormRepeatArrayTypeComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
88
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormRepeatArrayTypeComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
91
89
|
}
|
|
@@ -26,11 +26,14 @@ export declare function repeatArrayField<T = unknown>(config: RepeatArrayFieldCo
|
|
|
26
26
|
allowDuplicate: boolean | import("@dereekb/util").DecisionFunction<import("./array.field.component").DbxFormRepeatArrayPair<T>> | undefined;
|
|
27
27
|
addDuplicateToEnd: boolean | undefined;
|
|
28
28
|
};
|
|
29
|
-
expressions: {
|
|
30
|
-
[property: string]: string | import("rxjs").Observable<any> | ((field: FormlyFieldConfig
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
expressions: ({
|
|
30
|
+
[property: string]: string | import("rxjs").Observable<any> | ((field: FormlyFieldConfig) => any);
|
|
31
|
+
} & {
|
|
32
|
+
className?: string | import("rxjs").Observable<string> | ((field: FormlyFieldConfig) => string);
|
|
33
|
+
hide?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
34
|
+
'props.disabled'?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
35
|
+
'props.required'?: string | import("rxjs").Observable<boolean> | ((field: FormlyFieldConfig) => boolean);
|
|
36
|
+
}) | undefined;
|
|
34
37
|
parsers: ((value: any) => any)[] | undefined;
|
|
35
38
|
key: string;
|
|
36
39
|
type: string;
|
|
@@ -1,16 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./array.field.component";
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "@angular/material/form-field";
|
|
5
|
-
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@angular/material/divider";
|
|
7
|
-
import * as i6 from "@angular/material/button";
|
|
8
|
-
import * as i7 from "@angular/material/icon";
|
|
9
|
-
import * as i8 from "@angular/cdk/drag-drop";
|
|
10
|
-
import * as i9 from "@dereekb/dbx-web";
|
|
11
|
-
import * as i10 from "@ngx-formly/core";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
12
4
|
export declare class DbxFormFormlyArrayFieldModule {
|
|
13
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyArrayFieldModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyArrayFieldModule, [typeof i1.DbxFormRepeatArrayTypeComponent
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyArrayFieldModule, never, [typeof i1.DbxFormRepeatArrayTypeComponent, typeof i2.FormlyModule], [typeof i1.DbxFormRepeatArrayTypeComponent]>;
|
|
15
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyArrayFieldModule>;
|
|
16
8
|
}
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
|
|
57
57
|
@mixin theme($theme-config) {
|
|
58
58
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-boolean') {
|
|
59
|
-
$color: theming.get-color-config($theme-config);
|
|
60
|
-
$density: theming.get-density-config($theme-config);
|
|
61
|
-
$typography: theming.get-typography-config($theme-config);
|
|
59
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
60
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
61
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
62
62
|
|
|
63
63
|
@if $color !=null {
|
|
64
64
|
@include color($theme-config);
|
|
@@ -118,9 +118,9 @@ $dbx-datetime-row-width: 40px + ($dbx-datetime-button-spacing * 2); // times 2 f
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
@mixin color($theme-config) {
|
|
121
|
-
$color-config: theming.get-color-config($theme-config);
|
|
121
|
+
$color-config: theming.m2-get-color-config($theme-config);
|
|
122
122
|
$background: map.get($color-config, 'background');
|
|
123
|
-
$background-color: theming.get-color-from-palette($background, 'hover');
|
|
123
|
+
$background-color: theming.m2-get-color-from-palette($background, 'hover');
|
|
124
124
|
|
|
125
125
|
// affect both the direct button or a child button
|
|
126
126
|
.mat-datepicker-button-highlight .mat-icon-button,
|
|
@@ -134,9 +134,9 @@ $dbx-datetime-row-width: 40px + ($dbx-datetime-button-spacing * 2); // times 2 f
|
|
|
134
134
|
|
|
135
135
|
@mixin theme($theme-config) {
|
|
136
136
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-date') {
|
|
137
|
-
$color: theming.get-color-config($theme-config);
|
|
138
|
-
$density: theming.get-density-config($theme-config);
|
|
139
|
-
$typography: theming.get-typography-config($theme-config);
|
|
137
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
138
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
139
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
140
140
|
|
|
141
141
|
@if $color !=null {
|
|
142
142
|
@include color($theme-config);
|
|
@@ -9,16 +9,15 @@ import * as i7 from "@angular/material/form-field";
|
|
|
9
9
|
import * as i8 from "@dereekb/dbx-web";
|
|
10
10
|
import * as i9 from "@angular/material/button";
|
|
11
11
|
import * as i10 from "@angular/material/datepicker";
|
|
12
|
-
import * as i11 from "@angular/material/
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@
|
|
15
|
-
import * as i14 from "@angular/material/
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "@
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "../../wrapper/form.wrapper.module";
|
|
12
|
+
import * as i11 from "@angular/material/menu";
|
|
13
|
+
import * as i12 from "@dereekb/dbx-core";
|
|
14
|
+
import * as i13 from "@angular/material/chips";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@ngbracket/ngx-layout";
|
|
17
|
+
import * as i16 from "@ngx-formly/core";
|
|
18
|
+
import * as i17 from "../../wrapper/form.wrapper.module";
|
|
20
19
|
export declare class DbxFormFormlyDateFieldModule {
|
|
21
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyDateFieldModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDateFieldModule, [typeof i1.DbxDateTimeFieldComponent, typeof i2.DbxFixedDateRangeFieldComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatInputModule, typeof i6.MatDividerModule, typeof i7.MatFormFieldModule, typeof i8.DbxButtonModule, typeof i9.MatButtonModule, typeof i10.MatDatepickerModule, typeof i11.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDateFieldModule, [typeof i1.DbxDateTimeFieldComponent, typeof i2.DbxFixedDateRangeFieldComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.MatInputModule, typeof i6.MatDividerModule, typeof i7.MatFormFieldModule, typeof i8.DbxButtonModule, typeof i9.MatButtonModule, typeof i10.MatDatepickerModule, typeof i11.MatMenuModule, typeof i4.ReactiveFormsModule, typeof i12.DbxDatePipeModule, typeof i12.DbxValuePipeModule, typeof i13.MatChipsModule, typeof i14.MatIconModule, typeof i15.FlexLayoutModule, typeof i16.FormlyModule], [typeof i17.DbxFormFormlyWrapperModule]>;
|
|
23
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyDateFieldModule>;
|
|
24
23
|
}
|
|
@@ -3,7 +3,7 @@ import { InjectionToken } from '@angular/core';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const DBX_DATE_TIME_FIELD_MENU_PRESETS_TOKEN: InjectionToken<unknown>;
|
|
5
5
|
export declare class DbxDateTimeFieldMenuPresetsService {
|
|
6
|
-
private _configurations;
|
|
6
|
+
private readonly _configurations;
|
|
7
7
|
readonly configurations$: import("rxjs").Observable<DateTimePresetConfiguration[]>;
|
|
8
8
|
get configurations(): DateTimePresetConfiguration[];
|
|
9
9
|
set configurations(configurations: DateTimePresetConfiguration[]);
|
|
@@ -18,62 +18,62 @@ export interface DbxFixedDateRangeFieldProps extends FormlyFieldProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* Date range input to build the date range.
|
|
20
20
|
*/
|
|
21
|
-
dateRangeInput: ObservableOrValueGetter<DbxFixedDateRangeDateRangeInput>;
|
|
21
|
+
readonly dateRangeInput: ObservableOrValueGetter<DbxFixedDateRangeDateRangeInput>;
|
|
22
22
|
/**
|
|
23
23
|
* Selection mode to use when picking dates on the calendar.
|
|
24
24
|
*/
|
|
25
|
-
selectionMode?: Maybe<ObservableOrValueGetter<DbxFixedDateRangeSelectionMode>>;
|
|
25
|
+
readonly selectionMode?: Maybe<ObservableOrValueGetter<DbxFixedDateRangeSelectionMode>>;
|
|
26
26
|
/**
|
|
27
27
|
* Value mode for the dates in the output DateRange.
|
|
28
28
|
*
|
|
29
29
|
* Defaults to DATE
|
|
30
30
|
*/
|
|
31
|
-
valueMode?: DbxDateTimeValueMode;
|
|
31
|
+
readonly valueMode?: DbxDateTimeValueMode;
|
|
32
32
|
/**
|
|
33
33
|
* Whether or not to pass the date value as a UTC date, or a date in the current timezone.
|
|
34
34
|
*/
|
|
35
|
-
fullDayInUTC?: boolean;
|
|
35
|
+
readonly fullDayInUTC?: boolean;
|
|
36
36
|
/**
|
|
37
37
|
* Custom picker configuration
|
|
38
38
|
*/
|
|
39
|
-
pickerConfig?: ObservableOrValueGetter<DbxFixedDateRangePickerConfiguration>;
|
|
39
|
+
readonly pickerConfig?: ObservableOrValueGetter<DbxFixedDateRangePickerConfiguration>;
|
|
40
40
|
/**
|
|
41
41
|
* (Optional) The input timezone to default to.
|
|
42
42
|
*
|
|
43
43
|
* Ignored if fullDayInUTC is true.
|
|
44
44
|
*/
|
|
45
|
-
timezone?: Maybe<ObservableOrValueGetter<Maybe<TimezoneString>>>;
|
|
45
|
+
readonly timezone?: Maybe<ObservableOrValueGetter<Maybe<TimezoneString>>>;
|
|
46
46
|
/**
|
|
47
47
|
* Whether or not to display the timezone. True by default.
|
|
48
48
|
*/
|
|
49
|
-
showTimezone?: boolean;
|
|
49
|
+
readonly showTimezone?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* Custom presets to show in the dropdown.
|
|
52
52
|
*/
|
|
53
|
-
presets?: ObservableOrValueGetter<DateTimePresetConfiguration[]>;
|
|
53
|
+
readonly presets?: ObservableOrValueGetter<DateTimePresetConfiguration[]>;
|
|
54
54
|
/**
|
|
55
55
|
* Whether or not to show the range input. Defaults to true.
|
|
56
56
|
*/
|
|
57
|
-
showRangeInput?: boolean;
|
|
57
|
+
readonly showRangeInput?: boolean;
|
|
58
58
|
}
|
|
59
59
|
export type FixedDateRangeScanType = 'start' | 'end' | 'startRepeat';
|
|
60
60
|
export interface FixedDateRangeScan {
|
|
61
61
|
/**
|
|
62
62
|
* Picked the start or end of the range on the last pick.
|
|
63
63
|
*/
|
|
64
|
-
lastPickType?: Maybe<FixedDateRangeScanType>;
|
|
64
|
+
readonly lastPickType?: Maybe<FixedDateRangeScanType>;
|
|
65
65
|
/**
|
|
66
66
|
* The latest date passed, if applicable.
|
|
67
67
|
*/
|
|
68
|
-
lastDateRange?: Maybe<Partial<DateRange>>;
|
|
68
|
+
readonly lastDateRange?: Maybe<Partial<DateRange>>;
|
|
69
69
|
/**
|
|
70
70
|
* The generated boundary range.
|
|
71
71
|
*/
|
|
72
|
-
boundary?: DateRange;
|
|
72
|
+
readonly boundary?: DateRange;
|
|
73
73
|
/**
|
|
74
74
|
* New Date Range
|
|
75
75
|
*/
|
|
76
|
-
range?: DateRange;
|
|
76
|
+
readonly range?: DateRange;
|
|
77
77
|
}
|
|
78
78
|
type SelectedDateEventType = 'calendar' | 'input';
|
|
79
79
|
export declare class DbxFixedDateRangeFieldComponent extends FieldType<FieldTypeConfig<DbxFixedDateRangeFieldProps>> implements OnInit, OnDestroy {
|
|
@@ -21,8 +21,8 @@ $dbx-formly-number-slider-field-thumb-label-margin-fix-size: 22px;
|
|
|
21
21
|
|
|
22
22
|
@mixin theme($theme-config) {
|
|
23
23
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-number') {
|
|
24
|
-
$color: theming.get-color-config($theme-config);
|
|
25
|
-
$typography: theming.get-typography-config($theme-config);
|
|
24
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
25
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
26
26
|
|
|
27
27
|
@if $color !=null {
|
|
28
28
|
@include color($theme-config);
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
@mixin color($theme-config) {
|
|
30
|
-
$color-config: theming.get-color-config($theme-config);
|
|
30
|
+
$color-config: theming.m2-get-color-config($theme-config);
|
|
31
31
|
$background: map.get($color-config, 'background');
|
|
32
32
|
$foreground: map.get($color-config, 'foreground');
|
|
33
|
-
$text-color: theming.get-color-from-palette($foreground, 'text');
|
|
34
|
-
$border-color: theming.get-color-from-palette($foreground, 'divider');
|
|
33
|
+
$text-color: theming.m2-get-color-from-palette($foreground, 'text');
|
|
34
|
+
$border-color: theming.m2-get-color-from-palette($foreground, 'divider');
|
|
35
35
|
|
|
36
36
|
.dbx-form-phone-field {
|
|
37
37
|
.country-selector.mat-mdc-button,
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
|
|
53
53
|
@mixin theme($theme-config) {
|
|
54
54
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-phone') {
|
|
55
|
-
$color: theming.get-color-config($theme-config);
|
|
56
|
-
$density: theming.get-density-config($theme-config);
|
|
57
|
-
$typography: theming.get-typography-config($theme-config);
|
|
55
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
56
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
57
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
58
58
|
|
|
59
59
|
@if $color !=null {
|
|
60
60
|
@include color($theme-config);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
1
2
|
import { FieldType } from '@ngx-formly/material';
|
|
2
3
|
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
3
4
|
import { Maybe } from '@dereekb/util';
|
|
@@ -13,11 +14,11 @@ export interface InternationalPhoneFormlyFieldProps extends FormlyFieldProps {
|
|
|
13
14
|
allowExtension?: boolean;
|
|
14
15
|
}
|
|
15
16
|
export declare const DEFAULT_PREFERRED_COUNTRIES: string[];
|
|
16
|
-
export declare class DbxPhoneFieldComponent extends FieldType<FieldTypeConfig<InternationalPhoneFormlyFieldProps>> {
|
|
17
|
-
readonly inputSync: SubscriptionObject
|
|
18
|
-
readonly outputSync: SubscriptionObject
|
|
19
|
-
readonly extensionErrorSync: SubscriptionObject
|
|
20
|
-
readonly phoneErrorSync: SubscriptionObject
|
|
17
|
+
export declare class DbxPhoneFieldComponent extends FieldType<FieldTypeConfig<InternationalPhoneFormlyFieldProps>> implements OnInit, OnDestroy {
|
|
18
|
+
readonly inputSync: SubscriptionObject<import("rxjs").Unsubscribable>;
|
|
19
|
+
readonly outputSync: SubscriptionObject<import("rxjs").Unsubscribable>;
|
|
20
|
+
readonly extensionErrorSync: SubscriptionObject<import("rxjs").Unsubscribable>;
|
|
21
|
+
readonly phoneErrorSync: SubscriptionObject<import("rxjs").Unsubscribable>;
|
|
21
22
|
readonly phoneCtrl: FormControl<string | null>;
|
|
22
23
|
readonly extensionCtrl: FormControl<string | null>;
|
|
23
24
|
readonly inputFormGroup: FormGroup<{
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
|
|
15
15
|
@mixin theme($theme-config) {
|
|
16
16
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-value-text') {
|
|
17
|
-
$color: theming.get-color-config($theme-config);
|
|
18
|
-
$density: theming.get-density-config($theme-config);
|
|
19
|
-
$typography: theming.get-typography-config($theme-config);
|
|
17
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
18
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
19
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
20
20
|
|
|
21
21
|
@if $color !=null {
|
|
22
22
|
@include color($theme-config);
|
|
@@ -35,9 +35,9 @@ $form-flex-section-group-item-padding: $form-flex-section-group-padding * 2;
|
|
|
35
35
|
|
|
36
36
|
@mixin theme($theme-config) {
|
|
37
37
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-wrapper') {
|
|
38
|
-
$color: theming.get-color-config($theme-config);
|
|
39
|
-
$density: theming.get-density-config($theme-config);
|
|
40
|
-
$typography: theming.get-typography-config($theme-config);
|
|
38
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
39
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
40
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
41
41
|
|
|
42
42
|
@if $color !=null {
|
|
43
43
|
@include color($theme-config);
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class AutoTouchFieldWrapperComponent extends FieldWrapper<FieldTypeConfig> implements OnInit {
|
|
8
8
|
ngOnInit(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutoTouchFieldWrapperComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutoTouchFieldWrapperComponent, "ng-component", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutoTouchFieldWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -10,5 +10,5 @@ export interface DbxFormExpandWrapperConfig<T extends object = object> extends A
|
|
|
10
10
|
export declare class DbxFormExpandWrapperComponent<T extends object = object> extends AbstractFormExpandSectionWrapperDirective<T, DbxFormExpandWrapperConfig<T>> {
|
|
11
11
|
get buttonType(): DbxFormExpandWrapperButtonType;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExpandWrapperComponent<any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -18,6 +18,8 @@ export declare class AbstractFormExpandSectionWrapperDirective<T extends object
|
|
|
18
18
|
readonly formControl$: import("rxjs").Observable<AbstractControl<any, any>>;
|
|
19
19
|
readonly show$: import("rxjs").Observable<boolean>;
|
|
20
20
|
readonly hasValue$: import("rxjs").Observable<boolean>;
|
|
21
|
+
readonly showSignal: import("@angular/core").Signal<boolean>;
|
|
22
|
+
readonly hasValueSignal: import("@angular/core").Signal<boolean>;
|
|
21
23
|
get expandSection(): S;
|
|
22
24
|
get hasValueFn(): (value: T) => boolean;
|
|
23
25
|
get expandLabel(): Maybe<string>;
|
|
@@ -5,15 +5,15 @@ export interface DbxFlexWrapperConfig {
|
|
|
5
5
|
/**
|
|
6
6
|
* Breakpoint based on the screen width.
|
|
7
7
|
*/
|
|
8
|
-
breakpoint?: ScreenMediaWidthType;
|
|
8
|
+
readonly breakpoint?: ScreenMediaWidthType;
|
|
9
9
|
/**
|
|
10
10
|
* Whether or not to use relative sizing.
|
|
11
11
|
*/
|
|
12
|
-
relative?: boolean;
|
|
12
|
+
readonly relative?: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Whether or not to break to a new column when the breakpoint is reached.
|
|
15
15
|
*/
|
|
16
|
-
breakToColumn?: boolean;
|
|
16
|
+
readonly breakToColumn?: boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare class DbxFormFlexWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFlexWrapperConfig>> {
|
|
19
19
|
get flexWrapper(): DbxFlexWrapperConfig;
|
|
@@ -21,5 +21,5 @@ export declare class DbxFormFlexWrapperComponent extends FieldWrapper<FormlyFiel
|
|
|
21
21
|
get relative(): boolean;
|
|
22
22
|
get breakToColumn(): boolean;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFlexWrapperComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormFlexWrapperComponent, "ng-component", never, {}, {}, never, never,
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormFlexWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -8,15 +8,9 @@ import * as i6 from "./toggle.wrapper.component";
|
|
|
8
8
|
import * as i7 from "./flex.wrapper.component";
|
|
9
9
|
import * as i8 from "./style.wrapper.component";
|
|
10
10
|
import * as i9 from "./working.wrapper.component";
|
|
11
|
-
import * as i10 from "@
|
|
12
|
-
import * as i11 from "@dereekb/dbx-web";
|
|
13
|
-
import * as i12 from "@angular/material/button";
|
|
14
|
-
import * as i13 from "@angular/material/slide-toggle";
|
|
15
|
-
import * as i14 from "@angular/material/icon";
|
|
16
|
-
import * as i15 from "@ngbracket/ngx-layout";
|
|
17
|
-
import * as i16 from "@ngx-formly/core";
|
|
11
|
+
import * as i10 from "@ngx-formly/core";
|
|
18
12
|
export declare class DbxFormFormlyWrapperModule {
|
|
19
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyWrapperModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyWrapperModule, [typeof i1.AutoTouchFieldWrapperComponent, typeof i2.DbxFormSectionWrapperComponent, typeof i3.DbxFormSubsectionWrapperComponent, typeof i4.DbxFormInfoWrapperComponent, typeof i5.DbxFormExpandWrapperComponent, typeof i6.DbxFormToggleWrapperComponent, typeof i7.DbxFormFlexWrapperComponent, typeof i8.DbxFormStyleWrapperComponent, typeof i9.DbxFormWorkingWrapperComponent
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyWrapperModule, never, [typeof i1.AutoTouchFieldWrapperComponent, typeof i2.DbxFormSectionWrapperComponent, typeof i3.DbxFormSubsectionWrapperComponent, typeof i4.DbxFormInfoWrapperComponent, typeof i5.DbxFormExpandWrapperComponent, typeof i6.DbxFormToggleWrapperComponent, typeof i7.DbxFormFlexWrapperComponent, typeof i8.DbxFormStyleWrapperComponent, typeof i9.DbxFormWorkingWrapperComponent, typeof i10.FormlyModule], [typeof i1.AutoTouchFieldWrapperComponent, typeof i2.DbxFormSectionWrapperComponent, typeof i3.DbxFormSubsectionWrapperComponent, typeof i4.DbxFormInfoWrapperComponent, typeof i5.DbxFormExpandWrapperComponent, typeof i6.DbxFormToggleWrapperComponent, typeof i7.DbxFormFlexWrapperComponent, typeof i8.DbxFormStyleWrapperComponent, typeof i9.DbxFormWorkingWrapperComponent]>;
|
|
21
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyWrapperModule>;
|
|
22
16
|
}
|