@rxap/schematic-angular 16.1.0-dev.4 → 16.1.0-dev.6

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 (73) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +1 -1
  3. package/collection.json +16 -1
  4. package/package.json +6 -6
  5. package/src/lib/angular-options.js +18 -1
  6. package/src/lib/angular-options.js.map +1 -1
  7. package/src/lib/minimum-table-component-options.d.ts +1 -0
  8. package/src/lib/minimum-table-component-options.js +52 -143
  9. package/src/lib/minimum-table-component-options.js.map +1 -1
  10. package/src/lib/table-action.d.ts +1 -1
  11. package/src/lib/table-action.js +8 -8
  12. package/src/lib/table-action.js.map +1 -1
  13. package/src/lib/table-header-button.d.ts +10 -1
  14. package/src/lib/table-header-button.js +20 -1
  15. package/src/lib/table-header-button.js.map +1 -1
  16. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  17. package/src/schematics/form/control/input-form-control/index.js +7 -3
  18. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  19. package/src/schematics/form/control/select-form-control/index.js +2 -0
  20. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  21. package/src/schematics/form/control/table-select-form-control/index.js +2 -0
  22. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  23. package/src/schematics/form/form-component/index.d.ts +0 -1
  24. package/src/schematics/form/form-component/index.js +45 -14
  25. package/src/schematics/form/form-component/index.js.map +1 -1
  26. package/src/schematics/form/form-component/schema.json +3 -6
  27. package/src/schematics/form/form-control/index.d.ts +2 -2
  28. package/src/schematics/form/form-control/index.js +7 -8
  29. package/src/schematics/form/form-control/index.js.map +1 -1
  30. package/src/schematics/form/form-definition/index.d.ts +2 -2
  31. package/src/schematics/form/form-definition/index.js +8 -1
  32. package/src/schematics/form/form-definition/index.js.map +1 -1
  33. package/src/schematics/table/action/dialog-table-action/index.d.ts +2 -1
  34. package/src/schematics/table/action/dialog-table-action/index.js +6 -2
  35. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  36. package/src/schematics/table/action/form-table-action/index.d.ts +6 -1
  37. package/src/schematics/table/action/form-table-action/index.js +120 -68
  38. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  39. package/src/schematics/table/action/form-table-action/schema.json +35 -0
  40. package/src/schematics/table/action/navigation-table-action/index.d.ts +1 -1
  41. package/src/schematics/table/action/navigation-table-action/index.js +10 -10
  42. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  43. package/src/schematics/table/action/operation-table-action/index.d.ts +1 -3
  44. package/src/schematics/table/action/operation-table-action/index.js +11 -12
  45. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  46. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +11 -0
  47. package/src/schematics/table/header-button/form-table-header-button/index.js +83 -0
  48. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -0
  49. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +7 -0
  50. package/src/schematics/table/header-button/form-table-header-button/schema.json +123 -0
  51. package/src/schematics/table/header-button/navigation-table-header-button/index.d.ts +8 -0
  52. package/src/schematics/table/header-button/navigation-table-header-button/index.js +62 -0
  53. package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -0
  54. package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +6 -0
  55. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +85 -0
  56. package/src/schematics/table/table-action/index.d.ts +1 -1
  57. package/src/schematics/table/table-action/index.js +6 -4
  58. package/src/schematics/table/table-action/index.js.map +1 -1
  59. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +5 -8
  60. package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +2 -2
  61. package/src/schematics/table/table-component/index.d.ts +1 -0
  62. package/src/schematics/table/table-component/index.js +37 -6
  63. package/src/schematics/table/table-component/index.js.map +1 -1
  64. package/src/schematics/table/table-component/schema.json +5 -2
  65. package/src/schematics/table/table-header-button/index.d.ts +10 -0
  66. package/src/schematics/table/table-header-button/index.js +50 -0
  67. package/src/schematics/table/table-header-button/index.js.map +1 -0
  68. package/src/schematics/table/table-header-button/schema.d.ts +7 -0
  69. package/src/schematics/table/table-header-button/schema.json +80 -0
  70. package/src/schematics/table/tree-table-component/index.d.ts +1 -0
  71. package/src/schematics/table/tree-table-component/index.js +1 -5
  72. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  73. /package/src/schematics/form/form-component/files/window/{open-__name__-form-window.method.ts.template → open-__componentName__-window.method.ts.template} +0 -0
