@rxap/schematic-angular 16.1.0-dev.9 → 16.1.1-dev.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 (168) hide show
  1. package/CHANGELOG.md +358 -0
  2. package/README.md +1 -1
  3. package/collection.json +5 -0
  4. package/package.json +48 -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 +6 -4
  32. package/src/lib/minimum-table-component-options.js +87 -29
  33. package/src/lib/minimum-table-component-options.js.map +1 -1
  34. package/src/lib/minimum-table-options.d.ts +10 -7
  35. package/src/lib/minimum-table-options.js +9 -6
  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 +3 -3
  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 +5 -5
  65. package/src/schematics/accordion/accordion-component/index.d.ts +3 -1
  66. package/src/schematics/accordion/accordion-component/index.js +15 -8
  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 +2 -2
  70. package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +0 -2
  71. package/src/schematics/accordion/accordion-item-component/index.js +3 -3
  72. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  73. package/src/schematics/accordion/accordion-item-component/schema.json +13 -3
  74. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +3 -3
  75. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +9 -7
  76. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  77. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +13 -3
  78. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -4
  79. package/src/schematics/accordion/item/accordion-item-table-component/index.js +5 -5
  80. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  81. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +57 -8
  82. package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.html.template +1 -1
  83. package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +3 -3
  84. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +4 -1
  85. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +1 -1
  86. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  87. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +62 -9
  88. package/src/schematics/angular.schema.json +61 -0
  89. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +1 -1
  90. package/src/schematics/data-grid-component/index.d.ts +1 -1
  91. package/src/schematics/data-grid-component/index.js +8 -7
  92. package/src/schematics/data-grid-component/index.js.map +1 -1
  93. package/src/schematics/data-grid-component/schema.json +13 -3
  94. package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +1 -1
  95. package/src/schematics/dialog-component/index.js +3 -3
  96. package/src/schematics/dialog-component/index.js.map +1 -1
  97. package/src/schematics/dialog-component/schema.json +13 -3
  98. package/src/schematics/form/control/input-form-control/index.js +1 -1
  99. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  100. package/src/schematics/form/control/select-form-control/index.js +1 -1
  101. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  102. package/src/schematics/form/control/table-select-form-control/index.d.ts +2 -2
  103. package/src/schematics/form/control/table-select-form-control/index.js +3 -3
  104. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  105. package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +0 -2
  106. package/src/schematics/form/form-component/index.d.ts +1 -1
  107. package/src/schematics/form/form-component/index.js +1 -1
  108. package/src/schematics/form/form-component/index.js.map +1 -1
  109. package/src/schematics/form/form-control/index.js +1 -1
  110. package/src/schematics/form/form-control/index.js.map +1 -1
  111. package/src/schematics/form/form-definition/index.d.ts +2 -2
  112. package/src/schematics/form/form-definition/index.js +16 -9
  113. package/src/schematics/form/form-definition/index.js.map +1 -1
  114. package/src/schematics/form/form-definition/schema.d.ts +2 -1
  115. package/src/schematics/form/form-definition/schema.json +5 -0
  116. package/src/schematics/general.schema.json +41 -0
  117. package/src/schematics/table/action/dialog-table-action/index.d.ts +3 -1
  118. package/src/schematics/table/action/dialog-table-action/index.js +1 -1
  119. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  120. package/src/schematics/table/action/dialog-table-action/schema.json +12 -2
  121. package/src/schematics/table/action/form-table-action/index.d.ts +6 -3
  122. package/src/schematics/table/action/form-table-action/index.js +46 -18
  123. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  124. package/src/schematics/table/action/form-table-action/schema.d.ts +13 -1
  125. package/src/schematics/table/action/form-table-action/schema.json +71 -3
  126. package/src/schematics/table/action/navigation-table-action/index.js +4 -3
  127. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  128. package/src/schematics/table/action/navigation-table-action/schema.d.ts +1 -0
  129. package/src/schematics/table/action/navigation-table-action/schema.json +5 -0
  130. package/src/schematics/table/action/open-api-table-action/index.d.ts +10 -0
  131. package/src/schematics/table/action/open-api-table-action/index.js +50 -0
  132. package/src/schematics/table/action/open-api-table-action/index.js.map +1 -0
  133. package/src/schematics/table/action/open-api-table-action/schema.d.ts +9 -0
  134. package/src/schematics/table/action/open-api-table-action/schema.json +121 -0
  135. package/src/schematics/table/action/operation-table-action/index.js +1 -1
  136. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  137. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +10 -3
  138. package/src/schematics/table/header-button/form-table-header-button/index.js +57 -48
  139. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  140. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +8 -0
  141. package/src/schematics/table/header-button/form-table-header-button/schema.json +17 -1
  142. package/src/schematics/table/header-button/navigation-table-header-button/index.js +30 -8
  143. package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
  144. package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +1 -0
  145. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +8 -6
  146. package/src/schematics/table/table-action/index.js +1 -1
  147. package/src/schematics/table/table-action/index.js.map +1 -1
  148. package/src/schematics/table/table-action/schema.json +8 -0
  149. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +31 -40
  150. package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +17 -5
  151. package/src/schematics/table/table-component/index.d.ts +6 -8
  152. package/src/schematics/table/table-component/index.js +41 -28
  153. package/src/schematics/table/table-component/index.js.map +1 -1
  154. package/src/schematics/table/table-component/schema.json +297 -218
  155. package/src/schematics/table/table-header-button/index.d.ts +2 -4
  156. package/src/schematics/table/table-header-button/index.js +1 -1
  157. package/src/schematics/table/table-header-button/index.js.map +1 -1
  158. package/src/schematics/table/table-header-button/schema.d.ts +2 -1
  159. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +94 -82
  160. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +17 -6
  161. package/src/schematics/table/tree-table-component/index.d.ts +1 -1
  162. package/src/schematics/table/tree-table-component/index.js +20 -25
  163. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  164. package/src/schematics/table/tree-table-component/schema.json +90 -7
  165. package/src/schematics/tree-component/index.d.ts +2 -2
  166. package/src/schematics/tree-component/index.js +2 -2
  167. package/src/schematics/tree-component/index.js.map +1 -1
  168. package/src/schematics/tree-component/schema.json +11 -1
