@rxap/schematic-angular 16.2.0-dev.20 → 16.2.0-dev.21

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 (179) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +1 -1
  3. package/collection.json +10 -0
  4. package/package.json +4 -4
  5. package/src/lib/coerce-form-component.js +15 -3
  6. package/src/lib/coerce-form-component.js.map +1 -1
  7. package/src/lib/data-grid-item.d.ts +3 -3
  8. package/src/lib/data-grid-item.js +2 -2
  9. package/src/lib/data-grid-item.js.map +1 -1
  10. package/src/lib/form/abstract-control.d.ts +29 -0
  11. package/src/lib/form/abstract-control.js +37 -0
  12. package/src/lib/form/abstract-control.js.map +1 -0
  13. package/src/lib/form/array/base-form-array.d.ts +18 -0
  14. package/src/lib/form/array/base-form-array.js +40 -0
  15. package/src/lib/form/array/base-form-array.js.map +1 -0
  16. package/src/lib/form/array/form-array-kind.d.ts +3 -0
  17. package/src/lib/form/array/form-array-kind.js +8 -0
  18. package/src/lib/form/array/form-array-kind.js.map +1 -0
  19. package/src/lib/form/array/form-array.d.ts +12 -0
  20. package/src/lib/form/array/form-array.js +18 -0
  21. package/src/lib/form/array/form-array.js.map +1 -0
  22. package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
  23. package/src/lib/form/coerce-control-component-imports.js +18 -0
  24. package/src/lib/form/coerce-control-component-imports.js.map +1 -0
  25. package/src/lib/form/control/base-form-control.d.ts +14 -0
  26. package/src/lib/form/control/base-form-control.js +19 -0
  27. package/src/lib/form/control/base-form-control.js.map +1 -0
  28. package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
  29. package/src/lib/form/control/checkbox-form-control.js +23 -0
  30. package/src/lib/form/control/checkbox-form-control.js.map +1 -0
  31. package/src/lib/form/control/form-control-kind.d.ts +8 -0
  32. package/src/lib/form/control/form-control-kind.js +13 -0
  33. package/src/lib/form/control/form-control-kind.js.map +1 -0
  34. package/src/lib/form/control/form-control.d.ts +18 -0
  35. package/src/lib/form/control/form-control.js +40 -0
  36. package/src/lib/form/control/form-control.js.map +1 -0
  37. package/src/lib/form/control/form-field-form-control.d.ts +33 -0
  38. package/src/lib/form/control/form-field-form-control.js +76 -0
  39. package/src/lib/form/control/form-field-form-control.js.map +1 -0
  40. package/src/lib/form/control/input-form-control.d.ts +14 -0
  41. package/src/lib/form/control/input-form-control.js +71 -0
  42. package/src/lib/form/control/input-form-control.js.map +1 -0
  43. package/src/lib/form/control/select-form-control.d.ts +18 -0
  44. package/src/lib/form/control/select-form-control.js +29 -0
  45. package/src/lib/form/control/select-form-control.js.map +1 -0
  46. package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
  47. package/src/lib/form/control/slide-toggle-form-control.js +23 -0
  48. package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
  49. package/src/lib/form/control/table-select-form-control.d.ts +43 -0
  50. package/src/lib/form/control/table-select-form-control.js +69 -0
  51. package/src/lib/form/control/table-select-form-control.js.map +1 -0
  52. package/src/lib/form/control.d.ts +8 -0
  53. package/src/lib/form/control.js +38 -0
  54. package/src/lib/form/control.js.map +1 -0
  55. package/src/lib/form/generate-form-template.d.ts +2 -2
  56. package/src/lib/form/group/base-form-group.d.ts +17 -0
  57. package/src/lib/form/group/base-form-group.js +20 -0
  58. package/src/lib/form/group/base-form-group.js.map +1 -0
  59. package/src/lib/form/group/form-group-kind.d.ts +3 -0
  60. package/src/lib/form/group/form-group-kind.js +8 -0
  61. package/src/lib/form/group/form-group-kind.js.map +1 -0
  62. package/src/lib/form/group/form-group.d.ts +12 -0
  63. package/src/lib/form/group/form-group.js +18 -0
  64. package/src/lib/form/group/form-group.js.map +1 -0
  65. package/src/lib/table-column.d.ts +4 -3
  66. package/src/lib/table-column.js +5 -4
  67. package/src/lib/table-column.js.map +1 -1
  68. package/src/schema.json +1673 -1415
  69. package/src/schematic-input.schema.json +90 -156
  70. package/src/schematics/abstract-control.schema.json +78 -0
  71. package/src/schematics/accordion/accordion-component/schema.json +127 -127
  72. package/src/schematics/accordion/accordion-item-component/schema.json +18 -18
  73. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +602 -81
  74. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +76 -76
  75. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +486 -111
  76. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +458 -83
  77. package/src/schematics/base-form-array.schema.json +45 -0
  78. package/src/schematics/base-form-control.schema.json +27 -0
  79. package/src/schematics/base-form-group.schema.json +42 -0
  80. package/src/schematics/checkbox-form-control.schema.json +30 -0
  81. package/src/schematics/control.schema.json +26 -0
  82. package/src/schematics/data-grid-component/index.js +4 -0
  83. package/src/schematics/data-grid-component/index.js.map +1 -1
  84. package/src/schematics/data-grid-component/schema.json +602 -81
  85. package/src/schematics/data-grid-item.schema.json +3 -3
  86. package/src/schematics/form/control/input-form-control/index.d.ts +1 -1
  87. package/src/schematics/form/control/input-form-control/index.js +4 -4
  88. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  89. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -2
  90. package/src/schematics/form/control/input-form-control/schema.json +256 -86
  91. package/src/schematics/form/control/input-form-control/template.schema.json +16 -3
  92. package/src/schematics/form/control/select-form-control/index.d.ts +2 -2
  93. package/src/schematics/form/control/select-form-control/index.js +21 -14
  94. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  95. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
  96. package/src/schematics/form/control/select-form-control/schema.json +249 -90
  97. package/src/schematics/form/control/select-form-control/template.schema.json +16 -3
  98. package/src/schematics/form/control/table-select-form-control/index.d.ts +3 -9
  99. package/src/schematics/form/control/table-select-form-control/index.js +24 -18
  100. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  101. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -3
  102. package/src/schematics/form/control/table-select-form-control/schema.json +325 -123
  103. package/src/schematics/form/control/table-select-form-control/template.schema.json +16 -60
  104. package/src/schematics/form/form-array/index.d.ts +9 -0
  105. package/src/schematics/form/form-array/index.js +54 -0
  106. package/src/schematics/form/form-array/index.js.map +1 -0
  107. package/src/schematics/form/form-array/schema.d.ts +4 -0
  108. package/src/schematics/form/form-array/schema.json +823 -0
  109. package/src/schematics/form/form-array/template.schema.json +33 -0
  110. package/src/schematics/form/form-component/files/component/__componentName__.component.html.hbs +4 -1
  111. package/src/schematics/form/form-component/index.d.ts +2 -4
  112. package/src/schematics/form/form-component/index.js +8 -24
  113. package/src/schematics/form/form-component/index.js.map +1 -1
  114. package/src/schematics/form/form-component/schema.d.ts +2 -2
  115. package/src/schematics/form/form-component/schema.json +666 -86
  116. package/src/schematics/form/form-control/index.d.ts +3 -5
  117. package/src/schematics/form/form-control/index.js +8 -20
  118. package/src/schematics/form/form-control/index.js.map +1 -1
  119. package/src/schematics/form/form-control/schema.d.ts +2 -4
  120. package/src/schematics/form/form-control/schema.json +519 -62
  121. package/src/schematics/form/form-control/template.schema.json +1 -2
  122. package/src/schematics/form/form-definition/index.d.ts +2 -2
  123. package/src/schematics/form/form-definition/index.js +28 -15
  124. package/src/schematics/form/form-definition/index.js.map +1 -1
  125. package/src/schematics/form/form-definition/schema.d.ts +2 -2
  126. package/src/schematics/form/form-definition/schema.json +664 -60
  127. package/src/schematics/form/form-group/index.d.ts +9 -0
  128. package/src/schematics/form/form-group/index.js +54 -0
  129. package/src/schematics/form/form-group/index.js.map +1 -0
  130. package/src/schematics/form/form-group/schema.d.ts +4 -0
  131. package/src/schematics/form/form-group/schema.json +823 -0
  132. package/src/schematics/form/form-group/template.schema.json +33 -0
  133. package/src/schematics/form/templates/checkbox-form-control.hbs +1 -1
  134. package/src/schematics/form/templates/default-form-array.hbs +27 -0
  135. package/src/schematics/form/templates/default-form-group.hbs +13 -0
  136. package/src/schematics/form/templates/input-form-control.hbs +7 -7
  137. package/src/schematics/form/templates/select-form-control.hbs +5 -0
  138. package/src/schematics/form/templates/table-select-form-control.hbs +16 -16
  139. package/src/schematics/form-array.schema.json +40 -0
  140. package/src/schematics/form-control.schema.json +64 -55
  141. package/src/schematics/form-definition.schema.json +3 -3
  142. package/src/schematics/form-group.schema.json +40 -0
  143. package/src/schematics/input-form-control.schema.json +10 -6
  144. package/src/schematics/select-form-control.schema.json +8 -4
  145. package/src/schematics/slide-toggle-form-control.schema.json +30 -0
  146. package/src/schematics/table/action/dialog-table-action/schema.json +20 -20
  147. package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
  148. package/src/schematics/table/action/form-table-action/index.js +3 -4
  149. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  150. package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
  151. package/src/schematics/table/action/form-table-action/schema.json +667 -87
  152. package/src/schematics/table/action/navigation-table-action/schema.json +20 -20
  153. package/src/schematics/table/action/open-api-table-action/schema.json +20 -20
  154. package/src/schematics/table/action/operation-table-action/schema.json +20 -20
  155. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
  156. package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
  157. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  158. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
  159. package/src/schematics/table/header-button/form-table-header-button/schema.json +735 -81
  160. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +4 -22
  161. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +20 -20
  162. package/src/schematics/table/table-action/schema.json +47 -47
  163. package/src/schematics/table/table-component/index.d.ts +2 -2
  164. package/src/schematics/table/table-component/schema.json +470 -95
  165. package/src/schematics/table/table-header-button/schema.json +40 -40
  166. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +1 -1
  167. package/src/schematics/table/tree-table-component/schema.json +453 -78
  168. package/src/schematics/table-select-form-control.schema.json +96 -0
  169. package/src/schematics/textarea-form-control.schema.json +32 -0
  170. package/src/template.schema.json +39 -0
  171. package/src/lib/form-component-control.d.ts +0 -8
  172. package/src/lib/form-component-control.js +0 -15
  173. package/src/lib/form-component-control.js.map +0 -1
  174. package/src/lib/form-control.d.ts +0 -136
  175. package/src/lib/form-control.js +0 -265
  176. package/src/lib/form-control.js.map +0 -1
  177. package/src/lib/form-definition-control.d.ts +0 -5
  178. package/src/lib/form-definition-control.js +0 -30
  179. package/src/lib/form-definition-control.js.map +0 -1
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-group-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/formGroup"
10
+ },
11
+ {
12
+ "type": "object",
13
+ "properties": {
14
+ "formName": {
15
+ "alias": "form",
16
+ "type": "string",
17
+ "description": "The name of the form where the form control should be added"
18
+ }
19
+ },
20
+ "required": [
21
+ "formName"
22
+ ]
23
+ }
24
+ ],
25
+ "definitions": {
26
+ "angular": {
27
+ "$ref": "../../angular.schema.json"
28
+ },
29
+ "formGroup": {
30
+ "$ref": "../../form-group.schema.json"
31
+ }
32
+ }
33
+ }
@@ -1,6 +1,6 @@
1
1
 
