@rxap/schematic-angular 16.2.0-dev.6 → 16.2.0-dev.7

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 (198) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +1 -1
  3. package/package.json +4 -2
  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 +44 -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 +2 -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 +6 -3
  18. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  19. package/src/lib/coerce-tree-table-component.js +2 -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 +303 -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 +1 -1
  41. package/src/lib/minimum-table-component-options.js +3 -3
  42. package/src/lib/minimum-table-component-options.js.map +1 -1
  43. package/src/lib/table-column.d.ts +8 -2
  44. package/src/lib/table-column.js +32 -15
  45. package/src/lib/table-column.js.map +1 -1
  46. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
  47. package/src/schematics/accordion/accordion-component/index.js +6 -98
  48. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  49. package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
  50. package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
  51. package/src/schematics/accordion/accordion-item-component/index.js +42 -42
  52. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  53. package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
  54. package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -0
  55. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  56. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +17 -29
  57. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  58. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  59. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
  60. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  61. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -4
  62. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  63. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  64. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
  65. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  66. package/src/schematics/accordion/item/accordion-item-table-component/index.js +8 -8
  67. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  68. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  69. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
  70. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  71. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +10 -10
  72. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  73. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  74. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
  75. package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
  76. package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
  77. package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
  78. package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
  79. package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
  80. package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
  81. package/src/schematics/accordion-item.schema.json +35 -0
  82. package/src/schematics/angular.schema.json +2 -10
  83. package/src/schematics/backend.schema.json +13 -0
  84. package/src/schematics/button.schema.json +30 -0
  85. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
  86. package/src/schematics/data-grid-component/index.d.ts +0 -1
  87. package/src/schematics/data-grid-component/index.js +21 -7
  88. package/src/schematics/data-grid-component/index.js.map +1 -1
  89. package/src/schematics/data-grid-component/template.schema.json +23 -0
  90. package/src/schematics/data-grid-item.schema.json +23 -0
  91. package/src/schematics/data-grid.schema.json +44 -0
  92. package/src/schematics/dialog-component/template.schema.json +65 -0
  93. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  94. package/src/schematics/form/control/input-form-control/index.js +4 -27
  95. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  96. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
  97. package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
  98. package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
  99. package/src/schematics/form/control/select-form-control/index.js +132 -96
  100. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  101. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
  102. package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
  103. package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
  104. package/src/schematics/form/control/table-select-form-control/index.js +80 -68
  105. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  106. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
  107. package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
  108. package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
  109. package/src/schematics/form/form-component/index.js +4 -1
  110. package/src/schematics/form/form-component/index.js.map +1 -1
  111. package/src/schematics/form/form-component/template.schema.json +23 -0
  112. package/src/schematics/form/form-control/index.d.ts +3 -1
  113. package/src/schematics/form/form-control/index.js +19 -8
  114. package/src/schematics/form/form-control/index.js.map +1 -1
  115. package/src/schematics/form/form-control/template.schema.json +37 -0
  116. package/src/schematics/form/form-definition/index.js +14 -1
  117. package/src/schematics/form/form-definition/index.js.map +1 -1
  118. package/src/schematics/form/form-definition/template.schema.json +33 -0
  119. package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
  120. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  121. package/src/schematics/form/templates/input-form-control.hbs +9 -0
  122. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  123. package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
  124. package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
  125. package/src/schematics/form-component.schema.json +39 -0
  126. package/src/schematics/form-control.schema.json +68 -0
  127. package/src/schematics/form-definition.schema.json +22 -0
  128. package/src/schematics/form-field.schema.json +24 -0
  129. package/src/schematics/header-button.schema.json +42 -0
  130. package/src/schematics/input-form-control.schema.json +47 -0
  131. package/src/schematics/minimum-table.schema.json +54 -0
  132. package/src/schematics/property.schema.json +28 -0
  133. package/src/schematics/select-form-control.schema.json +53 -0
  134. package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
  135. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  136. package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
  137. package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
  138. package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
  139. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
  140. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
  141. package/src/schematics/table/table-action/template.schema.json +30 -0
  142. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
  143. package/src/schematics/table/table-component/index.d.ts +1 -1
  144. package/src/schematics/table/table-component/index.js +2 -2
  145. package/src/schematics/table/table-component/index.js.map +1 -1
  146. package/src/schematics/table/table-component/template.schema.json +26 -0
  147. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  148. package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
  149. package/src/schematics/table/templates/component-table-column.hbs +12 -0
  150. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
  151. package/src/schematics/table/templates/date-table-column.hbs +11 -0
  152. package/src/schematics/table/templates/default-table-column.hbs +8 -0
  153. package/src/schematics/table/templates/icon-table-column.hbs +10 -0
  154. package/src/schematics/table/templates/link-table-column.hbs +10 -0
  155. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
  156. package/src/schematics/table/tree-table-component/template.schema.json +26 -0
  157. package/src/schematics/table-action.schema.json +61 -0
  158. package/src/schematics/table-column.schema.json +69 -0
  159. package/src/schematics/table.schema.json +54 -0
  160. package/src/schematics/tree-component/template.schema.json +31 -0
  161. package/src/schematics/tree-table.schema.json +40 -0
  162. package/src/schematics/type.schema.json +35 -0
  163. package/src/schematics/upstream.schema.json +56 -0
  164. package/src/lib/accordion-itme-types.d.ts +0 -8
  165. package/src/lib/accordion-itme-types.js +0 -16
  166. package/src/lib/accordion-itme-types.js.map +0 -1
  167. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  168. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  169. package/src/schematics/accordion/accordion-component/schema.json +0 -191
  170. package/src/schematics/accordion/accordion-item-component/schema.json +0 -92
  171. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +0 -133
  172. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +0 -226
  173. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +0 -334
  174. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +0 -334
  175. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  176. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  177. package/src/schematics/data-grid-component/schema.json +0 -176
  178. package/src/schematics/dialog-component/schema.json +0 -81
  179. package/src/schematics/form/control/input-form-control/schema.json +0 -116
  180. package/src/schematics/form/control/select-form-control/schema.json +0 -102
  181. package/src/schematics/form/control/table-select-form-control/schema.json +0 -106
  182. package/src/schematics/form/form-component/schema.json +0 -173
  183. package/src/schematics/form/form-control/schema.json +0 -92
  184. package/src/schematics/form/form-definition/schema.json +0 -148
  185. package/src/schematics/table/action/dialog-table-action/schema.json +0 -148
  186. package/src/schematics/table/action/form-table-action/schema.json +0 -202
  187. package/src/schematics/table/action/navigation-table-action/schema.json +0 -95
  188. package/src/schematics/table/action/open-api-table-action/schema.json +0 -121
  189. package/src/schematics/table/action/operation-table-action/schema.json +0 -98
  190. package/src/schematics/table/header-button/form-table-header-button/schema.json +0 -139
  191. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +0 -87
  192. package/src/schematics/table/table-action/schema.json +0 -94
  193. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  194. package/src/schematics/table/table-component/schema.json +0 -340
  195. package/src/schematics/table/table-header-button/schema.json +0 -80
  196. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
  197. package/src/schematics/table/tree-table-component/schema.json +0 -316
  198. package/src/schematics/tree-component/schema.json +0 -86
