@rxap/material-form-system 19.0.5-dev.0 → 21.0.1-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 (72) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/compodoc/changelog.html +19 -0
  3. package/compodoc/components/FormControlsComponent.html +69 -67
  4. package/compodoc/dependencies.html +13 -13
  5. package/compodoc/js/search/search_index.js +2 -2
  6. package/compodoc/modules/MaterialFormSystemModule/dependencies.svg +4 -4
  7. package/compodoc/modules/MaterialFormSystemModule.html +4 -4
  8. package/compodoc/properties.html +1 -1
  9. package/docs/documentation.json +217 -217
  10. package/docs/html/classes/ChipInputAdapterDirective.html +4 -4
  11. package/docs/html/classes/ChipListIteratorDirective.html +4 -4
  12. package/docs/html/classes/CompareWithDirective.html +3 -3
  13. package/docs/html/classes/ControlErrorDirective.html +4 -4
  14. package/docs/html/classes/ControlErrorsDirective.html +4 -4
  15. package/docs/html/classes/ExtractHideShowMixin.html +2 -2
  16. package/docs/html/classes/FormControlsComponent.html +3 -3
  17. package/docs/html/classes/FormFieldHideShowDirective.html +5 -5
  18. package/docs/html/classes/InputClearButtonDirective.html +2 -2
  19. package/docs/html/classes/MaterialFormSystemModule.html +2 -2
  20. package/docs/html/classes/RequiredDirective.html +3 -3
  21. package/docs/html/hierarchy.html +1 -1
  22. package/docs/html/index.html +2 -2
  23. package/docs/html/interfaces/ChipListTemplateContext.html +2 -2
  24. package/docs/html/interfaces/ControlErrorDirectiveContext.html +2 -2
  25. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +2 -2
  26. package/docs/html/modules.html +1 -1
  27. package/docs/markdown/README.md +1 -1
  28. package/docs/markdown/classes/ChipInputAdapterDirective.md +5 -5
  29. package/docs/markdown/classes/ChipListIteratorDirective.md +6 -6
  30. package/docs/markdown/classes/CompareWithDirective.md +5 -5
  31. package/docs/markdown/classes/ControlErrorDirective.md +11 -11
  32. package/docs/markdown/classes/ControlErrorsDirective.md +10 -10
  33. package/docs/markdown/classes/ExtractHideShowMixin.md +8 -8
  34. package/docs/markdown/classes/FormControlsComponent.md +17 -17
  35. package/docs/markdown/classes/FormFieldHideShowDirective.md +13 -13
  36. package/docs/markdown/classes/InputClearButtonDirective.md +8 -8
  37. package/docs/markdown/classes/MaterialFormSystemModule.md +2 -2
  38. package/docs/markdown/classes/RequiredDirective.md +4 -4
  39. package/docs/markdown/globals.md +2 -2
  40. package/docs/markdown/interfaces/ChipListTemplateContext.md +4 -4
  41. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  42. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  43. package/docs/wiki/Class.ChipInputAdapterDirective.md +4 -4
  44. package/docs/wiki/Class.ChipListIteratorDirective.md +5 -5
  45. package/docs/wiki/Class.CompareWithDirective.md +4 -4
  46. package/docs/wiki/Class.ControlErrorDirective.md +10 -10
  47. package/docs/wiki/Class.ControlErrorsDirective.md +9 -9
  48. package/docs/wiki/Class.ExtractHideShowMixin.md +7 -7
  49. package/docs/wiki/Class.FormControlsComponent.md +16 -16
  50. package/docs/wiki/Class.FormFieldHideShowDirective.md +12 -12
  51. package/docs/wiki/Class.InputClearButtonDirective.md +7 -7
  52. package/docs/wiki/Class.MaterialFormSystemModule.md +1 -1
  53. package/docs/wiki/Class.RequiredDirective.md +3 -3
  54. package/docs/wiki/Interface.ChipListTemplateContext.md +3 -3
  55. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  56. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  57. package/docs/wiki/globals.md +1 -1
  58. package/fesm2022/rxap-material-form-system.mjs +35 -36
  59. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  60. package/package.json +42 -41
  61. package/types/rxap-material-form-system.d.ts +181 -0
  62. package/index.d.ts +0 -10
  63. package/lib/chip-input-adapter.directive.d.ts +0 -14
  64. package/lib/chip-list-iterator.directive.d.ts +0 -25
  65. package/lib/compare-with.directive.d.ts +0 -12
  66. package/lib/control-error.directive.d.ts +0 -24
  67. package/lib/control-errors.directive.d.ts +0 -23
  68. package/lib/form-controls/form-controls.component.d.ts +0 -34
  69. package/lib/form-field-hide-show.directive.d.ts +0 -32
  70. package/lib/input-clear-button.directive.d.ts +0 -13
  71. package/lib/material-form-system.module.d.ts +0 -11
  72. package/lib/required.directive.d.ts +0 -10
