@rxap/schematic-angular 16.1.0-dev.43 → 16.1.0-dev.44
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 +6 -0
- package/README.md +1 -1
- package/package.json +4 -4
- package/src/schematics/table/action/navigation-table-action/index.js +4 -3
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/schema.d.ts +1 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +5 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [16.1.0-dev.44](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.1.0-dev.43...@rxap/schematic-angular@16.1.0-dev.44) (2023-11-18)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- support relativeTo parameter ([0f1e690](https://gitlab.com/rxap/packages/commit/0f1e690f74802761efee09fa73ffb8036b3cefcd))
|
|
11
|
+
|
|
6
12
|
# [16.1.0-dev.43](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.1.0-dev.42...@rxap/schematic-angular@16.1.0-dev.43) (2023-11-17)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/README.md
CHANGED
|
@@ -17,5 +17,5 @@ yarn add @rxap/schematic-angular
|
|
|
17
17
|
```
|
|
18
18
|
**Install peer dependencies:**
|
|
19
19
|
```bash
|
|
20
|
-
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.0.0-dev.
|
|
20
|
+
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.0.0-dev.35 @rxap/schematics-utilities@^16.0.0-dev.21 @rxap/utilities@^16.0.0-dev.23 ts-morph@^18.0.0 tslib@2.6.2
|
|
21
21
|
```
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.1.0-dev.
|
|
2
|
+
"version": "16.1.0-dev.44",
|
|
3
3
|
"name": "@rxap/schematic-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"peerDependencies": {
|
|
13
13
|
"@angular-devkit/core": "^16.1.4",
|
|
14
14
|
"@angular-devkit/schematics": "^16.1.4",
|
|
15
|
-
"@rxap/schematics-ts-morph": "^16.0.0-dev.
|
|
15
|
+
"@rxap/schematics-ts-morph": "^16.0.0-dev.35",
|
|
16
16
|
"@rxap/schematics-utilities": "^16.0.0-dev.21",
|
|
17
17
|
"@rxap/utilities": "^16.0.0-dev.23",
|
|
18
18
|
"ts-morph": "^18.0.0",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"packageGroup": [
|
|
43
43
|
{
|
|
44
44
|
"package": "@rxap/schematics-ts-morph",
|
|
45
|
-
"version": "16.0.0-dev.
|
|
45
|
+
"version": "16.0.0-dev.35"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"package": "@rxap/schematics-utilities",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"schematics": "./collection.json",
|
|
71
71
|
"type": "commonjs",
|
|
72
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "eae9d8105fc9ecfdf80101d147d1947b99d68fb8",
|
|
73
73
|
"main": "./src/index.js",
|
|
74
74
|
"types": "./src/index.d.ts"
|
|
75
75
|
}
|
|
@@ -8,8 +8,8 @@ const angular_options_1 = require("../../../../lib/angular-options");
|
|
|
8
8
|
const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
|
|
9
9
|
const operation_table_action_1 = require("../operation-table-action");
|
|
10
10
|
function NormalizeNavigationTableActionOptions(options) {
|
|
11
|
-
var _a;
|
|
12
|
-
return Object.assign(Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options)), { route: (_a = options.route) !== null && _a !== void 0 ? _a : null });
|
|
11
|
+
var _a, _b;
|
|
12
|
+
return Object.assign(Object.assign({}, (0, operation_table_action_1.NormalizeOperationTableActionOptions)(options)), { route: (_a = options.route) !== null && _a !== void 0 ? _a : null, relativeTo: (_b = options.relativeTo) !== null && _b !== void 0 ? _b : false });
|
|
13
13
|
}
|
|
14
14
|
exports.NormalizeNavigationTableActionOptions = NormalizeNavigationTableActionOptions;
|
|
15
15
|
function printOptions(options) {
|
|
@@ -17,7 +17,7 @@ function printOptions(options) {
|
|
|
17
17
|
}
|
|
18
18
|
function default_1(options) {
|
|
19
19
|
const normalizedOptions = NormalizeNavigationTableActionOptions(options);
|
|
20
|
-
const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, type, route, } = normalizedOptions;
|
|
20
|
+
const { refresh, confirm, tooltip, errorMessage, successMessage, priority, checkFunction, tableName, project, feature, shared, directory, type, route, relativeTo, } = normalizedOptions;
|
|
21
21
|
printOptions(normalizedOptions);
|
|
22
22
|
return (host) => {
|
|
23
23
|
(0, assert_table_component_exists_1.AssertTableComponentExists)(host, normalizedOptions);
|
|
@@ -37,6 +37,7 @@ function default_1(options) {
|
|
|
37
37
|
project,
|
|
38
38
|
feature,
|
|
39
39
|
route,
|
|
40
|
+
relativeTo,
|
|
40
41
|
}),
|
|
41
42
|
() => console.groupEnd(),
|
|
42
43
|
]);
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,EAC5B,UAAU,EAAE,MAAA,OAAO,CAAC,UAAU,mCAAI,KAAK,IACvC;AACJ,CAAC;AARD,sFAQC;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,EACL,UAAU,GACX,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;gBACL,UAAU;aACX,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AA7CD,4BA6CC"}
|
|
@@ -77,6 +77,11 @@
|
|
|
77
77
|
"type": "string",
|
|
78
78
|
"description": "The route for the table action"
|
|
79
79
|
},
|
|
80
|
+
"relativeTo": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"description": "Use the current ActivatedRoute to resolve the route or not",
|
|
83
|
+
"default": false
|
|
84
|
+
},
|
|
80
85
|
"options": {
|
|
81
86
|
"type": "object",
|
|
82
87
|
"additionalProperties": true
|