persagy-vant 0.0.26 → 0.0.27
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/README.md +9 -7
- package/es/bot-mobile/BotFab.d.ts +72 -0
- package/es/bot-mobile/BotFab.mjs +152 -0
- package/es/bot-mobile/BotHistoryDrawer.d.ts +72 -0
- package/es/bot-mobile/BotHistoryDrawer.mjs +97 -0
- package/es/bot-mobile/BotMobile.d.ts +83 -0
- package/es/bot-mobile/BotMobile.mjs +47 -0
- package/es/bot-mobile/BotMobileContextTags.d.ts +52 -0
- package/es/bot-mobile/BotMobileContextTags.mjs +52 -0
- package/es/bot-mobile/BotMobilePrompts.d.ts +54 -0
- package/es/bot-mobile/BotMobilePrompts.mjs +49 -0
- package/es/bot-mobile/BotMobileSheet.d.ts +92 -0
- package/es/bot-mobile/BotMobileSheet.mjs +50 -0
- package/es/bot-mobile/BotMobileView.d.ts +82 -0
- package/es/bot-mobile/BotMobileView.mjs +45 -0
- package/es/bot-mobile/BotSessionList.d.ts +71 -0
- package/es/bot-mobile/BotSessionList.mjs +99 -0
- package/es/bot-mobile/BotVoiceBar.d.ts +80 -0
- package/es/bot-mobile/BotVoiceBar.mjs +138 -0
- package/es/bot-mobile/fab-position.d.ts +9 -0
- package/es/bot-mobile/fab-position.mjs +10 -0
- package/es/bot-mobile/fab-position.test.mjs +29 -0
- package/es/bot-mobile/index.css +1 -0
- package/es/bot-mobile/index.d.ts +469 -0
- package/es/bot-mobile/index.less +464 -0
- package/es/bot-mobile/index.mjs +50 -0
- package/es/bot-mobile/session-filter.d.ts +6 -0
- package/es/bot-mobile/session-filter.mjs +15 -0
- package/es/bot-mobile/session-item.d.ts +15 -0
- package/es/bot-mobile/session-item.mjs +73 -0
- package/es/bot-mobile/style/index.mjs +15 -0
- package/es/bot-mobile/style/less.mjs +15 -0
- package/es/bot-mobile/types.d.ts +23 -0
- package/es/bot-mobile/types.mjs +0 -0
- package/es/bot-mobile/var.css +0 -0
- package/es/bot-mobile/var.less +58 -0
- package/es/bot-mobile/voice-zone.d.ts +6 -0
- package/es/bot-mobile/voice-zone.mjs +6 -0
- package/es/bot-mobile/voice-zone.test.mjs +19 -0
- package/es/cascader/Cascader.d.ts +1 -1
- package/es/cascader/index.d.ts +1 -1
- package/es/coupon-list/style/index.mjs +1 -1
- package/es/coupon-list/style/less.mjs +1 -1
- package/es/icon/base-iconfont.css +1 -0
- package/es/icon/base-iconfont.less +1144 -0
- package/es/icon/config.d.ts +7 -0
- package/es/icon/config.mjs +268 -0
- package/es/icon/index.less +1 -1
- package/es/icon/latest-iconfont.less +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/location-select/style/index.mjs +1 -1
- package/es/location-select/style/less.mjs +1 -1
- package/es/material-add/MaterialAdd.d.ts +1 -1
- package/es/material-add/index.d.ts +1 -1
- package/es/quantity-input/QuantityInput.d.ts +1 -1
- package/es/quantity-input/index.d.ts +2 -2
- package/es/sticky/Sticky.d.ts +1 -1
- package/es/sticky/index.d.ts +1 -1
- package/lib/bot-mobile/BotFab.d.ts +72 -0
- package/lib/bot-mobile/BotFab.js +171 -0
- package/lib/bot-mobile/BotHistoryDrawer.d.ts +72 -0
- package/lib/bot-mobile/BotHistoryDrawer.js +116 -0
- package/lib/bot-mobile/BotMobile.d.ts +83 -0
- package/lib/bot-mobile/BotMobile.js +66 -0
- package/lib/bot-mobile/BotMobileContextTags.d.ts +52 -0
- package/lib/bot-mobile/BotMobileContextTags.js +71 -0
- package/lib/bot-mobile/BotMobilePrompts.d.ts +54 -0
- package/lib/bot-mobile/BotMobilePrompts.js +68 -0
- package/lib/bot-mobile/BotMobileSheet.d.ts +92 -0
- package/lib/bot-mobile/BotMobileSheet.js +79 -0
- package/lib/bot-mobile/BotMobileView.d.ts +82 -0
- package/lib/bot-mobile/BotMobileView.js +64 -0
- package/lib/bot-mobile/BotSessionList.d.ts +71 -0
- package/lib/bot-mobile/BotSessionList.js +118 -0
- package/lib/bot-mobile/BotVoiceBar.d.ts +80 -0
- package/lib/bot-mobile/BotVoiceBar.js +157 -0
- package/lib/bot-mobile/fab-position.d.ts +9 -0
- package/lib/bot-mobile/fab-position.js +29 -0
- package/lib/bot-mobile/fab-position.test.js +29 -0
- package/lib/bot-mobile/index.css +1 -0
- package/lib/bot-mobile/index.d.ts +469 -0
- package/lib/bot-mobile/index.js +79 -0
- package/lib/bot-mobile/index.less +464 -0
- package/lib/bot-mobile/session-filter.d.ts +6 -0
- package/lib/bot-mobile/session-filter.js +34 -0
- package/lib/bot-mobile/session-item.d.ts +15 -0
- package/lib/bot-mobile/session-item.js +92 -0
- package/lib/bot-mobile/style/index.js +15 -0
- package/lib/bot-mobile/style/less.js +15 -0
- package/lib/bot-mobile/types.d.ts +23 -0
- package/lib/bot-mobile/types.js +15 -0
- package/lib/bot-mobile/var.css +0 -0
- package/lib/bot-mobile/var.less +58 -0
- package/lib/bot-mobile/voice-zone.d.ts +6 -0
- package/lib/bot-mobile/voice-zone.js +25 -0
- package/lib/bot-mobile/voice-zone.test.js +19 -0
- package/lib/cascader/Cascader.d.ts +1 -1
- package/lib/cascader/index.d.ts +1 -1
- package/lib/coupon-list/style/index.js +1 -1
- package/lib/coupon-list/style/less.js +1 -1
- package/lib/icon/base-iconfont.css +1 -0
- package/lib/icon/base-iconfont.less +1144 -0
- package/lib/icon/config.d.ts +7 -0
- package/lib/icon/config.js +287 -0
- package/lib/icon/index.less +1 -1
- package/lib/icon/latest-iconfont.less +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/index.less +5 -4
- package/lib/location-select/style/index.js +1 -1
- package/lib/location-select/style/less.js +1 -1
- package/lib/material-add/MaterialAdd.d.ts +1 -1
- package/lib/material-add/index.d.ts +1 -1
- package/lib/quantity-input/QuantityInput.d.ts +1 -1
- package/lib/quantity-input/index.d.ts +2 -2
- package/lib/sticky/Sticky.d.ts +1 -1
- package/lib/sticky/index.d.ts +1 -1
- package/lib/vant.cjs.js +1798 -1028
- package/lib/vant.es.js +1798 -1028
- package/lib/vant.js +21938 -10365
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +2 -2
- package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
- package/skills/use-persagy-vant/references/component-catalog.md +1 -1
- package/es/action-bar/style/index.d.ts +0 -1
- package/es/action-bar/style/less.d.ts +0 -1
- package/es/action-sheet/style/index.d.ts +0 -1
- package/es/action-sheet/style/less.d.ts +0 -1
- package/es/address-edit/style/index.d.ts +0 -1
- package/es/address-edit/style/less.d.ts +0 -1
- package/es/address-list/style/index.d.ts +0 -1
- package/es/address-list/style/less.d.ts +0 -1
- package/es/area/style/index.d.ts +0 -1
- package/es/area/style/less.d.ts +0 -1
- package/es/background/style/index.d.ts +0 -1
- package/es/background/style/less.d.ts +0 -1
- package/es/badge/style/index.d.ts +0 -1
- package/es/badge/style/less.d.ts +0 -1
- package/es/blue-mark/style/index.d.ts +0 -1
- package/es/blue-mark/style/less.d.ts +0 -1
- package/es/bottom-action-bar/style/index.d.ts +0 -1
- package/es/bottom-action-bar/style/less.d.ts +0 -1
- package/es/button/style/index.d.ts +0 -1
- package/es/button/style/less.d.ts +0 -1
- package/es/calendar/style/index.d.ts +0 -1
- package/es/calendar/style/less.d.ts +0 -1
- package/es/card/style/index.d.ts +0 -1
- package/es/card/style/less.d.ts +0 -1
- package/es/cascader/style/index.d.ts +0 -1
- package/es/cascader/style/less.d.ts +0 -1
- package/es/cell/style/index.d.ts +0 -1
- package/es/cell/style/less.d.ts +0 -1
- package/es/cell-group/style/index.d.ts +0 -1
- package/es/cell-group/style/less.d.ts +0 -1
- package/es/checkbox/style/index.d.ts +0 -1
- package/es/checkbox/style/less.d.ts +0 -1
- package/es/checkbox-group/style/index.d.ts +0 -1
- package/es/checkbox-group/style/less.d.ts +0 -1
- package/es/checkbox-panel/style/index.d.ts +0 -1
- package/es/checkbox-panel/style/less.d.ts +0 -1
- package/es/circle/style/index.d.ts +0 -1
- package/es/circle/style/less.d.ts +0 -1
- package/es/col/style/index.d.ts +0 -1
- package/es/col/style/less.d.ts +0 -1
- package/es/collapse/style/index.d.ts +0 -1
- package/es/collapse/style/less.d.ts +0 -1
- package/es/collapse-item/style/index.d.ts +0 -1
- package/es/collapse-item/style/less.d.ts +0 -1
- package/es/config-provider/style/index.d.ts +0 -1
- package/es/config-provider/style/less.d.ts +0 -1
- package/es/contact-card/style/index.d.ts +0 -1
- package/es/contact-card/style/less.d.ts +0 -1
- package/es/contact-edit/style/index.d.ts +0 -1
- package/es/contact-edit/style/less.d.ts +0 -1
- package/es/contact-list/style/index.d.ts +0 -1
- package/es/contact-list/style/less.d.ts +0 -1
- package/es/count-down/style/index.d.ts +0 -1
- package/es/count-down/style/less.d.ts +0 -1
- package/es/coupon/style/index.d.ts +0 -1
- package/es/coupon/style/less.d.ts +0 -1
- package/es/coupon-cell/style/index.d.ts +0 -1
- package/es/coupon-cell/style/less.d.ts +0 -1
- package/es/coupon-list/style/index.d.ts +0 -1
- package/es/coupon-list/style/less.d.ts +0 -1
- package/es/datetime-picker/style/index.d.ts +0 -1
- package/es/datetime-picker/style/less.d.ts +0 -1
- package/es/dialog/style/index.d.ts +0 -1
- package/es/dialog/style/less.d.ts +0 -1
- package/es/divider/style/index.d.ts +0 -1
- package/es/divider/style/less.d.ts +0 -1
- package/es/dropdown-item/style/index.d.ts +0 -1
- package/es/dropdown-item/style/less.d.ts +0 -1
- package/es/dropdown-menu/style/index.d.ts +0 -1
- package/es/dropdown-menu/style/less.d.ts +0 -1
- package/es/empty/style/index.d.ts +0 -1
- package/es/empty/style/less.d.ts +0 -1
- package/es/field/style/index.d.ts +0 -1
- package/es/field/style/less.d.ts +0 -1
- package/es/filter-tag/style/index.d.ts +0 -1
- package/es/filter-tag/style/less.d.ts +0 -1
- package/es/floor-select/style/index.d.ts +0 -1
- package/es/floor-select/style/less.d.ts +0 -1
- package/es/form/style/index.d.ts +0 -1
- package/es/form/style/less.d.ts +0 -1
- package/es/form-panel/style/index.d.ts +0 -1
- package/es/form-panel/style/less.d.ts +0 -1
- package/es/friendly-tip/style/index.d.ts +0 -1
- package/es/friendly-tip/style/less.d.ts +0 -1
- package/es/grid/style/index.d.ts +0 -1
- package/es/grid/style/less.d.ts +0 -1
- package/es/grid-item/style/index.d.ts +0 -1
- package/es/grid-item/style/less.d.ts +0 -1
- package/es/icon/style/index.d.ts +0 -1
- package/es/icon/style/less.d.ts +0 -1
- package/es/image/style/index.d.ts +0 -1
- package/es/image/style/less.d.ts +0 -1
- package/es/image-preview/style/index.d.ts +0 -1
- package/es/image-preview/style/less.d.ts +0 -1
- package/es/index-anchor/style/index.d.ts +0 -1
- package/es/index-anchor/style/less.d.ts +0 -1
- package/es/index-bar/style/index.d.ts +0 -1
- package/es/index-bar/style/less.d.ts +0 -1
- package/es/lazyload/style/index.d.ts +0 -1
- package/es/lazyload/style/less.d.ts +0 -1
- package/es/list/style/index.d.ts +0 -1
- package/es/list/style/less.d.ts +0 -1
- package/es/loading/style/index.d.ts +0 -1
- package/es/loading/style/less.d.ts +0 -1
- package/es/locale/style/index.d.ts +0 -1
- package/es/locale/style/less.d.ts +0 -1
- package/es/location-select/style/index.d.ts +0 -1
- package/es/location-select/style/less.d.ts +0 -1
- package/es/material-add/style/index.d.ts +0 -1
- package/es/material-add/style/less.d.ts +0 -1
- package/es/multi-person-select/style/index.d.ts +0 -1
- package/es/multi-person-select/style/less.d.ts +0 -1
- package/es/nav-bar/style/index.d.ts +0 -1
- package/es/nav-bar/style/less.d.ts +0 -1
- package/es/notice-bar/style/index.d.ts +0 -1
- package/es/notice-bar/style/less.d.ts +0 -1
- package/es/notify/style/index.d.ts +0 -1
- package/es/notify/style/less.d.ts +0 -1
- package/es/number-keyboard/style/index.d.ts +0 -1
- package/es/number-keyboard/style/less.d.ts +0 -1
- package/es/object-select/style/index.d.ts +0 -1
- package/es/object-select/style/less.d.ts +0 -1
- package/es/overlay/style/index.d.ts +0 -1
- package/es/overlay/style/less.d.ts +0 -1
- package/es/pagination/style/index.d.ts +0 -1
- package/es/pagination/style/less.d.ts +0 -1
- package/es/password-input/style/index.d.ts +0 -1
- package/es/password-input/style/less.d.ts +0 -1
- package/es/picker/style/index.d.ts +0 -1
- package/es/picker/style/less.d.ts +0 -1
- package/es/popover/style/index.d.ts +0 -1
- package/es/popover/style/less.d.ts +0 -1
- package/es/popup/style/index.d.ts +0 -1
- package/es/popup/style/less.d.ts +0 -1
- package/es/progress/style/index.d.ts +0 -1
- package/es/progress/style/less.d.ts +0 -1
- package/es/pull-refresh/style/index.d.ts +0 -1
- package/es/pull-refresh/style/less.d.ts +0 -1
- package/es/quantity-input/style/index.d.ts +0 -1
- package/es/quantity-input/style/less.d.ts +0 -1
- package/es/radio/style/index.d.ts +0 -1
- package/es/radio/style/less.d.ts +0 -1
- package/es/radio-group/style/index.d.ts +0 -1
- package/es/radio-group/style/less.d.ts +0 -1
- package/es/radio-panel/style/index.d.ts +0 -1
- package/es/radio-panel/style/less.d.ts +0 -1
- package/es/rate/style/index.d.ts +0 -1
- package/es/rate/style/less.d.ts +0 -1
- package/es/row/style/index.d.ts +0 -1
- package/es/row/style/less.d.ts +0 -1
- package/es/search/style/index.d.ts +0 -1
- package/es/search/style/less.d.ts +0 -1
- package/es/share-sheet/style/index.d.ts +0 -1
- package/es/share-sheet/style/less.d.ts +0 -1
- package/es/sidebar/style/index.d.ts +0 -1
- package/es/sidebar/style/less.d.ts +0 -1
- package/es/sidebar-item/style/index.d.ts +0 -1
- package/es/sidebar-item/style/less.d.ts +0 -1
- package/es/single-person-select/style/index.d.ts +0 -1
- package/es/single-person-select/style/less.d.ts +0 -1
- package/es/skeleton/style/index.d.ts +0 -1
- package/es/skeleton/style/less.d.ts +0 -1
- package/es/slider/style/index.d.ts +0 -1
- package/es/slider/style/less.d.ts +0 -1
- package/es/space/style/index.d.ts +0 -1
- package/es/space/style/less.d.ts +0 -1
- package/es/step/style/index.d.ts +0 -1
- package/es/step/style/less.d.ts +0 -1
- package/es/stepper/style/index.d.ts +0 -1
- package/es/stepper/style/less.d.ts +0 -1
- package/es/steps/style/index.d.ts +0 -1
- package/es/steps/style/less.d.ts +0 -1
- package/es/sticky/style/index.d.ts +0 -1
- package/es/sticky/style/less.d.ts +0 -1
- package/es/submit-bar/style/index.d.ts +0 -1
- package/es/submit-bar/style/less.d.ts +0 -1
- package/es/swipe/style/index.d.ts +0 -1
- package/es/swipe/style/less.d.ts +0 -1
- package/es/swipe-cell/style/index.d.ts +0 -1
- package/es/swipe-cell/style/less.d.ts +0 -1
- package/es/swipe-item/style/index.d.ts +0 -1
- package/es/swipe-item/style/less.d.ts +0 -1
- package/es/switch/style/index.d.ts +0 -1
- package/es/switch/style/less.d.ts +0 -1
- package/es/tab/style/index.d.ts +0 -1
- package/es/tab/style/less.d.ts +0 -1
- package/es/tabbar/style/index.d.ts +0 -1
- package/es/tabbar/style/less.d.ts +0 -1
- package/es/tabbar-item/style/index.d.ts +0 -1
- package/es/tabbar-item/style/less.d.ts +0 -1
- package/es/tabs/style/index.d.ts +0 -1
- package/es/tabs/style/less.d.ts +0 -1
- package/es/tag/style/index.d.ts +0 -1
- package/es/tag/style/less.d.ts +0 -1
- package/es/toast/style/index.d.ts +0 -1
- package/es/toast/style/less.d.ts +0 -1
- package/es/tree-select/style/index.d.ts +0 -1
- package/es/tree-select/style/less.d.ts +0 -1
- package/es/uploader/style/index.d.ts +0 -1
- package/es/uploader/style/less.d.ts +0 -1
- package/es/video-preview/style/index.d.ts +0 -1
- package/es/video-preview/style/less.d.ts +0 -1
- package/es/work-order-card/style/index.d.ts +0 -1
- package/es/work-order-card/style/less.d.ts +0 -1
- package/es/work-order-filter/style/index.d.ts +0 -1
- package/es/work-order-filter/style/less.d.ts +0 -1
- package/lib/action-bar/style/index.d.ts +0 -1
- package/lib/action-bar/style/less.d.ts +0 -1
- package/lib/action-bar-button/style/index.d.ts +0 -1
- package/lib/action-bar-button/style/less.d.ts +0 -1
- package/lib/action-bar-icon/style/index.d.ts +0 -1
- package/lib/action-bar-icon/style/less.d.ts +0 -1
- package/lib/action-sheet/style/index.d.ts +0 -1
- package/lib/action-sheet/style/less.d.ts +0 -1
- package/lib/address-edit/style/index.d.ts +0 -1
- package/lib/address-edit/style/less.d.ts +0 -1
- package/lib/address-list/style/index.d.ts +0 -1
- package/lib/address-list/style/less.d.ts +0 -1
- package/lib/area/style/index.d.ts +0 -1
- package/lib/area/style/less.d.ts +0 -1
- package/lib/background/style/index.d.ts +0 -1
- package/lib/background/style/less.d.ts +0 -1
- package/lib/badge/style/index.d.ts +0 -1
- package/lib/badge/style/less.d.ts +0 -1
- package/lib/blue-mark/style/index.d.ts +0 -1
- package/lib/blue-mark/style/less.d.ts +0 -1
- package/lib/bottom-action-bar/style/index.d.ts +0 -1
- package/lib/bottom-action-bar/style/less.d.ts +0 -1
- package/lib/button/style/index.d.ts +0 -1
- package/lib/button/style/less.d.ts +0 -1
- package/lib/calendar/style/index.d.ts +0 -1
- package/lib/calendar/style/less.d.ts +0 -1
- package/lib/card/style/index.d.ts +0 -1
- package/lib/card/style/less.d.ts +0 -1
- package/lib/cascader/style/index.d.ts +0 -1
- package/lib/cascader/style/less.d.ts +0 -1
- package/lib/cell/style/index.d.ts +0 -1
- package/lib/cell/style/less.d.ts +0 -1
- package/lib/cell-group/style/index.d.ts +0 -1
- package/lib/cell-group/style/less.d.ts +0 -1
- package/lib/checkbox/style/index.d.ts +0 -1
- package/lib/checkbox/style/less.d.ts +0 -1
- package/lib/checkbox-group/style/index.d.ts +0 -1
- package/lib/checkbox-group/style/less.d.ts +0 -1
- package/lib/checkbox-panel/style/index.d.ts +0 -1
- package/lib/checkbox-panel/style/less.d.ts +0 -1
- package/lib/circle/style/index.d.ts +0 -1
- package/lib/circle/style/less.d.ts +0 -1
- package/lib/col/style/index.d.ts +0 -1
- package/lib/col/style/less.d.ts +0 -1
- package/lib/collapse/style/index.d.ts +0 -1
- package/lib/collapse/style/less.d.ts +0 -1
- package/lib/collapse-item/style/index.d.ts +0 -1
- package/lib/collapse-item/style/less.d.ts +0 -1
- package/lib/config-provider/style/index.d.ts +0 -1
- package/lib/config-provider/style/less.d.ts +0 -1
- package/lib/contact-card/style/index.d.ts +0 -1
- package/lib/contact-card/style/less.d.ts +0 -1
- package/lib/contact-edit/style/index.d.ts +0 -1
- package/lib/contact-edit/style/less.d.ts +0 -1
- package/lib/contact-list/style/index.d.ts +0 -1
- package/lib/contact-list/style/less.d.ts +0 -1
- package/lib/count-down/style/index.d.ts +0 -1
- package/lib/count-down/style/less.d.ts +0 -1
- package/lib/coupon/style/index.d.ts +0 -1
- package/lib/coupon/style/less.d.ts +0 -1
- package/lib/coupon-cell/style/index.d.ts +0 -1
- package/lib/coupon-cell/style/less.d.ts +0 -1
- package/lib/coupon-list/style/index.d.ts +0 -1
- package/lib/coupon-list/style/less.d.ts +0 -1
- package/lib/datetime-picker/style/index.d.ts +0 -1
- package/lib/datetime-picker/style/less.d.ts +0 -1
- package/lib/dialog/style/index.d.ts +0 -1
- package/lib/dialog/style/less.d.ts +0 -1
- package/lib/divider/style/index.d.ts +0 -1
- package/lib/divider/style/less.d.ts +0 -1
- package/lib/dropdown-item/style/index.d.ts +0 -1
- package/lib/dropdown-item/style/less.d.ts +0 -1
- package/lib/dropdown-menu/style/index.d.ts +0 -1
- package/lib/dropdown-menu/style/less.d.ts +0 -1
- package/lib/empty/style/index.d.ts +0 -1
- package/lib/empty/style/less.d.ts +0 -1
- package/lib/field/style/index.d.ts +0 -1
- package/lib/field/style/less.d.ts +0 -1
- package/lib/filter-tag/style/index.d.ts +0 -1
- package/lib/filter-tag/style/less.d.ts +0 -1
- package/lib/floor-select/style/index.d.ts +0 -1
- package/lib/floor-select/style/less.d.ts +0 -1
- package/lib/form/style/index.d.ts +0 -1
- package/lib/form/style/less.d.ts +0 -1
- package/lib/form-panel/style/index.d.ts +0 -1
- package/lib/form-panel/style/less.d.ts +0 -1
- package/lib/friendly-tip/style/index.d.ts +0 -1
- package/lib/friendly-tip/style/less.d.ts +0 -1
- package/lib/grid/style/index.d.ts +0 -1
- package/lib/grid/style/less.d.ts +0 -1
- package/lib/grid-item/style/index.d.ts +0 -1
- package/lib/grid-item/style/less.d.ts +0 -1
- package/lib/icon/style/index.d.ts +0 -1
- package/lib/icon/style/less.d.ts +0 -1
- package/lib/image/style/index.d.ts +0 -1
- package/lib/image/style/less.d.ts +0 -1
- package/lib/image-preview/style/index.d.ts +0 -1
- package/lib/image-preview/style/less.d.ts +0 -1
- package/lib/index-anchor/style/index.d.ts +0 -1
- package/lib/index-anchor/style/less.d.ts +0 -1
- package/lib/index-bar/style/index.d.ts +0 -1
- package/lib/index-bar/style/less.d.ts +0 -1
- package/lib/lazyload/style/index.d.ts +0 -1
- package/lib/lazyload/style/less.d.ts +0 -1
- package/lib/list/style/index.d.ts +0 -1
- package/lib/list/style/less.d.ts +0 -1
- package/lib/loading/style/index.d.ts +0 -1
- package/lib/loading/style/less.d.ts +0 -1
- package/lib/locale/style/index.d.ts +0 -1
- package/lib/locale/style/less.d.ts +0 -1
- package/lib/location-select/style/index.d.ts +0 -1
- package/lib/location-select/style/less.d.ts +0 -1
- package/lib/material-add/style/index.d.ts +0 -1
- package/lib/material-add/style/less.d.ts +0 -1
- package/lib/multi-person-select/style/index.d.ts +0 -1
- package/lib/multi-person-select/style/less.d.ts +0 -1
- package/lib/nav-bar/style/index.d.ts +0 -1
- package/lib/nav-bar/style/less.d.ts +0 -1
- package/lib/notice-bar/style/index.d.ts +0 -1
- package/lib/notice-bar/style/less.d.ts +0 -1
- package/lib/notify/style/index.d.ts +0 -1
- package/lib/notify/style/less.d.ts +0 -1
- package/lib/number-keyboard/style/index.d.ts +0 -1
- package/lib/number-keyboard/style/less.d.ts +0 -1
- package/lib/object-select/style/index.d.ts +0 -1
- package/lib/object-select/style/less.d.ts +0 -1
- package/lib/overlay/style/index.d.ts +0 -1
- package/lib/overlay/style/less.d.ts +0 -1
- package/lib/pagination/style/index.d.ts +0 -1
- package/lib/pagination/style/less.d.ts +0 -1
- package/lib/password-input/style/index.d.ts +0 -1
- package/lib/password-input/style/less.d.ts +0 -1
- package/lib/picker/style/index.d.ts +0 -1
- package/lib/picker/style/less.d.ts +0 -1
- package/lib/popover/style/index.d.ts +0 -1
- package/lib/popover/style/less.d.ts +0 -1
- package/lib/popup/style/index.d.ts +0 -1
- package/lib/popup/style/less.d.ts +0 -1
- package/lib/progress/style/index.d.ts +0 -1
- package/lib/progress/style/less.d.ts +0 -1
- package/lib/pull-refresh/style/index.d.ts +0 -1
- package/lib/pull-refresh/style/less.d.ts +0 -1
- package/lib/quantity-input/style/index.d.ts +0 -1
- package/lib/quantity-input/style/less.d.ts +0 -1
- package/lib/radio/style/index.d.ts +0 -1
- package/lib/radio/style/less.d.ts +0 -1
- package/lib/radio-group/style/index.d.ts +0 -1
- package/lib/radio-group/style/less.d.ts +0 -1
- package/lib/radio-panel/style/index.d.ts +0 -1
- package/lib/radio-panel/style/less.d.ts +0 -1
- package/lib/rate/style/index.d.ts +0 -1
- package/lib/rate/style/less.d.ts +0 -1
- package/lib/row/style/index.d.ts +0 -1
- package/lib/row/style/less.d.ts +0 -1
- package/lib/search/style/index.d.ts +0 -1
- package/lib/search/style/less.d.ts +0 -1
- package/lib/share-sheet/style/index.d.ts +0 -1
- package/lib/share-sheet/style/less.d.ts +0 -1
- package/lib/sidebar/style/index.d.ts +0 -1
- package/lib/sidebar/style/less.d.ts +0 -1
- package/lib/sidebar-item/style/index.d.ts +0 -1
- package/lib/sidebar-item/style/less.d.ts +0 -1
- package/lib/single-person-select/style/index.d.ts +0 -1
- package/lib/single-person-select/style/less.d.ts +0 -1
- package/lib/skeleton/style/index.d.ts +0 -1
- package/lib/skeleton/style/less.d.ts +0 -1
- package/lib/slider/style/index.d.ts +0 -1
- package/lib/slider/style/less.d.ts +0 -1
- package/lib/space/style/index.d.ts +0 -1
- package/lib/space/style/less.d.ts +0 -1
- package/lib/step/style/index.d.ts +0 -1
- package/lib/step/style/less.d.ts +0 -1
- package/lib/stepper/style/index.d.ts +0 -1
- package/lib/stepper/style/less.d.ts +0 -1
- package/lib/steps/style/index.d.ts +0 -1
- package/lib/steps/style/less.d.ts +0 -1
- package/lib/sticky/style/index.d.ts +0 -1
- package/lib/sticky/style/less.d.ts +0 -1
- package/lib/submit-bar/style/index.d.ts +0 -1
- package/lib/submit-bar/style/less.d.ts +0 -1
- package/lib/swipe/style/index.d.ts +0 -1
- package/lib/swipe/style/less.d.ts +0 -1
- package/lib/swipe-cell/style/index.d.ts +0 -1
- package/lib/swipe-cell/style/less.d.ts +0 -1
- package/lib/swipe-item/style/index.d.ts +0 -1
- package/lib/swipe-item/style/less.d.ts +0 -1
- package/lib/switch/style/index.d.ts +0 -1
- package/lib/switch/style/less.d.ts +0 -1
- package/lib/tab/style/index.d.ts +0 -1
- package/lib/tab/style/less.d.ts +0 -1
- package/lib/tabbar/style/index.d.ts +0 -1
- package/lib/tabbar/style/less.d.ts +0 -1
- package/lib/tabbar-item/style/index.d.ts +0 -1
- package/lib/tabbar-item/style/less.d.ts +0 -1
- package/lib/tabs/style/index.d.ts +0 -1
- package/lib/tabs/style/less.d.ts +0 -1
- package/lib/tag/style/index.d.ts +0 -1
- package/lib/tag/style/less.d.ts +0 -1
- package/lib/toast/style/index.d.ts +0 -1
- package/lib/toast/style/less.d.ts +0 -1
- package/lib/tree-select/style/index.d.ts +0 -1
- package/lib/tree-select/style/less.d.ts +0 -1
- package/lib/uploader/style/index.d.ts +0 -1
- package/lib/uploader/style/less.d.ts +0 -1
- package/lib/video-preview/style/index.d.ts +0 -1
- package/lib/video-preview/style/less.d.ts +0 -1
- package/lib/work-order-card/style/index.d.ts +0 -1
- package/lib/work-order-card/style/less.d.ts +0 -1
- package/lib/work-order-filter/style/index.d.ts +0 -1
- package/lib/work-order-filter/style/less.d.ts +0 -1
- /package/es/{action-bar-button/style/index.d.ts → bot-mobile/fab-position.test.d.ts} +0 -0
- /package/es/{action-bar-button/style/less.d.ts → bot-mobile/voice-zone.test.d.ts} +0 -0
- /package/{es/action-bar-icon/style/index.d.ts → lib/bot-mobile/fab-position.test.d.ts} +0 -0
- /package/{es/action-bar-icon/style/less.d.ts → lib/bot-mobile/voice-zone.test.d.ts} +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { ref, watch, onMounted, defineComponent, createVNode as _createVNode, Fragment as _Fragment } from "vue";
|
|
2
|
+
import { makeArrayProp, makeNumberProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
|
3
|
+
import { Loading } from "../loading/index.mjs";
|
|
4
|
+
import { isInCancelZone } from "./voice-zone.mjs";
|
|
5
|
+
const [name, bem] = createNamespace("bot-mobile-voice-bar");
|
|
6
|
+
const CANVAS_WIDTH = 240;
|
|
7
|
+
const CANVAS_HEIGHT = 32;
|
|
8
|
+
const BAR_WIDTH = 3;
|
|
9
|
+
const BAR_GAP = 2;
|
|
10
|
+
const MIN_BAR_HEIGHT = 2;
|
|
11
|
+
const FALLBACK_WAVE_COLOR = "#246fe5";
|
|
12
|
+
const botVoiceBarProps = {
|
|
13
|
+
state: makeStringProp("idle"),
|
|
14
|
+
elapsedLabel: makeStringProp("0:00"),
|
|
15
|
+
amplitudes: makeArrayProp(),
|
|
16
|
+
cancelDistance: makeNumberProp(60),
|
|
17
|
+
hint: makeStringProp("")
|
|
18
|
+
};
|
|
19
|
+
var stdin_default = defineComponent({
|
|
20
|
+
name,
|
|
21
|
+
props: botVoiceBarProps,
|
|
22
|
+
emits: ["start", "cancel", "adopt", "cancelZoneChange"],
|
|
23
|
+
setup(props, {
|
|
24
|
+
emit
|
|
25
|
+
}) {
|
|
26
|
+
const canvasRef = ref();
|
|
27
|
+
const inCancelZone = ref(false);
|
|
28
|
+
let pressing = false;
|
|
29
|
+
let startY = 0;
|
|
30
|
+
const onPointerDown = (event) => {
|
|
31
|
+
if (event.button !== 0) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
if (props.state !== "idle") {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
const el = event.currentTarget;
|
|
38
|
+
try {
|
|
39
|
+
el.setPointerCapture(event.pointerId);
|
|
40
|
+
} catch (e) {
|
|
41
|
+
}
|
|
42
|
+
pressing = true;
|
|
43
|
+
startY = event.clientY;
|
|
44
|
+
inCancelZone.value = false;
|
|
45
|
+
emit("start");
|
|
46
|
+
};
|
|
47
|
+
const onPointerMove = (event) => {
|
|
48
|
+
if (!pressing) {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
const next = isInCancelZone(startY, event.clientY, props.cancelDistance);
|
|
52
|
+
if (next !== inCancelZone.value) {
|
|
53
|
+
inCancelZone.value = next;
|
|
54
|
+
emit("cancelZoneChange", next);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
const finishGesture = (cancelled) => {
|
|
58
|
+
if (!pressing) {
|
|
59
|
+
return;
|
|
60
|
+
}
|
|
61
|
+
pressing = false;
|
|
62
|
+
const shouldCancel = cancelled || inCancelZone.value;
|
|
63
|
+
inCancelZone.value = false;
|
|
64
|
+
emit(shouldCancel ? "cancel" : "adopt");
|
|
65
|
+
};
|
|
66
|
+
const onPointerUp = () => finishGesture(false);
|
|
67
|
+
const onPointerCancel = () => finishGesture(true);
|
|
68
|
+
const resolveWaveColor = (el) => {
|
|
69
|
+
if (typeof getComputedStyle !== "function") {
|
|
70
|
+
return FALLBACK_WAVE_COLOR;
|
|
71
|
+
}
|
|
72
|
+
const value = getComputedStyle(el).color;
|
|
73
|
+
return value || FALLBACK_WAVE_COLOR;
|
|
74
|
+
};
|
|
75
|
+
const drawWave = () => {
|
|
76
|
+
const canvas = canvasRef.value;
|
|
77
|
+
if (!canvas) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const ctx = canvas.getContext("2d");
|
|
81
|
+
if (!ctx) {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
85
|
+
ctx.fillStyle = resolveWaveColor(canvas);
|
|
86
|
+
const step = BAR_WIDTH + BAR_GAP;
|
|
87
|
+
const maxBars = Math.max(1, Math.floor(canvas.width / step));
|
|
88
|
+
const bars = props.amplitudes.slice(-maxBars);
|
|
89
|
+
const offsetX = canvas.width - bars.length * step;
|
|
90
|
+
bars.forEach((amplitude, index) => {
|
|
91
|
+
const clamped = Math.min(1, Math.max(0, amplitude));
|
|
92
|
+
const barHeight = Math.max(MIN_BAR_HEIGHT, clamped * canvas.height);
|
|
93
|
+
const x = offsetX + index * step;
|
|
94
|
+
const y = (canvas.height - barHeight) / 2;
|
|
95
|
+
ctx.fillRect(x, y, BAR_WIDTH, barHeight);
|
|
96
|
+
});
|
|
97
|
+
};
|
|
98
|
+
onMounted(drawWave);
|
|
99
|
+
watch(() => props.amplitudes, drawWave);
|
|
100
|
+
watch(() => props.state, drawWave);
|
|
101
|
+
const renderTranscribing = () => _createVNode("div", {
|
|
102
|
+
"class": bem("transcribing")
|
|
103
|
+
}, [_createVNode(Loading, {
|
|
104
|
+
"size": "16"
|
|
105
|
+
}, null), _createVNode("span", {
|
|
106
|
+
"class": bem("transcribing-text")
|
|
107
|
+
}, [props.hint || "\u6B63\u5728\u8BC6\u522B..."])]);
|
|
108
|
+
const renderWave = () => _createVNode(_Fragment, null, [_createVNode("canvas", {
|
|
109
|
+
"ref": canvasRef,
|
|
110
|
+
"class": bem("wave"),
|
|
111
|
+
"width": CANVAS_WIDTH,
|
|
112
|
+
"height": CANVAS_HEIGHT
|
|
113
|
+
}, null), _createVNode("div", {
|
|
114
|
+
"class": bem("info")
|
|
115
|
+
}, [_createVNode("span", {
|
|
116
|
+
"class": bem("elapsed")
|
|
117
|
+
}, [props.elapsedLabel]), props.hint && _createVNode("span", {
|
|
118
|
+
"class": bem("hint")
|
|
119
|
+
}, [props.hint])])]);
|
|
120
|
+
return () => _createVNode("div", {
|
|
121
|
+
"class": bem({
|
|
122
|
+
recording: props.state === "recording",
|
|
123
|
+
transcribing: props.state === "transcribing",
|
|
124
|
+
"cancel-zone": inCancelZone.value
|
|
125
|
+
}),
|
|
126
|
+
"role": "button",
|
|
127
|
+
"tabindex": 0,
|
|
128
|
+
"onPointerdown": onPointerDown,
|
|
129
|
+
"onPointermove": onPointerMove,
|
|
130
|
+
"onPointerup": onPointerUp,
|
|
131
|
+
"onPointercancel": onPointerCancel
|
|
132
|
+
}, [props.state === "transcribing" ? renderTranscribing() : renderWave()]);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
export {
|
|
136
|
+
botVoiceBarProps,
|
|
137
|
+
stdin_default as default
|
|
138
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* BotFab 纯几何逻辑:吸边判定 + 拖拽/点击判定。
|
|
3
|
+
* 拆成纯函数便于单测,组件内 pointer 事件处理只负责采集坐标、调用这里。
|
|
4
|
+
*/
|
|
5
|
+
export declare type FabSide = 'left' | 'right';
|
|
6
|
+
/** 松手时按水平中线吸到最近边;恰好落在中点视为右半区(>=) */
|
|
7
|
+
export declare function resolveSnapSide(x: number, viewportWidth: number): FabSide;
|
|
8
|
+
/** 位移在阈值内视为点击,否则视为拖拽;阈值默认 6px,按欧氏距离计算 */
|
|
9
|
+
export declare function isTapNotDrag(dx: number, dy: number, threshold?: number): boolean;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { resolveSnapSide, isTapNotDrag } from "./fab-position.mjs";
|
|
2
|
+
describe("resolveSnapSide", () => {
|
|
3
|
+
test("should resolve to left when x is in the left half of the viewport", () => {
|
|
4
|
+
expect(resolveSnapSide(50, 375)).toBe("left");
|
|
5
|
+
});
|
|
6
|
+
test("should resolve to right when x is in the right half of the viewport", () => {
|
|
7
|
+
expect(resolveSnapSide(300, 375)).toBe("right");
|
|
8
|
+
});
|
|
9
|
+
test("should resolve to right when x is exactly at the horizontal midline", () => {
|
|
10
|
+
expect(resolveSnapSide(187.5, 375)).toBe("right");
|
|
11
|
+
});
|
|
12
|
+
});
|
|
13
|
+
describe("isTapNotDrag", () => {
|
|
14
|
+
test("should be a tap when displacement is below the default 6px threshold", () => {
|
|
15
|
+
expect(isTapNotDrag(5, 0)).toBe(true);
|
|
16
|
+
});
|
|
17
|
+
test("should be a drag when displacement reaches the default 6px threshold", () => {
|
|
18
|
+
expect(isTapNotDrag(6, 0)).toBe(false);
|
|
19
|
+
});
|
|
20
|
+
test("should combine x/y displacement as euclidean distance", () => {
|
|
21
|
+
expect(isTapNotDrag(3, 4)).toBe(true);
|
|
22
|
+
expect(isTapNotDrag(4, 3)).toBe(true);
|
|
23
|
+
expect(isTapNotDrag(6, 8)).toBe(false);
|
|
24
|
+
});
|
|
25
|
+
test("should respect a custom threshold", () => {
|
|
26
|
+
expect(isTapNotDrag(10, 0, 20)).toBe(true);
|
|
27
|
+
expect(isTapNotDrag(20, 0, 20)).toBe(false);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--van-bot-mobile-primary-color: var(--van-primary-color);--van-bot-mobile-text-color: var(--van-text-color);--van-bot-mobile-border-color: var(--van-border-color);--van-bot-mobile-background-color: var(--van-background-color-light);--van-bot-mobile-prompts-title-color: var(--van-text-color-2);--van-bot-mobile-prompts-title-font-size: var(--van-font-size-sm);--van-bot-mobile-prompts-item-background: var(--van-background-color-light);--van-bot-mobile-prompts-item-border-color: var(--van-border-color);--van-bot-mobile-prompts-item-active-background: var(--van-active-color);--van-bot-mobile-prompts-item-selected-background: var(--van-blue-100);--van-bot-mobile-prompts-item-selected-border-color: var(--van-primary-color);--van-bot-mobile-prompts-item-selected-color: var(--van-primary-color);--van-bot-mobile-prompts-item-title-color: var(--van-text-color);--van-bot-mobile-prompts-item-desc-color: var(--van-text-color-2);--van-bot-mobile-context-tags-gap: 8px;--van-bot-mobile-context-tags-padding: 4px 12px;--van-bot-mobile-context-tags-font-size: var(--van-font-size-md);--van-bot-mobile-context-tags-line-height: var(--van-line-height-lg);--van-bot-mobile-context-tags-border-radius: var(--van-border-radius-lg);--van-bot-mobile-context-tags-color: var(--van-gray-8);--van-bot-mobile-context-tags-background-color: var(--van-gray-2);--van-bot-mobile-context-tags-selected-color: var(--van-bot-mobile-primary-color);--van-bot-mobile-context-tags-selected-background-color: var(--van-blue-100);--van-bot-mobile-context-tags-active-opacity: var(--van-active-opacity);--van-bot-mobile-sheet-height: 90%;--van-bot-mobile-fab-size: 56px;--van-bot-mobile-fab-z-index: 999;--van-bot-mobile-fab-color: var(--van-white);--van-bot-mobile-fab-background: var(--van-bot-mobile-primary-color);--van-bot-mobile-fab-shadow: 0 2px 8px rgba(0, 0, 0, .2);--van-bot-mobile-session-item-active-background: var(--van-active-color);--van-bot-mobile-session-item-name-color: var(--van-text-color);--van-bot-mobile-session-item-meta-color: var(--van-text-color-2);--van-bot-mobile-session-item-action-color: var(--van-text-color-3);--van-bot-mobile-session-item-danger-color: var(--van-danger-color);--van-bot-mobile-history-drawer-header-height: 52px;--van-bot-mobile-history-drawer-title-color: var(--van-text-color);--van-bot-mobile-voice-bar-height: 64px;--van-bot-mobile-voice-bar-background: var(--van-background-color-light);--van-bot-mobile-voice-bar-border-color: var(--van-border-color);--van-bot-mobile-voice-bar-recording-background: var(--van-blue-50);--van-bot-mobile-voice-bar-cancel-zone-background: var(--van-red);--van-bot-mobile-voice-bar-elapsed-color: var(--van-text-color);--van-bot-mobile-voice-bar-hint-color: var(--van-text-color-2);--van-bot-mobile-voice-bar-wave-color: var(--van-bot-mobile-primary-color);--van-bot-mobile-session-list-toolbar-padding: 8px 16px;--van-bot-mobile-session-list-create-color: var(--van-bot-mobile-primary-color)}.van-bot-mobile,.van-bot-mobile-view{width:100%;height:100%}.van-bot-mobile .bot-card,.van-bot-mobile-view .bot-card{--primary-color: var(--van-bot-mobile-primary-color);--accent: var(--van-bot-mobile-primary-color);--ink-1: var(--van-bot-mobile-text-color);--line: var(--van-bot-mobile-border-color);--gray-0: var(--van-bot-mobile-background-color)}.van-bot-mobile-prompts{width:100%}.van-bot-mobile-prompts__title{margin-bottom:8px;color:var(--van-bot-mobile-prompts-title-color);font-size:var(--van-bot-mobile-prompts-title-font-size);line-height:1.4}.van-bot-mobile-prompts__list{display:flex;flex-direction:column;gap:8px}.van-bot-mobile-prompts__item{box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:44px;padding:8px 12px;background:var(--van-bot-mobile-prompts-item-background);border:1px solid var(--van-bot-mobile-prompts-item-border-color);border-radius:8px;cursor:pointer}.van-bot-mobile-prompts__item:active{background:var(--van-bot-mobile-prompts-item-active-background)}.van-bot-mobile-prompts__item--active{background:var(--van-bot-mobile-prompts-item-selected-background);border-color:var(--van-bot-mobile-prompts-item-selected-border-color)}.van-bot-mobile-prompts__item--active .van-bot-mobile-prompts__item-title{color:var(--van-bot-mobile-prompts-item-selected-color);font-weight:var(--van-font-weight-bold)}.van-bot-mobile-prompts__item-title{color:var(--van-bot-mobile-prompts-item-title-color);font-size:var(--van-font-size-md);font-weight:500;line-height:1.4}.van-bot-mobile-prompts__item-desc{overflow:hidden;color:var(--van-bot-mobile-prompts-item-desc-color);font-size:var(--van-bot-mobile-prompts-title-font-size);line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.van-bot-mobile-sheet{height:var(--van-bot-mobile-sheet-height)}.van-bot-mobile-sheet .van-bot-mobile{display:flex;flex-direction:column;height:100%}.van-bot-mobile-sheet .van-bot-mobile .bot-card{flex:1;min-height:0}.van-bot-mobile-context-tags{display:flex;flex-wrap:nowrap;gap:var(--van-bot-mobile-context-tags-gap);width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.van-bot-mobile-context-tags__item{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:center;min-height:44px;padding:var(--van-bot-mobile-context-tags-padding);color:var(--van-bot-mobile-context-tags-color);font-size:var(--van-bot-mobile-context-tags-font-size);line-height:var(--van-bot-mobile-context-tags-line-height);white-space:nowrap;background:var(--van-bot-mobile-context-tags-background-color);border-radius:var(--van-bot-mobile-context-tags-border-radius);cursor:pointer}.van-bot-mobile-context-tags__item:active{opacity:var(--van-bot-mobile-context-tags-active-opacity)}.van-bot-mobile-context-tags__item--selected{color:var(--van-bot-mobile-context-tags-selected-color);background:var(--van-bot-mobile-context-tags-selected-background-color)}.van-bot-mobile-fab{position:fixed;z-index:var(--van-bot-mobile-fab-z-index);box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:var(--van-bot-mobile-fab-size);height:var(--van-bot-mobile-fab-size);color:var(--van-bot-mobile-fab-color);background:var(--van-bot-mobile-fab-background);border-radius:50%;box-shadow:var(--van-bot-mobile-fab-shadow);cursor:pointer;touch-action:none;transition:left .25s ease,right .25s ease,top .25s ease}.van-bot-mobile-fab--dragging{transition:none}.van-bot-mobile-fab__icon{font-size:24px}.van-bot-mobile-history-drawer{box-sizing:border-box;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.van-bot-mobile-history-drawer__header{box-sizing:border-box;display:flex;flex:none;align-items:center;justify-content:space-between;height:var(--van-bot-mobile-history-drawer-header-height);padding:0 16px;border-bottom:1px solid var(--van-bot-mobile-border-color)}.van-bot-mobile-history-drawer__close,.van-bot-mobile-history-drawer__create{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;font-size:20px;cursor:pointer}.van-bot-mobile-history-drawer__title{overflow:hidden;color:var(--van-bot-mobile-history-drawer-title-color);font-size:var(--van-font-size-lg);font-weight:500;text-align:center;text-overflow:ellipsis;white-space:nowrap}.van-bot-mobile-history-drawer__search{flex:none}.van-bot-mobile-history-drawer__list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-bot-mobile-session-item{box-sizing:border-box;display:flex;align-items:center;min-height:44px;padding:8px 16px;border-bottom:1px solid var(--van-bot-mobile-border-color)}.van-bot-mobile-session-item--active{background:var(--van-bot-mobile-session-item-active-background)}.van-bot-mobile-session-item__body{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;min-height:44px;cursor:pointer}.van-bot-mobile-session-item__name{overflow:hidden;color:var(--van-bot-mobile-session-item-name-color);font-size:var(--van-font-size-md);line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.van-bot-mobile-session-item__meta{display:flex;gap:8px;overflow:hidden;color:var(--van-bot-mobile-session-item-meta-color);font-size:var(--van-font-size-sm);line-height:1.4}.van-bot-mobile-session-item__preview{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.van-bot-mobile-session-item__time{flex:none}.van-bot-mobile-session-item__input{flex:1;box-sizing:border-box;min-height:44px;padding:0 8px;color:var(--van-bot-mobile-session-item-name-color);font-size:var(--van-font-size-md);background:var(--van-background-color);border:1px solid var(--van-bot-mobile-primary-color);border-radius:var(--van-border-radius-md);outline:none}.van-bot-mobile-session-item__actions{display:flex;flex:none;gap:4px;margin-left:8px}.van-bot-mobile-session-item__action{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--van-bot-mobile-session-item-action-color);font-size:18px;cursor:pointer}.van-bot-mobile-session-item__action--danger{color:var(--van-bot-mobile-session-item-danger-color)}.van-bot-mobile-voice-bar{box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:var(--van-bot-mobile-voice-bar-height);padding:0 16px;background:var(--van-bot-mobile-voice-bar-background);border:1px solid var(--van-bot-mobile-voice-bar-border-color);border-radius:var(--van-border-radius-lg);cursor:pointer;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.van-bot-mobile-voice-bar--recording{background:var(--van-bot-mobile-voice-bar-recording-background)}.van-bot-mobile-voice-bar--cancel-zone{background:var(--van-bot-mobile-voice-bar-cancel-zone-background)}.van-bot-mobile-voice-bar__wave{width:100%;height:32px;color:var(--van-bot-mobile-voice-bar-wave-color)}.van-bot-mobile-voice-bar__info{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:2px}.van-bot-mobile-voice-bar__elapsed{color:var(--van-bot-mobile-voice-bar-elapsed-color);font-size:var(--van-font-size-sm)}.van-bot-mobile-voice-bar__hint{color:var(--van-bot-mobile-voice-bar-hint-color);font-size:var(--van-font-size-sm)}.van-bot-mobile-voice-bar__transcribing{display:flex;align-items:center;gap:8px}.van-bot-mobile-voice-bar__transcribing-text{color:var(--van-bot-mobile-voice-bar-hint-color);font-size:var(--van-font-size-sm)}.van-bot-mobile-session-list{display:flex;flex-direction:column;width:100%;height:100%}.van-bot-mobile-session-list__toolbar{box-sizing:border-box;display:flex;flex:none;align-items:center;gap:8px;padding:var(--van-bot-mobile-session-list-toolbar-padding)}.van-bot-mobile-session-list__search{flex:1}.van-bot-mobile-session-list__create{display:flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:var(--van-bot-mobile-session-list-create-color);font-size:20px;cursor:pointer}.van-bot-mobile-session-list__list{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.van-bot-mobile-session-list__loading{display:flex;flex:1;align-items:center;justify-content:center;padding:32px 0}.van-bot-mobile-session-list__empty{flex:1}
|
|
@@ -0,0 +1,469 @@
|
|
|
1
|
+
export declare const BotMobile: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
2
|
+
gatewayBaseUrl: {
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
businessContext: import("vue").PropType<Record<string, unknown>>;
|
|
7
|
+
references: {
|
|
8
|
+
type: import("vue").PropType<unknown[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
title: StringConstructor;
|
|
12
|
+
showHeader: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: true;
|
|
15
|
+
};
|
|
16
|
+
showFooter: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: true;
|
|
19
|
+
};
|
|
20
|
+
clientId: StringConstructor;
|
|
21
|
+
autoConnect: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: true;
|
|
24
|
+
};
|
|
25
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
gatewayBaseUrl: {
|
|
27
|
+
type: import("vue").PropType<string>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
businessContext: import("vue").PropType<Record<string, unknown>>;
|
|
31
|
+
references: {
|
|
32
|
+
type: import("vue").PropType<unknown[]>;
|
|
33
|
+
default: () => never[];
|
|
34
|
+
};
|
|
35
|
+
title: StringConstructor;
|
|
36
|
+
showHeader: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
default: true;
|
|
39
|
+
};
|
|
40
|
+
showFooter: {
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
default: true;
|
|
43
|
+
};
|
|
44
|
+
clientId: StringConstructor;
|
|
45
|
+
autoConnect: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: true;
|
|
48
|
+
};
|
|
49
|
+
}>>, {
|
|
50
|
+
gatewayBaseUrl: string;
|
|
51
|
+
references: unknown[];
|
|
52
|
+
showHeader: boolean;
|
|
53
|
+
showFooter: boolean;
|
|
54
|
+
autoConnect: boolean;
|
|
55
|
+
}>>;
|
|
56
|
+
export default BotMobile;
|
|
57
|
+
export declare const BotMobilePrompts: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
58
|
+
items: {
|
|
59
|
+
type: import("vue").PropType<import("./types").BotMobilePromptItem[]>;
|
|
60
|
+
default: () => never[];
|
|
61
|
+
};
|
|
62
|
+
title: {
|
|
63
|
+
type: import("vue").PropType<string>;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
activeId: {
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
|
+
items: {
|
|
72
|
+
type: import("vue").PropType<import("./types").BotMobilePromptItem[]>;
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
title: {
|
|
76
|
+
type: import("vue").PropType<string>;
|
|
77
|
+
default: string;
|
|
78
|
+
};
|
|
79
|
+
activeId: {
|
|
80
|
+
type: import("vue").PropType<string>;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
}>> & {
|
|
84
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
}, {
|
|
86
|
+
title: string;
|
|
87
|
+
items: import("./types").BotMobilePromptItem[];
|
|
88
|
+
activeId: string;
|
|
89
|
+
}>>;
|
|
90
|
+
export declare const BotMobileContextTags: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
91
|
+
tags: {
|
|
92
|
+
type: import("vue").PropType<import("./types").BotMobileContextTag[]>;
|
|
93
|
+
default: () => never[];
|
|
94
|
+
};
|
|
95
|
+
modelValue: {
|
|
96
|
+
type: import("vue").PropType<string[]>;
|
|
97
|
+
default: () => never[];
|
|
98
|
+
};
|
|
99
|
+
max: {
|
|
100
|
+
type: NumberConstructor;
|
|
101
|
+
default: number;
|
|
102
|
+
};
|
|
103
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
104
|
+
tags: {
|
|
105
|
+
type: import("vue").PropType<import("./types").BotMobileContextTag[]>;
|
|
106
|
+
default: () => never[];
|
|
107
|
+
};
|
|
108
|
+
modelValue: {
|
|
109
|
+
type: import("vue").PropType<string[]>;
|
|
110
|
+
default: () => never[];
|
|
111
|
+
};
|
|
112
|
+
max: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
}>> & {
|
|
117
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
max: number;
|
|
121
|
+
tags: import("./types").BotMobileContextTag[];
|
|
122
|
+
modelValue: string[];
|
|
123
|
+
}>>;
|
|
124
|
+
export declare const BotMobileSheet: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
125
|
+
gatewayBaseUrl: {
|
|
126
|
+
type: import("vue").PropType<string>;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
businessContext: import("vue").PropType<Record<string, unknown>>;
|
|
130
|
+
references: {
|
|
131
|
+
type: import("vue").PropType<unknown[]>;
|
|
132
|
+
default: () => never[];
|
|
133
|
+
};
|
|
134
|
+
title: StringConstructor;
|
|
135
|
+
showHeader: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: true;
|
|
138
|
+
};
|
|
139
|
+
showFooter: {
|
|
140
|
+
type: BooleanConstructor;
|
|
141
|
+
default: true;
|
|
142
|
+
};
|
|
143
|
+
clientId: StringConstructor;
|
|
144
|
+
autoConnect: {
|
|
145
|
+
type: BooleanConstructor;
|
|
146
|
+
default: true;
|
|
147
|
+
};
|
|
148
|
+
} & {
|
|
149
|
+
show: BooleanConstructor;
|
|
150
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
151
|
+
gatewayBaseUrl: {
|
|
152
|
+
type: import("vue").PropType<string>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
155
|
+
businessContext: import("vue").PropType<Record<string, unknown>>;
|
|
156
|
+
references: {
|
|
157
|
+
type: import("vue").PropType<unknown[]>;
|
|
158
|
+
default: () => never[];
|
|
159
|
+
};
|
|
160
|
+
title: StringConstructor;
|
|
161
|
+
showHeader: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
default: true;
|
|
164
|
+
};
|
|
165
|
+
showFooter: {
|
|
166
|
+
type: BooleanConstructor;
|
|
167
|
+
default: true;
|
|
168
|
+
};
|
|
169
|
+
clientId: StringConstructor;
|
|
170
|
+
autoConnect: {
|
|
171
|
+
type: BooleanConstructor;
|
|
172
|
+
default: true;
|
|
173
|
+
};
|
|
174
|
+
} & {
|
|
175
|
+
show: BooleanConstructor;
|
|
176
|
+
}>> & {
|
|
177
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
show: boolean;
|
|
180
|
+
gatewayBaseUrl: string;
|
|
181
|
+
references: unknown[];
|
|
182
|
+
showHeader: boolean;
|
|
183
|
+
showFooter: boolean;
|
|
184
|
+
autoConnect: boolean;
|
|
185
|
+
}>>;
|
|
186
|
+
export declare const BotMobileView: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
187
|
+
messages: {
|
|
188
|
+
type: import("vue").PropType<unknown[]>;
|
|
189
|
+
default: () => never[];
|
|
190
|
+
};
|
|
191
|
+
title: {
|
|
192
|
+
type: import("vue").PropType<string>;
|
|
193
|
+
default: string;
|
|
194
|
+
};
|
|
195
|
+
showHeader: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
default: true;
|
|
198
|
+
};
|
|
199
|
+
showFooter: {
|
|
200
|
+
type: BooleanConstructor;
|
|
201
|
+
default: true;
|
|
202
|
+
};
|
|
203
|
+
placeholder: {
|
|
204
|
+
type: import("vue").PropType<string>;
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
generating: BooleanConstructor;
|
|
208
|
+
disabled: BooleanConstructor;
|
|
209
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
210
|
+
messages: {
|
|
211
|
+
type: import("vue").PropType<unknown[]>;
|
|
212
|
+
default: () => never[];
|
|
213
|
+
};
|
|
214
|
+
title: {
|
|
215
|
+
type: import("vue").PropType<string>;
|
|
216
|
+
default: string;
|
|
217
|
+
};
|
|
218
|
+
showHeader: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: true;
|
|
221
|
+
};
|
|
222
|
+
showFooter: {
|
|
223
|
+
type: BooleanConstructor;
|
|
224
|
+
default: true;
|
|
225
|
+
};
|
|
226
|
+
placeholder: {
|
|
227
|
+
type: import("vue").PropType<string>;
|
|
228
|
+
default: string;
|
|
229
|
+
};
|
|
230
|
+
generating: BooleanConstructor;
|
|
231
|
+
disabled: BooleanConstructor;
|
|
232
|
+
}>>, {
|
|
233
|
+
title: string;
|
|
234
|
+
disabled: boolean;
|
|
235
|
+
placeholder: string;
|
|
236
|
+
showHeader: boolean;
|
|
237
|
+
showFooter: boolean;
|
|
238
|
+
messages: unknown[];
|
|
239
|
+
generating: boolean;
|
|
240
|
+
}>>;
|
|
241
|
+
export declare const BotFab: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
242
|
+
icon: {
|
|
243
|
+
type: import("vue").PropType<string>;
|
|
244
|
+
default: string;
|
|
245
|
+
};
|
|
246
|
+
side: {
|
|
247
|
+
type: import("vue").PropType<import("./fab-position").FabSide>;
|
|
248
|
+
default: import("./fab-position").FabSide;
|
|
249
|
+
};
|
|
250
|
+
offsetBottom: {
|
|
251
|
+
type: NumberConstructor;
|
|
252
|
+
default: number;
|
|
253
|
+
};
|
|
254
|
+
draggable: {
|
|
255
|
+
type: BooleanConstructor;
|
|
256
|
+
default: true;
|
|
257
|
+
};
|
|
258
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
259
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "positionChange")[], "click" | "positionChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
260
|
+
icon: {
|
|
261
|
+
type: import("vue").PropType<string>;
|
|
262
|
+
default: string;
|
|
263
|
+
};
|
|
264
|
+
side: {
|
|
265
|
+
type: import("vue").PropType<import("./fab-position").FabSide>;
|
|
266
|
+
default: import("./fab-position").FabSide;
|
|
267
|
+
};
|
|
268
|
+
offsetBottom: {
|
|
269
|
+
type: NumberConstructor;
|
|
270
|
+
default: number;
|
|
271
|
+
};
|
|
272
|
+
draggable: {
|
|
273
|
+
type: BooleanConstructor;
|
|
274
|
+
default: true;
|
|
275
|
+
};
|
|
276
|
+
badge: (NumberConstructor | StringConstructor)[];
|
|
277
|
+
}>> & {
|
|
278
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
279
|
+
onPositionChange?: ((...args: any[]) => any) | undefined;
|
|
280
|
+
}, {
|
|
281
|
+
icon: string;
|
|
282
|
+
side: import("./fab-position").FabSide;
|
|
283
|
+
offsetBottom: number;
|
|
284
|
+
draggable: boolean;
|
|
285
|
+
}>>;
|
|
286
|
+
export declare const BotHistoryDrawer: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
287
|
+
show: BooleanConstructor;
|
|
288
|
+
sessions: {
|
|
289
|
+
type: import("vue").PropType<import("./types").BotMobileSession[]>;
|
|
290
|
+
default: () => never[];
|
|
291
|
+
};
|
|
292
|
+
activeId: {
|
|
293
|
+
type: import("vue").PropType<string>;
|
|
294
|
+
default: string;
|
|
295
|
+
};
|
|
296
|
+
searchable: {
|
|
297
|
+
type: BooleanConstructor;
|
|
298
|
+
default: true;
|
|
299
|
+
};
|
|
300
|
+
title: {
|
|
301
|
+
type: import("vue").PropType<string>;
|
|
302
|
+
default: string;
|
|
303
|
+
};
|
|
304
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "update:show" | "delete" | "rename" | "create")[], "select" | "update:show" | "delete" | "rename" | "create", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
305
|
+
show: BooleanConstructor;
|
|
306
|
+
sessions: {
|
|
307
|
+
type: import("vue").PropType<import("./types").BotMobileSession[]>;
|
|
308
|
+
default: () => never[];
|
|
309
|
+
};
|
|
310
|
+
activeId: {
|
|
311
|
+
type: import("vue").PropType<string>;
|
|
312
|
+
default: string;
|
|
313
|
+
};
|
|
314
|
+
searchable: {
|
|
315
|
+
type: BooleanConstructor;
|
|
316
|
+
default: true;
|
|
317
|
+
};
|
|
318
|
+
title: {
|
|
319
|
+
type: import("vue").PropType<string>;
|
|
320
|
+
default: string;
|
|
321
|
+
};
|
|
322
|
+
}>> & {
|
|
323
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
324
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
325
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
326
|
+
onRename?: ((...args: any[]) => any) | undefined;
|
|
327
|
+
onCreate?: ((...args: any[]) => any) | undefined;
|
|
328
|
+
}, {
|
|
329
|
+
title: string;
|
|
330
|
+
show: boolean;
|
|
331
|
+
activeId: string;
|
|
332
|
+
sessions: import("./types").BotMobileSession[];
|
|
333
|
+
searchable: boolean;
|
|
334
|
+
}>>;
|
|
335
|
+
export declare const BotVoiceBar: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
336
|
+
state: {
|
|
337
|
+
type: import("vue").PropType<import("./BotVoiceBar").BotVoiceBarState>;
|
|
338
|
+
default: import("./BotVoiceBar").BotVoiceBarState;
|
|
339
|
+
};
|
|
340
|
+
elapsedLabel: {
|
|
341
|
+
type: import("vue").PropType<string>;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
344
|
+
amplitudes: {
|
|
345
|
+
type: import("vue").PropType<number[]>;
|
|
346
|
+
default: () => never[];
|
|
347
|
+
};
|
|
348
|
+
cancelDistance: {
|
|
349
|
+
type: NumberConstructor;
|
|
350
|
+
default: number;
|
|
351
|
+
};
|
|
352
|
+
hint: {
|
|
353
|
+
type: import("vue").PropType<string>;
|
|
354
|
+
default: string;
|
|
355
|
+
};
|
|
356
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("start" | "cancel" | "adopt" | "cancelZoneChange")[], "start" | "cancel" | "adopt" | "cancelZoneChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
357
|
+
state: {
|
|
358
|
+
type: import("vue").PropType<import("./BotVoiceBar").BotVoiceBarState>;
|
|
359
|
+
default: import("./BotVoiceBar").BotVoiceBarState;
|
|
360
|
+
};
|
|
361
|
+
elapsedLabel: {
|
|
362
|
+
type: import("vue").PropType<string>;
|
|
363
|
+
default: string;
|
|
364
|
+
};
|
|
365
|
+
amplitudes: {
|
|
366
|
+
type: import("vue").PropType<number[]>;
|
|
367
|
+
default: () => never[];
|
|
368
|
+
};
|
|
369
|
+
cancelDistance: {
|
|
370
|
+
type: NumberConstructor;
|
|
371
|
+
default: number;
|
|
372
|
+
};
|
|
373
|
+
hint: {
|
|
374
|
+
type: import("vue").PropType<string>;
|
|
375
|
+
default: string;
|
|
376
|
+
};
|
|
377
|
+
}>> & {
|
|
378
|
+
onCancel?: ((...args: any[]) => any) | undefined;
|
|
379
|
+
onStart?: ((...args: any[]) => any) | undefined;
|
|
380
|
+
onAdopt?: ((...args: any[]) => any) | undefined;
|
|
381
|
+
onCancelZoneChange?: ((...args: any[]) => any) | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
state: import("./BotVoiceBar").BotVoiceBarState;
|
|
384
|
+
elapsedLabel: string;
|
|
385
|
+
amplitudes: number[];
|
|
386
|
+
cancelDistance: number;
|
|
387
|
+
hint: string;
|
|
388
|
+
}>>;
|
|
389
|
+
export declare const BotSessionList: import("../utils").WithInstall<import("vue").DefineComponent<{
|
|
390
|
+
sessions: {
|
|
391
|
+
type: import("vue").PropType<import("./types").BotMobileSession[]>;
|
|
392
|
+
default: () => never[];
|
|
393
|
+
};
|
|
394
|
+
activeId: {
|
|
395
|
+
type: import("vue").PropType<string>;
|
|
396
|
+
default: string;
|
|
397
|
+
};
|
|
398
|
+
searchable: {
|
|
399
|
+
type: BooleanConstructor;
|
|
400
|
+
default: true;
|
|
401
|
+
};
|
|
402
|
+
loading: BooleanConstructor;
|
|
403
|
+
emptyText: {
|
|
404
|
+
type: import("vue").PropType<string>;
|
|
405
|
+
default: string;
|
|
406
|
+
};
|
|
407
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "delete" | "rename" | "create")[], "select" | "delete" | "rename" | "create", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
408
|
+
sessions: {
|
|
409
|
+
type: import("vue").PropType<import("./types").BotMobileSession[]>;
|
|
410
|
+
default: () => never[];
|
|
411
|
+
};
|
|
412
|
+
activeId: {
|
|
413
|
+
type: import("vue").PropType<string>;
|
|
414
|
+
default: string;
|
|
415
|
+
};
|
|
416
|
+
searchable: {
|
|
417
|
+
type: BooleanConstructor;
|
|
418
|
+
default: true;
|
|
419
|
+
};
|
|
420
|
+
loading: BooleanConstructor;
|
|
421
|
+
emptyText: {
|
|
422
|
+
type: import("vue").PropType<string>;
|
|
423
|
+
default: string;
|
|
424
|
+
};
|
|
425
|
+
}>> & {
|
|
426
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
427
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
428
|
+
onRename?: ((...args: any[]) => any) | undefined;
|
|
429
|
+
onCreate?: ((...args: any[]) => any) | undefined;
|
|
430
|
+
}, {
|
|
431
|
+
loading: boolean;
|
|
432
|
+
activeId: string;
|
|
433
|
+
sessions: import("./types").BotMobileSession[];
|
|
434
|
+
searchable: boolean;
|
|
435
|
+
emptyText: string;
|
|
436
|
+
}>>;
|
|
437
|
+
export { botMobileProps } from './BotMobile';
|
|
438
|
+
export type { BotMobileProps } from './BotMobile';
|
|
439
|
+
export { botMobilePromptsProps } from './BotMobilePrompts';
|
|
440
|
+
export type { BotMobilePromptsProps } from './BotMobilePrompts';
|
|
441
|
+
export { botMobileContextTagsProps } from './BotMobileContextTags';
|
|
442
|
+
export type { BotMobileContextTagsProps } from './BotMobileContextTags';
|
|
443
|
+
export { botMobileSheetProps } from './BotMobileSheet';
|
|
444
|
+
export type { BotMobileSheetProps } from './BotMobileSheet';
|
|
445
|
+
export { botMobileViewProps } from './BotMobileView';
|
|
446
|
+
export type { BotMobileViewProps } from './BotMobileView';
|
|
447
|
+
export { botFabProps } from './BotFab';
|
|
448
|
+
export type { BotFabProps, BotFabPositionChangePayload } from './BotFab';
|
|
449
|
+
export { botHistoryDrawerProps } from './BotHistoryDrawer';
|
|
450
|
+
export type { BotHistoryDrawerProps } from './BotHistoryDrawer';
|
|
451
|
+
export { botVoiceBarProps } from './BotVoiceBar';
|
|
452
|
+
export type { BotVoiceBarProps, BotVoiceBarState } from './BotVoiceBar';
|
|
453
|
+
export { botSessionListProps } from './BotSessionList';
|
|
454
|
+
export type { BotSessionListProps } from './BotSessionList';
|
|
455
|
+
export type { BotMobileExpose, BotMobileBotRef, BotMobilePromptItem, BotMobileContextTag, BotMobileSession, } from './types';
|
|
456
|
+
export type { FabSide } from './fab-position';
|
|
457
|
+
declare module 'vue' {
|
|
458
|
+
interface GlobalComponents {
|
|
459
|
+
VanBotMobile: typeof BotMobile;
|
|
460
|
+
VanBotMobilePrompts: typeof BotMobilePrompts;
|
|
461
|
+
VanBotMobileContextTags: typeof BotMobileContextTags;
|
|
462
|
+
VanBotMobileSheet: typeof BotMobileSheet;
|
|
463
|
+
VanBotMobileView: typeof BotMobileView;
|
|
464
|
+
VanBotFab: typeof BotFab;
|
|
465
|
+
VanBotHistoryDrawer: typeof BotHistoryDrawer;
|
|
466
|
+
VanBotVoiceBar: typeof BotVoiceBar;
|
|
467
|
+
VanBotSessionList: typeof BotSessionList;
|
|
468
|
+
}
|
|
469
|
+
}
|