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
@@ -3,9 +3,9 @@ import _Space from "antd/es/space";
3
3
  import "antd/es/row/style";
4
4
  import _Row from "antd/es/row";
5
5
 
6
- 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; }
6
+ 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; }
7
7
 
8
- 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; }
8
+ 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; }
9
9
 
10
10
  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; }
11
11
 
@@ -36,27 +36,24 @@ export var JobItem = function JobItem(_ref) {
36
36
  formatMessage = _useContext.formatMessage;
37
37
 
38
38
  var progress = Number((success_num + fail_num) / total_num * 100).toFixed(2);
39
- var downloadReport = fail_data_url ? _jsxs(Button, Object.assign({
39
+ var downloadReport = fail_data_url ? _jsxs(Button, {
40
40
  type: "link",
41
- href: fail_data_url
42
- }, {
43
- children: [_jsx(Typography, Object.assign({
44
- level: "h5"
45
- }, {
41
+ href: fail_data_url,
42
+ children: [_jsx(Typography, {
43
+ level: "h5",
46
44
  children: formatMessage({
47
45
  id: 'Error Report'
48
46
  })
49
- }), void 0), ' ', _jsx(DownloadOutlined, {
47
+ }, void 0), ' ', _jsx(DownloadOutlined, {
50
48
  style: {
51
49
  fontSize: 24
52
50
  }
53
51
  }, void 0)]
54
- }), void 0) : null;
52
+ }, void 0) : null;
55
53
 
56
- var result = _jsx(Typography, Object.assign({
54
+ var result = _jsx(Typography, {
57
55
  level: "caption2",
58
- wrapElement: "div"
59
- }, {
56
+ wrapElement: "div",
60
57
  children: formatMessage({
61
58
  id: 'Result: Success {success_num}; Error {fail_num}',
62
59
  values: {
@@ -64,61 +61,54 @@ export var JobItem = function JobItem(_ref) {
64
61
  fail_num: fail_num
65
62
  }
66
63
  })
67
- }), void 0);
64
+ }, void 0);
68
65
 
69
- return _jsxs("div", Object.assign({
66
+ return _jsxs("div", {
70
67
  className: classnames({
71
68
  'igloo-job-item': true,
72
69
  'igloo-job-item-loading': status === 'Processing'
73
70
  }),
74
71
  style: {
75
72
  borderImage: "linear-gradient(to right, #5858FF, #5858FF ".concat(progress, "%, #CCCCFF ").concat(progress, "%, #CCCCFF 100%) 2")
76
- }
77
- }, {
78
- children: [_jsxs(_Row, Object.assign({
79
- justify: "space-between"
80
- }, {
81
- children: [_jsxs(_Space, Object.assign({
82
- size: 8
83
- }, {
73
+ },
74
+ children: [_jsxs(_Row, {
75
+ justify: "space-between",
76
+ children: [_jsxs(_Space, {
77
+ size: 8,
84
78
  children: [_jsx(ExcelOutlined, {
85
79
  className: "igloo-job-item-icon"
86
- }, void 0), _jsx(Typography, Object.assign({
80
+ }, void 0), _jsx(Typography, {
87
81
  level: "h5",
88
82
  className: "igloo-job-item-fileName",
89
83
  style: {
90
84
  maxWidth: size === 'default' ? 260 : 120
91
85
  },
92
- title: origin_file_name
93
- }, {
86
+ title: origin_file_name,
94
87
  children: origin_file_name
95
- }), void 0)]
96
- }), void 0), _jsxs("div", Object.assign({
88
+ }, void 0)]
89
+ }, void 0), _jsxs("div", {
97
90
  style: {
98
91
  display: 'flex',
99
92
  alignItems: 'center'
100
- }
101
- }, {
102
- children: [_jsxs(Typography, Object.assign({
93
+ },
94
+ children: [_jsxs(Typography, {
103
95
  level: "body2",
104
96
  style: {
105
97
  marginRight: 16
106
- }
107
- }, {
98
+ },
108
99
  children: [size !== 'small' && _jsx("span", {
109
100
  children: status === 'Processing' ? formatMessage({
110
101
  id: 'Data Processing...'
111
102
  }) : formatMessage({
112
103
  id: 'Data Processed'
113
104
  })
114
- }, void 0), _jsxs("span", Object.assign({
105
+ }, void 0), _jsxs("span", {
115
106
  style: {
116
107
  marginLeft: 8
117
- }
118
- }, {
108
+ },
119
109
  children: [progress, "%"]
120
- }), void 0)]
121
- }), void 0), _jsx(CrossOutlined, {
110
+ }, void 0)]
111
+ }, void 0), _jsx(CrossOutlined, {
122
112
  className: "igloo-job-item-icon igloo-job-item-icon-delete",
123
113
  onClick: function onClick() {
124
114
  return handleHide(job_id);
@@ -131,22 +121,19 @@ export var JobItem = function JobItem(_ref) {
131
121
  className: "igloo-job-item-icon igloo-job-item-icon-loading",
132
122
  spinning: true
133
123
  }, void 0)]
134
- }), void 0)]
135
- }), void 0), status === 'Done' && (size === 'default' ? _jsxs(_Row, Object.assign({
124
+ }, void 0)]
125
+ }, void 0), status === 'Done' && (size === 'default' ? _jsxs(_Row, {
136
126
  justify: "space-between",
137
- className: "igloo-job-item-result"
138
- }, {
127
+ className: "igloo-job-item-result",
139
128
  children: [result, downloadReport]
140
- }), void 0) : _jsxs("div", Object.assign({
141
- className: "igloo-job-item-result"
142
- }, {
143
- children: [result, _jsxs(_Row, Object.assign({
144
- justify: "space-between"
145
- }, {
129
+ }, void 0) : _jsxs("div", {
130
+ className: "igloo-job-item-result",
131
+ children: [result, _jsxs(_Row, {
132
+ justify: "space-between",
146
133
  children: [_jsx("div", {}, void 0), downloadReport]
147
- }), void 0)]
148
- }), void 0))]
149
- }), void 0);
134
+ }, void 0)]
135
+ }, void 0))]
136
+ }, void 0);
150
137
  };
