@kmkf-fe-packages/services-components 0.6.3-alpha.4 → 0.6.3
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/ActualPayment/index.d.ts +11 -8
- package/dist/esm/components/ActualPayment/index.js +22 -19
- package/dist/esm/components/Address/index.d.ts +14 -6
- package/dist/esm/components/Address/index.js +22 -9
- package/dist/esm/components/Alipay/index.d.ts +18 -9
- package/dist/esm/components/Alipay/index.js +17 -6
- package/dist/esm/components/AlipayAccount/index.d.ts +13 -9
- package/dist/esm/components/AlipayAccount/index.js +24 -19
- package/dist/esm/components/AlipayName/index.d.ts +12 -8
- package/dist/esm/components/AlipayName/index.js +23 -18
- package/dist/esm/components/BuyerNick/index.d.ts +11 -8
- package/dist/esm/components/BuyerNick/index.js +25 -30
- package/dist/esm/components/Cascader/index.d.ts +23 -9
- package/dist/esm/components/Cascader/index.js +27 -29
- package/dist/esm/components/Checkbox/index.d.ts +10 -9
- package/dist/esm/components/Checkbox/index.js +21 -25
- package/dist/esm/components/CommonDataTime/index.d.ts +10 -8
- package/dist/esm/components/CommonDataTime/index.js +20 -19
- package/dist/esm/components/DataTime/index.d.ts +10 -9
- package/dist/esm/components/DataTime/index.js +23 -22
- package/dist/esm/components/EItemEnCode/index.d.ts +10 -8
- package/dist/esm/components/EItemEnCode/index.js +20 -22
- package/dist/esm/components/EItemId/index.d.ts +10 -8
- package/dist/esm/components/EItemId/index.js +20 -22
- package/dist/esm/components/EItemSelect/index.d.ts +11 -4
- package/dist/esm/components/EItemSelect/index.js +18 -6
- package/dist/esm/components/ErpTradeId/index.d.ts +11 -8
- package/dist/esm/components/ErpTradeId/index.js +21 -18
- package/dist/esm/components/Express/index.d.ts +13 -9
- package/dist/esm/components/Express/index.js +29 -18
- package/dist/esm/components/ExpressCode/index.d.ts +12 -8
- package/dist/esm/components/ExpressCode/index.js +22 -17
- package/dist/esm/components/FlowStatusSelect/index.d.ts +33 -13
- package/dist/esm/components/FlowStatusSelect/index.js +22 -27
- package/dist/esm/components/Grade/index.d.ts +11 -4
- package/dist/esm/components/Grade/index.js +19 -6
- package/dist/esm/components/Input/index.d.ts +11 -8
- package/dist/esm/components/Input/index.js +24 -20
- package/dist/esm/components/JstItemSelect/index.d.ts +11 -9
- package/dist/esm/components/JstItemSelect/index.js +20 -35
- package/dist/esm/components/JstLogistics/index.d.ts +11 -16
- package/dist/esm/components/JstLogistics/index.js +20 -31
- package/dist/esm/components/JstSendGood/index.d.ts +11 -9
- package/dist/esm/components/JstSendGood/index.js +20 -35
- package/dist/esm/components/JstSupply/index.d.ts +11 -9
- package/dist/esm/components/JstSupply/index.js +20 -35
- package/dist/esm/components/Logistics/index.d.ts +25 -15
- package/dist/esm/components/Logistics/index.js +17 -10
- package/dist/esm/components/MultSelect/index.d.ts +10 -9
- package/dist/esm/components/MultSelect/index.js +20 -21
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +26 -14
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +21 -8
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +26 -14
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +16 -8
- package/dist/esm/components/Ordinary/OrdinarySerial.js +16 -14
- package/dist/esm/components/Ordinary/index.d.ts +22 -9
- package/dist/esm/components/Ordinary/index.js +7 -8
- package/dist/esm/components/Payment/AlipayNick.d.ts +22 -9
- package/dist/esm/components/Payment/AlipayNick.js +28 -16
- package/dist/esm/components/Payment/AlipayNo.d.ts +20 -8
- package/dist/esm/components/Payment/AlipayNo.js +27 -16
- package/dist/esm/components/Payment/AlipayTime.d.ts +22 -8
- package/dist/esm/components/Payment/AlipayTime.js +27 -15
- package/dist/esm/components/Payment/BuyerNick.d.ts +21 -8
- package/dist/esm/components/Payment/BuyerNick.js +26 -14
- package/dist/esm/components/Payment/PaymentAmount.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentAmount.js +26 -14
- package/dist/esm/components/Payment/PaymentStatus.d.ts +27 -13
- package/dist/esm/components/Payment/PaymentStatus.js +36 -37
- package/dist/esm/components/Payment/PaymentTid.d.ts +21 -8
- package/dist/esm/components/Payment/PaymentTid.js +26 -14
- package/dist/esm/components/Payment/index.d.ts +96 -23
- package/dist/esm/components/Payment/index.js +17 -8
- package/dist/esm/components/Picture/index.d.ts +10 -8
- package/dist/esm/components/Picture/index.js +18 -6
- package/dist/esm/components/Radio/index.d.ts +10 -9
- package/dist/esm/components/Radio/index.js +23 -30
- package/dist/esm/components/Rate/index.d.ts +11 -4
- package/dist/esm/components/Rate/index.js +22 -11
- package/dist/esm/components/ReceiverAddress/index.d.ts +12 -4
- package/dist/esm/components/ReceiverAddress/index.js +26 -9
- package/dist/esm/components/ReceiverMobile/index.d.ts +12 -9
- package/dist/esm/components/ReceiverMobile/index.js +23 -20
- package/dist/esm/components/ReceiverName/index.d.ts +11 -8
- package/dist/esm/components/ReceiverName/index.js +23 -20
- package/dist/esm/components/Remark/index.d.ts +11 -8
- package/dist/esm/components/Remark/index.js +21 -18
- package/dist/esm/components/ReturnLogistics/index.d.ts +20 -15
- package/dist/esm/components/ReturnLogistics/index.js +7 -10
- package/dist/esm/components/Select/index.d.ts +10 -9
- package/dist/esm/components/Select/index.js +20 -20
- package/dist/esm/components/ShopName/index.d.ts +11 -8
- package/dist/esm/components/ShopName/index.js +20 -18
- package/dist/esm/components/SystemOrderNo/index.d.ts +11 -8
- package/dist/esm/components/SystemOrderNo/index.js +21 -18
- package/dist/esm/components/TemplateSelect/index.d.ts +11 -9
- package/dist/esm/components/TemplateSelect/index.js +20 -20
- package/dist/esm/components/TextArea/index.d.ts +10 -8
- package/dist/esm/components/TextArea/index.js +20 -18
- package/dist/esm/components/ThirdItemSelect/index.d.ts +10 -8
- package/dist/esm/components/ThirdItemSelect/index.js +20 -24
- package/dist/esm/components/TradeDateTime/index.d.ts +5 -9
- package/dist/esm/components/TradeDateTime/index.js +10 -34
- package/dist/esm/components/TradeId/index.d.ts +5 -8
- package/dist/esm/components/TradeId/index.js +10 -18
- package/dist/esm/components/WorkOrderId/index.d.ts +11 -8
- package/dist/esm/components/WorkOrderId/index.js +22 -20
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/index.js +1 -10
- package/dist/esm/type.d.ts +36 -38
- package/package.json +4 -4
- package/dist/esm/commonComponents/PlatformAvatar/index.d.ts +0 -7
- package/dist/esm/commonComponents/PlatformAvatar/index.js +0 -28
- package/dist/esm/commonComponents/ShopList/index.d.ts +0 -13
- package/dist/esm/commonComponents/ShopList/index.js +0 -34
- package/dist/esm/components/CompletedUser/index.d.ts +0 -28
- package/dist/esm/components/CompletedUser/index.js +0 -60
- package/dist/esm/components/Handler/index.d.ts +0 -32
- package/dist/esm/components/Handler/index.js +0 -64
- package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +0 -25
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +0 -89
- package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +0 -24
- package/dist/esm/components/LogisticsInterception/InterceptType.js +0 -62
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -27
- package/dist/esm/components/LogisticsInterception/index.js +0 -90
- package/dist/esm/components/PlatForm/index.d.ts +0 -29
- package/dist/esm/components/PlatForm/index.js +0 -62
- package/dist/esm/components/ShopInput/index.d.ts +0 -26
- package/dist/esm/components/ShopInput/index.js +0 -71
- package/dist/esm/components/Submitter/index.d.ts +0 -28
- package/dist/esm/components/Submitter/index.js +0 -60
- package/dist/esm/factory.d.ts +0 -3
- package/dist/esm/factory.js +0 -105
|
@@ -1,60 +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 { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
-
var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
11
|
-
var _this = this;
|
|
12
|
-
_classCallCheck(this, Submitter);
|
|
13
|
-
_defineProperty(this, "name", void 0);
|
|
14
|
-
_defineProperty(this, "id", void 0);
|
|
15
|
-
_defineProperty(this, "type", void 0);
|
|
16
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
17
|
-
_defineProperty(this, "effects", void 0);
|
|
18
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
19
|
-
_defineProperty(this, "children", void 0);
|
|
20
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
21
|
-
var _record;
|
|
22
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--');
|
|
23
|
-
});
|
|
24
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
25
|
-
var _record2;
|
|
26
|
-
return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record2 !== void 0 ? _record2 : '--';
|
|
27
|
-
});
|
|
28
|
-
_defineProperty(this, "render", function () {
|
|
29
|
-
return null;
|
|
30
|
-
});
|
|
31
|
-
_defineProperty(this, "renderClient", function () {
|
|
32
|
-
return null;
|
|
33
|
-
});
|
|
34
|
-
_defineProperty(this, "editRender", function () {
|
|
35
|
-
return null;
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
38
|
-
var _this$effects;
|
|
39
|
-
return {
|
|
40
|
-
id: item.id,
|
|
41
|
-
// 过滤组件id
|
|
42
|
-
name: item.name,
|
|
43
|
-
// 过滤组件名称
|
|
44
|
-
filterComponentType: 'MultipleSelect',
|
|
45
|
-
options: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.userList,
|
|
46
|
-
filterFn: function filterFn(value) {
|
|
47
|
-
return function (i) {
|
|
48
|
-
return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, ''));
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
this.name = "提交人";
|
|
54
|
-
this.id = "submitter";
|
|
55
|
-
this.type = "OPERATOR_INPUT";
|
|
56
|
-
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
57
|
-
this.isCombinationComponent = false;
|
|
58
|
-
this.children = [];
|
|
59
|
-
});
|
|
60
|
-
export default Submitter;
|
package/dist/esm/factory.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
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';
|
|
2
|
-
import { PickOption } from './type';
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BuyerNick | BasicCascader | BasicCheckbox | CommonDataTime | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | FlowStatusSelect | BasicGrade | Handler | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | BasicMultSelect | Ordinary | Payment | BasicPicture | PlatForm | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WorkOrderId;
|
package/dist/esm/factory.js
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
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";
|
|
2
|
-
export var factory = function factory(type, options) {
|
|
3
|
-
var _options$componentCon;
|
|
4
|
-
switch (type) {
|
|
5
|
-
case 'PLATFORM_INPUT':
|
|
6
|
-
return new PlatForm();
|
|
7
|
-
case 'SHOP_INPUT':
|
|
8
|
-
return new ShopInput(options);
|
|
9
|
-
case 'OPERATOR_INPUT':
|
|
10
|
-
return new Submitter(options);
|
|
11
|
-
case 'HANDLER_INPUT':
|
|
12
|
-
return new Handler(options);
|
|
13
|
-
case 'COMPLETED_USER_INPUT':
|
|
14
|
-
return new CompletedUser(options);
|
|
15
|
-
case 'INPUT':
|
|
16
|
-
return new BasicInput(options);
|
|
17
|
-
case 'RADIO':
|
|
18
|
-
return new BasicRadio(options);
|
|
19
|
-
case 'TEXTAREA':
|
|
20
|
-
return new BasicTextArea(options);
|
|
21
|
-
case 'CHECKBOX':
|
|
22
|
-
return new BasicCheckbox(options);
|
|
23
|
-
case 'DATETIME':
|
|
24
|
-
return new BasicDataTime(options);
|
|
25
|
-
case 'SELECT':
|
|
26
|
-
return new BasicSelect(options);
|
|
27
|
-
case 'PICTURE':
|
|
28
|
-
return new BasicPicture(options);
|
|
29
|
-
case 'BASIC_MULT_SELECT':
|
|
30
|
-
return new BasicMultSelect(options);
|
|
31
|
-
case 'MULT_SELECT':
|
|
32
|
-
return new BasicCascader(options);
|
|
33
|
-
case 'BASIC_ADDRESS':
|
|
34
|
-
return new BasicAddress(options);
|
|
35
|
-
case 'BASIC_GRADE':
|
|
36
|
-
return new BasicGrade(options);
|
|
37
|
-
case 'RATE':
|
|
38
|
-
return new BasicRate(options);
|
|
39
|
-
case 'SHOP_NAME_INPUT':
|
|
40
|
-
return new ShopName(options);
|
|
41
|
-
case 'TRADE_ID_INPUT':
|
|
42
|
-
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':
|
|
44
|
-
return new BuyerNick(options);
|
|
45
|
-
case 'RECEIVER_NAME_INPUT':
|
|
46
|
-
return new ReceiverName(options);
|
|
47
|
-
case 'RECEIVER_MOBILE_INPUT':
|
|
48
|
-
return new ReceiverMobile(options);
|
|
49
|
-
case 'RECEIVER_ADDRESS_INPUT':
|
|
50
|
-
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
|
-
return new TradeDateTime(options);
|
|
56
|
-
case 'EXPRESS_LOGISTICS_SELECT':
|
|
57
|
-
return new Logistics(options);
|
|
58
|
-
case 'RETURN_LOGISTICS_SELECT':
|
|
59
|
-
return new ReturnLogistics(options);
|
|
60
|
-
case 'ACTUAL_PAYMENT':
|
|
61
|
-
return new ActualPayment(options);
|
|
62
|
-
case 'REMARK_INPUT':
|
|
63
|
-
return new ERemark(options);
|
|
64
|
-
case 'ITEM_SELECT':
|
|
65
|
-
return new ItemSelect(options);
|
|
66
|
-
case 'ITEM_ID':
|
|
67
|
-
return new ItemId(options);
|
|
68
|
-
case 'ITEM_ENCODE':
|
|
69
|
-
return new ItemEnCode(options);
|
|
70
|
-
case 'ALI_PAY_INPUT':
|
|
71
|
-
return new AliPay(options);
|
|
72
|
-
case 'ORDINARY_INVOICE':
|
|
73
|
-
return new Ordinary(options);
|
|
74
|
-
case 'ITEM_SELECT_THIRD':
|
|
75
|
-
return new ThirdItemSelect(options);
|
|
76
|
-
case 'ENTERPRISE_PAYMENT':
|
|
77
|
-
return new Payment(options);
|
|
78
|
-
case 'SYSTEM_ORDER_NO':
|
|
79
|
-
return new SystemOrderNo(options);
|
|
80
|
-
case 'LOGISTICS_INTERCEPTION':
|
|
81
|
-
return new LogisticsInterception(options);
|
|
82
|
-
case 'WORK_ORDER_ID_INPUT':
|
|
83
|
-
return new WorkOrderId(options);
|
|
84
|
-
case 'FLOW_STATUS_SELECT':
|
|
85
|
-
return new FlowStatusSelect(options);
|
|
86
|
-
case 'COMPLETED_DATETIME':
|
|
87
|
-
return new CommonDataTime(options);
|
|
88
|
-
case 'CREATED_DATETIME':
|
|
89
|
-
return new CommonDataTime(options);
|
|
90
|
-
case 'UPDATE_DATETIME':
|
|
91
|
-
return new CommonDataTime(options);
|
|
92
|
-
case 'TEMPLATE_ID_INPUT':
|
|
93
|
-
return new TemplateSelect(options);
|
|
94
|
-
case 'JST_LOGISTICS':
|
|
95
|
-
return new JstLogistics(options);
|
|
96
|
-
case 'JST_ITEM_SELECT_THIRD':
|
|
97
|
-
return new JstItemSelect(options);
|
|
98
|
-
case 'JST_SUPPLY':
|
|
99
|
-
return new JstSupply(options);
|
|
100
|
-
case 'JST_SEND_GOOD':
|
|
101
|
-
return new JstSendGood(options);
|
|
102
|
-
default:
|
|
103
|
-
return new BasicInput(options);
|
|
104
|
-
}
|
|
105
|
-
};
|