iglooform 2.4.25 → 2.4.26
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/admin-upload/float.js +14 -14
- package/es/admin-upload/index.js +11 -11
- package/es/admin-upload/job-list.js +47 -47
- package/es/admin-upload/modal.js +10 -10
- package/es/alert-message/index.js +7 -7
- package/es/amount/index.js +2 -2
- package/es/back-top/index.js +4 -4
- package/es/button/index.js +9 -9
- package/es/card-detail/card-group.js +6 -6
- package/es/card-detail/card-item.js +5 -5
- package/es/card-detail/card-page.js +5 -5
- package/es/card-detail/card.js +7 -7
- package/es/checkbox/index.js +6 -6
- package/es/claim-list/index.js +19 -19
- package/es/confirmation/index.js +4 -4
- package/es/date-picker/buddhist.js +2 -2
- package/es/date-picker/index.js +9 -9
- package/es/declaration/index.js +5 -5
- package/es/detail-panel/index.js +26 -26
- package/es/documents/index.js +2 -2
- package/es/example/index.js +5 -5
- package/es/filter/checkBox.js +10 -10
- package/es/filter/customize.js +1 -1
- package/es/filter/index.js +43 -43
- package/es/filter/radioBox.js +7 -7
- package/es/filter/rangePicker.js +23 -23
- package/es/filter/style/index.less +10 -2
- package/es/form/addable-section/index.js +33 -18
- package/es/form/addable-section/style/index.less +6 -10
- package/es/form/divider/index.js +1 -1
- package/es/form/element/index.js +17 -17
- package/es/form/elements.js +5 -2
- package/es/form/index.js +7 -7
- package/es/form/login/index.js +6 -6
- package/es/form/page/index.js +8 -8
- package/es/form/pages/index.js +10 -10
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +4 -4
- package/es/form/step/index.js +14 -14
- package/es/form/steps/index.js +2 -2
- package/es/free-form/addable-section/index.js +29 -14
- package/es/free-form/addable-section/style/index.less +0 -4
- package/es/free-form/element/index.js +10 -10
- package/es/free-form/index.js +3 -3
- package/es/free-form/page/index.js +15 -15
- package/es/free-form/pages/index.js +2 -2
- package/es/free-form/section/index.js +4 -4
- package/es/free-form/step/index.js +14 -14
- package/es/free-form/steps/index.js +2 -2
- package/es/global-message/index.js +12 -12
- package/es/home-menu/index.js +18 -18
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/input/amount.js +2 -2
- package/es/input/credit-card.js +4 -4
- package/es/input/email.js +1 -1
- package/es/input/expiry-date.js +3 -3
- package/es/input/input-date.js +3 -3
- package/es/input/input-number.js +1 -1
- package/es/input/input.js +1 -1
- package/es/input/otp.js +6 -6
- package/es/input/password.js +4 -4
- package/es/input/phone-number.js +4 -4
- package/es/input/text-area.js +4 -4
- package/es/layout/defaultFooter.js +28 -28
- package/es/layout/defaultHeader.js +6 -6
- package/es/layout/footer.js +66 -66
- package/es/layout/header.js +25 -25
- package/es/layout/index.js +4 -4
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +1 -0
- package/es/locale/locale-provider.js +2 -2
- package/es/locale/th-TH/messages.json +1 -0
- package/es/locale/vi-VN/messages.json +1 -0
- package/es/locale/zh-CN/messages.json +1 -0
- package/es/login-page/index.js +16 -16
- package/es/media/index.js +15 -15
- package/es/media/media.js +8 -8
- package/es/media/preview.js +6 -6
- package/es/mobile-insurer-detail/index.js +18 -18
- package/es/mobile-insurer-list/index.js +11 -11
- package/es/modal/index.js +8 -8
- package/es/platform/platform-card/index.js +5 -5
- package/es/platform/switch-platform/index.js +12 -12
- package/es/policy-list/index.js +4 -4
- package/es/policy-list/policy-card.js +32 -32
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +13 -12
- package/es/radio/radio-group-with-other.d.ts +6 -0
- package/es/radio/radio-group-with-other.js +85 -0
- package/es/select/attached-select.js +17 -20
- package/es/select/select.js +6 -9
- package/es/select/time-select.js +20 -20
- package/es/status-box/index.js +2 -2
- package/es/table/index.js +33 -33
- package/es/tabs/index.js +1 -1
- package/es/typography/index.js +10 -3
- package/es/upload/index.js +28 -28
- package/es/upload-photo/index.js +28 -28
- package/es/upload-photo/media.js +4 -4
- package/es/upload-preview/index.js +10 -10
- package/es/upload-preview/media.js +8 -8
- package/es/utils/form-utils.d.ts +1 -1
- package/es/utils/form-utils.js +11 -11
- package/lib/admin-upload/float.js +14 -14
- package/lib/admin-upload/index.js +11 -11
- package/lib/admin-upload/job-list.js +47 -47
- package/lib/admin-upload/modal.js +10 -10
- package/lib/alert-message/index.js +7 -7
- package/lib/amount/index.js +2 -2
- package/lib/back-top/index.js +4 -4
- package/lib/button/index.js +9 -9
- package/lib/card-detail/card-group.js +6 -6
- package/lib/card-detail/card-item.js +5 -5
- package/lib/card-detail/card-page.js +5 -5
- package/lib/card-detail/card.js +7 -7
- package/lib/checkbox/index.js +6 -6
- package/lib/claim-list/index.js +19 -19
- package/lib/confirmation/index.js +4 -4
- package/lib/date-picker/buddhist.js +2 -2
- package/lib/date-picker/index.js +9 -9
- package/lib/declaration/index.js +5 -5
- package/lib/detail-panel/index.js +26 -26
- package/lib/documents/index.js +2 -2
- package/lib/example/index.js +5 -5
- package/lib/filter/checkBox.js +10 -10
- package/lib/filter/customize.js +1 -1
- package/lib/filter/index.js +43 -43
- package/lib/filter/radioBox.js +7 -7
- package/lib/filter/rangePicker.js +23 -23
- package/lib/filter/style/index.less +10 -2
- package/lib/form/addable-section/index.js +37 -17
- package/lib/form/addable-section/style/index.less +6 -10
- package/lib/form/divider/index.js +1 -1
- package/lib/form/element/index.js +17 -17
- package/lib/form/elements.js +5 -1
- package/lib/form/index.js +7 -7
- package/lib/form/login/index.js +6 -6
- package/lib/form/page/index.js +8 -8
- package/lib/form/pages/index.js +10 -10
- package/lib/form/render/index.js +1 -1
- package/lib/form/section/index.js +4 -4
- package/lib/form/step/index.js +14 -14
- package/lib/form/steps/index.js +2 -2
- package/lib/free-form/addable-section/index.js +33 -13
- package/lib/free-form/addable-section/style/index.less +0 -4
- package/lib/free-form/element/index.js +10 -10
- package/lib/free-form/index.js +3 -3
- package/lib/free-form/page/index.js +15 -15
- package/lib/free-form/pages/index.js +2 -2
- package/lib/free-form/section/index.js +4 -4
- package/lib/free-form/step/index.js +14 -14
- package/lib/free-form/steps/index.js +2 -2
- package/lib/global-message/index.js +12 -12
- package/lib/home-menu/index.js +18 -18
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -0
- package/lib/input/amount.js +2 -2
- package/lib/input/credit-card.js +4 -4
- package/lib/input/email.js +1 -1
- package/lib/input/expiry-date.js +3 -3
- package/lib/input/input-date.js +3 -3
- package/lib/input/input-number.js +1 -1
- package/lib/input/input.js +1 -1
- package/lib/input/otp.js +6 -6
- package/lib/input/password.js +4 -4
- package/lib/input/phone-number.js +4 -4
- package/lib/input/text-area.js +4 -4
- package/lib/layout/defaultFooter.js +28 -28
- package/lib/layout/defaultHeader.js +6 -6
- package/lib/layout/footer.js +66 -66
- package/lib/layout/header.js +25 -25
- package/lib/layout/index.js +4 -4
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +1 -0
- package/lib/locale/locale-provider.js +2 -2
- package/lib/locale/th-TH/messages.json +1 -0
- package/lib/locale/vi-VN/messages.json +1 -0
- package/lib/locale/zh-CN/messages.json +1 -0
- package/lib/login-page/index.js +16 -16
- package/lib/media/index.js +15 -15
- package/lib/media/media.js +8 -8
- package/lib/media/preview.js +6 -6
- package/lib/mobile-insurer-detail/index.js +18 -18
- package/lib/mobile-insurer-list/index.js +11 -11
- package/lib/modal/index.js +8 -8
- package/lib/platform/platform-card/index.js +5 -5
- package/lib/platform/switch-platform/index.js +12 -12
- package/lib/policy-list/index.js +4 -4
- package/lib/policy-list/policy-card.js +32 -32
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +21 -12
- package/lib/radio/radio-group-with-other.d.ts +6 -0
- package/lib/radio/radio-group-with-other.js +98 -0
- package/lib/select/attached-select.js +16 -19
- package/lib/select/select.js +5 -8
- package/lib/select/time-select.js +20 -20
- package/lib/status-box/index.js +2 -2
- package/lib/table/index.js +33 -33
- package/lib/tabs/index.js +1 -1
- package/lib/typography/index.js +10 -3
- package/lib/upload/index.js +28 -28
- package/lib/upload-photo/index.js +28 -28
- package/lib/upload-photo/media.js +4 -4
- package/lib/upload-preview/index.js +10 -10
- package/lib/upload-preview/media.js +8 -8
- package/lib/utils/form-utils.d.ts +1 -1
- package/lib/utils/form-utils.js +10 -10
- package/package.json +1 -1
package/es/media/media.js
CHANGED
|
@@ -16,7 +16,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
16
16
|
maxHeight: 80
|
|
17
17
|
},
|
|
18
18
|
autoPlay: false
|
|
19
|
-
}
|
|
19
|
+
});
|
|
20
20
|
|
|
21
21
|
case 'pdf':
|
|
22
22
|
return _jsx("div", {
|
|
@@ -28,8 +28,8 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
28
28
|
children: _jsx(PDF, {
|
|
29
29
|
file: src,
|
|
30
30
|
scale: 0.1
|
|
31
|
-
}
|
|
32
|
-
}
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
33
|
|
|
34
34
|
default:
|
|
35
35
|
return _jsx("img", {
|
|
@@ -39,7 +39,7 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
39
39
|
maxHeight: 80,
|
|
40
40
|
position: 'absolute'
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
});
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -66,7 +66,7 @@ var Media = function Media(_ref2) {
|
|
|
66
66
|
children: [_jsx(MediaItem, {
|
|
67
67
|
type: type,
|
|
68
68
|
src: src
|
|
69
|
-
}
|
|
69
|
+
}), _jsx("div", {
|
|
70
70
|
style: {
|
|
71
71
|
position: 'absolute',
|
|
72
72
|
width: '100%',
|
|
@@ -74,9 +74,9 @@ var Media = function Media(_ref2) {
|
|
|
74
74
|
cursor: 'pointer'
|
|
75
75
|
},
|
|
76
76
|
onClick: onClick
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
77
|
+
})]
|
|
78
|
+
})
|
|
79
|
+
});
|
|
80
80
|
};
|
|
81
81
|
|
|
82
82
|
export default Media;
|
package/es/media/preview.js
CHANGED
|
@@ -62,7 +62,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
62
62
|
position: 'absolute'
|
|
63
63
|
},
|
|
64
64
|
children: pages
|
|
65
|
-
}
|
|
65
|
+
});
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
var MediaItem = function MediaItem(_ref3) {
|
|
@@ -83,7 +83,7 @@ var MediaItem = function MediaItem(_ref3) {
|
|
|
83
83
|
maxHeight: '100%'
|
|
84
84
|
},
|
|
85
85
|
autoPlay: true
|
|
86
|
-
}
|
|
86
|
+
});
|
|
87
87
|
|
|
88
88
|
case 'pdf':
|
|
89
89
|
return _jsx(PdfViewer, {
|
|
@@ -92,7 +92,7 @@ var MediaItem = function MediaItem(_ref3) {
|
|
|
92
92
|
left: left,
|
|
93
93
|
scale: scale,
|
|
94
94
|
isCurrent: isCurrent
|
|
95
|
-
}
|
|
95
|
+
});
|
|
96
96
|
|
|
97
97
|
default:
|
|
98
98
|
return _jsx("img", {
|
|
@@ -103,7 +103,7 @@ var MediaItem = function MediaItem(_ref3) {
|
|
|
103
103
|
transform: "scale(".concat(scale, ") translate(").concat(left, "px, ").concat(top, "px)"),
|
|
104
104
|
position: 'absolute'
|
|
105
105
|
}
|
|
106
|
-
}
|
|
106
|
+
});
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
|
|
@@ -213,8 +213,8 @@ var Media = function Media(_ref4) {
|
|
|
213
213
|
scale: scale,
|
|
214
214
|
offset: offset,
|
|
215
215
|
isCurrent: isCurrent
|
|
216
|
-
}
|
|
217
|
-
}
|
|
216
|
+
})
|
|
217
|
+
});
|
|
218
218
|
};
|
|
219
219
|
|
|
220
220
|
export default Media;
|
|
@@ -31,22 +31,22 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
31
31
|
style: {
|
|
32
32
|
marginBottom: 24
|
|
33
33
|
}
|
|
34
|
-
})
|
|
34
|
+
})), _jsxs("div", {
|
|
35
35
|
className: "mobile-detail-top",
|
|
36
36
|
children: [insurerLogo && _jsx("div", {
|
|
37
37
|
className: "mobile-detail-top-insurer-logo",
|
|
38
38
|
children: insurerLogo
|
|
39
|
-
}
|
|
39
|
+
}), _jsxs("div", {
|
|
40
40
|
className: "mobile-detail-top-insurer-info",
|
|
41
41
|
children: [_jsx("div", {
|
|
42
42
|
className: "insurer-name",
|
|
43
43
|
children: _jsxs(Typography, {
|
|
44
44
|
level: "h4",
|
|
45
45
|
children: [insurerName, " ", insurerType]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
46
|
+
})
|
|
47
|
+
}), _jsx(StatusBox, _objectSpread({}, statusProps))]
|
|
48
|
+
})]
|
|
49
|
+
}), buttons && buttons.map(function (item, index) {
|
|
50
50
|
return item.render ? item.render() : _jsx(Button, {
|
|
51
51
|
icon: item.icon,
|
|
52
52
|
onClick: function onClick() {
|
|
@@ -60,11 +60,11 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
60
60
|
children: _jsx(Typography, {
|
|
61
61
|
level: "h4",
|
|
62
62
|
children: item.label
|
|
63
|
-
}
|
|
63
|
+
})
|
|
64
64
|
}, String(item) + index);
|
|
65
65
|
}), _jsx("div", {
|
|
66
66
|
className: "dividing-line"
|
|
67
|
-
}
|
|
67
|
+
}), infoGroups.map(function (group, index) {
|
|
68
68
|
var sectionName = group.sectionName,
|
|
69
69
|
infoItems = group.infoItems,
|
|
70
70
|
hideBottomLine = group.hideBottomLine;
|
|
@@ -77,8 +77,8 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
77
77
|
children: _jsx(Typography, {
|
|
78
78
|
level: "h4",
|
|
79
79
|
children: sectionName
|
|
80
|
-
}
|
|
81
|
-
}
|
|
80
|
+
})
|
|
81
|
+
}), infoItems.map(function (item, index) {
|
|
82
82
|
var title = item.title,
|
|
83
83
|
info = item.info,
|
|
84
84
|
hide = item.hide;
|
|
@@ -95,8 +95,8 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
95
95
|
children: _jsx(Typography, {
|
|
96
96
|
level: "body1",
|
|
97
97
|
children: title
|
|
98
|
-
}
|
|
99
|
-
}
|
|
98
|
+
})
|
|
99
|
+
}), textArr.map(function (textItem, index) {
|
|
100
100
|
var text = textItem.text,
|
|
101
101
|
link = textItem.link;
|
|
102
102
|
|
|
@@ -106,7 +106,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
106
106
|
children: _jsx(Typography, {
|
|
107
107
|
level: "body1",
|
|
108
108
|
children: textItem
|
|
109
|
-
}
|
|
109
|
+
})
|
|
110
110
|
}, index);
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -120,13 +120,13 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
120
120
|
children: [_jsx(Typography, {
|
|
121
121
|
level: "body1",
|
|
122
122
|
children: text
|
|
123
|
-
}
|
|
123
|
+
}), _jsx(Button, {
|
|
124
124
|
onClick: onClick ? function () {
|
|
125
125
|
return onClick(props);
|
|
126
126
|
} : function () {},
|
|
127
127
|
type: "link",
|
|
128
128
|
children: link.linkText
|
|
129
|
-
}
|
|
129
|
+
})]
|
|
130
130
|
}, index);
|
|
131
131
|
}
|
|
132
132
|
|
|
@@ -135,7 +135,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
135
135
|
children: [_jsx(Typography, {
|
|
136
136
|
level: "body1",
|
|
137
137
|
children: text
|
|
138
|
-
}
|
|
138
|
+
}), linkArr.map(function (linkObj, index) {
|
|
139
139
|
var onClick = linkObj.onClick;
|
|
140
140
|
return _jsx("div", {
|
|
141
141
|
style: {
|
|
@@ -147,7 +147,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
147
147
|
} : function () {},
|
|
148
148
|
type: "link",
|
|
149
149
|
children: linkObj.linkText
|
|
150
|
-
}
|
|
150
|
+
})
|
|
151
151
|
}, index);
|
|
152
152
|
})]
|
|
153
153
|
}, index);
|
|
@@ -156,7 +156,7 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
156
156
|
})]
|
|
157
157
|
}, index);
|
|
158
158
|
})]
|
|
159
|
-
}
|
|
159
|
+
});
|
|
160
160
|
};
|
|
161
161
|
|
|
162
162
|
export default MobileInsurerDetail;
|
|
@@ -38,31 +38,31 @@ var MobileInsurerList = function MobileInsurerList(props) {
|
|
|
38
38
|
children: [insurerLogo && _jsx("div", {
|
|
39
39
|
className: "left-insurer-icon",
|
|
40
40
|
children: insurerLogo
|
|
41
|
-
}
|
|
41
|
+
}), _jsxs("div", {
|
|
42
42
|
className: "left-insurer-info-container",
|
|
43
43
|
children: [_jsxs("div", {
|
|
44
44
|
className: "left-insurer-title",
|
|
45
45
|
children: [_jsxs(Typography, {
|
|
46
46
|
level: "h4",
|
|
47
47
|
children: [insurerName, " ", insurerType]
|
|
48
|
-
}
|
|
48
|
+
}), mobileRedDot && _jsx("div", {
|
|
49
49
|
className: "left-insurer-title-red-dot"
|
|
50
|
-
}
|
|
51
|
-
}
|
|
50
|
+
})]
|
|
51
|
+
}), mobileSubTitle && _jsx("div", {
|
|
52
52
|
className: "left-insurer-sub-title",
|
|
53
53
|
children: _jsx(Typography, {
|
|
54
54
|
level: "body2",
|
|
55
55
|
children: mobileSubTitle
|
|
56
|
-
}
|
|
57
|
-
}
|
|
56
|
+
})
|
|
57
|
+
}), statusProps && _jsx("div", {
|
|
58
58
|
className: "left-insurer-status",
|
|
59
|
-
children: _jsx(StatusBox, _objectSpread({}, statusProps)
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
59
|
+
children: _jsx(StatusBox, _objectSpread({}, statusProps))
|
|
60
|
+
})]
|
|
61
|
+
})]
|
|
62
|
+
}), _jsx(ArrowRightOutlined, {})]
|
|
63
63
|
}, index);
|
|
64
64
|
})
|
|
65
|
-
}
|
|
65
|
+
});
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
export default MobileInsurerList;
|
package/es/modal/index.js
CHANGED
|
@@ -136,7 +136,7 @@ var IglooModal = function IglooModal(props) {
|
|
|
136
136
|
fontSize: 24,
|
|
137
137
|
color: '#666666'
|
|
138
138
|
}
|
|
139
|
-
}
|
|
139
|
+
}),
|
|
140
140
|
footer: footer === undefined ? _jsxs("div", {
|
|
141
141
|
className: "igloo-modal-footer-btns",
|
|
142
142
|
children: [_jsx(Button, _objectSpread(_objectSpread({
|
|
@@ -144,21 +144,21 @@ var IglooModal = function IglooModal(props) {
|
|
|
144
144
|
}, cancelButtonProps), {}, {
|
|
145
145
|
className: classnames('igloo-modal-footer-button', cancelButtonProps.className),
|
|
146
146
|
children: cancelText
|
|
147
|
-
})
|
|
147
|
+
})), _jsx(Button, _objectSpread(_objectSpread({
|
|
148
148
|
type: okType
|
|
149
149
|
}, okButtonProps), {}, {
|
|
150
150
|
className: classnames('igloo-modal-footer-button', okButtonProps.className),
|
|
151
151
|
onClick: handleOk,
|
|
152
152
|
children: okText
|
|
153
|
-
})
|
|
154
|
-
}
|
|
153
|
+
}))]
|
|
154
|
+
}) : footer,
|
|
155
155
|
width: width || 'noStyleWidth',
|
|
156
156
|
children: formConfig ? _jsx(Form, _objectSpread({
|
|
157
157
|
config: formConfig,
|
|
158
158
|
showSubmitButton: false,
|
|
159
159
|
ref: formRef
|
|
160
|
-
}, formProps)
|
|
161
|
-
})
|
|
160
|
+
}, formProps)) : children
|
|
161
|
+
}));
|
|
162
162
|
};
|
|
163
163
|
|
|
164
164
|
var modalFunction = function modalFunction(_ref2) {
|
|
@@ -214,8 +214,8 @@ var modalFunction = function modalFunction(_ref2) {
|
|
|
214
214
|
return rst;
|
|
215
215
|
},
|
|
216
216
|
children: content
|
|
217
|
-
})
|
|
218
|
-
}
|
|
217
|
+
}))
|
|
218
|
+
}), ele);
|
|
219
219
|
};
|
|
220
220
|
|
|
221
221
|
var destroy = function destroy() {
|
|
@@ -43,11 +43,11 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
43
43
|
children: [_jsx("img", {
|
|
44
44
|
src: defaultIcon,
|
|
45
45
|
className: "igloo-platform-defaultLogo"
|
|
46
|
-
}
|
|
46
|
+
}), _jsx("div", {
|
|
47
47
|
className: "igloo-platform-name",
|
|
48
48
|
children: name
|
|
49
|
-
}
|
|
50
|
-
}
|
|
49
|
+
})]
|
|
50
|
+
}), !showDefault && _jsx(_Image, {
|
|
51
51
|
width: 200,
|
|
52
52
|
height: 200,
|
|
53
53
|
src: "https://static.iglooinsure.com/partner/normal/".concat(key.toLowerCase(), ".svg"),
|
|
@@ -55,8 +55,8 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
55
55
|
return setShowDefault(true);
|
|
56
56
|
},
|
|
57
57
|
preview: false
|
|
58
|
-
}
|
|
59
|
-
}
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
60
|
};
|
|
61
61
|
|
|
62
62
|
export default PlatformCard;
|
|
@@ -84,17 +84,17 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
84
84
|
className: "igloo-switch-platform-default-logo",
|
|
85
85
|
fallback: defaultIcon,
|
|
86
86
|
preview: false
|
|
87
|
-
}
|
|
87
|
+
}), _jsx("span", {
|
|
88
88
|
className: "igloo-switch-platform-name",
|
|
89
89
|
children: name
|
|
90
|
-
}
|
|
90
|
+
})]
|
|
91
91
|
}, key);
|
|
92
92
|
})
|
|
93
|
-
}
|
|
93
|
+
}),
|
|
94
94
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
95
95
|
return trigger.parentElement;
|
|
96
96
|
},
|
|
97
|
-
placement: "
|
|
97
|
+
placement: "bottom",
|
|
98
98
|
children: _jsxs(_Space, {
|
|
99
99
|
size: 8,
|
|
100
100
|
align: "center",
|
|
@@ -107,22 +107,22 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
107
107
|
return setShowDefault(true);
|
|
108
108
|
},
|
|
109
109
|
preview: false
|
|
110
|
-
}
|
|
110
|
+
}) : _jsxs(_Space, {
|
|
111
111
|
size: 8,
|
|
112
112
|
align: "center",
|
|
113
113
|
children: [_jsx("img", {
|
|
114
114
|
src: defaultIcon,
|
|
115
115
|
className: "igloo-switch-platform-default-logo"
|
|
116
|
-
}
|
|
116
|
+
}), _jsx("span", {
|
|
117
117
|
className: "igloo-switch-platform-name",
|
|
118
118
|
children: currentName
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
119
|
+
})]
|
|
120
|
+
})
|
|
121
|
+
}), _jsx(ArrowDownOutlined, {
|
|
122
122
|
className: "igloo-switch-platform-arrow"
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
123
|
+
})]
|
|
124
|
+
})
|
|
125
|
+
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
128
|
export default SwitchPlatform;
|
package/es/policy-list/index.js
CHANGED
|
@@ -34,8 +34,8 @@ var PolicyList = function PolicyList(props) {
|
|
|
34
34
|
children: _jsx(Typography, {
|
|
35
35
|
level: "body1",
|
|
36
36
|
children: emptyText
|
|
37
|
-
}
|
|
38
|
-
}
|
|
37
|
+
})
|
|
38
|
+
});
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
if (!md) {
|
|
@@ -43,7 +43,7 @@ var PolicyList = function PolicyList(props) {
|
|
|
43
43
|
dataList: dataList,
|
|
44
44
|
style: style,
|
|
45
45
|
className: className
|
|
46
|
-
}
|
|
46
|
+
});
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
return _jsx("div", {
|
|
@@ -54,7 +54,7 @@ var PolicyList = function PolicyList(props) {
|
|
|
54
54
|
key: index
|
|
55
55
|
}));
|
|
56
56
|
})
|
|
57
|
-
}
|
|
57
|
+
});
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export default PolicyList;
|
|
@@ -112,23 +112,23 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
112
112
|
className: classnames({
|
|
113
113
|
'hide-icon': !extend
|
|
114
114
|
})
|
|
115
|
-
}
|
|
115
|
+
}), _jsx(ArrowDownOutlined, {
|
|
116
116
|
className: classnames({
|
|
117
117
|
'hide-icon': extend
|
|
118
118
|
})
|
|
119
|
-
}
|
|
120
|
-
}
|
|
119
|
+
})]
|
|
120
|
+
}), _jsx("div", {
|
|
121
121
|
className: "left-logo-container",
|
|
122
122
|
children: insurerLogo
|
|
123
|
-
}
|
|
123
|
+
}), _jsxs(Typography, {
|
|
124
124
|
level: "h4",
|
|
125
125
|
className: "left-title-container",
|
|
126
126
|
children: [insurerName, " ", insurerType]
|
|
127
|
-
}
|
|
127
|
+
}), _jsx("div", {
|
|
128
128
|
className: "left-status",
|
|
129
|
-
children: _jsx(StatusBox, _objectSpread({}, statusProps)
|
|
130
|
-
}
|
|
131
|
-
}
|
|
129
|
+
children: _jsx(StatusBox, _objectSpread({}, statusProps))
|
|
130
|
+
})]
|
|
131
|
+
}), buttons && buttons.map(function (item, index) {
|
|
132
132
|
return item.render ? item.render() : _jsx(Button, {
|
|
133
133
|
icon: item.icon,
|
|
134
134
|
onClick: function onClick(e) {
|
|
@@ -142,13 +142,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
142
142
|
children: _jsx(Typography, {
|
|
143
143
|
level: "h4",
|
|
144
144
|
children: item.label
|
|
145
|
-
}
|
|
145
|
+
})
|
|
146
146
|
}, String(item) + index);
|
|
147
147
|
})]
|
|
148
|
-
}
|
|
148
|
+
}), messageBar && _jsx("div", {
|
|
149
149
|
className: "message-container",
|
|
150
|
-
children: _jsx(AlertMessage, _objectSpread({}, messageBar)
|
|
151
|
-
}
|
|
150
|
+
children: _jsx(AlertMessage, _objectSpread({}, messageBar))
|
|
151
|
+
}), defaultItems && _jsx("div", {
|
|
152
152
|
className: "container-bottom",
|
|
153
153
|
children: _jsx(_Row, {
|
|
154
154
|
gutter: [24, 32],
|
|
@@ -172,8 +172,8 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
172
172
|
children: _jsx(Typography, {
|
|
173
173
|
level: "body1",
|
|
174
174
|
children: title
|
|
175
|
-
}
|
|
176
|
-
}
|
|
175
|
+
})
|
|
176
|
+
}), textArr.map(function (textItem, index) {
|
|
177
177
|
var text = textItem.text,
|
|
178
178
|
link = textItem.link;
|
|
179
179
|
|
|
@@ -183,7 +183,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
183
183
|
children: _jsx(Typography, {
|
|
184
184
|
level: "body1",
|
|
185
185
|
children: textItem
|
|
186
|
-
}
|
|
186
|
+
})
|
|
187
187
|
}, index);
|
|
188
188
|
} // 处理link (一个or多个,换行or不换行)
|
|
189
189
|
|
|
@@ -198,13 +198,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
198
198
|
children: [_jsx(Typography, {
|
|
199
199
|
level: "body1",
|
|
200
200
|
children: text
|
|
201
|
-
}
|
|
201
|
+
}), _jsx(Button, {
|
|
202
202
|
onClick: onClick ? function () {
|
|
203
203
|
return onClick(props);
|
|
204
204
|
} : function () {},
|
|
205
205
|
type: "link",
|
|
206
206
|
children: link.linkText
|
|
207
|
-
}
|
|
207
|
+
})]
|
|
208
208
|
}, index);
|
|
209
209
|
}
|
|
210
210
|
|
|
@@ -213,7 +213,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
213
213
|
children: [_jsx(Typography, {
|
|
214
214
|
level: "body1",
|
|
215
215
|
children: text
|
|
216
|
-
}
|
|
216
|
+
}), linkArr.map(function (linkObj, index) {
|
|
217
217
|
var onClick = linkObj.onClick;
|
|
218
218
|
return _jsx("div", {
|
|
219
219
|
style: {
|
|
@@ -225,15 +225,15 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
225
225
|
} : function () {},
|
|
226
226
|
type: "link",
|
|
227
227
|
children: linkObj.linkText
|
|
228
|
-
}
|
|
228
|
+
})
|
|
229
229
|
}, index);
|
|
230
230
|
})]
|
|
231
231
|
}, index);
|
|
232
232
|
})]
|
|
233
233
|
}, index);
|
|
234
234
|
})
|
|
235
|
-
}
|
|
236
|
-
}
|
|
235
|
+
})
|
|
236
|
+
}), _jsx(_Collapse, {
|
|
237
237
|
className: "igloo-policy-collapse-container",
|
|
238
238
|
activeKey: extend ? allActiveKeys : [],
|
|
239
239
|
children: infoGroups.map(function (group, index) {
|
|
@@ -247,7 +247,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
247
247
|
level: "h4",
|
|
248
248
|
className: "panel-group-section-name",
|
|
249
249
|
children: sectionName
|
|
250
|
-
}
|
|
250
|
+
}), _jsx(_Row, {
|
|
251
251
|
gutter: [24, 16],
|
|
252
252
|
children: infoItems.map(function (item, index) {
|
|
253
253
|
var _item$span = item.span,
|
|
@@ -268,8 +268,8 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
268
268
|
children: _jsx(Typography, {
|
|
269
269
|
level: "body1",
|
|
270
270
|
children: title
|
|
271
|
-
}
|
|
272
|
-
}
|
|
271
|
+
})
|
|
272
|
+
}), textArr.map(function (textItem, index) {
|
|
273
273
|
var text = textItem.text,
|
|
274
274
|
link = textItem.link;
|
|
275
275
|
|
|
@@ -279,7 +279,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
279
279
|
children: _jsx(Typography, {
|
|
280
280
|
level: "body1",
|
|
281
281
|
children: textItem
|
|
282
|
-
}
|
|
282
|
+
})
|
|
283
283
|
}, index);
|
|
284
284
|
} // 处理link (一个or多个,换行or不换行)
|
|
285
285
|
|
|
@@ -294,13 +294,13 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
294
294
|
children: [_jsx(Typography, {
|
|
295
295
|
level: "body1",
|
|
296
296
|
children: text
|
|
297
|
-
}
|
|
297
|
+
}), _jsx(Button, {
|
|
298
298
|
onClick: onClick ? function () {
|
|
299
299
|
return onClick(props);
|
|
300
300
|
} : function () {},
|
|
301
301
|
type: "link",
|
|
302
302
|
children: link.linkText
|
|
303
|
-
}
|
|
303
|
+
})]
|
|
304
304
|
}, index);
|
|
305
305
|
}
|
|
306
306
|
|
|
@@ -309,7 +309,7 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
309
309
|
children: [_jsx(Typography, {
|
|
310
310
|
level: "body1",
|
|
311
311
|
children: text
|
|
312
|
-
}
|
|
312
|
+
}), linkArr.map(function (linkObj, index) {
|
|
313
313
|
var onClick = linkObj.onClick;
|
|
314
314
|
return _jsx("div", {
|
|
315
315
|
style: {
|
|
@@ -321,18 +321,18 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
321
321
|
} : function () {},
|
|
322
322
|
type: "link",
|
|
323
323
|
children: linkObj.linkText
|
|
324
|
-
}
|
|
324
|
+
})
|
|
325
325
|
}, index);
|
|
326
326
|
})]
|
|
327
327
|
}, index);
|
|
328
328
|
})]
|
|
329
329
|
}, index);
|
|
330
330
|
})
|
|
331
|
-
}
|
|
331
|
+
})]
|
|
332
332
|
}, index);
|
|
333
333
|
})
|
|
334
|
-
}
|
|
335
|
-
}
|
|
334
|
+
})]
|
|
335
|
+
});
|
|
336
336
|
};
|
|
337
337
|
|
|
338
338
|
export default PolicyCard;
|
package/es/radio/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import './style/index.less';
|
|
|
4
4
|
import { FormInstance } from 'antd/es/form';
|
|
5
5
|
declare type Props = RadioProps & IglooComponentProps;
|
|
6
6
|
declare const IglooRadio: FC<Props>;
|
|
7
|
-
interface Option extends RadioProps {
|
|
7
|
+
export interface Option extends RadioProps {
|
|
8
8
|
extraInfo?: {
|
|
9
9
|
content: any;
|
|
10
10
|
shownTrigger: 'unchecked' | 'checked' | 'all';
|
|
@@ -19,3 +19,4 @@ export interface IProps extends IglooComponentProps, Omit<RadioGroupProps, 'opti
|
|
|
19
19
|
}
|
|
20
20
|
export declare const RadioGroup: FC<IProps>;
|
|
21
21
|
export default IglooRadio;
|
|
22
|
+
export { default as RadioGroupWithOther } from './radio-group-with-other';
|
package/es/radio/index.js
CHANGED
|
@@ -26,7 +26,7 @@ import './style/index.less';
|
|
|
26
26
|
import Typography from '../typography';
|
|
27
27
|
|
|
28
28
|
var IglooRadio = function IglooRadio(props) {
|
|
29
|
-
return _jsx(_Radio, _objectSpread({}, omit(props, formMethods))
|
|
29
|
+
return _jsx(_Radio, _objectSpread({}, omit(props, formMethods)));
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
IglooRadio.formItemPropsHandler = function () {
|
|
@@ -81,11 +81,11 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
81
81
|
children: _jsx(Typography, {
|
|
82
82
|
level: "body1",
|
|
83
83
|
children: label
|
|
84
|
-
}
|
|
85
|
-
})
|
|
84
|
+
})
|
|
85
|
+
})), _jsx("div", {
|
|
86
86
|
className: "igloo-radio-extra",
|
|
87
87
|
children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
|
|
88
|
-
}
|
|
88
|
+
})]
|
|
89
89
|
}, key) : _jsx(_Col, {
|
|
90
90
|
span: 12,
|
|
91
91
|
className: 'igloo-radio-group-button',
|
|
@@ -99,21 +99,22 @@ export var RadioGroup = function RadioGroup(_ref) {
|
|
|
99
99
|
children: _jsx(Typography, {
|
|
100
100
|
level: "body1",
|
|
101
101
|
children: label
|
|
102
|
-
}
|
|
103
|
-
}
|
|
102
|
+
})
|
|
103
|
+
}), _jsx(_Radio, {
|
|
104
104
|
value: key,
|
|
105
105
|
className: 'igloo-radio-inner-radio'
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
})
|
|
106
|
+
})]
|
|
107
|
+
})
|
|
108
|
+
}))
|
|
109
109
|
}, key);
|
|
110
110
|
})
|
|
111
|
-
}
|
|
112
|
-
})
|
|
111
|
+
})
|
|
112
|
+
}));
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
RadioGroup.formItemPropsHandler = function () {
|
|
116
116
|
return {};
|
|
117
117
|
};
|
|
118
118
|
|
|
119
|
-
export default IglooRadio;
|
|
119
|
+
export default IglooRadio;
|
|
120
|
+
export { default as RadioGroupWithOther } from './radio-group-with-other';
|