@@ -6,9 +6,20 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
6
  const schematics_utilities_1 = require("@rxap/schematics-utilities");
7
7
  const utilities_1 = require("@rxap/utilities");
8
8
  const path_1 = require("path");
9
+ const angular_options_1 = require("../../../../lib/angular-options");
10
+ const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
11
+ const backend_types_1 = require("../../../../lib/backend-types");
12
+ const form_component_control_1 = require("../../../../lib/form-component-control");
13
+ const index_1 = require("../../../form/form-component/index");
9
14
  const operation_table_action_1 = require("../operation-table-action");
10
15
  function NormalizeFormTableActionOptions(options) {
11
- return Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options));
16
+ var _a, _b, _c;
17
+ const normalizedOptions = (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options);
18
+ const { controllerName, type, nestModule, } = normalizedOptions;
19
+ return Object.assign(Object.assign({}, normalizedOptions), { controllerName: (0, schematics_ts_morph_1.BuildNestControllerName)({
20
+ nestModule,
21
+ controllerName: [type, 'action'].join('-'),
22
+ }), options: Object.assign(Object.assign({}, (_a = normalizedOptions.options) !== null && _a !== void 0 ? _a : {}), { controlList: (0, form_component_control_1.NormalizeFormComponentControlList)((_c = (_b = normalizedOptions.options) === null || _b === void 0 ? void 0 : _b['controlList']) !== null && _c !== void 0 ? _c : []) }) });
12
23
  }
13
24
  exports.NormalizeFormTableActionOptions = NormalizeFormTableActionOptions;
14
25
  function CoerceTypeAlias(sourceFile, name, structure) {
@@ -23,8 +34,7 @@ function UseOperationResponseAsFormTypeRule(options) {
23
34
  const { name, operationId, scope, } = options;
24
35
  const className = (0, utilities_1.CoerceSuffix)((0, utilities_1.classify)(name), 'Form');
25
36
  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'));
37
+ return (0, schematics_ts_morph_1.TsMorphAngularProjectTransformRule)(options, (project, [sourceFile]) => {
28
38
  const interfaceDeclaration = sourceFile.getInterface(interfaceName);
29
39
  if (interfaceDeclaration) {
30
40
  interfaceDeclaration.remove();
@@ -37,29 +47,102 @@ function UseOperationResponseAsFormTypeRule(options) {
37
47
  namedImports: [(0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId)],
38
48
  moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToResponseClassImportPath)(operationId, scope),
39
49
  });
40
- });
50
+ }, ['/' + (0, utilities_1.CoerceSuffix)(name, '.form.ts')]);
51
+ }
52
+ function nestjsBackendRule(normalizedOptions) {
53
+ const { project, feature, shared, directory, nestModule, type, context, controllerName, scope, } = normalizedOptions;
54
+ if (!nestModule) {
55
+ throw new Error('The nest module is required');
56
+ }
57
+ const controllerPath = `${(0, utilities_1.dasherize)(nestModule)}/action/:rowId/${type}`;
58
+ return (0, schematics_1.chain)([
59
+ () => console.log('Coerce form get table action operation'),
60
+ (0, schematics_ts_morph_1.CoerceOperation)({
61
+ controllerName,
62
+ nestModule,
63
+ project,
64
+ feature,
65
+ shared,
66
+ context,
67
+ operationName: `get`,
68
+ controllerPath,
69
+ tsMorphTransform: (project, sourceFile) => {
70
+ const { className, filePath, } = (0, schematics_ts_morph_1.CoerceDtoClass)({
71
+ project,
72
+ name: controllerName,
73
+ propertyList: normalizedOptions.options.controlList.map(control => (0, index_1.FormComponentControlToDtoClassProperty)(control)),
74
+ });
75
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
76
+ namedImports: [className],
77
+ moduleSpecifier: filePath,
78
+ });
79
+ return {
80
+ returnType: className,
81
+ paramList: [
82
+ {
83
+ name: 'rowId',
84
+ fromParent: true,
85
+ },
86
+ ],
87
+ };
88
+ },
89
+ }),
90
+ () => console.log('Coerce form submit table action operation'),
91
+ (0, schematics_ts_morph_1.CoerceFormSubmitOperation)({
92
+ controllerName,
93
+ project,
94
+ feature,
95
+ shared,
96
+ nestModule,
97
+ context,
98
+ controllerPath,
99
+ paramList: [
100
+ {
101
+ name: 'rowId',
102
+ fromParent: true,
103
+ },
104
+ ],
105
+ bodyDtoName: controllerName,
106
+ }),
107
+ () => console.log('Update form type alias'),
108
+ UseOperationResponseAsFormTypeRule({
109
+ scope,
110
+ project,
111
+ feature,
112
+ directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', (0, utilities_1.CoerceSuffix)(type, '-form')),
113
+ name: type,
114
+ operationId: buildGetOperationId(normalizedOptions),
115
+ }),
116
+ ]);
117
+ }
118
+ function backendRule(normalizedOptions) {
119
+ const { backend } = normalizedOptions;
120
+ switch (backend) {
121
+ case backend_types_1.BackendTypes.NESTJS:
122
+ return nestjsBackendRule(normalizedOptions);
123
+ }
124
+ return (0, schematics_1.noop)();
125
+ }
126
+ function printOptions(options) {
127
+ (0, angular_options_1.PrintAngularOptions)('form-table-action', options);
128
+ }
129
+ function buildGetOperationId(normalizedOptions) {
130
+ const { controllerName, } = normalizedOptions;
131
+ return (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `get`, controllerName);
41
132
  }
