@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
@@ -1,106 +1,251 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "table-select-form-control",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "type": "string",
8
- "description": "The name of form control",
9
- "x-prompt": "Enter the name of the form control?"
10
- },
11
- "formName": {
12
- "alias": "form",
13
- "type": "string",
14
- "description": "The name of the form where the form control should be added",
15
- "x-prompt": "Enter the name of the form where the form control should be added"
16
- },
17
- "project": {
18
- "type": "string",
19
- "description": "The project where the form control should be added",
20
- "x-prompt": "Enter project name where the form control should 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"
3
+ "$id": "table-select-form-control-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/formControl"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "columnList": {
12
+ "alias": "column",
13
+ "type": "array",
14
+ "items": {
15
+ "description": "table column name",
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string",
20
+ "description": "table column name"
21
+ },
22
+ "title": {
23
+ "type": "string",
24
+ "description": "table column label"
25
+ },
26
+ "hasFilter": {
27
+ "type": "boolean",
28
+ "description": "Whether the column has a filter"
29
+ },
30
+ "kind": {
31
+ "type": "string",
32
+ "description": "The kind of data in the column"
33
+ }
34
+ }
35
+ },
36
+ "description": "List of table column names"
37
+ },
38
+ "title": {
39
+ "type": "string",
40
+ "description": "The title of the table select window"
41
+ },
42
+ "toDisplay": {
43
+ "type": "object",
44
+ "properties": {
45
+ "property": {
46
+ "$ref": "#/definitions/property"
47
+ }
48
+ }
49
+ },
50
+ "toValue": {
51
+ "type": "object",
52
+ "properties": {
53
+ "property": {
54
+ "$ref": "#/definitions/property"
55
+ }
56
+ }
57
+ },
58
+ "upstream": {
59
+ "$ref": "#/definitions/upstream"
60
+ },
61
+ "resolver": {
62
+ "type": "object",
63
+ "properties": {
64
+ "upstream": {
65
+ "$ref": "#/definitions/upstream"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ ],
72
+ "definitions": {
73
+ "formControl": {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string",
78
+ "description": "The name of the control"
79
+ },
80
+ "type": {
81
+ "$ref": "#/definitions/type"
82
+ },
83
+ "isArray": {
84
+ "type": "boolean",
85
+ "description": "Whether the control value is an array",
86
+ "default": false
87
+ },
88
+ "state": {
89
+ "type": "string",
90
+ "description": "The initial state of the control"
91
+ },
92
+ "isRequired": {
93
+ "type": "boolean",
94
+ "description": "Whether the control value is required",
95
+ "default": false
96
+ },
97
+ "isReadonly": {
98
+ "type": "boolean",
99
+ "description": "Whether the control value is readonly",
100
+ "default": false
101
+ },
102
+ "isDisabled": {
103
+ "type": "boolean",
104
+ "description": "Whether the control value is disabled",
105
+ "default": false
106
+ },
107
+ "validatorList": {
108
+ "type": "array",
109
+ "items": {
110
+ "type": "string"
111
+ }
112
+ },
113
+ "kind": {
114
+ "type": "string",
115
+ "description": "The name of the template",
116
+ "enum": [
117
+ "default",
118
+ "input",
119
+ "select",
120
+ "checkbox",
121
+ "autocomplete-table-select",
122
+ "table-select",
123
+ "textarea",
124
+ "slide-toggle"
125
+ ],
126
+ "default": "default"
127
+ }
128
+ },
129
+ "required": [
130
+ "name"
30
131
  ],
31
- "default": "none"
32
- },
33
- "feature": {
34
- "type": "string",
35
- "description": "The feature where the form control should be added",
36
- "x-prompt": "Enter feature name where the form control should be added"
37
- },
38
- "shared": {
39
- "type": "boolean",
40
- "description": "Whether the form is shared across applications",
41
- "default": false
42
- },
43
- "directory": {
44
- "type": "string",
45
- "description": "A path suffix added to the base path"
46
- },
47
- "nestModule": {
48
- "type": "string",
49
- "description": "Name of the nest module where the controller is created"
50
- },
51
- "controllerName": {
52
- "type": "string",
53
- "description": "Name of the nest controller"
132
+ "additionalProperties": true
133
+ },
134
+ "property": {
135
+ "oneOf": [
136
+ {
137
+ "type": "string"
138
+ },
139
+ {
140
+ "type": "object",
141
+ "properties": {
142
+ "name": {
143
+ "type": "string"
144
+ },
145
+ "type": {
146
+ "$ref": "#/definitions/type"
147
+ },
148
+ "isArray": {
149
+ "type": "boolean"
150
+ }
151
+ },
152
+ "required": [
153
+ "name"
154
+ ]
155
+ }
156
+ ]
157
+ },
158
+ "upstream": {
159
+ "oneOf": [
160
+ {
161
+ "type": "object",
162
+ "properties": {
163
+ "kind": {
164
+ "type": "string",
165
+ "enum": [
166
+ "open-api"
167
+ ]
168
+ },
169
+ "operationId": {
170
+ "type": "string"
171
+ },
172
+ "scope": {
173
+ "type": "string"
174
+ },
175
+ "mapper": {
176
+ "type": "object",
177
+ "properties": {
178
+ "pageIndex": {
179
+ "type": "string"
180
+ },
181
+ "pageSize": {
182
+ "type": "string"
183
+ },
184
+ "sortBy": {
185
+ "type": "string"
186
+ },
187
+ "sortDirection": {
188
+ "type": "string"
189
+ },
190
+ "list": {
191
+ "type": "string"
192
+ },
193
+ "total": {
194
+ "type": "string"
195
+ },
196
+ "filter": {
197
+ "type": "object",
198
+ "properties": {
199
+ "eq": {
200
+ "type": "string"
201
+ },
202
+ "join": {
203
+ "type": "string"
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+ },
210
+ "required": [
211
+ "kind",
212
+ "operationId"
213
+ ]
214
+ }
215
+ ]
54
216
  },
55
217
  "type": {
56
- "type": "string",
57
- "description": "The data type of the form control"
58
- },
59
- "validatorList": {
60
- "alias": "validator",
61
- "type": "array",
62
- "items": {
63
- "type": "string"
64
- },
65
- "description": "List of validators to be added to the form control"
66
- },
67
- "isRequired": {
68
- "alias": "required",
69
- "type": "boolean",
70
- "description": "Whether the form control value is required"
71
- },
72
- "state": {
73
- "type": "string",
74
- "description": "The initial state of the form control"
75
- },
76
- "isArray": {
77
- "alias": "array",
78
- "type": "boolean",
79
- "description": "Whether the form control is an array"
80
- },
81
- "multiple": {
82
- "alias": "multi",
83
- "type": "boolean",
84
- "description": "Whether the select form control is multiple mode"
85
- },
86
- "columnList": {
87
- "alias": "column",
88
- "type": "array",
89
- "items": {
90
- "type": "string",
91
- "description": "table column name"
92
- },
93
- "description": "List of table column names"
94
- },
95
- "context": {
96
- "type": "string",
97
- "description": "The context use to generate proper names for class, files, etc"
218
+ "oneOf": [
219
+ {
220
+ "type": "string"
221
+ },
222
+ {
223
+ "type": "object",
224
+ "properties": {
225
+ "name": {
226
+ "type": "string"
227
+ },
228
+ "isTypeOnly": {
229
+ "type": "boolean"
230
+ },
231
+ "moduleSpecifier": {
232
+ "type": "string"
233
+ },
234
+ "namedImport": {
235
+ "type": "string"
236
+ },
237
+ "namespaceImport": {
238
+ "type": "string"
239
+ },
240
+ "defaultImport": {
241
+ "type": "string"
242
+ }
243
+ },
244
+ "required": [
245
+ "name"
246
+ ]
247
+ }
248
+ ]
98
249
  }
99
- },
100
- "required": [
101
- "name",
102
- "formName",
103
- "project",
104
- "feature"
105
- ]
106
- }
250
+ }
251
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "table-select-form-control-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/formControl"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "columnList": {
12
+ "alias": "column",
13
+ "type": "array",
14
+ "items": {
15
+ "description": "table column name",
16
+ "type": "object",
17
+ "properties": {
18
+ "name": {
19
+ "type": "string",
20
+ "description": "table column name"
21
+ },
22
+ "title": {
23
+ "type": "string",
24
+ "description": "table column label"
25
+ },
26
+ "hasFilter": {
27
+ "type": "boolean",
28
+ "description": "Whether the column has a filter"
29
+ },
30
+ "kind": {
31
+ "type": "string",
32
+ "description": "The kind of data in the column"
33
+ }
34
+ }
35
+ },
36
+ "description": "List of table column names"
37
+ },
38
+ "title": {
39
+ "type": "string",
40
+ "description": "The title of the table select window"
41
+ },
42
+ "toDisplay": {
43
+ "type": "object",
44
+ "properties": {
45
+ "property": {
46
+ "$ref": "#/definitions/property"
47
+ }
48
+ }
49
+ },
50
+ "toValue": {
51
+ "type": "object",
52
+ "properties": {
53
+ "property": {
54
+ "$ref": "#/definitions/property"
55
+ }
56
+ }
57
+ },
58
+ "upstream": {
59
+ "$ref": "#/definitions/upstream"
60
+ },
61
+ "resolver": {
62
+ "type": "object",
63
+ "properties": {
64
+ "upstream": {
65
+ "$ref": "#/definitions/upstream"
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ ],
72
+ "definitions": {
73
+ "formControl": {
74
+ "$ref": "../../form-control/template.schema.json"
75
+ },
76
+ "property": {
77
+ "$ref": "../../../property.schema.json"
78
+ },
79
+ "upstream": {
80
+ "$ref": "../../../upstream.schema.json"
81
+ }
82
+ }
83
+ }
@@ -1,12 +1,12 @@
1
1
  <form rxapForm>
2
- <% if (window) { %>
2
+ {{#if window}}
3
3
  <ng-template rxapFormWindowFooter let-windowRef>
4
4
  <rxap-form-controls
5
5
  (close)="windowRef.complete()"
6
6
  (submitted)="windowRef.next($event)"
7
7
  ></rxap-form-controls>
8
8
  </ng-template>
9
- <% } else { %>
9
+ {{else}}
10
10
  <rxap-form-controls></rxap-form-controls>
11
- <% } %>
11
+ {{/if}}
12
12
  </form>
@@ -1,6 +1,7 @@
1
1
  import { Rule } from '@angular-devkit/schematics';
2
2
  import { DtoClassProperty } from '@rxap/schematics-ts-morph';
3
3
  import { Normalized } from '@rxap/utilities';
4
+ import { NormalizedAccordionIdentifier } from '../../../lib/accordion-identifier';
4
5
  import { NormalizedAngularOptions } from '../../../lib/angular-options';
5
6
  import { NormalizedFormComponentControl } from '../../../lib/form-component-control';
6
7
  import { NormalizedMatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
@@ -11,6 +12,7 @@ export interface NormalizedFormComponentOptions extends Omit<Readonly<Normalized
11
12
  controlList: ReadonlyArray<NormalizedFormComponentControl>;
12
13
  name: string;
13
14
  matFormFieldDefaultOptions: NormalizedMatFormFieldDefaultOptions | null;
15
+ identifier: NormalizedAccordionIdentifier | null;
14
16
  }
15
17
  export declare function NormalizeFormComponentOptions(options: Readonly<FormComponentOptions>): Readonly<NormalizedFormComponentOptions>;
16
18
  export declare function FormComponentControlToDtoClassProperty(control: NormalizedFormComponentControl): DtoClassProperty;
@@ -7,20 +7,25 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
7
7
  const schematics_utilities_1 = require("@rxap/schematics-utilities");
8
8
  const utilities_1 = require("@rxap/utilities");
9
9
  const path_1 = require("path");
10
+ const accordion_identifier_1 = require("../../../lib/accordion-identifier");
10
11
  const angular_options_1 = require("../../../lib/angular-options");
11
12
  const backend_types_1 = require("../../../lib/backend-types");
12
13
  const coerce_form_component_1 = require("../../../lib/coerce-form-component");
13
14
  const form_component_control_1 = require("../../../lib/form-component-control");
15
+ const load_handlebars_template_1 = require("../../../lib/load-handlebars-template");
14
16
  const mat_form_field_default_options_1 = require("../../../lib/mat-form-field-default-options");
15
17
  function NormalizeFormComponentOptions(options) {
16
18
  var _a, _b, _c, _d;
17
19
  const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
18
20
  (0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
19
- const { name, } = normalizedAngularOptions;
21
+ const { name, nestModule, } = normalizedAngularOptions;
20
22
  const componentName = (0, schematics_utilities_1.CoerceSuffix)(name, '-form');
21
- const controllerName = (_a = options.controllerName) !== null && _a !== void 0 ? _a : componentName;
23
+ const controllerName = (_a = options.controllerName) !== null && _a !== void 0 ? _a : (0, schematics_ts_morph_1.BuildNestControllerName)({
24
+ controllerName: componentName,
25
+ nestModule,
26
+ });
22
27
  return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { window: (_b = options.window) !== null && _b !== void 0 ? _b : false, directory: (0, path_1.join)((_c = options.directory) !== null && _c !== void 0 ? _c : '', componentName), role: (_d = options.role) !== null && _d !== void 0 ? _d : null, componentName,
23
- controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions) }));
28
+ controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions), identifier: (0, accordion_identifier_1.NormalizeAccordionIdentifier)(options.identifier) }));
24
29
  }
