@rxap/schematic-angular 19.3.1 → 21.0.1-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/package.json +10 -10
  3. package/src/lib/coerce-minimum-table-component.js +12 -7
  4. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  5. package/src/lib/form/control/table-select-form-control.js +4 -4
  6. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  7. package/src/lib/rules/table-cell-component-rule.js +2 -3
  8. package/src/lib/rules/table-cell-component-rule.js.map +1 -1
  9. package/src/schematics/accordion/accordion-component/__snapshots__/index.spec.ts.snap +1 -1
  10. package/src/schematics/accordion/accordion-component/__snapshots__/normalize-accordion-component-options.spec.ts.snap +1 -1
  11. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +10 -7
  12. package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +3 -1
  13. package/src/schematics/accordion/item/accordion-item-data-grid-component/__snapshots__/normalize-accordion-item-data-grid-component-options.spec.ts.snap +1 -1
  14. package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.html.template +6 -5
  15. package/src/schematics/accordion/item/accordion-item-nested-component/__snapshots__/normalize-accordion-item-nested-component-options.spec.ts.snap +1 -1
  16. package/src/schematics/accordion/item/accordion-item-switch-component/__snapshots__/normalize-accordion-item-switch-component-options.spec.ts.snap +1 -1
  17. package/src/schematics/accordion/item/accordion-item-table-component/__snapshots__/normalize-accordion-item-table-component-options.spec.ts.snap +1 -1
  18. package/src/schematics/accordion/item/accordion-item-tree-table-component/__snapshots__/normalize-accordion-item-tree-table-component-options.spec.ts.snap +1 -1
  19. package/src/schematics/accordion/templates/switch-accordion-item.hbs +10 -10
  20. package/src/schematics/data-grid-component/__snapshots__/index.spec.ts.snap +34 -1
  21. package/src/schematics/data-grid-component/__snapshots__/normalize-data-grid-component-options.spec.ts.snap +1 -1
  22. package/src/schematics/data-grid-component/component-rule.js +14 -6
  23. package/src/schematics/data-grid-component/component-rule.js.map +1 -1
  24. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +1 -1
  25. package/src/schematics/dialog-component/__snapshots__/index.spec.ts.snap +57 -8
  26. package/src/schematics/dialog-component/__snapshots__/normalize-dialog-component-options.spec.ts.snap +1 -1
  27. package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +3 -1
  28. package/src/schematics/form/control/autocomplete-form-control/__snapshots__/index.spec.ts.snap +1 -1
  29. package/src/schematics/form/control/autocomplete-form-control/__snapshots__/normalize-autocomplete-form-control-options.spec.ts.snap +1 -1
  30. package/src/schematics/form/control/autocomplete-table-select-form-control/__snapshots__/index.spec.ts.snap +1 -1
  31. package/src/schematics/form/control/autocomplete-table-select-form-control/__snapshots__/normalize-table-select-form-control-options.spec.ts.snap +37 -5
  32. package/src/schematics/form/control/date-form-control/__snapshots__/index.spec.ts.snap +1 -1
  33. package/src/schematics/form/control/date-form-control/__snapshots__/normalize-date-form-control-options.spec.ts.snap +1 -1
  34. package/src/schematics/form/control/input-form-control/__snapshots__/index.spec.ts.snap +1 -1
  35. package/src/schematics/form/control/input-form-control/__snapshots__/normalize-input-form-control-options.spec.ts.snap +1 -1
  36. package/src/schematics/form/control/select-form-control/__snapshots__/index.spec.ts.snap +1 -1
  37. package/src/schematics/form/control/select-form-control/__snapshots__/normalize-select-form-control-options.spec.ts.snap +1 -1
  38. package/src/schematics/form/control/table-select-form-control/__snapshots__/normalize-table-select-form-control-options.spec.ts.snap +37 -5
  39. package/src/schematics/form/form-array/__snapshots__/normalize-form-array-options.spec.ts.snap +1 -1
  40. package/src/schematics/form/form-component/__snapshots__/index.spec.ts.snap +66 -1
  41. package/src/schematics/form/form-component/__snapshots__/normalize-form-component-options.spec.ts.snap +1 -1
  42. package/src/schematics/form/form-component/coerce-form-component.js +1 -1
  43. package/src/schematics/form/form-component/coerce-form-component.js.map +1 -1
  44. package/src/schematics/form/form-component/files/window/open-__componentName__-window.method.ts.template +26 -16
  45. package/src/schematics/form/form-control/__snapshots__/normalize-form-control-options.spec.ts.snap +1 -1
  46. package/src/schematics/form/form-definition/__snapshots__/index.spec.ts.snap +43 -1
  47. package/src/schematics/form/form-definition/__snapshots__/normalize-form-definition-options.spec.ts.snap +1 -1
  48. package/src/schematics/form/form-group/__snapshots__/normalize-form-group-options.spec.ts.snap +1 -1
  49. package/src/schematics/route-component/__snapshots__/normalize-route-component-options.spec.ts.snap +1 -1
  50. package/src/schematics/table/action/dialog-table-action/__snapshots__/normalize-dialog-table-action-options.spec.ts.snap +1 -1
  51. package/src/schematics/table/action/form-table-action/__snapshots__/normalize-form-table-action-options.spec.ts.snap +1 -1
  52. package/src/schematics/table/action/navigation-table-action/__snapshots__/normalize-navigation-table-action-options.spec.ts.snap +1 -1
  53. package/src/schematics/table/action/open-api-table-action/__snapshots__/normalize-open-api-table-action-options.spec.ts.snap +1 -1
  54. package/src/schematics/table/action/operation-table-action/__snapshots__/normalize-operation-table-action-options.spec.ts.snap +1 -1
  55. package/src/schematics/table/header-button/form-table-header-button/__snapshots__/normalize-form-table-header-button-options.spec.ts.snap +1 -1
  56. package/src/schematics/table/header-button/method-table-header-button/__snapshots__/normalize-method-table-header-button-options.spec.ts.snap +1 -1
  57. package/src/schematics/table/header-button/navigation-table-header-button/__snapshots__/normalize-navigation-table-header-button-options.spec.ts.snap +1 -1
  58. package/src/schematics/table/table-action/__snapshots__/normalize-table-action-options.spec.ts.snap +1 -1
  59. package/src/schematics/table/table-component/__snapshots__/index.spec.ts.snap +417 -1
  60. package/src/schematics/table/table-component/__snapshots__/normalize-table-component-options.spec.ts.snap +1 -1
  61. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +14 -11
  62. package/src/schematics/table/table-component/select-column-rule.js +3 -1
  63. package/src/schematics/table/table-component/select-column-rule.js.map +1 -1
  64. package/src/schematics/table/table-header-button/__snapshots__/index.spec.ts.snap +1 -1
  65. package/src/schematics/table/table-header-button/__snapshots__/normalize-table-header-button-options.spec.ts.snap +1 -1
  66. package/src/schematics/table/templates/spinner-table-column.hbs +5 -7
  67. package/src/schematics/table/tree-table-component/__snapshots__/index.spec.ts.snap +145 -1
  68. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +14 -11
  69. package/src/schematics/tree-component/__snapshots__/index.spec.ts.snap +1 -1
  70. package/src/schematics/tree-component/__snapshots__/normalize-tree-component-options.spec.ts.snap +1 -1
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`dialog-component minimal: file-tree 1`] = `
4
4
  [
@@ -33,13 +33,63 @@ exports[`dialog-component minimal: file-tree 1`] = `
33
33
  ]
