@rxap/schematic-angular 16.2.0-dev.1 → 16.2.0-dev.11

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 (206) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +1 -1
  3. package/package.json +13 -11
  4. package/src/lib/accordion-header.d.ts +5 -0
  5. package/src/lib/accordion-header.js +8 -2
  6. package/src/lib/accordion-header.js.map +1 -1
  7. package/src/lib/accordion-item.d.ts +17 -16
  8. package/src/lib/accordion-item.js +56 -32
  9. package/src/lib/accordion-item.js.map +1 -1
  10. package/src/lib/accordion-itme-kinds.d.ts +8 -0
  11. package/src/lib/accordion-itme-kinds.js +16 -0
  12. package/src/lib/accordion-itme-kinds.js.map +1 -0
  13. package/src/lib/coerce-accordion-component.js +6 -2
  14. package/src/lib/coerce-accordion-component.js.map +1 -1
  15. package/src/lib/coerce-form-component.js +5 -2
  16. package/src/lib/coerce-form-component.js.map +1 -1
  17. package/src/lib/coerce-minimum-table-component.js +9 -3
  18. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  19. package/src/lib/coerce-tree-table-component.js +16 -0
  20. package/src/lib/coerce-tree-table-component.js.map +1 -1
  21. package/src/lib/data-grid-item.d.ts +4 -7
  22. package/src/lib/data-grid-item.js.map +1 -1
  23. package/src/lib/data-grid-options.d.ts +2 -0
  24. package/src/lib/data-grid-options.js +7 -3
  25. package/src/lib/data-grid-options.js.map +1 -1
  26. package/src/lib/form/generate-form-template.d.ts +5 -0
  27. package/src/lib/form/generate-form-template.js +12 -0
  28. package/src/lib/form/generate-form-template.js.map +1 -0
  29. package/src/lib/form-component-control.d.ts +2 -6
  30. package/src/lib/form-component-control.js.map +1 -1
  31. package/src/lib/form-control.d.ts +125 -0
  32. package/src/lib/form-control.js +304 -0
  33. package/src/lib/form-control.js.map +1 -0
  34. package/src/lib/form-definition-control.d.ts +3 -57
  35. package/src/lib/form-definition-control.js +18 -144
  36. package/src/lib/form-definition-control.js.map +1 -1
  37. package/src/lib/load-handlebars-template.d.ts +3 -0
  38. package/src/lib/load-handlebars-template.js +24 -0
  39. package/src/lib/load-handlebars-template.js.map +1 -0
  40. package/src/lib/minimum-table-component-options.d.ts +12 -2
  41. package/src/lib/minimum-table-component-options.js +14 -17
  42. package/src/lib/minimum-table-component-options.js.map +1 -1
  43. package/src/lib/table/table-filter-column-rule.d.ts +13 -0
  44. package/src/lib/table/table-filter-column-rule.js +88 -0
  45. package/src/lib/table/table-filter-column-rule.js.map +1 -0
  46. package/src/lib/table-column.d.ts +8 -2
  47. package/src/lib/table-column.js +110 -43
  48. package/src/lib/table-column.js.map +1 -1
  49. package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
  50. package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
  51. package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
  52. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
  53. package/src/schematics/accordion/accordion-component/index.js +6 -98
  54. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  55. package/src/schematics/accordion/accordion-component/schema.json +313 -132
  56. package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
  57. package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
  58. package/src/schematics/accordion/accordion-item-component/index.js +49 -44
  59. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  60. package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
  61. package/src/schematics/accordion/accordion-item-component/schema.json +281 -78
  62. package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -0
  63. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  64. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +17 -29
  65. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  66. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  67. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +366 -103
  68. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
  69. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  70. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -4
  71. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  72. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  73. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +317 -191
  74. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
  75. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  76. package/src/schematics/accordion/item/accordion-item-table-component/index.js +8 -8
  77. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  78. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  79. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +584 -264
  80. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
  81. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  82. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +11 -10
  83. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  84. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  85. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +556 -253
  86. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
  87. package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
  88. package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
  89. package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
  90. package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
  91. package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
  92. package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
  93. package/src/schematics/accordion-item.schema.json +35 -0
  94. package/src/schematics/angular.schema.json +2 -10
  95. package/src/schematics/backend.schema.json +13 -0
  96. package/src/schematics/button.schema.json +30 -0
  97. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
  98. package/src/schematics/data-grid-component/index.d.ts +0 -1
  99. package/src/schematics/data-grid-component/index.js +31 -25
  100. package/src/schematics/data-grid-component/index.js.map +1 -1
  101. package/src/schematics/data-grid-component/schema.json +326 -144
  102. package/src/schematics/data-grid-component/template.schema.json +23 -0
  103. package/src/schematics/data-grid-item.schema.json +23 -0
  104. package/src/schematics/data-grid.schema.json +44 -0
  105. package/src/schematics/dialog-component/schema.json +225 -66
  106. package/src/schematics/dialog-component/template.schema.json +65 -0
  107. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  108. package/src/schematics/form/control/input-form-control/index.js +4 -27
  109. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  110. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
  111. package/src/schematics/form/control/input-form-control/schema.json +380 -108
  112. package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
  113. package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
  114. package/src/schematics/form/control/select-form-control/index.js +132 -96
  115. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  116. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
  117. package/src/schematics/form/control/select-form-control/schema.json +386 -94
  118. package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
  119. package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
  120. package/src/schematics/form/control/table-select-form-control/index.js +80 -69
  121. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  122. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
  123. package/src/schematics/form/control/table-select-form-control/schema.json +434 -97
  124. package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
  125. package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
  126. package/src/schematics/form/form-component/index.js +9 -3
  127. package/src/schematics/form/form-component/index.js.map +1 -1
  128. package/src/schematics/form/form-component/schema.json +325 -146
  129. package/src/schematics/form/form-component/template.schema.json +23 -0
  130. package/src/schematics/form/form-control/index.d.ts +3 -1
  131. package/src/schematics/form/form-control/index.js +19 -8
  132. package/src/schematics/form/form-control/index.js.map +1 -1
  133. package/src/schematics/form/form-control/schema.json +316 -83
  134. package/src/schematics/form/form-control/template.schema.json +37 -0
  135. package/src/schematics/form/form-definition/index.js +14 -1
  136. package/src/schematics/form/form-definition/index.js.map +1 -1
  137. package/src/schematics/form/form-definition/schema.json +312 -127
  138. package/src/schematics/form/form-definition/template.schema.json +33 -0
  139. package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
  140. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  141. package/src/schematics/form/templates/input-form-control.hbs +9 -0
  142. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  143. package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
  144. package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
  145. package/src/schematics/form-component.schema.json +39 -0
  146. package/src/schematics/form-control.schema.json +68 -0
  147. package/src/schematics/form-definition.schema.json +22 -0
  148. package/src/schematics/form-field.schema.json +24 -0
  149. package/src/schematics/header-button.schema.json +42 -0
  150. package/src/schematics/input-form-control.schema.json +47 -0
  151. package/src/schematics/minimum-table.schema.json +54 -0
  152. package/src/schematics/property.schema.json +28 -0
  153. package/src/schematics/select-form-control.schema.json +53 -0
  154. package/src/schematics/table/action/dialog-table-action/schema.json +294 -133
  155. package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
  156. package/src/schematics/table/action/form-table-action/schema.json +392 -172
  157. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  158. package/src/schematics/table/action/navigation-table-action/schema.json +272 -88
  159. package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
  160. package/src/schematics/table/action/open-api-table-action/schema.json +288 -102
  161. package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
  162. package/src/schematics/table/action/operation-table-action/schema.json +259 -92
  163. package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
  164. package/src/schematics/table/header-button/form-table-header-button/schema.json +325 -126
  165. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
  166. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +254 -81
  167. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
  168. package/src/schematics/table/table-action/schema.json +254 -87
  169. package/src/schematics/table/table-action/template.schema.json +30 -0
  170. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
  171. package/src/schematics/table/table-component/index.d.ts +2 -2
  172. package/src/schematics/table/table-component/index.js +11 -104
  173. package/src/schematics/table/table-component/index.js.map +1 -1
  174. package/src/schematics/table/table-component/schema.json +461 -197
  175. package/src/schematics/table/table-component/template.schema.json +26 -0
  176. package/src/schematics/table/table-header-button/schema.json +235 -73
  177. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  178. package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
  179. package/src/schematics/table/templates/component-table-column.hbs +12 -0
  180. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
  181. package/src/schematics/table/templates/date-table-column.hbs +11 -0
  182. package/src/schematics/table/templates/default-table-column.hbs +8 -0
  183. package/src/schematics/table/templates/icon-table-column.hbs +10 -0
  184. package/src/schematics/table/templates/link-table-column.hbs +10 -0
  185. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
  186. package/src/schematics/table/tree-table-component/index.js +11 -4
  187. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  188. package/src/schematics/table/tree-table-component/schema.json +521 -250
  189. package/src/schematics/table/tree-table-component/template.schema.json +26 -0
  190. package/src/schematics/table-action.schema.json +61 -0
  191. package/src/schematics/table-column.schema.json +69 -0
  192. package/src/schematics/table.schema.json +54 -0
  193. package/src/schematics/tree-component/schema.json +113 -76
  194. package/src/schematics/tree-component/template.schema.json +31 -0
  195. package/src/schematics/tree-table.schema.json +40 -0
  196. package/src/schematics/type.schema.json +35 -0
  197. package/src/schematics/upstream.schema.json +56 -0
  198. package/src/lib/accordion-itme-types.d.ts +0 -8
  199. package/src/lib/accordion-itme-types.js +0 -16
  200. package/src/lib/accordion-itme-types.js.map +0 -1
  201. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  202. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  203. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  204. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  205. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  206. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
