@kmkf-fe-packages/kmkf-utils 0.7.11-alpha.0 → 0.7.11-alpha.2
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.
|
@@ -4,16 +4,16 @@ var formatDisplayConfig = function formatDisplayConfig(p) {
|
|
|
4
4
|
if (((_nxt$displayComponent = nxt.displayComponentList) === null || _nxt$displayComponent === void 0 ? void 0 : _nxt$displayComponent.length) > 0) {
|
|
5
5
|
nxt.displayComponentList.map(function (item) {
|
|
6
6
|
var linkCondition = nxt.linkCondition,
|
|
7
|
-
|
|
7
|
+
rules = nxt.rules;
|
|
8
8
|
if (!Reflect.has(cur, item)) {
|
|
9
9
|
cur[item] = [{
|
|
10
10
|
linkCondition: linkCondition,
|
|
11
|
-
|
|
11
|
+
rules: rules
|
|
12
12
|
}];
|
|
13
13
|
} else if (Array.isArray(cur[item])) {
|
|
14
14
|
cur[item].push({
|
|
15
15
|
linkCondition: linkCondition,
|
|
16
|
-
|
|
16
|
+
rules: rules
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export var getNodeNamesByChildId = function getNodeNamesByChildId(tree, childId) {
|
|
2
2
|
var _tree$map;
|
|
3
3
|
var childList = tree === null || tree === void 0 ? void 0 : (_tree$map = tree.map(function (item) {
|
|
4
|
-
return item.
|
|
4
|
+
return item.flowTemplates;
|
|
5
5
|
})) === null || _tree$map === void 0 ? void 0 : _tree$map.flat();
|
|
6
6
|
var child = childList.find(function (c) {
|
|
7
|
-
return c.
|
|
7
|
+
return c.flowTemplateKey === childId;
|
|
8
8
|
});
|
|
9
9
|
if (child) {
|
|
10
10
|
var parentId = child.groupId;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/kmkf-utils",
|
|
3
|
-
"version": "0.7.11-alpha.
|
|
3
|
+
"version": "0.7.11-alpha.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"gitHooks": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "065f3441aacabeffb49602b44ccdac6d5d1a61f8"
|
|
46
46
|
}
|