34
34
  `;
35
35
 
36
+ exports[`dialog-component minimal: generated 1`] = `
37
+ {
38
+ "/ui/lib/src/lib/test-dialog/test-dialog.component.html": "<h2 mat-dialog-title i18n>Test Dialog</h2>
39
+ <mat-dialog-content>
40
+
41
+ <div class="flex flex-col">
42
+
43
+ @if (loading$ | async) {
44
+ <mat-progress-bar class="progress-bar" mode="indeterminate"></mat-progress-bar>
45
+ }
46
+
47
+ </div>
48
+
49
+ </mat-dialog-content>
50
+ <mat-dialog-actions>
51
+
52
+ </mat-dialog-actions>
53
+ ",
54
+ "/ui/lib/src/lib/test-dialog/test-dialog.component.scss": "",
55
+ "/ui/lib/src/lib/test-dialog/test-dialog.component.ts": "import { Component, ChangeDetectionStrategy, inject } from '@angular/core';
56
+ import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
57
+ import { MatButtonModule } from '@angular/material/button';
58
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
59
+ import { AsyncPipe } from '@angular/common';
60
+ import { ToggleSubject } from '@rxap/rxjs';
61
+
62
+ @Component({
63
+ standalone: true,
64
+ selector: 'jest-test-dialog',
65
+ changeDetection: ChangeDetectionStrategy.OnPush,
66
+ templateUrl: './test-dialog.component.html',
67
+ styleUrls: ['./test-dialog.component.scss'],
68
+ imports: [MatDialogModule, MatButtonModule, MatProgressBarModule, AsyncPipe],
69
+ })
70
+ export class TestDialogComponent {
71
+ readonly data: any = inject(MAT_DIALOG_DATA);
72
+ readonly matDialogRef: MatDialogRef<any> = inject(MatDialogRef);
73
+ readonly invalid$ = new ToggleSubject(true);
74
+ readonly loading$ = new ToggleSubject(true);
75
+
76
+ async submit() {
77
+ this.matDialogRef.close(true);
78
+ }
79
+ }
80
+ ",
81
+ }
82
+ `;
83
+
36
84
  exports[`dialog-component minimal: test-dialog.component.html 1`] = `
