iglooform 2.4.8 → 2.4.12
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 +25 -35
- package/es/admin-upload/index.d.ts +2 -0
- package/es/admin-upload/index.js +43 -36
- package/es/admin-upload/job-list.js +85 -115
- package/es/admin-upload/modal.js +19 -26
- package/es/alert-message/index.js +11 -9
- package/es/amount/index.js +10 -5
- package/es/back-top/index.js +14 -10
- package/es/button/index.js +23 -28
- package/es/button/style/index.less +23 -19
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +16 -21
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/utils.js +6 -7
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +53 -70
- package/es/confirmation/index.js +7 -9
- package/es/date-picker/buddhist.js +3 -3
- package/es/date-picker/index.js +10 -4
- package/es/declaration/index.js +16 -13
- package/es/detail-panel/index.js +67 -83
- package/es/documents/index.js +6 -8
- package/es/example/index.js +9 -11
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.d.ts +1 -0
- package/es/filter/index.js +88 -112
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/addable-section/index.d.ts +19 -0
- package/es/form/addable-section/index.js +211 -0
- package/es/form/addable-section/style/index.d.ts +1 -0
- package/es/form/addable-section/style/index.js +1 -0
- package/es/form/addable-section/style/index.less +22 -0
- package/es/form/divider/index.js +7 -1
- package/es/form/element/index.js +58 -47
- package/es/form/element/style/index.less +9 -0
- package/es/form/index.js +16 -17
- package/es/form/login/index.js +15 -20
- package/es/form/page/index.js +18 -24
- package/es/form/page/style/index.less +1 -1
- package/es/form/pages/index.js +23 -32
- package/es/form/pages/style/index.less +3 -1
- package/es/form/render/index.js +1 -1
- package/es/form/section/index.js +14 -17
- package/es/form/step/index.js +31 -42
- package/es/form/steps/index.js +8 -11
- package/es/{form/context.d.ts → form-context.d.ts} +1 -0
- package/es/{form/context.js → form-context.js} +0 -0
- package/es/free-form/addable-section/index.d.ts +18 -0
- package/es/free-form/addable-section/index.js +286 -0
- package/es/free-form/addable-section/style/index.d.ts +1 -0
- package/es/free-form/addable-section/style/index.js +1 -0
- package/es/free-form/addable-section/style/index.less +22 -0
- package/es/free-form/element/index.js +43 -41
- package/es/free-form/element/style/index.less +12 -2
- package/es/free-form/index.d.ts +5 -1
- package/es/free-form/index.js +17 -17
- package/es/free-form/page/index.js +36 -46
- package/es/free-form/page/style/index.less +3 -1
- package/es/free-form/pages/index.js +8 -10
- package/es/free-form/section/index.js +20 -22
- package/es/free-form/section/style/index.less +4 -0
- package/es/free-form/step/index.js +37 -47
- package/es/free-form/steps/index.js +8 -10
- package/es/global-message/index.js +1 -1
- package/es/home-menu/index.js +52 -71
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/input/amount.js +10 -5
- package/es/input/credit-card.js +7 -1
- package/es/input/email.js +8 -1
- package/es/input/expiry-date.js +14 -18
- package/es/input/input-date.js +12 -16
- package/es/input/input-number.js +9 -2
- package/es/input/input.js +9 -2
- package/es/input/otp.js +17 -15
- package/es/input/password.js +12 -6
- package/es/input/phone-number.js +6 -8
- package/es/input/style/index.less +9 -1
- package/es/input/text-area.js +14 -10
- package/es/layout/defaultFooter.js +60 -82
- package/es/layout/defaultHeader.js +11 -15
- package/es/layout/footer.js +108 -148
- package/es/layout/header.js +51 -60
- package/es/layout/index.js +16 -12
- package/es/locale/en-US/messages.json +2 -0
- package/es/locale/id-ID/messages.json +2 -0
- package/es/locale/locale-provider.js +8 -10
- package/es/locale/th-TH/messages.json +2 -0
- package/es/locale/vi-VN/messages.json +2 -0
- package/es/locale/zh-CN/messages.json +2 -0
- package/es/login-page/index.js +30 -42
- package/es/media/index.js +20 -27
- package/es/media/media.js +9 -12
- package/es/media/preview.js +8 -10
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.d.ts +4 -3
- package/es/modal/index.js +25 -27
- package/es/modal/style/index.less +24 -5
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +11 -14
- package/es/policy-list/policy-card.js +119 -153
- package/es/radio/index.js +33 -35
- package/es/select/attached-select.js +31 -34
- package/es/select/select.js +12 -8
- package/es/select/style/index.less +1 -1
- package/es/select/time-select.js +12 -16
- package/es/status-box/index.js +8 -10
- package/es/table/index.js +72 -96
- package/es/tabs/index.js +7 -1
- package/es/types.d.ts +4 -2
- package/es/typography/index.js +6 -8
- package/es/upload/index.d.ts +2 -1
- package/es/upload/index.js +169 -143
- package/es/upload-photo/index.d.ts +2 -1
- package/es/upload-photo/index.js +170 -142
- package/es/upload-photo/media.js +3 -4
- package/es/upload-preview/index.js +9 -12
- package/es/upload-preview/media.js +12 -16
- package/es/utils/form-utils.js +49 -36
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.d.ts +2 -0
- package/lib/admin-upload/index.js +43 -36
- package/lib/admin-upload/job-list.js +85 -115
- package/lib/admin-upload/modal.js +19 -26
- package/lib/alert-message/index.js +11 -9
- package/lib/amount/index.js +10 -5
- package/lib/back-top/index.js +14 -10
- package/lib/button/index.js +24 -29
- package/lib/button/style/index.less +23 -19
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +16 -21
- package/lib/card-detail/card-page.js +11 -15
- package/lib/card-detail/card.js +24 -24
- package/lib/card-detail/index.js +6 -6
- package/lib/card-detail/utils.js +7 -8
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +53 -70
- package/lib/confirmation/index.js +7 -9
- package/lib/date-picker/buddhist.js +3 -3
- package/lib/date-picker/index.js +11 -5
- package/lib/declaration/index.js +16 -13
- package/lib/detail-panel/index.js +67 -83
- package/lib/documents/index.js +6 -8
- package/lib/example/index.js +10 -12
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.d.ts +1 -0
- package/lib/filter/index.js +88 -112
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/addable-section/index.d.ts +19 -0
- package/lib/form/addable-section/index.js +232 -0
- package/lib/form/addable-section/style/index.d.ts +1 -0
- package/lib/form/addable-section/style/index.js +3 -0
- package/lib/form/addable-section/style/index.less +22 -0
- package/lib/form/divider/index.js +7 -1
- package/lib/form/element/index.js +60 -48
- package/lib/form/element/style/index.less +9 -0
- package/lib/form/elements.js +1 -1
- package/lib/form/index.js +16 -17
- package/lib/form/login/index.js +16 -21
- package/lib/form/page/index.js +19 -25
- package/lib/form/page/style/index.less +1 -1
- package/lib/form/pages/index.js +24 -33
- package/lib/form/pages/style/index.less +3 -1
- package/lib/form/render/index.js +2 -2
- package/lib/form/section/index.js +15 -18
- package/lib/form/step/index.js +32 -43
- package/lib/form/steps/index.js +9 -12
- package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
- package/lib/{form/context.js → form-context.js} +0 -0
- package/lib/free-form/addable-section/index.d.ts +18 -0
- package/lib/free-form/addable-section/index.js +306 -0
- package/lib/free-form/addable-section/style/index.d.ts +1 -0
- package/lib/free-form/addable-section/style/index.js +3 -0
- package/lib/free-form/addable-section/style/index.less +22 -0
- package/lib/free-form/element/index.js +44 -42
- package/lib/free-form/element/style/index.less +12 -2
- package/lib/free-form/index.d.ts +5 -1
- package/lib/free-form/index.js +17 -17
- package/lib/free-form/page/index.js +37 -47
- package/lib/free-form/page/style/index.less +3 -1
- package/lib/free-form/pages/index.js +8 -10
- package/lib/free-form/section/index.js +21 -23
- package/lib/free-form/section/style/index.less +4 -0
- package/lib/free-form/step/index.js +38 -48
- package/lib/free-form/steps/index.js +9 -11
- package/lib/global-message/index.js +1 -1
- package/lib/home-menu/index.js +52 -71
- package/lib/index.d.ts +1 -0
- package/lib/index.js +141 -132
- package/lib/input/amount.js +10 -5
- package/lib/input/credit-card.js +7 -1
- package/lib/input/email.js +7 -1
- package/lib/input/expiry-date.js +14 -18
- package/lib/input/index.js +18 -18
- package/lib/input/input-date.js +12 -16
- package/lib/input/input-number.js +8 -2
- package/lib/input/input.js +8 -2
- package/lib/input/otp.js +17 -15
- package/lib/input/password.js +11 -6
- package/lib/input/phone-number.js +6 -8
- package/lib/input/style/index.less +9 -1
- package/lib/input/text-area.js +14 -10
- package/lib/layout/defaultFooter.js +60 -82
- package/lib/layout/defaultHeader.js +11 -15
- package/lib/layout/footer.js +108 -148
- package/lib/layout/header.js +51 -60
- package/lib/layout/index.js +15 -12
- package/lib/locale/en-US/messages.json +2 -0
- package/lib/locale/format-message.js +1 -1
- package/lib/locale/id-ID/messages.json +2 -0
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +9 -11
- package/lib/locale/th-TH/messages.json +2 -0
- package/lib/locale/vi-VN/messages.json +2 -0
- package/lib/locale/zh-CN/messages.json +2 -0
- package/lib/login-page/index.js +30 -42
- package/lib/media/index.js +20 -27
- package/lib/media/media.js +9 -12
- package/lib/media/preview.js +8 -10
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.d.ts +4 -3
- package/lib/modal/index.js +25 -27
- package/lib/modal/style/index.less +24 -5
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +11 -14
- package/lib/policy-list/policy-card.js +119 -153
- package/lib/radio/index.js +33 -35
- package/lib/select/attached-select.js +32 -35
- package/lib/select/select.js +13 -9
- package/lib/select/style/index.less +1 -1
- package/lib/select/time-select.js +12 -16
- package/lib/status-box/index.js +8 -10
- package/lib/table/index.js +72 -96
- package/lib/tabs/index.js +8 -2
- package/lib/types.d.ts +4 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.d.ts +2 -1
- package/lib/upload/index.js +170 -143
- package/lib/upload-photo/index.d.ts +2 -1
- package/lib/upload-photo/index.js +171 -142
- package/lib/upload-photo/media.js +3 -4
- package/lib/upload-preview/index.js +9 -12
- package/lib/upload-preview/media.js +12 -16
- package/lib/utils/form-utils.js +49 -37
- package/package.json +1 -1
- package/es/free-form/context.d.ts +0 -19
- package/es/free-form/context.js +0 -7
- package/lib/free-form/context.d.ts +0 -19
- package/lib/free-form/context.js +0 -19
|
@@ -58,6 +58,10 @@
|
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
.igloo-modal-no-limit-height {
|
|
62
|
+
padding-bottom: 100px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
61
65
|
.igloo-modal {
|
|
62
66
|
top: 100px;
|
|
63
67
|
padding: 0;
|
|
@@ -81,10 +85,14 @@
|
|
|
81
85
|
}
|
|
82
86
|
}
|
|
83
87
|
|
|
84
|
-
.igloo-modal-no-footer {
|
|
88
|
+
.igloo-modal-no-footer.igloo-modal-limit-height {
|
|
85
89
|
.ant-modal-body {
|
|
86
90
|
max-height: calc(~'100vh' - 260px);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
87
93
|
|
|
94
|
+
.igloo-modal-no-footer {
|
|
95
|
+
.ant-modal-body {
|
|
88
96
|
.ant-modal-confirm-btns {
|
|
89
97
|
display: none;
|
|
90
98
|
}
|
|
@@ -98,6 +106,10 @@
|
|
|
98
106
|
}
|
|
99
107
|
}
|
|
100
108
|
|
|
109
|
+
.igloo-modal-no-limit-height {
|
|
110
|
+
padding-bottom: 50px !important;
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
.igloo-modal {
|
|
102
114
|
top: 50px;
|
|
103
115
|
width: calc(~'100%' - 32px);
|
|
@@ -126,22 +138,29 @@
|
|
|
126
138
|
|
|
127
139
|
.igloo-modal-footer-btns {
|
|
128
140
|
width: 100%;
|
|
141
|
+
display: flex;
|
|
142
|
+
flex-direction: column-reverse;
|
|
129
143
|
|
|
130
144
|
.igloo-modal-footer-button {
|
|
131
145
|
width: 100%;
|
|
132
|
-
margin: 0 !important;
|
|
146
|
+
margin-left: 0 !important;
|
|
147
|
+
margin-right: 0 !important;
|
|
133
148
|
|
|
134
|
-
|
|
135
|
-
margin-
|
|
149
|
+
& + .igloo-modal-footer-button {
|
|
150
|
+
margin-bottom: 12px;
|
|
136
151
|
}
|
|
137
152
|
}
|
|
138
153
|
}
|
|
139
154
|
}
|
|
140
155
|
|
|
141
|
-
.igloo-modal-no-footer {
|
|
156
|
+
.igloo-modal-no-footer.igloo-modal-limit-height {
|
|
142
157
|
.ant-modal-body {
|
|
143
158
|
max-height: calc(~'100vh' - 160px);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
144
161
|
|
|
162
|
+
.igloo-modal-no-footer {
|
|
163
|
+
.ant-modal-body {
|
|
145
164
|
.ant-modal-confirm-btns {
|
|
146
165
|
display: none;
|
|
147
166
|
}
|
|
@@ -44,25 +44,22 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
44
44
|
showDefault = _useState2[0],
|
|
45
45
|
setShowDefault = _useState2[1];
|
|
46
46
|
|
|
47
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
47
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
48
48
|
className: (0, _classnames.default)('igloo-platform', className),
|
|
49
49
|
onClick: onClick,
|
|
50
|
-
style: style
|
|
51
|
-
|
|
52
|
-
children: [showDefault && (0, _jsxRuntime.jsxs)("div", Object.assign({
|
|
50
|
+
style: style,
|
|
51
|
+
children: [showDefault && (0, _jsxRuntime.jsxs)("div", {
|
|
53
52
|
style: {
|
|
54
53
|
textAlign: 'center'
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
54
|
+
},
|
|
57
55
|
children: [(0, _jsxRuntime.jsx)("img", {
|
|
58
56
|
src: _default2.default,
|
|
59
57
|
className: "igloo-platform-defaultLogo"
|
|
60
|
-
}, void 0), (0, _jsxRuntime.jsx)("div",
|
|
61
|
-
className: "igloo-platform-name"
|
|
62
|
-
}, {
|
|
58
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
59
|
+
className: "igloo-platform-name",
|
|
63
60
|
children: platform
|
|
64
|
-
}
|
|
65
|
-
}
|
|
61
|
+
}, void 0)]
|
|
62
|
+
}, void 0), !showDefault && (0, _jsxRuntime.jsx)(_image.default, {
|
|
66
63
|
width: 200,
|
|
67
64
|
height: 200,
|
|
68
65
|
src: "https://static.iglooinsure.com/partner/normal/".concat(platform.toLowerCase(), ".svg"),
|
|
@@ -71,7 +68,7 @@ var PlatformCard = function PlatformCard(_ref) {
|
|
|
71
68
|
},
|
|
72
69
|
preview: false
|
|
73
70
|
}, void 0)]
|
|
74
|
-
}
|
|
71
|
+
}, void 0);
|
|
75
72
|
};
|
|
76
73
|
|
|
77
74
|
var _default = PlatformCard;
|
|
@@ -60,41 +60,35 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
60
60
|
onChange(e.key);
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
-
return (0, _jsxRuntime.jsx)(_dropdown.default,
|
|
63
|
+
return (0, _jsxRuntime.jsx)(_dropdown.default, {
|
|
64
64
|
className: "igloo-switch-platform",
|
|
65
65
|
trigger: ['click'],
|
|
66
|
-
overlay: (0, _jsxRuntime.jsx)(_menu.default,
|
|
67
|
-
onClick: handleChange
|
|
68
|
-
}, {
|
|
66
|
+
overlay: (0, _jsxRuntime.jsx)(_menu.default, {
|
|
67
|
+
onClick: handleChange,
|
|
69
68
|
children: platforms === null || platforms === void 0 ? void 0 : platforms.map(function (name) {
|
|
70
|
-
return (0, _jsxRuntime.jsxs)(_menu.default.Item,
|
|
71
|
-
className: "igloo-switch-platform-option"
|
|
72
|
-
}, {
|
|
69
|
+
return (0, _jsxRuntime.jsxs)(_menu.default.Item, {
|
|
70
|
+
className: "igloo-switch-platform-option",
|
|
73
71
|
children: [(0, _jsxRuntime.jsx)(_image.default, {
|
|
74
72
|
src: "https://static.iglooinsure.com/partner/square/".concat(name.toLowerCase(), ".svg"),
|
|
75
73
|
className: "igloo-switch-platform-default-logo",
|
|
76
74
|
fallback: _default2.default,
|
|
77
75
|
preview: false
|
|
78
|
-
}, void 0), (0, _jsxRuntime.jsx)("span",
|
|
79
|
-
className: "igloo-switch-platform-name"
|
|
80
|
-
}, {
|
|
76
|
+
}, void 0), (0, _jsxRuntime.jsx)("span", {
|
|
77
|
+
className: "igloo-switch-platform-name",
|
|
81
78
|
children: name
|
|
82
|
-
}
|
|
83
|
-
}
|
|
79
|
+
}, void 0)]
|
|
80
|
+
}, name);
|
|
84
81
|
})
|
|
85
|
-
}
|
|
82
|
+
}, void 0),
|
|
86
83
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
87
84
|
return trigger.parentElement;
|
|
88
85
|
},
|
|
89
|
-
placement: "bottomCenter"
|
|
90
|
-
|
|
91
|
-
children: (0, _jsxRuntime.jsxs)(_space.default, Object.assign({
|
|
86
|
+
placement: "bottomCenter",
|
|
87
|
+
children: (0, _jsxRuntime.jsxs)(_space.default, {
|
|
92
88
|
size: 8,
|
|
93
|
-
align: "center"
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
className: "igloo-switch-platform-nav"
|
|
97
|
-
}, {
|
|
89
|
+
align: "center",
|
|
90
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
91
|
+
className: "igloo-switch-platform-nav",
|
|
98
92
|
children: !showDefault ? (0, _jsxRuntime.jsx)(_image.default, {
|
|
99
93
|
src: "https://static.iglooinsure.com/partner/nav/".concat(currentPlatform.toLowerCase(), ".svg"),
|
|
100
94
|
className: "igloo-switch-platform-nav-logo",
|
|
@@ -102,24 +96,22 @@ var SwitchPlatform = function SwitchPlatform(_ref) {
|
|
|
102
96
|
return setShowDefault(true);
|
|
103
97
|
},
|
|
104
98
|
preview: false
|
|
105
|
-
}, void 0) : (0, _jsxRuntime.jsxs)(_space.default,
|
|
99
|
+
}, void 0) : (0, _jsxRuntime.jsxs)(_space.default, {
|
|
106
100
|
size: 8,
|
|
107
|
-
align: "center"
|
|
108
|
-
}, {
|
|
101
|
+
align: "center",
|
|
109
102
|
children: [(0, _jsxRuntime.jsx)("img", {
|
|
110
103
|
src: _default2.default,
|
|
111
104
|
className: "igloo-switch-platform-default-logo"
|
|
112
|
-
}, void 0), (0, _jsxRuntime.jsx)("span",
|
|
113
|
-
className: "igloo-switch-platform-name"
|
|
114
|
-
}, {
|
|
105
|
+
}, void 0), (0, _jsxRuntime.jsx)("span", {
|
|
106
|
+
className: "igloo-switch-platform-name",
|
|
115
107
|
children: currentPlatform
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
108
|
+
}, void 0)]
|
|
109
|
+
}, void 0)
|
|
110
|
+
}, void 0), (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
119
111
|
className: "igloo-switch-platform-arrow"
|
|
120
112
|
}, void 0)]
|
|
121
|
-
}
|
|
122
|
-
}
|
|
113
|
+
}, void 0)
|
|
114
|
+
}, void 0);
|
|
123
115
|
};
|
|
124
116
|
|
|
125
117
|
var _default = SwitchPlatform;
|
package/lib/policy-list/index.js
CHANGED
|
@@ -23,9 +23,9 @@ var _typography = _interopRequireDefault(require("../typography"));
|
|
|
23
23
|
|
|
24
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
25
|
|
|
26
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
26
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
27
27
|
|
|
28
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
29
|
|
|
30
30
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
31
|
|
|
@@ -43,16 +43,14 @@ var PolicyList = function PolicyList(props) {
|
|
|
43
43
|
emptyText = _props$emptyText === void 0 ? 'There is currently no expired policy.' : _props$emptyText;
|
|
44
44
|
|
|
45
45
|
if (dataList.length === 0) {
|
|
46
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
46
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
47
47
|
className: (0, _classnames.default)('igloo-policy-list-empty', className),
|
|
48
|
-
style: style
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
level: "body1"
|
|
52
|
-
}, {
|
|
48
|
+
style: style,
|
|
49
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
50
|
+
level: "body1",
|
|
53
51
|
children: emptyText
|
|
54
|
-
}
|
|
55
|
-
}
|
|
52
|
+
}, void 0)
|
|
53
|
+
}, void 0);
|
|
56
54
|
}
|
|
57
55
|
|
|
58
56
|
if (!md) {
|
|
@@ -63,16 +61,15 @@ var PolicyList = function PolicyList(props) {
|
|
|
63
61
|
}, void 0);
|
|
64
62
|
}
|
|
65
63
|
|
|
66
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
64
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
67
65
|
className: (0, _classnames.default)('igloo-policy-list', className),
|
|
68
|
-
style: style
|
|
69
|
-
}, {
|
|
66
|
+
style: style,
|
|
70
67
|
children: dataList.map(function (policyProps, index) {
|
|
71
68
|
return /*#__PURE__*/(0, _react.createElement)(_policyCard.default, _objectSpread(_objectSpread({}, policyProps), {}, {
|
|
72
69
|
key: index
|
|
73
70
|
}));
|
|
74
71
|
})
|
|
75
|
-
}
|
|
72
|
+
}, void 0);
|
|
76
73
|
};
|
|
77
74
|
|
|
78
75
|
var _default = PolicyList;
|
|
@@ -37,6 +37,12 @@ require("./style/index");
|
|
|
37
37
|
|
|
38
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
39
39
|
|
|
40
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
41
|
+
|
|
42
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
43
|
+
|
|
44
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
45
|
+
|
|
40
46
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
41
47
|
|
|
42
48
|
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
@@ -112,22 +118,18 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
112
118
|
};
|
|
113
119
|
}();
|
|
114
120
|
|
|
115
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
121
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
116
122
|
className: (0, _classnames.default)('igloo-policy-container', className),
|
|
117
|
-
style: style
|
|
118
|
-
|
|
119
|
-
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({
|
|
123
|
+
style: style,
|
|
124
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
120
125
|
className: "container-top",
|
|
121
126
|
onClick: function onClick() {
|
|
122
127
|
return topOnclick(props);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
children: [(0, _jsxRuntime.jsxs)("div", Object.assign({
|
|
129
|
-
className: "left-arrow-container"
|
|
130
|
-
}, {
|
|
128
|
+
},
|
|
129
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
130
|
+
className: "top-left",
|
|
131
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
132
|
+
className: "left-arrow-container",
|
|
131
133
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
132
134
|
className: (0, _classnames.default)({
|
|
133
135
|
'hide-icon': !extend
|
|
@@ -137,22 +139,19 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
137
139
|
'hide-icon': extend
|
|
138
140
|
})
|
|
139
141
|
}, void 0)]
|
|
140
|
-
}
|
|
141
|
-
className: "left-logo-container"
|
|
142
|
-
}, {
|
|
142
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
143
|
+
className: "left-logo-container",
|
|
143
144
|
children: insurerLogo
|
|
144
|
-
}
|
|
145
|
+
}, void 0), (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
145
146
|
level: "h4",
|
|
146
|
-
className: "left-title-container"
|
|
147
|
-
}, {
|
|
147
|
+
className: "left-title-container",
|
|
148
148
|
children: [insurerName, " ", insurerType]
|
|
149
|
-
}
|
|
150
|
-
className: "left-status"
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
return item.render ? item.render() : (0, _jsxRuntime.jsx)(_button.default, Object.assign({
|
|
149
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
150
|
+
className: "left-status",
|
|
151
|
+
children: (0, _jsxRuntime.jsx)(_statusBox.default, _objectSpread({}, statusProps), void 0)
|
|
152
|
+
}, void 0)]
|
|
153
|
+
}, void 0), buttons && buttons.map(function (item, index) {
|
|
154
|
+
return item.render ? item.render() : (0, _jsxRuntime.jsx)(_button.default, {
|
|
156
155
|
icon: item.icon,
|
|
157
156
|
onClick: function onClick(e) {
|
|
158
157
|
e.stopPropagation();
|
|
@@ -161,25 +160,20 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
161
160
|
type: item.type || 'default',
|
|
162
161
|
style: {
|
|
163
162
|
marginRight: "".concat(index === buttons.length - 1 ? 0 : 16, "px")
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
level: "h4"
|
|
168
|
-
}, {
|
|
163
|
+
},
|
|
164
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
165
|
+
level: "h4",
|
|
169
166
|
children: item.label
|
|
170
|
-
}
|
|
171
|
-
}
|
|
167
|
+
}, void 0)
|
|
168
|
+
}, String(item) + index);
|
|
172
169
|
})]
|
|
173
|
-
}
|
|
174
|
-
className: "message-container"
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
children: (0, _jsxRuntime.jsx)(_row.default, Object.assign({
|
|
181
|
-
gutter: [24, 32]
|
|
182
|
-
}, {
|
|
170
|
+
}, void 0), messageBar && (0, _jsxRuntime.jsx)("div", {
|
|
171
|
+
className: "message-container",
|
|
172
|
+
children: (0, _jsxRuntime.jsx)(_alertMessage.default, _objectSpread({}, messageBar), void 0)
|
|
173
|
+
}, void 0), defaultItems && (0, _jsxRuntime.jsx)("div", {
|
|
174
|
+
className: "container-bottom",
|
|
175
|
+
children: (0, _jsxRuntime.jsx)(_row.default, {
|
|
176
|
+
gutter: [24, 32],
|
|
183
177
|
children: defaultItems.map(function (infoItem, index) {
|
|
184
178
|
var _infoItem$span = infoItem.span,
|
|
185
179
|
span = _infoItem$span === void 0 ? 6 : _infoItem$span,
|
|
@@ -192,32 +186,27 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
192
186
|
}
|
|
193
187
|
|
|
194
188
|
var textArr = Array.isArray(info) ? info : [info];
|
|
195
|
-
return (0, _jsxRuntime.jsxs)(_col.default,
|
|
189
|
+
return (0, _jsxRuntime.jsxs)(_col.default, {
|
|
196
190
|
className: "bottom-info-container",
|
|
197
|
-
span: span
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
|
|
203
|
-
level: "body1"
|
|
204
|
-
}, {
|
|
191
|
+
span: span,
|
|
192
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
193
|
+
className: "info-title",
|
|
194
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
195
|
+
level: "body1",
|
|
205
196
|
children: title
|
|
206
|
-
}
|
|
207
|
-
}
|
|
197
|
+
}, void 0)
|
|
198
|
+
}, void 0), textArr.map(function (textItem, index) {
|
|
208
199
|
var text = textItem.text,
|
|
209
200
|
link = textItem.link;
|
|
210
201
|
|
|
211
202
|
if (typeof textItem === 'string' || link === undefined || link.length === 0) {
|
|
212
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
213
|
-
className: "info-text-and-link"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
level: "body1"
|
|
217
|
-
}, {
|
|
203
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
204
|
+
className: "info-text-and-link",
|
|
205
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
206
|
+
level: "body1",
|
|
218
207
|
children: textItem
|
|
219
|
-
}
|
|
220
|
-
}
|
|
208
|
+
}, void 0)
|
|
209
|
+
}, index);
|
|
221
210
|
} // 处理link (一个or多个,换行or不换行)
|
|
222
211
|
|
|
223
212
|
|
|
@@ -226,73 +215,62 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
226
215
|
|
|
227
216
|
if (onlyOneLink) {
|
|
228
217
|
var onClick = link.onClick;
|
|
229
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
230
|
-
className: "info-text-and-link"
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
level: "body1"
|
|
234
|
-
}, {
|
|
218
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
219
|
+
className: "info-text-and-link",
|
|
220
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
221
|
+
level: "body1",
|
|
235
222
|
children: text
|
|
236
|
-
}
|
|
223
|
+
}, void 0), (0, _jsxRuntime.jsx)(_button.default, {
|
|
237
224
|
onClick: onClick ? function () {
|
|
238
225
|
return onClick(props);
|
|
239
226
|
} : function () {},
|
|
240
|
-
type: "link"
|
|
241
|
-
}, {
|
|
227
|
+
type: "link",
|
|
242
228
|
children: link.linkText
|
|
243
|
-
}
|
|
244
|
-
}
|
|
229
|
+
}, void 0)]
|
|
230
|
+
}, index);
|
|
245
231
|
}
|
|
246
232
|
|
|
247
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
248
|
-
className: "info-text-and-link-mult-link"
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
level: "body1"
|
|
252
|
-
}, {
|
|
233
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
234
|
+
className: "info-text-and-link-mult-link",
|
|
235
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
236
|
+
level: "body1",
|
|
253
237
|
children: text
|
|
254
|
-
}
|
|
238
|
+
}, void 0), linkArr.map(function (linkObj, index) {
|
|
255
239
|
var onClick = linkObj.onClick;
|
|
256
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
240
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
257
241
|
style: {
|
|
258
242
|
marginTop: 2
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
children: (0, _jsxRuntime.jsx)(_button.default, Object.assign({
|
|
243
|
+
},
|
|
244
|
+
children: (0, _jsxRuntime.jsx)(_button.default, {
|
|
262
245
|
onClick: onClick ? function () {
|
|
263
246
|
return onClick(props);
|
|
264
247
|
} : function () {},
|
|
265
|
-
type: "link"
|
|
266
|
-
}, {
|
|
248
|
+
type: "link",
|
|
267
249
|
children: linkObj.linkText
|
|
268
|
-
}
|
|
269
|
-
}
|
|
250
|
+
}, void 0)
|
|
251
|
+
}, index);
|
|
270
252
|
})]
|
|
271
|
-
}
|
|
253
|
+
}, index);
|
|
272
254
|
})]
|
|
273
|
-
}
|
|
255
|
+
}, index);
|
|
274
256
|
})
|
|
275
|
-
}
|
|
276
|
-
}
|
|
257
|
+
}, void 0)
|
|
258
|
+
}, void 0), (0, _jsxRuntime.jsx)(_collapse.default, {
|
|
277
259
|
className: "igloo-policy-collapse-container",
|
|
278
|
-
activeKey: extend ? allActiveKeys : []
|
|
279
|
-
}, {
|
|
260
|
+
activeKey: extend ? allActiveKeys : [],
|
|
280
261
|
children: infoGroups.map(function (group, index) {
|
|
281
262
|
var infoItems = group.infoItems,
|
|
282
263
|
sectionName = group.sectionName;
|
|
283
|
-
return (0, _jsxRuntime.jsxs)(Panel,
|
|
264
|
+
return (0, _jsxRuntime.jsxs)(Panel, {
|
|
284
265
|
header: '',
|
|
285
266
|
showArrow: false,
|
|
286
|
-
className: "panel-group-container"
|
|
287
|
-
|
|
288
|
-
children: [sectionName && (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
|
|
267
|
+
className: "panel-group-container",
|
|
268
|
+
children: [sectionName && (0, _jsxRuntime.jsx)(_typography.default, {
|
|
289
269
|
level: "h4",
|
|
290
|
-
className: "panel-group-section-name"
|
|
291
|
-
}, {
|
|
270
|
+
className: "panel-group-section-name",
|
|
292
271
|
children: sectionName
|
|
293
|
-
}
|
|
294
|
-
gutter: [24, 16]
|
|
295
|
-
}, {
|
|
272
|
+
}, void 0), (0, _jsxRuntime.jsx)(_row.default, {
|
|
273
|
+
gutter: [24, 16],
|
|
296
274
|
children: infoItems.map(function (item, index) {
|
|
297
275
|
var _item$span = item.span,
|
|
298
276
|
span = _item$span === void 0 ? 6 : _item$span,
|
|
@@ -305,31 +283,26 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
305
283
|
return;
|
|
306
284
|
}
|
|
307
285
|
|
|
308
|
-
return (0, _jsxRuntime.jsxs)(_col.default,
|
|
309
|
-
span: span
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
|
|
315
|
-
level: "body1"
|
|
316
|
-
}, {
|
|
286
|
+
return (0, _jsxRuntime.jsxs)(_col.default, {
|
|
287
|
+
span: span,
|
|
288
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
289
|
+
className: "info-title",
|
|
290
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
291
|
+
level: "body1",
|
|
317
292
|
children: title
|
|
318
|
-
}
|
|
319
|
-
}
|
|
293
|
+
}, void 0)
|
|
294
|
+
}, void 0), textArr.map(function (textItem, index) {
|
|
320
295
|
var text = textItem.text,
|
|
321
296
|
link = textItem.link;
|
|
322
297
|
|
|
323
298
|
if (typeof textItem === 'string' || link === undefined || link.length === 0) {
|
|
324
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
325
|
-
className: "info-text-and-link"
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
level: "body1"
|
|
329
|
-
}, {
|
|
299
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
300
|
+
className: "info-text-and-link",
|
|
301
|
+
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
302
|
+
level: "body1",
|
|
330
303
|
children: textItem
|
|
331
|
-
}
|
|
332
|
-
}
|
|
304
|
+
}, void 0)
|
|
305
|
+
}, index);
|
|
333
306
|
} // 处理link (一个or多个,换行or不换行)
|
|
334
307
|
|
|
335
308
|
|
|
@@ -338,57 +311,50 @@ var PolicyCard = function PolicyCard(props) {
|
|
|
338
311
|
|
|
339
312
|
if (onlyOneLink) {
|
|
340
313
|
var onClick = link.onClick;
|
|
341
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
342
|
-
className: "info-text-and-link"
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
level: "body1"
|
|
346
|
-
}, {
|
|
314
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
315
|
+
className: "info-text-and-link",
|
|
316
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
317
|
+
level: "body1",
|
|
347
318
|
children: text
|
|
348
|
-
}
|
|
319
|
+
}, void 0), (0, _jsxRuntime.jsx)(_button.default, {
|
|
349
320
|
onClick: onClick ? function () {
|
|
350
321
|
return onClick(props);
|
|
351
322
|
} : function () {},
|
|
352
|
-
type: "link"
|
|
353
|
-
}, {
|
|
323
|
+
type: "link",
|
|
354
324
|
children: link.linkText
|
|
355
|
-
}
|
|
356
|
-
}
|
|
325
|
+
}, void 0)]
|
|
326
|
+
}, index);
|
|
357
327
|
}
|
|
358
328
|
|
|
359
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
360
|
-
className: "info-text-and-link-mult-link"
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
level: "body1"
|
|
364
|
-
}, {
|
|
329
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
330
|
+
className: "info-text-and-link-mult-link",
|
|
331
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
332
|
+
level: "body1",
|
|
365
333
|
children: text
|
|
366
|
-
}
|
|
334
|
+
}, void 0), linkArr.map(function (linkObj, index) {
|
|
367
335
|
var onClick = linkObj.onClick;
|
|
368
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
336
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
369
337
|
style: {
|
|
370
338
|
marginTop: 2
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
children: (0, _jsxRuntime.jsx)(_button.default, Object.assign({
|
|
339
|
+
},
|
|
340
|
+
children: (0, _jsxRuntime.jsx)(_button.default, {
|
|
374
341
|
onClick: onClick ? function () {
|
|
375
342
|
return onClick(props);
|
|
376
343
|
} : function () {},
|
|
377
|
-
type: "link"
|
|
378
|
-
}, {
|
|
344
|
+
type: "link",
|
|
379
345
|
children: linkObj.linkText
|
|
380
|
-
}
|
|
381
|
-
}
|
|
346
|
+
}, void 0)
|
|
347
|
+
}, index);
|
|
382
348
|
})]
|
|
383
|
-
}
|
|
349
|
+
}, index);
|
|
384
350
|
})]
|
|
385
|
-
}
|
|
351
|
+
}, index);
|
|
386
352
|
})
|
|
387
|
-
}
|
|
388
|
-
}
|
|
353
|
+
}, void 0)]
|
|
354
|
+
}, index);
|
|
389
355
|
})
|
|
390
|
-
}
|
|
391
|
-
}
|
|
356
|
+
}, void 0)]
|
|
357
|
+
}, void 0);
|
|
392
358
|
};
|
|
393
359
|
|
|
394
360
|
var _default = PolicyCard;
|