@rxap/material-form-system 21.0.1 → 22.0.0-dev.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 (55) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/compodoc/changelog.html +6 -0
  3. package/compodoc/dependencies.html +9 -9
  4. package/compodoc/js/search/search_index.js +2 -2
  5. package/compodoc/properties.html +1 -1
  6. package/docs/documentation.json +138 -118
  7. package/docs/html/classes/ChipInputAdapterDirective.html +4 -4
  8. package/docs/html/classes/ChipListIteratorDirective.html +4 -4
  9. package/docs/html/classes/CompareWithDirective.html +3 -3
  10. package/docs/html/classes/ControlErrorDirective.html +4 -4
  11. package/docs/html/classes/ControlErrorsDirective.html +4 -4
  12. package/docs/html/classes/ExtractHideShowMixin.html +2 -2
  13. package/docs/html/classes/FormControlsComponent.html +3 -3
  14. package/docs/html/classes/FormFieldHideShowDirective.html +5 -5
  15. package/docs/html/classes/InputClearButtonDirective.html +2 -2
  16. package/docs/html/classes/RequiredDirective.html +2 -2
  17. package/docs/html/hierarchy.html +1 -1
  18. package/docs/html/index.html +2 -2
  19. package/docs/html/interfaces/ChipListTemplateContext.html +2 -2
  20. package/docs/html/interfaces/ControlErrorDirectiveContext.html +2 -2
  21. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +2 -2
  22. package/docs/html/modules.html +1 -1
  23. package/docs/markdown/README.md +1 -1
  24. package/docs/markdown/classes/ChipInputAdapterDirective.md +5 -5
  25. package/docs/markdown/classes/ChipListIteratorDirective.md +5 -5
  26. package/docs/markdown/classes/CompareWithDirective.md +4 -4
  27. package/docs/markdown/classes/ControlErrorDirective.md +10 -10
  28. package/docs/markdown/classes/ControlErrorsDirective.md +9 -9
  29. package/docs/markdown/classes/ExtractHideShowMixin.md +8 -8
  30. package/docs/markdown/classes/FormControlsComponent.md +14 -14
  31. package/docs/markdown/classes/FormFieldHideShowDirective.md +12 -12
  32. package/docs/markdown/classes/InputClearButtonDirective.md +9 -9
  33. package/docs/markdown/classes/RequiredDirective.md +3 -3
  34. package/docs/markdown/globals.md +2 -2
  35. package/docs/markdown/interfaces/ChipListTemplateContext.md +4 -4
  36. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  37. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  38. package/docs/wiki/Class.ChipInputAdapterDirective.md +4 -4
  39. package/docs/wiki/Class.ChipListIteratorDirective.md +4 -4
  40. package/docs/wiki/Class.CompareWithDirective.md +3 -3
  41. package/docs/wiki/Class.ControlErrorDirective.md +9 -9
  42. package/docs/wiki/Class.ControlErrorsDirective.md +8 -8
  43. package/docs/wiki/Class.ExtractHideShowMixin.md +7 -7
  44. package/docs/wiki/Class.FormControlsComponent.md +13 -13
  45. package/docs/wiki/Class.FormFieldHideShowDirective.md +11 -11
  46. package/docs/wiki/Class.InputClearButtonDirective.md +8 -8
  47. package/docs/wiki/Class.RequiredDirective.md +2 -2
  48. package/docs/wiki/Interface.ChipListTemplateContext.md +3 -3
  49. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  50. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  51. package/docs/wiki/globals.md +1 -1
  52. package/fesm2022/rxap-material-form-system.mjs +811 -571
  53. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  54. package/package.json +27 -27
  55. package/types/rxap-material-form-system.d.ts +164 -148
