vome-core 0.3.64 → 0.3.66
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/dist/admin/api/client.js +7 -2
- package/dist/admin/components/ui/avatar/Avatar.vue +18 -18
- package/dist/admin/components/ui/avatar/AvatarFallback.vue +21 -21
- package/dist/admin/components/ui/avatar/AvatarImage.vue +16 -16
- package/dist/admin/components/ui/avatar/index.js +1 -1
- package/dist/admin/components/ui/badge/Badge.vue +26 -26
- package/dist/admin/components/ui/button/Button.vue +31 -31
- package/dist/admin/components/ui/checkbox/Checkbox.vue +35 -35
- package/dist/admin/components/ui/checkbox/index.js +1 -1
- package/dist/admin/components/ui/dialog/Dialog.vue +19 -19
- package/dist/admin/components/ui/dialog/DialogClose.vue +15 -15
- package/dist/admin/components/ui/dialog/DialogContent.vue +267 -267
- package/dist/admin/components/ui/dialog/DialogDescription.vue +23 -23
- package/dist/admin/components/ui/dialog/DialogFooter.vue +27 -27
- package/dist/admin/components/ui/dialog/DialogHeader.vue +17 -17
- package/dist/admin/components/ui/dialog/DialogOverlay.vue +21 -21
- package/dist/admin/components/ui/dialog/DialogScrollContent.vue +60 -60
- package/dist/admin/components/ui/dialog/DialogTitle.vue +23 -23
- package/dist/admin/components/ui/dialog/DialogTrigger.vue +15 -15
- package/dist/admin/components/ui/dialog/index.js +1 -1
- package/dist/admin/components/ui/dropdown-menu/DropdownMenu.vue +19 -19
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +39 -39
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuContent.vue +39 -39
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuGroup.vue +15 -15
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuItem.vue +31 -31
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuLabel.vue +23 -23
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioGroup.vue +21 -21
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuRadioItem.vue +40 -40
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSeparator.vue +23 -23
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuShortcut.vue +17 -17
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSub.vue +18 -18
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubContent.vue +27 -27
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuSubTrigger.vue +31 -31
- package/dist/admin/components/ui/dropdown-menu/DropdownMenuTrigger.vue +17 -17
- package/dist/admin/components/ui/dropdown-menu/index.js +1 -1
- package/dist/admin/components/ui/input/Input.vue +183 -183
- package/dist/admin/components/ui/input/index.js +1 -1
- package/dist/admin/components/ui/label/Label.vue +26 -26
- package/dist/admin/components/ui/label/index.js +1 -1
- package/dist/admin/components/ui/scroll-area/ScrollArea.vue +33 -33
- package/dist/admin/components/ui/scroll-area/ScrollBar.vue +32 -32
- package/dist/admin/components/ui/scroll-area/index.js +1 -1
- package/dist/admin/components/ui/select/Select.vue +19 -19
- package/dist/admin/components/ui/select/SelectContent.vue +51 -51
- package/dist/admin/components/ui/select/SelectGroup.vue +15 -15
- package/dist/admin/components/ui/select/SelectItem.vue +53 -53
- package/dist/admin/components/ui/select/SelectItemText.vue +15 -15
- package/dist/admin/components/ui/select/SelectLabel.vue +17 -17
- package/dist/admin/components/ui/select/SelectScrollDownButton.vue +26 -26
- package/dist/admin/components/ui/select/SelectScrollUpButton.vue +26 -26
- package/dist/admin/components/ui/select/SelectSeparator.vue +19 -19
- package/dist/admin/components/ui/select/SelectTrigger.vue +44 -44
- package/dist/admin/components/ui/select/SelectValue.vue +15 -15
- package/dist/admin/components/ui/select/index.js +1 -1
- package/dist/admin/components/ui/separator/Separator.vue +29 -29
- package/dist/admin/components/ui/separator/index.js +1 -1
- package/dist/admin/components/ui/sheet/Sheet.vue +19 -19
- package/dist/admin/components/ui/sheet/SheetClose.vue +15 -15
- package/dist/admin/components/ui/sheet/SheetContent.vue +63 -63
- package/dist/admin/components/ui/sheet/SheetDescription.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetFooter.vue +16 -16
- package/dist/admin/components/ui/sheet/SheetHeader.vue +15 -15
- package/dist/admin/components/ui/sheet/SheetOverlay.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetTitle.vue +21 -21
- package/dist/admin/components/ui/sheet/SheetTrigger.vue +15 -15
- package/dist/admin/components/ui/sheet/index.js +1 -1
- package/dist/admin/components/ui/sonner/Toaster.vue +117 -117
- package/dist/admin/components/ui/sonner/index.js +1 -1
- package/dist/admin/components/ui/table/Table.vue +16 -16
- package/dist/admin/components/ui/table/TableBody.vue +17 -17
- package/dist/admin/components/ui/table/TableCaption.vue +17 -17
- package/dist/admin/components/ui/table/TableCell.vue +22 -22
- package/dist/admin/components/ui/table/TableEmpty.vue +34 -34
- package/dist/admin/components/ui/table/TableFooter.vue +17 -17
- package/dist/admin/components/ui/table/TableHead.vue +17 -17
- package/dist/admin/components/ui/table/TableHeader.vue +17 -17
- package/dist/admin/components/ui/table/TableRow.vue +17 -17
- package/dist/admin/components/ui/table/index.js +1 -1
- package/dist/admin/components/ui/tabs/Tabs.vue +24 -24
- package/dist/admin/components/ui/tabs/TabsContent.vue +21 -21
- package/dist/admin/components/ui/tabs/TabsList.vue +24 -24
- package/dist/admin/components/ui/tabs/TabsTrigger.vue +26 -26
- package/dist/admin/components/ui/tabs/index.js +1 -1
- package/dist/admin/components/ui/tooltip/Tooltip.vue +19 -19
- package/dist/admin/components/ui/tooltip/TooltipContent.vue +34 -34
- package/dist/admin/components/ui/tooltip/TooltipProvider.vue +14 -14
- package/dist/admin/components/ui/tooltip/TooltipTrigger.vue +15 -15
- package/dist/admin/components/ui/tooltip/index.js +1 -1
- package/dist/admin/components/vm-action-btn.vue +136 -136
- package/dist/admin/components/vm-aside-list-item.vue +136 -136
- package/dist/admin/components/vm-aside.vue +229 -229
- package/dist/admin/components/vm-auto-perm-dialog.vue +371 -371
- package/dist/admin/components/vm-card-grid.vue +37 -37
- package/dist/admin/components/vm-card-head.vue +45 -45
- package/dist/admin/components/vm-card-meta.vue +22 -22
- package/dist/admin/components/vm-card-title.vue +56 -56
- package/dist/admin/components/vm-card.vue +176 -176
- package/dist/admin/components/vm-check-tree.vue +340 -340
- package/dist/admin/components/vm-clamp-text.vue +39 -39
- package/dist/admin/components/vm-dept-tree.vue +497 -497
- package/dist/admin/components/vm-empty.vue +68 -68
- package/dist/admin/components/vm-eps-perm-picker.vue +123 -123
- package/dist/admin/components/vm-form-dialog.vue +632 -632
- package/dist/admin/components/vm-group-cascader.vue +560 -560
- package/dist/admin/components/vm-icon-btn.vue +88 -88
- package/dist/admin/components/vm-icon-picker.vue +647 -647
- package/dist/admin/components/vm-inline-search.vue +61 -61
- package/dist/admin/components/vm-loading.vue +114 -114
- package/dist/admin/components/vm-markdown.vue +405 -405
- package/dist/admin/components/vm-marquee.vue +265 -265
- package/dist/admin/components/vm-page-tabs.vue +94 -94
- package/dist/admin/components/vm-perm-section.vue +57 -57
- package/dist/admin/components/vm-ri-icon.vue +23 -23
- package/dist/admin/components/vm-role-picker.vue +314 -314
- package/dist/admin/components/vm-split-layout.vue +106 -106
- package/dist/admin/components/vm-thumb.vue +49 -49
- package/dist/admin/components/vm-view-path-picker.vue +59 -59
- package/dist/admin/crud/auto-fields.js +1 -1
- package/dist/admin/crud/components/vm-avatar.vue +104 -104
- package/dist/admin/crud/components/vm-color-picker.vue +1626 -1626
- package/dist/admin/crud/components/vm-column-custom.vue +193 -193
- package/dist/admin/crud/components/vm-context-menu.vue +105 -105
- package/dist/admin/crud/components/vm-copy-btn.vue +102 -102
- package/dist/admin/crud/components/vm-date-calendar-panel.vue +537 -537
- package/dist/admin/crud/components/vm-date-picker.vue +75 -75
- package/dist/admin/crud/components/vm-date-range.vue +88 -88
- package/dist/admin/crud/components/vm-date-text.vue +42 -42
- package/dist/admin/crud/components/vm-datetime-field.vue +215 -215
- package/dist/admin/crud/components/vm-datetime-picker.vue +9 -9
- package/dist/admin/crud/components/vm-dict-tag.vue +112 -112
- package/dist/admin/crud/components/vm-ellipsis-text.vue +34 -34
- package/dist/admin/crud/components/vm-form-hint.vue +81 -81
- package/dist/admin/crud/components/vm-json-code.vue +41 -41
- package/dist/admin/crud/components/vm-json-editor.vue +161 -161
- package/dist/admin/crud/components/vm-json-kv-editor.vue +318 -318
- package/dist/admin/crud/components/vm-kv-row.vue +51 -51
- package/dist/admin/crud/components/vm-multi-select.vue +279 -279
- package/dist/admin/crud/components/vm-number-range.vue +204 -204
- package/dist/admin/crud/components/vm-preview-viewer.vue +894 -894
- package/dist/admin/crud/components/vm-radio.vue +87 -87
- package/dist/admin/crud/components/vm-richtext.vue +313 -313
- package/dist/admin/crud/components/vm-select.vue +570 -570
- package/dist/admin/crud/components/vm-status-tag.vue +158 -158
- package/dist/admin/crud/components/vm-switch.vue +158 -158
- package/dist/admin/crud/components/vm-tag-list.vue +108 -108
- package/dist/admin/crud/components/vm-text-link.vue +52 -52
- package/dist/admin/crud/components/vm-toggle-switch.vue +84 -84
- package/dist/admin/crud/components/vm-tree-select.vue +450 -450
- package/dist/admin/crud/components/vm-upload-item.vue +298 -298
- package/dist/admin/crud/components/vm-upload.vue +436 -436
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/crud-page-request.js +1 -1
- package/dist/admin/crud/data-i18n.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/export-fetch.js +1 -1
- package/dist/admin/crud/index.js +1 -0
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/useCrud.js +3 -0
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/crud/vm-add-btn.vue +70 -70
- package/dist/admin/crud/vm-adv-search.vue +83 -83
- package/dist/admin/crud/vm-crud.vue +711 -711
- package/dist/admin/crud/vm-data-i18n-btn.vue +456 -456
- package/dist/admin/crud/vm-data-i18n-lang.vue +183 -183
- package/dist/admin/crud/vm-export-btn.vue +183 -183
- package/dist/admin/crud/vm-flex.vue +14 -14
- package/dist/admin/crud/vm-form.vue +33 -15
- package/dist/admin/crud/vm-import-btn.vue +747 -747
- package/dist/admin/crud/vm-multi-delete-btn.vue +49 -49
- package/dist/admin/crud/vm-pagination.vue +212 -212
- package/dist/admin/crud/vm-refresh-btn.vue +35 -35
- package/dist/admin/crud/vm-row.vue +55 -55
- package/dist/admin/crud/vm-search-key.vue +78 -78
- package/dist/admin/crud/vm-search.vue +466 -466
- package/dist/admin/crud/vm-table.vue +1390 -1390
- package/dist/admin/crud/vm-tabs.vue +94 -94
- package/dist/admin/crud/vm-toolbar.vue +357 -357
- package/dist/admin/crud/vm-upsert.vue +765 -765
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/env.d.ts +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/index.d.ts +1 -31
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/micro-locale.js +1 -1
- package/dist/admin/lib/micro-theme.js +1 -1
- package/dist/admin/lib/shell.js +1 -1
- package/dist/admin/lib/theme-color-options.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/admin/router/create.js +1 -1
- package/dist/admin/router/guards.js +1 -1
- package/dist/admin/router/index.d.ts +1 -5
- package/dist/admin/service/index.d.ts +1 -11
- package/dist/admin/styles/base.css +121 -121
- package/dist/admin/vendor/browser-image-compression.js +1144 -1144
- package/dist/admin/vendor/decimal-js.js +12 -12
- package/dist/admin/vendor/xlsx.js +263 -263
- package/dist/ai/index.js +1 -1
- package/dist/client/admin-vendor.d.ts +1 -13
- package/dist/client/ai-model-registry.js +1 -1
- package/dist/client/base.js +1 -1
- package/dist/client/configure.js +1 -1
- package/dist/client/dict.js +1 -1
- package/dist/client/eps-payload.js +1 -1
- package/dist/client/eps.js +1 -1
- package/dist/client/index.d.ts +1 -7
- package/dist/client/index.js +1 -1
- package/dist/client/locale-change.js +1 -1
- package/dist/client/locale-store.js +1 -1
- package/dist/client/service.js +1 -1
- package/dist/client/vite-admin.d.ts +1 -40
- package/dist/client/vite-admin.js +1 -1
- package/dist/client/vite-auto-import.d.ts +1 -2
- package/dist/client/vite-auto-import.js +1 -1
- package/dist/client/vite-micro-proxy.d.ts +1 -20
- package/dist/client/vite-micro-proxy.js +1 -1
- package/dist/client/vite-plugin-eps.d.ts +1 -20
- package/dist/client/vite-plugin-eps.js +1 -1
- package/dist/client/vite-resolve.d.ts +1 -16
- package/dist/client/vite-resolve.js +1 -1
- package/dist/config/index.js +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/ioc/index.d.ts +1 -1
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/datetime-picker.js +1 -1
- package/dist/shared/decimal.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +1 -1
- package/typings/admin/base/auth.ts +24 -24
- package/typings/admin/base/permission.ts +19 -19
- package/typings/admin/comm/cascader.ts +7 -7
- package/typings/admin/comm/check-tree.ts +7 -7
- package/typings/admin/comm/crud.ts +427 -427
- package/typings/admin/comm/eps.ts +86 -86
- package/typings/admin/comm/request.ts +16 -16
- package/typings/admin/comm/service.ts +43 -43
- package/typings/admin/comm/upload.ts +39 -39
- package/typings/admin/theme.ts +10 -10
- package/typings/admin/vome/browser.ts +11 -11
- package/typings/admin/vome/module.ts +13 -13
- package/typings/admin/vome/tags.ts +9 -9
- package/typings/comm/crud.ts +83 -83
- package/typings/comm/page.ts +18 -18
- package/typings/comm/scan.ts +6 -6
- package/typings/common.ts +4 -4
- package/typings/context/data.ts +10 -10
- package/typings/ext/market-seat.ts +42 -42
- package/typings/ext/market.ts +55 -55
- package/typings/ext/module.ts +64 -64
- package/typings/ext/plugin.ts +38 -38
- package/typings/ioc/metadata.ts +34 -34
- package/typings/logger/config.ts +6 -6
- package/typings/routing/crud.ts +199 -199
- package/typings/routing/eps.ts +88 -88
- package/typings/routing/meta.ts +63 -63
- package/typings/routing/register.ts +21 -21
- package/typings/routing/scan-context.ts +7 -7
- package/dist/admin/api/client.d.ts +0 -50
- package/dist/admin/components/ui/avatar/index.d.ts +0 -3
- package/dist/admin/components/ui/badge/index.d.ts +0 -6
- package/dist/admin/components/ui/button/index.d.ts +0 -7
- package/dist/admin/components/ui/checkbox/index.d.ts +0 -1
- package/dist/admin/components/ui/dialog/index.d.ts +0 -10
- package/dist/admin/components/ui/dropdown-menu/index.d.ts +0 -15
- package/dist/admin/components/ui/input/index.d.ts +0 -1
- package/dist/admin/components/ui/label/index.d.ts +0 -1
- package/dist/admin/components/ui/scroll-area/index.d.ts +0 -2
- package/dist/admin/components/ui/select/index.d.ts +0 -11
- package/dist/admin/components/ui/separator/index.d.ts +0 -1
- package/dist/admin/components/ui/sheet/index.d.ts +0 -8
- package/dist/admin/components/ui/sonner/index.d.ts +0 -1
- package/dist/admin/components/ui/table/index.d.ts +0 -9
- package/dist/admin/components/ui/tabs/index.d.ts +0 -4
- package/dist/admin/components/ui/tooltip/index.d.ts +0 -4
- package/dist/admin/crud/auto-fields.d.ts +0 -68
- package/dist/admin/crud/config.d.ts +0 -5
- package/dist/admin/crud/confirm.d.ts +0 -19
- package/dist/admin/crud/crud-page-request.d.ts +0 -21
- package/dist/admin/crud/data-i18n.d.ts +0 -62
- package/dist/admin/crud/dict.d.ts +0 -4
- package/dist/admin/crud/export-fetch.d.ts +0 -22
- package/dist/admin/crud/index.d.ts +0 -60
- package/dist/admin/crud/json-kv.d.ts +0 -9
- package/dist/admin/crud/key.d.ts +0 -22
- package/dist/admin/crud/paging.d.ts +0 -2
- package/dist/admin/crud/plugins.d.ts +0 -63
- package/dist/admin/crud/registry.d.ts +0 -3
- package/dist/admin/crud/span.d.ts +0 -17
- package/dist/admin/crud/style.d.ts +0 -82
- package/dist/admin/crud/useCrud.d.ts +0 -21
- package/dist/admin/crud/validate.d.ts +0 -7
- package/dist/admin/directives/perm.d.ts +0 -3
- package/dist/admin/hooks/useBrowser.d.ts +0 -6
- package/dist/admin/hooks/useUpload.d.ts +0 -8
- package/dist/admin/hooks/useVome.d.ts +0 -10
- package/dist/admin/lib/browser.d.ts +0 -3
- package/dist/admin/lib/cn.d.ts +0 -2
- package/dist/admin/lib/compress-image.d.ts +0 -12
- package/dist/admin/lib/dialog-float.d.ts +0 -8
- package/dist/admin/lib/eps.d.ts +0 -2
- package/dist/admin/lib/export-excel.d.ts +0 -9
- package/dist/admin/lib/file-preview.d.ts +0 -9
- package/dist/admin/lib/import-excel.d.ts +0 -21
- package/dist/admin/lib/json.d.ts +0 -11
- package/dist/admin/lib/menu.d.ts +0 -3
- package/dist/admin/lib/micro-locale.d.ts +0 -5
- package/dist/admin/lib/micro-theme.d.ts +0 -14
- package/dist/admin/lib/module.d.ts +0 -21
- package/dist/admin/lib/scarce-assets.d.ts +0 -5
- package/dist/admin/lib/shell.d.ts +0 -8
- package/dist/admin/lib/theme-color-options.d.ts +0 -15
- package/dist/admin/lib/tree.d.ts +0 -2
- package/dist/admin/lib/upload.d.ts +0 -17
- package/dist/admin/lib/video-frame.d.ts +0 -6
- package/dist/admin/router/create.d.ts +0 -16
- package/dist/admin/router/guards.d.ts +0 -6
- package/dist/admin/router/menu-routes.d.ts +0 -13
- package/dist/admin/stores/app.d.ts +0 -13
- package/dist/admin/stores/tags.d.ts +0 -14
- package/dist/admin/stores/user.d.ts +0 -48
- package/dist/client/ai-model-registry.d.ts +0 -16
- package/dist/client/base.d.ts +0 -28
- package/dist/client/configure.d.ts +0 -33
- package/dist/client/dict.d.ts +0 -31
- package/dist/client/eps-payload.d.ts +0 -3
- package/dist/client/eps.d.ts +0 -17
- package/dist/client/locale-change.d.ts +0 -16
- package/dist/client/locale-store.d.ts +0 -105
- package/dist/client/service.d.ts +0 -29
package/dist/admin/crud/key.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { type InjectionKey } from 'vue';
|
|
2
|
-
import type { CrudColumn, CrudContext, CrudImportOptions, CrudOptions, CrudSearchOptions, CrudTableOptions, CrudUpsertOptions } from '../../../typings/admin/comm/crud';
|
|
3
|
-
export declare const CRUD_KEY: InjectionKey<CrudContext>;
|
|
4
|
-
export declare const CRUD_OPTIONS_KEY: InjectionKey<CrudOptions>;
|
|
5
|
-
export declare const TABLE_OPTIONS_KEY: InjectionKey<CrudTableOptions>;
|
|
6
|
-
export declare const UPSERT_OPTIONS_KEY: InjectionKey<CrudUpsertOptions>;
|
|
7
|
-
export declare const SEARCH_OPTIONS_KEY: InjectionKey<CrudSearchOptions>;
|
|
8
|
-
export declare const IMPORT_OPTIONS_KEY: InjectionKey<CrudImportOptions>;
|
|
9
|
-
/** Table 实例 API(ColumnCustom / showColumn 等) */
|
|
10
|
-
export type TableApi = {
|
|
11
|
-
setColumns: (cols: CrudColumn[]) => void;
|
|
12
|
-
showColumn: (prop: string) => void;
|
|
13
|
-
hideColumn: (prop: string) => void;
|
|
14
|
-
getColumns: () => CrudColumn[];
|
|
15
|
-
};
|
|
16
|
-
export declare const TABLE_API_KEY: InjectionKey<TableApi>;
|
|
17
|
-
/** inject(KEY, undefined) 在严格模式下会推断为 never,统一走 helper */
|
|
18
|
-
export declare function injectCrudOptions(): CrudOptions | undefined;
|
|
19
|
-
export declare function injectTableOptions(): CrudTableOptions | undefined;
|
|
20
|
-
export declare function injectUpsertOptions(): CrudUpsertOptions | undefined;
|
|
21
|
-
export declare function injectSearchOptions(): CrudSearchOptions | undefined;
|
|
22
|
-
export declare function injectImportOptions(): CrudImportOptions | undefined;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import type { CrudSearchItem, CrudTableOptions, TablePlugin } from '../../../typings/admin/comm/crud';
|
|
2
|
-
export type { TablePlugin };
|
|
3
|
-
/** 表格树形展示 */
|
|
4
|
-
export declare function toTree(options?: {
|
|
5
|
-
lazy?: boolean;
|
|
6
|
-
}): TablePlugin;
|
|
7
|
-
/** 表单自动聚焦 */
|
|
8
|
-
export declare function setFocus(prop?: string): {
|
|
9
|
-
__plugin: string;
|
|
10
|
-
prop: string;
|
|
11
|
-
};
|
|
12
|
-
/** required → rules */
|
|
13
|
-
export declare function setRules(): {
|
|
14
|
-
__plugin: string;
|
|
15
|
-
};
|
|
16
|
-
/** 搜索项自动生成 */
|
|
17
|
-
export declare function setAuto(options?: {
|
|
18
|
-
hideLabel?: boolean;
|
|
19
|
-
ignoreFields?: string[];
|
|
20
|
-
}): {
|
|
21
|
-
hideLabel?: boolean;
|
|
22
|
-
ignoreFields?: string[];
|
|
23
|
-
__plugin: string;
|
|
24
|
-
};
|
|
25
|
-
/** 表单 / 表格 EPS 自动生成(与 Search.setAuto 同构) */
|
|
26
|
-
export declare function setFormAuto(options?: {
|
|
27
|
-
ignoreFields?: string[];
|
|
28
|
-
}): {
|
|
29
|
-
ignoreFields?: string[];
|
|
30
|
-
__plugin: string;
|
|
31
|
-
};
|
|
32
|
-
export declare function setTableAuto(options?: {
|
|
33
|
-
ignoreFields?: string[];
|
|
34
|
-
}): {
|
|
35
|
-
ignoreFields?: string[];
|
|
36
|
-
__plugin: string;
|
|
37
|
-
};
|
|
38
|
-
export declare const Plugins: {
|
|
39
|
-
Table: {
|
|
40
|
-
toTree: typeof toTree;
|
|
41
|
-
setAuto: typeof setTableAuto;
|
|
42
|
-
};
|
|
43
|
-
Form: {
|
|
44
|
-
setFocus: typeof setFocus;
|
|
45
|
-
setRules: typeof setRules;
|
|
46
|
-
setAuto: typeof setFormAuto;
|
|
47
|
-
};
|
|
48
|
-
Search: {
|
|
49
|
-
setAuto: typeof setAuto;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
|
-
/** 把 plugins 合并进 table options + 全局 style */
|
|
53
|
-
export declare function applyTablePlugins(options?: CrudTableOptions & {
|
|
54
|
-
plugins?: TablePlugin[];
|
|
55
|
-
}): CrudTableOptions;
|
|
56
|
-
/** 从 EPS / service.search 生成搜索项(跳过 none:true) */
|
|
57
|
-
export declare function buildAutoSearchItems(service: {
|
|
58
|
-
namespace?: string;
|
|
59
|
-
search?: Record<string, unknown>;
|
|
60
|
-
}, options?: {
|
|
61
|
-
hideLabel?: boolean;
|
|
62
|
-
ignoreFields?: string[];
|
|
63
|
-
}): CrudSearchItem[];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
/** 桌面表单栅格列数(全宽 span = 24) */
|
|
3
|
-
export declare const FORM_COLS_DESKTOP = 24;
|
|
4
|
-
/** 移动端表单栅格列数(全宽 span = 12) */
|
|
5
|
-
export declare const FORM_COLS_MOBILE = 12;
|
|
6
|
-
/** 配置侧全宽默认值(一律按 24 栅格书写) */
|
|
7
|
-
export declare const FORM_SPAN_FULL = 24;
|
|
8
|
-
export declare const FORM_MQ_MOBILE = "(max-width: 768px)";
|
|
9
|
-
/** 当前断点下列数:桌面 24 / 移动端 12 */
|
|
10
|
-
export declare function getFormCols(): number;
|
|
11
|
-
/**
|
|
12
|
-
* 将 items.span(按 24 栅格配置)换算为当前网格列数下的 span。
|
|
13
|
-
* 移动端:24 → 12(全宽),12 → 6(半宽)。
|
|
14
|
-
*/
|
|
15
|
-
export declare function resolveFormSpan(span?: number, cols?: number): number;
|
|
16
|
-
/** 响应式列数,断点变化时触发重渲染 */
|
|
17
|
-
export declare function useFormCols(): Ref<number>;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import type { CrudDict } from '../../../typings/admin/comm/crud';
|
|
2
|
-
import type { VmColorThemeOption } from '../lib/theme-color-options';
|
|
3
|
-
import type { ConfirmDialogComponents } from './confirm';
|
|
4
|
-
/** CRUD 默认样式配置 */
|
|
5
|
-
type CrudStyleConfig = {
|
|
6
|
-
form: {
|
|
7
|
-
labelPosition: 'top' | 'left' | 'right';
|
|
8
|
-
labelWidth: string;
|
|
9
|
-
span: number;
|
|
10
|
-
plugins: unknown[];
|
|
11
|
-
};
|
|
12
|
-
table: {
|
|
13
|
-
border: boolean;
|
|
14
|
-
highlightCurrentRow: boolean;
|
|
15
|
-
autoHeight: boolean;
|
|
16
|
-
contextMenu: boolean | string[];
|
|
17
|
-
column: {
|
|
18
|
-
align: 'left' | 'center' | 'right';
|
|
19
|
-
opWidth: number;
|
|
20
|
-
};
|
|
21
|
-
plugins: unknown[];
|
|
22
|
-
};
|
|
23
|
-
search: {
|
|
24
|
-
plugins: unknown[];
|
|
25
|
-
};
|
|
26
|
-
colors: string[];
|
|
27
|
-
};
|
|
28
|
-
type CrudGlobalConfig = {
|
|
29
|
-
dict: CrudDict;
|
|
30
|
-
style: CrudStyleConfig;
|
|
31
|
-
/** 宿主注入:vm-color-picker 默认主题色列表(读各端 theme store / CSS 变量) */
|
|
32
|
-
listThemeColorOptions?: () => VmColorThemeOption[];
|
|
33
|
-
/** 宿主注入:vmConfirm 程序化 Dialog */
|
|
34
|
-
confirmDialog?: ConfirmDialogComponents;
|
|
35
|
-
};
|
|
36
|
-
export declare const DEFAULT_CRUD_STYLE: CrudStyleConfig;
|
|
37
|
-
/** 语言包变更时递增,驱动筛选占位 / 按钮文案刷新 */
|
|
38
|
-
export declare const crudLocaleRev: import("vue").Ref<number, number>;
|
|
39
|
-
type CrudTranslateFn = (key: string, fallback?: string) => string;
|
|
40
|
-
/** 安装宿主 t(),供 field.* / 动态占位解析 */
|
|
41
|
-
export declare function setCrudTranslator(fn: CrudTranslateFn | null): void;
|
|
42
|
-
/** 读语言包;无翻译器时回退 fallback */
|
|
43
|
-
export declare function crudT(key: string, fallback?: string): string;
|
|
44
|
-
/**
|
|
45
|
-
* CRUD 壳层文案:t('crud.xxx'),回退 dict.label / CRUD_LABELS
|
|
46
|
-
* 依赖 crudLocaleRev,模板/computed 内调用即可随语言刷新
|
|
47
|
-
*/
|
|
48
|
-
export declare function crudLabel(name: string, localLabel?: Record<string, string>): string;
|
|
49
|
-
/** `{0}` 插值 */
|
|
50
|
-
export declare function crudFormat(tpl: string, ...args: Array<string | number>): string;
|
|
51
|
-
/** 解析动态筛选占位符(依赖 crudLocaleRev / translator) */
|
|
52
|
-
export declare function resolveSearchPlaceholder(item: {
|
|
53
|
-
placeholder?: string;
|
|
54
|
-
label?: string;
|
|
55
|
-
fieldKey?: string;
|
|
56
|
-
nameFallback?: string;
|
|
57
|
-
phMode?: 'search' | 'select' | 'keyword' | 'range';
|
|
58
|
-
keywordParts?: string[];
|
|
59
|
-
}): string;
|
|
60
|
-
/** 区间起止占位 */
|
|
61
|
-
export declare function resolveRangePlaceholders(item: {
|
|
62
|
-
fieldKey?: string;
|
|
63
|
-
nameFallback?: string;
|
|
64
|
-
label?: string;
|
|
65
|
-
type?: string;
|
|
66
|
-
range?: {
|
|
67
|
-
rangeType?: string;
|
|
68
|
-
};
|
|
69
|
-
}): {
|
|
70
|
-
startPlaceholder: string;
|
|
71
|
-
endPlaceholder: string;
|
|
72
|
-
};
|
|
73
|
-
/** 安装/覆盖全局 CRUD 配置 */
|
|
74
|
-
export declare function setCrudConfig(partial?: {
|
|
75
|
-
dict?: Partial<CrudDict>;
|
|
76
|
-
style?: Partial<CrudStyleConfig>;
|
|
77
|
-
listThemeColorOptions?: () => VmColorThemeOption[];
|
|
78
|
-
confirmDialog?: ConfirmDialogComponents;
|
|
79
|
-
}): CrudGlobalConfig;
|
|
80
|
-
export declare function getCrudConfig(): CrudGlobalConfig;
|
|
81
|
-
export declare function getCrudStyle(): CrudStyleConfig;
|
|
82
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import { CRUD_KEY } from './key';
|
|
3
|
-
import type { CrudContext, CrudImportOptions, CrudOptions, CrudSearchOptions, CrudTableOptions, CrudUpsertOptions, TablePlugin } from '../../../typings/admin/comm/crud';
|
|
4
|
-
/**
|
|
5
|
-
* useCrud:
|
|
6
|
-
* - useCrud(options, cb) provide 配置;模板 ref="Crud" 拿到实例后 cb
|
|
7
|
-
* - useCrud() 在子组件 inject
|
|
8
|
-
*/
|
|
9
|
-
export declare function useCrud(): CrudContext;
|
|
10
|
-
export declare function useCrud(options: CrudOptions, cb?: (app: CrudContext) => void): Ref<CrudContext | undefined>;
|
|
11
|
-
export declare function useTable(options?: CrudTableOptions & {
|
|
12
|
-
plugins?: TablePlugin[];
|
|
13
|
-
}, cb?: (table: unknown) => void): Ref<any, any>;
|
|
14
|
-
export declare function useUpsert(options?: CrudUpsertOptions): Ref<any, any>;
|
|
15
|
-
export declare function useSearch(options?: CrudSearchOptions): Ref<any, any>;
|
|
16
|
-
/** 向 vm-import-btn 注入导入钩子(含 toolbar 内置按钮) */
|
|
17
|
-
export declare function useImport(options?: CrudImportOptions): void;
|
|
18
|
-
export declare function useCore(): {
|
|
19
|
-
crud: CrudContext;
|
|
20
|
-
};
|
|
21
|
-
export { CRUD_KEY };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { CrudFormItem } from '../../../typings/admin/comm/crud';
|
|
2
|
-
/** required 支持函数:按表单态(如新增/编辑)动态必填 */
|
|
3
|
-
export declare function resolveItemRequired(item: CrudFormItem, form: Record<string, unknown>): boolean;
|
|
4
|
-
/** 按字段返回校验错误(字段下红字) */
|
|
5
|
-
export declare function validateFormFields(items: CrudFormItem[], form: Record<string, unknown>): Promise<Record<string, string>>;
|
|
6
|
-
/** setRules:required 自动补全 rules(若尚未配置);函数 required 运行时再解析 */
|
|
7
|
-
export declare function applySetRules(items: CrudFormItem[]): CrudFormItem[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { UploadOptions, UploadResult } from '../../../typings/admin/comm/upload';
|
|
2
|
-
/**
|
|
3
|
-
* 云端直传:向服务端取签名 → 直传对象存储
|
|
4
|
-
* 需已安装 hook=upload 插件;配置错误由插件/接口直接抛错
|
|
5
|
-
*/
|
|
6
|
-
export declare function useUpload(): {
|
|
7
|
-
toUpload: (file: File, opts?: UploadOptions) => Promise<UploadResult>;
|
|
8
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/** service + router + browser(须先 await createEps) */
|
|
2
|
-
export declare function useVome(): {
|
|
3
|
-
browser: import("..").BrowserInfo;
|
|
4
|
-
onScreenChange(ev: () => void, immediate?: boolean): void;
|
|
5
|
-
service: import("../service").ServiceTree & {
|
|
6
|
-
request: import("..").BaseService["request"];
|
|
7
|
-
};
|
|
8
|
-
route: import("vue-router").RouteLocationNormalizedLoadedGeneric;
|
|
9
|
-
router: import("vue-router").Router;
|
|
10
|
-
};
|
package/dist/admin/lib/cn.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** 是否走浏览器压缩(按 MIME;svg / 非图片否) */
|
|
2
|
-
export declare function isCompressibleImage(type: string): boolean;
|
|
3
|
-
export type CompressImageOptions = {
|
|
4
|
-
/** 0–100,来自 browser-image-compression */
|
|
5
|
-
onProgress?: (percent: number) => void;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* 浏览器端压缩图片(browser-image-compression)。
|
|
9
|
-
* 不可压类型 / 失败时返回原 File。
|
|
10
|
-
* 依赖由 dist/admin/vendor 预打包;本文件须加入 obfuscate skip。
|
|
11
|
-
*/
|
|
12
|
-
export declare function compressImage(file: File, opts?: CompressImageOptions): Promise<File>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** Dialog 内 Teleport 浮层统一标记:点浮层时勿关闭宿主 Dialog */
|
|
2
|
-
export declare const DIALOG_FLOAT_CLASS = "vm-dialog-float";
|
|
3
|
-
/** 触发框与 Teleport / Popper 浮层之间的间距(px) */
|
|
4
|
-
export declare const POPUP_TRIGGER_GAP = 2;
|
|
5
|
-
/** 判断 pointer/focus/interact-outside 是否落在 Dialog 浮层上 */
|
|
6
|
-
export declare function isDialogFloatTarget(event: Event): boolean;
|
|
7
|
-
/** CRUD Dialog:点击内部 Teleport 浮层时不关闭宿主弹窗 */
|
|
8
|
-
export declare function preventDialogOutsideClose(event: Event): void;
|
package/dist/admin/lib/eps.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { CrudColumn } from '../../../typings/admin/comm/crud';
|
|
2
|
-
export { buildExcelBuffer, excelFilename, excelResponseHeaders, toExcelUint8Array, } from '../../shared/excel';
|
|
3
|
-
export type { ExcelColumn } from '../../shared/excel';
|
|
4
|
-
/** 可导出的数据列(排除 selection / op 等) */
|
|
5
|
-
export declare function pickExportColumns(columns: CrudColumn[]): CrudColumn[];
|
|
6
|
-
export declare function flattenExportRows(rows: Record<string, unknown>[], tree?: boolean): Record<string, unknown>[];
|
|
7
|
-
/** 浏览器触发 xlsx 下载(勿对 ArrayBuffer 用 Uint8Array.from,会得到空缓冲) */
|
|
8
|
-
export declare function downloadExcelBuffer(buffer: Uint8Array | ArrayBuffer, filename: string): void;
|
|
9
|
-
export declare function exportCrudExcel(columns: CrudColumn[], rows: Record<string, unknown>[], filename: string): void;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type FilePreviewKind = 'pdf' | 'excel' | 'text' | 'office' | 'unsupported';
|
|
2
|
-
export type MediaPreviewKind = FilePreviewKind | 'image' | 'video' | 'audio';
|
|
3
|
-
/** 按 URL / 文件名推断预览类型(含图片 / 音视频) */
|
|
4
|
-
export declare function getMediaPreviewKind(path?: string): MediaPreviewKind;
|
|
5
|
-
export declare function fileDisplayName(path?: string, fallback?: string): string;
|
|
6
|
-
export declare function fetchFileText(url: string): Promise<string>;
|
|
7
|
-
/** Excel 首表 → HTML 表格 */
|
|
8
|
-
export declare function loadExcelPreviewHtml(url: string): Promise<string>;
|
|
9
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export type ImportResult = {
|
|
2
|
-
inserted: number;
|
|
3
|
-
updated: number;
|
|
4
|
-
failed: Array<{
|
|
5
|
-
row: number;
|
|
6
|
-
message: string;
|
|
7
|
-
}>;
|
|
8
|
-
};
|
|
9
|
-
type ImportPreview = {
|
|
10
|
-
headers: string[];
|
|
11
|
-
rows: Record<string, unknown>[];
|
|
12
|
-
};
|
|
13
|
-
/** 本地解析 xlsx 供导入弹窗预览 */
|
|
14
|
-
export declare function parseImportExcelPreview(file: File): Promise<ImportPreview>;
|
|
15
|
-
/** GET /importTemplate → 下载实体导入模板 */
|
|
16
|
-
export declare function downloadImportTemplate(namespace: string, filename?: string): Promise<void>;
|
|
17
|
-
/** POST /import multipart file */
|
|
18
|
-
export declare function uploadImportExcel(namespace: string, file: File): Promise<ImportResult>;
|
|
19
|
-
/** POST /import JSON `{ rows }`(业务改写行后直传,跳过再拼 File) */
|
|
20
|
-
export declare function uploadImportRows(namespace: string, rows: Record<string, unknown>[]): Promise<ImportResult>;
|
|
21
|
-
export {};
|
package/dist/admin/lib/json.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare function textOfJson(v: unknown): string;
|
|
2
|
-
export declare function prettyJson(raw: unknown, empty?: string): string;
|
|
3
|
-
export declare function hasJsonContent(raw: unknown): boolean;
|
|
4
|
-
export type JsonParseResult = {
|
|
5
|
-
ok: true;
|
|
6
|
-
value: unknown;
|
|
7
|
-
} | {
|
|
8
|
-
ok: false;
|
|
9
|
-
error: string;
|
|
10
|
-
};
|
|
11
|
-
export declare function parseJsonInput(raw: string): JsonParseResult;
|
package/dist/admin/lib/menu.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** 宿主 → 无界子应用语种同步(与 micro-theme 同模式) */
|
|
2
|
-
export declare const MICRO_LOCALE_EVENT = "vome-host-locale";
|
|
3
|
-
export declare const HOST_LOCALE_KEY = "vome_admin_locale";
|
|
4
|
-
export declare function hasMicroLocaleListeners(): boolean;
|
|
5
|
-
export declare function readHostLocale(): string;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** 宿主 ↔ 无界子应用主题同步 */
|
|
2
|
-
export declare const MICRO_THEME_EVENT = "vome-host-theme";
|
|
3
|
-
/** 子应用 → 宿主:请求切换亮暗 */
|
|
4
|
-
export declare const MICRO_SET_THEME_EVENT = "vome-set-host-theme";
|
|
5
|
-
/** 是否有子应用监听主题(无则跳过 emit,避免「事件订阅数量为空」) */
|
|
6
|
-
export declare function hasMicroThemeListeners(): boolean;
|
|
7
|
-
export declare const MICRO_THEME_VARS: readonly ["--brand", "--brand-soft", "--brand-deep", "--background", "--foreground", "--card", "--card-foreground", "--popover", "--popover-foreground", "--primary", "--primary-foreground", "--secondary", "--secondary-foreground", "--muted", "--muted-foreground", "--accent", "--accent-foreground", "--destructive", "--danger", "--danger-soft", "--warning", "--warning-soft", "--success", "--success-soft", "--border", "--input", "--ring", "--focus-border"];
|
|
8
|
-
export type HostThemeSnapshot = {
|
|
9
|
-
dark: boolean;
|
|
10
|
-
themeId: string;
|
|
11
|
-
tokens: Record<string, string>;
|
|
12
|
-
};
|
|
13
|
-
/** 采集当前 documentElement 上的主题 token(含 inline + .dark) */
|
|
14
|
-
export declare function snapshotHostTheme(): HostThemeSnapshot;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { ViewLoader, ViewsTreeNode } from '../../../typings/admin/vome/module';
|
|
2
|
-
/** 视图重扫事件:保存 views 触发 HMR 后派发,选择器监听刷新 */
|
|
3
|
-
export declare const VIEWS_RESCAN_EVENT = "vome:views-rescan";
|
|
4
|
-
/** 宿主注册业务视图 glob(包内无法扫描宿主 modules) */
|
|
5
|
-
export declare function registerViews(files: Record<string, () => Promise<{
|
|
6
|
-
default: import('vue').Component;
|
|
7
|
-
}>>): void;
|
|
8
|
-
/** 解析菜单 viewPath,如 modules/base/views/menu */
|
|
9
|
-
export declare function resolveView(viewPath: string | null | undefined): ViewLoader | undefined;
|
|
10
|
-
/**
|
|
11
|
-
* viewPath → 页面组件 name
|
|
12
|
-
* modules/base/views/role → base-role
|
|
13
|
-
* modules/user/views/info → user-info
|
|
14
|
-
*/
|
|
15
|
-
export declare function viewPathToName(viewPath: string | null | undefined): string | undefined;
|
|
16
|
-
export declare function listViews(): string[];
|
|
17
|
-
/**
|
|
18
|
-
* 将扁平 viewPath 建成多列树(展示从 modules/ 后分段)
|
|
19
|
-
* modules/base/views/menu → base > views > menu
|
|
20
|
-
*/
|
|
21
|
-
export declare function listViewsTree(): ViewsTreeNode[];
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export type AdminShellHooks = {
|
|
2
|
-
resetMenuRoutes?: () => void;
|
|
3
|
-
onLogoutCleanup?: () => void | Promise<void>;
|
|
4
|
-
};
|
|
5
|
-
export declare function configureAdminShellHooks(next: AdminShellHooks): void;
|
|
6
|
-
export declare function getAdminShellHooks(): AdminShellHooks;
|
|
7
|
-
/** logout 时执行 router 注册的清理(WS 断开、菜单路由标记重置等) */
|
|
8
|
-
export declare function runAdminShellLogoutCleanup(): void;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type VmColorThemeOption = {
|
|
2
|
-
key: string;
|
|
3
|
-
label: string;
|
|
4
|
-
/** 当前模式下预览色(读 CSS 变量计算值) */
|
|
5
|
-
value: string;
|
|
6
|
-
};
|
|
7
|
-
export type ThemeColorDef = {
|
|
8
|
-
/** CSS 变量名(不含 `--`) */
|
|
9
|
-
key: string;
|
|
10
|
-
label: string;
|
|
11
|
-
};
|
|
12
|
-
/** admin 模版默认 token(label 经 crudLabel 解析) */
|
|
13
|
-
export declare const ADMIN_THEME_COLOR_DEFS: ThemeColorDef[];
|
|
14
|
-
/** 从宿主 :root 读取 CSS 变量,生成取色器主题列表 */
|
|
15
|
-
export declare function resolveCssThemeColorOptions(defs: ThemeColorDef[], root?: HTMLElement | null): VmColorThemeOption[];
|
package/dist/admin/lib/tree.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { UploadFileType, UploadRule } from '../../../typings/admin/comm/upload';
|
|
2
|
-
/** 规则展示名(i18n);PDF 等无 key 时回退 rule.name */
|
|
3
|
-
export declare function uploadRuleLabel(rule: {
|
|
4
|
-
type: string;
|
|
5
|
-
name?: string;
|
|
6
|
-
}): string;
|
|
7
|
-
/** 默认上传规则 */
|
|
8
|
-
export declare const DEFAULT_UPLOAD_RULES: UploadRule[];
|
|
9
|
-
export declare function extname(path?: string): string;
|
|
10
|
-
export declare function filename(path?: string): string;
|
|
11
|
-
export declare function getFileType(path: string, rules?: UploadRule[]): UploadFileType;
|
|
12
|
-
export declare function getUploadRule(type: string, rules?: UploadRule[]): UploadRule;
|
|
13
|
-
export declare function getUrls(list: Array<{
|
|
14
|
-
url?: string;
|
|
15
|
-
}>): string[];
|
|
16
|
-
export declare function pathJoin(...parts: string[]): string;
|
|
17
|
-
export declare function uploadUid(): string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
import { type Router } from 'vue-router';
|
|
3
|
-
import type { MenuRouteShell } from './menu-routes';
|
|
4
|
-
export type AdminRouterPages = {
|
|
5
|
-
home: Component;
|
|
6
|
-
layout: Component;
|
|
7
|
-
login: Component;
|
|
8
|
-
missing: Component;
|
|
9
|
-
micro: Component;
|
|
10
|
-
};
|
|
11
|
-
export type AdminRouterResult = {
|
|
12
|
-
router: Router;
|
|
13
|
-
menuRouteShell: MenuRouteShell;
|
|
14
|
-
};
|
|
15
|
-
/** 宿主传入 pages(留在 admin/src/pages),core 装配守卫与动态菜单 shell */
|
|
16
|
-
export declare function createAdminRouter(pages: AdminRouterPages): AdminRouterResult;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { Router } from 'vue-router';
|
|
2
|
-
import { type MenuRouteShell } from './menu-routes';
|
|
3
|
-
/** 鉴权、EPS、动态菜单挂载(由宿主 createRouter 后调用) */
|
|
4
|
-
export declare function setupAdminRouterGuards(router: Router, shell: MenuRouteShell): void;
|
|
5
|
-
/** 退出/重登:卸动态路由并允许再次 ensureMenuRoutes */
|
|
6
|
-
export declare function resetMenuRoutesFlag(router: Router): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
import type { Router } from 'vue-router';
|
|
3
|
-
import type { MenuTreeNode } from '../../../typings/admin/base/permission';
|
|
4
|
-
export type MenuRouteShell = {
|
|
5
|
-
missing: Component;
|
|
6
|
-
micro: Component;
|
|
7
|
-
};
|
|
8
|
-
/** 根据权限菜单动态挂载:viewPath 本地模块 / appKey 微应用(仅补新增) */
|
|
9
|
-
export declare function ensureMenuRoutes(router: Router, menus: MenuTreeNode[], shell: MenuRouteShell): Promise<void>;
|
|
10
|
-
/** 全量同步:删旧补新,菜单改名/改路由/显隐后侧栏与路由一致 */
|
|
11
|
-
export declare function syncMenuRoutes(router: Router, menus: MenuTreeNode[], shell: MenuRouteShell): Promise<void>;
|
|
12
|
-
export declare function clearMenuRoutesFlag(): void;
|
|
13
|
-
export declare function removeAllMenuRoutes(router: Router): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const useAppStore: import("pinia").StoreDefinition<"app", {
|
|
2
|
-
/** 桌面端手动折叠侧栏 */
|
|
3
|
-
sidebarFold: boolean;
|
|
4
|
-
/** 移动端抽屉开合 */
|
|
5
|
-
mobileOpen: boolean;
|
|
6
|
-
/** 为 false 时卸掉 RouterView,用于「刷新当前页」 */
|
|
7
|
-
viewAlive: boolean;
|
|
8
|
-
}, {}, {
|
|
9
|
-
toggleSidebarFold(): void;
|
|
10
|
-
setMobileOpen(open: boolean): void;
|
|
11
|
-
/** 重挂载当前视图(非浏览器整页刷新) */
|
|
12
|
-
reloadView(): Promise<void>;
|
|
13
|
-
}>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { RouteLocationNormalized } from 'vue-router';
|
|
2
|
-
import type { TagItem } from '../../../typings/admin/vome/tags';
|
|
3
|
-
export declare const useTagsStore: import("pinia").StoreDefinition<"tags", {
|
|
4
|
-
list: TagItem[];
|
|
5
|
-
/** KeepAlive :include,值为页面组件 name(如 base-role) */
|
|
6
|
-
caches: string[];
|
|
7
|
-
}, {}, {
|
|
8
|
-
add(route: RouteLocationNormalized): void;
|
|
9
|
-
addCache(name: string): void;
|
|
10
|
-
removeCache(name?: string): void;
|
|
11
|
-
remove(path: string): void;
|
|
12
|
-
closeOthers(path: string): void;
|
|
13
|
-
clear(): void;
|
|
14
|
-
}>;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { MenuTreeNode } from '../../../typings/admin/base/permission';
|
|
2
|
-
export declare const useUserStore: import("pinia").StoreDefinition<"user", {
|
|
3
|
-
adminId: number;
|
|
4
|
-
username: string;
|
|
5
|
-
isSuper: boolean;
|
|
6
|
-
perms: string[];
|
|
7
|
-
menus: MenuTreeNode[];
|
|
8
|
-
loaded: boolean;
|
|
9
|
-
}, {
|
|
10
|
-
navMenus(state: {
|
|
11
|
-
adminId: number;
|
|
12
|
-
username: string;
|
|
13
|
-
isSuper: boolean;
|
|
14
|
-
perms: string[];
|
|
15
|
-
menus: {
|
|
16
|
-
id: number;
|
|
17
|
-
parentId: number | null;
|
|
18
|
-
name: string;
|
|
19
|
-
router: string | null;
|
|
20
|
-
perms: string | null;
|
|
21
|
-
type: number;
|
|
22
|
-
icon: string | null;
|
|
23
|
-
orderNum: number;
|
|
24
|
-
viewPath: string | null;
|
|
25
|
-
remoteName: string | null;
|
|
26
|
-
remoteEntry: string | null;
|
|
27
|
-
remoteModule: string | null;
|
|
28
|
-
appKey: string | null;
|
|
29
|
-
keepAlive: boolean;
|
|
30
|
-
isShow: boolean;
|
|
31
|
-
children?: /*elided*/ any[];
|
|
32
|
-
}[];
|
|
33
|
-
loaded: boolean;
|
|
34
|
-
} & import("pinia").PiniaCustomStateProperties<{
|
|
35
|
-
adminId: number;
|
|
36
|
-
username: string;
|
|
37
|
-
isSuper: boolean;
|
|
38
|
-
perms: string[];
|
|
39
|
-
menus: MenuTreeNode[];
|
|
40
|
-
loaded: boolean;
|
|
41
|
-
}>): MenuTreeNode[];
|
|
42
|
-
}, {
|
|
43
|
-
load(): Promise<void>;
|
|
44
|
-
/** 菜单 CRUD 后刷新侧栏/权限(不重拉 me) */
|
|
45
|
-
reloadMenus(): Promise<void>;
|
|
46
|
-
hasPerm(code: string | string[]): boolean;
|
|
47
|
-
logout(): void;
|
|
48
|
-
}>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type ChatModelRegistryEntry = {
|
|
2
|
-
code?: string;
|
|
3
|
-
resultModes?: string[] | null;
|
|
4
|
-
defaults?: Record<string, unknown> | null;
|
|
5
|
-
};
|
|
6
|
-
/** AI 模型列表加载后登记,供 `/ai/model/call` 按 resultModes 推断等头超时 */
|
|
7
|
-
export declare function registerChatModels(models: ChatModelRegistryEntry[]): void;
|
|
8
|
-
/**
|
|
9
|
-
* 按模型 resultModes(及 options.stream 显式覆盖)推断「等响应头」超时。
|
|
10
|
-
* 仅用于 `/ai/model/call`;业务 translate URL 在 base.ts 设 timeoutMs=0。
|
|
11
|
-
*/
|
|
12
|
-
export declare function resolveModelHeaderTimeoutMs(modelCode: string, opts?: {
|
|
13
|
-
capability?: string;
|
|
14
|
-
stream?: boolean;
|
|
15
|
-
timeoutMs?: number;
|
|
16
|
-
}): number;
|
package/dist/client/base.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ServiceRequestOptions } from '../../typings/admin/comm/service';
|
|
2
|
-
/** BaseService:namespace + request + 标准 CRUD */
|
|
3
|
-
export declare class BaseService {
|
|
4
|
-
namespace?: string;
|
|
5
|
-
constructor(namespace?: string);
|
|
6
|
-
request(options?: ServiceRequestOptions): Promise<unknown>;
|
|
7
|
-
page(data?: Record<string, unknown>, options?: Pick<ServiceRequestOptions, 'timeoutMs'>): Promise<{
|
|
8
|
-
list: Record<string, unknown>[];
|
|
9
|
-
pagination: {
|
|
10
|
-
page: number;
|
|
11
|
-
size: number;
|
|
12
|
-
total: number;
|
|
13
|
-
};
|
|
14
|
-
}>;
|
|
15
|
-
list(data?: Record<string, unknown>, options?: Pick<ServiceRequestOptions, 'timeoutMs'>): Promise<Record<string, unknown>[]>;
|
|
16
|
-
info(params: {
|
|
17
|
-
id: number | string;
|
|
18
|
-
}): Promise<Record<string, unknown>>;
|
|
19
|
-
add(data: Record<string, unknown> | Record<string, unknown>[]): Promise<unknown>;
|
|
20
|
-
update(data: Record<string, unknown> | Record<string, unknown>[]): Promise<unknown>;
|
|
21
|
-
delete(data: {
|
|
22
|
-
ids: Array<number | string>;
|
|
23
|
-
force?: boolean;
|
|
24
|
-
} | Array<number | string> | Array<Record<string, unknown>>): Promise<unknown>;
|
|
25
|
-
restore(data: {
|
|
26
|
-
ids: Array<number | string>;
|
|
27
|
-
}): Promise<unknown>;
|
|
28
|
-
}
|