@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,172 +3,7 @@
3
3
  "$id": "dialog-table-action-schematic",
4
4
  "allOf": [
5
5
  {
6
- "allOf": [
7
- {
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
- ]
101
- },
102
- {
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
- ]
160
- },
161
- {
162
- "type": "object",
163
- "properties": {
164
- "tableName": {
165
- "alias": "table",
166
- "type": "string",
167
- "description": "The name of the table action"
168
- }
169
- }
170
- }
171
- ]
6
+ "$ref": "#/definitions/tableActionSchematic"
172
7
  },
173
8
  {
174
9
  "type": "object",
@@ -216,97 +51,182 @@
216
51
  }
217
52
  ],
218
53
  "definitions": {
219
- "type": {
220
- "oneOf": [
54
+ "tableActionSchematic": {
55
+ "allOf": [
221
56
  {
222
- "type": "string"
57
+ "$ref": "#/definitions/angular"
58
+ },
59
+ {
60
+ "$ref": "#/definitions/tableAction"
223
61
  },
224
62
  {
225
63
  "type": "object",
226
64
  "properties": {
227
- "name": {
228
- "type": "string"
229
- },
230
- "isTypeOnly": {
231
- "type": "boolean"
232
- },
233
- "moduleSpecifier": {
234
- "type": "string"
235
- },
236
- "namedImport": {
237
- "type": "string"
238
- },
239
- "namespaceImport": {
240
- "type": "string"
241
- },
242
- "defaultImport": {
243
- "type": "string"
65
+ "tableName": {
66
+ "alias": "table",
67
+ "type": "string",
68
+ "description": "The name of the table action"
244
69
  }
245
- },
246
- "required": [
247
- "name"
248
- ]
70
+ }
249
71
  }
250
72
  ]
251
73
  },
252
- "property": {
253
- "oneOf": [
74
+ "angular": {
75
+ "allOf": [
254
76
  {
255
- "type": "string"
77
+ "$ref": "#/definitions/general"
256
78
  },
257
79
  {
258
80
  "type": "object",
259
81
  "properties": {
82
+ "componentName": {
83
+ "type": "string"
84
+ },
260
85
  "name": {
261
86
  "type": "string"
262
87
  },
263
- "type": {
264
- "$ref": "#/definitions/type"
88
+ "context": {
89
+ "type": "string",
90
+ "description": "The context use to generate proper names for class, files, etc"
265
91
  },
266
- "isArray": {
267
- "type": "boolean"
92
+ "nestModule": {
93
+ "type": "string",
94
+ "description": "The module name for the table nest operations"
95
+ },
96
+ "controllerName": {
97
+ "type": "string"
98
+ },
99
+ "backend": {
100
+ "$ref": "#/definitions/backend"
101
+ },
102
+ "directory": {
103
+ "type": "string",
104
+ "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"
105
+ },
106
+ "shared": {
107
+ "type": "boolean",
108
+ "description": "Whether the generated code is used across the project",
109
+ "default": false
110
+ },
111
+ "scope": {
112
+ "type": "string"
113
+ },
114
+ "prefix": {
115
+ "type": "string"
116
+ },
117
+ "openApi": {
118
+ "type": "object",
119
+ "additionalProperties": true
268
120
  }
269
- },
270
- "required": [
271
- "name"
272
- ]
121
+ }
273
122
  }
123
+ ]
124
+ },
125
+ "backend": {
126
+ "type": "string",
127
+ "description": "The backend that should be used to handel data",
128
+ "enum": [
129
+ "none",
130
+ "nestjs",
131
+ "open-api",
132
+ "local"
274
133
  ],
275
- "definitions": {
276
- "type": {
277
- "oneOf": [
134
+ "default": "none"
135
+ },
136
+ "general": {
137
+ "type": "object",
138
+ "properties": {
139
+ "project": {
140
+ "type": "string",
141
+ "description": "Project name where the files should be generated"
142
+ },
143
+ "feature": {
144
+ "type": "string",
145
+ "description": "Feature name where the files should be generated"
146
+ },
147
+ "overwrite": {
148
+ "anyOf": [
278
149
  {
279
- "type": "string"
150
+ "type": "boolean"
280
151
  },
281
152
  {
282
- "type": "object",
283
- "properties": {
284
- "name": {
285
- "type": "string"
286
- },
287
- "isTypeOnly": {
288
- "type": "boolean"
289
- },
290
- "moduleSpecifier": {
291
- "type": "string"
292
- },
293
- "namedImport": {
294
- "type": "string"
295
- },
296
- "namespaceImport": {
297
- "type": "string"
298
- },
299
- "defaultImport": {
300
- "type": "string"
301
- }
302
- },
303
- "required": [
304
- "name"
305
- ]
153
+ "type": "array",
154
+ "items": {
155
+ "type": "string"
156
+ }
306
157
  }
307
- ]
158
+ ],
159
+ "description": "Overwrite existing files",
160
+ "default": false
161
+ },
162
+ "overwriteHtml": {
163
+ "type": "boolean",
164
+ "default": false
165
+ },
166
+ "replace": {
167
+ "type": "boolean",
168
+ "default": false
308
169
  }
309
170
  }
171
+ },
172
+ "tableAction": {
173
+ "type": "object",
174
+ "properties": {
175
+ "type": {
176
+ "type": "string"
177
+ },
178
+ "refresh": {
179
+ "type": "boolean"
180
+ },
181
+ "confirm": {
182
+ "type": "boolean"
183
+ },
184
+ "tooltip": {
185
+ "type": "string"
186
+ },
187
+ "errorMessage": {
188
+ "type": "string"
189
+ },
190
+ "successMessage": {
191
+ "type": "string"
192
+ },
193
+ "priority": {
194
+ "type": "number"
195
+ },
196
+ "checkFunction": {
197
+ "type": "string"
198
+ },
199
+ "inHeader": {
200
+ "type": "boolean"
201
+ },
202
+ "role": {
203
+ "type": "string"
204
+ },
205
+ "icon": {
206
+ "type": "string"
207
+ },
208
+ "svgIcon": {
209
+ "type": "string"
210
+ },
211
+ "permission": {
212
+ "type": "string"
213
+ },
214
+ "color": {
215
+ "type": "string",
216
+ "description": "Value for the color input of the mat-button / mat-icon component"
217
+ },
218
+ "cssClass": {
219
+ "type": "string",
220
+ "description": "Additional CSS classes added to the button element"
221
+ },
222
+ "options": {
223
+ "type": "object",
224
+ "additionalProperties": true
225
+ }
226
+ },
227
+ "required": [
228
+ "type"
229
+ ]
310
230
  }
311
231
  }
312
232
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "dialog-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
  "type": "object",
@@ -51,11 +51,8 @@
51
51
  }
52
52
  ],
53
53
  "definitions": {
54
- "type": {
55
- "$ref": "../../../type.schema.json"
56
- },
57
- "property": {
58
- "$ref": "../../../property.schema.json"
54
+ "tableActionSchematic": {
55
+ "$ref": "../../table-action/template.schema.json"
59
56
  }
60
57
  }
61
58
  }