@rxap/schematic-angular 16.2.0-dev.25 → 16.2.0-dev.26
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 +6 -6
- package/src/lib/tree-table-options.js +10 -3
- package/src/lib/tree-table-options.js.map +1 -1
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.2.0-dev.26](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.25...@rxap/schematic-angular@16.2.0-dev.26) (2024-03-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- add optional icon property to tree table property list ([1638aac](https://gitlab.com/rxap/packages/commit/1638aac3c7ed030a7d1c33b6097f3df337c87094))
|
|
11
|
+
|
|
6
12
|
# [16.2.0-dev.25](https://gitlab.com/rxap/packages/compare/@rxap/schematic-angular@16.2.0-dev.24...@rxap/schematic-angular@16.2.0-dev.25) (2024-03-07)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
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.1.0-dev.
|
|
20
|
+
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.1.0-dev.13 @rxap/schematics-utilities@^16.0.1-dev.1 @rxap/ts-morph@^1.1.0-dev.13 @rxap/utilities@^16.1.0-dev.6 colors@^1.4.0 handlebars@^4.7.7 ts-morph@^18.0.0 tslib@2.6.2
|
|
21
21
|
```
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "16.2.0-dev.
|
|
2
|
+
"version": "16.2.0-dev.26",
|
|
3
3
|
"name": "@rxap/schematic-angular",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"dependencies": {
|
|
@@ -12,9 +12,9 @@
|
|
|
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.1.0-dev.
|
|
15
|
+
"@rxap/schematics-ts-morph": "^16.1.0-dev.13",
|
|
16
16
|
"@rxap/schematics-utilities": "^16.0.1-dev.1",
|
|
17
|
-
"@rxap/ts-morph": "^1.1.0-dev.
|
|
17
|
+
"@rxap/ts-morph": "^1.1.0-dev.13",
|
|
18
18
|
"@rxap/utilities": "^16.1.0-dev.6",
|
|
19
19
|
"colors": "^1.4.0",
|
|
20
20
|
"handlebars": "^4.7.7",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"packageGroup": [
|
|
46
46
|
{
|
|
47
47
|
"package": "@rxap/schematics-ts-morph",
|
|
48
|
-
"version": "16.1.0-dev.
|
|
48
|
+
"version": "16.1.0-dev.13"
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"package": "@rxap/schematics-utilities",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"package": "@rxap/ts-morph",
|
|
56
|
-
"version": "1.1.0-dev.
|
|
56
|
+
"version": "1.1.0-dev.13"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"package": "@rxap/utilities",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
},
|
|
77
77
|
"schematics": "./collection.json",
|
|
78
78
|
"type": "commonjs",
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "7e271d5f45e33d0a712fab60ee96da09e790b80b",
|
|
80
80
|
"main": "./src/index.js",
|
|
81
81
|
"types": "./src/index.d.ts"
|
|
82
82
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NormalizeTreeTableOptions = exports.IsTreeTableModifiers = exports.TreeTableModifiers = void 0;
|
|
4
|
+
const ts_morph_1 = require("@rxap/ts-morph");
|
|
4
5
|
const utilities_1 = require("@rxap/utilities");
|
|
5
6
|
const existing_method_1 = require("./existing-method");
|
|
6
7
|
const minimum_table_options_1 = require("./minimum-table-options");
|
|
@@ -16,8 +17,9 @@ function IsTreeTableModifiers(value) {
|
|
|
16
17
|
}
|
|
17
18
|
exports.IsTreeTableModifiers = IsTreeTableModifiers;
|
|
18
19
|
function NormalizeTreeTableOptions(options, name) {
|
|
19
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
20
21
|
const columnList = (_a = options.columnList) !== null && _a !== void 0 ? _a : [];
|
|
22
|
+
const propertyList = (0, ts_morph_1.NormalizeDataPropertyList)((_b = options.propertyList) !== null && _b !== void 0 ? _b : []);
|
|
21
23
|
(0, utilities_1.CoerceArrayItems)(columnList, [{
|
|
22
24
|
name: 'tree',
|
|
23
25
|
hidden: true,
|
|
@@ -40,9 +42,14 @@ function NormalizeTreeTableOptions(options, name) {
|
|
|
40
42
|
{ name: 'AsyncPipe', moduleSpecifier: '@angular/common' }
|
|
41
43
|
],
|
|
42
44
|
}], { compareTo: (a, b) => a.name === b.name, merge: true });
|
|
43
|
-
|
|
45
|
+
(0, utilities_1.CoerceArrayItems)(propertyList, [(0, ts_morph_1.NormalizeDataProperty)({
|
|
46
|
+
name: 'icon',
|
|
47
|
+
isOptional: true,
|
|
48
|
+
})], (a, b) => a.name === b.name);
|
|
49
|
+
const normalizedOptions = (0, minimum_table_options_1.NormalizeMinimumTableOptions)(Object.assign(Object.assign({}, options), { columnList,
|
|
50
|
+
propertyList }), name, IsTreeTableModifiers, '-tree-table');
|
|
44
51
|
const tableRootMethod = (0, existing_method_1.NormalizeExistingMethod)(options.tableRootMethod);
|
|
45
|
-
const tableChildMethod = (
|
|
52
|
+
const tableChildMethod = (_c = (0, existing_method_1.NormalizeExistingMethod)(options.tableRootMethod)) !== null && _c !== void 0 ? _c : tableRootMethod;
|
|
46
53
|
return Object.freeze(Object.assign(Object.assign({}, normalizedOptions), { tableRootMethod,
|
|
47
54
|
tableChildMethod }));
|
|
48
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tree-table-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/tree-table-options.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"tree-table-options.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/tree-table-options.ts"],"names":[],"mappings":";;;AAAA,6CAIwB;AACxB,+CAGyB;AACzB,uDAI2B;AAC3B,mEAIiC;AAEjC,iDAIwB;AAExB,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,uEAAiD,CAAA;IACjD,qDAA+B,CAAA;AACjC,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED,SAAgB,oBAAoB,CAAC,KAAa;IAChD,OAAO,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,QAAQ,CAAC,KAA2B,CAAC,CAAC;AACjF,CAAC;AAFD,oDAEC;AAiBD,SAAgB,yBAAyB,CACvC,OAAmC,EACnC,IAAY;;IAEZ,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,IAAA,oCAAyB,EAAC,MAAA,OAAO,CAAC,YAAY,mCAAI,EAAE,CAAC,CAAC;IAC3E,IAAA,4BAAgB,EAAC,UAAU,EAAE,CAAC;YAC5B,IAAI,EAAE,MAAM;YACZ,MA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