42
133
  function default_1(options) {
43
134
  const normalizedOptions = NormalizeFormTableActionOptions(options);
44
- const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, nestModule, type, context, controllerName, overwrite, scope, options: formOptions, } = 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}' ...`);
135
+ const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, nestModule, type, context, controllerName, overwrite, scope, options: formOptions, backend, } = normalizedOptions;
136
+ printOptions(normalizedOptions);
46
137
  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
- }
138
+ (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
55
139
  return (0, schematics_1.chain)([
140
+ () => console.group('\x1b[32m[@rxap/schematics-angular:form-table-action]\x1b[0m'),
141
+ () => console.info(`Generating form table action rule...`),
56
142
  (0, schematics_ts_morph_1.CoerceFormTableActionRule)({
57
143
  scope,
58
144
  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
- })),
145
+ loadOperationId: backend === backend_types_1.BackendTypes.NESTJS ? buildGetOperationId(normalizedOptions) : undefined,
63
146
  type,
64
147
  tableName,
65
148
  refresh,
@@ -72,65 +155,34 @@ function default_1(options) {
72
155
  project,
73
156
  feature,
74
157
  }),
75
- (0, schematics_ts_morph_1.CoerceOperation)({
76
- controllerName,
77
- nestModule,
158
+ () => console.log('Coerce open form window method to table component ...'),
159
+ (0, schematics_ts_morph_1.CoerceComponentRule)({
78
160
  project,
79
161
  feature,
80
162
  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
- };
163
+ name: tableName,
164
+ directory,
165
+ overwrite,
166
+ tsMorphTransform: (project, [sourceFile]) => {
167
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, `Open${(0, utilities_1.classify)(type)}FormWindowMethod`, [
168
+ {
169
+ moduleSpecifier: `./${type}-form/open-${type}-form-window.method`,
170
+ namedImports: [`Open${(0, utilities_1.classify)(type)}FormWindowMethod`],
171
+ },
172
+ ]);
102
173
  },
103
174
  }),
175
+ () => console.info(`Generating form component...`),
104
176
  (0, schematics_utilities_1.ExecuteSchematic)('form-component', Object.assign(Object.assign({}, formOptions !== null && formOptions !== void 0 ? formOptions : {}), { project, name: type, feature,
105
177
  directory,
106
178
  shared, window: true, role: type, nestModule,
107
179
  controllerName,
108
- overwrite, context: (0, utilities_1.joinWithDash)([context, type, 'action']) })),
109
- (0, schematics_ts_morph_1.CoerceFormSubmitOperation)({
110
- controllerName,
111
- project,
112
- feature,
113
- shared,
114
- nestModule,
115
- paramList: [
116
- {
117
- name: 'rowId',
118
- fromParent: true,
119
- },
120
- ],
121
- bodyDtoName: (0, utilities_1.joinWithDash)([context, type, 'action', type, 'form']),
122
- }),
123
- UseOperationResponseAsFormTypeRule({
124
- scope,
125
- project,
126
- feature,
127
- directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', (0, utilities_1.CoerceSuffix)(type, '-form')),
128
- name: type,
129
- operationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `get`, (0, schematics_ts_morph_1.BuildNestControllerName)({
130
- controllerName,
131
- nestModule,
132
- })),
133
- }),
180
+ overwrite,
181
+ context,
182
+ backend })),
183
+ () => console.info(`Generating backend...`),
184
+ backendRule(normalizedOptions),
185
+ () => console.groupEnd(),
134
186
  ]);
