iglooform 2.4.23 → 2.4.26

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 (217) hide show
  1. package/es/admin-upload/float.js +14 -14
  2. package/es/admin-upload/index.js +13 -13
  3. package/es/admin-upload/job-list.js +49 -49
  4. package/es/admin-upload/modal.js +10 -10
  5. package/es/alert-message/index.js +9 -9
  6. package/es/amount/index.js +4 -4
  7. package/es/back-top/index.js +6 -6
  8. package/es/button/index.js +11 -11
  9. package/es/card-detail/card-group.js +6 -6
  10. package/es/card-detail/card-item.js +6 -6
  11. package/es/card-detail/card-page.js +5 -5
  12. package/es/card-detail/card.js +9 -9
  13. package/es/card-detail/utils.js +3 -3
  14. package/es/checkbox/index.js +8 -8
  15. package/es/claim-list/index.js +21 -21
  16. package/es/confirmation/index.js +4 -4
  17. package/es/date-picker/buddhist.js +4 -4
  18. package/es/date-picker/index.js +11 -11
  19. package/es/declaration/index.js +7 -7
  20. package/es/detail-panel/index.js +28 -28
  21. package/es/documents/index.js +2 -2
  22. package/es/example/index.js +7 -7
  23. package/es/filter/checkBox.js +10 -10
  24. package/es/filter/customize.js +1 -1
  25. package/es/filter/index.js +46 -46
  26. package/es/filter/radioBox.js +7 -7
  27. package/es/filter/rangePicker.js +23 -23
  28. package/es/filter/style/index.less +10 -2
  29. package/es/form/addable-section/index.js +35 -20
  30. package/es/form/addable-section/style/index.less +6 -10
  31. package/es/form/divider/index.js +3 -3
  32. package/es/form/element/index.js +20 -20
  33. package/es/form/elements.js +5 -2
  34. package/es/form/index.js +9 -9
  35. package/es/form/login/index.js +6 -6
  36. package/es/form/page/index.js +8 -8
  37. package/es/form/pages/index.js +10 -10
  38. package/es/form/render/index.js +1 -1
  39. package/es/form/section/index.js +6 -6
  40. package/es/form/step/index.js +17 -16
  41. package/es/form/steps/index.js +2 -2
  42. package/es/free-form/addable-section/index.js +32 -17
  43. package/es/free-form/addable-section/style/index.less +0 -4
  44. package/es/free-form/element/index.js +13 -13
  45. package/es/free-form/index.js +5 -5
  46. package/es/free-form/page/index.js +17 -17
  47. package/es/free-form/pages/index.js +4 -4
  48. package/es/free-form/section/index.js +7 -7
  49. package/es/free-form/step/index.d.ts +1 -0
  50. package/es/free-form/step/index.js +20 -19
  51. package/es/free-form/steps/index.js +4 -4
  52. package/es/global-message/index.js +13 -13
  53. package/es/home-menu/index.js +18 -18
  54. package/es/index.d.ts +1 -1
  55. package/es/index.js +1 -1
  56. package/es/input/amount.js +4 -4
  57. package/es/input/credit-card.js +6 -6
  58. package/es/input/email.js +3 -3
  59. package/es/input/expiry-date.js +5 -5
  60. package/es/input/input-date.js +3 -3
  61. package/es/input/input-number.js +5 -5
  62. package/es/input/input.js +3 -3
  63. package/es/input/otp.js +8 -8
  64. package/es/input/password.js +6 -6
  65. package/es/input/phone-number.js +4 -4
  66. package/es/input/text-area.js +6 -6
  67. package/es/layout/defaultFooter.js +28 -28
  68. package/es/layout/defaultHeader.js +6 -6
  69. package/es/layout/footer.js +66 -66
  70. package/es/layout/header.js +28 -28
  71. package/es/layout/index.js +6 -6
  72. package/es/locale/en-US/messages.json +1 -0
  73. package/es/locale/id-ID/messages.json +1 -0
  74. package/es/locale/locale-provider.js +4 -4
  75. package/es/locale/th-TH/messages.json +1 -0
  76. package/es/locale/vi-VN/messages.json +1 -0
  77. package/es/locale/zh-CN/messages.json +1 -0
  78. package/es/login-page/index.js +16 -16
  79. package/es/media/index.js +15 -15
  80. package/es/media/media.js +8 -8
  81. package/es/media/preview.js +8 -8
  82. package/es/mobile-insurer-detail/index.js +20 -20
  83. package/es/mobile-insurer-list/index.js +13 -13
  84. package/es/modal/index.js +10 -10
  85. package/es/platform/platform-card/index.d.ts +4 -1
  86. package/es/platform/platform-card/index.js +9 -7
  87. package/es/platform/switch-platform/index.d.ts +4 -1
  88. package/es/platform/switch-platform/index.js +47 -16
  89. package/es/policy-list/index.js +6 -6
  90. package/es/policy-list/policy-card.js +34 -34
  91. package/es/radio/index.d.ts +2 -1
  92. package/es/radio/index.js +15 -14
  93. package/es/radio/radio-group-with-other.d.ts +6 -0
  94. package/es/radio/radio-group-with-other.js +85 -0
  95. package/es/select/attached-select.js +19 -22
  96. package/es/select/select.js +8 -11
  97. package/es/select/time-select.js +20 -20
  98. package/es/status-box/index.js +4 -4
  99. package/es/table/index.js +36 -36
  100. package/es/tabs/index.js +3 -3
  101. package/es/typography/index.js +10 -3
  102. package/es/upload/index.js +31 -31
  103. package/es/upload-photo/index.js +31 -31
  104. package/es/upload-photo/media.js +4 -4
  105. package/es/upload-preview/index.js +10 -10
  106. package/es/upload-preview/media.js +8 -8
  107. package/es/utils/form-utils.d.ts +1 -1
  108. package/es/utils/form-utils.js +13 -13
  109. package/lib/admin-upload/float.js +14 -14
  110. package/lib/admin-upload/index.js +13 -13
  111. package/lib/admin-upload/job-list.js +49 -49
  112. package/lib/admin-upload/modal.js +10 -10
  113. package/lib/alert-message/index.js +9 -9
  114. package/lib/amount/index.js +4 -4
  115. package/lib/back-top/index.js +6 -6
  116. package/lib/button/index.js +11 -11
  117. package/lib/card-detail/card-group.js +6 -6
  118. package/lib/card-detail/card-item.js +6 -6
  119. package/lib/card-detail/card-page.js +5 -5
  120. package/lib/card-detail/card.js +9 -9
  121. package/lib/card-detail/utils.js +3 -3
  122. package/lib/checkbox/index.js +8 -8
  123. package/lib/claim-list/index.js +21 -21
  124. package/lib/confirmation/index.js +4 -4
  125. package/lib/date-picker/buddhist.js +4 -4
  126. package/lib/date-picker/index.js +11 -11
  127. package/lib/declaration/index.js +7 -7
  128. package/lib/detail-panel/index.js +28 -28
  129. package/lib/documents/index.js +2 -2
  130. package/lib/example/index.js +8 -8
  131. package/lib/filter/checkBox.js +10 -10
  132. package/lib/filter/customize.js +1 -1
  133. package/lib/filter/index.js +46 -46
  134. package/lib/filter/radioBox.js +7 -7
  135. package/lib/filter/rangePicker.js +23 -23
  136. package/lib/filter/style/index.less +10 -2
  137. package/lib/form/addable-section/index.js +39 -19
  138. package/lib/form/addable-section/style/index.less +6 -10
  139. package/lib/form/divider/index.js +3 -3
  140. package/lib/form/element/index.js +20 -20
  141. package/lib/form/elements.js +6 -2
  142. package/lib/form/index.js +9 -9
  143. package/lib/form/login/index.js +6 -6
  144. package/lib/form/page/index.js +8 -8
  145. package/lib/form/pages/index.js +10 -10
  146. package/lib/form/render/index.js +1 -1
  147. package/lib/form/section/index.js +6 -6
  148. package/lib/form/step/index.js +17 -16
  149. package/lib/form/steps/index.js +2 -2
  150. package/lib/free-form/addable-section/index.js +36 -16
  151. package/lib/free-form/addable-section/style/index.less +0 -4
  152. package/lib/free-form/element/index.js +13 -13
  153. package/lib/free-form/index.js +5 -5
  154. package/lib/free-form/page/index.js +17 -17
  155. package/lib/free-form/pages/index.js +4 -4
  156. package/lib/free-form/section/index.js +7 -7
  157. package/lib/free-form/step/index.d.ts +1 -0
  158. package/lib/free-form/step/index.js +20 -19
  159. package/lib/free-form/steps/index.js +5 -5
  160. package/lib/global-message/index.js +13 -13
  161. package/lib/home-menu/index.js +18 -18
  162. package/lib/index.d.ts +1 -1
  163. package/lib/index.js +8 -1
  164. package/lib/input/amount.js +4 -4
  165. package/lib/input/credit-card.js +6 -6
  166. package/lib/input/email.js +3 -3
  167. package/lib/input/expiry-date.js +5 -5
  168. package/lib/input/input-date.js +3 -3
  169. package/lib/input/input-number.js +5 -5
  170. package/lib/input/input.js +3 -3
  171. package/lib/input/otp.js +8 -8
  172. package/lib/input/password.js +6 -6
  173. package/lib/input/phone-number.js +4 -4
  174. package/lib/input/text-area.js +6 -6
  175. package/lib/layout/defaultFooter.js +28 -28
  176. package/lib/layout/defaultHeader.js +6 -6
  177. package/lib/layout/footer.js +66 -66
  178. package/lib/layout/header.js +28 -28
  179. package/lib/layout/index.js +6 -6
  180. package/lib/locale/en-US/messages.json +1 -0
  181. package/lib/locale/id-ID/messages.json +1 -0
  182. package/lib/locale/locale-provider.js +4 -4
  183. package/lib/locale/th-TH/messages.json +1 -0
  184. package/lib/locale/vi-VN/messages.json +1 -0
  185. package/lib/locale/zh-CN/messages.json +1 -0
  186. package/lib/login-page/index.js +16 -16
  187. package/lib/media/index.js +15 -15
  188. package/lib/media/media.js +8 -8
  189. package/lib/media/preview.js +8 -8
  190. package/lib/mobile-insurer-detail/index.js +20 -20
  191. package/lib/mobile-insurer-list/index.js +13 -13
  192. package/lib/modal/index.js +10 -10
  193. package/lib/platform/platform-card/index.d.ts +4 -1
  194. package/lib/platform/platform-card/index.js +9 -7
  195. package/lib/platform/switch-platform/index.d.ts +4 -1
  196. package/lib/platform/switch-platform/index.js +46 -15
  197. package/lib/policy-list/index.js +6 -6
  198. package/lib/policy-list/policy-card.js +34 -34
  199. package/lib/radio/index.d.ts +2 -1
  200. package/lib/radio/index.js +23 -14
  201. package/lib/radio/radio-group-with-other.d.ts +6 -0
  202. package/lib/radio/radio-group-with-other.js +98 -0
  203. package/lib/select/attached-select.js +18 -21
  204. package/lib/select/select.js +7 -10
  205. package/lib/select/time-select.js +20 -20
  206. package/lib/status-box/index.js +4 -4
  207. package/lib/table/index.js +36 -36
  208. package/lib/tabs/index.js +3 -3
  209. package/lib/typography/index.js +10 -3
  210. package/lib/upload/index.js +31 -31
  211. package/lib/upload-photo/index.js +31 -31
  212. package/lib/upload-photo/media.js +4 -4
  213. package/lib/upload-preview/index.js +10 -10
  214. package/lib/upload-preview/media.js +8 -8
  215. package/lib/utils/form-utils.d.ts +1 -1
  216. package/lib/utils/form-utils.js +12 -12
  217. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
