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