iglooform 2.4.8 → 2.4.9
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/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/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/divider/index.js +7 -1
- package/es/form/element/index.js +28 -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 +6 -8
- 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.js +6 -8
- package/es/home-menu/index.js +52 -71
- 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/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/locale-provider.js +6 -8
- 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/utils/form-utils.js +18 -25
- 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/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/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/divider/index.js +7 -1
- package/lib/form/element/index.js +28 -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 +6 -8
- 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.js +6 -8
- package/lib/home-menu/index.js +52 -71
- package/lib/index.js +132 -132
- package/lib/input/amount.js +10 -5
- package/lib/input/credit-card.js +7 -1
- package/lib/input/email.js +7 -1
- package/lib/input/expiry-date.js +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/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/format-message.js +1 -1
- package/lib/locale/index.js +4 -4
- package/lib/locale/locale-provider.js +7 -9
- 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/utils/form-utils.js +19 -26
- package/package.json +1 -1
package/es/claim-list/index.js
CHANGED
|
@@ -180,7 +180,7 @@ var ClaimList = function ClaimList(props) {
|
|
|
180
180
|
width: "".concat(100 / num, "%")
|
|
181
181
|
}, column);
|
|
182
182
|
});
|
|
183
|
-
return _jsx(Table,
|
|
183
|
+
return _jsx(Table, _objectSpread({
|
|
184
184
|
className: classnames('igloo-claim-list', className),
|
|
185
185
|
style: style,
|
|
186
186
|
total: dateSource.length,
|
|
@@ -248,7 +248,7 @@ var ClaimList = function ClaimList(props) {
|
|
|
248
248
|
}) : [];
|
|
249
249
|
return _jsxs("div", {
|
|
250
250
|
children: [messageBar && _jsxs(_Fragment, {
|
|
251
|
-
children: [_jsx(AlertMessage,
|
|
251
|
+
children: [_jsx(AlertMessage, _objectSpread(_objectSpread({}, messageBar), {}, {
|
|
252
252
|
className: classnames('claim-detail-message-bar-container')
|
|
253
253
|
}), void 0), !showDetailStatus && _jsx("div", {
|
|
254
254
|
style: {
|
|
@@ -256,29 +256,24 @@ var ClaimList = function ClaimList(props) {
|
|
|
256
256
|
width: '100%'
|
|
257
257
|
}
|
|
258
258
|
}, void 0)]
|
|
259
|
-
}, void 0), infoGroups && _jsx(_Collapse,
|
|
259
|
+
}, void 0), infoGroups && _jsx(_Collapse, {
|
|
260
260
|
className: "igloo-policy-collapse-container",
|
|
261
|
-
activeKey: showDetailKeys.includes(key) ? allkeys : []
|
|
262
|
-
}, {
|
|
261
|
+
activeKey: showDetailKeys.includes(key) ? allkeys : [],
|
|
263
262
|
children: infoGroups.map(function (group, index) {
|
|
264
263
|
var infoItems = group.infoItems,
|
|
265
264
|
sectionName = group.sectionName;
|
|
266
|
-
return _jsxs(Panel,
|
|
265
|
+
return _jsxs(Panel, {
|
|
267
266
|
header: '',
|
|
268
267
|
showArrow: false,
|
|
269
|
-
className: "panel-group-container"
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
children: _jsx(Typography, Object.assign({
|
|
275
|
-
level: "h4"
|
|
276
|
-
}, {
|
|
268
|
+
className: "panel-group-container",
|
|
269
|
+
children: [sectionName && _jsx("div", {
|
|
270
|
+
className: "panel-group-section-name",
|
|
271
|
+
children: _jsx(Typography, {
|
|
272
|
+
level: "h4",
|
|
277
273
|
children: sectionName
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
gutter: [24, 32]
|
|
281
|
-
}, {
|
|
274
|
+
}, void 0)
|
|
275
|
+
}, void 0), _jsx(_Row, {
|
|
276
|
+
gutter: [24, 32],
|
|
282
277
|
children: infoItems.map(function (item, index) {
|
|
283
278
|
var _item$span = item.span,
|
|
284
279
|
span = _item$span === void 0 ? 6 : _item$span,
|
|
@@ -291,31 +286,26 @@ var ClaimList = function ClaimList(props) {
|
|
|
291
286
|
return;
|
|
292
287
|
}
|
|
293
288
|
|
|
294
|
-
return _jsxs(_Col,
|
|
295
|
-
span: span
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
children: _jsx(Typography, Object.assign({
|
|
301
|
-
level: "body1"
|
|
302
|
-
}, {
|
|
289
|
+
return _jsxs(_Col, {
|
|
290
|
+
span: span,
|
|
291
|
+
children: [_jsx("div", {
|
|
292
|
+
className: "info-title",
|
|
293
|
+
children: _jsx(Typography, {
|
|
294
|
+
level: "body1",
|
|
303
295
|
children: title
|
|
304
|
-
}
|
|
305
|
-
}
|
|
296
|
+
}, void 0)
|
|
297
|
+
}, void 0), textArr.map(function (textItem, index) {
|
|
306
298
|
var text = textItem.text,
|
|
307
299
|
link = textItem.link;
|
|
308
300
|
|
|
309
301
|
if (typeof textItem === 'string' || link === undefined || link.length === 0) {
|
|
310
|
-
return _jsx("div",
|
|
311
|
-
className: "info-text-and-link"
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
level: "body1"
|
|
315
|
-
}, {
|
|
302
|
+
return _jsx("div", {
|
|
303
|
+
className: "info-text-and-link",
|
|
304
|
+
children: _jsx(Typography, {
|
|
305
|
+
level: "body1",
|
|
316
306
|
children: textItem
|
|
317
|
-
}
|
|
318
|
-
}
|
|
307
|
+
}, void 0)
|
|
308
|
+
}, index);
|
|
319
309
|
} // 处理link (一个or多个,换行or不换行)
|
|
320
310
|
|
|
321
311
|
|
|
@@ -324,56 +314,49 @@ var ClaimList = function ClaimList(props) {
|
|
|
324
314
|
|
|
325
315
|
if (onlyOneLink) {
|
|
326
316
|
var onClick = link.onClick;
|
|
327
|
-
return _jsxs("div",
|
|
328
|
-
className: "info-text-and-link"
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
level: "body1"
|
|
332
|
-
}, {
|
|
317
|
+
return _jsxs("div", {
|
|
318
|
+
className: "info-text-and-link",
|
|
319
|
+
children: [_jsx(Typography, {
|
|
320
|
+
level: "body1",
|
|
333
321
|
children: text
|
|
334
|
-
}
|
|
322
|
+
}, void 0), _jsx(Button, {
|
|
335
323
|
onClick: onClick ? function () {
|
|
336
324
|
return onClick(record);
|
|
337
325
|
} : function () {},
|
|
338
|
-
type: "link"
|
|
339
|
-
}, {
|
|
326
|
+
type: "link",
|
|
340
327
|
children: link.linkText
|
|
341
|
-
}
|
|
342
|
-
}
|
|
328
|
+
}, void 0)]
|
|
329
|
+
}, index);
|
|
343
330
|
}
|
|
344
331
|
|
|
345
|
-
return _jsxs("div",
|
|
346
|
-
className: "info-text-and-link-mult-link"
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
level: "body1"
|
|
350
|
-
}, {
|
|
332
|
+
return _jsxs("div", {
|
|
333
|
+
className: "info-text-and-link-mult-link",
|
|
334
|
+
children: [_jsx(Typography, {
|
|
335
|
+
level: "body1",
|
|
351
336
|
children: text
|
|
352
|
-
}
|
|
337
|
+
}, void 0), linkArr.map(function (linkObj, index) {
|
|
353
338
|
var onClick = linkObj.onClick;
|
|
354
|
-
return _jsx("div",
|
|
339
|
+
return _jsx("div", {
|
|
355
340
|
style: {
|
|
356
341
|
marginTop: 2
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
children: _jsx(Button, Object.assign({
|
|
342
|
+
},
|
|
343
|
+
children: _jsx(Button, {
|
|
360
344
|
onClick: onClick ? function () {
|
|
361
345
|
return onClick(record);
|
|
362
346
|
} : function () {},
|
|
363
|
-
type: "link"
|
|
364
|
-
}, {
|
|
347
|
+
type: "link",
|
|
365
348
|
children: linkObj.linkText
|
|
366
|
-
}
|
|
367
|
-
}
|
|
349
|
+
}, void 0)
|
|
350
|
+
}, index);
|
|
368
351
|
})]
|
|
369
|
-
}
|
|
352
|
+
}, index);
|
|
370
353
|
})]
|
|
371
|
-
}
|
|
354
|
+
}, index);
|
|
372
355
|
})
|
|
373
|
-
}
|
|
374
|
-
}
|
|
356
|
+
}, void 0)]
|
|
357
|
+
}, index);
|
|
375
358
|
})
|
|
376
|
-
}
|
|
359
|
+
}, void 0)]
|
|
377
360
|
}, void 0);
|
|
378
361
|
}
|
|
379
362
|
}
|
package/es/confirmation/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var Confirmation = function Confirmation(_ref) {
|
|
|
62
62
|
children: [_jsx(Checkbox, {
|
|
63
63
|
onChange: handleCheckbox,
|
|
64
64
|
checked: value
|
|
65
|
-
}, void 0), _jsx(Typography,
|
|
65
|
+
}, void 0), _jsx(Typography, {
|
|
66
66
|
level: "body1",
|
|
67
67
|
onClick: function onClick(e) {
|
|
68
68
|
e.stopPropagation();
|
|
@@ -76,10 +76,9 @@ var Confirmation = function Confirmation(_ref) {
|
|
|
76
76
|
style: {
|
|
77
77
|
cursor: 'pointer',
|
|
78
78
|
marginLeft: 8
|
|
79
|
-
}
|
|
80
|
-
}, {
|
|
79
|
+
},
|
|
81
80
|
children: message
|
|
82
|
-
}
|
|
81
|
+
}, void 0), modalContent && _jsx(Modal, {
|
|
83
82
|
title: modalTitle,
|
|
84
83
|
visible: visible,
|
|
85
84
|
onOk: handleAccept,
|
|
@@ -90,10 +89,9 @@ var Confirmation = function Confirmation(_ref) {
|
|
|
90
89
|
}),
|
|
91
90
|
cancelText: cancelText || formatMessage({
|
|
92
91
|
id: 'Reject'
|
|
93
|
-
})
|
|
94
|
-
}, {
|
|
92
|
+
}),
|
|
95
93
|
children: modalContent
|
|
96
|
-
}
|
|
94
|
+
}, void 0)]
|
|
97
95
|
}, void 0);
|
|
98
96
|
};
|
|
99
97
|
|
|
@@ -72,7 +72,7 @@ var IglooBuddhistDatePicker = function IglooBuddhistDatePicker(_ref) {
|
|
|
72
72
|
focusStaus = _useState2[0],
|
|
73
73
|
setFocus = _useState2[1];
|
|
74
74
|
|
|
75
|
-
return _jsx(DatePicker,
|
|
75
|
+
return _jsx(DatePicker, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
76
76
|
value: value ? moment(value) : value,
|
|
77
77
|
placeholder: dateFormater,
|
|
78
78
|
format: format || dateFormater,
|
package/es/date-picker/index.js
CHANGED
|
@@ -5,6 +5,12 @@ var _excluded = ["value", "format", "placeholder", "suffixIcon", "className", "o
|
|
|
5
5
|
_excluded3 = ["value", "format", "placeholder", "suffixIcon", "className", "onOpenChange"],
|
|
6
6
|
_excluded4 = ["value", "format", "placeholder", "suffixIcon", "onOpenChange", "className"];
|
|
7
7
|
|
|
8
|
+
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; }
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
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; }
|
|
13
|
+
|
|
8
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
15
|
|
|
10
16
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -55,7 +61,7 @@ var IglooDatePicker = function IglooDatePicker(_ref) {
|
|
|
55
61
|
focusStaus = _useState2[0],
|
|
56
62
|
setFocus = _useState2[1];
|
|
57
63
|
|
|
58
|
-
return _jsx(_DatePicker,
|
|
64
|
+
return _jsx(_DatePicker, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
59
65
|
value: value ? moment(value) : value,
|
|
60
66
|
placeholder: placeholder || dateFormater,
|
|
61
67
|
format: format || dateFormater,
|
|
@@ -108,7 +114,7 @@ export var IglooRangePicker = function IglooRangePicker(_ref3) {
|
|
|
108
114
|
focusStaus = _useState4[0],
|
|
109
115
|
setFocus = _useState4[1];
|
|
110
116
|
|
|
111
|
-
return _jsx(RangePicker,
|
|
117
|
+
return _jsx(RangePicker, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
112
118
|
value: value ? [moment(value[0]), moment(value[1])] : value,
|
|
113
119
|
format: format || dateFormater,
|
|
114
120
|
inputReadOnly: true,
|
|
@@ -177,7 +183,7 @@ export var IglooWeekPicker = function IglooWeekPicker(_ref9) {
|
|
|
177
183
|
focusStaus = _useState6[0],
|
|
178
184
|
setFocus = _useState6[1];
|
|
179
185
|
|
|
180
|
-
return _jsx(WeekPicker,
|
|
186
|
+
return _jsx(WeekPicker, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
181
187
|
value: value ? moment(value) : value,
|
|
182
188
|
placeholder: placeholder || dateFormater,
|
|
183
189
|
format: format || dateFormater,
|
|
@@ -229,7 +235,7 @@ export var IglooMonthPicker = function IglooMonthPicker(_ref11) {
|
|
|
229
235
|
focusStaus = _useState8[0],
|
|
230
236
|
setFocus = _useState8[1];
|
|
231
237
|
|
|
232
|
-
return _jsx(MonthPicker,
|
|
238
|
+
return _jsx(MonthPicker, _objectSpread(_objectSpread({}, omit(props, formMethods)), {}, {
|
|
233
239
|
value: value ? moment(value) : value,
|
|
234
240
|
placeholder: placeholder || dateFormater,
|
|
235
241
|
format: format || dateFormater,
|
package/es/declaration/index.js
CHANGED
|
@@ -4,6 +4,12 @@ import "antd/es/divider/style";
|
|
|
4
4
|
import _Divider from "antd/es/divider";
|
|
5
5
|
var _excluded = ["title", "description", "declaration"];
|
|
6
6
|
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
7
13
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
8
14
|
|
|
9
15
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -24,31 +30,28 @@ var Declaration = function Declaration(_ref) {
|
|
|
24
30
|
var _useContext = useContext(LocaleContext),
|
|
25
31
|
formatMessage = _useContext.formatMessage;
|
|
26
32
|
|
|
27
|
-
return _jsxs("div",
|
|
28
|
-
className: "igloo-form-declaration"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
className: "igloo-form-declaration-title"
|
|
32
|
-
}, {
|
|
33
|
+
return _jsxs("div", {
|
|
34
|
+
className: "igloo-form-declaration",
|
|
35
|
+
children: [_jsxs("div", {
|
|
36
|
+
className: "igloo-form-declaration-title",
|
|
33
37
|
children: [title, title === undefined && formatMessage({
|
|
34
38
|
id: 'Please take a moment to review what you’ve told us above.'
|
|
35
39
|
})]
|
|
36
|
-
}
|
|
37
|
-
className: "igloo-form-declaration-description"
|
|
38
|
-
}, {
|
|
40
|
+
}, void 0), _jsxs("div", {
|
|
41
|
+
className: "igloo-form-declaration-description",
|
|
39
42
|
children: [description, description === undefined && formatMessage({
|
|
40
43
|
id: 'Once you’re happy with the above, and you’ve checked the declaration, please go ahead and submit your claim.'
|
|
41
44
|
})]
|
|
42
|
-
}
|
|
45
|
+
}, void 0), _jsx(_Divider, {
|
|
43
46
|
className: "igloo-form-declaration-divider"
|
|
44
|
-
}, void 0), _jsx(_Checkbox,
|
|
47
|
+
}, void 0), _jsx(_Checkbox, _objectSpread(_objectSpread({
|
|
45
48
|
className: "igloo-form-declaration-declaration"
|
|
46
|
-
}, omit(rest, formMethods), {
|
|
49
|
+
}, omit(rest, formMethods)), {}, {
|
|
47
50
|
children: declaration || formatMessage({
|
|
48
51
|
id: 'I declare that the statements I have described above are true. I further declare that the loss occured was accidental, without planning or consensus with other parties.'
|
|
49
52
|
})
|
|
50
53
|
}), void 0)]
|
|
51
|
-
}
|
|
54
|
+
}, void 0);
|
|
52
55
|
};
|
|
53
56
|
|
|
54
57
|
Declaration.formItemPropsHandler = function (config) {
|
package/es/detail-panel/index.js
CHANGED
|
@@ -5,6 +5,12 @@ import _Row from "antd/es/row";
|
|
|
5
5
|
import "antd/es/grid/style";
|
|
6
6
|
import _Grid from "antd/es/grid";
|
|
7
7
|
|
|
8
|
+
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; }
|
|
9
|
+
|
|
10
|
+
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; }
|
|
11
|
+
|
|
12
|
+
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; }
|
|
13
|
+
|
|
8
14
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
9
15
|
|
|
10
16
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -43,22 +49,19 @@ var DetailPanel = function DetailPanel(_ref) {
|
|
|
43
49
|
var needSubContent = subTitle || icon || status;
|
|
44
50
|
|
|
45
51
|
if (!md) {
|
|
46
|
-
return _jsxs("div",
|
|
47
|
-
className: "igloo-detail-panel-mobile"
|
|
48
|
-
|
|
49
|
-
children: [_jsxs("div", Object.assign({
|
|
52
|
+
return _jsxs("div", {
|
|
53
|
+
className: "igloo-detail-panel-mobile",
|
|
54
|
+
children: [_jsxs("div", {
|
|
50
55
|
onClick: function onClick() {
|
|
51
56
|
setVisible(function (visible) {
|
|
52
57
|
return !visible;
|
|
53
58
|
});
|
|
54
59
|
},
|
|
55
|
-
className: "igloo-detail-panel-title"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
level: "body1"
|
|
59
|
-
}, {
|
|
60
|
+
className: "igloo-detail-panel-title",
|
|
61
|
+
children: [_jsx(Typography, {
|
|
62
|
+
level: "body1",
|
|
60
63
|
children: title
|
|
61
|
-
}
|
|
64
|
+
}, void 0), _jsx(ArrowDownOutlined, {
|
|
62
65
|
style: {
|
|
63
66
|
opacity: visible ? 1 : 0
|
|
64
67
|
},
|
|
@@ -69,98 +72,79 @@ var DetailPanel = function DetailPanel(_ref) {
|
|
|
69
72
|
},
|
|
70
73
|
className: "igloo-detail-panel-arrow"
|
|
71
74
|
}, void 0)]
|
|
72
|
-
}
|
|
73
|
-
className: "igloo-detail-panel-content"
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
children: [icon && _jsx("div", Object.assign({
|
|
79
|
-
className: "sub-title-icon"
|
|
80
|
-
}, {
|
|
75
|
+
}, void 0), visible && _jsxs("div", {
|
|
76
|
+
className: "igloo-detail-panel-content",
|
|
77
|
+
children: [needSubContent && _jsxs("div", {
|
|
78
|
+
className: "igloo-detail-panel-sub-title",
|
|
79
|
+
children: [icon && _jsx("div", {
|
|
80
|
+
className: "sub-title-icon",
|
|
81
81
|
children: icon
|
|
82
|
-
}
|
|
83
|
-
className: "sub-title-content"
|
|
84
|
-
|
|
85
|
-
children: [subTitle && _jsx(Typography, Object.assign({
|
|
82
|
+
}, void 0), _jsxs("div", {
|
|
83
|
+
className: "sub-title-content",
|
|
84
|
+
children: [subTitle && _jsx(Typography, {
|
|
86
85
|
level: "h4",
|
|
87
|
-
className: "sub-title-title"
|
|
88
|
-
}, {
|
|
86
|
+
className: "sub-title-title",
|
|
89
87
|
children: subTitle
|
|
90
|
-
}
|
|
91
|
-
className: "sub-title-status"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}), void 0);
|
|
88
|
+
}, void 0), status && _jsx("div", {
|
|
89
|
+
className: "sub-title-status",
|
|
90
|
+
children: _jsx(Status, _objectSpread({}, status), void 0)
|
|
91
|
+
}, void 0)]
|
|
92
|
+
}, void 0)]
|
|
93
|
+
}, void 0), children]
|
|
94
|
+
}, void 0)]
|
|
95
|
+
}, void 0);
|
|
99
96
|
}
|
|
100
97
|
|
|
101
|
-
return _jsxs("div",
|
|
102
|
-
className: "igloo-detail-panel"
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
level: "h3b"
|
|
106
|
-
}, {
|
|
98
|
+
return _jsxs("div", {
|
|
99
|
+
className: "igloo-detail-panel",
|
|
100
|
+
children: [_jsx(Typography, {
|
|
101
|
+
level: "h3b",
|
|
107
102
|
children: title
|
|
108
|
-
}
|
|
109
|
-
className: "igloo-detail-panel-content"
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
children: [icon && _jsx("div", Object.assign({
|
|
115
|
-
className: "sub-title-icon"
|
|
116
|
-
}, {
|
|
103
|
+
}, void 0), _jsxs("div", {
|
|
104
|
+
className: "igloo-detail-panel-content",
|
|
105
|
+
children: [needSubContent && _jsxs("div", {
|
|
106
|
+
className: "igloo-detail-panel-sub-title",
|
|
107
|
+
children: [icon && _jsx("div", {
|
|
108
|
+
className: "sub-title-icon",
|
|
117
109
|
children: icon
|
|
118
|
-
}
|
|
119
|
-
className: "sub-title-content"
|
|
120
|
-
|
|
121
|
-
children: [subTitle && _jsx(Typography, Object.assign({
|
|
110
|
+
}, void 0), _jsxs("div", {
|
|
111
|
+
className: "sub-title-content",
|
|
112
|
+
children: [subTitle && _jsx(Typography, {
|
|
122
113
|
level: "h4",
|
|
123
|
-
className: "sub-title-title"
|
|
124
|
-
}, {
|
|
114
|
+
className: "sub-title-title",
|
|
125
115
|
children: subTitle
|
|
126
|
-
}
|
|
127
|
-
className: "sub-title-status"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}), void 0);
|
|
116
|
+
}, void 0), status && _jsx("div", {
|
|
117
|
+
className: "sub-title-status",
|
|
118
|
+
children: _jsx(Status, _objectSpread({}, status), void 0)
|
|
119
|
+
}, void 0)]
|
|
120
|
+
}, void 0)]
|
|
121
|
+
}, void 0), children]
|
|
122
|
+
}, void 0)]
|
|
123
|
+
}, void 0);
|
|
135
124
|
};
|
|
136
125
|
|
|
137
126
|
DetailPanel.DetailItem = function (_ref2) {
|
|
138
127
|
var title = _ref2.title,
|
|
139
128
|
value = _ref2.value;
|
|
140
|
-
return _jsxs(_Row,
|
|
129
|
+
return _jsxs(_Row, {
|
|
141
130
|
className: "igloo-detail-panel-item",
|
|
142
|
-
gutter: [4, 4]
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}, {
|
|
147
|
-
children: _jsx(Typography, Object.assign({
|
|
131
|
+
gutter: [4, 4],
|
|
132
|
+
children: [_jsx(_Col, {
|
|
133
|
+
span: 24,
|
|
134
|
+
children: _jsx(Typography, {
|
|
148
135
|
level: "body1",
|
|
149
|
-
className: "igloo-detail-panel-item-title"
|
|
150
|
-
}, {
|
|
136
|
+
className: "igloo-detail-panel-item-title",
|
|
151
137
|
children: title
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
span: 24
|
|
155
|
-
|
|
156
|
-
children: _jsx(Typography, Object.assign({
|
|
138
|
+
}, void 0)
|
|
139
|
+
}, void 0), _jsx(_Col, {
|
|
140
|
+
span: 24,
|
|
141
|
+
children: _jsx(Typography, {
|
|
157
142
|
level: "body1",
|
|
158
|
-
className: "igloo-detail-panel-item-value"
|
|
159
|
-
}, {
|
|
143
|
+
className: "igloo-detail-panel-item-value",
|
|
160
144
|
children: value
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
145
|
+
}, void 0)
|
|
146
|
+
}, void 0)]
|
|
147
|
+
}, void 0);
|
|
164
148
|
};
|
|
165
149
|
|
|
166
150
|
export default DetailPanel;
|
package/es/documents/index.js
CHANGED
|
@@ -93,18 +93,16 @@ var Documents = function Documents(_ref) {
|
|
|
93
93
|
useEffect(function () {
|
|
94
94
|
setCurrent(0);
|
|
95
95
|
}, [docList]);
|
|
96
|
-
return _jsx(_Space,
|
|
96
|
+
return _jsx(_Space, {
|
|
97
97
|
size: [8, 8],
|
|
98
|
-
wrap: true
|
|
99
|
-
}, {
|
|
98
|
+
wrap: true,
|
|
100
99
|
children: list.map(function (_ref3, index) {
|
|
101
100
|
var src = _ref3.src,
|
|
102
101
|
type = _ref3.type;
|
|
103
|
-
return _jsx("div",
|
|
102
|
+
return _jsx("div", {
|
|
104
103
|
style: {
|
|
105
104
|
left: "".concat((index - current) * 100, "%")
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
105
|
+
},
|
|
108
106
|
children: _jsx(MediaWithPreview, {
|
|
109
107
|
list: list,
|
|
110
108
|
index: index,
|
|
@@ -113,9 +111,9 @@ var Documents = function Documents(_ref) {
|
|
|
113
111
|
docNames: docNames,
|
|
114
112
|
name: docNames[index]
|
|
115
113
|
}, void 0)
|
|
116
|
-
}
|
|
114
|
+
}, index);
|
|
117
115
|
})
|
|
118
|
-
}
|
|
116
|
+
}, void 0);
|
|
119
117
|
};
|
|
120
118
|
|
|
121
119
|
export default Documents;
|
package/es/example/index.js
CHANGED
|
@@ -78,9 +78,8 @@ var Excample = function Excample(_ref) {
|
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
|
|
81
|
-
return _jsxs(LocaleProvider,
|
|
82
|
-
currentLang: currentLang
|
|
83
|
-
}, {
|
|
81
|
+
return _jsxs(LocaleProvider, {
|
|
82
|
+
currentLang: currentLang,
|
|
84
83
|
children: [_jsx(_Button, {
|
|
85
84
|
onClick: function onClick() {
|
|
86
85
|
setKey(key + 1);
|
|
@@ -112,7 +111,7 @@ var Excample = function Excample(_ref) {
|
|
|
112
111
|
name: false,
|
|
113
112
|
displayObjectSize: false
|
|
114
113
|
}, void 0)]
|
|
115
|
-
}
|
|
114
|
+
}, void 0);
|
|
116
115
|
};
|
|
117
116
|
|
|
118
117
|
export default Excample;
|