iglooform 2.4.7 → 2.4.11

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 (262) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.d.ts +2 -0
  3. package/es/admin-upload/index.js +43 -36
  4. package/es/admin-upload/job-list.js +85 -115
  5. package/es/admin-upload/modal.js +19 -26
  6. package/es/alert-message/index.js +11 -9
  7. package/es/amount/index.js +10 -5
  8. package/es/back-top/index.js +14 -10
  9. package/es/button/index.js +23 -28
  10. package/es/button/style/index.less +23 -19
  11. package/es/card-detail/card-group.js +16 -22
  12. package/es/card-detail/card-item.js +16 -21
  13. package/es/card-detail/card-page.js +11 -15
  14. package/es/card-detail/card.js +24 -24
  15. package/es/card-detail/style/index.less +13 -0
  16. package/es/card-detail/utils.js +6 -7
  17. package/es/checkbox/index.js +23 -22
  18. package/es/claim-list/index.js +53 -70
  19. package/es/confirmation/index.js +7 -9
  20. package/es/date-picker/buddhist.js +3 -3
  21. package/es/date-picker/index.js +10 -4
  22. package/es/declaration/index.js +16 -13
  23. package/es/detail-panel/index.js +67 -83
  24. package/es/documents/index.js +6 -8
  25. package/es/example/index.js +9 -11
  26. package/es/filter/checkBox.js +33 -45
  27. package/es/filter/customize.js +3 -4
  28. package/es/filter/index.d.ts +1 -0
  29. package/es/filter/index.js +88 -112
  30. package/es/filter/radioBox.js +23 -31
  31. package/es/filter/rangePicker.js +43 -59
  32. package/es/form/addable-section/index.d.ts +19 -0
  33. package/es/form/addable-section/index.js +211 -0
  34. package/es/form/addable-section/style/index.d.ts +1 -0
  35. package/es/form/addable-section/style/index.js +1 -0
  36. package/es/form/addable-section/style/index.less +22 -0
  37. package/es/form/divider/index.js +7 -1
  38. package/es/form/element/index.js +58 -47
  39. package/es/form/element/style/index.less +9 -0
  40. package/es/form/index.js +16 -17
  41. package/es/form/login/index.js +15 -20
  42. package/es/form/page/index.js +18 -24
  43. package/es/form/page/style/index.less +1 -1
  44. package/es/form/pages/index.js +23 -32
  45. package/es/form/pages/style/index.less +3 -1
  46. package/es/form/render/index.js +1 -1
  47. package/es/form/section/index.js +14 -17
  48. package/es/form/step/index.js +31 -42
  49. package/es/form/steps/index.js +8 -11
  50. package/es/{form/context.d.ts → form-context.d.ts} +1 -0
  51. package/es/{form/context.js → form-context.js} +0 -0
  52. package/es/free-form/addable-section/index.d.ts +18 -0
  53. package/es/free-form/addable-section/index.js +286 -0
  54. package/es/free-form/addable-section/style/index.d.ts +1 -0
  55. package/es/free-form/addable-section/style/index.js +1 -0
  56. package/es/free-form/addable-section/style/index.less +22 -0
  57. package/es/free-form/element/index.js +43 -41
  58. package/es/free-form/element/style/index.less +12 -2
  59. package/es/free-form/index.d.ts +5 -1
  60. package/es/free-form/index.js +17 -17
  61. package/es/free-form/page/index.js +36 -46
  62. package/es/free-form/page/style/index.less +3 -1
  63. package/es/free-form/pages/index.js +8 -10
  64. package/es/free-form/section/index.js +20 -22
  65. package/es/free-form/section/style/index.less +4 -0
  66. package/es/free-form/step/index.js +37 -47
  67. package/es/free-form/steps/index.js +8 -10
  68. package/es/global-message/index.js +1 -1
  69. package/es/home-menu/index.js +52 -71
  70. package/es/index.d.ts +1 -0
  71. package/es/index.js +2 -1
  72. package/es/input/amount.js +10 -5
  73. package/es/input/credit-card.js +7 -1
  74. package/es/input/email.js +8 -1
  75. package/es/input/expiry-date.js +14 -18
  76. package/es/input/input-date.js +12 -16
  77. package/es/input/input-number.js +9 -2
  78. package/es/input/input.js +9 -2
  79. package/es/input/otp.js +17 -15
  80. package/es/input/password.js +12 -6
  81. package/es/input/phone-number.js +6 -8
  82. package/es/input/style/index.less +9 -1
  83. package/es/input/text-area.js +14 -10
  84. package/es/layout/defaultFooter.js +60 -82
  85. package/es/layout/defaultHeader.js +11 -15
  86. package/es/layout/footer.js +108 -148
  87. package/es/layout/header.js +51 -60
  88. package/es/layout/index.js +16 -12
  89. package/es/locale/en-US/messages.json +2 -0
  90. package/es/locale/id-ID/messages.json +2 -0
  91. package/es/locale/locale-provider.js +8 -10
  92. package/es/locale/th-TH/messages.json +2 -0
  93. package/es/locale/vi-VN/messages.json +2 -0
  94. package/es/locale/zh-CN/messages.json +2 -0
  95. package/es/login-page/index.js +30 -42
  96. package/es/media/index.js +20 -27
  97. package/es/media/media.js +9 -12
  98. package/es/media/preview.js +8 -10
  99. package/es/mobile-insurer-detail/index.js +74 -91
  100. package/es/mobile-insurer-list/index.js +34 -38
  101. package/es/modal/index.d.ts +4 -3
  102. package/es/modal/index.js +25 -27
  103. package/es/modal/style/index.less +24 -5
  104. package/es/platform/platform-card/index.js +9 -12
  105. package/es/platform/switch-platform/index.js +24 -32
  106. package/es/policy-list/index.js +11 -14
  107. package/es/policy-list/policy-card.js +119 -153
  108. package/es/radio/index.js +33 -35
  109. package/es/select/attached-select.js +31 -34
  110. package/es/select/select.js +12 -8
  111. package/es/select/style/index.less +1 -1
  112. package/es/select/time-select.js +12 -16
  113. package/es/status-box/index.js +8 -10
  114. package/es/table/index.js +72 -96
  115. package/es/tabs/index.js +7 -1
  116. package/es/types.d.ts +4 -2
  117. package/es/typography/index.js +6 -8
  118. package/es/upload/index.d.ts +2 -1
  119. package/es/upload/index.js +169 -143
  120. package/es/upload-photo/index.d.ts +2 -1
  121. package/es/upload-photo/index.js +170 -142
  122. package/es/upload-photo/media.js +3 -4
  123. package/es/upload-preview/index.js +9 -12
  124. package/es/upload-preview/media.js +12 -16
  125. package/es/upload-preview/style/index.less +2 -2
  126. package/es/utils/form-utils.js +49 -36
  127. package/lib/admin-upload/float.js +25 -35
  128. package/lib/admin-upload/index.d.ts +2 -0
  129. package/lib/admin-upload/index.js +43 -36
  130. package/lib/admin-upload/job-list.js +85 -115
  131. package/lib/admin-upload/modal.js +19 -26
  132. package/lib/alert-message/index.js +11 -9
  133. package/lib/amount/index.js +10 -5
  134. package/lib/back-top/index.js +14 -10
  135. package/lib/button/index.js +24 -29
  136. package/lib/button/style/index.less +23 -19
  137. package/lib/card-detail/card-group.js +16 -22
  138. package/lib/card-detail/card-item.js +16 -21
  139. package/lib/card-detail/card-page.js +11 -15
  140. package/lib/card-detail/card.js +24 -24
  141. package/lib/card-detail/index.js +6 -6
  142. package/lib/card-detail/style/index.less +13 -0
  143. package/lib/card-detail/utils.js +7 -8
  144. package/lib/checkbox/index.js +24 -23
  145. package/lib/claim-list/index.js +53 -70
  146. package/lib/confirmation/index.js +7 -9
  147. package/lib/date-picker/buddhist.js +3 -3
  148. package/lib/date-picker/index.js +11 -5
  149. package/lib/declaration/index.js +16 -13
  150. package/lib/detail-panel/index.js +67 -83
  151. package/lib/documents/index.js +6 -8
  152. package/lib/example/index.js +10 -12
  153. package/lib/filter/checkBox.js +33 -45
  154. package/lib/filter/customize.js +3 -4
  155. package/lib/filter/index.d.ts +1 -0
  156. package/lib/filter/index.js +88 -112
  157. package/lib/filter/radioBox.js +23 -31
  158. package/lib/filter/rangePicker.js +43 -59
  159. package/lib/form/addable-section/index.d.ts +19 -0
  160. package/lib/form/addable-section/index.js +232 -0
  161. package/lib/form/addable-section/style/index.d.ts +1 -0
  162. package/lib/form/addable-section/style/index.js +3 -0
  163. package/lib/form/addable-section/style/index.less +22 -0
  164. package/lib/form/divider/index.js +7 -1
  165. package/lib/form/element/index.js +60 -48
  166. package/lib/form/element/style/index.less +9 -0
  167. package/lib/form/elements.js +1 -1
  168. package/lib/form/index.js +16 -17
  169. package/lib/form/login/index.js +16 -21
  170. package/lib/form/page/index.js +19 -25
  171. package/lib/form/page/style/index.less +1 -1
  172. package/lib/form/pages/index.js +24 -33
  173. package/lib/form/pages/style/index.less +3 -1
  174. package/lib/form/render/index.js +2 -2
  175. package/lib/form/section/index.js +15 -18
  176. package/lib/form/step/index.js +32 -43
  177. package/lib/form/steps/index.js +9 -12
  178. package/lib/{form/context.d.ts → form-context.d.ts} +1 -0
  179. package/lib/{form/context.js → form-context.js} +0 -0
  180. package/lib/free-form/addable-section/index.d.ts +18 -0
  181. package/lib/free-form/addable-section/index.js +306 -0
  182. package/lib/free-form/addable-section/style/index.d.ts +1 -0
  183. package/lib/free-form/addable-section/style/index.js +3 -0
  184. package/lib/free-form/addable-section/style/index.less +22 -0
  185. package/lib/free-form/element/index.js +44 -42
  186. package/lib/free-form/element/style/index.less +12 -2
  187. package/lib/free-form/index.d.ts +5 -1
  188. package/lib/free-form/index.js +17 -17
  189. package/lib/free-form/page/index.js +37 -47
  190. package/lib/free-form/page/style/index.less +3 -1
  191. package/lib/free-form/pages/index.js +8 -10
  192. package/lib/free-form/section/index.js +21 -23
  193. package/lib/free-form/section/style/index.less +4 -0
  194. package/lib/free-form/step/index.js +38 -48
  195. package/lib/free-form/steps/index.js +9 -11
  196. package/lib/global-message/index.js +1 -1
  197. package/lib/home-menu/index.js +52 -71
  198. package/lib/index.d.ts +1 -0
  199. package/lib/index.js +141 -132
  200. package/lib/input/amount.js +10 -5
  201. package/lib/input/credit-card.js +7 -1
  202. package/lib/input/email.js +7 -1
  203. package/lib/input/expiry-date.js +14 -18
  204. package/lib/input/index.js +18 -18
  205. package/lib/input/input-date.js +12 -16
  206. package/lib/input/input-number.js +8 -2
  207. package/lib/input/input.js +8 -2
  208. package/lib/input/otp.js +17 -15
  209. package/lib/input/password.js +11 -6
  210. package/lib/input/phone-number.js +6 -8
  211. package/lib/input/style/index.less +9 -1
  212. package/lib/input/text-area.js +14 -10
  213. package/lib/layout/defaultFooter.js +60 -82
  214. package/lib/layout/defaultHeader.js +11 -15
  215. package/lib/layout/footer.js +108 -148
  216. package/lib/layout/header.js +51 -60
  217. package/lib/layout/index.js +15 -12
  218. package/lib/locale/en-US/messages.json +2 -0
  219. package/lib/locale/format-message.js +1 -1
  220. package/lib/locale/id-ID/messages.json +2 -0
  221. package/lib/locale/index.js +4 -4
  222. package/lib/locale/locale-provider.js +9 -11
  223. package/lib/locale/th-TH/messages.json +2 -0
  224. package/lib/locale/vi-VN/messages.json +2 -0
  225. package/lib/locale/zh-CN/messages.json +2 -0
  226. package/lib/login-page/index.js +30 -42
  227. package/lib/media/index.js +20 -27
  228. package/lib/media/media.js +9 -12
  229. package/lib/media/preview.js +8 -10
  230. package/lib/mobile-insurer-detail/index.js +74 -91
  231. package/lib/mobile-insurer-list/index.js +34 -38
  232. package/lib/modal/index.d.ts +4 -3
  233. package/lib/modal/index.js +25 -27
  234. package/lib/modal/style/index.less +24 -5
  235. package/lib/platform/platform-card/index.js +9 -12
  236. package/lib/platform/switch-platform/index.js +24 -32
  237. package/lib/policy-list/index.js +11 -14
  238. package/lib/policy-list/policy-card.js +119 -153
  239. package/lib/radio/index.js +33 -35
  240. package/lib/select/attached-select.js +32 -35
  241. package/lib/select/select.js +13 -9
  242. package/lib/select/style/index.less +1 -1
  243. package/lib/select/time-select.js +12 -16
  244. package/lib/status-box/index.js +8 -10
  245. package/lib/table/index.js +72 -96
  246. package/lib/tabs/index.js +8 -2
  247. package/lib/types.d.ts +4 -2
  248. package/lib/typography/index.js +6 -8
  249. package/lib/upload/index.d.ts +2 -1
  250. package/lib/upload/index.js +170 -143
  251. package/lib/upload-photo/index.d.ts +2 -1
  252. package/lib/upload-photo/index.js +171 -142
  253. package/lib/upload-photo/media.js +3 -4
  254. package/lib/upload-preview/index.js +9 -12
  255. package/lib/upload-preview/media.js +12 -16
  256. package/lib/upload-preview/style/index.less +2 -2
  257. package/lib/utils/form-utils.js +49 -37
  258. package/package.json +1 -1
  259. package/es/free-form/context.d.ts +0 -19
  260. package/es/free-form/context.js +0 -7
  261. package/lib/free-form/context.d.ts +0 -19
  262. package/lib/free-form/context.js +0 -19
