@kmkf-fe-packages/services-components 0.7.15-alpha.2 → 0.7.15-alpha.21

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.
Files changed (57) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +4 -4
  2. package/dist/esm/components/BS/BsExchange/index.d.ts +22 -6
  3. package/dist/esm/components/BS/BsExchange/index.js +175 -39
  4. package/dist/esm/components/BS/BsGoods/index.d.ts +4 -5
  5. package/dist/esm/components/BS/BsGoods/index.js +43 -29
  6. package/dist/esm/components/BS/BsReissue/index.d.ts +17 -6
  7. package/dist/esm/components/BS/BsReissue/index.js +61 -34
  8. package/dist/esm/components/BS/common/BsChildCode.d.ts +25 -0
  9. package/dist/esm/components/BS/common/BsChildCode.js +71 -0
  10. package/dist/esm/components/BS/common/BsChildMoney.d.ts +25 -0
  11. package/dist/esm/components/BS/common/BsChildMoney.js +71 -0
  12. package/dist/esm/components/BS/common/BsChildName.d.ts +25 -0
  13. package/dist/esm/components/BS/common/BsChildName.js +71 -0
  14. package/dist/esm/components/BS/common/BsChildNumber.d.ts +25 -0
  15. package/dist/esm/components/BS/common/BsChildNumber.js +71 -0
  16. package/dist/esm/components/BS/common/BsChildPic.d.ts +25 -0
  17. package/dist/esm/components/BS/common/BsChildPic.js +72 -0
  18. package/dist/esm/components/BS/common/BsChildShare.d.ts +25 -0
  19. package/dist/esm/components/BS/common/BsChildShare.js +71 -0
  20. package/dist/esm/components/BS/common/BsChildSku.d.ts +25 -0
  21. package/dist/esm/components/BS/common/BsChildSku.js +71 -0
  22. package/dist/esm/components/BS/common/BsChildType.d.ts +25 -0
  23. package/dist/esm/components/BS/common/BsChildType.js +71 -0
  24. package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
  25. package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
  26. package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
  27. package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
  28. package/dist/esm/components/BS/common/BsMemo.d.ts +25 -0
  29. package/dist/esm/components/BS/common/BsMemo.js +76 -0
  30. package/dist/esm/components/BS/common/BsType.d.ts +35 -0
  31. package/dist/esm/components/BS/common/{BsPic.js → BsType.js} +40 -49
  32. package/dist/esm/components/BS/common/index.d.ts +10 -0
  33. package/dist/esm/components/BS/common/index.js +10 -0
  34. package/dist/esm/components/Common/index.d.ts +12 -6
  35. package/dist/esm/components/Common/index.js +115 -50
  36. package/dist/esm/components/Common/index.module.less +8 -0
  37. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  38. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  39. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  40. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  41. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  42. package/dist/esm/components/File/index.d.ts +7 -8
  43. package/dist/esm/components/File/index.js +18 -47
  44. package/dist/esm/components/Input/index.js +3 -0
  45. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
  46. package/dist/esm/components/LogisticsTrajectory/index.js +6 -16
  47. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +3 -3
  48. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
  49. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
  50. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  51. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
  52. package/dist/esm/components/Popover/index.d.ts +2 -2
  53. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  54. package/dist/esm/factory.d.ts +1 -1
  55. package/dist/esm/type.d.ts +1 -0
  56. package/package.json +4 -4
  57. package/dist/esm/components/BS/common/BsPic.d.ts +0 -43
@@ -1,4 +1,6 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2
4
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
5
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
6
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
@@ -13,6 +15,7 @@ import ItemView from "../../../commonComponents/ItemView";
13
15
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
14
16
  import { BsReissue as Reissue } from "@kmkf-fe-packages/basic-components";
15
17
  import { SYMBOL } from "../../../constant";
18
+ import { BsType, BsMemo, BsChildPic, BsChildName, BsChildCode, BsChildSku, BsChildMoney, BsChildNumber, BsChildShare, BsChildType } from "../common/index";
16
19
  var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
17
20
  var _this = this,
18
21
  _this$componentConfig2;
@@ -39,28 +42,17 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
39
42
  })
40
43
  }) : null;
41
44
  });
