{ "$schema": "https://shadcn-vue.com/schema/registry-item.json", "name": "advanced-table", "title": "Advanced Table", "description": "A feature-rich data table component with column management, pagination, sticky headers, and auto-tooltip support.", "dependencies": [ "vue-draggable-plus", "@vueuse/core", "@lucide/vue" ], "registryDependencies": [ "checkbox", "table", "tooltip", "button", "sheet", "input", "select", "pagination", "https://raw.githubusercontent.com/smoosex/inovue-ui/refs/heads/main/public/r/smart-search-input.json", "https://raw.githubusercontent.com/smoosex/inovue-ui/refs/heads/main/public/r/toolbar.json" ], "files": [ { "path": "src/components/advanced-table/AdvancedTable.vue", "content": "\n\n\n \n \n \n \n\n \n \n \n\n\n\n", "type": "registry:component" }, { "path": "src/components/advanced-table/locales.ts", "content": "export type Locale = \"en\" | \"zhHans\";\n\nexport const translations = {\n en: {\n noResults: \"No results.\",\n emptyTitle: \"No Data\",\n emptyDescription: \"There is no data to display at the moment.\",\n perPage: \"/ page\",\n total: \"Total:\",\n toggleColumns: \"Toggle columns\",\n dragReorder: \"Drag to reorder. Click + to add, X to remove.\",\n availableColumns: \"Available Columns\",\n selectedColumns: \"Selected Columns\",\n searchPlaceholder: \"Search...\",\n noResultsFound: \"No results found\",\n noAvailableColumns: \"No available columns\",\n noSelectedColumns: \"No selected columns\",\n reset: \"Reset\",\n cancel: \"Cancel\",\n confirm: \"Confirm\",\n first: \"First\",\n previous: \"Previous\",\n next: \"Next\",\n last: \"Last\",\n },\n zhHans: {\n noResults: \"暂无数据\",\n emptyTitle: \"暂无数据\",\n emptyDescription: \"当前没有可显示的数据。\",\n perPage: \"条/页\",\n total: \"总计:\",\n toggleColumns: \"切换列\",\n dragReorder: \"拖拽排序。点击 + 添加,X 移除。\",\n availableColumns: \"可用列\",\n selectedColumns: \"已选列\",\n searchPlaceholder: \"搜索...\",\n noResultsFound: \"未找到结果\",\n noAvailableColumns: \"没有可用列\",\n noSelectedColumns: \"没有已选列\",\n reset: \"重置\",\n cancel: \"取消\",\n confirm: \"确认\",\n first: \"首页\",\n previous: \"上一页\",\n next: \"下一页\",\n last: \"末页\",\n },\n} as const;\n\nexport function GetI18nText(key: keyof typeof translations.en, locale: Locale): string {\n return translations[locale][key] ?? translations.en[key];\n}\n", "type": "registry:component" }, { "path": "src/components/advanced-table/types.ts", "content": "export type Column = {\n label: string;\n value: string;\n show: boolean;\n originalIndex?: number;\n hideInSetting?: boolean;\n width?: string;\n fixed?: \"left\" | \"right\";\n lock?: boolean;\n enableAutoTooltip?: boolean;\n ellipsis?: boolean;\n};\n\nexport type { Locale } from \"./locales\";\nexport type { DateTimeRange } from \"@/components/date-time-range-picker\";\nexport type {\n FilterOption,\n FilterValue,\n ActiveFilterItem,\n AnyFilterValue,\n SelectOption,\n FilterInputType,\n CascadeValue,\n} from \"@/components/smart-search-input\";\n\nexport type { ToolbarAction } from \"@/components/toolbar\";\n\nexport type RowKeyType = string | number;\n", "type": "registry:component" }, { "path": "src/components/advanced-table/index.ts", "content": "import AdvancedTable from \"./AdvancedTable.vue\";\n\nexport { AdvancedTable };\nexport type {\n FilterOption,\n FilterValue,\n ActiveFilterItem,\n AnyFilterValue,\n SelectOption,\n FilterInputType,\n DateTimeRange,\n CascadeValue,\n} from \"./types\";\n\nexport type { ToolbarAction } from \"./types\";\nexport * from \"./types\";\nexport default AdvancedTable;\n", "type": "registry:component" }, { "path": "src/components/advanced-table/TablePagination.vue", "content": "\n\n\n", "type": "registry:component" }, { "path": "src/components/advanced-table/ColumnToggle.vue", "content": "\n\n\n", "type": "registry:component" } ], "type": "registry:component" }