@ant-design/pro-components 2.3.33 → 2.3.35
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/dist/components.js +1000 -792
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/package.json +12 -12
package/dist/components.js
CHANGED
|
@@ -361,7 +361,7 @@ module.exports = _default;
|
|
|
361
361
|
|
|
362
362
|
|
|
363
363
|
var _interopRequireDefault = __webpack_require__(1593);
|
|
364
|
-
var
|
|
364
|
+
var _typeof = __webpack_require__(7537);
|
|
365
365
|
Object.defineProperty(exports, "__esModule", ({
|
|
366
366
|
value: true
|
|
367
367
|
}));
|
|
@@ -377,6 +377,45 @@ var _IconBase = _interopRequireDefault(__webpack_require__(197));
|
|
|
377
377
|
var _twoTonePrimaryColor = __webpack_require__(2990);
|
|
378
378
|
var _utils = __webpack_require__(4071);
|
|
379
379
|
var _excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
|
380
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
381
|
+
if (typeof WeakMap !== "function") return null;
|
|
382
|
+
var cacheBabelInterop = new WeakMap();
|
|
383
|
+
var cacheNodeInterop = new WeakMap();
|
|
384
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
385
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
386
|
+
})(nodeInterop);
|
|
387
|
+
}
|
|
388
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
389
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
390
|
+
return obj;
|
|
391
|
+
}
|
|
392
|
+
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
393
|
+
return {
|
|
394
|
+
default: obj
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
398
|
+
if (cache && cache.has(obj)) {
|
|
399
|
+
return cache.get(obj);
|
|
400
|
+
}
|
|
401
|
+
var newObj = {};
|
|
402
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
403
|
+
for (var key in obj) {
|
|
404
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
405
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
406
|
+
if (desc && (desc.get || desc.set)) {
|
|
407
|
+
Object.defineProperty(newObj, key, desc);
|
|
408
|
+
} else {
|
|
409
|
+
newObj[key] = obj[key];
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
newObj.default = obj;
|
|
414
|
+
if (cache) {
|
|
415
|
+
cache.set(obj, newObj);
|
|
416
|
+
}
|
|
417
|
+
return newObj;
|
|
418
|
+
}
|
|
380
419
|
// Initial setting
|
|
381
420
|
// should move it to antd main repo?
|
|
382
421
|
(0, _twoTonePrimaryColor.setTwoToneColor)('#1890ff');
|
|
@@ -392,8 +431,9 @@ var Icon = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
392
431
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
393
432
|
var _React$useContext = React.useContext(_Context.default),
|
|
394
433
|
_React$useContext$pre = _React$useContext.prefixCls,
|
|
395
|
-
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre
|
|
396
|
-
|
|
434
|
+
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
|
435
|
+
rootClassName = _React$useContext.rootClassName;
|
|
436
|
+
var classString = (0, _classnames.default)(rootClassName, prefixCls, (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
|
|
397
437
|
var iconTabIndex = tabIndex;
|
|
398
438
|
if (iconTabIndex === undefined && onClick) {
|
|
399
439
|
iconTabIndex = -1;
|
|
@@ -531,8 +571,8 @@ var _interopRequireDefault = __webpack_require__(1593);
|
|
|
531
571
|
Object.defineProperty(exports, "__esModule", ({
|
|
532
572
|
value: true
|
|
533
573
|
}));
|
|
534
|
-
exports.setTwoToneColor = setTwoToneColor;
|
|
535
574
|
exports.getTwoToneColor = getTwoToneColor;
|
|
575
|
+
exports.setTwoToneColor = setTwoToneColor;
|
|
536
576
|
var _slicedToArray2 = _interopRequireDefault(__webpack_require__(9157));
|
|
537
577
|
var _IconBase = _interopRequireDefault(__webpack_require__(197));
|
|
538
578
|
var _utils = __webpack_require__(4071);
|
|
@@ -562,8 +602,8 @@ function getTwoToneColor() {
|
|
|
562
602
|
"use strict";
|
|
563
603
|
|
|
564
604
|
|
|
565
|
-
var _interopRequireWildcard = __webpack_require__(7181);
|
|
566
605
|
var _interopRequireDefault = __webpack_require__(1593);
|
|
606
|
+
var _typeof = __webpack_require__(7537);
|
|
567
607
|
Object.defineProperty(exports, "__esModule", ({
|
|
568
608
|
value: true
|
|
569
609
|
}));
|
|
@@ -572,9 +612,48 @@ var _objectSpread2 = _interopRequireDefault(__webpack_require__(6906));
|
|
|
572
612
|
var React = _interopRequireWildcard(__webpack_require__(1024));
|
|
573
613
|
var _ArrowLeftOutlined = _interopRequireDefault(__webpack_require__(5747));
|
|
574
614
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(3927));
|
|
575
|
-
|
|
615
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
616
|
+
if (typeof WeakMap !== "function") return null;
|
|
617
|
+
var cacheBabelInterop = new WeakMap();
|
|
618
|
+
var cacheNodeInterop = new WeakMap();
|
|
619
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
620
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
621
|
+
})(nodeInterop);
|
|
622
|
+
}
|
|
623
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
624
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
625
|
+
return obj;
|
|
626
|
+
}
|
|
627
|
+
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
628
|
+
return {
|
|
629
|
+
default: obj
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
633
|
+
if (cache && cache.has(obj)) {
|
|
634
|
+
return cache.get(obj);
|
|
635
|
+
}
|
|
636
|
+
var newObj = {};
|
|
637
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
638
|
+
for (var key in obj) {
|
|
639
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
640
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
641
|
+
if (desc && (desc.get || desc.set)) {
|
|
642
|
+
Object.defineProperty(newObj, key, desc);
|
|
643
|
+
} else {
|
|
644
|
+
newObj[key] = obj[key];
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
newObj.default = obj;
|
|
649
|
+
if (cache) {
|
|
650
|
+
cache.set(obj, newObj);
|
|
651
|
+
}
|
|
652
|
+
return newObj;
|
|
653
|
+
}
|
|
576
654
|
// GENERATE BY ./scripts/generate.ts
|
|
577
655
|
// DON NOT EDIT IT MANUALLY
|
|
656
|
+
|
|
578
657
|
var ArrowLeftOutlined = function ArrowLeftOutlined(props, ref) {
|
|
579
658
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
580
659
|
ref: ref,
|
|
@@ -593,8 +672,8 @@ exports["default"] = _default;
|
|
|
593
672
|
"use strict";
|
|
594
673
|
|
|
595
674
|
|
|
596
|
-
var _interopRequireWildcard = __webpack_require__(7181);
|
|
597
675
|
var _interopRequireDefault = __webpack_require__(1593);
|
|
676
|
+
var _typeof = __webpack_require__(7537);
|
|
598
677
|
Object.defineProperty(exports, "__esModule", ({
|
|
599
678
|
value: true
|
|
600
679
|
}));
|
|
@@ -603,9 +682,48 @@ var _objectSpread2 = _interopRequireDefault(__webpack_require__(6906));
|
|
|
603
682
|
var React = _interopRequireWildcard(__webpack_require__(1024));
|
|
604
683
|
var _ArrowRightOutlined = _interopRequireDefault(__webpack_require__(8552));
|
|
605
684
|
var _AntdIcon = _interopRequireDefault(__webpack_require__(3927));
|
|
606
|
-
|
|
685
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
686
|
+
if (typeof WeakMap !== "function") return null;
|
|
687
|
+
var cacheBabelInterop = new WeakMap();
|
|
688
|
+
var cacheNodeInterop = new WeakMap();
|
|
689
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
690
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
691
|
+
})(nodeInterop);
|
|
692
|
+
}
|
|
693
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
694
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
695
|
+
return obj;
|
|
696
|
+
}
|
|
697
|
+
if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
|
|
698
|
+
return {
|
|
699
|
+
default: obj
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
703
|
+
if (cache && cache.has(obj)) {
|
|
704
|
+
return cache.get(obj);
|
|
705
|
+
}
|
|
706
|
+
var newObj = {};
|
|
707
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
708
|
+
for (var key in obj) {
|
|
709
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
710
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
711
|
+
if (desc && (desc.get || desc.set)) {
|
|
712
|
+
Object.defineProperty(newObj, key, desc);
|
|
713
|
+
} else {
|
|
714
|
+
newObj[key] = obj[key];
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
newObj.default = obj;
|
|
719
|
+
if (cache) {
|
|
720
|
+
cache.set(obj, newObj);
|
|
721
|
+
}
|
|
722
|
+
return newObj;
|
|
723
|
+
}
|
|
607
724
|
// GENERATE BY ./scripts/generate.ts
|
|
608
725
|
// DON NOT EDIT IT MANUALLY
|
|
726
|
+
|
|
609
727
|
var ArrowRightOutlined = function ArrowRightOutlined(props, ref) {
|
|
610
728
|
return /*#__PURE__*/React.createElement(_AntdIcon.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
|
|
611
729
|
ref: ref,
|
|
@@ -624,18 +742,19 @@ exports["default"] = _default;
|
|
|
624
742
|
"use strict";
|
|
625
743
|
|
|
626
744
|
|
|
627
|
-
var _interopRequireWildcard = __webpack_require__(7181);
|
|
628
745
|
var _interopRequireDefault = __webpack_require__(1593);
|
|
746
|
+
var _typeof3 = __webpack_require__(7537);
|
|
629
747
|
Object.defineProperty(exports, "__esModule", ({
|
|
630
748
|
value: true
|
|
631
749
|
}));
|
|
632
|
-
exports.warning = warning;
|
|
633
|
-
exports.isIconDefinition = isIconDefinition;
|
|
634
|
-
exports.normalizeAttrs = normalizeAttrs;
|
|
635
750
|
exports.generate = generate;
|
|
636
751
|
exports.getSecondaryColor = getSecondaryColor;
|
|
752
|
+
exports.iconStyles = void 0;
|
|
753
|
+
exports.isIconDefinition = isIconDefinition;
|
|
754
|
+
exports.normalizeAttrs = normalizeAttrs;
|
|
637
755
|
exports.normalizeTwoToneColors = normalizeTwoToneColors;
|
|
638
|
-
exports.useInsertStyles = exports.
|
|
756
|
+
exports.useInsertStyles = exports.svgBaseProps = void 0;
|
|
757
|
+
exports.warning = warning;
|
|
639
758
|
var _objectSpread2 = _interopRequireDefault(__webpack_require__(6906));
|
|
640
759
|
var _typeof2 = _interopRequireDefault(__webpack_require__(7537));
|
|
641
760
|
var _colors = __webpack_require__(6089);
|
|
@@ -643,6 +762,45 @@ var _react = _interopRequireWildcard(__webpack_require__(1024));
|
|
|
643
762
|
var _warning = _interopRequireDefault(__webpack_require__(3193));
|
|
644
763
|
var _dynamicCSS = __webpack_require__(535);
|
|
645
764
|
var _Context = _interopRequireDefault(__webpack_require__(6785));
|
|
765
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
766
|
+
if (typeof WeakMap !== "function") return null;
|
|
767
|
+
var cacheBabelInterop = new WeakMap();
|
|
768
|
+
var cacheNodeInterop = new WeakMap();
|
|
769
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
770
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
771
|
+
})(nodeInterop);
|
|
772
|
+
}
|
|
773
|
+
function _interopRequireWildcard(obj, nodeInterop) {
|
|
774
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
775
|
+
return obj;
|
|
776
|
+
}
|
|
777
|
+
if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") {
|
|
778
|
+
return {
|
|
779
|
+
default: obj
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
783
|
+
if (cache && cache.has(obj)) {
|
|
784
|
+
return cache.get(obj);
|
|
785
|
+
}
|
|
786
|
+
var newObj = {};
|
|
787
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
788
|
+
for (var key in obj) {
|
|
789
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
790
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
791
|
+
if (desc && (desc.get || desc.set)) {
|
|
792
|
+
Object.defineProperty(newObj, key, desc);
|
|
793
|
+
} else {
|
|
794
|
+
newObj[key] = obj[key];
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
newObj.default = obj;
|
|
799
|
+
if (cache) {
|
|
800
|
+
cache.set(obj, newObj);
|
|
801
|
+
}
|
|
802
|
+
return newObj;
|
|
803
|
+
}
|
|
646
804
|
function warning(valid, message) {
|
|
647
805
|
(0, _warning.default)(valid, "[@ant-design/icons] ".concat(message));
|
|
648
806
|
}
|
|
@@ -687,9 +845,9 @@ function normalizeTwoToneColors(twoToneColor) {
|
|
|
687
845
|
return [];
|
|
688
846
|
}
|
|
689
847
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
690
|
-
}
|
|
848
|
+
}
|
|
849
|
+
// These props make sure that the SVG behaviours like general text.
|
|
691
850
|
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
692
|
-
|
|
693
851
|
var svgBaseProps = {
|
|
694
852
|
width: '1em',
|
|
695
853
|
height: '1em',
|
|
@@ -27163,9 +27321,9 @@ function normalizeTwoToneColors(twoToneColor) {
|
|
|
27163
27321
|
return [];
|
|
27164
27322
|
}
|
|
27165
27323
|
return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
|
27166
|
-
}
|
|
27324
|
+
}
|
|
27325
|
+
// These props make sure that the SVG behaviours like general text.
|
|
27167
27326
|
// Reference: https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
|
|
27168
|
-
|
|
27169
27327
|
var svgBaseProps = {
|
|
27170
27328
|
width: '1em',
|
|
27171
27329
|
height: '1em',
|
|
@@ -27278,9 +27436,9 @@ var AntdIcon_excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onC
|
|
|
27278
27436
|
|
|
27279
27437
|
|
|
27280
27438
|
|
|
27281
|
-
// Initial setting
|
|
27282
|
-
// should move it to antd main repo?
|
|
27283
27439
|
|
|
27440
|
+
// Initial setting
|
|
27441
|
+
// should move it to antd main repo?
|
|
27284
27442
|
setTwoToneColor('#1890ff');
|
|
27285
27443
|
var Icon = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
27286
27444
|
var _classNames;
|
|
@@ -27294,8 +27452,9 @@ var Icon = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
|
27294
27452
|
restProps = objectWithoutProperties_objectWithoutProperties(props, AntdIcon_excluded);
|
|
27295
27453
|
var _React$useContext = external_React_.useContext(Context),
|
|
27296
27454
|
_React$useContext$pre = _React$useContext.prefixCls,
|
|
27297
|
-
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre
|
|
27298
|
-
|
|
27455
|
+
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
|
27456
|
+
rootClassName = _React$useContext.rootClassName;
|
|
27457
|
+
var classString = classnames_default()(rootClassName, prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), defineProperty_defineProperty(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === 'loading'), _classNames), className);
|
|
27299
27458
|
var iconTabIndex = tabIndex;
|
|
27300
27459
|
if (iconTabIndex === undefined && onClick) {
|
|
27301
27460
|
iconTabIndex = -1;
|
|
@@ -37541,6 +37700,7 @@ var proFieldParsingText = function proFieldParsingText(text, valueEnumParams, ke
|
|
|
37541
37700
|
return (0,jsx_runtime.jsx)(external_antd_.Space, {
|
|
37542
37701
|
split: ",",
|
|
37543
37702
|
size: 2,
|
|
37703
|
+
wrap: true,
|
|
37544
37704
|
children: text.map(function (value, index) {
|
|
37545
37705
|
return (
|
|
37546
37706
|
// @ts-ignore
|
|
@@ -40813,6 +40973,7 @@ var FieldDatePicker = function FieldDatePicker(_ref2, ref) {
|
|
|
40813
40973
|
|
|
40814
40974
|
// 兼容代码-----------
|
|
40815
40975
|
|
|
40976
|
+
|
|
40816
40977
|
/**
|
|
40817
40978
|
* 数字组件
|
|
40818
40979
|
*
|
|
@@ -40827,6 +40988,8 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
40827
40988
|
placeholder = _ref.placeholder,
|
|
40828
40989
|
renderFormItem = _ref.renderFormItem,
|
|
40829
40990
|
fieldProps = _ref.fieldProps;
|
|
40991
|
+
var intl = useIntl();
|
|
40992
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
40830
40993
|
var proxyChange = (0,external_React_.useCallback)(function (value) {
|
|
40831
40994
|
var _fieldProps$onChange;
|
|
40832
40995
|
var val = value !== null && value !== void 0 ? value : undefined;
|
|
@@ -40867,7 +41030,7 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
40867
41030
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.InputNumber, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
40868
41031
|
ref: ref,
|
|
40869
41032
|
min: 0,
|
|
40870
|
-
placeholder:
|
|
41033
|
+
placeholder: placeholderValue
|
|
40871
41034
|
}, es(fieldProps, ['onChange'])), {}, {
|
|
40872
41035
|
onChange: proxyChange
|
|
40873
41036
|
}));
|
|
@@ -40891,6 +41054,7 @@ var FieldDigit = function FieldDigit(_ref, ref) {
|
|
|
40891
41054
|
|
|
40892
41055
|
// 兼容代码-----------
|
|
40893
41056
|
|
|
41057
|
+
|
|
40894
41058
|
/**
|
|
40895
41059
|
* 数字范围组件
|
|
40896
41060
|
*
|
|
@@ -40911,6 +41075,7 @@ var FieldDigitRange = function FieldDigitRange(_ref, ref) {
|
|
|
40911
41075
|
defaultValue = fieldProps.defaultValue,
|
|
40912
41076
|
onChange = fieldProps.onChange,
|
|
40913
41077
|
id = fieldProps.id;
|
|
41078
|
+
var intl = useIntl();
|
|
40914
41079
|
var _useMergedState = (0,useMergedState/* default */.Z)(function () {
|
|
40915
41080
|
return defaultValue;
|
|
40916
41081
|
}, {
|
|
@@ -40959,7 +41124,7 @@ var FieldDigitRange = function FieldDigitRange(_ref, ref) {
|
|
|
40959
41124
|
newValuePair[index] = changedValue === null ? undefined : changedValue;
|
|
40960
41125
|
setValuePair(newValuePair);
|
|
40961
41126
|
};
|
|
40962
|
-
var placeholderValue = (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.placeholder) || placeholder;
|
|
41127
|
+
var placeholderValue = (fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.placeholder) || placeholder || [intl.getMessage('tableForm.inputPlaceholder', '请输入'), intl.getMessage('tableForm.inputPlaceholder', '请输入')];
|
|
40963
41128
|
var _dom = (0,jsx_runtime.jsxs)(external_antd_.Input.Group, {
|
|
40964
41129
|
compact: true,
|
|
40965
41130
|
onBlur: handleGroupBlur,
|
|
@@ -41081,6 +41246,7 @@ var FieldFromNow = function FieldFromNow(_ref, ref) {
|
|
|
41081
41246
|
|
|
41082
41247
|
// 兼容代码-----------
|
|
41083
41248
|
|
|
41249
|
+
|
|
41084
41250
|
/**
|
|
41085
41251
|
* 数字组件
|
|
41086
41252
|
*
|
|
@@ -41096,6 +41262,8 @@ var FieldImage = /*#__PURE__*/external_React_default().forwardRef(function (_ref
|
|
|
41096
41262
|
fieldProps = _ref.fieldProps,
|
|
41097
41263
|
placeholder = _ref.placeholder,
|
|
41098
41264
|
width = _ref.width;
|
|
41265
|
+
var intl = useIntl();
|
|
41266
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
41099
41267
|
if (type === 'read') {
|
|
41100
41268
|
var dom = (0,jsx_runtime.jsx)(external_antd_.Image, objectSpread2_objectSpread2({
|
|
41101
41269
|
ref: ref,
|
|
@@ -41112,7 +41280,7 @@ var FieldImage = /*#__PURE__*/external_React_default().forwardRef(function (_ref
|
|
|
41112
41280
|
if (type === 'edit' || type === 'update') {
|
|
41113
41281
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.Input, objectSpread2_objectSpread2({
|
|
41114
41282
|
ref: ref,
|
|
41115
|
-
placeholder:
|
|
41283
|
+
placeholder: placeholderValue
|
|
41116
41284
|
}, fieldProps));
|
|
41117
41285
|
if (renderFormItem) {
|
|
41118
41286
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -41347,6 +41515,7 @@ var FieldMoney = function FieldMoney(_ref4, ref) {
|
|
|
41347
41515
|
if (locale && intlMap[locale]) {
|
|
41348
41516
|
intl = intlMap[locale];
|
|
41349
41517
|
}
|
|
41518
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
41350
41519
|
/**
|
|
41351
41520
|
* 获取货币的符号
|
|
41352
41521
|
* 如果 customSymbol 存在直接使用 customSymbol
|
|
@@ -41425,7 +41594,7 @@ var FieldMoney = function FieldMoney(_ref4, ref) {
|
|
|
41425
41594
|
}
|
|
41426
41595
|
return value;
|
|
41427
41596
|
},
|
|
41428
|
-
placeholder:
|
|
41597
|
+
placeholder: placeholderValue
|
|
41429
41598
|
}, es(fieldProps, ['numberFormatOptions', 'precision', 'numberPopoverRender', 'customSymbol', 'moneySymbol', 'visible', 'open'])));
|
|
41430
41599
|
if (renderFormItem) {
|
|
41431
41600
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -41688,6 +41857,7 @@ function getRealTextWithPrecision(realValue) {
|
|
|
41688
41857
|
|
|
41689
41858
|
// 兼容代码-----------
|
|
41690
41859
|
|
|
41860
|
+
|
|
41691
41861
|
/**
|
|
41692
41862
|
* 百分比组件
|
|
41693
41863
|
*
|
|
@@ -41707,6 +41877,8 @@ var FieldPercent = function FieldPercent(_ref, ref) {
|
|
|
41707
41877
|
fieldProps = _ref.fieldProps,
|
|
41708
41878
|
placeholder = _ref.placeholder,
|
|
41709
41879
|
propsShowSymbol = _ref.showSymbol;
|
|
41880
|
+
var intl = useIntl();
|
|
41881
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
41710
41882
|
var realValue = (0,external_React_.useMemo)(function () {
|
|
41711
41883
|
return typeof text === 'string' && text.includes('%') ? lodash_tonumber_default()(text.replace('%', '')) : lodash_tonumber_default()(text);
|
|
41712
41884
|
}, [text]);
|
|
@@ -41754,7 +41926,7 @@ var FieldPercent = function FieldPercent(_ref, ref) {
|
|
|
41754
41926
|
parser: function parser(value) {
|
|
41755
41927
|
return value ? value.replace(/.*\s|,/g, '') : '';
|
|
41756
41928
|
},
|
|
41757
|
-
placeholder:
|
|
41929
|
+
placeholder: placeholderValue
|
|
41758
41930
|
}, fieldProps));
|
|
41759
41931
|
if (renderFormItem) {
|
|
41760
41932
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -41775,6 +41947,7 @@ var FieldPercent = function FieldPercent(_ref, ref) {
|
|
|
41775
41947
|
// 兼容代码-----------
|
|
41776
41948
|
|
|
41777
41949
|
|
|
41950
|
+
|
|
41778
41951
|
//------------
|
|
41779
41952
|
function getProgressStatus(text) {
|
|
41780
41953
|
if (text === 100) {
|
|
@@ -41801,6 +41974,8 @@ var FieldProgress = function FieldProgress(_ref, ref) {
|
|
|
41801
41974
|
renderFormItem = _ref.renderFormItem,
|
|
41802
41975
|
fieldProps = _ref.fieldProps,
|
|
41803
41976
|
placeholder = _ref.placeholder;
|
|
41977
|
+
var intl = useIntl();
|
|
41978
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
41804
41979
|
var realValue = (0,external_React_.useMemo)(function () {
|
|
41805
41980
|
return typeof text === 'string' && text.includes('%') ? lodash_tonumber_default()(text.replace('%', '')) : lodash_tonumber_default()(text);
|
|
41806
41981
|
}, [text]);
|
|
@@ -41826,7 +42001,7 @@ var FieldProgress = function FieldProgress(_ref, ref) {
|
|
|
41826
42001
|
if (mode === 'edit' || mode === 'update') {
|
|
41827
42002
|
var _dom = (0,jsx_runtime.jsx)(external_antd_.InputNumber, objectSpread2_objectSpread2({
|
|
41828
42003
|
ref: ref,
|
|
41829
|
-
placeholder:
|
|
42004
|
+
placeholder: placeholderValue
|
|
41830
42005
|
}, fieldProps));
|
|
41831
42006
|
if (renderFormItem) {
|
|
41832
42007
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -42066,6 +42241,7 @@ var FieldRate = function FieldRate(_ref, ref) {
|
|
|
42066
42241
|
|
|
42067
42242
|
// 兼容代码-----------
|
|
42068
42243
|
|
|
42244
|
+
|
|
42069
42245
|
/**
|
|
42070
42246
|
* 格式化秒
|
|
42071
42247
|
*
|
|
@@ -42102,6 +42278,8 @@ var Second = function Second(_ref, ref) {
|
|
|
42102
42278
|
renderFormItem = _ref.renderFormItem,
|
|
42103
42279
|
fieldProps = _ref.fieldProps,
|
|
42104
42280
|
placeholder = _ref.placeholder;
|
|
42281
|
+
var intl = useIntl();
|
|
42282
|
+
var placeholderValue = placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入');
|
|
42105
42283
|
if (type === 'read') {
|
|
42106
42284
|
var secondText = formatSecond(Number(text));
|
|
42107
42285
|
var dom = (0,jsx_runtime.jsx)("span", {
|
|
@@ -42122,7 +42300,7 @@ var Second = function Second(_ref, ref) {
|
|
|
42122
42300
|
style: {
|
|
42123
42301
|
width: '100%'
|
|
42124
42302
|
},
|
|
42125
|
-
placeholder:
|
|
42303
|
+
placeholder: placeholderValue
|
|
42126
42304
|
}, fieldProps));
|
|
42127
42305
|
if (renderFormItem) {
|
|
42128
42306
|
return renderFormItem(text, objectSpread2_objectSpread2({
|
|
@@ -42641,6 +42819,7 @@ var TreeSelect_excluded = ["radioType", "renderFormItem", "mode", "light", "labe
|
|
|
42641
42819
|
// 兼容代码-----------
|
|
42642
42820
|
|
|
42643
42821
|
|
|
42822
|
+
|
|
42644
42823
|
/**
|
|
42645
42824
|
* Tree select
|
|
42646
42825
|
* A function that returns a React component.
|
|
@@ -42673,6 +42852,7 @@ var FieldTreeSelect = function FieldTreeSelect(_ref, ref) {
|
|
|
42673
42852
|
propsSearchValue = _ref2.searchValue,
|
|
42674
42853
|
fieldProps = objectWithoutProperties_objectWithoutProperties(_ref2, TreeSelect_excluded2);
|
|
42675
42854
|
var size = (0,external_React_.useContext)(external_antd_.ConfigProvider.SizeContext);
|
|
42855
|
+
var intl = useIntl();
|
|
42676
42856
|
var _useFieldFetchData = useFieldFetchData(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, rest), {}, {
|
|
42677
42857
|
defaultKeyWords: propsSearchValue
|
|
42678
42858
|
})),
|
|
@@ -42752,6 +42932,7 @@ var FieldTreeSelect = function FieldTreeSelect(_ref, ref) {
|
|
|
42752
42932
|
onDropdownVisibleChange: setOpen,
|
|
42753
42933
|
ref: treeSelectRef,
|
|
42754
42934
|
dropdownMatchSelectWidth: !light,
|
|
42935
|
+
placeholder: intl.getMessage('tableForm.selectPlaceholder', '请选择'),
|
|
42755
42936
|
tagRender: light ? function (item) {
|
|
42756
42937
|
var _fieldProps$value2;
|
|
42757
42938
|
if (valuesLength < 2) return (0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
@@ -42877,7 +43058,8 @@ var localeData_default = /*#__PURE__*/__webpack_require__.n(localeData);
|
|
|
42877
43058
|
|
|
42878
43059
|
|
|
42879
43060
|
|
|
42880
|
-
var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"]
|
|
43061
|
+
var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "value", "readonly"],
|
|
43062
|
+
es_excluded2 = ["placeholder"];
|
|
42881
43063
|
|
|
42882
43064
|
|
|
42883
43065
|
|
|
@@ -43277,7 +43459,7 @@ var defaultRenderText = function defaultRenderText(dataValue, valueType, props,
|
|
|
43277
43459
|
};
|
|
43278
43460
|
|
|
43279
43461
|
var ProFieldComponent = function ProFieldComponent(_ref, ref) {
|
|
43280
|
-
var _ref2, _fieldProps$value, _ref3;
|
|
43462
|
+
var _ref2, _fieldProps$value, _ref3, _rest$placeholder, _rest$placeholder2;
|
|
43281
43463
|
var text = _ref.text,
|
|
43282
43464
|
_ref$valueType = _ref.valueType,
|
|
43283
43465
|
valueType = _ref$valueType === void 0 ? 'text' : _ref$valueType,
|
|
@@ -43288,7 +43470,6 @@ var ProFieldComponent = function ProFieldComponent(_ref, ref) {
|
|
|
43288
43470
|
value = _ref.value,
|
|
43289
43471
|
readonly = _ref.readonly,
|
|
43290
43472
|
rest = objectWithoutProperties_objectWithoutProperties(_ref, es_excluded);
|
|
43291
|
-
var intl = useIntl();
|
|
43292
43473
|
var context = (0,external_React_.useContext)(provider_es);
|
|
43293
43474
|
var fieldProps = (value !== undefined || _onChange || (rest === null || rest === void 0 ? void 0 : rest.fieldProps)) && objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
43294
43475
|
value: value
|
|
@@ -43303,21 +43484,23 @@ var ProFieldComponent = function ProFieldComponent(_ref, ref) {
|
|
|
43303
43484
|
}
|
|
43304
43485
|
});
|
|
43305
43486
|
return (0,jsx_runtime.jsx)((external_React_default()).Fragment, {
|
|
43306
|
-
children: defaultRenderText(mode === 'edit' ? (_ref2 = (_fieldProps$value = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.value) !== null && _fieldProps$value !== void 0 ? _fieldProps$value : text) !== null && _ref2 !== void 0 ? _ref2 : '' : (_ref3 = text !== null && text !== void 0 ? text : fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.value) !== null && _ref3 !== void 0 ? _ref3 : '', valueType || 'text', objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
43487
|
+
children: defaultRenderText(mode === 'edit' ? (_ref2 = (_fieldProps$value = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.value) !== null && _fieldProps$value !== void 0 ? _fieldProps$value : text) !== null && _ref2 !== void 0 ? _ref2 : '' : (_ref3 = text !== null && text !== void 0 ? text : fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.value) !== null && _ref3 !== void 0 ? _ref3 : '', valueType || 'text', omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
43307
43488
|
ref: ref
|
|
43308
43489
|
}, rest), {}, {
|
|
43309
43490
|
mode: readonly ? 'read' : mode,
|
|
43310
|
-
renderFormItem: renderFormItem ? function () {
|
|
43311
|
-
var
|
|
43491
|
+
renderFormItem: renderFormItem ? function (curText, props, dom) {
|
|
43492
|
+
var _placeholder = props.placeholder,
|
|
43493
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, es_excluded2);
|
|
43494
|
+
var newDom = renderFormItem(curText, restProps, dom);
|
|
43312
43495
|
// renderFormItem 之后的dom可能没有props,这里会帮忙注入一下
|
|
43313
|
-
if ( /*#__PURE__*/external_React_default().isValidElement(newDom)) return /*#__PURE__*/external_React_default().cloneElement(newDom, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
|
|
43314
|
-
placeholder: rest.placeholder || intl.getMessage('tableForm.inputPlaceholder', '请输入')
|
|
43315
|
-
}, fieldProps), newDom.props || {}));
|
|
43496
|
+
if ( /*#__PURE__*/external_React_default().isValidElement(newDom)) return /*#__PURE__*/external_React_default().cloneElement(newDom, objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, fieldProps), newDom.props || {}));
|
|
43316
43497
|
return newDom;
|
|
43317
43498
|
} : undefined,
|
|
43318
|
-
placeholder: rest.placeholder ||
|
|
43319
|
-
fieldProps: pickProProps(fieldProps)
|
|
43320
|
-
|
|
43499
|
+
placeholder: renderFormItem ? undefined : (_rest$placeholder = rest === null || rest === void 0 ? void 0 : rest.placeholder) !== null && _rest$placeholder !== void 0 ? _rest$placeholder : fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.placeholder,
|
|
43500
|
+
fieldProps: pickProProps(omitUndefined(objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, fieldProps), {}, {
|
|
43501
|
+
placeholder: renderFormItem ? undefined : (_rest$placeholder2 = rest === null || rest === void 0 ? void 0 : rest.placeholder) !== null && _rest$placeholder2 !== void 0 ? _rest$placeholder2 : fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.placeholder
|
|
43502
|
+
})))
|
|
43503
|
+
})), context.valueTypeMap || {})
|
|
43321
43504
|
});
|
|
43322
43505
|
};
|
|
43323
43506
|
var ProField = /*#__PURE__*/external_React_default().forwardRef(ProFieldComponent);
|
|
@@ -50986,7 +51169,7 @@ var useFetchData_useFetchData = function useFetchData(getData, options) {
|
|
|
50986
51169
|
|
|
50987
51170
|
|
|
50988
51171
|
var descriptions_es_excluded = ["valueEnum", "render", "renderText", "mode", "plain", "dataIndex", "request", "params", "editable"],
|
|
50989
|
-
|
|
51172
|
+
descriptions_es_excluded2 = ["request", "columns", "params", "dataSource", "onDataSourceChange", "formProps", "editable", "loading", "onLoadingChange", "actionRef", "onRequestError"];
|
|
50990
51173
|
|
|
50991
51174
|
|
|
50992
51175
|
|
|
@@ -51210,7 +51393,7 @@ var ProDescriptions = function ProDescriptions(props) {
|
|
|
51210
51393
|
onLoadingChange = props.onLoadingChange,
|
|
51211
51394
|
actionRef = props.actionRef,
|
|
51212
51395
|
onRequestError = props.onRequestError,
|
|
51213
|
-
rest = objectWithoutProperties_objectWithoutProperties(props,
|
|
51396
|
+
rest = objectWithoutProperties_objectWithoutProperties(props, descriptions_es_excluded2);
|
|
51214
51397
|
var context = (0,external_React_.useContext)(external_antd_.ConfigProvider.ConfigContext);
|
|
51215
51398
|
var action = es_useFetchData( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
51216
51399
|
var data;
|
|
@@ -53202,8 +53385,9 @@ var Icon_Icon = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
|
53202
53385
|
useInsertStyles();
|
|
53203
53386
|
var _React$useContext = external_React_.useContext(Context),
|
|
53204
53387
|
_React$useContext$pre = _React$useContext.prefixCls,
|
|
53205
|
-
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre
|
|
53206
|
-
|
|
53388
|
+
prefixCls = _React$useContext$pre === void 0 ? 'anticon' : _React$useContext$pre,
|
|
53389
|
+
rootClassName = _React$useContext.rootClassName;
|
|
53390
|
+
var classString = classnames_default()(rootClassName, prefixCls, className);
|
|
53207
53391
|
var svgClassString = classnames_default()(defineProperty_defineProperty({}, "".concat(prefixCls, "-spin"), !!spin));
|
|
53208
53392
|
var svgStyle = rotate ? {
|
|
53209
53393
|
msTransform: "rotate(".concat(rotate, "deg)"),
|
|
@@ -53216,8 +53400,8 @@ var Icon_Icon = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
|
53216
53400
|
});
|
|
53217
53401
|
if (!viewBox) {
|
|
53218
53402
|
delete innerSvgProps.viewBox;
|
|
53219
|
-
}
|
|
53220
|
-
|
|
53403
|
+
}
|
|
53404
|
+
// component > children
|
|
53221
53405
|
var renderInnerNode = function renderInnerNode() {
|
|
53222
53406
|
if (Component) {
|
|
53223
53407
|
return /*#__PURE__*/external_React_.createElement(Component, objectSpread2_objectSpread2({}, innerSvgProps), children);
|
|
@@ -53285,7 +53469,6 @@ function create() {
|
|
|
53285
53469
|
* The Custom Icon will create a <script/>
|
|
53286
53470
|
* that loads SVG symbols and insert the SVG Element into the document body.
|
|
53287
53471
|
*/
|
|
53288
|
-
|
|
53289
53472
|
if (scriptUrl && typeof document !== 'undefined' && typeof window !== 'undefined' && typeof document.createElement === 'function') {
|
|
53290
53473
|
if (Array.isArray(scriptUrl)) {
|
|
53291
53474
|
// 因为iconfont资源会把svg插入before,所以前加载相同type会覆盖后加载,为了数组覆盖顺序,倒叙插入
|
|
@@ -53297,8 +53480,8 @@ function create() {
|
|
|
53297
53480
|
var Iconfont = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
53298
53481
|
var type = props.type,
|
|
53299
53482
|
children = props.children,
|
|
53300
|
-
restProps = objectWithoutProperties_objectWithoutProperties(props, IconFont_excluded);
|
|
53301
|
-
|
|
53483
|
+
restProps = objectWithoutProperties_objectWithoutProperties(props, IconFont_excluded);
|
|
53484
|
+
// children > type
|
|
53302
53485
|
var content = null;
|
|
53303
53486
|
if (props.type) {
|
|
53304
53487
|
content = /*#__PURE__*/external_React_.createElement("use", {
|
|
@@ -63350,17 +63533,16 @@ var style_genProListStyle = function genProListStyle(token) {
|
|
|
63350
63533
|
animationTimingFunction: 'linear',
|
|
63351
63534
|
animationIterationCount: 'infinite'
|
|
63352
63535
|
}
|
|
63353
|
-
})
|
|
63354
|
-
|
|
63355
|
-
|
|
63356
|
-
|
|
63357
|
-
}
|
|
63536
|
+
})
|
|
63537
|
+
}, defineProperty_defineProperty(_token$componentCls2, "td".concat(token.antCls, "-table-cell"), {
|
|
63538
|
+
'>a': {
|
|
63539
|
+
fontSize: token.fontSize
|
|
63358
63540
|
}
|
|
63359
|
-
}, defineProperty_defineProperty(_token$componentCls2, "".concat(token.antCls, "-table").concat(token.antCls, "-table-tbody").concat(token.antCls, "-table-wrapper:only-child").concat(token.antCls, "-table"), {
|
|
63541
|
+
}), defineProperty_defineProperty(_token$componentCls2, "".concat(token.antCls, "-table").concat(token.antCls, "-table-tbody").concat(token.antCls, "-table-wrapper:only-child").concat(token.antCls, "-table"), {
|
|
63360
63542
|
marginBlock: 0,
|
|
63361
63543
|
marginInline: 0
|
|
63362
63544
|
}), defineProperty_defineProperty(_token$componentCls2, "".concat(token.antCls, "-table").concat(token.antCls, "-table-middle ").concat(token.componentCls), {
|
|
63363
|
-
marginBlock:
|
|
63545
|
+
marginBlock: 0,
|
|
63364
63546
|
marginInline: -8
|
|
63365
63547
|
}), defineProperty_defineProperty(_token$componentCls2, '& &-search', (_search = {
|
|
63366
63548
|
marginBlockEnd: '16px',
|
|
@@ -70238,7 +70420,7 @@ es_Checkbox.defaultProps = {
|
|
|
70238
70420
|
var context_defaultIconPrefixCls = 'anticon';
|
|
70239
70421
|
var defaultGetPrefixCls = function defaultGetPrefixCls(suffixCls, customizePrefixCls) {
|
|
70240
70422
|
if (customizePrefixCls) return customizePrefixCls;
|
|
70241
|
-
return suffixCls ? "ant-"
|
|
70423
|
+
return suffixCls ? "ant-" + suffixCls : 'ant';
|
|
70242
70424
|
};
|
|
70243
70425
|
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
|
|
70244
70426
|
var context_ConfigContext = /*#__PURE__*/external_React_.createContext({
|
|
@@ -70461,7 +70643,7 @@ var genLinkStyle = function genLinkStyle(token) {
|
|
|
70461
70643
|
backgroundColor: 'transparent',
|
|
70462
70644
|
outline: 'none',
|
|
70463
70645
|
cursor: 'pointer',
|
|
70464
|
-
transition: "color "
|
|
70646
|
+
transition: "color " + token.motionDurationSlow,
|
|
70465
70647
|
'-webkit-text-decoration-skip': 'objects',
|
|
70466
70648
|
'&:hover': {
|
|
70467
70649
|
color: token.colorLinkHover
|
|
@@ -70484,7 +70666,7 @@ var genLinkStyle = function genLinkStyle(token) {
|
|
|
70484
70666
|
var genCommonStyle = function genCommonStyle(token, componentPrefixCls) {
|
|
70485
70667
|
var fontFamily = token.fontFamily,
|
|
70486
70668
|
fontSize = token.fontSize;
|
|
70487
|
-
var rootPrefixSelector = "[class^=\""
|
|
70669
|
+
var rootPrefixSelector = "[class^=\"" + componentPrefixCls + "\"], [class*=\" " + componentPrefixCls + "\"]";
|
|
70488
70670
|
return defineProperty_defineProperty({}, rootPrefixSelector, defineProperty_defineProperty({
|
|
70489
70671
|
fontFamily: fontFamily,
|
|
70490
70672
|
fontSize: fontSize,
|
|
@@ -70501,7 +70683,7 @@ var genCommonStyle = function genCommonStyle(token, componentPrefixCls) {
|
|
|
70501
70683
|
};
|
|
70502
70684
|
var genFocusOutline = function genFocusOutline(token) {
|
|
70503
70685
|
return {
|
|
70504
|
-
outline:
|
|
70686
|
+
outline: token.lineWidth * 4 + "px solid " + token.colorPrimaryBorder,
|
|
70505
70687
|
outlineOffset: 1,
|
|
70506
70688
|
transition: 'outline-offset 0s, outline 0s'
|
|
70507
70689
|
};
|
|
@@ -70512,7 +70694,7 @@ var genFocusStyle = function genFocusStyle(token) {
|
|
|
70512
70694
|
};
|
|
70513
70695
|
};
|
|
70514
70696
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/version.js
|
|
70515
|
-
/* harmony default export */ var version = ('5.0.0
|
|
70697
|
+
/* harmony default export */ var version = ('5.0.0');
|
|
70516
70698
|
;// CONCATENATED MODULE: ./node_modules/antd/es/version/index.js
|
|
70517
70699
|
/* eslint import/no-unresolved: 0 */
|
|
70518
70700
|
// @ts-ignore
|
|
@@ -70584,6 +70766,7 @@ var seedToken = extends_extends(extends_extends({}, defaultPresetColors), {
|
|
|
70584
70766
|
motionEaseOut: 'cubic-bezier(0.215, 0.61, 0.355, 1)',
|
|
70585
70767
|
motionEaseInOut: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
70586
70768
|
motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
|
|
70769
|
+
motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
|
|
70587
70770
|
motionEaseInQuint: "cubic-bezier(0.645, 0.045, 0.355, 1)",
|
|
70588
70771
|
motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
|
|
70589
70772
|
// Radius
|
|
@@ -70756,9 +70939,9 @@ function genCommonMapToken(token) {
|
|
|
70756
70939
|
var fontSizes = getFontSizes(fontSize);
|
|
70757
70940
|
return extends_extends({
|
|
70758
70941
|
// motion
|
|
70759
|
-
motionDurationFast:
|
|
70760
|
-
motionDurationMid:
|
|
70761
|
-
motionDurationSlow:
|
|
70942
|
+
motionDurationFast: (motionBase + motionUnit).toFixed(1) + "s",
|
|
70943
|
+
motionDurationMid: (motionBase + motionUnit * 2).toFixed(1) + "s",
|
|
70944
|
+
motionDurationSlow: (motionBase + motionUnit * 3).toFixed(1) + "s",
|
|
70762
70945
|
// font
|
|
70763
70946
|
fontSizes: fontSizes.map(function (fs) {
|
|
70764
70947
|
return fs.size;
|
|
@@ -70836,7 +71019,7 @@ function derivative(token) {
|
|
|
70836
71019
|
var colorPalettes = Object.keys(defaultPresetColors).map(function (colorKey) {
|
|
70837
71020
|
var colors = (0,index_esm.generate)(token[colorKey]);
|
|
70838
71021
|
return new Array(10).fill(1).reduce(function (prev, _, i) {
|
|
70839
|
-
prev[
|
|
71022
|
+
prev[colorKey + "-" + (i + 1)] = colors[i];
|
|
70840
71023
|
return prev;
|
|
70841
71024
|
}, {});
|
|
70842
71025
|
}).reduce(function (prev, cur) {
|
|
@@ -71036,7 +71219,7 @@ function formatToken(derivativeToken) {
|
|
|
71036
71219
|
screenXXLMax: screenXXL - 1,
|
|
71037
71220
|
// FIXME: component box-shadow, should be removed
|
|
71038
71221
|
boxShadowPopoverArrow: "3px 3px 7px rgba(0, 0, 0, 0.1)",
|
|
71039
|
-
boxShadowCard: "\n 0 1px 2px -2px "
|
|
71222
|
+
boxShadowCard: "\n 0 1px 2px -2px " + new TinyColor('rgba(0, 0, 0, 0.16)').toRgbString() + ",\n 0 3px 6px 0 " + new TinyColor('rgba(0, 0, 0, 0.12)').toRgbString() + ",\n 0 5px 12px 4px " + new TinyColor('rgba(0, 0, 0, 0.09)').toRgbString() + "\n ",
|
|
71040
71223
|
boxShadowDrawerRight: "\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
71041
71224
|
boxShadowDrawerLeft: "\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
71042
71225
|
boxShadowDrawerUp: "\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",
|
|
@@ -71079,7 +71262,7 @@ function theme_useToken() {
|
|
|
71079
71262
|
hashed = _React$useContext.hashed,
|
|
71080
71263
|
theme = _React$useContext.theme,
|
|
71081
71264
|
components = _React$useContext.components;
|
|
71082
|
-
var salt =
|
|
71265
|
+
var salt = saltPrefix + "-" + (hashed || '');
|
|
71083
71266
|
var mergedTheme = theme || theme_defaultTheme;
|
|
71084
71267
|
var _useCacheToken = useCacheToken(mergedTheme, [seed, rootDesignToken], {
|
|
71085
71268
|
salt: salt,
|
|
@@ -71135,12 +71318,12 @@ function genComponentStyleHook(component, styleFn, getDefaultToken) {
|
|
|
71135
71318
|
flush = _statisticToken.flush;
|
|
71136
71319
|
var defaultComponentToken = typeof getDefaultToken === 'function' ? getDefaultToken(proxyToken) : getDefaultToken;
|
|
71137
71320
|
var mergedComponentToken = extends_extends(extends_extends({}, defaultComponentToken), token[component]);
|
|
71138
|
-
var componentCls = "."
|
|
71321
|
+
var componentCls = "." + prefixCls;
|
|
71139
71322
|
var mergedToken = statistic_merge(proxyToken, {
|
|
71140
71323
|
componentCls: componentCls,
|
|
71141
71324
|
prefixCls: prefixCls,
|
|
71142
|
-
iconCls: "."
|
|
71143
|
-
antCls: "."
|
|
71325
|
+
iconCls: "." + iconPrefixCls,
|
|
71326
|
+
antCls: "." + rootPrefixCls
|
|
71144
71327
|
}, mergedComponentToken);
|
|
71145
71328
|
var styleInterpolation = styleFn(mergedToken, {
|
|
71146
71329
|
hashId: hashId,
|
|
@@ -71173,12 +71356,12 @@ var antCheckboxEffect = new Keyframes('antCheckboxEffect', {
|
|
|
71173
71356
|
});
|
|
71174
71357
|
// ============================== Styles ==============================
|
|
71175
71358
|
var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
71176
|
-
var _extends2,
|
|
71359
|
+
var _extends2, _ref2, _ref5, _ref6, _ref8, _ref9, _ref10;
|
|
71177
71360
|
var checkboxCls = token.checkboxCls;
|
|
71178
|
-
var wrapperCls =
|
|
71179
|
-
return [(
|
|
71361
|
+
var wrapperCls = checkboxCls + "-wrapper";
|
|
71362
|
+
return [(_ref2 = {}, defineProperty_defineProperty(_ref2, checkboxCls + "-group", extends_extends(extends_extends({}, style_resetComponent(token)), {
|
|
71180
71363
|
display: 'inline-flex'
|
|
71181
|
-
})), defineProperty_defineProperty(
|
|
71364
|
+
})), defineProperty_defineProperty(_ref2, wrapperCls, extends_extends(extends_extends({}, style_resetComponent(token)), {
|
|
71182
71365
|
display: 'inline-flex',
|
|
71183
71366
|
alignItems: 'baseline',
|
|
71184
71367
|
lineHeight: 'unset',
|
|
@@ -71200,13 +71383,13 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71200
71383
|
height: 14 // FIXME: magic
|
|
71201
71384
|
}
|
|
71202
71385
|
}
|
|
71203
|
-
})), defineProperty_defineProperty(
|
|
71386
|
+
})), defineProperty_defineProperty(_ref2, checkboxCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
71204
71387
|
top: '0.2em',
|
|
71205
71388
|
position: 'relative',
|
|
71206
71389
|
whiteSpace: 'nowrap',
|
|
71207
71390
|
lineHeight: 1,
|
|
71208
71391
|
cursor: 'pointer'
|
|
71209
|
-
}, defineProperty_defineProperty(_extends2,
|
|
71392
|
+
}, defineProperty_defineProperty(_extends2, checkboxCls + "-input", defineProperty_defineProperty({
|
|
71210
71393
|
position: 'absolute',
|
|
71211
71394
|
inset: 0,
|
|
71212
71395
|
zIndex: 1,
|
|
@@ -71214,7 +71397,7 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71214
71397
|
height: '100%',
|
|
71215
71398
|
cursor: 'pointer',
|
|
71216
71399
|
opacity: 0
|
|
71217
|
-
}, "&:focus-visible + "
|
|
71400
|
+
}, "&:focus-visible + " + checkboxCls + "-inner", extends_extends({}, genFocusOutline(token)))), defineProperty_defineProperty(_extends2, checkboxCls + "-inner", {
|
|
71218
71401
|
boxSizing: 'border-box',
|
|
71219
71402
|
position: 'relative',
|
|
71220
71403
|
top: 0,
|
|
@@ -71224,10 +71407,10 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71224
71407
|
height: token.checkboxSize,
|
|
71225
71408
|
direction: 'ltr',
|
|
71226
71409
|
backgroundColor: token.colorBgContainer,
|
|
71227
|
-
border:
|
|
71410
|
+
border: token.lineWidth + "px " + token.lineType + " " + token.colorBorder,
|
|
71228
71411
|
borderRadius: token.borderRadiusSM,
|
|
71229
71412
|
borderCollapse: 'separate',
|
|
71230
|
-
transition: "all "
|
|
71413
|
+
transition: "all " + token.motionDurationSlow,
|
|
71231
71414
|
'&:after': {
|
|
71232
71415
|
boxSizing: 'border-box',
|
|
71233
71416
|
position: 'absolute',
|
|
@@ -71236,21 +71419,21 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71236
71419
|
display: 'table',
|
|
71237
71420
|
width: token.checkboxSize / 14 * 5,
|
|
71238
71421
|
height: token.checkboxSize / 14 * 8,
|
|
71239
|
-
border:
|
|
71422
|
+
border: token.lineWidthBold + "px solid " + token.colorWhite,
|
|
71240
71423
|
borderTop: 0,
|
|
71241
71424
|
borderInlineStart: 0,
|
|
71242
71425
|
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
|
|
71243
71426
|
opacity: 0,
|
|
71244
|
-
|
|
71245
|
-
|
|
71427
|
+
content: '""',
|
|
71428
|
+
transition: "all " + token.motionDurationFast + " " + token.motionEaseInBack + ", opacity " + token.motionDurationFast
|
|
71246
71429
|
}
|
|
71247
71430
|
}), defineProperty_defineProperty(_extends2, '& + span', {
|
|
71248
71431
|
paddingInlineStart: token.paddingXS,
|
|
71249
71432
|
paddingInlineEnd: token.paddingXS
|
|
71250
|
-
}), _extends2))),
|
|
71433
|
+
}), _extends2))), _ref2),
|
|
71251
71434
|
// ================= Indeterminate =================
|
|
71252
71435
|
defineProperty_defineProperty({}, checkboxCls, {
|
|
71253
|
-
'&-indeterminate': defineProperty_defineProperty({},
|
|
71436
|
+
'&-indeterminate': defineProperty_defineProperty({}, checkboxCls + "-inner", {
|
|
71254
71437
|
'&:after': {
|
|
71255
71438
|
top: '50%',
|
|
71256
71439
|
insetInlineStart: '50%',
|
|
@@ -71263,20 +71446,20 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71263
71446
|
content: '""'
|
|
71264
71447
|
}
|
|
71265
71448
|
})
|
|
71266
|
-
}), (
|
|
71449
|
+
}), (_ref5 = {}, defineProperty_defineProperty(_ref5, wrapperCls + ":hover " + checkboxCls + ":after", {
|
|
71267
71450
|
visibility: 'visible'
|
|
71268
|
-
}), defineProperty_defineProperty(
|
|
71451
|
+
}), defineProperty_defineProperty(_ref5, "\n " + wrapperCls + ":not(" + wrapperCls + "-disabled),\n " + checkboxCls + ":not(" + checkboxCls + "-disabled)\n ", defineProperty_defineProperty({}, "&:hover " + checkboxCls + "-inner", {
|
|
71269
71452
|
borderColor: token.colorPrimary
|
|
71270
|
-
})),
|
|
71453
|
+
})), _ref5), (_ref8 = {}, defineProperty_defineProperty(_ref8, checkboxCls + "-checked", (_ref6 = {}, defineProperty_defineProperty(_ref6, checkboxCls + "-inner", {
|
|
71271
71454
|
backgroundColor: token.colorPrimary,
|
|
71272
71455
|
borderColor: token.colorPrimary,
|
|
71273
71456
|
zIndex: 2,
|
|
71274
71457
|
'&:after': {
|
|
71275
71458
|
opacity: 1,
|
|
71276
71459
|
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
|
|
71277
|
-
transition: "all "
|
|
71460
|
+
transition: "all " + token.motionDurationMid + " " + token.motionEaseOutBack + " " + token.motionDurationFast
|
|
71278
71461
|
}
|
|
71279
|
-
}), defineProperty_defineProperty(
|
|
71462
|
+
}), defineProperty_defineProperty(_ref6, '&:after', {
|
|
71280
71463
|
position: 'absolute',
|
|
71281
71464
|
zIndex: 1,
|
|
71282
71465
|
top: 0,
|
|
@@ -71285,41 +71468,41 @@ var genCheckboxStyle = function genCheckboxStyle(token) {
|
|
|
71285
71468
|
height: '100%',
|
|
71286
71469
|
borderRadius: token.borderRadiusSM,
|
|
71287
71470
|
visibility: 'hidden',
|
|
71288
|
-
border:
|
|
71471
|
+
border: token.lineWidthBold + "px solid " + token.colorPrimary,
|
|
71289
71472
|
animationName: antCheckboxEffect,
|
|
71290
71473
|
animationDuration: token.motionDurationSlow,
|
|
71291
71474
|
animationTimingFunction: 'ease-in-out',
|
|
71292
71475
|
animationFillMode: 'backwards',
|
|
71293
71476
|
content: '""'
|
|
71294
|
-
}),
|
|
71477
|
+
}), _ref6)), defineProperty_defineProperty(_ref8, "\n " + wrapperCls + "-checked:not(" + wrapperCls + "-disabled),\n " + checkboxCls + "-checked:not(" + checkboxCls + "-disabled)\n ", defineProperty_defineProperty({}, "&:hover " + checkboxCls + "-inner", {
|
|
71295
71478
|
backgroundColor: token.colorPrimaryHover,
|
|
71296
71479
|
borderColor: 'transparent'
|
|
71297
|
-
})),
|
|
71480
|
+
})), _ref8), (_ref10 = {}, defineProperty_defineProperty(_ref10, wrapperCls + "-disabled", {
|
|
71298
71481
|
cursor: 'not-allowed'
|
|
71299
|
-
}), defineProperty_defineProperty(
|
|
71482
|
+
}), defineProperty_defineProperty(_ref10, checkboxCls + "-disabled", (_ref9 = {}, defineProperty_defineProperty(_ref9, "&, " + checkboxCls + "-input", {
|
|
71300
71483
|
cursor: 'not-allowed'
|
|
71301
|
-
}), defineProperty_defineProperty(
|
|
71484
|
+
}), defineProperty_defineProperty(_ref9, checkboxCls + "-inner", {
|
|
71302
71485
|
background: token.colorBgContainerDisabled,
|
|
71303
71486
|
borderColor: token.colorBorder,
|
|
71304
71487
|
'&:after': {
|
|
71305
71488
|
borderColor: token.colorTextDisabled
|
|
71306
71489
|
}
|
|
71307
|
-
}), defineProperty_defineProperty(
|
|
71490
|
+
}), defineProperty_defineProperty(_ref9, '&:after', {
|
|
71308
71491
|
display: 'none'
|
|
71309
|
-
}), defineProperty_defineProperty(
|
|
71492
|
+
}), defineProperty_defineProperty(_ref9, '& + span', {
|
|
71310
71493
|
color: token.colorTextDisabled
|
|
71311
|
-
}),
|
|
71494
|
+
}), _ref9)), _ref10)];
|
|
71312
71495
|
};
|
|
71313
71496
|
// ============================== Export ==============================
|
|
71314
71497
|
function getStyle(prefixCls, token) {
|
|
71315
71498
|
var checkboxToken = statistic_merge(token, {
|
|
71316
|
-
checkboxCls: "."
|
|
71499
|
+
checkboxCls: "." + prefixCls,
|
|
71317
71500
|
checkboxSize: token.controlInteractiveSize
|
|
71318
71501
|
});
|
|
71319
71502
|
return [genCheckboxStyle(checkboxToken)];
|
|
71320
71503
|
}
|
|
71321
|
-
/* harmony default export */ var checkbox_style = (genComponentStyleHook('Checkbox', function (token,
|
|
71322
|
-
var prefixCls =
|
|
71504
|
+
/* harmony default export */ var checkbox_style = (genComponentStyleHook('Checkbox', function (token, _ref11) {
|
|
71505
|
+
var prefixCls = _ref11.prefixCls;
|
|
71323
71506
|
return [getStyle(prefixCls, token)];
|
|
71324
71507
|
}));
|
|
71325
71508
|
;// CONCATENATED MODULE: ./node_modules/antd/es/checkbox/Group.js
|
|
@@ -71418,7 +71601,7 @@ var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
|
|
|
71418
71601
|
}));
|
|
71419
71602
|
};
|
|
71420
71603
|
var prefixCls = getPrefixCls('checkbox', customizePrefixCls);
|
|
71421
|
-
var groupPrefixCls =
|
|
71604
|
+
var groupPrefixCls = prefixCls + "-group";
|
|
71422
71605
|
var _useStyle = checkbox_style(prefixCls),
|
|
71423
71606
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
71424
71607
|
wrapSSR = _useStyle2[0],
|
|
@@ -71433,7 +71616,7 @@ var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
|
|
|
71433
71616
|
value: option.value,
|
|
71434
71617
|
checked: value.includes(option.value),
|
|
71435
71618
|
onChange: option.onChange,
|
|
71436
|
-
className:
|
|
71619
|
+
className: groupPrefixCls + "-item",
|
|
71437
71620
|
style: option.style
|
|
71438
71621
|
}, option.label);
|
|
71439
71622
|
});
|
|
@@ -71448,7 +71631,7 @@ var InternalCheckboxGroup = function InternalCheckboxGroup(_a, ref) {
|
|
|
71448
71631
|
registerValue: registerValue,
|
|
71449
71632
|
cancelValue: cancelValue
|
|
71450
71633
|
};
|
|
71451
|
-
var classString = classnames_default()(groupPrefixCls, defineProperty_defineProperty({},
|
|
71634
|
+
var classString = classnames_default()(groupPrefixCls, defineProperty_defineProperty({}, groupPrefixCls + "-rtl", direction === 'rtl'), className, hashId);
|
|
71452
71635
|
return wrapSSR( /*#__PURE__*/external_React_.createElement("div", extends_extends({
|
|
71453
71636
|
className: classString,
|
|
71454
71637
|
style: style
|
|
@@ -71558,8 +71741,8 @@ var InternalCheckbox = function InternalCheckbox(_a, ref) {
|
|
|
71558
71741
|
checkboxProps.name = checkboxGroup.name;
|
|
71559
71742
|
checkboxProps.checked = checkboxGroup.value.includes(restProps.value);
|
|
71560
71743
|
}
|
|
71561
|
-
var classString = classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames,
|
|
71562
|
-
var checkboxClass = classnames_default()(defineProperty_defineProperty({},
|
|
71744
|
+
var classString = classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-wrapper", true), defineProperty_defineProperty(_classNames, prefixCls + "-rtl", direction === 'rtl'), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-checked", checkboxProps.checked), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-disabled", mergedDisabled), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-in-form-item", isFormItemInput), _classNames), className, hashId);
|
|
71745
|
+
var checkboxClass = classnames_default()(defineProperty_defineProperty({}, prefixCls + "-indeterminate", indeterminate), hashId);
|
|
71563
71746
|
var ariaChecked = indeterminate ? 'mixed' : undefined;
|
|
71564
71747
|
return wrapSSR( /*#__PURE__*/
|
|
71565
71748
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
@@ -72582,45 +72765,31 @@ function dist_web_ownKeys(object, enumerableOnly) {
|
|
|
72582
72765
|
var keys = Object.keys(object);
|
|
72583
72766
|
if (Object.getOwnPropertySymbols) {
|
|
72584
72767
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
72585
|
-
|
|
72586
|
-
|
|
72587
|
-
|
|
72588
|
-
});
|
|
72589
|
-
}
|
|
72590
|
-
keys.push.apply(keys, symbols);
|
|
72768
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
72769
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
72770
|
+
})), keys.push.apply(keys, symbols);
|
|
72591
72771
|
}
|
|
72592
72772
|
return keys;
|
|
72593
72773
|
}
|
|
72594
72774
|
function _objectSpread2(target) {
|
|
72595
72775
|
for (var i = 1; i < arguments.length; i++) {
|
|
72596
|
-
var source = arguments[i]
|
|
72597
|
-
|
|
72598
|
-
|
|
72599
|
-
|
|
72600
|
-
|
|
72601
|
-
}
|
|
72602
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
72603
|
-
} else {
|
|
72604
|
-
dist_web_ownKeys(Object(source)).forEach(function (key) {
|
|
72605
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
72606
|
-
});
|
|
72607
|
-
}
|
|
72776
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
72777
|
+
i % 2 ? dist_web_ownKeys(Object(source), !0).forEach(function (key) {
|
|
72778
|
+
dist_web_defineProperty(target, key, source[key]);
|
|
72779
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : dist_web_ownKeys(Object(source)).forEach(function (key) {
|
|
72780
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
72781
|
+
});
|
|
72608
72782
|
}
|
|
72609
72783
|
return target;
|
|
72610
72784
|
}
|
|
72611
72785
|
function dist_web_typeof(obj) {
|
|
72612
72786
|
"@babel/helpers - typeof";
|
|
72613
72787
|
|
|
72614
|
-
|
|
72615
|
-
|
|
72616
|
-
|
|
72617
|
-
|
|
72618
|
-
}
|
|
72619
|
-
dist_web_typeof = function _typeof(obj) {
|
|
72620
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
72621
|
-
};
|
|
72622
|
-
}
|
|
72623
|
-
return dist_web_typeof(obj);
|
|
72788
|
+
return dist_web_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
72789
|
+
return typeof obj;
|
|
72790
|
+
} : function (obj) {
|
|
72791
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
72792
|
+
}, dist_web_typeof(obj);
|
|
72624
72793
|
}
|
|
72625
72794
|
function dist_web_defineProperty(obj, key, value) {
|
|
72626
72795
|
if (key in obj) {
|
|
@@ -72729,13 +72898,13 @@ function setTransformXY(node, xy) {
|
|
|
72729
72898
|
}
|
|
72730
72899
|
}
|
|
72731
72900
|
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
|
|
72732
|
-
var getComputedStyleX;
|
|
72901
|
+
var getComputedStyleX;
|
|
72733
72902
|
|
|
72903
|
+
// https://stackoverflow.com/a/3485654/3040605
|
|
72734
72904
|
function forceRelayout(elem) {
|
|
72735
72905
|
var originalStyle = elem.style.display;
|
|
72736
72906
|
elem.style.display = 'none';
|
|
72737
72907
|
elem.offsetHeight; // eslint-disable-line
|
|
72738
|
-
|
|
72739
72908
|
elem.style.display = originalStyle;
|
|
72740
72909
|
}
|
|
72741
72910
|
function css(el, name, v) {
|
|
@@ -72763,23 +72932,29 @@ function getClientPosition(elem) {
|
|
|
72763
72932
|
var y;
|
|
72764
72933
|
var doc = elem.ownerDocument;
|
|
72765
72934
|
var body = doc.body;
|
|
72766
|
-
var docElem = doc && doc.documentElement;
|
|
72935
|
+
var docElem = doc && doc.documentElement;
|
|
72936
|
+
// 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
|
|
72937
|
+
box = elem.getBoundingClientRect();
|
|
72767
72938
|
|
|
72768
|
-
|
|
72939
|
+
// 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
|
|
72769
72940
|
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
|
|
72770
72941
|
// 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
|
|
72771
72942
|
|
|
72772
72943
|
x = Math.floor(box.left);
|
|
72773
|
-
y = Math.floor(box.top);
|
|
72944
|
+
y = Math.floor(box.top);
|
|
72945
|
+
|
|
72946
|
+
// In IE, most of the time, 2 extra pixels are added to the top and left
|
|
72774
72947
|
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
|
|
72775
72948
|
// IE6 standards mode, this border can be overridden by setting the
|
|
72776
72949
|
// document element's border to zero -- thus, we cannot rely on the
|
|
72777
72950
|
// offset always being 2 pixels.
|
|
72951
|
+
|
|
72778
72952
|
// In quirks mode, the offset can be determined by querying the body's
|
|
72779
72953
|
// clientLeft/clientTop, but in standards mode, it is found by querying
|
|
72780
72954
|
// the document element's clientLeft/clientTop. Since we already called
|
|
72781
72955
|
// getClientBoundingRect we have already forced a reflow, so it is not
|
|
72782
72956
|
// too expensive just to query them all.
|
|
72957
|
+
|
|
72783
72958
|
// ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
|
|
72784
72959
|
// 窗口边框标准是设 documentElement ,quirks 时设置 body
|
|
72785
72960
|
// 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
|
|
@@ -72799,8 +72974,8 @@ function dist_web_getScroll(w, top) {
|
|
|
72799
72974
|
var ret = w["page".concat(top ? 'Y' : 'X', "Offset")];
|
|
72800
72975
|
var method = "scroll".concat(top ? 'Top' : 'Left');
|
|
72801
72976
|
if (typeof ret !== 'number') {
|
|
72802
|
-
var d = w.document;
|
|
72803
|
-
|
|
72977
|
+
var d = w.document;
|
|
72978
|
+
// ie6,7,8 standard mode
|
|
72804
72979
|
ret = d.documentElement[method];
|
|
72805
72980
|
if (typeof ret !== 'number') {
|
|
72806
72981
|
// quirks mode
|
|
@@ -72823,14 +72998,13 @@ function dist_web_getOffset(el) {
|
|
|
72823
72998
|
pos.top += getScrollTop(w);
|
|
72824
72999
|
return pos;
|
|
72825
73000
|
}
|
|
73001
|
+
|
|
72826
73002
|
/**
|
|
72827
73003
|
* A crude way of determining if an object is a window
|
|
72828
73004
|
* @member util
|
|
72829
73005
|
*/
|
|
72830
|
-
|
|
72831
73006
|
function isWindow(obj) {
|
|
72832
73007
|
// must use == for ie8
|
|
72833
|
-
|
|
72834
73008
|
/* eslint eqeqeq:0 */
|
|
72835
73009
|
return obj !== null && obj !== undefined && obj == obj.window;
|
|
72836
73010
|
}
|
|
@@ -72847,8 +73021,9 @@ function _getComputedStyle(elem, name, cs) {
|
|
|
72847
73021
|
var computedStyle = cs;
|
|
72848
73022
|
var val = '';
|
|
72849
73023
|
var d = getDocument(elem);
|
|
72850
|
-
computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);
|
|
73024
|
+
computedStyle = computedStyle || d.defaultView.getComputedStyle(elem, null);
|
|
72851
73025
|
|
|
73026
|
+
// https://github.com/kissyteam/kissy/issues/61
|
|
72852
73027
|
if (computedStyle) {
|
|
72853
73028
|
val = computedStyle.getPropertyValue(name) || computedStyle[name];
|
|
72854
73029
|
}
|
|
@@ -72863,27 +73038,32 @@ var PX = 'px';
|
|
|
72863
73038
|
function _getComputedStyleIE(elem, name) {
|
|
72864
73039
|
// currentStyle maybe null
|
|
72865
73040
|
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
|
|
72866
|
-
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
|
|
73041
|
+
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
|
|
73042
|
+
|
|
73043
|
+
// 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
|
|
72867
73044
|
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
|
|
72868
73045
|
// 在 ie 下不对,需要直接用 offset 方式
|
|
72869
73046
|
// borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
|
|
73047
|
+
|
|
72870
73048
|
// From the awesome hack by Dean Edwards
|
|
72871
73049
|
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
|
|
72872
73050
|
// If we're not dealing with a regular pixel number
|
|
72873
73051
|
// but a number that has a weird ending, we need to convert it to pixels
|
|
72874
73052
|
// exclude left right for relativity
|
|
72875
|
-
|
|
72876
73053
|
if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
|
|
72877
73054
|
// Remember the original values
|
|
72878
73055
|
var style = elem.style;
|
|
72879
73056
|
var left = style[LEFT];
|
|
72880
|
-
var rsLeft = elem[RUNTIME_STYLE][LEFT];
|
|
73057
|
+
var rsLeft = elem[RUNTIME_STYLE][LEFT];
|
|
72881
73058
|
|
|
72882
|
-
|
|
73059
|
+
// prevent flashing of content
|
|
73060
|
+
elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
|
|
72883
73061
|
|
|
73062
|
+
// Put in the new values to get a computed value out
|
|
72884
73063
|
style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
|
|
72885
|
-
ret = style.pixelLeft + PX;
|
|
73064
|
+
ret = style.pixelLeft + PX;
|
|
72886
73065
|
|
|
73066
|
+
// Revert the changed values
|
|
72887
73067
|
style[LEFT] = left;
|
|
72888
73068
|
elem[RUNTIME_STYLE][LEFT] = rsLeft;
|
|
72889
73069
|
}
|
|
@@ -72908,8 +73088,9 @@ function oppositeOffsetDirection(dir) {
|
|
|
72908
73088
|
} else if (dir === 'bottom') {
|
|
72909
73089
|
return 'top';
|
|
72910
73090
|
}
|
|
72911
|
-
}
|
|
73091
|
+
}
|
|
72912
73092
|
|
|
73093
|
+
// 设置 elem 相对 elem.ownerDocument 的坐标
|
|
72913
73094
|
function setLeftTop(elem, offset, option) {
|
|
72914
73095
|
// set position first, in-case top/left are set even on static elem
|
|
72915
73096
|
if (css(elem, 'position') === 'static') {
|
|
@@ -72940,8 +73121,8 @@ function setLeftTop(elem, offset, option) {
|
|
|
72940
73121
|
if ('top' in offset) {
|
|
72941
73122
|
elem.style[oppositeVerticalProperty] = '';
|
|
72942
73123
|
elem.style[verticalProperty] = "".concat(presetV, "px");
|
|
72943
|
-
}
|
|
72944
|
-
|
|
73124
|
+
}
|
|
73125
|
+
// force relayout
|
|
72945
73126
|
forceRelayout(elem);
|
|
72946
73127
|
var old = dist_web_getOffset(elem);
|
|
72947
73128
|
var originalStyle = {};
|
|
@@ -72957,8 +73138,8 @@ function setLeftTop(elem, offset, option) {
|
|
|
72957
73138
|
}
|
|
72958
73139
|
}
|
|
72959
73140
|
}
|
|
72960
|
-
css(elem, originalStyle);
|
|
72961
|
-
|
|
73141
|
+
css(elem, originalStyle);
|
|
73142
|
+
// force relayout
|
|
72962
73143
|
forceRelayout(elem);
|
|
72963
73144
|
if ('left' in offset || 'top' in offset) {
|
|
72964
73145
|
setTransitionProperty(elem, originalTransition);
|
|
@@ -73027,16 +73208,18 @@ var MARGIN_INDEX = 0;
|
|
|
73027
73208
|
function swap(elem, options, callback) {
|
|
73028
73209
|
var old = {};
|
|
73029
73210
|
var style = elem.style;
|
|
73030
|
-
var name;
|
|
73211
|
+
var name;
|
|
73031
73212
|
|
|
73213
|
+
// Remember the old values, and insert the new ones
|
|
73032
73214
|
for (name in options) {
|
|
73033
73215
|
if (options.hasOwnProperty(name)) {
|
|
73034
73216
|
old[name] = style[name];
|
|
73035
73217
|
style[name] = options[name];
|
|
73036
73218
|
}
|
|
73037
73219
|
}
|
|
73038
|
-
callback.call(elem);
|
|
73220
|
+
callback.call(elem);
|
|
73039
73221
|
|
|
73222
|
+
// Revert the old values
|
|
73040
73223
|
for (name in options) {
|
|
73041
73224
|
if (options.hasOwnProperty(name)) {
|
|
73042
73225
|
style[name] = old[name];
|
|
@@ -73093,12 +73276,13 @@ dist_web_each(['Width', 'Height'], function (name) {
|
|
|
73093
73276
|
var doc = win.document;
|
|
73094
73277
|
var body = doc.body;
|
|
73095
73278
|
var documentElement = doc.documentElement;
|
|
73096
|
-
var documentElementProp = documentElement[prop];
|
|
73279
|
+
var documentElementProp = documentElement[prop];
|
|
73280
|
+
// 标准模式取 documentElement
|
|
73097
73281
|
// backcompat 取 body
|
|
73098
|
-
|
|
73099
73282
|
return doc.compatMode === 'CSS1Compat' && documentElementProp || body && body[prop] || documentElementProp;
|
|
73100
73283
|
};
|
|
73101
73284
|
});
|
|
73285
|
+
|
|
73102
73286
|
/*
|
|
73103
73287
|
得到元素的大小信息
|
|
73104
73288
|
@param elem
|
|
@@ -73107,7 +73291,6 @@ dist_web_each(['Width', 'Height'], function (name) {
|
|
|
73107
73291
|
'border' : (css width) + padding + border
|
|
73108
73292
|
'margin' : (css width) + padding + border + margin
|
|
73109
73293
|
*/
|
|
73110
|
-
|
|
73111
73294
|
function getWH(elem, name, ex) {
|
|
73112
73295
|
var extra = ex;
|
|
73113
73296
|
if (isWindow(elem)) {
|
|
@@ -73120,14 +73303,14 @@ function getWH(elem, name, ex) {
|
|
|
73120
73303
|
var isBorderBox = isBorderBoxFn(elem);
|
|
73121
73304
|
var cssBoxValue = 0;
|
|
73122
73305
|
if (borderBoxValue === null || borderBoxValue === undefined || borderBoxValue <= 0) {
|
|
73123
|
-
borderBoxValue = undefined;
|
|
73124
|
-
|
|
73306
|
+
borderBoxValue = undefined;
|
|
73307
|
+
// Fall back to computed then un computed css if necessary
|
|
73125
73308
|
cssBoxValue = getComputedStyleX(elem, name);
|
|
73126
73309
|
if (cssBoxValue === null || cssBoxValue === undefined || Number(cssBoxValue) < 0) {
|
|
73127
73310
|
cssBoxValue = elem.style[name] || 0;
|
|
73128
|
-
}
|
|
73129
|
-
|
|
73130
|
-
cssBoxValue = parseFloat(cssBoxValue) || 0;
|
|
73311
|
+
}
|
|
73312
|
+
// Normalize '', auto, and prepare for extra
|
|
73313
|
+
cssBoxValue = Math.floor(parseFloat(cssBoxValue)) || 0;
|
|
73131
73314
|
}
|
|
73132
73315
|
if (extra === undefined) {
|
|
73133
73316
|
extra = isBorderBox ? BORDER_INDEX : CONTENT_INDEX;
|
|
@@ -73151,16 +73334,17 @@ var cssShow = {
|
|
|
73151
73334
|
position: 'absolute',
|
|
73152
73335
|
visibility: 'hidden',
|
|
73153
73336
|
display: 'block'
|
|
73154
|
-
};
|
|
73337
|
+
};
|
|
73155
73338
|
|
|
73339
|
+
// fix #119 : https://github.com/kissyteam/kissy/issues/119
|
|
73156
73340
|
function getWHIgnoreDisplay() {
|
|
73157
73341
|
for (var _len = arguments.length, args = new Array(_len), _key2 = 0; _key2 < _len; _key2++) {
|
|
73158
73342
|
args[_key2] = arguments[_key2];
|
|
73159
73343
|
}
|
|
73160
73344
|
var val;
|
|
73161
|
-
var elem = args[0];
|
|
73345
|
+
var elem = args[0];
|
|
73346
|
+
// in case elem is window
|
|
73162
73347
|
// elem.offsetWidth === undefined
|
|
73163
|
-
|
|
73164
73348
|
if (elem.offsetWidth !== 0) {
|
|
73165
73349
|
val = getWH.apply(undefined, args);
|
|
73166
73350
|
} else {
|
|
@@ -73258,13 +73442,12 @@ mix(utils, domUtils);
|
|
|
73258
73442
|
/**
|
|
73259
73443
|
* 得到会导致元素显示不全的祖先元素
|
|
73260
73444
|
*/
|
|
73261
|
-
|
|
73262
73445
|
var getParent = utils.getParent;
|
|
73263
73446
|
function getOffsetParent(element) {
|
|
73264
73447
|
if (utils.isWindow(element) || element.nodeType === 9) {
|
|
73265
73448
|
return null;
|
|
73266
|
-
}
|
|
73267
|
-
|
|
73449
|
+
}
|
|
73450
|
+
// ie 这个也不是完全可行
|
|
73268
73451
|
/*
|
|
73269
73452
|
<div style="width: 50px;height: 100px;overflow: hidden">
|
|
73270
73453
|
<div style="width: 50px;height: 100px;position: relative;" id="d6">
|
|
@@ -73279,7 +73462,6 @@ function getOffsetParent(element) {
|
|
|
73279
73462
|
// return element.offsetParent;
|
|
73280
73463
|
// }
|
|
73281
73464
|
// 统一的 offsetParent 方法
|
|
73282
|
-
|
|
73283
73465
|
var doc = utils.getDocument(element);
|
|
73284
73466
|
var body = doc.body;
|
|
73285
73467
|
var parent;
|
|
@@ -73318,7 +73500,6 @@ function isAncestorFixed(element) {
|
|
|
73318
73500
|
/**
|
|
73319
73501
|
* 获得元素的显示部分的区域
|
|
73320
73502
|
*/
|
|
73321
|
-
|
|
73322
73503
|
function getVisibleRectForElement(element, alwaysByViewport) {
|
|
73323
73504
|
var visibleRect = {
|
|
73324
73505
|
left: 0,
|
|
@@ -73330,9 +73511,10 @@ function getVisibleRectForElement(element, alwaysByViewport) {
|
|
|
73330
73511
|
var doc = utils.getDocument(element);
|
|
73331
73512
|
var win = doc.defaultView || doc.parentWindow;
|
|
73332
73513
|
var body = doc.body;
|
|
73333
|
-
var documentElement = doc.documentElement;
|
|
73334
|
-
// all scrollable containers.
|
|
73514
|
+
var documentElement = doc.documentElement;
|
|
73335
73515
|
|
|
73516
|
+
// Determine the size of the visible rect by climbing the dom accounting for
|
|
73517
|
+
// all scrollable containers.
|
|
73336
73518
|
while (el) {
|
|
73337
73519
|
// clientWidth is zero for inline block elements in ie.
|
|
73338
73520
|
if ((navigator.userAgent.indexOf('MSIE') === -1 || el.clientWidth !== 0) &&
|
|
@@ -73340,8 +73522,8 @@ function getVisibleRectForElement(element, alwaysByViewport) {
|
|
|
73340
73522
|
// viewport. In some browsers, el.offsetParent may be
|
|
73341
73523
|
// document.documentElement, so check for that too.
|
|
73342
73524
|
el !== body && el !== documentElement && utils.css(el, 'overflow') !== 'visible') {
|
|
73343
|
-
var pos = utils.offset(el);
|
|
73344
|
-
|
|
73525
|
+
var pos = utils.offset(el);
|
|
73526
|
+
// add border
|
|
73345
73527
|
pos.left += el.clientLeft;
|
|
73346
73528
|
pos.top += el.clientTop;
|
|
73347
73529
|
visibleRect.top = Math.max(visibleRect.top, pos.top);
|
|
@@ -73354,10 +73536,11 @@ function getVisibleRectForElement(element, alwaysByViewport) {
|
|
|
73354
73536
|
break;
|
|
73355
73537
|
}
|
|
73356
73538
|
el = getOffsetParent(el);
|
|
73357
|
-
}
|
|
73539
|
+
}
|
|
73540
|
+
|
|
73541
|
+
// Set element position to fixed
|
|
73358
73542
|
// make sure absolute element itself don't affect it's visible area
|
|
73359
73543
|
// https://github.com/ant-design/ant-design/issues/7601
|
|
73360
|
-
|
|
73361
73544
|
var originalPosition = null;
|
|
73362
73545
|
if (!utils.isWindow(element) && element.nodeType !== 9) {
|
|
73363
73546
|
originalPosition = element.style.position;
|
|
@@ -73371,17 +73554,19 @@ function getVisibleRectForElement(element, alwaysByViewport) {
|
|
|
73371
73554
|
var viewportWidth = utils.viewportWidth(win);
|
|
73372
73555
|
var viewportHeight = utils.viewportHeight(win);
|
|
73373
73556
|
var documentWidth = documentElement.scrollWidth;
|
|
73374
|
-
var documentHeight = documentElement.scrollHeight;
|
|
73375
|
-
// We should cut this ourself.
|
|
73557
|
+
var documentHeight = documentElement.scrollHeight;
|
|
73376
73558
|
|
|
73559
|
+
// scrollXXX on html is sync with body which means overflow: hidden on body gets wrong scrollXXX.
|
|
73560
|
+
// We should cut this ourself.
|
|
73377
73561
|
var bodyStyle = window.getComputedStyle(body);
|
|
73378
73562
|
if (bodyStyle.overflowX === 'hidden') {
|
|
73379
73563
|
documentWidth = win.innerWidth;
|
|
73380
73564
|
}
|
|
73381
73565
|
if (bodyStyle.overflowY === 'hidden') {
|
|
73382
73566
|
documentHeight = win.innerHeight;
|
|
73383
|
-
}
|
|
73567
|
+
}
|
|
73384
73568
|
|
|
73569
|
+
// Reset element position after calculate the visible area
|
|
73385
73570
|
if (element.style) {
|
|
73386
73571
|
element.style.position = originalPosition;
|
|
73387
73572
|
}
|
|
@@ -73408,25 +73593,30 @@ function adjustForViewport(elFuturePos, elRegion, visibleRect, overflow) {
|
|
|
73408
73593
|
};
|
|
73409
73594
|
if (overflow.adjustX && pos.left < visibleRect.left) {
|
|
73410
73595
|
pos.left = visibleRect.left;
|
|
73411
|
-
}
|
|
73596
|
+
}
|
|
73412
73597
|
|
|
73598
|
+
// Left edge inside and right edge outside viewport, try to resize it.
|
|
73413
73599
|
if (overflow.resizeWidth && pos.left >= visibleRect.left && pos.left + size.width > visibleRect.right) {
|
|
73414
73600
|
size.width -= pos.left + size.width - visibleRect.right;
|
|
73415
|
-
}
|
|
73601
|
+
}
|
|
73416
73602
|
|
|
73603
|
+
// Right edge outside viewport, try to move it.
|
|
73417
73604
|
if (overflow.adjustX && pos.left + size.width > visibleRect.right) {
|
|
73418
73605
|
// 保证左边界和可视区域左边界对齐
|
|
73419
73606
|
pos.left = Math.max(visibleRect.right - size.width, visibleRect.left);
|
|
73420
|
-
}
|
|
73607
|
+
}
|
|
73421
73608
|
|
|
73609
|
+
// Top edge outside viewport, try to move it.
|
|
73422
73610
|
if (overflow.adjustY && pos.top < visibleRect.top) {
|
|
73423
73611
|
pos.top = visibleRect.top;
|
|
73424
|
-
}
|
|
73612
|
+
}
|
|
73425
73613
|
|
|
73614
|
+
// Top edge inside and bottom edge outside viewport, try to resize it.
|
|
73426
73615
|
if (overflow.resizeHeight && pos.top >= visibleRect.top && pos.top + size.height > visibleRect.bottom) {
|
|
73427
73616
|
size.height -= pos.top + size.height - visibleRect.bottom;
|
|
73428
|
-
}
|
|
73617
|
+
}
|
|
73429
73618
|
|
|
73619
|
+
// Bottom edge outside viewport, try to move it.
|
|
73430
73620
|
if (overflow.adjustY && pos.top + size.height > visibleRect.bottom) {
|
|
73431
73621
|
// 保证上边界和可视区域上边界对齐
|
|
73432
73622
|
pos.top = Math.max(visibleRect.bottom - size.height, visibleRect.top);
|
|
@@ -73458,6 +73648,7 @@ function getRegion(node) {
|
|
|
73458
73648
|
/**
|
|
73459
73649
|
* 获取 node 上的 align 对齐点 相对于页面的坐标
|
|
73460
73650
|
*/
|
|
73651
|
+
|
|
73461
73652
|
function getAlignOffset(region, align) {
|
|
73462
73653
|
var V = align.charAt(0);
|
|
73463
73654
|
var H = align.charAt(1);
|
|
@@ -73495,6 +73686,8 @@ function getElFuturePos(elRegion, refNodeRegion, points, offset, targetOffset) {
|
|
|
73495
73686
|
* @author yiminghe@gmail.com
|
|
73496
73687
|
*/
|
|
73497
73688
|
|
|
73689
|
+
// http://yiminghe.iteye.com/blog/1124720
|
|
73690
|
+
|
|
73498
73691
|
function isFailX(elFuturePos, elRegion, visibleRect) {
|
|
73499
73692
|
return elFuturePos.left < visibleRect.left || elFuturePos.left + elRegion.width > visibleRect.right;
|
|
73500
73693
|
}
|
|
@@ -73533,12 +73726,12 @@ function normalizeOffset(offset, el) {
|
|
|
73533
73726
|
offset[0] = convertOffset(offset[0], el.width);
|
|
73534
73727
|
offset[1] = convertOffset(offset[1], el.height);
|
|
73535
73728
|
}
|
|
73729
|
+
|
|
73536
73730
|
/**
|
|
73537
73731
|
* @param el
|
|
73538
73732
|
* @param tgtRegion 参照节点所占的区域: { left, top, width, height }
|
|
73539
73733
|
* @param align
|
|
73540
73734
|
*/
|
|
73541
|
-
|
|
73542
73735
|
function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
73543
73736
|
var points = align.points;
|
|
73544
73737
|
var offset = align.offset || [0, 0];
|
|
@@ -73550,19 +73743,20 @@ function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
73550
73743
|
overflow = overflow || {};
|
|
73551
73744
|
var newOverflowCfg = {};
|
|
73552
73745
|
var fail = 0;
|
|
73553
|
-
var alwaysByViewport = !!(overflow && overflow.alwaysByViewport);
|
|
73554
|
-
|
|
73555
|
-
var visibleRect = getVisibleRectForElement(source, alwaysByViewport);
|
|
73556
|
-
|
|
73557
|
-
var elRegion = getRegion(source);
|
|
73558
|
-
|
|
73746
|
+
var alwaysByViewport = !!(overflow && overflow.alwaysByViewport);
|
|
73747
|
+
// 当前节点可以被放置的显示区域
|
|
73748
|
+
var visibleRect = getVisibleRectForElement(source, alwaysByViewport);
|
|
73749
|
+
// 当前节点所占的区域, left/top/width/height
|
|
73750
|
+
var elRegion = getRegion(source);
|
|
73751
|
+
// 将 offset 转换成数值,支持百分比
|
|
73559
73752
|
normalizeOffset(offset, elRegion);
|
|
73560
|
-
normalizeOffset(targetOffset, tgtRegion);
|
|
73561
|
-
|
|
73562
|
-
var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
|
|
73563
|
-
|
|
73564
|
-
var newElRegion = utils.merge(elRegion, elFuturePos);
|
|
73753
|
+
normalizeOffset(targetOffset, tgtRegion);
|
|
73754
|
+
// 当前节点将要被放置的位置
|
|
73755
|
+
var elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
|
|
73756
|
+
// 当前节点将要所处的区域
|
|
73757
|
+
var newElRegion = utils.merge(elRegion, elFuturePos);
|
|
73565
73758
|
|
|
73759
|
+
// 如果可视区域不能完全放置当前节点时允许调整
|
|
73566
73760
|
if (visibleRect && (overflow.adjustX || overflow.adjustY) && isTgtRegionVisible) {
|
|
73567
73761
|
if (overflow.adjustX) {
|
|
73568
73762
|
// 如果横向不能放下
|
|
@@ -73571,8 +73765,8 @@ function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
73571
73765
|
var newPoints = flip(points, /[lr]/gi, {
|
|
73572
73766
|
l: 'r',
|
|
73573
73767
|
r: 'l'
|
|
73574
|
-
});
|
|
73575
|
-
|
|
73768
|
+
});
|
|
73769
|
+
// 偏移量也反下
|
|
73576
73770
|
var newOffset = flipOffset(offset, 0);
|
|
73577
73771
|
var newTargetOffset = flipOffset(targetOffset, 0);
|
|
73578
73772
|
var newElFuturePos = getElFuturePos(elRegion, tgtRegion, newPoints, newOffset, newTargetOffset);
|
|
@@ -73591,8 +73785,8 @@ function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
73591
73785
|
var _newPoints = flip(points, /[tb]/gi, {
|
|
73592
73786
|
t: 'b',
|
|
73593
73787
|
b: 't'
|
|
73594
|
-
});
|
|
73595
|
-
|
|
73788
|
+
});
|
|
73789
|
+
// 偏移量也反下
|
|
73596
73790
|
var _newOffset = flipOffset(offset, 1);
|
|
73597
73791
|
var _newTargetOffset = flipOffset(targetOffset, 1);
|
|
73598
73792
|
var _newElFuturePos = getElFuturePos(elRegion, tgtRegion, _newPoints, _newOffset, _newTargetOffset);
|
|
@@ -73603,19 +73797,21 @@ function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
73603
73797
|
targetOffset = _newTargetOffset;
|
|
73604
73798
|
}
|
|
73605
73799
|
}
|
|
73606
|
-
}
|
|
73800
|
+
}
|
|
73607
73801
|
|
|
73802
|
+
// 如果失败,重新计算当前节点将要被放置的位置
|
|
73608
73803
|
if (fail) {
|
|
73609
73804
|
elFuturePos = getElFuturePos(elRegion, tgtRegion, points, offset, targetOffset);
|
|
73610
73805
|
utils.mix(newElRegion, elFuturePos);
|
|
73611
73806
|
}
|
|
73612
73807
|
var isStillFailX = isFailX(elFuturePos, elRegion, visibleRect);
|
|
73613
|
-
var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect);
|
|
73808
|
+
var isStillFailY = isFailY(elFuturePos, elRegion, visibleRect);
|
|
73809
|
+
// 检查反下后的位置是否可以放下了,如果仍然放不下:
|
|
73614
73810
|
// 1. 复原修改过的定位参数
|
|
73615
|
-
|
|
73616
73811
|
if (isStillFailX || isStillFailY) {
|
|
73617
|
-
var _newPoints2 = points;
|
|
73812
|
+
var _newPoints2 = points;
|
|
73618
73813
|
|
|
73814
|
+
// 重置对应部分的翻转逻辑
|
|
73619
73815
|
if (isStillFailX) {
|
|
73620
73816
|
_newPoints2 = flip(points, /[lr]/gi, {
|
|
73621
73817
|
l: 'r',
|
|
@@ -73631,25 +73827,28 @@ function doAlign(el, tgtRegion, align, isTgtRegionVisible) {
|
|
|
73631
73827
|
points = _newPoints2;
|
|
73632
73828
|
offset = align.offset || [0, 0];
|
|
73633
73829
|
targetOffset = align.targetOffset || [0, 0];
|
|
73634
|
-
}
|
|
73635
|
-
|
|
73830
|
+
}
|
|
73831
|
+
// 2. 只有指定了可以调整当前方向才调整
|
|
73636
73832
|
newOverflowCfg.adjustX = overflow.adjustX && isStillFailX;
|
|
73637
|
-
newOverflowCfg.adjustY = overflow.adjustY && isStillFailY;
|
|
73833
|
+
newOverflowCfg.adjustY = overflow.adjustY && isStillFailY;
|
|
73638
73834
|
|
|
73835
|
+
// 确实要调整,甚至可能会调整高度宽度
|
|
73639
73836
|
if (newOverflowCfg.adjustX || newOverflowCfg.adjustY) {
|
|
73640
73837
|
newElRegion = adjustForViewport(elFuturePos, elRegion, visibleRect, newOverflowCfg);
|
|
73641
73838
|
}
|
|
73642
|
-
}
|
|
73839
|
+
}
|
|
73643
73840
|
|
|
73841
|
+
// need judge to in case set fixed with in css on height auto element
|
|
73644
73842
|
if (newElRegion.width !== elRegion.width) {
|
|
73645
73843
|
utils.css(source, 'width', utils.width(source) + newElRegion.width - elRegion.width);
|
|
73646
73844
|
}
|
|
73647
73845
|
if (newElRegion.height !== elRegion.height) {
|
|
73648
73846
|
utils.css(source, 'height', utils.height(source) + newElRegion.height - elRegion.height);
|
|
73649
|
-
}
|
|
73847
|
+
}
|
|
73848
|
+
|
|
73849
|
+
// https://github.com/kissyteam/kissy/issues/190
|
|
73650
73850
|
// 相对于屏幕位置没变,而 left/top 变了
|
|
73651
73851
|
// 例如 <div 'relative'><el absolute></div>
|
|
73652
|
-
|
|
73653
73852
|
utils.offset(source, {
|
|
73654
73853
|
left: newElRegion.left,
|
|
73655
73854
|
top: newElRegion.top
|
|
@@ -73719,8 +73918,9 @@ function alignPoint(el, tgtPoint, align) {
|
|
|
73719
73918
|
width: 0,
|
|
73720
73919
|
height: 0
|
|
73721
73920
|
};
|
|
73722
|
-
var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight;
|
|
73921
|
+
var pointInView = pageX >= 0 && pageX <= scrollX + viewportWidth && pageY >= 0 && pageY <= scrollY + viewportHeight;
|
|
73723
73922
|
|
|
73923
|
+
// Provide default target point
|
|
73724
73924
|
var points = [align.points[0], 'cc'];
|
|
73725
73925
|
return doAlign(el, tgtRegion, _objectSpread2(_objectSpread2({}, align), {}, {
|
|
73726
73926
|
points: points
|
|
@@ -76529,7 +76729,8 @@ function useDirectionStyle(level) {
|
|
|
76529
76729
|
;// CONCATENATED MODULE: ./node_modules/rc-menu/es/context/PathContext.js
|
|
76530
76730
|
|
|
76531
76731
|
|
|
76532
|
-
var EmptyList = [];
|
|
76732
|
+
var EmptyList = []; // ========================= Path Register =========================
|
|
76733
|
+
|
|
76533
76734
|
var PathRegisterContext = /*#__PURE__*/external_React_.createContext(null);
|
|
76534
76735
|
function useMeasure() {
|
|
76535
76736
|
return external_React_.useContext(PathRegisterContext);
|
|
@@ -76541,7 +76742,8 @@ function useFullPath(eventKey) {
|
|
|
76541
76742
|
return external_React_.useMemo(function () {
|
|
76542
76743
|
return eventKey !== undefined ? [].concat(toConsumableArray_toConsumableArray(parentKeyPath), [eventKey]) : parentKeyPath;
|
|
76543
76744
|
}, [parentKeyPath, eventKey]);
|
|
76544
|
-
}
|
|
76745
|
+
} // =========================== Path User ===========================
|
|
76746
|
+
|
|
76545
76747
|
var PathUserContext = /*#__PURE__*/external_React_.createContext(null);
|
|
76546
76748
|
;// CONCATENATED MODULE: ./node_modules/rc-menu/es/context/IdContext.js
|
|
76547
76749
|
|
|
@@ -76590,10 +76792,11 @@ var MenuItem_excluded = ["title", "attribute", "elementRef"],
|
|
|
76590
76792
|
|
|
76591
76793
|
|
|
76592
76794
|
|
|
76593
|
-
|
|
76795
|
+
|
|
76796
|
+
|
|
76797
|
+
// Since Menu event provide the `info.item` which point to the MenuItem node instance.
|
|
76594
76798
|
// We have to use class component here.
|
|
76595
76799
|
// This should be removed from doc & api in future.
|
|
76596
|
-
|
|
76597
76800
|
var LegacyMenuItem = /*#__PURE__*/function (_React$Component) {
|
|
76598
76801
|
_inherits(LegacyMenuItem, _React$Component);
|
|
76599
76802
|
var _super = _createSuper(LegacyMenuItem);
|
|
@@ -76770,9 +76973,9 @@ var nodeUtil_excluded = ["label", "children", "key", "type"];
|
|
|
76770
76973
|
function parseChildren(children, keyPath) {
|
|
76771
76974
|
return toArray_toArray(children).map(function (child, index) {
|
|
76772
76975
|
if ( /*#__PURE__*/external_React_.isValidElement(child)) {
|
|
76773
|
-
var
|
|
76976
|
+
var _eventKey, _child$props;
|
|
76774
76977
|
var key = child.key;
|
|
76775
|
-
var eventKey = (
|
|
76978
|
+
var eventKey = (_eventKey = (_child$props = child.props) === null || _child$props === void 0 ? void 0 : _child$props.eventKey) !== null && _eventKey !== void 0 ? _eventKey : key;
|
|
76776
76979
|
var emptyKey = eventKey === null || eventKey === undefined;
|
|
76777
76980
|
if (emptyKey) {
|
|
76778
76981
|
eventKey = "tmp_key-".concat([].concat(toConsumableArray_toConsumableArray(keyPath), [index]).join('-'));
|
|
@@ -76790,11 +76993,12 @@ function parseChildren(children, keyPath) {
|
|
|
76790
76993
|
function convertItemsToNodes(list) {
|
|
76791
76994
|
return (list || []).map(function (opt, index) {
|
|
76792
76995
|
if (opt && typeof_typeof(opt) === 'object') {
|
|
76793
|
-
var
|
|
76794
|
-
|
|
76795
|
-
|
|
76796
|
-
|
|
76797
|
-
|
|
76996
|
+
var _ref = opt,
|
|
76997
|
+
label = _ref.label,
|
|
76998
|
+
children = _ref.children,
|
|
76999
|
+
key = _ref.key,
|
|
77000
|
+
type = _ref.type,
|
|
77001
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, nodeUtil_excluded);
|
|
76798
77002
|
var mergedKey = key !== null && key !== void 0 ? key : "tmp-".concat(index); // MenuItemGroup & SubMenuItem
|
|
76799
77003
|
|
|
76800
77004
|
if (children || type === 'group') {
|
|
@@ -77275,8 +77479,10 @@ var InternalSubMenu = function InternalSubMenu(props) {
|
|
|
77275
77479
|
}))); // Cache mode if it change to `inline` which do not have popup motion
|
|
77276
77480
|
|
|
77277
77481
|
var triggerModeRef = external_React_.useRef(mode);
|
|
77278
|
-
if (mode !== 'inline') {
|
|
77279
|
-
triggerModeRef.current =
|
|
77482
|
+
if (mode !== 'inline' && connectedPath.length > 1) {
|
|
77483
|
+
triggerModeRef.current = 'vertical';
|
|
77484
|
+
} else {
|
|
77485
|
+
triggerModeRef.current = mode;
|
|
77280
77486
|
}
|
|
77281
77487
|
if (!overflowDisabled) {
|
|
77282
77488
|
var triggerMode = triggerModeRef.current; // Still wrap with Trigger here since we need avoid react re-mount dom node
|
|
@@ -77540,7 +77746,7 @@ function useAccessibility_useAccessibility(mode, activeKey, isRtl, id, container
|
|
|
77540
77746
|
var focusTargetElement = menuElement; // Focus to link instead of menu item if possible
|
|
77541
77747
|
|
|
77542
77748
|
var link = menuElement.querySelector('a');
|
|
77543
|
-
if (link
|
|
77749
|
+
if (link !== null && link !== void 0 && link.getAttribute('href')) {
|
|
77544
77750
|
focusTargetElement = link;
|
|
77545
77751
|
}
|
|
77546
77752
|
var targetKey = element2key.get(menuElement);
|
|
@@ -77785,60 +77991,61 @@ var Menu_excluded = ["prefixCls", "rootClassName", "style", "className", "tabInd
|
|
|
77785
77991
|
var EMPTY_LIST = [];
|
|
77786
77992
|
var Menu = /*#__PURE__*/external_React_.forwardRef(function (props, ref) {
|
|
77787
77993
|
var _childList$, _classNames;
|
|
77788
|
-
var
|
|
77789
|
-
prefixCls =
|
|
77790
|
-
|
|
77791
|
-
|
|
77792
|
-
|
|
77793
|
-
|
|
77794
|
-
tabIndex =
|
|
77795
|
-
|
|
77796
|
-
|
|
77797
|
-
|
|
77798
|
-
|
|
77799
|
-
|
|
77800
|
-
mode =
|
|
77801
|
-
|
|
77802
|
-
|
|
77803
|
-
|
|
77804
|
-
|
|
77805
|
-
subMenuOpenDelay =
|
|
77806
|
-
|
|
77807
|
-
|
|
77808
|
-
|
|
77809
|
-
|
|
77810
|
-
|
|
77811
|
-
|
|
77812
|
-
|
|
77813
|
-
|
|
77814
|
-
selectable =
|
|
77815
|
-
|
|
77816
|
-
multiple =
|
|
77817
|
-
|
|
77818
|
-
|
|
77819
|
-
|
|
77820
|
-
|
|
77821
|
-
|
|
77822
|
-
inlineIndent =
|
|
77823
|
-
|
|
77824
|
-
|
|
77825
|
-
|
|
77826
|
-
|
|
77827
|
-
|
|
77828
|
-
|
|
77829
|
-
|
|
77830
|
-
|
|
77831
|
-
|
|
77832
|
-
|
|
77833
|
-
|
|
77834
|
-
|
|
77835
|
-
|
|
77836
|
-
|
|
77837
|
-
|
|
77838
|
-
|
|
77839
|
-
|
|
77840
|
-
|
|
77841
|
-
|
|
77994
|
+
var _ref = props,
|
|
77995
|
+
_ref$prefixCls = _ref.prefixCls,
|
|
77996
|
+
prefixCls = _ref$prefixCls === void 0 ? 'rc-menu' : _ref$prefixCls,
|
|
77997
|
+
rootClassName = _ref.rootClassName,
|
|
77998
|
+
style = _ref.style,
|
|
77999
|
+
className = _ref.className,
|
|
78000
|
+
_ref$tabIndex = _ref.tabIndex,
|
|
78001
|
+
tabIndex = _ref$tabIndex === void 0 ? 0 : _ref$tabIndex,
|
|
78002
|
+
items = _ref.items,
|
|
78003
|
+
children = _ref.children,
|
|
78004
|
+
direction = _ref.direction,
|
|
78005
|
+
id = _ref.id,
|
|
78006
|
+
_ref$mode = _ref.mode,
|
|
78007
|
+
mode = _ref$mode === void 0 ? 'vertical' : _ref$mode,
|
|
78008
|
+
inlineCollapsed = _ref.inlineCollapsed,
|
|
78009
|
+
disabled = _ref.disabled,
|
|
78010
|
+
disabledOverflow = _ref.disabledOverflow,
|
|
78011
|
+
_ref$subMenuOpenDelay = _ref.subMenuOpenDelay,
|
|
78012
|
+
subMenuOpenDelay = _ref$subMenuOpenDelay === void 0 ? 0.1 : _ref$subMenuOpenDelay,
|
|
78013
|
+
_ref$subMenuCloseDela = _ref.subMenuCloseDelay,
|
|
78014
|
+
subMenuCloseDelay = _ref$subMenuCloseDela === void 0 ? 0.1 : _ref$subMenuCloseDela,
|
|
78015
|
+
forceSubMenuRender = _ref.forceSubMenuRender,
|
|
78016
|
+
defaultOpenKeys = _ref.defaultOpenKeys,
|
|
78017
|
+
openKeys = _ref.openKeys,
|
|
78018
|
+
activeKey = _ref.activeKey,
|
|
78019
|
+
defaultActiveFirst = _ref.defaultActiveFirst,
|
|
78020
|
+
_ref$selectable = _ref.selectable,
|
|
78021
|
+
selectable = _ref$selectable === void 0 ? true : _ref$selectable,
|
|
78022
|
+
_ref$multiple = _ref.multiple,
|
|
78023
|
+
multiple = _ref$multiple === void 0 ? false : _ref$multiple,
|
|
78024
|
+
defaultSelectedKeys = _ref.defaultSelectedKeys,
|
|
78025
|
+
selectedKeys = _ref.selectedKeys,
|
|
78026
|
+
onSelect = _ref.onSelect,
|
|
78027
|
+
onDeselect = _ref.onDeselect,
|
|
78028
|
+
_ref$inlineIndent = _ref.inlineIndent,
|
|
78029
|
+
inlineIndent = _ref$inlineIndent === void 0 ? 24 : _ref$inlineIndent,
|
|
78030
|
+
motion = _ref.motion,
|
|
78031
|
+
defaultMotions = _ref.defaultMotions,
|
|
78032
|
+
_ref$triggerSubMenuAc = _ref.triggerSubMenuAction,
|
|
78033
|
+
triggerSubMenuAction = _ref$triggerSubMenuAc === void 0 ? 'hover' : _ref$triggerSubMenuAc,
|
|
78034
|
+
builtinPlacements = _ref.builtinPlacements,
|
|
78035
|
+
itemIcon = _ref.itemIcon,
|
|
78036
|
+
expandIcon = _ref.expandIcon,
|
|
78037
|
+
_ref$overflowedIndica = _ref.overflowedIndicator,
|
|
78038
|
+
overflowedIndicator = _ref$overflowedIndica === void 0 ? '...' : _ref$overflowedIndica,
|
|
78039
|
+
overflowedIndicatorPopupClassName = _ref.overflowedIndicatorPopupClassName,
|
|
78040
|
+
getPopupContainer = _ref.getPopupContainer,
|
|
78041
|
+
onClick = _ref.onClick,
|
|
78042
|
+
onOpenChange = _ref.onOpenChange,
|
|
78043
|
+
onKeyDown = _ref.onKeyDown,
|
|
78044
|
+
openAnimation = _ref.openAnimation,
|
|
78045
|
+
openTransitionName = _ref.openTransitionName,
|
|
78046
|
+
_internalRenderMenuItem = _ref._internalRenderMenuItem,
|
|
78047
|
+
_internalRenderSubMenuItem = _ref._internalRenderSubMenuItem,
|
|
78048
|
+
restProps = objectWithoutProperties_objectWithoutProperties(_ref, Menu_excluded);
|
|
77842
78049
|
var childList = external_React_.useMemo(function () {
|
|
77843
78050
|
return parseItems(children, items, EMPTY_LIST);
|
|
77844
78051
|
}, [children, items]);
|
|
@@ -78284,7 +78491,7 @@ var skipOpacityTransition = function skipOpacityTransition(_, event) {
|
|
|
78284
78491
|
var initCollapseMotion = function initCollapseMotion() {
|
|
78285
78492
|
var rootCls = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'ant';
|
|
78286
78493
|
return {
|
|
78287
|
-
motionName:
|
|
78494
|
+
motionName: rootCls + "-motion-collapse",
|
|
78288
78495
|
onAppearStart: getCollapsedHeight,
|
|
78289
78496
|
onEnterStart: getCollapsedHeight,
|
|
78290
78497
|
onAppearActive: getRealHeight,
|
|
@@ -78308,7 +78515,7 @@ var motion_getTransitionName = function getTransitionName(rootPrefixCls, motion,
|
|
|
78308
78515
|
if (transitionName !== undefined) {
|
|
78309
78516
|
return transitionName;
|
|
78310
78517
|
}
|
|
78311
|
-
return
|
|
78518
|
+
return rootPrefixCls + "-" + motion;
|
|
78312
78519
|
};
|
|
78313
78520
|
|
|
78314
78521
|
/* harmony default export */ var motion = (initCollapseMotion);
|
|
@@ -78332,14 +78539,14 @@ function cloneElement(element, props) {
|
|
|
78332
78539
|
|
|
78333
78540
|
var genCollapseMotion = function genCollapseMotion(token) {
|
|
78334
78541
|
var _token$componentCls;
|
|
78335
|
-
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {}, defineProperty_defineProperty(_token$componentCls,
|
|
78542
|
+
return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {}, defineProperty_defineProperty(_token$componentCls, token.antCls + "-motion-collapse-legacy", {
|
|
78336
78543
|
overflow: 'hidden',
|
|
78337
78544
|
'&-active': {
|
|
78338
|
-
transition: "height "
|
|
78545
|
+
transition: "height " + token.motionDurationMid + " " + token.motionEaseInOut + ",\n opacity " + token.motionDurationMid + " " + token.motionEaseInOut + " !important"
|
|
78339
78546
|
}
|
|
78340
|
-
}), defineProperty_defineProperty(_token$componentCls,
|
|
78547
|
+
}), defineProperty_defineProperty(_token$componentCls, token.antCls + "-motion-collapse", {
|
|
78341
78548
|
overflow: 'hidden',
|
|
78342
|
-
transition: "height "
|
|
78549
|
+
transition: "height " + token.motionDurationMid + " " + token.motionEaseInOut + ",\n opacity " + token.motionDurationMid + " " + token.motionEaseInOut + " !important"
|
|
78343
78550
|
}), _token$componentCls));
|
|
78344
78551
|
};
|
|
78345
78552
|
/* harmony default export */ var collapse = (genCollapseMotion);
|
|
@@ -78361,14 +78568,16 @@ var initMotionCommonLeave = function initMotionCommonLeave(duration) {
|
|
|
78361
78568
|
};
|
|
78362
78569
|
var initMotion = function initMotion(motionCls, inKeyframes, outKeyframes, duration) {
|
|
78363
78570
|
var _ref;
|
|
78364
|
-
|
|
78571
|
+
var sameLevel = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
78572
|
+
var sameLevelPrefix = sameLevel ? '&' : '';
|
|
78573
|
+
return _ref = {}, defineProperty_defineProperty(_ref, "\n " + sameLevelPrefix + motionCls + "-enter,\n " + sameLevelPrefix + motionCls + "-appear\n ", extends_extends(extends_extends({}, initMotionCommon(duration)), {
|
|
78365
78574
|
animationPlayState: 'paused'
|
|
78366
|
-
})), defineProperty_defineProperty(_ref, ""
|
|
78575
|
+
})), defineProperty_defineProperty(_ref, "" + sameLevelPrefix + motionCls + "-leave", extends_extends(extends_extends({}, initMotionCommonLeave(duration)), {
|
|
78367
78576
|
animationPlayState: 'paused'
|
|
78368
|
-
})), defineProperty_defineProperty(_ref, "\n
|
|
78577
|
+
})), defineProperty_defineProperty(_ref, "\n " + sameLevelPrefix + motionCls + "-enter" + motionCls + "-enter-active,\n " + sameLevelPrefix + motionCls + "-appear" + motionCls + "-appear-active\n ", {
|
|
78369
78578
|
animationName: inKeyframes,
|
|
78370
78579
|
animationPlayState: 'running'
|
|
78371
|
-
}), defineProperty_defineProperty(_ref, ""
|
|
78580
|
+
}), defineProperty_defineProperty(_ref, "" + sameLevelPrefix + motionCls + "-leave" + motionCls + "-leave-active", {
|
|
78372
78581
|
animationName: outKeyframes,
|
|
78373
78582
|
animationPlayState: 'running',
|
|
78374
78583
|
pointerEvents: 'none'
|
|
@@ -78495,14 +78704,14 @@ var slideMotion = {
|
|
|
78495
78704
|
var initSlideMotion = function initSlideMotion(token, motionName) {
|
|
78496
78705
|
var _ref;
|
|
78497
78706
|
var antCls = token.antCls;
|
|
78498
|
-
var motionCls =
|
|
78707
|
+
var motionCls = antCls + "-" + motionName;
|
|
78499
78708
|
var _slideMotion$motionNa = slideMotion[motionName],
|
|
78500
78709
|
inKeyframes = _slideMotion$motionNa.inKeyframes,
|
|
78501
78710
|
outKeyframes = _slideMotion$motionNa.outKeyframes;
|
|
78502
|
-
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), (_ref = {}, defineProperty_defineProperty(_ref, "\n "
|
|
78711
|
+
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), (_ref = {}, defineProperty_defineProperty(_ref, "\n " + motionCls + "-enter,\n " + motionCls + "-appear\n ", {
|
|
78503
78712
|
opacity: 0,
|
|
78504
78713
|
animationTimingFunction: token.motionEaseOutQuint
|
|
78505
|
-
}), defineProperty_defineProperty(_ref,
|
|
78714
|
+
}), defineProperty_defineProperty(_ref, motionCls + "-leave", {
|
|
78506
78715
|
animationTimingFunction: token.motionEaseInQuint
|
|
78507
78716
|
}), _ref)];
|
|
78508
78717
|
};
|
|
@@ -78669,25 +78878,25 @@ var zoomMotion = {
|
|
|
78669
78878
|
var initZoomMotion = function initZoomMotion(token, motionName) {
|
|
78670
78879
|
var _ref;
|
|
78671
78880
|
var antCls = token.antCls;
|
|
78672
|
-
var motionCls =
|
|
78881
|
+
var motionCls = antCls + "-" + motionName;
|
|
78673
78882
|
var _zoomMotion$motionNam = zoomMotion[motionName],
|
|
78674
78883
|
inKeyframes = _zoomMotion$motionNam.inKeyframes,
|
|
78675
78884
|
outKeyframes = _zoomMotion$motionNam.outKeyframes;
|
|
78676
|
-
return [initMotion(motionCls, inKeyframes, outKeyframes, motionName === 'zoom-big-fast' ? token.
|
|
78885
|
+
return [initMotion(motionCls, inKeyframes, outKeyframes, motionName === 'zoom-big-fast' ? token.motionDurationMid : token.motionDurationMid), (_ref = {}, defineProperty_defineProperty(_ref, "\n " + motionCls + "-enter,\n " + motionCls + "-appear\n ", {
|
|
78677
78886
|
transform: 'scale(0)',
|
|
78678
78887
|
opacity: 0,
|
|
78679
78888
|
animationTimingFunction: token.motionEaseOutCirc,
|
|
78680
78889
|
'&-prepare': {
|
|
78681
78890
|
transform: 'none'
|
|
78682
78891
|
}
|
|
78683
|
-
}), defineProperty_defineProperty(_ref,
|
|
78892
|
+
}), defineProperty_defineProperty(_ref, motionCls + "-leave", {
|
|
78684
78893
|
animationTimingFunction: token.motionEaseInOutCirc
|
|
78685
78894
|
}), _ref)];
|
|
78686
78895
|
};
|
|
78687
78896
|
;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/horizontal.js
|
|
78688
78897
|
|
|
78689
78898
|
var getHorizontalStyle = function getHorizontalStyle(token) {
|
|
78690
|
-
var
|
|
78899
|
+
var _ref;
|
|
78691
78900
|
var componentCls = token.componentCls,
|
|
78692
78901
|
motionDurationSlow = token.motionDurationSlow,
|
|
78693
78902
|
menuHorizontalHeight = token.menuHorizontalHeight,
|
|
@@ -78696,10 +78905,10 @@ var getHorizontalStyle = function getHorizontalStyle(token) {
|
|
|
78696
78905
|
lineType = token.lineType,
|
|
78697
78906
|
menuItemPaddingInline = token.menuItemPaddingInline,
|
|
78698
78907
|
menuItemMarginInline = token.menuItemMarginInline;
|
|
78699
|
-
return defineProperty_defineProperty({},
|
|
78700
|
-
lineHeight:
|
|
78908
|
+
return defineProperty_defineProperty({}, componentCls + "-horizontal", (_ref = {
|
|
78909
|
+
lineHeight: menuHorizontalHeight + "px",
|
|
78701
78910
|
border: 0,
|
|
78702
|
-
borderBottom:
|
|
78911
|
+
borderBottom: lineWidth + "px " + lineType + " " + colorSplit,
|
|
78703
78912
|
boxShadow: 'none',
|
|
78704
78913
|
'&::after': {
|
|
78705
78914
|
display: 'block',
|
|
@@ -78707,39 +78916,39 @@ var getHorizontalStyle = function getHorizontalStyle(token) {
|
|
|
78707
78916
|
height: 0,
|
|
78708
78917
|
content: '"\\20"'
|
|
78709
78918
|
}
|
|
78710
|
-
}, defineProperty_defineProperty(
|
|
78919
|
+
}, defineProperty_defineProperty(_ref, componentCls + "-item, " + componentCls + "-submenu", {
|
|
78711
78920
|
position: 'relative',
|
|
78712
78921
|
display: 'inline-block',
|
|
78713
78922
|
verticalAlign: 'bottom',
|
|
78714
78923
|
paddingInline: menuItemPaddingInline,
|
|
78715
78924
|
marginInline: menuItemMarginInline
|
|
78716
|
-
}), defineProperty_defineProperty(
|
|
78925
|
+
}), defineProperty_defineProperty(_ref, "> " + componentCls + "-item:hover,\n > " + componentCls + "-item-active,\n > " + componentCls + "-submenu " + componentCls + "-submenu-title:hover", {
|
|
78717
78926
|
backgroundColor: 'transparent'
|
|
78718
|
-
}), defineProperty_defineProperty(
|
|
78719
|
-
transition: ["border-color "
|
|
78720
|
-
}), defineProperty_defineProperty(
|
|
78927
|
+
}), defineProperty_defineProperty(_ref, componentCls + "-item, " + componentCls + "-submenu-title", {
|
|
78928
|
+
transition: ["border-color " + motionDurationSlow, "background " + motionDurationSlow].join(',')
|
|
78929
|
+
}), defineProperty_defineProperty(_ref, componentCls + "-submenu-arrow", {
|
|
78721
78930
|
display: 'none'
|
|
78722
|
-
}),
|
|
78931
|
+
}), _ref));
|
|
78723
78932
|
};
|
|
78724
78933
|
/* harmony default export */ var horizontal = (getHorizontalStyle);
|
|
78725
78934
|
;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/rtl.js
|
|
78726
78935
|
|
|
78727
78936
|
var getRTLStyle = function getRTLStyle(_ref) {
|
|
78728
|
-
var
|
|
78937
|
+
var _ref3;
|
|
78729
78938
|
var componentCls = _ref.componentCls,
|
|
78730
78939
|
menuArrowOffset = _ref.menuArrowOffset;
|
|
78731
|
-
return
|
|
78940
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, componentCls + "-rtl", {
|
|
78732
78941
|
direction: 'rtl'
|
|
78733
|
-
}), defineProperty_defineProperty(
|
|
78942
|
+
}), defineProperty_defineProperty(_ref3, componentCls + "-submenu-rtl", {
|
|
78734
78943
|
transformOrigin: '100% 0'
|
|
78735
|
-
}), defineProperty_defineProperty(
|
|
78944
|
+
}), defineProperty_defineProperty(_ref3, componentCls + "-rtl" + componentCls + "-vertical,\n " + componentCls + "-submenu-rtl " + componentCls + "-vertical", defineProperty_defineProperty({}, componentCls + "-submenu-arrow", {
|
|
78736
78945
|
'&::before': {
|
|
78737
|
-
transform: "rotate(-45deg) translateY(-"
|
|
78946
|
+
transform: "rotate(-45deg) translateY(-" + menuArrowOffset + ")"
|
|
78738
78947
|
},
|
|
78739
78948
|
'&::after': {
|
|
78740
|
-
transform: "rotate(45deg) translateY("
|
|
78949
|
+
transform: "rotate(45deg) translateY(" + menuArrowOffset + ")"
|
|
78741
78950
|
}
|
|
78742
|
-
})),
|
|
78951
|
+
})), _ref3;
|
|
78743
78952
|
};
|
|
78744
78953
|
/* harmony default export */ var rtl = (getRTLStyle);
|
|
78745
78954
|
;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/theme.js
|
|
@@ -78750,7 +78959,7 @@ var accessibilityFocus = function accessibilityFocus(token) {
|
|
|
78750
78959
|
return extends_extends({}, genFocusOutline(token));
|
|
78751
78960
|
};
|
|
78752
78961
|
var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
78753
|
-
var
|
|
78962
|
+
var _ref3, _ref5, _ref6, _ref9, _ref13, _ref14;
|
|
78754
78963
|
var componentCls = token.componentCls,
|
|
78755
78964
|
colorItemText = token.colorItemText,
|
|
78756
78965
|
colorItemTextSelected = token.colorItemTextSelected,
|
|
@@ -78767,98 +78976,67 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
|
78767
78976
|
motionEaseInOut = token.motionEaseInOut,
|
|
78768
78977
|
motionEaseOut = token.motionEaseOut,
|
|
78769
78978
|
menuItemPaddingInline = token.menuItemPaddingInline,
|
|
78770
|
-
|
|
78771
|
-
motionDurationFast = token.motionDurationFast,
|
|
78979
|
+
motionDurationMid = token.motionDurationMid,
|
|
78772
78980
|
colorItemTextHover = token.colorItemTextHover,
|
|
78773
78981
|
lineType = token.lineType,
|
|
78774
78982
|
colorSplit = token.colorSplit,
|
|
78775
|
-
colorItemBgActive = token.colorItemBgActive,
|
|
78776
78983
|
colorItemTextDisabled = token.colorItemTextDisabled,
|
|
78777
78984
|
colorDangerItemText = token.colorDangerItemText,
|
|
78778
78985
|
colorDangerItemTextHover = token.colorDangerItemTextHover,
|
|
78779
78986
|
colorDangerItemTextSelected = token.colorDangerItemTextSelected,
|
|
78780
78987
|
colorDangerItemBgActive = token.colorDangerItemBgActive,
|
|
78781
78988
|
colorDangerItemBgSelected = token.colorDangerItemBgSelected,
|
|
78782
|
-
radiusItem = token.radiusItem,
|
|
78783
78989
|
colorItemBgHover = token.colorItemBgHover;
|
|
78784
|
-
return defineProperty_defineProperty({},
|
|
78990
|
+
return defineProperty_defineProperty({}, componentCls + "-" + themeSuffix, (_ref14 = {
|
|
78785
78991
|
color: colorItemText,
|
|
78786
78992
|
background: colorItemBg
|
|
78787
|
-
}, defineProperty_defineProperty(
|
|
78993
|
+
}, defineProperty_defineProperty(_ref14, "&" + componentCls + "-root:focus-visible", extends_extends({}, accessibilityFocus(token))), defineProperty_defineProperty(_ref14, componentCls + "-item-group-title", {
|
|
78788
78994
|
color: colorGroupTitle
|
|
78789
|
-
}), defineProperty_defineProperty(
|
|
78995
|
+
}), defineProperty_defineProperty(_ref14, componentCls + "-submenu-selected", defineProperty_defineProperty({}, "> " + componentCls + "-submenu-title", {
|
|
78790
78996
|
color: colorItemTextSelected
|
|
78791
|
-
})), defineProperty_defineProperty(
|
|
78792
|
-
color:
|
|
78793
|
-
}), defineProperty_defineProperty(
|
|
78997
|
+
})), defineProperty_defineProperty(_ref14, componentCls + "-item-disabled, " + componentCls + "-submenu-disabled", {
|
|
78998
|
+
color: colorItemTextDisabled + " !important"
|
|
78999
|
+
}), defineProperty_defineProperty(_ref14, componentCls + "-item:hover, " + componentCls + "-submenu-title:hover", defineProperty_defineProperty({}, "&:not(" + componentCls + "-item-selected):not(" + componentCls + "-submenu-selected)", {
|
|
78794
79000
|
color: colorItemTextHover
|
|
78795
|
-
})), defineProperty_defineProperty(
|
|
79001
|
+
})), defineProperty_defineProperty(_ref14, "&:not(" + componentCls + "-horizontal)", (_ref3 = {}, defineProperty_defineProperty(_ref3, componentCls + "-item:not(" + componentCls + "-item-selected)", {
|
|
78796
79002
|
'&:hover': {
|
|
78797
79003
|
backgroundColor: colorItemBgHover
|
|
78798
79004
|
},
|
|
78799
|
-
'&:active
|
|
78800
|
-
|
|
78801
|
-
position: 'absolute',
|
|
78802
|
-
insetInlineStart: 0,
|
|
78803
|
-
top: 0,
|
|
78804
|
-
width: "100%",
|
|
78805
|
-
height: '100%',
|
|
78806
|
-
flex: 1,
|
|
78807
|
-
borderRadius: radiusItem,
|
|
78808
|
-
backgroundColor: colorItemBgActive,
|
|
78809
|
-
transition: "background-color ".concat(motionDurationFast)
|
|
79005
|
+
'&:active': {
|
|
79006
|
+
backgroundColor: colorItemBgSelected
|
|
78810
79007
|
}
|
|
78811
|
-
}), defineProperty_defineProperty(
|
|
78812
|
-
'
|
|
78813
|
-
content: '""',
|
|
78814
|
-
position: 'absolute',
|
|
78815
|
-
insetInlineStart: itemMarginInline,
|
|
78816
|
-
top: 0,
|
|
78817
|
-
width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
|
|
78818
|
-
height: '100%',
|
|
78819
|
-
borderRadius: radiusItem,
|
|
78820
|
-
backgroundColor: 'transparent',
|
|
78821
|
-
transition: "background-color ".concat(motionDurationFast)
|
|
78822
|
-
},
|
|
78823
|
-
'&:hover::before': {
|
|
79008
|
+
}), defineProperty_defineProperty(_ref3, componentCls + "-submenu-title", {
|
|
79009
|
+
'&:hover': {
|
|
78824
79010
|
backgroundColor: colorItemBgHover
|
|
78825
79011
|
},
|
|
78826
|
-
'&:active
|
|
78827
|
-
|
|
78828
|
-
position: 'absolute',
|
|
78829
|
-
insetInlineStart: itemMarginInline,
|
|
78830
|
-
top: 0,
|
|
78831
|
-
width: "calc(100% - ".concat(itemMarginInline * 2, "px)"),
|
|
78832
|
-
height: '100%',
|
|
78833
|
-
borderRadius: radiusItem,
|
|
78834
|
-
backgroundColor: colorItemBgActive,
|
|
78835
|
-
transition: "background-color ".concat(motionDurationFast)
|
|
79012
|
+
'&:active': {
|
|
79013
|
+
backgroundColor: colorItemBgSelected
|
|
78836
79014
|
}
|
|
78837
|
-
}),
|
|
79015
|
+
}), _ref3)), defineProperty_defineProperty(_ref14, componentCls + "-item-danger", (_ref5 = {
|
|
78838
79016
|
color: colorDangerItemText
|
|
78839
|
-
}, defineProperty_defineProperty(
|
|
79017
|
+
}, defineProperty_defineProperty(_ref5, "&" + componentCls + "-item:hover", defineProperty_defineProperty({}, "&:not(" + componentCls + "-item-selected):not(" + componentCls + "-submenu-selected)", {
|
|
78840
79018
|
color: colorDangerItemTextHover
|
|
78841
|
-
})), defineProperty_defineProperty(
|
|
79019
|
+
})), defineProperty_defineProperty(_ref5, "&" + componentCls + "-item:active", {
|
|
78842
79020
|
background: colorDangerItemBgActive
|
|
78843
|
-
}),
|
|
79021
|
+
}), _ref5)), defineProperty_defineProperty(_ref14, componentCls + "-item a", {
|
|
78844
79022
|
'&, &:hover': {
|
|
78845
79023
|
color: 'inherit'
|
|
78846
79024
|
}
|
|
78847
|
-
}), defineProperty_defineProperty(
|
|
79025
|
+
}), defineProperty_defineProperty(_ref14, componentCls + "-item-selected", (_ref6 = {
|
|
78848
79026
|
color: colorItemTextSelected
|
|
78849
|
-
}, defineProperty_defineProperty(
|
|
79027
|
+
}, defineProperty_defineProperty(_ref6, "&" + componentCls + "-item-danger", {
|
|
78850
79028
|
color: colorDangerItemTextSelected
|
|
78851
|
-
}), defineProperty_defineProperty(
|
|
79029
|
+
}), defineProperty_defineProperty(_ref6, "a, a:hover", {
|
|
78852
79030
|
color: 'inherit'
|
|
78853
|
-
}),
|
|
79031
|
+
}), _ref6)), defineProperty_defineProperty(_ref14, "&:not(" + componentCls + "-horizontal) " + componentCls + "-item-selected", defineProperty_defineProperty({
|
|
78854
79032
|
backgroundColor: colorItemBgSelected
|
|
78855
|
-
}, "&"
|
|
79033
|
+
}, "&" + componentCls + "-item-danger", {
|
|
78856
79034
|
backgroundColor: colorDangerItemBgSelected
|
|
78857
|
-
})), defineProperty_defineProperty(
|
|
79035
|
+
})), defineProperty_defineProperty(_ref14, componentCls + "-item, " + componentCls + "-submenu-title", defineProperty_defineProperty({}, "&:not(" + componentCls + "-item-disabled):focus-visible", extends_extends({}, accessibilityFocus(token)))), defineProperty_defineProperty(_ref14, "&" + componentCls + "-submenu > " + componentCls, {
|
|
78858
79036
|
backgroundColor: colorItemBg
|
|
78859
|
-
}), defineProperty_defineProperty(
|
|
79037
|
+
}), defineProperty_defineProperty(_ref14, "&" + componentCls + "-popup > " + componentCls, {
|
|
78860
79038
|
backgroundColor: colorItemBg
|
|
78861
|
-
}), defineProperty_defineProperty(
|
|
79039
|
+
}), defineProperty_defineProperty(_ref14, "&" + componentCls + "-horizontal", defineProperty_defineProperty({}, "> " + componentCls + "-item, > " + componentCls + "-submenu", (_ref9 = {
|
|
78862
79040
|
top: colorActiveBarBorderSize,
|
|
78863
79041
|
marginTop: -colorActiveBarBorderSize,
|
|
78864
79042
|
marginBottom: 0,
|
|
@@ -78867,52 +79045,52 @@ var getThemeStyle = function getThemeStyle(token, themeSuffix) {
|
|
|
78867
79045
|
position: 'absolute',
|
|
78868
79046
|
insetInline: menuItemPaddingInline,
|
|
78869
79047
|
bottom: 0,
|
|
78870
|
-
borderBottom:
|
|
78871
|
-
transition: "border-color "
|
|
79048
|
+
borderBottom: colorActiveBarHeight + "px solid transparent",
|
|
79049
|
+
transition: "border-color " + motionDurationSlow + " " + motionEaseInOut,
|
|
78872
79050
|
content: '""'
|
|
78873
79051
|
}
|
|
78874
|
-
}, defineProperty_defineProperty(
|
|
79052
|
+
}, defineProperty_defineProperty(_ref9, "&:hover, &-active, &-open", {
|
|
78875
79053
|
color: colorItemTextSelectedHorizontal,
|
|
78876
79054
|
'&::after': {
|
|
78877
|
-
borderWidth:
|
|
79055
|
+
borderWidth: colorActiveBarHeight + "px",
|
|
78878
79056
|
borderBottomColor: colorItemTextSelectedHorizontal
|
|
78879
79057
|
}
|
|
78880
|
-
}), defineProperty_defineProperty(
|
|
79058
|
+
}), defineProperty_defineProperty(_ref9, "&-selected", {
|
|
78881
79059
|
color: colorItemTextSelectedHorizontal,
|
|
78882
79060
|
backgroundColor: colorItemBgSelectedHorizontal,
|
|
78883
79061
|
'&::after': {
|
|
78884
|
-
borderWidth:
|
|
79062
|
+
borderWidth: colorActiveBarHeight + "px",
|
|
78885
79063
|
borderBottomColor: colorItemTextSelectedHorizontal
|
|
78886
79064
|
}
|
|
78887
|
-
}),
|
|
78888
|
-
borderInlineEnd:
|
|
78889
|
-
})), defineProperty_defineProperty(
|
|
79065
|
+
}), _ref9))), defineProperty_defineProperty(_ref14, "&" + componentCls + "-root", defineProperty_defineProperty({}, "&" + componentCls + "-inline, &" + componentCls + "-vertical", {
|
|
79066
|
+
borderInlineEnd: colorActiveBarBorderSize + "px " + lineType + " " + colorSplit
|
|
79067
|
+
})), defineProperty_defineProperty(_ref14, "&" + componentCls + "-inline", (_ref13 = {}, defineProperty_defineProperty(_ref13, componentCls + "-sub" + componentCls + "-inline", {
|
|
78890
79068
|
background: colorSubItemBg
|
|
78891
|
-
}), defineProperty_defineProperty(
|
|
78892
|
-
width: "calc(100% + "
|
|
78893
|
-
} : {}), defineProperty_defineProperty(
|
|
79069
|
+
}), defineProperty_defineProperty(_ref13, componentCls + "-item, " + componentCls + "-submenu-title", colorActiveBarBorderSize && colorActiveBarWidth ? {
|
|
79070
|
+
width: "calc(100% + " + colorActiveBarBorderSize + "px)"
|
|
79071
|
+
} : {}), defineProperty_defineProperty(_ref13, componentCls + "-item", defineProperty_defineProperty({
|
|
78894
79072
|
position: 'relative',
|
|
78895
79073
|
'&::after': {
|
|
78896
79074
|
position: 'absolute',
|
|
78897
79075
|
insetBlock: 0,
|
|
78898
79076
|
insetInlineEnd: 0,
|
|
78899
|
-
borderInlineEnd:
|
|
79077
|
+
borderInlineEnd: colorActiveBarWidth + "px solid " + colorItemTextSelected,
|
|
78900
79078
|
transform: 'scaleY(0.0001)',
|
|
78901
79079
|
opacity: 0,
|
|
78902
|
-
transition: ["transform "
|
|
79080
|
+
transition: ["transform " + motionDurationMid + " " + motionEaseOut, "opacity " + motionDurationMid + " " + motionEaseOut].join(','),
|
|
78903
79081
|
content: '""'
|
|
78904
79082
|
}
|
|
78905
|
-
}, "&"
|
|
79083
|
+
}, "&" + componentCls + "-item-danger", {
|
|
78906
79084
|
'&::after': {
|
|
78907
79085
|
borderInlineEndColor: colorDangerItemTextSelected
|
|
78908
79086
|
}
|
|
78909
|
-
})), defineProperty_defineProperty(
|
|
79087
|
+
})), defineProperty_defineProperty(_ref13, componentCls + "-selected, " + componentCls + "-item-selected", {
|
|
78910
79088
|
'&::after': {
|
|
78911
79089
|
transform: 'scaleY(1)',
|
|
78912
79090
|
opacity: 1,
|
|
78913
|
-
transition: ["transform "
|
|
79091
|
+
transition: ["transform " + motionDurationMid + " " + motionEaseInOut, "opacity " + motionDurationMid + " " + motionEaseInOut].join(',')
|
|
78914
79092
|
}
|
|
78915
|
-
}),
|
|
79093
|
+
}), _ref13)), _ref14));
|
|
78916
79094
|
};
|
|
78917
79095
|
/* harmony default export */ var theme = (getThemeStyle);
|
|
78918
79096
|
;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/vertical.js
|
|
@@ -78929,53 +79107,57 @@ var getVerticalInlineStyle = function getVerticalInlineStyle(token) {
|
|
|
78929
79107
|
menuArrowSize = token.menuArrowSize,
|
|
78930
79108
|
fontSize = token.fontSize;
|
|
78931
79109
|
var paddingWithArrow = menuArrowSize + fontSize;
|
|
78932
|
-
return _ref = {}, defineProperty_defineProperty(_ref,
|
|
79110
|
+
return _ref = {}, defineProperty_defineProperty(_ref, componentCls + "-item", {
|
|
78933
79111
|
position: 'relative'
|
|
78934
|
-
}), defineProperty_defineProperty(_ref,
|
|
79112
|
+
}), defineProperty_defineProperty(_ref, componentCls + "-item, " + componentCls + "-submenu-title", {
|
|
78935
79113
|
height: menuItemHeight,
|
|
78936
|
-
lineHeight:
|
|
79114
|
+
lineHeight: menuItemHeight + "px",
|
|
78937
79115
|
paddingInline: padding,
|
|
78938
79116
|
overflow: 'hidden',
|
|
78939
|
-
textOverflow: 'ellipsis'
|
|
78940
|
-
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-item"), {
|
|
79117
|
+
textOverflow: 'ellipsis',
|
|
78941
79118
|
marginInline: itemMarginInline,
|
|
78942
79119
|
marginBlock: menuItemMarginInline,
|
|
78943
|
-
width: "calc(100% - "
|
|
78944
|
-
}), defineProperty_defineProperty(_ref,
|
|
78945
|
-
marginBlock: menuItemMarginInline
|
|
78946
|
-
}), defineProperty_defineProperty(_ref, "".concat(componentCls, "-submenu"), {
|
|
79120
|
+
width: "calc(100% - " + itemMarginInline * 2 + "px)"
|
|
79121
|
+
}), defineProperty_defineProperty(_ref, componentCls + "-submenu", {
|
|
78947
79122
|
paddingBottom: 0.02
|
|
78948
|
-
}), defineProperty_defineProperty(_ref, "> "
|
|
79123
|
+
}), defineProperty_defineProperty(_ref, "> " + componentCls + "-item,\n > " + componentCls + "-submenu > " + componentCls + "-submenu-title", {
|
|
78949
79124
|
height: menuItemHeight,
|
|
78950
|
-
lineHeight:
|
|
78951
|
-
}), defineProperty_defineProperty(_ref,
|
|
79125
|
+
lineHeight: menuItemHeight + "px"
|
|
79126
|
+
}), defineProperty_defineProperty(_ref, componentCls + "-item-group-list " + componentCls + "-submenu-title,\n " + componentCls + "-submenu-title", {
|
|
78952
79127
|
paddingInlineEnd: paddingWithArrow
|
|
78953
79128
|
}), _ref;
|
|
78954
79129
|
};
|
|
78955
79130
|
var getVerticalStyle = function getVerticalStyle(token) {
|
|
78956
|
-
var
|
|
79131
|
+
var _ref3, _ref5, _ref7, _ref8, _ref12, _tooltip, _ref13;
|
|
78957
79132
|
var componentCls = token.componentCls,
|
|
78958
79133
|
iconCls = token.iconCls,
|
|
78959
79134
|
menuItemHeight = token.menuItemHeight,
|
|
78960
79135
|
colorTextLightSolid = token.colorTextLightSolid,
|
|
78961
79136
|
dropdownWidth = token.dropdownWidth,
|
|
78962
79137
|
controlHeightLG = token.controlHeightLG,
|
|
78963
|
-
|
|
79138
|
+
motionDurationMid = token.motionDurationMid,
|
|
78964
79139
|
motionEaseOut = token.motionEaseOut,
|
|
78965
79140
|
paddingXL = token.paddingXL,
|
|
79141
|
+
fontSizeSM = token.fontSizeSM,
|
|
78966
79142
|
fontSizeLG = token.fontSizeLG,
|
|
78967
79143
|
motionDurationSlow = token.motionDurationSlow,
|
|
78968
79144
|
paddingXS = token.paddingXS,
|
|
78969
79145
|
boxShadowSecondary = token.boxShadowSecondary;
|
|
78970
|
-
|
|
79146
|
+
var inlineItemStyle = {
|
|
79147
|
+
height: menuItemHeight,
|
|
79148
|
+
lineHeight: menuItemHeight + "px",
|
|
79149
|
+
listStylePosition: 'inside',
|
|
79150
|
+
listStyleType: 'disc'
|
|
79151
|
+
};
|
|
79152
|
+
return [(_ref3 = {}, defineProperty_defineProperty(_ref3, componentCls, defineProperty_defineProperty({}, "&-inline, &-vertical", extends_extends(defineProperty_defineProperty({}, "&" + componentCls + "-root", {
|
|
78971
79153
|
boxShadow: 'none'
|
|
78972
|
-
}), getVerticalInlineStyle(token)))), defineProperty_defineProperty(
|
|
79154
|
+
}), getVerticalInlineStyle(token)))), defineProperty_defineProperty(_ref3, componentCls + "-submenu-popup", defineProperty_defineProperty({}, componentCls + "-vertical", extends_extends(extends_extends({}, getVerticalInlineStyle(token)), {
|
|
78973
79155
|
boxShadow: boxShadowSecondary
|
|
78974
|
-
}))),
|
|
79156
|
+
}))), _ref3),
|
|
78975
79157
|
// Vertical only
|
|
78976
|
-
defineProperty_defineProperty({},
|
|
79158
|
+
defineProperty_defineProperty({}, componentCls + "-submenu-popup " + componentCls + "-vertical" + componentCls + "-sub", {
|
|
78977
79159
|
minWidth: dropdownWidth,
|
|
78978
|
-
maxHeight: "calc(100vh - "
|
|
79160
|
+
maxHeight: "calc(100vh - " + controlHeightLG * 2.5 + "px)",
|
|
78979
79161
|
padding: '0',
|
|
78980
79162
|
overflow: 'hidden',
|
|
78981
79163
|
borderInlineEnd: 0,
|
|
@@ -78987,63 +79169,58 @@ var getVerticalStyle = function getVerticalStyle(token) {
|
|
|
78987
79169
|
}
|
|
78988
79170
|
}),
|
|
78989
79171
|
// Inline Only
|
|
78990
|
-
defineProperty_defineProperty({},
|
|
79172
|
+
defineProperty_defineProperty({}, componentCls + "-inline", (_ref8 = {
|
|
78991
79173
|
width: '100%'
|
|
78992
|
-
}, defineProperty_defineProperty(
|
|
79174
|
+
}, defineProperty_defineProperty(_ref8, "&" + componentCls + "-root", defineProperty_defineProperty({}, componentCls + "-item, " + componentCls + "-submenu-title", (_ref5 = {
|
|
78993
79175
|
display: 'flex',
|
|
78994
79176
|
alignItems: 'center',
|
|
78995
|
-
transition: ["border-color "
|
|
78996
|
-
}, defineProperty_defineProperty(
|
|
79177
|
+
transition: ["border-color " + motionDurationSlow, "background " + motionDurationSlow, "padding " + motionDurationMid + " " + motionEaseOut]
|
|
79178
|
+
}, defineProperty_defineProperty(_ref5, "> " + componentCls + "-title-content", {
|
|
78997
79179
|
flex: 'auto',
|
|
78998
79180
|
minWidth: 0,
|
|
78999
79181
|
overflow: 'hidden',
|
|
79000
79182
|
textOverflow: 'ellipsis'
|
|
79001
|
-
}), defineProperty_defineProperty(
|
|
79183
|
+
}), defineProperty_defineProperty(_ref5, '> *', {
|
|
79002
79184
|
flex: 'none'
|
|
79003
|
-
}),
|
|
79185
|
+
}), _ref5))), defineProperty_defineProperty(_ref8, componentCls + "-sub" + componentCls + "-inline", (_ref7 = {
|
|
79004
79186
|
padding: 0,
|
|
79005
79187
|
border: 0,
|
|
79006
79188
|
borderRadius: 0,
|
|
79007
79189
|
boxShadow: 'none'
|
|
79008
|
-
}, defineProperty_defineProperty(
|
|
79009
|
-
height: menuItemHeight,
|
|
79010
|
-
lineHeight: "".concat(menuItemHeight, "px"),
|
|
79011
|
-
listStylePosition: 'inside',
|
|
79012
|
-
listStyleType: 'disc'
|
|
79013
|
-
}), defineProperty_defineProperty(_$concat$concat2, "& ".concat(componentCls, "-item-group-title"), {
|
|
79190
|
+
}, defineProperty_defineProperty(_ref7, "& > " + componentCls + "-submenu > " + componentCls + "-submenu-title", inlineItemStyle), defineProperty_defineProperty(_ref7, "& " + componentCls + "-item-group-title", {
|
|
79014
79191
|
paddingInlineStart: paddingXL
|
|
79015
|
-
}),
|
|
79192
|
+
}), _ref7)), defineProperty_defineProperty(_ref8, componentCls + "-item", inlineItemStyle), _ref8)),
|
|
79016
79193
|
// Inline Collapse Only
|
|
79017
|
-
defineProperty_defineProperty({},
|
|
79194
|
+
defineProperty_defineProperty({}, componentCls + "-inline-collapsed", (_ref13 = {
|
|
79018
79195
|
width: menuItemHeight * 2
|
|
79019
|
-
}, defineProperty_defineProperty(
|
|
79196
|
+
}, defineProperty_defineProperty(_ref13, "&" + componentCls + "-root", defineProperty_defineProperty({}, componentCls + "-item, " + componentCls + "-submenu " + componentCls + "-submenu-title", defineProperty_defineProperty({}, "> " + componentCls + "-inline-collapsed-noicon", {
|
|
79020
79197
|
fontSize: fontSizeLG,
|
|
79021
79198
|
textAlign: 'center'
|
|
79022
|
-
}))), defineProperty_defineProperty(
|
|
79199
|
+
}))), defineProperty_defineProperty(_ref13, "> " + componentCls + "-item,\n > " + componentCls + "-item-group > " + componentCls + "-item-group-list > " + componentCls + "-item,\n > " + componentCls + "-item-group > " + componentCls + "-item-group-list > " + componentCls + "-submenu > " + componentCls + "-submenu-title,\n > " + componentCls + "-submenu > " + componentCls + "-submenu-title", (_ref12 = {
|
|
79023
79200
|
insetInlineStart: 0,
|
|
79024
|
-
paddingInline: "calc(50% - "
|
|
79201
|
+
paddingInline: "calc(50% - " + fontSizeSM + "px)",
|
|
79025
79202
|
textOverflow: 'clip'
|
|
79026
|
-
}, defineProperty_defineProperty(
|
|
79203
|
+
}, defineProperty_defineProperty(_ref12, componentCls + "-submenu-arrow", {
|
|
79027
79204
|
opacity: 0
|
|
79028
|
-
}), defineProperty_defineProperty(
|
|
79205
|
+
}), defineProperty_defineProperty(_ref12, componentCls + "-item-icon, " + iconCls, {
|
|
79029
79206
|
margin: 0,
|
|
79030
79207
|
fontSize: fontSizeLG,
|
|
79031
|
-
lineHeight:
|
|
79208
|
+
lineHeight: menuItemHeight + "px",
|
|
79032
79209
|
'+ span': {
|
|
79033
79210
|
display: 'inline-block',
|
|
79034
79211
|
opacity: 0
|
|
79035
79212
|
}
|
|
79036
|
-
}),
|
|
79213
|
+
}), _ref12)), defineProperty_defineProperty(_ref13, componentCls + "-item-icon, " + iconCls, {
|
|
79037
79214
|
display: 'inline-block'
|
|
79038
|
-
}), defineProperty_defineProperty(
|
|
79215
|
+
}), defineProperty_defineProperty(_ref13, '&-tooltip', (_tooltip = {
|
|
79039
79216
|
pointerEvents: 'none'
|
|
79040
|
-
}, defineProperty_defineProperty(_tooltip,
|
|
79217
|
+
}, defineProperty_defineProperty(_tooltip, componentCls + "-item-icon, " + iconCls, {
|
|
79041
79218
|
display: 'none'
|
|
79042
79219
|
}), defineProperty_defineProperty(_tooltip, 'a, a:hover', {
|
|
79043
79220
|
color: colorTextLightSolid
|
|
79044
|
-
}), _tooltip)), defineProperty_defineProperty(
|
|
79221
|
+
}), _tooltip)), defineProperty_defineProperty(_ref13, componentCls + "-item-group-title", extends_extends(extends_extends({}, textEllipsis), {
|
|
79045
79222
|
paddingInline: paddingXS
|
|
79046
|
-
})),
|
|
79223
|
+
})), _ref13))];
|
|
79047
79224
|
};
|
|
79048
79225
|
/* harmony default export */ var vertical = (getVerticalStyle);
|
|
79049
79226
|
;// CONCATENATED MODULE: ./node_modules/antd/es/menu/style/index.js
|
|
@@ -79059,7 +79236,7 @@ var getVerticalStyle = function getVerticalStyle(token) {
|
|
|
79059
79236
|
|
|
79060
79237
|
// =============================== Base ===============================
|
|
79061
79238
|
var getBaseStyle = function getBaseStyle(token) {
|
|
79062
|
-
var
|
|
79239
|
+
var _ref5, _ref9, _ref10, _extends2;
|
|
79063
79240
|
var antCls = token.antCls,
|
|
79064
79241
|
componentCls = token.componentCls,
|
|
79065
79242
|
fontSize = token.fontSize,
|
|
@@ -79085,12 +79262,12 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79085
79262
|
return [
|
|
79086
79263
|
// Misc
|
|
79087
79264
|
defineProperty_defineProperty({
|
|
79088
|
-
'': defineProperty_defineProperty({}, ""
|
|
79265
|
+
'': defineProperty_defineProperty({}, "" + componentCls, defineProperty_defineProperty({}, "&-hidden", {
|
|
79089
79266
|
display: 'none'
|
|
79090
|
-
}))
|
|
79091
|
-
},
|
|
79267
|
+
}))
|
|
79268
|
+
}, componentCls + "-submenu-hidden", {
|
|
79092
79269
|
display: 'none'
|
|
79093
|
-
}), defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (
|
|
79270
|
+
}), defineProperty_defineProperty({}, componentCls, extends_extends(extends_extends(extends_extends({}, style_resetComponent(token)), clearFix()), (_extends2 = {
|
|
79094
79271
|
marginBottom: 0,
|
|
79095
79272
|
paddingInlineStart: 0,
|
|
79096
79273
|
// Override default ul/ol
|
|
@@ -79098,41 +79275,41 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79098
79275
|
lineHeight: 0,
|
|
79099
79276
|
listStyle: 'none',
|
|
79100
79277
|
outline: 'none',
|
|
79101
|
-
transition: ["background "
|
|
79278
|
+
transition: ["background " + motionDurationSlow,
|
|
79102
79279
|
// Magic cubic here but smooth transition
|
|
79103
|
-
"width "
|
|
79104
|
-
}, defineProperty_defineProperty(
|
|
79280
|
+
"width " + motionDurationSlow + " cubic-bezier(0.2, 0, 0, 1) 0s"].join(',')
|
|
79281
|
+
}, defineProperty_defineProperty(_extends2, "ul, ol", {
|
|
79105
79282
|
margin: 0,
|
|
79106
79283
|
padding: 0,
|
|
79107
79284
|
listStyle: 'none'
|
|
79108
|
-
}), defineProperty_defineProperty(
|
|
79285
|
+
}), defineProperty_defineProperty(_extends2, "&-overflow", defineProperty_defineProperty({
|
|
79109
79286
|
display: 'flex'
|
|
79110
|
-
},
|
|
79287
|
+
}, componentCls + "-item", {
|
|
79111
79288
|
flex: 'none'
|
|
79112
|
-
})), defineProperty_defineProperty(
|
|
79289
|
+
})), defineProperty_defineProperty(_extends2, componentCls + "-item, " + componentCls + "-submenu, " + componentCls + "-submenu-title", {
|
|
79113
79290
|
borderRadius: token.radiusItem
|
|
79114
|
-
}), defineProperty_defineProperty(
|
|
79115
|
-
padding:
|
|
79291
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-item-group-title", {
|
|
79292
|
+
padding: paddingXS + "px " + padding + "px",
|
|
79116
79293
|
fontSize: fontSize,
|
|
79117
79294
|
lineHeight: lineHeight,
|
|
79118
|
-
transition: "all "
|
|
79119
|
-
}), defineProperty_defineProperty(
|
|
79120
|
-
transition: ["border-color "
|
|
79121
|
-
}), defineProperty_defineProperty(
|
|
79122
|
-
transition: ["border-color "
|
|
79123
|
-
}), defineProperty_defineProperty(
|
|
79295
|
+
transition: "all " + motionDurationSlow
|
|
79296
|
+
}), defineProperty_defineProperty(_extends2, "&-horizontal " + componentCls + "-submenu", {
|
|
79297
|
+
transition: ["border-color " + motionDurationSlow + " " + motionEaseInOut, "background " + motionDurationSlow + " " + motionEaseInOut].join(',')
|
|
79298
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-submenu, " + componentCls + "-submenu-inline", {
|
|
79299
|
+
transition: ["border-color " + motionDurationSlow + " " + motionEaseInOut, "background " + motionDurationSlow + " " + motionEaseInOut, "padding " + motionDurationMid + " " + motionEaseInOut].join(',')
|
|
79300
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-submenu " + componentCls + "-sub", {
|
|
79124
79301
|
cursor: 'initial',
|
|
79125
|
-
transition: ["background "
|
|
79126
|
-
}), defineProperty_defineProperty(
|
|
79127
|
-
transition: "color "
|
|
79128
|
-
}), defineProperty_defineProperty(
|
|
79302
|
+
transition: ["background " + motionDurationSlow + " " + motionEaseInOut, "padding " + motionDurationSlow + " " + motionEaseInOut]
|
|
79303
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-title-content", {
|
|
79304
|
+
transition: "color " + motionDurationSlow
|
|
79305
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-item a", {
|
|
79129
79306
|
'&::before': {
|
|
79130
79307
|
position: 'absolute',
|
|
79131
79308
|
inset: 0,
|
|
79132
79309
|
backgroundColor: 'transparent',
|
|
79133
79310
|
content: '""'
|
|
79134
79311
|
}
|
|
79135
|
-
}), defineProperty_defineProperty(
|
|
79312
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-item-divider", {
|
|
79136
79313
|
overflow: 'hidden',
|
|
79137
79314
|
lineHeight: 0,
|
|
79138
79315
|
borderColor: colorSplit,
|
|
@@ -79143,26 +79320,26 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79143
79320
|
'&-dashed': {
|
|
79144
79321
|
borderStyle: 'dashed'
|
|
79145
79322
|
}
|
|
79146
|
-
}), defineProperty_defineProperty(
|
|
79323
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-item, " + componentCls + "-submenu-title", (_ref5 = {
|
|
79147
79324
|
position: 'relative',
|
|
79148
79325
|
display: 'block',
|
|
79149
79326
|
margin: 0,
|
|
79150
79327
|
// paddingInline: menuItemPaddingInline,
|
|
79151
79328
|
whiteSpace: 'nowrap',
|
|
79152
79329
|
cursor: 'pointer',
|
|
79153
|
-
transition: ["border-color "
|
|
79154
|
-
}, defineProperty_defineProperty(
|
|
79330
|
+
transition: ["border-color " + motionDurationSlow, "background " + motionDurationSlow, "padding " + motionDurationSlow + " " + motionEaseInOut].join(',')
|
|
79331
|
+
}, defineProperty_defineProperty(_ref5, componentCls + "-item-icon, " + iconCls, {
|
|
79155
79332
|
minWidth: fontSize,
|
|
79156
79333
|
fontSize: fontSize,
|
|
79157
|
-
transition: ["font-size "
|
|
79334
|
+
transition: ["font-size " + motionDurationMid + " " + motionEaseOut, "margin " + motionDurationSlow + " " + motionEaseInOut, "color " + motionDurationSlow].join(','),
|
|
79158
79335
|
'+ span': {
|
|
79159
79336
|
marginInlineStart: controlHeightSM - fontSize,
|
|
79160
79337
|
opacity: 1,
|
|
79161
|
-
transition: ["opacity "
|
|
79338
|
+
transition: ["opacity " + motionDurationSlow + " " + motionEaseInOut, "margin " + motionDurationSlow, "color " + motionDurationSlow].join(',')
|
|
79162
79339
|
}
|
|
79163
|
-
}), defineProperty_defineProperty(
|
|
79340
|
+
}), defineProperty_defineProperty(_ref5, componentCls + "-item-icon", extends_extends({}, resetIcon())), defineProperty_defineProperty(_ref5, "&" + componentCls + "-item-only-child", defineProperty_defineProperty({}, "> " + iconCls + ", > " + componentCls + "-item-icon", {
|
|
79164
79341
|
marginInlineEnd: 0
|
|
79165
|
-
})),
|
|
79342
|
+
})), _ref5)), defineProperty_defineProperty(_extends2, componentCls + "-item-disabled, " + componentCls + "-submenu-disabled", defineProperty_defineProperty({
|
|
79166
79343
|
background: 'none !important',
|
|
79167
79344
|
cursor: 'not-allowed',
|
|
79168
79345
|
'&::after': {
|
|
@@ -79171,15 +79348,15 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79171
79348
|
a: {
|
|
79172
79349
|
color: 'inherit !important'
|
|
79173
79350
|
}
|
|
79174
|
-
}, "> "
|
|
79351
|
+
}, "> " + componentCls + "-submenu-title", {
|
|
79175
79352
|
color: 'inherit !important',
|
|
79176
79353
|
cursor: 'not-allowed'
|
|
79177
|
-
})), defineProperty_defineProperty(
|
|
79354
|
+
})), defineProperty_defineProperty(_extends2, componentCls + "-item-group", defineProperty_defineProperty({}, componentCls + "-item-group-list", defineProperty_defineProperty({
|
|
79178
79355
|
margin: 0,
|
|
79179
79356
|
padding: 0
|
|
79180
|
-
},
|
|
79181
|
-
paddingInline:
|
|
79182
|
-
}))), defineProperty_defineProperty(
|
|
79357
|
+
}, componentCls + "-item, " + componentCls + "-submenu-title", {
|
|
79358
|
+
paddingInline: fontSize * 2 + "px " + padding + "px"
|
|
79359
|
+
}))), defineProperty_defineProperty(_extends2, '&-submenu', defineProperty_defineProperty({
|
|
79183
79360
|
'&-popup': {
|
|
79184
79361
|
position: 'absolute',
|
|
79185
79362
|
zIndex: zIndexPopup,
|
|
@@ -79190,7 +79367,7 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79190
79367
|
// https://github.com/ant-design/ant-design/issues/13955
|
|
79191
79368
|
'&::before': {
|
|
79192
79369
|
position: 'absolute',
|
|
79193
|
-
inset:
|
|
79370
|
+
inset: menuPanelMaskInset + "px 0 0",
|
|
79194
79371
|
zIndex: -1,
|
|
79195
79372
|
width: '100%',
|
|
79196
79373
|
height: '100%',
|
|
@@ -79203,21 +79380,21 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79203
79380
|
top: 0,
|
|
79204
79381
|
insetInlineStart: menuPanelMaskInset
|
|
79205
79382
|
}
|
|
79206
|
-
}, "> "
|
|
79383
|
+
}, "> " + componentCls, (_ref9 = {
|
|
79207
79384
|
borderRadius: borderRadiusLG
|
|
79208
|
-
}, defineProperty_defineProperty(
|
|
79385
|
+
}, defineProperty_defineProperty(_ref9, "> " + componentCls + "-item", {
|
|
79209
79386
|
borderRadius: radiusSubMenuItem
|
|
79210
|
-
}), defineProperty_defineProperty(
|
|
79211
|
-
transition: "transform "
|
|
79212
|
-
}),
|
|
79387
|
+
}), defineProperty_defineProperty(_ref9, componentCls + "-submenu-title::after", {
|
|
79388
|
+
transition: "transform " + motionDurationSlow + " " + motionEaseInOut
|
|
79389
|
+
}), _ref9))), defineProperty_defineProperty(_extends2, componentCls + "-submenu", (_ref10 = {}, defineProperty_defineProperty(_ref10, "&-expand-icon, &-arrow", {
|
|
79213
79390
|
position: 'absolute',
|
|
79214
79391
|
top: '50%',
|
|
79215
79392
|
insetInlineEnd: token.margin,
|
|
79216
79393
|
width: menuArrowSize,
|
|
79217
79394
|
color: 'currentcolor',
|
|
79218
79395
|
transform: 'translateY(-50%)',
|
|
79219
|
-
transition: "transform "
|
|
79220
|
-
}), defineProperty_defineProperty(
|
|
79396
|
+
transition: "transform " + motionDurationSlow + " " + motionEaseInOut
|
|
79397
|
+
}), defineProperty_defineProperty(_ref10, '&-arrow', {
|
|
79221
79398
|
// →
|
|
79222
79399
|
'&::before, &::after': {
|
|
79223
79400
|
position: 'absolute',
|
|
@@ -79225,42 +79402,42 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79225
79402
|
height: menuArrowSize * 0.15,
|
|
79226
79403
|
backgroundColor: 'currentcolor',
|
|
79227
79404
|
borderRadius: borderRadius,
|
|
79228
|
-
transition: ["background "
|
|
79405
|
+
transition: ["background " + motionDurationSlow + " " + motionEaseInOut, "transform " + motionDurationSlow + " " + motionEaseInOut, "top " + motionDurationSlow + " " + motionEaseInOut, "color " + motionDurationSlow + " " + motionEaseInOut].join(','),
|
|
79229
79406
|
content: '""'
|
|
79230
79407
|
},
|
|
79231
79408
|
'&::before': {
|
|
79232
|
-
transform: "rotate(45deg) translateY(-"
|
|
79409
|
+
transform: "rotate(45deg) translateY(-" + menuArrowOffset + ")"
|
|
79233
79410
|
},
|
|
79234
79411
|
'&::after': {
|
|
79235
|
-
transform: "rotate(-45deg) translateY("
|
|
79412
|
+
transform: "rotate(-45deg) translateY(" + menuArrowOffset + ")"
|
|
79236
79413
|
}
|
|
79237
|
-
}),
|
|
79414
|
+
}), _ref10)), defineProperty_defineProperty(_extends2, "&-inline-collapsed " + componentCls + "-submenu-arrow,\n &-inline " + componentCls + "-submenu-arrow", {
|
|
79238
79415
|
// ↓
|
|
79239
79416
|
'&::before': {
|
|
79240
|
-
transform: "rotate(-45deg) translateX("
|
|
79417
|
+
transform: "rotate(-45deg) translateX(" + menuArrowOffset + ")"
|
|
79241
79418
|
},
|
|
79242
79419
|
'&::after': {
|
|
79243
|
-
transform: "rotate(45deg) translateX(-"
|
|
79420
|
+
transform: "rotate(45deg) translateX(-" + menuArrowOffset + ")"
|
|
79244
79421
|
}
|
|
79245
|
-
}), defineProperty_defineProperty(
|
|
79422
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-submenu-open" + componentCls + "-submenu-inline > " + componentCls + "-submenu-title > " + componentCls + "-submenu-arrow", {
|
|
79246
79423
|
// ↑
|
|
79247
|
-
transform: "translateY(-"
|
|
79424
|
+
transform: "translateY(-" + menuArrowSize * 0.2 + "px)",
|
|
79248
79425
|
'&::after': {
|
|
79249
|
-
transform: "rotate(-45deg) translateX(-"
|
|
79426
|
+
transform: "rotate(-45deg) translateX(-" + menuArrowOffset + ")"
|
|
79250
79427
|
},
|
|
79251
79428
|
'&::before': {
|
|
79252
|
-
transform: "rotate(45deg) translateX("
|
|
79429
|
+
transform: "rotate(45deg) translateX(" + menuArrowOffset + ")"
|
|
79253
79430
|
}
|
|
79254
|
-
}),
|
|
79431
|
+
}), _extends2))),
|
|
79255
79432
|
// Integration with header element so menu items have the same height
|
|
79256
|
-
defineProperty_defineProperty({},
|
|
79433
|
+
defineProperty_defineProperty({}, antCls + "-layout-header", defineProperty_defineProperty({}, componentCls, {
|
|
79257
79434
|
lineHeight: 'inherit'
|
|
79258
79435
|
}))];
|
|
79259
79436
|
};
|
|
79260
79437
|
// ============================== Export ==============================
|
|
79261
79438
|
/* harmony default export */ var menu_style = (function (prefixCls, injectStyle) {
|
|
79262
|
-
var useOriginHook = genComponentStyleHook('Menu', function (token,
|
|
79263
|
-
var overrideComponentToken =
|
|
79439
|
+
var useOriginHook = genComponentStyleHook('Menu', function (token, _ref14) {
|
|
79440
|
+
var overrideComponentToken = _ref14.overrideComponentToken;
|
|
79264
79441
|
// Dropdown will handle menu style self. We do not need to handle this.
|
|
79265
79442
|
if (injectStyle === false) {
|
|
79266
79443
|
return [];
|
|
@@ -79280,7 +79457,7 @@ var getBaseStyle = function getBaseStyle(token) {
|
|
|
79280
79457
|
menuItemMarginInline: token.marginXXS,
|
|
79281
79458
|
menuArrowSize: menuArrowSize,
|
|
79282
79459
|
menuHorizontalHeight: controlHeightLG * 1.15,
|
|
79283
|
-
menuArrowOffset:
|
|
79460
|
+
menuArrowOffset: menuArrowSize * 0.25 + "px",
|
|
79284
79461
|
menuPanelMaskInset: -7 // Still a hardcode here since it's offset by rc-align
|
|
79285
79462
|
});
|
|
79286
79463
|
|
|
@@ -79423,7 +79600,7 @@ var MenuDivider = function MenuDivider(_a) {
|
|
|
79423
79600
|
var _React$useContext = external_React_.useContext(context_ConfigContext),
|
|
79424
79601
|
getPrefixCls = _React$useContext.getPrefixCls;
|
|
79425
79602
|
var prefixCls = getPrefixCls('menu', customizePrefixCls);
|
|
79426
|
-
var classString = classnames_default()(defineProperty_defineProperty({},
|
|
79603
|
+
var classString = classnames_default()(defineProperty_defineProperty({}, prefixCls + "-item-divider-dashed", !!dashed), className);
|
|
79427
79604
|
return /*#__PURE__*/external_React_.createElement(Divider_Divider, extends_extends({
|
|
79428
79605
|
className: classString
|
|
79429
79606
|
}, restProps));
|
|
@@ -79467,7 +79644,7 @@ var generateId = function () {
|
|
|
79467
79644
|
return function () {
|
|
79468
79645
|
var prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
79469
79646
|
i += 1;
|
|
79470
|
-
return ""
|
|
79647
|
+
return "" + prefix + i;
|
|
79471
79648
|
};
|
|
79472
79649
|
}();
|
|
79473
79650
|
var Sider_Sider = /*#__PURE__*/(/* unused pure expression or super */ null && (React.forwardRef(function (_a, ref) {
|
|
@@ -79533,7 +79710,7 @@ var Sider_Sider = /*#__PURE__*/(/* unused pure expression or super */ null && (R
|
|
|
79533
79710
|
var _window = window,
|
|
79534
79711
|
matchMedia = _window.matchMedia;
|
|
79535
79712
|
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
|
79536
|
-
mql = matchMedia("(max-width: "
|
|
79713
|
+
mql = matchMedia("(max-width: " + dimensionMaxMap[breakpoint] + ")");
|
|
79537
79714
|
try {
|
|
79538
79715
|
mql.addEventListener('change', responsiveHandler);
|
|
79539
79716
|
} catch (error) {
|
|
@@ -79568,11 +79745,11 @@ var Sider_Sider = /*#__PURE__*/(/* unused pure expression or super */ null && (R
|
|
|
79568
79745
|
var divProps = omit(props, ['collapsed']);
|
|
79569
79746
|
var rawWidth = collapsed ? collapsedWidth : width;
|
|
79570
79747
|
// use "px" as fallback unit for width
|
|
79571
|
-
var siderWidth = isNumeric(rawWidth) ?
|
|
79748
|
+
var siderWidth = isNumeric(rawWidth) ? rawWidth + "px" : String(rawWidth);
|
|
79572
79749
|
// special trigger when collapsedWidth == 0
|
|
79573
79750
|
var zeroWidthTrigger = parseFloat(String(collapsedWidth || 0)) === 0 ? /*#__PURE__*/React.createElement("span", {
|
|
79574
79751
|
onClick: toggle,
|
|
79575
|
-
className: classNames(
|
|
79752
|
+
className: classNames(prefixCls + "-zero-width-trigger", prefixCls + "-zero-width-trigger-" + (reverseArrow ? 'right' : 'left')),
|
|
79576
79753
|
style: zeroWidthTriggerStyle
|
|
79577
79754
|
}, trigger || /*#__PURE__*/React.createElement(BarsOutlined, null)) : null;
|
|
79578
79755
|
var iconObj = {
|
|
@@ -79582,26 +79759,26 @@ var Sider_Sider = /*#__PURE__*/(/* unused pure expression or super */ null && (R
|
|
|
79582
79759
|
var status = collapsed ? 'collapsed' : 'expanded';
|
|
79583
79760
|
var defaultTrigger = iconObj[status];
|
|
79584
79761
|
var triggerDom = trigger !== null ? zeroWidthTrigger || /*#__PURE__*/React.createElement("div", {
|
|
79585
|
-
className:
|
|
79762
|
+
className: prefixCls + "-trigger",
|
|
79586
79763
|
onClick: toggle,
|
|
79587
79764
|
style: {
|
|
79588
79765
|
width: siderWidth
|
|
79589
79766
|
}
|
|
79590
79767
|
}, trigger || defaultTrigger) : null;
|
|
79591
79768
|
var divStyle = _extends(_extends({}, style), {
|
|
79592
|
-
flex: "0 0 "
|
|
79769
|
+
flex: "0 0 " + siderWidth,
|
|
79593
79770
|
maxWidth: siderWidth,
|
|
79594
79771
|
minWidth: siderWidth,
|
|
79595
79772
|
width: siderWidth
|
|
79596
79773
|
});
|
|
79597
|
-
var siderCls = classNames(prefixCls,
|
|
79774
|
+
var siderCls = classNames(prefixCls, prefixCls + "-" + theme, (_classNames = {}, _defineProperty(_classNames, prefixCls + "-collapsed", !!collapsed), _defineProperty(_classNames, prefixCls + "-has-trigger", collapsible && trigger !== null && !zeroWidthTrigger), _defineProperty(_classNames, prefixCls + "-below", !!below), _defineProperty(_classNames, prefixCls + "-zero-width", parseFloat(siderWidth) === 0), _classNames), className);
|
|
79598
79775
|
return /*#__PURE__*/React.createElement("aside", _extends({
|
|
79599
79776
|
className: siderCls
|
|
79600
79777
|
}, divProps, {
|
|
79601
79778
|
style: divStyle,
|
|
79602
79779
|
ref: ref
|
|
79603
79780
|
}), /*#__PURE__*/React.createElement("div", {
|
|
79604
|
-
className:
|
|
79781
|
+
className: prefixCls + "-children"
|
|
79605
79782
|
}, children), collapsible || below && zeroWidthTrigger ? triggerDom : null);
|
|
79606
79783
|
};
|
|
79607
79784
|
var contextValue = React.useMemo(function () {
|
|
@@ -79926,7 +80103,7 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
|
|
|
79926
80103
|
return {
|
|
79927
80104
|
borderRadius: {
|
|
79928
80105
|
_skip_check_: true,
|
|
79929
|
-
value: "0 0 "
|
|
80106
|
+
value: "0 0 " + innerRadius + "px"
|
|
79930
80107
|
},
|
|
79931
80108
|
pointerEvents: 'none',
|
|
79932
80109
|
width: width * 2,
|
|
@@ -79942,7 +80119,7 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
|
|
|
79942
80119
|
margin: 'auto',
|
|
79943
80120
|
borderRadius: {
|
|
79944
80121
|
_skip_check_: true,
|
|
79945
|
-
value: "0 0 "
|
|
80122
|
+
value: "0 0 " + innerRadius + "px 0"
|
|
79946
80123
|
},
|
|
79947
80124
|
transform: 'translateY(50%) rotate(-135deg)',
|
|
79948
80125
|
boxShadow: boxShadow,
|
|
@@ -79956,7 +80133,7 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
|
|
|
79956
80133
|
width: width * 2,
|
|
79957
80134
|
height: width / 2,
|
|
79958
80135
|
background: bgColor,
|
|
79959
|
-
clipPath: "path('M "
|
|
80136
|
+
clipPath: "path('M " + ax + " " + ay + " A " + outerRadius + " " + outerRadius + " 0 0 0 " + bx + " " + by + " L " + cx + " " + cy + " A " + innerRadius + " " + innerRadius + " 0 0 1 " + dx + " " + dy + " L " + ex + " " + ey + " A " + outerRadius + " " + outerRadius + " 0 0 0 " + fx + " " + fy + " Z')",
|
|
79960
80137
|
content: '""'
|
|
79961
80138
|
}
|
|
79962
80139
|
};
|
|
@@ -79968,7 +80145,7 @@ var roundedArrow = function roundedArrow(width, innerRadius, outerRadius, bgColo
|
|
|
79968
80145
|
function connectArrowCls(classList) {
|
|
79969
80146
|
var showArrowCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
79970
80147
|
return classList.map(function (cls) {
|
|
79971
|
-
return ""
|
|
80148
|
+
return "" + showArrowCls + cls;
|
|
79972
80149
|
}).join(',');
|
|
79973
80150
|
}
|
|
79974
80151
|
var MAX_VERTICAL_CONTENT_RADIUS = 8;
|
|
@@ -80008,7 +80185,7 @@ function getArrowStyle(token, options) {
|
|
|
80008
80185
|
dropdownArrowOffsetVertical = _getArrowOffset.dropdownArrowOffsetVertical,
|
|
80009
80186
|
dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
|
|
80010
80187
|
var dropdownArrowDistance = sizePopupArrow / 2 + marginXXS;
|
|
80011
|
-
return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls,
|
|
80188
|
+
return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, componentCls + "-arrow", [extends_extends(extends_extends({
|
|
80012
80189
|
position: 'absolute',
|
|
80013
80190
|
zIndex: 1,
|
|
80014
80191
|
display: 'block'
|
|
@@ -80016,75 +80193,75 @@ function getArrowStyle(token, options) {
|
|
|
80016
80193
|
'&:before': {
|
|
80017
80194
|
background: colorBg
|
|
80018
80195
|
}
|
|
80019
|
-
})]), defineProperty_defineProperty(_componentCls, ["&-placement-top "
|
|
80196
|
+
})]), defineProperty_defineProperty(_componentCls, ["&-placement-top " + componentCls + "-arrow", "&-placement-topLeft " + componentCls + "-arrow", "&-placement-topRight " + componentCls + "-arrow"].join(','), {
|
|
80020
80197
|
bottom: 0,
|
|
80021
80198
|
transform: 'translateY(100%) rotate(180deg)'
|
|
80022
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-top "
|
|
80199
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-top " + componentCls + "-arrow", {
|
|
80023
80200
|
left: {
|
|
80024
80201
|
_skip_check_: true,
|
|
80025
80202
|
value: '50%'
|
|
80026
80203
|
},
|
|
80027
80204
|
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
|
80028
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-topLeft "
|
|
80205
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-topLeft " + componentCls + "-arrow", {
|
|
80029
80206
|
left: {
|
|
80030
80207
|
_skip_check_: true,
|
|
80031
80208
|
value: dropdownArrowOffset
|
|
80032
80209
|
}
|
|
80033
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-topRight "
|
|
80210
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-topRight " + componentCls + "-arrow", {
|
|
80034
80211
|
right: {
|
|
80035
80212
|
_skip_check_: true,
|
|
80036
80213
|
value: dropdownArrowOffset
|
|
80037
80214
|
}
|
|
80038
|
-
}), defineProperty_defineProperty(_componentCls, ["&-placement-bottom "
|
|
80215
|
+
}), defineProperty_defineProperty(_componentCls, ["&-placement-bottom " + componentCls + "-arrow", "&-placement-bottomLeft " + componentCls + "-arrow", "&-placement-bottomRight " + componentCls + "-arrow"].join(','), {
|
|
80039
80216
|
top: 0,
|
|
80040
80217
|
transform: "translateY(-100%)"
|
|
80041
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-bottom "
|
|
80218
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-bottom " + componentCls + "-arrow", {
|
|
80042
80219
|
left: {
|
|
80043
80220
|
_skip_check_: true,
|
|
80044
80221
|
value: '50%'
|
|
80045
80222
|
},
|
|
80046
80223
|
transform: "translateX(-50%) translateY(-100%)"
|
|
80047
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft "
|
|
80224
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-bottomLeft " + componentCls + "-arrow", {
|
|
80048
80225
|
left: {
|
|
80049
80226
|
_skip_check_: true,
|
|
80050
80227
|
value: dropdownArrowOffset
|
|
80051
80228
|
}
|
|
80052
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight "
|
|
80229
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-bottomRight " + componentCls + "-arrow", {
|
|
80053
80230
|
right: {
|
|
80054
80231
|
_skip_check_: true,
|
|
80055
80232
|
value: dropdownArrowOffset
|
|
80056
80233
|
}
|
|
80057
|
-
}), defineProperty_defineProperty(_componentCls, ["&-placement-left "
|
|
80234
|
+
}), defineProperty_defineProperty(_componentCls, ["&-placement-left " + componentCls + "-arrow", "&-placement-leftTop " + componentCls + "-arrow", "&-placement-leftBottom " + componentCls + "-arrow"].join(','), {
|
|
80058
80235
|
right: {
|
|
80059
80236
|
_skip_check_: true,
|
|
80060
80237
|
value: 0
|
|
80061
80238
|
},
|
|
80062
80239
|
transform: 'translateX(100%) rotate(90deg)'
|
|
80063
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-left "
|
|
80240
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-left " + componentCls + "-arrow", {
|
|
80064
80241
|
top: {
|
|
80065
80242
|
_skip_check_: true,
|
|
80066
80243
|
value: '50%'
|
|
80067
80244
|
},
|
|
80068
80245
|
transform: 'translateY(-50%) translateX(100%) rotate(90deg)'
|
|
80069
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-leftTop "
|
|
80246
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-leftTop " + componentCls + "-arrow", {
|
|
80070
80247
|
top: dropdownArrowOffsetVertical
|
|
80071
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom "
|
|
80248
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-leftBottom " + componentCls + "-arrow", {
|
|
80072
80249
|
bottom: dropdownArrowOffsetVertical
|
|
80073
|
-
}), defineProperty_defineProperty(_componentCls, ["&-placement-right "
|
|
80250
|
+
}), defineProperty_defineProperty(_componentCls, ["&-placement-right " + componentCls + "-arrow", "&-placement-rightTop " + componentCls + "-arrow", "&-placement-rightBottom " + componentCls + "-arrow"].join(','), {
|
|
80074
80251
|
left: {
|
|
80075
80252
|
_skip_check_: true,
|
|
80076
80253
|
value: 0
|
|
80077
80254
|
},
|
|
80078
80255
|
transform: 'translateX(-100%) rotate(-90deg)'
|
|
80079
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-right "
|
|
80256
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-right " + componentCls + "-arrow", {
|
|
80080
80257
|
top: {
|
|
80081
80258
|
_skip_check_: true,
|
|
80082
80259
|
value: '50%'
|
|
80083
80260
|
},
|
|
80084
80261
|
transform: 'translateY(-50%) translateX(-100%) rotate(-90deg)'
|
|
80085
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-rightTop "
|
|
80262
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-rightTop " + componentCls + "-arrow", {
|
|
80086
80263
|
top: dropdownArrowOffsetVertical
|
|
80087
|
-
}), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom "
|
|
80264
|
+
}), defineProperty_defineProperty(_componentCls, "&-placement-rightBottom " + componentCls + "-arrow", {
|
|
80088
80265
|
bottom: dropdownArrowOffsetVertical
|
|
80089
80266
|
}), defineProperty_defineProperty(_componentCls, connectArrowCls(["&-placement-topLeft", "&-placement-top", "&-placement-topRight"], showArrowCls), {
|
|
80090
80267
|
paddingBottom: dropdownArrowDistance
|
|
@@ -80112,13 +80289,13 @@ function getArrowStyle(token, options) {
|
|
|
80112
80289
|
var generatorTooltipPresetColor = function generatorTooltipPresetColor(token) {
|
|
80113
80290
|
var componentCls = token.componentCls;
|
|
80114
80291
|
return PresetColors.reduce(function (previousValue, currentValue) {
|
|
80115
|
-
var _previousValue
|
|
80116
|
-
var lightColor = token[
|
|
80117
|
-
previousValue["&"
|
|
80292
|
+
var _previousValue;
|
|
80293
|
+
var lightColor = token[currentValue + "-6"];
|
|
80294
|
+
previousValue["&" + componentCls + "-" + currentValue] = (_previousValue = {}, defineProperty_defineProperty(_previousValue, componentCls + "-inner", {
|
|
80118
80295
|
backgroundColor: lightColor
|
|
80119
|
-
}), defineProperty_defineProperty(_previousValue
|
|
80296
|
+
}), defineProperty_defineProperty(_previousValue, componentCls + "-arrow", {
|
|
80120
80297
|
'--antd-arrow-background-color': lightColor
|
|
80121
|
-
}), _previousValue
|
|
80298
|
+
}), _previousValue);
|
|
80122
80299
|
return previousValue;
|
|
80123
80300
|
}, {});
|
|
80124
80301
|
};
|
|
@@ -80150,10 +80327,10 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
80150
80327
|
display: 'none'
|
|
80151
80328
|
},
|
|
80152
80329
|
'--antd-arrow-background-color': tooltipBg
|
|
80153
|
-
}, defineProperty_defineProperty(_extends2,
|
|
80330
|
+
}, defineProperty_defineProperty(_extends2, componentCls + "-inner", {
|
|
80154
80331
|
minWidth: controlHeight,
|
|
80155
80332
|
minHeight: controlHeight,
|
|
80156
|
-
padding:
|
|
80333
|
+
padding: paddingSM / 2 + "px " + paddingXS + "px",
|
|
80157
80334
|
color: tooltipColor,
|
|
80158
80335
|
textAlign: 'start',
|
|
80159
80336
|
textDecoration: 'none',
|
|
@@ -80161,9 +80338,9 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
80161
80338
|
backgroundColor: tooltipBg,
|
|
80162
80339
|
borderRadius: tooltipBorderRadius,
|
|
80163
80340
|
boxShadow: boxShadowSecondary
|
|
80164
|
-
}), defineProperty_defineProperty(_extends2, ["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(','), defineProperty_defineProperty({},
|
|
80341
|
+
}), defineProperty_defineProperty(_extends2, ["&-placement-left", "&-placement-leftTop", "&-placement-leftBottom", "&-placement-right", "&-placement-rightTop", "&-placement-rightBottom"].join(','), defineProperty_defineProperty({}, componentCls + "-inner", {
|
|
80165
80342
|
borderRadius: tooltipBorderRadius > MAX_VERTICAL_CONTENT_RADIUS ? MAX_VERTICAL_CONTENT_RADIUS : tooltipBorderRadius
|
|
80166
|
-
})), defineProperty_defineProperty(_extends2,
|
|
80343
|
+
})), defineProperty_defineProperty(_extends2, componentCls + "-content", {
|
|
80167
80344
|
position: 'relative'
|
|
80168
80345
|
}), _extends2)), generatorTooltipPresetColor(token)), {
|
|
80169
80346
|
// RTL
|
|
@@ -80181,7 +80358,7 @@ var genTooltipStyle = function genTooltipStyle(token) {
|
|
|
80181
80358
|
limitVerticalRadius: true
|
|
80182
80359
|
}),
|
|
80183
80360
|
// Pure Render
|
|
80184
|
-
defineProperty_defineProperty({},
|
|
80361
|
+
defineProperty_defineProperty({}, componentCls + "-pure", {
|
|
80185
80362
|
position: 'relative',
|
|
80186
80363
|
maxWidth: 'none'
|
|
80187
80364
|
})];
|
|
@@ -80226,9 +80403,9 @@ var PresetColorTypes = tuple('pink', 'red', 'yellow', 'orange', 'cyan', 'green',
|
|
|
80226
80403
|
/* eslint-disable import/prefer-default-export */
|
|
80227
80404
|
|
|
80228
80405
|
|
|
80229
|
-
var PresetColorRegex = new RegExp("^("
|
|
80406
|
+
var PresetColorRegex = new RegExp("^(" + PresetColorTypes.join('|') + ")(-inverse)?$");
|
|
80230
80407
|
function parseColor(prefixCls, color) {
|
|
80231
|
-
var className = classnames_default()(defineProperty_defineProperty({},
|
|
80408
|
+
var className = classnames_default()(defineProperty_defineProperty({}, prefixCls + "-" + color, color && PresetColorRegex.test(color)));
|
|
80232
80409
|
var overlayStyle;
|
|
80233
80410
|
var arrowStyle;
|
|
80234
80411
|
if (color && !PresetColorRegex.test(color)) {
|
|
@@ -80276,7 +80453,7 @@ function PurePanel(props) {
|
|
|
80276
80453
|
var formattedOverlayInnerStyle = extends_extends(extends_extends({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
80277
80454
|
var arrowContentStyle = colorInfo.arrowStyle;
|
|
80278
80455
|
return wrapSSR( /*#__PURE__*/external_React_.createElement("div", {
|
|
80279
|
-
className: classnames_default()(hashId, prefixCls,
|
|
80456
|
+
className: classnames_default()(hashId, prefixCls, prefixCls + "-pure", prefixCls + "-placement-" + placement, className, colorInfo.className),
|
|
80280
80457
|
style: arrowContentStyle
|
|
80281
80458
|
}, /*#__PURE__*/external_React_.createElement(Popup_Popup, extends_extends({}, props, {
|
|
80282
80459
|
className: hashId,
|
|
@@ -80350,7 +80527,7 @@ function getDisabledCompatibleChildren(element, prefixCls) {
|
|
|
80350
80527
|
});
|
|
80351
80528
|
return /*#__PURE__*/external_React_.createElement("span", {
|
|
80352
80529
|
style: spanStyle,
|
|
80353
|
-
className: classnames_default()(element.props.className,
|
|
80530
|
+
className: classnames_default()(element.props.className, prefixCls + "-disabled-compatible-wrapper")
|
|
80354
80531
|
}, child);
|
|
80355
80532
|
}
|
|
80356
80533
|
return element;
|
|
@@ -80421,16 +80598,16 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
|
|
|
80421
80598
|
left: '50%'
|
|
80422
80599
|
};
|
|
80423
80600
|
if (/top|Bottom/.test(placement)) {
|
|
80424
|
-
transformOrigin.top =
|
|
80601
|
+
transformOrigin.top = rect.height - align.offset[1] + "px";
|
|
80425
80602
|
} else if (/Top|bottom/.test(placement)) {
|
|
80426
|
-
transformOrigin.top =
|
|
80603
|
+
transformOrigin.top = -align.offset[1] + "px";
|
|
80427
80604
|
}
|
|
80428
80605
|
if (/left|Right/.test(placement)) {
|
|
80429
|
-
transformOrigin.left =
|
|
80606
|
+
transformOrigin.left = rect.width - align.offset[0] + "px";
|
|
80430
80607
|
} else if (/right|Left/.test(placement)) {
|
|
80431
|
-
transformOrigin.left =
|
|
80608
|
+
transformOrigin.left = -align.offset[0] + "px";
|
|
80432
80609
|
}
|
|
80433
|
-
domNode.style.transformOrigin =
|
|
80610
|
+
domNode.style.transformOrigin = transformOrigin.left + " " + transformOrigin.top;
|
|
80434
80611
|
};
|
|
80435
80612
|
var getOverlay = function getOverlay() {
|
|
80436
80613
|
var title = props.title,
|
|
@@ -80459,7 +80636,7 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
|
|
|
80459
80636
|
}
|
|
80460
80637
|
var child = getDisabledCompatibleChildren(isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/external_React_.createElement("span", null, children), prefixCls);
|
|
80461
80638
|
var childProps = child.props;
|
|
80462
|
-
var childCls = !childProps.className || typeof childProps.className === 'string' ? classnames_default()(childProps.className, defineProperty_defineProperty({}, openClassName ||
|
|
80639
|
+
var childCls = !childProps.className || typeof childProps.className === 'string' ? classnames_default()(childProps.className, defineProperty_defineProperty({}, openClassName || prefixCls + "-open", true)) : childProps.className;
|
|
80463
80640
|
// Style
|
|
80464
80641
|
var _useStyle = tooltip_style(prefixCls, !injectFromPopover),
|
|
80465
80642
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
@@ -80469,7 +80646,7 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
|
|
|
80469
80646
|
var colorInfo = parseColor(prefixCls, color);
|
|
80470
80647
|
var formattedOverlayInnerStyle = extends_extends(extends_extends({}, overlayInnerStyle), colorInfo.overlayStyle);
|
|
80471
80648
|
var arrowContentStyle = colorInfo.arrowStyle;
|
|
80472
|
-
var customOverlayClassName = classnames_default()(overlayClassName, defineProperty_defineProperty({},
|
|
80649
|
+
var customOverlayClassName = classnames_default()(overlayClassName, defineProperty_defineProperty({}, prefixCls + "-rtl", direction === 'rtl'), colorInfo.className, hashId);
|
|
80473
80650
|
return wrapSSR( /*#__PURE__*/external_React_.createElement(rc_tooltip_es, extends_extends({}, otherProps, {
|
|
80474
80651
|
placement: placement,
|
|
80475
80652
|
mouseEnterDelay: mouseEnterDelay,
|
|
@@ -80487,7 +80664,7 @@ var tooltip_Tooltip = /*#__PURE__*/external_React_.forwardRef(function (props, r
|
|
|
80487
80664
|
onPopupAlign: onPopupAlign,
|
|
80488
80665
|
overlayInnerStyle: formattedOverlayInnerStyle,
|
|
80489
80666
|
arrowContent: /*#__PURE__*/external_React_.createElement("span", {
|
|
80490
|
-
className:
|
|
80667
|
+
className: prefixCls + "-arrow-content"
|
|
80491
80668
|
}),
|
|
80492
80669
|
motion: {
|
|
80493
80670
|
motionName: motion_getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),
|
|
@@ -80575,15 +80752,15 @@ var MenuItem_MenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
80575
80752
|
}
|
|
80576
80753
|
var childrenLength = toArray_toArray(children).length;
|
|
80577
80754
|
var returnNode = /*#__PURE__*/external_React_.createElement(es_MenuItem, extends_extends({}, rest, {
|
|
80578
|
-
className: classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames,
|
|
80755
|
+
className: classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-item-danger", danger), defineProperty_defineProperty(_classNames, prefixCls + "-item-only-child", (icon ? childrenLength + 1 : childrenLength) === 1), _classNames), className),
|
|
80579
80756
|
title: typeof title === 'string' ? title : undefined
|
|
80580
80757
|
}), cloneElement(icon, {
|
|
80581
|
-
className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '',
|
|
80758
|
+
className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', prefixCls + "-item-icon")
|
|
80582
80759
|
}), _this.renderItemChildren(inlineCollapsed));
|
|
80583
80760
|
if (!disableMenuItemTitleTooltip) {
|
|
80584
80761
|
returnNode = /*#__PURE__*/external_React_.createElement(tooltip, extends_extends({}, tooltipProps, {
|
|
80585
80762
|
placement: direction === 'rtl' ? 'left' : 'right',
|
|
80586
|
-
overlayClassName:
|
|
80763
|
+
overlayClassName: prefixCls + "-inline-collapsed-tooltip"
|
|
80587
80764
|
}), returnNode);
|
|
80588
80765
|
}
|
|
80589
80766
|
return returnNode;
|
|
@@ -80600,14 +80777,14 @@ var MenuItem_MenuItem = /*#__PURE__*/function (_React$Component) {
|
|
|
80600
80777
|
icon = _this$props2.icon,
|
|
80601
80778
|
children = _this$props2.children;
|
|
80602
80779
|
var wrapNode = /*#__PURE__*/external_React_.createElement("span", {
|
|
80603
|
-
className:
|
|
80780
|
+
className: prefixCls + "-title-content"
|
|
80604
80781
|
}, children);
|
|
80605
80782
|
// inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span
|
|
80606
80783
|
// ref: https://github.com/ant-design/ant-design/pull/23456
|
|
80607
80784
|
if (!icon || isValidElement(children) && children.type === 'span') {
|
|
80608
80785
|
if (children && inlineCollapsed && firstLevel && typeof children === 'string') {
|
|
80609
80786
|
return /*#__PURE__*/external_React_.createElement("div", {
|
|
80610
|
-
className:
|
|
80787
|
+
className: prefixCls + "-inline-collapsed-noicon"
|
|
80611
80788
|
}, children.charAt(0));
|
|
80612
80789
|
}
|
|
80613
80790
|
}
|
|
@@ -80640,23 +80817,24 @@ function SubMenu_SubMenu(props) {
|
|
|
80640
80817
|
var context = external_React_.useContext(menu_MenuContext);
|
|
80641
80818
|
var prefixCls = context.prefixCls,
|
|
80642
80819
|
inlineCollapsed = context.inlineCollapsed,
|
|
80643
|
-
contextTheme = context.theme
|
|
80820
|
+
contextTheme = context.theme,
|
|
80821
|
+
mode = context.mode;
|
|
80644
80822
|
var parentPath = useFullPath();
|
|
80645
80823
|
var titleNode;
|
|
80646
80824
|
if (!icon) {
|
|
80647
80825
|
titleNode = inlineCollapsed && !parentPath.length && title && typeof title === 'string' ? /*#__PURE__*/external_React_.createElement("div", {
|
|
80648
|
-
className:
|
|
80826
|
+
className: prefixCls + "-inline-collapsed-noicon"
|
|
80649
80827
|
}, title.charAt(0)) : /*#__PURE__*/external_React_.createElement("span", {
|
|
80650
|
-
className:
|
|
80828
|
+
className: prefixCls + "-title-content"
|
|
80651
80829
|
}, title);
|
|
80652
80830
|
} else {
|
|
80653
80831
|
// inline-collapsed.md demo 依赖 span 来隐藏文字,有 icon 属性,则内部包裹一个 span
|
|
80654
80832
|
// ref: https://github.com/ant-design/ant-design/pull/23456
|
|
80655
80833
|
var titleIsSpan = isValidElement(title) && title.type === 'span';
|
|
80656
80834
|
titleNode = /*#__PURE__*/external_React_.createElement(external_React_.Fragment, null, cloneElement(icon, {
|
|
80657
|
-
className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '',
|
|
80835
|
+
className: classnames_default()(isValidElement(icon) ? (_a = icon.props) === null || _a === void 0 ? void 0 : _a.className : '', prefixCls + "-item-icon")
|
|
80658
80836
|
}), titleIsSpan ? title : /*#__PURE__*/external_React_.createElement("span", {
|
|
80659
|
-
className:
|
|
80837
|
+
className: prefixCls + "-title-content"
|
|
80660
80838
|
}, title));
|
|
80661
80839
|
}
|
|
80662
80840
|
var contextValue = external_React_.useMemo(function () {
|
|
@@ -80664,11 +80842,14 @@ function SubMenu_SubMenu(props) {
|
|
|
80664
80842
|
firstLevel: false
|
|
80665
80843
|
});
|
|
80666
80844
|
}, [context]);
|
|
80845
|
+
var popupOffset = mode === 'horizontal' ? [0, 8] : [10, 0];
|
|
80667
80846
|
return /*#__PURE__*/external_React_.createElement(menu_MenuContext.Provider, {
|
|
80668
80847
|
value: contextValue
|
|
80669
|
-
}, /*#__PURE__*/external_React_.createElement(SubMenu, extends_extends({
|
|
80848
|
+
}, /*#__PURE__*/external_React_.createElement(SubMenu, extends_extends({
|
|
80849
|
+
popupOffset: popupOffset
|
|
80850
|
+
}, omit_omit(props, ['icon']), {
|
|
80670
80851
|
title: titleNode,
|
|
80671
|
-
popupClassName: classnames_default()(prefixCls, popupClassName,
|
|
80852
|
+
popupClassName: classnames_default()(prefixCls, popupClassName, prefixCls + "-" + (customTheme || contextTheme))
|
|
80672
80853
|
})));
|
|
80673
80854
|
}
|
|
80674
80855
|
/* harmony default export */ var menu_SubMenu = (SubMenu_SubMenu);
|
|
@@ -80699,7 +80880,7 @@ function useItems_convertItemsToNodes(list) {
|
|
|
80699
80880
|
key = _a.key,
|
|
80700
80881
|
type = _a.type,
|
|
80701
80882
|
restProps = useItems_rest(_a, ["label", "children", "key", "type"]);
|
|
80702
|
-
var mergedKey = key !== null && key !== void 0 ? key : "tmp-"
|
|
80883
|
+
var mergedKey = key !== null && key !== void 0 ? key : "tmp-" + index;
|
|
80703
80884
|
// MenuItemGroup & SubMenuItem
|
|
80704
80885
|
if (children || type === 'group') {
|
|
80705
80886
|
if (type === 'group') {
|
|
@@ -80828,11 +81009,11 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
80828
81009
|
}, [inlineCollapsed, siderCollapsed]);
|
|
80829
81010
|
var defaultMotions = {
|
|
80830
81011
|
horizontal: {
|
|
80831
|
-
motionName:
|
|
81012
|
+
motionName: rootPrefixCls + "-slide-up"
|
|
80832
81013
|
},
|
|
80833
81014
|
inline: motion(rootPrefixCls),
|
|
80834
81015
|
other: {
|
|
80835
|
-
motionName:
|
|
81016
|
+
motionName: rootPrefixCls + "-zoom-big"
|
|
80836
81017
|
}
|
|
80837
81018
|
};
|
|
80838
81019
|
var prefixCls = getPrefixCls('menu', customizePrefixCls || overrideObj.prefixCls);
|
|
@@ -80840,14 +81021,14 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
80840
81021
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
80841
81022
|
wrapSSR = _useStyle2[0],
|
|
80842
81023
|
hashId = _useStyle2[1];
|
|
80843
|
-
var menuClassName = classnames_default()(
|
|
81024
|
+
var menuClassName = classnames_default()(prefixCls + "-" + theme, className);
|
|
80844
81025
|
// ====================== Expand Icon ========================
|
|
80845
81026
|
var mergedExpandIcon;
|
|
80846
81027
|
if (typeof expandIcon === 'function') {
|
|
80847
81028
|
mergedExpandIcon = expandIcon;
|
|
80848
81029
|
} else {
|
|
80849
81030
|
mergedExpandIcon = cloneElement(expandIcon || overrideObj.expandIcon, {
|
|
80850
|
-
className:
|
|
81031
|
+
className: prefixCls + "-submenu-expand-icon"
|
|
80851
81032
|
});
|
|
80852
81033
|
}
|
|
80853
81034
|
// ======================== Context ==========================
|
|
@@ -80858,6 +81039,7 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
80858
81039
|
direction: direction,
|
|
80859
81040
|
firstLevel: true,
|
|
80860
81041
|
theme: theme,
|
|
81042
|
+
mode: mergedMode,
|
|
80861
81043
|
disableMenuItemTitleTooltip: _internalDisableMenuItemTitleTooltip
|
|
80862
81044
|
};
|
|
80863
81045
|
}, [prefixCls, mergedInlineCollapsed, direction, _internalDisableMenuItemTitleTooltip, theme]);
|
|
@@ -80869,7 +81051,7 @@ var InternalMenu = /*#__PURE__*/(0,external_React_.forwardRef)(function (props,
|
|
|
80869
81051
|
}, /*#__PURE__*/external_React_.createElement(rc_menu_es, extends_extends({
|
|
80870
81052
|
getPopupContainer: getPopupContainer,
|
|
80871
81053
|
overflowedIndicator: /*#__PURE__*/external_React_.createElement(icons_EllipsisOutlined, null),
|
|
80872
|
-
overflowedIndicatorPopupClassName:
|
|
81054
|
+
overflowedIndicatorPopupClassName: prefixCls + "-" + theme,
|
|
80873
81055
|
mode: mergedMode,
|
|
80874
81056
|
selectable: mergedSelectable,
|
|
80875
81057
|
onClick: onItemClick
|
|
@@ -81225,7 +81407,7 @@ var useLocaleReceiver = function useLocaleReceiver(componentName, defaultLocale)
|
|
|
81225
81407
|
|
|
81226
81408
|
|
|
81227
81409
|
|
|
81228
|
-
var dynamicStyleMark = "-ant-"
|
|
81410
|
+
var dynamicStyleMark = "-ant-" + Date.now() + "-" + Math.random();
|
|
81229
81411
|
function cssVariables_getStyle(globalPrefixCls, theme) {
|
|
81230
81412
|
var variables = {};
|
|
81231
81413
|
var formatColor = function formatColor(color, updater) {
|
|
@@ -81236,13 +81418,13 @@ function cssVariables_getStyle(globalPrefixCls, theme) {
|
|
|
81236
81418
|
var fillColor = function fillColor(colorVal, type) {
|
|
81237
81419
|
var baseColor = new TinyColor(colorVal);
|
|
81238
81420
|
var colorPalettes = (0,index_esm.generate)(baseColor.toRgbString());
|
|
81239
|
-
variables[
|
|
81240
|
-
variables[
|
|
81241
|
-
variables[
|
|
81242
|
-
variables[
|
|
81243
|
-
variables[
|
|
81244
|
-
variables[
|
|
81245
|
-
variables[
|
|
81421
|
+
variables[type + "-color"] = formatColor(baseColor);
|
|
81422
|
+
variables[type + "-color-disabled"] = colorPalettes[1];
|
|
81423
|
+
variables[type + "-color-hover"] = colorPalettes[4];
|
|
81424
|
+
variables[type + "-color-active"] = colorPalettes[6];
|
|
81425
|
+
variables[type + "-color-outline"] = baseColor.clone().setAlpha(0.2).toRgbString();
|
|
81426
|
+
variables[type + "-color-deprecated-bg"] = colorPalettes[0];
|
|
81427
|
+
variables[type + "-color-deprecated-border"] = colorPalettes[2];
|
|
81246
81428
|
};
|
|
81247
81429
|
// ================ Primary Color ================
|
|
81248
81430
|
if (theme.primaryColor) {
|
|
@@ -81251,7 +81433,7 @@ function cssVariables_getStyle(globalPrefixCls, theme) {
|
|
|
81251
81433
|
var primaryColors = (0,index_esm.generate)(primaryColor.toRgbString());
|
|
81252
81434
|
// Legacy - We should use semantic naming standard
|
|
81253
81435
|
primaryColors.forEach(function (color, index) {
|
|
81254
|
-
variables["primary-"
|
|
81436
|
+
variables["primary-" + (index + 1)] = color;
|
|
81255
81437
|
});
|
|
81256
81438
|
// Deprecated
|
|
81257
81439
|
variables['primary-color-deprecated-l-35'] = formatColor(primaryColor, function (c) {
|
|
@@ -81295,14 +81477,14 @@ function cssVariables_getStyle(globalPrefixCls, theme) {
|
|
|
81295
81477
|
}
|
|
81296
81478
|
// Convert to css variables
|
|
81297
81479
|
var cssList = Object.keys(variables).map(function (key) {
|
|
81298
|
-
return "--"
|
|
81480
|
+
return "--" + globalPrefixCls + "-" + key + ": " + variables[key] + ";";
|
|
81299
81481
|
});
|
|
81300
|
-
return "\n :root {\n "
|
|
81482
|
+
return ("\n :root {\n " + cssList.join('\n') + "\n }\n ").trim();
|
|
81301
81483
|
}
|
|
81302
81484
|
function registerTheme(globalPrefixCls, theme) {
|
|
81303
81485
|
var style = cssVariables_getStyle(globalPrefixCls, theme);
|
|
81304
81486
|
if (canUseDom()) {
|
|
81305
|
-
updateCSS(style,
|
|
81487
|
+
updateCSS(style, dynamicStyleMark + "-dynamic-theme");
|
|
81306
81488
|
} else {
|
|
81307
81489
|
false ? 0 : void 0;
|
|
81308
81490
|
}
|
|
@@ -81314,7 +81496,7 @@ function registerTheme(globalPrefixCls, theme) {
|
|
|
81314
81496
|
|
|
81315
81497
|
function useTheme(theme, parentTheme) {
|
|
81316
81498
|
var themeConfig = theme || {};
|
|
81317
|
-
var parentThemeConfig =
|
|
81499
|
+
var parentThemeConfig = themeConfig.inherit === false || !parentTheme ? theme_defaultConfig : parentTheme;
|
|
81318
81500
|
var mergedTheme = useMemo_useMemo(function () {
|
|
81319
81501
|
if (!theme) {
|
|
81320
81502
|
return parentTheme;
|
|
@@ -81350,6 +81532,28 @@ var SizeContextProvider = function SizeContextProvider(_ref) {
|
|
|
81350
81532
|
});
|
|
81351
81533
|
};
|
|
81352
81534
|
/* harmony default export */ var config_provider_SizeContext = (SizeContext);
|
|
81535
|
+
;// CONCATENATED MODULE: ./node_modules/antd/es/config-provider/style/index.js
|
|
81536
|
+
|
|
81537
|
+
|
|
81538
|
+
|
|
81539
|
+
|
|
81540
|
+
|
|
81541
|
+
var config_provider_style_useStyle = function useStyle(iconPrefixCls) {
|
|
81542
|
+
var _useToken = theme_useToken(),
|
|
81543
|
+
_useToken2 = slicedToArray_slicedToArray(_useToken, 2),
|
|
81544
|
+
theme = _useToken2[0],
|
|
81545
|
+
token = _useToken2[1];
|
|
81546
|
+
// Generate style for icons
|
|
81547
|
+
return useStyleRegister({
|
|
81548
|
+
theme: theme,
|
|
81549
|
+
token: token,
|
|
81550
|
+
hashId: '',
|
|
81551
|
+
path: ['ant-design-icons', iconPrefixCls]
|
|
81552
|
+
}, function () {
|
|
81553
|
+
return [defineProperty_defineProperty({}, "." + iconPrefixCls, resetIcon())];
|
|
81554
|
+
});
|
|
81555
|
+
};
|
|
81556
|
+
/* harmony default export */ var config_provider_style = (config_provider_style_useStyle);
|
|
81353
81557
|
;// CONCATENATED MODULE: ./node_modules/antd/es/config-provider/index.js
|
|
81354
81558
|
|
|
81355
81559
|
var config_provider_rest = undefined && undefined.__rest || function (s, e) {
|
|
@@ -81379,6 +81583,7 @@ var config_provider_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
81379
81583
|
|
|
81380
81584
|
|
|
81381
81585
|
|
|
81586
|
+
|
|
81382
81587
|
var configConsumerProps = (/* unused pure expression or super */ null && (['getTargetContainer', 'getPopupContainer', 'rootPrefixCls', 'getPrefixCls', 'renderEmpty', 'csp', 'autoInsertSpaceInButton', 'locale', 'pageHeader']));
|
|
81383
81588
|
// These props is used by `useContext` directly in sub component
|
|
81384
81589
|
var PASSED_PROPS = ['getTargetContainer', 'getPopupContainer', 'renderEmpty', 'pageHeader', 'input', 'pagination', 'form'];
|
|
@@ -81409,7 +81614,7 @@ var globalConfig = function globalConfig() {
|
|
|
81409
81614
|
return {
|
|
81410
81615
|
getPrefixCls: function getPrefixCls(suffixCls, customizePrefixCls) {
|
|
81411
81616
|
if (customizePrefixCls) return customizePrefixCls;
|
|
81412
|
-
return suffixCls ?
|
|
81617
|
+
return suffixCls ? getGlobalPrefixCls() + "-" + suffixCls : getGlobalPrefixCls();
|
|
81413
81618
|
},
|
|
81414
81619
|
getIconPrefixCls: getGlobalIconPrefixCls,
|
|
81415
81620
|
getRootPrefixCls: function getRootPrefixCls() {
|
|
@@ -81443,10 +81648,12 @@ var ProviderChildren = function ProviderChildren(props) {
|
|
|
81443
81648
|
var prefixCls = props.prefixCls;
|
|
81444
81649
|
if (customizePrefixCls) return customizePrefixCls;
|
|
81445
81650
|
var mergedPrefixCls = prefixCls || parentContext.getPrefixCls('');
|
|
81446
|
-
return suffixCls ?
|
|
81651
|
+
return suffixCls ? mergedPrefixCls + "-" + suffixCls : mergedPrefixCls;
|
|
81447
81652
|
}, [parentContext.getPrefixCls, props.prefixCls]);
|
|
81448
81653
|
var iconPrefixCls = customIconPrefixCls || parentContext.iconPrefixCls || context_defaultIconPrefixCls;
|
|
81654
|
+
var shouldWrapSSR = iconPrefixCls !== parentContext.iconPrefixCls;
|
|
81449
81655
|
var csp = customCsp || parentContext.csp;
|
|
81656
|
+
var wrapSSR = config_provider_style(iconPrefixCls);
|
|
81450
81657
|
var mergedTheme = useTheme(theme, parentContext.theme);
|
|
81451
81658
|
var config = extends_extends(extends_extends({}, parentContext), {
|
|
81452
81659
|
csp: csp,
|
|
@@ -81484,7 +81691,7 @@ var ProviderChildren = function ProviderChildren(props) {
|
|
|
81484
81691
|
csp: csp
|
|
81485
81692
|
};
|
|
81486
81693
|
}, [iconPrefixCls, csp]);
|
|
81487
|
-
var childNode = children;
|
|
81694
|
+
var childNode = shouldWrapSSR ? wrapSSR(children) : children;
|
|
81488
81695
|
// Additional Form provider
|
|
81489
81696
|
var validateMessages = {};
|
|
81490
81697
|
if (locale) {
|
|
@@ -81595,7 +81802,7 @@ function genPurePanel(Component, defaultPrefixCls, getDropdownCls) {
|
|
|
81595
81802
|
});
|
|
81596
81803
|
var interval = setInterval(function () {
|
|
81597
81804
|
var _a;
|
|
81598
|
-
var dropdownCls = getDropdownCls ? "."
|
|
81805
|
+
var dropdownCls = getDropdownCls ? "." + getDropdownCls(prefixCls) : "." + prefixCls + "-dropdown";
|
|
81599
81806
|
var popup = (_a = holderRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(dropdownCls);
|
|
81600
81807
|
if (popup) {
|
|
81601
81808
|
clearInterval(interval);
|
|
@@ -81682,7 +81889,7 @@ var genSpaceStyle = function genSpaceStyle(token) {
|
|
|
81682
81889
|
alignItems: 'flex-baseline'
|
|
81683
81890
|
}
|
|
81684
81891
|
}
|
|
81685
|
-
},
|
|
81892
|
+
}, componentCls + "-space-item", {
|
|
81686
81893
|
'&:empty': {
|
|
81687
81894
|
display: 'none'
|
|
81688
81895
|
}
|
|
@@ -81721,7 +81928,7 @@ var useCompactItemContext = function useCompactItemContext(prefixCls, direction)
|
|
|
81721
81928
|
isFirstItem = compactItemContext.isFirstItem,
|
|
81722
81929
|
isLastItem = compactItemContext.isLastItem;
|
|
81723
81930
|
var separator = compactDirection === 'vertical' ? '-vertical-' : '-';
|
|
81724
|
-
return classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames,
|
|
81931
|
+
return classnames_default()((_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-compact" + separator + "item", true), defineProperty_defineProperty(_classNames, prefixCls + "-compact" + separator + "first-item", isFirstItem), defineProperty_defineProperty(_classNames, prefixCls + "-compact" + separator + "last-item", isLastItem), defineProperty_defineProperty(_classNames, prefixCls + "-compact" + separator + "item-rtl", direction === 'rtl'), _classNames));
|
|
81725
81932
|
}, [prefixCls, direction, compactItemContext]);
|
|
81726
81933
|
return {
|
|
81727
81934
|
compactSize: compactItemContext === null || compactItemContext === void 0 ? void 0 : compactItemContext.compactSize,
|
|
@@ -81760,12 +81967,12 @@ var Compact = function Compact(props) {
|
|
|
81760
81967
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
81761
81968
|
wrapSSR = _useStyle2[0],
|
|
81762
81969
|
hashId = _useStyle2[1];
|
|
81763
|
-
var clx = classnames_default()(prefixCls, hashId, (_classNames2 = {}, defineProperty_defineProperty(_classNames2,
|
|
81970
|
+
var clx = classnames_default()(prefixCls, hashId, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, prefixCls + "-rtl", directionConfig === 'rtl'), defineProperty_defineProperty(_classNames2, prefixCls + "-block", block), defineProperty_defineProperty(_classNames2, prefixCls + "-vertical", direction === 'vertical'), _classNames2), className);
|
|
81764
81971
|
var compactItemContext = external_React_.useContext(SpaceCompactItemContext);
|
|
81765
81972
|
var childNodes = toArray_toArray(children);
|
|
81766
81973
|
var nodes = external_React_.useMemo(function () {
|
|
81767
81974
|
return childNodes.map(function (child, i) {
|
|
81768
|
-
var key = child && child.key ||
|
|
81975
|
+
var key = child && child.key || prefixCls + "-item-" + i;
|
|
81769
81976
|
return /*#__PURE__*/external_React_.createElement(CompactItem, {
|
|
81770
81977
|
key: key,
|
|
81771
81978
|
compactSize: size,
|
|
@@ -81831,11 +82038,11 @@ var genWaveStyle = function genWaveStyle(token) {
|
|
|
81831
82038
|
opacity: 0
|
|
81832
82039
|
}
|
|
81833
82040
|
});
|
|
81834
|
-
return [(_ref = {}, defineProperty_defineProperty(_ref,
|
|
82041
|
+
return [(_ref = {}, defineProperty_defineProperty(_ref, token.clickAnimatingWithoutExtraNodeTrue + ",\n " + token.clickAnimatingTrue, {
|
|
81835
82042
|
'--antd-wave-shadow-color': token.colorPrimary,
|
|
81836
82043
|
'--scroll-bar': 0,
|
|
81837
82044
|
position: 'relative'
|
|
81838
|
-
}), defineProperty_defineProperty(_ref,
|
|
82045
|
+
}), defineProperty_defineProperty(_ref, token.clickAnimatingWithoutExtraNodeTrueAfter + ",\n & " + token.clickAnimatingNode, {
|
|
81839
82046
|
position: 'absolute',
|
|
81840
82047
|
top: 0,
|
|
81841
82048
|
insetInlineStart: 0,
|
|
@@ -81847,7 +82054,7 @@ var genWaveStyle = function genWaveStyle(token) {
|
|
|
81847
82054
|
opacity: 0.2,
|
|
81848
82055
|
animation: {
|
|
81849
82056
|
_skip_check_: true,
|
|
81850
|
-
value:
|
|
82057
|
+
value: fadeEffect.getName(token.hashId) + " 2s " + token.motionEaseOutCirc + ", " + waveEffect.getName(token.hashId) + " 0.4s " + token.motionEaseOutCirc
|
|
81851
82058
|
},
|
|
81852
82059
|
animationFillMode: 'forwards',
|
|
81853
82060
|
content: '""',
|
|
@@ -81863,15 +82070,15 @@ var genWaveStyle = function genWaveStyle(token) {
|
|
|
81863
82070
|
var _useContext = (0,external_React_.useContext)(context_ConfigContext),
|
|
81864
82071
|
getPrefixCls = _useContext.getPrefixCls;
|
|
81865
82072
|
var rootPrefixCls = getPrefixCls();
|
|
81866
|
-
var clickAnimatingTrue = "["
|
|
81867
|
-
var clickAnimatingWithoutExtraNodeTrue = "["
|
|
81868
|
-
var clickAnimatingNode = "."
|
|
82073
|
+
var clickAnimatingTrue = "[" + rootPrefixCls + "-click-animating='true']";
|
|
82074
|
+
var clickAnimatingWithoutExtraNodeTrue = "[" + rootPrefixCls + "-click-animating-without-extra-node='true']";
|
|
82075
|
+
var clickAnimatingNode = "." + rootPrefixCls + "-click-animating-node";
|
|
81869
82076
|
var waveToken = extends_extends(extends_extends({}, token), {
|
|
81870
82077
|
hashId: hashId,
|
|
81871
82078
|
clickAnimatingNode: clickAnimatingNode,
|
|
81872
82079
|
clickAnimatingTrue: clickAnimatingTrue,
|
|
81873
82080
|
clickAnimatingWithoutExtraNodeTrue: clickAnimatingWithoutExtraNodeTrue,
|
|
81874
|
-
clickAnimatingWithoutExtraNodeTrueAfter:
|
|
82081
|
+
clickAnimatingWithoutExtraNodeTrueAfter: clickAnimatingWithoutExtraNodeTrue + "::after"
|
|
81875
82082
|
});
|
|
81876
82083
|
return [useStyleRegister({
|
|
81877
82084
|
theme: theme,
|
|
@@ -81959,7 +82166,7 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
81959
82166
|
var _assertThisInitialize = _assertThisInitialized(_this),
|
|
81960
82167
|
extraNode = _assertThisInitialize.extraNode;
|
|
81961
82168
|
var getPrefixCls = _this.context.getPrefixCls;
|
|
81962
|
-
extraNode.className =
|
|
82169
|
+
extraNode.className = getPrefixCls('') + "-click-animating-node";
|
|
81963
82170
|
var attributeName = _this.getAttributeName();
|
|
81964
82171
|
node.setAttribute(attributeName, 'true');
|
|
81965
82172
|
// Not white or transparent or grey
|
|
@@ -81967,7 +82174,7 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
81967
82174
|
extraNode.style.borderColor = waveColor;
|
|
81968
82175
|
var nodeRoot = ((_a = node.getRootNode) === null || _a === void 0 ? void 0 : _a.call(node)) || node.ownerDocument;
|
|
81969
82176
|
var nodeBody = (_b = getValidateContainer(nodeRoot)) !== null && _b !== void 0 ? _b : nodeRoot;
|
|
81970
|
-
styleForPseudo = updateCSS("\n ["
|
|
82177
|
+
styleForPseudo = updateCSS("\n [" + getPrefixCls('') + "-click-animating-without-extra-node='true']::after, ." + getPrefixCls('') + "-click-animating-node {\n --antd-wave-shadow-color: " + waveColor + ";\n }", 'antd-wave', {
|
|
81971
82178
|
csp: _this.csp,
|
|
81972
82179
|
attachTo: nodeBody
|
|
81973
82180
|
});
|
|
@@ -81976,8 +82183,8 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
81976
82183
|
node.appendChild(extraNode);
|
|
81977
82184
|
}
|
|
81978
82185
|
['transition', 'animation'].forEach(function (name) {
|
|
81979
|
-
node.addEventListener(
|
|
81980
|
-
node.addEventListener(
|
|
82186
|
+
node.addEventListener(name + "start", _this.onTransitionStart);
|
|
82187
|
+
node.addEventListener(name + "end", _this.onTransitionEnd);
|
|
81981
82188
|
});
|
|
81982
82189
|
};
|
|
81983
82190
|
_this.onTransitionStart = function (e) {
|
|
@@ -82066,7 +82273,7 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
82066
82273
|
value: function getAttributeName() {
|
|
82067
82274
|
var getPrefixCls = this.context.getPrefixCls;
|
|
82068
82275
|
var insertExtraNode = this.props.insertExtraNode;
|
|
82069
|
-
return insertExtraNode ?
|
|
82276
|
+
return insertExtraNode ? getPrefixCls('') + "-click-animating" : getPrefixCls('') + "-click-animating-without-extra-node";
|
|
82070
82277
|
}
|
|
82071
82278
|
}, {
|
|
82072
82279
|
key: "resetEffect",
|
|
@@ -82085,8 +82292,8 @@ var InternalWave = /*#__PURE__*/function (_React$Component) {
|
|
|
82085
82292
|
node.removeChild(this.extraNode);
|
|
82086
82293
|
}
|
|
82087
82294
|
['transition', 'animation'].forEach(function (name) {
|
|
82088
|
-
node.removeEventListener(
|
|
82089
|
-
node.removeEventListener(
|
|
82295
|
+
node.removeEventListener(name + "start", _this2.onTransitionStart);
|
|
82296
|
+
node.removeEventListener(name + "end", _this2.onTransitionEnd);
|
|
82090
82297
|
});
|
|
82091
82298
|
}
|
|
82092
82299
|
}, {
|
|
@@ -82155,7 +82362,7 @@ var ButtonGroup = function ButtonGroup(props) {
|
|
|
82155
82362
|
default:
|
|
82156
82363
|
false ? 0 : void 0;
|
|
82157
82364
|
}
|
|
82158
|
-
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames,
|
|
82365
|
+
var classes = classnames_default()(prefixCls, (_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-" + sizeCls, sizeCls), defineProperty_defineProperty(_classNames, prefixCls + "-rtl", direction === 'rtl'), _classNames), className, hashId);
|
|
82159
82366
|
return /*#__PURE__*/external_React_.createElement(GroupSizeContext.Provider, {
|
|
82160
82367
|
value: size
|
|
82161
82368
|
}, /*#__PURE__*/external_React_.createElement("div", extends_extends({}, others, {
|
|
@@ -82188,13 +82395,13 @@ var LoadingIcon = function LoadingIcon(_ref) {
|
|
|
82188
82395
|
var visible = !!loading;
|
|
82189
82396
|
if (existIcon) {
|
|
82190
82397
|
return /*#__PURE__*/external_React_default().createElement("span", {
|
|
82191
|
-
className:
|
|
82398
|
+
className: prefixCls + "-loading-icon"
|
|
82192
82399
|
}, /*#__PURE__*/external_React_default().createElement(icons_LoadingOutlined, null));
|
|
82193
82400
|
}
|
|
82194
82401
|
return /*#__PURE__*/external_React_default().createElement(rc_motion_es, {
|
|
82195
82402
|
visible: visible,
|
|
82196
82403
|
// We do not really use this motionName
|
|
82197
|
-
motionName:
|
|
82404
|
+
motionName: prefixCls + "-loading-icon-motion",
|
|
82198
82405
|
removeOnLeave: true,
|
|
82199
82406
|
onAppearStart: getCollapsedWidth,
|
|
82200
82407
|
onAppearActive: getRealWidth,
|
|
@@ -82206,7 +82413,7 @@ var LoadingIcon = function LoadingIcon(_ref) {
|
|
|
82206
82413
|
var className = _ref2.className,
|
|
82207
82414
|
style = _ref2.style;
|
|
82208
82415
|
return /*#__PURE__*/external_React_default().createElement("span", {
|
|
82209
|
-
className:
|
|
82416
|
+
className: prefixCls + "-loading-icon",
|
|
82210
82417
|
style: style,
|
|
82211
82418
|
ref: ref
|
|
82212
82419
|
}, /*#__PURE__*/external_React_default().createElement(icons_LoadingOutlined, {
|
|
@@ -82218,13 +82425,13 @@ var LoadingIcon = function LoadingIcon(_ref) {
|
|
|
82218
82425
|
;// CONCATENATED MODULE: ./node_modules/antd/es/button/style/group.js
|
|
82219
82426
|
|
|
82220
82427
|
var genButtonBorderStyle = function genButtonBorderStyle(buttonTypeCls, borderColor) {
|
|
82221
|
-
return defineProperty_defineProperty({}, "> span, > "
|
|
82222
|
-
'&:not(:last-child)': defineProperty_defineProperty({}, "&, & > "
|
|
82428
|
+
return defineProperty_defineProperty({}, "> span, > " + buttonTypeCls, {
|
|
82429
|
+
'&:not(:last-child)': defineProperty_defineProperty({}, "&, & > " + buttonTypeCls, {
|
|
82223
82430
|
'&:not(:disabled)': {
|
|
82224
82431
|
borderInlineEndColor: borderColor
|
|
82225
82432
|
}
|
|
82226
82433
|
}),
|
|
82227
|
-
'&:not(:first-child)': defineProperty_defineProperty({}, "&, & > "
|
|
82434
|
+
'&:not(:first-child)': defineProperty_defineProperty({}, "&, & > " + buttonTypeCls, {
|
|
82228
82435
|
'&:not(:disabled)': {
|
|
82229
82436
|
borderInlineStartColor: borderColor
|
|
82230
82437
|
}
|
|
@@ -82238,17 +82445,17 @@ var genGroupStyle = function genGroupStyle(token) {
|
|
|
82238
82445
|
lineWidth = token.lineWidth,
|
|
82239
82446
|
colorPrimaryHover = token.colorPrimaryHover,
|
|
82240
82447
|
colorErrorHover = token.colorErrorHover;
|
|
82241
|
-
return defineProperty_defineProperty({},
|
|
82448
|
+
return defineProperty_defineProperty({}, componentCls + "-group", [(_ref2 = {
|
|
82242
82449
|
position: 'relative',
|
|
82243
82450
|
display: 'inline-flex'
|
|
82244
|
-
}, defineProperty_defineProperty(_ref2, "> span, > "
|
|
82245
|
-
'&:not(:last-child)': defineProperty_defineProperty({}, "&, & > "
|
|
82451
|
+
}, defineProperty_defineProperty(_ref2, "> span, > " + componentCls, {
|
|
82452
|
+
'&:not(:last-child)': defineProperty_defineProperty({}, "&, & > " + componentCls, {
|
|
82246
82453
|
borderStartEndRadius: 0,
|
|
82247
82454
|
borderEndEndRadius: 0
|
|
82248
82455
|
}),
|
|
82249
82456
|
'&:not(:first-child)': defineProperty_defineProperty({
|
|
82250
82457
|
marginInlineStart: -lineWidth
|
|
82251
|
-
}, "&, & > "
|
|
82458
|
+
}, "&, & > " + componentCls, {
|
|
82252
82459
|
borderStartStartRadius: 0,
|
|
82253
82460
|
borderEndStartRadius: 0
|
|
82254
82461
|
})
|
|
@@ -82259,11 +82466,11 @@ var genGroupStyle = function genGroupStyle(token) {
|
|
|
82259
82466
|
zIndex: 2
|
|
82260
82467
|
}), defineProperty_defineProperty(_componentCls, '&[disabled]', {
|
|
82261
82468
|
zIndex: 0
|
|
82262
|
-
}), _componentCls)), defineProperty_defineProperty(_ref2,
|
|
82469
|
+
}), _componentCls)), defineProperty_defineProperty(_ref2, componentCls + "-icon-only", {
|
|
82263
82470
|
fontSize: fontSize
|
|
82264
82471
|
}), _ref2),
|
|
82265
82472
|
// Border Color
|
|
82266
|
-
genButtonBorderStyle(
|
|
82473
|
+
genButtonBorderStyle(componentCls + "-primary", colorPrimaryHover), genButtonBorderStyle(componentCls + "-danger", colorErrorHover)]);
|
|
82267
82474
|
};
|
|
82268
82475
|
/* harmony default export */ var style_group = (genGroupStyle);
|
|
82269
82476
|
;// CONCATENATED MODULE: ./node_modules/antd/es/style/compact-item.js
|
|
@@ -82276,11 +82483,11 @@ function compactItemBorder(token, borderedItemCls, popoverFocusedCls) {
|
|
|
82276
82483
|
'&-item:not(&-last-item)': {
|
|
82277
82484
|
marginInlineEnd: -token.lineWidth
|
|
82278
82485
|
},
|
|
82279
|
-
'&-item': extends_extends(extends_extends(defineProperty_defineProperty({}, "&:hover "
|
|
82486
|
+
'&-item': extends_extends(extends_extends(defineProperty_defineProperty({}, "&:hover " + childCombinator + ", &:focus " + childCombinator + ", &:active " + childCombinator, {
|
|
82280
82487
|
zIndex: 2
|
|
82281
|
-
}), popoverFocusedCls ? defineProperty_defineProperty({}, "&"
|
|
82488
|
+
}), popoverFocusedCls ? defineProperty_defineProperty({}, "&" + popoverFocusedCls, {
|
|
82282
82489
|
zIndex: 2
|
|
82283
|
-
}) : {}), defineProperty_defineProperty({}, "&[disabled] "
|
|
82490
|
+
}) : {}), defineProperty_defineProperty({}, "&[disabled] " + childCombinator, {
|
|
82284
82491
|
zIndex: 0
|
|
82285
82492
|
}))
|
|
82286
82493
|
};
|
|
@@ -82288,13 +82495,13 @@ function compactItemBorder(token, borderedItemCls, popoverFocusedCls) {
|
|
|
82288
82495
|
// handle border-radius
|
|
82289
82496
|
function compactItemBorderRadius(prefixCls, borderedElementCls) {
|
|
82290
82497
|
var _ref2;
|
|
82291
|
-
var childCombinator = borderedElementCls ? "> "
|
|
82292
|
-
return _ref2 = {}, defineProperty_defineProperty(_ref2, "&-item:not(&-first-item):not(&-last-item) "
|
|
82498
|
+
var childCombinator = borderedElementCls ? "> " + borderedElementCls : '';
|
|
82499
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, "&-item:not(&-first-item):not(&-last-item) " + childCombinator, {
|
|
82293
82500
|
borderRadius: 0
|
|
82294
|
-
}), defineProperty_defineProperty(_ref2, '&-item&-first-item', defineProperty_defineProperty({}, "& "
|
|
82501
|
+
}), defineProperty_defineProperty(_ref2, '&-item&-first-item', defineProperty_defineProperty({}, "& " + childCombinator + ", &" + prefixCls + "-sm " + childCombinator + ", &" + prefixCls + "-lg " + childCombinator, {
|
|
82295
82502
|
borderStartEndRadius: 0,
|
|
82296
82503
|
borderEndEndRadius: 0
|
|
82297
|
-
})), defineProperty_defineProperty(_ref2, '&-item&-last-item', defineProperty_defineProperty({}, "& "
|
|
82504
|
+
})), defineProperty_defineProperty(_ref2, '&-item&-last-item', defineProperty_defineProperty({}, "& " + childCombinator + ", &" + prefixCls + "-sm " + childCombinator + ", &" + prefixCls + "-lg " + childCombinator, {
|
|
82298
82505
|
borderStartStartRadius: 0,
|
|
82299
82506
|
borderEndStartRadius: 0
|
|
82300
82507
|
})), _ref2;
|
|
@@ -82334,11 +82541,11 @@ function compactItemBorderVerticalRadius(prefixCls) {
|
|
|
82334
82541
|
'&-item:not(&-first-item):not(&-last-item)': {
|
|
82335
82542
|
borderRadius: 0
|
|
82336
82543
|
},
|
|
82337
|
-
'&-item&-first-item': defineProperty_defineProperty({}, "&, &"
|
|
82544
|
+
'&-item&-first-item': defineProperty_defineProperty({}, "&, &" + prefixCls + "-sm, &" + prefixCls + "-lg", {
|
|
82338
82545
|
borderEndEndRadius: 0,
|
|
82339
82546
|
borderEndStartRadius: 0
|
|
82340
82547
|
}),
|
|
82341
|
-
'&-item&-last-item': defineProperty_defineProperty({}, "&, &"
|
|
82548
|
+
'&-item&-last-item': defineProperty_defineProperty({}, "&, &" + prefixCls + "-sm, &" + prefixCls + "-lg", {
|
|
82342
82549
|
borderStartStartRadius: 0,
|
|
82343
82550
|
borderStartEndRadius: 0
|
|
82344
82551
|
})
|
|
@@ -82371,9 +82578,9 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
|
|
|
82371
82578
|
textAlign: 'center',
|
|
82372
82579
|
backgroundImage: 'none',
|
|
82373
82580
|
backgroundColor: 'transparent',
|
|
82374
|
-
border:
|
|
82581
|
+
border: token.lineWidth + "px " + token.lineType + " transparent",
|
|
82375
82582
|
cursor: 'pointer',
|
|
82376
|
-
transition: "all "
|
|
82583
|
+
transition: "all " + token.motionDurationMid + " " + token.motionEaseInOut,
|
|
82377
82584
|
userSelect: 'none',
|
|
82378
82585
|
touchAction: 'manipulation',
|
|
82379
82586
|
lineHeight: token.lineHeight,
|
|
@@ -82381,16 +82588,16 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
|
|
|
82381
82588
|
'> span': {
|
|
82382
82589
|
display: 'inline-block'
|
|
82383
82590
|
}
|
|
82384
|
-
}, defineProperty_defineProperty(_extends2, "> "
|
|
82591
|
+
}, defineProperty_defineProperty(_extends2, "> " + iconCls + " + span, > span + " + iconCls, {
|
|
82385
82592
|
marginInlineStart: token.marginXS
|
|
82386
|
-
}), defineProperty_defineProperty(_extends2, "&"
|
|
82593
|
+
}), defineProperty_defineProperty(_extends2, "&" + componentCls + "-block", {
|
|
82387
82594
|
width: '100%'
|
|
82388
82595
|
}), defineProperty_defineProperty(_extends2, '&:not(:disabled)', extends_extends({}, genFocusStyle(token))), _extends2), genCompactItemStyle(token, componentCls)), genCompactItemVerticalStyle(token, componentCls)), (_extends3 = {
|
|
82389
82596
|
// make `btn-icon-only` not too narrow
|
|
82390
82597
|
'&-icon-only&-compact-item': {
|
|
82391
82598
|
flex: 'none'
|
|
82392
82599
|
}
|
|
82393
|
-
}, defineProperty_defineProperty(_extends3, "&-compact-item"
|
|
82600
|
+
}, defineProperty_defineProperty(_extends3, "&-compact-item" + componentCls + "-primary", {
|
|
82394
82601
|
'&:not([disabled]) + &:not([disabled])': {
|
|
82395
82602
|
position: 'relative',
|
|
82396
82603
|
'&:after': {
|
|
@@ -82399,12 +82606,12 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
|
|
|
82399
82606
|
insetInlineStart: -token.lineWidth,
|
|
82400
82607
|
display: 'inline-block',
|
|
82401
82608
|
width: token.lineWidth,
|
|
82402
|
-
height: "calc(100% + "
|
|
82609
|
+
height: "calc(100% + " + token.lineWidth * 2 + "px)",
|
|
82403
82610
|
backgroundColor: token.colorPrimaryBorder,
|
|
82404
82611
|
content: '""'
|
|
82405
82612
|
}
|
|
82406
82613
|
}
|
|
82407
|
-
}), defineProperty_defineProperty(_extends3, '&-compact-vertical-item', defineProperty_defineProperty({}, "&"
|
|
82614
|
+
}), defineProperty_defineProperty(_extends3, '&-compact-vertical-item', defineProperty_defineProperty({}, "&" + componentCls + "-primary", {
|
|
82408
82615
|
'&:not([disabled]) + &:not([disabled])': {
|
|
82409
82616
|
position: 'relative',
|
|
82410
82617
|
'&:after': {
|
|
@@ -82412,7 +82619,7 @@ var genSharedButtonStyle = function genSharedButtonStyle(token) {
|
|
|
82412
82619
|
top: -token.lineWidth,
|
|
82413
82620
|
insetInlineStart: -token.lineWidth,
|
|
82414
82621
|
display: 'inline-block',
|
|
82415
|
-
width: "calc(100% + "
|
|
82622
|
+
width: "calc(100% + " + token.lineWidth * 2 + "px)",
|
|
82416
82623
|
height: token.lineWidth,
|
|
82417
82624
|
backgroundColor: token.colorPrimaryBorder,
|
|
82418
82625
|
content: '""'
|
|
@@ -82447,7 +82654,7 @@ var genRoundButtonStyle = function genRoundButtonStyle(token) {
|
|
|
82447
82654
|
};
|
|
82448
82655
|
// =============================== Type ===============================
|
|
82449
82656
|
var genGhostButtonStyle = function genGhostButtonStyle(btnCls, textColor, borderColor, textColorDisabled, borderColorDisabled, hoverStyle, activeStyle) {
|
|
82450
|
-
return defineProperty_defineProperty({}, "&"
|
|
82657
|
+
return defineProperty_defineProperty({}, "&" + btnCls + "-background-ghost", extends_extends(extends_extends({
|
|
82451
82658
|
color: textColor || undefined,
|
|
82452
82659
|
backgroundColor: 'transparent',
|
|
82453
82660
|
borderColor: borderColor || undefined,
|
|
@@ -82491,14 +82698,14 @@ var genDefaultButtonStyle = function genDefaultButtonStyle(token) {
|
|
|
82491
82698
|
return extends_extends(extends_extends(extends_extends(extends_extends(extends_extends({}, genSolidButtonStyle(token)), {
|
|
82492
82699
|
backgroundColor: token.colorBgContainer,
|
|
82493
82700
|
borderColor: token.colorBorder,
|
|
82494
|
-
boxShadow: "0 "
|
|
82701
|
+
boxShadow: "0 " + token.controlOutlineWidth + "px 0 " + token.controlTmpOutline
|
|
82495
82702
|
}), genHoverActiveButtonStyle({
|
|
82496
82703
|
color: token.colorPrimaryHover,
|
|
82497
82704
|
borderColor: token.colorPrimaryHover
|
|
82498
82705
|
}, {
|
|
82499
82706
|
color: token.colorPrimaryActive,
|
|
82500
82707
|
borderColor: token.colorPrimaryActive
|
|
82501
|
-
})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), defineProperty_defineProperty({}, "&"
|
|
82708
|
+
})), genGhostButtonStyle(token.componentCls, token.colorBgContainer, token.colorBgContainer, token.colorTextDisabled, token.colorBorder)), defineProperty_defineProperty({}, "&" + token.componentCls + "-dangerous", extends_extends(extends_extends(extends_extends({
|
|
82502
82709
|
color: token.colorError,
|
|
82503
82710
|
borderColor: token.colorError
|
|
82504
82711
|
}, genHoverActiveButtonStyle({
|
|
@@ -82514,7 +82721,7 @@ var genPrimaryButtonStyle = function genPrimaryButtonStyle(token) {
|
|
|
82514
82721
|
return extends_extends(extends_extends(extends_extends(extends_extends(extends_extends({}, genSolidButtonStyle(token)), {
|
|
82515
82722
|
color: token.colorTextLightSolid,
|
|
82516
82723
|
backgroundColor: token.colorPrimary,
|
|
82517
|
-
boxShadow: "0 "
|
|
82724
|
+
boxShadow: "0 " + token.controlOutlineWidth + "px 0 " + token.controlOutline
|
|
82518
82725
|
}), genHoverActiveButtonStyle({
|
|
82519
82726
|
color: token.colorTextLightSolid,
|
|
82520
82727
|
backgroundColor: token.colorPrimaryHover
|
|
@@ -82527,9 +82734,9 @@ var genPrimaryButtonStyle = function genPrimaryButtonStyle(token) {
|
|
|
82527
82734
|
}, {
|
|
82528
82735
|
color: token.colorPrimaryActive,
|
|
82529
82736
|
borderColor: token.colorPrimaryActive
|
|
82530
|
-
})), defineProperty_defineProperty({}, "&"
|
|
82737
|
+
})), defineProperty_defineProperty({}, "&" + token.componentCls + "-dangerous", extends_extends(extends_extends(extends_extends({
|
|
82531
82738
|
backgroundColor: token.colorError,
|
|
82532
|
-
boxShadow: "0 "
|
|
82739
|
+
boxShadow: "0 " + token.controlOutlineWidth + "px 0 " + token.colorErrorOutline
|
|
82533
82740
|
}, genHoverActiveButtonStyle({
|
|
82534
82741
|
backgroundColor: token.colorErrorHover
|
|
82535
82742
|
}, {
|
|
@@ -82556,7 +82763,7 @@ var genLinkButtonStyle = function genLinkButtonStyle(token) {
|
|
|
82556
82763
|
color: token.colorLinkHover
|
|
82557
82764
|
}, {
|
|
82558
82765
|
color: token.colorLinkActive
|
|
82559
|
-
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&"
|
|
82766
|
+
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&" + token.componentCls + "-dangerous", extends_extends(extends_extends({
|
|
82560
82767
|
color: token.colorError
|
|
82561
82768
|
}, genHoverActiveButtonStyle({
|
|
82562
82769
|
color: token.colorErrorHover
|
|
@@ -82572,7 +82779,7 @@ var genTextButtonStyle = function genTextButtonStyle(token) {
|
|
|
82572
82779
|
}, {
|
|
82573
82780
|
color: token.colorText,
|
|
82574
82781
|
backgroundColor: token.colorBgTextActive
|
|
82575
|
-
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&"
|
|
82782
|
+
})), genPureDisabledButtonStyle(token)), defineProperty_defineProperty({}, "&" + token.componentCls + "-dangerous", extends_extends(extends_extends({
|
|
82576
82783
|
color: token.colorError
|
|
82577
82784
|
}, genPureDisabledButtonStyle(token)), genHoverActiveButtonStyle({
|
|
82578
82785
|
color: token.colorErrorHover,
|
|
@@ -82585,41 +82792,41 @@ var genTextButtonStyle = function genTextButtonStyle(token) {
|
|
|
82585
82792
|
var genTypeButtonStyle = function genTypeButtonStyle(token) {
|
|
82586
82793
|
var _ref3;
|
|
82587
82794
|
var componentCls = token.componentCls;
|
|
82588
|
-
return _ref3 = {}, defineProperty_defineProperty(_ref3,
|
|
82795
|
+
return _ref3 = {}, defineProperty_defineProperty(_ref3, componentCls + "-default", genDefaultButtonStyle(token)), defineProperty_defineProperty(_ref3, componentCls + "-primary", genPrimaryButtonStyle(token)), defineProperty_defineProperty(_ref3, componentCls + "-dashed", genDashedButtonStyle(token)), defineProperty_defineProperty(_ref3, componentCls + "-link", genLinkButtonStyle(token)), defineProperty_defineProperty(_ref3, componentCls + "-text", genTextButtonStyle(token)), _ref3;
|
|
82589
82796
|
};
|
|
82590
82797
|
// =============================== Size ===============================
|
|
82591
82798
|
var genSizeButtonStyle = function genSizeButtonStyle(token) {
|
|
82592
|
-
var
|
|
82799
|
+
var _ref4;
|
|
82593
82800
|
var sizePrefixCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
82594
82801
|
var componentCls = token.componentCls,
|
|
82595
82802
|
iconCls = token.iconCls;
|
|
82596
82803
|
var paddingVertical = Math.max(0, (token.controlHeight - token.fontSize * token.lineHeight) / 2 - token.lineWidth);
|
|
82597
82804
|
var paddingHorizontal = token.buttonPaddingHorizontal - token.lineWidth;
|
|
82598
|
-
var iconOnlyCls =
|
|
82805
|
+
var iconOnlyCls = componentCls + "-icon-only";
|
|
82599
82806
|
return [
|
|
82600
82807
|
// Size
|
|
82601
|
-
defineProperty_defineProperty({}, ""
|
|
82808
|
+
defineProperty_defineProperty({}, "" + componentCls + sizePrefixCls, (_ref4 = {
|
|
82602
82809
|
fontSize: token.fontSize,
|
|
82603
82810
|
height: token.controlHeight,
|
|
82604
|
-
padding:
|
|
82811
|
+
padding: paddingVertical + "px " + paddingHorizontal + "px",
|
|
82605
82812
|
borderRadius: token.borderRadius
|
|
82606
|
-
}, defineProperty_defineProperty(
|
|
82813
|
+
}, defineProperty_defineProperty(_ref4, "&" + iconOnlyCls, {
|
|
82607
82814
|
width: token.controlHeight,
|
|
82608
82815
|
paddingInlineStart: 0,
|
|
82609
82816
|
paddingInlineEnd: 0,
|
|
82610
82817
|
'> span': {
|
|
82611
82818
|
transform: 'scale(1.143)' // 14px -> 16px
|
|
82612
82819
|
}
|
|
82613
|
-
}), defineProperty_defineProperty(
|
|
82820
|
+
}), defineProperty_defineProperty(_ref4, "&" + componentCls + "-loading", {
|
|
82614
82821
|
opacity: token.opacityLoading,
|
|
82615
82822
|
cursor: 'default'
|
|
82616
|
-
}), defineProperty_defineProperty(
|
|
82617
|
-
transition: "width "
|
|
82618
|
-
}), defineProperty_defineProperty(
|
|
82823
|
+
}), defineProperty_defineProperty(_ref4, componentCls + "-loading-icon", {
|
|
82824
|
+
transition: "width " + token.motionDurationSlow + " " + token.motionEaseInOut + ", opacity " + token.motionDurationSlow + " " + token.motionEaseInOut
|
|
82825
|
+
}), defineProperty_defineProperty(_ref4, "&:not(" + iconOnlyCls + ") " + componentCls + "-loading-icon > " + iconCls, {
|
|
82619
82826
|
marginInlineEnd: token.marginXS
|
|
82620
|
-
}),
|
|
82827
|
+
}), _ref4)),
|
|
82621
82828
|
// Shape - patch prefixCls again to override solid border radius style
|
|
82622
|
-
defineProperty_defineProperty({}, ""
|
|
82829
|
+
defineProperty_defineProperty({}, "" + componentCls + componentCls + "-circle" + sizePrefixCls, genCircleButtonStyle(token)), defineProperty_defineProperty({}, "" + componentCls + componentCls + "-round" + sizePrefixCls, genRoundButtonStyle(token))];
|
|
82623
82830
|
};
|
|
82624
82831
|
var genSizeBaseButtonStyle = function genSizeBaseButtonStyle(token) {
|
|
82625
82832
|
return genSizeButtonStyle(token);
|
|
@@ -82631,7 +82838,7 @@ var genSizeSmallButtonStyle = function genSizeSmallButtonStyle(token) {
|
|
|
82631
82838
|
buttonPaddingHorizontal: 8,
|
|
82632
82839
|
borderRadius: token.borderRadiusSM
|
|
82633
82840
|
});
|
|
82634
|
-
return genSizeButtonStyle(smallToken,
|
|
82841
|
+
return genSizeButtonStyle(smallToken, token.componentCls + "-sm");
|
|
82635
82842
|
};
|
|
82636
82843
|
var genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {
|
|
82637
82844
|
var largeToken = statistic_merge(token, {
|
|
@@ -82639,7 +82846,7 @@ var genSizeLargeButtonStyle = function genSizeLargeButtonStyle(token) {
|
|
|
82639
82846
|
fontSize: token.fontSizeLG,
|
|
82640
82847
|
borderRadius: token.borderRadiusLG
|
|
82641
82848
|
});
|
|
82642
|
-
return genSizeButtonStyle(largeToken,
|
|
82849
|
+
return genSizeButtonStyle(largeToken, token.componentCls + "-lg");
|
|
82643
82850
|
};
|
|
82644
82851
|
// ============================== Export ==============================
|
|
82645
82852
|
/* harmony default export */ var button_style = (genComponentStyleHook('Button', function (token) {
|
|
@@ -82728,7 +82935,7 @@ function spaceChildren(children, needInserted) {
|
|
|
82728
82935
|
if (isPrevChildPure && isCurrentChildPure) {
|
|
82729
82936
|
var lastIndex = childList.length - 1;
|
|
82730
82937
|
var lastChild = childList[lastIndex];
|
|
82731
|
-
childList[lastIndex] = ""
|
|
82938
|
+
childList[lastIndex] = "" + lastChild + child;
|
|
82732
82939
|
} else {
|
|
82733
82940
|
childList.push(child);
|
|
82734
82941
|
}
|
|
@@ -82861,7 +83068,7 @@ var InternalButton = function InternalButton(props, ref) {
|
|
|
82861
83068
|
var sizeCls = sizeFullname ? sizeClassNameMap[sizeFullname] || '' : '';
|
|
82862
83069
|
var iconType = innerLoading ? 'loading' : icon;
|
|
82863
83070
|
var linkButtonRestProps = omit_omit(rest, ['navigate']);
|
|
82864
|
-
var classes = classnames_default()(prefixCls, hashId, (_classNames = {}, defineProperty_defineProperty(_classNames,
|
|
83071
|
+
var classes = classnames_default()(prefixCls, hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-" + shape, shape !== 'default' && shape), defineProperty_defineProperty(_classNames, prefixCls + "-" + type, type), defineProperty_defineProperty(_classNames, prefixCls + "-" + sizeCls, sizeCls), defineProperty_defineProperty(_classNames, prefixCls + "-icon-only", !children && children !== 0 && !!iconType), defineProperty_defineProperty(_classNames, prefixCls + "-background-ghost", ghost && !isUnBorderedButtonType(type)), defineProperty_defineProperty(_classNames, prefixCls + "-loading", innerLoading), defineProperty_defineProperty(_classNames, prefixCls + "-two-chinese-chars", hasTwoCNChar && autoInsertSpace && !innerLoading), defineProperty_defineProperty(_classNames, prefixCls + "-block", block), defineProperty_defineProperty(_classNames, prefixCls + "-dangerous", !!danger), defineProperty_defineProperty(_classNames, prefixCls + "-rtl", direction === 'rtl'), defineProperty_defineProperty(_classNames, prefixCls + "-disabled", linkButtonRestProps.href !== undefined && mergedDisabled), _classNames), compactItemClassnames, className);
|
|
82865
83072
|
var iconNode = icon && !innerLoading ? icon : /*#__PURE__*/external_React_.createElement(button_LoadingIcon, {
|
|
82866
83073
|
existIcon: !!icon,
|
|
82867
83074
|
prefixCls: prefixCls,
|
|
@@ -82979,7 +83186,7 @@ function Item_Item(_ref) {
|
|
|
82979
83186
|
className: className,
|
|
82980
83187
|
style: style
|
|
82981
83188
|
}, children), index < latestIndex && split && /*#__PURE__*/external_React_.createElement("span", {
|
|
82982
|
-
className:
|
|
83189
|
+
className: className + "-split",
|
|
82983
83190
|
style: style
|
|
82984
83191
|
}, split));
|
|
82985
83192
|
}
|
|
@@ -83056,8 +83263,8 @@ var Space = function Space(props) {
|
|
|
83056
83263
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
83057
83264
|
wrapSSR = _useStyle2[0],
|
|
83058
83265
|
hashId = _useStyle2[1];
|
|
83059
|
-
var cn = classnames_default()(prefixCls, hashId,
|
|
83060
|
-
var itemClassName =
|
|
83266
|
+
var cn = classnames_default()(prefixCls, hashId, prefixCls + "-" + direction, (_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-rtl", directionConfig === 'rtl'), defineProperty_defineProperty(_classNames, prefixCls + "-align-" + mergedAlign, mergedAlign), _classNames), className);
|
|
83267
|
+
var itemClassName = prefixCls + "-item";
|
|
83061
83268
|
var marginDirection = directionConfig === 'rtl' ? 'marginLeft' : 'marginRight';
|
|
83062
83269
|
// Calculate latest one
|
|
83063
83270
|
var latestIndex = 0;
|
|
@@ -83065,7 +83272,7 @@ var Space = function Space(props) {
|
|
|
83065
83272
|
if (child !== null && child !== undefined) {
|
|
83066
83273
|
latestIndex = i;
|
|
83067
83274
|
}
|
|
83068
|
-
var key = child && child.key ||
|
|
83275
|
+
var key = child && child.key || itemClassName + "-" + i;
|
|
83069
83276
|
return /*#__PURE__*/external_React_.createElement(Item_Item, {
|
|
83070
83277
|
className: itemClassName,
|
|
83071
83278
|
key: key,
|
|
@@ -83231,34 +83438,34 @@ var moveMotion = {
|
|
|
83231
83438
|
var initMoveMotion = function initMoveMotion(token, motionName) {
|
|
83232
83439
|
var _ref;
|
|
83233
83440
|
var antCls = token.antCls;
|
|
83234
|
-
var motionCls =
|
|
83441
|
+
var motionCls = antCls + "-" + motionName;
|
|
83235
83442
|
var _moveMotion$motionNam = moveMotion[motionName],
|
|
83236
83443
|
inKeyframes = _moveMotion$motionNam.inKeyframes,
|
|
83237
83444
|
outKeyframes = _moveMotion$motionNam.outKeyframes;
|
|
83238
|
-
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), (_ref = {}, defineProperty_defineProperty(_ref, "\n "
|
|
83445
|
+
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), (_ref = {}, defineProperty_defineProperty(_ref, "\n " + motionCls + "-enter,\n " + motionCls + "-appear\n ", {
|
|
83239
83446
|
opacity: 0,
|
|
83240
83447
|
animationTimingFunction: token.motionEaseOutCirc
|
|
83241
|
-
}), defineProperty_defineProperty(_ref,
|
|
83448
|
+
}), defineProperty_defineProperty(_ref, motionCls + "-leave", {
|
|
83242
83449
|
animationTimingFunction: token.motionEaseInOutCirc
|
|
83243
83450
|
}), _ref)];
|
|
83244
83451
|
};
|
|
83245
83452
|
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/style/button.js
|
|
83246
83453
|
|
|
83247
83454
|
var genButtonStyle = function genButtonStyle(token) {
|
|
83248
|
-
var
|
|
83455
|
+
var _ref;
|
|
83249
83456
|
var componentCls = token.componentCls,
|
|
83250
83457
|
antCls = token.antCls,
|
|
83251
83458
|
paddingXS = token.paddingXS,
|
|
83252
83459
|
opacityLoading = token.opacityLoading;
|
|
83253
|
-
return defineProperty_defineProperty({},
|
|
83460
|
+
return defineProperty_defineProperty({}, componentCls + "-button", defineProperty_defineProperty({
|
|
83254
83461
|
whiteSpace: 'nowrap'
|
|
83255
|
-
}, "&"
|
|
83462
|
+
}, "&" + antCls + "-btn-group > " + antCls + "-btn", (_ref = {}, defineProperty_defineProperty(_ref, "&-loading, &-loading + " + antCls + "-btn", {
|
|
83256
83463
|
cursor: 'default',
|
|
83257
83464
|
pointerEvents: 'none',
|
|
83258
83465
|
opacity: opacityLoading
|
|
83259
|
-
}), defineProperty_defineProperty(
|
|
83466
|
+
}), defineProperty_defineProperty(_ref, "&:last-child:not(:first-child):not(" + antCls + "-btn-icon-only)", {
|
|
83260
83467
|
paddingInline: paddingXS
|
|
83261
|
-
}),
|
|
83468
|
+
}), _ref)));
|
|
83262
83469
|
};
|
|
83263
83470
|
/* harmony default export */ var style_button = (genButtonStyle);
|
|
83264
83471
|
;// CONCATENATED MODULE: ./node_modules/antd/es/dropdown/style/status.js
|
|
@@ -83268,8 +83475,8 @@ var genStatusStyle = function genStatusStyle(token) {
|
|
|
83268
83475
|
menuCls = token.menuCls,
|
|
83269
83476
|
colorError = token.colorError,
|
|
83270
83477
|
colorTextLightSolid = token.colorTextLightSolid;
|
|
83271
|
-
var itemCls =
|
|
83272
|
-
return defineProperty_defineProperty({},
|
|
83478
|
+
var itemCls = menuCls + "-item";
|
|
83479
|
+
return defineProperty_defineProperty({}, componentCls + ", " + componentCls + "-menu-submenu", defineProperty_defineProperty({}, menuCls + " " + itemCls, defineProperty_defineProperty({}, "&" + itemCls + "-danger", {
|
|
83273
83480
|
color: colorError,
|
|
83274
83481
|
'&:hover': {
|
|
83275
83482
|
color: colorTextLightSolid,
|
|
@@ -83289,7 +83496,7 @@ var genStatusStyle = function genStatusStyle(token) {
|
|
|
83289
83496
|
|
|
83290
83497
|
// =============================== Base ===============================
|
|
83291
83498
|
var genBaseStyle = function genBaseStyle(token) {
|
|
83292
|
-
var
|
|
83499
|
+
var _ref, _extends2, _extends5, _ref7;
|
|
83293
83500
|
var componentCls = token.componentCls,
|
|
83294
83501
|
menuCls = token.menuCls,
|
|
83295
83502
|
zIndexPopup = token.zIndexPopup,
|
|
@@ -83299,7 +83506,6 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83299
83506
|
antCls = token.antCls,
|
|
83300
83507
|
iconCls = token.iconCls,
|
|
83301
83508
|
motionDurationMid = token.motionDurationMid,
|
|
83302
|
-
motionDurationFast = token.motionDurationFast,
|
|
83303
83509
|
dropdownPaddingVertical = token.dropdownPaddingVertical,
|
|
83304
83510
|
fontSize = token.fontSize,
|
|
83305
83511
|
dropdownEdgeChildPadding = token.dropdownEdgeChildPadding,
|
|
@@ -83327,13 +83533,13 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83327
83533
|
opacity: 0.0001,
|
|
83328
83534
|
content: '""'
|
|
83329
83535
|
}
|
|
83330
|
-
}, defineProperty_defineProperty(_extends2,
|
|
83536
|
+
}, defineProperty_defineProperty(_extends2, componentCls + "-wrap", (_ref = {
|
|
83331
83537
|
position: 'relative'
|
|
83332
|
-
}, defineProperty_defineProperty(
|
|
83538
|
+
}, defineProperty_defineProperty(_ref, antCls + "-btn > " + iconCls + "-down", {
|
|
83333
83539
|
fontSize: fontSizeIcon
|
|
83334
|
-
}), defineProperty_defineProperty(
|
|
83335
|
-
transition: "transform "
|
|
83336
|
-
}),
|
|
83540
|
+
}), defineProperty_defineProperty(_ref, iconCls + "-down::before", {
|
|
83541
|
+
transition: "transform " + motionDurationMid
|
|
83542
|
+
}), _ref)), defineProperty_defineProperty(_extends2, componentCls + "-wrap-open", defineProperty_defineProperty({}, iconCls + "-down::before", {
|
|
83337
83543
|
transform: "rotate(180deg)"
|
|
83338
83544
|
})), defineProperty_defineProperty(_extends2, "\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ", {
|
|
83339
83545
|
display: 'none'
|
|
@@ -83341,60 +83547,60 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83341
83547
|
paddingBottom: dropdownArrowDistance
|
|
83342
83548
|
}), defineProperty_defineProperty(_extends2, "\n &-show-arrow&-placement-bottomLeft,\n &-show-arrow&-placement-bottom,\n &-show-arrow&-placement-bottomRight\n ", {
|
|
83343
83549
|
paddingTop: dropdownArrowDistance
|
|
83344
|
-
}), defineProperty_defineProperty(_extends2,
|
|
83550
|
+
}), defineProperty_defineProperty(_extends2, componentCls + "-arrow", extends_extends({
|
|
83345
83551
|
position: 'absolute',
|
|
83346
83552
|
zIndex: 1,
|
|
83347
83553
|
display: 'block'
|
|
83348
|
-
}, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow))), defineProperty_defineProperty(_extends2, "\n &-placement-top > "
|
|
83554
|
+
}, roundedArrow(sizePopupArrow, token.borderRadiusXS, token.borderRadiusOuter, colorBgElevated, boxShadowPopoverArrow))), defineProperty_defineProperty(_extends2, "\n &-placement-top > " + componentCls + "-arrow,\n &-placement-topLeft > " + componentCls + "-arrow,\n &-placement-topRight > " + componentCls + "-arrow\n ", {
|
|
83349
83555
|
bottom: dropdownArrowDistance,
|
|
83350
83556
|
transform: 'translateY(100%) rotate(180deg)'
|
|
83351
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-top > "
|
|
83557
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-top > " + componentCls + "-arrow", {
|
|
83352
83558
|
left: {
|
|
83353
83559
|
_skip_check_: true,
|
|
83354
83560
|
value: '50%'
|
|
83355
83561
|
},
|
|
83356
83562
|
transform: 'translateX(-50%) translateY(100%) rotate(180deg)'
|
|
83357
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-topLeft > "
|
|
83563
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-topLeft > " + componentCls + "-arrow", {
|
|
83358
83564
|
left: {
|
|
83359
83565
|
_skip_check_: true,
|
|
83360
83566
|
value: dropdownArrowOffset
|
|
83361
83567
|
}
|
|
83362
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-topRight > "
|
|
83568
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-topRight > " + componentCls + "-arrow", {
|
|
83363
83569
|
right: {
|
|
83364
83570
|
_skip_check_: true,
|
|
83365
83571
|
value: dropdownArrowOffset
|
|
83366
83572
|
}
|
|
83367
|
-
}), defineProperty_defineProperty(_extends2, "\n &-placement-bottom > "
|
|
83573
|
+
}), defineProperty_defineProperty(_extends2, "\n &-placement-bottom > " + componentCls + "-arrow,\n &-placement-bottomLeft > " + componentCls + "-arrow,\n &-placement-bottomRight > " + componentCls + "-arrow\n ", {
|
|
83368
83574
|
top: dropdownArrowDistance,
|
|
83369
83575
|
transform: "translateY(-100%)"
|
|
83370
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-bottom > "
|
|
83576
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-bottom > " + componentCls + "-arrow", {
|
|
83371
83577
|
left: {
|
|
83372
83578
|
_skip_check_: true,
|
|
83373
83579
|
value: '50%'
|
|
83374
83580
|
},
|
|
83375
83581
|
transform: "translateY(-100%) translateX(-50%)"
|
|
83376
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-bottomLeft > "
|
|
83582
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-bottomLeft > " + componentCls + "-arrow", {
|
|
83377
83583
|
left: {
|
|
83378
83584
|
_skip_check_: true,
|
|
83379
83585
|
value: dropdownArrowOffset
|
|
83380
83586
|
}
|
|
83381
|
-
}), defineProperty_defineProperty(_extends2, "&-placement-bottomRight > "
|
|
83587
|
+
}), defineProperty_defineProperty(_extends2, "&-placement-bottomRight > " + componentCls + "-arrow", {
|
|
83382
83588
|
right: {
|
|
83383
83589
|
_skip_check_: true,
|
|
83384
83590
|
value: dropdownArrowOffset
|
|
83385
83591
|
}
|
|
83386
|
-
}), defineProperty_defineProperty(_extends2, "&"
|
|
83592
|
+
}), defineProperty_defineProperty(_extends2, "&" + antCls + "-slide-down-enter" + antCls + "-slide-down-enter-active&-placement-bottomLeft,\n &" + antCls + "-slide-down-appear" + antCls + "-slide-down-appear-active&-placement-bottomLeft\n &" + antCls + "-slide-down-enter" + antCls + "-slide-down-enter-active&-placement-bottom,\n &" + antCls + "-slide-down-appear" + antCls + "-slide-down-appear-active&-placement-bottom,\n &" + antCls + "-slide-down-enter" + antCls + "-slide-down-enter-active&-placement-bottomRight,\n &" + antCls + "-slide-down-appear" + antCls + "-slide-down-appear-active&-placement-bottomRight", {
|
|
83387
83593
|
animationName: slideUpIn
|
|
83388
|
-
}), defineProperty_defineProperty(_extends2, "&"
|
|
83594
|
+
}), defineProperty_defineProperty(_extends2, "&" + antCls + "-slide-up-enter" + antCls + "-slide-up-enter-active&-placement-topLeft,\n &" + antCls + "-slide-up-appear" + antCls + "-slide-up-appear-active&-placement-topLeft,\n &" + antCls + "-slide-up-enter" + antCls + "-slide-up-enter-active&-placement-top,\n &" + antCls + "-slide-up-appear" + antCls + "-slide-up-appear-active&-placement-top,\n &" + antCls + "-slide-up-enter" + antCls + "-slide-up-enter-active&-placement-topRight,\n &" + antCls + "-slide-up-appear" + antCls + "-slide-up-appear-active&-placement-topRight", {
|
|
83389
83595
|
animationName: slideDownIn
|
|
83390
|
-
}), defineProperty_defineProperty(_extends2, "&"
|
|
83596
|
+
}), defineProperty_defineProperty(_extends2, "&" + antCls + "-slide-down-leave" + antCls + "-slide-down-leave-active&-placement-bottomLeft,\n &" + antCls + "-slide-down-leave" + antCls + "-slide-down-leave-active&-placement-bottom,\n &" + antCls + "-slide-down-leave" + antCls + "-slide-down-leave-active&-placement-bottomRight", {
|
|
83391
83597
|
animationName: slideUpOut
|
|
83392
|
-
}), defineProperty_defineProperty(_extends2, "&"
|
|
83598
|
+
}), defineProperty_defineProperty(_extends2, "&" + antCls + "-slide-up-leave" + antCls + "-slide-up-leave-active&-placement-topLeft,\n &" + antCls + "-slide-up-leave" + antCls + "-slide-up-leave-active&-placement-top,\n &" + antCls + "-slide-up-leave" + antCls + "-slide-up-leave-active&-placement-topRight", {
|
|
83393
83599
|
animationName: slideDownOut
|
|
83394
|
-
}), _extends2))), (
|
|
83600
|
+
}), _extends2))), (_ref7 = {}, defineProperty_defineProperty(_ref7, componentCls + " " + menuCls, {
|
|
83395
83601
|
position: 'relative',
|
|
83396
83602
|
margin: 0
|
|
83397
|
-
}), defineProperty_defineProperty(
|
|
83603
|
+
}), defineProperty_defineProperty(_ref7, menuCls + "-submenu-popup", {
|
|
83398
83604
|
position: 'absolute',
|
|
83399
83605
|
zIndex: zIndexPopup,
|
|
83400
83606
|
background: 'transparent',
|
|
@@ -83406,7 +83612,7 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83406
83612
|
ul: {
|
|
83407
83613
|
marginInline: '0.3em'
|
|
83408
83614
|
}
|
|
83409
|
-
}), defineProperty_defineProperty(
|
|
83615
|
+
}), defineProperty_defineProperty(_ref7, componentCls + ", " + componentCls + "-menu-submenu", defineProperty_defineProperty({}, menuCls, extends_extends(extends_extends({
|
|
83410
83616
|
padding: dropdownEdgeChildPadding,
|
|
83411
83617
|
listStyleType: 'none',
|
|
83412
83618
|
backgroundColor: colorBgElevated,
|
|
@@ -83414,24 +83620,24 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83414
83620
|
borderRadius: token.borderRadiusLG,
|
|
83415
83621
|
outline: 'none',
|
|
83416
83622
|
boxShadow: token.boxShadowSecondary
|
|
83417
|
-
}, genFocusStyle(token)), (_extends5 = {}, defineProperty_defineProperty(_extends5,
|
|
83418
|
-
padding:
|
|
83623
|
+
}, genFocusStyle(token)), (_extends5 = {}, defineProperty_defineProperty(_extends5, menuCls + "-item-group-title", {
|
|
83624
|
+
padding: dropdownPaddingVertical + "px " + controlPaddingHorizontal + "px",
|
|
83419
83625
|
color: token.colorTextDescription,
|
|
83420
|
-
transition: "all "
|
|
83421
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83626
|
+
transition: "all " + motionDurationMid
|
|
83627
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-item", {
|
|
83422
83628
|
position: 'relative',
|
|
83423
83629
|
display: 'flex',
|
|
83424
83630
|
alignItems: 'center',
|
|
83425
83631
|
borderRadius: token.borderRadiusSM
|
|
83426
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83632
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-item-icon", {
|
|
83427
83633
|
minWidth: fontSize,
|
|
83428
83634
|
marginInlineEnd: token.marginXS,
|
|
83429
83635
|
fontSize: token.fontSizeSM
|
|
83430
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83636
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-title-content", {
|
|
83431
83637
|
flex: 'auto',
|
|
83432
83638
|
'> a': {
|
|
83433
83639
|
color: 'inherit',
|
|
83434
|
-
transition: "all "
|
|
83640
|
+
transition: "all " + motionDurationMid,
|
|
83435
83641
|
'&:hover': {
|
|
83436
83642
|
color: 'inherit'
|
|
83437
83643
|
},
|
|
@@ -83441,21 +83647,21 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83441
83647
|
content: '""'
|
|
83442
83648
|
}
|
|
83443
83649
|
}
|
|
83444
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83650
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-item, " + menuCls + "-submenu-title", extends_extends(extends_extends(defineProperty_defineProperty({
|
|
83445
83651
|
clear: 'both',
|
|
83446
83652
|
margin: 0,
|
|
83447
|
-
padding:
|
|
83653
|
+
padding: dropdownPaddingVertical + "px " + controlPaddingHorizontal + "px",
|
|
83448
83654
|
color: token.colorText,
|
|
83449
83655
|
fontWeight: 'normal',
|
|
83450
83656
|
fontSize: fontSize,
|
|
83451
83657
|
lineHeight: token.lineHeight,
|
|
83452
83658
|
cursor: 'pointer',
|
|
83453
|
-
transition: "all "
|
|
83659
|
+
transition: "all " + motionDurationMid,
|
|
83454
83660
|
'&:first-child': !dropdownEdgeChildPadding ? {
|
|
83455
|
-
borderRadius:
|
|
83661
|
+
borderRadius: borderRadius + "px " + borderRadius + "px 0 0"
|
|
83456
83662
|
} : [],
|
|
83457
83663
|
'&:last-child': !dropdownEdgeChildPadding ? {
|
|
83458
|
-
borderRadius: "0 0 "
|
|
83664
|
+
borderRadius: "0 0 " + borderRadius + "px " + borderRadius + "px"
|
|
83459
83665
|
} : []
|
|
83460
83666
|
}, "&:hover, &-active", {
|
|
83461
83667
|
backgroundColor: token.controlItemBgHover
|
|
@@ -83481,40 +83687,40 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83481
83687
|
},
|
|
83482
83688
|
'&-divider': {
|
|
83483
83689
|
height: 1,
|
|
83484
|
-
margin:
|
|
83690
|
+
margin: token.marginXXS + "px 0",
|
|
83485
83691
|
overflow: 'hidden',
|
|
83486
83692
|
lineHeight: 0,
|
|
83487
83693
|
backgroundColor: token.colorSplit
|
|
83488
83694
|
}
|
|
83489
|
-
},
|
|
83695
|
+
}, componentCls + "-menu-submenu-expand-icon", defineProperty_defineProperty({
|
|
83490
83696
|
position: 'absolute',
|
|
83491
83697
|
insetInlineEnd: token.paddingXS
|
|
83492
|
-
},
|
|
83698
|
+
}, componentCls + "-menu-submenu-arrow-icon", {
|
|
83493
83699
|
marginInlineEnd: '0 !important',
|
|
83494
83700
|
color: token.colorTextDescription,
|
|
83495
83701
|
fontSize: fontSizeIcon,
|
|
83496
83702
|
fontStyle: 'normal'
|
|
83497
|
-
})))), defineProperty_defineProperty(_extends5,
|
|
83498
|
-
margin: "0 "
|
|
83703
|
+
})))), defineProperty_defineProperty(_extends5, menuCls + "-item-group-list", {
|
|
83704
|
+
margin: "0 " + token.marginXS + "px",
|
|
83499
83705
|
padding: 0,
|
|
83500
83706
|
listStyle: 'none'
|
|
83501
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83707
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-submenu-title", {
|
|
83502
83708
|
paddingInlineEnd: controlPaddingHorizontal + token.fontSizeSM
|
|
83503
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83709
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-submenu-vertical", {
|
|
83504
83710
|
position: 'relative'
|
|
83505
|
-
}), defineProperty_defineProperty(_extends5,
|
|
83711
|
+
}), defineProperty_defineProperty(_extends5, menuCls + "-submenu" + menuCls + "-submenu-disabled " + componentCls + "-menu-submenu-title", defineProperty_defineProperty({}, "&, " + componentCls + "-menu-submenu-arrow-icon", {
|
|
83506
83712
|
color: colorTextDisabled,
|
|
83507
83713
|
backgroundColor: colorBgElevated,
|
|
83508
83714
|
cursor: 'not-allowed'
|
|
83509
|
-
})), defineProperty_defineProperty(_extends5,
|
|
83715
|
+
})), defineProperty_defineProperty(_extends5, menuCls + "-submenu-selected " + componentCls + "-menu-submenu-title", {
|
|
83510
83716
|
color: token.colorPrimary
|
|
83511
|
-
}), _extends5)))),
|
|
83717
|
+
}), _extends5)))), _ref7),
|
|
83512
83718
|
// Follow code may reuse in other components
|
|
83513
83719
|
[initSlideMotion(token, 'slide-up'), initSlideMotion(token, 'slide-down'), initMoveMotion(token, 'move-up'), initMoveMotion(token, 'move-down')]];
|
|
83514
83720
|
};
|
|
83515
83721
|
// ============================== Export ==============================
|
|
83516
|
-
/* harmony default export */ var dropdown_style = (genComponentStyleHook('Dropdown', function (token,
|
|
83517
|
-
var rootPrefixCls =
|
|
83722
|
+
/* harmony default export */ var dropdown_style = (genComponentStyleHook('Dropdown', function (token, _ref8) {
|
|
83723
|
+
var rootPrefixCls = _ref8.rootPrefixCls;
|
|
83518
83724
|
var marginXXS = token.marginXXS,
|
|
83519
83725
|
sizePopupArrow = token.sizePopupArrow,
|
|
83520
83726
|
controlHeight = token.controlHeight,
|
|
@@ -83532,7 +83738,7 @@ var genBaseStyle = function genBaseStyle(token) {
|
|
|
83532
83738
|
}),
|
|
83533
83739
|
dropdownArrowOffset = _getArrowOffset.dropdownArrowOffset;
|
|
83534
83740
|
var dropdownToken = statistic_merge(token, {
|
|
83535
|
-
menuCls:
|
|
83741
|
+
menuCls: componentCls + "-menu",
|
|
83536
83742
|
rootPrefixCls: rootPrefixCls,
|
|
83537
83743
|
dropdownArrowDistance: sizePopupArrow / 2 + marginXXS,
|
|
83538
83744
|
dropdownArrowOffset: dropdownArrowOffset,
|
|
@@ -83607,7 +83813,7 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
83607
83813
|
destroyPopupOnHide = props.destroyPopupOnHide,
|
|
83608
83814
|
restProps = dropdown_button_rest(props, ["prefixCls", "type", "danger", "disabled", "loading", "onClick", "htmlType", "children", "className", "menu", "arrow", "autoFocus", "overlay", "trigger", "align", "open", "onOpenChange", "placement", "getPopupContainer", "href", "icon", "title", "buttonsRender", "mouseEnterDelay", "mouseLeaveDelay", "overlayClassName", "overlayStyle", "destroyPopupOnHide"]);
|
|
83609
83815
|
var prefixCls = getPrefixCls('dropdown', customizePrefixCls);
|
|
83610
|
-
var buttonPrefixCls =
|
|
83816
|
+
var buttonPrefixCls = prefixCls + "-button";
|
|
83611
83817
|
var _useStyle = dropdown_style(prefixCls),
|
|
83612
83818
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
83613
83819
|
wrapSSR = _useStyle2[0],
|
|
@@ -83617,7 +83823,6 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
83617
83823
|
arrow: arrow,
|
|
83618
83824
|
autoFocus: autoFocus,
|
|
83619
83825
|
align: align,
|
|
83620
|
-
overlay: overlay,
|
|
83621
83826
|
disabled: disabled,
|
|
83622
83827
|
trigger: disabled ? [] : trigger,
|
|
83623
83828
|
onOpenChange: onOpenChange,
|
|
@@ -83632,6 +83837,9 @@ var dropdown_button_DropdownButton = function DropdownButton(props) {
|
|
|
83632
83837
|
compactSize = _useCompactItemContex.compactSize,
|
|
83633
83838
|
compactItemClassnames = _useCompactItemContex.compactItemClassnames;
|
|
83634
83839
|
var classes = classnames_default()(buttonPrefixCls, compactItemClassnames, className, hashId);
|
|
83840
|
+
if ('overlay' in props) {
|
|
83841
|
+
dropdownProps.overlay = overlay;
|
|
83842
|
+
}
|
|
83635
83843
|
if ('open' in props) {
|
|
83636
83844
|
dropdownProps.open = open;
|
|
83637
83845
|
}
|
|
@@ -83705,9 +83913,9 @@ var dropdown_Dropdown = function Dropdown(props) {
|
|
|
83705
83913
|
return transitionName;
|
|
83706
83914
|
}
|
|
83707
83915
|
if (placement.includes('top')) {
|
|
83708
|
-
return
|
|
83916
|
+
return rootPrefixCls + "-slide-down";
|
|
83709
83917
|
}
|
|
83710
|
-
return
|
|
83918
|
+
return rootPrefixCls + "-slide-up";
|
|
83711
83919
|
};
|
|
83712
83920
|
var getPlacement = function getPlacement() {
|
|
83713
83921
|
var placement = props.placement;
|
|
@@ -83746,7 +83954,7 @@ var dropdown_Dropdown = function Dropdown(props) {
|
|
|
83746
83954
|
hashId = _useStyle2[1];
|
|
83747
83955
|
var child = external_React_.Children.only(children);
|
|
83748
83956
|
var dropdownTrigger = cloneElement(child, {
|
|
83749
|
-
className: classnames_default()(
|
|
83957
|
+
className: classnames_default()(prefixCls + "-trigger", defineProperty_defineProperty({}, prefixCls + "-rtl", direction === 'rtl'), child.props.className),
|
|
83750
83958
|
disabled: disabled
|
|
83751
83959
|
});
|
|
83752
83960
|
var triggerActions = disabled ? [] : trigger;
|
|
@@ -83767,7 +83975,7 @@ var dropdown_Dropdown = function Dropdown(props) {
|
|
|
83767
83975
|
setOpen(nextOpen);
|
|
83768
83976
|
});
|
|
83769
83977
|
// =========================== Overlay ============================
|
|
83770
|
-
var overlayClassNameCustomized = classnames_default()(overlayClassName, hashId, defineProperty_defineProperty({},
|
|
83978
|
+
var overlayClassNameCustomized = classnames_default()(overlayClassName, hashId, defineProperty_defineProperty({}, prefixCls + "-rtl", direction === 'rtl'));
|
|
83771
83979
|
var builtinPlacements = getPlacements({
|
|
83772
83980
|
arrowPointAtCenter: typeof_typeof(arrow) === 'object' && arrow.pointAtCenter,
|
|
83773
83981
|
autoAdjustOverflow: true
|
|
@@ -83792,11 +84000,11 @@ var dropdown_Dropdown = function Dropdown(props) {
|
|
|
83792
84000
|
}
|
|
83793
84001
|
overlayNode = external_React_.Children.only(typeof overlayNode === 'string' ? /*#__PURE__*/external_React_.createElement("span", null, overlayNode) : overlayNode);
|
|
83794
84002
|
return /*#__PURE__*/external_React_.createElement(OverrideProvider, {
|
|
83795
|
-
prefixCls:
|
|
84003
|
+
prefixCls: prefixCls + "-menu",
|
|
83796
84004
|
expandIcon: /*#__PURE__*/external_React_.createElement("span", {
|
|
83797
|
-
className:
|
|
84005
|
+
className: prefixCls + "-menu-submenu-arrow"
|
|
83798
84006
|
}, /*#__PURE__*/external_React_.createElement(icons_RightOutlined, {
|
|
83799
|
-
className:
|
|
84007
|
+
className: prefixCls + "-menu-submenu-arrow-icon"
|
|
83800
84008
|
})),
|
|
83801
84009
|
mode: "vertical",
|
|
83802
84010
|
selectable: false,
|
|
@@ -83879,7 +84087,7 @@ var getGroupRadioStyle = function getGroupRadioStyle(token) {
|
|
|
83879
84087
|
var _extends2;
|
|
83880
84088
|
var componentCls = token.componentCls,
|
|
83881
84089
|
antCls = token.antCls;
|
|
83882
|
-
var groupPrefixCls =
|
|
84090
|
+
var groupPrefixCls = componentCls + "-group";
|
|
83883
84091
|
return defineProperty_defineProperty({}, groupPrefixCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
83884
84092
|
display: 'inline-block',
|
|
83885
84093
|
fontSize: 0,
|
|
@@ -83887,22 +84095,22 @@ var getGroupRadioStyle = function getGroupRadioStyle(token) {
|
|
|
83887
84095
|
'&&-rtl': {
|
|
83888
84096
|
direction: 'rtl'
|
|
83889
84097
|
}
|
|
83890
|
-
}, defineProperty_defineProperty(_extends2,
|
|
84098
|
+
}, defineProperty_defineProperty(_extends2, antCls + "-badge " + antCls + "-badge-count", {
|
|
83891
84099
|
zIndex: 1
|
|
83892
|
-
}), defineProperty_defineProperty(_extends2, "> "
|
|
84100
|
+
}), defineProperty_defineProperty(_extends2, "> " + antCls + "-badge:not(:first-child) > " + antCls + "-button-wrapper", {
|
|
83893
84101
|
borderInlineStart: 'none'
|
|
83894
84102
|
}), _extends2)));
|
|
83895
84103
|
};
|
|
83896
84104
|
// Styles from radio-wrapper
|
|
83897
84105
|
var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
83898
|
-
var
|
|
84106
|
+
var _ref4, _extends3;
|
|
83899
84107
|
var componentCls = token.componentCls,
|
|
83900
84108
|
radioWrapperMarginRight = token.radioWrapperMarginRight,
|
|
83901
84109
|
radioCheckedColor = token.radioCheckedColor,
|
|
83902
84110
|
radioTop = token.radioTop,
|
|
83903
84111
|
radioSize = token.radioSize,
|
|
83904
84112
|
motionDurationSlow = token.motionDurationSlow,
|
|
83905
|
-
|
|
84113
|
+
motionDurationMid = token.motionDurationMid,
|
|
83906
84114
|
motionEaseInOut = token.motionEaseInOut,
|
|
83907
84115
|
motionEaseInOutCirc = token.motionEaseInOutCirc,
|
|
83908
84116
|
radioButtonBg = token.radioButtonBg,
|
|
@@ -83917,8 +84125,8 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
83917
84125
|
radioDotDisabledSize = token.radioDotDisabledSize,
|
|
83918
84126
|
wireframe = token.wireframe,
|
|
83919
84127
|
colorWhite = token.colorWhite;
|
|
83920
|
-
var radioInnerPrefixCls =
|
|
83921
|
-
return defineProperty_defineProperty({},
|
|
84128
|
+
var radioInnerPrefixCls = componentCls + "-inner";
|
|
84129
|
+
return defineProperty_defineProperty({}, componentCls + "-wrapper", extends_extends(extends_extends({}, style_resetComponent(token)), (_extends3 = {
|
|
83922
84130
|
position: 'relative',
|
|
83923
84131
|
display: 'inline-flex',
|
|
83924
84132
|
alignItems: 'baseline',
|
|
@@ -83938,13 +84146,13 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
83938
84146
|
overflow: 'hidden',
|
|
83939
84147
|
content: '"\\a0"'
|
|
83940
84148
|
}
|
|
83941
|
-
}, defineProperty_defineProperty(_extends3,
|
|
84149
|
+
}, defineProperty_defineProperty(_extends3, componentCls + "-checked::after", {
|
|
83942
84150
|
position: 'absolute',
|
|
83943
84151
|
insetBlockStart: 0,
|
|
83944
84152
|
insetInlineStart: 0,
|
|
83945
84153
|
width: '100%',
|
|
83946
84154
|
height: '100%',
|
|
83947
|
-
border:
|
|
84155
|
+
border: lineWidth + "px " + lineType + " " + radioCheckedColor,
|
|
83948
84156
|
borderRadius: '50%',
|
|
83949
84157
|
visibility: 'hidden',
|
|
83950
84158
|
animationName: antRadioEffect,
|
|
@@ -83958,11 +84166,11 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
83958
84166
|
display: 'inline-block',
|
|
83959
84167
|
outline: 'none',
|
|
83960
84168
|
cursor: 'pointer'
|
|
83961
|
-
})), defineProperty_defineProperty(_extends3,
|
|
84169
|
+
})), defineProperty_defineProperty(_extends3, componentCls + "-wrapper:hover &,\n &:hover " + radioInnerPrefixCls, {
|
|
83962
84170
|
borderColor: radioCheckedColor
|
|
83963
|
-
}), defineProperty_defineProperty(_extends3,
|
|
84171
|
+
}), defineProperty_defineProperty(_extends3, componentCls + "-input:focus-visible + " + radioInnerPrefixCls, extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_extends3, componentCls + ":hover::after, " + componentCls + "-wrapper:hover &::after", {
|
|
83964
84172
|
visibility: 'visible'
|
|
83965
|
-
}), defineProperty_defineProperty(_extends3,
|
|
84173
|
+
}), defineProperty_defineProperty(_extends3, componentCls + "-inner", {
|
|
83966
84174
|
'&::after': {
|
|
83967
84175
|
boxSizing: 'border-box',
|
|
83968
84176
|
position: 'absolute',
|
|
@@ -83979,7 +84187,7 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
83979
84187
|
borderRadius: radioSize,
|
|
83980
84188
|
transform: 'scale(0)',
|
|
83981
84189
|
opacity: 0,
|
|
83982
|
-
transition: "all "
|
|
84190
|
+
transition: "all " + motionDurationSlow + " " + motionEaseInOutCirc,
|
|
83983
84191
|
content: '""'
|
|
83984
84192
|
},
|
|
83985
84193
|
boxSizing: 'border-box',
|
|
@@ -83994,8 +84202,8 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
83994
84202
|
borderStyle: 'solid',
|
|
83995
84203
|
borderWidth: lineWidth,
|
|
83996
84204
|
borderRadius: '50%',
|
|
83997
|
-
transition: "all "
|
|
83998
|
-
}), defineProperty_defineProperty(_extends3,
|
|
84205
|
+
transition: "all " + motionDurationMid
|
|
84206
|
+
}), defineProperty_defineProperty(_extends3, componentCls + "-input", {
|
|
83999
84207
|
position: 'absolute',
|
|
84000
84208
|
insetBlockStart: 0,
|
|
84001
84209
|
insetInlineEnd: 0,
|
|
@@ -84004,40 +84212,40 @@ var getRadioBasicStyle = function getRadioBasicStyle(token) {
|
|
|
84004
84212
|
zIndex: 1,
|
|
84005
84213
|
cursor: 'pointer',
|
|
84006
84214
|
opacity: 0
|
|
84007
|
-
}), defineProperty_defineProperty(_extends3,
|
|
84215
|
+
}), defineProperty_defineProperty(_extends3, componentCls + "-checked", defineProperty_defineProperty({}, radioInnerPrefixCls, {
|
|
84008
84216
|
borderColor: radioCheckedColor,
|
|
84009
84217
|
backgroundColor: wireframe ? radioButtonBg : radioCheckedColor,
|
|
84010
84218
|
'&::after': {
|
|
84011
|
-
transform: "scale("
|
|
84219
|
+
transform: "scale(" + radioDotSize / radioSize + ")",
|
|
84012
84220
|
opacity: 1,
|
|
84013
|
-
transition: "all "
|
|
84221
|
+
transition: "all " + motionDurationSlow + " " + motionEaseInOutCirc
|
|
84014
84222
|
}
|
|
84015
|
-
})), defineProperty_defineProperty(_extends3,
|
|
84223
|
+
})), defineProperty_defineProperty(_extends3, componentCls + "-disabled", (_ref4 = {
|
|
84016
84224
|
cursor: 'not-allowed'
|
|
84017
|
-
}, defineProperty_defineProperty(
|
|
84225
|
+
}, defineProperty_defineProperty(_ref4, radioInnerPrefixCls, {
|
|
84018
84226
|
backgroundColor: colorBgContainerDisabled,
|
|
84019
84227
|
borderColor: colorBorder,
|
|
84020
84228
|
cursor: 'not-allowed',
|
|
84021
84229
|
'&::after': {
|
|
84022
84230
|
backgroundColor: radioDotDisabledColor
|
|
84023
84231
|
}
|
|
84024
|
-
}), defineProperty_defineProperty(
|
|
84232
|
+
}), defineProperty_defineProperty(_ref4, '&-input', {
|
|
84025
84233
|
cursor: 'not-allowed'
|
|
84026
|
-
}), defineProperty_defineProperty(
|
|
84234
|
+
}), defineProperty_defineProperty(_ref4, componentCls + "-disabled + span", {
|
|
84027
84235
|
color: colorTextDisabled,
|
|
84028
84236
|
cursor: 'not-allowed'
|
|
84029
|
-
}), defineProperty_defineProperty(
|
|
84237
|
+
}), defineProperty_defineProperty(_ref4, "&" + componentCls + "-checked", defineProperty_defineProperty({}, radioInnerPrefixCls, {
|
|
84030
84238
|
'&::after': {
|
|
84031
|
-
transform: "scale("
|
|
84239
|
+
transform: "scale(" + radioDotDisabledSize / radioSize + ")"
|
|
84032
84240
|
}
|
|
84033
|
-
})),
|
|
84241
|
+
})), _ref4)), defineProperty_defineProperty(_extends3, "span" + componentCls + " + *", {
|
|
84034
84242
|
paddingInlineStart: paddingXS,
|
|
84035
84243
|
paddingInlineEnd: paddingXS
|
|
84036
84244
|
}), _extends3)));
|
|
84037
84245
|
};
|
|
84038
84246
|
// Styles from radio-button
|
|
84039
84247
|
var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
84040
|
-
var
|
|
84248
|
+
var _ref6;
|
|
84041
84249
|
var radioButtonColor = token.radioButtonColor,
|
|
84042
84250
|
controlHeight = token.controlHeight,
|
|
84043
84251
|
componentCls = token.componentCls,
|
|
@@ -84045,7 +84253,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84045
84253
|
lineType = token.lineType,
|
|
84046
84254
|
colorBorder = token.colorBorder,
|
|
84047
84255
|
motionDurationSlow = token.motionDurationSlow,
|
|
84048
|
-
|
|
84256
|
+
motionDurationMid = token.motionDurationMid,
|
|
84049
84257
|
radioButtonPaddingHorizontal = token.radioButtonPaddingHorizontal,
|
|
84050
84258
|
fontSize = token.fontSize,
|
|
84051
84259
|
radioButtonBg = token.radioButtonBg,
|
|
@@ -84065,7 +84273,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84065
84273
|
colorBgContainerDisabled = token.colorBgContainerDisabled,
|
|
84066
84274
|
radioDisabledButtonCheckedColor = token.radioDisabledButtonCheckedColor,
|
|
84067
84275
|
radioDisabledButtonCheckedBg = token.radioDisabledButtonCheckedBg;
|
|
84068
|
-
return defineProperty_defineProperty({},
|
|
84276
|
+
return defineProperty_defineProperty({}, componentCls + "-button-wrapper", (_ref6 = {
|
|
84069
84277
|
position: 'relative',
|
|
84070
84278
|
display: 'inline-block',
|
|
84071
84279
|
height: controlHeight,
|
|
@@ -84074,27 +84282,27 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84074
84282
|
paddingBlock: 0,
|
|
84075
84283
|
color: radioButtonColor,
|
|
84076
84284
|
fontSize: fontSize,
|
|
84077
|
-
lineHeight:
|
|
84285
|
+
lineHeight: controlHeight - lineWidth * 2 + "px",
|
|
84078
84286
|
background: radioButtonBg,
|
|
84079
|
-
border:
|
|
84287
|
+
border: lineWidth + "px " + lineType + " " + colorBorder,
|
|
84080
84288
|
// strange align fix for chrome but works
|
|
84081
84289
|
// https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
|
|
84082
84290
|
borderBlockStartWidth: lineWidth + 0.02,
|
|
84083
84291
|
borderInlineStartWidth: 0,
|
|
84084
84292
|
borderInlineEndWidth: lineWidth,
|
|
84085
84293
|
cursor: 'pointer',
|
|
84086
|
-
transition: ["color "
|
|
84294
|
+
transition: ["color " + motionDurationMid, "background " + motionDurationMid, "border-color " + motionDurationMid, "box-shadow " + motionDurationMid].join(','),
|
|
84087
84295
|
a: {
|
|
84088
84296
|
color: radioButtonColor
|
|
84089
84297
|
}
|
|
84090
|
-
}, defineProperty_defineProperty(
|
|
84298
|
+
}, defineProperty_defineProperty(_ref6, "> " + componentCls + "-button", {
|
|
84091
84299
|
position: 'absolute',
|
|
84092
84300
|
insetBlockStart: 0,
|
|
84093
84301
|
insetInlineStart: 0,
|
|
84094
84302
|
zIndex: -1,
|
|
84095
84303
|
width: '100%',
|
|
84096
84304
|
height: '100%'
|
|
84097
|
-
}), defineProperty_defineProperty(
|
|
84305
|
+
}), defineProperty_defineProperty(_ref6, '&:not(:first-child)', {
|
|
84098
84306
|
'&::before': {
|
|
84099
84307
|
position: 'absolute',
|
|
84100
84308
|
insetBlockStart: -lineWidth,
|
|
@@ -84106,22 +84314,22 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84106
84314
|
paddingBlock: lineWidth,
|
|
84107
84315
|
paddingInline: 0,
|
|
84108
84316
|
backgroundColor: colorBorder,
|
|
84109
|
-
transition: "background-color "
|
|
84317
|
+
transition: "background-color " + motionDurationSlow,
|
|
84110
84318
|
content: '""'
|
|
84111
84319
|
}
|
|
84112
|
-
}), defineProperty_defineProperty(
|
|
84113
|
-
borderInlineStart:
|
|
84320
|
+
}), defineProperty_defineProperty(_ref6, '&:first-child', {
|
|
84321
|
+
borderInlineStart: lineWidth + "px " + lineType + " " + colorBorder,
|
|
84114
84322
|
borderStartStartRadius: borderRadius,
|
|
84115
84323
|
borderEndStartRadius: borderRadius
|
|
84116
|
-
}), defineProperty_defineProperty(
|
|
84324
|
+
}), defineProperty_defineProperty(_ref6, '&:last-child', {
|
|
84117
84325
|
borderStartEndRadius: borderRadius,
|
|
84118
84326
|
borderEndEndRadius: borderRadius
|
|
84119
|
-
}), defineProperty_defineProperty(
|
|
84327
|
+
}), defineProperty_defineProperty(_ref6, '&:first-child:last-child', {
|
|
84120
84328
|
borderRadius: borderRadius
|
|
84121
|
-
}), defineProperty_defineProperty(
|
|
84329
|
+
}), defineProperty_defineProperty(_ref6, componentCls + "-group-large &", {
|
|
84122
84330
|
height: controlHeightLG,
|
|
84123
84331
|
fontSize: fontSizeLG,
|
|
84124
|
-
lineHeight:
|
|
84332
|
+
lineHeight: controlHeightLG - lineWidth * 2 + "px",
|
|
84125
84333
|
'&:first-child': {
|
|
84126
84334
|
borderStartStartRadius: borderRadiusLG,
|
|
84127
84335
|
borderEndStartRadius: borderRadiusLG
|
|
@@ -84130,11 +84338,11 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84130
84338
|
borderStartEndRadius: borderRadiusLG,
|
|
84131
84339
|
borderEndEndRadius: borderRadiusLG
|
|
84132
84340
|
}
|
|
84133
|
-
}), defineProperty_defineProperty(
|
|
84341
|
+
}), defineProperty_defineProperty(_ref6, componentCls + "-group-small &", {
|
|
84134
84342
|
height: controlHeightSM,
|
|
84135
84343
|
paddingInline: paddingXS - lineWidth,
|
|
84136
84344
|
paddingBlock: 0,
|
|
84137
|
-
lineHeight:
|
|
84345
|
+
lineHeight: controlHeightSM - lineWidth * 2 + "px",
|
|
84138
84346
|
'&:first-child': {
|
|
84139
84347
|
borderStartStartRadius: borderRadiusSM,
|
|
84140
84348
|
borderEndStartRadius: borderRadiusSM
|
|
@@ -84143,15 +84351,15 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84143
84351
|
borderStartEndRadius: borderRadiusSM,
|
|
84144
84352
|
borderEndEndRadius: borderRadiusSM
|
|
84145
84353
|
}
|
|
84146
|
-
}), defineProperty_defineProperty(
|
|
84354
|
+
}), defineProperty_defineProperty(_ref6, '&:hover', {
|
|
84147
84355
|
position: 'relative',
|
|
84148
84356
|
color: radioCheckedColor
|
|
84149
|
-
}), defineProperty_defineProperty(
|
|
84357
|
+
}), defineProperty_defineProperty(_ref6, '&:has(:focus-visible)', extends_extends({}, genFocusOutline(token))), defineProperty_defineProperty(_ref6, componentCls + "-inner, input[type='checkbox'], input[type='radio']", {
|
|
84150
84358
|
width: 0,
|
|
84151
84359
|
height: 0,
|
|
84152
84360
|
opacity: 0,
|
|
84153
84361
|
pointerEvents: 'none'
|
|
84154
|
-
}), defineProperty_defineProperty(
|
|
84362
|
+
}), defineProperty_defineProperty(_ref6, '&-checked:not(&-disabled)', {
|
|
84155
84363
|
zIndex: 1,
|
|
84156
84364
|
color: radioCheckedColor,
|
|
84157
84365
|
background: radioButtonCheckedBg,
|
|
@@ -84176,7 +84384,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84176
84384
|
backgroundColor: radioButtonActiveColor
|
|
84177
84385
|
}
|
|
84178
84386
|
}
|
|
84179
|
-
}), defineProperty_defineProperty(
|
|
84387
|
+
}), defineProperty_defineProperty(_ref6, componentCls + "-group-solid &-checked:not(&-disabled)", {
|
|
84180
84388
|
color: radioSolidCheckedColor,
|
|
84181
84389
|
background: radioCheckedColor,
|
|
84182
84390
|
borderColor: radioCheckedColor,
|
|
@@ -84190,7 +84398,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84190
84398
|
background: radioButtonActiveColor,
|
|
84191
84399
|
borderColor: radioButtonActiveColor
|
|
84192
84400
|
}
|
|
84193
|
-
}), defineProperty_defineProperty(
|
|
84401
|
+
}), defineProperty_defineProperty(_ref6, '&-disabled', {
|
|
84194
84402
|
color: colorTextDisabled,
|
|
84195
84403
|
backgroundColor: colorBgContainerDisabled,
|
|
84196
84404
|
borderColor: colorBorder,
|
|
@@ -84200,12 +84408,12 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84200
84408
|
backgroundColor: colorBgContainerDisabled,
|
|
84201
84409
|
borderColor: colorBorder
|
|
84202
84410
|
}
|
|
84203
|
-
}), defineProperty_defineProperty(
|
|
84411
|
+
}), defineProperty_defineProperty(_ref6, '&-disabled&-checked', {
|
|
84204
84412
|
color: radioDisabledButtonCheckedColor,
|
|
84205
84413
|
backgroundColor: radioDisabledButtonCheckedBg,
|
|
84206
84414
|
borderColor: colorBorder,
|
|
84207
84415
|
boxShadow: 'none'
|
|
84208
|
-
}),
|
|
84416
|
+
}), _ref6));
|
|
84209
84417
|
};
|
|
84210
84418
|
// ============================== Export ==============================
|
|
84211
84419
|
/* harmony default export */ var radio_style = (genComponentStyleHook('Radio', function (token) {
|
|
@@ -84226,7 +84434,7 @@ var getRadioButtonStyle = function getRadioButtonStyle(token) {
|
|
|
84226
84434
|
controlOutlineWidth = token.controlOutlineWidth,
|
|
84227
84435
|
wireframe = token.wireframe;
|
|
84228
84436
|
// Radio
|
|
84229
|
-
var radioFocusShadow = "0 0 0 "
|
|
84437
|
+
var radioFocusShadow = "0 0 0 " + controlOutlineWidth + "px " + controlOutline;
|
|
84230
84438
|
var radioButtonFocusShadow = radioFocusShadow;
|
|
84231
84439
|
var radioSize = fontSizeLG;
|
|
84232
84440
|
var radioTop = (Math.round(fontSize * lineHeight) - radioSize) / 2;
|
|
@@ -84312,7 +84520,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
84312
84520
|
customDisabled = props.disabled,
|
|
84313
84521
|
restProps = radio_rest(props, ["prefixCls", "className", "children", "style", "disabled"]);
|
|
84314
84522
|
var radioPrefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
84315
|
-
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button' ?
|
|
84523
|
+
var prefixCls = ((groupContext === null || groupContext === void 0 ? void 0 : groupContext.optionType) || radioOptionTypeContext) === 'button' ? radioPrefixCls + "-button" : radioPrefixCls;
|
|
84316
84524
|
// Style
|
|
84317
84525
|
var _useStyle = radio_style(radioPrefixCls),
|
|
84318
84526
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
@@ -84328,7 +84536,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
84328
84536
|
radioProps.checked = props.value === groupContext.value;
|
|
84329
84537
|
radioProps.disabled = radioProps.disabled || groupContext.disabled;
|
|
84330
84538
|
}
|
|
84331
|
-
var wrapperClassString = classnames_default()(
|
|
84539
|
+
var wrapperClassString = classnames_default()(prefixCls + "-wrapper", (_classNames = {}, defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-checked", radioProps.checked), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-disabled", radioProps.disabled), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-rtl", direction === 'rtl'), defineProperty_defineProperty(_classNames, prefixCls + "-wrapper-in-form-item", isFormItemInput), _classNames), className, hashId);
|
|
84332
84540
|
return wrapSSR( /*#__PURE__*/
|
|
84333
84541
|
// eslint-disable-next-line jsx-a11y/label-has-associated-control
|
|
84334
84542
|
external_React_.createElement("label", {
|
|
@@ -84397,7 +84605,7 @@ var group_RadioGroup = /*#__PURE__*/external_React_.forwardRef(function (props,
|
|
|
84397
84605
|
onFocus = props.onFocus,
|
|
84398
84606
|
onBlur = props.onBlur;
|
|
84399
84607
|
var prefixCls = getPrefixCls('radio', customizePrefixCls);
|
|
84400
|
-
var groupPrefixCls =
|
|
84608
|
+
var groupPrefixCls = prefixCls + "-group";
|
|
84401
84609
|
// Style
|
|
84402
84610
|
var _useStyle = radio_style(prefixCls),
|
|
84403
84611
|
_useStyle2 = slicedToArray_slicedToArray(_useStyle, 2),
|
|
@@ -84419,7 +84627,7 @@ var group_RadioGroup = /*#__PURE__*/external_React_.forwardRef(function (props,
|
|
|
84419
84627
|
}
|
|
84420
84628
|
// 此处类型自动推导为 { label: string value: string }
|
|
84421
84629
|
return /*#__PURE__*/external_React_.createElement(radio_radio, {
|
|
84422
|
-
key: "radio-group-value-options-"
|
|
84630
|
+
key: "radio-group-value-options-" + option.value,
|
|
84423
84631
|
prefixCls: prefixCls,
|
|
84424
84632
|
disabled: option.disabled || disabled,
|
|
84425
84633
|
value: option.value,
|
|
@@ -84429,7 +84637,7 @@ var group_RadioGroup = /*#__PURE__*/external_React_.forwardRef(function (props,
|
|
|
84429
84637
|
});
|
|
84430
84638
|
}
|
|
84431
84639
|
var mergedSize = customizeSize || size;
|
|
84432
|
-
var classString = classnames_default()(groupPrefixCls,
|
|
84640
|
+
var classString = classnames_default()(groupPrefixCls, groupPrefixCls + "-" + buttonStyle, (_classNames = {}, defineProperty_defineProperty(_classNames, groupPrefixCls + "-" + mergedSize, mergedSize), defineProperty_defineProperty(_classNames, groupPrefixCls + "-rtl", direction === 'rtl'), _classNames), className, hashId);
|
|
84433
84641
|
return wrapSSR( /*#__PURE__*/external_React_.createElement("div", extends_extends({}, getDataOrAriaProps(props), {
|
|
84434
84642
|
className: classString,
|
|
84435
84643
|
style: style,
|
|
@@ -84822,7 +85030,7 @@ function useSelection(rowSelection, config) {
|
|
|
84822
85030
|
})
|
|
84823
85031
|
};
|
|
84824
85032
|
customizeSelections = /*#__PURE__*/external_React_.createElement("div", {
|
|
84825
|
-
className:
|
|
85033
|
+
className: prefixCls + "-selection-extra"
|
|
84826
85034
|
}, /*#__PURE__*/external_React_.createElement(es_dropdown, {
|
|
84827
85035
|
menu: menu,
|
|
84828
85036
|
getPopupContainer: getPopupContainer
|
|
@@ -84848,7 +85056,7 @@ function useSelection(rowSelection, config) {
|
|
|
84848
85056
|
return checked;
|
|
84849
85057
|
});
|
|
84850
85058
|
title = !hideSelectAll && /*#__PURE__*/external_React_.createElement("div", {
|
|
84851
|
-
className:
|
|
85059
|
+
className: prefixCls + "-selection"
|
|
84852
85060
|
}, /*#__PURE__*/external_React_.createElement(es_checkbox, {
|
|
84853
85061
|
checked: !allDisabled ? !!flattedData.length && checkedCurrentAll : allDisabledAndChecked,
|
|
84854
85062
|
indeterminate: !allDisabled ? !checkedCurrentAll && checkedCurrentSome : !allDisabledAndChecked && allDisabledSomeChecked,
|
|
@@ -85033,11 +85241,11 @@ function useSelection(rowSelection, config) {
|
|
|
85033
85241
|
var selectionColumn = defineProperty_defineProperty({
|
|
85034
85242
|
fixed: mergedFixed,
|
|
85035
85243
|
width: selectionColWidth,
|
|
85036
|
-
className:
|
|
85244
|
+
className: prefixCls + "-selection-column",
|
|
85037
85245
|
title: rowSelection.columnTitle || title,
|
|
85038
85246
|
render: renderSelectionCell
|
|
85039
85247
|
}, INTERNAL_COL_DEFINE, {
|
|
85040
|
-
className:
|
|
85248
|
+
className: prefixCls + "-selection-col"
|
|
85041
85249
|
});
|
|
85042
85250
|
return cloneColumns.map(function (col) {
|
|
85043
85251
|
return col === SELECTION_COLUMN ? selectionColumn : col;
|
|
@@ -85898,17 +86106,17 @@ function BaseProList(props) {
|
|
|
85898
86106
|
|
|
85899
86107
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
85900
86108
|
var version_version = {
|
|
85901
|
-
"@ant-design/pro-card": "2.0.
|
|
85902
|
-
"@ant-design/pro-components": "2.3.
|
|
85903
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
85904
|
-
"@ant-design/pro-field": "2.1.
|
|
85905
|
-
"@ant-design/pro-form": "2.3.
|
|
85906
|
-
"@ant-design/pro-layout": "7.2.
|
|
85907
|
-
"@ant-design/pro-list": "2.0.
|
|
85908
|
-
"@ant-design/pro-provider": "2.0.
|
|
85909
|
-
"@ant-design/pro-skeleton": "2.0.
|
|
85910
|
-
"@ant-design/pro-table": "3.1.
|
|
85911
|
-
"@ant-design/pro-utils": "2.3.
|
|
86109
|
+
"@ant-design/pro-card": "2.0.27",
|
|
86110
|
+
"@ant-design/pro-components": "2.3.34",
|
|
86111
|
+
"@ant-design/pro-descriptions": "2.0.30",
|
|
86112
|
+
"@ant-design/pro-field": "2.1.22",
|
|
86113
|
+
"@ant-design/pro-form": "2.3.2",
|
|
86114
|
+
"@ant-design/pro-layout": "7.2.5",
|
|
86115
|
+
"@ant-design/pro-list": "2.0.31",
|
|
86116
|
+
"@ant-design/pro-provider": "2.0.17",
|
|
86117
|
+
"@ant-design/pro-skeleton": "2.0.6",
|
|
86118
|
+
"@ant-design/pro-table": "3.1.8",
|
|
86119
|
+
"@ant-design/pro-utils": "2.3.5"
|
|
85912
86120
|
};
|
|
85913
86121
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
85914
86122
|
|