42
- _defineProperty(this, "renderPc", function (value, record) {
43
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsReissueGoods")]) === undefined) {
44
- return /*#__PURE__*/React.createElement("span", null, "--");
45
- }
46
- //兼容多个商品
47
- return /*#__PURE__*/React.createElement(GoodImage, {
48
- list: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsReissueGoods")],
49
- type: "itemId"
50
- });
45
+ _defineProperty(this, "renderPc", function () {
46
+ return null;
51
47
  });
52
48
  _defineProperty(this, "renderLog", function (r) {
53
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")])) return null;
54
- return _this.renderPc(undefined, r);
49
+ return null;
55
50
  });
56
51
  _defineProperty(this, "getComponentValue", function (r) {
57
52
  return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")];
58
53
  });
59
- _defineProperty(this, "renderExport", function (value, record) {
60
- var _ref;
61
- return (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsReissueGoods")]) || []) === null || _ref === void 0 ? void 0 : _ref.map(function (i) {
62
- return i.numIid;
63
- }).join("\n");
54
+ _defineProperty(this, "renderExport", function () {
55
+ return null;
64
56
  });
65
57
  _defineProperty(this, "editRender", function (p) {
66
58
  var _this$componentConfig, _this$effects, _this$effects2;
@@ -79,40 +71,75 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
79
71
  });
80
72
  });
81
73
  _defineProperty(this, "filterConfig", function (item) {
82
- return {
83
- searchDefaultConditions: SYMBOL.like,
74
+ var _item$config;
75
+ return [{
76
+ searchDefaultConditions: SYMBOL.eq,
84
77
  type: item.type,
85
- id: "".concat(item.id, "_bsReissueGoods"),
86
- // 过滤组件id
87
- name: item.name,
88
- // 过滤组件名称
89
- filterComponentType: "Input",
78
+ id: "".concat(item.id, "_bsReissueType"),
79
+ name: "".concat(item.name, "-\u6362\u8D27\u7C7B\u578B"),
80
+ filterComponentType: "Cascader",
81
+ props: {
82
+ options: item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList
83
+ },
90
84
  filterFn: function filterFn(value) {
91
85
  return function (i) {
92
- var _ref2;
93
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, "bsGoods") || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
94
- var _String;
95
- return item !== null && item !== void 0 && item.numIid ? (_String = String(item === null || item === void 0 ? void 0 : item.numIid)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
96
- });
86
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "bsReissueType"), value);
97
87
  };
98
88
  }
99
- };
89
+ }, {
90
+ searchDefaultConditions: SYMBOL.like,
91
+ type: item.type,
92
+ id: "".concat(item.id, "_bsReissueGoods"),
93
+ name: "".concat(_this.name),
94
+ filterComponentType: "Input"
95
+ }];
100
96
  });
101
97
  this.name = options.name;
102
98
  this.id = options.id;
103
- this.sortField = "".concat(options.id, "_bsReissueGoods");
104
- this.formField = "".concat(options.id, "_bsReissueGoods");
99
+ this.sortField = "".concat(options.id);
100
+ this.formField = "".concat(options.id);
105
101
  this.type = options.type;
106
102
  this.effects = options === null || options === void 0 ? void 0 : options.effects;
107
103
  this.isCombinationComponent = false;
108
104
  this.canSort = false;
109
- this.children = [];
105
+ this.children = [new BsType(_objectSpread(_objectSpread({}, options), {}, {
106
+ id: "".concat(options.id, "_bsReissueType"),
107
+ name: "补发类型"
108
+ })), new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
109
+ id: "".concat(options.id, "_bsReissueType"),
110
+ name: "补发备注"
111
+ })), new BsChildPic(_objectSpread(_objectSpread({}, options), {}, {
112
+ name: "bs图片",
113
+ id: "".concat(options.id, "_bsReissueGoods")
114
+ })), new BsChildName(_objectSpread(_objectSpread({}, options), {}, {
115
+ name: "名称",
116
+ id: "".concat(options.id, "_bsReissueGoods")
117
+ })), new BsChildCode(_objectSpread(_objectSpread({}, options), {}, {
118
+ name: "编码",
119
+ id: "".concat(options.id, "_bsReissueGoods")
120
+ })), new BsChildSku(_objectSpread(_objectSpread({}, options), {}, {
121
+ name: "sku编码",
122
+ id: "".concat(options.id, "_bsReissueGoods")
123
+ })), new BsChildMoney(_objectSpread(_objectSpread({}, options), {}, {
124
+ name: "实付金额",
125
+ id: "".concat(options.id, "_bsReissueGoods")
126
+ })), new BsChildNumber(_objectSpread(_objectSpread({}, options), {}, {
127
+ name: "数量",
128
+ id: "".concat(options.id, "_bsReissueGoods")
129
+ })), new BsChildShare(_objectSpread(_objectSpread({}, options), {}, {
130
+ name: "分摊价",
131
+ id: "".concat(options.id, "_bsReissueGoods")
132
+ })), new BsChildType(_objectSpread(_objectSpread({}, options), {}, {
133
+ name: "赠品类型",
134
+ id: "".concat(options.id, "_bsReissueGoods")
135
+ }))];
110
136
  this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