2
 
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
4
 
5
5
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
6
 
@@ -25,8 +25,8 @@ var IglooStatusBox = function IglooStatusBox(props) {
25
25
  children: _jsx(Typography, {
26
26
  level: "status",
27
27
  children: children
28
- }, void 0)
29
- }, void 0);
28
+ })
29
+ });
30
30
  };
31
31
 
32
32
  export default IglooStatusBox;
package/es/table/index.js CHANGED
@@ -32,13 +32,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
32
32
 
33
33
  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; }
34
34
 
35
- 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; }
35
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
36
36
 
37
- 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; }
37
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
38
38
 
39
39
  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; }
40
40
 
41
- 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); }
41
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
42
42
 
43
43
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
44
44
  import React from 'react';
@@ -92,7 +92,7 @@ var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButton
92
92
  children: _jsx(Typography, {
93
93
  level: "body1",
94
94
  children: item.text
95
- }, void 0)
95
+ })
96
96
  }, index);
97
97
  })
98
98
  }, actionIndex);
@@ -146,7 +146,7 @@ function paginationItem(page, type, originalElement) {
146
146
  verticalAlign: 'middle'
147
147
  },
148
148
  className: "ant-btn-link"
149
- }, void 0);
149
+ });
150
150
  }
151
151
 
152
152
  if (type === 'next') {
@@ -156,13 +156,13 @@ function paginationItem(page, type, originalElement) {
156
156
  verticalAlign: 'middle'
157
157
  },
158
158
  className: "ant-btn-link"
159
- }, void 0);
159
+ });
160
160
  }
