@rxap/schematic-angular 16.2.0-dev.2 → 16.2.0-dev.20

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 (242) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/README.md +1 -1
  3. package/package.json +11 -9
  4. package/src/lib/accordion-header.d.ts +5 -0
  5. package/src/lib/accordion-header.js +9 -3
  6. package/src/lib/accordion-header.js.map +1 -1
  7. package/src/lib/accordion-identifier.d.ts +4 -0
  8. package/src/lib/accordion-identifier.js.map +1 -1
  9. package/src/lib/accordion-item.d.ts +25 -17
  10. package/src/lib/accordion-item.js +72 -33
  11. package/src/lib/accordion-item.js.map +1 -1
  12. package/src/lib/accordion-itme-kinds.d.ts +8 -0
  13. package/src/lib/accordion-itme-kinds.js +16 -0
  14. package/src/lib/accordion-itme-kinds.js.map +1 -0
  15. package/src/lib/coerce-accordion-component.js +7 -3
  16. package/src/lib/coerce-accordion-component.js.map +1 -1
  17. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  18. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  19. package/src/lib/coerce-form-component.js +5 -2
  20. package/src/lib/coerce-form-component.js.map +1 -1
  21. package/src/lib/coerce-minimum-table-component.js +9 -3
  22. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  23. package/src/lib/coerce-tree-table-component.js +16 -0
  24. package/src/lib/coerce-tree-table-component.js.map +1 -1
  25. package/src/lib/data-grid-item.d.ts +46 -11
  26. package/src/lib/data-grid-item.js +80 -5
  27. package/src/lib/data-grid-item.js.map +1 -1
  28. package/src/lib/data-grid-mode.d.ts +4 -0
  29. package/src/lib/data-grid-mode.js +9 -0
  30. package/src/lib/data-grid-mode.js.map +1 -0
  31. package/src/lib/data-grid-options.d.ts +12 -5
  32. package/src/lib/data-grid-options.js +43 -13
  33. package/src/lib/data-grid-options.js.map +1 -1
  34. package/src/lib/form/generate-form-template.d.ts +5 -0
  35. package/src/lib/form/generate-form-template.js +12 -0
  36. package/src/lib/form/generate-form-template.js.map +1 -0
  37. package/src/lib/form-component-control.d.ts +2 -6
  38. package/src/lib/form-component-control.js.map +1 -1
  39. package/src/lib/form-control.d.ts +136 -0
  40. package/src/lib/form-control.js +265 -0
  41. package/src/lib/form-control.js.map +1 -0
  42. package/src/lib/form-definition-control.d.ts +3 -57
  43. package/src/lib/form-definition-control.js +18 -144
  44. package/src/lib/form-definition-control.js.map +1 -1
  45. package/src/lib/load-handlebars-template.d.ts +4 -0
  46. package/src/lib/load-handlebars-template.js +28 -0
  47. package/src/lib/load-handlebars-template.js.map +1 -0
  48. package/src/lib/merge-with-column-list.js +3 -1
  49. package/src/lib/merge-with-column-list.js.map +1 -1
  50. package/src/lib/minimum-table-component-options.d.ts +12 -2
  51. package/src/lib/minimum-table-component-options.js +14 -17
  52. package/src/lib/minimum-table-component-options.js.map +1 -1
  53. package/src/lib/minimum-table-options.d.ts +1 -1
  54. package/src/lib/minimum-table-options.js +2 -2
  55. package/src/lib/minimum-table-options.js.map +1 -1
  56. package/src/lib/pipe-option.d.ts +11 -0
  57. package/src/lib/pipe-option.js +75 -0
  58. package/src/lib/pipe-option.js.map +1 -0
  59. package/src/lib/table/table-filter-column-rule.d.ts +13 -0
  60. package/src/lib/table/table-filter-column-rule.js +88 -0
  61. package/src/lib/table/table-filter-column-rule.js.map +1 -0
  62. package/src/lib/table-column.d.ts +19 -9
  63. package/src/lib/table-column.js +132 -113
  64. package/src/lib/table-column.js.map +1 -1
  65. package/src/lib/table-options.d.ts +1 -1
  66. package/src/lib/tree-table-options.d.ts +1 -1
  67. package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
  68. package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
  69. package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
  70. package/src/lib/value-option.d.ts +12 -0
  71. package/src/lib/value-option.js +66 -0
  72. package/src/lib/value-option.js.map +1 -0
  73. package/src/schema.json +2368 -0
  74. package/src/schematic-input.schema.json +607 -0
  75. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
  76. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  77. package/src/schematics/accordion/accordion-component/index.js +56 -122
  78. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  79. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  80. package/src/schematics/accordion/accordion-component/schema.json +314 -132
  81. package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
  82. package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
  83. package/src/schematics/accordion/accordion-item-component/index.js +112 -86
  84. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  85. package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
  86. package/src/schematics/accordion/accordion-item-component/schema.json +282 -70
  87. package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
  88. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  89. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +35 -51
  90. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  91. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  92. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +454 -85
  93. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
  94. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  95. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
  96. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  97. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  98. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +322 -190
  99. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +81 -0
  100. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  101. package/src/schematics/accordion/item/accordion-item-table-component/index.js +16 -19
  102. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  103. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  104. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +615 -278
  105. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +43 -0
  106. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  107. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +48 -84
  108. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  109. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  110. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +591 -271
  111. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +43 -0
  112. package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
  113. package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
  114. package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
  115. package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
  116. package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
  117. package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
  118. package/src/schematics/accordion-identifier.schema.json +25 -0
  119. package/src/schematics/accordion-item.schema.json +59 -0
  120. package/src/schematics/angular.schema.json +11 -11
  121. package/src/schematics/backend.schema.json +13 -0
  122. package/src/schematics/button.schema.json +30 -0
  123. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
  124. package/src/schematics/data-grid-component/index.d.ts +2 -4
  125. package/src/schematics/data-grid-component/index.js +83 -52
  126. package/src/schematics/data-grid-component/index.js.map +1 -1
  127. package/src/schematics/data-grid-component/schema.json +413 -141
  128. package/src/schematics/data-grid-component/template.schema.json +20 -0
  129. package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
  130. package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
  131. package/src/schematics/data-grid-item.schema.json +50 -0
  132. package/src/schematics/data-grid.schema.json +66 -0
  133. package/src/schematics/dialog-component/schema.json +141 -65
  134. package/src/schematics/dialog-component/template.schema.json +62 -0
  135. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  136. package/src/schematics/form/control/input-form-control/index.js +4 -27
  137. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  138. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
  139. package/src/schematics/form/control/input-form-control/schema.json +182 -105
  140. package/src/schematics/form/control/input-form-control/template.schema.json +20 -0
  141. package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
  142. package/src/schematics/form/control/select-form-control/index.js +132 -96
  143. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  144. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
  145. package/src/schematics/form/control/select-form-control/schema.json +194 -86
  146. package/src/schematics/form/control/select-form-control/template.schema.json +20 -0
  147. package/src/schematics/form/control/table-select-form-control/index.d.ts +9 -5
  148. package/src/schematics/form/control/table-select-form-control/index.js +199 -143
  149. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  150. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
  151. package/src/schematics/form/control/table-select-form-control/schema.json +245 -100
  152. package/src/schematics/form/control/table-select-form-control/template.schema.json +83 -0
  153. package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
  154. package/src/schematics/form/form-component/index.d.ts +2 -0
  155. package/src/schematics/form/form-component/index.js +22 -7
  156. package/src/schematics/form/form-component/index.js.map +1 -1
  157. package/src/schematics/form/form-component/schema.d.ts +3 -1
  158. package/src/schematics/form/form-component/schema.json +275 -150
  159. package/src/schematics/form/form-component/template.schema.json +20 -0
  160. package/src/schematics/form/form-control/index.d.ts +3 -1
  161. package/src/schematics/form/form-control/index.js +19 -8
  162. package/src/schematics/form/form-control/index.js.map +1 -1
  163. package/src/schematics/form/form-control/schema.json +203 -75
  164. package/src/schematics/form/form-control/template.schema.json +34 -0
  165. package/src/schematics/form/form-definition/index.js +14 -1
  166. package/src/schematics/form/form-definition/index.js.map +1 -1
  167. package/src/schematics/form/form-definition/schema.json +210 -127
  168. package/src/schematics/form/form-definition/template.schema.json +30 -0
  169. package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
  170. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  171. package/src/schematics/form/templates/input-form-control.hbs +9 -0
  172. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  173. package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
  174. package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
  175. package/src/schematics/form-component.schema.json +45 -0
  176. package/src/schematics/form-control.schema.json +68 -0
  177. package/src/schematics/form-definition.schema.json +22 -0
  178. package/src/schematics/form-field.schema.json +24 -0
  179. package/src/schematics/general.schema.json +1 -4
  180. package/src/schematics/header-button.schema.json +42 -0
  181. package/src/schematics/input-form-control.schema.json +55 -0
  182. package/src/schematics/minimum-table.schema.json +60 -0
  183. package/src/schematics/pipe.schema.json +38 -0
  184. package/src/schematics/property.schema.json +31 -0
  185. package/src/schematics/select-form-control.schema.json +64 -0
  186. package/src/schematics/table/action/dialog-table-action/schema.json +209 -125
  187. package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
  188. package/src/schematics/table/action/form-table-action/schema.json +383 -153
  189. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  190. package/src/schematics/table/action/navigation-table-action/schema.json +187 -80
  191. package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
  192. package/src/schematics/table/action/open-api-table-action/schema.json +206 -97
  193. package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
  194. package/src/schematics/table/action/operation-table-action/schema.json +174 -84
  195. package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
  196. package/src/schematics/table/header-button/form-table-header-button/schema.json +272 -114
  197. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
  198. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
  199. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
  200. package/src/schematics/table/table-action/schema.json +165 -78
  201. package/src/schematics/table/table-action/template.schema.json +30 -0
  202. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
  203. package/src/schematics/table/table-component/index.d.ts +1 -3
  204. package/src/schematics/table/table-component/index.js +14 -120
  205. package/src/schematics/table/table-component/index.js.map +1 -1
  206. package/src/schematics/table/table-component/schema.json +524 -277
  207. package/src/schematics/table/table-component/template.schema.json +20 -0
  208. package/src/schematics/table/table-header-button/schema.json +146 -64
  209. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  210. package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
  211. package/src/schematics/table/templates/component-table-column.hbs +12 -0
  212. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
  213. package/src/schematics/table/templates/date-table-column.hbs +11 -0
  214. package/src/schematics/table/templates/default-table-column.hbs +8 -0
  215. package/src/schematics/table/templates/icon-table-column.hbs +10 -0
  216. package/src/schematics/table/templates/link-table-column.hbs +10 -0
  217. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +255 -0
  218. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  219. package/src/schematics/table/tree-table-component/index.js +28 -7
  220. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  221. package/src/schematics/table/tree-table-component/schema.json +514 -260
  222. package/src/schematics/table/tree-table-component/template.schema.json +20 -0
  223. package/src/schematics/table-action.schema.json +61 -0
  224. package/src/schematics/table-column.schema.json +75 -0
  225. package/src/schematics/table.schema.json +57 -0
  226. package/src/schematics/templates/pipe.hbs +4 -0
  227. package/src/schematics/tree-component/schema.json +115 -70
  228. package/src/schematics/tree-component/template.schema.json +36 -0
  229. package/src/schematics/tree-table.schema.json +40 -0
  230. package/src/schematics/type.schema.json +35 -0
  231. package/src/schematics/upstream.schema.json +56 -0
  232. package/src/schematics/value.schema.json +26 -0
  233. package/src/template.schema.json +173 -0
  234. package/src/lib/accordion-itme-types.d.ts +0 -8
  235. package/src/lib/accordion-itme-types.js +0 -16
  236. package/src/lib/accordion-itme-types.js.map +0 -1
  237. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  238. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  239. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  240. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  241. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  242. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
