@kmkf-fe-packages/services-components 0.26.1-beta.9 → 0.26.2-alpha.1

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/README.md +2 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +7 -0
  3. package/dist/esm/commonComponents/GlobalContext/index.js +104 -0
  4. package/dist/esm/commonComponents/SelectMark/index.js +6 -2
  5. package/dist/esm/components/BuyerNick/index.d.ts +3 -3
  6. package/dist/esm/components/BuyerNick/index.js +19 -9
  7. package/dist/esm/components/Common/index.d.ts +0 -1
  8. package/dist/esm/components/Common/index.js +3 -74
  9. package/dist/esm/components/CompletedUser/index.js +1 -1
  10. package/dist/esm/components/FlowMarkSelect/index.js +3 -2
  11. package/dist/esm/components/FlowStatusSelect/index.js +1 -0
  12. package/dist/esm/components/FlowTag/index.js +1 -1
  13. package/dist/esm/components/{LogisticsMoreInterception/InterceptType.d.ts → FlowWorkOrderStatus/index.d.ts} +12 -16
  14. package/dist/esm/components/{PaymentVoucherCode → FlowWorkOrderStatus}/index.js +85 -46
  15. package/dist/esm/components/Handler/index.js +1 -1
  16. package/dist/esm/components/HandlerDeadLine/index.js +0 -1
  17. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
  18. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
  19. package/dist/esm/components/LogisticsMoreTrajectory/index.js +2 -2
  20. package/dist/esm/components/MultSelect/index.d.ts +4 -4
  21. package/dist/esm/components/MultSelect/index.js +13 -13
  22. package/dist/esm/components/NodeDeadLine/index.js +0 -1
  23. package/dist/esm/components/NodeInput/index.d.ts +24 -0
  24. package/dist/esm/components/{LogisticsMoreInterception/interceptItem.js → NodeInput/index.js} +24 -47
  25. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  26. package/dist/esm/components/Payment/PaymentStatus.js +30 -30
  27. package/dist/esm/components/PlatForm/index.js +1 -1
  28. package/dist/esm/components/ShopInput/index.js +1 -1
  29. package/dist/esm/constant.js +13 -12
  30. package/dist/esm/factory.d.ts +2 -2
  31. package/dist/esm/factory.js +11 -10
  32. package/dist/esm/index.d.ts +4 -4
  33. package/dist/esm/index.js +4 -4
  34. package/dist/esm/service/api.d.ts +7 -1
  35. package/dist/esm/service/api.js +238 -5
  36. package/dist/esm/service/request.js +9 -1
  37. package/dist/esm/type.d.ts +1 -1
  38. package/package.json +4 -4
  39. package/dist/esm/components/CommonInput/index.d.ts +0 -44
  40. package/dist/esm/components/CommonInput/index.js +0 -146
  41. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +0 -31
  42. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +0 -88
  43. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +0 -46
  44. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +0 -111
  45. package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +0 -96
  46. package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +0 -5
  47. package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +0 -55
  48. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +0 -69
  49. package/dist/esm/components/LogisticsMoreInterception/index.js +0 -184
  50. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +0 -39
  51. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +0 -88
  52. package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +0 -34
  53. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +0 -35
  54. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +0 -82
  55. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +0 -34
  56. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +0 -81
  57. package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
@@ -1,81 +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 InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
12
- var _this = this;
13
- _classCallCheck(this, InterceptSnapshot);
14
- _defineProperty(this, "name", void 0);
15
- _defineProperty(this, "id", void 0);
16
- _defineProperty(this, "type", void 0);
17
- _defineProperty(this, "rules", void 0);
18
- _defineProperty(this, "componentConfig", void 0);
19
- _defineProperty(this, "effects", void 0);
20
- _defineProperty(this, "align", void 0);
21
- _defineProperty(this, "width", void 0);
22
- _defineProperty(this, "isCombinationComponent", void 0);
23
- _defineProperty(this, "sortField", void 0);
24
- _defineProperty(this, "formField", void 0);
25
- _defineProperty(this, "canSort", void 0);
26
- _defineProperty(this, "dataType", void 0);
27
- _defineProperty(this, "children", void 0);
28
- _defineProperty(this, "renderSnapshot", function (record) {
29
- var snapshotList = record[_this.id] || [];
30
- return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
31
- return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
32
- }));
33
- });
34
- _defineProperty(this, "getComponentValue", function (r) {
35
- var _r$_this$id;
36
- return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(",");
37
- });
38
- _defineProperty(this, "renderClient", function () {
39
- return null;
40
- });
41
- _defineProperty(this, "renderPc", function (value, record) {
42
- return !isNull(record[_this.id]) ? _this.renderSnapshot(record) : "--";
43
- });
44
- _defineProperty(this, "renderLog", function () {
45
- return null;
46
- });
47
- _defineProperty(this, "renderExport", function (value, record) {
48
- var _this$getComponentVal;
49
- return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
50
- });
51
- _defineProperty(this, "editRender", function () {
52
- return null;
53
- });
54
- _defineProperty(this, "filterConfig", function (item) {
55
- return {
56
- searchDefaultConditions: SYMBOL.like,
57
- type: item.type,
58
- id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
59
- name: "".concat(item.name, "-\u5FEB\u7167"),
60
- filterComponentType: "Input"
61
- // formatFilterValue: (input: string) => {
62
- // return batchInput(input);
63
- // },
64
- };
65
- });
66
- this.name = "快照";
67
- this.id = "".concat(options.id, "_logisticsInterceptSnapshotList");
68
- this.formField = "".concat(options.id, "_logisticsInterceptSnapshotList");
69
- this.sortField = "".concat(options.id, "_logisticsInterceptSnapshotList");
70
- this.dataType = "object";
71
- this.type = options.type;
72
- this.componentConfig = options.componentConfig;
73
- this.rules = [];
74
- this.align = "left";
75
- this.width = 200;
76
- this.isCombinationComponent = false;
77
- this.canSort = false;
78
- this.children = [];
79
- this.effects = options === null || options === void 0 ? void 0 : options.effects;
80
- });
81
- export default InterceptSnapshot;
@@ -1,33 +0,0 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
- import React from "react";
3
- declare class PaymentVoucherCode implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- sortField: string;
7
- type: string;
8
- rules: any[];
9
- componentConfig: ComponentInterface["componentConfig"];
10
- isCombinationComponent: boolean;
11
- formField: string;
12
- canSort: boolean;
13
- children: ComponentInterface[];
14
- dataType: ComponentInterface["dataType"];
15
- templateId?: string;
16
- workOrderUniqueKey?: string;
17
- effects: ComponentInterface["effects"];
18
- constructor(options: PickOption);
19
- renderPc: (value: any, record: Record) => React.JSX.Element | "--";
20
- renderLog: (r: Record) => React.JSX.Element | "--" | null;
21
- getComponentValue: (r: Record) => any;
22
- renderExport: (value: any, record: Record) => any;
23
- renderClient: (record: Record) => React.JSX.Element | null;
24
- editRender: (p: any) => React.JSX.Element;
25
- filterConfig: (item: ColumnConfig) => {
26
- searchDefaultConditions: "like";
27
- type: string;
28
- id: string;
29
- name: string;
30
- filterComponentType: "Input";
31
- };
32
- }
33
- export default PaymentVoucherCode;