@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,13 @@
1
+ import { Normalized } from '@rxap/utilities';
2
+ export interface FormComponentControl {
3
+ name: string;
4
+ type?: string;
5
+ isRequired?: boolean;
6
+ state?: string;
7
+ validatorList?: string[];
8
+ }
9
+ export interface NormalizedFormComponentControl extends Readonly<Normalized<FormComponentControl>> {
10
+ type: string;
11
+ }
12
+ export declare function NormalizeFormComponentControl(control: string | FormComponentControl): NormalizedFormComponentControl;
13
+ export declare function NormalizeFormComponentControlList(controlList?: Array<string | FormComponentControl>): Array<NormalizedFormComponentControl>;
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeFormComponentControlList = exports.NormalizeFormComponentControl = void 0;
4
+ const schematics_utilities_1 = require("@rxap/schematics-utilities");
5
+ function NormalizeFormComponentControl(control) {
6
+ var _a, _b, _c, _d;
7
+ let name;
8
+ let type = 'unknown';
9
+ let isRequired = false;
10
+ let state = null;
11
+ let validatorList = [];
12
+ if (typeof control === 'string') {
13
+ // name:type:isRequired:state:validators
14
+ // username:string:true:my-default-username:minLength(3),maxLength(20)
15
+ const fragments = control.split(':');
16
+ name = fragments[0];
17
+ type = fragments[1] || type;
18
+ isRequired = fragments[2] === 'true';
19
+ state = fragments[3] || state;
20
+ if (fragments[4]) {
21
+ // ensure that the value is not an empty string
22
+ validatorList = fragments[4].split(/,(?![^(]*\))/g);
23
+ }
24
+ }
25
+ else {
26
+ name = control.name;
27
+ type = (_a = control.type) !== null && _a !== void 0 ? _a : type;
28
+ isRequired = (_b = control.isRequired) !== null && _b !== void 0 ? _b : false;
29
+ state = (_c = control.state) !== null && _c !== void 0 ? _c : state;
30
+ validatorList = (_d = control.validatorList) !== null && _d !== void 0 ? _d : validatorList;
31
+ }
32
+ return Object.seal({
33
+ name: (0, schematics_utilities_1.camelize)(name),
34
+ type,
35
+ isRequired,
36
+ state,
37
+ validatorList,
38
+ });
39
+ }
40
+ exports.NormalizeFormComponentControl = NormalizeFormComponentControl;
41
+ function NormalizeFormComponentControlList(controlList) {
42
+ var _a;
43
+ return Object.seal((_a = controlList === null || controlList === void 0 ? void 0 : controlList.map(NormalizeFormComponentControl)) !== null && _a !== void 0 ? _a : []);
44
+ }
45
+ exports.NormalizeFormComponentControlList = NormalizeFormComponentControlList;
46
+ //# sourceMappingURL=form-component-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-component-control.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/form-component-control.ts"],"names":[],"mappings":";;;AACA,qEAAsD;AActD,SAAgB,6BAA6B,CAC3C,OAAsC;;IAEtC,IAAI,IAAY,CAAC;IACjB,IAAI,IAAI,GAAG,SAAS,CAAC;IACrB,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,IAAI,aAAa,GAAa,EAAE,CAAC;IACjC,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,wCAAwC;QACxC,sEAAsE;QACtE,MAAM,SAAS,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACrC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;QAC5B,UAAU,GAAG,SAAS,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;QACrC,KAAK,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;QAC9B,IAAI,SAAS,CAAC,CAAC,CAAC,EAAE;YAChB,+CAA+C;YAC/C,aAAa,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;SACrD;KACF;SAAM;QACL,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACpB,IAAI,GAAG,MAAA,OAAO,CAAC,IAAI,mCAAI,IAAI,CAAC;QAC5B,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,KAAK,CAAC;QACzC,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,KAAK,CAAC;QAC/B,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,aAAa,CAAC;KACxD;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI,EAAE,IAAA,+BAAQ,EAAC,IAAI,CAAC;QACpB,IAAI;QACJ,UAAU;QACV,KAAK;QACL,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAlCD,sEAkCC;AAED,SAAgB,iCAAiC,CAC/C,WAAkD;;IAElD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,GAAG,CAAC,6BAA6B,CAAC,mCAAI,EAAE,CAAC,CAAC;AAC5E,CAAC;AAJD,8EAIC"}
@@ -0,0 +1,15 @@
1
+ import { Normalized, Nullable } from '@rxap/utilities';
2
+ export interface FormDefinitionControl {
3
+ name: string;
4
+ type?: string;
5
+ isArray?: boolean;
6
+ state?: string;
7
+ isRequired?: boolean;
8
+ validatorList?: string[];
9
+ }
10
+ export interface NormalizedFormDefinitionControl extends Readonly<Normalized<FormDefinitionControl>> {
11
+ type: string;
12
+ }
13
+ export declare function NormalizeFormControlType(control: Nullable<Pick<FormDefinitionControl, 'type' | 'state'>>): Pick<NormalizedFormDefinitionControl, 'type' | 'state' | 'isArray'>;
14
+ export declare function NormalizeFormDefinitionControl(control: string | FormDefinitionControl): NormalizedFormDefinitionControl;
15
+ export declare function NormalizeFormDefinitionControlList(controlList?: Array<string | FormDefinitionControl>): Array<NormalizedFormDefinitionControl>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeFormDefinitionControlList = exports.NormalizeFormDefinitionControl = exports.NormalizeFormControlType = void 0;
4
+ const form_component_control_1 = require("./form-component-control");
5
+ function NormalizeFormControlType(control) {
6
+ var _a;
7
+ let isArray = false;
8
+ let type = control.type;
9
+ let state = (_a = control.state) !== null && _a !== void 0 ? _a : null;
10
+ if (type && typeof type === 'string') {
11
+ isArray = type.endsWith('[]') || type.startsWith('Array<');
12
+ type = type.replace(/\[]$/, '').replace(/^Array<(.+)>/, '$1');
13
+ if (!['string', 'boolean', 'number', 'unknown'].includes(type)) {
14
+ switch (type) {
15
+ case 'date':
16
+ type = 'string';
17
+ break;
18
+ case 'uuid':
19
+ type = 'string';
20
+ break;
21
+ default:
22
+ type = 'unknown';
23
+ break;
24
+ }
25
+ }
26
+ }
27
+ if (isArray) {
28
+ if (typeof state === 'string' && !(state === null || state === void 0 ? void 0 : state.match(/^\[.+]$/))) {
29
+ console.warn(`The state of the control is not an array! Overwrite with '[]'`);
30
+ state = '[]';
31
+ }
32
+ }
33
+ return Object.seal({
34
+ type: type !== null && type !== void 0 ? type : 'unknown',
35
+ isArray,
36
+ state,
37
+ });
38
+ }
39
+ exports.NormalizeFormControlType = NormalizeFormControlType;
40
+ function NormalizeFormDefinitionControl(control) {
41
+ const nControl = (0, form_component_control_1.NormalizeFormComponentControl)(control);
42
+ const { name, isRequired, validatorList, } = nControl;
43
+ const { type, state, isArray, } = NormalizeFormControlType(nControl);
44
+ return Object.seal({
45
+ name,
46
+ type,
47
+ isArray,
48
+ isRequired,
49
+ state,
50
+ validatorList,
51
+ });
52
+ }
53
+ exports.NormalizeFormDefinitionControl = NormalizeFormDefinitionControl;
54
+ function NormalizeFormDefinitionControlList(controlList) {
55
+ var _a;
56
+ return Object.seal((_a = controlList === null || controlList === void 0 ? void 0 : controlList.map(NormalizeFormDefinitionControl)) !== null && _a !== void 0 ? _a : []);
57
+ }
58
+ exports.NormalizeFormDefinitionControlList = NormalizeFormDefinitionControlList;
59
+ //# sourceMappingURL=form-definition-control.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-definition-control.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/form-definition-control.ts"],"names":[],"mappings":";;;AAIA,qEAAyE;AAezE,SAAgB,wBAAwB,CAAC,OAAgE;;IACvG,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACxB,IAAI,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI,CAAC;IAClC,IAAI,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QACpC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3D,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC9D,IAAI,CAAC,CAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,CAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;YAChE,QAAQ,IAAI,EAAE;gBACZ,KAAK,MAAM;oBACT,IAAI,GAAG,QAAQ,CAAC;oBAChB,MAAM;gBACR,KAAK,MAAM;oBACT,IAAI,GAAG,QAAQ,CAAC;oBAChB,MAAM;gBACR;oBACE,IAAI,GAAG,SAAS,CAAC;oBACjB,MAAM;aACT;SACF;KACF;IACD,IAAI,OAAO,EAAE;QACX,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,KAAK,CAAC,SAAS,CAAC,CAAA,EAAE;YACzD,OAAO,CAAC,IAAI,CACV,+DAA+D,CAChE,CAAC;YACF,KAAK,GAAG,IAAI,CAAC;SACd;KACF;IACD,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI,EAAE,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,SAAS;QACvB,OAAO;QACP,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAlCD,4DAkCC;AAED,SAAgB,8BAA8B,CAC5C,OAAuC;IAEvC,MAAM,QAAQ,GAAG,IAAA,sDAA6B,EAAC,OAAO,CAAC,CAAC;IACxD,MAAM,EACJ,IAAI,EACJ,UAAU,EACV,aAAa,GACd,GAAG,QAAQ,CAAC;IACb,MAAM,EACJ,IAAI,EACJ,KAAK,EACL,OAAO,GACR,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACvC,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,IAAI;QACJ,IAAI;QACJ,OAAO;QACP,UAAU;QACV,KAAK;QACL,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AAtBD,wEAsBC;AAED,SAAgB,kCAAkC,CAChD,WAAmD;;IAEnD,OAAO,MAAM,CAAC,IAAI,CAAC,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,GAAG,CAAC,8BAA8B,CAAC,mCAAI,EAAE,CAAC,CAAC;AAC7E,CAAC;AAJD,gFAIC"}
@@ -0,0 +1,17 @@
1
+ import { Rule } from '@angular-devkit/schematics';
2
+ import { Normalized } from '@rxap/utilities';
3
+ import { AngularOptions, NormalizedAngularOptions } from './angular-options';
4
+ import { MinimumTableOptions, NormalizedMinimumTableOptions } from './minimum-table-options';
5
+ import { NormalizedTableAction } from './table-action';
6
+ import { NormalizedTableColumn } from './table-column';
7
+ export type MinimumTableComponentOptions = MinimumTableOptions & AngularOptions;
8
+ export interface NormalizedMinimumTableComponentOptions extends Readonly<Normalized<MinimumTableComponentOptions> & NormalizedMinimumTableOptions & NormalizedAngularOptions> {
9
+ columnList: NormalizedTableColumn[];
10
+ actionList: NormalizedTableAction[];
11
+ componentName: string;
12
+ }
13
+ export declare function NormalizeMinimumTableComponentOptions(options: Readonly<MinimumTableComponentOptions>): NormalizedMinimumTableComponentOptions;
14
+ export declare function tableInterfaceRule(normalizedOptions: NormalizedMinimumTableComponentOptions): Rule;
15
+ export declare function actionListRule(normalizedOptions: NormalizedMinimumTableComponentOptions): Rule;
16
+ export declare function cellComponentRule(normalizedOptions: NormalizedMinimumTableComponentOptions): Rule;
17
+ export declare function headerButtonRule(normalizedOptions: NormalizedMinimumTableComponentOptions): Rule;
@@ -0,0 +1,343 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.headerButtonRule = exports.cellComponentRule = exports.actionListRule = exports.tableInterfaceRule = exports.NormalizeMinimumTableComponentOptions = 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 angular_options_1 = require("./angular-options");
10
+ const backend_types_1 = require("./backend-types");
11
+ const minimum_table_options_1 = require("./minimum-table-options");
12
+ function NormalizeMinimumTableComponentOptions(options) {
13
+ var _a;
14
+ const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
15
+ (0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
16
+ const { name } = normalizedAngularOptions;
17
+ const normalizedTableOptions = (0, minimum_table_options_1.NormalizeMinimumTableOptions)(options, name);
18
+ const componentName = (0, schematics_utilities_1.CoerceSuffix)(name, '-table');
19
+ return Object.seal(Object.assign(Object.assign(Object.assign({}, normalizedAngularOptions), normalizedTableOptions), { componentName, directory: (0, path_1.join)((_a = options.directory) !== null && _a !== void 0 ? _a : '', componentName) }));
20
+ }
21
+ exports.NormalizeMinimumTableComponentOptions = NormalizeMinimumTableComponentOptions;
22
+ // region table interface
23
+ function tableInterfaceFromOpenApiRule(normalizedOptions) {
24
+ const { backend, project, feature, directory, shared, componentName, nestModule, } = normalizedOptions;
25
+ if (![backend_types_1.BackendTypes.NESTJS].includes(backend)) {
26
+ throw new schematics_1.SchematicsException(`Invalid backend type: ${backend} - expected nestjs`);
27
+ }
28
+ const controllerName = (0, schematics_ts_morph_1.BuildNestControllerName)({
29
+ controllerName: componentName,
30
+ nestModule,
31
+ });
32
+ const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-page', controllerName);
33
+ return (0, schematics_1.chain)([
34
+ (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)({
35
+ project,
36
+ feature,
37
+ directory,
38
+ shared,
39
+ }, (project, [sourceFile]) => {
40
+ (0, schematics_ts_morph_1.CoerceTypeAlias)(sourceFile, `I${(0, utilities_1.classify)(componentName)}`).set({
41
+ isExported: true,
42
+ type: `TableRowMetadata & ${(0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId)}['rows'][number]`,
43
+ });
44
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
45
+ moduleSpecifier: '@rxap/material-table-system',
46
+ namedImports: ['TableRowMetadata'],
47
+ });
48
+ }, [`${(0, utilities_1.dasherize)(componentName)}.ts?`]),
49
+ ]);
50
+ }
51
+ function tableInterfaceFromColumnListRule(normalizedOptions) {
52
+ const { columnList, name, componentName, project, feature, directory, shared, } = normalizedOptions;
53
+ return (0, schematics_1.chain)([
54
+ (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)({
55
+ project,
56
+ feature,
57
+ directory,
58
+ shared,
59
+ }, (project, [sourceFile]) => {
60
+ (0, schematics_ts_morph_1.CoerceInterface)(sourceFile, `I${(0, utilities_1.classify)(componentName)}`).set({
61
+ isExported: true,
62
+ extends: ['Record<string, unknown>', 'TableRowMetadata'],
63
+ properties: columnList.map((column) => {
64
+ var _a;
65
+ return ({
66
+ name: column.name,
67
+ type: (_a = column.type) !== null && _a !== void 0 ? _a : 'unknown',
68
+ });
69
+ }),
70
+ });
71
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
72
+ moduleSpecifier: '@rxap/material-table-system',
73
+ namedImports: ['TableRowMetadata'],
74
+ });
75
+ }, [`${(0, utilities_1.dasherize)(componentName)}.ts?`]),
76
+ ]);
77
+ }
78
+ function tableInterfaceRule(normalizedOptions) {
79
+ const { backend } = normalizedOptions;
80
+ switch (backend) {
81
+ case backend_types_1.BackendTypes.NESTJS:
82
+ return tableInterfaceFromOpenApiRule(normalizedOptions);
83
+ default:
84
+ case backend_types_1.BackendTypes.NONE:
85
+ return tableInterfaceFromColumnListRule(normalizedOptions);
86
+ }
87
+ }
88
+ exports.tableInterfaceRule = tableInterfaceRule;
89
+ // endregion
90
+ // region table action
91
+ function operationActionRule(action, normalizedOptions) {
92
+ var _a;
93
+ const { type } = action;
94
+ const { overwrite, project, feature, shared, backend, componentName, directory, nestModule, controllerName, context, } = normalizedOptions;
95
+ if (type !== 'operation') {
96
+ throw new schematics_1.SchematicsException(`Invalid action type: ${action.type} - expected operation`);
97
+ }
98
+ return (0, schematics_1.chain)([
99
+ () => console.log(`Coerce operation table action '${action.type}'`),
100
+ (0, schematics_utilities_1.ExecuteSchematic)('operation-table-action', Object.assign(Object.assign({}, action), { overwrite,
101
+ project,
102
+ feature,
103
+ shared,
104
+ backend, tableName: componentName, directory, nestModule: (_a = (shared ? undefined : nestModule)) !== null && _a !== void 0 ? _a : controllerName, context: (0, utilities_1.joinWithDash)([context, controllerName]) })),
105
+ ]);
106
+ }
107
+ function formActionRule(action, normalizedOptions) {
108
+ var _a;
109
+ const { type } = action;
110
+ const { overwrite, project, feature, shared, backend, componentName, directory, nestModule, controllerName, context, } = normalizedOptions;
111
+ if (type !== 'form') {
112
+ throw new schematics_1.SchematicsException(`Invalid action type: ${action.type} - expected form`);
113
+ }
114
+ return (0, schematics_1.chain)([
115
+ () => console.log(`Coerce form table action '${action.type}'`),
116
+ (0, schematics_utilities_1.ExecuteSchematic)('form-table-action', Object.assign(Object.assign({}, action), { overwrite,
117
+ project,
118
+ feature,
119
+ shared,
120
+ backend, tableName: componentName, directory, nestModule: (_a = (shared ? undefined : nestModule)) !== null && _a !== void 0 ? _a : controllerName, context: (0, utilities_1.joinWithDash)([context, controllerName]) })),
121
+ ]);
122
+ }
123
+ function navigateActionRule(action, normalizedOptions) {
124
+ const { type } = action;
125
+ const { overwrite, project, feature, shared, backend, componentName, directory, } = normalizedOptions;
126
+ if (!['link', 'navigate'].includes(type)) {
127
+ throw new schematics_1.SchematicsException(`Invalid action type: ${action.type} - expected navigate`);
128
+ }
129
+ return (0, schematics_1.chain)([
130
+ () => console.log(`Coerce navigate table action '${action.type}'`),
131
+ (0, schematics_utilities_1.ExecuteSchematic)('navigate-table-action', Object.assign(Object.assign({}, action), { overwrite,
132
+ project,
133
+ feature,
134
+ shared,
135
+ backend, tableName: componentName, directory })),
136
+ ]);
137
+ }
138
+ function dialogActionRule(action, normalizedOptions) {
139
+ var _a;
140
+ const { type } = action;
141
+ const { overwrite, project, feature, shared, backend, componentName, directory, nestModule, controllerName, context, } = normalizedOptions;
142
+ if (type !== 'dialog') {
143
+ throw new schematics_1.SchematicsException(`Invalid action type: ${action.type} - expected dialog`);
144
+ }
145
+ return (0, schematics_1.chain)([
146
+ () => console.log(`Coerce dialog table action '${action.type}'`),
147
+ (0, schematics_utilities_1.ExecuteSchematic)('dialog-table-action', Object.assign(Object.assign({}, action), { overwrite,
148
+ project,
149
+ feature,
150
+ shared,
151
+ backend, tableName: componentName, directory, nestModule: (_a = (shared ? undefined : nestModule)) !== null && _a !== void 0 ? _a : controllerName, context: (0, utilities_1.joinWithDash)([context, controllerName]) })),
152
+ ]);
153
+ }
154
+ function defaultActionRule(action, normalizedOptions) {
155
+ const { overwrite, project, feature, shared, backend, componentName, directory, } = normalizedOptions;
156
+ return (0, schematics_1.chain)([
157
+ () => console.log(`Coerce table action '${action.type}'`),
158
+ (0, schematics_utilities_1.ExecuteSchematic)('table-action', Object.assign(Object.assign({}, action), { overwrite,
159
+ project,
160
+ feature,
161
+ shared,
162
+ backend, tableName: componentName, directory })),
163
+ ]);
164
+ }
165
+ function actionRule(action, normalizedOptions) {
166
+ switch (action.type) {
167
+ case 'operation':
168
+ return operationActionRule(action, normalizedOptions);
169
+ case 'form':
170
+ return formActionRule(action, normalizedOptions);
171
+ case 'link':
172
+ console.warn('Deprecated action type: link - use navigate instead');
173
+ return navigateActionRule(action, normalizedOptions);
174
+ case 'navigate':
175
+ return navigateActionRule(action, normalizedOptions);
176
+ case 'dialog':
177
+ return dialogActionRule(action, normalizedOptions);
178
+ case 'method':
179
+ console.warn('Deprecated action type: method - leaf empty instead');
180
+ return defaultActionRule(action, normalizedOptions);
181
+ default:
182
+ return defaultActionRule(action, normalizedOptions);
183
+ }
184
+ }
185
+ function actionListRule(normalizedOptions) {
186
+ const { actionList } = normalizedOptions;
187
+ if (actionList.length > 0) {
188
+ return (0, schematics_1.chain)([
189
+ () => console.log(`Coerce the table actions count: ${actionList.length}`),
190
+ ...actionList.map((action) => actionRule(action, normalizedOptions)),
191
+ ]);
192
+ }
193
+ return (0, schematics_1.noop)();
194
+ }
195
+ exports.actionListRule = actionListRule;
196
+ // endregion
197
+ function cellComponentRule(normalizedOptions) {
198
+ const { overwrite, columnList, project, feature, shared, directory, } = normalizedOptions;
199
+ if (columnList.some(c => c.type === 'component')) {
200
+ return (0, schematics_1.chain)([
201
+ () => console.log(`Coerce the table cell components count: ${columnList.filter((column) => column.type === 'component').length}`),
202
+ ...columnList
203
+ .filter((column) => column.type === 'component')
204
+ .map((column) => (0, schematics_ts_morph_1.CoerceComponentRule)({
205
+ project,
206
+ feature,
207
+ shared,
208
+ name: (0, schematics_utilities_1.CoerceSuffix)(column.name, '-cell'),
209
+ directory,
210
+ overwrite: overwrite || column.modifiers.includes('overwrite'),
211
+ })),
212
+ ]);
213
+ }
214
+ return (0, schematics_1.noop)();
215
+ }
216
+ exports.cellComponentRule = cellComponentRule;
217
+ function headerButtonRule(normalizedOptions) {
218
+ var _a;
219
+ const { headerButton, project, feature, directory, shared, nestModule, controllerName, context, backend, overwrite, componentName, } = normalizedOptions;
220
+ if (headerButton) {
221
+ switch (headerButton.role) {
222
+ case 'form':
223
+ return (0, schematics_1.chain)([
224
+ () => console.log(`Coerce the form for the create button`),
225
+ (0, schematics_utilities_1.ExecuteSchematic)('form-component', {
226
+ project,
227
+ name: `table-header-button`,
228
+ feature,
229
+ directory,
230
+ shared,
231
+ window: true,
232
+ controlList: [],
233
+ nestModule: (_a = (shared ? undefined : nestModule)) !== null && _a !== void 0 ? _a : controllerName,
234
+ context: (0, utilities_1.joinWithDash)([context, controllerName]),
235
+ backend,
236
+ overwrite,
237
+ }),
238
+ (0, schematics_ts_morph_1.CoerceMethodClass)({
239
+ project,
240
+ feature,
241
+ shared,
242
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods'),
243
+ name: 'table-header-button',
244
+ overwrite,
245
+ tsMorphTransform: (project, sourceFile, classDeclaration) => {
246
+ const [constructorDeclaration] = (0, schematics_ts_morph_1.CoerceClassConstructor)(classDeclaration);
247
+ (0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'formWindowService', {
248
+ type: 'FormWindowService',
249
+ });
250
+ (0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'injector', {
251
+ type: 'Injector',
252
+ decorators: [
253
+ {
254
+ name: 'Inject',
255
+ arguments: ['INJECTOR'],
256
+ },
257
+ ],
258
+ });
259
+ (0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'defaultOptions', {
260
+ type: 'FormWindowOptions<ITableHeaderButtonForm> | null',
261
+ initializer: 'null',
262
+ decorators: [
263
+ {
264
+ name: 'Inject',
265
+ arguments: ['RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS'],
266
+ },
267
+ {
268
+ name: 'Optional',
269
+ arguments: [],
270
+ },
271
+ ],
272
+ });
273
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
274
+ {
275
+ moduleSpecifier: '@angular/core',
276
+ namedImports: ['Injector', 'INJECTOR', 'Inject', 'Optional'],
277
+ },
278
+ {
279
+ moduleSpecifier: '@rxap/form-window-system',
280
+ namedImports: [
281
+ 'FormWindowOptions',
282
+ 'FormWindowService',
283
+ 'OpenFormWindowMethod',
284
+ 'RXAP_FORM_WINDOW_SYSTEM_OPEN_FORM_DEFAULT_OPTIONS',
285
+ ],
286
+ },
287
+ {
288
+ moduleSpecifier: '../table-header-button-form/table-header-button.form',
289
+ namedImports: ['ITableHeaderButtonForm', 'TableHeaderButtonForm'],
290
+ },
291
+ {
292
+ moduleSpecifier: '../table-header-button-form/table-header-button-form.component',
293
+ namedImports: ['TableHeaderButtonFormComponent'],
294
+ },
295
+ ]);
296
+ (0, schematics_ts_morph_1.CoerceStatements)(constructorDeclaration, [
297
+ 'super(',
298
+ 'formWindowService,',
299
+ 'TableHeaderButtonForm,',
300
+ 'injector,',
301
+ 'TableHeaderButtonFormComponent,',
302
+ 'defaultOptions,',
303
+ ');',
304
+ ]);
305
+ classDeclaration.setExtends('OpenFormWindowMethod<ITableHeaderButtonForm>');
306
+ return {
307
+ hasOverrideKeyword: true,
308
+ statements: ['super.call(parameters);'],
309
+ };
310
+ },
311
+ }),
312
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
313
+ project,
314
+ feature,
315
+ shared,
316
+ name: componentName,
317
+ directory,
318
+ overwrite,
319
+ tsMorphTransform: (project, [sourceFile]) => {
320
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
321
+ provide: 'TABLE_CREATE_REMOTE_METHOD',
322
+ useClass: 'TableHeaderButtonMethod',
323
+ }, [
324
+ {
325
+ moduleSpecifier: '@rxap/material-table-system',
326
+ namedImports: ['TABLE_CREATE_REMOTE_METHOD'],
327
+ },
328
+ {
329
+ moduleSpecifier: './methods/table-header-button.method',
330
+ namedImports: ['TableHeaderButtonMethod'],
331
+ },
332
+ ]);
333
+ },
334
+ }),
335
+ ]);
336
+ default:
337
+ throw new schematics_1.SchematicsException(`Unknown header button role ${headerButton.role}`);
338
+ }
339
+ }
340
+ return (0, schematics_1.noop)();
341
+ }
342
+ exports.headerButtonRule = headerButtonRule;
343
+ //# sourceMappingURL=minimum-table-component-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimum-table-component-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/minimum-table-component-options.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAcmC;AACnC,qEAGoC;AACpC,+CAKyB;AACzB,+BAA4B;AAK5B,uDAK2B;AAC3B,mDAA+C;AAC/C,mEAIiC;AAajC,SAAgB,qCAAqC,CACnD,OAA+C;;IAE/C,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,sBAAsB,GAAG,IAAA,oDAA4B,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC3E,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACnD,OAAO,MAAM,CAAC,IAAI,+CACb,wBAAwB,GACxB,sBAAsB,KACzB,aAAa,EACb,SAAS,EAAE,IAAA,WAAI,EAAC,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAAE,aAAa,CAAC,IACvD,CAAC;AACL,CAAC;AAdD,sFAcC;AAED,yBAAyB;AAEzB,SAAS,6BAA6B,CAAC,iBAAyD;IAC9F,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,SAAS,EACT,MAAM,EACN,aAAa,EACb,UAAU,GACX,GAAG,iBAAiB,CAAC;IACtB,IAAI,CAAC,CAAE,4BAAY,CAAC,MAAM,CAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;QAC9C,MAAM,IAAI,gCAAmB,CAAC,yBAA0B,OAAQ,oBAAoB,CAAC,CAAC;KACvF;IACD,MAAM,cAAc,GAAG,IAAA,6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AAE;iCACpE;gCACD;oCACE,eAAe,EAAE,gEAAgE;oCACjF,YAAY,EAAE,CAAE,gCAAgC,CAAE;iCACnD;6BACF,CAAC,CAAC;4BACH,IAAA,sCAAgB,EAAC,sBAAsB,EAAE;gCACvC,QAAQ;gCACR,oBAAoB;gCACpB,wBAAwB;gCACxB,WAAW;gCACX,iCAAiC;gCACjC,iBAAiB;gCACjB,IAAI;6BACL,CAAC,CAAC;4BACH,gBAAgB,CAAC,UAAU,CAAC,8CAA8C,CAAC,CAAC;4BAC5E,OAAO;gCACL,kBAAkB,EAAE,IAAI;gCACxB,UAAU,EAAE,CAAE,yBAAyB,CAAE;6BAC1C,CAAC;wBACJ,CAAC;qBACF,CAAC;oBACF,IAAA,yCAAmB,EAAC;wBAClB,OAAO;wBACP,OAAO;wBACP,MAAM;wBACN,IAAI,EAAE,aAAa;wBACnB,SAAS;wBACT,SAAS;wBACT,gBAAgB,EAAE,CAChB,OAAgB,EAChB,CAAE,UAAU,CAAkB,EAC9B,EAAE;4BACF,IAAA,0CAAoB,EAClB,UAAU,EACV;gCACE,OAAO,EAAE,4BAA4B;gCACrC,QAAQ,EAAE,yBAAyB;6BACpC,EACD;gCACE;oCACE,eAAe,EAAE,6BAA6B;oCAC9C,YAAY,EAAE,CAAE,4BAA4B,CAAE;iCAC/C;gCACD;oCACE,eAAe,EAAE,sCAAsC;oCACvD,YAAY,EAAE,CAAE,yBAAyB,CAAE;iCAC5C;6BACF,CACF,CAAC;wBACJ,CAAC;qBACF,CAAC;iBACH,CAAC,CAAC;YAEL;gBACE,MAAM,IAAI,gCAAmB,CAAC,8BAA+B,YAAY,CAAC,IAAK,EAAE,CAAC,CAAC;SACtF;KACF;IACD,OAAO,IAAA,iBAAI,GAAE,CAAC;AAChB,CAAC;AA/ID,4CA+IC"}
@@ -0,0 +1,18 @@
1
+ import { TableHeaderButton } from './table-header-button';
2
+ import { NormalizedTableColumn, TableColumn } from './table-column';
3
+ import { NormalizedTableAction, TableAction } from './table-action';
4
+ import { Normalized } from '@rxap/utilities';
5
+ export interface MinimumTableOptions {
6
+ headerButton?: string | TableHeaderButton;
7
+ columnList: Array<string | TableColumn>;
8
+ actionList: Array<string | TableAction>;
9
+ modifiers?: string[];
10
+ title?: string;
11
+ componentName?: string;
12
+ }
13
+ export interface NormalizedMinimumTableOptions extends Readonly<Normalized<MinimumTableOptions>> {
14
+ componentName: string;
15
+ columnList: NormalizedTableColumn[];
16
+ actionList: NormalizedTableAction[];
17
+ }
18
+ export declare function NormalizeMinimumTableOptions(options: Readonly<MinimumTableOptions>, name: string): NormalizedMinimumTableOptions;
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeMinimumTableOptions = void 0;
4
+ const table_header_button_1 = require("./table-header-button");
5
+ const table_column_1 = require("./table-column");
6
+ const table_action_1 = require("./table-action");
7
+ const utilities_1 = require("@rxap/utilities");
8
+ const to_title_1 = require("./to-title");
9
+ function NormalizeMinimumTableOptions(options, name) {
10
+ var _a, _b, _c;
11
+ const componentName = (_a = options.componentName) !== null && _a !== void 0 ? _a : (0, utilities_1.CoerceSuffix)(name, '-table');
12
+ const actionList = (0, table_action_1.NormalizeTableActionList)(options.actionList);
13
+ const columnList = (0, table_column_1.NormalizeTableColumnList)(options.columnList);
14
+ const headerButton = (0, table_header_button_1.NormalizeTableHeaderButton)(options.headerButton, name);
15
+ const modifiers = (_b = options.modifiers) !== null && _b !== void 0 ? _b : [];
16
+ const title = (_c = options.title) !== null && _c !== void 0 ? _c : (0, to_title_1.ToTitle)(name);
17
+ return Object.seal({
18
+ componentName,
19
+ actionList,
20
+ columnList,
21
+ headerButton,
22
+ modifiers,
23
+ title,
24
+ });
25
+ }
26
+ exports.NormalizeMinimumTableOptions = NormalizeMinimumTableOptions;
27
+ //# sourceMappingURL=minimum-table-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimum-table-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/minimum-table-options.ts"],"names":[],"mappings":";;;AAAA,+DAG+B;AAC/B,iDAIwB;AACxB,iDAIwB;AACxB,+CAGyB;AACzB,yCAAqC;AAiBrC,SAAgB,4BAA4B,CAC1C,OAAsC,EACtC,IAAY;;IAEZ,MAAM,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,IAAA,wBAAY,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAC5E,MAAM,UAAU,GAAG,IAAA,uCAAwB,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChE,MAAM,UAAU,GAAG,IAAA,uCAAwB,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChE,MAAM,YAAY,GAAG,IAAA,gDAA0B,EAAC,OAAO,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;IAC5E,MAAM,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,CAAC;IAC1C,MAAM,KAAK,GAAG,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,aAAa;QACb,UAAU;QACV,UAAU;QACV,YAAY;QACZ,SAAS;QACT,KAAK;KACN,CAAC,CAAC;AACL,CAAC;AAlBD,oEAkBC"}
@@ -0,0 +1,11 @@
1
+ import { Normalized } from '@rxap/utilities';
2
+ import { TableRowAction } from './table-row-action';
3
+ export interface TableAction extends TableRowAction {
4
+ role: string;
5
+ icon?: string | null;
6
+ svgIcon?: string | null;
7
+ permission?: string | null;
8
+ }
9
+ export type NormalizedTableAction = Readonly<Normalized<TableAction>>;
10
+ export declare function NormalizeTableAction(tableAction: Readonly<TableAction> | string): NormalizedTableAction;
11
+ export declare function NormalizeTableActionList(tableActionList?: Array<Readonly<TableAction> | string>): Array<NormalizedTableAction>;