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
package/es/layout/footer.js
CHANGED
|
@@ -21,196 +21,163 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
21
21
|
md = _useBreakpoint.md;
|
|
22
22
|
|
|
23
23
|
var topRightContent = companyInfoRender ? companyInfoRender() : _jsxs(_Fragment, {
|
|
24
|
-
children: [_jsxs("div",
|
|
25
|
-
className: "no-address-info"
|
|
26
|
-
|
|
27
|
-
children: [tel && _jsxs("div", Object.assign({
|
|
24
|
+
children: [_jsxs("div", {
|
|
25
|
+
className: "no-address-info",
|
|
26
|
+
children: [tel && _jsxs("div", {
|
|
28
27
|
className: "info-container",
|
|
29
28
|
style: {
|
|
30
29
|
alignItems: 'center'
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
30
|
+
},
|
|
33
31
|
children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
|
|
34
|
-
children: typeof tel === 'string' ? _jsx(Typography,
|
|
32
|
+
children: typeof tel === 'string' ? _jsx(Typography, {
|
|
35
33
|
level: "body2",
|
|
36
|
-
className: "info-span"
|
|
37
|
-
}, {
|
|
34
|
+
className: "info-span",
|
|
38
35
|
children: tel
|
|
39
|
-
}
|
|
36
|
+
}, void 0) : tel
|
|
40
37
|
}, void 0)]
|
|
41
|
-
}
|
|
38
|
+
}, void 0), email && _jsxs("div", {
|
|
42
39
|
className: "info-container",
|
|
43
40
|
style: {
|
|
44
41
|
alignItems: 'center'
|
|
45
|
-
}
|
|
46
|
-
}, {
|
|
42
|
+
},
|
|
47
43
|
children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
|
|
48
|
-
children: typeof email === 'string' ? _jsx(Typography,
|
|
44
|
+
children: typeof email === 'string' ? _jsx(Typography, {
|
|
49
45
|
level: "body2",
|
|
50
|
-
className: "info-span"
|
|
51
|
-
}, {
|
|
46
|
+
className: "info-span",
|
|
52
47
|
children: email
|
|
53
|
-
}
|
|
48
|
+
}, void 0) : email
|
|
54
49
|
}, void 0)]
|
|
55
|
-
}
|
|
56
|
-
className: "info-container"
|
|
57
|
-
}, {
|
|
50
|
+
}, void 0), workTime && _jsxs("div", {
|
|
51
|
+
className: "info-container",
|
|
58
52
|
children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
|
|
59
|
-
children: typeof workTime === 'string' ? _jsx(Typography,
|
|
53
|
+
children: typeof workTime === 'string' ? _jsx(Typography, {
|
|
60
54
|
level: "body2",
|
|
61
|
-
className: "info-span"
|
|
62
|
-
}, {
|
|
55
|
+
className: "info-span",
|
|
63
56
|
children: workTime
|
|
64
|
-
}
|
|
57
|
+
}, void 0) : workTime
|
|
65
58
|
}, void 0)]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
59
|
+
}, void 0)]
|
|
60
|
+
}, void 0), address && _jsxs(_Space, {
|
|
68
61
|
size: 16,
|
|
69
|
-
align: "start"
|
|
70
|
-
}, {
|
|
62
|
+
align: "start",
|
|
71
63
|
children: [_jsx(LocationOutlined, {
|
|
72
64
|
style: {
|
|
73
65
|
fontSize: 24
|
|
74
66
|
}
|
|
75
67
|
}, void 0), _jsx("div", {
|
|
76
|
-
children: typeof address === 'string' ? _jsx(Typography,
|
|
68
|
+
children: typeof address === 'string' ? _jsx(Typography, {
|
|
77
69
|
level: "body2",
|
|
78
|
-
className: "info-span"
|
|
79
|
-
}, {
|
|
70
|
+
className: "info-span",
|
|
80
71
|
children: address
|
|
81
|
-
}
|
|
72
|
+
}, void 0) : address
|
|
82
73
|
}, void 0)]
|
|
83
|
-
}
|
|
74
|
+
}, void 0)]
|
|
84
75
|
}, void 0);
|
|
85
76
|
|
|
86
77
|
if (md) {
|
|
87
|
-
return _jsx("div",
|
|
88
|
-
className: "igloo-layout-footer"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}, {
|
|
93
|
-
children: [_jsxs(_Space, Object.assign({
|
|
78
|
+
return _jsx("div", {
|
|
79
|
+
className: "igloo-layout-footer",
|
|
80
|
+
children: _jsxs("div", {
|
|
81
|
+
className: "footer-content",
|
|
82
|
+
children: [_jsxs(_Space, {
|
|
94
83
|
size: 32,
|
|
95
84
|
align: "start",
|
|
96
|
-
className: "footer-top"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
className: "top-left"
|
|
100
|
-
}, {
|
|
85
|
+
className: "footer-top",
|
|
86
|
+
children: [_jsx("div", {
|
|
87
|
+
className: "top-left",
|
|
101
88
|
children: _jsx("div", {
|
|
102
89
|
className: "igloo-logo"
|
|
103
90
|
}, void 0)
|
|
104
|
-
}
|
|
105
|
-
}
|
|
91
|
+
}, void 0), topRightContent]
|
|
92
|
+
}, void 0), _jsx("div", {
|
|
106
93
|
className: "footer-divider"
|
|
107
|
-
}, void 0), _jsxs("div",
|
|
108
|
-
className: "footer-bottom"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
level: "body3"
|
|
112
|
-
}, {
|
|
94
|
+
}, void 0), _jsxs("div", {
|
|
95
|
+
className: "footer-bottom",
|
|
96
|
+
children: [copyRightRender ? copyRightRender("\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")) : _jsx(Typography, {
|
|
97
|
+
level: "body3",
|
|
113
98
|
children: "\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo. All Rights Reserved.")
|
|
114
|
-
}
|
|
115
|
-
level: "body3"
|
|
116
|
-
|
|
117
|
-
children: [_jsx(Button, Object.assign({
|
|
99
|
+
}, void 0), _jsxs(Typography, {
|
|
100
|
+
level: "body3",
|
|
101
|
+
children: [_jsx(Button, {
|
|
118
102
|
type: "text",
|
|
119
103
|
onClick: function onClick() {
|
|
120
104
|
return window.open('https://contents.iglooinsure.com/privacypolicy');
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
level: "body3"
|
|
125
|
-
}, {
|
|
105
|
+
},
|
|
106
|
+
children: _jsx(Typography, {
|
|
107
|
+
level: "body3",
|
|
126
108
|
children: "Privacy Policy"
|
|
127
|
-
}
|
|
128
|
-
}
|
|
109
|
+
}, void 0)
|
|
110
|
+
}, void 0), ' ', _jsx("span", {
|
|
129
111
|
style: {
|
|
130
112
|
margin: '0px 16px'
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
113
|
+
},
|
|
133
114
|
children: "|"
|
|
134
|
-
}
|
|
115
|
+
}, void 0), _jsx(Button, {
|
|
135
116
|
type: "text",
|
|
136
117
|
onClick: function onClick() {
|
|
137
118
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
level: "body3"
|
|
142
|
-
}, {
|
|
119
|
+
},
|
|
120
|
+
children: _jsx(Typography, {
|
|
121
|
+
level: "body3",
|
|
143
122
|
children: "Terms of Service"
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
123
|
+
}, void 0)
|
|
124
|
+
}, void 0)]
|
|
125
|
+
}, void 0)]
|
|
126
|
+
}, void 0)]
|
|
127
|
+
}, void 0)
|
|
128
|
+
}, void 0);
|
|
150
129
|
} else {
|
|
151
|
-
return _jsx("div",
|
|
152
|
-
className: "igloo-layout-footer"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
className: "footer-content"
|
|
156
|
-
}, {
|
|
130
|
+
return _jsx("div", {
|
|
131
|
+
className: "igloo-layout-footer",
|
|
132
|
+
children: _jsxs("div", {
|
|
133
|
+
className: "footer-content",
|
|
157
134
|
children: [_jsx("div", {
|
|
158
135
|
className: "igloo-logo"
|
|
159
|
-
}, void 0), _jsxs("div",
|
|
160
|
-
className: "compony-info"
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
className: "info-item"
|
|
164
|
-
}, {
|
|
136
|
+
}, void 0), _jsxs("div", {
|
|
137
|
+
className: "compony-info",
|
|
138
|
+
children: [tel && _jsxs("div", {
|
|
139
|
+
className: "info-item",
|
|
165
140
|
children: [_jsx(PhoneOutlined, {}, void 0), _jsx("div", {
|
|
166
|
-
children: typeof tel === 'string' ? _jsx(Typography,
|
|
141
|
+
children: typeof tel === 'string' ? _jsx(Typography, {
|
|
167
142
|
level: "body3",
|
|
168
|
-
className: "info-span"
|
|
169
|
-
}, {
|
|
143
|
+
className: "info-span",
|
|
170
144
|
children: tel
|
|
171
|
-
}
|
|
145
|
+
}, void 0) : tel
|
|
172
146
|
}, void 0)]
|
|
173
|
-
}
|
|
174
|
-
className: "info-item"
|
|
175
|
-
}, {
|
|
147
|
+
}, void 0), email && _jsxs("div", {
|
|
148
|
+
className: "info-item",
|
|
176
149
|
children: [_jsx(EmailOutlined, {}, void 0), _jsx("div", {
|
|
177
|
-
children: typeof email === 'string' ? _jsx(Typography,
|
|
150
|
+
children: typeof email === 'string' ? _jsx(Typography, {
|
|
178
151
|
level: "body3",
|
|
179
|
-
className: "info-span"
|
|
180
|
-
}, {
|
|
152
|
+
className: "info-span",
|
|
181
153
|
children: email
|
|
182
|
-
}
|
|
154
|
+
}, void 0) : email
|
|
183
155
|
}, void 0)]
|
|
184
|
-
}
|
|
185
|
-
className: "info-item"
|
|
186
|
-
}, {
|
|
156
|
+
}, void 0), workTime && _jsxs("div", {
|
|
157
|
+
className: "info-item",
|
|
187
158
|
children: [_jsx(TimeOutlined, {}, void 0), _jsx("div", {
|
|
188
|
-
children: typeof workTime === 'string' ? _jsx(Typography,
|
|
159
|
+
children: typeof workTime === 'string' ? _jsx(Typography, {
|
|
189
160
|
level: "body3",
|
|
190
|
-
className: "info-span"
|
|
191
|
-
}, {
|
|
161
|
+
className: "info-span",
|
|
192
162
|
children: workTime
|
|
193
|
-
}
|
|
163
|
+
}, void 0) : workTime
|
|
194
164
|
}, void 0)]
|
|
195
|
-
}
|
|
196
|
-
className: "info-item"
|
|
197
|
-
}, {
|
|
165
|
+
}, void 0), address && _jsxs("div", {
|
|
166
|
+
className: "info-item",
|
|
198
167
|
children: [_jsx(LocationOutlined, {
|
|
199
168
|
style: {
|
|
200
169
|
fontSize: 24
|
|
201
170
|
}
|
|
202
171
|
}, void 0), _jsx("div", {
|
|
203
|
-
children: typeof address === 'string' ? _jsx(Typography,
|
|
172
|
+
children: typeof address === 'string' ? _jsx(Typography, {
|
|
204
173
|
level: "body3",
|
|
205
|
-
className: "info-span"
|
|
206
|
-
}, {
|
|
174
|
+
className: "info-span",
|
|
207
175
|
children: address
|
|
208
|
-
}
|
|
176
|
+
}, void 0) : address
|
|
209
177
|
}, void 0)]
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
className: "footer-bottom"
|
|
213
|
-
}, {
|
|
178
|
+
}, void 0)]
|
|
179
|
+
}, void 0), _jsxs("div", {
|
|
180
|
+
className: "footer-bottom",
|
|
214
181
|
children: [_jsx("div", {
|
|
215
182
|
children: copyRightRender ? copyRightRender(_jsxs("div", {
|
|
216
183
|
children: [_jsxs("div", {
|
|
@@ -218,51 +185,44 @@ var LayoutFooter = function LayoutFooter(_ref) {
|
|
|
218
185
|
}, void 0), _jsx("div", {
|
|
219
186
|
children: "All Rights Reserved."
|
|
220
187
|
}, void 0)]
|
|
221
|
-
}, void 0)) : _jsxs(Typography,
|
|
222
|
-
level: "body3"
|
|
223
|
-
}, {
|
|
188
|
+
}, void 0)) : _jsxs(Typography, {
|
|
189
|
+
level: "body3",
|
|
224
190
|
children: ["\xA9 ".concat(new Date().getFullYear(), " Powered by Igloo."), _jsx("div", {
|
|
225
191
|
children: "All Rights Reserved."
|
|
226
192
|
}, void 0)]
|
|
227
|
-
}
|
|
193
|
+
}, void 0)
|
|
228
194
|
}, void 0), _jsx("div", {
|
|
229
|
-
children: _jsxs(Typography,
|
|
230
|
-
level: "body3"
|
|
231
|
-
|
|
232
|
-
children: [_jsx(Button, Object.assign({
|
|
195
|
+
children: _jsxs(Typography, {
|
|
196
|
+
level: "body3",
|
|
197
|
+
children: [_jsx(Button, {
|
|
233
198
|
type: "text",
|
|
234
199
|
onClick: function onClick() {
|
|
235
200
|
return window.open('https://contents.iglooinsure.com/privacypolicy');
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
level: "body3"
|
|
240
|
-
}, {
|
|
201
|
+
},
|
|
202
|
+
children: _jsx(Typography, {
|
|
203
|
+
level: "body3",
|
|
241
204
|
children: "Privacy Policy"
|
|
242
|
-
}
|
|
243
|
-
}
|
|
205
|
+
}, void 0)
|
|
206
|
+
}, void 0), ' ', _jsx("span", {
|
|
244
207
|
style: {
|
|
245
208
|
margin: '0px 16px'
|
|
246
|
-
}
|
|
247
|
-
}, {
|
|
209
|
+
},
|
|
248
210
|
children: "|"
|
|
249
|
-
}
|
|
211
|
+
}, void 0), ' ', _jsx(Button, {
|
|
250
212
|
type: "text",
|
|
251
213
|
onClick: function onClick() {
|
|
252
214
|
return window.open('https://contents.iglooinsure.com/termsofservice');
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
level: "body3"
|
|
257
|
-
}, {
|
|
215
|
+
},
|
|
216
|
+
children: _jsx(Typography, {
|
|
217
|
+
level: "body3",
|
|
258
218
|
children: "Terms of Service"
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}
|
|
219
|
+
}, void 0)
|
|
220
|
+
}, void 0)]
|
|
221
|
+
}, void 0)
|
|
262
222
|
}, void 0)]
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
223
|
+
}, void 0)]
|
|
224
|
+
}, void 0)
|
|
225
|
+
}, void 0);
|
|
266
226
|
}
|
|
267
227
|
};
|
|
268
228
|
|
package/es/layout/header.js
CHANGED
|
@@ -11,6 +11,12 @@ import _Badge from "antd/es/badge";
|
|
|
11
11
|
import "antd/es/grid/style";
|
|
12
12
|
import _Grid from "antd/es/grid";
|
|
13
13
|
|
|
14
|
+
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; }
|
|
15
|
+
|
|
16
|
+
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; }
|
|
17
|
+
|
|
18
|
+
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; }
|
|
19
|
+
|
|
14
20
|
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
15
21
|
|
|
16
22
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -77,14 +83,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
77
83
|
switch (_typeof(badge)) {
|
|
78
84
|
case 'string':
|
|
79
85
|
return _jsxs(_Fragment, {
|
|
80
|
-
children: [_jsx(Typography,
|
|
86
|
+
children: [_jsx(Typography, {
|
|
81
87
|
className: classnames({
|
|
82
88
|
'active-menu': activeMenu === menuInfo.key
|
|
83
89
|
}),
|
|
84
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
85
|
-
}, {
|
|
90
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
86
91
|
children: menuInfo.title
|
|
87
|
-
}
|
|
92
|
+
}, void 0), _jsx(_Badge, {
|
|
88
93
|
dot: true,
|
|
89
94
|
color: '#F52209'
|
|
90
95
|
}, void 0)]
|
|
@@ -92,14 +97,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
92
97
|
|
|
93
98
|
case 'number':
|
|
94
99
|
return _jsxs(_Fragment, {
|
|
95
|
-
children: [_jsx(Typography,
|
|
100
|
+
children: [_jsx(Typography, {
|
|
96
101
|
className: classnames({
|
|
97
102
|
'active-menu': activeMenu === menuInfo.key
|
|
98
103
|
}),
|
|
99
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
100
|
-
}, {
|
|
104
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
101
105
|
children: menuInfo.title
|
|
102
|
-
}
|
|
106
|
+
}, void 0), _jsx(_Badge, {
|
|
103
107
|
count: badge,
|
|
104
108
|
style: {
|
|
105
109
|
backgroundColor: '#F52209'
|
|
@@ -109,123 +113,110 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
109
113
|
|
|
110
114
|
case 'object':
|
|
111
115
|
return _jsxs(_Fragment, {
|
|
112
|
-
children: [_jsx(Typography,
|
|
116
|
+
children: [_jsx(Typography, {
|
|
113
117
|
className: classnames({
|
|
114
118
|
'active-menu': activeMenu === menuInfo.key
|
|
115
119
|
}),
|
|
116
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
117
|
-
}, {
|
|
120
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
118
121
|
children: menuInfo.title
|
|
119
|
-
}
|
|
122
|
+
}, void 0), _jsx(_Badge, _objectSpread({}, badge), void 0)]
|
|
120
123
|
}, void 0);
|
|
121
124
|
|
|
122
125
|
case 'undefined':
|
|
123
|
-
return _jsx(Typography,
|
|
126
|
+
return _jsx(Typography, {
|
|
124
127
|
className: classnames({
|
|
125
128
|
'active-menu': activeMenu === menuInfo.key
|
|
126
129
|
}),
|
|
127
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
128
|
-
}, {
|
|
130
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
129
131
|
children: menuInfo.title
|
|
130
|
-
}
|
|
132
|
+
}, void 0);
|
|
131
133
|
|
|
132
134
|
case 'function':
|
|
133
135
|
return _jsxs(_Fragment, {
|
|
134
|
-
children: [_jsx(Typography,
|
|
136
|
+
children: [_jsx(Typography, {
|
|
135
137
|
className: classnames({
|
|
136
138
|
'active-menu': activeMenu === menuInfo.key
|
|
137
139
|
}),
|
|
138
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
139
|
-
}, {
|
|
140
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
140
141
|
children: menuInfo.title
|
|
141
|
-
}
|
|
142
|
+
}, void 0), badge()]
|
|
142
143
|
}, void 0);
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
|
|
146
147
|
if (md) {
|
|
147
|
-
return _jsx("div",
|
|
148
|
+
return _jsx("div", {
|
|
148
149
|
className: classnames({
|
|
149
150
|
'igloo-layout-header': true,
|
|
150
151
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
151
|
-
})
|
|
152
|
-
|
|
153
|
-
children: _jsxs("div", Object.assign({
|
|
152
|
+
}),
|
|
153
|
+
children: _jsxs("div", {
|
|
154
154
|
className: classnames('header-content', {
|
|
155
155
|
'header-content-noSpaceBetween': children
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
className: "header-left"
|
|
160
|
-
}, {
|
|
156
|
+
}),
|
|
157
|
+
children: [_jsxs("div", {
|
|
158
|
+
className: "header-left",
|
|
161
159
|
children: [_jsx("div", {
|
|
162
160
|
className: "igloo-logo"
|
|
163
161
|
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && _jsx(_Row, {
|
|
164
162
|
children: menus.map(function (menu) {
|
|
165
|
-
return _jsx(_Col,
|
|
163
|
+
return _jsx(_Col, {
|
|
166
164
|
className: classnames('menu-item'),
|
|
167
165
|
onClick: function onClick() {
|
|
168
166
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
169
|
-
}
|
|
170
|
-
}, {
|
|
167
|
+
},
|
|
171
168
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
172
|
-
}
|
|
169
|
+
}, menu.key);
|
|
173
170
|
})
|
|
174
171
|
}, void 0)]
|
|
175
|
-
}
|
|
176
|
-
size: 8
|
|
177
|
-
}, {
|
|
172
|
+
}, void 0), dropMenuConfig && !children && _jsxs(_Space, {
|
|
173
|
+
size: 8,
|
|
178
174
|
children: [_jsx(_Avatar, {
|
|
179
175
|
size: 32,
|
|
180
176
|
src: userAvatar
|
|
181
|
-
}, void 0), _jsx(Typography,
|
|
177
|
+
}, void 0), _jsx(Typography, {
|
|
182
178
|
level: "body1",
|
|
183
179
|
style: {
|
|
184
180
|
color: '#666666'
|
|
185
|
-
}
|
|
186
|
-
}, {
|
|
181
|
+
},
|
|
187
182
|
children: userName
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
}
|
|
183
|
+
}, void 0), dropMenuConfig && _jsx(HomeMenu, _objectSpread({}, dropMenuConfig), void 0)]
|
|
184
|
+
}, void 0), children]
|
|
185
|
+
}, void 0)
|
|
186
|
+
}, void 0);
|
|
192
187
|
} else {
|
|
193
188
|
return _jsxs(_Fragment, {
|
|
194
|
-
children: [_jsxs("div",
|
|
189
|
+
children: [_jsxs("div", {
|
|
195
190
|
className: classnames({
|
|
196
191
|
'igloo-layout-header': true,
|
|
197
192
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
198
|
-
})
|
|
199
|
-
}, {
|
|
193
|
+
}),
|
|
200
194
|
children: [_jsx("div", {
|
|
201
195
|
className: "igloo-logo"
|
|
202
|
-
}, void 0), dropMenuConfig && !children && _jsx(HomeMenu,
|
|
196
|
+
}, void 0), dropMenuConfig && !children && _jsx(HomeMenu, _objectSpread({
|
|
203
197
|
userAvatar: userAvatar,
|
|
204
198
|
userName: userName
|
|
205
199
|
}, dropMenuConfig), void 0), children]
|
|
206
|
-
}
|
|
207
|
-
className: "igloo-layout-menu"
|
|
208
|
-
}, {
|
|
200
|
+
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && _jsx(_Row, {
|
|
201
|
+
className: "igloo-layout-menu",
|
|
209
202
|
children: menus.map(function (menu) {
|
|
210
203
|
var span = 24 / menus.length;
|
|
211
|
-
return _jsx(_Col,
|
|
204
|
+
return _jsx(_Col, {
|
|
212
205
|
span: span,
|
|
213
206
|
className: classnames('menu-item'),
|
|
214
207
|
onClick: function onClick() {
|
|
215
208
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
children: _jsx("div", Object.assign({
|
|
209
|
+
},
|
|
210
|
+
children: _jsx("div", {
|
|
219
211
|
style: {
|
|
220
212
|
display: 'flex',
|
|
221
213
|
alignItems: 'flex-start'
|
|
222
|
-
}
|
|
223
|
-
}, {
|
|
214
|
+
},
|
|
224
215
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
225
|
-
}
|
|
226
|
-
}
|
|
216
|
+
}, void 0)
|
|
217
|
+
}, menu.key);
|
|
227
218
|
})
|
|
228
|
-
}
|
|
219
|
+
}, void 0)]
|
|
229
220
|
}, void 0);
|
|
230
221
|
}
|
|
231
222
|
};
|
package/es/layout/index.js
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import "antd/es/grid/style";
|
|
2
2
|
import _Grid from "antd/es/grid";
|
|
3
|
+
|
|
4
|
+
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; }
|
|
5
|
+
|
|
6
|
+
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; }
|
|
7
|
+
|
|
8
|
+
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; }
|
|
9
|
+
|
|
3
10
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
4
11
|
import classnames from 'classnames';
|
|
5
12
|
import LayoutHeader from './header';
|
|
@@ -85,20 +92,17 @@ var Layout = function Layout(props) {
|
|
|
85
92
|
contentDom = children;
|
|
86
93
|
}
|
|
87
94
|
|
|
88
|
-
return _jsxs("div",
|
|
95
|
+
return _jsxs("div", {
|
|
89
96
|
style: style,
|
|
90
|
-
className: classnames(layoutContainerClass, className)
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
children: _jsx("div", Object.assign({
|
|
96
|
-
className: "igloo-layout-content"
|
|
97
|
-
}, {
|
|
97
|
+
className: classnames(layoutContainerClass, className),
|
|
98
|
+
children: [!headerDom && !headerConfig && _jsx(DefaultHeader, {}, void 0), headerConfig && _jsx(LayoutHeader, _objectSpread({}, headerConfig), void 0), headerDom, _jsx("div", {
|
|
99
|
+
className: "igloo-layout-center",
|
|
100
|
+
children: _jsx("div", {
|
|
101
|
+
className: "igloo-layout-content",
|
|
98
102
|
children: contentDom
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
103
|
+
}, void 0)
|
|
104
|
+
}, void 0), !footerDom && !footerConfig && _jsx(DefaultFooter, {}, void 0), footerConfig && _jsx(LayoutFooter, _objectSpread({}, footerConfig), void 0), footerDom]
|
|
105
|
+
}, void 0);
|
|
102
106
|
};
|
|
103
107
|
|
|
104
108
|
Layout.Header = LayoutHeader;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"1 file in progress...": "1 file in progress...",
|
|
5
5
|
"Accept": "Accept",
|
|
6
6
|
"Action": "Action",
|
|
7
|
+
"Add": "Add",
|
|
7
8
|
"Apply": "Apply",
|
|
8
9
|
"Apply Columns": "Apply Columns",
|
|
9
10
|
"Cancel": "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.": "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}": "Quantity of files should be less than {limit}",
|
|
49
50
|
"Reject": "Reject",
|
|
51
|
+
"Remove": "Remove",
|
|
50
52
|
"Resend OTP": "Resend OTP",
|
|
51
53
|
"Resend in": "Resend in",
|
|
52
54
|
"Reset All Filters": "Reset All Filters",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"1 file in progress...": "1 data dalam proses",
|
|
5
5
|
"Accept": "Menerima",
|
|
6
6
|
"Action": "Beroperasi",
|
|
7
|
+
"Add": "",
|
|
7
8
|
"Apply": "Terapkan",
|
|
8
9
|
"Apply Columns": "Terapkan Kolom",
|
|
9
10
|
"Cancel": "Batal",
|
|
@@ -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.": "Perkembangan terkait proses belum dapat diperbarui saat ini. Jangan khawatir! Semua data Anda masih dalam proses .",
|
|
48
49
|
"Quantity of files should be less than {limit}": "Jumlah dokumen tidak bisa lebih dari {limit}",
|
|
49
50
|
"Reject": "Menolak",
|
|
51
|
+
"Remove": "",
|
|
50
52
|
"Resend OTP": "Kirim ulang OTP",
|
|
51
53
|
"Resend in": "Kirim ulang",
|
|
52
54
|
"Reset All Filters": "Setel ulang filter",
|