@kmkf-fe-packages/services-components 0.7.1 → 0.7.2
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 -1
- package/dist/esm/commonComponents/Wangwang/index.d.ts +2 -2
- package/dist/esm/components/Common/index.d.ts +5 -5
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- package/dist/esm/components/LogisticsInterception/index.d.ts +2 -1
- package/dist/esm/components/LogisticsInterception/index.js +5 -2
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/index.d.ts +52 -52
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare type WangwangProps = {
|
|
3
3
|
nick: string;
|
|
4
4
|
buyerOpenUid: string;
|
|
5
5
|
};
|
|
6
|
-
declare const Wangwang: (props: WangwangProps) =>
|
|
6
|
+
declare const Wangwang: (props: WangwangProps) => JSX.Element;
|
|
7
7
|
export default Wangwang;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare type getFormItemProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
title: string;
|
|
@@ -6,13 +6,13 @@ declare type getFormItemProps = {
|
|
|
6
6
|
required: boolean;
|
|
7
7
|
component: JSX.Element | string | null;
|
|
8
8
|
};
|
|
9
|
-
export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) =>
|
|
9
|
+
export declare const getFormItem: ({ name, title, rules, required, component }: getFormItemProps) => JSX.Element;
|
|
10
10
|
export declare const showImage: ({ item, type, index }: {
|
|
11
11
|
item: any;
|
|
12
12
|
type: string;
|
|
13
13
|
index: number;
|
|
14
|
-
}) =>
|
|
15
|
-
export declare const ShowTotalImage: ({ total, allImage, type }: any) =>
|
|
16
|
-
export declare const GoodImage: ({ list, type }: any) =>
|
|
14
|
+
}) => JSX.Element;
|
|
15
|
+
export declare const ShowTotalImage: ({ total, allImage, type }: any) => JSX.Element;
|
|
16
|
+
export declare const GoodImage: ({ list, type }: any) => JSX.Element | null;
|
|
17
17
|
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
18
18
|
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
|
|
3
3
|
export declare type ButtonType = typeof DateType[number];
|
|
4
4
|
export interface ApaasDate {
|
|
5
5
|
dateType?: ButtonType;
|
|
6
6
|
[propName: string]: any;
|
|
7
7
|
}
|
|
8
|
-
declare const Date: (props: ApaasDate) =>
|
|
8
|
+
declare const Date: (props: ApaasDate) => JSX.Element;
|
|
9
9
|
export default Date;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
|
|
3
3
|
export default ItemEncode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) =>
|
|
3
|
+
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
4
4
|
export default ItemId;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) =>
|
|
3
|
+
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
4
4
|
export default ItemSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExpressCompany: (props: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const ExpressCompany: (props: any) => JSX.Element;
|
|
3
3
|
export default ExpressCompany;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { ExpressData, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
3
|
+
import { ExpressData, ExpressInterceptData, LogisticsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
4
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
5
5
|
import InterceptAddress from "./InterceptAddress";
|
|
6
6
|
import InterceptType from "./InterceptType";
|
|
@@ -24,6 +24,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
24
24
|
expressCode: ExpressCode;
|
|
25
25
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
26
26
|
expressInterceptData: InstanceType<typeof ExpressInterceptData>;
|
|
27
|
+
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
27
28
|
effects: ComponentInterface["effects"];
|
|
28
29
|
constructor(options: PickOption);
|
|
29
30
|
renderClient: (record: any) => React.JSX.Element;
|
|
@@ -10,7 +10,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
10
10
|
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); }
|
|
11
11
|
import React from "react";
|
|
12
12
|
import { LogisticsInterception } from "@kmkf-fe-packages/basic-components";
|
|
13
|
-
import { ExpressData, ExpressInterceptData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
16
16
|
import InterceptAddress from "./InterceptAddress";
|
|
@@ -38,12 +38,13 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
38
38
|
_defineProperty(this, "expressCode", void 0);
|
|
39
39
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
40
40
|
_defineProperty(this, "expressInterceptData", void 0);
|
|
41
|
+
_defineProperty(this, "logisticsAddressData", void 0);
|
|
41
42
|
_defineProperty(this, "effects", void 0);
|
|
42
43
|
_defineProperty(this, "renderClient", function (record) {
|
|
43
44
|
return /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.renderClient(record), _this.expressCode.renderClient(record), _this.interceptSenderMobile.renderClient(record), _this.interceptType.renderClient(record), _this.interceptAddress.renderClient(record), _this.interceptLogisticsStatus.renderClient(record));
|
|
44
45
|
});
|
|
45
46
|
_defineProperty(this, "renderLog", function (record) {
|
|
46
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ": ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ": ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ": ", _this.interceptLogisticsStatus.renderLog(record))));
|
|
47
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, !isNull(_this.express.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.express.name, ": ", _this.express.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.expressCode.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.expressCode.name, ": ", _this.expressCode.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptSenderMobile.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptSenderMobile.name, ":", " ", _this.interceptSenderMobile.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptType.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptType.name, ": ", _this.interceptType.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptAddress.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptAddress.name, ":", " ", _this.interceptAddress.renderLog(record))), /*#__PURE__*/React.createElement("div", null, !isNull(_this.interceptLogisticsStatus.getComponentValue(record)) && /*#__PURE__*/React.createElement(React.Fragment, null, _this.interceptLogisticsStatus.name, ":", " ", _this.interceptLogisticsStatus.renderLog(record))));
|
|
47
48
|
});
|
|
48
49
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
50
|
return {
|
|
@@ -71,6 +72,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
71
72
|
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
|
|
72
73
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
73
74
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
75
|
+
logisticsAddressData: _this.logisticsAddressData.getAddressData(),
|
|
74
76
|
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
75
77
|
}))
|
|
76
78
|
});
|
|
@@ -92,6 +94,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
92
94
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
93
95
|
this.expressDateInstance = ExpressData.getInstance();
|
|
94
96
|
this.expressInterceptData = ExpressInterceptData.getInstance();
|
|
97
|
+
this.logisticsAddressData = LogisticsAddressData.getInstance();
|
|
95
98
|
this.interceptAddress = new InterceptAddress(options);
|
|
96
99
|
this.interceptType = new InterceptType(options);
|
|
97
100
|
this.interceptLogisticsStatus = new InterceptStatus(options);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Popover: ({ Overlay, ShowComponent }: any) =>
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
|
|
3
3
|
export default Popover;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) =>
|
|
3
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
4
4
|
export default ItemEncode;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
export { default as BasicInput } from
|
|
2
|
-
export { default as BasicAddress } from
|
|
3
|
-
export { default as BasicCascader } from
|
|
4
|
-
export { default as BasicCheckbox } from
|
|
5
|
-
export { default as BasicDataTime } from
|
|
6
|
-
export { default as BasicSelect } from
|
|
7
|
-
export { default as BasicRadio } from
|
|
8
|
-
export { default as BasicTextArea } from
|
|
9
|
-
export { default as BasicPicture } from
|
|
10
|
-
export { default as BasicMultSelect } from
|
|
11
|
-
export { default as BasicGrade } from
|
|
12
|
-
export { default as BasicRate } from
|
|
13
|
-
export { default as CommonDataTime } from
|
|
14
|
-
export { default as TradeId } from
|
|
15
|
-
export { default as ErpTradeId } from
|
|
16
|
-
export { default as ShopName } from
|
|
17
|
-
export { default as BuyerNick } from
|
|
18
|
-
export { default as ReceiverName } from
|
|
19
|
-
export { default as ReceiverMobile } from
|
|
20
|
-
export { default as ReceiverAddress } from
|
|
21
|
-
export { default as TradeDateTime } from
|
|
22
|
-
export { default as Logistics } from
|
|
23
|
-
export { default as ReturnLogistics } from
|
|
24
|
-
export { default as ActualPayment } from
|
|
25
|
-
export { default as ERemark } from
|
|
26
|
-
export { default as AliPay } from
|
|
27
|
-
export { default as ItemSelect } from
|
|
28
|
-
export { default as ItemId } from
|
|
29
|
-
export { default as ItemEnCode } from
|
|
30
|
-
export { default as SystemOrderNo } from
|
|
31
|
-
export { default as Ordinary } from
|
|
32
|
-
export { default as ThirdItemSelect } from
|
|
33
|
-
export { default as Payment } from
|
|
34
|
-
export { default as JstLogistics } from
|
|
35
|
-
export { default as JstItemSelect } from
|
|
36
|
-
export { default as JstSendGood } from
|
|
37
|
-
export { default as JstSupply } from
|
|
38
|
-
export { default as FlowStatusSelect } from
|
|
39
|
-
export { default as TemplateSelect } from
|
|
40
|
-
export { default as WorkOrderId } from
|
|
41
|
-
export { default as LogisticsInterception } from
|
|
42
|
-
export { default as PlatForm } from
|
|
43
|
-
export { default as ShopInput } from
|
|
44
|
-
export { default as Submitter } from
|
|
45
|
-
export { default as Handler } from
|
|
46
|
-
export { default as CompletedUser } from
|
|
47
|
-
export { factory } from
|
|
48
|
-
export { default as PlatformAvatar } from
|
|
49
|
-
export { default as PlatBuyer } from
|
|
50
|
-
export { default as ShopList } from
|
|
51
|
-
export { default as OperationLog } from
|
|
52
|
-
export { default as GetFormItem } from
|
|
1
|
+
export { default as BasicInput } from "./components/Input";
|
|
2
|
+
export { default as BasicAddress } from "./components/Address";
|
|
3
|
+
export { default as BasicCascader } from "./components/Cascader";
|
|
4
|
+
export { default as BasicCheckbox } from "./components/Checkbox";
|
|
5
|
+
export { default as BasicDataTime } from "./components/DataTime";
|
|
6
|
+
export { default as BasicSelect } from "./components/Select";
|
|
7
|
+
export { default as BasicRadio } from "./components/Radio";
|
|
8
|
+
export { default as BasicTextArea } from "./components/TextArea";
|
|
9
|
+
export { default as BasicPicture } from "./components/Picture";
|
|
10
|
+
export { default as BasicMultSelect } from "./components/MultSelect";
|
|
11
|
+
export { default as BasicGrade } from "./components/Grade";
|
|
12
|
+
export { default as BasicRate } from "./components/Rate";
|
|
13
|
+
export { default as CommonDataTime } from "./components/CommonDataTime";
|
|
14
|
+
export { default as TradeId } from "./components/TradeId";
|
|
15
|
+
export { default as ErpTradeId } from "./components/ErpTradeId";
|
|
16
|
+
export { default as ShopName } from "./components/ShopName";
|
|
17
|
+
export { default as BuyerNick } from "./components/BuyerNick";
|
|
18
|
+
export { default as ReceiverName } from "./components/ReceiverName";
|
|
19
|
+
export { default as ReceiverMobile } from "./components/ReceiverMobile";
|
|
20
|
+
export { default as ReceiverAddress } from "./components/ReceiverAddress";
|
|
21
|
+
export { default as TradeDateTime } from "./components/TradeDateTime";
|
|
22
|
+
export { default as Logistics } from "./components/Logistics";
|
|
23
|
+
export { default as ReturnLogistics } from "./components/ReturnLogistics";
|
|
24
|
+
export { default as ActualPayment } from "./components/ActualPayment";
|
|
25
|
+
export { default as ERemark } from "./components/Remark";
|
|
26
|
+
export { default as AliPay } from "./components/Alipay";
|
|
27
|
+
export { default as ItemSelect } from "./components/EItemSelect";
|
|
28
|
+
export { default as ItemId } from "./components/EItemId";
|
|
29
|
+
export { default as ItemEnCode } from "./components/EItemEnCode";
|
|
30
|
+
export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
31
|
+
export { default as Ordinary } from "./components/Ordinary";
|
|
32
|
+
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
33
|
+
export { default as Payment } from "./components/Payment";
|
|
34
|
+
export { default as JstLogistics } from "./components/JstLogistics";
|
|
35
|
+
export { default as JstItemSelect } from "./components/JstItemSelect";
|
|
36
|
+
export { default as JstSendGood } from "./components/JstSendGood";
|
|
37
|
+
export { default as JstSupply } from "./components/JstSupply";
|
|
38
|
+
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
39
|
+
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
40
|
+
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
41
|
+
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
42
|
+
export { default as PlatForm } from "./components/PlatForm";
|
|
43
|
+
export { default as ShopInput } from "./components/ShopInput";
|
|
44
|
+
export { default as Submitter } from "./components/Submitter";
|
|
45
|
+
export { default as Handler } from "./components/Handler";
|
|
46
|
+
export { default as CompletedUser } from "./components/CompletedUser";
|
|
47
|
+
export { factory } from "./factory";
|
|
48
|
+
export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
|
|
49
|
+
export { default as PlatBuyer } from "./commonComponents/PlatBuyer";
|
|
50
|
+
export { default as ShopList } from "./commonComponents/ShopList";
|
|
51
|
+
export { default as OperationLog } from "./commonComponents/OperationLog";
|
|
52
|
+
export { default as GetFormItem } from "./components/GetFormItem";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.7.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.2",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.2"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "4ec4655c2ba4a09c81697a679339e2e812d4fff3"
|
|
44
44
|
}
|