import { VxeUI, index_esm_default, require_xe_utils } from "./chunk-YJNUXQVJ.js"; import { __toESM } from "./chunk-V4OQ3NZ2.js"; // ../node_modules/.pnpm/vxe-table@4.17.14_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-table/es/ui/src/utils.js var import_xe_utils = __toESM(require_xe_utils()); var { getConfig } = VxeUI; function isEnableConf(conf) { return conf && conf.enabled !== false; } function isEmptyValue(cellValue) { return cellValue === null || cellValue === void 0 || cellValue === ""; } function parseFile(file) { const name = file.name; const tIndex = import_xe_utils.default.lastIndexOf(name, "."); const type = name.substring(tIndex + 1, name.length).toLowerCase(); const filename = name.substring(0, tIndex); return { filename, type }; } function nextZIndex() { return index_esm_default.getNext(); } function getLastZIndex() { return index_esm_default.getCurrent(); } function hasChildrenList(item) { return item && item.children && item.children.length > 0; } function getFuncText(content, args) { if (import_xe_utils.default.eqNull(content)) { return ""; } const translate = getConfig().translate; return `${translate ? translate("" + content, args) : content}`; } function formatText(value, placeholder) { return "" + (isEmptyValue(value) ? placeholder ? getConfig().emptyCell : "" : value); } function eqEmptyValue(cellValue) { return cellValue === "" || import_xe_utils.default.eqNull(cellValue); } // ../node_modules/.pnpm/vxe-table@4.17.14_vue@3.5.24_typescript@5.9.3_/node_modules/vxe-table/es/ui/index.js var version = "4.17.14"; VxeUI.version = version; VxeUI.tableVersion = version; VxeUI.setConfig({ emptyCell: " ", table: { fit: true, showHeader: true, animat: true, delayHover: 250, autoResize: true, // minHeight: null, // keepSource: false, // showOverflow: null, // showHeaderOverflow: null, // showFooterOverflow: null, // resizeInterval: 500, // size: null, // zIndex: null, // stripe: false, // border: false, // round: false, // emptyText: '暂无数据', // emptyRender: { // name: '' // }, // rowConfig: { // keyField: '_X_ROW_KEY' // 行数据的唯一主键字段名 // }, resizeConfig: { // refreshDelay: 20 }, resizableConfig: { dragMode: "auto", showDragTip: true, isSyncAutoHeight: true, isSyncAutoWidth: true, minHeight: 18 }, radioConfig: { // trigger: 'default' strict: true }, rowDragConfig: { showIcon: true, animation: true, showGuidesStatus: true, showDragTip: true }, columnDragConfig: { showIcon: true, animation: true, showGuidesStatus: true, showDragTip: true }, checkboxConfig: { // trigger: 'default', strict: true }, tooltipConfig: { enterable: true }, headerTooltipConfig: { enterable: true }, footerTooltipConfig: { enterable: true }, validConfig: { showMessage: true, autoClear: true, autoPos: true, message: "inline", msgMode: "single", theme: "beautify" }, columnConfig: { autoOptions: { isCalcHeader: true, isCalcBody: true, isCalcFooter: true }, maxFixedSize: 4 }, cellConfig: { padding: true }, headerCellConfig: { height: "unset" }, footerCellConfig: { height: "unset" }, menuConfig: { // visibleMethod () {}, // transfer: false, destroyOnClose: true }, customConfig: { // enabled: false, allowVisible: true, allowResizable: true, allowFixed: true, allowSort: true, showFooter: true, placement: "top-right", // storage: false, storeOptions: { visible: true, resizable: true, sort: true, fixed: true // rowGroup: false, // aggFunc: false }, // autoAggGroupValues: false, // checkMethod () {}, modalOptions: { showMaximize: true, mask: true, lockView: true, resize: true, escClosable: true }, drawerOptions: { mask: true, lockView: true, escClosable: true, resize: true } }, sortConfig: { // remote: false, // trigger: 'default', // orders: ['asc', 'desc', null], // sortMethod: null, showIcon: true, allowClear: true, allowBtn: true, iconLayout: "vertical" }, filterConfig: { // remote: false, // filterMethod: null, // isEvery: false, // transfer: false, destroyOnClose: true, multiple: true, showIcon: true }, floatingFilterConfig: { // enabled: false }, aggregateConfig: { padding: true, rowField: "id", parentField: "_X_ROW_PARENT_KEY", childrenField: "_X_ROW_CHILDREN", mapChildrenField: "_X_ROW_CHILD_LIST", indent: 20, showIcon: true, maxGroupSize: 4, showAggFuncTitle: true }, treeConfig: { padding: true, rowField: "id", parentField: "parentId", childrenField: "children", hasChildField: "hasChild", mapChildrenField: "_X_ROW_CHILD", indent: 20, showIcon: true, showRootLine: true }, expandConfig: { // trigger: 'default', showIcon: true, mode: "fixed" }, editConfig: { // mode: 'cell', showIcon: true, showAsterisk: true, autoFocus: true }, importConfig: { _typeMaps: { csv: 1, html: 1, xml: 1, txt: 1 } }, exportConfig: { _typeMaps: { csv: 1, html: 1, xml: 1, txt: 1 } }, printConfig: {}, mouseConfig: { extension: true }, keyboardConfig: { isAll: true, isEsc: true }, areaConfig: { autoClear: true, selectCellByHeader: true, selectCellByBody: true, extendDirection: { top: true, left: true, bottom: true, right: true } }, clipConfig: { isCopy: true, isCut: true, isPaste: true }, fnrConfig: { isFind: true, isReplace: true }, virtualXConfig: { // enabled: false, gt: 24, preSize: 1, oSize: 0 }, virtualYConfig: { // enabled: false, // mode: 'wheel', gt: 100, preSize: 1, oSize: 0 }, scrollbarConfig: { // width: 14, // height: 14, x: { // position: 'bottom', visible: true }, y: { // position: 'right', visible: true } } }, grid: { // size: null, // zoomConfig: { // escRestore: true // }, formConfig: { enabled: true }, pagerConfig: { enabled: true // perfect: false }, toolbarConfig: { enabled: true // perfect: false }, proxyConfig: { enabled: true, autoLoad: true, showLoading: true, showResponseMsg: true, showActionMsg: true, response: { list: null, result: "result", total: "page.total", message: "message" } // beforeItem: null, // beforeColumn: null, // beforeQuery: null, // afterQuery: null, // beforeDelete: null, // afterDelete: null, // beforeSave: null, // afterSave: null } }, toolbar: { // size: null, // import: { // mode: 'covering' // }, // export: { // types: ['csv', 'html', 'xml', 'txt'] // }, // buttons: [] }, gantt: {} }); var iconPrefix = "vxe-table-icon-"; VxeUI.setIcon({ // table TABLE_SORT_ASC: iconPrefix + "caret-up", TABLE_SORT_DESC: iconPrefix + "caret-down", TABLE_FILTER_NONE: iconPrefix + "funnel", TABLE_FILTER_MATCH: iconPrefix + "funnel", TABLE_EDIT: iconPrefix + "edit", TABLE_TITLE_PREFIX: iconPrefix + "question-circle-fill", TABLE_TITLE_SUFFIX: iconPrefix + "question-circle-fill", TABLE_TREE_LOADED: iconPrefix + "spinner roll", TABLE_TREE_OPEN: iconPrefix + "caret-right rotate90", TABLE_TREE_CLOSE: iconPrefix + "caret-right", TABLE_EXPAND_LOADED: iconPrefix + "spinner roll", TABLE_EXPAND_OPEN: iconPrefix + "arrow-right rotate90", TABLE_EXPAND_CLOSE: iconPrefix + "arrow-right", TABLE_CHECKBOX_CHECKED: iconPrefix + "checkbox-checked-fill", TABLE_CHECKBOX_UNCHECKED: iconPrefix + "checkbox-unchecked", TABLE_CHECKBOX_INDETERMINATE: iconPrefix + "checkbox-indeterminate-fill", TABLE_CHECKBOX_DISABLED_UNCHECKED: iconPrefix + "checkbox-unchecked-fill", TABLE_RADIO_CHECKED: iconPrefix + "radio-checked-fill", TABLE_RADIO_UNCHECKED: iconPrefix + "radio-unchecked", TABLE_RADIO_DISABLED_UNCHECKED: iconPrefix + "radio-unchecked-fill", TABLE_CUSTOM_SORT: iconPrefix + "drag-handle", TABLE_MENU_OPTIONS: iconPrefix + "arrow-right", TABLE_MENU_OPTION_LOADING: iconPrefix + "repeat roll", TABLE_DRAG_ROW: iconPrefix + "drag-handle", TABLE_DRAG_COLUMN: iconPrefix + "drag-handle", TABLE_DRAG_STATUS_ROW: iconPrefix + "sort", TABLE_DRAG_STATUS_SUB_ROW: iconPrefix + "add-sub", TABLE_DRAG_STATUS_AGG_GROUP: iconPrefix + "grouping", TABLE_DRAG_STATUS_AGG_VALUES: iconPrefix + "values", TABLE_DRAG_STATUS_COLUMN: iconPrefix + "swap", TABLE_DRAG_DISABLED: iconPrefix + "no-drop", TABLE_ROW_GROUP_OPEN: iconPrefix + "arrow-right rotate90", TABLE_ROW_GROUP_CLOSE: iconPrefix + "arrow-right", TABLE_AGGREGATE_GROUPING: iconPrefix + "grouping", TABLE_AGGREGATE_VALUES: iconPrefix + "values", TABLE_AGGREGATE_SORT: iconPrefix + "drag-handle", TABLE_AGGREGATE_DELETE: iconPrefix + "close", // toolbar TOOLBAR_TOOLS_REFRESH: iconPrefix + "repeat", TOOLBAR_TOOLS_REFRESH_LOADING: iconPrefix + "repeat roll", TOOLBAR_TOOLS_IMPORT: iconPrefix + "upload", TOOLBAR_TOOLS_EXPORT: iconPrefix + "download", TOOLBAR_TOOLS_PRINT: iconPrefix + "print", TOOLBAR_TOOLS_FULLSCREEN: iconPrefix + "fullscreen", TOOLBAR_TOOLS_MINIMIZE: iconPrefix + "minimize", TOOLBAR_TOOLS_CUSTOM: iconPrefix + "custom-column", TOOLBAR_TOOLS_FIXED_LEFT: iconPrefix + "fixed-left", TOOLBAR_TOOLS_FIXED_LEFT_ACTIVE: iconPrefix + "fixed-left-fill", TOOLBAR_TOOLS_FIXED_RIGHT: iconPrefix + "fixed-right", TOOLBAR_TOOLS_FIXED_RIGHT_ACTIVE: iconPrefix + "fixed-right-fill" }); var setTheme = VxeUI.setTheme; var getTheme = VxeUI.getTheme; var setConfig = VxeUI.setConfig; var getConfig2 = VxeUI.getConfig; var setIcon = VxeUI.setIcon; var getIcon = VxeUI.getIcon; var setLanguage = VxeUI.setLanguage; var setI18n = VxeUI.setI18n; var getI18n = VxeUI.getI18n; var globalEvents = VxeUI.globalEvents; var globalResize = VxeUI.globalResize; var renderer = VxeUI.renderer; var validators = VxeUI.validators; var menus = VxeUI.menus; var formats = VxeUI.formats; var commands = VxeUI.commands; var interceptor = VxeUI.interceptor; var clipboard = VxeUI.clipboard; var log = VxeUI.log; var hooks = VxeUI.hooks; var use = VxeUI.use; var setup = (options) => { return VxeUI.setConfig(options); }; VxeUI.setup = setup; var config = (options) => { return VxeUI.setConfig(options); }; VxeUI.config = config; var t = (key, args) => { return VxeUI.getI18n(key, args); }; VxeUI.t = t; var _t = (content, args) => { return getFuncText(content, args); }; VxeUI._t = _t; var VXETable = VxeUI; var saveFile = (options) => { return VxeUI.saveFile(options); }; var readFile = (options) => { return VxeUI.readFile(options); }; var print = (options) => { return VxeUI.print(options); }; var modal = { /** * 已废弃,兼容老版本 * @deprecated */ get(id) { return VxeUI.modal.get(id); }, /** * 已废弃,兼容老版本 * @deprecated */ close(id) { return VxeUI.modal.close(id); }, /** * 已废弃,兼容老版本 * @deprecated */ open(options) { return VxeUI.modal.open(options); }, /** * 已废弃,兼容老版本 * @deprecated */ alert(content, title, options) { return VxeUI.modal.alert(content, title, options); }, /** * 已废弃,兼容老版本 * @deprecated */ confirm(content, title, options) { return VxeUI.modal.confirm(content, title, options); }, /** * 已废弃,兼容老版本 * @deprecated */ message(content, options) { return VxeUI.modal.message(content, options); }, /** * 已废弃,兼容老版本 * @deprecated */ notification(content, title, options) { return VxeUI.modal.notification(content, title, options); } }; var ui_default = VxeUI; export { isEnableConf, isEmptyValue, parseFile, nextZIndex, getLastZIndex, hasChildrenList, getFuncText, formatText, eqEmptyValue, version, setTheme, getTheme, setConfig, getConfig2 as getConfig, setIcon, getIcon, setLanguage, setI18n, getI18n, globalEvents, globalResize, renderer, validators, menus, formats, commands, interceptor, clipboard, log, hooks, use, setup, config, t, _t, VXETable, saveFile, readFile, print, modal, ui_default }; //# sourceMappingURL=chunk-Z4MEN7AG.js.map