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.
Files changed (182) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.js +18 -25
  3. package/es/admin-upload/job-list.js +83 -113
  4. package/es/admin-upload/modal.js +19 -26
  5. package/es/alert-message/index.js +11 -9
  6. package/es/amount/index.js +10 -5
  7. package/es/back-top/index.js +14 -10
  8. package/es/button/index.js +21 -26
  9. package/es/card-detail/card-group.js +16 -22
  10. package/es/card-detail/card-item.js +15 -20
  11. package/es/card-detail/card-page.js +11 -15
  12. package/es/card-detail/card.js +24 -24
  13. package/es/card-detail/utils.js +3 -4
  14. package/es/checkbox/index.js +23 -22
  15. package/es/claim-list/index.js +51 -68
  16. package/es/confirmation/index.js +5 -7
  17. package/es/date-picker/buddhist.js +1 -1
  18. package/es/date-picker/index.js +10 -4
  19. package/es/declaration/index.js +16 -13
  20. package/es/detail-panel/index.js +67 -83
  21. package/es/documents/index.js +6 -8
  22. package/es/example/index.js +3 -4
  23. package/es/filter/checkBox.js +33 -45
  24. package/es/filter/customize.js +3 -4
  25. package/es/filter/index.js +79 -107
  26. package/es/filter/radioBox.js +23 -31
  27. package/es/filter/rangePicker.js +43 -59
  28. package/es/form/divider/index.js +7 -1
  29. package/es/form/element/index.js +28 -36
  30. package/es/form/element/style/index.less +4 -0
  31. package/es/form/index.js +9 -12
  32. package/es/form/login/index.js +14 -19
  33. package/es/form/page/index.js +17 -23
  34. package/es/form/pages/index.js +22 -30
  35. package/es/form/section/index.js +11 -14
  36. package/es/form/step/index.js +30 -41
  37. package/es/form/steps/index.js +6 -8
  38. package/es/free-form/element/index.js +21 -27
  39. package/es/free-form/element/style/index.less +4 -0
  40. package/es/free-form/index.js +9 -12
  41. package/es/free-form/page/index.js +28 -39
  42. package/es/free-form/pages/index.js +6 -8
  43. package/es/free-form/section/index.js +11 -14
  44. package/es/free-form/step/index.js +30 -41
  45. package/es/free-form/steps/index.js +6 -8
  46. package/es/home-menu/index.js +52 -71
  47. package/es/input/amount.js +10 -5
  48. package/es/input/credit-card.js +7 -1
  49. package/es/input/email.js +8 -1
  50. package/es/input/expiry-date.js +12 -16
  51. package/es/input/input-date.js +12 -16
  52. package/es/input/input-number.js +9 -2
  53. package/es/input/input.js +9 -2
  54. package/es/input/otp.js +17 -15
  55. package/es/input/password.js +12 -6
  56. package/es/input/phone-number.js +6 -8
  57. package/es/input/text-area.js +14 -10
  58. package/es/layout/defaultFooter.js +60 -82
  59. package/es/layout/defaultHeader.js +11 -15
  60. package/es/layout/footer.js +108 -148
  61. package/es/layout/header.js +50 -59
  62. package/es/layout/index.js +16 -12
  63. package/es/locale/locale-provider.js +6 -8
  64. package/es/login-page/index.js +30 -42
  65. package/es/media/index.js +20 -27
  66. package/es/media/media.js +9 -12
  67. package/es/media/preview.js +6 -8
  68. package/es/mobile-insurer-detail/index.js +74 -91
  69. package/es/mobile-insurer-list/index.js +34 -38
  70. package/es/modal/index.js +20 -25
  71. package/es/platform/platform-card/index.js +9 -12
  72. package/es/platform/switch-platform/index.js +24 -32
  73. package/es/policy-list/index.js +9 -12
  74. package/es/policy-list/policy-card.js +119 -153
  75. package/es/radio/index.js +33 -35
  76. package/es/select/attached-select.js +31 -34
  77. package/es/select/select.js +12 -8
  78. package/es/select/time-select.js +12 -16
  79. package/es/status-box/index.js +6 -8
  80. package/es/table/index.js +69 -93
  81. package/es/tabs/index.js +7 -1
  82. package/es/typography/index.js +6 -8
  83. package/es/upload/index.js +48 -66
  84. package/es/upload-photo/index.js +47 -63
  85. package/es/upload-photo/media.js +3 -4
  86. package/es/upload-preview/index.js +9 -12
  87. package/es/upload-preview/media.js +12 -16
  88. package/es/utils/form-utils.js +18 -25
  89. package/lib/admin-upload/float.js +25 -35
  90. package/lib/admin-upload/index.js +18 -25
  91. package/lib/admin-upload/job-list.js +83 -113
  92. package/lib/admin-upload/modal.js +19 -26
  93. package/lib/alert-message/index.js +11 -9
  94. package/lib/amount/index.js +10 -5
  95. package/lib/back-top/index.js +14 -10
  96. package/lib/button/index.js +22 -27
  97. package/lib/card-detail/card-group.js +16 -22
  98. package/lib/card-detail/card-item.js +15 -20
  99. package/lib/card-detail/card-page.js +11 -15
  100. package/lib/card-detail/card.js +24 -24
  101. package/lib/card-detail/index.js +6 -6
  102. package/lib/card-detail/utils.js +4 -5
  103. package/lib/checkbox/index.js +24 -23
  104. package/lib/claim-list/index.js +51 -68
  105. package/lib/confirmation/index.js +5 -7
  106. package/lib/date-picker/buddhist.js +1 -1
  107. package/lib/date-picker/index.js +11 -5
  108. package/lib/declaration/index.js +16 -13
  109. package/lib/detail-panel/index.js +67 -83
  110. package/lib/documents/index.js +6 -8
  111. package/lib/example/index.js +3 -4
  112. package/lib/filter/checkBox.js +33 -45
  113. package/lib/filter/customize.js +3 -4
  114. package/lib/filter/index.js +79 -107
  115. package/lib/filter/radioBox.js +23 -31
  116. package/lib/filter/rangePicker.js +43 -59
  117. package/lib/form/divider/index.js +7 -1
  118. package/lib/form/element/index.js +28 -36
  119. package/lib/form/element/style/index.less +4 -0
  120. package/lib/form/index.js +9 -12
  121. package/lib/form/login/index.js +14 -19
  122. package/lib/form/page/index.js +17 -23
  123. package/lib/form/pages/index.js +22 -30
  124. package/lib/form/section/index.js +11 -14
  125. package/lib/form/step/index.js +30 -41
  126. package/lib/form/steps/index.js +6 -8
  127. package/lib/free-form/element/index.js +21 -27
  128. package/lib/free-form/element/style/index.less +4 -0
  129. package/lib/free-form/index.js +9 -12
  130. package/lib/free-form/page/index.js +28 -39
  131. package/lib/free-form/pages/index.js +6 -8
  132. package/lib/free-form/section/index.js +11 -14
  133. package/lib/free-form/step/index.js +30 -41
  134. package/lib/free-form/steps/index.js +6 -8
  135. package/lib/home-menu/index.js +52 -71
  136. package/lib/index.js +132 -132
  137. package/lib/input/amount.js +10 -5
  138. package/lib/input/credit-card.js +7 -1
  139. package/lib/input/email.js +7 -1
  140. package/lib/input/expiry-date.js +12 -16
  141. package/lib/input/index.js +18 -18
  142. package/lib/input/input-date.js +12 -16
  143. package/lib/input/input-number.js +8 -2
  144. package/lib/input/input.js +8 -2
  145. package/lib/input/otp.js +17 -15
  146. package/lib/input/password.js +11 -6
  147. package/lib/input/phone-number.js +6 -8
  148. package/lib/input/text-area.js +14 -10
  149. package/lib/layout/defaultFooter.js +60 -82
  150. package/lib/layout/defaultHeader.js +11 -15
  151. package/lib/layout/footer.js +108 -148
  152. package/lib/layout/header.js +50 -59
  153. package/lib/layout/index.js +15 -12
  154. package/lib/locale/format-message.js +1 -1
  155. package/lib/locale/index.js +4 -4
  156. package/lib/locale/locale-provider.js +7 -9
  157. package/lib/login-page/index.js +30 -42
  158. package/lib/media/index.js +20 -27
  159. package/lib/media/media.js +9 -12
  160. package/lib/media/preview.js +6 -8
  161. package/lib/mobile-insurer-detail/index.js +74 -91
  162. package/lib/mobile-insurer-list/index.js +34 -38
  163. package/lib/modal/index.js +20 -25
  164. package/lib/platform/platform-card/index.js +9 -12
  165. package/lib/platform/switch-platform/index.js +24 -32
  166. package/lib/policy-list/index.js +9 -12
  167. package/lib/policy-list/policy-card.js +119 -153
  168. package/lib/radio/index.js +33 -35
  169. package/lib/select/attached-select.js +32 -35
  170. package/lib/select/select.js +13 -9
  171. package/lib/select/time-select.js +12 -16
  172. package/lib/status-box/index.js +6 -8
  173. package/lib/table/index.js +69 -93
  174. package/lib/tabs/index.js +8 -2
  175. package/lib/typography/index.js +6 -8
  176. package/lib/upload/index.js +48 -66
  177. package/lib/upload-photo/index.js +47 -63
  178. package/lib/upload-photo/media.js +3 -4
  179. package/lib/upload-preview/index.js +9 -12
  180. package/lib/upload-preview/media.js +12 -16
  181. package/lib/utils/form-utils.js +19 -26
  182. package/package.json +1 -1
