@rxap/schematic-angular 16.1.0-dev.9 → 16.1.0

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 (162) hide show
  1. package/CHANGELOG.md +346 -0
  2. package/README.md +1 -1
  3. package/collection.json +5 -0
  4. package/package.json +47 -41
  5. package/src/lib/accordion-item.d.ts +2 -2
  6. package/src/lib/accordion-item.js +4 -4
  7. package/src/lib/accordion-item.js.map +1 -1
  8. package/src/lib/adapter-options.d.ts +11 -5
  9. package/src/lib/adapter-options.js +8 -5
  10. package/src/lib/adapter-options.js.map +1 -1
  11. package/src/lib/angular-options.js +1 -1
  12. package/src/lib/angular-options.js.map +1 -1
  13. package/src/lib/data-grid-item.d.ts +1 -1
  14. package/src/lib/data-grid-item.js +2 -2
  15. package/src/lib/data-grid-item.js.map +1 -1
  16. package/src/lib/data-grid-options.d.ts +3 -3
  17. package/src/lib/data-grid-options.js +1 -1
  18. package/src/lib/data-grid-options.js.map +1 -1
  19. package/src/lib/dialog-action.d.ts +1 -1
  20. package/src/lib/dialog-action.js +2 -2
  21. package/src/lib/dialog-action.js.map +1 -1
  22. package/src/lib/existing-method.d.ts +11 -2
  23. package/src/lib/existing-method.js +8 -2
  24. package/src/lib/existing-method.js.map +1 -1
  25. package/src/lib/form-component-control.d.ts +1 -1
  26. package/src/lib/form-component-control.js +2 -2
  27. package/src/lib/form-component-control.js.map +1 -1
  28. package/src/lib/form-definition-control.d.ts +1 -1
  29. package/src/lib/form-definition-control.js +6 -4
  30. package/src/lib/form-definition-control.js.map +1 -1
  31. package/src/lib/minimum-table-component-options.d.ts +5 -3
  32. package/src/lib/minimum-table-component-options.js +85 -27
  33. package/src/lib/minimum-table-component-options.js.map +1 -1
  34. package/src/lib/minimum-table-options.d.ts +9 -6
  35. package/src/lib/minimum-table-options.js +7 -4
  36. package/src/lib/minimum-table-options.js.map +1 -1
  37. package/src/lib/table-action.d.ts +1 -1
  38. package/src/lib/table-action.js +11 -5
  39. package/src/lib/table-action.js.map +1 -1
  40. package/src/lib/table-column.d.ts +16 -4
  41. package/src/lib/table-column.js +93 -6
  42. package/src/lib/table-column.js.map +1 -1
  43. package/src/lib/table-header-button.d.ts +4 -6
  44. package/src/lib/table-header-button.js +2 -1
  45. package/src/lib/table-header-button.js.map +1 -1
  46. package/src/lib/table-open-api-options.d.ts +3 -2
  47. package/src/lib/table-open-api-options.js +1 -1
  48. package/src/lib/table-open-api-options.js.map +1 -1
  49. package/src/lib/table-options.d.ts +9 -5
  50. package/src/lib/table-options.js +1 -1
  51. package/src/lib/table-options.js.map +1 -1
  52. package/src/lib/table-property.d.ts +14 -0
  53. package/src/lib/table-property.js +46 -0
  54. package/src/lib/table-property.js.map +1 -0
  55. package/src/lib/table-row-action.d.ts +5 -1
  56. package/src/lib/table-row-action.js +9 -7
  57. package/src/lib/table-row-action.js.map +1 -1
  58. package/src/lib/tree-table-options.d.ts +10 -6
  59. package/src/lib/tree-table-options.js +2 -2
  60. package/src/lib/tree-table-options.js.map +1 -1
  61. package/src/lib/type-import.d.ts +4 -0
  62. package/src/lib/type-import.js +38 -0
  63. package/src/lib/type-import.js.map +1 -0
  64. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +1 -1
  65. package/src/schematics/accordion/accordion-component/index.d.ts +3 -1
  66. package/src/schematics/accordion/accordion-component/index.js +2 -2
  67. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  68. package/src/schematics/accordion/accordion-component/schema.json +13 -3
  69. package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +1 -1
  70. package/src/schematics/accordion/accordion-item-component/index.js +2 -2
  71. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  72. package/src/schematics/accordion/accordion-item-component/schema.json +13 -3
  73. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +3 -3
  74. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +5 -5
  75. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  76. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +13 -3
  77. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -4
  78. package/src/schematics/accordion/item/accordion-item-table-component/index.js +5 -5
  79. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  80. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +57 -8
  81. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +4 -1
  82. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +1 -1
  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.json +62 -9
  85. package/src/schematics/angular.schema.json +61 -0
  86. package/src/schematics/data-grid-component/index.d.ts +1 -1
  87. package/src/schematics/data-grid-component/index.js +1 -1
  88. package/src/schematics/data-grid-component/index.js.map +1 -1
  89. package/src/schematics/data-grid-component/schema.json +13 -3
  90. package/src/schematics/dialog-component/index.js +3 -3
  91. package/src/schematics/dialog-component/index.js.map +1 -1
  92. package/src/schematics/dialog-component/schema.json +13 -3
  93. package/src/schematics/form/control/input-form-control/index.js +1 -1
  94. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  95. package/src/schematics/form/control/select-form-control/index.js +1 -1
  96. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  97. package/src/schematics/form/control/table-select-form-control/index.d.ts +2 -2
  98. package/src/schematics/form/control/table-select-form-control/index.js +3 -3
  99. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  100. package/src/schematics/form/form-component/index.d.ts +1 -1
  101. package/src/schematics/form/form-component/index.js +1 -1
  102. package/src/schematics/form/form-component/index.js.map +1 -1
  103. package/src/schematics/form/form-control/index.js +1 -1
  104. package/src/schematics/form/form-control/index.js.map +1 -1
  105. package/src/schematics/form/form-definition/index.d.ts +2 -2
  106. package/src/schematics/form/form-definition/index.js +16 -9
  107. package/src/schematics/form/form-definition/index.js.map +1 -1
  108. package/src/schematics/form/form-definition/schema.d.ts +2 -1
  109. package/src/schematics/form/form-definition/schema.json +5 -0
  110. package/src/schematics/general.schema.json +41 -0
  111. package/src/schematics/table/action/dialog-table-action/index.d.ts +3 -1
  112. package/src/schematics/table/action/dialog-table-action/index.js +1 -1
  113. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  114. package/src/schematics/table/action/dialog-table-action/schema.json +12 -2
  115. package/src/schematics/table/action/form-table-action/index.d.ts +6 -3
  116. package/src/schematics/table/action/form-table-action/index.js +46 -18
  117. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  118. package/src/schematics/table/action/form-table-action/schema.d.ts +13 -1
  119. package/src/schematics/table/action/form-table-action/schema.json +71 -3
  120. package/src/schematics/table/action/navigation-table-action/index.js +4 -3
  121. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  122. package/src/schematics/table/action/navigation-table-action/schema.d.ts +1 -0
  123. package/src/schematics/table/action/navigation-table-action/schema.json +5 -0
  124. package/src/schematics/table/action/open-api-table-action/index.d.ts +10 -0
  125. package/src/schematics/table/action/open-api-table-action/index.js +50 -0
  126. package/src/schematics/table/action/open-api-table-action/index.js.map +1 -0
  127. package/src/schematics/table/action/open-api-table-action/schema.d.ts +9 -0
  128. package/src/schematics/table/action/open-api-table-action/schema.json +121 -0
  129. package/src/schematics/table/action/operation-table-action/index.js +1 -1
  130. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  131. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +10 -3
  132. package/src/schematics/table/header-button/form-table-header-button/index.js +57 -48
  133. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  134. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +8 -0
  135. package/src/schematics/table/header-button/form-table-header-button/schema.json +17 -1
  136. package/src/schematics/table/header-button/navigation-table-header-button/index.js +30 -8
  137. package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
  138. package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +1 -0
  139. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +8 -6
  140. package/src/schematics/table/table-action/index.js +1 -1
  141. package/src/schematics/table/table-action/index.js.map +1 -1
  142. package/src/schematics/table/table-action/schema.json +8 -0
  143. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +31 -40
  144. package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +17 -3
  145. package/src/schematics/table/table-component/index.d.ts +6 -8
  146. package/src/schematics/table/table-component/index.js +41 -28
  147. package/src/schematics/table/table-component/index.js.map +1 -1
  148. package/src/schematics/table/table-component/schema.json +267 -218
  149. package/src/schematics/table/table-header-button/index.d.ts +2 -4
  150. package/src/schematics/table/table-header-button/index.js +1 -1
  151. package/src/schematics/table/table-header-button/index.js.map +1 -1
  152. package/src/schematics/table/table-header-button/schema.d.ts +2 -1
  153. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +94 -82
  154. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +17 -4
  155. package/src/schematics/table/tree-table-component/index.d.ts +1 -1
  156. package/src/schematics/table/tree-table-component/index.js +19 -24
  157. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  158. package/src/schematics/table/tree-table-component/schema.json +60 -7
  159. package/src/schematics/tree-component/index.d.ts +2 -2
  160. package/src/schematics/tree-component/index.js +2 -2
  161. package/src/schematics/tree-component/index.js.map +1 -1
  162. package/src/schematics/tree-component/schema.json +11 -1
