iglooform 2.4.8 → 2.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/es/admin-upload/float.js +25 -35
  2. package/es/admin-upload/index.js +18 -25
  3. package/es/admin-upload/job-list.js +83 -113
  4. package/es/admin-upload/modal.js +19 -26
  5. package/es/alert-message/index.js +11 -9
  6. package/es/amount/index.js +10 -5
  7. package/es/back-top/index.js +14 -10
  8. package/es/button/index.js +21 -26
  9. package/es/card-detail/card-group.js +16 -22
  10. package/es/card-detail/card-item.js +15 -20
  11. package/es/card-detail/card-page.js +11 -15
  12. package/es/card-detail/card.js +24 -24
  13. package/es/card-detail/utils.js +3 -4
  14. package/es/checkbox/index.js +23 -22
  15. package/es/claim-list/index.js +51 -68
  16. package/es/confirmation/index.js +5 -7
  17. package/es/date-picker/buddhist.js +1 -1
  18. package/es/date-picker/index.js +10 -4
  19. package/es/declaration/index.js +16 -13
  20. package/es/detail-panel/index.js +67 -83
  21. package/es/documents/index.js +6 -8
  22. package/es/example/index.js +3 -4
  23. package/es/filter/checkBox.js +33 -45
  24. package/es/filter/customize.js +3 -4
  25. package/es/filter/index.js +79 -107
  26. package/es/filter/radioBox.js +23 -31
  27. package/es/filter/rangePicker.js +43 -59
  28. package/es/form/divider/index.js +7 -1
  29. package/es/form/element/index.js +28 -36
  30. package/es/form/element/style/index.less +4 -0
  31. package/es/form/index.js +9 -12
  32. package/es/form/login/index.js +14 -19
  33. package/es/form/page/index.js +17 -23
  34. package/es/form/pages/index.js +22 -30
  35. package/es/form/section/index.js +11 -14
  36. package/es/form/step/index.js +30 -41
  37. package/es/form/steps/index.js +6 -8
  38. package/es/free-form/element/index.js +21 -27
  39. package/es/free-form/element/style/index.less +4 -0
  40. package/es/free-form/index.js +9 -12
  41. package/es/free-form/page/index.js +28 -39
  42. package/es/free-form/pages/index.js +6 -8
  43. package/es/free-form/section/index.js +11 -14
  44. package/es/free-form/step/index.js +30 -41
  45. package/es/free-form/steps/index.js +6 -8
  46. package/es/home-menu/index.js +52 -71
  47. package/es/input/amount.js +10 -5
  48. package/es/input/credit-card.js +7 -1
  49. package/es/input/email.js +8 -1
  50. package/es/input/expiry-date.js +12 -16
  51. package/es/input/input-date.js +12 -16
  52. package/es/input/input-number.js +9 -2
  53. package/es/input/input.js +9 -2
  54. package/es/input/otp.js +17 -15
  55. package/es/input/password.js +12 -6
  56. package/es/input/phone-number.js +6 -8
  57. package/es/input/text-area.js +14 -10
  58. package/es/layout/defaultFooter.js +60 -82
  59. package/es/layout/defaultHeader.js +11 -15
  60. package/es/layout/footer.js +108 -148
  61. package/es/layout/header.js +50 -59
  62. package/es/layout/index.js +16 -12
  63. package/es/locale/locale-provider.js +6 -8
  64. package/es/login-page/index.js +30 -42
  65. package/es/media/index.js +20 -27
  66. package/es/media/media.js +9 -12
  67. package/es/media/preview.js +6 -8
  68. package/es/mobile-insurer-detail/index.js +74 -91
  69. package/es/mobile-insurer-list/index.js +34 -38
  70. package/es/modal/index.js +20 -25
  71. package/es/platform/platform-card/index.js +9 -12
  72. package/es/platform/switch-platform/index.js +24 -32
  73. package/es/policy-list/index.js +9 -12
  74. package/es/policy-list/policy-card.js +119 -153
  75. package/es/radio/index.js +33 -35
  76. package/es/select/attached-select.js +31 -34
  77. package/es/select/select.js +12 -8
  78. package/es/select/time-select.js +12 -16
  79. package/es/status-box/index.js +6 -8
  80. package/es/table/index.js +69 -93
  81. package/es/tabs/index.js +7 -1
  82. package/es/typography/index.js +6 -8
  83. package/es/upload/index.js +48 -66
  84. package/es/upload-photo/index.js +47 -63
  85. package/es/upload-photo/media.js +3 -4
  86. package/es/upload-preview/index.js +9 -12
  87. package/es/upload-preview/media.js +12 -16
  88. package/es/utils/form-utils.js +18 -25
  89. package/lib/admin-upload/float.js +25 -35
  90. package/lib/admin-upload/index.js +18 -25
  91. package/lib/admin-upload/job-list.js +83 -113
  92. package/lib/admin-upload/modal.js +19 -26
  93. package/lib/alert-message/index.js +11 -9
  94. package/lib/amount/index.js +10 -5
  95. package/lib/back-top/index.js +14 -10
  96. package/lib/button/index.js +22 -27
  97. package/lib/card-detail/card-group.js +16 -22
  98. package/lib/card-detail/card-item.js +15 -20
  99. package/lib/card-detail/card-page.js +11 -15
  100. package/lib/card-detail/card.js +24 -24
  101. package/lib/card-detail/index.js +6 -6
  102. package/lib/card-detail/utils.js +4 -5
  103. package/lib/checkbox/index.js +24 -23
  104. package/lib/claim-list/index.js +51 -68
  105. package/lib/confirmation/index.js +5 -7
  106. package/lib/date-picker/buddhist.js +1 -1
  107. package/lib/date-picker/index.js +11 -5
  108. package/lib/declaration/index.js +16 -13
  109. package/lib/detail-panel/index.js +67 -83
  110. package/lib/documents/index.js +6 -8
  111. package/lib/example/index.js +3 -4
  112. package/lib/filter/checkBox.js +33 -45
  113. package/lib/filter/customize.js +3 -4
  114. package/lib/filter/index.js +79 -107
  115. package/lib/filter/radioBox.js +23 -31
  116. package/lib/filter/rangePicker.js +43 -59
  117. package/lib/form/divider/index.js +7 -1
  118. package/lib/form/element/index.js +28 -36
  119. package/lib/form/element/style/index.less +4 -0
  120. package/lib/form/index.js +9 -12
  121. package/lib/form/login/index.js +14 -19
  122. package/lib/form/page/index.js +17 -23
  123. package/lib/form/pages/index.js +22 -30
  124. package/lib/form/section/index.js +11 -14
  125. package/lib/form/step/index.js +30 -41
  126. package/lib/form/steps/index.js +6 -8
  127. package/lib/free-form/element/index.js +21 -27
  128. package/lib/free-form/element/style/index.less +4 -0
  129. package/lib/free-form/index.js +9 -12
  130. package/lib/free-form/page/index.js +28 -39
  131. package/lib/free-form/pages/index.js +6 -8
  132. package/lib/free-form/section/index.js +11 -14
  133. package/lib/free-form/step/index.js +30 -41
  134. package/lib/free-form/steps/index.js +6 -8
  135. package/lib/home-menu/index.js +52 -71
  136. package/lib/index.js +132 -132
  137. package/lib/input/amount.js +10 -5
  138. package/lib/input/credit-card.js +7 -1
  139. package/lib/input/email.js +7 -1
  140. package/lib/input/expiry-date.js +12 -16
  141. package/lib/input/index.js +18 -18
  142. package/lib/input/input-date.js +12 -16
  143. package/lib/input/input-number.js +8 -2
  144. package/lib/input/input.js +8 -2
  145. package/lib/input/otp.js +17 -15
  146. package/lib/input/password.js +11 -6
  147. package/lib/input/phone-number.js +6 -8
  148. package/lib/input/text-area.js +14 -10
  149. package/lib/layout/defaultFooter.js +60 -82
  150. package/lib/layout/defaultHeader.js +11 -15
  151. package/lib/layout/footer.js +108 -148
  152. package/lib/layout/header.js +50 -59
  153. package/lib/layout/index.js +15 -12
  154. package/lib/locale/format-message.js +1 -1
  155. package/lib/locale/index.js +4 -4
  156. package/lib/locale/locale-provider.js +7 -9
  157. package/lib/login-page/index.js +30 -42
  158. package/lib/media/index.js +20 -27
  159. package/lib/media/media.js +9 -12
  160. package/lib/media/preview.js +6 -8
  161. package/lib/mobile-insurer-detail/index.js +74 -91
  162. package/lib/mobile-insurer-list/index.js +34 -38
  163. package/lib/modal/index.js +20 -25
  164. package/lib/platform/platform-card/index.js +9 -12
  165. package/lib/platform/switch-platform/index.js +24 -32
  166. package/lib/policy-list/index.js +9 -12
  167. package/lib/policy-list/policy-card.js +119 -153
  168. package/lib/radio/index.js +33 -35
  169. package/lib/select/attached-select.js +32 -35
  170. package/lib/select/select.js +13 -9
  171. package/lib/select/time-select.js +12 -16
  172. package/lib/status-box/index.js +6 -8
  173. package/lib/table/index.js +69 -93
  174. package/lib/tabs/index.js +8 -2
  175. package/lib/typography/index.js +6 -8
  176. package/lib/upload/index.js +48 -66
  177. package/lib/upload-photo/index.js +47 -63
  178. package/lib/upload-photo/media.js +3 -4
  179. package/lib/upload-preview/index.js +9 -12
  180. package/lib/upload-preview/media.js +12 -16
  181. package/lib/utils/form-utils.js +19 -26
  182. package/package.json +1 -1