@@ -85,13 +85,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
85
85
 
86
86
  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; }
87
87
 
88
- 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; }
88
+ 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; }
89
89
 
90
- 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; }
90
+ 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; }
91
91
 
92
92
  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; }
93
93
 
94
- 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); }
94
+ 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); }
95
95
 
96
96
  var headerStyle = function headerStyle() {
97
97
  return {
@@ -112,15 +112,14 @@ var filterDefaultShow = function filterDefaultShow(col) {
112
112
 
113
113
  var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButtonsFilter, setActionListVisible, actionIndex) {
114
114
  var actionButtons = actionButtonsFilter && typeof actionButtonsFilter === 'function' ? actionButtonsFilter(rowData, allButtons) : allButtons;
115
- return (0, _jsxRuntime.jsx)(_space.default, Object.assign({
115
+ return (0, _jsxRuntime.jsx)(_space.default, {
116
116
  size: 16,
117
117
  style: {
118
118
  padding: '4px 8px'
119
119
  },
120
- direction: "vertical"
121
- }, {
120
+ direction: "vertical",
122
121
  children: actionButtons.map(function (item, index) {
123
- return (0, _jsxRuntime.jsx)(_button.default, Object.assign({
122
+ return (0, _jsxRuntime.jsx)(_button.default, {
124
123
  type: "text",
125
124
  onClick: function onClick(e) {
126
125
  item.onClick(rowData);
@@ -128,16 +127,14 @@ var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButton
128
127
  type: actionIndex,
129
128
  value: false
130
129
  });
131
- }
132
- }, {
133
- children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
134
- level: "body1"
135
- }, {
130
+ },
131
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
132
+ level: "body1",
136
133
  children: item.text
137
- }), void 0)
138
- }), index);
134
+ }, void 0)
135
+ }, index);
139
136
  })