161
161
 
162
162
  return _jsx("span", {
163
163
  className: "ant-btn-link",
164
164
  children: originalElement
165
- }, void 0);
165
+ });
166
166
  }
167
167
 
168
168
  function actionListChange(state, action) {
@@ -271,11 +271,11 @@ var IglooTable = function IglooTable(_ref) {
271
271
  children: _jsx(Typography, {
272
272
  level: "body1",
273
273
  children: item.title
274
- }, void 0)
275
- }, void 0)
274
+ })
275
+ })
276
276
  }, item.key);
277
277
  })
278
- }, void 0);
278
+ });
279
279
  };
280
280
 
281
281
  var actionCol = {
@@ -312,8 +312,8 @@ var IglooTable = function IglooTable(_ref) {
312
312
  return e.stopPropagation();
313
313
  },
314
314
  className: "igloo-table-action-icon"
315
- }, void 0)
316
- }, void 0);
315
+ })
316
+ });
317
317
  }
318
318
  };
319
319
  return _jsxs("div", {
@@ -326,13 +326,13 @@ var IglooTable = function IglooTable(_ref) {
326
326
  className: "igloo-table-top-content",
327
327
  children: [hasFilterOptions ? _jsx(Filter, _objectSpread(_objectSpread({}, filterConfig), {}, {
328
328
  parentFilterCallBack: setFilterOptions
329
- }), void 0) : _jsx(_Col, {
329
+ })) : _jsx(_Col, {
330
330
  span: 8
331
- }, void 0), _jsx(_Col, {
331
+ }), _jsx(_Col, {
332
332
  children: _jsxs(_Space, {
333
333
  className: 'igloo-table-button-cantainer',
334
334
  children: [!noCustomize && _jsx(Button, {
335
- icon: _jsx(SettingOutlined, {}, void 0),
335
+ icon: _jsx(SettingOutlined, {}),
336
336
  onClick: function onClick() {
337
337
  return setModalVisible(true);
338
338
  },
@@ -341,8 +341,8 @@ var IglooTable = function IglooTable(_ref) {
341
341
  children: formatMessage({
342
342
  id: 'Customize Columns'
343
343
  })
344
- }, void 0)
345
- }, void 0), extraButtons && extraButtons.map(function (item, index) {
344
+ })
345
+ }), extraButtons && extraButtons.map(function (item, index) {
346
346
  return item.render ? /*#__PURE__*/React.cloneElement(item.render(), {
347
347
  key: index
348
348
  }) : _jsx(Button, {
@@ -353,12 +353,12 @@ var IglooTable = function IglooTable(_ref) {
353
353
  children: _jsx(Typography, {
354
354
  level: "h4",
355
355
  children: item.text
356
- }, void 0)
356
+ })
357
357
  }, index);
358
358
  })]
359
- }, void 0)
360
- }, void 0)]
361
- }, void 0), _jsx(_Table, _objectSpread({
359
+ })
360
+ })]
361
+ }), _jsx(_Table, _objectSpread({
362
362
  className: "".concat(className || ''),
363
363
  rowClassName: function rowClassName(record, index, indent) {
364
364
  if (typeof _rowClassName === 'function') {
@@ -400,7 +400,7 @@ var IglooTable = function IglooTable(_ref) {
400
400
  id: 'Click to cancel sorting'
401
401
  })
402
402
  }, locale)
403
- }, rest), void 0), bottomExtra, !noPagination && _jsx(_Row, {
403
+ }, rest)), bottomExtra, !noPagination && _jsx(_Row, {
404
404
  justify: "end",
405
405
  style: {
406
406
  marginTop: 24
@@ -427,7 +427,7 @@ var IglooTable = function IglooTable(_ref) {
427
427
  total: total
428
428
  }
429
429
  })
430
- }, void 0), ' ', _jsx(Typography, {
430
+ }), ' ', _jsx(Typography, {
431
431
  level: "body1",
432
432
  style: {
433
433
  color: '#666666'
@@ -435,14 +435,14 @@ var IglooTable = function IglooTable(_ref) {
435
435
  children: formatMessage({
436
436
  id: 'Rows per page'
437
437
  })
438
- }, void 0), ' ', _jsx(_Select, {
438
+ }), ' ', _jsx(_Select, {
439
439
  value: pageSize,
440
440
  suffixIcon: _jsx(ArrowDownOutlined, {
441
441
  style: {
442
442
  fontSize: 24,
443
443
  color: '#666666'
444
444
  }
445
- }, void 0),
445
+ }),
446
446
  onChange: function onChange(value) {
447
447
  return onPagination(page, value);
448
448
  },
@@ -452,12 +452,12 @@ var IglooTable = function IglooTable(_ref) {
452
452
  value: item
453
453
  };
454
454
  })
