@dereekb/dbx-form 4.1.0 → 5.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.
Files changed (101) hide show
  1. package/LICENSE +21 -0
  2. package/esm2020/lib/form/action/form.action.directive.mjs +4 -4
  3. package/esm2020/lib/form/form.mjs +4 -4
  4. package/esm2020/lib/form/io/form.changes.directive.mjs +1 -1
  5. package/esm2020/lib/form/io/form.input.directive.mjs +2 -2
  6. package/esm2020/lib/form/io/form.loading.directive.mjs +1 -1
  7. package/esm2020/lib/formly/config/validation.mjs +1 -1
  8. package/esm2020/lib/formly/field/checklist/checklist.field.mjs +5 -5
  9. package/esm2020/lib/formly/field/checklist/checklist.item.field.component.mjs +6 -8
  10. package/esm2020/lib/formly/field/checklist/checklist.item.field.content.default.component.mjs +1 -1
  11. package/esm2020/lib/formly/field/checklist/checklist.item.field.mjs +1 -1
  12. package/esm2020/lib/formly/field/checklist/checklist.item.mjs +1 -1
  13. package/esm2020/lib/formly/field/component/component.field.component.mjs +1 -1
  14. package/esm2020/lib/formly/field/component/component.field.mjs +1 -1
  15. package/esm2020/lib/formly/field/field.mjs +1 -1
  16. package/esm2020/lib/formly/field/selection/pickable/pickable.field.directive.mjs +9 -9
  17. package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +1 -1
  18. package/esm2020/lib/formly/field/selection/pickable/pickable.list.field.component.mjs +4 -4
  19. package/esm2020/lib/formly/field/selection/pickable/pickable.mjs +1 -1
  20. package/esm2020/lib/formly/field/selection/searchable/searchable.chip.field.component.mjs +1 -1
  21. package/esm2020/lib/formly/field/selection/searchable/searchable.field.directive.mjs +6 -6
  22. package/esm2020/lib/formly/field/selection/searchable/searchable.field.mjs +2 -3
  23. package/esm2020/lib/formly/field/selection/searchable/searchable.mjs +1 -1
  24. package/esm2020/lib/formly/field/selection/searchable/searchable.text.field.component.mjs +2 -3
  25. package/esm2020/lib/formly/field/selection/selection.mjs +1 -1
  26. package/esm2020/lib/formly/field/texteditor/texteditor.field.component.mjs +3 -3
  27. package/esm2020/lib/formly/field/value/array/array.field.component.mjs +2 -2
  28. package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +9 -9
  29. package/esm2020/lib/formly/field/value/date/datetime.field.mjs +1 -1
  30. package/esm2020/lib/formly/field/value/enum/enum.field.mjs +1 -1
  31. package/esm2020/lib/formly/field/value/hidden.field.mjs +1 -1
  32. package/esm2020/lib/formly/field/value/phone/phone.field.mjs +2 -3
  33. package/esm2020/lib/formly/field/value/text/text.address.field.mjs +2 -1
  34. package/esm2020/lib/formly/field/wrapper/autotouch.wrapper.component.mjs +2 -2
  35. package/esm2020/lib/formly/field/wrapper/expandable.wrapper.component.mjs +1 -1
  36. package/esm2020/lib/formly/field/wrapper/expandable.wrapper.delegate.mjs +1 -1
  37. package/esm2020/lib/formly/field/wrapper/style.wrapper.component.mjs +2 -2
  38. package/esm2020/lib/formly/field/wrapper/toggle.wrapper.component.mjs +1 -1
  39. package/esm2020/lib/formly/field/wrapper/working.wrapper.component.mjs +2 -2
  40. package/esm2020/lib/formly/field/wrapper/wrapper.mjs +1 -1
  41. package/esm2020/lib/formly/formly.context.directive.mjs +4 -4
  42. package/esm2020/lib/formly/formly.context.mjs +4 -4
  43. package/esm2020/lib/formly/formly.directive.mjs +1 -1
  44. package/esm2020/lib/formly/formly.form.component.mjs +5 -5
  45. package/esm2020/lib/formly/template/login.mjs +1 -2
  46. package/esm2020/lib/validator/available.mjs +2 -3
  47. package/esm2020/lib/validator/boolean.mjs +2 -2
  48. package/esm2020/lib/validator/email.mjs +2 -2
  49. package/esm2020/lib/validator/field.mjs +1 -1
  50. package/esm2020/lib/validator/number.mjs +20 -16
  51. package/fesm2015/dereekb-dbx-form.mjs +105 -105
  52. package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
  53. package/fesm2020/dereekb-dbx-form.mjs +108 -105
  54. package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
  55. package/lib/form/action/form.action.directive.d.ts +4 -4
  56. package/lib/form/form.d.ts +4 -4
  57. package/lib/form/io/form.changes.directive.d.ts +3 -3
  58. package/lib/form/io/form.input.directive.d.ts +3 -3
  59. package/lib/form/io/form.loading.directive.d.ts +3 -3
  60. package/lib/formly/config/validation.d.ts +4 -4
  61. package/lib/formly/field/checklist/checklist.field.d.ts +3 -3
  62. package/lib/formly/field/checklist/checklist.item.d.ts +3 -3
  63. package/lib/formly/field/checklist/checklist.item.field.component.d.ts +7 -9
  64. package/lib/formly/field/checklist/checklist.item.field.content.default.component.d.ts +4 -4
  65. package/lib/formly/field/checklist/checklist.item.field.d.ts +3 -3
  66. package/lib/formly/field/component/component.field.component.d.ts +3 -4
  67. package/lib/formly/field/component/component.field.d.ts +2 -3
  68. package/lib/formly/field/field.d.ts +3 -3
  69. package/lib/formly/field/selection/pickable/pickable.d.ts +7 -9
  70. package/lib/formly/field/selection/pickable/pickable.field.d.ts +3 -3
  71. package/lib/formly/field/selection/pickable/pickable.field.directive.d.ts +39 -40
  72. package/lib/formly/field/selection/pickable/pickable.list.field.component.d.ts +2 -2
  73. package/lib/formly/field/selection/searchable/searchable.chip.field.component.d.ts +8 -8
  74. package/lib/formly/field/selection/searchable/searchable.d.ts +9 -8
  75. package/lib/formly/field/selection/searchable/searchable.field.autocomplete.item.component.d.ts +1 -1
  76. package/lib/formly/field/selection/searchable/searchable.field.d.ts +9 -9
  77. package/lib/formly/field/selection/searchable/searchable.field.directive.d.ts +25 -25
  78. package/lib/formly/field/selection/searchable/searchable.text.field.component.d.ts +12 -9
  79. package/lib/formly/field/selection/selection.d.ts +4 -4
  80. package/lib/formly/field/texteditor/texteditor.field.component.d.ts +1 -2
  81. package/lib/formly/field/value/array/array.field.component.d.ts +1 -1
  82. package/lib/formly/field/value/date/datetime.field.component.d.ts +2 -3
  83. package/lib/formly/field/value/date/datetime.field.d.ts +1 -2
  84. package/lib/formly/field/value/enum/enum.field.d.ts +1 -1
  85. package/lib/formly/field/value/hidden.field.d.ts +1 -2
  86. package/lib/formly/field/value/text/text.address.field.d.ts +1 -2
  87. package/lib/formly/field/wrapper/expandable.wrapper.component.d.ts +4 -4
  88. package/lib/formly/field/wrapper/expandable.wrapper.delegate.d.ts +11 -11
  89. package/lib/formly/field/wrapper/toggle.wrapper.component.d.ts +4 -4
  90. package/lib/formly/field/wrapper/working.wrapper.component.d.ts +4 -2
  91. package/lib/formly/field/wrapper/wrapper.d.ts +2 -2
  92. package/lib/formly/formly.context.d.ts +4 -5
  93. package/lib/formly/formly.context.directive.d.ts +1 -1
  94. package/lib/formly/formly.directive.d.ts +1 -1
  95. package/lib/formly/formly.form.component.d.ts +2 -2
  96. package/lib/formly/template/login.d.ts +1 -2
  97. package/lib/validator/boolean.d.ts +1 -1
  98. package/lib/validator/email.d.ts +1 -1
  99. package/lib/validator/field.d.ts +4 -4
  100. package/lib/validator/number.d.ts +8 -1
  101. package/package.json +4 -3