140
- }), actionIndex);
137
+ }, actionIndex);
141
138
  };
142
139
 
143
140
  function handleFilterDisable() {
@@ -201,11 +198,10 @@ function paginationItem(page, type, originalElement) {
201
198
  }, void 0);
202
199
  }
203
200
 
204
- return (0, _jsxRuntime.jsx)("span", Object.assign({
205
- className: "ant-btn-link"
206
- }, {
201
+ return (0, _jsxRuntime.jsx)("span", {
202
+ className: "ant-btn-link",
207
203
  children: originalElement
208
- }), void 0);
204
+ }, void 0);
209
205
  }
210
206
 
211
207
  function actionListChange(state, action) {
@@ -301,27 +297,24 @@ var IglooTable = function IglooTable(_ref) {
301
297
  });
302
298
 
303
299
  var modalContent = function modalContent(options, defaultOptions, selectCallBack, colMax, colDisable) {
304
- return (0, _jsxRuntime.jsx)(_checkbox.default.Group, Object.assign({
300
+ return (0, _jsxRuntime.jsx)(_checkbox.default.Group, {
305
301
  defaultValue: defaultOptions,
306
- onChange: selectCallBack
307
- }, {
302
+ onChange: selectCallBack,
308
303
  children: options.filter(function (item) {
309
304
  return item.customize;
310
305
  }).map(function (item) {
311
306
  return (0, _jsxRuntime.jsx)("div", {
312
- children: (0, _jsxRuntime.jsx)(_checkbox.default, Object.assign({
307
+ children: (0, _jsxRuntime.jsx)(_checkbox.default, {
313
308
  value: item.key,
314
- disabled: colDisable && colMax ? defaultOptions.length >= colMax && !defaultOptions.includes(item.key) : false
315
- }, {
316
- children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
317
- level: "body1"
318
- }, {
309
+ disabled: colDisable && colMax ? defaultOptions.length >= colMax && !defaultOptions.includes(item.key) : false,
310
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
311
+ level: "body1",
319
312
  children: item.title
320
- }), void 0)
321
- }), void 0)
313
+ }, void 0)
314
+ }, void 0)
322
315
  }, item.key);
323
316
  })
324
- }), void 0);
317
+ }, void 0);
325
318
  };