455
- }, void 0)]
456
- }, void 0);
455
+ })]
456
+ });
457
457
  },
458
458
  onChange: onPagination
459
- }, void 0)
460
- }, void 0), !noCustomize && _jsxs(Modal, {
459
+ })
460
+ }), !noCustomize && _jsxs(Modal, {
461
461
  width: 430,
462
462
  closable: true,
463
463
  destroyOnClose: true,
@@ -467,7 +467,7 @@ var IglooTable = function IglooTable(_ref) {
467
467
  children: formatMessage({
468
468
  id: 'Customize Columns'
469
469
  })
470
- }, void 0),
470
+ }),
471
471
  cancelButtonProps: {
472
472
  type: 'link',
473
473
  onClick: function onClick() {
@@ -491,7 +491,7 @@ var IglooTable = function IglooTable(_ref) {
491
491
  children: formatMessage({
492
492
  id: 'Apply Columns'
493
493
  })
494
- }, void 0),
494
+ }),
495
495
  children: [_jsx("div", {
496
496
  className: 'modal-describe',
497
497
  children: _jsx(Typography, {
@@ -502,15 +502,15 @@ var IglooTable = function IglooTable(_ref) {
502
502
  colMax: colMax
503
503
  }
504
504
  })
505
- }, void 0)
506
- }, void 0), _jsx(Typography, {
505
+ })
506
+ }), _jsx(Typography, {
507
507
  level: "body1",
508
508
  children: modalContent(columns, modalSelectedCol, function (item) {
509
509
  setModalSelectedCol(item);
510
510
  }, colMax, colDisable)
511
- }, void 0)]
512
- }, void 0)]
513
- }, void 0);
511
+ })]
512
+ })]
513
+ });
514
514
  };