37
85
  "<h2 mat-dialog-title i18n>Test Dialog</h2>
38
86
  <mat-dialog-content>
39
87
 
40
88
  <div class="flex flex-col">
41
89
 
42
- <mat-progress-bar *ngIf="loading$ | async" class="progress-bar" mode="indeterminate"></mat-progress-bar>
90
+ @if (loading$ | async) {
91
+ <mat-progress-bar class="progress-bar" mode="indeterminate"></mat-progress-bar>
92
+ }
43
93
 
44
94
  </div>
45
95
 
@@ -53,11 +103,11 @@ exports[`dialog-component minimal: test-dialog.component.html 1`] = `
53
103
  exports[`dialog-component minimal: test-dialog.component.scss 1`] = `""`;
54
104
 
55
105
  exports[`dialog-component minimal: test-dialog.component.ts 1`] = `
56
- "import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
106
+ "import { Component, ChangeDetectionStrategy, inject } from '@angular/core';
57
107
  import { MatDialogModule, MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
58
108
  import { MatButtonModule } from '@angular/material/button';
59
109
  import { MatProgressBarModule } from '@angular/material/progress-bar';
60
- import { CommonModule } from '@angular/common';
110
+ import { AsyncPipe } from '@angular/common';
61
111
  import { ToggleSubject } from '@rxap/rxjs';
62
112
 
63
113
  @Component({
@@ -66,15 +116,14 @@ import { ToggleSubject } from '@rxap/rxjs';
66
116
  changeDetection: ChangeDetectionStrategy.OnPush,
67
117
  templateUrl: './test-dialog.component.html',
68
118
  styleUrls: ['./test-dialog.component.scss'],
69
- imports: [MatDialogModule, MatButtonModule, MatProgressBarModule, CommonModule],
119
+ imports: [MatDialogModule, MatButtonModule, MatProgressBarModule, AsyncPipe],
70
120
  })
71
121
  export class TestDialogComponent {
122
+ readonly data: any = inject(MAT_DIALOG_DATA);
123
+ readonly matDialogRef: MatDialogRef<any> = inject(MatDialogRef);
72
124
  readonly invalid$ = new ToggleSubject(true);
73
125
  readonly loading$ = new ToggleSubject(true);
74
126
 
75
- constructor(readonly matDialogRef: MatDialogRef<any>, @Inject(MAT_DIALOG_DATA) readonly data: any) {
76
- }
77
-
78
127
  async submit() {
79
128
  this.matDialogRef.close(true);
80
129
  }
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`normalizeDialogComponentOptions should normalize complex dialog component options 1`] = `
4
4
  {
@@ -3,7 +3,9 @@
3
3
 
4
4
  <div class="flex flex-col">
5
5
 
6
- <mat-progress-bar *ngIf="loading$ | async" class="progress-bar" mode="indeterminate"></mat-progress-bar>
6
+ @if (loading$ | async) {
7
+ <mat-progress-bar class="progress-bar" mode="indeterminate"></mat-progress-bar>
8
+ }
7
9
 
8
10
  </div>
9
11
 
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`autocomplete-form-control should run snapshot match 1`] = `
4
4
  [
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeAutocompleteFormControlOptions should normalize complex autocomplete form control options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`autocomplete-table-select-form-control should run snapshot match 1`] = `
4
4
  [
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeTableSelectFormControlOptions should normalize complex table select form control options 1`] = `
4
4
  {
@@ -63,7 +63,7 @@ exports[`NormalizeTableSelectFormControlOptions should normalize complex table s
63
63
  "isTypeOnly": false,
