shineout 3.9.0-beta.8 → 3.9.0
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/index.js +1 -1
- package/cjs/modal/modal.type.d.ts +7 -7
- package/cjs/tests/utils.d.ts +1 -1
- package/cjs/tests/utils.js +12 -3
- package/cjs/upload/button.type.d.ts +1 -1
- package/cjs/utils/index.d.ts +1 -1
- package/cjs/utils/index.js +2 -3
- package/dist/shineout.js +1589 -710
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/modal/modal.type.d.ts +7 -7
- package/esm/tests/utils.d.ts +1 -1
- package/esm/tests/utils.js +12 -3
- package/esm/upload/button.type.d.ts +1 -1
- package/esm/utils/index.d.ts +1 -1
- package/esm/utils/index.js +2 -3
- package/package.json +5 -5
package/dist/shineout.js
CHANGED
|
@@ -2989,173 +2989,175 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_RESULT__;var _typeof =
|
|
|
2989
2989
|
|
|
2990
2990
|
/***/ }),
|
|
2991
2991
|
|
|
2992
|
-
/***/
|
|
2992
|
+
/***/ 361:
|
|
2993
2993
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2994
2994
|
|
|
2995
2995
|
"use strict";
|
|
2996
2996
|
/**
|
|
2997
2997
|
* @license React
|
|
2998
|
-
* use-sync-external-store-shim.production.
|
|
2998
|
+
* use-sync-external-store-shim.production.js
|
|
2999
2999
|
*
|
|
3000
|
-
* Copyright (c)
|
|
3000
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3001
3001
|
*
|
|
3002
3002
|
* This source code is licensed under the MIT license found in the
|
|
3003
3003
|
* LICENSE file in the root directory of this source tree.
|
|
3004
3004
|
*/
|
|
3005
3005
|
|
|
3006
3006
|
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3007
|
+
|
|
3008
|
+
var React = __webpack_require__(9787);
|
|
3009
|
+
function is(x, y) {
|
|
3010
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
3010
3011
|
}
|
|
3011
|
-
var
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
function
|
|
3017
|
-
var
|
|
3018
|
-
|
|
3012
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
3013
|
+
useState = React.useState,
|
|
3014
|
+
useEffect = React.useEffect,
|
|
3015
|
+
useLayoutEffect = React.useLayoutEffect,
|
|
3016
|
+
useDebugValue = React.useDebugValue;
|
|
3017
|
+
function useSyncExternalStore$2(subscribe, getSnapshot) {
|
|
3018
|
+
var value = getSnapshot(),
|
|
3019
|
+
_useState = useState({
|
|
3019
3020
|
inst: {
|
|
3020
|
-
value:
|
|
3021
|
-
getSnapshot:
|
|
3021
|
+
value: value,
|
|
3022
|
+
getSnapshot: getSnapshot
|
|
3022
3023
|
}
|
|
3023
3024
|
}),
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
inst:
|
|
3025
|
+
inst = _useState[0].inst,
|
|
3026
|
+
forceUpdate = _useState[1];
|
|
3027
|
+
useLayoutEffect(function () {
|
|
3028
|
+
inst.value = value;
|
|
3029
|
+
inst.getSnapshot = getSnapshot;
|
|
3030
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
3031
|
+
inst: inst
|
|
3031
3032
|
});
|
|
3032
|
-
}, [
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
inst:
|
|
3033
|
+
}, [subscribe, value, getSnapshot]);
|
|
3034
|
+
useEffect(function () {
|
|
3035
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
3036
|
+
inst: inst
|
|
3036
3037
|
});
|
|
3037
|
-
return
|
|
3038
|
-
|
|
3039
|
-
inst:
|
|
3038
|
+
return subscribe(function () {
|
|
3039
|
+
checkIfSnapshotChanged(inst) && forceUpdate({
|
|
3040
|
+
inst: inst
|
|
3040
3041
|
});
|
|
3041
3042
|
});
|
|
3042
|
-
}, [
|
|
3043
|
-
|
|
3044
|
-
return
|
|
3043
|
+
}, [subscribe]);
|
|
3044
|
+
useDebugValue(value);
|
|
3045
|
+
return value;
|
|
3045
3046
|
}
|
|
3046
|
-
function
|
|
3047
|
-
var
|
|
3048
|
-
|
|
3047
|
+
function checkIfSnapshotChanged(inst) {
|
|
3048
|
+
var latestGetSnapshot = inst.getSnapshot;
|
|
3049
|
+
inst = inst.value;
|
|
3049
3050
|
try {
|
|
3050
|
-
var
|
|
3051
|
-
return !
|
|
3052
|
-
} catch (
|
|
3051
|
+
var nextValue = latestGetSnapshot();
|
|
3052
|
+
return !objectIs(inst, nextValue);
|
|
3053
|
+
} catch (error) {
|
|
3053
3054
|
return !0;
|
|
3054
3055
|
}
|
|
3055
3056
|
}
|
|
3056
|
-
function
|
|
3057
|
-
return
|
|
3057
|
+
function useSyncExternalStore$1(subscribe, getSnapshot) {
|
|
3058
|
+
return getSnapshot();
|
|
3058
3059
|
}
|
|
3059
|
-
var
|
|
3060
|
-
exports.useSyncExternalStore = void 0 !==
|
|
3060
|
+
var shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
|
|
3061
|
+
exports.useSyncExternalStore = void 0 !== React.useSyncExternalStore ? React.useSyncExternalStore : shim;
|
|
3061
3062
|
|
|
3062
3063
|
/***/ }),
|
|
3063
3064
|
|
|
3064
|
-
/***/
|
|
3065
|
+
/***/ 73:
|
|
3065
3066
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3066
3067
|
|
|
3067
3068
|
"use strict";
|
|
3068
3069
|
/**
|
|
3069
3070
|
* @license React
|
|
3070
|
-
* use-sync-external-store-shim/with-selector.production.
|
|
3071
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
3071
3072
|
*
|
|
3072
|
-
* Copyright (c)
|
|
3073
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3073
3074
|
*
|
|
3074
3075
|
* This source code is licensed under the MIT license found in the
|
|
3075
3076
|
* LICENSE file in the root directory of this source tree.
|
|
3076
3077
|
*/
|
|
3077
3078
|
|
|
3078
3079
|
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3080
|
+
|
|
3081
|
+
var React = __webpack_require__(9787),
|
|
3082
|
+
shim = __webpack_require__(4291);
|
|
3083
|
+
function is(x, y) {
|
|
3084
|
+
return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
|
|
3085
|
+
}
|
|
3086
|
+
var objectIs = "function" === typeof Object.is ? Object.is : is,
|
|
3087
|
+
useSyncExternalStore = shim.useSyncExternalStore,
|
|
3088
|
+
useRef = React.useRef,
|
|
3089
|
+
useEffect = React.useEffect,
|
|
3090
|
+
useMemo = React.useMemo,
|
|
3091
|
+
useDebugValue = React.useDebugValue;
|
|
3092
|
+
exports.useSyncExternalStoreWithSelector = function (subscribe, getSnapshot, getServerSnapshot, selector, isEqual) {
|
|
3093
|
+
var instRef = useRef(null);
|
|
3094
|
+
if (null === instRef.current) {
|
|
3095
|
+
var inst = {
|
|
3094
3096
|
hasValue: !1,
|
|
3095
3097
|
value: null
|
|
3096
3098
|
};
|
|
3097
|
-
|
|
3098
|
-
} else
|
|
3099
|
-
|
|
3100
|
-
function
|
|
3101
|
-
if (!
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
if (void 0 !==
|
|
3106
|
-
var
|
|
3107
|
-
if (
|
|
3099
|
+
instRef.current = inst;
|
|
3100
|
+
} else inst = instRef.current;
|
|
3101
|
+
instRef = useMemo(function () {
|
|
3102
|
+
function memoizedSelector(nextSnapshot) {
|
|
3103
|
+
if (!hasMemo) {
|
|
3104
|
+
hasMemo = !0;
|
|
3105
|
+
memoizedSnapshot = nextSnapshot;
|
|
3106
|
+
nextSnapshot = selector(nextSnapshot);
|
|
3107
|
+
if (void 0 !== isEqual && inst.hasValue) {
|
|
3108
|
+
var currentSelection = inst.value;
|
|
3109
|
+
if (isEqual(currentSelection, nextSnapshot)) return memoizedSelection = currentSelection;
|
|
3108
3110
|
}
|
|
3109
|
-
return
|
|
3110
|
-
}
|
|
3111
|
-
|
|
3112
|
-
if (
|
|
3113
|
-
var
|
|
3114
|
-
if (void 0 !==
|
|
3115
|
-
|
|
3116
|
-
return
|
|
3117
|
-
}
|
|
3118
|
-
var
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3111
|
+
return memoizedSelection = nextSnapshot;
|
|
3112
|
+
}
|
|
3113
|
+
currentSelection = memoizedSelection;
|
|
3114
|
+
if (objectIs(memoizedSnapshot, nextSnapshot)) return currentSelection;
|
|
3115
|
+
var nextSelection = selector(nextSnapshot);
|
|
3116
|
+
if (void 0 !== isEqual && isEqual(currentSelection, nextSelection)) return memoizedSnapshot = nextSnapshot, currentSelection;
|
|
3117
|
+
memoizedSnapshot = nextSnapshot;
|
|
3118
|
+
return memoizedSelection = nextSelection;
|
|
3119
|
+
}
|
|
3120
|
+
var hasMemo = !1,
|
|
3121
|
+
memoizedSnapshot,
|
|
3122
|
+
memoizedSelection,
|
|
3123
|
+
maybeGetServerSnapshot = void 0 === getServerSnapshot ? null : getServerSnapshot;
|
|
3122
3124
|
return [function () {
|
|
3123
|
-
return
|
|
3124
|
-
}, null ===
|
|
3125
|
-
return
|
|
3125
|
+
return memoizedSelector(getSnapshot());
|
|
3126
|
+
}, null === maybeGetServerSnapshot ? void 0 : function () {
|
|
3127
|
+
return memoizedSelector(maybeGetServerSnapshot());
|
|
3126
3128
|
}];
|
|
3127
|
-
}, [
|
|
3128
|
-
var
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
}, [
|
|
3133
|
-
|
|
3134
|
-
return
|
|
3129
|
+
}, [getSnapshot, getServerSnapshot, selector, isEqual]);
|
|
3130
|
+
var value = useSyncExternalStore(subscribe, instRef[0], instRef[1]);
|
|
3131
|
+
useEffect(function () {
|
|
3132
|
+
inst.hasValue = !0;
|
|
3133
|
+
inst.value = value;
|
|
3134
|
+
}, [value]);
|
|
3135
|
+
useDebugValue(value);
|
|
3136
|
+
return value;
|
|
3135
3137
|
};
|
|
3136
3138
|
|
|
3137
3139
|
/***/ }),
|
|
3138
3140
|
|
|
3139
|
-
/***/
|
|
3141
|
+
/***/ 4291:
|
|
3140
3142
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3141
3143
|
|
|
3142
3144
|
"use strict";
|
|
3143
3145
|
|
|
3144
3146
|
|
|
3145
3147
|
if (true) {
|
|
3146
|
-
module.exports = __webpack_require__(
|
|
3148
|
+
module.exports = __webpack_require__(361);
|
|
3147
3149
|
} else {}
|
|
3148
3150
|
|
|
3149
3151
|
/***/ }),
|
|
3150
3152
|
|
|
3151
|
-
/***/
|
|
3153
|
+
/***/ 3384:
|
|
3152
3154
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3153
3155
|
|
|
3154
3156
|
"use strict";
|
|
3155
3157
|
|
|
3156
3158
|
|
|
3157
3159
|
if (true) {
|
|
3158
|
-
module.exports = __webpack_require__(
|
|
3160
|
+
module.exports = __webpack_require__(73);
|
|
3159
3161
|
} else {}
|
|
3160
3162
|
|
|
3161
3163
|
/***/ }),
|
|
@@ -3726,7 +3728,7 @@ const figma = [
|
|
|
3726
3728
|
},
|
|
3727
3729
|
{
|
|
3728
3730
|
name: '橘黄色-1',
|
|
3729
|
-
value: '#
|
|
3731
|
+
value: '#FFF8E6',
|
|
3730
3732
|
describe: '浅色背景',
|
|
3731
3733
|
token: 'Orange-1',
|
|
3732
3734
|
locked: true,
|
|
@@ -3740,56 +3742,56 @@ const figma = [
|
|
|
3740
3742
|
},
|
|
3741
3743
|
{
|
|
3742
3744
|
name: '橘黄色-2',
|
|
3743
|
-
value: '#
|
|
3745
|
+
value: '#FFEABA',
|
|
3744
3746
|
describe: '聚焦',
|
|
3745
3747
|
token: 'Orange-2',
|
|
3746
3748
|
locked: true,
|
|
3747
3749
|
},
|
|
3748
3750
|
{
|
|
3749
3751
|
name: '橘黄色-3',
|
|
3750
|
-
value: '#
|
|
3752
|
+
value: '#FFD98D',
|
|
3751
3753
|
describe: '禁用',
|
|
3752
3754
|
token: 'Orange-3',
|
|
3753
3755
|
locked: true,
|
|
3754
3756
|
},
|
|
3755
3757
|
{
|
|
3756
3758
|
name: '橘黄色-4',
|
|
3757
|
-
value: '#
|
|
3759
|
+
value: '#FFC45F',
|
|
3758
3760
|
describe: '悬浮',
|
|
3759
3761
|
token: 'Orange-4',
|
|
3760
3762
|
locked: true,
|
|
3761
3763
|
},
|
|
3762
3764
|
{
|
|
3763
3765
|
name: '橘黄色-5',
|
|
3764
|
-
value: '#
|
|
3766
|
+
value: '#FFAD32',
|
|
3765
3767
|
describe: '悬浮',
|
|
3766
3768
|
token: 'Orange-5',
|
|
3767
3769
|
locked: true,
|
|
3768
3770
|
},
|
|
3769
3771
|
{
|
|
3770
3772
|
name: '橘黄色-6',
|
|
3771
|
-
value: '#
|
|
3773
|
+
value: '#FF9204',
|
|
3772
3774
|
describe: '常规',
|
|
3773
3775
|
token: 'Orange-6',
|
|
3774
3776
|
locked: true,
|
|
3775
3777
|
},
|
|
3776
3778
|
{
|
|
3777
3779
|
name: '橘黄色-7',
|
|
3778
|
-
value: '#
|
|
3780
|
+
value: '#D27102',
|
|
3779
3781
|
describe: '点击',
|
|
3780
3782
|
token: 'Orange-7',
|
|
3781
3783
|
locked: true,
|
|
3782
3784
|
},
|
|
3783
3785
|
{
|
|
3784
3786
|
name: '橘黄色-8',
|
|
3785
|
-
value: '#
|
|
3787
|
+
value: '#A65401',
|
|
3786
3788
|
describe: '-8',
|
|
3787
3789
|
token: 'Orange-8',
|
|
3788
3790
|
locked: true,
|
|
3789
3791
|
},
|
|
3790
3792
|
{
|
|
3791
3793
|
name: '橘黄色-9',
|
|
3792
|
-
value: '#
|
|
3794
|
+
value: '#793900',
|
|
3793
3795
|
describe: '-9',
|
|
3794
3796
|
token: 'Orange-9',
|
|
3795
3797
|
locked: true,
|
|
@@ -6782,6 +6784,7 @@ var jsx_runtime = __webpack_require__(3428);
|
|
|
6782
6784
|
|
|
6783
6785
|
|
|
6784
6786
|
|
|
6787
|
+
var emptyNoDataIdCounter = 0;
|
|
6785
6788
|
function icon(paths) {
|
|
6786
6789
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("svg", {
|
|
6787
6790
|
viewBox: "0 0 24 24",
|
|
@@ -6999,154 +7002,165 @@ var icons_link = ['M8.83231 20.7322C7.27024 22.2943 4.73759 22.2943 3.17546 20.7
|
|
|
6999
7002
|
var filter = /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7000
7003
|
d: "M19.9653 2.10633C20.5175 2.10633 20.9652 2.55404 20.9652 3.10633C20.9652 3.65861 20.5175 4.10633 19.9653 4.10633H19.6834L14.9666 11.3709V19.8936C14.9666 20.9981 14.0712 21.8936 12.9666 21.8936H10.9666C9.86204 21.8936 8.96662 20.9981 8.96662 19.8936V11.3709L4.35408 4.10632L4.03906 4.10632C3.48677 4.10632 3.03906 3.65861 3.03906 3.10632C3.03906 2.55404 3.48677 2.10632 4.03906 2.10632L19.9653 2.10633ZM6.75776 4.10632L10.8119 10.5206C10.913 10.6804 10.9666 10.8657 10.9666 11.0548V18.8312C10.9666 19.3835 11.4143 19.8312 11.9666 19.8312C12.5189 19.8312 12.9666 19.3835 12.9666 18.8312V11.0609C12.9666 10.868 13.0224 10.6792 13.1273 10.5172L17.2797 4.10633L6.75776 4.10632Z"
|
|
7001
7004
|
});
|
|
7002
|
-
var
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7005
|
+
var EmptyNoData = function EmptyNoData() {
|
|
7006
|
+
var uniqueIdRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)();
|
|
7007
|
+
if (!uniqueIdRef.current) {
|
|
7008
|
+
uniqueIdRef.current = "empty-".concat(emptyNoDataIdCounter++);
|
|
7009
|
+
}
|
|
7010
|
+
var uniqueId = uniqueIdRef.current;
|
|
7011
|
+
var clip0 = "clip0_".concat(uniqueId);
|
|
7012
|
+
var paint0 = "paint0_linear_".concat(uniqueId);
|
|
7013
|
+
var filter0 = "filter0_f_".concat(uniqueId);
|
|
7014
|
+
var filter1 = "filter1_d_".concat(uniqueId);
|
|
7015
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("svg", {
|
|
7016
|
+
width: "100",
|
|
7017
|
+
height: "75",
|
|
7018
|
+
viewBox: "0 0 100 75",
|
|
7019
|
+
fill: "none",
|
|
7020
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
7021
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("g", {
|
|
7022
|
+
clipPath: "url(#".concat(clip0, ")"),
|
|
7023
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7024
|
+
d: "M100 75C100 63.3607 77.6144 53.9257 50 53.9257C22.3857 53.9257 0 63.3607 0 75H100Z",
|
|
7025
|
+
fill: "url(#".concat(paint0, ")")
|
|
7026
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("g", {
|
|
7027
|
+
opacity: "0.3",
|
|
7028
|
+
filter: "url(#".concat(filter0, ")"),
|
|
7029
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7030
|
+
d: "M50.3087 70.0413C69.5706 70.0413 85.185 68.2375 85.185 66.0125C85.185 63.7875 69.5706 61.9835 50.3087 61.9835C31.0469 61.9835 15.4321 63.7875 15.4321 66.0125C15.4321 68.2375 31.0469 70.0413 50.3087 70.0413Z",
|
|
7031
|
+
fill: "#979EB0"
|
|
7032
|
+
})
|
|
7033
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7034
|
+
d: "M22.6082 23.6395C22.782 23.2127 23.1957 22.9338 23.6548 22.9338H75.7168C76.1718 22.9338 76.5818 23.2071 76.7593 23.6275L82.9493 38.3482H16.6184L22.6082 23.6395Z",
|
|
7035
|
+
fill: "#CCCFD7"
|
|
7036
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7037
|
+
d: "M75.9819 23.9172V37.2382H81.2882L75.9819 23.9172Z",
|
|
7038
|
+
fill: "#999DA8"
|
|
7039
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7040
|
+
d: "M18.877 37.0161H81.0701C82.6314 37.0161 83.897 38.2871 83.897 39.8547V61.7805C83.897 64.2888 81.872 66.3225 79.3739 66.3225H20.5732C18.0752 66.3225 16.05 64.2888 16.05 61.7805V39.8547C16.05 38.2871 17.3157 37.0161 18.877 37.0161Z",
|
|
7041
|
+
fill: "#E8EBF0"
|
|
7042
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("g", {
|
|
7043
|
+
filter: "url(#".concat(filter1, ")"),
|
|
7044
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7045
|
+
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
7046
|
+
fill: "black"
|
|
7047
|
+
})
|
|
7048
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7032
7049
|
d: "M16.0493 42.3192C16.0493 39.8108 16.0019 37.715 20.573 37.7774H79.3737C83.5612 37.7774 83.8968 39.8108 83.8968 42.3192V61.3998C83.8968 63.9087 81.8718 65.9419 79.3737 65.9419H20.573C18.075 65.9419 16.0493 63.9087 16.0493 61.3998V42.3192Z",
|
|
7033
|
-
fill: "
|
|
7034
|
-
})
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
fill: "#E8EBF0"
|
|
7070
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7071
|
-
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
7072
|
-
fill: "#E8EBF0"
|
|
7073
|
-
})]
|
|
7074
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("defs", {
|
|
7075
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("filter", {
|
|
7076
|
-
id: "filter0_f_4044_10434",
|
|
7077
|
-
x: "9.43213",
|
|
7078
|
-
y: "55.9835",
|
|
7079
|
-
width: "81.7529",
|
|
7080
|
-
height: "20.0577",
|
|
7081
|
-
filterUnits: "userSpaceOnUse",
|
|
7082
|
-
colorInterpolationFilters: "sRGB",
|
|
7083
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("feFlood", {
|
|
7084
|
-
floodOpacity: "0",
|
|
7085
|
-
result: "BackgroundImageFix"
|
|
7086
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7087
|
-
mode: "normal",
|
|
7088
|
-
in: "SourceGraphic",
|
|
7089
|
-
in2: "BackgroundImageFix",
|
|
7090
|
-
result: "shape"
|
|
7091
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feGaussianBlur", {
|
|
7092
|
-
stdDeviation: "3",
|
|
7093
|
-
result: "effect1_foregroundBlur_4044_10434"
|
|
7050
|
+
fill: "#F4F5F8"
|
|
7051
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7052
|
+
d: "M23.4412 23.8855V37.0162H18.3242L23.4412 23.8855Z",
|
|
7053
|
+
fill: "#999DA8"
|
|
7054
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7055
|
+
d: "M60.3971 50.7178H39.5502C38.0849 50.7178 36.897 51.9106 36.897 53.382C36.897 54.8534 38.0849 56.0462 39.5502 56.0462H60.3971C61.8625 56.0462 63.0501 54.8534 63.0501 53.382C63.0501 51.9106 61.8625 50.7178 60.3971 50.7178Z",
|
|
7056
|
+
fill: "#666C7C"
|
|
7057
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7058
|
+
d: "M60.3971 49.9565H39.5502C38.0849 49.9565 36.897 51.1494 36.897 52.6208C36.897 54.0922 38.0849 55.285 39.5502 55.285H60.3971C61.8625 55.285 63.0501 54.0922 63.0501 52.6208C63.0501 51.1494 61.8625 49.9565 60.3971 49.9565Z",
|
|
7059
|
+
fill: "#999DA8"
|
|
7060
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7061
|
+
fillRule: "evenodd",
|
|
7062
|
+
clipRule: "evenodd",
|
|
7063
|
+
d: "M46.041 3.14062C42.6319 3.14062 39.8682 5.91575 39.8682 9.33899V11.4859C39.8682 14.9092 42.6319 17.6842 46.041 17.6842H54.8002C58.2093 17.6842 60.9731 14.9092 60.9731 11.4859V9.33899C60.9731 5.91575 58.2093 3.14062 54.8002 3.14062H46.041ZM47.3169 21.0086L49.386 17.6842H45.2478L47.3169 21.0086Z",
|
|
7064
|
+
fill: "#E8EBF0"
|
|
7065
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7066
|
+
d: "M45.6834 8.54285L47.4941 11.6922H43.8726L45.6834 8.54285Z",
|
|
7067
|
+
fill: "#999DA8"
|
|
7068
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7069
|
+
d: "M52.304 8.54285H49.1677V11.6921H52.304V8.54285Z",
|
|
7070
|
+
fill: "#999DA8"
|
|
7071
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7072
|
+
d: "M55.6802 11.6919C56.5463 11.6919 57.2484 10.9869 57.2484 10.1172C57.2484 9.2476 56.5463 8.5426 55.6802 8.5426C54.8142 8.5426 54.1121 9.2476 54.1121 10.1172C54.1121 10.9869 54.8142 11.6919 55.6802 11.6919Z",
|
|
7073
|
+
fill: "#999DA8"
|
|
7074
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7075
|
+
d: "M67.7256 5.8507C66.5081 6.69694 63.5181 6.751 62.3457 7.09731L63.5875 5.64293C64.415 4.6041 64.6631 4.10547 65.6562 2.11091C66.6493 0.116362 69.3118 -0.105256 70.415 0.0332553C69.7943 1.27985 70.415 3.98081 67.7256 5.8507Z",
|
|
7076
|
+
fill: "#E8EBF0"
|
|
7077
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7078
|
+
d: "M46.257 34.8904C45.3444 35.1307 43.5421 34.5087 42.7649 34.4595L43.824 33.8603C44.5451 33.4193 44.802 33.175 45.8298 32.198C46.8574 31.221 48.4998 31.6709 49.1305 31.9953C48.4883 32.606 48.2737 34.3593 46.257 34.8904Z",
|
|
7079
|
+
fill: "#E8EBF0"
|
|
7080
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7081
|
+
d: "M37.262 32.7723C37.13 32.5427 37.2462 32.2485 37.4982 32.1696C39.7646 31.4593 49.3015 28.2658 55.6537 22.9713C62.0347 17.653 67.6725 11.576 69.1256 9.9791C69.3069 9.77991 69.6263 9.81841 69.76 10.0521C69.845 10.1989 69.8294 10.3803 69.7169 10.507C68.6225 11.7406 62.8044 18.1953 56.0675 23.6911C48.7371 29.6708 39.4667 32.4671 37.7105 32.9602C37.5349 33.0096 37.3532 32.9308 37.262 32.7723Z",
|
|
7082
|
+
fill: "#E8EBF0"
|
|
7083
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("path", {
|
|
7084
|
+
d: "M26.0283 27.1925C25.977 26.9505 26.1514 26.7154 26.396 26.6852C27.3291 26.5701 29.6586 26.1971 33.309 25.0577C37.011 23.9021 40.6908 21.2137 41.9723 20.2199C42.1914 20.05 42.5167 20.1675 42.5743 20.4394C42.6023 20.572 42.5585 20.7071 42.454 20.793C41.598 21.497 37.5626 24.6932 33.4811 25.8705C29.5763 26.9969 27.2876 27.3842 26.4592 27.5011C26.2561 27.5298 26.0709 27.394 26.0283 27.1925Z",
|
|
7085
|
+
fill: "#E8EBF0"
|
|
7094
7086
|
})]
|
|
7095
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("
|
|
7096
|
-
|
|
7097
|
-
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
|
|
7108
|
-
|
|
7109
|
-
|
|
7110
|
-
|
|
7111
|
-
|
|
7112
|
-
|
|
7113
|
-
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
}), /*#__PURE__*/(0,jsx_runtime.
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
|
|
7120
|
-
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
7125
|
-
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
|
|
7134
|
-
|
|
7135
|
-
|
|
7136
|
-
|
|
7137
|
-
|
|
7138
|
-
|
|
7087
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("defs", {
|
|
7088
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsxs)("filter", {
|
|
7089
|
+
id: filter0,
|
|
7090
|
+
x: "9.43213",
|
|
7091
|
+
y: "55.9835",
|
|
7092
|
+
width: "81.7529",
|
|
7093
|
+
height: "20.0577",
|
|
7094
|
+
filterUnits: "userSpaceOnUse",
|
|
7095
|
+
colorInterpolationFilters: "sRGB",
|
|
7096
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("feFlood", {
|
|
7097
|
+
floodOpacity: "0",
|
|
7098
|
+
result: "BackgroundImageFix"
|
|
7099
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7100
|
+
mode: "normal",
|
|
7101
|
+
in: "SourceGraphic",
|
|
7102
|
+
in2: "BackgroundImageFix",
|
|
7103
|
+
result: "shape"
|
|
7104
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feGaussianBlur", {
|
|
7105
|
+
stdDeviation: "3",
|
|
7106
|
+
result: "effect1_foregroundBlur_4044_10434"
|
|
7107
|
+
})]
|
|
7108
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("filter", {
|
|
7109
|
+
id: filter1,
|
|
7110
|
+
x: "16.0493",
|
|
7111
|
+
y: "37.776",
|
|
7112
|
+
width: "67.8474",
|
|
7113
|
+
height: "30.1659",
|
|
7114
|
+
filterUnits: "userSpaceOnUse",
|
|
7115
|
+
colorInterpolationFilters: "sRGB",
|
|
7116
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("feFlood", {
|
|
7117
|
+
floodOpacity: "0",
|
|
7118
|
+
result: "BackgroundImageFix"
|
|
7119
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feColorMatrix", {
|
|
7120
|
+
in: "SourceAlpha",
|
|
7121
|
+
type: "matrix",
|
|
7122
|
+
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
7123
|
+
result: "hardAlpha"
|
|
7124
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feOffset", {
|
|
7125
|
+
dy: "2"
|
|
7126
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feColorMatrix", {
|
|
7127
|
+
type: "matrix",
|
|
7128
|
+
values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
|
|
7129
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7130
|
+
mode: "normal",
|
|
7131
|
+
in2: "BackgroundImageFix",
|
|
7132
|
+
result: "effect1_dropShadow_4044_10434"
|
|
7133
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7134
|
+
mode: "normal",
|
|
7135
|
+
in: "SourceGraphic",
|
|
7136
|
+
in2: "effect1_dropShadow_4044_10434",
|
|
7137
|
+
result: "shape"
|
|
7138
|
+
})]
|
|
7139
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("linearGradient", {
|
|
7140
|
+
id: paint0,
|
|
7141
|
+
x1: "50",
|
|
7142
|
+
y1: "53.9257",
|
|
7143
|
+
x2: "50",
|
|
7144
|
+
y2: "75",
|
|
7145
|
+
gradientUnits: "userSpaceOnUse",
|
|
7146
|
+
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("stop", {
|
|
7147
|
+
stopColor: "#E9EBEF"
|
|
7148
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("stop", {
|
|
7149
|
+
offset: "1",
|
|
7150
|
+
stopColor: "#E9EBEF",
|
|
7151
|
+
stopOpacity: "0"
|
|
7152
|
+
})]
|
|
7153
|
+
}), /*#__PURE__*/(0,jsx_runtime.jsx)("clipPath", {
|
|
7154
|
+
id: clip0,
|
|
7155
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
7156
|
+
width: "100",
|
|
7157
|
+
height: "75",
|
|
7158
|
+
fill: "white"
|
|
7159
|
+
})
|
|
7139
7160
|
})]
|
|
7140
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("clipPath", {
|
|
7141
|
-
id: "clip0_4044_10434",
|
|
7142
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsx)("rect", {
|
|
7143
|
-
width: "100",
|
|
7144
|
-
height: "75",
|
|
7145
|
-
fill: "white"
|
|
7146
|
-
})
|
|
7147
7161
|
})]
|
|
7148
|
-
})
|
|
7149
|
-
}
|
|
7162
|
+
});
|
|
7163
|
+
};
|
|
7150
7164
|
var Icons = {
|
|
7151
7165
|
SortAsc: SortAsc,
|
|
7152
7166
|
SortDesc: SortDesc,
|
|
@@ -7188,7 +7202,7 @@ var Icons = {
|
|
|
7188
7202
|
StarFill: icon(pcStarFill),
|
|
7189
7203
|
Link: icon(icons_link),
|
|
7190
7204
|
Loading: icon(loading),
|
|
7191
|
-
EmptyNoData:
|
|
7205
|
+
EmptyNoData: /*#__PURE__*/(0,jsx_runtime.jsx)(EmptyNoData, {})
|
|
7192
7206
|
};
|
|
7193
7207
|
/* harmony default export */ var icons = (Icons);
|
|
7194
7208
|
;// CONCATENATED MODULE: ../base/src/icons/config.tsx
|
|
@@ -7201,9 +7215,9 @@ var config = {
|
|
|
7201
7215
|
Info: icons.InfoCircleFill,
|
|
7202
7216
|
Success: icons.CheckCircleFill,
|
|
7203
7217
|
Warning: icons.WarningCircleFill,
|
|
7204
|
-
Danger: icons.
|
|
7218
|
+
Danger: icons.CloseFill,
|
|
7205
7219
|
ConfirmWarning: icons.WarningCircleFill,
|
|
7206
|
-
Error: icons.
|
|
7220
|
+
Error: icons.CloseFill,
|
|
7207
7221
|
Confirm: icons.HelpCircleFill
|
|
7208
7222
|
},
|
|
7209
7223
|
form: {
|
|
@@ -12386,7 +12400,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12386
12400
|
};
|
|
12387
12401
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12388
12402
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12389
|
-
/* harmony default export */ var version = ('3.9.0
|
|
12403
|
+
/* harmony default export */ var version = ('3.9.0');
|
|
12390
12404
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12405
|
|
|
12392
12406
|
|
|
@@ -12659,16 +12673,16 @@ var Token = {
|
|
|
12659
12673
|
'Neutral-7': '#666C7C',
|
|
12660
12674
|
'Neutral-8': '#333E59',
|
|
12661
12675
|
'Neutral-9': '#141737',
|
|
12662
|
-
'Orange-1': '#
|
|
12676
|
+
'Orange-1': '#FFF8E6',
|
|
12663
12677
|
'Orange-10': '#4D2100',
|
|
12664
|
-
'Orange-2': '#
|
|
12665
|
-
'Orange-3': '#
|
|
12666
|
-
'Orange-4': '#
|
|
12667
|
-
'Orange-5': '#
|
|
12668
|
-
'Orange-6': '#
|
|
12669
|
-
'Orange-7': '#
|
|
12670
|
-
'Orange-8': '#
|
|
12671
|
-
'Orange-9': '#
|
|
12678
|
+
'Orange-2': '#FFEABA',
|
|
12679
|
+
'Orange-3': '#FFD98D',
|
|
12680
|
+
'Orange-4': '#FFC45F',
|
|
12681
|
+
'Orange-5': '#FFAD32',
|
|
12682
|
+
'Orange-6': '#FF9204',
|
|
12683
|
+
'Orange-7': '#D27102',
|
|
12684
|
+
'Orange-8': '#A65401',
|
|
12685
|
+
'Orange-9': '#793900',
|
|
12672
12686
|
'Brown-1': '#FAF4E3',
|
|
12673
12687
|
'Brown-10': '#4D2100',
|
|
12674
12688
|
'Brown-2': '#EBDDBC',
|
|
@@ -14666,6 +14680,7 @@ var sliderTokens = {
|
|
|
14666
14680
|
|
|
14667
14681
|
var spinTokens = {
|
|
14668
14682
|
spinTipFontColor: 'Brand-6',
|
|
14683
|
+
spinTipFontSize: 'Font-14',
|
|
14669
14684
|
spinVerticalMargin: 'Spacing-4',
|
|
14670
14685
|
spinHorizontalMargin: 'Spacing-4',
|
|
14671
14686
|
spinColor: 'Brand-6',
|
|
@@ -14771,7 +14786,7 @@ var switchTokens = {
|
|
|
14771
14786
|
switchDisabledCircleUncheckedFill: 'Neutral-fill-2',
|
|
14772
14787
|
switchDisabledFontColor: 'Neutral-text-2',
|
|
14773
14788
|
switchLoadingBackgroundColor: 'Neutral-fill-2',
|
|
14774
|
-
switchLoadingCircleFill: 'Neutral-
|
|
14789
|
+
switchLoadingCircleFill: 'Neutral-fill-3',
|
|
14775
14790
|
switchLoadingFontColor: 'Neutral-text-2',
|
|
14776
14791
|
switchCheckedBackgroundColor: 'Brand-6',
|
|
14777
14792
|
switchCheckedCircleFill: 'Neutral-fill-1',
|
|
@@ -14879,7 +14894,8 @@ var tabsTokens = {
|
|
|
14879
14894
|
tabsTabBorderRadius: 'Radius-default',
|
|
14880
14895
|
tabsNearlyMargin: 'Spacing-4',
|
|
14881
14896
|
tabsLinePaddingX: 'Spacing-8',
|
|
14882
|
-
|
|
14897
|
+
tabsLinePaddingTop: 'Spacing-6',
|
|
14898
|
+
tabsLinePaddingBottom: 'Spacing-6',
|
|
14883
14899
|
tabsLineHrBackgroundColor: 'Neutral-border-1',
|
|
14884
14900
|
tabsLineAfterBackgroundColor: 'Brand-6',
|
|
14885
14901
|
tabsLineInnerPaddingX: 'Spacing-8',
|
|
@@ -14966,12 +14982,20 @@ var tagTokens = {
|
|
|
14966
14982
|
tagInfoOutlineDisabledFontColor: 'Brand-3',
|
|
14967
14983
|
tagInfoOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14968
14984
|
tagInfoOutlineDisabledBorderColor: 'Brand-3',
|
|
14985
|
+
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
14986
|
+
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
14987
|
+
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
14969
14988
|
tagInfoFillFontColor: 'Neutral-text-1',
|
|
14970
14989
|
tagInfoFillBackgroundColor: 'Brand-6',
|
|
14971
14990
|
tagInfoFillBorderColor: 'Brand-6',
|
|
14972
14991
|
tagInfoFillDisabledFontColor: 'Neutral-text-1',
|
|
14973
14992
|
tagInfoFillDisabledBackgroundColor: 'Brand-3',
|
|
14974
14993
|
tagInfoFillDisabledBorderColor: 'Brand-3',
|
|
14994
|
+
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
14995
|
+
tagInfoIconFontColor: 'Brand-6',
|
|
14996
|
+
tagInfoIconDisabledFontColor: 'Brand-3',
|
|
14997
|
+
tagInfoIconHoverBackgroundColor: 'Brand-2',
|
|
14998
|
+
tagDefaultLineHeight: 'Line-height-dynamic',
|
|
14975
14999
|
tagDefaultFontColor: 'Neutral-text-5',
|
|
14976
15000
|
tagDefaultBackgroundColor: 'Neutral-fill-2',
|
|
14977
15001
|
tagDefaultBorderColor: 'Neutral-fill-2',
|
|
@@ -14990,6 +15014,11 @@ var tagTokens = {
|
|
|
14990
15014
|
tagDefaultFillDisabledFontColor: 'Neutral-text-2',
|
|
14991
15015
|
tagDefaultFillDisabledBackgroundColor: 'Neutral-fill-3',
|
|
14992
15016
|
tagDefaultFillDisabledBorderColor: 'Neutral-fill-3',
|
|
15017
|
+
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
15018
|
+
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
15019
|
+
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
15020
|
+
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
15021
|
+
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
14993
15022
|
tagSuccessFontColor: 'Success-6',
|
|
14994
15023
|
tagSuccessBackgroundColor: 'Success-1',
|
|
14995
15024
|
tagSuccessBorderColor: 'Success-1',
|
|
@@ -15002,12 +15031,18 @@ var tagTokens = {
|
|
|
15002
15031
|
tagSuccessOutlineDisabledFontColor: 'Success-3',
|
|
15003
15032
|
tagSuccessOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
15004
15033
|
tagSuccessOutlineDisabledBorderColor: 'Success-3',
|
|
15034
|
+
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
15035
|
+
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15005
15036
|
tagSuccessFillFontColor: 'Neutral-text-1',
|
|
15006
15037
|
tagSuccessFillBackgroundColor: 'Success-6',
|
|
15007
15038
|
tagSuccessFillBorderColor: 'Success-6',
|
|
15008
15039
|
tagSuccessFillDisabledFontColor: 'Neutral-text-1',
|
|
15009
15040
|
tagSuccessFillDisabledBackgroundColor: 'Success-3',
|
|
15010
15041
|
tagSuccessFillDisabledBorderColor: 'Success-3',
|
|
15042
|
+
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
15043
|
+
tagSuccessIconFontColor: 'Success-6',
|
|
15044
|
+
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
15045
|
+
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
15011
15046
|
tagWarningFontColor: 'Warning-6',
|
|
15012
15047
|
tagWarningBackgroundColor: 'Warning-1',
|
|
15013
15048
|
tagWarningBorderColor: 'Warning-1',
|
|
@@ -15026,6 +15061,10 @@ var tagTokens = {
|
|
|
15026
15061
|
tagWarningFillDisabledFontColor: 'Neutral-text-1',
|
|
15027
15062
|
tagWarningFillDisabledBackgroundColor: 'Warning-3',
|
|
15028
15063
|
tagWarningFillDisabledBorderColor: 'Warning-3',
|
|
15064
|
+
tagWarningFillIconFontColor: 'Warning-6',
|
|
15065
|
+
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
15066
|
+
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
15067
|
+
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
15029
15068
|
tagDangerFontColor: 'Danger-6',
|
|
15030
15069
|
tagDangerBackgroundColor: 'Danger-1',
|
|
15031
15070
|
tagDangerBorderColor: 'Danger-1',
|
|
@@ -15044,6 +15083,10 @@ var tagTokens = {
|
|
|
15044
15083
|
tagDangerFillDisabledFontColor: 'Neutral-text-1',
|
|
15045
15084
|
tagDangerFillDisabledBackgroundColor: 'Danger-3',
|
|
15046
15085
|
tagDangerFillDisabledBorderColor: 'Danger-3',
|
|
15086
|
+
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
15087
|
+
tagDangerIconFontColor: 'Danger-6',
|
|
15088
|
+
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
15089
|
+
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15047
15090
|
tagMagentaFontColor: 'Magenta-6',
|
|
15048
15091
|
tagMagentaBackgroundColor: 'Magenta-1',
|
|
15049
15092
|
tagMagentaBorderColor: 'Magenta-1',
|
|
@@ -15062,6 +15105,10 @@ var tagTokens = {
|
|
|
15062
15105
|
tagMagentaFillDisabledFontColor: 'Neutral-text-1',
|
|
15063
15106
|
tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
|
|
15064
15107
|
tagMagentaFillDisabledBorderColor: 'Magenta-3',
|
|
15108
|
+
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15109
|
+
tagMagentaIconFontColor: 'Magenta-6',
|
|
15110
|
+
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
15111
|
+
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
15065
15112
|
tagBrownFontColor: 'Brown-6',
|
|
15066
15113
|
tagBrownBackgroundColor: 'Brown-1',
|
|
15067
15114
|
tagBrownBorderColor: 'Brown-1',
|
|
@@ -15080,6 +15127,10 @@ var tagTokens = {
|
|
|
15080
15127
|
tagBrownFillDisabledFontColor: 'Neutral-text-1',
|
|
15081
15128
|
tagBrownFillDisabledBackgroundColor: 'Brown-3',
|
|
15082
15129
|
tagBrownFillDisabledBorderColor: 'Brown-3',
|
|
15130
|
+
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
15131
|
+
tagBrownIconFontColor: 'Brown-6',
|
|
15132
|
+
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15133
|
+
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15083
15134
|
tagPurpleFontColor: 'Purple-6',
|
|
15084
15135
|
tagPurpleBackgroundColor: 'Purple-1',
|
|
15085
15136
|
tagPurpleBorderColor: 'Purple-1',
|
|
@@ -15098,6 +15149,10 @@ var tagTokens = {
|
|
|
15098
15149
|
tagPurpleFillDisabledFontColor: 'Neutral-text-1',
|
|
15099
15150
|
tagPurpleFillDisabledBackgroundColor: 'Purple-3',
|
|
15100
15151
|
tagPurpleFillDisabledBorderColor: 'Purple-3',
|
|
15152
|
+
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
15153
|
+
tagPurpleIconFontColor: 'Purple-6',
|
|
15154
|
+
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
15155
|
+
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15101
15156
|
tagIndigoFontColor: 'Indigo-6',
|
|
15102
15157
|
tagIndigoBackgroundColor: 'Indigo-1',
|
|
15103
15158
|
tagIndigoBorderColor: 'Indigo-1',
|
|
@@ -15116,6 +15171,10 @@ var tagTokens = {
|
|
|
15116
15171
|
tagIndigoFillDisabledFontColor: 'Neutral-text-1',
|
|
15117
15172
|
tagIndigoFillDisabledBackgroundColor: 'Indigo-3',
|
|
15118
15173
|
tagIndigoFillDisabledBorderColor: 'Indigo-3',
|
|
15174
|
+
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
15175
|
+
tagIndigoIconFontColor: 'Indigo-6',
|
|
15176
|
+
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
15177
|
+
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15119
15178
|
tagCyanFontColor: 'Cyan-6',
|
|
15120
15179
|
tagCyanBackgroundColor: 'Cyan-1',
|
|
15121
15180
|
tagCyanBorderColor: 'Cyan-1',
|
|
@@ -15134,6 +15193,10 @@ var tagTokens = {
|
|
|
15134
15193
|
tagCyanFillDisabledFontColor: 'Neutral-text-1',
|
|
15135
15194
|
tagCyanFillDisabledBackgroundColor: 'Cyan-3',
|
|
15136
15195
|
tagCyanFillDisabledBorderColor: 'Cyan-3',
|
|
15196
|
+
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
15197
|
+
tagCyanIconFontColor: 'Cyan-6',
|
|
15198
|
+
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
15199
|
+
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15137
15200
|
tagNeonFontColor: 'Neon-6',
|
|
15138
15201
|
tagNeonBackgroundColor: 'Neon-1',
|
|
15139
15202
|
tagNeonBorderColor: 'Neon-1',
|
|
@@ -15152,6 +15215,10 @@ var tagTokens = {
|
|
|
15152
15215
|
tagNeonFillDisabledFontColor: 'Neutral-text-1',
|
|
15153
15216
|
tagNeonFillDisabledBackgroundColor: 'Neon-3',
|
|
15154
15217
|
tagNeonFillDisabledBorderColor: 'Neon-3',
|
|
15218
|
+
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
15219
|
+
tagNeonIconFontColor: 'Neon-6',
|
|
15220
|
+
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
15221
|
+
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15155
15222
|
tagLemonFontColor: 'Lemon-6',
|
|
15156
15223
|
tagLemonBackgroundColor: 'Lemon-1',
|
|
15157
15224
|
tagLemonBorderColor: 'Lemon-1',
|
|
@@ -15170,6 +15237,32 @@ var tagTokens = {
|
|
|
15170
15237
|
tagLemonFillDisabledFontColor: 'Neutral-text-1',
|
|
15171
15238
|
tagLemonFillDisabledBackgroundColor: 'Lemon-3',
|
|
15172
15239
|
tagLemonFillDisabledBorderColor: 'Lemon-3',
|
|
15240
|
+
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
15241
|
+
tagLemonIconFontColor: 'Lemon-6',
|
|
15242
|
+
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
15243
|
+
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15244
|
+
tagOrangeFontColor: 'Orange-6',
|
|
15245
|
+
tagOrangeBackgroundColor: 'Orange-1',
|
|
15246
|
+
tagOrangeBorderColor: 'Orange-1',
|
|
15247
|
+
tagOrangeDisabledFontColor: 'Orange-3',
|
|
15248
|
+
tagOrangeDisabledBackgroundColor: 'Orange-1',
|
|
15249
|
+
tagOrangeDisabledBorderColor: 'Orange-1',
|
|
15250
|
+
tagOrangeOutlineFontColor: 'Orange-6',
|
|
15251
|
+
tagOrangeOutlineBackgroundColor: 'Neutral-fill-1',
|
|
15252
|
+
tagOrangeOutlineBorderColor: 'Orange-6',
|
|
15253
|
+
tagOrangeOutlineDisabledFontColor: 'Orange-3',
|
|
15254
|
+
tagOrangeOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
15255
|
+
tagOrangeOutlineDisabledBorderColor: 'Orange-3',
|
|
15256
|
+
tagOrangeFillFontColor: 'Neutral-text-1',
|
|
15257
|
+
tagOrangeFillBackgroundColor: 'Orange-6',
|
|
15258
|
+
tagOrangeFillBorderColor: 'Orange-6',
|
|
15259
|
+
tagOrangeFillDisabledFontColor: 'Neutral-text-1',
|
|
15260
|
+
tagOrangeFillDisabledBackgroundColor: 'Orange-3',
|
|
15261
|
+
tagOrangeFillDisabledBorderColor: 'Orange-3',
|
|
15262
|
+
tagOrangeFillIconHoverBackgroundColor: 'Orange-5',
|
|
15263
|
+
tagOrangeIconFontColor: 'Orange-6',
|
|
15264
|
+
tagOrangeIconDisabledFontColor: 'Orange-3',
|
|
15265
|
+
tagOrangeIconHoverBackgroundColor: 'Orange-2',
|
|
15173
15266
|
tagTangerineFontColor: 'Tangerine-6',
|
|
15174
15267
|
tagTangerineBackgroundColor: 'Tangerine-1',
|
|
15175
15268
|
tagTangerineBorderColor: 'Tangerine-1',
|
|
@@ -15188,87 +15281,35 @@ var tagTokens = {
|
|
|
15188
15281
|
tagTangerineFillDisabledFontColor: 'Neutral-text-1',
|
|
15189
15282
|
tagTangerineFillDisabledBackgroundColor: 'Tangerine-3',
|
|
15190
15283
|
tagTangerineFillDisabledBorderColor: 'Tangerine-3',
|
|
15284
|
+
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5',
|
|
15285
|
+
tagTangerineIconFontColor: 'Tangerine-6',
|
|
15286
|
+
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
15287
|
+
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15191
15288
|
tagFontSize: 'Font-12',
|
|
15289
|
+
tagFontWeight: 'Weight-regular',
|
|
15192
15290
|
tagBorderRadius: 'Radius-small',
|
|
15193
15291
|
tagPaddingX: 'Spacing-6',
|
|
15194
15292
|
tagPaddingY: 'Spacing-0',
|
|
15195
15293
|
tagHeight: 'Size-11',
|
|
15196
|
-
tagFontWeight: 'Weight-regular',
|
|
15197
15294
|
tagSmallFontSize: 'Font-12',
|
|
15295
|
+
tagSmallFontWeight: 'Weight-regular',
|
|
15198
15296
|
tagSmallBorderRadius: 'Radius-small',
|
|
15199
15297
|
tagSmallPaddingX: 'Spacing-4',
|
|
15200
15298
|
tagSmallHeight: 'Size-10',
|
|
15201
|
-
|
|
15299
|
+
tagSmallInputPaddingX: 'Spacing-4',
|
|
15300
|
+
tagSmallInputFontSize: 'Font-12',
|
|
15301
|
+
tagSmallLineHeight: 'Line-height-dynamic',
|
|
15202
15302
|
tagLargeFontSize: 'Font-14',
|
|
15303
|
+
tagLargeFontWeight: 'Weight-regular',
|
|
15203
15304
|
tagLargeBorderRadius: 'Radius-default',
|
|
15204
15305
|
tagLargePaddingX: 'Spacing-12',
|
|
15205
15306
|
tagLargePaddingY: 'Spacing-2',
|
|
15206
15307
|
tagLargeHeight: 'Size-14',
|
|
15207
|
-
tagLargeFontWeight: 'Weight-regular',
|
|
15208
|
-
tagInputPaddingX: 'Spacing-4',
|
|
15209
|
-
tagInputFontSize: 'Font-12',
|
|
15210
|
-
tagSmallInputPaddingX: 'Spacing-4',
|
|
15211
|
-
tagSmallInputFontSize: 'Font-12',
|
|
15212
15308
|
tagLargeInputPaddingX: 'Spacing-4',
|
|
15213
15309
|
tagLargeInputFontSize: 'Font-14',
|
|
15214
|
-
|
|
15215
|
-
|
|
15216
|
-
|
|
15217
|
-
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
15218
|
-
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
15219
|
-
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
15220
|
-
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
15221
|
-
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
15222
|
-
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
15223
|
-
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
15224
|
-
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
15225
|
-
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
15226
|
-
tagSuccessIconFontColor: 'Success-6',
|
|
15227
|
-
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
15228
|
-
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
15229
|
-
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
15230
|
-
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15231
|
-
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
15232
|
-
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
15233
|
-
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
15234
|
-
tagWarningFillIconFontColor: 'Warning-6',
|
|
15235
|
-
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
15236
|
-
tagDangerIconFontColor: 'Danger-6',
|
|
15237
|
-
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
15238
|
-
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15239
|
-
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
15240
|
-
tagMagentaIconFontColor: 'Magenta-6',
|
|
15241
|
-
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
15242
|
-
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
15243
|
-
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15244
|
-
tagBrownIconFontColor: 'Brown-6',
|
|
15245
|
-
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15246
|
-
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15247
|
-
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
15248
|
-
tagPurpleIconFontColor: 'Purple-6',
|
|
15249
|
-
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
15250
|
-
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15251
|
-
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
15252
|
-
tagIndigoIconFontColor: 'Indigo-6',
|
|
15253
|
-
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
15254
|
-
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15255
|
-
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
15256
|
-
tagCyanIconFontColor: 'Cyan-6',
|
|
15257
|
-
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
15258
|
-
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15259
|
-
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
15260
|
-
tagNeonIconFontColor: 'Neon-6',
|
|
15261
|
-
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
15262
|
-
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15263
|
-
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
15264
|
-
tagLemonIconFontColor: 'Lemon-6',
|
|
15265
|
-
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
15266
|
-
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15267
|
-
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
15268
|
-
tagTangerineIconFontColor: 'Tangerine-6',
|
|
15269
|
-
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
15270
|
-
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15271
|
-
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5'
|
|
15310
|
+
tagLargeLineHeight: 'Line-height-dynamic',
|
|
15311
|
+
tagInputPaddingX: 'Spacing-4',
|
|
15312
|
+
tagInputFontSize: 'Font-12'
|
|
15272
15313
|
};
|
|
15273
15314
|
/* harmony default export */ var tag = (tagTokens);
|
|
15274
15315
|
;// CONCATENATED MODULE: ../theme/src/tag/index.ts
|
|
@@ -15787,7 +15828,7 @@ var alertStyle = {
|
|
|
15787
15828
|
color: src.alertWarningFontColor
|
|
15788
15829
|
},
|
|
15789
15830
|
confirmwarningIcon: {
|
|
15790
|
-
color: src.
|
|
15831
|
+
color: src.alertWarningFontColor
|
|
15791
15832
|
},
|
|
15792
15833
|
dangerIcon: {
|
|
15793
15834
|
color: src.alertDangerFontColor
|
|
@@ -17407,8 +17448,11 @@ var supportsHas = function supportsHas() {
|
|
|
17407
17448
|
'&:hover': {
|
|
17408
17449
|
borderColor: token.focusBorderColor
|
|
17409
17450
|
}
|
|
17410
|
-
}), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({
|
|
17411
|
-
|
|
17451
|
+
}), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({
|
|
17452
|
+
'&&': {
|
|
17453
|
+
borderColor: token.errorBorderColor
|
|
17454
|
+
}
|
|
17455
|
+
}, "&:not($".concat(name, "Disabled)"), {
|
|
17412
17456
|
background: token.errorBackgroundColor,
|
|
17413
17457
|
'&:hover': {
|
|
17414
17458
|
borderColor: token.errorHoverBorderColor,
|
|
@@ -17421,19 +17465,17 @@ var supportsHas = function supportsHas() {
|
|
|
17421
17465
|
// '[data-soui-role="input-group-separate"]&': {
|
|
17422
17466
|
// boxShadow: 'none',
|
|
17423
17467
|
// }
|
|
17424
|
-
})), "".concat(name, "Disabled"), {
|
|
17468
|
+
})), "".concat(name, "Disabled"), defineProperty_default()(defineProperty_default()({
|
|
17425
17469
|
color: token.disabledFontColor,
|
|
17426
17470
|
backgroundColor: token.disabledBackgroundColor,
|
|
17427
17471
|
borderColor: token.disabledBorderColor,
|
|
17428
17472
|
boxShadow: 'none',
|
|
17429
|
-
cursor: 'not-allowed'
|
|
17430
|
-
|
|
17431
|
-
|
|
17432
|
-
|
|
17433
|
-
|
|
17434
|
-
|
|
17435
|
-
}
|
|
17436
|
-
}), defineProperty_default()(defineProperty_default()(_ref2, "".concat(name, "Underline"), {
|
|
17473
|
+
cursor: 'not-allowed'
|
|
17474
|
+
}, "&:not($".concat(name, "Error):hover"), {
|
|
17475
|
+
borderColor: token.disabledBorderColor
|
|
17476
|
+
}), '& *', {
|
|
17477
|
+
cursor: 'not-allowed'
|
|
17478
|
+
})), defineProperty_default()(defineProperty_default()(_ref2, "".concat(name, "Underline"), {
|
|
17437
17479
|
'&&': {
|
|
17438
17480
|
borderLeftColor: 'transparent',
|
|
17439
17481
|
borderRightColor: 'transparent',
|
|
@@ -18780,13 +18822,13 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
|
|
|
18780
18822
|
color: src.datePickerCellOtherColor
|
|
18781
18823
|
},
|
|
18782
18824
|
'&:not($pickerCellDisabled):not($pickerCellActive):hover': {
|
|
18783
|
-
'&
|
|
18825
|
+
'& $pickerCellContent > span': {
|
|
18784
18826
|
backgroundColor: src.datePickerCellHoverBackgroundColor,
|
|
18785
18827
|
color: src.datePickerCellHoverColor
|
|
18786
18828
|
}
|
|
18787
18829
|
},
|
|
18788
18830
|
'&$pickerCellInRange:not($pickerCellActive):not($pickerCellDisabled):hover': {
|
|
18789
|
-
'&
|
|
18831
|
+
'& $pickerCellContent > span': {
|
|
18790
18832
|
backgroundColor: src.datePickerCellActiveHoverBackgroundColor
|
|
18791
18833
|
}
|
|
18792
18834
|
},
|
|
@@ -18800,7 +18842,7 @@ var datePickerStyle = objectSpread2_default()(objectSpread2_default()(objectSpre
|
|
|
18800
18842
|
position: 'relative',
|
|
18801
18843
|
height: src.datePickerCellHeight,
|
|
18802
18844
|
lineHeight: src.datePickerCellHeight,
|
|
18803
|
-
'& span': {
|
|
18845
|
+
'& > span': {
|
|
18804
18846
|
display: 'inline-block',
|
|
18805
18847
|
minWidth: src.datePickerCellHotHeight,
|
|
18806
18848
|
height: src.datePickerCellHotHeight,
|
|
@@ -19157,6 +19199,9 @@ var descriptionsStyle = {
|
|
|
19157
19199
|
horizontal: {
|
|
19158
19200
|
'& $label': {
|
|
19159
19201
|
width: '1px'
|
|
19202
|
+
},
|
|
19203
|
+
'& $value:empty': {
|
|
19204
|
+
width: '1px'
|
|
19160
19205
|
}
|
|
19161
19206
|
},
|
|
19162
19207
|
vertical: {
|
|
@@ -22358,6 +22403,10 @@ var replaceCssVarValue = function replaceCssVarValue(innerHTML, cssvar, targetVa
|
|
|
22358
22403
|
}
|
|
22359
22404
|
return innerHTML.replace(regex, "".concat(cssvar, ": ").concat(targetValue, ";"));
|
|
22360
22405
|
};
|
|
22406
|
+
var isCustomToken = function isCustomToken(key) {
|
|
22407
|
+
if (key.startsWith('--')) return true;
|
|
22408
|
+
return false;
|
|
22409
|
+
};
|
|
22361
22410
|
var setToken = function setToken(options) {
|
|
22362
22411
|
var _ref = options || {},
|
|
22363
22412
|
_ref$tagName = _ref.tagName,
|
|
@@ -22385,7 +22434,7 @@ var setToken = function setToken(options) {
|
|
|
22385
22434
|
var extraToken = getExtraToken(prefix);
|
|
22386
22435
|
if (update && token) {
|
|
22387
22436
|
Object.keys(token).forEach(function (key) {
|
|
22388
|
-
var cssvar = "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22437
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22389
22438
|
var targetValue = token[key];
|
|
22390
22439
|
tag.innerHTML = replaceCssVarValue(tag.innerHTML, cssvar, targetValue);
|
|
22391
22440
|
});
|
|
@@ -22395,12 +22444,14 @@ var setToken = function setToken(options) {
|
|
|
22395
22444
|
Object.keys(defaultToken).filter(function (item) {
|
|
22396
22445
|
return (customExtraToken || ['Brand-6', 'Neutral-6']).includes(item);
|
|
22397
22446
|
}).forEach(function (key) {
|
|
22398
|
-
var
|
|
22447
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22448
|
+
var token = "".concat(cssvar, ":").concat(defaultToken[key]);
|
|
22399
22449
|
tokens.push(token);
|
|
22400
22450
|
});
|
|
22401
22451
|
} else {
|
|
22402
22452
|
Object.keys(defaultToken).forEach(function (key) {
|
|
22403
|
-
var
|
|
22453
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22454
|
+
var token = "".concat(cssvar, ":").concat(defaultToken[key]);
|
|
22404
22455
|
tokens.push(token);
|
|
22405
22456
|
});
|
|
22406
22457
|
}
|
|
@@ -24105,7 +24156,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24105
24156
|
hideTag: {},
|
|
24106
24157
|
list: {},
|
|
24107
24158
|
tree: {
|
|
24108
|
-
padding:
|
|
24159
|
+
padding: '0 4px',
|
|
24109
24160
|
overflow: 'auto'
|
|
24110
24161
|
},
|
|
24111
24162
|
treeOption: {
|
|
@@ -25380,7 +25431,8 @@ var spinStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25380
25431
|
}
|
|
25381
25432
|
},
|
|
25382
25433
|
tip: {
|
|
25383
|
-
color: src.spinTipFontColor
|
|
25434
|
+
color: src.spinTipFontColor,
|
|
25435
|
+
fontSize: src.spinTipFontSize
|
|
25384
25436
|
},
|
|
25385
25437
|
vertical: {},
|
|
25386
25438
|
horizontal: {}
|
|
@@ -26810,10 +26862,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26810
26862
|
}
|
|
26811
26863
|
},
|
|
26812
26864
|
rowHover: {
|
|
26813
|
-
'& td': {
|
|
26814
|
-
transition: 'background-color 0.2s'
|
|
26815
|
-
},
|
|
26816
26865
|
'&&:hover td': {
|
|
26866
|
+
transition: 'background-color 0.2s',
|
|
26817
26867
|
background: "".concat(src.tableTbodyHoverBackgroundColor)
|
|
26818
26868
|
}
|
|
26819
26869
|
},
|
|
@@ -27593,10 +27643,12 @@ var tabsStyle = {
|
|
|
27593
27643
|
'& $tab': {
|
|
27594
27644
|
display: 'block'
|
|
27595
27645
|
},
|
|
27596
|
-
'
|
|
27646
|
+
'&& $tab + $tab': {
|
|
27597
27647
|
marginTop: src.tabsNearlyMargin
|
|
27598
27648
|
},
|
|
27599
27649
|
'& $next,& $prev': {
|
|
27650
|
+
// 考虑垂直方向可滚动功能时一并修复zIndex
|
|
27651
|
+
// zIndex: 1,
|
|
27600
27652
|
padding: "".concat(src.tabsActionVerticalPaddingY, " ").concat(src.tabsActionVerticalPaddingX),
|
|
27601
27653
|
'&:after': {
|
|
27602
27654
|
display: 'none'
|
|
@@ -27768,7 +27820,7 @@ var tabsStyle = {
|
|
|
27768
27820
|
'$headerWrapper[data-soui-shape="line"] &': {
|
|
27769
27821
|
'& $tab': {
|
|
27770
27822
|
position: 'relative',
|
|
27771
|
-
padding: "".concat(src.
|
|
27823
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27772
27824
|
color: src.tabsLineFontColor,
|
|
27773
27825
|
fontSize: src.tabsLineFontSize,
|
|
27774
27826
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -27818,7 +27870,7 @@ var tabsStyle = {
|
|
|
27818
27870
|
},
|
|
27819
27871
|
'$headerWrapper[data-soui-shape="dash"] &': {
|
|
27820
27872
|
'& $tab': {
|
|
27821
|
-
padding: "".concat(src.
|
|
27873
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27822
27874
|
color: src.tabsLineFontColor,
|
|
27823
27875
|
fontSize: src.tabsLineFontSize,
|
|
27824
27876
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -28119,7 +28171,7 @@ var TagStyle = {
|
|
|
28119
28171
|
wrapper: {
|
|
28120
28172
|
flex: 1,
|
|
28121
28173
|
minWidth: 0,
|
|
28122
|
-
lineHeight: src.
|
|
28174
|
+
lineHeight: src.tagDefaultLineHeight
|
|
28123
28175
|
},
|
|
28124
28176
|
inline: {
|
|
28125
28177
|
display: 'inline-block',
|
|
@@ -28139,6 +28191,12 @@ var TagStyle = {
|
|
|
28139
28191
|
width: 14,
|
|
28140
28192
|
height: 14
|
|
28141
28193
|
}
|
|
28194
|
+
},
|
|
28195
|
+
'& $wrapper': {
|
|
28196
|
+
lineHeight: src.tagLargeLineHeight
|
|
28197
|
+
},
|
|
28198
|
+
'& $closeIcon': {
|
|
28199
|
+
height: src.tagLargeLineHeight
|
|
28142
28200
|
}
|
|
28143
28201
|
},
|
|
28144
28202
|
small: {
|
|
@@ -28148,10 +28206,10 @@ var TagStyle = {
|
|
|
28148
28206
|
fontWeight: src.tagSmallFontWeight,
|
|
28149
28207
|
borderRadius: src.tagSmallBorderRadius,
|
|
28150
28208
|
'& $wrapper': {
|
|
28151
|
-
lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28209
|
+
lineHeight: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28152
28210
|
},
|
|
28153
28211
|
'& $closeIcon': {
|
|
28154
|
-
height: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28212
|
+
height: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28155
28213
|
},
|
|
28156
28214
|
'& $closeIconWrapper': {
|
|
28157
28215
|
width: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
|
|
@@ -28174,7 +28232,7 @@ var TagStyle = {
|
|
|
28174
28232
|
alignItems: 'center',
|
|
28175
28233
|
display: 'inline-flex',
|
|
28176
28234
|
cursor: 'pointer',
|
|
28177
|
-
height: src.
|
|
28235
|
+
height: src.tagDefaultLineHeight,
|
|
28178
28236
|
maxHeight: '100%'
|
|
28179
28237
|
},
|
|
28180
28238
|
closeIconWrapper: {
|
|
@@ -28201,11 +28259,12 @@ var TagStyle = {
|
|
|
28201
28259
|
cyan: objectSpread2_default()({}, brightTag('cyan', 'Cyan')),
|
|
28202
28260
|
neon: objectSpread2_default()({}, brightTag('neon', 'Neon')),
|
|
28203
28261
|
lemon: objectSpread2_default()({}, brightTag('lemon', 'Lemon')),
|
|
28262
|
+
orange: objectSpread2_default()({}, brightTag('orange', 'Orange')),
|
|
28204
28263
|
tangerine: objectSpread2_default()({}, brightTag('tangerine', 'Tangerine')),
|
|
28205
|
-
fill: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, fillTag('default', 'Default')), fillTag('success', 'Success')), fillTag('warning', 'Warning')), fillTag('danger', 'Danger')), fillTag('info', 'Info')), fillTag('brown', 'Brown')), fillTag('magenta', 'Magenta')), fillTag('purple', 'Purple')), fillTag('indigo', 'Indigo')), fillTag('cyan', 'Cyan')), fillTag('neon', 'Neon')), fillTag('lemon', 'Lemon')), fillTag('tangerine', 'Tangerine')),
|
|
28264
|
+
fill: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, fillTag('default', 'Default')), fillTag('success', 'Success')), fillTag('warning', 'Warning')), fillTag('danger', 'Danger')), fillTag('info', 'Info')), fillTag('brown', 'Brown')), fillTag('magenta', 'Magenta')), fillTag('purple', 'Purple')), fillTag('indigo', 'Indigo')), fillTag('cyan', 'Cyan')), fillTag('neon', 'Neon')), fillTag('lemon', 'Lemon')), fillTag('tangerine', 'Tangerine')), fillTag('orange', 'Orange')),
|
|
28206
28265
|
bright: {},
|
|
28207
|
-
outline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, outlineTag('default', 'Default')), outlineTag('success', 'Success')), outlineTag('warning', 'Warning')), outlineTag('danger', 'Danger')), outlineTag('info', 'Info')), outlineTag('brown', 'Brown')), outlineTag('magenta', 'Magenta')), outlineTag('purple', 'Purple')), outlineTag('indigo', 'Indigo')), outlineTag('cyan', 'Cyan')), outlineTag('neon', 'Neon')), outlineTag('lemon', 'Lemon')), outlineTag('tangerine', 'Tangerine')),
|
|
28208
|
-
brightOutline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, brightOutlineTag('default', 'Default')), brightOutlineTag('success', 'Success')), brightOutlineTag('warning', 'Warning')), brightOutlineTag('danger', 'Danger')), brightOutlineTag('info', 'Info')), brightOutlineTag('brown', 'Brown')), brightOutlineTag('magenta', 'Magenta')), brightOutlineTag('purple', 'Purple')), brightOutlineTag('indigo', 'Indigo')), brightOutlineTag('cyan', 'Cyan')), brightOutlineTag('neon', 'Neon')), brightOutlineTag('lemon', 'Lemon')), brightOutlineTag('tangerine', 'Tangerine')),
|
|
28266
|
+
outline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, outlineTag('default', 'Default')), outlineTag('success', 'Success')), outlineTag('warning', 'Warning')), outlineTag('danger', 'Danger')), outlineTag('info', 'Info')), outlineTag('brown', 'Brown')), outlineTag('magenta', 'Magenta')), outlineTag('purple', 'Purple')), outlineTag('indigo', 'Indigo')), outlineTag('cyan', 'Cyan')), outlineTag('neon', 'Neon')), outlineTag('lemon', 'Lemon')), outlineTag('tangerine', 'Tangerine')), outlineTag('orange', 'Orange')),
|
|
28267
|
+
brightOutline: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, brightOutlineTag('default', 'Default')), brightOutlineTag('success', 'Success')), brightOutlineTag('warning', 'Warning')), brightOutlineTag('danger', 'Danger')), brightOutlineTag('info', 'Info')), brightOutlineTag('brown', 'Brown')), brightOutlineTag('magenta', 'Magenta')), brightOutlineTag('purple', 'Purple')), brightOutlineTag('indigo', 'Indigo')), brightOutlineTag('cyan', 'Cyan')), brightOutlineTag('neon', 'Neon')), brightOutlineTag('lemon', 'Lemon')), brightOutlineTag('tangerine', 'Tangerine')), brightOutlineTag('orange', 'Orange')),
|
|
28209
28268
|
rounded: {
|
|
28210
28269
|
borderRadius: src.buttonRoundBorderRadius
|
|
28211
28270
|
}
|
|
@@ -30948,6 +31007,9 @@ var addResizeObserver = function addResizeObserver(el, handler) {
|
|
|
30948
31007
|
lastWidth = el.clientWidth;
|
|
30949
31008
|
lastHeight = el.clientHeight;
|
|
30950
31009
|
h = function h(entry) {
|
|
31010
|
+
if ((el === null || el === void 0 ? void 0 : el.offsetParent) === null) {
|
|
31011
|
+
return;
|
|
31012
|
+
}
|
|
30951
31013
|
var _entry$0$contentRect = entry[0].contentRect,
|
|
30952
31014
|
width = _entry$0$contentRect.width,
|
|
30953
31015
|
height = _entry$0$contentRect.height;
|
|
@@ -31881,7 +31943,7 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31881
31943
|
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
31882
31944
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
|
|
31883
31945
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = /*#__PURE__*/__webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
|
31884
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.
|
|
31946
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.3.3_react@18.3.1/node_modules/@shined/reactive/dist/chunk-22VVHX5B.js
|
|
31885
31947
|
|
|
31886
31948
|
// src/vanilla/ref.ts
|
|
31887
31949
|
function _array_like_to_array(arr, len) {
|
|
@@ -31895,6 +31957,19 @@ function _array_with_holes(arr) {
|
|
|
31895
31957
|
function _array_without_holes(arr) {
|
|
31896
31958
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
31897
31959
|
}
|
|
31960
|
+
function _define_property(obj, key, value) {
|
|
31961
|
+
if (key in obj) {
|
|
31962
|
+
Object.defineProperty(obj, key, {
|
|
31963
|
+
value: value,
|
|
31964
|
+
enumerable: true,
|
|
31965
|
+
configurable: true,
|
|
31966
|
+
writable: true
|
|
31967
|
+
});
|
|
31968
|
+
} else {
|
|
31969
|
+
obj[key] = value;
|
|
31970
|
+
}
|
|
31971
|
+
return obj;
|
|
31972
|
+
}
|
|
31898
31973
|
function _instanceof(left, right) {
|
|
31899
31974
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
31900
31975
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -31935,12 +32010,56 @@ function _non_iterable_rest() {
|
|
|
31935
32010
|
function _non_iterable_spread() {
|
|
31936
32011
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31937
32012
|
}
|
|
32013
|
+
function _object_spread(target) {
|
|
32014
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32015
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
32016
|
+
var ownKeys = Object.keys(source);
|
|
32017
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
32018
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
32019
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
32020
|
+
}));
|
|
32021
|
+
}
|
|
32022
|
+
ownKeys.forEach(function (key) {
|
|
32023
|
+
_define_property(target, key, source[key]);
|
|
32024
|
+
});
|
|
32025
|
+
}
|
|
32026
|
+
return target;
|
|
32027
|
+
}
|
|
32028
|
+
function ownKeys(object, enumerableOnly) {
|
|
32029
|
+
var keys = Object.keys(object);
|
|
32030
|
+
if (Object.getOwnPropertySymbols) {
|
|
32031
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32032
|
+
if (enumerableOnly) {
|
|
32033
|
+
symbols = symbols.filter(function (sym) {
|
|
32034
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32035
|
+
});
|
|
32036
|
+
}
|
|
32037
|
+
keys.push.apply(keys, symbols);
|
|
32038
|
+
}
|
|
32039
|
+
return keys;
|
|
32040
|
+
}
|
|
32041
|
+
function _object_spread_props(target, source) {
|
|
32042
|
+
source = source != null ? source : {};
|
|
32043
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
32044
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
32045
|
+
} else {
|
|
32046
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
32047
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32048
|
+
});
|
|
32049
|
+
}
|
|
32050
|
+
return target;
|
|
32051
|
+
}
|
|
31938
32052
|
function _sliced_to_array(arr, i) {
|
|
31939
32053
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
31940
32054
|
}
|
|
31941
32055
|
function _to_consumable_array(arr) {
|
|
31942
32056
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
31943
32057
|
}
|
|
32058
|
+
function _type_of(obj) {
|
|
32059
|
+
"@swc/helpers - typeof";
|
|
32060
|
+
|
|
32061
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : helpers_typeof(obj);
|
|
32062
|
+
}
|
|
31944
32063
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
31945
32064
|
if (!o) return;
|
|
31946
32065
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -31954,26 +32073,124 @@ function ref(o) {
|
|
|
31954
32073
|
internal_refSet.add(o);
|
|
31955
32074
|
return o;
|
|
31956
32075
|
}
|
|
31957
|
-
function
|
|
32076
|
+
function isRef(k) {
|
|
31958
32077
|
return internal_refSet.has(k);
|
|
31959
32078
|
}
|
|
32079
|
+
function deepCloneWithRef(initialState) {
|
|
32080
|
+
var cloned = createObjectFromPrototype(initialState);
|
|
32081
|
+
for (var key in initialState) {
|
|
32082
|
+
var value = initialState[key];
|
|
32083
|
+
if (chunk_22VVHX5B_isObject(value)) {
|
|
32084
|
+
if (isRef(value)) {
|
|
32085
|
+
cloned[key] = value;
|
|
32086
|
+
} else {
|
|
32087
|
+
cloned[key] = deepCloneWithRef(value);
|
|
32088
|
+
}
|
|
32089
|
+
} else {
|
|
32090
|
+
cloned[key] = value;
|
|
32091
|
+
}
|
|
32092
|
+
}
|
|
32093
|
+
return cloned;
|
|
32094
|
+
}
|
|
32095
|
+
// src/utils/react-fast-compare.ts
|
|
32096
|
+
var hasMap = typeof Map === "function";
|
|
32097
|
+
var hasSet = typeof Set === "function";
|
|
32098
|
+
var hasHTMLElementType = typeof HTMLElement !== "undefined";
|
|
32099
|
+
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
32100
|
+
function reactFastCompare(objA, objB) {
|
|
32101
|
+
try {
|
|
32102
|
+
return equal(objA, objB);
|
|
32103
|
+
} catch (error) {
|
|
32104
|
+
if ((error.message || "").match(/stack|recursion/i)) {
|
|
32105
|
+
console.warn("react-fast-compare cannot handle circular refs");
|
|
32106
|
+
return false;
|
|
32107
|
+
}
|
|
32108
|
+
throw error;
|
|
32109
|
+
}
|
|
32110
|
+
}
|
|
32111
|
+
function equal(objA, objB) {
|
|
32112
|
+
if (objA === objB) return true;
|
|
32113
|
+
if (objA && objB && (typeof objA === "undefined" ? "undefined" : _type_of(objA)) === "object" && (typeof objB === "undefined" ? "undefined" : _type_of(objB)) === "object") {
|
|
32114
|
+
if (objA.constructor !== objB.constructor) return false;
|
|
32115
|
+
var length;
|
|
32116
|
+
var i;
|
|
32117
|
+
var keys;
|
|
32118
|
+
if (Array.isArray(objA)) {
|
|
32119
|
+
length = objA.length;
|
|
32120
|
+
if (length !== objB.length) return false;
|
|
32121
|
+
for (i = length; i-- !== 0;) if (!equal(objA[i], objB[i])) return false;
|
|
32122
|
+
return true;
|
|
32123
|
+
}
|
|
32124
|
+
var it;
|
|
32125
|
+
if (hasMap && _instanceof(objA, Map) && _instanceof(objB, Map)) {
|
|
32126
|
+
if (objA.size !== objB.size) return false;
|
|
32127
|
+
it = objA.entries();
|
|
32128
|
+
while (!(i = it.next()).done) if (!objB.has(i.value[0])) return false;
|
|
32129
|
+
it = objA.entries();
|
|
32130
|
+
while (!(i = it.next()).done) if (!equal(i.value[1], objB.get(i.value[0]))) return false;
|
|
32131
|
+
return true;
|
|
32132
|
+
}
|
|
32133
|
+
if (hasSet && _instanceof(objA, Set) && _instanceof(objB, Set)) {
|
|
32134
|
+
if (objA.size !== objB.size) return false;
|
|
32135
|
+
it = objA.entries();
|
|
32136
|
+
while (!(i = it.next()).done) if (!objB.has(i.value[0])) return false;
|
|
32137
|
+
return true;
|
|
32138
|
+
}
|
|
32139
|
+
if (hasArrayBuffer && ArrayBuffer.isView(objA) && ArrayBuffer.isView(objB)) {
|
|
32140
|
+
length = objA === null || objA === void 0 ? void 0 : objA.length;
|
|
32141
|
+
if (length !== (objB === null || objB === void 0 ? void 0 : objB.length)) return false;
|
|
32142
|
+
for (i = length; i-- !== 0;) if (objA[i] !== objB[i]) return false;
|
|
32143
|
+
return true;
|
|
32144
|
+
}
|
|
32145
|
+
if (objA.constructor === RegExp) return objA.source === objB.source && objA.flags === objB.flags;
|
|
32146
|
+
if (objA.valueOf !== Object.prototype.valueOf && typeof objA.valueOf === "function" && typeof objB.valueOf === "function") return objA.valueOf() === objB.valueOf();
|
|
32147
|
+
if (objA.toString !== Object.prototype.toString && typeof objA.toString === "function" && typeof objB.toString === "function") return objA.toString() === objB.toString();
|
|
32148
|
+
keys = Object.keys(objA);
|
|
32149
|
+
length = keys.length;
|
|
32150
|
+
if (length !== Object.keys(objB).length) return false;
|
|
32151
|
+
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(objB, keys[i])) return false;
|
|
32152
|
+
if (hasHTMLElementType && _instanceof(objA, HTMLElement)) return false;
|
|
32153
|
+
for (i = length; i-- !== 0;) {
|
|
32154
|
+
if ((keys[i] === "_owner" || keys[i] === "__v" || keys[i] === "__o") && objA.$$typeof) {
|
|
32155
|
+
continue;
|
|
32156
|
+
}
|
|
32157
|
+
if (!equal(objA[keys[i]], objB[keys[i]])) return false;
|
|
32158
|
+
}
|
|
32159
|
+
return true;
|
|
32160
|
+
}
|
|
32161
|
+
return objA !== objA && objB !== objB;
|
|
32162
|
+
}
|
|
31960
32163
|
// src/utils/index.ts
|
|
31961
|
-
var SNAPSHOT = Symbol("SNAPSHOT");
|
|
31962
|
-
var LISTENERS = Symbol("LISTENERS");
|
|
31963
|
-
var REACTIVE = Symbol("REACTIVE");
|
|
31964
|
-
var
|
|
32164
|
+
var SNAPSHOT = Symbol.for("SNAPSHOT");
|
|
32165
|
+
var LISTENERS = Symbol.for("LISTENERS");
|
|
32166
|
+
var REACTIVE = Symbol.for("REACTIVE");
|
|
32167
|
+
var PROXY_COUNT = Symbol.for("PROXY_COUNT");
|
|
32168
|
+
var chunk_22VVHX5B_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
|
|
32169
|
+
var noop = function noop() {};
|
|
31965
32170
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
31966
|
-
var
|
|
31967
|
-
return
|
|
32171
|
+
var chunk_22VVHX5B_isObject = function isObject(x) {
|
|
32172
|
+
return (typeof x === "undefined" ? "undefined" : _type_of(x)) === "object" && x !== null;
|
|
31968
32173
|
};
|
|
31969
|
-
var
|
|
31970
|
-
return
|
|
32174
|
+
var chunk_22VVHX5B_isBoolean = function isBoolean(x) {
|
|
32175
|
+
return typeof x === "boolean";
|
|
31971
32176
|
};
|
|
31972
|
-
var
|
|
31973
|
-
return
|
|
32177
|
+
var isFunction = function isFunction(x) {
|
|
32178
|
+
return typeof x === "function";
|
|
31974
32179
|
};
|
|
32180
|
+
function createObjectFromPrototype(target) {
|
|
32181
|
+
return Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
|
|
32182
|
+
}
|
|
32183
|
+
function canProxy(x) {
|
|
32184
|
+
return chunk_22VVHX5B_isObject(x) && !isRef(x) && (Array.isArray(x) || !(Symbol.iterator in x)) && !_instanceof(x, WeakMap) && !_instanceof(x, WeakSet) && !_instanceof(x, Error) && !_instanceof(x, Number) && !_instanceof(x, Date) && !_instanceof(x, String) && !_instanceof(x, RegExp) && !_instanceof(x, ArrayBuffer) && !_instanceof(x, Promise) && (
|
|
32185
|
+
// from node 18 & 20
|
|
32186
|
+
typeof File === "undefined" || !_instanceof(x, File)) && (
|
|
32187
|
+
// from node 18
|
|
32188
|
+
typeof Blob === "undefined" || !_instanceof(x, Blob)) && (
|
|
32189
|
+
// from node 18
|
|
32190
|
+
typeof FormData === "undefined" || !_instanceof(x, FormData));
|
|
32191
|
+
}
|
|
31975
32192
|
var numberReg = /^\d+$/;
|
|
31976
|
-
|
|
32193
|
+
function propertyKeysToPath(keys) {
|
|
31977
32194
|
var path = "";
|
|
31978
32195
|
var length = keys.length;
|
|
31979
32196
|
for (var i = 0; i < length; i++) {
|
|
@@ -31985,8 +32202,8 @@ var propertyKeysToPath = function propertyKeysToPath(keys) {
|
|
|
31985
32202
|
}
|
|
31986
32203
|
}
|
|
31987
32204
|
return path;
|
|
31988
|
-
}
|
|
31989
|
-
|
|
32205
|
+
}
|
|
32206
|
+
function get(object, path) {
|
|
31990
32207
|
var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
31991
32208
|
var keys = Array.isArray(path) ? path : [path];
|
|
31992
32209
|
var _iteratorNormalCompletion = true,
|
|
@@ -32013,12 +32230,12 @@ var get = function get(object, path) {
|
|
|
32013
32230
|
}
|
|
32014
32231
|
}
|
|
32015
32232
|
return object;
|
|
32016
|
-
}
|
|
32017
|
-
|
|
32233
|
+
}
|
|
32234
|
+
function chunk_22VVHX5B_shallowEqual(objA, objB) {
|
|
32018
32235
|
if (Object.is(objA, objB)) {
|
|
32019
32236
|
return true;
|
|
32020
32237
|
}
|
|
32021
|
-
if (
|
|
32238
|
+
if ((typeof objA === "undefined" ? "undefined" : _type_of(objA)) !== "object" || objA === null || (typeof objB === "undefined" ? "undefined" : _type_of(objB)) !== "object" || objB === null) {
|
|
32022
32239
|
return false;
|
|
32023
32240
|
}
|
|
32024
32241
|
if (_instanceof(objA, Map) && _instanceof(objB, Map)) {
|
|
@@ -32090,16 +32307,116 @@ var chunk_IP2WBRUX_shallowEqual = function shallowEqual(objA, objB) {
|
|
|
32090
32307
|
}
|
|
32091
32308
|
}
|
|
32092
32309
|
return true;
|
|
32093
|
-
}
|
|
32094
|
-
|
|
32095
|
-
|
|
32096
|
-
|
|
32310
|
+
}
|
|
32311
|
+
function deepEqual(objA, objB) {
|
|
32312
|
+
return reactFastCompare(objA, objB);
|
|
32313
|
+
}
|
|
32314
|
+
// src/vanilla/snapshot.ts
|
|
32315
|
+
function snapshot(proxyState) {
|
|
32316
|
+
var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function (s) {
|
|
32317
|
+
return s;
|
|
32318
|
+
};
|
|
32319
|
+
return selector(proxyState[SNAPSHOT]);
|
|
32320
|
+
}
|
|
32321
|
+
var getSnapshot = (/* unused pure expression or super */ null && (snapshot));
|
|
32322
|
+
// src/enhancers/vanilla/with-snapshot.ts
|
|
32323
|
+
function withSnapshot(store) {
|
|
32324
|
+
var _snapshot = function _snapshot() {
|
|
32325
|
+
var selector = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function (s) {
|
|
32326
|
+
return s;
|
|
32327
|
+
};
|
|
32328
|
+
return snapshot(store.mutate, selector);
|
|
32329
|
+
};
|
|
32330
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32331
|
+
snapshot: _snapshot
|
|
32332
|
+
});
|
|
32333
|
+
}
|
|
32334
|
+
// src/vanilla/subscribe.ts
|
|
32335
|
+
var globalNotifyInSync = false;
|
|
32336
|
+
function setGlobalNotifyInSync(value) {
|
|
32337
|
+
globalNotifyInSync = value;
|
|
32338
|
+
}
|
|
32339
|
+
function subscribe(proxyState, callback, notifyInSync) {
|
|
32340
|
+
var promise;
|
|
32341
|
+
var previousState = snapshot(proxyState);
|
|
32342
|
+
var callbacks = /* @__PURE__ */new Set();
|
|
32343
|
+
var runCallbacks = function runCallbacks() {
|
|
32344
|
+
var _iteratorNormalCompletion = true,
|
|
32345
|
+
_didIteratorError = false,
|
|
32346
|
+
_iteratorError = undefined;
|
|
32347
|
+
try {
|
|
32348
|
+
for (var _iterator = callbacks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32349
|
+
var callback2 = _step.value;
|
|
32350
|
+
callback2();
|
|
32351
|
+
}
|
|
32352
|
+
} catch (err) {
|
|
32353
|
+
_didIteratorError = true;
|
|
32354
|
+
_iteratorError = err;
|
|
32355
|
+
} finally {
|
|
32356
|
+
try {
|
|
32357
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32358
|
+
_iterator.return();
|
|
32359
|
+
}
|
|
32360
|
+
} finally {
|
|
32361
|
+
if (_didIteratorError) {
|
|
32362
|
+
throw _iteratorError;
|
|
32363
|
+
}
|
|
32364
|
+
}
|
|
32365
|
+
}
|
|
32366
|
+
callbacks.clear();
|
|
32367
|
+
previousState = snapshot(proxyState);
|
|
32368
|
+
};
|
|
32369
|
+
function listener(props, version) {
|
|
32370
|
+
var currentState = snapshot(proxyState);
|
|
32371
|
+
var changes = {
|
|
32372
|
+
props: props,
|
|
32373
|
+
propsPath: propertyKeysToPath(props),
|
|
32374
|
+
previous: get(previousState, props),
|
|
32375
|
+
current: get(currentState, props),
|
|
32376
|
+
snapshot: currentState
|
|
32377
|
+
};
|
|
32378
|
+
callbacks.add(function () {
|
|
32379
|
+
return void callback(changes, version);
|
|
32380
|
+
});
|
|
32381
|
+
var finalNotifyInSync = chunk_22VVHX5B_isBoolean(notifyInSync) ? notifyInSync : globalNotifyInSync;
|
|
32382
|
+
if (finalNotifyInSync) {
|
|
32383
|
+
return void runCallbacks();
|
|
32384
|
+
}
|
|
32385
|
+
if (!promise) {
|
|
32386
|
+
promise = Promise.resolve().then(function () {
|
|
32387
|
+
promise = void 0;
|
|
32388
|
+
runCallbacks();
|
|
32389
|
+
});
|
|
32390
|
+
}
|
|
32391
|
+
}
|
|
32392
|
+
;
|
|
32393
|
+
proxyState[LISTENERS].add(listener);
|
|
32394
|
+
return function () {
|
|
32395
|
+
;
|
|
32396
|
+
proxyState[LISTENERS].delete(listener);
|
|
32397
|
+
};
|
|
32398
|
+
}
|
|
32399
|
+
// src/enhancers/vanilla/with-subscribe.ts
|
|
32400
|
+
function withSubscribe(store) {
|
|
32401
|
+
function boundSubscribe(listener, sync) {
|
|
32402
|
+
var selector = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function (s) {
|
|
32403
|
+
return s;
|
|
32404
|
+
};
|
|
32405
|
+
return subscribe(selector(store.mutate), listener, sync);
|
|
32406
|
+
}
|
|
32407
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32408
|
+
subscribe: boundSubscribe
|
|
32409
|
+
});
|
|
32097
32410
|
}
|
|
32098
32411
|
// src/vanilla/proxy.ts
|
|
32099
32412
|
var globalVersion = 1;
|
|
32100
32413
|
var snapshotCache = /* @__PURE__ */new WeakMap();
|
|
32101
32414
|
function proxy(initState) {
|
|
32102
|
-
var parentProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []
|
|
32415
|
+
var parentProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
32416
|
+
options = arguments.length > 2 ? arguments[2] : void 0;
|
|
32417
|
+
var _ref = options || {},
|
|
32418
|
+
_ref_addParentProxyCount = _ref.addParentProxyCount,
|
|
32419
|
+
addParentProxyCount = _ref_addParentProxyCount === void 0 ? function () {} : _ref_addParentProxyCount;
|
|
32103
32420
|
var version = globalVersion;
|
|
32104
32421
|
var listeners = /* @__PURE__ */new Set();
|
|
32105
32422
|
var propListenerMap = /* @__PURE__ */new Map();
|
|
@@ -32107,9 +32424,28 @@ function proxy(initState) {
|
|
|
32107
32424
|
var nextVersion = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ++globalVersion;
|
|
32108
32425
|
if (version !== nextVersion) {
|
|
32109
32426
|
version = nextVersion;
|
|
32110
|
-
|
|
32111
|
-
|
|
32112
|
-
|
|
32427
|
+
var _iteratorNormalCompletion = true,
|
|
32428
|
+
_didIteratorError = false,
|
|
32429
|
+
_iteratorError = undefined;
|
|
32430
|
+
try {
|
|
32431
|
+
for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32432
|
+
var callback = _step.value;
|
|
32433
|
+
callback(props, version);
|
|
32434
|
+
}
|
|
32435
|
+
} catch (err) {
|
|
32436
|
+
_didIteratorError = true;
|
|
32437
|
+
_iteratorError = err;
|
|
32438
|
+
} finally {
|
|
32439
|
+
try {
|
|
32440
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32441
|
+
_iterator.return();
|
|
32442
|
+
}
|
|
32443
|
+
} finally {
|
|
32444
|
+
if (_didIteratorError) {
|
|
32445
|
+
throw _iteratorError;
|
|
32446
|
+
}
|
|
32447
|
+
}
|
|
32448
|
+
}
|
|
32113
32449
|
}
|
|
32114
32450
|
};
|
|
32115
32451
|
var getPropListener = function getPropListener(prop) {
|
|
@@ -32130,23 +32466,49 @@ function proxy(initState) {
|
|
|
32130
32466
|
var createSnapshot = function createSnapshot(target, receiver) {
|
|
32131
32467
|
var cache = snapshotCache.get(receiver);
|
|
32132
32468
|
if ((cache === null || cache === void 0 ? void 0 : cache[0]) === version) return cache[1];
|
|
32133
|
-
var
|
|
32134
|
-
snapshotCache.set(receiver, [version,
|
|
32135
|
-
|
|
32136
|
-
|
|
32137
|
-
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
|
|
32142
|
-
|
|
32143
|
-
|
|
32469
|
+
var nextSnapshot = createObjectFromPrototype(target);
|
|
32470
|
+
snapshotCache.set(receiver, [version, nextSnapshot]);
|
|
32471
|
+
var _iteratorNormalCompletion = true,
|
|
32472
|
+
_didIteratorError = false,
|
|
32473
|
+
_iteratorError = undefined;
|
|
32474
|
+
try {
|
|
32475
|
+
for (var _iterator = Reflect.ownKeys(target)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32476
|
+
var key = _step.value;
|
|
32477
|
+
if (key === REACTIVE || key === PROXY_COUNT) continue;
|
|
32478
|
+
var value = Reflect.get(target, key, receiver);
|
|
32479
|
+
if (value === null || value === void 0 ? void 0 : value[REACTIVE]) {
|
|
32480
|
+
nextSnapshot[key] = snapshot(value);
|
|
32481
|
+
} else {
|
|
32482
|
+
nextSnapshot[key] = value;
|
|
32483
|
+
}
|
|
32144
32484
|
}
|
|
32145
|
-
})
|
|
32146
|
-
|
|
32147
|
-
|
|
32485
|
+
} catch (err) {
|
|
32486
|
+
_didIteratorError = true;
|
|
32487
|
+
_iteratorError = err;
|
|
32488
|
+
} finally {
|
|
32489
|
+
try {
|
|
32490
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32491
|
+
_iterator.return();
|
|
32492
|
+
}
|
|
32493
|
+
} finally {
|
|
32494
|
+
if (_didIteratorError) {
|
|
32495
|
+
throw _iteratorError;
|
|
32496
|
+
}
|
|
32497
|
+
}
|
|
32498
|
+
}
|
|
32499
|
+
Object.preventExtensions(nextSnapshot);
|
|
32500
|
+
return nextSnapshot;
|
|
32148
32501
|
};
|
|
32149
32502
|
var baseObject = createObjectFromPrototype(initState);
|
|
32503
|
+
var addCurrentProxyCount = function addCurrentProxyCount() {
|
|
32504
|
+
var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
|
|
32505
|
+
addParentProxyCount(value);
|
|
32506
|
+
var count = Reflect.get(proxyState, PROXY_COUNT) || 1;
|
|
32507
|
+
Reflect.defineProperty(proxyState, PROXY_COUNT, {
|
|
32508
|
+
value: count + value,
|
|
32509
|
+
writable: true
|
|
32510
|
+
});
|
|
32511
|
+
};
|
|
32150
32512
|
var proxyState = new Proxy(baseObject, {
|
|
32151
32513
|
get: function get(target, prop, receiver) {
|
|
32152
32514
|
if (prop === LISTENERS) {
|
|
@@ -32161,15 +32523,24 @@ function proxy(initState) {
|
|
|
32161
32523
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32162
32524
|
var preValue = Reflect.get(target, prop, receiver);
|
|
32163
32525
|
var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
|
|
32164
|
-
|
|
32165
|
-
|
|
32526
|
+
if (childListeners) {
|
|
32527
|
+
childListeners.delete(popPropListener(prop));
|
|
32528
|
+
}
|
|
32529
|
+
if (!chunk_22VVHX5B_isObject(value) && Object.is(preValue, value)) {
|
|
32166
32530
|
return true;
|
|
32167
32531
|
}
|
|
32168
32532
|
var nextValue = value;
|
|
32169
32533
|
if (nextValue === null || nextValue === void 0 ? void 0 : nextValue[LISTENERS]) {
|
|
32170
32534
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32171
32535
|
} else if (canProxy(value)) {
|
|
32172
|
-
|
|
32536
|
+
if (preValue === null || preValue === void 0 ? void 0 : preValue[REACTIVE]) {
|
|
32537
|
+
var childrenCount = (preValue === null || preValue === void 0 ? void 0 : preValue[PROXY_COUNT]) || 1;
|
|
32538
|
+
addCurrentProxyCount(-childrenCount);
|
|
32539
|
+
}
|
|
32540
|
+
addCurrentProxyCount(1);
|
|
32541
|
+
nextValue = proxy(value, props, {
|
|
32542
|
+
addParentProxyCount: addCurrentProxyCount
|
|
32543
|
+
});
|
|
32173
32544
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32174
32545
|
}
|
|
32175
32546
|
var success = Reflect.set(target, prop, nextValue, receiver);
|
|
@@ -32177,110 +32548,145 @@ function proxy(initState) {
|
|
|
32177
32548
|
return success;
|
|
32178
32549
|
},
|
|
32179
32550
|
deleteProperty: function deleteProperty(target, prop) {
|
|
32180
|
-
var _Reflect_get;
|
|
32181
32551
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32182
|
-
var
|
|
32183
|
-
childListeners
|
|
32552
|
+
var preValue = Reflect.get(target, prop);
|
|
32553
|
+
var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
|
|
32554
|
+
if (childListeners) {
|
|
32555
|
+
childListeners.delete(popPropListener(prop));
|
|
32556
|
+
}
|
|
32557
|
+
if (preValue === null || preValue === void 0 ? void 0 : preValue[REACTIVE]) {
|
|
32558
|
+
var childrenCount = (preValue === null || preValue === void 0 ? void 0 : preValue[PROXY_COUNT]) || 1;
|
|
32559
|
+
addCurrentProxyCount(-childrenCount);
|
|
32560
|
+
}
|
|
32184
32561
|
var success = Reflect.deleteProperty(target, prop);
|
|
32185
32562
|
success && notifyUpdate(props);
|
|
32186
32563
|
return success;
|
|
32187
32564
|
}
|
|
32188
32565
|
});
|
|
32189
|
-
Reflect.ownKeys(initState).forEach(function (key) {
|
|
32190
|
-
proxyState[key] = initState[key];
|
|
32191
|
-
});
|
|
32192
32566
|
Reflect.defineProperty(proxyState, REACTIVE, {
|
|
32193
32567
|
value: true
|
|
32194
32568
|
});
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32201
|
-
|
|
32202
|
-
var runCallbacks = function runCallbacks() {
|
|
32203
|
-
callbacks.forEach(function (cb) {
|
|
32204
|
-
return void cb();
|
|
32205
|
-
});
|
|
32206
|
-
callbacks.clear();
|
|
32207
|
-
previousState = getSnapshot(proxyState);
|
|
32208
|
-
};
|
|
32209
|
-
var listener = function listener(props, version) {
|
|
32210
|
-
var currentState = getSnapshot(proxyState);
|
|
32211
|
-
var changes = {
|
|
32212
|
-
props: props,
|
|
32213
|
-
propsPath: propertyKeysToPath(props),
|
|
32214
|
-
previous: get(previousState, props),
|
|
32215
|
-
current: get(currentState, props),
|
|
32216
|
-
snapshot: currentState
|
|
32217
|
-
};
|
|
32218
|
-
callbacks.add(function () {
|
|
32219
|
-
return void callback(changes, version);
|
|
32220
|
-
});
|
|
32221
|
-
if (notifyInSync) {
|
|
32222
|
-
return void runCallbacks();
|
|
32569
|
+
var _iteratorNormalCompletion = true,
|
|
32570
|
+
_didIteratorError = false,
|
|
32571
|
+
_iteratorError = undefined;
|
|
32572
|
+
try {
|
|
32573
|
+
for (var _iterator = Reflect.ownKeys(initState)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32574
|
+
var key = _step.value;
|
|
32575
|
+
proxyState[key] = initState[key];
|
|
32223
32576
|
}
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32227
|
-
|
|
32228
|
-
|
|
32577
|
+
} catch (err) {
|
|
32578
|
+
_didIteratorError = true;
|
|
32579
|
+
_iteratorError = err;
|
|
32580
|
+
} finally {
|
|
32581
|
+
try {
|
|
32582
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32583
|
+
_iterator.return();
|
|
32584
|
+
}
|
|
32585
|
+
} finally {
|
|
32586
|
+
if (_didIteratorError) {
|
|
32587
|
+
throw _iteratorError;
|
|
32588
|
+
}
|
|
32229
32589
|
}
|
|
32230
|
-
}
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32590
|
+
}
|
|
32591
|
+
if (!Reflect.has(proxyState, PROXY_COUNT)) {
|
|
32592
|
+
Reflect.defineProperty(proxyState, PROXY_COUNT, {
|
|
32593
|
+
value: 1,
|
|
32594
|
+
writable: true
|
|
32595
|
+
});
|
|
32596
|
+
}
|
|
32597
|
+
return proxyState;
|
|
32236
32598
|
}
|
|
32237
32599
|
// src/vanilla/create.ts
|
|
32238
|
-
function
|
|
32239
|
-
|
|
32600
|
+
function createVanilla(initState) {
|
|
32601
|
+
var _options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32240
32602
|
var proxyState = proxy(initState);
|
|
32241
|
-
|
|
32242
|
-
var
|
|
32243
|
-
|
|
32244
|
-
|
|
32603
|
+
function restore() {
|
|
32604
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
32605
|
+
var _options_exclude = options.exclude,
|
|
32606
|
+
exclude = _options_exclude === void 0 ? [] : _options_exclude;
|
|
32607
|
+
var clonedState = deepCloneWithRef(initState);
|
|
32608
|
+
var initialKeys = Object.keys(initState);
|
|
32609
|
+
var _iteratorNormalCompletion = true,
|
|
32610
|
+
_didIteratorError = false,
|
|
32611
|
+
_iteratorError = undefined;
|
|
32612
|
+
try {
|
|
32613
|
+
for (var _iterator = Object.keys(clonedState)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32614
|
+
var key = _step.value;
|
|
32615
|
+
if (exclude.includes(key)) continue;
|
|
32616
|
+
proxyState[key] = clonedState[key];
|
|
32617
|
+
}
|
|
32618
|
+
} catch (err) {
|
|
32619
|
+
_didIteratorError = true;
|
|
32620
|
+
_iteratorError = err;
|
|
32621
|
+
} finally {
|
|
32622
|
+
try {
|
|
32623
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32624
|
+
_iterator.return();
|
|
32625
|
+
}
|
|
32626
|
+
} finally {
|
|
32627
|
+
if (_didIteratorError) {
|
|
32628
|
+
throw _iteratorError;
|
|
32629
|
+
}
|
|
32630
|
+
}
|
|
32631
|
+
}
|
|
32632
|
+
var addedKeys = Object.keys(proxyState).filter(function (key) {
|
|
32633
|
+
return !initialKeys.includes(key);
|
|
32245
32634
|
});
|
|
32246
|
-
|
|
32247
|
-
|
|
32248
|
-
|
|
32249
|
-
|
|
32250
|
-
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32635
|
+
var _iteratorNormalCompletion1 = true,
|
|
32636
|
+
_didIteratorError1 = false,
|
|
32637
|
+
_iteratorError1 = undefined;
|
|
32638
|
+
try {
|
|
32639
|
+
for (var _iterator1 = addedKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
32640
|
+
var key1 = _step1.value;
|
|
32641
|
+
if (exclude.includes(key1)) continue;
|
|
32642
|
+
delete proxyState[key1];
|
|
32643
|
+
}
|
|
32644
|
+
} catch (err) {
|
|
32645
|
+
_didIteratorError1 = true;
|
|
32646
|
+
_iteratorError1 = err;
|
|
32647
|
+
} finally {
|
|
32648
|
+
try {
|
|
32649
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
32650
|
+
_iterator1.return();
|
|
32651
|
+
}
|
|
32652
|
+
} finally {
|
|
32653
|
+
if (_didIteratorError1) {
|
|
32654
|
+
throw _iteratorError1;
|
|
32655
|
+
}
|
|
32656
|
+
}
|
|
32657
|
+
}
|
|
32658
|
+
}
|
|
32659
|
+
var store = {
|
|
32255
32660
|
mutate: proxyState,
|
|
32256
|
-
subscribe: _subscribe,
|
|
32257
32661
|
restore: restore
|
|
32258
32662
|
};
|
|
32663
|
+
return withSubscribe(withSnapshot(store));
|
|
32259
32664
|
}
|
|
32665
|
+
var chunk_22VVHX5B_create = (/* unused pure expression or super */ null && (createVanilla));
|
|
32260
32666
|
// src/vanilla/devtools.ts
|
|
32261
|
-
function devtools(
|
|
32262
|
-
|
|
32667
|
+
function devtools(store, options) {
|
|
32668
|
+
if (chunk_22VVHX5B_isProduction) return noop;
|
|
32263
32669
|
var ext = window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
32264
32670
|
var _options_enable;
|
|
32265
32671
|
var enable = (_options_enable = options === null || options === void 0 ? void 0 : options.enable) !== null && _options_enable !== void 0 ? _options_enable : true;
|
|
32266
32672
|
var isMutatingStoreByDevtools = false;
|
|
32267
|
-
if (!enable) return
|
|
32673
|
+
if (!enable) return noop;
|
|
32268
32674
|
if (!ext) {
|
|
32269
32675
|
var infos = ["[Warning] to enable devtools, make sure you've installed Redux devtools extension \uD83D\uDC49", "https://github.com/reduxjs/redux-devtools#redux-devtools"];
|
|
32270
32676
|
console.warn(infos.join(" "));
|
|
32271
|
-
return
|
|
32677
|
+
return noop;
|
|
32272
32678
|
}
|
|
32273
32679
|
var _options_name;
|
|
32274
32680
|
var name = (_options_name = options === null || options === void 0 ? void 0 : options.name) !== null && _options_name !== void 0 ? _options_name : "untitled";
|
|
32275
32681
|
var devtools2 = ext.connect(options);
|
|
32276
|
-
var initialState =
|
|
32682
|
+
var initialState = snapshot(store.mutate);
|
|
32277
32683
|
devtools2.init(initialState);
|
|
32278
32684
|
devtools2.subscribe(function (message) {
|
|
32279
32685
|
console.debug("[reactive] message from devtools: ", message);
|
|
32280
32686
|
if (message.type !== "DISPATCH") return;
|
|
32281
32687
|
if (!message.payload) return;
|
|
32282
32688
|
if (message.payload.type === "RESET") devtools2.init(initialState);
|
|
32283
|
-
if (message.payload.type === "COMMIT") devtools2.init(
|
|
32689
|
+
if (message.payload.type === "COMMIT") devtools2.init(snapshot(store.mutate));
|
|
32284
32690
|
var actions = ["ROLLBACK", "JUMP_TO_ACTION"];
|
|
32285
32691
|
var isAction = actions.includes(message.payload.type);
|
|
32286
32692
|
var hasState = message.state && message.state !== "{}";
|
|
@@ -32288,7 +32694,7 @@ function devtools(param, options) {
|
|
|
32288
32694
|
try {
|
|
32289
32695
|
isMutatingStoreByDevtools = true;
|
|
32290
32696
|
var newState = JSON.parse(message.state || "{}");
|
|
32291
|
-
Object.assign(
|
|
32697
|
+
Object.assign(store.mutate, newState);
|
|
32292
32698
|
console.debug("[reactive] mutate state by devtools: ", newState);
|
|
32293
32699
|
} catch (e) {
|
|
32294
32700
|
devtools2.error((e === null || e === void 0 ? void 0 : e.message) || (e === null || e === void 0 ? void 0 : e.toString()) || JSON.stringify(e || ""));
|
|
@@ -32297,11 +32703,11 @@ function devtools(param, options) {
|
|
|
32297
32703
|
}
|
|
32298
32704
|
}
|
|
32299
32705
|
});
|
|
32300
|
-
var unsubscribe = subscribe(
|
|
32706
|
+
var unsubscribe = subscribe(store.mutate, function (changes, version) {
|
|
32301
32707
|
var propsPath = changes.propsPath,
|
|
32302
32708
|
previous = changes.previous,
|
|
32303
32709
|
current = changes.current,
|
|
32304
|
-
|
|
32710
|
+
snapshot2 = changes.snapshot;
|
|
32305
32711
|
if (isMutatingStoreByDevtools) return;
|
|
32306
32712
|
var payload = {
|
|
32307
32713
|
type: "[".concat(canProxy(current) ? "replace" : "set", "] ").concat(propsPath),
|
|
@@ -32310,7 +32716,7 @@ function devtools(param, options) {
|
|
|
32310
32716
|
_updatedAt: /* @__PURE__ */new Date().toLocaleString(),
|
|
32311
32717
|
_innerVersion: version
|
|
32312
32718
|
};
|
|
32313
|
-
devtools2.send(payload,
|
|
32719
|
+
devtools2.send(payload, snapshot2);
|
|
32314
32720
|
console.debug("[reactive] [".concat(name, "] [").concat(getActionType(current), "] ").concat(propsPath), current);
|
|
32315
32721
|
}, true);
|
|
32316
32722
|
console.debug("[reactive] [".concat(name, "] devtools is enabled"));
|
|
@@ -32327,54 +32733,193 @@ function getActionType(state) {
|
|
|
32327
32733
|
function produce(obj, draftHandler) {
|
|
32328
32734
|
var state = proxy(obj);
|
|
32329
32735
|
draftHandler(state);
|
|
32330
|
-
var
|
|
32736
|
+
var nextSnapshot = snapshot(state);
|
|
32331
32737
|
state = null;
|
|
32332
|
-
return
|
|
32738
|
+
return nextSnapshot;
|
|
32739
|
+
}
|
|
32740
|
+
// src/vanilla/proxy-count.ts
|
|
32741
|
+
function proxyCount(proxyState) {
|
|
32742
|
+
var _proxyState_PROXY_COUNT;
|
|
32743
|
+
return (_proxyState_PROXY_COUNT = proxyState === null || proxyState === void 0 ? void 0 : proxyState[PROXY_COUNT]) !== null && _proxyState_PROXY_COUNT !== void 0 ? _proxyState_PROXY_COUNT : 0;
|
|
32744
|
+
}
|
|
32745
|
+
// src/enhancers/vanilla/with-derived.ts
|
|
32746
|
+
function withDerived(store) {
|
|
32747
|
+
var mapFn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function (s) {
|
|
32748
|
+
return s;
|
|
32749
|
+
};
|
|
32750
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32751
|
+
derived: function derived() {
|
|
32752
|
+
return mapFn(store.mutate);
|
|
32753
|
+
}
|
|
32754
|
+
});
|
|
32333
32755
|
}
|
|
32334
32756
|
|
|
32335
|
-
// EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.
|
|
32336
|
-
var with_selector = __webpack_require__(
|
|
32337
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.
|
|
32757
|
+
// EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.6.0_react@18.3.1/node_modules/use-sync-external-store/shim/with-selector.js
|
|
32758
|
+
var with_selector = __webpack_require__(3384);
|
|
32759
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.3.3_react@18.3.1/node_modules/@shined/reactive/dist/chunk-UGXUT7UC.js
|
|
32760
|
+
function chunk_UGXUT7UC_array_like_to_array(arr, len) {
|
|
32761
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
32762
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
32763
|
+
return arr2;
|
|
32764
|
+
}
|
|
32765
|
+
function chunk_UGXUT7UC_array_without_holes(arr) {
|
|
32766
|
+
if (Array.isArray(arr)) return chunk_UGXUT7UC_array_like_to_array(arr);
|
|
32767
|
+
}
|
|
32768
|
+
function chunk_UGXUT7UC_define_property(obj, key, value) {
|
|
32769
|
+
if (key in obj) {
|
|
32770
|
+
Object.defineProperty(obj, key, {
|
|
32771
|
+
value: value,
|
|
32772
|
+
enumerable: true,
|
|
32773
|
+
configurable: true,
|
|
32774
|
+
writable: true
|
|
32775
|
+
});
|
|
32776
|
+
} else {
|
|
32777
|
+
obj[key] = value;
|
|
32778
|
+
}
|
|
32779
|
+
return obj;
|
|
32780
|
+
}
|
|
32781
|
+
function chunk_UGXUT7UC_iterable_to_array(iter) {
|
|
32782
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
32783
|
+
}
|
|
32784
|
+
function chunk_UGXUT7UC_non_iterable_spread() {
|
|
32785
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32786
|
+
}
|
|
32787
|
+
function chunk_UGXUT7UC_object_spread(target) {
|
|
32788
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32789
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
32790
|
+
var ownKeys = Object.keys(source);
|
|
32791
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
32792
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
32793
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
32794
|
+
}));
|
|
32795
|
+
}
|
|
32796
|
+
ownKeys.forEach(function (key) {
|
|
32797
|
+
chunk_UGXUT7UC_define_property(target, key, source[key]);
|
|
32798
|
+
});
|
|
32799
|
+
}
|
|
32800
|
+
return target;
|
|
32801
|
+
}
|
|
32802
|
+
function chunk_UGXUT7UC_ownKeys(object, enumerableOnly) {
|
|
32803
|
+
var keys = Object.keys(object);
|
|
32804
|
+
if (Object.getOwnPropertySymbols) {
|
|
32805
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32806
|
+
if (enumerableOnly) {
|
|
32807
|
+
symbols = symbols.filter(function (sym) {
|
|
32808
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32809
|
+
});
|
|
32810
|
+
}
|
|
32811
|
+
keys.push.apply(keys, symbols);
|
|
32812
|
+
}
|
|
32813
|
+
return keys;
|
|
32814
|
+
}
|
|
32815
|
+
function chunk_UGXUT7UC_object_spread_props(target, source) {
|
|
32816
|
+
source = source != null ? source : {};
|
|
32817
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
32818
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
32819
|
+
} else {
|
|
32820
|
+
chunk_UGXUT7UC_ownKeys(Object(source)).forEach(function (key) {
|
|
32821
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32822
|
+
});
|
|
32823
|
+
}
|
|
32824
|
+
return target;
|
|
32825
|
+
}
|
|
32826
|
+
function chunk_UGXUT7UC_to_consumable_array(arr) {
|
|
32827
|
+
return chunk_UGXUT7UC_array_without_holes(arr) || chunk_UGXUT7UC_iterable_to_array(arr) || chunk_UGXUT7UC_unsupported_iterable_to_array(arr) || chunk_UGXUT7UC_non_iterable_spread();
|
|
32828
|
+
}
|
|
32829
|
+
function chunk_UGXUT7UC_unsupported_iterable_to_array(o, minLen) {
|
|
32830
|
+
if (!o) return;
|
|
32831
|
+
if (typeof o === "string") return chunk_UGXUT7UC_array_like_to_array(o, minLen);
|
|
32832
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
32833
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
32834
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
32835
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return chunk_UGXUT7UC_array_like_to_array(o, minLen);
|
|
32836
|
+
}
|
|
32338
32837
|
|
|
32339
32838
|
// src/react/use-snapshot.ts
|
|
32340
32839
|
|
|
32341
32840
|
|
|
32342
32841
|
function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
|
|
32343
|
-
|
|
32344
|
-
|
|
32345
|
-
|
|
32842
|
+
var isUnmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
32843
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
32844
|
+
return function () {
|
|
32845
|
+
isUnmountedRef.current = true;
|
|
32846
|
+
};
|
|
32847
|
+
}, []);
|
|
32848
|
+
var options;
|
|
32849
|
+
var selector;
|
|
32850
|
+
if (selectorOrOption && !isFunction(selectorOrOption)) {
|
|
32851
|
+
options = selectorOrOption;
|
|
32852
|
+
selector = void 0;
|
|
32853
|
+
} else {
|
|
32854
|
+
options = maybeOptions;
|
|
32855
|
+
selector = selectorOrOption;
|
|
32346
32856
|
}
|
|
32347
|
-
var _ref =
|
|
32348
|
-
|
|
32349
|
-
updateInSync = tmp === void 0 ? false : tmp,
|
|
32857
|
+
var _ref = options !== null && options !== void 0 ? options : {},
|
|
32858
|
+
updateInSync = _ref.sync,
|
|
32350
32859
|
_ref_isEqual = _ref.isEqual,
|
|
32351
|
-
isEqual = _ref_isEqual === void 0 ?
|
|
32860
|
+
isEqual = _ref_isEqual === void 0 ? chunk_22VVHX5B_shallowEqual : _ref_isEqual;
|
|
32352
32861
|
var _subscribe = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (callback) {
|
|
32353
32862
|
return subscribe(proxyState, callback, updateInSync);
|
|
32354
32863
|
}, [proxyState, updateInSync]);
|
|
32355
32864
|
var _getSnapshot = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
32356
|
-
return
|
|
32865
|
+
return snapshot(proxyState);
|
|
32357
32866
|
}, [proxyState]);
|
|
32358
|
-
var
|
|
32867
|
+
var _selector = selector || function (s) {
|
|
32359
32868
|
return s;
|
|
32360
32869
|
};
|
|
32361
|
-
var
|
|
32362
|
-
|
|
32870
|
+
var _snapshot = (0,with_selector.useSyncExternalStoreWithSelector)(_subscribe, _getSnapshot, _getSnapshot, _selector, function (a, b) {
|
|
32871
|
+
if (isUnmountedRef.current) return true;
|
|
32872
|
+
return isEqual(a, b);
|
|
32873
|
+
});
|
|
32874
|
+
return _snapshot;
|
|
32363
32875
|
}
|
|
32364
|
-
// src/react/
|
|
32365
|
-
function
|
|
32366
|
-
var
|
|
32367
|
-
|
|
32368
|
-
|
|
32369
|
-
|
|
32370
|
-
|
|
32876
|
+
// src/enhancers/react/with-use-snapshot.ts
|
|
32877
|
+
function withUseSnapshot(store) {
|
|
32878
|
+
var boundUseSnapshot = function boundUseSnapshot(selectorOrOption, maybeOptions) {
|
|
32879
|
+
var options;
|
|
32880
|
+
var selector;
|
|
32881
|
+
if (selectorOrOption && !isFunction(selectorOrOption)) {
|
|
32882
|
+
options = selectorOrOption;
|
|
32883
|
+
selector = void 0;
|
|
32884
|
+
} else {
|
|
32885
|
+
options = maybeOptions;
|
|
32886
|
+
selector = selectorOrOption;
|
|
32371
32887
|
}
|
|
32372
|
-
return useSnapshot(store.mutate,
|
|
32888
|
+
return useSnapshot(store.mutate, selector, options);
|
|
32373
32889
|
};
|
|
32374
|
-
|
|
32375
|
-
useSnapshot:
|
|
32890
|
+
return chunk_UGXUT7UC_object_spread_props(chunk_UGXUT7UC_object_spread({}, store), {
|
|
32891
|
+
useSnapshot: boundUseSnapshot
|
|
32376
32892
|
});
|
|
32377
|
-
|
|
32893
|
+
}
|
|
32894
|
+
// src/react/use-subscribe.ts
|
|
32895
|
+
|
|
32896
|
+
function useSubscribe(proxyState, listener, notifyInSync) {
|
|
32897
|
+
var listenerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(listener);
|
|
32898
|
+
listenerRef.current = listener;
|
|
32899
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
32900
|
+
var _listenerRef;
|
|
32901
|
+
var unsubscribe = subscribe(proxyState, function () {
|
|
32902
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32903
|
+
args[_key] = arguments[_key];
|
|
32904
|
+
}
|
|
32905
|
+
return (_listenerRef = listenerRef).current.apply(_listenerRef, chunk_UGXUT7UC_to_consumable_array(args));
|
|
32906
|
+
}, notifyInSync);
|
|
32907
|
+
return unsubscribe;
|
|
32908
|
+
}, [proxyState, notifyInSync]);
|
|
32909
|
+
}
|
|
32910
|
+
// src/enhancers/react/with-use-subscribe.ts
|
|
32911
|
+
function withUseSubscribe(store) {
|
|
32912
|
+
var boundUseSubscribe = function boundUseSubscribe(listener, notifyInSync) {
|
|
32913
|
+
return useSubscribe(store.mutate, listener, notifyInSync);
|
|
32914
|
+
};
|
|
32915
|
+
return chunk_UGXUT7UC_object_spread_props(chunk_UGXUT7UC_object_spread({}, store), {
|
|
32916
|
+
useSubscribe: boundUseSubscribe
|
|
32917
|
+
});
|
|
32918
|
+
}
|
|
32919
|
+
// src/react/create-with-hooks.ts
|
|
32920
|
+
function createWithHooks(initialState) {
|
|
32921
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32922
|
+
return withUseSnapshot(withUseSubscribe(createVanilla(initialState, options)));
|
|
32378
32923
|
}
|
|
32379
32924
|
|
|
32380
32925
|
;// CONCATENATED MODULE: ../base/src/config/index.ts
|
|
@@ -32384,7 +32929,6 @@ var _process;
|
|
|
32384
32929
|
|
|
32385
32930
|
|
|
32386
32931
|
|
|
32387
|
-
|
|
32388
32932
|
/**
|
|
32389
32933
|
* @en Global configuration for Empty component
|
|
32390
32934
|
* @cn Empty组件的全局配置
|
|
@@ -32392,7 +32936,7 @@ var _process;
|
|
|
32392
32936
|
*/
|
|
32393
32937
|
|
|
32394
32938
|
var processEnv = typeof process !== 'undefined' ? (_process = process) === null || process === void 0 ? void 0 : ({"NODE_ENV":"production","PUBLIC_PATH":"/"}) : {};
|
|
32395
|
-
var
|
|
32939
|
+
var defaultConfig = {
|
|
32396
32940
|
prefix: 'soui',
|
|
32397
32941
|
locale: processEnv.LOCALE || 'en-US',
|
|
32398
32942
|
delay: 400,
|
|
@@ -32403,9 +32947,10 @@ var src_config_config = {
|
|
|
32403
32947
|
direction: 'ltr',
|
|
32404
32948
|
popupContainer: null
|
|
32405
32949
|
};
|
|
32406
|
-
var state = createWithHooks(
|
|
32950
|
+
var state = createWithHooks(defaultConfig);
|
|
32951
|
+
var src_config_config = snapshot(state.mutate);
|
|
32407
32952
|
state.subscribe(function () {
|
|
32408
|
-
src_config_config =
|
|
32953
|
+
src_config_config = snapshot(state.mutate);
|
|
32409
32954
|
});
|
|
32410
32955
|
function getDefaultContainer() {
|
|
32411
32956
|
if (isFunc(src_config_config.popupContainer)) {
|
|
@@ -33133,6 +33678,30 @@ var getDuration = function getDuration(duration) {
|
|
|
33133
33678
|
}
|
|
33134
33679
|
};
|
|
33135
33680
|
var mm = 30;
|
|
33681
|
+
|
|
33682
|
+
/**
|
|
33683
|
+
* AnimationList - 动画列表组件
|
|
33684
|
+
*
|
|
33685
|
+
* 动画状态流程:
|
|
33686
|
+
*
|
|
33687
|
+
* 展开动画 (show: false -> true):
|
|
33688
|
+
* beforeEnter: 设置初始状态(display, height: 0, opacity: 0 等)
|
|
33689
|
+
* ↓ 等待 mm(30ms) - 触发浏览器重绘
|
|
33690
|
+
* enter: 应用过渡动画(height: ${height}px, opacity: 1 等)
|
|
33691
|
+
* ↓ 等待 durationNum(240ms) - 动画执行
|
|
33692
|
+
* afterEnter: 清理动画状态(height: auto, pointer-events: initial)
|
|
33693
|
+
*
|
|
33694
|
+
* 收起动画 (show: true -> false):
|
|
33695
|
+
* beforeLeave: 固定当前状态(height: ${height}px, pointer-events: none)
|
|
33696
|
+
* ↓ 等待 mm(30ms) - 触发浏览器重绘
|
|
33697
|
+
* leave: 应用过渡动画(height: 0, opacity: 0 等)
|
|
33698
|
+
* ↓ 等待 durationNum(240ms) - 动画执行
|
|
33699
|
+
* afterLeave: 清理并隐藏(display: none, pointer-events: initial)
|
|
33700
|
+
*
|
|
33701
|
+
* pointer-events 控制:
|
|
33702
|
+
* - beforeLeave: 设置为 'none',防止动画过程中的误操作
|
|
33703
|
+
* - afterEnter/afterLeave: 恢复为 'initial',确保动画结束后可正常交互
|
|
33704
|
+
*/
|
|
33136
33705
|
var AnimationList = function AnimationList(props) {
|
|
33137
33706
|
var _props$display = props.display,
|
|
33138
33707
|
display = _props$display === void 0 ? 'block' : _props$display,
|
|
@@ -33211,6 +33780,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33211
33780
|
width: 0
|
|
33212
33781
|
};
|
|
33213
33782
|
};
|
|
33783
|
+
|
|
33784
|
+
/**
|
|
33785
|
+
* 展开动画阶段1: 设置初始状态
|
|
33786
|
+
* 设置 display 显示元素,并将动画属性设为起始值(如 height: 0)
|
|
33787
|
+
*/
|
|
33214
33788
|
var beforeEnter = function beforeEnter() {
|
|
33215
33789
|
var newStyle = {
|
|
33216
33790
|
display: display
|
|
@@ -33237,6 +33811,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33237
33811
|
return objectSpread2_default()(objectSpread2_default()({}, s), newStyle);
|
|
33238
33812
|
});
|
|
33239
33813
|
};
|
|
33814
|
+
|
|
33815
|
+
/**
|
|
33816
|
+
* 展开动画阶段2: 执行过渡动画
|
|
33817
|
+
* 添加 transition 并将动画属性过渡到目标值
|
|
33818
|
+
*/
|
|
33240
33819
|
var enter = function enter() {
|
|
33241
33820
|
var newStyle = {
|
|
33242
33821
|
transition: transition
|
|
@@ -33256,8 +33835,15 @@ var AnimationList = function AnimationList(props) {
|
|
|
33256
33835
|
});
|
|
33257
33836
|
setStatus('enter');
|
|
33258
33837
|
};
|
|
33838
|
+
|
|
33839
|
+
/**
|
|
33840
|
+
* 展开动画阶段3: 清理动画状态
|
|
33841
|
+
* 移除固定尺寸,恢复自动布局,恢复交互能力
|
|
33842
|
+
*/
|
|
33259
33843
|
var afterEnter = function afterEnter() {
|
|
33260
|
-
var newStyle = {
|
|
33844
|
+
var newStyle = {
|
|
33845
|
+
pointerEvents: 'initial'
|
|
33846
|
+
};
|
|
33261
33847
|
if (type.indexOf('collapse') >= 0) {
|
|
33262
33848
|
newStyle.height = 'auto';
|
|
33263
33849
|
newStyle.overflow = '';
|
|
@@ -33268,9 +33854,16 @@ var AnimationList = function AnimationList(props) {
|
|
|
33268
33854
|
setStatus('afterEnter');
|
|
33269
33855
|
onAnimationAfterEnter === null || onAnimationAfterEnter === void 0 || onAnimationAfterEnter();
|
|
33270
33856
|
};
|
|
33857
|
+
|
|
33858
|
+
/**
|
|
33859
|
+
* 收起动画阶段1: 固定当前状态
|
|
33860
|
+
* 禁用交互,固定当前高度,准备执行收起动画
|
|
33861
|
+
*/
|
|
33271
33862
|
var beforeLeave = function beforeLeave() {
|
|
33272
33863
|
var el = ref.current;
|
|
33273
|
-
var newStyle = {
|
|
33864
|
+
var newStyle = {
|
|
33865
|
+
pointerEvents: 'none'
|
|
33866
|
+
};
|
|
33274
33867
|
if (type.indexOf('collapse') >= 0) {
|
|
33275
33868
|
context.height = el.offsetHeight;
|
|
33276
33869
|
newStyle.height = "".concat(context.height, "px");
|
|
@@ -33288,6 +33881,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33288
33881
|
});
|
|
33289
33882
|
setStatus('beforeLeave');
|
|
33290
33883
|
};
|
|
33884
|
+
|
|
33885
|
+
/**
|
|
33886
|
+
* 收起动画阶段2: 执行过渡动画
|
|
33887
|
+
* 添加 transition 并将动画属性过渡到收起状态(如 height: 0)
|
|
33888
|
+
*/
|
|
33291
33889
|
var leave = function leave() {
|
|
33292
33890
|
var newStyle = {
|
|
33293
33891
|
transition: transition
|
|
@@ -33307,8 +33905,15 @@ var AnimationList = function AnimationList(props) {
|
|
|
33307
33905
|
});
|
|
33308
33906
|
setStatus('leave');
|
|
33309
33907
|
};
|
|
33908
|
+
|
|
33909
|
+
/**
|
|
33910
|
+
* 收起动画阶段3: 清理并隐藏
|
|
33911
|
+
* 恢复交互能力,清理动画状态,设置 display: none 完全隐藏元素
|
|
33912
|
+
*/
|
|
33310
33913
|
var afterLeave = function afterLeave() {
|
|
33311
|
-
var newStyle = {
|
|
33914
|
+
var newStyle = {
|
|
33915
|
+
pointerEvents: 'initial'
|
|
33916
|
+
};
|
|
33312
33917
|
if (type.indexOf('collapse') >= 0) {
|
|
33313
33918
|
newStyle.height = 'auto';
|
|
33314
33919
|
newStyle.overflow = '';
|
|
@@ -33705,7 +34310,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
33705
34310
|
}
|
|
33706
34311
|
}
|
|
33707
34312
|
if (renderItem) {
|
|
33708
|
-
|
|
34313
|
+
if (max !== undefined) {
|
|
34314
|
+
item = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
34315
|
+
className: contentClass,
|
|
34316
|
+
ref: contentRef,
|
|
34317
|
+
children: renderItem(dataItem)
|
|
34318
|
+
});
|
|
34319
|
+
} else {
|
|
34320
|
+
return renderItem(dataItem);
|
|
34321
|
+
}
|
|
33709
34322
|
}
|
|
33710
34323
|
if (isOverflow && d.title && max !== undefined) {
|
|
33711
34324
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, {
|
|
@@ -33783,17 +34396,18 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
33783
34396
|
};
|
|
33784
34397
|
return [first, more].concat(toConsumableArray_default()(reset));
|
|
33785
34398
|
};
|
|
34399
|
+
var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
|
|
33786
34400
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
33787
34401
|
className: className,
|
|
33788
34402
|
style: props.style,
|
|
33789
34403
|
children: data && getRenderData().map(function (d, index) {
|
|
33790
34404
|
var itemFirst = Array.isArray(d) ? d[0] : d;
|
|
33791
|
-
var isLastItem = index ===
|
|
34405
|
+
var isLastItem = index === lastIndex;
|
|
33792
34406
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
33793
34407
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
33794
34408
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb_item, {
|
|
33795
34409
|
dataItem: d,
|
|
33796
|
-
renderItem: renderItem,
|
|
34410
|
+
renderItem: props.renderItem,
|
|
33797
34411
|
jssStyle: props.jssStyle,
|
|
33798
34412
|
max: maxCount
|
|
33799
34413
|
}), !isLastItem && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -36255,6 +36869,19 @@ var useCheck = function useCheck(props) {
|
|
|
36255
36869
|
};
|
|
36256
36870
|
};
|
|
36257
36871
|
/* harmony default export */ var use_check = (useCheck);
|
|
36872
|
+
;// CONCATENATED MODULE: ../hooks/src/utils/dom/get-dataset.ts
|
|
36873
|
+
var getDataset = function getDataset(props) {
|
|
36874
|
+
if (!props) return {};
|
|
36875
|
+
var dataset = {};
|
|
36876
|
+
var keys = Object.keys(props);
|
|
36877
|
+
for (var i = 0; i < keys.length; i++) {
|
|
36878
|
+
var _key = keys[i];
|
|
36879
|
+
if (_key.startsWith('data-')) {
|
|
36880
|
+
dataset[_key] = props[keys[i]];
|
|
36881
|
+
}
|
|
36882
|
+
}
|
|
36883
|
+
return dataset;
|
|
36884
|
+
};
|
|
36258
36885
|
;// CONCATENATED MODULE: ../base/src/form/form-field-context.ts
|
|
36259
36886
|
|
|
36260
36887
|
var FormFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
|
|
@@ -36298,13 +36925,13 @@ var Checkbox = function Checkbox(props) {
|
|
|
36298
36925
|
var rootClass = classnames_default()(className, checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.rootClass, checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapper, size === 'small' && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapperSmall), size === 'large' && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapperLarge), !!disabled && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapperDisabled), !!checked && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapperChecked), props.checked === 'indeterminate' && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.wrapperIndeterminate));
|
|
36299
36926
|
var indicatorClass = classnames_default()(checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.indicatorWrapper, theme === 'dark' && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.darkIndicatorWrapper));
|
|
36300
36927
|
var inputProps = getInputProps();
|
|
36301
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
36928
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
36302
36929
|
id: fieldId
|
|
36303
36930
|
}, getRootProps({
|
|
36304
36931
|
className: rootClass,
|
|
36305
36932
|
style: style,
|
|
36306
36933
|
needStopPropagation: props.needStopPropagation
|
|
36307
|
-
})), {}, {
|
|
36934
|
+
})), getDataset(props)), {}, {
|
|
36308
36935
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()(objectSpread2_default()({}, inputProps), {}, {
|
|
36309
36936
|
type: "checkbox"
|
|
36310
36937
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -36374,19 +37001,18 @@ function useInputAble(props) {
|
|
|
36374
37001
|
var render = useRender(syncValue);
|
|
36375
37002
|
var shouldUseState = delay || !control;
|
|
36376
37003
|
var value = shouldUseState ? stateValue : valuePo;
|
|
36377
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
36378
|
-
if (context.timer) {
|
|
36379
|
-
clearTimeout(context.timer);
|
|
36380
|
-
context.timer = null;
|
|
36381
|
-
}
|
|
37004
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
36382
37005
|
if (delay && control && props.value !== stateValue) {
|
|
36383
37006
|
changeStateValue(props.value);
|
|
37007
|
+
} else if (context.timer) {
|
|
37008
|
+
clearTimeout(context.timer);
|
|
37009
|
+
context.timer = null;
|
|
36384
37010
|
}
|
|
36385
37011
|
}, [props.value, delay, control]);
|
|
36386
37012
|
var forceDelayChange = use_persist_fn(function () {
|
|
36387
|
-
if (context.
|
|
37013
|
+
if (context.delayChange) context.delayChange();
|
|
37014
|
+
if (context.timer) {
|
|
36388
37015
|
clearTimeout(context.timer);
|
|
36389
|
-
context.delayChange();
|
|
36390
37016
|
context.timer = null;
|
|
36391
37017
|
context.delayChange = null;
|
|
36392
37018
|
}
|
|
@@ -36722,9 +37348,10 @@ var Input = function Input(props) {
|
|
|
36722
37348
|
className: classnames_default()(inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.input),
|
|
36723
37349
|
onKeyUp: onKeyUp
|
|
36724
37350
|
});
|
|
36725
|
-
var
|
|
37351
|
+
var datasetProps = getDataset(props);
|
|
37352
|
+
var inputElProps = removeProps(inputProps, objectSpread2_default()({
|
|
36726
37353
|
formName: undefined
|
|
36727
|
-
});
|
|
37354
|
+
}, datasetProps));
|
|
36728
37355
|
var inputEl = /*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()({
|
|
36729
37356
|
type: "text"
|
|
36730
37357
|
}, inputElProps));
|
|
@@ -36732,9 +37359,9 @@ var Input = function Input(props) {
|
|
|
36732
37359
|
inputEl = renderInput(inputEl);
|
|
36733
37360
|
}
|
|
36734
37361
|
var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.rootClass, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapper, !!focused && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperFocus), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperDisabled), status === 'error' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperError), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperLarge), !!underline && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperUnderline), !border && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNoBorder), hasSuffix && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.password), showClearFromProp && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperShowClear), showClearFromProp && !is_isEmpty(inputElProps.value) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperHasValue));
|
|
36735
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
37362
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
36736
37363
|
id: fieldId
|
|
36737
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
37364
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), datasetProps), getRootProps({
|
|
36738
37365
|
className: rootClass,
|
|
36739
37366
|
style: style
|
|
36740
37367
|
})), {}, {
|
|
@@ -37742,9 +38369,21 @@ CardGroupComp.Item = card_group_Item;
|
|
|
37742
38369
|
var useCarousel = function useCarousel(props) {
|
|
37743
38370
|
var total = props.total,
|
|
37744
38371
|
_props$interval = props.interval,
|
|
37745
|
-
interval = _props$interval === void 0 ? 0 : _props$interval
|
|
38372
|
+
interval = _props$interval === void 0 ? 0 : _props$interval,
|
|
38373
|
+
_props$defaultValue = props.defaultValue,
|
|
38374
|
+
defaultValue = _props$defaultValue === void 0 ? 0 : _props$defaultValue,
|
|
38375
|
+
valueProp = props.value,
|
|
38376
|
+
onChange = props.onChange;
|
|
38377
|
+
|
|
38378
|
+
// 规范化初始值,确保在有效范围内
|
|
38379
|
+
var normalizeIndex = function normalizeIndex(index) {
|
|
38380
|
+
if (index < 0) return 0;
|
|
38381
|
+
if (index >= total) return Math.max(0, total - 1);
|
|
38382
|
+
return index;
|
|
38383
|
+
};
|
|
38384
|
+
var initialValue = normalizeIndex(valueProp !== undefined ? valueProp : defaultValue);
|
|
37746
38385
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
|
|
37747
|
-
current:
|
|
38386
|
+
current: initialValue,
|
|
37748
38387
|
pre: -1,
|
|
37749
38388
|
direction: 'stop'
|
|
37750
38389
|
}),
|
|
@@ -37757,14 +38396,32 @@ var useCarousel = function useCarousel(props) {
|
|
|
37757
38396
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
37758
38397
|
timer: null,
|
|
37759
38398
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37760
|
-
setNext: function setNext(next) {}
|
|
38399
|
+
setNext: function setNext(next) {},
|
|
38400
|
+
prevValue: initialValue // 用于追踪上一次的值
|
|
37761
38401
|
}),
|
|
37762
38402
|
context = _useRef.current;
|
|
38403
|
+
|
|
38404
|
+
// 判断是否为受控模式
|
|
38405
|
+
var isControlled = valueProp !== undefined;
|
|
38406
|
+
// 获取实际使用的 current 值
|
|
38407
|
+
var actualCurrent = isControlled ? normalizeIndex(valueProp) : current;
|
|
38408
|
+
|
|
38409
|
+
// 在受控模式下,计算 direction 和 pre
|
|
38410
|
+
var actualPre = pre;
|
|
38411
|
+
var actualDirection = direction;
|
|
38412
|
+
if (isControlled) {
|
|
38413
|
+
if (actualCurrent !== context.prevValue) {
|
|
38414
|
+
actualPre = context.prevValue;
|
|
38415
|
+
actualDirection = actualCurrent > context.prevValue ? 'forward' : 'backward';
|
|
38416
|
+
context.prevValue = actualCurrent;
|
|
38417
|
+
}
|
|
38418
|
+
}
|
|
37763
38419
|
var autoPlay = interval > 0 && total > 1;
|
|
37764
38420
|
var moveTo = usePersistFn(function (i) {
|
|
37765
38421
|
var next = i;
|
|
37766
|
-
|
|
37767
|
-
|
|
38422
|
+
var prevCurrent = actualCurrent;
|
|
38423
|
+
if (next === prevCurrent) return;
|
|
38424
|
+
var dir = next > prevCurrent ? 'forward' : 'backward';
|
|
37768
38425
|
if (next >= total) {
|
|
37769
38426
|
dir = 'forward';
|
|
37770
38427
|
next = 0;
|
|
@@ -37772,14 +38429,26 @@ var useCarousel = function useCarousel(props) {
|
|
|
37772
38429
|
dir = 'backward';
|
|
37773
38430
|
next = total - 1;
|
|
37774
38431
|
}
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
|
|
37778
|
-
|
|
37779
|
-
|
|
38432
|
+
|
|
38433
|
+
// 非受控模式下更新内部状态
|
|
38434
|
+
if (!isControlled) {
|
|
38435
|
+
setState({
|
|
38436
|
+
current: next,
|
|
38437
|
+
pre: prevCurrent,
|
|
38438
|
+
direction: dir
|
|
38439
|
+
});
|
|
38440
|
+
}
|
|
38441
|
+
// 受控模式下不更新内部状态,由外部 value 控制
|
|
38442
|
+
|
|
38443
|
+
// 触发 onChange 回调
|
|
38444
|
+
if (onChange) {
|
|
38445
|
+
onChange(next);
|
|
38446
|
+
}
|
|
38447
|
+
|
|
38448
|
+
// 触发 onMove 回调(向后兼容)
|
|
37780
38449
|
if (props.onMove) {
|
|
37781
38450
|
props.onMove(next, {
|
|
37782
|
-
prev:
|
|
38451
|
+
prev: prevCurrent,
|
|
37783
38452
|
direction: dir,
|
|
37784
38453
|
moveTo: moveTo
|
|
37785
38454
|
});
|
|
@@ -37801,13 +38470,13 @@ var useCarousel = function useCarousel(props) {
|
|
|
37801
38470
|
});
|
|
37802
38471
|
context.setNext = setNext;
|
|
37803
38472
|
var start = usePersistFn(function () {
|
|
37804
|
-
setNext(
|
|
38473
|
+
setNext(actualCurrent + 1);
|
|
37805
38474
|
});
|
|
37806
38475
|
var forward = usePersistFn(function () {
|
|
37807
|
-
moveTo(
|
|
38476
|
+
moveTo(actualCurrent + 1);
|
|
37808
38477
|
});
|
|
37809
38478
|
var backward = usePersistFn(function () {
|
|
37810
|
-
moveTo(
|
|
38479
|
+
moveTo(actualCurrent - 1);
|
|
37811
38480
|
});
|
|
37812
38481
|
var func = use_latest_obj({
|
|
37813
38482
|
start: start,
|
|
@@ -37821,10 +38490,18 @@ var useCarousel = function useCarousel(props) {
|
|
|
37821
38490
|
start();
|
|
37822
38491
|
}
|
|
37823
38492
|
}, []);
|
|
38493
|
+
|
|
38494
|
+
// 受控模式下,当外部 value 变化时,重置自动轮播定时器
|
|
38495
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
38496
|
+
if (isControlled && autoPlay && valueProp !== undefined) {
|
|
38497
|
+
stop();
|
|
38498
|
+
context.setNext(actualCurrent + 1);
|
|
38499
|
+
}
|
|
38500
|
+
}, [valueProp]);
|
|
37824
38501
|
return {
|
|
37825
|
-
current:
|
|
37826
|
-
pre:
|
|
37827
|
-
direction:
|
|
38502
|
+
current: actualCurrent,
|
|
38503
|
+
pre: actualPre,
|
|
38504
|
+
direction: actualDirection,
|
|
37828
38505
|
func: func
|
|
37829
38506
|
};
|
|
37830
38507
|
};
|
|
@@ -37856,6 +38533,9 @@ var Carousel = function Carousel(props) {
|
|
|
37856
38533
|
var _useCarousel = use_carousel({
|
|
37857
38534
|
total: total,
|
|
37858
38535
|
interval: props.interval,
|
|
38536
|
+
defaultValue: props.defaultValue,
|
|
38537
|
+
value: props.value,
|
|
38538
|
+
onChange: props.onChange,
|
|
37859
38539
|
onMove: props.onMove
|
|
37860
38540
|
}),
|
|
37861
38541
|
current = _useCarousel.current,
|
|
@@ -37956,15 +38636,16 @@ var Carousel = function Carousel(props) {
|
|
|
37956
38636
|
children: content
|
|
37957
38637
|
});
|
|
37958
38638
|
};
|
|
37959
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
38639
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
37960
38640
|
className: wrapperClasses,
|
|
37961
38641
|
style: objectSpread2_default()(objectSpread2_default()({}, props.style), {}, {
|
|
37962
38642
|
height: 'auto'
|
|
37963
38643
|
}),
|
|
37964
38644
|
onMouseEnter: func.stop,
|
|
37965
|
-
onMouseLeave: func.start
|
|
38645
|
+
onMouseLeave: func.start
|
|
38646
|
+
}, getDataset(props)), {}, {
|
|
37966
38647
|
children: [renderItems(), renderIndicator(), renderArrow()]
|
|
37967
|
-
});
|
|
38648
|
+
}));
|
|
37968
38649
|
};
|
|
37969
38650
|
/* harmony default export */ var src_carousel_carousel = (Carousel);
|
|
37970
38651
|
;// CONCATENATED MODULE: ./src/carousel/carousel.tsx
|
|
@@ -40486,7 +41167,9 @@ var Scroll = function Scroll(props) {
|
|
|
40486
41167
|
_props$scrollWidth = props.scrollWidth,
|
|
40487
41168
|
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
|
|
40488
41169
|
_props$defaultHeight = props.defaultHeight,
|
|
40489
|
-
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight
|
|
41170
|
+
defaultHeight = _props$defaultHeight === void 0 ? 0 : _props$defaultHeight,
|
|
41171
|
+
_props$keepScrollTop = props.keepScrollTop,
|
|
41172
|
+
keepScrollTop = _props$keepScrollTop === void 0 ? false : _props$keepScrollTop;
|
|
40490
41173
|
var _useResize = useResize({
|
|
40491
41174
|
targetRef: containerRef,
|
|
40492
41175
|
timer: 100
|
|
@@ -40511,7 +41194,9 @@ var Scroll = function Scroll(props) {
|
|
|
40511
41194
|
|
|
40512
41195
|
// 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
|
|
40513
41196
|
var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
40514
|
-
|
|
41197
|
+
var maxHeight = Math.max(0, scrollHeight - height);
|
|
41198
|
+
if (keepScrollTop) return maxHeight;
|
|
41199
|
+
return height === 0 ? 0 : maxHeight;
|
|
40515
41200
|
}, [scrollHeight, height]);
|
|
40516
41201
|
var placeStyle = {
|
|
40517
41202
|
paddingTop: paddingTop,
|
|
@@ -40800,6 +41485,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
40800
41485
|
wrapperRef: wrapperRef,
|
|
40801
41486
|
onScroll: handleScroll,
|
|
40802
41487
|
onMouseMove: handleMouseMove,
|
|
41488
|
+
keepScrollTop: keepScrollTop,
|
|
40803
41489
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
|
|
40804
41490
|
className: tagClassName,
|
|
40805
41491
|
style: innerStyle,
|
|
@@ -41020,6 +41706,8 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
41020
41706
|
handleSelect(e);
|
|
41021
41707
|
};
|
|
41022
41708
|
hasHandleSelectRef.current = true;
|
|
41709
|
+
} else {
|
|
41710
|
+
hasHandleSelectRef.current = false;
|
|
41023
41711
|
}
|
|
41024
41712
|
return events;
|
|
41025
41713
|
};
|
|
@@ -41970,7 +42658,7 @@ var Tag = function Tag(props) {
|
|
|
41970
42658
|
if (showInput) {
|
|
41971
42659
|
return renderInput();
|
|
41972
42660
|
}
|
|
41973
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getTagRootProps()), {}, {
|
|
42661
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, getTagRootProps()), getDataset(props)), {}, {
|
|
41974
42662
|
children: [renderChildren(), renderClose()]
|
|
41975
42663
|
}));
|
|
41976
42664
|
};
|
|
@@ -42308,7 +42996,7 @@ var result_Result = function Result(props) {
|
|
|
42308
42996
|
handleResultItemClick(e, item);
|
|
42309
42997
|
};
|
|
42310
42998
|
var content = renderResultContent(item, index, nodes);
|
|
42311
|
-
if (!content) return null;
|
|
42999
|
+
if (!content && content !== 0) return null;
|
|
42312
43000
|
if (renderResultContentProp) {
|
|
42313
43001
|
// cascader 不渲染tag
|
|
42314
43002
|
return renderResultContentProp(objectSpread2_default()({
|
|
@@ -42335,6 +43023,7 @@ var result_Result = function Result(props) {
|
|
|
42335
43023
|
}, getDataAttribute({
|
|
42336
43024
|
type: disabled === true ? 'dark' : undefined
|
|
42337
43025
|
})), {}, {
|
|
43026
|
+
title: typeof content === 'string' ? content : undefined,
|
|
42338
43027
|
children: content
|
|
42339
43028
|
}), index);
|
|
42340
43029
|
};
|
|
@@ -42359,6 +43048,7 @@ var result_Result = function Result(props) {
|
|
|
42359
43048
|
var content = renderResultContent(result[0]);
|
|
42360
43049
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
42361
43050
|
className: styles.ellipsis,
|
|
43051
|
+
title: typeof content === 'string' ? content : undefined,
|
|
42362
43052
|
children: content
|
|
42363
43053
|
}, 'single');
|
|
42364
43054
|
};
|
|
@@ -42483,7 +43173,13 @@ var result_Result = function Result(props) {
|
|
|
42483
43173
|
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
42484
43174
|
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
42485
43175
|
if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) {
|
|
42486
|
-
var _element$props;
|
|
43176
|
+
var _element$type, _element$type2, _element$props;
|
|
43177
|
+
// 跳过 Portal 类组件(Popover, Tooltip)
|
|
43178
|
+
var portalComponents = ['ShineoutPopover', 'ShineoutTooltip'];
|
|
43179
|
+
var displayName = ((_element$type = element.type) === null || _element$type === void 0 ? void 0 : _element$type.displayName) || ((_element$type2 = element.type) === null || _element$type2 === void 0 ? void 0 : _element$type2.name);
|
|
43180
|
+
if (portalComponents.includes(displayName)) {
|
|
43181
|
+
return '';
|
|
43182
|
+
}
|
|
42487
43183
|
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
42488
43184
|
if (Array.isArray(children)) {
|
|
42489
43185
|
return children.map(function (child) {
|
|
@@ -43239,10 +43935,10 @@ var Cascader = function Cascader(props0) {
|
|
|
43239
43935
|
filterText: filterText,
|
|
43240
43936
|
highlight: props.highlight
|
|
43241
43937
|
},
|
|
43242
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
43938
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
43243
43939
|
id: fieldId,
|
|
43244
43940
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
43245
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
43941
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
43246
43942
|
className: rootClass,
|
|
43247
43943
|
style: rootStyle,
|
|
43248
43944
|
onBlur: handleBlur,
|
|
@@ -43593,7 +44289,7 @@ function getRule(rule, props) {
|
|
|
43593
44289
|
return;
|
|
43594
44290
|
}
|
|
43595
44291
|
if (reg.global) reg.lastIndex = 0;
|
|
43596
|
-
if (
|
|
44292
|
+
if (reg.test(value)) {
|
|
43597
44293
|
callback(true);
|
|
43598
44294
|
} else {
|
|
43599
44295
|
callback(new FormError(po.message, po));
|
|
@@ -46508,17 +47204,17 @@ var useDate = function useDate(props) {
|
|
|
46508
47204
|
}),
|
|
46509
47205
|
context = _useRef.current;
|
|
46510
47206
|
var current = props.current === undefined || !props.current ? currentState : props.current;
|
|
46511
|
-
var setCurrent = function setCurrent(date) {
|
|
47207
|
+
var setCurrent = function setCurrent(date, type) {
|
|
46512
47208
|
var _props$onCurrentChang2;
|
|
46513
47209
|
if (props.current !== undefined) {
|
|
46514
47210
|
var _props$onCurrentChang;
|
|
46515
|
-
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
|
|
47211
|
+
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
|
|
46516
47212
|
} else {
|
|
46517
47213
|
if (date) {
|
|
46518
47214
|
setCurrentState(date);
|
|
46519
47215
|
}
|
|
46520
47216
|
}
|
|
46521
|
-
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
|
|
47217
|
+
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
|
|
46522
47218
|
};
|
|
46523
47219
|
var isToday = function isToday(date) {
|
|
46524
47220
|
var today = util.newDate(undefined, options);
|
|
@@ -46540,19 +47236,19 @@ var useDate = function useDate(props) {
|
|
|
46540
47236
|
}, [options.weekStartsOn]);
|
|
46541
47237
|
var handleNextYear = use_persist_fn(function () {
|
|
46542
47238
|
var date = util.addYears(current, 1, options);
|
|
46543
|
-
setCurrent(date);
|
|
47239
|
+
setCurrent(date, 'year');
|
|
46544
47240
|
});
|
|
46545
47241
|
var handlePrevYear = use_persist_fn(function () {
|
|
46546
47242
|
var date = util.addYears(current, -1, options);
|
|
46547
|
-
setCurrent(date);
|
|
47243
|
+
setCurrent(date, 'year');
|
|
46548
47244
|
});
|
|
46549
47245
|
var handleNextMonth = use_persist_fn(function () {
|
|
46550
47246
|
var date = util.addMonths(current, 1, options);
|
|
46551
|
-
setCurrent(date);
|
|
47247
|
+
setCurrent(date, 'month');
|
|
46552
47248
|
});
|
|
46553
47249
|
var handlePrevMonth = use_persist_fn(function () {
|
|
46554
47250
|
var date = util.addMonths(current, -1, options);
|
|
46555
|
-
setCurrent(date);
|
|
47251
|
+
setCurrent(date, 'month');
|
|
46556
47252
|
});
|
|
46557
47253
|
var isCurrentMonth = function isCurrentMonth(date) {
|
|
46558
47254
|
return util.isSameMonth(date, current, options);
|
|
@@ -47159,8 +47855,8 @@ var Day = function Day(props) {
|
|
|
47159
47855
|
props.onChange(date, noClose || props.type === 'datetime');
|
|
47160
47856
|
props.setTarget(undefined);
|
|
47161
47857
|
});
|
|
47162
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47163
|
-
props.setCurrent(date, areaType);
|
|
47858
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
47859
|
+
props.setCurrent(date, type || areaType);
|
|
47164
47860
|
});
|
|
47165
47861
|
var _useDatePick = use_date({
|
|
47166
47862
|
current: props.current,
|
|
@@ -47192,7 +47888,7 @@ var Day = function Day(props) {
|
|
|
47192
47888
|
props.setCurrent(new Date(), areaType);
|
|
47193
47889
|
props.onChange(new Date(), props.needConfirm || props.type === 'datetime');
|
|
47194
47890
|
setTimeout(function () {
|
|
47195
|
-
if (props.closeByConfirm && !props.range) props.closeByConfirm();
|
|
47891
|
+
if (props.needConfirm && props.closeByConfirm && !props.range) props.closeByConfirm();
|
|
47196
47892
|
}, 0);
|
|
47197
47893
|
};
|
|
47198
47894
|
var renderDay = function renderDay(item, index) {
|
|
@@ -47222,7 +47918,16 @@ var Day = function Day(props) {
|
|
|
47222
47918
|
onMouseLeave: isDisabled ? undefined : function () {
|
|
47223
47919
|
props.setTarget(undefined);
|
|
47224
47920
|
},
|
|
47225
|
-
children:
|
|
47921
|
+
children: props.renderDate ? props.renderDate({
|
|
47922
|
+
date: item,
|
|
47923
|
+
isDisabled: isDisabled,
|
|
47924
|
+
isInRange: isInRange,
|
|
47925
|
+
isToday: isToday,
|
|
47926
|
+
isCurrentMonth: isCurrentMonth,
|
|
47927
|
+
isActive: isActive,
|
|
47928
|
+
position: props.position,
|
|
47929
|
+
className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent
|
|
47930
|
+
}) : /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
47226
47931
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent,
|
|
47227
47932
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47228
47933
|
children: func.getDayStr(item)
|
|
@@ -47423,15 +48128,15 @@ var useMonth = function useMonth(props) {
|
|
|
47423
48128
|
context = _useRef.current;
|
|
47424
48129
|
var current = props.current === undefined ? currentState : props.current;
|
|
47425
48130
|
var startYear = util.getDateInfo(current, 'year', options);
|
|
47426
|
-
var setCurrent = function setCurrent(date) {
|
|
48131
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47427
48132
|
var _props$onCurrentChang2;
|
|
47428
48133
|
if (props.current !== undefined) {
|
|
47429
48134
|
var _props$onCurrentChang;
|
|
47430
|
-
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
|
|
48135
|
+
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
|
|
47431
48136
|
} else {
|
|
47432
48137
|
setCurrentState(date);
|
|
47433
48138
|
}
|
|
47434
|
-
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
|
|
48139
|
+
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
|
|
47435
48140
|
};
|
|
47436
48141
|
var isNow = function isNow(date) {
|
|
47437
48142
|
var today = util.newDate(undefined, options);
|
|
@@ -47453,11 +48158,11 @@ var useMonth = function useMonth(props) {
|
|
|
47453
48158
|
};
|
|
47454
48159
|
var handleNext = use_persist_fn(function () {
|
|
47455
48160
|
var date = util.addYears(current, 1, options);
|
|
47456
|
-
setCurrent(date);
|
|
48161
|
+
setCurrent(date, 'year');
|
|
47457
48162
|
});
|
|
47458
48163
|
var handlePrev = use_persist_fn(function () {
|
|
47459
48164
|
var date = util.addYears(current, -1, options);
|
|
47460
|
-
setCurrent(date);
|
|
48165
|
+
setCurrent(date, 'year');
|
|
47461
48166
|
});
|
|
47462
48167
|
var isDisabled = function isDisabled(date) {
|
|
47463
48168
|
var min = props.min,
|
|
@@ -47534,8 +48239,8 @@ var Month = function Month(props) {
|
|
|
47534
48239
|
var changeMode = usePersistFn(function () {
|
|
47535
48240
|
props.setMode('day');
|
|
47536
48241
|
});
|
|
47537
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47538
|
-
props.setCurrent(date, 'month');
|
|
48242
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48243
|
+
props.setCurrent(date, type || 'month');
|
|
47539
48244
|
});
|
|
47540
48245
|
var _useMonthPick = use_month({
|
|
47541
48246
|
current: props.current,
|
|
@@ -47656,15 +48361,15 @@ var useYear = function useYear(props) {
|
|
|
47656
48361
|
context = _useRef.current;
|
|
47657
48362
|
var current = props.current === undefined ? currentState : props.current;
|
|
47658
48363
|
var startYear = util.getStartYear(current, options);
|
|
47659
|
-
var setCurrent = function setCurrent(date) {
|
|
48364
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47660
48365
|
var _props$onCurrentChang2;
|
|
47661
48366
|
if (props.current !== undefined) {
|
|
47662
48367
|
var _props$onCurrentChang;
|
|
47663
|
-
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
|
|
48368
|
+
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
|
|
47664
48369
|
} else {
|
|
47665
48370
|
setCurrentState(date);
|
|
47666
48371
|
}
|
|
47667
|
-
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
|
|
48372
|
+
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
|
|
47668
48373
|
};
|
|
47669
48374
|
var isNow = function isNow(date) {
|
|
47670
48375
|
var today = util.newDate(undefined, options);
|
|
@@ -47686,11 +48391,11 @@ var useYear = function useYear(props) {
|
|
|
47686
48391
|
};
|
|
47687
48392
|
var handleNext = use_persist_fn(function () {
|
|
47688
48393
|
var date = util.addYears(current, 10, options);
|
|
47689
|
-
setCurrent(date);
|
|
48394
|
+
setCurrent(date, 'year');
|
|
47690
48395
|
});
|
|
47691
48396
|
var handlePrev = use_persist_fn(function () {
|
|
47692
48397
|
var date = util.addYears(current, -10, options);
|
|
47693
|
-
setCurrent(date);
|
|
48398
|
+
setCurrent(date, 'year');
|
|
47694
48399
|
});
|
|
47695
48400
|
var isDisabled = function isDisabled(date) {
|
|
47696
48401
|
var min = props.min,
|
|
@@ -47769,8 +48474,8 @@ var Year = function Year(props) {
|
|
|
47769
48474
|
var changeMode = usePersistFn(function () {
|
|
47770
48475
|
props.setMode('month');
|
|
47771
48476
|
});
|
|
47772
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47773
|
-
props.setCurrent(date, 'year');
|
|
48477
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48478
|
+
props.setCurrent(date, type || 'year');
|
|
47774
48479
|
});
|
|
47775
48480
|
var _useYearPick = use_year({
|
|
47776
48481
|
current: props.current,
|
|
@@ -47894,15 +48599,15 @@ var useQuarter = function useQuarter(props) {
|
|
|
47894
48599
|
context = _useRef.current;
|
|
47895
48600
|
var current = props.current === undefined ? currentState : props.current;
|
|
47896
48601
|
var startYear = util.getDateInfo(current, 'year', options);
|
|
47897
|
-
var setCurrent = function setCurrent(date) {
|
|
48602
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47898
48603
|
var _props$onCurrentChang2;
|
|
47899
48604
|
if (props.current !== undefined) {
|
|
47900
48605
|
var _props$onCurrentChang;
|
|
47901
|
-
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date);
|
|
48606
|
+
(_props$onCurrentChang = props.onCurrentChange) === null || _props$onCurrentChang === void 0 || _props$onCurrentChang.call(props, date, type);
|
|
47902
48607
|
} else {
|
|
47903
48608
|
setCurrentState(date);
|
|
47904
48609
|
}
|
|
47905
|
-
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date);
|
|
48610
|
+
(_props$onCurrentChang2 = props.onCurrentChange) === null || _props$onCurrentChang2 === void 0 || _props$onCurrentChang2.call(props, date, type);
|
|
47906
48611
|
};
|
|
47907
48612
|
var isNow = function isNow(date) {
|
|
47908
48613
|
var today = util.newDate(undefined, options);
|
|
@@ -47923,11 +48628,11 @@ var useQuarter = function useQuarter(props) {
|
|
|
47923
48628
|
};
|
|
47924
48629
|
var handleNext = use_persist_fn(function () {
|
|
47925
48630
|
var date = util.addYears(current, 1, options);
|
|
47926
|
-
setCurrent(date);
|
|
48631
|
+
setCurrent(date, 'year');
|
|
47927
48632
|
});
|
|
47928
48633
|
var handlePrev = use_persist_fn(function () {
|
|
47929
48634
|
var date = util.addYears(current, -1, options);
|
|
47930
|
-
setCurrent(date);
|
|
48635
|
+
setCurrent(date, 'year');
|
|
47931
48636
|
});
|
|
47932
48637
|
var isDisabled = function isDisabled(date) {
|
|
47933
48638
|
var min = props.min,
|
|
@@ -47999,8 +48704,8 @@ var Quarter = function Quarter(props) {
|
|
|
47999
48704
|
var jssStyle = props.jssStyle;
|
|
48000
48705
|
var config = useConfig();
|
|
48001
48706
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
|
|
48002
|
-
var setCurrent = usePersistFn(function (date) {
|
|
48003
|
-
props.setCurrent(date, 'quarter');
|
|
48707
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48708
|
+
props.setCurrent(date, type || 'quarter');
|
|
48004
48709
|
});
|
|
48005
48710
|
var _useQuarterPick = use_quarter({
|
|
48006
48711
|
current: props.current,
|
|
@@ -48216,11 +48921,8 @@ var useRangePick = function useRangePick(props) {
|
|
|
48216
48921
|
return newArr;
|
|
48217
48922
|
});
|
|
48218
48923
|
};
|
|
48219
|
-
var setCurrent = usePersistFn(function (index, date) {
|
|
48220
|
-
|
|
48221
|
-
args[_key - 2] = arguments[_key];
|
|
48222
|
-
}
|
|
48223
|
-
props.setCurrentArr.apply(props, [function (arr) {
|
|
48924
|
+
var setCurrent = usePersistFn(function (index, date, type) {
|
|
48925
|
+
props.setCurrentArr(function (arr) {
|
|
48224
48926
|
var newArr = toConsumableArray_default()(arr);
|
|
48225
48927
|
newArr[index] = date;
|
|
48226
48928
|
var modeCache = context.modeCache;
|
|
@@ -48246,19 +48948,13 @@ var useRangePick = function useRangePick(props) {
|
|
|
48246
48948
|
}
|
|
48247
48949
|
}
|
|
48248
48950
|
return newArr;
|
|
48249
|
-
}
|
|
48951
|
+
}, type, undefined);
|
|
48250
48952
|
});
|
|
48251
|
-
var setCurrentStart = usePersistFn(function (date) {
|
|
48252
|
-
|
|
48253
|
-
args[_key2 - 1] = arguments[_key2];
|
|
48254
|
-
}
|
|
48255
|
-
setCurrent.apply(void 0, [0, date].concat(args));
|
|
48953
|
+
var setCurrentStart = usePersistFn(function (date, type) {
|
|
48954
|
+
setCurrent(0, date, type);
|
|
48256
48955
|
});
|
|
48257
|
-
var setCurrentEnd = usePersistFn(function (date) {
|
|
48258
|
-
|
|
48259
|
-
args[_key3 - 1] = arguments[_key3];
|
|
48260
|
-
}
|
|
48261
|
-
setCurrent.apply(void 0, [1, date].concat(args));
|
|
48956
|
+
var setCurrentEnd = usePersistFn(function (date, type) {
|
|
48957
|
+
setCurrent(1, date, type);
|
|
48262
48958
|
});
|
|
48263
48959
|
var setDateStart = usePersistFn(function (date, noClose) {
|
|
48264
48960
|
setDate(0, date, noClose);
|
|
@@ -48509,6 +49205,7 @@ var Picker = function Picker(props) {
|
|
|
48509
49205
|
}
|
|
48510
49206
|
if (mode === 'day') {
|
|
48511
49207
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), {}, {
|
|
49208
|
+
renderDate: props.renderDate,
|
|
48512
49209
|
onDoubleClick: function onDoubleClick(item, type) {
|
|
48513
49210
|
// 双击同时设置开始和结束日期
|
|
48514
49211
|
if (props.range && props.type === 'datetime') {
|
|
@@ -48840,7 +49537,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
48840
49537
|
date_picker_devUseWarning.conflict('DatePicker', 'formatResult', 'inputable');
|
|
48841
49538
|
}
|
|
48842
49539
|
}, []);
|
|
48843
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute(defineProperty_default()(defineProperty_default()({}, 'input-border', 'true'), "type", type))), {}, {
|
|
49540
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, getDataAttribute(defineProperty_default()(defineProperty_default()({}, 'input-border', 'true'), "type", type))), getDataset(props)), {}, {
|
|
48844
49541
|
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)),
|
|
48845
49542
|
ref: targetRef,
|
|
48846
49543
|
style: objectSpread2_default()({
|
|
@@ -48897,6 +49594,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
48897
49594
|
registerModeDisabled: func.registerModeDisabled,
|
|
48898
49595
|
isDisabledDate: func.isDisabledDate,
|
|
48899
49596
|
needConfirm: props.needConfirm,
|
|
49597
|
+
renderDate: props.renderDate,
|
|
48900
49598
|
children: props.children
|
|
48901
49599
|
})
|
|
48902
49600
|
})
|
|
@@ -49106,7 +49804,7 @@ var useDescriptions = function useDescriptions(props) {
|
|
|
49106
49804
|
|
|
49107
49805
|
|
|
49108
49806
|
var Descriptions = function Descriptions(props) {
|
|
49109
|
-
var _jssStyleProps$descri
|
|
49807
|
+
var _jssStyleProps$descri;
|
|
49110
49808
|
var className = props.className,
|
|
49111
49809
|
jssStyleProps = props.jssStyle,
|
|
49112
49810
|
style = props.style,
|
|
@@ -49134,6 +49832,11 @@ var Descriptions = function Descriptions(props) {
|
|
|
49134
49832
|
labelStyle: labelStyle
|
|
49135
49833
|
}),
|
|
49136
49834
|
renderItem = _useDescriptions.renderItem;
|
|
49835
|
+
var longestItem = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
49836
|
+
return renderItem.reduce(function (prev, curr) {
|
|
49837
|
+
return prev.length >= curr.length ? prev : curr;
|
|
49838
|
+
}, []);
|
|
49839
|
+
}, [renderItem]);
|
|
49137
49840
|
var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
|
|
49138
49841
|
var Header = function Header() {
|
|
49139
49842
|
if (!title && !extra) return null;
|
|
@@ -49230,7 +49933,7 @@ var Descriptions = function Descriptions(props) {
|
|
|
49230
49933
|
cellPadding: 0,
|
|
49231
49934
|
cellSpacing: 0,
|
|
49232
49935
|
children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("colgroup", {
|
|
49233
|
-
children:
|
|
49936
|
+
children: longestItem === null || longestItem === void 0 ? void 0 : longestItem.map(function (_, index, arr) {
|
|
49234
49937
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
|
|
49235
49938
|
style: {
|
|
49236
49939
|
width: "".concat(1 / arr.length * 100, "%")
|
|
@@ -49455,20 +50158,10 @@ var addModalInstance = function addModalInstance(instanceId) {
|
|
|
49455
50158
|
modal_content_state.mutate.instanceIds.push(instanceId);
|
|
49456
50159
|
};
|
|
49457
50160
|
var addModalCascadeConfig = function addModalCascadeConfig(props) {
|
|
49458
|
-
var width = props.width;
|
|
49459
|
-
var widthNumber = 0;
|
|
49460
|
-
// width 是30% 这种格式的,转为number
|
|
49461
|
-
if (typeof width === 'string' && width.indexOf('%') > -1) {
|
|
49462
|
-
var parentWidth = document.body.clientWidth;
|
|
49463
|
-
var percent = parseInt(width, 10);
|
|
49464
|
-
widthNumber = parentWidth * percent / 100;
|
|
49465
|
-
} else {
|
|
49466
|
-
widthNumber = typeof width === 'number' ? width : parseInt(width, 10) || 0;
|
|
49467
|
-
}
|
|
49468
50161
|
modal_content_state.mutate.cascadeConfigs.push({
|
|
49469
50162
|
cascade: props.cascade,
|
|
49470
|
-
|
|
49471
|
-
|
|
50163
|
+
cascadeWidth: props.cascadeWidth,
|
|
50164
|
+
instanceId: props.instanceId
|
|
49472
50165
|
});
|
|
49473
50166
|
};
|
|
49474
50167
|
var removeModalInstance = function removeModalInstance(instanceId) {
|
|
@@ -49571,8 +50264,8 @@ var Modal = function Modal(props) {
|
|
|
49571
50264
|
addModalInstance(context.instanceId);
|
|
49572
50265
|
addModalCascadeConfig({
|
|
49573
50266
|
instanceId: context.instanceId,
|
|
49574
|
-
|
|
49575
|
-
|
|
50267
|
+
cascade: !!props.cascade && !!isPositionX,
|
|
50268
|
+
cascadeWidth: typeof_default()(props.cascade) === 'object' ? props.cascade.width || 180 : 180
|
|
49576
50269
|
});
|
|
49577
50270
|
}
|
|
49578
50271
|
if (!visible && index > -1 && !animation) {
|
|
@@ -49748,6 +50441,7 @@ var Modal = function Modal(props) {
|
|
|
49748
50441
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
49749
50442
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
|
|
49750
50443
|
onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
|
|
50444
|
+
style: props.headerStyle,
|
|
49751
50445
|
children: [renderIcon(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49752
50446
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
|
|
49753
50447
|
children: props.title
|
|
@@ -49772,6 +50466,7 @@ var Modal = function Modal(props) {
|
|
|
49772
50466
|
if (!props.footer) return null;
|
|
49773
50467
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49774
50468
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
|
|
50469
|
+
style: props.footerStyle,
|
|
49775
50470
|
children: props.footer
|
|
49776
50471
|
});
|
|
49777
50472
|
};
|
|
@@ -49794,20 +50489,22 @@ var Modal = function Modal(props) {
|
|
|
49794
50489
|
};
|
|
49795
50490
|
if (!context.renderEd && !visible) return null;
|
|
49796
50491
|
context.renderEd = true;
|
|
49797
|
-
var
|
|
50492
|
+
var cascadeStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
49798
50493
|
if (!props.cascade) return;
|
|
49799
50494
|
var idx = config.instanceIds.findIndex(function (id) {
|
|
49800
50495
|
return id === context.instanceId;
|
|
49801
50496
|
});
|
|
49802
|
-
var
|
|
49803
|
-
|
|
49804
|
-
|
|
49805
|
-
|
|
49806
|
-
|
|
49807
|
-
|
|
49808
|
-
|
|
49809
|
-
|
|
49810
|
-
|
|
50497
|
+
var instance = 0;
|
|
50498
|
+
var curCascadeConfig = config.cascadeConfigs.find(function (c) {
|
|
50499
|
+
return c.instanceId === context.instanceId;
|
|
50500
|
+
});
|
|
50501
|
+
if (curCascadeConfig && idx < config.cascadeConfigs.length - 1) {
|
|
50502
|
+
instance = curCascadeConfig.cascadeWidth;
|
|
50503
|
+
}
|
|
50504
|
+
return {
|
|
50505
|
+
transform: props.position === 'left' ? "translateX(".concat(instance, "px)") : "translateX(-".concat(instance, "px)"),
|
|
50506
|
+
transition: instance ? 'transform 0.3s ease 0.05s' : 'transform 0.2s ease'
|
|
50507
|
+
};
|
|
49811
50508
|
}, [config.cascadeConfigs, config.instanceIds]);
|
|
49812
50509
|
var panelStyle = objectSpread2_default()(objectSpread2_default()({
|
|
49813
50510
|
transformOrigin: origin,
|
|
@@ -49815,7 +50512,7 @@ var Modal = function Modal(props) {
|
|
|
49815
50512
|
}, props.style), {}, {
|
|
49816
50513
|
width: props.fullScreen ? undefined : width,
|
|
49817
50514
|
height: props.fullScreen ? undefined : height
|
|
49818
|
-
},
|
|
50515
|
+
}, cascadeStyle);
|
|
49819
50516
|
if (props.resizable) {
|
|
49820
50517
|
panelStyle.width = resizeInfo.width;
|
|
49821
50518
|
panelStyle.height = resizeInfo.height;
|
|
@@ -50370,13 +51067,13 @@ var Dropdown = function Dropdown(props) {
|
|
|
50370
51067
|
return d.children;
|
|
50371
51068
|
});
|
|
50372
51069
|
var targetProps = getTargetProps();
|
|
50373
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
51070
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
50374
51071
|
className: classnames_default()(className, dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.rootClass, dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.wrapper, !isSub && open && (dropdownClasses === null || dropdownClasses === void 0 ? void 0 : dropdownClasses.open)),
|
|
50375
51072
|
style: style,
|
|
50376
51073
|
"data-position": position,
|
|
50377
51074
|
"data-role": "dropdown",
|
|
50378
51075
|
ref: targetRef
|
|
50379
|
-
}, targetProps), {}, {
|
|
51076
|
+
}, targetProps), getDataset(props)), {}, {
|
|
50380
51077
|
onClick: isSub ? openPop : targetProps.onClick,
|
|
50381
51078
|
children: [renderButton(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
50382
51079
|
position: position,
|
|
@@ -50628,9 +51325,9 @@ var Textarea = function Textarea(props) {
|
|
|
50628
51325
|
children: icons_config.textarea.Close
|
|
50629
51326
|
});
|
|
50630
51327
|
}
|
|
50631
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
51328
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
50632
51329
|
id: fieldId
|
|
50633
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
51330
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), getRootProps({
|
|
50634
51331
|
className: rootClass,
|
|
50635
51332
|
style: style
|
|
50636
51333
|
})), {}, {
|
|
@@ -55496,8 +56193,9 @@ var ListOption = function ListOption(props) {
|
|
|
55496
56193
|
onOptionClick(data, index);
|
|
55497
56194
|
};
|
|
55498
56195
|
var setVirtualRowHeight = usePersistFn(function () {
|
|
56196
|
+
var _optionRef$current;
|
|
55499
56197
|
if (!props.setRowHeight || !optionRef.current) return;
|
|
55500
|
-
var optionHeight = optionRef.current
|
|
56198
|
+
var optionHeight = (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.offsetHeight;
|
|
55501
56199
|
if (optionHeight !== 0) {
|
|
55502
56200
|
props.setRowHeight(index, optionHeight);
|
|
55503
56201
|
}
|
|
@@ -55558,6 +56256,9 @@ var ListOption = function ListOption(props) {
|
|
|
55558
56256
|
|
|
55559
56257
|
|
|
55560
56258
|
|
|
56259
|
+
var list_defaultRenderItem = function defaultRenderItem(d) {
|
|
56260
|
+
return d;
|
|
56261
|
+
};
|
|
55561
56262
|
var list_List = function List(props) {
|
|
55562
56263
|
var _jssStyle$select;
|
|
55563
56264
|
var jssStyle = props.jssStyle,
|
|
@@ -55577,9 +56278,7 @@ var list_List = function List(props) {
|
|
|
55577
56278
|
optionListRef = props.optionListRef,
|
|
55578
56279
|
isAnimationFinish = props.isAnimationFinish,
|
|
55579
56280
|
_props$renderItem = props.renderItem,
|
|
55580
|
-
renderItemProp = _props$renderItem === void 0 ?
|
|
55581
|
-
return d;
|
|
55582
|
-
} : _props$renderItem,
|
|
56281
|
+
renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
|
|
55583
56282
|
closePop = props.closePop,
|
|
55584
56283
|
onControlTypeChange = props.onControlTypeChange,
|
|
55585
56284
|
onOptionClick = props.onOptionClick;
|
|
@@ -57233,6 +57932,8 @@ var Tree = function Tree(props) {
|
|
|
57233
57932
|
|
|
57234
57933
|
|
|
57235
57934
|
|
|
57935
|
+
|
|
57936
|
+
|
|
57236
57937
|
var TreeList = function TreeList(props) {
|
|
57237
57938
|
var _jssStyle$select;
|
|
57238
57939
|
var jssStyle = props.jssStyle,
|
|
@@ -57276,25 +57977,46 @@ var TreeList = function TreeList(props) {
|
|
|
57276
57977
|
var renderItem = function renderItem(item) {
|
|
57277
57978
|
return renderItemProp(item);
|
|
57278
57979
|
};
|
|
57980
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
57981
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
57982
|
+
virtualExpanded = _useState2[0],
|
|
57983
|
+
setVirtualExpanded = _useState2[1];
|
|
57984
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
57985
|
+
if (props.virtual && expanded) {
|
|
57986
|
+
setVirtualExpanded(expanded);
|
|
57987
|
+
}
|
|
57988
|
+
}, [expanded]);
|
|
57989
|
+
var handleExpand = function handleExpand(expandedKeys) {
|
|
57990
|
+
if (props.virtual) {
|
|
57991
|
+
setVirtualExpanded(expandedKeys);
|
|
57992
|
+
}
|
|
57993
|
+
onExpand === null || onExpand === void 0 || onExpand(expandedKeys);
|
|
57994
|
+
};
|
|
57995
|
+
var $tree = /*#__PURE__*/(0,jsx_runtime.jsx)(src_tree_tree, {
|
|
57996
|
+
line: false,
|
|
57997
|
+
jssStyle: jssStyle,
|
|
57998
|
+
onClick: handleClick,
|
|
57999
|
+
data: data,
|
|
58000
|
+
expanded: props.virtual ? (virtualExpanded === null || virtualExpanded === void 0 ? void 0 : virtualExpanded.length) > 0 ? virtualExpanded : undefined : expanded,
|
|
58001
|
+
keygen: keygen,
|
|
58002
|
+
defaultExpanded: defaultExpanded,
|
|
58003
|
+
defaultExpandAll: defaultExpandAll,
|
|
58004
|
+
childrenKey: childrenKey,
|
|
58005
|
+
onExpand: handleExpand,
|
|
58006
|
+
nodeClass: classnames_default()(styles.treeOption),
|
|
58007
|
+
contentClass: getContentClass,
|
|
58008
|
+
renderItem: renderItem,
|
|
58009
|
+
expandIcons: props.expandIcons,
|
|
58010
|
+
virtual: props.virtual,
|
|
58011
|
+
height: props.height
|
|
58012
|
+
});
|
|
58013
|
+
if (props.virtual) {
|
|
58014
|
+
return $tree;
|
|
58015
|
+
}
|
|
57279
58016
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
57280
58017
|
className: rootClass,
|
|
57281
58018
|
style: style,
|
|
57282
|
-
children:
|
|
57283
|
-
line: false,
|
|
57284
|
-
jssStyle: jssStyle,
|
|
57285
|
-
onClick: handleClick,
|
|
57286
|
-
data: data,
|
|
57287
|
-
expanded: expanded,
|
|
57288
|
-
keygen: keygen,
|
|
57289
|
-
defaultExpanded: defaultExpanded,
|
|
57290
|
-
defaultExpandAll: defaultExpandAll,
|
|
57291
|
-
childrenKey: childrenKey,
|
|
57292
|
-
onExpand: onExpand,
|
|
57293
|
-
nodeClass: classnames_default()(styles.treeOption),
|
|
57294
|
-
contentClass: getContentClass,
|
|
57295
|
-
renderItem: renderItem,
|
|
57296
|
-
expandIcons: props.expandIcons
|
|
57297
|
-
})
|
|
58019
|
+
children: $tree
|
|
57298
58020
|
});
|
|
57299
58021
|
};
|
|
57300
58022
|
/* harmony default export */ var list_tree = (TreeList);
|
|
@@ -57706,9 +58428,7 @@ function Select(props0) {
|
|
|
57706
58428
|
autoAdapt = props.autoAdapt,
|
|
57707
58429
|
groupBy = props.groupBy,
|
|
57708
58430
|
_props$renderItem = props.renderItem,
|
|
57709
|
-
renderItemProp = _props$renderItem === void 0 ?
|
|
57710
|
-
return d;
|
|
57711
|
-
} : _props$renderItem,
|
|
58431
|
+
renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
|
|
57712
58432
|
renderResultProp = props.renderResult,
|
|
57713
58433
|
renderUnmatched = props.renderUnmatched,
|
|
57714
58434
|
resultClassName = props.resultClassName,
|
|
@@ -57833,7 +58553,8 @@ function Select(props0) {
|
|
|
57833
58553
|
}
|
|
57834
58554
|
};
|
|
57835
58555
|
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
57836
|
-
|
|
58556
|
+
// why: props.emptyAfterSelect !== false 兼容之前的逻辑
|
|
58557
|
+
if (props.emptyAfterSelect !== false && (props.emptyAfterSelect || createdData)) {
|
|
57837
58558
|
onFilter === null || onFilter === void 0 || onFilter('');
|
|
57838
58559
|
}
|
|
57839
58560
|
var shouldFocus = showInput && props.reFocus;
|
|
@@ -57928,7 +58649,8 @@ function Select(props0) {
|
|
|
57928
58649
|
});
|
|
57929
58650
|
var rootClass = classnames_default()(className, styles === null || styles === void 0 ? void 0 : styles.rootClass, styles === null || styles === void 0 ? void 0 : styles.wrapper, isEmpty && styles.wrapperEmpty, open && (styles === null || styles === void 0 ? void 0 : styles.wrapperOpen), open && trigger === 'hover' && (styles === null || styles === void 0 ? void 0 : styles.triggerHover), disabled === true && (styles === null || styles === void 0 ? void 0 : styles.wrapperDisabled), disabled !== true && focused && (styles === null || styles === void 0 ? void 0 : styles.wrapperFocus), 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), (!!props.error || props.status === 'error') && (styles === null || styles === void 0 ? void 0 : styles.wrapperError), clearable && (styles === null || styles === void 0 ? void 0 : styles.clearable), !border && (styles === null || styles === void 0 ? void 0 : styles.wrapperNoBorder), !!underline && (styles === null || styles === void 0 ? void 0 : styles.wrapperUnderline), defineProperty_default()({}, styles === null || styles === void 0 ? void 0 : styles.multiple, multiple));
|
|
57930
58651
|
var getRenderItem = function getRenderItem(data, index) {
|
|
57931
|
-
|
|
58652
|
+
var _data$renderItemProp;
|
|
58653
|
+
return typeof renderItemProp === 'function' ? renderItemProp(data, index) : (_data$renderItemProp = data === null || data === void 0 ? void 0 : data[renderItemProp]) !== null && _data$renderItemProp !== void 0 ? _data$renderItemProp : '';
|
|
57932
58654
|
};
|
|
57933
58655
|
var renderItem = getRenderItem;
|
|
57934
58656
|
var handleFocus = usePersistFn(function (e) {
|
|
@@ -58257,7 +58979,8 @@ function Select(props0) {
|
|
|
58257
58979
|
childrenKey: childrenKey,
|
|
58258
58980
|
closePop: closePop,
|
|
58259
58981
|
renderItem: renderItem,
|
|
58260
|
-
expandIcons: tiledExpandIcons
|
|
58982
|
+
expandIcons: tiledExpandIcons,
|
|
58983
|
+
virtual: props.virtual
|
|
58261
58984
|
});
|
|
58262
58985
|
};
|
|
58263
58986
|
var renderLoading = function renderLoading() {
|
|
@@ -58325,10 +59048,10 @@ function Select(props0) {
|
|
|
58325
59048
|
filterText: filterText,
|
|
58326
59049
|
highlight: highlight
|
|
58327
59050
|
},
|
|
58328
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
59051
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
58329
59052
|
ref: targetRef,
|
|
58330
59053
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
58331
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
59054
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
58332
59055
|
className: rootClass,
|
|
58333
59056
|
style: rootStyle,
|
|
58334
59057
|
onKeyDown: handleKeyDown,
|
|
@@ -59012,7 +59735,7 @@ var Pagination = function Pagination(props) {
|
|
|
59012
59735
|
})
|
|
59013
59736
|
}));
|
|
59014
59737
|
}
|
|
59015
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getRootProps()), {}, {
|
|
59738
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, getRootProps()), getDataset(props)), {}, {
|
|
59016
59739
|
className: rootClasses,
|
|
59017
59740
|
children: layout.map(function (section, i) {
|
|
59018
59741
|
switch (section) {
|
|
@@ -59293,7 +60016,8 @@ var list_list_List = function List(props) {
|
|
|
59293
60016
|
minWidth: 0,
|
|
59294
60017
|
overflow: 'auto'
|
|
59295
60018
|
},
|
|
59296
|
-
dynamicVirtual: props.dynamicHeight
|
|
60019
|
+
dynamicVirtual: props.dynamicHeight,
|
|
60020
|
+
keepScrollTop: !!props.scrollLoading
|
|
59297
60021
|
}), renderFooter()]
|
|
59298
60022
|
});
|
|
59299
60023
|
}
|
|
@@ -61297,6 +62021,7 @@ src_radio_radio_0.Group = radio_RadioGroup;
|
|
|
61297
62021
|
|
|
61298
62022
|
|
|
61299
62023
|
|
|
62024
|
+
|
|
61300
62025
|
var Rate = function Rate(props0) {
|
|
61301
62026
|
var _props$jssStyle, _props$jssStyle$rate;
|
|
61302
62027
|
var props = use_with_form_config(props0);
|
|
@@ -61385,13 +62110,14 @@ var Rate = function Rate(props0) {
|
|
|
61385
62110
|
}, index);
|
|
61386
62111
|
};
|
|
61387
62112
|
var text = Array.isArray(props.text) && props.text[Math.ceil(value - 1)];
|
|
61388
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
62113
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
61389
62114
|
className: classnames_default()(props.className, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.rootClass, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.wrapper),
|
|
61390
62115
|
id: fieldId,
|
|
61391
62116
|
style: props.style,
|
|
61392
62117
|
onMouseLeave: function onMouseLeave() {
|
|
61393
62118
|
setHoverValue(null);
|
|
61394
|
-
}
|
|
62119
|
+
}
|
|
62120
|
+
}, getDataset(props)), {}, {
|
|
61395
62121
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
61396
62122
|
className: rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.inner,
|
|
61397
62123
|
children: [Array.from({
|
|
@@ -61403,7 +62129,7 @@ var Rate = function Rate(props0) {
|
|
|
61403
62129
|
children: text
|
|
61404
62130
|
})]
|
|
61405
62131
|
})
|
|
61406
|
-
});
|
|
62132
|
+
}));
|
|
61407
62133
|
};
|
|
61408
62134
|
/* harmony default export */ var src_rate_rate = (Rate);
|
|
61409
62135
|
;// CONCATENATED MODULE: ./src/rate/rate.tsx
|
|
@@ -61440,12 +62166,14 @@ RateComp.displayName = 'ShineoutRate';
|
|
|
61440
62166
|
/* harmony default export */ var src_rate_0 = (RateComp);
|
|
61441
62167
|
;// CONCATENATED MODULE: ../hooks/src/utils/rule/required.ts
|
|
61442
62168
|
|
|
62169
|
+
|
|
62170
|
+
|
|
61443
62171
|
var options = {
|
|
61444
62172
|
skipUndefined: true
|
|
61445
62173
|
};
|
|
61446
62174
|
var requiredMessage = function requiredMessage(props) {
|
|
61447
62175
|
var type = props.type === 'array' ? 'array' : 'string';
|
|
61448
|
-
return "
|
|
62176
|
+
return substitute(getLocale(src_config_config.locale, "rules.required.".concat(type)), props);
|
|
61449
62177
|
};
|
|
61450
62178
|
/* harmony default export */ var required = (function () {
|
|
61451
62179
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -63315,6 +64043,25 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
63315
64043
|
}
|
|
63316
64044
|
});
|
|
63317
64045
|
|
|
64046
|
+
// 组件元素隐藏时,设置定高,解决恢复显示时滚动条位置未保持住的问题
|
|
64047
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64048
|
+
if (!props.tableRef.current) return;
|
|
64049
|
+
var isVisible = props.tableRef.current.offsetParent !== null;
|
|
64050
|
+
var wasHidden = props.tableRef.current.getAttribute('data-was-hidden') === 'true';
|
|
64051
|
+
var h = context.lastTableHeight || props.tableRef.current.clientHeight;
|
|
64052
|
+
if (h > 0) {
|
|
64053
|
+
context.lastTableHeight = h;
|
|
64054
|
+
}
|
|
64055
|
+
if (isVisible && wasHidden) {
|
|
64056
|
+
props.tableRef.current.style.height = '100%';
|
|
64057
|
+
props.tableRef.current.removeAttribute('data-was-hidden');
|
|
64058
|
+
} else if (!isVisible && props.tableRef.current.style.height === '100%') {
|
|
64059
|
+
// 加height === '100%'判断是因为:多层父级flex嵌套才有这个问题
|
|
64060
|
+
props.tableRef.current.style.height = "".concat(context.lastTableHeight, "px");
|
|
64061
|
+
props.tableRef.current.setAttribute('data-was-hidden', 'true');
|
|
64062
|
+
}
|
|
64063
|
+
}, [paddingTop]);
|
|
64064
|
+
|
|
63318
64065
|
// 非定高的Table但依旧采用了virtual渲染方式,需要渲染出全部的data
|
|
63319
64066
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
63320
64067
|
if (!props.tableRef.current || !props.setFakeVirtual) return;
|
|
@@ -63409,6 +64156,8 @@ function useScrollbarWidth() {
|
|
|
63409
64156
|
|
|
63410
64157
|
|
|
63411
64158
|
|
|
64159
|
+
|
|
64160
|
+
|
|
63412
64161
|
var getHideExpandCol = function getHideExpandCol() {
|
|
63413
64162
|
var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
63414
64163
|
var expandCol = cols.find(function (col) {
|
|
@@ -63419,7 +64168,17 @@ var getHideExpandCol = function getHideExpandCol() {
|
|
|
63419
64168
|
}
|
|
63420
64169
|
return null;
|
|
63421
64170
|
};
|
|
64171
|
+
// 缓冲区列数:左右各2列
|
|
64172
|
+
var BUFFER_COUNT = 2;
|
|
63422
64173
|
var useColumns = function useColumns(props) {
|
|
64174
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
64175
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
64176
|
+
startIndex = _useState2[0],
|
|
64177
|
+
setStartIndex = _useState2[1];
|
|
64178
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(20),
|
|
64179
|
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
64180
|
+
renderedCount = _useState4[0],
|
|
64181
|
+
setRenderedCount = _useState4[1];
|
|
63423
64182
|
var _props$columns = props.columns,
|
|
63424
64183
|
propsColumns = _props$columns === void 0 ? [] : _props$columns;
|
|
63425
64184
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
@@ -63474,8 +64233,76 @@ var useColumns = function useColumns(props) {
|
|
|
63474
64233
|
return context.cachedColumns;
|
|
63475
64234
|
});
|
|
63476
64235
|
var columns = getColumns(propsColumns) || [];
|
|
64236
|
+
var leftFixedColumns = columns.filter(function (col) {
|
|
64237
|
+
return col.fixed === 'left';
|
|
64238
|
+
});
|
|
64239
|
+
var middleColumns = columns.filter(function (col) {
|
|
64240
|
+
return !col.fixed;
|
|
64241
|
+
});
|
|
64242
|
+
var handleScroll = function handleScroll(scrollInfo) {
|
|
64243
|
+
var scrollLeft = scrollInfo.scrollLeft;
|
|
64244
|
+
var sum = 0;
|
|
64245
|
+
var currentIndex = 0;
|
|
64246
|
+
for (var i = 0, len = middleColumns.length - 1; i < len; i++) {
|
|
64247
|
+
var curCol = middleColumns[i];
|
|
64248
|
+
sum += curCol.width || 100;
|
|
64249
|
+
if (scrollLeft < sum) {
|
|
64250
|
+
// 计算可视区域内需要渲染的列数
|
|
64251
|
+
for (var j = i + 1; j < len; j++) {
|
|
64252
|
+
var _props$scrollRef$curr;
|
|
64253
|
+
var nextCol = middleColumns[j];
|
|
64254
|
+
sum += nextCol.width || 100;
|
|
64255
|
+
if (props.scrollRef.current && sum - scrollLeft >= ((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientWidth)) {
|
|
64256
|
+
// 在原有基础上,右侧增加缓冲列
|
|
64257
|
+
var visibleCount = j - i;
|
|
64258
|
+
setRenderedCount(Math.min(visibleCount + BUFFER_COUNT * 2, len));
|
|
64259
|
+
break;
|
|
64260
|
+
}
|
|
64261
|
+
}
|
|
64262
|
+
|
|
64263
|
+
// 左侧也增加缓冲列,但不能小于0
|
|
64264
|
+
var bufferedStartIndex = Math.max(0, i - BUFFER_COUNT);
|
|
64265
|
+
currentIndex = bufferedStartIndex + leftFixedColumns.length;
|
|
64266
|
+
break;
|
|
64267
|
+
}
|
|
64268
|
+
}
|
|
64269
|
+
setStartIndex(currentIndex);
|
|
64270
|
+
};
|
|
64271
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64272
|
+
if (!props.virtualColumn) return;
|
|
64273
|
+
handleScroll({
|
|
64274
|
+
scrollLeft: 0
|
|
64275
|
+
});
|
|
64276
|
+
}, []);
|
|
63477
64277
|
return {
|
|
63478
|
-
columns: columns,
|
|
64278
|
+
columns: props.virtualColumn ? columns.map(function (col, index) {
|
|
64279
|
+
if (col.fixed) {
|
|
64280
|
+
return col;
|
|
64281
|
+
}
|
|
64282
|
+
if (index < startIndex || index > startIndex + renderedCount) {
|
|
64283
|
+
var colSpan;
|
|
64284
|
+
if (index > startIndex + renderedCount && index === startIndex + renderedCount + 1) {
|
|
64285
|
+
colSpan = function colSpan() {
|
|
64286
|
+
return middleColumns.length - (startIndex + renderedCount) + 1;
|
|
64287
|
+
};
|
|
64288
|
+
} else if (index < startIndex && index === leftFixedColumns.length && startIndex > 0) {
|
|
64289
|
+
colSpan = function colSpan() {
|
|
64290
|
+
return startIndex;
|
|
64291
|
+
};
|
|
64292
|
+
}
|
|
64293
|
+
return objectSpread2_default()(objectSpread2_default()({}, col), {}, {
|
|
64294
|
+
colSpan: colSpan,
|
|
64295
|
+
render: function render() {
|
|
64296
|
+
return null;
|
|
64297
|
+
},
|
|
64298
|
+
title: null
|
|
64299
|
+
});
|
|
64300
|
+
}
|
|
64301
|
+
return col;
|
|
64302
|
+
}) : columns,
|
|
64303
|
+
columnInfo: {
|
|
64304
|
+
handleScroll: handleScroll
|
|
64305
|
+
},
|
|
63479
64306
|
expandHideCol: context.expandHideCol
|
|
63480
64307
|
};
|
|
63481
64308
|
};
|
|
@@ -63759,7 +64586,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
63759
64586
|
});
|
|
63760
64587
|
var checkFloat = use_persist_fn(function () {
|
|
63761
64588
|
var scrollEl = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
|
|
63762
|
-
if (!scrollEl) return;
|
|
64589
|
+
if (!scrollEl || !(scrollEl !== null && scrollEl !== void 0 && scrollEl.offsetParent)) return;
|
|
63763
64590
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
63764
64591
|
var min = 0;
|
|
63765
64592
|
var left = scrollEl.scrollLeft;
|
|
@@ -63867,6 +64694,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
63867
64694
|
|
|
63868
64695
|
|
|
63869
64696
|
|
|
64697
|
+
|
|
63870
64698
|
var useTableFilter = function useTableFilter(props) {
|
|
63871
64699
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(new Map()),
|
|
63872
64700
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -63879,10 +64707,13 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63879
64707
|
});
|
|
63880
64708
|
}, [filterInfo]);
|
|
63881
64709
|
var filteredData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
63882
|
-
var _props$
|
|
64710
|
+
var _props$columns;
|
|
63883
64711
|
// why use slice: props.data引用不改变会导致后续的useMemo无法重新计算
|
|
63884
64712
|
if (activeFilters.length === 0) return (props.data || []).slice();
|
|
63885
|
-
|
|
64713
|
+
var columnHasChildren = (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.find(function (col) {
|
|
64714
|
+
return col.treeColumnsName;
|
|
64715
|
+
});
|
|
64716
|
+
return getFilterTree(props.data, function (item) {
|
|
63886
64717
|
return activeFilters.every(function (key) {
|
|
63887
64718
|
var filter = filterInfo.get(key);
|
|
63888
64719
|
if ((filter === null || filter === void 0 ? void 0 : filter.value) === undefined) return true;
|
|
@@ -63892,7 +64723,9 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63892
64723
|
}
|
|
63893
64724
|
return true;
|
|
63894
64725
|
});
|
|
63895
|
-
})
|
|
64726
|
+
}, undefined, function (node) {
|
|
64727
|
+
return getKey(props.keygen, node);
|
|
64728
|
+
}, columnHasChildren === null || columnHasChildren === void 0 ? void 0 : columnHasChildren.treeColumnsName, false);
|
|
63896
64729
|
}, [activeFilters, props.data]);
|
|
63897
64730
|
var onFilterChange = use_persist_fn(function (columnKey, value) {
|
|
63898
64731
|
// TODO: 暂未开放reset全部筛选条件
|
|
@@ -63922,8 +64755,8 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63922
64755
|
// 根据columns生成filterInfo
|
|
63923
64756
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63924
64757
|
setFilterInfo(function (prev) {
|
|
63925
|
-
var _props$
|
|
63926
|
-
var _filterInfo = props === null || props === void 0 || (_props$
|
|
64758
|
+
var _props$columns2;
|
|
64759
|
+
var _filterInfo = props === null || props === void 0 || (_props$columns2 = props.columns) === null || _props$columns2 === void 0 ? void 0 : _props$columns2.reduce(function (acc, column, index) {
|
|
63927
64760
|
var _prev$get2, _column$filter;
|
|
63928
64761
|
if (!column.filter) return acc;
|
|
63929
64762
|
var columnKey = typeof column.render === 'string' ? column.render : String(index);
|
|
@@ -64124,6 +64957,7 @@ function getMaxRowSpanLength(input) {
|
|
|
64124
64957
|
return Math.max.apply(Math, toConsumableArray_default()(Array.from(map.values())));
|
|
64125
64958
|
}
|
|
64126
64959
|
var useTableVirtual = function useTableVirtual(props) {
|
|
64960
|
+
var _props$scrollRef$curr;
|
|
64127
64961
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
64128
64962
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
64129
64963
|
innerTop = _useState2[0],
|
|
@@ -64142,6 +64976,15 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64142
64976
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
64143
64977
|
offsetY = _useState8[0],
|
|
64144
64978
|
setOffsetY = _useState8[1];
|
|
64979
|
+
|
|
64980
|
+
// TODO: 尝试垂直滚动采用延迟销毁 + 操作dom transform方案提升性能?
|
|
64981
|
+
// const setTop = (v: number) => {
|
|
64982
|
+
// if (props.virtual === 'lazy') {
|
|
64983
|
+
// props.innerRef.current && (props.innerRef.current.style.transform = `translate3d(0, ${-v}px, 0)`);
|
|
64984
|
+
// } else {
|
|
64985
|
+
// }
|
|
64986
|
+
// _setTop(v);
|
|
64987
|
+
// }
|
|
64145
64988
|
var rowsInView = props.rowsInView === 0 ? props.data.length : props.rowsInView;
|
|
64146
64989
|
var rowSpanInfo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
64147
64990
|
var rowSpanColumns = props.columns.filter(function (col) {
|
|
@@ -64244,14 +65087,23 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64244
65087
|
});
|
|
64245
65088
|
}
|
|
64246
65089
|
});
|
|
65090
|
+
|
|
65091
|
+
// const setStartIndex2 = (index:number) => {
|
|
65092
|
+
// let sum = 0;
|
|
65093
|
+
// for (let i = 0; i < index; i++) {
|
|
65094
|
+
// sum += context.cachedHeight[i] || props.rowHeight;
|
|
65095
|
+
// }
|
|
65096
|
+
// props.innerRef.current && (props.innerRef.current.style.transform = `translate3d(0, ${-innerTop + sum}px, 0)`);
|
|
65097
|
+
// setStartIndex(index);
|
|
65098
|
+
// }
|
|
65099
|
+
|
|
65100
|
+
var maxIndex = Math.max(props.data.length - rowsInView, 0);
|
|
65101
|
+
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
64247
65102
|
var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
|
|
64248
|
-
var _props$scrollRef$curr;
|
|
64249
65103
|
if (props.disabled) return;
|
|
64250
65104
|
var sum = 0;
|
|
64251
65105
|
var currentIndex = 0;
|
|
64252
65106
|
var top = 0;
|
|
64253
|
-
var maxIndex = Math.max(props.data.length - rowsInView, 0);
|
|
64254
|
-
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
64255
65107
|
for (var i = 0; i <= maxIndex; i++) {
|
|
64256
65108
|
context.rowSpanRows = 0;
|
|
64257
65109
|
var currentRowHeight = strictRowHeight || context.cachedHeight[i] || props.rowHeight;
|
|
@@ -64280,6 +65132,15 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64280
65132
|
break;
|
|
64281
65133
|
}
|
|
64282
65134
|
}
|
|
65135
|
+
// if (props.virtual === 'lazy') {
|
|
65136
|
+
// setTop(scrollTop);
|
|
65137
|
+
// context.autoAddRows = currentIndex
|
|
65138
|
+
// setTimeout(() => {
|
|
65139
|
+
// setStartIndex2(currentIndex);
|
|
65140
|
+
// context.autoAddRows = 0
|
|
65141
|
+
// }, 300);
|
|
65142
|
+
// return;
|
|
65143
|
+
// }
|
|
64283
65144
|
if (currentIndex !== startIndex) {
|
|
64284
65145
|
setStartIndex(currentIndex);
|
|
64285
65146
|
|
|
@@ -64417,7 +65278,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64417
65278
|
context.autoAddRows = addonCount;
|
|
64418
65279
|
}
|
|
64419
65280
|
}
|
|
64420
|
-
}, []);
|
|
65281
|
+
}, [props.data.length]);
|
|
64421
65282
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64422
65283
|
// 记录preIndex
|
|
64423
65284
|
context.preIndex = startIndex;
|
|
@@ -64460,6 +65321,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64460
65321
|
return toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
|
|
64461
65322
|
}, [props.data, props.disabled, startIndex, finalRowsInView]);
|
|
64462
65323
|
var translateStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
65324
|
+
// if (props.virtual === 'lazy') return 'translate3d(0, 0, 0)';
|
|
64463
65325
|
var t = innerTop + offsetY;
|
|
64464
65326
|
if (t < 0) {
|
|
64465
65327
|
t = 0;
|
|
@@ -65255,7 +66117,7 @@ var thead_toNum = toNum;
|
|
|
65255
66117
|
};
|
|
65256
66118
|
}
|
|
65257
66119
|
if (fixed === 'right') {
|
|
65258
|
-
var right = colgroup.slice(index + colSpan).reduce(function (a, b) {
|
|
66120
|
+
var right = colgroup.slice(index + (typeof colSpan === 'function' ? 1 : colSpan)).reduce(function (a, b) {
|
|
65259
66121
|
return thead_toNum(a) + thead_toNum(b);
|
|
65260
66122
|
}, 0);
|
|
65261
66123
|
return {
|
|
@@ -65276,7 +66138,7 @@ var thead_toNum = toNum;
|
|
|
65276
66138
|
var fixedStyle = getFixedStyle(col.fixed, col.index, colTemp2.colSpan || 1, level);
|
|
65277
66139
|
var cellClassName = classnames_default()(colTemp.className, colTemp.type === 'checkbox' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellCheckbox), col.fixed === 'left' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLeft), col.fixed === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedRight), colTemp.align === 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignCenter), colTemp.align === 'right' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignRight), colTemp.align !== 'right' && colTemp.align !== 'center' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellAlignLeft), (col.lastFixed || col.firstFixed) && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellFixedLast), isLast && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellIgnoreBorder), colTemp.sorter && props.cellSortable && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellSortable));
|
|
65278
66140
|
var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
|
|
65279
|
-
if (colTemp.title || isExpand) {
|
|
66141
|
+
if (colTemp.title !== undefined || isExpand) {
|
|
65280
66142
|
var sorter = renderSort(colTemp);
|
|
65281
66143
|
var filter = renderFilter(colTemp, columnIndex);
|
|
65282
66144
|
trs[level].push( /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
@@ -65347,7 +66209,7 @@ var thead_toNum = toNum;
|
|
|
65347
66209
|
trs[level].push( /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
65348
66210
|
className: classnames_default()(cellClassName, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.cellGroup, colTemp2 === null || colTemp2 === void 0 || (_colTemp2$groupProps2 = colTemp2.groupProps) === null || _colTemp2$groupProps2 === void 0 ? void 0 : _colTemp2$groupProps2.className),
|
|
65349
66211
|
style: style,
|
|
65350
|
-
colSpan: colTemp2.colSpan,
|
|
66212
|
+
colSpan: props.virtualColumn && typeof colTemp2.colSpan === 'function' ? undefined : colTemp2.colSpan,
|
|
65351
66213
|
dir: config.direction,
|
|
65352
66214
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
65353
66215
|
children: colTemp2.name
|
|
@@ -66233,7 +67095,7 @@ var table_emptyArr = [];
|
|
|
66233
67095
|
var emptyRef = {
|
|
66234
67096
|
current: null
|
|
66235
67097
|
};
|
|
66236
|
-
|
|
67098
|
+
function Table(props) {
|
|
66237
67099
|
var _props$jssStyle, _props$jssStyle$table, _columns$find;
|
|
66238
67100
|
var _props$verticalAlign = props.verticalAlign,
|
|
66239
67101
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -66301,6 +67163,7 @@ var emptyRef = {
|
|
|
66301
67163
|
setScrollAble(isScrollAble);
|
|
66302
67164
|
}, [virtual]);
|
|
66303
67165
|
|
|
67166
|
+
// TODO: 没用的tbodyHeight,有空移除了
|
|
66304
67167
|
// 虚拟列表高度另外计算
|
|
66305
67168
|
var _useResize = useResize({
|
|
66306
67169
|
targetRef: virtual ? emptyRef : tbodyRef
|
|
@@ -66321,10 +67184,13 @@ var emptyRef = {
|
|
|
66321
67184
|
});
|
|
66322
67185
|
var _useTableColumns = use_table_columns({
|
|
66323
67186
|
columns: props.columns,
|
|
67187
|
+
virtualColumn: props.virtualColumn,
|
|
67188
|
+
scrollRef: scrollRef,
|
|
66324
67189
|
showCheckbox: typeof props.onRowSelect === 'function'
|
|
66325
67190
|
}),
|
|
66326
67191
|
columns = _useTableColumns.columns,
|
|
66327
|
-
expandHideCol = _useTableColumns.expandHideCol
|
|
67192
|
+
expandHideCol = _useTableColumns.expandHideCol,
|
|
67193
|
+
columnInfo = _useTableColumns.columnInfo;
|
|
66328
67194
|
var _useTableLayout = use_table_layout({
|
|
66329
67195
|
theadRef: theadRef,
|
|
66330
67196
|
tbodyRef: tbodyRef,
|
|
@@ -66349,6 +67215,7 @@ var emptyRef = {
|
|
|
66349
67215
|
scrollWidth = _useTableLayout.scrollWidth,
|
|
66350
67216
|
resizeFlag = _useTableLayout.resizeFlag;
|
|
66351
67217
|
var _useTableFilter = use_table_filter({
|
|
67218
|
+
keygen: props.keygen,
|
|
66352
67219
|
data: props.data,
|
|
66353
67220
|
columns: props.columns
|
|
66354
67221
|
}),
|
|
@@ -66462,6 +67329,7 @@ var emptyRef = {
|
|
|
66462
67329
|
};
|
|
66463
67330
|
}, [theadRef.current, tfootRef.current]);
|
|
66464
67331
|
var virtualInfo = use_table_virtual({
|
|
67332
|
+
virtual: props.virtual,
|
|
66465
67333
|
disabled: !virtual,
|
|
66466
67334
|
data: treeData,
|
|
66467
67335
|
columns: columns,
|
|
@@ -66492,6 +67360,9 @@ var emptyRef = {
|
|
|
66492
67360
|
var target = e.currentTarget;
|
|
66493
67361
|
if (!target) return;
|
|
66494
67362
|
layoutFunc.checkFloat();
|
|
67363
|
+
if (props.virtualColumn) columnInfo.handleScroll({
|
|
67364
|
+
scrollLeft: target.scrollLeft
|
|
67365
|
+
});
|
|
66495
67366
|
if (headMirrorScrollRef.current) {
|
|
66496
67367
|
headMirrorScrollRef.current.scrollLeft = target.scrollLeft;
|
|
66497
67368
|
}
|
|
@@ -66511,6 +67382,7 @@ var emptyRef = {
|
|
|
66511
67382
|
// 虚拟表格的滚动事件
|
|
66512
67383
|
var handleVirtualScroll = usePersistFn(function (info) {
|
|
66513
67384
|
virtualInfo.handleScroll(info);
|
|
67385
|
+
if (props.virtualColumn) columnInfo.handleScroll(info);
|
|
66514
67386
|
layoutFunc.checkFloat();
|
|
66515
67387
|
if (headMirrorScrollRef.current) {
|
|
66516
67388
|
headMirrorScrollRef.current.scrollLeft = info.scrollLeft;
|
|
@@ -66522,7 +67394,7 @@ var emptyRef = {
|
|
|
66522
67394
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
66523
67395
|
}
|
|
66524
67396
|
syncHeaderScroll(info.scrollLeft);
|
|
66525
|
-
if (props.virtual !==
|
|
67397
|
+
if (props.virtual !== 'lazy') return;
|
|
66526
67398
|
if (context.scrollingTimer) {
|
|
66527
67399
|
clearTimeout(context.scrollingTimer);
|
|
66528
67400
|
}
|
|
@@ -66540,7 +67412,7 @@ var emptyRef = {
|
|
|
66540
67412
|
jssStyle: props.jssStyle
|
|
66541
67413
|
});
|
|
66542
67414
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66543
|
-
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
|
|
67415
|
+
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && browserScrollbarWidth > 0 && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
|
|
66544
67416
|
ref: function ref(el) {
|
|
66545
67417
|
context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
|
|
66546
67418
|
},
|
|
@@ -66615,7 +67487,8 @@ var emptyRef = {
|
|
|
66615
67487
|
renderSorter: props.renderSorter,
|
|
66616
67488
|
radio: props.radio,
|
|
66617
67489
|
treeColumnsName: treeColumnsName,
|
|
66618
|
-
treeCheckAll: props.treeCheckAll
|
|
67490
|
+
treeCheckAll: props.treeCheckAll,
|
|
67491
|
+
virtualColumn: props.virtualColumn
|
|
66619
67492
|
};
|
|
66620
67493
|
var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
|
|
66621
67494
|
var footCommonProps = {
|
|
@@ -66867,6 +67740,12 @@ var emptyRef = {
|
|
|
66867
67740
|
props.tableRef(tableFunc);
|
|
66868
67741
|
}
|
|
66869
67742
|
}, []);
|
|
67743
|
+
var absoluteProviderValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
67744
|
+
return {
|
|
67745
|
+
absolute: true,
|
|
67746
|
+
scrollElRef: scrollRef
|
|
67747
|
+
};
|
|
67748
|
+
}, [scrollRef]);
|
|
66870
67749
|
var tableWrapperClass = classnames_default()(props.className, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rootClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.wrapper, props.bordered && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.bordered), verticalAlign === 'top' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignTop), verticalAlign === 'middle' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.verticalAlignMiddle), size === 'small' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.small), size === 'large' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.large), size === 'default' && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.default));
|
|
66871
67750
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66872
67751
|
className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -66889,15 +67768,13 @@ var emptyRef = {
|
|
|
66889
67768
|
ref: tableRef,
|
|
66890
67769
|
dir: config.direction,
|
|
66891
67770
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(absolute_context.Provider, {
|
|
66892
|
-
value:
|
|
66893
|
-
absolute: true,
|
|
66894
|
-
scrollElRef: scrollRef
|
|
66895
|
-
},
|
|
67771
|
+
value: absoluteProviderValue,
|
|
66896
67772
|
children: [renderTable(), renderLoading(), props.children]
|
|
66897
67773
|
})
|
|
66898
67774
|
})), renderPagination()]
|
|
66899
67775
|
});
|
|
66900
|
-
}
|
|
67776
|
+
}
|
|
67777
|
+
;
|
|
66901
67778
|
;// CONCATENATED MODULE: ./src/table/table.tsx
|
|
66902
67779
|
|
|
66903
67780
|
|
|
@@ -66921,14 +67798,14 @@ var table_jssStyle = {
|
|
|
66921
67798
|
popover: usePopoverStyle,
|
|
66922
67799
|
tree: useTreeStyle
|
|
66923
67800
|
};
|
|
66924
|
-
/* harmony default export */ var
|
|
66925
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
67801
|
+
/* harmony default export */ var src_table_table = (function (props) {
|
|
67802
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Table, objectSpread2_default()({
|
|
66926
67803
|
jssStyle: table_jssStyle
|
|
66927
67804
|
}, props));
|
|
66928
67805
|
});
|
|
66929
67806
|
;// CONCATENATED MODULE: ./src/table/index.ts
|
|
66930
67807
|
|
|
66931
|
-
var TableComp =
|
|
67808
|
+
var TableComp = src_table_table;
|
|
66932
67809
|
TableComp.displayName = 'ShineoutTable';
|
|
66933
67810
|
/* harmony default export */ var src_table_0 = (TableComp);
|
|
66934
67811
|
;// CONCATENATED MODULE: ../hooks/src/components/use-tabs/context.tsx
|
|
@@ -68701,6 +69578,7 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
68701
69578
|
|
|
68702
69579
|
|
|
68703
69580
|
|
|
69581
|
+
|
|
68704
69582
|
var Transfer = function Transfer(props) {
|
|
68705
69583
|
var _jssStyle$transfer;
|
|
68706
69584
|
var jssStyle = props.jssStyle,
|
|
@@ -68874,12 +69752,13 @@ var Transfer = function Transfer(props) {
|
|
|
68874
69752
|
filterTargetText: filterTargetText,
|
|
68875
69753
|
highlight: props.highlight
|
|
68876
69754
|
},
|
|
68877
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
69755
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
68878
69756
|
className: rootClass,
|
|
68879
69757
|
style: style,
|
|
68880
|
-
id: fieldId
|
|
69758
|
+
id: fieldId
|
|
69759
|
+
}, getDataset(props)), {}, {
|
|
68881
69760
|
children: [renderSourceList, !simple && renderOperations(), renderTargetList]
|
|
68882
|
-
})
|
|
69761
|
+
}))
|
|
68883
69762
|
});
|
|
68884
69763
|
};
|
|
68885
69764
|
/* harmony default export */ var src_transfer_transfer = (Transfer);
|
|
@@ -69640,11 +70519,11 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69640
70519
|
filterText: filterText,
|
|
69641
70520
|
highlight: props.highlight
|
|
69642
70521
|
},
|
|
69643
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
70522
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
69644
70523
|
id: fieldId,
|
|
69645
70524
|
ref: targetRef,
|
|
69646
70525
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
69647
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
70526
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
69648
70527
|
className: rootClass,
|
|
69649
70528
|
style: rootStyle,
|
|
69650
70529
|
onBlur: handleBlur,
|
|
@@ -70768,10 +71647,11 @@ var Upload = function Upload(props0) {
|
|
|
70768
71647
|
var shouldRenderLeft = listType !== 'image' || leftHandler;
|
|
70769
71648
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
|
|
70770
71649
|
fieldId = _useContext.fieldId;
|
|
70771
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
71650
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
70772
71651
|
id: fieldId,
|
|
70773
71652
|
style: props.style,
|
|
70774
|
-
className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.rootClass, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapper, isImage && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperImage), drop && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperDrop), props.disabled && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperDisabled), props.className)
|
|
71653
|
+
className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.rootClass, uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapper, isImage && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperImage), drop && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperDrop), props.disabled && (uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.wrapperDisabled), props.className)
|
|
71654
|
+
}, getDataset(props)), {}, {
|
|
70775
71655
|
children: renderCustomResult ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70776
71656
|
children: [shouldRenderLeft && renderHandler(), renderCustomResult({
|
|
70777
71657
|
value: value,
|
|
@@ -70787,7 +71667,7 @@ var Upload = function Upload(props0) {
|
|
|
70787
71667
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70788
71668
|
children: [shouldRenderLeft && !hideHandler && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && !hideHandler && renderHandler(), renderRecover()]
|
|
70789
71669
|
})
|
|
70790
|
-
});
|
|
71670
|
+
}));
|
|
70791
71671
|
};
|
|
70792
71672
|
/* harmony default export */ var src_upload_upload = (Upload);
|
|
70793
71673
|
;// CONCATENATED MODULE: ./src/upload/use-upload-common.ts
|
|
@@ -73100,10 +73980,9 @@ function accept_attrAccept(file, acceptedFiles) {
|
|
|
73100
73980
|
|
|
73101
73981
|
|
|
73102
73982
|
|
|
73103
|
-
// import validate from './validate';
|
|
73104
73983
|
|
|
73105
73984
|
|
|
73106
|
-
var src_utils_validate =
|
|
73985
|
+
var src_utils_validate = validate;
|
|
73107
73986
|
var cssAccessors = {};
|
|
73108
73987
|
var cssInject = {};
|
|
73109
73988
|
|
|
@@ -73417,7 +74296,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73417
74296
|
|
|
73418
74297
|
|
|
73419
74298
|
/* harmony default export */ var src_0 = ({
|
|
73420
|
-
version: '3.9.0
|
|
74299
|
+
version: '3.9.0'
|
|
73421
74300
|
});
|
|
73422
74301
|
}();
|
|
73423
74302
|
/******/ return __webpack_exports__;
|