326
319
 
327
320
  var actionCol = {
@@ -333,7 +326,7 @@ var IglooTable = function IglooTable(_ref) {
333
326
  key: 'action',
334
327
  align: 'center',
335
328
  render: function render(text, record, index) {
336
- return (0, _jsxRuntime.jsx)(_popover.default, Object.assign({
329
+ return (0, _jsxRuntime.jsx)(_popover.default, {
337
330
  visible: actionListVisible[index] || false,
338
331
  onVisibleChange: function onVisibleChange(visible) {
339
332
  setActionListVisible({
@@ -348,8 +341,7 @@ var IglooTable = function IglooTable(_ref) {
348
341
  },
349
342
  trigger: ['click'],
350
343
  title: null,
351
- arrowPointAtCenter: true
352
- }, {
344
+ arrowPointAtCenter: true,
353
345
  children: (0, _jsxRuntime.jsx)(_iglooicon.DotMenuOutlined, {
354
346
  style: {
355
347
  fontSize: '24px',
@@ -360,59 +352,52 @@ var IglooTable = function IglooTable(_ref) {
360
352
  },
361
353
  className: "igloo-table-action-icon"
362
354
  }, void 0)
363
- }), void 0);
355
+ }, void 0);
364
356
  }
365
357
  };
366
- return (0, _jsxRuntime.jsxs)("div", Object.assign({
358
+ return (0, _jsxRuntime.jsxs)("div", {
367
359
  className: "igloo-table-container",
368
360
  ref: tableRef,
369
- style: style
370
- }, {
371
- children: [(hasFilterOptions || !noCustomize || extraButtons && extraButtons.length !== 0) && (0, _jsxRuntime.jsxs)(_row.default, Object.assign({
361
+ style: style,
362
+ children: [(hasFilterOptions || !noCustomize || extraButtons && extraButtons.length !== 0) && (0, _jsxRuntime.jsxs)(_row.default, {
372
363
  justify: "space-between",
373
364
  gutter: [0, 24],
374
- className: "igloo-table-top-content"
375
- }, {
376
- children: [hasFilterOptions ? (0, _jsxRuntime.jsx)(_index2.default, Object.assign({}, filterConfig, {
365
+ className: "igloo-table-top-content",
366
+ children: [hasFilterOptions ? (0, _jsxRuntime.jsx)(_index2.default, _objectSpread(_objectSpread({}, filterConfig), {}, {
377
367
  parentFilterCallBack: setFilterOptions
378
368
  }), void 0) : (0, _jsxRuntime.jsx)(_col.default, {
379
369
  span: 8
380
370
  }, void 0), (0, _jsxRuntime.jsx)(_col.default, {
381
- children: (0, _jsxRuntime.jsxs)(_space.default, Object.assign({
382
- className: 'igloo-table-button-cantainer'
383
- }, {
384
- children: [!noCustomize && (0, _jsxRuntime.jsx)(_button.default, Object.assign({
371
+ children: (0, _jsxRuntime.jsxs)(_space.default, {
372
+ className: 'igloo-table-button-cantainer',
373
+ children: [!noCustomize && (0, _jsxRuntime.jsx)(_button.default, {
385
374
  icon: (0, _jsxRuntime.jsx)(_iglooicon.SettingOutlined, {}, void 0),
386
375
  onClick: function onClick() {
387
376
  return setModalVisible(true);
388
- }
389
- }, {
390
- children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
391
- level: "h4"
392
- }, {
377
+ },
378
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
379
+ level: "h4",
393
380
  children: formatMessage({
394
381
  id: 'Customize Columns'
395
382
  })
396
- }), void 0)
397
- }), void 0), extraButtons && extraButtons.map(function (item, index) {
383
+ }, void 0)
384
+ }, void 0), extraButtons && extraButtons.map(function (item, index) {
398
385
  return item.render ? /*#__PURE__*/_react.default.cloneElement(item.render(), {
399
386
  key: index
400
- }) : (0, _jsxRuntime.jsx)(_button.default, Object.assign({
387
+ }) : (0, _jsxRuntime.jsx)(_button.default, {
401
388
  icon: item.icon,
402
389
  onClick: function onClick() {
403
390
  return item.onClick && item.onClick(filterOptions);
404
- }
405
- }, {
406
- children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
407
- level: "h4"
408
- }, {
391
+ },
392
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
393
+ level: "h4",
409
394
  children: item.text
410
- }), void 0)
411
- }), index);
395
+ }, void 0)
396
+ }, index);
412
397
  })]
413
- }), void 0)
398
+ }, void 0)
414
399
  }, void 0)]
415
- }), void 0), (0, _jsxRuntime.jsx)(_table.default, Object.assign({
400
+ }, void 0), (0, _jsxRuntime.jsx)(_table.default, _objectSpread({
416
401
  className: "".concat(className || ''),
417
402
  rowClassName: function rowClassName(record, index, indent) {
418
403
  if (typeof _rowClassName === 'function') {
@@ -454,12 +439,11 @@ var IglooTable = function IglooTable(_ref) {
454
439
  id: 'Click to cancel sorting'
455
440
  })
456
441
  }, locale)
457
- }, rest), void 0), bottomExtra, !noPagination && (0, _jsxRuntime.jsx)(_row.default, Object.assign({
442
+ }, rest), void 0), bottomExtra, !noPagination && (0, _jsxRuntime.jsx)(_row.default, {
458
443
  justify: "end",
459
444
  style: {
460
445
  marginTop: 24
461
- }
462
- }, {
446
+ },
463
447
  children: (0, _jsxRuntime.jsx)(_pagination.default, {
464
448
  itemRender: paginationItem,
465
449
  size: "small",
@@ -469,12 +453,11 @@ var IglooTable = function IglooTable(_ref) {
469
453
  showSizeChanger: false,
470
454
  showTotal: function showTotal(total, range) {
471
455
  return (0, _jsxRuntime.jsxs)(_space.default, {
472
- children: [(0, _jsxRuntime.jsx)(_typography.default, Object.assign({
456
+ children: [(0, _jsxRuntime.jsx)(_typography.default, {
473
457
  level: "body1",
474
458
  style: {
475
459
  color: '#666666'
476
- }
477
- }, {
460
+ },
478
461
  children: formatMessage({
479
462
  id: '{beginIndex}-{endIndex} of {total}',
480
463
  values: {
@@ -483,16 +466,15 @@ var IglooTable = function IglooTable(_ref) {
483
466
  total: total
484
467
  }
485
468
  })
486
- }), void 0), ' ', (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
469
+ }, void 0), ' ', (0, _jsxRuntime.jsx)(_typography.default, {
487
470
  level: "body1",
488
471
  style: {
489
472
  color: '#666666'
490
- }
491
- }, {
473
+ },
492
474
  children: formatMessage({
493
475
  id: 'Rows per page'
494
476
  })
495
- }), void 0), ' ', (0, _jsxRuntime.jsx)(_select.default, {
477
+ }, void 0), ' ', (0, _jsxRuntime.jsx)(_select.default, {
496
478
  value: pageSize,
497
479
  suffixIcon: (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
498
480
  style: {
@@ -514,18 +496,17 @@ var IglooTable = function IglooTable(_ref) {
514
496
  },
515
497
  onChange: onPagination
516
498
  }, void 0)
517
- }), void 0), !noCustomize && (0, _jsxRuntime.jsxs)(_index.default, Object.assign({
499
+ }, void 0), !noCustomize && (0, _jsxRuntime.jsxs)(_index.default, {
518
500
  width: 430,
519
501
  closable: true,
520
502
  destroyOnClose: true,
521
503
  visible: modalVisible,
522
- title: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
523
- level: "h4"
524
- }, {
504
+ title: (0, _jsxRuntime.jsx)(_typography.default, {
505
+ level: "h4",
525
506
  children: formatMessage({
526
507
  id: 'Customize Columns'
527
508
  })
528
- }), void 0),
509
+ }, void 0),
529
510
  cancelButtonProps: {
530
511
  type: 'link',
531
512
  onClick: function onClick() {
@@ -544,36 +525,31 @@ var IglooTable = function IglooTable(_ref) {
544
525
  setModalVisible(false);
545
526
  setSelectedColKeys(modalSelectedCol);
546
527
  },
547
- okText: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
548
- level: "h4"
549
- }, {
528
+ okText: (0, _jsxRuntime.jsx)(_typography.default, {
529
+ level: "h4",
550
530
  children: formatMessage({
551
531
  id: 'Apply Columns'
552
532
  })
553
- }), void 0)
554
- }, {
555
- children: [(0, _jsxRuntime.jsx)("div", Object.assign({
556
- className: 'modal-describe'
557
- }, {
558
- children: (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
559
- level: "body1"
560
- }, {
533
+ }, void 0),
534
+ children: [(0, _jsxRuntime.jsx)("div", {
535
+ className: 'modal-describe',
536
+ children: (0, _jsxRuntime.jsx)(_typography.default, {
537
+ level: "body1",
561
538
  children: colMax === null ? '' : formatMessage({
562
539
  id: 'It is recommended to select no more than {colMax} metrics to ensure the default visibility of each column input.',
563
540
  values: {
564
541
  colMax: colMax
565
542
  }
566
543
  })
567
- }), void 0)
568
- }), void 0), (0, _jsxRuntime.jsx)(_typography.default, Object.assign({
569
- level: "body1"
570
- }, {
544
+ }, void 0)
545
+ }, void 0), (0, _jsxRuntime.jsx)(_typography.default, {
546
+ level: "body1",
571
547
  children: modalContent(columns, modalSelectedCol, function (item) {
572
548
  setModalSelectedCol(item);
573
549
  }, colMax, colDisable)
574
- }), void 0)]
575
- }), void 0)]
576
- }), void 0);
550
+ }, void 0)]
551
+ }, void 0)]
552
+ }, void 0);
577
553
  };