64
64
  "moduleSpecifier": "@rxap/ngx-material-table-select",
65
65
  "name": "rxapTableSelectControl",
66
- "namedImport": "TableSelectControlModule",
66
+ "namedImport": "TableSelectControlDirective",
67
67
  "namespaceImport": null,
68
68
  },
69
69
  ],
@@ -128,7 +128,23 @@ exports[`NormalizeTableSelectFormControlOptions should normalize complex table s
128
128
  "defaultImport": null,
129
129
  "isTypeOnly": false,
130
130
  "moduleSpecifier": "@rxap/ngx-material-table-select",
131
- "name": "TableSelectControlModule",
131
+ "name": "TableSelectControlDirective",
132
+ "namedImport": null,
133
+ "namespaceImport": null,
134
+ },
135
+ {
136
+ "defaultImport": null,
137
+ "isTypeOnly": false,
138
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
139
+ "name": "TableSelectInputComponent",
140
+ "namedImport": null,
141
+ "namespaceImport": null,
142
+ },
143
+ {
144
+ "defaultImport": null,
145
+ "isTypeOnly": false,
146
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
147
+ "name": "OpenTableSelectWindowDirective",
132
148
  "namedImport": null,
133
149
  "namespaceImport": null,
134
150
  },
@@ -314,7 +330,7 @@ exports[`NormalizeTableSelectFormControlOptions should normalize minimal table s
314
330
  "isTypeOnly": false,
315
331
  "moduleSpecifier": "@rxap/ngx-material-table-select",
316
332
  "name": "rxapTableSelectControl",
317
- "namedImport": "TableSelectControlModule",
333
+ "namedImport": "TableSelectControlDirective",
318
334
  "namespaceImport": null,
319
335
  },
320
336
  ],