@@ -180,7 +180,7 @@ var ClaimList = function ClaimList(props) {
180
180
  width: "".concat(100 / num, "%")
181
181
  }, column);
182
182
  });
183
- return _jsx(Table, Object.assign({
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, Object.assign({}, messageBar, {
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, Object.assign({
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, Object.assign({
265
+ return _jsxs(Panel, {
267
266
  header: '',
268
267
  showArrow: false,
269
- className: "panel-group-container"
270
- }, {
271
- children: [sectionName && _jsx("div", Object.assign({
272
- className: "panel-group-section-name"
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
- }), void 0)
279
- }), void 0), _jsx(_Row, Object.assign({
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, Object.assign({
295
- span: span
296
- }, {
297
- children: [_jsx("div", Object.assign({
298
- className: "info-title"
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
- }), void 0)
305
- }), void 0), textArr.map(function (textItem, index) {
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", Object.assign({
311
- className: "info-text-and-link"
312
- }, {
313
- children: _jsx(Typography, Object.assign({
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
- }), void 0)
318
- }), index);
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", Object.assign({
328
- className: "info-text-and-link"
329
- }, {
330
- children: [_jsx(Typography, Object.assign({
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
- }), void 0), _jsx(Button, Object.assign({
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
- }), void 0)]
342
- }), index);
328
+ }, void 0)]
329
+ }, index);
343
330
  }
344
331
 
345
- return _jsxs("div", Object.assign({
346
- className: "info-text-and-link-mult-link"
347
- }, {
348
- children: [_jsx(Typography, Object.assign({
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
- }), void 0), linkArr.map(function (linkObj, index) {
337
+ }, void 0), linkArr.map(function (linkObj, index) {
353
338
  var onClick = linkObj.onClick;
354
- return _jsx("div", Object.assign({
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
- }), void 0)
367
- }), index);
349
+ }, void 0)
350
+ }, index);
368
351
  })]
