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

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 +73 -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 +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 +4 -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,176 +1,358 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "data-grid-component",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "type": "string",
8
- "description": "The name of the form definition",
9
- "x-prompt": "Which name should the form definition have?"
10
- },
11
- "project": {
12
- "type": "string",
13
- "description": "The target project where the accordion module should be added.",
14
- "x-prompt": "To which project should the accordion module be added?"
15
- },
16
- "directory": {
17
- "type": "string",
18
- "description": "Relative path to the directory where the form definition should be created."
19
- },
20
- "feature": {
21
- "type": "string",
22
- "description": "The feature name where the accordion module should be added.",
23
- "x-prompt": "To which feature should the accordion module be added?"
24
- },
25
- "backend": {
26
- "type": "string",
27
- "description": "The backend that should be used to handel data",
28
- "enum": [
29
- "none",
30
- "local",
31
- "nestjs",
32
- "open-api"
33
- ],
34
- "default": "none"
35
- },
36
- "mode": {
37
- "type": "string",
38
- "description": "The mode of the form",
39
- "enum": [
40
- "form",
41
- "plain"
42
- ]
43
- },
44
- "collection": {
45
- "type": "boolean",
46
- "description": "Whether the data grid is used as collection."
47
- },
48
- "nestModule": {
49
- "type": "string",
50
- "description": "The name of the nest module where the form definition should be created."
51
- },
52
- "overwrite": {
53
- "anyOf": [
3
+ "$id": "data-grid-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
54
7
  {
55
- "type": "boolean"
8
+ "type": "object",
9
+ "properties": {
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
40
+ }
41
+ },
42
+ "required": [
43
+ "project"
44
+ ]
56
45
  },
57
46
  {
58
- "type": "array",
59
- "items": {
60
- "type": "string"
47
+ "type": "object",
48
+ "properties": {
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": {
93
+ "type": "object",
94
+ "additionalProperties": true
95
+ }
61
96
  }
62
97
  }
63
- ],
64
- "description": "Overwrite existing files",
65
- "default": false
66
- },
67
- "title": {
68
- "type": "string",
69
- "description": "The title of the data grid card component"
70
- },
71
- "subtitle": {
72
- "type": "string",
73
- "description": "The subtitle of the data grid card component"
98
+ ]
74
99
  },
