|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
"use strict";
|
|
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[52970,28518,20105,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{
|
|
|
|
|
(self["webpackChunk"] = self["webpackChunk"] || []).push([[24317,38342,57824,73580,96699,6700,87959,67454,97968,3702,85804],{
|
|
|
|
|
|
|
|
|
|
/***/ 65363:
|
|
|
|
|
/*!*************************************************************************************************************!*\
|
|
|
|
|
@ -136,6 +136,96 @@ if (false) {}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 8657:
|
|
|
|
|
/*!************************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules ***!
|
|
|
|
|
\************************************************************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
Z: function() { return /* binding */ icons_FolderOpenOutlined; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.0@@babel/runtime/helpers/esm/extends.js
|
|
|
|
|
var esm_extends = __webpack_require__(72308);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FolderOpenOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var FolderOpenOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z" } }] }, "name": "folder-open", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_FolderOpenOutlined = (FolderOpenOutlined);
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FolderOpenOutlined_FolderOpenOutlined = function FolderOpenOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_FolderOpenOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOpenOutlined_FolderOpenOutlined);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_FolderOpenOutlined = (RefIcon);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 10906:
|
|
|
|
|
/*!******************************************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js + 1 modules ***!
|
|
|
|
|
\******************************************************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
Z: function() { return /* binding */ icons_FormOutlined; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.0@@babel/runtime/helpers/esm/extends.js
|
|
|
|
|
var esm_extends = __webpack_require__(72308);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FormOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var FormOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M904 512h-56c-4.4 0-8 3.6-8 8v320H184V184h320c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V520c0-4.4-3.6-8-8-8z" } }, { "tag": "path", "attrs": { "d": "M355.9 534.9L354 653.8c-.1 8.9 7.1 16.2 16 16.2h.4l118-2.9c2-.1 4-.9 5.4-2.3l415.9-415c3.1-3.1 3.1-8.2 0-11.3L785.4 114.3c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-415.8 415a8.3 8.3 0 00-2.3 5.6zm63.5 23.6L779.7 199l45.2 45.1-360.5 359.7-45.7 1.1.7-46.4z" } }] }, "name": "form", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_FormOutlined = (FormOutlined);
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FormOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FormOutlined_FormOutlined = function FormOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_FormOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FormOutlined_FormOutlined);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_FormOutlined = (RefIcon);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 24905:
|
|
|
|
|
/*!************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/index.js + 3 modules ***!
|
|
|
|
|
@ -414,246 +504,6 @@ if (false) {}
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 98447:
|
|
|
|
|
/*!******************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/checkbox/style/index.js ***!
|
|
|
|
|
\******************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
/* harmony export */ C2: function() { return /* binding */ getStyle; }
|
|
|
|
|
/* harmony export */ });
|
|
|
|
|
/* unused harmony export genCheckboxStyle */
|
|
|
|
|
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../style */ 17313);
|
|
|
|
|
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../theme/internal */ 37613);
|
|
|
|
|
/* harmony import */ var _theme_internal__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme/internal */ 83116);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ============================== Styles ==============================
|
|
|
|
|
const genCheckboxStyle = token => {
|
|
|
|
|
const {
|
|
|
|
|
checkboxCls
|
|
|
|
|
} = token;
|
|
|
|
|
const wrapperCls = `${checkboxCls}-wrapper`;
|
|
|
|
|
return [
|
|
|
|
|
// ===================== Basic =====================
|
|
|
|
|
{
|
|
|
|
|
// Group
|
|
|
|
|
[`${checkboxCls}-group`]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
|
|
|
|
|
display: 'inline-flex',
|
|
|
|
|
flexWrap: 'wrap',
|
|
|
|
|
columnGap: token.marginXS,
|
|
|
|
|
// Group > Grid
|
|
|
|
|
[`> ${token.antCls}-row`]: {
|
|
|
|
|
flex: 1
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
// Wrapper
|
|
|
|
|
[wrapperCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
|
|
|
|
|
display: 'inline-flex',
|
|
|
|
|
alignItems: 'baseline',
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
// Fix checkbox & radio in flex align #30260
|
|
|
|
|
'&:after': {
|
|
|
|
|
display: 'inline-block',
|
|
|
|
|
width: 0,
|
|
|
|
|
overflow: 'hidden',
|
|
|
|
|
content: "'\\a0'"
|
|
|
|
|
},
|
|
|
|
|
// Checkbox near checkbox
|
|
|
|
|
[`& + ${wrapperCls}`]: {
|
|
|
|
|
marginInlineStart: 0
|
|
|
|
|
},
|
|
|
|
|
[`&${wrapperCls}-in-form-item`]: {
|
|
|
|
|
'input[type="checkbox"]': {
|
|
|
|
|
width: 14,
|
|
|
|
|
height: 14 // FIXME: magic
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
|
|
|
|
|
// Wrapper > Checkbox
|
|
|
|
|
[checkboxCls]: Object.assign(Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .resetComponent */ .Wf)(token)), {
|
|
|
|
|
position: 'relative',
|
|
|
|
|
whiteSpace: 'nowrap',
|
|
|
|
|
lineHeight: 1,
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
borderRadius: token.borderRadiusSM,
|
|
|
|
|
// To make alignment right when `controlHeight` is changed
|
|
|
|
|
// Ref: https://github.com/ant-design/ant-design/issues/41564
|
|
|
|
|
alignSelf: 'center',
|
|
|
|
|
// Wrapper > Checkbox > input
|
|
|
|
|
[`${checkboxCls}-input`]: {
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
// Since baseline align will get additional space offset,
|
|
|
|
|
// we need to move input to top to make it align with text.
|
|
|
|
|
// Ref: https://github.com/ant-design/ant-design/issues/38926#issuecomment-1486137799
|
|
|
|
|
inset: 0,
|
|
|
|
|
zIndex: 1,
|
|
|
|
|
cursor: 'pointer',
|
|
|
|
|
opacity: 0,
|
|
|
|
|
margin: 0,
|
|
|
|
|
[`&:focus-visible + ${checkboxCls}-inner`]: Object.assign({}, (0,_style__WEBPACK_IMPORTED_MODULE_0__/* .genFocusOutline */ .oN)(token))
|
|
|
|
|
},
|
|
|
|
|
// Wrapper > Checkbox > inner
|
|
|
|
|
[`${checkboxCls}-inner`]: {
|
|
|
|
|
boxSizing: 'border-box',
|
|
|
|
|
position: 'relative',
|
|
|
|
|
top: 0,
|
|
|
|
|
insetInlineStart: 0,
|
|
|
|
|
display: 'block',
|
|
|
|
|
width: token.checkboxSize,
|
|
|
|
|
height: token.checkboxSize,
|
|
|
|
|
direction: 'ltr',
|
|
|
|
|
backgroundColor: token.colorBgContainer,
|
|
|
|
|
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
|
|
|
|
borderRadius: token.borderRadiusSM,
|
|
|
|
|
borderCollapse: 'separate',
|
|
|
|
|
transition: `all ${token.motionDurationSlow}`,
|
|
|
|
|
'&:after': {
|
|
|
|
|
boxSizing: 'border-box',
|
|
|
|
|
position: 'absolute',
|
|
|
|
|
top: '50%',
|
|
|
|
|
insetInlineStart: '21.5%',
|
|
|
|
|
display: 'table',
|
|
|
|
|
width: token.checkboxSize / 14 * 5,
|
|
|
|
|
height: token.checkboxSize / 14 * 8,
|
|
|
|
|
border: `${token.lineWidthBold}px solid ${token.colorWhite}`,
|
|
|
|
|
borderTop: 0,
|
|
|
|
|
borderInlineStart: 0,
|
|
|
|
|
transform: 'rotate(45deg) scale(0) translate(-50%,-50%)',
|
|
|
|
|
opacity: 0,
|
|
|
|
|
content: '""',
|
|
|
|
|
transition: `all ${token.motionDurationFast} ${token.motionEaseInBack}, opacity ${token.motionDurationFast}`
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// Wrapper > Checkbox + Text
|
|
|
|
|
'& + span': {
|
|
|
|
|
paddingInlineStart: token.paddingXS,
|
|
|
|
|
paddingInlineEnd: token.paddingXS
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// ===================== Hover =====================
|
|
|
|
|
{
|
|
|
|
|
// Wrapper & Wrapper > Checkbox
|
|
|
|
|
[`
|
|
|
|
|
${wrapperCls}:not(${wrapperCls}-disabled),
|
|
|
|
|
${checkboxCls}:not(${checkboxCls}-disabled)
|
|
|
|
|
`]: {
|
|
|
|
|
[`&:hover ${checkboxCls}-inner`]: {
|
|
|
|
|
borderColor: token.colorPrimary
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
[`${wrapperCls}:not(${wrapperCls}-disabled)`]: {
|
|
|
|
|
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled) ${checkboxCls}-inner`]: {
|
|
|
|
|
backgroundColor: token.colorPrimaryHover,
|
|
|
|
|
borderColor: 'transparent'
|
|
|
|
|
},
|
|
|
|
|
[`&:hover ${checkboxCls}-checked:not(${checkboxCls}-disabled):after`]: {
|
|
|
|
|
borderColor: token.colorPrimaryHover
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// ==================== Checked ====================
|
|
|
|
|
{
|
|
|
|
|
// Wrapper > Checkbox
|
|
|
|
|
[`${checkboxCls}-checked`]: {
|
|
|
|
|
[`${checkboxCls}-inner`]: {
|
|
|
|
|
backgroundColor: token.colorPrimary,
|
|
|
|
|
borderColor: token.colorPrimary,
|
|
|
|
|
'&:after': {
|
|
|
|
|
opacity: 1,
|
|
|
|
|
transform: 'rotate(45deg) scale(1) translate(-50%,-50%)',
|
|
|
|
|
transition: `all ${token.motionDurationMid} ${token.motionEaseOutBack} ${token.motionDurationFast}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
[`
|
|
|
|
|
${wrapperCls}-checked:not(${wrapperCls}-disabled),
|
|
|
|
|
${checkboxCls}-checked:not(${checkboxCls}-disabled)
|
|
|
|
|
`]: {
|
|
|
|
|
[`&:hover ${checkboxCls}-inner`]: {
|
|
|
|
|
backgroundColor: token.colorPrimaryHover,
|
|
|
|
|
borderColor: 'transparent'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// ================= Indeterminate =================
|
|
|
|
|
{
|
|
|
|
|
[checkboxCls]: {
|
|
|
|
|
'&-indeterminate': {
|
|
|
|
|
// Wrapper > Checkbox > inner
|
|
|
|
|
[`${checkboxCls}-inner`]: {
|
|
|
|
|
backgroundColor: token.colorBgContainer,
|
|
|
|
|
borderColor: token.colorBorder,
|
|
|
|
|
'&:after': {
|
|
|
|
|
top: '50%',
|
|
|
|
|
insetInlineStart: '50%',
|
|
|
|
|
width: token.fontSizeLG / 2,
|
|
|
|
|
height: token.fontSizeLG / 2,
|
|
|
|
|
backgroundColor: token.colorPrimary,
|
|
|
|
|
border: 0,
|
|
|
|
|
transform: 'translate(-50%, -50%) scale(1)',
|
|
|
|
|
opacity: 1,
|
|
|
|
|
content: '""'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// ==================== Disable ====================
|
|
|
|
|
{
|
|
|
|
|
// Wrapper
|
|
|
|
|
[`${wrapperCls}-disabled`]: {
|
|
|
|
|
cursor: 'not-allowed'
|
|
|
|
|
},
|
|
|
|
|
// Wrapper > Checkbox
|
|
|
|
|
[`${checkboxCls}-disabled`]: {
|
|
|
|
|
// Wrapper > Checkbox > input
|
|
|
|
|
[`&, ${checkboxCls}-input`]: {
|
|
|
|
|
cursor: 'not-allowed',
|
|
|
|
|
// Disabled for native input to enable Tooltip event handler
|
|
|
|
|
// ref: https://github.com/ant-design/ant-design/issues/39822#issuecomment-1365075901
|
|
|
|
|
pointerEvents: 'none'
|
|
|
|
|
},
|
|
|
|
|
// Wrapper > Checkbox > inner
|
|
|
|
|
[`${checkboxCls}-inner`]: {
|
|
|
|
|
background: token.colorBgContainerDisabled,
|
|
|
|
|
borderColor: token.colorBorder,
|
|
|
|
|
'&:after': {
|
|
|
|
|
borderColor: token.colorTextDisabled
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
'&:after': {
|
|
|
|
|
display: 'none'
|
|
|
|
|
},
|
|
|
|
|
'& + span': {
|
|
|
|
|
color: token.colorTextDisabled
|
|
|
|
|
},
|
|
|
|
|
[`&${checkboxCls}-indeterminate ${checkboxCls}-inner::after`]: {
|
|
|
|
|
background: token.colorTextDisabled
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}];
|
|
|
|
|
};
|
|
|
|
|
// ============================== Export ==============================
|
|
|
|
|
function getStyle(prefixCls, token) {
|
|
|
|
|
const checkboxToken = (0,_theme_internal__WEBPACK_IMPORTED_MODULE_1__/* .merge */ .TS)(token, {
|
|
|
|
|
checkboxCls: `.${prefixCls}`,
|
|
|
|
|
checkboxSize: token.controlInteractiveSize
|
|
|
|
|
});
|
|
|
|
|
return [genCheckboxStyle(checkboxToken)];
|
|
|
|
|
}
|
|
|
|
|
/* harmony default export */ __webpack_exports__.ZP = ((0,_theme_internal__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)('Checkbox', (token, _ref) => {
|
|
|
|
|
let {
|
|
|
|
|
prefixCls
|
|
|
|
|
} = _ref;
|
|
|
|
|
return [getStyle(prefixCls, token)];
|
|
|
|
|
}));
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 38854:
|
|
|
|
|
/*!************************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/dropdown/index.js + 1 modules ***!
|
|
|
|
|
@ -1629,6 +1479,486 @@ const CompoundedSpace = Space;
|
|
|
|
|
CompoundedSpace.Compact = Compact/* default */.ZP;
|
|
|
|
|
/* harmony default export */ var space = (CompoundedSpace);
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ 41416:
|
|
|
|
|
/*!********************************************************************!*\
|
|
|
|
|
!*** ./node_modules/_antd@5.9.0@antd/es/tree/index.js + 8 modules ***!
|
|
|
|
|
\********************************************************************/
|
|
|
|
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// EXPORTS
|
|
|
|
|
__webpack_require__.d(__webpack_exports__, {
|
|
|
|
|
Z: function() { return /* binding */ tree; }
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/index.js + 7 modules
|
|
|
|
|
var es = __webpack_require__(54844);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.0@@babel/runtime/helpers/esm/toConsumableArray.js + 2 modules
|
|
|
|
|
var toConsumableArray = __webpack_require__(80702);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FileOutlined.js + 1 modules
|
|
|
|
|
var FileOutlined = __webpack_require__(52671);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOpenOutlined.js + 1 modules
|
|
|
|
|
var FolderOpenOutlined = __webpack_require__(8657);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@babel_runtime@7.27.0@@babel/runtime/helpers/esm/extends.js
|
|
|
|
|
var esm_extends = __webpack_require__(72308);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_react@17.0.2@react/index.js
|
|
|
|
|
var _react_17_0_2_react = __webpack_require__(59301);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/FolderOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var FolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z" } }] }, "name": "folder", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_FolderOutlined = (FolderOutlined);
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/components/AntdIcon.js + 3 modules
|
|
|
|
|
var AntdIcon = __webpack_require__(7657);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/FolderOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var FolderOutlined_FolderOutlined = function FolderOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_FolderOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
var RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(FolderOutlined_FolderOutlined);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_FolderOutlined = (RefIcon);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_classnames@2.5.1@classnames/index.js
|
|
|
|
|
var _classnames_2_5_1_classnames = __webpack_require__(92310);
|
|
|
|
|
var _classnames_2_5_1_classnames_default = /*#__PURE__*/__webpack_require__.n(_classnames_2_5_1_classnames);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/util.js
|
|
|
|
|
var util = __webpack_require__(35654);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_rc-tree@5.7.12@rc-tree/es/utils/treeUtil.js
|
|
|
|
|
var treeUtil = __webpack_require__(71430);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/config-provider/context.js
|
|
|
|
|
var context = __webpack_require__(36355);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons-svg@4.4.2@@ant-design/icons-svg/es/asn/HolderOutlined.js
|
|
|
|
|
// This icon file is generated automatically.
|
|
|
|
|
var HolderOutlined = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z" } }] }, "name": "holder", "theme": "outlined" };
|
|
|
|
|
/* harmony default export */ var asn_HolderOutlined = (HolderOutlined);
|
|
|
|
|
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_@ant-design_icons@5.6.1@@ant-design/icons/es/icons/HolderOutlined.js
|
|
|
|
|
|
|
|
|
|
// GENERATE BY ./scripts/generate.ts
|
|
|
|
|
// DON NOT EDIT IT MANUALLY
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var HolderOutlined_HolderOutlined = function HolderOutlined(props, ref) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(AntdIcon/* default */.Z, (0,esm_extends/* default */.Z)({}, props, {
|
|
|
|
|
ref: ref,
|
|
|
|
|
icon: asn_HolderOutlined
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/** */
|
|
|
|
|
var HolderOutlined_RefIcon = /*#__PURE__*/_react_17_0_2_react.forwardRef(HolderOutlined_HolderOutlined);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var icons_HolderOutlined = (HolderOutlined_RefIcon);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/_util/motion.js
|
|
|
|
|
var _util_motion = __webpack_require__(62892);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/style/index.js
|
|
|
|
|
var tree_style = __webpack_require__(20648);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dropIndicator.js
|
|
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const offset = 4;
|
|
|
|
|
function dropIndicatorRender(props) {
|
|
|
|
|
const {
|
|
|
|
|
dropPosition,
|
|
|
|
|
dropLevelOffset,
|
|
|
|
|
prefixCls,
|
|
|
|
|
indent,
|
|
|
|
|
direction = 'ltr'
|
|
|
|
|
} = props;
|
|
|
|
|
const startPosition = direction === 'ltr' ? 'left' : 'right';
|
|
|
|
|
const endPosition = direction === 'ltr' ? 'right' : 'left';
|
|
|
|
|
const style = {
|
|
|
|
|
[startPosition]: -dropLevelOffset * indent + offset,
|
|
|
|
|
[endPosition]: 0
|
|
|
|
|
};
|
|
|
|
|
switch (dropPosition) {
|
|
|
|
|
case -1:
|
|
|
|
|
style.top = -3;
|
|
|
|
|
break;
|
|
|
|
|
case 1:
|
|
|
|
|
style.bottom = -3;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
// dropPosition === 0
|
|
|
|
|
style.bottom = -3;
|
|
|
|
|
style[startPosition] = indent + offset;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement("div", {
|
|
|
|
|
style: style,
|
|
|
|
|
className: `${prefixCls}-drop-indicator`
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/iconUtil.js + 2 modules
|
|
|
|
|
var iconUtil = __webpack_require__(71997);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/Tree.js
|
|
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const Tree = /*#__PURE__*/_react_17_0_2_react.forwardRef((props, ref) => {
|
|
|
|
|
const {
|
|
|
|
|
getPrefixCls,
|
|
|
|
|
direction,
|
|
|
|
|
virtual,
|
|
|
|
|
tree
|
|
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
|
|
const {
|
|
|
|
|
prefixCls: customizePrefixCls,
|
|
|
|
|
className,
|
|
|
|
|
showIcon = false,
|
|
|
|
|
showLine,
|
|
|
|
|
switcherIcon,
|
|
|
|
|
blockNode = false,
|
|
|
|
|
children,
|
|
|
|
|
checkable = false,
|
|
|
|
|
selectable = true,
|
|
|
|
|
draggable,
|
|
|
|
|
motion: customMotion,
|
|
|
|
|
style
|
|
|
|
|
} = props;
|
|
|
|
|
const prefixCls = getPrefixCls('tree', customizePrefixCls);
|
|
|
|
|
const rootPrefixCls = getPrefixCls();
|
|
|
|
|
const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, (0,_util_motion/* default */.Z)(rootPrefixCls)), {
|
|
|
|
|
motionAppear: false
|
|
|
|
|
});
|
|
|
|
|
const newProps = Object.assign(Object.assign({}, props), {
|
|
|
|
|
checkable,
|
|
|
|
|
selectable,
|
|
|
|
|
showIcon,
|
|
|
|
|
motion,
|
|
|
|
|
blockNode,
|
|
|
|
|
showLine: Boolean(showLine),
|
|
|
|
|
dropIndicatorRender: dropIndicatorRender
|
|
|
|
|
});
|
|
|
|
|
const [wrapSSR, hashId] = (0,tree_style/* default */.ZP)(prefixCls);
|
|
|
|
|
const draggableConfig = _react_17_0_2_react.useMemo(() => {
|
|
|
|
|
if (!draggable) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
let mergedDraggable = {};
|
|
|
|
|
switch (typeof draggable) {
|
|
|
|
|
case 'function':
|
|
|
|
|
mergedDraggable.nodeDraggable = draggable;
|
|
|
|
|
break;
|
|
|
|
|
case 'object':
|
|
|
|
|
mergedDraggable = Object.assign({}, draggable);
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
// Do nothing
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mergedDraggable.icon !== false) {
|
|
|
|
|
mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/_react_17_0_2_react.createElement(icons_HolderOutlined, null);
|
|
|
|
|
}
|
|
|
|
|
return mergedDraggable;
|
|
|
|
|
}, [draggable]);
|
|
|
|
|
const renderSwitcherIcon = nodeProps => /*#__PURE__*/_react_17_0_2_react.createElement(iconUtil/* default */.Z, {
|
|
|
|
|
prefixCls: prefixCls,
|
|
|
|
|
switcherIcon: switcherIcon,
|
|
|
|
|
treeNodeProps: nodeProps,
|
|
|
|
|
showLine: showLine
|
|
|
|
|
});
|
|
|
|
|
return wrapSSR( /*#__PURE__*/_react_17_0_2_react.createElement(es/* default */.Z, Object.assign({
|
|
|
|
|
itemHeight: 20,
|
|
|
|
|
ref: ref,
|
|
|
|
|
virtual: virtual
|
|
|
|
|
}, newProps, {
|
|
|
|
|
// newProps may contain style so declare style below it
|
|
|
|
|
style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style),
|
|
|
|
|
prefixCls: prefixCls,
|
|
|
|
|
className: _classnames_2_5_1_classnames_default()({
|
|
|
|
|
[`${prefixCls}-icon-hide`]: !showIcon,
|
|
|
|
|
[`${prefixCls}-block-node`]: blockNode,
|
|
|
|
|
[`${prefixCls}-unselectable`]: !selectable,
|
|
|
|
|
[`${prefixCls}-rtl`]: direction === 'rtl'
|
|
|
|
|
}, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId),
|
|
|
|
|
direction: direction,
|
|
|
|
|
checkable: checkable ? /*#__PURE__*/_react_17_0_2_react.createElement("span", {
|
|
|
|
|
className: `${prefixCls}-checkbox-inner`
|
|
|
|
|
}) : checkable,
|
|
|
|
|
selectable: selectable,
|
|
|
|
|
switcherIcon: renderSwitcherIcon,
|
|
|
|
|
draggable: draggableConfig
|
|
|
|
|
}), children));
|
|
|
|
|
});
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var tree_Tree = (Tree);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/utils/dictUtil.js
|
|
|
|
|
|
|
|
|
|
var Record;
|
|
|
|
|
(function (Record) {
|
|
|
|
|
Record[Record["None"] = 0] = "None";
|
|
|
|
|
Record[Record["Start"] = 1] = "Start";
|
|
|
|
|
Record[Record["End"] = 2] = "End";
|
|
|
|
|
})(Record || (Record = {}));
|
|
|
|
|
function traverseNodesKey(treeData, callback) {
|
|
|
|
|
function processNode(dataNode) {
|
|
|
|
|
const {
|
|
|
|
|
key,
|
|
|
|
|
children
|
|
|
|
|
} = dataNode;
|
|
|
|
|
if (callback(key, dataNode) !== false) {
|
|
|
|
|
traverseNodesKey(children || [], callback);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
treeData.forEach(processNode);
|
|
|
|
|
}
|
|
|
|
|
/** 计算选中范围,只考虑expanded情况以优化性能 */
|
|
|
|
|
function calcRangeKeys(_ref) {
|
|
|
|
|
let {
|
|
|
|
|
treeData,
|
|
|
|
|
expandedKeys,
|
|
|
|
|
startKey,
|
|
|
|
|
endKey
|
|
|
|
|
} = _ref;
|
|
|
|
|
const keys = [];
|
|
|
|
|
let record = Record.None;
|
|
|
|
|
if (startKey && startKey === endKey) {
|
|
|
|
|
return [startKey];
|
|
|
|
|
}
|
|
|
|
|
if (!startKey || !endKey) {
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
function matchKey(key) {
|
|
|
|
|
return key === startKey || key === endKey;
|
|
|
|
|
}
|
|
|
|
|
traverseNodesKey(treeData, key => {
|
|
|
|
|
if (record === Record.End) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (matchKey(key)) {
|
|
|
|
|
// Match test
|
|
|
|
|
keys.push(key);
|
|
|
|
|
if (record === Record.None) {
|
|
|
|
|
record = Record.Start;
|
|
|
|
|
} else if (record === Record.Start) {
|
|
|
|
|
record = Record.End;
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
} else if (record === Record.Start) {
|
|
|
|
|
// Append selection
|
|
|
|
|
keys.push(key);
|
|
|
|
|
}
|
|
|
|
|
return expandedKeys.includes(key);
|
|
|
|
|
});
|
|
|
|
|
return keys;
|
|
|
|
|
}
|
|
|
|
|
function convertDirectoryKeysToNodes(treeData, keys) {
|
|
|
|
|
const restKeys = (0,toConsumableArray/* default */.Z)(keys);
|
|
|
|
|
const nodes = [];
|
|
|
|
|
traverseNodesKey(treeData, (key, node) => {
|
|
|
|
|
const index = restKeys.indexOf(key);
|
|
|
|
|
if (index !== -1) {
|
|
|
|
|
nodes.push(node);
|
|
|
|
|
restKeys.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
return !!restKeys.length;
|
|
|
|
|
});
|
|
|
|
|
return nodes;
|
|
|
|
|
}
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/DirectoryTree.js
|
|
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
|
|
var t = {};
|
|
|
|
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
|
|
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
|
|
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
|
|
|
}
|
|
|
|
|
return t;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getIcon(props) {
|
|
|
|
|
const {
|
|
|
|
|
isLeaf,
|
|
|
|
|
expanded
|
|
|
|
|
} = props;
|
|
|
|
|
if (isLeaf) {
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(FileOutlined/* default */.Z, null);
|
|
|
|
|
}
|
|
|
|
|
return expanded ? /*#__PURE__*/_react_17_0_2_react.createElement(FolderOpenOutlined/* default */.Z, null) : /*#__PURE__*/_react_17_0_2_react.createElement(icons_FolderOutlined, null);
|
|
|
|
|
}
|
|
|
|
|
function getTreeData(_ref) {
|
|
|
|
|
let {
|
|
|
|
|
treeData,
|
|
|
|
|
children
|
|
|
|
|
} = _ref;
|
|
|
|
|
return treeData || (0,treeUtil/* convertTreeToData */.zn)(children);
|
|
|
|
|
}
|
|
|
|
|
const DirectoryTree = (_a, ref) => {
|
|
|
|
|
var {
|
|
|
|
|
defaultExpandAll,
|
|
|
|
|
defaultExpandParent,
|
|
|
|
|
defaultExpandedKeys
|
|
|
|
|
} = _a,
|
|
|
|
|
props = __rest(_a, ["defaultExpandAll", "defaultExpandParent", "defaultExpandedKeys"]);
|
|
|
|
|
// Shift click usage
|
|
|
|
|
const lastSelectedKey = _react_17_0_2_react.useRef();
|
|
|
|
|
const cachedSelectedKeys = _react_17_0_2_react.useRef();
|
|
|
|
|
const getInitExpandedKeys = () => {
|
|
|
|
|
const {
|
|
|
|
|
keyEntities
|
|
|
|
|
} = (0,treeUtil/* convertDataToEntities */.I8)(getTreeData(props));
|
|
|
|
|
let initExpandedKeys;
|
|
|
|
|
// Expanded keys
|
|
|
|
|
if (defaultExpandAll) {
|
|
|
|
|
initExpandedKeys = Object.keys(keyEntities);
|
|
|
|
|
} else if (defaultExpandParent) {
|
|
|
|
|
initExpandedKeys = (0,util/* conductExpandParent */.r7)(props.expandedKeys || defaultExpandedKeys || [], keyEntities);
|
|
|
|
|
} else {
|
|
|
|
|
initExpandedKeys = props.expandedKeys || defaultExpandedKeys;
|
|
|
|
|
}
|
|
|
|
|
return initExpandedKeys;
|
|
|
|
|
};
|
|
|
|
|
const [selectedKeys, setSelectedKeys] = _react_17_0_2_react.useState(props.selectedKeys || props.defaultSelectedKeys || []);
|
|
|
|
|
const [expandedKeys, setExpandedKeys] = _react_17_0_2_react.useState(() => getInitExpandedKeys());
|
|
|
|
|
_react_17_0_2_react.useEffect(() => {
|
|
|
|
|
if ('selectedKeys' in props) {
|
|
|
|
|
setSelectedKeys(props.selectedKeys);
|
|
|
|
|
}
|
|
|
|
|
}, [props.selectedKeys]);
|
|
|
|
|
_react_17_0_2_react.useEffect(() => {
|
|
|
|
|
if ('expandedKeys' in props) {
|
|
|
|
|
setExpandedKeys(props.expandedKeys);
|
|
|
|
|
}
|
|
|
|
|
}, [props.expandedKeys]);
|
|
|
|
|
const onExpand = (keys, info) => {
|
|
|
|
|
var _a;
|
|
|
|
|
if (!('expandedKeys' in props)) {
|
|
|
|
|
setExpandedKeys(keys);
|
|
|
|
|
}
|
|
|
|
|
// Call origin function
|
|
|
|
|
return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info);
|
|
|
|
|
};
|
|
|
|
|
const onSelect = (keys, event) => {
|
|
|
|
|
var _a;
|
|
|
|
|
const {
|
|
|
|
|
multiple
|
|
|
|
|
} = props;
|
|
|
|
|
const {
|
|
|
|
|
node,
|
|
|
|
|
nativeEvent
|
|
|
|
|
} = event;
|
|
|
|
|
const {
|
|
|
|
|
key = ''
|
|
|
|
|
} = node;
|
|
|
|
|
const treeData = getTreeData(props);
|
|
|
|
|
// const newState: DirectoryTreeState = {};
|
|
|
|
|
// We need wrap this event since some value is not same
|
|
|
|
|
const newEvent = Object.assign(Object.assign({}, event), {
|
|
|
|
|
selected: true
|
|
|
|
|
});
|
|
|
|
|
// Windows / Mac single pick
|
|
|
|
|
const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);
|
|
|
|
|
const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;
|
|
|
|
|
// Generate new selected keys
|
|
|
|
|
let newSelectedKeys;
|
|
|
|
|
if (multiple && ctrlPick) {
|
|
|
|
|
// Control click
|
|
|
|
|
newSelectedKeys = keys;
|
|
|
|
|
lastSelectedKey.current = key;
|
|
|
|
|
cachedSelectedKeys.current = newSelectedKeys;
|
|
|
|
|
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
|
|
|
|
|
} else if (multiple && shiftPick) {
|
|
|
|
|
// Shift click
|
|
|
|
|
newSelectedKeys = Array.from(new Set([].concat((0,toConsumableArray/* default */.Z)(cachedSelectedKeys.current || []), (0,toConsumableArray/* default */.Z)(calcRangeKeys({
|
|
|
|
|
treeData,
|
|
|
|
|
expandedKeys,
|
|
|
|
|
startKey: key,
|
|
|
|
|
endKey: lastSelectedKey.current
|
|
|
|
|
})))));
|
|
|
|
|
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
|
|
|
|
|
} else {
|
|
|
|
|
// Single click
|
|
|
|
|
newSelectedKeys = [key];
|
|
|
|
|
lastSelectedKey.current = key;
|
|
|
|
|
cachedSelectedKeys.current = newSelectedKeys;
|
|
|
|
|
newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys);
|
|
|
|
|
}
|
|
|
|
|
(_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent);
|
|
|
|
|
if (!('selectedKeys' in props)) {
|
|
|
|
|
setSelectedKeys(newSelectedKeys);
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
const {
|
|
|
|
|
getPrefixCls,
|
|
|
|
|
direction
|
|
|
|
|
} = _react_17_0_2_react.useContext(context/* ConfigContext */.E_);
|
|
|
|
|
const {
|
|
|
|
|
prefixCls: customizePrefixCls,
|
|
|
|
|
className,
|
|
|
|
|
showIcon = true,
|
|
|
|
|
expandAction = 'click'
|
|
|
|
|
} = props,
|
|
|
|
|
otherProps = __rest(props, ["prefixCls", "className", "showIcon", "expandAction"]);
|
|
|
|
|
const prefixCls = getPrefixCls('tree', customizePrefixCls);
|
|
|
|
|
const connectClassName = _classnames_2_5_1_classnames_default()(`${prefixCls}-directory`, {
|
|
|
|
|
[`${prefixCls}-directory-rtl`]: direction === 'rtl'
|
|
|
|
|
}, className);
|
|
|
|
|
return /*#__PURE__*/_react_17_0_2_react.createElement(tree_Tree, Object.assign({
|
|
|
|
|
icon: getIcon,
|
|
|
|
|
ref: ref,
|
|
|
|
|
blockNode: true
|
|
|
|
|
}, otherProps, {
|
|
|
|
|
showIcon: showIcon,
|
|
|
|
|
expandAction: expandAction,
|
|
|
|
|
prefixCls: prefixCls,
|
|
|
|
|
className: connectClassName,
|
|
|
|
|
expandedKeys: expandedKeys,
|
|
|
|
|
selectedKeys: selectedKeys,
|
|
|
|
|
onSelect: onSelect,
|
|
|
|
|
onExpand: onExpand
|
|
|
|
|
}));
|
|
|
|
|
};
|
|
|
|
|
const ForwardDirectoryTree = /*#__PURE__*/_react_17_0_2_react.forwardRef(DirectoryTree);
|
|
|
|
|
if (false) {}
|
|
|
|
|
/* harmony default export */ var tree_DirectoryTree = (ForwardDirectoryTree);
|
|
|
|
|
;// CONCATENATED MODULE: ./node_modules/_antd@5.9.0@antd/es/tree/index.js
|
|
|
|
|
"use client";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const es_tree_Tree = tree_Tree;
|
|
|
|
|
es_tree_Tree.DirectoryTree = tree_DirectoryTree;
|
|
|
|
|
es_tree_Tree.TreeNode = es/* TreeNode */.O;
|
|
|
|
|
/* harmony default export */ var tree = (es_tree_Tree);
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
|
|
|
}]);
|