@opentiny/tiny-robot 0.2.0-alpha.1 → 0.2.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/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2190 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +375 -0
- package/dist/sender/index.js +683 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -16
- package/dist/bubble/bubble-list.vue.d.ts +0 -5
- package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
- package/dist/bubble/components/actions/index.d.ts +0 -2
- package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -53
- package/dist/bubble/useScroll.d.ts +0 -4
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -7
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -190
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -53
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -97
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
- package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/bubble/useScroll.js +0 -13
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -142
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -40
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -121
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -232
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -20
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/bubble-list.vue +0 -42
- package/src/bubble/bubble.vue +0 -237
- package/src/bubble/components/actions/copy.vue +0 -54
- package/src/bubble/components/actions/index.ts +0 -2
- package/src/bubble/components/actions/refresh.vue +0 -31
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -63
- package/src/bubble/useScroll.ts +0 -14
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -134
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -8
- package/src/icon-button/index.vue +0 -52
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -274
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, ref as p, computed as I, watch as T, createElementBlock as o, openBlock as a, createElementVNode as b, Fragment as F, renderList as K, toDisplayString as k, normalizeClass as B, withDirectives as R, withModifiers as M, vModelText as N, nextTick as U } from "vue";
|
|
2
|
-
const $ = { class: "template-editor" }, j = { key: 0 }, z = ["onClick"], L = ["onUpdate:modelValue", "onKeydown"], P = {
|
|
3
|
-
key: 1,
|
|
4
|
-
class: "template-placeholder"
|
|
5
|
-
}, q = /* @__PURE__ */ E({
|
|
6
|
-
__name: "TemplateEditor",
|
|
7
|
-
props: {
|
|
8
|
-
template: {},
|
|
9
|
-
value: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:value", "input", "content-status", "field-active"],
|
|
12
|
-
setup(_, { expose: y, emit: g }) {
|
|
13
|
-
const u = _, v = g, w = p(null), c = p({}), r = p(-1), i = I(() => {
|
|
14
|
-
if (u.value)
|
|
15
|
-
return x();
|
|
16
|
-
const e = [];
|
|
17
|
-
let l = 0, t = 0;
|
|
18
|
-
const s = /\[(.*?)\]/g;
|
|
19
|
-
let n;
|
|
20
|
-
for (; (n = s.exec(u.template)) !== null; )
|
|
21
|
-
n.index > l && e.push({
|
|
22
|
-
content: u.template.substring(l, n.index),
|
|
23
|
-
isField: !1
|
|
24
|
-
}), e.push({
|
|
25
|
-
content: "",
|
|
26
|
-
placeholder: n[1],
|
|
27
|
-
isField: !0,
|
|
28
|
-
fieldIndex: t++
|
|
29
|
-
}), l = n.index + n[0].length;
|
|
30
|
-
return l < u.template.length && e.push({
|
|
31
|
-
content: u.template.substring(l),
|
|
32
|
-
isField: !1
|
|
33
|
-
}), e;
|
|
34
|
-
}), x = () => i.value, V = () => i.value.map((e) => e.content).join(""), d = () => {
|
|
35
|
-
const e = V();
|
|
36
|
-
v("update:value", e), v("input", e);
|
|
37
|
-
}, f = (e) => {
|
|
38
|
-
r.value = e, U(() => {
|
|
39
|
-
var l;
|
|
40
|
-
c.value[e] && ((l = c.value[e]) == null || l.focus());
|
|
41
|
-
});
|
|
42
|
-
}, m = () => {
|
|
43
|
-
d(), r.value = -1;
|
|
44
|
-
}, C = (e, l) => {
|
|
45
|
-
if (e.key === "Tab") {
|
|
46
|
-
e.preventDefault();
|
|
47
|
-
const t = D(l, e.shiftKey);
|
|
48
|
-
t !== -1 && (d(), f(t));
|
|
49
|
-
} else e.key === "Enter" && (e.preventDefault(), m());
|
|
50
|
-
}, D = (e, l = !1) => {
|
|
51
|
-
if (l) {
|
|
52
|
-
for (let t = e - 1; t >= 0; t--)
|
|
53
|
-
if (i.value[t].isField)
|
|
54
|
-
return t;
|
|
55
|
-
for (let t = i.value.length - 1; t > e; t--)
|
|
56
|
-
if (i.value[t].isField)
|
|
57
|
-
return t;
|
|
58
|
-
} else {
|
|
59
|
-
for (let t = e + 1; t < i.value.length; t++)
|
|
60
|
-
if (i.value[t].isField)
|
|
61
|
-
return t;
|
|
62
|
-
for (let t = 0; t < e; t++)
|
|
63
|
-
if (i.value[t].isField)
|
|
64
|
-
return t;
|
|
65
|
-
}
|
|
66
|
-
return -1;
|
|
67
|
-
};
|
|
68
|
-
T(
|
|
69
|
-
() => u.value,
|
|
70
|
-
(e) => {
|
|
71
|
-
e === "" && h();
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
const h = () => {
|
|
75
|
-
i.value.forEach((e) => {
|
|
76
|
-
e.isField && (e.content = "");
|
|
77
|
-
}), d();
|
|
78
|
-
};
|
|
79
|
-
return y({
|
|
80
|
-
activateFirstField: () => {
|
|
81
|
-
for (let e = 0; e < i.value.length; e++)
|
|
82
|
-
if (i.value[e].isField) {
|
|
83
|
-
f(e);
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
resetFields: h
|
|
88
|
-
}), (e, l) => (a(), o("div", $, [
|
|
89
|
-
b("div", {
|
|
90
|
-
class: "template-content",
|
|
91
|
-
ref_key: "editorRef",
|
|
92
|
-
ref: w
|
|
93
|
-
}, [
|
|
94
|
-
(a(!0), o(F, null, K(i.value, (t, s) => (a(), o(F, { key: s }, [
|
|
95
|
-
t.isField ? (a(), o("span", {
|
|
96
|
-
key: 1,
|
|
97
|
-
class: B(["template-field", { "template-field-active": r.value === s }]),
|
|
98
|
-
onClick: (n) => f(s)
|
|
99
|
-
}, [
|
|
100
|
-
r.value === s ? R((a(), o("input", {
|
|
101
|
-
key: 0,
|
|
102
|
-
ref_for: !0,
|
|
103
|
-
ref: (n) => c.value[s] = n,
|
|
104
|
-
"onUpdate:modelValue": (n) => t.content = n,
|
|
105
|
-
class: "template-input",
|
|
106
|
-
onBlur: l[0] || (l[0] = (n) => m()),
|
|
107
|
-
onKeydown: (n) => C(n, s),
|
|
108
|
-
onClick: l[1] || (l[1] = M(() => {
|
|
109
|
-
}, ["stop"]))
|
|
110
|
-
}, null, 40, L)), [
|
|
111
|
-
[N, t.content]
|
|
112
|
-
]) : (a(), o("span", P, k(t.content || t.placeholder), 1))
|
|
113
|
-
], 10, z)) : (a(), o("span", j, k(t.content), 1))
|
|
114
|
-
], 64))), 128))
|
|
115
|
-
], 512)
|
|
116
|
-
]));
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
export {
|
|
120
|
-
q as default
|
|
121
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { ref as n, watch as o } from "vue";
|
|
2
|
-
function V(u, e) {
|
|
3
|
-
const a = n(u.modelValue || u.defaultValue || ""), c = n(null);
|
|
4
|
-
o(
|
|
5
|
-
() => u.modelValue,
|
|
6
|
-
(l) => {
|
|
7
|
-
l !== void 0 && l !== a.value && (a.value = l);
|
|
8
|
-
}
|
|
9
|
-
), o(
|
|
10
|
-
() => a.value,
|
|
11
|
-
(l) => {
|
|
12
|
-
e("update:modelValue", l);
|
|
13
|
-
}
|
|
14
|
-
);
|
|
15
|
-
const i = (l) => {
|
|
16
|
-
a.value = l, e("update:modelValue", l);
|
|
17
|
-
}, r = (l) => {
|
|
18
|
-
l == null || l.preventDefault();
|
|
19
|
-
const d = a.value;
|
|
20
|
-
!u.disabled && !u.loading && d.trim() && e("submit", d);
|
|
21
|
-
}, t = () => {
|
|
22
|
-
a.value = "", e("update:modelValue", ""), e("clear");
|
|
23
|
-
}, s = n(!1);
|
|
24
|
-
return {
|
|
25
|
-
inputValue: a,
|
|
26
|
-
inputWrapper: c,
|
|
27
|
-
isComposing: s,
|
|
28
|
-
handleChange: i,
|
|
29
|
-
handleSubmit: r,
|
|
30
|
-
handleClear: t,
|
|
31
|
-
clearInput: () => {
|
|
32
|
-
t();
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export {
|
|
37
|
-
V as useInputHandler
|
|
38
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function h(r, s, t, c, f, a, n) {
|
|
2
|
-
const i = (e) => !r.disabled && !r.loading && e.trim().length > 0, u = () => {
|
|
3
|
-
i(t.value) && s("submit", t.value.trim());
|
|
4
|
-
}, y = (e, l) => {
|
|
5
|
-
if (!(e.key === "Enter")) return !1;
|
|
6
|
-
switch (l) {
|
|
7
|
-
case "enter":
|
|
8
|
-
return !e.shiftKey && !e.ctrlKey && !e.metaKey;
|
|
9
|
-
case "ctrlEnter":
|
|
10
|
-
return (e.ctrlKey || e.metaKey) && !e.shiftKey;
|
|
11
|
-
case "shiftEnter":
|
|
12
|
-
return e.shiftKey && !e.ctrlKey && !e.metaKey;
|
|
13
|
-
default:
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
return {
|
|
18
|
-
handleKeyPress: (e) => {
|
|
19
|
-
if (c.value) return;
|
|
20
|
-
if (e.key === "Escape") {
|
|
21
|
-
a.value ? (a.value = !1, e.preventDefault()) : f.isRecording && (n(), e.preventDefault()), s("escape-press");
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
y(e, r.submitType) && i(t.value) && (e.preventDefault(), u());
|
|
25
|
-
},
|
|
26
|
-
triggerSubmit: u
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
h as useKeyboardHandler
|
|
31
|
-
};
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { reactive as f } from "vue";
|
|
2
|
-
function R(r) {
|
|
3
|
-
const n = f({
|
|
4
|
-
isRecording: !1,
|
|
5
|
-
isSupported: typeof window < "u" && "webkitSpeechRecognition" in window || "SpeechRecognition" in window,
|
|
6
|
-
error: void 0
|
|
7
|
-
}), a = n.isSupported ? new (window.webkitSpeechRecognition || window.SpeechRecognition)() : void 0;
|
|
8
|
-
a !== void 0 && (a.continuous = r.continuous ?? !1, a.interimResults = r.interimResults ?? !0, a.lang = r.lang ?? navigator.language, a.onstart = () => {
|
|
9
|
-
var e;
|
|
10
|
-
n.isRecording = !0, n.error = void 0, (e = r.onStart) == null || e.call(r);
|
|
11
|
-
}, a.onend = () => {
|
|
12
|
-
var e;
|
|
13
|
-
n.isRecording = !1, (e = r.onEnd) == null || e.call(r);
|
|
14
|
-
}, a.onresult = (e) => {
|
|
15
|
-
var i, d;
|
|
16
|
-
const c = Array.from(e.results).map((g) => g[0].transcript).join("");
|
|
17
|
-
e.results[0].isFinal ? (i = r.onFinal) == null || i.call(r, c) : (d = r.onInterim) == null || d.call(r, c);
|
|
18
|
-
}, a.onerror = (e) => {
|
|
19
|
-
var c;
|
|
20
|
-
n.error = new Error(e.error), n.isRecording = !1, (c = r.onError) == null || c.call(r, n.error);
|
|
21
|
-
});
|
|
22
|
-
const u = () => {
|
|
23
|
-
var e;
|
|
24
|
-
if (!a) {
|
|
25
|
-
const c = new Error("浏览器不支持语音识别");
|
|
26
|
-
n.error = c, (e = r.onError) == null || e.call(r, c);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (n.isRecording) {
|
|
30
|
-
try {
|
|
31
|
-
a.stop(), setTimeout(() => {
|
|
32
|
-
try {
|
|
33
|
-
a.start();
|
|
34
|
-
} catch (c) {
|
|
35
|
-
t(c);
|
|
36
|
-
}
|
|
37
|
-
}, 100);
|
|
38
|
-
} catch (c) {
|
|
39
|
-
t(c);
|
|
40
|
-
}
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
try {
|
|
44
|
-
a.start();
|
|
45
|
-
} catch (c) {
|
|
46
|
-
t(c);
|
|
47
|
-
}
|
|
48
|
-
}, l = () => {
|
|
49
|
-
if (a && n.isRecording)
|
|
50
|
-
try {
|
|
51
|
-
a.stop();
|
|
52
|
-
} catch (e) {
|
|
53
|
-
t(e);
|
|
54
|
-
}
|
|
55
|
-
}, t = (e) => {
|
|
56
|
-
var c;
|
|
57
|
-
n.error = e instanceof Error ? e : new Error("语音识别操作失败"), n.isRecording = !1, (c = r.onError) == null || c.call(r, n.error);
|
|
58
|
-
};
|
|
59
|
-
return {
|
|
60
|
-
speechState: n,
|
|
61
|
-
start: u,
|
|
62
|
-
stop: l
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
export {
|
|
66
|
-
R as useSpeechHandler
|
|
67
|
-
};
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as w, computed as a, watch as te, createElementBlock as n, openBlock as o, normalizeClass as K, createElementVNode as p, createVNode as f, createCommentVNode as u, Transition as B, withCtx as L, renderSlot as _, createBlock as W, unref as i, isRef as se, normalizeStyle as oe, toDisplayString as C, Fragment as le, renderList as ne } from "vue";
|
|
2
|
-
import ae from "../../../../node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js";
|
|
3
|
-
import { useInputHandler as ie } from "./composables/useInputHandler.js";
|
|
4
|
-
import { useKeyboardHandler as re } from "./composables/useKeyboardHandler.js";
|
|
5
|
-
import { useSpeechHandler as ue } from "./composables/useSpeechHandler.js";
|
|
6
|
-
import H from "./components/ActionButtons.vue.js";
|
|
7
|
-
import de from "./components/TemplateEditor.vue.js";
|
|
8
|
-
/* empty css */
|
|
9
|
-
const pe = ["data-theme"], ce = { class: "tiny-sender__container" }, me = { class: "tiny-sender__input-wrapper" }, fe = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "tiny-sender__header-slot"
|
|
12
|
-
}, he = {
|
|
13
|
-
key: 0,
|
|
14
|
-
class: "tiny-sender__prefix-slot"
|
|
15
|
-
}, ye = { class: "tiny-sender__content-area" }, ve = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "tiny-sender__actions-slot"
|
|
18
|
-
}, ge = { class: "tiny-sender__buttons-container" }, be = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "tiny-sender__footer-slot"
|
|
21
|
-
}, we = {
|
|
22
|
-
key: 0,
|
|
23
|
-
class: "tiny-sender__word-limit"
|
|
24
|
-
}, _e = {
|
|
25
|
-
key: 1,
|
|
26
|
-
class: "tiny-sender__toolbar"
|
|
27
|
-
}, Ce = { class: "tiny-sender__buttons-container" }, Se = {
|
|
28
|
-
key: 0,
|
|
29
|
-
class: "tiny-sender__suggestions"
|
|
30
|
-
}, ke = ["onClick"], $e = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "tiny-sender__error"
|
|
33
|
-
}, ze = /* @__PURE__ */ ee({
|
|
34
|
-
__name: "index",
|
|
35
|
-
props: {
|
|
36
|
-
autofocus: { type: Boolean, default: !1 },
|
|
37
|
-
autoSize: { type: [Boolean, Object], default: !1 },
|
|
38
|
-
allowSpeech: { type: Boolean, default: !0 },
|
|
39
|
-
allowFiles: { type: Boolean, default: !1 },
|
|
40
|
-
clearable: { type: Boolean, default: !1 },
|
|
41
|
-
disabled: { type: Boolean, default: !1 },
|
|
42
|
-
defaultValue: {},
|
|
43
|
-
loading: { type: Boolean, default: !1 },
|
|
44
|
-
modelValue: { default: "" },
|
|
45
|
-
mode: { default: "single" },
|
|
46
|
-
maxLength: { default: 1 / 0 },
|
|
47
|
-
submitType: { default: "enter" },
|
|
48
|
-
speech: { type: [Boolean, Object] },
|
|
49
|
-
placeholder: { default: "请输入内容..." },
|
|
50
|
-
showWordLimit: { type: Boolean, default: !1 },
|
|
51
|
-
suggestions: {},
|
|
52
|
-
theme: { default: "light" },
|
|
53
|
-
template: { default: "" },
|
|
54
|
-
hasContent: { type: Boolean, default: void 0 }
|
|
55
|
-
},
|
|
56
|
-
emits: ["update:modelValue", "submit", "clear", "speech-start", "speech-end", "speech-interim", "speech-error", "suggestion-select", "focus", "blur", "escape-press", "cancel", "reset-template"],
|
|
57
|
-
setup(N, { expose: O, emit: q }) {
|
|
58
|
-
const t = N, l = q, c = w(null), h = w(null), I = a(() => !!t.template), { inputValue: s, isComposing: y, clearInput: D } = ie(t, l), S = () => {
|
|
59
|
-
D(), t.template && l("reset-template");
|
|
60
|
-
}, v = w(!1), T = a(() => !t.suggestions || !s.value ? [] : t.suggestions.filter((e) => e.toLowerCase().includes(s.value.toLowerCase()))), U = (e) => {
|
|
61
|
-
s.value = e, v.value = !1, l("suggestion-select", e);
|
|
62
|
-
}, F = (e) => {
|
|
63
|
-
s.value = e, l("update:modelValue", e);
|
|
64
|
-
}, V = () => {
|
|
65
|
-
h.value && h.value.activateFirstField();
|
|
66
|
-
}, M = a(() => ({
|
|
67
|
-
...typeof t.speech == "object" ? t.speech : {},
|
|
68
|
-
onStart: () => l("speech-start"),
|
|
69
|
-
onEnd: (e) => l("speech-end", e),
|
|
70
|
-
onInterim: (e) => l("speech-interim", e),
|
|
71
|
-
onFinal: (e) => {
|
|
72
|
-
s.value = e, l("speech-end", e);
|
|
73
|
-
},
|
|
74
|
-
onError: (e) => {
|
|
75
|
-
Y(e.message), l("speech-error", e);
|
|
76
|
-
}
|
|
77
|
-
})), { speechState: g, start: E, stop: R } = ue(M.value), k = () => {
|
|
78
|
-
g.isRecording ? R() : E();
|
|
79
|
-
}, { handleKeyPress: P, triggerSubmit: $ } = re(
|
|
80
|
-
t,
|
|
81
|
-
l,
|
|
82
|
-
s,
|
|
83
|
-
y,
|
|
84
|
-
g,
|
|
85
|
-
v,
|
|
86
|
-
k
|
|
87
|
-
), A = (e) => {
|
|
88
|
-
l("focus", e);
|
|
89
|
-
}, G = (e) => {
|
|
90
|
-
l("blur", e);
|
|
91
|
-
}, J = a(() => t.mode === "multiple" ? { minRows: 2, maxRows: 5 } : { maxRows: 1 }), Q = a(
|
|
92
|
-
() => ({
|
|
93
|
-
display: "flex",
|
|
94
|
-
justifyContent: t.showWordLimit && t.maxLength !== 1 / 0 ? "space-between" : "flex-end",
|
|
95
|
-
alignItems: "center"
|
|
96
|
-
})
|
|
97
|
-
), b = a(() => t.disabled), j = a(() => t.loading), z = a(() => t.hasContent !== void 0 ? t.hasContent : !!s.value), X = a(() => ({
|
|
98
|
-
"is-disabled": b.value,
|
|
99
|
-
"is-loading": j.value,
|
|
100
|
-
"has-error": !!m.value
|
|
101
|
-
})), m = w(""), Y = (e) => {
|
|
102
|
-
m.value = e, setTimeout(() => m.value = "", 5e3);
|
|
103
|
-
}, Z = () => {
|
|
104
|
-
y.value = !1, setTimeout(() => y.value = !1, 50);
|
|
105
|
-
};
|
|
106
|
-
return te(s, () => {
|
|
107
|
-
v.value = !!t.suggestions && !!s.value;
|
|
108
|
-
}), O({
|
|
109
|
-
focus: () => {
|
|
110
|
-
if (I.value && h.value)
|
|
111
|
-
V();
|
|
112
|
-
else if (c.value)
|
|
113
|
-
c.value.focus();
|
|
114
|
-
else {
|
|
115
|
-
const e = document.querySelector(".tiny-input__inner");
|
|
116
|
-
e == null || e.focus();
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
blur: () => {
|
|
120
|
-
if (c.value)
|
|
121
|
-
c.value.blur();
|
|
122
|
-
else {
|
|
123
|
-
const e = document.querySelector(".tiny-input__inner");
|
|
124
|
-
e == null || e.blur();
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
clear: S,
|
|
128
|
-
submit: $,
|
|
129
|
-
startSpeech: E,
|
|
130
|
-
stopSpeech: R,
|
|
131
|
-
activateTemplateFirstField: V
|
|
132
|
-
}), (e, r) => (o(), n("div", {
|
|
133
|
-
class: K(["tiny-sender", [X.value, `theme-${e.theme}`, `mode-${e.mode}`]]),
|
|
134
|
-
"data-theme": e.theme
|
|
135
|
-
}, [
|
|
136
|
-
p("div", ce, [
|
|
137
|
-
p("div", me, [
|
|
138
|
-
f(B, { name: "tiny-sender-slide-down" }, {
|
|
139
|
-
default: L(() => [
|
|
140
|
-
e.$slots.header ? (o(), n("div", fe, [
|
|
141
|
-
_(e.$slots, "header")
|
|
142
|
-
])) : u("", !0)
|
|
143
|
-
]),
|
|
144
|
-
_: 3
|
|
145
|
-
}),
|
|
146
|
-
p("div", {
|
|
147
|
-
class: K(["tiny-sender__input-row", { "has-prefix": e.$slots.prefix, "has-header": e.$slots.header }])
|
|
148
|
-
}, [
|
|
149
|
-
e.$slots.prefix ? (o(), n("div", he, [
|
|
150
|
-
_(e.$slots, "prefix")
|
|
151
|
-
])) : u("", !0),
|
|
152
|
-
p("div", ye, [
|
|
153
|
-
I.value ? (o(), W(de, {
|
|
154
|
-
key: 0,
|
|
155
|
-
ref_key: "templateEditorRef",
|
|
156
|
-
ref: h,
|
|
157
|
-
template: e.template,
|
|
158
|
-
value: i(s),
|
|
159
|
-
"onUpdate:value": F,
|
|
160
|
-
onInput: F
|
|
161
|
-
}, null, 8, ["template", "value"])) : (o(), W(i(ae), {
|
|
162
|
-
key: 1,
|
|
163
|
-
ref_key: "inputRef",
|
|
164
|
-
ref: c,
|
|
165
|
-
autosize: J.value,
|
|
166
|
-
type: "textarea",
|
|
167
|
-
readonly: j.value,
|
|
168
|
-
resize: "none",
|
|
169
|
-
modelValue: i(s),
|
|
170
|
-
"onUpdate:modelValue": r[0] || (r[0] = (d) => se(s) ? s.value = d : null),
|
|
171
|
-
disabled: b.value,
|
|
172
|
-
placeholder: e.placeholder,
|
|
173
|
-
maxlength: e.maxLength,
|
|
174
|
-
autofocus: e.autofocus,
|
|
175
|
-
onKeydown: i(P),
|
|
176
|
-
onCompositionstart: r[1] || (r[1] = (d) => y.value = !0),
|
|
177
|
-
onCompositionend: Z,
|
|
178
|
-
onFocus: A,
|
|
179
|
-
onBlur: G
|
|
180
|
-
}, null, 8, ["autosize", "readonly", "modelValue", "disabled", "placeholder", "maxlength", "autofocus", "onKeydown"]))
|
|
181
|
-
]),
|
|
182
|
-
e.mode === "single" ? (o(), n("div", ve, [
|
|
183
|
-
p("div", ge, [
|
|
184
|
-
_(e.$slots, "actions"),
|
|
185
|
-
f(H, {
|
|
186
|
-
class: "inline-buttons",
|
|
187
|
-
"allow-speech": e.allowSpeech,
|
|
188
|
-
"allow-files": e.allowFiles,
|
|
189
|
-
loading: e.loading,
|
|
190
|
-
disabled: b.value,
|
|
191
|
-
"show-clear": e.clearable,
|
|
192
|
-
"has-content": z.value,
|
|
193
|
-
"speech-status": i(g),
|
|
194
|
-
"submit-type": e.submitType,
|
|
195
|
-
onClear: S,
|
|
196
|
-
onToggleSpeech: k,
|
|
197
|
-
onSubmit: i($),
|
|
198
|
-
onCancel: r[2] || (r[2] = (d) => e.$emit("cancel"))
|
|
199
|
-
}, null, 8, ["allow-speech", "allow-files", "loading", "disabled", "show-clear", "has-content", "speech-status", "submit-type", "onSubmit"])
|
|
200
|
-
])
|
|
201
|
-
])) : u("", !0)
|
|
202
|
-
], 2),
|
|
203
|
-
f(B, { name: "tiny-sender-slide-up" }, {
|
|
204
|
-
default: L(() => [
|
|
205
|
-
e.$slots.footer ? (o(), n("div", be, [
|
|
206
|
-
_(e.$slots, "footer")
|
|
207
|
-
])) : e.mode !== "single" || e.showWordLimit && e.maxLength !== 1 / 0 ? (o(), n("div", {
|
|
208
|
-
key: 1,
|
|
209
|
-
style: oe(Q.value),
|
|
210
|
-
class: "tiny-sender__footer-slot tiny-sender__bottom-row"
|
|
211
|
-
}, [
|
|
212
|
-
e.showWordLimit && e.maxLength !== 1 / 0 ? (o(), n("div", we, C(i(s).length) + "/" + C(e.maxLength), 1)) : u("", !0),
|
|
213
|
-
e.mode === "multiple" ? (o(), n("div", _e, [
|
|
214
|
-
p("div", Ce, [
|
|
215
|
-
f(H, {
|
|
216
|
-
"allow-speech": e.allowSpeech,
|
|
217
|
-
"allow-files": e.allowFiles,
|
|
218
|
-
loading: e.loading,
|
|
219
|
-
disabled: b.value,
|
|
220
|
-
"show-clear": e.clearable,
|
|
221
|
-
"has-content": z.value,
|
|
222
|
-
"speech-status": i(g),
|
|
223
|
-
"submit-type": e.submitType,
|
|
224
|
-
onClear: S,
|
|
225
|
-
onToggleSpeech: k,
|
|
226
|
-
onSubmit: i($),
|
|
227
|
-
onCancel: r[3] || (r[3] = (d) => e.$emit("cancel"))
|
|
228
|
-
}, null, 8, ["allow-speech", "allow-files", "loading", "disabled", "show-clear", "has-content", "speech-status", "submit-type", "onSubmit"])
|
|
229
|
-
])
|
|
230
|
-
])) : u("", !0)
|
|
231
|
-
], 4)) : u("", !0)
|
|
232
|
-
]),
|
|
233
|
-
_: 3
|
|
234
|
-
})
|
|
235
|
-
])
|
|
236
|
-
]),
|
|
237
|
-
f(B, { name: "tiny-sender-slide-up" }, {
|
|
238
|
-
default: L(() => [
|
|
239
|
-
v.value && T.value.length ? (o(), n("div", Se, [
|
|
240
|
-
(o(!0), n(le, null, ne(T.value, (d, x) => (o(), n("div", {
|
|
241
|
-
key: x,
|
|
242
|
-
class: "suggestion-item",
|
|
243
|
-
onClick: (Be) => U(d)
|
|
244
|
-
}, C(d), 9, ke))), 128))
|
|
245
|
-
])) : u("", !0)
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
}),
|
|
249
|
-
m.value ? (o(), n("div", $e, C(m.value), 1)) : u("", !0)
|
|
250
|
-
], 10, pe));
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
export {
|
|
254
|
-
ze as default
|
|
255
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, createElementBlock as t, openBlock as o, Fragment as d, renderList as m, normalizeClass as u, renderSlot as g, createCommentVNode as p, createElementVNode as C, toDisplayString as s } from "vue";
|
|
2
|
-
const _ = { class: "tr-suggestion-categories" }, v = ["onClick"], y = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "category-icon"
|
|
5
|
-
}, S = /* @__PURE__ */ l({
|
|
6
|
-
__name: "CategoryNav",
|
|
7
|
-
props: {
|
|
8
|
-
categories: {
|
|
9
|
-
type: Array,
|
|
10
|
-
required: !0
|
|
11
|
-
},
|
|
12
|
-
activeCategory: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: ""
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
emits: ["category-select"],
|
|
18
|
-
setup(n, { emit: r }) {
|
|
19
|
-
const a = r, c = (i) => {
|
|
20
|
-
a("category-select", i);
|
|
21
|
-
};
|
|
22
|
-
return (i, k) => (o(), t("div", _, [
|
|
23
|
-
(o(!0), t(d, null, m(n.categories, (e) => (o(), t("div", {
|
|
24
|
-
key: e.id,
|
|
25
|
-
class: u(["tr-suggestion-categories-item", { active: n.activeCategory === e.id }]),
|
|
26
|
-
onClick: (f) => c(e.id)
|
|
27
|
-
}, [
|
|
28
|
-
g(i.$slots, "category-label", { category: e }, () => [
|
|
29
|
-
e.icon ? (o(), t("div", y, s(e.icon), 1)) : p("", !0),
|
|
30
|
-
C("span", null, s(e.label), 1)
|
|
31
|
-
])
|
|
32
|
-
], 10, v))), 128))
|
|
33
|
-
]));
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
export {
|
|
37
|
-
S as default
|
|
38
|
-
};
|