@@ -1,94 +0,0 @@
1
- <ng-template #errorTemplate let-error let-refresh="refresh">
2
- <rxap-data-source-error [error]="error" [refresh]="refresh"></rxap-data-source-error>
3
- </ng-template>
4
- <div *rxapDataSource="let accordion from accordionDataSource; errorTemplate: errorTemplate" class="flex flex-col gap-y-6">
5
- <% if (header) { %><<%= prefix %>-accordion-header [data]="accordion"></<%= prefix %>-accordion-header>
6
- <ng-template #divider>
7
- <mat-divider></mat-divider>
8
- </ng-template>
9
- <mat-progress-bar *ngIf="accordionDataSource.loading$ | async; else divider" mode="indeterminate"></mat-progress-bar>
10
- <% } else { %>
11
- <mat-progress-bar *ngIf="accordionDataSource.loading$ | async" mode="indeterminate"></mat-progress-bar>
12
- <% } %>
13
- <mat-accordion
14
- <% if (persistent && persistent.key) { %>rxapPersistentAccordion="<%= persistent.key %>"<% } %>
15
- <% if (persistent && persistent.property) { %>[rxapPersistentAccordion]="accordion.<%= persistent.property.name %>"<% } %>
16
- <% if (multiple) { %>multi<% } %>
17
- >
18
- <% for (let index = 0; index < itemList.length; index++) { %>
19
- <% item = itemList[index] %>
20
- <% if (item.type === 'switch') { %>
21
- <% if (item.permission) { %><ng-template rxapIfHasPermission="<%= item.permission %>"><% } %>
22
- <ng-container [ngSwitch]="accordion.<%= item.switch.property.name %>">
23
- <% for (const caseItem of item.switch.case) { %>
24
- <% if (item.switch.property.type === 'string') { %>
25
- <ng-template [ngSwitchCase]="'<%= caseItem.test %>'">
26
- <% } else { %>
27
- <ng-template [ngSwitchCase]="<%= caseItem.test %>">
28
- <% } %>
29
- <% for (const innerItem of caseItem.itemList) { %>
30
- <% if (innerItem.permission) { %><ng-template rxapIfHasPermission="<%= innerItem.permission %>"><% } %>
31
- <mat-expansion-panel>
32
-
33
- <mat-expansion-panel-header>
34
- <mat-panel-title i18n><%= innerItem.title %></mat-panel-title>
35
- <% if (innerItem.description) { %>
36
- <mat-panel-description i18n><%= innerItem.description %></mat-panel-description>
37
- <% } %>
38
- </mat-expansion-panel-header>
39
-
40
- <ng-template matExpansionPanelContent>
41
- <<%= prefix %>-<%= innerItem.name %>-panel></<%= prefix %>-<%= innerItem.name %>-panel>
42
- </ng-template>
43
-
44
- </mat-expansion-panel>
45
- <% if (innerItem.permission) { %></ng-template><% } %>
46
- <% } %>
47
- </ng-template>
48
- <% } %>
49
- <% if (item.switch.defaultCase) { %>
50
- <ng-template ngSwitchDefault>
51
- <% for (const innerItem of item.switch.defaultCase.itemList) { %>
52
- <% if (innerItem.permission) { %><ng-template rxapIfHasPermission="<%= innerItem.permission %>"><% } %>
53
- <mat-expansion-panel>
54
-
55
- <mat-expansion-panel-header>
56
- <mat-panel-title i18n><%= innerItem.title %></mat-panel-title>
57
- <% if (innerItem.description) { %>
58
- <mat-panel-description i18n><%= innerItem.description %></mat-panel-description>
59
- <% } %>
60
- </mat-expansion-panel-header>
61
-
62
- <ng-template matExpansionPanelContent>
63
- <<%= prefix %>-<%= innerItem.name %>-panel></<%= prefix %>-<%= innerItem.name %>-panel>
64
- </ng-template>
65
-
66
- </mat-expansion-panel>
67
- <% if (innerItem.permission) { %></ng-template><% } %>
68
- <% } %>
69
- </ng-template>
70
- <% } %>
71
- </ng-container>
72
- <% if (item.permission) { %></ng-template><% } %>
73
- <% } else { %>
74
- <% if (item.permission) { %><ng-template rxapIfHasPermission="<%= item.permission %>"><% } %>
75
- <mat-expansion-panel>
76
-
77
- <mat-expansion-panel-header>
78
- <mat-panel-title i18n><%= item.title %></mat-panel-title>
79
- <% if (item.description) { %>
80
- <mat-panel-description i18n><%= item.description %></mat-panel-description>
81
- <% } %>
82
- </mat-expansion-panel-header>
83
-
84
- <ng-template matExpansionPanelContent>
85
- <<%= prefix %>-<%= item.name %>-panel></<%= prefix %>-<%= item.name %>-panel>
86
- </ng-template>
87
-
88
- </mat-expansion-panel>
89
- <% if (item.permission) { %></ng-template><% } %>
90
- <% } %>
91
- <% } %>
92
- <!-- NEXT_INDEX[<%= itemList.length %>] -->
93
- </mat-accordion>
94
- </div>
@@ -1,10 +0,0 @@
1
- <rxap-navigate-back-button>
2
- <ng-container>
3
- <% if (header.title) { %>
4
- <h1><%= header.title %></h1>
5
- <% } %>
6
- <% if (header.property) { %>
7
- <h1>{{data.<%= header.property.name %>}}</h1>
8
- <% } %>
9
- </ng-container>
10
- </rxap-navigate-back-button>
@@ -1,191 +0,0 @@
1
- {
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": [
41
- {
42
- "type": "object",
43
- "properties": {
44
- "key": {
45
- "type": "string"
46
- }
47
- },
48
- "required": ["key"]
49
- },
50
- {
51
- "type": "object",
52
- "properties": {
53
- "property": {
54
- "type": "object",
55
- "properties": {
56
- "name": {
57
- "type": "string"
58
- },
59
- "type": {
60
- "type": "string"
61
- }
62
- },
63
- "required": ["name"]
64
- }
65
- },
66
- "required": ["property"]
67
- }
68
- ]
69
- },
70
- "identifier": {
71
- "type": "object",
72
- "properties": {
73
- "property": {
74
- "type": "object",
75
- "properties": {
76
- "name": {
77
- "type": "string"
78
- },
79
- "type": {
80
- "type": "string"
81
- }
82
- },
83
- "required": ["name"]
84
- },
85
- "source": {
86
- "type": "string",
87
- "enum": [
88
- "route"
89
- ],
90
- "default": "route"
91
- }
92
- },
93
- "required": ["property"]
94
- },
95
- "header": {
96
- "oneOf": [
97
- {
98
- "type": "object",
99
- "properties": {
100
- "title": {
101
- "type": "string"
102
- }
103
- },
104
- "required": ["title"]
105
- },
106
- {
107
- "type": "object",
108
- "properties": {
109
- "property": {
110
- "type": "object",
111
- "properties": {
112
- "name": {
113
- "type": "string"
114
- },
115
- "type": {
116
- "type": "string"
117
- }
118
- },
119
- "required": ["name"]
120
- }
121
- },
122
- "required": ["property"]
123
- }
124
- ]
125
- },
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
- }
161
- },
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"
174
- },
175
- {
176
- "type": "array",
177
- "items": {
178
- "type": "string"
179
- }
180
- }
181
- ],
182
- "description": "Overwrite existing files",
183
- "default": false
184
- }
185
- },
186
- "required": [
187
- "name",
188
- "project",
189
- "feature"
190
- ]
191
- }
@@ -1,92 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "accordion-item-component",
4
- "type": "object",
5
- "properties": {
6
- "itemName": {
7
- "alias": "name",
8
- "type": "string",
9
- "description": "The name of the accordion item",
10
- "x-prompt": "Which name should the accordion item module have?"
11
- },
12
- "project": {
13
- "type": "string",
14
- "description": "The target project where the accordion item module should be added.",
15
- "x-prompt": "To which project should the accordion item module be added?"
16
- },
17
- "feature": {
18
- "type": "string",
19
- "description": "The feature name where the accordion item module should be added.",
20
- "x-prompt": "To which feature should the accordion item module be added?"
21
- },
22
- "backend": {
23
- "type": "string",
24
- "description": "The backend that should be used to handel data",
25
- "enum": [
26
- "none",
27
- "local",
28
- "nestjs",
29
- "open-api"
30
- ],
31
- "default": "none"
32
- },
33
- "accordionName": {
34
- "type": "string",
35
- "description": "The name of the accordion module where the item should be added."
36
- },
37
- "shared": {
38
- "type": "boolean",
39
- "default": false,
40
- "description": "Whether the item is based of a shared component"
41
- },
42
- "type": {
43
- "type": "string",
44
- "enum": [
45
- "panel",
46
- "table",
47
- "data-grid",
48
- "data-grid-collection",
49
- "tree-table",
50
- "switch"
51
- ],
52
- "description": "The type of the accordion item",
53
- "x-prompt": "Select the type of the accordion item",
54
- "default": "panel"
55
- },
56
- "modifiers": {
57
- "alias": "modifier",
58
- "type": "array",
59
- "items": {
60
- "type": "string"
61
- },
62
- "description": "The modifiers to apply to the accordion item type"
63
- },
64
- "title": {
65
- "type": "string"
66
- },
67
- "description": {
68
- "type": "string"
69
- },
70
- "overwrite": {
71
- "anyOf": [
72
- {
73
- "type": "boolean"
74
- },
75
- {
76
- "type": "array",
77
- "items": {
78
- "type": "string"
79
- }
80
- }
81
- ],
82
- "description": "Overwrite existing files",
83
- "default": false
84
- }
85
- },
86
- "additionalProperties": true,
87
- "required": [
88
- "itemName",
89
- "project",
90
- "feature"
91
- ]
92
- }
@@ -1,133 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "$id": "accordion-item-data-grid-component",
4
- "type": "object",
5
- "properties": {
6
- "itemName": {
7
- "alias": "name",
8
- "type": "string",
9
- "description": "The name of the accordion item",
10
- "x-prompt": "Which name should the accordion item module have?"
11
- },
12
- "project": {
13
- "type": "string",
14
- "description": "The target project where the accordion item module should be added.",
15
- "x-prompt": "To which project should the accordion item module be added?"
16
- },
17
- "feature": {
18
- "type": "string",
19
- "description": "The feature name where the accordion item module should be added.",
20
- "x-prompt": "To which feature should the accordion item module be added?"
21
- },
22
- "accordionName": {
23
- "type": "string",
24
- "description": "The name of the accordion module where the item should be added.",
25
- "x-prompt": "To which accordion module should the accordion item module be added?"
26
- },
27
- "shared": {
28
- "type": "boolean",
29
- "default": false,
30
- "description": "Whether the item is based of a shared component"
31
- },
32
- "backend": {
33
- "type": "string",
34
- "description": "The backend that should be used to handel data",
35
- "enum": [
36
- "none",
37
- "local",
38
- "nestjs",
39
- "open-api"
40
- ],
41
- "default": "none"
42
- },
43
- "overwrite": {
44
- "anyOf": [
45
- {
46
- "type": "boolean"
47
- },
48
- {
49
- "type": "array",
50
- "items": {
51
- "type": "string"
52
- }
53
- }
54
- ],
55
- "description": "Overwrite existing files",
56
- "default": false
57
- },
58
- "dataGrid": {
59
- "alias": "data-grid",
60
- "type": "object",
61
- "properties": {
62
- "title": {
63
- "type": "string",
64
- "description": "The title of the data grid card component"
65
- },
66
- "subtitle": {
67
- "type": "string",
68
- "description": "The subtitle of the data grid card component"
69
- },
70
- "itemList": {
71
- "alias": "item",
72
- "anyOf": [
73
- {
74
- "type": "array",
75
- "items": {
76
- "type": "object",
77
- "properties": {
78
- "name": {
79
- "type": "string",
80
- "description": "The name of the control"
81
- },
82
- "header": {
83
- "type": "string",
84
- "description": "The name of the control"
85
- },
86
- "type": {
87
- "type": "string",
88
- "description": "The type of the control",
89
- "enum": [
90
- "string",
91
- "number",
92
- "boolean"
93
- ]
94
- }
95
- },
96
- "required": [
97
- "name"
98
- ]
99
- }
100
- },
101
- {
102
- "type": "array",
103
- "items": {
104
- "type": "string"
105
- }
106
- },
107
- {
108
- "type": "array"
109
- }
110
- ]
111
- },
112
- "mode": {
113
- "type": "string",
114
- "description": "The mode of the form",
115
- "enum": [
116
- "form",
117
- "plain"
118
- ]
119
- },
120
- "collection": {
121
- "type": "boolean",
122
- "description": "Whether the data grid is used as collection."
123
- }
124
- }
125
- }
126
- },
127
- "required": [
128
- "itemName",
129
- "project",
130
- "feature",
131
- "accordionName"
132
- ]
133
- }