iglooform 2.5.33 → 2.5.34
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/es/claim-list/index.d.ts +2 -0
- package/es/claim-list/index.js +6 -2
- package/es/mobile-insurer-list/index.d.ts +2 -0
- package/es/mobile-insurer-list/index.js +37 -25
- package/es/mobile-insurer-list/style/index.less +6 -1
- package/es/policy-list/index.d.ts +2 -0
- package/es/upload/style/index.less +7 -0
- package/lib/claim-list/index.d.ts +2 -0
- package/lib/claim-list/index.js +6 -2
- package/lib/mobile-insurer-list/index.d.ts +2 -0
- package/lib/mobile-insurer-list/index.js +37 -25
- package/lib/mobile-insurer-list/style/index.less +6 -1
- package/lib/policy-list/index.d.ts +2 -0
- package/lib/upload/style/index.less +7 -0
- package/package.json +1 -1
- package/yarn-error.log +13769 -0
package/es/claim-list/index.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ interface ClaimList {
|
|
|
41
41
|
mobileSubTitle?: (record?: any) => any;
|
|
42
42
|
mobileRedDot?: (record?: any) => boolean;
|
|
43
43
|
mobileTagOnClick?: (record?: any, e?: any) => any;
|
|
44
|
+
mobileTagRender?: (record?: IClaimDateSource) => any;
|
|
45
|
+
mobileExtraRender?: () => any;
|
|
44
46
|
}
|
|
45
47
|
declare const ClaimList: (props: ClaimList) => JSX.Element;
|
|
46
48
|
export default ClaimList;
|
package/es/claim-list/index.js
CHANGED
|
@@ -151,7 +151,9 @@ var ClaimList = function ClaimList(props) {
|
|
|
151
151
|
mobileInsurerName = props.mobileInsurerName,
|
|
152
152
|
mobileSubTitle = props.mobileSubTitle,
|
|
153
153
|
mobileRedDot = props.mobileRedDot,
|
|
154
|
-
mobileTagOnClick = props.mobileTagOnClick
|
|
154
|
+
mobileTagOnClick = props.mobileTagOnClick,
|
|
155
|
+
mobileTagRender = props.mobileTagRender,
|
|
156
|
+
mobileExtraRender = props.mobileExtraRender;
|
|
155
157
|
var getSomeMustProps = dateSource.map(function (claim) {
|
|
156
158
|
return _objectSpread(_objectSpread({}, claim), {}, {
|
|
157
159
|
insurerLogo: mobileInsurerLogo && mobileInsurerLogo(claim),
|
|
@@ -159,7 +161,9 @@ var ClaimList = function ClaimList(props) {
|
|
|
159
161
|
statusProps: mobileStatusProps && mobileStatusProps(claim),
|
|
160
162
|
mobileSubTitle: mobileSubTitle && mobileSubTitle(claim),
|
|
161
163
|
mobileRedDot: mobileRedDot && mobileRedDot(claim),
|
|
162
|
-
|
|
164
|
+
mobileTagRender: mobileTagRender && mobileTagRender(claim),
|
|
165
|
+
mobileTagOnClick: mobileTagOnClick,
|
|
166
|
+
mobileExtraRender: mobileExtraRender
|
|
163
167
|
});
|
|
164
168
|
});
|
|
165
169
|
return _jsx(ClaimListTags, {
|
|
@@ -5,6 +5,8 @@ interface ICardProps extends IPolicyCardProps {
|
|
|
5
5
|
mobileSubTitle?: string;
|
|
6
6
|
mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
|
|
7
7
|
mobileRedDot?: boolean;
|
|
8
|
+
mobileTagRender?: (cardInfo?: IPolicyCardProps) => any;
|
|
9
|
+
mobileExtraRender?: () => any;
|
|
8
10
|
}
|
|
9
11
|
interface IPolicyOrClaimMobileListProps {
|
|
10
12
|
dataList: ICardProps[];
|
|
@@ -26,40 +26,52 @@ var MobileInsurerList = function MobileInsurerList(props) {
|
|
|
26
26
|
mobileSubTitle = cardInfo.mobileSubTitle,
|
|
27
27
|
statusProps = cardInfo.statusProps,
|
|
28
28
|
mobileTagOnClick = cardInfo.mobileTagOnClick,
|
|
29
|
-
mobileRedDot = cardInfo.mobileRedDot
|
|
29
|
+
mobileRedDot = cardInfo.mobileRedDot,
|
|
30
|
+
mobileTagRender = cardInfo.mobileTagRender,
|
|
31
|
+
mobileExtraRender = cardInfo.mobileExtraRender;
|
|
30
32
|
invariant(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
|
|
33
|
+
|
|
34
|
+
if (typeof mobileTagRender === 'function') {
|
|
35
|
+
return mobileTagRender(cardInfo);
|
|
36
|
+
}
|
|
37
|
+
|
|
31
38
|
return _jsxs("div", {
|
|
32
39
|
className: "mobile-tag-container",
|
|
33
40
|
onClick: function onClick(e) {
|
|
34
41
|
return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
|
|
35
42
|
},
|
|
36
43
|
children: [_jsxs("div", {
|
|
37
|
-
className: "mobile-tag-
|
|
38
|
-
children: [
|
|
39
|
-
className: "
|
|
40
|
-
children: insurerLogo
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
className: "left-insurer-
|
|
45
|
-
children: [_jsxs(
|
|
46
|
-
|
|
47
|
-
children: [
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
className: "mobile-tag-common",
|
|
45
|
+
children: [_jsxs("div", {
|
|
46
|
+
className: "mobile-tag-left",
|
|
47
|
+
children: [insurerLogo && _jsx("div", {
|
|
48
|
+
className: "left-insurer-icon",
|
|
49
|
+
children: insurerLogo
|
|
50
|
+
}), _jsxs("div", {
|
|
51
|
+
className: "left-insurer-info-container",
|
|
52
|
+
children: [_jsxs("div", {
|
|
53
|
+
className: "left-insurer-title",
|
|
54
|
+
children: [_jsxs(Typography, {
|
|
55
|
+
level: "h4",
|
|
56
|
+
children: [insurerName, " ", insurerType]
|
|
57
|
+
}), mobileRedDot && _jsx("div", {
|
|
58
|
+
className: "left-insurer-title-red-dot"
|
|
59
|
+
})]
|
|
60
|
+
}), mobileSubTitle && _jsx("div", {
|
|
61
|
+
className: "left-insurer-sub-title",
|
|
62
|
+
children: _jsx(Typography, {
|
|
63
|
+
level: "body2",
|
|
64
|
+
children: mobileSubTitle
|
|
65
|
+
})
|
|
66
|
+
}), statusProps && _jsx("div", {
|
|
67
|
+
className: "left-insurer-status",
|
|
68
|
+
children: _jsx(StatusBox, _objectSpread({}, statusProps))
|
|
50
69
|
})]
|
|
51
|
-
}), mobileSubTitle && _jsx("div", {
|
|
52
|
-
className: "left-insurer-sub-title",
|
|
53
|
-
children: _jsx(Typography, {
|
|
54
|
-
level: "body2",
|
|
55
|
-
children: mobileSubTitle
|
|
56
|
-
})
|
|
57
|
-
}), statusProps && _jsx("div", {
|
|
58
|
-
className: "left-insurer-status",
|
|
59
|
-
children: _jsx(StatusBox, _objectSpread({}, statusProps))
|
|
60
70
|
})]
|
|
61
|
-
})]
|
|
62
|
-
}), _jsx(
|
|
71
|
+
}), _jsx(ArrowRightOutlined, {})]
|
|
72
|
+
}), _jsx("div", {
|
|
73
|
+
children: typeof mobileExtraRender === 'function' ? mobileExtraRender() : null
|
|
74
|
+
})]
|
|
63
75
|
}, index);
|
|
64
76
|
})
|
|
65
77
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
background-color: @white;
|
|
4
4
|
display: flex;
|
|
5
|
-
|
|
5
|
+
flex-direction: column;
|
|
6
6
|
padding: 16px 8px 16px 16px;
|
|
7
7
|
border-left: 3px solid @purple-main;
|
|
8
8
|
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
margin-left: 8px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.mobile-tag-common {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
.mobile-tag-left {
|
|
20
25
|
flex: 1;
|
|
21
26
|
display: flex;
|
|
@@ -4,6 +4,8 @@ interface ICardProps extends IPolicyCardProps {
|
|
|
4
4
|
mobileSubTitle?: string;
|
|
5
5
|
mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
|
|
6
6
|
mobileRedDot?: boolean;
|
|
7
|
+
mobileTagRender?: (cardInfo?: ICardProps) => any;
|
|
8
|
+
mobileExtraRender?: () => any;
|
|
7
9
|
}
|
|
8
10
|
interface IPolicyList {
|
|
9
11
|
dataList: ICardProps[];
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
.igloo-upload-preview-item-info {
|
|
49
49
|
width: calc(~'100%' - 96px);
|
|
50
50
|
display: flex;
|
|
51
|
+
flex: 1;
|
|
51
52
|
|
|
52
53
|
.igloo-upload-preview-item-icon {
|
|
53
54
|
margin-right: 16px;
|
|
@@ -80,6 +81,12 @@
|
|
|
80
81
|
text-overflow: ellipsis;
|
|
81
82
|
white-space: nowrap;
|
|
82
83
|
vertical-align: top;
|
|
84
|
+
|
|
85
|
+
& > span {
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
}
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
.igloo-upload-preview-item-size {
|
|
@@ -41,6 +41,8 @@ interface ClaimList {
|
|
|
41
41
|
mobileSubTitle?: (record?: any) => any;
|
|
42
42
|
mobileRedDot?: (record?: any) => boolean;
|
|
43
43
|
mobileTagOnClick?: (record?: any, e?: any) => any;
|
|
44
|
+
mobileTagRender?: (record?: IClaimDateSource) => any;
|
|
45
|
+
mobileExtraRender?: () => any;
|
|
44
46
|
}
|
|
45
47
|
declare const ClaimList: (props: ClaimList) => JSX.Element;
|
|
46
48
|
export default ClaimList;
|
package/lib/claim-list/index.js
CHANGED
|
@@ -178,7 +178,9 @@ var ClaimList = function ClaimList(props) {
|
|
|
178
178
|
mobileInsurerName = props.mobileInsurerName,
|
|
179
179
|
mobileSubTitle = props.mobileSubTitle,
|
|
180
180
|
mobileRedDot = props.mobileRedDot,
|
|
181
|
-
mobileTagOnClick = props.mobileTagOnClick
|
|
181
|
+
mobileTagOnClick = props.mobileTagOnClick,
|
|
182
|
+
mobileTagRender = props.mobileTagRender,
|
|
183
|
+
mobileExtraRender = props.mobileExtraRender;
|
|
182
184
|
var getSomeMustProps = dateSource.map(function (claim) {
|
|
183
185
|
return _objectSpread(_objectSpread({}, claim), {}, {
|
|
184
186
|
insurerLogo: mobileInsurerLogo && mobileInsurerLogo(claim),
|
|
@@ -186,7 +188,9 @@ var ClaimList = function ClaimList(props) {
|
|
|
186
188
|
statusProps: mobileStatusProps && mobileStatusProps(claim),
|
|
187
189
|
mobileSubTitle: mobileSubTitle && mobileSubTitle(claim),
|
|
188
190
|
mobileRedDot: mobileRedDot && mobileRedDot(claim),
|
|
189
|
-
|
|
191
|
+
mobileTagRender: mobileTagRender && mobileTagRender(claim),
|
|
192
|
+
mobileTagOnClick: mobileTagOnClick,
|
|
193
|
+
mobileExtraRender: mobileExtraRender
|
|
190
194
|
});
|
|
191
195
|
});
|
|
192
196
|
return (0, _jsxRuntime.jsx)(_mobileInsurerList.default, {
|
|
@@ -5,6 +5,8 @@ interface ICardProps extends IPolicyCardProps {
|
|
|
5
5
|
mobileSubTitle?: string;
|
|
6
6
|
mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
|
|
7
7
|
mobileRedDot?: boolean;
|
|
8
|
+
mobileTagRender?: (cardInfo?: IPolicyCardProps) => any;
|
|
9
|
+
mobileExtraRender?: () => any;
|
|
8
10
|
}
|
|
9
11
|
interface IPolicyOrClaimMobileListProps {
|
|
10
12
|
dataList: ICardProps[];
|
|
@@ -41,40 +41,52 @@ var MobileInsurerList = function MobileInsurerList(props) {
|
|
|
41
41
|
mobileSubTitle = cardInfo.mobileSubTitle,
|
|
42
42
|
statusProps = cardInfo.statusProps,
|
|
43
43
|
mobileTagOnClick = cardInfo.mobileTagOnClick,
|
|
44
|
-
mobileRedDot = cardInfo.mobileRedDot
|
|
44
|
+
mobileRedDot = cardInfo.mobileRedDot,
|
|
45
|
+
mobileTagRender = cardInfo.mobileTagRender,
|
|
46
|
+
mobileExtraRender = cardInfo.mobileExtraRender;
|
|
45
47
|
(0, _invariant.default)(mobileTagOnClick == undefined || typeof mobileTagOnClick === 'function', 'mobileTagOnClick must be a function');
|
|
48
|
+
|
|
49
|
+
if (typeof mobileTagRender === 'function') {
|
|
50
|
+
return mobileTagRender(cardInfo);
|
|
51
|
+
}
|
|
52
|
+
|
|
46
53
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
47
54
|
className: "mobile-tag-container",
|
|
48
55
|
onClick: function onClick(e) {
|
|
49
56
|
return mobileTagOnClick && mobileTagOnClick(cardInfo, e);
|
|
50
57
|
},
|
|
51
58
|
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
52
|
-
className: "mobile-tag-
|
|
53
|
-
children: [
|
|
54
|
-
className: "
|
|
55
|
-
children: insurerLogo
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
className: "left-insurer-
|
|
60
|
-
children: [(0, _jsxRuntime.jsxs)(
|
|
61
|
-
|
|
62
|
-
children: [
|
|
63
|
-
|
|
64
|
-
|
|
59
|
+
className: "mobile-tag-common",
|
|
60
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
61
|
+
className: "mobile-tag-left",
|
|
62
|
+
children: [insurerLogo && (0, _jsxRuntime.jsx)("div", {
|
|
63
|
+
className: "left-insurer-icon",
|
|
64
|
+
children: insurerLogo
|
|
65
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
66
|
+
className: "left-insurer-info-container",
|
|
67
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
68
|
+
className: "left-insurer-title",
|
|
69
|
+
children: [(0, _jsxRuntime.jsxs)(_typography.default, {
|
|
70
|
+
level: "h4",
|
|
71
|
+
children: [insurerName, " ", insurerType]
|
|
72
|
+
}), mobileRedDot && (0, _jsxRuntime.jsx)("div", {
|
|
73
|
+
className: "left-insurer-title-red-dot"
|
|
74
|
+
})]
|
|
75
|
+
}), mobileSubTitle && (0, _jsxRuntime.jsx)("div", {
|
|
76
|
+
className: "left-insurer-sub-title",
|
|
77
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
78
|
+
level: "body2",
|
|
79
|
+
children: mobileSubTitle
|
|
80
|
+
})
|
|
81
|
+
}), statusProps && (0, _jsxRuntime.jsx)("div", {
|
|
82
|
+
className: "left-insurer-status",
|
|
83
|
+
children: (0, _jsxRuntime.jsx)(_statusBox.default, _objectSpread({}, statusProps))
|
|
65
84
|
})]
|
|
66
|
-
}), mobileSubTitle && (0, _jsxRuntime.jsx)("div", {
|
|
67
|
-
className: "left-insurer-sub-title",
|
|
68
|
-
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
69
|
-
level: "body2",
|
|
70
|
-
children: mobileSubTitle
|
|
71
|
-
})
|
|
72
|
-
}), statusProps && (0, _jsxRuntime.jsx)("div", {
|
|
73
|
-
className: "left-insurer-status",
|
|
74
|
-
children: (0, _jsxRuntime.jsx)(_statusBox.default, _objectSpread({}, statusProps))
|
|
75
85
|
})]
|
|
76
|
-
})]
|
|
77
|
-
}), (0, _jsxRuntime.jsx)(
|
|
86
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowRightOutlined, {})]
|
|
87
|
+
}), (0, _jsxRuntime.jsx)("div", {
|
|
88
|
+
children: typeof mobileExtraRender === 'function' ? mobileExtraRender() : null
|
|
89
|
+
})]
|
|
78
90
|
}, index);
|
|
79
91
|
})
|
|
80
92
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
cursor: pointer;
|
|
3
3
|
background-color: @white;
|
|
4
4
|
display: flex;
|
|
5
|
-
|
|
5
|
+
flex-direction: column;
|
|
6
6
|
padding: 16px 8px 16px 16px;
|
|
7
7
|
border-left: 3px solid @purple-main;
|
|
8
8
|
|
|
@@ -16,6 +16,11 @@
|
|
|
16
16
|
margin-left: 8px;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
.mobile-tag-common {
|
|
20
|
+
display: flex;
|
|
21
|
+
align-items: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
.mobile-tag-left {
|
|
20
25
|
flex: 1;
|
|
21
26
|
display: flex;
|
|
@@ -4,6 +4,8 @@ interface ICardProps extends IPolicyCardProps {
|
|
|
4
4
|
mobileSubTitle?: string;
|
|
5
5
|
mobileTagOnClick?: (e?: any, cardInfo?: any) => void;
|
|
6
6
|
mobileRedDot?: boolean;
|
|
7
|
+
mobileTagRender?: (cardInfo?: ICardProps) => any;
|
|
8
|
+
mobileExtraRender?: () => any;
|
|
7
9
|
}
|
|
8
10
|
interface IPolicyList {
|
|
9
11
|
dataList: ICardProps[];
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
.igloo-upload-preview-item-info {
|
|
49
49
|
width: calc(~'100%' - 96px);
|
|
50
50
|
display: flex;
|
|
51
|
+
flex: 1;
|
|
51
52
|
|
|
52
53
|
.igloo-upload-preview-item-icon {
|
|
53
54
|
margin-right: 16px;
|
|
@@ -80,6 +81,12 @@
|
|
|
80
81
|
text-overflow: ellipsis;
|
|
81
82
|
white-space: nowrap;
|
|
82
83
|
vertical-align: top;
|
|
84
|
+
|
|
85
|
+
& > span {
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
text-overflow: ellipsis;
|
|
88
|
+
white-space: nowrap;
|
|
89
|
+
}
|
|
83
90
|
}
|
|
84
91
|
|
|
85
92
|
.igloo-upload-preview-item-size {
|