@kmkf-fe-packages/services-components 0.25.0-alpha.0 → 0.25.0-alpha.3

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 (27) hide show
  1. package/dist/esm/components/BS/BsLogistics/index.d.ts +3 -2
  2. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
  3. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
  4. package/dist/esm/constant.js +13 -12
  5. package/dist/esm/factory.d.ts +2 -2
  6. package/dist/esm/factory.js +1 -3
  7. package/dist/esm/index.d.ts +0 -1
  8. package/dist/esm/index.js +0 -1
  9. package/package.json +4 -4
  10. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +0 -31
  11. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +0 -87
  12. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +0 -45
  13. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +0 -114
  14. package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +0 -43
  15. package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +0 -99
  16. package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +0 -5
  17. package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +0 -55
  18. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -69
  19. package/dist/esm/components/LogisticsMoreInterception/index.js +0 -177
  20. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +0 -39
  21. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +0 -88
  22. package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +0 -34
  23. package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +0 -78
  24. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +0 -35
  25. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +0 -82
  26. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +0 -35
  27. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +0 -79
@@ -1,82 +0,0 @@
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
- import { SYMBOL } from "../../constant";
11
- var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
12
- var _this = this;
13
- _classCallCheck(this, InterceptSenderMobile);
14
- _defineProperty(this, "name", void 0);
15
- _defineProperty(this, "id", void 0);
16
- _defineProperty(this, "companyId", void 0);
17
- _defineProperty(this, "type", void 0);
18
- _defineProperty(this, "rules", void 0);
19
- _defineProperty(this, "componentConfig", void 0);
20
- _defineProperty(this, "effects", void 0);
21
- _defineProperty(this, "align", void 0);
22
- _defineProperty(this, "width", void 0);
23
- _defineProperty(this, "isCombinationComponent", void 0);
24
- _defineProperty(this, "sortField", void 0);
25
- _defineProperty(this, "formField", void 0);
26
- _defineProperty(this, "canSort", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
- _defineProperty(this, "children", void 0);
29
- _defineProperty(this, "renderMobile", function (record) {
30
- var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
31
- return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
32
- return /*#__PURE__*/React.createElement("div", null, logisticsInterceptList.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", ":", item.interceptSenderMobile);
33
- }));
34
- });
35
- _defineProperty(this, "getComponentValue", function (r) {
36
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")].map(function (t) {
37
- return t.interceptSenderMobile;
38
- }).join(",");
39
- });
40
- _defineProperty(this, "renderClient", function () {
41
- return null;
42
- });
43
- _defineProperty(this, "renderPc", function (value, record) {
44
- var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")];
45
- return !isNull(logisticsInterceptList) ? _this.renderMobile(record) : null;
46
- });
47
- _defineProperty(this, "renderLog", function () {
48
- return null;
49
- });
50
- _defineProperty(this, "renderExport", function (value, record) {
51
- var _this$getComponentVal;
52
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
53
- });
54
- _defineProperty(this, "editRender", function () {
55
- return null;
56
- });
57
- _defineProperty(this, "filterConfig", function (item) {
58
- return {
59
- searchDefaultConditions: SYMBOL.like,
60
- type: item.type,
61
- id: "".concat(item.id, "_logisticsInterceptList"),
62
- name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
- filterComponentType: "Input"
64
- };
65
- });
66
- this.name = "发件人手机号";
67
- this.id = options.id;
68
- this.companyId = "".concat(options.id);
69
- this.formField = "".concat(options.id);
70
- this.sortField = "".concat(options.id);
71
- this.dataType = "string";
72
- this.type = options.type;
73
- this.componentConfig = options.componentConfig;
74
- this.rules = [];
75
- this.align = "left";
76
- this.width = 200;
77
- this.isCombinationComponent = false;
78
- this.canSort = true;
79
- this.children = [];
80
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
- });
82
- export default InterceptSenderMobile;
@@ -1,35 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class InterceptSnapshot implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- type: string;
7
- rules: any[];
8
- componentConfig: ComponentInterface["componentConfig"];
9
- effects: ComponentInterface["effects"];
10
- align: ALignType;
11
- width: number;
12
- isCombinationComponent: boolean;
13
- sortField: string;
14
- formField: string;
15
- canSort: boolean;
16
- dataType: ComponentInterface["dataType"];
17
- children: ComponentInterface[];
18
- constructor(options: PickOption);
19
- renderSnapshot: (record: any) => React.JSX.Element;
20
- getComponentValue: (r: Record) => any;
21
- renderClient: () => null;
22
- renderPc: (value: any, record: Record) => React.JSX.Element;
23
- renderLog: () => null;
24
- renderExport: (value: any, record: Record) => any;
25
- editRender: () => null;
26
- filterConfig: (item: ColumnConfig) => {
27
- searchDefaultConditions: "in";
28
- type: string;
29
- id: string;
30
- name: string;
31
- filterComponentType: "Input";
32
- formatFilterValue: (input: string) => string | string[];
33
- };
34
- }
35
- export default InterceptSnapshot;
@@ -1,79 +0,0 @@
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 { SYMBOL, batchInput } from "../../constant";
10
- var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
11
- var _this = this;
12
- _classCallCheck(this, InterceptSnapshot);
13
- _defineProperty(this, "name", void 0);
14
- _defineProperty(this, "id", void 0);
15
- _defineProperty(this, "type", void 0);
16
- _defineProperty(this, "rules", void 0);
17
- _defineProperty(this, "componentConfig", void 0);
18
- _defineProperty(this, "effects", void 0);
19
- _defineProperty(this, "align", void 0);
20
- _defineProperty(this, "width", void 0);
21
- _defineProperty(this, "isCombinationComponent", void 0);
22
- _defineProperty(this, "sortField", void 0);
23
- _defineProperty(this, "formField", void 0);
24
- _defineProperty(this, "canSort", void 0);
25
- _defineProperty(this, "dataType", void 0);
26
- _defineProperty(this, "children", void 0);
27
- _defineProperty(this, "renderSnapshot", function (record) {
28
- var logisticsInterceptSnapshotList = record[_this.id] || [];
29
- return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptSnapshotList.map(function (item, index) {
30
- return /*#__PURE__*/React.createElement("div", null, logisticsInterceptSnapshotList.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", ":", item);
31
- }));
32
- });
33
- _defineProperty(this, "getComponentValue", function (r) {
34
- return r === null || r === void 0 ? void 0 : r[_this.id].join(",");
35
- });
36
- _defineProperty(this, "renderClient", function () {
37
- return null;
38
- });
39
- _defineProperty(this, "renderPc", function (value, record) {
40
- return _this.renderSnapshot(record);
41
- });
42
- _defineProperty(this, "renderLog", function () {
43
- return null;
44
- });
45
- _defineProperty(this, "renderExport", function (value, record) {
46
- var _this$getComponentVal;
47
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
48
- });
49
- _defineProperty(this, "editRender", function () {
50
- return null;
51
- });
52
- _defineProperty(this, "filterConfig", function (item) {
53
- return {
54
- searchDefaultConditions: SYMBOL.in,
55
- type: item.type,
56
- id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
57
- name: "".concat(item.name, "-\u5FEB\u7167"),
58
- filterComponentType: "Input",
59
- formatFilterValue: function formatFilterValue(input) {
60
- return batchInput(input);
61
- }
62
- };
63
- });
64
- this.name = "快照";
65
- this.id = "".concat(options.id, "_logisticsInterceptSnapshotList");
66
- this.formField = "".concat(options.id, "_logisticsInterceptSnapshotList");
67
- this.sortField = "".concat(options.id, "_logisticsInterceptSnapshotList");
68
- this.dataType = "object";
69
- this.type = options.type;
70
- this.componentConfig = options.componentConfig;
71
- this.rules = [];
72
- this.align = "left";
73
- this.width = 200;
74
- this.isCombinationComponent = false;
75
- this.canSort = false;
76
- this.children = [];
77
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
78
- });
79
- export default InterceptSnapshot;