25
30
  exports.NormalizeFormComponentOptions = NormalizeFormComponentOptions;
26
31
  function FormComponentControlToDtoClassProperty(control) {
@@ -42,6 +47,12 @@ function componentRule(normalizedOptions) {
42
47
  name: componentName,
43
48
  directory,
44
49
  overwrite,
50
+ handlebars: {
51
+ partials: {
52
+ matFormField: (0, load_handlebars_template_1.LoadMatFormFieldHandlebarsTemplate)(),
53
+ pipe: (0, load_handlebars_template_1.LoadPipeHandlebarsTemplate)(),
54
+ }
55
+ },
45
56
  template: {
46
57
  options: Object.assign(Object.assign({}, normalizedOptions), { OperationIdToClassName: schematics_ts_morph_1.OperationIdToClassName,
47
58
  OperationIdToClassImportPath: schematics_ts_morph_1.OperationIdToClassImportPath }),
@@ -50,7 +61,7 @@ function componentRule(normalizedOptions) {
50
61
  ]);
51
62
  }
52
63
  function formDefinitionRule(normalizedOptions) {
53
- const { name, project, feature, directory, controlList, overwrite, } = normalizedOptions;
64
+ const { name, project, feature, directory, controlList, overwrite, backend, nestModule, controllerName, } = normalizedOptions;
54
65
  return (0, schematics_1.chain)([
55
66
  () => console.log(`Coerce form definition files`),
56
67
  (0, schematics_utilities_1.ExecuteSchematic)('form-definition', {
@@ -60,6 +71,9 @@ function formDefinitionRule(normalizedOptions) {
60
71
  feature,
61
72
  controlList,
62
73
  overwrite,
74
+ backend,
75
+ nestModule,
76
+ controllerName,
63
77
  }),
64
78
  ]);
65
79
  }
@@ -102,7 +116,7 @@ function formSubmitProviderRule(normalizedOptions) {
102
116
  ]);
103
117
  }
