@dereekb/dbx-form 9.21.0 → 9.22.1
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.schedule.selection.range.component.d.ts +4 -4
- package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +0 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.button.component.mjs +1 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +1 -1
- package/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +13 -12
- package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +4 -7
- package/esm2020/lib/formly/field/field.mjs +1 -1
- package/esm2020/lib/formly/field/selection/index.mjs +2 -1
- package/esm2020/lib/formly/field/selection/list/list.field.component.mjs +1 -1
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +5 -4
- package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +5 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +7 -6
- package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +5 -3
- package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
- package/esm2020/lib/formly/field/selection/selection.field.mjs +3 -2
- package/esm2020/lib/formly/field/selection/selection.module.mjs +5 -4
- package/esm2020/lib/formly/field/selection/sourceselect/index.mjs +5 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.component.mjs +316 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.mjs +14 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.field.module.mjs +93 -0
- package/esm2020/lib/formly/field/selection/sourceselect/sourceselect.mjs +2 -0
- package/esm2020/lib/formly/field/texteditor/texteditor.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/array/array.field.component.mjs +12 -10
- package/esm2020/lib/formly/field/value/boolean/boolean.field.mjs +11 -5
- package/esm2020/lib/formly/field/value/date/date.field.module.mjs +5 -1
- package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +11 -10
- package/esm2020/lib/formly/field/value/date/datetime.field.mjs +4 -2
- package/esm2020/lib/formly/field/value/number/number.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/phone/phone.field.mjs +3 -2
- package/esm2020/lib/formly/field/value/text/text.field.mjs +5 -3
- package/esm2020/mapbox/lib/field/latlng/latlng.field.component.mjs +3 -3
- package/esm2020/mapbox/lib/field/zoom/zoom.field.component.mjs +3 -3
- package/fesm2015/dereekb-dbx-form-calendar.mjs +22 -24
- package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form-mapbox.mjs +4 -4
- package/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2015/dereekb-dbx-form.mjs +470 -87
- package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-calendar.mjs +20 -23
- package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form-mapbox.mjs +4 -4
- package/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-form.mjs +476 -59
- package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
- package/lib/formly/_formly.scss +4 -0
- package/lib/formly/field/field.d.ts +4 -0
- package/lib/formly/field/selection/_selection.scss +4 -0
- package/lib/formly/field/selection/index.d.ts +1 -0
- package/lib/formly/field/selection/list/list.field.component.d.ts +1 -1
- package/lib/formly/field/selection/pickable/pickable.field.d.ts +2 -2
- package/lib/formly/field/selection/searchable/_searchable.scss +2 -0
- package/lib/formly/field/selection/searchable/searchable.d.ts +4 -4
- package/lib/formly/field/selection/searchable/searchable.field.d.ts +3 -3
- package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +1 -1
- package/lib/formly/field/selection/selection.field.d.ts +11 -2
- package/lib/formly/field/selection/selection.module.d.ts +2 -1
- package/lib/formly/field/selection/sourceselect/_sourceselect.scss +54 -0
- package/lib/formly/field/selection/sourceselect/index.d.ts +4 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.d.ts +97 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.component.d.ts +92 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.d.ts +7 -0
- package/lib/formly/field/selection/sourceselect/sourceselect.field.module.d.ts +23 -0
- package/lib/formly/field/texteditor/texteditor.field.d.ts +2 -2
- package/lib/formly/field/value/array/_array.scss +6 -2
- package/lib/formly/field/value/boolean/boolean.field.d.ts +3 -3
- package/lib/formly/field/value/date/_date.scss +8 -2
- package/lib/formly/field/value/date/date.field.module.d.ts +12 -11
- package/lib/formly/field/value/date/datetime.field.d.ts +2 -2
- package/lib/formly/field/value/number/number.field.d.ts +2 -2
- package/lib/formly/field/value/text/text.field.d.ts +3 -3
- package/mapbox/esm2020/lib/field/latlng/latlng.field.component.mjs +3 -3
- package/mapbox/esm2020/lib/field/zoom/zoom.field.component.mjs +3 -3
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs +4 -4
- package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs +4 -4
- package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
- package/mapbox/package.json +4 -4
- package/package.json +4 -4
package/lib/formly/_formly.scss
CHANGED
|
@@ -2,6 +2,7 @@ import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
|
|
|
2
2
|
import { FilterKeyValueTuplesInput, GeneralFilterFromPOJOFunction, ArrayOrValue, Maybe, MapFunction } from '@dereekb/util';
|
|
3
3
|
import { FormlyFieldConfig, FormlyFieldProps } from '@ngx-formly/core';
|
|
4
4
|
import { ValidationMessageOption } from '@ngx-formly/core/lib/models';
|
|
5
|
+
import { FormlyFieldProps as MaterialFormlyFormFieldProps } from '@ngx-formly/material/form-field';
|
|
5
6
|
export declare type FormlyValueParser<I = any, O = any> = MapFunction<I, O>;
|
|
6
7
|
export interface FieldConfigParsersRef {
|
|
7
8
|
parsers: FormlyValueParser[];
|
|
@@ -90,6 +91,9 @@ export declare type ValidatorsForFieldConfig = {
|
|
|
90
91
|
};
|
|
91
92
|
};
|
|
92
93
|
export declare function validatorsForFieldConfig(input: ValidatorsForFieldConfigInput): Maybe<ValidatorsForFieldConfig>;
|
|
94
|
+
export interface MaterialFormFieldConfig {
|
|
95
|
+
materialFormField?: Pick<MaterialFormlyFormFieldProps, 'prefix' | 'suffix' | 'hideLabel' | 'hideRequiredMarker' | 'hideFieldUnderline' | 'floatLabel' | 'appearance' | 'color' | 'hintStart' | 'hintEnd'>;
|
|
96
|
+
}
|
|
93
97
|
/**
|
|
94
98
|
* MARK: Compat
|
|
95
99
|
*
|
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
@use './list/list';
|
|
2
2
|
@use './pickable/pickable';
|
|
3
3
|
@use './searchable/searchable';
|
|
4
|
+
@use './sourceselect/sourceselect';
|
|
4
5
|
|
|
5
6
|
@mixin all-selection-core() {
|
|
6
7
|
@include list.core();
|
|
7
8
|
@include pickable.core();
|
|
8
9
|
@include searchable.core();
|
|
10
|
+
@include sourceselect.core();
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
@mixin all-selection-typography($typography-config) {
|
|
12
14
|
@include list.typography($typography-config);
|
|
13
15
|
@include pickable.typography($typography-config);
|
|
14
16
|
@include searchable.typography($typography-config);
|
|
17
|
+
@include sourceselect.typography($typography-config);
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
@mixin all-selection-theme($theme-config) {
|
|
18
21
|
@include list.theme($theme-config);
|
|
19
22
|
@include pickable.theme($theme-config);
|
|
20
23
|
@include searchable.theme($theme-config);
|
|
24
|
+
@include sourceselect.theme($theme-config);
|
|
21
25
|
}
|
|
@@ -9,7 +9,7 @@ import { Observable } from 'rxjs';
|
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export interface DbxItemListFieldProps<T = unknown, C extends AbstractDbxSelectionListWrapperDirective<T> = AbstractDbxSelectionListWrapperDirective<T>, K extends PrimativeKey = PrimativeKey> extends Pick<FormlyFieldProps, 'label' | 'description'> {
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* List to render components from
|
|
13
13
|
*/
|
|
14
14
|
readonly listComponentClass: Observable<Type<C>>;
|
|
15
15
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
2
|
import { Maybe, SearchStringFilterFunction } from '@dereekb/util';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { LabeledFieldConfig } from '../../field';
|
|
4
|
+
import { LabeledFieldConfig, MaterialFormFieldConfig } from '../../field';
|
|
5
5
|
import { PickableValueFieldDisplayValue } from './pickable';
|
|
6
6
|
import { PickableItemFieldItem, PickableValueFieldsFieldProps } from './pickable.field.directive';
|
|
7
7
|
export { PickableItemFieldItem };
|
|
@@ -9,7 +9,7 @@ export declare const filterPickableItemFieldValuesByLabelFilterFunction: SearchS
|
|
|
9
9
|
export declare function filterPickableItemFieldValuesByLabel<T>(filterText: Maybe<string>, values: PickableValueFieldDisplayValue<T>[]): Observable<T[]>;
|
|
10
10
|
export declare const sortPickableItemsByLabelStringFunction: import("@dereekb/util").SortByStringFunction<PickableItemFieldItem<any, unknown>>;
|
|
11
11
|
export declare function sortPickableItemsByLabel<T>(chips: PickableItemFieldItem<T>[]): PickableItemFieldItem<T>[];
|
|
12
|
-
export interface PickableItemFieldConfig<T = unknown, M = unknown> extends LabeledFieldConfig, PickableValueFieldsFieldProps<T, M
|
|
12
|
+
export interface PickableItemFieldConfig<T = unknown, M = unknown> extends LabeledFieldConfig, PickableValueFieldsFieldProps<T, M>, MaterialFormFieldConfig {
|
|
13
13
|
}
|
|
14
14
|
export declare function pickableItemChipField<T = unknown, M = unknown>(config: PickableItemFieldConfig<T, M>): FormlyFieldConfig;
|
|
15
15
|
export declare function pickableItemListField<T = unknown, M = unknown>(config: PickableItemFieldConfig<T, M>): FormlyFieldConfig;
|
|
@@ -24,12 +24,14 @@
|
|
|
24
24
|
|
|
25
25
|
// hide without clearing display, which will prevent the input from being clickable.
|
|
26
26
|
.dbx-searchable-text-field-input {
|
|
27
|
+
margin-top: 0;
|
|
27
28
|
height: 0;
|
|
28
29
|
opacity: 0;
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
.mat-focused .dbx-searchable-text-field-has-value.dbx-searchable-text-field-show-value .dbx-searchable-text-field-input {
|
|
34
|
+
margin-top: 8px;
|
|
33
35
|
opacity: unset;
|
|
34
36
|
height: unset;
|
|
35
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PrimativeKey } from '@dereekb/util';
|
|
1
|
+
import { MapFunction, PrimativeKey } from '@dereekb/util';
|
|
2
2
|
import { DbxInjectionComponentConfig, ClickableAnchor } from '@dereekb/dbx-core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { SelectionDisplayValue, SelectionValue, SelectionValueHashFn } from '../selection';
|
|
@@ -23,7 +23,7 @@ export interface ConfiguredSearchableValueFieldDisplayValue<T, M = unknown> exte
|
|
|
23
23
|
/**
|
|
24
24
|
* SearchableValueField function for searching values.
|
|
25
25
|
*/
|
|
26
|
-
export declare type SearchableValueFieldStringSearchFn<T, M = unknown> =
|
|
26
|
+
export declare type SearchableValueFieldStringSearchFn<T, M = unknown> = MapFunction<string, Observable<SearchableValueFieldValue<T, M>[]>>;
|
|
27
27
|
/**
|
|
28
28
|
* SearchableValueField function that allows the values a chance to go through another observable for unknown changes.
|
|
29
29
|
*
|
|
@@ -31,9 +31,9 @@ export declare type SearchableValueFieldStringSearchFn<T, M = unknown> = (search
|
|
|
31
31
|
*
|
|
32
32
|
* The value itself should not change. All other fields on the value may change, however.
|
|
33
33
|
*/
|
|
34
|
-
export declare type SearchableValueFieldDisplayFn<T, M = unknown> =
|
|
34
|
+
export declare type SearchableValueFieldDisplayFn<T, M = unknown> = MapFunction<SearchableValueFieldValue<T, M>[], Observable<SearchableValueFieldDisplayValue<T, M>[]>>;
|
|
35
35
|
/**
|
|
36
36
|
* SearchableValueField function for setting anchor values on a field value.
|
|
37
37
|
*/
|
|
38
|
-
export declare type SearchableValueFieldAnchorFn<T, M = unknown> =
|
|
38
|
+
export declare type SearchableValueFieldAnchorFn<T, M = unknown> = MapFunction<SearchableValueFieldValue<T, M>, ClickableAnchor>;
|
|
39
39
|
export declare type SearchableValueFieldHashFn<T, H extends PrimativeKey = PrimativeKey> = SelectionValueHashFn<T, H>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PrimativeKey } from '@dereekb/util';
|
|
2
2
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
-
import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
4
|
+
import { LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig } from '../../field';
|
|
5
5
|
import { SearchableValueFieldDisplayFn, SearchableValueFieldDisplayValue, SearchableValueFieldValue } from './searchable';
|
|
6
6
|
import { SearchableChipValueFieldsFieldProps } from './searchable.chip.field.component';
|
|
7
7
|
import { SearchableTextValueFieldsFieldProps } from './searchable.text.field.component';
|
|
@@ -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, SearchableChipValueFieldsFieldProps<T, M, H> {
|
|
20
|
+
export interface SearchableChipFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, 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, SearchableTextValueFieldsFieldProps<T, M, H> {
|
|
23
|
+
export interface SearchableTextFieldConfig<T = unknown, M = unknown, H extends PrimativeKey = PrimativeKey> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, 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;
|
|
@@ -99,7 +99,7 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = un
|
|
|
99
99
|
readonly singleValueSyncSubscription: SubscriptionObject;
|
|
100
100
|
readonly searchContext: LoadingStateContextInstance<unknown, LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
101
101
|
readonly searchResults$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
102
|
-
readonly
|
|
102
|
+
readonly currentFormControlValue$: Observable<T | T[]>;
|
|
103
103
|
readonly values$: Observable<T[]>;
|
|
104
104
|
readonly displayValuesState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
|
|
105
105
|
readonly displayValues$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObservableOrValue } from '@dereekb/rxjs';
|
|
2
2
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
-
import { DescriptionFieldConfig, LabeledFieldConfig } from '../field';
|
|
3
|
+
import { DescriptionFieldConfig, LabeledFieldConfig, MaterialFormFieldConfig } from '../field';
|
|
4
4
|
export interface ValueSelectionOptionWithValue<T> {
|
|
5
5
|
value: T;
|
|
6
6
|
label: string;
|
|
@@ -11,7 +11,7 @@ export interface ValueSelectionOptionClear {
|
|
|
11
11
|
clear: true;
|
|
12
12
|
}
|
|
13
13
|
export declare type ValueSelectionOption<T> = ValueSelectionOptionWithValue<T> | ValueSelectionOptionClear;
|
|
14
|
-
export interface ValueSelectionFieldConfig<T> extends LabeledFieldConfig, DescriptionFieldConfig {
|
|
14
|
+
export interface ValueSelectionFieldConfig<T> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
15
15
|
/**
|
|
16
16
|
* Whether or not to use the native select.
|
|
17
17
|
*
|
|
@@ -22,8 +22,17 @@ export interface ValueSelectionFieldConfig<T> extends LabeledFieldConfig, Descri
|
|
|
22
22
|
* Whether or not to add a clear option to the input values. If using an observable, this
|
|
23
23
|
*/
|
|
24
24
|
addClearOption?: string | boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Values to select from.
|
|
27
|
+
*/
|
|
25
28
|
options: ObservableOrValue<ValueSelectionOption<T>[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Allow selecting multiple values and return an array.
|
|
31
|
+
*/
|
|
26
32
|
multiple?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The select all option configuration.
|
|
35
|
+
*/
|
|
27
36
|
selectAllOption?: true | string;
|
|
28
37
|
}
|
|
29
38
|
export declare function valueSelectionField<T>(config: ValueSelectionFieldConfig<T>): FormlyFieldConfig;
|
|
@@ -3,8 +3,9 @@ import * as i1 from "@angular/common";
|
|
|
3
3
|
import * as i2 from "./list/list.field.module";
|
|
4
4
|
import * as i3 from "./pickable/pickable.field.module";
|
|
5
5
|
import * as i4 from "./searchable/searchable.field.module";
|
|
6
|
+
import * as i5 from "./sourceselect/sourceselect.field.module";
|
|
6
7
|
export declare class DbxFormFormlySelectionModule {
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySelectionModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySelectionModule, never, [typeof i1.CommonModule], [typeof i2.DbxFormFormlyDbxListFieldModule, typeof i3.DbxFormFormlyPickableFieldModule, typeof i4.DbxFormFormlySearchableFieldModule]>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySelectionModule, never, [typeof i1.CommonModule], [typeof i2.DbxFormFormlyDbxListFieldModule, typeof i3.DbxFormFormlyPickableFieldModule, typeof i4.DbxFormFormlySearchableFieldModule, typeof i5.DbxFormFormlySourceSelectModule]>;
|
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySelectionModule>;
|
|
10
11
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use '../../../../style/theming';
|
|
2
|
+
|
|
3
|
+
// MARK: Variables
|
|
4
|
+
|
|
5
|
+
// MARK: Mixin
|
|
6
|
+
@mixin core() {
|
|
7
|
+
.dbx-source-select-field-loading {
|
|
8
|
+
/*
|
|
9
|
+
position: absolute;
|
|
10
|
+
bottom: 4px;
|
|
11
|
+
left: 0;
|
|
12
|
+
right: 0;
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
position: absolute;
|
|
16
|
+
bottom: 0px;
|
|
17
|
+
left: -12px;
|
|
18
|
+
right: -12px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.dbx-source-select-field-content {
|
|
22
|
+
display: flex;
|
|
23
|
+
|
|
24
|
+
.dbx-source-select-field-select {
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.dbx-source-select-field-button {
|
|
28
|
+
margin-top: -16px;
|
|
29
|
+
height: 10px;
|
|
30
|
+
overflow: visible;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@mixin color($theme-config) {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@mixin typography($typography-config) {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@mixin theme($theme-config) {
|
|
42
|
+
@include theming.private-check-duplicate-theme-styles($theme-config, 'dbx-form-field-source-select') {
|
|
43
|
+
$color: theming.get-color-config($theme-config);
|
|
44
|
+
$typography: theming.get-typography-config($theme-config);
|
|
45
|
+
|
|
46
|
+
@if $color !=null {
|
|
47
|
+
@include color($theme-config);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@if $typography !=null {
|
|
51
|
+
@include typography($typography);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { SelectionDisplayValue } from './../selection';
|
|
2
|
+
import { LoadingState } from '@dereekb/rxjs';
|
|
3
|
+
import { Factory, FactoryWithRequiredInput, MapFunction, Maybe, PrimativeKey } from '@dereekb/util';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
export interface SourceSelectValue<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
6
|
+
value: T;
|
|
7
|
+
meta: M;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Group of SourceSelectValues with a label.
|
|
11
|
+
*/
|
|
12
|
+
export interface SourceSelectValueGroup<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
13
|
+
/**
|
|
14
|
+
* Label for this source.
|
|
15
|
+
*/
|
|
16
|
+
readonly label: string;
|
|
17
|
+
/**
|
|
18
|
+
* Values
|
|
19
|
+
*/
|
|
20
|
+
readonly values: SourceSelectValue<T, M>[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Display value configuration for a SourceSelectValue.
|
|
24
|
+
*/
|
|
25
|
+
export declare type SourceSelectDisplayValue<T extends PrimativeKey = PrimativeKey, M = unknown> = Omit<SelectionDisplayValue<T, M>, 'meta'> & Pick<SourceSelectValue<T, M>, 'meta'>;
|
|
26
|
+
/**
|
|
27
|
+
* Display value configuration for a SourceSelectValue.
|
|
28
|
+
*/
|
|
29
|
+
export interface SourceSelectDisplayValueGroup<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
30
|
+
/**
|
|
31
|
+
* Label for this source.
|
|
32
|
+
*/
|
|
33
|
+
readonly label: string;
|
|
34
|
+
/**
|
|
35
|
+
* Values
|
|
36
|
+
*/
|
|
37
|
+
readonly values: SourceSelectDisplayValue<T, M>[];
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Options for a SourceSelect input.
|
|
41
|
+
*/
|
|
42
|
+
export interface SourceSelectOptions<T extends PrimativeKey = PrimativeKey, M = unknown> {
|
|
43
|
+
readonly nonGroupedValues: SourceSelectDisplayValue<T, M>[];
|
|
44
|
+
readonly groupedValues: SourceSelectDisplayValueGroup<T, M>[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns an observable that loads all the display info for the input values.
|
|
48
|
+
*/
|
|
49
|
+
export declare type SourceSelectDisplayFunction<T extends PrimativeKey = PrimativeKey, M = unknown> = MapFunction<SourceSelectValue<T, M>[], Observable<SourceSelectDisplayValue<T, M>[]>>;
|
|
50
|
+
/**
|
|
51
|
+
* Reads the value from the input meta value. Should always return the same value.
|
|
52
|
+
*/
|
|
53
|
+
export declare type SourceSelectMetaValueReader<T extends PrimativeKey = PrimativeKey, M = unknown> = MapFunction<M, T>;
|
|
54
|
+
/**
|
|
55
|
+
* Returns an observable that loads the metadata of the input values.
|
|
56
|
+
*/
|
|
57
|
+
export declare type SourceSelectValueMetaLoader<T extends PrimativeKey = PrimativeKey, M = unknown> = FactoryWithRequiredInput<Observable<M[]>, T[]>;
|
|
58
|
+
/**
|
|
59
|
+
* Returns an observable that returns an array of meta values to be added to the selection.
|
|
60
|
+
*/
|
|
61
|
+
export declare type SourceSelectOpenFunction<M = unknown> = Factory<Observable<SourceSelectOpenSourceResult<M>>>;
|
|
62
|
+
/**
|
|
63
|
+
* Returns an observable that returns an array of meta values to be added to the selection.
|
|
64
|
+
*/
|
|
65
|
+
export interface SourceSelectOpenSourceResult<M = unknown> {
|
|
66
|
+
/**
|
|
67
|
+
* New values to select, if applicable.
|
|
68
|
+
*/
|
|
69
|
+
readonly select?: Maybe<M[]>;
|
|
70
|
+
/**
|
|
71
|
+
* New options to make available.
|
|
72
|
+
*/
|
|
73
|
+
readonly options?: Maybe<M[]>;
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Function used to return an observable for an array of SourceSelectLoadSource values.
|
|
77
|
+
*/
|
|
78
|
+
export declare type SourceSelectLoadSourcesFunction<M = unknown> = Factory<Observable<SourceSelectLoadSource<M>[]>>;
|
|
79
|
+
/**
|
|
80
|
+
* Source that has a label and an observable of meta values.
|
|
81
|
+
*/
|
|
82
|
+
export interface SourceSelectLoadSource<M = unknown> {
|
|
83
|
+
/**
|
|
84
|
+
* Label for this source.
|
|
85
|
+
*/
|
|
86
|
+
readonly label: string;
|
|
87
|
+
/**
|
|
88
|
+
* Metadata loaded from this source.
|
|
89
|
+
*/
|
|
90
|
+
readonly meta: Observable<LoadingState<M[]>>;
|
|
91
|
+
}
|
|
92
|
+
export interface SourceSelectLoadSourceLoadingState<M = unknown> extends LoadingState<M[]> {
|
|
93
|
+
/**
|
|
94
|
+
* Label for this source.
|
|
95
|
+
*/
|
|
96
|
+
readonly label: string;
|
|
97
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { LoadingState, LoadingStateWithMaybeSoValue } from '@dereekb/rxjs';
|
|
2
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { HandleActionWithContext } from '@dereekb/dbx-core';
|
|
5
|
+
import { PrimativeKey } from '@dereekb/util';
|
|
6
|
+
import { FieldType, FormlyFieldProps } from '@ngx-formly/material/form-field';
|
|
7
|
+
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
8
|
+
import { SourceSelectValueMetaLoader, SourceSelectMetaValueReader, SourceSelectOpenFunction, SourceSelectLoadSourcesFunction, SourceSelectDisplayValue, SourceSelectValue, SourceSelectDisplayFunction, SourceSelectDisplayValueGroup, SourceSelectValueGroup, SourceSelectOptions } from './sourceselect';
|
|
9
|
+
import { AbstractControl } from '@angular/forms';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export interface SourceSelectFieldProps<T extends PrimativeKey = PrimativeKey, M = unknown> extends FormlyFieldProps {
|
|
12
|
+
/**
|
|
13
|
+
* Function to open the source and request values.
|
|
14
|
+
*/
|
|
15
|
+
readonly openSource?: SourceSelectOpenFunction<M>;
|
|
16
|
+
/**
|
|
17
|
+
* Loads the sources to display entries from.
|
|
18
|
+
*/
|
|
19
|
+
readonly loadSources?: SourceSelectLoadSourcesFunction<M>;
|
|
20
|
+
/**
|
|
21
|
+
* Reads the value from a meta value.
|
|
22
|
+
*/
|
|
23
|
+
readonly valueReader: SourceSelectMetaValueReader<T, M>;
|
|
24
|
+
/**
|
|
25
|
+
* Loads metadata for the input values.
|
|
26
|
+
*/
|
|
27
|
+
readonly metaLoader: SourceSelectValueMetaLoader<T, M>;
|
|
28
|
+
/**
|
|
29
|
+
* Used for building a display value given the input.
|
|
30
|
+
*/
|
|
31
|
+
readonly displayForValue: SourceSelectDisplayFunction<T, M>;
|
|
32
|
+
/**
|
|
33
|
+
* Select button icon
|
|
34
|
+
*/
|
|
35
|
+
readonly selectButtonIcon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether or not the selection is as an array.
|
|
38
|
+
*/
|
|
39
|
+
readonly multiple?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* (Optional) observable that will trigger the clearing of all cached display values.
|
|
42
|
+
*/
|
|
43
|
+
readonly refreshDisplayValues$?: Observable<unknown>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Component that displays a select view (multi or not)
|
|
47
|
+
*/
|
|
48
|
+
export declare class DbxFormSourceSelectFieldComponent<T extends PrimativeKey = PrimativeKey, M = unknown> extends FieldType<FieldTypeConfig<SourceSelectFieldProps<T, M>>> implements OnInit, OnDestroy {
|
|
49
|
+
private _cacheMetaSub;
|
|
50
|
+
private _clearDisplayHashMapSub;
|
|
51
|
+
private _valueMetaHashMap;
|
|
52
|
+
private _displayHashMap;
|
|
53
|
+
private _formControlObs;
|
|
54
|
+
private _fromOpenSource;
|
|
55
|
+
private _loadSources;
|
|
56
|
+
readonly formControl$: Observable<AbstractControl<T[], T[]>>;
|
|
57
|
+
readonly currentFormControlValue$: Observable<T[]>;
|
|
58
|
+
readonly values$: Observable<T[]>;
|
|
59
|
+
readonly allValuesEverSelected$: Observable<T[]>;
|
|
60
|
+
readonly sourceSelectValuesFromValuesState$: Observable<LoadingState<SourceSelectValue<T, M>[]>>;
|
|
61
|
+
readonly loadSources$: Observable<LoadingState<SourceSelectValueGroup<T, M>[]>>;
|
|
62
|
+
readonly fromOpenSource$: Observable<SourceSelectValueGroup<T, M>>;
|
|
63
|
+
readonly valueGroupsFromSourcesState$: Observable<LoadingStateWithMaybeSoValue<SourceSelectValueGroup<T, M>[]>>;
|
|
64
|
+
readonly allValueGroupsState$: Observable<LoadingState<SourceSelectValueGroup<T, M>[]>>;
|
|
65
|
+
readonly allOptionGroupsState$: Observable<LoadingState<SourceSelectDisplayValueGroup<T, M>[]>>;
|
|
66
|
+
readonly allOptionGroups$: Observable<SourceSelectDisplayValueGroup<T, M>[]>;
|
|
67
|
+
readonly options$: Observable<SourceSelectOptions<T, M>>;
|
|
68
|
+
readonly nonGroupedValues$: Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
69
|
+
readonly groupedOptions$: Observable<SourceSelectDisplayValueGroup<T, M>[]>;
|
|
70
|
+
get sourceSelectField(): SourceSelectFieldProps<T, M>;
|
|
71
|
+
get openSource(): SourceSelectOpenFunction<M> | undefined;
|
|
72
|
+
get showOpenSourceButton(): boolean;
|
|
73
|
+
get loadSources(): SourceSelectLoadSourcesFunction<M> | undefined;
|
|
74
|
+
get valueReader(): SourceSelectMetaValueReader<T, M>;
|
|
75
|
+
get metaLoader(): SourceSelectValueMetaLoader<T, M>;
|
|
76
|
+
get displayForValue(): SourceSelectDisplayFunction<T, M>;
|
|
77
|
+
get selectButtonIcon(): string;
|
|
78
|
+
get multiple(): boolean;
|
|
79
|
+
get refreshDisplayValues$(): Observable<unknown> | undefined;
|
|
80
|
+
loadSourceSelectValueForValues(values: T[]): Observable<LoadingState<SourceSelectValue<T, M>[]>>;
|
|
81
|
+
getSourceSelectValueForValues(values: T[]): Observable<SourceSelectValue<T, M>[]>;
|
|
82
|
+
loadDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<LoadingState<SourceSelectDisplayValue<T, M>[]>>;
|
|
83
|
+
getDisplayValuesForSelectValues(values: SourceSelectValue<T, M>[]): Observable<SourceSelectDisplayValue<T, M>[]>;
|
|
84
|
+
readonly context: import("@dereekb/rxjs").LoadingStateContextInstance<unknown, LoadingState<SourceSelectDisplayValueGroup<T, M>[]>>;
|
|
85
|
+
ngOnInit(): void;
|
|
86
|
+
ngOnDestroy(): void;
|
|
87
|
+
readonly handleSelectOptions: HandleActionWithContext<unknown>;
|
|
88
|
+
private addToOpenSourceMap;
|
|
89
|
+
private addToCurrentValue;
|
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormSourceSelectFieldComponent<any, any>, never>;
|
|
91
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormSourceSelectFieldComponent<any, any>, "ng-component", never, {}, {}, never, never, false>;
|
|
92
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PrimativeKey } from '@dereekb/util';
|
|
2
|
+
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
+
import { LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig } from '../../field';
|
|
4
|
+
import { SourceSelectFieldProps } from './sourceselect.field.component';
|
|
5
|
+
export interface SourceSelectFieldConfig<T extends PrimativeKey = PrimativeKey, M = unknown> extends LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig, SourceSelectFieldProps<T, M> {
|
|
6
|
+
}
|
|
7
|
+
export declare function sourceSelectField<T extends PrimativeKey = PrimativeKey, M = unknown>(config: SourceSelectFieldConfig<T, M>): FormlyFieldConfig;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./sourceselect.field.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "@angular/material/input";
|
|
6
|
+
import * as i5 from "@angular/material/divider";
|
|
7
|
+
import * as i6 from "@angular/material/form-field";
|
|
8
|
+
import * as i7 from "@angular/material/select";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/datepicker";
|
|
11
|
+
import * as i10 from "@angular/material/core";
|
|
12
|
+
import * as i11 from "@angular/material/menu";
|
|
13
|
+
import * as i12 from "@dereekb/dbx-core";
|
|
14
|
+
import * as i13 from "@dereekb/dbx-web";
|
|
15
|
+
import * as i14 from "@angular/material/chips";
|
|
16
|
+
import * as i15 from "@angular/material/icon";
|
|
17
|
+
import * as i16 from "@angular/flex-layout";
|
|
18
|
+
import * as i17 from "@ngx-formly/core";
|
|
19
|
+
export declare class DbxFormFormlySourceSelectModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlySourceSelectModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlySourceSelectModule, [typeof i1.DbxFormSourceSelectFieldComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatInputModule, typeof i5.MatDividerModule, typeof i6.MatFormFieldModule, typeof i7.MatSelectModule, typeof i8.MatButtonModule, typeof i9.MatDatepickerModule, typeof i10.MatNativeDateModule, typeof i11.MatMenuModule, typeof i3.ReactiveFormsModule, typeof i12.DbxDatePipeModule, typeof i13.DbxLoadingModule, typeof i13.DbxButtonModule, typeof i13.DbxActionModule, typeof i14.MatChipsModule, typeof i15.MatIconModule, typeof i16.FlexLayoutModule, typeof i17.FormlyModule], [typeof i1.DbxFormSourceSelectFieldComponent]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlySourceSelectModule>;
|
|
23
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DescriptionFieldConfig } from './../field';
|
|
1
|
+
import { DescriptionFieldConfig, MaterialFormFieldConfig } from './../field';
|
|
2
2
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
3
|
import { LabeledFieldConfig } from '../field';
|
|
4
4
|
import { TextFieldLengthConfig } from '../value/text/text.field';
|
|
5
|
-
export interface TextEditorFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, TextFieldLengthConfig {
|
|
5
|
+
export interface TextEditorFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, TextFieldLengthConfig, MaterialFormFieldConfig {
|
|
6
6
|
}
|
|
7
7
|
export declare function textEditorField(config: TextEditorFieldConfig): FormlyFieldConfig;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
padding: 0;
|
|
32
|
-
margin-bottom:
|
|
33
|
-
|
|
32
|
+
margin-bottom: 4px;
|
|
33
|
+
border-radius: 4px;
|
|
34
34
|
|
|
35
35
|
.dbx-form-repeat-array-field-content {
|
|
36
36
|
display: block;
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
background: $form-repeat-array-field-bg;
|
|
55
55
|
border: 4px solid $form-repeat-array-field-bg;
|
|
56
56
|
}
|
|
57
|
+
|
|
58
|
+
.dbx-form-repeat-array-bar {
|
|
59
|
+
background: none;
|
|
60
|
+
}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
63
|
@mixin typography($typography-config) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
2
|
-
import { LabeledFieldConfig, DefaultValueFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
3
|
-
export interface ToggleFieldConfig extends Omit<LabeledFieldConfig, 'placeholder' | 'autocomplete'>, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig {
|
|
2
|
+
import { LabeledFieldConfig, DefaultValueFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig } from '../../field';
|
|
3
|
+
export interface ToggleFieldConfig extends Omit<LabeledFieldConfig, 'placeholder' | 'autocomplete'>, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function toggleField(config: ToggleFieldConfig): FormlyFieldConfig;
|
|
6
|
-
export interface CheckboxFieldConfig extends LabeledFieldConfig, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig {
|
|
6
|
+
export interface CheckboxFieldConfig extends LabeledFieldConfig, DefaultValueFieldConfig<boolean>, DescriptionFieldConfig, MaterialFormFieldConfig {
|
|
7
7
|
}
|
|
8
8
|
export declare function checkboxField(config: CheckboxFieldConfig): FormlyFieldConfig;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
@use '../../../../style/theming';
|
|
2
2
|
|
|
3
3
|
// MARK: Variables
|
|
4
|
+
$dbx-datetime-button-spacing: 6px;
|
|
5
|
+
$dbx-datetime-date-and-time-spacing: 6px;
|
|
6
|
+
$dbx-datetime-button-width: 40px + ($dbx-datetime-button-spacing * 2); // times 2 for the spacing between the date and time inputs
|
|
7
|
+
$dbx-datetime-row-width: 40px + ($dbx-datetime-button-spacing * 2); // times 2 for the spacing between the date and time inputs
|
|
4
8
|
|
|
5
9
|
// MARK: Mixin
|
|
6
10
|
@mixin core() {
|
|
@@ -8,13 +12,15 @@
|
|
|
8
12
|
width: 100%;
|
|
9
13
|
}
|
|
10
14
|
|
|
11
|
-
$dbx-datetime-button-width: 40px;
|
|
12
|
-
|
|
13
15
|
.dbx-datetime-row {
|
|
14
16
|
.dbx-datetime-row-field {
|
|
15
17
|
width: calc(100% - #{$dbx-datetime-button-width});
|
|
16
18
|
}
|
|
17
19
|
|
|
20
|
+
.dbx-datetime-row-field.dbx-datetime-row-field-full-width {
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
18
24
|
&.dbx-datetime-hint-row {
|
|
19
25
|
margin-top: -6px;
|
|
20
26
|
}
|
|
@@ -5,18 +5,19 @@ import * as i3 from "@angular/forms";
|
|
|
5
5
|
import * as i4 from "@angular/material/input";
|
|
6
6
|
import * as i5 from "@angular/material/divider";
|
|
7
7
|
import * as i6 from "@angular/material/form-field";
|
|
8
|
-
import * as i7 from "@
|
|
9
|
-
import * as i8 from "@angular/material/
|
|
10
|
-
import * as i9 from "@angular/material/
|
|
11
|
-
import * as i10 from "@angular/material/
|
|
12
|
-
import * as i11 from "@
|
|
13
|
-
import * as i12 from "@
|
|
14
|
-
import * as i13 from "@angular/material/
|
|
15
|
-
import * as i14 from "@angular/
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "
|
|
8
|
+
import * as i7 from "@dereekb/dbx-web";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/datepicker";
|
|
11
|
+
import * as i10 from "@angular/material/core";
|
|
12
|
+
import * as i11 from "@angular/material/menu";
|
|
13
|
+
import * as i12 from "@dereekb/dbx-core";
|
|
14
|
+
import * as i13 from "@angular/material/chips";
|
|
15
|
+
import * as i14 from "@angular/material/icon";
|
|
16
|
+
import * as i15 from "@angular/flex-layout";
|
|
17
|
+
import * as i16 from "@ngx-formly/core";
|
|
18
|
+
import * as i17 from "../../wrapper/form.wrapper.module";
|
|
18
19
|
export declare class DbxFormFormlyDateFieldModule {
|
|
19
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormFormlyDateFieldModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDateFieldModule, [typeof i1.DbxDateTimeFieldComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatInputModule, typeof i5.MatDividerModule, typeof i6.MatFormFieldModule, typeof i7.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFormFormlyDateFieldModule, [typeof i1.DbxDateTimeFieldComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatInputModule, typeof i5.MatDividerModule, typeof i6.MatFormFieldModule, typeof i7.DbxButtonModule, typeof i8.MatButtonModule, typeof i9.MatDatepickerModule, typeof i10.MatNativeDateModule, typeof i11.MatMenuModule, typeof i3.ReactiveFormsModule, typeof i12.DbxDatePipeModule, typeof i13.MatChipsModule, typeof i14.MatIconModule, typeof i15.FlexLayoutModule, typeof i16.FormlyModule], [typeof i17.DbxFormFormlyWrapperModule]>;
|
|
21
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFormFormlyDateFieldModule>;
|
|
22
23
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
|
-
import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
|
|
3
|
+
import { LabeledFieldConfig, DescriptionFieldConfig, MaterialFormFieldConfig } from '../../field';
|
|
4
4
|
import { DbxDateTimeFieldProps, DateTimePickerConfiguration } from './datetime.field.component';
|
|
5
|
-
export interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxDateTimeFieldProps {
|
|
5
|
+
export interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxDateTimeFieldProps, MaterialFormFieldConfig {
|
|
6
6
|
}
|
|
7
7
|
export declare type TimeFieldConfig = Omit<DateTimeFieldConfig, 'showDate'>;
|
|
8
8
|
export declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DateTimePickerConfiguration>;
|