@kmkf-fe-packages/services-components 0.5.2-alpha.4 → 0.5.2-alpha.5
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 +7 -1
- package/dist/esm/components/ActualPayment/index.js +15 -1
- package/dist/esm/components/Alipay/index.d.ts +7 -1
- package/dist/esm/components/Alipay/index.js +3 -0
- package/dist/esm/components/AlipayAccount/index.d.ts +7 -1
- package/dist/esm/components/AlipayAccount/index.js +13 -1
- package/dist/esm/components/AlipayName/index.d.ts +7 -1
- package/dist/esm/components/AlipayName/index.js +13 -1
- package/dist/esm/components/BuyerNick/index.d.ts +7 -1
- package/dist/esm/components/BuyerNick/index.js +15 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -1
- package/dist/esm/components/Cascader/index.js +18 -1
- package/dist/esm/components/Checkbox/index.d.ts +8 -1
- package/dist/esm/components/Checkbox/index.js +21 -1
- package/dist/esm/components/CommonDataTime/index.d.ts +7 -1
- package/dist/esm/components/CommonDataTime/index.js +16 -1
- package/dist/esm/components/CompletedUser/index.d.ts +13 -2
- package/dist/esm/components/CompletedUser/index.js +20 -1
- package/dist/esm/components/DataTime/index.d.ts +8 -1
- package/dist/esm/components/DataTime/index.js +18 -1
- package/dist/esm/components/EItemEnCode/index.d.ts +7 -1
- package/dist/esm/components/EItemEnCode/index.js +19 -1
- package/dist/esm/components/EItemId/index.d.ts +7 -1
- package/dist/esm/components/EItemId/index.js +19 -1
- package/dist/esm/components/Express/index.d.ts +7 -1
- package/dist/esm/components/Express/index.js +14 -1
- package/dist/esm/components/ExpressCode/index.d.ts +7 -1
- package/dist/esm/components/ExpressCode/index.js +14 -1
- package/dist/esm/components/FlowStatusSelect/index.d.ts +11 -1
- package/dist/esm/components/FlowStatusSelect/index.js +22 -0
- package/dist/esm/components/Handler/index.d.ts +13 -2
- package/dist/esm/components/Handler/index.js +21 -1
- package/dist/esm/components/Input/index.d.ts +7 -1
- package/dist/esm/components/Input/index.js +15 -1
- package/dist/esm/components/JstItemSelect/index.d.ts +7 -1
- package/dist/esm/components/JstItemSelect/index.js +32 -1
- package/dist/esm/components/JstLogistics/index.d.ts +17 -1
- package/dist/esm/components/JstLogistics/index.js +34 -1
- package/dist/esm/components/JstSendGood/index.d.ts +7 -1
- package/dist/esm/components/JstSendGood/index.js +32 -1
- package/dist/esm/components/JstSupply/index.d.ts +7 -1
- package/dist/esm/components/JstSupply/index.js +32 -1
- package/dist/esm/components/Logistics/index.d.ts +12 -1
- package/dist/esm/components/Logistics/index.js +7 -0
- package/dist/esm/components/MultSelect/index.d.ts +8 -1
- package/dist/esm/components/MultSelect/index.js +18 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +13 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +13 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +7 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +13 -1
- package/dist/esm/components/Ordinary/index.d.ts +7 -1
- package/dist/esm/components/Ordinary/index.js +5 -0
- package/dist/esm/components/Payment/AlipayNick.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayNick.js +13 -1
- package/dist/esm/components/Payment/AlipayNo.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayNo.js +13 -1
- package/dist/esm/components/Payment/AlipayTime.d.ts +7 -1
- package/dist/esm/components/Payment/AlipayTime.js +14 -1
- package/dist/esm/components/Payment/BuyerNick.d.ts +7 -1
- package/dist/esm/components/Payment/BuyerNick.js +13 -1
- package/dist/esm/components/Payment/PaymentAmount.d.ts +7 -1
- package/dist/esm/components/Payment/PaymentAmount.js +13 -1
- package/dist/esm/components/Payment/PaymentStatus.d.ts +15 -1
- package/dist/esm/components/Payment/PaymentStatus.js +37 -1
- package/dist/esm/components/Payment/PaymentTid.d.ts +7 -1
- package/dist/esm/components/Payment/PaymentTid.js +13 -1
- package/dist/esm/components/Payment/index.d.ts +16 -1
- package/dist/esm/components/Payment/index.js +5 -0
- package/dist/esm/components/PlatForm/index.d.ts +9 -2
- package/dist/esm/components/PlatForm/index.js +19 -3
- package/dist/esm/components/Radio/index.d.ts +8 -1
- package/dist/esm/components/Radio/index.js +20 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +7 -1
- package/dist/esm/components/ReceiverMobile/index.js +15 -1
- package/dist/esm/components/ReceiverName/index.d.ts +7 -1
- package/dist/esm/components/ReceiverName/index.js +15 -1
- package/dist/esm/components/Remark/index.d.ts +7 -1
- package/dist/esm/components/Remark/index.js +15 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +12 -1
- package/dist/esm/components/ReturnLogistics/index.js +7 -0
- package/dist/esm/components/Select/index.d.ts +8 -1
- package/dist/esm/components/Select/index.js +17 -1
- package/dist/esm/components/ShopInput/index.d.ts +11 -2
- package/dist/esm/components/ShopInput/index.js +26 -1
- package/dist/esm/components/ShopName/index.d.ts +7 -1
- package/dist/esm/components/ShopName/index.js +15 -1
- package/dist/esm/components/Submitter/index.d.ts +13 -2
- package/dist/esm/components/Submitter/index.js +20 -1
- package/dist/esm/components/SystemOrderNo/index.d.ts +7 -1
- package/dist/esm/components/SystemOrderNo/index.js +15 -1
- package/dist/esm/components/TemplateSelect/index.d.ts +8 -1
- package/dist/esm/components/TemplateSelect/index.js +17 -0
- package/dist/esm/components/TextArea/index.d.ts +7 -1
- package/dist/esm/components/TextArea/index.js +15 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +7 -1
- package/dist/esm/components/ThirdItemSelect/index.js +21 -1
- package/dist/esm/components/TradeDateTime/index.d.ts +8 -1
- package/dist/esm/components/TradeDateTime/index.js +31 -1
- package/dist/esm/components/TradeId/index.d.ts +7 -1
- package/dist/esm/components/TradeId/index.js +15 -1
- package/dist/esm/components/WorkOrderId/index.d.ts +7 -1
- package/dist/esm/components/WorkOrderId/index.js +15 -0
- package/dist/esm/type.d.ts +21 -0
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class ActualPayment implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -14,5 +14,11 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
14
14
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
15
15
|
renderExport: (value: unknown, record: Record) => any;
|
|
16
16
|
editRender: (value: any) => JSX.Element;
|
|
17
|
+
filterConfig: (item: ColumnConfig) => {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
filterComponentType: "Input";
|
|
21
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
22
|
+
};
|
|
17
23
|
}
|
|
18
24
|
export default ActualPayment;
|
|
@@ -10,7 +10,7 @@ import React from 'react';
|
|
|
10
10
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
14
|
var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
15
15
|
var _this = this;
|
|
16
16
|
_classCallCheck(this, ActualPayment);
|
|
@@ -51,6 +51,20 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
51
51
|
}))
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
55
|
+
return {
|
|
56
|
+
id: item.id,
|
|
57
|
+
// 过滤组件id
|
|
58
|
+
name: item.name,
|
|
59
|
+
// 过滤组件名称
|
|
60
|
+
filterComponentType: 'Input',
|
|
61
|
+
filterFn: function filterFn(value) {
|
|
62
|
+
return function (i) {
|
|
63
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'actualPayment')).includes(value);
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
});
|
|
54
68
|
this.id = options.id;
|
|
55
69
|
this.name = options.name;
|
|
56
70
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
import EAlipayAccount from '../AlipayAccount';
|
|
4
4
|
import EAlipayName from '../AlipayName';
|
|
5
5
|
declare class Alipay implements ComponentInterface {
|
|
@@ -18,5 +18,11 @@ declare class Alipay implements ComponentInterface {
|
|
|
18
18
|
renderPc: () => null;
|
|
19
19
|
renderExport: () => null;
|
|
20
20
|
editRender: (value: any) => JSX.Element;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
+
}[];
|
|
21
27
|
}
|
|
22
28
|
export default Alipay;
|
|
@@ -50,6 +50,9 @@ var Alipay = /*#__PURE__*/_createClass(function Alipay(options) {
|
|
|
50
50
|
}))
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
54
|
+
return [_this.alipayName.filterConfig(_objectSpread({}, item)), _this.alipayAccount.filterConfig(_objectSpread({}, item))];
|
|
55
|
+
});
|
|
53
56
|
this.name = options.name;
|
|
54
57
|
this.id = options.id;
|
|
55
58
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
18
|
renderExport: (value?: string) => string;
|
|
19
19
|
editRender: (value: any) => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default EAlipayAccount;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var AlipayAccount = function AlipayAccount(props) {
|
|
14
14
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
15
|
};
|
|
@@ -58,6 +58,18 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
58
58
|
component: /*#__PURE__*/React.createElement(AlipayAccount, _this.componentConfig)
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_alipayAccount"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u8D26\u53F7"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'alipayAccount')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
61
73
|
this.name = '支付宝账号';
|
|
62
74
|
this.id = "".concat(options.id, "_alipayAccount");
|
|
63
75
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
declare class EAlipayAccount implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -17,5 +17,11 @@ declare class EAlipayAccount implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
18
|
renderExport: (value?: string) => string;
|
|
19
19
|
editRender: (value: any) => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Input";
|
|
24
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
25
|
+
};
|
|
20
26
|
}
|
|
21
27
|
export default EAlipayAccount;
|
|
@@ -9,7 +9,7 @@ import React from 'react';
|
|
|
9
9
|
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
10
10
|
import GetFormItem from "../GetFormItem";
|
|
11
11
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
13
|
var AlipayName = function AlipayName(props) {
|
|
14
14
|
return !props.isSingle ? /*#__PURE__*/React.createElement(ApaasInput, props) : null;
|
|
15
15
|
};
|
|
@@ -58,6 +58,18 @@ var EAlipayAccount = /*#__PURE__*/_createClass(function EAlipayAccount(options)
|
|
|
58
58
|
component: /*#__PURE__*/React.createElement(AlipayName, _this.componentConfig)
|
|
59
59
|
});
|
|
60
60
|
});
|
|
61
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
62
|
+
return {
|
|
63
|
+
id: "".concat(item.id, "_alipayName"),
|
|
64
|
+
name: "".concat(item.name, "-\u652F\u4ED8\u5B9D\u540D\u79F0"),
|
|
65
|
+
filterComponentType: 'Input',
|
|
66
|
+
filterFn: function filterFn(value) {
|
|
67
|
+
return function (i) {
|
|
68
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'alipayName')).includes(value);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
61
73
|
this.name = '支付宝名称';
|
|
62
74
|
this.id = "".concat(options.id, "_alipayName");
|
|
63
75
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
buyerNick?: string;
|
|
5
5
|
};
|
|
@@ -18,5 +18,11 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
18
18
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
19
19
|
renderExport: (value: any, record: any) => any;
|
|
20
20
|
editRender: (value: any) => JSX.Element;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Input";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
+
};
|
|
21
27
|
}
|
|
22
28
|
export default EBuyerNick;
|
|
@@ -11,7 +11,7 @@ import { BuyerNick } from '@kmkf-fe-packages/basic-components';
|
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
13
13
|
import PlatBuyer from "../../commonComponents/PlatBuyer";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig3;
|
|
@@ -66,6 +66,20 @@ var EBuyerNick = /*#__PURE__*/_createClass(function EBuyerNick(options) {
|
|
|
66
66
|
}))
|
|
67
67
|
});
|
|
68
68
|
});
|
|
69
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
70
|
+
return {
|
|
71
|
+
id: "".concat(item.id, "_buyerNick"),
|
|
72
|
+
// 过滤组件id
|
|
73
|
+
name: item.name,
|
|
74
|
+
// 过滤组件名称
|
|
75
|
+
filterComponentType: 'Input',
|
|
76
|
+
filterFn: function filterFn(value) {
|
|
77
|
+
return function (i) {
|
|
78
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'buyerNick')).includes(value);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
});
|
|
69
83
|
this.name = options.name;
|
|
70
84
|
this.id = options.id;
|
|
71
85
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class BasicCascader implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -20,5 +20,12 @@ declare class BasicCascader implements ComponentInterface {
|
|
|
20
20
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
21
21
|
renderExport: (value: any, record: Record) => string;
|
|
22
22
|
editRender: (value: any) => JSX.Element;
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
id: string;
|
|
25
|
+
name: string;
|
|
26
|
+
filterComponentType: "Cascader";
|
|
27
|
+
options: any;
|
|
28
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
29
|
+
};
|
|
23
30
|
}
|
|
24
31
|
export default BasicCascader;
|
|
@@ -8,10 +8,11 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
8
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
9
|
import React from 'react';
|
|
10
10
|
import { Cascader } from 'antd';
|
|
11
|
+
import intersection from 'lodash/intersection';
|
|
11
12
|
import GetFormItem from "../GetFormItem";
|
|
12
13
|
import { findLabelBySelectValue, transMultSelectOptions } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
16
|
var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
16
17
|
var _this = this;
|
|
17
18
|
_classCallCheck(this, BasicCascader);
|
|
@@ -79,6 +80,22 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(options) {
|
|
|
79
80
|
}))
|
|
80
81
|
});
|
|
81
82
|
});
|
|
83
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
84
|
+
var _item$config;
|
|
85
|
+
return {
|
|
86
|
+
id: item.id,
|
|
87
|
+
// 过滤组件id
|
|
88
|
+
name: item.name,
|
|
89
|
+
// 过滤组件名称
|
|
90
|
+
filterComponentType: 'Cascader',
|
|
91
|
+
options: transMultSelectOptions((item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []),
|
|
92
|
+
filterFn: function filterFn(value) {
|
|
93
|
+
return function (i) {
|
|
94
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
});
|
|
82
99
|
this.name = options.name;
|
|
83
100
|
this.id = options.id;
|
|
84
101
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
value?: string[];
|
|
5
5
|
other?: string;
|
|
@@ -19,5 +19,12 @@ declare class BasicCheckbox implements ComponentInterface {
|
|
|
19
19
|
renderExport: (value: any, record: Record) => string;
|
|
20
20
|
renderClient: (record: any) => JSX.Element | null;
|
|
21
21
|
editRender: () => JSX.Element;
|
|
22
|
+
filterConfig: (item: ColumnConfig) => {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
filterComponentType: "MultipleSelect";
|
|
26
|
+
options: any[] | undefined;
|
|
27
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
28
|
+
};
|
|
22
29
|
}
|
|
23
30
|
export default BasicCheckbox;
|
|
@@ -6,10 +6,11 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
8
|
import React from 'react';
|
|
9
|
+
import intersection from 'lodash/intersection';
|
|
9
10
|
import { ApaasCheckbox } from '@kmkf-fe-packages/basic-components';
|
|
10
11
|
import GetFormItem from "../GetFormItem";
|
|
11
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
14
|
var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
14
15
|
var _this = this,
|
|
15
16
|
_options$componentCon;
|
|
@@ -67,6 +68,25 @@ var BasicCheckbox = /*#__PURE__*/_createClass(function BasicCheckbox(options) {
|
|
|
67
68
|
component: /*#__PURE__*/React.createElement(ApaasCheckbox, _this.componentConfig)
|
|
68
69
|
});
|
|
69
70
|
});
|
|
71
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
72
|
+
var _item$config, _item$config2, _item$config2$options, _item$config3;
|
|
73
|
+
return {
|
|
74
|
+
id: item.id,
|
|
75
|
+
// 过滤组件id
|
|
76
|
+
name: item.name,
|
|
77
|
+
// 过滤组件名称
|
|
78
|
+
filterComponentType: 'MultipleSelect',
|
|
79
|
+
options: item !== null && item !== void 0 && (_item$config = item.config) !== null && _item$config !== void 0 && _item$config.showOther ? item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : (_item$config2$options = _item$config2.options) === null || _item$config2$options === void 0 ? void 0 : _item$config2$options.concat({
|
|
80
|
+
label: '其他',
|
|
81
|
+
value: '其他'
|
|
82
|
+
}) : (item === null || item === void 0 ? void 0 : (_item$config3 = item.config) === null || _item$config3 === void 0 ? void 0 : _item$config3.options) || [],
|
|
83
|
+
filterFn: function filterFn(value) {
|
|
84
|
+
return function (i) {
|
|
85
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'checkbox')).length > 0;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
});
|
|
70
90
|
this.name = options.name;
|
|
71
91
|
this.id = options.id;
|
|
72
92
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
/**
|
|
4
4
|
* 针对完成时间、创建时间、修改时间定义了3中类型
|
|
5
5
|
*/
|
|
@@ -18,5 +18,11 @@ declare class CommonDataTime implements ComponentInterface {
|
|
|
18
18
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
19
19
|
renderExport: (value: any, record: Record) => string;
|
|
20
20
|
editRender: () => null;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "Date";
|
|
25
|
+
filterFn: (value: string[]) => (i: Record) => boolean;
|
|
26
|
+
};
|
|
21
27
|
}
|
|
22
28
|
export default CommonDataTime;
|
|
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import moment from 'moment';
|
|
10
10
|
import ItemView from "../../commonComponents/ItemView";
|
|
11
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
11
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* 针对完成时间、创建时间、修改时间定义了3中类型
|
|
@@ -52,6 +52,21 @@ var CommonDataTime = /*#__PURE__*/_createClass(function CommonDataTime(options)
|
|
|
52
52
|
_defineProperty(this, "editRender", function () {
|
|
53
53
|
return null;
|
|
54
54
|
});
|
|
55
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
56
|
+
return {
|
|
57
|
+
id: item.id,
|
|
58
|
+
// 过滤组件id
|
|
59
|
+
name: item.name,
|
|
60
|
+
// 过滤组件名称
|
|
61
|
+
filterComponentType: 'Date',
|
|
62
|
+
filterFn: function filterFn(value) {
|
|
63
|
+
return function (i) {
|
|
64
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, '');
|
|
65
|
+
return _filterFn.filterDateFn(value, recordDateTime);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
});
|
|
55
70
|
this.name = options.name;
|
|
56
71
|
this.id = options.id;
|
|
57
72
|
this.type = options.type;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, Record, ColumnConfig } from '../../type';
|
|
3
3
|
declare class CompletedUser implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
type: string;
|
|
7
7
|
componentConfig: ComponentInterface["componentConfig"];
|
|
8
|
+
effects: ComponentInterface["effects"];
|
|
8
9
|
isCombinationComponent: boolean;
|
|
9
10
|
children: ComponentInterface[];
|
|
10
|
-
constructor();
|
|
11
|
+
constructor(options: PickOption);
|
|
11
12
|
renderPc: (value: string, record: Record) => JSX.Element;
|
|
12
13
|
renderExport: (value: any, record: Record) => any;
|
|
13
14
|
render: () => null;
|
|
14
15
|
renderClient: () => null;
|
|
15
16
|
editRender: () => null;
|
|
17
|
+
filterConfig: (item: ColumnConfig) => {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
filterComponentType: "MultipleSelect";
|
|
21
|
+
options: {
|
|
22
|
+
label: string;
|
|
23
|
+
value: string;
|
|
24
|
+
}[];
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
+
};
|
|
16
27
|
}
|
|
17
28
|
export default CompletedUser;
|
|
@@ -6,13 +6,15 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
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
8
|
import React from 'react';
|
|
9
|
-
|
|
9
|
+
import { filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
10
|
+
var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser(options) {
|
|
10
11
|
var _this = this;
|
|
11
12
|
_classCallCheck(this, CompletedUser);
|
|
12
13
|
_defineProperty(this, "name", void 0);
|
|
13
14
|
_defineProperty(this, "id", void 0);
|
|
14
15
|
_defineProperty(this, "type", void 0);
|
|
15
16
|
_defineProperty(this, "componentConfig", void 0);
|
|
17
|
+
_defineProperty(this, "effects", void 0);
|
|
16
18
|
_defineProperty(this, "isCombinationComponent", void 0);
|
|
17
19
|
_defineProperty(this, "children", void 0);
|
|
18
20
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -32,9 +34,26 @@ var CompletedUser = /*#__PURE__*/_createClass(function CompletedUser() {
|
|
|
32
34
|
_defineProperty(this, "editRender", function () {
|
|
33
35
|
return null;
|
|
34
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
|
+
});
|
|
35
53
|
this.name = "完成人";
|
|
36
54
|
this.id = "completedUserName";
|
|
37
55
|
this.type = "COMPLETED_USER_INPUT";
|
|
56
|
+
this.effects = options.effects;
|
|
38
57
|
this.isCombinationComponent = false;
|
|
39
58
|
this.children = [];
|
|
40
59
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare type Value = string | string[] | undefined;
|
|
4
4
|
export declare const DateTime: ({ value, onChange, ...otherProps }: any) => JSX.Element;
|
|
5
5
|
declare class BasicDataTime implements ComponentInterface {
|
|
@@ -17,5 +17,12 @@ declare class BasicDataTime implements ComponentInterface {
|
|
|
17
17
|
renderPc: (value: any, record: Record) => JSX.Element;
|
|
18
18
|
renderExport: (value: any, record: Record) => any;
|
|
19
19
|
editRender: () => JSX.Element;
|
|
20
|
+
filterConfig: (item: ColumnConfig) => {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
filterComponentType: "Date";
|
|
24
|
+
options: any[];
|
|
25
|
+
filterFn: (value: string[]) => (i: Record) => any;
|
|
26
|
+
};
|
|
20
27
|
}
|
|
21
28
|
export default BasicDataTime;
|
|
@@ -14,7 +14,7 @@ import ApaasDate from "./ApaasDate";
|
|
|
14
14
|
import moment from 'moment';
|
|
15
15
|
import GetFormItem from "../GetFormItem";
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
18
|
export var DateTime = function DateTime(_ref) {
|
|
19
19
|
var value = _ref.value,
|
|
20
20
|
onChange = _ref.onChange,
|
|
@@ -74,6 +74,23 @@ var BasicDataTime = /*#__PURE__*/_createClass(function BasicDataTime(options) {
|
|
|
74
74
|
component: /*#__PURE__*/React.createElement(DateTime, _this.componentConfig)
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
78
|
+
var _item$config;
|
|
79
|
+
return {
|
|
80
|
+
id: item.id,
|
|
81
|
+
// 过滤组件id
|
|
82
|
+
name: item.name,
|
|
83
|
+
// 过滤组件名称
|
|
84
|
+
filterComponentType: 'Date',
|
|
85
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || [],
|
|
86
|
+
filterFn: function filterFn(value) {
|
|
87
|
+
return function (i) {
|
|
88
|
+
var recordDateTime = _filterFn.filterTableListItemColumnValue(i, item.id, 'dateTime');
|
|
89
|
+
return _filterFn.dateFilterFn(value, recordDateTime);
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
});
|
|
77
94
|
this.name = options.name;
|
|
78
95
|
this.id = options.id;
|
|
79
96
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class EItemEncode implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -15,5 +15,11 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
15
15
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
16
|
renderExport: (value: unknown, record: Record) => any;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
|
+
};
|
|
18
24
|
}
|
|
19
25
|
export default EItemEncode;
|
|
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import ItemEncode from "./ItemEncode";
|
|
12
12
|
import { GoodImage } from "../Common";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig;
|
|
@@ -67,6 +67,24 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
67
67
|
}))
|
|
68
68
|
});
|
|
69
69
|
});
|
|
70
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
71
|
+
return {
|
|
72
|
+
id: item.id,
|
|
73
|
+
// 过滤组件id
|
|
74
|
+
name: item.name,
|
|
75
|
+
// 过滤组件名称
|
|
76
|
+
filterComponentType: 'Input',
|
|
77
|
+
filterFn: function filterFn(value) {
|
|
78
|
+
return function (i) {
|
|
79
|
+
var _ref2;
|
|
80
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
81
|
+
var _String;
|
|
82
|
+
return item !== null && item !== void 0 && item.outerId ? (_String = String(item === null || item === void 0 ? void 0 : item.outerId)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
83
|
+
});
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
});
|
|
70
88
|
this.name = options.name;
|
|
71
89
|
this.id = options.id;
|
|
72
90
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
3
3
|
declare class EItemId implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -15,5 +15,11 @@ declare class EItemId implements ComponentInterface {
|
|
|
15
15
|
renderPc: (value: unknown, record: Record) => JSX.Element;
|
|
16
16
|
renderExport: (value: any, record: any) => any;
|
|
17
17
|
editRender: () => JSX.Element;
|
|
18
|
+
filterConfig: (item: ColumnConfig) => {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
filterComponentType: "Input";
|
|
22
|
+
filterFn: (value: string) => (i: Record) => any;
|
|
23
|
+
};
|
|
18
24
|
}
|
|
19
25
|
export default EItemId;
|
|
@@ -11,7 +11,7 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
11
|
import ItemId from "./ItemId";
|
|
12
12
|
import { GoodImage } from "../Common";
|
|
13
13
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
16
16
|
var _this = this,
|
|
17
17
|
_this$componentConfig2;
|
|
@@ -68,6 +68,24 @@ var EItemId = /*#__PURE__*/_createClass(function EItemId(options) {
|
|
|
68
68
|
}))
|
|
69
69
|
});
|
|
70
70
|
});
|
|
71
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
72
|
+
return {
|
|
73
|
+
id: item.id,
|
|
74
|
+
// 过滤组件id
|
|
75
|
+
name: item.name,
|
|
76
|
+
// 过滤组件名称
|
|
77
|
+
filterComponentType: 'Input',
|
|
78
|
+
filterFn: function filterFn(value) {
|
|
79
|
+
return function (i) {
|
|
80
|
+
var _ref2;
|
|
81
|
+
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, 'itemList') || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
|
|
82
|
+
var _String;
|
|
83
|
+
return item !== null && item !== void 0 && item.numIid ? (_String = String(item === null || item === void 0 ? void 0 : item.numIid)) === null || _String === void 0 ? void 0 : _String.includes(value) : false;
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
});
|
|
71
89
|
this.name = options.name;
|
|
72
90
|
this.id = options.id;
|
|
73
91
|
this.type = options.type;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ComponentInterface, PickOption, ALignType, Record } from '../../type';
|
|
2
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
3
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
4
|
declare class Express implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
@@ -18,5 +18,11 @@ declare class Express implements ComponentInterface {
|
|
|
18
18
|
renderPc: (value: string, record: Record) => JSX.Element;
|
|
19
19
|
renderExport: (value: string, record: Record) => string | number;
|
|
20
20
|
editRender: () => JSX.Element;
|
|
21
|
+
filterConfig: (item: ColumnConfig) => {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
filterComponentType: "MultipleSelect";
|
|
25
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
26
|
+
};
|
|
21
27
|
}
|
|
22
28
|
export default Express;
|