@gi-base/ui 0.0.0-stage → 0.0.1
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 +20 -0
- package/README.md +32 -2
- package/dist/chunks/badge.vue_vue_type_style_index_0_lang-CY33mp7-.mjs +63 -0
- package/dist/chunks/button.vue_vue_type_style_index_0_lang-R3M50qg6.mjs +261 -0
- package/dist/chunks/card.vue_vue_type_style_index_0_lang-D8ofADym.mjs +140 -0
- package/dist/chunks/chart-card-CkzKgoNn.mjs +4 -0
- package/dist/chunks/chart-card.vue_vue_type_style_index_0_lang-O3dB4zv4.mjs +111 -0
- package/dist/chunks/chart-pxel8ocW.mjs +4 -0
- package/dist/chunks/chart.vue_vue_type_style_index_0_lang-Dt4-6E5R.mjs +1512 -0
- package/dist/chunks/context-ft3Pl675.mjs +4 -0
- package/dist/chunks/dialog.vue_vue_type_style_index_0_lang-DjG-cRmI.mjs +285 -0
- package/dist/chunks/icon.vue_vue_type_style_index_0_lang-CupFXcqv.mjs +93 -0
- package/dist/chunks/index-BQJqnh5l.mjs +181 -0
- package/dist/chunks/index-D0dJjV1u.mjs +127 -0
- package/dist/chunks/overlay.vue_vue_type_style_index_0_lang-BbOIddAC.mjs +58 -0
- package/dist/chunks/select.vue_vue_type_style_index_0_lang-CTXa4r_r.mjs +774 -0
- package/dist/chunks/sub-menu.vue_vue_type_script_setup_true_lang-D7eESzZS.mjs +775 -0
- package/dist/chunks/tag.vue_vue_type_style_index_0_lang-DEpBCkCG.mjs +146 -0
- package/dist/chunks/useClickOutside-C1JC115M.mjs +27 -0
- package/dist/chunks/useFloating-D4y_Ynh2.mjs +1067 -0
- package/dist/chunks/z-index-DpEcb64l.mjs +6 -0
- package/dist/components/affix/index.d.ts +134 -0
- package/dist/components/affix/index.mjs +62 -0
- package/dist/components/affix/src/affix.d.ts +32 -0
- package/dist/components/affix/src/affix.vue.d.ts +83 -0
- package/dist/components/ai/index.d.ts +1472 -0
- package/dist/components/ai/index.mjs +1107 -0
- package/dist/components/ai/src/console.vue.d.ts +23 -0
- package/dist/components/ai/src/cursor.vue.d.ts +59 -0
- package/dist/components/ai/src/focus-ring.vue.d.ts +77 -0
- package/dist/components/ai/src/ghost-input.vue.d.ts +74 -0
- package/dist/components/ai/src/guide.vue.d.ts +41 -0
- package/dist/components/ai/src/interact-lock.vue.d.ts +65 -0
- package/dist/components/ai/src/page-renderer.d.ts +62 -0
- package/dist/components/ai/src/page-renderer.vue.d.ts +50 -0
- package/dist/components/ai/src/progress.vue.d.ts +70 -0
- package/dist/components/ai/src/provider.vue.d.ts +61 -0
- package/dist/components/ai/src/review-panel.vue.d.ts +69 -0
- package/dist/components/ai/src/spotlight.vue.d.ts +78 -0
- package/dist/components/ai/src/step-tip.vue.d.ts +87 -0
- package/dist/components/ai/src/summary-panel.vue.d.ts +66 -0
- package/dist/components/ai/src/target.d.ts +33 -0
- package/dist/components/ai/src/useAi.d.ts +11 -0
- package/dist/components/alert/index.d.ts +178 -0
- package/dist/components/alert/index.mjs +92 -0
- package/dist/components/alert/src/alert.d.ts +45 -0
- package/dist/components/alert/src/alert.vue.d.ts +112 -0
- package/dist/components/anchor/index.d.ts +203 -0
- package/dist/components/anchor/index.mjs +118 -0
- package/dist/components/anchor/src/anchor-link.vue.d.ts +39 -0
- package/dist/components/anchor/src/anchor.d.ts +48 -0
- package/dist/components/anchor/src/anchor.vue.d.ts +98 -0
- package/dist/components/app-shell/index.d.ts +352 -0
- package/dist/components/app-shell/index.mjs +229 -0
- package/dist/components/app-shell/src/app-shell.d.ts +99 -0
- package/dist/components/app-shell/src/app-shell.vue.d.ts +213 -0
- package/dist/components/autocomplete/index.d.ts +330 -0
- package/dist/components/autocomplete/index.mjs +166 -0
- package/dist/components/autocomplete/src/autocomplete.d.ts +83 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +204 -0
- package/dist/components/avatar/index.d.ts +215 -0
- package/dist/components/avatar/index.mjs +99 -0
- package/dist/components/avatar/src/avatar-group.vue.d.ts +48 -0
- package/dist/components/avatar/src/avatar.d.ts +48 -0
- package/dist/components/avatar/src/avatar.vue.d.ts +96 -0
- package/dist/components/backtop/index.d.ts +124 -0
- package/dist/components/backtop/index.mjs +80 -0
- package/dist/components/backtop/src/backtop.d.ts +31 -0
- package/dist/components/backtop/src/backtop.vue.d.ts +78 -0
- package/dist/components/badge/index.d.ts +177 -0
- package/dist/components/badge/index.mjs +7 -0
- package/dist/components/badge/src/badge.d.ts +46 -0
- package/dist/components/badge/src/badge.vue.d.ts +112 -0
- package/dist/components/breadcrumb/index.d.ts +148 -0
- package/dist/components/breadcrumb/index.mjs +98 -0
- package/dist/components/breadcrumb/src/breadcrumb-item.vue.d.ts +51 -0
- package/dist/components/breadcrumb/src/breadcrumb.d.ts +46 -0
- package/dist/components/breadcrumb/src/breadcrumb.vue.d.ts +47 -0
- package/dist/components/button/index.d.ts +460 -0
- package/dist/components/button/index.mjs +7 -0
- package/dist/components/button/src/button.d.ts +144 -0
- package/dist/components/button/src/button.vue.d.ts +270 -0
- package/dist/components/button-group/index.d.ts +94 -0
- package/dist/components/button-group/index.mjs +49 -0
- package/dist/components/button-group/src/button-group.d.ts +27 -0
- package/dist/components/button-group/src/button-group.vue.d.ts +62 -0
- package/dist/components/button-group/src/context.d.ts +7 -0
- package/dist/components/calendar/index.d.ts +151 -0
- package/dist/components/calendar/index.mjs +199 -0
- package/dist/components/calendar/src/calendar.d.ts +35 -0
- package/dist/components/calendar/src/calendar.vue.d.ts +96 -0
- package/dist/components/card/index.d.ts +230 -0
- package/dist/components/card/index.mjs +7 -0
- package/dist/components/card/src/card.d.ts +67 -0
- package/dist/components/card/src/card.vue.d.ts +148 -0
- package/dist/components/carousel/index.d.ts +300 -0
- package/dist/components/carousel/index.mjs +166 -0
- package/dist/components/carousel/src/carousel-item.vue.d.ts +17 -0
- package/dist/components/carousel/src/carousel.d.ts +71 -0
- package/dist/components/carousel/src/carousel.vue.d.ts +171 -0
- package/dist/components/cascader/index.d.ts +322 -0
- package/dist/components/cascader/index.mjs +177 -0
- package/dist/components/cascader/src/cascader.d.ts +87 -0
- package/dist/components/cascader/src/cascader.vue.d.ts +182 -0
- package/dist/components/chart/index.d.ts +605 -0
- package/dist/components/chart/index.mjs +20 -0
- package/dist/components/chart/src/chart-option.d.ts +62 -0
- package/dist/components/chart/src/chart.d.ts +186 -0
- package/dist/components/chart/src/chart.vue.d.ts +341 -0
- package/dist/components/chart-card/index.d.ts +638 -0
- package/dist/components/chart-card/index.mjs +7 -0
- package/dist/components/chart-card/src/chart-card.d.ts +167 -0
- package/dist/components/chart-card/src/chart-card.vue.d.ts +387 -0
- package/dist/components/check-tag/index.d.ts +181 -0
- package/dist/components/check-tag/index.mjs +92 -0
- package/dist/components/check-tag/src/check-tag.d.ts +49 -0
- package/dist/components/check-tag/src/check-tag.vue.d.ts +111 -0
- package/dist/components/checkbox/constants.d.ts +20 -0
- package/dist/components/checkbox/index.d.ts +340 -0
- package/dist/components/checkbox/index.mjs +6 -0
- package/dist/components/checkbox/src/checkbox.d.ts +100 -0
- package/dist/components/checkbox/src/checkbox.vue.d.ts +207 -0
- package/dist/components/checkbox-group/index.d.ts +249 -0
- package/dist/components/checkbox-group/index.mjs +108 -0
- package/dist/components/checkbox-group/src/checkbox-group.d.ts +84 -0
- package/dist/components/checkbox-group/src/checkbox-group.vue.d.ts +153 -0
- package/dist/components/col/index.d.ts +213 -0
- package/dist/components/col/index.mjs +82 -0
- package/dist/components/col/src/col.d.ts +74 -0
- package/dist/components/col/src/col.vue.d.ts +133 -0
- package/dist/components/collapse/index.d.ts +249 -0
- package/dist/components/collapse/index.mjs +231 -0
- package/dist/components/collapse/src/collapse-item.vue.d.ts +80 -0
- package/dist/components/collapse/src/collapse.d.ts +82 -0
- package/dist/components/collapse/src/collapse.vue.d.ts +75 -0
- package/dist/components/color-picker/index.d.ts +212 -0
- package/dist/components/color-picker/index.mjs +274 -0
- package/dist/components/color-picker/src/color-picker.d.ts +53 -0
- package/dist/components/color-picker/src/color-picker.vue.d.ts +118 -0
- package/dist/components/config-provider/index.d.ts +153 -0
- package/dist/components/config-provider/index.mjs +56 -0
- package/dist/components/config-provider/src/config-provider.d.ts +34 -0
- package/dist/components/config-provider/src/config-provider.vue.d.ts +94 -0
- package/dist/components/container/index.d.ts +424 -0
- package/dist/components/container/index.mjs +246 -0
- package/dist/components/container/src/aside.d.ts +19 -0
- package/dist/components/container/src/aside.vue.d.ts +49 -0
- package/dist/components/container/src/container.d.ts +23 -0
- package/dist/components/container/src/container.vue.d.ts +49 -0
- package/dist/components/container/src/footer.d.ts +14 -0
- package/dist/components/container/src/footer.vue.d.ts +38 -0
- package/dist/components/container/src/header.d.ts +43 -0
- package/dist/components/container/src/header.vue.d.ts +89 -0
- package/dist/components/container/src/main.d.ts +24 -0
- package/dist/components/container/src/main.vue.d.ts +56 -0
- package/dist/components/countdown/index.d.ts +140 -0
- package/dist/components/countdown/index.mjs +55 -0
- package/dist/components/countdown/src/countdown.d.ts +35 -0
- package/dist/components/countdown/src/countdown.vue.d.ts +74 -0
- package/dist/components/crud/index.d.ts +1424 -0
- package/dist/components/crud/index.mjs +1728 -0
- package/dist/components/crud/src/crud-dialog.vue.d.ts +675 -0
- package/dist/components/crud/src/crud-field-control.vue.d.ts +15 -0
- package/dist/components/crud/src/crud-pagination.vue.d.ts +18 -0
- package/dist/components/crud/src/crud-search.vue.d.ts +40 -0
- package/dist/components/crud/src/crud-table.vue.d.ts +106 -0
- package/dist/components/crud/src/crud-toolbar.vue.d.ts +55 -0
- package/dist/components/crud/src/crud.d.ts +180 -0
- package/dist/components/crud/src/crud.vue.d.ts +1756 -0
- package/dist/components/crud/src/types.d.ts +266 -0
- package/dist/components/crud/src/useCrud.d.ts +27 -0
- package/dist/components/date-picker/index.d.ts +557 -0
- package/dist/components/date-picker/index.mjs +865 -0
- package/dist/components/date-picker/src/date-panel.vue.d.ts +55 -0
- package/dist/components/date-picker/src/date-picker.d.ts +160 -0
- package/dist/components/date-picker/src/date-picker.vue.d.ts +335 -0
- package/dist/components/date-picker/src/date-utils.d.ts +26 -0
- package/dist/components/descriptions/index.d.ts +272 -0
- package/dist/components/descriptions/index.mjs +94 -0
- package/dist/components/descriptions/src/descriptions-item.vue.d.ts +79 -0
- package/dist/components/descriptions/src/descriptions.d.ts +67 -0
- package/dist/components/descriptions/src/descriptions.vue.d.ts +98 -0
- package/dist/components/dialog/index.d.ts +547 -0
- package/dist/components/dialog/index.mjs +10 -0
- package/dist/components/dialog/src/dialog.d.ts +132 -0
- package/dist/components/dialog/src/dialog.vue.d.ts +319 -0
- package/dist/components/divider/index.d.ts +93 -0
- package/dist/components/divider/index.mjs +38 -0
- package/dist/components/divider/src/divider.d.ts +24 -0
- package/dist/components/divider/src/divider.vue.d.ts +62 -0
- package/dist/components/drawer/index.d.ts +449 -0
- package/dist/components/drawer/index.mjs +233 -0
- package/dist/components/drawer/src/drawer.d.ts +108 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +249 -0
- package/dist/components/dropdown/index.d.ts +445 -0
- package/dist/components/dropdown/index.mjs +192 -0
- package/dist/components/dropdown/src/dropdown-item.vue.d.ts +56 -0
- package/dist/components/dropdown/src/dropdown-menu.vue.d.ts +17 -0
- package/dist/components/dropdown/src/dropdown.d.ts +102 -0
- package/dist/components/dropdown/src/dropdown.vue.d.ts +208 -0
- package/dist/components/empty/index.d.ts +103 -0
- package/dist/components/empty/index.mjs +67 -0
- package/dist/components/empty/src/empty.d.ts +25 -0
- package/dist/components/empty/src/empty.vue.d.ts +67 -0
- package/dist/components/empty/src/presets.d.ts +3 -0
- package/dist/components/footer-bar/index.d.ts +119 -0
- package/dist/components/footer-bar/index.mjs +100 -0
- package/dist/components/footer-bar/src/footer-bar.d.ts +41 -0
- package/dist/components/footer-bar/src/footer-bar.vue.d.ts +76 -0
- package/dist/components/form/index.d.ts +626 -0
- package/dist/components/form/index.mjs +675 -0
- package/dist/components/form/src/constants.d.ts +17 -0
- package/dist/components/form/src/form-item.vue.d.ts +168 -0
- package/dist/components/form/src/form.d.ts +177 -0
- package/dist/components/form/src/form.vue.d.ts +218 -0
- package/dist/components/form/src/types.d.ts +91 -0
- package/dist/components/icon/index.d.ts +150 -0
- package/dist/components/icon/index.mjs +7 -0
- package/dist/components/icon/src/icon.d.ts +54 -0
- package/dist/components/icon/src/icon.vue.d.ts +94 -0
- package/dist/components/image/index.d.ts +328 -0
- package/dist/components/image/index.mjs +101 -0
- package/dist/components/image/src/image.d.ts +80 -0
- package/dist/components/image/src/image.vue.d.ts +194 -0
- package/dist/components/image-viewer/index.d.ts +344 -0
- package/dist/components/image-viewer/index.mjs +305 -0
- package/dist/components/image-viewer/src/image-viewer.d.ts +88 -0
- package/dist/components/image-viewer/src/image-viewer.vue.d.ts +189 -0
- package/dist/components/infinite-scroll/index.d.ts +4 -0
- package/dist/components/infinite-scroll/index.mjs +35 -0
- package/dist/components/input/index.d.ts +550 -0
- package/dist/components/input/index.mjs +298 -0
- package/dist/components/input/src/input.d.ts +133 -0
- package/dist/components/input/src/input.vue.d.ts +327 -0
- package/dist/components/input-otp/index.d.ts +203 -0
- package/dist/components/input-otp/index.mjs +94 -0
- package/dist/components/input-otp/src/input-otp.d.ts +51 -0
- package/dist/components/input-otp/src/input-otp.vue.d.ts +109 -0
- package/dist/components/input-tag/index.d.ts +357 -0
- package/dist/components/input-tag/index.mjs +205 -0
- package/dist/components/input-tag/src/input-tag.d.ts +91 -0
- package/dist/components/input-tag/src/input-tag.vue.d.ts +201 -0
- package/dist/components/layout/index.d.ts +91 -0
- package/dist/components/layout/index.mjs +181 -0
- package/dist/components/layout/src/layout-executor.d.ts +24 -0
- package/dist/components/layout/src/layout-executor.vue.d.ts +62 -0
- package/dist/components/layout/src/layout.d.ts +60 -0
- package/dist/components/link/index.d.ts +162 -0
- package/dist/components/link/index.mjs +102 -0
- package/dist/components/link/src/link.d.ts +44 -0
- package/dist/components/link/src/link.vue.d.ts +103 -0
- package/dist/components/loading/index.d.ts +11 -0
- package/dist/components/loading/index.mjs +167 -0
- package/dist/components/loading/src/directive.d.ts +5 -0
- package/dist/components/loading/src/loading.d.ts +67 -0
- package/dist/components/loading/src/loading.vue.d.ts +40 -0
- package/dist/components/loading/src/service.d.ts +11 -0
- package/dist/components/mention/index.d.ts +211 -0
- package/dist/components/mention/index.mjs +126 -0
- package/dist/components/mention/src/mention.d.ts +50 -0
- package/dist/components/mention/src/mention.vue.d.ts +114 -0
- package/dist/components/menu/index.d.ts +814 -0
- package/dist/components/menu/index.mjs +50 -0
- package/dist/components/menu/src/menu-item-group.vue.d.ts +30 -0
- package/dist/components/menu/src/menu-item.vue.d.ts +72 -0
- package/dist/components/menu/src/menu.d.ts +294 -0
- package/dist/components/menu/src/menu.vue.d.ts +263 -0
- package/dist/components/menu/src/sub-menu.vue.d.ts +154 -0
- package/dist/components/message-box/index.d.ts +16 -0
- package/dist/components/message-box/index.mjs +288 -0
- package/dist/components/message-box/src/message-box.d.ts +171 -0
- package/dist/components/message-box/src/message-box.vue.d.ts +69 -0
- package/dist/components/message-box/src/service.d.ts +12 -0
- package/dist/components/notice/index.d.ts +252 -0
- package/dist/components/notice/index.mjs +307 -0
- package/dist/components/notice/src/notice.d.ts +79 -0
- package/dist/components/notice/src/notice.vue.d.ts +137 -0
- package/dist/components/notice/src/service.d.ts +34 -0
- package/dist/components/notification/index.d.ts +5 -0
- package/dist/components/notification/index.mjs +131 -0
- package/dist/components/notification/src/notification-item.vue.d.ts +28 -0
- package/dist/components/notification/src/notification.d.ts +26 -0
- package/dist/components/notification/src/service.d.ts +3 -0
- package/dist/components/number/index.d.ts +400 -0
- package/dist/components/number/index.mjs +257 -0
- package/dist/components/number/src/number.d.ts +114 -0
- package/dist/components/number/src/number.vue.d.ts +227 -0
- package/dist/components/overlay/index.d.ts +124 -0
- package/dist/components/overlay/index.mjs +7 -0
- package/dist/components/overlay/src/overlay.vue.d.ts +70 -0
- package/dist/components/page-header/index.d.ts +83 -0
- package/dist/components/page-header/index.mjs +79 -0
- package/dist/components/page-header/src/page-header.d.ts +17 -0
- package/dist/components/page-header/src/page-header.vue.d.ts +55 -0
- package/dist/components/pagination/index.d.ts +390 -0
- package/dist/components/pagination/index.mjs +195 -0
- package/dist/components/pagination/src/pagination.d.ts +101 -0
- package/dist/components/pagination/src/pagination.vue.d.ts +232 -0
- package/dist/components/popconfirm/index.d.ts +1146 -0
- package/dist/components/popconfirm/index.mjs +130 -0
- package/dist/components/popconfirm/src/popconfirm.d.ts +82 -0
- package/dist/components/popconfirm/src/popconfirm.vue.d.ts +1855 -0
- package/dist/components/popover/index.d.ts +873 -0
- package/dist/components/popover/index.mjs +110 -0
- package/dist/components/popover/src/popover.d.ts +85 -0
- package/dist/components/popover/src/popover.vue.d.ts +1271 -0
- package/dist/components/progress/index.d.ts +254 -0
- package/dist/components/progress/index.mjs +120 -0
- package/dist/components/progress/src/progress.d.ts +68 -0
- package/dist/components/progress/src/progress.vue.d.ts +146 -0
- package/dist/components/radio/constants.d.ts +17 -0
- package/dist/components/radio/index.d.ts +233 -0
- package/dist/components/radio/index.mjs +6 -0
- package/dist/components/radio/src/radio.d.ts +65 -0
- package/dist/components/radio/src/radio.vue.d.ts +143 -0
- package/dist/components/radio-group/index.d.ts +235 -0
- package/dist/components/radio-group/index.mjs +91 -0
- package/dist/components/radio-group/src/radio-group.d.ts +77 -0
- package/dist/components/radio-group/src/radio-group.vue.d.ts +144 -0
- package/dist/components/rate/index.d.ts +320 -0
- package/dist/components/rate/index.mjs +115 -0
- package/dist/components/rate/src/rate.d.ts +84 -0
- package/dist/components/rate/src/rate.vue.d.ts +182 -0
- package/dist/components/result/index.d.ts +91 -0
- package/dist/components/result/index.mjs +74 -0
- package/dist/components/result/src/result.d.ts +21 -0
- package/dist/components/result/src/result.vue.d.ts +62 -0
- package/dist/components/rolling-notice/index.d.ts +187 -0
- package/dist/components/rolling-notice/index.mjs +176 -0
- package/dist/components/rolling-notice/src/rolling-notice.d.ts +57 -0
- package/dist/components/rolling-notice/src/rolling-notice.vue.d.ts +102 -0
- package/dist/components/row/index.d.ts +105 -0
- package/dist/components/row/index.mjs +64 -0
- package/dist/components/row/src/row.d.ts +33 -0
- package/dist/components/row/src/row.vue.d.ts +69 -0
- package/dist/components/scrollbar/index.d.ts +386 -0
- package/dist/components/scrollbar/index.mjs +235 -0
- package/dist/components/scrollbar/src/scrollbar.d.ts +101 -0
- package/dist/components/scrollbar/src/scrollbar.vue.d.ts +237 -0
- package/dist/components/segmented/index.d.ts +252 -0
- package/dist/components/segmented/index.mjs +177 -0
- package/dist/components/segmented/src/segmented.d.ts +88 -0
- package/dist/components/segmented/src/segmented.vue.d.ts +159 -0
- package/dist/components/select/index.d.ts +1107 -0
- package/dist/components/select/index.mjs +36 -0
- package/dist/components/select/src/constants.d.ts +34 -0
- package/dist/components/select/src/option-group.vue.d.ts +39 -0
- package/dist/components/select/src/option.vue.d.ts +56 -0
- package/dist/components/select/src/remote.d.ts +6 -0
- package/dist/components/select/src/select.d.ts +336 -0
- package/dist/components/select/src/select.vue.d.ts +583 -0
- package/dist/components/select-virtual/index.d.ts +884 -0
- package/dist/components/select-virtual/index.mjs +18 -0
- package/dist/components/select-virtual/src/select-virtual.vue.d.ts +522 -0
- package/dist/components/sidebar/index.d.ts +279 -0
- package/dist/components/sidebar/index.mjs +283 -0
- package/dist/components/sidebar/src/sidebar.d.ts +106 -0
- package/dist/components/sidebar/src/sidebar.vue.d.ts +170 -0
- package/dist/components/skeleton/index.d.ts +186 -0
- package/dist/components/skeleton/index.mjs +87 -0
- package/dist/components/skeleton/src/skeleton-item.vue.d.ts +58 -0
- package/dist/components/skeleton/src/skeleton.d.ts +43 -0
- package/dist/components/skeleton/src/skeleton.vue.d.ts +66 -0
- package/dist/components/slider/index.d.ts +282 -0
- package/dist/components/slider/index.mjs +190 -0
- package/dist/components/slider/src/slider.d.ts +73 -0
- package/dist/components/slider/src/slider.vue.d.ts +159 -0
- package/dist/components/space/index.d.ts +164 -0
- package/dist/components/space/index.mjs +132 -0
- package/dist/components/space/src/space.d.ts +55 -0
- package/dist/components/space/src/space.vue.d.ts +92 -0
- package/dist/components/sparkline/index.d.ts +219 -0
- package/dist/components/sparkline/index.mjs +109 -0
- package/dist/components/sparkline/src/sparkline.d.ts +57 -0
- package/dist/components/sparkline/src/sparkline.vue.d.ts +124 -0
- package/dist/components/splitter/index.d.ts +263 -0
- package/dist/components/splitter/index.mjs +299 -0
- package/dist/components/splitter/src/context.d.ts +35 -0
- package/dist/components/splitter/src/split-panel.vue.d.ts +87 -0
- package/dist/components/splitter/src/splitter.d.ts +64 -0
- package/dist/components/splitter/src/splitter.vue.d.ts +79 -0
- package/dist/components/statistic/index.d.ts +207 -0
- package/dist/components/statistic/index.mjs +92 -0
- package/dist/components/statistic/src/statistic.d.ts +52 -0
- package/dist/components/statistic/src/statistic.vue.d.ts +131 -0
- package/dist/components/steps/index.d.ts +271 -0
- package/dist/components/steps/index.mjs +128 -0
- package/dist/components/steps/src/step.vue.d.ts +73 -0
- package/dist/components/steps/src/steps.d.ts +65 -0
- package/dist/components/steps/src/steps.vue.d.ts +104 -0
- package/dist/components/switch/index.d.ts +426 -0
- package/dist/components/switch/index.mjs +214 -0
- package/dist/components/switch/src/switch.d.ts +129 -0
- package/dist/components/switch/src/switch.vue.d.ts +244 -0
- package/dist/components/table/index.d.ts +1709 -0
- package/dist/components/table/index.mjs +1304 -0
- package/dist/components/table/src/table-column.vue.d.ts +341 -0
- package/dist/components/table/src/table.d.ts +564 -0
- package/dist/components/table/src/table.vue.d.ts +623 -0
- package/dist/components/table-v2/index.d.ts +302 -0
- package/dist/components/table-v2/index.mjs +147 -0
- package/dist/components/table-v2/src/table-v2.d.ts +89 -0
- package/dist/components/table-v2/src/table-v2.vue.d.ts +165 -0
- package/dist/components/tabs/index.d.ts +355 -0
- package/dist/components/tabs/index.mjs +278 -0
- package/dist/components/tabs/src/tab-pane.vue.d.ts +76 -0
- package/dist/components/tabs/src/tabs.d.ts +113 -0
- package/dist/components/tabs/src/tabs.vue.d.ts +147 -0
- package/dist/components/tag/index.d.ts +323 -0
- package/dist/components/tag/index.mjs +7 -0
- package/dist/components/tag/src/tag.d.ts +88 -0
- package/dist/components/tag/src/tag.vue.d.ts +194 -0
- package/dist/components/text/index.d.ts +138 -0
- package/dist/components/text/index.mjs +66 -0
- package/dist/components/text/src/text.d.ts +45 -0
- package/dist/components/text/src/text.vue.d.ts +89 -0
- package/dist/components/textarea/index.d.ts +417 -0
- package/dist/components/textarea/index.mjs +189 -0
- package/dist/components/textarea/src/textarea.d.ts +97 -0
- package/dist/components/textarea/src/textarea.vue.d.ts +231 -0
- package/dist/components/time-picker/index.d.ts +216 -0
- package/dist/components/time-picker/index.mjs +228 -0
- package/dist/components/time-picker/src/time-picker.d.ts +53 -0
- package/dist/components/time-picker/src/time-picker.vue.d.ts +120 -0
- package/dist/components/time-select/index.d.ts +188 -0
- package/dist/components/time-select/index.mjs +124 -0
- package/dist/components/time-select/src/time-select.d.ts +46 -0
- package/dist/components/time-select/src/time-select.vue.d.ts +104 -0
- package/dist/components/timeline/index.d.ts +206 -0
- package/dist/components/timeline/index.mjs +81 -0
- package/dist/components/timeline/src/timeline-item.vue.d.ts +107 -0
- package/dist/components/timeline/src/timeline.d.ts +49 -0
- package/dist/components/timeline/src/timeline.vue.d.ts +29 -0
- package/dist/components/toast/index.d.ts +8 -0
- package/dist/components/toast/index.mjs +170 -0
- package/dist/components/toast/src/service.d.ts +4 -0
- package/dist/components/toast/src/toast-item.vue.d.ts +37 -0
- package/dist/components/toast/src/toast.d.ts +48 -0
- package/dist/components/tooltip/index.d.ts +636 -0
- package/dist/components/tooltip/index.mjs +342 -0
- package/dist/components/tooltip/src/tooltip.d.ts +197 -0
- package/dist/components/tooltip/src/tooltip.vue.d.ts +383 -0
- package/dist/components/tour/index.d.ts +337 -0
- package/dist/components/tour/index.mjs +180 -0
- package/dist/components/tour/src/tour.d.ts +91 -0
- package/dist/components/tour/src/tour.vue.d.ts +203 -0
- package/dist/components/transfer/index.d.ts +319 -0
- package/dist/components/transfer/index.mjs +298 -0
- package/dist/components/transfer/src/transfer.d.ts +79 -0
- package/dist/components/transfer/src/transfer.vue.d.ts +190 -0
- package/dist/components/tree/index.d.ts +536 -0
- package/dist/components/tree/index.mjs +312 -0
- package/dist/components/tree/src/tree-node.vue.d.ts +25 -0
- package/dist/components/tree/src/tree.d.ts +136 -0
- package/dist/components/tree/src/tree.vue.d.ts +298 -0
- package/dist/components/tree-select/index.d.ts +683 -0
- package/dist/components/tree-select/index.mjs +599 -0
- package/dist/components/tree-select/src/tree-select.d.ts +229 -0
- package/dist/components/tree-select/src/tree-select.vue.d.ts +390 -0
- package/dist/components/tree-v2/index.d.ts +255 -0
- package/dist/components/tree-v2/index.mjs +149 -0
- package/dist/components/tree-v2/src/tree-v2.d.ts +63 -0
- package/dist/components/tree-v2/src/tree-v2.vue.d.ts +139 -0
- package/dist/components/upload/index.d.ts +736 -0
- package/dist/components/upload/index.mjs +616 -0
- package/dist/components/upload/src/upload.d.ts +233 -0
- package/dist/components/upload/src/upload.vue.d.ts +421 -0
- package/dist/components/virtual-list/index.d.ts +159 -0
- package/dist/components/virtual-list/index.mjs +89 -0
- package/dist/components/virtual-list/src/virtual-list.d.ts +38 -0
- package/dist/components/virtual-list/src/virtual-list.vue.d.ts +103 -0
- package/dist/components/watermark/index.d.ts +264 -0
- package/dist/components/watermark/index.mjs +72 -0
- package/dist/components/watermark/src/watermark.d.ts +67 -0
- package/dist/components/watermark/src/watermark.vue.d.ts +164 -0
- package/dist/hooks/useClickOutside.d.ts +12 -0
- package/dist/hooks/useFloating.d.ts +49 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.mjs +396 -0
- package/dist/style.css +1 -0
- package/dist/utils/form.d.ts +51 -0
- package/dist/utils/z-index.d.ts +9 -0
- package/package.json +61 -3
|
@@ -0,0 +1,1107 @@
|
|
|
1
|
+
import { useNamespace as w, AI_TARGET_REGISTRY_KEY as ue, useAiTarget as C, withInstall as G } from "@gi-base/utils";
|
|
2
|
+
import { inject as oe, defineComponent as T, reactive as K, provide as H, watch as M, nextTick as ce, openBlock as r, createElementBlock as l, normalizeClass as t, unref as e, renderSlot as j, ref as N, onMounted as J, onBeforeUnmount as F, computed as S, createBlock as I, Teleport as E, normalizeStyle as P, createElementVNode as p, toDisplayString as m, createCommentVNode as x, withModifiers as Q, createVNode as W, createTextVNode as L, Fragment as $, renderList as V, withDirectives as q, vModelSelect as Z, createStaticVNode as de, vModelText as pe, defineAsyncComponent as _, withCtx as Y, mergeProps as ee } from "vue";
|
|
3
|
+
import { createAiRuntime as ve, GuideEngine as ge } from "@gi-base/ai";
|
|
4
|
+
import { _ as ne } from "../../chunks/icon.vue_vue_type_style_index_0_lang-CupFXcqv.mjs";
|
|
5
|
+
import { _ as te } from "../../chunks/button.vue_vue_type_style_index_0_lang-R3M50qg6.mjs";
|
|
6
|
+
import { _ as fe } from "../../chunks/card.vue_vue_type_style_index_0_lang-D8ofADym.mjs";
|
|
7
|
+
const ae = Symbol("gi-ai-runtime");
|
|
8
|
+
function se() {
|
|
9
|
+
return oe(ae, null);
|
|
10
|
+
}
|
|
11
|
+
const me = /* @__PURE__ */ T({
|
|
12
|
+
name: "GiAiProvider",
|
|
13
|
+
__name: "provider",
|
|
14
|
+
props: {
|
|
15
|
+
context: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
},
|
|
19
|
+
policy: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({})
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
emits: ["ready"],
|
|
25
|
+
setup(a, { expose: v, emit: i }) {
|
|
26
|
+
const o = a, s = i, b = w("ai-provider"), n = K({ ...o.context }), u = K({ ...o.policy }), c = ve({ context: n, policy: u });
|
|
27
|
+
return H(ue, c.registry), H(ae, {
|
|
28
|
+
registry: c.registry,
|
|
29
|
+
executor: c.executor,
|
|
30
|
+
guide: c.guide,
|
|
31
|
+
context: n,
|
|
32
|
+
policy: u
|
|
33
|
+
}), M(
|
|
34
|
+
() => o.context,
|
|
35
|
+
(f) => {
|
|
36
|
+
Object.assign(n, f), c.executor.setContext(n);
|
|
37
|
+
},
|
|
38
|
+
{ deep: !0 }
|
|
39
|
+
), M(
|
|
40
|
+
() => o.policy,
|
|
41
|
+
(f) => {
|
|
42
|
+
Object.assign(u, f), c.executor.setPolicy(u);
|
|
43
|
+
},
|
|
44
|
+
{ deep: !0 }
|
|
45
|
+
), ce(() => s("ready", c)), v({ runtime: c, registry: c.registry, executor: c.executor, guide: c.guide }), (f, y) => (r(), l("div", {
|
|
46
|
+
class: t(e(b).b()),
|
|
47
|
+
"data-gi-region": "ai-provider"
|
|
48
|
+
}, [
|
|
49
|
+
j(f.$slots, "default")
|
|
50
|
+
], 2));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
function U(a) {
|
|
54
|
+
const v = N(null);
|
|
55
|
+
let i = null, o = 0, s = 0;
|
|
56
|
+
function b() {
|
|
57
|
+
if (typeof document > "u") return null;
|
|
58
|
+
const c = a.value;
|
|
59
|
+
return c ? c.startsWith("#") || c.startsWith(".") || c.startsWith("[") ? document.querySelector(c) : document.querySelector(`[data-ai-target="${ie(c)}"]`) || document.querySelector(`[data-gi-region="${ie(c)}"]`) : null;
|
|
60
|
+
}
|
|
61
|
+
function n() {
|
|
62
|
+
const c = b();
|
|
63
|
+
if (!c) {
|
|
64
|
+
v.value = null;
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const f = c.getBoundingClientRect();
|
|
68
|
+
v.value = {
|
|
69
|
+
x: f.x,
|
|
70
|
+
y: f.y,
|
|
71
|
+
width: f.width,
|
|
72
|
+
height: f.height,
|
|
73
|
+
top: f.top,
|
|
74
|
+
left: f.left,
|
|
75
|
+
right: f.right,
|
|
76
|
+
bottom: f.bottom
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
function u() {
|
|
80
|
+
cancelAnimationFrame(o), o = requestAnimationFrame(n);
|
|
81
|
+
}
|
|
82
|
+
return M(a, () => {
|
|
83
|
+
n(), i == null || i.disconnect();
|
|
84
|
+
const c = b();
|
|
85
|
+
c && typeof ResizeObserver < "u" && (i = new ResizeObserver(u), i.observe(c));
|
|
86
|
+
}), J(() => {
|
|
87
|
+
n();
|
|
88
|
+
const c = b();
|
|
89
|
+
c && typeof ResizeObserver < "u" && (i = new ResizeObserver(u), i.observe(c)), window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), s = window.setInterval(n, 240);
|
|
90
|
+
}), F(() => {
|
|
91
|
+
cancelAnimationFrame(o), window.clearInterval(s), i == null || i.disconnect(), window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
|
|
92
|
+
}), { rect: v, refresh: n };
|
|
93
|
+
}
|
|
94
|
+
function ie(a) {
|
|
95
|
+
return typeof CSS < "u" && CSS.escape ? CSS.escape(a) : a.replace(/"/g, '\\"');
|
|
96
|
+
}
|
|
97
|
+
const be = /* @__PURE__ */ T({
|
|
98
|
+
name: "GiAiCursor",
|
|
99
|
+
__name: "cursor",
|
|
100
|
+
props: {
|
|
101
|
+
visible: { type: Boolean, default: !0 },
|
|
102
|
+
target: { type: String, default: "" },
|
|
103
|
+
x: { type: Number, default: 0 },
|
|
104
|
+
y: { type: Number, default: 0 },
|
|
105
|
+
label: { type: String, default: "" },
|
|
106
|
+
aiTarget: { type: String, default: "" }
|
|
107
|
+
},
|
|
108
|
+
setup(a) {
|
|
109
|
+
const v = a, i = w("ai-cursor"), o = S(() => v.target), { rect: s } = U(o), b = S(() => v.target && s.value ? { left: `${s.value.left + s.value.width / 2}px`, top: `${s.value.top + s.value.height / 2}px` } : { left: `${v.x}px`, top: `${v.y}px` });
|
|
110
|
+
return C({
|
|
111
|
+
code: v.aiTarget,
|
|
112
|
+
getValue: () => ({ ...v }),
|
|
113
|
+
isVisible: () => !0
|
|
114
|
+
}), (n, u) => (r(), I(E, { to: "body" }, [
|
|
115
|
+
a.visible ? (r(), l("div", {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: t([e(i).b(), e(i).is("visible")]),
|
|
118
|
+
style: P(b.value),
|
|
119
|
+
"aria-hidden": "true"
|
|
120
|
+
}, [
|
|
121
|
+
p("span", {
|
|
122
|
+
class: t(e(i).be("pointer"))
|
|
123
|
+
}, null, 2),
|
|
124
|
+
a.label ? (r(), l("span", {
|
|
125
|
+
key: 0,
|
|
126
|
+
class: t(e(i).be("label"))
|
|
127
|
+
}, m(a.label), 3)) : x("", !0)
|
|
128
|
+
], 6)) : x("", !0)
|
|
129
|
+
]));
|
|
130
|
+
}
|
|
131
|
+
}), re = /* @__PURE__ */ T({
|
|
132
|
+
name: "GiAiFocusRing",
|
|
133
|
+
__name: "focus-ring",
|
|
134
|
+
props: {
|
|
135
|
+
target: { type: String, default: "" },
|
|
136
|
+
visible: { type: Boolean, default: !0 },
|
|
137
|
+
pulse: { type: Boolean, default: !0 },
|
|
138
|
+
padding: { type: Number, default: 8 },
|
|
139
|
+
paddingLeft: { type: Number, default: 16 },
|
|
140
|
+
paddingRight: { type: Number, default: 16 },
|
|
141
|
+
radius: { type: [Number, String], default: "" },
|
|
142
|
+
aiTarget: { type: String, default: "" }
|
|
143
|
+
},
|
|
144
|
+
setup(a) {
|
|
145
|
+
const v = a, i = w("ai-focus-ring"), o = S(() => v.target), { rect: s } = U(o), b = S(() => s.value ? {
|
|
146
|
+
left: `${s.value.left - v.paddingLeft}px`,
|
|
147
|
+
top: `${s.value.top - v.padding}px`,
|
|
148
|
+
width: `${s.value.width + v.paddingLeft + v.paddingRight}px`,
|
|
149
|
+
height: `${s.value.height + v.padding * 2}px`,
|
|
150
|
+
...v.radius ? { borderRadius: typeof v.radius == "number" ? `${v.radius}px` : v.radius } : {}
|
|
151
|
+
} : {});
|
|
152
|
+
return C({
|
|
153
|
+
code: v.aiTarget,
|
|
154
|
+
getValue: () => ({ ...v }),
|
|
155
|
+
isVisible: () => !0
|
|
156
|
+
}), (n, u) => (r(), I(E, { to: "body" }, [
|
|
157
|
+
a.visible && e(s) ? (r(), l("div", {
|
|
158
|
+
key: 0,
|
|
159
|
+
class: t([e(i).b(), a.pulse ? e(i).is("pulse") : ""]),
|
|
160
|
+
style: P(b.value),
|
|
161
|
+
"aria-hidden": "true"
|
|
162
|
+
}, null, 6)) : x("", !0)
|
|
163
|
+
]));
|
|
164
|
+
}
|
|
165
|
+
}), ye = /* @__PURE__ */ T({
|
|
166
|
+
name: "GiAiSpotlight",
|
|
167
|
+
__name: "spotlight",
|
|
168
|
+
props: {
|
|
169
|
+
target: { type: String, default: "" },
|
|
170
|
+
active: { type: Boolean, default: !0 },
|
|
171
|
+
padding: { type: Number, default: 6 },
|
|
172
|
+
dim: { type: Number, default: 0.42 },
|
|
173
|
+
clickable: { type: Boolean, default: !1 },
|
|
174
|
+
aiTarget: { type: String, default: "" }
|
|
175
|
+
},
|
|
176
|
+
emits: ["click"],
|
|
177
|
+
setup(a, { emit: v }) {
|
|
178
|
+
const i = a, o = v, s = w("ai-spotlight"), b = S(() => i.target), { rect: n } = U(b), u = S(() => n.value ? {
|
|
179
|
+
left: `${n.value.left - i.padding}px`,
|
|
180
|
+
top: `${n.value.top - i.padding}px`,
|
|
181
|
+
width: `${n.value.width + i.padding * 2}px`,
|
|
182
|
+
height: `${n.value.height + i.padding * 2}px`
|
|
183
|
+
} : {});
|
|
184
|
+
return C({
|
|
185
|
+
code: i.aiTarget,
|
|
186
|
+
getValue: () => ({ ...i }),
|
|
187
|
+
isVisible: () => !0
|
|
188
|
+
}), (c, f) => (r(), I(E, { to: "body" }, [
|
|
189
|
+
a.active ? (r(), l("div", {
|
|
190
|
+
key: 0,
|
|
191
|
+
class: t([e(s).b(), a.clickable ? e(s).is("clickable") : ""]),
|
|
192
|
+
style: P({ "--gi-ai-spotlight-dim": a.dim }),
|
|
193
|
+
onClick: f[0] || (f[0] = (y) => a.clickable && o("click"))
|
|
194
|
+
}, [
|
|
195
|
+
e(n) ? (r(), l("div", {
|
|
196
|
+
key: 0,
|
|
197
|
+
class: t(e(s).be("hole")),
|
|
198
|
+
style: P(u.value)
|
|
199
|
+
}, null, 6)) : x("", !0),
|
|
200
|
+
j(c.$slots, "default")
|
|
201
|
+
], 6)) : x("", !0)
|
|
202
|
+
]));
|
|
203
|
+
}
|
|
204
|
+
}), he = ["aria-label"], le = /* @__PURE__ */ T({
|
|
205
|
+
name: "GiAiStepTip",
|
|
206
|
+
__name: "step-tip",
|
|
207
|
+
props: {
|
|
208
|
+
open: { type: Boolean, default: !0 },
|
|
209
|
+
title: { type: String, default: "" },
|
|
210
|
+
description: { type: String, default: "" },
|
|
211
|
+
target: { type: String, default: "" },
|
|
212
|
+
current: { type: Number, default: 0 },
|
|
213
|
+
total: { type: Number, default: 0 },
|
|
214
|
+
placement: {
|
|
215
|
+
type: String,
|
|
216
|
+
values: ["auto", "top", "bottom", "left", "right"],
|
|
217
|
+
default: "auto"
|
|
218
|
+
},
|
|
219
|
+
aiTarget: { type: String, default: "" }
|
|
220
|
+
},
|
|
221
|
+
emits: ["next", "previous", "close"],
|
|
222
|
+
setup(a, { emit: v }) {
|
|
223
|
+
const i = a, o = v, s = w("ai-step-tip"), b = S(() => i.target), { rect: n } = U(b), u = S(() => i.placement !== "auto" || !n.value ? i.placement : typeof window < "u" && n.value.bottom + 220 > window.innerHeight ? "top" : "bottom"), c = S(() => {
|
|
224
|
+
if (!n.value)
|
|
225
|
+
return { right: "24px", bottom: "24px" };
|
|
226
|
+
const y = n.value, g = 280;
|
|
227
|
+
return u.value === "top" ? {
|
|
228
|
+
left: `${Math.max(12, Math.min(y.left + y.width / 2 - g / 2, window.innerWidth - g - 12))}px`,
|
|
229
|
+
top: `${Math.max(12, y.top - 12)}px`,
|
|
230
|
+
transform: "translateY(-100%)"
|
|
231
|
+
} : u.value === "left" ? { left: `${Math.max(12, y.left - 12)}px`, top: `${y.top}px`, transform: "translateX(-100%)" } : u.value === "right" ? { left: `${y.right + 12}px`, top: `${y.top}px` } : {
|
|
232
|
+
left: `${Math.max(12, Math.min(y.left + y.width / 2 - g / 2, window.innerWidth - g - 12))}px`,
|
|
233
|
+
top: `${y.bottom + 12}px`
|
|
234
|
+
};
|
|
235
|
+
}), f = S(() => n.value ? u.value === "top" ? { left: "50%", bottom: "-6px", transform: "translateX(-50%) rotate(45deg)" } : u.value === "left" ? { right: "-6px", top: "18px", transform: "rotate(45deg)" } : u.value === "right" ? { left: "-6px", top: "18px", transform: "rotate(45deg)" } : { left: "50%", top: "-6px", transform: "translateX(-50%) rotate(45deg)" } : { display: "none" });
|
|
236
|
+
return C({
|
|
237
|
+
code: i.aiTarget,
|
|
238
|
+
getValue: () => ({ ...i }),
|
|
239
|
+
isVisible: () => !0
|
|
240
|
+
}), (y, g) => (r(), I(E, { to: "body" }, [
|
|
241
|
+
a.open ? (r(), l("div", {
|
|
242
|
+
key: 0,
|
|
243
|
+
class: t([e(s).b(), e(s).is(a.placement)]),
|
|
244
|
+
style: P(c.value),
|
|
245
|
+
role: "dialog",
|
|
246
|
+
"aria-label": a.title
|
|
247
|
+
}, [
|
|
248
|
+
p("span", {
|
|
249
|
+
class: t(e(s).be("arrow")),
|
|
250
|
+
style: P(f.value)
|
|
251
|
+
}, null, 6),
|
|
252
|
+
p("div", {
|
|
253
|
+
class: t(e(s).be("head"))
|
|
254
|
+
}, [
|
|
255
|
+
p("span", {
|
|
256
|
+
class: t(e(s).be("title"))
|
|
257
|
+
}, m(a.title), 3),
|
|
258
|
+
a.total > 0 ? (r(), l("span", {
|
|
259
|
+
key: 0,
|
|
260
|
+
class: t(e(s).be("count"))
|
|
261
|
+
}, m(a.current + 1) + " / " + m(a.total), 3)) : x("", !0)
|
|
262
|
+
], 2),
|
|
263
|
+
a.description ? (r(), l("div", {
|
|
264
|
+
key: 0,
|
|
265
|
+
class: t(e(s).be("desc"))
|
|
266
|
+
}, m(a.description), 3)) : x("", !0),
|
|
267
|
+
p("div", {
|
|
268
|
+
class: t(e(s).be("actions"))
|
|
269
|
+
}, [
|
|
270
|
+
a.current > 0 ? (r(), l("button", {
|
|
271
|
+
key: 0,
|
|
272
|
+
type: "button",
|
|
273
|
+
class: t(e(s).be("btn")),
|
|
274
|
+
onClick: g[0] || (g[0] = (A) => o("previous"))
|
|
275
|
+
}, " 上一步 ", 2)) : x("", !0),
|
|
276
|
+
p("span", {
|
|
277
|
+
class: t(e(s).be("spacer"))
|
|
278
|
+
}, null, 2),
|
|
279
|
+
p("button", {
|
|
280
|
+
type: "button",
|
|
281
|
+
class: t(e(s).be("btn")),
|
|
282
|
+
onClick: g[1] || (g[1] = (A) => o("close"))
|
|
283
|
+
}, "关闭", 2),
|
|
284
|
+
p("button", {
|
|
285
|
+
type: "button",
|
|
286
|
+
class: t([e(s).be("btn"), e(s).is("primary")]),
|
|
287
|
+
onClick: g[2] || (g[2] = (A) => o("next"))
|
|
288
|
+
}, m(a.current >= a.total - 1 ? "完成" : "下一步"), 3)
|
|
289
|
+
], 2)
|
|
290
|
+
], 14, he)) : x("", !0)
|
|
291
|
+
]));
|
|
292
|
+
}
|
|
293
|
+
}), xe = ["aria-label"], ke = { key: 0 }, Se = /* @__PURE__ */ T({
|
|
294
|
+
name: "GiAiGhostInput",
|
|
295
|
+
__name: "ghost-input",
|
|
296
|
+
props: {
|
|
297
|
+
/** 目标文本 */
|
|
298
|
+
value: { type: String, default: "" },
|
|
299
|
+
/** 是否正在演示输入 */
|
|
300
|
+
active: { type: Boolean, default: !0 },
|
|
301
|
+
/** 每个字符间隔,单位 ms */
|
|
302
|
+
speed: { type: Number, default: 60 },
|
|
303
|
+
placeholder: { type: String, default: "等待 AI 输入…" },
|
|
304
|
+
/** 播放完后是否停留 */
|
|
305
|
+
loop: { type: Boolean, default: !1 },
|
|
306
|
+
aiTarget: { type: String, default: "" }
|
|
307
|
+
},
|
|
308
|
+
emits: ["done"],
|
|
309
|
+
setup(a, { expose: v, emit: i }) {
|
|
310
|
+
const o = a, s = i, b = w("ai-ghost-input"), n = N("");
|
|
311
|
+
let u = null;
|
|
312
|
+
function c() {
|
|
313
|
+
u && clearTimeout(u), u = null;
|
|
314
|
+
}
|
|
315
|
+
function f() {
|
|
316
|
+
if (c(), n.value = "", !o.active) {
|
|
317
|
+
n.value = o.value;
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
let y = 0;
|
|
321
|
+
const g = () => {
|
|
322
|
+
if (y >= o.value.length) {
|
|
323
|
+
s("done"), o.loop && setTimeout(f, 900);
|
|
324
|
+
return;
|
|
325
|
+
}
|
|
326
|
+
n.value = o.value.slice(0, ++y), u = setTimeout(g, o.speed);
|
|
327
|
+
};
|
|
328
|
+
g();
|
|
329
|
+
}
|
|
330
|
+
return M(
|
|
331
|
+
() => [o.value, o.active],
|
|
332
|
+
() => f(),
|
|
333
|
+
{ immediate: !0 }
|
|
334
|
+
), F(c), v({ restart: f }), C({
|
|
335
|
+
code: o.aiTarget,
|
|
336
|
+
getValue: () => ({ value: o.value, typed: n.value, active: o.active }),
|
|
337
|
+
trigger: () => f(),
|
|
338
|
+
isVisible: () => !0
|
|
339
|
+
}), (y, g) => (r(), l("span", {
|
|
340
|
+
class: t(e(b).b()),
|
|
341
|
+
"aria-label": a.active ? "AI 正在输入" : void 0
|
|
342
|
+
}, [
|
|
343
|
+
n.value ? (r(), l("span", ke, m(n.value), 1)) : (r(), l("span", {
|
|
344
|
+
key: 1,
|
|
345
|
+
class: t(e(b).be("placeholder"))
|
|
346
|
+
}, m(a.placeholder), 3)),
|
|
347
|
+
a.active ? (r(), l("span", {
|
|
348
|
+
key: 2,
|
|
349
|
+
class: t(e(b).be("caret"))
|
|
350
|
+
}, null, 2)) : x("", !0)
|
|
351
|
+
], 10, xe));
|
|
352
|
+
}
|
|
353
|
+
}), Ae = /* @__PURE__ */ T({
|
|
354
|
+
name: "GiAiInteractLock",
|
|
355
|
+
__name: "interact-lock",
|
|
356
|
+
props: {
|
|
357
|
+
active: { type: Boolean, default: !0 },
|
|
358
|
+
message: { type: String, default: "AI 正在执行操作,请稍候…" },
|
|
359
|
+
blur: { type: Boolean, default: !0 },
|
|
360
|
+
zIndex: { type: Number, default: 2500 },
|
|
361
|
+
aiTarget: { type: String, default: "" }
|
|
362
|
+
},
|
|
363
|
+
setup(a) {
|
|
364
|
+
const v = a, i = w("ai-interact-lock");
|
|
365
|
+
return C({
|
|
366
|
+
code: v.aiTarget,
|
|
367
|
+
getValue: () => ({ ...v }),
|
|
368
|
+
isVisible: () => !0
|
|
369
|
+
}), (o, s) => (r(), I(E, { to: "body" }, [
|
|
370
|
+
a.active ? (r(), l("div", {
|
|
371
|
+
key: 0,
|
|
372
|
+
class: t([e(i).b(), a.blur ? e(i).is("blur") : ""]),
|
|
373
|
+
style: P({ zIndex: a.zIndex }),
|
|
374
|
+
onClick: s[0] || (s[0] = Q(() => {
|
|
375
|
+
}, ["stop"])),
|
|
376
|
+
onPointerdown: s[1] || (s[1] = Q(() => {
|
|
377
|
+
}, ["stop"]))
|
|
378
|
+
}, [
|
|
379
|
+
a.message ? (r(), l("div", {
|
|
380
|
+
key: 0,
|
|
381
|
+
class: t(e(i).be("message"))
|
|
382
|
+
}, [
|
|
383
|
+
W(ne, {
|
|
384
|
+
name: "gi-MagicWand",
|
|
385
|
+
size: 14
|
|
386
|
+
}),
|
|
387
|
+
L(" " + m(a.message), 1)
|
|
388
|
+
], 2)) : x("", !0),
|
|
389
|
+
j(o.$slots, "default")
|
|
390
|
+
], 38)) : x("", !0)
|
|
391
|
+
]));
|
|
392
|
+
}
|
|
393
|
+
}), $e = /* @__PURE__ */ T({
|
|
394
|
+
name: "GiAiProgress",
|
|
395
|
+
__name: "progress",
|
|
396
|
+
props: {
|
|
397
|
+
title: { type: String, default: "AI 执行进度" },
|
|
398
|
+
percent: { type: Number, default: void 0 },
|
|
399
|
+
status: {
|
|
400
|
+
type: String,
|
|
401
|
+
values: ["running", "success", "error"],
|
|
402
|
+
default: "running"
|
|
403
|
+
},
|
|
404
|
+
steps: {
|
|
405
|
+
type: Array,
|
|
406
|
+
default: () => []
|
|
407
|
+
},
|
|
408
|
+
current: { type: Number, default: 0 },
|
|
409
|
+
aiTarget: { type: String, default: "" }
|
|
410
|
+
},
|
|
411
|
+
setup(a) {
|
|
412
|
+
const v = a, i = w("ai-progress"), o = S(() => typeof v.percent == "number" ? Math.min(Math.max(v.percent, 0), 100) : v.steps.length ? Math.round((v.current + (v.status === "success" ? 1 : 0)) / v.steps.length * 100) : v.status === "success" ? 100 : 0), s = S(() => v.status === "error" ? "执行失败" : v.status === "success" ? "已完成" : `${o.value}%`);
|
|
413
|
+
function b(n) {
|
|
414
|
+
return typeof n == "string" ? n : n.label || n.title || "";
|
|
415
|
+
}
|
|
416
|
+
return C({
|
|
417
|
+
code: v.aiTarget,
|
|
418
|
+
getValue: () => ({ ...v }),
|
|
419
|
+
isVisible: () => !0
|
|
420
|
+
}), (n, u) => (r(), l("div", {
|
|
421
|
+
class: t(e(i).b()),
|
|
422
|
+
"data-gi-region": "ai-progress"
|
|
423
|
+
}, [
|
|
424
|
+
p("div", {
|
|
425
|
+
class: t(e(i).be("head"))
|
|
426
|
+
}, [
|
|
427
|
+
p("span", {
|
|
428
|
+
class: t(e(i).be("title"))
|
|
429
|
+
}, m(a.title), 3),
|
|
430
|
+
p("span", null, m(s.value), 1)
|
|
431
|
+
], 2),
|
|
432
|
+
p("div", {
|
|
433
|
+
class: t(e(i).be("track"))
|
|
434
|
+
}, [
|
|
435
|
+
p("div", {
|
|
436
|
+
class: t([e(i).be("bar"), a.status !== "running" ? e(i).is(a.status) : ""]),
|
|
437
|
+
style: P({ width: `${o.value}%` })
|
|
438
|
+
}, null, 6)
|
|
439
|
+
], 2),
|
|
440
|
+
a.steps.length ? (r(), l("div", {
|
|
441
|
+
key: 0,
|
|
442
|
+
class: t(e(i).be("steps"))
|
|
443
|
+
}, [
|
|
444
|
+
(r(!0), l($, null, V(a.steps, (c, f) => (r(), l("span", {
|
|
445
|
+
key: f,
|
|
446
|
+
class: t([
|
|
447
|
+
e(i).be("step"),
|
|
448
|
+
f === a.current ? e(i).is("active") : "",
|
|
449
|
+
f < a.current ? e(i).is("done") : ""
|
|
450
|
+
])
|
|
451
|
+
}, [
|
|
452
|
+
W(ne, {
|
|
453
|
+
name: f < a.current ? "gi-Checkmark" : "gi-More",
|
|
454
|
+
size: 12
|
|
455
|
+
}, null, 8, ["name"]),
|
|
456
|
+
L(" " + m(b(c)), 1)
|
|
457
|
+
], 2))), 128))
|
|
458
|
+
], 2)) : x("", !0)
|
|
459
|
+
], 2));
|
|
460
|
+
}
|
|
461
|
+
}), we = ["onClick"], Ge = ["onClick"], Te = /* @__PURE__ */ T({
|
|
462
|
+
name: "GiAiReviewPanel",
|
|
463
|
+
__name: "review-panel",
|
|
464
|
+
props: {
|
|
465
|
+
title: { type: String, default: "AI 操作待确认" },
|
|
466
|
+
description: { type: String, default: "检查 AI 准备执行的变更,确认后才会写入。" },
|
|
467
|
+
items: {
|
|
468
|
+
type: Array,
|
|
469
|
+
default: () => []
|
|
470
|
+
},
|
|
471
|
+
aiTarget: { type: String, default: "" }
|
|
472
|
+
},
|
|
473
|
+
emits: ["approve", "reject", "approve-all", "reject-all"],
|
|
474
|
+
setup(a, { emit: v }) {
|
|
475
|
+
const i = a, o = v, s = w("ai-review-panel"), b = S(() => i.items.filter((u) => !u.status || u.status === "pending").length);
|
|
476
|
+
function n(u) {
|
|
477
|
+
return u === "destructive" ? "删除" : u === "high" ? "高风险" : u === "medium" ? "中风险" : "低风险";
|
|
478
|
+
}
|
|
479
|
+
return C({
|
|
480
|
+
code: i.aiTarget,
|
|
481
|
+
getValue: () => ({ items: i.items, pending: b.value }),
|
|
482
|
+
trigger: (u) => {
|
|
483
|
+
u === "approve-all" ? o("approve-all") : u === "reject-all" && o("reject-all");
|
|
484
|
+
},
|
|
485
|
+
execute: (u, c) => c != null && c.id && u === "approve" ? (o("approve", String(c.id)), !0) : c != null && c.id && u === "reject" ? (o("reject", String(c.id)), !0) : { ok: !1, reason: "unsupported" },
|
|
486
|
+
isVisible: () => !0
|
|
487
|
+
}), (u, c) => (r(), l("div", {
|
|
488
|
+
class: t(e(s).b()),
|
|
489
|
+
"data-gi-region": "ai-review-panel"
|
|
490
|
+
}, [
|
|
491
|
+
p("div", {
|
|
492
|
+
class: t(e(s).be("head"))
|
|
493
|
+
}, [
|
|
494
|
+
p("div", null, [
|
|
495
|
+
p("div", {
|
|
496
|
+
class: t(e(s).be("title"))
|
|
497
|
+
}, m(a.title), 3),
|
|
498
|
+
a.description ? (r(), l("div", {
|
|
499
|
+
key: 0,
|
|
500
|
+
class: t(e(s).be("desc"))
|
|
501
|
+
}, m(a.description), 3)) : x("", !0)
|
|
502
|
+
]),
|
|
503
|
+
p("span", {
|
|
504
|
+
class: t(e(s).be("count"))
|
|
505
|
+
}, "待确认 " + m(b.value) + " 项", 3)
|
|
506
|
+
], 2),
|
|
507
|
+
p("div", {
|
|
508
|
+
class: t(e(s).be("list"))
|
|
509
|
+
}, [
|
|
510
|
+
(r(!0), l($, null, V(a.items, (f) => (r(), l("div", {
|
|
511
|
+
key: f.id,
|
|
512
|
+
class: t(e(s).be("item"))
|
|
513
|
+
}, [
|
|
514
|
+
p("span", {
|
|
515
|
+
class: t([e(s).be("risk"), e(s).is(f.risk || "low")])
|
|
516
|
+
}, m(n(f.risk)), 3),
|
|
517
|
+
p("div", {
|
|
518
|
+
class: t(e(s).be("main"))
|
|
519
|
+
}, [
|
|
520
|
+
p("div", {
|
|
521
|
+
class: t(e(s).be("item-title"))
|
|
522
|
+
}, m(f.title), 3),
|
|
523
|
+
f.description ? (r(), l("div", {
|
|
524
|
+
key: 0,
|
|
525
|
+
class: t(e(s).be("item-desc"))
|
|
526
|
+
}, m(f.description), 3)) : x("", !0)
|
|
527
|
+
], 2),
|
|
528
|
+
p("div", {
|
|
529
|
+
class: t(e(s).be("actions"))
|
|
530
|
+
}, [
|
|
531
|
+
p("button", {
|
|
532
|
+
type: "button",
|
|
533
|
+
class: t(e(s).be("btn")),
|
|
534
|
+
onClick: (y) => o("reject", f.id)
|
|
535
|
+
}, "拒绝", 10, we),
|
|
536
|
+
p("button", {
|
|
537
|
+
type: "button",
|
|
538
|
+
class: t([e(s).be("btn"), e(s).is("primary")]),
|
|
539
|
+
onClick: (y) => o("approve", f.id)
|
|
540
|
+
}, "通过", 10, Ge)
|
|
541
|
+
], 2)
|
|
542
|
+
], 2))), 128)),
|
|
543
|
+
a.items.length ? x("", !0) : (r(), l("div", {
|
|
544
|
+
key: 0,
|
|
545
|
+
class: t(e(s).be("empty"))
|
|
546
|
+
}, "暂无待确认操作", 2))
|
|
547
|
+
], 2),
|
|
548
|
+
a.items.length ? (r(), l("div", {
|
|
549
|
+
key: 0,
|
|
550
|
+
class: t(e(s).be("footer"))
|
|
551
|
+
}, [
|
|
552
|
+
p("button", {
|
|
553
|
+
type: "button",
|
|
554
|
+
class: t(e(s).be("btn")),
|
|
555
|
+
onClick: c[0] || (c[0] = (f) => o("reject-all"))
|
|
556
|
+
}, "全部拒绝", 2),
|
|
557
|
+
p("button", {
|
|
558
|
+
type: "button",
|
|
559
|
+
class: t([e(s).be("btn"), e(s).is("primary")]),
|
|
560
|
+
onClick: c[1] || (c[1] = (f) => o("approve-all"))
|
|
561
|
+
}, "全部通过", 2)
|
|
562
|
+
], 2)) : x("", !0)
|
|
563
|
+
], 2));
|
|
564
|
+
}
|
|
565
|
+
}), Ce = /* @__PURE__ */ T({
|
|
566
|
+
name: "GiAiSummaryPanel",
|
|
567
|
+
__name: "summary-panel",
|
|
568
|
+
props: {
|
|
569
|
+
title: { type: String, default: "AI 执行结果" },
|
|
570
|
+
summary: { type: String, default: "" },
|
|
571
|
+
items: {
|
|
572
|
+
type: Array,
|
|
573
|
+
default: () => []
|
|
574
|
+
},
|
|
575
|
+
aiTarget: { type: String, default: "" }
|
|
576
|
+
},
|
|
577
|
+
setup(a) {
|
|
578
|
+
const v = a, i = w("ai-summary");
|
|
579
|
+
return C({
|
|
580
|
+
code: v.aiTarget,
|
|
581
|
+
getValue: () => ({ ...v }),
|
|
582
|
+
isVisible: () => !0
|
|
583
|
+
}), (o, s) => (r(), l("div", {
|
|
584
|
+
class: t(e(i).b()),
|
|
585
|
+
"data-gi-region": "ai-summary"
|
|
586
|
+
}, [
|
|
587
|
+
p("div", {
|
|
588
|
+
class: t(e(i).be("head"))
|
|
589
|
+
}, [
|
|
590
|
+
p("div", null, [
|
|
591
|
+
p("div", {
|
|
592
|
+
class: t(e(i).be("title"))
|
|
593
|
+
}, m(a.title), 3),
|
|
594
|
+
a.summary ? (r(), l("div", {
|
|
595
|
+
key: 0,
|
|
596
|
+
class: t(e(i).be("summary"))
|
|
597
|
+
}, m(a.summary), 3)) : x("", !0)
|
|
598
|
+
]),
|
|
599
|
+
j(o.$slots, "extra")
|
|
600
|
+
], 2),
|
|
601
|
+
a.items.length ? (r(), l("div", {
|
|
602
|
+
key: 0,
|
|
603
|
+
class: t(e(i).be("items"))
|
|
604
|
+
}, [
|
|
605
|
+
(r(!0), l($, null, V(a.items, (b) => (r(), l("div", {
|
|
606
|
+
key: b.label,
|
|
607
|
+
class: t(e(i).be("item"))
|
|
608
|
+
}, [
|
|
609
|
+
p("div", {
|
|
610
|
+
class: t(e(i).be("label"))
|
|
611
|
+
}, m(b.label), 3),
|
|
612
|
+
p("div", {
|
|
613
|
+
class: t(e(i).be("value"))
|
|
614
|
+
}, m(b.value), 3)
|
|
615
|
+
], 2))), 128))
|
|
616
|
+
], 2)) : x("", !0),
|
|
617
|
+
o.$slots.actions ? (r(), l("div", {
|
|
618
|
+
key: 1,
|
|
619
|
+
class: t(e(i).be("actions"))
|
|
620
|
+
}, [
|
|
621
|
+
j(o.$slots, "actions")
|
|
622
|
+
], 2)) : x("", !0)
|
|
623
|
+
], 2));
|
|
624
|
+
}
|
|
625
|
+
}), Ve = ["value"], Ie = /* @__PURE__ */ T({
|
|
626
|
+
name: "GiAiConsole",
|
|
627
|
+
__name: "console",
|
|
628
|
+
props: {
|
|
629
|
+
title: { type: String, default: "AI 能力控制台" },
|
|
630
|
+
aiTarget: { type: String, default: "" }
|
|
631
|
+
},
|
|
632
|
+
setup(a) {
|
|
633
|
+
const v = a, i = w("ai-console"), o = se(), s = N((o == null ? void 0 : o.registry.list()) || []), b = N(""), n = N("read"), u = N(""), c = N("");
|
|
634
|
+
let f = null;
|
|
635
|
+
function y() {
|
|
636
|
+
s.value = (o == null ? void 0 : o.registry.list()) || [], !b.value && s.value[0] && (b.value = s.value[0].code);
|
|
637
|
+
}
|
|
638
|
+
async function g() {
|
|
639
|
+
if (!o) return;
|
|
640
|
+
const k = A(u.value);
|
|
641
|
+
let d = "", h, R = !1;
|
|
642
|
+
if (k && typeof k == "object" && !Array.isArray(k)) {
|
|
643
|
+
const B = k;
|
|
644
|
+
d = String(B.command ?? B.name ?? ""), h = B.payload ?? {}, R = !!(B.confirmed ?? h.confirmed), R && (h = { ...h, confirmed: !0 });
|
|
645
|
+
} else
|
|
646
|
+
d = String(k ?? "");
|
|
647
|
+
const O = n.value === "command" ? {
|
|
648
|
+
type: "command",
|
|
649
|
+
target: b.value,
|
|
650
|
+
command: d,
|
|
651
|
+
payload: h,
|
|
652
|
+
confirmed: R
|
|
653
|
+
} : {
|
|
654
|
+
type: n.value,
|
|
655
|
+
target: b.value,
|
|
656
|
+
value: k,
|
|
657
|
+
confirmed: R
|
|
658
|
+
}, z = await o.executor.run(O);
|
|
659
|
+
c.value = JSON.stringify(z, null, 2);
|
|
660
|
+
}
|
|
661
|
+
function A(k) {
|
|
662
|
+
const d = k.trim();
|
|
663
|
+
if (d)
|
|
664
|
+
try {
|
|
665
|
+
return JSON.parse(d);
|
|
666
|
+
} catch {
|
|
667
|
+
return d;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
return J(() => {
|
|
671
|
+
y(), f = setInterval(y, 2e3);
|
|
672
|
+
}), F(() => {
|
|
673
|
+
f && clearInterval(f);
|
|
674
|
+
}), C({
|
|
675
|
+
code: v.aiTarget,
|
|
676
|
+
getValue: () => ({ targets: s.value, actionType: n.value, result: c.value }),
|
|
677
|
+
trigger: (k) => {
|
|
678
|
+
k === "refresh" ? y() : g();
|
|
679
|
+
},
|
|
680
|
+
isVisible: () => !0
|
|
681
|
+
}), (k, d) => (r(), l("div", {
|
|
682
|
+
class: t(e(i).b()),
|
|
683
|
+
"data-gi-region": "ai-console"
|
|
684
|
+
}, [
|
|
685
|
+
p("div", {
|
|
686
|
+
class: t(e(i).be("head"))
|
|
687
|
+
}, [
|
|
688
|
+
p("span", null, m(a.title), 1),
|
|
689
|
+
p("span", null, m(s.value.length) + " 个目标", 1)
|
|
690
|
+
], 2),
|
|
691
|
+
p("div", {
|
|
692
|
+
class: t(e(i).be("body"))
|
|
693
|
+
}, [
|
|
694
|
+
e(o) ? (r(), l($, { key: 1 }, [
|
|
695
|
+
p("div", {
|
|
696
|
+
class: t(e(i).be("row"))
|
|
697
|
+
}, [
|
|
698
|
+
p("label", {
|
|
699
|
+
class: t(e(i).be("label"))
|
|
700
|
+
}, "目标", 2),
|
|
701
|
+
q(p("select", {
|
|
702
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => b.value = h),
|
|
703
|
+
class: t(e(i).be("select"))
|
|
704
|
+
}, [
|
|
705
|
+
d[3] || (d[3] = p("option", { value: "" }, "选择语义目标", -1)),
|
|
706
|
+
(r(!0), l($, null, V(s.value, (h) => (r(), l("option", {
|
|
707
|
+
key: h.id,
|
|
708
|
+
value: h.code
|
|
709
|
+
}, m(h.code), 9, Ve))), 128))
|
|
710
|
+
], 2), [
|
|
711
|
+
[Z, b.value]
|
|
712
|
+
])
|
|
713
|
+
], 2),
|
|
714
|
+
p("div", {
|
|
715
|
+
class: t(e(i).be("row"))
|
|
716
|
+
}, [
|
|
717
|
+
p("label", {
|
|
718
|
+
class: t(e(i).be("label"))
|
|
719
|
+
}, "动作", 2),
|
|
720
|
+
q(p("select", {
|
|
721
|
+
"onUpdate:modelValue": d[1] || (d[1] = (h) => n.value = h),
|
|
722
|
+
class: t(e(i).be("select"))
|
|
723
|
+
}, [...d[4] || (d[4] = [
|
|
724
|
+
de('<option value="read">read 回读</option><option value="set">set 写入</option><option value="focus">focus 聚焦</option><option value="click">click 触发</option><option value="command">command 命令</option>', 5)
|
|
725
|
+
])], 2), [
|
|
726
|
+
[Z, n.value]
|
|
727
|
+
])
|
|
728
|
+
], 2),
|
|
729
|
+
p("div", {
|
|
730
|
+
class: t(e(i).be("row"))
|
|
731
|
+
}, [
|
|
732
|
+
p("label", {
|
|
733
|
+
class: t(e(i).be("label"))
|
|
734
|
+
}, "值/命令", 2),
|
|
735
|
+
q(p("input", {
|
|
736
|
+
"onUpdate:modelValue": d[2] || (d[2] = (h) => u.value = h),
|
|
737
|
+
class: t(e(i).be("input")),
|
|
738
|
+
placeholder: "JSON 或文本"
|
|
739
|
+
}, null, 2), [
|
|
740
|
+
[pe, u.value]
|
|
741
|
+
])
|
|
742
|
+
], 2),
|
|
743
|
+
p("div", {
|
|
744
|
+
class: t(e(i).be("actions"))
|
|
745
|
+
}, [
|
|
746
|
+
p("button", {
|
|
747
|
+
type: "button",
|
|
748
|
+
class: t([e(i).be("btn"), e(i).is("primary")]),
|
|
749
|
+
onClick: g
|
|
750
|
+
}, "执行", 2),
|
|
751
|
+
p("button", {
|
|
752
|
+
type: "button",
|
|
753
|
+
class: t(e(i).be("btn")),
|
|
754
|
+
onClick: y
|
|
755
|
+
}, "刷新目标", 2)
|
|
756
|
+
], 2),
|
|
757
|
+
p("div", {
|
|
758
|
+
class: t(e(i).be("targets"))
|
|
759
|
+
}, [
|
|
760
|
+
(r(!0), l($, null, V(s.value, (h) => (r(), l("div", {
|
|
761
|
+
key: h.id,
|
|
762
|
+
class: t(e(i).be("target"))
|
|
763
|
+
}, [
|
|
764
|
+
p("span", null, m(h.code), 1),
|
|
765
|
+
p("span", null, m(h.entity || h.field || "—"), 1)
|
|
766
|
+
], 2))), 128)),
|
|
767
|
+
s.value.length ? x("", !0) : (r(), l("div", {
|
|
768
|
+
key: 0,
|
|
769
|
+
class: t(e(i).be("target"))
|
|
770
|
+
}, "暂无注册目标", 2))
|
|
771
|
+
], 2),
|
|
772
|
+
c.value ? (r(), l("pre", {
|
|
773
|
+
key: 0,
|
|
774
|
+
class: t(e(i).be("result"))
|
|
775
|
+
}, m(c.value), 3)) : x("", !0)
|
|
776
|
+
], 64)) : (r(), l("div", {
|
|
777
|
+
key: 0,
|
|
778
|
+
class: t(e(i).be("targets"))
|
|
779
|
+
}, "未挂载 GiAiProvider,AI 目标不可用。", 2))
|
|
780
|
+
], 2)
|
|
781
|
+
], 2));
|
|
782
|
+
}
|
|
783
|
+
}), Ne = /* @__PURE__ */ T({
|
|
784
|
+
name: "GiAiGuide",
|
|
785
|
+
__name: "guide",
|
|
786
|
+
props: {
|
|
787
|
+
plan: { type: Object, default: null },
|
|
788
|
+
active: { type: Boolean, default: !0 },
|
|
789
|
+
aiTarget: { type: String, default: "" }
|
|
790
|
+
},
|
|
791
|
+
emits: ["step-change", "finish", "close"],
|
|
792
|
+
setup(a, { emit: v }) {
|
|
793
|
+
const i = a, o = v, s = w("ai-guide"), b = se(), n = (b == null ? void 0 : b.guide) || new ge(), u = N(n.getState());
|
|
794
|
+
let c = null;
|
|
795
|
+
function f(d) {
|
|
796
|
+
const h = d.running && d.index !== u.value.index;
|
|
797
|
+
u.value = d, h && o("step-change", d);
|
|
798
|
+
}
|
|
799
|
+
function y() {
|
|
800
|
+
i.plan && n.start(i.plan);
|
|
801
|
+
}
|
|
802
|
+
function g() {
|
|
803
|
+
const d = u.value.plan;
|
|
804
|
+
if (d) {
|
|
805
|
+
if (u.value.index >= d.steps.length - 1) {
|
|
806
|
+
n.stop(), o("finish");
|
|
807
|
+
return;
|
|
808
|
+
}
|
|
809
|
+
n.next();
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
function A() {
|
|
813
|
+
n.prev();
|
|
814
|
+
}
|
|
815
|
+
function k() {
|
|
816
|
+
n.stop(), o("close");
|
|
817
|
+
}
|
|
818
|
+
return J(() => {
|
|
819
|
+
c = n.subscribe(f), i.active && y();
|
|
820
|
+
}), M(
|
|
821
|
+
() => i.plan,
|
|
822
|
+
(d, h) => {
|
|
823
|
+
i.active && d && d.id !== (h == null ? void 0 : h.id) && y();
|
|
824
|
+
},
|
|
825
|
+
{ deep: !0 }
|
|
826
|
+
), M(
|
|
827
|
+
() => i.active,
|
|
828
|
+
(d) => {
|
|
829
|
+
d ? y() : n.stop();
|
|
830
|
+
}
|
|
831
|
+
), F(() => c == null ? void 0 : c()), C({
|
|
832
|
+
code: i.aiTarget,
|
|
833
|
+
getValue: () => ({ running: u.value.running, index: u.value.index, plan: u.value.plan }),
|
|
834
|
+
trigger: (d) => {
|
|
835
|
+
d === "next" ? g() : d === "prev" ? A() : d === "close" ? k() : y();
|
|
836
|
+
},
|
|
837
|
+
isVisible: () => !0
|
|
838
|
+
}), (d, h) => {
|
|
839
|
+
var R, O, z, B, X, D;
|
|
840
|
+
return u.value.running ? (r(), l("div", {
|
|
841
|
+
key: 0,
|
|
842
|
+
class: t(e(s).b()),
|
|
843
|
+
"data-gi-region": "ai-guide"
|
|
844
|
+
}, [
|
|
845
|
+
(R = u.value.current) != null && R.target ? (r(), I(re, {
|
|
846
|
+
key: 0,
|
|
847
|
+
target: u.value.current.target,
|
|
848
|
+
visible: !0
|
|
849
|
+
}, null, 8, ["target"])) : x("", !0),
|
|
850
|
+
W(le, {
|
|
851
|
+
open: u.value.running,
|
|
852
|
+
title: ((O = u.value.current) == null ? void 0 : O.title) || ((z = a.plan) == null ? void 0 : z.title) || "",
|
|
853
|
+
description: ((B = u.value.current) == null ? void 0 : B.description) || "",
|
|
854
|
+
target: ((X = u.value.current) == null ? void 0 : X.target) || "",
|
|
855
|
+
current: u.value.index,
|
|
856
|
+
total: ((D = u.value.plan) == null ? void 0 : D.steps.length) || 0,
|
|
857
|
+
onNext: g,
|
|
858
|
+
onPrevious: A,
|
|
859
|
+
onClose: k
|
|
860
|
+
}, null, 8, ["open", "title", "description", "target", "current", "total"])
|
|
861
|
+
], 2)) : x("", !0);
|
|
862
|
+
};
|
|
863
|
+
}
|
|
864
|
+
}), Pe = /* @__PURE__ */ T({
|
|
865
|
+
name: "GiAiPageRenderer",
|
|
866
|
+
__name: "page-renderer",
|
|
867
|
+
props: {
|
|
868
|
+
spec: { type: Object, default: () => ({ blocks: [] }) },
|
|
869
|
+
title: { type: String, default: "" },
|
|
870
|
+
subtitle: { type: String, default: "" },
|
|
871
|
+
aiTarget: { type: String, default: "" }
|
|
872
|
+
},
|
|
873
|
+
emits: ["action"],
|
|
874
|
+
setup(a, { emit: v }) {
|
|
875
|
+
const i = _(() => import("../../chunks/chart-pxel8ocW.mjs")), o = _(() => import("../../chunks/chart-card-CkzKgoNn.mjs")), s = a, b = v, n = w("ai-page"), u = S(() => {
|
|
876
|
+
var f;
|
|
877
|
+
return ((f = s.spec) == null ? void 0 : f.blocks) || [];
|
|
878
|
+
});
|
|
879
|
+
function c(f) {
|
|
880
|
+
b("action", f);
|
|
881
|
+
}
|
|
882
|
+
return C({
|
|
883
|
+
code: s.aiTarget,
|
|
884
|
+
getValue: () => ({ spec: s.spec, title: s.title }),
|
|
885
|
+
execute: (f, y) => {
|
|
886
|
+
if (f === "action" && (y != null && y.label)) {
|
|
887
|
+
const g = u.value.flatMap((A) => A.actions || []).find((A) => A.label === y.label);
|
|
888
|
+
if (g)
|
|
889
|
+
return b("action", g), !0;
|
|
890
|
+
}
|
|
891
|
+
return { ok: !1, reason: "unsupported" };
|
|
892
|
+
},
|
|
893
|
+
isVisible: () => !0
|
|
894
|
+
}), (f, y) => (r(), l("div", {
|
|
895
|
+
class: t(e(n).b()),
|
|
896
|
+
"data-gi-region": "ai-page"
|
|
897
|
+
}, [
|
|
898
|
+
(r(!0), l($, null, V(u.value, (g, A) => {
|
|
899
|
+
var k;
|
|
900
|
+
return r(), l($, { key: A }, [
|
|
901
|
+
g.type === "hero" ? (r(), l("section", {
|
|
902
|
+
key: 0,
|
|
903
|
+
class: t(e(n).be("hero"))
|
|
904
|
+
}, [
|
|
905
|
+
p("div", {
|
|
906
|
+
class: t(e(n).be("hero-main"))
|
|
907
|
+
}, [
|
|
908
|
+
p("h1", {
|
|
909
|
+
class: t(e(n).be("hero-title"))
|
|
910
|
+
}, m(g.title), 3),
|
|
911
|
+
g.subtitle ? (r(), l("p", {
|
|
912
|
+
key: 0,
|
|
913
|
+
class: t(e(n).be("hero-subtitle"))
|
|
914
|
+
}, m(g.subtitle), 3)) : x("", !0)
|
|
915
|
+
], 2),
|
|
916
|
+
(k = g.actions) != null && k.length ? (r(), l("div", {
|
|
917
|
+
key: 0,
|
|
918
|
+
class: t(e(n).be("hero-actions"))
|
|
919
|
+
}, [
|
|
920
|
+
(r(!0), l($, null, V(g.actions, (d) => (r(), I(te, {
|
|
921
|
+
key: d.label,
|
|
922
|
+
type: d.type || "default",
|
|
923
|
+
disabled: d.disabled,
|
|
924
|
+
onClick: (h) => c(d)
|
|
925
|
+
}, {
|
|
926
|
+
default: Y(() => [
|
|
927
|
+
L(m(d.label), 1)
|
|
928
|
+
]),
|
|
929
|
+
_: 2
|
|
930
|
+
}, 1032, ["type", "disabled", "onClick"]))), 128))
|
|
931
|
+
], 2)) : x("", !0)
|
|
932
|
+
], 2)) : g.type === "text" ? (r(), l("section", {
|
|
933
|
+
key: 1,
|
|
934
|
+
class: t(e(n).be("text"))
|
|
935
|
+
}, [
|
|
936
|
+
g.title ? (r(), l("h3", {
|
|
937
|
+
key: 0,
|
|
938
|
+
class: t(e(n).be("section-title"))
|
|
939
|
+
}, m(g.title), 3)) : x("", !0),
|
|
940
|
+
p("p", {
|
|
941
|
+
class: t(e(n).be("paragraph"))
|
|
942
|
+
}, m(g.content), 3)
|
|
943
|
+
], 2)) : g.type === "metrics" ? (r(), l("section", {
|
|
944
|
+
key: 2,
|
|
945
|
+
class: t(e(n).be("metrics"))
|
|
946
|
+
}, [
|
|
947
|
+
g.title ? (r(), l("h3", {
|
|
948
|
+
key: 0,
|
|
949
|
+
class: t(e(n).be("section-title"))
|
|
950
|
+
}, m(g.title), 3)) : x("", !0),
|
|
951
|
+
p("div", {
|
|
952
|
+
class: t(e(n).be("metric-grid"))
|
|
953
|
+
}, [
|
|
954
|
+
(r(!0), l($, null, V(g.items, (d) => (r(), l("div", {
|
|
955
|
+
key: d.label,
|
|
956
|
+
class: t(e(n).be("metric"))
|
|
957
|
+
}, [
|
|
958
|
+
p("div", {
|
|
959
|
+
class: t(e(n).be("metric-label"))
|
|
960
|
+
}, m(d.label), 3),
|
|
961
|
+
p("div", {
|
|
962
|
+
class: t(e(n).be("metric-value"))
|
|
963
|
+
}, m(d.value), 3),
|
|
964
|
+
d.trend ? (r(), l("div", {
|
|
965
|
+
key: 0,
|
|
966
|
+
class: t([e(n).be("metric-trend"), e(n).is(d.status || "flat")])
|
|
967
|
+
}, m(d.trend), 3)) : x("", !0)
|
|
968
|
+
], 2))), 128))
|
|
969
|
+
], 2)
|
|
970
|
+
], 2)) : g.type === "chart" ? (r(), l("section", {
|
|
971
|
+
key: 3,
|
|
972
|
+
class: t(e(n).be("chart"))
|
|
973
|
+
}, [
|
|
974
|
+
g.title ? (r(), I(e(o), ee({
|
|
975
|
+
key: 0,
|
|
976
|
+
title: g.title,
|
|
977
|
+
insight: g.insight || ""
|
|
978
|
+
}, { ref_for: !0 }, g.chart), null, 16, ["title", "insight"])) : (r(), I(e(i), ee({
|
|
979
|
+
key: 1,
|
|
980
|
+
ref_for: !0
|
|
981
|
+
}, g.chart), null, 16))
|
|
982
|
+
], 2)) : g.type === "card" ? (r(), l("section", {
|
|
983
|
+
key: 4,
|
|
984
|
+
class: t(e(n).be("card-wrap"))
|
|
985
|
+
}, [
|
|
986
|
+
W(fe, {
|
|
987
|
+
header: g.title,
|
|
988
|
+
"body-padding": "16px"
|
|
989
|
+
}, {
|
|
990
|
+
default: Y(() => {
|
|
991
|
+
var d;
|
|
992
|
+
return [
|
|
993
|
+
g.description ? (r(), l("p", {
|
|
994
|
+
key: 0,
|
|
995
|
+
class: t(e(n).be("paragraph"))
|
|
996
|
+
}, m(g.description), 3)) : x("", !0),
|
|
997
|
+
(d = g.items) != null && d.length ? (r(), l("div", {
|
|
998
|
+
key: 1,
|
|
999
|
+
class: t(e(n).be("kv"))
|
|
1000
|
+
}, [
|
|
1001
|
+
(r(!0), l($, null, V(g.items, (h) => (r(), l("div", {
|
|
1002
|
+
key: h.label,
|
|
1003
|
+
class: t(e(n).be("kv-item"))
|
|
1004
|
+
}, [
|
|
1005
|
+
p("span", {
|
|
1006
|
+
class: t(e(n).be("kv-label"))
|
|
1007
|
+
}, m(h.label), 3),
|
|
1008
|
+
p("span", {
|
|
1009
|
+
class: t(e(n).be("kv-value"))
|
|
1010
|
+
}, m(h.value), 3)
|
|
1011
|
+
], 2))), 128))
|
|
1012
|
+
], 2)) : x("", !0)
|
|
1013
|
+
];
|
|
1014
|
+
}),
|
|
1015
|
+
_: 2
|
|
1016
|
+
}, 1032, ["header"])
|
|
1017
|
+
], 2)) : g.type === "list" ? (r(), l("section", {
|
|
1018
|
+
key: 5,
|
|
1019
|
+
class: t(e(n).be("list"))
|
|
1020
|
+
}, [
|
|
1021
|
+
g.title ? (r(), l("h3", {
|
|
1022
|
+
key: 0,
|
|
1023
|
+
class: t(e(n).be("section-title"))
|
|
1024
|
+
}, m(g.title), 3)) : x("", !0),
|
|
1025
|
+
p("div", {
|
|
1026
|
+
class: t(e(n).be("list-body"))
|
|
1027
|
+
}, [
|
|
1028
|
+
(r(!0), l($, null, V(g.items, (d, h) => (r(), l("div", {
|
|
1029
|
+
key: h,
|
|
1030
|
+
class: t(e(n).be("list-item"))
|
|
1031
|
+
}, [
|
|
1032
|
+
p("div", {
|
|
1033
|
+
class: t(e(n).be("list-main"))
|
|
1034
|
+
}, [
|
|
1035
|
+
p("div", {
|
|
1036
|
+
class: t(e(n).be("list-title"))
|
|
1037
|
+
}, m(d.title), 3),
|
|
1038
|
+
d.description ? (r(), l("div", {
|
|
1039
|
+
key: 0,
|
|
1040
|
+
class: t(e(n).be("list-desc"))
|
|
1041
|
+
}, m(d.description), 3)) : x("", !0)
|
|
1042
|
+
], 2),
|
|
1043
|
+
d.status ? (r(), l("span", {
|
|
1044
|
+
key: 0,
|
|
1045
|
+
class: t(e(n).be("list-status"))
|
|
1046
|
+
}, m(d.status), 3)) : x("", !0)
|
|
1047
|
+
], 2))), 128))
|
|
1048
|
+
], 2)
|
|
1049
|
+
], 2)) : g.type === "actions" ? (r(), l("section", {
|
|
1050
|
+
key: 6,
|
|
1051
|
+
class: t(e(n).be("actions"))
|
|
1052
|
+
}, [
|
|
1053
|
+
(r(!0), l($, null, V(g.actions, (d) => (r(), I(te, {
|
|
1054
|
+
key: d.label,
|
|
1055
|
+
type: d.type || "default",
|
|
1056
|
+
disabled: d.disabled,
|
|
1057
|
+
onClick: (h) => c(d)
|
|
1058
|
+
}, {
|
|
1059
|
+
default: Y(() => [
|
|
1060
|
+
L(m(d.label), 1)
|
|
1061
|
+
]),
|
|
1062
|
+
_: 2
|
|
1063
|
+
}, 1032, ["type", "disabled", "onClick"]))), 128))
|
|
1064
|
+
], 2)) : x("", !0)
|
|
1065
|
+
], 64);
|
|
1066
|
+
}), 128))
|
|
1067
|
+
], 2));
|
|
1068
|
+
}
|
|
1069
|
+
}), Re = G(me, "GiAiProvider"), Be = G(be, "GiAiCursor"), Me = G(re, "GiAiFocusRing"), je = G(ye, "GiAiSpotlight"), Ee = G(le, "GiAiStepTip"), Oe = G(Se, "GiAiGhostInput"), ze = G(Ae, "GiAiInteractLock"), Le = G($e, "GiAiProgress"), Fe = G(Te, "GiAiReviewPanel"), We = G(Ce, "GiAiSummaryPanel"), Ue = G(Ie, "GiAiConsole"), qe = G(Ne, "GiAiGuide"), Ye = G(Pe, "GiAiPageRenderer"), Ze = {
|
|
1070
|
+
install(a) {
|
|
1071
|
+
[
|
|
1072
|
+
Re,
|
|
1073
|
+
Be,
|
|
1074
|
+
Me,
|
|
1075
|
+
je,
|
|
1076
|
+
Ee,
|
|
1077
|
+
Oe,
|
|
1078
|
+
ze,
|
|
1079
|
+
Le,
|
|
1080
|
+
Fe,
|
|
1081
|
+
We,
|
|
1082
|
+
Ue,
|
|
1083
|
+
qe,
|
|
1084
|
+
Ye
|
|
1085
|
+
].forEach((v) => a.use(v));
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
export {
|
|
1089
|
+
ae as AI_RUNTIME_KEY,
|
|
1090
|
+
Ue as GiAiConsole,
|
|
1091
|
+
Be as GiAiCursor,
|
|
1092
|
+
Me as GiAiFocusRing,
|
|
1093
|
+
Oe as GiAiGhostInput,
|
|
1094
|
+
qe as GiAiGuide,
|
|
1095
|
+
ze as GiAiInteractLock,
|
|
1096
|
+
Ye as GiAiPageRenderer,
|
|
1097
|
+
Ze as GiAiPlugin,
|
|
1098
|
+
Le as GiAiProgress,
|
|
1099
|
+
Re as GiAiProvider,
|
|
1100
|
+
Fe as GiAiReviewPanel,
|
|
1101
|
+
je as GiAiSpotlight,
|
|
1102
|
+
Ee as GiAiStepTip,
|
|
1103
|
+
We as GiAiSummaryPanel,
|
|
1104
|
+
Ze as default,
|
|
1105
|
+
se as useAi,
|
|
1106
|
+
U as useTargetRect
|
|
1107
|
+
};
|