@kdcloudjs/kdesign 1.7.48 → 1.7.50
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/CHANGELOG.md +1809 -0
- package/dist/kdesign-complete.less +2 -0
- package/dist/kdesign.css +5 -1
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +1031 -604
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/formatUtil.js +1 -3
- package/es/_utils/hooks.js +1 -1
- package/es/_utils/usePopper.js +1 -1
- package/es/alert/alert.js +1 -3
- package/es/anchor/anchor.js +2 -1
- package/es/badge/badge.js +1 -3
- package/es/breadcrumb/breadcrumb.js +1 -3
- package/es/button/button.js +1 -3
- package/es/card/card.js +1 -3
- package/es/cascader/cascader.js +1 -3
- package/es/cascader/util.js +1 -3
- package/es/checkbox/checkbox.js +1 -3
- package/es/checkbox/group.js +1 -3
- package/es/clipboard/clipboard.js +1 -3
- package/es/collapse/panel.js +1 -3
- package/es/date-picker/date-panel.js +35 -30
- package/es/date-picker/panel/year/year.js +2 -2
- package/es/divider/divider.js +1 -3
- package/es/dropdown/menu.js +1 -3
- package/es/empty/empty.js +1 -3
- package/es/form/Field.js +1 -3
- package/es/form/Form.js +1 -3
- package/es/grid/col.js +1 -3
- package/es/icon/icon.js +1 -3
- package/es/image-cropper/image-cropper.js +11 -15
- package/es/input/TextArea.js +1 -3
- package/es/input/input.js +1 -3
- package/es/input-number/inputNumber.js +1 -3
- package/es/layout/layout.js +1 -3
- package/es/layout/sider.js +1 -3
- package/es/link/link.js +1 -3
- package/es/locale/locale.js +1 -1
- package/es/menu/menu.js +1 -3
- package/es/menu/menuItem.js +1 -3
- package/es/menu/subMenu.js +1 -3
- package/es/modal/confirm.js +1 -3
- package/es/modal/modal.js +1 -3
- package/es/notification-base/index.js +1 -3
- package/es/pagination/style/index.css +1 -0
- package/es/pagination/style/index.less +1 -0
- package/es/progress/utils.js +1 -3
- package/es/radio/radio-button.js +1 -3
- package/es/radio/radio.js +1 -3
- package/es/search/quick-search.js +1 -3
- package/es/search/search.js +1 -3
- package/es/select/select.js +1 -1
- package/es/select/style/index.css +3 -0
- package/es/select/style/index.less +1 -0
- package/es/slider/slider.js +1 -3
- package/es/slider/sliderTooltip.js +1 -3
- package/es/spin/spin.js +1 -3
- package/es/steps/Step.js +1 -3
- package/es/steps/Steps.js +1 -3
- package/es/switch/switch.js +1 -3
- package/es/table/feature/rowSelection.js +1 -3
- package/es/tag/tag.js +1 -3
- package/es/timeline/Timeline.js +1 -3
- package/es/timeline/TimelineItem.js +1 -3
- package/es/tree/tree.js +1 -3
- package/es/tree/treeNode.js +1 -3
- package/es/tree/utils/treeUtils.js +1 -3
- package/es/typography/base.js +1 -3
- package/es/typography/title.js +1 -3
- package/es/typography/typography.js +1 -3
- package/es/upload/dragger.js +1 -3
- package/es/upload/upload.js +25 -27
- package/es/virtual-list/utils/itemUtil.js +1 -3
- package/es/virtual-list/virtual-list.js +1 -3
- package/lib/_utils/formatUtil.js +1 -3
- package/lib/_utils/hooks.js +1 -1
- package/lib/_utils/usePopper.js +1 -1
- package/lib/alert/alert.js +1 -3
- package/lib/anchor/anchor.js +2 -1
- package/lib/badge/badge.js +1 -3
- package/lib/breadcrumb/breadcrumb.js +1 -3
- package/lib/button/button.js +1 -3
- package/lib/card/card.js +1 -3
- package/lib/cascader/cascader.js +1 -3
- package/lib/cascader/util.js +1 -3
- package/lib/checkbox/checkbox.js +1 -3
- package/lib/checkbox/group.js +1 -3
- package/lib/clipboard/clipboard.js +1 -3
- package/lib/collapse/panel.js +1 -3
- package/lib/date-picker/date-panel.js +39 -34
- package/lib/date-picker/panel/year/year.js +2 -2
- package/lib/divider/divider.js +1 -3
- package/lib/dropdown/menu.js +1 -3
- package/lib/empty/empty.js +1 -3
- package/lib/form/Field.js +1 -3
- package/lib/form/Form.js +1 -3
- package/lib/grid/col.js +1 -3
- package/lib/icon/icon.js +1 -3
- package/lib/image-cropper/image-cropper.js +11 -15
- package/lib/input/TextArea.js +1 -3
- package/lib/input/input.js +1 -3
- package/lib/input-number/inputNumber.js +1 -3
- package/lib/layout/layout.js +1 -3
- package/lib/layout/sider.js +1 -3
- package/lib/link/link.js +1 -3
- package/lib/locale/locale.js +1 -1
- package/lib/menu/menu.js +1 -3
- package/lib/menu/menuItem.js +1 -3
- package/lib/menu/subMenu.js +1 -3
- package/lib/modal/confirm.js +1 -3
- package/lib/modal/modal.js +1 -3
- package/lib/notification-base/index.js +1 -3
- package/lib/pagination/style/index.css +1 -0
- package/lib/pagination/style/index.less +1 -0
- package/lib/progress/utils.js +1 -3
- package/lib/radio/radio-button.js +1 -3
- package/lib/radio/radio.js +1 -3
- package/lib/search/quick-search.js +1 -3
- package/lib/search/search.js +1 -3
- package/lib/select/select.js +1 -1
- package/lib/select/style/index.css +3 -0
- package/lib/select/style/index.less +1 -0
- package/lib/slider/slider.js +1 -3
- package/lib/slider/sliderTooltip.js +1 -3
- package/lib/spin/spin.js +1 -3
- package/lib/steps/Step.js +1 -3
- package/lib/steps/Steps.js +1 -3
- package/lib/switch/switch.js +1 -3
- package/lib/table/feature/rowSelection.js +1 -3
- package/lib/tag/tag.js +1 -3
- package/lib/timeline/Timeline.js +1 -3
- package/lib/timeline/TimelineItem.js +1 -3
- package/lib/tree/tree.js +1 -3
- package/lib/tree/treeNode.js +1 -3
- package/lib/tree/utils/treeUtils.js +1 -3
- package/lib/typography/base.js +1 -3
- package/lib/typography/title.js +1 -3
- package/lib/typography/typography.js +1 -3
- package/lib/upload/dragger.js +1 -3
- package/lib/upload/upload.js +25 -27
- package/lib/virtual-list/utils/itemUtil.js +1 -3
- package/lib/virtual-list/virtual-list.js +1 -3
- package/package.json +2 -2
package/es/_utils/formatUtil.js
CHANGED
|
@@ -5,9 +5,7 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/ins
|
|
|
5
5
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/_utils/hooks.js
CHANGED
|
@@ -9,7 +9,7 @@ import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
|
|
9
9
|
import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
|
|
10
10
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
11
11
|
function _unsupportedIterableToArray(o, minLen) { var _context2; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context2 = Object.prototype.toString.call(o)).call(_context2, 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); }
|
|
12
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
12
|
+
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; }
|
|
13
13
|
import { useEffect, useState, useRef, useReducer } from 'react';
|
|
14
14
|
import ResizeObserver from 'resize-observer-polyfill';
|
|
15
15
|
import devWarning from './devwarning';
|
package/es/_utils/usePopper.js
CHANGED
|
@@ -415,7 +415,7 @@ function usePopper(locatorElement, popperElement, props) {
|
|
|
415
415
|
setArrowPos(_arrowPos);
|
|
416
416
|
setNextPlacement(currentPlacement);
|
|
417
417
|
}
|
|
418
|
-
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth]);
|
|
418
|
+
}, [locatorRef, popperRef, container, trigger, mousePos, autoPlacement, gap, arrowOffset, arrowSize, arrowWidth, align === null || align === void 0 ? void 0 : align.left, align === null || align === void 0 ? void 0 : align.top]);
|
|
419
419
|
useEffect(function () {
|
|
420
420
|
if (canAlign) {
|
|
421
421
|
alignPopper();
|
package/es/alert/alert.js
CHANGED
|
@@ -9,9 +9,7 @@ import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
|
|
9
9
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
10
10
|
var __rest = this && this.__rest || function (s, e) {
|
|
11
11
|
var t = {};
|
|
12
|
-
for (var p in s)
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
|
-
}
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
15
13
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
16
14
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
17
15
|
}
|
package/es/anchor/anchor.js
CHANGED
|
@@ -335,7 +335,8 @@ var InternalAnchor = function InternalAnchor(props, ref) {
|
|
|
335
335
|
getScrollContainer().addEventListener('scroll', handleScroll);
|
|
336
336
|
handleScroll();
|
|
337
337
|
return function () {
|
|
338
|
-
|
|
338
|
+
var _a;
|
|
339
|
+
return (_a = getScrollContainer()) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', handleScroll);
|
|
339
340
|
};
|
|
340
341
|
}, [handleScroll, getScrollContainer]);
|
|
341
342
|
useEffect(function () {
|
package/es/badge/badge.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
|
@@ -8,9 +8,7 @@ import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
8
8
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
|
9
9
|
var __rest = this && this.__rest || function (s, e) {
|
|
10
10
|
var t = {};
|
|
11
|
-
for (var p in s)
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
|
-
}
|
|
11
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
12
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
13
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
14
|
}
|
package/es/button/button.js
CHANGED
|
@@ -4,9 +4,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
6
|
var t = {};
|
|
7
|
-
for (var p in s)
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
8
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
10
|
}
|
package/es/card/card.js
CHANGED
|
@@ -2,9 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
|
2
2
|
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
4
4
|
var t = {};
|
|
5
|
-
for (var p in s)
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
7
|
-
}
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
6
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|
package/es/cascader/cascader.js
CHANGED
|
@@ -10,9 +10,7 @@ import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
10
10
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
11
11
|
var __rest = this && this.__rest || function (s, e) {
|
|
12
12
|
var t = {};
|
|
13
|
-
for (var p in s)
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
15
|
-
}
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
16
14
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
15
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
18
16
|
}
|
package/es/cascader/util.js
CHANGED
|
@@ -12,9 +12,7 @@ import _spliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
12
12
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
13
13
|
var __rest = this && this.__rest || function (s, e) {
|
|
14
14
|
var t = {};
|
|
15
|
-
for (var p in s)
|
|
16
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
17
|
-
}
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
18
16
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
17
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
20
18
|
}
|
package/es/checkbox/checkbox.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/checkbox/group.js
CHANGED
|
@@ -6,9 +6,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
6
6
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
7
7
|
var __rest = this && this.__rest || function (s, e) {
|
|
8
8
|
var t = {};
|
|
9
|
-
for (var p in s)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
|
-
}
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
10
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
11
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
12
|
}
|
|
@@ -4,9 +4,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
6
|
var t = {};
|
|
7
|
-
for (var p in s)
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
8
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
10
|
}
|
package/es/collapse/panel.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
|
@@ -23,6 +23,8 @@ function Panel(props) {
|
|
|
23
23
|
innerPicker = context.innerPicker,
|
|
24
24
|
setInnerPicker = context.setInnerPicker;
|
|
25
25
|
var isInnerPicker = innerPicker !== undefined;
|
|
26
|
+
var isInnerYear = innerPicker === 'year';
|
|
27
|
+
var isInnerMonth = innerPicker === 'month';
|
|
26
28
|
var isPositionLeft = panelPosition === 'left';
|
|
27
29
|
var isPositionRight = panelPosition === 'right';
|
|
28
30
|
var isPositionUnset = typeof panelPosition === 'undefined';
|
|
@@ -48,14 +50,20 @@ function Panel(props) {
|
|
|
48
50
|
}));
|
|
49
51
|
};
|
|
50
52
|
var renderMonthPanel = function renderMonthPanel() {
|
|
53
|
+
if (isInnerYear) {
|
|
54
|
+
return renderYearPanel();
|
|
55
|
+
}
|
|
51
56
|
return /*#__PURE__*/React.createElement(Month, _extends({}, props));
|
|
52
57
|
};
|
|
53
58
|
var renderQuarterPanel = function renderQuarterPanel() {
|
|
59
|
+
if (isInnerYear) {
|
|
60
|
+
return renderYearPanel();
|
|
61
|
+
}
|
|
54
62
|
return /*#__PURE__*/React.createElement(Quarter, _extends({}, props));
|
|
55
63
|
};
|
|
56
64
|
var renderDatePanel = function renderDatePanel() {
|
|
57
65
|
if (isInnerPicker) {
|
|
58
|
-
if (
|
|
66
|
+
if (isInnerYear) {
|
|
59
67
|
return renderYearPanel();
|
|
60
68
|
} else {
|
|
61
69
|
return renderMonthPanel();
|
|
@@ -114,35 +122,32 @@ function Panel(props) {
|
|
|
114
122
|
className: headerCls
|
|
115
123
|
};
|
|
116
124
|
};
|
|
125
|
+
var onHeaderYearClick = function onHeaderYearClick() {
|
|
126
|
+
setInnerPicker('year');
|
|
127
|
+
};
|
|
128
|
+
var onHeaderMonthClick = function onHeaderMonthClick() {
|
|
129
|
+
setInnerPicker('month');
|
|
130
|
+
};
|
|
117
131
|
var renderMonthHeader = function renderMonthHeader() {
|
|
118
132
|
var year = getYear(viewDate);
|
|
119
|
-
var headerCls = classnames("".concat(prefixCls, "-header"), "".concat(prefixCls, "-header-month"));
|
|
133
|
+
var headerCls = classnames("".concat(prefixCls, "-header"), "".concat(prefixCls, "-header-month"), "".concat(prefixCls, "-header-text-inner-hover"), _defineProperty({}, "".concat(prefixCls, "-header-text-inner-active"), isInnerYear));
|
|
120
134
|
return {
|
|
121
|
-
children: /*#__PURE__*/React.createElement(
|
|
135
|
+
children: /*#__PURE__*/React.createElement("span", {
|
|
136
|
+
onClick: onHeaderYearClick
|
|
137
|
+
}, year + locale.year),
|
|
122
138
|
className: headerCls
|
|
123
139
|
};
|
|
124
140
|
};
|
|
125
|
-
var onHeaderYearClick = function onHeaderYearClick() {
|
|
126
|
-
if (picker === 'date') {
|
|
127
|
-
setInnerPicker('year');
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var onHeaderMonthClick = function onHeaderMonthClick() {
|
|
131
|
-
if (picker === 'date') {
|
|
132
|
-
setInnerPicker('month');
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
141
|
var renderDateHeader = function renderDateHeader() {
|
|
136
|
-
var _classnames, _classnames2;
|
|
137
142
|
var year = getYear(viewDate);
|
|
138
143
|
var month = getMonth(viewDate) + 1;
|
|
139
144
|
var headerCls = classnames("".concat(prefixCls, "-header"), "".concat(prefixCls, "-header-date"));
|
|
140
145
|
return {
|
|
141
146
|
children: /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
142
|
-
className: classnames("".concat(prefixCls, "-header-text-inner"),
|
|
147
|
+
className: classnames("".concat(prefixCls, "-header-text-inner"), "".concat(prefixCls, "-header-text-inner-hover"), _defineProperty({}, "".concat(prefixCls, "-header-text-inner-active"), isInnerYear)),
|
|
143
148
|
onClick: onHeaderYearClick
|
|
144
149
|
}, year + locale.year), /*#__PURE__*/React.createElement("span", {
|
|
145
|
-
className: classnames("".concat(prefixCls, "-header-text-inner"),
|
|
150
|
+
className: classnames("".concat(prefixCls, "-header-text-inner"), "".concat(prefixCls, "-header-text-inner-hover"), _defineProperty({}, "".concat(prefixCls, "-header-text-inner-active"), isInnerMonth)),
|
|
146
151
|
onClick: onHeaderMonthClick
|
|
147
152
|
}, month + locale.month)),
|
|
148
153
|
className: headerCls
|
|
@@ -150,7 +155,7 @@ function Panel(props) {
|
|
|
150
155
|
};
|
|
151
156
|
var onSuperPrev = function onSuperPrev() {
|
|
152
157
|
var date;
|
|
153
|
-
if (picker === 'year' ||
|
|
158
|
+
if (picker === 'year' || isInnerYear) {
|
|
154
159
|
var _props$yearItemNumber3 = props.yearItemNumber,
|
|
155
160
|
yearItemNumber = _props$yearItemNumber3 === void 0 ? DEFAULT_YEAR_ITEM_NUMBER : _props$yearItemNumber3;
|
|
156
161
|
date = addYears(viewDate, 0 - yearItemNumber);
|
|
@@ -161,7 +166,7 @@ function Panel(props) {
|
|
|
161
166
|
};
|
|
162
167
|
var onSuperNext = function onSuperNext() {
|
|
163
168
|
var date;
|
|
164
|
-
if (picker === 'year' ||
|
|
169
|
+
if (picker === 'year' || isInnerYear) {
|
|
165
170
|
var _props$yearItemNumber4 = props.yearItemNumber,
|
|
166
171
|
yearItemNumber = _props$yearItemNumber4 === void 0 ? DEFAULT_YEAR_ITEM_NUMBER : _props$yearItemNumber4;
|
|
167
172
|
var _viewDate = viewDate;
|
|
@@ -205,8 +210,8 @@ function Panel(props) {
|
|
|
205
210
|
panel = renderMonthPanel();
|
|
206
211
|
headerObj = renderMonthHeader();
|
|
207
212
|
headerProps = {
|
|
208
|
-
onSuperPrev: isPositionRight ?
|
|
209
|
-
onSuperNext: isPositionLeft ?
|
|
213
|
+
onSuperPrev: !isPositionRight || innerPicker ? onSuperPrev : undefined,
|
|
214
|
+
onSuperNext: !isPositionLeft || innerPicker ? onSuperNext : undefined
|
|
210
215
|
};
|
|
211
216
|
break;
|
|
212
217
|
}
|
|
@@ -215,8 +220,8 @@ function Panel(props) {
|
|
|
215
220
|
panel = renderQuarterPanel();
|
|
216
221
|
headerObj = renderMonthHeader();
|
|
217
222
|
headerProps = {
|
|
218
|
-
onSuperPrev: isPositionRight ?
|
|
219
|
-
onSuperNext: isPositionLeft ?
|
|
223
|
+
onSuperPrev: !isPositionRight || innerPicker ? onSuperPrev : undefined,
|
|
224
|
+
onSuperNext: !isPositionLeft || innerPicker ? onSuperNext : undefined
|
|
220
225
|
};
|
|
221
226
|
break;
|
|
222
227
|
}
|
|
@@ -225,10 +230,10 @@ function Panel(props) {
|
|
|
225
230
|
{
|
|
226
231
|
headerObj = renderDateHeader();
|
|
227
232
|
headerProps = {
|
|
228
|
-
onPrev: isPositionLeft && !isInnerPicker ||
|
|
229
|
-
onNext: isPositionRight && !isInnerPicker ||
|
|
230
|
-
onSuperPrev: isPositionLeft && !isInnerPicker ||
|
|
231
|
-
onSuperNext: isPositionRight && !isInnerPicker ||
|
|
233
|
+
onPrev: isPositionLeft && !isInnerPicker || isInnerMonth || isPositionUnset ? onPrev : undefined,
|
|
234
|
+
onNext: isPositionRight && !isInnerPicker || isInnerMonth || isPositionUnset ? onNext : undefined,
|
|
235
|
+
onSuperPrev: isPositionLeft && !isInnerPicker || isInnerYear || isPositionUnset ? onSuperPrev : undefined,
|
|
236
|
+
onSuperNext: isPositionRight && !isInnerPicker || isInnerYear || isPositionUnset ? onSuperNext : undefined
|
|
232
237
|
};
|
|
233
238
|
panel = renderDatePanel();
|
|
234
239
|
break;
|
|
@@ -238,10 +243,10 @@ function Panel(props) {
|
|
|
238
243
|
panel = renderDatePanel();
|
|
239
244
|
headerObj = renderDateHeader();
|
|
240
245
|
headerProps = {
|
|
241
|
-
onPrev:
|
|
242
|
-
onNext:
|
|
243
|
-
onSuperPrev:
|
|
244
|
-
onSuperNext:
|
|
246
|
+
onPrev: isPositionLeft && !isInnerPicker || isInnerMonth || isPositionUnset ? onPrev : undefined,
|
|
247
|
+
onNext: isPositionRight && !isInnerPicker || isInnerMonth || isPositionUnset ? onNext : undefined,
|
|
248
|
+
onSuperPrev: isPositionLeft && !isInnerPicker || isInnerYear || isPositionUnset ? onSuperPrev : undefined,
|
|
249
|
+
onSuperNext: isPositionRight && !isInnerPicker || isInnerYear || isPositionUnset ? onSuperNext : undefined
|
|
245
250
|
};
|
|
246
251
|
break;
|
|
247
252
|
}
|
|
@@ -99,7 +99,7 @@ function Year(props) {
|
|
|
99
99
|
var _getYearsPeriod = getYearsPeriod(viewDate, yearItemNumber),
|
|
100
100
|
startPeriod = _getYearsPeriod.startPeriod,
|
|
101
101
|
endPeriod = _getYearsPeriod.endPeriod;
|
|
102
|
-
var _loop = function _loop(
|
|
102
|
+
var _loop = function _loop() {
|
|
103
103
|
var year = setYear(viewDate, y);
|
|
104
104
|
var _props = {
|
|
105
105
|
onClick: function onClick() {
|
|
@@ -130,7 +130,7 @@ function Year(props) {
|
|
|
130
130
|
}) || originNode : originNode));
|
|
131
131
|
};
|
|
132
132
|
for (var y = startPeriod; y <= endPeriod; y++) {
|
|
133
|
-
_loop(
|
|
133
|
+
_loop();
|
|
134
134
|
}
|
|
135
135
|
return yearsList;
|
|
136
136
|
}
|
package/es/divider/divider.js
CHANGED
|
@@ -4,9 +4,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
6
|
var t = {};
|
|
7
|
-
for (var p in s)
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
8
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
10
|
}
|
package/es/dropdown/menu.js
CHANGED
|
@@ -3,9 +3,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
3
3
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
4
4
|
var __rest = this && this.__rest || function (s, e) {
|
|
5
5
|
var t = {};
|
|
6
|
-
for (var p in s)
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
-
}
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
7
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
11
9
|
}
|
package/es/empty/empty.js
CHANGED
|
@@ -2,9 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
|
2
2
|
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
4
4
|
var t = {};
|
|
5
|
-
for (var p in s)
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
7
|
-
}
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
6
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|
package/es/form/Field.js
CHANGED
|
@@ -10,9 +10,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
|
10
10
|
import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/includes";
|
|
11
11
|
var __rest = this && this.__rest || function (s, e) {
|
|
12
12
|
var t = {};
|
|
13
|
-
for (var p in s)
|
|
14
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
15
|
-
}
|
|
13
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
16
14
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
15
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
18
16
|
}
|
package/es/form/Form.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/grid/col.js
CHANGED
|
@@ -3,9 +3,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
3
3
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
4
4
|
var __rest = this && this.__rest || function (s, e) {
|
|
5
5
|
var t = {};
|
|
6
|
-
for (var p in s)
|
|
7
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
|
-
}
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
7
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
10
8
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
11
9
|
}
|
package/es/icon/icon.js
CHANGED
|
@@ -4,9 +4,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
6
|
var t = {};
|
|
7
|
-
for (var p in s)
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
8
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
10
|
}
|
|
@@ -32,9 +32,7 @@ var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, gene
|
|
|
32
32
|
};
|
|
33
33
|
var __rest = this && this.__rest || function (s, e) {
|
|
34
34
|
var t = {};
|
|
35
|
-
for (var p in s)
|
|
36
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
37
|
-
}
|
|
35
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
38
36
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
39
37
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
40
38
|
}
|
|
@@ -87,18 +85,16 @@ var InternalImageCropper = function InternalImageCropper(props, forwardedRef) {
|
|
|
87
85
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
88
86
|
var imgFile;
|
|
89
87
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
90
|
-
while (1) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return _context.stop();
|
|
101
|
-
}
|
|
88
|
+
while (1) switch (_context.prev = _context.next) {
|
|
89
|
+
case 0:
|
|
90
|
+
_context.next = 2;
|
|
91
|
+
return cropperRef.current.getImage();
|
|
92
|
+
case 2:
|
|
93
|
+
imgFile = _context.sent;
|
|
94
|
+
imgFile ? onCropSuccess === null || onCropSuccess === void 0 ? void 0 : onCropSuccess(imgFile) : onCropFailed === null || onCropFailed === void 0 ? void 0 : onCropFailed();
|
|
95
|
+
case 4:
|
|
96
|
+
case "end":
|
|
97
|
+
return _context.stop();
|
|
102
98
|
}
|
|
103
99
|
}, _callee);
|
|
104
100
|
}));
|
package/es/input/TextArea.js
CHANGED
|
@@ -6,9 +6,7 @@ import _Number$MAX_SAFE_INTEGER from "@babel/runtime-corejs3/core-js-stable/numb
|
|
|
6
6
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
7
7
|
var __rest = this && this.__rest || function (s, e) {
|
|
8
8
|
var t = {};
|
|
9
|
-
for (var p in s)
|
|
10
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
|
-
}
|
|
9
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
10
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
13
11
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
14
12
|
}
|
package/es/input/input.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
|
@@ -5,9 +5,7 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/ins
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/layout/layout.js
CHANGED
|
@@ -7,9 +7,7 @@ import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/insta
|
|
|
7
7
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
8
8
|
var __rest = this && this.__rest || function (s, e) {
|
|
9
9
|
var t = {};
|
|
10
|
-
for (var p in s)
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
|
-
}
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
11
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
12
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
13
|
}
|
package/es/layout/sider.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/link/link.js
CHANGED
|
@@ -4,9 +4,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
4
4
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
5
5
|
var __rest = this && this.__rest || function (s, e) {
|
|
6
6
|
var t = {};
|
|
7
|
-
for (var p in s)
|
|
8
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
9
|
-
}
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
8
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
11
9
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
12
10
|
}
|
package/es/locale/locale.js
CHANGED
|
@@ -5,7 +5,7 @@ import _classCallCheck from "@babel/runtime-corejs3/helpers/classCallCheck";
|
|
|
5
5
|
import _createClass from "@babel/runtime-corejs3/helpers/createClass";
|
|
6
6
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && _getIteratorMethod(o) || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
7
7
|
function _unsupportedIterableToArray(o, minLen) { var _context2; if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = _sliceInstanceProperty(_context2 = Object.prototype.toString.call(o)).call(_context2, 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); }
|
|
8
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
8
|
+
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; }
|
|
9
9
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
10
10
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
11
11
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
package/es/menu/menu.js
CHANGED
|
@@ -8,9 +8,7 @@ import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance
|
|
|
8
8
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
9
9
|
var __rest = this && this.__rest || function (s, e) {
|
|
10
10
|
var t = {};
|
|
11
|
-
for (var p in s)
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
|
-
}
|
|
11
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
14
12
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
15
13
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
16
14
|
}
|
package/es/menu/menuItem.js
CHANGED
|
@@ -5,9 +5,7 @@ import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable
|
|
|
5
5
|
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
|
6
6
|
var __rest = this && this.__rest || function (s, e) {
|
|
7
7
|
var t = {};
|
|
8
|
-
for (var p in s)
|
|
9
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
10
|
-
}
|
|
8
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
11
9
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
12
10
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
13
11
|
}
|
package/es/menu/subMenu.js
CHANGED
|
@@ -7,9 +7,7 @@ import _includesInstanceProperty from "@babel/runtime-corejs3/core-js-stable/ins
|
|
|
7
7
|
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
|
8
8
|
var __rest = this && this.__rest || function (s, e) {
|
|
9
9
|
var t = {};
|
|
10
|
-
for (var p in s)
|
|
11
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
12
|
-
}
|
|
10
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
11
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
12
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
13
|
}
|
package/es/modal/confirm.js
CHANGED
|
@@ -2,9 +2,7 @@ import _extends from "@babel/runtime-corejs3/helpers/extends";
|
|
|
2
2
|
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
|
3
3
|
var __rest = this && this.__rest || function (s, e) {
|
|
4
4
|
var t = {};
|
|
5
|
-
for (var p in s)
|
|
6
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
7
|
-
}
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
8
6
|
if (s != null && typeof _Object$getOwnPropertySymbols === "function") for (var i = 0, p = _Object$getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9
7
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
10
8
|
}
|