@@ -1,160 +1,176 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnDestroy, IterableChanges, AfterContentInit, TemplateRef, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
3
- import { MatChipEvent } from '@angular/material/chips';
4
- import { AbstractControl, ValidationErrors } from '@angular/forms';
5
- import { RxapFormControl, FormDefinition } from '@rxap/forms';
6
- import { ControlHideShowOptions, ControlHideShowFunction, ExtractFormDefinitionMixin } from '@rxap/form-system';
7
- import { MatFormFieldControl } from '@angular/material/form-field';
8
-
9
- declare class FormControlsComponent<FormData> implements OnInit {
10
- private readonly formDirective;
11
- private readonly snackBar;
12
- private readonly router;
13
- readonly submitting: i0.Signal<boolean>;
14
- readonly invalid: i0.WritableSignal<boolean>;
15
- readonly navigateAfterSubmit: i0.InputSignal<string[] | undefined>;
16
- readonly close: i0.OutputEmitterRef<void | FormData | FormData[]>;
17
- readonly submitted: i0.OutputEmitterRef<FormData>;
18
- isDevMode: boolean;
19
- /**
20
- * Collection of successful submitted values
21
- * @private
22
- */
23
- private _submitted;
24
- readonly allowResubmit: i0.InputSignalWithTransform<boolean, any>;
25
- ngOnInit(): void;
26
- reset(): void;
27
- cancel(): void;
28
- submit(closeAfterSubmit?: boolean): void;
29
- logCurrentFormState(): void;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsComponent<any>, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<FormControlsComponent<any>, "rxap-form-controls", never, { "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; "isSignal": true; }; "allowResubmit": { "alias": "allowResubmit"; "required": false; "isSignal": true; }; }, { "close": "close"; "submitted": "submitted"; }, never, never, true, never>;
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { AfterContentInit, ChangeDetectorRef, IterableChanges, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from "@angular/core";
6
+ import { MatChipEvent } from "@angular/material/chips";
7
+ import { AbstractControl, ValidationErrors } from "@angular/forms";
8
+ import { FormDefinition, RxapFormControl } from "@rxap/forms";
9
+ import { ControlHideShowFunction, ControlHideShowOptions, ExtractFormDefinitionMixin } from "@rxap/form-system";
10
+ import { MatFormFieldControl } from "@angular/material/form-field";
11
+ export declare class FormControlsComponent<FormData> implements OnInit {
12
+ private readonly formDirective;
13
+ private readonly snackBar;
14
+ private readonly router;
15
+ readonly submitting: import("@angular/core").Signal<boolean>;
16
+ readonly invalid: import("@angular/core").WritableSignal<boolean>;
17
+ readonly navigateAfterSubmit: import("@angular/core").InputSignal<string[] | undefined>;
18
+ readonly close: import("@angular/core").OutputEmitterRef<void | FormData | FormData[]>;
19
+ readonly submitted: import("@angular/core").OutputEmitterRef<FormData>;
20
+ isDevMode: boolean;
21
+ /**
22
+ * Collection of successful submitted values
23
+ * @private
24
+ */
25
+ private _submitted;
26
+ readonly allowResubmit: import("@angular/core").InputSignalWithTransform<boolean, any>;
27
+ ngOnInit(): void;
28
+ reset(): void;
29
+ cancel(): void;
30
+ submit(closeAfterSubmit?: boolean): void;
31
+ logCurrentFormState(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsComponent<any>, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormControlsComponent<any>, "rxap-form-controls", never, {
34
+ "navigateAfterSubmit": {
35
+ "alias": "navigateAfterSubmit";
36
+ "required": false;
37
+ "isSignal": true;
38
+ };
39
+ "allowResubmit": {
40
+ "alias": "allowResubmit";
41
+ "required": false;
42
+ "isSignal": true;
43
+ };
44
+ }, {
45
+ "close": "close";
46
+ "submitted": "submitted";
47
+ }, never, never, true, never>;
32
48
  }
33
-
34
- declare class ChipInputAdapterDirective implements OnDestroy, OnInit {
35
- private readonly matChipInput;
36
- private readonly ngControl;
37
- private _subscription?;
38
- constructor();
39
- ngOnDestroy(): void;
40
- ngOnInit(): void;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<ChipInputAdapterDirective, never>;
42
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChipInputAdapterDirective, "[matChipInputFor][rxapChipInputAdapter]", never, {}, {}, never, never, true, never>;
49
+ export declare class ChipInputAdapterDirective implements OnDestroy, OnInit {
50
+ private readonly matChipInput;
51
+ private readonly ngControl;
52
+ private _subscription?;
53
+ constructor();
54
+ ngOnDestroy(): void;
55
+ ngOnInit(): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipInputAdapterDirective, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ChipInputAdapterDirective, "[matChipInputFor][rxapChipInputAdapter]", never, {}, {}, never, never, true, never>;
43
58
  }
44
-
45
- interface ChipListTemplateContext {
46
- $implicit: string;
47
- onRemoved: (event: MatChipEvent) => void;
59
+ export interface ChipListTemplateContext {
60
+ $implicit: string;
61
+ onRemoved: (event: MatChipEvent) => void;
48
62
  }
49
- declare class ChipListIteratorDirective implements OnInit, OnDestroy {
50
- private readonly template;
51
- private readonly viewContainerRef;
52
- private readonly ngControl;
53
- private readonly differs;
54
- private _subscription?;
55
- private _dirty;
56
- private _differ;
57
- ngOnInit(): void;
58
- ngOnDestroy(): void;
59
- protected applyChanges(changes: IterableChanges<string>): void;
60
- private onRemoved;
61
- private perViewChange;
62
- static ɵfac: i0.ɵɵFactoryDeclaration<ChipListIteratorDirective, never>;
63
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListIteratorDirective, "[rxapChipListIterator]", never, {}, {}, never, never, true, never>;
63
+ export declare class ChipListIteratorDirective implements OnInit, OnDestroy {
64
+ private readonly template;
65
+ private readonly viewContainerRef;
66
+ private readonly ngControl;
67
+ private readonly differs;
68
+ private _subscription?;
69
+ private _dirty;
70
+ private _differ;
71
+ ngOnInit(): void;
72
+ ngOnDestroy(): void;
73
+ protected applyChanges(changes: IterableChanges<string>): void;
74
+ private onRemoved;
75
+ private perViewChange;
76
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipListIteratorDirective, never>;
77
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListIteratorDirective, "[rxapChipListIterator]", never, {}, {}, never, never, true, never>;
64
78
  }
65
-
66
- declare class CompareWithDirective implements OnInit {
67
- private readonly matSelect;
68
- readonly objectPath: i0.InputSignal<string>;
69
- ngOnInit(): void;
70
- private compareWith;
71
- static ɵfac: i0.ɵɵFactoryDeclaration<CompareWithDirective, never>;
72
- static ɵdir: i0.ɵɵDirectiveDeclaration<CompareWithDirective, "mat-select[rxapCompareWith]", never, { "objectPath": { "alias": "rxapCompareWith"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
79
+ export declare class CompareWithDirective implements OnInit {
80
+ private readonly matSelect;
81
+ readonly objectPath: import("@angular/core").InputSignal<string>;
82
+ ngOnInit(): void;
83
+ private compareWith;
84
+ static ɵfac: i0.ɵɵFactoryDeclaration<CompareWithDirective, never>;
85
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CompareWithDirective, "mat-select[rxapCompareWith]", never, {
86
+ "objectPath": {
87
+ "alias": "rxapCompareWith";
88
+ "required": true;
89
+ "isSignal": true;
90
+ };
91
+ }, {}, never, never, true, never>;
73
92
  }
74
-
75
- interface ControlErrorDirectiveContext {
76
- $implicit: any;
77
- control: AbstractControl;
93
+ export interface ControlErrorDirectiveContext {
94
+ $implicit: any;
95
+ control: AbstractControl;
78
96
  }
79
- declare class ControlErrorDirective implements AfterContentInit, OnDestroy {
80
- private readonly formField;
81
- protected readonly template: TemplateRef<ControlErrorDirectiveContext>;
82
- protected readonly viewContainerRef: ViewContainerRef;
83
- protected readonly cdr: ChangeDetectorRef;
84
- readonly key: i0.InputSignal<string>;
85
- private _subscription?;
86
- private _control?;
87
- static ngTemplateContextGuard<T>(dir: ControlErrorDirective, ctx: any): ctx is ControlErrorDirectiveContext;
88
- ngAfterContentInit(): void;
89
- ngOnDestroy(): void;
90
- protected render(errors: ValidationErrors | null): void;
91
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorDirective, never>;
92
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorDirective, "[rxapControlError]", never, { "key": { "alias": "rxapControlErrorKey"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
97
+ export declare class ControlErrorDirective implements AfterContentInit, OnDestroy {
98
+ private readonly formField;
99
+ protected readonly template: TemplateRef<ControlErrorDirectiveContext>;
100
+ protected readonly viewContainerRef: ViewContainerRef;
101
+ protected readonly cdr: ChangeDetectorRef;
102
+ readonly key: import("@angular/core").InputSignal<string>;
103
+ private _subscription?;
104
+ private _control?;
105
+ static ngTemplateContextGuard<T>(dir: ControlErrorDirective, ctx: any): ctx is ControlErrorDirectiveContext;
106
+ ngAfterContentInit(): void;
107
+ ngOnDestroy(): void;
108
+ protected render(errors: ValidationErrors | null): void;
109
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorDirective, never>;
110
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorDirective, "[rxapControlError]", never, {
111
+ "key": {
112
+ "alias": "rxapControlErrorKey";
113
+ "required": true;
114
+ "isSignal": true;
115
+ };
116
+ }, {}, never, never, true, never>;
93
117
  }
94
-
95
- interface ControlErrorsDirectiveContext {
96
- $implicit: ValidationErrors;
97
- control: AbstractControl;
118
+ export interface ControlErrorsDirectiveContext {
119
+ $implicit: ValidationErrors;
120
+ control: AbstractControl;
98
121
  }
99
- declare class ControlErrorsDirective implements AfterContentInit, OnDestroy {
100
- private readonly formField;
101
- protected readonly template: TemplateRef<ControlErrorsDirectiveContext>;
102
- protected readonly viewContainerRef: ViewContainerRef;
103
- protected readonly cdr: ChangeDetectorRef;
104
- private _subscription?;
105
- private _control?;
106
- static ngTemplateContextGuard<T>(dir: ControlErrorsDirective, ctx: any): ctx is ControlErrorsDirectiveContext;
107
- ngAfterContentInit(): void;
108
- ngOnDestroy(): void;
109
- protected render(errors: ValidationErrors | null): void;
110
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorsDirective, never>;
111
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorsDirective, "[rxapControlErrors]", never, {}, {}, never, never, true, never>;
122
+ export declare class ControlErrorsDirective implements AfterContentInit, OnDestroy {
123
+ private readonly formField;
124
+ protected readonly template: TemplateRef<ControlErrorsDirectiveContext>;
125
+ protected readonly viewContainerRef: ViewContainerRef;
126
+ protected readonly cdr: ChangeDetectorRef;
127
+ private _subscription?;
128
+ private _control?;
129
+ static ngTemplateContextGuard<T>(dir: ControlErrorsDirective, ctx: any): ctx is ControlErrorsDirectiveContext;
130
+ ngAfterContentInit(): void;
131
+ ngOnDestroy(): void;
132
+ protected render(errors: ValidationErrors | null): void;
133
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorsDirective, never>;
134
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorsDirective, "[rxapControlErrors]", never, {}, {}, never, never, true, never>;
112
135
  }
113
-
114
- declare class ExtractHideShowMixin {
115
- controlId: string;
116
- control?: RxapFormControl;
117
- formDefinition: FormDefinition;
118
- extractOptions(formDefinition?: FormDefinition, controlId?: string): ControlHideShowOptions;
119
- extractHideFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
120
- extractShowFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
136
+ export declare class ExtractHideShowMixin {
137
+ controlId: string;
138
+ control?: RxapFormControl;
139
+ formDefinition: FormDefinition;
140
+ extractOptions(formDefinition?: FormDefinition, controlId?: string): ControlHideShowOptions;
141
+ extractHideFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
142
+ extractShowFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
121
143
  }
122
- interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {
144
+ export interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {}
145
+ export declare class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {
146
+ private readonly formField;
147
+ private readonly renderer;
148
+ private readonly elementRef;
149
+ controlId: string;
150
+ formDefinition: FormDefinition;
151
+ control: RxapFormControl;
152
+ private subscription;
153
+ ngAfterContentInit(): void;
154
+ ngOnDestroy(): void;
155
+ private hide;
156
+ private show;
157
+ private reset;
158
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldHideShowDirective, never>;
159
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldHideShowDirective, "mat-form-field[rxapHideShow]", never, {}, {}, never, never, true, never>;
123
160
  }
124
- declare class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {
125
- private readonly formField;
126
- private readonly renderer;
127
- private readonly elementRef;
128
- controlId: string;
129
- formDefinition: FormDefinition;
130
- control: RxapFormControl;
131
- private subscription;
132
- ngAfterContentInit(): void;
133
- ngOnDestroy(): void;
134
- private hide;
135
- private show;
136
- private reset;
137
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldHideShowDirective, never>;
138
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldHideShowDirective, "mat-form-field[rxapHideShow]", never, {}, {}, never, never, true, never>;
161
+ export declare class InputClearButtonDirective {
162
+ private formField;
163
+ type: string;
164
+ tabIndex: string;
165
+ get control(): MatFormFieldControl<any>;
166
+ get isDisabled(): boolean | import("@angular/core").Signal<boolean>;
167
+ onClick(): void;
168
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputClearButtonDirective, never>;
169
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputClearButtonDirective, "[rxapInputClearButton]", never, {}, {}, never, never, true, never>;
139
170
  }
140
-
141
- declare class InputClearButtonDirective {
142
- private formField;
143
- type: string;
144
- tabIndex: string;
145
- get control(): MatFormFieldControl<any>;
146
- get isDisabled(): boolean;
147
- onClick(): void;
148
- static ɵfac: i0.ɵɵFactoryDeclaration<InputClearButtonDirective, never>;
149
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputClearButtonDirective, "[rxapInputClearButton]", never, {}, {}, never, never, true, never>;
150
- }
151
-
152
- declare class RequiredDirective implements AfterContentInit {
153
- private readonly formField;
154
- ngAfterContentInit(): void;
155
- static ɵfac: i0.ɵɵFactoryDeclaration<RequiredDirective, never>;
156
- static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredDirective, "[formControlName][rxapRequired],[formControl][rxapRequired]", never, {}, {}, never, never, true, never>;
157
- }
158
-
159
- export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, RequiredDirective };
160
- export type { ChipListTemplateContext, ControlErrorDirectiveContext, ControlErrorsDirectiveContext };
171
+ export declare class RequiredDirective implements AfterContentInit {
172
+ private readonly formField;
173
+ ngAfterContentInit(): void;
174
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequiredDirective, never>;
175
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredDirective, "[formControlName][rxapRequired],[formControl][rxapRequired]", never, {}, {}, never, never, true, never>;
176
+ }