dou-ui 0.1.0-alpha.2 → 0.1.0-alpha.3
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/dist/components/button/button.js.map +1 -1
- package/dist/components/button/button.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/button/button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/calendar-view/calendar-view.js.map +1 -1
- package/dist/components/calendar-view/calendar-view.vue_vue_type_script_setup_true_lang.js +7 -2
- package/dist/components/calendar-view/calendar-view.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/cascader/cascader.js.map +1 -1
- package/dist/components/cascader/cascader.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/cascader/cascader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-artifact/chat-artifact.js.map +1 -1
- package/dist/components/chat-artifact/chat-artifact.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/components/chat-artifact/chat-artifact.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments.vue_vue_type_script_setup_true_lang.js +11 -2
- package/dist/components/chat-attachments/chat-attachments.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-attachments/chat-attachments2.js.map +1 -1
- package/dist/components/chat-confirm/chat-confirm.js.map +1 -1
- package/dist/components/chat-confirm/chat-confirm.vue_vue_type_script_setup_true_lang.js +38 -14
- package/dist/components/chat-confirm/chat-confirm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-context-meter/chat-context-meter.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/chat-context-meter/chat-context-meter.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-context-meter/chat-context-meter2.js.map +1 -1
- package/dist/components/chat-message/chat-message.js.map +1 -1
- package/dist/components/chat-message/chat-message.vue_vue_type_script_setup_true_lang.js +88 -33
- package/dist/components/chat-message/chat-message.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-message/chat-message2.js.map +1 -1
- package/dist/components/chat-message/style.js +5 -0
- package/dist/components/chat-plan/chat-plan.js +9 -4
- package/dist/components/chat-plan/chat-plan.js.map +1 -1
- package/dist/components/chat-plan/chat-plan.vue_vue_type_script_setup_true_lang.js +64 -32
- package/dist/components/chat-plan/chat-plan.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-plan/chat-plan2.js +6 -0
- package/dist/components/chat-plan/chat-plan2.js.map +1 -0
- package/dist/components/chat-plan/index.js +1 -1
- package/dist/components/chat-plan/style.js +1 -0
- package/dist/components/chat-reasoning/chat-reasoning.js.map +1 -1
- package/dist/components/chat-reasoning/chat-reasoning.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/chat-reasoning/chat-reasoning.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-citation.js.map +1 -1
- package/dist/components/chat-sources/chat-citation.vue_vue_type_script_setup_true_lang.js +52 -14
- package/dist/components/chat-sources/chat-citation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-sources.js.map +1 -1
- package/dist/components/chat-sources/chat-sources.vue_vue_type_script_setup_true_lang.js +6 -4
- package/dist/components/chat-sources/chat-sources.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-sources/chat-sources2.js.map +1 -1
- package/dist/components/chat-sources/index.js +1 -1
- package/dist/components/chat-steps/chat-steps.js +9 -4
- package/dist/components/chat-steps/chat-steps.js.map +1 -1
- package/dist/components/chat-steps/chat-steps.vue_vue_type_script_setup_true_lang.js +20 -13
- package/dist/components/chat-steps/chat-steps.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-steps/chat-steps2.js +6 -0
- package/dist/components/chat-steps/chat-steps2.js.map +1 -0
- package/dist/components/chat-steps/index.js +1 -1
- package/dist/components/chat-steps/style.js +1 -0
- package/dist/components/chat-tool-call/chat-tool-call.js.map +1 -1
- package/dist/components/chat-tool-call/chat-tool-call.vue_vue_type_script_setup_true_lang.js +38 -12
- package/dist/components/chat-tool-call/chat-tool-call.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/chat-tool-call/chat-tool-call2.js.map +1 -1
- package/dist/components/chat-tool-call/style.js +1 -0
- package/dist/components/code-block/code-block.js.map +1 -1
- package/dist/components/code-block/code-block.vue_vue_type_script_setup_true_lang.js +37 -5
- package/dist/components/code-block/code-block.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/collapse/collapse-item.js.map +1 -1
- package/dist/components/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/collapse/collapse-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/collapse/collapse-transition.js +3 -1
- package/dist/components/collapse/collapse-transition.js.map +1 -1
- package/dist/components/collapse/index.js +1 -2
- package/dist/components/collapse/index.js.map +1 -1
- package/dist/components/color-mode/color-mode-button.js.map +1 -1
- package/dist/components/color-mode/color-mode-button.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-mode/color-mode-select.js.map +1 -1
- package/dist/components/color-mode/color-mode-select.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-mode/color-mode-switch.js.map +1 -1
- package/dist/components/color-mode/color-mode-switch.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-mode/color-mode-switch.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-panel/color-panel.js.map +1 -1
- package/dist/components/color-panel/color-panel.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/color-panel/color-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/color-picker/color-picker.js.map +1 -1
- package/dist/components/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/color-picker/color-picker.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/comment-thread/comment-thread.js.map +1 -1
- package/dist/components/comment-thread/comment-thread.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/comment-thread/comment-thread.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/comment-thread/style.js +2 -0
- package/dist/components/context-menu/context-menu.js.map +1 -1
- package/dist/components/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js +26 -11
- package/dist/components/context-menu/context-menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/context-menu/index.js +2 -0
- package/dist/components/context-menu/index.js.map +1 -1
- package/dist/components/copy-button/copy-button.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/descriptions/descriptions.js.map +1 -1
- package/dist/components/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/components/descriptions/descriptions.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/descriptions/descriptions2.js.map +1 -1
- package/dist/components/dropdown/dropdown-button.js.map +1 -1
- package/dist/components/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/dropdown/dropdown-button.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-group.js +6 -0
- package/dist/components/dropdown/dropdown-group.js.map +1 -0
- package/dist/components/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js +42 -0
- package/dist/components/dropdown/dropdown-group.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/dropdown/dropdown-item.js.map +1 -1
- package/dist/components/dropdown/dropdown-item.vue_vue_type_script_setup_true_lang.js +31 -9
- package/dist/components/dropdown/dropdown-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-items.js.map +1 -1
- package/dist/components/dropdown/dropdown-items.vue_vue_type_script_setup_true_lang.js +77 -52
- package/dist/components/dropdown/dropdown-items.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-radio-group.js.map +1 -1
- package/dist/components/dropdown/dropdown-radio-group.vue_vue_type_script_setup_true_lang.js +23 -5
- package/dist/components/dropdown/dropdown-radio-group.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown-sub.js.map +1 -1
- package/dist/components/dropdown/dropdown-sub.vue_vue_type_script_setup_true_lang.js +5 -4
- package/dist/components/dropdown/dropdown-sub.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown.js.map +1 -1
- package/dist/components/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js +2 -1
- package/dist/components/dropdown/dropdown.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/dropdown/dropdown2.js.map +1 -1
- package/dist/components/dropdown/index.js +4 -5
- package/dist/components/dropdown/index.js.map +1 -1
- package/dist/components/dropdown/item-components.js +11 -0
- package/dist/components/dropdown/item-components.js.map +1 -0
- package/dist/components/dropdown/menu-entries.js +14 -0
- package/dist/components/dropdown/menu-entries.js.map +1 -0
- package/dist/components/dropdown/menu-keys.js +1 -1
- package/dist/components/dropdown/menu-keys.js.map +1 -1
- package/dist/components/ellipsis/ellipsis.js.map +1 -1
- package/dist/components/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/ellipsis/ellipsis.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/image-cropper/image-cropper.js.map +1 -1
- package/dist/components/image-cropper/image-cropper.vue_vue_type_script_setup_true_lang.js +10 -10
- package/dist/components/image-cropper/image-cropper.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/infinite-scroll/infinite-scroll.js.map +1 -1
- package/dist/components/infinite-scroll/infinite-scroll.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/infinite-scroll/infinite-scroll.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input-date/segment-field.js.map +1 -1
- package/dist/components/input-date/segment-field.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/input-date/segment-field.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/input-date/style.js +1 -0
- package/dist/components/input-time/style.js +1 -0
- package/dist/components/layout/layout-aside-trigger.js.map +1 -1
- package/dist/components/layout/layout-aside-trigger.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/layout/layout-aside-trigger.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout-aside.js.map +1 -1
- package/dist/components/layout/layout-aside.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/layout/layout-aside.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout-footer.js.map +1 -1
- package/dist/components/layout/layout-footer.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/components/layout/layout-footer.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/markdown/index.js +9 -0
- package/dist/components/markdown/index.js.map +1 -0
- package/dist/components/markdown/markdown.js +6 -0
- package/dist/components/markdown/markdown.js.map +1 -0
- package/dist/components/markdown/markdown.vue_vue_type_script_setup_true_lang.js +225 -0
- package/dist/components/markdown/markdown.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/components/markdown/parse-block.js +577 -0
- package/dist/components/markdown/parse-block.js.map +1 -0
- package/dist/components/markdown/parse-inline.js +626 -0
- package/dist/components/markdown/parse-inline.js.map +1 -0
- package/dist/components/markdown/parser.js +308 -0
- package/dist/components/markdown/parser.js.map +1 -0
- package/dist/components/markdown/render.js +424 -0
- package/dist/components/markdown/render.js.map +1 -0
- package/dist/components/markdown/style.d.ts +1 -0
- package/dist/components/markdown/style.js +10 -0
- package/dist/components/markdown/url.js +16 -0
- package/dist/components/markdown/url.js.map +1 -0
- package/dist/components/menu/menu-item.js.map +1 -1
- package/dist/components/menu/menu-item.vue_vue_type_script_setup_true_lang.js +3 -2
- package/dist/components/menu/menu-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu-list.js.map +1 -1
- package/dist/components/menu/menu-list.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/menu/menu-list.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu-popup.js.map +1 -1
- package/dist/components/menu/menu-popup.vue_vue_type_script_setup_true_lang.js +33 -21
- package/dist/components/menu/menu-popup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu.js +16 -13
- package/dist/components/menu/menu.js.map +1 -1
- package/dist/components/menu/menu.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/components/menu/menu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/menu/menu2.js.map +1 -1
- package/dist/components/menubar/menubar.js.map +1 -1
- package/dist/components/node-graph/layout.js +136 -31
- package/dist/components/node-graph/layout.js.map +1 -1
- package/dist/components/node-graph/node-graph-legend.js.map +1 -1
- package/dist/components/node-graph/node-graph-legend.vue_vue_type_script_setup_true_lang.js +5 -5
- package/dist/components/node-graph/node-graph-legend.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/node-graph/node-graph.js.map +1 -1
- package/dist/components/node-graph/node-graph.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/node-graph/node-graph.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/pagination/pagination-gap.js.map +1 -1
- package/dist/components/pagination/pagination-gap.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/pagination/pagination-gap.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/pagination/pagination.js.map +1 -1
- package/dist/components/pagination/pagination.vue_vue_type_script_setup_true_lang.js +7 -7
- package/dist/components/pagination/pagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/popconfirm/index.js +2 -0
- package/dist/components/popconfirm/index.js.map +1 -1
- package/dist/components/popconfirm/popconfirm.js.map +1 -1
- package/dist/components/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/components/popconfirm/popconfirm.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/popover/index.js +2 -0
- package/dist/components/popover/index.js.map +1 -1
- package/dist/components/popover/popover.js.map +1 -1
- package/dist/components/popover/popover.vue_vue_type_script_setup_true_lang.js +12 -5
- package/dist/components/popover/popover.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/progress-group/progress-group.js.map +1 -1
- package/dist/components/progress-group/progress-group.vue_vue_type_script_setup_true_lang.js +11 -4
- package/dist/components/progress-group/progress-group.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/qrcode/qrcode.js.map +1 -1
- package/dist/components/qrcode/qrcode.vue_vue_type_script_setup_true_lang.js +10 -2
- package/dist/components/qrcode/qrcode.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/select.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/select/select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/slider/slider.js.map +1 -1
- package/dist/components/slider/slider.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/slider/slider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/status-dot/index.js +7 -0
- package/dist/components/status-dot/index.js.map +1 -0
- package/dist/components/status-dot/status-dot.js +26 -0
- package/dist/components/status-dot/status-dot.js.map +1 -0
- package/dist/components/status-dot/status-dot.vue_vue_type_script_lang.js +43 -0
- package/dist/components/status-dot/status-dot.vue_vue_type_script_lang.js.map +1 -0
- package/dist/components/status-dot/status-dot2.js +6 -0
- package/dist/components/status-dot/status-dot2.js.map +1 -0
- package/dist/components/status-dot/style.d.ts +1 -0
- package/dist/components/status-dot/style.js +2 -0
- package/dist/components/steps/steps.js.map +1 -1
- package/dist/components/steps/steps.vue_vue_type_script_setup_true_lang.js +6 -6
- package/dist/components/steps/steps.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/table/table.js.map +1 -1
- package/dist/components/table/table.vue_vue_type_script_setup_true_lang.js +19 -14
- package/dist/components/table/table.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tab-panel.vue_vue_type_script_setup_true_lang.js +1 -0
- package/dist/components/tabs/tab-panel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/components/tabs/tabs.vue_vue_type_script_setup_true_lang.js +117 -47
- package/dist/components/tabs/tabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tabs/tabs2.js.map +1 -1
- package/dist/components/tag/tag.js.map +1 -1
- package/dist/components/tag/tag.vue_vue_type_script_setup_true_lang.js +21 -4
- package/dist/components/tag/tag.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/timeline/style.js +1 -0
- package/dist/components/timeline/timeline-item.js.map +1 -1
- package/dist/components/timeline/timeline-item.vue_vue_type_script_setup_true_lang.js +6 -2
- package/dist/components/timeline/timeline-item.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tooltip/index.js +2 -0
- package/dist/components/tooltip/index.js.map +1 -1
- package/dist/components/tooltip/tooltip.js.map +1 -1
- package/dist/components/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js +55 -8
- package/dist/components/tooltip/tooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/tour/tour.js.map +1 -1
- package/dist/components/tour/tour.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/tour/tour.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/transfer/transfer-list.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/tree/tree.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/tree-select/tree-select.js.map +1 -1
- package/dist/components/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/upload/upload.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/upload/upload.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/upload/upload2.js.map +1 -1
- package/dist/components/user/user.js.map +1 -1
- package/dist/components/user/user.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/user/user.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/use-popup.js +30 -5
- package/dist/composables/use-popup.js.map +1 -1
- package/dist/index.js +23 -17
- package/dist/index.js.map +1 -1
- package/dist/locale/en.js +13 -8
- package/dist/locale/en.js.map +1 -1
- package/dist/locale/zh-cn.js +13 -8
- package/dist/locale/zh-cn.js.map +1 -1
- package/dist/locale/zh-tw.js +13 -8
- package/dist/locale/zh-tw.js.map +1 -1
- package/dist/plugin.js +21 -14
- package/dist/plugin.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/button/button.d.ts +5 -1
- package/dist/types/components/calendar-view/calendar-view.d.ts +6 -0
- package/dist/types/components/calendar-view/calendar-view.vue.d.ts +1 -0
- package/dist/types/components/calendar-view/index.d.ts +3 -0
- package/dist/types/components/chat-artifact/chat-artifact.d.ts +2 -1
- package/dist/types/components/chat-attachments/chat-attachments.d.ts +2 -2
- package/dist/types/components/chat-confirm/chat-confirm.d.ts +7 -2
- package/dist/types/components/chat-list/index.d.ts +3 -3
- package/dist/types/components/chat-message/chat-message.d.ts +26 -3
- package/dist/types/components/chat-message/chat-message.vue.d.ts +4 -3
- package/dist/types/components/chat-message/index.d.ts +7 -4
- package/dist/types/components/chat-plan/chat-plan.d.ts +19 -2
- package/dist/types/components/chat-plan/chat-plan.vue.d.ts +2 -0
- package/dist/types/components/chat-plan/index.d.ts +6 -0
- package/dist/types/components/chat-sources/chat-sources.d.ts +6 -1
- package/dist/types/components/chat-steps/chat-steps.d.ts +10 -4
- package/dist/types/components/chat-steps/chat-steps.vue.d.ts +1 -1
- package/dist/types/components/chat-steps/index.d.ts +3 -3
- package/dist/types/components/chat-tool-call/chat-tool-call.d.ts +12 -3
- package/dist/types/components/chat-tool-call/chat-tool-call.vue.d.ts +1 -0
- package/dist/types/components/chat-tool-call/index.d.ts +3 -0
- package/dist/types/components/checkbox/index.d.ts +5 -5
- package/dist/types/components/code-block/code-block.d.ts +11 -0
- package/dist/types/components/code-block/code-block.vue.d.ts +3 -1
- package/dist/types/components/code-block/index.d.ts +9 -3
- package/dist/types/components/collapse/collapse-transition.d.ts +2 -7
- package/dist/types/components/collapse/collapse.vue.d.ts +1 -1
- package/dist/types/components/collapse/index.d.ts +5 -6
- package/dist/types/components/context-menu/context-menu.d.ts +37 -4
- package/dist/types/components/context-menu/context-menu.vue.d.ts +2 -0
- package/dist/types/components/context-menu/index.d.ts +5 -0
- package/dist/types/components/copy-button/copy-button.vue.d.ts +1 -1
- package/dist/types/components/copy-button/index.d.ts +1 -1
- package/dist/types/components/descriptions/descriptions.d.ts +9 -1
- package/dist/types/components/descriptions/descriptions.vue.d.ts +1 -0
- package/dist/types/components/descriptions/index.d.ts +3 -0
- package/dist/types/components/dropdown/dropdown-group.vue.d.ts +13 -0
- package/dist/types/components/dropdown/dropdown-items.vue.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown-radio-group.vue.d.ts +8 -4
- package/dist/types/components/dropdown/dropdown.d.ts +28 -6
- package/dist/types/components/dropdown/dropdown.vue.d.ts +1 -1
- package/dist/types/components/dropdown/index.d.ts +10 -81
- package/dist/types/components/dropdown/item-components.d.ts +103 -0
- package/dist/types/components/dropdown/menu-entries.d.ts +4 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/layout/index.d.ts +12 -6
- package/dist/types/components/layout/layout-aside.vue.d.ts +1 -1
- package/dist/types/components/layout/layout-footer.vue.d.ts +4 -2
- package/dist/types/components/layout/layout.d.ts +4 -0
- package/dist/types/components/markdown/index.d.ts +58 -0
- package/dist/types/components/markdown/markdown.d.ts +251 -0
- package/dist/types/components/markdown/markdown.vue.d.ts +22 -0
- package/dist/types/components/markdown/parse-block.d.ts +61 -0
- package/dist/types/components/markdown/parse-inline.d.ts +19 -0
- package/dist/types/components/markdown/parser.d.ts +22 -0
- package/dist/types/components/markdown/render.d.ts +84 -0
- package/dist/types/components/markdown/url.d.ts +10 -0
- package/dist/types/components/masonry/index.d.ts +3 -3
- package/dist/types/components/menu/index.d.ts +8 -3
- package/dist/types/components/menu/menu.d.ts +16 -5
- package/dist/types/components/menu/menu.vue.d.ts +3 -1
- package/dist/types/components/menubar/menubar.d.ts +1 -1
- package/dist/types/components/node-graph/layout.d.ts +16 -0
- package/dist/types/components/node-graph/node-graph.d.ts +1 -1
- package/dist/types/components/popover/index.d.ts +3 -3
- package/dist/types/components/popover/popover.vue.d.ts +1 -1
- package/dist/types/components/progress-group/index.d.ts +3 -0
- package/dist/types/components/progress-group/progress-group.d.ts +7 -0
- package/dist/types/components/progress-group/progress-group.vue.d.ts +1 -0
- package/dist/types/components/qrcode/index.d.ts +3 -0
- package/dist/types/components/qrcode/qrcode.d.ts +5 -0
- package/dist/types/components/qrcode/qrcode.vue.d.ts +1 -0
- package/dist/types/components/sortable/index.d.ts +3 -3
- package/dist/types/components/status-dot/index.d.ts +51 -0
- package/dist/types/components/status-dot/status-dot.d.ts +46 -0
- package/dist/types/components/status-dot/status-dot.vue.d.ts +46 -0
- package/dist/types/components/steps/steps.d.ts +1 -1
- package/dist/types/components/switch/index.d.ts +3 -3
- package/dist/types/components/table/index.d.ts +4 -3
- package/dist/types/components/table/table.d.ts +6 -1
- package/dist/types/components/tabs/index.d.ts +3 -0
- package/dist/types/components/tabs/tabs.d.ts +16 -3
- package/dist/types/components/tabs/tabs.vue.d.ts +1 -0
- package/dist/types/components/timeline/index.d.ts +3 -3
- package/dist/types/components/timeline/timeline-item.vue.d.ts +1 -1
- package/dist/types/components/virtual-list/index.d.ts +3 -3
- package/dist/types/composables/use-popup.d.ts +15 -5
- package/dist/types/locale/types.d.ts +18 -7
- package/dist/types/utils/only-child.d.ts +3 -1
- package/dist/types/utils/pointer.d.ts +5 -0
- package/dist/types/utils/safe-url.d.ts +14 -0
- package/dist/types/utils/status-check.d.ts +8 -0
- package/dist/utils/install.js +5 -0
- package/dist/utils/install.js.map +1 -1
- package/dist/utils/only-child.js +56 -5
- package/dist/utils/only-child.js.map +1 -1
- package/dist/utils/pointer.js +6 -1
- package/dist/utils/pointer.js.map +1 -1
- package/dist/utils/safe-url.js +57 -0
- package/dist/utils/safe-url.js.map +1 -0
- package/dist/utils/status-check.js +27 -0
- package/dist/utils/status-check.js.map +1 -0
- package/package.json +3 -3
|
@@ -76,7 +76,7 @@ export declare const DouSwitch: import("../..").WithInstall<(<T extends import("
|
|
|
76
76
|
hidden?: "" | "hidden" | (boolean | "false" | "true") | "until-found" | undefined;
|
|
77
77
|
color?: string | undefined | undefined;
|
|
78
78
|
translate?: "yes" | "no" | undefined | undefined;
|
|
79
|
-
|
|
79
|
+
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
80
80
|
onSelect?: ((payload: Event) => void) | undefined;
|
|
81
81
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
82
82
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -111,6 +111,7 @@ export declare const DouSwitch: import("../..").WithInstall<(<T extends import("
|
|
|
111
111
|
onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
112
112
|
onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
113
113
|
onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
114
|
+
onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
114
115
|
onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
115
116
|
onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
116
117
|
onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
@@ -152,7 +153,6 @@ export declare const DouSwitch: import("../..").WithInstall<(<T extends import("
|
|
|
152
153
|
onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
153
154
|
onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
154
155
|
onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
155
|
-
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
156
156
|
onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
157
157
|
onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
158
158
|
onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
@@ -181,7 +181,7 @@ export declare const DouSwitch: import("../..").WithInstall<(<T extends import("
|
|
|
181
181
|
dir?: string | undefined | undefined;
|
|
182
182
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
183
183
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
184
|
-
enterKeyHint?: "search" | "next" | "
|
|
184
|
+
enterKeyHint?: "search" | "next" | "done" | "send" | "previous" | "enter" | "go" | undefined;
|
|
185
185
|
id?: string | undefined | undefined;
|
|
186
186
|
inert?: (boolean | "false" | "true") | undefined;
|
|
187
187
|
lang?: string | undefined | undefined;
|
|
@@ -11,6 +11,7 @@ export declare const DouTable: import("../..").WithInstall<(<T>(__VLS_props: Non
|
|
|
11
11
|
rowKey?: string | ((row: T) => import("./table").TableRowKey) | undefined;
|
|
12
12
|
size?: import("./table").TableSize | undefined;
|
|
13
13
|
bordered?: boolean | undefined;
|
|
14
|
+
columnDividers?: boolean | undefined;
|
|
14
15
|
striped?: boolean | undefined;
|
|
15
16
|
hoverable?: boolean | undefined;
|
|
16
17
|
maxHeight?: number | string | undefined;
|
|
@@ -96,7 +97,7 @@ export declare const DouTable: import("../..").WithInstall<(<T>(__VLS_props: Non
|
|
|
96
97
|
hidden?: "" | "hidden" | (boolean | "false" | "true") | "until-found" | undefined;
|
|
97
98
|
color?: string | undefined | undefined;
|
|
98
99
|
translate?: "yes" | "no" | undefined | undefined;
|
|
99
|
-
|
|
100
|
+
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
100
101
|
onSelect?: ((payload: Event) => void) | undefined;
|
|
101
102
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
102
103
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -131,6 +132,7 @@ export declare const DouTable: import("../..").WithInstall<(<T>(__VLS_props: Non
|
|
|
131
132
|
onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
132
133
|
onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
133
134
|
onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
135
|
+
onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
134
136
|
onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
135
137
|
onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
136
138
|
onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
@@ -172,7 +174,6 @@ export declare const DouTable: import("../..").WithInstall<(<T>(__VLS_props: Non
|
|
|
172
174
|
onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
173
175
|
onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
174
176
|
onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
175
|
-
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
176
177
|
onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
177
178
|
onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
178
179
|
onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
@@ -194,7 +195,7 @@ export declare const DouTable: import("../..").WithInstall<(<T>(__VLS_props: Non
|
|
|
194
195
|
contextmenu?: string | undefined | undefined;
|
|
195
196
|
dir?: string | undefined | undefined;
|
|
196
197
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
197
|
-
enterKeyHint?: "search" | "next" | "
|
|
198
|
+
enterKeyHint?: "search" | "next" | "done" | "send" | "previous" | "enter" | "go" | undefined;
|
|
198
199
|
id?: string | undefined | undefined;
|
|
199
200
|
inert?: (boolean | "false" | "true") | undefined;
|
|
200
201
|
lang?: string | undefined | undefined;
|
|
@@ -94,8 +94,13 @@ export interface TableProps<T = any> {
|
|
|
94
94
|
rowKey?: string | ((row: T) => TableRowKey);
|
|
95
95
|
/** Row density. */
|
|
96
96
|
size?: TableSize;
|
|
97
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* The hairline frame and rounded corners. Off, the table takes no border
|
|
99
|
+
* at all, for a card or panel that already has an edge. On by default.
|
|
100
|
+
*/
|
|
98
101
|
bordered?: boolean;
|
|
102
|
+
/** Hairlines between columns too. */
|
|
103
|
+
columnDividers?: boolean;
|
|
99
104
|
/** Tint every other row. */
|
|
100
105
|
striped?: boolean;
|
|
101
106
|
/** Highlight the row under the pointer. */
|
|
@@ -17,6 +17,7 @@ export declare const DouTabs: import("../..").WithInstall<{
|
|
|
17
17
|
closable: boolean;
|
|
18
18
|
placement: import("./tabs").TabsPlacement;
|
|
19
19
|
activation: import("./tabs").TabsActivation;
|
|
20
|
+
iconOnly: boolean;
|
|
20
21
|
addable: boolean;
|
|
21
22
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
22
23
|
P: {};
|
|
@@ -36,6 +37,7 @@ export declare const DouTabs: import("../..").WithInstall<{
|
|
|
36
37
|
closable: boolean;
|
|
37
38
|
placement: import("./tabs").TabsPlacement;
|
|
38
39
|
activation: import("./tabs").TabsActivation;
|
|
40
|
+
iconOnly: boolean;
|
|
39
41
|
addable: boolean;
|
|
40
42
|
}>;
|
|
41
43
|
__isFragment?: never;
|
|
@@ -57,6 +59,7 @@ export declare const DouTabs: import("../..").WithInstall<{
|
|
|
57
59
|
closable: boolean;
|
|
58
60
|
placement: import("./tabs").TabsPlacement;
|
|
59
61
|
activation: import("./tabs").TabsActivation;
|
|
62
|
+
iconOnly: boolean;
|
|
60
63
|
addable: boolean;
|
|
61
64
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
62
65
|
$slots: import("./tabs").TabsSlots;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { InjectionKey, Ref } from 'vue';
|
|
1
|
+
import type { Component, InjectionKey, Ref } from 'vue';
|
|
2
2
|
import type { Size } from '../../utils/types';
|
|
3
3
|
export type TabsValue = string | number;
|
|
4
4
|
export type TabsSize = Size;
|
|
@@ -15,6 +15,17 @@ export interface TabsProps {
|
|
|
15
15
|
*/
|
|
16
16
|
activation?: TabsActivation;
|
|
17
17
|
placement?: TabsPlacement;
|
|
18
|
+
/**
|
|
19
|
+
* A fixed height, numbers in px; `'100%'` fills the parent. The panels
|
|
20
|
+
* fill it and scroll on their own, and so does a column of tabs that
|
|
21
|
+
* does not fit. Left unset, the tabs grow with their content.
|
|
22
|
+
*/
|
|
23
|
+
height?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Show each tab as its panel's `icon` alone. The label becomes the tab's
|
|
26
|
+
* accessible name and shows in a tooltip on hover and focus.
|
|
27
|
+
*/
|
|
28
|
+
iconOnly?: boolean;
|
|
18
29
|
/** Give every tab a close button that emits `remove`. A panel's own `closable` wins. */
|
|
19
30
|
closable?: boolean;
|
|
20
31
|
/** Put a button after the tabs that emits `add`. */
|
|
@@ -42,8 +53,10 @@ export interface TabsSlots {
|
|
|
42
53
|
}
|
|
43
54
|
export interface TabPanelProps {
|
|
44
55
|
value: TabsValue;
|
|
45
|
-
/** The text of the tab. */
|
|
56
|
+
/** The text of the tab. With `iconOnly`, its accessible name and tooltip. */
|
|
46
57
|
label?: string;
|
|
58
|
+
/** An icon component, shown before the label, and alone with the tabs' `iconOnly`. */
|
|
59
|
+
icon?: Component;
|
|
47
60
|
disabled?: boolean;
|
|
48
61
|
/** Show a close button on this tab, overriding the tabs' `closable`. */
|
|
49
62
|
closable?: boolean;
|
|
@@ -56,7 +69,7 @@ export interface TabPanelProps {
|
|
|
56
69
|
}
|
|
57
70
|
export interface TabPanelSlots {
|
|
58
71
|
default?: () => unknown;
|
|
59
|
-
/** Replaces the text of the tab, e.g. to add
|
|
72
|
+
/** Replaces the text of the tab, e.g. to add a count. Not shown with the tabs' `iconOnly`. */
|
|
60
73
|
label?: (props: {
|
|
61
74
|
selected: boolean;
|
|
62
75
|
}) => unknown;
|
|
@@ -19,6 +19,7 @@ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {
|
|
|
19
19
|
closable: boolean;
|
|
20
20
|
placement: import("./tabs").TabsPlacement;
|
|
21
21
|
activation: import("./tabs").TabsActivation;
|
|
22
|
+
iconOnly: boolean;
|
|
22
23
|
addable: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -23,9 +23,9 @@ export declare const DouTimeline: import("../..").WithInstall<{
|
|
|
23
23
|
}), import("vue").HTMLAttributes>;
|
|
24
24
|
export declare const DouTimelineItem: import("../..").WithInstall<{
|
|
25
25
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./timeline").TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
26
|
+
pending: boolean;
|
|
26
27
|
tone: import("../..").Tone;
|
|
27
28
|
active: boolean;
|
|
28
|
-
pending: boolean;
|
|
29
29
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
30
30
|
P: {};
|
|
31
31
|
B: {};
|
|
@@ -34,17 +34,17 @@ export declare const DouTimelineItem: import("../..").WithInstall<{
|
|
|
34
34
|
M: {};
|
|
35
35
|
Defaults: {};
|
|
36
36
|
}, Readonly<import("./timeline").TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
37
|
+
pending: boolean;
|
|
37
38
|
tone: import("../..").Tone;
|
|
38
39
|
active: boolean;
|
|
39
|
-
pending: boolean;
|
|
40
40
|
}>;
|
|
41
41
|
__isFragment?: never;
|
|
42
42
|
__isTeleport?: never;
|
|
43
43
|
__isSuspense?: never;
|
|
44
44
|
} & import("vue").ComponentOptionsBase<Readonly<import("./timeline").TimelineItemProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
45
|
+
pending: boolean;
|
|
45
46
|
tone: import("../..").Tone;
|
|
46
47
|
active: boolean;
|
|
47
|
-
pending: boolean;
|
|
48
48
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
49
49
|
$slots: import("./timeline").TimelineItemSlots;
|
|
50
50
|
}), import("vue").HTMLAttributes>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { TimelineItemProps, TimelineItemSlots } from './timeline';
|
|
2
2
|
type __VLS_Slots = TimelineItemSlots;
|
|
3
3
|
declare const __VLS_base: import("vue").DefineComponent<TimelineItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TimelineItemProps> & Readonly<{}>, {
|
|
4
|
+
pending: boolean;
|
|
4
5
|
tone: import("../..").Tone;
|
|
5
6
|
active: boolean;
|
|
6
|
-
pending: boolean;
|
|
7
7
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
9
9
|
declare const _default: typeof __VLS_export;
|
|
@@ -70,7 +70,7 @@ export declare const DouVirtualList: import("../..").WithInstall<(<T>(__VLS_prop
|
|
|
70
70
|
hidden?: "" | "hidden" | (boolean | "false" | "true") | "until-found" | undefined;
|
|
71
71
|
color?: string | undefined | undefined;
|
|
72
72
|
translate?: "yes" | "no" | undefined | undefined;
|
|
73
|
-
|
|
73
|
+
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
74
74
|
onSelect?: ((payload: Event) => void) | undefined;
|
|
75
75
|
onCopy?: ((payload: ClipboardEvent) => void) | undefined;
|
|
76
76
|
onCut?: ((payload: ClipboardEvent) => void) | undefined;
|
|
@@ -105,6 +105,7 @@ export declare const DouVirtualList: import("../..").WithInstall<(<T>(__VLS_prop
|
|
|
105
105
|
onKeyup?: ((payload: KeyboardEvent) => void) | undefined;
|
|
106
106
|
onDblclick?: ((payload: MouseEvent) => void) | undefined;
|
|
107
107
|
onMousedown?: ((payload: MouseEvent) => void) | undefined;
|
|
108
|
+
onMouseenter?: ((payload: MouseEvent) => void) | undefined;
|
|
108
109
|
onMouseleave?: ((payload: MouseEvent) => void) | undefined;
|
|
109
110
|
onMousemove?: ((payload: MouseEvent) => void) | undefined;
|
|
110
111
|
onMouseout?: ((payload: MouseEvent) => void) | undefined;
|
|
@@ -145,7 +146,6 @@ export declare const DouVirtualList: import("../..").WithInstall<(<T>(__VLS_prop
|
|
|
145
146
|
onPointermove?: ((payload: PointerEvent) => void) | undefined;
|
|
146
147
|
onPointerup?: ((payload: PointerEvent) => void) | undefined;
|
|
147
148
|
onPointercancel?: ((payload: PointerEvent) => void) | undefined;
|
|
148
|
-
onPointerenter?: ((payload: PointerEvent) => void) | undefined;
|
|
149
149
|
onPointerleave?: ((payload: PointerEvent) => void) | undefined;
|
|
150
150
|
onPointerover?: ((payload: PointerEvent) => void) | undefined;
|
|
151
151
|
onPointerout?: ((payload: PointerEvent) => void) | undefined;
|
|
@@ -168,7 +168,7 @@ export declare const DouVirtualList: import("../..").WithInstall<(<T>(__VLS_prop
|
|
|
168
168
|
dir?: string | undefined | undefined;
|
|
169
169
|
draggable?: (boolean | "false" | "true") | undefined;
|
|
170
170
|
enterkeyhint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
|
|
171
|
-
enterKeyHint?: "search" | "next" | "
|
|
171
|
+
enterKeyHint?: "search" | "next" | "done" | "send" | "previous" | "enter" | "go" | undefined;
|
|
172
172
|
id?: string | undefined | undefined;
|
|
173
173
|
inert?: (boolean | "false" | "true") | undefined;
|
|
174
174
|
lang?: string | undefined | undefined;
|
|
@@ -13,8 +13,17 @@ export interface UsePopupOptions {
|
|
|
13
13
|
showDelay?: MaybeRefOrGetter<number>;
|
|
14
14
|
/** Delay before closing once the pointer leaves, in ms. */
|
|
15
15
|
hideDelay?: MaybeRefOrGetter<number>;
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Close on a press outside. Defaults to on for `click` and `focus` triggers,
|
|
18
|
+
* and for a `hover` panel a tap opened.
|
|
19
|
+
*/
|
|
17
20
|
closeOnOutside?: MaybeRefOrGetter<boolean>;
|
|
21
|
+
/**
|
|
22
|
+
* A finger or a pen has no hover: a tap on the trigger of a `hover` panel
|
|
23
|
+
* without the `click` trigger opens and closes it instead, and a link
|
|
24
|
+
* there is followed only once the panel is open. Defaults to on.
|
|
25
|
+
*/
|
|
26
|
+
tap?: MaybeRefOrGetter<boolean>;
|
|
18
27
|
/** What the panel is placed next to, when not the trigger itself (e.g. the pointer). */
|
|
19
28
|
anchor?: () => Element | VirtualElement | null | undefined;
|
|
20
29
|
}
|
|
@@ -33,12 +42,13 @@ export declare function usePopup(options: UsePopupOptions): {
|
|
|
33
42
|
panelStyle: import("vue").ComputedRef<CSSProperties>;
|
|
34
43
|
triggerListeners: import("vue").ComputedRef<Record<string, (event: Event) => void>>;
|
|
35
44
|
panelListeners: import("vue").ComputedRef<{
|
|
36
|
-
|
|
37
|
-
|
|
45
|
+
onPointerenter?: undefined;
|
|
46
|
+
onPointerleave?: undefined;
|
|
38
47
|
} | {
|
|
39
|
-
|
|
40
|
-
|
|
48
|
+
onPointerenter: (event: Event) => false | void;
|
|
49
|
+
onPointerleave: (event: Event) => false | void;
|
|
41
50
|
}>;
|
|
51
|
+
tapped: Ref<boolean, boolean>;
|
|
42
52
|
show: (delay?: number) => void;
|
|
43
53
|
hide: (delay?: number) => void;
|
|
44
54
|
dismiss: () => void;
|
|
@@ -234,11 +234,11 @@ export interface Locale {
|
|
|
234
234
|
};
|
|
235
235
|
steps: {
|
|
236
236
|
/** Read after the title of a step that is done. */
|
|
237
|
-
|
|
237
|
+
done: string;
|
|
238
238
|
/** Read after the title of the current step. */
|
|
239
|
-
|
|
239
|
+
running: string;
|
|
240
240
|
/** Read after the title of a step not reached yet. */
|
|
241
|
-
|
|
241
|
+
pending: string;
|
|
242
242
|
/** Read after the title of a step that failed. */
|
|
243
243
|
error: string;
|
|
244
244
|
};
|
|
@@ -246,9 +246,9 @@ export interface Locale {
|
|
|
246
246
|
/** Names the graph when nothing else labels it. */
|
|
247
247
|
label: string;
|
|
248
248
|
status: {
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
249
|
+
pending: string;
|
|
250
|
+
running: string;
|
|
251
|
+
done: string;
|
|
252
252
|
error: string;
|
|
253
253
|
/** In progress while something it depends on is not finished. */
|
|
254
254
|
blocked: string;
|
|
@@ -662,10 +662,15 @@ export interface Locale {
|
|
|
662
662
|
thoughtSeconds: string;
|
|
663
663
|
/** Reasoning that took `{minutes}` minutes and `{seconds}` seconds. */
|
|
664
664
|
thoughtMinutes: string;
|
|
665
|
+
/** A tool call that hasn't started. */
|
|
665
666
|
toolPending: string;
|
|
666
667
|
toolRunning: string;
|
|
667
|
-
|
|
668
|
+
/** A tool call paused on someone else, e.g. the person allowing it. */
|
|
669
|
+
toolWaiting: string;
|
|
670
|
+
toolDone: string;
|
|
668
671
|
toolError: string;
|
|
672
|
+
/** A tool call taken back before it ran. */
|
|
673
|
+
toolWithdrawn: string;
|
|
669
674
|
/** Heads what a tool was called with. */
|
|
670
675
|
toolInput: string;
|
|
671
676
|
/** Heads what a tool returned. */
|
|
@@ -679,12 +684,16 @@ export interface Locale {
|
|
|
679
684
|
/** Heads a task plan. */
|
|
680
685
|
plan: string;
|
|
681
686
|
stepRunning: string;
|
|
687
|
+
/** A step paused until someone answers or something outside finishes. */
|
|
688
|
+
stepWaiting: string;
|
|
682
689
|
stepDone: string;
|
|
683
690
|
stepError: string;
|
|
684
691
|
/** Summary of steps still in progress, when no step names itself. */
|
|
685
692
|
working: string;
|
|
686
693
|
/** Summary of `{count}` finished steps. */
|
|
687
694
|
stepsDone: string;
|
|
695
|
+
/** Summary of `{count}` steps when some didn't finish, e.g. a stopped run. */
|
|
696
|
+
stepsTotal: string;
|
|
688
697
|
/** Names the list of sources. */
|
|
689
698
|
sources: string;
|
|
690
699
|
/** Names a citation, with `{index}` and `{title}`. */
|
|
@@ -694,6 +703,8 @@ export interface Locale {
|
|
|
694
703
|
deny: string;
|
|
695
704
|
approved: string;
|
|
696
705
|
denied: string;
|
|
706
|
+
/** A confirmation the assistant no longer needs answered. */
|
|
707
|
+
withdrawn: string;
|
|
697
708
|
/** An artifact still being made. */
|
|
698
709
|
generating: string;
|
|
699
710
|
generateError: string;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import type { ComponentPublicInstance, HTMLAttributes, VNode } from 'vue';
|
|
1
|
+
import type { Component, ComponentPublicInstance, HTMLAttributes, VNode } from 'vue';
|
|
2
2
|
import type { WithAttributes } from './install';
|
|
3
|
+
/** Marks a component whose default slot is its trigger, rendered through `OnlyChild`. */
|
|
4
|
+
export declare function forwardsTrigger<T extends Component>(component: T): T;
|
|
3
5
|
/**
|
|
4
6
|
* Render the first element of the default slot, with the attributes and
|
|
5
7
|
* listeners given to this component merged onto it. Lets a floating
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether a pointer of this type can hover. Fingers and pens touch down
|
|
3
|
+
* where they act, and the enter and leave they send come with the press.
|
|
4
|
+
*/
|
|
5
|
+
export declare const hasHover: (pointerType: string) => boolean;
|
|
1
6
|
/** A press that may turn into a drag; see `holdPointer`. */
|
|
2
7
|
export interface PointerHold {
|
|
3
8
|
/** The drag has started: the touch stops scrolling and `root` captures the pointer. */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns `url` when it is safe to use as a link (`href`), otherwise `undefined`.
|
|
3
|
+
* http(s), mailto, tel, relative addresses and anchors pass; anything else,
|
|
4
|
+
* such as `javascript:` or `data:`, is dropped. Only for links: it also drops
|
|
5
|
+
* `data:` and `blob:`, which are fine in an image `src`.
|
|
6
|
+
*/
|
|
7
|
+
export declare function safeUrl(url: string | undefined): string | undefined;
|
|
8
|
+
/** Whether a link should open in a new tab: not for `mailto:` and `tel:`, which hand off to an app. */
|
|
9
|
+
export declare function opensNewTab(url: string): boolean;
|
|
10
|
+
/**
|
|
11
|
+
* {@link safeUrl}, warning once while developing when an address is dropped.
|
|
12
|
+
* `component` names the component in the warning, e.g. `DouChatSources`.
|
|
13
|
+
*/
|
|
14
|
+
export declare function checkedUrl(component: string, url: string | undefined): string | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Warn once per page with this message. Call only while developing. */
|
|
2
|
+
export declare function devWarn(message: string): void;
|
|
3
|
+
/**
|
|
4
|
+
* While developing, warn once about a `status` the component doesn't know,
|
|
5
|
+
* e.g. an old name in JSON from a server, where types can't catch it.
|
|
6
|
+
* `renamed` maps old names to the new ones to suggest.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useStatusCheck(component: string, statuses: () => readonly (string | undefined)[], known: readonly string[], renamed?: Record<string, string>): void;
|
package/dist/utils/install.js
CHANGED
|
@@ -17,6 +17,11 @@ function withInstall(component) {
|
|
|
17
17
|
* given. Each prop's default becomes a factory that looks up the
|
|
18
18
|
* configured value first; Vue runs default factories inside the
|
|
19
19
|
* component, so `inject` sees the nearest provider.
|
|
20
|
+
*
|
|
21
|
+
* 这一步发生在包装组件的模块里,按需引入时打包器只留下用到的模块。所以组件内部渲染
|
|
22
|
+
* 别的组件时,要引入包装过的那个(`import { DouSpinner } from '../spinner'`),
|
|
23
|
+
* 不要直接引入 `.vue`,否则单独用外层组件时里面那个读不到默认值。
|
|
24
|
+
* `utils/__tests__/nested-defaults.test.ts` 检查整个仓库都这样做。
|
|
20
25
|
*/
|
|
21
26
|
function readConfiguredDefaults(component) {
|
|
22
27
|
const { name, props } = component;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"install.js","names":[],"sources":["../../src/utils/install.ts"],"sourcesContent":["import { hasInjectionContext, inject } from 'vue'\nimport type { App, ButtonHTMLAttributes, Component, HTMLAttributes, Plugin } from 'vue'\nimport { configProviderKey } from '../components/config-provider/config-provider'\n\ntype InstanceProps<I> = I extends { $props: infer P } ? P : {}\n\n/** 类型标记:记下组件原本的类型,`ComponentDefaults` 从这里取 props。只存在于类型里。 */\nexport declare const ownComponent: unique symbol\n\n/**\n * 组件在模板里可以写的属性:自己的 props 之外,再加上它转交给元素的原生属性和事件 `A`。\n * 与 props、事件同名的项以组件自己的为准。\n *\n * 只影响类型(例如开启 checkUnknownProps 时 `<DouInput placeholder=\"…\">` 不报错)。\n * 给模板看的构造签名放在前面,所以 `InstanceType` 的 `$props` 也带着这些属性;\n * 要只看组件自己的 props,用各组件导出的 `XxxInstance`,`ComponentDefaults` 则经由 `ownComponent` 取原本的类型。\n */\nexport type WithAttributes<T, A> = T extends abstract new (...args: any) => infer I\n ? { new (...args: any[]): I & { $props: Omit<A, keyof InstanceProps<I>> } } & T & {\n readonly [ownComponent]?: T\n }\n : T\n\n/**\n * 渲染成按钮的组件转交的属性。不含 `type`:组件自己定好了按钮的类型(DouButton 用 `nativeType`),\n * 原生 `type` 会覆盖它,写成 `submit` 还会提交表单。\n */\nexport type ButtonAttributes = Omit<ButtonHTMLAttributes, 'type'>\n\n/**\n * 泛型组件的类型不能在导出时改写,改在 `defineProps` 里用交叉类型并上它,\n * 并在它前面加 `@vue-ignore` 注释让编译器跳过:这些属性在运行时仍是透传属性。\n * `Own` 是组件自己的 props,`Events` 是它自己的事件名,与它们同名的原生属性和事件以组件的为准。\n */\nexport type ForwardedAttributes<A, Own, Events extends string = never> = Omit<\n A,\n keyof Own | `on${Capitalize<Events>}`\n>\n\n/**\n * `A` 是组件转交的原生属性,默认是通用的 HTML 属性;\n * 把属性交给 `<input>` 的组件写 `InputHTMLAttributes`,不渲染元素的组件写 `{}`。\n */\nexport type WithInstall<T, A = HTMLAttributes> = WithAttributes<T, A> & Plugin\n\n/** Attach an `install` method so a component can be used with `app.use()`. */\nexport function withInstall<T extends Component, A = HTMLAttributes>(\n component: T,\n): WithInstall<T, A> {\n const target = component as unknown as WithInstall<T, A>\n target.install = (app: App) => {\n const { name } = component as { name?: string }\n if (!name) throw new Error('[dou-ui] component registered with app.use() must have a name')\n app.component(name, component)\n }\n readConfiguredDefaults(component)\n return target\n}\n\ntype PropOption = {\n type?: unknown\n default?: unknown\n skipFactory?: boolean\n}\n\n/**\n * Let `ConfigProvider`'s `defaults` fill in props the component wasn't\n * given. Each prop's default becomes a factory that looks up the\n * configured value first; Vue runs default factories inside the\n * component, so `inject` sees the nearest provider.\n */\nfunction readConfiguredDefaults(component: Component) {\n const { name, props } = component as { name?: string; props?: Record<string, PropOption | null> }\n if (!name || !props || Array.isArray(props)) return\n for (const [key, option] of Object.entries(props)) {\n const own: PropOption = option && typeof option === 'object' ? option : {}\n // a function-typed prop takes its default as the value itself, never as a factory\n if (own.type === Function || own.skipFactory) continue\n const hasDefault = 'default' in own\n const fallback = own.default\n const types = Array.isArray(own.type) ? own.type : [own.type]\n props[key] = {\n ...own,\n default(raw: Record<string, unknown>) {\n const config = hasInjectionContext() ? inject(configProviderKey, undefined) : undefined\n const configured = (config?.value.defaults as Record<string, Record<string, unknown>>)?.[\n name\n ]?.[key]\n if (configured !== undefined) return configured\n if (!hasDefault) return types.includes(Boolean) ? false : undefined\n return typeof fallback === 'function' ? fallback(raw) : fallback\n },\n }\n }\n}\n"],"mappings":";;;;AA8CA,SAAgB,YACd,WACmB;CACnB,MAAM,SAAS;CACf,OAAO,WAAW,QAAa;EAC7B,MAAM,EAAE,SAAS;EACjB,IAAI,CAAC,MAAM,MAAM,IAAI,MAAM,+DAA+D;EAC1F,IAAI,UAAU,MAAM,SAAS;CAC/B;CACA,uBAAuB,SAAS;CAChC,OAAO;AACT
|
|
1
|
+
{"version":3,"file":"install.js","names":[],"sources":["../../src/utils/install.ts"],"sourcesContent":["import { hasInjectionContext, inject } from 'vue'\nimport type { App, ButtonHTMLAttributes, Component, HTMLAttributes, Plugin } from 'vue'\nimport { configProviderKey } from '../components/config-provider/config-provider'\n\ntype InstanceProps<I> = I extends { $props: infer P } ? P : {}\n\n/** 类型标记:记下组件原本的类型,`ComponentDefaults` 从这里取 props。只存在于类型里。 */\nexport declare const ownComponent: unique symbol\n\n/**\n * 组件在模板里可以写的属性:自己的 props 之外,再加上它转交给元素的原生属性和事件 `A`。\n * 与 props、事件同名的项以组件自己的为准。\n *\n * 只影响类型(例如开启 checkUnknownProps 时 `<DouInput placeholder=\"…\">` 不报错)。\n * 给模板看的构造签名放在前面,所以 `InstanceType` 的 `$props` 也带着这些属性;\n * 要只看组件自己的 props,用各组件导出的 `XxxInstance`,`ComponentDefaults` 则经由 `ownComponent` 取原本的类型。\n */\nexport type WithAttributes<T, A> = T extends abstract new (...args: any) => infer I\n ? { new (...args: any[]): I & { $props: Omit<A, keyof InstanceProps<I>> } } & T & {\n readonly [ownComponent]?: T\n }\n : T\n\n/**\n * 渲染成按钮的组件转交的属性。不含 `type`:组件自己定好了按钮的类型(DouButton 用 `nativeType`),\n * 原生 `type` 会覆盖它,写成 `submit` 还会提交表单。\n */\nexport type ButtonAttributes = Omit<ButtonHTMLAttributes, 'type'>\n\n/**\n * 泛型组件的类型不能在导出时改写,改在 `defineProps` 里用交叉类型并上它,\n * 并在它前面加 `@vue-ignore` 注释让编译器跳过:这些属性在运行时仍是透传属性。\n * `Own` 是组件自己的 props,`Events` 是它自己的事件名,与它们同名的原生属性和事件以组件的为准。\n */\nexport type ForwardedAttributes<A, Own, Events extends string = never> = Omit<\n A,\n keyof Own | `on${Capitalize<Events>}`\n>\n\n/**\n * `A` 是组件转交的原生属性,默认是通用的 HTML 属性;\n * 把属性交给 `<input>` 的组件写 `InputHTMLAttributes`,不渲染元素的组件写 `{}`。\n */\nexport type WithInstall<T, A = HTMLAttributes> = WithAttributes<T, A> & Plugin\n\n/** Attach an `install` method so a component can be used with `app.use()`. */\nexport function withInstall<T extends Component, A = HTMLAttributes>(\n component: T,\n): WithInstall<T, A> {\n const target = component as unknown as WithInstall<T, A>\n target.install = (app: App) => {\n const { name } = component as { name?: string }\n if (!name) throw new Error('[dou-ui] component registered with app.use() must have a name')\n app.component(name, component)\n }\n readConfiguredDefaults(component)\n return target\n}\n\ntype PropOption = {\n type?: unknown\n default?: unknown\n skipFactory?: boolean\n}\n\n/**\n * Let `ConfigProvider`'s `defaults` fill in props the component wasn't\n * given. Each prop's default becomes a factory that looks up the\n * configured value first; Vue runs default factories inside the\n * component, so `inject` sees the nearest provider.\n *\n * 这一步发生在包装组件的模块里,按需引入时打包器只留下用到的模块。所以组件内部渲染\n * 别的组件时,要引入包装过的那个(`import { DouSpinner } from '../spinner'`),\n * 不要直接引入 `.vue`,否则单独用外层组件时里面那个读不到默认值。\n * `utils/__tests__/nested-defaults.test.ts` 检查整个仓库都这样做。\n */\nfunction readConfiguredDefaults(component: Component) {\n const { name, props } = component as { name?: string; props?: Record<string, PropOption | null> }\n if (!name || !props || Array.isArray(props)) return\n for (const [key, option] of Object.entries(props)) {\n const own: PropOption = option && typeof option === 'object' ? option : {}\n // a function-typed prop takes its default as the value itself, never as a factory\n if (own.type === Function || own.skipFactory) continue\n const hasDefault = 'default' in own\n const fallback = own.default\n const types = Array.isArray(own.type) ? own.type : [own.type]\n props[key] = {\n ...own,\n default(raw: Record<string, unknown>) {\n const config = hasInjectionContext() ? inject(configProviderKey, undefined) : undefined\n const configured = (config?.value.defaults as Record<string, Record<string, unknown>>)?.[\n name\n ]?.[key]\n if (configured !== undefined) return configured\n if (!hasDefault) return types.includes(Boolean) ? false : undefined\n return typeof fallback === 'function' ? fallback(raw) : fallback\n },\n }\n }\n}\n"],"mappings":";;;;AA8CA,SAAgB,YACd,WACmB;CACnB,MAAM,SAAS;CACf,OAAO,WAAW,QAAa;EAC7B,MAAM,EAAE,SAAS;EACjB,IAAI,CAAC,MAAM,MAAM,IAAI,MAAM,+DAA+D;EAC1F,IAAI,UAAU,MAAM,SAAS;CAC/B;CACA,uBAAuB,SAAS;CAChC,OAAO;AACT;;;;;;;;;;;;AAmBA,SAAS,uBAAuB,WAAsB;CACpD,MAAM,EAAE,MAAM,UAAU;CACxB,IAAI,CAAC,QAAQ,CAAC,SAAS,MAAM,QAAQ,KAAK,GAAG;CAC7C,KAAK,MAAM,CAAC,KAAK,WAAW,OAAO,QAAQ,KAAK,GAAG;EACjD,MAAM,MAAkB,UAAU,OAAO,WAAW,WAAW,SAAS,CAAC;EAEzE,IAAI,IAAI,SAAS,YAAY,IAAI,aAAa;EAC9C,MAAM,aAAa,aAAa;EAChC,MAAM,WAAW,IAAI;EACrB,MAAM,QAAQ,MAAM,QAAQ,IAAI,IAAI,IAAI,IAAI,OAAO,CAAC,IAAI,IAAI;EAC5D,MAAM,OAAO;GACX,GAAG;GACH,QAAQ,KAA8B;IAEpC,MAAM,eADS,oBAAoB,IAAI,OAAO,mBAAmB,KAAA,CAAS,IAAI,KAAA,EAAA,EAClD,MAAM,SAAA,GAChC,KACD,GAAG;IACJ,IAAI,eAAe,KAAA,GAAW,OAAO;IACrC,IAAI,CAAC,YAAY,OAAO,MAAM,SAAS,OAAO,IAAI,QAAQ,KAAA;IAC1D,OAAO,OAAO,aAAa,aAAa,SAAS,GAAG,IAAI;GAC1D;EACF;CACF;AACF"}
|
package/dist/utils/only-child.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { devWarn } from "./status-check.js";
|
|
2
|
+
import { Comment, Fragment, Text, cloneVNode, defineComponent, getCurrentInstance, h, mergeProps, onMounted } from "vue";
|
|
2
3
|
// src/utils/only-child.ts
|
|
3
4
|
function firstElement(nodes) {
|
|
4
5
|
for (const node of nodes) {
|
|
@@ -16,28 +17,78 @@ function firstElement(nodes) {
|
|
|
16
17
|
}
|
|
17
18
|
return null;
|
|
18
19
|
}
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
var triggerHosts = /* @__PURE__ */ new WeakSet();
|
|
21
|
+
/** Marks a component whose default slot is its trigger, rendered through `OnlyChild`. */
|
|
22
|
+
function forwardsTrigger(component) {
|
|
23
|
+
triggerHosts.add(component);
|
|
24
|
+
return component;
|
|
25
|
+
}
|
|
26
|
+
var DYNAMIC_SLOTS = 1024;
|
|
27
|
+
function passToTrigger(host, attrs) {
|
|
28
|
+
const slots = host.children;
|
|
29
|
+
const inner = slots?.default;
|
|
30
|
+
if (typeof inner !== "function") return host;
|
|
31
|
+
const { _: _compiled, $stable: _stable, ...rest } = slots;
|
|
32
|
+
const passed = cloneVNode(host);
|
|
33
|
+
passed.children = {
|
|
34
|
+
...rest,
|
|
35
|
+
default: (...args) => [h(OnlyChildComponent, attrs, { default: () => inner(...args) })]
|
|
36
|
+
};
|
|
37
|
+
if (passed.patchFlag >= 0) passed.patchFlag |= DYNAMIC_SLOTS;
|
|
38
|
+
return passed;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Render the first element of the default slot, with the attributes and
|
|
42
|
+
* listeners given to this component merged onto it. Lets a floating
|
|
43
|
+
* component wire up its trigger without wrapping it in an extra element.
|
|
44
|
+
*/
|
|
45
|
+
var OnlyChildComponent = defineComponent({
|
|
21
46
|
name: "DouOnlyChild",
|
|
22
47
|
inheritAttrs: false,
|
|
23
48
|
setup(_, { slots, attrs }) {
|
|
49
|
+
const probe = useProbe(attrs);
|
|
24
50
|
return () => {
|
|
25
51
|
const child = firstElement(slots.default?.() ?? []);
|
|
26
52
|
if (!child) return null;
|
|
53
|
+
const given = probe ? mergeProps(attrs, { onDouProbe: probe }) : attrs;
|
|
54
|
+
if (triggerHosts.has(child.type)) return passToTrigger(child, { ...given });
|
|
27
55
|
const describedBy = [child.props?.["aria-describedby"], attrs["aria-describedby"]].filter(Boolean).join(" ") || void 0;
|
|
28
56
|
return cloneVNode(child, {
|
|
29
|
-
...
|
|
57
|
+
...given,
|
|
30
58
|
"aria-describedby": describedBy
|
|
31
59
|
}, true);
|
|
32
60
|
};
|
|
33
61
|
}
|
|
34
62
|
});
|
|
63
|
+
function useProbe(attrs) {
|
|
64
|
+
if (process.env.NODE_ENV === "production") return void 0;
|
|
65
|
+
const instance = getCurrentInstance();
|
|
66
|
+
let reached = false;
|
|
67
|
+
onMounted(() => {
|
|
68
|
+
if (!Object.keys(attrs).some((key) => /^on[A-Z]/.test(key) && key !== "onDouProbe")) return;
|
|
69
|
+
const root = onlyChildElement(instance?.proxy);
|
|
70
|
+
if (!root) return;
|
|
71
|
+
const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT);
|
|
72
|
+
let node = root;
|
|
73
|
+
for (let n = 0; node && n < 500; n++) {
|
|
74
|
+
node.dispatchEvent(new Event("dou-probe"));
|
|
75
|
+
if (reached) return;
|
|
76
|
+
node = walker.nextNode();
|
|
77
|
+
}
|
|
78
|
+
if (node) return;
|
|
79
|
+
const owner = (instance?.parent?.type)?.name ?? "DouOnlyChild";
|
|
80
|
+
devWarn(`[dou-ui] ${owner}: its trigger got none of its listeners. The component in the default slot keeps its attributes for something else, e.g. your own component whose root is a DouPopover or DouDropdown. Put ${owner} inside that component, right around the overlay, or wrap the slot in an element.`);
|
|
81
|
+
});
|
|
82
|
+
return () => reached = true;
|
|
83
|
+
}
|
|
84
|
+
/** 属性和事件都转交给插槽里的元素,所以模板里可以写任何原生属性。 */
|
|
85
|
+
var OnlyChild = OnlyChildComponent;
|
|
35
86
|
/** The DOM element rendered by an `OnlyChild`, from its template ref. */
|
|
36
87
|
function onlyChildElement(instance) {
|
|
37
88
|
let node = instance?.$el;
|
|
38
89
|
while (node && !(node instanceof Element)) node = node.nextSibling;
|
|
39
90
|
return node ?? null;
|
|
40
91
|
}
|
|
41
|
-
export { OnlyChild, onlyChildElement };
|
|
92
|
+
export { OnlyChild, forwardsTrigger, onlyChildElement };
|
|
42
93
|
|
|
43
94
|
//# sourceMappingURL=only-child.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"only-child.js","names":[],"sources":["../../src/utils/only-child.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"only-child.js","names":[],"sources":["../../src/utils/only-child.ts"],"sourcesContent":["import {\n Comment,\n Fragment,\n Text,\n cloneVNode,\n defineComponent,\n getCurrentInstance,\n h,\n mergeProps,\n onMounted,\n} from 'vue'\nimport type { Component, ComponentPublicInstance, HTMLAttributes, VNode } from 'vue'\nimport type { WithAttributes } from './install'\nimport { devWarn } from './status-check'\n\nfunction firstElement(nodes: VNode[]): VNode | null {\n for (const node of nodes) {\n if (node.type === Comment) continue\n if (node.type === Fragment) {\n const found = firstElement((node.children as VNode[]) ?? [])\n if (found) return found\n continue\n }\n if (node.type === Text) {\n if (!String(node.children).trim()) continue\n return h('span', null, node.children as string)\n }\n return node\n }\n return null\n}\n\n/*\n * Components whose default slot is their trigger (a tooltip, a popover, a\n * menu). Nested inside one another, each would hand its listeners to the\n * outer component, which keeps them for its own panel. So when the child\n * is one of these, the attributes go on to its slot instead and reach the\n * element both of them anchor to.\n */\nconst triggerHosts = new WeakSet<object>()\n\n/** Marks a component whose default slot is its trigger, rendered through `OnlyChild`. */\nexport function forwardsTrigger<T extends Component>(component: T): T {\n triggerHosts.add(component)\n return component\n}\n\n// PatchFlags.DYNAMIC_SLOTS: the replaced slot differs on every render\nconst DYNAMIC_SLOTS = 1 << 10\n\nfunction passToTrigger(host: VNode, attrs: Record<string, unknown>): VNode {\n const slots = host.children as Record<string, unknown> | null\n const inner = slots?.default\n if (typeof inner !== 'function') return host\n // without `_` and `$stable` the slots are taken as new on every render\n const { _: _compiled, $stable: _stable, ...rest } = slots!\n const passed = cloneVNode(host)\n passed.children = {\n ...rest,\n default: (...args: unknown[]) => [\n h(OnlyChildComponent, attrs, {\n default: () => (inner as (...a: unknown[]) => VNode[])(...args),\n }),\n ],\n }\n if (passed.patchFlag >= 0) passed.patchFlag |= DYNAMIC_SLOTS\n return passed\n}\n\n/**\n * Render the first element of the default slot, with the attributes and\n * listeners given to this component merged onto it. Lets a floating\n * component wire up its trigger without wrapping it in an extra element.\n */\nconst OnlyChildComponent = defineComponent({\n name: 'DouOnlyChild',\n inheritAttrs: false,\n setup(_, { slots, attrs }) {\n const probe = useProbe(attrs)\n return () => {\n const child = firstElement(slots.default?.() ?? [])\n if (!child) return null\n // probes of the components around are kept: each checks its own listeners\n const given = probe ? mergeProps(attrs, { onDouProbe: probe }) : attrs\n if (triggerHosts.has(child.type as object)) return passToTrigger(child, { ...given })\n // ids that describe the element are a list: the element's own stay with the ones given\n const own = child.props?.['aria-describedby'] as string | undefined\n const theirs = attrs['aria-describedby'] as string | undefined\n const describedBy = [own, theirs].filter(Boolean).join(' ') || undefined\n return cloneVNode(child, { ...given, 'aria-describedby': describedBy }, true)\n }\n },\n})\n\n/*\n * While developing: check once that the listeners reached an element. A\n * component in the slot that keeps its attributes for something else\n * (say a wrapper whose root is a DouDropdown, which puts them on its\n * panel) leaves the trigger without them, and nothing else would say so.\n */\nfunction useProbe(attrs: Record<string, unknown>) {\n if (process.env.NODE_ENV === 'production') return undefined\n const instance = getCurrentInstance()\n let reached = false\n onMounted(() => {\n if (!Object.keys(attrs).some((key) => /^on[A-Z]/.test(key) && key !== 'onDouProbe')) return\n const root = onlyChildElement(instance?.proxy)\n if (!root) return\n // the listeners may sit on an element inside the root, not on the root itself\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT)\n let node: Node | null = root\n for (let n = 0; node && n < 500; n++) {\n node.dispatchEvent(new Event('dou-probe'))\n if (reached) return\n node = walker.nextNode()\n }\n // a trigger too large to look through is given the benefit of the doubt\n if (node) return\n const owner = (instance?.parent?.type as { name?: string } | undefined)?.name ?? 'DouOnlyChild'\n devWarn(\n `[dou-ui] ${owner}: its trigger got none of its listeners. The component in the default slot keeps its attributes for something else, e.g. your own component whose root is a DouPopover or DouDropdown. Put ${owner} inside that component, right around the overlay, or wrap the slot in an element.`,\n )\n })\n return () => (reached = true)\n}\n\n/** 属性和事件都转交给插槽里的元素,所以模板里可以写任何原生属性。 */\nexport const OnlyChild = OnlyChildComponent as WithAttributes<\n typeof OnlyChildComponent,\n HTMLAttributes\n>\n\n/** The DOM element rendered by an `OnlyChild`, from its template ref. */\nexport function onlyChildElement(instance: ComponentPublicInstance | null | undefined) {\n let node = instance?.$el as Node | null | undefined\n while (node && !(node instanceof Element)) node = node.nextSibling\n return node ?? null\n}\n"],"mappings":";;;AAeA,SAAS,aAAa,OAA8B;CAClD,KAAK,MAAM,QAAQ,OAAO;EACxB,IAAI,KAAK,SAAS,SAAS;EAC3B,IAAI,KAAK,SAAS,UAAU;GAC1B,MAAM,QAAQ,aAAc,KAAK,YAAwB,CAAC,CAAC;GAC3D,IAAI,OAAO,OAAO;GAClB;EACF;EACA,IAAI,KAAK,SAAS,MAAM;GACtB,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,GAAG;GACnC,OAAO,EAAE,QAAQ,MAAM,KAAK,QAAkB;EAChD;EACA,OAAO;CACT;CACA,OAAO;AACT;AASA,IAAM,+BAAe,IAAI,QAAgB;;AAGzC,SAAgB,gBAAqC,WAAiB;CACpE,aAAa,IAAI,SAAS;CAC1B,OAAO;AACT;AAGA,IAAM,gBAAgB;AAEtB,SAAS,cAAc,MAAa,OAAuC;CACzE,MAAM,QAAQ,KAAK;CACnB,MAAM,QAAQ,OAAO;CACrB,IAAI,OAAO,UAAU,YAAY,OAAO;CAExC,MAAM,EAAE,GAAG,WAAW,SAAS,SAAS,GAAG,SAAS;CACpD,MAAM,SAAS,WAAW,IAAI;CAC9B,OAAO,WAAW;EAChB,GAAG;EACH,UAAU,GAAG,SAAoB,CAC/B,EAAE,oBAAoB,OAAO,EAC3B,eAAgB,MAAuC,GAAG,IAAI,EAChE,CAAC,CACH;CACF;CACA,IAAI,OAAO,aAAa,GAAG,OAAO,aAAa;CAC/C,OAAO;AACT;;;;;;AAOA,IAAM,qBAAqB,gBAAgB;CACzC,MAAM;CACN,cAAc;CACd,MAAM,GAAG,EAAE,OAAO,SAAS;EACzB,MAAM,QAAQ,SAAS,KAAK;EAC5B,aAAa;GACX,MAAM,QAAQ,aAAa,MAAM,UAAU,KAAK,CAAC,CAAC;GAClD,IAAI,CAAC,OAAO,OAAO;GAEnB,MAAM,QAAQ,QAAQ,WAAW,OAAO,EAAE,YAAY,MAAM,CAAC,IAAI;GACjE,IAAI,aAAa,IAAI,MAAM,IAAc,GAAG,OAAO,cAAc,OAAO,EAAE,GAAG,MAAM,CAAC;GAIpF,MAAM,cAAc,CAFR,MAAM,QAAQ,qBACX,MAAM,mBACW,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,KAAK,KAAA;GAC/D,OAAO,WAAW,OAAO;IAAE,GAAG;IAAO,oBAAoB;GAAY,GAAG,IAAI;EAC9E;CACF;AACF,CAAC;AAQD,SAAS,SAAS,OAAgC;CAChD,IAAA,QAAA,IAAA,aAA6B,cAAc,OAAO,KAAA;CAClD,MAAM,WAAW,mBAAmB;CACpC,IAAI,UAAU;CACd,gBAAgB;EACd,IAAI,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,MAAM,QAAQ,WAAW,KAAK,GAAG,KAAK,QAAQ,YAAY,GAAG;EACrF,MAAM,OAAO,iBAAiB,UAAU,KAAK;EAC7C,IAAI,CAAC,MAAM;EAEX,MAAM,SAAS,SAAS,iBAAiB,MAAM,WAAW,YAAY;EACtE,IAAI,OAAoB;EACxB,KAAK,IAAI,IAAI,GAAG,QAAQ,IAAI,KAAK,KAAK;GACpC,KAAK,cAAc,IAAI,MAAM,WAAW,CAAC;GACzC,IAAI,SAAS;GACb,OAAO,OAAO,SAAS;EACzB;EAEA,IAAI,MAAM;EACV,MAAM,SAAS,UAAU,QAAQ,KAAA,EAAwC,QAAQ;EACjF,QACE,YAAY,MAAM,6LAA6L,MAAM,kFACvN;CACF,CAAC;CACD,aAAc,UAAU;AAC1B;;AAGA,IAAa,YAAY;;AAMzB,SAAgB,iBAAiB,UAAsD;CACrF,IAAI,OAAO,UAAU;CACrB,OAAO,QAAQ,EAAE,gBAAgB,UAAU,OAAO,KAAK;CACvD,OAAO,QAAQ;AACjB"}
|
package/dist/utils/pointer.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
// src/utils/pointer.ts
|
|
2
2
|
/**
|
|
3
|
+
* Whether a pointer of this type can hover. Fingers and pens touch down
|
|
4
|
+
* where they act, and the enter and leave they send come with the press.
|
|
5
|
+
*/
|
|
6
|
+
var hasHover = (pointerType) => pointerType !== "touch" && pointerType !== "pen";
|
|
7
|
+
/**
|
|
3
8
|
* Keeps a touch on the drag it started, also when the element under the
|
|
4
9
|
* finger is removed while it moves (the item moved to another list, a
|
|
5
10
|
* virtual row scrolled out of view).
|
|
@@ -81,6 +86,6 @@ function holdPointer(event, root, onLost) {
|
|
|
81
86
|
release
|
|
82
87
|
};
|
|
83
88
|
}
|
|
84
|
-
export { holdPointer };
|
|
89
|
+
export { hasHover, holdPointer };
|
|
85
90
|
|
|
86
91
|
//# sourceMappingURL=pointer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pointer.js","names":[],"sources":["../../src/utils/pointer.ts"],"sourcesContent":["/** A press that may turn into a drag; see `holdPointer`. */\nexport interface PointerHold {\n /** The drag has started: the touch stops scrolling and `root` captures the pointer. */\n grab(): void\n /** The press or the drag is over. */\n release(): void\n}\n\n/**\n * Keeps a touch on the drag it started, also when the element under the\n * finger is removed while it moves (the item moved to another list, a\n * virtual row scrolled out of view).\n *\n * Touch events keep going to the element the finger went down on, and a\n * removed element no longer passes them up to the page: nothing stops the\n * touch from scrolling, and the browser cancels the pointer to scroll\n * instead. So the element gets its own `touchmove` listener, next to one on\n * the window. Call this in `pointerdown`: it comes before `touchstart`, and\n * a touch can only be kept from scrolling when a listener on the window was\n * there as it started (one on the element alone is not seen in time). Call\n * `grab()` once the drag starts and `release()` when it ends.\n *\n * `root` is an element that stays in the page for the whole drag; it\n * captures the pointer, so its events go on without the element. Leave it\n * out when the element itself captures the pointer and is never removed.\n *\n * The hold also lets go by itself once the last finger is lifted, whether\n * or not the `pointerup` reached the code that would call `release()`\n * (Safari on iOS sends it to a removed element, where nothing hears it):\n * a hold that outlived its touch would keep the whole page from scrolling.\n * The drag is then cancelled the usual way: a `pointercancel` for the same\n * pointer goes out from the pressed element (or `root`, or the window, when\n * it is gone), so code that ends a drag on `pointercancel` ends it here too.\n * `onLost` is called after it.\n */\nexport function holdPointer(\n event: PointerEvent,\n root?: Element | null,\n onLost?: () => void,\n): PointerHold {\n // A mouse never scrolls the page by dragging.\n if (event.pointerType === 'mouse') return { grab() {}, release() {} }\n const target = event.target instanceof Element ? event.target : null\n let grabbed = false\n let held = true\n const block = (e: Event) => {\n if (grabbed && e.cancelable) e.preventDefault()\n }\n // After the pointer's own events, so a `pointerup` that did arrive ends the drag first.\n const end = (e: Event) => {\n if ((e as TouchEvent).touches?.length) return\n setTimeout(() => {\n if (!held) return\n release()\n const at = target?.isConnected ? target : root?.isConnected ? root : window\n at.dispatchEvent(\n new PointerEvent('pointercancel', {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n bubbles: true,\n }),\n )\n onLost?.()\n })\n }\n window.addEventListener('touchmove', block, { passive: false })\n target?.addEventListener('touchmove', block, { passive: false })\n for (const type of ['touchend', 'touchcancel']) {\n window.addEventListener(type, end, { passive: true })\n target?.addEventListener(type, end, { passive: true })\n }\n function release() {\n if (held) {\n held = false\n window.removeEventListener('touchmove', block)\n target?.removeEventListener('touchmove', block)\n for (const type of ['touchend', 'touchcancel']) {\n window.removeEventListener(type, end)\n target?.removeEventListener(type, end)\n }\n }\n if (!grabbed) return\n grabbed = false\n if (root?.isConnected && root.hasPointerCapture?.(event.pointerId))\n root.releasePointerCapture(event.pointerId)\n }\n return {\n grab() {\n if (grabbed || !held) return\n grabbed = true\n try {\n if (root?.isConnected) root.setPointerCapture?.(event.pointerId)\n } catch {\n // the pointer is already gone\n }\n },\n release,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"pointer.js","names":[],"sources":["../../src/utils/pointer.ts"],"sourcesContent":["/**\n * Whether a pointer of this type can hover. Fingers and pens touch down\n * where they act, and the enter and leave they send come with the press.\n */\nexport const hasHover = (pointerType: string) => pointerType !== 'touch' && pointerType !== 'pen'\n\n/** A press that may turn into a drag; see `holdPointer`. */\nexport interface PointerHold {\n /** The drag has started: the touch stops scrolling and `root` captures the pointer. */\n grab(): void\n /** The press or the drag is over. */\n release(): void\n}\n\n/**\n * Keeps a touch on the drag it started, also when the element under the\n * finger is removed while it moves (the item moved to another list, a\n * virtual row scrolled out of view).\n *\n * Touch events keep going to the element the finger went down on, and a\n * removed element no longer passes them up to the page: nothing stops the\n * touch from scrolling, and the browser cancels the pointer to scroll\n * instead. So the element gets its own `touchmove` listener, next to one on\n * the window. Call this in `pointerdown`: it comes before `touchstart`, and\n * a touch can only be kept from scrolling when a listener on the window was\n * there as it started (one on the element alone is not seen in time). Call\n * `grab()` once the drag starts and `release()` when it ends.\n *\n * `root` is an element that stays in the page for the whole drag; it\n * captures the pointer, so its events go on without the element. Leave it\n * out when the element itself captures the pointer and is never removed.\n *\n * The hold also lets go by itself once the last finger is lifted, whether\n * or not the `pointerup` reached the code that would call `release()`\n * (Safari on iOS sends it to a removed element, where nothing hears it):\n * a hold that outlived its touch would keep the whole page from scrolling.\n * The drag is then cancelled the usual way: a `pointercancel` for the same\n * pointer goes out from the pressed element (or `root`, or the window, when\n * it is gone), so code that ends a drag on `pointercancel` ends it here too.\n * `onLost` is called after it.\n */\nexport function holdPointer(\n event: PointerEvent,\n root?: Element | null,\n onLost?: () => void,\n): PointerHold {\n // A mouse never scrolls the page by dragging.\n if (event.pointerType === 'mouse') return { grab() {}, release() {} }\n const target = event.target instanceof Element ? event.target : null\n let grabbed = false\n let held = true\n const block = (e: Event) => {\n if (grabbed && e.cancelable) e.preventDefault()\n }\n // After the pointer's own events, so a `pointerup` that did arrive ends the drag first.\n const end = (e: Event) => {\n if ((e as TouchEvent).touches?.length) return\n setTimeout(() => {\n if (!held) return\n release()\n const at = target?.isConnected ? target : root?.isConnected ? root : window\n at.dispatchEvent(\n new PointerEvent('pointercancel', {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n bubbles: true,\n }),\n )\n onLost?.()\n })\n }\n window.addEventListener('touchmove', block, { passive: false })\n target?.addEventListener('touchmove', block, { passive: false })\n for (const type of ['touchend', 'touchcancel']) {\n window.addEventListener(type, end, { passive: true })\n target?.addEventListener(type, end, { passive: true })\n }\n function release() {\n if (held) {\n held = false\n window.removeEventListener('touchmove', block)\n target?.removeEventListener('touchmove', block)\n for (const type of ['touchend', 'touchcancel']) {\n window.removeEventListener(type, end)\n target?.removeEventListener(type, end)\n }\n }\n if (!grabbed) return\n grabbed = false\n if (root?.isConnected && root.hasPointerCapture?.(event.pointerId))\n root.releasePointerCapture(event.pointerId)\n }\n return {\n grab() {\n if (grabbed || !held) return\n grabbed = true\n try {\n if (root?.isConnected) root.setPointerCapture?.(event.pointerId)\n } catch {\n // the pointer is already gone\n }\n },\n release,\n }\n}\n"],"mappings":";;;;;AAIA,IAAa,YAAY,gBAAwB,gBAAgB,WAAW,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqC5F,SAAgB,YACd,OACA,MACA,QACa;CAEb,IAAI,MAAM,gBAAgB,SAAS,OAAO;EAAE,OAAO,CAAC;EAAG,UAAU,CAAC;CAAE;CACpE,MAAM,SAAS,MAAM,kBAAkB,UAAU,MAAM,SAAS;CAChE,IAAI,UAAU;CACd,IAAI,OAAO;CACX,MAAM,SAAS,MAAa;EAC1B,IAAI,WAAW,EAAE,YAAY,EAAE,eAAe;CAChD;CAEA,MAAM,OAAO,MAAa;EACxB,IAAK,EAAiB,SAAS,QAAQ;EACvC,iBAAiB;GACf,IAAI,CAAC,MAAM;GACX,QAAQ;GAER,CADW,QAAQ,cAAc,SAAS,MAAM,cAAc,OAAO,OAAA,CAClE,cACD,IAAI,aAAa,iBAAiB;IAChC,WAAW,MAAM;IACjB,aAAa,MAAM;IACnB,SAAS;GACX,CAAC,CACH;GACA,SAAS;EACX,CAAC;CACH;CACA,OAAO,iBAAiB,aAAa,OAAO,EAAE,SAAS,MAAM,CAAC;CAC9D,QAAQ,iBAAiB,aAAa,OAAO,EAAE,SAAS,MAAM,CAAC;CAC/D,KAAK,MAAM,QAAQ,CAAC,YAAY,aAAa,GAAG;EAC9C,OAAO,iBAAiB,MAAM,KAAK,EAAE,SAAS,KAAK,CAAC;EACpD,QAAQ,iBAAiB,MAAM,KAAK,EAAE,SAAS,KAAK,CAAC;CACvD;CACA,SAAS,UAAU;EACjB,IAAI,MAAM;GACR,OAAO;GACP,OAAO,oBAAoB,aAAa,KAAK;GAC7C,QAAQ,oBAAoB,aAAa,KAAK;GAC9C,KAAK,MAAM,QAAQ,CAAC,YAAY,aAAa,GAAG;IAC9C,OAAO,oBAAoB,MAAM,GAAG;IACpC,QAAQ,oBAAoB,MAAM,GAAG;GACvC;EACF;EACA,IAAI,CAAC,SAAS;EACd,UAAU;EACV,IAAI,MAAM,eAAe,KAAK,oBAAoB,MAAM,SAAS,GAC/D,KAAK,sBAAsB,MAAM,SAAS;CAC9C;CACA,OAAO;EACL,OAAO;GACL,IAAI,WAAW,CAAC,MAAM;GACtB,UAAU;GACV,IAAI;IACF,IAAI,MAAM,aAAa,KAAK,oBAAoB,MAAM,SAAS;GACjE,QAAQ,CAER;EACF;EACA;CACF;AACF"}
|