@rxap/schematic-angular 16.2.0-dev.13 → 16.2.0-dev.15

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 (124) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/package.json +2 -2
  3. package/src/lib/accordion-item.d.ts +13 -6
  4. package/src/lib/accordion-item.js +10 -1
  5. package/src/lib/accordion-item.js.map +1 -1
  6. package/src/lib/coerce-accordion-component.js +1 -1
  7. package/src/lib/coerce-accordion-component.js.map +1 -1
  8. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  9. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  10. package/src/lib/data-grid-item.js +3 -0
  11. package/src/lib/data-grid-item.js.map +1 -1
  12. package/src/lib/data-grid-options.d.ts +3 -0
  13. package/src/lib/data-grid-options.js +2 -0
  14. package/src/lib/data-grid-options.js.map +1 -1
  15. package/src/lib/form-control.d.ts +2 -2
  16. package/src/lib/form-control.js +14 -43
  17. package/src/lib/form-control.js.map +1 -1
  18. package/src/lib/minimum-table-component-options.js +2 -2
  19. package/src/lib/minimum-table-component-options.js.map +1 -1
  20. package/src/lib/table-column.d.ts +9 -5
  21. package/src/lib/table-column.js +37 -59
  22. package/src/lib/table-column.js.map +1 -1
  23. package/src/schema.json +2347 -0
  24. package/src/schematic-input.schema.json +607 -0
  25. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  26. package/src/schematics/accordion/accordion-component/index.js +51 -25
  27. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  28. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  29. package/src/schematics/accordion/accordion-component/schema.json +183 -360
  30. package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
  31. package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
  32. package/src/schematics/accordion/accordion-item-component/index.js +70 -49
  33. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  34. package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
  35. package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
  36. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  37. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +21 -25
  38. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  39. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +321 -429
  40. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
  41. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  42. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +14 -6
  43. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  44. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
  45. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
  46. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  47. package/src/schematics/accordion/item/accordion-item-table-component/index.js +11 -13
  48. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  49. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +453 -614
  50. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
  51. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  52. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +37 -61
  53. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +431 -592
  55. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
  56. package/src/schematics/accordion-identifier.schema.json +25 -0
  57. package/src/schematics/accordion-item.schema.json +24 -0
  58. package/src/schematics/angular.schema.json +11 -3
  59. package/src/schematics/button.schema.json +1 -1
  60. package/src/schematics/data-grid-component/index.js +17 -16
  61. package/src/schematics/data-grid-component/index.js.map +1 -1
  62. package/src/schematics/data-grid-component/schema.json +212 -378
  63. package/src/schematics/data-grid-component/template.schema.json +6 -15
  64. package/src/schematics/data-grid-item.schema.json +4 -1
  65. package/src/schematics/data-grid.schema.json +10 -4
  66. package/src/schematics/dialog-component/schema.json +72 -158
  67. package/src/schematics/dialog-component/template.schema.json +3 -6
  68. package/src/schematics/form/control/input-form-control/schema.json +108 -306
  69. package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
  70. package/src/schematics/form/control/select-form-control/schema.json +120 -307
  71. package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
  72. package/src/schematics/form/control/table-select-form-control/index.js +1 -1
  73. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  74. package/src/schematics/form/control/table-select-form-control/schema.json +93 -296
  75. package/src/schematics/form/control/table-select-form-control/template.schema.json +3 -6
  76. package/src/schematics/form/form-component/schema.json +136 -238
  77. package/src/schematics/form/form-component/template.schema.json +6 -9
  78. package/src/schematics/form/form-control/schema.json +68 -176
  79. package/src/schematics/form/form-control/template.schema.json +6 -9
  80. package/src/schematics/form/form-definition/schema.json +125 -230
  81. package/src/schematics/form/form-definition/template.schema.json +6 -9
  82. package/src/schematics/form-component.schema.json +3 -3
  83. package/src/schematics/form-definition.schema.json +3 -3
  84. package/src/schematics/general.schema.json +1 -4
  85. package/src/schematics/input-form-control.schema.json +11 -3
  86. package/src/schematics/minimum-table.schema.json +11 -5
  87. package/src/schematics/pipe.schema.json +1 -1
  88. package/src/schematics/select-form-control.schema.json +15 -4
  89. package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
  90. package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
  91. package/src/schematics/table/action/form-table-action/schema.json +283 -321
  92. package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
  93. package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
  94. package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
  95. package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
  96. package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
  97. package/src/schematics/table/action/operation-table-action/schema.json +138 -218
  98. package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
  99. package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
  100. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
  101. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
  102. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
  103. package/src/schematics/table/table-action/schema.json +56 -139
  104. package/src/schematics/table/table-action/template.schema.json +6 -6
  105. package/src/schematics/table/table-component/index.d.ts +1 -1
  106. package/src/schematics/table/table-component/index.js +2 -0
  107. package/src/schematics/table/table-component/index.js.map +1 -1
  108. package/src/schematics/table/table-component/schema.json +352 -547
  109. package/src/schematics/table/table-component/template.schema.json +6 -18
  110. package/src/schematics/table/table-header-button/schema.json +56 -139
  111. package/src/schematics/table/table-header-button/template.schema.json +6 -6
  112. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
  113. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  114. package/src/schematics/table/tree-table-component/index.js +11 -3
  115. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  116. package/src/schematics/table/tree-table-component/schema.json +352 -547
  117. package/src/schematics/table/tree-table-component/template.schema.json +6 -18
  118. package/src/schematics/table-column.schema.json +4 -1
  119. package/src/schematics/table.schema.json +4 -1
  120. package/src/schematics/tree-component/schema.json +70 -62
  121. package/src/schematics/tree-component/template.schema.json +7 -2
  122. package/src/schematics/tree-table.schema.json +3 -3
  123. package/src/schematics/value.schema.json +1 -1
  124. package/src/template.schema.json +173 -0
