@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.
- package/CHANGELOG.md +8 -0
- package/GETSTARTED.md +0 -0
- package/GUIDES.md +0 -0
- package/README.md +21 -0
- package/collection.json +109 -0
- package/package.json +70 -0
- package/src/index.d.ts +0 -0
- package/src/index.js +2 -0
- package/src/index.js.map +1 -0
- package/src/lib/accordion-item.d.ts +10 -0
- package/src/lib/accordion-item.js +36 -0
- package/src/lib/accordion-item.js.map +1 -0
- package/src/lib/accordion-itme-types.d.ts +7 -0
- package/src/lib/accordion-itme-types.js +15 -0
- package/src/lib/accordion-itme-types.js.map +1 -0
- package/src/lib/angular-options.d.ts +20 -0
- package/src/lib/angular-options.js +57 -0
- package/src/lib/angular-options.js.map +1 -0
- package/src/lib/assert-table-component-exists.d.ts +8 -0
- package/src/lib/assert-table-component-exists.js +18 -0
- package/src/lib/assert-table-component-exists.js.map +1 -0
- package/src/lib/backend-types.d.ts +5 -0
- package/src/lib/backend-types.js +10 -0
- package/src/lib/backend-types.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +9 -0
- package/src/lib/data-grid-item.js +31 -0
- package/src/lib/data-grid-item.js.map +1 -0
- package/src/lib/data-grid-options.d.ts +18 -0
- package/src/lib/data-grid-options.js +25 -0
- package/src/lib/data-grid-options.js.map +1 -0
- package/src/lib/dialog-action.d.ts +9 -0
- package/src/lib/dialog-action.js +33 -0
- package/src/lib/dialog-action.js.map +1 -0
- package/src/lib/existing-method.d.ts +5 -0
- package/src/lib/existing-method.js +11 -0
- package/src/lib/existing-method.js.map +1 -0
- package/src/lib/form-component-control.d.ts +13 -0
- package/src/lib/form-component-control.js +46 -0
- package/src/lib/form-component-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +15 -0
- package/src/lib/form-definition-control.js +59 -0
- package/src/lib/form-definition-control.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +17 -0
- package/src/lib/minimum-table-component-options.js +343 -0
- package/src/lib/minimum-table-component-options.js.map +1 -0
- package/src/lib/minimum-table-options.d.ts +18 -0
- package/src/lib/minimum-table-options.js +27 -0
- package/src/lib/minimum-table-options.js.map +1 -0
- package/src/lib/table-action.d.ts +11 -0
- package/src/lib/table-action.js +93 -0
- package/src/lib/table-action.js.map +1 -0
- package/src/lib/table-column.d.ts +18 -0
- package/src/lib/table-column.js +73 -0
- package/src/lib/table-column.js.map +1 -0
- package/src/lib/table-header-button.d.ts +9 -0
- package/src/lib/table-header-button.js +58 -0
- package/src/lib/table-header-button.js.map +1 -0
- package/src/lib/table-options.d.ts +15 -0
- package/src/lib/table-options.js +16 -0
- package/src/lib/table-options.js.map +1 -0
- package/src/lib/table-row-action.d.ts +14 -0
- package/src/lib/table-row-action.js +21 -0
- package/src/lib/table-row-action.js.map +1 -0
- package/src/lib/to-title.d.ts +1 -0
- package/src/lib/to-title.js +12 -0
- package/src/lib/to-title.js.map +1 -0
- package/src/lib/tree-table-options.d.ts +15 -0
- package/src/lib/tree-table-options.js +15 -0
- package/src/lib/tree-table-options.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +30 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +54 -0
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +5 -0
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +14 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +8 -0
- package/src/schematics/accordion/accordion-component/index.js +350 -0
- package/src/schematics/accordion/accordion-component/index.js.map +1 -0
- package/src/schematics/accordion/accordion-component/schema.d.ts +7 -0
- package/src/schematics/accordion/accordion-component/schema.json +90 -0
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +7 -0
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +32 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +21 -0
- package/src/schematics/accordion/accordion-item-component/index.js +319 -0
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -0
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +9 -0
- package/src/schematics/accordion/accordion-item-component/schema.json +73 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +14 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.html.template +10 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +32 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +10 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +211 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +122 -0
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +35 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +108 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +248 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.html.template +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +34 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +182 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +7 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +257 -0
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +42 -0
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +43 -0
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +25 -0
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +36 -0
- package/src/schematics/data-grid-component/index.d.ts +16 -0
- package/src/schematics/data-grid-component/index.js +320 -0
- package/src/schematics/data-grid-component/index.js.map +1 -0
- package/src/schematics/data-grid-component/schema.d.ts +4 -0
- package/src/schematics/data-grid-component/schema.json +112 -0
- package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +23 -0
- package/src/schematics/dialog-component/index.d.ts +2 -0
- package/src/schematics/dialog-component/index.js +43 -0
- package/src/schematics/dialog-component/index.js.map +1 -0
- package/src/schematics/dialog-component/schema.d.ts +9 -0
- package/src/schematics/dialog-component/schema.json +71 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +7 -0
- package/src/schematics/form/control/input-form-control/index.js +40 -0
- package/src/schematics/form/control/input-form-control/index.js.map +1 -0
- package/src/schematics/form/control/input-form-control/schema.d.ts +5 -0
- package/src/schematics/form/control/input-form-control/schema.json +115 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +6 -0
- package/src/schematics/form/control/select-form-control/index.js +124 -0
- package/src/schematics/form/control/select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/select-form-control/schema.d.ts +6 -0
- package/src/schematics/form/control/select-form-control/schema.json +101 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +12 -0
- package/src/schematics/form/control/table-select-form-control/index.js +183 -0
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +7 -0
- package/src/schematics/form/control/table-select-form-control/schema.json +105 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.html.template +12 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +52 -0
- package/src/schematics/form/form-component/files/window/open-__name__-form-window.method.ts.template +29 -0
- package/src/schematics/form/form-component/index.d.ts +16 -0
- package/src/schematics/form/form-component/index.js +149 -0
- package/src/schematics/form/form-component/index.js.map +1 -0
- package/src/schematics/form/form-component/schema.d.ts +8 -0
- package/src/schematics/form/form-component/schema.json +107 -0
- package/src/schematics/form/form-control/index.d.ts +9 -0
- package/src/schematics/form/form-control/index.js +54 -0
- package/src/schematics/form/form-control/index.js.map +1 -0
- package/src/schematics/form/form-control/schema.d.ts +6 -0
- package/src/schematics/form/form-control/schema.json +91 -0
- package/src/schematics/form/form-definition/index.d.ts +10 -0
- package/src/schematics/form/form-definition/index.js +43 -0
- package/src/schematics/form/form-definition/index.js.map +1 -0
- package/src/schematics/form/form-definition/schema.d.ts +6 -0
- package/src/schematics/form/form-definition/schema.json +97 -0
- package/src/schematics/table/action/dialog-table-action/index.d.ts +8 -0
- package/src/schematics/table/action/dialog-table-action/index.js +99 -0
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -0
- package/src/schematics/table/action/dialog-table-action/schema.d.ts +8 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +133 -0
- package/src/schematics/table/action/form-table-action/index.d.ts +9 -0
- package/src/schematics/table/action/form-table-action/index.js +146 -0
- package/src/schematics/table/action/form-table-action/index.js.map +1 -0
- package/src/schematics/table/action/form-table-action/schema.d.ts +4 -0
- package/src/schematics/table/action/form-table-action/schema.json +94 -0
- package/src/schematics/table/action/navigation-table-action/index.d.ts +7 -0
- package/src/schematics/table/action/navigation-table-action/index.js +46 -0
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -0
- package/src/schematics/table/action/navigation-table-action/schema.d.ts +5 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +85 -0
- package/src/schematics/table/action/operation-table-action/index.d.ts +11 -0
- package/src/schematics/table/action/operation-table-action/index.js +87 -0
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -0
- package/src/schematics/table/action/operation-table-action/schema.d.ts +4 -0
- package/src/schematics/table/action/operation-table-action/schema.json +93 -0
- package/src/schematics/table/table-action/index.d.ts +7 -0
- package/src/schematics/table/table-action/index.js +46 -0
- package/src/schematics/table/table-action/index.js.map +1 -0
- package/src/schematics/table/table-action/schema.d.ts +7 -0
- package/src/schematics/table/table-action/schema.json +81 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +311 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +100 -0
- package/src/schematics/table/table-component/index.d.ts +17 -0
- package/src/schematics/table/table-component/index.js +329 -0
- package/src/schematics/table/table-component/index.js.map +1 -0
- package/src/schematics/table/table-component/schema.d.ts +4 -0
- package/src/schematics/table/table-component/schema.json +230 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +201 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +102 -0
- package/src/schematics/table/tree-table-component/index.d.ts +9 -0
- package/src/schematics/table/tree-table-component/index.js +314 -0
- package/src/schematics/table/tree-table-component/index.js.map +1 -0
- package/src/schematics/table/tree-table-component/schema.d.ts +4 -0
- package/src/schematics/table/tree-table-component/schema.json +239 -0
- package/src/schematics/tree-component/index.d.ts +10 -0
- package/src/schematics/tree-component/index.js +33 -0
- package/src/schematics/tree-component/index.js.map +1 -0
- package/src/schematics/tree-component/schema.d.ts +6 -0
- package/src/schematics/tree-component/schema.json +75 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"tableName": {
|
|
7
|
+
"alias": "table",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the table action"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"alias": "actionType",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The table action type string",
|
|
15
|
+
"x-prompt": "Enter the table action type string?"
|
|
16
|
+
},
|
|
17
|
+
"project": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The target project where the table action should be added."
|
|
20
|
+
},
|
|
21
|
+
"feature": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The feature name where the table action should be added.",
|
|
24
|
+
"x-prompt": "To which feature should the table action be added?"
|
|
25
|
+
},
|
|
26
|
+
"backend": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The backend that should be used to handel data",
|
|
29
|
+
"enum": [
|
|
30
|
+
"none",
|
|
31
|
+
"local",
|
|
32
|
+
"nestjs"
|
|
33
|
+
],
|
|
34
|
+
"default": "none"
|
|
35
|
+
},
|
|
36
|
+
"shared": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether the table action is shared across applications",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"refresh": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"confirm": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Whether the table action should confirm before execution",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"tooltip": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The tooltip for the table action"
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The error message for the table action"
|
|
58
|
+
},
|
|
59
|
+
"successMessage": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The success message for the table action"
|
|
62
|
+
},
|
|
63
|
+
"checkFunction": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The check function for the table action"
|
|
66
|
+
},
|
|
67
|
+
"priority": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "The priority of the table action"
|
|
70
|
+
},
|
|
71
|
+
"directory": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "A directory name or absolute path for the table action. relative to the feature base path"
|
|
74
|
+
},
|
|
75
|
+
"nestModule": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "The module name for the table nest operations"
|
|
78
|
+
},
|
|
79
|
+
"overwrite": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Whether to override the table action if it already exists",
|
|
82
|
+
"default": false
|
|
83
|
+
},
|
|
84
|
+
"context": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"type",
|
|
91
|
+
"project",
|
|
92
|
+
"feature"
|
|
93
|
+
]
|
|
94
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NavigationTableActionOptions } from './schema';
|
|
2
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
3
|
+
import { Normalized } from '@rxap/utilities';
|
|
4
|
+
import { NormalizedOperationTableActionOptions } from '../operation-table-action';
|
|
5
|
+
export type NormalizedNavigationTableActionOptions = Readonly<Normalized<NavigationTableActionOptions>> & NormalizedOperationTableActionOptions;
|
|
6
|
+
export declare function NormalizeNavigationTableActionOptions(options: NavigationTableActionOptions): NormalizedNavigationTableActionOptions;
|
|
7
|
+
export default function (options: NavigationTableActionOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeNavigationTableActionOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
|
+
const operation_table_action_1 = require("../operation-table-action");
|
|
8
|
+
function NormalizeNavigationTableActionOptions(options) {
|
|
9
|
+
var _a;
|
|
10
|
+
return Object.assign(Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options)), { route: (_a = options.route) !== null && _a !== void 0 ? _a : null });
|
|
11
|
+
}
|
|
12
|
+
exports.NormalizeNavigationTableActionOptions = NormalizeNavigationTableActionOptions;
|
|
13
|
+
function default_1(options) {
|
|
14
|
+
const normalizedOptions = NormalizeNavigationTableActionOptions(options);
|
|
15
|
+
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}' ...`);
|
|
17
|
+
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
|
+
}
|
|
26
|
+
return (0, schematics_1.chain)([
|
|
27
|
+
(0, schematics_ts_morph_1.CoerceNavigationTableActionRule)({
|
|
28
|
+
directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
|
|
29
|
+
type,
|
|
30
|
+
tableName,
|
|
31
|
+
refresh,
|
|
32
|
+
confirm,
|
|
33
|
+
tooltip,
|
|
34
|
+
errorMessage,
|
|
35
|
+
successMessage,
|
|
36
|
+
priority,
|
|
37
|
+
checkFunction,
|
|
38
|
+
project,
|
|
39
|
+
feature,
|
|
40
|
+
route,
|
|
41
|
+
}),
|
|
42
|
+
]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.default = default_1;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/navigation-table-action/index.ts"],"names":[],"mappings":";;;AACA,2DAIoC;AACpC,+BAA4B;AAC5B,mEAGmC;AAEnC,sEAGmC;AAKnC,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,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,OAAO,CAAC,GAAG,CACT,sDAAuD,IAAK,kBAAmB,OAAQ,iBAAkB,OAAQ,mBAAoB,SAAU,OAAO,CACvJ,CAAC;IACF,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IACE,CAAC,IAAA,uCAAiB,EAAC,IAAI,EAAE;YACvB,OAAO;YACP,OAAO;YACP,SAAS;YACT,IAAI,EAAE,SAAS;SAChB,CAAC,EACF;YACA,MAAM,IAAI,gCAAmB,CAC3B,uCAAwC,SAAU,qBAAsB,OAAQ,kBAAmB,OAAQ,oBAAqB,SAAU,IAAI,CAC/I,CAAC;SACH;QAED,OAAO,IAAA,kBAAK,EAAC;YACX,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;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AArDD,4BAqDC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "navigation-table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"tableName": {
|
|
7
|
+
"alias": "table",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the table action"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"alias": "actionType",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The table action type string",
|
|
15
|
+
"x-prompt": "Enter the table action type string?"
|
|
16
|
+
},
|
|
17
|
+
"project": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The target project where the table action should be added."
|
|
20
|
+
},
|
|
21
|
+
"feature": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The feature name where the table action should be added.",
|
|
24
|
+
"x-prompt": "To which feature should the table action be added?"
|
|
25
|
+
},
|
|
26
|
+
"backend": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The backend that should be used to handel data",
|
|
29
|
+
"enum": [
|
|
30
|
+
"none",
|
|
31
|
+
"local",
|
|
32
|
+
"nestjs"
|
|
33
|
+
],
|
|
34
|
+
"default": "none"
|
|
35
|
+
},
|
|
36
|
+
"shared": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether the table action is shared across applications",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"refresh": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"confirm": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Whether the table action should confirm before execution",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"tooltip": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The tooltip for the table action"
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The error message for the table action"
|
|
58
|
+
},
|
|
59
|
+
"successMessage": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The success message for the table action"
|
|
62
|
+
},
|
|
63
|
+
"checkFunction": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The check function for the table action"
|
|
66
|
+
},
|
|
67
|
+
"priority": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "The priority of the table action"
|
|
70
|
+
},
|
|
71
|
+
"directory": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "A directory name or absolute path for the table action. relative to the feature base path"
|
|
74
|
+
},
|
|
75
|
+
"route": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "The route for the table action"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": [
|
|
81
|
+
"type",
|
|
82
|
+
"project",
|
|
83
|
+
"feature"
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -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 { OperationTableActionOptions } from './schema';
|
|
5
|
+
type tmp = Readonly<Normalized<OperationTableActionOptions>> & NormalizedAngularOptions;
|
|
6
|
+
export interface NormalizedOperationTableActionOptions extends tmp {
|
|
7
|
+
controllerName: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function NormalizeOperationTableActionOptions(options: OperationTableActionOptions): NormalizedOperationTableActionOptions;
|
|
10
|
+
export default function (options: OperationTableActionOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeOperationTableActionOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const utilities_1 = require("@rxap/utilities");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const angular_options_1 = require("../../../../lib/angular-options");
|
|
9
|
+
const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
|
|
10
|
+
const backend_types_1 = require("../../../../lib/backend-types");
|
|
11
|
+
const table_action_1 = require("../../table-action");
|
|
12
|
+
function NormalizeOperationTableActionOptions(options) {
|
|
13
|
+
var _a, _b;
|
|
14
|
+
const normalizedOptions = (0, table_action_1.NormalizeTableActionOptions)(options);
|
|
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 });
|
|
21
|
+
}
|
|
22
|
+
exports.NormalizeOperationTableActionOptions = NormalizeOperationTableActionOptions;
|
|
23
|
+
function openApiOperationRule(normalizedOptions) {
|
|
24
|
+
const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, nestModule, controllerName, type, scope, } = normalizedOptions;
|
|
25
|
+
return (0, schematics_1.chain)([
|
|
26
|
+
() => console.log('Coerce table action method class ...'),
|
|
27
|
+
(0, schematics_ts_morph_1.CoerceOperationTableActionRule)({
|
|
28
|
+
scope,
|
|
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
|
+
})),
|
|
34
|
+
type,
|
|
35
|
+
tableName,
|
|
36
|
+
refresh,
|
|
37
|
+
confirm,
|
|
38
|
+
tooltip,
|
|
39
|
+
errorMessage,
|
|
40
|
+
successMessage,
|
|
41
|
+
priority,
|
|
42
|
+
checkFunction,
|
|
43
|
+
project,
|
|
44
|
+
feature,
|
|
45
|
+
}),
|
|
46
|
+
() => console.log('Coerce table action method operation ...'),
|
|
47
|
+
(0, schematics_ts_morph_1.CoerceOperation)({
|
|
48
|
+
controllerName,
|
|
49
|
+
nestModule,
|
|
50
|
+
project,
|
|
51
|
+
feature,
|
|
52
|
+
shared,
|
|
53
|
+
overwriteControllerPath: true,
|
|
54
|
+
operationName: `${type}-action`,
|
|
55
|
+
tsMorphTransform: () => {
|
|
56
|
+
return {
|
|
57
|
+
method: 'put',
|
|
58
|
+
path: `action/:rowId/${type}`,
|
|
59
|
+
paramList: [{ name: 'rowId' }],
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
}),
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
function backendRule(normalizedOptions) {
|
|
66
|
+
const { backend, } = normalizedOptions;
|
|
67
|
+
switch (backend) {
|
|
68
|
+
case backend_types_1.BackendTypes.NESTJS:
|
|
69
|
+
return openApiOperationRule(normalizedOptions);
|
|
70
|
+
}
|
|
71
|
+
return (0, schematics_1.noop)();
|
|
72
|
+
}
|
|
73
|
+
function printOperationTableActionOptions(options) {
|
|
74
|
+
(0, angular_options_1.PrintAngularOptions)('operation-table-action', options);
|
|
75
|
+
}
|
|
76
|
+
function default_1(options) {
|
|
77
|
+
const normalizedOptions = NormalizeOperationTableActionOptions(options);
|
|
78
|
+
printOperationTableActionOptions(normalizedOptions);
|
|
79
|
+
return (host) => {
|
|
80
|
+
(0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
|
|
81
|
+
return (0, schematics_1.chain)([
|
|
82
|
+
backendRule(normalizedOptions),
|
|
83
|
+
]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
exports.default = default_1;
|
|
87
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/operation-table-action/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "operation-table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"tableName": {
|
|
7
|
+
"alias": "table",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the table action"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"alias": "actionType",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The table action type string",
|
|
15
|
+
"x-prompt": "Enter the table action type string?"
|
|
16
|
+
},
|
|
17
|
+
"project": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The target project where the table action should be added."
|
|
20
|
+
},
|
|
21
|
+
"feature": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The feature name where the table action should be added.",
|
|
24
|
+
"x-prompt": "To which feature should the table action be added?"
|
|
25
|
+
},
|
|
26
|
+
"backend": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The backend that should be used to handel data",
|
|
29
|
+
"enum": [
|
|
30
|
+
"none",
|
|
31
|
+
"local",
|
|
32
|
+
"nestjs"
|
|
33
|
+
],
|
|
34
|
+
"default": "none"
|
|
35
|
+
},
|
|
36
|
+
"shared": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether the table action is shared across applications",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"refresh": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"confirm": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Whether the table action should confirm before execution",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"tooltip": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The tooltip for the table action"
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The error message for the table action"
|
|
58
|
+
},
|
|
59
|
+
"successMessage": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The success message for the table action"
|
|
62
|
+
},
|
|
63
|
+
"checkFunction": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The check function for the table action"
|
|
66
|
+
},
|
|
67
|
+
"priority": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "The priority of the table action"
|
|
70
|
+
},
|
|
71
|
+
"directory": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "A directory name or absolute path for the table action. relative to the feature base path"
|
|
74
|
+
},
|
|
75
|
+
"nestModule": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "The module name for the table nest operations"
|
|
78
|
+
},
|
|
79
|
+
"controllerName": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "The controller name for the table nest operations"
|
|
82
|
+
},
|
|
83
|
+
"context": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
"required": [
|
|
89
|
+
"type",
|
|
90
|
+
"project",
|
|
91
|
+
"feature"
|
|
92
|
+
]
|
|
93
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TableActionOptions } from './schema';
|
|
2
|
+
import { Tree } from '@angular-devkit/schematics';
|
|
3
|
+
import { Normalized } from '@rxap/utilities';
|
|
4
|
+
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
5
|
+
export type NormalizedTableActionOptions = Readonly<Normalized<TableActionOptions>> & NormalizedAngularOptions;
|
|
6
|
+
export declare function NormalizeTableActionOptions(options: Readonly<TableActionOptions>): NormalizedTableActionOptions;
|
|
7
|
+
export default function (options: TableActionOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeTableActionOptions = void 0;
|
|
4
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const angular_options_1 = require("../../../lib/angular-options");
|
|
9
|
+
const table_row_action_1 = require("../../../lib/table-row-action");
|
|
10
|
+
const assert_table_component_exists_1 = require("../../../lib/assert-table-component-exists");
|
|
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 }));
|
|
16
|
+
}
|
|
17
|
+
exports.NormalizeTableActionOptions = NormalizeTableActionOptions;
|
|
18
|
+
function printTableActionOptions(options) {
|
|
19
|
+
(0, angular_options_1.PrintAngularOptions)('table-action', options);
|
|
20
|
+
}
|
|
21
|
+
function default_1(options) {
|
|
22
|
+
const normalizedOptions = NormalizeTableActionOptions(options);
|
|
23
|
+
const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, directory, type, } = normalizedOptions;
|
|
24
|
+
printTableActionOptions(normalizedOptions);
|
|
25
|
+
return (host) => {
|
|
26
|
+
(0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
|
|
27
|
+
return (0, schematics_1.chain)([
|
|
28
|
+
(0, schematics_ts_morph_1.CoerceTableActionRule)({
|
|
29
|
+
directory: (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods', 'action'),
|
|
30
|
+
type,
|
|
31
|
+
tableName,
|
|
32
|
+
refresh,
|
|
33
|
+
confirm,
|
|
34
|
+
tooltip,
|
|
35
|
+
errorMessage,
|
|
36
|
+
successMessage,
|
|
37
|
+
priority,
|
|
38
|
+
checkFunction,
|
|
39
|
+
project,
|
|
40
|
+
feature,
|
|
41
|
+
}),
|
|
42
|
+
]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.default = default_1;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-action/index.ts"],"names":[],"mappings":";;;AACA,qEAGoC;AACpC,2DAGoC;AACpC,mEAAkE;AAClE,+BAA4B;AAE5B,kEAIsC;AACtC,oEAAwE;AACxE,8FAAwF;AAIxF,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,uBAAuB,CAAC,OAAqC;IACpE,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,uBAAuB,CAAC,iBAAiB,CAAC,CAAC;IAE3C,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,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;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAvCD,4BAuCC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"tableName": {
|
|
7
|
+
"alias": "table",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the table action"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"alias": "actionType",
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The table action type string",
|
|
15
|
+
"x-prompt": "Enter the table action type string?"
|
|
16
|
+
},
|
|
17
|
+
"project": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The target project where the table action should be added."
|
|
20
|
+
},
|
|
21
|
+
"feature": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "The feature name where the table action should be added.",
|
|
24
|
+
"x-prompt": "To which feature should the table action be added?"
|
|
25
|
+
},
|
|
26
|
+
"backend": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The backend that should be used to handel data",
|
|
29
|
+
"enum": [
|
|
30
|
+
"none",
|
|
31
|
+
"local",
|
|
32
|
+
"nestjs"
|
|
33
|
+
],
|
|
34
|
+
"default": "none"
|
|
35
|
+
},
|
|
36
|
+
"shared": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether the table action is shared across applications",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"refresh": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"confirm": {
|
|
47
|
+
"type": "boolean",
|
|
48
|
+
"description": "Whether the table action should confirm before execution",
|
|
49
|
+
"default": false
|
|
50
|
+
},
|
|
51
|
+
"tooltip": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "The tooltip for the table action"
|
|
54
|
+
},
|
|
55
|
+
"errorMessage": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The error message for the table action"
|
|
58
|
+
},
|
|
59
|
+
"successMessage": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The success message for the table action"
|
|
62
|
+
},
|
|
63
|
+
"checkFunction": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "The check function for the table action"
|
|
66
|
+
},
|
|
67
|
+
"priority": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"description": "The priority of the table action"
|
|
70
|
+
},
|
|
71
|
+
"directory": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"description": "A directory name or absolute path for the table action. relative to the feature base path"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"type",
|
|
78
|
+
"project",
|
|
79
|
+
"feature"
|
|
80
|
+
]
|
|
81
|
+
}
|