135
187
  };
136
188
  }
@@ -1 +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,aAAa,GAAG,IAAK,SAAU,EAAE,CAAC;IAExC,OAAO,IAAA,wDAAkC,EAAC,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE;QAC7D,MAAM,UAAU,GAAG,IAAA,sCAAgB,EACjC,OAAO,EACP,GAAG,GAAG,IAAA,wBAAY,EAAC,IAAI,EAAE,UAAU,CAAC,CACrC,CAAC;QAEF,MAAM,oBAAoB,GAAG,UAAU,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QACpE,IAAI,oBAAoB,EAAE;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B,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,KACpB,OAAO,EACP,IAAI,EAAE,IAAI,EACV,OAAO;gBACP,SAAS;gBACT,MAAM,EACN,MAAM,EAAE,IAAI,EACZ,IAAI,EAAE,IAAI,EACV,UAAU;gBACV,cAAc;gBACd,SAAS,EACT,OAAO,EAAE,IAAA,wBAAY,EAAC,CAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAE,CAAC,IAClD;YACF,IAAA,+CAAyB,EAAC;gBACxB,cAAc;gBACd,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,UAAU;gBACV,SAAS,EAAE;oBACT;wBACE,IAAI,EAAE,OAAO;wBACb,UAAU,EAAE,IAAI;qBACjB;iBACF;gBACD,WAAW,EAAE,IAAA,wBAAY,EAAC,CAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,CAAE,CAAC;aACrE,CAAC;YACF,kCAAkC,CAAC;gBACjC,KAAK;gBACL,OAAO;gBACP,OAAO;gBACP,SAAS,EAAE,IAAA,WAAI,EAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,IAAA,wBAAY,EAAC,IAAI,EAAE,OAAO,CAAC,CAAC;gBAC7D,IAAI,EAAE,IAAI;gBACV,WAAW,EAAE,IAAA,sCAAgB,EAC3B,iBAAiB,EACjB,KAAK,EACL,IAAA,6CAAuB,EAAC;oBACtB,cAAc;oBACd,UAAU;iBACX,CAAC,CACH;aACF,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAlJD,4BAkJC"}
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;AAO5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA6D;AAC7D,mF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C3C,WAAW,CAAC,iBAAiB,CAAC;YAC9B,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA/FD,4BA+FC"}
@@ -88,6 +88,41 @@
88
88
  },
89
89
  "options": {
90
90
  "type": "object",
91
+ "properties": {
92
+ "controlList": {
93
+ "alias": "control",
94
+ "type": "array",
95
+ "items": {
96
+ "type": "object",
97
+ "properties": {
98
+ "type": {
99
+ "type": "string"
100
+ },
101
+ "name": {
102
+ "type": "string"
103
+ },
104
+ "state": {
105
+ "type": "string",
106
+ "description": "The initial state of the control"
107
+ },
108
+ "isRequired": {
109
+ "type": "boolean",
110
+ "description": "Whether the control value is required",
111
+ "default": false
112
+ },
113
+ "validatorList": {
114
+ "type": "array",
115
+ "items": {
116
+ "type": "string"
117
+ }
118
+ }
119
+ },
120
+ "required": [
121
+ "name"
122
+ ]
123
+ }
124
+ }
125
+ },
91
126
  "additionalProperties": true
92
127
  }
93
128
  },
@@ -1,7 +1,7 @@
1
- import { NavigationTableActionOptions } from './schema';
2
1
  import { Tree } from '@angular-devkit/schematics';
3
2
  import { Normalized } from '@rxap/utilities';
4
3
  import { NormalizedOperationTableActionOptions } from '../operation-table-action';
