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

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 (95) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/package.json +14 -13
  4. package/src/lib/accordion-item.js +19 -17
  5. package/src/lib/accordion-item.js.map +1 -1
  6. package/src/lib/accordion-itme-types.js +7 -3
  7. package/src/lib/accordion-itme-types.js.map +1 -1
  8. package/src/lib/adapter-options.js +6 -2
  9. package/src/lib/adapter-options.js.map +1 -1
  10. package/src/lib/angular-options.js +22 -31
  11. package/src/lib/angular-options.js.map +1 -1
  12. package/src/lib/assert-table-component-exists.js +9 -5
  13. package/src/lib/assert-table-component-exists.js.map +1 -1
  14. package/src/lib/backend-types.js +5 -2
  15. package/src/lib/backend-types.js.map +1 -1
  16. package/src/lib/data-grid-item.js +12 -5
  17. package/src/lib/data-grid-item.js.map +1 -1
  18. package/src/lib/data-grid-options.js +13 -8
  19. package/src/lib/data-grid-options.js.map +1 -1
  20. package/src/lib/dialog-action.js +14 -7
  21. package/src/lib/dialog-action.js.map +1 -1
  22. package/src/lib/existing-method.js +5 -1
  23. package/src/lib/existing-method.js.map +1 -1
  24. package/src/lib/form-component-control.js +16 -9
  25. package/src/lib/form-component-control.js.map +1 -1
  26. package/src/lib/form-definition-control.js +17 -9
  27. package/src/lib/form-definition-control.js.map +1 -1
  28. package/src/lib/minimum-table-component-options.js +92 -121
  29. package/src/lib/minimum-table-component-options.js.map +1 -1
  30. package/src/lib/minimum-table-options.js +17 -12
  31. package/src/lib/minimum-table-options.js.map +1 -1
  32. package/src/lib/table-action.js +37 -33
  33. package/src/lib/table-action.js.map +1 -1
  34. package/src/lib/table-column.js +27 -20
  35. package/src/lib/table-column.js.map +1 -1
  36. package/src/lib/table-header-button.js +20 -15
  37. package/src/lib/table-header-button.js.map +1 -1
  38. package/src/lib/table-open-api-options.js +8 -4
  39. package/src/lib/table-open-api-options.js.map +1 -1
  40. package/src/lib/table-options.js +15 -13
  41. package/src/lib/table-options.js.map +1 -1
  42. package/src/lib/table-row-action.js +18 -13
  43. package/src/lib/table-row-action.js.map +1 -1
  44. package/src/lib/to-title.js +8 -4
  45. package/src/lib/to-title.js.map +1 -1
  46. package/src/lib/tree-table-options.js +13 -11
  47. package/src/lib/tree-table-options.js.map +1 -1
  48. package/src/schematics/accordion/accordion-component/index.js +105 -125
  49. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  50. package/src/schematics/accordion/accordion-item-component/index.js +107 -119
  51. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  52. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +54 -55
  53. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-table-component/index.js +36 -38
  55. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  56. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +52 -54
  57. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  58. package/src/schematics/data-grid-component/index.js +81 -87
  59. package/src/schematics/data-grid-component/index.js.map +1 -1
  60. package/src/schematics/dialog-component/index.js +20 -21
  61. package/src/schematics/dialog-component/index.js.map +1 -1
  62. package/src/schematics/form/control/input-form-control/index.js +18 -15
  63. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  64. package/src/schematics/form/control/select-form-control/index.js +43 -41
  65. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  66. package/src/schematics/form/control/table-select-form-control/index.js +58 -56
  67. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  68. package/src/schematics/form/form-component/index.js +54 -62
  69. package/src/schematics/form/form-component/index.js.map +1 -1
  70. package/src/schematics/form/form-control/index.js +23 -22
  71. package/src/schematics/form/form-control/index.js.map +1 -1
  72. package/src/schematics/form/form-definition/index.js +18 -16
  73. package/src/schematics/form/form-definition/index.js.map +1 -1
  74. package/src/schematics/table/action/dialog-table-action/index.js +30 -30
  75. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  76. package/src/schematics/table/action/form-table-action/index.js +56 -67
  77. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  78. package/src/schematics/table/action/navigation-table-action/index.js +20 -17
  79. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  80. package/src/schematics/table/action/operation-table-action/index.js +31 -30
  81. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  82. package/src/schematics/table/header-button/form-table-header-button/index.js +29 -36
  83. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  84. package/src/schematics/table/header-button/navigation-table-header-button/index.js +23 -21
  85. package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
  86. package/src/schematics/table/table-action/index.js +23 -22
  87. package/src/schematics/table/table-action/index.js.map +1 -1
  88. package/src/schematics/table/table-component/index.js +93 -92
  89. package/src/schematics/table/table-component/index.js.map +1 -1
  90. package/src/schematics/table/table-header-button/index.js +21 -20
  91. package/src/schematics/table/table-header-button/index.js.map +1 -1
  92. package/src/schematics/table/tree-table-component/index.js +63 -66
  93. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  94. package/src/schematics/tree-component/index.js +18 -18
  95. package/src/schematics/tree-component/index.js.map +1 -1
