shineout 3.9.0-beta.2 → 3.9.0-beta.21
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/upload/button.type.d.ts +1 -1
- package/dist/shineout.js +1489 -661
- 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/upload/button.type.d.ts +1 -1
- 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
|
/***/ }),
|
|
@@ -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"
|
|
7094
|
-
})]
|
|
7095
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("filter", {
|
|
7096
|
-
id: "filter1_d_4044_10434",
|
|
7097
|
-
x: "16.0493",
|
|
7098
|
-
y: "37.776",
|
|
7099
|
-
width: "67.8474",
|
|
7100
|
-
height: "30.1659",
|
|
7101
|
-
filterUnits: "userSpaceOnUse",
|
|
7102
|
-
colorInterpolationFilters: "sRGB",
|
|
7103
|
-
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("feFlood", {
|
|
7104
|
-
floodOpacity: "0",
|
|
7105
|
-
result: "BackgroundImageFix"
|
|
7106
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feColorMatrix", {
|
|
7107
|
-
in: "SourceAlpha",
|
|
7108
|
-
type: "matrix",
|
|
7109
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
7110
|
-
result: "hardAlpha"
|
|
7111
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feOffset", {
|
|
7112
|
-
dy: "2"
|
|
7113
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feColorMatrix", {
|
|
7114
|
-
type: "matrix",
|
|
7115
|
-
values: "0 0 0 0 0.803922 0 0 0 0 0.811765 0 0 0 0 0.843137 0 0 0 1 0"
|
|
7116
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7117
|
-
mode: "normal",
|
|
7118
|
-
in2: "BackgroundImageFix",
|
|
7119
|
-
result: "effect1_dropShadow_4044_10434"
|
|
7120
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsx)("feBlend", {
|
|
7121
|
-
mode: "normal",
|
|
7122
|
-
in: "SourceGraphic",
|
|
7123
|
-
in2: "effect1_dropShadow_4044_10434",
|
|
7124
|
-
result: "shape"
|
|
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"
|
|
7125
7086
|
})]
|
|
7126
|
-
}), /*#__PURE__*/(0,jsx_runtime.jsxs)("
|
|
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
|
|
@@ -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-beta.
|
|
12403
|
+
/* harmony default export */ var version = ('3.9.0-beta.21');
|
|
12390
12404
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12391
12405
|
|
|
12392
12406
|
|
|
@@ -12434,9 +12448,13 @@ var styled = function styled(style, ns) {
|
|
|
12434
12448
|
name: ns,
|
|
12435
12449
|
generateId: createClassname
|
|
12436
12450
|
});
|
|
12451
|
+
var styledCacheMap = {};
|
|
12437
12452
|
var getClassName = function getClassName() {
|
|
12438
12453
|
var classes = hoc();
|
|
12439
|
-
|
|
12454
|
+
if (styledCacheMap[ns]) {
|
|
12455
|
+
return styledCacheMap[ns];
|
|
12456
|
+
}
|
|
12457
|
+
return styledCacheMap[ns] = Object.keys(classes).reduce(function (acc, key) {
|
|
12440
12458
|
var k = key;
|
|
12441
12459
|
var value = '';
|
|
12442
12460
|
// 给每个组件的root类名添加命名空间
|
|
@@ -14875,7 +14893,8 @@ var tabsTokens = {
|
|
|
14875
14893
|
tabsTabBorderRadius: 'Radius-default',
|
|
14876
14894
|
tabsNearlyMargin: 'Spacing-4',
|
|
14877
14895
|
tabsLinePaddingX: 'Spacing-8',
|
|
14878
|
-
|
|
14896
|
+
tabsLinePaddingTop: 'Spacing-6',
|
|
14897
|
+
tabsLinePaddingBottom: 'Spacing-6',
|
|
14879
14898
|
tabsLineHrBackgroundColor: 'Neutral-border-1',
|
|
14880
14899
|
tabsLineAfterBackgroundColor: 'Brand-6',
|
|
14881
14900
|
tabsLineInnerPaddingX: 'Spacing-8',
|
|
@@ -14936,7 +14955,8 @@ var tabsTokens = {
|
|
|
14936
14955
|
tabsActionHorizontalPaddingX: 'Spacing-7',
|
|
14937
14956
|
tabsActionHorizontalPaddingY: 'Spacing-8',
|
|
14938
14957
|
tabsExtraFillHoverBackgroundColor: 'Neutral-fill-3',
|
|
14939
|
-
tabsArrowFontColor: 'Neutral-text-4'
|
|
14958
|
+
tabsArrowFontColor: 'Neutral-text-4',
|
|
14959
|
+
tabsBadgeMargin: 'Spacing-0'
|
|
14940
14960
|
};
|
|
14941
14961
|
/* harmony default export */ var tabs = (tabsTokens);
|
|
14942
14962
|
;// CONCATENATED MODULE: ../theme/src/tabs/index.ts
|
|
@@ -14961,12 +14981,20 @@ var tagTokens = {
|
|
|
14961
14981
|
tagInfoOutlineDisabledFontColor: 'Brand-3',
|
|
14962
14982
|
tagInfoOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14963
14983
|
tagInfoOutlineDisabledBorderColor: 'Brand-3',
|
|
14984
|
+
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
14985
|
+
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
14986
|
+
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
14964
14987
|
tagInfoFillFontColor: 'Neutral-text-1',
|
|
14965
14988
|
tagInfoFillBackgroundColor: 'Brand-6',
|
|
14966
14989
|
tagInfoFillBorderColor: 'Brand-6',
|
|
14967
14990
|
tagInfoFillDisabledFontColor: 'Neutral-text-1',
|
|
14968
14991
|
tagInfoFillDisabledBackgroundColor: 'Brand-3',
|
|
14969
14992
|
tagInfoFillDisabledBorderColor: 'Brand-3',
|
|
14993
|
+
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
14994
|
+
tagInfoIconFontColor: 'Brand-6',
|
|
14995
|
+
tagInfoIconDisabledFontColor: 'Brand-3',
|
|
14996
|
+
tagInfoIconHoverBackgroundColor: 'Brand-2',
|
|
14997
|
+
tagDefaultLineHeight: 'Line-height-dynamic',
|
|
14970
14998
|
tagDefaultFontColor: 'Neutral-text-5',
|
|
14971
14999
|
tagDefaultBackgroundColor: 'Neutral-fill-2',
|
|
14972
15000
|
tagDefaultBorderColor: 'Neutral-fill-2',
|
|
@@ -14985,6 +15013,11 @@ var tagTokens = {
|
|
|
14985
15013
|
tagDefaultFillDisabledFontColor: 'Neutral-text-2',
|
|
14986
15014
|
tagDefaultFillDisabledBackgroundColor: 'Neutral-fill-3',
|
|
14987
15015
|
tagDefaultFillDisabledBorderColor: 'Neutral-fill-3',
|
|
15016
|
+
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
15017
|
+
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
15018
|
+
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
15019
|
+
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
15020
|
+
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
14988
15021
|
tagSuccessFontColor: 'Success-6',
|
|
14989
15022
|
tagSuccessBackgroundColor: 'Success-1',
|
|
14990
15023
|
tagSuccessBorderColor: 'Success-1',
|
|
@@ -14997,12 +15030,18 @@ var tagTokens = {
|
|
|
14997
15030
|
tagSuccessOutlineDisabledFontColor: 'Success-3',
|
|
14998
15031
|
tagSuccessOutlineDisabledBackgroundColor: 'Neutral-fill-1',
|
|
14999
15032
|
tagSuccessOutlineDisabledBorderColor: 'Success-3',
|
|
15033
|
+
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
15034
|
+
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15000
15035
|
tagSuccessFillFontColor: 'Neutral-text-1',
|
|
15001
15036
|
tagSuccessFillBackgroundColor: 'Success-6',
|
|
15002
15037
|
tagSuccessFillBorderColor: 'Success-6',
|
|
15003
15038
|
tagSuccessFillDisabledFontColor: 'Neutral-text-1',
|
|
15004
15039
|
tagSuccessFillDisabledBackgroundColor: 'Success-3',
|
|
15005
15040
|
tagSuccessFillDisabledBorderColor: 'Success-3',
|
|
15041
|
+
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
15042
|
+
tagSuccessIconFontColor: 'Success-6',
|
|
15043
|
+
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
15044
|
+
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
15006
15045
|
tagWarningFontColor: 'Warning-6',
|
|
15007
15046
|
tagWarningBackgroundColor: 'Warning-1',
|
|
15008
15047
|
tagWarningBorderColor: 'Warning-1',
|
|
@@ -15021,6 +15060,10 @@ var tagTokens = {
|
|
|
15021
15060
|
tagWarningFillDisabledFontColor: 'Neutral-text-1',
|
|
15022
15061
|
tagWarningFillDisabledBackgroundColor: 'Warning-3',
|
|
15023
15062
|
tagWarningFillDisabledBorderColor: 'Warning-3',
|
|
15063
|
+
tagWarningFillIconFontColor: 'Warning-6',
|
|
15064
|
+
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
15065
|
+
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
15066
|
+
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
15024
15067
|
tagDangerFontColor: 'Danger-6',
|
|
15025
15068
|
tagDangerBackgroundColor: 'Danger-1',
|
|
15026
15069
|
tagDangerBorderColor: 'Danger-1',
|
|
@@ -15039,6 +15082,10 @@ var tagTokens = {
|
|
|
15039
15082
|
tagDangerFillDisabledFontColor: 'Neutral-text-1',
|
|
15040
15083
|
tagDangerFillDisabledBackgroundColor: 'Danger-3',
|
|
15041
15084
|
tagDangerFillDisabledBorderColor: 'Danger-3',
|
|
15085
|
+
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
15086
|
+
tagDangerIconFontColor: 'Danger-6',
|
|
15087
|
+
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
15088
|
+
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15042
15089
|
tagMagentaFontColor: 'Magenta-6',
|
|
15043
15090
|
tagMagentaBackgroundColor: 'Magenta-1',
|
|
15044
15091
|
tagMagentaBorderColor: 'Magenta-1',
|
|
@@ -15057,6 +15104,10 @@ var tagTokens = {
|
|
|
15057
15104
|
tagMagentaFillDisabledFontColor: 'Neutral-text-1',
|
|
15058
15105
|
tagMagentaFillDisabledBackgroundColor: 'Magenta-3',
|
|
15059
15106
|
tagMagentaFillDisabledBorderColor: 'Magenta-3',
|
|
15107
|
+
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15108
|
+
tagMagentaIconFontColor: 'Magenta-6',
|
|
15109
|
+
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
15110
|
+
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
15060
15111
|
tagBrownFontColor: 'Brown-6',
|
|
15061
15112
|
tagBrownBackgroundColor: 'Brown-1',
|
|
15062
15113
|
tagBrownBorderColor: 'Brown-1',
|
|
@@ -15075,6 +15126,10 @@ var tagTokens = {
|
|
|
15075
15126
|
tagBrownFillDisabledFontColor: 'Neutral-text-1',
|
|
15076
15127
|
tagBrownFillDisabledBackgroundColor: 'Brown-3',
|
|
15077
15128
|
tagBrownFillDisabledBorderColor: 'Brown-3',
|
|
15129
|
+
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
15130
|
+
tagBrownIconFontColor: 'Brown-6',
|
|
15131
|
+
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15132
|
+
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15078
15133
|
tagPurpleFontColor: 'Purple-6',
|
|
15079
15134
|
tagPurpleBackgroundColor: 'Purple-1',
|
|
15080
15135
|
tagPurpleBorderColor: 'Purple-1',
|
|
@@ -15093,6 +15148,10 @@ var tagTokens = {
|
|
|
15093
15148
|
tagPurpleFillDisabledFontColor: 'Neutral-text-1',
|
|
15094
15149
|
tagPurpleFillDisabledBackgroundColor: 'Purple-3',
|
|
15095
15150
|
tagPurpleFillDisabledBorderColor: 'Purple-3',
|
|
15151
|
+
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
15152
|
+
tagPurpleIconFontColor: 'Purple-6',
|
|
15153
|
+
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
15154
|
+
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15096
15155
|
tagIndigoFontColor: 'Indigo-6',
|
|
15097
15156
|
tagIndigoBackgroundColor: 'Indigo-1',
|
|
15098
15157
|
tagIndigoBorderColor: 'Indigo-1',
|
|
@@ -15111,6 +15170,10 @@ var tagTokens = {
|
|
|
15111
15170
|
tagIndigoFillDisabledFontColor: 'Neutral-text-1',
|
|
15112
15171
|
tagIndigoFillDisabledBackgroundColor: 'Indigo-3',
|
|
15113
15172
|
tagIndigoFillDisabledBorderColor: 'Indigo-3',
|
|
15173
|
+
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
15174
|
+
tagIndigoIconFontColor: 'Indigo-6',
|
|
15175
|
+
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
15176
|
+
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15114
15177
|
tagCyanFontColor: 'Cyan-6',
|
|
15115
15178
|
tagCyanBackgroundColor: 'Cyan-1',
|
|
15116
15179
|
tagCyanBorderColor: 'Cyan-1',
|
|
@@ -15129,6 +15192,10 @@ var tagTokens = {
|
|
|
15129
15192
|
tagCyanFillDisabledFontColor: 'Neutral-text-1',
|
|
15130
15193
|
tagCyanFillDisabledBackgroundColor: 'Cyan-3',
|
|
15131
15194
|
tagCyanFillDisabledBorderColor: 'Cyan-3',
|
|
15195
|
+
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
15196
|
+
tagCyanIconFontColor: 'Cyan-6',
|
|
15197
|
+
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
15198
|
+
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15132
15199
|
tagNeonFontColor: 'Neon-6',
|
|
15133
15200
|
tagNeonBackgroundColor: 'Neon-1',
|
|
15134
15201
|
tagNeonBorderColor: 'Neon-1',
|
|
@@ -15147,6 +15214,10 @@ var tagTokens = {
|
|
|
15147
15214
|
tagNeonFillDisabledFontColor: 'Neutral-text-1',
|
|
15148
15215
|
tagNeonFillDisabledBackgroundColor: 'Neon-3',
|
|
15149
15216
|
tagNeonFillDisabledBorderColor: 'Neon-3',
|
|
15217
|
+
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
15218
|
+
tagNeonIconFontColor: 'Neon-6',
|
|
15219
|
+
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
15220
|
+
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15150
15221
|
tagLemonFontColor: 'Lemon-6',
|
|
15151
15222
|
tagLemonBackgroundColor: 'Lemon-1',
|
|
15152
15223
|
tagLemonBorderColor: 'Lemon-1',
|
|
@@ -15165,6 +15236,10 @@ var tagTokens = {
|
|
|
15165
15236
|
tagLemonFillDisabledFontColor: 'Neutral-text-1',
|
|
15166
15237
|
tagLemonFillDisabledBackgroundColor: 'Lemon-3',
|
|
15167
15238
|
tagLemonFillDisabledBorderColor: 'Lemon-3',
|
|
15239
|
+
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
15240
|
+
tagLemonIconFontColor: 'Lemon-6',
|
|
15241
|
+
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
15242
|
+
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15168
15243
|
tagTangerineFontColor: 'Tangerine-6',
|
|
15169
15244
|
tagTangerineBackgroundColor: 'Tangerine-1',
|
|
15170
15245
|
tagTangerineBorderColor: 'Tangerine-1',
|
|
@@ -15183,87 +15258,35 @@ var tagTokens = {
|
|
|
15183
15258
|
tagTangerineFillDisabledFontColor: 'Neutral-text-1',
|
|
15184
15259
|
tagTangerineFillDisabledBackgroundColor: 'Tangerine-3',
|
|
15185
15260
|
tagTangerineFillDisabledBorderColor: 'Tangerine-3',
|
|
15261
|
+
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5',
|
|
15262
|
+
tagTangerineIconFontColor: 'Tangerine-6',
|
|
15263
|
+
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
15264
|
+
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15186
15265
|
tagFontSize: 'Font-12',
|
|
15266
|
+
tagFontWeight: 'Weight-regular',
|
|
15187
15267
|
tagBorderRadius: 'Radius-small',
|
|
15188
15268
|
tagPaddingX: 'Spacing-6',
|
|
15189
15269
|
tagPaddingY: 'Spacing-0',
|
|
15190
15270
|
tagHeight: 'Size-11',
|
|
15191
|
-
tagFontWeight: 'Weight-regular',
|
|
15192
15271
|
tagSmallFontSize: 'Font-12',
|
|
15272
|
+
tagSmallFontWeight: 'Weight-regular',
|
|
15193
15273
|
tagSmallBorderRadius: 'Radius-small',
|
|
15194
15274
|
tagSmallPaddingX: 'Spacing-4',
|
|
15195
15275
|
tagSmallHeight: 'Size-10',
|
|
15196
|
-
|
|
15276
|
+
tagSmallInputPaddingX: 'Spacing-4',
|
|
15277
|
+
tagSmallInputFontSize: 'Font-12',
|
|
15278
|
+
tagSmallLineHeight: 'Line-height-dynamic',
|
|
15197
15279
|
tagLargeFontSize: 'Font-14',
|
|
15280
|
+
tagLargeFontWeight: 'Weight-regular',
|
|
15198
15281
|
tagLargeBorderRadius: 'Radius-default',
|
|
15199
15282
|
tagLargePaddingX: 'Spacing-12',
|
|
15200
15283
|
tagLargePaddingY: 'Spacing-2',
|
|
15201
15284
|
tagLargeHeight: 'Size-14',
|
|
15202
|
-
tagLargeFontWeight: 'Weight-regular',
|
|
15203
|
-
tagInputPaddingX: 'Spacing-4',
|
|
15204
|
-
tagInputFontSize: 'Font-12',
|
|
15205
|
-
tagSmallInputPaddingX: 'Spacing-4',
|
|
15206
|
-
tagSmallInputFontSize: 'Font-12',
|
|
15207
15285
|
tagLargeInputPaddingX: 'Spacing-4',
|
|
15208
15286
|
tagLargeInputFontSize: 'Font-14',
|
|
15209
|
-
|
|
15210
|
-
|
|
15211
|
-
|
|
15212
|
-
tagInfoOutlineIconDisabledFontColor: 'Brand-3',
|
|
15213
|
-
tagInfoOutlineIconHoverBackgroundColor: 'Brand-1',
|
|
15214
|
-
tagInfoOutlineIconHoverFontColor: 'Brand-6',
|
|
15215
|
-
tagInfoFillIconHoverBackgroundColor: 'Brand-5',
|
|
15216
|
-
tagDefaultIconFontColor: 'Neutral-text-4',
|
|
15217
|
-
tagDefaultIconDisabledFontColor: 'Neutral-text-2',
|
|
15218
|
-
tagDefaultIconHoverBackgroundColor: 'Neutral-fill-3',
|
|
15219
|
-
tagDefaultIconHoverFontColor: 'Neutral-text-5',
|
|
15220
|
-
tagDefaultFillIconHoverBackgroundColor: 'Neutral-fill-4',
|
|
15221
|
-
tagSuccessIconFontColor: 'Success-6',
|
|
15222
|
-
tagSuccessIconDisabledFontColor: 'Success-3',
|
|
15223
|
-
tagSuccessIconHoverBackgroundColor: 'Success-2',
|
|
15224
|
-
tagSuccessOutlineIconDisabledFontColor: 'Success-3',
|
|
15225
|
-
tagSuccessOutlineIconHoverBackgroundColor: 'Success-2',
|
|
15226
|
-
tagSuccessFillIconHoverBackgroundColor: 'Success-5',
|
|
15227
|
-
tagWarningIconDisabledFontColor: 'Warning-3',
|
|
15228
|
-
tagWarningIconHoverBackgroundColor: 'Warning-2',
|
|
15229
|
-
tagWarningFillIconFontColor: 'Warning-6',
|
|
15230
|
-
tagWarningFillIconHoverBackgroundColor: 'Warning-5',
|
|
15231
|
-
tagDangerIconFontColor: 'Danger-6',
|
|
15232
|
-
tagDangerIconDisabledFontColor: 'Danger-3',
|
|
15233
|
-
tagDangerIconHoverBackgroundColor: 'Danger-2',
|
|
15234
|
-
tagDangerFillIconHoverBackgroundColor: 'Danger-5',
|
|
15235
|
-
tagMagentaIconFontColor: 'Magenta-6',
|
|
15236
|
-
tagMagentaIconDisabledFontColor: 'Magenta-3',
|
|
15237
|
-
tagMagentaIconHoverBackgroundColor: 'Magenta-2',
|
|
15238
|
-
tagMagentaFillIconHoverBackgroundColor: 'Magenta-5',
|
|
15239
|
-
tagBrownIconFontColor: 'Brown-6',
|
|
15240
|
-
tagBrownIconDisabledFontColor: 'Brown-3',
|
|
15241
|
-
tagBrownIconHoverBackgroundColor: 'Brown-2',
|
|
15242
|
-
tagBrownFillIconHoverBackgroundColor: 'Brown-5',
|
|
15243
|
-
tagPurpleIconFontColor: 'Purple-6',
|
|
15244
|
-
tagPurpleIconDisabledFontColor: 'Purple-3',
|
|
15245
|
-
tagPurpleIconHoverBackgroundColor: 'Purple-2',
|
|
15246
|
-
tagPurpleFillIconHoverBackgroundColor: 'Purple-5',
|
|
15247
|
-
tagIndigoIconFontColor: 'Indigo-6',
|
|
15248
|
-
tagIndigoIconDisabledFontColor: 'Indigo-3',
|
|
15249
|
-
tagIndigoIconHoverBackgroundColor: 'Indigo-2',
|
|
15250
|
-
tagIndigoFillIconHoverBackgroundColor: 'Indigo-5',
|
|
15251
|
-
tagCyanIconFontColor: 'Cyan-6',
|
|
15252
|
-
tagCyanIconDisabledFontColor: 'Cyan-3',
|
|
15253
|
-
tagCyanIconHoverBackgroundColor: 'Cyan-2',
|
|
15254
|
-
tagCyanFillIconHoverBackgroundColor: 'Cyan-5',
|
|
15255
|
-
tagNeonIconFontColor: 'Neon-6',
|
|
15256
|
-
tagNeonIconDisabledFontColor: 'Neon-3',
|
|
15257
|
-
tagNeonIconHoverBackgroundColor: 'Neon-2',
|
|
15258
|
-
tagNeonFillIconHoverBackgroundColor: 'Neon-5',
|
|
15259
|
-
tagLemonIconFontColor: 'Lemon-6',
|
|
15260
|
-
tagLemonIconDisabledFontColor: 'Lemon-3',
|
|
15261
|
-
tagLemonIconHoverBackgroundColor: 'Lemon-2',
|
|
15262
|
-
tagLemonFillIconHoverBackgroundColor: 'Lemon-5',
|
|
15263
|
-
tagTangerineIconFontColor: 'Tangerine-6',
|
|
15264
|
-
tagTangerineIconDisabledFontColor: 'Tangerine-3',
|
|
15265
|
-
tagTangerineIconHoverBackgroundColor: 'Tangerine-2',
|
|
15266
|
-
tagTangerineFillIconHoverBackgroundColor: 'Tangerine-5'
|
|
15287
|
+
tagLargeLineHeight: 'Line-height-dynamic',
|
|
15288
|
+
tagInputPaddingX: 'Spacing-4',
|
|
15289
|
+
tagInputFontSize: 'Font-12'
|
|
15267
15290
|
};
|
|
15268
15291
|
/* harmony default export */ var tag = (tagTokens);
|
|
15269
15292
|
;// CONCATENATED MODULE: ../theme/src/tag/index.ts
|
|
@@ -17285,10 +17308,17 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
17285
17308
|
/* harmony default export */ var shineout_style_src_carousel = ((/* unused pure expression or super */ null && (useCarouselStyle)));
|
|
17286
17309
|
;// CONCATENATED MODULE: ../shineout-style/src/input/input-border.ts
|
|
17287
17310
|
|
|
17311
|
+
|
|
17312
|
+
var supportsHas = function supportsHas() {
|
|
17313
|
+
if (typeof CSS === 'undefined' || typeof CSS.supports === 'undefined') {
|
|
17314
|
+
return false;
|
|
17315
|
+
}
|
|
17316
|
+
return CSS.supports('selector(:has(*))');
|
|
17317
|
+
};
|
|
17288
17318
|
/* harmony default export */ var input_border = (function (name) {
|
|
17289
|
-
var
|
|
17319
|
+
var _ref2;
|
|
17290
17320
|
var token = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
17291
|
-
return
|
|
17321
|
+
return _ref2 = {}, defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(defineProperty_default()(_ref2, name, objectSpread2_default()({
|
|
17292
17322
|
boxSizing: 'border-box',
|
|
17293
17323
|
borderRadius: token.borderRadius,
|
|
17294
17324
|
background: token.backgroundColor,
|
|
@@ -17313,7 +17343,7 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
17313
17343
|
flex: 1,
|
|
17314
17344
|
minWidth: 0
|
|
17315
17345
|
},
|
|
17316
|
-
'[data-soui-role="input-group"] [data-soui-input-border] + &&&': {
|
|
17346
|
+
'[data-soui-role="input-group"]:not([data-soui-border="false"]) [data-soui-input-border] + &&&': {
|
|
17317
17347
|
borderLeftWidth: '1px'
|
|
17318
17348
|
},
|
|
17319
17349
|
'[data-soui-role="input-group-separate"] &&&, [data-soui-role="input-group-separate"] &&&:hover': {
|
|
@@ -17342,7 +17372,11 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
17342
17372
|
borderRadius: "".concat(token.borderRadius, " 0 0 ").concat(token.borderRadius)
|
|
17343
17373
|
}
|
|
17344
17374
|
}
|
|
17345
|
-
}), "".concat(name, "
|
|
17375
|
+
}, supportsHas() ? defineProperty_default()({}, "[data-soui-role=\"input-group\"]:has(&$".concat(name, "Error)"), {
|
|
17376
|
+
borderColor: token.errorBorderColor,
|
|
17377
|
+
background: token.errorBackgroundColor,
|
|
17378
|
+
boxShadow: "0 0 0 2px ".concat(token.errorFocusShadow)
|
|
17379
|
+
}) : {})), "".concat(name, "PaddingBox"), defineProperty_default()(defineProperty_default()(defineProperty_default()({
|
|
17346
17380
|
borderRadius: token.borderRadius
|
|
17347
17381
|
}, "$".concat(name, ":not($").concat(name, "InnerTitle) &"), {
|
|
17348
17382
|
padding: "".concat(token.paddingY, " ").concat(token.paddingX)
|
|
@@ -17391,8 +17425,11 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
17391
17425
|
'&:hover': {
|
|
17392
17426
|
borderColor: token.focusBorderColor
|
|
17393
17427
|
}
|
|
17394
|
-
}), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({
|
|
17395
|
-
|
|
17428
|
+
}), "".concat(name, "Error"), defineProperty_default()(defineProperty_default()({
|
|
17429
|
+
'&&': {
|
|
17430
|
+
borderColor: token.errorBorderColor
|
|
17431
|
+
}
|
|
17432
|
+
}, "&:not($".concat(name, "Disabled)"), {
|
|
17396
17433
|
background: token.errorBackgroundColor,
|
|
17397
17434
|
'&:hover': {
|
|
17398
17435
|
borderColor: token.errorHoverBorderColor,
|
|
@@ -17405,19 +17442,17 @@ var useCarouselStyle = styled(carousel_carousel, 'carousel');
|
|
|
17405
17442
|
// '[data-soui-role="input-group-separate"]&': {
|
|
17406
17443
|
// boxShadow: 'none',
|
|
17407
17444
|
// }
|
|
17408
|
-
})), "".concat(name, "Disabled"), {
|
|
17445
|
+
})), "".concat(name, "Disabled"), defineProperty_default()(defineProperty_default()({
|
|
17409
17446
|
color: token.disabledFontColor,
|
|
17410
17447
|
backgroundColor: token.disabledBackgroundColor,
|
|
17411
17448
|
borderColor: token.disabledBorderColor,
|
|
17412
17449
|
boxShadow: 'none',
|
|
17413
|
-
cursor: 'not-allowed'
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
}
|
|
17420
|
-
}), defineProperty_default()(defineProperty_default()(_ref, "".concat(name, "Underline"), {
|
|
17450
|
+
cursor: 'not-allowed'
|
|
17451
|
+
}, "&:not($".concat(name, "Error):hover"), {
|
|
17452
|
+
borderColor: token.disabledBorderColor
|
|
17453
|
+
}), '& *', {
|
|
17454
|
+
cursor: 'not-allowed'
|
|
17455
|
+
})), defineProperty_default()(defineProperty_default()(_ref2, "".concat(name, "Underline"), {
|
|
17421
17456
|
'&&': {
|
|
17422
17457
|
borderLeftColor: 'transparent',
|
|
17423
17458
|
borderRightColor: 'transparent',
|
|
@@ -22342,6 +22377,10 @@ var replaceCssVarValue = function replaceCssVarValue(innerHTML, cssvar, targetVa
|
|
|
22342
22377
|
}
|
|
22343
22378
|
return innerHTML.replace(regex, "".concat(cssvar, ": ").concat(targetValue, ";"));
|
|
22344
22379
|
};
|
|
22380
|
+
var isCustomToken = function isCustomToken(key) {
|
|
22381
|
+
if (key.startsWith('--')) return true;
|
|
22382
|
+
return false;
|
|
22383
|
+
};
|
|
22345
22384
|
var setToken = function setToken(options) {
|
|
22346
22385
|
var _ref = options || {},
|
|
22347
22386
|
_ref$tagName = _ref.tagName,
|
|
@@ -22369,7 +22408,7 @@ var setToken = function setToken(options) {
|
|
|
22369
22408
|
var extraToken = getExtraToken(prefix);
|
|
22370
22409
|
if (update && token) {
|
|
22371
22410
|
Object.keys(token).forEach(function (key) {
|
|
22372
|
-
var cssvar = "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22411
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22373
22412
|
var targetValue = token[key];
|
|
22374
22413
|
tag.innerHTML = replaceCssVarValue(tag.innerHTML, cssvar, targetValue);
|
|
22375
22414
|
});
|
|
@@ -22379,12 +22418,14 @@ var setToken = function setToken(options) {
|
|
|
22379
22418
|
Object.keys(defaultToken).filter(function (item) {
|
|
22380
22419
|
return (customExtraToken || ['Brand-6', 'Neutral-6']).includes(item);
|
|
22381
22420
|
}).forEach(function (key) {
|
|
22382
|
-
var
|
|
22421
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22422
|
+
var token = "".concat(cssvar, ":").concat(defaultToken[key]);
|
|
22383
22423
|
tokens.push(token);
|
|
22384
22424
|
});
|
|
22385
22425
|
} else {
|
|
22386
22426
|
Object.keys(defaultToken).forEach(function (key) {
|
|
22387
|
-
var
|
|
22427
|
+
var cssvar = isCustomToken(key) ? key : "--".concat(prefix, "-").concat(camelCaseToDash(key));
|
|
22428
|
+
var token = "".concat(cssvar, ":").concat(defaultToken[key]);
|
|
22388
22429
|
tokens.push(token);
|
|
22389
22430
|
});
|
|
22390
22431
|
}
|
|
@@ -24089,7 +24130,7 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
24089
24130
|
hideTag: {},
|
|
24090
24131
|
list: {},
|
|
24091
24132
|
tree: {
|
|
24092
|
-
padding:
|
|
24133
|
+
padding: '0 4px',
|
|
24093
24134
|
overflow: 'auto'
|
|
24094
24135
|
},
|
|
24095
24136
|
treeOption: {
|
|
@@ -26794,10 +26835,8 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
26794
26835
|
}
|
|
26795
26836
|
},
|
|
26796
26837
|
rowHover: {
|
|
26797
|
-
'& td': {
|
|
26798
|
-
transition: 'background-color 0.2s'
|
|
26799
|
-
},
|
|
26800
26838
|
'&&:hover td': {
|
|
26839
|
+
transition: 'background-color 0.2s',
|
|
26801
26840
|
background: "".concat(src.tableTbodyHoverBackgroundColor)
|
|
26802
26841
|
}
|
|
26803
26842
|
},
|
|
@@ -27523,7 +27562,6 @@ var tabsStyle = {
|
|
|
27523
27562
|
},
|
|
27524
27563
|
headerWrapper: objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
27525
27564
|
display: 'flex',
|
|
27526
|
-
overflow: 'hidden',
|
|
27527
27565
|
position: 'relative',
|
|
27528
27566
|
'&[data-soui-position^="top-"],&[data-soui-position^="bottom-"]': {
|
|
27529
27567
|
alignItems: 'center',
|
|
@@ -27578,10 +27616,12 @@ var tabsStyle = {
|
|
|
27578
27616
|
'& $tab': {
|
|
27579
27617
|
display: 'block'
|
|
27580
27618
|
},
|
|
27581
|
-
'
|
|
27619
|
+
'&& $tab + $tab': {
|
|
27582
27620
|
marginTop: src.tabsNearlyMargin
|
|
27583
27621
|
},
|
|
27584
27622
|
'& $next,& $prev': {
|
|
27623
|
+
// 考虑垂直方向可滚动功能时一并修复zIndex
|
|
27624
|
+
// zIndex: 1,
|
|
27585
27625
|
padding: "".concat(src.tabsActionVerticalPaddingY, " ").concat(src.tabsActionVerticalPaddingX),
|
|
27586
27626
|
'&:after': {
|
|
27587
27627
|
display: 'none'
|
|
@@ -27722,7 +27762,9 @@ var tabsStyle = {
|
|
|
27722
27762
|
whiteSpace: 'nowrap',
|
|
27723
27763
|
overflow: 'hidden',
|
|
27724
27764
|
'$headerWrapper[data-soui-shape="card"] &': {
|
|
27765
|
+
marginTop: "calc(-1 * ".concat(src.tabsBadgeMargin, ")"),
|
|
27725
27766
|
'& $tab': {
|
|
27767
|
+
marginTop: src.tabsBadgeMargin,
|
|
27726
27768
|
position: 'relative',
|
|
27727
27769
|
border: "1px solid ".concat(src.tabsCardBorderColor),
|
|
27728
27770
|
padding: "".concat(src.tabsCardPaddingY, " ").concat(src.tabsCardPaddingX),
|
|
@@ -27751,7 +27793,7 @@ var tabsStyle = {
|
|
|
27751
27793
|
'$headerWrapper[data-soui-shape="line"] &': {
|
|
27752
27794
|
'& $tab': {
|
|
27753
27795
|
position: 'relative',
|
|
27754
|
-
padding: "".concat(src.
|
|
27796
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27755
27797
|
color: src.tabsLineFontColor,
|
|
27756
27798
|
fontSize: src.tabsLineFontSize,
|
|
27757
27799
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -27801,7 +27843,7 @@ var tabsStyle = {
|
|
|
27801
27843
|
},
|
|
27802
27844
|
'$headerWrapper[data-soui-shape="dash"] &': {
|
|
27803
27845
|
'& $tab': {
|
|
27804
|
-
padding: "".concat(src.
|
|
27846
|
+
padding: "".concat(src.tabsLinePaddingTop, " ").concat(src.tabsLinePaddingX, " ").concat(src.tabsLinePaddingBottom),
|
|
27805
27847
|
color: src.tabsLineFontColor,
|
|
27806
27848
|
fontSize: src.tabsLineFontSize,
|
|
27807
27849
|
fontWeight: src.tabsLineFontWeight,
|
|
@@ -28102,7 +28144,7 @@ var TagStyle = {
|
|
|
28102
28144
|
wrapper: {
|
|
28103
28145
|
flex: 1,
|
|
28104
28146
|
minWidth: 0,
|
|
28105
|
-
lineHeight: src.
|
|
28147
|
+
lineHeight: src.tagDefaultLineHeight
|
|
28106
28148
|
},
|
|
28107
28149
|
inline: {
|
|
28108
28150
|
display: 'inline-block',
|
|
@@ -28122,6 +28164,12 @@ var TagStyle = {
|
|
|
28122
28164
|
width: 14,
|
|
28123
28165
|
height: 14
|
|
28124
28166
|
}
|
|
28167
|
+
},
|
|
28168
|
+
'& $wrapper': {
|
|
28169
|
+
lineHeight: src.tagLargeLineHeight
|
|
28170
|
+
},
|
|
28171
|
+
'& $closeIcon': {
|
|
28172
|
+
height: src.tagLargeLineHeight
|
|
28125
28173
|
}
|
|
28126
28174
|
},
|
|
28127
28175
|
small: {
|
|
@@ -28131,10 +28179,10 @@ var TagStyle = {
|
|
|
28131
28179
|
fontWeight: src.tagSmallFontWeight,
|
|
28132
28180
|
borderRadius: src.tagSmallBorderRadius,
|
|
28133
28181
|
'& $wrapper': {
|
|
28134
|
-
lineHeight: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28182
|
+
lineHeight: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28135
28183
|
},
|
|
28136
28184
|
'& $closeIcon': {
|
|
28137
|
-
height: "calc(".concat(src.tagSmallFontSize, " + 6px)")
|
|
28185
|
+
height: "var(".concat(src.tagSmallLineHeight, ", calc(").concat(src.tagSmallFontSize, " + 6px))")
|
|
28138
28186
|
},
|
|
28139
28187
|
'& $closeIconWrapper': {
|
|
28140
28188
|
width: "calc(".concat(src.tagSmallFontSize, " + 6px)"),
|
|
@@ -28157,7 +28205,7 @@ var TagStyle = {
|
|
|
28157
28205
|
alignItems: 'center',
|
|
28158
28206
|
display: 'inline-flex',
|
|
28159
28207
|
cursor: 'pointer',
|
|
28160
|
-
height: src.
|
|
28208
|
+
height: src.tagDefaultLineHeight,
|
|
28161
28209
|
maxHeight: '100%'
|
|
28162
28210
|
},
|
|
28163
28211
|
closeIconWrapper: {
|
|
@@ -31864,7 +31912,7 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31864
31912
|
// EXTERNAL MODULE: external {"root":"ReactDOM","commonjs2":"react-dom","commonjs":"react-dom","amd":"react-dom"}
|
|
31865
31913
|
var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(5156);
|
|
31866
31914
|
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_);
|
|
31867
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.
|
|
31915
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.3.3_react@18.3.1/node_modules/@shined/reactive/dist/chunk-22VVHX5B.js
|
|
31868
31916
|
|
|
31869
31917
|
// src/vanilla/ref.ts
|
|
31870
31918
|
function _array_like_to_array(arr, len) {
|
|
@@ -31878,6 +31926,19 @@ function _array_with_holes(arr) {
|
|
|
31878
31926
|
function _array_without_holes(arr) {
|
|
31879
31927
|
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
31880
31928
|
}
|
|
31929
|
+
function _define_property(obj, key, value) {
|
|
31930
|
+
if (key in obj) {
|
|
31931
|
+
Object.defineProperty(obj, key, {
|
|
31932
|
+
value: value,
|
|
31933
|
+
enumerable: true,
|
|
31934
|
+
configurable: true,
|
|
31935
|
+
writable: true
|
|
31936
|
+
});
|
|
31937
|
+
} else {
|
|
31938
|
+
obj[key] = value;
|
|
31939
|
+
}
|
|
31940
|
+
return obj;
|
|
31941
|
+
}
|
|
31881
31942
|
function _instanceof(left, right) {
|
|
31882
31943
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
31883
31944
|
return !!right[Symbol.hasInstance](left);
|
|
@@ -31918,12 +31979,56 @@ function _non_iterable_rest() {
|
|
|
31918
31979
|
function _non_iterable_spread() {
|
|
31919
31980
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
31920
31981
|
}
|
|
31982
|
+
function _object_spread(target) {
|
|
31983
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
31984
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
31985
|
+
var ownKeys = Object.keys(source);
|
|
31986
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
31987
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
31988
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
31989
|
+
}));
|
|
31990
|
+
}
|
|
31991
|
+
ownKeys.forEach(function (key) {
|
|
31992
|
+
_define_property(target, key, source[key]);
|
|
31993
|
+
});
|
|
31994
|
+
}
|
|
31995
|
+
return target;
|
|
31996
|
+
}
|
|
31997
|
+
function ownKeys(object, enumerableOnly) {
|
|
31998
|
+
var keys = Object.keys(object);
|
|
31999
|
+
if (Object.getOwnPropertySymbols) {
|
|
32000
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32001
|
+
if (enumerableOnly) {
|
|
32002
|
+
symbols = symbols.filter(function (sym) {
|
|
32003
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32004
|
+
});
|
|
32005
|
+
}
|
|
32006
|
+
keys.push.apply(keys, symbols);
|
|
32007
|
+
}
|
|
32008
|
+
return keys;
|
|
32009
|
+
}
|
|
32010
|
+
function _object_spread_props(target, source) {
|
|
32011
|
+
source = source != null ? source : {};
|
|
32012
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
32013
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
32014
|
+
} else {
|
|
32015
|
+
ownKeys(Object(source)).forEach(function (key) {
|
|
32016
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32017
|
+
});
|
|
32018
|
+
}
|
|
32019
|
+
return target;
|
|
32020
|
+
}
|
|
31921
32021
|
function _sliced_to_array(arr, i) {
|
|
31922
32022
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
31923
32023
|
}
|
|
31924
32024
|
function _to_consumable_array(arr) {
|
|
31925
32025
|
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
31926
32026
|
}
|
|
32027
|
+
function _type_of(obj) {
|
|
32028
|
+
"@swc/helpers - typeof";
|
|
32029
|
+
|
|
32030
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : helpers_typeof(obj);
|
|
32031
|
+
}
|
|
31927
32032
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
31928
32033
|
if (!o) return;
|
|
31929
32034
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -31937,26 +32042,124 @@ function ref(o) {
|
|
|
31937
32042
|
internal_refSet.add(o);
|
|
31938
32043
|
return o;
|
|
31939
32044
|
}
|
|
31940
|
-
function
|
|
32045
|
+
function isRef(k) {
|
|
31941
32046
|
return internal_refSet.has(k);
|
|
31942
32047
|
}
|
|
32048
|
+
function deepCloneWithRef(initialState) {
|
|
32049
|
+
var cloned = createObjectFromPrototype(initialState);
|
|
32050
|
+
for (var key in initialState) {
|
|
32051
|
+
var value = initialState[key];
|
|
32052
|
+
if (chunk_22VVHX5B_isObject(value)) {
|
|
32053
|
+
if (isRef(value)) {
|
|
32054
|
+
cloned[key] = value;
|
|
32055
|
+
} else {
|
|
32056
|
+
cloned[key] = deepCloneWithRef(value);
|
|
32057
|
+
}
|
|
32058
|
+
} else {
|
|
32059
|
+
cloned[key] = value;
|
|
32060
|
+
}
|
|
32061
|
+
}
|
|
32062
|
+
return cloned;
|
|
32063
|
+
}
|
|
32064
|
+
// src/utils/react-fast-compare.ts
|
|
32065
|
+
var hasMap = typeof Map === "function";
|
|
32066
|
+
var hasSet = typeof Set === "function";
|
|
32067
|
+
var hasHTMLElementType = typeof HTMLElement !== "undefined";
|
|
32068
|
+
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
32069
|
+
function reactFastCompare(objA, objB) {
|
|
32070
|
+
try {
|
|
32071
|
+
return equal(objA, objB);
|
|
32072
|
+
} catch (error) {
|
|
32073
|
+
if ((error.message || "").match(/stack|recursion/i)) {
|
|
32074
|
+
console.warn("react-fast-compare cannot handle circular refs");
|
|
32075
|
+
return false;
|
|
32076
|
+
}
|
|
32077
|
+
throw error;
|
|
32078
|
+
}
|
|
32079
|
+
}
|
|
32080
|
+
function equal(objA, objB) {
|
|
32081
|
+
if (objA === objB) return true;
|
|
32082
|
+
if (objA && objB && (typeof objA === "undefined" ? "undefined" : _type_of(objA)) === "object" && (typeof objB === "undefined" ? "undefined" : _type_of(objB)) === "object") {
|
|
32083
|
+
if (objA.constructor !== objB.constructor) return false;
|
|
32084
|
+
var length;
|
|
32085
|
+
var i;
|
|
32086
|
+
var keys;
|
|
32087
|
+
if (Array.isArray(objA)) {
|
|
32088
|
+
length = objA.length;
|
|
32089
|
+
if (length !== objB.length) return false;
|
|
32090
|
+
for (i = length; i-- !== 0;) if (!equal(objA[i], objB[i])) return false;
|
|
32091
|
+
return true;
|
|
32092
|
+
}
|
|
32093
|
+
var it;
|
|
32094
|
+
if (hasMap && _instanceof(objA, Map) && _instanceof(objB, Map)) {
|
|
32095
|
+
if (objA.size !== objB.size) return false;
|
|
32096
|
+
it = objA.entries();
|
|
32097
|
+
while (!(i = it.next()).done) if (!objB.has(i.value[0])) return false;
|
|
32098
|
+
it = objA.entries();
|
|
32099
|
+
while (!(i = it.next()).done) if (!equal(i.value[1], objB.get(i.value[0]))) return false;
|
|
32100
|
+
return true;
|
|
32101
|
+
}
|
|
32102
|
+
if (hasSet && _instanceof(objA, Set) && _instanceof(objB, Set)) {
|
|
32103
|
+
if (objA.size !== objB.size) return false;
|
|
32104
|
+
it = objA.entries();
|
|
32105
|
+
while (!(i = it.next()).done) if (!objB.has(i.value[0])) return false;
|
|
32106
|
+
return true;
|
|
32107
|
+
}
|
|
32108
|
+
if (hasArrayBuffer && ArrayBuffer.isView(objA) && ArrayBuffer.isView(objB)) {
|
|
32109
|
+
length = objA === null || objA === void 0 ? void 0 : objA.length;
|
|
32110
|
+
if (length !== (objB === null || objB === void 0 ? void 0 : objB.length)) return false;
|
|
32111
|
+
for (i = length; i-- !== 0;) if (objA[i] !== objB[i]) return false;
|
|
32112
|
+
return true;
|
|
32113
|
+
}
|
|
32114
|
+
if (objA.constructor === RegExp) return objA.source === objB.source && objA.flags === objB.flags;
|
|
32115
|
+
if (objA.valueOf !== Object.prototype.valueOf && typeof objA.valueOf === "function" && typeof objB.valueOf === "function") return objA.valueOf() === objB.valueOf();
|
|
32116
|
+
if (objA.toString !== Object.prototype.toString && typeof objA.toString === "function" && typeof objB.toString === "function") return objA.toString() === objB.toString();
|
|
32117
|
+
keys = Object.keys(objA);
|
|
32118
|
+
length = keys.length;
|
|
32119
|
+
if (length !== Object.keys(objB).length) return false;
|
|
32120
|
+
for (i = length; i-- !== 0;) if (!Object.prototype.hasOwnProperty.call(objB, keys[i])) return false;
|
|
32121
|
+
if (hasHTMLElementType && _instanceof(objA, HTMLElement)) return false;
|
|
32122
|
+
for (i = length; i-- !== 0;) {
|
|
32123
|
+
if ((keys[i] === "_owner" || keys[i] === "__v" || keys[i] === "__o") && objA.$$typeof) {
|
|
32124
|
+
continue;
|
|
32125
|
+
}
|
|
32126
|
+
if (!equal(objA[keys[i]], objB[keys[i]])) return false;
|
|
32127
|
+
}
|
|
32128
|
+
return true;
|
|
32129
|
+
}
|
|
32130
|
+
return objA !== objA && objB !== objB;
|
|
32131
|
+
}
|
|
31943
32132
|
// src/utils/index.ts
|
|
31944
|
-
var SNAPSHOT = Symbol("SNAPSHOT");
|
|
31945
|
-
var LISTENERS = Symbol("LISTENERS");
|
|
31946
|
-
var REACTIVE = Symbol("REACTIVE");
|
|
31947
|
-
var
|
|
32133
|
+
var SNAPSHOT = Symbol.for("SNAPSHOT");
|
|
32134
|
+
var LISTENERS = Symbol.for("LISTENERS");
|
|
32135
|
+
var REACTIVE = Symbol.for("REACTIVE");
|
|
32136
|
+
var PROXY_COUNT = Symbol.for("PROXY_COUNT");
|
|
32137
|
+
var chunk_22VVHX5B_isProduction = (/* unused pure expression or super */ null && ("production" === "production"));
|
|
32138
|
+
var noop = function noop() {};
|
|
31948
32139
|
var hasOwn = Object.prototype.hasOwnProperty;
|
|
31949
|
-
var
|
|
31950
|
-
return
|
|
32140
|
+
var chunk_22VVHX5B_isObject = function isObject(x) {
|
|
32141
|
+
return (typeof x === "undefined" ? "undefined" : _type_of(x)) === "object" && x !== null;
|
|
31951
32142
|
};
|
|
31952
|
-
var
|
|
31953
|
-
return
|
|
32143
|
+
var chunk_22VVHX5B_isBoolean = function isBoolean(x) {
|
|
32144
|
+
return typeof x === "boolean";
|
|
31954
32145
|
};
|
|
31955
|
-
var
|
|
31956
|
-
return
|
|
32146
|
+
var isFunction = function isFunction(x) {
|
|
32147
|
+
return typeof x === "function";
|
|
31957
32148
|
};
|
|
32149
|
+
function createObjectFromPrototype(target) {
|
|
32150
|
+
return Array.isArray(target) ? [] : Object.create(Object.getPrototypeOf(target));
|
|
32151
|
+
}
|
|
32152
|
+
function canProxy(x) {
|
|
32153
|
+
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) && (
|
|
32154
|
+
// from node 18 & 20
|
|
32155
|
+
typeof File === "undefined" || !_instanceof(x, File)) && (
|
|
32156
|
+
// from node 18
|
|
32157
|
+
typeof Blob === "undefined" || !_instanceof(x, Blob)) && (
|
|
32158
|
+
// from node 18
|
|
32159
|
+
typeof FormData === "undefined" || !_instanceof(x, FormData));
|
|
32160
|
+
}
|
|
31958
32161
|
var numberReg = /^\d+$/;
|
|
31959
|
-
|
|
32162
|
+
function propertyKeysToPath(keys) {
|
|
31960
32163
|
var path = "";
|
|
31961
32164
|
var length = keys.length;
|
|
31962
32165
|
for (var i = 0; i < length; i++) {
|
|
@@ -31968,8 +32171,8 @@ var propertyKeysToPath = function propertyKeysToPath(keys) {
|
|
|
31968
32171
|
}
|
|
31969
32172
|
}
|
|
31970
32173
|
return path;
|
|
31971
|
-
}
|
|
31972
|
-
|
|
32174
|
+
}
|
|
32175
|
+
function get(object, path) {
|
|
31973
32176
|
var defaultValue = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : void 0;
|
|
31974
32177
|
var keys = Array.isArray(path) ? path : [path];
|
|
31975
32178
|
var _iteratorNormalCompletion = true,
|
|
@@ -31996,12 +32199,12 @@ var get = function get(object, path) {
|
|
|
31996
32199
|
}
|
|
31997
32200
|
}
|
|
31998
32201
|
return object;
|
|
31999
|
-
}
|
|
32000
|
-
|
|
32202
|
+
}
|
|
32203
|
+
function chunk_22VVHX5B_shallowEqual(objA, objB) {
|
|
32001
32204
|
if (Object.is(objA, objB)) {
|
|
32002
32205
|
return true;
|
|
32003
32206
|
}
|
|
32004
|
-
if (
|
|
32207
|
+
if ((typeof objA === "undefined" ? "undefined" : _type_of(objA)) !== "object" || objA === null || (typeof objB === "undefined" ? "undefined" : _type_of(objB)) !== "object" || objB === null) {
|
|
32005
32208
|
return false;
|
|
32006
32209
|
}
|
|
32007
32210
|
if (_instanceof(objA, Map) && _instanceof(objB, Map)) {
|
|
@@ -32073,16 +32276,116 @@ var chunk_IP2WBRUX_shallowEqual = function shallowEqual(objA, objB) {
|
|
|
32073
32276
|
}
|
|
32074
32277
|
}
|
|
32075
32278
|
return true;
|
|
32076
|
-
}
|
|
32077
|
-
|
|
32078
|
-
|
|
32079
|
-
|
|
32279
|
+
}
|
|
32280
|
+
function deepEqual(objA, objB) {
|
|
32281
|
+
return reactFastCompare(objA, objB);
|
|
32282
|
+
}
|
|
32283
|
+
// src/vanilla/snapshot.ts
|
|
32284
|
+
function snapshot(proxyState) {
|
|
32285
|
+
var selector = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function (s) {
|
|
32286
|
+
return s;
|
|
32287
|
+
};
|
|
32288
|
+
return selector(proxyState[SNAPSHOT]);
|
|
32289
|
+
}
|
|
32290
|
+
var getSnapshot = (/* unused pure expression or super */ null && (snapshot));
|
|
32291
|
+
// src/enhancers/vanilla/with-snapshot.ts
|
|
32292
|
+
function withSnapshot(store) {
|
|
32293
|
+
var _snapshot = function _snapshot() {
|
|
32294
|
+
var selector = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function (s) {
|
|
32295
|
+
return s;
|
|
32296
|
+
};
|
|
32297
|
+
return snapshot(store.mutate, selector);
|
|
32298
|
+
};
|
|
32299
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32300
|
+
snapshot: _snapshot
|
|
32301
|
+
});
|
|
32302
|
+
}
|
|
32303
|
+
// src/vanilla/subscribe.ts
|
|
32304
|
+
var globalNotifyInSync = false;
|
|
32305
|
+
function setGlobalNotifyInSync(value) {
|
|
32306
|
+
globalNotifyInSync = value;
|
|
32307
|
+
}
|
|
32308
|
+
function subscribe(proxyState, callback, notifyInSync) {
|
|
32309
|
+
var promise;
|
|
32310
|
+
var previousState = snapshot(proxyState);
|
|
32311
|
+
var callbacks = /* @__PURE__ */new Set();
|
|
32312
|
+
var runCallbacks = function runCallbacks() {
|
|
32313
|
+
var _iteratorNormalCompletion = true,
|
|
32314
|
+
_didIteratorError = false,
|
|
32315
|
+
_iteratorError = undefined;
|
|
32316
|
+
try {
|
|
32317
|
+
for (var _iterator = callbacks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32318
|
+
var callback2 = _step.value;
|
|
32319
|
+
callback2();
|
|
32320
|
+
}
|
|
32321
|
+
} catch (err) {
|
|
32322
|
+
_didIteratorError = true;
|
|
32323
|
+
_iteratorError = err;
|
|
32324
|
+
} finally {
|
|
32325
|
+
try {
|
|
32326
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32327
|
+
_iterator.return();
|
|
32328
|
+
}
|
|
32329
|
+
} finally {
|
|
32330
|
+
if (_didIteratorError) {
|
|
32331
|
+
throw _iteratorError;
|
|
32332
|
+
}
|
|
32333
|
+
}
|
|
32334
|
+
}
|
|
32335
|
+
callbacks.clear();
|
|
32336
|
+
previousState = snapshot(proxyState);
|
|
32337
|
+
};
|
|
32338
|
+
function listener(props, version) {
|
|
32339
|
+
var currentState = snapshot(proxyState);
|
|
32340
|
+
var changes = {
|
|
32341
|
+
props: props,
|
|
32342
|
+
propsPath: propertyKeysToPath(props),
|
|
32343
|
+
previous: get(previousState, props),
|
|
32344
|
+
current: get(currentState, props),
|
|
32345
|
+
snapshot: currentState
|
|
32346
|
+
};
|
|
32347
|
+
callbacks.add(function () {
|
|
32348
|
+
return void callback(changes, version);
|
|
32349
|
+
});
|
|
32350
|
+
var finalNotifyInSync = chunk_22VVHX5B_isBoolean(notifyInSync) ? notifyInSync : globalNotifyInSync;
|
|
32351
|
+
if (finalNotifyInSync) {
|
|
32352
|
+
return void runCallbacks();
|
|
32353
|
+
}
|
|
32354
|
+
if (!promise) {
|
|
32355
|
+
promise = Promise.resolve().then(function () {
|
|
32356
|
+
promise = void 0;
|
|
32357
|
+
runCallbacks();
|
|
32358
|
+
});
|
|
32359
|
+
}
|
|
32360
|
+
}
|
|
32361
|
+
;
|
|
32362
|
+
proxyState[LISTENERS].add(listener);
|
|
32363
|
+
return function () {
|
|
32364
|
+
;
|
|
32365
|
+
proxyState[LISTENERS].delete(listener);
|
|
32366
|
+
};
|
|
32367
|
+
}
|
|
32368
|
+
// src/enhancers/vanilla/with-subscribe.ts
|
|
32369
|
+
function withSubscribe(store) {
|
|
32370
|
+
function boundSubscribe(listener, sync) {
|
|
32371
|
+
var selector = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : function (s) {
|
|
32372
|
+
return s;
|
|
32373
|
+
};
|
|
32374
|
+
return subscribe(selector(store.mutate), listener, sync);
|
|
32375
|
+
}
|
|
32376
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32377
|
+
subscribe: boundSubscribe
|
|
32378
|
+
});
|
|
32080
32379
|
}
|
|
32081
32380
|
// src/vanilla/proxy.ts
|
|
32082
32381
|
var globalVersion = 1;
|
|
32083
32382
|
var snapshotCache = /* @__PURE__ */new WeakMap();
|
|
32084
32383
|
function proxy(initState) {
|
|
32085
|
-
var parentProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : []
|
|
32384
|
+
var parentProps = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [],
|
|
32385
|
+
options = arguments.length > 2 ? arguments[2] : void 0;
|
|
32386
|
+
var _ref = options || {},
|
|
32387
|
+
_ref_addParentProxyCount = _ref.addParentProxyCount,
|
|
32388
|
+
addParentProxyCount = _ref_addParentProxyCount === void 0 ? function () {} : _ref_addParentProxyCount;
|
|
32086
32389
|
var version = globalVersion;
|
|
32087
32390
|
var listeners = /* @__PURE__ */new Set();
|
|
32088
32391
|
var propListenerMap = /* @__PURE__ */new Map();
|
|
@@ -32090,9 +32393,28 @@ function proxy(initState) {
|
|
|
32090
32393
|
var nextVersion = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : ++globalVersion;
|
|
32091
32394
|
if (version !== nextVersion) {
|
|
32092
32395
|
version = nextVersion;
|
|
32093
|
-
|
|
32094
|
-
|
|
32095
|
-
|
|
32396
|
+
var _iteratorNormalCompletion = true,
|
|
32397
|
+
_didIteratorError = false,
|
|
32398
|
+
_iteratorError = undefined;
|
|
32399
|
+
try {
|
|
32400
|
+
for (var _iterator = listeners[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32401
|
+
var callback = _step.value;
|
|
32402
|
+
callback(props, version);
|
|
32403
|
+
}
|
|
32404
|
+
} catch (err) {
|
|
32405
|
+
_didIteratorError = true;
|
|
32406
|
+
_iteratorError = err;
|
|
32407
|
+
} finally {
|
|
32408
|
+
try {
|
|
32409
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32410
|
+
_iterator.return();
|
|
32411
|
+
}
|
|
32412
|
+
} finally {
|
|
32413
|
+
if (_didIteratorError) {
|
|
32414
|
+
throw _iteratorError;
|
|
32415
|
+
}
|
|
32416
|
+
}
|
|
32417
|
+
}
|
|
32096
32418
|
}
|
|
32097
32419
|
};
|
|
32098
32420
|
var getPropListener = function getPropListener(prop) {
|
|
@@ -32113,23 +32435,49 @@ function proxy(initState) {
|
|
|
32113
32435
|
var createSnapshot = function createSnapshot(target, receiver) {
|
|
32114
32436
|
var cache = snapshotCache.get(receiver);
|
|
32115
32437
|
if ((cache === null || cache === void 0 ? void 0 : cache[0]) === version) return cache[1];
|
|
32116
|
-
var
|
|
32117
|
-
snapshotCache.set(receiver, [version,
|
|
32118
|
-
|
|
32119
|
-
|
|
32120
|
-
|
|
32121
|
-
|
|
32122
|
-
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
-
|
|
32126
|
-
|
|
32438
|
+
var nextSnapshot = createObjectFromPrototype(target);
|
|
32439
|
+
snapshotCache.set(receiver, [version, nextSnapshot]);
|
|
32440
|
+
var _iteratorNormalCompletion = true,
|
|
32441
|
+
_didIteratorError = false,
|
|
32442
|
+
_iteratorError = undefined;
|
|
32443
|
+
try {
|
|
32444
|
+
for (var _iterator = Reflect.ownKeys(target)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32445
|
+
var key = _step.value;
|
|
32446
|
+
if (key === REACTIVE || key === PROXY_COUNT) continue;
|
|
32447
|
+
var value = Reflect.get(target, key, receiver);
|
|
32448
|
+
if (value === null || value === void 0 ? void 0 : value[REACTIVE]) {
|
|
32449
|
+
nextSnapshot[key] = snapshot(value);
|
|
32450
|
+
} else {
|
|
32451
|
+
nextSnapshot[key] = value;
|
|
32452
|
+
}
|
|
32127
32453
|
}
|
|
32128
|
-
})
|
|
32129
|
-
|
|
32130
|
-
|
|
32454
|
+
} catch (err) {
|
|
32455
|
+
_didIteratorError = true;
|
|
32456
|
+
_iteratorError = err;
|
|
32457
|
+
} finally {
|
|
32458
|
+
try {
|
|
32459
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32460
|
+
_iterator.return();
|
|
32461
|
+
}
|
|
32462
|
+
} finally {
|
|
32463
|
+
if (_didIteratorError) {
|
|
32464
|
+
throw _iteratorError;
|
|
32465
|
+
}
|
|
32466
|
+
}
|
|
32467
|
+
}
|
|
32468
|
+
Object.preventExtensions(nextSnapshot);
|
|
32469
|
+
return nextSnapshot;
|
|
32131
32470
|
};
|
|
32132
32471
|
var baseObject = createObjectFromPrototype(initState);
|
|
32472
|
+
var addCurrentProxyCount = function addCurrentProxyCount() {
|
|
32473
|
+
var value = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 1;
|
|
32474
|
+
addParentProxyCount(value);
|
|
32475
|
+
var count = Reflect.get(proxyState, PROXY_COUNT) || 1;
|
|
32476
|
+
Reflect.defineProperty(proxyState, PROXY_COUNT, {
|
|
32477
|
+
value: count + value,
|
|
32478
|
+
writable: true
|
|
32479
|
+
});
|
|
32480
|
+
};
|
|
32133
32481
|
var proxyState = new Proxy(baseObject, {
|
|
32134
32482
|
get: function get(target, prop, receiver) {
|
|
32135
32483
|
if (prop === LISTENERS) {
|
|
@@ -32144,15 +32492,24 @@ function proxy(initState) {
|
|
|
32144
32492
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32145
32493
|
var preValue = Reflect.get(target, prop, receiver);
|
|
32146
32494
|
var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
|
|
32147
|
-
|
|
32148
|
-
|
|
32495
|
+
if (childListeners) {
|
|
32496
|
+
childListeners.delete(popPropListener(prop));
|
|
32497
|
+
}
|
|
32498
|
+
if (!chunk_22VVHX5B_isObject(value) && Object.is(preValue, value)) {
|
|
32149
32499
|
return true;
|
|
32150
32500
|
}
|
|
32151
32501
|
var nextValue = value;
|
|
32152
32502
|
if (nextValue === null || nextValue === void 0 ? void 0 : nextValue[LISTENERS]) {
|
|
32153
32503
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32154
32504
|
} else if (canProxy(value)) {
|
|
32155
|
-
|
|
32505
|
+
if (preValue === null || preValue === void 0 ? void 0 : preValue[REACTIVE]) {
|
|
32506
|
+
var childrenCount = (preValue === null || preValue === void 0 ? void 0 : preValue[PROXY_COUNT]) || 1;
|
|
32507
|
+
addCurrentProxyCount(-childrenCount);
|
|
32508
|
+
}
|
|
32509
|
+
addCurrentProxyCount(1);
|
|
32510
|
+
nextValue = proxy(value, props, {
|
|
32511
|
+
addParentProxyCount: addCurrentProxyCount
|
|
32512
|
+
});
|
|
32156
32513
|
nextValue[LISTENERS].add(getPropListener(prop));
|
|
32157
32514
|
}
|
|
32158
32515
|
var success = Reflect.set(target, prop, nextValue, receiver);
|
|
@@ -32160,110 +32517,145 @@ function proxy(initState) {
|
|
|
32160
32517
|
return success;
|
|
32161
32518
|
},
|
|
32162
32519
|
deleteProperty: function deleteProperty(target, prop) {
|
|
32163
|
-
var _Reflect_get;
|
|
32164
32520
|
var props = _to_consumable_array(parentProps).concat([prop]);
|
|
32165
|
-
var
|
|
32166
|
-
childListeners
|
|
32521
|
+
var preValue = Reflect.get(target, prop);
|
|
32522
|
+
var childListeners = preValue === null || preValue === void 0 ? void 0 : preValue[LISTENERS];
|
|
32523
|
+
if (childListeners) {
|
|
32524
|
+
childListeners.delete(popPropListener(prop));
|
|
32525
|
+
}
|
|
32526
|
+
if (preValue === null || preValue === void 0 ? void 0 : preValue[REACTIVE]) {
|
|
32527
|
+
var childrenCount = (preValue === null || preValue === void 0 ? void 0 : preValue[PROXY_COUNT]) || 1;
|
|
32528
|
+
addCurrentProxyCount(-childrenCount);
|
|
32529
|
+
}
|
|
32167
32530
|
var success = Reflect.deleteProperty(target, prop);
|
|
32168
32531
|
success && notifyUpdate(props);
|
|
32169
32532
|
return success;
|
|
32170
32533
|
}
|
|
32171
32534
|
});
|
|
32172
|
-
Reflect.ownKeys(initState).forEach(function (key) {
|
|
32173
|
-
proxyState[key] = initState[key];
|
|
32174
|
-
});
|
|
32175
32535
|
Reflect.defineProperty(proxyState, REACTIVE, {
|
|
32176
32536
|
value: true
|
|
32177
32537
|
});
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
var runCallbacks = function runCallbacks() {
|
|
32186
|
-
callbacks.forEach(function (cb) {
|
|
32187
|
-
return void cb();
|
|
32188
|
-
});
|
|
32189
|
-
callbacks.clear();
|
|
32190
|
-
previousState = getSnapshot(proxyState);
|
|
32191
|
-
};
|
|
32192
|
-
var listener = function listener(props, version) {
|
|
32193
|
-
var currentState = getSnapshot(proxyState);
|
|
32194
|
-
var changes = {
|
|
32195
|
-
props: props,
|
|
32196
|
-
propsPath: propertyKeysToPath(props),
|
|
32197
|
-
previous: get(previousState, props),
|
|
32198
|
-
current: get(currentState, props),
|
|
32199
|
-
snapshot: currentState
|
|
32200
|
-
};
|
|
32201
|
-
callbacks.add(function () {
|
|
32202
|
-
return void callback(changes, version);
|
|
32203
|
-
});
|
|
32204
|
-
if (notifyInSync) {
|
|
32205
|
-
return void runCallbacks();
|
|
32538
|
+
var _iteratorNormalCompletion = true,
|
|
32539
|
+
_didIteratorError = false,
|
|
32540
|
+
_iteratorError = undefined;
|
|
32541
|
+
try {
|
|
32542
|
+
for (var _iterator = Reflect.ownKeys(initState)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32543
|
+
var key = _step.value;
|
|
32544
|
+
proxyState[key] = initState[key];
|
|
32206
32545
|
}
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32211
|
-
|
|
32546
|
+
} catch (err) {
|
|
32547
|
+
_didIteratorError = true;
|
|
32548
|
+
_iteratorError = err;
|
|
32549
|
+
} finally {
|
|
32550
|
+
try {
|
|
32551
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32552
|
+
_iterator.return();
|
|
32553
|
+
}
|
|
32554
|
+
} finally {
|
|
32555
|
+
if (_didIteratorError) {
|
|
32556
|
+
throw _iteratorError;
|
|
32557
|
+
}
|
|
32212
32558
|
}
|
|
32213
|
-
}
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
|
|
32218
|
-
|
|
32559
|
+
}
|
|
32560
|
+
if (!Reflect.has(proxyState, PROXY_COUNT)) {
|
|
32561
|
+
Reflect.defineProperty(proxyState, PROXY_COUNT, {
|
|
32562
|
+
value: 1,
|
|
32563
|
+
writable: true
|
|
32564
|
+
});
|
|
32565
|
+
}
|
|
32566
|
+
return proxyState;
|
|
32219
32567
|
}
|
|
32220
32568
|
// src/vanilla/create.ts
|
|
32221
|
-
function
|
|
32222
|
-
|
|
32569
|
+
function createVanilla(initState) {
|
|
32570
|
+
var _options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32223
32571
|
var proxyState = proxy(initState);
|
|
32224
|
-
|
|
32225
|
-
var
|
|
32226
|
-
|
|
32227
|
-
|
|
32572
|
+
function restore() {
|
|
32573
|
+
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
32574
|
+
var _options_exclude = options.exclude,
|
|
32575
|
+
exclude = _options_exclude === void 0 ? [] : _options_exclude;
|
|
32576
|
+
var clonedState = deepCloneWithRef(initState);
|
|
32577
|
+
var initialKeys = Object.keys(initState);
|
|
32578
|
+
var _iteratorNormalCompletion = true,
|
|
32579
|
+
_didIteratorError = false,
|
|
32580
|
+
_iteratorError = undefined;
|
|
32581
|
+
try {
|
|
32582
|
+
for (var _iterator = Object.keys(clonedState)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
32583
|
+
var key = _step.value;
|
|
32584
|
+
if (exclude.includes(key)) continue;
|
|
32585
|
+
proxyState[key] = clonedState[key];
|
|
32586
|
+
}
|
|
32587
|
+
} catch (err) {
|
|
32588
|
+
_didIteratorError = true;
|
|
32589
|
+
_iteratorError = err;
|
|
32590
|
+
} finally {
|
|
32591
|
+
try {
|
|
32592
|
+
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
32593
|
+
_iterator.return();
|
|
32594
|
+
}
|
|
32595
|
+
} finally {
|
|
32596
|
+
if (_didIteratorError) {
|
|
32597
|
+
throw _iteratorError;
|
|
32598
|
+
}
|
|
32599
|
+
}
|
|
32600
|
+
}
|
|
32601
|
+
var addedKeys = Object.keys(proxyState).filter(function (key) {
|
|
32602
|
+
return !initialKeys.includes(key);
|
|
32228
32603
|
});
|
|
32229
|
-
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32604
|
+
var _iteratorNormalCompletion1 = true,
|
|
32605
|
+
_didIteratorError1 = false,
|
|
32606
|
+
_iteratorError1 = undefined;
|
|
32607
|
+
try {
|
|
32608
|
+
for (var _iterator1 = addedKeys[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true) {
|
|
32609
|
+
var key1 = _step1.value;
|
|
32610
|
+
if (exclude.includes(key1)) continue;
|
|
32611
|
+
delete proxyState[key1];
|
|
32612
|
+
}
|
|
32613
|
+
} catch (err) {
|
|
32614
|
+
_didIteratorError1 = true;
|
|
32615
|
+
_iteratorError1 = err;
|
|
32616
|
+
} finally {
|
|
32617
|
+
try {
|
|
32618
|
+
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
32619
|
+
_iterator1.return();
|
|
32620
|
+
}
|
|
32621
|
+
} finally {
|
|
32622
|
+
if (_didIteratorError1) {
|
|
32623
|
+
throw _iteratorError1;
|
|
32624
|
+
}
|
|
32625
|
+
}
|
|
32626
|
+
}
|
|
32627
|
+
}
|
|
32628
|
+
var store = {
|
|
32238
32629
|
mutate: proxyState,
|
|
32239
|
-
subscribe: _subscribe,
|
|
32240
32630
|
restore: restore
|
|
32241
32631
|
};
|
|
32632
|
+
return withSubscribe(withSnapshot(store));
|
|
32242
32633
|
}
|
|
32634
|
+
var chunk_22VVHX5B_create = (/* unused pure expression or super */ null && (createVanilla));
|
|
32243
32635
|
// src/vanilla/devtools.ts
|
|
32244
|
-
function devtools(
|
|
32245
|
-
|
|
32636
|
+
function devtools(store, options) {
|
|
32637
|
+
if (chunk_22VVHX5B_isProduction) return noop;
|
|
32246
32638
|
var ext = window.__REDUX_DEVTOOLS_EXTENSION__;
|
|
32247
32639
|
var _options_enable;
|
|
32248
32640
|
var enable = (_options_enable = options === null || options === void 0 ? void 0 : options.enable) !== null && _options_enable !== void 0 ? _options_enable : true;
|
|
32249
32641
|
var isMutatingStoreByDevtools = false;
|
|
32250
|
-
if (!enable) return
|
|
32642
|
+
if (!enable) return noop;
|
|
32251
32643
|
if (!ext) {
|
|
32252
32644
|
var infos = ["[Warning] to enable devtools, make sure you've installed Redux devtools extension \uD83D\uDC49", "https://github.com/reduxjs/redux-devtools#redux-devtools"];
|
|
32253
32645
|
console.warn(infos.join(" "));
|
|
32254
|
-
return
|
|
32646
|
+
return noop;
|
|
32255
32647
|
}
|
|
32256
32648
|
var _options_name;
|
|
32257
32649
|
var name = (_options_name = options === null || options === void 0 ? void 0 : options.name) !== null && _options_name !== void 0 ? _options_name : "untitled";
|
|
32258
32650
|
var devtools2 = ext.connect(options);
|
|
32259
|
-
var initialState =
|
|
32651
|
+
var initialState = snapshot(store.mutate);
|
|
32260
32652
|
devtools2.init(initialState);
|
|
32261
32653
|
devtools2.subscribe(function (message) {
|
|
32262
32654
|
console.debug("[reactive] message from devtools: ", message);
|
|
32263
32655
|
if (message.type !== "DISPATCH") return;
|
|
32264
32656
|
if (!message.payload) return;
|
|
32265
32657
|
if (message.payload.type === "RESET") devtools2.init(initialState);
|
|
32266
|
-
if (message.payload.type === "COMMIT") devtools2.init(
|
|
32658
|
+
if (message.payload.type === "COMMIT") devtools2.init(snapshot(store.mutate));
|
|
32267
32659
|
var actions = ["ROLLBACK", "JUMP_TO_ACTION"];
|
|
32268
32660
|
var isAction = actions.includes(message.payload.type);
|
|
32269
32661
|
var hasState = message.state && message.state !== "{}";
|
|
@@ -32271,7 +32663,7 @@ function devtools(param, options) {
|
|
|
32271
32663
|
try {
|
|
32272
32664
|
isMutatingStoreByDevtools = true;
|
|
32273
32665
|
var newState = JSON.parse(message.state || "{}");
|
|
32274
|
-
Object.assign(
|
|
32666
|
+
Object.assign(store.mutate, newState);
|
|
32275
32667
|
console.debug("[reactive] mutate state by devtools: ", newState);
|
|
32276
32668
|
} catch (e) {
|
|
32277
32669
|
devtools2.error((e === null || e === void 0 ? void 0 : e.message) || (e === null || e === void 0 ? void 0 : e.toString()) || JSON.stringify(e || ""));
|
|
@@ -32280,11 +32672,11 @@ function devtools(param, options) {
|
|
|
32280
32672
|
}
|
|
32281
32673
|
}
|
|
32282
32674
|
});
|
|
32283
|
-
var unsubscribe = subscribe(
|
|
32675
|
+
var unsubscribe = subscribe(store.mutate, function (changes, version) {
|
|
32284
32676
|
var propsPath = changes.propsPath,
|
|
32285
32677
|
previous = changes.previous,
|
|
32286
32678
|
current = changes.current,
|
|
32287
|
-
|
|
32679
|
+
snapshot2 = changes.snapshot;
|
|
32288
32680
|
if (isMutatingStoreByDevtools) return;
|
|
32289
32681
|
var payload = {
|
|
32290
32682
|
type: "[".concat(canProxy(current) ? "replace" : "set", "] ").concat(propsPath),
|
|
@@ -32293,7 +32685,7 @@ function devtools(param, options) {
|
|
|
32293
32685
|
_updatedAt: /* @__PURE__ */new Date().toLocaleString(),
|
|
32294
32686
|
_innerVersion: version
|
|
32295
32687
|
};
|
|
32296
|
-
devtools2.send(payload,
|
|
32688
|
+
devtools2.send(payload, snapshot2);
|
|
32297
32689
|
console.debug("[reactive] [".concat(name, "] [").concat(getActionType(current), "] ").concat(propsPath), current);
|
|
32298
32690
|
}, true);
|
|
32299
32691
|
console.debug("[reactive] [".concat(name, "] devtools is enabled"));
|
|
@@ -32310,54 +32702,193 @@ function getActionType(state) {
|
|
|
32310
32702
|
function produce(obj, draftHandler) {
|
|
32311
32703
|
var state = proxy(obj);
|
|
32312
32704
|
draftHandler(state);
|
|
32313
|
-
var
|
|
32705
|
+
var nextSnapshot = snapshot(state);
|
|
32314
32706
|
state = null;
|
|
32315
|
-
return
|
|
32707
|
+
return nextSnapshot;
|
|
32708
|
+
}
|
|
32709
|
+
// src/vanilla/proxy-count.ts
|
|
32710
|
+
function proxyCount(proxyState) {
|
|
32711
|
+
var _proxyState_PROXY_COUNT;
|
|
32712
|
+
return (_proxyState_PROXY_COUNT = proxyState === null || proxyState === void 0 ? void 0 : proxyState[PROXY_COUNT]) !== null && _proxyState_PROXY_COUNT !== void 0 ? _proxyState_PROXY_COUNT : 0;
|
|
32713
|
+
}
|
|
32714
|
+
// src/enhancers/vanilla/with-derived.ts
|
|
32715
|
+
function withDerived(store) {
|
|
32716
|
+
var mapFn = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : function (s) {
|
|
32717
|
+
return s;
|
|
32718
|
+
};
|
|
32719
|
+
return _object_spread_props(_object_spread({}, store), {
|
|
32720
|
+
derived: function derived() {
|
|
32721
|
+
return mapFn(store.mutate);
|
|
32722
|
+
}
|
|
32723
|
+
});
|
|
32316
32724
|
}
|
|
32317
32725
|
|
|
32318
|
-
// EXTERNAL MODULE: ../../node_modules/.pnpm/use-sync-external-store@1.
|
|
32319
|
-
var with_selector = __webpack_require__(
|
|
32320
|
-
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.
|
|
32726
|
+
// 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
|
|
32727
|
+
var with_selector = __webpack_require__(3384);
|
|
32728
|
+
;// CONCATENATED MODULE: ../../node_modules/.pnpm/@shined+reactive@0.3.3_react@18.3.1/node_modules/@shined/reactive/dist/chunk-UGXUT7UC.js
|
|
32729
|
+
function chunk_UGXUT7UC_array_like_to_array(arr, len) {
|
|
32730
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
32731
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
32732
|
+
return arr2;
|
|
32733
|
+
}
|
|
32734
|
+
function chunk_UGXUT7UC_array_without_holes(arr) {
|
|
32735
|
+
if (Array.isArray(arr)) return chunk_UGXUT7UC_array_like_to_array(arr);
|
|
32736
|
+
}
|
|
32737
|
+
function chunk_UGXUT7UC_define_property(obj, key, value) {
|
|
32738
|
+
if (key in obj) {
|
|
32739
|
+
Object.defineProperty(obj, key, {
|
|
32740
|
+
value: value,
|
|
32741
|
+
enumerable: true,
|
|
32742
|
+
configurable: true,
|
|
32743
|
+
writable: true
|
|
32744
|
+
});
|
|
32745
|
+
} else {
|
|
32746
|
+
obj[key] = value;
|
|
32747
|
+
}
|
|
32748
|
+
return obj;
|
|
32749
|
+
}
|
|
32750
|
+
function chunk_UGXUT7UC_iterable_to_array(iter) {
|
|
32751
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
32752
|
+
}
|
|
32753
|
+
function chunk_UGXUT7UC_non_iterable_spread() {
|
|
32754
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
32755
|
+
}
|
|
32756
|
+
function chunk_UGXUT7UC_object_spread(target) {
|
|
32757
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32758
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
32759
|
+
var ownKeys = Object.keys(source);
|
|
32760
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
32761
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
|
|
32762
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
32763
|
+
}));
|
|
32764
|
+
}
|
|
32765
|
+
ownKeys.forEach(function (key) {
|
|
32766
|
+
chunk_UGXUT7UC_define_property(target, key, source[key]);
|
|
32767
|
+
});
|
|
32768
|
+
}
|
|
32769
|
+
return target;
|
|
32770
|
+
}
|
|
32771
|
+
function chunk_UGXUT7UC_ownKeys(object, enumerableOnly) {
|
|
32772
|
+
var keys = Object.keys(object);
|
|
32773
|
+
if (Object.getOwnPropertySymbols) {
|
|
32774
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
32775
|
+
if (enumerableOnly) {
|
|
32776
|
+
symbols = symbols.filter(function (sym) {
|
|
32777
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
32778
|
+
});
|
|
32779
|
+
}
|
|
32780
|
+
keys.push.apply(keys, symbols);
|
|
32781
|
+
}
|
|
32782
|
+
return keys;
|
|
32783
|
+
}
|
|
32784
|
+
function chunk_UGXUT7UC_object_spread_props(target, source) {
|
|
32785
|
+
source = source != null ? source : {};
|
|
32786
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
32787
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
32788
|
+
} else {
|
|
32789
|
+
chunk_UGXUT7UC_ownKeys(Object(source)).forEach(function (key) {
|
|
32790
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
32791
|
+
});
|
|
32792
|
+
}
|
|
32793
|
+
return target;
|
|
32794
|
+
}
|
|
32795
|
+
function chunk_UGXUT7UC_to_consumable_array(arr) {
|
|
32796
|
+
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();
|
|
32797
|
+
}
|
|
32798
|
+
function chunk_UGXUT7UC_unsupported_iterable_to_array(o, minLen) {
|
|
32799
|
+
if (!o) return;
|
|
32800
|
+
if (typeof o === "string") return chunk_UGXUT7UC_array_like_to_array(o, minLen);
|
|
32801
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
32802
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
32803
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
32804
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return chunk_UGXUT7UC_array_like_to_array(o, minLen);
|
|
32805
|
+
}
|
|
32321
32806
|
|
|
32322
32807
|
// src/react/use-snapshot.ts
|
|
32323
32808
|
|
|
32324
32809
|
|
|
32325
32810
|
function useSnapshot(proxyState, selectorOrOption, maybeOptions) {
|
|
32326
|
-
|
|
32327
|
-
|
|
32328
|
-
|
|
32811
|
+
var isUnmountedRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
32812
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
32813
|
+
return function () {
|
|
32814
|
+
isUnmountedRef.current = true;
|
|
32815
|
+
};
|
|
32816
|
+
}, []);
|
|
32817
|
+
var options;
|
|
32818
|
+
var selector;
|
|
32819
|
+
if (selectorOrOption && !isFunction(selectorOrOption)) {
|
|
32820
|
+
options = selectorOrOption;
|
|
32821
|
+
selector = void 0;
|
|
32822
|
+
} else {
|
|
32823
|
+
options = maybeOptions;
|
|
32824
|
+
selector = selectorOrOption;
|
|
32329
32825
|
}
|
|
32330
|
-
var _ref =
|
|
32331
|
-
|
|
32332
|
-
updateInSync = tmp === void 0 ? false : tmp,
|
|
32826
|
+
var _ref = options !== null && options !== void 0 ? options : {},
|
|
32827
|
+
updateInSync = _ref.sync,
|
|
32333
32828
|
_ref_isEqual = _ref.isEqual,
|
|
32334
|
-
isEqual = _ref_isEqual === void 0 ?
|
|
32829
|
+
isEqual = _ref_isEqual === void 0 ? chunk_22VVHX5B_shallowEqual : _ref_isEqual;
|
|
32335
32830
|
var _subscribe = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function (callback) {
|
|
32336
32831
|
return subscribe(proxyState, callback, updateInSync);
|
|
32337
32832
|
}, [proxyState, updateInSync]);
|
|
32338
32833
|
var _getSnapshot = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
32339
|
-
return
|
|
32834
|
+
return snapshot(proxyState);
|
|
32340
32835
|
}, [proxyState]);
|
|
32341
|
-
var
|
|
32836
|
+
var _selector = selector || function (s) {
|
|
32342
32837
|
return s;
|
|
32343
32838
|
};
|
|
32344
|
-
var
|
|
32345
|
-
|
|
32839
|
+
var _snapshot = (0,with_selector.useSyncExternalStoreWithSelector)(_subscribe, _getSnapshot, _getSnapshot, _selector, function (a, b) {
|
|
32840
|
+
if (isUnmountedRef.current) return true;
|
|
32841
|
+
return isEqual(a, b);
|
|
32842
|
+
});
|
|
32843
|
+
return _snapshot;
|
|
32346
32844
|
}
|
|
32347
|
-
// src/react/
|
|
32348
|
-
function
|
|
32349
|
-
var
|
|
32350
|
-
|
|
32351
|
-
|
|
32352
|
-
|
|
32353
|
-
|
|
32845
|
+
// src/enhancers/react/with-use-snapshot.ts
|
|
32846
|
+
function withUseSnapshot(store) {
|
|
32847
|
+
var boundUseSnapshot = function boundUseSnapshot(selectorOrOption, maybeOptions) {
|
|
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;
|
|
32354
32856
|
}
|
|
32355
|
-
return useSnapshot(store.mutate,
|
|
32857
|
+
return useSnapshot(store.mutate, selector, options);
|
|
32858
|
+
};
|
|
32859
|
+
return chunk_UGXUT7UC_object_spread_props(chunk_UGXUT7UC_object_spread({}, store), {
|
|
32860
|
+
useSnapshot: boundUseSnapshot
|
|
32861
|
+
});
|
|
32862
|
+
}
|
|
32863
|
+
// src/react/use-subscribe.ts
|
|
32864
|
+
|
|
32865
|
+
function useSubscribe(proxyState, listener, notifyInSync) {
|
|
32866
|
+
var listenerRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(listener);
|
|
32867
|
+
listenerRef.current = listener;
|
|
32868
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
32869
|
+
var _listenerRef;
|
|
32870
|
+
var unsubscribe = subscribe(proxyState, function () {
|
|
32871
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
32872
|
+
args[_key] = arguments[_key];
|
|
32873
|
+
}
|
|
32874
|
+
return (_listenerRef = listenerRef).current.apply(_listenerRef, chunk_UGXUT7UC_to_consumable_array(args));
|
|
32875
|
+
}, notifyInSync);
|
|
32876
|
+
return unsubscribe;
|
|
32877
|
+
}, [proxyState, notifyInSync]);
|
|
32878
|
+
}
|
|
32879
|
+
// src/enhancers/react/with-use-subscribe.ts
|
|
32880
|
+
function withUseSubscribe(store) {
|
|
32881
|
+
var boundUseSubscribe = function boundUseSubscribe(listener, notifyInSync) {
|
|
32882
|
+
return useSubscribe(store.mutate, listener, notifyInSync);
|
|
32356
32883
|
};
|
|
32357
|
-
|
|
32358
|
-
|
|
32884
|
+
return chunk_UGXUT7UC_object_spread_props(chunk_UGXUT7UC_object_spread({}, store), {
|
|
32885
|
+
useSubscribe: boundUseSubscribe
|
|
32359
32886
|
});
|
|
32360
|
-
|
|
32887
|
+
}
|
|
32888
|
+
// src/react/create-with-hooks.ts
|
|
32889
|
+
function createWithHooks(initialState) {
|
|
32890
|
+
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
32891
|
+
return withUseSnapshot(withUseSubscribe(createVanilla(initialState, options)));
|
|
32361
32892
|
}
|
|
32362
32893
|
|
|
32363
32894
|
;// CONCATENATED MODULE: ../base/src/config/index.ts
|
|
@@ -32367,7 +32898,6 @@ var _process;
|
|
|
32367
32898
|
|
|
32368
32899
|
|
|
32369
32900
|
|
|
32370
|
-
|
|
32371
32901
|
/**
|
|
32372
32902
|
* @en Global configuration for Empty component
|
|
32373
32903
|
* @cn Empty组件的全局配置
|
|
@@ -32375,7 +32905,7 @@ var _process;
|
|
|
32375
32905
|
*/
|
|
32376
32906
|
|
|
32377
32907
|
var processEnv = typeof process !== 'undefined' ? (_process = process) === null || process === void 0 ? void 0 : ({"NODE_ENV":"production","PUBLIC_PATH":"/"}) : {};
|
|
32378
|
-
var
|
|
32908
|
+
var defaultConfig = {
|
|
32379
32909
|
prefix: 'soui',
|
|
32380
32910
|
locale: processEnv.LOCALE || 'en-US',
|
|
32381
32911
|
delay: 400,
|
|
@@ -32386,9 +32916,10 @@ var src_config_config = {
|
|
|
32386
32916
|
direction: 'ltr',
|
|
32387
32917
|
popupContainer: null
|
|
32388
32918
|
};
|
|
32389
|
-
var state = createWithHooks(
|
|
32919
|
+
var state = createWithHooks(defaultConfig);
|
|
32920
|
+
var src_config_config = snapshot(state.mutate);
|
|
32390
32921
|
state.subscribe(function () {
|
|
32391
|
-
src_config_config =
|
|
32922
|
+
src_config_config = snapshot(state.mutate);
|
|
32392
32923
|
});
|
|
32393
32924
|
function getDefaultContainer() {
|
|
32394
32925
|
if (isFunc(src_config_config.popupContainer)) {
|
|
@@ -33688,7 +34219,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
33688
34219
|
}
|
|
33689
34220
|
}
|
|
33690
34221
|
if (renderItem) {
|
|
33691
|
-
|
|
34222
|
+
if (max !== undefined) {
|
|
34223
|
+
item = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
34224
|
+
className: contentClass,
|
|
34225
|
+
ref: contentRef,
|
|
34226
|
+
children: renderItem(dataItem)
|
|
34227
|
+
});
|
|
34228
|
+
} else {
|
|
34229
|
+
return renderItem(dataItem);
|
|
34230
|
+
}
|
|
33692
34231
|
}
|
|
33693
34232
|
if (isOverflow && d.title && max !== undefined) {
|
|
33694
34233
|
return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, {
|
|
@@ -33766,17 +34305,18 @@ var Breadcrumb = function Breadcrumb(props) {
|
|
|
33766
34305
|
};
|
|
33767
34306
|
return [first, more].concat(toConsumableArray_default()(reset));
|
|
33768
34307
|
};
|
|
34308
|
+
var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
|
|
33769
34309
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
33770
34310
|
className: className,
|
|
33771
34311
|
style: props.style,
|
|
33772
34312
|
children: data && getRenderData().map(function (d, index) {
|
|
33773
34313
|
var itemFirst = Array.isArray(d) ? d[0] : d;
|
|
33774
|
-
var isLastItem = index ===
|
|
34314
|
+
var isLastItem = index === lastIndex;
|
|
33775
34315
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
33776
34316
|
className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
|
|
33777
34317
|
children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb_item, {
|
|
33778
34318
|
dataItem: d,
|
|
33779
|
-
renderItem: renderItem,
|
|
34319
|
+
renderItem: props.renderItem,
|
|
33780
34320
|
jssStyle: props.jssStyle,
|
|
33781
34321
|
max: maxCount
|
|
33782
34322
|
}), !isLastItem && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
@@ -36238,6 +36778,19 @@ var useCheck = function useCheck(props) {
|
|
|
36238
36778
|
};
|
|
36239
36779
|
};
|
|
36240
36780
|
/* harmony default export */ var use_check = (useCheck);
|
|
36781
|
+
;// CONCATENATED MODULE: ../hooks/src/utils/dom/get-dataset.ts
|
|
36782
|
+
var getDataset = function getDataset(props) {
|
|
36783
|
+
if (!props) return {};
|
|
36784
|
+
var dataset = {};
|
|
36785
|
+
var keys = Object.keys(props);
|
|
36786
|
+
for (var i = 0; i < keys.length; i++) {
|
|
36787
|
+
var _key = keys[i];
|
|
36788
|
+
if (_key.startsWith('data-')) {
|
|
36789
|
+
dataset[_key] = props[keys[i]];
|
|
36790
|
+
}
|
|
36791
|
+
}
|
|
36792
|
+
return dataset;
|
|
36793
|
+
};
|
|
36241
36794
|
;// CONCATENATED MODULE: ../base/src/form/form-field-context.ts
|
|
36242
36795
|
|
|
36243
36796
|
var FormFieldContext = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createContext({
|
|
@@ -36281,13 +36834,13 @@ var Checkbox = function Checkbox(props) {
|
|
|
36281
36834
|
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));
|
|
36282
36835
|
var indicatorClass = classnames_default()(checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.indicatorWrapper, theme === 'dark' && (checkboxStyle === null || checkboxStyle === void 0 ? void 0 : checkboxStyle.darkIndicatorWrapper));
|
|
36283
36836
|
var inputProps = getInputProps();
|
|
36284
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
36837
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
36285
36838
|
id: fieldId
|
|
36286
36839
|
}, getRootProps({
|
|
36287
36840
|
className: rootClass,
|
|
36288
36841
|
style: style,
|
|
36289
36842
|
needStopPropagation: props.needStopPropagation
|
|
36290
|
-
})), {}, {
|
|
36843
|
+
})), getDataset(props)), {}, {
|
|
36291
36844
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()(objectSpread2_default()({}, inputProps), {}, {
|
|
36292
36845
|
type: "checkbox"
|
|
36293
36846
|
})), /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -36705,9 +37258,10 @@ var Input = function Input(props) {
|
|
|
36705
37258
|
className: classnames_default()(inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.input),
|
|
36706
37259
|
onKeyUp: onKeyUp
|
|
36707
37260
|
});
|
|
36708
|
-
var
|
|
37261
|
+
var datasetProps = getDataset(props);
|
|
37262
|
+
var inputElProps = removeProps(inputProps, objectSpread2_default()({
|
|
36709
37263
|
formName: undefined
|
|
36710
|
-
});
|
|
37264
|
+
}, datasetProps));
|
|
36711
37265
|
var inputEl = /*#__PURE__*/(0,jsx_runtime.jsx)("input", objectSpread2_default()({
|
|
36712
37266
|
type: "text"
|
|
36713
37267
|
}, inputElProps));
|
|
@@ -36715,9 +37269,9 @@ var Input = function Input(props) {
|
|
|
36715
37269
|
inputEl = renderInput(inputEl);
|
|
36716
37270
|
}
|
|
36717
37271
|
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));
|
|
36718
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
37272
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
36719
37273
|
id: fieldId
|
|
36720
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
37274
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), datasetProps), getRootProps({
|
|
36721
37275
|
className: rootClass,
|
|
36722
37276
|
style: style
|
|
36723
37277
|
})), {}, {
|
|
@@ -37725,9 +38279,21 @@ CardGroupComp.Item = card_group_Item;
|
|
|
37725
38279
|
var useCarousel = function useCarousel(props) {
|
|
37726
38280
|
var total = props.total,
|
|
37727
38281
|
_props$interval = props.interval,
|
|
37728
|
-
interval = _props$interval === void 0 ? 0 : _props$interval
|
|
38282
|
+
interval = _props$interval === void 0 ? 0 : _props$interval,
|
|
38283
|
+
_props$defaultValue = props.defaultValue,
|
|
38284
|
+
defaultValue = _props$defaultValue === void 0 ? 0 : _props$defaultValue,
|
|
38285
|
+
valueProp = props.value,
|
|
38286
|
+
onChange = props.onChange;
|
|
38287
|
+
|
|
38288
|
+
// 规范化初始值,确保在有效范围内
|
|
38289
|
+
var normalizeIndex = function normalizeIndex(index) {
|
|
38290
|
+
if (index < 0) return 0;
|
|
38291
|
+
if (index >= total) return Math.max(0, total - 1);
|
|
38292
|
+
return index;
|
|
38293
|
+
};
|
|
38294
|
+
var initialValue = normalizeIndex(valueProp !== undefined ? valueProp : defaultValue);
|
|
37729
38295
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({
|
|
37730
|
-
current:
|
|
38296
|
+
current: initialValue,
|
|
37731
38297
|
pre: -1,
|
|
37732
38298
|
direction: 'stop'
|
|
37733
38299
|
}),
|
|
@@ -37740,14 +38306,32 @@ var useCarousel = function useCarousel(props) {
|
|
|
37740
38306
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
37741
38307
|
timer: null,
|
|
37742
38308
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
37743
|
-
setNext: function setNext(next) {}
|
|
38309
|
+
setNext: function setNext(next) {},
|
|
38310
|
+
prevValue: initialValue // 用于追踪上一次的值
|
|
37744
38311
|
}),
|
|
37745
38312
|
context = _useRef.current;
|
|
38313
|
+
|
|
38314
|
+
// 判断是否为受控模式
|
|
38315
|
+
var isControlled = valueProp !== undefined;
|
|
38316
|
+
// 获取实际使用的 current 值
|
|
38317
|
+
var actualCurrent = isControlled ? normalizeIndex(valueProp) : current;
|
|
38318
|
+
|
|
38319
|
+
// 在受控模式下,计算 direction 和 pre
|
|
38320
|
+
var actualPre = pre;
|
|
38321
|
+
var actualDirection = direction;
|
|
38322
|
+
if (isControlled) {
|
|
38323
|
+
if (actualCurrent !== context.prevValue) {
|
|
38324
|
+
actualPre = context.prevValue;
|
|
38325
|
+
actualDirection = actualCurrent > context.prevValue ? 'forward' : 'backward';
|
|
38326
|
+
context.prevValue = actualCurrent;
|
|
38327
|
+
}
|
|
38328
|
+
}
|
|
37746
38329
|
var autoPlay = interval > 0 && total > 1;
|
|
37747
38330
|
var moveTo = usePersistFn(function (i) {
|
|
37748
38331
|
var next = i;
|
|
37749
|
-
|
|
37750
|
-
|
|
38332
|
+
var prevCurrent = actualCurrent;
|
|
38333
|
+
if (next === prevCurrent) return;
|
|
38334
|
+
var dir = next > prevCurrent ? 'forward' : 'backward';
|
|
37751
38335
|
if (next >= total) {
|
|
37752
38336
|
dir = 'forward';
|
|
37753
38337
|
next = 0;
|
|
@@ -37755,14 +38339,26 @@ var useCarousel = function useCarousel(props) {
|
|
|
37755
38339
|
dir = 'backward';
|
|
37756
38340
|
next = total - 1;
|
|
37757
38341
|
}
|
|
37758
|
-
|
|
37759
|
-
|
|
37760
|
-
|
|
37761
|
-
|
|
37762
|
-
|
|
38342
|
+
|
|
38343
|
+
// 非受控模式下更新内部状态
|
|
38344
|
+
if (!isControlled) {
|
|
38345
|
+
setState({
|
|
38346
|
+
current: next,
|
|
38347
|
+
pre: prevCurrent,
|
|
38348
|
+
direction: dir
|
|
38349
|
+
});
|
|
38350
|
+
}
|
|
38351
|
+
// 受控模式下不更新内部状态,由外部 value 控制
|
|
38352
|
+
|
|
38353
|
+
// 触发 onChange 回调
|
|
38354
|
+
if (onChange) {
|
|
38355
|
+
onChange(next);
|
|
38356
|
+
}
|
|
38357
|
+
|
|
38358
|
+
// 触发 onMove 回调(向后兼容)
|
|
37763
38359
|
if (props.onMove) {
|
|
37764
38360
|
props.onMove(next, {
|
|
37765
|
-
prev:
|
|
38361
|
+
prev: prevCurrent,
|
|
37766
38362
|
direction: dir,
|
|
37767
38363
|
moveTo: moveTo
|
|
37768
38364
|
});
|
|
@@ -37784,13 +38380,13 @@ var useCarousel = function useCarousel(props) {
|
|
|
37784
38380
|
});
|
|
37785
38381
|
context.setNext = setNext;
|
|
37786
38382
|
var start = usePersistFn(function () {
|
|
37787
|
-
setNext(
|
|
38383
|
+
setNext(actualCurrent + 1);
|
|
37788
38384
|
});
|
|
37789
38385
|
var forward = usePersistFn(function () {
|
|
37790
|
-
moveTo(
|
|
38386
|
+
moveTo(actualCurrent + 1);
|
|
37791
38387
|
});
|
|
37792
38388
|
var backward = usePersistFn(function () {
|
|
37793
|
-
moveTo(
|
|
38389
|
+
moveTo(actualCurrent - 1);
|
|
37794
38390
|
});
|
|
37795
38391
|
var func = use_latest_obj({
|
|
37796
38392
|
start: start,
|
|
@@ -37804,10 +38400,18 @@ var useCarousel = function useCarousel(props) {
|
|
|
37804
38400
|
start();
|
|
37805
38401
|
}
|
|
37806
38402
|
}, []);
|
|
38403
|
+
|
|
38404
|
+
// 受控模式下,当外部 value 变化时,重置自动轮播定时器
|
|
38405
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
38406
|
+
if (isControlled && autoPlay && valueProp !== undefined) {
|
|
38407
|
+
stop();
|
|
38408
|
+
context.setNext(actualCurrent + 1);
|
|
38409
|
+
}
|
|
38410
|
+
}, [valueProp]);
|
|
37807
38411
|
return {
|
|
37808
|
-
current:
|
|
37809
|
-
pre:
|
|
37810
|
-
direction:
|
|
38412
|
+
current: actualCurrent,
|
|
38413
|
+
pre: actualPre,
|
|
38414
|
+
direction: actualDirection,
|
|
37811
38415
|
func: func
|
|
37812
38416
|
};
|
|
37813
38417
|
};
|
|
@@ -37839,6 +38443,9 @@ var Carousel = function Carousel(props) {
|
|
|
37839
38443
|
var _useCarousel = use_carousel({
|
|
37840
38444
|
total: total,
|
|
37841
38445
|
interval: props.interval,
|
|
38446
|
+
defaultValue: props.defaultValue,
|
|
38447
|
+
value: props.value,
|
|
38448
|
+
onChange: props.onChange,
|
|
37842
38449
|
onMove: props.onMove
|
|
37843
38450
|
}),
|
|
37844
38451
|
current = _useCarousel.current,
|
|
@@ -37939,15 +38546,16 @@ var Carousel = function Carousel(props) {
|
|
|
37939
38546
|
children: content
|
|
37940
38547
|
});
|
|
37941
38548
|
};
|
|
37942
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
38549
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
37943
38550
|
className: wrapperClasses,
|
|
37944
38551
|
style: objectSpread2_default()(objectSpread2_default()({}, props.style), {}, {
|
|
37945
38552
|
height: 'auto'
|
|
37946
38553
|
}),
|
|
37947
38554
|
onMouseEnter: func.stop,
|
|
37948
|
-
onMouseLeave: func.start
|
|
38555
|
+
onMouseLeave: func.start
|
|
38556
|
+
}, getDataset(props)), {}, {
|
|
37949
38557
|
children: [renderItems(), renderIndicator(), renderArrow()]
|
|
37950
|
-
});
|
|
38558
|
+
}));
|
|
37951
38559
|
};
|
|
37952
38560
|
/* harmony default export */ var src_carousel_carousel = (Carousel);
|
|
37953
38561
|
;// CONCATENATED MODULE: ./src/carousel/carousel.tsx
|
|
@@ -39737,14 +40345,10 @@ var useTree = function useTree(props) {
|
|
|
39737
40345
|
onExpandProp = props.onExpand;
|
|
39738
40346
|
var disabledProps = isOptionalDisabled(props.disabled) ? props.disabled.disabled : props.disabled;
|
|
39739
40347
|
var isRealtime = isOptionalDisabled(props.disabled) ? props.disabled.isRealtime : false;
|
|
39740
|
-
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(
|
|
40348
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
39741
40349
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
39742
|
-
|
|
39743
|
-
|
|
39744
|
-
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
39745
|
-
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
39746
|
-
dataFlat = _useState4[0],
|
|
39747
|
-
setDataFlat = _useState4[1];
|
|
40350
|
+
dataFlat = _useState2[0],
|
|
40351
|
+
setDataFlat = _useState2[1];
|
|
39748
40352
|
var _useInputAble = useInputAble({
|
|
39749
40353
|
value: expandedProp,
|
|
39750
40354
|
defaultValue: defaultExpanded,
|
|
@@ -40325,9 +40929,6 @@ var useTree = function useTree(props) {
|
|
|
40325
40929
|
var tiledFlatData = initFlatData(props.tiledData, [], 1);
|
|
40326
40930
|
setDataFlat(tiledFlatData);
|
|
40327
40931
|
}, [props.tiledData]);
|
|
40328
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
40329
|
-
setInited(true);
|
|
40330
|
-
}, []);
|
|
40331
40932
|
var datum = use_latest_obj({
|
|
40332
40933
|
get: get,
|
|
40333
40934
|
set: set,
|
|
@@ -40360,7 +40961,6 @@ var useTree = function useTree(props) {
|
|
|
40360
40961
|
dataFlatStatusMap: context.dataFlatStatusMap
|
|
40361
40962
|
});
|
|
40362
40963
|
return {
|
|
40363
|
-
inited: inited,
|
|
40364
40964
|
datum: props.datum || datum,
|
|
40365
40965
|
expanded: expanded,
|
|
40366
40966
|
onExpand: onExpand
|
|
@@ -41961,7 +42561,7 @@ var Tag = function Tag(props) {
|
|
|
41961
42561
|
if (showInput) {
|
|
41962
42562
|
return renderInput();
|
|
41963
42563
|
}
|
|
41964
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getTagRootProps()), {}, {
|
|
42564
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, getTagRootProps()), getDataset(props)), {}, {
|
|
41965
42565
|
children: [renderChildren(), renderClose()]
|
|
41966
42566
|
}));
|
|
41967
42567
|
};
|
|
@@ -42474,7 +43074,13 @@ var result_Result = function Result(props) {
|
|
|
42474
43074
|
if (typeof element === 'string' || typeof element === 'number') return String(element);
|
|
42475
43075
|
// 如果是 React Element,处理的是renderResult返回的是React Element的场景
|
|
42476
43076
|
if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().isValidElement(element)) {
|
|
42477
|
-
var _element$props;
|
|
43077
|
+
var _element$type, _element$type2, _element$props;
|
|
43078
|
+
// 跳过 Portal 类组件(Popover, Tooltip)
|
|
43079
|
+
var portalComponents = ['ShineoutPopover', 'ShineoutTooltip'];
|
|
43080
|
+
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);
|
|
43081
|
+
if (portalComponents.includes(displayName)) {
|
|
43082
|
+
return '';
|
|
43083
|
+
}
|
|
42478
43084
|
var children = (_element$props = element.props) === null || _element$props === void 0 ? void 0 : _element$props.children;
|
|
42479
43085
|
if (Array.isArray(children)) {
|
|
42480
43086
|
return children.map(function (child) {
|
|
@@ -42642,7 +43248,8 @@ var Cascader = function Cascader(props0) {
|
|
|
42642
43248
|
size = props.size,
|
|
42643
43249
|
virtual = props.virtual,
|
|
42644
43250
|
filterSameChange = props.filterSameChange,
|
|
42645
|
-
beforeChange = props.beforeChange
|
|
43251
|
+
beforeChange = props.beforeChange,
|
|
43252
|
+
checkOnFiltered = props.checkOnFiltered;
|
|
42646
43253
|
var showInput = isFunc(onFilterProp);
|
|
42647
43254
|
var isRealtime = cascader_isOptionalDisabled(props.disabled) ? props.disabled.isRealtime : false;
|
|
42648
43255
|
var disabled = isOptionalDisabled(disabledProp) ? disabledProp.disabled : disabledProp;
|
|
@@ -42689,7 +43296,7 @@ var Cascader = function Cascader(props0) {
|
|
|
42689
43296
|
return path.join('-');
|
|
42690
43297
|
}, [path]);
|
|
42691
43298
|
var _useCascader = use_cascader({
|
|
42692
|
-
data: data,
|
|
43299
|
+
data: checkOnFiltered ? filterData || [] : data,
|
|
42693
43300
|
control: 'value' in props,
|
|
42694
43301
|
keygen: keygen,
|
|
42695
43302
|
unmatch: unmatch,
|
|
@@ -43229,10 +43836,10 @@ var Cascader = function Cascader(props0) {
|
|
|
43229
43836
|
filterText: filterText,
|
|
43230
43837
|
highlight: props.highlight
|
|
43231
43838
|
},
|
|
43232
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
43839
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
43233
43840
|
id: fieldId,
|
|
43234
43841
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
43235
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
43842
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
43236
43843
|
className: rootClass,
|
|
43237
43844
|
style: rootStyle,
|
|
43238
43845
|
onBlur: handleBlur,
|
|
@@ -43583,7 +44190,7 @@ function getRule(rule, props) {
|
|
|
43583
44190
|
return;
|
|
43584
44191
|
}
|
|
43585
44192
|
if (reg.global) reg.lastIndex = 0;
|
|
43586
|
-
if (
|
|
44193
|
+
if (reg.test(value)) {
|
|
43587
44194
|
callback(true);
|
|
43588
44195
|
} else {
|
|
43589
44196
|
callback(new FormError(po.message, po));
|
|
@@ -48830,7 +49437,7 @@ var DatePicker = function DatePicker(props0) {
|
|
|
48830
49437
|
date_picker_devUseWarning.conflict('DatePicker', 'formatResult', 'inputable');
|
|
48831
49438
|
}
|
|
48832
49439
|
}, []);
|
|
48833
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute(defineProperty_default()(defineProperty_default()({}, 'input-border', 'true'), "type", type))), {}, {
|
|
49440
|
+
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)), {}, {
|
|
48834
49441
|
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)),
|
|
48835
49442
|
ref: targetRef,
|
|
48836
49443
|
style: objectSpread2_default()({
|
|
@@ -49430,9 +50037,11 @@ function _ReactUnmount() {
|
|
|
49430
50037
|
|
|
49431
50038
|
|
|
49432
50039
|
|
|
50040
|
+
|
|
49433
50041
|
var hasMask = false;
|
|
49434
50042
|
var modal_content_config = {
|
|
49435
50043
|
instanceIds: [],
|
|
50044
|
+
cascadeConfigs: [],
|
|
49436
50045
|
originDocumentStyle: null
|
|
49437
50046
|
};
|
|
49438
50047
|
var modal_content_state = createWithHooks(modal_content_config);
|
|
@@ -49442,11 +50051,24 @@ var useModalConfig = function useModalConfig() {
|
|
|
49442
50051
|
var addModalInstance = function addModalInstance(instanceId) {
|
|
49443
50052
|
modal_content_state.mutate.instanceIds.push(instanceId);
|
|
49444
50053
|
};
|
|
50054
|
+
var addModalCascadeConfig = function addModalCascadeConfig(props) {
|
|
50055
|
+
modal_content_state.mutate.cascadeConfigs.push({
|
|
50056
|
+
cascade: props.cascade,
|
|
50057
|
+
cascadeWidth: props.cascadeWidth,
|
|
50058
|
+
instanceId: props.instanceId
|
|
50059
|
+
});
|
|
50060
|
+
};
|
|
49445
50061
|
var removeModalInstance = function removeModalInstance(instanceId) {
|
|
49446
50062
|
modal_content_state.mutate.instanceIds = modal_content_state.mutate.instanceIds.filter(function (id) {
|
|
49447
50063
|
return id !== instanceId;
|
|
49448
50064
|
});
|
|
49449
50065
|
};
|
|
50066
|
+
var removeModalCascadeConfig = function removeModalCascadeConfig(instanceId) {
|
|
50067
|
+
if (!modal_content_state.mutate.cascadeConfigs.length) return;
|
|
50068
|
+
modal_content_state.mutate.cascadeConfigs = modal_content_state.mutate.cascadeConfigs.filter(function (config) {
|
|
50069
|
+
return config.instanceId !== instanceId;
|
|
50070
|
+
});
|
|
50071
|
+
};
|
|
49450
50072
|
var getInstanceIds = function getInstanceIds() {
|
|
49451
50073
|
return modal_content_state.mutate.instanceIds;
|
|
49452
50074
|
};
|
|
@@ -49534,9 +50156,15 @@ var Modal = function Modal(props) {
|
|
|
49534
50156
|
var index = config.instanceIds.indexOf(context.instanceId);
|
|
49535
50157
|
if (visible && index === -1) {
|
|
49536
50158
|
addModalInstance(context.instanceId);
|
|
50159
|
+
addModalCascadeConfig({
|
|
50160
|
+
instanceId: context.instanceId,
|
|
50161
|
+
cascade: !!props.cascade && !!isPositionX,
|
|
50162
|
+
cascadeWidth: typeof_default()(props.cascade) === 'object' ? props.cascade.width || 180 : 180
|
|
50163
|
+
});
|
|
49537
50164
|
}
|
|
49538
50165
|
if (!visible && index > -1 && !animation) {
|
|
49539
50166
|
removeModalInstance(context.instanceId);
|
|
50167
|
+
removeModalCascadeConfig(context.instanceId);
|
|
49540
50168
|
}
|
|
49541
50169
|
}, [visible, animation, config.instanceIds]);
|
|
49542
50170
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(handleMaskVisible, [visible]);
|
|
@@ -49569,6 +50197,7 @@ var Modal = function Modal(props) {
|
|
|
49569
50197
|
});
|
|
49570
50198
|
var handleClose = usePersistFn(function () {
|
|
49571
50199
|
var _props$onClose;
|
|
50200
|
+
removeModalCascadeConfig(context.instanceId);
|
|
49572
50201
|
if (!visible) return;
|
|
49573
50202
|
if (props.autoShow) {
|
|
49574
50203
|
setVisible(false);
|
|
@@ -49658,6 +50287,7 @@ var Modal = function Modal(props) {
|
|
|
49658
50287
|
return function () {
|
|
49659
50288
|
var _props$shouldDestroy2;
|
|
49660
50289
|
removeModalInstance(context.instanceId);
|
|
50290
|
+
removeModalCascadeConfig(context.instanceId);
|
|
49661
50291
|
var instanceIds = getInstanceIds();
|
|
49662
50292
|
if (instanceIds.length === 0) {
|
|
49663
50293
|
resetDocumentOverflow();
|
|
@@ -49705,6 +50335,7 @@ var Modal = function Modal(props) {
|
|
|
49705
50335
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
49706
50336
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.header,
|
|
49707
50337
|
onMouseDown: props.moveable && !props.fullScreen ? moveInfo.handleMouseDown : undefined,
|
|
50338
|
+
style: props.headerStyle,
|
|
49708
50339
|
children: [renderIcon(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49709
50340
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.headerTitle,
|
|
49710
50341
|
children: props.title
|
|
@@ -49729,6 +50360,7 @@ var Modal = function Modal(props) {
|
|
|
49729
50360
|
if (!props.footer) return null;
|
|
49730
50361
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
49731
50362
|
className: modalClasses === null || modalClasses === void 0 ? void 0 : modalClasses.footer,
|
|
50363
|
+
style: props.footerStyle,
|
|
49732
50364
|
children: props.footer
|
|
49733
50365
|
});
|
|
49734
50366
|
};
|
|
@@ -49751,13 +50383,30 @@ var Modal = function Modal(props) {
|
|
|
49751
50383
|
};
|
|
49752
50384
|
if (!context.renderEd && !visible) return null;
|
|
49753
50385
|
context.renderEd = true;
|
|
50386
|
+
var cascadeStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
50387
|
+
if (!props.cascade) return;
|
|
50388
|
+
var idx = config.instanceIds.findIndex(function (id) {
|
|
50389
|
+
return id === context.instanceId;
|
|
50390
|
+
});
|
|
50391
|
+
var instance = 0;
|
|
50392
|
+
var curCascadeConfig = config.cascadeConfigs.find(function (c) {
|
|
50393
|
+
return c.instanceId === context.instanceId;
|
|
50394
|
+
});
|
|
50395
|
+
if (curCascadeConfig && idx < config.cascadeConfigs.length - 1) {
|
|
50396
|
+
instance = curCascadeConfig.cascadeWidth;
|
|
50397
|
+
}
|
|
50398
|
+
return {
|
|
50399
|
+
transform: props.position === 'left' ? "translateX(".concat(instance, "px)") : "translateX(-".concat(instance, "px)"),
|
|
50400
|
+
transition: instance ? 'transform 0.3s ease 0.05s' : 'transform 0.2s ease'
|
|
50401
|
+
};
|
|
50402
|
+
}, [config.cascadeConfigs, config.instanceIds]);
|
|
49754
50403
|
var panelStyle = objectSpread2_default()(objectSpread2_default()({
|
|
49755
50404
|
transformOrigin: origin,
|
|
49756
50405
|
top: props.fullScreen ? undefined : top
|
|
49757
50406
|
}, props.style), {}, {
|
|
49758
50407
|
width: props.fullScreen ? undefined : width,
|
|
49759
50408
|
height: props.fullScreen ? undefined : height
|
|
49760
|
-
});
|
|
50409
|
+
}, cascadeStyle);
|
|
49761
50410
|
if (props.resizable) {
|
|
49762
50411
|
panelStyle.width = resizeInfo.width;
|
|
49763
50412
|
panelStyle.height = resizeInfo.height;
|
|
@@ -50312,13 +50961,13 @@ var Dropdown = function Dropdown(props) {
|
|
|
50312
50961
|
return d.children;
|
|
50313
50962
|
});
|
|
50314
50963
|
var targetProps = getTargetProps();
|
|
50315
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
50964
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
50316
50965
|
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)),
|
|
50317
50966
|
style: style,
|
|
50318
50967
|
"data-position": position,
|
|
50319
50968
|
"data-role": "dropdown",
|
|
50320
50969
|
ref: targetRef
|
|
50321
|
-
}, targetProps), {}, {
|
|
50970
|
+
}, targetProps), getDataset(props)), {}, {
|
|
50322
50971
|
onClick: isSub ? openPop : targetProps.onClick,
|
|
50323
50972
|
children: [renderButton(), /*#__PURE__*/(0,jsx_runtime.jsx)(absolute_list, {
|
|
50324
50973
|
position: position,
|
|
@@ -50570,9 +51219,9 @@ var Textarea = function Textarea(props) {
|
|
|
50570
51219
|
children: icons_config.textarea.Close
|
|
50571
51220
|
});
|
|
50572
51221
|
}
|
|
50573
|
-
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
51222
|
+
return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
50574
51223
|
id: fieldId
|
|
50575
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getRootProps({
|
|
51224
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), getRootProps({
|
|
50576
51225
|
className: rootClass,
|
|
50577
51226
|
style: style
|
|
50578
51227
|
})), {}, {
|
|
@@ -54650,7 +55299,8 @@ input_input_Input.displayName = 'ShineoutInput';
|
|
|
54650
55299
|
var shouldSeparate = separate !== null && separate !== void 0 ? separate : seperate;
|
|
54651
55300
|
var rootClass = classnames_default()(className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.group, shouldSeparate && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSeparate), size === 'small' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupSmall), size === 'large' && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupLarge), !!disabled && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupDisabled), !!focus && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupFocus), (status === 'error' || error) && (inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.groupError));
|
|
54652
55301
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getDataAttribute({
|
|
54653
|
-
role: shouldSeparate ? 'input-group-separate' : 'input-group'
|
|
55302
|
+
role: shouldSeparate ? 'input-group-separate' : 'input-group',
|
|
55303
|
+
border: props.seamless ? 'false' : undefined
|
|
54654
55304
|
})), {}, {
|
|
54655
55305
|
className: rootClass,
|
|
54656
55306
|
style: objectSpread2_default()({
|
|
@@ -54666,8 +55316,7 @@ input_input_Input.displayName = 'ShineoutInput';
|
|
|
54666
55316
|
if ( /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement(child)) {
|
|
54667
55317
|
return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(child, objectSpread2_default()(objectSpread2_default()({}, getProps(child)), {}, {
|
|
54668
55318
|
disabled: child.props.disabled || disabled,
|
|
54669
|
-
size: child.props.size || size
|
|
54670
|
-
border: props.seamless ? false : child.props.border
|
|
55319
|
+
size: child.props.size || size
|
|
54671
55320
|
}));
|
|
54672
55321
|
}
|
|
54673
55322
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
|
|
@@ -55054,7 +55703,8 @@ var InputNumber = function InputNumber(props) {
|
|
|
55054
55703
|
value: numberFormatProps.value || '',
|
|
55055
55704
|
className: classnames_default()(forwardProps.className, inputStyle === null || inputStyle === void 0 ? void 0 : inputStyle.wrapperNumber),
|
|
55056
55705
|
onKeyDown: onKeyDown,
|
|
55057
|
-
addEnd: addEnd
|
|
55706
|
+
addEnd: addEnd,
|
|
55707
|
+
showClear: props.showClear
|
|
55058
55708
|
}));
|
|
55059
55709
|
};
|
|
55060
55710
|
/* harmony default export */ var input_number = (/*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().memo(InputNumber));
|
|
@@ -57174,6 +57824,8 @@ var Tree = function Tree(props) {
|
|
|
57174
57824
|
|
|
57175
57825
|
|
|
57176
57826
|
|
|
57827
|
+
|
|
57828
|
+
|
|
57177
57829
|
var TreeList = function TreeList(props) {
|
|
57178
57830
|
var _jssStyle$select;
|
|
57179
57831
|
var jssStyle = props.jssStyle,
|
|
@@ -57217,25 +57869,46 @@ var TreeList = function TreeList(props) {
|
|
|
57217
57869
|
var renderItem = function renderItem(item) {
|
|
57218
57870
|
return renderItemProp(item);
|
|
57219
57871
|
};
|
|
57872
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)([]),
|
|
57873
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
57874
|
+
virtualExpanded = _useState2[0],
|
|
57875
|
+
setVirtualExpanded = _useState2[1];
|
|
57876
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
57877
|
+
if (props.virtual && expanded) {
|
|
57878
|
+
setVirtualExpanded(expanded);
|
|
57879
|
+
}
|
|
57880
|
+
}, [expanded]);
|
|
57881
|
+
var handleExpand = function handleExpand(expandedKeys) {
|
|
57882
|
+
if (props.virtual) {
|
|
57883
|
+
setVirtualExpanded(expandedKeys);
|
|
57884
|
+
}
|
|
57885
|
+
onExpand === null || onExpand === void 0 || onExpand(expandedKeys);
|
|
57886
|
+
};
|
|
57887
|
+
var $tree = /*#__PURE__*/(0,jsx_runtime.jsx)(src_tree_tree, {
|
|
57888
|
+
line: false,
|
|
57889
|
+
jssStyle: jssStyle,
|
|
57890
|
+
onClick: handleClick,
|
|
57891
|
+
data: data,
|
|
57892
|
+
expanded: props.virtual ? (virtualExpanded === null || virtualExpanded === void 0 ? void 0 : virtualExpanded.length) > 0 ? virtualExpanded : undefined : expanded,
|
|
57893
|
+
keygen: keygen,
|
|
57894
|
+
defaultExpanded: defaultExpanded,
|
|
57895
|
+
defaultExpandAll: defaultExpandAll,
|
|
57896
|
+
childrenKey: childrenKey,
|
|
57897
|
+
onExpand: handleExpand,
|
|
57898
|
+
nodeClass: classnames_default()(styles.treeOption),
|
|
57899
|
+
contentClass: getContentClass,
|
|
57900
|
+
renderItem: renderItem,
|
|
57901
|
+
expandIcons: props.expandIcons,
|
|
57902
|
+
virtual: props.virtual,
|
|
57903
|
+
height: props.height
|
|
57904
|
+
});
|
|
57905
|
+
if (props.virtual) {
|
|
57906
|
+
return $tree;
|
|
57907
|
+
}
|
|
57220
57908
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
57221
57909
|
className: rootClass,
|
|
57222
57910
|
style: style,
|
|
57223
|
-
children:
|
|
57224
|
-
line: false,
|
|
57225
|
-
jssStyle: jssStyle,
|
|
57226
|
-
onClick: handleClick,
|
|
57227
|
-
data: data,
|
|
57228
|
-
expanded: expanded,
|
|
57229
|
-
keygen: keygen,
|
|
57230
|
-
defaultExpanded: defaultExpanded,
|
|
57231
|
-
defaultExpandAll: defaultExpandAll,
|
|
57232
|
-
childrenKey: childrenKey,
|
|
57233
|
-
onExpand: onExpand,
|
|
57234
|
-
nodeClass: classnames_default()(styles.treeOption),
|
|
57235
|
-
contentClass: getContentClass,
|
|
57236
|
-
renderItem: renderItem,
|
|
57237
|
-
expandIcons: props.expandIcons
|
|
57238
|
-
})
|
|
57911
|
+
children: $tree
|
|
57239
57912
|
});
|
|
57240
57913
|
};
|
|
57241
57914
|
/* harmony default export */ var list_tree = (TreeList);
|
|
@@ -57774,7 +58447,8 @@ function Select(props0) {
|
|
|
57774
58447
|
}
|
|
57775
58448
|
};
|
|
57776
58449
|
var handleSelectChange = usePersistFn(function (value, dataItem, checked) {
|
|
57777
|
-
|
|
58450
|
+
// why: props.emptyAfterSelect !== false 兼容之前的逻辑
|
|
58451
|
+
if (props.emptyAfterSelect !== false && (props.emptyAfterSelect || createdData)) {
|
|
57778
58452
|
onFilter === null || onFilter === void 0 || onFilter('');
|
|
57779
58453
|
}
|
|
57780
58454
|
var shouldFocus = showInput && props.reFocus;
|
|
@@ -58198,7 +58872,8 @@ function Select(props0) {
|
|
|
58198
58872
|
childrenKey: childrenKey,
|
|
58199
58873
|
closePop: closePop,
|
|
58200
58874
|
renderItem: renderItem,
|
|
58201
|
-
expandIcons: tiledExpandIcons
|
|
58875
|
+
expandIcons: tiledExpandIcons,
|
|
58876
|
+
virtual: props.virtual
|
|
58202
58877
|
});
|
|
58203
58878
|
};
|
|
58204
58879
|
var renderLoading = function renderLoading() {
|
|
@@ -58266,10 +58941,10 @@ function Select(props0) {
|
|
|
58266
58941
|
filterText: filterText,
|
|
58267
58942
|
highlight: highlight
|
|
58268
58943
|
},
|
|
58269
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
58944
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
58270
58945
|
ref: targetRef,
|
|
58271
58946
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
58272
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
58947
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
58273
58948
|
className: rootClass,
|
|
58274
58949
|
style: rootStyle,
|
|
58275
58950
|
onKeyDown: handleKeyDown,
|
|
@@ -58953,7 +59628,7 @@ var Pagination = function Pagination(props) {
|
|
|
58953
59628
|
})
|
|
58954
59629
|
}));
|
|
58955
59630
|
}
|
|
58956
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({}, getRootProps()), {}, {
|
|
59631
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, getRootProps()), getDataset(props)), {}, {
|
|
58957
59632
|
className: rootClasses,
|
|
58958
59633
|
children: layout.map(function (section, i) {
|
|
58959
59634
|
switch (section) {
|
|
@@ -61238,6 +61913,7 @@ src_radio_radio_0.Group = radio_RadioGroup;
|
|
|
61238
61913
|
|
|
61239
61914
|
|
|
61240
61915
|
|
|
61916
|
+
|
|
61241
61917
|
var Rate = function Rate(props0) {
|
|
61242
61918
|
var _props$jssStyle, _props$jssStyle$rate;
|
|
61243
61919
|
var props = use_with_form_config(props0);
|
|
@@ -61326,13 +62002,14 @@ var Rate = function Rate(props0) {
|
|
|
61326
62002
|
}, index);
|
|
61327
62003
|
};
|
|
61328
62004
|
var text = Array.isArray(props.text) && props.text[Math.ceil(value - 1)];
|
|
61329
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
62005
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
61330
62006
|
className: classnames_default()(props.className, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.rootClass, rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.wrapper),
|
|
61331
62007
|
id: fieldId,
|
|
61332
62008
|
style: props.style,
|
|
61333
62009
|
onMouseLeave: function onMouseLeave() {
|
|
61334
62010
|
setHoverValue(null);
|
|
61335
|
-
}
|
|
62011
|
+
}
|
|
62012
|
+
}, getDataset(props)), {}, {
|
|
61336
62013
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
61337
62014
|
className: rateClasses === null || rateClasses === void 0 ? void 0 : rateClasses.inner,
|
|
61338
62015
|
children: [Array.from({
|
|
@@ -61344,7 +62021,7 @@ var Rate = function Rate(props0) {
|
|
|
61344
62021
|
children: text
|
|
61345
62022
|
})]
|
|
61346
62023
|
})
|
|
61347
|
-
});
|
|
62024
|
+
}));
|
|
61348
62025
|
};
|
|
61349
62026
|
/* harmony default export */ var src_rate_rate = (Rate);
|
|
61350
62027
|
;// CONCATENATED MODULE: ./src/rate/rate.tsx
|
|
@@ -61381,12 +62058,14 @@ RateComp.displayName = 'ShineoutRate';
|
|
|
61381
62058
|
/* harmony default export */ var src_rate_0 = (RateComp);
|
|
61382
62059
|
;// CONCATENATED MODULE: ../hooks/src/utils/rule/required.ts
|
|
61383
62060
|
|
|
62061
|
+
|
|
62062
|
+
|
|
61384
62063
|
var options = {
|
|
61385
62064
|
skipUndefined: true
|
|
61386
62065
|
};
|
|
61387
62066
|
var requiredMessage = function requiredMessage(props) {
|
|
61388
62067
|
var type = props.type === 'array' ? 'array' : 'string';
|
|
61389
|
-
return "
|
|
62068
|
+
return substitute(getLocale(src_config_config.locale, "rules.required.".concat(type)), props);
|
|
61390
62069
|
};
|
|
61391
62070
|
/* harmony default export */ var required = (function () {
|
|
61392
62071
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
@@ -63259,6 +63938,7 @@ var scroll_table_Scroll = function Scroll(props) {
|
|
|
63259
63938
|
// 非定高的Table但依旧采用了virtual渲染方式,需要渲染出全部的data
|
|
63260
63939
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
63261
63940
|
if (!props.tableRef.current || !props.setFakeVirtual) return;
|
|
63941
|
+
if (props.tableRef.current.style.height || props.tableRef.current.style.flex) return;
|
|
63262
63942
|
var container = containerRef.current;
|
|
63263
63943
|
var isContainerVisible = (container === null || container === void 0 ? void 0 : container.offsetParent) !== null;
|
|
63264
63944
|
if (!isContainerVisible) return;
|
|
@@ -63349,6 +64029,8 @@ function useScrollbarWidth() {
|
|
|
63349
64029
|
|
|
63350
64030
|
|
|
63351
64031
|
|
|
64032
|
+
|
|
64033
|
+
|
|
63352
64034
|
var getHideExpandCol = function getHideExpandCol() {
|
|
63353
64035
|
var cols = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
63354
64036
|
var expandCol = cols.find(function (col) {
|
|
@@ -63359,7 +64041,17 @@ var getHideExpandCol = function getHideExpandCol() {
|
|
|
63359
64041
|
}
|
|
63360
64042
|
return null;
|
|
63361
64043
|
};
|
|
64044
|
+
// 缓冲区列数:左右各2列
|
|
64045
|
+
var BUFFER_COUNT = 2;
|
|
63362
64046
|
var useColumns = function useColumns(props) {
|
|
64047
|
+
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
64048
|
+
_useState2 = slicedToArray_default()(_useState, 2),
|
|
64049
|
+
startIndex = _useState2[0],
|
|
64050
|
+
setStartIndex = _useState2[1];
|
|
64051
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(20),
|
|
64052
|
+
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
64053
|
+
renderedCount = _useState4[0],
|
|
64054
|
+
setRenderedCount = _useState4[1];
|
|
63363
64055
|
var _props$columns = props.columns,
|
|
63364
64056
|
propsColumns = _props$columns === void 0 ? [] : _props$columns;
|
|
63365
64057
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
@@ -63414,8 +64106,76 @@ var useColumns = function useColumns(props) {
|
|
|
63414
64106
|
return context.cachedColumns;
|
|
63415
64107
|
});
|
|
63416
64108
|
var columns = getColumns(propsColumns) || [];
|
|
64109
|
+
var leftFixedColumns = columns.filter(function (col) {
|
|
64110
|
+
return col.fixed === 'left';
|
|
64111
|
+
});
|
|
64112
|
+
var middleColumns = columns.filter(function (col) {
|
|
64113
|
+
return !col.fixed;
|
|
64114
|
+
});
|
|
64115
|
+
var handleScroll = function handleScroll(scrollInfo) {
|
|
64116
|
+
var scrollLeft = scrollInfo.scrollLeft;
|
|
64117
|
+
var sum = 0;
|
|
64118
|
+
var currentIndex = 0;
|
|
64119
|
+
for (var i = 0, len = middleColumns.length - 1; i < len; i++) {
|
|
64120
|
+
var curCol = middleColumns[i];
|
|
64121
|
+
sum += curCol.width || 100;
|
|
64122
|
+
if (scrollLeft < sum) {
|
|
64123
|
+
// 计算可视区域内需要渲染的列数
|
|
64124
|
+
for (var j = i + 1; j < len; j++) {
|
|
64125
|
+
var _props$scrollRef$curr;
|
|
64126
|
+
var nextCol = middleColumns[j];
|
|
64127
|
+
sum += nextCol.width || 100;
|
|
64128
|
+
if (props.scrollRef.current && sum - scrollLeft >= ((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientWidth)) {
|
|
64129
|
+
// 在原有基础上,右侧增加缓冲列
|
|
64130
|
+
var visibleCount = j - i;
|
|
64131
|
+
setRenderedCount(Math.min(visibleCount + BUFFER_COUNT * 2, len));
|
|
64132
|
+
break;
|
|
64133
|
+
}
|
|
64134
|
+
}
|
|
64135
|
+
|
|
64136
|
+
// 左侧也增加缓冲列,但不能小于0
|
|
64137
|
+
var bufferedStartIndex = Math.max(0, i - BUFFER_COUNT);
|
|
64138
|
+
currentIndex = bufferedStartIndex + leftFixedColumns.length;
|
|
64139
|
+
break;
|
|
64140
|
+
}
|
|
64141
|
+
}
|
|
64142
|
+
setStartIndex(currentIndex);
|
|
64143
|
+
};
|
|
64144
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64145
|
+
if (!props.virtualColumn) return;
|
|
64146
|
+
handleScroll({
|
|
64147
|
+
scrollLeft: 0
|
|
64148
|
+
});
|
|
64149
|
+
}, []);
|
|
63417
64150
|
return {
|
|
63418
|
-
columns: columns,
|
|
64151
|
+
columns: props.virtualColumn ? columns.map(function (col, index) {
|
|
64152
|
+
if (col.fixed) {
|
|
64153
|
+
return col;
|
|
64154
|
+
}
|
|
64155
|
+
if (index < startIndex || index > startIndex + renderedCount) {
|
|
64156
|
+
var colSpan;
|
|
64157
|
+
if (index > startIndex + renderedCount && index === startIndex + renderedCount + 1) {
|
|
64158
|
+
colSpan = function colSpan() {
|
|
64159
|
+
return middleColumns.length - (startIndex + renderedCount) + 1;
|
|
64160
|
+
};
|
|
64161
|
+
} else if (index < startIndex && index === leftFixedColumns.length && startIndex > 0) {
|
|
64162
|
+
colSpan = function colSpan() {
|
|
64163
|
+
return startIndex;
|
|
64164
|
+
};
|
|
64165
|
+
}
|
|
64166
|
+
return objectSpread2_default()(objectSpread2_default()({}, col), {}, {
|
|
64167
|
+
colSpan: colSpan,
|
|
64168
|
+
render: function render() {
|
|
64169
|
+
return null;
|
|
64170
|
+
},
|
|
64171
|
+
title: null
|
|
64172
|
+
});
|
|
64173
|
+
}
|
|
64174
|
+
return col;
|
|
64175
|
+
}) : columns,
|
|
64176
|
+
columnInfo: {
|
|
64177
|
+
handleScroll: handleScroll
|
|
64178
|
+
},
|
|
63419
64179
|
expandHideCol: context.expandHideCol
|
|
63420
64180
|
};
|
|
63421
64181
|
};
|
|
@@ -63807,6 +64567,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
63807
64567
|
|
|
63808
64568
|
|
|
63809
64569
|
|
|
64570
|
+
|
|
63810
64571
|
var useTableFilter = function useTableFilter(props) {
|
|
63811
64572
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(new Map()),
|
|
63812
64573
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -63819,10 +64580,13 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63819
64580
|
});
|
|
63820
64581
|
}, [filterInfo]);
|
|
63821
64582
|
var filteredData = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
63822
|
-
var _props$
|
|
64583
|
+
var _props$columns;
|
|
63823
64584
|
// why use slice: props.data引用不改变会导致后续的useMemo无法重新计算
|
|
63824
64585
|
if (activeFilters.length === 0) return (props.data || []).slice();
|
|
63825
|
-
|
|
64586
|
+
var columnHasChildren = (_props$columns = props.columns) === null || _props$columns === void 0 ? void 0 : _props$columns.find(function (col) {
|
|
64587
|
+
return col.treeColumnsName;
|
|
64588
|
+
});
|
|
64589
|
+
return getFilterTree(props.data, function (item) {
|
|
63826
64590
|
return activeFilters.every(function (key) {
|
|
63827
64591
|
var filter = filterInfo.get(key);
|
|
63828
64592
|
if ((filter === null || filter === void 0 ? void 0 : filter.value) === undefined) return true;
|
|
@@ -63832,7 +64596,9 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63832
64596
|
}
|
|
63833
64597
|
return true;
|
|
63834
64598
|
});
|
|
63835
|
-
})
|
|
64599
|
+
}, undefined, function (node) {
|
|
64600
|
+
return getKey(props.keygen, node);
|
|
64601
|
+
}, columnHasChildren === null || columnHasChildren === void 0 ? void 0 : columnHasChildren.treeColumnsName, false);
|
|
63836
64602
|
}, [activeFilters, props.data]);
|
|
63837
64603
|
var onFilterChange = use_persist_fn(function (columnKey, value) {
|
|
63838
64604
|
// TODO: 暂未开放reset全部筛选条件
|
|
@@ -63862,8 +64628,8 @@ var useTableFilter = function useTableFilter(props) {
|
|
|
63862
64628
|
// 根据columns生成filterInfo
|
|
63863
64629
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63864
64630
|
setFilterInfo(function (prev) {
|
|
63865
|
-
var _props$
|
|
63866
|
-
var _filterInfo = props === null || props === void 0 || (_props$
|
|
64631
|
+
var _props$columns2;
|
|
64632
|
+
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) {
|
|
63867
64633
|
var _prev$get2, _column$filter;
|
|
63868
64634
|
if (!column.filter) return acc;
|
|
63869
64635
|
var columnKey = typeof column.render === 'string' ? column.render : String(index);
|
|
@@ -64064,11 +64830,14 @@ function getMaxRowSpanLength(input) {
|
|
|
64064
64830
|
return Math.max.apply(Math, toConsumableArray_default()(Array.from(map.values())));
|
|
64065
64831
|
}
|
|
64066
64832
|
var useTableVirtual = function useTableVirtual(props) {
|
|
64833
|
+
var _props$scrollRef$curr;
|
|
64067
64834
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
64068
64835
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
64069
64836
|
innerTop = _useState2[0],
|
|
64070
64837
|
setTop = _useState2[1];
|
|
64071
|
-
var
|
|
64838
|
+
var strictRowHeight = props.strictRowHeight ? props.strictRowHeight : 0;
|
|
64839
|
+
var defaultScrollHeight = strictRowHeight ? props.data.length * strictRowHeight : props.data.length * props.rowHeight;
|
|
64840
|
+
var _useState3 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(defaultScrollHeight),
|
|
64072
64841
|
_useState4 = slicedToArray_default()(_useState3, 2),
|
|
64073
64842
|
scrollHeight = _useState4[0],
|
|
64074
64843
|
setHeight = _useState4[1];
|
|
@@ -64080,6 +64849,15 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64080
64849
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
64081
64850
|
offsetY = _useState8[0],
|
|
64082
64851
|
setOffsetY = _useState8[1];
|
|
64852
|
+
|
|
64853
|
+
// TODO: 尝试垂直滚动采用延迟销毁 + 操作dom transform方案提升性能?
|
|
64854
|
+
// const setTop = (v: number) => {
|
|
64855
|
+
// if (props.virtual === 'lazy') {
|
|
64856
|
+
// props.innerRef.current && (props.innerRef.current.style.transform = `translate3d(0, ${-v}px, 0)`);
|
|
64857
|
+
// } else {
|
|
64858
|
+
// }
|
|
64859
|
+
// _setTop(v);
|
|
64860
|
+
// }
|
|
64083
64861
|
var rowsInView = props.rowsInView === 0 ? props.data.length : props.rowsInView;
|
|
64084
64862
|
var rowSpanInfo = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
64085
64863
|
var rowSpanColumns = props.columns.filter(function (col) {
|
|
@@ -64154,6 +64932,9 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64154
64932
|
context = _useRef.current;
|
|
64155
64933
|
var getContentHeight = function getContentHeight(index) {
|
|
64156
64934
|
if (props.disabled) return 0;
|
|
64935
|
+
if (strictRowHeight) {
|
|
64936
|
+
return strictRowHeight * (index + 1) + props.theadHeight + props.tfootHeight;
|
|
64937
|
+
}
|
|
64157
64938
|
var sum = 0;
|
|
64158
64939
|
for (var i = 0; i <= index; i++) {
|
|
64159
64940
|
sum += context.cachedHeight[i] || props.rowHeight;
|
|
@@ -64179,17 +64960,26 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64179
64960
|
});
|
|
64180
64961
|
}
|
|
64181
64962
|
});
|
|
64963
|
+
|
|
64964
|
+
// const setStartIndex2 = (index:number) => {
|
|
64965
|
+
// let sum = 0;
|
|
64966
|
+
// for (let i = 0; i < index; i++) {
|
|
64967
|
+
// sum += context.cachedHeight[i] || props.rowHeight;
|
|
64968
|
+
// }
|
|
64969
|
+
// props.innerRef.current && (props.innerRef.current.style.transform = `translate3d(0, ${-innerTop + sum}px, 0)`);
|
|
64970
|
+
// setStartIndex(index);
|
|
64971
|
+
// }
|
|
64972
|
+
|
|
64973
|
+
var maxIndex = Math.max(props.data.length - rowsInView, 0);
|
|
64974
|
+
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
64182
64975
|
var updateIndexAndTopFromTop = function updateIndexAndTopFromTop(scrollTop, fromDrag) {
|
|
64183
|
-
var _props$scrollRef$curr;
|
|
64184
64976
|
if (props.disabled) return;
|
|
64185
64977
|
var sum = 0;
|
|
64186
64978
|
var currentIndex = 0;
|
|
64187
64979
|
var top = 0;
|
|
64188
|
-
var maxIndex = Math.max(props.data.length - rowsInView, 0);
|
|
64189
|
-
var scrollContainerHeight = Math.max(((_props$scrollRef$curr = props.scrollRef.current) === null || _props$scrollRef$curr === void 0 ? void 0 : _props$scrollRef$curr.clientHeight) || 0, 200);
|
|
64190
64980
|
for (var i = 0; i <= maxIndex; i++) {
|
|
64191
64981
|
context.rowSpanRows = 0;
|
|
64192
|
-
var currentRowHeight = context.cachedHeight[i] || props.rowHeight;
|
|
64982
|
+
var currentRowHeight = strictRowHeight || context.cachedHeight[i] || props.rowHeight;
|
|
64193
64983
|
sum += currentRowHeight;
|
|
64194
64984
|
var rowSpanHeight = 0;
|
|
64195
64985
|
if (rowSpanInfo) {
|
|
@@ -64204,17 +64994,26 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64204
64994
|
if (rowSpanHeight < scrollContainerHeight) {
|
|
64205
64995
|
var index = siblingsIndexs[j];
|
|
64206
64996
|
context.rowSpanRows += 1;
|
|
64207
|
-
rowSpanHeight += context.cachedHeight[index] || props.rowHeight;
|
|
64997
|
+
rowSpanHeight += strictRowHeight || context.cachedHeight[index] || props.rowHeight;
|
|
64208
64998
|
}
|
|
64209
64999
|
}
|
|
64210
65000
|
}
|
|
64211
65001
|
if (scrollTop < sum + rowSpanHeight || i === maxIndex) {
|
|
64212
65002
|
currentIndex = i;
|
|
64213
|
-
var beforeHeight = i === 0 ? 0 : sum - (context.cachedHeight[i] || props.rowHeight);
|
|
65003
|
+
var beforeHeight = i === 0 ? 0 : sum - (strictRowHeight || context.cachedHeight[i] || props.rowHeight);
|
|
64214
65004
|
top = scrollTop - beforeHeight;
|
|
64215
65005
|
break;
|
|
64216
65006
|
}
|
|
64217
65007
|
}
|
|
65008
|
+
// if (props.virtual === 'lazy') {
|
|
65009
|
+
// setTop(scrollTop);
|
|
65010
|
+
// context.autoAddRows = currentIndex
|
|
65011
|
+
// setTimeout(() => {
|
|
65012
|
+
// setStartIndex2(currentIndex);
|
|
65013
|
+
// context.autoAddRows = 0
|
|
65014
|
+
// }, 300);
|
|
65015
|
+
// return;
|
|
65016
|
+
// }
|
|
64218
65017
|
if (currentIndex !== startIndex) {
|
|
64219
65018
|
setStartIndex(currentIndex);
|
|
64220
65019
|
|
|
@@ -64343,16 +65142,16 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64343
65142
|
var addonHeight = 0;
|
|
64344
65143
|
var addonCount = 0;
|
|
64345
65144
|
for (var i = startIndex + rowsInView; i < props.data.length; i++) {
|
|
64346
|
-
var height = context.cachedHeight[i] || props.rowHeight;
|
|
65145
|
+
var height = strictRowHeight || context.cachedHeight[i] || props.rowHeight;
|
|
64347
65146
|
addonHeight += height;
|
|
64348
65147
|
addonCount += 1;
|
|
64349
|
-
if (addonHeight >= remainHeight + context.cachedHeight[0]) break;
|
|
65148
|
+
if (addonHeight >= remainHeight + (strictRowHeight || context.cachedHeight[0])) break;
|
|
64350
65149
|
}
|
|
64351
65150
|
if (addonCount > 0) {
|
|
64352
65151
|
context.autoAddRows = addonCount;
|
|
64353
65152
|
}
|
|
64354
65153
|
}
|
|
64355
|
-
}, []);
|
|
65154
|
+
}, [props.data.length]);
|
|
64356
65155
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64357
65156
|
// 记录preIndex
|
|
64358
65157
|
context.preIndex = startIndex;
|
|
@@ -64395,6 +65194,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
64395
65194
|
return toConsumableArray_default()(props.data).slice(startIndex, startIndex + finalRowsInView);
|
|
64396
65195
|
}, [props.data, props.disabled, startIndex, finalRowsInView]);
|
|
64397
65196
|
var translateStyle = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
65197
|
+
// if (props.virtual === 'lazy') return 'translate3d(0, 0, 0)';
|
|
64398
65198
|
var t = innerTop + offsetY;
|
|
64399
65199
|
if (t < 0) {
|
|
64400
65200
|
t = 0;
|
|
@@ -65174,7 +65974,7 @@ var thead_toNum = toNum;
|
|
|
65174
65974
|
dir: config.direction
|
|
65175
65975
|
});
|
|
65176
65976
|
};
|
|
65177
|
-
var getFixedStyle = function getFixedStyle(fixed, index,
|
|
65977
|
+
var getFixedStyle = function getFixedStyle(fixed, index, level) {
|
|
65178
65978
|
// 累加level 至 0 的所有高度
|
|
65179
65979
|
var top = context.trHeights.slice(0, level).reduce(function (a, b) {
|
|
65180
65980
|
return thead_toNum(a) + thead_toNum(b);
|
|
@@ -65190,7 +65990,7 @@ var thead_toNum = toNum;
|
|
|
65190
65990
|
};
|
|
65191
65991
|
}
|
|
65192
65992
|
if (fixed === 'right') {
|
|
65193
|
-
var right = colgroup.slice(index +
|
|
65993
|
+
var right = colgroup.slice(index + 1).reduce(function (a, b) {
|
|
65194
65994
|
return thead_toNum(a) + thead_toNum(b);
|
|
65195
65995
|
}, 0);
|
|
65196
65996
|
return {
|
|
@@ -65208,7 +66008,7 @@ var thead_toNum = toNum;
|
|
|
65208
66008
|
var _colTemp2$groupProps, _colTemp2$groupProps2;
|
|
65209
66009
|
var colTemp = col;
|
|
65210
66010
|
var colTemp2 = col;
|
|
65211
|
-
var fixedStyle = getFixedStyle(col.fixed, col.index,
|
|
66011
|
+
var fixedStyle = getFixedStyle(col.fixed, col.index, level);
|
|
65212
66012
|
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));
|
|
65213
66013
|
var isExpand = colTemp.type === 'expand' || colTemp.type === 'row-expand';
|
|
65214
66014
|
if (colTemp.title || isExpand) {
|
|
@@ -65491,7 +66291,6 @@ function useComponentMemo(getValue, condition, shouldUpdate) {
|
|
|
65491
66291
|
|
|
65492
66292
|
|
|
65493
66293
|
function Td(props) {
|
|
65494
|
-
var _props$style, _props$style2;
|
|
65495
66294
|
var col = props.col,
|
|
65496
66295
|
colSpan = props.colSpan,
|
|
65497
66296
|
rowSpan = props.rowSpan,
|
|
@@ -65503,28 +66302,31 @@ function Td(props) {
|
|
|
65503
66302
|
onMouseEnter = props.onMouseEnter,
|
|
65504
66303
|
onMouseLeave = props.onMouseLeave,
|
|
65505
66304
|
renderContent = props.renderContent;
|
|
65506
|
-
var $td =
|
|
65507
|
-
|
|
65508
|
-
|
|
65509
|
-
|
|
65510
|
-
|
|
65511
|
-
|
|
65512
|
-
|
|
65513
|
-
|
|
65514
|
-
|
|
65515
|
-
|
|
65516
|
-
|
|
65517
|
-
|
|
65518
|
-
|
|
65519
|
-
|
|
65520
|
-
|
|
65521
|
-
|
|
65522
|
-
|
|
65523
|
-
|
|
65524
|
-
|
|
65525
|
-
|
|
65526
|
-
|
|
65527
|
-
|
|
66305
|
+
var $td = /*#__PURE__*/(0,jsx_runtime.jsx)("td", {
|
|
66306
|
+
colSpan: colSpan,
|
|
66307
|
+
rowSpan: rowSpan,
|
|
66308
|
+
onMouseEnter: onMouseEnter,
|
|
66309
|
+
onMouseLeave: onMouseLeave,
|
|
66310
|
+
className: className,
|
|
66311
|
+
style: props.style,
|
|
66312
|
+
dir: direction,
|
|
66313
|
+
"data-role": role,
|
|
66314
|
+
onClick: onClick,
|
|
66315
|
+
children: renderContent(props.col, props.data)
|
|
66316
|
+
}, col.key);
|
|
66317
|
+
if (props.virtual === 'lazy') {
|
|
66318
|
+
var _props$style, _props$style2;
|
|
66319
|
+
return useComponentMemo(function () {
|
|
66320
|
+
return $td;
|
|
66321
|
+
}, [data, className, (_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.left, (_props$style2 = props.style) === null || _props$style2 === void 0 ? void 0 : _props$style2.right, col.type, col.treeColumnsName], function (prev, next) {
|
|
66322
|
+
if (col.type || col.treeColumnsName) {
|
|
66323
|
+
return true;
|
|
66324
|
+
}
|
|
66325
|
+
return prev.some(function (_, index) {
|
|
66326
|
+
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
66327
|
+
}) || !props.scrolling;
|
|
66328
|
+
});
|
|
66329
|
+
}
|
|
65528
66330
|
return $td;
|
|
65529
66331
|
}
|
|
65530
66332
|
;// CONCATENATED MODULE: ../base/src/table/tr.tsx
|
|
@@ -65578,12 +66380,12 @@ var Tr = function Tr(props) {
|
|
|
65578
66380
|
}
|
|
65579
66381
|
return undefined;
|
|
65580
66382
|
};
|
|
65581
|
-
var getTdStyle =
|
|
66383
|
+
var getTdStyle = function getTdStyle(column, colSpan) {
|
|
65582
66384
|
var index = column.index;
|
|
65583
66385
|
var fixedStyle = getFixedStyle(column.fixed, index, colSpan);
|
|
65584
66386
|
if (!fixedStyle && !column.style) return;
|
|
65585
66387
|
return objectSpread2_default()(objectSpread2_default()({}, column.style), fixedStyle);
|
|
65586
|
-
}
|
|
66388
|
+
};
|
|
65587
66389
|
var handleCellClick = usePersistFn(function (data, colIndex) {
|
|
65588
66390
|
if (!props.onCellClick) return;
|
|
65589
66391
|
props.onCellClick(data, {
|
|
@@ -65593,16 +66395,16 @@ var Tr = function Tr(props) {
|
|
|
65593
66395
|
});
|
|
65594
66396
|
});
|
|
65595
66397
|
var setVirtualRowHeight = usePersistFn(function () {
|
|
66398
|
+
if (props.strictRowHeight) return;
|
|
65596
66399
|
if (props.setRowHeight && trRef.current) {
|
|
65597
|
-
// 祖先元素不可见时(display: none)
|
|
65598
|
-
if (!trRef.current.offsetParent) return;
|
|
65599
66400
|
var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
|
|
65600
66401
|
props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
|
|
65601
66402
|
}
|
|
65602
66403
|
});
|
|
65603
66404
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(setVirtualRowHeight, [props.expanded, props.rowIndex, props.bodyScrollWidth, props.resizeFlag]);
|
|
65604
66405
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
65605
|
-
|
|
66406
|
+
// 祖先元素不可见时(display: none)
|
|
66407
|
+
if (props.strictRowHeight || !trRef.current || !trRef.current.offsetParent) return;
|
|
65606
66408
|
var cancelObserver = addResizeObserver(trRef.current, setVirtualRowHeight, {
|
|
65607
66409
|
direction: 'y'
|
|
65608
66410
|
});
|
|
@@ -65648,7 +66450,7 @@ var Tr = function Tr(props) {
|
|
|
65648
66450
|
return _ref.apply(this, arguments);
|
|
65649
66451
|
};
|
|
65650
66452
|
}());
|
|
65651
|
-
var renderTreeExpand =
|
|
66453
|
+
var renderTreeExpand = function renderTreeExpand(content) {
|
|
65652
66454
|
var treeIndent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 22;
|
|
65653
66455
|
var level = props.treeExpandLevel.get(props.originKey) || 0;
|
|
65654
66456
|
var className = tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.expandWrapper;
|
|
@@ -65701,8 +66503,8 @@ var Tr = function Tr(props) {
|
|
|
65701
66503
|
},
|
|
65702
66504
|
children: [$expandIconWrapper, content]
|
|
65703
66505
|
});
|
|
65704
|
-
}
|
|
65705
|
-
var renderContent =
|
|
66506
|
+
};
|
|
66507
|
+
var renderContent = function renderContent(col, data) {
|
|
65706
66508
|
if (col.type === 'expand' || col.type === 'row-expand') {
|
|
65707
66509
|
var renderResult = typeof col.render === 'function' ? col.render(props.rawData, props.rowIndex) : undefined;
|
|
65708
66510
|
if (typeof renderResult !== 'function') return null;
|
|
@@ -65770,8 +66572,8 @@ var Tr = function Tr(props) {
|
|
|
65770
66572
|
}
|
|
65771
66573
|
if (col.render === undefined) return null;
|
|
65772
66574
|
return content;
|
|
65773
|
-
}
|
|
65774
|
-
var renderTds =
|
|
66575
|
+
};
|
|
66576
|
+
var renderTds = function renderTds(cols, data) {
|
|
65775
66577
|
var tds = [];
|
|
65776
66578
|
var skip = 0;
|
|
65777
66579
|
var lastRowIndex = data.length - 1;
|
|
@@ -65788,7 +66590,7 @@ var Tr = function Tr(props) {
|
|
|
65788
66590
|
var last = cols[i + (data[i].colSpan || 1) - 1] || {};
|
|
65789
66591
|
var isRowSpanTd = data[i].rowSpan > 1;
|
|
65790
66592
|
var shouldBindMouseEvent = props.hover && hasSiblingRowSpan || isRowSpanTd;
|
|
65791
|
-
var showCellHover = props.hoverIndex.has(props.rowIndex);
|
|
66593
|
+
var showCellHover = props.hover && props.hoverIndex.has(props.rowIndex);
|
|
65792
66594
|
if (!showCellHover && data[i].rowSpan > 1) {
|
|
65793
66595
|
for (var j = 0; j < data[i].rowSpan; j++) {
|
|
65794
66596
|
if (props.hoverIndex.has(props.rowIndex + j)) {
|
|
@@ -65827,7 +66629,7 @@ var Tr = function Tr(props) {
|
|
|
65827
66629
|
if (_loop(i)) continue;
|
|
65828
66630
|
}
|
|
65829
66631
|
return tds;
|
|
65830
|
-
}
|
|
66632
|
+
};
|
|
65831
66633
|
var renderExpand = function renderExpand() {
|
|
65832
66634
|
if (!props.expanded) return null;
|
|
65833
66635
|
var expandCol = props.expandCol;
|
|
@@ -65902,7 +66704,10 @@ var Tr = function Tr(props) {
|
|
|
65902
66704
|
return /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
65903
66705
|
children: [/*#__PURE__*/(0,jsx_runtime.jsx)("tr", objectSpread2_default()(objectSpread2_default()({
|
|
65904
66706
|
ref: trRef,
|
|
65905
|
-
className: classnames_default()(props === null || props === void 0 || (_props$rowClassName = props.rowClassName) === null || _props$rowClassName === void 0 ? void 0 : _props$rowClassName.call(props, props.rawData, props.rowIndex), props.striped && props.rowIndex % 2 === 1 && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowStriped), props.isSelect && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowChecked), props.hover && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowHover))
|
|
66707
|
+
className: classnames_default()(props === null || props === void 0 || (_props$rowClassName = props.rowClassName) === null || _props$rowClassName === void 0 ? void 0 : _props$rowClassName.call(props, props.rawData, props.rowIndex), props.striped && props.rowIndex % 2 === 1 && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowStriped), props.isSelect && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowChecked), props.hover && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.rowHover)),
|
|
66708
|
+
style: {
|
|
66709
|
+
height: props.strictRowHeight ? props.strictRowHeight : undefined
|
|
66710
|
+
}
|
|
65906
66711
|
}, props.rowEvents), {}, {
|
|
65907
66712
|
onClick: handleRowClick,
|
|
65908
66713
|
children: renderTds(props.columns, props.row)
|
|
@@ -66000,20 +66805,24 @@ var Tr = function Tr(props) {
|
|
|
66000
66805
|
treeCheckAll: props.treeCheckAll,
|
|
66001
66806
|
onCellClick: props.onCellClick,
|
|
66002
66807
|
virtual: props.virtual,
|
|
66003
|
-
scrolling: props.scrolling
|
|
66808
|
+
scrolling: props.scrolling,
|
|
66809
|
+
strictRowHeight: props.strictRowHeight
|
|
66004
66810
|
}, trRenderKey);
|
|
66005
66811
|
};
|
|
66006
|
-
var $tbody =
|
|
66007
|
-
|
|
66008
|
-
|
|
66009
|
-
|
|
66010
|
-
|
|
66812
|
+
var $tbody = /*#__PURE__*/(0,jsx_runtime.jsx)("tbody", {
|
|
66813
|
+
children: (props.data || []).map(function (item, index) {
|
|
66814
|
+
return renderRow(item, index);
|
|
66815
|
+
})
|
|
66816
|
+
});
|
|
66817
|
+
if (props.virtual === 'lazy') {
|
|
66818
|
+
return useComponentMemo(function () {
|
|
66819
|
+
return $tbody;
|
|
66820
|
+
}, [props.data, currentIndex], function (prev, next) {
|
|
66821
|
+
return prev.some(function (_, index) {
|
|
66822
|
+
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
66823
|
+
}) || !props.scrolling;
|
|
66011
66824
|
});
|
|
66012
|
-
}
|
|
66013
|
-
return prev.some(function (_, index) {
|
|
66014
|
-
return !shallowEqual(prev === null || prev === void 0 ? void 0 : prev[index], next === null || next === void 0 ? void 0 : next[index]);
|
|
66015
|
-
}) || !props.scrolling;
|
|
66016
|
-
} : undefined);
|
|
66825
|
+
}
|
|
66017
66826
|
return $tbody;
|
|
66018
66827
|
});
|
|
66019
66828
|
;// CONCATENATED MODULE: ../base/src/table/tfoot.tsx
|
|
@@ -66159,7 +66968,7 @@ var table_emptyArr = [];
|
|
|
66159
66968
|
var emptyRef = {
|
|
66160
66969
|
current: null
|
|
66161
66970
|
};
|
|
66162
|
-
|
|
66971
|
+
function Table(props) {
|
|
66163
66972
|
var _props$jssStyle, _props$jssStyle$table, _columns$find;
|
|
66164
66973
|
var _props$verticalAlign = props.verticalAlign,
|
|
66165
66974
|
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
|
@@ -66247,10 +67056,13 @@ var emptyRef = {
|
|
|
66247
67056
|
});
|
|
66248
67057
|
var _useTableColumns = use_table_columns({
|
|
66249
67058
|
columns: props.columns,
|
|
67059
|
+
virtualColumn: props.virtualColumn,
|
|
67060
|
+
scrollRef: scrollRef,
|
|
66250
67061
|
showCheckbox: typeof props.onRowSelect === 'function'
|
|
66251
67062
|
}),
|
|
66252
67063
|
columns = _useTableColumns.columns,
|
|
66253
|
-
expandHideCol = _useTableColumns.expandHideCol
|
|
67064
|
+
expandHideCol = _useTableColumns.expandHideCol,
|
|
67065
|
+
columnInfo = _useTableColumns.columnInfo;
|
|
66254
67066
|
var _useTableLayout = use_table_layout({
|
|
66255
67067
|
theadRef: theadRef,
|
|
66256
67068
|
tbodyRef: tbodyRef,
|
|
@@ -66275,6 +67087,7 @@ var emptyRef = {
|
|
|
66275
67087
|
scrollWidth = _useTableLayout.scrollWidth,
|
|
66276
67088
|
resizeFlag = _useTableLayout.resizeFlag;
|
|
66277
67089
|
var _useTableFilter = use_table_filter({
|
|
67090
|
+
keygen: props.keygen,
|
|
66278
67091
|
data: props.data,
|
|
66279
67092
|
columns: props.columns
|
|
66280
67093
|
}),
|
|
@@ -66388,12 +67201,14 @@ var emptyRef = {
|
|
|
66388
67201
|
};
|
|
66389
67202
|
}, [theadRef.current, tfootRef.current]);
|
|
66390
67203
|
var virtualInfo = use_table_virtual({
|
|
67204
|
+
virtual: props.virtual,
|
|
66391
67205
|
disabled: !virtual,
|
|
66392
67206
|
data: treeData,
|
|
66393
67207
|
columns: columns,
|
|
66394
67208
|
colgroup: colgroup,
|
|
66395
67209
|
rowsInView: props.rowsInView || 20,
|
|
66396
67210
|
rowHeight: props.rowHeight || 40,
|
|
67211
|
+
strictRowHeight: props.strictRowHeight,
|
|
66397
67212
|
scrollRef: scrollRef,
|
|
66398
67213
|
innerRef: tbodyRef,
|
|
66399
67214
|
scrollLeft: props.scrollLeft,
|
|
@@ -66417,6 +67232,9 @@ var emptyRef = {
|
|
|
66417
67232
|
var target = e.currentTarget;
|
|
66418
67233
|
if (!target) return;
|
|
66419
67234
|
layoutFunc.checkFloat();
|
|
67235
|
+
if (props.virtualColumn) columnInfo.handleScroll({
|
|
67236
|
+
scrollLeft: target.scrollLeft
|
|
67237
|
+
});
|
|
66420
67238
|
if (headMirrorScrollRef.current) {
|
|
66421
67239
|
headMirrorScrollRef.current.scrollLeft = target.scrollLeft;
|
|
66422
67240
|
}
|
|
@@ -66436,6 +67254,7 @@ var emptyRef = {
|
|
|
66436
67254
|
// 虚拟表格的滚动事件
|
|
66437
67255
|
var handleVirtualScroll = usePersistFn(function (info) {
|
|
66438
67256
|
virtualInfo.handleScroll(info);
|
|
67257
|
+
if (props.virtualColumn) columnInfo.handleScroll(info);
|
|
66439
67258
|
layoutFunc.checkFloat();
|
|
66440
67259
|
if (headMirrorScrollRef.current) {
|
|
66441
67260
|
headMirrorScrollRef.current.scrollLeft = info.scrollLeft;
|
|
@@ -66447,7 +67266,7 @@ var emptyRef = {
|
|
|
66447
67266
|
props.onScroll(info.x, info.y, info.scrollLeft, info.scrollTop);
|
|
66448
67267
|
}
|
|
66449
67268
|
syncHeaderScroll(info.scrollLeft);
|
|
66450
|
-
if (props.virtual !==
|
|
67269
|
+
if (props.virtual !== 'lazy') return;
|
|
66451
67270
|
if (context.scrollingTimer) {
|
|
66452
67271
|
clearTimeout(context.scrollingTimer);
|
|
66453
67272
|
}
|
|
@@ -66465,7 +67284,7 @@ var emptyRef = {
|
|
|
66465
67284
|
jssStyle: props.jssStyle
|
|
66466
67285
|
});
|
|
66467
67286
|
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66468
|
-
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
|
|
67287
|
+
className: classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyWrapper, isScrollX && browserScrollbarWidth > 0 && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.emptyNoBorder)),
|
|
66469
67288
|
ref: function ref(el) {
|
|
66470
67289
|
context.emptyHeight = (el === null || el === void 0 ? void 0 : el.clientHeight) || 0;
|
|
66471
67290
|
},
|
|
@@ -66516,7 +67335,8 @@ var emptyRef = {
|
|
|
66516
67335
|
bodyScrollWidth: scrollWidth,
|
|
66517
67336
|
resizeFlag: resizeFlag,
|
|
66518
67337
|
treeCheckAll: props.treeCheckAll,
|
|
66519
|
-
onCellClick: props.onCellClick
|
|
67338
|
+
onCellClick: props.onCellClick,
|
|
67339
|
+
strictRowHeight: props.strictRowHeight
|
|
66520
67340
|
};
|
|
66521
67341
|
var headCommonProps = {
|
|
66522
67342
|
disabled: props.disabled,
|
|
@@ -66791,6 +67611,12 @@ var emptyRef = {
|
|
|
66791
67611
|
props.tableRef(tableFunc);
|
|
66792
67612
|
}
|
|
66793
67613
|
}, []);
|
|
67614
|
+
var absoluteProviderValue = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
67615
|
+
return {
|
|
67616
|
+
absolute: true,
|
|
67617
|
+
scrollElRef: scrollRef
|
|
67618
|
+
};
|
|
67619
|
+
}, [scrollRef]);
|
|
66794
67620
|
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));
|
|
66795
67621
|
if (!props.columns || columns.length === 0) return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
66796
67622
|
className: classnames_default()(tableWrapperClass, tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.simple, props.striped && (tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.striped)),
|
|
@@ -66813,15 +67639,13 @@ var emptyRef = {
|
|
|
66813
67639
|
ref: tableRef,
|
|
66814
67640
|
dir: config.direction,
|
|
66815
67641
|
children: /*#__PURE__*/(0,jsx_runtime.jsxs)(absolute_context.Provider, {
|
|
66816
|
-
value:
|
|
66817
|
-
absolute: true,
|
|
66818
|
-
scrollElRef: scrollRef
|
|
66819
|
-
},
|
|
67642
|
+
value: absoluteProviderValue,
|
|
66820
67643
|
children: [renderTable(), renderLoading(), props.children]
|
|
66821
67644
|
})
|
|
66822
67645
|
})), renderPagination()]
|
|
66823
67646
|
});
|
|
66824
|
-
}
|
|
67647
|
+
}
|
|
67648
|
+
;
|
|
66825
67649
|
;// CONCATENATED MODULE: ./src/table/table.tsx
|
|
66826
67650
|
|
|
66827
67651
|
|
|
@@ -66845,14 +67669,14 @@ var table_jssStyle = {
|
|
|
66845
67669
|
popover: usePopoverStyle,
|
|
66846
67670
|
tree: useTreeStyle
|
|
66847
67671
|
};
|
|
66848
|
-
/* harmony default export */ var
|
|
66849
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)(
|
|
67672
|
+
/* harmony default export */ var src_table_table = (function (props) {
|
|
67673
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)(Table, objectSpread2_default()({
|
|
66850
67674
|
jssStyle: table_jssStyle
|
|
66851
67675
|
}, props));
|
|
66852
67676
|
});
|
|
66853
67677
|
;// CONCATENATED MODULE: ./src/table/index.ts
|
|
66854
67678
|
|
|
66855
|
-
var TableComp =
|
|
67679
|
+
var TableComp = src_table_table;
|
|
66856
67680
|
TableComp.displayName = 'ShineoutTable';
|
|
66857
67681
|
/* harmony default export */ var src_table_0 = (TableComp);
|
|
66858
67682
|
;// CONCATENATED MODULE: ../hooks/src/components/use-tabs/context.tsx
|
|
@@ -68625,6 +69449,7 @@ var TransferOperate = function TransferOperate(props) {
|
|
|
68625
69449
|
|
|
68626
69450
|
|
|
68627
69451
|
|
|
69452
|
+
|
|
68628
69453
|
var Transfer = function Transfer(props) {
|
|
68629
69454
|
var _jssStyle$transfer;
|
|
68630
69455
|
var jssStyle = props.jssStyle,
|
|
@@ -68798,12 +69623,13 @@ var Transfer = function Transfer(props) {
|
|
|
68798
69623
|
filterTargetText: filterTargetText,
|
|
68799
69624
|
highlight: props.highlight
|
|
68800
69625
|
},
|
|
68801
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
|
|
69626
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
68802
69627
|
className: rootClass,
|
|
68803
69628
|
style: style,
|
|
68804
|
-
id: fieldId
|
|
69629
|
+
id: fieldId
|
|
69630
|
+
}, getDataset(props)), {}, {
|
|
68805
69631
|
children: [renderSourceList, !simple && renderOperations(), renderTargetList]
|
|
68806
|
-
})
|
|
69632
|
+
}))
|
|
68807
69633
|
});
|
|
68808
69634
|
};
|
|
68809
69635
|
/* harmony default export */ var src_transfer_transfer = (Transfer);
|
|
@@ -69012,7 +69838,8 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69012
69838
|
onEnterExpand = props.onEnterExpand,
|
|
69013
69839
|
onExpand = props.onExpand,
|
|
69014
69840
|
beforeChange = props.beforeChange,
|
|
69015
|
-
filterSameChange = props.filterSameChange
|
|
69841
|
+
filterSameChange = props.filterSameChange,
|
|
69842
|
+
checkOnFiltered = props.checkOnFiltered;
|
|
69016
69843
|
var styles = jssStyle === null || jssStyle === void 0 || (_jssStyle$treeSelect = jssStyle.treeSelect) === null || _jssStyle$treeSelect === void 0 ? void 0 : _jssStyle$treeSelect.call(jssStyle);
|
|
69017
69844
|
var rootStyle = Object.assign({
|
|
69018
69845
|
width: width
|
|
@@ -69100,7 +69927,7 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69100
69927
|
var _useTree = use_tree({
|
|
69101
69928
|
mode: mode,
|
|
69102
69929
|
value: value,
|
|
69103
|
-
data: data,
|
|
69930
|
+
data: checkOnFiltered ? filterData || [] : data,
|
|
69104
69931
|
unmatch: unmatch,
|
|
69105
69932
|
tiledData: tiledData,
|
|
69106
69933
|
virtual: virtual,
|
|
@@ -69563,11 +70390,11 @@ var TreeSelect = function TreeSelect(props0) {
|
|
|
69563
70390
|
filterText: filterText,
|
|
69564
70391
|
highlight: props.highlight
|
|
69565
70392
|
},
|
|
69566
|
-
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()({
|
|
70393
|
+
children: /*#__PURE__*/(0,jsx_runtime.jsxs)("div", objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({
|
|
69567
70394
|
id: fieldId,
|
|
69568
70395
|
ref: targetRef,
|
|
69569
70396
|
tabIndex: disabled === true || showInput ? undefined : 0
|
|
69570
|
-
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), {}, {
|
|
70397
|
+
}, getDataAttribute(defineProperty_default()({}, 'input-border', 'true'))), getDataset(props)), {}, {
|
|
69571
70398
|
className: rootClass,
|
|
69572
70399
|
style: rootStyle,
|
|
69573
70400
|
onBlur: handleBlur,
|
|
@@ -70691,10 +71518,11 @@ var Upload = function Upload(props0) {
|
|
|
70691
71518
|
var shouldRenderLeft = listType !== 'image' || leftHandler;
|
|
70692
71519
|
var _useContext = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useContext)(FormFieldContext),
|
|
70693
71520
|
fieldId = _useContext.fieldId;
|
|
70694
|
-
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
|
|
71521
|
+
return /*#__PURE__*/(0,jsx_runtime.jsx)("div", objectSpread2_default()(objectSpread2_default()({
|
|
70695
71522
|
id: fieldId,
|
|
70696
71523
|
style: props.style,
|
|
70697
|
-
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)
|
|
71524
|
+
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)
|
|
71525
|
+
}, getDataset(props)), {}, {
|
|
70698
71526
|
children: renderCustomResult ? /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70699
71527
|
children: [shouldRenderLeft && renderHandler(), renderCustomResult({
|
|
70700
71528
|
value: value,
|
|
@@ -70710,7 +71538,7 @@ var Upload = function Upload(props0) {
|
|
|
70710
71538
|
}) : /*#__PURE__*/(0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {
|
|
70711
71539
|
children: [shouldRenderLeft && !hideHandler && renderHandler(), renderValue(), renderFile(), !shouldRenderLeft && !hideHandler && renderHandler(), renderRecover()]
|
|
70712
71540
|
})
|
|
70713
|
-
});
|
|
71541
|
+
}));
|
|
70714
71542
|
};
|
|
70715
71543
|
/* harmony default export */ var src_upload_upload = (Upload);
|
|
70716
71544
|
;// CONCATENATED MODULE: ./src/upload/use-upload-common.ts
|
|
@@ -73340,7 +74168,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
73340
74168
|
|
|
73341
74169
|
|
|
73342
74170
|
/* harmony default export */ var src_0 = ({
|
|
73343
|
-
version: '3.9.0-beta.
|
|
74171
|
+
version: '3.9.0-beta.21'
|
|
73344
74172
|
});
|
|
73345
74173
|
}();
|
|
73346
74174
|
/******/ return __webpack_exports__;
|