@dereekb/dbx-form 11.0.18 → 11.0.20
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/esm2022/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +11 -3
- package/esm2022/lib/formly/field/selection/sourceselect/sourceselect.mjs +1 -1
- package/fesm2022/dereekb-dbx-form.mjs +10 -2
- package/fesm2022/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +14 -2
- package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +8 -7
- package/mapbox/package.json +1 -1
- package/package.json +1 -1
|
@@ -71,11 +71,23 @@ export type SourceSelectOpenFunction<M = unknown> = FactoryWithRequiredInput<Obs
|
|
|
71
71
|
*/
|
|
72
72
|
export interface SourceSelectOpenSourceResult<M = unknown> {
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* The values to set entirely, clearing the current selection.
|
|
75
|
+
*
|
|
76
|
+
* If null/undefined, current values will not be replaced.
|
|
77
|
+
*/
|
|
78
|
+
readonly set?: Maybe<M[]>;
|
|
79
|
+
/**
|
|
80
|
+
* New values to add to the selection, if applicable.
|
|
81
|
+
*
|
|
82
|
+
* If null/undefined, no values will be added to selection.
|
|
83
|
+
*
|
|
84
|
+
* Is ignored if "set" value is provided.
|
|
75
85
|
*/
|
|
76
86
|
readonly select?: Maybe<M[]>;
|
|
77
87
|
/**
|
|
78
|
-
* New options to make available.
|
|
88
|
+
* New options to make available for selection, but are not automatically selected.
|
|
89
|
+
*
|
|
90
|
+
* If null/undefined, no options will be added.
|
|
79
91
|
*/
|
|
80
92
|
readonly options?: Maybe<M[]>;
|
|
81
93
|
}
|
|
@@ -45,13 +45,13 @@ export interface SourceSelectFieldProps<T extends PrimativeKey = PrimativeKey, M
|
|
|
45
45
|
* Component that displays a select view (multi or not)
|
|
46
46
|
*/
|
|
47
47
|
export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey = PrimativeKey, M = unknown> extends FieldType<FieldTypeConfig<SourceSelectFieldProps<T, M>>> implements OnInit, OnDestroy {
|
|
48
|
-
private _cacheMetaSub;
|
|
49
|
-
private _clearDisplayHashMapSub;
|
|
50
|
-
private _valueMetaHashMap;
|
|
51
|
-
private _displayHashMap;
|
|
52
|
-
private _formControlObs;
|
|
53
|
-
private _fromOpenSource;
|
|
54
|
-
private _loadSources;
|
|
48
|
+
private readonly _cacheMetaSub;
|
|
49
|
+
private readonly _clearDisplayHashMapSub;
|
|
50
|
+
private readonly _valueMetaHashMap;
|
|
51
|
+
private readonly _displayHashMap;
|
|
52
|
+
private readonly _formControlObs;
|
|
53
|
+
private readonly _fromOpenSource;
|
|
54
|
+
private readonly _loadSources;
|
|
55
55
|
buttonElement: ElementRef;
|
|
56
56
|
readonly formControl$: Observable<AbstractControl<T[], T[]>>;
|
|
57
57
|
readonly currentFormControlValue$: Observable<T[]>;
|
|
@@ -87,6 +87,7 @@ export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey =
|
|
|
87
87
|
readonly handleSelectOptions: WorkUsingContext<unknown>;
|
|
88
88
|
private addToOpenSourceMap;
|
|
89
89
|
private addToCurrentValue;
|
|
90
|
+
private setCurrentValue;
|
|
90
91
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceSelectFieldComponent<any, any>, never>;
|
|
91
92
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSourceSelectFieldComponent<any, any>, "ng-component", never, {}, {}, never, never, false, never>;
|
|
92
93
|
}
|
package/mapbox/package.json
CHANGED