111
137
  this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
112
138
  required: true,
113
139
  validator: function validator(_, value) {
114
- if (!value || !value.length) {
115
- return Promise.reject(new Error("请选择bs商品"));
140
+ var _value$bsReissueGoods;
141
+ if (!value || !(value !== null && value !== void 0 && (_value$bsReissueGoods = value.bsReissueGoods) !== null && _value$bsReissueGoods !== void 0 && _value$bsReissueGoods.length)) {
142
+ return Promise.reject(new Error("请选择bs补发商品"));
116
143
  }
117
144
  return Promise.resolve();
118
145
  }
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildCode implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildCode;
@@ -0,0 +1,71 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import ItemView from "../../../commonComponents/ItemView";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ var BsChildCode = /*#__PURE__*/_createClass(function BsChildCode(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildCode);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["code"] && prv.push(next["code"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildCode;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildMoney implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildMoney;
@@ -0,0 +1,71 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import ItemView from "../../../commonComponents/ItemView";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ var BsChildMoney = /*#__PURE__*/_createClass(function BsChildMoney(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildMoney);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["money"] && prv.push(next["money"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildMoney;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildName implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildName;
@@ -0,0 +1,71 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import ItemView from "../../../commonComponents/ItemView";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ var BsChildName = /*#__PURE__*/_createClass(function BsChildName(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildName);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["name"] && prv.push(next["name"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildName;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildCode implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildCode;
@@ -0,0 +1,71 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import ItemView from "../../../commonComponents/ItemView";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
+ var BsChildCode = /*#__PURE__*/_createClass(function BsChildCode(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildCode);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["number"] && prv.push(next["number"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildCode;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildPic implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element[];
19
+ renderLog: (r: Record) => React.JSX.Element[] | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildPic;
@@ -0,0 +1,72 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ import React from "react";
9
+ import ItemView from "../../../commonComponents/ItemView";
10
+ import { BsGoodPic } from "../../Common";
11
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
12
+ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, BsChildPic);
15
+ _defineProperty(this, "name", void 0);
16
+ _defineProperty(this, "id", void 0);
17
+ _defineProperty(this, "sortField", void 0);
18
+ _defineProperty(this, "type", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
24
+ _defineProperty(this, "canSort", void 0);
25
+ _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "renderClient", function (record) {
28
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
+ id: _this.id,
30
+ label: _this.name,
31
+ value: _this.getComponentValue(record)
32
+ }) : null;
33
+ });
34
+ _defineProperty(this, "renderPc", function (value, record) {
35
+ var _BsGoodPic;
36
+ return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : "--";
37
+ });
38
+ _defineProperty(this, "renderLog", function (r) {
39
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
40
+ return _this.renderPc(undefined, r);
41
+ });
42
+ _defineProperty(this, "getComponentValue", function (r) {
43
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
44
+ next["pic"] && prv.push(next["pic"]);
45
+ return prv;
46
+ }, []);
47
+ return list;
48
+ });
49
+ _defineProperty(this, "renderExport", function (value, record) {
50
+ var _this$getComponentVal;
51
+ return (_this$getComponentVal = _this.getComponentValue(record).join(",")) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
52
+ });
53
+ _defineProperty(this, "editRender", function () {
54
+ return null;
55
+ });
56
+ _defineProperty(this, "filterConfig", function () {
57
+ return [];
58
+ });
59
+ this.name = options.name;
60
+ this.id = options.id;
61
+ this.sortField = options.id;
62
+ this.formField = options.id;
63
+ this.type = options.type;
64
+ this.componentConfig = options.componentConfig;
65
+ this.align = "left";
66
+ this.width = 200;
67
+ this.isCombinationComponent = false;
68
+ this.canSort = true;
69
+ this.dataType = "string";
70
+ this.children = [];
71
+ });
72
+ export default BsChildPic;