151
138
  export var UploadJobItem = function UploadJobItem(_ref2) {
152
139
  var uid = _ref2.uid,
@@ -160,66 +147,57 @@ export var UploadJobItem = function UploadJobItem(_ref2) {
160
147
  handleReupload = _ref2.handleReupload,
161
148
  handleCancel = _ref2.handleCancel;
162
149
 
163
- var loadedSize = _jsx(Typography, Object.assign({
164
- level: "body2"
165
- }, {
150
+ var loadedSize = _jsx(Typography, {
151
+ level: "body2",
166
152
  children: parseFileSize(loadedSizeProp)
167
- }), void 0);
153
+ }, void 0);
168
154
 
169
- var total = _jsx(Typography, Object.assign({
170
- level: "body2"
171
- }, {
155
+ var total = _jsx(Typography, {
156
+ level: "body2",
172
157
  children: parseFileSize(totalProp)
173
- }), void 0);
158
+ }, void 0);
174
159
 
175
- var fileSize = _jsx(Typography, Object.assign({
160
+ var fileSize = _jsx(Typography, {
176
161
  level: "body2",
177
162
  style: {
178
163
  marginRight: 16
179
- }
180
- }, {
164
+ },
181
165
  children: parseFileSize(fileSizeProp)
182
- }), void 0);
166
+ }, void 0);
183
167
 
184
- var percent = _jsxs(Typography, Object.assign({
168
+ var percent = _jsxs(Typography, {
185
169
  level: "body2",
186
170
  style: {
187
171
  marginRight: 16
188
- }
189
- }, {
172
+ },
190
173
  children: [totalProp ? Number(loadedSizeProp / totalProp * 100).toFixed(2) : '-', "%"]
191
- }), void 0);
174
+ }, void 0);
192
175
 
193
- return _jsxs("div", Object.assign({
176
+ return _jsxs("div", {
194
177
  className: classnames({
195
178
  'igloo-job-item': true,
196
179
  'igloo-job-item-failed': status === 'failed'
197
- })
198
- }, {
199
- children: [_jsxs(_Row, Object.assign({
200
- justify: "space-between"
201
- }, {
202
- children: [_jsxs(_Space, Object.assign({
203
- size: 8
204
- }, {
180
+ }),
181
+ children: [_jsxs(_Row, {
182
+ justify: "space-between",
183
+ children: [_jsxs(_Space, {
184
+ size: 8,
205
185
  children: [_jsx(ExcelOutlined, {
206
186
  className: "igloo-job-item-icon"
207
- }, void 0), _jsx(Typography, Object.assign({
187
+ }, void 0), _jsx(Typography, {
208
188
  level: "h5",
209
189
  className: "igloo-job-item-fileName",
210
190
  style: {
211
191
  maxWidth: size === 'default' ? 260 : 120
212
192
  },
213
- title: fileName
214
- }, {
193
+ title: fileName,
215
194
  children: fileName
216
- }), void 0)]
217
- }), void 0), _jsxs("div", Object.assign({
195
+ }, void 0)]
196
+ }, void 0), _jsxs("div", {
218
197
  style: {
219
198
  display: 'flex',
220
199
  alignItems: 'center'
221
- }
222
- }, {
200
+ },
223
201
  children: [status === 'failed' ? fileSize : percent, status === 'failed' && !errorMessage && _jsx(RefreshOutlined, {
224
202
  className: "igloo-job-item-icon igloo-job-item-icon-reupload",
225
203
  style: {
@@ -254,15 +232,14 @@ export var UploadJobItem = function UploadJobItem(_ref2) {
254
232
  return handleCancel(uid);
255
233
  }
256
234
  }, void 0)]
257
- }), void 0)]
258
- }), void 0), errorMessage && _jsx(Typography, Object.assign({
235
+ }, void 0)]
236
+ }, void 0), errorMessage && _jsx(Typography, {
259
237
  level: "body2",
260
238
  className: "igloo-job-item-error",
261
- wrapElement: "div"
262
- }, {
239
+ wrapElement: "div",
263
240
  children: errorMessage
264
- }), void 0)]
265
- }), void 0);
241
+ }, void 0)]
242
+ }, void 0);
266
243
  };
