@kmkf-fe-packages/services-components 0.7.3-alpha.7 → 0.7.3-alpha.8

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.
@@ -27,6 +27,7 @@ declare class ShopInput implements ComponentInterface {
27
27
  mode: string;
28
28
  };
29
29
  filterFn: (value: string) => (i: Record) => boolean | undefined;
30
+ formatFilterValue: (shopList: Array<string>) => any[];
30
31
  };
31
32
  }
32
33
  export default ShopInput;
@@ -68,6 +68,15 @@ var ShopInput = /*#__PURE__*/_createClass(function ShopInput(options) {
68
68
  return item.shopName;
69
69
  })) === null || _this$effects2$shopLi3 === void 0 ? void 0 : _this$effects2$shopLi3.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
70
70
  };
71
+ },
72
+ formatFilterValue: function formatFilterValue(shopList) {
73
+ return shopList === null || shopList === void 0 ? void 0 : shopList.map(function (shopId) {
74
+ var _ref, _ref$find, _this$effects3;
75
+ var shopUniqueKey = (_ref = (_this === null || _this === void 0 ? void 0 : (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.shopList) || []) === null || _ref === void 0 ? void 0 : (_ref$find = _ref.find(function (item) {
76
+ return item.shopId === shopId;
77
+ })) === null || _ref$find === void 0 ? void 0 : _ref$find.uniqueKey;
78
+ return shopUniqueKey !== null && shopUniqueKey !== void 0 ? shopUniqueKey : shopId;
79
+ });
71
80
  }
72
81
  };
73
82
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.3-alpha.7",
3
+ "version": "0.7.3-alpha.8",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "e8cf9f0eecbcdcfcb23cc53d7af2b2fd3ff6c8be"
43
+ "gitHead": "3f1aeb91c951a06e99993e2df46ef10c037ac417"
44
44
  }