515
515
 
516
516
  export default IglooTable;
package/es/tabs/index.js CHANGED
@@ -2,9 +2,9 @@ import "antd/es/tabs/style";
2
2
  import _Tabs from "antd/es/tabs";
3
3
  var _excluded = ["className"];
4
4
 
5
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
5
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
6
6
 
7
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
7
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
8
8
 
9
9
  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; }
10
10
 
@@ -27,6 +27,6 @@ export default function Tabs(props) {
27
27
 
28
28
  return _jsx(_Tabs, _objectSpread({
29
29
  className: "container ".concat(className)
30
- }, restProps), void 0);
30
+ }, restProps));
31
31
  }
32
32
  Tabs.TabPane = TabPane;
@@ -29,7 +29,7 @@ var IglooTypography = function IglooTypography(_ref) {
29
29
  title: title,
30
30
  onClick: onClick,
31
31
  children: children
32
- }, void 0);
32
+ });
33
33
  }
34
34
 
35
35
  return _jsx("span", {
@@ -38,7 +38,14 @@ var IglooTypography = function IglooTypography(_ref) {
38
38
  title: title,
39
39
  onClick: onClick,
40
40
  children: children
41
- }, void 0);
41
+ });
42
42
  };
43
43
 
44
- export default IglooTypography;
44
+ export default IglooTypography;
45
+
46
+ IglooTypography.formItemPropsHandler = function () {
47
+ return {
48
+ withoutForm: true,
49
+ fullRow: true
50
+ };
51
+ };
@@ -2,11 +2,11 @@ import "antd/es/upload/style";
2
2
  import _Upload from "antd/es/upload";
3
3
  var _excluded = ["value", "limit", "limitErrorMessage", "descriptions", "onChange", "bizKey", "handleUpload", "setFieldError", "className", "validateField", "containerRef", "placeholder"];
4
4
 
5
- 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); }
5
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
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; }
7
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
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; }
9
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
10
10
 
11
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
12
 
@@ -501,7 +501,7 @@ var IglooUpload = function IglooUpload(props) {
501
501
  content: _jsx(Preview, {
502
502
  src: dataUrl,
503
503
  type: classifyType(type)
504
- }, void 0),
504
+ }),
505
505
  title: name,
506
506
  className: 'igloo-upload-preview-modal',
507
507
  maskClosable: true,