267
244
 
268
245
  var JobList = function JobList(_ref3) {
@@ -279,21 +256,18 @@ var JobList = function JobList(_ref3) {
279
256
  var _useContext2 = useContext(LocaleContext),
280
257
  formatMessage = _useContext2.formatMessage;
281
258
 
282
- return _jsxs("div", Object.assign({
283
- className: "igloo-job-list"
284
- }, {
285
- children: [Boolean(uploadJobs === null || uploadJobs === void 0 ? void 0 : uploadJobs.length) && _jsxs("div", Object.assign({
286
- className: "igloo-job-list-section"
287
- }, {
288
- children: [_jsx(Typography, Object.assign({
259
+ return _jsxs("div", {
260
+ className: "igloo-job-list",
261
+ children: [Boolean(uploadJobs === null || uploadJobs === void 0 ? void 0 : uploadJobs.length) && _jsxs("div", {
262
+ className: "igloo-job-list-section",
263
+ children: [_jsx(Typography, {
289
264
  level: "body2",
290
265
  wrapElement: "div",
291
- className: "igloo-job-list-section-title"
292
- }, {
266
+ className: "igloo-job-list-section-title",
293
267
  children: formatMessage({
294
268
  id: 'Uploading'
295
269
  })
296
- }), void 0), uploadJobs.map(function (props, index) {
270
+ }, void 0), uploadJobs.map(function (props, index) {
297
271
  return /*#__PURE__*/_createElement(UploadJobItem, _objectSpread(_objectSpread({}, props), {}, {
298
272
  size: size,
299
273
  key: index,
@@ -301,18 +275,16 @@ var JobList = function JobList(_ref3) {
301
275
  handleReupload: reUpload
302
276
  }));
303
277
  })]
304
- }), void 0), Boolean(processingJobs === null || processingJobs === void 0 ? void 0 : processingJobs.length) && _jsxs("div", Object.assign({
305
- className: "igloo-job-list-section"
306
- }, {
307
- children: [_jsx(Typography, Object.assign({
278
+ }, void 0), Boolean(processingJobs === null || processingJobs === void 0 ? void 0 : processingJobs.length) && _jsxs("div", {
279
+ className: "igloo-job-list-section",
280
+ children: [_jsx(Typography, {
308
281
  level: "body2",
309
282
  wrapElement: "div",
310
- className: "igloo-job-list-section-title"
311
- }, {
283
+ className: "igloo-job-list-section-title",
312
284
  children: formatMessage({
313
285
  id: 'Processing'
314
286
  })
315
- }), void 0), fetchingFailed && _jsx(AlertMessage, {
287
+ }, void 0), fetchingFailed && _jsx(AlertMessage, {
316
288
  type: "warning",
317
289
  message: formatMessage({
318
290
  id: 'Processing progress cannot be updated at the moment. Don’t worry! All your file data are still in progress.'
@@ -326,18 +298,16 @@ var JobList = function JobList(_ref3) {
326
298
  handleHide: hideJob
327
299
  }));
328
300
  })]
329
- }), void 0), Boolean(doneJobs === null || doneJobs === void 0 ? void 0 : doneJobs.length) && _jsxs("div", Object.assign({
330
- className: "igloo-job-list-section"
331
- }, {
332
- children: [_jsx(Typography, Object.assign({
301
+ }, void 0), Boolean(doneJobs === null || doneJobs === void 0 ? void 0 : doneJobs.length) && _jsxs("div", {
302
+ className: "igloo-job-list-section",
303
+ children: [_jsx(Typography, {
333
304
  level: "body2",
334
305
  wrapElement: "div",
335
- className: "igloo-job-list-section-title"
336
- }, {
306
+ className: "igloo-job-list-section-title",
337
307
  children: formatMessage({
338
308
  id: 'Result'
339
309
  })
340
- }), void 0), doneJobs.map(function (props, index) {
310
+ }, void 0), doneJobs.map(function (props, index) {
341
311
  return /*#__PURE__*/_createElement(JobItem, _objectSpread(_objectSpread({}, props), {}, {
342
312
  key: props.job_id,
343
313
  size: size,
@@ -345,8 +315,8 @@ var JobList = function JobList(_ref3) {
345
315
  handleHide: hideJob
346
316
  }));
347
317
  })]
348
- }), void 0)]
349
- }), void 0);
318
+ }, void 0)]
319
+ }, void 0);
350
320
  };
351
321
 
352
322
  export default JobList;
@@ -46,7 +46,7 @@ var Import = function Import(_ref) {
46
46
  setSource(void 0);
47
47
  }
48
48
  }, [visible]);
49
- return _jsx(_Modal, Object.assign({
49
+ return _jsx(_Modal, {
50
50
  className: "igloo-admin-upload-modal",
51
51
  title: title || 'Import',
52
52
  visible: visible,
@@ -58,12 +58,10 @@ var Import = function Import(_ref) {
58
58
  fontSize: 24
59
59
  }
60
60
  }, void 0),
61
- destroyOnClose: true
62
- }, {
63
- children: _jsxs("div", Object.assign({
64
- className: "igloo-admin-upload-modal-content"
65
- }, {
66
- children: [_jsxs(_Upload.Dragger, Object.assign({
61
+ destroyOnClose: true,
62
+ children: _jsxs("div", {
63
+ className: "igloo-admin-upload-modal-content",
64
+ children: [_jsxs(_Upload.Dragger, {
67
65
  className: "igloo-admin-upload-dragger",
68
66
  disabled: !currentSource,
69
67
  accept: accept,
@@ -73,8 +71,7 @@ var Import = function Import(_ref) {
73
71
  var dataSourceId = currentSource;
74
72
  Array.isArray(dataSource) && setSource(undefined);
75
73
  return onUpload(file, dataSourceId);
76
- }
77
- }, {
74
+ },
78
75
  children: [_jsx(ImportFilled, {
79
76
  className: "igloo-admin-upload-dragger-icon"
80
77
  }, void 0), Array.isArray(dataSource) && _jsx(Select, {
@@ -90,41 +87,37 @@ var Import = function Import(_ref) {
90
87
  onChange: function onChange(value) {
91
88
  return setSource(value);
92
89
  }
93
- }, void 0), _jsxs(Typography, Object.assign({
90
+ }, void 0), _jsxs(Typography, {
94
91
  level: "body1",
95
92
  className: "igloo-admin-upload-dargger-title",
96
- wrapElement: "div"
97
- }, {
93
+ wrapElement: "div",
98
94
  children: [formatMessage({
99
95
  id: 'Drag and drop a file here'
100
96
  }), ' ', formatMessage({
101
97
  id: 'or'
102
- }), ' ', _jsx(Typography, Object.assign({
98
+ }), ' ', _jsx(Typography, {
103
99
  level: "h4",
104
100
  style: {
105
101
  color: currentSource ? '#5858FF' : '#CCCCFF'
106
- }
107
- }, {
102
+ },
108
103
  children: formatMessage({
109
104
  id: 'browse'
110
105
  })
111
- }), void 0)]
112
- }), void 0), _jsx(Typography, Object.assign({
106
+ }, void 0)]
107
+ }, void 0), _jsx(Typography, {
113
108
  level: "caption3",
114
109
  className: "igloo-admin-upload-dargger-tips",
115
- wrapElement: "div"
116
- }, {
110
+ wrapElement: "div",
117
111
  children: tips || formatMessage({
118
112
  id: 'We support CSV or XLSX files (less than 20M each).'
119
113
  })
120
- }), void 0)]
121
- }), void 0), _jsx("div", Object.assign({
122
- className: "igloo-admin-upload-modal-list"
123
- }, {
114
+ }, void 0)]
115
+ }, void 0), _jsx("div", {
116
+ className: "igloo-admin-upload-modal-list",
124
117
  children: children
125
- }), void 0)]
126
- }), void 0)
127
- }), void 0);
118
+ }, void 0)]
119
+ }, void 0)
120
+ }, void 0);
128
121
  };
