@rxap/schematic-angular 16.0.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 (200) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/GETSTARTED.md +0 -0
  3. package/GUIDES.md +0 -0
  4. package/README.md +21 -0
  5. package/collection.json +109 -0
  6. package/package.json +70 -0
  7. package/src/index.d.ts +0 -0
  8. package/src/index.js +2 -0
  9. package/src/index.js.map +1 -0
  10. package/src/lib/accordion-item.d.ts +10 -0
  11. package/src/lib/accordion-item.js +36 -0
  12. package/src/lib/accordion-item.js.map +1 -0
  13. package/src/lib/accordion-itme-types.d.ts +7 -0
  14. package/src/lib/accordion-itme-types.js +15 -0
  15. package/src/lib/accordion-itme-types.js.map +1 -0
  16. package/src/lib/angular-options.d.ts +20 -0
  17. package/src/lib/angular-options.js +57 -0
  18. package/src/lib/angular-options.js.map +1 -0
  19. package/src/lib/assert-table-component-exists.d.ts +8 -0
  20. package/src/lib/assert-table-component-exists.js +18 -0
  21. package/src/lib/assert-table-component-exists.js.map +1 -0
  22. package/src/lib/backend-types.d.ts +5 -0
  23. package/src/lib/backend-types.js +10 -0
  24. package/src/lib/backend-types.js.map +1 -0
  25. package/src/lib/data-grid-item.d.ts +9 -0
  26. package/src/lib/data-grid-item.js +31 -0
  27. package/src/lib/data-grid-item.js.map +1 -0
  28. package/src/lib/data-grid-options.d.ts +18 -0
  29. package/src/lib/data-grid-options.js +25 -0
  30. package/src/lib/data-grid-options.js.map +1 -0
  31. package/src/lib/dialog-action.d.ts +9 -0
  32. package/src/lib/dialog-action.js +33 -0
  33. package/src/lib/dialog-action.js.map +1 -0
  34. package/src/lib/existing-method.d.ts +5 -0
  35. package/src/lib/existing-method.js +11 -0
  36. package/src/lib/existing-method.js.map +1 -0
  37. package/src/lib/form-component-control.d.ts +13 -0
  38. package/src/lib/form-component-control.js +46 -0
  39. package/src/lib/form-component-control.js.map +1 -0
  40. package/src/lib/form-definition-control.d.ts +15 -0
  41. package/src/lib/form-definition-control.js +59 -0
  42. package/src/lib/form-definition-control.js.map +1 -0
  43. package/src/lib/minimum-table-component-options.d.ts +17 -0
  44. package/src/lib/minimum-table-component-options.js +343 -0
  45. package/src/lib/minimum-table-component-options.js.map +1 -0
  46. package/src/lib/minimum-table-options.d.ts +18 -0
  47. package/src/lib/minimum-table-options.js +27 -0
  48. package/src/lib/minimum-table-options.js.map +1 -0
  49. package/src/lib/table-action.d.ts +11 -0
  50. package/src/lib/table-action.js +93 -0
  51. package/src/lib/table-action.js.map +1 -0
  52. package/src/lib/table-column.d.ts +18 -0
  53. package/src/lib/table-column.js +73 -0
  54. package/src/lib/table-column.js.map +1 -0
  55. package/src/lib/table-header-button.d.ts +9 -0
  56. package/src/lib/table-header-button.js +58 -0
  57. package/src/lib/table-header-button.js.map +1 -0
  58. package/src/lib/table-options.d.ts +15 -0
  59. package/src/lib/table-options.js +16 -0
  60. package/src/lib/table-options.js.map +1 -0
  61. package/src/lib/table-row-action.d.ts +14 -0
  62. package/src/lib/table-row-action.js +21 -0
  63. package/src/lib/table-row-action.js.map +1 -0
  64. package/src/lib/to-title.d.ts +1 -0
  65. package/src/lib/to-title.js +12 -0
  66. package/src/lib/to-title.js.map +1 -0
  67. package/src/lib/tree-table-options.d.ts +15 -0
  68. package/src/lib/tree-table-options.js +15 -0
  69. package/src/lib/tree-table-options.js.map +1 -0
  70. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +30 -0
  71. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +54 -0
  72. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +5 -0
  73. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +14 -0
  74. package/src/schematics/accordion/accordion-component/index.d.ts +8 -0
  75. package/src/schematics/accordion/accordion-component/index.js +350 -0
  76. package/src/schematics/accordion/accordion-component/index.js.map +1 -0
  77. package/src/schematics/accordion/accordion-component/schema.d.ts +7 -0
  78. package/src/schematics/accordion/accordion-component/schema.json +90 -0
  79. package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +7 -0
  80. package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +32 -0
  81. package/src/schematics/accordion/accordion-item-component/index.d.ts +21 -0
  82. package/src/schematics/accordion/accordion-item-component/index.js +319 -0
  83. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -0
  84. package/src/schematics/accordion/accordion-item-component/schema.d.ts +9 -0
  85. package/src/schematics/accordion/accordion-item-component/schema.json +73 -0
  86. package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.html.template +1 -0
  87. package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +14 -0
  88. package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.html.template +10 -0
  89. package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +32 -0
  90. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +10 -0
  91. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +211 -0
  92. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -0
  93. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +7 -0
  94. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +122 -0
  95. package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.html.template +1 -0
  96. package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +35 -0
  97. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -0
  98. package/src/schematics/accordion/item/accordion-item-table-component/index.js +108 -0
  99. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -0
  100. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +7 -0
  101. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +248 -0
  102. package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.html.template +1 -0
  103. package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +34 -0
  104. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +7 -0
  105. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +182 -0
  106. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -0
  107. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +7 -0
  108. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +257 -0
  109. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +42 -0
  110. package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +43 -0
  111. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +25 -0
  112. package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +36 -0
  113. package/src/schematics/data-grid-component/index.d.ts +16 -0
  114. package/src/schematics/data-grid-component/index.js +320 -0
  115. package/src/schematics/data-grid-component/index.js.map +1 -0
  116. package/src/schematics/data-grid-component/schema.d.ts +4 -0
  117. package/src/schematics/data-grid-component/schema.json +112 -0
  118. package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +23 -0
  119. package/src/schematics/dialog-component/index.d.ts +2 -0
  120. package/src/schematics/dialog-component/index.js +43 -0
  121. package/src/schematics/dialog-component/index.js.map +1 -0
  122. package/src/schematics/dialog-component/schema.d.ts +9 -0
  123. package/src/schematics/dialog-component/schema.json +71 -0
  124. package/src/schematics/form/control/input-form-control/index.d.ts +7 -0
  125. package/src/schematics/form/control/input-form-control/index.js +40 -0
  126. package/src/schematics/form/control/input-form-control/index.js.map +1 -0
  127. package/src/schematics/form/control/input-form-control/schema.d.ts +5 -0
  128. package/src/schematics/form/control/input-form-control/schema.json +115 -0
  129. package/src/schematics/form/control/select-form-control/index.d.ts +6 -0
  130. package/src/schematics/form/control/select-form-control/index.js +124 -0
  131. package/src/schematics/form/control/select-form-control/index.js.map +1 -0
  132. package/src/schematics/form/control/select-form-control/schema.d.ts +6 -0
  133. package/src/schematics/form/control/select-form-control/schema.json +101 -0
  134. package/src/schematics/form/control/table-select-form-control/index.d.ts +12 -0
  135. package/src/schematics/form/control/table-select-form-control/index.js +183 -0
  136. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -0
  137. package/src/schematics/form/control/table-select-form-control/schema.d.ts +7 -0
  138. package/src/schematics/form/control/table-select-form-control/schema.json +105 -0
  139. package/src/schematics/form/form-component/files/component/__componentName__.component.html.template +12 -0
  140. package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +52 -0
  141. package/src/schematics/form/form-component/files/window/open-__name__-form-window.method.ts.template +29 -0
  142. package/src/schematics/form/form-component/index.d.ts +16 -0
  143. package/src/schematics/form/form-component/index.js +149 -0
  144. package/src/schematics/form/form-component/index.js.map +1 -0
  145. package/src/schematics/form/form-component/schema.d.ts +8 -0
  146. package/src/schematics/form/form-component/schema.json +107 -0
  147. package/src/schematics/form/form-control/index.d.ts +9 -0
  148. package/src/schematics/form/form-control/index.js +54 -0
  149. package/src/schematics/form/form-control/index.js.map +1 -0
  150. package/src/schematics/form/form-control/schema.d.ts +6 -0
  151. package/src/schematics/form/form-control/schema.json +91 -0
  152. package/src/schematics/form/form-definition/index.d.ts +10 -0
  153. package/src/schematics/form/form-definition/index.js +43 -0
  154. package/src/schematics/form/form-definition/index.js.map +1 -0
  155. package/src/schematics/form/form-definition/schema.d.ts +6 -0
  156. package/src/schematics/form/form-definition/schema.json +97 -0
  157. package/src/schematics/table/action/dialog-table-action/index.d.ts +8 -0
  158. package/src/schematics/table/action/dialog-table-action/index.js +99 -0
  159. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -0
  160. package/src/schematics/table/action/dialog-table-action/schema.d.ts +8 -0
  161. package/src/schematics/table/action/dialog-table-action/schema.json +133 -0
  162. package/src/schematics/table/action/form-table-action/index.d.ts +9 -0
  163. package/src/schematics/table/action/form-table-action/index.js +146 -0
  164. package/src/schematics/table/action/form-table-action/index.js.map +1 -0
  165. package/src/schematics/table/action/form-table-action/schema.d.ts +4 -0
  166. package/src/schematics/table/action/form-table-action/schema.json +94 -0
  167. package/src/schematics/table/action/navigation-table-action/index.d.ts +7 -0
  168. package/src/schematics/table/action/navigation-table-action/index.js +46 -0
  169. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -0
  170. package/src/schematics/table/action/navigation-table-action/schema.d.ts +5 -0
  171. package/src/schematics/table/action/navigation-table-action/schema.json +85 -0
  172. package/src/schematics/table/action/operation-table-action/index.d.ts +11 -0
  173. package/src/schematics/table/action/operation-table-action/index.js +87 -0
  174. package/src/schematics/table/action/operation-table-action/index.js.map +1 -0
  175. package/src/schematics/table/action/operation-table-action/schema.d.ts +4 -0
  176. package/src/schematics/table/action/operation-table-action/schema.json +93 -0
  177. package/src/schematics/table/table-action/index.d.ts +7 -0
  178. package/src/schematics/table/table-action/index.js +46 -0
  179. package/src/schematics/table/table-action/index.js.map +1 -0
  180. package/src/schematics/table/table-action/schema.d.ts +7 -0
  181. package/src/schematics/table/table-action/schema.json +81 -0
  182. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +311 -0
  183. package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +100 -0
  184. package/src/schematics/table/table-component/index.d.ts +17 -0
  185. package/src/schematics/table/table-component/index.js +329 -0
  186. package/src/schematics/table/table-component/index.js.map +1 -0
  187. package/src/schematics/table/table-component/schema.d.ts +4 -0
  188. package/src/schematics/table/table-component/schema.json +230 -0
  189. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +201 -0
  190. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +102 -0
  191. package/src/schematics/table/tree-table-component/index.d.ts +9 -0
  192. package/src/schematics/table/tree-table-component/index.js +314 -0
  193. package/src/schematics/table/tree-table-component/index.js.map +1 -0
  194. package/src/schematics/table/tree-table-component/schema.d.ts +4 -0
  195. package/src/schematics/table/tree-table-component/schema.json +239 -0
  196. package/src/schematics/tree-component/index.d.ts +10 -0
  197. package/src/schematics/tree-component/index.js +33 -0
  198. package/src/schematics/tree-component/index.js.map +1 -0
  199. package/src/schematics/tree-component/schema.d.ts +6 -0
  200. package/src/schematics/tree-component/schema.json +75 -0