package/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
- "version": "19.0.5-dev.0",
2
+ "version": "21.0.1-dev.0",
3
3
  "name": "@rxap/material-form-system",
4
4
  "description": "Provides directives and a module to enhance Angular Material forms. It includes features such as displaying control errors, clearing input fields, handling required fields, and managing form field visibility based on defined conditions. The package also offers a form controls component with built-in reset, cancel, and submit functionalities.\n",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "dependencies": {
7
- "@nx/devkit": "20.5.0",
7
+ "@nx/devkit": "22.7.5",
8
8
  "tslib": "2.6.2"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/cdk": "^19.1.1",
12
- "@angular/common": "^19.2.1",
13
- "@angular/core": "^19.2.1",
14
- "@angular/forms": "^19.2.1",
15
- "@angular/material": "^19.1.1",
16
- "@angular/router": "^19.2.1",
17
- "@rxap/form-system": "^19.2.0-dev.0",
18
- "@rxap/forms": "^19.2.0-dev.1",
19
- "@rxap/mixin": "^16.0.16-dev.1",
20
- "@rxap/reflect-metadata": "^1.0.17-dev.1",
21
- "@rxap/utilities": "^16.5.1-dev.1",
22
- "rxjs": "^7.8.1"
11
+ "@angular/cdk": "^21.2.9",
12
+ "@angular/common": "^21.2.9",
13
+ "@angular/core": "^21.2.9",
14
+ "@angular/forms": "^21.2.9",
15
+ "@angular/material": "^21.2.9",
16
+ "@angular/router": "^21.2.9",
17
+ "@rxap/form-system": "^21.0.1-dev.0",
18
+ "@rxap/forms": "^21.0.1-dev.0",
19
+ "@rxap/mixin": "^16.0.17-dev.0",
20
+ "@rxap/reflect-metadata": "^1.0.18-dev.0",
21
+ "@rxap/utilities": "^16.5.2-dev.0",
22
+ "rxjs": "^7.8.2"
23
23
  },