@@ -1,261 +1,310 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
3
  "$id": "template-table-module",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "type": "string",
8
- "description": "The name of the table",
9
- "x-prompt": "Which name should the table module have?"
4
+ "allOf": [
5
+ {
6
+ "$ref": "https://unpkg.com/@rxap/schematic-angular@16.1.0-dev.23/src/schematics/angular.schema.json"
10
7
  },
11
- "project": {
12
- "type": "string",
13
- "description": "The target project where the table module should be added."
14
- },
15
- "feature": {
16
- "type": "string",
17
- "description": "The feature name where the table module should be added.",
18
- "x-prompt": "To which feature should the table module be added?"
19
- },
20
- "shared": {
21
- "type": "boolean",
22
- "description": "Whether the table is shared across applications",
23
- "default": false
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
- "tableMethod": {
37
- "type": "object",
38
- "properties": {
39
- "className": {
40
- "type": "string",
41
- "description": "The name of the table method class"
42
- },
43
- "importPath": {
44
- "type": "string",
45
- "description": "The import path for the table method class"
46
- }
47
- }
48
- },
49
- "openApi": {
8
+ {
50
9
  "type": "object",
51
10
  "properties": {
52
- "operationId": {
11
+ "name": {
53
12
  "type": "string",
54
- "description": "The operationId for the open api operation"
13
+ "description": "The name of the table",
14
+ "x-prompt": "Which name should the table module have?"
55
15
  },
56
- "adapter": {
16
+ "tableMethod": {
57
17
  "type": "object",
58
18
  "properties": {
59
- "className": {
19
+ "name": {
60
20
  "type": "string",
61
- "description": "The name of the open api adapter class"
21
+ "description": "The name of the table method class"
62
22
  },
63
- "importPath": {
23
+ "moduleSpecifier": {
64
24
  "type": "string",
65
- "description": "The import path for the open api adapter class"
25
+ "description": "The import path for the table method class"
66
26
  }
67
27
  },
68
28
  "required": [
69
- "className",
70
- "importPath"
29
+ "name",
30
+ "moduleSpecifier"
71
31
  ]
72
- }
73
- },
74
- "required": [
75
- "operationId"
76
- ]
77
- },
78
- "modifiers": {
79
- "alias": "modifier",
80
- "type": "array",
81
- "items": {
82
- "type": "string",
83
- "enum": [
84
- "navigation-back-header",
85
- "without-title"
86
- ]
87
- },
88
- "description": "The table modifiers"
89
- },
90
- "headerButton": {
91
- "oneOf": [
92
- {
93
- "type": "string"
94
32
  },
95
- {
33
+ "openApi": {
96
34
  "type": "object",
97
35
  "properties": {
98
- "role": {
99
- "type": "string"
100
- },
101
- "permission": {
102
- "type": "string"
103
- },
104
- "icon": {
105
- "type": "string"
106
- },
107
- "svgIcon": {
108
- "type": "string"
36
+ "operationId": {
37
+ "type": "string",
38
+ "description": "The operationId for the open api operation"
109
39
  },
110
- "options": {
40
+ "adapter": {
111
41
  "type": "object",
112
- "additionalProperties": true
42
+ "properties": {
43
+ "name": {
44
+ "type": "string",
45
+ "description": "The name of the open api adapter class"
46
+ },
47
+ "moduleSpecifier": {
48
+ "type": "string",
49
+ "description": "The import path for the open api adapter class"
50
+ }
51
+ },
52
+ "required": [
53
+ "name",
54
+ "moduleSpecifier"
55
+ ]
113
56
  }
114
- }
115
- }
116
- ],
117
- "description": "The header button configuration"
118
- },
119
- "directory": {
120
- "type": "string",
121
- "description": "A directory name or absolute path for the table module. relative to the feature base path"
122
- },
123
- "nestModule": {
124
- "type": "string",
125
- "description": "The module name for the table nest operations"
126
- },
127
- "columnList": {
128
- "alias": "column",
129
- "type": "array",
130
- "items": {
131
- "oneOf": [
132
- {
133
- "type": "string"
134
57
  },
135
- {
136
- "type": "object",
137
- "properties": {
138
- "name": {
139
- "type": "string"
140
- },
141
- "type": {
142
- "type": "string"
143
- },
144
- "modifiers": {
145
- "type": "array",
146
- "items": {
58
+ "required": [
59
+ "operationId"
60
+ ]
61
+ },
62
+ "modifiers": {
63
+ "alias": "modifier",
64
+ "type": "array",
65
+ "items": {
66
+ "type": "string",
67
+ "enum": [
68
+ "navigation-back-header",
69
+ "without-title",
70
+ "show-archived-slide"
71
+ ]
72
+ },
73
+ "description": "The table modifiers"
74
+ },
75
+ "headerButton": {
76
+ "oneOf": [
77
+ {
78
+ "type": "string"
79
+ },
80
+ {
81
+ "type": "object",
82
+ "properties": {
83
+ "role": {
84
+ "type": "string",
85
+ "enum": [
86
+ "form",
87
+ "navigation",
88
+ "method"
89
+ ]
90
+ },
91
+ "permission": {
92
+ "type": "string"
93
+ },
94
+ "icon": {
147
95
  "type": "string"
96
+ },
97
+ "svgIcon": {
98
+ "type": "string"
99
+ },
100
+ "options": {
101
+ "type": "object",
102
+ "additionalProperties": true
148
103
  }
149
104
  },
150
- "hasFilter": {
151
- "type": "boolean"
152
- },
153
- "title": {
154
- "type": "string"
155
- },
156
- "propertyPath": {
105
+ "additionalProperties": true
106
+ }
107
+ ],
108
+ "description": "The header button configuration"
109
+ },
110
+ "propertyList": {
111
+ "alias": "property",
112
+ "type": "array",
113
+ "items": {
114
+ "oneOf": [
115
+ {
157
116
  "type": "string"
158
117
  },
159
- "hidden": {
160
- "type": "boolean"
161
- },
162
- "active": {
163
- "type": "boolean"
164
- },
165
- "inactive": {
166
- "type": "boolean"
167
- },
168
- "show": {
169
- "type": "boolean"
118
+ {
119
+ "type": "object",
120
+ "properties": {
121
+ "name": {
122
+ "type": "string"
123
+ },
124
+ "type": {
125
+ "type": "string"
126
+ }
127
+ },
128
+ "required": [
129
+ "name"
130
+ ]
170
131
  }
171
- },
172
- "required": [
173
- "name"
174
132
  ]
175
133
  }
176
- ],
177
- "description": "table column name"
178
- },
179
- "description": "List of table column names"
180
- },
181
- "actionList": {
182
- "alias": "action",
183
- "type": "array",
184
- "items": {
185
- "oneOf": [
186
- {
187
- "type": "string"
188
- },
189
- {
190
- "type": "object",
191
- "properties": {
192
- "type": {
193
- "type": "string"
194
- },
195
- "refresh": {
196
- "type": "boolean"
197
- },
198
- "confirm": {
199
- "type": "boolean"
200
- },
201
- "tooltip": {
202
- "type": "string"
203
- },
204
- "errorMessage": {
205
- "type": "string"
206
- },
207
- "successMessage": {
208
- "type": "string"
209
- },
210
- "priority": {
211
- "type": "number"
212
- },
213
- "checkFunction": {
214
- "type": "string"
215
- },
216
- "inHeader": {
217
- "type": "boolean"
218
- },
219
- "role": {
220
- "type": "string"
221
- },
222
- "icon": {
223
- "type": "string"
224
- },
225
- "svgIcon": {
134
+ },
135
+ "columnList": {
136
+ "alias": "column",
137
+ "type": "array",
138
+ "items": {
139
+ "oneOf": [
140
+ {
226
141
  "type": "string"
227
142
  },
228
- "permission": {
143
+ {
144
+ "type": "object",
145
+ "properties": {
146
+ "name": {
147
+ "type": "string"
148
+ },
149
+ "type": {
150
+ "type": "string"
151
+ },
152
+ "role": {
153
+ "type": "string"
154
+ },
155
+ "modifiers": {
156
+ "type": "array",
157
+ "items": {
158
+ "type": "string"
159
+ }
160
+ },
161
+ "template": {
162
+ "type": "string"
163
+ },
164
+ "pipeList": {
165
+ "type": "array",
166
+ "items": {
167
+ "oneOf": [
168
+ {
169
+ "type": "string"
170
+ },
171
+ {
172
+ "type": "object",
173
+ "properties": {
174
+ "name": {
175
+ "type": "string"
176
+ },
177
+ "namedImport": {
178
+ "type": "string"
179
+ },
180
+ "moduleSpecifier": {
181
+ "type": "string"
182
+ }
183
+ },
184
+ "required": [
185
+ "name",
186
+ "namedImport",
187
+ "moduleSpecifier"
188
+ ]
189
+ }
190
+ ]
191
+ }
192
+ },
193
+ "hasFilter": {
194
+ "type": "boolean"
195
+ },
196
+ "nowrap": {
197
+ "type": "boolean"
198
+ },
199
+ "cssClass": {
200
+ "type": "string"
201
+ },
202
+ "title": {
203
+ "type": "string"
204
+ },
205
+ "propertyPath": {
206
+ "type": "string"
207
+ },
208
+ "hidden": {
209
+ "type": "boolean"
210
+ },
211
+ "active": {
212
+ "type": "boolean"
213
+ },
214
+ "inactive": {
215
+ "type": "boolean"
216
+ },
217
+ "show": {
218
+ "type": "boolean"
219
+ }
220
+ },
221
+ "required": [
222
+ "name"
223
+ ]
224
+ }
225
+ ],
226
+ "description": "table column name"
227
+ },
228
+ "description": "List of table column names"
229
+ },
230
+ "actionList": {
231
+ "alias": "action",
232
+ "type": "array",
233
+ "items": {
234
+ "oneOf": [
235
+ {
229
236
  "type": "string"
230
237
  },
231
- "options": {
238
+ {
232
239
  "type": "object",
233
- "additionalProperties": true
240
+ "properties": {
241
+ "type": {
242
+ "type": "string"
243
+ },
244
+ "refresh": {
245
+ "type": "boolean"
246
+ },
247
+ "confirm": {
248
+ "type": "boolean"
249
+ },
250
+ "tooltip": {
251
+ "type": "string"
252
+ },
253
+ "errorMessage": {
254
+ "type": "string"
255
+ },
256
+ "successMessage": {
257
+ "type": "string"
258
+ },
259
+ "priority": {
260
+ "type": "number"
261
+ },
262
+ "checkFunction": {
263
+ "type": "string"
264
+ },
265
+ "inHeader": {
266
+ "type": "boolean"
267
+ },
268
+ "role": {
269
+ "type": "string"
270
+ },
271
+ "icon": {
272
+ "type": "string"
273
+ },
274
+ "svgIcon": {
275
+ "type": "string"
276
+ },
277
+ "permission": {
278
+ "type": "string"
279
+ },
280
+ "color": {
281
+ "type": "string",
282
+ "description": "Value for the color input of the mat-button / mat-icon component"
283
+ },
284
+ "cssClass": {
285
+ "type": "string",
286
+ "description": "Additional CSS classes added to the button element"
287
+ },
288
+ "options": {
289
+ "type": "object",
290
+ "additionalProperties": true
291
+ }
292
+ },
293
+ "required": [
294
+ "type"
295
+ ]
234
296
  }
235
- },
236
- "required": [
237
- "type"
238
297
  ]
239
298
  }
240
- ]
241
- }
242
- },
243
- "overwrite": {
244
- "type": "boolean",
245
- "description": "Overwrite existing files",
246
- "default": false
247
- },
248
- "selectColumn": {
249
- "type": "boolean",
250
- "description": "Whether to add a select column to the table"
251
- },
252
- "context": {
253
- "type": "string",
254
- "description": "The context use to generate proper names for class, files, etc"
299
+ },
300
+ "selectColumn": {
301
+ "type": "boolean",
302
+ "description": "Whether to add a select column to the table"
303
+ }
304
+ },
305
+ "required": [
306
+ "name"
307
+ ]
255
308
  }
256
- },
257
- "required": [
258
- "name",
259
- "feature"
260
309
  ]
261
310
  }
@@ -3,8 +3,6 @@ import { Normalized } from '@rxap/utilities';
3
3
  import { NormalizedAngularOptions } from '../../../lib/angular-options';
4
4
  import { NormalizedTableHeaderButton } from '../../../lib/table-header-button';
5
5
  import { TableHeaderButtonOptions } from './schema';
6
- export interface NormalizedTableHeaderButtonOptions extends Readonly<Normalized<TableHeaderButtonOptions> & NormalizedAngularOptions & NormalizedTableHeaderButton> {
7
- options: Record<string, any>;
8
- }
9
- export declare function NormalizeTableHeaderButtonOptions(options: Readonly<TableHeaderButtonOptions>): NormalizedTableHeaderButtonOptions;
6
+ export type NormalizedTableHeaderButtonOptions<Options extends Record<string, any> = Record<string, any>> = Readonly<Normalized<TableHeaderButtonOptions<Options>> & NormalizedAngularOptions & NormalizedTableHeaderButton>;
7
+ export declare function NormalizeTableHeaderButtonOptions<Options extends Record<string, any> = Record<string, any>>(options: Readonly<TableHeaderButtonOptions<Options>>): NormalizedTableHeaderButtonOptions<Options>;
10
8
  export default function (options: TableHeaderButtonOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
@@ -14,7 +14,7 @@ function NormalizeTableHeaderButtonOptions(options) {
14
14
  throw new Error('FATAL: should never happen');
15
15
  }
16
16
  const tableName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(options.tableName), '-table');
17
- return Object.seal(Object.assign(Object.assign(Object.assign({}, normalizedTableHeaderButton), normalizedAngularOptions), { tableName }));
17
+ return Object.freeze(Object.assign(Object.assign(Object.assign({}, normalizedTableHeaderButton), normalizedAngularOptions), { tableName }));
18
18
  }
19
19
  exports.NormalizeTableHeaderButtonOptions = NormalizeTableHeaderButtonOptions;
20
20
  function printOptions(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA8E;AAC9E,qEAGoC;AAEpC,kEAIsC;AACtC,8FAAwF;AACxF,0EAG0C;AAQ1C,SAAgB,iCAAiC,CAC/C,OAA2C;IAE3C,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,2BAA2B,GAAG,IAAA,gDAA0B,EAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IAC3F,IAAI,CAAC,2BAA2B,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC/C;IACD,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,IAAI,+CACb,2BAA2B,GAC3B,wBAAwB,KAC3B,SAAS,IACT,CAAC;AACL,CAAC;AAdD,8EAcC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,IAAA,qCAAmB,EAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,mBAAyB,OAAiC;IACxD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACrE,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,GACV,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,+DAA+D,CAAC;YACpF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC;YAC1D,IAAA,uDAAiC,EAAC;gBAChC,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;aACf,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAzCD,4BAyCC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA8E;AAC9E,qEAGoC;AAEpC,kEAIsC;AACtC,8FAAwF;AACxF,0EAG0C;AAK1C,SAAgB,iCAAiC,CAC/C,OAAoD;IAEpD,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,2BAA2B,GAAG,IAAA,gDAA0B,EAAU,OAAO,EAAE,OAAO,CAAC,SAAS,CAAQ,CAAC;IAC3G,IAAI,CAAC,2BAA2B,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC/C;IACD,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,MAAM,+CACf,2BAA2B,GAC3B,wBAAwB,KAC3B,SAAS,IACT,CAAC;AACL,CAAC;AAdD,8EAcC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,IAAA,qCAAmB,EAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,mBAAyB,OAAiC;IACxD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACrE,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,GACV,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,+DAA+D,CAAC;YACpF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC;YAC1D,IAAA,uDAAiC,EAAC;gBAChC,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;aACf,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAzCD,4BAyCC"}
@@ -2,6 +2,7 @@ import { AngularOptions } from '../../../lib/angular-options';
2
2
  import { TableHeaderButton } from '../../../lib/table-header-button';
3
3
 
4
4
 
5
- export interface TableHeaderButtonOptions extends AngularOptions, TableHeaderButton {
5
+ export interface TableHeaderButtonOptions<Options extends Record<string, any> = Record<string, any>>
6
+ extends AngularOptions, TableHeaderButton<Options> {
6
7
  tableName: string;
7
8
  }