@kmkf-fe-packages/services-components 0.7.14-alpha.9 → 0.7.15-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.
@@ -1,104 +1,118 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, 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 } from "./index";
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, BsSendGood, BsLogistics } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
5
- case 'PLATFORM_INPUT':
5
+ case "PLATFORM_INPUT":
6
6
  return new PlatForm();
7
- case 'SHOP_INPUT':
7
+ case "SHOP_INPUT":
8
8
  return new ShopInput(options);
9
- case 'OPERATOR_INPUT':
9
+ case "OPERATOR_INPUT":
10
10
  return new Submitter(options);
11
- case 'HANDLER_INPUT':
11
+ case "HANDLER_INPUT":
12
12
  return new Handler(options);
13
- case 'COMPLETED_USER_INPUT':
13
+ case "COMPLETED_USER_INPUT":
14
14
  return new CompletedUser(options);
15
- case 'INPUT':
15
+ case "INPUT":
16
16
  return new BasicInput(options);
17
- case 'RADIO':
17
+ case "RADIO":
18
18
  return new BasicRadio(options);
19
- case 'TEXTAREA':
19
+ case "TEXTAREA":
20
20
  return new BasicTextArea(options);
21
- case 'CHECKBOX':
21
+ case "CHECKBOX":
22
22
  return new BasicCheckbox(options);
23
- case 'DATETIME':
23
+ case "DATETIME":
24
24
  return new BasicDataTime(options);
25
- case 'SELECT':
25
+ case "SELECT":
26
26
  return new BasicSelect(options);
27
- case 'PICTURE':
27
+ case "PICTURE":
28
28
  return new BasicPicture(options);
29
- case 'BASIC_MULT_SELECT':
29
+ case "BASIC_MULT_SELECT":
30
30
  return new BasicMultSelect(options);
31
- case 'MULT_SELECT':
31
+ case "MULT_SELECT":
32
32
  return new BasicCascader(options);
33
- case 'BASIC_ADDRESS':
33
+ case "BASIC_ADDRESS":
34
34
  return new BasicAddress(options);
35
- case 'BASIC_GRADE':
35
+ case "BASIC_GRADE":
36
36
  return new BasicGrade(options);
37
- case 'RATE':
37
+ case "RATE":
38
38
  return new BasicRate(options);
39
- case 'SHOP_NAME_INPUT':
39
+ case "FILE":
40
+ return new BasicFile(options);
41
+ case "POSTING":
42
+ return new BasicPosting(options);
43
+ case "SHOP_NAME_INPUT":
40
44
  return new ShopName(options);
41
- case 'TRADE_ID_INPUT':
45
+ case "TRADE_ID_INPUT":
42
46
  return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
43
- case 'BUYER_NICK_INPUT':
47
+ case "BUYER_NICK_INPUT":
44
48
  return new BuyerNick(options);
45
- case 'RECEIVER_NAME_INPUT':
49
+ case "RECEIVER_NAME_INPUT":
46
50
  return new ReceiverName(options);
47
- case 'RECEIVER_MOBILE_INPUT':
51
+ case "RECEIVER_MOBILE_INPUT":
48
52
  return new ReceiverMobile(options);
49
- case 'RECEIVER_ADDRESS_INPUT':
53
+ case "RECEIVER_ADDRESS_INPUT":
50
54
  return new ReceiverAddress(options);
51
- case 'TRADE_CREATE_DATETIME':
52
- case 'TRADE_PAYMENT_DATETIME':
53
- case 'TRADE_DELIVERY_DATETIME':
54
- case 'TRADE_CLOSING_DATETIME':
55
+ case "TRADE_CREATE_DATETIME":
56
+ case "TRADE_PAYMENT_DATETIME":
57
+ case "TRADE_DELIVERY_DATETIME":
58
+ case "TRADE_CLOSING_DATETIME":
59
+ case "BS_SIGNING_TIME":
60
+ case "BS_SEND_TIME":
61
+ case "BS_TRADE_PAYMENT_TIME":
55
62
  return new TradeDateTime(options);
56
- case 'EXPRESS_LOGISTICS_SELECT':
63
+ case "EXPRESS_LOGISTICS_SELECT":
57
64
  return new Logistics(options);
58
- case 'RETURN_LOGISTICS_SELECT':
65
+ case "BS_LOGISTICS":
66
+ return new BsLogistics(options);
67
+ case "RETURN_LOGISTICS_SELECT":
59
68
  return new ReturnLogistics(options);