24
24
  "author": {
25
25
  "name": "Merzough Münker",
@@ -45,99 +45,99 @@
45
45
  "packageGroup": [
46
46
  {
47
47
  "package": "@angular/cdk",
48
- "version": "19.2.19"
48
+ "version": "21.2.9"
49
49
  },
50
50
  {
51
51
  "package": "@angular/common",
52
- "version": "19.2.16"
52
+ "version": "21.2.9"
53
53
  },
54
54
  {
55
55
  "package": "@angular/core",
56
- "version": "19.2.16"
56
+ "version": "21.2.9"
57
57
  },
58
58
  {
59
59
  "package": "@angular/forms",
60
- "version": "19.2.16"
60
+ "version": "21.2.9"
61
61
  },
62
62
  {
63
63
  "package": "@angular/material",
64
- "version": "19.2.19"
64
+ "version": "21.2.9"
65
65
  },
66
66
  {
67
67
  "package": "@angular/platform-browser",
68
- "version": "19.2.16"
68
+ "version": "21.2.9"
69
69
  },
70
70
  {
71
71
  "package": "@angular/router",
72
- "version": "19.2.16"
72
+ "version": "21.2.9"
73
73
  },
74
74
  {
75
75
  "package": "@rxap/config",
76
- "version": "19.3.0-dev.3"
76
+ "version": "21.0.1-dev.0"
77
77
  },
78
78
  {
79
79
  "package": "@rxap/data-source",
80
- "version": "19.2.0-dev.0"
80
+ "version": "21.0.1-dev.0"
81
81
  },
82
82
  {
83
83
  "package": "@rxap/data-structure-tree",
84
- "version": "1.1.18-dev.1"
84
+ "version": "1.1.19-dev.0"
85
85
  },
86
86
  {
87
87
  "package": "@rxap/definition",
88
- "version": "19.0.5-dev.0"
88
+ "version": "21.0.1-dev.0"
89
89
  },
90
90
  {
91
91
  "package": "@rxap/directives",
92
- "version": "19.2.0-dev.0"
92
+ "version": "21.0.1-dev.0"
93
93
  },
94
94
  {
95
95
  "package": "@rxap/environment",
96
- "version": "19.2.0-dev.0"
96
+ "version": "21.0.1-dev.0"
97
97
  },
98
98
  {
99
99
  "package": "@rxap/form-system",
100
- "version": "19.2.0-dev.0"
100
+ "version": "21.0.1-dev.0"
101
101
  },
102
102
  {
103
103
  "package": "@rxap/forms",
104
- "version": "19.2.0-dev.1"
104
+ "version": "21.0.1-dev.0"
105
105
  },
106
106
  {
107
107
  "package": "@rxap/mixin",
108
- "version": "16.0.16-dev.1"
108
+ "version": "16.0.17-dev.0"
109
109
  },
110
110
  {
111
111
  "package": "@rxap/open-api",
112
- "version": "19.3.0-dev.3"
112
+ "version": "21.0.1-dev.0"
113
113
  },
114
114
  {
115
115
  "package": "@rxap/pattern",
116
- "version": "1.1.15-dev.0"
116
+ "version": "1.1.16-dev.0"
117
117
  },
118
118
  {
119
119
  "package": "@rxap/reflect-metadata",
120
- "version": "1.0.17-dev.1"
120
+ "version": "1.0.18-dev.0"
121
121
  },
122
122
  {
123
123
  "package": "@rxap/remote-method",
124
- "version": "19.2.0-dev.1"
124
+ "version": "21.0.1-dev.0"
125
125
  },
126
126
  {
127
127
  "package": "@rxap/rxjs",
128
- "version": "1.1.17-dev.0"
128
+ "version": "1.1.18-dev.0"
129
129
  },
130
130
  {
131
131
  "package": "@rxap/services",
132
- "version": "19.1.0-dev.0"
132
+ "version": "21.0.1-dev.0"
133
133
  },
134
134
  {
135
135
  "package": "@rxap/utilities",
136
- "version": "16.5.1-dev.1"
136
+ "version": "16.5.2-dev.0"
137
137
  },
138
138
  {
139
139
  "package": "@rxap/validator",
140
- "version": "3.0.14-dev.0"
140
+ "version": "3.0.15-dev.0"
141
141
  }
142
142
  ]
143
143
  },
@@ -153,15 +153,16 @@
153
153
  "schematics": "./generators.json",
154
154
  "sideEffects": false,
155
155
  "module": "fesm2022/rxap-material-form-system.mjs",
156
- "typings": "index.d.ts",
156
+ "typings": "types/rxap-material-form-system.d.ts",
157
157
  "exports": {
158
158
  "./package.json": {
159
159
  "default": "./package.json"
160
160
  },
161
161
  ".": {
162
- "types": "./index.d.ts",
162
+ "types": "./types/rxap-material-form-system.d.ts",
163
163
  "default": "./fesm2022/rxap-material-form-system.mjs"
164
164
  },
165
165
  "./theme": "./theme.css"
166
- }
166
+ },
167
+ "type": "module"
167
168
  }