@@ -516,7 +516,7 @@ var IglooUpload = function IglooUpload(props) {
516
516
  children: [descriptions && _jsx("div", {
517
517
  className: "igloo-upload-descriptions",
518
518
  children: descriptions
519
- }, void 0), _jsx(Dragger, _objectSpread(_objectSpread({
519
+ }), _jsx(Dragger, _objectSpread(_objectSpread({
520
520
  action: onUpload
521
521
  }, rest), {}, {
522
522
  showUploadList: false,
@@ -531,7 +531,7 @@ var IglooUpload = function IglooUpload(props) {
531
531
  fontSize: 24,
532
532
  color: '#666666'
533
533
  }
534
- }, void 0), _jsx("span", {
534
+ }), _jsx("span", {
535
535
  className: "igloo-upload-placeholder",
536
536
  children: placeholder || _jsxs(_Fragment, {
537
537
  children: [_jsx(Typography, {
@@ -539,7 +539,7 @@ var IglooUpload = function IglooUpload(props) {
539
539
  children: formatMessage({
540
540
  id: 'Drag and drop a file here'
541
541
  })
542
- }, void 0), _jsx(Typography, {
542
+ }), _jsx(Typography, {
543
543
  level: "body1",
544
544
  style: {
545
545
  marginLeft: 4
@@ -547,7 +547,7 @@ var IglooUpload = function IglooUpload(props) {
547
547
  children: formatMessage({
548
548
  id: 'or'
549
549
  })
550
- }, void 0), _jsx(Typography, {
550
+ }), _jsx(Typography, {
551
551
  level: "body1",
552
552
  style: {
553
553
  color: colors.purpleMain,
@@ -556,19 +556,19 @@ var IglooUpload = function IglooUpload(props) {
556
556
  children: formatMessage({
557
557
  id: 'browse'
558
558
  })
559
- }, void 0)]
560
- }, void 0)
561
- }, void 0)]
562
- }, void 0)
563
- }), void 0), !!files.length && _jsx(FileList, {
559
+ })]
560
+ })
561
+ })]
562
+ })
563
+ })), !!files.length && _jsx(FileList, {
564
564
  files: files,
565
565
  limit: limit,
566
566
  handleReUpload: handleReUpload,
567
567
  handlePreview: handlePreview,
568
568
  handleDelete: handleDelete,
569
569
  containerRef: containerRef
570
- }, void 0)]
571
- }, void 0);
570
+ })]
571
+ });
572
572
  };
573
573
 
574
574
  var FileList = function FileList(_ref7) {
@@ -609,30 +609,30 @@ var FileList = function FileList(_ref7) {
609
609
  color: '#999999'
610
610
  },
611
611
  className: "igloo-upload-preview-item-icon"
612
- }, void 0), status === 'progress' && _jsx(LoadingOutlined, {
612
+ }), status === 'progress' && _jsx(LoadingOutlined, {
613
613
  className: "igloo-upload-preview-item-icon igloo-upload-uploading",
614
614
  style: {
615
615
  marginRight: 8,
616
616
  fontSize: 24,
617
617
  color: '#999999'
618
618
  }
619
- }, void 0), _jsxs("div", {
619
+ }), _jsxs("div", {
620
620
  className: "igloo-upload-preview-item-text",
621
621
  children: [_jsx("span", {
622
622
  className: "igloo-upload-preview-item-name",
623
623
  children: _jsx(Typography, {
624
624
  level: "h4",
625
625
  children: name
626
- }, void 0)
627
- }, void 0), Boolean(size) && _jsx("span", {
626
+ })
627
+ }), Boolean(size) && _jsx("span", {
628
628
  className: "igloo-upload-preview-item-size",
629
629
  children: _jsx(Typography, {
630
630
  level: "body1",
631
631
  children: parseFileSize(size)
632
- }, void 0)
633
- }, void 0)]
634
- }, void 0)]
635
- }, void 0), status === 'success' && _jsxs("div", {
632
+ })
633
+ })]
634
+ })]
635
+ }), status === 'success' && _jsxs("div", {
636
636
  className: "igloo-upload-preview-item-operation",
637
637
  children: [type && _jsx(ShowOutlined, {
638
638
  style: {
@@ -644,7 +644,7 @@ var FileList = function FileList(_ref7) {
644
644
  return handlePreview(index);
645
645
  },
646
646
  className: 'igloo-upload-preview-item-operation-left-icon'
647
- }, void 0), _jsx(CrossOutlined, {
647
+ }), _jsx(CrossOutlined, {
648
648
  style: {
649
649
  fontSize: 24,
650
650
  color: '#999999',
@@ -653,8 +653,8 @@ var FileList = function FileList(_ref7) {
653
653
  onClick: function onClick() {
654
654
  return handleDelete(index);
655
655
  }
656
- }, void 0)]
657
- }, void 0), status === 'failed' && _jsxs("div", {
656
+ })]
657
+ }), status === 'failed' && _jsxs("div", {
658
658
  className: "igloo-upload-preview-item-operation",
659
659
  children: [(!limit || index < limit) && _jsx(RefreshOutlined, {
660
660
  style: {
@@ -666,7 +666,7 @@ var FileList = function FileList(_ref7) {
666
666
  return handleReUpload(index);
667
667
  },
668
668
  className: 'igloo-upload-preview-item-operation-left-icon'
669
- }, void 0), _jsx(CrossOutlined, {
669
+ }), _jsx(CrossOutlined, {
670
670
  style: {
671
671
  fontSize: 24,
672
672
  color: '#999999',
@@ -675,11 +675,11 @@ var FileList = function FileList(_ref7) {
675
675
  onClick: function onClick() {
676
676
  return handleDelete(index);
677
677
  }
678
- }, void 0)]
679
- }, void 0)]
678
+ })]
679
+ })]
680
680
  }, index);
