shineout 3.9.0-beta.9 → 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 +1580 -707
- 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: {
|
|
@@ -24111,7 +24156,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24111
24156
|
hideTag: {},
|
|
24112
24157
|
list: {},
|
|
24113
24158
|
tree: {
|
|
24114
|
-
padding:
|
|
24159
|
+
padding: '0 4px',
|
|
24115
24160
|
overflow: 'auto'
|
|
24116
24161
|
},
|
|
24117
24162
|
treeOption: {
|
|
@@ -25386,7 +25431,8 @@ var spinStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25386
25431
|
}
|
|
25387
25432
|
},
|
|
25388
25433
|
tip: {
|
|
25389
|
-
color: src.spinTipFontColor
|
|
25434
|
+
color: src.spinTipFontColor,
|
|
25435
|
+
fontSize: src.spinTipFontSize
|
|
25390
25436
|
},
|
|
25391
25437
|
vertical: {},
|
|
25392
25438
|
horizontal: {}
|
|
@@ -26816,10 +26862,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26816
26862
|
}
|
|
26817
26863
|
},
|
|
26818
26864
|
rowHover: {
|
|
26819
|
-
'& td': {
|
|
26820
|
-
transition: 'background-color 0.2s'
|
|
26821
|
-
},
|
|
26822
26865
|
'&&:hover td': {
|
|
26866
|
+
transition: 'background-color 0.2s',
|
|
26823
26867
|
background: "".concat(src.tableTbodyHoverBackgroundColor)
|
|
26824
26868
|
}
|
|
26825
26869
|
},
|
|
@@ -27599,10 +27643,12 @@ var tabsStyle = {
|
|
|
27599
27643
|
'& $tab': {
|
|
27600
27644
|
display: 'block'
|
|
27601
27645
|
},
|
|
27602
|
-
'
|
|
27646
|
+
'&& $tab + $tab': {
|
|
27603
27647
|
marginTop: src.tabsNearlyMargin
|
|
27604
27648
|
},
|
|
27605
27649
|
'& $next,& $prev': {
|
|
27650
|
+
// 考虑垂直方向可滚动功能时一并修复zIndex
|
|
27651
|
+
// zIndex: 1,
|
|
27606
27652
|
padding: "".concat(src.tabsActionVerticalPaddingY, " ").concat(src.tabsActionVerticalPaddingX),
|
|
27607
27653
|
'&:after': {
|
|
27608
27654
|
display: 'none'
|
|
@@ -27774,7 +27820,7 @@ var tabsStyle = {
|
|
|
27774
27820
|
'$headerWrapper[data-soui-shape="line"] &': {
|
|
27775
27821
|
'& $tab': {
|
|
27776
27822
|
position: 'relative',
|
|
27777
|
-
padding: "".concat(src.
|
|
27823
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27778
27824
|
color: src.tabsLineFontColor,
|
|
27779
27825
|
fontSize: src.tabsLineFontSize,
|
|
27780
27826
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -27824,7 +27870,7 @@ var tabsStyle = {
|
|
|
27824
27870
|
},
|
|
27825
27871
|
'$headerWrapper[data-soui-shape="dash"] &': {
|
|
27826
27872
|
'& $tab': {
|
|
27827
|
-
padding: "".concat(src.
|
|
27873
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27828
27874
|
color: src.tabsLineFontColor,
|
|
27829
27875
|
fontSize: src.tabsLineFontSize,
|
|
27830
27876
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -28125,7 +28171,7 @@ var TagStyle = {
|
|
|
28125
28171
|
wrapper: {
|
|
28126
28172
|
flex: 1,
|
|
28127
28173
|
minWidth: 0,
|
|
28128
|
-
lineHeight: src.
|
|
28174
|
+
lineHeight: src.tagDefaultLineHeight
|
|
28129
28175
|
},
|
|
28130
28176
|
inline: {
|
|
28131
28177
|
display: 'inline-block',
|
|
@@ -28145,6 +28191,12 @@ var TagStyle = {
|
|
|
28145
28191
|
width: 14,
|
|
28146
28192
|
height: 14
|
|
28147
28193
|
}
|
|
28194
|
+
},
|
|
28195
|
+
'& $wrapper': {
|
|
28196
|
+
lineHeight: src.tagLargeLineHeight
|
|
28197
|
+
},
|
|
28198
|
+
'& $closeIcon': {
|
|
28199
|
+
height: src.tagLargeLineHeight
|
|
28148
28200
|
}
|
|
28149
28201
|
},
|
|
28150
28202
|
small: {
|
|
@@ -28154,10 +28206,10 @@ var TagStyle = {
|
|
|
28154
28206
|
fontWeight: src.tagSmallFontWeight,
|
|
28155
28207
|
borderRadius: src.tagSmallBorderRadius,
|
|
28156
28208
|
'& $wrapper': {
|
|
28157
|
-
lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28209
|
+
lineHeight: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28158
28210
|
},
|
|
28159
28211
|
'& $closeIcon': {
|
|
28160
|
-
height: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28212
|
+
height: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28161
28213
|
},
|
|
28162
28214
|
'& $closeIconWrapper': {
|
|
28163
28215
|
width: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
|
|
@@ -28180,7 +28232,7 @@ var TagStyle = {
|
|
|
28180
28232
|
alignItems: 'center',
|
|
28181
28233
|
display: 'inline-flex',
|
|
28182
28234
|
cursor: 'pointer',
|
|
28183
|
-
height: src.
|
|
28235
|
+
height: src.tagDefaultLineHeight,
|
|
28184
28236
|
maxHeight: '100%'
|
|
28185
28237
|
},
|
|
28186
28238
|
closeIconWrapper: {
|
|
@@ -28207,11 +28259,12 @@ var TagStyle = {
|
|
|
28207
28259
|
cyan: objectSpread2_default()({}, brightTag('cyan', 'Cyan')),
|
|
28208
28260
|
neon: objectSpread2_default()({}, brightTag('neon', 'Neon')),
|
|
28209
28261
|
lemon: objectSpread2_default()({}, brightTag('lemon', 'Lemon')),
|
|
28262
|
+
orange: objectSpread2_default()({}, brightTag('orange', 'Orange')),
|
|
28210
28263
|
tangerine: objectSpread2_default()({}, brightTag('tangerine', 'Tangerine')),
|
|
28211
|
-
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')),
|
|
28212
28265
|
bright: {},
|
|
28213
|
-
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')),
|
|
28214
|
-
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')),
|
|
28215
28268
|
rounded: {
|
|
28216
28269
|
borderRadius: src.buttonRoundBorderRadius
|
|
28217
28270
|
}
|
|
@@ -30954,6 +31007,9 @@ var addResizeObserver = function addResizeObserver(el, handler) {
|
|
|
30954
31007
|
lastWidth = el.clientWidth;
|
|
30955
31008
|
lastHeight = el.clientHeight;
|
|
30956
31009
|
h = function h(entry) {
|
|
31010
|
+
if ((el === null || el === void 0 ? void 0 : el.offsetParent) === null) {
|
|
31011
|
+
return;
|
|
31012
|
+
}
|
|
30957
31013
|
var _entry$0$contentRect = entry[0].contentRect,
|
|
30958
31014
|
width = _entry$0$contentRect.width,
|
|
30959
31015
|
height = _entry$0$contentRect.height;
|
|
@@ -31887,7 +31943,7 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31887
31943
|
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
31888
31944
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
|
|
31889
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_);
|
|
31890
|
-
;// 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
|
|
31891
31947
|
|
|
31892
31948
|
// src/vanilla/ref.ts
|
|
31893
31949
|
function _array_like_to_array(arr, len) {
|
|
@@ -31901,6 +31957,19 @@ function _array_with_holes(arr) {
|
|
|
31901
31957
|
function _array_without_holes(arr) {
|
|
31902
31958
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
31903
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
|
+
}
|
|
31904
31973
|
function _instanceof(left, right) {
|
|
31905
31974
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
31906
31975
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -31941,12 +32010,56 @@ function _non_iterable_rest() {
|
|
|
31941
32010
|
function _non_iterable_spread() {
|
|
31942
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.");
|
|
31943
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
|
+
}
|
|
31944
32052
|
function _sliced_to_array(arr, i) {
|
|
31945
32053
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
31946
32054
|
}
|
|
31947
32055
|
function _to_consumable_array(arr) {
|
|
31948
32056
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
31949
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
|
+
}
|
|
31950
32063
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
31951
32064
|
if (!o) return;
|
|
31952
32065
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -31960,26 +32073,124 @@ function ref(o) {
|
|
|
31960
32073
|
internal_refSet.add(o);
|
|
31961
32074
|
return o;
|
|
31962
32075
|
}
|
|
31963
|
-
function
|
|
32076
|
+
function isRef(k) {
|
|
31964
32077
|
return internal_refSet.has(k);
|
|
31965
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
|
+
}
|
|
31966
32163
|
// src/utils/index.ts
|
|
31967
|
-
var SNAPSHOT = Symbol("SNAPSHOT");
|
|
31968
|
-
var LISTENERS = Symbol("LISTENERS");
|
|
31969
|
-
var REACTIVE = Symbol("REACTIVE");
|
|
31970
|
-
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() {};
|
|
31971
32170
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
31972
|
-
var
|
|
31973
|
-
return
|
|
32171
|
+
var chunk_22VVHX5B_isObject = function isObject(x) {
|
|
32172
|
+
return (typeof x === "undefined" ? "undefined" : _type_of(x)) === "object" && x !== null;
|
|
31974
32173
|
};
|
|
31975
|
-
var
|
|
31976
|
-
return
|
|
32174
|
+
var chunk_22VVHX5B_isBoolean = function isBoolean(x) {
|
|
32175
|
+
return typeof x === "boolean";
|
|
31977
32176
|
};
|
|
31978
|
-
var
|
|
31979
|
-
return
|
|
32177
|
+
var isFunction = function isFunction(x) {
|
|
32178
|
+
return typeof x === "function";
|
|
31980
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
|
+
}
|
|
31981
32192
|
var numberReg = /^\d+$/;
|
|
31982
|
-
|
|
32193
|
+
function propertyKeysToPath(keys) {
|
|
31983
32194
|
var path = "";
|
|
31984
32195
|
var length = keys.length;
|
|
31985
32196
|
for (var i = 0; i < length; i++) {
|
|
@@ -31991,8 +32202,8 @@ var propertyKeysToPath = function propertyKeysToPath(keys) {
|
|
|
31991
32202
|
}
|
|
31992
32203
|
}
|
|
31993
32204
|
return path;
|
|
31994
|
-
}
|
|
31995
|
-
|
|
32205
|
+
}
|
|
32206
|
+
function get(object, path) {
|
|
31996
32207
|
var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
31997
32208
|
var keys = Array.isArray(path) ? path : [path];
|
|
31998
32209
|
var _iteratorNormalCompletion = true,
|
|
@@ -32019,12 +32230,12 @@ var get = function get(object, path) {
|
|
|
32019
32230
|
}
|
|
32020
32231
|
}
|
|
32021
32232
|
return object;
|
|
32022
|
-
}
|
|
32023
|
-
|
|
32233
|
+
}
|
|
32234
|
+
function chunk_22VVHX5B_shallowEqual(objA, objB) {
|
|
32024
32235
|
if (Object.is(objA, objB)) {
|
|
32025
32236
|
return true;
|
|
32026
32237
|
}
|
|
32027
|
-
if (
|
|
32238
|
+
if ((typeof objA === "undefined" ? "undefined" : _type_of(objA)) !== "object" || objA === null || (typeof objB === "undefined" ? "undefined" : _type_of(objB)) !== "object" || objB === null) {
|
|
32028
32239
|
return false;
|
|
32029
32240
|
}
|
|
32030
32241
|
if (_instanceof(objA, Map) && _instanceof(objB, Map)) {
|
|
@@ -32096,16 +32307,116 @@ var chunk_IP2WBRUX_shallowEqual = function shallowEqual(objA, objB) {
|
|
|
32096
32307
|
}
|
|
32097
32308
|
}
|
|
32098
32309
|
return true;
|
|
32099
|
-
}
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
|
|
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
|
+
});
|
|
32103
32410
|
}
|
|
32104
32411
|
// src/vanilla/proxy.ts
|
|
32105
32412
|
var globalVersion = 1;
|
|
32106
32413
|
var snapshotCache = /* @__PURE__ */new WeakMap();
|
|
32107
32414
|
function proxy(initState) {
|
|
32108
|
-
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;
|
|
32109
32420
|
var version = globalVersion;
|
|
32110
32421
|
var listeners = /* @__PURE__ */new Set();
|
|
32111
32422
|
var propListenerMap = /* @__PURE__ */new Map();
|
|
@@ -32113,9 +32424,28 @@ function proxy(initState) {
|
|
|
32113
32424
|
var nextVersion = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ++globalVersion;
|
|
32114
32425
|
if (version !== nextVersion) {
|
|
32115
32426
|
version = nextVersion;
|
|
32116
|
-
|
|
32117
|
-
|
|
32118
|
-
|
|
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
|
+
}
|
|
32119
32449
|
}
|
|
32120
32450
|
};
|
|
32121
32451
|
var getPropListener = function getPropListener(prop) {
|
|
@@ -32136,23 +32466,49 @@ function proxy(initState) {
|
|
|
32136
32466
|
var createSnapshot = function createSnapshot(target, receiver) {
|
|
32137
32467
|
var cache = snapshotCache.get(receiver);
|
|
32138
32468
|
if ((cache === null || cache === void 0 ? void 0 : cache[0]) === version) return cache[1];
|
|
32139
|
-
var
|
|
32140
|
-
snapshotCache.set(receiver, [version,
|
|
32141
|
-
|
|
32142
|
-
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
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
|
+
}
|
|
32150
32484
|
}
|
|
32151
|
-
})
|
|
32152
|
-
|
|
32153
|
-
|
|
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;
|
|
32154
32501
|
};
|
|
32155
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
|
+
};
|
|
32156
32512
|
var proxyState = new Proxy(baseObject, {
|
|
32157
32513
|
get: function get(target, prop, receiver) {
|
|
32158
32514
|
if (prop === LISTENERS) {
|
|
@@ -32167,15 +32523,24 @@ function proxy(initState) {
|
|
|
32167
32523
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32168
32524
|
var preValue = Reflect.get(target, prop, receiver);
|
|
32169
32525
|
var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
|
|
32170
|
-
|
|
32171
|
-
|
|
32526
|
+
if (childListeners) {
|
|
32527
|
+
childListeners.delete(popPropListener(prop));
|
|
32528
|
+
}
|
|
32529
|
+
if (!chunk_22VVHX5B_isObject(value) && Object.is(preValue, value)) {
|
|
32172
32530
|
return true;
|
|
32173
32531
|
}
|
|
32174
32532
|
var nextValue = value;
|
|
32175
32533
|
if (nextValue === null || nextValue === void 0 ? void 0 : nextValue[LISTENERS]) {
|
|
32176
32534
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32177
32535
|
} else if (canProxy(value)) {
|
|
32178
|
-
|
|
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
|
+
});
|
|
32179
32544
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32180
32545
|
}
|
|
32181
32546
|
var success = Reflect.set(target, prop, nextValue, receiver);
|
|
@@ -32183,110 +32548,145 @@ function proxy(initState) {
|
|
|
32183
32548
|
return success;
|
|
32184
32549
|
},
|
|
32185
32550
|
deleteProperty: function deleteProperty(target, prop) {
|
|
32186
|
-
var _Reflect_get;
|
|
32187
32551
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32188
|
-
var
|
|
32189
|
-
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
|
+
}
|
|
32190
32561
|
var success = Reflect.deleteProperty(target, prop);
|
|
32191
32562
|
success && notifyUpdate(props);
|
|
32192
32563
|
return success;
|
|
32193
32564
|
}
|
|
32194
32565
|
});
|
|
32195
|
-
Reflect.ownKeys(initState).forEach(function (key) {
|
|
32196
|
-
proxyState[key] = initState[key];
|
|
32197
|
-
});
|
|
32198
32566
|
Reflect.defineProperty(proxyState, REACTIVE, {
|
|
32199
32567
|
value: true
|
|
32200
32568
|
});
|
|
32201
|
-
|
|
32202
|
-
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
var runCallbacks = function runCallbacks() {
|
|
32209
|
-
callbacks.forEach(function (cb) {
|
|
32210
|
-
return void cb();
|
|
32211
|
-
});
|
|
32212
|
-
callbacks.clear();
|
|
32213
|
-
previousState = getSnapshot(proxyState);
|
|
32214
|
-
};
|
|
32215
|
-
var listener = function listener(props, version) {
|
|
32216
|
-
var currentState = getSnapshot(proxyState);
|
|
32217
|
-
var changes = {
|
|
32218
|
-
props: props,
|
|
32219
|
-
propsPath: propertyKeysToPath(props),
|
|
32220
|
-
previous: get(previousState, props),
|
|
32221
|
-
current: get(currentState, props),
|
|
32222
|
-
snapshot: currentState
|
|
32223
|
-
};
|
|
32224
|
-
callbacks.add(function () {
|
|
32225
|
-
return void callback(changes, version);
|
|
32226
|
-
});
|
|
32227
|
-
if (notifyInSync) {
|
|
32228
|
-
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];
|
|
32229
32576
|
}
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
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
|
+
}
|
|
32235
32589
|
}
|
|
32236
|
-
}
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
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;
|
|
32242
32598
|
}
|
|
32243
32599
|
// src/vanilla/create.ts
|
|
32244
|
-
function
|
|
32245
|
-
|
|
32600
|
+
function createVanilla(initState) {
|
|
32601
|
+
var _options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32246
32602
|
var proxyState = proxy(initState);
|
|
32247
|
-
|
|
32248
|
-
var
|
|
32249
|
-
|
|
32250
|
-
|
|
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);
|
|
32251
32634
|
});
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32260
|
-
|
|
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 = {
|
|
32261
32660
|
mutate: proxyState,
|
|
32262
|
-
subscribe: _subscribe,
|
|
32263
32661
|
restore: restore
|
|
32264
32662
|
};
|
|
32663
|
+
return withSubscribe(withSnapshot(store));
|
|
32265
32664
|
}
|
|
32665
|
+
var chunk_22VVHX5B_create = (/* unused pure expression or super */ null && (createVanilla));
|
|
32266
32666
|
// src/vanilla/devtools.ts
|
|
32267
|
-
function devtools(
|
|
32268
|
-
|
|
32667
|
+
function devtools(store, options) {
|
|
32668
|
+
if (chunk_22VVHX5B_isProduction) return noop;
|
|
32269
32669
|
var ext = window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
32270
32670
|
var _options_enable;
|
|
32271
32671
|
var enable = (_options_enable = options === null || options === void 0 ? void 0 : options.enable) !== null && _options_enable !== void 0 ? _options_enable : true;
|
|
32272
32672
|
var isMutatingStoreByDevtools = false;
|
|
32273
|
-
if (!enable) return
|
|
32673
|
+
if (!enable) return noop;
|
|
32274
32674
|
if (!ext) {
|
|
32275
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"];
|
|
32276
32676
|
console.warn(infos.join(" "));
|
|
32277
|
-
return
|
|
32677
|
+
return noop;
|
|
32278
32678
|
}
|
|
32279
32679
|
var _options_name;
|
|
32280
32680
|
var name = (_options_name = options === null || options === void 0 ? void 0 : options.name) !== null && _options_name !== void 0 ? _options_name : "untitled";
|
|
32281
32681
|
var devtools2 = ext.connect(options);
|
|
32282
|
-
var initialState =
|
|
32682
|
+
var initialState = snapshot(store.mutate);
|
|
32283
32683
|
devtools2.init(initialState);
|
|
32284
32684
|
devtools2.subscribe(function (message) {
|
|
32285
32685
|
console.debug("[reactive] message from devtools: ", message);
|
|
32286
32686
|
if (message.type !== "DISPATCH") return;
|
|
32287
32687
|
if (!message.payload) return;
|
|
32288
32688
|
if (message.payload.type === "RESET") devtools2.init(initialState);
|
|
32289
|
-
if (message.payload.type === "COMMIT") devtools2.init(
|
|
32689
|
+
if (message.payload.type === "COMMIT") devtools2.init(snapshot(store.mutate));
|
|
32290
32690
|
var actions = ["ROLLBACK", "JUMP_TO_ACTION"];
|
|
32291
32691
|
var isAction = actions.includes(message.payload.type);
|
|
32292
32692
|
var hasState = message.state && message.state !== "{}";
|
|
@@ -32294,7 +32694,7 @@ function devtools(param, options) {
|
|
|
32294
32694
|
try {
|
|
32295
32695
|
isMutatingStoreByDevtools = true;
|
|
32296
32696
|
var newState = JSON.parse(message.state || "{}");
|
|
32297
|
-
Object.assign(
|
|
32697
|
+
Object.assign(store.mutate, newState);
|
|
32298
32698
|
console.debug("[reactive] mutate state by devtools: ", newState);
|
|
32299
32699
|
} catch (e) {
|
|
32300
32700
|
devtools2.error((e === null || e === void 0 ? void 0 : e.message) || (e === null || e === void 0 ? void 0 : e.toString()) || JSON.stringify(e || ""));
|
|
@@ -32303,11 +32703,11 @@ function devtools(param, options) {
|
|
|
32303
32703
|
}
|
|
32304
32704
|
}
|
|
32305
32705
|
});
|
|
32306
|
-
var unsubscribe = subscribe(
|
|
32706
|
+
var unsubscribe = subscribe(store.mutate, function (changes, version) {
|
|
32307
32707
|
var propsPath = changes.propsPath,
|
|
32308
32708
|
previous = changes.previous,
|
|
32309
32709
|
current = changes.current,
|
|
32310
|
-
|
|
32710
|
+
snapshot2 = changes.snapshot;
|
|
32311
32711
|
if (isMutatingStoreByDevtools) return;
|
|
32312
32712
|
var payload = {
|
|
32313
32713
|
type: "[".concat(canProxy(current) ? "replace" : "set", "] ").concat(propsPath),
|
|
@@ -32316,7 +32716,7 @@ function devtools(param, options) {
|
|
|
32316
32716
|
_updatedAt: /* @__PURE__ */new Date().toLocaleString(),
|
|
32317
32717
|
_innerVersion: version
|
|
32318
32718
|
};
|
|
32319
|
-
devtools2.send(payload,
|
|
32719
|
+
devtools2.send(payload, snapshot2);
|
|
32320
32720
|
console.debug("[reactive] [".concat(name, "] [").concat(getActionType(current), "] ").concat(propsPath), current);
|
|
32321
32721
|
}, true);
|
|
32322
32722
|
console.debug("[reactive] [".concat(name, "] devtools is enabled"));
|
|
@@ -32333,54 +32733,193 @@ function getActionType(state) {
|
|
|
32333
32733
|
function produce(obj, draftHandler) {
|
|
32334
32734
|
var state = proxy(obj);
|
|
32335
32735
|
draftHandler(state);
|
|
32336
|
-
var
|
|
32736
|
+
var nextSnapshot = snapshot(state);
|
|
32337
32737
|
state = null;
|
|
32338
|
-
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
|
+
});
|
|
32339
32755
|
}
|
|
32340
32756
|
|
|
32341
|
-
// EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.
|
|
32342
|
-
var with_selector = __webpack_require__(
|
|
32343
|
-
;// 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
|
+
}
|
|
32344
32837
|
|
|
32345
32838
|
// src/react/use-snapshot.ts
|
|
32346
32839
|
|
|
32347
32840
|
|
|
32348
32841
|
function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
|
|
32349
|
-
|
|
32350
|
-
|
|
32351
|
-
|
|
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;
|
|
32352
32856
|
}
|
|
32353
|
-
var _ref =
|
|
32354
|
-
|
|
32355
|
-
updateInSync = tmp === void 0 ? false : tmp,
|
|
32857
|
+
var _ref = options !== null && options !== void 0 ? options : {},
|
|
32858
|
+
updateInSync = _ref.sync,
|
|
32356
32859
|
_ref_isEqual = _ref.isEqual,
|
|
32357
|
-
isEqual = _ref_isEqual === void 0 ?
|
|
32860
|
+
isEqual = _ref_isEqual === void 0 ? chunk_22VVHX5B_shallowEqual : _ref_isEqual;
|
|
32358
32861
|
var _subscribe = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (callback) {
|
|
32359
32862
|
return subscribe(proxyState, callback, updateInSync);
|
|
32360
32863
|
}, [proxyState, updateInSync]);
|
|
32361
32864
|
var _getSnapshot = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
32362
|
-
return
|
|
32865
|
+
return snapshot(proxyState);
|
|
32363
32866
|
}, [proxyState]);
|
|
32364
|
-
var
|
|
32867
|
+
var _selector = selector || function (s) {
|
|
32365
32868
|
return s;
|
|
32366
32869
|
};
|
|
32367
|
-
var
|
|
32368
|
-
|
|
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;
|
|
32369
32875
|
}
|
|
32370
|
-
// src/react/
|
|
32371
|
-
function
|
|
32372
|
-
var
|
|
32373
|
-
|
|
32374
|
-
|
|
32375
|
-
|
|
32376
|
-
|
|
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;
|
|
32377
32887
|
}
|
|
32378
|
-
return useSnapshot(store.mutate,
|
|
32888
|
+
return useSnapshot(store.mutate, selector, options);
|
|
32379
32889
|
};
|
|
32380
|
-
|
|
32381
|
-
useSnapshot:
|
|
32890
|
+
return chunk_UGXUT7UC_object_spread_props(chunk_UGXUT7UC_object_spread({}, store), {
|
|
32891
|
+
useSnapshot: boundUseSnapshot
|
|
32382
32892
|
});
|
|
32383
|
-
|
|
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)));
|
|
32384
32923
|
}
|
|
32385
32924
|
|
|
32386
32925
|
;// CONCATENATED MODULE: ../base/src/config/index.ts
|
|
@@ -32390,7 +32929,6 @@ var _process;
|
|
|
32390
32929
|
|
|
32391
32930
|
|
|
32392
32931
|
|
|
32393
|
-
|
|
32394
32932
|
/**
|
|
32395
32933
|
* @en Global configuration for Empty component
|
|
32396
32934
|
* @cn Empty组件的全局配置
|
|
@@ -32398,7 +32936,7 @@ var _process;
|
|
|
32398
32936
|
*/
|
|
32399
32937
|
|
|
32400
32938
|
var processEnv = typeof process !== 'undefined' ? (_process = process) === null || process === void 0 ? void 0 : ({"NODE_ENV":"production","PUBLIC_PATH":"/"}) : {};
|
|
32401
|
-
var
|
|
32939
|
+
var defaultConfig = {
|
|
32402
32940
|
prefix: 'soui',
|
|
32403
32941
|
locale: processEnv.LOCALE || 'en-US',
|
|
32404
32942
|
delay: 400,
|
|
@@ -32409,9 +32947,10 @@ var src_config_config = {
|
|
|
32409
32947
|
direction: 'ltr',
|
|
32410
32948
|
popupContainer: null
|
|
32411
32949
|
};
|
|
32412
|
-
var state = createWithHooks(
|
|
32950
|
+
var state = createWithHooks(defaultConfig);
|
|
32951
|
+
var src_config_config = snapshot(state.mutate);
|
|
32413
32952
|
state.subscribe(function () {
|
|
32414
|
-
src_config_config =
|
|
32953
|
+
src_config_config = snapshot(state.mutate);
|
|
32415
32954
|
});
|
|
32416
32955
|
function getDefaultContainer() {
|
|
32417
32956
|
if (isFunc(src_config_config.popupContainer)) {
|
|
@@ -33139,6 +33678,30 @@ var getDuration = function getDuration(duration) {
|
|
|
33139
33678
|
}
|
|
33140
33679
|
};
|
|
33141
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
|
+
*/
|
|
33142
33705
|
var AnimationList = function AnimationList(props) {
|
|
33143
33706
|
var _props$display = props.display,
|
|
33144
33707
|
display = _props$display === void 0 ? 'block' : _props$display,
|
|
@@ -33217,6 +33780,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33217
33780
|
width: 0
|
|
33218
33781
|
};
|
|
33219
33782
|
};
|
|
33783
|
+
|
|
33784
|
+
/**
|
|
33785
|
+
* 展开动画阶段1: 设置初始状态
|
|
33786
|
+
* 设置 display 显示元素,并将动画属性设为起始值(如 height: 0)
|
|
33787
|
+
*/
|
|
33220
33788
|
var beforeEnter = function beforeEnter() {
|
|
33221
33789
|
var newStyle = {
|
|
33222
33790
|
display: display
|
|
@@ -33243,6 +33811,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33243
33811
|
return objectSpread2_default()(objectSpread2_default()({}, s), newStyle);
|
|
33244
33812
|
});
|
|
33245
33813
|
};
|
|
33814
|
+
|
|
33815
|
+
/**
|
|
33816
|
+
* 展开动画阶段2: 执行过渡动画
|
|
33817
|
+
* 添加 transition 并将动画属性过渡到目标值
|
|
33818
|
+
*/
|
|
33246
33819
|
var enter = function enter() {
|
|
33247
33820
|
var newStyle = {
|
|
33248
33821
|
transition: transition
|
|
@@ -33262,8 +33835,15 @@ var AnimationList = function AnimationList(props) {
|
|
|
33262
33835
|
});
|
|
33263
33836
|
setStatus('enter');
|
|
33264
33837
|
};
|
|
33838
|
+
|
|
33839
|
+
/**
|
|
33840
|
+
* 展开动画阶段3: 清理动画状态
|
|
33841
|
+
* 移除固定尺寸,恢复自动布局,恢复交互能力
|
|
33842
|
+
*/
|
|
33265
33843
|
var afterEnter = function afterEnter() {
|
|
33266
|
-
var newStyle = {
|
|
33844
|
+
var newStyle = {
|
|
33845
|
+
pointerEvents: 'initial'
|
|
33846
|
+
};
|
|
33267
33847
|
if (type.indexOf('collapse') >= 0) {
|
|
33268
33848
|
newStyle.height = 'auto';
|
|
33269
33849
|
newStyle.overflow = '';
|
|
@@ -33274,9 +33854,16 @@ var AnimationList = function AnimationList(props) {
|
|
|
33274
33854
|
setStatus('afterEnter');
|
|
33275
33855
|
onAnimationAfterEnter === null || onAnimationAfterEnter === void 0 || onAnimationAfterEnter();
|
|
33276
33856
|
};
|
|
33857
|
+
|
|
33858
|
+
/**
|
|
33859
|
+
* 收起动画阶段1: 固定当前状态
|
|
33860
|
+
* 禁用交互,固定当前高度,准备执行收起动画
|
|
33861
|
+
*/
|
|
33277
33862
|
var beforeLeave = function beforeLeave() {
|
|
33278
33863
|
var el = ref.current;
|
|
33279
|
-
var newStyle = {
|
|
33864
|
+
var newStyle = {
|
|
33865
|
+
pointerEvents: 'none'
|
|
33866
|
+
};
|
|
33280
33867
|
if (type.indexOf('collapse') >= 0) {
|
|
33281
33868
|
context.height = el.offsetHeight;
|
|
33282
33869
|
newStyle.height = "".concat(context.height, "px");
|
|
@@ -33294,6 +33881,11 @@ var AnimationList = function AnimationList(props) {
|
|
|
33294
33881
|
});
|
|
33295
33882
|
setStatus('beforeLeave');
|
|
33296
33883
|
};
|
|
33884
|
+
|
|
33885
|
+
/**
|
|
33886
|
+
* 收起动画阶段2: 执行过渡动画
|
|
33887
|
+
* 添加 transition 并将动画属性过渡到收起状态(如 height: 0)
|
|
33888
|
+
*/
|
|
33297
33889
|
var leave = function leave() {
|
|
33298
33890
|
var newStyle = {
|
|
33299
33891
|
transition: transition
|
|
@@ -33313,8 +33905,15 @@ var AnimationList = function AnimationList(props) {
|
|
|
33313
33905
|
});
|
|
33314
33906
|
setStatus('leave');
|
|
33315
33907
|
};
|
|
33908
|
+
|
|
33909
|
+
/**
|
|
33910
|
+
* 收起动画阶段3: 清理并隐藏
|
|
33911
|
+
* 恢复交互能力,清理动画状态,设置 display: none 完全隐藏元素
|
|
33912
|
+
*/
|
|
33316
33913
|
var afterLeave = function afterLeave() {
|
|
33317
|
-
var newStyle = {
|
|
33914
|
+
var newStyle = {
|
|
33915
|
+
pointerEvents: 'initial'
|
|
33916
|
+
};
|
|
33318
33917
|
if (type.indexOf('collapse') >= 0) {
|
|
33319
33918
|
newStyle.height = 'auto';
|
|
33320
33919
|
newStyle.overflow = '';
|
|
@@ -33711,7 +34310,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
33711
34310
|
}
|
|
33712
34311
|
}
|
|
33713
34312
|
if (renderItem) {
|
|
33714
|
-
|
|
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
|
+
}
|
|
33715
34322
|
}
|
|
33716
34323
|
if (isOverflow && d.title && max !== undefined) {
|
|
33717
34324
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, {
|
|
@@ -33789,17 +34396,18 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
33789
34396
|
};
|
|
33790
34397
|
return [first, more].concat(toConsumableArray_default()(reset));
|
|
33791
34398
|
};
|
|
34399
|
+
var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
|
|
33792
34400
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
33793
34401
|
className: className,
|
|
33794
34402
|
style: props.style,
|
|
33795
34403
|
children: data && getRenderData().map(function (d, index) {
|
|
33796
34404
|
var itemFirst = Array.isArray(d) ? d[0] : d;
|
|
33797
|
-
var isLastItem = index ===
|
|
34405
|
+
var isLastItem = index === lastIndex;
|
|
33798
34406
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
33799
34407
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
33800
34408
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb_item, {
|
|
33801
34409
|
dataItem: d,
|
|
33802
|
-
renderItem: renderItem,
|
|
34410
|
+
renderItem: props.renderItem,
|
|
33803
34411
|
jssStyle: props.jssStyle,
|
|
33804
34412
|
max: maxCount
|
|
33805
34413
|
}), !isLastItem && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -36261,6 +36869,19 @@ var useCheck = function useCheck(props) {
|
|
|
36261
36869
|
};
|
|
36262
36870
|
};
|
|
36263
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
|
+
};
|
|
36264
36885
|
;// CONCATENATED MODULE: ../base/src/form/form-field-context.ts
|
|
36265
36886
|
|
|
36266
36887
|
var FormFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
|
|
@@ -36304,13 +36925,13 @@ var Checkbox = function Checkbox(props) {
|
|
|
36304
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));
|
|
36305
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));
|
|
36306
36927
|
var inputProps = getInputProps();
|
|
36307
|
-
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()({
|
|
36308
36929
|
id: fieldId
|
|
36309
36930
|
}, getRootProps({
|
|
36310
36931
|
className: rootClass,
|
|
36311
36932
|
style: style,
|
|
36312
36933
|
needStopPropagation: props.needStopPropagation
|
|
36313
|
-
})), {}, {
|
|
36934
|
+
})), getDataset(props)), {}, {
|
|
36314
36935
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()(objectSpread2_default()({}, inputProps), {}, {
|
|
36315
36936
|
type: "checkbox"
|
|
36316
36937
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -36380,19 +37001,18 @@ function useInputAble(props) {
|
|
|
36380
37001
|
var render = useRender(syncValue);
|
|
36381
37002
|
var shouldUseState = delay || !control;
|
|
36382
37003
|
var value = shouldUseState ? stateValue : valuePo;
|
|
36383
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
36384
|
-
if (context.timer) {
|
|
36385
|
-
clearTimeout(context.timer);
|
|
36386
|
-
context.timer = null;
|
|
36387
|
-
}
|
|
37004
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
36388
37005
|
if (delay && control && props.value !== stateValue) {
|
|
36389
37006
|
changeStateValue(props.value);
|
|
37007
|
+
} else if (context.timer) {
|
|
37008
|
+
clearTimeout(context.timer);
|
|
37009
|
+
context.timer = null;
|
|
36390
37010
|
}
|
|
36391
37011
|
}, [props.value, delay, control]);
|
|
36392
37012
|
var forceDelayChange = use_persist_fn(function () {
|
|
36393
|
-
if (context.
|
|
37013
|
+
if (context.delayChange) context.delayChange();
|
|
37014
|
+
if (context.timer) {
|
|
36394
37015
|
clearTimeout(context.timer);
|
|
36395
|
-
context.delayChange();
|
|
36396
37016
|
context.timer = null;
|
|
36397
37017
|
context.delayChange = null;
|
|
36398
37018
|
}
|
|
@@ -36728,9 +37348,10 @@ var Input = function Input(props) {
|
|
|
36728
37348
|
className: classnames_default()(inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.input),
|
|
36729
37349
|
onKeyUp: onKeyUp
|
|
36730
37350
|
});
|
|
36731
|
-
var
|
|
37351
|
+
var datasetProps = getDataset(props);
|
|
37352
|
+
var inputElProps = removeProps(inputProps, objectSpread2_default()({
|
|
36732
37353
|
formName: undefined
|
|
36733
|
-
});
|
|
37354
|
+
}, datasetProps));
|
|
36734
37355
|
var inputEl = /*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()({
|
|
36735
37356
|
type: "text"
|
|
36736
37357
|
}, inputElProps));
|
|
@@ -36738,9 +37359,9 @@ var Input = function Input(props) {
|
|
|
36738
37359
|
inputEl = renderInput(inputEl);
|
|
36739
37360
|
}
|
|
36740
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));
|
|
36741
|
-
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()({
|
|
36742
37363
|
id: fieldId
|
|
36743
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
37364
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), datasetProps), getRootProps({
|
|
36744
37365
|
className: rootClass,
|
|
36745
37366
|
style: style
|
|
36746
37367
|
})), {}, {
|
|
@@ -37748,9 +38369,21 @@ CardGroupComp.Item = card_group_Item;
|
|
|
37748
38369
|
var useCarousel = function useCarousel(props) {
|
|
37749
38370
|
var total = props.total,
|
|
37750
38371
|
_props$interval = props.interval,
|
|
37751
|
-
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);
|
|
37752
38385
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
|
|
37753
|
-
current:
|
|
38386
|
+
current: initialValue,
|
|
37754
38387
|
pre: -1,
|
|
37755
38388
|
direction: 'stop'
|
|
37756
38389
|
}),
|
|
@@ -37763,14 +38396,32 @@ var useCarousel = function useCarousel(props) {
|
|
|
37763
38396
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
37764
38397
|
timer: null,
|
|
37765
38398
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37766
|
-
setNext: function setNext(next) {}
|
|
38399
|
+
setNext: function setNext(next) {},
|
|
38400
|
+
prevValue: initialValue // 用于追踪上一次的值
|
|
37767
38401
|
}),
|
|
37768
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
|
+
}
|
|
37769
38419
|
var autoPlay = interval > 0 && total > 1;
|
|
37770
38420
|
var moveTo = usePersistFn(function (i) {
|
|
37771
38421
|
var next = i;
|
|
37772
|
-
|
|
37773
|
-
|
|
38422
|
+
var prevCurrent = actualCurrent;
|
|
38423
|
+
if (next === prevCurrent) return;
|
|
38424
|
+
var dir = next > prevCurrent ? 'forward' : 'backward';
|
|
37774
38425
|
if (next >= total) {
|
|
37775
38426
|
dir = 'forward';
|
|
37776
38427
|
next = 0;
|
|
@@ -37778,14 +38429,26 @@ var useCarousel = function useCarousel(props) {
|
|
|
37778
38429
|
dir = 'backward';
|
|
37779
38430
|
next = total - 1;
|
|
37780
38431
|
}
|
|
37781
|
-
|
|
37782
|
-
|
|
37783
|
-
|
|
37784
|
-
|
|
37785
|
-
|
|
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 回调(向后兼容)
|
|
37786
38449
|
if (props.onMove) {
|
|
37787
38450
|
props.onMove(next, {
|
|
37788
|
-
prev:
|
|
38451
|
+
prev: prevCurrent,
|
|
37789
38452
|
direction: dir,
|
|
37790
38453
|
moveTo: moveTo
|
|
37791
38454
|
});
|
|
@@ -37807,13 +38470,13 @@ var useCarousel = function useCarousel(props) {
|
|
|
37807
38470
|
});
|
|
37808
38471
|
context.setNext = setNext;
|
|
37809
38472
|
var start = usePersistFn(function () {
|
|
37810
|
-
setNext(
|
|
38473
|
+
setNext(actualCurrent + 1);
|
|
37811
38474
|
});
|
|
37812
38475
|
var forward = usePersistFn(function () {
|
|
37813
|
-
moveTo(
|
|
38476
|
+
moveTo(actualCurrent + 1);
|
|
37814
38477
|
});
|
|
37815
38478
|
var backward = usePersistFn(function () {
|
|
37816
|
-
moveTo(
|
|
38479
|
+
moveTo(actualCurrent - 1);
|
|
37817
38480
|
});
|
|
37818
38481
|
var func = use_latest_obj({
|
|
37819
38482
|
start: start,
|
|
@@ -37827,10 +38490,18 @@ var useCarousel = function useCarousel(props) {
|
|
|
37827
38490
|
start();
|
|
37828
38491
|
}
|
|
37829
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]);
|
|
37830
38501
|
return {
|
|
37831
|
-
current:
|
|
37832
|
-
pre:
|
|
37833
|
-
direction:
|
|
38502
|
+
current: actualCurrent,
|
|
38503
|
+
pre: actualPre,
|
|
38504
|
+
direction: actualDirection,
|
|
37834
38505
|
func: func
|
|
37835
38506
|
};
|
|
37836
38507
|
};
|
|
@@ -37862,6 +38533,9 @@ var Carousel = function Carousel(props) {
|
|
|
37862
38533
|
var _useCarousel = use_carousel({
|
|
37863
38534
|
total: total,
|
|
37864
38535
|
interval: props.interval,
|
|
38536
|
+
defaultValue: props.defaultValue,
|
|
38537
|
+
value: props.value,
|
|
38538
|
+
onChange: props.onChange,
|
|
37865
38539
|
onMove: props.onMove
|
|
37866
38540
|
}),
|
|
37867
38541
|
current = _useCarousel.current,
|
|
@@ -37962,15 +38636,16 @@ var Carousel = function Carousel(props) {
|
|
|
37962
38636
|
children: content
|
|
37963
38637
|
});
|
|
37964
38638
|
};
|
|
37965
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
38639
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
37966
38640
|
className: wrapperClasses,
|
|
37967
38641
|
style: objectSpread2_default()(objectSpread2_default()({}, props.style), {}, {
|
|
37968
38642
|
height: 'auto'
|
|
37969
38643
|
}),
|
|
37970
38644
|
onMouseEnter: func.stop,
|
|
37971
|
-
onMouseLeave: func.start
|
|
38645
|
+
onMouseLeave: func.start
|
|
38646
|
+
}, getDataset(props)), {}, {
|
|
37972
38647
|
children: [renderItems(), renderIndicator(), renderArrow()]
|
|
37973
|
-
});
|
|
38648
|
+
}));
|
|
37974
38649
|
};
|
|
37975
38650
|
/* harmony default export */ var src_carousel_carousel = (Carousel);
|
|
37976
38651
|
;// CONCATENATED MODULE: ./src/carousel/carousel.tsx
|
|
@@ -40492,7 +41167,9 @@ var Scroll = function Scroll(props) {
|
|
|
40492
41167
|
_props$scrollWidth = props.scrollWidth,
|
|
40493
41168
|
scrollWidth = _props$scrollWidth === void 0 ? 0 : _props$scrollWidth,
|
|
40494
41169
|
_props$defaultHeight = props.defaultHeight,
|
|
40495
|
-
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;
|
|
40496
41173
|
var _useResize = useResize({
|
|
40497
41174
|
targetRef: containerRef,
|
|
40498
41175
|
timer: 100
|
|
@@ -40517,7 +41194,9 @@ var Scroll = function Scroll(props) {
|
|
|
40517
41194
|
|
|
40518
41195
|
// 当滚动容器的高度为 0 时,paddingTop 为 0,避免滚动条抖动现象
|
|
40519
41196
|
var paddingTop = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
40520
|
-
|
|
41197
|
+
var maxHeight = Math.max(0, scrollHeight - height);
|
|
41198
|
+
if (keepScrollTop) return maxHeight;
|
|
41199
|
+
return height === 0 ? 0 : maxHeight;
|
|
40521
41200
|
}, [scrollHeight, height]);
|
|
40522
41201
|
var placeStyle = {
|
|
40523
41202
|
paddingTop: paddingTop,
|
|
@@ -40806,6 +41485,7 @@ var VirtualList = function VirtualList(props) {
|
|
|
40806
41485
|
wrapperRef: wrapperRef,
|
|
40807
41486
|
onScroll: handleScroll,
|
|
40808
41487
|
onMouseMove: handleMouseMove,
|
|
41488
|
+
keepScrollTop: keepScrollTop,
|
|
40809
41489
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)(Tag, {
|
|
40810
41490
|
className: tagClassName,
|
|
40811
41491
|
style: innerStyle,
|
|
@@ -41026,6 +41706,8 @@ var CascaderNode = function CascaderNode(props) {
|
|
|
41026
41706
|
handleSelect(e);
|
|
41027
41707
|
};
|
|
41028
41708
|
hasHandleSelectRef.current = true;
|
|
41709
|
+
} else {
|
|
41710
|
+
hasHandleSelectRef.current = false;
|
|
41029
41711
|
}
|
|
41030
41712
|
return events;
|
|
41031
41713
|
};
|
|
@@ -41976,7 +42658,7 @@ var Tag = function Tag(props) {
|
|
|
41976
42658
|
if (showInput) {
|
|
41977
42659
|
return renderInput();
|
|
41978
42660
|
}
|
|
41979
|
-
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)), {}, {
|
|
41980
42662
|
children: [renderChildren(), renderClose()]
|
|
41981
42663
|
}));
|
|
41982
42664
|
};
|
|
@@ -42314,7 +42996,7 @@ var result_Result = function Result(props) {
|
|
|
42314
42996
|
handleResultItemClick(e, item);
|
|
42315
42997
|
};
|
|
42316
42998
|
var content = renderResultContent(item, index, nodes);
|
|
42317
|
-
if (!content) return null;
|
|
42999
|
+
if (!content && content !== 0) return null;
|
|
42318
43000
|
if (renderResultContentProp) {
|
|
42319
43001
|
// cascader 不渲染tag
|
|
42320
43002
|
return renderResultContentProp(objectSpread2_default()({
|
|
@@ -42341,6 +43023,7 @@ var result_Result = function Result(props) {
|
|
|
42341
43023
|
}, getDataAttribute({
|
|
42342
43024
|
type: disabled === true ? 'dark' : undefined
|
|
42343
43025
|
})), {}, {
|
|
43026
|
+
title: typeof content === 'string' ? content : undefined,
|
|
42344
43027
|
children: content
|
|
42345
43028
|
}), index);
|
|
42346
43029
|
};
|
|
@@ -42365,6 +43048,7 @@ var result_Result = function Result(props) {
|
|
|
42365
43048
|
var content = renderResultContent(result[0]);
|
|
42366
43049
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
42367
43050
|
className: styles.ellipsis,
|
|
43051
|
+
title: typeof content === 'string' ? content : undefined,
|
|
42368
43052
|
children: content
|
|
42369
43053
|
}, 'single');
|
|
42370
43054
|
};
|
|
@@ -42489,7 +43173,13 @@ var result_Result = function Result(props) {
|
|
|
42489
43173
|
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
42490
43174
|
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
42491
43175
|
if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) {
|
|
42492
|
-
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
|
+
}
|
|
42493
43183
|
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
42494
43184
|
if (Array.isArray(children)) {
|
|
42495
43185
|
return children.map(function (child) {
|
|
@@ -43245,10 +43935,10 @@ var Cascader = function Cascader(props0) {
|
|
|
43245
43935
|
filterText: filterText,
|
|
43246
43936
|
highlight: props.highlight
|
|
43247
43937
|
},
|
|
43248
|
-
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()({
|
|
43249
43939
|
id: fieldId,
|
|
43250
43940
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
43251
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
43941
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
43252
43942
|
className: rootClass,
|
|
43253
43943
|
style: rootStyle,
|
|
43254
43944
|
onBlur: handleBlur,
|
|
@@ -43599,7 +44289,7 @@ function getRule(rule, props) {
|
|
|
43599
44289
|
return;
|
|
43600
44290
|
}
|
|
43601
44291
|
if (reg.global) reg.lastIndex = 0;
|
|
43602
|
-
if (
|
|
44292
|
+
if (reg.test(value)) {
|
|
43603
44293
|
callback(true);
|
|
43604
44294
|
} else {
|
|
43605
44295
|
callback(new FormError(po.message, po));
|
|
@@ -46514,17 +47204,17 @@ var useDate = function useDate(props) {
|
|
|
46514
47204
|
}),
|
|
46515
47205
|
context = _useRef.current;
|
|
46516
47206
|
var current = props.current === undefined || !props.current ? currentState : props.current;
|
|
46517
|
-
var setCurrent = function setCurrent(date) {
|
|
47207
|
+
var setCurrent = function setCurrent(date, type) {
|
|
46518
47208
|
var _props$onCurrentChang2;
|
|
46519
47209
|
if (props.current !== undefined) {
|
|
46520
47210
|
var _props$onCurrentChang;
|
|
46521
|
-
(_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);
|
|
46522
47212
|
} else {
|
|
46523
47213
|
if (date) {
|
|
46524
47214
|
setCurrentState(date);
|
|
46525
47215
|
}
|
|
46526
47216
|
}
|
|
46527
|
-
(_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);
|
|
46528
47218
|
};
|
|
46529
47219
|
var isToday = function isToday(date) {
|
|
46530
47220
|
var today = util.newDate(undefined, options);
|
|
@@ -46546,19 +47236,19 @@ var useDate = function useDate(props) {
|
|
|
46546
47236
|
}, [options.weekStartsOn]);
|
|
46547
47237
|
var handleNextYear = use_persist_fn(function () {
|
|
46548
47238
|
var date = util.addYears(current, 1, options);
|
|
46549
|
-
setCurrent(date);
|
|
47239
|
+
setCurrent(date, 'year');
|
|
46550
47240
|
});
|
|
46551
47241
|
var handlePrevYear = use_persist_fn(function () {
|
|
46552
47242
|
var date = util.addYears(current, -1, options);
|
|
46553
|
-
setCurrent(date);
|
|
47243
|
+
setCurrent(date, 'year');
|
|
46554
47244
|
});
|
|
46555
47245
|
var handleNextMonth = use_persist_fn(function () {
|
|
46556
47246
|
var date = util.addMonths(current, 1, options);
|
|
46557
|
-
setCurrent(date);
|
|
47247
|
+
setCurrent(date, 'month');
|
|
46558
47248
|
});
|
|
46559
47249
|
var handlePrevMonth = use_persist_fn(function () {
|
|
46560
47250
|
var date = util.addMonths(current, -1, options);
|
|
46561
|
-
setCurrent(date);
|
|
47251
|
+
setCurrent(date, 'month');
|
|
46562
47252
|
});
|
|
46563
47253
|
var isCurrentMonth = function isCurrentMonth(date) {
|
|
46564
47254
|
return util.isSameMonth(date, current, options);
|
|
@@ -47165,8 +47855,8 @@ var Day = function Day(props) {
|
|
|
47165
47855
|
props.onChange(date, noClose || props.type === 'datetime');
|
|
47166
47856
|
props.setTarget(undefined);
|
|
47167
47857
|
});
|
|
47168
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47169
|
-
props.setCurrent(date, areaType);
|
|
47858
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
47859
|
+
props.setCurrent(date, type || areaType);
|
|
47170
47860
|
});
|
|
47171
47861
|
var _useDatePick = use_date({
|
|
47172
47862
|
current: props.current,
|
|
@@ -47198,7 +47888,7 @@ var Day = function Day(props) {
|
|
|
47198
47888
|
props.setCurrent(new Date(), areaType);
|
|
47199
47889
|
props.onChange(new Date(), props.needConfirm || props.type === 'datetime');
|
|
47200
47890
|
setTimeout(function () {
|
|
47201
|
-
if (props.closeByConfirm && !props.range) props.closeByConfirm();
|
|
47891
|
+
if (props.needConfirm && props.closeByConfirm && !props.range) props.closeByConfirm();
|
|
47202
47892
|
}, 0);
|
|
47203
47893
|
};
|
|
47204
47894
|
var renderDay = function renderDay(item, index) {
|
|
@@ -47228,7 +47918,16 @@ var Day = function Day(props) {
|
|
|
47228
47918
|
onMouseLeave: isDisabled ? undefined : function () {
|
|
47229
47919
|
props.setTarget(undefined);
|
|
47230
47920
|
},
|
|
47231
|
-
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", {
|
|
47232
47931
|
className: styles === null || styles === void 0 ? void 0 : styles.pickerCellContent,
|
|
47233
47932
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
47234
47933
|
children: func.getDayStr(item)
|
|
@@ -47429,15 +48128,15 @@ var useMonth = function useMonth(props) {
|
|
|
47429
48128
|
context = _useRef.current;
|
|
47430
48129
|
var current = props.current === undefined ? currentState : props.current;
|
|
47431
48130
|
var startYear = util.getDateInfo(current, 'year', options);
|
|
47432
|
-
var setCurrent = function setCurrent(date) {
|
|
48131
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47433
48132
|
var _props$onCurrentChang2;
|
|
47434
48133
|
if (props.current !== undefined) {
|
|
47435
48134
|
var _props$onCurrentChang;
|
|
47436
|
-
(_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);
|
|
47437
48136
|
} else {
|
|
47438
48137
|
setCurrentState(date);
|
|
47439
48138
|
}
|
|
47440
|
-
(_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);
|
|
47441
48140
|
};
|
|
47442
48141
|
var isNow = function isNow(date) {
|
|
47443
48142
|
var today = util.newDate(undefined, options);
|
|
@@ -47459,11 +48158,11 @@ var useMonth = function useMonth(props) {
|
|
|
47459
48158
|
};
|
|
47460
48159
|
var handleNext = use_persist_fn(function () {
|
|
47461
48160
|
var date = util.addYears(current, 1, options);
|
|
47462
|
-
setCurrent(date);
|
|
48161
|
+
setCurrent(date, 'year');
|
|
47463
48162
|
});
|
|
47464
48163
|
var handlePrev = use_persist_fn(function () {
|
|
47465
48164
|
var date = util.addYears(current, -1, options);
|
|
47466
|
-
setCurrent(date);
|
|
48165
|
+
setCurrent(date, 'year');
|
|
47467
48166
|
});
|
|
47468
48167
|
var isDisabled = function isDisabled(date) {
|
|
47469
48168
|
var min = props.min,
|
|
@@ -47540,8 +48239,8 @@ var Month = function Month(props) {
|
|
|
47540
48239
|
var changeMode = usePersistFn(function () {
|
|
47541
48240
|
props.setMode('day');
|
|
47542
48241
|
});
|
|
47543
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47544
|
-
props.setCurrent(date, 'month');
|
|
48242
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48243
|
+
props.setCurrent(date, type || 'month');
|
|
47545
48244
|
});
|
|
47546
48245
|
var _useMonthPick = use_month({
|
|
47547
48246
|
current: props.current,
|
|
@@ -47662,15 +48361,15 @@ var useYear = function useYear(props) {
|
|
|
47662
48361
|
context = _useRef.current;
|
|
47663
48362
|
var current = props.current === undefined ? currentState : props.current;
|
|
47664
48363
|
var startYear = util.getStartYear(current, options);
|
|
47665
|
-
var setCurrent = function setCurrent(date) {
|
|
48364
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47666
48365
|
var _props$onCurrentChang2;
|
|
47667
48366
|
if (props.current !== undefined) {
|
|
47668
48367
|
var _props$onCurrentChang;
|
|
47669
|
-
(_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);
|
|
47670
48369
|
} else {
|
|
47671
48370
|
setCurrentState(date);
|
|
47672
48371
|
}
|
|
47673
|
-
(_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);
|
|
47674
48373
|
};
|
|
47675
48374
|
var isNow = function isNow(date) {
|
|
47676
48375
|
var today = util.newDate(undefined, options);
|
|
@@ -47692,11 +48391,11 @@ var useYear = function useYear(props) {
|
|
|
47692
48391
|
};
|
|
47693
48392
|
var handleNext = use_persist_fn(function () {
|
|
47694
48393
|
var date = util.addYears(current, 10, options);
|
|
47695
|
-
setCurrent(date);
|
|
48394
|
+
setCurrent(date, 'year');
|
|
47696
48395
|
});
|
|
47697
48396
|
var handlePrev = use_persist_fn(function () {
|
|
47698
48397
|
var date = util.addYears(current, -10, options);
|
|
47699
|
-
setCurrent(date);
|
|
48398
|
+
setCurrent(date, 'year');
|
|
47700
48399
|
});
|
|
47701
48400
|
var isDisabled = function isDisabled(date) {
|
|
47702
48401
|
var min = props.min,
|
|
@@ -47775,8 +48474,8 @@ var Year = function Year(props) {
|
|
|
47775
48474
|
var changeMode = usePersistFn(function () {
|
|
47776
48475
|
props.setMode('month');
|
|
47777
48476
|
});
|
|
47778
|
-
var setCurrent = usePersistFn(function (date) {
|
|
47779
|
-
props.setCurrent(date, 'year');
|
|
48477
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48478
|
+
props.setCurrent(date, type || 'year');
|
|
47780
48479
|
});
|
|
47781
48480
|
var _useYearPick = use_year({
|
|
47782
48481
|
current: props.current,
|
|
@@ -47900,15 +48599,15 @@ var useQuarter = function useQuarter(props) {
|
|
|
47900
48599
|
context = _useRef.current;
|
|
47901
48600
|
var current = props.current === undefined ? currentState : props.current;
|
|
47902
48601
|
var startYear = util.getDateInfo(current, 'year', options);
|
|
47903
|
-
var setCurrent = function setCurrent(date) {
|
|
48602
|
+
var setCurrent = function setCurrent(date, type) {
|
|
47904
48603
|
var _props$onCurrentChang2;
|
|
47905
48604
|
if (props.current !== undefined) {
|
|
47906
48605
|
var _props$onCurrentChang;
|
|
47907
|
-
(_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);
|
|
47908
48607
|
} else {
|
|
47909
48608
|
setCurrentState(date);
|
|
47910
48609
|
}
|
|
47911
|
-
(_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);
|
|
47912
48611
|
};
|
|
47913
48612
|
var isNow = function isNow(date) {
|
|
47914
48613
|
var today = util.newDate(undefined, options);
|
|
@@ -47929,11 +48628,11 @@ var useQuarter = function useQuarter(props) {
|
|
|
47929
48628
|
};
|
|
47930
48629
|
var handleNext = use_persist_fn(function () {
|
|
47931
48630
|
var date = util.addYears(current, 1, options);
|
|
47932
|
-
setCurrent(date);
|
|
48631
|
+
setCurrent(date, 'year');
|
|
47933
48632
|
});
|
|
47934
48633
|
var handlePrev = use_persist_fn(function () {
|
|
47935
48634
|
var date = util.addYears(current, -1, options);
|
|
47936
|
-
setCurrent(date);
|
|
48635
|
+
setCurrent(date, 'year');
|
|
47937
48636
|
});
|
|
47938
48637
|
var isDisabled = function isDisabled(date) {
|
|
47939
48638
|
var min = props.min,
|
|
@@ -48005,8 +48704,8 @@ var Quarter = function Quarter(props) {
|
|
|
48005
48704
|
var jssStyle = props.jssStyle;
|
|
48006
48705
|
var config = useConfig();
|
|
48007
48706
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$datePicker = jssStyle.datePicker) === null || _jssStyle$datePicker === void 0 ? void 0 : _jssStyle$datePicker.call(jssStyle);
|
|
48008
|
-
var setCurrent = usePersistFn(function (date) {
|
|
48009
|
-
props.setCurrent(date, 'quarter');
|
|
48707
|
+
var setCurrent = usePersistFn(function (date, type) {
|
|
48708
|
+
props.setCurrent(date, type || 'quarter');
|
|
48010
48709
|
});
|
|
48011
48710
|
var _useQuarterPick = use_quarter({
|
|
48012
48711
|
current: props.current,
|
|
@@ -48222,11 +48921,8 @@ var useRangePick = function useRangePick(props) {
|
|
|
48222
48921
|
return newArr;
|
|
48223
48922
|
});
|
|
48224
48923
|
};
|
|
48225
|
-
var setCurrent = usePersistFn(function (index, date) {
|
|
48226
|
-
|
|
48227
|
-
args[_key - 2] = arguments[_key];
|
|
48228
|
-
}
|
|
48229
|
-
props.setCurrentArr.apply(props, [function (arr) {
|
|
48924
|
+
var setCurrent = usePersistFn(function (index, date, type) {
|
|
48925
|
+
props.setCurrentArr(function (arr) {
|
|
48230
48926
|
var newArr = toConsumableArray_default()(arr);
|
|
48231
48927
|
newArr[index] = date;
|
|
48232
48928
|
var modeCache = context.modeCache;
|
|
@@ -48252,19 +48948,13 @@ var useRangePick = function useRangePick(props) {
|
|
|
48252
48948
|
}
|
|
48253
48949
|
}
|
|
48254
48950
|
return newArr;
|
|
48255
|
-
}
|
|
48951
|
+
}, type, undefined);
|
|
48256
48952
|
});
|
|
48257
|
-
var setCurrentStart = usePersistFn(function (date) {
|
|
48258
|
-
|
|
48259
|
-
args[_key2 - 1] = arguments[_key2];
|
|
48260
|
-
}
|
|
48261
|
-
setCurrent.apply(void 0, [0, date].concat(args));
|
|
48953
|
+
var setCurrentStart = usePersistFn(function (date, type) {
|
|
48954
|
+
setCurrent(0, date, type);
|
|
48262
48955
|
});
|
|
48263
|
-
var setCurrentEnd = usePersistFn(function (date) {
|
|
48264
|
-
|
|
48265
|
-
args[_key3 - 1] = arguments[_key3];
|
|
48266
|
-
}
|
|
48267
|
-
setCurrent.apply(void 0, [1, date].concat(args));
|
|
48956
|
+
var setCurrentEnd = usePersistFn(function (date, type) {
|
|
48957
|
+
setCurrent(1, date, type);
|
|
48268
48958
|
});
|
|
48269
48959
|
var setDateStart = usePersistFn(function (date, noClose) {
|
|
48270
48960
|
setDate(0, date, noClose);
|
|
@@ -48515,6 +49205,7 @@ var Picker = function Picker(props) {
|
|
|
48515
49205
|
}
|
|
48516
49206
|
if (mode === 'day') {
|
|
48517
49207
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(day, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, commonProps), timeProps), {}, {
|
|
49208
|
+
renderDate: props.renderDate,
|
|
48518
49209
|
onDoubleClick: function onDoubleClick(item, type) {
|
|
48519
49210
|
// 双击同时设置开始和结束日期
|
|
48520
49211
|
if (props.range && props.type === 'datetime') {
|
|
@@ -48846,7 +49537,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
48846
49537
|
date_picker_devUseWarning.conflict('DatePicker', 'formatResult', 'inputable');
|
|
48847
49538
|
}
|
|
48848
49539
|
}, []);
|
|
48849
|
-
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)), {}, {
|
|
48850
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)),
|
|
48851
49542
|
ref: targetRef,
|
|
48852
49543
|
style: objectSpread2_default()({
|
|
@@ -48903,6 +49594,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
48903
49594
|
registerModeDisabled: func.registerModeDisabled,
|
|
48904
49595
|
isDisabledDate: func.isDisabledDate,
|
|
48905
49596
|
needConfirm: props.needConfirm,
|
|
49597
|
+
renderDate: props.renderDate,
|
|
48906
49598
|
children: props.children
|
|
48907
49599
|
})
|
|
48908
49600
|
})
|
|
@@ -49112,7 +49804,7 @@ var useDescriptions = function useDescriptions(props) {
|
|
|
49112
49804
|
|
|
49113
49805
|
|
|
49114
49806
|
var Descriptions = function Descriptions(props) {
|
|
49115
|
-
var _jssStyleProps$descri
|
|
49807
|
+
var _jssStyleProps$descri;
|
|
49116
49808
|
var className = props.className,
|
|
49117
49809
|
jssStyleProps = props.jssStyle,
|
|
49118
49810
|
style = props.style,
|
|
@@ -49140,6 +49832,11 @@ var Descriptions = function Descriptions(props) {
|
|
|
49140
49832
|
labelStyle: labelStyle
|
|
49141
49833
|
}),
|
|
49142
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]);
|
|
49143
49840
|
var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
|
|
49144
49841
|
var Header = function Header() {
|
|
49145
49842
|
if (!title && !extra) return null;
|
|
@@ -49236,7 +49933,7 @@ var Descriptions = function Descriptions(props) {
|
|
|
49236
49933
|
cellPadding: 0,
|
|
49237
49934
|
cellSpacing: 0,
|
|
49238
49935
|
children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("colgroup", {
|
|
49239
|
-
children:
|
|
49936
|
+
children: longestItem === null || longestItem === void 0 ? void 0 : longestItem.map(function (_, index, arr) {
|
|
49240
49937
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
|
|
49241
49938
|
style: {
|
|
49242
49939
|
width: "".concat(1 / arr.length * 100, "%")
|
|
@@ -49461,20 +50158,10 @@ var addModalInstance = function addModalInstance(instanceId) {
|
|
|
49461
50158
|
modal_content_state.mutate.instanceIds.push(instanceId);
|
|
49462
50159
|
};
|
|
49463
50160
|
var addModalCascadeConfig = function addModalCascadeConfig(props) {
|
|
49464
|
-
var width = props.width;
|
|
49465
|
-
var widthNumber = 0;
|
|
49466
|
-
// width 是30% 这种格式的,转为number
|
|
49467
|
-
if (typeof width === 'string' && width.indexOf('%') > -1) {
|
|
49468
|
-
var parentWidth = document.body.clientWidth;
|
|
49469
|
-
var percent = parseInt(width, 10);
|
|
49470
|
-
widthNumber = parentWidth * percent / 100;
|
|
49471
|
-
} else {
|
|
49472
|
-
widthNumber = typeof width === 'number' ? width : parseInt(width, 10) || 0;
|
|
49473
|
-
}
|
|
49474
50161
|
modal_content_state.mutate.cascadeConfigs.push({
|
|
49475
50162
|
cascade: props.cascade,
|
|
49476
|
-
|
|
49477
|
-
|
|
50163
|
+
cascadeWidth: props.cascadeWidth,
|
|
50164
|
+
instanceId: props.instanceId
|
|
49478
50165
|
});
|
|
49479
50166
|
};
|
|
49480
50167
|
var removeModalInstance = function removeModalInstance(instanceId) {
|
|
@@ -49577,8 +50264,8 @@ var Modal = function Modal(props) {
|
|
|
49577
50264
|
addModalInstance(context.instanceId);
|
|
49578
50265
|
addModalCascadeConfig({
|
|
49579
50266
|
instanceId: context.instanceId,
|
|
49580
|
-
|
|
49581
|
-
|
|
50267
|
+
cascade: !!props.cascade && !!isPositionX,
|
|
50268
|
+
cascadeWidth: typeof_default()(props.cascade) === 'object' ? props.cascade.width || 180 : 180
|
|
49582
50269
|
});
|
|
49583
50270
|
}
|
|
49584
50271
|
if (!visible && index > -1 && !animation) {
|
|
@@ -49754,6 +50441,7 @@ var Modal = function Modal(props) {
|
|
|
49754
50441
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
49755
50442
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
|
|
49756
50443
|
onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
|
|
50444
|
+
style: props.headerStyle,
|
|
49757
50445
|
children: [renderIcon(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49758
50446
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
|
|
49759
50447
|
children: props.title
|
|
@@ -49778,6 +50466,7 @@ var Modal = function Modal(props) {
|
|
|
49778
50466
|
if (!props.footer) return null;
|
|
49779
50467
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49780
50468
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
|
|
50469
|
+
style: props.footerStyle,
|
|
49781
50470
|
children: props.footer
|
|
49782
50471
|
});
|
|
49783
50472
|
};
|
|
@@ -49800,20 +50489,22 @@ var Modal = function Modal(props) {
|
|
|
49800
50489
|
};
|
|
49801
50490
|
if (!context.renderEd && !visible) return null;
|
|
49802
50491
|
context.renderEd = true;
|
|
49803
|
-
var
|
|
50492
|
+
var cascadeStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
49804
50493
|
if (!props.cascade) return;
|
|
49805
50494
|
var idx = config.instanceIds.findIndex(function (id) {
|
|
49806
50495
|
return id === context.instanceId;
|
|
49807
50496
|
});
|
|
49808
|
-
var
|
|
49809
|
-
|
|
49810
|
-
|
|
49811
|
-
|
|
49812
|
-
|
|
49813
|
-
|
|
49814
|
-
|
|
49815
|
-
|
|
49816
|
-
|
|
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
|
+
};
|
|
49817
50508
|
}, [config.cascadeConfigs, config.instanceIds]);
|
|
49818
50509
|
var panelStyle = objectSpread2_default()(objectSpread2_default()({
|
|
49819
50510
|
transformOrigin: origin,
|
|
@@ -49821,7 +50512,7 @@ var Modal = function Modal(props) {
|
|
|
49821
50512
|
}, props.style), {}, {
|
|
49822
50513
|
width: props.fullScreen ? undefined : width,
|
|
49823
50514
|
height: props.fullScreen ? undefined : height
|
|
49824
|
-
},
|
|
50515
|
+
}, cascadeStyle);
|
|
49825
50516
|
if (props.resizable) {
|
|
49826
50517
|
panelStyle.width = resizeInfo.width;
|
|
49827
50518
|
panelStyle.height = resizeInfo.height;
|
|
@@ -50376,13 +51067,13 @@ var Dropdown = function Dropdown(props) {
|
|
|
50376
51067
|
return d.children;
|
|
50377
51068
|
});
|
|
50378
51069
|
var targetProps = getTargetProps();
|
|
50379
|
-
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()({
|
|
50380
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)),
|
|
50381
51072
|
style: style,
|
|
50382
51073
|
"data-position": position,
|
|
50383
51074
|
"data-role": "dropdown",
|
|
50384
51075
|
ref: targetRef
|
|
50385
|
-
}, targetProps), {}, {
|
|
51076
|
+
}, targetProps), getDataset(props)), {}, {
|
|
50386
51077
|
onClick: isSub ? openPop : targetProps.onClick,
|
|
50387
51078
|
children: [renderButton(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
50388
51079
|
position: position,
|
|
@@ -50634,9 +51325,9 @@ var Textarea = function Textarea(props) {
|
|
|
50634
51325
|
children: icons_config.textarea.Close
|
|
50635
51326
|
});
|
|
50636
51327
|
}
|
|
50637
|
-
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()({
|
|
50638
51329
|
id: fieldId
|
|
50639
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
51330
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), getRootProps({
|
|
50640
51331
|
className: rootClass,
|
|
50641
51332
|
style: style
|
|
50642
51333
|
})), {}, {
|
|
@@ -55502,8 +56193,9 @@ var ListOption = function ListOption(props) {
|
|
|
55502
56193
|
onOptionClick(data, index);
|
|
55503
56194
|
};
|
|
55504
56195
|
var setVirtualRowHeight = usePersistFn(function () {
|
|
56196
|
+
var _optionRef$current;
|
|
55505
56197
|
if (!props.setRowHeight || !optionRef.current) return;
|
|
55506
|
-
var optionHeight = optionRef.current
|
|
56198
|
+
var optionHeight = (_optionRef$current = optionRef.current) === null || _optionRef$current === void 0 ? void 0 : _optionRef$current.offsetHeight;
|
|
55507
56199
|
if (optionHeight !== 0) {
|
|
55508
56200
|
props.setRowHeight(index, optionHeight);
|
|
55509
56201
|
}
|
|
@@ -55564,6 +56256,9 @@ var ListOption = function ListOption(props) {
|
|
|
55564
56256
|
|
|
55565
56257
|
|
|
55566
56258
|
|
|
56259
|
+
var list_defaultRenderItem = function defaultRenderItem(d) {
|
|
56260
|
+
return d;
|
|
56261
|
+
};
|
|
55567
56262
|
var list_List = function List(props) {
|
|
55568
56263
|
var _jssStyle$select;
|
|
55569
56264
|
var jssStyle = props.jssStyle,
|
|
@@ -55583,9 +56278,7 @@ var list_List = function List(props) {
|
|
|
55583
56278
|
optionListRef = props.optionListRef,
|
|
55584
56279
|
isAnimationFinish = props.isAnimationFinish,
|
|
55585
56280
|
_props$renderItem = props.renderItem,
|
|
55586
|
-
renderItemProp = _props$renderItem === void 0 ?
|
|
55587
|
-
return d;
|
|
55588
|
-
} : _props$renderItem,
|
|
56281
|
+
renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
|
|
55589
56282
|
closePop = props.closePop,
|
|
55590
56283
|
onControlTypeChange = props.onControlTypeChange,
|
|
55591
56284
|
onOptionClick = props.onOptionClick;
|
|
@@ -57239,6 +57932,8 @@ var Tree = function Tree(props) {
|
|
|
57239
57932
|
|
|
57240
57933
|
|
|
57241
57934
|
|
|
57935
|
+
|
|
57936
|
+
|
|
57242
57937
|
var TreeList = function TreeList(props) {
|
|
57243
57938
|
var _jssStyle$select;
|
|
57244
57939
|
var jssStyle = props.jssStyle,
|
|
@@ -57282,25 +57977,46 @@ var TreeList = function TreeList(props) {
|
|
|
57282
57977
|
var renderItem = function renderItem(item) {
|
|
57283
57978
|
return renderItemProp(item);
|
|
57284
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
|
+
}
|
|
57285
58016
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
57286
58017
|
className: rootClass,
|
|
57287
58018
|
style: style,
|
|
57288
|
-
children:
|
|
57289
|
-
line: false,
|
|
57290
|
-
jssStyle: jssStyle,
|
|
57291
|
-
onClick: handleClick,
|
|
57292
|
-
data: data,
|
|
57293
|
-
expanded: expanded,
|
|
57294
|
-
keygen: keygen,
|
|
57295
|
-
defaultExpanded: defaultExpanded,
|
|
57296
|
-
defaultExpandAll: defaultExpandAll,
|
|
57297
|
-
childrenKey: childrenKey,
|
|
57298
|
-
onExpand: onExpand,
|
|
57299
|
-
nodeClass: classnames_default()(styles.treeOption),
|
|
57300
|
-
contentClass: getContentClass,
|
|
57301
|
-
renderItem: renderItem,
|
|
57302
|
-
expandIcons: props.expandIcons
|
|
57303
|
-
})
|
|
58019
|
+
children: $tree
|
|
57304
58020
|
});
|
|
57305
58021
|
};
|
|
57306
58022
|
/* harmony default export */ var list_tree = (TreeList);
|
|
@@ -57712,9 +58428,7 @@ function Select(props0) {
|
|
|
57712
58428
|
autoAdapt = props.autoAdapt,
|
|
57713
58429
|
groupBy = props.groupBy,
|
|
57714
58430
|
_props$renderItem = props.renderItem,
|
|
57715
|
-
renderItemProp = _props$renderItem === void 0 ?
|
|
57716
|
-
return d;
|
|
57717
|
-
} : _props$renderItem,
|
|
58431
|
+
renderItemProp = _props$renderItem === void 0 ? list_defaultRenderItem : _props$renderItem,
|
|
57718
58432
|
renderResultProp = props.renderResult,
|
|
57719
58433
|
renderUnmatched = props.renderUnmatched,
|
|
57720
58434
|
resultClassName = props.resultClassName,
|
|
@@ -57839,7 +58553,8 @@ function Select(props0) {
|
|
|
57839
58553
|
}
|
|
57840
58554
|
};
|
|
57841
58555
|
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
57842
|
-
|
|
58556
|
+
// why: props.emptyAfterSelect !== false 兼容之前的逻辑
|
|
58557
|
+
if (props.emptyAfterSelect !== false && (props.emptyAfterSelect || createdData)) {
|
|
57843
58558
|
onFilter === null || onFilter === void 0 || onFilter('');
|
|
57844
58559
|
}
|
|
57845
58560
|
var shouldFocus = showInput && props.reFocus;
|
|
@@ -57934,7 +58649,8 @@ function Select(props0) {
|
|
|
57934
58649
|
});
|
|
57935
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));
|
|
57936
58651
|
var getRenderItem = function getRenderItem(data, index) {
|
|
57937
|
-
|
|
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 : '';
|
|
57938
58654
|
};
|
|
57939
58655
|
var renderItem = getRenderItem;
|
|
57940
58656
|
var handleFocus = usePersistFn(function (e) {
|
|
@@ -58263,7 +58979,8 @@ function Select(props0) {
|
|
|
58263
58979
|
childrenKey: childrenKey,
|
|
58264
58980
|
closePop: closePop,
|
|
58265
58981
|
renderItem: renderItem,
|
|
58266
|
-
expandIcons: tiledExpandIcons
|
|
58982
|
+
expandIcons: tiledExpandIcons,
|
|
58983
|
+
virtual: props.virtual
|
|
58267
58984
|
});
|
|
58268
58985
|
};
|
|
58269
58986
|
var renderLoading = function renderLoading() {
|
|
@@ -58331,10 +59048,10 @@ function Select(props0) {
|
|
|
58331
59048
|
filterText: filterText,
|
|
58332
59049
|
highlight: highlight
|
|
58333
59050
|
},
|
|
58334
|
-
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()({
|
|
58335
59052
|
ref: targetRef,
|
|
58336
59053
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
58337
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
59054
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
58338
59055
|
className: rootClass,
|
|
58339
59056
|
style: rootStyle,
|
|
58340
59057
|
onKeyDown: handleKeyDown,
|
|
@@ -59018,7 +59735,7 @@ var Pagination = function Pagination(props) {
|
|
|
59018
59735
|
})
|
|
59019
59736
|
}));
|
|
59020
59737
|
}
|
|
59021
|
-
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)), {}, {
|
|
59022
59739
|
className: rootClasses,
|
|
59023
59740
|
children: layout.map(function (section, i) {
|
|
59024
59741
|
switch (section) {
|
|
@@ -59299,7 +60016,8 @@ var list_list_List = function List(props) {
|
|
|
59299
60016
|
minWidth: 0,
|
|
59300
60017
|
overflow: 'auto'
|
|
59301
60018
|
},
|
|
59302
|
-
dynamicVirtual: props.dynamicHeight
|
|
60019
|
+
dynamicVirtual: props.dynamicHeight,
|
|
60020
|
+
keepScrollTop: !!props.scrollLoading
|
|
59303
60021
|
}), renderFooter()]
|
|
59304
60022
|
});
|
|
59305
60023
|
}
|
|
@@ -61303,6 +62021,7 @@ src_radio_radio_0.Group = radio_RadioGroup;
|
|
|
61303
62021
|
|
|
61304
62022
|
|
|
61305
62023
|
|
|
62024
|
+
|
|
61306
62025
|
var Rate = function Rate(props0) {
|
|
61307
62026
|
var _props$jssStyle, _props$jssStyle$rate;
|
|
61308
62027
|
var props = use_with_form_config(props0);
|
|
@@ -61391,13 +62110,14 @@ var Rate = function Rate(props0) {
|
|
|
61391
62110
|
}, index);
|
|
61392
62111
|
};
|
|
61393
62112
|
var text = Array.isArray(props.text) && props.text[Math.ceil(value - 1)];
|
|
61394
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
62113
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
61395
62114
|
className: classnames_default()(props.className, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.rootClass, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.wrapper),
|
|
61396
62115
|
id: fieldId,
|
|
61397
62116
|
style: props.style,
|
|
61398
62117
|
onMouseLeave: function onMouseLeave() {
|
|
61399
62118
|
setHoverValue(null);
|
|
61400
|
-
}
|
|
62119
|
+
}
|
|
62120
|
+
}, getDataset(props)), {}, {
|
|
61401
62121
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
61402
62122
|
className: rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.inner,
|
|
61403
62123
|
children: [Array.from({
|
|
@@ -61409,7 +62129,7 @@ var Rate = function Rate(props0) {
|
|
|
61409
62129
|
children: text
|
|
61410
62130
|
})]
|
|
61411
62131
|
})
|
|
61412
|
-
});
|
|
62132
|
+
}));
|
|
61413
62133
|
};
|
|
61414
62134
|
/* harmony default export */ var src_rate_rate = (Rate);
|
|
61415
62135
|
;// CONCATENATED MODULE: ./src/rate/rate.tsx
|
|
@@ -61446,12 +62166,14 @@ RateComp.displayName = 'ShineoutRate';
|
|
|
61446
62166
|
/* harmony default export */ var src_rate_0 = (RateComp);
|
|
61447
62167
|
;// CONCATENATED MODULE: ../hooks/src/utils/rule/required.ts
|
|
61448
62168
|
|
|
62169
|
+
|
|
62170
|
+
|
|
61449
62171
|
var options = {
|
|
61450
62172
|
skipUndefined: true
|
|
61451
62173
|
};
|
|
61452
62174
|
var requiredMessage = function requiredMessage(props) {
|
|
61453
62175
|
var type = props.type === 'array' ? 'array' : 'string';
|
|
61454
|
-
return "
|
|
62176
|
+
return substitute(getLocale(src_config_config.locale, "rules.required.".concat(type)), props);
|
|
61455
62177
|
};
|
|
61456
62178
|
/* harmony default export */ var required = (function () {
|
|
61457
62179
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -63321,6 +64043,25 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
63321
64043
|
}
|
|
63322
64044
|
});
|
|
63323
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
|
+
|
|
63324
64065
|
// 非定高的Table但依旧采用了virtual渲染方式,需要渲染出全部的data
|
|
63325
64066
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
63326
64067
|
if (!props.tableRef.current || !props.setFakeVirtual) return;
|
|
@@ -63415,6 +64156,8 @@ function useScrollbarWidth() {
|
|
|
63415
64156
|
|
|
63416
64157
|
|
|
63417
64158
|
|
|
64159
|
+
|
|
64160
|
+
|
|
63418
64161
|
var getHideExpandCol = function getHideExpandCol() {
|
|
63419
64162
|
var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
63420
64163
|
var expandCol = cols.find(function (col) {
|
|
@@ -63425,7 +64168,17 @@ var getHideExpandCol = function getHideExpandCol() {
|
|
|
63425
64168
|
}
|
|
63426
64169
|
return null;
|
|
63427
64170
|
};
|
|
64171
|
+
// 缓冲区列数:左右各2列
|
|
64172
|
+
var BUFFER_COUNT = 2;
|
|
63428
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];
|
|
63429
64182
|
var _props$columns = props.columns,
|
|
63430
64183
|
propsColumns = _props$columns === void 0 ? [] : _props$columns;
|
|
63431
64184
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
@@ -63480,8 +64233,76 @@ var useColumns = function useColumns(props) {
|
|
|
63480
64233
|
return context.cachedColumns;
|
|
63481
64234
|
});
|
|
63482
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
|
+
}, []);
|
|
63483
64277
|
return {
|
|
63484
|
-
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
|
+
},
|
|
63485
64306
|
expandHideCol: context.expandHideCol
|
|
63486
64307
|
};
|
|
63487
64308
|
};
|
|
@@ -63765,7 +64586,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
63765
64586
|
});
|
|
63766
64587
|
var checkFloat = use_persist_fn(function () {
|
|
63767
64588
|
var scrollEl = scrollRef === null || scrollRef === void 0 ? void 0 : scrollRef.current;
|
|
63768
|
-
if (!scrollEl) return;
|
|
64589
|
+
if (!scrollEl || !(scrollEl !== null && scrollEl !== void 0 && scrollEl.offsetParent)) return;
|
|
63769
64590
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
63770
64591
|
var min = 0;
|
|
63771
64592
|
var left = scrollEl.scrollLeft;
|
|
@@ -63873,6 +64694,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
63873
64694
|
|
|
63874
64695
|
|
|
63875
64696
|
|
|
64697
|
+
|
|
63876
64698
|
var useTableFilter = function useTableFilter(props) {
|
|
63877
64699
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(new Map()),
|
|
63878
64700
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -63885,10 +64707,13 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63885
64707
|
});
|
|
63886
64708
|
}, [filterInfo]);
|
|
63887
64709
|
var filteredData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
63888
|
-
var _props$
|
|
64710
|
+
var _props$columns;
|
|
63889
64711
|
// why use slice: props.data引用不改变会导致后续的useMemo无法重新计算
|
|
63890
64712
|
if (activeFilters.length === 0) return (props.data || []).slice();
|
|
63891
|
-
|
|
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) {
|
|
63892
64717
|
return activeFilters.every(function (key) {
|
|
63893
64718
|
var filter = filterInfo.get(key);
|
|
63894
64719
|
if ((filter === null || filter === void 0 ? void 0 : filter.value) === undefined) return true;
|
|
@@ -63898,7 +64723,9 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63898
64723
|
}
|
|
63899
64724
|
return true;
|
|
63900
64725
|
});
|
|
63901
|
-
})
|
|
64726
|
+
}, undefined, function (node) {
|
|
64727
|
+
return getKey(props.keygen, node);
|
|
64728
|
+
}, columnHasChildren === null || columnHasChildren === void 0 ? void 0 : columnHasChildren.treeColumnsName, false);
|
|
63902
64729
|
}, [activeFilters, props.data]);
|
|
63903
64730
|
var onFilterChange = use_persist_fn(function (columnKey, value) {
|
|
63904
64731
|
// TODO: 暂未开放reset全部筛选条件
|
|
@@ -63928,8 +64755,8 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63928
64755
|
// 根据columns生成filterInfo
|
|
63929
64756
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63930
64757
|
setFilterInfo(function (prev) {
|
|
63931
|
-
var _props$
|
|
63932
|
-
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) {
|
|
63933
64760
|
var _prev$get2, _column$filter;
|
|
63934
64761
|
if (!column.filter) return acc;
|
|
63935
64762
|
var columnKey = typeof column.render === 'string' ? column.render : String(index);
|
|
@@ -64130,6 +64957,7 @@ function getMaxRowSpanLength(input) {
|
|
|
64130
64957
|
return Math.max.apply(Math, toConsumableArray_default()(Array.from(map.values())));
|
|
64131
64958
|
}
|
|
64132
64959
|
var useTableVirtual = function useTableVirtual(props) {
|
|
64960
|
+
var _props$scrollRef$curr;
|
|
64133
64961
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
64134
64962
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
64135
64963
|
innerTop = _useState2[0],
|
|
@@ -64148,6 +64976,15 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64148
64976
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
64149
64977
|
offsetY = _useState8[0],
|
|
64150
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
|
+
// }
|
|
64151
64988
|
var rowsInView = props.rowsInView === 0 ? props.data.length : props.rowsInView;
|
|
64152
64989
|
var rowSpanInfo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
64153
64990
|
var rowSpanColumns = props.columns.filter(function (col) {
|
|
@@ -64250,14 +65087,23 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64250
65087
|
});
|
|
64251
65088
|
}
|
|
64252
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);
|
|
64253
65102
|
var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
|
|
64254
|
-
var _props$scrollRef$curr;
|
|
64255
65103
|
if (props.disabled) return;
|
|
64256
65104
|
var sum = 0;
|
|
64257
65105
|
var currentIndex = 0;
|
|
64258
65106
|
var top = 0;
|
|
64259
|
-
var maxIndex = Math.max(props.data.length - rowsInView, 0);
|
|
64260
|
-
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
64261
65107
|
for (var i = 0; i <= maxIndex; i++) {
|
|
64262
65108
|
context.rowSpanRows = 0;
|
|
64263
65109
|
var currentRowHeight = strictRowHeight || context.cachedHeight[i] || props.rowHeight;
|
|
@@ -64286,6 +65132,15 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64286
65132
|
break;
|
|
64287
65133
|
}
|
|
64288
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
|
+
// }
|
|
64289
65144
|
if (currentIndex !== startIndex) {
|
|
64290
65145
|
setStartIndex(currentIndex);
|
|
64291
65146
|
|
|
@@ -64423,7 +65278,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64423
65278
|
context.autoAddRows = addonCount;
|
|
64424
65279
|
}
|
|
64425
65280
|
}
|
|
64426
|
-
}, []);
|
|
65281
|
+
}, [props.data.length]);
|
|
64427
65282
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64428
65283
|
// 记录preIndex
|
|
64429
65284
|
context.preIndex = startIndex;
|
|
@@ -64466,6 +65321,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64466
65321
|
return toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
|
|
64467
65322
|
}, [props.data, props.disabled, startIndex, finalRowsInView]);
|
|
64468
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)';
|
|
64469
65325
|
var t = innerTop + offsetY;
|
|
64470
65326
|
if (t < 0) {
|
|
64471
65327
|
t = 0;
|
|
@@ -65261,7 +66117,7 @@ var thead_toNum = toNum;
|
|
|
65261
66117
|
};
|
|
65262
66118
|
}
|
|
65263
66119
|
if (fixed === 'right') {
|
|
65264
|
-
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) {
|
|
65265
66121
|
return thead_toNum(a) + thead_toNum(b);
|
|
65266
66122
|
}, 0);
|
|
65267
66123
|
return {
|
|
@@ -65282,7 +66138,7 @@ var thead_toNum = toNum;
|
|
|
65282
66138
|
var fixedStyle = getFixedStyle(col.fixed, col.index, colTemp2.colSpan || 1, level);
|
|
65283
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));
|
|
65284
66140
|
var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
|
|
65285
|
-
if (colTemp.title || isExpand) {
|
|
66141
|
+
if (colTemp.title !== undefined || isExpand) {
|
|
65286
66142
|
var sorter = renderSort(colTemp);
|
|
65287
66143
|
var filter = renderFilter(colTemp, columnIndex);
|
|
65288
66144
|
trs[level].push( /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
@@ -65353,7 +66209,7 @@ var thead_toNum = toNum;
|
|
|
65353
66209
|
trs[level].push( /*#__PURE__*/(0,jsx_runtime.jsx)("th", {
|
|
65354
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),
|
|
65355
66211
|
style: style,
|
|
65356
|
-
colSpan: colTemp2.colSpan,
|
|
66212
|
+
colSpan: props.virtualColumn && typeof colTemp2.colSpan === 'function' ? undefined : colTemp2.colSpan,
|
|
65357
66213
|
dir: config.direction,
|
|
65358
66214
|
children: /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
65359
66215
|
children: colTemp2.name
|
|
@@ -66239,7 +67095,7 @@ var table_emptyArr = [];
|
|
|
66239
67095
|
var emptyRef = {
|
|
66240
67096
|
current: null
|
|
66241
67097
|
};
|
|
66242
|
-
|
|
67098
|
+
function Table(props) {
|
|
66243
67099
|
var _props$jssStyle, _props$jssStyle$table, _columns$find;
|
|
66244
67100
|
var _props$verticalAlign = props.verticalAlign,
|
|
66245
67101
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -66307,6 +67163,7 @@ var emptyRef = {
|
|
|
66307
67163
|
setScrollAble(isScrollAble);
|
|
66308
67164
|
}, [virtual]);
|
|
66309
67165
|
|
|
67166
|
+
// TODO: 没用的tbodyHeight,有空移除了
|
|
66310
67167
|
// 虚拟列表高度另外计算
|
|
66311
67168
|
var _useResize = useResize({
|
|
66312
67169
|
targetRef: virtual ? emptyRef : tbodyRef
|
|
@@ -66327,10 +67184,13 @@ var emptyRef = {
|
|
|
66327
67184
|
});
|
|
66328
67185
|
var _useTableColumns = use_table_columns({
|
|
66329
67186
|
columns: props.columns,
|
|
67187
|
+
virtualColumn: props.virtualColumn,
|
|
67188
|
+
scrollRef: scrollRef,
|
|
66330
67189
|
showCheckbox: typeof props.onRowSelect === 'function'
|
|
66331
67190
|
}),
|
|
66332
67191
|
columns = _useTableColumns.columns,
|
|
66333
|
-
expandHideCol = _useTableColumns.expandHideCol
|
|
67192
|
+
expandHideCol = _useTableColumns.expandHideCol,
|
|
67193
|
+
columnInfo = _useTableColumns.columnInfo;
|
|
66334
67194
|
var _useTableLayout = use_table_layout({
|
|
66335
67195
|
theadRef: theadRef,
|
|
66336
67196
|
tbodyRef: tbodyRef,
|
|
@@ -66355,6 +67215,7 @@ var emptyRef = {
|
|
|
66355
67215
|
scrollWidth = _useTableLayout.scrollWidth,
|
|
66356
67216
|
resizeFlag = _useTableLayout.resizeFlag;
|
|
66357
67217
|
var _useTableFilter = use_table_filter({
|
|
67218
|
+
keygen: props.keygen,
|
|
66358
67219
|
data: props.data,
|
|
66359
67220
|
columns: props.columns
|
|
66360
67221
|
}),
|
|
@@ -66468,6 +67329,7 @@ var emptyRef = {
|
|
|
66468
67329
|
};
|
|
66469
67330
|
}, [theadRef.current, tfootRef.current]);
|
|
66470
67331
|
var virtualInfo = use_table_virtual({
|
|
67332
|
+
virtual: props.virtual,
|
|
66471
67333
|
disabled: !virtual,
|
|
66472
67334
|
data: treeData,
|
|
66473
67335
|
columns: columns,
|
|
@@ -66498,6 +67360,9 @@ var emptyRef = {
|
|
|
66498
67360
|
var target = e.currentTarget;
|
|
66499
67361
|
if (!target) return;
|
|
66500
67362
|
layoutFunc.checkFloat();
|
|
67363
|
+
if (props.virtualColumn) columnInfo.handleScroll({
|
|
67364
|
+
scrollLeft: target.scrollLeft
|
|
67365
|
+
});
|
|
66501
67366
|
if (headMirrorScrollRef.current) {
|
|
66502
67367
|
headMirrorScrollRef.current.scrollLeft = target.scrollLeft;
|
|
66503
67368
|
}
|
|
@@ -66517,6 +67382,7 @@ var emptyRef = {
|
|
|
66517
67382
|
// 虚拟表格的滚动事件
|
|
66518
67383
|
var handleVirtualScroll = usePersistFn(function (info) {
|
|
66519
67384
|
virtualInfo.handleScroll(info);
|
|
67385
|
+
if (props.virtualColumn) columnInfo.handleScroll(info);
|
|
66520
67386
|
layoutFunc.checkFloat();
|
|
66521
67387
|
if (headMirrorScrollRef.current) {
|
|
66522
67388
|
headMirrorScrollRef.current.scrollLeft = info.scrollLeft;
|
|
@@ -66528,7 +67394,7 @@ var emptyRef = {
|
|
|
66528
67394
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
66529
67395
|
}
|
|
66530
67396
|
syncHeaderScroll(info.scrollLeft);
|
|
66531
|
-
if (props.virtual !==
|
|
67397
|
+
if (props.virtual !== 'lazy') return;
|
|
66532
67398
|
if (context.scrollingTimer) {
|
|
66533
67399
|
clearTimeout(context.scrollingTimer);
|
|
66534
67400
|
}
|
|
@@ -66546,7 +67412,7 @@ var emptyRef = {
|
|
|
66546
67412
|
jssStyle: props.jssStyle
|
|
66547
67413
|
});
|
|
66548
67414
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66549
|
-
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)),
|
|
66550
67416
|
ref: function ref(el) {
|
|
66551
67417
|
context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
|
|
66552
67418
|
},
|
|
@@ -66621,7 +67487,8 @@ var emptyRef = {
|
|
|
66621
67487
|
renderSorter: props.renderSorter,
|
|
66622
67488
|
radio: props.radio,
|
|
66623
67489
|
treeColumnsName: treeColumnsName,
|
|
66624
|
-
treeCheckAll: props.treeCheckAll
|
|
67490
|
+
treeCheckAll: props.treeCheckAll,
|
|
67491
|
+
virtualColumn: props.virtualColumn
|
|
66625
67492
|
};
|
|
66626
67493
|
var showFoot = (_props$summary = props.summary) === null || _props$summary === void 0 ? void 0 : _props$summary.length;
|
|
66627
67494
|
var footCommonProps = {
|
|
@@ -66873,6 +67740,12 @@ var emptyRef = {
|
|
|
66873
67740
|
props.tableRef(tableFunc);
|
|
66874
67741
|
}
|
|
66875
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]);
|
|
66876
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));
|
|
66877
67750
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66878
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)),
|
|
@@ -66895,15 +67768,13 @@ var emptyRef = {
|
|
|
66895
67768
|
ref: tableRef,
|
|
66896
67769
|
dir: config.direction,
|
|
66897
67770
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(absolute_context.Provider, {
|
|
66898
|
-
value:
|
|
66899
|
-
absolute: true,
|
|
66900
|
-
scrollElRef: scrollRef
|
|
66901
|
-
},
|
|
67771
|
+
value: absoluteProviderValue,
|
|
66902
67772
|
children: [renderTable(), renderLoading(), props.children]
|
|
66903
67773
|
})
|
|
66904
67774
|
})), renderPagination()]
|
|
66905
67775
|
});
|
|
66906
|
-
}
|
|
67776
|
+
}
|
|
67777
|
+
;
|
|
66907
67778
|
;// CONCATENATED MODULE: ./src/table/table.tsx
|
|
66908
67779
|
|
|
66909
67780
|
|
|
@@ -66927,14 +67798,14 @@ var table_jssStyle = {
|
|
|
66927
67798
|
popover: usePopoverStyle,
|
|
66928
67799
|
tree: useTreeStyle
|
|
66929
67800
|
};
|
|
66930
|
-
/* harmony default export */ var
|
|
66931
|
-
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()({
|
|
66932
67803
|
jssStyle: table_jssStyle
|
|
66933
67804
|
}, props));
|
|
66934
67805
|
});
|
|
66935
67806
|
;// CONCATENATED MODULE: ./src/table/index.ts
|
|
66936
67807
|
|
|
66937
|
-
var TableComp =
|
|
67808
|
+
var TableComp = src_table_table;
|
|
66938
67809
|
TableComp.displayName = 'ShineoutTable';
|
|
66939
67810
|
/* harmony default export */ var src_table_0 = (TableComp);
|
|
66940
67811
|
;// CONCATENATED MODULE: ../hooks/src/components/use-tabs/context.tsx
|
|
@@ -68707,6 +69578,7 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
68707
69578
|
|
|
68708
69579
|
|
|
68709
69580
|
|
|
69581
|
+
|
|
68710
69582
|
var Transfer = function Transfer(props) {
|
|
68711
69583
|
var _jssStyle$transfer;
|
|
68712
69584
|
var jssStyle = props.jssStyle,
|
|
@@ -68880,12 +69752,13 @@ var Transfer = function Transfer(props) {
|
|
|
68880
69752
|
filterTargetText: filterTargetText,
|
|
68881
69753
|
highlight: props.highlight
|
|
68882
69754
|
},
|
|
68883
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
69755
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
68884
69756
|
className: rootClass,
|
|
68885
69757
|
style: style,
|
|
68886
|
-
id: fieldId
|
|
69758
|
+
id: fieldId
|
|
69759
|
+
}, getDataset(props)), {}, {
|
|
68887
69760
|
children: [renderSourceList, !simple && renderOperations(), renderTargetList]
|
|
68888
|
-
})
|
|
69761
|
+
}))
|
|
68889
69762
|
});
|
|
68890
69763
|
};
|
|
68891
69764
|
/* harmony default export */ var src_transfer_transfer = (Transfer);
|
|
@@ -69646,11 +70519,11 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69646
70519
|
filterText: filterText,
|
|
69647
70520
|
highlight: props.highlight
|
|
69648
70521
|
},
|
|
69649
|
-
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()({
|
|
69650
70523
|
id: fieldId,
|
|
69651
70524
|
ref: targetRef,
|
|
69652
70525
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
69653
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
70526
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
69654
70527
|
className: rootClass,
|
|
69655
70528
|
style: rootStyle,
|
|
69656
70529
|
onBlur: handleBlur,
|
|
@@ -70774,10 +71647,11 @@ var Upload = function Upload(props0) {
|
|
|
70774
71647
|
var shouldRenderLeft = listType !== 'image' || leftHandler;
|
|
70775
71648
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
|
|
70776
71649
|
fieldId = _useContext.fieldId;
|
|
70777
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
71650
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
70778
71651
|
id: fieldId,
|
|
70779
71652
|
style: props.style,
|
|
70780
|
-
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)), {}, {
|
|
70781
71655
|
children: renderCustomResult ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70782
71656
|
children: [shouldRenderLeft && renderHandler(), renderCustomResult({
|
|
70783
71657
|
value: value,
|
|
@@ -70793,7 +71667,7 @@ var Upload = function Upload(props0) {
|
|
|
70793
71667
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70794
71668
|
children: [shouldRenderLeft && !hideHandler && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && !hideHandler && renderHandler(), renderRecover()]
|
|
70795
71669
|
})
|
|
70796
|
-
});
|
|
71670
|
+
}));
|
|
70797
71671
|
};
|
|
70798
71672
|
/* harmony default export */ var src_upload_upload = (Upload);
|
|
70799
71673
|
;// CONCATENATED MODULE: ./src/upload/use-upload-common.ts
|
|
@@ -73106,10 +73980,9 @@ function accept_attrAccept(file, acceptedFiles) {
|
|
|
73106
73980
|
|
|
73107
73981
|
|
|
73108
73982
|
|
|
73109
|
-
// import validate from './validate';
|
|
73110
73983
|
|
|
73111
73984
|
|
|
73112
|
-
var src_utils_validate =
|
|
73985
|
+
var src_utils_validate = validate;
|
|
73113
73986
|
var cssAccessors = {};
|
|
73114
73987
|
var cssInject = {};
|
|
73115
73988
|
|
|
@@ -73423,7 +74296,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73423
74296
|
|
|
73424
74297
|
|
|
73425
74298
|
/* harmony default export */ var src_0 = ({
|
|
73426
|
-
version: '3.9.0
|
|
74299
|
+
version: '3.9.0'
|
|
73427
74300
|
});
|
|
73428
74301
|
}();
|
|
73429
74302
|
/******/ return __webpack_exports__;
|