@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,426 @@
|
|
|
1
|
+
export declare const GiSwitch: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
readonly modelValue: {
|
|
4
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
5
|
+
readonly default: false;
|
|
6
|
+
};
|
|
7
|
+
readonly disabled: {
|
|
8
|
+
readonly type: BooleanConstructor;
|
|
9
|
+
readonly default: undefined;
|
|
10
|
+
};
|
|
11
|
+
readonly loading: {
|
|
12
|
+
readonly type: BooleanConstructor;
|
|
13
|
+
readonly default: false;
|
|
14
|
+
};
|
|
15
|
+
readonly size: {
|
|
16
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchSize>;
|
|
17
|
+
readonly default: undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly width: {
|
|
20
|
+
readonly type: import('vue').PropType<number | string>;
|
|
21
|
+
readonly default: "";
|
|
22
|
+
};
|
|
23
|
+
readonly inlinePrompt: {
|
|
24
|
+
readonly type: BooleanConstructor;
|
|
25
|
+
readonly default: false;
|
|
26
|
+
};
|
|
27
|
+
readonly dotText: {
|
|
28
|
+
readonly type: BooleanConstructor;
|
|
29
|
+
readonly default: false;
|
|
30
|
+
};
|
|
31
|
+
readonly activeText: {
|
|
32
|
+
readonly type: StringConstructor;
|
|
33
|
+
readonly default: "";
|
|
34
|
+
};
|
|
35
|
+
readonly inactiveText: {
|
|
36
|
+
readonly type: StringConstructor;
|
|
37
|
+
readonly default: "";
|
|
38
|
+
};
|
|
39
|
+
readonly activeIcon: {
|
|
40
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
41
|
+
readonly default: "";
|
|
42
|
+
};
|
|
43
|
+
readonly inactiveIcon: {
|
|
44
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
45
|
+
readonly default: "";
|
|
46
|
+
};
|
|
47
|
+
readonly activeActionIcon: {
|
|
48
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
49
|
+
readonly default: "";
|
|
50
|
+
};
|
|
51
|
+
readonly inactiveActionIcon: {
|
|
52
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
53
|
+
readonly default: "";
|
|
54
|
+
};
|
|
55
|
+
readonly activeValue: {
|
|
56
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
57
|
+
readonly default: true;
|
|
58
|
+
};
|
|
59
|
+
readonly inactiveValue: {
|
|
60
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
61
|
+
readonly default: false;
|
|
62
|
+
};
|
|
63
|
+
readonly activeColor: {
|
|
64
|
+
readonly type: StringConstructor;
|
|
65
|
+
readonly default: "";
|
|
66
|
+
};
|
|
67
|
+
readonly inactiveColor: {
|
|
68
|
+
readonly type: StringConstructor;
|
|
69
|
+
readonly default: "";
|
|
70
|
+
};
|
|
71
|
+
readonly activeClass: {
|
|
72
|
+
readonly type: StringConstructor;
|
|
73
|
+
readonly default: "";
|
|
74
|
+
};
|
|
75
|
+
readonly name: {
|
|
76
|
+
readonly type: StringConstructor;
|
|
77
|
+
readonly default: "";
|
|
78
|
+
};
|
|
79
|
+
readonly validateEvent: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: true;
|
|
82
|
+
};
|
|
83
|
+
readonly beforeChange: {
|
|
84
|
+
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
85
|
+
readonly default: undefined;
|
|
86
|
+
};
|
|
87
|
+
readonly id: {
|
|
88
|
+
readonly type: StringConstructor;
|
|
89
|
+
readonly default: "";
|
|
90
|
+
};
|
|
91
|
+
readonly tabindex: {
|
|
92
|
+
readonly type: import('vue').PropType<string | number>;
|
|
93
|
+
readonly default: 0;
|
|
94
|
+
};
|
|
95
|
+
readonly ariaLabel: {
|
|
96
|
+
readonly type: StringConstructor;
|
|
97
|
+
readonly default: "";
|
|
98
|
+
};
|
|
99
|
+
readonly aiTarget: {
|
|
100
|
+
readonly type: StringConstructor;
|
|
101
|
+
readonly default: "";
|
|
102
|
+
};
|
|
103
|
+
}>> & Readonly<{
|
|
104
|
+
onInput?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
105
|
+
"onUpdate:modelValue"?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
106
|
+
onChange?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
107
|
+
}>, {
|
|
108
|
+
focus: () => void | undefined;
|
|
109
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
110
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
111
|
+
input: (value: import('./src/switch').SwitchValue) => any;
|
|
112
|
+
"update:modelValue": (value: import('./src/switch').SwitchValue) => any;
|
|
113
|
+
change: (value: import('./src/switch').SwitchValue) => any;
|
|
114
|
+
}, import('vue').PublicProps, {
|
|
115
|
+
readonly name: string;
|
|
116
|
+
readonly size: import('./src/switch').SwitchSize;
|
|
117
|
+
readonly aiTarget: string;
|
|
118
|
+
readonly width: string | number;
|
|
119
|
+
readonly disabled: boolean;
|
|
120
|
+
readonly loading: boolean;
|
|
121
|
+
readonly tabindex: string | number;
|
|
122
|
+
readonly modelValue: import('./src/switch').SwitchValue;
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly validateEvent: boolean;
|
|
125
|
+
readonly ariaLabel: string;
|
|
126
|
+
readonly inlinePrompt: boolean;
|
|
127
|
+
readonly dotText: boolean;
|
|
128
|
+
readonly activeText: string;
|
|
129
|
+
readonly inactiveText: string;
|
|
130
|
+
readonly activeIcon: string | import('vue').Component;
|
|
131
|
+
readonly inactiveIcon: string | import('vue').Component;
|
|
132
|
+
readonly activeActionIcon: string | import('vue').Component;
|
|
133
|
+
readonly inactiveActionIcon: string | import('vue').Component;
|
|
134
|
+
readonly activeValue: import('./src/switch').SwitchValue;
|
|
135
|
+
readonly inactiveValue: import('./src/switch').SwitchValue;
|
|
136
|
+
readonly activeColor: string;
|
|
137
|
+
readonly inactiveColor: string;
|
|
138
|
+
readonly activeClass: string;
|
|
139
|
+
readonly beforeChange: () => Promise<boolean> | boolean;
|
|
140
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
141
|
+
rootRef: HTMLSpanElement;
|
|
142
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
143
|
+
P: {};
|
|
144
|
+
B: {};
|
|
145
|
+
D: {};
|
|
146
|
+
C: {};
|
|
147
|
+
M: {};
|
|
148
|
+
Defaults: {};
|
|
149
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
150
|
+
readonly modelValue: {
|
|
151
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
152
|
+
readonly default: false;
|
|
153
|
+
};
|
|
154
|
+
readonly disabled: {
|
|
155
|
+
readonly type: BooleanConstructor;
|
|
156
|
+
readonly default: undefined;
|
|
157
|
+
};
|
|
158
|
+
readonly loading: {
|
|
159
|
+
readonly type: BooleanConstructor;
|
|
160
|
+
readonly default: false;
|
|
161
|
+
};
|
|
162
|
+
readonly size: {
|
|
163
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchSize>;
|
|
164
|
+
readonly default: undefined;
|
|
165
|
+
};
|
|
166
|
+
readonly width: {
|
|
167
|
+
readonly type: import('vue').PropType<number | string>;
|
|
168
|
+
readonly default: "";
|
|
169
|
+
};
|
|
170
|
+
readonly inlinePrompt: {
|
|
171
|
+
readonly type: BooleanConstructor;
|
|
172
|
+
readonly default: false;
|
|
173
|
+
};
|
|
174
|
+
readonly dotText: {
|
|
175
|
+
readonly type: BooleanConstructor;
|
|
176
|
+
readonly default: false;
|
|
177
|
+
};
|
|
178
|
+
readonly activeText: {
|
|
179
|
+
readonly type: StringConstructor;
|
|
180
|
+
readonly default: "";
|
|
181
|
+
};
|
|
182
|
+
readonly inactiveText: {
|
|
183
|
+
readonly type: StringConstructor;
|
|
184
|
+
readonly default: "";
|
|
185
|
+
};
|
|
186
|
+
readonly activeIcon: {
|
|
187
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
188
|
+
readonly default: "";
|
|
189
|
+
};
|
|
190
|
+
readonly inactiveIcon: {
|
|
191
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
192
|
+
readonly default: "";
|
|
193
|
+
};
|
|
194
|
+
readonly activeActionIcon: {
|
|
195
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
196
|
+
readonly default: "";
|
|
197
|
+
};
|
|
198
|
+
readonly inactiveActionIcon: {
|
|
199
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
200
|
+
readonly default: "";
|
|
201
|
+
};
|
|
202
|
+
readonly activeValue: {
|
|
203
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
204
|
+
readonly default: true;
|
|
205
|
+
};
|
|
206
|
+
readonly inactiveValue: {
|
|
207
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
208
|
+
readonly default: false;
|
|
209
|
+
};
|
|
210
|
+
readonly activeColor: {
|
|
211
|
+
readonly type: StringConstructor;
|
|
212
|
+
readonly default: "";
|
|
213
|
+
};
|
|
214
|
+
readonly inactiveColor: {
|
|
215
|
+
readonly type: StringConstructor;
|
|
216
|
+
readonly default: "";
|
|
217
|
+
};
|
|
218
|
+
readonly activeClass: {
|
|
219
|
+
readonly type: StringConstructor;
|
|
220
|
+
readonly default: "";
|
|
221
|
+
};
|
|
222
|
+
readonly name: {
|
|
223
|
+
readonly type: StringConstructor;
|
|
224
|
+
readonly default: "";
|
|
225
|
+
};
|
|
226
|
+
readonly validateEvent: {
|
|
227
|
+
readonly type: BooleanConstructor;
|
|
228
|
+
readonly default: true;
|
|
229
|
+
};
|
|
230
|
+
readonly beforeChange: {
|
|
231
|
+
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
232
|
+
readonly default: undefined;
|
|
233
|
+
};
|
|
234
|
+
readonly id: {
|
|
235
|
+
readonly type: StringConstructor;
|
|
236
|
+
readonly default: "";
|
|
237
|
+
};
|
|
238
|
+
readonly tabindex: {
|
|
239
|
+
readonly type: import('vue').PropType<string | number>;
|
|
240
|
+
readonly default: 0;
|
|
241
|
+
};
|
|
242
|
+
readonly ariaLabel: {
|
|
243
|
+
readonly type: StringConstructor;
|
|
244
|
+
readonly default: "";
|
|
245
|
+
};
|
|
246
|
+
readonly aiTarget: {
|
|
247
|
+
readonly type: StringConstructor;
|
|
248
|
+
readonly default: "";
|
|
249
|
+
};
|
|
250
|
+
}>> & Readonly<{
|
|
251
|
+
onInput?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
252
|
+
"onUpdate:modelValue"?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
253
|
+
onChange?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
254
|
+
}>, {
|
|
255
|
+
focus: () => void | undefined;
|
|
256
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
257
|
+
}, {}, {}, {}, {
|
|
258
|
+
readonly name: string;
|
|
259
|
+
readonly size: import('./src/switch').SwitchSize;
|
|
260
|
+
readonly aiTarget: string;
|
|
261
|
+
readonly width: string | number;
|
|
262
|
+
readonly disabled: boolean;
|
|
263
|
+
readonly loading: boolean;
|
|
264
|
+
readonly tabindex: string | number;
|
|
265
|
+
readonly modelValue: import('./src/switch').SwitchValue;
|
|
266
|
+
readonly id: string;
|
|
267
|
+
readonly validateEvent: boolean;
|
|
268
|
+
readonly ariaLabel: string;
|
|
269
|
+
readonly inlinePrompt: boolean;
|
|
270
|
+
readonly dotText: boolean;
|
|
271
|
+
readonly activeText: string;
|
|
272
|
+
readonly inactiveText: string;
|
|
273
|
+
readonly activeIcon: string | import('vue').Component;
|
|
274
|
+
readonly inactiveIcon: string | import('vue').Component;
|
|
275
|
+
readonly activeActionIcon: string | import('vue').Component;
|
|
276
|
+
readonly inactiveActionIcon: string | import('vue').Component;
|
|
277
|
+
readonly activeValue: import('./src/switch').SwitchValue;
|
|
278
|
+
readonly inactiveValue: import('./src/switch').SwitchValue;
|
|
279
|
+
readonly activeColor: string;
|
|
280
|
+
readonly inactiveColor: string;
|
|
281
|
+
readonly activeClass: string;
|
|
282
|
+
readonly beforeChange: () => Promise<boolean> | boolean;
|
|
283
|
+
}>;
|
|
284
|
+
__isFragment?: never;
|
|
285
|
+
__isTeleport?: never;
|
|
286
|
+
__isSuspense?: never;
|
|
287
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
288
|
+
readonly modelValue: {
|
|
289
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
290
|
+
readonly default: false;
|
|
291
|
+
};
|
|
292
|
+
readonly disabled: {
|
|
293
|
+
readonly type: BooleanConstructor;
|
|
294
|
+
readonly default: undefined;
|
|
295
|
+
};
|
|
296
|
+
readonly loading: {
|
|
297
|
+
readonly type: BooleanConstructor;
|
|
298
|
+
readonly default: false;
|
|
299
|
+
};
|
|
300
|
+
readonly size: {
|
|
301
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchSize>;
|
|
302
|
+
readonly default: undefined;
|
|
303
|
+
};
|
|
304
|
+
readonly width: {
|
|
305
|
+
readonly type: import('vue').PropType<number | string>;
|
|
306
|
+
readonly default: "";
|
|
307
|
+
};
|
|
308
|
+
readonly inlinePrompt: {
|
|
309
|
+
readonly type: BooleanConstructor;
|
|
310
|
+
readonly default: false;
|
|
311
|
+
};
|
|
312
|
+
readonly dotText: {
|
|
313
|
+
readonly type: BooleanConstructor;
|
|
314
|
+
readonly default: false;
|
|
315
|
+
};
|
|
316
|
+
readonly activeText: {
|
|
317
|
+
readonly type: StringConstructor;
|
|
318
|
+
readonly default: "";
|
|
319
|
+
};
|
|
320
|
+
readonly inactiveText: {
|
|
321
|
+
readonly type: StringConstructor;
|
|
322
|
+
readonly default: "";
|
|
323
|
+
};
|
|
324
|
+
readonly activeIcon: {
|
|
325
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
326
|
+
readonly default: "";
|
|
327
|
+
};
|
|
328
|
+
readonly inactiveIcon: {
|
|
329
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
330
|
+
readonly default: "";
|
|
331
|
+
};
|
|
332
|
+
readonly activeActionIcon: {
|
|
333
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
334
|
+
readonly default: "";
|
|
335
|
+
};
|
|
336
|
+
readonly inactiveActionIcon: {
|
|
337
|
+
readonly type: import('vue').PropType<string | import('vue').Component>;
|
|
338
|
+
readonly default: "";
|
|
339
|
+
};
|
|
340
|
+
readonly activeValue: {
|
|
341
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
342
|
+
readonly default: true;
|
|
343
|
+
};
|
|
344
|
+
readonly inactiveValue: {
|
|
345
|
+
readonly type: import('vue').PropType<import('./src/switch').SwitchValue>;
|
|
346
|
+
readonly default: false;
|
|
347
|
+
};
|
|
348
|
+
readonly activeColor: {
|
|
349
|
+
readonly type: StringConstructor;
|
|
350
|
+
readonly default: "";
|
|
351
|
+
};
|
|
352
|
+
readonly inactiveColor: {
|
|
353
|
+
readonly type: StringConstructor;
|
|
354
|
+
readonly default: "";
|
|
355
|
+
};
|
|
356
|
+
readonly activeClass: {
|
|
357
|
+
readonly type: StringConstructor;
|
|
358
|
+
readonly default: "";
|
|
359
|
+
};
|
|
360
|
+
readonly name: {
|
|
361
|
+
readonly type: StringConstructor;
|
|
362
|
+
readonly default: "";
|
|
363
|
+
};
|
|
364
|
+
readonly validateEvent: {
|
|
365
|
+
readonly type: BooleanConstructor;
|
|
366
|
+
readonly default: true;
|
|
367
|
+
};
|
|
368
|
+
readonly beforeChange: {
|
|
369
|
+
readonly type: import('vue').PropType<() => Promise<boolean> | boolean>;
|
|
370
|
+
readonly default: undefined;
|
|
371
|
+
};
|
|
372
|
+
readonly id: {
|
|
373
|
+
readonly type: StringConstructor;
|
|
374
|
+
readonly default: "";
|
|
375
|
+
};
|
|
376
|
+
readonly tabindex: {
|
|
377
|
+
readonly type: import('vue').PropType<string | number>;
|
|
378
|
+
readonly default: 0;
|
|
379
|
+
};
|
|
380
|
+
readonly ariaLabel: {
|
|
381
|
+
readonly type: StringConstructor;
|
|
382
|
+
readonly default: "";
|
|
383
|
+
};
|
|
384
|
+
readonly aiTarget: {
|
|
385
|
+
readonly type: StringConstructor;
|
|
386
|
+
readonly default: "";
|
|
387
|
+
};
|
|
388
|
+
}>> & Readonly<{
|
|
389
|
+
onInput?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
390
|
+
"onUpdate:modelValue"?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
391
|
+
onChange?: ((value: import('./src/switch').SwitchValue) => any) | undefined;
|
|
392
|
+
}>, {
|
|
393
|
+
focus: () => void | undefined;
|
|
394
|
+
checked: import('vue').ComputedRef<boolean>;
|
|
395
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
396
|
+
input: (value: import('./src/switch').SwitchValue) => any;
|
|
397
|
+
"update:modelValue": (value: import('./src/switch').SwitchValue) => any;
|
|
398
|
+
change: (value: import('./src/switch').SwitchValue) => any;
|
|
399
|
+
}, string, {
|
|
400
|
+
readonly name: string;
|
|
401
|
+
readonly size: import('./src/switch').SwitchSize;
|
|
402
|
+
readonly aiTarget: string;
|
|
403
|
+
readonly width: string | number;
|
|
404
|
+
readonly disabled: boolean;
|
|
405
|
+
readonly loading: boolean;
|
|
406
|
+
readonly tabindex: string | number;
|
|
407
|
+
readonly modelValue: import('./src/switch').SwitchValue;
|
|
408
|
+
readonly id: string;
|
|
409
|
+
readonly validateEvent: boolean;
|
|
410
|
+
readonly ariaLabel: string;
|
|
411
|
+
readonly inlinePrompt: boolean;
|
|
412
|
+
readonly dotText: boolean;
|
|
413
|
+
readonly activeText: string;
|
|
414
|
+
readonly inactiveText: string;
|
|
415
|
+
readonly activeIcon: string | import('vue').Component;
|
|
416
|
+
readonly inactiveIcon: string | import('vue').Component;
|
|
417
|
+
readonly activeActionIcon: string | import('vue').Component;
|
|
418
|
+
readonly inactiveActionIcon: string | import('vue').Component;
|
|
419
|
+
readonly activeValue: import('./src/switch').SwitchValue;
|
|
420
|
+
readonly inactiveValue: import('./src/switch').SwitchValue;
|
|
421
|
+
readonly activeColor: string;
|
|
422
|
+
readonly inactiveColor: string;
|
|
423
|
+
readonly activeClass: string;
|
|
424
|
+
readonly beforeChange: () => Promise<boolean> | boolean;
|
|
425
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
426
|
+
export default GiSwitch;
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import { useNamespace as j, useSize as G, useFormItem as O, useAiTarget as D, withInstall as K } from "@gi-base/utils";
|
|
2
|
+
import { defineComponent as F, ref as L, useId as R, computed as u, openBlock as l, createElementBlock as s, normalizeClass as o, unref as a, toDisplayString as h, createCommentVNode as r, createElementVNode as k, withKeys as V, withModifiers as w, normalizeStyle as $, createVNode as M, createBlock as c, resolveDynamicComponent as I } from "vue";
|
|
3
|
+
import { GiIcon as m } from "../icon/index.mjs";
|
|
4
|
+
const q = {
|
|
5
|
+
/** 双向绑定值,可为布尔 / 字符串 / 数字 */
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: [Boolean, String, Number],
|
|
8
|
+
default: !1
|
|
9
|
+
},
|
|
10
|
+
disabled: { type: Boolean, default: void 0 },
|
|
11
|
+
/** 加载态:禁止交互并显示转圈 */
|
|
12
|
+
loading: { type: Boolean, default: !1 },
|
|
13
|
+
/** 尺寸:large / default / small,不传跟随父级与全局配置 */
|
|
14
|
+
size: { type: String, default: void 0 },
|
|
15
|
+
/** 宽度,数字按 px */
|
|
16
|
+
width: { type: [String, Number], default: "" },
|
|
17
|
+
/** 文字放进胶囊内部 */
|
|
18
|
+
inlinePrompt: { type: Boolean, default: !1 },
|
|
19
|
+
/** 增强:inlinePrompt 时把文字放进句柄(圆点)而不是胶囊空白侧 */
|
|
20
|
+
dotText: { type: Boolean, default: !1 },
|
|
21
|
+
/** 开启态文案 */
|
|
22
|
+
activeText: { type: String, default: "" },
|
|
23
|
+
/** 关闭态文案 */
|
|
24
|
+
inactiveText: { type: String, default: "" },
|
|
25
|
+
/** 开启态图标:字符串走 iconfont,也可传组件 */
|
|
26
|
+
activeIcon: {
|
|
27
|
+
type: [String, Object],
|
|
28
|
+
default: ""
|
|
29
|
+
},
|
|
30
|
+
/** 关闭态图标 */
|
|
31
|
+
inactiveIcon: {
|
|
32
|
+
type: [String, Object],
|
|
33
|
+
default: ""
|
|
34
|
+
},
|
|
35
|
+
/** 开启态圆点内图标 */
|
|
36
|
+
activeActionIcon: {
|
|
37
|
+
type: [String, Object],
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
/** 关闭态圆点内图标 */
|
|
41
|
+
inactiveActionIcon: {
|
|
42
|
+
type: [String, Object],
|
|
43
|
+
default: ""
|
|
44
|
+
},
|
|
45
|
+
/** 开启时的值 */
|
|
46
|
+
activeValue: {
|
|
47
|
+
type: [Boolean, String, Number],
|
|
48
|
+
default: !0
|
|
49
|
+
},
|
|
50
|
+
/** 关闭时的值 */
|
|
51
|
+
inactiveValue: {
|
|
52
|
+
type: [Boolean, String, Number],
|
|
53
|
+
default: !1
|
|
54
|
+
},
|
|
55
|
+
/** 开启态背景色(增强,不传走品牌蓝 token) */
|
|
56
|
+
activeColor: { type: String, default: "" },
|
|
57
|
+
/** 关闭态背景色(增强,不传走填充色 token) */
|
|
58
|
+
inactiveColor: { type: String, default: "" },
|
|
59
|
+
/** 开启态自定义类名 */
|
|
60
|
+
activeClass: { type: String, default: "" },
|
|
61
|
+
/** 原生 name,随表单一并提交 */
|
|
62
|
+
name: { type: String, default: "" },
|
|
63
|
+
/** 切换时触发表单校验 */
|
|
64
|
+
validateEvent: { type: Boolean, default: !0 },
|
|
65
|
+
/** 切换前的守卫,返回 false 或 resolve(false) 时取消切换 */
|
|
66
|
+
beforeChange: {
|
|
67
|
+
type: Function,
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
/** switch 的 id,不传自动生成 */
|
|
71
|
+
id: { type: String, default: "" },
|
|
72
|
+
tabindex: { type: [String, Number], default: 0 },
|
|
73
|
+
/** 读屏文案 */
|
|
74
|
+
ariaLabel: { type: String, default: "" },
|
|
75
|
+
/** AI 语义目标码,未接入 AI 能力层时 no-op */
|
|
76
|
+
aiTarget: { type: String, default: "" }
|
|
77
|
+
}, H = ["id", "tabindex", "aria-checked", "aria-disabled", "aria-label", "aria-busy", "onKeydown"], J = ["name", "value"], Q = /* @__PURE__ */ F({
|
|
78
|
+
name: "GiSwitch",
|
|
79
|
+
__name: "switch",
|
|
80
|
+
props: q,
|
|
81
|
+
emits: ["update:modelValue", "input", "change"],
|
|
82
|
+
setup(z, { expose: T, emit: A }) {
|
|
83
|
+
const i = z, v = A, t = j("switch"), S = G(i), { formItem: p } = O(), C = L(), B = `gi-switch-${R()}`, N = u(() => i.id || B), n = u(() => i.modelValue === i.activeValue), g = u(
|
|
84
|
+
() => n.value ? i.activeText : i.inactiveText
|
|
85
|
+
), y = u(() => !!i.disabled || i.loading), b = u(() => S.value === "small" ? 10 : 12), P = u(() => S.value === "small" ? 9 : 11), E = u(() => {
|
|
86
|
+
const e = {};
|
|
87
|
+
i.width !== "" && (e.width = typeof i.width == "number" ? `${i.width}px` : i.width);
|
|
88
|
+
const d = n.value ? i.activeColor : i.inactiveColor;
|
|
89
|
+
return d && (e.backgroundColor = d), e;
|
|
90
|
+
});
|
|
91
|
+
D({
|
|
92
|
+
code: i.aiTarget,
|
|
93
|
+
getValue: () => i.modelValue,
|
|
94
|
+
setValue: (e) => {
|
|
95
|
+
v("update:modelValue", e), v("change", e);
|
|
96
|
+
},
|
|
97
|
+
isEnabled: () => !y.value,
|
|
98
|
+
isVisible: () => !0
|
|
99
|
+
});
|
|
100
|
+
async function f() {
|
|
101
|
+
var d;
|
|
102
|
+
if (y.value) return;
|
|
103
|
+
const e = n.value ? i.inactiveValue : i.activeValue;
|
|
104
|
+
i.beforeChange && !await i.beforeChange() || e !== i.modelValue && (v("update:modelValue", e), v("input", e), v("change", e), i.validateEvent && ((d = p == null ? void 0 : p.validate) == null || d.call(p, "change")));
|
|
105
|
+
}
|
|
106
|
+
return T({
|
|
107
|
+
focus: () => {
|
|
108
|
+
var e;
|
|
109
|
+
return (e = C.value) == null ? void 0 : e.focus();
|
|
110
|
+
},
|
|
111
|
+
checked: n
|
|
112
|
+
}), (e, d) => (l(), s("div", {
|
|
113
|
+
class: o(a(t).be("wrapper"))
|
|
114
|
+
}, [
|
|
115
|
+
e.inactiveText && !e.inlinePrompt ? (l(), s("span", {
|
|
116
|
+
key: 0,
|
|
117
|
+
class: o([a(t).be("label"), n.value ? "" : a(t).is("active")]),
|
|
118
|
+
onClick: f
|
|
119
|
+
}, h(e.inactiveText), 3)) : r("", !0),
|
|
120
|
+
k("span", {
|
|
121
|
+
ref_key: "rootRef",
|
|
122
|
+
ref: C,
|
|
123
|
+
id: N.value,
|
|
124
|
+
class: o([
|
|
125
|
+
a(t).b(),
|
|
126
|
+
a(t).bm(a(S)),
|
|
127
|
+
n.value ? a(t).is("checked") : "",
|
|
128
|
+
y.value ? a(t).is("disabled") : "",
|
|
129
|
+
e.loading ? a(t).is("loading") : "",
|
|
130
|
+
e.inlinePrompt ? a(t).is("inline-prompt") : "",
|
|
131
|
+
e.activeClass && n.value ? e.activeClass : ""
|
|
132
|
+
]),
|
|
133
|
+
style: $(E.value),
|
|
134
|
+
role: "switch",
|
|
135
|
+
tabindex: y.value ? -1 : e.tabindex,
|
|
136
|
+
"aria-checked": n.value,
|
|
137
|
+
"aria-disabled": y.value || void 0,
|
|
138
|
+
"aria-label": e.ariaLabel || void 0,
|
|
139
|
+
"aria-busy": e.loading || void 0,
|
|
140
|
+
onClick: w(f, ["prevent"]),
|
|
141
|
+
onKeydown: [
|
|
142
|
+
V(w(f, ["prevent"]), ["enter"]),
|
|
143
|
+
V(w(f, ["prevent"]), ["space"])
|
|
144
|
+
]
|
|
145
|
+
}, [
|
|
146
|
+
k("span", {
|
|
147
|
+
class: o(a(t).be("core"))
|
|
148
|
+
}, [
|
|
149
|
+
e.inlinePrompt && !e.dotText && g.value ? (l(), s("span", {
|
|
150
|
+
key: 0,
|
|
151
|
+
class: o(a(t).be("text"))
|
|
152
|
+
}, h(g.value), 3)) : r("", !0),
|
|
153
|
+
k("span", {
|
|
154
|
+
class: o([
|
|
155
|
+
a(t).be("dot"),
|
|
156
|
+
n.value ? a(t).is("dot-active") : "",
|
|
157
|
+
e.dotText ? a(t).is("dot-text") : ""
|
|
158
|
+
])
|
|
159
|
+
}, [
|
|
160
|
+
e.loading ? (l(), s("span", {
|
|
161
|
+
key: 0,
|
|
162
|
+
class: o(a(t).be("loading"))
|
|
163
|
+
}, [
|
|
164
|
+
M(a(m), {
|
|
165
|
+
name: "gi-ArrowSync",
|
|
166
|
+
size: P.value
|
|
167
|
+
}, null, 8, ["size"])
|
|
168
|
+
], 2)) : e.inlinePrompt && e.dotText && g.value ? (l(), s("span", {
|
|
169
|
+
key: 1,
|
|
170
|
+
class: o([a(t).be("text"), a(t).is("in-dot")])
|
|
171
|
+
}, h(g.value), 3)) : n.value && typeof e.activeActionIcon == "string" && e.activeActionIcon ? (l(), c(a(m), {
|
|
172
|
+
key: 2,
|
|
173
|
+
name: e.activeActionIcon,
|
|
174
|
+
size: b.value
|
|
175
|
+
}, null, 8, ["name", "size"])) : n.value && e.activeActionIcon ? (l(), c(I(e.activeActionIcon), { key: 3 })) : !n.value && typeof e.inactiveActionIcon == "string" && e.inactiveActionIcon ? (l(), c(a(m), {
|
|
176
|
+
key: 4,
|
|
177
|
+
name: e.inactiveActionIcon,
|
|
178
|
+
size: b.value
|
|
179
|
+
}, null, 8, ["name", "size"])) : !n.value && e.inactiveActionIcon ? (l(), c(I(e.inactiveActionIcon), { key: 5 })) : r("", !0)
|
|
180
|
+
], 2)
|
|
181
|
+
], 2),
|
|
182
|
+
e.inlinePrompt ? r("", !0) : (l(), s("span", {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: o(a(t).be("icon"))
|
|
185
|
+
}, [
|
|
186
|
+
n.value && typeof e.activeIcon == "string" && e.activeIcon ? (l(), c(a(m), {
|
|
187
|
+
key: 0,
|
|
188
|
+
name: e.activeIcon,
|
|
189
|
+
size: b.value
|
|
190
|
+
}, null, 8, ["name", "size"])) : n.value && e.activeIcon ? (l(), c(I(e.activeIcon), { key: 1 })) : !n.value && typeof e.inactiveIcon == "string" && e.inactiveIcon ? (l(), c(a(m), {
|
|
191
|
+
key: 2,
|
|
192
|
+
name: e.inactiveIcon,
|
|
193
|
+
size: b.value
|
|
194
|
+
}, null, 8, ["name", "size"])) : !n.value && e.inactiveIcon ? (l(), c(I(e.inactiveIcon), { key: 3 })) : r("", !0)
|
|
195
|
+
], 2)),
|
|
196
|
+
e.name ? (l(), s("input", {
|
|
197
|
+
key: 1,
|
|
198
|
+
type: "hidden",
|
|
199
|
+
name: e.name,
|
|
200
|
+
value: n.value ? "on" : ""
|
|
201
|
+
}, null, 8, J)) : r("", !0)
|
|
202
|
+
], 46, H),
|
|
203
|
+
e.activeText && !e.inlinePrompt ? (l(), s("span", {
|
|
204
|
+
key: 1,
|
|
205
|
+
class: o([a(t).be("label"), n.value ? a(t).is("active") : ""]),
|
|
206
|
+
onClick: f
|
|
207
|
+
}, h(e.activeText), 3)) : r("", !0)
|
|
208
|
+
], 2));
|
|
209
|
+
}
|
|
210
|
+
}), Z = K(Q, "GiSwitch");
|
|
211
|
+
export {
|
|
212
|
+
Z as GiSwitch,
|
|
213
|
+
Z as default
|
|
214
|
+
};
|