@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,18 +0,0 @@
|
|
|
1
|
-
import n from "./bubble.vue.js";
|
|
2
|
-
import t from "./bubble-list.vue.js";
|
|
3
|
-
n.name = "TrBubble";
|
|
4
|
-
const o = function(b) {
|
|
5
|
-
b.component(n.name, n);
|
|
6
|
-
};
|
|
7
|
-
n.install = o;
|
|
8
|
-
const s = n;
|
|
9
|
-
t.name = "TrBubbleList";
|
|
10
|
-
const l = function(b) {
|
|
11
|
-
b.component(t.name, t);
|
|
12
|
-
};
|
|
13
|
-
t.install = l;
|
|
14
|
-
const i = t;
|
|
15
|
-
export {
|
|
16
|
-
s as Bubble,
|
|
17
|
-
i as BubbleList
|
|
18
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { nextTick as l } from "vue";
|
|
2
|
-
const s = (o) => ({ scrollToBottom: () => {
|
|
3
|
-
l(() => {
|
|
4
|
-
var t;
|
|
5
|
-
(t = o.value) == null || t.scrollTo({
|
|
6
|
-
top: o.value.scrollHeight,
|
|
7
|
-
behavior: "smooth"
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
} });
|
|
11
|
-
export {
|
|
12
|
-
s as useElementScroll
|
|
13
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, useCssVars as v, useModel as i, computed as p, createElementBlock as _, openBlock as m, createElementVNode as e, renderSlot as s, createVNode as a, unref as d } from "vue";
|
|
2
|
-
import { IconCancelFullScreen as h, IconFullScreen as w, IconClose as b } from "../../../svgs/dist/tiny-robot-svgs.js";
|
|
3
|
-
const $ = { class: "tr-container" }, g = { class: "tr-container__header" }, C = { class: "tr-container__header-operations" }, S = { class: "tr-container__body" }, k = { class: "tr-container__footer" }, F = /* @__PURE__ */ f({
|
|
4
|
-
__name: "index",
|
|
5
|
-
props: {
|
|
6
|
-
show: { type: Boolean, required: !0 },
|
|
7
|
-
showModifiers: {},
|
|
8
|
-
fullscreen: { type: Boolean },
|
|
9
|
-
fullscreenModifiers: {}
|
|
10
|
-
},
|
|
11
|
-
emits: ["update:show", "update:fullscreen"],
|
|
12
|
-
setup(r) {
|
|
13
|
-
v((o) => ({
|
|
14
|
-
"1de4f8d0": n.value ? "0" : "unset",
|
|
15
|
-
"75a61de3": n.value ? "unset" : "var(--tr-container-width)",
|
|
16
|
-
"1422451e": l.value ? "100" : "-1",
|
|
17
|
-
"4bd25f52": l.value ? "1" : "0"
|
|
18
|
-
}));
|
|
19
|
-
const l = i(r, "show"), n = i(r, "fullscreen"), u = p(() => n.value ? h : w);
|
|
20
|
-
return (o, t) => (m(), _("div", $, [
|
|
21
|
-
t[3] || (t[3] = e("div", { class: "tr-container__dragging-bar-wrapper" }, [
|
|
22
|
-
e("div", { class: "tr-container__dragging-bar" })
|
|
23
|
-
], -1)),
|
|
24
|
-
e("div", g, [
|
|
25
|
-
s(o.$slots, "title", {}, () => [
|
|
26
|
-
t[2] || (t[2] = e("h3", { class: "tr-container__title" }, "OpenTiny NEXT", -1))
|
|
27
|
-
], !0),
|
|
28
|
-
e("div", C, [
|
|
29
|
-
s(o.$slots, "operations", {}, void 0, !0),
|
|
30
|
-
e("button", {
|
|
31
|
-
class: "icon-btn",
|
|
32
|
-
onClick: t[0] || (t[0] = (c) => o.$emit("update:fullscreen", !n.value))
|
|
33
|
-
}, [
|
|
34
|
-
a(d(u))
|
|
35
|
-
]),
|
|
36
|
-
e("button", {
|
|
37
|
-
class: "icon-btn",
|
|
38
|
-
onClick: t[1] || (t[1] = (c) => o.$emit("update:show", !1))
|
|
39
|
-
}, [
|
|
40
|
-
a(d(b))
|
|
41
|
-
])
|
|
42
|
-
])
|
|
43
|
-
]),
|
|
44
|
-
e("div", S, [
|
|
45
|
-
s(o.$slots, "default", {}, void 0, !0)
|
|
46
|
-
]),
|
|
47
|
-
e("div", k, [
|
|
48
|
-
s(o.$slots, "footer", {}, void 0, !0)
|
|
49
|
-
])
|
|
50
|
-
]));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export {
|
|
54
|
-
F as default
|
|
55
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineComponent as I, ref as i, computed as L, onMounted as g, watch as h, createElementBlock as n, openBlock as r, createCommentVNode as c, Fragment as v, renderList as A, toDisplayString as d, createVNode as C, unref as T, nextTick as b } from "vue";
|
|
2
|
-
import { IconArrowUp as w } from "../../../../svgs/dist/tiny-robot-svgs.js";
|
|
3
|
-
const x = { class: "tr-feedback__source-list" }, E = ["href"], M = /* @__PURE__ */ I({
|
|
4
|
-
__name: "SourceList",
|
|
5
|
-
props: {
|
|
6
|
-
sources: {},
|
|
7
|
-
linesLimit: { default: Number.MAX_SAFE_INTEGER }
|
|
8
|
-
},
|
|
9
|
-
setup(k) {
|
|
10
|
-
const a = k, u = i(!1), p = i([]), l = i(null), f = () => {
|
|
11
|
-
b(() => {
|
|
12
|
-
const s = p.value.map((t) => (t == null ? void 0 : t.offsetTop) || 0), e = Array.from(new Set(s));
|
|
13
|
-
if (e.length > a.linesLimit) {
|
|
14
|
-
const t = e[a.linesLimit - 1], o = s.lastIndexOf(t);
|
|
15
|
-
l.value = o;
|
|
16
|
-
} else
|
|
17
|
-
l.value = null;
|
|
18
|
-
});
|
|
19
|
-
}, _ = L(() => a.sources.length - (l.value || 0));
|
|
20
|
-
g(f), h(() => a.sources, f);
|
|
21
|
-
const y = (s, e) => {
|
|
22
|
-
s && (p.value[e] = s);
|
|
23
|
-
};
|
|
24
|
-
return (s, e) => (r(), n("div", x, [
|
|
25
|
-
(r(!0), n(v, null, A(a.sources, (t, o) => (r(), n(v, { key: o }, [
|
|
26
|
-
!l.value || u.value || o < l.value ? (r(), n("a", {
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "pill",
|
|
29
|
-
href: t.link,
|
|
30
|
-
target: "_blank",
|
|
31
|
-
ref_for: !0,
|
|
32
|
-
ref: (m) => y(m, o)
|
|
33
|
-
}, d(t.label), 9, E)) : c("", !0),
|
|
34
|
-
l.value && !u.value && o === l.value ? (r(), n("span", {
|
|
35
|
-
key: 1,
|
|
36
|
-
class: "pill",
|
|
37
|
-
onClick: e[0] || (e[0] = (m) => u.value = !0)
|
|
38
|
-
}, d(_.value) + "+ ", 1)) : c("", !0)
|
|
39
|
-
], 64))), 128)),
|
|
40
|
-
u.value ? (r(), n("span", {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "pill collapse-pill",
|
|
43
|
-
onClick: e[1] || (e[1] = (t) => u.value = !1)
|
|
44
|
-
}, [
|
|
45
|
-
C(T(w))
|
|
46
|
-
])) : c("", !0)
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
M as default
|
|
52
|
-
};
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, ref as M, createElementBlock as d, openBlock as o, createElementVNode as a, createCommentVNode as f, createVNode as _, unref as t, withCtx as l, Fragment as g, renderList as A, createBlock as c, createTextVNode as R, toDisplayString as k, resolveDynamicComponent as b } from "vue";
|
|
2
|
-
import { IconArrowDown as h, IconArrowUp as C, IconDislike as T, IconLike as X, IconRefresh as z, IconCopy as O } from "../../../svgs/dist/tiny-robot-svgs.js";
|
|
3
|
-
import x from "../../../../node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js";
|
|
4
|
-
import { ActionGroupItem as N } from "../action-group/index.js";
|
|
5
|
-
import "../icon-button/index.js";
|
|
6
|
-
import U from "./components/SourceList.vue.js";
|
|
7
|
-
import w from "../action-group/ActionGroup.vue.js";
|
|
8
|
-
import Z from "../icon-button/index.vue.js";
|
|
9
|
-
const j = { class: "tr-feedback" }, q = { class: "tr-feedback__operations" }, H = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "tr-feedback__operations-left"
|
|
12
|
-
}, J = { key: 1 }, K = { class: "tr-feedback__operations-right" }, P = { class: "tr-feedback__footer" }, Q = { key: 0 }, ie = /* @__PURE__ */ F({
|
|
13
|
-
__name: "index",
|
|
14
|
-
props: {
|
|
15
|
-
operations: {},
|
|
16
|
-
operationsLimit: { default: Number.MAX_SAFE_INTEGER },
|
|
17
|
-
actions: {},
|
|
18
|
-
actionsLimit: { default: Number.MAX_SAFE_INTEGER },
|
|
19
|
-
sources: {},
|
|
20
|
-
sourcesLinesLimit: { default: Number.MAX_SAFE_INTEGER }
|
|
21
|
-
},
|
|
22
|
-
emits: ["operation", "action"],
|
|
23
|
-
setup(S, { emit: B }) {
|
|
24
|
-
const e = S, D = {
|
|
25
|
-
copy: O,
|
|
26
|
-
refresh: z,
|
|
27
|
-
like: X,
|
|
28
|
-
dislike: T
|
|
29
|
-
}, y = B, G = (m) => {
|
|
30
|
-
var i, n, r;
|
|
31
|
-
(r = (n = (i = e.operations) == null ? void 0 : i.find((u) => u.name === m)) == null ? void 0 : n.onClick) == null || r.call(n), y("operation", m);
|
|
32
|
-
}, V = (m) => {
|
|
33
|
-
var i, n, r;
|
|
34
|
-
(r = (n = (i = e.actions) == null ? void 0 : i.find((u) => u.name === m)) == null ? void 0 : n.onClick) == null || r.call(n), y("action", m);
|
|
35
|
-
}, p = M(!1), v = () => {
|
|
36
|
-
p.value = !p.value;
|
|
37
|
-
};
|
|
38
|
-
return (m, i) => {
|
|
39
|
-
var n, r, u, I, L, E;
|
|
40
|
-
return o(), d("div", j, [
|
|
41
|
-
a("div", q, [
|
|
42
|
-
(n = e.operations) != null && n.length ? (o(), d("div", H, [
|
|
43
|
-
_(t(w), {
|
|
44
|
-
"max-num": e.operationsLimit,
|
|
45
|
-
"drop-down-show-label-only": !0,
|
|
46
|
-
onItemClick: G,
|
|
47
|
-
class: "tr-feedback__operations-left-action-group"
|
|
48
|
-
}, {
|
|
49
|
-
moreBtn: l(() => [
|
|
50
|
-
_(t(x), {
|
|
51
|
-
round: "",
|
|
52
|
-
size: "mini",
|
|
53
|
-
"reset-time": 0,
|
|
54
|
-
class: "tr-feedback__operations-more-btn"
|
|
55
|
-
}, {
|
|
56
|
-
default: l(() => [
|
|
57
|
-
i[0] || (i[0] = a("span", null, "更多", -1)),
|
|
58
|
-
_(t(h))
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
})
|
|
62
|
-
]),
|
|
63
|
-
default: l(() => [
|
|
64
|
-
(o(!0), d(g, null, A(e.operations, (s) => (o(), c(t(N), {
|
|
65
|
-
key: s.name,
|
|
66
|
-
name: s.name,
|
|
67
|
-
label: s.label
|
|
68
|
-
}, {
|
|
69
|
-
default: l(() => [
|
|
70
|
-
_(t(x), {
|
|
71
|
-
round: "",
|
|
72
|
-
"reset-time": 0,
|
|
73
|
-
size: "mini"
|
|
74
|
-
}, {
|
|
75
|
-
default: l(() => [
|
|
76
|
-
R(k(s.label), 1)
|
|
77
|
-
]),
|
|
78
|
-
_: 2
|
|
79
|
-
}, 1024)
|
|
80
|
-
]),
|
|
81
|
-
_: 2
|
|
82
|
-
}, 1032, ["name", "label"]))), 128))
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["max-num"])
|
|
86
|
-
])) : (r = e.sources) != null && r.length ? (o(), d("div", J, [
|
|
87
|
-
a("span", {
|
|
88
|
-
class: "tr-feedback__source",
|
|
89
|
-
onClick: v
|
|
90
|
-
}, [
|
|
91
|
-
a("span", null, k((u = e.sources) == null ? void 0 : u.length) + "条来源", 1),
|
|
92
|
-
(o(), c(b(p.value ? t(C) : t(h))))
|
|
93
|
-
])
|
|
94
|
-
])) : f("", !0),
|
|
95
|
-
a("div", K, [
|
|
96
|
-
_(t(w), {
|
|
97
|
-
"max-num": e.actionsLimit,
|
|
98
|
-
onItemClick: V
|
|
99
|
-
}, {
|
|
100
|
-
default: l(() => [
|
|
101
|
-
(o(!0), d(g, null, A(e.actions, (s) => (o(), c(t(N), {
|
|
102
|
-
key: s.name,
|
|
103
|
-
name: s.name,
|
|
104
|
-
label: s.label
|
|
105
|
-
}, {
|
|
106
|
-
default: l(() => [
|
|
107
|
-
typeof s.icon == "string" ? (o(), c(t(Z), {
|
|
108
|
-
key: 0,
|
|
109
|
-
icon: D[s.icon],
|
|
110
|
-
tooltip: s.label
|
|
111
|
-
}, null, 8, ["icon", "tooltip"])) : (o(), c(b(s.icon), { key: 1 }))
|
|
112
|
-
]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1032, ["name", "label"]))), 128))
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}, 8, ["max-num"])
|
|
118
|
-
])
|
|
119
|
-
]),
|
|
120
|
-
a("div", P, [
|
|
121
|
-
(I = e.operations) != null && I.length && ((L = e.sources) != null && L.length) ? (o(), d("div", Q, [
|
|
122
|
-
a("span", {
|
|
123
|
-
class: "tr-feedback__source",
|
|
124
|
-
onClick: v
|
|
125
|
-
}, [
|
|
126
|
-
a("span", null, k((E = e.sources) == null ? void 0 : E.length) + "条来源", 1),
|
|
127
|
-
(o(), c(b(p.value ? t(C) : t(h))))
|
|
128
|
-
])
|
|
129
|
-
])) : f("", !0),
|
|
130
|
-
p.value && e.sources ? (o(), c(t(U), {
|
|
131
|
-
key: 1,
|
|
132
|
-
sources: e.sources,
|
|
133
|
-
"lines-limit": e.sourcesLinesLimit
|
|
134
|
-
}, null, 8, ["sources", "lines-limit"])) : f("", !0)
|
|
135
|
-
])
|
|
136
|
-
]);
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
export {
|
|
141
|
-
ie as default
|
|
142
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, createElementBlock as a, openBlock as n, normalizeStyle as o, normalizeClass as s, createElementVNode as r, toDisplayString as p } from "vue";
|
|
2
|
-
const y = /* @__PURE__ */ l({
|
|
3
|
-
__name: "item-tag",
|
|
4
|
-
props: {
|
|
5
|
-
text: {},
|
|
6
|
-
type: { default: "default" },
|
|
7
|
-
style: {}
|
|
8
|
-
},
|
|
9
|
-
setup(t) {
|
|
10
|
-
const e = t;
|
|
11
|
-
return (c, i) => (n(), a("div", {
|
|
12
|
-
class: s(["tr-history__item-tag", e.type]),
|
|
13
|
-
style: o(e.style)
|
|
14
|
-
}, [
|
|
15
|
-
r("span", null, p(e.text), 1)
|
|
16
|
-
], 6));
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
export {
|
|
20
|
-
y as default
|
|
21
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as r, openBlock as c, createElementVNode as t, createVNode as n, unref as a, toDisplayString as p } from "vue";
|
|
2
|
-
import { IconEmptySearch as _ } from "../../../../svgs/dist/tiny-robot-svgs.js";
|
|
3
|
-
const i = { class: "tr-history__empty" }, m = { class: "tr-history__empty-icon" }, l = { class: "tr-history__empty-text" }, u = /* @__PURE__ */ s({
|
|
4
|
-
__name: "search-empty",
|
|
5
|
-
props: {
|
|
6
|
-
text: { default: "暂无内容" }
|
|
7
|
-
},
|
|
8
|
-
setup(e) {
|
|
9
|
-
const o = e;
|
|
10
|
-
return (d, h) => (c(), r("div", i, [
|
|
11
|
-
t("span", m, [
|
|
12
|
-
n(a(_))
|
|
13
|
-
]),
|
|
14
|
-
t("span", l, p(o.text), 1)
|
|
15
|
-
]));
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
u as default
|
|
20
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { onClickOutside as v } from "../../../../../node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js";
|
|
2
|
-
import { ref as n, watchEffect as s, nextTick as h } from "vue";
|
|
3
|
-
const w = (o) => {
|
|
4
|
-
const i = n(), u = (t) => {
|
|
5
|
-
i.value = {
|
|
6
|
-
id: t.id,
|
|
7
|
-
title: t.title,
|
|
8
|
-
rawData: t
|
|
9
|
-
};
|
|
10
|
-
}, a = n(null), r = (t) => {
|
|
11
|
-
t && h(() => {
|
|
12
|
-
a.value = t, a.value.focus();
|
|
13
|
-
});
|
|
14
|
-
};
|
|
15
|
-
let e;
|
|
16
|
-
const l = () => {
|
|
17
|
-
if (i.value) {
|
|
18
|
-
if (i.value.title !== i.value.rawData.title) {
|
|
19
|
-
const { title: t, rawData: f } = i.value;
|
|
20
|
-
o("item-title-change", t, f);
|
|
21
|
-
}
|
|
22
|
-
i.value = void 0;
|
|
23
|
-
}
|
|
24
|
-
e == null || e(), e = void 0;
|
|
25
|
-
}, c = () => {
|
|
26
|
-
i.value = void 0, e == null || e(), e = void 0;
|
|
27
|
-
}, d = (t) => {
|
|
28
|
-
t.key === "Enter" ? l() : t.key === "Escape" && c();
|
|
29
|
-
};
|
|
30
|
-
return s(() => {
|
|
31
|
-
a.value && (e == null || e(), e = v(a, () => {
|
|
32
|
-
l();
|
|
33
|
-
}));
|
|
34
|
-
}), {
|
|
35
|
-
editingItem: i,
|
|
36
|
-
handleEdit: u,
|
|
37
|
-
handleEditorInputRef: r,
|
|
38
|
-
handleKeyDown: d
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export {
|
|
42
|
-
w as useEditItemTitle
|
|
43
|
-
};
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, mergeModels as w, useCssVars as K, computed as u, useModel as F, createElementBlock as l, openBlock as i, createElementVNode as n, createCommentVNode as M, Fragment as p, renderList as k, normalizeClass as Q, toDisplayString as b, createVNode as v, unref as e, createBlock as $, withDirectives as U, mergeProps as W, withModifiers as A, vModelText as j } from "vue";
|
|
2
|
-
import { IconSearch as G, IconEditPen as R, IconDelete as H, IconClose as J } from "../../../svgs/dist/tiny-robot-svgs.js";
|
|
3
|
-
import C from "../../../../node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js";
|
|
4
|
-
import O from "../../../../node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js";
|
|
5
|
-
import X from "./components/item-tag.vue.js";
|
|
6
|
-
import Y from "./components/search-empty.vue.js";
|
|
7
|
-
import { useEditItemTitle as Z } from "./composables/useEditItemTitle.js";
|
|
8
|
-
const q = { class: "tr-history" }, ee = { class: "tr-history__tabs" }, te = ["onClick"], re = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "tr-history__search"
|
|
11
|
-
}, ie = { class: "tr-history__content" }, se = { class: "tr-history__date" }, oe = ["onClick"], le = { class: "tr-history__item-title" }, ae = { class: "tr-history__item-actions" }, ne = { class: "tr-history__close" }, ve = /* @__PURE__ */ N({
|
|
12
|
-
__name: "index",
|
|
13
|
-
props: /* @__PURE__ */ w({
|
|
14
|
-
tabTitle: {},
|
|
15
|
-
data: {},
|
|
16
|
-
activeTab: {},
|
|
17
|
-
searchBar: { type: Boolean },
|
|
18
|
-
searchQuery: {},
|
|
19
|
-
searchPlaceholder: {},
|
|
20
|
-
searchFn: { type: Function, default: (c, { title: y }) => c ? y.toLowerCase().includes(c.toLowerCase()) : !0 },
|
|
21
|
-
selected: {},
|
|
22
|
-
tabs: {}
|
|
23
|
-
}, {
|
|
24
|
-
activeTab: {},
|
|
25
|
-
activeTabModifiers: {},
|
|
26
|
-
searchQuery: {},
|
|
27
|
-
searchQueryModifiers: {}
|
|
28
|
-
}),
|
|
29
|
-
emits: /* @__PURE__ */ w(["close", "item-click", "item-title-change", "item-delete"], ["update:activeTab", "update:searchQuery"]),
|
|
30
|
-
setup(c, { emit: y }) {
|
|
31
|
-
K((a) => ({
|
|
32
|
-
"8b6c417a": x.value ? "1px solid rgb(240, 240, 240)" : "none",
|
|
33
|
-
"744b1e9a": x.value ? "2px solid rgb(25, 25, 25)" : "none"
|
|
34
|
-
}));
|
|
35
|
-
const s = c, g = F(c, "activeTab"), h = F(c, "searchQuery"), m = y, f = u(() => Array.isArray(s.tabs) ? s.tabs : [{ title: s.tabTitle, id: "0" }]), T = u(() => g.value || f.value[0].id), x = u(() => f.value.length > 1), I = u(() => Array.isArray(s.data) ? s.data || [] : s.data[T.value] || []), B = u(() => s.searchBar ? I.value.map((t) => ({
|
|
36
|
-
...t,
|
|
37
|
-
items: t.items.filter((r) => s.searchFn(h.value || "", r))
|
|
38
|
-
})).filter((t) => t.items.length > 0) : I.value), D = (a) => {
|
|
39
|
-
var t;
|
|
40
|
-
a.id !== ((t = _.value) == null ? void 0 : t.id) && m("item-click", a);
|
|
41
|
-
}, z = () => {
|
|
42
|
-
m("close");
|
|
43
|
-
}, P = (a) => {
|
|
44
|
-
m("item-delete", a);
|
|
45
|
-
}, { editingItem: _, handleEdit: S, handleEditorInputRef: L, handleKeyDown: V } = Z(m);
|
|
46
|
-
return (a, t) => (i(), l("div", q, [
|
|
47
|
-
n("div", ee, [
|
|
48
|
-
(i(!0), l(p, null, k(f.value, (r) => (i(), l("div", {
|
|
49
|
-
key: r.id,
|
|
50
|
-
class: Q(["tr-history__tab", { active: T.value === r.id }]),
|
|
51
|
-
onClick: (o) => g.value = r.id
|
|
52
|
-
}, b(r.title), 11, te))), 128))
|
|
53
|
-
]),
|
|
54
|
-
s.searchBar ? (i(), l("div", re, [
|
|
55
|
-
v(e(O), {
|
|
56
|
-
modelValue: h.value,
|
|
57
|
-
"onUpdate:modelValue": t[0] || (t[0] = (r) => h.value = r),
|
|
58
|
-
placeholder: s.searchPlaceholder || "搜索对话名称",
|
|
59
|
-
"prefix-icon": e(G),
|
|
60
|
-
clearable: ""
|
|
61
|
-
}, null, 8, ["modelValue", "placeholder", "prefix-icon"])
|
|
62
|
-
])) : M("", !0),
|
|
63
|
-
n("div", ie, [
|
|
64
|
-
B.value.length > 0 ? (i(!0), l(p, { key: 0 }, k(B.value, (r) => (i(), l("div", {
|
|
65
|
-
key: r.date,
|
|
66
|
-
class: "tr-history__group"
|
|
67
|
-
}, [
|
|
68
|
-
n("div", se, [
|
|
69
|
-
n("span", null, b(r.date), 1)
|
|
70
|
-
]),
|
|
71
|
-
(i(!0), l(p, null, k(r.items, (o) => {
|
|
72
|
-
var E;
|
|
73
|
-
return i(), l("div", {
|
|
74
|
-
key: `${o.id}-${o.title}`,
|
|
75
|
-
class: Q(["tr-history__item", { selected: s.selected === o.id }]),
|
|
76
|
-
onClick: (d) => D(o)
|
|
77
|
-
}, [
|
|
78
|
-
((E = e(_)) == null ? void 0 : E.id) !== o.id ? (i(), l(p, { key: 0 }, [
|
|
79
|
-
n("span", le, b(o.title), 1),
|
|
80
|
-
o.tag ? (i(), $(e(X), W({
|
|
81
|
-
key: 0,
|
|
82
|
-
class: "tr-history__item-tag",
|
|
83
|
-
ref_for: !0
|
|
84
|
-
}, o.tag), null, 16)) : M("", !0),
|
|
85
|
-
n("div", ae, [
|
|
86
|
-
v(e(C), {
|
|
87
|
-
icon: e(R),
|
|
88
|
-
type: "text",
|
|
89
|
-
size: "mini",
|
|
90
|
-
onClick: A((d) => e(S)(o), ["stop"])
|
|
91
|
-
}, null, 8, ["icon", "onClick"]),
|
|
92
|
-
v(e(C), {
|
|
93
|
-
icon: e(H),
|
|
94
|
-
type: "text",
|
|
95
|
-
size: "mini",
|
|
96
|
-
onClick: A((d) => P(o), ["stop"])
|
|
97
|
-
}, null, 8, ["icon", "onClick"])
|
|
98
|
-
])
|
|
99
|
-
], 64)) : U((i(), l("input", {
|
|
100
|
-
key: 1,
|
|
101
|
-
"onUpdate:modelValue": t[1] || (t[1] = (d) => e(_).title = d),
|
|
102
|
-
class: "tr-history__item-edit",
|
|
103
|
-
ref_for: !0,
|
|
104
|
-
ref: e(L),
|
|
105
|
-
onKeydown: t[2] || (t[2] = //@ts-ignore
|
|
106
|
-
(...d) => e(V) && e(V)(...d))
|
|
107
|
-
}, null, 544)), [
|
|
108
|
-
[j, e(_).title]
|
|
109
|
-
])
|
|
110
|
-
], 10, oe);
|
|
111
|
-
}), 128))
|
|
112
|
-
]))), 128)) : (i(), $(e(Y), {
|
|
113
|
-
key: 1,
|
|
114
|
-
text: h.value ? "暂无搜索结果" : "暂无内容"
|
|
115
|
-
}, null, 8, ["text"]))
|
|
116
|
-
]),
|
|
117
|
-
n("div", ne, [
|
|
118
|
-
v(e(C), {
|
|
119
|
-
icon: e(J),
|
|
120
|
-
type: "text",
|
|
121
|
-
size: "mini",
|
|
122
|
-
onClick: z
|
|
123
|
-
}, null, 8, ["icon"])
|
|
124
|
-
])
|
|
125
|
-
]));
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
export {
|
|
129
|
-
ve as default
|
|
130
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, useCssVars as p, createBlock as n, createElementBlock as r, openBlock as e, unref as a, withCtx as l, createElementVNode as f, resolveDynamicComponent as c } from "vue";
|
|
2
|
-
import u from "../../../../node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js";
|
|
3
|
-
const m = { class: "tr-icon-button" }, d = {
|
|
4
|
-
key: 1,
|
|
5
|
-
class: "tr-icon-button"
|
|
6
|
-
}, x = /* @__PURE__ */ i({
|
|
7
|
-
__name: "index",
|
|
8
|
-
props: {
|
|
9
|
-
icon: {},
|
|
10
|
-
size: { default: "24px" },
|
|
11
|
-
svgSize: { default: "16px" },
|
|
12
|
-
tooltip: {}
|
|
13
|
-
},
|
|
14
|
-
setup(s) {
|
|
15
|
-
p((o) => ({
|
|
16
|
-
"1bc6294b": t.size,
|
|
17
|
-
"2e5bfafb": t.svgSize
|
|
18
|
-
}));
|
|
19
|
-
const t = s;
|
|
20
|
-
return (o, _) => o.tooltip ? (e(), n(a(u), {
|
|
21
|
-
key: 0,
|
|
22
|
-
content: o.tooltip,
|
|
23
|
-
effect: "dark",
|
|
24
|
-
placement: "top",
|
|
25
|
-
"open-delay": 500
|
|
26
|
-
}, {
|
|
27
|
-
default: l(() => [
|
|
28
|
-
f("button", m, [
|
|
29
|
-
(e(), n(c(t.icon)))
|
|
30
|
-
])
|
|
31
|
-
]),
|
|
32
|
-
_: 1
|
|
33
|
-
}, 8, ["content"])) : (e(), r("button", d, [
|
|
34
|
-
(e(), n(c(t.icon)))
|
|
35
|
-
]));
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
export {
|
|
39
|
-
x as default
|
|
40
|
-
};
|