75
- "itemList": {
76
- "alias": "item",
77
- "type": "array",
78
- "items": {
79
- "type": "object",
80
- "properties": {
81
- "name": {
82
- "type": "string",
83
- "description": "The name of the control"
84
- },
85
- "type": {
86
- "oneOf": [
87
- {
88
- "type": "string"
89
- },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "mode": {
104
+ "type": "string",
105
+ "description": "The mode of the form",
106
+ "enum": [
107
+ "form",
108
+ "plain"
109
+ ]
110
+ },
111
+ "collection": {
112
+ "type": "boolean",
113
+ "description": "Whether the data grid is used as collection."
114
+ },
115
+ "title": {
116
+ "type": "string",
117
+ "description": "The title of the data grid card component"
118
+ },
119
+ "subtitle": {
120
+ "type": "string",
121
+ "description": "The subtitle of the data grid card component"
122
+ },
123
+ "itemList": {
124
+ "alias": "item",
125
+ "type": "array",
126
+ "items": {
127
+ "allOf": [
90
128
  {
91
129
  "type": "object",
92
130
  "properties": {
93
131
  "name": {
94
- "type": "string"
132
+ "type": "string",
133
+ "description": "The name of the control"
95
134
  },
96
- "isTypeOnly": {
97
- "type": "boolean"
135
+ "type": {
136
+ "$ref": "#/definitions/type"
98
137
  },
99
- "moduleSpecifier": {
100
- "type": "string"
138
+ "isArray": {
139
+ "type": "boolean",
140
+ "description": "Whether the control value is an array",
141
+ "default": false
101
142
  },
102
- "namedImport": {
103
- "type": "string"
143
+ "state": {
144
+ "type": "string",
145
+ "description": "The initial state of the control"
104
146
  },
105
- "namespaceImport": {
106
- "type": "string"
147
+ "isRequired": {
148
+ "type": "boolean",
149
+ "description": "Whether the control value is required",
150
+ "default": false
107
151
  },
108
- "defaultImport": {
109
- "type": "string"
152
+ "isReadonly": {
153
+ "type": "boolean",
154
+ "description": "Whether the control value is readonly",
155
+ "default": false
156
+ },
157
+ "isDisabled": {
158
+ "type": "boolean",
159
+ "description": "Whether the control value is disabled",
160
+ "default": false
161
+ },
162
+ "validatorList": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "kind": {
169
+ "type": "string",
170
+ "description": "The name of the template",
171
+ "enum": [
172
+ "default",
173
+ "input",
174
+ "select",
175
+ "checkbox",
176
+ "autocomplete-table-select",
177
+ "table-select",
178
+ "textarea",
179
+ "slide-toggle"
180
+ ],
181
+ "default": "default"
110
182
  }
111
183
  },
112
184
  "required": [
113
185
  "name"
114
- ]
186
+ ],
187
+ "additionalProperties": true
188
+ },
189
+ {
190
+ "type": "object",
191
+ "properties": {
192
+ "header": {
193
+ "type": "string",
194
+ "description": "The name of the control"
195
+ }
196
+ }
115
197
  }
116
198
  ]
199
+ }
200
+ },
201
+ "inCard": {
202
+ "type": "boolean",
203
+ "description": "Whether the data grid is used in a card.",
204
+ "default": true
205
+ }
206
+ }
207
+ }
208
+ ],
209
+ "definitions": {
210
+ "type": {
211
+ "oneOf": [
212
+ {
213
+ "type": "string"
214
+ },
215
+ {
216
+ "type": "object",
217
+ "properties": {
218
+ "name": {
219
+ "type": "string"
220
+ },
221
+ "isTypeOnly": {
222
+ "type": "boolean"
223
+ },
224
+ "moduleSpecifier": {
225
+ "type": "string"
226
+ },
227
+ "namedImport": {
228
+ "type": "string"
229
+ },
230
+ "namespaceImport": {
231
+ "type": "string"
232
+ },
233
+ "defaultImport": {
234
+ "type": "string"
235
+ }
117
236
  },
118
- "isArray": {
119
- "type": "boolean",
120
- "description": "Whether the control value is an array",
121
- "default": false
122
- },
123
- "state": {
124
- "type": "string",
125
- "description": "The initial state of the control"
126
- },
127
- "isRequired": {
128
- "type": "boolean",
129
- "description": "Whether the control value is required",
130
- "default": false
131
- },
132
- "isReadonly": {
133
- "type": "boolean",
134
- "description": "Whether the control value is readonly",
135
- "default": false
136
- },
137
- "isDisabled": {
138
- "type": "boolean",
139
- "description": "Whether the control value is disabled",
140
- "default": false
141
- },
142
- "validatorList": {
143
- "type": "array",
144
- "items": {
237
+ "required": [
238
+ "name"
239
+ ]
240
+ }
241
+ ]
242
+ },
243
+ "property": {
244
+ "oneOf": [
245
+ {
246
+ "type": "string"
247
+ },
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "name": {
145
252
  "type": "string"
253
+ },
254
+ "type": {
255
+ "$ref": "#/definitions/type"
146
256
  }
147
257
  },
148
- "template": {
149
- "type": "object",
150
- "properties": {
151
- "name": {
152
- "type": "string",
153
- "description": "The name of the template",
154
- "enum": [
155
- "default",
156
- "input",
157
- "select"
158
- ]
159
- }
258
+ "required": [
259
+ "name"
260
+ ]
261
+ }
262
+ ],
263
+ "definitions": {
264
+ "type": {
265
+ "oneOf": [
266
+ {
267
+ "type": "string"
160
268
  },
161
- "additionalProperties": true,
162
- "required": ["name"]
269
+ {
270
+ "type": "object",
271
+ "properties": {
272
+ "name": {
273
+ "type": "string"
274
+ },
275
+ "isTypeOnly": {
276
+ "type": "boolean"
277
+ },
278
+ "moduleSpecifier": {
279
+ "type": "string"
280
+ },
281
+ "namedImport": {
282
+ "type": "string"
283
+ },
284
+ "namespaceImport": {
285
+ "type": "string"
286
+ },
287
+ "defaultImport": {
288
+ "type": "string"
289
+ }
290
+ },
291
+ "required": [
292
+ "name"
293
+ ]
294
+ }
295
+ ]
296
+ }
297
+ }
298
+ },
299
+ "button": {
300
+ "type": "object",
301
+ "properties": {
302
+ "svgIcon": {
303
+ "type": "string"
304
+ },
305
+ "icon": {
306
+ "type": "string"
307
+ },
308
+ "directiveList": {
309
+ "type": "array",
310
+ "items": {
311
+ "$ref": "#/definitions/type"
163
312
  }
164
313
  },
165
- "required": [
166
- "name"
167
- ]
314
+ "importList": {
315
+ "type": "array",
316
+ "items": {
317
+ "$ref": "#/definitions/type"
318
+ }
319
+ }
320
+ },
321
+ "definitions": {
322
+ "type": {
323
+ "oneOf": [
324
+ {
325
+ "type": "string"
326
+ },
327
+ {
328
+ "type": "object",
329
+ "properties": {
330
+ "name": {
331
+ "type": "string"
332
+ },
333
+ "isTypeOnly": {
334
+ "type": "boolean"
335
+ },
336
+ "moduleSpecifier": {
337
+ "type": "string"
338
+ },
339
+ "namedImport": {
340
+ "type": "string"
341
+ },
342
+ "namespaceImport": {
343
+ "type": "string"
344
+ },
345
+ "defaultImport": {
346
+ "type": "string"
347
+ }
348
+ },
349
+ "required": [
350
+ "name"
351
+ ]
352
+ }
353
+ ]
354
+ }
168
355
  }
169
356
  }
170
- },
171
- "required": [
172
- "project",
173
- "feature",
174
- "name"
175
- ]
176
- }
357
+ }
358
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "data-grid-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "../angular.schema.json"
7
+ },
8
+ {
9
+ "$ref": "../data-grid.schema.json"
10
+ }
11
+ ],
12
+ "definitions": {
13
+ "type": {
14
+ "$ref": "../type.schema.json"
15
+ },
16
+ "property": {
17
+ "$ref": "../property.schema.json"
18
+ },
19
+ "button": {
20
+ "$ref": "../button.schema.json"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "data-grid-item",
4
+ "allOf": [
5
+ {
6
+ "$ref": "./form-control.schema.json"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties":{
11
+ "header": {
12
+ "type": "string",
13
+ "description": "The name of the control"
14
+ }
15
+ }
16
+ }
17
+ ],
18
+ "definitions": {
19
+ "type": {
20
+ "$ref": "./type.schema.json"
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "data-grid-component",
4
+ "type": "object",
5
+ "properties": {
6
+ "mode": {
7
+ "type": "string",
8
+ "description": "The mode of the form",
9
+ "enum": [
10
+ "form",
11
+ "plain"
12
+ ]
13
+ },
14
+ "collection": {
15
+ "type": "boolean",
16
+ "description": "Whether the data grid is used as collection."
17
+ },
18
+ "title": {
19
+ "type": "string",
20
+ "description": "The title of the data grid card component"
21
+ },
22
+ "subtitle": {
23
+ "type": "string",
24
+ "description": "The subtitle of the data grid card component"
25
+ },
26
+ "itemList": {
27
+ "alias": "item",
28
+ "type": "array",
29
+ "items": {
30
+ "$ref": "./data-grid-item.schema.json"
31
+ }
32
+ },
33
+ "inCard": {
34
+ "type": "boolean",
35
+ "description": "Whether the data grid is used in a card.",
36
+ "default": true
37
+ }
38
+ },
39
+ "definitions": {
40
+ "type": {
41
+ "$ref": "./type.schema.json"
42
+ }
43
+ }
44
+ }