104
118
  function formSubmitBackendRule(normalizedOptions) {
105
- const { backend, project, feature, controlList, controllerName, nestModule, shared, } = normalizedOptions;
119
+ const { backend, project, feature, controlList, controllerName, nestModule, shared, identifier, } = normalizedOptions;
106
120
  switch (backend) {
107
121
  case backend_types_1.BackendTypes.NESTJS:
108
122
  return (0, schematics_1.chain)([
@@ -113,6 +127,7 @@ function formSubmitBackendRule(normalizedOptions) {
113
127
  feature,
114
128
  shared,
115
129
  nestModule,
130
+ idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
116
131
  propertyList: controlList.map(FormComponentControlToDtoClassProperty),
117
132
  bodyDtoName: controllerName,
118
133
  }),
@@ -148,12 +163,12 @@ function windowRule(normalizedOptions) {
148
163
  return (0, schematics_1.noop)();
149
164
  }
150
165
  function getSubmitOperationId(normalizedOptions) {
151
- const { project, feature, shared, controllerName, } = normalizedOptions;
166
+ const { project, feature, shared, controllerName, identifier, } = normalizedOptions;
152
167
  return (0, schematics_ts_morph_1.buildOperationId)({
153
168
  project,
154
169
  feature,
155
170
  shared,
156
- }, 'submit', controllerName);
171
+ }, identifier ? 'submitById' : 'submit', controllerName);
157
172
  }
158
173
  function printFormComponentOptions(options) {
159
174
  (0, angular_options_1.PrintAngularOptions)('form-component', options);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,mEASmC;AACnC,qEAGoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,kEAKsC;AACtC,8DAA0D;AAC1D,8EAA6E;AAC7E,gFAG6C;AAC7C,gGAGqD;AAarD,SAAgB,6BAA6B,CAC3C,OAAuC;;IAEvC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EACJ,IAAI,GACL,GAAG,wBAAwB,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,aAAa,CAAC;IAC/D,OAAO,MAAM,CAAC,MAAM,iCACf,wBAAwB,KAC3B,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,KAAK,EAC/B,SAAS,EAAE,IAAA,WAAI,EAAC,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAAE,aAAa,CAAC,EACvD,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI,EAC1B,aAAa;QACb,cAAc,EACd,WAAW,EAAE,IAAA,0DAAiC,EAAC,OAAO,CAAC,WAAW,CAAC,EACnE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,qBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,EAC5D,0BAA0B,EAAE,IAAA,oEAAmC,EAAC,OAAO,CAAC,0BAA0B,CAAC,IACnG,CAAC;AACL,CAAC;AArBD,sEAqBC;AAED,SAAgB,sCAAsC,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CAAC;YACjC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,mEASmC;AACnC,qEAGoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,4EAG2C;AAC3C,kEAKsC;AACtC,8DAA0D;AAC1D,8EAA6E;AAC7E,gFAG6C;AAC7C,oFAG+C;AAC/C,gGAGqD;AAcrD,SAAgB,6BAA6B,CAC3C,OAAuC;;IAEvC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EACJ,IAAI,EACJ,UAAU,GACX,GAAG,wBAAwB,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClD,MAAM,cAAc,GAAG,MAAA,OAAO,CAAC,cAAc,mCAAI,IAAA,6CAAuB,EAAC;QACvE,cAAc,EAAE,aAAa;QAC7B,UAAU;KACX,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,MAAM,iCACf,wBAAwB,KAC3B,MAAM,EAAE,MAAA,OAAO,CAAC,MAAM,mCAAI,KAAK,EAC/B,SAAS,EAAE,IAAA,WAAI,EAAC,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAAE,aAAa,CAAC,EACvD,IAAI,EAAE,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI,EAC1B,aAAa;QACb,cAAc,EACd,WAAW,EAAE,IAAA,0DAAiC,EAAC,OAAO,CAAC,WAAW,CAAC,EACnE,OAAO,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,qBAAS,EAA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IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC;KACrF;SAAM;QACL,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KACnC;IACD,OAAO,CAAC,GAAG,CAAC,iCAAkC,OAAO,CAAC,MAAO,SAAS,CAAC,CAAC;AAC1E,CAAC;AAED,mBAAyB,OAA6B;IACpD,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACjE,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC7C,OAAO;QACL,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,0DAA0D,CAAC;YAC/E,aAAa,CAAC,iBAAiB,CAAC;YAChC,UAAU,CAAC,iBAAiB,CAAC;YAC7B,kBAAkB,CAAC,iBAAiB,CAAC;YACrC,cAAc,CAAC,iBAAiB,CAAC;YACjC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAbD,4BAaC"}
@@ -1,5 +1,6 @@
1
- import { FormComponentControl } from '../../../lib/form-component-control';
1
+ import { AccordionIdentifier } from '../../../lib/accordion-identifier';
2
2
  import { AngularOptions } from '../../../lib/angular-options';
3
+ import { FormComponentControl } from '../../../lib/form-component-control';
3
4
  import { MatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
4
5
 
5
6
  export interface FormComponentOptions extends AngularOptions {
@@ -7,4 +8,5 @@ export interface FormComponentOptions extends AngularOptions {
7
8
  controlList?: Array<FormComponentControl>;
8
9
  role?: string;
9
10
  matFormFieldDefaultOptions?: MatFormFieldDefaultOptions;
11
+ identifier?: AccordionIdentifier;
10
12
  }