@@ -1,3 +1,4 @@
1
+ import { PrimativeKey } from '@dereekb/util';
1
2
  import { FormlyFieldConfig } from '@ngx-formly/core';
2
3
  import { Observable } from 'rxjs';
3
4
  import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
@@ -10,16 +11,15 @@ import { SearchableTextValueFieldsFieldConfig } from './searchable.text.field.co
10
11
  * @param param0
11
12
  * @returns
12
13
  */
13
- export declare function makeMetaFilterSearchableFieldValueDisplayFn<T = string | number, M = any>({ loadMetaForValues, makeDisplayForValues }: {
14
+ export declare function makeMetaFilterSearchableFieldValueDisplayFn<T extends string | number = string | number, M = unknown>({ loadMetaForValues, makeDisplayForValues }: {
14
15
  loadMetaForValues: (values: SearchableValueFieldValue<T, M>[]) => Observable<SearchableValueFieldValue<T, M>[]>;
15
16
  makeDisplayForValues: (values: SearchableValueFieldValue<T, M>[]) => Observable<SearchableValueFieldDisplayValue<T, M>[]>;
16
- }): SearchableValueFieldDisplayFn<T>;
17
- export interface StringSearchableChipFieldConfig extends Omit<SearchableChipFieldConfig<string>, 'allowStringValues'> {
17
+ }): SearchableValueFieldDisplayFn<T, M>;
18
+ export declare type StringSearchableChipFieldConfig<M = unknown> = Omit<SearchableChipFieldConfig<string, M>, 'allowStringValues'>;
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, SearchableChipValueFieldsFieldConfig<T, M, H> {
18
21
  }
19
- export declare function searchableStringChipField(config: StringSearchableChipFieldConfig): FormlyFieldConfig;
20
- export interface SearchableChipFieldConfig<T = any> extends LabeledFieldConfig, DescriptionFieldConfig, SearchableChipValueFieldsFieldConfig<T> {
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, SearchableTextValueFieldsFieldConfig<T, M, H> {
21
24
  }
22
- export declare function searchableChipField<T>(config: SearchableChipFieldConfig<T>): FormlyFieldConfig;
23
- export interface SearchableTextFieldConfig<T = any> extends LabeledFieldConfig, DescriptionFieldConfig, SearchableTextValueFieldsFieldConfig<T> {
24
- }
25
- export declare function searchableTextField<T>(config: SearchableTextFieldConfig<T>): FormlyFieldConfig;
25
+ export declare function searchableTextField<T, M = unknown, H extends PrimativeKey = PrimativeKey>(config: SearchableTextFieldConfig<T, M, H>): FormlyFieldConfig;
@@ -1,3 +1,4 @@
1
+ import { ArrayOrValue, Maybe, PrimativeKey } from '@dereekb/util';
1
2
  import { DbxInjectionComponentConfig } from '@dereekb/dbx-core';
2
3
  import { SubscriptionObject, LoadingState, LoadingStateContextInstance } from '@dereekb/rxjs';
3
4
  import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
@@ -6,7 +7,6 @@ import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
6
7
  import { FieldType } from '@ngx-formly/material';
7
8
  import { Observable } from 'rxjs';
8
9
  import { SearchableValueFieldHashFn, SearchableValueFieldStringSearchFn, SearchableValueFieldDisplayFn, SearchableValueFieldDisplayValue, SearchableValueFieldValue, SearchableValueFieldAnchorFn, ConfiguredSearchableValueFieldDisplayValue } from './searchable';
9
- import { Maybe } from '@dereekb/util';
10
10
  import * as i0 from "@angular/core";
11
11
  export interface StringValueFieldsFieldConfig {
12
12
  /**
@@ -16,7 +16,7 @@ export interface StringValueFieldsFieldConfig {
16
16
  }
17
17
  export interface StringValueFieldsFormlyFieldConfig extends StringValueFieldsFieldConfig, FormlyFieldConfig {
18
18
  }
19
- export interface SearchableValueFieldsFieldConfig<T> extends StringValueFieldsFieldConfig {
19
+ export interface SearchableValueFieldsFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends StringValueFieldsFieldConfig {
20
20
  /**
21
21
  * Whether or not to allow string values to be used directly, or if values can only be chosen from searching.
22
22
  */
@@ -30,11 +30,11 @@ export interface SearchableValueFieldsFieldConfig<T> extends StringValueFieldsFi
30
30
  *
31
31
  * If hashForValue is not provided, the value's value will be used as is.
32
32
  */
33
- hashForValue?: SearchableValueFieldHashFn<T>;
33
+ hashForValue?: SearchableValueFieldHashFn<T, H>;
34
34
  /**
35
35
  * Performs a search.
36
36
  */
37
- search: SearchableValueFieldStringSearchFn<T>;
37
+ search: SearchableValueFieldStringSearchFn<T, M>;
38
38
  /**
39
39
  * Whether or not to allow searches on empty text. Is false by default.
40
40
  */
@@ -46,7 +46,7 @@ export interface SearchableValueFieldsFieldConfig<T> extends StringValueFieldsFi
46
46
  /**
47
47
  * Used for building a display value given the input.
48
48
  */
49
- displayForValue: SearchableValueFieldDisplayFn<T>;
49
+ displayForValue: SearchableValueFieldDisplayFn<T, M>;
50
50
  /**
51
51
  * Whether or not to use the anchor field on value elements.
52
52
  *
@@ -58,21 +58,21 @@ export interface SearchableValueFieldsFieldConfig<T> extends StringValueFieldsFi
58
58
  *
59
59
  * Only used when useAnchor is true.
60
60
  */
61
- anchorForValue?: SearchableValueFieldAnchorFn<T>;
61
+ anchorForValue?: SearchableValueFieldAnchorFn<T, M>;
62
62
  /**
63
63
  * Whether or not to show "Clear" in the autcomplete list.
64
64
  */
65
65
  showClearValue?: boolean;
66
66
  }
67
- export interface SearchableValueFieldsFormlyFieldConfig<T> extends FormlyFieldConfig {
68
- searchableField: SearchableValueFieldsFieldConfig<T>;
67
+ export interface SearchableValueFieldsFormlyFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends FormlyFieldConfig {
68
+ searchableField: SearchableValueFieldsFieldConfig<T, M, H>;
69
69
  }
70
70
  /**
71
71
  * Abstract searchable field that provides a feature for searching for values, and for displaying values using Observables.
72
72
  *
73
73
  * Display values are cached for performance.
74
74
  */
75
- export declare abstract class AbstractDbxSearchableValueFieldDirective<T, C extends SearchableValueFieldsFormlyFieldConfig<T>> extends FieldType<C & FieldTypeConfig> implements OnInit, OnDestroy {
75
+ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, M = unknown, H extends PrimativeKey = PrimativeKey, C extends SearchableValueFieldsFormlyFieldConfig<T, M, H> = SearchableValueFieldsFormlyFieldConfig<T, M, H>> extends FieldType<C & FieldTypeConfig> implements OnInit, OnDestroy {
76
76
  readonly cdRef: ChangeDetectorRef;
77
77
  /**
78
78
  * Whether or not to set/get values as an array.
@@ -89,33 +89,33 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, C exte
89
89
  private _displayHashMap;
90
90
  readonly inputValue$: Observable<string>;
91
91
  readonly inputValueString$: Observable<string>;
92
- readonly searchResultsState$: Observable<LoadingState<any> | LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, any>[]>>;
92
+ readonly searchResultsState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
93
93
  readonly singleValueSyncSubscription: SubscriptionObject;
94
- readonly searchContext: LoadingStateContextInstance<any, LoadingState<any> | LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, any>[]>>;
95
- readonly searchResults$: Observable<ConfiguredSearchableValueFieldDisplayValue<T>[]>;
94
+ readonly searchContext: LoadingStateContextInstance<unknown, LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
95
+ readonly searchResults$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
96
96
  readonly _formControlValue: Observable<T | T[]>;
97
97
  readonly values$: Observable<T[]>;
98
- readonly displayValuesState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T>[]>>;
99
- readonly displayValues$: Observable<ConfiguredSearchableValueFieldDisplayValue<T>[]>;
98
+ readonly displayValuesState$: Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
99
+ readonly displayValues$: Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
100
100
  get name(): string;
101
101
  get label(): Maybe<string>;
102
102
  get readonly(): Maybe<boolean>;
103
- get searchableField(): SearchableValueFieldsFieldConfig<T>;
103
+ get searchableField(): SearchableValueFieldsFieldConfig<T, M, H>;
104
104
  get searchOnEmptyText(): boolean;
105
105
  get autocomplete(): string;
106
- get hashForValue(): SearchableValueFieldHashFn<T>;
107
- get displayForValue(): SearchableValueFieldDisplayFn<T>;
106
+ get hashForValue(): SearchableValueFieldHashFn<T, H>;
107
+ get displayForValue(): SearchableValueFieldDisplayFn<T, M>;
108
108
  get useAnchor(): Maybe<boolean>;
109
- get anchorForValue(): Maybe<SearchableValueFieldAnchorFn<T>>;
109
+ get anchorForValue(): Maybe<SearchableValueFieldAnchorFn<T, M>>;
110
110
  get display(): Maybe<Partial<DbxInjectionComponentConfig>>;
111
- get search(): SearchableValueFieldStringSearchFn<T>;
111
+ get search(): SearchableValueFieldStringSearchFn<T, M>;
112
112
  get values(): T[];
113
113
  get allowStringValues(): boolean;
114
114
  get convertStringValue(): Maybe<(text: string) => T>;
115
115
  get showClearValue(): boolean;
116
- loadDisplayValuesForValues(values: T[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T>[]>>;
117
- loadDisplayValuesForFieldValues(values: SearchableValueFieldValue<T>[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T>[]>>;
118
- getDisplayValuesForFieldValues(values: SearchableValueFieldValue<T>[]): Observable<ConfiguredSearchableValueFieldDisplayValue<T>[]>;
116
+ loadDisplayValuesForValues(values: T[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
117
+ loadDisplayValuesForFieldValues(values: SearchableValueFieldValue<T, M>[]): Observable<LoadingState<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>>;
118
+ getDisplayValuesForFieldValues(values: SearchableValueFieldValue<T, M>[]): Observable<ConfiguredSearchableValueFieldDisplayValue<T, M>[]>;
119
119
  constructor(cdRef: ChangeDetectorRef);
120
120
  ngOnInit(): void;
121
121
  ngOnDestroy(): void;
@@ -133,8 +133,8 @@ export declare abstract class AbstractDbxSearchableValueFieldDirective<T, C exte
133
133
  removeValue(value: T): void;
134
134
  clearValues(): void;
135
135
  setValues(values: T[]): void;
136
- protected _getValueOnFormControl(valueOnFormControl: any): T[];
136
+ protected _getValueOnFormControl(valueOnFormControl: ArrayOrValue<T>): T[];
137
137
  protected _setValueOnFormControl(values: T[]): void;
138
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSearchableValueFieldDirective<any, any>, never>;
139
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSearchableValueFieldDirective<any, any>, never, never, {}, {}, never>;
138
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxSearchableValueFieldDirective<any, any, any, any>, never>;
139
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxSearchableValueFieldDirective<any, any, any, any>, never, never, {}, {}, never>;
140
140
  }
@@ -1,25 +1,28 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
1
3
  import { AbstractDbxSearchableValueFieldDirective, SearchableValueFieldsFieldConfig, SearchableValueFieldsFormlyFieldConfig } from './searchable.field.directive';
4
+ import { PrimativeKey } from '@dereekb/util';
2
5
  import * as i0 from "@angular/core";
3
- export interface SearchableTextValueFieldsFieldConfig<T> extends SearchableValueFieldsFieldConfig<T> {
6
+ export interface SearchableTextValueFieldsFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFieldConfig<T, M, H> {
4
7
  showSelectedValue?: boolean;
5
8
  }
6
- export interface SearchableTextValueFieldsFormlyFieldConfig<T> extends SearchableValueFieldsFormlyFieldConfig<T> {
7
- searchableField: SearchableTextValueFieldsFieldConfig<T>;
9
+ export interface SearchableTextValueFieldsFormlyFieldConfig<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends SearchableValueFieldsFormlyFieldConfig<T, M, H> {
10
+ searchableField: SearchableTextValueFieldsFieldConfig<T, M, H>;
8
11
  }
9
12
  /**
10
13
  * Display component for selecting a single item/value.
11
14
  */
12
- export declare class DbxSearchableTextFieldComponent<T> extends AbstractDbxSearchableValueFieldDirective<T, SearchableTextValueFieldsFormlyFieldConfig<T>> {
13
- readonly selectedDisplayValue$: import("rxjs").Observable<import("@dereekb/dbx-form").ConfiguredSearchableValueFieldDisplayValue<T, any>>;
15
+ export declare class DbxSearchableTextFieldComponent<T, M = unknown, H extends PrimativeKey = PrimativeKey> extends AbstractDbxSearchableValueFieldDirective<T, M, H, SearchableTextValueFieldsFormlyFieldConfig<T, M, H>> implements OnInit, OnDestroy {
16
+ readonly selectedDisplayValue$: import("rxjs").Observable<import("@dereekb/dbx-form").ConfiguredSearchableValueFieldDisplayValue<T, M>>;
14
17
  readonly hasValue$: import("rxjs").Observable<boolean>;
15
18
  readonly showSelectedDisplayValue$: import("rxjs").Observable<boolean>;
16
- get searchableField(): SearchableTextValueFieldsFieldConfig<T>;
19
+ get searchableField(): SearchableTextValueFieldsFieldConfig<T, M, H>;
17
20
  get showSelectedValue(): boolean;
18
21
  readonly multiSelect = false;
19
22
  private _clearInputSub;
20
23
  ngOnInit(): void;
21
24
  ngOnDestroy(): void;
22
- selected(event: any): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableTextFieldComponent<any>, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableTextFieldComponent<any>, "ng-component", never, {}, {}, never, never>;
25
+ selected(event: MatAutocompleteSelectedEvent): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxSearchableTextFieldComponent<any, any, any>, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxSearchableTextFieldComponent<any, any, any>, "ng-component", never, {}, {}, never, never>;
25
28
  }
@@ -1,5 +1,5 @@
1
- import { Maybe } from "@dereekb/util";
2
- export interface SelectionValue<T, M = any> {
1
+ import { PrimativeKey, Maybe } from "@dereekb/util";
2
+ export interface SelectionValue<T, M = unknown> {
3
3
  /**
4
4
  * Value associated with this field.
5
5
  */
@@ -12,7 +12,7 @@ export interface SelectionValue<T, M = any> {
12
12
  /**
13
13
  * Displayed value.
14
14
  */
15
- export interface SelectionDisplayValue<T, M = any> extends SelectionValue<T, M> {
15
+ export interface SelectionDisplayValue<T, M = unknown> extends SelectionValue<T, M> {
16
16
  label: string;
17
17
  sublabel?: string;
18
18
  /**
@@ -23,4 +23,4 @@ export interface SelectionDisplayValue<T, M = any> extends SelectionValue<T, M>
23
23
  /**
24
24
  * Used to hash the value from the input pickable value.
25
25
  */
26
- export declare type SelectionValueHashFn<T> = (value: T) => any;
26
+ export declare type SelectionValueHashFn<T, H extends PrimativeKey = PrimativeKey> = (value: T) => H;
@@ -6,8 +6,7 @@ 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 interface TextEditorComponentFieldConfig extends FormlyFieldConfig {
10
- }
9
+ export declare type TextEditorComponentFieldConfig = FormlyFieldConfig;
11
10
  export declare class DbxTextEditorFieldComponent<T extends TextEditorComponentFieldConfig = TextEditorComponentFieldConfig> extends FieldType<T & FieldTypeConfig> implements OnInit, OnDestroy {
12
11
  readonly compact: CompactContextStore;
13
12
  private _editor?;
@@ -26,7 +26,7 @@ export declare class DbxFormRepeatArrayTypeComponent extends FieldArrayType<DbxF
26
26
  moveUp(index: number): void;
27
27
  moveDown(index: number): void;
28
28
  swapIndexes(currentIndex: number, targetIndex: number): void;
29
- drop(event: CdkDragDrop<any>): void;
29
+ drop(event: CdkDragDrop<unknown>): void;
30
30
  labelForItem(field: FormlyFieldConfig): string;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormRepeatArrayTypeComponent, never>;
32
32
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormRepeatArrayTypeComponent, "ng-component", never, {}, {}, never, never>;
@@ -1,10 +1,10 @@
1
1
  import { LogicalDateStringCode, Maybe, ReadableTimeString } from '@dereekb/util';
2
2
  import { DateTimeMinuteConfig } from '@dereekb/date';
3
+ import { Observable } from 'rxjs';
3
4
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
4
5
  import { AbstractControl, FormControl } from '@angular/forms';
5
6
  import { FieldType } from '@ngx-formly/material';
6
7
  import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
7
- import { Observable } from 'rxjs';
8
8
  import { MatDatepickerInputEvent } from '@angular/material/datepicker';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare enum DbxDateTimeFieldTimeMode {
@@ -21,8 +21,7 @@ export declare enum DbxDateTimeFieldTimeMode {
21
21
  */
22
22
  NONE = "none"
23
23
  }
24
- export interface DateTimePickerConfiguration extends Omit<DateTimeMinuteConfig, 'date'> {
25
- }
24
+ export declare type DateTimePickerConfiguration = Omit<DateTimeMinuteConfig, 'date'>;
26
25
  export interface DbxDateTimeFieldConfig {
27
26
  /**
28
27
  * Whether or not the date is hidden, and automatically uses today/input date.
@@ -4,8 +4,7 @@ import { LabeledFieldConfig, DescriptionFieldConfig } from '../../field';
4
4
  import { DbxDateTimeFieldConfig, DateTimePickerConfiguration } from './datetime.field.component';
5
5
  export interface DateTimeFieldConfig extends LabeledFieldConfig, DescriptionFieldConfig, DbxDateTimeFieldConfig {
6
6
  }
7
- export interface TimeFieldConfig extends Omit<DateTimeFieldConfig, 'showDate'> {
8
- }
7
+ export declare type TimeFieldConfig = Omit<DateTimeFieldConfig, 'showDate'>;
9
8
  export declare const TAKE_NEXT_UPCOMING_TIME_CONFIG_OBS: () => Observable<DateTimePickerConfiguration>;
10
9
  /**
11
10
  * Same as DateTime field but with the Date input hidden by default.
@@ -11,4 +11,4 @@ export interface StaticEnumFieldConfig<T> extends LabeledFieldConfig, Descriptio
11
11
  */
12
12
  options: EnumValueFieldOption<T>[];
13
13
  }
14
- export declare function staticEnumField<T = any>({ key, label, placeholder, description, multiple, required, options }: StaticEnumFieldConfig<T>): FormlyFieldConfig;
14
+ export declare function staticEnumField<T = unknown>({ key, label, placeholder, description, multiple, required, options }: StaticEnumFieldConfig<T>): FormlyFieldConfig;
@@ -1,5 +1,4 @@
1
1
  import { FormlyFieldConfig } from '@ngx-formly/core/lib/core';
2
2
  import { LabeledFieldConfig } from '../field';
3
- export interface HiddenFieldConfig extends Pick<LabeledFieldConfig, 'key' | 'required'> {
4
- }
3
+ export declare type HiddenFieldConfig = Pick<LabeledFieldConfig, 'key' | 'required'>;
5
4
  export declare function hiddenField({ key, required }: HiddenFieldConfig): FormlyFieldConfig;
@@ -2,8 +2,7 @@ import { FormlyFieldConfig } from '@ngx-formly/core';
2
2
  import { FieldConfig } from '../../field';
3
3
  export declare const ADDRESS_LINE_MAX_LENGTH = 100;
4
4
  export declare function addressFormlyFields(): FormlyFieldConfig[];
5
- export interface AddressFieldConfig extends FieldConfig {
6
- }
5
+ export declare type AddressFieldConfig = FieldConfig;
7
6
  export declare function addressField({ key, required }?: Partial<AddressFieldConfig>): FormlyFieldConfig;
8
7
  export interface AddressListFieldConfig extends FieldConfig {
9
8
  maxAddresses?: number;
@@ -1,14 +1,14 @@
1
1
  import { AbstractFormExpandableSectionWrapperDirective, AbstractFormExpandableSectionConfig } from './expandable.wrapper.delegate';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare type DbxFormExpandWrapperButtonType = 'button' | 'text';
4
- export interface DbxFormExpandWrapperConfig<T = any> extends AbstractFormExpandableSectionConfig<T> {
4
+ export interface DbxFormExpandWrapperConfig<T extends object = object> extends AbstractFormExpandableSectionConfig<T> {
5
5
  buttonType?: DbxFormExpandWrapperButtonType;
6
6
  }
7
7
  /**
8
8
  * Section that is expandable by a button until a value is set, or the button is pressed.
9
9
  */
10
- export declare class DbxFormExpandWrapperComponent extends AbstractFormExpandableSectionWrapperDirective<DbxFormExpandWrapperConfig> {
10
+ export declare class DbxFormExpandWrapperComponent<T extends object = object> extends AbstractFormExpandableSectionWrapperDirective<T, DbxFormExpandWrapperConfig<T>> {
11
11
  get buttonType(): DbxFormExpandWrapperButtonType;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExpandWrapperComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent, "ng-component", never, {}, {}, never, never>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormExpandWrapperComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormExpandWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
14
14
  }
@@ -5,32 +5,32 @@ import { BehaviorSubject } from 'rxjs';
5
5
  import { OnDestroy, OnInit } from '@angular/core';
6
6
  import { AbstractControl } from '@angular/forms';
7
7
  import * as i0 from "@angular/core";
8
- export interface AbstractFormExpandableSectionConfig<T = any> {
8
+ export interface AbstractFormExpandableSectionConfig<T extends object = object> {
9
9
  expandLabel?: string;
10
10
  /**
11
11
  * Optional function to use for checking value existence.
12
12
  */
13
13
  hasValueFn?: (value: T) => boolean;
14
14
  }
15
- export interface FormExpandableSectionWrapperTemplateOptions<S extends AbstractFormExpandableSectionConfig> extends FormlyTemplateOptions {
15
+ export interface FormExpandableSectionWrapperTemplateOptions<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends FormlyTemplateOptions {
16
16
  expandWrapper?: S;
17
17
  }
18
- export interface FormExpandableSectionFormlyConfig<S> extends FormlyFieldConfig {
19
- templateOptions?: FormExpandableSectionWrapperTemplateOptions<S> & FormlyTemplateOptions;
18
+ export interface FormExpandableSectionFormlyConfig<T extends object = object, S extends AbstractFormExpandableSectionConfig<T> = AbstractFormExpandableSectionConfig<T>> extends FormlyFieldConfig {
19
+ templateOptions?: FormExpandableSectionWrapperTemplateOptions<T, S> & FormlyTemplateOptions;
20
20
  }
21
- export declare const DEFAULT_HAS_VALUE_FN: (x: Maybe<object>) => boolean;
22
- export declare class AbstractFormExpandableSectionWrapperDirective<S extends AbstractFormExpandableSectionConfig = AbstractFormExpandableSectionConfig> extends FieldWrapper<FormExpandableSectionFormlyConfig<S> & FieldTypeConfig> implements OnInit, OnDestroy {
21
+ 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<FormExpandableSectionFormlyConfig<T, S> & FieldTypeConfig> implements OnInit, OnDestroy {
23
23
  protected _formControlObs: BehaviorSubject<Maybe<AbstractControl>>;
24
24
  readonly formControl$: import("rxjs").Observable<AbstractControl>;
25
25
  protected _toggleOpen: BehaviorSubject<Maybe<boolean>>;
26
- readonly show$: import("rxjs").Observable<any>;
27
- readonly hasValue$: import("rxjs").Observable<any>;
26
+ readonly show$: import("rxjs").Observable<boolean>;
27
+ readonly hasValue$: import("rxjs").Observable<boolean>;
28
28
  get expandableSection(): Maybe<S>;
29
- get hasValueFn(): (value: any) => any;
29
+ get hasValueFn(): (value: T) => boolean;
30
30
  get expandLabel(): Maybe<string>;
31
31
  open(): void;
32
32
  ngOnInit(): void;
33
33
  ngOnDestroy(): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormExpandableSectionWrapperDirective<any>, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormExpandableSectionWrapperDirective<any>, never, never, {}, {}, never>;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbstractFormExpandableSectionWrapperDirective<any, any>, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractFormExpandableSectionWrapperDirective<any, any>, never, never, {}, {}, never>;
36
36
  }
@@ -2,15 +2,15 @@ import { Maybe } from '@dereekb/util';
2
2
  import { Observable } from 'rxjs';
3
3
  import { AbstractFormExpandableSectionConfig, AbstractFormExpandableSectionWrapperDirective } from './expandable.wrapper.delegate';
4
4
  import * as i0 from "@angular/core";
5
- export interface DbxFormToggleWrapperConfig<T = any> extends AbstractFormExpandableSectionConfig<T> {
5
+ export interface DbxFormToggleWrapperConfig<T extends object = object> extends AbstractFormExpandableSectionConfig<T> {
6
6
  toggleLabelObs?: (open: Maybe<boolean>) => Observable<string>;
7
7
  }
8
8
  /**
9
9
  * Section that is expandable by a button until a value is set, or the button is pressed.
10
10
  */
11
- export declare class DbxFormToggleWrapperComponent extends AbstractFormExpandableSectionWrapperDirective<DbxFormToggleWrapperConfig> {
11
+ export declare class DbxFormToggleWrapperComponent<T extends object = object> extends AbstractFormExpandableSectionWrapperDirective<T, DbxFormToggleWrapperConfig> {
12
12
  readonly slideLabel$: Observable<Maybe<string>>;
13
13
  onToggleChange(): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormToggleWrapperComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent, "ng-component", never, {}, {}, never, never>;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<DbxFormToggleWrapperComponent<any>, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<DbxFormToggleWrapperComponent<any>, "ng-component", never, {}, {}, never, never>;
16
16
  }
@@ -2,8 +2,10 @@ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { SimpleLoadingContext, SubscriptionObject } from '@dereekb/rxjs';
3
3
  import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
4
4
  import * as i0 from "@angular/core";
5
- export interface DbxFormWorkingWrapperConfig {
6
- }
5
+ /**
6
+ * No configurable value for now.
7
+ */
8
+ export declare type DbxFormWorkingWrapperConfig = object;
7
9
  export interface DbxFormWorkingWrapperFormlyConfig extends FormlyFieldConfig {
8
10
  styleWrapper: DbxFormWorkingWrapperConfig;
9
11
  }
@@ -17,13 +17,13 @@ export declare const FLEX_WRAPPER_KEY = "flex";
17
17
  export declare const STYLE_WRAPPER_KEY = "style";
18
18
  export declare const WORKING_WRAPPER_KEY = "working";
19
19
  export declare function addWrapperToFormlyFieldConfig<T extends object>(fieldConfig: FormlyFieldConfig, wrapperKey: string, wrapperTemplateOptionsConfig: T): FormlyFieldConfig;
20
- export declare function expandWrapper(fieldConfig: FormlyFieldConfig, expandWrapper?: DbxFormExpandWrapperConfig): FormlyFieldConfig;
20
+ export declare function expandWrapper<T extends object = object>(fieldConfig: FormlyFieldConfig, expandWrapper?: DbxFormExpandWrapperConfig<T>): FormlyFieldConfig;
21
21
  export declare function toggleWrapper(fieldConfig: FormlyFieldConfig, expandWrapper?: DbxFormToggleWrapperConfig): FormlyFieldConfig;
22
22
  export declare function sectionWrapper(fieldConfig: FormlyFieldConfig, sectionWrapper?: DbxFormSectionConfig): FormlyFieldConfig;
23
23
  export declare function subsectionWrapper(fieldConfig: FormlyFieldConfig, subsectionWrapper?: DbxFormSubsectionConfig): FormlyFieldConfig;
24
24
  export declare function infoWrapper(fieldConfig: FormlyFieldConfig, infoWrapper: DbxFormInfoConfig): FormlyFieldConfig;
25
25
  export declare function styleWrapper(fieldConfig: FormlyFieldConfig, styleWrapper: DbxFormStyleWrapperConfig): FormlyFieldConfig;
26
- export declare function workingWrapper(fieldConfig: FormlyFieldConfig, workingWrapper: DbxFormWorkingWrapperConfig): FormlyFieldConfig;
26
+ export declare function workingWrapper(fieldConfig: FormlyFieldConfig, workingWrapper?: DbxFormWorkingWrapperConfig): FormlyFieldConfig;
27
27
  export interface DbxFlexLayoutWrapperGroupFieldConfig {
28
28
  field: FormlyFieldConfig;
29
29
  /**
@@ -14,20 +14,20 @@ export interface DbxFormlyInitialize<T> {
14
14
  *
15
15
  * This is usually the component or element that contains the form itself.
16
16
  */
17
- export interface DbxFormlyContextDelegate<T = any> extends Omit<DbxMutableForm<T>, 'lockSet'> {
17
+ export interface DbxFormlyContextDelegate<T = unknown> extends Omit<DbxMutableForm<T>, 'lockSet'> {
18
18
  readonly stream$: Observable<DbxFormEvent>;
19
19
  init(initialize: DbxFormlyInitialize<T>): void;
20
20
  }
21
21
  /**
22
22
  * Allows a directive to provide a formly context and form.
23
23
  */
24
- export declare function ProvideFormlyContext(): Provider[];
24
+ export declare function provideFormlyContext(): Provider[];
25
25
  /**
26
26
  * DbxForm Instance that registers a delegate and manages the state of that form/delegate.
27
27
  */
28
- export declare class DbxFormlyContext<T = any> implements DbxForm<T> {
29
- readonly lockSet: LockSet;
28
+ export declare class DbxFormlyContext<T = unknown> implements DbxForm<T> {
30
29
  private static INITIAL_STATE;
30
+ readonly lockSet: LockSet;
31
31
  private _fields;
32
32
  private _initialValue;
33
33
  private _disabled;
@@ -35,7 +35,6 @@ export declare class DbxFormlyContext<T = any> implements DbxForm<T> {
35
35
  readonly fields$: Observable<FormlyFieldConfig[]>;
36
36
  readonly disabled$: Observable<string[]>;
37
37
  readonly stream$: Observable<DbxFormEvent>;
38
- constructor();
39
38
  destroy(): void;
40
39
  setDelegate(delegate?: DbxFormlyContextDelegate<T>): void;
41
40
  clearDelegate(delegate: DbxFormlyContextDelegate<T>): void;
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Provides an DbxFormlyContext and has an input for fields.
8
8
  */
9
- export declare class DbxFormlyFieldsContextDirective<T = any> extends AbstractAsyncFormlyFormDirective<T> implements OnDestroy {
9
+ export declare class DbxFormlyFieldsContextDirective<T = unknown> extends AbstractAsyncFormlyFormDirective<T> implements OnDestroy {
10
10
  private _fields;
11
11
  readonly fields$: import("rxjs").Observable<Maybe<FormlyFieldConfig[]>>;
12
12
  get fields(): Maybe<FormlyFieldConfig[]>;
@@ -45,7 +45,7 @@ export declare abstract class AbstractAsyncFormlyFormDirective<T> extends Abstra
45
45
  static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAsyncFormlyFormDirective<any>, never>;
46
46
  static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAsyncFormlyFormDirective<any>, never, never, {}, {}, never>;
47
47
  }
48
- export declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> {
48
+ export declare abstract class AbstractConfigAsyncFormlyFormDirective<T, C> extends AbstractAsyncFormlyFormDirective<T> implements OnInit, OnDestroy {
49
49
  private readonly _config;
50
50
  readonly config$: Observable<C>;
51
51
  get config(): Maybe<C>;
@@ -15,7 +15,7 @@ export interface DbxFormlyFormState {
15
15
  /**
16
16
  * Used for rending a form from a DbxFormlyContext.
17
17
  */
18
- export declare class DbxFormlyFormComponent<T extends object> extends AbstractSubscriptionDirective implements DbxForm, DbxFormlyContextDelegate<T>, OnInit, OnDestroy {
18
+ export declare class DbxFormlyFormComponent<T> extends AbstractSubscriptionDirective implements DbxForm, DbxFormlyContextDelegate<T>, OnInit, OnDestroy {
19
19
  private readonly context;
20
20
  private _fields;
21
21
  private _events;
@@ -24,7 +24,7 @@ export declare class DbxFormlyFormComponent<T extends object> extends AbstractSu
24
24
  private _forceUpdate;
25
25
  private _disabledSub;
26
26
  form: FormGroup;
27
- model: any;
27
+ model: T;
28
28
  options: FormlyFormOptions;
29
29
  readonly fields$: Observable<FormlyFieldConfig[]>;
30
30
  readonly stream$: Observable<DbxFormEvent>;
@@ -5,8 +5,7 @@ import { Maybe } from '@dereekb/util';
5
5
  /**
6
6
  * Convenience interface for the password parameters configuration for a TextPasswordField.
7
7
  */
8
- export interface TextPasswordFieldPasswordParameters extends Partial<Pick<TextFieldConfig, 'maxLength' | 'minLength' | 'pattern'>> {
9
- }
8
+ export declare type TextPasswordFieldPasswordParameters = Partial<Pick<TextFieldConfig, 'maxLength' | 'minLength' | 'pattern'>>;
10
9
  /**
11
10
  * textPasswordField() configuration.
12
11
  */
@@ -1,2 +1,2 @@
1
1
  import { ValidatorFn } from '@angular/forms';
2
- export declare function IsTruthy(): ValidatorFn;
2
+ export declare function isTruthy(): ValidatorFn;
@@ -1,3 +1,3 @@
1
1
  import { ValidatorFn } from '@angular/forms';
2
2
  export declare const DOMAIN_NAME_REGEX: RegExp;
3
- export declare function IsDomain(): ValidatorFn;
3
+ export declare function isDomain(): ValidatorFn;
@@ -1,17 +1,17 @@
1
1
  import { ValidatorFn } from "@angular/forms";
2
2
  import { KeyValueTupleFilter, IsEqualFunction } from "@dereekb/util";
3
3
  export declare const FIELD_VALUES_ARE_EQUAL_VALIDATION_KEY = "fieldValuesAreEqual";
4
- export interface FieldValuesAreEqualValidatorConfig<T extends object = any> {
4
+ export interface FieldValuesAreEqualValidatorConfig<T extends object = object> {
5
5
  /**
6
6
  * Keys of the value to match on.
7
7
  *
8
8
  * If none are defined, then all fields from the control are matched.
9
9
  */
10
- keysFilter?: string[];
10
+ keysFilter?: (keyof T)[];
11
11
  /**
12
12
  * Full filter to use, if defined.
13
13
  */
14
- valuesFilter?: KeyValueTupleFilter<T, any>;
14
+ valuesFilter?: KeyValueTupleFilter<T>;
15
15
  /**
16
16
  * Optional equivalence comparator.
17
17
  */
@@ -29,4 +29,4 @@ export interface FieldValuesAreEqualValidatorConfig<T extends object = any> {
29
29
  * @param config
30
30
  * @returns
31
31
  */
32
- export declare function fieldValuesAreEqualValidator<T extends object = any>(config?: FieldValuesAreEqualValidatorConfig<T>): ValidatorFn;
32
+ export declare function fieldValuesAreEqualValidator<T extends object = object>(config?: FieldValuesAreEqualValidatorConfig<T>): ValidatorFn;
@@ -1,2 +1,9 @@
1
1
  import { ValidatorFn } from '@angular/forms';
2
- export declare function IsInRange(min?: number, max?: number): ValidatorFn;
2
+ /**
3
+ * Merges the use of the min and max validator.
4
+ *
5
+ * @param min
6
+ * @param max
7
+ * @returns
8
+ */
9
+ export declare function isInRange(min?: number, max?: number): ValidatorFn;
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-form",
3
- "version": "4.1.0",
3
+ "version": "5.0.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^13.0.0",
6
6
  "@angular/core": "^13.0.0",
7
- "@dereekb/dbx-core": "4.1.0",
7
+ "@dereekb/dbx-core": "5.0.0",
8
8
  "@angular/material": "^13.0.0",
9
- "@dereekb/dbx-web": "4.1.0",
9
+ "@dereekb/dbx-web": "5.0.0",
10
10
  "@angular/forms": "^13.0.0",
11
11
  "@ngx-formly/core": "6.0.0-next.9",
12
12
  "@ngx-formly/material": "6.0.0-next.9",
13
+ "change-case": "^4.1.2",
13
14
  "ngx-editor": "^12.1.1",
14
15
  "ngx-mat-intl-tel-input": "git+https://git@github.com/dereekb/ngx-mat-intl-tel-input#dbe3d1144979df12bdc133f92692ad643a2cdecc"
15
16
  },