@melt-js/comps-vben 0.0.0-stage → 2026.11.8-2
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/LICENSE +10 -0
- package/README.md +91 -2
- package/hel_dist/assets/index-DaBGAjzb.js +478 -0
- package/hel_dist/assets/style-CcRbEt6_.css +2 -0
- package/hel_dist/entry.js +20 -0
- package/hel_dist/hel-meta.json +116 -0
- package/hel_dist/index.html +37 -0
- package/hel_proxy/entry.js +20 -0
- package/hel_proxy/entry.js.map +1 -0
- package/hel_proxy_es/entry.js +11 -0
- package/hel_proxy_es/entry.js.map +1 -0
- package/package.json +101 -3
- package/scripts/check-tdz.mjs +20 -0
- package/scripts/check.mjs +18 -0
- package/scripts/meta.mjs +28 -0
- package/scripts/prepublishOnly.mjs +42 -0
- package/scripts/publish-stage.mjs +25 -0
- package/src/common-ui/components/api-component/api-component.vue +273 -0
- package/src/common-ui/components/api-component/index.ts +7 -0
- package/src/common-ui/components/api-component/types.ts +72 -0
- package/src/common-ui/components/captcha/hooks/useCaptchaPoints.ts +19 -0
- package/src/common-ui/components/captcha/index.ts +7 -0
- package/src/common-ui/components/captcha/point-selection-captcha/index.vue +176 -0
- package/src/common-ui/components/captcha/point-selection-captcha/point-selection-captcha-card.vue +86 -0
- package/src/common-ui/components/captcha/slider-captcha/index.vue +254 -0
- package/src/common-ui/components/captcha/slider-captcha/slider-captcha-action.vue +65 -0
- package/src/common-ui/components/captcha/slider-captcha/slider-captcha-bar.vue +40 -0
- package/src/common-ui/components/captcha/slider-captcha/slider-captcha-content.vue +53 -0
- package/src/common-ui/components/captcha/slider-rotate-captcha/index.vue +213 -0
- package/src/common-ui/components/captcha/slider-translate-captcha/index.vue +311 -0
- package/src/common-ui/components/captcha/types.ts +210 -0
- package/src/common-ui/components/col-page/col-page.vue +111 -0
- package/src/common-ui/components/col-page/index.ts +2 -0
- package/src/common-ui/components/col-page/types.ts +26 -0
- package/src/common-ui/components/count-to/count-to.vue +123 -0
- package/src/common-ui/components/count-to/index.ts +2 -0
- package/src/common-ui/components/count-to/types.ts +53 -0
- package/src/common-ui/components/cropper/cropper.vue +981 -0
- package/src/common-ui/components/cropper/index.ts +1 -0
- package/src/common-ui/components/ellipsis-text/ellipsis-text.vue +232 -0
- package/src/common-ui/components/ellipsis-text/index.ts +1 -0
- package/src/common-ui/components/icon-picker/icon-picker.vue +322 -0
- package/src/common-ui/components/icon-picker/icons.ts +56 -0
- package/src/common-ui/components/icon-picker/index.ts +2 -0
- package/src/common-ui/components/icon-picker/types.ts +26 -0
- package/src/common-ui/components/index.ts +51 -0
- package/src/common-ui/components/json-viewer/index.ts +3 -0
- package/src/common-ui/components/json-viewer/index.vue +128 -0
- package/src/common-ui/components/json-viewer/style.scss +91 -0
- package/src/common-ui/components/json-viewer/types.ts +44 -0
- package/src/common-ui/components/loading/directive.ts +132 -0
- package/src/common-ui/components/loading/index.ts +3 -0
- package/src/common-ui/components/loading/loading.vue +39 -0
- package/src/common-ui/components/loading/spinner.vue +28 -0
- package/src/common-ui/components/page/index.ts +2 -0
- package/src/common-ui/components/page/page.vue +107 -0
- package/src/common-ui/components/page/types.ts +23 -0
- package/src/common-ui/components/resize/index.ts +1 -0
- package/src/common-ui/components/resize/resize.vue +1269 -0
- package/src/common-ui/components/tippy/directive.ts +100 -0
- package/src/common-ui/components/tippy/index.ts +67 -0
- package/src/common-ui/components/tree/index.ts +1 -0
- package/src/common-ui/components/tree/tree.vue +25 -0
- package/src/common-ui/index.ts +2 -0
- package/src/common-ui/ui/about/about.ts +14 -0
- package/src/common-ui/ui/about/about.vue +183 -0
- package/src/common-ui/ui/about/index.ts +1 -0
- package/src/common-ui/ui/authentication/auth-title.vue +13 -0
- package/src/common-ui/ui/authentication/code-login.vue +127 -0
- package/src/common-ui/ui/authentication/dingding-login.vue +113 -0
- package/src/common-ui/ui/authentication/forget-password.vue +116 -0
- package/src/common-ui/ui/authentication/index.ts +7 -0
- package/src/common-ui/ui/authentication/login-expired-modal.vue +95 -0
- package/src/common-ui/ui/authentication/login.vue +186 -0
- package/src/common-ui/ui/authentication/qrcode-login.vue +105 -0
- package/src/common-ui/ui/authentication/register.vue +121 -0
- package/src/common-ui/ui/authentication/third-party-login.vue +71 -0
- package/src/common-ui/ui/authentication/types.ts +70 -0
- package/src/common-ui/ui/dashboard/analysis/analysis-chart-card.vue +24 -0
- package/src/common-ui/ui/dashboard/analysis/analysis-charts-tabs.vue +40 -0
- package/src/common-ui/ui/dashboard/analysis/analysis-overview.vue +55 -0
- package/src/common-ui/ui/dashboard/analysis/index.ts +3 -0
- package/src/common-ui/ui/dashboard/index.ts +3 -0
- package/src/common-ui/ui/dashboard/typing.ts +50 -0
- package/src/common-ui/ui/dashboard/workbench/index.ts +5 -0
- package/src/common-ui/ui/dashboard/workbench/workbench-header.vue +48 -0
- package/src/common-ui/ui/dashboard/workbench/workbench-project.vue +73 -0
- package/src/common-ui/ui/dashboard/workbench/workbench-quick-nav.vue +56 -0
- package/src/common-ui/ui/dashboard/workbench/workbench-todo.vue +63 -0
- package/src/common-ui/ui/dashboard/workbench/workbench-trends.vue +64 -0
- package/src/common-ui/ui/fallback/fallback.ts +25 -0
- package/src/common-ui/ui/fallback/fallback.vue +164 -0
- package/src/common-ui/ui/fallback/icons/icon-403.vue +151 -0
- package/src/common-ui/ui/fallback/icons/icon-404.vue +154 -0
- package/src/common-ui/ui/fallback/icons/icon-500.vue +215 -0
- package/src/common-ui/ui/fallback/icons/icon-coming-soon.vue +262 -0
- package/src/common-ui/ui/fallback/icons/icon-offline.vue +112 -0
- package/src/common-ui/ui/fallback/icons/warning.svg +1 -0
- package/src/common-ui/ui/fallback/index.ts +2 -0
- package/src/common-ui/ui/index.ts +5 -0
- package/src/common-ui/ui/profile/base-setting.vue +58 -0
- package/src/common-ui/ui/profile/index.ts +6 -0
- package/src/common-ui/ui/profile/notification-setting.vue +52 -0
- package/src/common-ui/ui/profile/password-setting.vue +59 -0
- package/src/common-ui/ui/profile/profile.vue +64 -0
- package/src/common-ui/ui/profile/security-setting.vue +52 -0
- package/src/common-ui/ui/profile/types.ts +21 -0
- package/src/configs/subApp.ts +1 -0
- package/src/entrance/libProperties.ts +34 -0
- package/src/entrance/libTypes.js +9 -0
- package/src/form-ui/components/form-actions.vue +178 -0
- package/src/form-ui/components/form-field-array.vue +234 -0
- package/src/form-ui/config.ts +117 -0
- package/src/form-ui/deprecation.ts +18 -0
- package/src/form-ui/field-name.ts +106 -0
- package/src/form-ui/form-api.ts +766 -0
- package/src/form-ui/form-codec.ts +40 -0
- package/src/form-ui/form-render/context.ts +25 -0
- package/src/form-ui/form-render/dependencies.ts +305 -0
- package/src/form-ui/form-render/expandable.ts +105 -0
- package/src/form-ui/form-render/form-field.vue +644 -0
- package/src/form-ui/form-render/form-group.vue +126 -0
- package/src/form-ui/form-render/form-label.vue +35 -0
- package/src/form-ui/form-render/form.vue +205 -0
- package/src/form-ui/form-render/helper.ts +65 -0
- package/src/form-ui/form-render/index.ts +3 -0
- package/src/form-ui/form-render/schema.ts +534 -0
- package/src/form-ui/form-render/utils.ts +170 -0
- package/src/form-ui/form-runtime-field.ts +82 -0
- package/src/form-ui/form-runtime.ts +325 -0
- package/src/form-ui/form-value-transform.ts +235 -0
- package/src/form-ui/index.ts +39 -0
- package/src/form-ui/rule-registry.ts +17 -0
- package/src/form-ui/types.ts +1054 -0
- package/src/form-ui/use-custom-field-value.ts +124 -0
- package/src/form-ui/use-form-context.ts +148 -0
- package/src/form-ui/use-vben-form.ts +81 -0
- package/src/form-ui/vben-form.vue +79 -0
- package/src/form-ui/vben-use-form.vue +187 -0
- package/src/layout-ui/components/index.ts +5 -0
- package/src/layout-ui/components/layout-content.vue +75 -0
- package/src/layout-ui/components/layout-footer.vue +46 -0
- package/src/layout-ui/components/layout-header.vue +89 -0
- package/src/layout-ui/components/layout-sidebar.vue +484 -0
- package/src/layout-ui/components/layout-tabbar.vue +30 -0
- package/src/layout-ui/components/widgets/index.ts +2 -0
- package/src/layout-ui/components/widgets/sidebar-collapse-button.vue +25 -0
- package/src/layout-ui/components/widgets/sidebar-fixed-button.vue +27 -0
- package/src/layout-ui/header-scroll-state.ts +28 -0
- package/src/layout-ui/hooks/use-layout.ts +53 -0
- package/src/layout-ui/hooks/use-sidebar-drag.ts +152 -0
- package/src/layout-ui/index.ts +2 -0
- package/src/layout-ui/vben-layout.ts +188 -0
- package/src/layout-ui/vben-layout.vue +768 -0
- package/src/layouts/authentication/authentication.vue +196 -0
- package/src/layouts/authentication/form.vue +38 -0
- package/src/layouts/authentication/icons/slogan.vue +4568 -0
- package/src/layouts/authentication/index.ts +2 -0
- package/src/layouts/authentication/toolbar.vue +49 -0
- package/src/layouts/authentication/types.ts +1 -0
- package/src/layouts/basic/README.md +7 -0
- package/src/layouts/basic/content/content-spinner.vue +12 -0
- package/src/layouts/basic/content/content.vue +112 -0
- package/src/layouts/basic/content/index.ts +2 -0
- package/src/layouts/basic/content/use-content-spinner.ts +98 -0
- package/src/layouts/basic/copyright/copyright.vue +49 -0
- package/src/layouts/basic/copyright/index.ts +1 -0
- package/src/layouts/basic/footer/footer.vue +11 -0
- package/src/layouts/basic/footer/index.ts +1 -0
- package/src/layouts/basic/header/header.vue +408 -0
- package/src/layouts/basic/header/index.ts +1 -0
- package/src/layouts/basic/index.ts +1 -0
- package/src/layouts/basic/layout.vue +478 -0
- package/src/layouts/basic/menu/extra-menu.vue +41 -0
- package/src/layouts/basic/menu/index.ts +5 -0
- package/src/layouts/basic/menu/menu.vue +45 -0
- package/src/layouts/basic/menu/mixed-menu.vue +46 -0
- package/src/layouts/basic/menu/use-extra-menu.ts +179 -0
- package/src/layouts/basic/menu/use-mixed-menu.ts +181 -0
- package/src/layouts/basic/menu/use-navigation.ts +74 -0
- package/src/layouts/basic/tabbar/index.ts +2 -0
- package/src/layouts/basic/tabbar/tabbar.vue +84 -0
- package/src/layouts/basic/tabbar/use-tabbar.ts +229 -0
- package/src/layouts/basic/use-layout-scroll.ts +85 -0
- package/src/layouts/hooks/index.ts +98 -0
- package/src/layouts/iframe/iframe-router-view.vue +86 -0
- package/src/layouts/iframe/iframe-view.vue +3 -0
- package/src/layouts/iframe/index.ts +2 -0
- package/src/layouts/index.ts +4 -0
- package/src/layouts/route-cached/cached-tab-keys.ts +13 -0
- package/src/layouts/route-cached/index.ts +2 -0
- package/src/layouts/route-cached/route-cached-page.vue +36 -0
- package/src/layouts/route-cached/route-cached-view.vue +97 -0
- package/src/layouts/widgets/breadcrumb-routes.ts +41 -0
- package/src/layouts/widgets/breadcrumb.vue +78 -0
- package/src/layouts/widgets/check-updates/check-updates.vue +136 -0
- package/src/layouts/widgets/check-updates/index.ts +1 -0
- package/src/layouts/widgets/color-toggle.vue +64 -0
- package/src/layouts/widgets/global-search/global-search.vue +173 -0
- package/src/layouts/widgets/global-search/index.ts +1 -0
- package/src/layouts/widgets/global-search/search-panel.vue +299 -0
- package/src/layouts/widgets/index.ts +12 -0
- package/src/layouts/widgets/language-toggle.vue +48 -0
- package/src/layouts/widgets/layout-toggle.vue +64 -0
- package/src/layouts/widgets/lock-screen/index.ts +2 -0
- package/src/layouts/widgets/lock-screen/lock-screen-modal.vue +110 -0
- package/src/layouts/widgets/lock-screen/lock-screen.vue +167 -0
- package/src/layouts/widgets/notification/index.ts +3 -0
- package/src/layouts/widgets/notification/notification.vue +210 -0
- package/src/layouts/widgets/notification/types.ts +19 -0
- package/src/layouts/widgets/preferences/blocks/block.vue +22 -0
- package/src/layouts/widgets/preferences/blocks/checkbox-item.vue +63 -0
- package/src/layouts/widgets/preferences/blocks/custom/custom.vue +121 -0
- package/src/layouts/widgets/preferences/blocks/draggable-list.vue +138 -0
- package/src/layouts/widgets/preferences/blocks/general/animation.vue +56 -0
- package/src/layouts/widgets/preferences/blocks/general/general.vue +94 -0
- package/src/layouts/widgets/preferences/blocks/index.ts +21 -0
- package/src/layouts/widgets/preferences/blocks/input-item.vue +71 -0
- package/src/layouts/widgets/preferences/blocks/layout/breadcrumb.vue +61 -0
- package/src/layouts/widgets/preferences/blocks/layout/content.vue +53 -0
- package/src/layouts/widgets/preferences/blocks/layout/copyright.vue +56 -0
- package/src/layouts/widgets/preferences/blocks/layout/footer.vue +17 -0
- package/src/layouts/widgets/preferences/blocks/layout/header.vue +78 -0
- package/src/layouts/widgets/preferences/blocks/layout/layout.vue +112 -0
- package/src/layouts/widgets/preferences/blocks/layout/navigation.vue +50 -0
- package/src/layouts/widgets/preferences/blocks/layout/sidebar.vue +108 -0
- package/src/layouts/widgets/preferences/blocks/layout/tabbar.vue +106 -0
- package/src/layouts/widgets/preferences/blocks/layout/widget.vue +188 -0
- package/src/layouts/widgets/preferences/blocks/number-field-item.vue +74 -0
- package/src/layouts/widgets/preferences/blocks/select-item.vue +76 -0
- package/src/layouts/widgets/preferences/blocks/shortcut-keys/global.vue +55 -0
- package/src/layouts/widgets/preferences/blocks/switch-item.vue +55 -0
- package/src/layouts/widgets/preferences/blocks/theme/builtin.vue +162 -0
- package/src/layouts/widgets/preferences/blocks/theme/color-mode.vue +26 -0
- package/src/layouts/widgets/preferences/blocks/theme/font-size.vue +62 -0
- package/src/layouts/widgets/preferences/blocks/theme/radius.vue +38 -0
- package/src/layouts/widgets/preferences/blocks/theme/theme.vue +114 -0
- package/src/layouts/widgets/preferences/blocks/toggle-item.vue +46 -0
- package/src/layouts/widgets/preferences/icons/content-compact.vue +119 -0
- package/src/layouts/widgets/preferences/icons/full-content.vue +50 -0
- package/src/layouts/widgets/preferences/icons/header-mixed-nav.vue +202 -0
- package/src/layouts/widgets/preferences/icons/header-nav.vue +119 -0
- package/src/layouts/widgets/preferences/icons/header-sidebar-nav.vue +177 -0
- package/src/layouts/widgets/preferences/icons/index.ts +12 -0
- package/src/layouts/widgets/preferences/icons/mixed-nav.vue +161 -0
- package/src/layouts/widgets/preferences/icons/setting.vue +12 -0
- package/src/layouts/widgets/preferences/icons/sidebar-mixed-nav.vue +173 -0
- package/src/layouts/widgets/preferences/icons/sidebar-nav.vue +153 -0
- package/src/layouts/widgets/preferences/index.ts +3 -0
- package/src/layouts/widgets/preferences/preferences-button.vue +31 -0
- package/src/layouts/widgets/preferences/preferences-drawer.vue +674 -0
- package/src/layouts/widgets/preferences/preferences.vue +93 -0
- package/src/layouts/widgets/preferences/use-open-preferences.ts +16 -0
- package/src/layouts/widgets/theme-toggle/index.ts +1 -0
- package/src/layouts/widgets/theme-toggle/theme-button.vue +164 -0
- package/src/layouts/widgets/theme-toggle/theme-toggle.vue +83 -0
- package/src/layouts/widgets/timezone/index.ts +1 -0
- package/src/layouts/widgets/timezone/timezone-button.vue +92 -0
- package/src/layouts/widgets/user-dropdown/index.ts +1 -0
- package/src/layouts/widgets/user-dropdown/user-dropdown.vue +578 -0
- package/src/main.ts +17 -0
- package/src/menu-ui/components/collapse-transition.vue +96 -0
- package/src/menu-ui/components/index.ts +4 -0
- package/src/menu-ui/components/menu-badge-dot.vue +28 -0
- package/src/menu-ui/components/menu-badge.vue +57 -0
- package/src/menu-ui/components/menu-item.vue +140 -0
- package/src/menu-ui/components/menu.vue +880 -0
- package/src/menu-ui/components/normal-menu/index.ts +2 -0
- package/src/menu-ui/components/normal-menu/normal-menu.ts +27 -0
- package/src/menu-ui/components/normal-menu/normal-menu.vue +162 -0
- package/src/menu-ui/components/sub-menu-content.vue +105 -0
- package/src/menu-ui/components/sub-menu.vue +276 -0
- package/src/menu-ui/hooks/index.ts +2 -0
- package/src/menu-ui/hooks/use-menu-context.ts +55 -0
- package/src/menu-ui/hooks/use-menu-scroll.ts +46 -0
- package/src/menu-ui/hooks/use-menu.ts +48 -0
- package/src/menu-ui/index.ts +4 -0
- package/src/menu-ui/menu.vue +32 -0
- package/src/menu-ui/sub-menu.vue +71 -0
- package/src/menu-ui/types.ts +154 -0
- package/src/menu-ui/utils/index.ts +52 -0
- package/src/plugins/echarts/README.md +41 -0
- package/src/plugins/echarts/echarts-ui.vue +15 -0
- package/src/plugins/echarts/echarts.ts +40 -0
- package/src/plugins/echarts/index.ts +4 -0
- package/src/plugins/echarts/types.ts +28 -0
- package/src/plugins/echarts/use-echarts.ts +213 -0
- package/src/plugins/index.ts +2 -0
- package/src/plugins/motion/README.md +26 -0
- package/src/plugins/motion/index.ts +8 -0
- package/src/plugins/motion/types.ts +26 -0
- package/src/plugins/plugins-context.ts +39 -0
- package/src/plugins/tiptap/extensions.ts +452 -0
- package/src/plugins/tiptap/index.ts +4 -0
- package/src/plugins/tiptap/preview.vue +34 -0
- package/src/plugins/tiptap/style.css +112 -0
- package/src/plugins/tiptap/tiptap.vue +324 -0
- package/src/plugins/tiptap/toolbar.ts +374 -0
- package/src/plugins/tiptap/types.ts +87 -0
- package/src/plugins/tiptap/use-tiptap-toolbar.ts +176 -0
- package/src/plugins/types.ts +24 -0
- package/src/plugins/vxe-table/README.md +50 -0
- package/src/plugins/vxe-table/api.ts +202 -0
- package/src/plugins/vxe-table/extends.ts +150 -0
- package/src/plugins/vxe-table/index.ts +10 -0
- package/src/plugins/vxe-table/init.ts +151 -0
- package/src/plugins/vxe-table/style.css +128 -0
- package/src/plugins/vxe-table/types.ts +116 -0
- package/src/plugins/vxe-table/use-vxe-grid.ts +86 -0
- package/src/plugins/vxe-table/use-vxe-grid.vue +564 -0
- package/src/plugins/vxe-table/viewed-row/index.ts +8 -0
- package/src/plugins/vxe-table/viewed-row/types.ts +84 -0
- package/src/plugins/vxe-table/viewed-row/use-viewed-row.ts +590 -0
- package/src/popup-ui/alert/AlertBuilder.ts +244 -0
- package/src/popup-ui/alert/alert.ts +101 -0
- package/src/popup-ui/alert/alert.vue +220 -0
- package/src/popup-ui/alert/index.ts +14 -0
- package/src/popup-ui/drawer/drawer-api.ts +178 -0
- package/src/popup-ui/drawer/drawer.ts +192 -0
- package/src/popup-ui/drawer/drawer.vue +359 -0
- package/src/popup-ui/drawer/index.ts +7 -0
- package/src/popup-ui/drawer/use-drawer.ts +210 -0
- package/src/popup-ui/index.ts +3 -0
- package/src/popup-ui/modal/index.ts +7 -0
- package/src/popup-ui/modal/modal-api.ts +191 -0
- package/src/popup-ui/modal/modal.ts +212 -0
- package/src/popup-ui/modal/modal.vue +395 -0
- package/src/popup-ui/modal/use-modal-draggable.ts +141 -0
- package/src/popup-ui/modal/use-modal.ts +222 -0
- package/src/shadcn-ui/assets/index.css +1 -0
- package/src/shadcn-ui/components/avatar/avatar.vue +76 -0
- package/src/shadcn-ui/components/avatar/index.ts +1 -0
- package/src/shadcn-ui/components/back-top/back-top.vue +43 -0
- package/src/shadcn-ui/components/back-top/backtop.ts +38 -0
- package/src/shadcn-ui/components/back-top/index.ts +1 -0
- package/src/shadcn-ui/components/back-top/use-backtop.ts +45 -0
- package/src/shadcn-ui/components/breadcrumb/breadcrumb-background.vue +111 -0
- package/src/shadcn-ui/components/breadcrumb/breadcrumb-view.vue +39 -0
- package/src/shadcn-ui/components/breadcrumb/breadcrumb.vue +98 -0
- package/src/shadcn-ui/components/breadcrumb/index.ts +3 -0
- package/src/shadcn-ui/components/breadcrumb/types.ts +17 -0
- package/src/shadcn-ui/components/button/button-group.vue +98 -0
- package/src/shadcn-ui/components/button/button.ts +55 -0
- package/src/shadcn-ui/components/button/button.vue +42 -0
- package/src/shadcn-ui/components/button/check-button-group.vue +196 -0
- package/src/shadcn-ui/components/button/icon-button.vue +78 -0
- package/src/shadcn-ui/components/button/index.ts +5 -0
- package/src/shadcn-ui/components/checkbox/checkbox.vue +26 -0
- package/src/shadcn-ui/components/checkbox/index.ts +1 -0
- package/src/shadcn-ui/components/collapsible/collapsible-params-item.vue +123 -0
- package/src/shadcn-ui/components/collapsible/collapsible-params.vue +268 -0
- package/src/shadcn-ui/components/collapsible/collapsible.vue +79 -0
- package/src/shadcn-ui/components/collapsible/index.ts +4 -0
- package/src/shadcn-ui/components/collapsible/type.ts +22 -0
- package/src/shadcn-ui/components/context-menu/context-menu.vue +128 -0
- package/src/shadcn-ui/components/context-menu/index.ts +3 -0
- package/src/shadcn-ui/components/context-menu/interface.ts +42 -0
- package/src/shadcn-ui/components/count-to-animator/count-to-animator.vue +128 -0
- package/src/shadcn-ui/components/count-to-animator/index.ts +1 -0
- package/src/shadcn-ui/components/descriptions/descriptions-cell.vue +129 -0
- package/src/shadcn-ui/components/descriptions/descriptions-item.vue +57 -0
- package/src/shadcn-ui/components/descriptions/descriptions-row.vue +112 -0
- package/src/shadcn-ui/components/descriptions/descriptions.vue +91 -0
- package/src/shadcn-ui/components/descriptions/index.ts +4 -0
- package/src/shadcn-ui/components/descriptions/types.ts +93 -0
- package/src/shadcn-ui/components/descriptions/use-descriptions.ts +216 -0
- package/src/shadcn-ui/components/dropdown-menu/dropdown-menu.vue +49 -0
- package/src/shadcn-ui/components/dropdown-menu/dropdown-radio-menu.vue +52 -0
- package/src/shadcn-ui/components/dropdown-menu/index.ts +4 -0
- package/src/shadcn-ui/components/dropdown-menu/interface.ts +32 -0
- package/src/shadcn-ui/components/expandable-arrow/expandable-arrow.vue +31 -0
- package/src/shadcn-ui/components/expandable-arrow/index.ts +1 -0
- package/src/shadcn-ui/components/full-screen/full-screen.vue +41 -0
- package/src/shadcn-ui/components/full-screen/index.ts +1 -0
- package/src/shadcn-ui/components/hover-card/hover-card.vue +55 -0
- package/src/shadcn-ui/components/hover-card/index.ts +2 -0
- package/src/shadcn-ui/components/icon/icon.vue +35 -0
- package/src/shadcn-ui/components/icon/index.ts +1 -0
- package/src/shadcn-ui/components/index.ts +26 -0
- package/src/shadcn-ui/components/input-password/index.ts +1 -0
- package/src/shadcn-ui/components/input-password/input-password.vue +57 -0
- package/src/shadcn-ui/components/input-password/password-strength.vue +66 -0
- package/src/shadcn-ui/components/logo/index.ts +1 -0
- package/src/shadcn-ui/components/logo/logo.vue +152 -0
- package/src/shadcn-ui/components/pin-input/index.ts +3 -0
- package/src/shadcn-ui/components/pin-input/input.vue +122 -0
- package/src/shadcn-ui/components/pin-input/types.ts +30 -0
- package/src/shadcn-ui/components/popover/index.ts +1 -0
- package/src/shadcn-ui/components/popover/popover.vue +60 -0
- package/src/shadcn-ui/components/render-content/index.ts +1 -0
- package/src/shadcn-ui/components/render-content/render-content.vue +59 -0
- package/src/shadcn-ui/components/scrollbar/index.ts +1 -0
- package/src/shadcn-ui/components/scrollbar/scrollbar.vue +165 -0
- package/src/shadcn-ui/components/segmented/index.ts +3 -0
- package/src/shadcn-ui/components/segmented/segmented.vue +75 -0
- package/src/shadcn-ui/components/segmented/tabs-indicator.vue +37 -0
- package/src/shadcn-ui/components/segmented/types.ts +6 -0
- package/src/shadcn-ui/components/select/index.ts +1 -0
- package/src/shadcn-ui/components/select/select.vue +57 -0
- package/src/shadcn-ui/components/spine-text/index.ts +1 -0
- package/src/shadcn-ui/components/spine-text/spine-text.vue +49 -0
- package/src/shadcn-ui/components/spinner/index.ts +2 -0
- package/src/shadcn-ui/components/spinner/loading.vue +140 -0
- package/src/shadcn-ui/components/spinner/spinner.vue +138 -0
- package/src/shadcn-ui/components/table-action/action-dropdown-item.vue +116 -0
- package/src/shadcn-ui/components/table-action/action-item.vue +98 -0
- package/src/shadcn-ui/components/table-action/index.ts +3 -0
- package/src/shadcn-ui/components/table-action/table-action.vue +218 -0
- package/src/shadcn-ui/components/table-action/types.ts +75 -0
- package/src/shadcn-ui/components/tooltip/help-tooltip.vue +31 -0
- package/src/shadcn-ui/components/tooltip/index.ts +2 -0
- package/src/shadcn-ui/components/tooltip/tooltip.vue +44 -0
- package/src/shadcn-ui/components.json +15 -0
- package/src/shadcn-ui/index.ts +39 -0
- package/src/shadcn-ui/ui/accordion/Accordion.vue +16 -0
- package/src/shadcn-ui/ui/accordion/AccordionContent.vue +28 -0
- package/src/shadcn-ui/ui/accordion/AccordionItem.vue +29 -0
- package/src/shadcn-ui/ui/accordion/AccordionTrigger.vue +39 -0
- package/src/shadcn-ui/ui/accordion/index.ts +4 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialog.vue +20 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogAction.vue +13 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogCancel.vue +13 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogContent.vue +101 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogDescription.vue +28 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogFooter.vue +20 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogHeader.vue +18 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogOverlay.vue +31 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogTitle.vue +26 -0
- package/src/shadcn-ui/ui/alert-dialog/AlertDialogTrigger.vue +13 -0
- package/src/shadcn-ui/ui/alert-dialog/index.ts +9 -0
- package/src/shadcn-ui/ui/avatar/Avatar.vue +25 -0
- package/src/shadcn-ui/ui/avatar/AvatarFallback.vue +31 -0
- package/src/shadcn-ui/ui/avatar/AvatarImage.vue +17 -0
- package/src/shadcn-ui/ui/avatar/index.ts +3 -0
- package/src/shadcn-ui/ui/badge/Badge.vue +33 -0
- package/src/shadcn-ui/ui/badge/badge.ts +25 -0
- package/src/shadcn-ui/ui/badge/index.ts +3 -0
- package/src/shadcn-ui/ui/breadcrumb/Breadcrumb.vue +13 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbEllipsis.vue +25 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbItem.vue +18 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbLink.vue +27 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbList.vue +23 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbPage.vue +21 -0
- package/src/shadcn-ui/ui/breadcrumb/BreadcrumbSeparator.vue +24 -0
- package/src/shadcn-ui/ui/breadcrumb/index.ts +7 -0
- package/src/shadcn-ui/ui/button/Button.vue +36 -0
- package/src/shadcn-ui/ui/button/button.ts +35 -0
- package/src/shadcn-ui/ui/button/index.ts +3 -0
- package/src/shadcn-ui/ui/card/Card.vue +23 -0
- package/src/shadcn-ui/ui/card/CardAction.vue +23 -0
- package/src/shadcn-ui/ui/card/CardContent.vue +15 -0
- package/src/shadcn-ui/ui/card/CardDescription.vue +18 -0
- package/src/shadcn-ui/ui/card/CardFooter.vue +18 -0
- package/src/shadcn-ui/ui/card/CardHeader.vue +23 -0
- package/src/shadcn-ui/ui/card/CardTitle.vue +18 -0
- package/src/shadcn-ui/ui/card/index.ts +7 -0
- package/src/shadcn-ui/ui/checkbox/Checkbox.vue +49 -0
- package/src/shadcn-ui/ui/checkbox/index.ts +1 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenu.vue +18 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuCheckboxItem.vue +51 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuContent.vue +44 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuGroup.vue +13 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuItem.vue +45 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuLabel.vue +32 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuPortal.vue +13 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuRadioGroup.vue +22 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuRadioItem.vue +51 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuSeparator.vue +24 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuShortcut.vue +20 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuSub.vue +16 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuSubContent.vue +37 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuSubTrigger.vue +39 -0
- package/src/shadcn-ui/ui/context-menu/ContextMenuTrigger.vue +15 -0
- package/src/shadcn-ui/ui/context-menu/index.ts +14 -0
- package/src/shadcn-ui/ui/dialog/Dialog.vue +16 -0
- package/src/shadcn-ui/ui/dialog/DialogClose.vue +13 -0
- package/src/shadcn-ui/ui/dialog/DialogContent.vue +149 -0
- package/src/shadcn-ui/ui/dialog/DialogDescription.vue +28 -0
- package/src/shadcn-ui/ui/dialog/DialogFooter.vue +33 -0
- package/src/shadcn-ui/ui/dialog/DialogHeader.vue +18 -0
- package/src/shadcn-ui/ui/dialog/DialogOverlay.vue +34 -0
- package/src/shadcn-ui/ui/dialog/DialogScrollContent.vue +69 -0
- package/src/shadcn-ui/ui/dialog/DialogTitle.vue +28 -0
- package/src/shadcn-ui/ui/dialog/DialogTrigger.vue +13 -0
- package/src/shadcn-ui/ui/dialog/index.ts +10 -0
- package/src/shadcn-ui/ui/dialog/use-dialog-state-events.ts +84 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenu.vue +20 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuCheckboxItem.vue +51 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuContent.vue +50 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuGroup.vue +13 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuItem.vue +44 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuLabel.vue +30 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuRadioGroup.vue +22 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuRadioItem.vue +52 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuSeparator.vue +26 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuShortcut.vue +20 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuSub.vue +20 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuSubContent.vue +37 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuSubTrigger.vue +38 -0
- package/src/shadcn-ui/ui/dropdown-menu/DropdownMenuTrigger.vue +18 -0
- package/src/shadcn-ui/ui/dropdown-menu/index.ts +16 -0
- package/src/shadcn-ui/ui/form/FormControl.vue +20 -0
- package/src/shadcn-ui/ui/form/FormDescription.vue +23 -0
- package/src/shadcn-ui/ui/form/FormField.vue +35 -0
- package/src/shadcn-ui/ui/form/FormItem.vue +24 -0
- package/src/shadcn-ui/ui/form/FormLabel.vue +25 -0
- package/src/shadcn-ui/ui/form/FormMessage.vue +24 -0
- package/src/shadcn-ui/ui/form/index.ts +10 -0
- package/src/shadcn-ui/ui/form/injectionKeys.ts +16 -0
- package/src/shadcn-ui/ui/form/useFormField.ts +35 -0
- package/src/shadcn-ui/ui/hover-card/HoverCard.vue +16 -0
- package/src/shadcn-ui/ui/hover-card/HoverCardContent.vue +42 -0
- package/src/shadcn-ui/ui/hover-card/HoverCardTrigger.vue +13 -0
- package/src/shadcn-ui/ui/hover-card/index.ts +3 -0
- package/src/shadcn-ui/ui/index.ts +32 -0
- package/src/shadcn-ui/ui/input/Input.vue +54 -0
- package/src/shadcn-ui/ui/input/index.ts +1 -0
- package/src/shadcn-ui/ui/label/Label.vue +29 -0
- package/src/shadcn-ui/ui/label/index.ts +1 -0
- package/src/shadcn-ui/ui/number-field/NumberField.vue +29 -0
- package/src/shadcn-ui/ui/number-field/NumberFieldContent.vue +22 -0
- package/src/shadcn-ui/ui/number-field/NumberFieldDecrement.vue +36 -0
- package/src/shadcn-ui/ui/number-field/NumberFieldIncrement.vue +36 -0
- package/src/shadcn-ui/ui/number-field/NumberFieldInput.vue +23 -0
- package/src/shadcn-ui/ui/number-field/index.ts +5 -0
- package/src/shadcn-ui/ui/pagination/Pagination.vue +31 -0
- package/src/shadcn-ui/ui/pagination/PaginationContent.vue +27 -0
- package/src/shadcn-ui/ui/pagination/PaginationEllipsis.vue +29 -0
- package/src/shadcn-ui/ui/pagination/PaginationFirst.vue +50 -0
- package/src/shadcn-ui/ui/pagination/PaginationItem.vue +47 -0
- package/src/shadcn-ui/ui/pagination/PaginationLast.vue +50 -0
- package/src/shadcn-ui/ui/pagination/PaginationNext.vue +50 -0
- package/src/shadcn-ui/ui/pagination/PaginationPrevious.vue +50 -0
- package/src/shadcn-ui/ui/pagination/index.ts +8 -0
- package/src/shadcn-ui/ui/pin-input/PinInput.vue +38 -0
- package/src/shadcn-ui/ui/pin-input/PinInputGroup.vue +26 -0
- package/src/shadcn-ui/ui/pin-input/PinInputSeparator.vue +17 -0
- package/src/shadcn-ui/ui/pin-input/PinInputSlot.vue +31 -0
- package/src/shadcn-ui/ui/pin-input/index.ts +4 -0
- package/src/shadcn-ui/ui/popover/Popover.vue +16 -0
- package/src/shadcn-ui/ui/popover/PopoverAnchor.vue +13 -0
- package/src/shadcn-ui/ui/popover/PopoverContent.vue +44 -0
- package/src/shadcn-ui/ui/popover/PopoverTrigger.vue +13 -0
- package/src/shadcn-ui/ui/popover/index.ts +4 -0
- package/src/shadcn-ui/ui/progress/Progress.vue +58 -0
- package/src/shadcn-ui/ui/progress/index.ts +1 -0
- package/src/shadcn-ui/ui/radio-group/RadioGroup.vue +30 -0
- package/src/shadcn-ui/ui/radio-group/RadioGroupItem.vue +43 -0
- package/src/shadcn-ui/ui/radio-group/index.ts +2 -0
- package/src/shadcn-ui/ui/resizable/ResizableHandle.vue +48 -0
- package/src/shadcn-ui/ui/resizable/ResizablePanel.vue +32 -0
- package/src/shadcn-ui/ui/resizable/ResizablePanelGroup.vue +32 -0
- package/src/shadcn-ui/ui/resizable/index.ts +3 -0
- package/src/shadcn-ui/ui/scroll-area/ScrollArea.vue +40 -0
- package/src/shadcn-ui/ui/scroll-area/ScrollBar.vue +41 -0
- package/src/shadcn-ui/ui/scroll-area/index.ts +2 -0
- package/src/shadcn-ui/ui/select/Select.vue +16 -0
- package/src/shadcn-ui/ui/select/SelectContent.vue +65 -0
- package/src/shadcn-ui/ui/select/SelectGroup.vue +13 -0
- package/src/shadcn-ui/ui/select/SelectItem.vue +49 -0
- package/src/shadcn-ui/ui/select/SelectItemText.vue +13 -0
- package/src/shadcn-ui/ui/select/SelectLabel.vue +22 -0
- package/src/shadcn-ui/ui/select/SelectScrollDownButton.vue +33 -0
- package/src/shadcn-ui/ui/select/SelectScrollUpButton.vue +33 -0
- package/src/shadcn-ui/ui/select/SelectSeparator.vue +24 -0
- package/src/shadcn-ui/ui/select/SelectTrigger.vue +43 -0
- package/src/shadcn-ui/ui/select/SelectValue.vue +13 -0
- package/src/shadcn-ui/ui/select/index.ts +11 -0
- package/src/shadcn-ui/ui/separator/Separator.vue +33 -0
- package/src/shadcn-ui/ui/separator/index.ts +1 -0
- package/src/shadcn-ui/ui/sheet/Sheet.vue +16 -0
- package/src/shadcn-ui/ui/sheet/SheetClose.vue +13 -0
- package/src/shadcn-ui/ui/sheet/SheetContent.vue +110 -0
- package/src/shadcn-ui/ui/sheet/SheetDescription.vue +26 -0
- package/src/shadcn-ui/ui/sheet/SheetFooter.vue +16 -0
- package/src/shadcn-ui/ui/sheet/SheetHeader.vue +16 -0
- package/src/shadcn-ui/ui/sheet/SheetOverlay.vue +11 -0
- package/src/shadcn-ui/ui/sheet/SheetTitle.vue +26 -0
- package/src/shadcn-ui/ui/sheet/SheetTrigger.vue +13 -0
- package/src/shadcn-ui/ui/sheet/index.ts +10 -0
- package/src/shadcn-ui/ui/sheet/sheet.ts +24 -0
- package/src/shadcn-ui/ui/switch/Switch.vue +45 -0
- package/src/shadcn-ui/ui/switch/index.ts +1 -0
- package/src/shadcn-ui/ui/tabs/Tabs.vue +29 -0
- package/src/shadcn-ui/ui/tabs/TabsContent.vue +26 -0
- package/src/shadcn-ui/ui/tabs/TabsList.vue +31 -0
- package/src/shadcn-ui/ui/tabs/TabsTrigger.vue +33 -0
- package/src/shadcn-ui/ui/tabs/index.ts +5 -0
- package/src/shadcn-ui/ui/textarea/Textarea.vue +35 -0
- package/src/shadcn-ui/ui/textarea/index.ts +1 -0
- package/src/shadcn-ui/ui/toggle/Toggle.vue +45 -0
- package/src/shadcn-ui/ui/toggle/index.ts +2 -0
- package/src/shadcn-ui/ui/toggle/toggle.ts +27 -0
- package/src/shadcn-ui/ui/toggle-group/ToggleGroup.vue +64 -0
- package/src/shadcn-ui/ui/toggle-group/ToggleGroupItem.vue +56 -0
- package/src/shadcn-ui/ui/toggle-group/index.ts +2 -0
- package/src/shadcn-ui/ui/tooltip/Tooltip.vue +16 -0
- package/src/shadcn-ui/ui/tooltip/TooltipContent.vue +55 -0
- package/src/shadcn-ui/ui/tooltip/TooltipProvider.vue +13 -0
- package/src/shadcn-ui/ui/tooltip/TooltipTrigger.vue +13 -0
- package/src/shadcn-ui/ui/tooltip/index.ts +4 -0
- package/src/shadcn-ui/ui/tree/index.ts +4 -0
- package/src/shadcn-ui/ui/tree/tree.vue +689 -0
- package/src/shadcn-ui/ui/tree/types.ts +70 -0
- package/src/styles/index.css +9 -0
- package/src/tabs-ui/components/index.ts +2 -0
- package/src/tabs-ui/components/tabs/tabs.vue +150 -0
- package/src/tabs-ui/components/tabs-chrome/tabs.vue +211 -0
- package/src/tabs-ui/components/widgets/index.ts +3 -0
- package/src/tabs-ui/components/widgets/tool-more.vue +18 -0
- package/src/tabs-ui/components/widgets/tool-refresh.vue +18 -0
- package/src/tabs-ui/components/widgets/tool-screen.vue +19 -0
- package/src/tabs-ui/index.ts +3 -0
- package/src/tabs-ui/tabs-view.vue +106 -0
- package/src/tabs-ui/types.ts +73 -0
- package/src/tabs-ui/use-tabs-drag.ts +129 -0
- package/src/tabs-ui/use-tabs-view-scroll.ts +202 -0
- package/src/types/shims.d.ts +2 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
{
|
|
2
|
+
"app": {
|
|
3
|
+
"name": "comps-vben",
|
|
4
|
+
"app_group_name": "comps-vben",
|
|
5
|
+
"git_repo_url": "",
|
|
6
|
+
"online_version": "2026.11.8-2",
|
|
7
|
+
"build_version": "2026.11.8-2",
|
|
8
|
+
"platform": "unpkg",
|
|
9
|
+
"create_at": "2026-11-08T03:53:36.325Z"
|
|
10
|
+
},
|
|
11
|
+
"version": {
|
|
12
|
+
"plugin_ver": "5.4.3",
|
|
13
|
+
"extract_mode": "build",
|
|
14
|
+
"sub_app_name": "comps-vben",
|
|
15
|
+
"sub_app_version": "comps-vben@2026.11.8-2",
|
|
16
|
+
"version_tag": "2026.11.8-2",
|
|
17
|
+
"src_map": {
|
|
18
|
+
"webDirPath": "https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist",
|
|
19
|
+
"htmlIndexSrc": "https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/index.html",
|
|
20
|
+
"extractMode": "all",
|
|
21
|
+
"iframeSrc": "",
|
|
22
|
+
"chunkCssSrcList": [
|
|
23
|
+
"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/style-CcRbEt6_.css",
|
|
24
|
+
"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/\\assets\\style-CcRbEt6_.css"
|
|
25
|
+
],
|
|
26
|
+
"chunkJsSrcList": [
|
|
27
|
+
"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/index-DaBGAjzb.js",
|
|
28
|
+
"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/\\assets\\index-DaBGAjzb.js"
|
|
29
|
+
],
|
|
30
|
+
"staticCssSrcList": [
|
|
31
|
+
"https://unpkg.com/element-plus@2.14.5/dist/index.css"
|
|
32
|
+
],
|
|
33
|
+
"staticJsSrcList": [
|
|
34
|
+
"https://unpkg.com/vue@3.5.41/dist/vue.global.prod.js",
|
|
35
|
+
"https://unpkg.com/element-plus@2.14.5/dist/index.full.min.js",
|
|
36
|
+
"https://unpkg.com/vue-router@5.2.0/dist/vue-router.global.prod.js",
|
|
37
|
+
"https://unpkg.com/pinia@4.0.3/dist/pinia.iife.prod.js",
|
|
38
|
+
"https://unpkg.com/vue-i18n@11.4.10/dist/vue-i18n.global.prod.js"
|
|
39
|
+
],
|
|
40
|
+
"relativeCssSrcList": [],
|
|
41
|
+
"relativeJsSrcList": [],
|
|
42
|
+
"headAssetList": [
|
|
43
|
+
{
|
|
44
|
+
"tag": "staticScript",
|
|
45
|
+
"append": false,
|
|
46
|
+
"attrs": {
|
|
47
|
+
"src": "https://unpkg.com/vue@3.5.41/dist/vue.global.prod.js"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"tag": "staticScript",
|
|
52
|
+
"append": false,
|
|
53
|
+
"attrs": {
|
|
54
|
+
"src": "https://unpkg.com/element-plus@2.14.5/dist/index.full.min.js"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"tag": "staticScript",
|
|
59
|
+
"append": false,
|
|
60
|
+
"attrs": {
|
|
61
|
+
"src": "https://unpkg.com/vue-router@5.2.0/dist/vue-router.global.prod.js"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"tag": "staticScript",
|
|
66
|
+
"append": false,
|
|
67
|
+
"attrs": {
|
|
68
|
+
"src": "https://unpkg.com/pinia@4.0.3/dist/pinia.iife.prod.js"
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"tag": "staticScript",
|
|
73
|
+
"append": false,
|
|
74
|
+
"attrs": {
|
|
75
|
+
"src": "https://unpkg.com/vue-i18n@11.4.10/dist/vue-i18n.global.prod.js"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"tag": "staticLink",
|
|
80
|
+
"append": false,
|
|
81
|
+
"attrs": {
|
|
82
|
+
"href": "https://unpkg.com/element-plus@2.14.5/dist/index.css",
|
|
83
|
+
"rel": "stylesheet"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"tag": "script",
|
|
88
|
+
"append": true,
|
|
89
|
+
"attrs": {
|
|
90
|
+
"src": "https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/index-DaBGAjzb.js",
|
|
91
|
+
"type": "module",
|
|
92
|
+
"crossorigin": ""
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"tag": "link",
|
|
97
|
+
"append": true,
|
|
98
|
+
"attrs": {
|
|
99
|
+
"href": "https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/style-CcRbEt6_.css",
|
|
100
|
+
"rel": "stylesheet",
|
|
101
|
+
"crossorigin": ""
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
],
|
|
105
|
+
"bodyAssetList": [],
|
|
106
|
+
"otherSrcList": [
|
|
107
|
+
"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/\\index.html"
|
|
108
|
+
],
|
|
109
|
+
"srvModSrcList": [],
|
|
110
|
+
"srvModSrcIndex": ""
|
|
111
|
+
},
|
|
112
|
+
"html_content": "<!doctype html>\n<html lang=\"zh-CN\" class=\"hel-standalone\">\n <head>\n <meta charset=\"UTF-8\" />\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" />\n <title>comps-vben</title>\n <!--\n vue / element-plus / vue-router / pinia / vue-i18n 都被 external 成 window.*;\n 独立访问本页时由 CDN 提供运行时,data-helappend=\"0\" 让宿主解析本页时跳过这些脚\n 本,使用宿主自己的那一份,避免双实例。\n -->\n <script data-helappend=\"0\" src=\"https://unpkg.com/vue@3.5.41/dist/vue.global.prod.js\"></script>\n <script\n data-helappend=\"0\"\n src=\"https://unpkg.com/element-plus@2.14.5/dist/index.full.min.js\"\n ></script>\n <script\n data-helappend=\"0\"\n src=\"https://unpkg.com/vue-router@5.2.0/dist/vue-router.global.prod.js\"\n ></script>\n <script data-helappend=\"0\" src=\"https://unpkg.com/pinia@4.0.3/dist/pinia.iife.prod.js\"></script>\n <script\n data-helappend=\"0\"\n src=\"https://unpkg.com/vue-i18n@11.4.10/dist/vue-i18n.global.prod.js\"\n ></script>\n <link\n data-helappend=\"0\"\n rel=\"stylesheet\"\n href=\"https://unpkg.com/element-plus@2.14.5/dist/index.css\"\n />\n <script type=\"module\" crossorigin src=\"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/index-DaBGAjzb.js\"></script>\n <link rel=\"stylesheet\" crossorigin href=\"https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/style-CcRbEt6_.css\">\n </head>\n <body>\n <div id=\"app\"></div>\n </body>\n</html>\n",
|
|
113
|
+
"create_at": "2026-11-08T03:53:36.325Z",
|
|
114
|
+
"desc": "this version meta is created by hel-dev-utils@5.4.3"
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN" class="hel-standalone">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>comps-vben</title>
|
|
7
|
+
<!--
|
|
8
|
+
vue / element-plus / vue-router / pinia / vue-i18n 都被 external 成 window.*;
|
|
9
|
+
独立访问本页时由 CDN 提供运行时,data-helappend="0" 让宿主解析本页时跳过这些脚
|
|
10
|
+
本,使用宿主自己的那一份,避免双实例。
|
|
11
|
+
-->
|
|
12
|
+
<script data-helappend="0" src="https://unpkg.com/vue@3.5.41/dist/vue.global.prod.js"></script>
|
|
13
|
+
<script
|
|
14
|
+
data-helappend="0"
|
|
15
|
+
src="https://unpkg.com/element-plus@2.14.5/dist/index.full.min.js"
|
|
16
|
+
></script>
|
|
17
|
+
<script
|
|
18
|
+
data-helappend="0"
|
|
19
|
+
src="https://unpkg.com/vue-router@5.2.0/dist/vue-router.global.prod.js"
|
|
20
|
+
></script>
|
|
21
|
+
<script data-helappend="0" src="https://unpkg.com/pinia@4.0.3/dist/pinia.iife.prod.js"></script>
|
|
22
|
+
<script
|
|
23
|
+
data-helappend="0"
|
|
24
|
+
src="https://unpkg.com/vue-i18n@11.4.10/dist/vue-i18n.global.prod.js"
|
|
25
|
+
></script>
|
|
26
|
+
<link
|
|
27
|
+
data-helappend="0"
|
|
28
|
+
rel="stylesheet"
|
|
29
|
+
href="https://unpkg.com/element-plus@2.14.5/dist/index.css"
|
|
30
|
+
/>
|
|
31
|
+
<script type="module" crossorigin src="https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/index-DaBGAjzb.js"></script>
|
|
32
|
+
<link rel="stylesheet" crossorigin href="https://unpkg.com/@melt-js/comps-vben@2026.11.8-2/hel_dist/assets/style-CcRbEt6_.css">
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
<div id="app"></div>
|
|
36
|
+
</body>
|
|
37
|
+
</html>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('hel-lib-proxy')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', 'hel-lib-proxy'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["comps-vben"] = {}, global.HelLibProxy));
|
|
5
|
+
})(this, (function (exports, helLibProxy) { 'use strict';
|
|
6
|
+
|
|
7
|
+
const LIB_NAME = 'comps-vben';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* hel 消费方 npm 安装本包后 import 到的空壳代理,真正实现由 preFetchLib 注入。
|
|
11
|
+
*/
|
|
12
|
+
const dtlib = helLibProxy.exposeLib(LIB_NAME);
|
|
13
|
+
|
|
14
|
+
exports.default = dtlib;
|
|
15
|
+
exports.dtlib = dtlib;
|
|
16
|
+
|
|
17
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
18
|
+
|
|
19
|
+
}));
|
|
20
|
+
//# sourceMappingURL=entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sources":["../src/configs/subApp.ts","../src/entrance/libTypes.js"],"sourcesContent":["export const LIB_NAME = 'comps-vben';\n","import { exposeLib } from 'hel-lib-proxy';\nimport { LIB_NAME } from '../configs/subApp.ts';\n\n/**\n * hel 消费方 npm 安装本包后 import 到的空壳代理,真正实现由 preFetchLib 注入。\n */\nexport const dtlib = exposeLib(LIB_NAME);\n\nexport default dtlib;\n"],"names":["exposeLib"],"mappings":";;;;;;CAAO,MAAM,QAAQ,GAAG,YAAY;;CCGpC;CACA;CACA;AACY,OAAC,KAAK,GAAGA,qBAAS,CAAC,QAAQ;;;;;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { exposeLib } from 'hel-lib-proxy';
|
|
2
|
+
|
|
3
|
+
const LIB_NAME = 'comps-vben';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* hel 消费方 npm 安装本包后 import 到的空壳代理,真正实现由 preFetchLib 注入。
|
|
7
|
+
*/
|
|
8
|
+
const dtlib = exposeLib(LIB_NAME);
|
|
9
|
+
|
|
10
|
+
export { dtlib as default, dtlib };
|
|
11
|
+
//# sourceMappingURL=entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entry.js","sources":["../src/configs/subApp.ts","../src/entrance/libTypes.js"],"sourcesContent":["export const LIB_NAME = 'comps-vben';\n","import { exposeLib } from 'hel-lib-proxy';\nimport { LIB_NAME } from '../configs/subApp.ts';\n\n/**\n * hel 消费方 npm 安装本包后 import 到的空壳代理,真正实现由 preFetchLib 注入。\n */\nexport const dtlib = exposeLib(LIB_NAME);\n\nexport default dtlib;\n"],"names":[],"mappings":";;AAAO,MAAM,QAAQ,GAAG,YAAY;;ACGpC;AACA;AACA;AACY,MAAC,KAAK,GAAG,SAAS,CAAC,QAAQ;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,104 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melt-js/comps-vben",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"appGroupName": "comps-vben",
|
|
4
|
+
"version": "2026.11.8-2",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"description": "Vben Admin 5.8 组件层合集:shadcn-ui / form-ui / layout-ui / menu-ui / popup-ui / tabs-ui / common-ui / layouts / plugins,依赖 libs-vben",
|
|
7
|
+
"license": "MIT",
|
|
8
|
+
"exports": {
|
|
9
|
+
"./common-ui": "./src/common-ui/index.ts",
|
|
10
|
+
"./common-ui/es/loading": "./src/common-ui/components/loading/index.ts",
|
|
11
|
+
"./common-ui/es/tippy": "./src/common-ui/components/tippy/index.ts",
|
|
12
|
+
"./form-ui": "./src/form-ui/index.ts",
|
|
13
|
+
"./layout-ui": "./src/layout-ui/index.ts",
|
|
14
|
+
"./layouts": "./src/layouts/index.ts",
|
|
15
|
+
"./menu-ui": "./src/menu-ui/index.ts",
|
|
16
|
+
"./plugins": "./src/plugins/index.ts",
|
|
17
|
+
"./plugins/echarts": "./src/plugins/echarts/index.ts",
|
|
18
|
+
"./plugins/motion": "./src/plugins/motion/index.ts",
|
|
19
|
+
"./plugins/tiptap": "./src/plugins/tiptap/index.ts",
|
|
20
|
+
"./plugins/vxe-table": "./src/plugins/vxe-table/index.ts",
|
|
21
|
+
"./popup-ui": "./src/popup-ui/index.ts",
|
|
22
|
+
"./shadcn-ui": "./src/shadcn-ui/index.ts",
|
|
23
|
+
"./tabs-ui": "./src/tabs-ui/index.ts"
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"hel_dist",
|
|
27
|
+
"hel_proxy",
|
|
28
|
+
"hel_proxy_es",
|
|
29
|
+
"scripts",
|
|
30
|
+
"src",
|
|
31
|
+
"README.md",
|
|
32
|
+
"LICENSE"
|
|
33
|
+
],
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public",
|
|
36
|
+
"registry": "https://registry.npmjs.org",
|
|
37
|
+
"tag": "latest"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@tanstack/store": "0.11.2",
|
|
41
|
+
"@tanstack/vue-form": "1.33.5",
|
|
42
|
+
"@vueuse/core": "15.0.0",
|
|
43
|
+
"vue": "3.5.41",
|
|
44
|
+
"zod": "4.4.3",
|
|
45
|
+
"zod-defaults": "0.2.3",
|
|
46
|
+
"qs": "6.15.3",
|
|
47
|
+
"@lucide/vue": "1.60.0",
|
|
48
|
+
"class-variance-authority": "0.7.1",
|
|
49
|
+
"reka-ui": "2.10.4",
|
|
50
|
+
"@vueuse/integrations": "15.0.0",
|
|
51
|
+
"json-bigint": "1.0.0",
|
|
52
|
+
"qrcode": "1.5.4",
|
|
53
|
+
"tippy.js": "6.3.7",
|
|
54
|
+
"vue-json-pretty": "2.6.0",
|
|
55
|
+
"vue-router": "5.2.0",
|
|
56
|
+
"vue-tippy": "6.7.1",
|
|
57
|
+
"@types/sortablejs": "1.15.9",
|
|
58
|
+
"sortablejs": "1.15.7",
|
|
59
|
+
"@tiptap/core": "3.32.0",
|
|
60
|
+
"@tiptap/extension-highlight": "3.32.0",
|
|
61
|
+
"@tiptap/extension-image": "3.32.0",
|
|
62
|
+
"@tiptap/extension-link": "3.32.0",
|
|
63
|
+
"@tiptap/extension-placeholder": "3.32.0",
|
|
64
|
+
"@tiptap/extension-text-align": "3.32.0",
|
|
65
|
+
"@tiptap/extension-text-style": "3.32.0",
|
|
66
|
+
"@tiptap/pm": "3.32.0",
|
|
67
|
+
"@tiptap/starter-kit": "3.32.0",
|
|
68
|
+
"@tiptap/vue-3": "3.32.0",
|
|
69
|
+
"@vueuse/motion": "3.0.3",
|
|
70
|
+
"@vxe-ui/core": "4.5.2",
|
|
71
|
+
"echarts": "6.1.0",
|
|
72
|
+
"vxe-pc-ui": "4.20.33",
|
|
73
|
+
"vxe-table": "4.23.12",
|
|
74
|
+
"@melt-js/libs-vben": "2026.11.8-1"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@vueuse/core": ">=10.0.0",
|
|
78
|
+
"vue": ">=3.4.0",
|
|
79
|
+
"vue-router": ">=4.0.0"
|
|
80
|
+
},
|
|
81
|
+
"peerDependenciesMeta": {
|
|
82
|
+
"vue-router": {
|
|
83
|
+
"optional": true
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"main": "hel_proxy/entry.js",
|
|
87
|
+
"module": "hel_proxy_es/entry.js",
|
|
88
|
+
"unpkg": "hel_dist/index.html",
|
|
89
|
+
"scripts": {
|
|
90
|
+
"typecheck": "vue-tsc --noEmit",
|
|
91
|
+
"publish:stage": "pnpm run build && node scripts/publish-stage.mjs",
|
|
92
|
+
"dev": "vite",
|
|
93
|
+
"build": "pnpm run check_name && pnpm run build_dist && pnpm run build_meta && pnpm run build_proxy",
|
|
94
|
+
"build:local": "cross-env HEL_APP_HOME_PAGE=http://localhost:20090 pnpm run build",
|
|
95
|
+
"build_dist": "vite build",
|
|
96
|
+
"build_meta": "node scripts/meta.mjs",
|
|
97
|
+
"build_proxy": "pnpm run build_proxy_umd && pnpm run build_proxy_es && shx cp ./hel_proxy/entry.js ./hel_dist",
|
|
98
|
+
"build_proxy_umd": "rollup -c",
|
|
99
|
+
"build_proxy_es": "cross-env BUILD_ENV=es rollup -c",
|
|
100
|
+
"check_name": "node scripts/check.mjs",
|
|
101
|
+
"check:tdz": "node scripts/check-tdz.mjs",
|
|
102
|
+
"preview": "vite preview"
|
|
103
|
+
}
|
|
6
104
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|--------------------------------------------------------------------------
|
|
3
|
+
|
|
|
4
|
+
| 构建产物守卫:禁止产物里出现「先引用、后声明」的 let / const / class(TDZ)。
|
|
5
|
+
| 这类代码浏览器加载即抛 `Cannot access xxx before initialization`,
|
|
6
|
+
| 且混淆后变量名是 `_0x...`,很难看出真因。
|
|
7
|
+
|
|
|
8
|
+
| 真正的实现在仓库根 scripts/check-tdz.mjs(多个 comps 包共用一份);
|
|
9
|
+
| 本文件只负责定位它;独立安装本包(脱离 monorepo)时找不到就跳过,不影响构建。
|
|
10
|
+
|
|
|
11
|
+
|--------------------------------------------------------------------------
|
|
12
|
+
*/
|
|
13
|
+
import fs from 'node:fs'
|
|
14
|
+
|
|
15
|
+
const shared = new URL('../../scripts/check-tdz.mjs', import.meta.url)
|
|
16
|
+
if (!fs.existsSync(shared)) {
|
|
17
|
+
console.warn('[check-tdz] 未找到仓库根 scripts/check-tdz.mjs,跳过产物检查')
|
|
18
|
+
process.exit(0)
|
|
19
|
+
}
|
|
20
|
+
await import(shared.href)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|--------------------------------------------------------------------------
|
|
3
|
+
|
|
|
4
|
+
| 此脚本在流水线上会被触达,用于校验组名是否和应用里的组名保持一致
|
|
5
|
+
|
|
|
6
|
+
|--------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import path from 'node:path'
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import { createRequire } from 'node:module'
|
|
11
|
+
import helDevUtils from 'hel-dev-utils'
|
|
12
|
+
|
|
13
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
14
|
+
const require = createRequire(import.meta.url)
|
|
15
|
+
const pkg = require('../package.json')
|
|
16
|
+
|
|
17
|
+
const fileFullPath = path.join(__dirname, '../src/configs/subApp')
|
|
18
|
+
helDevUtils.check(pkg, { fileFullPath, checkEnv: false })
|
package/scripts/meta.mjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|--------------------------------------------------------------------------
|
|
3
|
+
|
|
|
4
|
+
| 生成 hel-meta.json(写入 hel_dist)
|
|
5
|
+
|
|
|
6
|
+
|--------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import path from 'node:path'
|
|
9
|
+
import { fileURLToPath } from 'node:url'
|
|
10
|
+
import { createRequire } from 'node:module'
|
|
11
|
+
import helDevUtils from 'hel-dev-utils'
|
|
12
|
+
import appInfo from '../appInfo.mjs'
|
|
13
|
+
|
|
14
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
15
|
+
const require = createRequire(import.meta.url)
|
|
16
|
+
const pkg = require('../package.json')
|
|
17
|
+
|
|
18
|
+
try {
|
|
19
|
+
await helDevUtils.extractHelMetaJson({
|
|
20
|
+
appInfo,
|
|
21
|
+
buildDirFullPath: path.join(__dirname, '../hel_dist'),
|
|
22
|
+
packageJson: pkg
|
|
23
|
+
})
|
|
24
|
+
console.log('[comps-vben] hel-meta.json 生成完成')
|
|
25
|
+
} catch (err) {
|
|
26
|
+
console.error('[comps-vben] hel-meta.json 生成失败:', err)
|
|
27
|
+
process.exit(-1)
|
|
28
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/*
|
|
2
|
+
|--------------------------------------------------------------------------
|
|
3
|
+
|
|
|
4
|
+
| npm publish 前检查:
|
|
5
|
+
| 1 根目录 package.json 的版本号是否和 hel_dist/hel-meta.json 一致
|
|
6
|
+
| 2 hel_dist 是否为发布用构建(资源地址不能是 localhost / 127.0.0.1)
|
|
7
|
+
|
|
|
8
|
+
|--------------------------------------------------------------------------
|
|
9
|
+
*/
|
|
10
|
+
import fs from 'node:fs'
|
|
11
|
+
import path from 'node:path'
|
|
12
|
+
import { fileURLToPath } from 'node:url'
|
|
13
|
+
import { createRequire } from 'node:module'
|
|
14
|
+
|
|
15
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
|
16
|
+
const require = createRequire(import.meta.url)
|
|
17
|
+
const pkg = require('../package.json')
|
|
18
|
+
const helDistPath = path.resolve(__dirname, '../hel_dist/hel-meta.json')
|
|
19
|
+
|
|
20
|
+
// 检查是否执行过 build 打包命令
|
|
21
|
+
if (!fs.existsSync(helDistPath)) {
|
|
22
|
+
console.log("\x1b[31mRun the 'pnpm run build' command first.\n\x1b[0m")
|
|
23
|
+
process.exit(1)
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const { app, version } = JSON.parse(fs.readFileSync(helDistPath, 'utf-8'))
|
|
27
|
+
// 检查根目录 package.json 的版本号是否和 hel_dist/hel-meta.json 一致
|
|
28
|
+
if (app?.build_version !== pkg.version) {
|
|
29
|
+
console.log(
|
|
30
|
+
'\x1b[31mThe package.json version number and the hel_dist/hel-meta.json version number must be the same.\n\x1b[0m'
|
|
31
|
+
)
|
|
32
|
+
process.exit(1)
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// 检查产物里的资源地址是否仍是本地联调地址(build:local 的产物不可发布)
|
|
36
|
+
const webDirPath = version?.src_map?.webDirPath || ''
|
|
37
|
+
if (/^https?:\/\/(localhost|127\.0\.0\.1)(:\d+)?(\/|$)/.test(webDirPath)) {
|
|
38
|
+
console.log(
|
|
39
|
+
`\x1b[31mhel_dist 里的资源地址是本地联调地址(${webDirPath}),请先执行 pnpm run build 生成指向 unpkg 的发布产物。\n\x1b[0m`
|
|
40
|
+
)
|
|
41
|
+
process.exit(1)
|
|
42
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { execSync } from 'node:child_process';
|
|
2
|
+
import fs from 'node:fs';
|
|
3
|
+
import os from 'node:os';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
|
|
6
|
+
const pkg = JSON.parse(fs.readFileSync('package.json', 'utf8'));
|
|
7
|
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), 'vben-stage-'));
|
|
8
|
+
|
|
9
|
+
try {
|
|
10
|
+
// pnpm pack 会把 workspace:* 重写成当前包版本,避免 npm 拒绝 workspace 协议
|
|
11
|
+
execSync(`pnpm pack --pack-destination "${tmp}"`, { stdio: 'inherit' });
|
|
12
|
+
|
|
13
|
+
const tgz = fs.readdirSync(tmp).find((file) => file.endsWith('.tgz'));
|
|
14
|
+
if (!tgz) throw new Error('pnpm pack did not produce a tarball');
|
|
15
|
+
const tarball = path.join(tmp, tgz);
|
|
16
|
+
console.log(`[publish:stage] packed ${tgz}`);
|
|
17
|
+
|
|
18
|
+
execSync(
|
|
19
|
+
`npx -y npm@11 stage publish "${tarball}" --registry=https://registry.npmjs.org --access public`,
|
|
20
|
+
{ stdio: 'inherit' },
|
|
21
|
+
);
|
|
22
|
+
console.log(`[publish:stage] ${pkg.name}@${pkg.version} staged`);
|
|
23
|
+
} finally {
|
|
24
|
+
fs.rmSync(tmp, { recursive: true, force: true });
|
|
25
|
+
}
|