681
681
  })
682
- }, void 0);
682
+ });
683
683
 
684
684
  return /*#__PURE__*/ReactDOM.createPortal(children, containerRef.current);
685
685
  };
@@ -709,7 +709,7 @@ IglooUpload.formItemPropsHandler = function (_ref9) {
709
709
  return _jsx(UploadPreview, {
710
710
  label: label,
711
711
  files: value
712
- }, void 0);
712
+ });
713
713
  },
714
714
  fullRow: true,
715
715
  rules: [{
@@ -9,11 +9,11 @@ import _Row from "antd/es/row";
9
9
  import "antd/es/grid/style";
10
10
  import _Grid from "antd/es/grid";
11
11
 
12
- 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); }
12
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
13
13
 
14
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
15
15
 
16
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
17
17
 
18
18
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
 
@@ -675,7 +675,7 @@ var UploadPhoto = function UploadPhoto(props) {
675
675
  content: _jsx(Preview, {
676
676
  src: dataUrl,
677
677
  type: type
678
- }, void 0),
678
+ }),
679
679
  title: name,
680
680
  className: 'igloo-upload-photo-preview-modal',
681
681
  maskClosable: true,
@@ -727,8 +727,8 @@ var UploadPhoto = function UploadPhoto(props) {
727
727
  fontSize: 24,
728
728
  color: '#999999'
729
729
  }
730
- }, void 0)
731
- }, void 0);
730
+ })
731
+ });
732
732
  }
733
733
 
734
734
  return _jsx("div", {
@@ -742,8 +742,8 @@ var UploadPhoto = function UploadPhoto(props) {
742
742
  e.stopPropagation();
743
743
  handleDelete(index);
744
744
  }
745
- }, void 0)
746
- }, void 0);
745
+ })
746
+ });
747
747
  };
748
748
 
749
749
  return _jsxs("div", {
@@ -767,15 +767,15 @@ var UploadPhoto = function UploadPhoto(props) {
767
767
  src: src,
768
768
  alt: "",
769
769
  className: "".concat(prefix, "-sample-photos-photo")
770
- }, void 0), _jsx("div", {
770
+ }), _jsx("div", {
771
771
  className: classnames((_classnames = {}, _defineProperty(_classnames, "".concat(prefix, "-sample-photos-good"), type === 'good'), _defineProperty(_classnames, "".concat(prefix, "-sample-photos-bad"), type === 'bad'), _classnames))
772
- }, void 0), label && _jsx("div", {
772
+ }), label && _jsx("div", {
773
773
  className: classnames((_classnames2 = {}, _defineProperty(_classnames2, "".concat(prefix, "-sample-photos-label"), true), _defineProperty(_classnames2, "".concat(prefix, "-sample-photos-label-good"), type === 'good'), _defineProperty(_classnames2, "".concat(prefix, "-sample-photos-label-bad"), type === 'bad'), _classnames2)),
774
774
  children: _jsx(IglooTypography, {
775
775
  level: "body2",
776
776
  children: label
777
- }, void 0)
778
- }, void 0)]
777
+ })
778
+ })]
779
779
  }, index);