@@ -5,6 +5,12 @@ import _Row from "antd/es/row";
5
5
  import "antd/es/collapse/style";
6
6
  import _Collapse from "antd/es/collapse";
7
7
 
8
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
9
+
10
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
+
12
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
13
+
8
14
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
9
15
 
10
16
  function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
@@ -90,22 +96,18 @@ var PolicyCard = function PolicyCard(props) {
90
96
  };
91
97
  }();
92
98
 
93
- return _jsxs("div", Object.assign({
99
+ return _jsxs("div", {
94
100
  className: classnames('igloo-policy-container', className),
95
- style: style
96
- }, {
97
- children: [_jsxs("div", Object.assign({
101
+ style: style,
102
+ children: [_jsxs("div", {
98
103
  className: "container-top",
99
104
  onClick: function onClick() {
100
105
  return topOnclick(props);
101
- }
102
- }, {
103
- children: [_jsxs("div", Object.assign({
104
- className: "top-left"
105
- }, {
106
- children: [_jsxs("div", Object.assign({
107
- className: "left-arrow-container"
108
- }, {
106
+ },
107
+ children: [_jsxs("div", {
108
+ className: "top-left",
109
+ children: [_jsxs("div", {
110
+ className: "left-arrow-container",
109
111
  children: [_jsx(ArrowUpOutlined, {
110
112
  className: classnames({
111
113
  'hide-icon': !extend
@@ -115,22 +117,19 @@ var PolicyCard = function PolicyCard(props) {
115
117
  'hide-icon': extend
116
118
  })
117
119
  }, void 0)]
118
- }), void 0), _jsx("div", Object.assign({
119
- className: "left-logo-container"
120
- }, {
120
+ }, void 0), _jsx("div", {
121
+ className: "left-logo-container",
121
122
  children: insurerLogo
122
- }), void 0), _jsxs(Typography, Object.assign({
123
+ }, void 0), _jsxs(Typography, {
123
124
  level: "h4",
124
- className: "left-title-container"
125
- }, {
125
+ className: "left-title-container",
126
126
  children: [insurerName, " ", insurerType]
127
- }), void 0), _jsx("div", Object.assign({
128
- className: "left-status"
129
- }, {
130
- children: _jsx(StatusBox, Object.assign({}, statusProps), void 0)
131
- }), void 0)]
132
- }), void 0), buttons && buttons.map(function (item, index) {
133
- return item.render ? item.render() : _jsx(Button, Object.assign({
127
+ }, void 0), _jsx("div", {
128
+ className: "left-status",
129
+ children: _jsx(StatusBox, _objectSpread({}, statusProps), void 0)
130
+ }, void 0)]
131
+ }, void 0), buttons && buttons.map(function (item, index) {
132
+ return item.render ? item.render() : _jsx(Button, {
134
133
  icon: item.icon,
135
134
  onClick: function onClick(e) {
136
135
  e.stopPropagation();
@@ -139,25 +138,20 @@ var PolicyCard = function PolicyCard(props) {
139
138
  type: item.type || 'default',
140
139
  style: {
141
140
  marginRight: "".concat(index === buttons.length - 1 ? 0 : 16, "px")
142
- }
143
- }, {
144
- children: _jsx(Typography, Object.assign({
145
- level: "h4"
146
- }, {
141
+ },
142
+ children: _jsx(Typography, {
143
+ level: "h4",
147
144
  children: item.label
148
- }), void 0)
149
- }), String(item) + index);
145
+ }, void 0)
146
+ }, String(item) + index);
150
147
  })]
151
- }), void 0), messageBar && _jsx("div", Object.assign({
152
- className: "message-container"
153
- }, {
154
- children: _jsx(AlertMessage, Object.assign({}, messageBar), void 0)
155
- }), void 0), defaultItems && _jsx("div", Object.assign({
156
- className: "container-bottom"
157
- }, {
158
- children: _jsx(_Row, Object.assign({
159
- gutter: [24, 32]
160
- }, {
148
+ }, void 0), messageBar && _jsx("div", {
149
+ className: "message-container",
150
+ children: _jsx(AlertMessage, _objectSpread({}, messageBar), void 0)
151
+ }, void 0), defaultItems && _jsx("div", {
152
+ className: "container-bottom",
153
+ children: _jsx(_Row, {
154
+ gutter: [24, 32],
161
155
  children: defaultItems.map(function (infoItem, index) {
162
156
  var _infoItem$span = infoItem.span,
163
157
  span = _infoItem$span === void 0 ? 6 : _infoItem$span,
@@ -170,32 +164,27 @@ var PolicyCard = function PolicyCard(props) {
170
164
  }
171
165
 
172
166
  var textArr = Array.isArray(info) ? info : [info];
173
- return _jsxs(_Col, Object.assign({
167
+ return _jsxs(_Col, {
174
168
  className: "bottom-info-container",
175
- span: span
176
- }, {
177
- children: [_jsx("div", Object.assign({
178
- className: "info-title"
179
- }, {
180
- children: _jsx(Typography, Object.assign({
181
- level: "body1"
182
- }, {
169
+ span: span,
170
+ children: [_jsx("div", {
171
+ className: "info-title",
172
+ children: _jsx(Typography, {
173
+ level: "body1",
183
174
  children: title
184
- }), void 0)
185
- }), void 0), textArr.map(function (textItem, index) {
175
+ }, void 0)
176
+ }, void 0), textArr.map(function (textItem, index) {
186
177
  var text = textItem.text,
187
178
  link = textItem.link;
188
179
 
189
180
  if (typeof textItem === 'string' || link === undefined || link.length === 0) {
190
- return _jsx("div", Object.assign({
191
- className: "info-text-and-link"
192
- }, {
193
- children: _jsx(Typography, Object.assign({
194
- level: "body1"
195
- }, {
181
+ return _jsx("div", {
182
+ className: "info-text-and-link",
183
+ children: _jsx(Typography, {
184
+ level: "body1",
196
185
  children: textItem
197
- }), void 0)
198
- }), index);
186
+ }, void 0)
187
+ }, index);
199
188
  } // 处理link (一个or多个,换行or不换行)
200
189
 
201
190
 
@@ -204,73 +193,62 @@ var PolicyCard = function PolicyCard(props) {
204
193
 
205
194
  if (onlyOneLink) {
206
195
  var onClick = link.onClick;
207
- return _jsxs("div", Object.assign({
208
- className: "info-text-and-link"
209
- }, {
210
- children: [_jsx(Typography, Object.assign({
211
- level: "body1"
212
- }, {
196
+ return _jsxs("div", {
197
+ className: "info-text-and-link",
198
+ children: [_jsx(Typography, {
199
+ level: "body1",
213
200
  children: text
214
- }), void 0), _jsx(Button, Object.assign({
201
+ }, void 0), _jsx(Button, {
215
202
  onClick: onClick ? function () {
216
203
  return onClick(props);
217
204
  } : function () {},
218
- type: "link"
219
- }, {
205
+ type: "link",
220
206
  children: link.linkText
221
- }), void 0)]
222
- }), index);
207
+ }, void 0)]
208
+ }, index);
223
209
  }
224
210
 
225
- return _jsxs("div", Object.assign({
226
- className: "info-text-and-link-mult-link"
227
- }, {
228
- children: [_jsx(Typography, Object.assign({
229
- level: "body1"
230
- }, {
211
+ return _jsxs("div", {
212
+ className: "info-text-and-link-mult-link",
213
+ children: [_jsx(Typography, {
214
+ level: "body1",
231
215
  children: text
232
- }), void 0), linkArr.map(function (linkObj, index) {
216
+ }, void 0), linkArr.map(function (linkObj, index) {
233
217
  var onClick = linkObj.onClick;
234
- return _jsx("div", Object.assign({
218
+ return _jsx("div", {
235
219
  style: {
236
220
  marginTop: 2
237
- }
238
- }, {
239
- children: _jsx(Button, Object.assign({
221
+ },
222
+ children: _jsx(Button, {
240
223
  onClick: onClick ? function () {
241
224
  return onClick(props);
242
225
  } : function () {},
243
- type: "link"
244
- }, {
226
+ type: "link",
245
227
  children: linkObj.linkText
246
- }), void 0)
247
- }), index);
228
+ }, void 0)
229
+ }, index);
248
230
  })]
249
- }), index);
231
+ }, index);
250
232
  })]
251
- }), index);
233
+ }, index);
252
234
  })
253
- }), void 0)
254
- }), void 0), _jsx(_Collapse, Object.assign({
235
+ }, void 0)
236
+ }, void 0), _jsx(_Collapse, {
255
237
  className: "igloo-policy-collapse-container",
256
- activeKey: extend ? allActiveKeys : []
257
- }, {
238
+ activeKey: extend ? allActiveKeys : [],
258
239
  children: infoGroups.map(function (group, index) {
259
240
  var infoItems = group.infoItems,
260
241
  sectionName = group.sectionName;
261
- return _jsxs(Panel, Object.assign({
242
+ return _jsxs(Panel, {
262
243
  header: '',
263
244
  showArrow: false,
264
- className: "panel-group-container"
265
- }, {
266
- children: [sectionName && _jsx(Typography, Object.assign({
245
+ className: "panel-group-container",
246
+ children: [sectionName && _jsx(Typography, {
267
247
  level: "h4",
268
- className: "panel-group-section-name"
269
- }, {
248
+ className: "panel-group-section-name",
270
249
  children: sectionName
271
- }), void 0), _jsx(_Row, Object.assign({
272
- gutter: [24, 16]
273
- }, {
250
+ }, void 0), _jsx(_Row, {
251
+ gutter: [24, 16],
274
252
  children: infoItems.map(function (item, index) {
275
253
  var _item$span = item.span,
276
254
  span = _item$span === void 0 ? 6 : _item$span,
@@ -283,31 +261,26 @@ var PolicyCard = function PolicyCard(props) {
283
261
  return;
284
262
  }
285
263
 
286
- return _jsxs(_Col, Object.assign({
287
- span: span
288
- }, {
289
- children: [_jsx("div", Object.assign({
290
- className: "info-title"
291
- }, {
292
- children: _jsx(Typography, Object.assign({
293
- level: "body1"
294
- }, {
264
+ return _jsxs(_Col, {
265
+ span: span,
266
+ children: [_jsx("div", {
267
+ className: "info-title",
268
+ children: _jsx(Typography, {
269
+ level: "body1",
295
270
  children: title
296
- }), void 0)
297
- }), void 0), textArr.map(function (textItem, index) {
271
+ }, void 0)
272
+ }, void 0), textArr.map(function (textItem, index) {
298
273
  var text = textItem.text,
299
274
  link = textItem.link;
300
275
 
301
276
  if (typeof textItem === 'string' || link === undefined || link.length === 0) {
302
- return _jsx("div", Object.assign({
303
- className: "info-text-and-link"
304
- }, {
305
- children: _jsx(Typography, Object.assign({
306
- level: "body1"
307
- }, {
277
+ return _jsx("div", {
278
+ className: "info-text-and-link",
279
+ children: _jsx(Typography, {
280
+ level: "body1",
308
281
  children: textItem
309
- }), void 0)
310
- }), index);
282
+ }, void 0)
283
+ }, index);
311
284
  } // 处理link (一个or多个,换行or不换行)
312
285
 
313
286
 
@@ -316,57 +289,50 @@ var PolicyCard = function PolicyCard(props) {
316
289
 
317
290
  if (onlyOneLink) {
318
291
  var onClick = link.onClick;
319
- return _jsxs("div", Object.assign({
320
- className: "info-text-and-link"
321
- }, {
322
- children: [_jsx(Typography, Object.assign({
323
- level: "body1"
324
- }, {
292
+ return _jsxs("div", {
293
+ className: "info-text-and-link",
294
+ children: [_jsx(Typography, {
295
+ level: "body1",
325
296
  children: text
326
- }), void 0), _jsx(Button, Object.assign({
297
+ }, void 0), _jsx(Button, {
327
298
  onClick: onClick ? function () {
328
299
  return onClick(props);
329
300
  } : function () {},
330
- type: "link"
331
- }, {
301
+ type: "link",
332
302
  children: link.linkText
333
- }), void 0)]
334
- }), index);
303
+ }, void 0)]
304
+ }, index);
335
305
  }
336
306
 
337
- return _jsxs("div", Object.assign({
338
- className: "info-text-and-link-mult-link"
339
- }, {
340
- children: [_jsx(Typography, Object.assign({
341
- level: "body1"
342
- }, {
307
+ return _jsxs("div", {
308
+ className: "info-text-and-link-mult-link",
309
+ children: [_jsx(Typography, {
310
+ level: "body1",
343
311
  children: text
344
- }), void 0), linkArr.map(function (linkObj, index) {
312
+ }, void 0), linkArr.map(function (linkObj, index) {
345
313
  var onClick = linkObj.onClick;
346
- return _jsx("div", Object.assign({
314
+ return _jsx("div", {
347
315
  style: {
348
316
  marginTop: 2
349
- }
350
- }, {
351
- children: _jsx(Button, Object.assign({
317
+ },
318
+ children: _jsx(Button, {
352
319
  onClick: onClick ? function () {
353
320
  return onClick(props);
354
321
  } : function () {},
355
- type: "link"
356
- }, {
322
+ type: "link",
357
323
  children: linkObj.linkText
358
- }), void 0)
359
- }), index);
324
+ }, void 0)
325
+ }, index);
360
326
  })]
361
- }), index);
327
+ }, index);
362
328
  })]
363
- }), index);
329
+ }, index);
364
330
  })
365
- }), void 0)]
366
- }), index);
331
+ }, void 0)]
332
+ }, index);
367
333
  })
368
- }), void 0)]
369
- }), void 0);
334
+ }, void 0)]
335
+ }, void 0);
370
336
  };
371
337
 
372
338
  export default PolicyCard;
package/es/radio/index.js CHANGED
@@ -11,6 +11,12 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
 
12
12
  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; }
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; }
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; }
17
+
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
+
14
20
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
21
  import { useEffect } from 'react';
16
22
  import omit from 'omit.js';
@@ -20,7 +26,7 @@ import './style/index.less';
20
26
  import Typography from '../typography';
21
27
 
22
28
  var IglooRadio = function IglooRadio(props) {
23
- return _jsx(_Radio, Object.assign({}, omit(props, formMethods)), void 0);
29
+ return _jsx(_Radio, _objectSpread({}, omit(props, formMethods)), void 0);
24
30
  };
25
31
 
26
32
  IglooRadio.formItemPropsHandler = function () {
@@ -55,62 +61,54 @@ export var RadioGroup = function RadioGroup(_ref) {
55
61
  typeof setFieldValue === 'function' && setFieldValue(undefined);
56
62
  }
57
63
  }, [value, options]);
58
- return _jsx(_Radio.Group, Object.assign({}, omit(rest, formMethods), {
64
+ return _jsx(_Radio.Group, _objectSpread(_objectSpread({}, omit(rest, formMethods)), {}, {
59
65
  className: classnames('igloo-radio-group', className),
60
- value: value
61
- }, {
62
- children: _jsx(_Row, Object.assign({
63
- gutter: [8, 8]
64
- }, {
66
+ value: value,
67
+ children: _jsx(_Row, {
68
+ gutter: [8, 8],
65
69
  children: options.map(function (_ref2) {
66
70
  var label = _ref2.label,
67
71
  key = _ref2.value,
68
72
  extraInfo = _ref2.extraInfo,
69
73
  rest = _objectWithoutProperties(_ref2, _excluded2);
70
74
 
71
- return radioType === 'normal' ? _jsxs(_Col, Object.assign({
75
+ return radioType === 'normal' ? _jsxs(_Col, {
72
76
  span: 24,
73
- className: 'igloo-radio-group-normal'
74
- }, {
75
- children: [_jsx(_Radio, Object.assign({
77
+ className: 'igloo-radio-group-normal',
78
+ children: [_jsx(_Radio, _objectSpread(_objectSpread({
76
79
  value: key
77
- }, rest, {
78
- children: _jsx(Typography, Object.assign({
79
- level: "body1"
80
- }, {
80
+ }, rest), {}, {
81
+ children: _jsx(Typography, {
82
+ level: "body1",
81
83
  children: label
82
- }), void 0)
83
- }), void 0), _jsx("div", Object.assign({
84
- className: "igloo-radio-extra"
85
- }, {
84
+ }, void 0)
85
+ }), void 0), _jsx("div", {
86
+ className: "igloo-radio-extra",
86
87
  children: extraInfo && (extraInfo.shownTrigger === 'all' || extraInfo.shownTrigger === 'checked' && value === key || extraInfo.shownTrigger === 'unchecked' && value !== key) && extraInfo.content
87
- }), void 0)]
88
- }), key) : _jsx(_Col, Object.assign({
88
+ }, void 0)]
89
+ }, key) : _jsx(_Col, {
89
90
  span: 12,
90
- className: 'igloo-radio-group-button'
91
- }, {
92
- children: _jsx(_Radio.Button, Object.assign({
91
+ className: 'igloo-radio-group-button',
92
+ children: _jsx(_Radio.Button, _objectSpread(_objectSpread({
93
93
  value: key
94
- }, rest, {
95
- children: _jsxs(_Row, Object.assign({
94
+ }, rest), {}, {
95
+ children: _jsxs(_Row, {
96
96
  justify: "space-between",
97
- align: "middle"
98
- }, {
97
+ align: "middle",
99
98
  children: [_jsx("span", {
100
- children: _jsx(Typography, Object.assign({
101
- level: "body1"
102
- }, {
99
+ children: _jsx(Typography, {
100
+ level: "body1",
103
101
  children: label
104
- }), void 0)
102
+ }, void 0)
105
103
  }, void 0), _jsx(_Radio, {
106
104
  value: key,
107
105
  className: 'igloo-radio-inner-radio'
108
106
  }, void 0)]
109
- }), void 0)
107
+ }, void 0)
110
108
  }), void 0)
111
- }), key);
109
+ }, key);
112
110
  })
113
- }), void 0)
111
+ }, void 0)
114
112
  }), void 0);
115
113
  };
116
114
 
@@ -2,6 +2,12 @@ import "antd/es/select/style";
2
2
  import _Select from "antd/es/select";
3
3
  var _excluded = ["options", "getOptions", "value", "className", "placeholder", "onDropdownVisibleChange", "children", "showSearch", "filterOption", "optionFilterProp", "multiple", "clearWhenOptionsUpdated"];
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; }
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; }
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
6
12
 
7
13
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -206,23 +212,21 @@ var IglooSelect = function IglooSelect(_ref) {
206
212
  setSelectedOptions(options);
207
213
  };
208
214
 
209
- return _jsx("div", Object.assign({
210
- className: classnames('igloo-attached-select-containter', className)
211
- }, {
212
- children: _jsx(_Select, Object.assign({
215
+ return _jsx("div", {
216
+ className: classnames('igloo-attached-select-containter', className),
217
+ children: _jsx(_Select, _objectSpread(_objectSpread({
213
218
  placeholder: placeholder || formatMessage({
214
219
  id: 'Please select'
215
220
  }),
216
221
  getPopupContainer: function getPopupContainer(trigger) {
217
222
  return trigger.parentNode;
218
223
  }
219
- }, omit(rest, formMethods), {
224
+ }, omit(rest, formMethods)), {}, {
220
225
  value: selected,
221
- suffixIcon: _jsxs("div", Object.assign({
226
+ suffixIcon: _jsxs("div", {
222
227
  style: {
223
228
  position: 'relative'
224
- }
225
- }, {
229
+ },
226
230
  children: [_jsx(ArrowDownOutlined, {
227
231
  className: classnames({
228
232
  'igloo-select-arrow': true,
@@ -240,7 +244,7 @@ var IglooSelect = function IglooSelect(_ref) {
240
244
  opacity: dropVisible ? 1 : 0
241
245
  }
242
246
  }, void 0)]
243
- }), void 0),
247
+ }, void 0),
244
248
  className: classnames('igloo-attached-select', {
245
249
  'igloo-attached-select-open-status': dropVisible
246
250
  }),
@@ -258,14 +262,12 @@ var IglooSelect = function IglooSelect(_ref) {
258
262
  return originNode;
259
263
  }
260
264
 
261
- return _jsxs("div", Object.assign({
262
- className: "igloo-attached-select-multiple-dropdown"
263
- }, {
264
- children: [showSearch && _jsx("div", Object.assign({
265
+ return _jsxs("div", {
266
+ className: "igloo-attached-select-multiple-dropdown",
267
+ children: [showSearch && _jsx("div", {
265
268
  style: {
266
269
  padding: '12px 16px'
267
- }
268
- }, {
270
+ },
269
271
  children: _jsx(Input, {
270
272
  onChange: handleSearch,
271
273
  prefix: _jsx(SearchOutlined, {
@@ -277,34 +279,31 @@ var IglooSelect = function IglooSelect(_ref) {
277
279
  return e.stopPropagation();
278
280
  }
279
281
  }, void 0)
280
- }), void 0), _jsxs("div", Object.assign({
281
- className: "igloo-attached-select-multiple-dropdown-buttons"
282
- }, {
283
- children: [_jsx(Button, Object.assign({
282
+ }, void 0), _jsxs("div", {
283
+ className: "igloo-attached-select-multiple-dropdown-buttons",
284
+ children: [_jsx(Button, {
284
285
  type: "link",
285
286
  onClick: selectAll,
286
287
  disabled: displayOptions.every(function (_ref6) {
287
288
  var value = _ref6.value;
288
289
  return selected === null || selected === void 0 ? void 0 : selected.includes(value);
289
- })
290
- }, {
290
+ }),
291
291
  children: formatMessage({
292
292
  id: 'Select All'
293
293
  })
294
- }), void 0), _jsx(Button, Object.assign({
294
+ }, void 0), _jsx(Button, {
295
295
  type: "link",
296
296
  onClick: clearAll,
297
297
  disabled: displayOptions.every(function (_ref7) {
298
298
  var value = _ref7.value;
299
299
  return !(selected === null || selected === void 0 ? void 0 : selected.includes(value));
300
- })
301
- }, {
300
+ }),
302
301
  children: formatMessage({
303
302
  id: 'Clear All'
304
303
  })
305
- }), void 0)]
306
- }), void 0), originNode]
307
- }), void 0);
304
+ }, void 0)]
305
+ }, void 0), originNode]
306
+ }, void 0);
308
307
  },
309
308
  maxTagCount: 0,
310
309
  maxTagPlaceholder: function maxTagPlaceholder(values) {
@@ -318,18 +317,16 @@ var IglooSelect = function IglooSelect(_ref) {
318
317
  }).join(', ');
319
318
  },
320
319
  onChange: handleChange,
321
- dropdownMatchSelectWidth: true
322
- }, {
320
+ dropdownMatchSelectWidth: true,
323
321
  children: displayOptions.map(function (_ref10) {
324
322
  var label = _ref10.label,
325
323
  value = _ref10.value;
326
- return _jsxs(Option, Object.assign({
324
+ return _jsxs(Option, {
327
325
  value: value,
328
326
  label: label,
329
327
  style: {
330
328
  position: 'relative'
331
- }
332
- }, {
329
+ },
333
330
  children: [multiple ? _jsxs("div", {
334
331
  children: [_jsx(Checkbox, {
335
332
  checked: Array.isArray(selected) && selected.includes(value),
@@ -347,10 +344,10 @@ var IglooSelect = function IglooSelect(_ref) {
347
344
  left: 0
348
345
  }
349
346
  }, void 0)]
350
- }), value);
347
+ }, value);
351
348
  })
352
349
  }), void 0)
353
- }), void 0);
350
+ }, void 0);
354
351
  };
355
352
 
356
353
  IglooSelect.formItemPropsHandler = function (config) {