@@ -93,6 +93,39 @@
93
93
  "type": "string"
94
94
  },
95
95
  "type": {
96
+ "oneOf": [
97
+ {
98
+ "type": "string"
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "name": {
104
+ "type": "string"
105
+ },
106
+ "isTypeOnly": {
107
+ "type": "boolean"
108
+ },
109
+ "moduleSpecifier": {
110
+ "type": "string"
111
+ },
112
+ "namedImport": {
113
+ "type": "string"
114
+ },
115
+ "namespaceImport": {
116
+ "type": "string"
117
+ },
118
+ "defaultImport": {
119
+ "type": "string"
120
+ }
121
+ },
122
+ "required": [
123
+ "name"
124
+ ]
125
+ }
126
+ ]
127
+ },
128
+ "role": {
96
129
  "type": "string"
97
130
  },
98
131
  "modifiers": {
@@ -101,6 +134,38 @@
101
134
  "type": "string"
102
135
  }
103
136
  },
137
+ "template": {
138
+ "type": "string"
139
+ },
140
+ "pipeList": {
141
+ "type": "array",
142
+ "items": {
143
+ "oneOf": [
144
+ {
145
+ "type": "string"
146
+ },
147
+ {
148
+ "type": "object",
149
+ "properties": {
150
+ "name": {
151
+ "type": "string"
152
+ },
153
+ "namedImport": {
154
+ "type": "string"
155
+ },
156
+ "moduleSpecifier": {
157
+ "type": "string"
158
+ }
159
+ },
160
+ "required": [
161
+ "name",
162
+ "namedImport",
163
+ "moduleSpecifier"
164
+ ]
165
+ }
166
+ ]
167
+ }
168
+ },
104
169
  "hasFilter": {
105
170
  "type": "boolean"
106
171
  },
@@ -198,7 +263,17 @@
198
263
  }
199
264
  },
200
265
  "overwrite": {
201
- "type": "boolean",
266
+ "anyOf": [
267
+ {
268
+ "type": "boolean"
269
+ },
270
+ {
271
+ "type": "array",
272
+ "items": {
273
+ "type": "string"
274
+ }
275
+ }
276
+ ],
202
277
  "description": "Overwrite existing files",
203
278
  "default": false
204
279
  },
