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
|
@@ -35,9 +35,9 @@ var _excluded = ["options", "getOptions", "value", "className", "placeholder", "
|
|
|
35
35
|
|
|
36
36
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
37
37
|
|
|
38
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
38
|
+
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; }
|
|
39
39
|
|
|
40
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
40
|
+
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; }
|
|
41
41
|
|
|
42
42
|
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; }
|
|
43
43
|
|
|
@@ -246,10 +246,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
246
246
|
}
|
|
247
247
|
}, (0, _omit.default)(rest, _formMethods.default)), {}, {
|
|
248
248
|
value: selected,
|
|
249
|
-
suffixIcon: (0, _jsxRuntime.jsxs)(
|
|
250
|
-
style: {
|
|
251
|
-
position: 'relative'
|
|
252
|
-
},
|
|
249
|
+
suffixIcon: (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
253
250
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
254
251
|
className: (0, _classnames.default)({
|
|
255
252
|
'igloo-select-arrow': true,
|
|
@@ -258,7 +255,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
258
255
|
style: {
|
|
259
256
|
opacity: dropVisible ? 0 : 1
|
|
260
257
|
}
|
|
261
|
-
}
|
|
258
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
262
259
|
className: (0, _classnames.default)({
|
|
263
260
|
'igloo-select-arrow': true,
|
|
264
261
|
'igloo-select-arrow-active': dropVisible
|
|
@@ -266,8 +263,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
266
263
|
style: {
|
|
267
264
|
opacity: dropVisible ? 1 : 0
|
|
268
265
|
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
266
|
+
})]
|
|
267
|
+
}),
|
|
271
268
|
className: (0, _classnames.default)('igloo-attached-select', {
|
|
272
269
|
'igloo-attached-select-open-status': dropVisible
|
|
273
270
|
}),
|
|
@@ -297,12 +294,12 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
297
294
|
style: {
|
|
298
295
|
fontSize: 24
|
|
299
296
|
}
|
|
300
|
-
}
|
|
297
|
+
}),
|
|
301
298
|
onKeyDown: function onKeyDown(e) {
|
|
302
299
|
return e.stopPropagation();
|
|
303
300
|
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
301
|
+
})
|
|
302
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
306
303
|
className: "igloo-attached-select-multiple-dropdown-buttons",
|
|
307
304
|
children: [(0, _jsxRuntime.jsx)(_button.default, {
|
|
308
305
|
type: "link",
|
|
@@ -314,7 +311,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
314
311
|
children: formatMessage({
|
|
315
312
|
id: 'Select All'
|
|
316
313
|
})
|
|
317
|
-
}
|
|
314
|
+
}), (0, _jsxRuntime.jsx)(_button.default, {
|
|
318
315
|
type: "link",
|
|
319
316
|
onClick: clearAll,
|
|
320
317
|
disabled: displayOptions.every(function (_ref7) {
|
|
@@ -324,9 +321,9 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
324
321
|
children: formatMessage({
|
|
325
322
|
id: 'Clear All'
|
|
326
323
|
})
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
324
|
+
})]
|
|
325
|
+
}), originNode]
|
|
326
|
+
});
|
|
330
327
|
},
|
|
331
328
|
maxTagCount: 0,
|
|
332
329
|
maxTagPlaceholder: function maxTagPlaceholder(values) {
|
|
@@ -356,8 +353,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
356
353
|
style: {
|
|
357
354
|
marginRight: 8
|
|
358
355
|
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
356
|
+
}), label]
|
|
357
|
+
}) : label, (0, _jsxRuntime.jsx)("div", {
|
|
361
358
|
style: {
|
|
362
359
|
position: 'absolute',
|
|
363
360
|
width: '100%',
|
|
@@ -366,11 +363,11 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
366
363
|
top: 0,
|
|
367
364
|
left: 0
|
|
368
365
|
}
|
|
369
|
-
}
|
|
366
|
+
})]
|
|
370
367
|
}, value);
|
|
371
368
|
})
|
|
372
|
-
})
|
|
373
|
-
}
|
|
369
|
+
}))
|
|
370
|
+
});
|
|
374
371
|
};
|
|
375
372
|
|
|
376
373
|
IglooSelect.formItemPropsHandler = function (config) {
|
package/lib/select/select.js
CHANGED
|
@@ -29,9 +29,9 @@ var _excluded = ["options", "value", "className", "placeholder", "children", "on
|
|
|
29
29
|
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
32
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
32
|
+
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; }
|
|
33
33
|
|
|
34
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
34
|
+
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; }
|
|
35
35
|
|
|
36
36
|
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; }
|
|
37
37
|
|
|
@@ -83,10 +83,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
83
83
|
}, (0, _omit.default)(rest, _formMethods.default)), {}, {
|
|
84
84
|
options: children ? void 0 : options,
|
|
85
85
|
value: value,
|
|
86
|
-
suffixIcon: (0, _jsxRuntime.jsxs)(
|
|
87
|
-
style: {
|
|
88
|
-
position: 'relative'
|
|
89
|
-
},
|
|
86
|
+
suffixIcon: (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
90
87
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
91
88
|
className: (0, _classnames.default)({
|
|
92
89
|
'igloo-select-arrow': true,
|
|
@@ -95,7 +92,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
95
92
|
style: {
|
|
96
93
|
opacity: isOpen ? 0 : 1
|
|
97
94
|
}
|
|
98
|
-
}
|
|
95
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
99
96
|
className: (0, _classnames.default)({
|
|
100
97
|
'igloo-select-arrow': true,
|
|
101
98
|
'igloo-select-arrow-active': isOpen
|
|
@@ -103,8 +100,8 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
103
100
|
style: {
|
|
104
101
|
opacity: isOpen ? 1 : 0
|
|
105
102
|
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
103
|
+
})]
|
|
104
|
+
}),
|
|
108
105
|
getPopupContainer: function getPopupContainer(trigger) {
|
|
109
106
|
return trigger.parentNode;
|
|
110
107
|
},
|
|
@@ -121,7 +118,7 @@ var IglooSelect = function IglooSelect(_ref) {
|
|
|
121
118
|
} : void 0),
|
|
122
119
|
mode: undefined,
|
|
123
120
|
children: children
|
|
124
|
-
})
|
|
121
|
+
}));
|
|
125
122
|
};
|
|
126
123
|
|
|
127
124
|
IglooSelect.OptGroup = OptGroup;
|
|
@@ -221,57 +221,57 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
221
221
|
onClick: function onClick() {
|
|
222
222
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'down');
|
|
223
223
|
}
|
|
224
|
-
}
|
|
224
|
+
}), (0, _jsxRuntime.jsx)(_index.default, {
|
|
225
225
|
onChange: function onChange(e) {
|
|
226
226
|
return handleTimeInput(hourRange, e.target.value, setHourVale);
|
|
227
227
|
},
|
|
228
228
|
value: hourValue
|
|
229
|
-
}
|
|
229
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
230
230
|
onClick: function onClick() {
|
|
231
231
|
return handleTimeSwitchButton(hourRange, hourValue, setHourVale, 'up');
|
|
232
232
|
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
233
|
+
})]
|
|
234
|
+
}), (0, _jsxRuntime.jsx)("span", {
|
|
235
235
|
children: ":"
|
|
236
|
-
}
|
|
236
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
237
237
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
238
238
|
onClick: function onClick() {
|
|
239
239
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'down');
|
|
240
240
|
}
|
|
241
|
-
}
|
|
241
|
+
}), (0, _jsxRuntime.jsx)(_index.default, {
|
|
242
242
|
ref: secondInputRef,
|
|
243
243
|
onChange: function onChange(e) {
|
|
244
244
|
return handleTimeInput(minuteRange, e.target.value, setMinuteVale);
|
|
245
245
|
},
|
|
246
246
|
value: minuteValue
|
|
247
|
-
}
|
|
247
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
248
248
|
onClick: function onClick() {
|
|
249
249
|
return handleTimeSwitchButton(minuteRange, minuteValue, setMinuteVale, 'up');
|
|
250
250
|
}
|
|
251
|
-
}
|
|
252
|
-
}
|
|
251
|
+
})]
|
|
252
|
+
}), (0, _jsxRuntime.jsxs)("div", {
|
|
253
253
|
children: [(0, _jsxRuntime.jsx)(_iglooicon.ArrowUpOutlined, {
|
|
254
254
|
className: (0, _classnames.default)({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
255
255
|
}),
|
|
256
256
|
onClick: function onClick() {
|
|
257
257
|
return meridiemSwitch(hourValue);
|
|
258
258
|
}
|
|
259
|
-
}
|
|
259
|
+
}), (0, _jsxRuntime.jsx)("span", {
|
|
260
260
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
261
261
|
level: "body1",
|
|
262
262
|
children: meridiem ? 'AM' : 'PM'
|
|
263
|
-
}
|
|
264
|
-
}
|
|
263
|
+
})
|
|
264
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
265
265
|
className: (0, _classnames.default)({// 'igloo-hour-select-meridiem-disable': meridiemDisable,
|
|
266
266
|
}),
|
|
267
267
|
onClick: function onClick() {
|
|
268
268
|
return meridiemSwitch(hourValue);
|
|
269
269
|
}
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
}
|
|
270
|
+
})]
|
|
271
|
+
})]
|
|
272
|
+
})
|
|
273
273
|
}, '0')
|
|
274
|
-
}
|
|
274
|
+
});
|
|
275
275
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
276
276
|
className: "igloo-hour-select",
|
|
277
277
|
ref: topDomRef,
|
|
@@ -291,13 +291,13 @@ var IglooTimeSelect = function IglooTimeSelect(props) {
|
|
|
291
291
|
className: (0, _classnames.default)('igloo-input', {
|
|
292
292
|
'igloo-hour-select-input-active': dropDownVisible
|
|
293
293
|
})
|
|
294
|
-
}
|
|
295
|
-
}
|
|
294
|
+
})
|
|
295
|
+
}), (0, _jsxRuntime.jsx)(_iglooicon.TimeOutlined, {
|
|
296
296
|
className: (0, _classnames.default)({
|
|
297
297
|
'igloo-hour-select-active': dropDownVisible
|
|
298
298
|
})
|
|
299
|
-
}
|
|
300
|
-
}
|
|
299
|
+
})]
|
|
300
|
+
});
|
|
301
301
|
};
|
|
302
302
|
|
|
303
303
|
function checkCard(value) {
|
package/lib/status-box/index.js
CHANGED
|
@@ -15,9 +15,9 @@ require("./style/index");
|
|
|
15
15
|
|
|
16
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
17
|
|
|
18
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
18
|
+
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; }
|
|
19
19
|
|
|
20
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
20
|
+
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; }
|
|
21
21
|
|
|
22
22
|
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; }
|
|
23
23
|
|
|
@@ -37,8 +37,8 @@ var IglooStatusBox = function IglooStatusBox(props) {
|
|
|
37
37
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
38
38
|
level: "status",
|
|
39
39
|
children: children
|
|
40
|
-
}
|
|
41
|
-
}
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
var _default = IglooStatusBox;
|
package/lib/table/index.js
CHANGED
|
@@ -85,13 +85,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
85
85
|
|
|
86
86
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
87
87
|
|
|
88
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
88
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
89
89
|
|
|
90
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
90
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
91
91
|
|
|
92
92
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
93
93
|
|
|
94
|
-
function _typeof(obj) { "@babel/helpers - typeof";
|
|
94
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
95
95
|
|
|
96
96
|
var headerStyle = function headerStyle() {
|
|
97
97
|
return {
|
|
@@ -131,7 +131,7 @@ var getDropDownMenu = function getDropDownMenu(allButtons, rowData, actionButton
|
|
|
131
131
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
132
132
|
level: "body1",
|
|
133
133
|
children: item.text
|
|
134
|
-
}
|
|
134
|
+
})
|
|
135
135
|
}, index);
|
|
136
136
|
})
|
|
137
137
|
}, actionIndex);
|
|
@@ -185,7 +185,7 @@ function paginationItem(page, type, originalElement) {
|
|
|
185
185
|
verticalAlign: 'middle'
|
|
186
186
|
},
|
|
187
187
|
className: "ant-btn-link"
|
|
188
|
-
}
|
|
188
|
+
});
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
if (type === 'next') {
|
|
@@ -195,13 +195,13 @@ function paginationItem(page, type, originalElement) {
|
|
|
195
195
|
verticalAlign: 'middle'
|
|
196
196
|
},
|
|
197
197
|
className: "ant-btn-link"
|
|
198
|
-
}
|
|
198
|
+
});
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
return (0, _jsxRuntime.jsx)("span", {
|
|
202
202
|
className: "ant-btn-link",
|
|
203
203
|
children: originalElement
|
|
204
|
-
}
|
|
204
|
+
});
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
function actionListChange(state, action) {
|
|
@@ -310,11 +310,11 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
310
310
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
311
311
|
level: "body1",
|
|
312
312
|
children: item.title
|
|
313
|
-
}
|
|
314
|
-
}
|
|
313
|
+
})
|
|
314
|
+
})
|
|
315
315
|
}, item.key);
|
|
316
316
|
})
|
|
317
|
-
}
|
|
317
|
+
});
|
|
318
318
|
};
|
|
319
319
|
|
|
320
320
|
var actionCol = {
|
|
@@ -351,8 +351,8 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
351
351
|
return e.stopPropagation();
|
|
352
352
|
},
|
|
353
353
|
className: "igloo-table-action-icon"
|
|
354
|
-
}
|
|
355
|
-
}
|
|
354
|
+
})
|
|
355
|
+
});
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
358
|
return (0, _jsxRuntime.jsxs)("div", {
|
|
@@ -365,13 +365,13 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
365
365
|
className: "igloo-table-top-content",
|
|
366
366
|
children: [hasFilterOptions ? (0, _jsxRuntime.jsx)(_index2.default, _objectSpread(_objectSpread({}, filterConfig), {}, {
|
|
367
367
|
parentFilterCallBack: setFilterOptions
|
|
368
|
-
})
|
|
368
|
+
})) : (0, _jsxRuntime.jsx)(_col.default, {
|
|
369
369
|
span: 8
|
|
370
|
-
}
|
|
370
|
+
}), (0, _jsxRuntime.jsx)(_col.default, {
|
|
371
371
|
children: (0, _jsxRuntime.jsxs)(_space.default, {
|
|
372
372
|
className: 'igloo-table-button-cantainer',
|
|
373
373
|
children: [!noCustomize && (0, _jsxRuntime.jsx)(_button.default, {
|
|
374
|
-
icon: (0, _jsxRuntime.jsx)(_iglooicon.SettingOutlined, {}
|
|
374
|
+
icon: (0, _jsxRuntime.jsx)(_iglooicon.SettingOutlined, {}),
|
|
375
375
|
onClick: function onClick() {
|
|
376
376
|
return setModalVisible(true);
|
|
377
377
|
},
|
|
@@ -380,8 +380,8 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
380
380
|
children: formatMessage({
|
|
381
381
|
id: 'Customize Columns'
|
|
382
382
|
})
|
|
383
|
-
}
|
|
384
|
-
}
|
|
383
|
+
})
|
|
384
|
+
}), extraButtons && extraButtons.map(function (item, index) {
|
|
385
385
|
return item.render ? /*#__PURE__*/_react.default.cloneElement(item.render(), {
|
|
386
386
|
key: index
|
|
387
387
|
}) : (0, _jsxRuntime.jsx)(_button.default, {
|
|
@@ -392,12 +392,12 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
392
392
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
393
393
|
level: "h4",
|
|
394
394
|
children: item.text
|
|
395
|
-
}
|
|
395
|
+
})
|
|
396
396
|
}, index);
|
|
397
397
|
})]
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
398
|
+
})
|
|
399
|
+
})]
|
|
400
|
+
}), (0, _jsxRuntime.jsx)(_table.default, _objectSpread({
|
|
401
401
|
className: "".concat(className || ''),
|
|
402
402
|
rowClassName: function rowClassName(record, index, indent) {
|
|
403
403
|
if (typeof _rowClassName === 'function') {
|
|
@@ -439,7 +439,7 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
439
439
|
id: 'Click to cancel sorting'
|
|
440
440
|
})
|
|
441
441
|
}, locale)
|
|
442
|
-
}, rest)
|
|
442
|
+
}, rest)), bottomExtra, !noPagination && (0, _jsxRuntime.jsx)(_row.default, {
|
|
443
443
|
justify: "end",
|
|
444
444
|
style: {
|
|
445
445
|
marginTop: 24
|
|
@@ -466,7 +466,7 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
466
466
|
total: total
|
|
467
467
|
}
|
|
468
468
|
})
|
|
469
|
-
}
|
|
469
|
+
}), ' ', (0, _jsxRuntime.jsx)(_typography.default, {
|
|
470
470
|
level: "body1",
|
|
471
471
|
style: {
|
|
472
472
|
color: '#666666'
|
|
@@ -474,14 +474,14 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
474
474
|
children: formatMessage({
|
|
475
475
|
id: 'Rows per page'
|
|
476
476
|
})
|
|
477
|
-
}
|
|
477
|
+
}), ' ', (0, _jsxRuntime.jsx)(_select.default, {
|
|
478
478
|
value: pageSize,
|
|
479
479
|
suffixIcon: (0, _jsxRuntime.jsx)(_iglooicon.ArrowDownOutlined, {
|
|
480
480
|
style: {
|
|
481
481
|
fontSize: 24,
|
|
482
482
|
color: '#666666'
|
|
483
483
|
}
|
|
484
|
-
}
|
|
484
|
+
}),
|
|
485
485
|
onChange: function onChange(value) {
|
|
486
486
|
return onPagination(page, value);
|
|
487
487
|
},
|
|
@@ -491,12 +491,12 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
491
491
|
value: item
|
|
492
492
|
};
|
|
493
493
|
})
|
|
494
|
-
}
|
|
495
|
-
}
|
|
494
|
+
})]
|
|
495
|
+
});
|
|
496
496
|
},
|
|
497
497
|
onChange: onPagination
|
|
498
|
-
}
|
|
499
|
-
}
|
|
498
|
+
})
|
|
499
|
+
}), !noCustomize && (0, _jsxRuntime.jsxs)(_index.default, {
|
|
500
500
|
width: 430,
|
|
501
501
|
closable: true,
|
|
502
502
|
destroyOnClose: true,
|
|
@@ -506,7 +506,7 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
506
506
|
children: formatMessage({
|
|
507
507
|
id: 'Customize Columns'
|
|
508
508
|
})
|
|
509
|
-
}
|
|
509
|
+
}),
|
|
510
510
|
cancelButtonProps: {
|
|
511
511
|
type: 'link',
|
|
512
512
|
onClick: function onClick() {
|
|
@@ -530,7 +530,7 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
530
530
|
children: formatMessage({
|
|
531
531
|
id: 'Apply Columns'
|
|
532
532
|
})
|
|
533
|
-
}
|
|
533
|
+
}),
|
|
534
534
|
children: [(0, _jsxRuntime.jsx)("div", {
|
|
535
535
|
className: 'modal-describe',
|
|
536
536
|
children: (0, _jsxRuntime.jsx)(_typography.default, {
|
|
@@ -541,15 +541,15 @@ var IglooTable = function IglooTable(_ref) {
|
|
|
541
541
|
colMax: colMax
|
|
542
542
|
}
|
|
543
543
|
})
|
|
544
|
-
}
|
|
545
|
-
}
|
|
544
|
+
})
|
|
545
|
+
}), (0, _jsxRuntime.jsx)(_typography.default, {
|
|
546
546
|
level: "body1",
|
|
547
547
|
children: modalContent(columns, modalSelectedCol, function (item) {
|
|
548
548
|
setModalSelectedCol(item);
|
|
549
549
|
}, colMax, colDisable)
|
|
550
|
-
}
|
|
551
|
-
}
|
|
552
|
-
}
|
|
550
|
+
})]
|
|
551
|
+
})]
|
|
552
|
+
});
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
var _default = IglooTable;
|
package/lib/tabs/index.js
CHANGED
|
@@ -18,9 +18,9 @@ var _excluded = ["className"];
|
|
|
18
18
|
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
|
|
21
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
21
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
22
22
|
|
|
23
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
23
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
24
24
|
|
|
25
25
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
26
26
|
|
|
@@ -43,7 +43,7 @@ function Tabs(props) {
|
|
|
43
43
|
|
|
44
44
|
return (0, _jsxRuntime.jsx)(_tabs.default, _objectSpread({
|
|
45
45
|
className: "container ".concat(className)
|
|
46
|
-
}, restProps)
|
|
46
|
+
}, restProps));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
Tabs.TabPane = TabPane;
|
package/lib/typography/index.js
CHANGED
|
@@ -40,7 +40,7 @@ var IglooTypography = function IglooTypography(_ref) {
|
|
|
40
40
|
title: title,
|
|
41
41
|
onClick: onClick,
|
|
42
42
|
children: children
|
|
43
|
-
}
|
|
43
|
+
});
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
return (0, _jsxRuntime.jsx)("span", {
|
|
@@ -49,8 +49,15 @@ var IglooTypography = function IglooTypography(_ref) {
|
|
|
49
49
|
title: title,
|
|
50
50
|
onClick: onClick,
|
|
51
51
|
children: children
|
|
52
|
-
}
|
|
52
|
+
});
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
var _default = IglooTypography;
|
|
56
|
-
exports.default = _default;
|
|
56
|
+
exports.default = _default;
|
|
57
|
+
|
|
58
|
+
IglooTypography.formItemPropsHandler = function () {
|
|
59
|
+
return {
|
|
60
|
+
withoutForm: true,
|
|
61
|
+
fullRow: true
|
|
62
|
+
};
|
|
63
|
+
};
|