import { clearFix, genComponentStyleHook, merge, operationUnit, resetComponent, textEllipsis } from "/node_modules/.vite/deps/chunk-COFT5PGQ.js?v=e2549d3d"; import { TinyColor } from "/node_modules/.vite/deps/chunk-USF4GMDZ.js?v=e2549d3d"; import { _extends } from "/node_modules/.vite/deps/chunk-EQCCHGRT.js?v=e2549d3d"; // node_modules/ant-design-vue/es/table/style/bordered.js var genBorderedStyle = (token) => { const { componentCls } = token; const tableBorder = `${token.lineWidth}px ${token.lineType} ${token.tableBorderColor}`; const getSizeBorderStyle = (size, paddingVertical, paddingHorizontal) => ({ [`&${componentCls}-${size}`]: { [`> ${componentCls}-container`]: { [`> ${componentCls}-content, > ${componentCls}-body`]: { "> table > tbody > tr > td": { [`> ${componentCls}-expanded-row-fixed`]: { margin: `-${paddingVertical}px -${paddingHorizontal + token.lineWidth}px` } } } } } }); return { [`${componentCls}-wrapper`]: { [`${componentCls}${componentCls}-bordered`]: _extends(_extends(_extends({ // ============================ Title ============================= [`> ${componentCls}-title`]: { border: tableBorder, borderBottom: 0 }, // ============================ Content ============================ [`> ${componentCls}-container`]: { borderInlineStart: tableBorder, [` > ${componentCls}-content, > ${componentCls}-header, > ${componentCls}-body, > ${componentCls}-summary `]: { "> table": { // ============================= Cell ============================= [` > thead > tr > th, > tbody > tr > td, > tfoot > tr > th, > tfoot > tr > td `]: { borderInlineEnd: tableBorder }, // ============================ Header ============================ "> thead": { "> tr:not(:last-child) > th": { borderBottom: tableBorder }, "> tr > th::before": { backgroundColor: "transparent !important" } }, // Fixed right should provides additional border [` > thead > tr, > tbody > tr, > tfoot > tr `]: { [`> ${componentCls}-cell-fix-right-first::after`]: { borderInlineEnd: tableBorder } }, // ========================== Expandable ========================== "> tbody > tr > td": { [`> ${componentCls}-expanded-row-fixed`]: { margin: `-${token.tablePaddingVertical}px -${token.tablePaddingHorizontal + token.lineWidth}px`, "&::after": { position: "absolute", top: 0, insetInlineEnd: token.lineWidth, bottom: 0, borderInlineEnd: tableBorder, content: '""' } } } } }, [` > ${componentCls}-content, > ${componentCls}-header `]: { "> table": { borderTop: tableBorder } } }, // ============================ Scroll ============================ [`&${componentCls}-scroll-horizontal`]: { [`> ${componentCls}-container > ${componentCls}-body`]: { "> table > tbody": { [` > tr${componentCls}-expanded-row, > tr${componentCls}-placeholder `]: { "> td": { borderInlineEnd: 0 } } } } } }, getSizeBorderStyle("middle", token.tablePaddingVerticalMiddle, token.tablePaddingHorizontalMiddle)), getSizeBorderStyle("small", token.tablePaddingVerticalSmall, token.tablePaddingHorizontalSmall)), { // ============================ Footer ============================ [`> ${componentCls}-footer`]: { border: tableBorder, borderTop: 0 } }), // ============================ Nested ============================ [`${componentCls}-cell`]: { [`${componentCls}-container:first-child`]: { // :first-child to avoid the case when bordered and title is set borderTop: 0 }, // https://github.com/ant-design/ant-design/issues/35577 "&-scrollbar:not([rowspan])": { boxShadow: `0 ${token.lineWidth}px 0 ${token.lineWidth}px ${token.tableHeaderBg}` } } } }; }; var bordered_default = genBorderedStyle; // node_modules/ant-design-vue/es/table/style/ellipsis.js var genEllipsisStyle = (token) => { const { componentCls } = token; return { [`${componentCls}-wrapper`]: { [`${componentCls}-cell-ellipsis`]: _extends(_extends({}, textEllipsis), { wordBreak: "keep-all", // Fixed first or last should special process [` &${componentCls}-cell-fix-left-last, &${componentCls}-cell-fix-right-first `]: { overflow: "visible", [`${componentCls}-cell-content`]: { display: "block", overflow: "hidden", textOverflow: "ellipsis" } }, [`${componentCls}-column-title`]: { overflow: "hidden", textOverflow: "ellipsis", wordBreak: "keep-all" } }) } }; }; var ellipsis_default = genEllipsisStyle; // node_modules/ant-design-vue/es/table/style/empty.js var genEmptyStyle = (token) => { const { componentCls } = token; return { [`${componentCls}-wrapper`]: { [`${componentCls}-tbody > tr${componentCls}-placeholder`]: { textAlign: "center", color: token.colorTextDisabled, "&:hover > td": { background: token.colorBgContainer } } } }; }; var empty_default = genEmptyStyle; // node_modules/ant-design-vue/es/table/style/expand.js var genExpandStyle = (token) => { const { componentCls, antCls, controlInteractiveSize: checkboxSize, motionDurationSlow, lineWidth, paddingXS, lineType, tableBorderColor, tableExpandIconBg, tableExpandColumnWidth, borderRadius, fontSize, fontSizeSM, lineHeight, tablePaddingVertical, tablePaddingHorizontal, tableExpandedRowBg, paddingXXS } = token; const halfInnerSize = checkboxSize / 2 - lineWidth; const expandIconSize = halfInnerSize * 2 + lineWidth * 3; const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`; const expandIconLineOffset = paddingXXS - lineWidth; return { [`${componentCls}-wrapper`]: { [`${componentCls}-expand-icon-col`]: { width: tableExpandColumnWidth }, [`${componentCls}-row-expand-icon-cell`]: { textAlign: "center", [`${componentCls}-row-expand-icon`]: { display: "inline-flex", float: "none", verticalAlign: "sub" } }, [`${componentCls}-row-indent`]: { height: 1, float: "left" }, [`${componentCls}-row-expand-icon`]: _extends(_extends({}, operationUnit(token)), { position: "relative", float: "left", boxSizing: "border-box", width: expandIconSize, height: expandIconSize, padding: 0, color: "inherit", lineHeight: `${expandIconSize}px`, background: tableExpandIconBg, border: tableBorder, borderRadius, transform: `scale(${checkboxSize / expandIconSize})`, transition: `all ${motionDurationSlow}`, userSelect: "none", [`&:focus, &:hover, &:active`]: { borderColor: "currentcolor" }, [`&::before, &::after`]: { position: "absolute", background: "currentcolor", transition: `transform ${motionDurationSlow} ease-out`, content: '""' }, "&::before": { top: halfInnerSize, insetInlineEnd: expandIconLineOffset, insetInlineStart: expandIconLineOffset, height: lineWidth }, "&::after": { top: expandIconLineOffset, bottom: expandIconLineOffset, insetInlineStart: halfInnerSize, width: lineWidth, transform: "rotate(90deg)" }, // Motion effect "&-collapsed::before": { transform: "rotate(-180deg)" }, "&-collapsed::after": { transform: "rotate(0deg)" }, "&-spaced": { "&::before, &::after": { display: "none", content: "none" }, background: "transparent", border: 0, visibility: "hidden" } }), [`${componentCls}-row-indent + ${componentCls}-row-expand-icon`]: { marginTop: (fontSize * lineHeight - lineWidth * 3) / 2 - Math.ceil((fontSizeSM * 1.4 - lineWidth * 3) / 2), marginInlineEnd: paddingXS }, [`tr${componentCls}-expanded-row`]: { "&, &:hover": { "> td": { background: tableExpandedRowBg } }, // https://github.com/ant-design/ant-design/issues/25573 [`${antCls}-descriptions-view`]: { display: "flex", table: { flex: "auto", width: "auto" } } }, // With fixed [`${componentCls}-expanded-row-fixed`]: { position: "relative", margin: `-${tablePaddingVertical}px -${tablePaddingHorizontal}px`, padding: `${tablePaddingVertical}px ${tablePaddingHorizontal}px` } } }; }; var expand_default = genExpandStyle; // node_modules/ant-design-vue/es/table/style/filter.js var genFilterStyle = (token) => { const { componentCls, antCls, iconCls, tableFilterDropdownWidth, tableFilterDropdownSearchWidth, paddingXXS, paddingXS, colorText, lineWidth, lineType, tableBorderColor, tableHeaderIconColor, fontSizeSM, tablePaddingHorizontal, borderRadius, motionDurationSlow, colorTextDescription, colorPrimary, tableHeaderFilterActiveBg, colorTextDisabled, tableFilterDropdownBg, tableFilterDropdownHeight, controlItemBgHover, controlItemBgActive, boxShadowSecondary } = token; const dropdownPrefixCls = `${antCls}-dropdown`; const tableFilterDropdownPrefixCls = `${componentCls}-filter-dropdown`; const treePrefixCls = `${antCls}-tree`; const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`; return [ { [`${componentCls}-wrapper`]: { [`${componentCls}-filter-column`]: { display: "flex", justifyContent: "space-between" }, [`${componentCls}-filter-trigger`]: { position: "relative", display: "flex", alignItems: "center", marginBlock: -paddingXXS, marginInline: `${paddingXXS}px ${-tablePaddingHorizontal / 2}px`, padding: `0 ${paddingXXS}px`, color: tableHeaderIconColor, fontSize: fontSizeSM, borderRadius, cursor: "pointer", transition: `all ${motionDurationSlow}`, "&:hover": { color: colorTextDescription, background: tableHeaderFilterActiveBg }, "&.active": { color: colorPrimary } } } }, { // Dropdown [`${antCls}-dropdown`]: { [tableFilterDropdownPrefixCls]: _extends(_extends({}, resetComponent(token)), { minWidth: tableFilterDropdownWidth, backgroundColor: tableFilterDropdownBg, borderRadius, boxShadow: boxShadowSecondary, // Reset menu [`${dropdownPrefixCls}-menu`]: { // https://github.com/ant-design/ant-design/issues/4916 // https://github.com/ant-design/ant-design/issues/19542 maxHeight: tableFilterDropdownHeight, overflowX: "hidden", border: 0, boxShadow: "none", "&:empty::after": { display: "block", padding: `${paddingXS}px 0`, color: colorTextDisabled, fontSize: fontSizeSM, textAlign: "center", content: '"Not Found"' } }, [`${tableFilterDropdownPrefixCls}-tree`]: { paddingBlock: `${paddingXS}px 0`, paddingInline: paddingXS, [treePrefixCls]: { padding: 0 }, [`${treePrefixCls}-treenode ${treePrefixCls}-node-content-wrapper:hover`]: { backgroundColor: controlItemBgHover }, [`${treePrefixCls}-treenode-checkbox-checked ${treePrefixCls}-node-content-wrapper`]: { "&, &:hover": { backgroundColor: controlItemBgActive } } }, [`${tableFilterDropdownPrefixCls}-search`]: { padding: paddingXS, borderBottom: tableBorder, "&-input": { input: { minWidth: tableFilterDropdownSearchWidth }, [iconCls]: { color: colorTextDisabled } } }, [`${tableFilterDropdownPrefixCls}-checkall`]: { width: "100%", marginBottom: paddingXXS, marginInlineStart: paddingXXS }, // Operation [`${tableFilterDropdownPrefixCls}-btns`]: { display: "flex", justifyContent: "space-between", padding: `${paddingXS - lineWidth}px ${paddingXS}px`, overflow: "hidden", backgroundColor: "inherit", borderTop: tableBorder } }) } }, // Dropdown Menu & SubMenu { // submenu of table filter dropdown [`${antCls}-dropdown ${tableFilterDropdownPrefixCls}, ${tableFilterDropdownPrefixCls}-submenu`]: { // Checkbox [`${antCls}-checkbox-wrapper + span`]: { paddingInlineStart: paddingXS, color: colorText }, [`> ul`]: { maxHeight: "calc(100vh - 130px)", overflowX: "hidden", overflowY: "auto" } } } ]; }; var filter_default = genFilterStyle; // node_modules/ant-design-vue/es/table/style/fixed.js var genFixedStyle = (token) => { const { componentCls, lineWidth, colorSplit, motionDurationSlow, zIndexTableFixed, tableBg, zIndexTableSticky } = token; const shadowColor = colorSplit; return { [`${componentCls}-wrapper`]: { [` ${componentCls}-cell-fix-left, ${componentCls}-cell-fix-right `]: { position: "sticky !important", zIndex: zIndexTableFixed, background: tableBg }, [` ${componentCls}-cell-fix-left-first::after, ${componentCls}-cell-fix-left-last::after `]: { position: "absolute", top: 0, right: { _skip_check_: true, value: 0 }, bottom: -lineWidth, width: 30, transform: "translateX(100%)", transition: `box-shadow ${motionDurationSlow}`, content: '""', pointerEvents: "none" }, [`${componentCls}-cell-fix-left-all::after`]: { display: "none" }, [` ${componentCls}-cell-fix-right-first::after, ${componentCls}-cell-fix-right-last::after `]: { position: "absolute", top: 0, bottom: -lineWidth, left: { _skip_check_: true, value: 0 }, width: 30, transform: "translateX(-100%)", transition: `box-shadow ${motionDurationSlow}`, content: '""', pointerEvents: "none" }, [`${componentCls}-container`]: { "&::before, &::after": { position: "absolute", top: 0, bottom: 0, zIndex: zIndexTableSticky + 1, width: 30, transition: `box-shadow ${motionDurationSlow}`, content: '""', pointerEvents: "none" }, "&::before": { insetInlineStart: 0 }, "&::after": { insetInlineEnd: 0 } }, [`${componentCls}-ping-left`]: { [`&:not(${componentCls}-has-fix-left) ${componentCls}-container`]: { position: "relative", "&::before": { boxShadow: `inset 10px 0 8px -8px ${shadowColor}` } }, [` ${componentCls}-cell-fix-left-first::after, ${componentCls}-cell-fix-left-last::after `]: { boxShadow: `inset 10px 0 8px -8px ${shadowColor}` }, [`${componentCls}-cell-fix-left-last::before`]: { backgroundColor: "transparent !important" } }, [`${componentCls}-ping-right`]: { [`&:not(${componentCls}-has-fix-right) ${componentCls}-container`]: { position: "relative", "&::after": { boxShadow: `inset -10px 0 8px -8px ${shadowColor}` } }, [` ${componentCls}-cell-fix-right-first::after, ${componentCls}-cell-fix-right-last::after `]: { boxShadow: `inset -10px 0 8px -8px ${shadowColor}` } } } }; }; var fixed_default = genFixedStyle; // node_modules/ant-design-vue/es/table/style/pagination.js var genPaginationStyle = (token) => { const { componentCls, antCls } = token; return { [`${componentCls}-wrapper`]: { // ========================== Pagination ========================== [`${componentCls}-pagination${antCls}-pagination`]: { margin: `${token.margin}px 0` }, [`${componentCls}-pagination`]: { display: "flex", flexWrap: "wrap", rowGap: token.paddingXS, "> *": { flex: "none" }, "&-left": { justifyContent: "flex-start" }, "&-center": { justifyContent: "center" }, "&-right": { justifyContent: "flex-end" } } } }; }; var pagination_default = genPaginationStyle; // node_modules/ant-design-vue/es/table/style/radius.js var genRadiusStyle = (token) => { const { componentCls, tableRadius } = token; return { [`${componentCls}-wrapper`]: { [componentCls]: { // https://github.com/ant-design/ant-design/issues/39115#issuecomment-1362314574 [`${componentCls}-title, ${componentCls}-header`]: { borderRadius: `${tableRadius}px ${tableRadius}px 0 0` }, [`${componentCls}-title + ${componentCls}-container`]: { borderStartStartRadius: 0, borderStartEndRadius: 0, table: { borderRadius: 0, "> thead > tr:first-child": { "th:first-child": { borderRadius: 0 }, "th:last-child": { borderRadius: 0 } } } }, "&-container": { borderStartStartRadius: tableRadius, borderStartEndRadius: tableRadius, "table > thead > tr:first-child": { "> *:first-child": { borderStartStartRadius: tableRadius }, "> *:last-child": { borderStartEndRadius: tableRadius } } }, "&-footer": { borderRadius: `0 0 ${tableRadius}px ${tableRadius}px` } } } }; }; var radius_default = genRadiusStyle; // node_modules/ant-design-vue/es/table/style/rtl.js var genStyle = (token) => { const { componentCls } = token; return { [`${componentCls}-wrapper-rtl`]: { direction: "rtl", table: { direction: "rtl" }, [`${componentCls}-pagination-left`]: { justifyContent: "flex-end" }, [`${componentCls}-pagination-right`]: { justifyContent: "flex-start" }, [`${componentCls}-row-expand-icon`]: { "&::after": { transform: "rotate(-90deg)" }, "&-collapsed::before": { transform: "rotate(180deg)" }, "&-collapsed::after": { transform: "rotate(0deg)" } } } }; }; var rtl_default = genStyle; // node_modules/ant-design-vue/es/table/style/selection.js var genSelectionStyle = (token) => { const { componentCls, antCls, iconCls, fontSizeIcon, paddingXS, tableHeaderIconColor, tableHeaderIconColorHover } = token; return { [`${componentCls}-wrapper`]: { // ========================== Selections ========================== [`${componentCls}-selection-col`]: { width: token.tableSelectionColumnWidth }, [`${componentCls}-bordered ${componentCls}-selection-col`]: { width: token.tableSelectionColumnWidth + paddingXS * 2 }, [` table tr th${componentCls}-selection-column, table tr td${componentCls}-selection-column `]: { paddingInlineEnd: token.paddingXS, paddingInlineStart: token.paddingXS, textAlign: "center", [`${antCls}-radio-wrapper`]: { marginInlineEnd: 0 } }, [`table tr th${componentCls}-selection-column${componentCls}-cell-fix-left`]: { zIndex: token.zIndexTableFixed + 1 }, [`table tr th${componentCls}-selection-column::after`]: { backgroundColor: "transparent !important" }, [`${componentCls}-selection`]: { position: "relative", display: "inline-flex", flexDirection: "column" }, [`${componentCls}-selection-extra`]: { position: "absolute", top: 0, zIndex: 1, cursor: "pointer", transition: `all ${token.motionDurationSlow}`, marginInlineStart: "100%", paddingInlineStart: `${token.tablePaddingHorizontal / 4}px`, [iconCls]: { color: tableHeaderIconColor, fontSize: fontSizeIcon, verticalAlign: "baseline", "&:hover": { color: tableHeaderIconColorHover } } } } }; }; var selection_default = genSelectionStyle; // node_modules/ant-design-vue/es/table/style/size.js var genSizeStyle = (token) => { const { componentCls } = token; const getSizeStyle = (size, paddingVertical, paddingHorizontal, fontSize) => ({ [`${componentCls}${componentCls}-${size}`]: { fontSize, [` ${componentCls}-title, ${componentCls}-footer, ${componentCls}-thead > tr > th, ${componentCls}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]: { padding: `${paddingVertical}px ${paddingHorizontal}px` }, [`${componentCls}-filter-trigger`]: { marginInlineEnd: `-${paddingHorizontal / 2}px` }, [`${componentCls}-expanded-row-fixed`]: { margin: `-${paddingVertical}px -${paddingHorizontal}px` }, [`${componentCls}-tbody`]: { // ========================= Nest Table =========================== [`${componentCls}-wrapper:only-child ${componentCls}`]: { marginBlock: `-${paddingVertical}px`, marginInline: `${token.tableExpandColumnWidth - paddingHorizontal}px -${paddingHorizontal}px` } }, // https://github.com/ant-design/ant-design/issues/35167 [`${componentCls}-selection-column`]: { paddingInlineStart: `${paddingHorizontal / 4}px` } } }); return { [`${componentCls}-wrapper`]: _extends(_extends({}, getSizeStyle("middle", token.tablePaddingVerticalMiddle, token.tablePaddingHorizontalMiddle, token.tableFontSizeMiddle)), getSizeStyle("small", token.tablePaddingVerticalSmall, token.tablePaddingHorizontalSmall, token.tableFontSizeSmall)) }; }; var size_default = genSizeStyle; // node_modules/ant-design-vue/es/table/style/resize.js var genResizeStyle = (token) => { const { componentCls } = token; return { [`${componentCls}-wrapper ${componentCls}-resize-handle`]: { position: "absolute", top: 0, height: "100% !important", bottom: 0, left: " auto !important", right: " -8px", cursor: "col-resize", touchAction: "none", userSelect: "auto", width: "16px", zIndex: 1, [`&-line`]: { display: "block", width: "1px", marginLeft: "7px", height: "100% !important", backgroundColor: token.colorPrimary, opacity: 0 }, [`&:hover &-line`]: { opacity: 1 } }, [`${componentCls}-wrapper ${componentCls}-resize-handle.dragging`]: { overflow: "hidden", [`${componentCls}-resize-handle-line`]: { opacity: 1 }, [`&:before`]: { position: "absolute", top: 0, bottom: 0, content: '" "', width: "200vw", transform: "translateX(-50%)", opacity: 0 } } }; }; var resize_default = genResizeStyle; // node_modules/ant-design-vue/es/table/style/sorter.js var genSorterStyle = (token) => { const { componentCls, marginXXS, fontSizeIcon, tableHeaderIconColor, tableHeaderIconColorHover } = token; return { [`${componentCls}-wrapper`]: { [`${componentCls}-thead th${componentCls}-column-has-sorters`]: { outline: "none", cursor: "pointer", transition: `all ${token.motionDurationSlow}`, "&:hover": { background: token.tableHeaderSortHoverBg, "&::before": { backgroundColor: "transparent !important" } }, "&:focus-visible": { color: token.colorPrimary }, // https://github.com/ant-design/ant-design/issues/30969 [` &${componentCls}-cell-fix-left:hover, &${componentCls}-cell-fix-right:hover `]: { background: token.tableFixedHeaderSortActiveBg } }, [`${componentCls}-thead th${componentCls}-column-sort`]: { background: token.tableHeaderSortBg, "&::before": { backgroundColor: "transparent !important" } }, [`td${componentCls}-column-sort`]: { background: token.tableBodySortBg }, [`${componentCls}-column-title`]: { position: "relative", zIndex: 1, flex: 1 }, [`${componentCls}-column-sorters`]: { display: "flex", flex: "auto", alignItems: "center", justifyContent: "space-between", "&::after": { position: "absolute", inset: 0, width: "100%", height: "100%", content: '""' } }, [`${componentCls}-column-sorter`]: { marginInlineStart: marginXXS, color: tableHeaderIconColor, fontSize: 0, transition: `color ${token.motionDurationSlow}`, "&-inner": { display: "inline-flex", flexDirection: "column", alignItems: "center" }, "&-up, &-down": { fontSize: fontSizeIcon, "&.active": { color: token.colorPrimary } }, [`${componentCls}-column-sorter-up + ${componentCls}-column-sorter-down`]: { marginTop: "-0.3em" } }, [`${componentCls}-column-sorters:hover ${componentCls}-column-sorter`]: { color: tableHeaderIconColorHover } } }; }; var sorter_default = genSorterStyle; // node_modules/ant-design-vue/es/table/style/sticky.js var genStickyStyle = (token) => { const { componentCls, opacityLoading, tableScrollThumbBg, tableScrollThumbBgHover, tableScrollThumbSize, tableScrollBg, zIndexTableSticky } = token; const tableBorder = `${token.lineWidth}px ${token.lineType} ${token.tableBorderColor}`; return { [`${componentCls}-wrapper`]: { [`${componentCls}-sticky`]: { "&-holder": { position: "sticky", zIndex: zIndexTableSticky, background: token.colorBgContainer }, "&-scroll": { position: "sticky", bottom: 0, height: `${tableScrollThumbSize}px !important`, zIndex: zIndexTableSticky, display: "flex", alignItems: "center", background: tableScrollBg, borderTop: tableBorder, opacity: opacityLoading, "&:hover": { transformOrigin: "center bottom" }, // fake scrollbar style of sticky "&-bar": { height: tableScrollThumbSize, backgroundColor: tableScrollThumbBg, borderRadius: 100, transition: `all ${token.motionDurationSlow}, transform none`, position: "absolute", bottom: 0, "&:hover, &-active": { backgroundColor: tableScrollThumbBgHover } } } } } }; }; var sticky_default = genStickyStyle; // node_modules/ant-design-vue/es/table/style/summary.js var genSummaryStyle = (token) => { const { componentCls, lineWidth, tableBorderColor } = token; const tableBorder = `${lineWidth}px ${token.lineType} ${tableBorderColor}`; return { [`${componentCls}-wrapper`]: { [`${componentCls}-summary`]: { position: "relative", zIndex: token.zIndexTableFixed, background: token.tableBg, "> tr": { "> th, > td": { borderBottom: tableBorder } } }, [`div${componentCls}-summary`]: { boxShadow: `0 -${lineWidth}px 0 ${tableBorderColor}` } } }; }; var summary_default = genSummaryStyle; // node_modules/ant-design-vue/es/table/style/index.js var genTableStyle = (token) => { const { componentCls, fontWeightStrong, tablePaddingVertical, tablePaddingHorizontal, lineWidth, lineType, tableBorderColor, tableFontSize, tableBg, tableRadius, tableHeaderTextColor, motionDurationMid, tableHeaderBg, tableHeaderCellSplitColor, tableRowHoverBg, tableSelectedRowBg, tableSelectedRowHoverBg, tableFooterTextColor, tableFooterBg, paddingContentVerticalLG } = token; const tableBorder = `${lineWidth}px ${lineType} ${tableBorderColor}`; return { [`${componentCls}-wrapper`]: _extends(_extends({ clear: "both", maxWidth: "100%" }, clearFix()), { [componentCls]: _extends(_extends({}, resetComponent(token)), { fontSize: tableFontSize, background: tableBg, borderRadius: `${tableRadius}px ${tableRadius}px 0 0` }), // https://github.com/ant-design/ant-design/issues/17611 table: { width: "100%", textAlign: "start", borderRadius: `${tableRadius}px ${tableRadius}px 0 0`, borderCollapse: "separate", borderSpacing: 0 }, // ============================= Cell ============================= [` ${componentCls}-thead > tr > th, ${componentCls}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]: { position: "relative", padding: `${paddingContentVerticalLG}px ${tablePaddingHorizontal}px`, overflowWrap: "break-word" }, // ============================ Title ============================= [`${componentCls}-title`]: { padding: `${tablePaddingVertical}px ${tablePaddingHorizontal}px` }, // ============================ Header ============================ [`${componentCls}-thead`]: { [` > tr > th, > tr > td `]: { position: "relative", color: tableHeaderTextColor, fontWeight: fontWeightStrong, textAlign: "start", background: tableHeaderBg, borderBottom: tableBorder, transition: `background ${motionDurationMid} ease`, "&[colspan]:not([colspan='1'])": { textAlign: "center" }, [`&:not(:last-child):not(${componentCls}-selection-column):not(${componentCls}-row-expand-icon-cell):not([colspan])::before`]: { position: "absolute", top: "50%", insetInlineEnd: 0, width: 1, height: "1.6em", backgroundColor: tableHeaderCellSplitColor, transform: "translateY(-50%)", transition: `background-color ${motionDurationMid}`, content: '""' } }, "> tr:not(:last-child) > th[colspan]": { borderBottom: 0 } }, // ============================ Body ============================ // Borderless Table has unique hover style, which would be implemented with `borderTop`. [`${componentCls}:not(${componentCls}-bordered)`]: { [`${componentCls}-tbody`]: { "> tr": { "> td": { borderTop: tableBorder, borderBottom: "transparent" }, "&:last-child > td": { borderBottom: tableBorder }, [`&:first-child > td, &${componentCls}-measure-row + tr > td`]: { borderTop: "none", borderTopColor: "transparent" } } } }, // Bordered Table remains simple `borderBottom`. // Ref issue: https://github.com/ant-design/ant-design/issues/38724 [`${componentCls}${componentCls}-bordered`]: { [`${componentCls}-tbody`]: { "> tr": { "> td": { borderBottom: tableBorder } } } }, [`${componentCls}-tbody`]: { "> tr": { "> td": { transition: `background ${motionDurationMid}, border-color ${motionDurationMid}`, // ========================= Nest Table =========================== [` > ${componentCls}-wrapper:only-child, > ${componentCls}-expanded-row-fixed > ${componentCls}-wrapper:only-child `]: { [componentCls]: { marginBlock: `-${tablePaddingVertical}px`, marginInline: `${token.tableExpandColumnWidth - tablePaddingHorizontal}px -${tablePaddingHorizontal}px`, [`${componentCls}-tbody > tr:last-child > td`]: { borderBottom: 0, "&:first-child, &:last-child": { borderRadius: 0 } } } } }, [` &${componentCls}-row:hover > td, > td${componentCls}-cell-row-hover `]: { background: tableRowHoverBg }, [`&${componentCls}-row-selected`]: { "> td": { background: tableSelectedRowBg }, "&:hover > td": { background: tableSelectedRowHoverBg } } } }, // ============================ Footer ============================ [`${componentCls}-footer`]: { padding: `${tablePaddingVertical}px ${tablePaddingHorizontal}px`, color: tableFooterTextColor, background: tableFooterBg } }) }; }; var style_default = genComponentStyleHook("Table", (token) => { const { controlItemBgActive, controlItemBgActiveHover, colorTextPlaceholder, colorTextHeading, colorSplit, colorBorderSecondary, fontSize, padding, paddingXS, paddingSM, controlHeight, colorFillAlter, colorIcon, colorIconHover, opacityLoading, colorBgContainer, borderRadiusLG, colorFillContent, colorFillSecondary, controlInteractiveSize: checkboxSize } = token; const baseColorAction = new TinyColor(colorIcon); const baseColorActionHover = new TinyColor(colorIconHover); const tableSelectedRowBg = controlItemBgActive; const zIndexTableFixed = 2; const colorFillSecondarySolid = new TinyColor(colorFillSecondary).onBackground(colorBgContainer).toHexString(); const colorFillContentSolid = new TinyColor(colorFillContent).onBackground(colorBgContainer).toHexString(); const colorFillAlterSolid = new TinyColor(colorFillAlter).onBackground(colorBgContainer).toHexString(); const tableToken = merge(token, { tableFontSize: fontSize, tableBg: colorBgContainer, tableRadius: borderRadiusLG, tablePaddingVertical: padding, tablePaddingHorizontal: padding, tablePaddingVerticalMiddle: paddingSM, tablePaddingHorizontalMiddle: paddingXS, tablePaddingVerticalSmall: paddingXS, tablePaddingHorizontalSmall: paddingXS, tableBorderColor: colorBorderSecondary, tableHeaderTextColor: colorTextHeading, tableHeaderBg: colorFillAlterSolid, tableFooterTextColor: colorTextHeading, tableFooterBg: colorFillAlterSolid, tableHeaderCellSplitColor: colorBorderSecondary, tableHeaderSortBg: colorFillSecondarySolid, tableHeaderSortHoverBg: colorFillContentSolid, tableHeaderIconColor: baseColorAction.clone().setAlpha(baseColorAction.getAlpha() * opacityLoading).toRgbString(), tableHeaderIconColorHover: baseColorActionHover.clone().setAlpha(baseColorActionHover.getAlpha() * opacityLoading).toRgbString(), tableBodySortBg: colorFillAlterSolid, tableFixedHeaderSortActiveBg: colorFillSecondarySolid, tableHeaderFilterActiveBg: colorFillContent, tableFilterDropdownBg: colorBgContainer, tableRowHoverBg: colorFillAlterSolid, tableSelectedRowBg, tableSelectedRowHoverBg: controlItemBgActiveHover, zIndexTableFixed, zIndexTableSticky: zIndexTableFixed + 1, tableFontSizeMiddle: fontSize, tableFontSizeSmall: fontSize, tableSelectionColumnWidth: controlHeight, tableExpandIconBg: colorBgContainer, tableExpandColumnWidth: checkboxSize + 2 * token.padding, tableExpandedRowBg: colorFillAlter, // Dropdown tableFilterDropdownWidth: 120, tableFilterDropdownHeight: 264, tableFilterDropdownSearchWidth: 140, // Virtual Scroll Bar tableScrollThumbSize: 8, tableScrollThumbBg: colorTextPlaceholder, tableScrollThumbBgHover: colorTextHeading, tableScrollBg: colorSplit }); return [genTableStyle(tableToken), pagination_default(tableToken), summary_default(tableToken), sorter_default(tableToken), filter_default(tableToken), bordered_default(tableToken), radius_default(tableToken), expand_default(tableToken), summary_default(tableToken), empty_default(tableToken), selection_default(tableToken), fixed_default(tableToken), sticky_default(tableToken), ellipsis_default(tableToken), size_default(tableToken), resize_default(tableToken), rtl_default(tableToken)]; }); export { style_default }; //# sourceMappingURL=chunk-Q4KIPQMD.js.map