@@ -3,160 +3,17 @@
3
3
  "$id": "operation-table-action-schematic",
4
4
  "allOf": [
5
5
  {
6
+ "$ref": "#/definitions/tableActionSchematic"
7
+ }
8
+ ],
9
+ "definitions": {
10
+ "tableActionSchematic": {
6
11
  "allOf": [
7
12
  {
8
- "allOf": [
9
- {
10
- "type": "object",
11
- "properties": {
12
- "project": {
13
- "type": "string",
14
- "description": "Project name where the files should be generated"
15
- },
16
- "feature": {
17
- "type": "string",
18
- "description": "Feature name where the files should be generated"
19
- },
20
- "overwrite": {
21
- "anyOf": [
22
- {
23
- "type": "boolean"
24
- },
25
- {
26
- "type": "array",
27
- "items": {
28
- "type": "string"
29
- }
30
- }
31
- ],
32
- "description": "Overwrite existing files",
33
- "default": false
34
- },
35
- "overwriteHtml": {
36
- "type": "boolean",
37
- "default": false
38
- },
39
- "replace": {
40
- "type": "boolean",
41
- "default": false
42
- }
43
- },
44
- "required": [
45
- "project"
46
- ]
47
- },
48
- {
49
- "type": "object",
50
- "properties": {
51
- "componentName": {
52
- "type": "string"
53
- },
54
- "name": {
55
- "type": "string"
56
- },
57
- "context": {
58
- "type": "string",
59
- "description": "The context use to generate proper names for class, files, etc"
60
- },
61
- "nestModule": {
62
- "type": "string",
63
- "description": "The module name for the table nest operations"
64
- },
65
- "controllerName": {
66
- "type": "string"
67
- },
68
- "backend": {
69
- "type": "string",
70
- "description": "The backend that should be used to handel data",
71
- "enum": [
72
- "none",
73
- "nestjs",
74
- "open-api",
75
- "local"
76
- ],
77
- "default": "none"
78
- },
79
- "directory": {
80
- "type": "string",
81
- "description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
82
- },
83
- "shared": {
84
- "type": "boolean",
85
- "description": "Whether the generated code is used across the project",
86
- "default": false
87
- },
88
- "scope": {
89
- "type": "string"
90
- },
91
- "prefix": {
92
- "type": "string"
93
- },
94
- "openApi": {
95
- "type": "object",
96
- "additionalProperties": true
97
- }
98
- }
99
- }
100
- ]
13
+ "$ref": "#/definitions/angular"
101
14
  },
102
15
  {
103
- "type": "object",
104
- "properties": {
105
- "type": {
106
- "type": "string"
107
- },
108
- "refresh": {
109
- "type": "boolean"
110
- },
111
- "confirm": {
112
- "type": "boolean"
113
- },
114
- "tooltip": {
115
- "type": "string"
116
- },
117
- "errorMessage": {
118
- "type": "string"
119
- },
120
- "successMessage": {
121
- "type": "string"
122
- },
123
- "priority": {
124
- "type": "number"
125
- },
126
- "checkFunction": {
127
- "type": "string"
128
- },
129
- "inHeader": {
130
- "type": "boolean"
131
- },
132
- "role": {
133
- "type": "string"
134
- },
135
- "icon": {
136
- "type": "string"
137
- },
138
- "svgIcon": {
139
- "type": "string"
140
- },
141
- "permission": {
142
- "type": "string"
143
- },
144
- "color": {
145
- "type": "string",
146
- "description": "Value for the color input of the mat-button / mat-icon component"
147
- },
148
- "cssClass": {
149
- "type": "string",
150
- "description": "Additional CSS classes added to the button element"
151
- },
152
- "options": {
153
- "type": "object",
154
- "additionalProperties": true
155
- }
156
- },
157
- "required": [
158
- "type"
159
- ]
16
+ "$ref": "#/definitions/tableAction"
160
17
  },
161
18
  {
162
19
  "type": "object",
@@ -169,100 +26,163 @@
169
26
  }
170
27
  }
171
28
  ]
172
- }
173
- ],
174
- "definitions": {
175
- "type": {
176
- "oneOf": [
29
+ },
30
+ "angular": {
31
+ "allOf": [
177
32
  {
178
- "type": "string"
33
+ "$ref": "#/definitions/general"
179
34
  },
180
35
  {
181
36
  "type": "object",
182
37
  "properties": {
38
+ "componentName": {
39
+ "type": "string"
40
+ },
183
41
  "name": {
184
42
  "type": "string"
185
43
  },
186
- "isTypeOnly": {
187
- "type": "boolean"
44
+ "context": {
45
+ "type": "string",
46
+ "description": "The context use to generate proper names for class, files, etc"
188
47
  },
189
- "moduleSpecifier": {
190
- "type": "string"
48
+ "nestModule": {
49
+ "type": "string",
50
+ "description": "The module name for the table nest operations"
191
51
  },
192
- "namedImport": {
52
+ "controllerName": {
193
53
  "type": "string"
194
54
  },
195
- "namespaceImport": {
55
+ "backend": {
56
+ "$ref": "#/definitions/backend"
57
+ },
58
+ "directory": {
59
+ "type": "string",
60
+ "description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
61
+ },
62
+ "shared": {
63
+ "type": "boolean",
64
+ "description": "Whether the generated code is used across the project",
65
+ "default": false
66
+ },
67
+ "scope": {
196
68
  "type": "string"
197
69
  },
198
- "defaultImport": {
70
+ "prefix": {
199
71
  "type": "string"
72
+ },
73
+ "openApi": {
74
+ "type": "object",
75
+ "additionalProperties": true
200
76
  }
201
- },
202
- "required": [
203
- "name"
204
- ]
77
+ }
205
78
  }
206
79
  ]
207
80
  },
208
- "property": {
209
- "oneOf": [
210
- {
211
- "type": "string"
212
- },
213
- {
214
- "type": "object",
215
- "properties": {
216
- "name": {
217
- "type": "string"
218
- },
219
- "type": {
220
- "$ref": "#/definitions/type"
221
- },
222
- "isArray": {
223
- "type": "boolean"
224
- }
225
- },
226
- "required": [
227
- "name"
228
- ]
229
- }
81
+ "backend": {
82
+ "type": "string",
83
+ "description": "The backend that should be used to handel data",
84
+ "enum": [
85
+ "none",
86
+ "nestjs",
87
+ "open-api",
88
+ "local"
230
89
  ],
231
- "definitions": {
232
- "type": {
233
- "oneOf": [
90
+ "default": "none"
91
+ },
92
+ "general": {
93
+ "type": "object",
94
+ "properties": {
95
+ "project": {
96
+ "type": "string",
97
+ "description": "Project name where the files should be generated"
98
+ },
99
+ "feature": {
100
+ "type": "string",
101
+ "description": "Feature name where the files should be generated"
102
+ },
103
+ "overwrite": {
104
+ "anyOf": [
234
105
  {
235
- "type": "string"
106
+ "type": "boolean"
236
107
  },
237
108
  {
238
- "type": "object",
239
- "properties": {
240
- "name": {
241
- "type": "string"
242
- },
243
- "isTypeOnly": {
244
- "type": "boolean"
245
- },
246
- "moduleSpecifier": {
247
- "type": "string"
248
- },
249
- "namedImport": {
250
- "type": "string"
251
- },
252
- "namespaceImport": {
253
- "type": "string"
254
- },
255
- "defaultImport": {
256
- "type": "string"
257
- }
258
- },
259
- "required": [
260
- "name"
261
- ]
109
+ "type": "array",
110
+ "items": {
111
+ "type": "string"
112
+ }
262
113
  }
263
- ]
114
+ ],
115
+ "description": "Overwrite existing files",
116
+ "default": false
117
+ },
118
+ "overwriteHtml": {
119
+ "type": "boolean",
120
+ "default": false
121
+ },
122
+ "replace": {
123
+ "type": "boolean",
124
+ "default": false
264
125
  }
265
126
  }
127
+ },
128
+ "tableAction": {
129
+ "type": "object",
130
+ "properties": {
131
+ "type": {
132
+ "type": "string"
133
+ },
134
+ "refresh": {
135
+ "type": "boolean"
136
+ },
137
+ "confirm": {
138
+ "type": "boolean"
139
+ },
140
+ "tooltip": {
141
+ "type": "string"
142
+ },
143
+ "errorMessage": {
144
+ "type": "string"
145
+ },
146
+ "successMessage": {
147
+ "type": "string"
148
+ },
149
+ "priority": {
150
+ "type": "number"
151
+ },
152
+ "checkFunction": {
153
+ "type": "string"
154
+ },
155
+ "inHeader": {
156
+ "type": "boolean"
157
+ },
158
+ "role": {
159
+ "type": "string"
160
+ },
161
+ "icon": {
162
+ "type": "string"
163
+ },
164
+ "svgIcon": {
165
+ "type": "string"
166
+ },
167
+ "permission": {
168
+ "type": "string"
169
+ },
170
+ "color": {
171
+ "type": "string",
172
+ "description": "Value for the color input of the mat-button / mat-icon component"
173
+ },
174
+ "cssClass": {
175
+ "type": "string",
176
+ "description": "Additional CSS classes added to the button element"
177
+ },
178
+ "options": {
179
+ "type": "object",
180
+ "additionalProperties": true
181
+ }
182
+ },
183
+ "required": [
184
+ "type"
185
+ ]
266
186
  }
267
187
  }
268
188
  }
@@ -3,15 +3,12 @@
3
3
  "$id": "operation-table-action-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../../table-action/template.schema.json"
6
+ "$ref": "#/definitions/tableActionSchematic"
7
7
  }
8
8
  ],
9
9
  "definitions": {
10
- "type": {
11
- "$ref": "../../../type.schema.json"
12
- },
13
- "property": {
14
- "$ref": "../../../property.schema.json"
10
+ "tableActionSchematic": {
11
+ "$ref": "../../table-action/template.schema.json"
15
12
  }
16
13
  }
17
14
  }