4
+ import { NavigationTableActionOptions } from './schema';
5
5
  export type NormalizedNavigationTableActionOptions = Readonly<Normalized<NavigationTableActionOptions>> & NormalizedOperationTableActionOptions;
6
6
  export declare function NormalizeNavigationTableActionOptions(options: NavigationTableActionOptions): NormalizedNavigationTableActionOptions;
7
7
  export default function (options: NavigationTableActionOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
@@ -2,28 +2,27 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NormalizeNavigationTableActionOptions = void 0;
4
4
  const schematics_1 = require("@angular-devkit/schematics");
5
- const path_1 = require("path");
6
5
  const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
6
+ const path_1 = require("path");
7
+ const angular_options_1 = require("../../../../lib/angular-options");
8
+ const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
7
9
  const operation_table_action_1 = require("../operation-table-action");
8
10
  function NormalizeNavigationTableActionOptions(options) {
9
11
  var _a;
10
12
  return Object.assign(Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options)), { route: (_a = options.route) !== null && _a !== void 0 ? _a : null });
11
13
  }
12
14
  exports.NormalizeNavigationTableActionOptions = NormalizeNavigationTableActionOptions;
15
+ function printOptions(options) {
16
+ (0, angular_options_1.PrintAngularOptions)('navigation-table-action', options);
17
+ }
13
18
  function default_1(options) {
14
19
  const normalizedOptions = NormalizeNavigationTableActionOptions(options);
15
20
  const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, type, route, } = normalizedOptions;
