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