@@ -1,191 +1,372 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "accordion-module",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "alias": "accordionName",
8
- "type": "string",
9
- "description": "The name of the accordion",
10
- "x-prompt": "Which name should the accordion module have?"
11
- },
12
- "project": {
13
- "type": "string",
14
- "description": "The target project where the accordion module should be added.",
15
- "x-prompt": "To which project should the accordion module be added?"
16
- },
17
- "feature": {
18
- "type": "string",
19
- "description": "The feature name where the accordion module should be added.",
20
- "x-prompt": "To which feature should the accordion module be added?"
21
- },
22
- "multiple": {
23
- "type": "boolean",
24
- "description": "Whether the accordion should allow multiple panels to be expanded at the same time",
25
- "default": false,
26
- "alias": "multi"
27
- },
28
- "backend": {
29
- "type": "string",
30
- "description": "The backend that should be used to handel data",
31
- "enum": [
32
- "none",
33
- "local",
34
- "nestjs",
35
- "open-api"
36
- ],
37
- "default": "none"
38
- },
39
- "persistent": {
40
- "oneOf": [
3
+ "$id": "accordion-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
41
7
  {
42
8
  "type": "object",
43
9
  "properties": {
44
- "key": {
45
- "type": "string"
10
+ "project": {
11
+ "type": "string",
12
+ "description": "Project name where the files should be generated"
13
+ },
14
+ "feature": {
15
+ "type": "string",
16
+ "description": "Feature name where the files should be generated"
17
+ },
18
+ "overwrite": {
19
+ "anyOf": [
20
+ {
21
+ "type": "boolean"
22
+ },
23
+ {
24
+ "type": "array",
25
+ "items": {
26
+ "type": "string"
27
+ }
28
+ }
29
+ ],
30
+ "description": "Overwrite existing files",
31
+ "default": false
32
+ },
33
+ "overwriteHtml": {
34
+ "type": "boolean",
35
+ "default": false
36
+ },
37
+ "replace": {
38
+ "type": "boolean",
39
+ "default": false
46
40
  }
47
41
  },
48
- "required": ["key"]
42
+ "required": [
43
+ "project"
44
+ ]
49
45
  },
50
46
  {
51
47
  "type": "object",
52
48
  "properties": {
53
- "property": {
49
+ "componentName": {
50
+ "type": "string"
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ },
55
+ "context": {
56
+ "type": "string",
57
+ "description": "The context use to generate proper names for class, files, etc"
58
+ },
59
+ "nestModule": {
60
+ "type": "string",
61
+ "description": "The module name for the table nest operations"
62
+ },
63
+ "controllerName": {
64
+ "type": "string"
65
+ },
66
+ "backend": {
67
+ "type": "string",
68
+ "description": "The backend that should be used to handel data",
69
+ "enum": [
70
+ "none",
71
+ "nestjs",
72
+ "open-api",
73
+ "local"
74
+ ],
75
+ "default": "none"
76
+ },
77
+ "directory": {
78
+ "type": "string",
79
+ "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"
80
+ },
81
+ "shared": {
82
+ "type": "boolean",
83
+ "description": "Whether the generated code is used across the project",
84
+ "default": false
85
+ },
86
+ "scope": {
87
+ "type": "string"
88
+ },
89
+ "prefix": {
90
+ "type": "string"
91
+ },
92
+ "openApi": {
54
93
  "type": "object",
55
- "properties": {
56
- "name": {
57
- "type": "string"
58
- },
59
- "type": {
60
- "type": "string"
61
- }
62
- },
63
- "required": ["name"]
94
+ "additionalProperties": true
64
95
  }
65
- },
66
- "required": ["property"]
96
+ }
67
97
  }
68
98
  ]
69
99
  },
70
- "identifier": {
100
+ {
71
101
  "type": "object",
72
102
  "properties": {
73
- "property": {
103
+ "multiple": {
104
+ "type": "boolean",
105
+ "description": "Whether the accordion should allow multiple panels to be expanded at the same time",
106
+ "default": false,
107
+ "alias": "multi"
108
+ },
109
+ "persistent": {
110
+ "oneOf": [
111
+ {
112
+ "type": "object",
113
+ "properties": {
114
+ "key": {
115
+ "type": "string"
116
+ }
117
+ },
118
+ "required": [
119
+ "key"
120
+ ]
121
+ },
122
+ {
123
+ "type": "object",
124
+ "properties": {
125
+ "property": {
126
+ "$ref": "#/definitions/property"
127
+ }
128
+ },
129
+ "required": [
130
+ "property"
131
+ ]
132
+ }
133
+ ]
134
+ },
135
+ "identifier": {
74
136
  "type": "object",
75
137
  "properties": {
76
- "name": {
77
- "type": "string"
138
+ "property": {
139
+ "$ref": "#/definitions/property"
78
140
  },
79
- "type": {
80
- "type": "string"
141
+ "source": {
142
+ "type": "string",
143
+ "enum": [
144
+ "route"
145
+ ],
146
+ "default": "route"
81
147
  }
82
148
  },
83
- "required": ["name"]
149
+ "required": [
150
+ "property"
151
+ ]
84
152
  },
85
- "source": {
153
+ "header": {
154
+ "oneOf": [
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "title": {
159
+ "type": "string"
160
+ }
161
+ },
162
+ "required": [
163
+ "title"
164
+ ]
165
+ },
166
+ {
167
+ "type": "object",
168
+ "properties": {
169
+ "property": {
170
+ "$ref": "#/definitions/property"
171
+ }
172
+ },
173
+ "required": [
174
+ "property"
175
+ ]
176
+ }
177
+ ]
178
+ },
179
+ "itemList": {
180
+ "alias": "item",
181
+ "type": "array",
182
+ "items": {
183
+ "$ref": "#/definitions/accordionItem"
184
+ },
185
+ "description": "The list of accordion expansion panels"
186
+ }
187
+ }
188
+ }
189
+ ],
190
+ "definitions": {
191
+ "accordionItem": {
192
+ "type": "object",
193
+ "properties": {
194
+ "kind": {
86
195
  "type": "string",
87
196
  "enum": [
88
- "route"
197
+ "default",
198
+ "table",
199
+ "data-grid",
200
+ "data-grid-collection",
201
+ "tree-table",
202
+ "switch"
89
203
  ],
90
- "default": "route"
204
+ "description": "The type of the accordion item",
205
+ "default": "panel"
206
+ },
207
+ "modifiers": {
208
+ "alias": "modifier",
209
+ "type": "array",
210
+ "items": {
211
+ "type": "string"
212
+ },
213
+ "description": "The modifiers to apply to the accordion item type"
214
+ },
215
+ "title": {
216
+ "type": "string"
217
+ },
218
+ "description": {
219
+ "type": "string"
91
220
  }
92
221
  },
93
- "required": ["property"]
222
+ "additionalProperties": true
94
223
  },
95
- "header": {
224
+ "type": {
96
225
  "oneOf": [
226
+ {
227
+ "type": "string"
228
+ },
97
229
  {
98
230
  "type": "object",
99
231
  "properties": {
100
- "title": {
232
+ "name": {
233
+ "type": "string"
234
+ },
235
+ "isTypeOnly": {
236
+ "type": "boolean"
237
+ },
238
+ "moduleSpecifier": {
239
+ "type": "string"
240
+ },
241
+ "namedImport": {
242
+ "type": "string"
243
+ },
244
+ "namespaceImport": {
245
+ "type": "string"
246
+ },
247
+ "defaultImport": {
101
248
  "type": "string"
102
249
  }
103
250
  },
104
- "required": ["title"]
251
+ "required": [
252
+ "name"
253
+ ]
254
+ }
255
+ ]
256
+ },
257
+ "property": {
258
+ "oneOf": [
259
+ {
260
+ "type": "string"
105
261
  },
106
262
  {
107
263
  "type": "object",
108
264
  "properties": {
109
- "property": {
265
+ "name": {
266
+ "type": "string"
267
+ },
268
+ "type": {
269
+ "$ref": "#/definitions/type"
270
+ }
271
+ },
272
+ "required": [
273
+ "name"
274
+ ]
275
+ }
276
+ ],
277
+ "definitions": {
278
+ "type": {
279
+ "oneOf": [
280
+ {
281
+ "type": "string"
282
+ },
283
+ {
110
284
  "type": "object",
111
285
  "properties": {
112
286
  "name": {
113
287
  "type": "string"
114
288
  },
115
- "type": {
289
+ "isTypeOnly": {
290
+ "type": "boolean"
291
+ },
292
+ "moduleSpecifier": {
293
+ "type": "string"
294
+ },
295
+ "namedImport": {
296
+ "type": "string"
297
+ },
298
+ "namespaceImport": {
299
+ "type": "string"
300
+ },
301
+ "defaultImport": {
116
302
  "type": "string"
117
303
  }
118
304
  },
119
- "required": ["name"]
305
+ "required": [
306
+ "name"
307
+ ]
120
308
  }
121
- },
122
- "required": ["property"]
309
+ ]
123
310
  }
124
- ]
311
+ }
125
312
  },
126
- "itemList": {
127
- "alias": "item",
128
- "type": "array",
129
- "items": {
130
- "type": "object",
131
- "properties": {
132
- "name": {
133
- "type": "string"
134
- },
135
- "type": {
136
- "type": "string",
137
- "enum": [
138
- "panel",
139
- "table",
140
- "data-grid",
141
- "data-grid-collection",
142
- "tree-table",
143
- "switch"
144
- ]
145
- },
146
- "modifiers": {
147
- "type": "array",
148
- "items": {
149
- "type": "string"
150
- }
151
- },
152
- "title": {
153
- "type": "string"
154
- },
155
- "description": {
156
- "type": "string"
157
- },
158
- "permission": {
159
- "type": "string"
160
- }
313
+ "button": {
314
+ "type": "object",
315
+ "properties": {
316
+ "svgIcon": {
317
+ "type": "string"
161
318
  },
162
- "additionalProperties": true,
163
- "required": [
164
- "name"
165
- ],
166
- "description": "The name of the accordion expansion panel"
167
- },
168
- "description": "The list of accordion expansion panels"
169
- },
170
- "overwrite": {
171
- "anyOf": [
172
- {
173
- "type": "boolean"
319
+ "icon": {
320
+ "type": "string"
174
321
  },
175
- {
322
+ "directiveList": {
176
323
  "type": "array",
177
324
  "items": {
178
- "type": "string"
325
+ "$ref": "#/definitions/type"
326
+ }
327
+ },
328
+ "importList": {
329
+ "type": "array",
330
+ "items": {
331
+ "$ref": "#/definitions/type"
179
332
  }
180
333
  }
181
- ],
182
- "description": "Overwrite existing files",
183
- "default": false
334
+ },
335
+ "definitions": {
336
+ "type": {
337
+ "oneOf": [
338
+ {
339
+ "type": "string"
340
+ },
341
+ {
342
+ "type": "object",
343
+ "properties": {
344
+ "name": {
345
+ "type": "string"
346
+ },
347
+ "isTypeOnly": {
348
+ "type": "boolean"
349
+ },
350
+ "moduleSpecifier": {
351
+ "type": "string"
352
+ },
353
+ "namedImport": {
354
+ "type": "string"
355
+ },
356
+ "namespaceImport": {
357
+ "type": "string"
358
+ },
359
+ "defaultImport": {
360
+ "type": "string"
361
+ }
362
+ },
363
+ "required": [
364
+ "name"
365
+ ]
366
+ }
367
+ ]
368
+ }
369
+ }
184
370
  }
185
- },
186
- "required": [
187
- "name",
188
- "project",
189
- "feature"
190
- ]
191
- }
371
+ }
372
+ }
@@ -0,0 +1,102 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "accordion-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "../../angular.schema.json"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "multiple": {
12
+ "type": "boolean",
13
+ "description": "Whether the accordion should allow multiple panels to be expanded at the same time",
14
+ "default": false,
15
+ "alias": "multi"
16
+ },
17
+ "persistent": {
18
+ "oneOf": [
19
+ {
20
+ "type": "object",
21
+ "properties": {
22
+ "key": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": ["key"]
27
+ },
28
+ {
29
+ "type": "object",
30
+ "properties": {
31
+ "property": {
32
+ "$ref": "#/definitions/property"
33
+ }
34
+ },
35
+ "required": ["property"]
36
+ }
37
+ ]
38
+ },
39
+ "identifier": {
40
+ "type": "object",
41
+ "properties": {
42
+ "property": {
43
+ "$ref": "#/definitions/property"
44
+ },
45
+ "source": {
46
+ "type": "string",
47
+ "enum": [
48
+ "route"
49
+ ],
50
+ "default": "route"
51
+ }
52
+ },
53
+ "required": ["property"]
54
+ },
55
+ "header": {
56
+ "oneOf": [
57
+ {
58
+ "type": "object",
59
+ "properties": {
60
+ "title": {
61
+ "type": "string"
62
+ }
63
+ },
64
+ "required": ["title"]
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "property": {
70
+ "$ref": "#/definitions/property"
71
+ }
72
+ },
73
+ "required": ["property"]
74
+ }
75
+ ]
76
+ },
77
+ "itemList": {
78
+ "alias": "item",
79
+ "type": "array",
80
+ "items": {
81
+ "$ref": "#/definitions/accordionItem"
82
+ },
83
+ "description": "The list of accordion expansion panels"
84
+ }
85
+ }
86
+ }
87
+ ],
88
+ "definitions": {
89
+ "accordionItem": {
90
+ "$ref": "../../accordion-item.schema.json"
91
+ },
92
+ "type": {
93
+ "$ref": "../../type.schema.json"
94
+ },
95
+ "property": {
96
+ "$ref": "../../property.schema.json"
97
+ },
98
+ "button": {
99
+ "$ref": "../../button.schema.json"
100
+ }
101
+ }
102
+ }
@@ -3,13 +3,13 @@ import { Normalized } from '@rxap/utilities';
3
3
  import { NormalizedBaseAccordionItem } from '../../../lib/accordion-item';
4
4
  import { NormalizedAngularOptions } from '../../../lib/angular-options';
5
5
  import { AccordionItemComponentOptions } from './schema';
6
- export type AccordionItemStandaloneComponentOptions = Omit<AccordionItemComponentOptions, 'type'>;
6
+ export type AccordionItemStandaloneComponentOptions = Omit<AccordionItemComponentOptions, 'kind'>;
7
7
  export interface NormalizedAccordionItemStandaloneComponentOptions extends Omit<Readonly<Normalized<AccordionItemStandaloneComponentOptions> & NormalizedAngularOptions>, 'importList' | 'name'>, NormalizedBaseAccordionItem {
8
8
  componentName: string;
9
9
  }
10
10
  export declare function NormalizeAccordionItemStandaloneComponentOptions(options: Readonly<AccordionItemStandaloneComponentOptions>): NormalizedAccordionItemStandaloneComponentOptions;
11
11
  export type NormalizedAccordionItemComponentOptions = Readonly<NormalizedAccordionItemStandaloneComponentOptions & {
12
- type: string;
12
+ kind: string;
13
13
  }>;
14
14
  export declare function NormalizeAccordionItemComponentOptions(options: Readonly<AccordionItemComponentOptions>): NormalizedAccordionItemComponentOptions;
15
15
  interface ItemOptions {