@@ -209,28 +284,36 @@
209
284
  "tableRootMethod": {
210
285
  "type": "object",
211
286
  "properties": {
212
- "className": {
287
+ "name": {
213
288
  "type": "string",
214
289
  "description": "The name of the table method class"
215
290
  },
216
- "importPath": {
291
+ "moduleSpecifier": {
217
292
  "type": "string",
218
293
  "description": "The import path for the table method class"
219
294
  }
220
- }
295
+ },
296
+ "required": [
297
+ "name",
298
+ "moduleSpecifier"
299
+ ]
221
300
  },
222
301
  "tableChildMethod": {
223
302
  "type": "object",
224
303
  "properties": {
225
- "className": {
304
+ "name": {
226
305
  "type": "string",
227
306
  "description": "The name of the table method class"
228
307
  },
229
- "importPath": {
308
+ "moduleSpecifier": {
230
309
  "type": "string",
231
310
  "description": "The import path for the table method class"
232
311
  }
233
- }
312
+ },
313
+ "required": [
314
+ "name",
315
+ "moduleSpecifier"
316
+ ]
234
317
  }
235
318
  },
236
319
  "required": [
@@ -1,6 +1,6 @@
1
- import { TreeComponentOptions } from './schema';
2
- import { NormalizedAngularOptions } from '../../lib/angular-options';
3
1
  import { Normalized } from '@rxap/utilities';
2
+ import { NormalizedAngularOptions } from '../../lib/angular-options';
3
+ import { TreeComponentOptions } from './schema';
4
4
  export interface NormalizedTreeComponentOptions extends Readonly<Normalized<TreeComponentOptions> & NormalizedAngularOptions> {
5
5
  name: string;
6
6
  controllerName: string;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NormalizeTreeComponentOptions = void 0;
4
- const schematics_utilities_1 = require("@rxap/schematics-utilities");
5
4
  const schematics_1 = require("@angular-devkit/schematics");
6
5
  const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const schematics_utilities_1 = require("@rxap/schematics-utilities");
7
7
  const angular_options_1 = require("../../lib/angular-options");
8
8
  function NormalizeTreeComponentOptions(options) {
9
9
  var _a, _b, _c;
@@ -11,7 +11,7 @@ function NormalizeTreeComponentOptions(options) {
11
11
  (0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
12
12
  const { name } = normalizedAngularOptions;
13
13
  const componentName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(name), '-tree');
14
- return Object.seal(Object.assign(Object.assign({}, normalizedAngularOptions), { modifiers: (_a = options.modifiers) !== null && _a !== void 0 ? _a : [], controllerName: (_b = options.controllerName) !== null && _b !== void 0 ? _b : componentName, componentName, fullTree: (_c = options.fullTree) !== null && _c !== void 0 ? _c : true }));
14
+ return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { modifiers: (_a = options.modifiers) !== null && _a !== void 0 ? _a : [], controllerName: (_b = options.controllerName) !== null && _b !== void 0 ? _b : componentName, componentName, fullTree: (_c = options.fullTree) !== null && _c !== void 0 ? _c : true }));
15
15
  }
16
16
  exports.NormalizeTreeComponentOptions = NormalizeTreeComponentOptions;
17
17
  function default_1(options) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":";;;AACA,qEAGoC;AACpC,2DAAmD;AACnD,mEAAoE;AACpE,+DAImC;AAUnC,SAAgB,6BAA6B,CAC3C,OAA6B;;IAE7B,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,GAAG,wBAAwB,CAAC;IAC1C,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,IAAI,iCACb,wBAAwB,KAC3B,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAClC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,aAAa,EACvD,aAAa,EACb,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,IAClC,CAAC;AACL,CAAC;AAdD,sEAcC;AAED,mBAAyB,OAA6B;IACpD,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACjE,MAAM,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAM,EACN,cAAc,GACf,GACC,iBAAiB,CAAC;IAEpB,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,6CAAuB,EAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,cAAc;gBACd,QAAQ;aACT,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAtBD,4BAsBC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD,mEAAoE;AACpE,qEAGoC;AAEpC,+DAImC;AAUnC,SAAgB,6BAA6B,CAC3C,OAA6B;;IAE7B,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,GAAG,wBAAwB,CAAC;IAC1C,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,MAAM,iCACf,wBAAwB,KAC3B,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAClC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,aAAa,EACvD,aAAa,EACb,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,IAClC,CAAC;AACL,CAAC;AAdD,sEAcC;AAED,mBAAyB,OAA6B;IACpD,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACjE,MAAM,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAM,EACN,cAAc,GACf,GACC,iBAAiB,CAAC;IAEpB,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,6CAAuB,EAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,cAAc;gBACd,QAAQ;aACT,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAtBD,4BAsBC"}
@@ -58,7 +58,17 @@
58
58
  "description": "The controller name for the tree nest operations"
59
59
  },
60
60
  "overwrite": {
61
- "type": "boolean",
61
+ "anyOf": [
62
+ {
63
+ "type": "boolean"
64
+ },
65
+ {
66
+ "type": "array",
67
+ "items": {
68
+ "type": "string"
69
+ }
70
+ }
71
+ ],
62
72
  "description": "Overwrite existing files",
63
73
  "default": false
64
74
  },