@opentiny/tiny-robot 0.1.0-alpha.0
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/.vscode/extensions.json +3 -0
- package/README.md +1 -0
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/bubble-item/components/actions/copy.vue.d.ts +10 -0
- package/dist/bubble-item/components/actions/index.d.ts +2 -0
- package/dist/bubble-item/components/actions/refresh.vue.d.ts +2 -0
- package/dist/bubble-item/components/icons/ai.vue.d.ts +2 -0
- package/dist/bubble-item/components/icons/index.d.ts +2 -0
- package/dist/bubble-item/components/icons/user.vue.d.ts +2 -0
- package/dist/bubble-item/index.d.ts +7 -0
- package/dist/bubble-list/bubble-list.vue.d.ts +5 -0
- package/dist/bubble-list/index.d.ts +8 -0
- package/dist/bubble-list/index.type.d.ts +55 -0
- package/dist/conversations/index.d.ts +7 -0
- package/dist/conversations/index.vue.d.ts +2 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +2202 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/index.js +113 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.22.0/node_modules/@opentiny/vue-button/lib/pc.js +93 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +725 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +198 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.22.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +204 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +57 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +10 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +14 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +54 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +85 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +69 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +42 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +43 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/finish.js +34 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +30 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +78 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +30 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +24 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +29 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/warn.js +26 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/index.js +196 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/pc.js +568 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +1783 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/index.js +13 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/button/vue.js +34 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +12 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +135 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +149 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/index.js +228 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/input/vue.js +263 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/index.js +63 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +16 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +23 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +77 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +176 -0
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +248 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +277 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +187 -0
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +19 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +8 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +15 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +5 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +54 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +6 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +9 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +7 -0
- package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +22 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +5 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +164 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +112 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +63 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +96 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +40 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +59 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +127 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +95 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +110 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +99 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +7 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +31 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +10 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +61 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +48 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +7 -0
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +74 -0
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +139 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +4 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +14 -0
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +4 -0
- package/dist/packages/components/src/assets/icons/accessory.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/loading.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/send.svg.js +4 -0
- package/dist/packages/components/src/assets/icons/voice.svg.js +4 -0
- package/dist/packages/components/src/bubble-item/bubble-item.vue.js +7 -0
- package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +111 -0
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +46 -0
- package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +4 -0
- package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +12 -0
- package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +45 -0
- package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +63 -0
- package/dist/packages/components/src/bubble-item/index.js +9 -0
- package/dist/packages/components/src/bubble-list/bubble-list.vue.js +7 -0
- package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +52 -0
- package/dist/packages/components/src/bubble-list/index.js +9 -0
- package/dist/packages/components/src/conversations/index.js +9 -0
- package/dist/packages/components/src/conversations/index.vue.js +9 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +161 -0
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +4 -0
- package/dist/packages/components/src/sender/composables/useInputHandler.js +34 -0
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +31 -0
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +67 -0
- package/dist/packages/components/src/sender/index.js +9 -0
- package/dist/packages/components/src/sender/index.vue.js +233 -0
- package/dist/packages/components/src/sender/index.vue2.js +4 -0
- package/dist/packages/components/src/welcome/index.js +9 -0
- package/dist/packages/components/src/welcome/index.vue.js +9 -0
- package/dist/sender/components/ActionButtons.vue.d.ts +23 -0
- package/dist/sender/composables/useInputHandler.d.ts +17 -0
- package/dist/sender/composables/useKeyboardHandler.d.ts +18 -0
- package/dist/sender/composables/useSpeechHandler.d.ts +14 -0
- package/dist/sender/index.d.ts +7 -0
- package/dist/sender/index.type.d.ts +90 -0
- package/dist/sender/index.vue.d.ts +948 -0
- package/dist/style.css +1 -0
- package/dist/welcome/index.d.ts +7 -0
- package/dist/welcome/index.vue.d.ts +2 -0
- package/package.json +42 -0
- package/src/assets/icons/accessory.svg +12 -0
- package/src/assets/icons/loading-speech.svg +16 -0
- package/src/assets/icons/loading.svg +17 -0
- package/src/assets/icons/send.svg +21 -0
- package/src/assets/icons/voice.svg +22 -0
- package/src/bubble-item/bubble-item.vue +264 -0
- package/src/bubble-item/components/actions/copy.vue +47 -0
- package/src/bubble-item/components/actions/index.ts +2 -0
- package/src/bubble-item/components/actions/refresh.vue +27 -0
- package/src/bubble-item/components/icons/ai.vue +30 -0
- package/src/bubble-item/components/icons/index.ts +2 -0
- package/src/bubble-item/components/icons/user.vue +78 -0
- package/src/bubble-item/index.ts +12 -0
- package/src/bubble-list/bubble-list.vue +53 -0
- package/src/bubble-list/index.ts +14 -0
- package/src/bubble-list/index.type.ts +65 -0
- package/src/conversations/index.ts +12 -0
- package/src/conversations/index.vue +3 -0
- package/src/index.ts +30 -0
- package/src/sender/components/ActionButtons.vue +165 -0
- package/src/sender/composables/useInputHandler.ts +69 -0
- package/src/sender/composables/useKeyboardHandler.ts +99 -0
- package/src/sender/composables/useSpeechHandler.ts +128 -0
- package/src/sender/global.d.ts +44 -0
- package/src/sender/index.less +344 -0
- package/src/sender/index.ts +12 -0
- package/src/sender/index.type.ts +111 -0
- package/src/sender/index.vue +289 -0
- package/src/sender/vars.less +84 -0
- package/src/vite-env.d.ts +1 -0
- package/src/welcome/index.ts +12 -0
- package/src/welcome/index.vue +3 -0
- package/tsconfig.json +37 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +53 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { __spreadProps as w, __spreadValues as M } from "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { textLength as T, handleTextareaMouseUp as z, handleTextareaMouseDown as C, inputStyle as v, handleLeaveTextarea as F, handleEnterTextarea as N, getDisplayOnlyText as L, setInputDomValue as B, handleCompositionUpdate as E, handleCompositionStart as P, calculateNodeStyling as _, getSuffixVisible as A, calcIconOffset as U, watchFormSelect as W, handleChange as $, setShowMoreBtn as H, getInput as j, clear as k, showBox as K, getDisplayedMaskValue as Y, hiddenPassword as Z, handleEnterDisplayOnlyContent as q, hasSelection as G, handlePasswordVisible as J, handleCompositionEnd as Q, setNativeInputValue as R, calcTextareaHeight as X, updateIconOffset as p, resizeTextarea as ee, handleInput as ae, handleFocus as le, handleBlur as te, select as ie, focus as ne, blur as oe } from "./index.js";
|
|
3
|
+
import se from "../tall-storage/vue-storage-box.js";
|
|
4
|
+
import { on as de, off as ue } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
5
|
+
const Ie = [
|
|
6
|
+
"blur",
|
|
7
|
+
"showBox",
|
|
8
|
+
"clear",
|
|
9
|
+
"focus",
|
|
10
|
+
"state",
|
|
11
|
+
"select",
|
|
12
|
+
"getInput",
|
|
13
|
+
"handleBlur",
|
|
14
|
+
"handleInput",
|
|
15
|
+
"handleFocus",
|
|
16
|
+
"handleChange",
|
|
17
|
+
"calcIconOffset",
|
|
18
|
+
"resizeTextarea",
|
|
19
|
+
"getSuffixVisible",
|
|
20
|
+
"updateIconOffset",
|
|
21
|
+
"calcTextareaHeight",
|
|
22
|
+
"setNativeInputValue",
|
|
23
|
+
"calculateNodeStyling",
|
|
24
|
+
"handleCompositionEnd",
|
|
25
|
+
"handlePasswordVisible",
|
|
26
|
+
"handleCompositionStart",
|
|
27
|
+
"handleCompositionUpdate",
|
|
28
|
+
"addMemory",
|
|
29
|
+
"searchMemory",
|
|
30
|
+
"selectedMemory",
|
|
31
|
+
"storageData",
|
|
32
|
+
"isMemoryStorage",
|
|
33
|
+
"hasSelection",
|
|
34
|
+
"handleEnterDisplayOnlyContent",
|
|
35
|
+
"hiddenPassword",
|
|
36
|
+
"inputStyle",
|
|
37
|
+
"handleEnterTextarea",
|
|
38
|
+
"handleLeaveTextarea",
|
|
39
|
+
"handleTextareaMouseDown",
|
|
40
|
+
"handleTextareaMouseUp"
|
|
41
|
+
], re = ({
|
|
42
|
+
reactive: t,
|
|
43
|
+
computed: e,
|
|
44
|
+
mode: o,
|
|
45
|
+
props: a,
|
|
46
|
+
parent: l,
|
|
47
|
+
constants: d,
|
|
48
|
+
api: s,
|
|
49
|
+
vm: r,
|
|
50
|
+
designConfig: n
|
|
51
|
+
}) => {
|
|
52
|
+
const i = t({
|
|
53
|
+
mode: o,
|
|
54
|
+
maskSymbol: d.MASKSYMBOL,
|
|
55
|
+
focused: !1,
|
|
56
|
+
hovering: !1,
|
|
57
|
+
isComposing: !1,
|
|
58
|
+
passwordVisible: !1,
|
|
59
|
+
maskValueVisible: !1,
|
|
60
|
+
boxVisibility: !1,
|
|
61
|
+
textareaCalcStyle: {},
|
|
62
|
+
checkedLabel: "",
|
|
63
|
+
enteredTextarea: !1,
|
|
64
|
+
sheetvalue: a.modelValue,
|
|
65
|
+
inputSize: e(() => a.size || i.formItemSize || (l.tinyForm || {}).size),
|
|
66
|
+
inputSizeMf: e(() => a.size || i.formItemSize || (l.tinyForm || {}).size),
|
|
67
|
+
showClear: e(
|
|
68
|
+
() => {
|
|
69
|
+
var f;
|
|
70
|
+
return a.clearable && !i.inputDisabled && !a.readonly && i.nativeInputValue && (!((f = n == null ? void 0 : n.options) != null && f.isCloseIconHide) || i.focused || i.hovering);
|
|
71
|
+
}
|
|
72
|
+
),
|
|
73
|
+
textareaHeight: r.theme === "saas" ? "28px" : "30px",
|
|
74
|
+
upperLimit: e(() => l.$attrs.maxlength),
|
|
75
|
+
textLength: e(() => T(a.modelValue)),
|
|
76
|
+
inputExceed: e(() => i.isWordLimitVisible && i.textLength > i.upperLimit),
|
|
77
|
+
formItemSize: e(() => (l.formItem || {}).formItemSize),
|
|
78
|
+
validateIcon: e(() => d.VALIDATE_ICON[i.validateState]),
|
|
79
|
+
showWordLimit: e(() => a.showWordLimit && l.$attrs.maxlength),
|
|
80
|
+
inputDisabled: e(
|
|
81
|
+
() => a.disabled || (l.tinyForm || {}).disabled || i.isDisplayOnly || (l.tinyForm || {}).displayOnly
|
|
82
|
+
),
|
|
83
|
+
validateState: e(() => l.formItem ? l.formItem.validateState : ""),
|
|
84
|
+
inputStyle: e(() => s.inputStyle()),
|
|
85
|
+
textareaStyle: e(() => w(M({}, i.textareaCalcStyle), {
|
|
86
|
+
resize: a.resize,
|
|
87
|
+
textAlign: a.textAlign
|
|
88
|
+
})),
|
|
89
|
+
needStatusIcon: e(() => l.tinyForm ? l.tinyForm.statusIcon : !1),
|
|
90
|
+
showPwdVisible: e(
|
|
91
|
+
() => a.showPassword && !i.inputDisabled && !a.readonly && (!!i.nativeInputValue || i.focused)
|
|
92
|
+
),
|
|
93
|
+
nativeInputValue: e(
|
|
94
|
+
() => a.modelValue === null || a.modelValue === void 0 ? "" : String(a.modelValue)
|
|
95
|
+
),
|
|
96
|
+
tooltipConfig: e(() => l.tinyForm ? l.tinyForm.tooltipConfig : {}),
|
|
97
|
+
isWordLimitVisible: e(
|
|
98
|
+
() => (a.showWordLimit && l.$attrs.maxlength || a.counter) && (l.type === "text" || l.type === "textarea") && !i.inputDisabled && !a.readonly && !a.showPassword
|
|
99
|
+
),
|
|
100
|
+
isDisplayOnly: e(
|
|
101
|
+
() => (a.displayOnly || (l.tinyForm || {}).displayOnly) && ["text", "textarea", "password", "number"].includes(a.type)
|
|
102
|
+
),
|
|
103
|
+
displayOnlyTooltip: "",
|
|
104
|
+
showMoreBtn: !1,
|
|
105
|
+
showDisplayOnlyBox: !1,
|
|
106
|
+
timer: null,
|
|
107
|
+
hiddenPassword: e(() => s.hiddenPassword()),
|
|
108
|
+
displayedMaskValue: e(() => s.getDisplayedMaskValue()),
|
|
109
|
+
displayOnlyText: e(() => s.getDisplayOnlyText()),
|
|
110
|
+
isDragging: !1
|
|
111
|
+
});
|
|
112
|
+
return i;
|
|
113
|
+
}, he = ({
|
|
114
|
+
api: t,
|
|
115
|
+
state: e,
|
|
116
|
+
dispatch: o,
|
|
117
|
+
broadcast: a,
|
|
118
|
+
emit: l,
|
|
119
|
+
vm: d,
|
|
120
|
+
props: s,
|
|
121
|
+
parent: r,
|
|
122
|
+
nextTick: n
|
|
123
|
+
}) => {
|
|
124
|
+
Object.assign(t, {
|
|
125
|
+
state: e,
|
|
126
|
+
dispatch: o,
|
|
127
|
+
broadcast: a,
|
|
128
|
+
showBox: K(e),
|
|
129
|
+
clear: k(l),
|
|
130
|
+
getInput: j(d),
|
|
131
|
+
setShowMoreBtn: H({ state: e, vm: d }),
|
|
132
|
+
handleChange: $(l),
|
|
133
|
+
watchFormSelect: W({ emit: l, props: s, state: e }),
|
|
134
|
+
calcIconOffset: U({ vm: d, parent: r }),
|
|
135
|
+
getSuffixVisible: A({ parent: r, props: s, state: e }),
|
|
136
|
+
calculateNodeStyling: _(),
|
|
137
|
+
handleCompositionStart: P(e),
|
|
138
|
+
handleCompositionUpdate: E(e),
|
|
139
|
+
setInputDomValue: B({ state: e, props: s, nextTick: n, vm: d }),
|
|
140
|
+
getDisplayOnlyText: L({ parent: r, props: s, state: e }),
|
|
141
|
+
handleEnterTextarea: N({ api: t, state: e, props: s, nextTick: n }),
|
|
142
|
+
handleLeaveTextarea: F({ api: t, state: e, props: s, nextTick: n, vm: d }),
|
|
143
|
+
inputStyle: v({ props: s }),
|
|
144
|
+
handleTextareaMouseDown: C({ state: e }),
|
|
145
|
+
handleTextareaMouseUp: z({ state: e, api: t })
|
|
146
|
+
});
|
|
147
|
+
}, ye = ({
|
|
148
|
+
storages: t,
|
|
149
|
+
api: e,
|
|
150
|
+
componentName: o,
|
|
151
|
+
props: a,
|
|
152
|
+
emit: l,
|
|
153
|
+
eventName: d,
|
|
154
|
+
nextTick: s,
|
|
155
|
+
parent: r,
|
|
156
|
+
state: n,
|
|
157
|
+
vm: i,
|
|
158
|
+
mode: f,
|
|
159
|
+
constants: h
|
|
160
|
+
}) => {
|
|
161
|
+
const { storageData: m, isMemoryStorage: x, addMemory: y, searchMemory: I, selectedMemory: g } = t;
|
|
162
|
+
return Object.assign(e, {
|
|
163
|
+
addMemory: y,
|
|
164
|
+
storageData: m,
|
|
165
|
+
searchMemory: I,
|
|
166
|
+
selectedMemory: g,
|
|
167
|
+
isMemoryStorage: x,
|
|
168
|
+
blur: oe(e),
|
|
169
|
+
focus: ne(e),
|
|
170
|
+
select: ie(e),
|
|
171
|
+
handleBlur: te({
|
|
172
|
+
api: e,
|
|
173
|
+
componentName: o,
|
|
174
|
+
emit: l,
|
|
175
|
+
eventName: d.blur,
|
|
176
|
+
props: a,
|
|
177
|
+
state: n,
|
|
178
|
+
vm: i
|
|
179
|
+
}),
|
|
180
|
+
handleFocus: le({ api: e, emit: l, state: n }),
|
|
181
|
+
handleInput: ae({ api: e, emit: l, nextTick: s, state: n }),
|
|
182
|
+
resizeTextarea: ee({ api: e, parent: r, vm: i, state: n, props: a }),
|
|
183
|
+
updateIconOffset: p(e),
|
|
184
|
+
calcTextareaHeight: X({
|
|
185
|
+
api: e,
|
|
186
|
+
hiddenTextarea: null,
|
|
187
|
+
props: a,
|
|
188
|
+
state: n,
|
|
189
|
+
mode: f,
|
|
190
|
+
constants: h
|
|
191
|
+
}),
|
|
192
|
+
setNativeInputValue: R({ api: e, state: n }),
|
|
193
|
+
handleCompositionEnd: Q({ api: e, state: n }),
|
|
194
|
+
handlePasswordVisible: J({ api: e, nextTick: s, state: n }),
|
|
195
|
+
hasSelection: G(e),
|
|
196
|
+
handleEnterDisplayOnlyContent: q({ state: n, props: a }),
|
|
197
|
+
hiddenPassword: Z({ state: n, props: a }),
|
|
198
|
+
getDisplayedMaskValue: Y({ state: n })
|
|
199
|
+
});
|
|
200
|
+
}, fe = ({
|
|
201
|
+
watch: t,
|
|
202
|
+
state: e,
|
|
203
|
+
api: o,
|
|
204
|
+
props: a,
|
|
205
|
+
nextTick: l,
|
|
206
|
+
emit: d,
|
|
207
|
+
componentName: s,
|
|
208
|
+
eventName: r
|
|
209
|
+
}) => {
|
|
210
|
+
t(
|
|
211
|
+
() => a.modelValue,
|
|
212
|
+
(n) => {
|
|
213
|
+
e.mode === "mobile" && (e.sheetvalue = n, d("update:modelValue", n)), l(o.resizeTextarea), a.validateEvent && o.dispatch(s, r.change, [n]), a.type === "textarea" && a.popupMore && e.isDisplayOnly && o.setShowMoreBtn(), o.setInputDomValue();
|
|
214
|
+
}
|
|
215
|
+
), t(() => e.maskValueVisible, o.setInputDomValue), t(() => e.inputDisabled, o.setInputDomValue), t(
|
|
216
|
+
() => a.mask,
|
|
217
|
+
() => {
|
|
218
|
+
o.setInputDomValue("mask");
|
|
219
|
+
}
|
|
220
|
+
), t(
|
|
221
|
+
() => a.size,
|
|
222
|
+
() => l(o.resizeTextarea),
|
|
223
|
+
{ immediate: !0 }
|
|
224
|
+
), t(
|
|
225
|
+
() => e.nativeInputValue,
|
|
226
|
+
() => {
|
|
227
|
+
o.setNativeInputValue();
|
|
228
|
+
}
|
|
229
|
+
), t(
|
|
230
|
+
() => a.type,
|
|
231
|
+
() => {
|
|
232
|
+
l(() => {
|
|
233
|
+
o.setNativeInputValue(), o.resizeTextarea(), o.updateIconOffset();
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
), t(
|
|
237
|
+
() => e.isDisplayOnly,
|
|
238
|
+
() => {
|
|
239
|
+
l(() => {
|
|
240
|
+
o.setNativeInputValue(), o.resizeTextarea(), o.updateIconOffset();
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
), t(
|
|
244
|
+
() => e.sheetvalue,
|
|
245
|
+
(n) => o.watchFormSelect(n),
|
|
246
|
+
{ immediate: !0 }
|
|
247
|
+
);
|
|
248
|
+
}, Se = (t, { computed: e, onMounted: o, onBeforeUnmount: a, onUpdated: l, reactive: d, toRefs: s, watch: r, inject: n }, { vm: i, refs: f, parent: h, emit: m, constants: x, nextTick: y, broadcast: I, dispatch: g, mode: S, designConfig: D }) => {
|
|
249
|
+
const u = {}, V = x.COMPONENT_NAME.FormItem, b = { change: "form.change", blur: "form.blur" }, c = re({ reactive: d, computed: e, mode: S, props: t, parent: h, constants: x, api: u, vm: i, designConfig: D });
|
|
250
|
+
he({ api: u, state: c, dispatch: g, broadcast: I, emit: m, props: t, parent: h, vm: i, nextTick: y });
|
|
251
|
+
const O = se({ api: u, props: t, reactive: d, toRefs: s });
|
|
252
|
+
return h.tinyForm = h.tinyForm || n("form", null), ye({ api: u, storages: O, componentName: V, emit: m, eventName: b, props: t, state: c, nextTick: y, parent: h, vm: i, mode: S, constants: x }), fe({ watch: r, state: c, api: u, props: t, nextTick: y, emit: m, componentName: V, eventName: b }), o(() => {
|
|
253
|
+
u.setNativeInputValue(), u.resizeTextarea(), u.updateIconOffset(), u.setInputDomValue(), g("Select", "input-mounted", i.$el), g("Tooltip", "tooltip-update", i.$el), t.type === "textarea" && t.popupMore && c.isDisplayOnly && (u.setShowMoreBtn(!0), de(window, "resize", u.setShowMoreBtn)), i.$attrs.autofocus && u.focus();
|
|
254
|
+
}), a(() => {
|
|
255
|
+
t.type === "textarea" && t.popupMore && c.isDisplayOnly && ue(window, "resize", u.setShowMoreBtn);
|
|
256
|
+
}), l(() => {
|
|
257
|
+
y(u.updateIconOffset);
|
|
258
|
+
}), u;
|
|
259
|
+
};
|
|
260
|
+
export {
|
|
261
|
+
Ie as api,
|
|
262
|
+
Se as renderless
|
|
263
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { KEY_CODE as i } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const h = (t) => (t && t.preventDefault ? t.preventDefault() : window.event.returnValue = !1, !1), y = ({ emit: t, state: e }) => (r) => {
|
|
3
|
+
e.hoverValue = "", t("selected", r);
|
|
4
|
+
}, d = ({ emit: t, props: e, state: r }) => () => {
|
|
5
|
+
const l = window.event.keyCode, a = e.localstorageData.indexOf(r.hoverValue), o = e.localstorageData.length - 1;
|
|
6
|
+
if (l === i.ArrowUp && e.isMemoryStorage)
|
|
7
|
+
return a > 0 && a <= o ? r.hoverValue = e.localstorageData[a - 1] : r.hoverValue = e.localstorageData[o], !1;
|
|
8
|
+
if (l === i.ArrowDown && e.isMemoryStorage)
|
|
9
|
+
return a >= 0 && a < o ? r.hoverValue = e.localstorageData[a + 1] : r.hoverValue = e.localstorageData[0], !1;
|
|
10
|
+
l === i.NumpadEnter && e.isMemoryStorage && r.hoverValue && r.hoverValue.length > 0 && t("selected", r.hoverValue);
|
|
11
|
+
}, g = (t, e = 5) => {
|
|
12
|
+
const r = t.length;
|
|
13
|
+
let l = [], a = {};
|
|
14
|
+
for (let o = 0, n = 1; n <= e && !(o < 0 || o >= r || (a[t[o]] ? n = n - 1 : (a[t[o]] = !0, l.push(t[o])), n === r)); n++)
|
|
15
|
+
o++;
|
|
16
|
+
return l;
|
|
17
|
+
}, f = (t, e) => {
|
|
18
|
+
if (typeof t == "string")
|
|
19
|
+
try {
|
|
20
|
+
const r = JSON.parse(t);
|
|
21
|
+
return !!(typeof r == "object" && r && (!e || r.constructor === e));
|
|
22
|
+
} catch {
|
|
23
|
+
return !1;
|
|
24
|
+
}
|
|
25
|
+
}, u = (t, e, r = 5) => {
|
|
26
|
+
if (typeof e == "string") {
|
|
27
|
+
const l = localStorage.getItem(t), a = f(l, Array);
|
|
28
|
+
let o = "";
|
|
29
|
+
if (l && a) {
|
|
30
|
+
let n = JSON.parse(localStorage.getItem(t));
|
|
31
|
+
n.unshift(e), n = g(n, r), o = JSON.stringify(n);
|
|
32
|
+
} else l === null || l === e ? o = JSON.stringify([e]) : o = JSON.stringify([e, l]);
|
|
33
|
+
localStorage.setItem(t, o);
|
|
34
|
+
}
|
|
35
|
+
}, S = (t) => (e) => {
|
|
36
|
+
t.name && (e != null && e.trim()) && u(t.name, e, t.memorySpace);
|
|
37
|
+
}, D = ({ props: t, state: e }) => (r) => {
|
|
38
|
+
if (!t.name)
|
|
39
|
+
return;
|
|
40
|
+
const l = localStorage.getItem(t.name);
|
|
41
|
+
let a = [], o = !0;
|
|
42
|
+
if (f(l)) {
|
|
43
|
+
const n = JSON.parse(l);
|
|
44
|
+
if (!r)
|
|
45
|
+
a = JSON.parse(l);
|
|
46
|
+
else
|
|
47
|
+
for (let s = 0, c = n.length; s < c; s++)
|
|
48
|
+
n[s].includes(r) && a.push(n[s]);
|
|
49
|
+
a.length === 0 && (o = !1);
|
|
50
|
+
} else
|
|
51
|
+
l === null ? o = !1 : a.push(l);
|
|
52
|
+
e.storageData = a, e.isMemoryStorage = o;
|
|
53
|
+
}, w = ({ api: t, state: e }) => (r) => {
|
|
54
|
+
t.getInput().value = r, t.handleInput({ target: { value: r } }), t.handleChange({ target: { value: r } }), e.isMemoryStorage = !1;
|
|
55
|
+
};
|
|
56
|
+
export {
|
|
57
|
+
S as addMemory,
|
|
58
|
+
d as keydown,
|
|
59
|
+
h as mousedown,
|
|
60
|
+
D as searchMemory,
|
|
61
|
+
y as selectItem,
|
|
62
|
+
w as selectedMemory
|
|
63
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __spreadProps as s, __spreadValues as m } from "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { selectedMemory as d, searchMemory as y, addMemory as M } from "./index.js";
|
|
3
|
+
var c = ({ api: a, props: r, reactive: o, toRefs: t }) => {
|
|
4
|
+
const e = o({
|
|
5
|
+
storageData: [],
|
|
6
|
+
isMemoryStorage: !1
|
|
7
|
+
});
|
|
8
|
+
return s(m({}, t(e)), {
|
|
9
|
+
addMemory: M(r),
|
|
10
|
+
searchMemory: y({ props: r, state: e }),
|
|
11
|
+
selectedMemory: d({ api: a, state: e })
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
c as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { keydown as a, selectItem as c, mousedown as u } from "./index.js";
|
|
2
|
+
import { off as w, on as l } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
3
|
+
const k = ["state", "mousedown", "selectItem"], f = (t, { onUnmounted: s, reactive: r, watch: m }, { emit: n }) => {
|
|
4
|
+
const e = r({
|
|
5
|
+
hoverValue: ""
|
|
6
|
+
}), o = {
|
|
7
|
+
state: e,
|
|
8
|
+
mousedown: u,
|
|
9
|
+
selectItem: c({ emit: n, state: e }),
|
|
10
|
+
keydown: a({ emit: n, props: t, state: e })
|
|
11
|
+
};
|
|
12
|
+
return m(
|
|
13
|
+
() => t.isMemoryStorage,
|
|
14
|
+
(d) => !d && (e.hoverValue = ""),
|
|
15
|
+
{ immediate: !0 }
|
|
16
|
+
), s(() => {
|
|
17
|
+
e.hoverValue = "", w(document, "keydown", o.keydown);
|
|
18
|
+
}), l(document, "keydown", o.keydown), o;
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
k as api,
|
|
22
|
+
f as renderless
|
|
23
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { debounce as d, on as r, addClass as f, removeClass as a, off as c } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const m = ({ api: e, state: o, props: t }) => (n) => {
|
|
3
|
+
const s = n && n.type === "mouseenter" ? 200 : 0;
|
|
4
|
+
if (t.visible === "auto") {
|
|
5
|
+
const { clientWidth: u, scrollWidth: i } = o.referenceElm;
|
|
6
|
+
if (i <= u)
|
|
7
|
+
return;
|
|
8
|
+
}
|
|
9
|
+
e.setExpectedState(!0), e.handleShowPopper(s);
|
|
10
|
+
}, h = (e) => () => {
|
|
11
|
+
e.setExpectedState(!1), e.debounceClose();
|
|
12
|
+
}, b = ({ api: e, state: o }) => () => {
|
|
13
|
+
o.focusing = !0, e.show();
|
|
14
|
+
}, g = ({ api: e, state: o }) => () => {
|
|
15
|
+
o.focusing = !1, e.hide();
|
|
16
|
+
}, w = ({ api: e, state: o }) => () => {
|
|
17
|
+
o.focusing = !1, e.show();
|
|
18
|
+
}, y = ({ props: e, state: o }) => (t) => {
|
|
19
|
+
!o.expectedState || e.manual || (clearTimeout(o.timeout), o.timeout = window.setTimeout(() => {
|
|
20
|
+
o.showPopper = !0;
|
|
21
|
+
}, e.openDelay || t), e.hideAfter > 0 && (o.timeoutPending = window.setTimeout(() => {
|
|
22
|
+
o.showPopper = !1;
|
|
23
|
+
}, e.hideAfter)));
|
|
24
|
+
}, P = ({ api: e, props: o, state: t }) => () => {
|
|
25
|
+
o.enterable && t.expectedState || o.manual || (clearTimeout(t.timeout), t.timeoutPending && clearTimeout(t.timeoutPending), t.showPopper = !1, o.disabled && e.doDestroy());
|
|
26
|
+
}, E = ({ props: e, api: o, state: t, popperVmRef: n }) => (l) => {
|
|
27
|
+
if (e.manual)
|
|
28
|
+
return;
|
|
29
|
+
const s = t.referenceElm, u = n.popper;
|
|
30
|
+
!u || !s || u.contains(l.target) || s.contains(l.target) || t.showPopper && (o.setExpectedState(!1), o.debounceClose());
|
|
31
|
+
}, x = ({ state: e }) => (o) => {
|
|
32
|
+
e.expectedState === !1 && clearTimeout(e.timeoutPending), e.expectedState = o;
|
|
33
|
+
}, C = ({ state: e, api: o, vm: t }) => () => {
|
|
34
|
+
const n = e.referenceElm;
|
|
35
|
+
e.showPopper = !1, n && n.nodeType === 1 && (c(document, "click", o.handleDocumentClick), c(n, "mouseenter", o.show), c(n, "mouseleave", o.hide), c(n, "focus", o.focusHandler), c(n, "blur", o.handleBlur), c(n, "click", o.removeFocusing)), t.popperVM && (typeof t.popperVM.$destroy == "function" && t.popperVM.$destroy(), t.popperVM = null);
|
|
36
|
+
}, S = ({ api: e, props: o }) => d(o.closeDelay, () => {
|
|
37
|
+
e.handleClosePopper();
|
|
38
|
+
}), T = (e) => (o) => {
|
|
39
|
+
o ? f(e.referenceElm, "focusing") : a(e.referenceElm, "focusing");
|
|
40
|
+
}, $ = ({ slots: e, api: o }) => () => {
|
|
41
|
+
if (!e.default || !e.default().length) {
|
|
42
|
+
o.handleFocus();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
let t = e.default()[0];
|
|
46
|
+
t = t.elm || t.el, t && t.focus ? t.focus() : o.handleFocus();
|
|
47
|
+
}, D = ({ api: e, state: o, vm: t }) => (n) => {
|
|
48
|
+
let l = null;
|
|
49
|
+
t.$el.nodeType === 8 ? l = n : t.$el.nodeType === 1 && (l = t.$el), !(!l || l.nodeType === 8 || o.referenceElm) && (o.referenceElm = l, l.setAttribute("aria-describedby", o.tooltipId), l.setAttribute("tabindex", o.tabindex.toString()), r(document, "click", e.handleDocumentClick), r(l, "mouseenter", e.show), r(l, "mouseleave", e.hide), r(l, "focus", e.focusHandler), r(l, "blur", e.handleBlur), r(l, "click", e.removeFocusing));
|
|
50
|
+
}, k = ({ state: e, popperVmRef: o }) => (t) => {
|
|
51
|
+
for (let n of t)
|
|
52
|
+
n.type === "attributes" && n.attributeName === "x-placement" && (e.xPlacement = o.popper.getAttribute("x-placement") || "bottom");
|
|
53
|
+
}, F = ({ vm: e, nextTick: o, popperVmRef: t }) => (n) => {
|
|
54
|
+
o(() => e.bindEvent(n));
|
|
55
|
+
let l = e.popperVM;
|
|
56
|
+
e.$refs.popper ? t.popper = e.$refs.popper : t.popper = l.$el, o(() => {
|
|
57
|
+
e.modelValue && e.updatePopper();
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
D as bindEvent,
|
|
62
|
+
F as bindPopper,
|
|
63
|
+
S as debounceClose,
|
|
64
|
+
C as destroyed,
|
|
65
|
+
$ as focusHandler,
|
|
66
|
+
g as handleBlur,
|
|
67
|
+
P as handleClosePopper,
|
|
68
|
+
E as handleDocumentClick,
|
|
69
|
+
b as handleFocus,
|
|
70
|
+
y as handleShowPopper,
|
|
71
|
+
h as hide,
|
|
72
|
+
k as observeCallback,
|
|
73
|
+
w as removeFocusing,
|
|
74
|
+
x as setExpectedState,
|
|
75
|
+
m as show,
|
|
76
|
+
T as watchFocusing
|
|
77
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { observeCallback as y, handleDocumentClick as k, focusHandler as D, bindEvent as H, handleClosePopper as B, handleShowPopper as O, setExpectedState as $, debounceClose as M, handleFocus as V, handleBlur as j, removeFocusing as A, watchFocusing as I, bindPopper as J, destroyed as L, hide as R, show as W } from "./index.js";
|
|
2
|
+
import { guid as q } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
3
|
+
import { userPopper as z } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js";
|
|
4
|
+
const U = [
|
|
5
|
+
"state",
|
|
6
|
+
"bindEvent",
|
|
7
|
+
"hide",
|
|
8
|
+
"show",
|
|
9
|
+
"doDestroy",
|
|
10
|
+
"handleFocus",
|
|
11
|
+
"debounceClose",
|
|
12
|
+
"handleShowPopper",
|
|
13
|
+
"handleClosePopper",
|
|
14
|
+
"setExpectedState",
|
|
15
|
+
"updatePopper",
|
|
16
|
+
"focusHandler"
|
|
17
|
+
], G = ({ reactive: t, showPopper: a, popperElm: d, referenceElm: r, props: i, inject: p, popperJS: l, currentPlacement: c }) => t({
|
|
18
|
+
popperJS: l,
|
|
19
|
+
showPopper: a,
|
|
20
|
+
popperElm: d,
|
|
21
|
+
referenceElm: r,
|
|
22
|
+
currentPlacement: c,
|
|
23
|
+
timeout: null,
|
|
24
|
+
focusing: !1,
|
|
25
|
+
expectedState: void 0,
|
|
26
|
+
tooltipId: q("tiny-tooltip-", 4),
|
|
27
|
+
tabindex: i.tabindex,
|
|
28
|
+
xPlacement: "bottom",
|
|
29
|
+
showContent: p("showContent", null),
|
|
30
|
+
tipsMaxWidth: p("tips-max-width", null)
|
|
31
|
+
}), X = (t, {
|
|
32
|
+
watch: a,
|
|
33
|
+
toRefs: d,
|
|
34
|
+
reactive: r,
|
|
35
|
+
onBeforeUnmount: i,
|
|
36
|
+
onDeactivated: p,
|
|
37
|
+
onMounted: l,
|
|
38
|
+
onUnmounted: c,
|
|
39
|
+
inject: f
|
|
40
|
+
}, { vm: n, emit: m, slots: b, nextTick: u, parent: w }) => {
|
|
41
|
+
const e = {}, s = {}, P = { emit: m, props: t, nextTick: u, toRefs: d, reactive: r, parent: w.$parent, vm: n, popperVmRef: s };
|
|
42
|
+
Object.assign(P, { slots: b, onBeforeUnmount: i, onDeactivated: p, watch: a });
|
|
43
|
+
const { showPopper: C, updatePopper: g, popperElm: v, referenceElm: S, doDestroy: x, popperJS: E, currentPlacement: F } = z(
|
|
44
|
+
P
|
|
45
|
+
), o = G({
|
|
46
|
+
reactive: r,
|
|
47
|
+
showPopper: C,
|
|
48
|
+
popperElm: v,
|
|
49
|
+
referenceElm: S,
|
|
50
|
+
props: t,
|
|
51
|
+
inject: f,
|
|
52
|
+
popperJS: E,
|
|
53
|
+
currentPlacement: F
|
|
54
|
+
});
|
|
55
|
+
return Object.assign(e, {
|
|
56
|
+
state: o,
|
|
57
|
+
doDestroy: x,
|
|
58
|
+
updatePopper: g,
|
|
59
|
+
show: W({ api: e, state: o, props: t }),
|
|
60
|
+
hide: R(e),
|
|
61
|
+
destroyed: L({ state: o, api: e, vm: n }),
|
|
62
|
+
bindPopper: J({ vm: n, nextTick: u, popperVmRef: s }),
|
|
63
|
+
watchFocusing: I(o),
|
|
64
|
+
removeFocusing: A({ api: e, state: o }),
|
|
65
|
+
handleBlur: j({ api: e, state: o }),
|
|
66
|
+
handleFocus: V({ api: e, state: o }),
|
|
67
|
+
debounceClose: M({ api: e, props: t }),
|
|
68
|
+
setExpectedState: $({ state: o }),
|
|
69
|
+
handleShowPopper: O({ props: t, state: o }),
|
|
70
|
+
handleClosePopper: B({ api: e, props: t, state: o }),
|
|
71
|
+
bindEvent: H({ api: e, state: o, vm: n }),
|
|
72
|
+
focusHandler: D({ slots: b, api: e }),
|
|
73
|
+
handleDocumentClick: k({ props: t, api: e, state: o, popperVmRef: s }),
|
|
74
|
+
observeCallback: y({ state: o, popperVmRef: s })
|
|
75
|
+
}), a(() => o.focusing, e.watchFocusing), a(
|
|
76
|
+
() => t.modelValue,
|
|
77
|
+
(h) => u(() => t.manual && (o.showPopper = h))
|
|
78
|
+
), l(() => {
|
|
79
|
+
if (e.bindPopper(), t.genArrowByHtml) {
|
|
80
|
+
const h = { attributes: !0, childList: !1, subtree: !1 };
|
|
81
|
+
e.observer = new MutationObserver(e.observeCallback), e.observer.observe(s.popper, h);
|
|
82
|
+
}
|
|
83
|
+
}), n.$on("tooltip-update", e.bindPopper), c(() => {
|
|
84
|
+
e.destroyed(), e.observer && e.observer.disconnect(), n.$off("tooltip-update");
|
|
85
|
+
}), e;
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
U as api,
|
|
89
|
+
X as renderless
|
|
90
|
+
};
|