60
- case 'ACTUAL_PAYMENT':
69
+ case "ACTUAL_PAYMENT":
70
+ case "BS_NET_RECEIPTS":
71
+ case "BS_DEPOSIT":
72
+ case "BS_PACKAGE_WEIGHT":
61
73
  return new ActualPayment(options);
62
- case 'REMARK_INPUT':
74
+ case "REMARK_INPUT":
63
75
  return new ERemark(options);
64
- case 'ITEM_SELECT':
76
+ case "ITEM_SELECT":
65
77
  return new ItemSelect(options);
66
- case 'ITEM_ID':
78
+ case "ITEM_ID":
67
79
  return new ItemId(options);
68
- case 'ITEM_ENCODE':
80
+ case "ITEM_ENCODE":
69
81
  return new ItemEnCode(options);
70
- case 'ALI_PAY_INPUT':
82
+ case "ALI_PAY_INPUT":
71
83
  return new AliPay(options);
72
- case 'ORDINARY_INVOICE':
84
+ case "ORDINARY_INVOICE":
73
85
  return new Ordinary(options);
74
- case 'ITEM_SELECT_THIRD':
86
+ case "ITEM_SELECT_THIRD":
75
87
  return new ThirdItemSelect(options);
76
- case 'ENTERPRISE_PAYMENT':
88
+ case "ENTERPRISE_PAYMENT":
77
89
  return new Payment(options);
78
- case 'SYSTEM_ORDER_NO':
90
+ case "SYSTEM_ORDER_NO":
79
91
  return new SystemOrderNo(options);
80
- case 'LOGISTICS_INTERCEPTION':
92
+ case "LOGISTICS_INTERCEPTION":
81
93
  return new LogisticsInterception(options);
82
- case 'WORK_ORDER_ID_INPUT':
94
+ case "WORK_ORDER_ID_INPUT":
83
95
  return new WorkOrderId(options);
84
- case 'FLOW_STATUS_SELECT':
96
+ case "FLOW_STATUS_SELECT":
85
97
  return new FlowStatusSelect(options);
86
- case 'COMPLETED_DATETIME':
98
+ case "COMPLETED_DATETIME":
87
99
  return new CommonDataTime(options);
88
- case 'CREATED_DATETIME':
100
+ case "CREATED_DATETIME":
89
101
  return new CommonDataTime(options);
90
- case 'UPDATE_DATETIME':
102
+ case "UPDATE_DATETIME":
91
103
  return new CommonDataTime(options);
92
- case 'TEMPLATE_ID_INPUT':
104
+ case "TEMPLATE_ID_INPUT":
93
105
  return new TemplateSelect(options);
94
- case 'JST_LOGISTICS':
106
+ case "JST_LOGISTICS":
95
107
  return new JstLogistics(options);
96
- case 'JST_ITEM_SELECT_THIRD':
108
+ case "JST_ITEM_SELECT_THIRD":
97
109
  return new JstItemSelect(options);
98
- case 'JST_SUPPLY':
110
+ case "JST_SUPPLY":
99
111
  return new JstSupply(options);
100
- case 'JST_SEND_GOOD':
112
+ case "JST_SEND_GOOD":
101
113
  return new JstSendGood(options);
114
+ case "BS_SEND_GOOD":
115
+ return new BsSendGood(options);
102
116
  default:
103
117
  return new BasicInput(options);
104
118
  }
@@ -10,6 +10,8 @@ export { default as BasicPicture } from "./components/Picture";
10
10
  export { default as BasicMultSelect } from "./components/MultSelect";
11
11
  export { default as BasicGrade } from "./components/Grade";
12
12
  export { default as BasicRate } from "./components/Rate";
13
+ export { default as BasicFile } from "./components/File";
14
+ export { default as BasicPosting } from "./components/PostIng";
13
15
  export { default as CommonDataTime } from "./components/CommonDataTime";
14
16
  export { default as TradeId } from "./components/TradeId";
15
17
  export { default as ErpTradeId } from "./components/ErpTradeId";
@@ -35,6 +37,8 @@ export { default as JstLogistics } from "./components/JstLogistics";
35
37
  export { default as JstItemSelect } from "./components/JstItemSelect";
36
38
  export { default as JstSendGood } from "./components/JstSendGood";
37
39
  export { default as JstSupply } from "./components/JstSupply";
