@kmkf-fe-packages/services-components 0.27.0-rc.2 → 0.27.1-test.0
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.
- package/README.md +1 -0
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +19 -9
- package/dist/esm/components/Common/index.d.ts +0 -1
- package/dist/esm/components/Common/index.js +3 -76
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +0 -6
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +3 -21
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -9
- package/dist/esm/components/LogisticsTrajectory/index.js +4 -25
- package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
- package/dist/esm/components/Payment/PaymentStatus.js +30 -30
- package/dist/esm/components/Select/index.d.ts +5 -5
- package/dist/esm/components/Select/index.js +14 -22
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -9
- package/dist/esm/index.d.ts +0 -2
- package/dist/esm/index.js +0 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -8
- package/package.json +4 -4
- package/dist/esm/components/CommonInput/index.d.ts +0 -34
- package/dist/esm/components/CommonInput/index.js +0 -105
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +0 -71
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +0 -71
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +0 -27
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +0 -71
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
- package/dist/esm/components/PaymentVoucherCode/index.js +0 -108
|
@@ -1,71 +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 ItemView from "../../commonComponents/ItemView";
|
|
10
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
-
var TrajectoryStatus = /*#__PURE__*/_createClass(function TrajectoryStatus(options) {
|
|
12
|
-
var _this = this;
|
|
13
|
-
_classCallCheck(this, TrajectoryStatus);
|
|
14
|
-
_defineProperty(this, "name", void 0);
|
|
15
|
-
_defineProperty(this, "parentId", void 0);
|
|
16
|
-
_defineProperty(this, "id", void 0);
|
|
17
|
-
_defineProperty(this, "sortField", void 0);
|
|
18
|
-
_defineProperty(this, "type", void 0);
|
|
19
|
-
_defineProperty(this, "rules", void 0);
|
|
20
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
21
|
-
_defineProperty(this, "align", void 0);
|
|
22
|
-
_defineProperty(this, "width", void 0);
|
|
23
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
24
|
-
_defineProperty(this, "formField", void 0);
|
|
25
|
-
_defineProperty(this, "canSort", void 0);
|
|
26
|
-
_defineProperty(this, "children", void 0);
|
|
27
|
-
_defineProperty(this, "dataType", void 0);
|
|
28
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
29
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
30
|
-
id: _this.id,
|
|
31
|
-
label: _this.name,
|
|
32
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
33
|
-
}) : null;
|
|
34
|
-
});
|
|
35
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
36
|
-
var _record$_this$id;
|
|
37
|
-
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
38
|
-
});
|
|
39
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
40
|
-
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
41
|
-
return _this.renderPc(undefined, r);
|
|
42
|
-
});
|
|
43
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
44
|
-
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
45
|
-
});
|
|
46
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
47
|
-
var _record$_this$id2;
|
|
48
|
-
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
49
|
-
});
|
|
50
|
-
_defineProperty(this, "editRender", function () {
|
|
51
|
-
return null;
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "filterConfig", function () {
|
|
54
|
-
return [];
|
|
55
|
-
});
|
|
56
|
-
this.name = options.name;
|
|
57
|
-
this.parentId = options.id;
|
|
58
|
-
this.id = "".concat(options.id);
|
|
59
|
-
this.sortField = "".concat(options.id);
|
|
60
|
-
this.formField = "".concat(options.id);
|
|
61
|
-
this.type = options.type;
|
|
62
|
-
this.componentConfig = options.componentConfig;
|
|
63
|
-
this.rules = [];
|
|
64
|
-
this.align = "left";
|
|
65
|
-
this.width = 200;
|
|
66
|
-
this.isCombinationComponent = false;
|
|
67
|
-
this.canSort = false;
|
|
68
|
-
this.dataType = "string";
|
|
69
|
-
this.children = [];
|
|
70
|
-
});
|
|
71
|
-
export default TrajectoryStatus;
|
|
@@ -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;
|
|
@@ -1,108 +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 _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
|
-
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
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
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; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
-
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); }
|
|
9
|
-
import React from "react";
|
|
10
|
-
import { ApaasInput } from "@kmkf-fe-packages/basic-components";
|
|
11
|
-
import GetFormItem from "../GetFormItem";
|
|
12
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { SYMBOL } from "../../constant";
|
|
15
|
-
import { AlipayBill } from "../Common/index";
|
|
16
|
-
var PaymentVoucherCode = /*#__PURE__*/_createClass(function PaymentVoucherCode(options) {
|
|
17
|
-
var _this = this;
|
|
18
|
-
_classCallCheck(this, PaymentVoucherCode);
|
|
19
|
-
_defineProperty(this, "name", void 0);
|
|
20
|
-
_defineProperty(this, "id", void 0);
|
|
21
|
-
_defineProperty(this, "sortField", void 0);
|
|
22
|
-
_defineProperty(this, "type", void 0);
|
|
23
|
-
_defineProperty(this, "rules", void 0);
|
|
24
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
25
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
-
_defineProperty(this, "formField", void 0);
|
|
27
|
-
_defineProperty(this, "canSort", void 0);
|
|
28
|
-
_defineProperty(this, "children", void 0);
|
|
29
|
-
_defineProperty(this, "dataType", void 0);
|
|
30
|
-
_defineProperty(this, "templateId", void 0);
|
|
31
|
-
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
32
|
-
_defineProperty(this, "effects", void 0);
|
|
33
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
34
|
-
var _this$effects;
|
|
35
|
-
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")])) return "--";
|
|
36
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
37
|
-
onClick: function onClick(e) {
|
|
38
|
-
return e.stopPropagation();
|
|
39
|
-
}
|
|
40
|
-
}, /*#__PURE__*/React.createElement(AlipayBill, {
|
|
41
|
-
value: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")],
|
|
42
|
-
platform: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.env
|
|
43
|
-
}));
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
46
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")])) return null;
|
|
47
|
-
return _this.renderPc(undefined, r);
|
|
48
|
-
});
|
|
49
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
50
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_paymentVoucherCode")];
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
53
|
-
var _record;
|
|
54
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_paymentVoucherCode")]) !== null && _record !== void 0 ? _record : "--";
|
|
55
|
-
});
|
|
56
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
57
|
-
var _this$effects2;
|
|
58
|
-
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
59
|
-
id: _this.id,
|
|
60
|
-
label: _this.name,
|
|
61
|
-
value: /*#__PURE__*/React.createElement(AlipayBill, {
|
|
62
|
-
value: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
63
|
-
platform: (_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env
|
|
64
|
-
})
|
|
65
|
-
}) : null;
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "editRender", function (p) {
|
|
68
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
69
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
70
|
-
title: _this.name,
|
|
71
|
-
name: _this.id,
|
|
72
|
-
rules: _this.rules,
|
|
73
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
|
-
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
|
-
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
76
|
-
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
77
|
-
placeholder: "\u81EA\u52A8\u83B7\u53D6\u65E0\u9700\u586B\u5199",
|
|
78
|
-
disabled: true
|
|
79
|
-
}))
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
83
|
-
return {
|
|
84
|
-
searchDefaultConditions: SYMBOL.like,
|
|
85
|
-
type: item.type,
|
|
86
|
-
id: "".concat(item.id, "_paymentVoucherCode"),
|
|
87
|
-
// 过滤组件id
|
|
88
|
-
name: item.name,
|
|
89
|
-
// 过滤组件名称
|
|
90
|
-
filterComponentType: "Input"
|
|
91
|
-
};
|
|
92
|
-
});
|
|
93
|
-
this.name = options.name;
|
|
94
|
-
this.id = options.id;
|
|
95
|
-
this.sortField = "".concat(options.id, "_paymentVoucherCode");
|
|
96
|
-
this.formField = "".concat(options.id, "_paymentVoucherCode");
|
|
97
|
-
this.type = options.type;
|
|
98
|
-
this.templateId = options.templateId;
|
|
99
|
-
this.componentConfig = options.componentConfig;
|
|
100
|
-
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
101
|
-
this.rules = [];
|
|
102
|
-
this.isCombinationComponent = false;
|
|
103
|
-
this.canSort = false;
|
|
104
|
-
this.children = [];
|
|
105
|
-
this.dataType = "string";
|
|
106
|
-
this.effects = options.effects;
|
|
107
|
-
});
|
|
108
|
-
export default PaymentVoucherCode;
|