16
- console.log(`===== Generating navigation table action for type '${type}' for project '${project}' in feature '${feature}' in directory '${directory}' ...`);
21
+ printOptions(normalizedOptions);
17
22
  return (host) => {
18
- if (!(0, schematics_ts_morph_1.HasTableComponent)(host, {
19
- project,
20
- feature,
21
- directory,
22
- name: tableName,
23
- })) {
24
- throw new schematics_1.SchematicsException(`Could not find the table component '${tableName}' in the project '${project}' and feature '${feature}' and directory '${directory}'.`);
25
- }
23
+ (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
26
24
  return (0, schematics_1.chain)([
25
+ () => console.group('\x1b[32m[@rxap/schematics-angular:navigation-table-action]\x1b[0m'),
27
26
  (0, schematics_ts_morph_1.CoerceNavigationTableActionRule)({
28
27
  directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
29
28
  type,
@@ -39,6 +38,7 @@ function default_1(options) {
39
38
  feature,
40
39
  route,
41
40
  }),
41
+ () => console.groupEnd(),
42
42
  ]);
43
43
  };
44
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/navigation-table-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CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AArDD,4BAqDC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/navigation-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA4E;AAE5E,+BAA4B;AAC5B,qEAAsE;AACtE,iGAA2F;AAC3F,sEAGmC;AAMnC,SAAgB,qCAAqC,CACnD,OAAqC;;IAErC,uCACK,IAAA,6DAAoC,EAAC,OAAO,CAAC,KAChD,KAAK,EAAE,MAAA,OAAO,CAAC,KAAK,mCAAI,IAAI,IAC5B;AACJ,CAAC;AAPD,sFAOC;AAED,SAAS,YAAY,CAAC,OAA+C;IACnE,IAAA,qCAAmB,EAAC,yBAAyB,EAAE,OAAO,CAAC,CAAC;AAC1D,CAAC;AAED,mBAAyB,OAAqC;IAC5D,MAAM,iBAAiB,GAAG,qCAAqC,CAAC,OAAO,CAAC,CAAC;IACzE,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,IAAI,EACJ,KAAK,GACN,GAAG,iBAAiB,CAAC;IACtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAChC,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,mEAAmE,CAAC;YACxF,IAAA,qDAA+B,EAAC;gBAC9B,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;gBACP,KAAK;aACN,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA3CD,4BA2CC"}
@@ -2,10 +2,8 @@ import { Tree } from '@angular-devkit/schematics';
2
2
  import { Normalized } from '@rxap/utilities';
3
3
  import { NormalizedAngularOptions } from '../../../../lib/angular-options';
4
4
  import { OperationTableActionOptions } from './schema';
5
- type tmp = Readonly<Normalized<OperationTableActionOptions>> & NormalizedAngularOptions;
6
- export interface NormalizedOperationTableActionOptions extends tmp {
5
+ export interface NormalizedOperationTableActionOptions extends Readonly<Normalized<OperationTableActionOptions> & NormalizedAngularOptions> {
7
6
  controllerName: string;
8
7
  }
9
8
  export declare function NormalizeOperationTableActionOptions(options: OperationTableActionOptions): NormalizedOperationTableActionOptions;
10
9
  export default function (options: OperationTableActionOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
11
- export {};
@@ -10,14 +10,14 @@ const assert_table_component_exists_1 = require("../../../../lib/assert-table-co
10
10
  const backend_types_1 = require("../../../../lib/backend-types");
11
11
  const table_action_1 = require("../../table-action");
12
12
  function NormalizeOperationTableActionOptions(options) {
13
- var _a, _b;
13
+ var _a;
14
14
  const normalizedOptions = (0, table_action_1.NormalizeTableActionOptions)(options);
15
15
  const nestModule = (_a = options.nestModule) !== null && _a !== void 0 ? _a : normalizedOptions.tableName;
16
- const controllerName = normalizedOptions.tableName;
17
- const context = (_b = options.context) !== null && _b !== void 0 ? _b : (0, utilities_1.joinWithDash)([nestModule, controllerName], { removeDuplicated: true });
18
- return Object.assign(Object.assign({}, normalizedOptions), { nestModule,
19
- controllerName,
20
- context });
16
+ const context = options.context ? (0, utilities_1.dasherize)(options.context) : null;
17
+ return Object.seal(Object.assign(Object.assign({}, normalizedOptions), { nestModule, controllerName: (0, schematics_ts_morph_1.BuildNestControllerName)({
18
+ controllerName: context,
19
+ nestModule,
20
+ }), context }));
21
21
  }
22
22
  exports.NormalizeOperationTableActionOptions = NormalizeOperationTableActionOptions;
23
23
  function openApiOperationRule(normalizedOptions) {
@@ -27,10 +27,7 @@ function openApiOperationRule(normalizedOptions) {
27
27
  (0, schematics_ts_morph_1.CoerceOperationTableActionRule)({
28
28
  scope,
29
29
  directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
30
- operationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `${type}-action`, (0, schematics_ts_morph_1.BuildNestControllerName)({
31
- controllerName,
32
- nestModule,
33
- })),
30
+ operationId: (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, `${type}-action`, controllerName),
34
31
  type,
35
32
  tableName,
36
33
  refresh,
@@ -70,16 +67,18 @@ function backendRule(normalizedOptions) {
70
67
  }
71
68
  return (0, schematics_1.noop)();
72
69
  }
73
- function printOperationTableActionOptions(options) {
70
+ function printOptions(options) {
74
71
  (0, angular_options_1.PrintAngularOptions)('operation-table-action', options);
75
72
  }
76
73
  function default_1(options) {
77
74
  const normalizedOptions = NormalizeOperationTableActionOptions(options);
78
- printOperationTableActionOptions(normalizedOptions);
75
+ printOptions(normalizedOptions);
79
76
  return (host) => {
80
77
  (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
81
78
  return (0, schematics_1.chain)([
79
+ () => console.group('\x1b[32m[@rxap/schematics-angular:operation-table-action]\x1b[0m'),
82
80
  backendRule(normalizedOptions),
81
+ () => console.groupEnd(),
83
82
  ]);
84
83
  };
85
84
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/operation-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAKmC;AACnC,+CAGyB;AACzB,+BAA4B;AAC5B,qEAGyC;AACzC,iGAA2F;AAC3F,iE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YACb,OAAO;YACP,OAAO;SACR,CAAC;QACF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,0CAA0C,CAAC;QAC7D,IAAA,qCAAe,EAAC;YACd,cAAc;YACd,UAAU;YACV,OAAO;YACP,OAAO;YACP,MAAM;YACN,uBAAuB,EAAE,IAAI;YAC7B,aAAa,EAAE,GAAI,IAAK,SAAS;YACjC,gBAAgB,EAAE,GAAG,EAAE;gBACrB,OAAO;oBACL,MAAM,EAAE,KAAK;oBACb,IAAI,EAAE,iBAAkB,IAAK,EAAE;oBAC/B,SAAS,EAAE,CAAE,EAAE,IAAI,EAAE,OAAO,EAAE,CAAE;iBACjC,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC,CAAC;AAEL,CAAC;AAED,SAAS,WAAW,CAAC,iBAAwD;IAE3E,MAAM,EACJ,OAAO,GACR,GAAG,iBAAiB,CAAC;IAEtB,QAAQ,OAAO,EAAE;QAEf,KAAK,4BAAY,CAAC,MAAM;YACtB,OAAO,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;KAElD;IAED,OAAO,IAAA,iBAAI,GAAE,CAAC;AAEhB,CAAC;AAED,SAAS,gCAAgC,CAAC,OAA8C;IACtF,IAAA,qCAAmB,EAAC,wBAAwB,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC;AAED,mBAAyB,OAAoC;IAC3D,MAAM,iBAAiB,GAAG,oCAAoC,CAAC,OAAO,CAAC,CAAC;IAExE,gCAAgC,CAAC,iBAAiB,CAAC,CAAC;IAEpD,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,WAAW,CAAC,iBAAiB,CAAC;SAC/B,CAAC,CAAC;IAEL,CAAC,CAAC;AACJ,CAAC;AAdD,4BAcC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics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,CAAC;YACvF,WAAW,CAAC,iBAAiB,CAAC;YAC9B,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IAEL,CAAC,CAAC;AACJ,CAAC;AAhBD,4BAgBC"}
@@ -0,0 +1,11 @@
1
+ import { Tree } from '@angular-devkit/schematics';
2
+ import { Normalized } from '@rxap/utilities';
3
+ import { NormalizedAngularOptions } from '../../../../lib/angular-options';
4
+ import { NormalizedTableHeaderButton } from '../../../../lib/table-header-button';
5
+ import { FormTableHeaderButtonOptions } from './schema';
6
+ export interface NormalizedFormTableHeaderButtonOptions extends Readonly<Normalized<FormTableHeaderButtonOptions> & NormalizedAngularOptions & NormalizedTableHeaderButton> {
7
+ options: Record<string, any>;
8
+ controllerName: string;
9
+ }
10
+ export declare function NormalizeFormTableHeaderButtonOptions(options: Readonly<FormTableHeaderButtonOptions>): NormalizedFormTableHeaderButtonOptions;
11
+ export default function (options: FormTableHeaderButtonOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NormalizeFormTableHeaderButtonOptions = 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 ts_morph_1 = require("ts-morph");
8
+ const angular_options_1 = require("../../../../lib/angular-options");
9
+ const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
10
+ const index_1 = require("../../table-header-button/index");
11
+ function NormalizeFormTableHeaderButtonOptions(options) {
12
+ const normalizedTableHeaderButtonOptions = (0, index_1.NormalizeTableHeaderButtonOptions)(options);
13
+ const nestModule = options.nestModule;
14
+ return Object.seal(Object.assign(Object.assign({}, normalizedTableHeaderButtonOptions), { context: options.context, nestModule, controllerName: (0, schematics_ts_morph_1.BuildNestControllerName)({
15
+ nestModule,
16
+ controllerName: 'header-button',
17
+ }) }));
18
+ }
19
+ exports.NormalizeFormTableHeaderButtonOptions = NormalizeFormTableHeaderButtonOptions;
20
+ function printOptions(options) {
21
+ (0, angular_options_1.PrintAngularOptions)('form-table-header-button', options);
22
+ }
23
+ function default_1(options) {
24
+ const normalizedOptions = NormalizeFormTableHeaderButtonOptions(options);
25
+ const { refresh, confirm, tooltip, errorMessage, successMessage, tableName, project, feature, shared, directory, overwrite, options: formOptions, context, backend, nestModule, controllerName, } = normalizedOptions;
26
+ printOptions(normalizedOptions);
27
+ return (host) => {
28
+ (0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
29
+ return (0, schematics_1.chain)([
30
+ () => console.group('\x1b[32m[@rxap/schematics-angular:form-table-header-button]\x1b[0m'),
31
+ () => console.log('Coerce table header button form ...'),
32
+ (0, schematics_utilities_1.ExecuteSchematic)('form-component', Object.assign(Object.assign({}, formOptions), { project, name: `table-header-button`, feature,
33
+ directory,
34
+ shared, window: true, nestModule,
35
+ controllerName,
36
+ context,
37
+ backend,
38
+ overwrite })),
39
+ () => console.log('Coerce table header button method ...'),
40
+ (0, schematics_ts_morph_1.CoerceTableHeaderButtonMethodRule)({
41
+ project,
42
+ feature,
43
+ shared,
44
+ directory,
45
+ overwrite,
46
+ tableName,
47
+ refresh,
48
+ confirm,
49
+ tooltip,
50
+ errorMessage,
51
+ successMessage,
52
+ tsMorphTransform: (project, sourceFile, classDeclaration) => {
53
+ const [constructorDeclaration] = (0, schematics_ts_morph_1.CoerceClassConstructor)(classDeclaration);
54
+ (0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'openWindowMethod', {
55
+ isReadonly: true,
56
+ scope: ts_morph_1.Scope.Private,
57
+ type: 'OpenTableHeaderButtonFormWindowMethod',
58
+ });
59
+ (0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
60
+ {
61
+ moduleSpecifier: '../table-header-button-form/open-table-header-button-form-window.method',
62
+ namedImports: ['OpenTableHeaderButtonFormWindowMethod'],
63
+ },
64
+ ]);
65
+ return {
66
+ statements: ['return this.openWindowMethod.call(parameters).toPromise();'],
67
+ };
68
+ },
69
+ tsMorphTransformComponent: (project, [sourceFile]) => {
70
+ (0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, 'OpenTableHeaderButtonFormWindowMethod', [
71
+ {
72
+ moduleSpecifier: './table-header-button-form/open-table-header-button-form-window.method',
73
+ namedImports: ['OpenTableHeaderButtonFormWindowMethod'],
74
+ },
75
+ ]);
76
+ },
77
+ }),
78
+ () => console.groupEnd(),
79
+ ]);
80
+ };
81
+ }
82
+ exports.default = default_1;
83
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/header-button/form-table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAOmC;AACnC,qEAA8D;AAE9D,uCAIkB;AAClB,qEAGyC;AACzC,iGAA2F;AAE3F,2DAAoF;AASpF,SAAgB,qCAAqC,CACnD,OAA+C;IAE/C,MAAM,kCAAkC,GAAG,IAAA,yCAAiC,EAAC,OAAO,CAAC,CAAC;IACtF,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IACtC,OAAO,MAAM,CAAC,IAAI,iCACb,kCAAkC,KACrC,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,UAAU,EACV,cAAc,EAAE,IAAA,6CAAuB,EAAC;YACtC,UAAU;YACV,cAAc,EAAE,eAAe;SAChC,CAAC,IACF,CAAC;AACL,CAAC;AAdD,sFAcC;AAED,SAAS,YAAY,CAAC,OAA+C;IACnE,IAAA,qCAAmB,EAAC,0BAA0B,EAAE,OAAO,CAAC,CAAC;AAC3D,CAAC;AAED,mBAAyB,OAAqC;IAC5D,MAAM,iBAAiB,GAAG,qCAAqC,CAAC,OAAO,CAAC,CAAC;IACzE,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,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IAAA,mCAAa,EAAC,UAAU,EAAE;wBACxB;4BACE,eAAe,EAAE,yEAAyE;4BAC1F,YAAY,EAAE,CAAE,uCAAuC,CAAE;yBAC1D;qBACF,CAAC,CAAC;oBACH,OAAO;wBACL,UAAU,EAAE,CAAE,4DAA4D,CAAE;qBAC7E,CAAC;gBACJ,CAAC;gBACD,yBAAyB,EAAE,CACzB,OAAgB,EAChB,CAAE,UAAU,CAAkB,EAC9B,EAAE;oBACF,IAAA,0CAAoB,EAClB,UAAU,EACV,uCAAuC,EACvC;wBACE;4BACE,eAAe,EAAE,wEAAwE;4BACzF,YAAY,EAAE,CAAE,uCAAuC,CAAE;yBAC1D;qBACF,CACF,CAAC;gBACJ,CAAC;aACF,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA7FD,4BA6FC"}
@@ -0,0 +1,7 @@
1
+ import { TableHeaderButtonOptions } from '../../table-header-button/schema';
2
+
3
+
4
+ export interface FormTableHeaderButtonOptions extends TableHeaderButtonOptions {
5
+ nestModule: string;
6
+ context: string;
7
+ }