@@ -0,0 +1,10 @@
1
+ import { FormDefinitionOptions } from './schema';
2
+ import { NormalizedAngularOptions } from '../../../lib/angular-options';
3
+ import { NormalizedFormDefinitionControl } from '../../../lib/form-definition-control';
4
+ import { Normalized } from '@rxap/utilities';
5
+ export interface NormalizedFormDefinitionOptions extends Readonly<Normalized<FormDefinitionOptions> & NormalizedAngularOptions> {
6
+ name: string;
7
+ controlList: Array<NormalizedFormDefinitionControl>;
8
+ }
9
+ export declare function NormalizeFormDefinitionOptions(options: Readonly<FormDefinitionOptions>): Readonly<NormalizedFormDefinitionOptions>;
10
+ export default function (options: FormDefinitionOptions): () => import("@angular-devkit/schematics").Rule;
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeFormDefinitionOptions = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const angular_options_1 = require("../../../lib/angular-options");
7
+ const form_definition_control_1 = require("../../../lib/form-definition-control");
8
+ function NormalizeFormDefinitionOptions(options) {
9
+ const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
10
+ (0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
11
+ return Object.seal(Object.assign(Object.assign({}, normalizedAngularOptions), { controlList: (0, form_definition_control_1.NormalizeFormDefinitionControlList)(options.controlList) }));
12
+ }
13
+ exports.NormalizeFormDefinitionOptions = NormalizeFormDefinitionOptions;
14
+ function printFormDefinitionOptions(options) {
15
+ (0, angular_options_1.PrintAngularOptions)('form-definition', options);
16
+ console.log(`=== controls: ${options.controlList.map((c) => c.name).join(', ')}`);
17
+ }
18
+ function default_1(options) {
19
+ const normalizedOptions = NormalizeFormDefinitionOptions(options);
20
+ const { name, project, directory, feature, controlList, } = normalizedOptions;
21
+ printFormDefinitionOptions(normalizedOptions);
22
+ return () => {
23
+ return (0, schematics_1.chain)([
24
+ () => console.log('Coerce form definition class ...'),
25
+ (0, schematics_ts_morph_1.CoerceFormDefinition)({
26
+ project,
27
+ feature,
28
+ directory,
29
+ controlList,
30
+ name,
31
+ }),
32
+ () => console.log('Coerce form providers file ...'),
33
+ (0, schematics_ts_morph_1.CoerceFormProvidersFile)({
34
+ project,
35
+ feature,
36
+ directory,
37
+ name,
38
+ }),
39
+ ]);
40
+ };
41
+ }
42
+ exports.default = default_1;
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-definition/index.ts"],"names":[],"mappings":";;;AACA,2DAAmD;AACnD,mEAGmC;AACnC,kEAKsC;AACtC,kFAG8C;AAS9C,SAAgB,8BAA8B,CAC5C,OAAwC;IAExC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,OAAO,MAAM,CAAC,IAAI,iCACb,wBAAwB,KAC3B,WAAW,EAAE,IAAA,4DAAkC,EAAC,OAAO,CAAC,WAAW,CAAC,IACpE,CAAC;AACL,CAAC;AATD,wEASC;AAED,SAAS,0BAA0B,CAAC,OAAwC;IAC1E,IAAA,qCAAmB,EAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,iBAAkB,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAE,EAAE,CAAC,CAAC;AACtF,CAAC;AAED,mBAAyB,OAA8B;IACrD,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,SAAS,EACT,OAAO,EACP,WAAW,GACZ,GAAG,iBAAiB,CAAC;IACtB,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IAC9C,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,CAAC;YACrD,IAAA,0CAAoB,EAAC;gBACnB,OAAO;gBACP,OAAO;gBACP,SAAS;gBACT,WAAW;gBACX,IAAI;aACL,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YACnD,IAAA,6CAAuB,EAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,SAAS;gBACT,IAAI;aACL,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA7BD,4BA6BC"}
@@ -0,0 +1,6 @@
1
+ import { FormDefinitionControl } from '../../../lib/form-definition-control';
2
+ import { AngularOptions } from '../../../lib/angular-options';
3
+
4
+ export interface FormDefinitionOptions extends AngularOptions {
5
+ controlList: Array<string | FormDefinitionControl>;
6
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-definition",
4
+ "type": "object",
5
+ "properties": {
6
+ "name": {
7
+ "type": "string",
8
+ "description": "The name of the form definition",
9
+ "x-prompt": "Which name should the form definition have?"
10
+ },
11
+ "project": {
12
+ "type": "string",
13
+ "description": "The target project where the accordion module should be added.",
14
+ "x-prompt": "To which project should the accordion module be added?"
15
+ },
16
+ "directory": {
17
+ "type": "string",
18
+ "description": "Relative path to the directory where the form definition should be created."
19
+ },
20
+ "backend": {
21
+ "type": "string",
22
+ "description": "The backend that should be used to handel data",
23
+ "enum": [
24
+ "none",
25
+ "local",
26
+ "nestjs"
27
+ ],
28
+ "default": "none"
29
+ },
30
+ "shared": {
31
+ "type": "boolean",
32
+ "description": "Whether the form definition should be created in the shared project.",
33
+ "default": false
34
+ },
35
+ "feature": {
36
+ "type": "string",
37
+ "description": "The feature name where the accordion module should be added.",
38
+ "x-prompt": "To which feature should the accordion module be added?"
39
+ },
40
+ "controlList": {
41
+ "alias": "control",
42
+ "anyOf": [
43
+ {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "object",
47
+ "properties": {
48
+ "name": {
49
+ "type": "string",
50
+ "description": "The name of the control"
51
+ },
52
+ "type": {
53
+ "type": "string",
54
+ "description": "The type of the control"
55
+ },
56
+ "isArray": {
57
+ "type": "boolean",
58
+ "description": "Whether the control value is an array",
59
+ "default": false
60
+ },
61
+ "state": {
62
+ "type": "string",
63
+ "description": "The initial state of the control"
64
+ },
65
+ "isRequired": {
66
+ "type": "boolean",
67
+ "description": "Whether the control value is required",
68
+ "default": false
69
+ },
70
+ "validatorList": {
71
+ "type": "array",
72
+ "items": {
73
+ "type": "string"
74
+ }
75
+ }
76
+ },
77
+ "required": [
78
+ "name"
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "type": "array",
84
+ "items": {
85
+ "type": "string"
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "required": [
92
+ "project",
93
+ "feature",
94
+ "name",
95
+ "controlList"
96
+ ]
97
+ }
@@ -0,0 +1,8 @@
1
+ import { Normalized } from '@rxap/utilities';
2
+ import { NormalizedOperationTableActionOptions } from '../operation-table-action';
3
+ import { DialogTableActionOptions } from './schema';
4
+ export interface NormalizedDialogTableActionOptions extends Readonly<Normalized<DialogTableActionOptions> & NormalizedOperationTableActionOptions> {
5
+ title: string;
6
+ }
7
+ export declare function NormalizeDialogTableActionOptions(options: DialogTableActionOptions): NormalizedDialogTableActionOptions;
8
+ export default function (options: DialogTableActionOptions): () => import("@angular-devkit/schematics").Rule;
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeDialogTableActionOptions = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const utilities_1 = require("@rxap/utilities");
7
+ const path_1 = require("path");
8
+ const angular_options_1 = require("../../../../lib/angular-options");
9
+ const dialog_action_1 = require("../../../../lib/dialog-action");
10
+ const to_title_1 = require("../../../../lib/to-title");
11
+ const operation_table_action_1 = require("../operation-table-action");
12
+ function NormalizeDialogTableActionOptions(options) {
13
+ var _a, _b, _c, _d, _e;
14
+ const actionList = (_b = (_a = options.actionList) === null || _a === void 0 ? void 0 : _a.slice()) !== null && _b !== void 0 ? _b : [];
15
+ if (actionList.length === 0) {
16
+ actionList.push({
17
+ role: 'close',
18
+ label: 'Cancel',
19
+ });
20
+ actionList.push({ role: 'submit' });
21
+ }
22
+ return Object.seal(Object.assign(Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options)), { withoutBody: (_c = options.withoutBody) !== null && _c !== void 0 ? _c : false, actionList: (0, dialog_action_1.NormalizeDialogActionList)(actionList), title: (_d = options.title) !== null && _d !== void 0 ? _d : (0, to_title_1.ToTitle)(options.type), overwrite: (_e = options.overwrite) !== null && _e !== void 0 ? _e : false }));
23
+ }
24
+ exports.NormalizeDialogTableActionOptions = NormalizeDialogTableActionOptions;
25
+ function printOptions(options) {
26
+ (0, angular_options_1.PrintAngularOptions)('dialog-table-action', options);
27
+ }
28
+ function default_1(options) {
29
+ const normalizedOptions = NormalizeDialogTableActionOptions(options);
30
+ const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, nestModule, type, withoutBody, title, overwrite, context, controllerName, scope, } = normalizedOptions;
31
+ printOptions(normalizedOptions);
32
+ return () => {
33
+ return (0, schematics_1.chain)([
34
+ () => console.log('Coerce table action method class ...'),
35
+ (0, schematics_ts_morph_1.CoerceDialogTableActionRule)({
36
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
37
+ type,
38
+ tableName,
39
+ refresh,
40
+ confirm,
41
+ tooltip,
42
+ errorMessage,
43
+ successMessage,
44
+ priority,
45
+ checkFunction,
46
+ project,
47
+ feature,
48
+ }),
49
+ () => console.log('Coerce table action dialog component ...'),
50
+ (0, schematics_ts_morph_1.CoerceDialogTableActionComponentRule)({
51
+ scope,
52
+ dialogName: `${type}-dialog`,
53
+ tableName,
54
+ directory,
55
+ operationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `${type}-action`, (0, schematics_ts_morph_1.BuildNestControllerName)({
56
+ controllerName: tableName,
57
+ nestModule,
58
+ })),
59
+ project,
60
+ feature,
61
+ template: { options: normalizedOptions },
62
+ title,
63
+ overwrite,
64
+ }),
65
+ () => console.log('Coerce table action dialog operation ...'),
66
+ (0, schematics_ts_morph_1.CoerceOperation)({
67
+ nestModule,
68
+ controllerName,
69
+ project,
70
+ feature,
71
+ shared,
72
+ overwriteControllerPath: true,
73
+ operationName: `${type}-action`,
74
+ tsMorphTransform: (project, sourceFile, classDeclaration, controllerName) => {
75
+ let body = undefined;
76
+ if (!withoutBody) {
77
+ const { className, filePath, } = (0, schematics_ts_morph_1.CoerceDtoClass)({
78
+ project,
79
+ name: (0, utilities_1.joinWithDash)([context, `${type}-action-body`]),
80
+ });
81
+ body = className;
82
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
83
+ moduleSpecifier: filePath,
84
+ namedImports: [className],
85
+ });
86
+ }
87
+ return {
88
+ body,
89
+ method: 'put',
90
+ path: `action/:rowId/${type}`,
91
+ paramList: [{ name: 'rowId' }],
92
+ };
93
+ },
94
+ }),
95
+ ]);
96
+ };
97
+ }
98
+ exports.default = default_1;
99
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/dialog-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD,mEAQmC;AACnC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AW,EAAE;wBAChB,MAAM,EACJ,SAAS,EACT,QAAQ,GACT,GAAG,IAAA,oCAAc,EAAC;4BACjB,OAAO;4BACP,IAAI,EAAE,IAAA,wBAAY,EAAC,CAAE,OAAO,EAAE,GAAI,IAAK,cAAc,CAAE,CAAC;yBACzD,CAAC,CAAC;wBACH,IAAI,GAAG,SAAS,CAAC;wBACjB,IAAA,mCAAa,EAAC,UAAU,EAAE;4BACxB,eAAe,EAAE,QAAQ;4BACzB,YAAY,EAAE,CAAE,SAAS,CAAE;yBAC5B,CAAC,CAAC;qBACJ;oBACD,OAAO;wBACL,IAAI;wBACJ,MAAM,EAAE,KAAK;wBACb,IAAI,EAAE,iBAAkB,IAAK,EAAE;wBAC/B,SAAS,EAAE,CAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAE;qBACjC,CAAC;gBACJ,CAAC;aACF,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAtGD,4BAsGC"}
@@ -0,0 +1,8 @@
1
+ import { DialogAction } from '../../../dialog-component/schema';
2
+ import { OperationTableActionOptions } from '../operation-table-action/schema';
3
+
4
+ export interface DialogTableActionOptions extends OperationTableActionOptions {
5
+ withoutBody?: boolean;
6
+ actionList?: Array<string | DialogAction>;
7
+ title?: string;
8
+ }
@@ -0,0 +1,133 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "dialog-table-action",
4
+ "type": "object",
5
+ "properties": {
6
+ "tableName": {
7
+ "alias": "table",
8
+ "type": "string",
9
+ "description": "The name of the table action"
10
+ },
11
+ "type": {
12
+ "alias": "actionType",
13
+ "type": "string",
14
+ "description": "The table action type string",
15
+ "x-prompt": "Enter the table action type string?"
16
+ },
17
+ "project": {
18
+ "type": "string",
19
+ "description": "The target project where the table action should be added."
20
+ },
21
+ "feature": {
22
+ "type": "string",
23
+ "description": "The feature name where the table action should be added.",
24
+ "x-prompt": "To which feature should the table action be added?"
25
+ },
26
+ "backend": {
27
+ "type": "string",
28
+ "description": "The backend that should be used to handel data",
29
+ "enum": [
30
+ "none",
31
+ "local",
32
+ "nestjs"
33
+ ],
34
+ "default": "none"
35
+ },
36
+ "shared": {
37
+ "type": "boolean",
38
+ "description": "Whether the table action is shared across applications",
39
+ "default": false
40
+ },
41
+ "refresh": {
42
+ "type": "boolean",
43
+ "description": "Whether the table action should refresh the table after execution",
44
+ "default": false
45
+ },
46
+ "confirm": {
47
+ "type": "boolean",
48
+ "description": "Whether the table action should confirm before execution",
49
+ "default": false
50
+ },
51
+ "tooltip": {
52
+ "type": "string",
53
+ "description": "The tooltip for the table action"
54
+ },
55
+ "errorMessage": {
56
+ "type": "string",
57
+ "description": "The error message for the table action"
58
+ },
59
+ "successMessage": {
60
+ "type": "string",
61
+ "description": "The success message for the table action"
62
+ },
63
+ "checkFunction": {
64
+ "type": "string",
65
+ "description": "The check function for the table action"
66
+ },
67
+ "priority": {
68
+ "type": "number",
69
+ "description": "The priority of the table action"
70
+ },
71
+ "directory": {
72
+ "type": "string",
73
+ "description": "A directory name or absolute path for the table action. relative to the feature base path"
74
+ },
75
+ "nestModule": {
76
+ "type": "string",
77
+ "description": "The module name for the table nest operations"
78
+ },
79
+ "withoutBody": {
80
+ "type": "boolean",
81
+ "description": "Whether the table action operation should be without body",
82
+ "default": false
83
+ },
84
+ "actionList": {
85
+ "alias": "action",
86
+ "type": "array",
87
+ "description": "The list of actions to be added to the dialog",
88
+ "items": {
89
+ "oneOf": [
90
+ {
91
+ "type": "string"
92
+ },
93
+ {
94
+ "type": "object",
95
+ "properties": {
96
+ "label": {
97
+ "type": "string"
98
+ },
99
+ "color": {
100
+ "type": "string"
101
+ },
102
+ "role": {
103
+ "type": "string",
104
+ "enum": [
105
+ "submit",
106
+ "close"
107
+ ]
108
+ }
109
+ }
110
+ }
111
+ ]
112
+ }
113
+ },
114
+ "title": {
115
+ "type": "string",
116
+ "description": "The title for the dialog"
117
+ },
118
+ "overwrite": {
119
+ "type": "boolean",
120
+ "description": "Whether to overwrite existing table action",
121
+ "default": false
122
+ },
123
+ "context": {
124
+ "type": "string",
125
+ "description": "The context use to generate proper names for class, files, etc"
126
+ }
127
+ },
128
+ "required": [
129
+ "type",
130
+ "project",
131
+ "feature"
132
+ ]
133
+ }
@@ -0,0 +1,9 @@
1
+ import { Rule, Tree } from '@angular-devkit/schematics';
2
+ import { Normalized } from '@rxap/utilities';
3
+ import { OptionalKind, SourceFile, TypeAliasDeclarationStructure } from 'ts-morph';
4
+ import { NormalizedOperationTableActionOptions } from '../operation-table-action';
5
+ import { FormTableActionOptions } from './schema';
6
+ export type NormalizedFormTableActionOptions = Readonly<Normalized<FormTableActionOptions>> & NormalizedOperationTableActionOptions;
7
+ export declare function NormalizeFormTableActionOptions(options: Readonly<FormTableActionOptions>): NormalizedFormTableActionOptions;
8
+ export declare function CoerceTypeAlias(sourceFile: SourceFile, name: string, structure: Omit<OptionalKind<TypeAliasDeclarationStructure>, 'name'>): import("ts-morph").TypeAliasDeclaration;
9
+ export default function (options: FormTableActionOptions): (host: Tree) => Rule;
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CoerceTypeAlias = exports.NormalizeFormTableActionOptions = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const schematics_utilities_1 = require("@rxap/schematics-utilities");
7
+ const utilities_1 = require("@rxap/utilities");
8
+ const path_1 = require("path");
9
+ const operation_table_action_1 = require("../operation-table-action");
10
+ function NormalizeFormTableActionOptions(options) {
11
+ return Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options));
12
+ }
13
+ exports.NormalizeFormTableActionOptions = NormalizeFormTableActionOptions;
14
+ function CoerceTypeAlias(sourceFile, name, structure) {
15
+ let typeAliasDeclaration = sourceFile.getTypeAlias(name);
16
+ if (!typeAliasDeclaration) {
17
+ typeAliasDeclaration = sourceFile.addTypeAlias(Object.assign(Object.assign({}, structure), { name }));
18
+ }
19
+ return typeAliasDeclaration;
20
+ }
21
+ exports.CoerceTypeAlias = CoerceTypeAlias;
22
+ function UseOperationResponseAsFormTypeRule(options) {
23
+ const { name, operationId, scope, } = options;
24
+ const className = (0, utilities_1.CoerceSuffix)((0, utilities_1.classify)(name), 'Form');
25
+ const interfaceName = `I${className}`;
26
+ return (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)(options, (project) => {
27
+ const sourceFile = (0, schematics_ts_morph_1.CoerceSourceFile)(project, '/' + (0, utilities_1.CoerceSuffix)(name, '.form.ts'));
28
+ const interfaceDeclaration = sourceFile.getInterface(interfaceName);
29
+ if (interfaceDeclaration) {
30
+ interfaceDeclaration.remove();
31
+ }
32
+ CoerceTypeAlias(sourceFile, interfaceName, {
33
+ type: (0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId),
34
+ isExported: true,
35
+ }).set({ type: (0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId) });
36
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
37
+ namedImports: [(0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId)],
38
+ moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToResponseClassImportPath)(operationId, scope),
39
+ });
40
+ });
41
+ }
42
+ function default_1(options) {
43
+ const normalizedOptions = NormalizeFormTableActionOptions(options);
44
+ const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, nestModule, type, context, controllerName, overwrite, scope, } = normalizedOptions;
45
+ console.log(`===== Generating form table action for type '${type}' for project '${project}' in feature '${feature}' in directory '${directory}' with context '${context}' and the nest module '${nestModule}' and controller '${controllerName}' ...`);
46
+ return (host) => {
47
+ if (!(0, schematics_ts_morph_1.HasTableComponent)(host, {
48
+ project,
49
+ feature,
50
+ directory,
51
+ name: tableName,
52
+ })) {
53
+ throw new schematics_1.SchematicsException(`Could not find the table component '${tableName}' in the project '${project}' and feature '${feature}' and directory '${directory}'.`);
54
+ }
55
+ return (0, schematics_1.chain)([
56
+ (0, schematics_ts_morph_1.CoerceFormTableActionRule)({
57
+ scope,
58
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
59
+ loadOperationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `get`, (0, schematics_ts_morph_1.BuildNestControllerName)({
60
+ controllerName,
61
+ nestModule,
62
+ })),
63
+ type,
64
+ tableName,
65
+ refresh,
66
+ confirm,
67
+ tooltip,
68
+ errorMessage,
69
+ successMessage,
70
+ priority,
71
+ checkFunction,
72
+ project,
73
+ feature,
74
+ }),
75
+ (0, schematics_ts_morph_1.CoerceOperation)({
76
+ controllerName,
77
+ nestModule,
78
+ project,
79
+ feature,
80
+ shared,
81
+ operationName: `get`,
82
+ controllerPath: `action/:rowId/${type}`,
83
+ overwriteControllerPath: true,
84
+ tsMorphTransform: (project, sourceFile) => {
85
+ const { className, filePath, } = (0, schematics_ts_morph_1.CoerceDtoClass)({
86
+ project,
87
+ name: (0, utilities_1.joinWithDash)([context, type, 'action', type, 'form']),
88
+ });
89
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
90
+ namedImports: [className],
91
+ moduleSpecifier: filePath,
92
+ });
93
+ return {
94
+ returnType: className,
95
+ paramList: [
96
+ {
97
+ name: 'rowId',
98
+ fromParent: true,
99
+ },
100
+ ],
101
+ };
102
+ },
103
+ }),
104
+ (0, schematics_utilities_1.ExecuteSchematic)('form-module', {
105
+ project,
106
+ name: type,
107
+ feature,
108
+ directory,
109
+ shared,
110
+ window: true,
111
+ role: type,
112
+ nestModule,
113
+ controllerName,
114
+ overwrite,
115
+ context: (0, utilities_1.joinWithDash)([context, type, 'action']),
116
+ }),
117
+ (0, schematics_ts_morph_1.CoerceFormSubmitOperation)({
118
+ controllerName,
119
+ project,
120
+ feature,
121
+ shared,
122
+ nestModule,
123
+ paramList: [
124
+ {
125
+ name: 'rowId',
126
+ fromParent: true,
127
+ },
128
+ ],
129
+ bodyDtoName: (0, utilities_1.joinWithDash)([context, type, 'action', type, 'form']),
130
+ }),
131
+ UseOperationResponseAsFormTypeRule({
132
+ scope,
133
+ project,
134
+ feature,
135
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', (0, utilities_1.CoerceSuffix)(type, '-form')),
136
+ name: type,
137
+ operationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `get`, (0, schematics_ts_morph_1.BuildNestControllerName)({
138
+ controllerName,
139
+ nestModule,
140
+ })),
141
+ }),
142
+ ]);
143
+ };
144
+ }
145
+ exports.default = default_1;
146
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/form-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAcmC;AACnC,qEAA8D;AAC9D,+CAKyB;AACzB,+BAA4B;AAM5B,sEAGmC;AAMnC,SAAgB,+BAA+B,CAC7C,OAAyC;IAEzC,yBACK,IAAA,6DAAoC,EAAC,OAAO,CAAC,EAChD;AACJ,CAAC;AAND,0EAMC;AAED,SAAgB,eAAe,CAC7B,UAAsB,EACtB,IAAY,EACZ,SAAoE;IAEpE,IAAI,oBAAoB,GAAG,UAAU,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;IACzD,IAAI,CAAC,oBAAoB,EAAE;QACzB,oBAAoB,GAAG,UAAU,CAAC,YAAY,iCACzC,SAAS,KACZ,IAAI,IACJ,CAAC;KACJ;IACD,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAbD,0CAaC;AASD,SAAS,kCAAkC,CACzC,OAAkD;IAElD,MAAM,EACJ,IAAI,EACJ,WAAW,EACX,KAAK,GACN,GAAG,OAAO,CAAC;IAEZ,MAAM,SAAS,GAAG,IAAA,wBAAY,EAAC,IAAA,oBAAQ,EAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;IACvD,MAAM,a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CAAC;AACJ,CAAC;AAhJD,4BAgJC"}
@@ -0,0 +1,4 @@
1
+ import { OperationTableActionOptions } from '../operation-table-action/schema';
2
+
3
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
4
+ export interface FormTableActionOptions extends OperationTableActionOptions {}