@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.
@@ -1,6 +1,6 @@
1
1
  declare type ConfigType = {
2
2
  linkCondition: "every" | "some";
3
- conditionList: Array<{
3
+ rules: Array<{
4
4
  leftValue: string;
5
5
  compareSymbol: string;
6
6
  rightValue: any;
@@ -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
- conditionList = nxt.conditionList;
7
+ rules = nxt.rules;
8
8
  if (!Reflect.has(cur, item)) {
9
9
  cur[item] = [{
10
10
  linkCondition: linkCondition,
11
- conditionList: conditionList
11
+ rules: rules
12
12
  }];
13
13
  } else if (Array.isArray(cur[item])) {
14
14
  cur[item].push({
15
15
  linkCondition: linkCondition,
16
- conditionList: conditionList
16
+ rules: rules
17
17
  });
18
18
  }
19
19
  });
@@ -1,9 +1,9 @@
1
1
  declare type Node = {
2
2
  groupId: number;
3
3
  groupName: string;
4
- workOrderTemplates: Array<{
4
+ flowTemplates: Array<{
5
5
  groupId: number;
6
- uniqueKey: string;
6
+ flowTemplateKey: string;
7
7
  name: string;
8
8
  }>;
9
9
  };
@@ -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.workOrderTemplates;
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.uniqueKey === childId;
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.0",
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": "0971dba8b7fcdcda5020f2196ec774e5ebb8e633"
45
+ "gitHead": "065f3441aacabeffb49602b44ccdac6d5d1a61f8"
46
46
  }