@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
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./list.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 "@angular/material/divider";
|
|
7
|
-
import * as i6 from "@angular/material/button";
|
|
8
|
-
import * as i7 from "@angular/material/input";
|
|
9
|
-
import * as i8 from "@angular/material/form-field";
|
|
10
|
-
import * as i9 from "@angular/material/autocomplete";
|
|
11
|
-
import * as i10 from "@angular/material/icon";
|
|
12
|
-
import * as i11 from "@dereekb/dbx-core";
|
|
13
|
-
import * as i12 from "@ngx-formly/core";
|
|
3
|
+
import * as i2 from "@ngx-formly/core";
|
|
14
4
|
export declare class DbxFormFormlyDbxListFieldModule {
|
|
15
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyDbxListFieldModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDbxListFieldModule, [typeof i1.DbxItemListFieldComponent
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDbxListFieldModule, never, [typeof i1.DbxItemListFieldComponent, typeof i2.FormlyModule], [typeof i1.DbxItemListFieldComponent]>;
|
|
17
7
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyDbxListFieldModule>;
|
|
18
8
|
}
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
|
|
23
23
|
@mixin theme($theme-config) {
|
|
24
24
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-selection-pickable') {
|
|
25
|
-
$color: theming.get-color-config($theme-config);
|
|
26
|
-
$density: theming.get-density-config($theme-config);
|
|
27
|
-
$typography: theming.get-typography-config($theme-config);
|
|
25
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
26
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
27
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
28
28
|
|
|
29
29
|
@if $color !=null {
|
|
30
30
|
@include color($theme-config);
|
|
@@ -6,5 +6,5 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class DbxPickableChipListFieldComponent<T> extends AbstractDbxPickableItemFieldDirective<T> {
|
|
7
7
|
itemClicked(item: PickableItemFieldItem<T>): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableChipListFieldComponent<any>, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableChipListFieldComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableChipListFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
2
|
-
import { LoadingState
|
|
2
|
+
import { LoadingState } from '@dereekb/rxjs';
|
|
3
3
|
import { PrimativeKey, Maybe, ArrayOrValue } from '@dereekb/util';
|
|
4
4
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { FormControl, AbstractControl } from '@angular/forms';
|
|
@@ -19,69 +19,69 @@ export interface PickableValueFieldsFieldProps<T, M = unknown, H extends Primati
|
|
|
19
19
|
/**
|
|
20
20
|
* Loads all pickable values.
|
|
21
21
|
*/
|
|
22
|
-
loadValues: PickableValueFieldLoadValuesFunction<T, M>;
|
|
22
|
+
readonly loadValues: PickableValueFieldLoadValuesFunction<T, M>;
|
|
23
23
|
/**
|
|
24
24
|
* Used for building a display value given the input.
|
|
25
25
|
*/
|
|
26
|
-
displayForValue: PickableValueFieldDisplayFunction<T, M>;
|
|
26
|
+
readonly displayForValue: PickableValueFieldDisplayFunction<T, M>;
|
|
27
27
|
/**
|
|
28
28
|
* Used for hashing display values and omitting repeat values.
|
|
29
29
|
*
|
|
30
30
|
* If hashForValue is not provided, the value's value will be used as is.
|
|
31
31
|
*/
|
|
32
|
-
hashForValue?: PickableValueFieldHashFunction<T, H>;
|
|
32
|
+
readonly hashForValue?: PickableValueFieldHashFunction<T, H>;
|
|
33
33
|
/**
|
|
34
34
|
* Used for filtering values via the search text.
|
|
35
35
|
*/
|
|
36
|
-
filterValues?: PickableValueFieldFilterFunction<T, M>;
|
|
36
|
+
readonly filterValues?: PickableValueFieldFilterFunction<T, M>;
|
|
37
37
|
/**
|
|
38
38
|
* Used for sorting the items before they are displayed.
|
|
39
39
|
*
|
|
40
40
|
* Should only be used to sort values.
|
|
41
41
|
*/
|
|
42
|
-
sortItems?: PickableItemFieldItemSortFn<T, M>;
|
|
42
|
+
readonly sortItems?: PickableItemFieldItemSortFn<T, M>;
|
|
43
43
|
/**
|
|
44
44
|
* Whether or not to allow multiple items to be selected.
|
|
45
45
|
*/
|
|
46
|
-
multiSelect?: boolean;
|
|
46
|
+
readonly multiSelect?: boolean;
|
|
47
47
|
/**
|
|
48
48
|
* Whether or not to set/get values as an array or a single value. If set false, multiSelect is ignored.
|
|
49
49
|
*/
|
|
50
|
-
asArrayValue?: boolean;
|
|
50
|
+
readonly asArrayValue?: boolean;
|
|
51
51
|
/**
|
|
52
52
|
* Whether or not to show the text filter. True by default if filterValues is provided.
|
|
53
53
|
*/
|
|
54
|
-
showTextFilter?: boolean;
|
|
54
|
+
readonly showTextFilter?: boolean;
|
|
55
55
|
/**
|
|
56
56
|
* Whether or not to skip the filter function when the input is empty.
|
|
57
57
|
*
|
|
58
58
|
* True by default.
|
|
59
59
|
*/
|
|
60
|
-
skipFilterFnOnEmpty?: boolean;
|
|
60
|
+
readonly skipFilterFnOnEmpty?: boolean;
|
|
61
61
|
/**
|
|
62
62
|
* Filter Label
|
|
63
63
|
*/
|
|
64
|
-
filterLabel?: string;
|
|
64
|
+
readonly filterLabel?: string;
|
|
65
65
|
/**
|
|
66
66
|
* The maximum number of values that can be picked
|
|
67
67
|
*/
|
|
68
|
-
maxPicks?: number;
|
|
68
|
+
readonly maxPicks?: number;
|
|
69
69
|
/**
|
|
70
70
|
* Optional description/hint to display.
|
|
71
71
|
*/
|
|
72
|
-
description?: string;
|
|
72
|
+
readonly description?: string;
|
|
73
73
|
/**
|
|
74
74
|
* Footer Display
|
|
75
75
|
*/
|
|
76
|
-
footerConfig?: DbxInjectionComponentConfig;
|
|
76
|
+
readonly footerConfig?: DbxInjectionComponentConfig;
|
|
77
77
|
/**
|
|
78
78
|
* Changes the selection mode of the list to "view" mode on disabled, hiding the selection boxes.
|
|
79
79
|
*/
|
|
80
|
-
changeSelectionModeToViewOnDisabled?: boolean;
|
|
80
|
+
readonly changeSelectionModeToViewOnDisabled?: boolean;
|
|
81
81
|
/**
|
|
82
82
|
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
83
83
|
*/
|
|
84
|
-
refreshDisplayValues$?: Observable<unknown>;
|
|
84
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
85
85
|
}
|
|
86
86
|
/**
|
|
87
87
|
* Displayed value with the computed hash.
|
|
@@ -93,12 +93,12 @@ export interface PickableValueFieldDisplayValueWithHash<T, M = unknown, H extend
|
|
|
93
93
|
* Used for picking pre-set values using items as the presentation.
|
|
94
94
|
*/
|
|
95
95
|
export declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FieldType<FieldTypeConfig<PickableValueFieldsFieldProps<T, M, H>>> implements OnInit, OnDestroy {
|
|
96
|
-
filterMatInput: MatInput
|
|
96
|
+
readonly filterMatInput: import("@angular/core").Signal<MatInput | undefined>;
|
|
97
97
|
readonly inputCtrl: FormControl<string | null>;
|
|
98
|
-
private _formControlObs;
|
|
98
|
+
private readonly _formControlObs;
|
|
99
99
|
readonly formControl$: Observable<AbstractControl<any, any>>;
|
|
100
|
-
private _clearDisplayHashMapSub;
|
|
101
|
-
private _displayHashMap;
|
|
100
|
+
private readonly _clearDisplayHashMapSub;
|
|
101
|
+
private readonly _displayHashMap;
|
|
102
102
|
readonly filterInputValue$: Observable<Maybe<string>>;
|
|
103
103
|
readonly filterInputValueString$: Observable<Maybe<string>>;
|
|
104
104
|
readonly loadResultsDisplayValuesState$: Observable<LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
@@ -122,13 +122,15 @@ export declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H ext
|
|
|
122
122
|
/**
|
|
123
123
|
* Context used for managing the loading of items, or when the current results change.
|
|
124
124
|
*/
|
|
125
|
-
readonly context:
|
|
125
|
+
readonly context: import("@dereekb/rxjs").MutableListLoadingStateContext<unknown, LoadingState<PickableItemFieldItem<T, unknown>[]>>;
|
|
126
126
|
readonly filterItemsLoadingState$: Observable<LoadingState<PickableItemFieldItem<T>[]>>;
|
|
127
|
+
readonly noItemsAvailable$: Observable<boolean>;
|
|
127
128
|
/**
|
|
128
129
|
* Context used for searching/filtering.
|
|
129
130
|
*/
|
|
130
|
-
readonly filterResultsContext:
|
|
131
|
-
readonly
|
|
131
|
+
readonly filterResultsContext: import("@dereekb/rxjs").MutableListLoadingStateContext<unknown, LoadingState<PickableValueFieldDisplayValueWithHash<T, M, H>[]>>;
|
|
132
|
+
readonly itemsSignal: import("@angular/core").Signal<PickableItemFieldItem<T, M>[] | undefined>;
|
|
133
|
+
readonly noItemsAvailableSignal: import("@angular/core").Signal<boolean | undefined>;
|
|
132
134
|
get readonly(): Maybe<boolean>;
|
|
133
135
|
get isReadonlyOrDisabled(): boolean;
|
|
134
136
|
get pickableField(): PickableValueFieldsFieldProps<T, M, H>;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./pickable.chip.field.component";
|
|
3
3
|
import * as i2 from "./pickable.list.field.component";
|
|
4
|
-
import * as i3 from "@
|
|
5
|
-
import * as i4 from "@dereekb/dbx-web";
|
|
6
|
-
import * as i5 from "@angular/forms";
|
|
7
|
-
import * as i6 from "@angular/material/button";
|
|
8
|
-
import * as i7 from "@angular/material/input";
|
|
9
|
-
import * as i8 from "@angular/material/form-field";
|
|
10
|
-
import * as i9 from "@angular/material/autocomplete";
|
|
11
|
-
import * as i10 from "@angular/material/list";
|
|
12
|
-
import * as i11 from "@dereekb/dbx-core";
|
|
13
|
-
import * as i12 from "@angular/material/chips";
|
|
14
|
-
import * as i13 from "@angular/material/icon";
|
|
15
|
-
import * as i14 from "@ngx-formly/core";
|
|
4
|
+
import * as i3 from "@ngx-formly/core";
|
|
16
5
|
export declare class DbxFormFormlyPickableFieldModule {
|
|
17
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyPickableFieldModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPickableFieldModule, [typeof i1.DbxPickableChipListFieldComponent, typeof i2.DbxPickableListFieldComponent, typeof i2.DbxPickableListFieldItemListComponent, typeof i2.DbxPickableListFieldItemListViewComponent, typeof i2.DbxPickableListFieldItemListViewItemComponent
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyPickableFieldModule, never, [typeof i1.DbxPickableChipListFieldComponent, typeof i2.DbxPickableListFieldComponent, typeof i2.DbxPickableListFieldItemListComponent, typeof i2.DbxPickableListFieldItemListViewComponent, typeof i2.DbxPickableListFieldItemListViewItemComponent, typeof i3.FormlyModule], [typeof i1.DbxPickableChipListFieldComponent, typeof i2.DbxPickableListFieldComponent, typeof i2.DbxPickableListFieldItemListComponent, typeof i2.DbxPickableListFieldItemListViewComponent, typeof i2.DbxPickableListFieldItemListViewItemComponent]>;
|
|
19
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyPickableFieldModule>;
|
|
20
9
|
}
|
|
@@ -4,18 +4,10 @@ import { type Maybe } from '@dereekb/util';
|
|
|
4
4
|
import { PickableValueFieldDisplayValue } from './pickable';
|
|
5
5
|
import { AbstractDbxPickableItemFieldDirective, PickableItemFieldItem } from './pickable.field.directive';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* Used for picking pre-set values using a selection list as the presentation.
|
|
9
|
-
*/
|
|
10
|
-
export declare class DbxPickableListFieldComponent<T> extends AbstractDbxPickableItemFieldDirective<T> {
|
|
11
|
-
onSelectionChange(event: unknown): void;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldComponent<any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldComponent<any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
14
|
-
}
|
|
15
7
|
export declare class DbxPickableListFieldItemListComponent<T> extends AbstractDbxSelectionListWrapperDirective<PickableItemFieldItem<T>> {
|
|
16
8
|
constructor();
|
|
17
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListComponent<any>, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListComponent<any>, "dbx-form-pickable-item-field-item-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"],
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListComponent<any>, "dbx-form-pickable-item-field-item-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
|
|
19
11
|
}
|
|
20
12
|
/**
|
|
21
13
|
* NOTE: Values input are PickableItemFieldItem<T>, but output values are PickableValueFieldDisplayValue<T>.
|
|
@@ -26,13 +18,22 @@ export declare class DbxPickableListFieldItemListViewComponent<T> extends Abstra
|
|
|
26
18
|
get multiple(): boolean;
|
|
27
19
|
get selectionMode(): Maybe<DbxListSelectionMode>;
|
|
28
20
|
readonly items$: import("rxjs").Observable<any[]>;
|
|
21
|
+
readonly itemsSignal: import("@angular/core").Signal<any[] | undefined>;
|
|
29
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListViewComponent<any>, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
31
24
|
}
|
|
32
25
|
export declare class DbxPickableListFieldItemListViewItemComponent<T> extends AbstractDbxValueListViewItemComponent<PickableValueFieldDisplayValue<T>> {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
26
|
+
readonly label: string;
|
|
27
|
+
readonly sublabel: string | undefined;
|
|
28
|
+
readonly icon: string | undefined;
|
|
36
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldItemListViewItemComponent<any>, never>;
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewItemComponent<any>, "ng-component", never, {}, {}, never, never,
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldItemListViewItemComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Used for picking pre-set values using a selection list as the presentation.
|
|
34
|
+
*/
|
|
35
|
+
export declare class DbxPickableListFieldComponent<T> extends AbstractDbxPickableItemFieldDirective<T> {
|
|
36
|
+
onSelectionChange(event: unknown): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPickableListFieldComponent<any>, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxPickableListFieldComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
38
39
|
}
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
@mixin theme($theme-config) {
|
|
46
46
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-selection-searchable') {
|
|
47
|
-
$color: theming.get-color-config($theme-config);
|
|
48
|
-
$density: theming.get-density-config($theme-config);
|
|
49
|
-
$typography: theming.get-typography-config($theme-config);
|
|
47
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
48
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
49
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
50
50
|
|
|
51
51
|
@if $color !=null {
|
|
52
52
|
@include color($theme-config);
|
|
@@ -12,17 +12,17 @@ export interface SearchableChipValueFieldsFieldProps<T, M = unknown, H extends P
|
|
|
12
12
|
readonly multiSelect?: boolean;
|
|
13
13
|
}
|
|
14
14
|
export declare class DbxSearchableChipFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableChipValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
15
|
-
|
|
16
|
-
private
|
|
15
|
+
get multiSelect(): boolean;
|
|
16
|
+
private readonly _blur;
|
|
17
|
+
private readonly _blurSub;
|
|
17
18
|
readonly separatorKeysCodes: number[];
|
|
18
19
|
selected(event: MatAutocompleteSelectedEvent): void;
|
|
19
20
|
tabPressedOnInput(event: KeyboardEvent): boolean;
|
|
20
21
|
addChip(event: MatChipInputEvent): void;
|
|
21
|
-
get multiSelect(): boolean;
|
|
22
22
|
protected _syncSingleValue(value: SearchableValueFieldDisplayValue<T>): void;
|
|
23
23
|
ngOnInit(): void;
|
|
24
24
|
ngOnDestroy(): void;
|
|
25
25
|
onBlur(): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableChipFieldComponent<any, any, any>, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableChipFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never,
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableChipFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
28
28
|
}
|
|
@@ -6,7 +6,7 @@ export interface SearchableValueFieldValue<T, M = unknown> extends SelectionValu
|
|
|
6
6
|
/**
|
|
7
7
|
* Optional anchor metadata on the field.
|
|
8
8
|
*/
|
|
9
|
-
anchor?: ClickableAnchor;
|
|
9
|
+
readonly anchor?: ClickableAnchor;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Displayed value.
|
|
@@ -15,10 +15,10 @@ export interface SearchableValueFieldDisplayValue<T, M = unknown> extends Select
|
|
|
15
15
|
/**
|
|
16
16
|
* Display override configuration
|
|
17
17
|
*/
|
|
18
|
-
display?: Partial<DbxInjectionComponentConfig>;
|
|
18
|
+
readonly display?: Partial<DbxInjectionComponentConfig>;
|
|
19
19
|
}
|
|
20
20
|
export interface ConfiguredSearchableValueFieldDisplayValue<T, M = unknown> extends Omit<SearchableValueFieldDisplayValue<T, M>, 'display'> {
|
|
21
|
-
display: DbxInjectionComponentConfig;
|
|
21
|
+
readonly display: DbxInjectionComponentConfig;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* SearchableValueField function for searching values.
|
package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { InjectionToken, OnDestroy } from '@angular/core';
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
3
2
|
import { ConfiguredSearchableValueFieldDisplayValue } from './searchable';
|
|
4
3
|
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare const DBX_SEARCHABLE_FIELD_COMPONENT_DATA_TOKEN: InjectionToken<unknown>;
|
|
7
|
-
export declare class DbxSearchableFieldAutocompleteItemComponent<T>
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly anchor$: Observable<import("@dereekb/dbx-core").ClickableAnchor | undefined>;
|
|
12
|
-
set displayValue(displayValue: ConfiguredSearchableValueFieldDisplayValue<T>);
|
|
13
|
-
ngOnDestroy(): void;
|
|
6
|
+
export declare class DbxSearchableFieldAutocompleteItemComponent<T> {
|
|
7
|
+
readonly displayValue: import("@angular/core").InputSignal<ConfiguredSearchableValueFieldDisplayValue<T, unknown>>;
|
|
8
|
+
readonly configSignal: import("@angular/core").Signal<DbxInjectionComponentConfig<unknown>>;
|
|
9
|
+
readonly anchorSignal: import("@angular/core").Signal<import("@dereekb/dbx-core").ClickableAnchor | undefined>;
|
|
14
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableFieldAutocompleteItemComponent<any>, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableFieldAutocompleteItemComponent<any>, "dbx-searchable-field-autocomplete-item", never, { "displayValue": { "alias": "displayValue"; "required":
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableFieldAutocompleteItemComponent<any>, "dbx-searchable-field-autocomplete-item", never, { "displayValue": { "alias": "displayValue"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
12
|
}
|
|
17
13
|
export declare abstract class AbstractDbxSearchableFieldDisplayDirective<T> {
|
|
18
14
|
readonly displayValue: ConfiguredSearchableValueFieldDisplayValue<T, unknown>;
|
|
@@ -20,7 +16,7 @@ export declare abstract class AbstractDbxSearchableFieldDisplayDirective<T> {
|
|
|
20
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSearchableFieldDisplayDirective<any>, never, never, {}, {}, never, never, false, never>;
|
|
21
17
|
}
|
|
22
18
|
export declare class DbxDefaultSearchableFieldDisplayComponent<T> extends AbstractDbxSearchableFieldDisplayDirective<T> {
|
|
23
|
-
|
|
19
|
+
readonly icon: string | undefined;
|
|
24
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxDefaultSearchableFieldDisplayComponent<any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultSearchableFieldDisplayComponent<any>, "dbx-default-searchable-field-display", never, {}, {}, never, never,
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxDefaultSearchableFieldDisplayComponent<any>, "dbx-default-searchable-field-display", never, {}, {}, never, never, true, never>;
|
|
26
22
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ArrayOrValue, Maybe, PrimativeKey } from '@dereekb/util';
|
|
2
2
|
import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
3
|
-
import { LoadingState
|
|
4
|
-
import {
|
|
3
|
+
import { LoadingState } from '@dereekb/rxjs';
|
|
4
|
+
import { ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { AbstractControl, FormControl, ValidatorFn } from '@angular/forms';
|
|
6
6
|
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
7
7
|
import { FieldType } from '@ngx-formly/material';
|
|
@@ -12,69 +12,69 @@ export interface StringValueFieldsFieldProps extends FormlyFieldProps {
|
|
|
12
12
|
/**
|
|
13
13
|
* Custom input validators.
|
|
14
14
|
*/
|
|
15
|
-
textInputValidator?: ValidatorFn | ValidatorFn[];
|
|
15
|
+
readonly textInputValidator?: ValidatorFn | ValidatorFn[];
|
|
16
16
|
}
|
|
17
17
|
export interface SearchableValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldProps, StringValueFieldsFieldProps {
|
|
18
18
|
/**
|
|
19
19
|
* Whether or not to allow string values to be used directly, or if values can only be chosen from searching.
|
|
20
20
|
*/
|
|
21
|
-
allowStringValues?: boolean;
|
|
21
|
+
readonly allowStringValues?: boolean;
|
|
22
22
|
/**
|
|
23
23
|
* Whether or not to set/get values as an array or a single value. If set false, multiSelect is ignored.
|
|
24
24
|
*/
|
|
25
|
-
asArrayValue?: boolean;
|
|
25
|
+
readonly asArrayValue?: boolean;
|
|
26
26
|
/**
|
|
27
27
|
* Optional conversion function. If provided, allowStringValues is considered true.
|
|
28
28
|
*/
|
|
29
|
-
convertStringValue?: (text: string) => T;
|
|
29
|
+
readonly convertStringValue?: (text: string) => T;
|
|
30
30
|
/**
|
|
31
31
|
* Used for hashing display values and omitting repeat values.
|
|
32
32
|
*
|
|
33
33
|
* If hashForValue is not provided, the value's value will be used as is.
|
|
34
34
|
*/
|
|
35
|
-
hashForValue?: SearchableValueFieldHashFn<T, H>;
|
|
35
|
+
readonly hashForValue?: SearchableValueFieldHashFn<T, H>;
|
|
36
36
|
/**
|
|
37
37
|
* Performs a search.
|
|
38
38
|
*/
|
|
39
|
-
search: SearchableValueFieldStringSearchFn<T, M>;
|
|
39
|
+
readonly search: SearchableValueFieldStringSearchFn<T, M>;
|
|
40
40
|
/**
|
|
41
41
|
* Whether or not to allow searches on empty text. Is false by default.
|
|
42
42
|
*/
|
|
43
|
-
searchOnEmptyText?: boolean;
|
|
43
|
+
readonly searchOnEmptyText?: boolean;
|
|
44
44
|
/**
|
|
45
45
|
* Default injected config to use for display values.
|
|
46
46
|
*/
|
|
47
|
-
display?: Partial<DbxInjectionComponentConfig>;
|
|
47
|
+
readonly display?: Partial<DbxInjectionComponentConfig>;
|
|
48
48
|
/**
|
|
49
49
|
* Used for building a display value given the input.
|
|
50
50
|
*/
|
|
51
|
-
displayForValue: SearchableValueFieldDisplayFn<T, M>;
|
|
51
|
+
readonly displayForValue: SearchableValueFieldDisplayFn<T, M>;
|
|
52
52
|
/**
|
|
53
53
|
* Whether or not to use the anchor field on value elements.
|
|
54
54
|
*
|
|
55
55
|
* This has no default effect if a component class is provided.
|
|
56
56
|
*/
|
|
57
|
-
useAnchor?: boolean;
|
|
57
|
+
readonly useAnchor?: boolean;
|
|
58
58
|
/**
|
|
59
59
|
* Used for retrieving an anchor value for values that have no anchor value set.
|
|
60
60
|
*
|
|
61
61
|
* Only used when useAnchor is true.
|
|
62
62
|
*/
|
|
63
|
-
anchorForValue?: SearchableValueFieldAnchorFn<T, M>;
|
|
63
|
+
readonly anchorForValue?: SearchableValueFieldAnchorFn<T, M>;
|
|
64
64
|
/**
|
|
65
65
|
* Whether or not to show "Clear" in the autcomplete list.
|
|
66
66
|
*/
|
|
67
|
-
showClearValue?: boolean;
|
|
67
|
+
readonly showClearValue?: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* Label for the search input.
|
|
70
70
|
*
|
|
71
71
|
* Defaults to "Search"
|
|
72
72
|
*/
|
|
73
|
-
searchLabel?: string;
|
|
73
|
+
readonly searchLabel?: string;
|
|
74
74
|
/**
|
|
75
75
|
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
76
76
|
*/
|
|
77
|
-
refreshDisplayValues$?: Observable<unknown>;
|
|
77
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
78
78
|
}
|
|
79
79
|
/**
|
|
80
80
|
* Abstract searchable field that provides a feature for searching for values, and for displaying values using Observables.
|
|
@@ -82,20 +82,19 @@ export interface SearchableValueFieldsFieldProps<T, M = unknown, H extends Prima
|
|
|
82
82
|
* Display values are cached for performance.
|
|
83
83
|
*/
|
|
84
84
|
export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey, C extends SearchableValueFieldsFieldProps<T, M, H> = SearchableValueFieldsFieldProps<T, M, H>> extends FieldType<FieldTypeConfig<C>> implements OnInit, OnDestroy {
|
|
85
|
-
readonly cdRef: ChangeDetectorRef;
|
|
86
|
-
/**
|
|
87
|
-
* Whether or not to allow syncing to
|
|
88
|
-
*/
|
|
89
|
-
allowSyncValueToInput: boolean;
|
|
90
85
|
/**
|
|
91
86
|
* Whether or not to set/get values as an array.
|
|
92
87
|
*/
|
|
93
88
|
abstract get multiSelect(): boolean;
|
|
94
89
|
/**
|
|
95
|
-
* Optional override set by the parent class for
|
|
90
|
+
* Optional override set by the parent class for whether or not to allow the current value to sync to the input.
|
|
91
|
+
*/
|
|
92
|
+
allowSyncValueToInput: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Default placeholder text to use when searchOnEmptyText is false.
|
|
96
95
|
*/
|
|
97
|
-
|
|
98
|
-
textInput: ElementRef<HTMLInputElement>;
|
|
96
|
+
defaultSearchInputPlaceholder?: Maybe<string>;
|
|
97
|
+
readonly textInput: import("@angular/core").Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
99
98
|
readonly inputCtrl: FormControl<string | null>;
|
|
100
99
|
private readonly _formControlObs;
|
|
101
100
|
readonly formControl$: Observable<AbstractControl<any, any>>;
|
|
@@ -105,12 +104,17 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = un
|
|
|
105
104
|
readonly inputValueString$: Observable<string>;
|
|
106
105
|
readonly searchResultsState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
107
106
|
private readonly _singleValueSyncSubscription;
|
|
108
|
-
readonly searchContext:
|
|
107
|
+
readonly searchContext: import("@dereekb/rxjs").MutableLoadingStateContext<unknown, LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>, import("@dereekb/rxjs").LoadingContextEvent & LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
109
108
|
readonly searchResults$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
109
|
+
readonly isLoadingSearchResults$: Observable<boolean>;
|
|
110
110
|
readonly _formControlValue$: Observable<T | T[]>;
|
|
111
111
|
readonly values$: Observable<T[]>;
|
|
112
112
|
readonly displayValuesState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
113
113
|
readonly displayValues$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
114
|
+
readonly inputValueSignal: import("@angular/core").Signal<string | undefined>;
|
|
115
|
+
readonly searchResultsSignal: import("@angular/core").Signal<ConfiguredSearchableValueFieldDisplayValue<T, M>[] | undefined>;
|
|
116
|
+
readonly displayValuesSignal: import("@angular/core").Signal<ConfiguredSearchableValueFieldDisplayValue<T, M>[] | undefined>;
|
|
117
|
+
readonly isLoadingSearchResultsSignal: import("@angular/core").Signal<boolean | undefined>;
|
|
114
118
|
get name(): string;
|
|
115
119
|
get label(): Maybe<string>;
|
|
116
120
|
get readonly(): Maybe<boolean>;
|
|
@@ -119,6 +123,7 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = un
|
|
|
119
123
|
get asArrayValue(): boolean;
|
|
120
124
|
get pickOnlyOne(): boolean;
|
|
121
125
|
get searchOnEmptyText(): boolean;
|
|
126
|
+
get searchInputPlaceholder(): string | '';
|
|
122
127
|
get autocomplete(): string;
|
|
123
128
|
get hashForValue(): SearchableValueFieldHashFn<T, H>;
|
|
124
129
|
get displayForValue(): SearchableValueFieldDisplayFn<T, M>;
|
|
@@ -2,20 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./searchable.chip.field.component";
|
|
3
3
|
import * as i2 from "./searchable.text.field.component";
|
|
4
4
|
import * as i3 from "./searchable.field.autocomplete.item.component";
|
|
5
|
-
import * as i4 from "@
|
|
6
|
-
import * as i5 from "@dereekb/dbx-web";
|
|
7
|
-
import * as i6 from "@angular/forms";
|
|
8
|
-
import * as i7 from "@angular/material/button";
|
|
9
|
-
import * as i8 from "@angular/material/input";
|
|
10
|
-
import * as i9 from "@angular/material/form-field";
|
|
11
|
-
import * as i10 from "@angular/material/autocomplete";
|
|
12
|
-
import * as i11 from "@angular/material/list";
|
|
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 "@ngx-formly/core";
|
|
5
|
+
import * as i4 from "@ngx-formly/core";
|
|
17
6
|
export declare class DbxFormFormlySearchableFieldModule {
|
|
18
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySearchableFieldModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySearchableFieldModule, [typeof i1.DbxSearchableChipFieldComponent, typeof i2.DbxSearchableTextFieldComponent, typeof i3.DbxSearchableFieldAutocompleteItemComponent, typeof i3.DbxDefaultSearchableFieldDisplayComponent
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySearchableFieldModule, never, [typeof i1.DbxSearchableChipFieldComponent, typeof i2.DbxSearchableTextFieldComponent, typeof i3.DbxSearchableFieldAutocompleteItemComponent, typeof i3.DbxDefaultSearchableFieldDisplayComponent, typeof i4.FormlyModule], [typeof i1.DbxSearchableChipFieldComponent, typeof i2.DbxSearchableTextFieldComponent, typeof i3.DbxSearchableFieldAutocompleteItemComponent, typeof i3.DbxDefaultSearchableFieldDisplayComponent]>;
|
|
20
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySearchableFieldModule>;
|
|
21
10
|
}
|
|
@@ -4,23 +4,21 @@ import { AbstractDbxSearchableValueFieldDirective, SearchableValueFieldsFieldPro
|
|
|
4
4
|
import { PrimativeKey } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export interface SearchableTextValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFieldProps<T, M, H> {
|
|
7
|
-
showSelectedValue?: boolean;
|
|
7
|
+
readonly showSelectedValue?: boolean;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* Display component for selecting a single item/value.
|
|
11
11
|
*/
|
|
12
12
|
export declare class DbxSearchableTextFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableTextValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
13
13
|
allowSyncValueToInput: boolean;
|
|
14
|
-
readonly selectedDisplayValue$: import("rxjs").Observable<import("
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
14
|
+
readonly selectedDisplayValue$: import("rxjs").Observable<import("./searchable").ConfiguredSearchableValueFieldDisplayValue<T, M>>;
|
|
15
|
+
readonly selectedDisplayValueSignal: import("@angular/core").Signal<import("./searchable").ConfiguredSearchableValueFieldDisplayValue<T, M> | undefined>;
|
|
16
|
+
readonly hasValueSignal: import("@angular/core").Signal<boolean>;
|
|
17
|
+
readonly showSelectedDisplayValueSignal: import("@angular/core").Signal<boolean>;
|
|
17
18
|
get searchableField(): SearchableTextValueFieldsFieldProps<T, M, H>;
|
|
18
19
|
get showSelectedValue(): boolean;
|
|
19
20
|
get multiSelect(): boolean;
|
|
20
|
-
private _clearInputSub;
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
21
|
selected(event: MatAutocompleteSelectedEvent): void;
|
|
24
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableTextFieldComponent<any, any, any>, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableTextFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableTextFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
26
24
|
}
|
|
@@ -3,22 +3,22 @@ export interface SelectionValue<T, M = unknown> {
|
|
|
3
3
|
/**
|
|
4
4
|
* Value associated with this field.
|
|
5
5
|
*/
|
|
6
|
-
value: T;
|
|
6
|
+
readonly value: T;
|
|
7
7
|
/**
|
|
8
8
|
* Optional metadata on the field.
|
|
9
9
|
*/
|
|
10
|
-
meta?: Maybe<M>;
|
|
10
|
+
readonly meta?: Maybe<M>;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Displayed value.
|
|
14
14
|
*/
|
|
15
15
|
export interface SelectionDisplayValue<T, M = unknown> extends SelectionValue<T, M>, LabelRef {
|
|
16
|
-
sublabel?: string;
|
|
17
|
-
icon?: string;
|
|
16
|
+
readonly sublabel?: string;
|
|
17
|
+
readonly icon?: string;
|
|
18
18
|
/**
|
|
19
19
|
* Whether or not the value is known.
|
|
20
20
|
*/
|
|
21
|
-
isUnknown?: Maybe<boolean>;
|
|
21
|
+
readonly isUnknown?: Maybe<boolean>;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Used to hash the value from the input pickable value.
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
|
|
31
31
|
@mixin theme($theme-config) {
|
|
32
32
|
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-source-select') {
|
|
33
|
-
$color: theming.get-color-config($theme-config);
|
|
34
|
-
$density: theming.get-density-config($theme-config);
|
|
35
|
-
$typography: theming.get-typography-config($theme-config);
|
|
33
|
+
$color: theming.m2-get-color-config($theme-config);
|
|
34
|
+
$density: theming.m2-get-density-config($theme-config);
|
|
35
|
+
$typography: theming.m2-get-typography-config($theme-config);
|
|
36
36
|
|
|
37
37
|
@if $color !=null {
|
|
38
38
|
@include color($theme-config);
|
|
@@ -60,7 +60,7 @@ export interface SourceSelectOpenFunctionParams {
|
|
|
60
60
|
/**
|
|
61
61
|
* Origin of the button for the SourceSelect
|
|
62
62
|
*/
|
|
63
|
-
origin: ElementRef;
|
|
63
|
+
readonly origin: ElementRef;
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
66
|
* Returns an observable that returns an array of meta values to be added to the selection.
|