shineout 3.6.0-beta.3 → 3.6.0-beta.5
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/cjs/form/form-button.js +3 -1
- package/cjs/index.js +1 -1
- package/cjs/transfer/interface.d.ts +1 -0
- package/cjs/transfer/transfer.type.d.ts +2 -2
- package/cjs/utils/strings.d.ts +1 -1
- package/cjs/utils/strings.js +4 -4
- package/dist/shineout.js +1776 -555
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/form/form-button.js +3 -1
- package/esm/index.js +1 -1
- package/esm/transfer/interface.d.ts +1 -0
- package/esm/transfer/transfer.type.d.ts +2 -2
- package/esm/utils/strings.d.ts +1 -1
- package/esm/utils/strings.js +4 -4
- package/package.json +5 -5
package/dist/shineout.js
CHANGED
|
@@ -4466,6 +4466,13 @@ const figma = [
|
|
|
4466
4466
|
token: 'Shadow-4',
|
|
4467
4467
|
locked: true,
|
|
4468
4468
|
},
|
|
4469
|
+
{
|
|
4470
|
+
name: 'Shadow-5',
|
|
4471
|
+
value: 'rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px',
|
|
4472
|
+
describe: 'Switch圆圈阴影',
|
|
4473
|
+
token: 'Shadow-5',
|
|
4474
|
+
locked: true,
|
|
4475
|
+
},
|
|
4469
4476
|
{
|
|
4470
4477
|
name: '动态行高',
|
|
4471
4478
|
value: 'calc( 1em + 8px )',
|
|
@@ -6679,6 +6686,7 @@ var jsx_runtime = __webpack_require__(3428);
|
|
|
6679
6686
|
;// CONCATENATED MODULE: ../base/src/icons/icons.tsx
|
|
6680
6687
|
|
|
6681
6688
|
|
|
6689
|
+
|
|
6682
6690
|
function icon(paths) {
|
|
6683
6691
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6684
6692
|
viewBox: "0 0 24 24",
|
|
@@ -6693,7 +6701,7 @@ function icon(paths) {
|
|
|
6693
6701
|
})
|
|
6694
6702
|
});
|
|
6695
6703
|
}
|
|
6696
|
-
var
|
|
6704
|
+
var SortAsc = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6697
6705
|
width: "8",
|
|
6698
6706
|
height: "5",
|
|
6699
6707
|
viewBox: "0 0 8 5",
|
|
@@ -6705,7 +6713,7 @@ var TableSortIconUp = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
|
6705
6713
|
d: "M0.656815 3.87248L3.6396 0.192827C3.84802 -0.064284 4.18544 -0.0642746 4.39384 0.192848L7.3432 3.83158C7.55194 4.08911 7.55231 4.50711 7.34403 4.76521C7.2446 4.88842 7.10983 4.9581 6.96905 4.95907L1.03691 4.99999C0.742031 5.00202 0.501653 4.70811 0.500008 4.34351C0.499211 4.16689 0.555689 3.99723 0.656815 3.87248Z"
|
|
6706
6714
|
})
|
|
6707
6715
|
});
|
|
6708
|
-
var
|
|
6716
|
+
var SortDesc = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6709
6717
|
width: "8",
|
|
6710
6718
|
height: "5",
|
|
6711
6719
|
viewBox: "0 0 8 5",
|
|
@@ -6718,22 +6726,14 @@ var TableSortIconDown = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
|
6718
6726
|
})
|
|
6719
6727
|
});
|
|
6720
6728
|
var clock = ['M12 23C5.925 23 1 18.075 1 12C1 5.925 5.925 1 12 1C18.075 1 23 5.925 23 12C23 18.075 18.075 23 12 23ZM12 21C15.2154 21 18.1865 19.2846 19.7942 16.5C21.4019 13.7154 21.4019 10.2846 19.7942 7.5C18.1865 4.71539 15.2154 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21ZM13 11H18C18.5523 11 19 11.4477 19 12C19 12.5523 18.5523 13 18 13H12C11.4477 13 11 12.5523 11 12V6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6V11Z'];
|
|
6721
|
-
var closeCircle = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6722
|
-
d: "M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z",
|
|
6723
|
-
fill: "currentColor"
|
|
6724
|
-
}, '1'), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6725
|
-
d: "M9.6129 8.2097C9.22061 7.90468 8.65338 7.93241 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.413 11.828L8.29289 13.9497L8.2097 14.044C7.90468 14.4362 7.93241 15.0035 8.29289 15.364C8.68342 15.7545 9.31658 15.7545 9.70711 15.364L11.828 13.242L13.9497 15.364L14.044 15.4471C14.4362 15.7522 15.0035 15.7244 15.364 15.364C15.7545 14.9734 15.7545 14.3403 15.364 13.9497L13.242 11.828L15.364 9.70711L15.4471 9.6129C15.7522 9.22061 15.7244 8.65338 15.364 8.29289C14.9734 7.90237 14.3403 7.90237 13.9497 8.29289L11.828 10.413L9.70711 8.29289L9.6129 8.2097Z",
|
|
6726
|
-
fill: "white"
|
|
6727
|
-
}, '2')];
|
|
6728
6729
|
var recoverCircle = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6729
6730
|
d: "M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z",
|
|
6730
6731
|
fill: "currentColor"
|
|
6731
6732
|
}, '1'), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6736
|
-
strokeLinejoin: "round"
|
|
6733
|
+
fillRule: "evenodd",
|
|
6734
|
+
clipRule: "evenodd",
|
|
6735
|
+
d: "M10.1967 6.28261C10.5929 6.66737 10.6022 7.30046 10.2174 7.69667L9.39504 8.54349H13.3752C15.8901 8.54349 18 10.51 18 13.0217C18 15.5335 15.8901 17.5 13.3752 17.5H8.84425C8.29196 17.5 7.84425 17.0523 7.84425 16.5C7.84425 15.9477 8.29196 15.5 8.84425 15.5H13.3752C14.8641 15.5 16 14.352 16 13.0217C16 11.6915 14.8641 10.5435 13.3752 10.5435H9.43488L10.1964 11.2823C10.5927 11.6669 10.6023 12.3 10.2177 12.6964C9.83312 13.0927 9.20003 13.1023 8.80365 12.7177L6.30365 10.2921C6.11325 10.1073 6.00406 9.85452 6.00011 9.58925C5.99616 9.32399 6.09779 9.06803 6.28261 8.87771L8.78261 6.30333C9.16737 5.90713 9.80046 5.89785 10.1967 6.28261Z",
|
|
6736
|
+
fill: "white"
|
|
6737
6737
|
}, '2')];
|
|
6738
6738
|
var arrowDown = ['M11.2929 15.7071C11.6534 16.0676 12.2206 16.0953 12.6129 15.7903L12.7071 15.7071L18.7071 9.70711C19.0976 9.31658 19.0976 8.68342 18.7071 8.29289C18.3466 7.93241 17.7794 7.90468 17.3871 8.2097L17.2929 8.29289L12.7072 12.8779C12.3165 13.2683 11.6835 13.2683 11.2928 12.8779L6.70711 8.29289C6.34662 7.93241 5.77939 7.90468 5.3871 8.2097L5.29289 8.29289C4.93241 8.65338 4.90468 9.22061 5.2097 9.6129L5.29289 9.70711L11.2929 15.7071Z'];
|
|
6739
6739
|
var arrowLeft = ['M7.29289 12.7071C6.93241 12.3466 6.90468 11.7794 7.2097 11.3871L7.29289 11.2929L13.2929 5.29289C13.6834 4.90237 14.3166 4.90237 14.7071 5.29289C15.0676 5.65338 15.0953 6.22061 14.7903 6.6129L14.7071 6.70711L10.1221 11.2928C9.7317 11.6835 9.7317 12.3165 10.1221 12.7072L14.7071 17.2929C15.0676 17.6534 15.0953 18.2206 14.7903 18.6129L14.7071 18.7071C14.3466 19.0676 13.7794 19.0953 13.3871 18.7903L13.2929 18.7071L7.29289 12.7071Z'];
|
|
@@ -6747,24 +6747,74 @@ var imageDownload = ['M12.0673 2C15.7465 2 18.7667 4.82116 19.0828 8.41823C21.39
|
|
|
6747
6747
|
var imagePreview = ['M17.177 11.248C15.258 9.776 13.429 9 12 9C10.57 9 8.74 9.775 6.822 11.246C6.466 11.519 6.118 11.809 5.792 12.101C6.118 12.394 6.467 12.684 6.823 12.957C8.743 14.428 10.573 15.204 12.003 15.204C13.433 15.204 15.262 14.429 17.18 12.959C17.535 12.686 17.883 12.397 18.208 12.105C17.8755 11.8062 17.5316 11.5203 17.177 11.248ZM20.581 11.628C20.743 11.802 20.885 11.964 21 12.105C20.885 12.245 20.743 12.407 20.582 12.58C19.9074 13.293 19.1763 13.9505 18.396 14.546C16.234 16.204 13.994 17.204 12.003 17.204C10.012 17.204 7.771 16.203 5.607 14.544C4.82603 13.9482 4.09433 13.2904 3.419 12.577C3.27436 12.4231 3.13463 12.2647 3 12.102C3.115 11.961 3.257 11.799 3.419 11.626C4.09367 10.913 4.8247 10.2555 5.605 9.66C7.77 8 10.01 7 12 7C13.99 7 16.23 8.001 18.394 9.661C19.1747 10.2572 19.906 10.9143 20.581 11.628ZM4 4V7C4.00002 7.13134 3.97417 7.26139 3.92392 7.38273C3.87368 7.50407 3.80002 7.61433 3.70716 7.70721C3.6143 7.80008 3.50405 7.87375 3.38272 7.92402C3.26138 7.97428 3.13133 8.00015 3 8.00015C2.86867 8.00015 2.73862 7.97428 2.61728 7.92402C2.49595 7.87375 2.3857 7.80008 2.29284 7.70721C2.19998 7.61433 2.12632 7.50407 2.07608 7.38273C2.02583 7.26139 1.99998 7.13134 2 7V3C2 2.73478 2.10536 2.48043 2.29289 2.29289C2.48043 2.10536 2.73478 2 3 2H7C7.13134 1.99998 7.26139 2.02583 7.38273 2.07608C7.50407 2.12632 7.61433 2.19998 7.70721 2.29284C7.80008 2.3857 7.87375 2.49595 7.92402 2.61728C7.97428 2.73862 8.00015 2.86867 8.00015 3C8.00015 3.13133 7.97428 3.26138 7.92402 3.38272C7.87375 3.50405 7.80008 3.6143 7.70721 3.70716C7.61433 3.80002 7.50407 3.87368 7.38273 3.92392C7.26139 3.97417 7.13134 4.00002 7 4H4ZM4 20H7C7.26519 20 7.51951 20.1054 7.70701 20.2929C7.89451 20.4805 7.99985 20.7348 7.99985 21C7.99985 21.2652 7.89451 21.5195 7.70701 21.7071C7.51951 21.8946 7.26519 22 7 22H3C2.73478 22 2.48043 21.8946 2.29289 21.7071C2.10536 21.5196 2 21.2652 2 21V17C2.00004 16.7348 2.10542 16.4805 2.29295 16.293C2.48048 16.1055 2.73481 16.0002 3 16.0002C3.26519 16.0002 3.51952 16.1055 3.70705 16.293C3.89458 16.4805 3.99996 16.7348 4 17V20ZM20 4H17C16.7348 3.99996 16.4805 3.89458 16.293 3.70705C16.1055 3.51952 16.0002 3.26519 16.0002 3C16.0002 2.73481 16.1055 2.48048 16.293 2.29295C16.4805 2.10542 16.7348 2.00004 17 2H21C21.2652 2 21.5196 2.10536 21.7071 2.29289C21.8946 2.48043 22 2.73478 22 3V7C22 7.26519 21.8946 7.51951 21.7071 7.70701C21.5195 7.89451 21.2652 7.99985 21 7.99985C20.7348 7.99985 20.4805 7.89451 20.2929 7.70701C20.1054 7.51951 20 7.26519 20 7V4ZM20 20V17C20 16.7348 20.1054 16.4805 20.2929 16.293C20.4805 16.1055 20.7348 16.0002 21 16.0002C21.2652 16.0002 21.5195 16.1055 21.7071 16.293C21.8946 16.4805 22 16.7348 22 17V21C22 21.2652 21.8946 21.5196 21.7071 21.7071C21.5196 21.8946 21.2652 22 21 22H17C16.7348 22 16.4805 21.8946 16.293 21.7071C16.1055 21.5195 16.0002 21.2652 16.0002 21C16.0002 20.7348 16.1055 20.4805 16.293 20.2929C16.4805 20.1054 16.7348 20 17 20H20ZM12 14.5C11.6717 14.5 11.3466 14.4353 11.0433 14.3097C10.74 14.1841 10.4644 13.9999 10.2322 13.7678C10.0001 13.5356 9.81594 13.26 9.6903 12.9567C9.56467 12.6534 9.5 12.3283 9.5 12C9.5 11.6717 9.56467 11.3466 9.6903 11.0433C9.81594 10.74 10.0001 10.4644 10.2322 10.2322C10.4644 10.0001 10.74 9.81594 11.0433 9.6903C11.3466 9.56467 11.6717 9.5 12 9.5C12.663 9.5 13.2989 9.76339 13.7678 10.2322C14.2366 10.7011 14.5 11.337 14.5 12C14.5 12.663 14.2366 13.2989 13.7678 13.7678C13.2989 14.2366 12.663 14.5 12 14.5ZM12 12.5C12.1326 12.5 12.2598 12.4473 12.3536 12.3536C12.4473 12.2598 12.5 12.1326 12.5 12C12.5 11.8674 12.4473 11.7402 12.3536 11.6464C12.2598 11.5527 12.1326 11.5 12 11.5C11.8674 11.5 11.7402 11.5527 11.6464 11.6464C11.5527 11.7402 11.5 11.8674 11.5 12C11.5 12.1326 11.5527 12.2598 11.6464 12.3536C11.7402 12.4473 11.8674 12.5 12 12.5Z'];
|
|
6748
6748
|
var hide = ['M13.0384 12.1565V16.2235C13.0213 16.7681 12.5748 17.2007 12.0299 17.2007C11.485 17.2007 11.0386 16.7681 11.0214 16.2235V12.1895V12.1565C9.98553 12.0881 8.95945 11.9131 7.95942 11.6345L4.63942 14.9555C4.24564 15.3498 3.60675 15.3502 3.21242 14.9565C2.81809 14.5627 2.81764 13.9238 3.21142 13.5295L5.86142 10.8795C4.16901 10.1224 2.63013 9.06073 1.32142 7.74745C1.0512 7.49584 0.940005 7.11672 1.03149 6.75901C1.12298 6.4013 1.40255 6.12213 1.76038 6.03114C2.11822 5.94016 2.49718 6.05189 2.74842 6.32245C5.20494 8.79141 8.54557 10.1773 12.0284 10.1725C15.5564 10.1725 18.8604 8.77445 21.3044 6.32845C21.5569 6.06287 21.9336 5.95508 22.2884 6.04686C22.6432 6.13865 22.9203 6.41558 23.0123 6.7703C23.1044 7.12502 22.9968 7.50176 22.7314 7.75445C21.4239 9.06462 19.8871 10.1238 18.1974 10.8795L20.8474 13.5295C21.2247 13.9262 21.2167 14.5514 20.8294 14.9384C20.4421 15.3254 19.8169 15.333 19.4204 14.9555L16.1004 11.6355C15.1094 11.9105 14.0844 12.0875 13.0374 12.1555L13.0384 12.1565Z'];
|
|
6749
6749
|
var display = ['M20.41 11.536C19.7483 10.8368 19.0313 10.1921 18.266 9.608C16.146 7.98 13.951 7 12 7C10.049 7 7.853 7.98 5.733 9.606C4.96801 10.19 4.25136 10.8348 3.59 11.534C3.34585 11.7967 3.34584 12.2033 3.58999 12.466C4.25208 13.1649 4.96941 13.8093 5.735 14.393C7.855 16.02 10.05 17 12.003 17C13.954 17 16.149 16.02 18.269 14.395C19.0333 13.8113 19.7493 13.1668 20.41 12.468C20.4106 12.4674 20.4111 12.4668 20.4117 12.4662C20.6554 12.2037 20.6547 11.7975 20.41 11.536ZM12 5C16.416 5 22.997 10.05 23 12.001C23.003 13.953 16.42 19.001 12.003 19C7.586 19 1.003 13.953 1 12.001C0.997002 10.05 7.583 5 12 5ZM12 15.5C10.067 15.5 8.5 13.933 8.5 12C8.5 10.067 10.067 8.5 12 8.5C13.933 8.5 15.5 10.067 15.5 12C15.5 13.933 13.933 15.5 12 15.5ZM12 13.5C12.8284 13.5 13.5 12.8284 13.5 12C13.5 11.1716 12.8284 10.5 12 10.5C11.1716 10.5 10.5 11.1716 10.5 12C10.5 12.8284 11.1716 13.5 12 13.5Z'];
|
|
6750
|
+
var loading = ["M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 11.4477 1.44967 11 2.00195 11C2.55424 11 3.00195 11.4477 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02943 16.9725 3 12.002 3C11.4497 3 11.002 2.55228 11.002 2C11.002 1.44772 11.4497 1 12.002 1Z"];
|
|
6750
6751
|
|
|
6751
6752
|
// const info = [
|
|
6752
6753
|
// 'M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM12 8C12.5523 8 13 7.55228 13 7C13 6.44772 12.5523 6 12 6C11.4477 6 11 6.44772 11 7C11 7.55228 11.4477 8 12 8ZM12 19C12.5523 19 13 18.5523 13 18V10C13 9.44772 12.5523 9 12 9C11.4477 9 11 9.44772 11 10V18C11 18.5523 11.4477 19 12 19Z',
|
|
6753
6754
|
// ];
|
|
6754
|
-
|
|
6755
|
-
|
|
6755
|
+
var pcAttentionCircleFill = /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
6756
|
+
viewBox: "0 0 16 16",
|
|
6757
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6758
|
+
focusable: "false",
|
|
6759
|
+
fill: "currentColor",
|
|
6760
|
+
"aria-hidden": "true",
|
|
6761
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("g", {
|
|
6762
|
+
clipPath: "url(#clip0_20849_13086)",
|
|
6763
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6764
|
+
fillRule: "evenodd",
|
|
6765
|
+
clipRule: "evenodd",
|
|
6766
|
+
d: "M8.00022 15.3271C12.0469 15.3271 15.3273 12.0466 15.3273 7.99997C15.3273 3.95332 12.0469 0.672852 8.00022 0.672852C3.95356 0.672852 0.673096 3.95332 0.673096 7.99997C0.673096 12.0466 3.95356 15.3271 8.00022 15.3271ZM7.62464 2.75198C7.24203 2.75198 6.93793 3.07331 6.95899 3.45533L7.2855 9.37921C7.30497 9.73261 7.59722 10.0092 7.95115 10.0092H8.04928C8.40322 10.0092 8.69546 9.73261 8.71494 9.37921L9.04145 3.45533C9.06251 3.07331 8.7584 2.75198 8.37579 2.75198H7.62464ZM8.88822 11.2566C8.64822 11.0326 8.34422 10.9206 7.99222 10.9206C7.64022 10.9206 7.35222 11.0326 7.12822 11.2566C6.87222 11.4806 6.76022 11.7686 6.76022 12.1206C6.76022 12.4726 6.87222 12.7606 7.12822 12.9846C7.35222 13.2086 7.64022 13.3366 7.99222 13.3366C8.34422 13.3366 8.63222 13.2246 8.88822 13.0006C9.11222 12.7766 9.24022 12.4726 9.24022 12.1206C9.24022 11.7686 9.11222 11.4806 8.88822 11.2566Z"
|
|
6767
|
+
})
|
|
6768
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("defs", {
|
|
6769
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("clipPath", {
|
|
6770
|
+
id: "clip0_20849_13086",
|
|
6771
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
6772
|
+
width: "16",
|
|
6773
|
+
height: "16",
|
|
6774
|
+
fill: "white"
|
|
6775
|
+
})
|
|
6776
|
+
})
|
|
6777
|
+
})]
|
|
6778
|
+
});
|
|
6756
6779
|
var success = ['M12 23C5.92487 23 1 18.0751 1 12C1 5.92487 5.92487 1 12 1C18.0751 1 23 5.92487 23 12C23 18.0751 18.0751 23 12 23ZM6.34315 13.8284L8.46305 15.9483C9.24511 16.7304 10.5122 16.7304 11.2943 15.9483L17.6569 9.58579C18.0472 9.19546 18.0472 8.5619 17.6569 8.17157C17.2665 7.78125 16.633 7.78125 16.2426 8.17157L10.5872 13.827C10.1962 14.218 9.56119 14.218 9.17016 13.827L7.75736 12.4142C7.36704 12.0239 6.73347 12.0239 6.34315 12.4142C5.95282 12.8045 5.95282 13.4381 6.34315 13.8284Z'];
|
|
6757
|
-
var
|
|
6758
|
-
|
|
6759
|
-
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6763
|
-
|
|
6764
|
-
},
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6780
|
+
var calendar = /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
6781
|
+
viewBox: "0 0 24 24",
|
|
6782
|
+
focusable: "false",
|
|
6783
|
+
fill: "currentColor",
|
|
6784
|
+
"aria-hidden": "true",
|
|
6785
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6786
|
+
d: "M8.00195 2C8.55424 2 9.00195 2.44772 9.00195 3V4H15.002V3C15.002 2.44772 15.4497 2 16.002 2C16.5542 2 17.002 2.44772 17.002 3V4H20.002C20.9758 4 22.002 5.01582 22.002 6V20C22.002 20.9683 21.003 22 20.002 22H4.00195C2.98763 22 2.00195 20.9869 2.00195 20V6C2.00195 4.99158 2.9996 4 4.00195 4H7.00195V3C7.00195 2.44772 7.44967 2 8.00195 2ZM20.002 13C20.002 12.4477 19.5542 12 19.002 12H5.00195C4.44967 12 4.00195 12.4477 4.00195 13V19C4.00195 19.5523 4.44967 20 5.00195 20H19.002C19.5542 20 20.002 19.5523 20.002 19V13ZM7.00195 6H5.00195C4.44967 6 4.00195 6.44772 4.00195 7V9C4.00195 9.55228 4.44967 10 5.00195 10H19.002C19.5542 10 20.002 9.55228 20.002 9V7C20.002 6.44772 19.5542 6 19.002 6H17.002V7C17.002 7.55228 16.5542 8 16.002 8C15.4497 8 15.002 7.55228 15.002 7V6H9.00195V7C9.00195 7.55228 8.55424 8 8.00195 8C7.44967 8 7.00195 7.55228 7.00195 7V6Z"
|
|
6787
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6788
|
+
d: "M9.59337 15.6868C9.59337 16.5152 8.92179 17.1868 8.09337 17.1868C7.26494 17.1868 6.59337 16.5152 6.59337 15.6868C6.59337 14.8583 7.26494 14.1868 8.09337 14.1868C8.92179 14.1868 9.59337 14.8583 9.59337 15.6868Z"
|
|
6789
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6790
|
+
d: "M13.5348 15.6868C13.5348 16.5152 12.8632 17.1868 12.0348 17.1868C11.2063 17.1868 10.5348 16.5152 10.5348 15.6868C10.5348 14.8583 11.2063 14.1868 12.0348 14.1868C12.8632 14.1868 13.5348 14.8583 13.5348 15.6868Z"
|
|
6791
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6792
|
+
d: "M17.4762 15.6868C17.4762 16.5152 16.8046 17.1868 15.9762 17.1868C15.1478 17.1868 14.4762 16.5152 14.4762 15.6868C14.4762 14.8583 15.1478 14.1868 15.9762 14.1868C16.8046 14.1868 17.4762 14.8583 17.4762 15.6868Z"
|
|
6793
|
+
})]
|
|
6794
|
+
});
|
|
6795
|
+
var icons_close = /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6796
|
+
viewBox: "0 0 16 16",
|
|
6797
|
+
focusable: "false",
|
|
6798
|
+
fill: "currentColor",
|
|
6799
|
+
"aria-hidden": "true",
|
|
6800
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6801
|
+
d: "M3.73895 2.81241L3.80175 2.86787L8 7.05665L12.2379 2.81922C12.4983 2.55888 12.9204 2.55888 13.1808 2.81922C13.4211 3.05955 13.4396 3.4377 13.2362 3.69923L13.1808 3.76203L8.94334 7.99998L13.1376 12.1948C13.398 12.4552 13.398 12.8773 13.1376 13.1376C12.8973 13.3779 12.5192 13.3964 12.2576 13.1931L12.1948 13.1376L8 8.94332L3.78745 13.1553C3.5271 13.4156 3.10499 13.4156 2.84464 13.1553C2.60432 12.9149 2.58583 12.5368 2.78918 12.2753L2.84464 12.2124L7.05667 7.99998L2.85894 3.81068C2.59859 3.55033 2.59859 3.12822 2.85894 2.86787C3.09927 2.62755 3.47742 2.60906 3.73895 2.81241Z",
|
|
6802
|
+
fill: "currentColor"
|
|
6803
|
+
})
|
|
6804
|
+
});
|
|
6805
|
+
var closeFill = /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
6806
|
+
viewBox: "0 0 24 24",
|
|
6807
|
+
focusable: "false",
|
|
6808
|
+
fill: "currentColor",
|
|
6809
|
+
"aria-hidden": "true",
|
|
6810
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6811
|
+
d: "M12 23C5.924 23 1 18.076 1 12C1 5.924 5.924 1 12 1C18.076 1 23 5.924 23 12C23 18.076 18.076 23 12 23Z",
|
|
6812
|
+
fill: "currentColor"
|
|
6813
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6814
|
+
d: "M9.6129 8.2097C9.22061 7.90468 8.65338 7.93241 8.29289 8.29289C7.90237 8.68342 7.90237 9.31658 8.29289 9.70711L10.413 11.828L8.29289 13.9497L8.2097 14.044C7.90468 14.4362 7.93241 15.0035 8.29289 15.364C8.68342 15.7545 9.31658 15.7545 9.70711 15.364L11.828 13.242L13.9497 15.364L14.044 15.4471C14.4362 15.7522 15.0035 15.7244 15.364 15.364C15.7545 14.9734 15.7545 14.3403 15.364 13.9497L13.242 11.828L15.364 9.70711L15.4471 9.6129C15.7522 9.22061 15.7244 8.65338 15.364 8.29289C14.9734 7.90237 14.3403 7.90237 13.9497 8.29289L11.828 10.413L9.70711 8.29289L9.6129 8.2097Z",
|
|
6815
|
+
fill: "white"
|
|
6816
|
+
})]
|
|
6817
|
+
});
|
|
6768
6818
|
var file = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6769
6819
|
d: "M16 2L22 7.5V20C22 21.1046 21.1046 22 20 22H4C2.89543 22 2 21.1046 2 20V4C2 2.89543 2.89543 2 4 2H16ZM15.2 4H5C4.48716 4 4.06449 4.38604 4.00673 4.88338L4 5V19C4 19.5128 4.38604 19.9355 4.88338 19.9933L5 20H19C19.5128 20 19.9355 19.614 19.9933 19.1166L20 19V8.4L15.2 4ZM13.1111 15C13.602 15 14 15.4477 14 16C14 16.5128 13.6569 16.9355 13.2148 16.9933L13.1111 17H6.88889C6.39797 17 6 16.5523 6 16C6 15.4872 6.34315 15.0645 6.78523 15.0067L6.88889 15H13.1111ZM17.0769 10C17.5867 10 18 10.4477 18 11C18 11.5128 17.6437 11.9355 17.1846 11.9933L17.0769 12H6.92308C6.41328 12 6 11.5523 6 11C6 10.4872 6.35635 10.0645 6.81543 10.0067L6.92308 10H17.0769Z"
|
|
6770
6820
|
}, 'file')];
|
|
@@ -6775,16 +6825,21 @@ var del = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
|
6775
6825
|
}, 'del')];
|
|
6776
6826
|
var ireturn = ['M7.20702 9.79292C7.5675 10.1534 7.59522 10.7206 7.29019 11.1129L7.207 11.2071C6.84651 11.5676 6.27928 11.5953 5.88699 11.2903L5.79278 11.2071L2.29288 7.70711C2.25484 7.66908 2.22054 7.62879 2.18995 7.5867C2.17548 7.56659 2.16126 7.54536 2.14785 7.52359C2.14086 7.51251 2.13445 7.50164 2.12827 7.49068C2.1164 7.46937 2.10484 7.44697 2.09412 7.4241C2.08688 7.40894 2.08035 7.39401 2.0742 7.37896C2.0665 7.35996 2.0592 7.34043 2.0525 7.32062C2.0466 7.30329 2.04118 7.28562 2.03626 7.26784C2.03061 7.24742 2.02557 7.2267 2.02118 7.20575C2.01805 7.19068 2.01528 7.17566 2.01284 7.1606C2.00957 7.14048 2.00687 7.11973 2.00482 7.09878C2.00225 7.07259 2.00072 7.04657 2.0002 7.02054C2.00007 7.01361 2 7.00682 2 7.00002L2.00004 6.99059C2.00028 6.96616 2.0014 6.94175 2.00341 6.91741L2 7.00002C2 6.95394 2.00312 6.90858 2.00915 6.86416C2.01177 6.84557 2.01486 6.82687 2.01847 6.80826C2.02191 6.79005 2.02591 6.77214 2.03038 6.75442C2.03547 6.73462 2.04111 6.71483 2.04736 6.69519C2.0528 6.67801 2.05875 6.66102 2.06514 6.64425C2.07174 6.62683 2.07876 6.60977 2.08627 6.59288C2.09441 6.57484 2.10293 6.5572 2.11193 6.53985C2.11958 6.52474 2.12804 6.50938 2.13693 6.49422C2.1487 6.47459 2.16074 6.45561 2.17339 6.43707C2.18153 6.42473 2.19041 6.41232 2.19961 6.40008C2.21368 6.38171 2.22796 6.364 2.24281 6.34679C2.24857 6.3399 2.25464 6.33309 2.26081 6.32634L2.27239 6.31402C2.29136 6.29391 2.31115 6.27458 2.33172 6.2561L2.3492 6.24077L5.8491 3.24077C6.26842 2.88134 6.89972 2.9299 7.25915 3.34922C7.59093 3.73628 7.57508 4.30397 7.24087 4.67171L7.1507 4.75927L5.703 6L14.4969 6.00002C18.4758 6.00002 21.8394 9.2348 21.9944 13.2111C22.1552 17.3326 18.8314 20.8644 14.7341 20.9962L14.4969 21H5.9992C5.44692 21 4.9992 20.5523 4.9992 20C4.9992 19.4872 5.38524 19.0645 5.88258 19.0067L5.9992 19H14.4969C17.5678 19 20.1155 16.3548 19.996 13.289C19.8856 10.4588 17.5241 8.11965 14.7139 8.00446L14.4969 8.00002L5.415 8L7.20702 9.79292Z'];
|
|
6777
6827
|
var add = ['M12.0317 4C12.5445 4.00067 12.9667 4.38727 13.0238 4.88468L13.0303 5.00131L13.022 11H19C19.5523 11 20 11.4477 20 12C20 12.5128 19.614 12.9355 19.1166 12.9933L19 13H13.02L13.012 19.0013C13.0113 19.5536 12.563 20.0007 12.0107 20C11.4979 19.9993 11.0757 19.6127 11.0186 19.1153L11.012 18.9987L11.02 13H5C4.44772 13 4 12.5523 4 12C4 11.4872 4.38604 11.0645 4.88338 11.0067L5 11H11.022L11.0304 4.99869C11.0311 4.44641 11.4794 3.99928 12.0317 4Z'];
|
|
6828
|
+
var minus = [/*#__PURE__*/(0,jsx_runtime.jsx)("g", {
|
|
6829
|
+
stroke: "none",
|
|
6830
|
+
strokeWidth: "1",
|
|
6831
|
+
fillRule: "evenodd",
|
|
6832
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6833
|
+
d: "M19.25,11 C19.8022847,11 20.25,11.4477153 20.25,12 C20.25,12.5128358 19.8639598,12.9355072 19.3666211,12.9932723 L19.25,13 L5.25,13 C4.69771525,13 4.25,12.5522847 4.25,12 C4.25,11.4871642 4.63604019,11.0644928 5.13337887,11.0067277 L5.25,11 L19.25,11 Z"
|
|
6834
|
+
})
|
|
6835
|
+
}, "minus")];
|
|
6778
6836
|
var more = ['M5 10C6.10457 10 7 10.8954 7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10ZM12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10ZM19 10C20.1046 10 21 10.8954 21 12C21 13.1046 20.1046 14 19 14C17.8954 14 17 13.1046 17 12C17 10.8954 17.8954 10 19 10Z'];
|
|
6779
6837
|
var warningSimple = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
d: "M12 3C11.4477 3 11 3.44772 11 4V16C11 16.5523 11.4477 17 12 17C12.5523 17 13 16.5523 13 16V4C13 3.44772 12.5523 3 12 3ZM12 19C11.4477 19 11 19.4477 11 20C11 20.5523 11.4477 21 12 21C12.5523 21 13 20.5523 13 20C13 19.4477 12.5523 19 12 19Z"
|
|
6838
|
+
d: "M10.4312 4.48155C10.4031 3.91069 10.8584 3.4325 11.43 3.4325H12.5693C13.1409 3.4325 13.5962 3.91069 13.5681 4.48155L13.0664 14.6976C13.0402 15.2301 12.6008 15.6485 12.0676 15.6485H11.9317C11.3985 15.6485 10.9591 15.2301 10.9329 14.6976L10.4312 4.48155ZM11.9876 16.9445C12.5156 16.9445 12.9716 17.1125 13.3316 17.4485C13.6676 17.7845 13.8596 18.2165 13.8596 18.7445C13.8596 19.2725 13.6676 19.7285 13.3316 20.0645C12.9476 20.4005 12.5156 20.5685 11.9876 20.5685C11.4596 20.5685 11.0276 20.3765 10.6916 20.0405C10.3076 19.7045 10.1396 19.2725 10.1396 18.7445C10.1396 18.2165 10.3076 17.7845 10.6916 17.4485C11.0276 17.1125 11.4596 16.9445 11.9876 16.9445Z",
|
|
6839
|
+
fill: "currentColor"
|
|
6783
6840
|
}, 'warning')];
|
|
6784
6841
|
var tip = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6785
|
-
|
|
6786
|
-
clipRule: "evenodd",
|
|
6787
|
-
d: "M12 3.00049C11.4477 3.00049 11 3.4482 11 4.00049C11 4.55277 11.4477 5.00049 12 5.00049C12.5523 5.00049 13 4.55277 13 4.00049C13 3.4482 12.5523 3.00049 12 3.00049ZM12 7.00049C11.4477 7.00049 11 7.4482 11 8.00049V20.0005C11 20.5528 11.4477 21.0005 12 21.0005C12.5523 21.0005 13 20.5528 13 20.0005V8.00049C13 7.4482 12.5523 7.00049 12 7.00049Z"
|
|
6842
|
+
d: "M12.002 6.5C12.8304 6.5 13.502 5.82843 13.502 5C13.502 4.17157 12.8304 3.5 12.002 3.5C11.1736 3.5 10.502 4.17157 10.502 5C10.502 5.82843 11.1736 6.5 12.002 6.5ZM9.00195 9.5C9.00195 10.0523 9.44967 10.5 10.002 10.5H11.002V18.5H10.002C9.44967 18.5 9.00195 18.9477 9.00195 19.5C9.00195 20.0523 9.44967 20.5 10.002 20.5H14.002C14.5542 20.5 15.002 20.0523 15.002 19.5C15.002 18.9477 14.5542 18.5 14.002 18.5H13.002V9.5C13.002 8.94772 12.5542 8.5 12.002 8.5H10.002C9.44967 8.5 9.00195 8.94772 9.00195 9.5Z"
|
|
6788
6843
|
}, 'tip')];
|
|
6789
6844
|
var check = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6790
6845
|
fillRule: "evenodd",
|
|
@@ -6794,32 +6849,51 @@ var check = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
|
6794
6849
|
var pcStarFill = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6795
6850
|
d: "M8.27612 7.825L1.85661 8.7559L1.7429 8.77878C1.00773 8.96968 0.736981 9.90915 1.30105 10.4606L5.95312 15.008L4.84243 21.3268L4.82923 21.4327C4.773 22.2003 5.59427 22.7575 6.29775 22.3824L11.9991 19.343L17.7025 22.3825L17.799 22.4279C18.5106 22.7194 19.2949 22.1128 19.1579 21.3281L18.0541 15.008L22.6998 10.46L22.7781 10.3745C23.2587 9.78723 22.9243 8.86973 22.1444 8.75601L15.7581 7.825L12.8952 2.05544C12.5266 1.31273 11.4662 1.31545 11.1014 2.06004L8.27612 7.825Z"
|
|
6796
6851
|
}, 'star')];
|
|
6797
|
-
var
|
|
6852
|
+
var ShineoutShrink = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6798
6853
|
fillRule: "evenodd",
|
|
6799
6854
|
clipRule: "evenodd",
|
|
6800
|
-
d: "M19.
|
|
6801
|
-
}, '
|
|
6855
|
+
d: "M19.502 2C20.8827 2 22.002 3.11929 22.002 4.5V19.5C22.002 20.8807 20.8827 22 19.502 22H4.50195C3.12124 22 2.00195 20.8807 2.00195 19.5V4.5C2.00195 3.11929 3.12124 2 4.50195 2H19.502ZM19.502 4H4.50195C4.22581 4 4.00195 4.22386 4.00195 4.5V19.5C4.00195 19.7761 4.22581 20 4.50195 20H19.502C19.7781 20 20.002 19.7761 20.002 19.5V4.5C20.002 4.22386 19.7781 4 19.502 4ZM12.002 7C12.5148 7 12.9375 7.38604 12.9952 7.88338L13.002 8V11H16.002C16.5542 11 17.002 11.4477 17.002 12C17.002 12.5128 16.6159 12.9355 16.1186 12.9933L16.002 13H13.002V16C13.002 16.5523 12.5542 17 12.002 17C11.4891 17 11.0664 16.614 11.0087 16.1166L11.002 16V13H8.00195C7.44967 13 7.00195 12.5523 7.00195 12C7.00195 11.4872 7.38799 11.0645 7.88533 11.0067L8.00195 11H11.002V8C11.002 7.44772 11.4497 7 12.002 7Z"
|
|
6856
|
+
}, 'shrink')];
|
|
6802
6857
|
var expand = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6803
6858
|
fillRule: "evenodd",
|
|
6804
6859
|
clipRule: "evenodd",
|
|
6805
|
-
d: "
|
|
6860
|
+
d: "M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM16 11C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13C10.701 13 12.6557 13 8 13C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11C12.5606 11 10.8111 11 16 11Z"
|
|
6806
6861
|
}, 0)];
|
|
6807
|
-
var treeArrow = ['M18.2209 9.72141L12.6344 15.2952C12.2441 15.6847 11.6121 15.6846 11.2218 15.2952L5.6979 9.78337C5.30695 9.39327 5.30625 8.76011 5.69635 8.36915C5.88258 8.18251 6.13499 8.07697 6.39865 8.0755L17.5091 8.01351C18.0613 8.01043 18.5116 8.45564 18.5146 9.00792C18.5161 9.27546 18.4103 9.53244 18.2209 9.72141Z'];
|
|
6808
|
-
var treePlus = ['M19.5 2C20.8807 2 22 3.11929 22 4.5V19.5C22 20.8807 20.8807 22 19.5 22H4.5C3.11929 22 2 20.8807 2 19.5V4.5C2 3.11929 3.11929 2 4.5 2H19.5ZM19.5 4H4.5C4.22386 4 4 4.22386 4 4.5V19.5C4 19.7761 4.22386 20 4.5 20H19.5C19.7761 20 20 19.7761 20 19.5V4.5C20 4.22386 19.7761 4 19.5 4ZM12 7C12.5128 7 12.9355 7.38604 12.9933 7.88338L13 8V11H16C16.5523 11 17 11.4477 17 12C17 12.5128 16.614 12.9355 16.1166 12.9933L16 13H13V16C13 16.5523 12.5523 17 12 17C11.4872 17 11.0645 16.614 11.0067 16.1166L11 16V13H8C7.44772 13 7 12.5523 7 12C7 11.4872 7.38604 11.0645 7.88338 11.0067L8 11H11V8C11 7.44772 11.4477 7 12 7Z'];
|
|
6809
|
-
var treeMinus = ['M22 4.5C22 3.11929 20.8807 2 19.5 2H4.5C3.11929 2 2 3.11929 2 4.5V19.5C2 20.8807 3.11929 22 4.5 22H19.5C20.8807 22 22 20.8807 22 19.5V4.5ZM4.5 4H19.5C19.7761 4 20 4.22386 20 4.5V19.5C20 19.7761 19.7761 20 19.5 20H4.5C4.22386 20 4 19.7761 4 19.5V4.5C4 4.22386 4.22386 4 4.5 4ZM8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H16C16.5523 13 17 12.5523 17 12C17 11.4477 16.5523 11 16 11H8Z'];
|
|
6810
6862
|
var pcHelpCircleFill = ['M11 0C13.9562 0 16.7292 1.17289 18.7782 3.22183C20.8271 5.27079 22 8.04381 22 11C22 13.9562 20.8271 16.7292 18.7782 18.7782C16.7292 20.8271 13.9562 22 11 22C8.04381 22 5.27079 20.8271 3.22182 18.7782C1.17289 16.7292 0 13.9562 0 11C0 8.04381 1.17289 5.27079 3.22183 3.22182C5.27079 1.17289 8.04381 0 11 0ZM11 15.3125C10.3097 15.3125 9.75 15.8721 9.75 16.5625C9.75 17.2528 10.3097 17.8125 11 17.8125C11.6903 17.8125 12.25 17.2528 12.25 16.5625C12.25 15.8721 11.6903 15.3125 11 15.3125ZM11 4.31245C8.79086 4.31245 7 6.10332 7 8.31245C7 8.86474 7.44772 9.31245 8 9.31245C8.55229 9.31245 9 8.86474 9 8.31245C9 7.20789 9.89543 6.31245 11 6.31245C12.1046 6.31245 13 7.20789 13 8.31245C13 9.41702 12.1046 10.3125 11 10.3125L10.8834 10.3192C10.386 10.3769 10 10.7996 10 11.3125V13.3125L10.0067 13.4291C10.0645 13.9264 10.4872 14.3125 11 14.3125L11.1166 14.3057C11.614 14.248 12 13.8253 12 13.3125V12.185L12.1553 12.1431C13.8012 11.6474 15 10.1199 15 8.31245C15 6.10332 13.2091 4.31245 11 4.31245Z'];
|
|
6811
6863
|
var pcHelpCircleOutline = [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6812
6864
|
fillRule: "evenodd",
|
|
6813
6865
|
clipRule: "evenodd",
|
|
6814
6866
|
d: "M12.002 1C18.0771 1 23.002 5.92487 23.002 12C23.002 18.0751 18.0771 23 12.002 23C5.92682 23 1.00195 18.0751 1.00195 12C1.00195 5.92487 5.92682 1 12.002 1ZM12.002 3C7.03139 3 3.00195 7.02944 3.00195 12C3.00195 16.9706 7.03139 21 12.002 21C16.9725 21 21.002 16.9706 21.002 12C21.002 7.02944 16.9725 3 12.002 3ZM12.002 16.0263C12.7225 16.0263 13.3066 16.6105 13.3066 17.331C13.3066 18.0516 12.7225 18.6357 12.002 18.6357C11.2814 18.6357 10.6973 18.0516 10.6973 17.331C10.6973 16.6105 11.2814 16.0263 12.002 16.0263ZM12.002 5.36428C14.0358 5.36428 15.6895 7.02546 15.6895 9.06758C15.6895 9.99304 15.2656 10.622 14.1552 11.7338C14.1184 11.7707 14.1184 11.7707 14.0815 11.8076C13.2372 12.65 12.9395 13.0376 12.9395 13.3995V14.5621C12.9395 15.0797 12.5195 15.5003 12.002 15.5003C11.4844 15.5003 11.0644 15.0803 11.0644 14.5628V13.4002C11.0644 12.3785 11.5209 11.715 12.7559 10.4811C12.783 10.454 12.783 10.454 12.81 10.4269L12.8599 10.3769L12.9277 10.3087C12.9406 10.2956 12.9562 10.2798 12.9769 10.2589C13.5549 9.67191 13.8144 9.31374 13.8144 9.06758C13.8144 8.05926 13.0006 7.23928 12.002 7.23928C10.9828 7.23928 10.1895 8.02064 10.1895 9.02083C10.1895 9.53842 9.76954 9.95831 9.25195 9.95831C8.73437 9.95831 8.31444 9.53839 8.31444 9.02083C8.31444 7.00396 9.96896 5.36428 12.002 5.36428Z"
|
|
6815
6867
|
}, 0)];
|
|
6816
|
-
var pcInfoCircleFill =
|
|
6868
|
+
var pcInfoCircleFill = /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
6869
|
+
viewBox: "0 0 16 16",
|
|
6870
|
+
focusable: "false",
|
|
6871
|
+
fill: "currentColor",
|
|
6872
|
+
"aria-hidden": "true",
|
|
6873
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("g", {
|
|
6874
|
+
clipPath: "url(#clip0_20849_13152)",
|
|
6875
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
6876
|
+
fillRule: "evenodd",
|
|
6877
|
+
clipRule: "evenodd",
|
|
6878
|
+
d: "M8.00008 15.3333C12.0502 15.3333 15.3334 12.0501 15.3334 7.99999C15.3334 3.9499 12.0502 0.666656 8.00008 0.666656C3.94999 0.666656 0.666748 3.9499 0.666748 7.99999C0.666748 12.0501 3.94999 15.3333 8.00008 15.3333ZM7.62492 13.3366C7.24231 13.3366 6.9382 13.0153 6.95926 12.6332L7.28577 6.70934C7.30525 6.35594 7.59749 6.07937 7.95143 6.07937H8.04956C8.40349 6.07937 8.69574 6.35594 8.71521 6.70934L9.04173 12.6332C9.06278 13.0153 8.75868 13.3366 8.37607 13.3366H7.62492ZM8.8885 4.83196C8.6485 5.05596 8.3445 5.16796 7.9925 5.16796C7.6405 5.16796 7.3525 5.05596 7.1285 4.83196C6.8725 4.60796 6.7605 4.31996 6.7605 3.96796C6.7605 3.61596 6.8725 3.32796 7.1285 3.10396C7.3525 2.87996 7.6405 2.75196 7.9925 2.75196C8.3445 2.75196 8.6325 2.86396 8.8885 3.08796C9.1125 3.31196 9.2405 3.61596 9.2405 3.96796C9.2405 4.31996 9.1125 4.60796 8.8885 4.83196Z"
|
|
6879
|
+
})
|
|
6880
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("defs", {
|
|
6881
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("clipPath", {
|
|
6882
|
+
id: "clip0_20849_13152",
|
|
6883
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
6884
|
+
width: "16",
|
|
6885
|
+
height: "16",
|
|
6886
|
+
fill: "white"
|
|
6887
|
+
})
|
|
6888
|
+
})
|
|
6889
|
+
})]
|
|
6890
|
+
});
|
|
6817
6891
|
var search = ['M11 2C15.9706 2 20 6.02944 20 11C20 13.1248 19.2637 15.0776 18.0323 16.6172L21.1213 19.7071C21.5118 20.0976 21.5118 20.7308 21.1213 21.1213C20.7308 21.5118 20.0976 21.5118 19.7071 21.1213L16.6172 18.0323C15.0776 19.2637 13.1248 20 11 20C6.02944 20 2 15.9706 2 11C2 6.02944 6.02944 2 11 2ZM11 4C7.13401 4 4 7.13401 4 11C4 14.866 7.13401 18 11 18C14.866 18 18 14.866 18 11C18 7.13401 14.866 4 11 4Z'];
|
|
6818
6892
|
var icons_link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7322C1.66545 19.2222 1.61512 16.8053 3.02446 15.2347L3.17546 15.0754L12.6109 3.70711C14.7588 1.55923 18.2412 1.55923 20.3891 3.70711C22.4773 5.79532 22.5353 9.14496 20.5631 11.3032L20.3891 11.4853L12.3679 21.4393C11.9773 21.8299 11.3442 21.8299 10.9536 21.4394C10.5932 21.0789 10.5654 20.5116 10.8705 20.1193L10.9536 20.0251L18.9749 10.0711C20.3417 8.70423 20.3417 6.48814 18.9749 5.12132C17.6569 3.8033 15.5492 3.75623 14.1747 4.9801L14.0251 5.12132L4.58968 16.4896C3.80864 17.2706 3.80864 18.537 4.58966 19.318C5.32963 20.058 6.5051 20.0969 7.29088 19.4348L7.41809 19.318L16.8535 7.94978C17.0488 7.7545 17.0488 7.43787 16.8536 7.24262C16.68 7.06904 16.4106 7.04975 16.2157 7.18476L16.1464 7.24261L8.12521 17.1967C7.73468 17.5873 7.10152 17.5873 6.71099 17.1967C6.35051 16.8362 6.32277 16.269 6.6278 15.8767L6.71099 15.7825L14.7322 5.8284C15.7085 4.85208 17.2915 4.85208 18.2678 5.82843C19.2016 6.7623 19.2422 8.25112 18.3896 9.23328L18.2678 9.36397L8.83231 20.7322Z'];
|
|
6819
6893
|
var Icons = {
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6894
|
+
SortAsc: SortAsc,
|
|
6895
|
+
SortDesc: SortDesc,
|
|
6896
|
+
Shrink: icon(ShineoutShrink),
|
|
6823
6897
|
Expand: icon(expand),
|
|
6824
6898
|
Search: icon(search),
|
|
6825
6899
|
ArrowLeft: icon(arrowLeft),
|
|
@@ -6828,38 +6902,34 @@ var Icons = {
|
|
|
6828
6902
|
ArrowRightDouble: icon(arrowRightDouble),
|
|
6829
6903
|
Delete: icon(del),
|
|
6830
6904
|
Add: icon(add),
|
|
6905
|
+
Minus: icon(minus),
|
|
6831
6906
|
More: icon(more),
|
|
6832
|
-
|
|
6907
|
+
Calendar: calendar,
|
|
6833
6908
|
Display: icon(display),
|
|
6834
6909
|
Hide: icon(hide),
|
|
6835
|
-
AngleDoubleLeft: icon(angleDoubleLeft),
|
|
6836
|
-
AngleDoubleRight: icon(angleDoubleRight),
|
|
6837
6910
|
ArrowDown: icon(arrowDown),
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
PcCheckCircleFill: icon(success),
|
|
6911
|
+
ArrowDownFill: icon(caretFill),
|
|
6912
|
+
HelpCircleFill: icon(pcHelpCircleFill),
|
|
6913
|
+
HelpCircleOutline: icon(pcHelpCircleOutline),
|
|
6914
|
+
InfoCircleFill: pcInfoCircleFill,
|
|
6915
|
+
WarningCircleFill: pcAttentionCircleFill,
|
|
6916
|
+
CheckCircleFill: icon(success),
|
|
6845
6917
|
Info: icon(tip),
|
|
6846
6918
|
Warning: icon(warningSimple),
|
|
6847
6919
|
Check: icon(check),
|
|
6848
|
-
Close:
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6920
|
+
Close: icons_close,
|
|
6921
|
+
CloseFill: closeFill,
|
|
6922
|
+
ImageCount: icon(imageCount),
|
|
6923
|
+
ImageError: icon(imageError),
|
|
6852
6924
|
Download: icon(imageDownload),
|
|
6853
6925
|
Preview: icon(imagePreview),
|
|
6854
6926
|
Time: icon(clock),
|
|
6855
6927
|
File: icon(file),
|
|
6856
6928
|
Return: icon(ireturn),
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
TreeMinus: icon(treeMinus),
|
|
6862
|
-
Link: icon(icons_link)
|
|
6929
|
+
RecoverCircle: icon(recoverCircle),
|
|
6930
|
+
StarFill: icon(pcStarFill),
|
|
6931
|
+
Link: icon(icons_link),
|
|
6932
|
+
Loading: icon(loading)
|
|
6863
6933
|
};
|
|
6864
6934
|
/* harmony default export */ var icons = (Icons);
|
|
6865
6935
|
;// CONCATENATED MODULE: ../base/src/icons/config.tsx
|
|
@@ -6869,16 +6939,16 @@ var Icons = {
|
|
|
6869
6939
|
var config = {
|
|
6870
6940
|
alert: {
|
|
6871
6941
|
Close: icons.Close,
|
|
6872
|
-
Info: icons.
|
|
6873
|
-
Success: icons.
|
|
6874
|
-
Warning: icons.
|
|
6875
|
-
Danger: icons.
|
|
6876
|
-
ConfirmWarning: icons.
|
|
6877
|
-
Error: icons.
|
|
6878
|
-
Confirm: icons.
|
|
6942
|
+
Info: icons.InfoCircleFill,
|
|
6943
|
+
Success: icons.CheckCircleFill,
|
|
6944
|
+
Warning: icons.WarningCircleFill,
|
|
6945
|
+
Danger: icons.WarningCircleFill,
|
|
6946
|
+
ConfirmWarning: icons.WarningCircleFill,
|
|
6947
|
+
Error: icons.WarningCircleFill,
|
|
6948
|
+
Confirm: icons.HelpCircleFill
|
|
6879
6949
|
},
|
|
6880
6950
|
form: {
|
|
6881
|
-
Tooltip: icons.
|
|
6951
|
+
Tooltip: icons.HelpCircleOutline
|
|
6882
6952
|
},
|
|
6883
6953
|
breadcrumb: {
|
|
6884
6954
|
DropdownArrow: icons.ArrowDown
|
|
@@ -6891,49 +6961,49 @@ var config = {
|
|
|
6891
6961
|
Forward: icons.ArrowRight
|
|
6892
6962
|
},
|
|
6893
6963
|
cascader: {
|
|
6894
|
-
More: icons.
|
|
6964
|
+
More: icons.More,
|
|
6895
6965
|
DropdownArrow: icons.ArrowDown,
|
|
6896
|
-
Close: icons.
|
|
6966
|
+
Close: icons.CloseFill,
|
|
6897
6967
|
CollapseArrow: icons.ArrowRight
|
|
6898
6968
|
},
|
|
6899
6969
|
collapse: {
|
|
6900
6970
|
collapseArrow: icons.ArrowRight
|
|
6901
6971
|
},
|
|
6902
6972
|
datepicker: {
|
|
6903
|
-
Close: icons.
|
|
6973
|
+
Close: icons.CloseFill,
|
|
6904
6974
|
Time: icons.Time,
|
|
6905
|
-
Calendar: icons.
|
|
6906
|
-
ArrowDoubleLeft: icons.
|
|
6975
|
+
Calendar: icons.Calendar,
|
|
6976
|
+
ArrowDoubleLeft: icons.ArrowLeftDouble,
|
|
6907
6977
|
ArrowLeft: icons.ArrowLeft,
|
|
6908
|
-
ArrowDoubleRight: icons.
|
|
6978
|
+
ArrowDoubleRight: icons.ArrowRightDouble,
|
|
6909
6979
|
ArrowRight: icons.ArrowRight
|
|
6910
6980
|
},
|
|
6911
6981
|
dropdown: {
|
|
6912
6982
|
DropdownArrow: icons.ArrowDown
|
|
6913
6983
|
},
|
|
6914
6984
|
editableArea: {
|
|
6915
|
-
Close: icons.
|
|
6985
|
+
Close: icons.CloseFill
|
|
6916
6986
|
},
|
|
6917
6987
|
image: {
|
|
6918
|
-
Close: icons.
|
|
6919
|
-
Pics: icons.
|
|
6988
|
+
Close: icons.CloseFill,
|
|
6989
|
+
Pics: icons.ImageCount,
|
|
6920
6990
|
Download: icons.Download,
|
|
6921
6991
|
Preview: icons.Preview,
|
|
6922
|
-
LoadFail: icons.
|
|
6992
|
+
LoadFail: icons.ImageError
|
|
6923
6993
|
},
|
|
6924
6994
|
input: {
|
|
6925
6995
|
ArrowRight: icons.ArrowRight,
|
|
6926
6996
|
ArrowLeft: icons.ArrowLeft,
|
|
6927
6997
|
Hide: icons.Hide,
|
|
6928
6998
|
Show: icons.Display,
|
|
6929
|
-
Close: icons.
|
|
6999
|
+
Close: icons.CloseFill
|
|
6930
7000
|
},
|
|
6931
7001
|
link: {
|
|
6932
7002
|
prefixIcon: icons.Link
|
|
6933
7003
|
},
|
|
6934
7004
|
menu: {
|
|
6935
7005
|
CollapseArrow: icons.ArrowDown,
|
|
6936
|
-
FrontSolidArrowDown: icons.
|
|
7006
|
+
FrontSolidArrowDown: icons.ArrowDownFill,
|
|
6937
7007
|
Search: icons.Search
|
|
6938
7008
|
},
|
|
6939
7009
|
modal: {
|
|
@@ -6951,29 +7021,32 @@ var config = {
|
|
|
6951
7021
|
WarningCircle: icons.Warning,
|
|
6952
7022
|
SuccessCircle: icons.Check,
|
|
6953
7023
|
DangerCircle: icons.Close,
|
|
6954
|
-
InfoLine: icons.
|
|
6955
|
-
WarningLine: icons.
|
|
6956
|
-
SuccessLine: icons.
|
|
6957
|
-
DangerLine: icons.
|
|
7024
|
+
InfoLine: icons.InfoCircleFill,
|
|
7025
|
+
WarningLine: icons.WarningCircleFill,
|
|
7026
|
+
SuccessLine: icons.CheckCircleFill,
|
|
7027
|
+
DangerLine: icons.Close
|
|
6958
7028
|
},
|
|
6959
7029
|
rate: {
|
|
6960
|
-
Star: icons.
|
|
7030
|
+
Star: icons.StarFill
|
|
6961
7031
|
},
|
|
6962
7032
|
select: {
|
|
6963
7033
|
Check: icons.Check,
|
|
6964
7034
|
More: icons.More,
|
|
6965
7035
|
DropdownArrow: icons.ArrowDown,
|
|
6966
|
-
Close: icons.
|
|
7036
|
+
Close: icons.CloseFill
|
|
6967
7037
|
},
|
|
6968
7038
|
steps: {
|
|
6969
7039
|
Finish: icons.Check,
|
|
6970
7040
|
Error: icons.Close
|
|
6971
7041
|
},
|
|
7042
|
+
switch: {
|
|
7043
|
+
Loading: icons.Loading
|
|
7044
|
+
},
|
|
6972
7045
|
table: {
|
|
6973
|
-
SortUp: icons.
|
|
6974
|
-
SortDown: icons.
|
|
7046
|
+
SortUp: icons.SortAsc,
|
|
7047
|
+
SortDown: icons.SortDesc,
|
|
6975
7048
|
Expand: icons.Expand,
|
|
6976
|
-
Collapse: icons.
|
|
7049
|
+
Collapse: icons.Shrink
|
|
6977
7050
|
},
|
|
6978
7051
|
tabs: {
|
|
6979
7052
|
Pre: icons.ArrowLeft,
|
|
@@ -6988,23 +7061,23 @@ var config = {
|
|
|
6988
7061
|
Remove: icons.ArrowLeft
|
|
6989
7062
|
},
|
|
6990
7063
|
tree: {
|
|
6991
|
-
LineExpand: icons.
|
|
6992
|
-
LineCollapse: icons.
|
|
6993
|
-
Expand: icons.
|
|
7064
|
+
LineExpand: icons.Expand,
|
|
7065
|
+
LineCollapse: icons.Shrink,
|
|
7066
|
+
Expand: icons.ArrowDownFill
|
|
6994
7067
|
},
|
|
6995
7068
|
treeSelect: {
|
|
6996
7069
|
More: icons.More,
|
|
6997
7070
|
DropdownArrow: icons.ArrowDown,
|
|
6998
|
-
Close: icons.
|
|
7071
|
+
Close: icons.CloseFill
|
|
6999
7072
|
},
|
|
7000
7073
|
upload: {
|
|
7001
7074
|
File: icons.File,
|
|
7002
|
-
Success: icons.
|
|
7003
|
-
Warning: icons.
|
|
7075
|
+
Success: icons.CheckCircleFill,
|
|
7076
|
+
Warning: icons.WarningCircleFill,
|
|
7004
7077
|
Recover: icons.Return,
|
|
7005
7078
|
Delete: icons.Delete,
|
|
7006
|
-
DeleteImage: icons.
|
|
7007
|
-
RecoverImage: icons.
|
|
7079
|
+
DeleteImage: icons.CloseFill,
|
|
7080
|
+
RecoverImage: icons.RecoverCircle,
|
|
7008
7081
|
PreviewImage: icons.Preview,
|
|
7009
7082
|
AddImage: icons.Add
|
|
7010
7083
|
}
|
|
@@ -7075,7 +7148,7 @@ var conflictWarning = function conflictWarning(component, prop1, prop2) {
|
|
|
7075
7148
|
};
|
|
7076
7149
|
var error = function error(message) {
|
|
7077
7150
|
var msg = new Error("[shineout] ".concat(message));
|
|
7078
|
-
shouldShowMessage(msg.message)
|
|
7151
|
+
if (shouldShowMessage(msg.message)) console.error(msg);
|
|
7079
7152
|
};
|
|
7080
7153
|
var devUseWarning = {
|
|
7081
7154
|
error: error,
|
|
@@ -7089,7 +7162,7 @@ var devUseWarning = {
|
|
|
7089
7162
|
|
|
7090
7163
|
|
|
7091
7164
|
|
|
7092
|
-
var _excluded = ["jssStyle", "type", "className", "children", "icon", "title", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
|
|
7165
|
+
var _excluded = ["jssStyle", "type", "className", "children", "icon", "title", "titleStyle", "iconSize", "closable", "hideClose", "bordered", "closeItem", "onClose"];
|
|
7093
7166
|
|
|
7094
7167
|
|
|
7095
7168
|
|
|
@@ -7110,6 +7183,7 @@ var Alert = function Alert(props) {
|
|
|
7110
7183
|
children = props.children,
|
|
7111
7184
|
icon = props.icon,
|
|
7112
7185
|
title = props.title,
|
|
7186
|
+
titleStyle = props.titleStyle,
|
|
7113
7187
|
iconSize = props.iconSize,
|
|
7114
7188
|
closable = props.closable,
|
|
7115
7189
|
hideClose = props.hideClose,
|
|
@@ -7156,7 +7230,7 @@ var Alert = function Alert(props) {
|
|
|
7156
7230
|
}, 300);
|
|
7157
7231
|
};
|
|
7158
7232
|
var renderIcon = function renderIcon() {
|
|
7159
|
-
var style = {};
|
|
7233
|
+
var style = titleStyle || {};
|
|
7160
7234
|
if (iconSize) {
|
|
7161
7235
|
style.width = iconSize;
|
|
7162
7236
|
}
|
|
@@ -7176,6 +7250,7 @@ var Alert = function Alert(props) {
|
|
|
7176
7250
|
var renderTitle = function renderTitle() {
|
|
7177
7251
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
7178
7252
|
className: alertStyle.title,
|
|
7253
|
+
style: titleStyle,
|
|
7179
7254
|
children: title
|
|
7180
7255
|
});
|
|
7181
7256
|
};
|
|
@@ -12040,7 +12115,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12040
12115
|
};
|
|
12041
12116
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12042
12117
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12043
|
-
/* harmony default export */ var version = ('3.6.0-beta.
|
|
12118
|
+
/* harmony default export */ var version = ('3.6.0-beta.5');
|
|
12044
12119
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12045
12120
|
|
|
12046
12121
|
|
|
@@ -12416,6 +12491,7 @@ var Token = {
|
|
|
12416
12491
|
'Shadow-2': '0px 4px 10px rgba(2, 11, 24, 0.1)',
|
|
12417
12492
|
'Shadow-3': '0px 8px 20px rgba(2, 11, 24, 0.1)',
|
|
12418
12493
|
'Shadow-4': '0px -2px 10px rgba(232, 235, 240, 0.8)',
|
|
12494
|
+
'Shadow-5': 'rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px',
|
|
12419
12495
|
'Line-height-dynamic': 'calc( 1em + 8px )',
|
|
12420
12496
|
Transparent: 'transparent',
|
|
12421
12497
|
'Mask-fill-1': 'rgba(2, 11, 24, 0.3)',
|
|
@@ -12589,8 +12665,8 @@ var alertTokens = {
|
|
|
12589
12665
|
alertNearlyMargin: 'Spacing-8',
|
|
12590
12666
|
alertTitleFontSize: 'Font-16',
|
|
12591
12667
|
alertTitleFontWeight: 'Weight-medium',
|
|
12592
|
-
alertTitleMarginY: 'Spacing-
|
|
12593
|
-
alertTitleIconWidth: 'Size-
|
|
12668
|
+
alertTitleMarginY: 'Spacing-8',
|
|
12669
|
+
alertTitleIconWidth: 'Size-8',
|
|
12594
12670
|
alertTitleIconHeight: 'Size-12',
|
|
12595
12671
|
alertCloseFontColor: 'Neutral-text-4',
|
|
12596
12672
|
alertCloseHoverColor: 'Neutral-text-5',
|
|
@@ -12643,7 +12719,7 @@ var badgeTokens = {
|
|
|
12643
12719
|
badgeBadgeFontColor: 'Neutral-text-1',
|
|
12644
12720
|
badgeBadgeBackgroundColor: 'Danger-6',
|
|
12645
12721
|
badgeBadgeBorderRadius: 'Radius-full',
|
|
12646
|
-
badgeCountPaddingX: 'Spacing-
|
|
12722
|
+
badgeCountPaddingX: 'Spacing-4',
|
|
12647
12723
|
badgeCountHeight: 'Size-10',
|
|
12648
12724
|
badgeSmallCountHeight: 'Size-8',
|
|
12649
12725
|
badgeDotWidth: 'Size-3',
|
|
@@ -12673,6 +12749,7 @@ var breadcrumbTokens = {
|
|
|
12673
12749
|
breadcrumbLinkHoverColor: 'Brand-5',
|
|
12674
12750
|
breadcrumbDefaultLinkColor: 'Brand-6',
|
|
12675
12751
|
breadcrumbDefaultLinkHoverColor: 'Brand-5',
|
|
12752
|
+
breadcrumbDefaultLinkActiveColor: 'Brand-7',
|
|
12676
12753
|
breadcrumbListPaddingY: 'Spacing-4',
|
|
12677
12754
|
breadcrumbListItemBorderRadius: 'Radius-default',
|
|
12678
12755
|
breadcrumbListItemWrapperPaddingX: 'Spacing-4',
|
|
@@ -13204,6 +13281,7 @@ var cascaderTokens = {
|
|
|
13204
13281
|
cascaderOptionPaddingY: 'Spacing-1',
|
|
13205
13282
|
cascaderOptionActiveColor: 'Brand-6',
|
|
13206
13283
|
cascaderOptionActiveBackgroundColor: 'Brand-1',
|
|
13284
|
+
cascaderOptionItemHoverFontColor: 'Brand-6',
|
|
13207
13285
|
cascaderOptionInnerPaddingX: 'Spacing-8',
|
|
13208
13286
|
cascaderOptionInnerPaddingY: 'Spacing-5',
|
|
13209
13287
|
cascaderOptionInnerPaddingRight: 'Size-15',
|
|
@@ -13211,10 +13289,11 @@ var cascaderTokens = {
|
|
|
13211
13289
|
cascaderOptionIconColor: 'Neutral-text-4',
|
|
13212
13290
|
cascaderOptionHoverBackgroundColor: 'Neutral-fill-2',
|
|
13213
13291
|
cascaderOptionHoverFontColor: 'Neutral-text-5',
|
|
13292
|
+
cascaderOptionFocusBackgroundColor: 'Neutral-fill-3',
|
|
13214
13293
|
cascaderOptionDisabledColor: 'Neutral-text-2',
|
|
13215
13294
|
cascaderOptionDisabledBackgroundColor: 'Neutral-fill-1',
|
|
13216
|
-
cascaderMorePaddingX: 'Spacing-
|
|
13217
|
-
cascaderMorePaddingY: 'Spacing-
|
|
13295
|
+
cascaderMorePaddingX: 'Spacing-8',
|
|
13296
|
+
cascaderMorePaddingY: 'Spacing-6',
|
|
13218
13297
|
cascaderHeaderPadding: 'Spacing-8',
|
|
13219
13298
|
cascaderHeaderBorderColor: 'Neutral-border-1',
|
|
13220
13299
|
cascaderGroupTitleFontColor: 'Neutral-text-3',
|
|
@@ -13223,7 +13302,8 @@ var cascaderTokens = {
|
|
|
13223
13302
|
cascaderGroupTitlePaddingY: 'Spacing-6',
|
|
13224
13303
|
cascaderColumnPadding: 'Spacing-8',
|
|
13225
13304
|
cascaderColumnOptionMargin: 'Spacing-8',
|
|
13226
|
-
cascaderListBorderColor: 'Neutral-border-1'
|
|
13305
|
+
cascaderListBorderColor: 'Neutral-border-1',
|
|
13306
|
+
cascaderListPaddingY: 'Spacing-3'
|
|
13227
13307
|
};
|
|
13228
13308
|
/* harmony default export */ var cascader = (cascaderTokens);
|
|
13229
13309
|
;// CONCATENATED MODULE: ../theme/src/cascader/index.ts
|
|
@@ -13375,11 +13455,11 @@ var datePickerTokens = {
|
|
|
13375
13455
|
datePickerPanelBorder: 'Neutral-border-1',
|
|
13376
13456
|
datePickerPanelHeaderFontSize: 'Font-14',
|
|
13377
13457
|
datePickerPanelHeaderFontColor: 'Neutral-text-5',
|
|
13378
|
-
datePickerPanelHeaderFontWeight: 'Weight-
|
|
13458
|
+
datePickerPanelHeaderFontWeight: 'Weight-medium',
|
|
13379
13459
|
datePickerPanelHeaderPaddingX: 'Spacing-12',
|
|
13380
13460
|
datePickerPanelHeaderPaddingY: 'Spacing-8',
|
|
13381
13461
|
datePickerPanelHeaderBorderColor: 'Neutral-border-1',
|
|
13382
|
-
datePickerPanelHeaderIconColor: 'Neutral-text-
|
|
13462
|
+
datePickerPanelHeaderIconColor: 'Neutral-text-4',
|
|
13383
13463
|
datePickerPanelHeaderIconWidth: 'Size-7',
|
|
13384
13464
|
datePickerPanelHeaderIconHotWidth: 'Size-13',
|
|
13385
13465
|
datePickerPanelHeaderIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
@@ -13440,7 +13520,7 @@ var datePickerTokens = {
|
|
|
13440
13520
|
var descriptionsTokens = {
|
|
13441
13521
|
descriptionsTitlePaddingBottom: 'Spacing-12',
|
|
13442
13522
|
descriptionsLabelPaddingBottom: 'Spacing-12',
|
|
13443
|
-
descriptionsLabelPaddingRight: 'Spacing-
|
|
13523
|
+
descriptionsLabelPaddingRight: 'Spacing-24',
|
|
13444
13524
|
descriptionsValuePaddingBottom: 'Spacing-12',
|
|
13445
13525
|
descriptionsTitleSmallSize: 'Font-14',
|
|
13446
13526
|
descriptionsTitleDefaultSize: 'Font-16',
|
|
@@ -13498,7 +13578,7 @@ var dividerTokens = {
|
|
|
13498
13578
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
13499
13579
|
|
|
13500
13580
|
var dropdownTokens = {
|
|
13501
|
-
dropdownCaretMarginLeft: 'Spacing-
|
|
13581
|
+
dropdownCaretMarginLeft: 'Spacing-4',
|
|
13502
13582
|
dropdownListBorderRadius: 'Radius-default',
|
|
13503
13583
|
dropdownListPaddingX: 'Spacing-4',
|
|
13504
13584
|
dropdownListPaddingY: 'Spacing-4',
|
|
@@ -13533,7 +13613,7 @@ var dropdownTokens = {
|
|
|
13533
13613
|
dropdownOptionSelectFontColor: 'Brand-6',
|
|
13534
13614
|
dropdownOptionDisabledBackgroundColor: 'Neutral-fill-1',
|
|
13535
13615
|
dropdownOptionDisabledFontColor: 'Neutral-text-2',
|
|
13536
|
-
dropdownOptionBorderRadius: 'Radius-
|
|
13616
|
+
dropdownOptionBorderRadius: 'Radius-2',
|
|
13537
13617
|
dropdownOptionFontWeight: 'Weight-regular',
|
|
13538
13618
|
dropdownColumnPaddingX: 'Spacing-4',
|
|
13539
13619
|
dropdownColumnPaddingY: 'Spacing-4',
|
|
@@ -13725,17 +13805,17 @@ var inputTokens = {
|
|
|
13725
13805
|
inputInfoErrorBorderColor: 'Danger-6',
|
|
13726
13806
|
inputInnerPaddingX: 'Spacing-8',
|
|
13727
13807
|
inputInnerPaddingY: 'Spacing-1',
|
|
13728
|
-
inputInnerFontSize: 'Font-
|
|
13808
|
+
inputInnerFontSize: 'Font-14',
|
|
13729
13809
|
inputInnerFontColor: 'Neutral-text-4',
|
|
13730
13810
|
inputInnerSmallPaddingX: 'Spacing-8',
|
|
13731
13811
|
inputInnerSmallPaddingY: 'Spacing-1',
|
|
13732
13812
|
inputInnerSmallFontSize: 'Font-12',
|
|
13733
13813
|
inputInnerLargePaddingX: 'Spacing-12',
|
|
13734
13814
|
inputInnerLargePaddingY: 'Spacing-3',
|
|
13735
|
-
inputInnerLargeFontSize: 'Font-
|
|
13815
|
+
inputInnerLargeFontSize: 'Font-16',
|
|
13736
13816
|
inputInnerTopFontSize: 'Font-12',
|
|
13737
13817
|
inputInnerTopSmallFontSize: 'Font-12',
|
|
13738
|
-
inputInnerTopLargeFontSize: 'Font-
|
|
13818
|
+
inputInnerTopLargeFontSize: 'Font-14'
|
|
13739
13819
|
};
|
|
13740
13820
|
/* harmony default export */ var input = (inputTokens);
|
|
13741
13821
|
;// CONCATENATED MODULE: ../theme/src/input/index.ts
|
|
@@ -13764,13 +13844,13 @@ var linkTokens = {
|
|
|
13764
13844
|
linkDangerHoverFontColor: 'Danger-5',
|
|
13765
13845
|
linkDangerActiveFontColor: 'Danger-7',
|
|
13766
13846
|
linkWarningFontColor: 'Warning-6',
|
|
13767
|
-
linkWarningDisabledFontColor: 'Warning-
|
|
13768
|
-
linkWarningHoverFontColor: 'Warning-
|
|
13769
|
-
linkWarningActiveFontColor: 'Warning-
|
|
13847
|
+
linkWarningDisabledFontColor: 'Warning-3',
|
|
13848
|
+
linkWarningHoverFontColor: 'Warning-5',
|
|
13849
|
+
linkWarningActiveFontColor: 'Warning-7',
|
|
13770
13850
|
linkSuccessFontColor: 'Success-6',
|
|
13771
|
-
linkSuccessDisabledFontColor: 'Success-
|
|
13772
|
-
linkSuccessHoverFontColor: 'Success-
|
|
13773
|
-
linkSuccessActiveFontColor: 'Success-
|
|
13851
|
+
linkSuccessDisabledFontColor: 'Success-3',
|
|
13852
|
+
linkSuccessHoverFontColor: 'Success-5',
|
|
13853
|
+
linkSuccessActiveFontColor: 'Success-7'
|
|
13774
13854
|
};
|
|
13775
13855
|
/* harmony default export */ var link_link = (linkTokens);
|
|
13776
13856
|
;// CONCATENATED MODULE: ../theme/src/link/index.ts
|
|
@@ -13841,15 +13921,15 @@ var menuTokens = {
|
|
|
13841
13921
|
menuHeaderPaddingX: 'Spacing-12',
|
|
13842
13922
|
menuHeaderPaddingY: 'Spacing-12',
|
|
13843
13923
|
menuDarkFontColor: 'Neutral-text-1',
|
|
13844
|
-
menuDarkItemBackgroundColor: 'Neutral-fill-
|
|
13924
|
+
menuDarkItemBackgroundColor: 'Neutral-fill-9',
|
|
13845
13925
|
menuDarkItemFontColor: 'Neutral-text-1',
|
|
13846
13926
|
menuDarkItemHoverBackgroundColor: 'Brand-9',
|
|
13847
13927
|
menuDarkItemHoverFontColor: 'Neutral-text-1',
|
|
13848
13928
|
menuDarkItemActiveBackgroundColor: 'Brand-6',
|
|
13849
13929
|
menuDarkItemActiveFontColor: 'Neutral-text-1',
|
|
13850
|
-
menuDarkItemOpenBackgroundColor: 'Neutral-fill-
|
|
13930
|
+
menuDarkItemOpenBackgroundColor: 'Neutral-fill-10',
|
|
13851
13931
|
menuDarkItemOpenFontColor: 'Neutral-text-1',
|
|
13852
|
-
menuDarkItemDisabledBackgroundColor: 'Neutral-fill-
|
|
13932
|
+
menuDarkItemDisabledBackgroundColor: 'Neutral-fill-9',
|
|
13853
13933
|
menuDarkItemDisabledFontColor: 'Neutral-text-4',
|
|
13854
13934
|
menuDarkItemCollapseActiveBackgroundColor: 'Brand-6',
|
|
13855
13935
|
menuDarkItemCollapseActiveFontColor: 'Neutral-text-1',
|
|
@@ -13919,7 +13999,7 @@ var modalTokens = {
|
|
|
13919
13999
|
modalPanelFontSize: 'Font-14',
|
|
13920
14000
|
modalHeaderIconMarginEnd: 'Spacing-8',
|
|
13921
14001
|
modalHeaderIconMarginTop: 'Spacing-2',
|
|
13922
|
-
modalHeaderIconSize: 'Size-
|
|
14002
|
+
modalHeaderIconSize: 'Size-10',
|
|
13923
14003
|
modalHeaderCloseMarginXStart: 'Spacing-16',
|
|
13924
14004
|
modalHeaderCloseSize: 'Size-8',
|
|
13925
14005
|
modalHeaderCloseTop: 'Size-2',
|
|
@@ -14101,9 +14181,9 @@ var rateTokens = {
|
|
|
14101
14181
|
rateFontWeight: 'Weight-regular',
|
|
14102
14182
|
rateGap: 'Spacing-6',
|
|
14103
14183
|
rateSize: 'Size-12',
|
|
14104
|
-
rateTextGap: 'Spacing-
|
|
14184
|
+
rateTextGap: 'Spacing-16',
|
|
14105
14185
|
rateBackgroundColor: 'Neutral-fill-3',
|
|
14106
|
-
rateFrontBackgroundColor: '
|
|
14186
|
+
rateFrontBackgroundColor: 'Lemon-6'
|
|
14107
14187
|
};
|
|
14108
14188
|
/* harmony default export */ var rate = (rateTokens);
|
|
14109
14189
|
;// CONCATENATED MODULE: ../theme/src/rate/index.ts
|
|
@@ -14126,6 +14206,7 @@ var selectTokens = {
|
|
|
14126
14206
|
selectPaddingY: 'Spacing-2',
|
|
14127
14207
|
selectIconSize: 'Size-7',
|
|
14128
14208
|
selectIconColor: 'Neutral-text-4',
|
|
14209
|
+
selectIconMarginLeft: 'Spacing-8',
|
|
14129
14210
|
selectTagMarginY: 'Spacing-2',
|
|
14130
14211
|
selectTagMarginRight: 'Spacing-4',
|
|
14131
14212
|
selectSmallFontSize: 'Font-12',
|
|
@@ -14189,7 +14270,8 @@ var selectTokens = {
|
|
|
14189
14270
|
selectOptionHoverFontColor: 'Neutral-text-5',
|
|
14190
14271
|
selectOptionDisabledColor: 'Neutral-text-2',
|
|
14191
14272
|
selectOptionDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14192
|
-
|
|
14273
|
+
selectMorePaddingX: 'Spacing-8',
|
|
14274
|
+
selectMorePaddingY: 'Spacing-6',
|
|
14193
14275
|
selectHeaderPaddingX: 'Spacing-8',
|
|
14194
14276
|
selectHeaderPaddingY: 'Spacing-8',
|
|
14195
14277
|
selectHeaderBorderColor: 'Neutral-border-1',
|
|
@@ -14226,14 +14308,14 @@ var sliderTokens = {
|
|
|
14226
14308
|
sliderTrackSize: 'Size-2',
|
|
14227
14309
|
sliderTrackBackgroundColor: 'Neutral-fill-2',
|
|
14228
14310
|
sliderTrackActiveBackgroundColor: 'Brand-6',
|
|
14229
|
-
sliderTrackDisabledBackgroundColor: '
|
|
14311
|
+
sliderTrackDisabledBackgroundColor: 'Brand-3',
|
|
14230
14312
|
sliderIndicatorSize: 'Size-6',
|
|
14231
14313
|
sliderIndicatorBackgroundColor: 'Neutral-fill-1',
|
|
14232
14314
|
sliderIndicatorBorderColor: 'Brand-6',
|
|
14233
14315
|
sliderIndicatorBorderSize: 'Border-2',
|
|
14234
14316
|
sliderIndicatorActiveBackgroundColor: 'Brand-6',
|
|
14235
14317
|
sliderIndicatorActiveShadow: 'Shadow-1',
|
|
14236
|
-
sliderIndicatorDisabledBorderColor: '
|
|
14318
|
+
sliderIndicatorDisabledBorderColor: 'Brand-3',
|
|
14237
14319
|
sliderIndicatorDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14238
14320
|
sliderValueBackgroundColor: 'Neutral-fill-1',
|
|
14239
14321
|
sliderValueHoverBackgroundColor: 'Neutral-fill-9',
|
|
@@ -14292,7 +14374,7 @@ var stepsTokens = {
|
|
|
14292
14374
|
stepsLargeTitleFontSize: 'Font-18',
|
|
14293
14375
|
stepsLargeDescriptionFontSize: 'Font-12',
|
|
14294
14376
|
stepsWaitFontColor: 'Neutral-text-4',
|
|
14295
|
-
stepsWaitBackgroundColor: 'Neutral-fill-
|
|
14377
|
+
stepsWaitBackgroundColor: 'Neutral-fill-4',
|
|
14296
14378
|
stepsWaitHoverFontColor: 'Brand-6',
|
|
14297
14379
|
stepsProcessFontColor: 'Neutral-text-1',
|
|
14298
14380
|
stepsProcessBackgroundColor: 'Brand-6',
|
|
@@ -14337,27 +14419,31 @@ var stickyTokens = {
|
|
|
14337
14419
|
|
|
14338
14420
|
var switchTokens = {
|
|
14339
14421
|
switchFontSize: 'Font-14',
|
|
14340
|
-
switchFontColor: 'Neutral-text-
|
|
14422
|
+
switchFontColor: 'Neutral-text-4',
|
|
14341
14423
|
switchPaddingX: 'Spacing-2',
|
|
14342
14424
|
switchPaddingY: 'Spacing-2',
|
|
14343
14425
|
switchCircleSize: 'Size-9',
|
|
14344
14426
|
switchCircleFill: 'Neutral-text-1',
|
|
14345
|
-
switchCircleShadow: 'Shadow-
|
|
14427
|
+
switchCircleShadow: 'Shadow-5',
|
|
14346
14428
|
switchWidth: 'Size-21',
|
|
14347
|
-
|
|
14429
|
+
switchTextPaddingLeft: 'Spacing-8',
|
|
14430
|
+
switchTextPaddingRight: 'Spacing-4',
|
|
14348
14431
|
switchSmallFontSize: 'Font-12',
|
|
14349
14432
|
switchSmallPaddingX: 'Spacing-2',
|
|
14350
14433
|
switchSmallPaddingY: 'Spacing-2',
|
|
14351
14434
|
switchSmallCircleSize: 'Size-6',
|
|
14352
14435
|
switchSmallWidth: 'Size-14',
|
|
14436
|
+
switchSmallTextPaddingLeft: 'Spacing-4',
|
|
14437
|
+
switchSmallTextPaddingRight: 'Spacing-2',
|
|
14353
14438
|
switchLargeFontSize: 'Font-16',
|
|
14354
14439
|
switchLargePaddingX: 'Spacing-2',
|
|
14355
14440
|
switchLargePaddingY: 'Spacing-2',
|
|
14356
14441
|
switchLargeCircleSize: 'Size-12',
|
|
14357
14442
|
switchLargeWidth: 'Size-27',
|
|
14358
14443
|
switchBackgroundColor: 'Neutral-fill-4',
|
|
14359
|
-
switchDisabledBackgroundColor: 'Neutral-fill-
|
|
14360
|
-
|
|
14444
|
+
switchDisabledBackgroundColor: 'Neutral-fill-3',
|
|
14445
|
+
switchDisabledCircleCheckedFill: 'Brand-1',
|
|
14446
|
+
switchDisabledCircleUncheckedFill: 'Neutral-fill-2',
|
|
14361
14447
|
switchDisabledFontColor: 'Neutral-text-2',
|
|
14362
14448
|
switchLoadingBackgroundColor: 'Neutral-fill-2',
|
|
14363
14449
|
switchLoadingCircleFill: 'Neutral-text-2',
|
|
@@ -14369,6 +14455,7 @@ var switchTokens = {
|
|
|
14369
14455
|
switchCheckedDisabledCircleFill: 'Neutral-fill-1',
|
|
14370
14456
|
switchCheckedDisabledFontColor: 'Neutral-text-1',
|
|
14371
14457
|
switchCheckedLoadingBackgroundColor: 'Brand-3',
|
|
14458
|
+
switchCheckedLoadingCircleFill: 'Brand-3',
|
|
14372
14459
|
switchCheckedLoadingFontColor: 'Neutral-text-1'
|
|
14373
14460
|
};
|
|
14374
14461
|
/* harmony default export */ var switch_switch = (switchTokens);
|
|
@@ -14414,7 +14501,7 @@ var tableTokens = {
|
|
|
14414
14501
|
tableTfootFontColor: 'Neutral-text-5',
|
|
14415
14502
|
tableTfootFontWeight: 'Weight-regular',
|
|
14416
14503
|
tableExpandIconSize: 'Size-7',
|
|
14417
|
-
tableExpandIconColor: 'Neutral-text-
|
|
14504
|
+
tableExpandIconColor: 'Neutral-text-3',
|
|
14418
14505
|
tableExpandIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
14419
14506
|
tableExpandBackgroundColor: 'Neutral-fill-2',
|
|
14420
14507
|
tableSorterColor: 'Neutral-text-3',
|
|
@@ -14839,7 +14926,9 @@ var tagTokens = {
|
|
|
14839
14926
|
|
|
14840
14927
|
var textareaTokens = {
|
|
14841
14928
|
textareaFontSize: 'Font-14',
|
|
14929
|
+
textareaFontColor: 'Neutral-text-5',
|
|
14842
14930
|
textareaBorderRadius: 'Radius-default',
|
|
14931
|
+
textareaBorderColor: 'Neutral-border-2',
|
|
14843
14932
|
textareaPaddingX: 'Spacing-8',
|
|
14844
14933
|
textareaPaddingY: 'Spacing-4',
|
|
14845
14934
|
textareaSmallFontSize: 'Font-12',
|
|
@@ -14848,9 +14937,7 @@ var textareaTokens = {
|
|
|
14848
14937
|
textareaLargeFontSize: 'Font-16',
|
|
14849
14938
|
textareaLargePaddingX: 'Spacing-12',
|
|
14850
14939
|
textareaLargePaddingY: 'Spacing-7',
|
|
14851
|
-
textareaFontColor: 'Neutral-text-5',
|
|
14852
14940
|
textareaPlaceholderColor: 'Neutral-text-2',
|
|
14853
|
-
textareaBorderColor: 'Neutral-border-2',
|
|
14854
14941
|
textareaBackgroundColor: 'Neutral-fill-1',
|
|
14855
14942
|
textareaHoverBorderColor: 'Brand-6',
|
|
14856
14943
|
textareaFocusBorderColor: 'Brand-7',
|
|
@@ -14954,7 +15041,7 @@ var treeTokens = {
|
|
|
14954
15041
|
treeLargeLineHeight: 'Size-22',
|
|
14955
15042
|
treeFontWeight: 'Weight-regular',
|
|
14956
15043
|
treeFontColor: 'Neutral-text-5',
|
|
14957
|
-
treeLineBackgroundColor: 'Neutral-fill-
|
|
15044
|
+
treeLineBackgroundColor: 'Neutral-fill-3',
|
|
14958
15045
|
treePaddingX: 'Spacing-8',
|
|
14959
15046
|
treePaddingY: 'Spacing-1',
|
|
14960
15047
|
treeItemFontColor: 'Neutral-text-4',
|
|
@@ -14992,6 +15079,7 @@ var treeSelectTokens = {
|
|
|
14992
15079
|
treeSelectPaddingY: 'Spacing-2',
|
|
14993
15080
|
treeSelectIconSize: 'Size-7',
|
|
14994
15081
|
treeSelectIconColor: 'Neutral-text-4',
|
|
15082
|
+
treeSelectIconDisabledColor: 'Neutral-text-2',
|
|
14995
15083
|
treeSelectSmallFontSize: 'Font-12',
|
|
14996
15084
|
treeSelectSmallPaddingX: 'Spacing-8',
|
|
14997
15085
|
treeSelectSmallPaddingY: 'Spacing-1',
|
|
@@ -15010,6 +15098,7 @@ var treeSelectTokens = {
|
|
|
15010
15098
|
treeSelectBackgroundColor: 'Neutral-fill-1',
|
|
15011
15099
|
treeSelectClearColor: 'Neutral-text-3',
|
|
15012
15100
|
treeSelectClearPadding: 'Spacing-8',
|
|
15101
|
+
treeSelectClearHoverColor: 'Neutral-text-4',
|
|
15013
15102
|
treeSelectHoverBorderColor: 'Brand-6',
|
|
15014
15103
|
treeSelectHoverClearColor: 'Neutral-text-4',
|
|
15015
15104
|
treeSelectFocusBorderColor: 'Brand-7',
|
|
@@ -15049,8 +15138,8 @@ var treeSelectTokens = {
|
|
|
15049
15138
|
treeSelectOptionHoverBackgroundColor: 'Neutral-fill-2',
|
|
15050
15139
|
treeSelectOptionDisabledColor: 'Neutral-text-2',
|
|
15051
15140
|
treeSelectOptionDisabledBackgroundColor: 'Neutral-fill-1',
|
|
15052
|
-
treeSelectMorePaddingX: 'Spacing-
|
|
15053
|
-
treeSelectMorePaddingY: 'Spacing-
|
|
15141
|
+
treeSelectMorePaddingX: 'Spacing-8',
|
|
15142
|
+
treeSelectMorePaddingY: 'Spacing-6',
|
|
15054
15143
|
treeSelectHeaderPadding: 'Spacing-8',
|
|
15055
15144
|
treeSelectHeaderBorderColor: 'Neutral-border-1',
|
|
15056
15145
|
treeSelectGroupTitleFontColor: 'Neutral-text-3',
|
|
@@ -15235,16 +15324,16 @@ var alertStyle = {
|
|
|
15235
15324
|
},
|
|
15236
15325
|
widthTitle: {
|
|
15237
15326
|
'& $icon': {
|
|
15327
|
+
fontSize: src.alertTitleFontSize,
|
|
15238
15328
|
// marginBottom: Token.alertNearlyMargin,
|
|
15239
15329
|
width: src.alertTitleIconWidth,
|
|
15240
|
-
height: src.
|
|
15330
|
+
height: src.lineHeightDynamic
|
|
15241
15331
|
},
|
|
15242
15332
|
'& $title': {
|
|
15243
15333
|
lineHeight: src.lineHeightDynamic
|
|
15244
15334
|
},
|
|
15245
|
-
'& $
|
|
15246
|
-
|
|
15247
|
-
marginTop: 2
|
|
15335
|
+
'& $closeWrapper': {
|
|
15336
|
+
fontSize: src.alertTitleFontSize
|
|
15248
15337
|
}
|
|
15249
15338
|
},
|
|
15250
15339
|
title: {
|
|
@@ -15269,7 +15358,7 @@ var alertStyle = {
|
|
|
15269
15358
|
display: 'flex',
|
|
15270
15359
|
alignItems: 'center',
|
|
15271
15360
|
justifyContent: 'center',
|
|
15272
|
-
marginLeft:
|
|
15361
|
+
// marginLeft: Token.alertNearlyMargin,
|
|
15273
15362
|
'&:hover': {
|
|
15274
15363
|
color: src.alertCloseHoverColor
|
|
15275
15364
|
},
|
|
@@ -15278,10 +15367,12 @@ var alertStyle = {
|
|
|
15278
15367
|
}
|
|
15279
15368
|
},
|
|
15280
15369
|
closeWrapper: {
|
|
15370
|
+
fontSize: src.alertFontSize,
|
|
15281
15371
|
width: src.alertFontSize,
|
|
15282
15372
|
height: src.lineHeightDynamic,
|
|
15283
15373
|
display: 'flex',
|
|
15284
|
-
alignItems: 'center'
|
|
15374
|
+
alignItems: 'center',
|
|
15375
|
+
marginLeft: src.alertNearlyMargin
|
|
15285
15376
|
},
|
|
15286
15377
|
content: {
|
|
15287
15378
|
flex: '1 1 0',
|
|
@@ -15468,14 +15559,14 @@ var badgeStyle = {
|
|
|
15468
15559
|
minWidth: src.badgeCountHeight,
|
|
15469
15560
|
height: src.badgeCountHeight,
|
|
15470
15561
|
verticalAlign: 'super',
|
|
15471
|
-
lineHeight: src.
|
|
15562
|
+
lineHeight: src.badgeCountHeight,
|
|
15472
15563
|
background: src.badgeBadgeBackgroundColor,
|
|
15473
15564
|
borderRadius: src.badgeBadgeBorderRadius,
|
|
15474
15565
|
fontSize: src.badgeBadgeFontSize,
|
|
15475
15566
|
color: src.badgeBadgeFontColor
|
|
15476
15567
|
},
|
|
15477
15568
|
small: {
|
|
15478
|
-
lineHeight:
|
|
15569
|
+
lineHeight: src.badgeSmallCountHeight,
|
|
15479
15570
|
height: src.badgeSmallCountHeight,
|
|
15480
15571
|
minWidth: src.badgeSmallCountHeight
|
|
15481
15572
|
},
|
|
@@ -15599,6 +15690,9 @@ var breadcrumbStyle = {
|
|
|
15599
15690
|
'&&': {
|
|
15600
15691
|
display: 'flex',
|
|
15601
15692
|
alignItems: 'center'
|
|
15693
|
+
},
|
|
15694
|
+
'&[role=button]:active': {
|
|
15695
|
+
color: src.breadcrumbDefaultLinkActiveColor
|
|
15602
15696
|
}
|
|
15603
15697
|
},
|
|
15604
15698
|
ellipsis: {
|
|
@@ -15616,6 +15710,9 @@ var breadcrumbStyle = {
|
|
|
15616
15710
|
color: src.breadcrumbDefaultLinkColor,
|
|
15617
15711
|
'&:hover': {
|
|
15618
15712
|
color: src.breadcrumbDefaultLinkHoverColor
|
|
15713
|
+
},
|
|
15714
|
+
'&:active': {
|
|
15715
|
+
color: src.breadcrumbDefaultLinkActiveColor
|
|
15619
15716
|
}
|
|
15620
15717
|
}
|
|
15621
15718
|
// '&:not(a) svg': {
|
|
@@ -15665,7 +15762,7 @@ var breadcrumbStyle = {
|
|
|
15665
15762
|
color: src.dropdownOptionHoverFontColor,
|
|
15666
15763
|
backgroundColor: src.dropdownOptionHoverBackgroundColor
|
|
15667
15764
|
},
|
|
15668
|
-
'& $content, &
|
|
15765
|
+
'& $content, & a': {
|
|
15669
15766
|
padding: "".concat(src.dropdownOptionPaddingY, " ").concat(src.dropdownOptionPaddingX),
|
|
15670
15767
|
display: 'inline-block',
|
|
15671
15768
|
textDecoration: 'none',
|
|
@@ -16917,6 +17014,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16917
17014
|
marginTop: src.cascaderLargePlaceholderMarginY,
|
|
16918
17015
|
marginBottom: src.cascaderLargePlaceholderMarginY
|
|
16919
17016
|
},
|
|
17017
|
+
'& $arrowIcon': {
|
|
17018
|
+
width: src.cascaderLargeFontSize
|
|
17019
|
+
},
|
|
16920
17020
|
'& $optionInner': {
|
|
16921
17021
|
// padding: `${token.cascaderLargeOptionInnerPaddingY} ${token.cascaderLargeOptionInnerPaddingX}`,
|
|
16922
17022
|
paddingTop: src.cascaderLargeOptionInnerPaddingY,
|
|
@@ -16929,7 +17029,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16929
17029
|
}
|
|
16930
17030
|
},
|
|
16931
17031
|
// hover
|
|
16932
|
-
'&:hover': {
|
|
17032
|
+
'&:hover': objectSpread2_default()(objectSpread2_default()({}, wrapper['&:hover']), {}, {
|
|
16933
17033
|
'& $clearIcon': {
|
|
16934
17034
|
display: 'inline-block'
|
|
16935
17035
|
},
|
|
@@ -16941,6 +17041,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16941
17041
|
display: 'none'
|
|
16942
17042
|
}
|
|
16943
17043
|
}
|
|
17044
|
+
}),
|
|
17045
|
+
'&:has($pickerWrapperShow)': {
|
|
17046
|
+
borderColor: src.cascaderFocusBorderColor
|
|
16944
17047
|
},
|
|
16945
17048
|
// not wrapperFocus
|
|
16946
17049
|
'&:not($wrapperFocus)': {
|
|
@@ -16955,7 +17058,7 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
16955
17058
|
}
|
|
16956
17059
|
},
|
|
16957
17060
|
wrapperDisabled: objectSpread2_default()(objectSpread2_default()({}, wrapperDisabled), {}, {
|
|
16958
|
-
'& $icon': {
|
|
17061
|
+
'& $icon, & $arrowIcon': {
|
|
16959
17062
|
color: src.cascaderDisabledFontColor
|
|
16960
17063
|
}
|
|
16961
17064
|
})
|
|
@@ -17113,8 +17216,10 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17113
17216
|
boxShadow: src.cascaderPanelShadow,
|
|
17114
17217
|
border: "1px solid ".concat(src.cascaderPanelBorder),
|
|
17115
17218
|
borderRadius: src.cascaderPanelRadius,
|
|
17116
|
-
transformOrigin: '0 0'
|
|
17219
|
+
transformOrigin: '0 0',
|
|
17220
|
+
cursor: 'initial'
|
|
17117
17221
|
},
|
|
17222
|
+
pickerWrapperShow: {},
|
|
17118
17223
|
iconWrapper: {
|
|
17119
17224
|
display: 'flex',
|
|
17120
17225
|
alignItems: 'center',
|
|
@@ -17141,8 +17246,10 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17141
17246
|
transition: 'transform 0.3s'
|
|
17142
17247
|
},
|
|
17143
17248
|
arrowIconOpen: {
|
|
17144
|
-
|
|
17145
|
-
|
|
17249
|
+
color: src.cascaderHoverBorderColor,
|
|
17250
|
+
'&:not($compressedIcon)': {
|
|
17251
|
+
transform: 'rotate(180deg)'
|
|
17252
|
+
}
|
|
17146
17253
|
},
|
|
17147
17254
|
ellipsis: {
|
|
17148
17255
|
display: 'block',
|
|
@@ -17201,8 +17308,12 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17201
17308
|
},
|
|
17202
17309
|
hideTag: {},
|
|
17203
17310
|
list: {
|
|
17204
|
-
display: 'inline-block'
|
|
17205
|
-
|
|
17311
|
+
display: 'inline-block'
|
|
17312
|
+
},
|
|
17313
|
+
listSimple: {
|
|
17314
|
+
overflow: 'auto',
|
|
17315
|
+
paddingTop: src.cascaderListPaddingY,
|
|
17316
|
+
paddingBottom: src.cascaderListPaddingY
|
|
17206
17317
|
},
|
|
17207
17318
|
tag: {
|
|
17208
17319
|
flexShrink: 0,
|
|
@@ -17240,8 +17351,10 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17240
17351
|
visibility: 'hidden'
|
|
17241
17352
|
},
|
|
17242
17353
|
moreWrapper: {
|
|
17243
|
-
width: 248,
|
|
17244
|
-
height: 72,
|
|
17354
|
+
// width: 248,
|
|
17355
|
+
// height: 72,
|
|
17356
|
+
maxWidth: 400,
|
|
17357
|
+
maxHeight: 160,
|
|
17245
17358
|
overflow: 'auto',
|
|
17246
17359
|
padding: "".concat(src.cascaderMorePaddingY, " ").concat(src.cascaderMorePaddingX)
|
|
17247
17360
|
},
|
|
@@ -17254,18 +17367,21 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17254
17367
|
lineHeight: src.lineHeightDynamic,
|
|
17255
17368
|
minWidth: 64,
|
|
17256
17369
|
padding: "".concat(src.cascaderOptionPaddingY, " ").concat(src.cascaderOptionPaddingX),
|
|
17257
|
-
'&:not($optionDisabled)': {
|
|
17258
|
-
cursor: 'pointer'
|
|
17370
|
+
'&:not($optionDisabled):not($activeOption)': {
|
|
17371
|
+
cursor: 'pointer',
|
|
17372
|
+
'&:hover': {
|
|
17373
|
+
'& $optionInner': {
|
|
17374
|
+
color: src.cascaderOptionHoverFontColor,
|
|
17375
|
+
backgroundColor: src.cascaderOptionHoverBackgroundColor
|
|
17376
|
+
}
|
|
17377
|
+
},
|
|
17378
|
+
'&:hover $optionInner:active, & $optionInner:active': {
|
|
17379
|
+
color: src.cascaderOptionHoverFontColor,
|
|
17380
|
+
backgroundColor: "".concat(src.cascaderOptionFocusBackgroundColor)
|
|
17381
|
+
}
|
|
17259
17382
|
},
|
|
17260
17383
|
'& $optionCheckbox': {
|
|
17261
17384
|
marginRight: 8
|
|
17262
|
-
},
|
|
17263
|
-
// hover
|
|
17264
|
-
'&:not($optionDisabled):hover': {
|
|
17265
|
-
'& $optionInner': {
|
|
17266
|
-
color: src.cascaderOptionHoverFontColor,
|
|
17267
|
-
backgroundColor: src.cascaderOptionHoverBackgroundColor
|
|
17268
|
-
}
|
|
17269
17385
|
}
|
|
17270
17386
|
},
|
|
17271
17387
|
filterOption: {
|
|
@@ -17274,12 +17390,23 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17274
17390
|
width: '100%'
|
|
17275
17391
|
}
|
|
17276
17392
|
},
|
|
17277
|
-
|
|
17393
|
+
filterOptionItem: {
|
|
17394
|
+
// not disabled
|
|
17395
|
+
'&:not($filterDisabledOption):hover': {
|
|
17396
|
+
color: src.cascaderOptionItemHoverFontColor
|
|
17397
|
+
}
|
|
17398
|
+
},
|
|
17399
|
+
filterDisabledOption: {
|
|
17400
|
+
color: src.cascaderOptionDisabledColor
|
|
17401
|
+
},
|
|
17278
17402
|
filterOptionSeparator: {},
|
|
17279
17403
|
activeOption: {
|
|
17280
17404
|
'& $optionInner': {
|
|
17281
17405
|
color: src.cascaderOptionActiveColor,
|
|
17282
|
-
backgroundColor: src.cascaderOptionActiveBackgroundColor
|
|
17406
|
+
backgroundColor: src.cascaderOptionActiveBackgroundColor,
|
|
17407
|
+
'& $optionIcon': {
|
|
17408
|
+
color: src.cascaderOptionActiveColor
|
|
17409
|
+
}
|
|
17283
17410
|
}
|
|
17284
17411
|
},
|
|
17285
17412
|
optionCheckbox: {},
|
|
@@ -17333,6 +17460,9 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17333
17460
|
cursor: 'not-allowed',
|
|
17334
17461
|
color: src.cascaderOptionDisabledColor,
|
|
17335
17462
|
backgroundColor: src.cascaderOptionDisabledBackgroundColor
|
|
17463
|
+
},
|
|
17464
|
+
'& $optionIcon': {
|
|
17465
|
+
color: src.cascaderOptionDisabledColor
|
|
17336
17466
|
}
|
|
17337
17467
|
}
|
|
17338
17468
|
});
|
|
@@ -17480,7 +17610,8 @@ var checkboxStyle = {
|
|
|
17480
17610
|
groupBlock: {
|
|
17481
17611
|
'& $wrapper': {
|
|
17482
17612
|
display: 'flex',
|
|
17483
|
-
marginBottom: src.checkboxBlockGap
|
|
17613
|
+
marginBottom: src.checkboxBlockGap,
|
|
17614
|
+
marginRight: 0
|
|
17484
17615
|
}
|
|
17485
17616
|
}
|
|
17486
17617
|
};
|
|
@@ -17696,6 +17827,8 @@ var date_picker_inputBorder = input_border('wrapper', date_picker_inputBorderTok
|
|
|
17696
17827
|
var date_picker_wrapper = date_picker_inputBorder.wrapper,
|
|
17697
17828
|
date_picker_wrapperDisabled = date_picker_inputBorder.wrapperDisabled,
|
|
17698
17829
|
date_picker_resetWrapper = objectWithoutProperties_default()(date_picker_inputBorder, ["wrapper", "wrapperDisabled"]);
|
|
17830
|
+
var leftCircleBackground = "radial-gradient(circle closest-side, ".concat(src.datePickerCellRangeBackgroundColor, " 100%, transparent 0%),\nlinear-gradient(to right, transparent 0%,transparent 50%, ").concat(src.datePickerCellRangeBackgroundColor, " 50%, ").concat(src.datePickerCellRangeBackgroundColor, " 100%)\n");
|
|
17831
|
+
var rightCircleBackground = "radial-gradient(circle closest-side, ".concat(src.datePickerCellRangeBackgroundColor, " 100%, transparent 0%),\nlinear-gradient(to left, transparent 0%,transparent 50%, ").concat(src.datePickerCellRangeBackgroundColor, " 50%, ").concat(src.datePickerCellRangeBackgroundColor, " 100%)\n");
|
|
17699
17832
|
var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
17700
17833
|
rootClass: {},
|
|
17701
17834
|
wrapper: objectSpread2_default()({
|
|
@@ -17857,7 +17990,8 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
17857
17990
|
backgroundColor: src.datePickerPanelBackgroundColor,
|
|
17858
17991
|
boxShadow: src.datePickerPanelShadow,
|
|
17859
17992
|
borderRadius: src.datePickerPanelRadius,
|
|
17860
|
-
border: "1px solid ".concat(src.datePickerPanelBorder)
|
|
17993
|
+
border: "1px solid ".concat(src.datePickerPanelBorder),
|
|
17994
|
+
cursor: 'initial'
|
|
17861
17995
|
},
|
|
17862
17996
|
pickerBox: {
|
|
17863
17997
|
display: 'flex'
|
|
@@ -18080,7 +18214,7 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
18080
18214
|
backgroundColor: src.datePickerCellActiveHoverBackgroundColor
|
|
18081
18215
|
}
|
|
18082
18216
|
},
|
|
18083
|
-
'&$pickerCellActive$pickerCellInRange:not($pickerCellDisabled):hover $pickerCellContent': {
|
|
18217
|
+
'&$pickerCellActive$pickerCellInRange:not($pickerCellDisabled):not($pickerCellInRangeStart):not($pickerCellInRangeEnd):hover $pickerCellContent': {
|
|
18084
18218
|
backgroundColor: src.datePickerCellActiveHoverBackgroundColor
|
|
18085
18219
|
}
|
|
18086
18220
|
},
|
|
@@ -18128,21 +18262,25 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
18128
18262
|
pickerCellInRangeStart: {
|
|
18129
18263
|
'&[dir=ltr] > $pickerCellContent': {
|
|
18130
18264
|
borderTopLeftRadius: src.datePickerCellHeight,
|
|
18131
|
-
borderBottomLeftRadius: src.datePickerCellHeight
|
|
18265
|
+
borderBottomLeftRadius: src.datePickerCellHeight,
|
|
18266
|
+
background: leftCircleBackground
|
|
18132
18267
|
},
|
|
18133
18268
|
'&[dir=rtl] > $pickerCellContent': {
|
|
18134
18269
|
borderTopRightRadius: src.datePickerCellHeight,
|
|
18135
|
-
borderBottomRightRadius: src.datePickerCellHeight
|
|
18270
|
+
borderBottomRightRadius: src.datePickerCellHeight,
|
|
18271
|
+
background: rightCircleBackground
|
|
18136
18272
|
}
|
|
18137
18273
|
},
|
|
18138
18274
|
pickerCellInRangeEnd: {
|
|
18139
18275
|
'&[dir=ltr] > $pickerCellContent': {
|
|
18140
18276
|
borderTopRightRadius: src.datePickerCellHeight,
|
|
18141
|
-
borderBottomRightRadius: src.datePickerCellHeight
|
|
18277
|
+
borderBottomRightRadius: src.datePickerCellHeight,
|
|
18278
|
+
background: rightCircleBackground
|
|
18142
18279
|
},
|
|
18143
18280
|
'&[dir=rtl] > $pickerCellContent': {
|
|
18144
18281
|
borderTopLeftRadius: src.datePickerCellHeight,
|
|
18145
|
-
borderBottomLeftRadius: src.datePickerCellHeight
|
|
18282
|
+
borderBottomLeftRadius: src.datePickerCellHeight,
|
|
18283
|
+
background: leftCircleBackground
|
|
18146
18284
|
}
|
|
18147
18285
|
},
|
|
18148
18286
|
pickerCellDisabled: {
|
|
@@ -18518,6 +18656,11 @@ var descriptionsStyle = {
|
|
|
18518
18656
|
},
|
|
18519
18657
|
'& $item': {
|
|
18520
18658
|
paddingBottom: 0
|
|
18659
|
+
},
|
|
18660
|
+
'& $row': {
|
|
18661
|
+
'& td:last-child': {
|
|
18662
|
+
borderRight: 'none'
|
|
18663
|
+
}
|
|
18521
18664
|
}
|
|
18522
18665
|
}
|
|
18523
18666
|
};
|
|
@@ -18750,7 +18893,12 @@ var dropdown_dropdown = {
|
|
|
18750
18893
|
display: 'flex'
|
|
18751
18894
|
}
|
|
18752
18895
|
},
|
|
18753
|
-
itemWrapper: {
|
|
18896
|
+
itemWrapper: {
|
|
18897
|
+
marginBottom: 2,
|
|
18898
|
+
'&:last-child': {
|
|
18899
|
+
marginBottom: 0
|
|
18900
|
+
}
|
|
18901
|
+
},
|
|
18754
18902
|
item: {
|
|
18755
18903
|
display: 'block',
|
|
18756
18904
|
borderRadius: src.dropdownOptionBorderRadius,
|
|
@@ -19100,6 +19248,9 @@ var form_form_form = {
|
|
|
19100
19248
|
},
|
|
19101
19249
|
'& > [data-soui-input-border]': {
|
|
19102
19250
|
marginRight: src.formItemMarginXEnd
|
|
19251
|
+
},
|
|
19252
|
+
'& > button[type="submit"], & > button[type="reset"]': {
|
|
19253
|
+
verticalAlign: 'top'
|
|
19103
19254
|
}
|
|
19104
19255
|
}
|
|
19105
19256
|
};
|
|
@@ -19404,6 +19555,9 @@ var ImageStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
19404
19555
|
borderStyle: 'none'
|
|
19405
19556
|
}
|
|
19406
19557
|
},
|
|
19558
|
+
magnifyZoomOut: {
|
|
19559
|
+
cursor: 'zoom-out'
|
|
19560
|
+
},
|
|
19407
19561
|
close: {
|
|
19408
19562
|
position: 'absolute',
|
|
19409
19563
|
top: -15,
|
|
@@ -19608,18 +19762,62 @@ var moveTime = '120ms';
|
|
|
19608
19762
|
var inner_title_animation = {
|
|
19609
19763
|
'@keyframes movein': {
|
|
19610
19764
|
from: {
|
|
19611
|
-
top: 0
|
|
19765
|
+
top: 0,
|
|
19766
|
+
fontSize: src.inputInnerFontSize
|
|
19612
19767
|
},
|
|
19613
19768
|
to: {
|
|
19614
|
-
top: moveOffset
|
|
19769
|
+
top: moveOffset,
|
|
19770
|
+
fontSize: src.inputInnerTopFontSize
|
|
19615
19771
|
}
|
|
19616
19772
|
},
|
|
19617
19773
|
'@keyframes moveout': {
|
|
19618
19774
|
from: {
|
|
19619
|
-
top: moveOffset
|
|
19775
|
+
top: moveOffset,
|
|
19776
|
+
fontSize: src.inputInnerTopFontSize
|
|
19620
19777
|
},
|
|
19621
19778
|
to: {
|
|
19622
|
-
top: 0
|
|
19779
|
+
top: 0,
|
|
19780
|
+
fontSize: src.inputInnerFontSize
|
|
19781
|
+
}
|
|
19782
|
+
},
|
|
19783
|
+
'@keyframes moveinSmall': {
|
|
19784
|
+
from: {
|
|
19785
|
+
top: 0,
|
|
19786
|
+
fontSize: src.inputInnerSmallFontSize
|
|
19787
|
+
},
|
|
19788
|
+
to: {
|
|
19789
|
+
top: moveOffset,
|
|
19790
|
+
fontSize: src.inputInnerTopSmallFontSize
|
|
19791
|
+
}
|
|
19792
|
+
},
|
|
19793
|
+
'@keyframes moveoutSmall': {
|
|
19794
|
+
from: {
|
|
19795
|
+
top: moveOffset,
|
|
19796
|
+
fontSize: src.inputInnerTopSmallFontSize
|
|
19797
|
+
},
|
|
19798
|
+
to: {
|
|
19799
|
+
top: 0,
|
|
19800
|
+
fontSize: src.inputInnerSmallFontSize
|
|
19801
|
+
}
|
|
19802
|
+
},
|
|
19803
|
+
'@keyframes moveinLarge': {
|
|
19804
|
+
from: {
|
|
19805
|
+
top: 0,
|
|
19806
|
+
fontSize: src.inputInnerLargeFontSize
|
|
19807
|
+
},
|
|
19808
|
+
to: {
|
|
19809
|
+
top: moveOffset,
|
|
19810
|
+
fontSize: src.inputInnerTopLargeFontSize
|
|
19811
|
+
}
|
|
19812
|
+
},
|
|
19813
|
+
'@keyframes moveoutLarge': {
|
|
19814
|
+
from: {
|
|
19815
|
+
top: moveOffset,
|
|
19816
|
+
fontSize: src.inputInnerTopLargeFontSize
|
|
19817
|
+
},
|
|
19818
|
+
to: {
|
|
19819
|
+
top: 0,
|
|
19820
|
+
fontSize: src.inputInnerLargeFontSize
|
|
19623
19821
|
}
|
|
19624
19822
|
}
|
|
19625
19823
|
};
|
|
@@ -19680,6 +19878,18 @@ var innerTitle = objectSpread2_default()(objectSpread2_default()({
|
|
|
19680
19878
|
'$animation:not($wrapperOpen) & $title': {
|
|
19681
19879
|
animation: "$moveout ".concat(moveTime, " ease-in")
|
|
19682
19880
|
},
|
|
19881
|
+
'$wrapperLarge$animation$wrapperOpen & $title': {
|
|
19882
|
+
animation: "$moveinLarge ".concat(moveTime, " ease-in")
|
|
19883
|
+
},
|
|
19884
|
+
'$wrapperLarge$animation:not($wrapperOpen) & $title': {
|
|
19885
|
+
animation: "$moveoutLarge ".concat(moveTime, " ease-in")
|
|
19886
|
+
},
|
|
19887
|
+
'$wrapperSmall$animation$wrapperOpen & $title': {
|
|
19888
|
+
animation: "$moveinSmall ".concat(moveTime, " ease-in")
|
|
19889
|
+
},
|
|
19890
|
+
'$wrapperSmall$animation:not($wrapperOpen) & $title': {
|
|
19891
|
+
animation: "$moveoutSmall ".concat(moveTime, " ease-in")
|
|
19892
|
+
},
|
|
19683
19893
|
position: 'absolute',
|
|
19684
19894
|
top: '0',
|
|
19685
19895
|
left: '0',
|
|
@@ -19935,6 +20145,13 @@ var input_input = objectSpread2_default()(objectSpread2_default()(objectSpread2_
|
|
|
19935
20145
|
width: 14,
|
|
19936
20146
|
transform: 'rotate(-90deg)'
|
|
19937
20147
|
}
|
|
20148
|
+
},
|
|
20149
|
+
'$wrapperDisabled & > span': {
|
|
20150
|
+
color: src.inputDisabledFontColor,
|
|
20151
|
+
borderColor: src.inputDisabledBorderColor,
|
|
20152
|
+
'&:first-child': {
|
|
20153
|
+
borderColor: src.inputDisabledBorderColor
|
|
20154
|
+
}
|
|
19938
20155
|
}
|
|
19939
20156
|
},
|
|
19940
20157
|
passwordToggle: {
|
|
@@ -20027,12 +20244,14 @@ var linkStyle = {
|
|
|
20027
20244
|
},
|
|
20028
20245
|
underline: {
|
|
20029
20246
|
textDecoration: 'underline',
|
|
20247
|
+
textUnderlineOffset: '2px',
|
|
20030
20248
|
'&:hover': {
|
|
20031
20249
|
textDecoration: 'underline'
|
|
20032
20250
|
}
|
|
20033
20251
|
},
|
|
20034
20252
|
underlineHover: {
|
|
20035
20253
|
textDecoration: 'none',
|
|
20254
|
+
textUnderlineOffset: '2px',
|
|
20036
20255
|
'&:hover': {
|
|
20037
20256
|
textDecoration: 'underline'
|
|
20038
20257
|
}
|
|
@@ -20657,6 +20876,9 @@ var menuStyle = {
|
|
|
20657
20876
|
'$childrenHasExpand > $item:not($itemHasChildren) > $itemContentBack > &': {
|
|
20658
20877
|
paddingRight: "calc(".concat(src.menuIconMarginX, " + ").concat(src.menuTitlePaddingX, " + ").concat(src.menuExpandSize, ")")
|
|
20659
20878
|
},
|
|
20879
|
+
'$wrapperHorizontal $childrenHasExpand > $item:not($itemHasChildren) > $itemContentBack > &': {
|
|
20880
|
+
paddingRight: src.menuTitlePaddingX
|
|
20881
|
+
},
|
|
20660
20882
|
'$childrenHasExpand $itemHasChildren > $itemContentBack > &': {
|
|
20661
20883
|
paddingRight: 0
|
|
20662
20884
|
},
|
|
@@ -20668,8 +20890,10 @@ var menuStyle = {
|
|
|
20668
20890
|
'& + $titleContent': {
|
|
20669
20891
|
paddingLeft: src.menuIconMarginX
|
|
20670
20892
|
},
|
|
20671
|
-
|
|
20672
|
-
|
|
20893
|
+
display: 'inline-flex',
|
|
20894
|
+
alignSelf: 'flex-start',
|
|
20895
|
+
height: src.lineHeightDynamic,
|
|
20896
|
+
alignItems: 'center'
|
|
20673
20897
|
},
|
|
20674
20898
|
titleContent: {
|
|
20675
20899
|
whiteSpace: 'pre-wrap',
|
|
@@ -20694,6 +20918,10 @@ var menuStyle = {
|
|
|
20694
20918
|
lineHeight: 1,
|
|
20695
20919
|
width: src.menuExpandSize,
|
|
20696
20920
|
height: src.menuExpandSize,
|
|
20921
|
+
alignSelf: 'flex-start',
|
|
20922
|
+
alignItems: 'center',
|
|
20923
|
+
display: 'flex',
|
|
20924
|
+
minHeight: "calc(".concat(src.lineHeightDynamic, " + ").concat(src.menuTitlePaddingY, "*2)"),
|
|
20697
20925
|
'$wrapper:not($wrapperVertical) $itemOpen > $itemContent &': {
|
|
20698
20926
|
transform: 'rotate(180deg)'
|
|
20699
20927
|
}
|
|
@@ -21374,11 +21602,14 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21374
21602
|
'$wrapperDrawerRight &': {
|
|
21375
21603
|
left: '-4px',
|
|
21376
21604
|
right: 'auto',
|
|
21377
|
-
cursor: '
|
|
21605
|
+
cursor: 'col-resize'
|
|
21606
|
+
},
|
|
21607
|
+
'$wrapperDrawerLeft &': {
|
|
21608
|
+
cursor: 'col-resize'
|
|
21378
21609
|
}
|
|
21379
21610
|
},
|
|
21380
21611
|
resizeY: {
|
|
21381
|
-
cursor: '
|
|
21612
|
+
cursor: 'row-resize',
|
|
21382
21613
|
position: 'absolute',
|
|
21383
21614
|
left: 0,
|
|
21384
21615
|
right: 0,
|
|
@@ -21390,7 +21621,7 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21390
21621
|
'$wrapperDrawerBottom &': {
|
|
21391
21622
|
top: '-4px',
|
|
21392
21623
|
bottom: 'auto',
|
|
21393
|
-
cursor: '
|
|
21624
|
+
cursor: 'row-resize'
|
|
21394
21625
|
}
|
|
21395
21626
|
},
|
|
21396
21627
|
resizeXY: {
|
|
@@ -21692,7 +21923,6 @@ var popoverStyle = {
|
|
|
21692
21923
|
rootClass: {},
|
|
21693
21924
|
wrapper: {
|
|
21694
21925
|
display: 'none',
|
|
21695
|
-
cursor: 'pointer',
|
|
21696
21926
|
position: 'absolute',
|
|
21697
21927
|
boxShadow: src.popoverShadow,
|
|
21698
21928
|
backgroundColor: src.popoverBackgroundColor,
|
|
@@ -21986,16 +22216,16 @@ var progressStyle = {
|
|
|
21986
22216
|
padding: "0 ".concat(src.progressLineInnerPaddingX),
|
|
21987
22217
|
fontWeight: src.progressLineFontWeight
|
|
21988
22218
|
},
|
|
21989
|
-
'$wrapperSuccess &': {
|
|
22219
|
+
'$lineInner$wrapperSuccess &': {
|
|
21990
22220
|
color: src.progressSuccessInnerFontColor
|
|
21991
22221
|
},
|
|
21992
|
-
'$wrapperWarning &': {
|
|
22222
|
+
'$lineInner$wrapperWarning &': {
|
|
21993
22223
|
color: src.progressWarningInnerFontColor
|
|
21994
22224
|
},
|
|
21995
|
-
'$wrapperInfo &': {
|
|
22225
|
+
'$lineInner$wrapperInfo &': {
|
|
21996
22226
|
color: src.progressInfoInnerFontColor
|
|
21997
22227
|
},
|
|
21998
|
-
'$wrapperDanger &': {
|
|
22228
|
+
'$lineInner$wrapperDanger &': {
|
|
21999
22229
|
color: src.progressDangerInnerFontColor
|
|
22000
22230
|
},
|
|
22001
22231
|
'$lineInnerRight &&': {
|
|
@@ -22073,6 +22303,8 @@ var progressStyle = {
|
|
|
22073
22303
|
stroke: src.progressBackground
|
|
22074
22304
|
},
|
|
22075
22305
|
circleFront: {
|
|
22306
|
+
transform: 'rotate(-90deg)',
|
|
22307
|
+
transformOrigin: '50% 50%',
|
|
22076
22308
|
transition: 'stroke-dashoffset .32s ease 0s,stroke-dasharray .32s ease 0s,stroke .32s,stroke-width .06s ease .32s',
|
|
22077
22309
|
'$wrapperSuccess &': {
|
|
22078
22310
|
stroke: src.progressSuccessFrontBackgroundColor
|
|
@@ -22116,7 +22348,10 @@ var radioStyle = {
|
|
|
22116
22348
|
alignItems: 'center',
|
|
22117
22349
|
cursor: 'pointer',
|
|
22118
22350
|
boxSizing: 'border-box',
|
|
22119
|
-
marginRight: src.radioGap
|
|
22351
|
+
marginRight: src.radioGap,
|
|
22352
|
+
'&:last-child': {
|
|
22353
|
+
marginRight: 0
|
|
22354
|
+
}
|
|
22120
22355
|
},
|
|
22121
22356
|
wrapperSmall: {},
|
|
22122
22357
|
wrapperLarge: {},
|
|
@@ -22236,7 +22471,11 @@ var radioStyle = {
|
|
|
22236
22471
|
groupBlock: {
|
|
22237
22472
|
'& $wrapper': {
|
|
22238
22473
|
display: 'flex',
|
|
22239
|
-
marginBottom: src.radioBlockGap
|
|
22474
|
+
marginBottom: src.radioBlockGap,
|
|
22475
|
+
marginRight: 0,
|
|
22476
|
+
'&:last-child': {
|
|
22477
|
+
marginBottom: 0
|
|
22478
|
+
}
|
|
22240
22479
|
}
|
|
22241
22480
|
},
|
|
22242
22481
|
groupButton: {
|
|
@@ -22475,6 +22714,9 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22475
22714
|
'& $placeholder,$ellipsis,$space,input': {
|
|
22476
22715
|
marginTop: src.selectLargePlaceholderMarginY,
|
|
22477
22716
|
marginBottom: src.selectLargePlaceholderMarginY
|
|
22717
|
+
},
|
|
22718
|
+
'& $arrowIcon': {
|
|
22719
|
+
width: src.selectLargeFontSize
|
|
22478
22720
|
}
|
|
22479
22721
|
},
|
|
22480
22722
|
'&:hover': objectSpread2_default()(objectSpread2_default()({}, select_wrapper['&:hover']), {}, {
|
|
@@ -22646,7 +22888,8 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22646
22888
|
boxShadow: src.selectPanelShadow,
|
|
22647
22889
|
borderRadius: src.selectPanelRadius,
|
|
22648
22890
|
transformOrigin: '0 0',
|
|
22649
|
-
border: "1px solid ".concat(src.selectPanelBorder)
|
|
22891
|
+
border: "1px solid ".concat(src.selectPanelBorder),
|
|
22892
|
+
cursor: 'initial'
|
|
22650
22893
|
},
|
|
22651
22894
|
pickerSmall: {
|
|
22652
22895
|
'& $optionInner': {
|
|
@@ -22674,7 +22917,8 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22674
22917
|
iconWrapper: {
|
|
22675
22918
|
display: 'flex',
|
|
22676
22919
|
alignItems: 'center',
|
|
22677
|
-
justifyContent: 'center'
|
|
22920
|
+
justifyContent: 'center',
|
|
22921
|
+
marginLeft: src.selectIconMarginLeft
|
|
22678
22922
|
},
|
|
22679
22923
|
clearable: {},
|
|
22680
22924
|
clearIcon: {
|
|
@@ -22750,10 +22994,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22750
22994
|
},
|
|
22751
22995
|
moreIcon: {},
|
|
22752
22996
|
hideTag: {},
|
|
22753
|
-
list: {
|
|
22754
|
-
paddingTop: 3,
|
|
22755
|
-
paddingBottom: 3
|
|
22756
|
-
},
|
|
22997
|
+
list: {},
|
|
22757
22998
|
tree: {
|
|
22758
22999
|
padding: 4,
|
|
22759
23000
|
overflow: 'auto'
|
|
@@ -22805,7 +23046,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
22805
23046
|
maxWidth: 400,
|
|
22806
23047
|
maxHeight: 160,
|
|
22807
23048
|
overflow: 'auto',
|
|
22808
|
-
padding: src.
|
|
23049
|
+
padding: "".concat(src.selectMorePaddingY, " ").concat(src.selectMorePaddingX),
|
|
22809
23050
|
'&:hover': {
|
|
22810
23051
|
'& $clearIcon': {
|
|
22811
23052
|
display: 'inline-block'
|
|
@@ -22962,6 +23203,7 @@ var useSelectStyle = styled(src_select_select, 'select');
|
|
|
22962
23203
|
/* harmony default export */ var shineout_style_src_select = ((/* unused pure expression or super */ null && (useSelectStyle)));
|
|
22963
23204
|
;// CONCATENATED MODULE: ../shineout-style/src/slider/slider.ts
|
|
22964
23205
|
|
|
23206
|
+
var verticalLabelMargin = 4;
|
|
22965
23207
|
var sliderStyle = {
|
|
22966
23208
|
rootClass: {},
|
|
22967
23209
|
wrapper: {
|
|
@@ -22993,6 +23235,9 @@ var sliderStyle = {
|
|
|
22993
23235
|
'$vertical &': {
|
|
22994
23236
|
width: src.sliderTrackSize,
|
|
22995
23237
|
height: '100%'
|
|
23238
|
+
},
|
|
23239
|
+
'$disabled &': {
|
|
23240
|
+
cursor: 'not-allowed'
|
|
22996
23241
|
}
|
|
22997
23242
|
},
|
|
22998
23243
|
trackInner: {
|
|
@@ -23115,11 +23360,11 @@ var sliderStyle = {
|
|
|
23115
23360
|
bottom: '100%',
|
|
23116
23361
|
'&[dir=ltr]': {
|
|
23117
23362
|
left: 0,
|
|
23118
|
-
transform: 'translate(-50%, -
|
|
23363
|
+
transform: 'translate(-50%, -14px)'
|
|
23119
23364
|
},
|
|
23120
23365
|
'&[dir=rtl]': {
|
|
23121
23366
|
right: 0,
|
|
23122
|
-
transform: 'translate(50%, -
|
|
23367
|
+
transform: 'translate(50%, -14px)'
|
|
23123
23368
|
}
|
|
23124
23369
|
},
|
|
23125
23370
|
'$vertical &': {
|
|
@@ -23127,11 +23372,11 @@ var sliderStyle = {
|
|
|
23127
23372
|
padding: '1px 4px',
|
|
23128
23373
|
'&[dir=ltr]': {
|
|
23129
23374
|
left: '100%',
|
|
23130
|
-
transform: 'translate(
|
|
23375
|
+
transform: 'translate(14px, 50%)'
|
|
23131
23376
|
},
|
|
23132
23377
|
'&[dir=rtl]': {
|
|
23133
23378
|
right: '100%',
|
|
23134
|
-
transform: 'translate(-
|
|
23379
|
+
transform: 'translate(-14px, 50%)'
|
|
23135
23380
|
}
|
|
23136
23381
|
}
|
|
23137
23382
|
},
|
|
@@ -23140,11 +23385,11 @@ var sliderStyle = {
|
|
|
23140
23385
|
bottom: '100%',
|
|
23141
23386
|
'&[dir=ltr]': {
|
|
23142
23387
|
right: 0,
|
|
23143
|
-
transform: 'translate(50%, -
|
|
23388
|
+
transform: 'translate(50%, -14px)'
|
|
23144
23389
|
},
|
|
23145
23390
|
'&[dir=rtl]': {
|
|
23146
23391
|
left: 0,
|
|
23147
|
-
transform: 'translate(-50%, -
|
|
23392
|
+
transform: 'translate(-50%, -14px)'
|
|
23148
23393
|
}
|
|
23149
23394
|
},
|
|
23150
23395
|
'$vertical &': {
|
|
@@ -23152,11 +23397,11 @@ var sliderStyle = {
|
|
|
23152
23397
|
padding: '1px 4px',
|
|
23153
23398
|
'&[dir=ltr]': {
|
|
23154
23399
|
left: '100%',
|
|
23155
|
-
transform: 'translate(
|
|
23400
|
+
transform: 'translate(14px, -50%)'
|
|
23156
23401
|
},
|
|
23157
23402
|
'&[dir=rtl]': {
|
|
23158
23403
|
right: '100%',
|
|
23159
|
-
transform: 'translate(-
|
|
23404
|
+
transform: 'translate(-14px, -50%)'
|
|
23160
23405
|
}
|
|
23161
23406
|
}
|
|
23162
23407
|
},
|
|
@@ -23216,6 +23461,11 @@ var sliderStyle = {
|
|
|
23216
23461
|
height: src.sliderScaleLineSize,
|
|
23217
23462
|
transform: 'translateX(-50%)'
|
|
23218
23463
|
}
|
|
23464
|
+
// 为了让首尾刻度不超出轨道
|
|
23465
|
+
// '&:first-child $label[dir=ltr]': { transform: 'translate(0%)' },
|
|
23466
|
+
// '&:first-child $label[dir=rtl]': { transform: 'translate(0%)' },
|
|
23467
|
+
// '&:last-child $label[dir=ltr]': { transform: 'translate(-100%)' },
|
|
23468
|
+
// '&:last-child $label[dir=rtl]': { transform: 'translate(100%)' },
|
|
23219
23469
|
},
|
|
23220
23470
|
'$vertical &': {
|
|
23221
23471
|
marginLeft: src.sliderScaleMarginY,
|
|
@@ -23225,6 +23475,11 @@ var sliderStyle = {
|
|
|
23225
23475
|
width: src.sliderScaleLineSize,
|
|
23226
23476
|
transform: 'translateY(-50%)'
|
|
23227
23477
|
}
|
|
23478
|
+
// 为了让首尾刻度不超出轨道
|
|
23479
|
+
// '&:first-child $label[dir=ltr]': { transform: `translate(${verticalLabelMargin}px, -100%)` },
|
|
23480
|
+
// '&:first-child $label[dir=rtl]': { transform: `translate(-${verticalLabelMargin}px, -100%)` },
|
|
23481
|
+
// '&:last-child $label[dir=ltr]': { transform: `translate(${verticalLabelMargin}px, 0)` },
|
|
23482
|
+
// '&:last-child $label[dir=rtl]': { transform: `translate(-${verticalLabelMargin}px, 0)` },
|
|
23228
23483
|
}
|
|
23229
23484
|
},
|
|
23230
23485
|
label: {
|
|
@@ -23246,11 +23501,11 @@ var sliderStyle = {
|
|
|
23246
23501
|
lineHeight: 1,
|
|
23247
23502
|
'&[dir=ltr]': {
|
|
23248
23503
|
left: '100%',
|
|
23249
|
-
transform:
|
|
23504
|
+
transform: "translate(".concat(verticalLabelMargin, "px, -50%)")
|
|
23250
23505
|
},
|
|
23251
23506
|
'&[dir=rtl]': {
|
|
23252
23507
|
right: '100%',
|
|
23253
|
-
transform:
|
|
23508
|
+
transform: "translate(-".concat(verticalLabelMargin, "px, -50%)")
|
|
23254
23509
|
}
|
|
23255
23510
|
}
|
|
23256
23511
|
}
|
|
@@ -24400,7 +24655,7 @@ var stepsStyle = {
|
|
|
24400
24655
|
backgroundColor: src.stepsErrorBackgroundColor
|
|
24401
24656
|
},
|
|
24402
24657
|
'& $title': {
|
|
24403
|
-
fontWeight:
|
|
24658
|
+
fontWeight: 500
|
|
24404
24659
|
}
|
|
24405
24660
|
},
|
|
24406
24661
|
icon: {
|
|
@@ -24825,10 +25080,6 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24825
25080
|
backgroundColor: src.switchCheckedDisabledBackgroundColor,
|
|
24826
25081
|
color: src.switchCheckedDisabledFontColor
|
|
24827
25082
|
},
|
|
24828
|
-
// '$wrapperChecked$wrapperLoading&': {
|
|
24829
|
-
// backgroundColor: token.switchCheckedLoadingBackgroundColor,
|
|
24830
|
-
// color: token.switchCheckedLoadingFontColor,
|
|
24831
|
-
// },
|
|
24832
25083
|
height: "calc( ".concat(src.switchCircleSize, " + ").concat(src.switchPaddingY, " * 2 )"),
|
|
24833
25084
|
padding: "".concat(src.switchPaddingY, " ").concat(src.switchPaddingX),
|
|
24834
25085
|
minWidth: src.switchWidth,
|
|
@@ -24839,27 +25090,35 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24839
25090
|
padding: "".concat(src.switchSmallPaddingY, " ").concat(src.switchSmallPaddingX),
|
|
24840
25091
|
minWidth: src.switchSmallWidth,
|
|
24841
25092
|
borderRadius: "calc( ".concat(src.switchSmallCircleSize, " / 2 + ").concat(src.switchSmallPaddingY, " )"),
|
|
24842
|
-
|
|
25093
|
+
fontSize: src.switchSmallFontSize
|
|
24843
25094
|
},
|
|
24844
25095
|
'$wrapperLarge&': {
|
|
24845
25096
|
height: "calc( ".concat(src.switchLargeCircleSize, " + ").concat(src.switchLargePaddingY, " * 2 )"),
|
|
24846
25097
|
padding: "".concat(src.switchLargePaddingY, " ").concat(src.switchLargePaddingX),
|
|
24847
25098
|
minWidth: src.switchLargeWidth,
|
|
24848
25099
|
borderRadius: "calc( ".concat(src.switchLargeCircleSize, " / 2 + ").concat(src.switchLargePaddingY, " )"),
|
|
24849
|
-
|
|
25100
|
+
fontSize: src.switchLargeFontSize
|
|
24850
25101
|
}
|
|
24851
25102
|
},
|
|
24852
25103
|
wrapperChecked: {},
|
|
24853
25104
|
textPadding: {
|
|
24854
|
-
|
|
24855
|
-
|
|
24856
|
-
|
|
24857
|
-
|
|
24858
|
-
|
|
24859
|
-
|
|
24860
|
-
|
|
24861
|
-
|
|
25105
|
+
paddingLeft: src.switchTextPaddingRight,
|
|
25106
|
+
paddingRight: src.switchTextPaddingLeft,
|
|
25107
|
+
'$wrapperChecked &': {
|
|
25108
|
+
paddingLeft: src.switchTextPaddingLeft,
|
|
25109
|
+
paddingRight: src.switchTextPaddingRight
|
|
25110
|
+
},
|
|
25111
|
+
'$wrapperSmall &': {
|
|
25112
|
+
paddingLeft: src.switchSmallTextPaddingRight,
|
|
25113
|
+
paddingRight: src.switchSmallTextPaddingLeft
|
|
25114
|
+
},
|
|
25115
|
+
'$wrapperSmall$wrapperChecked &': {
|
|
25116
|
+
paddingLeft: src.switchSmallTextPaddingLeft,
|
|
25117
|
+
paddingRight: src.switchSmallTextPaddingRight
|
|
25118
|
+
}
|
|
24862
25119
|
},
|
|
25120
|
+
wrapperSmall: {},
|
|
25121
|
+
wrapperLarge: {},
|
|
24863
25122
|
indicator: {
|
|
24864
25123
|
width: src.switchCircleSize,
|
|
24865
25124
|
height: src.switchCircleSize,
|
|
@@ -24873,7 +25132,6 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24873
25132
|
display: 'flex',
|
|
24874
25133
|
alignItems: 'center',
|
|
24875
25134
|
justifyContent: 'center',
|
|
24876
|
-
color: 'red',
|
|
24877
25135
|
'$wrapperChecked &': {
|
|
24878
25136
|
backgroundColor: src.switchCheckedCircleFill,
|
|
24879
25137
|
'&[dir=ltr]': {
|
|
@@ -24917,8 +25175,8 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24917
25175
|
left: src.switchLargePaddingX,
|
|
24918
25176
|
top: src.switchLargePaddingY
|
|
24919
25177
|
},
|
|
24920
|
-
'$wrapperDisabled
|
|
24921
|
-
backgroundColor: src.
|
|
25178
|
+
'$wrapperDisabled$wrapperChecked &': {
|
|
25179
|
+
backgroundColor: src.switchDisabledCircleCheckedFill
|
|
24922
25180
|
},
|
|
24923
25181
|
'$wrapperDisabled &': {
|
|
24924
25182
|
backgroundColor: src.switchCheckedDisabledCircleFill
|
|
@@ -24926,12 +25184,10 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24926
25184
|
borderRadius: '50%',
|
|
24927
25185
|
position: 'absolute',
|
|
24928
25186
|
backgroundColor: src.switchCircleFill,
|
|
24929
|
-
boxShadow:
|
|
25187
|
+
// boxShadow: token.switchCircleShadow,
|
|
24930
25188
|
transition: "left ".concat(switch_transition, ", right ").concat(switch_transition)
|
|
24931
25189
|
},
|
|
24932
25190
|
content: {
|
|
24933
|
-
display: 'inline',
|
|
24934
|
-
lineHeight: 1,
|
|
24935
25191
|
paddingLeft: src.switchCircleSize,
|
|
24936
25192
|
transition: "padding ".concat(switch_transition),
|
|
24937
25193
|
'$wrapperSmall &': {
|
|
@@ -24958,18 +25214,20 @@ var switchStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24958
25214
|
},
|
|
24959
25215
|
loading: {
|
|
24960
25216
|
position: 'absolute',
|
|
24961
|
-
|
|
24962
|
-
|
|
24963
|
-
right: '12%',
|
|
24964
|
-
bottom: '12%',
|
|
24965
|
-
borderRadius: '50%',
|
|
24966
|
-
border: '1px solid',
|
|
24967
|
-
borderColor: src.switchDisabledBackgroundColor,
|
|
24968
|
-
borderTopColor: 'transparent',
|
|
25217
|
+
color: src.switchLoadingCircleFill,
|
|
25218
|
+
inset: '2px',
|
|
24969
25219
|
animation: "$ring 1s ease-in-out infinite",
|
|
25220
|
+
'$wrapperLarge &': {
|
|
25221
|
+
inset: '3px'
|
|
25222
|
+
},
|
|
25223
|
+
'$wrapperSmall &': {
|
|
25224
|
+
inset: '1px'
|
|
25225
|
+
},
|
|
25226
|
+
'& > svg': {
|
|
25227
|
+
display: 'block'
|
|
25228
|
+
},
|
|
24970
25229
|
'$wrapperChecked &': {
|
|
24971
|
-
|
|
24972
|
-
borderTopColor: 'transparent'
|
|
25230
|
+
color: src.switchCheckedLoadingCircleFill
|
|
24973
25231
|
}
|
|
24974
25232
|
}
|
|
24975
25233
|
});
|
|
@@ -25194,7 +25452,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25194
25452
|
background: src.tableTfootBackgroundColor
|
|
25195
25453
|
},
|
|
25196
25454
|
emptyWrapper: {
|
|
25197
|
-
minHeight: '
|
|
25455
|
+
minHeight: '170px',
|
|
25198
25456
|
width: '100%',
|
|
25199
25457
|
height: '100%',
|
|
25200
25458
|
position: 'sticky',
|
|
@@ -25203,7 +25461,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25203
25461
|
right: 0,
|
|
25204
25462
|
justifyContent: 'center',
|
|
25205
25463
|
display: 'flex',
|
|
25206
|
-
alignItems: 'center'
|
|
25464
|
+
alignItems: 'center',
|
|
25465
|
+
borderBottom: "1px solid ".concat(src.tableCellBorderColor)
|
|
25207
25466
|
},
|
|
25208
25467
|
scrollY: {
|
|
25209
25468
|
'&$headWrapper, &$footWrapper': objectSpread2_default()({
|
|
@@ -25261,7 +25520,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25261
25520
|
position: 'absolute',
|
|
25262
25521
|
top: 0,
|
|
25263
25522
|
bottom: -1,
|
|
25264
|
-
width: '5px'
|
|
25523
|
+
width: '5px',
|
|
25524
|
+
pointerEvents: 'none'
|
|
25265
25525
|
},
|
|
25266
25526
|
'&[dir=ltr]::after': {
|
|
25267
25527
|
right: '-5px',
|
|
@@ -25293,7 +25553,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25293
25553
|
position: 'absolute',
|
|
25294
25554
|
top: 0,
|
|
25295
25555
|
bottom: 0,
|
|
25296
|
-
width: '5px'
|
|
25556
|
+
width: '5px',
|
|
25557
|
+
pointerEvents: 'none'
|
|
25297
25558
|
},
|
|
25298
25559
|
'&[dir=rtl]::before': {
|
|
25299
25560
|
right: '-5px',
|
|
@@ -25551,7 +25812,7 @@ var getCardStyle = function getCardStyle() {
|
|
|
25551
25812
|
},
|
|
25552
25813
|
'&[dir=ltr]': objectSpread2_default()({
|
|
25553
25814
|
'& $cardHr': {
|
|
25554
|
-
'&:
|
|
25815
|
+
'&:before': {
|
|
25555
25816
|
right: 0,
|
|
25556
25817
|
left: 'auto',
|
|
25557
25818
|
width: '1px',
|
|
@@ -25573,7 +25834,7 @@ var getCardStyle = function getCardStyle() {
|
|
|
25573
25834
|
background: '#FFFFFF'
|
|
25574
25835
|
})), {}, {
|
|
25575
25836
|
'& $cardHr': {
|
|
25576
|
-
'&:
|
|
25837
|
+
'&:before': {
|
|
25577
25838
|
left: 0,
|
|
25578
25839
|
width: 1,
|
|
25579
25840
|
height: '100%'
|
|
@@ -25592,7 +25853,7 @@ var getCardStyle = function getCardStyle() {
|
|
|
25592
25853
|
},
|
|
25593
25854
|
'&[dir=ltr]': objectSpread2_default()({
|
|
25594
25855
|
'& $cardHr': {
|
|
25595
|
-
'&:
|
|
25856
|
+
'&:before': {
|
|
25596
25857
|
left: 0,
|
|
25597
25858
|
width: 1,
|
|
25598
25859
|
height: '100%'
|
|
@@ -25607,7 +25868,7 @@ var getCardStyle = function getCardStyle() {
|
|
|
25607
25868
|
})),
|
|
25608
25869
|
'&[dir=rtl]': objectSpread2_default()({
|
|
25609
25870
|
'& $cardHr': {
|
|
25610
|
-
'&:
|
|
25871
|
+
'&:before': {
|
|
25611
25872
|
right: 0,
|
|
25612
25873
|
width: 1,
|
|
25613
25874
|
height: '100%'
|
|
@@ -25647,7 +25908,7 @@ var getCardStyle = function getCardStyle() {
|
|
|
25647
25908
|
width: '100%'
|
|
25648
25909
|
},
|
|
25649
25910
|
'& $cardHr': {
|
|
25650
|
-
'&:
|
|
25911
|
+
'&:before': {
|
|
25651
25912
|
top: 0,
|
|
25652
25913
|
bottom: 'auto'
|
|
25653
25914
|
}
|
|
@@ -25895,15 +26156,13 @@ var tabsStyle = {
|
|
|
25895
26156
|
}
|
|
25896
26157
|
},
|
|
25897
26158
|
cardHr: {
|
|
25898
|
-
|
|
25899
|
-
'&:after': {
|
|
26159
|
+
'&:before': {
|
|
25900
26160
|
position: 'absolute',
|
|
25901
26161
|
content: '""',
|
|
25902
26162
|
bottom: 0,
|
|
25903
26163
|
left: 0,
|
|
25904
26164
|
width: '100%',
|
|
25905
26165
|
height: 1,
|
|
25906
|
-
zIndex: -1,
|
|
25907
26166
|
background: src.tabsBorderColor
|
|
25908
26167
|
}
|
|
25909
26168
|
},
|
|
@@ -26359,7 +26618,8 @@ var tag_tag = function tag(type) {
|
|
|
26359
26618
|
},
|
|
26360
26619
|
'&[data-soui-type="dark"]': {
|
|
26361
26620
|
'&$disabled': {
|
|
26362
|
-
backgroundColor: src.tagDefaultFillBackgroundColor
|
|
26621
|
+
backgroundColor: src.tagDefaultFillBackgroundColor,
|
|
26622
|
+
borderColor: src.tagDefaultFillBorderColor
|
|
26363
26623
|
}
|
|
26364
26624
|
},
|
|
26365
26625
|
'&$disabled': {
|
|
@@ -26649,6 +26909,9 @@ var textarea_input = objectSpread2_default()(objectSpread2_default()(objectSprea
|
|
|
26649
26909
|
backgroundColor: 'transparent',
|
|
26650
26910
|
resize: 'none',
|
|
26651
26911
|
boxSizing: 'border-box',
|
|
26912
|
+
minHeight: "calc(".concat(src.lineHeightDynamic, " + ").concat(src.inputPaddingY, " * 2)"),
|
|
26913
|
+
// why: 为了让滚动条的轨道不遮盖右上角和右下角的圆角; 注: chrome >= 121才支持scrollbar-color
|
|
26914
|
+
scrollbarColor: "".concat(src.inputBorderColor, " transparent"),
|
|
26652
26915
|
'&$resize': {
|
|
26653
26916
|
resize: 'vertical'
|
|
26654
26917
|
}
|
|
@@ -27033,7 +27296,7 @@ var TransferStyle = {
|
|
|
27033
27296
|
}
|
|
27034
27297
|
},
|
|
27035
27298
|
inputWrapper: {
|
|
27036
|
-
padding: '
|
|
27299
|
+
padding: '8px 12px 4px 12px'
|
|
27037
27300
|
},
|
|
27038
27301
|
input: {
|
|
27039
27302
|
'& > div > svg': {
|
|
@@ -27066,7 +27329,9 @@ var TransferStyle = {
|
|
|
27066
27329
|
fontSize: src.transferFontSize
|
|
27067
27330
|
},
|
|
27068
27331
|
list: {
|
|
27332
|
+
borderRadius: src.transferBorderRadius,
|
|
27069
27333
|
background: src.transferBackgroundColor
|
|
27334
|
+
// scrollbarColor: `${Token.transferBorderColor} transparent`,
|
|
27070
27335
|
},
|
|
27071
27336
|
footer: {
|
|
27072
27337
|
height: 48,
|
|
@@ -27131,6 +27396,7 @@ var useTransferStyle = styled(transfer_transfer, 'transfer');
|
|
|
27131
27396
|
var treeStyle = {
|
|
27132
27397
|
rootClass: {},
|
|
27133
27398
|
tree: {},
|
|
27399
|
+
virtual: {},
|
|
27134
27400
|
line: {
|
|
27135
27401
|
'& $node': {
|
|
27136
27402
|
'&[dir=ltr]::before': {
|
|
@@ -27235,6 +27501,9 @@ var treeStyle = {
|
|
|
27235
27501
|
// },
|
|
27236
27502
|
'& > $node': {
|
|
27237
27503
|
paddingLeft: 12,
|
|
27504
|
+
'&$leaf': {
|
|
27505
|
+
paddingLeft: 24
|
|
27506
|
+
},
|
|
27238
27507
|
'& > $contentWrapper > $iconWrapper': {
|
|
27239
27508
|
'&[dir=ltr]': {
|
|
27240
27509
|
left: 0
|
|
@@ -27502,6 +27771,9 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
27502
27771
|
paddingLeft: src.treeSelectLargeOptionInnerPaddingX,
|
|
27503
27772
|
fontSize: src.treeSelectLargeFontSize
|
|
27504
27773
|
},
|
|
27774
|
+
'& $arrowIcon': {
|
|
27775
|
+
width: src.treeSelectLargeFontSize
|
|
27776
|
+
},
|
|
27505
27777
|
'& $clearIcon': {
|
|
27506
27778
|
right: src.treeSelectLargePaddingX
|
|
27507
27779
|
}
|
|
@@ -27658,7 +27930,8 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
27658
27930
|
borderRadius: src.treeSelectPanelRadius,
|
|
27659
27931
|
transformOrigin: '0 0',
|
|
27660
27932
|
width: 'max-content',
|
|
27661
|
-
maxWidth: '640px'
|
|
27933
|
+
maxWidth: '640px',
|
|
27934
|
+
cursor: 'initial'
|
|
27662
27935
|
},
|
|
27663
27936
|
iconWrapper: {
|
|
27664
27937
|
display: 'flex',
|
|
@@ -27671,7 +27944,10 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
27671
27944
|
width: src.treeSelectFontSize,
|
|
27672
27945
|
lineHeight: 0,
|
|
27673
27946
|
color: src.treeSelectClearColor,
|
|
27674
|
-
verticalAlign: 'middle'
|
|
27947
|
+
verticalAlign: 'middle',
|
|
27948
|
+
'&:hover svg': {
|
|
27949
|
+
color: src.treeSelectClearHoverColor
|
|
27950
|
+
}
|
|
27675
27951
|
},
|
|
27676
27952
|
arrowIcon: {
|
|
27677
27953
|
display: 'inline-block',
|
|
@@ -27679,7 +27955,10 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
27679
27955
|
width: src.treeSelectFontSize,
|
|
27680
27956
|
lineHeight: 0,
|
|
27681
27957
|
color: src.treeSelectIconColor,
|
|
27682
|
-
transition: 'transform 0.3s'
|
|
27958
|
+
transition: 'transform 0.3s',
|
|
27959
|
+
'$wrapperDisabled &': {
|
|
27960
|
+
color: src.treeSelectIconDisabledColor
|
|
27961
|
+
}
|
|
27683
27962
|
},
|
|
27684
27963
|
arrowIconOpen: {
|
|
27685
27964
|
transform: 'rotate(180deg)',
|
|
@@ -27738,7 +28017,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
27738
28017
|
paddingBottom: 3
|
|
27739
28018
|
},
|
|
27740
28019
|
tree: {
|
|
27741
|
-
padding: 4,
|
|
28020
|
+
// padding: 4,
|
|
27742
28021
|
overflow: 'auto'
|
|
27743
28022
|
},
|
|
27744
28023
|
treeOption: {
|
|
@@ -28717,6 +28996,9 @@ function isDomElement(element) {
|
|
|
28717
28996
|
return (typeof HTMLElement === "undefined" ? "undefined" : typeof_default()(HTMLElement)) === 'object' ? element instanceof HTMLElement // DOM2
|
|
28718
28997
|
: element && typeof_default()(element) === 'object' && element !== null && element.nodeType === 1 && typeof element.nodeName === 'string';
|
|
28719
28998
|
}
|
|
28999
|
+
var isOptionalDisabled = function isOptionalDisabled(disabled) {
|
|
29000
|
+
return is_isObject(disabled) && disabled.hasOwnProperty('isRealtime');
|
|
29001
|
+
};
|
|
28720
29002
|
;// CONCATENATED MODULE: ../hooks/src/utils/document.ts
|
|
28721
29003
|
|
|
28722
29004
|
var docSize = {
|
|
@@ -29308,6 +29590,9 @@ var getPositionStyle = function getPositionStyle(position, config) {
|
|
|
29308
29590
|
if (config !== null && config !== void 0 && config.fixedWidth) {
|
|
29309
29591
|
var key = config.fixedWidth === 'min' ? 'minWidth' : 'width';
|
|
29310
29592
|
newStyle[key] = '100%';
|
|
29593
|
+
if (config.parentBorderWidth) {
|
|
29594
|
+
newStyle[key] = "calc(100% + ".concat(config.parentBorderWidth, "px)");
|
|
29595
|
+
}
|
|
29311
29596
|
}
|
|
29312
29597
|
if (position === 'drop-down') {
|
|
29313
29598
|
newStyle.top = mainMargin;
|
|
@@ -29319,19 +29604,22 @@ var getPositionStyle = function getPositionStyle(position, config) {
|
|
|
29319
29604
|
var positionArr = (position || '').split('-');
|
|
29320
29605
|
if (positionArr.length === 2) {
|
|
29321
29606
|
var _positionArr = slicedToArray_default()(positionArr, 2),
|
|
29322
|
-
|
|
29323
|
-
|
|
29324
|
-
newStyle[ReverseDir[
|
|
29325
|
-
newStyle[
|
|
29607
|
+
vDirection = _positionArr[0],
|
|
29608
|
+
hDirection = _positionArr[1];
|
|
29609
|
+
newStyle[ReverseDir[vDirection]] = mainMargin;
|
|
29610
|
+
newStyle[hDirection] = 0;
|
|
29611
|
+
if (config !== null && config !== void 0 && config.parentBorderWidth) {
|
|
29612
|
+
newStyle[hDirection] = -config.parentBorderWidth / 2;
|
|
29613
|
+
}
|
|
29326
29614
|
} else {
|
|
29327
29615
|
var _positionArr2 = slicedToArray_default()(positionArr, 1),
|
|
29328
|
-
|
|
29329
|
-
newStyle[ReverseDir[
|
|
29330
|
-
if (
|
|
29616
|
+
_vDirection = _positionArr2[0];
|
|
29617
|
+
newStyle[ReverseDir[_vDirection]] = mainMargin;
|
|
29618
|
+
if (_vDirection === 'left' || _vDirection === 'right') {
|
|
29331
29619
|
newStyle.top = halfMargin;
|
|
29332
29620
|
newStyle.transform = 'translateY(-50%)';
|
|
29333
29621
|
}
|
|
29334
|
-
if (
|
|
29622
|
+
if (_vDirection === 'top' || _vDirection === 'bottom') {
|
|
29335
29623
|
newStyle.left = halfMargin;
|
|
29336
29624
|
newStyle.transform = 'translateX(-50%)';
|
|
29337
29625
|
}
|
|
@@ -29419,6 +29707,31 @@ var useCheckElementPosition = function useCheckElementPosition(elementRef) {
|
|
|
29419
29707
|
}
|
|
29420
29708
|
return position;
|
|
29421
29709
|
};
|
|
29710
|
+
;// CONCATENATED MODULE: ../hooks/src/common/use-position-style/check-border.ts
|
|
29711
|
+
|
|
29712
|
+
|
|
29713
|
+
var useCheckElementBorderWidth = function useCheckElementBorderWidth(elementRef) {
|
|
29714
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
29715
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
29716
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
29717
|
+
borderWidth = _useState2[0],
|
|
29718
|
+
setBorderWidth = _useState2[1];
|
|
29719
|
+
|
|
29720
|
+
// 获取指定方向上的border宽度之和
|
|
29721
|
+
var getBorderWidth = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
29722
|
+
if (elementRef.current) {
|
|
29723
|
+
var _options$direction = options.direction,
|
|
29724
|
+
direction = _options$direction === void 0 ? 'horizontal' : _options$direction;
|
|
29725
|
+
var style = window.getComputedStyle(elementRef.current);
|
|
29726
|
+
var _borderWidth = direction === 'horizontal' ? parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth) : parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
29727
|
+
setBorderWidth(_borderWidth);
|
|
29728
|
+
}
|
|
29729
|
+
}, [elementRef]);
|
|
29730
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
29731
|
+
getBorderWidth();
|
|
29732
|
+
}, [getBorderWidth]);
|
|
29733
|
+
return borderWidth;
|
|
29734
|
+
};
|
|
29422
29735
|
// EXTERNAL MODULE: ../../node_modules/.pnpm/react-fast-compare@3.2.2/node_modules/react-fast-compare/index.js
|
|
29423
29736
|
var react_fast_compare = __webpack_require__(5284);
|
|
29424
29737
|
var react_fast_compare_default = /*#__PURE__*/__webpack_require__.n(react_fast_compare);
|
|
@@ -29544,6 +29857,7 @@ var getCurrentCSSZoom = function getCurrentCSSZoom() {
|
|
|
29544
29857
|
|
|
29545
29858
|
|
|
29546
29859
|
|
|
29860
|
+
|
|
29547
29861
|
var horizontalPosition = ['left-bottom', 'left-top', 'right-bottom', 'right-top', 'left', 'right'];
|
|
29548
29862
|
var verticalPosition = ['bottom-left', 'bottom-right', 'top-left', 'top-right', 'bottom', 'top'];
|
|
29549
29863
|
var hideStyle = {
|
|
@@ -29566,7 +29880,8 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29566
29880
|
popupElRef = _ref.popupElRef,
|
|
29567
29881
|
scrollElRef = _ref.scrollElRef,
|
|
29568
29882
|
updateKey = _ref.updateKey,
|
|
29569
|
-
adjust = _ref.adjust
|
|
29883
|
+
adjust = _ref.adjust,
|
|
29884
|
+
offset = _ref.offset;
|
|
29570
29885
|
// 初次渲染无样式的时候, 隐藏展示
|
|
29571
29886
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(hideStyle),
|
|
29572
29887
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -29597,6 +29912,9 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29597
29912
|
scrollContainer: scrollElRef === null || scrollElRef === void 0 ? void 0 : scrollElRef.current,
|
|
29598
29913
|
enable: show && adjust
|
|
29599
29914
|
});
|
|
29915
|
+
var parentElBorderWidth = useCheckElementBorderWidth(parentElRef, {
|
|
29916
|
+
direction: 'horizontal'
|
|
29917
|
+
});
|
|
29600
29918
|
var adjustPosition = function adjustPosition(position) {
|
|
29601
29919
|
var winHeight = docSize.height;
|
|
29602
29920
|
if (!verticalPosition.includes(position)) return position;
|
|
@@ -29673,6 +29991,9 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29673
29991
|
};
|
|
29674
29992
|
context.containerRect = containerRect;
|
|
29675
29993
|
context.containerScroll = containerScroll;
|
|
29994
|
+
console.log('======================');
|
|
29995
|
+
console.log('targetPosition: >>', targetPosition);
|
|
29996
|
+
console.log('======================');
|
|
29676
29997
|
if (verticalPosition.includes(targetPosition)) {
|
|
29677
29998
|
var _targetPosition$split = targetPosition.split('-'),
|
|
29678
29999
|
_targetPosition$split2 = slicedToArray_default()(_targetPosition$split, 2),
|
|
@@ -29748,11 +30069,11 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29748
30069
|
_h = _targetPosition$split4[0],
|
|
29749
30070
|
_v = _targetPosition$split4[1];
|
|
29750
30071
|
if (_v === 'top') {
|
|
29751
|
-
style.top = rect.top - containerRect.top + containerScroll.top;
|
|
30072
|
+
style.top = rect.top - containerRect.top + containerScroll.top - (offset ? offset[1] : 0);
|
|
29752
30073
|
style.transform = '';
|
|
29753
30074
|
arrayStyle.top = "8px";
|
|
29754
30075
|
} else if (_v === 'bottom') {
|
|
29755
|
-
style.top = rect.bottom - containerRect.top + containerScroll.top;
|
|
30076
|
+
style.top = rect.bottom - containerRect.top + containerScroll.top + (offset ? offset[1] : 0);
|
|
29756
30077
|
arrayStyle.bottom = "8px";
|
|
29757
30078
|
style.transform = 'translateY(-100%)';
|
|
29758
30079
|
} else {
|
|
@@ -29827,17 +30148,19 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
29827
30148
|
newStyle: style
|
|
29828
30149
|
};
|
|
29829
30150
|
context.parentRect = parentElRef.current.getBoundingClientRect();
|
|
30151
|
+
var realPosition = position;
|
|
29830
30152
|
if (adjust) {
|
|
29831
30153
|
var popupInfo = getPopUpInfo(context.parentRect);
|
|
29832
30154
|
context.popUpHeight = popupInfo.height;
|
|
29833
30155
|
context.popUpWidth = popupInfo.width;
|
|
30156
|
+
realPosition = adjustPosition(position);
|
|
29834
30157
|
}
|
|
29835
|
-
var realPosition = adjust ? adjustPosition(position) : position;
|
|
29836
30158
|
if (!absolute) {
|
|
29837
30159
|
newStyle = getPositionStyle(realPosition, {
|
|
29838
30160
|
popupGap: popupGap,
|
|
29839
30161
|
zIndex: zIndex,
|
|
29840
|
-
fixedWidth: fixedWidth
|
|
30162
|
+
fixedWidth: fixedWidth,
|
|
30163
|
+
parentBorderWidth: parentElBorderWidth
|
|
29841
30164
|
});
|
|
29842
30165
|
} else {
|
|
29843
30166
|
var _ref3 = getAbsoluteStyle(realPosition),
|
|
@@ -30522,6 +30845,7 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
30522
30845
|
updateKey = props.updateKey,
|
|
30523
30846
|
popupGap = props.popupGap,
|
|
30524
30847
|
adjust = props.adjust,
|
|
30848
|
+
offset = props.offset,
|
|
30525
30849
|
_props$destroy = props.destroy,
|
|
30526
30850
|
destroy = _props$destroy === void 0 ? false : _props$destroy,
|
|
30527
30851
|
_props$lazy = props.lazy,
|
|
@@ -30563,7 +30887,8 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
30563
30887
|
popupElRef: popupElRef,
|
|
30564
30888
|
updateKey: updateKey,
|
|
30565
30889
|
popupGap: popupGap,
|
|
30566
|
-
adjust: adjust
|
|
30890
|
+
adjust: adjust,
|
|
30891
|
+
offset: offset
|
|
30567
30892
|
}),
|
|
30568
30893
|
style = _usePositionStyle.style,
|
|
30569
30894
|
arrayStyle = _usePositionStyle.arrayStyle;
|
|
@@ -30731,6 +31056,7 @@ var Popover = function Popover(props) {
|
|
|
30731
31056
|
zIndex: zIndex,
|
|
30732
31057
|
adjust: props.adjust,
|
|
30733
31058
|
lazy: props.lazy,
|
|
31059
|
+
offset: props.offset,
|
|
30734
31060
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
30735
31061
|
className: classnames_default()(className, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.rootClass, popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapper, open && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.wrapperOpen), !showArrow && (popoverStyle === null || popoverStyle === void 0 ? void 0 : popoverStyle.hideArrow)),
|
|
30736
31062
|
style: colorStyle
|
|
@@ -31432,6 +31758,7 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
31432
31758
|
if (d.url) _props.href = d.url;
|
|
31433
31759
|
item = /*#__PURE__*/(0,jsx_runtime.jsxs)("a", objectSpread2_default()(objectSpread2_default()({}, _props), {}, {
|
|
31434
31760
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.content,
|
|
31761
|
+
role: "button",
|
|
31435
31762
|
children: [d.icon, d.icon && d.title && /*#__PURE__*/(0,jsx_runtime.jsx)(jsx_runtime.Fragment, {
|
|
31436
31763
|
children: "\xA0"
|
|
31437
31764
|
}), d.title]
|
|
@@ -33923,7 +34250,7 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33923
34250
|
autoFix = props.autoFix,
|
|
33924
34251
|
coin = props.coin,
|
|
33925
34252
|
cancelBlurChange = props.cancelBlurChange;
|
|
33926
|
-
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(
|
|
34253
|
+
var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(coin),
|
|
33927
34254
|
_React$useState2 = slicedToArray_default()(_React$useState, 2),
|
|
33928
34255
|
showCoin = _React$useState2[0],
|
|
33929
34256
|
setShowCoin = _React$useState2[1];
|
|
@@ -33950,6 +34277,13 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
33950
34277
|
var noNeg = numType === 'non-negative' || numType === 'positive';
|
|
33951
34278
|
var regExp = new RegExp("^(".concat(noNeg ? '' : '-', ")?(\\d").concat(regLength(integerLimit), ")(").concat(digits !== 0 ? "\\.\\d".concat(regLength(digits)) : '', ")?.*$"), 'g');
|
|
33952
34279
|
value = value.replace(regExp, '$1$2$3');
|
|
34280
|
+
|
|
34281
|
+
// 修正小数位数
|
|
34282
|
+
var _value = v.split('.');
|
|
34283
|
+
var __value = value.split('.');
|
|
34284
|
+
if (_value[1] !== undefined && __value[1] === undefined && digits !== 0) {
|
|
34285
|
+
value = "".concat(value, ".").concat(_value[1]);
|
|
34286
|
+
}
|
|
33953
34287
|
}
|
|
33954
34288
|
onChange(value);
|
|
33955
34289
|
});
|
|
@@ -34007,14 +34341,15 @@ var useInputFormat = function useInputFormat(props) {
|
|
|
34007
34341
|
});
|
|
34008
34342
|
function getValue(str) {
|
|
34009
34343
|
if (type === 'number' && coin) {
|
|
34010
|
-
|
|
34011
|
-
|
|
34344
|
+
var _str = str;
|
|
34345
|
+
if (showCoin && _str) {
|
|
34346
|
+
return "".concat(_str).replace(/\d+/, function (n) {
|
|
34012
34347
|
return n.replace(/(\d)(?=(\d{3})+$)/g, function ($1) {
|
|
34013
34348
|
return "".concat($1, ",");
|
|
34014
34349
|
});
|
|
34015
34350
|
});
|
|
34016
34351
|
}
|
|
34017
|
-
return "".concat(
|
|
34352
|
+
return "".concat(_str === 0 ? _str : _str || '').replace(/,/g, '');
|
|
34018
34353
|
}
|
|
34019
34354
|
return str;
|
|
34020
34355
|
}
|
|
@@ -34332,6 +34667,9 @@ var getCompleteFieldKeys = function getCompleteFieldKeys(fields, allFields) {
|
|
|
34332
34667
|
var completeFields = [];
|
|
34333
34668
|
fieldsArray.forEach(function (field) {
|
|
34334
34669
|
var na = "".concat(field, "[");
|
|
34670
|
+
if (field.endsWith(']')) {
|
|
34671
|
+
na = field;
|
|
34672
|
+
}
|
|
34335
34673
|
var no = "".concat(field, ".");
|
|
34336
34674
|
completeFields.push(field);
|
|
34337
34675
|
var childFields = allFields.filter(function (f) {
|
|
@@ -34341,7 +34679,9 @@ var getCompleteFieldKeys = function getCompleteFieldKeys(fields, allFields) {
|
|
|
34341
34679
|
completeFields.push.apply(completeFields, toConsumableArray_default()(childFields));
|
|
34342
34680
|
}
|
|
34343
34681
|
});
|
|
34344
|
-
|
|
34682
|
+
|
|
34683
|
+
// 返回之前去重
|
|
34684
|
+
return Array.from(new Set(completeFields));
|
|
34345
34685
|
};
|
|
34346
34686
|
;// CONCATENATED MODULE: ../base/src/common/use-clear.ts
|
|
34347
34687
|
|
|
@@ -35046,7 +35386,7 @@ var CheckboxWithContext = function CheckboxWithContext(props) {
|
|
|
35046
35386
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(group_context.Consumer, {
|
|
35047
35387
|
children: function children(value) {
|
|
35048
35388
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(checkbox_Checkbox, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), value), {}, {
|
|
35049
|
-
onRawChange: props.onChange,
|
|
35389
|
+
onRawChange: value.onChange && props.onChange ? props.onChange : undefined,
|
|
35050
35390
|
checked: 'checked' in props ? props.checked : value.checked
|
|
35051
35391
|
}));
|
|
35052
35392
|
}
|
|
@@ -36894,6 +37234,196 @@ var useFilter = function useFilter(props) {
|
|
|
36894
37234
|
};
|
|
36895
37235
|
};
|
|
36896
37236
|
/* harmony default export */ var use_filter = (useFilter);
|
|
37237
|
+
;// CONCATENATED MODULE: ../hooks/src/components/use-table/use-table-tree.tsx
|
|
37238
|
+
|
|
37239
|
+
|
|
37240
|
+
|
|
37241
|
+
|
|
37242
|
+
|
|
37243
|
+
|
|
37244
|
+
|
|
37245
|
+
|
|
37246
|
+
var getExpandData = function getExpandData(_treeData, keys, keygen, treeColumnsName) {
|
|
37247
|
+
var expandKeys = keys;
|
|
37248
|
+
var expandSet = new Set(expandKeys);
|
|
37249
|
+
var unmatchExpandKeys = [];
|
|
37250
|
+
var treeExpandLevel = new Map();
|
|
37251
|
+
if (expandSet.size === 0 || !treeColumnsName) {
|
|
37252
|
+
return {
|
|
37253
|
+
treeData: _treeData,
|
|
37254
|
+
treeExpandLevel: treeExpandLevel,
|
|
37255
|
+
unmatchExpandKeys: unmatchExpandKeys
|
|
37256
|
+
};
|
|
37257
|
+
}
|
|
37258
|
+
var treeData = toConsumableArray_default()(_treeData || []);
|
|
37259
|
+
var _loop = function _loop() {
|
|
37260
|
+
if (expandSet.size === 0) return 1; // break
|
|
37261
|
+
var item = treeData[i];
|
|
37262
|
+
var key = getKey(keygen, item, i);
|
|
37263
|
+
var parentLevel = treeExpandLevel.get(key) || 0;
|
|
37264
|
+
var children = is_isObject(item) && item[treeColumnsName];
|
|
37265
|
+
if (expandSet.has(key)) {
|
|
37266
|
+
if (children && children.length > 0) {
|
|
37267
|
+
children.forEach(function (child) {
|
|
37268
|
+
treeExpandLevel.set(getKey(keygen, child), parentLevel + 1);
|
|
37269
|
+
});
|
|
37270
|
+
treeData.splice.apply(treeData, [i + 1, 0].concat(toConsumableArray_default()(children)));
|
|
37271
|
+
expandSet.delete(key);
|
|
37272
|
+
} else {
|
|
37273
|
+
unmatchExpandKeys.push(key);
|
|
37274
|
+
}
|
|
37275
|
+
}
|
|
37276
|
+
};
|
|
37277
|
+
for (var i = 0; i < treeData.length; i++) {
|
|
37278
|
+
if (_loop()) break;
|
|
37279
|
+
}
|
|
37280
|
+
return {
|
|
37281
|
+
treeData: treeData,
|
|
37282
|
+
treeExpandLevel: treeExpandLevel,
|
|
37283
|
+
unmatchExpandKeys: unmatchExpandKeys
|
|
37284
|
+
};
|
|
37285
|
+
};
|
|
37286
|
+
var getExpandVirtualData = function getExpandVirtualData(_treeData, keys, keygen, treeColumnsName) {
|
|
37287
|
+
var expandKeys = keys;
|
|
37288
|
+
var expandSet = new Set(expandKeys);
|
|
37289
|
+
var unmatchExpandKeys = [];
|
|
37290
|
+
var treeExpandLevel = new Map();
|
|
37291
|
+
if (expandSet.size === 0 || !treeColumnsName) {
|
|
37292
|
+
var _treeDataInfo = _treeData.map(function (item, index) {
|
|
37293
|
+
return {
|
|
37294
|
+
id: getKey(keygen, item, index),
|
|
37295
|
+
level: 1,
|
|
37296
|
+
data: item,
|
|
37297
|
+
pid: null
|
|
37298
|
+
};
|
|
37299
|
+
});
|
|
37300
|
+
return {
|
|
37301
|
+
treeData: _treeData,
|
|
37302
|
+
treeExpandLevel: treeExpandLevel,
|
|
37303
|
+
unmatchExpandKeys: unmatchExpandKeys,
|
|
37304
|
+
treeDataInfo: _treeDataInfo
|
|
37305
|
+
};
|
|
37306
|
+
}
|
|
37307
|
+
var treeData = toConsumableArray_default()(_treeData || []);
|
|
37308
|
+
var treeDataInfo = treeData.map(function (item) {
|
|
37309
|
+
return {
|
|
37310
|
+
id: getKey(keygen, item),
|
|
37311
|
+
level: 1,
|
|
37312
|
+
data: item,
|
|
37313
|
+
pid: null
|
|
37314
|
+
};
|
|
37315
|
+
});
|
|
37316
|
+
var _loop2 = function _loop2() {
|
|
37317
|
+
if (expandSet.size === 0) return 1; // break
|
|
37318
|
+
var item = treeData[i];
|
|
37319
|
+
var key = getKey(keygen, item, i);
|
|
37320
|
+
var parentLevel = treeExpandLevel.get(key) || 0;
|
|
37321
|
+
var children = is_isObject(item) && item[treeColumnsName];
|
|
37322
|
+
if (expandSet.has(key)) {
|
|
37323
|
+
if (children && children.length > 0) {
|
|
37324
|
+
var nodes = [];
|
|
37325
|
+
children.forEach(function (child) {
|
|
37326
|
+
var node = {
|
|
37327
|
+
id: getKey(keygen, child),
|
|
37328
|
+
level: parentLevel + 2,
|
|
37329
|
+
data: child,
|
|
37330
|
+
pid: key
|
|
37331
|
+
};
|
|
37332
|
+
nodes.push(node);
|
|
37333
|
+
treeExpandLevel.set(getKey(keygen, child), parentLevel + 1);
|
|
37334
|
+
});
|
|
37335
|
+
treeData.splice.apply(treeData, [i + 1, 0].concat(toConsumableArray_default()(children)));
|
|
37336
|
+
treeDataInfo.splice.apply(treeDataInfo, [i + 1, 0].concat(nodes));
|
|
37337
|
+
expandSet.delete(key);
|
|
37338
|
+
} else {
|
|
37339
|
+
unmatchExpandKeys.push(key);
|
|
37340
|
+
}
|
|
37341
|
+
}
|
|
37342
|
+
};
|
|
37343
|
+
for (var i = 0; i < treeData.length; i++) {
|
|
37344
|
+
if (_loop2()) break;
|
|
37345
|
+
}
|
|
37346
|
+
return {
|
|
37347
|
+
treeData: treeData,
|
|
37348
|
+
treeExpandLevel: treeExpandLevel,
|
|
37349
|
+
unmatchExpandKeys: unmatchExpandKeys,
|
|
37350
|
+
treeDataInfo: treeDataInfo
|
|
37351
|
+
};
|
|
37352
|
+
};
|
|
37353
|
+
var useTableTree = function useTableTree(props) {
|
|
37354
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultTreeExpandKeys || []),
|
|
37355
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
37356
|
+
expandKeysState = _useState2[0],
|
|
37357
|
+
setExpandKeysState = _useState2[1];
|
|
37358
|
+
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
37359
|
+
changedByExpand: false
|
|
37360
|
+
}),
|
|
37361
|
+
context = _useRef.current;
|
|
37362
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
37363
|
+
context.changedByExpand = false;
|
|
37364
|
+
}, [expandKeysState, props.treeExpandKeys]);
|
|
37365
|
+
var expandKeys = props.treeExpandKeys === undefined ? expandKeysState : props.treeExpandKeys;
|
|
37366
|
+
var handleTreeExpand = usePersistFn(function (data, index) {
|
|
37367
|
+
var key = getKey(props.keygen, data, index);
|
|
37368
|
+
var changeKeys = new Set(expandKeys);
|
|
37369
|
+
if (changeKeys.has(key)) {
|
|
37370
|
+
changeKeys.delete(key);
|
|
37371
|
+
} else {
|
|
37372
|
+
changeKeys.add(key);
|
|
37373
|
+
}
|
|
37374
|
+
if (props.treeExpandKeys === undefined) {
|
|
37375
|
+
setExpandKeysState(Array.from(changeKeys));
|
|
37376
|
+
} else if (props.onTreeExpand) {
|
|
37377
|
+
var _props$onTreeExpand;
|
|
37378
|
+
(_props$onTreeExpand = props.onTreeExpand) === null || _props$onTreeExpand === void 0 || _props$onTreeExpand.call(props, Array.from(changeKeys), data, changeKeys.has(key), index);
|
|
37379
|
+
}
|
|
37380
|
+
context.changedByExpand = true;
|
|
37381
|
+
});
|
|
37382
|
+
var isTreeExpanded = usePersistFn(function (data, index) {
|
|
37383
|
+
if (!props.treeColumnsName) return false;
|
|
37384
|
+
var key = getKey(props.keygen, data, index);
|
|
37385
|
+
return expandKeys.includes(key);
|
|
37386
|
+
});
|
|
37387
|
+
var func = useLatestObj({
|
|
37388
|
+
isTreeExpanded: isTreeExpanded,
|
|
37389
|
+
handleTreeExpand: handleTreeExpand
|
|
37390
|
+
});
|
|
37391
|
+
var _useMemo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
37392
|
+
return getExpandData(props.data, expandKeys, props.keygen, props.treeColumnsName);
|
|
37393
|
+
}, [props.data, expandKeys, props.treeColumnsName]),
|
|
37394
|
+
treeData = _useMemo.treeData,
|
|
37395
|
+
treeExpandLevel = _useMemo.treeExpandLevel,
|
|
37396
|
+
unmatchExpandKeys = _useMemo.unmatchExpandKeys;
|
|
37397
|
+
var isEmptyTree = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
37398
|
+
var _props$data$filter;
|
|
37399
|
+
return ((_props$data$filter = props.data.filter(function (item) {
|
|
37400
|
+
var _item;
|
|
37401
|
+
return (_item = item[props.treeColumnsName]) === null || _item === void 0 ? void 0 : _item.length;
|
|
37402
|
+
})) === null || _props$data$filter === void 0 ? void 0 : _props$data$filter.length) === 0;
|
|
37403
|
+
}, [props.data, props.treeColumnsName]);
|
|
37404
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
37405
|
+
if (!unmatchExpandKeys.length || !expandKeysState.length) {
|
|
37406
|
+
return;
|
|
37407
|
+
}
|
|
37408
|
+
|
|
37409
|
+
// 检查treeData中的每一项,对比expandKeysState,如果expandKeysState有但是children是空的,则需要修正expandKeysState
|
|
37410
|
+
var newExpandKeys = expandKeysState.filter(function (key) {
|
|
37411
|
+
return !unmatchExpandKeys.includes(key);
|
|
37412
|
+
});
|
|
37413
|
+
if (shallowEqual(newExpandKeys, expandKeysState)) {
|
|
37414
|
+
return;
|
|
37415
|
+
}
|
|
37416
|
+
setExpandKeysState(newExpandKeys);
|
|
37417
|
+
}, [unmatchExpandKeys, expandKeysState]);
|
|
37418
|
+
return {
|
|
37419
|
+
data: treeData,
|
|
37420
|
+
treeExpandLevel: treeExpandLevel,
|
|
37421
|
+
changedByExpand: context.changedByExpand,
|
|
37422
|
+
isEmptyTree: isEmptyTree,
|
|
37423
|
+
func: func
|
|
37424
|
+
};
|
|
37425
|
+
};
|
|
37426
|
+
/* harmony default export */ var use_table_tree = (useTableTree);
|
|
36897
37427
|
;// CONCATENATED MODULE: ../hooks/src/components/use-tree/use-tree.ts
|
|
36898
37428
|
|
|
36899
37429
|
|
|
@@ -36903,12 +37433,13 @@ var useFilter = function useFilter(props) {
|
|
|
36903
37433
|
|
|
36904
37434
|
|
|
36905
37435
|
|
|
37436
|
+
|
|
37437
|
+
|
|
36906
37438
|
function use_tree_toArray(value) {
|
|
36907
37439
|
if (!value) return [];
|
|
36908
37440
|
if (!Array.isArray(value)) return [value];
|
|
36909
37441
|
return value;
|
|
36910
37442
|
}
|
|
36911
|
-
var global_tree_map = new Map();
|
|
36912
37443
|
var MODE = {
|
|
36913
37444
|
/**
|
|
36914
37445
|
* 返回全选数据,包含父节点和子节点
|
|
@@ -36941,6 +37472,7 @@ var useTree = function useTree(props) {
|
|
|
36941
37472
|
childrenKey = _props$childrenKey === void 0 ? 'children' : _props$childrenKey,
|
|
36942
37473
|
keygen = props.keygen,
|
|
36943
37474
|
mode = props.mode,
|
|
37475
|
+
virtual = props.virtual,
|
|
36944
37476
|
activeProp = props.active,
|
|
36945
37477
|
expandedProp = props.expanded,
|
|
36946
37478
|
_props$dataUpdate = props.dataUpdate,
|
|
@@ -36948,14 +37480,19 @@ var useTree = function useTree(props) {
|
|
|
36948
37480
|
_props$defaultExpande = props.defaultExpanded,
|
|
36949
37481
|
defaultExpanded = _props$defaultExpande === void 0 ? [] : _props$defaultExpande,
|
|
36950
37482
|
defaultExpandAll = props.defaultExpandAll,
|
|
36951
|
-
disabledProps = props.disabled,
|
|
36952
37483
|
unmatch = props.unmatch,
|
|
36953
37484
|
isControlled = props.isControlled,
|
|
36954
37485
|
onExpandProp = props.onExpand;
|
|
37486
|
+
var disabledProps = isOptionalDisabled(props.disabled) ? props.disabled.disabled : props.disabled;
|
|
37487
|
+
var isRealtime = isOptionalDisabled(props.disabled) ? props.disabled.isRealtime : false;
|
|
36955
37488
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
36956
37489
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
36957
37490
|
inited = _useState2[0],
|
|
36958
37491
|
setInited = _useState2[1];
|
|
37492
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
37493
|
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
37494
|
+
dataFlat = _useState4[0],
|
|
37495
|
+
setDataFlat = _useState4[1];
|
|
36959
37496
|
var _useInputAble = useInputAble({
|
|
36960
37497
|
value: expandedProp,
|
|
36961
37498
|
defaultValue: defaultExpanded,
|
|
@@ -36968,6 +37505,8 @@ var useTree = function useTree(props) {
|
|
|
36968
37505
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
36969
37506
|
pathMap: new Map(),
|
|
36970
37507
|
dataMap: new Map(),
|
|
37508
|
+
dataFlatStatusMap: new Map(),
|
|
37509
|
+
dataFlat: [],
|
|
36971
37510
|
forceUpdateMap: new Map(),
|
|
36972
37511
|
valueMap: new Map(),
|
|
36973
37512
|
updateMap: new Map(),
|
|
@@ -36999,11 +37538,27 @@ var useTree = function useTree(props) {
|
|
|
36999
37538
|
expanded: shouldDefaultExpand
|
|
37000
37539
|
};
|
|
37001
37540
|
}
|
|
37541
|
+
if (virtual) {
|
|
37542
|
+
return {
|
|
37543
|
+
active: isActive,
|
|
37544
|
+
expanded: context.dataFlatStatusMap.get(id).expanded
|
|
37545
|
+
};
|
|
37546
|
+
}
|
|
37002
37547
|
return {
|
|
37003
37548
|
active: isActive,
|
|
37004
37549
|
expanded: !!(expandeds && expandeds.indexOf(id) >= 0)
|
|
37005
37550
|
};
|
|
37006
37551
|
};
|
|
37552
|
+
|
|
37553
|
+
// 注册节点
|
|
37554
|
+
var bindVirtualNode = function bindVirtualNode(id, update) {
|
|
37555
|
+
context.updateMap.set(id, update);
|
|
37556
|
+
var isActive = activeProp === id;
|
|
37557
|
+
return {
|
|
37558
|
+
active: isActive,
|
|
37559
|
+
expanded: context.dataFlatStatusMap.get(id).expanded
|
|
37560
|
+
};
|
|
37561
|
+
};
|
|
37007
37562
|
var get = function get(id) {
|
|
37008
37563
|
return context.valueMap.get(id);
|
|
37009
37564
|
};
|
|
@@ -37016,7 +37571,6 @@ var useTree = function useTree(props) {
|
|
|
37016
37571
|
if (keygen && (isString(keygen) || isNumber(keygen))) {
|
|
37017
37572
|
return item[keygen];
|
|
37018
37573
|
}
|
|
37019
|
-
|
|
37020
37574
|
// 降级处理
|
|
37021
37575
|
return id + (id ? ',' : '') + index;
|
|
37022
37576
|
};
|
|
@@ -37114,6 +37668,8 @@ var useTree = function useTree(props) {
|
|
|
37114
37668
|
};
|
|
37115
37669
|
var initData = function initData(data, path, disabled) {
|
|
37116
37670
|
var index = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : [];
|
|
37671
|
+
var level = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
|
|
37672
|
+
var pid = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : null;
|
|
37117
37673
|
var ids = [];
|
|
37118
37674
|
for (var i = 0; i < data.length; i++) {
|
|
37119
37675
|
var item = data[i];
|
|
@@ -37125,6 +37681,28 @@ var useTree = function useTree(props) {
|
|
|
37125
37681
|
}
|
|
37126
37682
|
// 制作 data mapping
|
|
37127
37683
|
context.dataMap.set(id, item);
|
|
37684
|
+
if (virtual) {
|
|
37685
|
+
context.dataFlatStatusMap.set(id, {
|
|
37686
|
+
active: false,
|
|
37687
|
+
expanded: defaultExpandAll ? true : (expanded === null || expanded === void 0 ? void 0 : expanded.includes(id)) || false,
|
|
37688
|
+
fetching: false
|
|
37689
|
+
});
|
|
37690
|
+
var node = {
|
|
37691
|
+
id: id,
|
|
37692
|
+
level: level,
|
|
37693
|
+
data: item,
|
|
37694
|
+
pid: pid
|
|
37695
|
+
};
|
|
37696
|
+
if (defaultExpandAll) {
|
|
37697
|
+
context.dataFlat.push(node);
|
|
37698
|
+
} else {
|
|
37699
|
+
if (level === 1) {
|
|
37700
|
+
context.dataFlat.push(node);
|
|
37701
|
+
} else if (expanded && pid !== null && expanded.indexOf(pid) >= 0) {
|
|
37702
|
+
context.dataFlat.push(node);
|
|
37703
|
+
}
|
|
37704
|
+
}
|
|
37705
|
+
}
|
|
37128
37706
|
var _isDisabled = !!disabled;
|
|
37129
37707
|
if (_isDisabled === false) {
|
|
37130
37708
|
_isDisabled = getDisabled()(item);
|
|
@@ -37133,7 +37711,7 @@ var useTree = function useTree(props) {
|
|
|
37133
37711
|
ids.push(id);
|
|
37134
37712
|
var children = [];
|
|
37135
37713
|
if (Array.isArray(item[childrenKey])) {
|
|
37136
|
-
var _children = initData(item[childrenKey], [].concat(toConsumableArray_default()(path), [id]), mode === MODE.MODE_4 ? disabled : _isDisabled, indexPath);
|
|
37714
|
+
var _children = initData(item[childrenKey], [].concat(toConsumableArray_default()(path), [id]), mode === MODE.MODE_4 ? disabled : _isDisabled, indexPath, level + 1, id);
|
|
37137
37715
|
if (_children) children = _children;
|
|
37138
37716
|
}
|
|
37139
37717
|
context.pathMap.set(id, {
|
|
@@ -37211,7 +37789,15 @@ var useTree = function useTree(props) {
|
|
|
37211
37789
|
var isDisabled = function isDisabled(id) {
|
|
37212
37790
|
if (isFunc(disabledProps)) {
|
|
37213
37791
|
var node = context.pathMap.get(id);
|
|
37214
|
-
if (node)
|
|
37792
|
+
if (node) {
|
|
37793
|
+
if (isRealtime) {
|
|
37794
|
+
var item = context.dataMap.get(id);
|
|
37795
|
+
if (!item) return false;
|
|
37796
|
+
return getDisabled()(item);
|
|
37797
|
+
} else {
|
|
37798
|
+
return node.isDisabled;
|
|
37799
|
+
}
|
|
37800
|
+
}
|
|
37215
37801
|
return false;
|
|
37216
37802
|
}
|
|
37217
37803
|
return !!disabledProps;
|
|
@@ -37241,11 +37827,20 @@ var useTree = function useTree(props) {
|
|
|
37241
37827
|
context.cachedValue = [];
|
|
37242
37828
|
context.pathMap = new Map();
|
|
37243
37829
|
context.dataMap = new Map();
|
|
37830
|
+
context.dataFlat = [];
|
|
37831
|
+
context.dataFlatStatusMap = new Map();
|
|
37244
37832
|
context.valueMap = new Map();
|
|
37245
37833
|
context.unmatchedValueMap = new Map();
|
|
37246
37834
|
context.data = use_tree_toArray(data);
|
|
37835
|
+
if (virtual) {
|
|
37836
|
+
context.dataFlat = [];
|
|
37837
|
+
setDataFlat([]);
|
|
37838
|
+
}
|
|
37247
37839
|
if (!data) return;
|
|
37248
37840
|
initData(context.data, []);
|
|
37841
|
+
if (virtual) {
|
|
37842
|
+
setDataFlat(context.dataFlat);
|
|
37843
|
+
}
|
|
37249
37844
|
initValue();
|
|
37250
37845
|
setValue(prevValue);
|
|
37251
37846
|
|
|
@@ -37291,6 +37886,101 @@ var useTree = function useTree(props) {
|
|
|
37291
37886
|
}
|
|
37292
37887
|
return current;
|
|
37293
37888
|
};
|
|
37889
|
+
var appendChildrenExpanded = function appendChildrenExpanded(child, level, pid, insertData) {
|
|
37890
|
+
if (!child) return;
|
|
37891
|
+
child.forEach(function (item, i) {
|
|
37892
|
+
var _context$dataFlatStat;
|
|
37893
|
+
var childId = getKey(item, pid, i);
|
|
37894
|
+
var node = {
|
|
37895
|
+
id: childId,
|
|
37896
|
+
level: level,
|
|
37897
|
+
data: item,
|
|
37898
|
+
pid: pid
|
|
37899
|
+
};
|
|
37900
|
+
insertData.push(node);
|
|
37901
|
+
if ((_context$dataFlatStat = context.dataFlatStatusMap.get(childId)) !== null && _context$dataFlatStat !== void 0 && _context$dataFlatStat.expanded && item[childrenKey]) {
|
|
37902
|
+
appendChildrenExpanded(item[childrenKey], level + 1, childId, insertData);
|
|
37903
|
+
}
|
|
37904
|
+
});
|
|
37905
|
+
};
|
|
37906
|
+
var insertFlat = function insertFlat(id) {
|
|
37907
|
+
var item = getDataById(id);
|
|
37908
|
+
if (isUnMatchedData(item)) return;
|
|
37909
|
+
if (!item) return;
|
|
37910
|
+
var status = context.dataFlatStatusMap.get(id);
|
|
37911
|
+
if (!status) return;
|
|
37912
|
+
var childrenData = item[childrenKey];
|
|
37913
|
+
var insertStartNode = dataFlat.find(function (item) {
|
|
37914
|
+
return item.id === id;
|
|
37915
|
+
});
|
|
37916
|
+
context.dataFlatStatusMap.set(id, objectSpread2_default()(objectSpread2_default()({}, status), {}, {
|
|
37917
|
+
expanded: true,
|
|
37918
|
+
fetching: false
|
|
37919
|
+
}));
|
|
37920
|
+
if (!insertStartNode) return;
|
|
37921
|
+
var insertData = [];
|
|
37922
|
+
appendChildrenExpanded(childrenData, insertStartNode.level + 1, id, insertData);
|
|
37923
|
+
var insertIndex = dataFlat.indexOf(insertStartNode);
|
|
37924
|
+
var nextDataFlat = utils_immer_produce(dataFlat, function (draft) {
|
|
37925
|
+
draft.splice.apply(draft, [insertIndex + 1, 0].concat(toConsumableArray_default()(insertData)));
|
|
37926
|
+
});
|
|
37927
|
+
setDataFlat(nextDataFlat);
|
|
37928
|
+
};
|
|
37929
|
+
var removeFlat = function removeFlat(id) {
|
|
37930
|
+
var item = getDataById(id);
|
|
37931
|
+
if (isUnMatchedData(item)) return;
|
|
37932
|
+
if (!item) return;
|
|
37933
|
+
var removeNode = dataFlat.find(function (item) {
|
|
37934
|
+
return item.id === id;
|
|
37935
|
+
});
|
|
37936
|
+
if (!removeNode) return;
|
|
37937
|
+
var status = context.dataFlatStatusMap.get(id);
|
|
37938
|
+
if (!status) return;
|
|
37939
|
+
context.dataFlatStatusMap.set(id, objectSpread2_default()(objectSpread2_default()({}, status), {}, {
|
|
37940
|
+
fetching: false,
|
|
37941
|
+
expanded: false
|
|
37942
|
+
}));
|
|
37943
|
+
var removeStartIndex = dataFlat.indexOf(removeNode);
|
|
37944
|
+
var removeEndIndex = 0;
|
|
37945
|
+
for (var i = removeStartIndex + 1; i < dataFlat.length; i++) {
|
|
37946
|
+
if (dataFlat[i].level <= removeNode.level) {
|
|
37947
|
+
removeEndIndex = i;
|
|
37948
|
+
break;
|
|
37949
|
+
}
|
|
37950
|
+
if (i === dataFlat.length - 1) {
|
|
37951
|
+
removeEndIndex = i + 1;
|
|
37952
|
+
break;
|
|
37953
|
+
}
|
|
37954
|
+
}
|
|
37955
|
+
var nextDataFlat = utils_immer_produce(dataFlat, function (draft) {
|
|
37956
|
+
draft.splice(removeStartIndex + 1, removeEndIndex - removeStartIndex - 1);
|
|
37957
|
+
});
|
|
37958
|
+
setDataFlat(nextDataFlat);
|
|
37959
|
+
};
|
|
37960
|
+
var expandedFlat = function expandedFlat(expanded) {
|
|
37961
|
+
if (!context.data) return;
|
|
37962
|
+
context.dataFlatStatusMap.forEach(function (status, id) {
|
|
37963
|
+
context.dataFlatStatusMap.set(id, objectSpread2_default()(objectSpread2_default()({}, status), {}, {
|
|
37964
|
+
expanded: false
|
|
37965
|
+
}));
|
|
37966
|
+
});
|
|
37967
|
+
expanded.forEach(function (id) {
|
|
37968
|
+
var status = context.dataFlatStatusMap.get(id);
|
|
37969
|
+
if (!status) return;
|
|
37970
|
+
context.dataFlatStatusMap.set(id, objectSpread2_default()(objectSpread2_default()({}, status), {}, {
|
|
37971
|
+
expanded: true
|
|
37972
|
+
}));
|
|
37973
|
+
});
|
|
37974
|
+
var _getExpandVirtualData = getExpandVirtualData(context.data, expanded, getKey, childrenKey),
|
|
37975
|
+
treeDataInfo = _getExpandVirtualData.treeDataInfo;
|
|
37976
|
+
if (!treeDataInfo) {
|
|
37977
|
+
return;
|
|
37978
|
+
}
|
|
37979
|
+
setDataFlat(treeDataInfo);
|
|
37980
|
+
};
|
|
37981
|
+
var getFlatData = function getFlatData() {
|
|
37982
|
+
return context.dataFlat;
|
|
37983
|
+
};
|
|
37294
37984
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
37295
37985
|
if (defaultExpandAll) {
|
|
37296
37986
|
var nextExpanded = [];
|
|
@@ -37301,7 +37991,7 @@ var useTree = function useTree(props) {
|
|
|
37301
37991
|
});
|
|
37302
37992
|
onExpand(nextExpanded);
|
|
37303
37993
|
}
|
|
37304
|
-
}, []);
|
|
37994
|
+
}, [context.dataMap]);
|
|
37305
37995
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
37306
37996
|
if (props.datum) return;
|
|
37307
37997
|
if (!dataUpdate) return;
|
|
@@ -37317,25 +38007,32 @@ var useTree = function useTree(props) {
|
|
|
37317
38007
|
var datum = use_latest_obj({
|
|
37318
38008
|
get: get,
|
|
37319
38009
|
set: set,
|
|
38010
|
+
insertFlat: insertFlat,
|
|
38011
|
+
removeFlat: removeFlat,
|
|
38012
|
+
expandedFlat: expandedFlat,
|
|
37320
38013
|
getPath: getPath,
|
|
37321
38014
|
getValue: getValue,
|
|
37322
38015
|
getChecked: getChecked,
|
|
37323
38016
|
getKey: getKey,
|
|
38017
|
+
getFlatData: getFlatData,
|
|
37324
38018
|
getDataByValues: getDataByValues,
|
|
37325
38019
|
setValue: setValue,
|
|
37326
38020
|
setData: setData,
|
|
37327
38021
|
isDisabled: isDisabled,
|
|
37328
38022
|
bindNode: bindNode,
|
|
38023
|
+
bindVirtualNode: bindVirtualNode,
|
|
37329
38024
|
getDataById: getDataById,
|
|
37330
38025
|
bindUpdate: bindUpdate,
|
|
37331
38026
|
unBindUpdate: unBindUpdate,
|
|
37332
38027
|
isUnMatched: isUnMatched,
|
|
37333
38028
|
childrenKey: childrenKey,
|
|
37334
38029
|
data: data,
|
|
38030
|
+
dataFlat: dataFlat,
|
|
37335
38031
|
pathMap: context.pathMap,
|
|
37336
38032
|
dataMap: context.dataMap,
|
|
37337
38033
|
valueMap: context.valueMap,
|
|
37338
|
-
updateMap: context.updateMap
|
|
38034
|
+
updateMap: context.updateMap,
|
|
38035
|
+
dataFlatStatusMap: context.dataFlatStatusMap
|
|
37339
38036
|
});
|
|
37340
38037
|
return {
|
|
37341
38038
|
inited: inited,
|
|
@@ -37592,6 +38289,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
37592
38289
|
className = props.className,
|
|
37593
38290
|
lineHeight = props.lineHeight,
|
|
37594
38291
|
height = props.height,
|
|
38292
|
+
keepScrollHeight = props.keepScrollHeight,
|
|
37595
38293
|
renderItem = props.renderItem,
|
|
37596
38294
|
customRenderItem = props.customRenderItem,
|
|
37597
38295
|
_props$tag = props.tag,
|
|
@@ -37599,6 +38297,8 @@ var VirtualList = function VirtualList(props) {
|
|
|
37599
38297
|
tagClassName = props.tagClassName,
|
|
37600
38298
|
dynamicVirtual = props.dynamicVirtual,
|
|
37601
38299
|
virtualRef = props.virtualRef,
|
|
38300
|
+
scrollerStyle = props.scrollerStyle,
|
|
38301
|
+
paddingY = props.paddingY,
|
|
37602
38302
|
onControlTypeChange = props.onControlTypeChange;
|
|
37603
38303
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
37604
38304
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -37708,6 +38408,12 @@ var VirtualList = function VirtualList(props) {
|
|
|
37708
38408
|
var handleMouseMove = function handleMouseMove() {
|
|
37709
38409
|
onControlTypeChange === null || onControlTypeChange === void 0 || onControlTypeChange('mouse');
|
|
37710
38410
|
};
|
|
38411
|
+
|
|
38412
|
+
// 设置了容器的paddingY, translateY时需要加上,否则会出现底部滚不到底的问题
|
|
38413
|
+
var addonScrollHeight = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
38414
|
+
// paddingY是奇数则加1
|
|
38415
|
+
return paddingY ? paddingY * 2 + (paddingY % 2 === 1 ? 1 : 0) : 0;
|
|
38416
|
+
}, [paddingY]);
|
|
37711
38417
|
var handleScroll = function handleScroll(info) {
|
|
37712
38418
|
var _props$onScroll;
|
|
37713
38419
|
var height = info.height,
|
|
@@ -37716,7 +38422,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
37716
38422
|
var scrollTop = info.scrollTop;
|
|
37717
38423
|
context.shouldUpdateHeight = !fromDrag;
|
|
37718
38424
|
var sumHeight = getContentHeight(props.data.length - 1);
|
|
37719
|
-
var max = sumHeight - height;
|
|
38425
|
+
var max = sumHeight - height + addonScrollHeight;
|
|
37720
38426
|
if (scrollTop > max) {
|
|
37721
38427
|
scrollTop = max;
|
|
37722
38428
|
}
|
|
@@ -37738,12 +38444,18 @@ var VirtualList = function VirtualList(props) {
|
|
|
37738
38444
|
var shouldScroll = getContentHeight(data.length - 1) > height;
|
|
37739
38445
|
var nextStyle = objectSpread2_default()({}, style);
|
|
37740
38446
|
if (shouldScroll) nextStyle.height = height;
|
|
37741
|
-
var scrollHeight = getContentHeight(data.length - 1);
|
|
38447
|
+
var scrollHeight = getContentHeight(data.length - 1) + addonScrollHeight;
|
|
38448
|
+
var innerStyle = {
|
|
38449
|
+
transform: "translate3d(0, -".concat(top, "px, 0)"),
|
|
38450
|
+
paddingTop: paddingY,
|
|
38451
|
+
paddingBottom: paddingY
|
|
38452
|
+
};
|
|
37742
38453
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
|
|
37743
38454
|
className: className,
|
|
37744
38455
|
style: nextStyle,
|
|
37745
38456
|
height: height,
|
|
37746
38457
|
scrollWidth: 0,
|
|
38458
|
+
scrollerStyle: scrollerStyle,
|
|
37747
38459
|
scrollHeight: scrollHeight,
|
|
37748
38460
|
childrenStyle: {
|
|
37749
38461
|
width: '100%'
|
|
@@ -37753,9 +38465,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
37753
38465
|
onMouseMove: handleMouseMove,
|
|
37754
38466
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
|
|
37755
38467
|
className: tagClassName,
|
|
37756
|
-
style:
|
|
37757
|
-
transform: "translate3d(0, -".concat(top, "px, 0)")
|
|
37758
|
-
},
|
|
38468
|
+
style: innerStyle,
|
|
37759
38469
|
children: items.map(function (d, i) {
|
|
37760
38470
|
if (d[groupKey]) {
|
|
37761
38471
|
return /*#__PURE__*/(0,jsx_runtime.jsx)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
|
|
@@ -37775,6 +38485,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
37775
38485
|
}, [startIndex]);
|
|
37776
38486
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
37777
38487
|
// 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
|
|
38488
|
+
if (keepScrollHeight) return;
|
|
37778
38489
|
setTop(0);
|
|
37779
38490
|
setStartIndex(0);
|
|
37780
38491
|
return function () {
|
|
@@ -37878,6 +38589,7 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
37878
38589
|
handleChange(null, !checked);
|
|
37879
38590
|
};
|
|
37880
38591
|
var isHoverAble = expandTrigger === 'hover' || expandTrigger === 'hover-only';
|
|
38592
|
+
var isRealLeafNode = !hasChildren && !uncertainChildren;
|
|
37881
38593
|
var getEvents = function getEvents() {
|
|
37882
38594
|
var events = {};
|
|
37883
38595
|
if (expandTrigger !== 'hover-only' || !hasChildren) {
|
|
@@ -37886,6 +38598,9 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
37886
38598
|
if (isHoverAble) {
|
|
37887
38599
|
events.onMouseEnter = handlePathChange;
|
|
37888
38600
|
if (multiple) events.onClick = handleSelect;
|
|
38601
|
+
} else if (isRealLeafNode && multiple) {
|
|
38602
|
+
// 非hover模式下: 末级节点支持整个节点区域点击选中checkbox
|
|
38603
|
+
events.onClick = handleSelect;
|
|
37889
38604
|
}
|
|
37890
38605
|
return events;
|
|
37891
38606
|
};
|
|
@@ -37918,11 +38633,13 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
37918
38633
|
}
|
|
37919
38634
|
return null;
|
|
37920
38635
|
};
|
|
38636
|
+
var events = getEvents();
|
|
37921
38637
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
37922
38638
|
className: rootClass
|
|
37923
|
-
},
|
|
38639
|
+
}, events), {}, {
|
|
37924
38640
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
37925
38641
|
className: classnames_default()(styles.optionInner),
|
|
38642
|
+
role: "button",
|
|
37926
38643
|
children: [multiple && !(shouldFinal && hasChildren) && /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox
|
|
37927
38644
|
// @ts-ignore
|
|
37928
38645
|
, {
|
|
@@ -37931,7 +38648,7 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
37931
38648
|
className: styles.optionCheckbox,
|
|
37932
38649
|
checked: datum.getChecked(id),
|
|
37933
38650
|
disabled: isDisabled,
|
|
37934
|
-
onChange:
|
|
38651
|
+
onChange: events.onClick === handleSelect ? undefined : handleChange
|
|
37935
38652
|
}), renderContent(), renderIcon()]
|
|
37936
38653
|
})
|
|
37937
38654
|
}));
|
|
@@ -38033,12 +38750,13 @@ var CascaderList = function CascaderList(props) {
|
|
|
38033
38750
|
renderItem: renderItem,
|
|
38034
38751
|
rowsInView: 20,
|
|
38035
38752
|
height: height,
|
|
38036
|
-
lineHeight: lineHeight
|
|
38753
|
+
lineHeight: lineHeight,
|
|
38754
|
+
paddingY: 3
|
|
38037
38755
|
});
|
|
38038
38756
|
};
|
|
38039
38757
|
if (!data || data.length === 0) return renderEmpety();
|
|
38040
38758
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
38041
|
-
className: classnames_default()(styles.list),
|
|
38759
|
+
className: classnames_default()(styles.list, !virtual && styles.listSimple),
|
|
38042
38760
|
children: virtual ? renderVritualList() : renderSimpleList()
|
|
38043
38761
|
});
|
|
38044
38762
|
};
|
|
@@ -38046,12 +38764,15 @@ var CascaderList = function CascaderList(props) {
|
|
|
38046
38764
|
;// CONCATENATED MODULE: ../base/src/cascader/filter-node.tsx
|
|
38047
38765
|
|
|
38048
38766
|
|
|
38767
|
+
|
|
38049
38768
|
var FilterNode = function FilterNode(props) {
|
|
38050
38769
|
var _jssStyle$cascader;
|
|
38051
38770
|
var jssStyle = props.jssStyle,
|
|
38052
38771
|
data = props.data,
|
|
38053
38772
|
shouldFinal = props.shouldFinal,
|
|
38054
38773
|
datum = props.datum,
|
|
38774
|
+
mode = props.mode,
|
|
38775
|
+
isRealtime = props.isRealtime,
|
|
38055
38776
|
renderItem = props.renderItem,
|
|
38056
38777
|
setInputText = props.setInputText,
|
|
38057
38778
|
setFilterText = props.setFilterText,
|
|
@@ -38065,6 +38786,16 @@ var FilterNode = function FilterNode(props) {
|
|
|
38065
38786
|
var item = data[index];
|
|
38066
38787
|
var isDisabled = datum.isDisabled(datum.getKey(item));
|
|
38067
38788
|
if (isDisabled) return;
|
|
38789
|
+
if (isRealtime) {
|
|
38790
|
+
if (mode !== MODE.MODE_4) {
|
|
38791
|
+
var _datum$getPath;
|
|
38792
|
+
var path = (_datum$getPath = datum.getPath(datum.getKey(item))) === null || _datum$getPath === void 0 ? void 0 : _datum$getPath.path;
|
|
38793
|
+
var hasDisabledParent = path === null || path === void 0 ? void 0 : path.some(function (p) {
|
|
38794
|
+
return datum.isDisabled(p);
|
|
38795
|
+
});
|
|
38796
|
+
if (hasDisabledParent) return;
|
|
38797
|
+
}
|
|
38798
|
+
}
|
|
38068
38799
|
var keys = data.slice(0, index + 1).map(function (i) {
|
|
38069
38800
|
return datum.getKey(i);
|
|
38070
38801
|
});
|
|
@@ -38086,9 +38817,18 @@ var FilterNode = function FilterNode(props) {
|
|
|
38086
38817
|
handleSelectItem(index, item, e);
|
|
38087
38818
|
};
|
|
38088
38819
|
var isDisabled = datum.isDisabled(datum.getKey(item));
|
|
38820
|
+
if (isRealtime) {
|
|
38821
|
+
if (mode !== MODE.MODE_4) {
|
|
38822
|
+
var _datum$getPath2;
|
|
38823
|
+
var path = (_datum$getPath2 = datum.getPath(datum.getKey(item))) === null || _datum$getPath2 === void 0 ? void 0 : _datum$getPath2.path;
|
|
38824
|
+
isDisabled = (path === null || path === void 0 ? void 0 : path.some(function (p) {
|
|
38825
|
+
return datum.isDisabled(p);
|
|
38826
|
+
})) || isDisabled;
|
|
38827
|
+
}
|
|
38828
|
+
}
|
|
38089
38829
|
var content = /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
38090
38830
|
onClick: handleClick,
|
|
38091
|
-
className: classnames_default()(isDisabled && styles.filterDisabledOption),
|
|
38831
|
+
className: classnames_default()(styles.filterOptionItem, isDisabled && styles.filterDisabledOption),
|
|
38092
38832
|
children: renderItem(item)
|
|
38093
38833
|
}, 'content');
|
|
38094
38834
|
if (index === 0) return content;
|
|
@@ -38121,6 +38861,7 @@ var FilterList = function FilterList(props) {
|
|
|
38121
38861
|
virtual = props.virtual,
|
|
38122
38862
|
height = props.height,
|
|
38123
38863
|
size = props.size,
|
|
38864
|
+
isRealtime = props.isRealtime,
|
|
38124
38865
|
shouldFinal = props.shouldFinal,
|
|
38125
38866
|
filterFunc = props.filterFunc,
|
|
38126
38867
|
renderItemProp = props.renderItem,
|
|
@@ -38196,6 +38937,7 @@ var FilterList = function FilterList(props) {
|
|
|
38196
38937
|
return list.map(function (item) {
|
|
38197
38938
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(filter_node, {
|
|
38198
38939
|
jssStyle: jssStyle,
|
|
38940
|
+
isRealtime: isRealtime,
|
|
38199
38941
|
data: item,
|
|
38200
38942
|
datum: datum,
|
|
38201
38943
|
shouldFinal: shouldFinal,
|
|
@@ -39372,7 +40114,8 @@ var result_Result = function Result(props) {
|
|
|
39372
40114
|
|
|
39373
40115
|
|
|
39374
40116
|
|
|
39375
|
-
var cascader_devUseWarning = devUseWarning
|
|
40117
|
+
var cascader_devUseWarning = devUseWarning,
|
|
40118
|
+
cascader_isOptionalDisabled = isOptionalDisabled;
|
|
39376
40119
|
var Cascader = function Cascader(props0) {
|
|
39377
40120
|
var _jssStyle$cascader;
|
|
39378
40121
|
var props = use_with_form_config(props0);
|
|
@@ -39405,7 +40148,7 @@ var Cascader = function Cascader(props0) {
|
|
|
39405
40148
|
mode = props.mode,
|
|
39406
40149
|
innerTitle = props.innerTitle,
|
|
39407
40150
|
multiple = props.multiple,
|
|
39408
|
-
|
|
40151
|
+
disabledProp = props.disabled,
|
|
39409
40152
|
clearable = props.clearable,
|
|
39410
40153
|
underline = props.underline,
|
|
39411
40154
|
loading = props.loading,
|
|
@@ -39446,6 +40189,8 @@ var Cascader = function Cascader(props0) {
|
|
|
39446
40189
|
virtual = props.virtual,
|
|
39447
40190
|
filterSameChange = props.filterSameChange;
|
|
39448
40191
|
var showInput = isFunc(onFilterProp);
|
|
40192
|
+
var isRealtime = cascader_isOptionalDisabled(props.disabled) ? props.disabled.isRealtime : false;
|
|
40193
|
+
var disabled = isOptionalDisabled(disabledProp) ? disabledProp.disabled : disabledProp;
|
|
39449
40194
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$cascader = jssStyle.cascader) === null || _jssStyle$cascader === void 0 ? void 0 : _jssStyle$cascader.call(jssStyle);
|
|
39450
40195
|
var rootStyle = Object.assign({
|
|
39451
40196
|
width: width
|
|
@@ -39492,7 +40237,7 @@ var Cascader = function Cascader(props0) {
|
|
|
39492
40237
|
control: 'value' in props,
|
|
39493
40238
|
keygen: keygen,
|
|
39494
40239
|
unmatch: unmatch,
|
|
39495
|
-
disabled:
|
|
40240
|
+
disabled: disabledProp,
|
|
39496
40241
|
mode: mode,
|
|
39497
40242
|
defaultValue: defaultValue,
|
|
39498
40243
|
childrenKey: childrenKey,
|
|
@@ -39726,9 +40471,9 @@ var Cascader = function Cascader(props0) {
|
|
|
39726
40471
|
return renderClearable();
|
|
39727
40472
|
}
|
|
39728
40473
|
if (!mode !== undefined && !showArrow) return null;
|
|
39729
|
-
var defaultIcon = compressed ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
|
|
40474
|
+
var defaultIcon = compressed || multiple ? icons_config.cascader.More : icons_config.cascader.DropdownArrow;
|
|
39730
40475
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
39731
|
-
className: classnames_default()(compressed && styles.compressedIcon, styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
|
|
40476
|
+
className: classnames_default()((compressed || multiple) && styles.compressedIcon, styles.arrowIcon, open && !compressed && styles.arrowIconOpen),
|
|
39732
40477
|
onClick: handleResultClick,
|
|
39733
40478
|
children: defaultIcon
|
|
39734
40479
|
});
|
|
@@ -39882,8 +40627,10 @@ var Cascader = function Cascader(props0) {
|
|
|
39882
40627
|
data: filterData,
|
|
39883
40628
|
datum: datum,
|
|
39884
40629
|
keygen: keygen,
|
|
40630
|
+
mode: mode,
|
|
39885
40631
|
height: height,
|
|
39886
40632
|
size: size,
|
|
40633
|
+
isRealtime: isRealtime,
|
|
39887
40634
|
virtual: virtual,
|
|
39888
40635
|
wideMatch: wideMatch,
|
|
39889
40636
|
filterFunc: filterFunc,
|
|
@@ -39942,7 +40689,7 @@ var Cascader = function Cascader(props0) {
|
|
|
39942
40689
|
if (filterText !== undefined) {
|
|
39943
40690
|
updatePath();
|
|
39944
40691
|
}
|
|
39945
|
-
}, [filterText]);
|
|
40692
|
+
}, [filterText, firstMatchNode]);
|
|
39946
40693
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
39947
40694
|
updatePathByValue();
|
|
39948
40695
|
|
|
@@ -39998,7 +40745,7 @@ var Cascader = function Cascader(props0) {
|
|
|
39998
40745
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
|
|
39999
40746
|
onRef: popupRef,
|
|
40000
40747
|
show: open,
|
|
40001
|
-
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper),
|
|
40748
|
+
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.pickerWrapper, open && (styles === null || styles === void 0 ? void 0 : styles.pickerWrapperShow)),
|
|
40002
40749
|
display: 'block',
|
|
40003
40750
|
type: "scale-y",
|
|
40004
40751
|
duration: 'fast',
|
|
@@ -40516,6 +41263,7 @@ function useFormControl(props) {
|
|
|
40516
41263
|
var formValue = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
40517
41264
|
var errors = arguments.length > 1 ? arguments[1] : undefined;
|
|
40518
41265
|
var severErrors = arguments.length > 2 ? arguments[2] : undefined;
|
|
41266
|
+
var names = arguments.length > 3 ? arguments[3] : undefined;
|
|
40519
41267
|
if (!name) return;
|
|
40520
41268
|
if (isArray(name)) {
|
|
40521
41269
|
var _value = getValue(name, formValue);
|
|
@@ -40527,7 +41275,7 @@ function useFormControl(props) {
|
|
|
40527
41275
|
var dv = isArray(defaultValue) ? defaultValue : [];
|
|
40528
41276
|
var nextValue = [];
|
|
40529
41277
|
name.forEach(function (n, index) {
|
|
40530
|
-
if (_value[index] === undefined && dv[index] !== undefined) {
|
|
41278
|
+
if (!names.has(n) && _value[index] === undefined && dv[index] !== undefined) {
|
|
40531
41279
|
nextValue[index] = dv[index];
|
|
40532
41280
|
} else {
|
|
40533
41281
|
nextValue[index] = _value[index];
|
|
@@ -40541,7 +41289,7 @@ function useFormControl(props) {
|
|
|
40541
41289
|
setErrorState(_error2);
|
|
40542
41290
|
}
|
|
40543
41291
|
if (!shallowEqual(_value2, latestInfo.valueState)) {
|
|
40544
|
-
if (_value2 === undefined && defaultValue !== undefined) {
|
|
41292
|
+
if (!names.has(name) && _value2 === undefined && defaultValue !== undefined) {
|
|
40545
41293
|
setValueState(defaultValue);
|
|
40546
41294
|
} else {
|
|
40547
41295
|
setValueState(_value2);
|
|
@@ -41314,7 +42062,9 @@ var Collapse = function Collapse(props) {
|
|
|
41314
42062
|
extraPosition = _props$extraPosition === void 0 ? 'right' : _props$extraPosition,
|
|
41315
42063
|
expandIcon = props.expandIcon,
|
|
41316
42064
|
_props$border = props.border,
|
|
41317
|
-
border = _props$border === void 0 ? true : _props$border
|
|
42065
|
+
border = _props$border === void 0 ? true : _props$border,
|
|
42066
|
+
_props$animation = props.animation,
|
|
42067
|
+
animation = _props$animation === void 0 ? true : _props$animation;
|
|
41318
42068
|
var _useCollapse = use_collapse({
|
|
41319
42069
|
defaultActive: defaultActive,
|
|
41320
42070
|
active: activeProps,
|
|
@@ -41330,6 +42080,7 @@ var Collapse = function Collapse(props) {
|
|
|
41330
42080
|
expandIconPosition: expandIconPosition,
|
|
41331
42081
|
extraPosition: extraPosition,
|
|
41332
42082
|
border: border,
|
|
42083
|
+
animation: animation,
|
|
41333
42084
|
expandIcon: expandIcon !== undefined ? expandIcon : expandIconPosition === 'right' ?
|
|
41334
42085
|
// ? Icons.ArrowLeft
|
|
41335
42086
|
icons_config.collapse.collapseArrow : icons_config.collapse.collapseArrow,
|
|
@@ -41432,6 +42183,7 @@ var useCollapseItem = function useCollapseItem(props) {
|
|
|
41432
42183
|
|
|
41433
42184
|
|
|
41434
42185
|
|
|
42186
|
+
|
|
41435
42187
|
var CollapseItem = function CollapseItem(props) {
|
|
41436
42188
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(collapse_group_context),
|
|
41437
42189
|
active = _useContext.active,
|
|
@@ -41440,7 +42192,8 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
41440
42192
|
onChange = _useContext.onChange,
|
|
41441
42193
|
expandIconPosition = _useContext.expandIconPosition,
|
|
41442
42194
|
extraPosition = _useContext.extraPosition,
|
|
41443
|
-
border = _useContext.border
|
|
42195
|
+
border = _useContext.border,
|
|
42196
|
+
animationProp = _useContext.animation;
|
|
41444
42197
|
var children = props.children,
|
|
41445
42198
|
keygen = props.keygen,
|
|
41446
42199
|
className = props.className,
|
|
@@ -41453,6 +42206,10 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
41453
42206
|
title = props.title,
|
|
41454
42207
|
extra = props.extra,
|
|
41455
42208
|
contentStyle = props.contentStyle;
|
|
42209
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
42210
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
42211
|
+
animation = _useState2[0],
|
|
42212
|
+
setAnimation = _useState2[1];
|
|
41456
42213
|
var config = useConfig();
|
|
41457
42214
|
var _useCollapseItem = use_collapse_item({
|
|
41458
42215
|
active: active,
|
|
@@ -41494,6 +42251,7 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
41494
42251
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(animation_list, {
|
|
41495
42252
|
show: judgeExpanded,
|
|
41496
42253
|
type: 'collapse',
|
|
42254
|
+
animation: animation,
|
|
41497
42255
|
duration: "fast",
|
|
41498
42256
|
className: collapseItemContentClassName,
|
|
41499
42257
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -41503,6 +42261,11 @@ var CollapseItem = function CollapseItem(props) {
|
|
|
41503
42261
|
})
|
|
41504
42262
|
});
|
|
41505
42263
|
};
|
|
42264
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
42265
|
+
if (animationProp) {
|
|
42266
|
+
setAnimation(true);
|
|
42267
|
+
}
|
|
42268
|
+
}, []);
|
|
41506
42269
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
41507
42270
|
className: collapseItemClassName,
|
|
41508
42271
|
style: style,
|
|
@@ -43829,14 +44592,12 @@ var Day = function Day(props) {
|
|
|
43829
44592
|
paddingLeft: showNeedConfirm ? 6 : undefined
|
|
43830
44593
|
},
|
|
43831
44594
|
children: [props.showSelNow && props.type === 'date' && /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_link_link, {
|
|
43832
|
-
size: "small",
|
|
43833
44595
|
type: "primary",
|
|
43834
44596
|
jssStyle: jssStyle,
|
|
43835
44597
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
43836
44598
|
onClick: selNow,
|
|
43837
44599
|
children: getLocale(locale, 'now')
|
|
43838
44600
|
}), props.showSelNow && props.type === 'datetime' && /*#__PURE__*/(0,jsx_runtime.jsx)(base_src_link_link, {
|
|
43839
|
-
size: "small",
|
|
43840
44601
|
type: "primary",
|
|
43841
44602
|
jssStyle: jssStyle,
|
|
43842
44603
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerFooterBtn,
|
|
@@ -43880,7 +44641,7 @@ var Day = function Day(props) {
|
|
|
43880
44641
|
props.setMode('year');
|
|
43881
44642
|
},
|
|
43882
44643
|
children: currentYear
|
|
43883
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("
|
|
44644
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("strong", {
|
|
43884
44645
|
children: "-"
|
|
43885
44646
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
43886
44647
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerHeaderInfo,
|
|
@@ -45328,7 +46089,6 @@ var DatePicker = function DatePicker(props0) {
|
|
|
45328
46089
|
var canFocus = !(props.inputable || disabledStatus === 'all');
|
|
45329
46090
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
45330
46091
|
className: classnames_default()(styles === null || styles === void 0 ? void 0 : styles.resultWrapper, styles === null || styles === void 0 ? void 0 : styles.wrapperPaddingBox, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleTop, styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitleBottom),
|
|
45331
|
-
ref: targetRef,
|
|
45332
46092
|
tabIndex: canFocus ? 1 : undefined,
|
|
45333
46093
|
onClick: handleResultClick,
|
|
45334
46094
|
onFocus: canFocus ? handleFocus : undefined,
|
|
@@ -45363,6 +46123,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
45363
46123
|
}, []);
|
|
45364
46124
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute(defineProperty_default()(defineProperty_default()({}, 'input-border', 'true'), "type", type))), {}, {
|
|
45365
46125
|
className: classnames_default()(props.className, styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.wrapper, props.innerTitle && (styles === null || styles === void 0 ? void 0 : styles.wrapperInnerTitle), size === 'small' && (styles === null || styles === void 0 ? void 0 : styles.wrapperSmall), size === 'large' && (styles === null || styles === void 0 ? void 0 : styles.wrapperLarge), focused && disabled !== true && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), disabledStatus === 'all' && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), range && (styles === null || styles === void 0 ? void 0 : styles.wrapperRange), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!props.underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline)),
|
|
46126
|
+
ref: targetRef,
|
|
45366
46127
|
style: objectSpread2_default()({
|
|
45367
46128
|
width: props.width
|
|
45368
46129
|
}, props.style),
|
|
@@ -45627,6 +46388,7 @@ var Descriptions = function Descriptions(props) {
|
|
|
45627
46388
|
renderItem = _useDescriptions.renderItem;
|
|
45628
46389
|
var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
|
|
45629
46390
|
var Header = function Header() {
|
|
46391
|
+
if (!title && !extra) return null;
|
|
45630
46392
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
45631
46393
|
className: jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.header,
|
|
45632
46394
|
children: [title && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -46748,6 +47510,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
46748
47510
|
className: classnames_default()(dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.list, hasChildren && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listHasChildren), columns !== undefined && columns > 1 && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.boxList), size === 'small' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listSmall), size === 'large' && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.listLarge)),
|
|
46749
47511
|
style: {
|
|
46750
47512
|
width: width,
|
|
47513
|
+
minWidth: 90,
|
|
46751
47514
|
gridTemplateColumns: columns ? "repeat(".concat(columns, ", 1fr)") : undefined
|
|
46752
47515
|
},
|
|
46753
47516
|
type: 'fade',
|
|
@@ -46897,7 +47660,7 @@ var useTextarea = function useTextarea(props) {
|
|
|
46897
47660
|
|
|
46898
47661
|
|
|
46899
47662
|
|
|
46900
|
-
var simple_textarea_excluded = ["jssStyle", "className", "style", "status", "size", "prefix", "suffix", "underline", "border", "resize", "onEnterPress", "getStatus", "renderTextarea"];
|
|
47663
|
+
var simple_textarea_excluded = ["jssStyle", "className", "style", "status", "size", "prefix", "suffix", "underline", "autosize", "border", "resize", "onEnterPress", "getStatus", "renderTextarea"];
|
|
46901
47664
|
|
|
46902
47665
|
|
|
46903
47666
|
|
|
@@ -46914,6 +47677,7 @@ var Textarea = function Textarea(props) {
|
|
|
46914
47677
|
prefix = props.prefix,
|
|
46915
47678
|
suffix = props.suffix,
|
|
46916
47679
|
underline = props.underline,
|
|
47680
|
+
autosize = props.autosize,
|
|
46917
47681
|
_props$border = props.border,
|
|
46918
47682
|
border = _props$border === void 0 ? true : _props$border,
|
|
46919
47683
|
_props$resize = props.resize,
|
|
@@ -46942,7 +47706,7 @@ var Textarea = function Textarea(props) {
|
|
|
46942
47706
|
keyHandler(e);
|
|
46943
47707
|
});
|
|
46944
47708
|
var textareaProps = getTextAreaProps({
|
|
46945
|
-
className: classnames_default()(textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperPaddingBox, textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperInnerTitleBottom, textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.textarea, !!resize && (textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.resize)),
|
|
47709
|
+
className: classnames_default()(textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperPaddingBox, textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.wrapperInnerTitleBottom, textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.textarea, (!!resize || autosize) && (textareaClasses === null || textareaClasses === void 0 ? void 0 : textareaClasses.resize)),
|
|
46946
47710
|
onKeyUp: onKeyUp
|
|
46947
47711
|
});
|
|
46948
47712
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -47197,7 +47961,8 @@ var textarea_Textarea = function Textarea(props0) {
|
|
|
47197
47961
|
popover: resetProps.popover || (typeof_default()(info) === 'object' ? info.position : 'bottom-right'),
|
|
47198
47962
|
popoverProps: Object.assign({
|
|
47199
47963
|
style: {
|
|
47200
|
-
width: 'auto'
|
|
47964
|
+
width: 'auto',
|
|
47965
|
+
fontSize: 12
|
|
47201
47966
|
}
|
|
47202
47967
|
}, resetProps.popoverProps),
|
|
47203
47968
|
error: infoState !== null && infoState !== void 0 && infoState.error && (infoState === null || infoState === void 0 ? void 0 : infoState.error) instanceof Error ? infoState === null || infoState === void 0 || (_infoState$error = infoState.error) === null || _infoState$error === void 0 ? void 0 : _infoState$error.message : undefined,
|
|
@@ -47236,7 +48001,8 @@ var textarea_Textarea = function Textarea(props0) {
|
|
|
47236
48001
|
suffix: mergeSuffix,
|
|
47237
48002
|
style: mergeStyle,
|
|
47238
48003
|
getStatus: onStatusChange,
|
|
47239
|
-
rootRef: rootRef
|
|
48004
|
+
rootRef: rootRef,
|
|
48005
|
+
autosize: props.autosize
|
|
47240
48006
|
}));
|
|
47241
48007
|
};
|
|
47242
48008
|
/* harmony default export */ var base_src_textarea_textarea = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().memo(textarea_Textarea));
|
|
@@ -47848,7 +48614,7 @@ var useForm = function useForm(props) {
|
|
|
47848
48614
|
Object.keys(context.updateMap).forEach(function (key) {
|
|
47849
48615
|
var _context$updateMap$ke;
|
|
47850
48616
|
(_context$updateMap$ke = context.updateMap[key]) === null || _context$updateMap$ke === void 0 || _context$updateMap$ke.forEach(function (update) {
|
|
47851
|
-
update(context.value, context.errors, context.serverErrors);
|
|
48617
|
+
update(context.value, context.errors, context.serverErrors, context.names);
|
|
47852
48618
|
});
|
|
47853
48619
|
});
|
|
47854
48620
|
Object.keys(context.flowMap).forEach(function (key) {
|
|
@@ -47866,12 +48632,12 @@ var useForm = function useForm(props) {
|
|
|
47866
48632
|
var _context$updateMap$pa;
|
|
47867
48633
|
var parentKey = key.split('.')[0];
|
|
47868
48634
|
(_context$updateMap$pa = context.updateMap[parentKey]) === null || _context$updateMap$pa === void 0 || _context$updateMap$pa.forEach(function (update) {
|
|
47869
|
-
update(context.value, context.errors, context.serverErrors);
|
|
48635
|
+
update(context.value, context.errors, context.serverErrors, context.names);
|
|
47870
48636
|
});
|
|
47871
48637
|
} else {
|
|
47872
48638
|
var _context$updateMap$ke2;
|
|
47873
48639
|
(_context$updateMap$ke2 = context.updateMap[key]) === null || _context$updateMap$ke2 === void 0 || _context$updateMap$ke2.forEach(function (update) {
|
|
47874
|
-
update(context.value, context.errors, context.serverErrors);
|
|
48640
|
+
update(context.value, context.errors, context.serverErrors, context.names);
|
|
47875
48641
|
});
|
|
47876
48642
|
}
|
|
47877
48643
|
(_context$flowMap$key = context.flowMap[key]) === null || _context$flowMap$key === void 0 || _context$flowMap$key.forEach(function (update) {
|
|
@@ -47932,7 +48698,7 @@ var useForm = function useForm(props) {
|
|
|
47932
48698
|
return new Promise(function (resolve, reject) {
|
|
47933
48699
|
var finalFields = Object.keys(context.validateMap);
|
|
47934
48700
|
if (fields) {
|
|
47935
|
-
if (config.ignoreChildren) {
|
|
48701
|
+
if (config.ignoreChildren || config.ignoreBind) {
|
|
47936
48702
|
// 旧行为:仅校验当前字段
|
|
47937
48703
|
finalFields = (isArray(fields) ? fields : [fields]).filter(function (key) {
|
|
47938
48704
|
return context.validateMap[key];
|
|
@@ -47951,6 +48717,7 @@ var useForm = function useForm(props) {
|
|
|
47951
48717
|
}
|
|
47952
48718
|
var validates = finalFields.map(function (key) {
|
|
47953
48719
|
var validateField = context.validateMap[key];
|
|
48720
|
+
if (!validateField) return [];
|
|
47954
48721
|
return Array.from(validateField).map(function (validate) {
|
|
47955
48722
|
return validate(key, deepGet(context.value, key), context.value, config);
|
|
47956
48723
|
});
|
|
@@ -49125,7 +49892,9 @@ var form_button_Submit = function Submit(props) {
|
|
|
49125
49892
|
}));
|
|
49126
49893
|
};
|
|
49127
49894
|
var Reset = function Reset(props) {
|
|
49128
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(form_button, objectSpread2_default()(objectSpread2_default()({
|
|
49895
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(form_button, objectSpread2_default()(objectSpread2_default()({
|
|
49896
|
+
mode: "outline"
|
|
49897
|
+
}, props), {}, {
|
|
49129
49898
|
htmlType: "reset",
|
|
49130
49899
|
jssStyle: form_button_jssStyle
|
|
49131
49900
|
}));
|
|
@@ -49970,12 +50739,14 @@ var useImageMagnify = function useImageMagnify(props) {
|
|
|
49970
50739
|
;// CONCATENATED MODULE: ../base/src/image/image-magnify.tsx
|
|
49971
50740
|
|
|
49972
50741
|
|
|
49973
|
-
var image_magnify_excluded = ["
|
|
50742
|
+
var image_magnify_excluded = ["jssStyle"];
|
|
50743
|
+
|
|
49974
50744
|
|
|
49975
50745
|
|
|
49976
50746
|
|
|
49977
50747
|
var ImageMagnify = function ImageMagnify(props) {
|
|
49978
|
-
var
|
|
50748
|
+
var _jssStyle$image;
|
|
50749
|
+
var jssStyle = props.jssStyle,
|
|
49979
50750
|
rest = objectWithoutProperties_default()(props, image_magnify_excluded);
|
|
49980
50751
|
var _useImageMagnify = use_image_magnify(rest),
|
|
49981
50752
|
loading = _useImageMagnify.loading,
|
|
@@ -49985,6 +50756,7 @@ var ImageMagnify = function ImageMagnify(props) {
|
|
|
49985
50756
|
maxHeight = _useImageMagnify.maxHeight,
|
|
49986
50757
|
getRootProps = _useImageMagnify.getRootProps;
|
|
49987
50758
|
var rootProps = getRootProps();
|
|
50759
|
+
var galleryStyle = jssStyle === null || jssStyle === void 0 || (_jssStyle$image = jssStyle.image) === null || _jssStyle$image === void 0 ? void 0 : _jssStyle$image.call(jssStyle);
|
|
49988
50760
|
var renderLoading = function renderLoading() {
|
|
49989
50761
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {});
|
|
49990
50762
|
};
|
|
@@ -49998,7 +50770,7 @@ var ImageMagnify = function ImageMagnify(props) {
|
|
|
49998
50770
|
maxHeight: status === 1 ? undefined : maxHeight
|
|
49999
50771
|
};
|
|
50000
50772
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
50001
|
-
className:
|
|
50773
|
+
className: classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnify, status === 1 && (galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnifyZoomOut)),
|
|
50002
50774
|
style: rootStyle
|
|
50003
50775
|
}, rootProps), {}, {
|
|
50004
50776
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("img", {
|
|
@@ -50040,7 +50812,6 @@ var ImageModal = function ImageModal(props) {
|
|
|
50040
50812
|
getCloseIconProps = _useImageGallery.getCloseIconProps;
|
|
50041
50813
|
var galleryStyle = (jssStyle === null || jssStyle === void 0 || (_jssStyle$image = jssStyle.image) === null || _jssStyle$image === void 0 ? void 0 : _jssStyle$image.call(jssStyle)) || {};
|
|
50042
50814
|
var overlayClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.overlay);
|
|
50043
|
-
var magnifyClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.magnify);
|
|
50044
50815
|
var closeClass = classnames_default()(galleryStyle === null || galleryStyle === void 0 ? void 0 : galleryStyle.close);
|
|
50045
50816
|
var closeIconProps = getCloseIconProps();
|
|
50046
50817
|
var renderColseIcon = function renderColseIcon() {
|
|
@@ -50058,7 +50829,7 @@ var ImageModal = function ImageModal(props) {
|
|
|
50058
50829
|
className: classnames_default()(galleryClass)
|
|
50059
50830
|
});
|
|
50060
50831
|
var magnifyProps = getMaginfyProps(position, {
|
|
50061
|
-
|
|
50832
|
+
jssStyle: jssStyle,
|
|
50062
50833
|
src: image.src
|
|
50063
50834
|
});
|
|
50064
50835
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, galleryProps), {}, {
|
|
@@ -51666,7 +52437,8 @@ var list_List = function List(props) {
|
|
|
51666
52437
|
rowsInView: itemsInView,
|
|
51667
52438
|
renderItem: renderItem,
|
|
51668
52439
|
customRenderItem: renderGroupTitle,
|
|
51669
|
-
onControlTypeChange: onControlTypeChange
|
|
52440
|
+
onControlTypeChange: onControlTypeChange,
|
|
52441
|
+
paddingY: 3
|
|
51670
52442
|
});
|
|
51671
52443
|
};
|
|
51672
52444
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
@@ -51711,7 +52483,8 @@ var TreeCheckbox = function TreeCheckbox(props) {
|
|
|
51711
52483
|
className = props.className,
|
|
51712
52484
|
id = props.id,
|
|
51713
52485
|
onChange = props.onChange,
|
|
51714
|
-
disabled = props.disabled
|
|
52486
|
+
disabled = props.disabled,
|
|
52487
|
+
onClick = props.onClick;
|
|
51715
52488
|
var _useTreeContext = useTreeContext(),
|
|
51716
52489
|
getValue = _useTreeContext.getValue,
|
|
51717
52490
|
set = _useTreeContext.set,
|
|
@@ -51723,6 +52496,9 @@ var TreeCheckbox = function TreeCheckbox(props) {
|
|
|
51723
52496
|
onChange(getValue(), id);
|
|
51724
52497
|
}
|
|
51725
52498
|
};
|
|
52499
|
+
var handleClick = function handleClick(e) {
|
|
52500
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
52501
|
+
};
|
|
51726
52502
|
var checked = getChecked(id);
|
|
51727
52503
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
51728
52504
|
return function () {
|
|
@@ -51737,7 +52513,8 @@ var TreeCheckbox = function TreeCheckbox(props) {
|
|
|
51737
52513
|
jssStyle: jssStyle,
|
|
51738
52514
|
checked: checked,
|
|
51739
52515
|
disabled: disabled,
|
|
51740
|
-
onChange: handleChange
|
|
52516
|
+
onChange: handleChange,
|
|
52517
|
+
onClick: handleClick
|
|
51741
52518
|
});
|
|
51742
52519
|
};
|
|
51743
52520
|
/* harmony default export */ var tree_checkbox = (TreeCheckbox);
|
|
@@ -51959,11 +52736,7 @@ var useTreeNode = function useTreeNode(props) {
|
|
|
51959
52736
|
break;
|
|
51960
52737
|
}
|
|
51961
52738
|
});
|
|
51962
|
-
var handleToggle = function handleToggle() {
|
|
51963
|
-
// const newExpand = !expanded;
|
|
51964
|
-
// setExpanded(newExpand);
|
|
51965
|
-
// if (onToggle) onToggle(id, newExpand);
|
|
51966
|
-
};
|
|
52739
|
+
var handleToggle = function handleToggle() {};
|
|
51967
52740
|
var isLeaf = function isLeaf() {
|
|
51968
52741
|
var children = data[childrenKey];
|
|
51969
52742
|
if (children && children.length > 0) return false;
|
|
@@ -51991,7 +52764,7 @@ var useTreeNode = function useTreeNode(props) {
|
|
|
51991
52764
|
};
|
|
51992
52765
|
};
|
|
51993
52766
|
/* harmony default export */ var use_tree_node = (useTreeNode);
|
|
51994
|
-
;// CONCATENATED MODULE: ../base/src/tree/tree-node.tsx
|
|
52767
|
+
;// CONCATENATED MODULE: ../base/src/tree/tree-simple-node.tsx
|
|
51995
52768
|
|
|
51996
52769
|
|
|
51997
52770
|
|
|
@@ -52211,7 +52984,7 @@ var Node = function Node(props) {
|
|
|
52211
52984
|
onDragStart: onDragStart,
|
|
52212
52985
|
onDragEnd: onDragEnd,
|
|
52213
52986
|
bindNode: bindNode,
|
|
52214
|
-
childrenClassName: childrenClass(data),
|
|
52987
|
+
childrenClassName: isFunc(childrenClass) ? childrenClass === null || childrenClass === void 0 ? void 0 : childrenClass(data) : childrenClass,
|
|
52215
52988
|
childrenKey: childrenKey,
|
|
52216
52989
|
childrenClass: childrenClass,
|
|
52217
52990
|
dragSibling: dragSibling,
|
|
@@ -52269,7 +53042,411 @@ var Node = function Node(props) {
|
|
|
52269
53042
|
}), hasChildren && /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(List, getChildrenListProps())]
|
|
52270
53043
|
}));
|
|
52271
53044
|
};
|
|
52272
|
-
/* harmony default export */ var
|
|
53045
|
+
/* harmony default export */ var tree_simple_node = (Node);
|
|
53046
|
+
;// CONCATENATED MODULE: ../base/src/tree/tree-virtual-content.tsx
|
|
53047
|
+
|
|
53048
|
+
|
|
53049
|
+
|
|
53050
|
+
|
|
53051
|
+
|
|
53052
|
+
|
|
53053
|
+
|
|
53054
|
+
|
|
53055
|
+
|
|
53056
|
+
|
|
53057
|
+
|
|
53058
|
+
|
|
53059
|
+
var NodeVirtualContent = function NodeVirtualContent(props) {
|
|
53060
|
+
var jssStyle = props.jssStyle,
|
|
53061
|
+
id = props.id,
|
|
53062
|
+
level = props.level,
|
|
53063
|
+
active = props.active,
|
|
53064
|
+
data = props.data,
|
|
53065
|
+
line = props.line,
|
|
53066
|
+
iconClass = props.iconClass,
|
|
53067
|
+
contentClassProp = props.contentClass,
|
|
53068
|
+
expandIcons = props.expandIcons,
|
|
53069
|
+
renderItem = props.renderItem,
|
|
53070
|
+
expanded = props.expanded,
|
|
53071
|
+
fetching = props.fetching,
|
|
53072
|
+
inlineNode = props.inlineNode,
|
|
53073
|
+
childrenKey = props.childrenKey,
|
|
53074
|
+
parentClickExpand = props.parentClickExpand,
|
|
53075
|
+
doubleClickExpand = props.doubleClickExpand,
|
|
53076
|
+
bindContent = props.bindContent,
|
|
53077
|
+
highlight = props.highlight,
|
|
53078
|
+
setFetching = props.setFetching,
|
|
53079
|
+
loader = props.loader,
|
|
53080
|
+
onChange = props.onChange,
|
|
53081
|
+
onToggle = props.onToggle,
|
|
53082
|
+
onNodeClick = props.onNodeClick;
|
|
53083
|
+
var forceUpdate = useRender();
|
|
53084
|
+
var _useTreeContext = useTreeContext(),
|
|
53085
|
+
isDisabled = _useTreeContext.isDisabled,
|
|
53086
|
+
bindUpdate = _useTreeContext.bindUpdate;
|
|
53087
|
+
var clickLock = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
53088
|
+
var config = useConfig();
|
|
53089
|
+
var disabled = isDisabled(id);
|
|
53090
|
+
bindUpdate(id, forceUpdate);
|
|
53091
|
+
var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
53092
|
+
var rootClass = classnames_default()(contentStyle.contentWrapper, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, contentStyle.childnode, data[childrenKey] && data[childrenKey].length > 0), contentStyle.inlineContent, inlineNode), contentStyle.contentDisabled, disabled));
|
|
53093
|
+
var contentClass = classnames_default()(contentStyle.content, isString(contentClassProp) && contentClassProp, isFunc(contentClassProp) && contentClassProp(data));
|
|
53094
|
+
// const textClass = classNames(contentStyle.text, disabled ? contentStyle.textDisabled : '');
|
|
53095
|
+
var textClass = classnames_default()(contentStyle.text);
|
|
53096
|
+
var hasExpandIcons = expandIcons !== undefined;
|
|
53097
|
+
var children = data[childrenKey];
|
|
53098
|
+
var hasChildren = children && children.length > 0;
|
|
53099
|
+
var contentDataProps = function contentDataProps() {
|
|
53100
|
+
var dataProps = {};
|
|
53101
|
+
if (highlight) {
|
|
53102
|
+
dataProps['data-active'] = active;
|
|
53103
|
+
}
|
|
53104
|
+
// if (disabled) {
|
|
53105
|
+
// dataProps['data-disabled'] = disabled;
|
|
53106
|
+
// }
|
|
53107
|
+
return dataProps;
|
|
53108
|
+
};
|
|
53109
|
+
var handleIndicatorClick = function handleIndicatorClick() {
|
|
53110
|
+
onToggle === null || onToggle === void 0 || onToggle(id);
|
|
53111
|
+
if (data[childrenKey] !== undefined) return;
|
|
53112
|
+
if (loader) {
|
|
53113
|
+
setFetching(true);
|
|
53114
|
+
var result = loader(id, data);
|
|
53115
|
+
if (isPromise(result)) {
|
|
53116
|
+
result.then(function () {
|
|
53117
|
+
setFetching(false);
|
|
53118
|
+
});
|
|
53119
|
+
}
|
|
53120
|
+
}
|
|
53121
|
+
};
|
|
53122
|
+
var handleNodeClick = function handleNodeClick() {
|
|
53123
|
+
if (parentClickExpand && hasChildren) {
|
|
53124
|
+
if (clickLock.current) {
|
|
53125
|
+
clickLock.current = false;
|
|
53126
|
+
return;
|
|
53127
|
+
}
|
|
53128
|
+
handleIndicatorClick();
|
|
53129
|
+
} else {
|
|
53130
|
+
onNodeClick(data, id);
|
|
53131
|
+
}
|
|
53132
|
+
};
|
|
53133
|
+
var handleClick = function handleClick() {
|
|
53134
|
+
clickLock.current = true;
|
|
53135
|
+
};
|
|
53136
|
+
var handleNodeExpand = function handleNodeExpand() {
|
|
53137
|
+
if (!doubleClickExpand) return;
|
|
53138
|
+
if (hasChildren) handleIndicatorClick();
|
|
53139
|
+
};
|
|
53140
|
+
var renderLoading = function renderLoading() {
|
|
53141
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
53142
|
+
style: {
|
|
53143
|
+
left: (level - 1) * 24
|
|
53144
|
+
},
|
|
53145
|
+
className: contentStyle.iconWrapper,
|
|
53146
|
+
"data-expanded": expanded,
|
|
53147
|
+
"data-icon": hasExpandIcons,
|
|
53148
|
+
dir: config.direction,
|
|
53149
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
|
|
53150
|
+
size: 12,
|
|
53151
|
+
jssStyle: jssStyle,
|
|
53152
|
+
ignoreConfig: true,
|
|
53153
|
+
name: "ring"
|
|
53154
|
+
})
|
|
53155
|
+
});
|
|
53156
|
+
};
|
|
53157
|
+
var renderIndicator = function renderIndicator() {
|
|
53158
|
+
var children = data[childrenKey];
|
|
53159
|
+
var icon = expandIcons ? expandIcons[expanded ? 1 : 0] : expanded ? icons_config.tree.LineExpand : icons_config.tree.LineCollapse;
|
|
53160
|
+
var indicator;
|
|
53161
|
+
if (line) {
|
|
53162
|
+
indicator = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
53163
|
+
className: contentStyle.iconWrapper,
|
|
53164
|
+
"data-expanded": expanded,
|
|
53165
|
+
"data-icon": hasExpandIcons,
|
|
53166
|
+
dir: config.direction,
|
|
53167
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
53168
|
+
className: classnames_default()(contentStyle.icon, iconClass),
|
|
53169
|
+
onClick: handleIndicatorClick,
|
|
53170
|
+
dir: config.direction,
|
|
53171
|
+
children: isFunc(icon) ? icon(data) : icon
|
|
53172
|
+
})
|
|
53173
|
+
});
|
|
53174
|
+
} else {
|
|
53175
|
+
indicator = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
53176
|
+
style: {
|
|
53177
|
+
left: (level - 1) * 24
|
|
53178
|
+
},
|
|
53179
|
+
className: contentStyle.iconWrapper,
|
|
53180
|
+
"data-expanded": expanded,
|
|
53181
|
+
"data-icon": hasExpandIcons,
|
|
53182
|
+
dir: config.direction,
|
|
53183
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
53184
|
+
className: classnames_default()(contentStyle.icon, iconClass),
|
|
53185
|
+
onClick: handleIndicatorClick,
|
|
53186
|
+
dir: config.direction,
|
|
53187
|
+
children: isFunc(icon) ? icon(data) : hasExpandIcons ? icon : icons_config.tree.Expand
|
|
53188
|
+
})
|
|
53189
|
+
});
|
|
53190
|
+
}
|
|
53191
|
+
if (children && children.length > 0) return indicator;
|
|
53192
|
+
if (Array.isArray(children) || children === null) return null;
|
|
53193
|
+
if (fetching && !children) return renderLoading();
|
|
53194
|
+
if (loader && children === undefined) return indicator;
|
|
53195
|
+
return null;
|
|
53196
|
+
};
|
|
53197
|
+
var renderCheckbox = function renderCheckbox() {
|
|
53198
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_checkbox, {
|
|
53199
|
+
jssStyle: jssStyle,
|
|
53200
|
+
id: id,
|
|
53201
|
+
disabled: disabled,
|
|
53202
|
+
className: contentStyle.checkbox,
|
|
53203
|
+
onChange: onChange,
|
|
53204
|
+
onClick: handleClick
|
|
53205
|
+
});
|
|
53206
|
+
};
|
|
53207
|
+
var renderNode = function renderNode() {
|
|
53208
|
+
var render = isFunc(renderItem) ? renderItem : function (item) {
|
|
53209
|
+
return item[renderItem];
|
|
53210
|
+
};
|
|
53211
|
+
return render(data, expanded, active, id);
|
|
53212
|
+
};
|
|
53213
|
+
var contentEvent = {
|
|
53214
|
+
onClick: inlineNode ? undefined : handleNodeClick
|
|
53215
|
+
};
|
|
53216
|
+
var textEvent = {
|
|
53217
|
+
onClick: inlineNode ? handleNodeClick : undefined
|
|
53218
|
+
};
|
|
53219
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
53220
|
+
className: rootClass,
|
|
53221
|
+
dir: config.direction,
|
|
53222
|
+
children: [renderIndicator(), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
53223
|
+
dir: config.direction,
|
|
53224
|
+
"data-expanded": expanded,
|
|
53225
|
+
ref: bindContent,
|
|
53226
|
+
className: contentClass
|
|
53227
|
+
}, contentDataProps()), contentEvent), {}, {
|
|
53228
|
+
children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
53229
|
+
dir: config.direction,
|
|
53230
|
+
className: textClass,
|
|
53231
|
+
onDoubleClick: handleNodeExpand
|
|
53232
|
+
}, textEvent), {}, {
|
|
53233
|
+
children: renderNode()
|
|
53234
|
+
}))]
|
|
53235
|
+
}))]
|
|
53236
|
+
});
|
|
53237
|
+
};
|
|
53238
|
+
/* harmony default export */ var tree_virtual_content = (NodeVirtualContent);
|
|
53239
|
+
;// CONCATENATED MODULE: ../hooks/src/components/use-tree/use-tree-virtual-node.ts
|
|
53240
|
+
|
|
53241
|
+
|
|
53242
|
+
|
|
53243
|
+
var useTreeVirtualNode = function useTreeVirtualNode(props) {
|
|
53244
|
+
var _datum$dataFlatStatus, _datum$dataFlatStatus2, _datum$dataFlatStatus3;
|
|
53245
|
+
var id = props.id,
|
|
53246
|
+
data = props.data,
|
|
53247
|
+
childrenKey = props.childrenKey,
|
|
53248
|
+
bindNode = props.bindNode,
|
|
53249
|
+
loader = props.loader,
|
|
53250
|
+
datum = props.datum;
|
|
53251
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)((datum === null || datum === void 0 || (_datum$dataFlatStatus = datum.dataFlatStatusMap.get(id)) === null || _datum$dataFlatStatus === void 0 ? void 0 : _datum$dataFlatStatus.active) || false),
|
|
53252
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
53253
|
+
active = _useState2[0],
|
|
53254
|
+
setActive = _useState2[1];
|
|
53255
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)((datum === null || datum === void 0 || (_datum$dataFlatStatus2 = datum.dataFlatStatusMap.get(id)) === null || _datum$dataFlatStatus2 === void 0 ? void 0 : _datum$dataFlatStatus2.expanded) || false),
|
|
53256
|
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
53257
|
+
expanded = _useState4[0],
|
|
53258
|
+
setExpanded = _useState4[1];
|
|
53259
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)((datum === null || datum === void 0 || (_datum$dataFlatStatus3 = datum.dataFlatStatusMap.get(id)) === null || _datum$dataFlatStatus3 === void 0 ? void 0 : _datum$dataFlatStatus3.fetching) || false),
|
|
53260
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
53261
|
+
fetching = _useState6[0],
|
|
53262
|
+
setFetching = _useState6[1];
|
|
53263
|
+
var update = use_persist_fn(function (key, value) {
|
|
53264
|
+
switch (key) {
|
|
53265
|
+
case 'active':
|
|
53266
|
+
if (value !== active) {
|
|
53267
|
+
setActive(value);
|
|
53268
|
+
}
|
|
53269
|
+
break;
|
|
53270
|
+
case 'expanded':
|
|
53271
|
+
setExpanded(value);
|
|
53272
|
+
break;
|
|
53273
|
+
case 'fetching':
|
|
53274
|
+
if (value !== fetching) {
|
|
53275
|
+
setFetching(value);
|
|
53276
|
+
}
|
|
53277
|
+
break;
|
|
53278
|
+
}
|
|
53279
|
+
});
|
|
53280
|
+
var handleToggle = function handleToggle() {};
|
|
53281
|
+
var handleSetFetchind = function handleSetFetchind(v) {
|
|
53282
|
+
datum === null || datum === void 0 || datum.dataFlatStatusMap.set(id, {
|
|
53283
|
+
active: active,
|
|
53284
|
+
expanded: expanded,
|
|
53285
|
+
fetching: v
|
|
53286
|
+
});
|
|
53287
|
+
setFetching(v);
|
|
53288
|
+
};
|
|
53289
|
+
var handleSetExpanded = function handleSetExpanded(v) {
|
|
53290
|
+
datum === null || datum === void 0 || datum.dataFlatStatusMap.set(id, {
|
|
53291
|
+
active: active,
|
|
53292
|
+
expanded: v,
|
|
53293
|
+
fetching: fetching
|
|
53294
|
+
});
|
|
53295
|
+
setExpanded(v);
|
|
53296
|
+
};
|
|
53297
|
+
var isLeaf = function isLeaf() {
|
|
53298
|
+
var children = data[childrenKey];
|
|
53299
|
+
if (children && children.length > 0) return false;
|
|
53300
|
+
if (Array.isArray(children) || children === null) return true;
|
|
53301
|
+
if (fetching && !children) return false;
|
|
53302
|
+
if (loader && !fetching) return false;
|
|
53303
|
+
return true;
|
|
53304
|
+
};
|
|
53305
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
53306
|
+
bindNode(id, update, data);
|
|
53307
|
+
}, []);
|
|
53308
|
+
return {
|
|
53309
|
+
update: update,
|
|
53310
|
+
active: active,
|
|
53311
|
+
expanded: expanded,
|
|
53312
|
+
fetching: fetching,
|
|
53313
|
+
isLeaf: isLeaf,
|
|
53314
|
+
setFetching: handleSetFetchind,
|
|
53315
|
+
setExpanded: handleSetExpanded,
|
|
53316
|
+
onToggle: handleToggle
|
|
53317
|
+
};
|
|
53318
|
+
};
|
|
53319
|
+
/* harmony default export */ var use_tree_virtual_node = (useTreeVirtualNode);
|
|
53320
|
+
;// CONCATENATED MODULE: ../base/src/tree/tree-virtual-node.tsx
|
|
53321
|
+
|
|
53322
|
+
|
|
53323
|
+
|
|
53324
|
+
|
|
53325
|
+
|
|
53326
|
+
|
|
53327
|
+
|
|
53328
|
+
|
|
53329
|
+
var tree_virtual_node_placeElement = null;
|
|
53330
|
+
var VirtualNode = function VirtualNode(props) {
|
|
53331
|
+
var jssStyle = props.jssStyle,
|
|
53332
|
+
id = props.id,
|
|
53333
|
+
data = props.data,
|
|
53334
|
+
level = props.level,
|
|
53335
|
+
line = props.line,
|
|
53336
|
+
isControlled = props.isControlled,
|
|
53337
|
+
renderItem = props.renderItem,
|
|
53338
|
+
parentClickExpand = props.parentClickExpand,
|
|
53339
|
+
doubleClickExpand = props.doubleClickExpand,
|
|
53340
|
+
iconClass = props.iconClass,
|
|
53341
|
+
leafClass = props.leafClass,
|
|
53342
|
+
nodeClass = props.nodeClass,
|
|
53343
|
+
contentClass = props.contentClass,
|
|
53344
|
+
expandIcons = props.expandIcons,
|
|
53345
|
+
keygen = props.keygen,
|
|
53346
|
+
mode = props.mode,
|
|
53347
|
+
childrenKey = props.childrenKey,
|
|
53348
|
+
inlineNode = props.inlineNode,
|
|
53349
|
+
highlight = props.highlight,
|
|
53350
|
+
loader = props.loader,
|
|
53351
|
+
onChange = props.onChange,
|
|
53352
|
+
onNodeClick = props.onNodeClick,
|
|
53353
|
+
onToggle = props.onToggle;
|
|
53354
|
+
var config = useConfig();
|
|
53355
|
+
var datum = useTreeContext();
|
|
53356
|
+
var element = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
53357
|
+
var content = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
53358
|
+
var _useTreeVirtualNode = use_tree_virtual_node({
|
|
53359
|
+
id: id,
|
|
53360
|
+
data: data,
|
|
53361
|
+
datum: datum,
|
|
53362
|
+
bindNode: datum.bindVirtualNode,
|
|
53363
|
+
loader: loader,
|
|
53364
|
+
onToggle: onToggle,
|
|
53365
|
+
childrenKey: childrenKey,
|
|
53366
|
+
element: element,
|
|
53367
|
+
content: content.current
|
|
53368
|
+
}),
|
|
53369
|
+
active = _useTreeVirtualNode.active,
|
|
53370
|
+
isLeaf = _useTreeVirtualNode.isLeaf,
|
|
53371
|
+
fetching = _useTreeVirtualNode.fetching,
|
|
53372
|
+
setFetching = _useTreeVirtualNode.setFetching,
|
|
53373
|
+
expanded = _useTreeVirtualNode.expanded,
|
|
53374
|
+
setExpanded = _useTreeVirtualNode.setExpanded;
|
|
53375
|
+
var children = data[childrenKey];
|
|
53376
|
+
var hasChildren = children && children.length > 0;
|
|
53377
|
+
var contentStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
53378
|
+
var rootClass = classnames_default()(contentStyle.node, isLeaf() && (isString(leafClass) ? leafClass : isFunc(leafClass) && leafClass(data)), isString(nodeClass) && nodeClass, isFunc(nodeClass) && nodeClass(data), defineProperty_default()({}, contentStyle.leaf, !hasChildren));
|
|
53379
|
+
if (tree_virtual_node_placeElement) {
|
|
53380
|
+
tree_virtual_node_placeElement.className = contentStyle.placement;
|
|
53381
|
+
}
|
|
53382
|
+
var handleFetch = function handleFetch() {};
|
|
53383
|
+
var handleToggle = function handleToggle() {
|
|
53384
|
+
var nextExpanded = !expanded;
|
|
53385
|
+
setExpanded(nextExpanded);
|
|
53386
|
+
var status = datum.dataFlatStatusMap.get(id);
|
|
53387
|
+
datum.dataFlatStatusMap.set(id, {
|
|
53388
|
+
active: (status === null || status === void 0 ? void 0 : status.active) || false,
|
|
53389
|
+
fetching: (status === null || status === void 0 ? void 0 : status.fetching) || false,
|
|
53390
|
+
expanded: nextExpanded
|
|
53391
|
+
});
|
|
53392
|
+
if (onToggle) onToggle(id, nextExpanded);
|
|
53393
|
+
};
|
|
53394
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
53395
|
+
ref: element,
|
|
53396
|
+
className: rootClass,
|
|
53397
|
+
dir: config.direction,
|
|
53398
|
+
style: {
|
|
53399
|
+
paddingLeft: level * 24
|
|
53400
|
+
},
|
|
53401
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual_content, {
|
|
53402
|
+
jssStyle: jssStyle,
|
|
53403
|
+
isControlled: isControlled,
|
|
53404
|
+
id: id,
|
|
53405
|
+
level: level,
|
|
53406
|
+
line: line,
|
|
53407
|
+
data: data,
|
|
53408
|
+
mode: mode,
|
|
53409
|
+
contentClass: contentClass,
|
|
53410
|
+
active: active,
|
|
53411
|
+
fetching: fetching,
|
|
53412
|
+
expanded: expanded,
|
|
53413
|
+
keygen: keygen,
|
|
53414
|
+
bindContent: content,
|
|
53415
|
+
childrenKey: childrenKey,
|
|
53416
|
+
renderItem: renderItem,
|
|
53417
|
+
iconClass: iconClass,
|
|
53418
|
+
leafClass: leafClass,
|
|
53419
|
+
expandIcons: expandIcons,
|
|
53420
|
+
parentClickExpand: parentClickExpand,
|
|
53421
|
+
doubleClickExpand: doubleClickExpand,
|
|
53422
|
+
loader: loader,
|
|
53423
|
+
inlineNode: inlineNode,
|
|
53424
|
+
highlight: highlight,
|
|
53425
|
+
setFetching: setFetching,
|
|
53426
|
+
onChange: onChange,
|
|
53427
|
+
onFetch: handleFetch,
|
|
53428
|
+
onNodeClick: onNodeClick,
|
|
53429
|
+
onToggle: handleToggle
|
|
53430
|
+
})
|
|
53431
|
+
});
|
|
53432
|
+
};
|
|
53433
|
+
/* harmony default export */ var tree_virtual_node = (VirtualNode);
|
|
53434
|
+
;// CONCATENATED MODULE: ../base/src/tree/tree-node.tsx
|
|
53435
|
+
|
|
53436
|
+
|
|
53437
|
+
|
|
53438
|
+
|
|
53439
|
+
|
|
53440
|
+
var TreeNode = function TreeNode(props) {
|
|
53441
|
+
var virtual = props.virtual;
|
|
53442
|
+
if (virtual) {
|
|
53443
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual_node, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
53444
|
+
level: 1
|
|
53445
|
+
}));
|
|
53446
|
+
}
|
|
53447
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_simple_node, objectSpread2_default()({}, props));
|
|
53448
|
+
};
|
|
53449
|
+
/* harmony default export */ var tree_node = (TreeNode);
|
|
52273
53450
|
;// CONCATENATED MODULE: ../base/src/tree/tree-list.tsx
|
|
52274
53451
|
|
|
52275
53452
|
|
|
@@ -52296,6 +53473,8 @@ var tree_list_List = function List(props) {
|
|
|
52296
53473
|
iconClass = props.iconClass,
|
|
52297
53474
|
leafClass = props.leafClass,
|
|
52298
53475
|
nodeClass = props.nodeClass,
|
|
53476
|
+
_props$rootStyle = props.rootStyle,
|
|
53477
|
+
rootStyle = _props$rootStyle === void 0 ? {} : _props$rootStyle,
|
|
52299
53478
|
contentClass = props.contentClass,
|
|
52300
53479
|
expandIcons = props.expandIcons,
|
|
52301
53480
|
childrenKey = props.childrenKey,
|
|
@@ -52374,7 +53553,7 @@ var tree_list_List = function List(props) {
|
|
|
52374
53553
|
};
|
|
52375
53554
|
if (!expanded && !hasExpanded.current) return null;
|
|
52376
53555
|
hasExpanded.current = true;
|
|
52377
|
-
var newStyle = Object.assign(
|
|
53556
|
+
var newStyle = Object.assign(rootStyle, style, {
|
|
52378
53557
|
display: expanded ? 'block' : 'none'
|
|
52379
53558
|
});
|
|
52380
53559
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -52389,29 +53568,118 @@ var tree_list_List = function List(props) {
|
|
|
52389
53568
|
;// CONCATENATED MODULE: ../base/src/tree/tree-root.tsx
|
|
52390
53569
|
|
|
52391
53570
|
|
|
52392
|
-
var tree_root_excluded = ["jssStyle"];
|
|
53571
|
+
var tree_root_excluded = ["jssStyle", "rootStyle"];
|
|
52393
53572
|
|
|
52394
53573
|
|
|
52395
53574
|
|
|
52396
53575
|
var Root = function Root(props) {
|
|
52397
53576
|
var jssStyle = props.jssStyle,
|
|
53577
|
+
_props$rootStyle = props.rootStyle,
|
|
53578
|
+
rootStyle = _props$rootStyle === void 0 ? {} : _props$rootStyle,
|
|
52398
53579
|
rest = objectWithoutProperties_default()(props, tree_root_excluded);
|
|
52399
53580
|
var treeStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
52400
53581
|
var rootClass = classnames_default()(treeStyle.root);
|
|
52401
53582
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_list, objectSpread2_default()(objectSpread2_default()({}, rest), {}, {
|
|
52402
53583
|
expanded: true,
|
|
52403
53584
|
className: rootClass,
|
|
52404
|
-
jssStyle: jssStyle
|
|
53585
|
+
jssStyle: jssStyle,
|
|
53586
|
+
style: rootStyle
|
|
52405
53587
|
}));
|
|
52406
53588
|
};
|
|
52407
53589
|
/* harmony default export */ var tree_root = (Root);
|
|
53590
|
+
;// CONCATENATED MODULE: ../base/src/tree/tree-virtual.tsx
|
|
53591
|
+
|
|
53592
|
+
|
|
53593
|
+
|
|
53594
|
+
|
|
53595
|
+
var TreeVirtual = function TreeVirtual(props) {
|
|
53596
|
+
var jssStyle = props.jssStyle,
|
|
53597
|
+
height = props.height,
|
|
53598
|
+
_props$lineHeight = props.lineHeight,
|
|
53599
|
+
lineHeight = _props$lineHeight === void 0 ? 36 : _props$lineHeight,
|
|
53600
|
+
line = props.line,
|
|
53601
|
+
mode = props.mode,
|
|
53602
|
+
contentClass = props.contentClass,
|
|
53603
|
+
expandIcons = props.expandIcons,
|
|
53604
|
+
loader = props.loader,
|
|
53605
|
+
inlineNode = props.inlineNode,
|
|
53606
|
+
highlight = props.highlight,
|
|
53607
|
+
parentClickExpand = props.parentClickExpand,
|
|
53608
|
+
doubleClickExpand = props.doubleClickExpand,
|
|
53609
|
+
expanded = props.expanded,
|
|
53610
|
+
keygen = props.keygen,
|
|
53611
|
+
defaultExpandAll = props.defaultExpandAll,
|
|
53612
|
+
active = props.active,
|
|
53613
|
+
isControlled = props.isControlled,
|
|
53614
|
+
childrenClass = props.childrenClass,
|
|
53615
|
+
childrenKey = props.childrenKey,
|
|
53616
|
+
iconClass = props.iconClass,
|
|
53617
|
+
leafClass = props.leafClass,
|
|
53618
|
+
nodeClass = props.nodeClass,
|
|
53619
|
+
onNodeClick = props.onNodeClick,
|
|
53620
|
+
onToggle = props.onToggle,
|
|
53621
|
+
onChange = props.onChange;
|
|
53622
|
+
var datum = useTreeContext();
|
|
53623
|
+
var renderItem = function renderItem(item, index) {
|
|
53624
|
+
var id = item.id,
|
|
53625
|
+
data = item.data,
|
|
53626
|
+
level = item.level;
|
|
53627
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual_node, {
|
|
53628
|
+
jssStyle: jssStyle,
|
|
53629
|
+
id: id,
|
|
53630
|
+
level: level,
|
|
53631
|
+
data: data,
|
|
53632
|
+
index: index,
|
|
53633
|
+
line: line,
|
|
53634
|
+
keygen: keygen,
|
|
53635
|
+
defaultExpandAll: defaultExpandAll,
|
|
53636
|
+
isControlled: isControlled,
|
|
53637
|
+
mode: mode,
|
|
53638
|
+
active: active,
|
|
53639
|
+
childrenClass: childrenClass,
|
|
53640
|
+
childrenKey: childrenKey,
|
|
53641
|
+
renderItem: props.renderItem,
|
|
53642
|
+
iconClass: iconClass,
|
|
53643
|
+
leafClass: leafClass,
|
|
53644
|
+
nodeClass: nodeClass,
|
|
53645
|
+
contentClass: contentClass,
|
|
53646
|
+
expandIcons: expandIcons,
|
|
53647
|
+
loader: loader,
|
|
53648
|
+
inlineNode: inlineNode,
|
|
53649
|
+
highlight: highlight,
|
|
53650
|
+
parentClickExpand: parentClickExpand,
|
|
53651
|
+
doubleClickExpand: doubleClickExpand,
|
|
53652
|
+
expanded: expanded,
|
|
53653
|
+
onNodeClick: onNodeClick,
|
|
53654
|
+
onToggle: onToggle,
|
|
53655
|
+
onChange: onChange
|
|
53656
|
+
}, id);
|
|
53657
|
+
};
|
|
53658
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_list, {
|
|
53659
|
+
data: datum.dataFlat,
|
|
53660
|
+
height: height,
|
|
53661
|
+
rowsInView: 10,
|
|
53662
|
+
scrollerStyle: {
|
|
53663
|
+
height: '100%',
|
|
53664
|
+
width: '100%',
|
|
53665
|
+
overflow: 'auto',
|
|
53666
|
+
padding: '0 4px'
|
|
53667
|
+
},
|
|
53668
|
+
keepScrollHeight: true,
|
|
53669
|
+
dynamicVirtual: true,
|
|
53670
|
+
lineHeight: lineHeight,
|
|
53671
|
+
renderItem: renderItem
|
|
53672
|
+
});
|
|
53673
|
+
};
|
|
53674
|
+
/* harmony default export */ var tree_virtual = (TreeVirtual);
|
|
52408
53675
|
;// CONCATENATED MODULE: ../base/src/tree/tree.tsx
|
|
52409
53676
|
|
|
52410
53677
|
|
|
52411
53678
|
|
|
52412
53679
|
|
|
52413
53680
|
|
|
52414
|
-
var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum"];
|
|
53681
|
+
var tree_excluded = ["jssStyle", "line", "childrenKey", "data", "value", "mode", "keygen", "virtual", "expanded", "expandIcons", "iconClass", "leafClass", "nodeClass", "contentClass", "rootStyle", "renderItem", "defaultValue", "dataUpdate", "childrenClass", "defaultExpandAll", "defaultExpanded", "parentClickExpand", "doubleClickExpand", "dragImageSelector", "dragImageStyle", "dragSibling", "unmatch", "dragHoverExpand", "active", "setActive", "disabled", "inlineNode", "highlight", "className", "onClick", "loader", "getDatum", "onDrop", "onExpand", "onChange", "onDragEnd", "onDragLeave", "onDragOver", "onDragStart", "datum"];
|
|
53682
|
+
|
|
52415
53683
|
|
|
52416
53684
|
|
|
52417
53685
|
|
|
@@ -52431,12 +53699,14 @@ var Tree = function Tree(props) {
|
|
|
52431
53699
|
_props$mode = props.mode,
|
|
52432
53700
|
mode = _props$mode === void 0 ? 1 : _props$mode,
|
|
52433
53701
|
keygen = props.keygen,
|
|
53702
|
+
virtual = props.virtual,
|
|
52434
53703
|
expandedProp = props.expanded,
|
|
52435
53704
|
expandIcons = props.expandIcons,
|
|
52436
53705
|
iconClass = props.iconClass,
|
|
52437
53706
|
leafClass = props.leafClass,
|
|
52438
53707
|
nodeClass = props.nodeClass,
|
|
52439
53708
|
contentClass = props.contentClass,
|
|
53709
|
+
rootStyle = props.rootStyle,
|
|
52440
53710
|
renderItem = props.renderItem,
|
|
52441
53711
|
defaultValue = props.defaultValue,
|
|
52442
53712
|
_props$dataUpdate = props.dataUpdate,
|
|
@@ -52480,6 +53750,7 @@ var Tree = function Tree(props) {
|
|
|
52480
53750
|
setActive(propActive);
|
|
52481
53751
|
}
|
|
52482
53752
|
}, [active, propActive]);
|
|
53753
|
+
var treeRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
|
|
52483
53754
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
52484
53755
|
mounted: false
|
|
52485
53756
|
}),
|
|
@@ -52495,10 +53766,11 @@ var Tree = function Tree(props) {
|
|
|
52495
53766
|
expanded: expandedProp,
|
|
52496
53767
|
disabled: disabled,
|
|
52497
53768
|
defaultValue: defaultValue,
|
|
52498
|
-
defaultExpandAll: defaultExpandAll,
|
|
52499
|
-
defaultExpanded: defaultExpanded,
|
|
53769
|
+
defaultExpandAll: expandedProp ? undefined : defaultExpandAll,
|
|
53770
|
+
defaultExpanded: expandedProp ? undefined : defaultExpanded,
|
|
52500
53771
|
childrenKey: childrenKey,
|
|
52501
53772
|
keygen: keygen,
|
|
53773
|
+
virtual: virtual,
|
|
52502
53774
|
onExpand: onExpandProp,
|
|
52503
53775
|
datum: propsDatum
|
|
52504
53776
|
}),
|
|
@@ -52506,13 +53778,27 @@ var Tree = function Tree(props) {
|
|
|
52506
53778
|
expanded = _useTree.expanded,
|
|
52507
53779
|
onExpand = _useTree.onExpand;
|
|
52508
53780
|
var treeStyle = (jssStyle === null || jssStyle === void 0 ? void 0 : jssStyle.tree()) || {};
|
|
52509
|
-
var rootClass = classnames_default()(treeStyle.rootClass, treeStyle.tree, className, defineProperty_default()(defineProperty_default()({}, treeStyle.line, line), treeStyle.noline, !line));
|
|
53781
|
+
var rootClass = classnames_default()(treeStyle.rootClass, treeStyle.tree, className, defineProperty_default()(defineProperty_default()(defineProperty_default()({}, treeStyle.line, line), treeStyle.noline, !line), treeStyle.virtual, virtual));
|
|
52510
53782
|
var getDragImageSelector = function getDragImageSelector(data) {
|
|
52511
53783
|
if (isFunc(dragImageSelector)) return dragImageSelector(data);
|
|
52512
53784
|
return dragImageSelector;
|
|
52513
53785
|
};
|
|
53786
|
+
var getHeight = function getHeight() {
|
|
53787
|
+
var _ref = props.style || {},
|
|
53788
|
+
styleHeight = _ref.height;
|
|
53789
|
+
if (!styleHeight && !props.height) {
|
|
53790
|
+
var _treeRef$current;
|
|
53791
|
+
var containerHeight = (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 || (_treeRef$current = _treeRef$current.parentElement) === null || _treeRef$current === void 0 ? void 0 : _treeRef$current.clientHeight;
|
|
53792
|
+
return containerHeight;
|
|
53793
|
+
}
|
|
53794
|
+
return props.height || styleHeight;
|
|
53795
|
+
};
|
|
52514
53796
|
var handleUpdateExpanded = function handleUpdateExpanded(expanded) {
|
|
52515
53797
|
var tempExpandMap = new Set(expanded);
|
|
53798
|
+
if (!expanded) return;
|
|
53799
|
+
if (virtual) {
|
|
53800
|
+
datum.expandedFlat(expanded);
|
|
53801
|
+
}
|
|
52516
53802
|
datum.updateMap.forEach(function (update, id) {
|
|
52517
53803
|
update('expanded', tempExpandMap.has(id));
|
|
52518
53804
|
});
|
|
@@ -52543,8 +53829,10 @@ var Tree = function Tree(props) {
|
|
|
52543
53829
|
newExpanded = expandedArr.filter(function (e) {
|
|
52544
53830
|
return e !== id;
|
|
52545
53831
|
});
|
|
53832
|
+
if (virtual) datum.removeFlat(id);
|
|
52546
53833
|
} else {
|
|
52547
53834
|
newExpanded = [].concat(toConsumableArray_default()(expandedArr), [id]);
|
|
53835
|
+
if (virtual) datum.insertFlat(id);
|
|
52548
53836
|
}
|
|
52549
53837
|
if (onExpand) onExpand(newExpanded);
|
|
52550
53838
|
};
|
|
@@ -52600,6 +53888,60 @@ var Tree = function Tree(props) {
|
|
|
52600
53888
|
onDrop(newData, id, targetId, position);
|
|
52601
53889
|
}
|
|
52602
53890
|
};
|
|
53891
|
+
var renderList = function renderList() {
|
|
53892
|
+
if (virtual) {
|
|
53893
|
+
var realHeight = getHeight();
|
|
53894
|
+
if (!realHeight) return null;
|
|
53895
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_virtual, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
53896
|
+
data: data,
|
|
53897
|
+
line: line,
|
|
53898
|
+
expanded: expanded,
|
|
53899
|
+
height: realHeight,
|
|
53900
|
+
childrenKey: props.childrenKey || 'children',
|
|
53901
|
+
isControlled: 'expanded' in props,
|
|
53902
|
+
bindNode: datum.bindNode,
|
|
53903
|
+
onNodeClick: handleNodeClick,
|
|
53904
|
+
onToggle: handleToggle
|
|
53905
|
+
}));
|
|
53906
|
+
}
|
|
53907
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(tree_root, {
|
|
53908
|
+
rootStyle: rootStyle,
|
|
53909
|
+
isControlled: 'expanded' in props,
|
|
53910
|
+
jssStyle: jssStyle,
|
|
53911
|
+
data: data,
|
|
53912
|
+
mode: mode,
|
|
53913
|
+
line: line,
|
|
53914
|
+
keygen: keygen,
|
|
53915
|
+
onChange: onChange,
|
|
53916
|
+
iconClass: iconClass,
|
|
53917
|
+
leafClass: leafClass,
|
|
53918
|
+
nodeClass: nodeClass,
|
|
53919
|
+
contentClass: contentClass,
|
|
53920
|
+
expanded: expanded,
|
|
53921
|
+
expandIcons: expandIcons,
|
|
53922
|
+
defaultExpandAll: defaultExpandAll,
|
|
53923
|
+
childrenClass: childrenClass,
|
|
53924
|
+
bindNode: datum.bindNode,
|
|
53925
|
+
childrenKey: childrenKey,
|
|
53926
|
+
onNodeClick: handleNodeClick,
|
|
53927
|
+
renderItem: renderItem,
|
|
53928
|
+
loader: loader,
|
|
53929
|
+
inlineNode: inlineNode,
|
|
53930
|
+
highlight: highlight,
|
|
53931
|
+
onToggle: handleToggle,
|
|
53932
|
+
onDrop: onDrop && handleDrop,
|
|
53933
|
+
onDragOver: onDragOver,
|
|
53934
|
+
onDragStart: onDragStart,
|
|
53935
|
+
onDragEnd: onDragEnd,
|
|
53936
|
+
onDragLeave: onDragLeave,
|
|
53937
|
+
dragSibling: dragSibling,
|
|
53938
|
+
dragHoverExpand: dragHoverExpand,
|
|
53939
|
+
parentClickExpand: parentClickExpand,
|
|
53940
|
+
doubleClickExpand: doubleClickExpand,
|
|
53941
|
+
dragImageSelector: getDragImageSelector,
|
|
53942
|
+
dragImageStyle: dragImageStyle
|
|
53943
|
+
});
|
|
53944
|
+
};
|
|
52603
53945
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
52604
53946
|
// 首次渲染不更新
|
|
52605
53947
|
if (!context.mounted) {
|
|
@@ -52619,49 +53961,13 @@ var Tree = function Tree(props) {
|
|
|
52619
53961
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
|
|
52620
53962
|
fieldId = _useContext.fieldId;
|
|
52621
53963
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
53964
|
+
ref: treeRef,
|
|
52622
53965
|
className: rootClass,
|
|
52623
53966
|
id: fieldId
|
|
52624
53967
|
}, rest), {}, {
|
|
52625
53968
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(tree_context_Provider, {
|
|
52626
53969
|
value: datum,
|
|
52627
|
-
children:
|
|
52628
|
-
isControlled: 'expanded' in props,
|
|
52629
|
-
jssStyle: jssStyle,
|
|
52630
|
-
data: data,
|
|
52631
|
-
mode: mode,
|
|
52632
|
-
line: line,
|
|
52633
|
-
keygen: keygen,
|
|
52634
|
-
onChange: onChange,
|
|
52635
|
-
iconClass: iconClass,
|
|
52636
|
-
leafClass: leafClass,
|
|
52637
|
-
nodeClass: nodeClass,
|
|
52638
|
-
contentClass: contentClass,
|
|
52639
|
-
expanded: expanded,
|
|
52640
|
-
expandIcons: expandIcons,
|
|
52641
|
-
defaultExpandAll: defaultExpandAll,
|
|
52642
|
-
childrenClass: isFunc(childrenClass) ? childrenClass : function () {
|
|
52643
|
-
return childrenClass;
|
|
52644
|
-
},
|
|
52645
|
-
bindNode: datum.bindNode,
|
|
52646
|
-
childrenKey: childrenKey,
|
|
52647
|
-
onNodeClick: handleNodeClick,
|
|
52648
|
-
renderItem: renderItem,
|
|
52649
|
-
loader: loader,
|
|
52650
|
-
inlineNode: inlineNode,
|
|
52651
|
-
highlight: highlight,
|
|
52652
|
-
onToggle: handleToggle,
|
|
52653
|
-
onDrop: onDrop && handleDrop,
|
|
52654
|
-
onDragOver: onDragOver,
|
|
52655
|
-
onDragStart: onDragStart,
|
|
52656
|
-
onDragEnd: onDragEnd,
|
|
52657
|
-
onDragLeave: onDragLeave,
|
|
52658
|
-
dragSibling: dragSibling,
|
|
52659
|
-
dragHoverExpand: dragHoverExpand,
|
|
52660
|
-
parentClickExpand: parentClickExpand,
|
|
52661
|
-
doubleClickExpand: doubleClickExpand,
|
|
52662
|
-
dragImageSelector: getDragImageSelector,
|
|
52663
|
-
dragImageStyle: dragImageStyle
|
|
52664
|
-
})
|
|
53970
|
+
children: renderList()
|
|
52665
53971
|
})
|
|
52666
53972
|
}));
|
|
52667
53973
|
};
|
|
@@ -54551,6 +55857,7 @@ var list_list_List = function List(props) {
|
|
|
54551
55857
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)(base_src_checkbox_checkbox, {
|
|
54552
55858
|
jssStyle: props.jssStyle,
|
|
54553
55859
|
checked: datum.check(item),
|
|
55860
|
+
size: props.size,
|
|
54554
55861
|
disabled: datum.disabledCheck(item),
|
|
54555
55862
|
onChange: function onChange(_value, checked) {
|
|
54556
55863
|
if (checked) {
|
|
@@ -55175,7 +56482,7 @@ var MenuItem = function MenuItem(props) {
|
|
|
55175
56482
|
,
|
|
55176
56483
|
onClick: close,
|
|
55177
56484
|
dir: config.direction,
|
|
55178
|
-
children: items.map(function (item, index) {
|
|
56485
|
+
children: items.map(function (item, index, arr) {
|
|
55179
56486
|
var key = getKey(props.keygen, item, index);
|
|
55180
56487
|
return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.createElement)(MenuItem, objectSpread2_default()(objectSpread2_default()({}, props), {}, {
|
|
55181
56488
|
mode: mode,
|
|
@@ -55186,6 +56493,9 @@ var MenuItem = function MenuItem(props) {
|
|
|
55186
56493
|
keyResult: key,
|
|
55187
56494
|
level: props.level + 1,
|
|
55188
56495
|
renderIcon: isTitle ? undefined : props.renderIcon
|
|
56496
|
+
// 顶部或底部的menuItem的popover边缘与menu的边缘对齐
|
|
56497
|
+
,
|
|
56498
|
+
isEdgeItem: index === 0 || index === arr.length - 1
|
|
55189
56499
|
}));
|
|
55190
56500
|
})
|
|
55191
56501
|
});
|
|
@@ -55205,6 +56515,7 @@ var MenuItem = function MenuItem(props) {
|
|
|
55205
56515
|
showArrow: mode !== 'horizontal',
|
|
55206
56516
|
position: position,
|
|
55207
56517
|
lazy: false,
|
|
56518
|
+
offset: isVertical && props.isEdgeItem ? [0, 4] : undefined,
|
|
55208
56519
|
children: function children(close) {
|
|
55209
56520
|
return content(close);
|
|
55210
56521
|
}
|
|
@@ -55424,7 +56735,8 @@ var Menu = function Menu(props) {
|
|
|
55424
56735
|
scrollRef: scrollRef,
|
|
55425
56736
|
theme: theme,
|
|
55426
56737
|
renderIcon: props.renderIcon,
|
|
55427
|
-
collapse: collapse
|
|
56738
|
+
collapse: collapse,
|
|
56739
|
+
isEdgeItem: false
|
|
55428
56740
|
}, key);
|
|
55429
56741
|
})
|
|
55430
56742
|
})
|
|
@@ -56015,6 +57327,9 @@ var confirm_Confirm = function Confirm(props) {
|
|
|
56015
57327
|
jssStyle: jssStyle,
|
|
56016
57328
|
type: type,
|
|
56017
57329
|
title: title,
|
|
57330
|
+
titleStyle: {
|
|
57331
|
+
fontSize: 14
|
|
57332
|
+
},
|
|
56018
57333
|
icon: icon,
|
|
56019
57334
|
children: _children
|
|
56020
57335
|
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -56240,6 +57555,11 @@ var Circle = function Circle(props) {
|
|
|
56240
57555
|
var width = value === 0 && strokeLinecap === 'round' ? 0 : strokeWidth;
|
|
56241
57556
|
var objColor = color && typeof_default()(color) === 'object';
|
|
56242
57557
|
var mc = classnames_default()(props.className, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.rootClass, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.circle, progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapper, type === 'success' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperSuccess), type === 'info' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperInfo), type === 'warning' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperWarning), type === 'danger' && (progressClasses === null || progressClasses === void 0 ? void 0 : progressClasses.wrapperDanger));
|
|
57558
|
+
console.log('======================');
|
|
57559
|
+
console.log('dasharray: >>', dasharray);
|
|
57560
|
+
console.log('strokeLinecap: >>', strokeLinecap);
|
|
57561
|
+
console.log('width: >>', width);
|
|
57562
|
+
console.log('======================');
|
|
56243
57563
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
56244
57564
|
className: mc,
|
|
56245
57565
|
style: style,
|
|
@@ -58147,6 +59467,7 @@ StickyComp.displayName = 'ShineoutSticky';
|
|
|
58147
59467
|
|
|
58148
59468
|
|
|
58149
59469
|
|
|
59470
|
+
|
|
58150
59471
|
var Switch = function Switch(props0) {
|
|
58151
59472
|
var _jssStyle$switch;
|
|
58152
59473
|
var props = use_with_form_config(props0);
|
|
@@ -58207,7 +59528,8 @@ var Switch = function Switch(props0) {
|
|
|
58207
59528
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.indicator,
|
|
58208
59529
|
dir: config.direction,
|
|
58209
59530
|
children: loading ? /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
58210
|
-
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.loading
|
|
59531
|
+
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.loading,
|
|
59532
|
+
children: icons_config.switch.Loading
|
|
58211
59533
|
}) : null
|
|
58212
59534
|
}), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
58213
59535
|
className: switchClasses === null || switchClasses === void 0 ? void 0 : switchClasses.content,
|
|
@@ -58869,129 +60191,6 @@ var useTableSort = function useTableSort(props) {
|
|
|
58869
60191
|
};
|
|
58870
60192
|
};
|
|
58871
60193
|
/* harmony default export */ var use_table_sort = (useTableSort);
|
|
58872
|
-
;// CONCATENATED MODULE: ../hooks/src/components/use-table/use-table-tree.tsx
|
|
58873
|
-
|
|
58874
|
-
|
|
58875
|
-
|
|
58876
|
-
|
|
58877
|
-
|
|
58878
|
-
|
|
58879
|
-
|
|
58880
|
-
|
|
58881
|
-
var getExpandData = function getExpandData(_treeData, keys, keygen, treeColumnsName) {
|
|
58882
|
-
var expandKeys = keys;
|
|
58883
|
-
var expandSet = new Set(expandKeys);
|
|
58884
|
-
var unmatchExpandKeys = [];
|
|
58885
|
-
var treeExpandLevel = new Map();
|
|
58886
|
-
if (expandSet.size === 0 || !treeColumnsName) {
|
|
58887
|
-
return {
|
|
58888
|
-
treeData: _treeData,
|
|
58889
|
-
treeExpandLevel: treeExpandLevel,
|
|
58890
|
-
unmatchExpandKeys: unmatchExpandKeys
|
|
58891
|
-
};
|
|
58892
|
-
}
|
|
58893
|
-
var treeData = toConsumableArray_default()(_treeData || []);
|
|
58894
|
-
var _loop = function _loop() {
|
|
58895
|
-
if (expandSet.size === 0) return 1; // break
|
|
58896
|
-
var item = treeData[i];
|
|
58897
|
-
var key = getKey(keygen, item, i);
|
|
58898
|
-
var parentLevel = treeExpandLevel.get(key) || 0;
|
|
58899
|
-
var children = is_isObject(item) && item[treeColumnsName];
|
|
58900
|
-
if (expandSet.has(key)) {
|
|
58901
|
-
if (children && children.length > 0) {
|
|
58902
|
-
children.forEach(function (child) {
|
|
58903
|
-
treeExpandLevel.set(getKey(keygen, child), parentLevel + 1);
|
|
58904
|
-
});
|
|
58905
|
-
treeData.splice.apply(treeData, [i + 1, 0].concat(toConsumableArray_default()(children)));
|
|
58906
|
-
expandSet.delete(key);
|
|
58907
|
-
} else {
|
|
58908
|
-
unmatchExpandKeys.push(key);
|
|
58909
|
-
}
|
|
58910
|
-
}
|
|
58911
|
-
};
|
|
58912
|
-
for (var i = 0; i < treeData.length; i++) {
|
|
58913
|
-
if (_loop()) break;
|
|
58914
|
-
}
|
|
58915
|
-
return {
|
|
58916
|
-
treeData: treeData,
|
|
58917
|
-
treeExpandLevel: treeExpandLevel,
|
|
58918
|
-
unmatchExpandKeys: unmatchExpandKeys
|
|
58919
|
-
};
|
|
58920
|
-
};
|
|
58921
|
-
var useTableTree = function useTableTree(props) {
|
|
58922
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(props.defaultTreeExpandKeys || []),
|
|
58923
|
-
_useState2 = slicedToArray_default()(_useState, 2),
|
|
58924
|
-
expandKeysState = _useState2[0],
|
|
58925
|
-
setExpandKeysState = _useState2[1];
|
|
58926
|
-
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
58927
|
-
changedByExpand: false
|
|
58928
|
-
}),
|
|
58929
|
-
context = _useRef.current;
|
|
58930
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
58931
|
-
context.changedByExpand = false;
|
|
58932
|
-
}, [expandKeysState, props.treeExpandKeys]);
|
|
58933
|
-
var expandKeys = props.treeExpandKeys === undefined ? expandKeysState : props.treeExpandKeys;
|
|
58934
|
-
var handleTreeExpand = usePersistFn(function (data, index) {
|
|
58935
|
-
var key = getKey(props.keygen, data, index);
|
|
58936
|
-
var changeKeys = new Set(expandKeys);
|
|
58937
|
-
if (changeKeys.has(key)) {
|
|
58938
|
-
changeKeys.delete(key);
|
|
58939
|
-
} else {
|
|
58940
|
-
changeKeys.add(key);
|
|
58941
|
-
}
|
|
58942
|
-
if (props.treeExpandKeys === undefined) {
|
|
58943
|
-
setExpandKeysState(Array.from(changeKeys));
|
|
58944
|
-
} else if (props.onTreeExpand) {
|
|
58945
|
-
var _props$onTreeExpand;
|
|
58946
|
-
(_props$onTreeExpand = props.onTreeExpand) === null || _props$onTreeExpand === void 0 || _props$onTreeExpand.call(props, Array.from(changeKeys), data, changeKeys.has(key), index);
|
|
58947
|
-
}
|
|
58948
|
-
context.changedByExpand = true;
|
|
58949
|
-
});
|
|
58950
|
-
var isTreeExpanded = usePersistFn(function (data, index) {
|
|
58951
|
-
if (!props.treeColumnsName) return false;
|
|
58952
|
-
var key = getKey(props.keygen, data, index);
|
|
58953
|
-
return expandKeys.includes(key);
|
|
58954
|
-
});
|
|
58955
|
-
var func = useLatestObj({
|
|
58956
|
-
isTreeExpanded: isTreeExpanded,
|
|
58957
|
-
handleTreeExpand: handleTreeExpand
|
|
58958
|
-
});
|
|
58959
|
-
var _useMemo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
58960
|
-
return getExpandData(props.data, expandKeys, props.keygen, props.treeColumnsName);
|
|
58961
|
-
}, [props.data, expandKeys, props.treeColumnsName]),
|
|
58962
|
-
treeData = _useMemo.treeData,
|
|
58963
|
-
treeExpandLevel = _useMemo.treeExpandLevel,
|
|
58964
|
-
unmatchExpandKeys = _useMemo.unmatchExpandKeys;
|
|
58965
|
-
var isEmptyTree = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
58966
|
-
var _props$data$filter;
|
|
58967
|
-
return ((_props$data$filter = props.data.filter(function (item) {
|
|
58968
|
-
var _item;
|
|
58969
|
-
return (_item = item[props.treeColumnsName]) === null || _item === void 0 ? void 0 : _item.length;
|
|
58970
|
-
})) === null || _props$data$filter === void 0 ? void 0 : _props$data$filter.length) === 0;
|
|
58971
|
-
}, [props.data, props.treeColumnsName]);
|
|
58972
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
58973
|
-
if (!unmatchExpandKeys.length || !expandKeysState.length) {
|
|
58974
|
-
return;
|
|
58975
|
-
}
|
|
58976
|
-
|
|
58977
|
-
// 检查treeData中的每一项,对比expandKeysState,如果expandKeysState有但是children是空的,则需要修正expandKeysState
|
|
58978
|
-
var newExpandKeys = expandKeysState.filter(function (key) {
|
|
58979
|
-
return !unmatchExpandKeys.includes(key);
|
|
58980
|
-
});
|
|
58981
|
-
if (shallowEqual(newExpandKeys, expandKeysState)) {
|
|
58982
|
-
return;
|
|
58983
|
-
}
|
|
58984
|
-
setExpandKeysState(newExpandKeys);
|
|
58985
|
-
}, [unmatchExpandKeys, expandKeysState]);
|
|
58986
|
-
return {
|
|
58987
|
-
data: treeData,
|
|
58988
|
-
treeExpandLevel: treeExpandLevel,
|
|
58989
|
-
changedByExpand: context.changedByExpand,
|
|
58990
|
-
isEmptyTree: isEmptyTree,
|
|
58991
|
-
func: func
|
|
58992
|
-
};
|
|
58993
|
-
};
|
|
58994
|
-
/* harmony default export */ var use_table_tree = (useTableTree);
|
|
58995
60194
|
;// CONCATENATED MODULE: ../hooks/src/components/use-table/use-table-virtual.tsx
|
|
58996
60195
|
|
|
58997
60196
|
|
|
@@ -59150,7 +60349,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
59150
60349
|
});
|
|
59151
60350
|
}
|
|
59152
60351
|
});
|
|
59153
|
-
var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop) {
|
|
60352
|
+
var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
|
|
59154
60353
|
var _props$scrollRef$curr;
|
|
59155
60354
|
if (props.disabled) return;
|
|
59156
60355
|
var sum = 0;
|
|
@@ -59190,7 +60389,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
59190
60389
|
setStartIndex(currentIndex);
|
|
59191
60390
|
|
|
59192
60391
|
// startIndex处于上方某个合并行的中间一行时,可能引起translate闪烁
|
|
59193
|
-
if (startIndex < currentIndex) {
|
|
60392
|
+
if (rowSpanInfo && !fromDrag && startIndex < currentIndex) {
|
|
59194
60393
|
context.autoAddRows = currentIndex - startIndex;
|
|
59195
60394
|
setTimeout(function () {
|
|
59196
60395
|
context.autoAddRows = 0;
|
|
@@ -59250,7 +60449,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
59250
60449
|
// 拖动滚动条
|
|
59251
60450
|
if (fromDrag) {
|
|
59252
60451
|
var top = y * max;
|
|
59253
|
-
updateIndexAndTopFromTop(top);
|
|
60452
|
+
updateIndexAndTopFromTop(top, fromDrag);
|
|
59254
60453
|
if (context.rateTimer) clearTimeout(context.rateTimer);
|
|
59255
60454
|
context.rateTimer = setTimeout(function () {
|
|
59256
60455
|
updateRateScroll(y);
|
|
@@ -62065,7 +63264,7 @@ var Tabs = function Tabs(props) {
|
|
|
62065
63264
|
var nextCollapse = !collapse;
|
|
62066
63265
|
setCollapse(nextCollapse);
|
|
62067
63266
|
};
|
|
62068
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
63267
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
62069
63268
|
if (!panelRef.current) return;
|
|
62070
63269
|
if (collapsible) {
|
|
62071
63270
|
if (collapse) {
|
|
@@ -62764,7 +63963,7 @@ var TransferList = function TransferList(props) {
|
|
|
62764
63963
|
disabled: disabled === true,
|
|
62765
63964
|
onFilter: handleFilter,
|
|
62766
63965
|
placeholder: getLocale(locale, 'search'),
|
|
62767
|
-
|
|
63966
|
+
isSource: listType === 'source'
|
|
62768
63967
|
})
|
|
62769
63968
|
});
|
|
62770
63969
|
}
|
|
@@ -62848,7 +64047,8 @@ var TransferList = function TransferList(props) {
|
|
|
62848
64047
|
lineHeight: getLineHeight(),
|
|
62849
64048
|
height: listHeight,
|
|
62850
64049
|
rowsInView: rowsInView,
|
|
62851
|
-
renderItem: renderItem
|
|
64050
|
+
renderItem: renderItem,
|
|
64051
|
+
paddingY: 3
|
|
62852
64052
|
});
|
|
62853
64053
|
};
|
|
62854
64054
|
var renderFooter = function renderFooter() {
|
|
@@ -63086,10 +64286,10 @@ var Transfer = function Transfer(props) {
|
|
|
63086
64286
|
};
|
|
63087
64287
|
var renderSourceList = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
63088
64288
|
return renderList('source');
|
|
63089
|
-
}, [source, size, filterSourceText, sourceSelectedKeys]);
|
|
64289
|
+
}, [source, size, filterSourceText, sourceSelectedKeys, renderFilter]);
|
|
63090
64290
|
var renderTargetList = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
63091
64291
|
return renderList('target');
|
|
63092
|
-
}, [target, size, filterTargetText, targetSelectedKeys]);
|
|
64292
|
+
}, [target, size, filterTargetText, targetSelectedKeys, renderFilter]);
|
|
63093
64293
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
|
|
63094
64294
|
fieldId = _useContext.fieldId;
|
|
63095
64295
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
@@ -63263,6 +64463,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63263
64463
|
width = props.width,
|
|
63264
64464
|
_props$height = props.height,
|
|
63265
64465
|
height = _props$height === void 0 ? 250 : _props$height,
|
|
64466
|
+
virtual = props.virtual,
|
|
63266
64467
|
childrenKey = props.childrenKey,
|
|
63267
64468
|
keygen = props.keygen,
|
|
63268
64469
|
loader = props.loader,
|
|
@@ -63311,6 +64512,10 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63311
64512
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
63312
64513
|
focused = _useState2[0],
|
|
63313
64514
|
setFocused = _useState2[1];
|
|
64515
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
64516
|
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
64517
|
+
virtualExpanded = _useState4[0],
|
|
64518
|
+
setVirtualExpanded = _useState4[1];
|
|
63314
64519
|
var _useTreeSelect = use_treeselect({
|
|
63315
64520
|
value: valueProp,
|
|
63316
64521
|
onChange: onChangeProp,
|
|
@@ -63350,23 +64555,6 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63350
64555
|
onClearCreatedData = _useFilter.onClearCreatedData,
|
|
63351
64556
|
setInputText = _useFilter.setInputText;
|
|
63352
64557
|
var controlExpanded = 'expanded' in props || expanded !== null && expanded !== void 0 && expanded.length ? expanded : undefined;
|
|
63353
|
-
var _useTree = use_tree({
|
|
63354
|
-
mode: mode,
|
|
63355
|
-
value: value,
|
|
63356
|
-
data: data,
|
|
63357
|
-
unmatch: unmatch,
|
|
63358
|
-
disabled: disabled,
|
|
63359
|
-
active: multiple ? undefined : value[0],
|
|
63360
|
-
childrenKey: childrenKey,
|
|
63361
|
-
keygen: keygen,
|
|
63362
|
-
onExpand: onExpand,
|
|
63363
|
-
expanded: controlExpanded,
|
|
63364
|
-
defaultExpanded: defaultExpanded,
|
|
63365
|
-
defaultExpandAll: defaultExpandAll,
|
|
63366
|
-
isControlled: controlExpanded !== undefined
|
|
63367
|
-
}),
|
|
63368
|
-
datum = _useTree.datum,
|
|
63369
|
-
onExpandTree = _useTree.onExpand;
|
|
63370
64558
|
var renderMoreIcon = function renderMoreIcon() {
|
|
63371
64559
|
return icons_config.treeSelect.More;
|
|
63372
64560
|
};
|
|
@@ -63380,12 +64568,31 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63380
64568
|
childrenKey: childrenKey,
|
|
63381
64569
|
expanded: expanded,
|
|
63382
64570
|
rawData: rawData,
|
|
63383
|
-
onFilter: onFilter
|
|
63384
|
-
rawDatum: datum
|
|
64571
|
+
onFilter: onFilter
|
|
64572
|
+
// rawDatum: datum,
|
|
63385
64573
|
}),
|
|
63386
64574
|
tiledData = _useTiled.data,
|
|
63387
64575
|
onTiledFilter = _useTiled.onFilter,
|
|
63388
64576
|
tiledExpandIcons = _useTiled.expandIcons;
|
|
64577
|
+
var _useTree = use_tree({
|
|
64578
|
+
mode: mode,
|
|
64579
|
+
value: value,
|
|
64580
|
+
data: tiledData,
|
|
64581
|
+
unmatch: unmatch,
|
|
64582
|
+
virtual: virtual,
|
|
64583
|
+
disabled: disabled,
|
|
64584
|
+
active: multiple ? undefined : value[0],
|
|
64585
|
+
childrenKey: childrenKey,
|
|
64586
|
+
keygen: keygen,
|
|
64587
|
+
onExpand: onExpand,
|
|
64588
|
+
expanded: controlExpanded,
|
|
64589
|
+
defaultExpanded: defaultExpanded,
|
|
64590
|
+
defaultExpandAll: defaultExpandAll,
|
|
64591
|
+
isControlled: controlExpanded !== undefined
|
|
64592
|
+
}),
|
|
64593
|
+
datum = _useTree.datum,
|
|
64594
|
+
onExpandTree = _useTree.onExpand,
|
|
64595
|
+
unControlExpanded = _useTree.expanded;
|
|
63389
64596
|
var onCollapse = usePersistFn(function (collapse) {
|
|
63390
64597
|
onCollapseProp === null || onCollapseProp === void 0 || onCollapseProp(collapse);
|
|
63391
64598
|
if (blurEvent.current && !collapse) {
|
|
@@ -63408,10 +64615,10 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63408
64615
|
closePop = _usePopup.closePop,
|
|
63409
64616
|
PopupProvider = _usePopup.Provider,
|
|
63410
64617
|
popupProviderValue = _usePopup.providerValue;
|
|
63411
|
-
var
|
|
63412
|
-
|
|
63413
|
-
hadOpened =
|
|
63414
|
-
setHadOpened =
|
|
64618
|
+
var _useState5 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(false),
|
|
64619
|
+
_useState6 = slicedToArray_default()(_useState5, 2),
|
|
64620
|
+
hadOpened = _useState6[0],
|
|
64621
|
+
setHadOpened = _useState6[1];
|
|
63415
64622
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63416
64623
|
if (open) {
|
|
63417
64624
|
setHadOpened(true);
|
|
@@ -63452,6 +64659,10 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63452
64659
|
openPop();
|
|
63453
64660
|
}
|
|
63454
64661
|
});
|
|
64662
|
+
var handleExpanded = function handleExpanded(id) {
|
|
64663
|
+
setVirtualExpanded(id);
|
|
64664
|
+
onExpandTree(id);
|
|
64665
|
+
};
|
|
63455
64666
|
var focusAndOpen = function focusAndOpen() {
|
|
63456
64667
|
if (!focused) {
|
|
63457
64668
|
var _inputRef$current2;
|
|
@@ -63585,6 +64796,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63585
64796
|
if (from !== 'blur') {
|
|
63586
64797
|
focusAndOpen();
|
|
63587
64798
|
}
|
|
64799
|
+
setVirtualExpanded([]);
|
|
63588
64800
|
onTiledFilter === null || onTiledFilter === void 0 || onTiledFilter(trim ? text.trim() : text);
|
|
63589
64801
|
};
|
|
63590
64802
|
var handleChange = function handleChange(item, id) {
|
|
@@ -63738,26 +64950,32 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
63738
64950
|
if ('expanded' in props) {
|
|
63739
64951
|
treeProps.expanded = expanded;
|
|
63740
64952
|
}
|
|
64953
|
+
var style = {
|
|
64954
|
+
maxHeight: height
|
|
64955
|
+
};
|
|
63741
64956
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
63742
64957
|
className: classnames_default()(styles.tree, styles.treeWrapper),
|
|
63743
|
-
style:
|
|
63744
|
-
maxHeight: height
|
|
63745
|
-
},
|
|
64958
|
+
style: style,
|
|
63746
64959
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_tree_tree, objectSpread2_default()(objectSpread2_default()({
|
|
64960
|
+
rootStyle: {
|
|
64961
|
+
padding: '0 4px'
|
|
64962
|
+
},
|
|
63747
64963
|
jssStyle: jssStyle,
|
|
63748
64964
|
renderItem: renderItem
|
|
63749
64965
|
}, treeProps), {}, {
|
|
64966
|
+
virtual: virtual,
|
|
63750
64967
|
childrenKey: props.childrenKey,
|
|
63751
64968
|
line: line,
|
|
63752
64969
|
mode: mode,
|
|
64970
|
+
height: height,
|
|
63753
64971
|
data: tiledData,
|
|
63754
64972
|
keygen: keygen,
|
|
63755
64973
|
unmatch: unmatch,
|
|
63756
64974
|
value: value,
|
|
63757
64975
|
highlight: !multiple,
|
|
63758
64976
|
loader: loader,
|
|
63759
|
-
onExpand:
|
|
63760
|
-
expanded: controlExpanded,
|
|
64977
|
+
onExpand: handleExpanded,
|
|
64978
|
+
expanded: virtualExpanded.length > 0 ? virtualExpanded : controlExpanded || unControlExpanded,
|
|
63761
64979
|
defaultExpandAll: defaultExpandAll,
|
|
63762
64980
|
expandIcons: tiledExpandIcons,
|
|
63763
64981
|
disabled: disabled,
|
|
@@ -64848,7 +66066,9 @@ var Upload = function Upload(props0) {
|
|
|
64848
66066
|
value: value,
|
|
64849
66067
|
files: files,
|
|
64850
66068
|
onFileRemove: func.removeFile,
|
|
64851
|
-
onValueRemove: func.removeValue
|
|
66069
|
+
onValueRemove: func.removeValue,
|
|
66070
|
+
recoverValue: recycleValues,
|
|
66071
|
+
onValueRecover: func.recoverValue
|
|
64852
66072
|
}), !shouldRenderLeft && renderHandler()]
|
|
64853
66073
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
64854
66074
|
children: [shouldRenderLeft && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && renderHandler(), renderRecover()]
|
|
@@ -65039,6 +66259,7 @@ var UploadButton = function UploadButton(props) {
|
|
|
65039
66259
|
className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.button, uploading && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.buttonUploading)),
|
|
65040
66260
|
type: props.type || 'primary',
|
|
65041
66261
|
size: props.size,
|
|
66262
|
+
mode: props.mode,
|
|
65042
66263
|
onClick: onClick,
|
|
65043
66264
|
onKeyDown: button_handleKeyDown,
|
|
65044
66265
|
children: [uploading && [/*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -66487,14 +67708,14 @@ function getDirectionIconName() {
|
|
|
66487
67708
|
var rtl = true;
|
|
66488
67709
|
if (mode === 'left') {
|
|
66489
67710
|
if (rtl) {
|
|
66490
|
-
return double ? '
|
|
67711
|
+
return double ? 'ArrowRightDouble' : 'AngleRight';
|
|
66491
67712
|
}
|
|
66492
|
-
return double ? '
|
|
67713
|
+
return double ? 'ArrowLeftDouble' : 'AngleLeft';
|
|
66493
67714
|
}
|
|
66494
67715
|
if (rtl) {
|
|
66495
|
-
return double ? '
|
|
67716
|
+
return double ? 'ArrowLeftDouble' : 'AngleLeft';
|
|
66496
67717
|
}
|
|
66497
|
-
return double ? '
|
|
67718
|
+
return double ? 'ArrowRightDouble' : 'AngleRight';
|
|
66498
67719
|
}
|
|
66499
67720
|
;// CONCATENATED MODULE: ./src/utils/tree.ts
|
|
66500
67721
|
|
|
@@ -67422,7 +68643,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
67422
68643
|
|
|
67423
68644
|
|
|
67424
68645
|
/* harmony default export */ var src_0 = ({
|
|
67425
|
-
version: '3.6.0-beta.
|
|
68646
|
+
version: '3.6.0-beta.5'
|
|
67426
68647
|
});
|
|
67427
68648
|
}();
|
|
67428
68649
|
/******/ return __webpack_exports__;
|