369
- }), index);
352
+ }, index);
370
353
  })]
371
- }), index);
354
+ }, index);
372
355
  })
373
- }), void 0)]
374
- }), index);
356
+ }, void 0)]
357
+ }, index);
375
358
  })
376
- }), void 0)]
359
+ }, void 0)]
377
360
  }, void 0);
378
361
  }
379
362
  }
@@ -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, Object.assign({
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
- }), void 0), modalContent && _jsx(Modal, Object.assign({
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
- }), void 0)]
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, Object.assign({}, omit(props, formMethods), {
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,
@@ -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, Object.assign({}, omit(props, formMethods), {
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, Object.assign({}, omit(props, formMethods), {
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, Object.assign({}, omit(props, formMethods), {
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, Object.assign({}, omit(props, formMethods), {
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,
@@ -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", Object.assign({
28
- className: "igloo-form-declaration"
29
- }, {
30
- children: [_jsxs("div", Object.assign({
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
- }), void 0), _jsxs("div", Object.assign({
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
- }), void 0), _jsx(_Divider, {
45
+ }, void 0), _jsx(_Divider, {
43
46
  className: "igloo-form-declaration-divider"
44
- }, void 0), _jsx(_Checkbox, Object.assign({
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
- }), void 0);
54
+ }, void 0);
52
55
  };
53
56
 
54
57
  Declaration.formItemPropsHandler = function (config) {
@@ -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", Object.assign({
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
- children: [_jsx(Typography, Object.assign({
58
- level: "body1"
59
- }, {
60
+ className: "igloo-detail-panel-title",
61
+ children: [_jsx(Typography, {
62
+ level: "body1",
60
63
  children: title
61
- }), void 0), _jsx(ArrowDownOutlined, {
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
- }), void 0), visible && _jsxs("div", Object.assign({
73
- className: "igloo-detail-panel-content"
74
- }, {
75
- children: [needSubContent && _jsxs("div", Object.assign({
76
- className: "igloo-detail-panel-sub-title"
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
- }), void 0), _jsxs("div", Object.assign({
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
- }), void 0), status && _jsx("div", Object.assign({
91
- className: "sub-title-status"
92
- }, {
93
- children: _jsx(Status, Object.assign({}, status), void 0)
94
- }), void 0)]
95
- }), void 0)]
96
- }), void 0), children]
97
- }), void 0)]
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", Object.assign({
102
- className: "igloo-detail-panel"
103
- }, {
104
- children: [_jsx(Typography, Object.assign({
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
- }), void 0), _jsxs("div", Object.assign({
109
- className: "igloo-detail-panel-content"
110
- }, {
111
- children: [needSubContent && _jsxs("div", Object.assign({
112
- className: "igloo-detail-panel-sub-title"
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
- }), void 0), _jsxs("div", Object.assign({
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
- }), void 0), status && _jsx("div", Object.assign({
127
- className: "sub-title-status"
128
- }, {
129
- children: _jsx(Status, Object.assign({}, status), void 0)
130
- }), void 0)]
131
- }), void 0)]
132
- }), void 0), children]
133
- }), void 0)]
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, Object.assign({
129
+ return _jsxs(_Row, {
141
130
  className: "igloo-detail-panel-item",
142
- gutter: [4, 4]
143
- }, {
144
- children: [_jsx(_Col, Object.assign({
145
- span: 24
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
- }), void 0)
153
- }), void 0), _jsx(_Col, Object.assign({
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
- }), void 0)
162
- }), void 0)]
163
- }), void 0);
145
+ }, void 0)
146
+ }, void 0)]
147
+ }, void 0);
164
148
  };
165
149
 
166
150
  export default DetailPanel;
@@ -93,18 +93,16 @@ var Documents = function Documents(_ref) {
93
93
  useEffect(function () {
94
94
  setCurrent(0);
95
95
  }, [docList]);
96
- return _jsx(_Space, Object.assign({
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", Object.assign({
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
- }), index);
114
+ }, index);
117
115
  })
118
- }), void 0);
116
+ }, void 0);
119
117
  };
120
118
 
121
119
  export default Documents;
@@ -78,9 +78,8 @@ var Excample = function Excample(_ref) {
78
78
  }
79
79
  };
80
80
 
81
- return _jsxs(LocaleProvider, Object.assign({
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
- }), void 0);
114
+ }, void 0);
116
115
  };
117
116
 
118
117
  export default Excample;