2
2
  <mat-checkbox
3
- indeterminate
3
+ [indeterminate]="true"
4
4
  formControlName="{{control.name}}"
5
5
  labelPosition="{{control.labelPosition}}"
6
6
  {{#if parentControlContainer}}parentControlContainer{{/if~}}
@@ -0,0 +1,27 @@
1
+
2
+ <fieldset
3
+ formArrayName="{{control.name}}"
4
+ class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
5
+ {{#if parentControlContainer}}parentControlContainer{{/if~}}
6
+ >
7
+ {{#if control.legend}}
8
+ <legend class="text-sm" i18n>{{control.legend}}</legend>
9
+ {{/if}}
10
+ <button i18n mat-stroked-button rxapFormArrayItemAddButton>Add new entry</button>
11
+ <ng-container *rxapForFormArrayItem="let group">
12
+ <fieldset [formGroup]="group" class="flex flex-row gap-4 items-center border border-solid border-gray-300 p-3" rxapFormArrayRemovable>
13
+ {{#if control.groupLegend}}
14
+ <legend class="text-sm" i18n>{{control.groupLegend}}</legend>
15
+ {{/if}}
16
+ {{#each control.controlList}}
17
+ {{indent (compile this.handlebars control=this prefix=../prefix) 6}}
18
+ {{/each}}
19
+ <button color="warn" mat-icon-button rxapFormArrayItemRemoveButton>
20
+ <mat-icon>do_not_disturb_on</mat-icon>
21
+ </button>
22
+ <button color="accent" mat-icon-button rxapFormArrayItemRestoreButton>
23
+ <mat-icon>settings_backup_restore</mat-icon>
24
+ </button>
25
+ </fieldset>
26
+ </ng-container>
27
+ </fieldset>
@@ -0,0 +1,13 @@
1
+
2
+ <fieldset
3
+ formGroupName="{{control.name}}"
4
+ class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
5
+ {{#if parentControlContainer}}parentControlContainer{{/if~}}
6
+ >
7
+ {{#if control.legend}}
8
+ <legend class="text-sm" i18n>{{control.legend}}</legend>
9
+ {{/if}}
10
+ {{#each control.controlList}}
11
+ {{indent (compile this.handlebars control=this prefix=../prefix) 2}}
12
+ {{/each}}
13
+ </fieldset>
@@ -1,9 +1,9 @@
1
1
  {{#> matFormField control=control}}
2
- <input
3
- matInput
4
- formControlName="{{control.name}}"
5
- type="{{control.inputType}}"
6
- {{#if parentControlContainer}}parentControlContainer{{/if~}}
7
- {{#if control.placeholder}}i18n-placeholder placeholder="{{control.placeholder}}"{{/if~}}
8
- />
2
+ <input
3
+ matInput
4
+ formControlName="{{control.name}}"
5
+ type="{{control.inputType}}"
6
+ {{#if parentControlContainer}}parentControlContainer{{/if~}}
7
+ {{#if control.placeholder}}i18n-placeholder placeholder="{{control.placeholder}}"{{/if~}}
8
+ />
9
9
  {{/matFormField}}
@@ -0,0 +1,5 @@
1
+ {{#> matFormField control=control}}
2
+ <mat-select formControlName="{{control.name}}"{{#if parentControlContainer}} parentControlContainer{{/if}}>
3
+ <mat-option *rxapInputSelectOptions="let option" [value]="option.value">\{{option.display}}</mat-option>
4
+ </mat-select>
5
+ {{/matFormField}}
@@ -1,18 +1,18 @@
1
1
  {{#> matFormField control=control}}
2
- <eurogard-table-select-input
3
- eurogardOpenTableSelectWindow
4
- formControlName="{{control.name}}"
5
- {{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
6
- {{#if parentControlContainer}}parentControlContainer{{/if~}}
7
- >
8
- </eurogard-table-select-input>
9
- <button
10
- eurogardOpenTableSelectWindow
11
- mat-icon-button
12
- matPrefix
13
- tabindex="-1"
14
- {{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
15
- >
16
- <mat-icon svgIcon="table-eye"></mat-icon>
17
- </button>
2
+ <eurogard-table-select-input
3
+ eurogardOpenTableSelectWindow
4
+ formControlName="{{control.name}}"
5
+ {{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
6
+ {{#if parentControlContainer}}parentControlContainer{{/if~}}
7
+ >
8
+ </eurogard-table-select-input>
9
+ <button
10
+ eurogardOpenTableSelectWindow
11
+ mat-icon-button
12
+ matPrefix
13
+ tabindex="-1"
14
+ {{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
15
+ >
16
+ <mat-icon svgIcon="table-eye"></mat-icon>
17
+ </button>
18
18
  {{/matFormField}}
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-array",
4
+ "allOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "role": {
9
+ "type": "string",
10
+ "const": "array"
11
+ }
12
+ }
13
+ },
14
+ {
15
+ "oneOf": [
16
+ {
17
+ "allOf": [
18
+ {
19
+ "$ref": "#/definitions/baseFormArray"
20
+ },
21
+ {
22
+ "type": "object",
23
+ "properties": {
24
+ "kind": {
25
+ "type": "string",
26
+ "const": "default"
27
+ }
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "definitions": {
36
+ "baseFormArray": {
37
+ "$ref": "./base-form-array.schema.json"
38
+ }
39
+ }
40
+ }
@@ -1,68 +1,77 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
3
  "$id": "form-control",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "type": "string",
8
- "description": "The name of the control"
4
+ "allOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "role": {
9
+ "type": "string",
10
+ "const": "control",
11
+ "default": "control"
12
+ }
13
+ }
9
14
  },
10
- "type": {
11
- "$ref": "#/definitions/type"
15
+ {
16
+ "oneOf": [
17
+ {
18
+ "allOf": [
19
+ {
20
+ "$ref": "#/definitions/baseFormControl"
21
+ },
22
+ {
23
+ "type": "object",
24
+ "properties": {
25
+ "kind": {
26
+ "type": "string",
27
+ "const": "default"
28
+ }
29
+ }
30
+ }
31
+ ]
32
+ },
33
+ {
34
+ "$ref": "#/definitions/inputFormControl"
35
+ },
36
+ {
37
+ "$ref": "#/definitions/selectFormControl"
38
+ },
39
+ {
40
+ "$ref": "#/definitions/checkboxFormControl"
41
+ },
42
+ {
43
+ "$ref": "#/definitions/textareaFormControl"
44
+ },
45
+ {
46
+ "$ref": "#/definitions/tableSelectFormControl"
47
+ },
48
+ {
49
+ "$ref": "#/definitions/slideToggleFormControl"
50
+ }
51
+ ]
52
+ }
53
+ ],
54
+ "definitions": {
55
+ "baseFormControl": {
56
+ "$ref": "./base-form-control.schema.json"
12
57
  },
13
- "isArray": {
14
- "type": "boolean",
15
- "description": "Whether the control value is an array",
16
- "default": false
58
+ "inputFormControl": {
59
+ "$ref": "./input-form-control.schema.json"
17
60
  },
18
- "state": {
19
- "type": "string",
20
- "description": "The initial state of the control"
61
+ "selectFormControl": {
62
+ "$ref": "./select-form-control.schema.json"
21
63
  },
22
- "isRequired": {
23
- "type": "boolean",
24
- "description": "Whether the control value is required",
25
- "default": false
64
+ "checkboxFormControl": {
65
+ "$ref": "./checkbox-form-control.schema.json"
26
66
  },
27
- "isReadonly": {
28
- "type": "boolean",
29
- "description": "Whether the control value is readonly",
30
- "default": false
67
+ "textareaFormControl": {
68
+ "$ref": "./textarea-form-control.schema.json"
31
69
  },
32
- "isDisabled": {
33
- "type": "boolean",
34
- "description": "Whether the control value is disabled",
35
- "default": false
70
+ "tableSelectFormControl": {
71
+ "$ref": "./table-select-form-control.schema.json"
36
72
  },
37
- "validatorList": {
38
- "type": "array",
39
- "items": {
40
- "type": "string"
41
- }
42
- },
43
- "kind": {
44
- "type": "string",
45
- "description": "The name of the template",
46
- "enum": [
47
- "default",
48
- "input",
49
- "select",
50
- "checkbox",
51
- "autocomplete-table-select",
52
- "table-select",
53
- "textarea",
54
- "slide-toggle"
55
- ],
56
- "default": "default"
57
- }
58
- },
59
- "required": [
60
- "name"
61
- ],
62
- "additionalProperties": true,
63
- "definitions": {
64
- "type": {
65
- "$ref": "./type.schema.json"
73
+ "slideToggleFormControl": {
74
+ "$ref": "./slide-toggle-form-control.schema.json"
66
75
  }
67
76
  }
68
77
  }
@@ -7,7 +7,7 @@
7
7
  "alias": "control",
8
8
  "type": "array",
9
9
  "items": {
10
- "$ref": "#/definitions/formControl"
10
+ "$ref": "#/definitions/control"
11
11
  }
12
12
  }
13
13
  },
@@ -15,8 +15,8 @@
15
15
  "controlList"
16
16
  ],
17
17
  "definitions": {
18
- "formControl": {
19
- "$ref": "./form-control.schema.json"
18
+ "control": {
19
+ "$ref": "./control.schema.json"
20
20
  }
21
21
  }
22
22
  }
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-group",
4
+ "allOf": [
5
+ {
6
+ "type": "object",
7
+ "properties": {
8
+ "role": {
9
+ "type": "string",
10
+ "const": "group"
11
+ }
12
+ }
13
+ },
14
+ {
15
+ "oneOf": [
16
+ {
17
+ "allOf": [
18
+ {
19
+ "$ref": "#/definitions/baseFormGroup"
20
+ },
21
+ {
22
+ "type": "object",
23
+ "properties": {
24
+ "kind": {
25
+ "type": "string",
26
+ "const": "default"
27
+ }
28
+ }
29
+ }
30
+ ]
31
+ }
32
+ ]
33
+ }
34
+ ],
35
+ "definitions": {
36
+ "baseFormGroup": {
37
+ "$ref": "./base-form-group.schema.json"
38
+ }
39
+ }
40
+ }
@@ -3,11 +3,18 @@
3
3
  "$id": "input-form-control",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "#/definitions/formControl"
6
+ "$ref": "#/definitions/baseFormControl"
7
7
  },
8
8
  {
9
9
  "type": "object",
10
10
  "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "input"
14
+ },
15
+ "formField": {
16
+ "$ref": "#/definitions/formField"
17
+ },
11
18
  "inputType": {
12
19
  "type": "string",
13
20
  "enum": [
@@ -37,9 +44,6 @@
37
44
  },
38
45
  "placeholder": {
39
46
  "type": "string"
40
- },
41
- "formField": {
42
- "$ref": "#/definitions/formField"
43
47
  }
44
48
  }
45
49
  }
@@ -48,8 +52,8 @@
48
52
  "formField": {
49
53
  "$ref": "./form-field.schema.json"
50
54
  },
51
- "formControl": {
52
- "$ref": "./form-control.schema.json"
55
+ "baseFormControl": {
56
+ "$ref": "./base-form-control.schema.json"
53
57
  }
54
58
  }
55
59
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "select-form-control",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "#/definitions/formControl"
6
+ "$ref": "#/definitions/baseFormControl"
7
7
  },
8
8
  {
9
9
  "type": "object",
@@ -11,7 +11,11 @@
11
11
  "formField": {
12
12
  "$ref": "#/definitions/formField"
13
13
  },
14
- "options": {
14
+ "kind": {
15
+ "type": "string",
16
+ "const": "select"
17
+ },
18
+ "optionList": {
15
19
  "type": "array",
16
20
  "items": {
17
21
  "type": "object",
@@ -57,8 +61,8 @@
57
61
  "formField": {
58
62
  "$ref": "./form-field.schema.json"
59
63
  },
60
- "formControl": {
61
- "$ref": "./form-control.schema.json"
64
+ "baseFormControl": {
65
+ "$ref": "./base-form-control.schema.json"
62
66
  }
63
67
  }
64
68
  }
@@ -0,0 +1,30 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "slide-toggle-form-control",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseFormControl"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "slide-toggle"
14
+ },
15
+ "labelPosition": {
16
+ "type": "string",
17
+ "enum": [
18
+ "before",
19
+ "after"
20
+ ]
21
+ }
22
+ }
23
+ }
24
+ ],
25
+ "definitions": {
26
+ "baseFormControl": {
27
+ "$ref": "./base-form-control.schema.json"
28
+ }
29
+ }
30
+ }
@@ -51,26 +51,6 @@
51
51
  }
52
52
  ],
53
53
  "definitions": {
54
- "tableActionSchematic": {
55
- "allOf": [
56
- {
57
- "$ref": "#/definitions/angular"
58
- },
59
- {
60
- "$ref": "#/definitions/tableAction"
61
- },
62
- {
63
- "type": "object",
64
- "properties": {
65
- "tableName": {
66
- "alias": "table",
67
- "type": "string",
68
- "description": "The name of the table action"
69
- }
70
- }
71
- }
72
- ]
73
- },
74
54
  "angular": {
75
55
  "allOf": [
76
56
  {
@@ -227,6 +207,26 @@
227
207
  "required": [
228
208
  "type"
229
209
  ]
210
+ },
211
+ "tableActionSchematic": {
212
+ "allOf": [
213
+ {
214
+ "$ref": "#/definitions/angular"
215
+ },
216
+ {
217
+ "$ref": "#/definitions/tableAction"
218
+ },
219
+ {
220
+ "type": "object",
221
+ "properties": {
222
+ "tableName": {
223
+ "alias": "table",
224
+ "type": "string",
225
+ "description": "The name of the table action"
226
+ }
227
+ }
228
+ }
229
+ ]
230
230
  }
231
231
  }
232
232
  }
@@ -1,13 +1,13 @@
1
1
  import { Rule, Tree } from '@angular-devkit/schematics';
2
2
  import { Normalized } from '@rxap/utilities';
3
3
  import { OptionalKind, SourceFile, TypeAliasDeclarationStructure } from 'ts-morph';
4
- import { NormalizedFormComponentControl } from '../../../../lib/form-component-control';
4
+ import { NormalizedControl } from '../../../../lib/form/control';
5
5
  import { NormalizedOperationTableActionOptions } from '../operation-table-action';
6
6
  import { FormTableActionOptions } from './schema';
7
7
  export interface NormalizedFormTableActionOptions extends Omit<Readonly<Normalized<FormTableActionOptions> & NormalizedOperationTableActionOptions>, 'formOptions'> {
8
8
  formComponent: string;
9
9
  formOptions: {
10
- controlList: ReadonlyArray<NormalizedFormComponentControl>;
10
+ controlList: ReadonlyArray<NormalizedControl>;
11
11
  role: string | null;
12
12
  window: boolean;
13
13
  };
@@ -9,8 +9,7 @@ const path_1 = require("path");
9
9
  const angular_options_1 = require("../../../../lib/angular-options");
10
10
  const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
11
11
  const backend_types_1 = require("../../../../lib/backend-types");
12
- const form_component_control_1 = require("../../../../lib/form-component-control");
13
- const index_1 = require("../../../form/form-component/index");
12
+ const control_1 = require("../../../../lib/form/control");
14
13
  const operation_table_action_1 = require("../operation-table-action");
15
14
  function NormalizeFormTableActionOptions(options) {
16
15
  var _a, _b, _c, _d, _e, _f, _g;
@@ -25,7 +24,7 @@ function NormalizeFormTableActionOptions(options) {
25
24
  }), formComponent: (0, utilities_1.CoerceSuffix)((0, utilities_1.dasherize)((_d = options.formComponent) !== null && _d !== void 0 ? _d : type), '-form'), loadFrom: Object.keys(loadFrom !== null && loadFrom !== void 0 ? loadFrom : {}).length ? loadFrom : null, formInitial: Object.keys(formInitial !== null && formInitial !== void 0 ? formInitial : {}).length ? formInitial : null, customComponent: (_e = options.customComponent) !== null && _e !== void 0 ? _e : false, formOptions: {
26
25
  window: (_f = formOptions.window) !== null && _f !== void 0 ? _f : true,
27
26
  role: (_g = formOptions.role) !== null && _g !== void 0 ? _g : type,
28
- controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(formOptions.controlList),
27
+ controlList: (0, control_1.NormalizeControlList)(formOptions.controlList),
29
28
  } });
30
29
  }
31
30
  exports.NormalizeFormTableActionOptions = NormalizeFormTableActionOptions;
@@ -78,7 +77,7 @@ function nestjsBackendRule(normalizedOptions) {
78
77
  const { className, filePath, } = (0, schematics_ts_morph_1.CoerceDtoClass)({
79
78
  project,
80
79
  name: controllerName,
81
- propertyList: (_b = (_a = normalizedOptions.formOptions) === null || _a === void 0 ? void 0 : _a.controlList.map(control => (0, index_1.FormComponentControlToDtoClassProperty)(control))) !== null && _b !== void 0 ? _b : [],
80
+ propertyList: (_b = (_a = normalizedOptions.formOptions) === null || _a === void 0 ? void 0 : _a.controlList.map(control => (0, control_1.ControlToDtoClassProperty)(control))) !== null && _b !== void 0 ? _b : [],
82
81
  });
83
82
  (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
84
83
  namedImports: [className],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/form-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAemC;AACnC,qEAA8D;AAC9D,+CAKyB;AACzB,+BAA4B;AAO5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA6D;AAC7D,mFAGgD;AAChD,8DAA4F;AAC5F,sEAGmC;AAcnC,SAAgB,+BAA+B,CAC7C,OAAyC;;IAEzC,MAAM,iBAAiB,GAAG,IAAA,6DAAoC,EAAC,OAAO,CAAC,CAAC;IACxE,MAAM,EACJ,cAAc,EACd,IAAI,EACJ,UAAU,EACV,SAAS,GACV,GAAG,iBAAiB,CAAC;IACtB,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,CAAC;IAC1C,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,IAAI,CAAC;IAChD,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,EAAE,CAAC;IAC9C,uCACK,iBAAiB,KACpB,cAAc,EAAE,IAAA,6CAAuB,EAAC;YACtC,UAAU;YACV,cAAc,EAAE,CAAE,IAAI,EAAE,QAAQ,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC;SAC7C,CAAC,EACF,aAAa,EAAE,IAAA,wBAAY,EAAC,IAAA,qBAAS,EAAC,MAAA,OAAO,CAAC,aAAa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AAA,qBAAS,EACjE,aAAa,CAAE,gBAAgB;4BACjC,YAAY,EAAE,CAAE,OAAQ,IAAA,oBAAQ,EAAC,aAAa,CAAE,cAAc,CAAE;yBACjE;qBACF,CACF,CAAC;gBACJ,CAAC;aACF,CAAC;SACH,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE;YACpB,QAAQ,CAAC,IAAI,CACX,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,EAClD,IAAA,uCAAgB,EAAC,gBAAgB,kCAC5B,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,KACpB,OAAO,EACP,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,EACzC,OAAO;gBACP,SAAS;gBACT,MAAM;gBACN,UAAU;gBACV,cAAc;gBACd,SAAS;gBACT,OAAO;gBACP,OAAO,IACP,EACF,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAC3C,WAAW,CAAC,iBAAiB,CAAC,CAC/B,CAAC;SACH;QAED,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAExC,OAAO,IAAA,kBAAK,EAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC;AA3GD,4BA2GC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/form-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAemC;AACnC,qEAA8D;AAC9D,+CAKyB;AACzB,+BAA4B;AAO5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA6D;AAC7D,0DAIsC;AACtC,sEAGmC;AAcnC,SAAgB,+BAA+B,CAC7C,OAAyC;;IAEzC,MAAM,iBAAiB,GAAG,IAAA,6DAAoC,EAAC,OAAO,CAAC,CAAC;IACxE,MAAM,EACJ,cAAc,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AAC,QAAQ,EAAE,CAAC,CAAC;QAExC,OAAO,IAAA,kBAAK,EAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC;AA3GD,4BA2GC"}
@@ -1,5 +1,5 @@
1
1
  import { LoadFromTableActionOptions } from '@rxap/schematics-ts-morph';
2
- import { FormComponentControl } from '../../../../lib/form-component-control';
2
+ import { Control } from '../../../../lib/form/control';
3
3
  import { OperationTableActionOptions } from '../operation-table-action/schema';
4
4
 
5
5
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
@@ -9,7 +9,7 @@ export interface FormTableActionOptions extends OperationTableActionOptions {
9
9
  formComponent?: string;
10
10
  customComponent: boolean;
11
11
  formOptions?: {
12
- controlList?: Array<FormComponentControl>;
12
+ controlList?: Array<Control>;
13
13
  role?: string;
14
14
  window?: boolean;
15
15
  };