iglooform 2.4.6 → 2.4.10
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.js +18 -25
- package/es/admin-upload/job-list.js +83 -113
- 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 +21 -26
- package/es/button/style/index.less +11 -25
- package/es/card-detail/card-group.js +16 -22
- package/es/card-detail/card-item.js +15 -20
- package/es/card-detail/card-page.js +11 -15
- package/es/card-detail/card.js +24 -24
- package/es/card-detail/style/index.less +13 -0
- package/es/card-detail/utils.js +3 -4
- package/es/checkbox/index.js +23 -22
- package/es/claim-list/index.js +51 -68
- package/es/confirmation/index.js +5 -7
- package/es/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/es/filter/checkBox.js +33 -45
- package/es/filter/customize.js +3 -4
- package/es/filter/index.js +79 -107
- package/es/filter/radioBox.js +23 -31
- package/es/filter/rangePicker.js +43 -59
- package/es/form/addable-section/index.d.ts +14 -0
- package/es/form/addable-section/index.js +188 -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 +39 -36
- package/es/form/element/style/index.less +4 -0
- package/es/form/index.js +9 -12
- package/es/form/login/index.js +14 -19
- package/es/form/page/index.js +17 -23
- package/es/form/pages/index.js +22 -30
- package/es/form/section/index.js +11 -14
- package/es/form/step/index.js +30 -41
- package/es/form/steps/index.js +9 -9
- package/es/free-form/addable-section/index.d.ts +13 -0
- package/es/free-form/addable-section/index.js +263 -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 +21 -27
- package/es/free-form/element/style/index.less +4 -0
- package/es/free-form/index.js +9 -12
- package/es/free-form/page/index.js +28 -39
- package/es/free-form/pages/index.js +6 -8
- package/es/free-form/section/index.js +11 -14
- package/es/free-form/step/index.js +30 -41
- package/es/free-form/steps/index.d.ts +1 -0
- package/es/free-form/steps/index.js +8 -8
- 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 +12 -16
- 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 +50 -59
- 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 +6 -8
- 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 +6 -8
- package/es/mobile-insurer-detail/index.js +74 -91
- package/es/mobile-insurer-list/index.js +34 -38
- package/es/modal/index.js +20 -25
- package/es/platform/platform-card/index.js +9 -12
- package/es/platform/switch-platform/index.js +24 -32
- package/es/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/es/status-box/index.js +6 -8
- package/es/table/index.js +69 -93
- package/es/tabs/index.js +7 -1
- package/es/typography/index.js +6 -8
- package/es/upload/index.js +48 -66
- package/es/upload-photo/index.js +47 -63
- 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/upload-preview/style/index.less +2 -2
- package/es/utils/form-utils.js +19 -26
- package/lib/admin-upload/float.js +25 -35
- package/lib/admin-upload/index.js +18 -25
- package/lib/admin-upload/job-list.js +83 -113
- 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 +22 -27
- package/lib/button/style/index.less +11 -25
- package/lib/card-detail/card-group.js +16 -22
- package/lib/card-detail/card-item.js +15 -20
- 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/style/index.less +13 -0
- package/lib/card-detail/utils.js +4 -5
- package/lib/checkbox/index.js +24 -23
- package/lib/claim-list/index.js +51 -68
- package/lib/confirmation/index.js +5 -7
- package/lib/date-picker/buddhist.js +1 -1
- 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 +3 -4
- package/lib/filter/checkBox.js +33 -45
- package/lib/filter/customize.js +3 -4
- package/lib/filter/index.js +79 -107
- package/lib/filter/radioBox.js +23 -31
- package/lib/filter/rangePicker.js +43 -59
- package/lib/form/addable-section/index.d.ts +14 -0
- package/lib/form/addable-section/index.js +209 -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 +40 -36
- package/lib/form/element/style/index.less +4 -0
- package/lib/form/index.js +9 -12
- package/lib/form/login/index.js +14 -19
- package/lib/form/page/index.js +17 -23
- package/lib/form/pages/index.js +22 -30
- package/lib/form/section/index.js +11 -14
- package/lib/form/step/index.js +30 -41
- package/lib/form/steps/index.js +9 -9
- package/lib/free-form/addable-section/index.d.ts +13 -0
- package/lib/free-form/addable-section/index.js +283 -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 +21 -27
- package/lib/free-form/element/style/index.less +4 -0
- package/lib/free-form/index.js +9 -12
- package/lib/free-form/page/index.js +28 -39
- package/lib/free-form/pages/index.js +6 -8
- package/lib/free-form/section/index.js +11 -14
- package/lib/free-form/step/index.js +30 -41
- package/lib/free-form/steps/index.d.ts +1 -0
- package/lib/free-form/steps/index.js +8 -8
- package/lib/home-menu/index.js +52 -71
- package/lib/index.d.ts +1 -0
- package/lib/index.js +140 -131
- 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 +12 -16
- 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 +50 -59
- 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 +7 -9
- 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 +6 -8
- package/lib/mobile-insurer-detail/index.js +74 -91
- package/lib/mobile-insurer-list/index.js +34 -38
- package/lib/modal/index.js +20 -25
- package/lib/platform/platform-card/index.js +9 -12
- package/lib/platform/switch-platform/index.js +24 -32
- package/lib/policy-list/index.js +9 -12
- 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/time-select.js +12 -16
- package/lib/status-box/index.js +6 -8
- package/lib/table/index.js +69 -93
- package/lib/tabs/index.js +8 -2
- package/lib/typography/index.js +6 -8
- package/lib/upload/index.js +48 -66
- package/lib/upload-photo/index.js +47 -63
- 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/upload-preview/style/index.less +2 -2
- package/lib/utils/form-utils.js +20 -27
- package/package.json +1 -1
|
@@ -58,18 +58,16 @@ var LocaleProvider = function LocaleProvider(_ref) {
|
|
|
58
58
|
});
|
|
59
59
|
};
|
|
60
60
|
|
|
61
|
-
return _jsx(LocaleContext.Provider,
|
|
61
|
+
return _jsx(LocaleContext.Provider, {
|
|
62
62
|
value: {
|
|
63
63
|
formatMessage: formatMessage,
|
|
64
64
|
currentLang: currentLang
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
locale: antdLocale[currentLang] || antdDefault
|
|
69
|
-
}, {
|
|
65
|
+
},
|
|
66
|
+
children: _jsx(_ConfigProvider, {
|
|
67
|
+
locale: antdLocale[currentLang] || antdDefault,
|
|
70
68
|
children: children
|
|
71
|
-
}
|
|
72
|
-
}
|
|
69
|
+
}, void 0)
|
|
70
|
+
}, void 0);
|
|
73
71
|
};
|
|
74
72
|
|
|
75
73
|
export default LocaleProvider;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"1 file in progress...": "กำลังดำเนินการ 1 ไฟล์...",
|
|
5
5
|
"Accept": "ยอมรับ",
|
|
6
6
|
"Action": "ดำเนินงาน",
|
|
7
|
+
"Add": "",
|
|
7
8
|
"Apply": "ใช้",
|
|
8
9
|
"Apply Columns": "ใช้คอลัมน์",
|
|
9
10
|
"Cancel": "ยกเลิก",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "ไม่สามารถอัปเดตการประมวลผลได้ในขณะนี้ ไม่ต้องกังวล! ไฟล์ของคุณทั้งหมดกำลังอยู่ระหว่างดำเนินการ",
|
|
48
49
|
"Quantity of files should be less than {limit}": "จำนวนไฟล์ควรน้อยกว่า {limit}",
|
|
49
50
|
"Reject": "ปฏิเสธ",
|
|
51
|
+
"Remove": "",
|
|
50
52
|
"Resend OTP": "ขอ OTP อีกครั้ง",
|
|
51
53
|
"Resend in": "ส่งอีกครั้งใน",
|
|
52
54
|
"Reset All Filters": "รีเซทตัวกรอง",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"1 file in progress...": "1 tệp đang được xử lý",
|
|
5
5
|
"Accept": "Chấp nhận",
|
|
6
6
|
"Action": "Chạy",
|
|
7
|
+
"Add": "",
|
|
7
8
|
"Apply": "Áp dụng",
|
|
8
9
|
"Apply Columns": "Áp dụng Cột",
|
|
9
10
|
"Cancel": "Hủy",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "Dữ liệu chưa được cập nhật và đang trong quá trình xử lý.",
|
|
48
49
|
"Quantity of files should be less than {limit}": "Số lượng tệp tin không vượt quá {limit}",
|
|
49
50
|
"Reject": "Từ chối",
|
|
51
|
+
"Remove": "",
|
|
50
52
|
"Resend OTP": "Gửi lại OTP",
|
|
51
53
|
"Resend in": "Gửi lại trong",
|
|
52
54
|
"Reset All Filters": "Xóa lọc",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"1 file in progress...": "1个文件正在处理...",
|
|
5
5
|
"Accept": "接受",
|
|
6
6
|
"Action": "操作",
|
|
7
|
+
"Add": "",
|
|
7
8
|
"Apply": "应用",
|
|
8
9
|
"Apply Columns": "应用",
|
|
9
10
|
"Cancel": "取消",
|
|
@@ -47,6 +48,7 @@
|
|
|
47
48
|
"Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.": "文件解析中,请耐心等待。",
|
|
48
49
|
"Quantity of files should be less than {limit}": "文件数量不能超过{limit}",
|
|
49
50
|
"Reject": "拒绝",
|
|
51
|
+
"Remove": "",
|
|
50
52
|
"Resend OTP": "重新发送OTP",
|
|
51
53
|
"Resend in": "重新发送",
|
|
52
54
|
"Reset All Filters": "重置所有过滤条件",
|
package/es/login-page/index.js
CHANGED
|
@@ -13,81 +13,69 @@ var LoginPage = function LoginPage(_ref) {
|
|
|
13
13
|
md = _Grid$useBreakpoint.md;
|
|
14
14
|
|
|
15
15
|
if (!md) {
|
|
16
|
-
return _jsxs("div",
|
|
17
|
-
className: "igloo-login-page-mobile"
|
|
18
|
-
}, {
|
|
16
|
+
return _jsxs("div", {
|
|
17
|
+
className: "igloo-login-page-mobile",
|
|
19
18
|
children: [_jsx("div", {
|
|
20
19
|
className: "igloo-login-page-mobile-logo"
|
|
21
|
-
}, void 0), _jsx("div",
|
|
22
|
-
className: "igloo-login-page-mobile-child-box"
|
|
23
|
-
}, {
|
|
20
|
+
}, void 0), _jsx("div", {
|
|
21
|
+
className: "igloo-login-page-mobile-child-box",
|
|
24
22
|
children: children
|
|
25
|
-
}
|
|
26
|
-
}
|
|
23
|
+
}, void 0)]
|
|
24
|
+
}, void 0);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
return _jsxs("div",
|
|
30
|
-
className: "igloo-login-page"
|
|
31
|
-
}, {
|
|
27
|
+
return _jsxs("div", {
|
|
28
|
+
className: "igloo-login-page",
|
|
32
29
|
children: [_jsx("div", {
|
|
33
30
|
className: "igloo-login-page-logo"
|
|
34
|
-
}, void 0), _jsx("div",
|
|
35
|
-
className: "igloo-login-page-child-box"
|
|
36
|
-
}, {
|
|
31
|
+
}, void 0), _jsx("div", {
|
|
32
|
+
className: "igloo-login-page-child-box",
|
|
37
33
|
children: children
|
|
38
|
-
}
|
|
39
|
-
className: "igloo-login-page-text-box"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, {
|
|
44
|
-
children: [_jsx("div", Object.assign({
|
|
34
|
+
}, void 0), _jsxs("div", {
|
|
35
|
+
className: "igloo-login-page-text-box",
|
|
36
|
+
children: [_jsxs("div", {
|
|
37
|
+
className: "igloo-login-page-text-box-text",
|
|
38
|
+
children: [_jsx("div", {
|
|
45
39
|
style: {
|
|
46
40
|
fontSize: 80,
|
|
47
41
|
lineHeight: '88px'
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
42
|
+
},
|
|
50
43
|
children: "Simple."
|
|
51
|
-
}
|
|
44
|
+
}, void 0), _jsx("div", {
|
|
52
45
|
style: {
|
|
53
46
|
fontSize: 80,
|
|
54
47
|
lineHeight: '88px'
|
|
55
|
-
}
|
|
56
|
-
}, {
|
|
48
|
+
},
|
|
57
49
|
children: "Painless."
|
|
58
|
-
}
|
|
50
|
+
}, void 0), _jsx("div", {
|
|
59
51
|
style: {
|
|
60
52
|
fontSize: 80,
|
|
61
53
|
lineHeight: '88px'
|
|
62
|
-
}
|
|
63
|
-
}, {
|
|
54
|
+
},
|
|
64
55
|
children: "Honest."
|
|
65
|
-
}
|
|
56
|
+
}, void 0), _jsx("div", {
|
|
66
57
|
style: {
|
|
67
58
|
fontSize: 48,
|
|
68
59
|
marginTop: 48
|
|
69
|
-
}
|
|
70
|
-
}, {
|
|
60
|
+
},
|
|
71
61
|
children: "Insurance for all."
|
|
72
|
-
}
|
|
62
|
+
}, void 0), _jsx("div", {
|
|
73
63
|
style: {
|
|
74
64
|
fontSize: 26,
|
|
75
65
|
marginTop: 75
|
|
76
|
-
}
|
|
77
|
-
}, {
|
|
66
|
+
},
|
|
78
67
|
children: "iglooinsure.com"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
className: "igloo-login-page-text-box-buttons"
|
|
82
|
-
}, {
|
|
68
|
+
}, void 0)]
|
|
69
|
+
}, void 0), showAppStore && _jsxs("div", {
|
|
70
|
+
className: "igloo-login-page-text-box-buttons",
|
|
83
71
|
children: [_jsx("div", {
|
|
84
72
|
className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-apple')
|
|
85
73
|
}, void 0), _jsx("div", {
|
|
86
74
|
className: classnames('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-google')
|
|
87
75
|
}, void 0)]
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
76
|
+
}, void 0)]
|
|
77
|
+
}, void 0)]
|
|
78
|
+
}, void 0);
|
|
91
79
|
};
|
|
92
80
|
|
|
93
81
|
export default LoginPage;
|
package/es/media/index.js
CHANGED
|
@@ -206,16 +206,15 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
return _jsxs("div",
|
|
209
|
+
return _jsxs("div", {
|
|
210
210
|
className: className,
|
|
211
|
-
style: style
|
|
212
|
-
}, {
|
|
211
|
+
style: style,
|
|
213
212
|
children: [_jsx(Media, {
|
|
214
213
|
type: mediaType,
|
|
215
214
|
src: src,
|
|
216
215
|
onClick: open,
|
|
217
216
|
name: name
|
|
218
|
-
}, void 0), _jsxs(_Modal,
|
|
217
|
+
}, void 0), _jsxs(_Modal, {
|
|
219
218
|
visible: showModal,
|
|
220
219
|
onCancel: close,
|
|
221
220
|
footer: null,
|
|
@@ -226,52 +225,46 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
226
225
|
}, void 0),
|
|
227
226
|
wrapClassName: "igloo-media-preview",
|
|
228
227
|
width: "100%",
|
|
229
|
-
destroyOnClose: true
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
className: "igloo-document-name"
|
|
233
|
-
}, {
|
|
228
|
+
destroyOnClose: true,
|
|
229
|
+
children: [Boolean(docNames && docNames.length) && _jsxs("div", {
|
|
230
|
+
className: "igloo-document-name",
|
|
234
231
|
children: [_jsx("div", {
|
|
235
232
|
children: docNames[current]
|
|
236
233
|
}, void 0), _jsx("div", {
|
|
237
|
-
children: _jsxs(Typography,
|
|
238
|
-
level: "body1"
|
|
239
|
-
}, {
|
|
234
|
+
children: _jsxs(Typography, {
|
|
235
|
+
level: "body1",
|
|
240
236
|
children: [current + 1, "/", docNames.length]
|
|
241
|
-
}
|
|
237
|
+
}, void 0)
|
|
242
238
|
}, void 0)]
|
|
243
|
-
}
|
|
244
|
-
className: "igloo-media-list"
|
|
245
|
-
}, {
|
|
239
|
+
}, void 0), _jsxs("div", {
|
|
240
|
+
className: "igloo-media-list",
|
|
246
241
|
children: [Boolean(list && !!list.length) && list.map(function (_ref2, index) {
|
|
247
242
|
var src = _ref2.src,
|
|
248
243
|
type = _ref2.type;
|
|
249
|
-
return _jsx("div",
|
|
244
|
+
return _jsx("div", {
|
|
250
245
|
className: classnames({
|
|
251
246
|
'igloo-media-animating': needShowAnimation(index),
|
|
252
247
|
'igloo-media': true
|
|
253
248
|
}),
|
|
254
249
|
style: {
|
|
255
250
|
transform: "translateX(".concat(getTranslateX(index) * 100, "vw)")
|
|
256
|
-
}
|
|
257
|
-
}, {
|
|
251
|
+
},
|
|
258
252
|
children: _jsx(PreviewMedia, {
|
|
259
253
|
type: type,
|
|
260
254
|
src: src,
|
|
261
255
|
scale: scale,
|
|
262
256
|
isCurrent: index === current
|
|
263
257
|
}, void 0)
|
|
264
|
-
}
|
|
265
|
-
}), Boolean(!list || !list.length) && _jsx("div",
|
|
266
|
-
className: "igloo-media"
|
|
267
|
-
}, {
|
|
258
|
+
}, index);
|
|
259
|
+
}), Boolean(!list || !list.length) && _jsx("div", {
|
|
260
|
+
className: "igloo-media",
|
|
268
261
|
children: _jsx(PreviewMedia, {
|
|
269
262
|
type: mediaType,
|
|
270
263
|
src: src,
|
|
271
264
|
scale: scale,
|
|
272
265
|
isCurrent: true
|
|
273
266
|
}, void 0)
|
|
274
|
-
}
|
|
267
|
+
}, index), _jsx(MinusOutlined, {
|
|
275
268
|
onClick: zoomIn,
|
|
276
269
|
className: classnames({
|
|
277
270
|
'igloo-preview-zoom-btn': true,
|
|
@@ -306,9 +299,9 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
306
299
|
},
|
|
307
300
|
onClick: toRight
|
|
308
301
|
}, void 0)]
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
302
|
+
}, void 0)]
|
|
303
|
+
}, void 0)]
|
|
304
|
+
}, void 0);
|
|
312
305
|
};
|
|
313
306
|
|
|
314
307
|
export default MediaWithPreview;
|
package/es/media/media.js
CHANGED
|
@@ -19,18 +19,17 @@ var MediaItem = function MediaItem(_ref) {
|
|
|
19
19
|
}, void 0);
|
|
20
20
|
|
|
21
21
|
case 'pdf':
|
|
22
|
-
return _jsx("div",
|
|
22
|
+
return _jsx("div", {
|
|
23
23
|
style: {
|
|
24
24
|
maxWidth: 80,
|
|
25
25
|
maxHeight: 80,
|
|
26
26
|
position: 'absolute'
|
|
27
|
-
}
|
|
28
|
-
}, {
|
|
27
|
+
},
|
|
29
28
|
children: _jsx(PDF, {
|
|
30
29
|
file: src,
|
|
31
30
|
scale: 0.1
|
|
32
31
|
}, void 0)
|
|
33
|
-
}
|
|
32
|
+
}, void 0);
|
|
34
33
|
|
|
35
34
|
default:
|
|
36
35
|
return _jsx("img", {
|
|
@@ -49,11 +48,10 @@ var Media = function Media(_ref2) {
|
|
|
49
48
|
name = _ref2.name,
|
|
50
49
|
type = _ref2.type,
|
|
51
50
|
onClick = _ref2.onClick;
|
|
52
|
-
return _jsx(_Tooltip,
|
|
51
|
+
return _jsx(_Tooltip, {
|
|
53
52
|
title: name,
|
|
54
|
-
placement: "bottom"
|
|
55
|
-
|
|
56
|
-
children: _jsxs("div", Object.assign({
|
|
53
|
+
placement: "bottom",
|
|
54
|
+
children: _jsxs("div", {
|
|
57
55
|
onClick: onClick,
|
|
58
56
|
style: {
|
|
59
57
|
position: 'relative',
|
|
@@ -64,8 +62,7 @@ var Media = function Media(_ref2) {
|
|
|
64
62
|
alignItems: 'center',
|
|
65
63
|
overflow: 'hidden',
|
|
66
64
|
border: '1px solid #EEEEEE'
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
65
|
+
},
|
|
69
66
|
children: [_jsx(MediaItem, {
|
|
70
67
|
type: type,
|
|
71
68
|
src: src
|
|
@@ -78,8 +75,8 @@ var Media = function Media(_ref2) {
|
|
|
78
75
|
},
|
|
79
76
|
onClick: onClick
|
|
80
77
|
}, void 0)]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
78
|
+
}, void 0)
|
|
79
|
+
}, void 0);
|
|
83
80
|
};
|
|
84
81
|
|
|
85
82
|
export default Media;
|
package/es/media/preview.js
CHANGED
|
@@ -52,7 +52,7 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
52
52
|
}, i));
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
return _jsx("div",
|
|
55
|
+
return _jsx("div", {
|
|
56
56
|
style: {
|
|
57
57
|
display: 'flex',
|
|
58
58
|
flexDirection: 'column',
|
|
@@ -60,10 +60,9 @@ var PdfViewer = function PdfViewer(_ref) {
|
|
|
60
60
|
maxHeight: '100%',
|
|
61
61
|
transform: "translate(".concat(left, "px, ").concat(top, "px)"),
|
|
62
62
|
position: 'absolute'
|
|
63
|
-
}
|
|
64
|
-
}, {
|
|
63
|
+
},
|
|
65
64
|
children: pages
|
|
66
|
-
}
|
|
65
|
+
}, void 0);
|
|
67
66
|
};
|
|
68
67
|
|
|
69
68
|
var MediaItem = function MediaItem(_ref3) {
|
|
@@ -195,7 +194,7 @@ var Media = function Media(_ref4) {
|
|
|
195
194
|
});
|
|
196
195
|
};
|
|
197
196
|
|
|
198
|
-
return _jsx("div",
|
|
197
|
+
return _jsx("div", {
|
|
199
198
|
style: {
|
|
200
199
|
position: 'relative',
|
|
201
200
|
width: '100%',
|
|
@@ -207,8 +206,7 @@ var Media = function Media(_ref4) {
|
|
|
207
206
|
},
|
|
208
207
|
onMouseDown: handleMouseDown,
|
|
209
208
|
onMouseUp: handleMouseUp,
|
|
210
|
-
onMouseMove: handleMouseMove
|
|
211
|
-
}, {
|
|
209
|
+
onMouseMove: handleMouseMove,
|
|
212
210
|
children: _jsx(MediaItem, {
|
|
213
211
|
type: type,
|
|
214
212
|
src: src,
|
|
@@ -216,7 +214,7 @@ var Media = function Media(_ref4) {
|
|
|
216
214
|
offset: offset,
|
|
217
215
|
isCurrent: isCurrent
|
|
218
216
|
}, void 0)
|
|
219
|
-
}
|
|
217
|
+
}, void 0);
|
|
220
218
|
};
|
|
221
219
|
|
|
222
220
|
export default Media;
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4
|
+
|
|
5
|
+
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; }
|
|
6
|
+
|
|
1
7
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
8
|
import classnames from 'classnames';
|
|
3
9
|
import Button from '../button';
|
|
@@ -18,36 +24,30 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
18
24
|
style = props.style,
|
|
19
25
|
className = props.className,
|
|
20
26
|
messageBar = props.messageBar;
|
|
21
|
-
return _jsxs("div",
|
|
27
|
+
return _jsxs("div", {
|
|
22
28
|
className: classnames('igloo-policy-mobile-detail-container', className),
|
|
23
|
-
style: style
|
|
24
|
-
|
|
25
|
-
children: [messageBar && _jsx(AlertMessage, Object.assign({}, messageBar, {
|
|
29
|
+
style: style,
|
|
30
|
+
children: [messageBar && _jsx(AlertMessage, _objectSpread(_objectSpread({}, messageBar), {}, {
|
|
26
31
|
style: {
|
|
27
32
|
marginBottom: 24
|
|
28
33
|
}
|
|
29
|
-
}), void 0), _jsxs("div",
|
|
30
|
-
className: "mobile-detail-top"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
className: "mobile-detail-top-insurer-logo"
|
|
34
|
-
}, {
|
|
34
|
+
}), void 0), _jsxs("div", {
|
|
35
|
+
className: "mobile-detail-top",
|
|
36
|
+
children: [insurerLogo && _jsx("div", {
|
|
37
|
+
className: "mobile-detail-top-insurer-logo",
|
|
35
38
|
children: insurerLogo
|
|
36
|
-
}
|
|
37
|
-
className: "mobile-detail-top-insurer-info"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
children: _jsxs(Typography, Object.assign({
|
|
43
|
-
level: "h4"
|
|
44
|
-
}, {
|
|
39
|
+
}, void 0), _jsxs("div", {
|
|
40
|
+
className: "mobile-detail-top-insurer-info",
|
|
41
|
+
children: [_jsx("div", {
|
|
42
|
+
className: "insurer-name",
|
|
43
|
+
children: _jsxs(Typography, {
|
|
44
|
+
level: "h4",
|
|
45
45
|
children: [insurerName, " ", insurerType]
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
return item.render ? item.render() : _jsx(Button,
|
|
46
|
+
}, void 0)
|
|
47
|
+
}, void 0), _jsx(StatusBox, _objectSpread({}, statusProps), void 0)]
|
|
48
|
+
}, void 0)]
|
|
49
|
+
}, void 0), buttons && buttons.map(function (item, index) {
|
|
50
|
+
return item.render ? item.render() : _jsx(Button, {
|
|
51
51
|
icon: item.icon,
|
|
52
52
|
onClick: function onClick() {
|
|
53
53
|
return item.onClick && item.onClick(props);
|
|
@@ -56,34 +56,29 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
56
56
|
style: {
|
|
57
57
|
width: '100%',
|
|
58
58
|
marginBottom: "".concat(index === buttons.length - 1 ? 0 : 16, "px")
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
level: "h4"
|
|
63
|
-
}, {
|
|
59
|
+
},
|
|
60
|
+
children: _jsx(Typography, {
|
|
61
|
+
level: "h4",
|
|
64
62
|
children: item.label
|
|
65
|
-
}
|
|
66
|
-
}
|
|
63
|
+
}, void 0)
|
|
64
|
+
}, String(item) + index);
|
|
67
65
|
}), _jsx("div", {
|
|
68
66
|
className: "dividing-line"
|
|
69
67
|
}, void 0), infoGroups.map(function (group, index) {
|
|
70
68
|
var sectionName = group.sectionName,
|
|
71
69
|
infoItems = group.infoItems,
|
|
72
70
|
hideBottomLine = group.hideBottomLine;
|
|
73
|
-
return _jsxs("div",
|
|
71
|
+
return _jsxs("div", {
|
|
74
72
|
className: classnames('policy-info-group-container', {
|
|
75
73
|
'policy-info-group-container-no-bottom-line': hideBottomLine
|
|
76
|
-
})
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
children: _jsx(Typography, Object.assign({
|
|
82
|
-
level: "h4"
|
|
83
|
-
}, {
|
|
74
|
+
}),
|
|
75
|
+
children: [sectionName && _jsx("div", {
|
|
76
|
+
className: "group-section-name",
|
|
77
|
+
children: _jsx(Typography, {
|
|
78
|
+
level: "h4",
|
|
84
79
|
children: sectionName
|
|
85
|
-
}
|
|
86
|
-
}
|
|
80
|
+
}, void 0)
|
|
81
|
+
}, void 0), infoItems.map(function (item, index) {
|
|
87
82
|
var title = item.title,
|
|
88
83
|
info = item.info,
|
|
89
84
|
hide = item.hide;
|
|
@@ -93,31 +88,26 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
93
88
|
return;
|
|
94
89
|
}
|
|
95
90
|
|
|
96
|
-
return _jsxs("div",
|
|
97
|
-
className: "group-policy-info"
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
children: _jsx(Typography, Object.assign({
|
|
103
|
-
level: "body1"
|
|
104
|
-
}, {
|
|
91
|
+
return _jsxs("div", {
|
|
92
|
+
className: "group-policy-info",
|
|
93
|
+
children: [_jsx("div", {
|
|
94
|
+
className: "group-policy-info-title",
|
|
95
|
+
children: _jsx(Typography, {
|
|
96
|
+
level: "body1",
|
|
105
97
|
children: title
|
|
106
|
-
}
|
|
107
|
-
}
|
|
98
|
+
}, void 0)
|
|
99
|
+
}, void 0), textArr.map(function (textItem, index) {
|
|
108
100
|
var text = textItem.text,
|
|
109
101
|
link = textItem.link;
|
|
110
102
|
|
|
111
103
|
if (typeof textItem === 'string' || link === undefined || link.length === 0) {
|
|
112
|
-
return _jsx("div",
|
|
113
|
-
className: "group-policy-info-text"
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
level: "body1"
|
|
117
|
-
}, {
|
|
104
|
+
return _jsx("div", {
|
|
105
|
+
className: "group-policy-info-text",
|
|
106
|
+
children: _jsx(Typography, {
|
|
107
|
+
level: "body1",
|
|
118
108
|
children: textItem
|
|
119
|
-
}
|
|
120
|
-
}
|
|
109
|
+
}, void 0)
|
|
110
|
+
}, index);
|
|
121
111
|
}
|
|
122
112
|
|
|
123
113
|
var linkArr = Array.isArray(link) ? link : [link];
|
|
@@ -125,55 +115,48 @@ var MobileInsurerDetail = function MobileInsurerDetail(props) {
|
|
|
125
115
|
|
|
126
116
|
if (onlyOneLink) {
|
|
127
117
|
var onClick = link.onClick;
|
|
128
|
-
return _jsxs("div",
|
|
129
|
-
className: "group-policy-info-text"
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
level: "body1"
|
|
133
|
-
}, {
|
|
118
|
+
return _jsxs("div", {
|
|
119
|
+
className: "group-policy-info-text",
|
|
120
|
+
children: [_jsx(Typography, {
|
|
121
|
+
level: "body1",
|
|
134
122
|
children: text
|
|
135
|
-
}
|
|
123
|
+
}, void 0), _jsx(Button, {
|
|
136
124
|
onClick: onClick ? function () {
|
|
137
125
|
return onClick(props);
|
|
138
126
|
} : function () {},
|
|
139
|
-
type: "link"
|
|
140
|
-
}, {
|
|
127
|
+
type: "link",
|
|
141
128
|
children: link.linkText
|
|
142
|
-
}
|
|
143
|
-
}
|
|
129
|
+
}, void 0)]
|
|
130
|
+
}, index);
|
|
144
131
|
}
|
|
145
132
|
|
|
146
|
-
return _jsxs("div",
|
|
147
|
-
className: "group-text-and-link-mult-link"
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
level: "body1"
|
|
151
|
-
}, {
|
|
133
|
+
return _jsxs("div", {
|
|
134
|
+
className: "group-text-and-link-mult-link",
|
|
135
|
+
children: [_jsx(Typography, {
|
|
136
|
+
level: "body1",
|
|
152
137
|
children: text
|
|
153
|
-
}
|
|
138
|
+
}, void 0), linkArr.map(function (linkObj, index) {
|
|
154
139
|
var onClick = linkObj.onClick;
|
|
155
|
-
return _jsx("div",
|
|
140
|
+
return _jsx("div", {
|
|
156
141
|
style: {
|
|
157
142
|
marginTop: 2
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
children: _jsx(Button, Object.assign({
|
|
143
|
+
},
|
|
144
|
+
children: _jsx(Button, {
|
|
161
145
|
onClick: onClick ? function () {
|
|
162
146
|
return onClick(props);
|
|
163
147
|
} : function () {},
|
|
164
|
-
type: "link"
|
|
165
|
-
}, {
|
|
148
|
+
type: "link",
|
|
166
149
|
children: linkObj.linkText
|
|
167
|
-
}
|
|
168
|
-
}
|
|
150
|
+
}, void 0)
|
|
151
|
+
}, index);
|
|
169
152
|
})]
|
|
170
|
-
}
|
|
153
|
+
}, index);
|
|
171
154
|
})]
|
|
172
|
-
}
|
|
155
|
+
}, index);
|
|
173
156
|
})]
|
|
174
|
-
}
|
|
157
|
+
}, index);
|
|
175
158
|
})]
|
|
176
|
-
}
|
|
159
|
+
}, void 0);
|
|
177
160
|
};
|
|
178
161
|
|
|
179
162
|
export default MobileInsurerDetail;
|