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/lib/layout/header.js
CHANGED
|
@@ -45,6 +45,12 @@ require("./style/index");
|
|
|
45
45
|
|
|
46
46
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
47
47
|
|
|
48
|
+
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; }
|
|
49
|
+
|
|
50
|
+
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; }
|
|
51
|
+
|
|
52
|
+
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; }
|
|
53
|
+
|
|
48
54
|
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); }
|
|
49
55
|
|
|
50
56
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
@@ -103,14 +109,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
103
109
|
switch (_typeof(badge)) {
|
|
104
110
|
case 'string':
|
|
105
111
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
106
|
-
children: [(0, _jsxRuntime.jsx)(_typography.default,
|
|
112
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
107
113
|
className: (0, _classnames.default)({
|
|
108
114
|
'active-menu': activeMenu === menuInfo.key
|
|
109
115
|
}),
|
|
110
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
111
|
-
}, {
|
|
116
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
112
117
|
children: menuInfo.title
|
|
113
|
-
}
|
|
118
|
+
}, void 0), (0, _jsxRuntime.jsx)(_badge.default, {
|
|
114
119
|
dot: true,
|
|
115
120
|
color: '#F52209'
|
|
116
121
|
}, void 0)]
|
|
@@ -118,14 +123,13 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
118
123
|
|
|
119
124
|
case 'number':
|
|
120
125
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
121
|
-
children: [(0, _jsxRuntime.jsx)(_typography.default,
|
|
126
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
122
127
|
className: (0, _classnames.default)({
|
|
123
128
|
'active-menu': activeMenu === menuInfo.key
|
|
124
129
|
}),
|
|
125
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
126
|
-
}, {
|
|
130
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
127
131
|
children: menuInfo.title
|
|
128
|
-
}
|
|
132
|
+
}, void 0), (0, _jsxRuntime.jsx)(_badge.default, {
|
|
129
133
|
count: badge,
|
|
130
134
|
style: {
|
|
131
135
|
backgroundColor: '#F52209'
|
|
@@ -135,123 +139,110 @@ var LayoutHeader = function LayoutHeader(_ref) {
|
|
|
135
139
|
|
|
136
140
|
case 'object':
|
|
137
141
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
138
|
-
children: [(0, _jsxRuntime.jsx)(_typography.default,
|
|
142
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
139
143
|
className: (0, _classnames.default)({
|
|
140
144
|
'active-menu': activeMenu === menuInfo.key
|
|
141
145
|
}),
|
|
142
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
143
|
-
}, {
|
|
146
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
144
147
|
children: menuInfo.title
|
|
145
|
-
}
|
|
148
|
+
}, void 0), (0, _jsxRuntime.jsx)(_badge.default, _objectSpread({}, badge), void 0)]
|
|
146
149
|
}, void 0);
|
|
147
150
|
|
|
148
151
|
case 'undefined':
|
|
149
|
-
return (0, _jsxRuntime.jsx)(_typography.default,
|
|
152
|
+
return (0, _jsxRuntime.jsx)(_typography.default, {
|
|
150
153
|
className: (0, _classnames.default)({
|
|
151
154
|
'active-menu': activeMenu === menuInfo.key
|
|
152
155
|
}),
|
|
153
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
154
|
-
}, {
|
|
156
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
155
157
|
children: menuInfo.title
|
|
156
|
-
}
|
|
158
|
+
}, void 0);
|
|
157
159
|
|
|
158
160
|
case 'function':
|
|
159
161
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
160
|
-
children: [(0, _jsxRuntime.jsx)(_typography.default,
|
|
162
|
+
children: [(0, _jsxRuntime.jsx)(_typography.default, {
|
|
161
163
|
className: (0, _classnames.default)({
|
|
162
164
|
'active-menu': activeMenu === menuInfo.key
|
|
163
165
|
}),
|
|
164
|
-
level: activeMenu === menuInfo.key ? 'h4' : 'body1'
|
|
165
|
-
}, {
|
|
166
|
+
level: activeMenu === menuInfo.key ? 'h4' : 'body1',
|
|
166
167
|
children: menuInfo.title
|
|
167
|
-
}
|
|
168
|
+
}, void 0), badge()]
|
|
168
169
|
}, void 0);
|
|
169
170
|
}
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
if (md) {
|
|
173
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
174
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
174
175
|
className: (0, _classnames.default)({
|
|
175
176
|
'igloo-layout-header': true,
|
|
176
177
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
177
|
-
})
|
|
178
|
-
|
|
179
|
-
children: (0, _jsxRuntime.jsxs)("div", Object.assign({
|
|
178
|
+
}),
|
|
179
|
+
children: (0, _jsxRuntime.jsxs)("div", {
|
|
180
180
|
className: (0, _classnames.default)('header-content', {
|
|
181
181
|
'header-content-noSpaceBetween': children
|
|
182
|
-
})
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
className: "header-left"
|
|
186
|
-
}, {
|
|
182
|
+
}),
|
|
183
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
184
|
+
className: "header-left",
|
|
187
185
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
188
186
|
className: "igloo-logo"
|
|
189
187
|
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && !children && (0, _jsxRuntime.jsx)(_row.default, {
|
|
190
188
|
children: menus.map(function (menu) {
|
|
191
|
-
return (0, _jsxRuntime.jsx)(_col.default,
|
|
189
|
+
return (0, _jsxRuntime.jsx)(_col.default, {
|
|
192
190
|
className: (0, _classnames.default)('menu-item'),
|
|
193
191
|
onClick: function onClick() {
|
|
194
192
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
195
|
-
}
|
|
196
|
-
}, {
|
|
193
|
+
},
|
|
197
194
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
198
|
-
}
|
|
195
|
+
}, menu.key);
|
|
199
196
|
})
|
|
200
197
|
}, void 0)]
|
|
201
|
-
}
|
|
202
|
-
size: 8
|
|
203
|
-
}, {
|
|
198
|
+
}, void 0), dropMenuConfig && !children && (0, _jsxRuntime.jsxs)(_space.default, {
|
|
199
|
+
size: 8,
|
|
204
200
|
children: [(0, _jsxRuntime.jsx)(_avatar.default, {
|
|
205
201
|
size: 32,
|
|
206
202
|
src: userAvatar
|
|
207
|
-
}, void 0), (0, _jsxRuntime.jsx)(_typography.default,
|
|
203
|
+
}, void 0), (0, _jsxRuntime.jsx)(_typography.default, {
|
|
208
204
|
level: "body1",
|
|
209
205
|
style: {
|
|
210
206
|
color: '#666666'
|
|
211
|
-
}
|
|
212
|
-
}, {
|
|
207
|
+
},
|
|
213
208
|
children: userName
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
}
|
|
209
|
+
}, void 0), dropMenuConfig && (0, _jsxRuntime.jsx)(_index.default, _objectSpread({}, dropMenuConfig), void 0)]
|
|
210
|
+
}, void 0), children]
|
|
211
|
+
}, void 0)
|
|
212
|
+
}, void 0);
|
|
218
213
|
} else {
|
|
219
214
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
220
|
-
children: [(0, _jsxRuntime.jsxs)("div",
|
|
215
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
221
216
|
className: (0, _classnames.default)({
|
|
222
217
|
'igloo-layout-header': true,
|
|
223
218
|
'igloo-layout-header-fix': Boolean(menus === null || menus === void 0 ? void 0 : menus.length) || Boolean(dropMenuConfig)
|
|
224
|
-
})
|
|
225
|
-
}, {
|
|
219
|
+
}),
|
|
226
220
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
227
221
|
className: "igloo-logo"
|
|
228
|
-
}, void 0), dropMenuConfig && !children && (0, _jsxRuntime.jsx)(_index.default,
|
|
222
|
+
}, void 0), dropMenuConfig && !children && (0, _jsxRuntime.jsx)(_index.default, _objectSpread({
|
|
229
223
|
userAvatar: userAvatar,
|
|
230
224
|
userName: userName
|
|
231
225
|
}, dropMenuConfig), void 0), children]
|
|
232
|
-
}
|
|
233
|
-
className: "igloo-layout-menu"
|
|
234
|
-
}, {
|
|
226
|
+
}, void 0), Boolean(menus === null || menus === void 0 ? void 0 : menus.length) && (0, _jsxRuntime.jsx)(_row.default, {
|
|
227
|
+
className: "igloo-layout-menu",
|
|
235
228
|
children: menus.map(function (menu) {
|
|
236
229
|
var span = 24 / menus.length;
|
|
237
|
-
return (0, _jsxRuntime.jsx)(_col.default,
|
|
230
|
+
return (0, _jsxRuntime.jsx)(_col.default, {
|
|
238
231
|
span: span,
|
|
239
232
|
className: (0, _classnames.default)('menu-item'),
|
|
240
233
|
onClick: function onClick() {
|
|
241
234
|
onMenuChange ? onMenuChange(menu) : defaultMenuOnClick(menu);
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
children: (0, _jsxRuntime.jsx)("div", Object.assign({
|
|
235
|
+
},
|
|
236
|
+
children: (0, _jsxRuntime.jsx)("div", {
|
|
245
237
|
style: {
|
|
246
238
|
display: 'flex',
|
|
247
239
|
alignItems: 'flex-start'
|
|
248
|
-
}
|
|
249
|
-
}, {
|
|
240
|
+
},
|
|
250
241
|
children: getMenuDom(selectedMenu || activeMenu, menu)
|
|
251
|
-
}
|
|
252
|
-
}
|
|
242
|
+
}, void 0)
|
|
243
|
+
}, menu.key);
|
|
253
244
|
})
|
|
254
|
-
}
|
|
245
|
+
}, void 0)]
|
|
255
246
|
}, void 0);
|
|
256
247
|
}
|
|
257
248
|
};
|
package/lib/layout/index.js
CHANGED
|
@@ -25,6 +25,12 @@ require("./style");
|
|
|
25
25
|
|
|
26
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
27
27
|
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
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; }
|
|
31
|
+
|
|
32
|
+
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; }
|
|
33
|
+
|
|
28
34
|
var Layout = function Layout(props) {
|
|
29
35
|
var className = props.className,
|
|
30
36
|
style = props.style,
|
|
@@ -102,20 +108,17 @@ var Layout = function Layout(props) {
|
|
|
102
108
|
contentDom = children;
|
|
103
109
|
}
|
|
104
110
|
|
|
105
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
111
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
106
112
|
style: style,
|
|
107
|
-
className: (0, _classnames.default)(layoutContainerClass, className)
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
children: (0, _jsxRuntime.jsx)("div", Object.assign({
|
|
113
|
-
className: "igloo-layout-content"
|
|
114
|
-
}, {
|
|
113
|
+
className: (0, _classnames.default)(layoutContainerClass, className),
|
|
114
|
+
children: [!headerDom && !headerConfig && (0, _jsxRuntime.jsx)(_defaultHeader.default, {}, void 0), headerConfig && (0, _jsxRuntime.jsx)(_header.default, _objectSpread({}, headerConfig), void 0), headerDom, (0, _jsxRuntime.jsx)("div", {
|
|
115
|
+
className: "igloo-layout-center",
|
|
116
|
+
children: (0, _jsxRuntime.jsx)("div", {
|
|
117
|
+
className: "igloo-layout-content",
|
|
115
118
|
children: contentDom
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
+
}, void 0)
|
|
120
|
+
}, void 0), !footerDom && !footerConfig && (0, _jsxRuntime.jsx)(_defaultFooter.default, {}, void 0), footerConfig && (0, _jsxRuntime.jsx)(_footer.default, _objectSpread({}, footerConfig), void 0), footerDom]
|
|
121
|
+
}, void 0);
|
|
119
122
|
};
|
|
120
123
|
|
|
121
124
|
Layout.Header = _header.default;
|
|
@@ -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",
|
package/lib/locale/index.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "
|
|
6
|
+
Object.defineProperty(exports, "FormattedMessage", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _formattedMessage.default;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "LocaleContext", {
|
|
@@ -15,10 +15,10 @@ Object.defineProperty(exports, "LocaleContext", {
|
|
|
15
15
|
return _localeContext.default;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
Object.defineProperty(exports, "
|
|
18
|
+
Object.defineProperty(exports, "LocaleProvider", {
|
|
19
19
|
enumerable: true,
|
|
20
20
|
get: function get() {
|
|
21
|
-
return
|
|
21
|
+
return _localeProvider.default;
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "staticFormatMessage", {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
6
|
+
exports.locales = exports.default = void 0;
|
|
7
7
|
|
|
8
8
|
require("antd/es/config-provider/style");
|
|
9
9
|
|
|
@@ -84,18 +84,16 @@ var LocaleProvider = function LocaleProvider(_ref) {
|
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
86
|
|
|
87
|
-
return (0, _jsxRuntime.jsx)(_localeContext.default.Provider,
|
|
87
|
+
return (0, _jsxRuntime.jsx)(_localeContext.default.Provider, {
|
|
88
88
|
value: {
|
|
89
89
|
formatMessage: formatMessage,
|
|
90
90
|
currentLang: currentLang
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
locale: antdLocale[currentLang] || _default2.default
|
|
95
|
-
}, {
|
|
91
|
+
},
|
|
92
|
+
children: (0, _jsxRuntime.jsx)(_configProvider.default, {
|
|
93
|
+
locale: antdLocale[currentLang] || _default2.default,
|
|
96
94
|
children: children
|
|
97
|
-
}
|
|
98
|
-
}
|
|
95
|
+
}, void 0)
|
|
96
|
+
}, void 0);
|
|
99
97
|
};
|
|
100
98
|
|
|
101
99
|
var _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/lib/login-page/index.js
CHANGED
|
@@ -26,81 +26,69 @@ var LoginPage = function LoginPage(_ref) {
|
|
|
26
26
|
md = _Grid$useBreakpoint.md;
|
|
27
27
|
|
|
28
28
|
if (!md) {
|
|
29
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
30
|
-
className: "igloo-login-page-mobile"
|
|
31
|
-
}, {
|
|
29
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
30
|
+
className: "igloo-login-page-mobile",
|
|
32
31
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
33
32
|
className: "igloo-login-page-mobile-logo"
|
|
34
|
-
}, void 0), (0, _jsxRuntime.jsx)("div",
|
|
35
|
-
className: "igloo-login-page-mobile-child-box"
|
|
36
|
-
}, {
|
|
33
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
34
|
+
className: "igloo-login-page-mobile-child-box",
|
|
37
35
|
children: children
|
|
38
|
-
}
|
|
39
|
-
}
|
|
36
|
+
}, void 0)]
|
|
37
|
+
}, void 0);
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
43
|
-
className: "igloo-login-page"
|
|
44
|
-
}, {
|
|
40
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
41
|
+
className: "igloo-login-page",
|
|
45
42
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
46
43
|
className: "igloo-login-page-logo"
|
|
47
|
-
}, void 0), (0, _jsxRuntime.jsx)("div",
|
|
48
|
-
className: "igloo-login-page-child-box"
|
|
49
|
-
}, {
|
|
44
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
45
|
+
className: "igloo-login-page-child-box",
|
|
50
46
|
children: children
|
|
51
|
-
}
|
|
52
|
-
className: "igloo-login-page-text-box"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, {
|
|
57
|
-
children: [(0, _jsxRuntime.jsx)("div", Object.assign({
|
|
47
|
+
}, void 0), (0, _jsxRuntime.jsxs)("div", {
|
|
48
|
+
className: "igloo-login-page-text-box",
|
|
49
|
+
children: [(0, _jsxRuntime.jsxs)("div", {
|
|
50
|
+
className: "igloo-login-page-text-box-text",
|
|
51
|
+
children: [(0, _jsxRuntime.jsx)("div", {
|
|
58
52
|
style: {
|
|
59
53
|
fontSize: 80,
|
|
60
54
|
lineHeight: '88px'
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
55
|
+
},
|
|
63
56
|
children: "Simple."
|
|
64
|
-
}
|
|
57
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
65
58
|
style: {
|
|
66
59
|
fontSize: 80,
|
|
67
60
|
lineHeight: '88px'
|
|
68
|
-
}
|
|
69
|
-
}, {
|
|
61
|
+
},
|
|
70
62
|
children: "Painless."
|
|
71
|
-
}
|
|
63
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
72
64
|
style: {
|
|
73
65
|
fontSize: 80,
|
|
74
66
|
lineHeight: '88px'
|
|
75
|
-
}
|
|
76
|
-
}, {
|
|
67
|
+
},
|
|
77
68
|
children: "Honest."
|
|
78
|
-
}
|
|
69
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
79
70
|
style: {
|
|
80
71
|
fontSize: 48,
|
|
81
72
|
marginTop: 48
|
|
82
|
-
}
|
|
83
|
-
}, {
|
|
73
|
+
},
|
|
84
74
|
children: "Insurance for all."
|
|
85
|
-
}
|
|
75
|
+
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
86
76
|
style: {
|
|
87
77
|
fontSize: 26,
|
|
88
78
|
marginTop: 75
|
|
89
|
-
}
|
|
90
|
-
}, {
|
|
79
|
+
},
|
|
91
80
|
children: "iglooinsure.com"
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
className: "igloo-login-page-text-box-buttons"
|
|
95
|
-
}, {
|
|
81
|
+
}, void 0)]
|
|
82
|
+
}, void 0), showAppStore && (0, _jsxRuntime.jsxs)("div", {
|
|
83
|
+
className: "igloo-login-page-text-box-buttons",
|
|
96
84
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
97
85
|
className: (0, _classnames.default)('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-apple')
|
|
98
86
|
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
99
87
|
className: (0, _classnames.default)('igloo-login-page-text-box-buttons-button', 'igloo-login-page-text-box-buttons-google')
|
|
100
88
|
}, void 0)]
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
89
|
+
}, void 0)]
|
|
90
|
+
}, void 0)]
|
|
91
|
+
}, void 0);
|
|
104
92
|
};
|
|
105
93
|
|
|
106
94
|
var _default = LoginPage;
|
package/lib/media/index.js
CHANGED
|
@@ -223,16 +223,15 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
223
223
|
}
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
return (0, _jsxRuntime.jsxs)("div",
|
|
226
|
+
return (0, _jsxRuntime.jsxs)("div", {
|
|
227
227
|
className: className,
|
|
228
|
-
style: style
|
|
229
|
-
}, {
|
|
228
|
+
style: style,
|
|
230
229
|
children: [(0, _jsxRuntime.jsx)(_media.default, {
|
|
231
230
|
type: mediaType,
|
|
232
231
|
src: src,
|
|
233
232
|
onClick: open,
|
|
234
233
|
name: name
|
|
235
|
-
}, void 0), (0, _jsxRuntime.jsxs)(_modal.default,
|
|
234
|
+
}, void 0), (0, _jsxRuntime.jsxs)(_modal.default, {
|
|
236
235
|
visible: showModal,
|
|
237
236
|
onCancel: close,
|
|
238
237
|
footer: null,
|
|
@@ -243,52 +242,46 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
243
242
|
}, void 0),
|
|
244
243
|
wrapClassName: "igloo-media-preview",
|
|
245
244
|
width: "100%",
|
|
246
|
-
destroyOnClose: true
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
className: "igloo-document-name"
|
|
250
|
-
}, {
|
|
245
|
+
destroyOnClose: true,
|
|
246
|
+
children: [Boolean(docNames && docNames.length) && (0, _jsxRuntime.jsxs)("div", {
|
|
247
|
+
className: "igloo-document-name",
|
|
251
248
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
252
249
|
children: docNames[current]
|
|
253
250
|
}, void 0), (0, _jsxRuntime.jsx)("div", {
|
|
254
|
-
children: (0, _jsxRuntime.jsxs)(_typography.default,
|
|
255
|
-
level: "body1"
|
|
256
|
-
}, {
|
|
251
|
+
children: (0, _jsxRuntime.jsxs)(_typography.default, {
|
|
252
|
+
level: "body1",
|
|
257
253
|
children: [current + 1, "/", docNames.length]
|
|
258
|
-
}
|
|
254
|
+
}, void 0)
|
|
259
255
|
}, void 0)]
|
|
260
|
-
}
|
|
261
|
-
className: "igloo-media-list"
|
|
262
|
-
}, {
|
|
256
|
+
}, void 0), (0, _jsxRuntime.jsxs)("div", {
|
|
257
|
+
className: "igloo-media-list",
|
|
263
258
|
children: [Boolean(list && !!list.length) && list.map(function (_ref2, index) {
|
|
264
259
|
var src = _ref2.src,
|
|
265
260
|
type = _ref2.type;
|
|
266
|
-
return (0, _jsxRuntime.jsx)("div",
|
|
261
|
+
return (0, _jsxRuntime.jsx)("div", {
|
|
267
262
|
className: (0, _classnames.default)({
|
|
268
263
|
'igloo-media-animating': needShowAnimation(index),
|
|
269
264
|
'igloo-media': true
|
|
270
265
|
}),
|
|
271
266
|
style: {
|
|
272
267
|
transform: "translateX(".concat(getTranslateX(index) * 100, "vw)")
|
|
273
|
-
}
|
|
274
|
-
}, {
|
|
268
|
+
},
|
|
275
269
|
children: (0, _jsxRuntime.jsx)(_preview.default, {
|
|
276
270
|
type: type,
|
|
277
271
|
src: src,
|
|
278
272
|
scale: scale,
|
|
279
273
|
isCurrent: index === current
|
|
280
274
|
}, void 0)
|
|
281
|
-
}
|
|
282
|
-
}), Boolean(!list || !list.length) && (0, _jsxRuntime.jsx)("div",
|
|
283
|
-
className: "igloo-media"
|
|
284
|
-
}, {
|
|
275
|
+
}, index);
|
|
276
|
+
}), Boolean(!list || !list.length) && (0, _jsxRuntime.jsx)("div", {
|
|
277
|
+
className: "igloo-media",
|
|
285
278
|
children: (0, _jsxRuntime.jsx)(_preview.default, {
|
|
286
279
|
type: mediaType,
|
|
287
280
|
src: src,
|
|
288
281
|
scale: scale,
|
|
289
282
|
isCurrent: true
|
|
290
283
|
}, void 0)
|
|
291
|
-
}
|
|
284
|
+
}, index), (0, _jsxRuntime.jsx)(_iglooicon.MinusOutlined, {
|
|
292
285
|
onClick: zoomIn,
|
|
293
286
|
className: (0, _classnames.default)({
|
|
294
287
|
'igloo-preview-zoom-btn': true,
|
|
@@ -323,9 +316,9 @@ var MediaWithPreview = function MediaWithPreview(_ref) {
|
|
|
323
316
|
},
|
|
324
317
|
onClick: toRight
|
|
325
318
|
}, void 0)]
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
319
|
+
}, void 0)]
|
|
320
|
+
}, void 0)]
|
|
321
|
+
}, void 0);
|
|
329
322
|
};
|
|
330
323
|
|
|
331
324
|
var _default = MediaWithPreview;
|