iglooform 2.4.25 → 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 +11 -11
- package/es/admin-upload/job-list.js +47 -47
- package/es/admin-upload/modal.js +10 -10
- package/es/alert-message/index.js +7 -7
- package/es/amount/index.js +2 -2
- package/es/back-top/index.js +4 -4
- package/es/button/index.js +9 -9
- package/es/card-detail/card-group.js +6 -6
- package/es/card-detail/card-item.js +5 -5
- package/es/card-detail/card-page.js +5 -5
- package/es/card-detail/card.js +7 -7
- package/es/checkbox/index.js +6 -6
- package/es/claim-list/index.js +19 -19
- package/es/confirmation/index.js +4 -4
- package/es/date-picker/buddhist.js +2 -2
- package/es/date-picker/index.js +9 -9
- package/es/declaration/index.js +5 -5
- package/es/detail-panel/index.js +26 -26
- package/es/documents/index.js +2 -2
- package/es/example/index.js +5 -5
- package/es/filter/checkBox.js +10 -10
- package/es/filter/customize.js +1 -1
- package/es/filter/index.js +43 -43
- 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 +33 -18
- package/es/form/addable-section/style/index.less +6 -10
- package/es/form/divider/index.js +1 -1
- package/es/form/element/index.js +17 -17
- package/es/form/elements.js +5 -2
- package/es/form/index.js +7 -7
- 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 +4 -4
- package/es/form/step/index.js +14 -14
- package/es/form/steps/index.js +2 -2
- package/es/free-form/addable-section/index.js +29 -14
- package/es/free-form/addable-section/style/index.less +0 -4
- package/es/free-form/element/index.js +10 -10
- package/es/free-form/index.js +3 -3
- package/es/free-form/page/index.js +15 -15
- package/es/free-form/pages/index.js +2 -2
- package/es/free-form/section/index.js +4 -4
- package/es/free-form/step/index.js +14 -14
- package/es/free-form/steps/index.js +2 -2
- package/es/global-message/index.js +12 -12
- 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 +2 -2
- package/es/input/credit-card.js +4 -4
- package/es/input/email.js +1 -1
- package/es/input/expiry-date.js +3 -3
- package/es/input/input-date.js +3 -3
- package/es/input/input-number.js +1 -1
- package/es/input/input.js +1 -1
- package/es/input/otp.js +6 -6
- package/es/input/password.js +4 -4
- package/es/input/phone-number.js +4 -4
- package/es/input/text-area.js +4 -4
- 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 +25 -25
- package/es/layout/index.js +4 -4
- package/es/locale/en-US/messages.json +1 -0
- package/es/locale/id-ID/messages.json +1 -0
- package/es/locale/locale-provider.js +2 -2
- 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 +6 -6
- package/es/mobile-insurer-detail/index.js +18 -18
- package/es/mobile-insurer-list/index.js +11 -11
- package/es/modal/index.js +8 -8
- package/es/platform/platform-card/index.js +5 -5
- package/es/platform/switch-platform/index.js +12 -12
- package/es/policy-list/index.js +4 -4
- package/es/policy-list/policy-card.js +32 -32
- package/es/radio/index.d.ts +2 -1
- package/es/radio/index.js +13 -12
- 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 +17 -20
- package/es/select/select.js +6 -9
- package/es/select/time-select.js +20 -20
- package/es/status-box/index.js +2 -2
- package/es/table/index.js +33 -33
- package/es/tabs/index.js +1 -1
- package/es/typography/index.js +10 -3
- package/es/upload/index.js +28 -28
- package/es/upload-photo/index.js +28 -28
- 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 +11 -11
- package/lib/admin-upload/float.js +14 -14
- package/lib/admin-upload/index.js +11 -11
- package/lib/admin-upload/job-list.js +47 -47
- package/lib/admin-upload/modal.js +10 -10
- package/lib/alert-message/index.js +7 -7
- package/lib/amount/index.js +2 -2
- package/lib/back-top/index.js +4 -4
- package/lib/button/index.js +9 -9
- package/lib/card-detail/card-group.js +6 -6
- package/lib/card-detail/card-item.js +5 -5
- package/lib/card-detail/card-page.js +5 -5
- package/lib/card-detail/card.js +7 -7
- package/lib/checkbox/index.js +6 -6
- package/lib/claim-list/index.js +19 -19
- package/lib/confirmation/index.js +4 -4
- package/lib/date-picker/buddhist.js +2 -2
- package/lib/date-picker/index.js +9 -9
- package/lib/declaration/index.js +5 -5
- package/lib/detail-panel/index.js +26 -26
- package/lib/documents/index.js +2 -2
- package/lib/example/index.js +5 -5
- package/lib/filter/checkBox.js +10 -10
- package/lib/filter/customize.js +1 -1
- package/lib/filter/index.js +43 -43
- 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 +37 -17
- package/lib/form/addable-section/style/index.less +6 -10
- package/lib/form/divider/index.js +1 -1
- package/lib/form/element/index.js +17 -17
- package/lib/form/elements.js +5 -1
- package/lib/form/index.js +7 -7
- 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 +4 -4
- package/lib/form/step/index.js +14 -14
- package/lib/form/steps/index.js +2 -2
- package/lib/free-form/addable-section/index.js +33 -13
- package/lib/free-form/addable-section/style/index.less +0 -4
- package/lib/free-form/element/index.js +10 -10
- package/lib/free-form/index.js +3 -3
- package/lib/free-form/page/index.js +15 -15
- package/lib/free-form/pages/index.js +2 -2
- package/lib/free-form/section/index.js +4 -4
- package/lib/free-form/step/index.js +14 -14
- package/lib/free-form/steps/index.js +2 -2
- package/lib/global-message/index.js +12 -12
- package/lib/home-menu/index.js +18 -18
- package/lib/index.d.ts +1 -1
- package/lib/index.js +7 -0
- package/lib/input/amount.js +2 -2
- package/lib/input/credit-card.js +4 -4
- package/lib/input/email.js +1 -1
- package/lib/input/expiry-date.js +3 -3
- package/lib/input/input-date.js +3 -3
- package/lib/input/input-number.js +1 -1
- package/lib/input/input.js +1 -1
- package/lib/input/otp.js +6 -6
- package/lib/input/password.js +4 -4
- package/lib/input/phone-number.js +4 -4
- package/lib/input/text-area.js +4 -4
- 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 +25 -25
- package/lib/layout/index.js +4 -4
- package/lib/locale/en-US/messages.json +1 -0
- package/lib/locale/id-ID/messages.json +1 -0
- package/lib/locale/locale-provider.js +2 -2
- 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 +6 -6
- package/lib/mobile-insurer-detail/index.js +18 -18
- package/lib/mobile-insurer-list/index.js +11 -11
- package/lib/modal/index.js +8 -8
- package/lib/platform/platform-card/index.js +5 -5
- package/lib/platform/switch-platform/index.js +12 -12
- package/lib/policy-list/index.js +4 -4
- package/lib/policy-list/policy-card.js +32 -32
- package/lib/radio/index.d.ts +2 -1
- package/lib/radio/index.js +21 -12
- 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 +16 -19
- package/lib/select/select.js +5 -8
- package/lib/select/time-select.js +20 -20
- package/lib/status-box/index.js +2 -2
- package/lib/table/index.js +33 -33
- package/lib/tabs/index.js +1 -1
- package/lib/typography/index.js +10 -3
- package/lib/upload/index.js +28 -28
- package/lib/upload-photo/index.js +28 -28
- 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 +10 -10
- package/package.json +1 -1
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var _excluded = ["value", "onChange", "options", "otherOptionLabel"];
|
|
2
|
+
|
|
3
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
4
|
+
|
|
5
|
+
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."); }
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
+
|
|
9
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
+
|
|
11
|
+
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; }
|
|
12
|
+
|
|
13
|
+
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; }
|
|
14
|
+
|
|
15
|
+
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; }
|
|
16
|
+
|
|
17
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
18
|
+
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
|
|
21
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
22
|
+
|
|
23
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
24
|
+
|
|
25
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
26
|
+
|
|
27
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
28
|
+
|
|
29
|
+
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; }
|
|
30
|
+
|
|
31
|
+
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; }
|
|
32
|
+
|
|
33
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
34
|
+
import { useContext, useState } from 'react';
|
|
35
|
+
import { RadioGroup } from './index';
|
|
36
|
+
import { TextArea } from '../input';
|
|
37
|
+
import { LocaleContext } from '../locale';
|
|
38
|
+
var otherKey = 'iglooRadioGroupOther';
|
|
39
|
+
|
|
40
|
+
var RadioGroupWithOther = function RadioGroupWithOther(_ref) {
|
|
41
|
+
var value = _ref.value,
|
|
42
|
+
onChange = _ref.onChange,
|
|
43
|
+
options = _ref.options,
|
|
44
|
+
otherOptionLabel = _ref.otherOptionLabel,
|
|
45
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
46
|
+
|
|
47
|
+
var _useState = useState(false),
|
|
48
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
49
|
+
otherEnabled = _useState2[0],
|
|
50
|
+
enableOther = _useState2[1];
|
|
51
|
+
|
|
52
|
+
var handleChange = function handleChange(e) {
|
|
53
|
+
onChange && onChange(e);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
var handleRadioChange = function handleRadioChange(e) {
|
|
57
|
+
enableOther(e.target.value === otherKey);
|
|
58
|
+
onChange && onChange(e);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
var _useContext = useContext(LocaleContext),
|
|
62
|
+
formatMessage = _useContext.formatMessage;
|
|
63
|
+
|
|
64
|
+
return _jsx("div", {
|
|
65
|
+
className: "igloo-reason-selector",
|
|
66
|
+
children: _jsx(RadioGroup, _objectSpread({
|
|
67
|
+
value: otherEnabled ? otherKey : value,
|
|
68
|
+
onChange: handleRadioChange,
|
|
69
|
+
options: [].concat(_toConsumableArray(options), [{
|
|
70
|
+
label: otherOptionLabel || formatMessage({
|
|
71
|
+
id: 'Other Reason'
|
|
72
|
+
}),
|
|
73
|
+
value: otherKey,
|
|
74
|
+
extraInfo: {
|
|
75
|
+
content: _jsx(TextArea, {
|
|
76
|
+
onChange: handleChange
|
|
77
|
+
}),
|
|
78
|
+
shownTrigger: 'checked'
|
|
79
|
+
}
|
|
80
|
+
}])
|
|
81
|
+
}, rest))
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export default RadioGroupWithOther;
|
|
@@ -32,7 +32,7 @@ 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
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
35
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
36
36
|
import { useEffect, useState, useContext } from 'react';
|
|
37
37
|
import omit from 'omit.js';
|
|
38
38
|
import formMethods from '../utils/form-methods';
|
|
@@ -223,10 +223,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
223
223
|
}
|
|
224
224
|
}, omit(rest, formMethods)), {}, {
|
|
225
225
|
value: selected,
|
|
226
|
-
suffixIcon: _jsxs(
|
|
227
|
-
style: {
|
|
228
|
-
position: 'relative'
|
|
229
|
-
},
|
|
226
|
+
suffixIcon: _jsxs(_Fragment, {
|
|
230
227
|
children: [_jsx(ArrowDownOutlined, {
|
|
231
228
|
className: classnames({
|
|
232
229
|
'igloo-select-arrow': true,
|
|
@@ -235,7 +232,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
235
232
|
style: {
|
|
236
233
|
opacity: dropVisible ? 0 : 1
|
|
237
234
|
}
|
|
238
|
-
}
|
|
235
|
+
}), _jsx(ArrowUpOutlined, {
|
|
239
236
|
className: classnames({
|
|
240
237
|
'igloo-select-arrow': true,
|
|
241
238
|
'igloo-select-arrow-active': dropVisible
|
|
@@ -243,8 +240,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
243
240
|
style: {
|
|
244
241
|
opacity: dropVisible ? 1 : 0
|
|
245
242
|
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
243
|
+
})]
|
|
244
|
+
}),
|
|
248
245
|
className: classnames('igloo-attached-select', {
|
|
249
246
|
'igloo-attached-select-open-status': dropVisible
|
|
250
247
|
}),
|
|
@@ -274,12 +271,12 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
274
271
|
style: {
|
|
275
272
|
fontSize: 24
|
|
276
273
|
}
|
|
277
|
-
}
|
|
274
|
+
}),
|
|
278
275
|
onKeyDown: function onKeyDown(e) {
|
|
279
276
|
return e.stopPropagation();
|
|
280
277
|
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
278
|
+
})
|
|
279
|
+
}), _jsxs("div", {
|
|
283
280
|
className: "igloo-attached-select-multiple-dropdown-buttons",
|
|
284
281
|
children: [_jsx(Button, {
|
|
285
282
|
type: "link",
|
|
@@ -291,7 +288,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
291
288
|
children: formatMessage({
|
|
292
289
|
id: 'Select All'
|
|
293
290
|
})
|
|
294
|
-
}
|
|
291
|
+
}), _jsx(Button, {
|
|
295
292
|
type: "link",
|
|
296
293
|
onClick: clearAll,
|
|
297
294
|
disabled: displayOptions.every(function (_ref7) {
|
|
@@ -301,9 +298,9 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
301
298
|
children: formatMessage({
|
|
302
299
|
id: 'Clear All'
|
|
303
300
|
})
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
}
|
|
301
|
+
})]
|
|
302
|
+
}), originNode]
|
|
303
|
+
});
|
|
307
304
|
},
|
|
308
305
|
maxTagCount: 0,
|
|
309
306
|
maxTagPlaceholder: function maxTagPlaceholder(values) {
|
|
@@ -333,8 +330,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
333
330
|
style: {
|
|
334
331
|
marginRight: 8
|
|
335
332
|
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
333
|
+
}), label]
|
|
334
|
+
}) : label, _jsx("div", {
|
|
338
335
|
style: {
|
|
339
336
|
position: 'absolute',
|
|
340
337
|
width: '100%',
|
|
@@ -343,11 +340,11 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
343
340
|
top: 0,
|
|
344
341
|
left: 0
|
|
345
342
|
}
|
|
346
|
-
}
|
|
343
|
+
})]
|
|
347
344
|
}, value);
|
|
348
345
|
})
|
|
349
|
-
})
|
|
350
|
-
}
|
|
346
|
+
}))
|
|
347
|
+
});
|
|
351
348
|
};
|
|
352
349
|
|
|
353
350
|
IglooSelect.formItemPropsHandler = function (config) {
|
package/es/select/select.js
CHANGED
|
@@ -24,7 +24,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
24
24
|
|
|
25
25
|
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
26
|
|
|
27
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
28
|
import { useContext, useState } from 'react';
|
|
29
29
|
import omit from 'omit.js';
|
|
30
30
|
import formMethods from '../utils/form-methods';
|
|
@@ -63,10 +63,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
63
63
|
}, omit(rest, formMethods)), {}, {
|
|
64
64
|
options: children ? void 0 : options,
|
|
65
65
|
value: value,
|
|
66
|
-
suffixIcon: _jsxs(
|
|
67
|
-
style: {
|
|
68
|
-
position: 'relative'
|
|
69
|
-
},
|
|
66
|
+
suffixIcon: _jsxs(_Fragment, {
|
|
70
67
|
children: [_jsx(ArrowDownOutlined, {
|
|
71
68
|
className: classnames({
|
|
72
69
|
'igloo-select-arrow': true,
|
|
@@ -75,7 +72,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
75
72
|
style: {
|
|
76
73
|
opacity: isOpen ? 0 : 1
|
|
77
74
|
}
|
|
78
|
-
}
|
|
75
|
+
}), _jsx(ArrowUpOutlined, {
|
|
79
76
|
className: classnames({
|
|
80
77
|
'igloo-select-arrow': true,
|
|
81
78
|
'igloo-select-arrow-active': isOpen
|
|
@@ -83,8 +80,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
83
80
|
style: {
|
|
84
81
|
opacity: isOpen ? 1 : 0
|
|
85
82
|
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
83
|
+
})]
|
|
84
|
+
}),
|
|
88
85
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
89
86
|
return trigger.parentNode;
|
|
90
87
|
},
|
|
@@ -101,7 +98,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
101
98
|
} : void 0),
|
|
102
99
|
mode: undefined,
|
|
103
100
|
children: children
|
|
104
|
-
})
|
|
101
|
+
}));
|
|
105
102
|
};
|
|
106
103
|
|
|
107
104
|
IglooSelect.OptGroup = OptGroup;
|
package/es/select/time-select.js
CHANGED
|
@@ -201,57 +201,57 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
201
201
|
onClick: function onClick() {
|
|
202
202
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'down');
|
|
203
203
|
}
|
|
204
|
-
}
|
|
204
|
+
}), _jsx(Input, {
|
|
205
205
|
onChange: function onChange(e) {
|
|
206
206
|
return handleTimeInput(hourRange, e.target.value, setHourVale);
|
|
207
207
|
},
|
|
208
208
|
value: hourValue
|
|
209
|
-
}
|
|
209
|
+
}), _jsx(ArrowDownOutlined, {
|
|
210
210
|
onClick: function onClick() {
|
|
211
211
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'up');
|
|
212
212
|
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
213
|
+
})]
|
|
214
|
+
}), _jsx("span", {
|
|
215
215
|
children: ":"
|
|
216
|
-
}
|
|
216
|
+
}), _jsxs("div", {
|
|
217
217
|
children: [_jsx(ArrowUpOutlined, {
|
|
218
218
|
onClick: function onClick() {
|
|
219
219
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'down');
|
|
220
220
|
}
|
|
221
|
-
}
|
|
221
|
+
}), _jsx(Input, {
|
|
222
222
|
ref: secondInputRef,
|
|
223
223
|
onChange: function onChange(e) {
|
|
224
224
|
return handleTimeInput(minuteRange, e.target.value, setMinuteVale);
|
|
225
225
|
},
|
|
226
226
|
value: minuteValue
|
|
227
|
-
}
|
|
227
|
+
}), _jsx(ArrowDownOutlined, {
|
|
228
228
|
onClick: function onClick() {
|
|
229
229
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'up');
|
|
230
230
|
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
231
|
+
})]
|
|
232
|
+
}), _jsxs("div", {
|
|
233
233
|
children: [_jsx(ArrowUpOutlined, {
|
|
234
234
|
className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
235
235
|
}),
|
|
236
236
|
onClick: function onClick() {
|
|
237
237
|
return meridiemSwitch(hourValue);
|
|
238
238
|
}
|
|
239
|
-
}
|
|
239
|
+
}), _jsx("span", {
|
|
240
240
|
children: _jsx(Typography, {
|
|
241
241
|
level: "body1",
|
|
242
242
|
children: meridiem ? 'AM' : 'PM'
|
|
243
|
-
}
|
|
244
|
-
}
|
|
243
|
+
})
|
|
244
|
+
}), _jsx(ArrowDownOutlined, {
|
|
245
245
|
className: classnames({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
246
246
|
}),
|
|
247
247
|
onClick: function onClick() {
|
|
248
248
|
return meridiemSwitch(hourValue);
|
|
249
249
|
}
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
250
|
+
})]
|
|
251
|
+
})]
|
|
252
|
+
})
|
|
253
253
|
}, '0')
|
|
254
|
-
}
|
|
254
|
+
});
|
|
255
255
|
|
|
256
256
|
return _jsxs("div", {
|
|
257
257
|
className: "igloo-hour-select",
|
|
@@ -272,13 +272,13 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
272
272
|
className: classnames('igloo-input', {
|
|
273
273
|
'igloo-hour-select-input-active': dropDownVisible
|
|
274
274
|
})
|
|
275
|
-
}
|
|
276
|
-
}
|
|
275
|
+
})
|
|
276
|
+
}), _jsx(TimeOutlined, {
|
|
277
277
|
className: classnames({
|
|
278
278
|
'igloo-hour-select-active': dropDownVisible
|
|
279
279
|
})
|
|
280
|
-
}
|
|
281
|
-
}
|
|
280
|
+
})]
|
|
281
|
+
});
|
|
282
282
|
};
|
|
283
283
|
|
|
284
284
|
function checkCard(value) {
|
package/es/status-box/index.js
CHANGED
package/es/table/index.js
CHANGED
|
@@ -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
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
|
+
};
|