@dereekb/dbx-form 11.1.8 → 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
|
@@ -4,6 +4,7 @@ export * from './expand.wrapper.component';
|
|
|
4
4
|
export * from './flex.wrapper.component';
|
|
5
5
|
export * from './form.wrapper.module';
|
|
6
6
|
export * from './info.wrapper.component';
|
|
7
|
+
export * from './style.wrapper.component';
|
|
7
8
|
export * from './section.wrapper.component';
|
|
8
9
|
export * from './subsection.wrapper.component';
|
|
9
10
|
export * from './toggle.wrapper.component';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { FieldWrapper, FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export interface DbxFormInfoConfig extends FormlyFieldProps {
|
|
4
|
-
onInfoClick: () => void;
|
|
4
|
+
readonly onInfoClick: () => void;
|
|
5
5
|
}
|
|
6
6
|
export declare class DbxFormInfoWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormInfoConfig>> {
|
|
7
7
|
get infoWrapper(): DbxFormInfoConfig;
|
|
8
8
|
onInfoClick(): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormInfoWrapperComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormInfoWrapperComponent, "ng-component", never, {}, {}, never, never,
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormInfoWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -6,5 +6,5 @@ export type DbxFormSectionConfig = DbxSectionHeaderConfig;
|
|
|
6
6
|
export declare class DbxFormSectionWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormSectionConfig>> {
|
|
7
7
|
get headerConfig(): Maybe<DbxSectionHeaderConfig>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSectionWrapperComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSectionWrapperComponent, "dbx-form-section-wrapper", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSectionWrapperComponent, "dbx-form-section-wrapper", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -12,14 +12,16 @@ export interface DbxFormStyleWrapperConfig {
|
|
|
12
12
|
classGetter?: Maybe<ObservableOrValue<string>>;
|
|
13
13
|
}
|
|
14
14
|
export declare class DbxFormStyleWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormStyleWrapperConfig>> implements OnInit, OnDestroy {
|
|
15
|
-
private _style;
|
|
16
|
-
private _class;
|
|
15
|
+
private readonly _style;
|
|
16
|
+
private readonly _class;
|
|
17
17
|
readonly style$: Observable<Maybe<{}>>;
|
|
18
18
|
readonly class$: Observable<Maybe<string>>;
|
|
19
|
+
readonly styleSignal: import("@angular/core").Signal<Maybe<{}>>;
|
|
20
|
+
readonly classSignal: import("@angular/core").Signal<Maybe<string>>;
|
|
19
21
|
get styleGetter(): Maybe<ObservableOrValue<DbxFormStyleObject>>;
|
|
20
22
|
get classGetter(): Maybe<ObservableOrValue<string>>;
|
|
21
23
|
ngOnInit(): void;
|
|
22
24
|
ngOnDestroy(): void;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormStyleWrapperComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormStyleWrapperComponent, "ng-component", never, {}, {}, never, never,
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormStyleWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
25
27
|
}
|
|
@@ -6,5 +6,5 @@ export type DbxFormSubsectionConfig = DbxSectionHeaderConfig;
|
|
|
6
6
|
export declare class DbxFormSubsectionWrapperComponent extends FieldWrapper<FieldTypeConfig<DbxFormSubsectionConfig>> {
|
|
7
7
|
get headerConfig(): Maybe<DbxSectionHeaderConfig>;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSubsectionWrapperComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSubsectionWrapperComponent, "dbx-form-subsection-wrapper", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSubsectionWrapperComponent, "dbx-form-subsection-wrapper", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -10,7 +10,8 @@ export interface DbxFormToggleWrapperConfig<T extends object = object> extends A
|
|
|
10
10
|
*/
|
|
11
11
|
export declare class DbxFormToggleWrapperComponent<T extends object = object> extends AbstractFormExpandSectionWrapperDirective<T, DbxFormToggleWrapperConfig> {
|
|
12
12
|
readonly slideLabel$: Observable<Maybe<string>>;
|
|
13
|
+
readonly slideLabelSignal: import("@angular/core").Signal<Maybe<string>>;
|
|
13
14
|
onToggleChange(): void;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormToggleWrapperComponent<any>, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
16
17
|
}
|
|
@@ -12,10 +12,10 @@ export type DbxFormWorkingWrapperConfig = object;
|
|
|
12
12
|
* By default shows loading during asynchronous validation of a field (FormControl status is "PENDING")
|
|
13
13
|
*/
|
|
14
14
|
export declare class DbxFormWorkingWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormWorkingWrapperConfig>> implements OnInit, OnDestroy {
|
|
15
|
-
readonly sub: SubscriptionObject
|
|
15
|
+
readonly sub: SubscriptionObject<import("rxjs").Unsubscribable>;
|
|
16
16
|
readonly workingContext: SimpleLoadingContext;
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
ngOnDestroy(): void;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormWorkingWrapperComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormWorkingWrapperComponent, "ng-component", never, {}, {}, never, never,
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormWorkingWrapperComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
21
21
|
}
|
|
@@ -76,9 +76,9 @@
|
|
|
76
76
|
|
|
77
77
|
@mixin theme($theme-config) {
|
|
78
78
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-formly-form') {
|
|
79
|
-
$color: theming.get-color-config($theme-config);
|
|
80
|
-
$density: theming.get-density-config($theme-config);
|
|
81
|
-
$typography: theming.get-typography-config($theme-config);
|
|
79
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
80
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
81
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
82
82
|
|
|
83
83
|
@if $color !=null {
|
|
84
84
|
@include color($theme-config);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { provideFormlyContext } from './formly.context';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./formly.form.component";
|
|
4
|
+
/**
|
|
5
|
+
* Default template for a view that extends AbstractFormlyFormDirective.
|
|
6
|
+
*/
|
|
7
|
+
export declare const DBX_FORMLY_FORM_COMPONENT_TEMPLATE = "<dbx-formly></dbx-formly>";
|
|
8
|
+
/**
|
|
9
|
+
* Default providers for a view that extends AbstractFormlyFormDirective.
|
|
10
|
+
*/
|
|
11
|
+
export declare const dbxFormlyFormComponentProviders: typeof provideFormlyContext;
|
|
12
|
+
/**
|
|
13
|
+
* Default imports module for a view that extends AbstractFormlyFormDirective.
|
|
14
|
+
*/
|
|
15
|
+
export declare class DbxFormlyFormComponentImportsModule {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyFormComponentImportsModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormlyFormComponentImportsModule, never, [typeof i1.DbxFormlyComponent], [typeof i1.DbxFormlyComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormlyFormComponentImportsModule>;
|
|
19
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Provider } from '@angular/core';
|
|
1
|
+
import { OnDestroy, Provider } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { DbxForm, DbxFormDisabledKey, DbxFormEvent, DbxMutableForm } from '../form/form';
|
|
4
4
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
5
|
import { LockSet } from '@dereekb/rxjs';
|
|
6
|
-
import { BooleanStringKeyArray, type Maybe } from '@dereekb/util';
|
|
6
|
+
import { BooleanStringKeyArray, Destroyable, type Maybe } from '@dereekb/util';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export interface DbxFormlyInitialize<T> {
|
|
8
9
|
fields: Observable<FormlyFieldConfig[]>;
|
|
9
10
|
initialDisabled: BooleanStringKeyArray;
|
|
@@ -25,18 +26,19 @@ export declare function provideFormlyContext(): Provider[];
|
|
|
25
26
|
/**
|
|
26
27
|
* DbxForm Instance that registers a delegate and manages the state of that form/delegate.
|
|
27
28
|
*/
|
|
28
|
-
export declare class DbxFormlyContext<T = unknown> implements DbxForm<T
|
|
29
|
+
export declare class DbxFormlyContext<T = unknown> implements DbxForm<T>, Destroyable, OnDestroy {
|
|
29
30
|
private static INITIAL_STATE;
|
|
30
31
|
readonly lockSet: LockSet;
|
|
31
|
-
private _fields;
|
|
32
|
-
private _initialValue;
|
|
33
|
-
private _disabled;
|
|
34
|
-
private _delegate;
|
|
32
|
+
private readonly _fields;
|
|
33
|
+
private readonly _initialValue;
|
|
34
|
+
private readonly _disabled;
|
|
35
|
+
private readonly _delegate;
|
|
35
36
|
readonly fields$: Observable<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
36
37
|
[additionalProperties: string]: any;
|
|
37
38
|
}>[]>;
|
|
38
39
|
readonly disabled$: Observable<string[]>;
|
|
39
40
|
readonly stream$: Observable<DbxFormEvent>;
|
|
41
|
+
ngOnDestroy(): void;
|
|
40
42
|
destroy(): void;
|
|
41
43
|
setDelegate(delegate?: DbxFormlyContextDelegate<T>): void;
|
|
42
44
|
clearDelegate(delegate: DbxFormlyContextDelegate<T>): void;
|
|
@@ -50,4 +52,6 @@ export declare class DbxFormlyContext<T = unknown> implements DbxForm<T> {
|
|
|
50
52
|
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
51
53
|
resetForm(): void;
|
|
52
54
|
forceFormUpdate(): void;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyContext<any>, never>;
|
|
56
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFormlyContext<any>>;
|
|
53
57
|
}
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
* Provides an DbxFormlyContext and has an input for fields.
|
|
8
8
|
*/
|
|
9
9
|
export declare class DbxFormlyFieldsContextDirective<T = unknown> extends AbstractAsyncFormlyFormDirective<T> implements OnDestroy {
|
|
10
|
-
private _fields;
|
|
10
|
+
private readonly _fields;
|
|
11
11
|
readonly fields$: import("rxjs").Observable<Maybe<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
12
12
|
[additionalProperties: string]: any;
|
|
13
13
|
}>[]>>;
|
|
@@ -15,5 +15,5 @@ export declare class DbxFormlyFieldsContextDirective<T = unknown> extends Abstra
|
|
|
15
15
|
set fields(fields: Maybe<FormlyFieldConfig[]>);
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyFieldsContextDirective<any>, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormlyFieldsContextDirective<any>, "[dbxFormlyFields]", never, { "fields": { "alias": "dbxFormlyFields"; "required": false; }; }, {}, never, never,
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFormlyFieldsContextDirective<any>, "[dbxFormlyFields]", never, { "fields": { "alias": "dbxFormlyFields"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MaybeObservableOrValue } from '@dereekb/rxjs';
|
|
1
2
|
import { Observable } from 'rxjs';
|
|
2
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
4
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
@@ -6,12 +7,14 @@ import { type Maybe } from '@dereekb/util';
|
|
|
6
7
|
import { DbxFormDisabledKey } from '../form/form';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
/**
|
|
9
|
-
* Abstract component for wrapping a
|
|
10
|
+
* Abstract component for wrapping a DbxFormlyContext.
|
|
11
|
+
*
|
|
12
|
+
* The implementing component should use provideFormlyContext() to provide the DbxFormlyContext specific to this directive. The context is injected using only self.
|
|
10
13
|
*/
|
|
11
14
|
export declare abstract class AbstractFormlyFormDirective<T> implements OnDestroy {
|
|
12
15
|
readonly context: DbxFormlyContext<T>;
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
17
|
+
private readonly _setDisabledOnContext;
|
|
15
18
|
ngOnDestroy(): void;
|
|
16
19
|
getValue(): Observable<T>;
|
|
17
20
|
setValue(value: Partial<T>): void;
|
|
@@ -19,7 +22,7 @@ export declare abstract class AbstractFormlyFormDirective<T> implements OnDestro
|
|
|
19
22
|
clearValue(): void;
|
|
20
23
|
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormlyFormDirective<any>, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormlyFormDirective<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormlyFormDirective<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
23
26
|
}
|
|
24
27
|
/**
|
|
25
28
|
* Abstract component for wrapping a form.
|
|
@@ -38,19 +41,16 @@ export declare abstract class AbstractAsyncFormlyFormDirective<T> extends Abstra
|
|
|
38
41
|
* Used to provide fields to the context.
|
|
39
42
|
*/
|
|
40
43
|
abstract readonly fields$: Observable<Maybe<FormlyFieldConfig[]>>;
|
|
41
|
-
private _fieldsSub;
|
|
44
|
+
private readonly _fieldsSub;
|
|
42
45
|
ngOnInit(): void;
|
|
43
46
|
ngOnDestroy(): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAsyncFormlyFormDirective<any>, never>;
|
|
45
48
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAsyncFormlyFormDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
46
49
|
}
|
|
47
50
|
export declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> implements OnInit, OnDestroy {
|
|
48
|
-
|
|
51
|
+
readonly config: import("@angular/core").InputSignal<MaybeObservableOrValue<C>>;
|
|
49
52
|
readonly currentConfig$: Observable<Maybe<C>>;
|
|
50
53
|
readonly config$: Observable<C>;
|
|
51
|
-
get config(): Maybe<C>;
|
|
52
|
-
set config(config: Maybe<C>);
|
|
53
|
-
ngOnDestroy(): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never>;
|
|
55
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never, never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractConfigAsyncFormlyFormDirective<any, any>, never, never, { "config": { "alias": "config"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormlyFieldConfig, FormlyFormOptions } from '@ngx-formly/core';
|
|
3
|
+
import { FormlyFieldConfig, FormlyForm, FormlyFormOptions } from '@ngx-formly/core';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
6
6
|
import { DbxForm, DbxFormDisabledKey, DbxFormEvent } from '../form/form';
|
|
@@ -15,22 +15,27 @@ export interface DbxFormlyFormState {
|
|
|
15
15
|
/**
|
|
16
16
|
* Used for rending a form from a DbxFormlyContext.
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class DbxFormlyComponent<T> extends AbstractSubscriptionDirective implements DbxForm, DbxFormlyContextDelegate<T>, OnInit, OnDestroy {
|
|
19
19
|
private readonly _dbxFormlyContext;
|
|
20
|
-
|
|
21
|
-
private
|
|
22
|
-
private
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
26
|
-
private
|
|
20
|
+
readonly formlyForm: import("@angular/core").Signal<FormlyForm | undefined>;
|
|
21
|
+
private readonly _fields;
|
|
22
|
+
private readonly _events;
|
|
23
|
+
private readonly _disabled;
|
|
24
|
+
private readonly _reset;
|
|
25
|
+
private readonly _forceUpdate;
|
|
26
|
+
private readonly _disabledSub;
|
|
27
|
+
private readonly _enforceDisabledSub;
|
|
27
28
|
readonly form: FormGroup<{}>;
|
|
28
|
-
|
|
29
|
-
options: FormlyFormOptions;
|
|
29
|
+
readonly modelSignal: import("@angular/core").WritableSignal<T>;
|
|
30
|
+
readonly options: FormlyFormOptions;
|
|
30
31
|
readonly fields$: Observable<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
31
32
|
[additionalProperties: string]: any;
|
|
32
33
|
}>[]>;
|
|
33
34
|
readonly stream$: Observable<DbxFormEvent>;
|
|
35
|
+
private readonly _fieldsSignal;
|
|
36
|
+
readonly fieldsSignal: import("@angular/core").Signal<FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
37
|
+
[additionalProperties: string]: any;
|
|
38
|
+
}>[]>;
|
|
34
39
|
ngOnInit(): void;
|
|
35
40
|
ngOnDestroy(): void;
|
|
36
41
|
init(initialize: DbxFormlyInitialize<T>): void;
|
|
@@ -42,6 +47,6 @@ export declare class DbxFormlyFormComponent<T> extends AbstractSubscriptionDirec
|
|
|
42
47
|
getDisabled(): Observable<BooleanStringKeyArray>;
|
|
43
48
|
setDisabled(key?: DbxFormDisabledKey, disabled?: boolean): void;
|
|
44
49
|
forceFormUpdate(): void;
|
|
45
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyComponent<any>, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormlyComponent<any>, "dbx-formly", ["formly"], {}, {}, never, never, true, never>;
|
|
47
52
|
}
|
|
@@ -7,6 +7,6 @@ import * as i5 from "@ngx-formly/core";
|
|
|
7
7
|
import * as i6 from "@ngx-formly/material/toggle";
|
|
8
8
|
export declare class DbxFormlyModule {
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormlyModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormlyModule, [typeof i1.
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormlyModule, never, [typeof i1.DbxFormlyComponent, typeof i2.DbxFormlyFieldsContextDirective, typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.FormlyModule, typeof i6.FormlyMatToggleModule], [typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i1.DbxFormlyComponent, typeof i2.DbxFormlyFieldsContextDirective]>;
|
|
11
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormlyModule>;
|
|
12
12
|
}
|
package/lib/formly/index.d.ts
CHANGED
package/lib/index.d.ts
CHANGED
package/lib/layout/_layout.scss
CHANGED
|
@@ -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-layout') {
|
|
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);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
// Includes all of the typographic styles.
|
|
10
10
|
@mixin all-component-typographies($theme-config-or-typography-config: null) {
|
|
11
|
-
$typography-config: if(theming.private-is-theme-object($theme-config-or-typography-config), theming.get-typography-config($theme-config-or-typography-config), $theme-config-or-typography-config);
|
|
11
|
+
$typography-config: if(theming.private-is-theme-object($theme-config-or-typography-config), theming.m2-get-typography-config($theme-config-or-typography-config), $theme-config-or-typography-config);
|
|
12
12
|
|
|
13
13
|
// If no actual color configuration has been specified, create a default one.
|
|
14
14
|
@if not $typography-config {
|
package/lib/style/_theming.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@forward '@angular/material' show define-light-theme, define-dark-theme, define-palette, get-contrast-color-from-palette, get-color-from-palette, get-color-config, get-typography-config, get-density-config, elevation;
|
|
1
|
+
@forward '@angular/material' show m2-define-light-theme, m2-define-dark-theme, m2-define-palette, m2-get-contrast-color-from-palette, m2-get-color-from-palette, m2-get-color-config, m2-get-typography-config, m2-get-density-config, elevation;
|
|
2
2
|
|
|
3
3
|
@forward 'node_modules/@angular/material/core/theming/theming' show private-is-theme-object, private-check-duplicate-theme-styles, $theme-ignore-duplication-warnings;
|
|
4
4
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { CompactContextStore } from '@dereekb/dbx-web';
|
|
3
|
-
import { Injector,
|
|
3
|
+
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
4
4
|
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
5
|
import { FieldType } from '@ngx-formly/material';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
@@ -19,36 +19,36 @@ export interface DbxFormMapboxLatLngComponentFieldProps extends FormlyFieldProps
|
|
|
19
19
|
*
|
|
20
20
|
* Cases where this would be set false is if another map is being used.
|
|
21
21
|
*/
|
|
22
|
-
showMap?: boolean;
|
|
22
|
+
readonly showMap?: boolean;
|
|
23
23
|
/**
|
|
24
24
|
* Whether or not to display the center button. Is set to false if selectLocationOnMapDrag is true.
|
|
25
25
|
*/
|
|
26
|
-
showCenterButton?: boolean;
|
|
26
|
+
readonly showCenterButton?: boolean;
|
|
27
27
|
/**
|
|
28
28
|
* Whether or not to set the center of the map on the location when set. Defaults to true.
|
|
29
29
|
*/
|
|
30
|
-
setCenterOnLocationSet?: boolean;
|
|
30
|
+
readonly setCenterOnLocationSet?: boolean;
|
|
31
31
|
/**
|
|
32
32
|
* Whether or not to enable dragging the map to select the location. Defaults to true.
|
|
33
33
|
*
|
|
34
34
|
* Only applicable when showMap is false.
|
|
35
35
|
*/
|
|
36
|
-
selectLocationOnMapDrag?: boolean;
|
|
36
|
+
readonly selectLocationOnMapDrag?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Whether or not to enable clicking the map to select the location. Defaults to false.
|
|
39
39
|
*
|
|
40
40
|
* Only applicable when showMap is false.
|
|
41
41
|
*/
|
|
42
|
-
selectLocationOnMapClick?: boolean;
|
|
42
|
+
readonly selectLocationOnMapClick?: boolean;
|
|
43
43
|
/**
|
|
44
44
|
* (Optional) Zoom to start the map at. Ignored if the showMap is false.
|
|
45
45
|
*/
|
|
46
|
-
zoom?: MapboxZoomLevel;
|
|
46
|
+
readonly zoom?: MapboxZoomLevel;
|
|
47
47
|
/**
|
|
48
48
|
* Time until recentering on the marker. If the time is 0 then the recentering is disabled.
|
|
49
49
|
*/
|
|
50
|
-
recenterTime?: Milliseconds;
|
|
51
|
-
latLngConfig?: LatLngPointFunctionConfig;
|
|
50
|
+
readonly recenterTime?: Milliseconds;
|
|
51
|
+
readonly latLngConfig?: LatLngPointFunctionConfig;
|
|
52
52
|
/**
|
|
53
53
|
* Unique injection key.
|
|
54
54
|
*
|
|
@@ -56,38 +56,40 @@ export interface DbxFormMapboxLatLngComponentFieldProps extends FormlyFieldProps
|
|
|
56
56
|
*
|
|
57
57
|
* If false is passed, the marker will not be configured in the injection store.
|
|
58
58
|
*/
|
|
59
|
-
mapInjectionKey?: Maybe<string | false>;
|
|
59
|
+
readonly mapInjectionKey?: Maybe<string | false>;
|
|
60
60
|
/**
|
|
61
61
|
* Marker configuration or factory. If false is passed, the marker will not be displayed.
|
|
62
62
|
*/
|
|
63
|
-
markerConfig?: false | ObservableFactoryWithRequiredInput<DbxMapboxMarkerDisplayConfig | false, DbxFormMapboxLatLngFieldComponent>;
|
|
63
|
+
readonly markerConfig?: false | ObservableFactoryWithRequiredInput<DbxMapboxMarkerDisplayConfig | false, DbxFormMapboxLatLngFieldComponent>;
|
|
64
64
|
}
|
|
65
65
|
export declare class DbxFormMapboxLatLngFieldComponent<T extends DbxFormMapboxLatLngComponentFieldProps = DbxFormMapboxLatLngComponentFieldProps> extends FieldType<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
66
66
|
private readonly _geolocationService;
|
|
67
67
|
readonly compact: CompactContextStore | null;
|
|
68
68
|
readonly dbxMapboxInjectionStore: DbxMapboxInjectionStore | null;
|
|
69
69
|
readonly dbxMapboxMapStore: DbxMapboxMapStore;
|
|
70
|
-
readonly ngZone: NgZone;
|
|
71
70
|
readonly injector: Injector;
|
|
71
|
+
private readonly _sub;
|
|
72
|
+
private readonly _geoSub;
|
|
73
|
+
private readonly _centerSub;
|
|
74
|
+
private readonly _flyToCenterSub;
|
|
75
|
+
private readonly _clickSub;
|
|
76
|
+
private readonly _zoom;
|
|
77
|
+
private readonly _markerConfig;
|
|
72
78
|
private _latLngStringFunction;
|
|
73
79
|
private _latLngPointFunction;
|
|
74
|
-
readonly compactClass$: Observable<
|
|
75
|
-
private _useCurrentLocationDisabled;
|
|
80
|
+
readonly compactClass$: Observable<string>;
|
|
81
|
+
private readonly _useCurrentLocationDisabled;
|
|
76
82
|
readonly useCurrentLocationDisabled$: Observable<boolean>;
|
|
77
|
-
private
|
|
78
|
-
private _geoSub;
|
|
79
|
-
private _centerSub;
|
|
80
|
-
private _flyToCenterSub;
|
|
81
|
-
private _clickSub;
|
|
82
|
-
private _zoom;
|
|
83
|
-
private _markerConfig;
|
|
84
|
-
private _formControlObs;
|
|
83
|
+
private readonly _formControlObs;
|
|
85
84
|
readonly formControl$: Observable<AbstractControl<any, any>>;
|
|
86
85
|
readonly value$: Observable<any>;
|
|
87
86
|
readonly latLng$: Observable<LatLngPoint>;
|
|
88
87
|
readonly nonZeroLatLng$: Observable<LatLngPoint>;
|
|
89
88
|
readonly zoom$: Observable<number>;
|
|
90
89
|
readonly markerConfig$: Observable<false | DbxMapboxMarkerDisplayConfig>;
|
|
90
|
+
readonly useCurrentLocationDisabledSignal: import("@angular/core").Signal<boolean>;
|
|
91
|
+
readonly compactClassSignal: import("@angular/core").Signal<string>;
|
|
92
|
+
readonly latLngSignal: import("@angular/core").Signal<LatLngPoint>;
|
|
91
93
|
get zoom(): MapboxZoomLevel;
|
|
92
94
|
get formGroupName(): string;
|
|
93
95
|
get formGroup(): FormGroup;
|
|
@@ -110,5 +112,5 @@ export declare class DbxFormMapboxLatLngFieldComponent<T extends DbxFormMapboxLa
|
|
|
110
112
|
onMarkerDragEnd(marker: Marker): void;
|
|
111
113
|
setValue(latLng?: Maybe<LatLngPoint>): void;
|
|
112
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormMapboxLatLngFieldComponent<any>, never>;
|
|
113
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxLatLngFieldComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
115
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxLatLngFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
114
116
|
}
|
|
@@ -6,6 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class DbxFormMapboxLatLngFieldMarkerComponent {
|
|
7
7
|
readonly fieldComponent: DbxFormMapboxLatLngFieldComponent<any>;
|
|
8
8
|
readonly marker$: Observable<Maybe<DbxMapboxMarker>>;
|
|
9
|
+
readonly markerSignal: import("@angular/core").Signal<Maybe<DbxMapboxMarker>>;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormMapboxLatLngFieldMarkerComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxLatLngFieldMarkerComponent, "ng-component", never, {}, {}, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxLatLngFieldMarkerComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
11
12
|
}
|
|
@@ -1,17 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./latlng.field.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@angular/material/icon";
|
|
6
|
-
import * as i5 from "@angular/material/button";
|
|
7
|
-
import * as i6 from "@dereekb/dbx-web";
|
|
8
|
-
import * as i7 from "@dereekb/dbx-web/mapbox";
|
|
9
|
-
import * as i8 from "@angular/forms";
|
|
10
|
-
import * as i9 from "@angular/material/input";
|
|
11
|
-
import * as i10 from "@ngx-formly/core";
|
|
12
|
-
import * as i11 from "ngx-mapbox-gl";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
13
4
|
export declare class DbxFormMapboxLatLngModule {
|
|
14
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormMapboxLatLngModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormMapboxLatLngModule, [typeof i1.DbxFormMapboxLatLngFieldComponent, typeof i2.
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormMapboxLatLngModule, never, [typeof i1.DbxFormMapboxLatLngFieldComponent, typeof i2.FormlyModule], [typeof i1.DbxFormMapboxLatLngFieldComponent]>;
|
|
16
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormMapboxLatLngModule>;
|
|
17
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
2
|
import { CompactContextStore } from '@dereekb/dbx-web';
|
|
3
|
-
import {
|
|
3
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
4
4
|
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
5
|
import { FieldType } from '@ngx-formly/material';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
@@ -13,38 +13,38 @@ export interface DbxFormMapboxZoomComponentFieldProps extends Omit<FormlyFieldPr
|
|
|
13
13
|
*
|
|
14
14
|
* Defaults to true.
|
|
15
15
|
*/
|
|
16
|
-
showMap?: boolean;
|
|
16
|
+
readonly showMap?: boolean;
|
|
17
17
|
/**
|
|
18
18
|
* Default center
|
|
19
19
|
*/
|
|
20
|
-
center?: LatLngPoint;
|
|
20
|
+
readonly center?: LatLngPoint;
|
|
21
21
|
/**
|
|
22
22
|
* Whether or not to lock the map itself to the min and max zoom levels.
|
|
23
23
|
*/
|
|
24
|
-
lockMapToZoomLevels?: boolean;
|
|
24
|
+
readonly lockMapToZoomLevels?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Min zoom level allowed
|
|
27
27
|
*/
|
|
28
|
-
minZoom?: MapboxZoomLevel;
|
|
28
|
+
readonly minZoom?: MapboxZoomLevel;
|
|
29
29
|
/**
|
|
30
30
|
* Max zoom level allowed.
|
|
31
31
|
*/
|
|
32
|
-
maxZoom?: MapboxZoomLevel;
|
|
32
|
+
readonly maxZoom?: MapboxZoomLevel;
|
|
33
33
|
/**
|
|
34
34
|
* Step size when using arrow keys.
|
|
35
35
|
*/
|
|
36
|
-
zoomStep?: number;
|
|
36
|
+
readonly zoomStep?: number;
|
|
37
37
|
}
|
|
38
38
|
export declare class DbxFormMapboxZoomFieldComponent<T extends DbxFormMapboxZoomComponentFieldProps = DbxFormMapboxZoomComponentFieldProps> extends FieldType<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
39
39
|
readonly compact: CompactContextStore | null;
|
|
40
40
|
readonly dbxMapboxService: DbxMapboxService;
|
|
41
41
|
readonly dbxMapboxMapStore: DbxMapboxMapStore;
|
|
42
|
-
readonly ngZone: NgZone;
|
|
43
42
|
private _undoZoomLimit;
|
|
44
|
-
readonly compactClass$: Observable<
|
|
45
|
-
|
|
46
|
-
private
|
|
47
|
-
private
|
|
43
|
+
readonly compactClass$: Observable<string>;
|
|
44
|
+
readonly compactClassSignal: import("@angular/core").Signal<string>;
|
|
45
|
+
private readonly _sub;
|
|
46
|
+
private readonly _center;
|
|
47
|
+
private readonly _formControlObs;
|
|
48
48
|
readonly formControl$: Observable<AbstractControl<any, any>>;
|
|
49
49
|
readonly value$: Observable<any>;
|
|
50
50
|
readonly zoom$: Observable<MapboxZoomLevel>;
|
|
@@ -64,5 +64,5 @@ export declare class DbxFormMapboxZoomFieldComponent<T extends DbxFormMapboxZoom
|
|
|
64
64
|
ngOnDestroy(): void;
|
|
65
65
|
setValue(zoom?: Maybe<ZoomLevel>): void;
|
|
66
66
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormMapboxZoomFieldComponent<any>, never>;
|
|
67
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxZoomFieldComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
67
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormMapboxZoomFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
68
68
|
}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./zoom.field.component";
|
|
3
|
-
import * as i2 from "@
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "@angular/material/button";
|
|
6
|
-
import * as i5 from "@dereekb/dbx-web";
|
|
7
|
-
import * as i6 from "@dereekb/dbx-web/mapbox";
|
|
8
|
-
import * as i7 from "@angular/forms";
|
|
9
|
-
import * as i8 from "@angular/material/input";
|
|
10
|
-
import * as i9 from "@ngx-formly/core";
|
|
11
|
-
import * as i10 from "ngx-mapbox-gl";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
4
|
+
import * as i3 from "ngx-mapbox-gl";
|
|
12
5
|
export declare class DbxFormMapboxZoomModule {
|
|
13
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormMapboxZoomModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormMapboxZoomModule, [typeof i1.DbxFormMapboxZoomFieldComponent
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormMapboxZoomModule, never, [typeof i1.DbxFormMapboxZoomFieldComponent, typeof i2.FormlyModule, typeof i3.NgxMapboxGLModule], [typeof i1.DbxFormMapboxZoomFieldComponent]>;
|
|
15
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormMapboxZoomModule>;
|
|
16
9
|
}
|
package/package.json
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-form",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"date-fns": "^
|
|
5
|
+
"@angular/common": "^18.0.0",
|
|
6
|
+
"@angular/core": "^18.0.0",
|
|
7
|
+
"date-fns": "^3.0.0",
|
|
8
8
|
"rxjs": "^7.5.0",
|
|
9
9
|
"@dereekb/dbx-core": "*",
|
|
10
10
|
"@dereekb/rxjs": "*",
|
|
11
11
|
"@dereekb/util": "*",
|
|
12
|
-
"@angular/material": "^
|
|
12
|
+
"@angular/material": "^18.0.0",
|
|
13
13
|
"@uirouter/core": "^6.0.8",
|
|
14
14
|
"@dereekb/dbx-web": "*",
|
|
15
|
-
"@angular/forms": "^
|
|
15
|
+
"@angular/forms": "^18.0.0",
|
|
16
16
|
"@ngx-formly/core": "^6.0.0",
|
|
17
17
|
"@ngx-formly/material": "^6.0.0",
|
|
18
|
-
"change-case": "^4.1.2",
|
|
19
|
-
"@angular/cdk": "^16.2.12",
|
|
20
18
|
"@dereekb/date": "*",
|
|
21
|
-
"@ngbracket/ngx-layout": "
|
|
22
|
-
"ngx-editor": "^16.0.0",
|
|
19
|
+
"@ngbracket/ngx-layout": "^18.0.0",
|
|
23
20
|
"ngx-mat-intl-tel-input": "^5.0.0",
|
|
24
21
|
"@dereekb/model": "*",
|
|
25
|
-
"@angular/platform-browser": "^
|
|
22
|
+
"@angular/platform-browser": "^18.0.0",
|
|
23
|
+
"@angular/material-date-fns-adapter": "^18.0.0",
|
|
24
|
+
"@angular/cdk": "^18.0.0"
|
|
26
25
|
},
|
|
27
26
|
"dependencies": {
|
|
28
27
|
"tslib": "^2.3.0"
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './index';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyZWVrYi1kYngtZm9ybS1tYXBib3guanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZm9ybS9tYXBib3gvc3JjL2RlcmVla2ItZGJ4LWZvcm0tbWFwYm94LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
|