129
122
 
130
123
  export default Import;
@@ -2,6 +2,10 @@ import "antd/es/alert/style";
2
2
  import _Alert from "antd/es/alert";
3
3
  var _excluded = ["showIcon", "icon", "type", "className", "style", "description", "message"];
4
4
 
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
+
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
+
5
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; }
6
10
 
7
11
  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; }
@@ -54,7 +58,7 @@ var IglooAlertMessage = function IglooAlertMessage(props) {
54
58
  message = props.message,
55
59
  restProps = _objectWithoutProperties(props, _excluded);
56
60
 
57
- return _jsx(_Alert, Object.assign({
61
+ return _jsx(_Alert, _objectSpread({
58
62
  className: classnames((_classnames = {
59
63
  'igloo-alert-message': true
60
64
  }, _defineProperty(_classnames, "".concat(prefix, "-").concat(type), true), _defineProperty(_classnames, className, className), _classnames)),
@@ -62,16 +66,14 @@ var IglooAlertMessage = function IglooAlertMessage(props) {
62
66
  showIcon: showIcon,
63
67
  icon: judgeIconType(icon, type),
64
68
  type: type,
65
- message: _jsx(Typography, Object.assign({
66
- level: "body2"
67
- }, {
69
+ message: _jsx(Typography, {
70
+ level: "body2",
68
71
  children: message
69
- }), void 0),
70
- description: description && _jsx(Typography, Object.assign({
71
- level: "body2"
72
- }, {
72
+ }, void 0),
73
+ description: description && _jsx(Typography, {
74
+ level: "body2",
73
75
  children: description
74
- }), void 0)
76
+ }, void 0)
75
77
  }, restProps), void 0);
76
78
  };
77
79
 
@@ -2,6 +2,12 @@ import "antd/es/statistic/style";
2
2
  import _Statistic from "antd/es/statistic";
3
3
  var _excluded = ["amount", "level", "precision"];
4
4
 
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
+
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
+
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
+
5
11
  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; }
6
12
 
7
13
  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; }
@@ -26,16 +32,15 @@ var Amount = function Amount(_ref) {
26
32
 
27
33
  var value = exchange(amount);
28
34
  var sepecialCurrency = currencyList.includes(currentCurrency);
29
- return _jsx(Typography, Object.assign({
30
- level: level
31
- }, {
32
- children: _jsx(_Statistic, Object.assign({
35
+ return _jsx(Typography, {
36
+ level: level,
37
+ children: _jsx(_Statistic, _objectSpread({
33
38
  value: value,
34
39
  precision: precision,
35
40
  groupSeparator: sepecialCurrency ? '.' : ',',
36
41
  decimalSeparator: sepecialCurrency ? ',' : '.'
37
42
  }, rest), void 0)
38
- }), void 0);
43
+ }, void 0);
39
44
  };
40
45
 
41
46
  export default Amount;
@@ -2,6 +2,12 @@ import "antd/es/back-top/style";
2
2
  import _BackTop from "antd/es/back-top";
3
3
  var _excluded = ["className", "style", "visibilityHeight"];
4
4
 
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
+
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
+
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
+
5
11
  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; }
6
12
 
7
13
  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; }
@@ -18,22 +24,20 @@ var BackToTop = function BackToTop(props) {
18
24
  visibilityHeight = _props$visibilityHeig === void 0 ? -1 : _props$visibilityHeig,
19
25
  restProps = _objectWithoutProperties(props, _excluded);
20
26
 
21
- return _jsx(_BackTop, Object.assign({
27
+ return _jsx(_BackTop, _objectSpread(_objectSpread({
22
28
  visibilityHeight: visibilityHeight,
23
29
  className: 'igloo-back-top-container'
24
- }, restProps, {
25
- children: _jsxs("div", Object.assign({
30
+ }, restProps), {}, {
31
+ children: _jsxs("div", {
26
32
  className: classNames(className, 'igloo-back-top', 'ant-btn-primary'),
27
- style: style
28
- }, {
33
+ style: style,
29
34
  children: [_jsx(ArrowUpOutlined, {
30
35
  className: 'igloo-back-top-icon'
31
- }, void 0), _jsx("span", Object.assign({
32
- className: 'igloo-back-top-text'
33
- }, {
36
+ }, void 0), _jsx("span", {
37
+ className: 'igloo-back-top-text',
34
38
  children: "Top"
35
- }), void 0)]
36
- }), void 0)
39
+ }, void 0)]
40
+ }, void 0)
37
41
  }), void 0);
38
42
  };
39
43