@@ -1,29 +1,30 @@
1
- import { chain, } from '@angular-devkit/schematics';
2
- import { CoerceClassConstructor, CoerceImports, CoerceParameterDeclaration, CoerceTableHeaderButtonMethodRule, } from '@rxap/schematics-ts-morph';
3
- import { Scope } from 'ts-morph';
4
- import { PrintAngularOptions, } from '../../../../lib/angular-options';
5
- import { AssertTableComponentExists } from '../../../../lib/assert-table-component-exists';
6
- import { NormalizeTableHeaderButtonOptions } from '../../table-header-button/index';
7
- export function NormalizeNavigationTableHeaderButtonOptions(options) {
8
- const normalizedTableHeaderButtonOptions = NormalizeTableHeaderButtonOptions(options);
9
- return Object.seal({
10
- ...normalizedTableHeaderButtonOptions,
11
- route: options.route,
12
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeNavigationTableHeaderButtonOptions = void 0;
4
+ const schematics_1 = require("@angular-devkit/schematics");
5
+ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const ts_morph_1 = require("ts-morph");
7
+ const angular_options_1 = require("../../../../lib/angular-options");
8
+ const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
9
+ const index_1 = require("../../table-header-button/index");
10
+ function NormalizeNavigationTableHeaderButtonOptions(options) {
11
+ const normalizedTableHeaderButtonOptions = (0, index_1.NormalizeTableHeaderButtonOptions)(options);
12
+ return Object.seal(Object.assign(Object.assign({}, normalizedTableHeaderButtonOptions), { route: options.route }));
13
13
  }
14
+ exports.NormalizeNavigationTableHeaderButtonOptions = NormalizeNavigationTableHeaderButtonOptions;
14
15
  function printOptions(options) {
15
- PrintAngularOptions('navigation-table-header-button', options);
16
+ (0, angular_options_1.PrintAngularOptions)('navigation-table-header-button', options);
16
17
  }
17
- export default function (options) {
18
+ function default_1(options) {
18
19
  const normalizedOptions = NormalizeNavigationTableHeaderButtonOptions(options);
19
20
  const { refresh, confirm, tooltip, errorMessage, successMessage, tableName, project, feature, shared, directory, overwrite, route, } = normalizedOptions;
20
21
  printOptions(normalizedOptions);
21
22
  return (host) => {
22
- AssertTableComponentExists(host, normalizedOptions);
23
- return chain([
23
+ (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
24
+ return (0, schematics_1.chain)([
24
25
  () => console.group('\x1b[32m[@rxap/schematics-angular:navigation-table-header-button]\x1b[0m'),
25
26
  () => console.log('Coerce table header button method ...'),
26
- CoerceTableHeaderButtonMethodRule({
27
+ (0, schematics_ts_morph_1.CoerceTableHeaderButtonMethodRule)({
27
28
  project,
28
29
  feature,
29
30
  shared,
@@ -36,13 +37,13 @@ export default function (options) {
36
37
  errorMessage,
37
38
  successMessage,
38
39
  tsMorphTransform: (project, sourceFile, classDeclaration) => {
39
- const [constructorDeclaration] = CoerceClassConstructor(classDeclaration);
40
- CoerceParameterDeclaration(constructorDeclaration, 'route', {
40
+ const [constructorDeclaration] = (0, schematics_ts_morph_1.CoerceClassConstructor)(classDeclaration);
41
+ (0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'route', {
41
42
  isReadonly: true,
42
- scope: Scope.Private,
43
+ scope: ts_morph_1.Scope.Private,
43
44
  type: 'ActivatedRoute',
44
45
  });
45
- CoerceImports(sourceFile, [
46
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
46
47
  {
47
48
  moduleSpecifier: '@angular/router',
48
49
  namedImports: ['ActivatedRoute'],
@@ -57,4 +58,5 @@ export default function (options) {
57
58
  ]);
58
59
  };
59
60
  }
61
+ exports.default = default_1;
60
62
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/header-button/navigation-table-header-button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAEN,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAEL,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAE3F,OAAO,EAAE,iCAAiC,EAAE,MAAM,iCAAiC,CAAC;AAKpF,MAAM,UAAU,2CAA2C,CACzD,OAAqD;IAErD,MAAM,kCAAkC,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACtF,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,GAAG,kCAAkC;QACrC,KAAK,EAAE,OAAO,CAAC,KAAK;KACrB,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,OAAqD;IACzE,mBAAmB,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,CAAC,OAAO,WAAW,OAA2C;IAClE,MAAM,iBAAiB,GAAG,2CAA2C,CAAC,OAAO,CAAC,CAAC;IAC/E,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,EACT,KAAK,GACN,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,KAAK,CAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC;YAC/F,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC;YAC1D,iCAAiC,CAAC;gBAChC,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;gBACd,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE;oBAC1D,MAAM,CAAE,sBAAsB,CAAE,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;oBAC5E,0BAA0B,CAAC,sBAAsB,EAAE,OAAO,EAAE;wBAC1D,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE,KAAK,CAAC,OAAO;wBACpB,IAAI,EAAE,gBAAgB;qBACvB,CAAC,CAAC;oBACH,aAAa,CAAC,UAAU,EAAE;wBACxB;4BACE,eAAe,EAAE,iBAAiB;4BAClC,YAAY,EAAE,CAAE,gBAAgB,CAAE;yBACnC;qBACF,CAAC,CAAC;oBACH,OAAO;wBACL,UAAU,EAAE,CAAE,gCAAiC,KAAM,2BAA2B,CAAE;qBACnF,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/header-button/navigation-table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAKmC;AAEnC,uCAAiC;AACjC,qEAGyC;AACzC,iGAA2F;AAE3F,2DAAoF;AAKpF,SAAgB,2CAA2C,CACzD,OAAqD;IAErD,MAAM,kCAAkC,GAAG,IAAA,yCAAiC,EAAC,OAAO,CAAC,CAAC;IACtF,OAAO,MAAM,CAAC,IAAI,iCACb,kCAAkC,KACrC,KAAK,EAAE,OAAO,CAAC,KAAK,IACpB,CAAC;AACL,CAAC;AARD,kGAQC;AAED,SAAS,YAAY,CAAC,OAAqD;IACzE,IAAA,qCAAmB,EAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;AACjE,CAAC;AAED,mBAAyB,OAA2C;IAClE,MAAM,iBAAiB,GAAG,2CAA2C,CAAC,OAAO,CAAC,CAAC;IAC/E,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,EACT,KAAK,GACN,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,0EAA0E,CAAC;YAC/F,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC;YAC1D,IAAA,uDAAiC,EAAC;gBAChC,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;gBACd,gBAAgB,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE;oBAC1D,MAAM,CAAE,sBAAsB,CAAE,GAAG,IAAA,4CAAsB,EAAC,gBAAgB,CAAC,CAAC;oBAC5E,IAAA,gDAA0B,EAAC,sBAAsB,EAAE,OAAO,EAAE;wBAC1D,UAAU,EAAE,IAAI;wBAChB,KAAK,EAAE,gBAAK,CAAC,OAAO;wBACpB,IAAI,EAAE,gBAAgB;qBACvB,CAAC,CAAC;oBACH,IAAA,mCAAa,EAAC,UAAU,EAAE;wBACxB;4BACE,eAAe,EAAE,iBAAiB;4BAClC,YAAY,EAAE,CAAE,gBAAgB,CAAE;yBACnC;qBACF,CAAC,CAAC;oBACH,OAAO;wBACL,UAAU,EAAE,CAAE,gCAAiC,KAAM,2BAA2B,CAAE;qBACnF,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA3DD,4BA2DC"}
@@ -1,33 +1,33 @@
1
- import { chain, } from '@angular-devkit/schematics';
2
- import { CoerceTableActionRule } from '@rxap/schematics-ts-morph';
3
- import { CoerceSuffix, dasherize, } from '@rxap/schematics-utilities';
4
- import { join } from 'path';
5
- import { NormalizeAngularOptions, PrintAngularOptions, } from '../../../lib/angular-options';
6
- import { AssertTableComponentExists } from '../../../lib/assert-table-component-exists';
7
- import { NormalizeTableRowAction } from '../../../lib/table-row-action';
8
- export function NormalizeTableActionOptions(options) {
9
- const normalizedAngularOptions = NormalizeAngularOptions(options);
10
- const normalizedTableRowAction = NormalizeTableRowAction(options);
11
- const tableName = CoerceSuffix(dasherize(options.tableName), '-table');
12
- return Object.seal({
13
- ...normalizedTableRowAction,
14
- ...normalizedAngularOptions,
15
- tableName,
16
- });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeTableActionOptions = 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 path_1 = require("path");
8
+ const angular_options_1 = require("../../../lib/angular-options");
9
+ const assert_table_component_exists_1 = require("../../../lib/assert-table-component-exists");
10
+ const table_row_action_1 = require("../../../lib/table-row-action");
11
+ function NormalizeTableActionOptions(options) {
12
+ const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
13
+ const normalizedTableRowAction = (0, table_row_action_1.NormalizeTableRowAction)(options);
14
+ const tableName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(options.tableName), '-table');
15
+ return Object.seal(Object.assign(Object.assign(Object.assign({}, normalizedTableRowAction), normalizedAngularOptions), { tableName }));
17
16
  }
17
+ exports.NormalizeTableActionOptions = NormalizeTableActionOptions;
18
18
  function printOptions(options) {
19
- PrintAngularOptions('table-action', options);
19
+ (0, angular_options_1.PrintAngularOptions)('table-action', options);
20
20
  }
21
- export default function (options) {
21
+ function default_1(options) {
22
22
  const normalizedOptions = NormalizeTableActionOptions(options);
23
23
  const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, directory, type, } = normalizedOptions;
24
24
  printOptions(normalizedOptions);
25
25
  return (host) => {
26
- AssertTableComponentExists(host, normalizedOptions);
27
- return chain([
26
+ (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
27
+ return (0, schematics_1.chain)([
28
28
  () => console.group('\x1b[32m[@rxap/schematics-angular:table-action]\x1b[0m'),
29
- CoerceTableActionRule({
30
- directory: join(directory ?? '', 'methods', 'action'),
29
+ (0, schematics_ts_morph_1.CoerceTableActionRule)({
30
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
31
31
  type,
32
32
  tableName,
33
33
  refresh,
@@ -44,4 +44,5 @@ export default function (options) {
44
44
  ]);
45
45
  };
46
46
  }
47
+ exports.default = default_1;
47
48
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-action/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,GAEN,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EACL,YAAY,EACZ,SAAS,GACV,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EACL,uBAAuB,EAEvB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,4CAA4C,CAAC;AACxF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAKxE,MAAM,UAAU,2BAA2B,CACzC,OAAqC;IAErC,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,GAAG,wBAAwB;QAC3B,GAAG,wBAAwB;QAC3B,SAAS;KACV,CAAC,CAAC;AACL,CAAC;AAED,SAAS,YAAY,CAAC,OAAqC;IACzD,mBAAmB,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED,MAAM,CAAC,OAAO,WAAW,OAA2B;IAClD,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAC/D,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,IAAI,GACL,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,0BAA0B,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,KAAK,CAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,wDAAwD,CAAC;YAC7E,qBAAqB,CAAC;gBACpB,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACrD,IAAI;gBACJ,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;gBACd,QAAQ;gBACR,aAAa;gBACb,OAAO;gBACP,OAAO;aACR,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAAkE;AAClE,qEAGoC;AAEpC,+BAA4B;AAC5B,kEAIsC;AACtC,8FAAwF;AACxF,oEAAwE;AAKxE,SAAgB,2BAA2B,CACzC,OAAqC;IAErC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,wBAAwB,GAAG,IAAA,0CAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,IAAI,+CACb,wBAAwB,GACxB,wBAAwB,KAC3B,SAAS,IACT,CAAC;AACL,CAAC;AAXD,kEAWC;AAED,SAAS,YAAY,CAAC,OAAqC;IACzD,IAAA,qCAAmB,EAAC,cAAc,EAAE,OAAO,CAAC,CAAC;AAC/C,CAAC;AAED,mBAAyB,OAA2B;IAClD,MAAM,iBAAiB,GAAG,2BAA2B,CAAC,OAAO,CAAC,CAAC;IAC/D,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,SAAS,EACT,IAAI,GACL,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,wDAAwD,CAAC;YAC7E,IAAA,2CAAqB,EAAC;gBACpB,SAAS,EAAE,IAAA,WAAI,EAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,SAAS,EAAE,QAAQ,CAAC;gBACrD,IAAI;gBACJ,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;gBACd,QAAQ;gBACR,aAAa;gBACb,OAAO;gBACP,OAAO;aACR,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA1CD,4BA0CC"}
@@ -1,44 +1,49 @@
1
- import { chain, noop, } from '@angular-devkit/schematics';
2
- import { AddComponentImport, AddComponentProvider, buildOperationId, CoerceComponentRule, CoerceGetPageOperation, CoerceImports, CoerceMethodClass, OperationIdToClassImportPath, OperationIdToClassName, TsMorphAngularProjectTransformRule, } from '@rxap/schematics-ts-morph';
3
- import { CoerceSuffix, ExecuteSchematic, } from '@rxap/schematics-utilities';
4
- import { camelize, classify, } from '@rxap/utilities';
5
- import { Writers, } from 'ts-morph';
6
- import { AssertAngularOptionsNameProperty, PrintAngularOptions, } from '../../../lib/angular-options';
7
- import { BackendTypes } from '../../../lib/backend-types';
8
- import { actionListRule, cellComponentRule, headerButtonRule, NormalizeMinimumTableComponentOptions, tableInterfaceRule, } from '../../../lib/minimum-table-component-options';
9
- import { NormalizeTableOptions, } from '../../../lib/table-options';
10
- import { CoerceTypeAlias } from '../action/form-table-action/index';
11
- export function NormalizeTableComponentOptions(options) {
12
- const normalizedMinimumTableComponentOptions = NormalizeMinimumTableComponentOptions(options);
13
- AssertAngularOptionsNameProperty(normalizedMinimumTableComponentOptions);
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TableColumnToFormControl = exports.TableColumnToGetPageOperationColumn = exports.NormalizeTableComponentOptions = 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 ts_morph_1 = require("ts-morph");
9
+ const angular_options_1 = require("../../../lib/angular-options");
10
+ const backend_types_1 = require("../../../lib/backend-types");
11
+ const minimum_table_component_options_1 = require("../../../lib/minimum-table-component-options");
12
+ const table_options_1 = require("../../../lib/table-options");
13
+ const index_1 = require("../action/form-table-action/index");
14
+ function NormalizeTableComponentOptions(options) {
15
+ const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options);
16
+ (0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
14
17
  const { name, backend, } = normalizedMinimumTableComponentOptions;
15
- const normalizedTableOptions = NormalizeTableOptions(options, name);
18
+ const normalizedTableOptions = (0, table_options_1.NormalizeTableOptions)(options, name);
16
19
  const { openApi } = normalizedTableOptions;
17
- if (backend === BackendTypes.OPEN_API) {
20
+ if (backend === backend_types_1.BackendTypes.OPEN_API) {
18
21
  if (!openApi) {
19
22
  throw new Error('openApi options must be provided. If backend is open-api');
20
23
  }
21
24
  }
22
- return Object.seal({
23
- ...normalizedMinimumTableComponentOptions,
24
- ...normalizedTableOptions,
25
- });
25
+ return Object.seal(Object.assign(Object.assign({}, normalizedMinimumTableComponentOptions), normalizedTableOptions));
26
26
  }
27
- export function TableColumnToGetPageOperationColumn(column) {
27
+ exports.NormalizeTableComponentOptions = NormalizeTableComponentOptions;
28
+ function TableColumnToGetPageOperationColumn(column) {
29
+ var _a, _b;
28
30
  return {
29
31
  name: column.name,
30
- type: column.type ?? undefined,
31
- source: column.propertyPath ?? undefined,
32
+ type: (_a = column.type) !== null && _a !== void 0 ? _a : undefined,
33
+ source: (_b = column.propertyPath) !== null && _b !== void 0 ? _b : undefined,
32
34
  };
33
35
  }
34
- export function TableColumnToFormControl(column) {
36
+ exports.TableColumnToGetPageOperationColumn = TableColumnToGetPageOperationColumn;
37
+ function TableColumnToFormControl(column) {
38
+ var _a;
35
39
  return {
36
40
  name: column.name,
37
- type: column.type ?? undefined,
41
+ type: (_a = column.type) !== null && _a !== void 0 ? _a : undefined,
38
42
  };
39
43
  }
44
+ exports.TableColumnToFormControl = TableColumnToFormControl;
40
45
  function printOptions(options) {
41
- PrintAngularOptions('table-component', options);
46
+ (0, angular_options_1.PrintAngularOptions)('table-component', options);
42
47
  if (options.columnList.length) {
43
48
  console.log(`=== columns: \x1b[34m${options.columnList.map((item) => item.name).join(', ')}\x1b[0m`);
44
49
  }
@@ -54,15 +59,10 @@ function printOptions(options) {
54
59
  }
55
60
  function componentRule(normalizedOptions) {
56
61
  const { project, feature, shared, directory, overwrite, modifiers, columnList, tableMethod, componentName, } = normalizedOptions;
57
- const templateOptions = {
58
- ...normalizedOptions,
59
- hasNavigationBackHeader: modifiers.includes('navigation-back-header'),
60
- hasWithoutTitle: modifiers.includes('without-title'),
61
- hasColumnWithFilter: columnList.some((c) => c.hasFilter),
62
- };
63
- return chain([
62
+ const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes('navigation-back-header'), hasWithoutTitle: modifiers.includes('without-title'), hasColumnWithFilter: columnList.some((c) => c.hasFilter) });
63
+ return (0, schematics_1.chain)([
64
64
  () => console.log(`Coerce the table component '${componentName}'`),
65
- CoerceComponentRule({
65
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
66
66
  project,
67
67
  feature,
68
68
  shared,
@@ -74,7 +74,7 @@ function componentRule(normalizedOptions) {
74
74
  },
75
75
  tsMorphTransform: (project, [componentSourceFile]) => {
76
76
  if (tableMethod) {
77
- AddComponentProvider(componentSourceFile, {
77
+ (0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
78
78
  provide: 'RXAP_TABLE_METHOD',
79
79
  useClass: tableMethod.className,
80
80
  }, [
@@ -94,34 +94,34 @@ function componentRule(normalizedOptions) {
94
94
  }
95
95
  function UsePickFromTableInterfaceAsFormTypeRule(options) {
96
96
  const { name, columnList, formName, } = options;
97
- const className = CoerceSuffix(classify(formName), 'Form');
97
+ const className = (0, schematics_utilities_1.CoerceSuffix)((0, utilities_1.classify)(formName), 'Form');
98
98
  const interfaceName = `I${className}`;
99
- const tableInterfaceName = `I${classify(name)}Table`;
100
- return TsMorphAngularProjectTransformRule(options, (project, [sourceFile]) => {
99
+ const tableInterfaceName = `I${(0, utilities_1.classify)(name)}Table`;
100
+ return (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)(options, (project, [sourceFile]) => {
101
101
  const interfaceDeclaration = sourceFile.getInterface(interfaceName);
102
102
  if (interfaceDeclaration) {
103
103
  interfaceDeclaration.remove();
104
104
  }
105
105
  const type = `Pick<${tableInterfaceName}, ${columnList.filter(c => c.hasFilter)
106
- .map(c => `'${camelize(c.name)}'`)
106
+ .map(c => `'${(0, utilities_1.camelize)(c.name)}'`)
107
107
  .join(' | ')}>`;
108
- CoerceTypeAlias(sourceFile, interfaceName, {
108
+ (0, index_1.CoerceTypeAlias)(sourceFile, interfaceName, {
109
109
  type,
110
110
  isExported: true,
111
111
  }).set({ type });
112
- CoerceImports(sourceFile, {
112
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
113
113
  namedImports: [tableInterfaceName],
114
114
  moduleSpecifier: `./${name}-table`,
115
115
  });
116
- }, ['/' + CoerceSuffix(formName, '.form.ts')]);
116
+ }, ['/' + (0, schematics_utilities_1.CoerceSuffix)(formName, '.form.ts')]);
117
117
  }
118
118
  function filterColumnRule(normalizedOptions) {
119
119
  const { columnList, project, feature, shared, directory, backend, overwrite, componentName, name, } = normalizedOptions;
120
120
  if (columnList.some((c) => c.hasFilter)) {
121
- return chain([
121
+ return (0, schematics_1.chain)([
122
122
  () => console.log(`Coerce the filter form definition`),
123
- ExecuteSchematic('form-definition', {
124
- name: CoerceSuffix(componentName, '-filter'),
123
+ (0, schematics_utilities_1.ExecuteSchematic)('form-definition', {
124
+ name: (0, schematics_utilities_1.CoerceSuffix)(componentName, '-filter'),
125
125
  project,
126
126
  feature,
127
127
  shared,
@@ -132,7 +132,7 @@ function filterColumnRule(normalizedOptions) {
132
132
  .filter((column) => column.hasFilter)
133
133
  .map(TableColumnToFormControl),
134
134
  }),
135
- CoerceComponentRule({
135
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
136
136
  project,
137
137
  feature,
138
138
  shared,
@@ -140,19 +140,19 @@ function filterColumnRule(normalizedOptions) {
140
140
  directory,
141
141
  overwrite,
142
142
  tsMorphTransform: (project, [sourceFile]) => {
143
- AddComponentProvider(sourceFile, 'FormProviders', [
143
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, 'FormProviders', [
144
144
  {
145
145
  moduleSpecifier: './form.providers',
146
146
  namedImports: ['FormProviders'],
147
147
  },
148
148
  ]);
149
- AddComponentProvider(sourceFile, 'TableFilterService', [
149
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, 'TableFilterService', [
150
150
  {
151
151
  moduleSpecifier: '@rxap/material-table-system',
152
152
  namedImports: ['TableFilterService'],
153
153
  },
154
154
  ]);
155
- AddComponentProvider(sourceFile, {
155
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
156
156
  provide: 'RXAP_TABLE_FILTER_FORM_DEFINITION',
157
157
  useFactory: 'FormFactory',
158
158
  deps: ['INJECTOR'],
@@ -179,17 +179,17 @@ function filterColumnRule(normalizedOptions) {
179
179
  project,
180
180
  shared,
181
181
  directory,
182
- formName: CoerceSuffix(componentName, '-filter'),
182
+ formName: (0, schematics_utilities_1.CoerceSuffix)(componentName, '-filter'),
183
183
  }),
184
184
  ]);
185
185
  }
186
- return noop();
186
+ return (0, schematics_1.noop)();
187
187
  }
188
188
  function openApiBackendRule(normalizedOptions) {
189
189
  const { project, feature, shared, columnList, context, nestModule, componentName, directory, overwrite, scope, openApi, } = normalizedOptions;
190
- return chain([
190
+ return (0, schematics_1.chain)([
191
191
  () => console.log('Add the open api methods to the table component providers'),
192
- CoerceComponentRule({
192
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
193
193
  project,
194
194
  feature,
195
195
  shared,
@@ -198,7 +198,7 @@ function openApiBackendRule(normalizedOptions) {
198
198
  overwrite,
199
199
  tsMorphTransform: (project, [sourceFile]) => {
200
200
  if (openApi.adapter) {
201
- AddComponentProvider(sourceFile, {
201
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
202
202
  provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
203
203
  useValue: openApi.adapter.className,
204
204
  }, [
@@ -212,17 +212,17 @@ function openApiBackendRule(normalizedOptions) {
212
212
  },
213
213
  ]);
214
214
  }
215
- AddComponentProvider(sourceFile, {
215
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
216
216
  provide: 'RXAP_TABLE_METHOD',
217
- useClass: OperationIdToClassName(openApi.operationId),
217
+ useClass: (0, schematics_ts_morph_1.OperationIdToClassName)(openApi.operationId),
218
218
  }, [
219
219
  {
220
220
  moduleSpecifier: '@rxap/material-table-system',
221
221
  namedImports: ['RXAP_TABLE_METHOD'],
222
222
  },
223
223
  {
224
- moduleSpecifier: OperationIdToClassImportPath(openApi.operationId, scope),
225
- namedImports: [OperationIdToClassName(openApi.operationId)],
224
+ moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToClassImportPath)(openApi.operationId, scope),
225
+ namedImports: [(0, schematics_ts_morph_1.OperationIdToClassName)(openApi.operationId)],
226
226
  },
227
227
  ]);
228
228
  },
@@ -231,10 +231,10 @@ function openApiBackendRule(normalizedOptions) {
231
231
  }
232
232
  function nestjsBackendRule(normalizedOptions) {
233
233
  const { project, feature, shared, columnList, context, nestModule, componentName, directory, overwrite, scope, controllerName, } = normalizedOptions;
234
- const operationId = buildOperationId(normalizedOptions, 'get-page', controllerName);
235
- return chain([
234
+ const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'get-page', controllerName);
235
+ return (0, schematics_1.chain)([
236
236
  () => console.log(`Coerce the getPage operation for the table`),
237
- CoerceGetPageOperation({
237
+ (0, schematics_ts_morph_1.CoerceGetPageOperation)({
238
238
  controllerName,
239
239
  nestModule: shared ? undefined : nestModule,
240
240
  project,
@@ -244,7 +244,7 @@ function nestjsBackendRule(normalizedOptions) {
244
244
  context,
245
245
  }),
246
246
  () => console.log('Add the open api methods to the table component providers'),
247
- CoerceComponentRule({
247
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
248
248
  project,
249
249
  feature,
250
250
  shared,
@@ -252,7 +252,7 @@ function nestjsBackendRule(normalizedOptions) {
252
252
  directory,
253
253
  overwrite,
254
254
  tsMorphTransform: (project, [sourceFile]) => {
255
- AddComponentProvider(sourceFile, {
255
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
256
256
  provide: 'TABLE_REMOTE_METHOD_ADAPTER_FACTORY',
257
257
  useValue: 'GetPageAdapterFactory',
258
258
  }, [
@@ -265,17 +265,17 @@ function nestjsBackendRule(normalizedOptions) {
265
265
  namedImports: ['GetPageAdapterFactory'],
266
266
  },
267
267
  ]);
268
- AddComponentProvider(sourceFile, {
268
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
269
269
  provide: 'RXAP_TABLE_METHOD',
270
- useClass: OperationIdToClassName(operationId),
270
+ useClass: (0, schematics_ts_morph_1.OperationIdToClassName)(operationId),
271
271
  }, [
272
272
  {
273
273
  moduleSpecifier: '@rxap/material-table-system',
274
274
  namedImports: ['RXAP_TABLE_METHOD'],
275
275
  },
276
276
  {
277
- moduleSpecifier: OperationIdToClassImportPath(operationId, scope),
278
- namedImports: [OperationIdToClassName(operationId)],
277
+ moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToClassImportPath)(operationId, scope),
278
+ namedImports: [(0, schematics_ts_morph_1.OperationIdToClassName)(operationId)],
279
279
  },
280
280
  ]);
281
281
  },
@@ -284,9 +284,9 @@ function nestjsBackendRule(normalizedOptions) {
284
284
  }
285
285
  function localBackendRule(normalizedOptions) {
286
286
  const { project, feature, shared, componentName, directory, overwrite, name, } = normalizedOptions;
287
- return chain([
287
+ return (0, schematics_1.chain)([
288
288
  () => console.log(`Coerce local backend method to table component`),
289
- CoerceComponentRule({
289
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
290
290
  project,
291
291
  feature,
292
292
  shared,
@@ -294,12 +294,12 @@ function localBackendRule(normalizedOptions) {
294
294
  directory,
295
295
  overwrite,
296
296
  tsMorphTransform: (project, [componentSourceFile]) => {
297
- AddComponentProvider(componentSourceFile, {
297
+ (0, schematics_ts_morph_1.AddComponentProvider)(componentSourceFile, {
298
298
  provide: 'RXAP_TABLE_METHOD',
299
- useClass: `${classify(name)}TableMethod`,
299
+ useClass: `${(0, utilities_1.classify)(name)}TableMethod`,
300
300
  }, [
301
301
  {
302
- namedImports: [`${classify(name)}TableMethod`],
302
+ namedImports: [`${(0, utilities_1.classify)(name)}TableMethod`],
303
303
  moduleSpecifier: `./${name}-table.method`,
304
304
  },
305
305
  {
@@ -310,7 +310,7 @@ function localBackendRule(normalizedOptions) {
310
310
  },
311
311
  }),
312
312
  () => console.log(`Coerce local backend method`),
313
- CoerceMethodClass({
313
+ (0, schematics_ts_morph_1.CoerceMethodClass)({
314
314
  name: `${name}-table`,
315
315
  project,
316
316
  feature,
@@ -318,14 +318,14 @@ function localBackendRule(normalizedOptions) {
318
318
  directory,
319
319
  overwrite,
320
320
  tsMorphTransform: (project, sourceFile, classDeclaration) => {
321
- CoerceImports(sourceFile, [
321
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
322
322
  {
323
323
  moduleSpecifier: '@rxap/data-source/table',
324
324
  namedImports: ['TableEvent'],
325
325
  },
326
326
  {
327
327
  moduleSpecifier: `./${name}-table`,
328
- namedImports: [`I${classify(name)}Table`],
328
+ namedImports: [`I${(0, utilities_1.classify)(name)}Table`],
329
329
  },
330
330
  ]);
331
331
  return {
@@ -336,7 +336,7 @@ function localBackendRule(normalizedOptions) {
336
336
  },
337
337
  ],
338
338
  statements: ['return [];'],
339
- returnType: `I${classify(name)}Table[]`,
339
+ returnType: `I${(0, utilities_1.classify)(name)}Table[]`,
340
340
  };
341
341
  },
342
342
  }),
@@ -345,20 +345,20 @@ function localBackendRule(normalizedOptions) {
345
345
  function backendRule(normalizedOptions) {
346
346
  const { backend, } = normalizedOptions;
347
347
  switch (backend) {
348
- case BackendTypes.NESTJS:
348
+ case backend_types_1.BackendTypes.NESTJS:
349
349
  return nestjsBackendRule(normalizedOptions);
350
- case BackendTypes.LOCAL:
350
+ case backend_types_1.BackendTypes.LOCAL:
351
351
  return localBackendRule(normalizedOptions);
352
- case BackendTypes.OPEN_API:
352
+ case backend_types_1.BackendTypes.OPEN_API:
353
353
  return openApiBackendRule(normalizedOptions);
354
354
  }
355
- return noop();
355
+ return (0, schematics_1.noop)();
356
356
  }
357
357
  function selectColumnRule(normalizedOptions) {
358
358
  const { selectColumn, project, feature, shared, componentName, directory, overwrite, } = normalizedOptions;
359
359
  if (selectColumn) {
360
- return chain([
361
- CoerceComponentRule({
360
+ return (0, schematics_1.chain)([
361
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
362
362
  project,
363
363
  feature,
364
364
  shared,
@@ -366,15 +366,15 @@ function selectColumnRule(normalizedOptions) {
366
366
  directory,
367
367
  overwrite,
368
368
  tsMorphTransform: (project, [sourceFile]) => {
369
- AddComponentProvider(sourceFile, 'SelectRowService', [
369
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, 'SelectRowService', [
370
370
  {
371
371
  moduleSpecifier: '@rxap/material-table-system',
372
372
  namedImports: ['SelectRowService'],
373
373
  },
374
374
  ]);
375
- AddComponentProvider(sourceFile, {
375
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, {
376
376
  provide: 'RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS',
377
- useValue: Writers.object({
377
+ useValue: ts_morph_1.Writers.object({
378
378
  multiple: 'true',
379
379
  }),
380
380
  }, [
@@ -383,29 +383,30 @@ function selectColumnRule(normalizedOptions) {
383
383
  namedImports: ['RXAP_MATERIAL_TABLE_SYSTEM_SELECT_ROW_OPTIONS'],
384
384
  },
385
385
  ]);
386
- AddComponentImport(sourceFile, 'SelectRowModule', '@rxap/material-table-system');
386
+ (0, schematics_ts_morph_1.AddComponentImport)(sourceFile, 'SelectRowModule', '@rxap/material-table-system');
387
387
  },
388
388
  }),
389
389
  ]);
390
390
  }
391
- return noop();
391
+ return (0, schematics_1.noop)();
392
392
  }
393
- export default function (options) {
393
+ function default_1(options) {
394
394
  const normalizedOptions = NormalizeTableComponentOptions(options);
395
395
  printOptions(normalizedOptions);
396
396
  return function () {
397
- return chain([
397
+ return (0, schematics_1.chain)([
398
398
  () => console.group('\x1b[32m[@rxap/schematics-angular:table-component]\x1b[0m'),
399
- tableInterfaceRule(normalizedOptions),
399
+ (0, minimum_table_component_options_1.tableInterfaceRule)(normalizedOptions),
400
400
  componentRule(normalizedOptions),
401
- headerButtonRule(normalizedOptions),
401
+ (0, minimum_table_component_options_1.headerButtonRule)(normalizedOptions),
402
402
  filterColumnRule(normalizedOptions),
403
403
  backendRule(normalizedOptions),
404
- cellComponentRule(normalizedOptions),
405
- actionListRule(normalizedOptions),
404
+ (0, minimum_table_component_options_1.cellComponentRule)(normalizedOptions),
405
+ (0, minimum_table_component_options_1.actionListRule)(normalizedOptions),
406
406
  selectColumnRule(normalizedOptions),
407
407
  () => console.groupEnd(),
408
408
  ]);
409
409
  };
410
410
  }
411
+ exports.default = default_1;
411
412
  //# sourceMappingURL=index.js.map