@dereekb/dbx-form 7.0.1 → 7.3.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/esm2020/lib/formly/config/validation.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +5 -5
- package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +4 -5
- package/esm2020/lib/formly/field/field.mjs +15 -9
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +5 -5
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +8 -8
- package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +5 -5
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +8 -8
- package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +2 -2
- package/esm2020/lib/formly/field/selection/searchable/text.chip.field.mjs +5 -5
- package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/array/array.field.mjs +3 -3
- package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +5 -5
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +3 -3
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +4 -5
- package/esm2020/lib/formly/field/value/enum/enum.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/hidden.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/phone/phone.field.component.mjs +3 -6
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +4 -5
- package/esm2020/lib/formly/field/value/text/text.address.field.mjs +2 -2
- package/esm2020/lib/formly/field/value/text/text.field.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +4 -4
- package/esm2020/lib/formly/field/wrapper/flex.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/form.wrapper.module.mjs +20 -19
- package/esm2020/lib/formly/field/wrapper/info.wrapper.component.mjs +2 -2
- package/esm2020/lib/formly/field/wrapper/section.wrapper.component.mjs +3 -3
- package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +2 -5
- package/esm2020/lib/formly/field/wrapper/subsection.wrapper.component.mjs +3 -3
- package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +1 -1
- package/esm2020/lib/formly/field/wrapper/wrapper.mjs +24 -33
- package/esm2020/lib/formly/template/login.mjs +2 -2
- package/fesm2015/dereekb-dbx-form.mjs +174 -200
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +180 -192
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/checklist/checklist.item.field.component.d.ts +4 -7
- package/lib/formly/field/checklist/checklist.item.field.d.ts +4 -3
- package/lib/formly/field/field.d.ts +9 -4
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +2 -2
- package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +4 -7
- package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +3 -6
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +4 -4
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +5 -10
- package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +4 -7
- package/lib/formly/field/selection/searchable/text.chip.field.d.ts +5 -6
- package/lib/formly/field/texteditor/texteditor.field.component.d.ts +3 -3
- package/lib/formly/field/value/array/array.field.d.ts +2 -2
- package/lib/formly/field/value/date/datetime.field.component.d.ts +4 -7
- package/lib/formly/field/value/date/datetime.field.d.ts +3 -3
- package/lib/formly/field/value/phone/phone.field.component.d.ts +6 -9
- package/lib/formly/field/value/phone/phone.field.d.ts +3 -3
- package/lib/formly/field/wrapper/expandable.wrapper.delegate.d.ts +3 -7
- package/lib/formly/field/wrapper/flex.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/info.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/section.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/style.wrapper.component.d.ts +1 -5
- package/lib/formly/field/wrapper/subsection.wrapper.component.d.ts +3 -6
- package/lib/formly/field/wrapper/working.wrapper.component.d.ts +1 -4
- package/lib/formly/field/wrapper/wrapper.d.ts +17 -10
- package/lib/formly/formly.context.d.ts +3 -1
- package/lib/formly/formly.context.directive.d.ts +3 -1
- package/lib/formly/formly.form.component.d.ts +3 -1
- package/package.json +5 -5
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit, Type } from '@angular/core';
|
|
2
2
|
import { DbxInjectionComponentConfig, AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
3
3
|
import { ValidationErrors, FormGroup } from '@angular/forms';
|
|
4
|
-
import { FieldType, FieldTypeConfig,
|
|
4
|
+
import { FieldType, FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
5
|
import { ChecklistItemFieldDisplayComponent, ChecklistItemFieldDisplayContentObs } from './checklist.item';
|
|
6
6
|
import { Maybe } from '@dereekb/util';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export interface
|
|
8
|
+
export interface DbxChecklistItemFieldProps<T = unknown> extends FormlyFieldProps {
|
|
9
9
|
/**
|
|
10
10
|
* Observable used to retrieve content to display for the item.
|
|
11
11
|
*/
|
|
@@ -15,10 +15,7 @@ export interface DbxChecklistItemFieldConfig<T = unknown> {
|
|
|
15
15
|
*/
|
|
16
16
|
componentClass?: Type<ChecklistItemFieldDisplayComponent<T>>;
|
|
17
17
|
}
|
|
18
|
-
export
|
|
19
|
-
checklistField: DbxChecklistItemFieldConfig<T>;
|
|
20
|
-
}
|
|
21
|
-
export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldType<ChecklistItemFormlyFieldConfig<T> & FieldTypeConfig> implements OnInit, OnDestroy {
|
|
18
|
+
export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldType<FieldTypeConfig<DbxChecklistItemFieldProps<T>>> implements OnInit, OnDestroy {
|
|
22
19
|
private _displayContent;
|
|
23
20
|
readonly displayContent$: import("rxjs").Observable<import("./checklist.item").ChecklistItemDisplayContent<T>>;
|
|
24
21
|
readonly anchor$: import("rxjs").Observable<Maybe<import("@dereekb/dbx-core").ClickableAnchor>>;
|
|
@@ -28,7 +25,7 @@ export declare class DbxChecklistItemFieldComponent<T = unknown> extends FieldTy
|
|
|
28
25
|
get label(): Maybe<string>;
|
|
29
26
|
get description(): Maybe<string>;
|
|
30
27
|
get required(): Maybe<boolean>;
|
|
31
|
-
get checklistField():
|
|
28
|
+
get checklistField(): DbxChecklistItemFieldProps<T>;
|
|
32
29
|
get errors(): Maybe<ValidationErrors>;
|
|
33
30
|
get componentClass(): Type<ChecklistItemFieldDisplayComponent<T>>;
|
|
34
31
|
ngOnInit(): void;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
1
2
|
import { LabeledFieldConfig } from '../field';
|
|
2
|
-
import {
|
|
3
|
-
export interface ChecklistItemFieldConfig<T = unknown> extends LabeledFieldConfig,
|
|
3
|
+
import { DbxChecklistItemFieldProps } from './checklist.item.field.component';
|
|
4
|
+
export interface ChecklistItemFieldConfig<T = unknown> extends LabeledFieldConfig, DbxChecklistItemFieldProps<T> {
|
|
4
5
|
}
|
|
5
6
|
export declare type ChecklistItemFieldBuilderInput<T = unknown> = Partial<ChecklistItemFieldConfig<T>> & Pick<ChecklistItemFieldConfig<T>, 'key' | 'displayContentObs'>;
|
|
6
|
-
export declare function checklistItemField<T = unknown>(config: ChecklistItemFieldBuilderInput<T>):
|
|
7
|
+
export declare function checklistItemField<T = unknown>(config: ChecklistItemFieldBuilderInput<T>): FormlyFieldConfig<DbxChecklistItemFieldProps<T>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FilterKeyValueTuplesInput, GeneralFilterFromPOJOFunction } from '@dereekb/util';
|
|
2
|
+
import { FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
2
3
|
export interface FieldConfig {
|
|
3
4
|
key: string;
|
|
4
5
|
required?: boolean;
|
|
@@ -32,10 +33,14 @@ export declare type PartialPotentialFieldConfig = Partial<FieldConfig> & Partial
|
|
|
32
33
|
* Validates the configuration on the input field.
|
|
33
34
|
*/
|
|
34
35
|
export declare function formlyField<T extends FormlyFieldConfig = FormlyFieldConfig>(fieldConfig: T): T;
|
|
35
|
-
export declare function
|
|
36
|
-
|
|
36
|
+
export declare function propsForFieldConfig<O extends object = object>(fieldConfig: Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig>, override?: PartialPotentialFieldConfig & O): {
|
|
37
|
+
props: Partial<FormlyFieldProps> & Partial<FieldConfig> & Partial<LabeledFieldConfig> & Partial<AttributesFieldConfig> & Partial<DescriptionFieldConfig> & O;
|
|
37
38
|
};
|
|
38
|
-
export declare
|
|
39
|
+
export declare const partialPotentialFieldConfigKeys: (keyof PartialPotentialFieldConfig)[];
|
|
40
|
+
export declare const partialPotentialFieldConfigKeysFilter: FilterKeyValueTuplesInput<PartialPotentialFieldConfig>;
|
|
41
|
+
export declare const mergePropsValueObjects: import("@dereekb/util").MergeObjectsFunction<PartialPotentialFieldConfig>;
|
|
42
|
+
export declare const filterPartialPotentialFieldConfigValuesFromObject: GeneralFilterFromPOJOFunction<PartialPotentialFieldConfig>;
|
|
43
|
+
export declare function propsValueForFieldConfig<T extends FormlyFieldProps, O extends object = object>(fieldConfig: PartialPotentialFieldConfig, override?: PartialPotentialFieldConfig & O): Partial<T> & O;
|
|
39
44
|
/**
|
|
40
45
|
* Returns configuration for a formlyField that will disable autofill/autocomplete for a field.
|
|
41
46
|
*/
|
|
@@ -3,11 +3,11 @@ import { Maybe } from '@dereekb/util';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { LabeledFieldConfig } from '../../field';
|
|
5
5
|
import { PickableValueFieldDisplayValue } from './pickable';
|
|
6
|
-
import { PickableItemFieldItem,
|
|
6
|
+
import { PickableItemFieldItem, PickableValueFieldsFieldProps } from './pickable.field.directive';
|
|
7
7
|
export { PickableItemFieldItem };
|
|
8
8
|
export declare function filterPickableItemFieldValuesByLabel<T>(filterText: Maybe<string>, values: PickableValueFieldDisplayValue<T>[]): Observable<T[]>;
|
|
9
9
|
export declare function sortPickableItemsByLabel<T>(chips: PickableItemFieldItem<T>[]): PickableItemFieldItem<T>[];
|
|
10
|
-
export interface PickableItemFieldConfig<T = unknown> extends LabeledFieldConfig,
|
|
10
|
+
export interface PickableItemFieldConfig<T = unknown> extends LabeledFieldConfig, PickableValueFieldsFieldProps<T> {
|
|
11
11
|
}
|
|
12
12
|
export declare function pickableItemChipField<T = unknown>(config: PickableItemFieldConfig<T>): FormlyFieldConfig;
|
|
13
13
|
export declare function pickableItemListField<T = unknown>(config: PickableItemFieldConfig<T>): FormlyFieldConfig;
|
|
@@ -4,7 +4,7 @@ import { PrimativeKey, Maybe, ArrayOrValue } from '@dereekb/util';
|
|
|
4
4
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { FormControl, AbstractControl } from '@angular/forms';
|
|
6
6
|
import { MatInput } from '@angular/material/input';
|
|
7
|
-
import { FieldTypeConfig,
|
|
7
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
8
8
|
import { FieldType } from '@ngx-formly/material';
|
|
9
9
|
import { Observable } from 'rxjs';
|
|
10
10
|
import { PickableValueFieldDisplayFn, PickableValueFieldDisplayValue, PickableValueFieldFilterFn, PickableValueFieldHashFn, PickableValueFieldLoadValuesFn, PickableValueFieldValue } from './pickable';
|
|
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare type PickableItemFieldItem<T, M = unknown> = DbxValueListItem<PickableValueFieldDisplayValue<T, M>>;
|
|
17
17
|
export declare type PickableItemFieldItemSortFn<T, M = unknown> = (items: PickableItemFieldItem<T, M>[]) => PickableItemFieldItem<T, M>[];
|
|
18
|
-
export interface
|
|
18
|
+
export interface PickableValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldProps {
|
|
19
19
|
/**
|
|
20
20
|
* Loads all pickable values.
|
|
21
21
|
*/
|
|
@@ -79,9 +79,6 @@ export interface PickableValueFieldsFieldConfig<T, M = unknown, H extends Primat
|
|
|
79
79
|
*/
|
|
80
80
|
changeSelectionModeToViewOnDisabled?: boolean;
|
|
81
81
|
}
|
|
82
|
-
export interface PickableValueFieldsFormlyFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldConfig {
|
|
83
|
-
pickableField: PickableValueFieldsFieldConfig<T, M, H>;
|
|
84
|
-
}
|
|
85
82
|
/**
|
|
86
83
|
* Displayed value with the computed hash.
|
|
87
84
|
*/
|
|
@@ -91,7 +88,7 @@ export interface PickableValueFieldDisplayValueWithHash<T, M = unknown, H extend
|
|
|
91
88
|
/**
|
|
92
89
|
* Used for picking pre-set values using items as the presentation.
|
|
93
90
|
*/
|
|
94
|
-
export declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FieldType<
|
|
91
|
+
export declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FieldType<FieldTypeConfig<PickableValueFieldsFieldProps<T, M, H>>> implements OnInit, OnDestroy {
|
|
95
92
|
filterMatInput: MatInput;
|
|
96
93
|
readonly inputCtrl: FormControl;
|
|
97
94
|
private _formControlObs;
|
|
@@ -129,7 +126,7 @@ export declare class AbstractDbxPickableItemFieldDirective<T, M = unknown, H ext
|
|
|
129
126
|
readonly noItemsAvailable$: Observable<boolean>;
|
|
130
127
|
get readonly(): Maybe<boolean>;
|
|
131
128
|
get isReadonlyOrDisabled(): boolean;
|
|
132
|
-
get pickableField():
|
|
129
|
+
get pickableField(): PickableValueFieldsFieldProps<T, M, H>;
|
|
133
130
|
get multiSelect(): boolean;
|
|
134
131
|
get asArrayValue(): boolean;
|
|
135
132
|
get filterLabel(): Maybe<string>;
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
3
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
4
|
-
import { AbstractDbxSearchableValueFieldDirective,
|
|
4
|
+
import { AbstractDbxSearchableValueFieldDirective, SearchableValueFieldsFieldProps } from './searchable.field.directive';
|
|
5
5
|
import { PrimativeKey } from '@dereekb/util';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare type
|
|
8
|
-
export
|
|
9
|
-
searchableField: SearchableChipValueFieldsFieldConfig<T, M, H>;
|
|
10
|
-
}
|
|
11
|
-
export declare class DbxSearchableChipFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableChipValueFieldsFormlyFieldConfig<T, M, H>> implements OnInit, OnDestroy {
|
|
7
|
+
export declare type SearchableChipValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> = SearchableValueFieldsFieldProps<T, M, H>;
|
|
8
|
+
export declare class DbxSearchableChipFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableChipValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
12
9
|
private _blur;
|
|
13
10
|
private _blurSub;
|
|
14
11
|
readonly separatorKeysCodes: number[];
|
|
@@ -3,8 +3,8 @@ import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
5
5
|
import { SearchableValueFieldDisplayFn, SearchableValueFieldDisplayValue, SearchableValueFieldValue } from './searchable';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
6
|
+
import { SearchableChipValueFieldsFieldProps } from './searchable.chip.field.component';
|
|
7
|
+
import { SearchableTextValueFieldsFieldProps } from './searchable.text.field.component';
|
|
8
8
|
/**
|
|
9
9
|
* Used to create a SearchableValueFieldDisplayFn function that will retrieve the metadata for items that are missing their metadata so they can be displayed properly.
|
|
10
10
|
*
|
|
@@ -17,9 +17,9 @@ export declare function makeMetaFilterSearchableFieldValueDisplayFn<T extends st
|
|
|
17
17
|
}): SearchableValueFieldDisplayFn<T, M>;
|
|
18
18
|
export declare type StringSearchableChipFieldConfig<M = unknown> = Omit<SearchableChipFieldConfig<string, M>, 'allowStringValues'>;
|
|
19
19
|
export declare function searchableStringChipField<M = unknown>(config: StringSearchableChipFieldConfig<M>): FormlyFieldConfig;
|
|
20
|
-
export interface SearchableChipFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig,
|
|
20
|
+
export interface SearchableChipFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, SearchableChipValueFieldsFieldProps<T, M, H> {
|
|
21
21
|
}
|
|
22
22
|
export declare function searchableChipField<T, M = unknown, H extends PrimativeKey = PrimativeKey>(config: SearchableChipFieldConfig<T, M, H>): FormlyFieldConfig;
|
|
23
|
-
export interface SearchableTextFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig,
|
|
23
|
+
export interface SearchableTextFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, SearchableTextValueFieldsFieldProps<T, M, H> {
|
|
24
24
|
}
|
|
25
25
|
export declare function searchableTextField<T, M = unknown, H extends PrimativeKey = PrimativeKey>(config: SearchableTextFieldConfig<T, M, H>): FormlyFieldConfig;
|
|
@@ -3,20 +3,18 @@ import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
|
|
|
3
3
|
import { SubscriptionObject, LoadingState, LoadingStateContextInstance } from '@dereekb/rxjs';
|
|
4
4
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { AbstractControl, FormControl, ValidatorFn } from '@angular/forms';
|
|
6
|
-
import { FieldTypeConfig,
|
|
6
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
7
7
|
import { FieldType } from '@ngx-formly/material';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import { SearchableValueFieldHashFn, SearchableValueFieldStringSearchFn, SearchableValueFieldDisplayFn, SearchableValueFieldDisplayValue, SearchableValueFieldValue, SearchableValueFieldAnchorFn, ConfiguredSearchableValueFieldDisplayValue } from './searchable';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export interface
|
|
11
|
+
export interface StringValueFieldsFieldProps extends FormlyFieldProps {
|
|
12
12
|
/**
|
|
13
13
|
* Custom input validators.
|
|
14
14
|
*/
|
|
15
15
|
textInputValidator?: ValidatorFn | ValidatorFn[];
|
|
16
16
|
}
|
|
17
|
-
export interface
|
|
18
|
-
}
|
|
19
|
-
export interface SearchableValueFieldsFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends StringValueFieldsFieldConfig {
|
|
17
|
+
export interface SearchableValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldProps, StringValueFieldsFieldProps {
|
|
20
18
|
/**
|
|
21
19
|
* Whether or not to allow string values to be used directly, or if values can only be chosen from searching.
|
|
22
20
|
*/
|
|
@@ -64,15 +62,12 @@ export interface SearchableValueFieldsFieldConfig<T, M = unknown, H extends Prim
|
|
|
64
62
|
*/
|
|
65
63
|
showClearValue?: boolean;
|
|
66
64
|
}
|
|
67
|
-
export interface SearchableValueFieldsFormlyFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldConfig {
|
|
68
|
-
searchableField: SearchableValueFieldsFieldConfig<T, M, H>;
|
|
69
|
-
}
|
|
70
65
|
/**
|
|
71
66
|
* Abstract searchable field that provides a feature for searching for values, and for displaying values using Observables.
|
|
72
67
|
*
|
|
73
68
|
* Display values are cached for performance.
|
|
74
69
|
*/
|
|
75
|
-
export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey, C extends
|
|
70
|
+
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 {
|
|
76
71
|
readonly cdRef: ChangeDetectorRef;
|
|
77
72
|
/**
|
|
78
73
|
* Whether or not to set/get values as an array.
|
|
@@ -100,7 +95,7 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = un
|
|
|
100
95
|
get name(): string;
|
|
101
96
|
get label(): Maybe<string>;
|
|
102
97
|
get readonly(): Maybe<boolean>;
|
|
103
|
-
get searchableField():
|
|
98
|
+
get searchableField(): SearchableValueFieldsFieldProps<T, M, H>;
|
|
104
99
|
get searchOnEmptyText(): boolean;
|
|
105
100
|
get autocomplete(): string;
|
|
106
101
|
get hashForValue(): SearchableValueFieldHashFn<T, H>;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
3
|
-
import { AbstractDbxSearchableValueFieldDirective,
|
|
3
|
+
import { AbstractDbxSearchableValueFieldDirective, SearchableValueFieldsFieldProps } from './searchable.field.directive';
|
|
4
4
|
import { PrimativeKey } from '@dereekb/util';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export interface
|
|
6
|
+
export interface SearchableTextValueFieldsFieldProps<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFieldProps<T, M, H> {
|
|
7
7
|
showSelectedValue?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export interface SearchableTextValueFieldsFormlyFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFormlyFieldConfig<T, M, H> {
|
|
10
|
-
searchableField: SearchableTextValueFieldsFieldConfig<T, M, H>;
|
|
11
|
-
}
|
|
12
9
|
/**
|
|
13
10
|
* Display component for selecting a single item/value.
|
|
14
11
|
*/
|
|
15
|
-
export declare class DbxSearchableTextFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H,
|
|
12
|
+
export declare class DbxSearchableTextFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableTextValueFieldsFieldProps<T, M, H>> implements OnInit, OnDestroy {
|
|
16
13
|
readonly selectedDisplayValue$: import("rxjs").Observable<import("@dereekb/dbx-form").ConfiguredSearchableValueFieldDisplayValue<T, M>>;
|
|
17
14
|
readonly hasValue$: import("rxjs").Observable<boolean>;
|
|
18
15
|
readonly showSelectedDisplayValue$: import("rxjs").Observable<boolean>;
|
|
19
|
-
get searchableField():
|
|
16
|
+
get searchableField(): SearchableTextValueFieldsFieldProps<T, M, H>;
|
|
20
17
|
get showSelectedValue(): boolean;
|
|
21
18
|
readonly multiSelect = false;
|
|
22
19
|
private _clearInputSub;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
1
|
import { LabeledFieldConfig } from '../../field';
|
|
3
|
-
import {
|
|
4
|
-
export interface ChipTextFieldConfig extends LabeledFieldConfig,
|
|
5
|
-
}
|
|
6
|
-
export interface ChipTextFieldFormlyConfig extends StringValueFieldsFormlyFieldConfig, FormlyFieldConfig {
|
|
2
|
+
import { StringValueFieldsFieldProps } from './searchable.field.directive';
|
|
3
|
+
export interface ChipTextFieldConfig extends LabeledFieldConfig, StringValueFieldsFieldProps {
|
|
7
4
|
caseSensitive?: boolean;
|
|
8
5
|
}
|
|
9
|
-
export declare function chipTextField
|
|
6
|
+
export declare function chipTextField(config: ChipTextFieldConfig): import("@ngx-formly/core").FormlyFieldConfig<import("@ngx-formly/core").FormlyFieldProps & {
|
|
7
|
+
[additionalProperties: string]: any;
|
|
8
|
+
}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { CompactContextStore } from '@dereekb/dbx-web';
|
|
3
3
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
4
|
-
import { FieldTypeConfig,
|
|
4
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
5
5
|
import { FieldType } from '@ngx-formly/material';
|
|
6
6
|
import { Editor } from 'ngx-editor';
|
|
7
7
|
import { Maybe } from '@dereekb/util';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
-
export declare type
|
|
10
|
-
export declare class DbxTextEditorFieldComponent<T extends
|
|
9
|
+
export declare type TextEditorComponentFieldProps = FormlyFieldProps;
|
|
10
|
+
export declare class DbxTextEditorFieldComponent<T extends TextEditorComponentFieldProps = TextEditorComponentFieldProps> extends FieldType<FieldTypeConfig<T>> implements OnInit, OnDestroy {
|
|
11
11
|
readonly compact: CompactContextStore;
|
|
12
12
|
private _editor?;
|
|
13
13
|
private _sub;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
2
|
import { FieldConfig } from '../../field';
|
|
3
|
-
import { DbxFormRepeatArrayConfig } from './array.field.component';
|
|
3
|
+
import { DbxFormRepeatArrayConfig, DbxFormRepeatArrayFormlyConfig } from './array.field.component';
|
|
4
4
|
export interface RepeatArrayFieldConfig extends DbxFormRepeatArrayConfig, FieldConfig {
|
|
5
5
|
label?: string;
|
|
6
6
|
repeatFieldGroup: FormlyFieldConfig[];
|
|
7
7
|
maxLength?: number;
|
|
8
8
|
}
|
|
9
|
-
export declare function repeatArrayField(config: RepeatArrayFieldConfig):
|
|
9
|
+
export declare function repeatArrayField(config: RepeatArrayFieldConfig): DbxFormRepeatArrayFormlyConfig;
|
|
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { AbstractControl, FormControl } from '@angular/forms';
|
|
6
6
|
import { FieldType } from '@ngx-formly/material';
|
|
7
|
-
import { FieldTypeConfig,
|
|
7
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
8
8
|
import { MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare enum DbxDateTimeFieldTimeMode {
|
|
@@ -22,7 +22,7 @@ export declare enum DbxDateTimeFieldTimeMode {
|
|
|
22
22
|
NONE = "none"
|
|
23
23
|
}
|
|
24
24
|
export declare type DateTimePickerConfiguration = Omit<DateTimeMinuteConfig, 'date'>;
|
|
25
|
-
export interface
|
|
25
|
+
export interface DbxDateTimeFieldProps extends FormlyFieldProps {
|
|
26
26
|
/**
|
|
27
27
|
* Whether or not the date is hidden, and automatically uses today/input date.
|
|
28
28
|
*/
|
|
@@ -50,10 +50,7 @@ export interface DbxDateTimeFieldConfig {
|
|
|
50
50
|
*/
|
|
51
51
|
getConfigObs?: () => Observable<DateTimePickerConfiguration>;
|
|
52
52
|
}
|
|
53
|
-
export
|
|
54
|
-
dateTimeField: DbxDateTimeFieldConfig;
|
|
55
|
-
}
|
|
56
|
-
export declare class DbxDateTimeFieldComponent extends FieldType<DateTimeFormlyFieldConfig & FieldTypeConfig> implements OnInit, OnDestroy {
|
|
53
|
+
export declare class DbxDateTimeFieldComponent extends FieldType<FieldTypeConfig<DbxDateTimeFieldProps>> implements OnInit, OnDestroy {
|
|
57
54
|
private readonly cdRef;
|
|
58
55
|
private _sub;
|
|
59
56
|
private _valueSub;
|
|
@@ -74,7 +71,7 @@ export declare class DbxDateTimeFieldComponent extends FieldType<DateTimeFormlyF
|
|
|
74
71
|
readonly timeInputCtrl: FormControl;
|
|
75
72
|
private _config;
|
|
76
73
|
get dateOnly(): boolean;
|
|
77
|
-
get dateTimeField():
|
|
74
|
+
get dateTimeField(): DbxDateTimeFieldProps;
|
|
78
75
|
get timeOnly(): Maybe<boolean>;
|
|
79
76
|
get showDateInput(): boolean;
|
|
80
77
|
get timeMode(): DbxDateTimeFieldTimeMode;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
3
|
import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
4
|
-
import {
|
|
5
|
-
export interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig,
|
|
4
|
+
import { DbxDateTimeFieldProps, DateTimePickerConfiguration } from './datetime.field.component';
|
|
5
|
+
export interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxDateTimeFieldProps {
|
|
6
6
|
}
|
|
7
7
|
export declare type TimeFieldConfig = Omit<DateTimeFieldConfig, 'showDate'>;
|
|
8
8
|
export declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DateTimePickerConfiguration>;
|
|
@@ -10,4 +10,4 @@ export declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DateTi
|
|
|
10
10
|
* Same as DateTime field but with the Date input hidden by default.
|
|
11
11
|
*/
|
|
12
12
|
export declare function timeOnlyField(config?: Partial<TimeFieldConfig>): FormlyFieldConfig;
|
|
13
|
-
export declare function dateTimeField(config?: Partial<DateTimeFieldConfig>): FormlyFieldConfig
|
|
13
|
+
export declare function dateTimeField(config?: Partial<DateTimeFieldConfig>): FormlyFieldConfig<DbxDateTimeFieldProps>;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { FieldType } from '@ngx-formly/material';
|
|
2
|
-
import { FieldTypeConfig,
|
|
2
|
+
import { FieldTypeConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export interface
|
|
5
|
-
preferredCountries?: string[]
|
|
6
|
-
onlyCountries?: string[]
|
|
7
|
-
}
|
|
8
|
-
export interface InternationalPhoneFormlyFieldConfig extends FormlyFieldConfig {
|
|
9
|
-
phoneField: DbxInternationalPhoneFieldConfig;
|
|
5
|
+
export interface InternationalPhoneFormlyFieldProps extends FormlyFieldProps {
|
|
6
|
+
preferredCountries?: Maybe<string[]>;
|
|
7
|
+
onlyCountries?: Maybe<string[]>;
|
|
10
8
|
}
|
|
11
9
|
export declare const DEFAULT_PREFERRED_COUNTRIES: string[];
|
|
12
|
-
export declare class DbxPhoneFieldComponent extends FieldType<
|
|
13
|
-
get phoneField(): DbxInternationalPhoneFieldConfig;
|
|
10
|
+
export declare class DbxPhoneFieldComponent extends FieldType<FieldTypeConfig<InternationalPhoneFormlyFieldProps>> {
|
|
14
11
|
get preferredCountries(): string[];
|
|
15
12
|
get onlyCountries(): string[];
|
|
16
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxPhoneFieldComponent, never>;
|
|
@@ -2,11 +2,11 @@ import { DbxFormSectionConfig } from '../../wrapper/section.wrapper.component';
|
|
|
2
2
|
import { TextFieldConfig } from '../text/text.field';
|
|
3
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { LabeledFieldConfig } from '../../field';
|
|
5
|
-
import {
|
|
5
|
+
import { InternationalPhoneFormlyFieldProps } from './phone.field.component';
|
|
6
6
|
import { RepeatArrayFieldConfig } from '../array/array.field';
|
|
7
|
-
export interface InternationalPhoneFieldConfig extends LabeledFieldConfig,
|
|
7
|
+
export interface InternationalPhoneFieldConfig extends LabeledFieldConfig, InternationalPhoneFormlyFieldProps {
|
|
8
8
|
}
|
|
9
|
-
export declare function phoneField(config?: Partial<InternationalPhoneFieldConfig>): FormlyFieldConfig
|
|
9
|
+
export declare function phoneField(config?: Partial<InternationalPhoneFieldConfig>): FormlyFieldConfig<InternationalPhoneFormlyFieldProps>;
|
|
10
10
|
export interface WrappedPhoneAndLabelFieldConfig {
|
|
11
11
|
phoneField?: Partial<InternationalPhoneFieldConfig>;
|
|
12
12
|
labelField?: TextFieldConfig;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { FormlyFieldConfig } from '@ngx-formly/material/form-field';
|
|
2
1
|
import { Maybe } from '@dereekb/util';
|
|
3
|
-
import { FieldWrapper,
|
|
2
|
+
import { FieldWrapper, FormlyFieldProps, FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
3
|
import { BehaviorSubject } from 'rxjs';
|
|
5
4
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
6
5
|
import { AbstractControl } from '@angular/forms';
|
|
@@ -12,14 +11,11 @@ export interface AbstractFormExpandableSectionConfig<T extends object = object>
|
|
|
12
11
|
*/
|
|
13
12
|
hasValueFn?: (value: T) => boolean;
|
|
14
13
|
}
|
|
15
|
-
export interface
|
|
14
|
+
export interface FormExpandableSectionWrapperFieldProps<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends Pick<FormlyFieldProps, 'label'> {
|
|
16
15
|
expandWrapper?: S;
|
|
17
16
|
}
|
|
18
|
-
export interface FormExpandableSectionFormlyConfig<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends FormlyFieldConfig {
|
|
19
|
-
templateOptions?: FormExpandableSectionWrapperTemplateOptions<T, S> & FormlyTemplateOptions;
|
|
20
|
-
}
|
|
21
17
|
export declare const DEFAULT_HAS_VALUE_FN: (x: object) => boolean;
|
|
22
|
-
export declare class AbstractFormExpandableSectionWrapperDirective<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends FieldWrapper<
|
|
18
|
+
export declare class AbstractFormExpandableSectionWrapperDirective<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends FieldWrapper<FormlyFieldConfig<FormExpandableSectionWrapperFieldProps<T, S>>> implements OnInit, OnDestroy {
|
|
23
19
|
protected _formControlObs: BehaviorSubject<Maybe<AbstractControl>>;
|
|
24
20
|
readonly formControl$: import("rxjs").Observable<AbstractControl>;
|
|
25
21
|
protected _toggleOpen: BehaviorSubject<Maybe<boolean>>;
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import { ScreenMediaWidthType } from '@dereekb/dbx-web';
|
|
2
2
|
import { Maybe } from '@dereekb/util';
|
|
3
|
-
import { FieldWrapper, FormlyFieldConfig
|
|
3
|
+
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface DbxFlexWrapperConfig {
|
|
6
6
|
breakpoint?: ScreenMediaWidthType;
|
|
7
7
|
relative?: boolean;
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface DbxFlexWrapperWrapperProps {
|
|
10
10
|
flexWrapper?: DbxFlexWrapperConfig;
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
templateOptions?: DbxFlexWrapperWrapperTemplateOptions;
|
|
14
|
-
}
|
|
15
|
-
export declare class DbxFormFlexWrapperComponent extends FieldWrapper<DbxFlexWrapperWrapperConfig> {
|
|
12
|
+
export declare class DbxFormFlexWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFlexWrapperWrapperProps>> {
|
|
16
13
|
get flexWrapper(): Maybe<DbxFlexWrapperConfig>;
|
|
17
14
|
get breakpoint(): ScreenMediaWidthType | undefined;
|
|
18
15
|
get relative(): boolean;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import { FieldWrapper, FormlyFieldConfig,
|
|
1
|
+
import { FieldWrapper, FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export interface DbxFormInfoConfig {
|
|
4
4
|
onInfoClick: () => void;
|
|
5
5
|
}
|
|
6
|
-
export interface
|
|
6
|
+
export interface DbxFormInfoWrapperProps extends FormlyFieldProps {
|
|
7
7
|
infoWrapper: DbxFormInfoConfig;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
10
|
-
templateOptions?: DbxFormInfoWrapperTemplateOptions;
|
|
11
|
-
}
|
|
12
|
-
export declare class DbxFormInfoWrapperComponent extends FieldWrapper<DbxFormInfoWrapperConfig> {
|
|
9
|
+
export declare class DbxFormInfoWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormInfoWrapperProps>> {
|
|
13
10
|
get infoWrapper(): DbxFormInfoConfig;
|
|
14
11
|
onInfoClick(): void;
|
|
15
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormInfoWrapperComponent, never>;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { Maybe } from '@dereekb/util';
|
|
2
|
-
import {
|
|
2
|
+
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface DbxFormSectionConfig {
|
|
5
5
|
header?: string;
|
|
6
6
|
hint?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface DbxFormSectionWrapperProps {
|
|
9
9
|
sectionWrapper?: DbxFormSectionConfig;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
templateOptions?: DbxFormSectionWrapperTemplateOptions;
|
|
13
|
-
}
|
|
14
|
-
export declare class DbxFormSectionWrapperComponent extends FieldWrapper<FormSectionFormlyConfig & FieldTypeConfig> {
|
|
11
|
+
export declare class DbxFormSectionWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormSectionWrapperProps>> {
|
|
15
12
|
get header(): Maybe<string>;
|
|
16
13
|
get hint(): Maybe<string>;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSectionWrapperComponent, never>;
|
|
@@ -7,13 +7,9 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export interface DbxFormStyleWrapperConfig {
|
|
8
8
|
style: ObservableOrValue<string>;
|
|
9
9
|
}
|
|
10
|
-
export
|
|
11
|
-
styleWrapper: DbxFormStyleWrapperConfig;
|
|
12
|
-
}
|
|
13
|
-
export declare class DbxFormStyleWrapperComponent extends FieldWrapper<DbxFormStyleWrapperFormlyConfig> implements OnInit, OnDestroy {
|
|
10
|
+
export declare class DbxFormStyleWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormStyleWrapperConfig>> implements OnInit, OnDestroy {
|
|
14
11
|
private _style;
|
|
15
12
|
readonly style$: Observable<Maybe<string>>;
|
|
16
|
-
get styleWrapper(): DbxFormStyleWrapperConfig;
|
|
17
13
|
get styleGetter(): ObservableOrValue<string>;
|
|
18
14
|
ngOnInit(): void;
|
|
19
15
|
ngOnDestroy(): void;
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import { Maybe } from '@dereekb/util';
|
|
2
|
-
import { FieldTypeConfig, FieldWrapper
|
|
2
|
+
import { FieldTypeConfig, FieldWrapper } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export interface DbxFormSubsectionConfig {
|
|
5
5
|
header?: string;
|
|
6
6
|
hint?: string;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface DbxFormSubsectionWrapperProps {
|
|
9
9
|
subsectionWrapper?: DbxFormSubsectionConfig;
|
|
10
10
|
}
|
|
11
|
-
export
|
|
12
|
-
templateOptions?: DbxFormSubsectionWrapperTemplateOptions;
|
|
13
|
-
}
|
|
14
|
-
export declare class DbxFormSubsectionWrapperComponent extends FieldWrapper<DbxFormSubsectionFormlyConfig & FieldTypeConfig> {
|
|
11
|
+
export declare class DbxFormSubsectionWrapperComponent extends FieldWrapper<FieldTypeConfig<DbxFormSubsectionWrapperProps>> {
|
|
15
12
|
get header(): Maybe<string>;
|
|
16
13
|
get hint(): Maybe<string>;
|
|
17
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSubsectionWrapperComponent, never>;
|
|
@@ -6,15 +6,12 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* No configurable value for now.
|
|
7
7
|
*/
|
|
8
8
|
export declare type DbxFormWorkingWrapperConfig = object;
|
|
9
|
-
export interface DbxFormWorkingWrapperFormlyConfig extends FormlyFieldConfig {
|
|
10
|
-
styleWrapper: DbxFormWorkingWrapperConfig;
|
|
11
|
-
}
|
|
12
9
|
/**
|
|
13
10
|
* Adds a loading bar to help signify asynchronos work is occuring.
|
|
14
11
|
*
|
|
15
12
|
* By default shows loading during asynchronous validation of a field (FormControl status is "PENDING")
|
|
16
13
|
*/
|
|
17
|
-
export declare class DbxFormWorkingWrapperComponent extends FieldWrapper<
|
|
14
|
+
export declare class DbxFormWorkingWrapperComponent extends FieldWrapper<FormlyFieldConfig<DbxFormWorkingWrapperConfig>> implements OnInit, OnDestroy {
|
|
18
15
|
readonly sub: SubscriptionObject;
|
|
19
16
|
readonly workingContext: SimpleLoadingContext;
|
|
20
17
|
ngOnInit(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DbxFormStyleWrapperConfig } from './style.wrapper.component';
|
|
2
|
-
import { DbxFlexWrapperConfig } from './flex.wrapper.component';
|
|
2
|
+
import { DbxFlexWrapperConfig, DbxFlexWrapperWrapperProps } from './flex.wrapper.component';
|
|
3
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
4
4
|
import { DbxFormToggleWrapperConfig } from './toggle.wrapper.component';
|
|
5
5
|
import { DbxFormSectionConfig } from './section.wrapper.component';
|
|
@@ -8,6 +8,7 @@ import { DbxFormInfoConfig } from './info.wrapper.component';
|
|
|
8
8
|
import { DbxFormExpandWrapperConfig } from './expandable.wrapper.component';
|
|
9
9
|
import { DbxFlexSize } from '@dereekb/dbx-web';
|
|
10
10
|
import { DbxFormWorkingWrapperConfig } from './working.wrapper.component';
|
|
11
|
+
export declare const AUTO_TOUCH_WRAPPER_KEY = "autotouch";
|
|
11
12
|
export declare const EXPANDABLE_WRAPPER_KEY = "expandable";
|
|
12
13
|
export declare const TOGGLE_WRAPPER_KEY = "toggle";
|
|
13
14
|
export declare const SECTION_WRAPPER_KEY = "section";
|
|
@@ -16,14 +17,20 @@ export declare const INFO_WRAPPER_KEY = "info";
|
|
|
16
17
|
export declare const FLEX_WRAPPER_KEY = "flex";
|
|
17
18
|
export declare const STYLE_WRAPPER_KEY = "style";
|
|
18
19
|
export declare const WORKING_WRAPPER_KEY = "working";
|
|
19
|
-
export declare
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare function
|
|
25
|
-
export declare function
|
|
26
|
-
export declare function
|
|
20
|
+
export declare type WrapperFormlyFieldConfig<P, C extends FormlyFieldConfig> = FormlyFieldConfig<P> & {
|
|
21
|
+
wrappers: string[];
|
|
22
|
+
props: P;
|
|
23
|
+
fieldGroup: [C];
|
|
24
|
+
};
|
|
25
|
+
export declare function addWrapperToFormlyFieldConfig<C extends FormlyFieldConfig, P extends object>(fieldConfig: C, wrapperKey: string, wrapperProps: P): WrapperFormlyFieldConfig<P, C>;
|
|
26
|
+
export declare function autoTouchWrapper<T extends object, C extends FormlyFieldConfig>(fieldConfig: C, autoTouchWrapper?: DbxFormExpandWrapperConfig<T>): WrapperFormlyFieldConfig<DbxFormExpandWrapperConfig<T>, C>;
|
|
27
|
+
export declare function expandWrapper<T extends object, C extends FormlyFieldConfig>(fieldConfig: C, expandWrapper?: DbxFormExpandWrapperConfig<T>): WrapperFormlyFieldConfig<DbxFormExpandWrapperConfig<T>, C>;
|
|
28
|
+
export declare function toggleWrapper<C extends FormlyFieldConfig>(fieldConfig: C, toggleWrapper?: DbxFormToggleWrapperConfig): WrapperFormlyFieldConfig<DbxFormToggleWrapperConfig<object>, C>;
|
|
29
|
+
export declare function sectionWrapper<C extends FormlyFieldConfig>(fieldConfig: C, sectionWrapper?: DbxFormSectionConfig): WrapperFormlyFieldConfig<DbxFormSectionConfig, C>;
|
|
30
|
+
export declare function subsectionWrapper<C extends FormlyFieldConfig>(fieldConfig: C, subsectionWrapper?: DbxFormSubsectionConfig): WrapperFormlyFieldConfig<DbxFormSubsectionConfig, C>;
|
|
31
|
+
export declare function infoWrapper<C extends FormlyFieldConfig>(fieldConfig: C, infoWrapper: DbxFormInfoConfig): WrapperFormlyFieldConfig<DbxFormInfoConfig, C>;
|
|
32
|
+
export declare function styleWrapper<C extends FormlyFieldConfig>(fieldConfig: C, styleWrapper: DbxFormStyleWrapperConfig): WrapperFormlyFieldConfig<DbxFormStyleWrapperConfig, C>;
|
|
33
|
+
export declare function workingWrapper<C extends FormlyFieldConfig>(fieldConfig: C, workingWrapper?: DbxFormWorkingWrapperConfig): WrapperFormlyFieldConfig<object, C>;
|
|
27
34
|
export interface DbxFlexLayoutWrapperGroupFieldConfig {
|
|
28
35
|
field: FormlyFieldConfig;
|
|
29
36
|
/**
|
|
@@ -34,4 +41,4 @@ export interface DbxFlexLayoutWrapperGroupFieldConfig {
|
|
|
34
41
|
export interface DbxFlexLayoutWrapperGroupFieldConfigDefaults extends DbxFlexWrapperConfig, Omit<DbxFlexLayoutWrapperGroupFieldConfig, 'field'> {
|
|
35
42
|
}
|
|
36
43
|
export declare function checkIsFieldFlexLayoutGroupFieldConfig(input: FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig): input is DbxFlexLayoutWrapperGroupFieldConfig;
|
|
37
|
-
export declare function flexLayoutWrapper(fieldConfigs: (FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig)[], { relative, breakpoint, size: defaultSize }?: DbxFlexLayoutWrapperGroupFieldConfigDefaults): FormlyFieldConfig
|
|
44
|
+
export declare function flexLayoutWrapper(fieldConfigs: (FormlyFieldConfig | DbxFlexLayoutWrapperGroupFieldConfig)[], { relative, breakpoint, size: defaultSize }?: DbxFlexLayoutWrapperGroupFieldConfigDefaults): FormlyFieldConfig<DbxFlexWrapperWrapperProps>;
|