780
780
  }), _jsx(_Col, {
781
781
  className: classnames((_classnames3 = {}, _defineProperty(_classnames3, "".concat(prefix, "-sample-descriptions"), true), _defineProperty(_classnames3, "".concat(prefix, "-sample-descriptions-center"), !!md), _classnames3)),
@@ -783,10 +783,10 @@ var UploadPhoto = function UploadPhoto(props) {
783
783
  children: _jsx(IglooTypography, {
784
784
  level: "caption2",
785
785
  children: descriptions
786
- }, void 0)
787
- }, void 0)]
788
- }, void 0)
789
- }, void 0), _jsx("input", {
786
+ })
787
+ })]
788
+ })
789
+ }), _jsx("input", {
790
790
  id: uploadId,
791
791
  type: "file",
792
792
  style: {
@@ -797,7 +797,7 @@ var UploadPhoto = function UploadPhoto(props) {
797
797
  value: [],
798
798
  multiple: true,
799
799
  capture: capture
800
- }, void 0), _jsxs(_Space, {
800
+ }), _jsxs(_Space, {
801
801
  className: "".concat(prefix, "-content"),
802
802
  size: [16, 16],
803
803
  wrap: true,
@@ -811,16 +811,16 @@ var UploadPhoto = function UploadPhoto(props) {
811
811
  fontSize: 24,
812
812
  color: '#666666'
813
813
  }
814
- }, void 0), _jsx("span", {
814
+ }), _jsx("span", {
815
815
  style: {
816
816
  marginTop: 6
817
817
  },
818
818
  children: _jsx(IglooTypography, {
819
819
  level: "body1",
820
820
  children: buttonText || 'Upload'
821
- }, void 0)
822
- }, void 0)]
823
- }, void 0), files.map(function (_ref11, index) {
821
+ })
822
+ })]
823
+ }), files.map(function (_ref11, index) {
824
824
  var _classnames5;
825
825
 
826
826
  var dataUrl = _ref11.dataUrl,
@@ -845,7 +845,7 @@ var UploadPhoto = function UploadPhoto(props) {
845
845
  type: type,
846
846
  src: dataUrl,
847
847
  className: "".concat(prefix, "-content-preview")
848
- }, void 0), (!limit || index < limit) && masks[index] && _jsxs(_Fragment, {
848
+ }), (!limit || index < limit) && masks[index] && _jsxs(_Fragment, {
849
849
  children: [status === 'failed' && _jsx("div", {
850
850
  className: "".concat(prefix, "-content-mask"),
851
851
  onClick: function onClick(e) {
@@ -856,8 +856,8 @@ var UploadPhoto = function UploadPhoto(props) {
856
856
  style: {
857
857
  fontSize: 24
858
858
  }
859
- }, void 0)
860
- }, void 0), status === 'success' && _jsx("div", {
859
+ })
860
+ }), status === 'success' && _jsx("div", {
861
861
  className: "".concat(prefix, "-content-mask"),
862
862
  onClick: function onClick(e) {
863
863
  e.stopPropagation();
@@ -867,14 +867,14 @@ var UploadPhoto = function UploadPhoto(props) {
867
867
  style: {
868
868
  fontSize: 24
869
869
  }
870
- }, void 0)
871
- }, void 0)]
872
- }, void 0)]
873
- }, void 0)
870
+ })
871
+ })]
872
+ })]
873
+ })
874
874
  }, uid);
875
875
  })]
876
- }, void 0)]
877
- }, void 0);
876
+ })]
877
+ });
878
878
  };
879
879
 
880
880
  function checkFileList(value) {
@@ -903,7 +903,7 @@ UploadPhoto.formItemPropsHandler = function (_ref12) {
903
903
  return _jsx(UploadPreview, {
904
904
  files: value,
905
905
  label: label
906
- }, void 0);
906
+ });
907
907
  },
908
908
  fullRow: true,
909
909
  rules: [{
@@ -16,7 +16,7 @@ var MediaItem = function MediaItem(_ref) {
16
16
  maxWidth: 96,
17
17
  maxHeight: 96
18
18
  }
19
- }, void 0);
19
+ });
20
20
 
21
21
  case 'pdf':
22
22
  return _jsx("div", {
@@ -28,8 +28,8 @@ var MediaItem = function MediaItem(_ref) {
28
28
  maxWidth: 96,
29
29
  maxHeight: 96
30
30
  }
31
- }, void 0)
32
- }, void 0);
31
+ })
32
+ });
33
33
 
34
34
  default:
35
35
  return _jsx("img", {
@@ -39,7 +39,7 @@ var MediaItem = function MediaItem(_ref) {
39
39
  maxWidth: 96,
40
40
  maxHeight: 96
41
41
  }
42
- }, void 0);
42
+ });
43
43
  }
44
44
  };
45
45