@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,198 @@
|
|
|
1
|
+
import { defineComponent as f, $setup as i, $prefix as a, $props as d } from "../../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
|
|
2
|
+
import u from "./pc.js";
|
|
3
|
+
function r() {
|
|
4
|
+
return r = Object.assign ? Object.assign.bind() : function(e) {
|
|
5
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
6
|
+
var n = arguments[t];
|
|
7
|
+
for (var o in n) ({}).hasOwnProperty.call(n, o) && (e[o] = n[o]);
|
|
8
|
+
}
|
|
9
|
+
return e;
|
|
10
|
+
}, r.apply(null, arguments);
|
|
11
|
+
}
|
|
12
|
+
var s = function(t) {
|
|
13
|
+
var n, o = typeof process == "object" ? (n = process.env) == null ? void 0 : n.TINY_MODE : null;
|
|
14
|
+
return (o || t) === "pc" ? u : (o || t) === "mobile-first" ? u : u;
|
|
15
|
+
}, p = {
|
|
16
|
+
DIALOG_SLIDER_RIGHT: "dialog-slideRight",
|
|
17
|
+
DIALOG_FADE: "dialog-fade",
|
|
18
|
+
SELECT_DROPDOWN: a + "SelectDropdown",
|
|
19
|
+
DROPDOWN_MENU: a + "DropdownMenu",
|
|
20
|
+
DIALOG_BOX_CLASS: "div.tiny-dialog-box",
|
|
21
|
+
PC_SCROLL_LOCK_CLASS: "dialog-box__scroll-lock",
|
|
22
|
+
MOBILE_SCROLL_LOCK_CLASS: "mobile-dialog-box__scroll-lock",
|
|
23
|
+
DIALOG_BOX_DATA_TAG: "tiny-dialog-box",
|
|
24
|
+
Mode: "pc",
|
|
25
|
+
SCROLL_LOCK_CLASS: function(t) {
|
|
26
|
+
return t === this.Mode ? this.PC_SCROLL_LOCK_CLASS : this.MOBILE_SCROLL_LOCK_CLASS;
|
|
27
|
+
}
|
|
28
|
+
}, c = r({}, d, {
|
|
29
|
+
_constants: {
|
|
30
|
+
type: Object,
|
|
31
|
+
default: function() {
|
|
32
|
+
return p;
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
appendToBody: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: function() {
|
|
38
|
+
return !1;
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
beforeClose: Function,
|
|
42
|
+
center: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: function() {
|
|
45
|
+
return !1;
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
closeOnClickModal: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: function() {
|
|
51
|
+
return !0;
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
closeOnPressEscape: {
|
|
55
|
+
type: Boolean,
|
|
56
|
+
default: function() {
|
|
57
|
+
return !0;
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
destroyOnClose: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: function() {
|
|
63
|
+
return !1;
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
dialogClass: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: function() {
|
|
69
|
+
return "";
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
draggable: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: function() {
|
|
75
|
+
return !1;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
dragOutsideWindow: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: function() {
|
|
81
|
+
return !1;
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
fullscreen: {
|
|
85
|
+
type: Boolean,
|
|
86
|
+
default: function() {
|
|
87
|
+
return !1;
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
isFormReset: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: function() {
|
|
93
|
+
return !0;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
lockScroll: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: function() {
|
|
99
|
+
return !0;
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
modal: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: function() {
|
|
105
|
+
return !0;
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
modalAppendToBody: {
|
|
109
|
+
type: Boolean,
|
|
110
|
+
default: function() {
|
|
111
|
+
return !0;
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
resize: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: function() {
|
|
117
|
+
return !1;
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
rightSlide: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: function() {
|
|
123
|
+
return !1;
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
showClose: {
|
|
127
|
+
type: Boolean,
|
|
128
|
+
default: function() {
|
|
129
|
+
return !0;
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
showHeader: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: function() {
|
|
135
|
+
return !0;
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
title: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: function() {
|
|
141
|
+
return "";
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
top: String,
|
|
145
|
+
visible: {
|
|
146
|
+
type: Boolean,
|
|
147
|
+
default: function() {
|
|
148
|
+
return !1;
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
width: {
|
|
152
|
+
type: String,
|
|
153
|
+
default: function() {
|
|
154
|
+
return "500px";
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
maxHeight: {
|
|
158
|
+
type: String,
|
|
159
|
+
default: function() {
|
|
160
|
+
return "";
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
dialogTransition: {
|
|
164
|
+
type: String,
|
|
165
|
+
default: ""
|
|
166
|
+
},
|
|
167
|
+
noAnimation: {
|
|
168
|
+
type: Boolean,
|
|
169
|
+
default: !1
|
|
170
|
+
},
|
|
171
|
+
customStyle: {
|
|
172
|
+
type: Object,
|
|
173
|
+
default: function() {
|
|
174
|
+
return {};
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}), l = f({
|
|
178
|
+
name: a + "DialogBox",
|
|
179
|
+
model: {
|
|
180
|
+
prop: "visible",
|
|
181
|
+
event: "update:visible"
|
|
182
|
+
},
|
|
183
|
+
props: c,
|
|
184
|
+
setup: function(t, n) {
|
|
185
|
+
return i({
|
|
186
|
+
props: t,
|
|
187
|
+
context: n,
|
|
188
|
+
template: s
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
}), _ = "3.undefined";
|
|
192
|
+
l.install = function(e) {
|
|
193
|
+
e.component(l.name, l);
|
|
194
|
+
};
|
|
195
|
+
l.version = _;
|
|
196
|
+
export {
|
|
197
|
+
l as default
|
|
198
|
+
};
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import { renderless as A, api as S } from "../../../../../@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/vue.js";
|
|
2
|
+
import { defineComponent as z, setup as $, props as E } from "../../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
|
|
3
|
+
import M from "../../../../../@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js";
|
|
4
|
+
import F from "../../../../../@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js";
|
|
5
|
+
import I from "../../../../../@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/minscreen.js";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { resolveComponent as g, createBlock as O, openBlock as t, Transition as b, withCtx as c, withDirectives as C, createElementVNode as l, withModifiers as T, normalizeClass as h, createVNode as d, createCommentVNode as i, createElementBlock as a, normalizeStyle as D, renderSlot as m, toDisplayString as B, vShow as k } from "vue";
|
|
8
|
+
function L(e, o) {
|
|
9
|
+
var n = typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
10
|
+
if (n) return (n = n.call(e)).next.bind(n);
|
|
11
|
+
if (Array.isArray(e) || (n = H(e)) || o) {
|
|
12
|
+
n && (e = n);
|
|
13
|
+
var r = 0;
|
|
14
|
+
return function() {
|
|
15
|
+
return r >= e.length ? { done: !0 } : { done: !1, value: e[r++] };
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
20
|
+
}
|
|
21
|
+
function H(e, o) {
|
|
22
|
+
if (e) {
|
|
23
|
+
if (typeof e == "string") return w(e, o);
|
|
24
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
25
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? w(e, o) : void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function w(e, o) {
|
|
29
|
+
(o == null || o > e.length) && (o = e.length);
|
|
30
|
+
for (var n = 0, r = Array(o); n < o; n++) r[n] = e[n];
|
|
31
|
+
return r;
|
|
32
|
+
}
|
|
33
|
+
var N = function(o, n) {
|
|
34
|
+
for (var r = o.__vccOpts || o, y = L(n), u; !(u = y()).done; ) {
|
|
35
|
+
var s = u.value, p = s[0], f = s[1];
|
|
36
|
+
r[p] = f;
|
|
37
|
+
}
|
|
38
|
+
return r;
|
|
39
|
+
}, R = z({
|
|
40
|
+
components: {
|
|
41
|
+
IconClose: M(),
|
|
42
|
+
IconFullscreen: F(),
|
|
43
|
+
IconMinscreen: I()
|
|
44
|
+
},
|
|
45
|
+
emits: [
|
|
46
|
+
"update:visible",
|
|
47
|
+
"change",
|
|
48
|
+
"before-close",
|
|
49
|
+
"open",
|
|
50
|
+
"close",
|
|
51
|
+
"opened",
|
|
52
|
+
"confirm",
|
|
53
|
+
"cancel",
|
|
54
|
+
"closed",
|
|
55
|
+
"drag-start",
|
|
56
|
+
"drag-move",
|
|
57
|
+
"drag-end",
|
|
58
|
+
// tiny 新增
|
|
59
|
+
"resize"
|
|
60
|
+
],
|
|
61
|
+
props: [].concat(E, ["resize", "isFormReset", "visible", "title", "modal", "modalAppendToBody", "appendToBody", "lockScroll", "closeOnClickModal", "closeOnPressEscape", "showClose", "width", "fullscreen", "top", "center", "draggable", "dragOutsideWindow", "showHeader", "rightSlide", "destroyOnClose", "dialogClass", "beforeClose", "maxHeight", "dialogTransition", "customStyle", "noAnimation"]),
|
|
62
|
+
model: {
|
|
63
|
+
prop: "visible",
|
|
64
|
+
event: "update:visible"
|
|
65
|
+
},
|
|
66
|
+
provide: function() {
|
|
67
|
+
return {
|
|
68
|
+
dialog: this
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
setup: function(o, n) {
|
|
72
|
+
return $({
|
|
73
|
+
props: o,
|
|
74
|
+
context: n,
|
|
75
|
+
renderless: A,
|
|
76
|
+
api: S
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}), U = ["data-dialog-box-draggable"], V = {
|
|
80
|
+
class: "tiny-dialog-box__title"
|
|
81
|
+
}, W = {
|
|
82
|
+
class: "tiny-dialog-box__btn-tools"
|
|
83
|
+
}, j = {
|
|
84
|
+
class: "tiny-dialog-box__body"
|
|
85
|
+
}, P = {
|
|
86
|
+
key: 1,
|
|
87
|
+
ref: "footer",
|
|
88
|
+
class: "tiny-dialog-box__footer"
|
|
89
|
+
};
|
|
90
|
+
function _(e, o, n, r, y, u) {
|
|
91
|
+
var s = g("icon-fullscreen"), p = g("icon-minscreen"), f = g("icon-close");
|
|
92
|
+
return t(), O(b, {
|
|
93
|
+
duration: e.noAnimation ? 0 : void 0,
|
|
94
|
+
name: e.state.animationName,
|
|
95
|
+
onAfterEnter: e.afterEnter,
|
|
96
|
+
onAfterLeave: e.afterLeave,
|
|
97
|
+
persisted: ""
|
|
98
|
+
}, {
|
|
99
|
+
default: c(function() {
|
|
100
|
+
return [C(l(
|
|
101
|
+
"div",
|
|
102
|
+
{
|
|
103
|
+
class: h(["tiny-dialog-box__wrapper", e.dialogClass]),
|
|
104
|
+
onClick: o[4] || (o[4] = T(function() {
|
|
105
|
+
return e.handleWrapperClick && e.handleWrapperClick.apply(e, arguments);
|
|
106
|
+
}, ["self"])),
|
|
107
|
+
onMouseup: o[5] || (o[5] = function() {
|
|
108
|
+
return e.useMouseEventUp && e.useMouseEventUp.apply(e, arguments);
|
|
109
|
+
}),
|
|
110
|
+
onMousedown: o[6] || (o[6] = function() {
|
|
111
|
+
return e.useMouseEventDown && e.useMouseEventDown.apply(e, arguments);
|
|
112
|
+
})
|
|
113
|
+
},
|
|
114
|
+
[d(b, {
|
|
115
|
+
name: e.dialogTransition
|
|
116
|
+
}, {
|
|
117
|
+
default: c(function() {
|
|
118
|
+
return [!e.destroyOnClose || e.visible ? C((t(), a("div", {
|
|
119
|
+
ref: "dialog",
|
|
120
|
+
class: h([[{
|
|
121
|
+
"is-fullscreen": e.state.isFull,
|
|
122
|
+
"is-center": e.center,
|
|
123
|
+
"is-right-slide": e.rightSlide
|
|
124
|
+
}], "tiny-dialog-box"]),
|
|
125
|
+
style: D(e.state.style),
|
|
126
|
+
"data-tag": "tiny-dialog-box",
|
|
127
|
+
"data-dialog-box-draggable": e.draggable,
|
|
128
|
+
key: e.state.key
|
|
129
|
+
}, [e.showHeader ? (t(), a(
|
|
130
|
+
"div",
|
|
131
|
+
{
|
|
132
|
+
key: 0,
|
|
133
|
+
ref: "header",
|
|
134
|
+
class: "tiny-dialog-box__header",
|
|
135
|
+
onMousedown: o[3] || (o[3] = function() {
|
|
136
|
+
return e.handleDrag && e.handleDrag.apply(e, arguments);
|
|
137
|
+
})
|
|
138
|
+
},
|
|
139
|
+
[m(e.$slots, "title", {}, function() {
|
|
140
|
+
return [l(
|
|
141
|
+
"span",
|
|
142
|
+
V,
|
|
143
|
+
B(e.title),
|
|
144
|
+
1
|
|
145
|
+
/* TEXT */
|
|
146
|
+
)];
|
|
147
|
+
}), l("div", W, [e.resize && !e.state.isFull ? (t(), a("button", {
|
|
148
|
+
key: 0,
|
|
149
|
+
type: "button",
|
|
150
|
+
class: "tiny-dialog-box__headerbtn",
|
|
151
|
+
"aria-label": "Resize",
|
|
152
|
+
onClick: o[0] || (o[0] = function(v) {
|
|
153
|
+
return e.toggleFullScreen(!0);
|
|
154
|
+
})
|
|
155
|
+
}, [d(s, {
|
|
156
|
+
class: "tiny-svg-size tiny-dialog-box__resize"
|
|
157
|
+
})])) : i("v-if", !0), e.resize && e.state.isFull ? (t(), a("button", {
|
|
158
|
+
key: 1,
|
|
159
|
+
type: "button",
|
|
160
|
+
class: "tiny-dialog-box__headerbtn",
|
|
161
|
+
"aria-label": "Resize",
|
|
162
|
+
onClick: o[1] || (o[1] = function(v) {
|
|
163
|
+
return e.toggleFullScreen(!1);
|
|
164
|
+
})
|
|
165
|
+
}, [d(p, {
|
|
166
|
+
class: "tiny-svg-size tiny-dialog-box__resize"
|
|
167
|
+
})])) : i("v-if", !0), e.showClose ? (t(), a("button", {
|
|
168
|
+
key: 2,
|
|
169
|
+
type: "button",
|
|
170
|
+
class: "tiny-dialog-box__headerbtn",
|
|
171
|
+
"aria-label": "Close",
|
|
172
|
+
onClick: o[2] || (o[2] = function(v) {
|
|
173
|
+
return e.handleClose("close", v);
|
|
174
|
+
})
|
|
175
|
+
}, [d(f, {
|
|
176
|
+
class: "tiny-svg-size tiny-dialog-box__close"
|
|
177
|
+
})])) : i("v-if", !0)])],
|
|
178
|
+
544
|
|
179
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
180
|
+
)) : i("v-if", !0), l("div", j, [m(e.$slots, "default")]), e.slots.footer ? (t(), a(
|
|
181
|
+
"div",
|
|
182
|
+
P,
|
|
183
|
+
[m(e.$slots, "footer", {
|
|
184
|
+
beforeClose: e.beforeClose
|
|
185
|
+
})],
|
|
186
|
+
512
|
|
187
|
+
/* NEED_PATCH */
|
|
188
|
+
)) : i("v-if", !0)], 14, U)), [[k, e.visible]]) : i("v-if", !0)];
|
|
189
|
+
}),
|
|
190
|
+
_: 3
|
|
191
|
+
/* FORWARDED */
|
|
192
|
+
}, 8, ["name"])],
|
|
193
|
+
34
|
|
194
|
+
/* CLASS, NEED_HYDRATION */
|
|
195
|
+
), [[k, e.visible]])];
|
|
196
|
+
}),
|
|
197
|
+
_: 3
|
|
198
|
+
/* FORWARDED */
|
|
199
|
+
}, 8, ["duration", "name", "onAfterEnter", "onAfterLeave"]);
|
|
200
|
+
}
|
|
201
|
+
var Z = /* @__PURE__ */ N(R, [["render", _]]);
|
|
202
|
+
export {
|
|
203
|
+
Z as default
|
|
204
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "../../../../@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js";
|
|
2
|
+
import { isServer as h, on as g } from "../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
3
|
+
import * as _ from "vue";
|
|
4
|
+
_.ref("");
|
|
5
|
+
var d = [], r = "@@clickoutsideContext", c, E = 0;
|
|
6
|
+
h || (g(document, "mousedown", function(a) {
|
|
7
|
+
c = a, d.filter(function(e) {
|
|
8
|
+
return e[r].mousedownTrigger;
|
|
9
|
+
}).forEach(function(e) {
|
|
10
|
+
return e[r].documentHandler(a, c);
|
|
11
|
+
});
|
|
12
|
+
}), g(document, "mouseup", function(a) {
|
|
13
|
+
d.filter(function(e) {
|
|
14
|
+
return !e[r].mousedownTrigger;
|
|
15
|
+
}).forEach(function(e) {
|
|
16
|
+
var o;
|
|
17
|
+
return e[r].documentHandler(a, (o = e[r]) != null && o.mouseupTrigger ? a : c);
|
|
18
|
+
}), c = null;
|
|
19
|
+
}));
|
|
20
|
+
var v = function(e, o, n) {
|
|
21
|
+
return function(t, i) {
|
|
22
|
+
var m, s;
|
|
23
|
+
t === void 0 && (t = {}), i === void 0 && (i = {});
|
|
24
|
+
var u = n.context.popperElm || n.context.state && n.context.state.popperElm;
|
|
25
|
+
!((m = t) != null && m.target) || !((s = i) != null && s.target) || e.contains(t.target) || e.contains(i.target) || e === t.target || u && (u.contains(t.target) || u.contains(i.target)) || (o.expression && e[r].methodName && n.context[e[r].methodName] ? n.context[e[r].methodName]() : e[r].bindingFn && e[r].bindingFn());
|
|
26
|
+
};
|
|
27
|
+
}, N = {
|
|
28
|
+
bind: function(e, o, n) {
|
|
29
|
+
d.push(e);
|
|
30
|
+
var t = E++, i = o.modifiers, m = o.expression, s = o.value, u = i || {}, f = u.mousedown, p = f === void 0 ? !1 : f, l = u.mouseup, x = l === void 0 ? !1 : l;
|
|
31
|
+
e[r] = {
|
|
32
|
+
id: t,
|
|
33
|
+
documentHandler: v(e, o, n),
|
|
34
|
+
methodName: m,
|
|
35
|
+
bindingFn: s,
|
|
36
|
+
mousedownTrigger: p,
|
|
37
|
+
mouseupTrigger: x
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
update: function(e, o, n) {
|
|
41
|
+
var t = o.modifiers, i = o.expression, m = o.value, s = t || {}, u = s.mousedown, f = u === void 0 ? !1 : u, p = s.mouseup, l = p === void 0 ? !1 : p;
|
|
42
|
+
e[r].documentHandler = v(e, o, n), e[r].methodName = i, e[r].bindingFn = m, e[r].mousedownTrigger = f, e[r].mouseupTrigger = l;
|
|
43
|
+
},
|
|
44
|
+
unbind: function(e) {
|
|
45
|
+
if (e.nodeType === Node.ELEMENT_NODE) {
|
|
46
|
+
for (var o = d.length, n = 0; n < o; n++)
|
|
47
|
+
if (d[n][r].id === e[r].id) {
|
|
48
|
+
d.splice(n, 1);
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
d.length === 0 && c && (c = null), delete e[r];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
N as Clickoutside
|
|
57
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const i = ({ onMounted: n, onActivated: o, nextTick: c }) => (t) => {
|
|
3
|
+
let e;
|
|
4
|
+
n(() => {
|
|
5
|
+
t(), c(() => e = !0);
|
|
6
|
+
}), o(() => e && t());
|
|
7
|
+
};
|
|
8
|
+
export {
|
|
9
|
+
i as onMountedOrActivated
|
|
10
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const c = ({ getCurrentInstance: n, isVue2: t, nextTick: o, onUnmounted: s }) => () => {
|
|
2
|
+
const e = n().proxy;
|
|
3
|
+
t || Object.defineProperty(e, "$scopedSlots", { configurable: !0, value: null }), Object.defineProperty(e, "instanceSlots", {
|
|
4
|
+
configurable: !0,
|
|
5
|
+
get: () => e.$scopedSlots || e.$slots
|
|
6
|
+
}), s(() => {
|
|
7
|
+
o(() => {
|
|
8
|
+
t || delete e.$scopedSlots, delete e.instanceSlots;
|
|
9
|
+
});
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
c as useInstanceSlots
|
|
14
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { noop as A } from "../../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
import { onMountedOrActivated as P } from "./useEventListener.js";
|
|
3
|
+
const D = ({
|
|
4
|
+
computed: d,
|
|
5
|
+
getCurrentInstance: i,
|
|
6
|
+
inject: r,
|
|
7
|
+
markRaw: u,
|
|
8
|
+
nextTick: h,
|
|
9
|
+
onMounted: I,
|
|
10
|
+
onActivated: w,
|
|
11
|
+
onUnmounted: y,
|
|
12
|
+
provide: C,
|
|
13
|
+
reactive: K,
|
|
14
|
+
toRef: O
|
|
15
|
+
}) => ({ relationKey: p, relationContainer: x, onChange: k, childrenKey: o, delivery: f } = {}) => {
|
|
16
|
+
if (!p)
|
|
17
|
+
throw new Error("[TINY Error]<relationKey> must exist.");
|
|
18
|
+
const a = i(), n = K({ children: [], indexInParent: -1 }), m = r(p, null);
|
|
19
|
+
let c = [];
|
|
20
|
+
if (m) {
|
|
21
|
+
const { link: t, unlink: e, callbacks: l, childrenKey: s, delivery: v } = m;
|
|
22
|
+
c = l, o = o || s || "instanceChildren", f = v, n.indexInParent = t(a), y(() => e(a));
|
|
23
|
+
} else {
|
|
24
|
+
o = o || "instanceChildren";
|
|
25
|
+
const t = P({ onMounted: I, onActivated: w, nextTick: h }), e = k ? () => h(k) : A;
|
|
26
|
+
let l;
|
|
27
|
+
h(() => {
|
|
28
|
+
const s = typeof x == "function" ? x() : x;
|
|
29
|
+
s && (l = new MutationObserver((v, M) => {
|
|
30
|
+
const b = [];
|
|
31
|
+
g(s.childNodes, b), c.forEach((j) => j(b, v, M)), e();
|
|
32
|
+
}), l.observe(s, { attributes: !0, childList: !0, subtree: !0 }));
|
|
33
|
+
}), t(() => e()), y(() => {
|
|
34
|
+
l && (l.disconnect(), l = null), c = null;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
const N = (t) => {
|
|
38
|
+
const e = t.proxy;
|
|
39
|
+
return n.children.push(u(e)), d(() => n.children.indexOf(e));
|
|
40
|
+
}, E = (t) => {
|
|
41
|
+
const e = n.children.indexOf(t.proxy);
|
|
42
|
+
e > -1 && n.children.splice(e, 1);
|
|
43
|
+
};
|
|
44
|
+
return c.push((t) => R(n.children, t)), C(p, { link: N, unlink: E, callbacks: c, childrenKey: o, delivery: f }), Object.defineProperty(a.proxy, o, { configurable: !0, get: () => n.children }), y(() => delete a.proxy[o]), { children: O(n, "children"), index: O(n, "indexInParent"), delivery: f };
|
|
45
|
+
}, g = (d, i) => {
|
|
46
|
+
d.length && d.forEach((r) => {
|
|
47
|
+
i.push(r), r.childNodes && g(r.childNodes, i);
|
|
48
|
+
});
|
|
49
|
+
}, R = (d, i) => {
|
|
50
|
+
d.sort((r, u) => i.indexOf(r.$el) - i.indexOf(u.$el));
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
D as useRelation
|
|
54
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { off as A, PopupManager as B, isDisplayNone as x, isServer as $, PopperJS as N, on as I } from "../../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
const v = (n) => n.stopPropagation(), P = ({ state: n, props: a, vm: t, slots: l }) => {
|
|
3
|
+
let s = n.referenceElm || a.reference || t.$refs.reference && t.$refs.reference.$el || t.$refs.reference;
|
|
4
|
+
return !s && l.reference && l.reference()[0] && (n.referenceElm = l.reference()[0].elm || l.reference()[0].el, s = n.referenceElm), s;
|
|
5
|
+
}, O = (n) => {
|
|
6
|
+
if (!n || !n.nodeType) return;
|
|
7
|
+
let a = (s) => parseInt(window.getComputedStyle(s).zIndex, 10) || 0, t = a(n), l;
|
|
8
|
+
do {
|
|
9
|
+
if (n = n.parentNode, n && n instanceof ShadowRoot && n.host && (n = n.host), n)
|
|
10
|
+
l = a(n);
|
|
11
|
+
else
|
|
12
|
+
break;
|
|
13
|
+
t = l > t ? l : t;
|
|
14
|
+
} while (n !== document.body);
|
|
15
|
+
return t + 1 + "";
|
|
16
|
+
}, R = (n) => {
|
|
17
|
+
const {
|
|
18
|
+
parent: a,
|
|
19
|
+
emit: t,
|
|
20
|
+
nextTick: l,
|
|
21
|
+
onBeforeUnmount: s,
|
|
22
|
+
onDeactivated: J,
|
|
23
|
+
props: p,
|
|
24
|
+
watch: y,
|
|
25
|
+
reactive: h,
|
|
26
|
+
vm: m,
|
|
27
|
+
slots: E,
|
|
28
|
+
toRefs: T,
|
|
29
|
+
popperVmRef: _
|
|
30
|
+
} = n, e = h({
|
|
31
|
+
popperJS: null,
|
|
32
|
+
appended: !1,
|
|
33
|
+
// arrow 是否添加
|
|
34
|
+
popperElm: null,
|
|
35
|
+
showPopper: p.manual ? !!p.modelValue : !1,
|
|
36
|
+
referenceElm: null,
|
|
37
|
+
currentPlacement: ""
|
|
38
|
+
}), b = (r) => {
|
|
39
|
+
if (e.appended)
|
|
40
|
+
return;
|
|
41
|
+
e.appended = !0;
|
|
42
|
+
const o = document.createElement("div");
|
|
43
|
+
o.setAttribute("x-arrow", ""), o.className = "popper__arrow", r.appendChild(o);
|
|
44
|
+
}, w = (r) => {
|
|
45
|
+
const { followReferenceHide: o = !0 } = (p == null ? void 0 : p.popperOptions) || {}, { _popper: d, _reference: c } = r;
|
|
46
|
+
o && x(c) && (d.style.display = "none");
|
|
47
|
+
}, S = (r) => p.zIndex === "relative" ? O(r) : B.nextZIndex(), g = (r) => {
|
|
48
|
+
if ($ || (e.currentPlacement = e.currentPlacement || p.placement, !/^(top|bottom|left|right)(-start|-end)?$/g.test(e.currentPlacement)))
|
|
49
|
+
return;
|
|
50
|
+
const o = p.popperOptions || { gpuAcceleration: !1 };
|
|
51
|
+
e.popperElm = e.popperElm || p.popper || m.$refs.popper || _.popper || r;
|
|
52
|
+
const d = e.popperElm;
|
|
53
|
+
let c = P({ state: e, props: p, vm: m, slots: E });
|
|
54
|
+
!d || !c || c.nodeType !== Node.ELEMENT_NODE || (p.visibleArrow && b(d), p.appendToBody || p.popperAppendToBody ? document.body.appendChild(e.popperElm) : (a && a.$el && a.$el.appendChild(e.popperElm), o.forceAbsolute = !0), o.placement = e.currentPlacement, o.offset = p.offset || 0, o.arrowOffset = p.arrowOffset || 0, o.adjustArrow = p.adjustArrow || !1, o.appendToBody = p.appendToBody || p.popperAppendToBody, e.popperJS = new N(c, d, o), t("created", e), typeof o.onUpdate == "function" && e.popperJS.onUpdate(o.onUpdate), e.popperJS._popper.style.zIndex = S(e.popperJS._reference), w(e.popperJS), I(e.popperElm, "click", v));
|
|
55
|
+
}, u = (r) => {
|
|
56
|
+
r && r !== !0 && (e.popperElm = r);
|
|
57
|
+
const o = e.popperJS;
|
|
58
|
+
o ? (o._reference = P({ state: e, props: p, vm: m, slots: E }), o.update(), o._popper && r !== !0 && (o._popper.style.zIndex = S(o._reference), w(e.popperJS))) : g(r && r !== !0 ? r : void 0);
|
|
59
|
+
}, f = (r) => {
|
|
60
|
+
!e.popperJS || e.showPopper && !r || (e.popperJS.destroy(), e.popperJS = null);
|
|
61
|
+
}, i = (r) => {
|
|
62
|
+
r && e.popperElm && e.popperElm.parentNode === document.body && (A(e.popperElm, "click", v), e.popperElm.remove());
|
|
63
|
+
};
|
|
64
|
+
return y(
|
|
65
|
+
() => e.showPopper,
|
|
66
|
+
(r) => {
|
|
67
|
+
p.disabled || (r && l(u), p.trigger === "manual" && t("update:modelValue", r));
|
|
68
|
+
}
|
|
69
|
+
), y(
|
|
70
|
+
() => p.placement,
|
|
71
|
+
(r) => {
|
|
72
|
+
var o;
|
|
73
|
+
e.currentPlacement = r, (o = e.popperJS) == null || o.setOptions({ placement: r }), !p.disabled && (r && l(u), p.trigger === "manual" && t("update:modelValue", r));
|
|
74
|
+
}
|
|
75
|
+
), s(() => {
|
|
76
|
+
l(() => {
|
|
77
|
+
f(!0), (p.appendToBody || p.popperAppendToBody) && i("remove");
|
|
78
|
+
});
|
|
79
|
+
}), J(() => {
|
|
80
|
+
f(!0), (p.appendToBody || p.popperAppendToBody) && i("remove");
|
|
81
|
+
}), { updatePopper: u, destroyPopper: i, doDestroy: f, ...T(e) };
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
R as userPopper
|
|
85
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { PopupManager as n, merge as _, isServer as T, addClass as f } from "../../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
|
|
2
|
+
let g = 1;
|
|
3
|
+
const x = ({
|
|
4
|
+
onMounted: t,
|
|
5
|
+
onBeforeUnmount: e,
|
|
6
|
+
watch: s,
|
|
7
|
+
vm: o,
|
|
8
|
+
api: r,
|
|
9
|
+
props: d,
|
|
10
|
+
state: p,
|
|
11
|
+
nextTick: i
|
|
12
|
+
}) => {
|
|
13
|
+
t(() => {
|
|
14
|
+
o._popupId = `popup-${g++}`, n.register(o._popupId, o);
|
|
15
|
+
}), e(() => {
|
|
16
|
+
n.deregister(o._popupId), n.closeModal(o._popupId);
|
|
17
|
+
}), s(
|
|
18
|
+
() => d.visible,
|
|
19
|
+
(l) => {
|
|
20
|
+
if (l) {
|
|
21
|
+
if (o._opening)
|
|
22
|
+
return;
|
|
23
|
+
p.rendered ? r.open() : (p.rendered = !0, i(() => {
|
|
24
|
+
r.open();
|
|
25
|
+
}));
|
|
26
|
+
} else
|
|
27
|
+
r.close();
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}, I = ({ state: t, vm: e }) => (s) => {
|
|
31
|
+
t.rendered || (t.rendered = !0);
|
|
32
|
+
const o = _({}, e.$props || e, s);
|
|
33
|
+
e._closeTimer && (clearTimeout(e._closeTimer), e._closeTimer = null), clearTimeout(e._openTimer);
|
|
34
|
+
const r = () => {
|
|
35
|
+
if (T || t.opened)
|
|
36
|
+
return;
|
|
37
|
+
e._opening = !0;
|
|
38
|
+
const p = e.$el, i = o.modal, l = o.zIndex;
|
|
39
|
+
l && (n.zIndex = l), i && (e._closing && (n.closeModal(e._popupId), e._closing = !1), n.openModal(
|
|
40
|
+
e._popupId,
|
|
41
|
+
n.nextZIndex(),
|
|
42
|
+
o.modalAppendToBody ? void 0 : p,
|
|
43
|
+
o.modalClass,
|
|
44
|
+
o.modalFade
|
|
45
|
+
), o.lockScroll && (n.fixBodyBorder(), f(document.body, n.popLockClass))), getComputedStyle(p).position === "static" && (p.style.position = "absolute"), p.style.zIndex = n.nextZIndex().toString(), t.opened = !0, e._opening = !1;
|
|
46
|
+
}, d = Number(o.openDelay);
|
|
47
|
+
d > 0 ? e._openTimer = setTimeout(() => {
|
|
48
|
+
e._openTimer = null, r();
|
|
49
|
+
}, d) : r();
|
|
50
|
+
}, v = ({ state: t, vm: e }) => () => {
|
|
51
|
+
e._openTimer !== null && (clearTimeout(e._openTimer), e._openTimer = null), clearTimeout(e._closeTimer);
|
|
52
|
+
const s = () => {
|
|
53
|
+
e._closing = !0, t.opened = !1, n.closeModal(e._popupId), e._closing = !1;
|
|
54
|
+
}, o = Number(e.closeDelay);
|
|
55
|
+
o > 0 ? e._closeTimer = setTimeout(() => {
|
|
56
|
+
e._closeTimer = null, s();
|
|
57
|
+
}, o) : s();
|
|
58
|
+
}, y = (t) => {
|
|
59
|
+
const { api: e, nextTick: s, onBeforeUnmount: o, onMounted: r, props: d, reactive: p, toRefs: i, vm: l, watch: u } = t, a = p({
|
|
60
|
+
opened: !1,
|
|
61
|
+
rendered: !1
|
|
62
|
+
});
|
|
63
|
+
x({ onMounted: r, onBeforeUnmount: o, watch: u, vm: l, api: e, props: d, state: a, nextTick: s });
|
|
64
|
+
const c = I({ state: a, vm: l }), m = v({ state: a, vm: l });
|
|
65
|
+
return { open: c, close: m, PopupManager: n, ...i(a) };
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
y as usePopup
|
|
69
|
+
};
|