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,464 @@
|
|
|
1
|
+
@import './var.less';
|
|
2
|
+
|
|
3
|
+
:root {
|
|
4
|
+
--van-bot-mobile-primary-color: @bot-mobile-primary-color;
|
|
5
|
+
--van-bot-mobile-text-color: @bot-mobile-text-color;
|
|
6
|
+
--van-bot-mobile-border-color: @bot-mobile-border-color;
|
|
7
|
+
--van-bot-mobile-background-color: @bot-mobile-background-color;
|
|
8
|
+
--van-bot-mobile-prompts-title-color: @bot-mobile-prompts-title-color;
|
|
9
|
+
--van-bot-mobile-prompts-title-font-size: @bot-mobile-prompts-title-font-size;
|
|
10
|
+
--van-bot-mobile-prompts-item-background: @bot-mobile-prompts-item-background;
|
|
11
|
+
--van-bot-mobile-prompts-item-border-color: @bot-mobile-prompts-item-border-color;
|
|
12
|
+
--van-bot-mobile-prompts-item-active-background: @bot-mobile-prompts-item-active-background;
|
|
13
|
+
--van-bot-mobile-prompts-item-selected-background: @bot-mobile-prompts-item-selected-background;
|
|
14
|
+
--van-bot-mobile-prompts-item-selected-border-color: @bot-mobile-prompts-item-selected-border-color;
|
|
15
|
+
--van-bot-mobile-prompts-item-selected-color: @bot-mobile-prompts-item-selected-color;
|
|
16
|
+
--van-bot-mobile-prompts-item-title-color: @bot-mobile-prompts-item-title-color;
|
|
17
|
+
--van-bot-mobile-prompts-item-desc-color: @bot-mobile-prompts-item-desc-color;
|
|
18
|
+
--van-bot-mobile-context-tags-gap: @bot-mobile-context-tags-gap;
|
|
19
|
+
--van-bot-mobile-context-tags-padding: @bot-mobile-context-tags-padding;
|
|
20
|
+
--van-bot-mobile-context-tags-font-size: @bot-mobile-context-tags-font-size;
|
|
21
|
+
--van-bot-mobile-context-tags-line-height: @bot-mobile-context-tags-line-height;
|
|
22
|
+
--van-bot-mobile-context-tags-border-radius: @bot-mobile-context-tags-border-radius;
|
|
23
|
+
--van-bot-mobile-context-tags-color: @bot-mobile-context-tags-color;
|
|
24
|
+
--van-bot-mobile-context-tags-background-color: @bot-mobile-context-tags-background-color;
|
|
25
|
+
--van-bot-mobile-context-tags-selected-color: @bot-mobile-context-tags-selected-color;
|
|
26
|
+
--van-bot-mobile-context-tags-selected-background-color: @bot-mobile-context-tags-selected-background-color;
|
|
27
|
+
--van-bot-mobile-context-tags-active-opacity: @bot-mobile-context-tags-active-opacity;
|
|
28
|
+
--van-bot-mobile-sheet-height: @bot-mobile-sheet-height;
|
|
29
|
+
--van-bot-mobile-fab-size: @bot-mobile-fab-size;
|
|
30
|
+
--van-bot-mobile-fab-z-index: @bot-mobile-fab-z-index;
|
|
31
|
+
--van-bot-mobile-fab-color: @bot-mobile-fab-color;
|
|
32
|
+
--van-bot-mobile-fab-background: @bot-mobile-fab-background;
|
|
33
|
+
--van-bot-mobile-fab-shadow: @bot-mobile-fab-shadow;
|
|
34
|
+
--van-bot-mobile-session-item-active-background: @bot-mobile-session-item-active-background;
|
|
35
|
+
--van-bot-mobile-session-item-name-color: @bot-mobile-session-item-name-color;
|
|
36
|
+
--van-bot-mobile-session-item-meta-color: @bot-mobile-session-item-meta-color;
|
|
37
|
+
--van-bot-mobile-session-item-action-color: @bot-mobile-session-item-action-color;
|
|
38
|
+
--van-bot-mobile-session-item-danger-color: @bot-mobile-session-item-danger-color;
|
|
39
|
+
--van-bot-mobile-history-drawer-header-height: @bot-mobile-history-drawer-header-height;
|
|
40
|
+
--van-bot-mobile-history-drawer-title-color: @bot-mobile-history-drawer-title-color;
|
|
41
|
+
--van-bot-mobile-voice-bar-height: @bot-mobile-voice-bar-height;
|
|
42
|
+
--van-bot-mobile-voice-bar-background: @bot-mobile-voice-bar-background;
|
|
43
|
+
--van-bot-mobile-voice-bar-border-color: @bot-mobile-voice-bar-border-color;
|
|
44
|
+
--van-bot-mobile-voice-bar-recording-background: @bot-mobile-voice-bar-recording-background;
|
|
45
|
+
--van-bot-mobile-voice-bar-cancel-zone-background: @bot-mobile-voice-bar-cancel-zone-background;
|
|
46
|
+
--van-bot-mobile-voice-bar-elapsed-color: @bot-mobile-voice-bar-elapsed-color;
|
|
47
|
+
--van-bot-mobile-voice-bar-hint-color: @bot-mobile-voice-bar-hint-color;
|
|
48
|
+
--van-bot-mobile-voice-bar-wave-color: @bot-mobile-voice-bar-wave-color;
|
|
49
|
+
--van-bot-mobile-session-list-toolbar-padding: @bot-mobile-session-list-toolbar-padding;
|
|
50
|
+
--van-bot-mobile-session-list-create-color: @bot-mobile-session-list-create-color;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 宿主 vant token → meos-bot-web .bot-card token 映射(可被 ConfigProvider 换肤)
|
|
54
|
+
// BotMobileView(纯展示版主组件)与 BotMobile(开箱连网关版)共用同一段 token 映射
|
|
55
|
+
.van-bot-mobile,
|
|
56
|
+
.van-bot-mobile-view {
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
|
|
60
|
+
.bot-card {
|
|
61
|
+
--primary-color: var(--van-bot-mobile-primary-color);
|
|
62
|
+
--accent: var(--van-bot-mobile-primary-color);
|
|
63
|
+
--ink-1: var(--van-bot-mobile-text-color);
|
|
64
|
+
--line: var(--van-bot-mobile-border-color);
|
|
65
|
+
--gray-0: var(--van-bot-mobile-background-color);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// 示例输入 chips:竖向列表卡片式,标题一行 + prompt 摘要一行
|
|
70
|
+
.van-bot-mobile-prompts {
|
|
71
|
+
width: 100%;
|
|
72
|
+
|
|
73
|
+
&__title {
|
|
74
|
+
margin-bottom: 8px;
|
|
75
|
+
color: var(--van-bot-mobile-prompts-title-color);
|
|
76
|
+
font-size: var(--van-bot-mobile-prompts-title-font-size);
|
|
77
|
+
line-height: 1.4;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&__list {
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
gap: 8px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&__item {
|
|
87
|
+
box-sizing: border-box;
|
|
88
|
+
display: flex;
|
|
89
|
+
flex-direction: column;
|
|
90
|
+
justify-content: center;
|
|
91
|
+
gap: 4px;
|
|
92
|
+
min-height: 44px;
|
|
93
|
+
padding: 8px 12px;
|
|
94
|
+
background: var(--van-bot-mobile-prompts-item-background);
|
|
95
|
+
border: 1px solid var(--van-bot-mobile-prompts-item-border-color);
|
|
96
|
+
border-radius: 8px;
|
|
97
|
+
cursor: pointer;
|
|
98
|
+
|
|
99
|
+
&:active {
|
|
100
|
+
background: var(--van-bot-mobile-prompts-item-active-background);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// 触屏无 hover:选中态是点击后唯一的持久反馈,需明显可辨
|
|
104
|
+
&--active {
|
|
105
|
+
background: var(--van-bot-mobile-prompts-item-selected-background);
|
|
106
|
+
border-color: var(--van-bot-mobile-prompts-item-selected-border-color);
|
|
107
|
+
|
|
108
|
+
.van-bot-mobile-prompts__item-title {
|
|
109
|
+
color: var(--van-bot-mobile-prompts-item-selected-color);
|
|
110
|
+
font-weight: var(--van-font-weight-bold);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&__item-title {
|
|
116
|
+
color: var(--van-bot-mobile-prompts-item-title-color);
|
|
117
|
+
font-size: var(--van-font-size-md);
|
|
118
|
+
font-weight: 500;
|
|
119
|
+
line-height: 1.4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&__item-desc {
|
|
123
|
+
overflow: hidden;
|
|
124
|
+
color: var(--van-bot-mobile-prompts-item-desc-color);
|
|
125
|
+
font-size: var(--van-bot-mobile-prompts-title-font-size);
|
|
126
|
+
line-height: 1.4;
|
|
127
|
+
text-overflow: ellipsis;
|
|
128
|
+
white-space: nowrap;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// 90% 高呼出面板:内嵌 BotMobile 撑满剩余高度
|
|
133
|
+
.van-bot-mobile-sheet {
|
|
134
|
+
height: var(--van-bot-mobile-sheet-height);
|
|
135
|
+
|
|
136
|
+
.van-bot-mobile {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
height: 100%;
|
|
140
|
+
|
|
141
|
+
.bot-card {
|
|
142
|
+
flex: 1;
|
|
143
|
+
min-height: 0;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// 上下文标签行:横向滚动一行,不换行,命中区 ≥44px,选中态对照 FilterTag
|
|
149
|
+
.van-bot-mobile-context-tags {
|
|
150
|
+
display: flex;
|
|
151
|
+
flex-wrap: nowrap;
|
|
152
|
+
gap: var(--van-bot-mobile-context-tags-gap);
|
|
153
|
+
width: 100%;
|
|
154
|
+
overflow-x: auto;
|
|
155
|
+
-webkit-overflow-scrolling: touch;
|
|
156
|
+
|
|
157
|
+
&__item {
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
display: flex;
|
|
160
|
+
flex: none;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
min-height: 44px;
|
|
164
|
+
padding: var(--van-bot-mobile-context-tags-padding);
|
|
165
|
+
color: var(--van-bot-mobile-context-tags-color);
|
|
166
|
+
font-size: var(--van-bot-mobile-context-tags-font-size);
|
|
167
|
+
line-height: var(--van-bot-mobile-context-tags-line-height);
|
|
168
|
+
white-space: nowrap;
|
|
169
|
+
background: var(--van-bot-mobile-context-tags-background-color);
|
|
170
|
+
border-radius: var(--van-bot-mobile-context-tags-border-radius);
|
|
171
|
+
cursor: pointer;
|
|
172
|
+
|
|
173
|
+
&:active {
|
|
174
|
+
opacity: var(--van-bot-mobile-context-tags-active-opacity);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&--selected {
|
|
178
|
+
color: var(--van-bot-mobile-context-tags-selected-color);
|
|
179
|
+
background: var(--van-bot-mobile-context-tags-selected-background-color);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
// 可拖拽吸边浮标:position: fixed 由组件内联 style 控制 top/left/right,
|
|
185
|
+
// 这里只负责外观;拖拽中禁用过渡以避免位置跳变的动画干扰手势
|
|
186
|
+
.van-bot-mobile-fab {
|
|
187
|
+
position: fixed;
|
|
188
|
+
z-index: var(--van-bot-mobile-fab-z-index);
|
|
189
|
+
box-sizing: border-box;
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
192
|
+
justify-content: center;
|
|
193
|
+
width: var(--van-bot-mobile-fab-size);
|
|
194
|
+
height: var(--van-bot-mobile-fab-size);
|
|
195
|
+
color: var(--van-bot-mobile-fab-color);
|
|
196
|
+
background: var(--van-bot-mobile-fab-background);
|
|
197
|
+
border-radius: 50%;
|
|
198
|
+
box-shadow: var(--van-bot-mobile-fab-shadow);
|
|
199
|
+
cursor: pointer;
|
|
200
|
+
touch-action: none;
|
|
201
|
+
transition: left 0.25s ease, right 0.25s ease, top 0.25s ease;
|
|
202
|
+
|
|
203
|
+
&--dragging {
|
|
204
|
+
transition: none;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&__icon {
|
|
208
|
+
font-size: 24px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
// 会话历史全屏抽屉:Popup(position=right) 撑满视口
|
|
213
|
+
.van-bot-mobile-history-drawer {
|
|
214
|
+
box-sizing: border-box;
|
|
215
|
+
display: flex;
|
|
216
|
+
flex-direction: column;
|
|
217
|
+
width: 100%;
|
|
218
|
+
height: 100%;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
|
|
221
|
+
&__header {
|
|
222
|
+
box-sizing: border-box;
|
|
223
|
+
display: flex;
|
|
224
|
+
flex: none;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: space-between;
|
|
227
|
+
height: var(--van-bot-mobile-history-drawer-header-height);
|
|
228
|
+
padding: 0 16px;
|
|
229
|
+
border-bottom: 1px solid var(--van-bot-mobile-border-color);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&__close,
|
|
233
|
+
&__create {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
justify-content: center;
|
|
237
|
+
min-width: 44px;
|
|
238
|
+
min-height: 44px;
|
|
239
|
+
font-size: 20px;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&__title {
|
|
244
|
+
overflow: hidden;
|
|
245
|
+
color: var(--van-bot-mobile-history-drawer-title-color);
|
|
246
|
+
font-size: var(--van-font-size-lg);
|
|
247
|
+
font-weight: 500;
|
|
248
|
+
text-align: center;
|
|
249
|
+
text-overflow: ellipsis;
|
|
250
|
+
white-space: nowrap;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
&__search {
|
|
254
|
+
flex: none;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&__list {
|
|
258
|
+
flex: 1;
|
|
259
|
+
min-height: 0;
|
|
260
|
+
overflow-y: auto;
|
|
261
|
+
-webkit-overflow-scrolling: touch;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
// 会话行公共样式:BotHistoryDrawer 与 BotSessionList 共用,避免两份重复
|
|
266
|
+
.van-bot-mobile-session-item {
|
|
267
|
+
box-sizing: border-box;
|
|
268
|
+
display: flex;
|
|
269
|
+
align-items: center;
|
|
270
|
+
min-height: 44px;
|
|
271
|
+
padding: 8px 16px;
|
|
272
|
+
border-bottom: 1px solid var(--van-bot-mobile-border-color);
|
|
273
|
+
|
|
274
|
+
&--active {
|
|
275
|
+
background: var(--van-bot-mobile-session-item-active-background);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&__body {
|
|
279
|
+
display: flex;
|
|
280
|
+
flex: 1;
|
|
281
|
+
flex-direction: column;
|
|
282
|
+
justify-content: center;
|
|
283
|
+
min-width: 0;
|
|
284
|
+
min-height: 44px;
|
|
285
|
+
cursor: pointer;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&__name {
|
|
289
|
+
overflow: hidden;
|
|
290
|
+
color: var(--van-bot-mobile-session-item-name-color);
|
|
291
|
+
font-size: var(--van-font-size-md);
|
|
292
|
+
line-height: 1.4;
|
|
293
|
+
text-overflow: ellipsis;
|
|
294
|
+
white-space: nowrap;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
&__meta {
|
|
298
|
+
display: flex;
|
|
299
|
+
gap: 8px;
|
|
300
|
+
overflow: hidden;
|
|
301
|
+
color: var(--van-bot-mobile-session-item-meta-color);
|
|
302
|
+
font-size: var(--van-font-size-sm);
|
|
303
|
+
line-height: 1.4;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
&__preview {
|
|
307
|
+
overflow: hidden;
|
|
308
|
+
text-overflow: ellipsis;
|
|
309
|
+
white-space: nowrap;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
&__time {
|
|
313
|
+
flex: none;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&__input {
|
|
317
|
+
flex: 1;
|
|
318
|
+
box-sizing: border-box;
|
|
319
|
+
min-height: 44px;
|
|
320
|
+
padding: 0 8px;
|
|
321
|
+
color: var(--van-bot-mobile-session-item-name-color);
|
|
322
|
+
font-size: var(--van-font-size-md);
|
|
323
|
+
background: var(--van-background-color);
|
|
324
|
+
border: 1px solid var(--van-bot-mobile-primary-color);
|
|
325
|
+
border-radius: var(--van-border-radius-md);
|
|
326
|
+
outline: none;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
// 触屏无 hover:常显,不依赖 :hover
|
|
330
|
+
&__actions {
|
|
331
|
+
display: flex;
|
|
332
|
+
flex: none;
|
|
333
|
+
gap: 4px;
|
|
334
|
+
margin-left: 8px;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
&__action {
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
justify-content: center;
|
|
341
|
+
min-width: 44px;
|
|
342
|
+
min-height: 44px;
|
|
343
|
+
color: var(--van-bot-mobile-session-item-action-color);
|
|
344
|
+
font-size: 18px;
|
|
345
|
+
cursor: pointer;
|
|
346
|
+
|
|
347
|
+
&--danger {
|
|
348
|
+
color: var(--van-bot-mobile-session-item-danger-color);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
// 按住说话条:受控组件,state/amplitudes 均由宿主传入;拖拽中禁用文本选中,
|
|
354
|
+
// touch-action: none 避免触屏滚动干扰上滑取消手势
|
|
355
|
+
.van-bot-mobile-voice-bar {
|
|
356
|
+
box-sizing: border-box;
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: center;
|
|
360
|
+
height: var(--van-bot-mobile-voice-bar-height);
|
|
361
|
+
padding: 0 16px;
|
|
362
|
+
background: var(--van-bot-mobile-voice-bar-background);
|
|
363
|
+
border: 1px solid var(--van-bot-mobile-voice-bar-border-color);
|
|
364
|
+
border-radius: var(--van-border-radius-lg);
|
|
365
|
+
cursor: pointer;
|
|
366
|
+
touch-action: none;
|
|
367
|
+
user-select: none;
|
|
368
|
+
|
|
369
|
+
&--recording {
|
|
370
|
+
background: var(--van-bot-mobile-voice-bar-recording-background);
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
&--cancel-zone {
|
|
374
|
+
background: var(--van-bot-mobile-voice-bar-cancel-zone-background);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
&__wave {
|
|
378
|
+
width: 100%;
|
|
379
|
+
height: 32px;
|
|
380
|
+
color: var(--van-bot-mobile-voice-bar-wave-color);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
&__info {
|
|
384
|
+
display: flex;
|
|
385
|
+
align-items: center;
|
|
386
|
+
justify-content: center;
|
|
387
|
+
gap: 8px;
|
|
388
|
+
margin-top: 2px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
&__elapsed {
|
|
392
|
+
color: var(--van-bot-mobile-voice-bar-elapsed-color);
|
|
393
|
+
font-size: var(--van-font-size-sm);
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
&__hint {
|
|
397
|
+
color: var(--van-bot-mobile-voice-bar-hint-color);
|
|
398
|
+
font-size: var(--van-font-size-sm);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
&__transcribing {
|
|
402
|
+
display: flex;
|
|
403
|
+
align-items: center;
|
|
404
|
+
gap: 8px;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
&__transcribing-text {
|
|
408
|
+
color: var(--van-bot-mobile-voice-bar-hint-color);
|
|
409
|
+
font-size: var(--van-font-size-sm);
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
// 全部会话页:块级组件,无 Popup 外壳,可直接放进路由页;列表项样式复用
|
|
414
|
+
// .van-bot-mobile-session-item(见上),这里只负责工具条 + 空态/加载态外观
|
|
415
|
+
.van-bot-mobile-session-list {
|
|
416
|
+
display: flex;
|
|
417
|
+
flex-direction: column;
|
|
418
|
+
width: 100%;
|
|
419
|
+
height: 100%;
|
|
420
|
+
|
|
421
|
+
&__toolbar {
|
|
422
|
+
box-sizing: border-box;
|
|
423
|
+
display: flex;
|
|
424
|
+
flex: none;
|
|
425
|
+
align-items: center;
|
|
426
|
+
gap: 8px;
|
|
427
|
+
padding: var(--van-bot-mobile-session-list-toolbar-padding);
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
&__search {
|
|
431
|
+
flex: 1;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&__create {
|
|
435
|
+
display: flex;
|
|
436
|
+
flex: none;
|
|
437
|
+
align-items: center;
|
|
438
|
+
justify-content: center;
|
|
439
|
+
min-width: 44px;
|
|
440
|
+
min-height: 44px;
|
|
441
|
+
color: var(--van-bot-mobile-session-list-create-color);
|
|
442
|
+
font-size: 20px;
|
|
443
|
+
cursor: pointer;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
&__list {
|
|
447
|
+
flex: 1;
|
|
448
|
+
min-height: 0;
|
|
449
|
+
overflow-y: auto;
|
|
450
|
+
-webkit-overflow-scrolling: touch;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
&__loading {
|
|
454
|
+
display: flex;
|
|
455
|
+
flex: 1;
|
|
456
|
+
align-items: center;
|
|
457
|
+
justify-content: center;
|
|
458
|
+
padding: 32px 0;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
&__empty {
|
|
462
|
+
flex: 1;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
|
2
|
+
import _BotMobile from "./BotMobile.mjs";
|
|
3
|
+
import _BotMobilePrompts from "./BotMobilePrompts.mjs";
|
|
4
|
+
import _BotMobileContextTags from "./BotMobileContextTags.mjs";
|
|
5
|
+
import _BotMobileSheet from "./BotMobileSheet.mjs";
|
|
6
|
+
import _BotMobileView from "./BotMobileView.mjs";
|
|
7
|
+
import _BotFab from "./BotFab.mjs";
|
|
8
|
+
import _BotHistoryDrawer from "./BotHistoryDrawer.mjs";
|
|
9
|
+
import _BotVoiceBar from "./BotVoiceBar.mjs";
|
|
10
|
+
import _BotSessionList from "./BotSessionList.mjs";
|
|
11
|
+
const BotMobile = withInstall(_BotMobile);
|
|
12
|
+
var stdin_default = BotMobile;
|
|
13
|
+
const BotMobilePrompts = withInstall(_BotMobilePrompts);
|
|
14
|
+
const BotMobileContextTags = withInstall(_BotMobileContextTags);
|
|
15
|
+
const BotMobileSheet = withInstall(_BotMobileSheet);
|
|
16
|
+
const BotMobileView = withInstall(_BotMobileView);
|
|
17
|
+
const BotFab = withInstall(_BotFab);
|
|
18
|
+
const BotHistoryDrawer = withInstall(_BotHistoryDrawer);
|
|
19
|
+
const BotVoiceBar = withInstall(_BotVoiceBar);
|
|
20
|
+
const BotSessionList = withInstall(_BotSessionList);
|
|
21
|
+
import { botMobileProps } from "./BotMobile.mjs";
|
|
22
|
+
import { botMobilePromptsProps } from "./BotMobilePrompts.mjs";
|
|
23
|
+
import { botMobileContextTagsProps } from "./BotMobileContextTags.mjs";
|
|
24
|
+
import { botMobileSheetProps } from "./BotMobileSheet.mjs";
|
|
25
|
+
import { botMobileViewProps } from "./BotMobileView.mjs";
|
|
26
|
+
import { botFabProps } from "./BotFab.mjs";
|
|
27
|
+
import { botHistoryDrawerProps } from "./BotHistoryDrawer.mjs";
|
|
28
|
+
import { botVoiceBarProps } from "./BotVoiceBar.mjs";
|
|
29
|
+
import { botSessionListProps } from "./BotSessionList.mjs";
|
|
30
|
+
export {
|
|
31
|
+
BotFab,
|
|
32
|
+
BotHistoryDrawer,
|
|
33
|
+
BotMobile,
|
|
34
|
+
BotMobileContextTags,
|
|
35
|
+
BotMobilePrompts,
|
|
36
|
+
BotMobileSheet,
|
|
37
|
+
BotMobileView,
|
|
38
|
+
BotSessionList,
|
|
39
|
+
BotVoiceBar,
|
|
40
|
+
botFabProps,
|
|
41
|
+
botHistoryDrawerProps,
|
|
42
|
+
botMobileContextTagsProps,
|
|
43
|
+
botMobilePromptsProps,
|
|
44
|
+
botMobileProps,
|
|
45
|
+
botMobileSheetProps,
|
|
46
|
+
botMobileViewProps,
|
|
47
|
+
botSessionListProps,
|
|
48
|
+
botVoiceBarProps,
|
|
49
|
+
stdin_default as default
|
|
50
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
function filterSessions(sessions, keyword) {
|
|
2
|
+
const query = keyword.trim().toLowerCase();
|
|
3
|
+
if (!query) {
|
|
4
|
+
return sessions;
|
|
5
|
+
}
|
|
6
|
+
return sessions.filter((session) => {
|
|
7
|
+
var _a;
|
|
8
|
+
const name = session.name.toLowerCase();
|
|
9
|
+
const preview = ((_a = session.preview) != null ? _a : "").toLowerCase();
|
|
10
|
+
return name.includes(query) || preview.includes(query);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
filterSessions
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { BotMobileSession } from './types';
|
|
2
|
+
export interface RenderSessionItemOptions {
|
|
3
|
+
key: string;
|
|
4
|
+
session: BotMobileSession;
|
|
5
|
+
active: boolean;
|
|
6
|
+
editing: boolean;
|
|
7
|
+
editingName: string;
|
|
8
|
+
onSelect: () => void;
|
|
9
|
+
onStartRename: () => void;
|
|
10
|
+
onEditingNameInput: (value: string) => void;
|
|
11
|
+
onCommitRename: () => void;
|
|
12
|
+
onCancelRename: () => void;
|
|
13
|
+
onDelete: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare function renderSessionItem(options: RenderSessionItemOptions): JSX.Element;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { createNamespace } from "../utils/index.mjs";
|
|
3
|
+
import { Icon } from "../icon/index.mjs";
|
|
4
|
+
const [, bem] = createNamespace("bot-mobile-session-item");
|
|
5
|
+
function renderSessionItem(options) {
|
|
6
|
+
const {
|
|
7
|
+
key,
|
|
8
|
+
session,
|
|
9
|
+
active,
|
|
10
|
+
editing,
|
|
11
|
+
editingName,
|
|
12
|
+
onSelect,
|
|
13
|
+
onStartRename,
|
|
14
|
+
onEditingNameInput,
|
|
15
|
+
onCommitRename,
|
|
16
|
+
onCancelRename,
|
|
17
|
+
onDelete
|
|
18
|
+
} = options;
|
|
19
|
+
const stop = (fn) => (event) => {
|
|
20
|
+
event.stopPropagation();
|
|
21
|
+
fn();
|
|
22
|
+
};
|
|
23
|
+
const renderBody = () => {
|
|
24
|
+
if (editing) {
|
|
25
|
+
return _createVNode("input", {
|
|
26
|
+
"class": bem("input"),
|
|
27
|
+
"value": editingName,
|
|
28
|
+
"autofocus": true,
|
|
29
|
+
"onClick": (event) => event.stopPropagation(),
|
|
30
|
+
"onInput": (event) => onEditingNameInput(event.target.value),
|
|
31
|
+
"onKeydown": (event) => {
|
|
32
|
+
if (event.key === "Enter") {
|
|
33
|
+
onCommitRename();
|
|
34
|
+
} else if (event.key === "Escape") {
|
|
35
|
+
onCancelRename();
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"onBlur": onCommitRename
|
|
39
|
+
}, null);
|
|
40
|
+
}
|
|
41
|
+
return _createVNode("div", {
|
|
42
|
+
"class": bem("body"),
|
|
43
|
+
"onClick": onSelect
|
|
44
|
+
}, [_createVNode("div", {
|
|
45
|
+
"class": bem("name")
|
|
46
|
+
}, [session.name]), (session.preview || session.updatedAt !== void 0) && _createVNode("div", {
|
|
47
|
+
"class": bem("meta")
|
|
48
|
+
}, [session.preview && _createVNode("span", {
|
|
49
|
+
"class": bem("preview")
|
|
50
|
+
}, [session.preview]), session.updatedAt !== void 0 && _createVNode("span", {
|
|
51
|
+
"class": bem("time")
|
|
52
|
+
}, [session.updatedAt])])]);
|
|
53
|
+
};
|
|
54
|
+
return _createVNode("div", {
|
|
55
|
+
"key": key,
|
|
56
|
+
"class": bem({
|
|
57
|
+
active
|
|
58
|
+
})
|
|
59
|
+
}, [renderBody(), !editing && _createVNode("div", {
|
|
60
|
+
"class": bem("actions")
|
|
61
|
+
}, [_createVNode(Icon, {
|
|
62
|
+
"name": "edit",
|
|
63
|
+
"class": bem("action"),
|
|
64
|
+
"onClick": stop(onStartRename)
|
|
65
|
+
}, null), _createVNode(Icon, {
|
|
66
|
+
"name": "delete",
|
|
67
|
+
"class": bem("action", "danger"),
|
|
68
|
+
"onClick": stop(onDelete)
|
|
69
|
+
}, null)])]);
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
renderSessionItem
|
|
73
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../style/base.css";
|
|
2
|
+
import "../../badge/index.css";
|
|
3
|
+
import "../../icon/index.css";
|
|
4
|
+
import "../../loading/index.css";
|
|
5
|
+
import "../../overlay/index.css";
|
|
6
|
+
import "../../popup/index.css";
|
|
7
|
+
import "../../checkbox-group/index.css";
|
|
8
|
+
import "../../checkbox/index.css";
|
|
9
|
+
import "../../radio-group/index.css";
|
|
10
|
+
import "../../radio/index.css";
|
|
11
|
+
import "../../cell/index.css";
|
|
12
|
+
import "../../field/index.css";
|
|
13
|
+
import "../../search/index.css";
|
|
14
|
+
import "../../empty/index.css";
|
|
15
|
+
import "../index.css";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../style/base.less";
|
|
2
|
+
import "../../badge/index.less";
|
|
3
|
+
import "../../icon/index.less";
|
|
4
|
+
import "../../loading/index.less";
|
|
5
|
+
import "../../overlay/index.less";
|
|
6
|
+
import "../../popup/index.less";
|
|
7
|
+
import "../../checkbox-group/index.less";
|
|
8
|
+
import "../../checkbox/index.less";
|
|
9
|
+
import "../../radio-group/index.less";
|
|
10
|
+
import "../../radio/index.less";
|
|
11
|
+
import "../../cell/index.less";
|
|
12
|
+
import "../../field/index.less";
|
|
13
|
+
import "../../search/index.less";
|
|
14
|
+
import "../../empty/index.less";
|
|
15
|
+
import "../index.less";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import type { BotContainerNanobotExpose } from 'meos-bot-web';
|
|
3
|
+
export declare type BotMobileBotRef = (ComponentPublicInstance & BotContainerNanobotExpose) | undefined;
|
|
4
|
+
export interface BotMobileExpose {
|
|
5
|
+
/** 内层 BotContainerNanobot 实例引用;宿主经 ref.value.botRef 调用会话方法(connect/disconnect 等) */
|
|
6
|
+
botRef: BotMobileBotRef;
|
|
7
|
+
}
|
|
8
|
+
export interface BotMobilePromptItem {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
prompt: string;
|
|
12
|
+
}
|
|
13
|
+
export interface BotMobileContextTag {
|
|
14
|
+
id: string;
|
|
15
|
+
label: string;
|
|
16
|
+
value?: unknown;
|
|
17
|
+
}
|
|
18
|
+
export interface BotMobileSession {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
preview?: string;
|
|
22
|
+
updatedAt?: string | number;
|
|
23
|
+
}
|
|
File without changes
|
|
File without changes
|