@@ -0,0 +1,181 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, EventEmitter, ChangeDetectorRef, OnDestroy, TemplateRef, ViewContainerRef, IterableDiffers, IterableChanges, AfterContentInit, Renderer2, ElementRef } from '@angular/core';
3
+ import { FormDirective, RxapFormControl, FormDefinition } from '@rxap/forms';
4
+ import { Observable } from 'rxjs';
5
+ import { Router } from '@angular/router';
6
+ import { MatSnackBar } from '@angular/material/snack-bar';
7
+ import { NgControl, AbstractControl, ValidationErrors } from '@angular/forms';
8
+ import { MatChipInput, MatChipEvent } from '@angular/material/chips';
9
+ import { MatSelect } from '@angular/material/select';
10
+ import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
11
+ import { ControlHideShowOptions, ControlHideShowFunction, ExtractFormDefinitionMixin } from '@rxap/form-system';
12
+
13
+ declare class FormControlsComponent<FormData> implements OnInit {
14
+ private readonly formDirective;
15
+ private readonly cdr;
16
+ private readonly snackBar;
17
+ private readonly router;
18
+ submitting$: Observable<boolean>;
19
+ invalid: boolean;
20
+ navigateAfterSubmit?: string[];
21
+ close: EventEmitter<void | FormData | FormData[]>;
22
+ submitted: EventEmitter<FormData>;
23
+ isDevMode: boolean;
24
+ /**
25
+ * Collection of successful submitted values
26
+ * @private
27
+ */
28
+ private _submitted;
29
+ constructor(formDirective: FormDirective, cdr: ChangeDetectorRef, snackBar: MatSnackBar, router: Router | null);
30
+ _allowResubmit: boolean;
31
+ get allowResubmit(): boolean | '';
32
+ set allowResubmit(value: boolean | '');
33
+ ngOnInit(): void;
34
+ reset(): void;
35
+ cancel(): void;
36
+ submit(closeAfterSubmit?: boolean): void;
37
+ logCurrentFormState(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsComponent<any>, [null, null, null, { optional: true; }]>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormControlsComponent<any>, "rxap-form-controls", never, { "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; }; "allowResubmit": { "alias": "allowResubmit"; "required": false; }; }, { "close": "close"; "submitted": "submitted"; }, never, never, true, never>;
40
+ }
41
+
42
+ declare class ChipInputAdapterDirective implements OnDestroy, OnInit {
43
+ private readonly matChipInput;
44
+ private readonly ngControl;
45
+ private _subscription?;
46
+ constructor(matChipInput: MatChipInput, ngControl: NgControl);
47
+ ngOnDestroy(): void;
48
+ ngOnInit(): void;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipInputAdapterDirective, never>;
50
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ChipInputAdapterDirective, "[matChipInputFor][rxapChipInputAdapter]", never, {}, {}, never, never, true, never>;
51
+ }
52
+
53
+ interface ChipListTemplateContext {
54
+ $implicit: string;
55
+ onRemoved: (event: MatChipEvent) => void;
56
+ }
57
+ declare class ChipListIteratorDirective implements OnInit, OnDestroy {
58
+ private readonly template;
59
+ private readonly viewContainerRef;
60
+ private readonly ngControl;
61
+ private readonly differs;
62
+ private _subscription?;
63
+ private _dirty;
64
+ private _differ;
65
+ constructor(template: TemplateRef<ChipListTemplateContext>, viewContainerRef: ViewContainerRef, ngControl: NgControl, differs: IterableDiffers);
66
+ ngOnInit(): void;
67
+ ngOnDestroy(): void;
68
+ protected applyChanges(changes: IterableChanges<string>): void;
69
+ private onRemoved;
70
+ private perViewChange;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<ChipListIteratorDirective, never>;
72
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListIteratorDirective, "[rxapChipListIterator]", never, {}, {}, never, never, true, never>;
73
+ }
74
+
75
+ declare class CompareWithDirective implements OnInit {
76
+ private readonly matSelect;
77
+ objectPath: string;
78
+ constructor(matSelect: MatSelect);
79
+ ngOnInit(): void;
80
+ private compareWith;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<CompareWithDirective, never>;
82
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CompareWithDirective, "mat-select[rxapCompareWith]", never, { "objectPath": { "alias": "rxapCompareWith"; "required": false; }; }, {}, never, never, true, never>;
83
+ }
84
+
85
+ interface ControlErrorDirectiveContext {
86
+ $implicit: any;
87
+ control: AbstractControl;
88
+ }
89
+ declare class ControlErrorDirective implements AfterContentInit, OnDestroy {
90
+ private readonly formField;
91
+ protected readonly template: TemplateRef<ControlErrorDirectiveContext>;
92
+ protected readonly viewContainerRef: ViewContainerRef;
93
+ protected readonly cdr: ChangeDetectorRef;
94
+ key: string;
95
+ private _subscription?;
96
+ private _control?;
97
+ constructor(formField: MatFormField, template: TemplateRef<ControlErrorDirectiveContext>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
98
+ static ngTemplateContextGuard<T>(dir: ControlErrorDirective, ctx: any): ctx is ControlErrorDirectiveContext;
99
+ ngAfterContentInit(): void;
100
+ ngOnDestroy(): void;
101
+ protected render(errors: ValidationErrors | null): void;
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorDirective, never>;
103
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorDirective, "[rxapControlError]", never, { "key": { "alias": "rxapControlErrorKey"; "required": true; }; }, {}, never, never, true, never>;
104
+ }
105
+
106
+ interface ControlErrorsDirectiveContext {
107
+ $implicit: ValidationErrors;
108
+ control: AbstractControl;
109
+ }
110
+ declare class ControlErrorsDirective implements AfterContentInit, OnDestroy {
111
+ private readonly formField;
112
+ protected readonly template: TemplateRef<ControlErrorsDirectiveContext>;
113
+ protected readonly viewContainerRef: ViewContainerRef;
114
+ protected readonly cdr: ChangeDetectorRef;
115
+ private _subscription?;
116
+ private _control?;
117
+ constructor(formField: MatFormField, template: TemplateRef<ControlErrorsDirectiveContext>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
118
+ static ngTemplateContextGuard<T>(dir: ControlErrorsDirective, ctx: any): ctx is ControlErrorsDirectiveContext;
119
+ ngAfterContentInit(): void;
120
+ ngOnDestroy(): void;
121
+ protected render(errors: ValidationErrors | null): void;
122
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorsDirective, never>;
123
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorsDirective, "[rxapControlErrors]", never, {}, {}, never, never, true, never>;
124
+ }
125
+
126
+ declare class ExtractHideShowMixin {
127
+ controlId: string;
128
+ control?: RxapFormControl;
129
+ formDefinition: FormDefinition;
130
+ extractOptions(formDefinition?: FormDefinition, controlId?: string): ControlHideShowOptions;
131
+ extractHideFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
132
+ extractShowFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
133
+ }
134
+ interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {
135
+ }
136
+ declare class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {
137
+ private readonly formField;
138
+ private readonly renderer;
139
+ private readonly elementRef;
140
+ controlId: string;
141
+ formDefinition: FormDefinition;
142
+ control: RxapFormControl;
143
+ private subscription;
144
+ constructor(formField: MatFormField, renderer: Renderer2, elementRef: ElementRef);
145
+ ngAfterContentInit(): void;
146
+ ngOnDestroy(): void;
147
+ private hide;
148
+ private show;
149
+ private reset;
150
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldHideShowDirective, never>;
151
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldHideShowDirective, "mat-form-field[rxapHideShow]", never, {}, {}, never, never, true, never>;
152
+ }
153
+
154
+ declare class InputClearButtonDirective {
155
+ private formField;
156
+ type: string;
157
+ tabIndex: string;
158
+ constructor(formField: MatFormField);
159
+ get control(): MatFormFieldControl<any>;
160
+ get isDisabled(): boolean;
161
+ onClick(): void;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputClearButtonDirective, never>;
163
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputClearButtonDirective, "[rxapInputClearButton]", never, {}, {}, never, never, true, never>;
164
+ }
165
+
166
+ declare class RequiredDirective implements AfterContentInit {
167
+ private readonly formField;
168
+ constructor(formField: MatFormField);
169
+ ngAfterContentInit(): void;
170
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequiredDirective, never>;
171
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredDirective, "[formControlName][rxapRequired],[formControl][rxapRequired]", never, {}, {}, never, never, true, never>;
172
+ }
173
+
174
+ declare class MaterialFormSystemModule {
175
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaterialFormSystemModule, never>;
176
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialFormSystemModule, never, [typeof ControlErrorDirective, typeof ControlErrorsDirective, typeof InputClearButtonDirective, typeof RequiredDirective, typeof FormFieldHideShowDirective], [typeof ControlErrorDirective, typeof ControlErrorsDirective, typeof InputClearButtonDirective, typeof RequiredDirective, typeof FormFieldHideShowDirective]>;
177
+ static ɵinj: i0.ɵɵInjectorDeclaration<MaterialFormSystemModule>;
178
+ }
179
+
180
+ export { ChipInputAdapterDirective, ChipListIteratorDirective, CompareWithDirective, ControlErrorDirective, ControlErrorsDirective, ExtractHideShowMixin, FormControlsComponent, FormFieldHideShowDirective, InputClearButtonDirective, MaterialFormSystemModule, RequiredDirective };
181
+ export type { ChipListTemplateContext, ControlErrorDirectiveContext, ControlErrorsDirectiveContext };
package/index.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export * from './lib/form-controls/form-controls.component';
2
- export * from './lib/chip-input-adapter.directive';
3
- export * from './lib/chip-list-iterator.directive';
4
- export * from './lib/compare-with.directive';
5
- export * from './lib/control-error.directive';
6
- export * from './lib/control-errors.directive';
7
- export * from './lib/form-field-hide-show.directive';
8
- export * from './lib/input-clear-button.directive';
9
- export * from './lib/material-form-system.module';
10
- export * from './lib/required.directive';
@@ -1,14 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { MatChipInput } from '@angular/material/chips';
4
- import * as i0 from "@angular/core";
5
- export declare class ChipInputAdapterDirective implements OnDestroy, OnInit {
6
- private readonly matChipInput;
7
- private readonly ngControl;
8
- private _subscription?;
9
- constructor(matChipInput: MatChipInput, ngControl: NgControl);
10
- ngOnDestroy(): void;
11
- ngOnInit(): void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ChipInputAdapterDirective, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChipInputAdapterDirective, "[matChipInputFor][rxapChipInputAdapter]", never, {}, {}, never, never, true, never>;
14
- }
@@ -1,25 +0,0 @@
1
- import { IterableChanges, IterableDiffers, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { MatChipEvent } from '@angular/material/chips';
4
- import * as i0 from "@angular/core";
5
- export interface ChipListTemplateContext {
6
- $implicit: string;
7
- onRemoved: (event: MatChipEvent) => void;
8
- }
9
- export declare class ChipListIteratorDirective implements OnInit, OnDestroy {
10
- private readonly template;
11
- private readonly viewContainerRef;
12
- private readonly ngControl;
13
- private readonly differs;
14
- private _subscription?;
15
- private _dirty;
16
- private _differ;
17
- constructor(template: TemplateRef<ChipListTemplateContext>, viewContainerRef: ViewContainerRef, ngControl: NgControl, differs: IterableDiffers);
18
- ngOnInit(): void;
19
- ngOnDestroy(): void;
20
- protected applyChanges(changes: IterableChanges<string>): void;
21
- private onRemoved;
22
- private perViewChange;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<ChipListIteratorDirective, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListIteratorDirective, "[rxapChipListIterator]", never, {}, {}, never, never, true, never>;
25
- }
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { MatSelect } from '@angular/material/select';
3
- import * as i0 from "@angular/core";
4
- export declare class CompareWithDirective implements OnInit {
5
- private readonly matSelect;
6
- objectPath: string;
7
- constructor(matSelect: MatSelect);
8
- ngOnInit(): void;
9
- private compareWith;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<CompareWithDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<CompareWithDirective, "mat-select[rxapCompareWith]", never, { "objectPath": { "alias": "rxapCompareWith"; "required": false; }; }, {}, never, never, true, never>;
12
- }
@@ -1,24 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { AbstractControl, ValidationErrors } from '@angular/forms';
3
- import { MatFormField } from '@angular/material/form-field';
4
- import * as i0 from "@angular/core";
5
- export interface ControlErrorDirectiveContext {
6
- $implicit: any;
7
- control: AbstractControl;
8
- }
9
- export declare class ControlErrorDirective implements AfterContentInit, OnDestroy {
10
- private readonly formField;
11
- protected readonly template: TemplateRef<ControlErrorDirectiveContext>;
12
- protected readonly viewContainerRef: ViewContainerRef;
13
- protected readonly cdr: ChangeDetectorRef;
14
- key: string;
15
- private _subscription?;
16
- private _control?;
17
- constructor(formField: MatFormField, template: TemplateRef<ControlErrorDirectiveContext>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
18
- static ngTemplateContextGuard<T>(dir: ControlErrorDirective, ctx: any): ctx is ControlErrorDirectiveContext;
19
- ngAfterContentInit(): void;
20
- ngOnDestroy(): void;
21
- protected render(errors: ValidationErrors | null): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorDirective, never>;
23
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorDirective, "[rxapControlError]", never, { "key": { "alias": "rxapControlErrorKey"; "required": true; }; }, {}, never, never, true, never>;
24
- }
@@ -1,23 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { AbstractControl, ValidationErrors } from '@angular/forms';
3
- import { MatFormField } from '@angular/material/form-field';
4
- import * as i0 from "@angular/core";
5
- export interface ControlErrorsDirectiveContext {
6
- $implicit: ValidationErrors;
7
- control: AbstractControl;
8
- }
9
- export declare class ControlErrorsDirective implements AfterContentInit, OnDestroy {
10
- private readonly formField;
11
- protected readonly template: TemplateRef<ControlErrorsDirectiveContext>;
12
- protected readonly viewContainerRef: ViewContainerRef;
13
- protected readonly cdr: ChangeDetectorRef;
14
- private _subscription?;
15
- private _control?;
16
- constructor(formField: MatFormField, template: TemplateRef<ControlErrorsDirectiveContext>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
17
- static ngTemplateContextGuard<T>(dir: ControlErrorsDirective, ctx: any): ctx is ControlErrorsDirectiveContext;
18
- ngAfterContentInit(): void;
19
- ngOnDestroy(): void;
20
- protected render(errors: ValidationErrors | null): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlErrorsDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlErrorsDirective, "[rxapControlErrors]", never, {}, {}, never, never, true, never>;
23
- }
@@ -1,34 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter, OnInit } from '@angular/core';
2
- import { FormDirective } from '@rxap/forms';
3
- import { Observable } from 'rxjs';
4
- import { Router } from '@angular/router';
5
- import { MatSnackBar } from '@angular/material/snack-bar';
6
- import * as i0 from "@angular/core";
7
- export declare class FormControlsComponent<FormData> implements OnInit {
8
- private readonly formDirective;
9
- private readonly cdr;
10
- private readonly snackBar;
11
- private readonly router;
12
- submitting$: Observable<boolean>;
13
- invalid: boolean;
14
- navigateAfterSubmit?: string[];
15
- close: EventEmitter<void | FormData | FormData[]>;
16
- submitted: EventEmitter<FormData>;
17
- isDevMode: boolean;
18
- /**
19
- * Collection of successful submitted values
20
- * @private
21
- */
22
- private _submitted;
23
- constructor(formDirective: FormDirective, cdr: ChangeDetectorRef, snackBar: MatSnackBar, router: Router | null);
24
- _allowResubmit: boolean;
25
- get allowResubmit(): boolean | '';
26
- set allowResubmit(value: boolean | '');
27
- ngOnInit(): void;
28
- reset(): void;
29
- cancel(): void;
30
- submit(closeAfterSubmit?: boolean): void;
31
- logCurrentFormState(): void;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsComponent<any>, [null, null, null, { optional: true; }]>;
33
- static ɵcmp: i0.ɵɵComponentDeclaration<FormControlsComponent<any>, "rxap-form-controls", never, { "navigateAfterSubmit": { "alias": "navigateAfterSubmit"; "required": false; }; "allowResubmit": { "alias": "allowResubmit"; "required": false; }; }, { "close": "close"; "submitted": "submitted"; }, never, never, true, never>;
34
- }
@@ -1,32 +0,0 @@
1
- import { AfterContentInit, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
- import { MatFormField } from '@angular/material/form-field';
3
- import { FormDefinition, RxapFormControl } from '@rxap/forms';
4
- import { ControlHideShowFunction, ControlHideShowOptions, ExtractFormDefinitionMixin } from '@rxap/form-system';
5
- import * as i0 from "@angular/core";
6
- export declare class ExtractHideShowMixin {
7
- controlId: string;
8
- control?: RxapFormControl;
9
- formDefinition: FormDefinition;
10
- extractOptions(formDefinition?: FormDefinition, controlId?: string): ControlHideShowOptions;
11
- extractHideFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
12
- extractShowFunction(formDefinition?: FormDefinition, controlId?: string): ControlHideShowFunction | null;
13
- }
14
- export interface FormFieldHideShowDirective extends ExtractHideShowMixin, ExtractFormDefinitionMixin, OnInit, OnDestroy {
15
- }
16
- export declare class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {
17
- private readonly formField;
18
- private readonly renderer;
19
- private readonly elementRef;
20
- controlId: string;
21
- formDefinition: FormDefinition;
22
- control: RxapFormControl;
23
- private subscription;
24
- constructor(formField: MatFormField, renderer: Renderer2, elementRef: ElementRef);
25
- ngAfterContentInit(): void;
26
- ngOnDestroy(): void;
27
- private hide;
28
- private show;
29
- private reset;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldHideShowDirective, never>;
31
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldHideShowDirective, "mat-form-field[rxapHideShow]", never, {}, {}, never, never, true, never>;
32
- }
@@ -1,13 +0,0 @@
1
- import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
2
- import * as i0 from "@angular/core";
3
- export declare class InputClearButtonDirective {
4
- private formField;
5
- type: string;
6
- tabIndex: string;
7
- constructor(formField: MatFormField);
8
- get control(): MatFormFieldControl<any>;
9
- get isDisabled(): boolean;
10
- onClick(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<InputClearButtonDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputClearButtonDirective, "[rxapInputClearButton]", never, {}, {}, never, never, true, never>;
13
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./control-error.directive";
3
- import * as i2 from "./control-errors.directive";
4
- import * as i3 from "./input-clear-button.directive";
5
- import * as i4 from "./required.directive";
6
- import * as i5 from "./form-field-hide-show.directive";
7
- export declare class MaterialFormSystemModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<MaterialFormSystemModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialFormSystemModule, never, [typeof i1.ControlErrorDirective, typeof i2.ControlErrorsDirective, typeof i3.InputClearButtonDirective, typeof i4.RequiredDirective, typeof i5.FormFieldHideShowDirective], [typeof i1.ControlErrorDirective, typeof i2.ControlErrorsDirective, typeof i3.InputClearButtonDirective, typeof i4.RequiredDirective, typeof i5.FormFieldHideShowDirective]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<MaterialFormSystemModule>;
11
- }
@@ -1,10 +0,0 @@
1
- import { AfterContentInit } from '@angular/core';
2
- import { MatFormField } from '@angular/material/form-field';
3
- import * as i0 from "@angular/core";
4
- export declare class RequiredDirective implements AfterContentInit {
5
- private readonly formField;
6
- constructor(formField: MatFormField);
7
- ngAfterContentInit(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<RequiredDirective, never>;
9
- static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredDirective, "[formControlName][rxapRequired],[formControl][rxapRequired]", never, {}, {}, never, never, true, never>;
10
- }