@@ -0,0 +1,607 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "schematic-input",
4
+ "type": "object",
5
+ "oneOf": [
6
+ {
7
+ "type": "object",
8
+ "properties": {
9
+ "package": {
10
+ "type": "string",
11
+ "enum": [
12
+ "@rxap/schematic-angular"
13
+ ]
14
+ },
15
+ "name": {
16
+ "type": "string",
17
+ "enum": [
18
+ "table-component"
19
+ ]
20
+ },
21
+ "options": {
22
+ "$ref": "#/definitions/tableComponentSchematic"
23
+ }
24
+ }
25
+ },
26
+ {
27
+ "type": "object",
28
+ "properties": {
29
+ "package": {
30
+ "type": "string",
31
+ "enum": [
32
+ "@rxap/schematic-angular"
33
+ ]
34
+ },
35
+ "name": {
36
+ "type": "string",
37
+ "enum": [
38
+ "tree-table-component"
39
+ ]
40
+ },
41
+ "options": {
42
+ "$ref": "#/definitions/treeTableComponentSchematic"
43
+ }
44
+ }
45
+ },
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "package": {
50
+ "type": "string",
51
+ "enum": [
52
+ "@rxap/schematic-angular"
53
+ ]
54
+ },
55
+ "name": {
56
+ "type": "string",
57
+ "enum": [
58
+ "form-component"
59
+ ]
60
+ },
61
+ "options": {
62
+ "$ref": "#/definitions/formComponentSchematic"
63
+ }
64
+ }
65
+ },
66
+ {
67
+ "type": "object",
68
+ "properties": {
69
+ "package": {
70
+ "type": "string",
71
+ "enum": [
72
+ "@rxap/schematic-angular"
73
+ ]
74
+ },
75
+ "name": {
76
+ "type": "string",
77
+ "enum": [
78
+ "form-definition"
79
+ ]
80
+ },
81
+ "options": {
82
+ "$ref": "#/definitions/formDefinitionSchematic"
83
+ }
84
+ }
85
+ },
86
+ {
87
+ "type": "object",
88
+ "properties": {
89
+ "package": {
90
+ "type": "string",
91
+ "enum": [
92
+ "@rxap/schematic-angular"
93
+ ]
94
+ },
95
+ "name": {
96
+ "type": "string",
97
+ "enum": [
98
+ "table-action"
99
+ ]
100
+ },
101
+ "options": {
102
+ "$ref": "#/definitions/tableActionSchematic"
103
+ }
104
+ }
105
+ },
106
+ {
107
+ "type": "object",
108
+ "properties": {
109
+ "package": {
110
+ "type": "string",
111
+ "enum": [
112
+ "@rxap/schematic-angular"
113
+ ]
114
+ },
115
+ "name": {
116
+ "type": "string",
117
+ "enum": [
118
+ "table-header-button"
119
+ ]
120
+ },
121
+ "options": {
122
+ "$ref": "#/definitions/tableHeaderButtonSchematic"
123
+ }
124
+ }
125
+ },
126
+ {
127
+ "type": "object",
128
+ "properties": {
129
+ "package": {
130
+ "type": "string",
131
+ "enum": [
132
+ "@rxap/schematic-angular"
133
+ ]
134
+ },
135
+ "name": {
136
+ "type": "string",
137
+ "enum": [
138
+ "form-table-header-button"
139
+ ]
140
+ },
141
+ "options": {
142
+ "$ref": "#/definitions/formTableHeaderButtonSchematic"
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "type": "object",
148
+ "properties": {
149
+ "package": {
150
+ "type": "string",
151
+ "enum": [
152
+ "@rxap/schematic-angular"
153
+ ]
154
+ },
155
+ "name": {
156
+ "type": "string",
157
+ "enum": [
158
+ "navigation-table-header-button"
159
+ ]
160
+ },
161
+ "options": {
162
+ "$ref": "#/definitions/navigationTableHeaderButtonSchematic"
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "type": "object",
168
+ "properties": {
169
+ "package": {
170
+ "type": "string",
171
+ "enum": [
172
+ "@rxap/schematic-angular"
173
+ ]
174
+ },
175
+ "name": {
176
+ "type": "string",
177
+ "enum": [
178
+ "accordion-component"
179
+ ]
180
+ },
181
+ "options": {
182
+ "$ref": "#/definitions/accordionComponentSchematic"
183
+ }
184
+ }
185
+ },
186
+ {
187
+ "type": "object",
188
+ "properties": {
189
+ "package": {
190
+ "type": "string",
191
+ "enum": [
192
+ "@rxap/schematic-angular"
193
+ ]
194
+ },
195
+ "name": {
196
+ "type": "string",
197
+ "enum": [
198
+ "accordion-item-component"
199
+ ]
200
+ },
201
+ "options": {
202
+ "$ref": "#/definitions/accordionItemComponentSchematic"
203
+ }
204
+ }
205
+ },
206
+ {
207
+ "type": "object",
208
+ "properties": {
209
+ "package": {
210
+ "type": "string",
211
+ "enum": [
212
+ "@rxap/schematic-angular"
213
+ ]
214
+ },
215
+ "name": {
216
+ "type": "string",
217
+ "enum": [
218
+ "accordion-item-table-component"
219
+ ]
220
+ },
221
+ "options": {
222
+ "$ref": "#/definitions/accordionItemTableComponentSchematic"
223
+ }
224
+ }
225
+ },
226
+ {
227
+ "type": "object",
228
+ "properties": {
229
+ "package": {
230
+ "type": "string",
231
+ "enum": [
232
+ "@rxap/schematic-angular"
233
+ ]
234
+ },
235
+ "name": {
236
+ "type": "string",
237
+ "enum": [
238
+ "accordion-item-switch-component"
239
+ ]
240
+ },
241
+ "options": {
242
+ "$ref": "#/definitions/accordionItemSwitchComponentSchematic"
243
+ }
244
+ }
245
+ },
246
+ {
247
+ "type": "object",
248
+ "properties": {
249
+ "package": {
250
+ "type": "string",
251
+ "enum": [
252
+ "@rxap/schematic-angular"
253
+ ]
254
+ },
255
+ "name": {
256
+ "type": "string",
257
+ "enum": [
258
+ "data-grid-component"
259
+ ]
260
+ },
261
+ "options": {
262
+ "$ref": "#/definitions/dataGridComponentSchematic"
263
+ }
264
+ }
265
+ },
266
+ {
267
+ "type": "object",
268
+ "properties": {
269
+ "package": {
270
+ "type": "string",
271
+ "enum": [
272
+ "@rxap/schematic-angular"
273
+ ]
274
+ },
275
+ "name": {
276
+ "type": "string",
277
+ "enum": [
278
+ "dialog-component"
279
+ ]
280
+ },
281
+ "options": {
282
+ "$ref": "#/definitions/dialogComponentSchematic"
283
+ }
284
+ }
285
+ },
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "package": {
290
+ "type": "string",
291
+ "enum": [
292
+ "@rxap/schematic-angular"
293
+ ]
294
+ },
295
+ "name": {
296
+ "type": "string",
297
+ "enum": [
298
+ "input-form-control"
299
+ ]
300
+ },
301
+ "options": {
302
+ "$ref": "#/definitions/inputFormControlSchematic"
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "type": "object",
308
+ "properties": {
309
+ "package": {
310
+ "type": "string",
311
+ "enum": [
312
+ "@rxap/schematic-angular"
313
+ ]
314
+ },
315
+ "name": {
316
+ "type": "string",
317
+ "enum": [
318
+ "select-form-control"
319
+ ]
320
+ },
321
+ "options": {
322
+ "$ref": "#/definitions/selectFormControlSchematic"
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "type": "object",
328
+ "properties": {
329
+ "package": {
330
+ "type": "string",
331
+ "enum": [
332
+ "@rxap/schematic-angular"
333
+ ]
334
+ },
335
+ "name": {
336
+ "type": "string",
337
+ "enum": [
338
+ "table-select-form-control"
339
+ ]
340
+ },
341
+ "options": {
342
+ "$ref": "#/definitions/tableSelectFormControlSchematic"
343
+ }
344
+ }
345
+ },
346
+ {
347
+ "type": "object",
348
+ "properties": {
349
+ "package": {
350
+ "type": "string",
351
+ "enum": [
352
+ "@rxap/schematic-angular"
353
+ ]
354
+ },
355
+ "name": {
356
+ "type": "string",
357
+ "enum": [
358
+ "form-control"
359
+ ]
360
+ },
361
+ "options": {
362
+ "$ref": "#/definitions/formControlSchematic"
363
+ }
364
+ }
365
+ },
366
+ {
367
+ "type": "object",
368
+ "properties": {
369
+ "package": {
370
+ "type": "string",
371
+ "enum": [
372
+ "@rxap/schematic-angular"
373
+ ]
374
+ },
375
+ "name": {
376
+ "type": "string",
377
+ "enum": [
378
+ "dialog-table-action"
379
+ ]
380
+ },
381
+ "options": {
382
+ "$ref": "#/definitions/dialogTableActionSchematic"
383
+ }
384
+ }
385
+ },
386
+ {
387
+ "type": "object",
388
+ "properties": {
389
+ "package": {
390
+ "type": "string",
391
+ "enum": [
392
+ "@rxap/schematic-angular"
393
+ ]
394
+ },
395
+ "name": {
396
+ "type": "string",
397
+ "enum": [
398
+ "form-table-action"
399
+ ]
400
+ },
401
+ "options": {
402
+ "$ref": "#/definitions/formTableActionSchematic"
403
+ }
404
+ }
405
+ },
406
+ {
407
+ "type": "object",
408
+ "properties": {
409
+ "package": {
410
+ "type": "string",
411
+ "enum": [
412
+ "@rxap/schematic-angular"
413
+ ]
414
+ },
415
+ "name": {
416
+ "type": "string",
417
+ "enum": [
418
+ "navigation-table-action"
419
+ ]
420
+ },
421
+ "options": {
422
+ "$ref": "#/definitions/navigationTableActionSchematic"
423
+ }
424
+ }
425
+ },
426
+ {
427
+ "type": "object",
428
+ "properties": {
429
+ "package": {
430
+ "type": "string",
431
+ "enum": [
432
+ "@rxap/schematic-angular"
433
+ ]
434
+ },
435
+ "name": {
436
+ "type": "string",
437
+ "enum": [
438
+ "operation-table-action"
439
+ ]
440
+ },
441
+ "options": {
442
+ "$ref": "#/definitions/operationTableActionSchematic"
443
+ }
444
+ }
445
+ },
446
+ {
447
+ "type": "object",
448
+ "properties": {
449
+ "package": {
450
+ "type": "string",
451
+ "enum": [
452
+ "@rxap/schematic-angular"
453
+ ]
454
+ },
455
+ "name": {
456
+ "type": "string",
457
+ "enum": [
458
+ "open-api-table-action"
459
+ ]
460
+ },
461
+ "options": {
462
+ "$ref": "#/definitions/openApiTableActionSchematic"
463
+ }
464
+ }
465
+ },
466
+ {
467
+ "type": "object",
468
+ "properties": {
469
+ "package": {
470
+ "type": "string",
471
+ "enum": [
472
+ "@rxap/schematic-angular"
473
+ ]
474
+ },
475
+ "name": {
476
+ "type": "string",
477
+ "enum": [
478
+ "tree-component"
479
+ ]
480
+ },
481
+ "options": {
482
+ "$ref": "#/definitions/treeComponentSchematic"
483
+ }
484
+ }
485
+ },
486
+ {
487
+ "type": "object",
488
+ "properties": {
489
+ "package": {
490
+ "type": "string",
491
+ "enum": [
492
+ "@rxap/schematic-angular"
493
+ ]
494
+ },
495
+ "name": {
496
+ "type": "string",
497
+ "enum": [
498
+ "accordion-item-data-grid-component"
499
+ ]
500
+ },
501
+ "options": {
502
+ "$ref": "#/definitions/accordionItemDataGridComponentSchematic"
503
+ }
504
+ }
505
+ },
506
+ {
507
+ "type": "object",
508
+ "properties": {
509
+ "package": {
510
+ "type": "string",
511
+ "enum": [
512
+ "@rxap/schematic-angular"
513
+ ]
514
+ },
515
+ "name": {
516
+ "type": "string",
517
+ "enum": [
518
+ "accordion-item-tree-table-component"
519
+ ]
520
+ },
521
+ "options": {
522
+ "$ref": "#/definitions/accordionItemTreeTableComponentSchematic"
523
+ }
524
+ }
525
+ }
526
+ ],
527
+ "definitions": {
528
+ "tableComponentSchematic": {
529
+ "$ref": "schematics/table/table-component/template.schema.json"
530
+ },
531
+ "treeTableComponentSchematic": {
532
+ "$ref": "schematics/table/tree-table-component/template.schema.json"
533
+ },
534
+ "formComponentSchematic": {
535
+ "$ref": "schematics/form/form-component/template.schema.json"
536
+ },
537
+ "formDefinitionSchematic": {
538
+ "$ref": "schematics/form/form-definition/template.schema.json"
539
+ },
540
+ "tableActionSchematic": {
541
+ "$ref": "schematics/table/table-action/template.schema.json"
542
+ },
543
+ "tableHeaderButtonSchematic": {
544
+ "$ref": "schematics/table/table-header-button/template.schema.json"
545
+ },
546
+ "formTableHeaderButtonSchematic": {
547
+ "$ref": "schematics/table/header-button/form-table-header-button/template.schema.json"
548
+ },
549
+ "navigationTableHeaderButtonSchematic": {
550
+ "$ref": "schematics/table/header-button/navigation-table-header-button/template.schema.json"
551
+ },
552
+ "accordionComponentSchematic": {
553
+ "$ref": "schematics/accordion/accordion-component/template.schema.json"
554
+ },
555
+ "accordionItemComponentSchematic": {
556
+ "$ref": "schematics/accordion/accordion-item-component/template.schema.json"
557
+ },
558
+ "accordionItemTableComponentSchematic": {
559
+ "$ref": "schematics/accordion/item/accordion-item-table-component/template.schema.json"
560
+ },
561
+ "accordionItemSwitchComponentSchematic": {
562
+ "$ref": "schematics/accordion/item/accordion-item-switch-component/template.schema.json"
563
+ },
564
+ "dataGridComponentSchematic": {
565
+ "$ref": "schematics/data-grid-component/template.schema.json"
566
+ },
567
+ "dialogComponentSchematic": {
568
+ "$ref": "schematics/dialog-component/template.schema.json"
569
+ },
570
+ "inputFormControlSchematic": {
571
+ "$ref": "schematics/form/control/input-form-control/template.schema.json"
572
+ },
573
+ "selectFormControlSchematic": {
574
+ "$ref": "schematics/form/control/select-form-control/template.schema.json"
575
+ },
576
+ "tableSelectFormControlSchematic": {
577
+ "$ref": "schematics/form/control/table-select-form-control/template.schema.json"
578
+ },
579
+ "formControlSchematic": {
580
+ "$ref": "schematics/form/form-control/template.schema.json"
581
+ },
582
+ "dialogTableActionSchematic": {
583
+ "$ref": "schematics/table/action/dialog-table-action/template.schema.json"
584
+ },
585
+ "formTableActionSchematic": {
586
+ "$ref": "schematics/table/action/form-table-action/template.schema.json"
587
+ },
588
+ "navigationTableActionSchematic": {
589
+ "$ref": "schematics/table/action/navigation-table-action/template.schema.json"
590
+ },
591
+ "operationTableActionSchematic": {
592
+ "$ref": "schematics/table/action/operation-table-action/template.schema.json"
593
+ },
594
+ "openApiTableActionSchematic": {
595
+ "$ref": "schematics/table/action/open-api-table-action/template.schema.json"
596
+ },
597
+ "treeComponentSchematic": {
598
+ "$ref": "schematics/tree-component/template.schema.json"
599
+ },
600
+ "accordionItemDataGridComponentSchematic": {
601
+ "$ref": "schematics/accordion/item/accordion-item-data-grid-component/template.schema.json"
602
+ },
603
+ "accordionItemTreeTableComponentSchematic": {
604
+ "$ref": "schematics/accordion/item/accordion-item-tree-table-component/template.schema.json"
605
+ }
606
+ }
607
+ }
@@ -0,0 +1,25 @@
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 data from accordionDataSource; errorTemplate: errorTemplate" class="flex flex-col gap-y-6">
5
+ {{#if header}}
6
+ {{ indent (compile header.handlebars header=header) 2 }}
7
+ <ng-template #divider>
8
+ <mat-divider></mat-divider>
9
+ </ng-template>
10
+ <mat-progress-bar *ngIf="accordionDataSource.loading$ | async; else divider" mode="indeterminate"></mat-progress-bar>
11
+ {{else}}
12
+ <mat-progress-bar *ngIf="accordionDataSource.loading$ | async" mode="indeterminate"></mat-progress-bar>
13
+ {{/if}}
14
+ <mat-accordion {{#if multiple}}multi{{/if}}
15
+ {{~#if persistent}}
16
+ {{~#if persistent.key}} rxapPersistentAccordion="{{persistent.key}}"{{/if~}}
17
+ {{~#if persistent.property}} [rxapPersistentAccordion]="data.{{persistent.property.name}}"{{/if~}}
18
+ {{/if}}>
19
+ {{#each itemList}}
20
+ {{#if this.permission}}<ng-template rxapIfHasPermission="{{this.permission}}">{{/if~}}
21
+ {{ indent (compile this.handlebars item=this prefix=../prefix) 4 }}
22
+ {{#if this.permission}}</ng-template>{{/if~}}
23
+ {{/each}}
24
+ </mat-accordion>
25
+ </div>
@@ -1,4 +1,5 @@
1
- import { Tree } from '@angular-devkit/schematics';
1
+ import { Rule, Tree } from '@angular-devkit/schematics';
2
+ import { NormalizedDataProperty } from '@rxap/ts-morph';
2
3
  import { Normalized } from '@rxap/utilities';
3
4
  import { NormalizedAccordionHeader } from '../../../lib/accordion-header';
4
5
  import { NormalizedAccordionIdentifier } from '../../../lib/accordion-identifier';
@@ -13,5 +14,7 @@ export interface NormalizedAccordionComponentOptions extends Readonly<Normalized
13
14
  withPermission: boolean;
14
15
  header: NormalizedAccordionHeader | null;
15
16
  identifier: NormalizedAccordionIdentifier | null;
17
+ controllerName: string;
18
+ propertyList: NormalizedDataProperty[];
16
19
  }
17
- export default function (options: AccordionComponentOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
20
+ export default function (options: AccordionComponentOptions): (host: Tree) => Rule;