@kmkf-fe-packages/services-components 0.7.15-alpha.30 → 0.7.15-alpha.31
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/dist/esm/components/Cascader/index.d.ts +1 -0
- package/dist/esm/components/Cascader/index.js +2 -0
- 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/JST/JstLogistics/index.js +25 -8
- package/dist/esm/components/Popover/index.d.ts +2 -2
- package/dist/esm/components/PostIng/index.js +2 -2
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +2 -3
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -28,6 +28,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
28
28
|
_defineProperty(this, "canSort", void 0);
|
|
29
29
|
_defineProperty(this, "children", void 0);
|
|
30
30
|
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "format", void 0);
|
|
31
32
|
_defineProperty(this, "getValue", function (value) {
|
|
32
33
|
var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
|
|
33
34
|
return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
|
|
@@ -140,6 +141,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
140
141
|
this.isCombinationComponent = false;
|
|
141
142
|
this.canSort = true;
|
|
142
143
|
this.dataType = 'array';
|
|
144
|
+
this.format = 'cascader';
|
|
143
145
|
}
|
|
144
146
|
|
|
145
147
|
/**
|
|
@@ -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;
|
|
@@ -15,8 +15,20 @@ import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
|
+
var typeMap = {
|
|
19
|
+
JST_LOGISTICS: {
|
|
20
|
+
key: "jstItemList",
|
|
21
|
+
name: "jst"
|
|
22
|
+
},
|
|
23
|
+
BS_LOGISTICS: {
|
|
24
|
+
key: "bsLogisticsList",
|
|
25
|
+
name: "bs"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
18
28
|
var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
19
29
|
var _this = this,
|
|
30
|
+
_typeMap$options$type,
|
|
31
|
+
_typeMap$options$type2,
|
|
20
32
|
_this$componentConfig3;
|
|
21
33
|
_classCallCheck(this, JstLogistics);
|
|
22
34
|
_defineProperty(this, "name", void 0);
|
|
@@ -46,7 +58,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
46
58
|
}) : null;
|
|
47
59
|
});
|
|
48
60
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
49
|
-
var
|
|
61
|
+
var _typeMap$_this$type;
|
|
62
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
|
|
50
63
|
//兼容多个商品
|
|
51
64
|
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
52
65
|
list: list,
|
|
@@ -54,15 +67,18 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
54
67
|
});
|
|
55
68
|
});
|
|
56
69
|
_defineProperty(this, "renderLog", function (r) {
|
|
57
|
-
var
|
|
70
|
+
var _typeMap$_this$type2;
|
|
71
|
+
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
|
|
58
72
|
if (isNull(list)) return null;
|
|
59
73
|
return _this.renderPc(undefined, r);
|
|
60
74
|
});
|
|
61
75
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
62
|
-
|
|
76
|
+
var _typeMap$_this$type3;
|
|
77
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
63
78
|
});
|
|
64
79
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
65
|
-
var
|
|
80
|
+
var _typeMap$_this$type4;
|
|
81
|
+
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
66
82
|
return (list || []).map(function (item) {
|
|
67
83
|
return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
|
|
68
84
|
}).join(",");
|
|
@@ -82,11 +98,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
82
98
|
});
|
|
83
99
|
});
|
|
84
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
101
|
+
var _typeMap$_this$type5, _typeMap$_this$type6;
|
|
85
102
|
return [{
|
|
86
103
|
searchDefaultConditions: SYMBOL.like,
|
|
87
104
|
type: item.type,
|
|
88
105
|
id: "".concat(item.id, "_logisticsCode"),
|
|
89
|
-
name: "
|
|
106
|
+
name: "".concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name, "\u7269\u6D41\u5355\u53F7"),
|
|
90
107
|
filterComponentType: "Input",
|
|
91
108
|
filterFn: function filterFn(value) {
|
|
92
109
|
return function (i) {
|
|
@@ -97,7 +114,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
97
114
|
searchDefaultConditions: SYMBOL.in,
|
|
98
115
|
type: item.type,
|
|
99
116
|
id: "".concat(item.id, "_logisticsCompany"),
|
|
100
|
-
name: "
|
|
117
|
+
name: "".concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.name, "\u7269\u6D41\u516C\u53F8"),
|
|
101
118
|
filterComponentType: "MultipleSelect",
|
|
102
119
|
props: {
|
|
103
120
|
options: _this.expressDateInstance.getExpressData() || []
|
|
@@ -116,8 +133,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
|
|
|
116
133
|
});
|
|
117
134
|
this.name = options.name;
|
|
118
135
|
this.id = options.id;
|
|
119
|
-
this.sortField = "".concat(options.id, "
|
|
120
|
-
this.formField = "".concat(options.id, "
|
|
136
|
+
this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
|
|
137
|
+
this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
|
|
121
138
|
this.type = options.type;
|
|
122
139
|
this.componentConfig = options.componentConfig;
|
|
123
140
|
this.isCombinationComponent = false;
|
|
@@ -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;
|
|
@@ -11,7 +11,7 @@ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
+
import { AddressData, BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var typeMap = {
|
|
17
17
|
POSTING: {
|
|
@@ -199,7 +199,7 @@ var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
|
199
199
|
this.canSort = true;
|
|
200
200
|
this.children = [];
|
|
201
201
|
this.dataType = "string";
|
|
202
|
-
this.addressDateInstance = AddressData.getInstance();
|
|
202
|
+
this.addressDateInstance = options.type === "BS_POSTING" ? BsAddressData.getInstance() : AddressData.getInstance();
|
|
203
203
|
this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
|
|
204
204
|
validator: function validator(_, value) {
|
|
205
205
|
var _value$postingAddress;
|
|
@@ -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/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => JstLogistics | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsExchange | BsReissue | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory,
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -62,8 +62,6 @@ export var factory = function factory(type, options) {
|
|
|
62
62
|
return new TradeDateTime(options);
|
|
63
63
|
case "EXPRESS_LOGISTICS_SELECT":
|
|
64
64
|
return new Logistics(options);
|
|
65
|
-
case "BS_LOGISTICS":
|
|
66
|
-
return new BsLogistics(options);
|
|
67
65
|
case "RETURN_LOGISTICS_SELECT":
|
|
68
66
|
return new ReturnLogistics(options);
|
|
69
67
|
case "ACTUAL_PAYMENT":
|
|
@@ -106,6 +104,7 @@ export var factory = function factory(type, options) {
|
|
|
106
104
|
case "TEMPLATE_ID_INPUT":
|
|
107
105
|
return new TemplateSelect(options);
|
|
108
106
|
case "JST_LOGISTICS":
|
|
107
|
+
case "BS_LOGISTICS":
|
|
109
108
|
return new JstLogistics(options);
|
|
110
109
|
case "JST_ITEM_SELECT_THIRD":
|
|
111
110
|
return new JstItemSelect(options);
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export interface ComponentInterface {
|
|
|
33
33
|
width?: number;
|
|
34
34
|
align?: ALignType;
|
|
35
35
|
dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
|
|
36
|
-
format?: "dateTime" | "date" | "time";
|
|
36
|
+
format?: "dateTime" | "date" | "time" | "cascader";
|
|
37
37
|
options?: Array<any>;
|
|
38
38
|
/**
|
|
39
39
|
* @description 组件下标
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.31",
|
|
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.15-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.31",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.31"
|
|
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": "30b72a10645bafc21728ce18aa10a438b1c1d808"
|
|
44
44
|
}
|