@rxap/schematic-angular 16.2.0-dev.14 → 16.2.0-dev.16

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