@@ -379,7 +395,23 @@ exports[`NormalizeTableSelectFormControlOptions should normalize minimal table s
379
395
  "defaultImport": null,
380
396
  "isTypeOnly": false,
381
397
  "moduleSpecifier": "@rxap/ngx-material-table-select",
382
- "name": "TableSelectControlModule",
398
+ "name": "TableSelectControlDirective",
399
+ "namedImport": null,
400
+ "namespaceImport": null,
401
+ },
402
+ {
403
+ "defaultImport": null,
404
+ "isTypeOnly": false,
405
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
406
+ "name": "TableSelectInputComponent",
407
+ "namedImport": null,
408
+ "namespaceImport": null,
409
+ },
410
+ {
411
+ "defaultImport": null,
412
+ "isTypeOnly": false,
413
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
414
+ "name": "OpenTableSelectWindowDirective",
383
415
  "namedImport": null,
384
416
  "namespaceImport": null,
385
417
  },
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`date-form-control should run snapshot match 1`] = `
4
4
  [
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeDateFormControlOptions should normalize complex date form control options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`input-form-control should run snapshot match 1`] = `
4
4
  [
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeInputFormControlOptions should normalize complex input form control options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`select-form-control should run snapshot match 1`] = `
4
4
  [
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeSelectFormControlOptions should normalize complex select form control options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeTableSelectFormControlOptions should normalize complex table select form control options 1`] = `
4
4
  {
@@ -63,7 +63,7 @@ exports[`NormalizeTableSelectFormControlOptions should normalize complex table s
63
63
  "isTypeOnly": false,
64
64
  "moduleSpecifier": "@rxap/ngx-material-table-select",
65
65
  "name": "rxapTableSelectControl",
66
- "namedImport": "TableSelectControlModule",
66
+ "namedImport": "TableSelectControlDirective",
67
67
  "namespaceImport": null,
68
68
  },
69
69
  ],
@@ -128,7 +128,23 @@ exports[`NormalizeTableSelectFormControlOptions should normalize complex table s
128
128
  "defaultImport": null,
129
129
  "isTypeOnly": false,
130
130
  "moduleSpecifier": "@rxap/ngx-material-table-select",
131
- "name": "TableSelectControlModule",
131
+ "name": "TableSelectControlDirective",
132
+ "namedImport": null,
133
+ "namespaceImport": null,
134
+ },
135
+ {
136
+ "defaultImport": null,
137
+ "isTypeOnly": false,
138
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
139
+ "name": "TableSelectInputComponent",
140
+ "namedImport": null,
141
+ "namespaceImport": null,
142
+ },
143
+ {
144
+ "defaultImport": null,
145
+ "isTypeOnly": false,
146
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
147
+ "name": "OpenTableSelectWindowDirective",
132
148
  "namedImport": null,
133
149
  "namespaceImport": null,
134
150
  },
@@ -314,7 +330,7 @@ exports[`NormalizeTableSelectFormControlOptions should normalize minimal table s
314
330
  "isTypeOnly": false,
315
331
  "moduleSpecifier": "@rxap/ngx-material-table-select",
316
332
  "name": "rxapTableSelectControl",
317
- "namedImport": "TableSelectControlModule",
333
+ "namedImport": "TableSelectControlDirective",
318
334
  "namespaceImport": null,
319
335
  },
320
336
  ],
@@ -379,7 +395,23 @@ exports[`NormalizeTableSelectFormControlOptions should normalize minimal table s
379
395
  "defaultImport": null,
380
396
  "isTypeOnly": false,
381
397
  "moduleSpecifier": "@rxap/ngx-material-table-select",
382
- "name": "TableSelectControlModule",
398
+ "name": "TableSelectControlDirective",
399
+ "namedImport": null,
400
+ "namespaceImport": null,
401
+ },
402
+ {
403
+ "defaultImport": null,
404
+ "isTypeOnly": false,
405
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
406
+ "name": "TableSelectInputComponent",
407
+ "namedImport": null,
408
+ "namespaceImport": null,
409
+ },
410
+ {
411
+ "defaultImport": null,
412
+ "isTypeOnly": false,
413
+ "moduleSpecifier": "@rxap/ngx-material-table-select",
414
+ "name": "OpenTableSelectWindowDirective",
383
415
  "namedImport": null,
384
416
  "namespaceImport": null,
385
417
  },
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormArrayOptions should normalize complex form array options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`form-component minimal: file-tree 1`] = `
4
4
  [
@@ -34,3 +34,68 @@ exports[`form-component minimal: file-tree 1`] = `
34
34
  "/ui/lib/tsconfig.lib.json",
35
35
  ]
36
36
  `;
37
+
38
+ exports[`form-component minimal: generated 1`] = `
39
+ {
40
+ "/ui/lib/src/lib/test-form/form.providers.ts": "import { Provider, INJECTOR, Injector, Optional } from '@angular/core';
41
+ import { TestForm, ITestForm } from './test-form.form';
42
+ import { RxapFormBuilder, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_DEFINITION, RXAP_FORM_INITIAL_STATE } from '@rxap/forms';
43
+
44
+ // rxap-no-index-export
45
+ export const FormProviders: Provider[] = [TestForm];
46
+ export const FormComponentProviders: Provider[] = [{
47
+ provide: RXAP_FORM_DEFINITION,
48
+ useFactory: FormFactory,
49
+ deps: [ INJECTOR,[ new Optional(), RXAP_FORM_INITIAL_STATE ] ]
50
+ }];
51
+ export const FormBuilderProviders: Provider[] = [{
52
+ provide: RXAP_FORM_DEFINITION_BUILDER,
53
+ useFactory: FormBuilderFactory,
54
+ deps: [ INJECTOR ]
55
+ }];
56
+
57
+ export function FormFactory(injector: Injector, state: ITestForm | null): TestForm {
58
+ return new RxapFormBuilder<ITestForm>(TestForm, injector).build(state ?? {});
59
+ }
60
+
61
+ function FormBuilderFactory(injector: Injector): RxapFormBuilder<ITestForm> {
62
+ return new RxapFormBuilder<ITestForm>(TestForm, injector);
63
+ }
64
+ ",
65
+ "/ui/lib/src/lib/test-form/test-form.component.html": "<form rxapForm class="flex flex-col gap-2">
66
+ <rxap-form-controls></rxap-form-controls>
67
+ </form>
68
+ ",
69
+ "/ui/lib/src/lib/test-form/test-form.component.scss": "",
70
+ "/ui/lib/src/lib/test-form/test-form.component.ts": "import { Component, ChangeDetectionStrategy } from '@angular/core';
71
+ import { ReactiveFormsModule } from '@angular/forms';
72
+ import { FormControlsComponent } from '@rxap/material-form-system';
73
+ import { FormDirective } from '@rxap/forms';
74
+ import { FormProviders, FormComponentProviders } from './form.providers';
75
+
76
+ @Component({
77
+ standalone: true,
78
+ selector: 'jest-test-form',
79
+ changeDetection: ChangeDetectionStrategy.OnPush,
80
+ templateUrl: './test-form.component.html',
81
+ styleUrls: ['./test-form.component.scss'],
82
+ imports: [ReactiveFormsModule, FormControlsComponent, FormDirective],
83
+ providers: [FormProviders, FormComponentProviders],
84
+ })
85
+ export class TestFormComponent {
86
+ }
87
+ ",
88
+ "/ui/lib/src/lib/test-form/test-form.form.ts": "import { FormType, RxapFormGroup, RxapForm } from '@rxap/forms';
89
+ import { Injectable } from '@angular/core';
90
+
91
+ @RxapForm('test-form')
92
+ @Injectable()
93
+ export class TestForm implements FormType<ITestForm> {
94
+ public readonly rxapFormGroup!: RxapFormGroup<ITestForm>;
95
+ }
96
+
97
+ export interface ITestForm {
98
+ }
99
+ ",
100
+ }
101
+ `;
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormComponentOptions should normalize complex form component options 1`] = `
4
4
  {
@@ -24,7 +24,7 @@ function CoerceFormComponentRule(options) {
24
24
  moduleSpecifier: '@rxap/material-form-system',
25
25
  });
26
26
  (0, ts_morph_1.CoerceComponentImport)(classDeclaration, {
27
- name: 'RxapFormsModule',
27
+ name: 'FormDirective',
28
28
  moduleSpecifier: '@rxap/forms',
29
29
  });
30
30
  if (window) {
@@ -1 +1 @@
1
- {"version":3,"file":"coerce-form-component.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/coerce-form-component.ts"],"names":[],"mappings":";;AA+BA,0DA0GC;AAzID,mEAImC;AACnC,6CAIwB;AACxB,+CAGyB;AACzB,uCAGkB;AAGlB,yGAAmG;AACnG,oFAI+C;AAM/C,SAAgB,uBAAuB,CAAC,OAAmC;;IAEzE,MAAM,EACJ,gBAAgB,GAAG,gBAAI,EACvB,IAAI,EAAE,EACJ,MAAM,EACN,IAAI,EACJ,0BAA0B,EAC1B,WAAW,GACZ,EACD,UAAU,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,EAAE,GACnC,GAAG,OAAO,CAAC;IAEZ,MAAA,QAAQ,CAAC,cAAc,qCAAvB,QAAQ,CAAC,cAAc,IAAM,IAAA,6DAAkC,GAAE,EAAC;IAClE,MAAA,QAAQ,CAAC,MAAM,qCAAf,QAAQ,CAAC,MAAM,IAAM,IAAA,qDAA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,UAAU,CAAE,EAAE,CAAE,gBAAgB,CAAE,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC,IACD,CAAC;AAEL,CAAC"}
1
+ {"version":3,"file":"coerce-form-component.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/coerce-form-component.ts"],"names":[],"mappings":";;AA+BA,0DA0GC;AAzID,mEAImC;AACnC,6CAIwB;AACxB,+CAGyB;AACzB,uCAGkB;AAGlB,yGAAmG;AACnG,oFAI+C;AAM/C,SAAgB,uBAAuB,CAAC,OAAmC;;IAEzE,MAAM,EACJ,gBAAgB,GAAG,gBAAI,EACvB,IAAI,EAAE,EACJ,MAAM,EACN,IAAI,EACJ,0BAA0B,EAC1B,WAAW,GACZ,EACD,UAAU,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,GAAG,EAAE,GACnC,GAAG,OAAO,CAAC;IAEZ,MAAA,QAAQ,CAAC,cAAc,qCAAvB,QAAQ,CAAC,cAAc,IAAM,IAAA,6DAAkC,GAAE,EAAC;IAClE,MAAA,QAAQ,CAAC,MAAM,qCAAf,QAAQ,CAAC,MAAM,IAAM,IAAA,qDAA0B,GAAE,EAAC;IAClD,MAAA,QAAQ,CAAC,UAAU,qCAAnB,QAAQ,CAAC,UAAU,IAAM,IAAA,yDAA8B,GAAE,EAAC;IAE1D,OAAO,IAAA,yCAAmB,kCACrB,OAAO,KACV,UAAU,kCAAO,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,KAAE,QAAQ,KACnD,gBAAgB,EAAE,CAAC,OAAO,EAAE,CAAE,UAAU,CAAE,EAAE,CAAE,gBAAgB,CAAE,EAAE,EAAE;YAElE,yBAAyB;YACzB,IAAA,gCAAqB,EACnB,gBAAgB,EAAE;gBAChB,IAAI,EAAE,qBAAqB;gBAC3B,eAAe,EAAE,gBAAgB;aAClC,CAAC,CAAC;YACL,IAAA,gCAAqB,EACnB,gBAAgB,EAAE;gBAChB,IAAI,EAAE,uBAAuB;gBAC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CAAC;gBACH,IAAA,wBAAa,EACX,UAAU,EACV;oBACE,YAAY,EAAE,CAAE,gCAAgC,CAAE;oBAClD,eAAe,EAAE,8BAA8B;iBAChD,CACF,CAAC;YACJ,CAAC;YACD,IAAA,0CAAoB,EAAC,UAAU,EAAE,eAAe,CAAC,CAAC;YAClD,IAAA,0CAAoB,EAAC,UAAU,EAAE,wBAAwB,CAAC,CAAC;YAC3D,IAAA,wBAAa,EAAC,UAAU,EAAE;gBACxB,YAAY,EAAE,CAAE,eAAe,EAAE,wBAAwB,CAAE;gBAC3D,eAAe,EAAE,kBAAkB;aACpC,CAAC,CAAC;YACH,YAAY;YAEZ,IAAA,gEAA6B,EAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;YAE7D,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,CAAC,OAAO,CAAC,SAAS,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;gBAClF,IAAA,mCAAwB,EAAC,gBAAgB,CAAC,CAAC;YAC7C,CAAC;YAED,gBAAgB,CAAC,OAAO,EAAE,CAAE,UAAU,CAAE,EAAE,CAAE,gBAAgB,CAAE,EAAE,OAAO,CAAC,CAAC;QAC3E,CAAC,IACD,CAAC;AAEL,CAAC"}
@@ -1,29 +1,39 @@
1
- import { Inject, Injectable, Injector, INJECTOR, Optional } from '@angular/core';
1
+ import { inject, Injectable, Injector, INJECTOR } from '@angular/core';
2
+ import { FormDefinition } from '@rxap/forms';
2
3
  import {
3
4
  FormWindowOptions,
4
5
  FormWindowService,
5
- OpenFormWindowMethod,
6
6
  RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS,
7
7
  } from '@rxap/form-window-system';
8
+ import { Method } from '@rxap/pattern';
9
+ import { WindowRef } from '@rxap/window-system';
8
10
  import { <%= classify(name) %>FormComponent } from './<%= name %>-form.component';
9
11
  import { <%= classify(name) %>Form, I<%= classify(name) %>Form } from './<%= name %>.form';
10
12
 
11
13
  @Injectable()
12
- export class Open<%= classify(name) %>FormWindowMethod extends OpenFormWindowMethod<I<%= classify(name) %>Form> {
13
- constructor(
14
- @Inject(FormWindowService) formWindowService: FormWindowService,
15
- @Inject(INJECTOR)
16
- injector: Injector,
17
- @Optional()
18
- @Inject(RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS)
19
- defaultOptions: FormWindowOptions<I<%= classify(name) %>Form> | null = null,
20
- ) {
21
- super(
22
- formWindowService,
14
+ export class Open<%= classify(name) %>FormWindowMethod
15
+ implements Method<WindowRef<FormDefinition, I<%= classify(name) %>Form>, Partial<I<%= classify(name) %>Form>> {
16
+
17
+ private readonly formWindowService = inject(FormWindowService);
18
+ private readonly injector = inject<Injector>(INJECTOR);
19
+ private readonly defaultOptions = inject<FormWindowOptions<I<%= classify(name) %>Form> | null>(
20
+ RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS,
21
+ { optional: true },
22
+ );
23
+
24
+ public call(
25
+ initial?: Partial<I<%= classify(name) %>Form>,
26
+ options?: Partial<FormWindowOptions<I<%= classify(name) %>Form>>,
27
+ ): WindowRef<FormDefinition, I<%= classify(name) %>Form> {
28
+ return this.formWindowService.open<I<%= classify(name) %>Form>(
23
29
  <%= classify(name) %>Form,
24
- injector,
25
- <%= classify(name) %>FormComponent,
26
- defaultOptions,
30
+ {
31
+ ...(this.defaultOptions ?? {}),
32
+ injector: this.injector,
33
+ ...(options ?? {}),
34
+ initial: initial ?? this.defaultOptions?.initial,
35
+ component: this.defaultOptions?.component ?? <%= classify(name) %>FormComponent,
36
+ },
27
37
  );
28
38
  }
29
39
  }
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormControlOptions should normalize complex form control options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`form-definition minimal: file-tree 1`] = `
4
4
  [
@@ -31,3 +31,45 @@ exports[`form-definition minimal: file-tree 1`] = `
31
31
  "/ui/lib/tsconfig.lib.json",
32
32
  ]
33
33
  `;
34
+
35
+ exports[`form-definition minimal: generated 1`] = `
36
+ {
37
+ "/ui/lib/src/lib/form.providers.ts": "import { Provider, INJECTOR, Injector, Optional } from '@angular/core';
38
+ import { TestDefForm, ITestDefForm } from './test-def.form';
39
+ import { RxapFormBuilder, RXAP_FORM_DEFINITION_BUILDER, RXAP_FORM_DEFINITION, RXAP_FORM_INITIAL_STATE } from '@rxap/forms';
40
+
41
+ // rxap-no-index-export
42
+ export const FormProviders: Provider[] = [TestDefForm];
43
+ export const FormComponentProviders: Provider[] = [{
44
+ provide: RXAP_FORM_DEFINITION,
45
+ useFactory: FormFactory,
46
+ deps: [ INJECTOR,[ new Optional(), RXAP_FORM_INITIAL_STATE ] ]
47
+ }];
48
+ export const FormBuilderProviders: Provider[] = [{
49
+ provide: RXAP_FORM_DEFINITION_BUILDER,
50
+ useFactory: FormBuilderFactory,
51
+ deps: [ INJECTOR ]
52
+ }];
53
+
54
+ export function FormFactory(injector: Injector, state: ITestDefForm | null): TestDefForm {
55
+ return new RxapFormBuilder<ITestDefForm>(TestDefForm, injector).build(state ?? {});
56
+ }
57
+
58
+ function FormBuilderFactory(injector: Injector): RxapFormBuilder<ITestDefForm> {
59
+ return new RxapFormBuilder<ITestDefForm>(TestDefForm, injector);
60
+ }
61
+ ",
62
+ "/ui/lib/src/lib/test-def.form.ts": "import { FormType, RxapFormGroup, RxapForm } from '@rxap/forms';
63
+ import { Injectable } from '@angular/core';
64
+
65
+ @RxapForm('test-def')
66
+ @Injectable()
67
+ export class TestDefForm implements FormType<ITestDefForm> {
68
+ public readonly rxapFormGroup!: RxapFormGroup<ITestDefForm>;
69
+ }
70
+
71
+ export interface ITestDefForm {
72
+ }
73
+ ",
74
+ }
75
+ `;
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormDefinitionOptions should normalize complex form definition options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormGroupOptions should normalize complex form group options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeRouteComponentOptions should normalize complex route component options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeDialogTableActionOptions should normalize complex dialog table action options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormTableActionOptions should normalize complex form table action options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeNavigationTableActionOptions should normalize complex navigation table action options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeOpenApiTableActionOptions should normalize complex open-api table action options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeOperationTableActionOptions should normalize complex operation table action options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeFormTableHeaderButtonOptions should normalize complex form table header button options 1`] = `
4
4
  {
@@ -1,4 +1,4 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
1
+ // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2
2
 
3
3
  exports[`NormalizeMethodTableHeaderButtonOptions should normalize complex method table header button options 1`] = `
4
4
  {