40
+ export { default as BsSendGood } from "./components/BsSendGood";
41
+ export { default as BsLogistics } from "./components/BsLogistics";
38
42
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
39
43
  export { default as TemplateSelect } from "./components/TemplateSelect";
40
44
  export { default as WorkOrderId } from "./components/WorkOrderId";
package/dist/esm/index.js CHANGED
@@ -10,6 +10,8 @@ export { default as BasicPicture } from "./components/Picture";
10
10
  export { default as BasicMultSelect } from "./components/MultSelect";
11
11
  export { default as BasicGrade } from "./components/Grade";
12
12
  export { default as BasicRate } from "./components/Rate";
13
+ export { default as BasicFile } from "./components/File";
14
+ export { default as BasicPosting } from "./components/PostIng";
13
15
  export { default as CommonDataTime } from "./components/CommonDataTime";
14
16
  export { default as TradeId } from "./components/TradeId";
15
17
  export { default as ErpTradeId } from "./components/ErpTradeId";
@@ -35,6 +37,8 @@ export { default as JstLogistics } from "./components/JstLogistics";
35
37
  export { default as JstItemSelect } from "./components/JstItemSelect";
36
38
  export { default as JstSendGood } from "./components/JstSendGood";
37
39
  export { default as JstSupply } from "./components/JstSupply";
40
+ export { default as BsSendGood } from "./components/BsSendGood";
41
+ export { default as BsLogistics } from "./components/BsLogistics";
38
42
  export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
39
43
  export { default as TemplateSelect } from "./components/TemplateSelect";
40
44
  export { default as WorkOrderId } from "./components/WorkOrderId";
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { FormInstance } from "antd";
3
- import { SYMBOL } from './constant';
3
+ import { SYMBOL } from "./constant";
4
4
  export declare type DataType = "string" | "number" | "array" | "dateArray" | "date" | "tradeId";
5
5
  export declare type ALignType = "left" | "right" | "center";
6
6
  export declare type QuerySymbol = keyof typeof SYMBOL;
@@ -32,8 +32,8 @@ export interface ComponentInterface {
32
32
  rules?: any[];
33
33
  width?: number;
34
34
  align?: ALignType;
35
- dataType: 'string' | 'number' | 'boolean' | 'array' | 'range' | 'object';
36
- format?: 'dateTime' | 'date' | 'time';
35
+ dataType: "string" | "number" | "boolean" | "array" | "range" | "object";
36
+ format?: "dateTime" | "date" | "time";
37
37
  options?: Array<any>;
38
38
  /**
39
39
  * @description 组件下标
@@ -96,6 +96,14 @@ export interface ComponentInterface {
96
96
  * @description 输入框是否是数字类型
97
97
  */
98
98
  isNumber?: boolean;
99
+ /**
100
+ * @description 输入框是否是邮箱
101
+ */
102
+ isMail?: boolean;
103
+ /**
104
+ * @description 输入框是否是手机号
105
+ */
106
+ isPhone?: boolean;
99
107
  /**
100
108
  * @description 多行文本初始值
101
109
  */
@@ -178,12 +186,21 @@ export interface ComponentInterface {
178
186
  * @returns
179
187
  */
180
188
  renderExport: (value: any, record: Record) => string | number | undefined | null;
189
+ /**
190
+ * 编辑渲染
191
+ */
181
192
  editRender: (p?: {
182
193
  formItemIndex?: number;
183
194
  onBlur?: (p1: any, p2: any) => void;
184
195
  hidden?: false;
185
196
  }) => JSX.Element | null;
197
+ /**
198
+ * 过滤条件配置组件(废弃)
199
+ */
186
200
  filterConfig: (p: ColumnConfig) => FilterConfigType | FilterConfigType[];
201
+ /**
202
+ * 获取组件值 cUztapBEyd_input
203
+ */
187
204
  getComponentValue: (r: Record) => any;
188
205
  formDataTransform?: (r: any) => any;
189
206
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.14-alpha.9",
3
+ "version": "0.7.15-alpha.1",
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.14-alpha.9",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.7.14-alpha.9"
29
+ "@kmkf-fe-packages/basic-components": "^0.7.15-alpha.0",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.0"
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": "daccf9b0ddd0d8845c8033088e15ad7252058265"
43
+ "gitHead": "5b4d28c91ce12320f17134cd61875d84db0faeaa"
44
44
  }