578
554
 
579
555
  var _default = IglooTable;
package/lib/tabs/index.js CHANGED
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = Tabs;
7
6
  exports.TabPane = void 0;
7
+ exports.default = Tabs;
8
8
 
9
9
  require("antd/es/tabs/style");
10
10
 
@@ -18,6 +18,12 @@ var _excluded = ["className"];
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
21
+ 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; }
22
+
23
+ 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; }
24
+
25
+ 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; }
26
+
21
27
  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; }
22
28
 
23
29
  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; }
@@ -35,7 +41,7 @@ function Tabs(props) {
35
41
  className = _props$className === void 0 ? '' : _props$className,
36
42
  restProps = _objectWithoutProperties(props, _excluded);
37
43
 
38
- return (0, _jsxRuntime.jsx)(_tabs.default, Object.assign({
44
+ return (0, _jsxRuntime.jsx)(_tabs.default, _objectSpread({
39
45
  className: "container ".concat(className)
40
46
  }, restProps), void 0);
41
47
  }
package/lib/types.d.ts CHANGED
@@ -24,11 +24,12 @@ export interface FormBasicConfig {
24
24
  showSubmitButton?: boolean;
25
25
  getScrollContainer?: () => HTMLElement | null;
26
26
  onFirstModified?: () => any;
27
+ uploadApi?: string;
27
28
  }
28
29
  export declare type FormItemAssert = {
29
30
  field: NamePath;
30
- value: any;
31
- operation?: 'eq' | 'ne' | 'in' | 'ni' | 'lt' | 'le' | 'gt' | 'ge' | 'co' | 'nc';
31
+ value?: any;
32
+ operation?: 'eq' | 'ne' | 'in' | 'ni' | 'lt' | 'le' | 'gt' | 'ge' | 'co' | 'nc' | 'filled';
32
33
  };
33
34
  export declare type FormItemCopyValue = {
34
35
  assert: FormItemAssert;
@@ -43,6 +44,7 @@ export declare type FormItemSelectValue = {
43
44
  export interface FormItemExtraConfig extends FormItemProps {
44
45
  elements?: FormItemConfig[];
45
46
  required?: boolean;
47
+ requiredAsserts?: FormItemAssert[];
46
48
  extraLabel?: any;
47
49
  xl?: number;
48
50
  md?: number;
@@ -34,24 +34,22 @@ var IglooTypography = function IglooTypography(_ref) {
34
34
  }
35
35
 
36
36
  if (wrapElement === 'div') {
37
- return (0, _jsxRuntime.jsx)("div", Object.assign({
37
+ return (0, _jsxRuntime.jsx)("div", {
38
38
  className: (0, _classnames.default)(classNameObj, 'word-wrap', className),
39
39
  style: style,
40
40
  title: title,
41
- onClick: onClick
42
- }, {
41
+ onClick: onClick,
43
42
  children: children
44
- }), void 0);
43
+ }, void 0);
45
44
  }
46
45
 
47
- return (0, _jsxRuntime.jsx)("span", Object.assign({
46
+ return (0, _jsxRuntime.jsx)("span", {
48
47
  className: (0, _classnames.default)(classNameObj, 'word-wrap', className),
49
48
  style: style,
50
49
  title: title,
51
- onClick: onClick
52
- }, {
50
+ onClick: onClick,
53
51
  children: children
54
- }), void 0);
52
+ }, void 0);
55
53
  };
56
54
 
57
55
  var _default = IglooTypography;
@@ -3,13 +3,14 @@ import { FC, IglooComponentProps } from '../types';
3
3
  import './style/index.less';
4
4
  export interface IglooUploadProps extends UploadProps, IglooComponentProps {
5
5
  placeholder?: string;
6
- handleUpload(file: RcFile): PromiseLike<string>;
6
+ handleUpload?(file: RcFile): PromiseLike<string>;
7
7
  value?: string[];
8
8
  onChange?: (value: any) => void;
9
9
  limit?: number;
10
10
  limitErrorMessage?: Function | string;
11
11
  containerRef?: any;
12
12
  descriptions?: any;
13
+ bizKey?: string;
13
14
  }
14
15
  declare const IglooUpload: FC<IglooUploadProps>;
15
16
  export default IglooUpload;