@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,13 @@
|
|
|
1
|
+
import { xss as n } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const f = ({ emit: l, props: e, state: r, designConfig: t }) => (c) => {
|
|
3
|
+
var m, s;
|
|
4
|
+
const T = n.filterUrl(e.href), o = 1e3;
|
|
5
|
+
let i = o;
|
|
6
|
+
e.resetTime !== o ? i = e.resetTime : i = (s = (m = t == null ? void 0 : t.props) == null ? void 0 : m.resetTime) != null ? s : e.resetTime, T ? location.href = T : e.nativeType === "button" && i > 0 && (r.disabled = !0, r.timer = window.setTimeout(() => {
|
|
7
|
+
r.disabled = !1;
|
|
8
|
+
}, i)), l("click", c);
|
|
9
|
+
}, u = (l) => () => clearTimeout(l.timer);
|
|
10
|
+
export {
|
|
11
|
+
u as clearTimer,
|
|
12
|
+
f as handleClick
|
|
13
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { clearTimer as f, handleClick as h } from "./index.js";
|
|
2
|
+
const v = ["state", "handleClick"], y = (l, { computed: d, onBeforeUnmount: o, reactive: s, watch: u, inject: m }, { emit: c, parent: a, designConfig: r }) => {
|
|
3
|
+
a.tinyForm = a.tinyForm || m("form", null);
|
|
4
|
+
const i = s({
|
|
5
|
+
timer: 0,
|
|
6
|
+
disabled: l.disabled,
|
|
7
|
+
plain: d(() => l.plain || (a.buttonGroup || {}).plain),
|
|
8
|
+
round: d(() => {
|
|
9
|
+
var e, t, b;
|
|
10
|
+
return (b = (t = l.round) != null ? t : (e = r == null ? void 0 : r.props) == null ? void 0 : e.round) != null ? b : !1;
|
|
11
|
+
}),
|
|
12
|
+
formDisabled: d(() => (a.tinyForm || {}).disabled),
|
|
13
|
+
buttonDisabled: d(
|
|
14
|
+
() => l.disabled || i.disabled || (a.buttonGroup || {}).disabled || i.formDisabled
|
|
15
|
+
)
|
|
16
|
+
});
|
|
17
|
+
u(
|
|
18
|
+
() => l.disabled,
|
|
19
|
+
(e) => {
|
|
20
|
+
i.disabled = e;
|
|
21
|
+
},
|
|
22
|
+
{ immediate: !0 }
|
|
23
|
+
);
|
|
24
|
+
const n = {
|
|
25
|
+
state: i,
|
|
26
|
+
clearTimer: f(i),
|
|
27
|
+
handleClick: h({ emit: c, props: l, state: i, designConfig: r })
|
|
28
|
+
};
|
|
29
|
+
return o(n.clearTimer), n;
|
|
30
|
+
};
|
|
31
|
+
export {
|
|
32
|
+
v as api,
|
|
33
|
+
y as renderless
|
|
34
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var a = Object.defineProperty, _ = Object.defineProperties, s = Object.getOwnPropertyDescriptors, o = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable, p = (t, r, e) => r in t ? a(t, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[r] = e, O = (t, r) => {
|
|
2
|
+
for (var e in r || (r = {}))
|
|
3
|
+
n.call(r, e) && p(t, e, r[e]);
|
|
4
|
+
if (o)
|
|
5
|
+
for (var e of o(r))
|
|
6
|
+
f.call(r, e) && p(t, e, r[e]);
|
|
7
|
+
return t;
|
|
8
|
+
}, P = (t, r) => _(t, s(r));
|
|
9
|
+
export {
|
|
10
|
+
P as __spreadProps,
|
|
11
|
+
O as __spreadValues
|
|
12
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { __spreadValues as y } from "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { getDomNode as C, addClass as _, removeClass as w, on as F, off as N, emitEvent as O } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
3
|
+
const E = ({ constants: e, props: o }) => () => o.rightSlide ? e.DIALOG_SLIDER_RIGHT : e.DIALOG_FADE, g = (e) => isNaN(Number(e)) ? e : e + "px", M = ({ props: e, state: o, designConfig: l }) => () => {
|
|
4
|
+
var i;
|
|
5
|
+
let t = {}, { width: r, top: s, rightSlide: d, maxHeight: a } = e;
|
|
6
|
+
return s === void 0 && (s = d ? "0" : (i = l == null ? void 0 : l.state) != null && i.top ? "" : "15vh"), r = g(r), s = g(s), a = g(a), o.isFull || (t.width = r, t.top = o.top || s, t.maxHeight = a, d ? (t.right = 0, t.height = "calc(100vh - " + t.top + ")") : t.left = o.left || "calc((100vw - " + r + ") / 2)"), o.dragStyle && (t = y(y({}, t), o.dragStyle), o.isFull && (t = { left: "0px", top: "0px" })), e.customStyle && (t = Object.assign(t, e.customStyle)), t;
|
|
7
|
+
}, P = ({
|
|
8
|
+
api: e,
|
|
9
|
+
constants: o,
|
|
10
|
+
emit: l,
|
|
11
|
+
nextTick: i,
|
|
12
|
+
parent: t,
|
|
13
|
+
props: r,
|
|
14
|
+
vm: s,
|
|
15
|
+
state: d
|
|
16
|
+
}) => (a) => {
|
|
17
|
+
const u = t.$el;
|
|
18
|
+
if (r.lockScroll && (a ? e.showScrollbar() : e.hideScrollbar()), d.move = !1, d.isFull = r.fullscreen, l("update:visible", a), a)
|
|
19
|
+
d.closed = !1, l("open"), F(u, "scroll", e.updatePopper), i(() => {
|
|
20
|
+
s.$refs.dialog.scrollTop = 0;
|
|
21
|
+
}), r.appendToBody && document.body.appendChild(u);
|
|
22
|
+
else if (N(u, "scroll", e.updatePopper), d.closed || (d.emitter.emit("boxclose", r.isFormReset), l("close")), r.destroyOnClose && i(() => d.key++), r.rightSlide && d.current !== "default") {
|
|
23
|
+
const m = `[data-tag=${o.DIALOG_BOX_DATA_TAG}]`;
|
|
24
|
+
r.rightSlide && (u.querySelector(m).style.left = "");
|
|
25
|
+
}
|
|
26
|
+
}, X = ({ api: e, parent: o, props: l }) => () => {
|
|
27
|
+
if (l.lockScroll && l.visible && e.showScrollbar(), l.visible) {
|
|
28
|
+
const i = o.$el;
|
|
29
|
+
e.open(), l.appendToBody && document.body.appendChild(i);
|
|
30
|
+
}
|
|
31
|
+
}, L = ({ api: e, parent: o, props: l }) => () => {
|
|
32
|
+
const i = o.$el;
|
|
33
|
+
e.hideScrollbar(), l.appendToBody && i && i.parentNode && i.parentNode.removeChild(i);
|
|
34
|
+
}, T = ({ state: e }) => (o) => {
|
|
35
|
+
e.mouseDownWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(o.target.className) && o.type === "mousedown" && (e.mouseDownWrapperFlag = !0);
|
|
36
|
+
}, B = ({ state: e }) => (o) => {
|
|
37
|
+
e.mouseUpWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(o.target.className) && o.type === "mouseup" && (e.mouseUpWrapperFlag = !0);
|
|
38
|
+
}, Y = ({ api: e, props: o, state: l }) => () => {
|
|
39
|
+
o.closeOnClickModal && l.mouseDownWrapperFlag && l.mouseUpWrapperFlag && e.handleClose("mask");
|
|
40
|
+
}, G = ({
|
|
41
|
+
api: e,
|
|
42
|
+
constants: o,
|
|
43
|
+
emit: l,
|
|
44
|
+
parent: i,
|
|
45
|
+
props: t
|
|
46
|
+
}) => (r = "close") => {
|
|
47
|
+
if (typeof t.beforeClose == "function" && t.beforeClose(r) === !1)
|
|
48
|
+
return;
|
|
49
|
+
const s = i.$el;
|
|
50
|
+
if (t.rightSlide) {
|
|
51
|
+
const d = s.querySelector(o.DIALOG_BOX_CLASS) || s;
|
|
52
|
+
d.style.left = "";
|
|
53
|
+
}
|
|
54
|
+
O(l, "before-close", e.hide) && e.hide(r);
|
|
55
|
+
}, H = ({ api: e, emit: o, state: l, props: i }) => (t) => {
|
|
56
|
+
t !== !1 && (l.emitter.emit("boxclose", i.isFormReset), o("update:visible", !1), o("change", !1), o("close", t), l.closed = !0, e.hideScrollbar());
|
|
57
|
+
}, I = ({ api: e, emit: o }) => () => {
|
|
58
|
+
o("confirm"), e.handleClose("confirm");
|
|
59
|
+
}, R = ({ api: e, emit: o }) => () => {
|
|
60
|
+
o("cancel"), e.handleClose("cancel");
|
|
61
|
+
}, U = ({ api: e, constants: o }) => () => {
|
|
62
|
+
e.broadcast(o.SELECT_DROPDOWN, "updatePopper"), e.broadcast(o.DROPDOWN_MENU, "updatePopper");
|
|
63
|
+
}, k = (e) => () => {
|
|
64
|
+
e("opened");
|
|
65
|
+
}, j = (e) => () => {
|
|
66
|
+
e("closed");
|
|
67
|
+
}, x = ({
|
|
68
|
+
vm: e,
|
|
69
|
+
componentList: o
|
|
70
|
+
}) => {
|
|
71
|
+
const l = e.$children;
|
|
72
|
+
return !l || l.length === 0 ? [] : (l.forEach((i) => {
|
|
73
|
+
i.$options.componentName === "Select" && o.push(i), x({ vm: i, componentList: o });
|
|
74
|
+
}), o);
|
|
75
|
+
}, $ = (e) => {
|
|
76
|
+
x({ vm: e, componentList: [] }).forEach((o) => {
|
|
77
|
+
o.state.visible = !1;
|
|
78
|
+
});
|
|
79
|
+
}, q = ({
|
|
80
|
+
parent: e,
|
|
81
|
+
props: o,
|
|
82
|
+
state: l,
|
|
83
|
+
emit: i,
|
|
84
|
+
vm: t
|
|
85
|
+
}) => (r) => {
|
|
86
|
+
if (!o.draggable || l.isFull)
|
|
87
|
+
return;
|
|
88
|
+
let s = t.$refs.dialog;
|
|
89
|
+
r.preventDefault();
|
|
90
|
+
let d = document.onmousemove, a = document.onmouseup, u = r.clientX - s.offsetLeft, m = r.clientY - s.offsetTop, { visibleHeight: b, visibleWidth: S } = C();
|
|
91
|
+
document.onmousemove = (f) => {
|
|
92
|
+
f.preventDefault(), l.move || (i("drag-start", f), $(e), l.move = !0);
|
|
93
|
+
let D = s.offsetWidth, v = s.offsetHeight, c, n;
|
|
94
|
+
if (o.dragOutsideWindow) {
|
|
95
|
+
let p = S - 10, h = b - 10;
|
|
96
|
+
c = f.clientX - u, n = f.clientY - m, c = f.clientX < 0 ? -u : c > p ? p : c, n = f.clientY < 0 ? -m : n > h ? h : n;
|
|
97
|
+
} else {
|
|
98
|
+
let p = Math.max(S - D, 0), h = Math.max(b - v, 0);
|
|
99
|
+
c = f.clientX - u, n = f.clientY - m, c = c < 0 ? 0 : c > p ? p : c, n = n < 0 ? 0 : n > h ? h : n;
|
|
100
|
+
}
|
|
101
|
+
l.isFull || (l.dragStyle = { left: `${c}px`, top: `${n}px` }), l.left = `${c}px`, l.top = `${n}px`, l.emitter.emit("boxdrag"), i("drag-move", f);
|
|
102
|
+
}, document.onmouseup = () => {
|
|
103
|
+
document.onmousemove = d, document.onmouseup = a, o.draggable && l.move && i("drag-end", r), l.move = !1;
|
|
104
|
+
};
|
|
105
|
+
}, V = (e) => () => {
|
|
106
|
+
_(document.body, e);
|
|
107
|
+
}, z = (e) => () => {
|
|
108
|
+
w(document.body, e);
|
|
109
|
+
}, Z = ({ state: e, emit: o, nextTick: l, vm: i }) => (t) => {
|
|
110
|
+
e.isFull = t, l(() => {
|
|
111
|
+
o("resize", { fullscreen: t, dialog: i.$refs.dialog });
|
|
112
|
+
});
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
k as afterEnter,
|
|
116
|
+
j as afterLeave,
|
|
117
|
+
g as computedAddUnit,
|
|
118
|
+
E as computedAnimationName,
|
|
119
|
+
M as computedStyle,
|
|
120
|
+
R as handleCancel,
|
|
121
|
+
G as handleClose,
|
|
122
|
+
I as handleConfirm,
|
|
123
|
+
q as handleDrag,
|
|
124
|
+
Y as handleWrapperClick,
|
|
125
|
+
H as hide,
|
|
126
|
+
z as hideScrollbar,
|
|
127
|
+
X as mounted,
|
|
128
|
+
V as showScrollbar,
|
|
129
|
+
Z as toggleFullScreen,
|
|
130
|
+
L as unMounted,
|
|
131
|
+
U as updatePopper,
|
|
132
|
+
T as useMouseEventDown,
|
|
133
|
+
B as useMouseEventUp,
|
|
134
|
+
P as watchVisible
|
|
135
|
+
};
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { __spreadValues as M } from "../chunk-G2ADBYYC.js";
|
|
2
|
+
import { toggleFullScreen as y, handleDrag as L, showScrollbar as v, hideScrollbar as w, afterLeave as D, afterEnter as A, computedAnimationName as F, unMounted as N, mounted as P, computedStyle as V, watchVisible as W, handleClose as _, hide as O, useMouseEventUp as k, useMouseEventDown as U, handleWrapperClick as j, updatePopper as x, handleConfirm as K, handleCancel as q } from "./index.js";
|
|
3
|
+
import "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
4
|
+
import { usePopup as z } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js";
|
|
5
|
+
const Z = [
|
|
6
|
+
"afterEnter",
|
|
7
|
+
"afterLeave",
|
|
8
|
+
"handleClose",
|
|
9
|
+
"handleWrapperClick",
|
|
10
|
+
"useMouseEventDown",
|
|
11
|
+
"useMouseEventUp",
|
|
12
|
+
"handleCancel",
|
|
13
|
+
"handleConfirm",
|
|
14
|
+
"handleDrag",
|
|
15
|
+
"toggleFullScreen",
|
|
16
|
+
"state"
|
|
17
|
+
], G = ({
|
|
18
|
+
reactive: e,
|
|
19
|
+
computed: l,
|
|
20
|
+
api: n,
|
|
21
|
+
emitter: o,
|
|
22
|
+
props: a,
|
|
23
|
+
useBreakpoint: u
|
|
24
|
+
}) => {
|
|
25
|
+
const { current: r } = u();
|
|
26
|
+
return e({
|
|
27
|
+
emitter: o(),
|
|
28
|
+
key: 0,
|
|
29
|
+
x: null,
|
|
30
|
+
y: null,
|
|
31
|
+
top: null,
|
|
32
|
+
left: null,
|
|
33
|
+
max: null,
|
|
34
|
+
move: !1,
|
|
35
|
+
closed: !1,
|
|
36
|
+
dragable: !1,
|
|
37
|
+
isFull: a.fullscreen,
|
|
38
|
+
style: l(() => n.computedStyle()),
|
|
39
|
+
animationName: l(() => n.computedAnimationName()),
|
|
40
|
+
current: r,
|
|
41
|
+
dragStyle: null
|
|
42
|
+
});
|
|
43
|
+
}, H = ({ reactive: e, state: l, toRefs: n, usePopups: o }) => {
|
|
44
|
+
const { opened: a, rendered: u } = o;
|
|
45
|
+
return e(M({
|
|
46
|
+
opened: a,
|
|
47
|
+
rendered: u
|
|
48
|
+
}, n(l)));
|
|
49
|
+
}, I = ({
|
|
50
|
+
emit: e,
|
|
51
|
+
api: l,
|
|
52
|
+
state: n,
|
|
53
|
+
parent: o,
|
|
54
|
+
props: a,
|
|
55
|
+
lockScrollClass: u,
|
|
56
|
+
constants: r,
|
|
57
|
+
usePopups: i,
|
|
58
|
+
nextTick: c,
|
|
59
|
+
broadcast: m,
|
|
60
|
+
designConfig: f,
|
|
61
|
+
vm: d
|
|
62
|
+
}) => {
|
|
63
|
+
const { open: s, close: S } = i;
|
|
64
|
+
Object.assign(l, {
|
|
65
|
+
state: n,
|
|
66
|
+
open: s,
|
|
67
|
+
close: S,
|
|
68
|
+
broadcast: m,
|
|
69
|
+
handleCancel: q({ api: l, emit: e }),
|
|
70
|
+
handleConfirm: K({ api: l, emit: e }),
|
|
71
|
+
updatePopper: x({ api: l, constants: r }),
|
|
72
|
+
handleWrapperClick: j({ api: l, props: a, state: n }),
|
|
73
|
+
useMouseEventDown: U({ state: n }),
|
|
74
|
+
useMouseEventUp: k({ state: n }),
|
|
75
|
+
hide: O({ api: l, emit: e, state: n, props: a }),
|
|
76
|
+
handleClose: _({ api: l, constants: r, emit: e, parent: o, props: a }),
|
|
77
|
+
watchVisible: W({
|
|
78
|
+
api: l,
|
|
79
|
+
constants: r,
|
|
80
|
+
emit: e,
|
|
81
|
+
nextTick: c,
|
|
82
|
+
parent: o,
|
|
83
|
+
props: a,
|
|
84
|
+
vm: d,
|
|
85
|
+
state: n
|
|
86
|
+
}),
|
|
87
|
+
computedStyle: V({ state: n, props: a, designConfig: f }),
|
|
88
|
+
mounted: P({ api: l, parent: o, props: a }),
|
|
89
|
+
unMounted: N({ api: l, parent: o, props: a }),
|
|
90
|
+
computedAnimationName: F({ constants: r, props: a }),
|
|
91
|
+
afterEnter: A(e),
|
|
92
|
+
afterLeave: D(e),
|
|
93
|
+
hideScrollbar: w(u),
|
|
94
|
+
showScrollbar: v(u),
|
|
95
|
+
handleDrag: L({ parent: o, props: a, state: n, emit: e, vm: d }),
|
|
96
|
+
// tiny 新增
|
|
97
|
+
toggleFullScreen: y({ state: n, emit: e, nextTick: c, vm: d })
|
|
98
|
+
});
|
|
99
|
+
}, J = ({ watch: e, state: l, api: n, props: o }) => {
|
|
100
|
+
e(() => o.visible, n.watchVisible), e(
|
|
101
|
+
() => o.fullscreen,
|
|
102
|
+
(a) => {
|
|
103
|
+
l.isFull = a;
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
}, $ = (e, { computed: l, onBeforeUnmount: n, onMounted: o, toRefs: a, reactive: u, watch: r }, {
|
|
107
|
+
vm: i,
|
|
108
|
+
emitter: c,
|
|
109
|
+
parent: m,
|
|
110
|
+
emit: f,
|
|
111
|
+
constants: d,
|
|
112
|
+
nextTick: s,
|
|
113
|
+
mode: S,
|
|
114
|
+
broadcast: C,
|
|
115
|
+
designConfig: p,
|
|
116
|
+
useBreakpoint: b
|
|
117
|
+
}) => {
|
|
118
|
+
const t = {}, E = d.SCROLL_LOCK_CLASS(S);
|
|
119
|
+
let h = G({ reactive: u, computed: l, api: t, emitter: c, props: e, useBreakpoint: b });
|
|
120
|
+
const g = z({
|
|
121
|
+
api: t,
|
|
122
|
+
nextTick: s,
|
|
123
|
+
onBeforeUnmount: n,
|
|
124
|
+
onMounted: o,
|
|
125
|
+
props: e,
|
|
126
|
+
reactive: u,
|
|
127
|
+
toRefs: a,
|
|
128
|
+
vm: i,
|
|
129
|
+
watch: r
|
|
130
|
+
});
|
|
131
|
+
return I({
|
|
132
|
+
api: t,
|
|
133
|
+
state: h,
|
|
134
|
+
parent: m,
|
|
135
|
+
props: e,
|
|
136
|
+
emit: f,
|
|
137
|
+
constants: d,
|
|
138
|
+
usePopups: g,
|
|
139
|
+
lockScrollClass: E,
|
|
140
|
+
nextTick: s,
|
|
141
|
+
vm: i,
|
|
142
|
+
broadcast: C,
|
|
143
|
+
designConfig: p
|
|
144
|
+
}), h = H({ reactive: u, state: h, toRefs: a, usePopups: g }), J({ watch: r, state: h, api: t, props: e }), o(t.mounted), n(t.unMounted), t;
|
|
145
|
+
};
|
|
146
|
+
export {
|
|
147
|
+
Z as api,
|
|
148
|
+
$ as renderless
|
|
149
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { omitText as y, isServer as b } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const V = `
|
|
3
|
+
height:0 !important;visibility:hidden !important;overflow:hidden !important;
|
|
4
|
+
position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !important
|
|
5
|
+
`, S = [
|
|
6
|
+
"width",
|
|
7
|
+
"line-height",
|
|
8
|
+
"padding-top",
|
|
9
|
+
"padding-bottom",
|
|
10
|
+
"padding-left",
|
|
11
|
+
"padding-right",
|
|
12
|
+
"border-width",
|
|
13
|
+
"box-sizing",
|
|
14
|
+
"letter-spacing",
|
|
15
|
+
"font-family",
|
|
16
|
+
"font-weight",
|
|
17
|
+
"font-size",
|
|
18
|
+
"text-rendering",
|
|
19
|
+
"text-transform",
|
|
20
|
+
"text-indent"
|
|
21
|
+
], f = {
|
|
22
|
+
BoxSizing: "box-sizing",
|
|
23
|
+
BorderBox: "border-box",
|
|
24
|
+
ContentBox: "content-box",
|
|
25
|
+
PaddingTop: "padding-top",
|
|
26
|
+
PaddingBottom: "padding-bottom",
|
|
27
|
+
BorderTopWidth: "border-top-width",
|
|
28
|
+
BorderBottomWidth: "border-bottom-width"
|
|
29
|
+
}, w = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), C = (e) => () => {
|
|
30
|
+
if (e.inputDisabled)
|
|
31
|
+
return !1;
|
|
32
|
+
e.boxVisibility = !0;
|
|
33
|
+
}, I = ({ props: e }) => () => ({
|
|
34
|
+
textAlign: e.textAlign
|
|
35
|
+
}), B = () => (e) => {
|
|
36
|
+
const t = window.getComputedStyle(e), n = t.getPropertyValue(f.BoxSizing), o = parseFloat(t.getPropertyValue(f.PaddingBottom)) + parseFloat(t.getPropertyValue(f.PaddingTop)), i = parseFloat(t.getPropertyValue(f.BorderBottomWidth)) + parseFloat(t.getPropertyValue(f.BorderTopWidth));
|
|
37
|
+
return { contextStyle: S.map((r) => `${r}:${t.getPropertyValue(r)}`).join(";"), paddingSize: o, borderSize: i, boxSizing: n };
|
|
38
|
+
}, H = ({
|
|
39
|
+
api: e,
|
|
40
|
+
hiddenTextarea: t,
|
|
41
|
+
props: n,
|
|
42
|
+
state: o,
|
|
43
|
+
mode: i,
|
|
44
|
+
constants: l
|
|
45
|
+
}) => (r, a = 1, s = null) => {
|
|
46
|
+
if (!r)
|
|
47
|
+
return {
|
|
48
|
+
minHeight: "",
|
|
49
|
+
height: ""
|
|
50
|
+
};
|
|
51
|
+
t || (t = document.createElement("textarea"), document.body.appendChild(t));
|
|
52
|
+
const { paddingSize: d, borderSize: h, boxSizing: g, contextStyle: m } = e.calculateNodeStyling(r);
|
|
53
|
+
t.setAttribute("style", `${m};${V}`), t.value = r.value || r.placeholder || "";
|
|
54
|
+
let c = t.scrollHeight;
|
|
55
|
+
const p = {};
|
|
56
|
+
i === "mobile" && (c = Math.max(t.scrollHeight, l.TEXTAREA_HEIGHT_MOBILE)), g === f.BorderBox ? c = c + h * 2 + d : g === f.ContentBox && (c = c - d), t.value = "";
|
|
57
|
+
const x = t.scrollHeight - d;
|
|
58
|
+
if (a !== null) {
|
|
59
|
+
let u = x * a;
|
|
60
|
+
g === f.BorderBox && (u = u + d + h), n.size && (u = n.size === "mini" ? u * 0.67 : n.size === "small" ? u : u * 1.17), n.height && (u = n.height), o.isDisplayOnly ? p.minHeight = "0px" : (c = Math.max(u, c), p.minHeight = `${u}px`);
|
|
61
|
+
}
|
|
62
|
+
if (s !== null) {
|
|
63
|
+
let u = x * s;
|
|
64
|
+
g === f.BorderBox && (u += h + d), c = Math.min(u, c);
|
|
65
|
+
}
|
|
66
|
+
return p.height = `${c}px`, t.parentNode && t.parentNode.removeChild(t), t = null, p;
|
|
67
|
+
}, T = (e) => () => e.$refs.input || e.$refs.textarea, $ = (e) => () => e.getInput().blur(), O = (e) => () => e.getInput().focus(), E = (e) => () => e.getInput().select(), D = ({
|
|
68
|
+
api: e,
|
|
69
|
+
componentName: t,
|
|
70
|
+
eventName: n,
|
|
71
|
+
emit: o,
|
|
72
|
+
props: i,
|
|
73
|
+
state: l,
|
|
74
|
+
vm: r
|
|
75
|
+
}) => (a) => {
|
|
76
|
+
l.focused = !1, o("blur", a), e.isMemoryStorage.value = !1, i.validateEvent && e.dispatch(t, n, [i.modelValue]), i.hoverExpand && (r.$refs.textarea.scrollTop = 0);
|
|
77
|
+
}, M = ({ api: e, emit: t, state: n }) => (o) => {
|
|
78
|
+
n.focused = !0, t("focus", o), e.searchMemory(o.target.value);
|
|
79
|
+
}, z = ({ api: e, emit: t, nextTick: n, state: o }) => (i) => {
|
|
80
|
+
o.isComposing || i.target.value !== o.nativeInputValue && (t("update:modelValue", i.target.value), t("input", i), e.searchMemory(i.target.value), n(e.setNativeInputValue));
|
|
81
|
+
}, k = (e) => (t) => e("change", t.target.value), P = ({ api: e, parent: t, vm: n, state: o, props: i }) => () => {
|
|
82
|
+
if (b)
|
|
83
|
+
return;
|
|
84
|
+
const { autosize: l, type: r } = t;
|
|
85
|
+
if (r !== "textarea" || !n.$refs.textarea)
|
|
86
|
+
return;
|
|
87
|
+
if (i.hoverExpand && !o.enteredTextarea) {
|
|
88
|
+
o.textareaCalcStyle = {
|
|
89
|
+
minHeight: o.textareaHeight,
|
|
90
|
+
height: o.textareaHeight
|
|
91
|
+
};
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
if (!l || o.isDisplayOnly) {
|
|
95
|
+
o.textareaCalcStyle = {
|
|
96
|
+
minHeight: e.calcTextareaHeight(n.$refs.textarea).minHeight
|
|
97
|
+
};
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
const a = l.minRows, s = l.maxRows;
|
|
101
|
+
o.textareaCalcStyle = e.calcTextareaHeight(n.$refs.textarea, a, s);
|
|
102
|
+
}, W = ({ api: e, state: t }) => () => {
|
|
103
|
+
const n = e.getInput();
|
|
104
|
+
n && n.value !== t.nativeInputValue && (n.value = t.nativeInputValue);
|
|
105
|
+
}, L = (e) => () => e.isComposing = !0, N = (e) => (t) => {
|
|
106
|
+
const n = t.target.value, o = n[n.length - 1] || "";
|
|
107
|
+
e.isComposing = !w(o);
|
|
108
|
+
}, F = ({ api: e, state: t }) => (n) => {
|
|
109
|
+
t.isComposing && (t.isComposing = !1, e.handleInput(n));
|
|
110
|
+
}, A = ({ vm: e, parent: t }) => (n) => {
|
|
111
|
+
const o = e.$refs[n] ? [e.$refs[n]] : [];
|
|
112
|
+
if (!o.length)
|
|
113
|
+
return;
|
|
114
|
+
let i = null;
|
|
115
|
+
for (let a = 0, s = o.length; a < s; a++)
|
|
116
|
+
if (o[a].parentNode === t.$el) {
|
|
117
|
+
i = o[a];
|
|
118
|
+
break;
|
|
119
|
+
}
|
|
120
|
+
if (!i)
|
|
121
|
+
return;
|
|
122
|
+
const r = { suffix: "append", prefix: "prepend" }[n];
|
|
123
|
+
if (t.$slots[r]) {
|
|
124
|
+
const a = e.$refs[r];
|
|
125
|
+
let s;
|
|
126
|
+
n === "suffix" ? s = `translateX(-${a.offsetWidth}px) translateY(-50%)` : n === "prefix" && (s = `translate(${a.offsetWidth}px, -50%)`), i.style.transform = s;
|
|
127
|
+
} else
|
|
128
|
+
i.removeAttribute("style");
|
|
129
|
+
}, R = (e) => () => {
|
|
130
|
+
e.calcIconOffset("prefix"), e.calcIconOffset("suffix");
|
|
131
|
+
}, Y = (e) => () => {
|
|
132
|
+
e("update:modelValue", ""), e("change", ""), e("clear");
|
|
133
|
+
}, _ = ({ api: e, nextTick: t, state: n }) => () => {
|
|
134
|
+
n.passwordVisible = !n.passwordVisible, t(e.focus);
|
|
135
|
+
}, X = ({ parent: e, props: t, state: n }) => () => e.$slots.suffix || t.suffixIcon || n.showClear || t.showPassword || n.isWordLimitVisible || n.validateState && n.needStatusIcon || t.mask && n.inputDisabled, G = (e) => typeof e == "number" ? String(e).length : (e || "").length, U = ({ emit: e, props: t, state: n }) => (o) => {
|
|
136
|
+
if (t.isSelect) {
|
|
137
|
+
e("update:modelValue", o), e("change", o);
|
|
138
|
+
const i = t.selectMenu.length && t.selectMenu.filter((l) => l.id === o).shift();
|
|
139
|
+
n.checkedLabel = i ? i.label : "";
|
|
140
|
+
}
|
|
141
|
+
}, j = (e) => () => {
|
|
142
|
+
const t = e.getInput();
|
|
143
|
+
return t && t.selectionStart !== t.selectionEnd;
|
|
144
|
+
}, q = ({ state: e, props: t }) => (n, o) => {
|
|
145
|
+
if (o === "textarea" && t.popupMore)
|
|
146
|
+
return;
|
|
147
|
+
const i = o === "textarea" ? n.target.querySelector(".text-box") : n.target;
|
|
148
|
+
if (e.displayOnlyTooltip = "", !i)
|
|
149
|
+
return;
|
|
150
|
+
if (i.scrollWidth > i.offsetWidth || o === "textarea" && i.scrollHeight > i.offsetHeight)
|
|
151
|
+
e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue;
|
|
152
|
+
else {
|
|
153
|
+
let r = !1;
|
|
154
|
+
if (t.mask && e.maskValueVisible) {
|
|
155
|
+
const a = i.textContent, s = window.getComputedStyle(i).font, d = i.getBoundingClientRect(), h = 31, g = (a == null ? void 0 : a.trim()) || "";
|
|
156
|
+
r = y(g, s, d.width - h).o;
|
|
157
|
+
}
|
|
158
|
+
r && (e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue);
|
|
159
|
+
}
|
|
160
|
+
}, K = ({ state: e, props: t }) => () => {
|
|
161
|
+
let n = "";
|
|
162
|
+
const o = t.displayOnlyContent || e.nativeInputValue;
|
|
163
|
+
for (let i = 0; i < o.length; i++)
|
|
164
|
+
n += "*";
|
|
165
|
+
return n;
|
|
166
|
+
}, J = ({ state: e }) => () => e.maskValueVisible ? e.nativeInputValue : e.nativeInputValue && e.maskSymbol, Q = ({ state: e, props: t, nextTick: n, vm: o }) => (i) => {
|
|
167
|
+
n(() => {
|
|
168
|
+
const l = o.$refs.input;
|
|
169
|
+
t.mask && e.nativeInputValue && l && (l.value = e.maskValueVisible || !e.inputDisabled ? e.nativeInputValue : e.maskSymbol), i === "mask" && !t.mask && l && (l.value = e.nativeInputValue);
|
|
170
|
+
});
|
|
171
|
+
}, Z = ({ api: e, state: t, props: n, nextTick: o }) => () => {
|
|
172
|
+
t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !0, o(e.resizeTextarea));
|
|
173
|
+
}, ee = ({ api: e, state: t, props: n, nextTick: o, vm: i }) => () => {
|
|
174
|
+
t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !1, o(() => {
|
|
175
|
+
e.resizeTextarea(), i.$refs.textarea.scrollTop = 0;
|
|
176
|
+
}));
|
|
177
|
+
}, te = ({ parent: e, state: t, props: n }) => () => {
|
|
178
|
+
const o = n.displayOnlyContent || t.nativeInputValue;
|
|
179
|
+
return (typeof n.showEmptyValue == "boolean" ? n.showEmptyValue : (e.tinyForm || {}).showEmptyValue) ? o : o || "-";
|
|
180
|
+
}, ne = ({ state: e, vm: t }) => (n) => {
|
|
181
|
+
e.timer && clearTimeout(e.timer), e.timer = setTimeout(() => {
|
|
182
|
+
const o = t.$refs && t.$refs.textBox;
|
|
183
|
+
if (o)
|
|
184
|
+
if (n && o.offsetHeight === 0) {
|
|
185
|
+
let i = o.cloneNode(!0);
|
|
186
|
+
i.style.visibility = "hidden", i.style.position = "absolute", i.style.left = "-9999px", document.body.appendChild(i), i.scrollHeight > i.offsetHeight && (e.showMoreBtn = !0), document.body.removeChild(i), i = null;
|
|
187
|
+
} else o.scrollHeight > o.offsetHeight ? e.showMoreBtn = !0 : e.showMoreBtn = !1;
|
|
188
|
+
}, 100);
|
|
189
|
+
}, oe = ({ state: e }) => () => e.isDragging = !0, ie = ({ state: e, api: t }) => (n) => {
|
|
190
|
+
e.isDragging = !1, n && t.handleLeaveTextarea();
|
|
191
|
+
};
|
|
192
|
+
export {
|
|
193
|
+
$ as blur,
|
|
194
|
+
A as calcIconOffset,
|
|
195
|
+
H as calcTextareaHeight,
|
|
196
|
+
B as calculateNodeStyling,
|
|
197
|
+
Y as clear,
|
|
198
|
+
O as focus,
|
|
199
|
+
te as getDisplayOnlyText,
|
|
200
|
+
J as getDisplayedMaskValue,
|
|
201
|
+
T as getInput,
|
|
202
|
+
X as getSuffixVisible,
|
|
203
|
+
D as handleBlur,
|
|
204
|
+
k as handleChange,
|
|
205
|
+
F as handleCompositionEnd,
|
|
206
|
+
L as handleCompositionStart,
|
|
207
|
+
N as handleCompositionUpdate,
|
|
208
|
+
q as handleEnterDisplayOnlyContent,
|
|
209
|
+
Z as handleEnterTextarea,
|
|
210
|
+
M as handleFocus,
|
|
211
|
+
z as handleInput,
|
|
212
|
+
ee as handleLeaveTextarea,
|
|
213
|
+
_ as handlePasswordVisible,
|
|
214
|
+
oe as handleTextareaMouseDown,
|
|
215
|
+
ie as handleTextareaMouseUp,
|
|
216
|
+
j as hasSelection,
|
|
217
|
+
K as hiddenPassword,
|
|
218
|
+
I as inputStyle,
|
|
219
|
+
P as resizeTextarea,
|
|
220
|
+
E as select,
|
|
221
|
+
Q as setInputDomValue,
|
|
222
|
+
W as setNativeInputValue,
|
|
223
|
+
ne as setShowMoreBtn,
|
|
224
|
+
C as showBox,
|
|
225
|
+
G as textLength,
|
|
226
|
+
R as updateIconOffset,
|
|
227
|
+
U as watchFormSelect
|
|
228
|
+
};
|