@opentiny/tiny-robot 0.2.0-alpha.1 → 0.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_plugin-vue_export-helper.js +9 -0
- package/dist/action-group/index.js +142 -0
- package/dist/bubble/index.js +3211 -0
- package/dist/{node_modules/.pnpm/@opentiny_vue-icon@3.22.0/node_modules/@opentiny/vue-icon/lib/close.js → close.js} +9 -9
- package/dist/container/index.js +60 -0
- package/dist/conversations/index.js +14 -0
- package/dist/feedback/index.js +192 -0
- package/dist/history/index.js +228 -0
- package/dist/icon-button/index.js +31 -0
- package/dist/index.d.ts +2190 -26
- package/dist/index.js +35 -43
- package/dist/index2.js +376 -0
- package/dist/index3.js +3895 -0
- package/dist/index4.js +637 -0
- package/dist/index5.js +3237 -0
- package/dist/index6.js +4623 -0
- package/dist/prompts/index.js +83 -0
- package/dist/question/index.js +375 -0
- package/dist/sender/index.js +683 -0
- package/dist/style.css +1 -1
- package/dist/suggestion/index.js +497 -0
- package/dist/{packages/svgs/dist/tiny-robot-svgs.js → tiny-robot-svgs.js} +100 -100
- package/dist/welcome/index.js +38 -0
- package/package.json +7 -3
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/action-group/ActionGroup.vue.d.ts +0 -26
- package/dist/action-group/ActionGroupItem.vue.d.ts +0 -18
- package/dist/action-group/index.d.ts +0 -12
- package/dist/action-group/index.type.d.ts +0 -16
- package/dist/bubble/bubble-list.vue.d.ts +0 -5
- package/dist/bubble/components/actions/copy.vue.d.ts +0 -10
- package/dist/bubble/components/actions/index.d.ts +0 -2
- package/dist/bubble/components/actions/refresh.vue.d.ts +0 -2
- package/dist/bubble/index.d.ts +0 -12
- package/dist/bubble/index.type.d.ts +0 -53
- package/dist/bubble/useScroll.d.ts +0 -4
- package/dist/container/index.d.ts +0 -7
- package/dist/container/index.type.d.ts +0 -16
- package/dist/container/index.vue.d.ts +0 -26
- package/dist/conversations/index.d.ts +0 -7
- package/dist/conversations/index.vue.d.ts +0 -2
- package/dist/feedback/components/SourceList.vue.d.ts +0 -11
- package/dist/feedback/components/index.d.ts +0 -1
- package/dist/feedback/index.d.ts +0 -7
- package/dist/feedback/index.type.d.ts +0 -25
- package/dist/feedback/index.vue.d.ts +0 -13
- package/dist/history/components/index.d.ts +0 -2
- package/dist/history/components/item-tag.vue.d.ts +0 -5
- package/dist/history/components/search-empty.vue.d.ts +0 -7
- package/dist/history/composables/index.d.ts +0 -1
- package/dist/history/composables/useEditItemTitle.d.ts +0 -12
- package/dist/history/index.d.ts +0 -6
- package/dist/history/index.type.d.ts +0 -43
- package/dist/history/index.vue.d.ts +0 -2
- package/dist/icon-button/index.d.ts +0 -7
- package/dist/icon-button/index.type.d.ts +0 -7
- package/dist/icon-button/index.vue.d.ts +0 -6
- package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +0 -832
- package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +0 -2116
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/index.js +0 -113
- package/dist/node_modules/.pnpm/@opentiny_vue-button@3.21.0/node_modules/@opentiny/vue-button/lib/pc.js +0 -93
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +0 -727
- package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +0 -710
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/index.js +0 -198
- package/dist/node_modules/.pnpm/@opentiny_vue-dialog-box@3.21.0/node_modules/@opentiny/vue-dialog-box/lib/pc.js +0 -204
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useEventListener.js +0 -10
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeclose.js +0 -42
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/eyeopen.js +0 -43
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/finish.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/fullscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/minscreen.js +0 -30
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +0 -24
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/sub-script.js +0 -29
- package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/warn.js +0 -26
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js +0 -196
- package/dist/node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/pc.js +0 -568
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.21.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js +0 -1783
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/index.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/button/vue.js +0 -34
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -12
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +0 -36
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +0 -47
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +0 -7
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +0 -45
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +0 -320
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +0 -118
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +0 -9
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +0 -14
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +0 -54
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +0 -73
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +0 -13
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +0 -5
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +0 -11
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +0 -84
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +0 -28
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -136
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +0 -148
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/index.js +0 -228
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/input/vue.js +0 -263
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/index.js +0 -63
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -16
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +0 -23
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -78
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/index.js +0 -77
- package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -173
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.21.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/index.js +0 -176
- package/dist/node_modules/.pnpm/@opentiny_vue-tooltip@3.22.0/node_modules/@opentiny/vue-tooltip/lib/pc.js +0 -248
- package/dist/node_modules/.pnpm/@vueuse_core@13.1.0_vue@3.5.13/node_modules/@vueuse/core/index.js +0 -190
- package/dist/node_modules/.pnpm/@vueuse_shared@13.1.0_vue@3.5.13/node_modules/@vueuse/shared/index.js +0 -53
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode.js +0 -277
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/decode_codepoint.js +0 -46
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-html.js +0 -7
- package/dist/node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/esm/generated/decode-data-xml.js +0 -7
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/index.js +0 -187
- package/dist/node_modules/.pnpm/linkify-it@5.0.0/node_modules/linkify-it/lib/re.js +0 -19
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_blocks.js +0 -67
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/html_re.js +0 -5
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/common/utils.js +0 -164
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/index.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_destination.js +0 -44
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_label.js +0 -21
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/helpers/parse_link_title.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/index.js +0 -112
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_block.js +0 -63
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_core.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/parser_inline.js +0 -96
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/commonmark.js +0 -78
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/default.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/presets/zero.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/renderer.js +0 -127
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/ruler.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/blockquote.js +0 -59
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/code.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/fence.js +0 -30
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/heading.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/hr.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/html_block.js +0 -37
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/lheading.js +0 -43
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/list.js +0 -110
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/paragraph.js +0 -25
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/reference.js +0 -95
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/state_block.js +0 -84
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_block/table.js +0 -99
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/block.js +0 -7
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/inline.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/linkify.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/normalize.js +0 -9
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/replacements.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/smartquotes.js +0 -80
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/state_core.js +0 -8
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_core/text_join.js +0 -16
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/autolink.js +0 -46
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/backticks.js +0 -31
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +0 -34
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/emphasis.js +0 -57
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/entity.js +0 -33
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/escape.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/fragments_join.js +0 -10
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/html_inline.js +0 -32
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/image.js +0 -48
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/link.js +0 -40
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/linkify.js +0 -28
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/newline.js +0 -23
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/state_inline.js +0 -27
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/strikethrough.js +0 -54
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/rules_inline/text.js +0 -39
- package/dist/node_modules/.pnpm/markdown-it@14.1.0/node_modules/markdown-it/lib/token.js +0 -31
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/index.js +0 -10
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/decode.js +0 -61
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/encode.js +0 -48
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/format.js +0 -7
- package/dist/node_modules/.pnpm/mdurl@2.0.0/node_modules/mdurl/lib/parse.js +0 -74
- package/dist/node_modules/.pnpm/punycode.js@2.3.1/node_modules/punycode.js/punycode.es6.js +0 -139
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cc/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Cf/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/P/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/S/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/categories/Z/regex.js +0 -4
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/index.js +0 -14
- package/dist/node_modules/.pnpm/uc.micro@2.1.0/node_modules/uc.micro/properties/Any/regex.js +0 -4
- package/dist/packages/components/src/action-group/ActionGroup.vue.js +0 -7
- package/dist/packages/components/src/action-group/ActionGroup.vue2.js +0 -97
- package/dist/packages/components/src/action-group/ActionGroupItem.vue.js +0 -14
- package/dist/packages/components/src/action-group/ActionGroupItem.vue2.js +0 -4
- package/dist/packages/components/src/action-group/index.js +0 -17
- package/dist/packages/components/src/assets/icons/accessory.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading-speech.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/loading.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/send.svg.js +0 -4
- package/dist/packages/components/src/assets/icons/voice.svg.js +0 -4
- package/dist/packages/components/src/bubble/bubble-list.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble-list.vue2.js +0 -37
- package/dist/packages/components/src/bubble/bubble.vue.js +0 -7
- package/dist/packages/components/src/bubble/bubble.vue2.js +0 -118
- package/dist/packages/components/src/bubble/components/actions/copy.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +0 -35
- package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +0 -7
- package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +0 -16
- package/dist/packages/components/src/bubble/index.js +0 -18
- package/dist/packages/components/src/bubble/useScroll.js +0 -13
- package/dist/packages/components/src/container/index.js +0 -9
- package/dist/packages/components/src/container/index.vue.js +0 -7
- package/dist/packages/components/src/container/index.vue2.js +0 -55
- package/dist/packages/components/src/conversations/index.js +0 -9
- package/dist/packages/components/src/conversations/index.vue.js +0 -9
- package/dist/packages/components/src/feedback/components/SourceList.vue.js +0 -7
- package/dist/packages/components/src/feedback/components/SourceList.vue2.js +0 -52
- package/dist/packages/components/src/feedback/index.js +0 -9
- package/dist/packages/components/src/feedback/index.vue.js +0 -7
- package/dist/packages/components/src/feedback/index.vue2.js +0 -142
- package/dist/packages/components/src/history/components/item-tag.vue.js +0 -7
- package/dist/packages/components/src/history/components/item-tag.vue2.js +0 -21
- package/dist/packages/components/src/history/components/search-empty.vue.js +0 -7
- package/dist/packages/components/src/history/components/search-empty.vue2.js +0 -20
- package/dist/packages/components/src/history/composables/useEditItemTitle.js +0 -43
- package/dist/packages/components/src/history/index.js +0 -11
- package/dist/packages/components/src/history/index.vue.js +0 -7
- package/dist/packages/components/src/history/index.vue2.js +0 -130
- package/dist/packages/components/src/icon-button/index.js +0 -9
- package/dist/packages/components/src/icon-button/index.vue.js +0 -7
- package/dist/packages/components/src/icon-button/index.vue2.js +0 -40
- package/dist/packages/components/src/prompts/index.js +0 -18
- package/dist/packages/components/src/prompts/prompt.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompt.vue2.js +0 -39
- package/dist/packages/components/src/prompts/prompts.vue.js +0 -7
- package/dist/packages/components/src/prompts/prompts.vue2.js +0 -36
- package/dist/packages/components/src/question/components/CommonQuestions.vue.js +0 -89
- package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/components/HotQuestions.vue.js +0 -140
- package/dist/packages/components/src/question/components/HotQuestions.vue2.js +0 -4
- package/dist/packages/components/src/question/composables/useQuestions.js +0 -48
- package/dist/packages/components/src/question/index.js +0 -9
- package/dist/packages/components/src/question/index.vue.js +0 -113
- package/dist/packages/components/src/question/index.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/ActionButtons.vue.js +0 -143
- package/dist/packages/components/src/sender/components/ActionButtons.vue2.js +0 -4
- package/dist/packages/components/src/sender/components/TemplateEditor.vue.js +0 -7
- package/dist/packages/components/src/sender/components/TemplateEditor.vue2.js +0 -121
- package/dist/packages/components/src/sender/composables/useInputHandler.js +0 -38
- package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +0 -31
- package/dist/packages/components/src/sender/composables/useSpeechHandler.js +0 -67
- package/dist/packages/components/src/sender/index.js +0 -9
- package/dist/packages/components/src/sender/index.vue.js +0 -255
- package/dist/packages/components/src/sender/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue.js +0 -38
- package/dist/packages/components/src/suggestion/components/CategoryNav.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue.js +0 -107
- package/dist/packages/components/src/suggestion/components/SuggestionCapsule.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue.js +0 -123
- package/dist/packages/components/src/suggestion/components/SuggestionPanel.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/composables/useKeyboardNavigation.js +0 -45
- package/dist/packages/components/src/suggestion/composables/useTriggerDetection.js +0 -17
- package/dist/packages/components/src/suggestion/index.js +0 -9
- package/dist/packages/components/src/suggestion/index.vue.js +0 -179
- package/dist/packages/components/src/suggestion/index.vue2.js +0 -4
- package/dist/packages/components/src/suggestion/utils/dom.js +0 -18
- package/dist/packages/components/src/welcome/index.js +0 -9
- package/dist/packages/components/src/welcome/index.vue.js +0 -7
- package/dist/packages/components/src/welcome/index.vue2.js +0 -32
- package/dist/prompts/index.d.ts +0 -12
- package/dist/prompts/index.type.d.ts +0 -55
- package/dist/prompts/prompt.vue.d.ts +0 -3
- package/dist/prompts/prompts.vue.d.ts +0 -20
- package/dist/question/components/CommonQuestions.vue.d.ts +0 -32
- package/dist/question/components/HotQuestions.vue.d.ts +0 -89
- package/dist/question/composables/useQuestions.d.ts +0 -17
- package/dist/question/index.d.ts +0 -7
- package/dist/question/index.type.d.ts +0 -74
- package/dist/question/index.vue.d.ts +0 -46
- package/dist/sender/components/ActionButtons.vue.d.ts +0 -25
- package/dist/sender/components/TemplateEditor.vue.d.ts +0 -18
- package/dist/sender/composables/useInputHandler.d.ts +0 -17
- package/dist/sender/composables/useKeyboardHandler.d.ts +0 -18
- package/dist/sender/composables/useSpeechHandler.d.ts +0 -8
- package/dist/sender/index.d.ts +0 -7
- package/dist/sender/index.type.d.ts +0 -137
- package/dist/sender/index.vue.d.ts +0 -1012
- package/dist/suggestion/components/CategoryNav.vue.d.ts +0 -45
- package/dist/suggestion/components/SuggestionCapsule.vue.d.ts +0 -32
- package/dist/suggestion/components/SuggestionPanel.vue.d.ts +0 -84
- package/dist/suggestion/composables/useKeyboardNavigation.d.ts +0 -18
- package/dist/suggestion/composables/useSuggestionFilter.d.ts +0 -10
- package/dist/suggestion/composables/useTriggerDetection.d.ts +0 -11
- package/dist/suggestion/index.d.ts +0 -7
- package/dist/suggestion/index.type.d.ts +0 -94
- package/dist/suggestion/index.vue.d.ts +0 -343
- package/dist/suggestion/utils/dom.d.ts +0 -20
- package/dist/welcome/index.d.ts +0 -7
- package/dist/welcome/index.type.d.ts +0 -10
- package/dist/welcome/index.vue.d.ts +0 -18
- package/src/action-group/ActionGroup.vue +0 -232
- package/src/action-group/ActionGroupItem.vue +0 -9
- package/src/action-group/index.ts +0 -25
- package/src/action-group/index.type.ts +0 -20
- package/src/assets/icons/accessory.svg +0 -12
- package/src/assets/icons/loading-speech.svg +0 -16
- package/src/assets/icons/loading.svg +0 -17
- package/src/assets/icons/send.svg +0 -21
- package/src/assets/icons/voice.svg +0 -22
- package/src/bubble/bubble-list.vue +0 -42
- package/src/bubble/bubble.vue +0 -237
- package/src/bubble/components/actions/copy.vue +0 -54
- package/src/bubble/components/actions/index.ts +0 -2
- package/src/bubble/components/actions/refresh.vue +0 -31
- package/src/bubble/index.ts +0 -23
- package/src/bubble/index.type.ts +0 -63
- package/src/bubble/useScroll.ts +0 -14
- package/src/container/index.ts +0 -12
- package/src/container/index.type.ts +0 -17
- package/src/container/index.vue +0 -134
- package/src/conversations/index.ts +0 -12
- package/src/conversations/index.vue +0 -3
- package/src/feedback/components/SourceList.vue +0 -112
- package/src/feedback/components/index.ts +0 -1
- package/src/feedback/index.ts +0 -12
- package/src/feedback/index.type.ts +0 -27
- package/src/feedback/index.vue +0 -166
- package/src/history/components/index.ts +0 -2
- package/src/history/components/item-tag.vue +0 -49
- package/src/history/components/search-empty.vue +0 -38
- package/src/history/composables/index.ts +0 -1
- package/src/history/composables/useEditItemTitle.ts +0 -75
- package/src/history/index.ts +0 -12
- package/src/history/index.type.ts +0 -50
- package/src/history/index.vue +0 -292
- package/src/icon-button/index.ts +0 -12
- package/src/icon-button/index.type.ts +0 -8
- package/src/icon-button/index.vue +0 -52
- package/src/index.ts +0 -76
- package/src/prompts/index.ts +0 -25
- package/src/prompts/index.type.ts +0 -59
- package/src/prompts/prompt.vue +0 -101
- package/src/prompts/prompts.vue +0 -50
- package/src/question/components/CommonQuestions.vue +0 -146
- package/src/question/components/HotQuestions.vue +0 -148
- package/src/question/composables/useQuestions.ts +0 -106
- package/src/question/index.less +0 -447
- package/src/question/index.ts +0 -12
- package/src/question/index.type.ts +0 -86
- package/src/question/index.vue +0 -140
- package/src/question/vars.less +0 -135
- package/src/sender/components/ActionButtons.vue +0 -168
- package/src/sender/components/TemplateEditor.vue +0 -274
- package/src/sender/composables/useInputHandler.ts +0 -74
- package/src/sender/composables/useKeyboardHandler.ts +0 -101
- package/src/sender/composables/useSpeechHandler.ts +0 -122
- package/src/sender/index.less +0 -352
- package/src/sender/index.ts +0 -12
- package/src/sender/index.type.ts +0 -162
- package/src/sender/index.vue +0 -338
- package/src/sender/vars.less +0 -84
- package/src/suggestion/components/CategoryNav.vue +0 -38
- package/src/suggestion/components/SuggestionCapsule.vue +0 -183
- package/src/suggestion/components/SuggestionPanel.vue +0 -147
- package/src/suggestion/composables/useKeyboardNavigation.ts +0 -101
- package/src/suggestion/composables/useSuggestionFilter.ts +0 -34
- package/src/suggestion/composables/useTriggerDetection.ts +0 -46
- package/src/suggestion/index.less +0 -497
- package/src/suggestion/index.ts +0 -12
- package/src/suggestion/index.type.ts +0 -101
- package/src/suggestion/index.vue +0 -338
- package/src/suggestion/utils/dom.ts +0 -66
- package/src/suggestion/vars.less +0 -141
- package/src/vite-env.d.ts +0 -1
- package/src/welcome/index.ts +0 -12
- package/src/welcome/index.type.ts +0 -12
- package/src/welcome/index.vue +0 -69
- package/tsconfig.json +0 -37
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -53
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { xss as n } from "../../../../../@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.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
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const r = () => {
|
|
2
|
-
let e = 8;
|
|
3
|
-
return document.addEventListener && window.performance && (e = 9, window.atob && window.matchMedia && (e = 10, !window.attachEvent && !document.all && (e = 11))), e;
|
|
4
|
-
}, a = (e) => {
|
|
5
|
-
e.chrome && ~navigator.userAgent.indexOf("Edg") ? (e.name = "edge", e.edge = !0, delete e.chrome) : !document.documentMode && window.StyleMedia && (e.name = "edge", e.edge = !0);
|
|
6
|
-
}, d = typeof window < "u" && typeof document < "u" && window.document === document, s = d ? window : global;
|
|
7
|
-
(() => {
|
|
8
|
-
const e = {
|
|
9
|
-
name: void 0,
|
|
10
|
-
version: void 0,
|
|
11
|
-
isDoc: typeof document < "u",
|
|
12
|
-
isMobile: !1,
|
|
13
|
-
isPC: !0,
|
|
14
|
-
isNode: typeof window > "u"
|
|
15
|
-
};
|
|
16
|
-
if (d) {
|
|
17
|
-
const i = /(Android|webOS|iPhone|iPad|iPod|SymbianOS|BlackBerry|Windows Phone)/.test(navigator.userAgent);
|
|
18
|
-
e.isMobile = i, e.isPC = !i;
|
|
19
|
-
let o;
|
|
20
|
-
if (window.chrome && (window.chrome.webstore || /^Google\b/.test(window.navigator.vendor)) ? (e.name = "chrome", e.chrome = !0, o = navigator.userAgent.match(/chrome\/(\d+)/i), e.version = !!o && !!o[1] && parseInt(o[1], 10), o = void 0) : document.all || document.documentMode ? (e.name = "ie", e.version = r(), e.ie = !0) : typeof window.InstallTrigger < "u" ? (e.name = "firefox", e.firefox = !0) : Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor") > 0 ? (e.name = "safari", e.safari = !0) : (window.opr && window.opr.addons || window.opera) && (e.name = "opera", e.opera = !0), a(e), !~["ie", "chrome"].indexOf(e.name)) {
|
|
21
|
-
const n = e.name + "/(\\d+)";
|
|
22
|
-
o = navigator.userAgent.match(new RegExp(n, "i")), e.version = !!o && !!o[1] && parseInt(o[1], 10), o = void 0;
|
|
23
|
-
}
|
|
24
|
-
if (e.isDoc) {
|
|
25
|
-
const n = document.body || document.documentElement;
|
|
26
|
-
["webkit", "khtml", "moz", "ms", "o"].forEach((t) => {
|
|
27
|
-
e["-" + t] = !!n[t + "MatchesSelector"];
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return e;
|
|
32
|
-
})();
|
|
33
|
-
export {
|
|
34
|
-
s as globalEnvironment,
|
|
35
|
-
d as isBrowser
|
|
36
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { on as m } from "./dom.js";
|
|
2
|
-
const f = typeof window > "u", s = [], t = "@@clickoutsideContext";
|
|
3
|
-
let d, p = 0;
|
|
4
|
-
f || (m(document, "mousedown", (e) => {
|
|
5
|
-
d = e, s.filter((n) => n[t].mousedownTrigger).forEach((n) => n[t].documentHandler(e, d));
|
|
6
|
-
}), m(document, "mouseup", (e) => {
|
|
7
|
-
s.filter((n) => !n[t].mousedownTrigger).forEach((n) => {
|
|
8
|
-
var o;
|
|
9
|
-
return n[t].documentHandler(e, (o = n[t]) != null && o.mouseupTrigger ? e : d);
|
|
10
|
-
}), d = null;
|
|
11
|
-
}));
|
|
12
|
-
const l = (e, n, o) => function(r = {}, i = {}) {
|
|
13
|
-
let a = o.context.popperElm || o.context.state && o.context.state.popperElm;
|
|
14
|
-
!(r != null && r.target) || !(i != null && i.target) || e.contains(r.target) || e.contains(i.target) || e === r.target || a && (a.contains(r.target) || a.contains(i.target)) || (n.expression && e[t].methodName && o.context[e[t].methodName] ? o.context[e[t].methodName]() : e[t].bindingFn && e[t].bindingFn());
|
|
15
|
-
};
|
|
16
|
-
var x = {
|
|
17
|
-
bind: (e, n, o) => {
|
|
18
|
-
s.push(e);
|
|
19
|
-
const r = p++, { modifiers: i, expression: a, value: c } = n, { mousedown: u = !1, mouseup: g = !1 } = i || {};
|
|
20
|
-
e[t] = {
|
|
21
|
-
id: r,
|
|
22
|
-
documentHandler: l(e, n, o),
|
|
23
|
-
methodName: a,
|
|
24
|
-
bindingFn: c,
|
|
25
|
-
mousedownTrigger: u,
|
|
26
|
-
mouseupTrigger: g
|
|
27
|
-
};
|
|
28
|
-
},
|
|
29
|
-
update: (e, n, o) => {
|
|
30
|
-
const { modifiers: r, expression: i, value: a } = n, { mousedown: c = !1, mouseup: u = !1 } = r || {};
|
|
31
|
-
e[t].documentHandler = l(e, n, o), e[t].methodName = i, e[t].bindingFn = a, e[t].mousedownTrigger = c, e[t].mouseupTrigger = u;
|
|
32
|
-
},
|
|
33
|
-
unbind: (e) => {
|
|
34
|
-
if (e.nodeType !== Node.ELEMENT_NODE)
|
|
35
|
-
return;
|
|
36
|
-
let n = s.length;
|
|
37
|
-
for (let o = 0; o < n; o++)
|
|
38
|
-
if (s[o][t].id === e[t].id) {
|
|
39
|
-
s.splice(o, 1);
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
s.length === 0 && d && (d = null), delete e[t];
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
x as default
|
|
47
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
const n = typeof window > "u", r = (e, t, s, o = !1) => {
|
|
2
|
-
e && t && s && e.addEventListener(t, s, o);
|
|
3
|
-
}, l = (e, t, s, o = !1) => {
|
|
4
|
-
e && t && e.removeEventListener(t, s, o);
|
|
5
|
-
}, c = (e, t = "") => {
|
|
6
|
-
if (!e)
|
|
7
|
-
return;
|
|
8
|
-
t.split(" ").filter((o) => o).forEach((o) => e.classList.add(o));
|
|
9
|
-
}, d = (e, t) => {
|
|
10
|
-
if (!e || !t)
|
|
11
|
-
return;
|
|
12
|
-
t.split(" ").filter((o) => o).forEach((o) => e.classList.remove(o));
|
|
13
|
-
}, f = () => {
|
|
14
|
-
const e = window;
|
|
15
|
-
let t = e.document.documentElement, s = e.document.body;
|
|
16
|
-
return {
|
|
17
|
-
scrollTop: t.scrollTop || s.scrollTop,
|
|
18
|
-
scrollLeft: t.scrollLeft || s.scrollLeft,
|
|
19
|
-
visibleHeight: t.clientHeight || s.clientHeight,
|
|
20
|
-
visibleWidth: t.clientWidth || s.clientWidth
|
|
21
|
-
};
|
|
22
|
-
}, i = (e) => {
|
|
23
|
-
if (n)
|
|
24
|
-
return !1;
|
|
25
|
-
if (e) {
|
|
26
|
-
const t = getComputedStyle(e);
|
|
27
|
-
if (t.getPropertyValue("position") === "fixed") {
|
|
28
|
-
if (t.getPropertyValue("display") === "none")
|
|
29
|
-
return !0;
|
|
30
|
-
if (e.parentNode !== document.body)
|
|
31
|
-
return i(e.parentNode);
|
|
32
|
-
} else
|
|
33
|
-
return e.offsetParent === null;
|
|
34
|
-
}
|
|
35
|
-
return !1;
|
|
36
|
-
};
|
|
37
|
-
export {
|
|
38
|
-
c as addClass,
|
|
39
|
-
f as getDomNode,
|
|
40
|
-
i as isDisplayNone,
|
|
41
|
-
n as isServer,
|
|
42
|
-
l as off,
|
|
43
|
-
r as on,
|
|
44
|
-
d as removeClass
|
|
45
|
-
};
|
|
@@ -1,320 +0,0 @@
|
|
|
1
|
-
import { __spreadValues as E } from "../../chunk-G2ADBYYC.js";
|
|
2
|
-
import { isDisplayNone as j, on as g, off as O } from "./dom.js";
|
|
3
|
-
import v from "./popup-manager.js";
|
|
4
|
-
import { typeOf as U } from "../type.js";
|
|
5
|
-
import { isBrowser as z } from "../browser.js";
|
|
6
|
-
const V = ["left", "right", "top", "bottom"], L = ["shift", "offset", "preventOverflow", "keepTogether", "arrow", "flip", "applyStyle"], k = {
|
|
7
|
-
arrowOffset: 0,
|
|
8
|
-
arrowElement: "[x-arrow]",
|
|
9
|
-
boundariesElement: "viewport",
|
|
10
|
-
boundariesPadding: 5,
|
|
11
|
-
flipBehavior: "flip",
|
|
12
|
-
// 全局没有修改过它,所以它一直是flip
|
|
13
|
-
forceAbsolute: !1,
|
|
14
|
-
gpuAcceleration: !0,
|
|
15
|
-
offset: 0,
|
|
16
|
-
placement: "bottom",
|
|
17
|
-
preventOverflowOrder: V,
|
|
18
|
-
modifiers: L,
|
|
19
|
-
// 此处是string数组, 构造函数调用之后转为函数数组
|
|
20
|
-
updateHiddenPopperOnScroll: !1
|
|
21
|
-
// 滚动过程中是否更新隐藏的弹出层位置
|
|
22
|
-
}, w = (i, t) => {
|
|
23
|
-
const o = (e) => e !== "" && !isNaN(parseFloat(e)) && isFinite(e);
|
|
24
|
-
Object.keys(t).forEach((e) => {
|
|
25
|
-
let s = "";
|
|
26
|
-
~["width", "height", "top", "right", "bottom", "left"].indexOf(e) && o(t[e]) && (s = "px"), i.style[e] = t[e] + s;
|
|
27
|
-
});
|
|
28
|
-
}, x = (i) => {
|
|
29
|
-
let t = i.offsetParent;
|
|
30
|
-
return t === window.document.body || !t ? window.document.documentElement : t;
|
|
31
|
-
}, m = (i, t) => !i || i.nodeType !== 1 ? void 0 : window.getComputedStyle(i, null)[t], A = (i) => i === window.document.body ? !1 : m(i, "position") === "fixed" ? !0 : (i.host && (i = i.host), i.parentNode ? A(i.parentNode) : !1), S = (i) => {
|
|
32
|
-
let t = i.getBoundingClientRect();
|
|
33
|
-
return {
|
|
34
|
-
left: t.left,
|
|
35
|
-
top: t.top,
|
|
36
|
-
right: t.right,
|
|
37
|
-
bottom: t.bottom,
|
|
38
|
-
width: t.right - t.left,
|
|
39
|
-
height: t.bottom - t.top
|
|
40
|
-
};
|
|
41
|
-
}, C = (i) => {
|
|
42
|
-
const t = ["scroll", "auto"];
|
|
43
|
-
return t.includes(m(i, "overflow")) || t.includes(m(i, "overflow-x")) || t.includes(m(i, "overflow-y"));
|
|
44
|
-
}, N = (i) => {
|
|
45
|
-
const t = document.createElement("div");
|
|
46
|
-
w(t, {
|
|
47
|
-
opacity: 0,
|
|
48
|
-
position: "fixed",
|
|
49
|
-
width: 1,
|
|
50
|
-
height: 1,
|
|
51
|
-
top: 0,
|
|
52
|
-
left: 0,
|
|
53
|
-
"z-index": "-99"
|
|
54
|
-
}), i.appendChild(t);
|
|
55
|
-
const o = S(t);
|
|
56
|
-
return i.removeChild(t), o;
|
|
57
|
-
}, b = (i) => {
|
|
58
|
-
let t = i.parentNode;
|
|
59
|
-
return t ? t === window.document ? window.document.body.scrollTop || window.document.body.scrollLeft ? window.document.body : window.document.documentElement : C(t) ? t : b(t) : i;
|
|
60
|
-
}, D = (i, t, o, e) => {
|
|
61
|
-
let { top: s, left: r, width: p, height: l } = S(i);
|
|
62
|
-
if (o) {
|
|
63
|
-
if (e.parentElement) {
|
|
64
|
-
const { top: h, left: u } = N(e.parentElement);
|
|
65
|
-
s -= h, r -= u;
|
|
66
|
-
}
|
|
67
|
-
return {
|
|
68
|
-
top: s,
|
|
69
|
-
left: r,
|
|
70
|
-
bottom: s + l,
|
|
71
|
-
right: r + p,
|
|
72
|
-
width: p,
|
|
73
|
-
height: l
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
let n = S(t);
|
|
77
|
-
return {
|
|
78
|
-
top: s - n.top,
|
|
79
|
-
left: r - n.left,
|
|
80
|
-
bottom: s - n.top + l,
|
|
81
|
-
right: r - n.left + p,
|
|
82
|
-
width: p,
|
|
83
|
-
height: l
|
|
84
|
-
};
|
|
85
|
-
}, $ = (i) => i === document.body ? Math.max(document.documentElement.scrollTop, document.body.scrollTop) : i.scrollTop, q = (i) => i === document.body ? Math.max(document.documentElement.scrollLeft, document.body.scrollLeft) : i.scrollLeft, I = (i, t) => {
|
|
86
|
-
const o = Math.max(i.scrollHeight, i.offsetHeight, t.clientHeight, t.scrollHeight, t.offsetHeight);
|
|
87
|
-
return { width: Math.max(i.scrollWidth, i.offsetWidth, t.clientWidth, t.scrollWidth, t.offsetWidth), height: o };
|
|
88
|
-
}, P = (i) => {
|
|
89
|
-
let t = i.style.display, o = i.style.visibility;
|
|
90
|
-
i.style.display = "block", i.style.visibility = "hidden";
|
|
91
|
-
let e = window.getComputedStyle(i), s = parseFloat(e.marginTop) + parseFloat(e.marginBottom), r = parseFloat(e.marginLeft) + parseFloat(e.marginRight), p = { width: i.offsetWidth + r, height: i.offsetHeight + s };
|
|
92
|
-
return i.style.display = t, i.style.visibility = o, p;
|
|
93
|
-
}, M = (i) => {
|
|
94
|
-
let t = { left: "right", right: "left", bottom: "top", top: "bottom" };
|
|
95
|
-
return i.replace(/left|right|bottom|top/g, (o) => t[o]);
|
|
96
|
-
}, a = (i) => {
|
|
97
|
-
let t = E({}, i);
|
|
98
|
-
return t.right = t.left + t.width, t.bottom = t.top + t.height, t;
|
|
99
|
-
}, H = (i, t = []) => {
|
|
100
|
-
const o = i.parentNode;
|
|
101
|
-
return o ? (C(o) && t.push(o), m(o, "position") === "fixed" ? t : H(o, t)) : t;
|
|
102
|
-
}, F = (i) => {
|
|
103
|
-
const t = {
|
|
104
|
-
width: i.offsetWidth,
|
|
105
|
-
height: i.offsetHeight,
|
|
106
|
-
left: i.offsetLeft,
|
|
107
|
-
top: i.offsetTop,
|
|
108
|
-
right: 0,
|
|
109
|
-
bottom: 0
|
|
110
|
-
};
|
|
111
|
-
return t.right = t.left + t.width, t.bottom = t.top + t.height, t;
|
|
112
|
-
}, R = (i) => {
|
|
113
|
-
i.stopPropagation();
|
|
114
|
-
}, B = z && typeof ResizeObserver == "function" ? new ResizeObserver((i) => {
|
|
115
|
-
i.forEach((t) => {
|
|
116
|
-
t.target.popperVm && t.contentRect.height > 50 && t.target.popperVm.update();
|
|
117
|
-
});
|
|
118
|
-
}) : null;
|
|
119
|
-
class G {
|
|
120
|
-
constructor(t, o, e) {
|
|
121
|
-
this.modifiers = {}, this.popperOuterSize = null, this._reference = t, this._popper = o, this.state = {}, this._options = E(E({}, k), e), this._options.modifierFns = L.map((s) => this[s]), z && (this._popper.setAttribute("x-placement", this._options.placement), this.state.position = this._getPopperPositionByRefernce(this._reference), w(this._popper, { position: this.state.position, top: 0 }), this._popper && (this._popper.popperVm = this, B && B.observe(this._popper)), this.update(), this._setupEventListeners());
|
|
122
|
-
}
|
|
123
|
-
destroy() {
|
|
124
|
-
return this._popper.removeAttribute("x-placement"), this._popper.style.display = "none", this._removeEventListeners(), this._options.removeOnDestroy && this._popper.remove(), this;
|
|
125
|
-
}
|
|
126
|
-
onUpdate(t) {
|
|
127
|
-
return this.state.updateCallback = t, this;
|
|
128
|
-
}
|
|
129
|
-
update() {
|
|
130
|
-
let t = { instance: this, styles: {} };
|
|
131
|
-
this.stopEventBubble(), this.popperOuterSize = null, t.placement = t._originalPlacement = this._options.placement, t.offsets = this._getRefPopOffsets(this._popper, this._reference, t.placement), t.boundaries = this._getBoundaries(t, this._options.boundariesPadding, this._options.boundariesElement), t = this.runModifiers(t, this._options.modifierFns), typeof this.state.updateCallback == "function" && this.state.updateCallback(t);
|
|
132
|
-
}
|
|
133
|
-
// 阻止popper的mousewheel等事件冒泡。 通过 onxxx 绑定,是为了避免重复绑定事件
|
|
134
|
-
stopEventBubble() {
|
|
135
|
-
this._popper && (this._popper.onmousewheel || (this._popper.onmousewheel = R), this._popper.onwheel || (this._popper.onwheel = R));
|
|
136
|
-
}
|
|
137
|
-
/** 按顺序执行Modifiers, 如果传入终点modifier,则执行到指定位置 */
|
|
138
|
-
runModifiers(t, o, e) {
|
|
139
|
-
let s = o.slice();
|
|
140
|
-
const r = this._options;
|
|
141
|
-
return e !== void 0 && (s = this._options.modifierFns.slice(
|
|
142
|
-
0,
|
|
143
|
-
r.modifierFns.findIndex((p) => p === e)
|
|
144
|
-
)), s.forEach((p) => {
|
|
145
|
-
U(p) === "function" && (t = p.call(this, t));
|
|
146
|
-
}), t;
|
|
147
|
-
}
|
|
148
|
-
// 此时才把offsets.popper 赋值给popper dom, offsets.array赋值给array dom
|
|
149
|
-
applyStyle(t) {
|
|
150
|
-
let o = { position: t.offsets.popper.position }, e = Math.round(t.offsets.popper.left), s = Math.round(t.offsets.popper.top);
|
|
151
|
-
return this._options.gpuAcceleration ? (o.transform = `translate3d(${e}px, ${s}px, 0)`, Object.assign(o, { top: 0, left: 0 })) : Object.assign(o, { top: s, left: e }), Object.assign(o, t.styles), w(this._popper, o), this._popper.setAttribute("x-placement", t.placement), t.offsets.arrow && w(t.arrowElement, t.offsets.arrow), t;
|
|
152
|
-
}
|
|
153
|
-
// 判断 placement是不是2段式的,是则处理一下偏移。 修改data.offsets.popper的值
|
|
154
|
-
shift(t) {
|
|
155
|
-
let o = t.placement, e = o.split("-")[0], s = o.split("-")[1];
|
|
156
|
-
if (s) {
|
|
157
|
-
let { top: r, left: p, height: l, width: n } = t.offsets.reference, c = a(t.offsets.popper), h = {
|
|
158
|
-
y: {
|
|
159
|
-
start: { top: r },
|
|
160
|
-
end: { top: r + l - c.height }
|
|
161
|
-
},
|
|
162
|
-
x: {
|
|
163
|
-
start: { left: p },
|
|
164
|
-
end: { left: p + n - c.width }
|
|
165
|
-
}
|
|
166
|
-
}, u = ~["bottom", "top"].indexOf(e) ? "x" : "y";
|
|
167
|
-
t.offsets.popper = Object.assign(c, h[u][s]);
|
|
168
|
-
}
|
|
169
|
-
return t;
|
|
170
|
-
}
|
|
171
|
-
// 校正popper的位置在boundaries 的内部
|
|
172
|
-
preventOverflow(t) {
|
|
173
|
-
if (this._options.ignoreBoundaries)
|
|
174
|
-
return t;
|
|
175
|
-
let o = this._options.preventOverflowOrder, e = a(t.offsets.popper), s = {
|
|
176
|
-
top: () => {
|
|
177
|
-
let { top: r } = e;
|
|
178
|
-
return r < t.boundaries.top && (r = Math.max(r, t.boundaries.top)), { top: r };
|
|
179
|
-
},
|
|
180
|
-
right: () => {
|
|
181
|
-
let { left: r } = e;
|
|
182
|
-
return e.right > t.boundaries.right && (r = Math.min(r, t.boundaries.right - e.width)), { left: r };
|
|
183
|
-
},
|
|
184
|
-
bottom: () => {
|
|
185
|
-
let { top: r } = e;
|
|
186
|
-
return e.bottom > t.boundaries.bottom && (r = Math.min(r, t.boundaries.bottom - e.height)), { top: r };
|
|
187
|
-
},
|
|
188
|
-
left: () => {
|
|
189
|
-
let { left: r } = e;
|
|
190
|
-
return e.left < t.boundaries.left && (r = Math.max(r, t.boundaries.left)), { left: r };
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
return o.forEach((r) => {
|
|
194
|
-
t.offsets.popper = Object.assign(e, s[r]());
|
|
195
|
-
}), t;
|
|
196
|
-
}
|
|
197
|
-
// 校正popper的位置在reference的边上。 如果2个分离了,重新调整popper的位置。 可能是担心 modifiers.offset 带来的副作用吧
|
|
198
|
-
keepTogether(t) {
|
|
199
|
-
let o = a(t.offsets.popper), e = t.offsets.reference;
|
|
200
|
-
return o.right < Math.floor(e.left) && (t.offsets.popper.left = Math.floor(e.left) - o.width), o.left > Math.floor(e.right) && (t.offsets.popper.left = Math.floor(e.right)), o.bottom < Math.floor(e.top) && (t.offsets.popper.top = Math.floor(e.top) - o.height), o.top > Math.floor(e.bottom) && (t.offsets.popper.top = Math.floor(e.bottom)), t;
|
|
201
|
-
}
|
|
202
|
-
// 根据flip的策略,计算当前应该显示的位置。 空间不够要计算出flip的位置。 可能是担心preventOverflow 时,造成pop, reference会重叠。 重叠了就要flip一下
|
|
203
|
-
flip(t) {
|
|
204
|
-
if (t.flipped && t.placement === t._originalPlacement)
|
|
205
|
-
return t;
|
|
206
|
-
const o = t.placement.split("-");
|
|
207
|
-
let e = o[0], s = M(e), r = o[1] || "", p = [e, s];
|
|
208
|
-
return p.forEach((l, n) => {
|
|
209
|
-
if (e !== l || p.length === n + 1)
|
|
210
|
-
return;
|
|
211
|
-
e = t.placement.split("-")[0], s = M(e);
|
|
212
|
-
let c = a(t.offsets.popper), h = ~["right", "bottom"].indexOf(e), u = Math.floor(t.offsets.reference[e]), f = Math.floor(c[s]);
|
|
213
|
-
(h && u > f || !h && u < f) && (t.flipped = !0, t.placement = p[n + 1], r && (t.placement += `-${r}`), t.offsets.popper = this._getRefPopOffsets(this._popper, this._reference, t.placement).popper, t = this.runModifiers(t, this._options.modifierFns, this.flip));
|
|
214
|
-
}), t;
|
|
215
|
-
}
|
|
216
|
-
// 根据入参option上的offset, 给data.offset.popper进行校正
|
|
217
|
-
offset(t) {
|
|
218
|
-
let o = this._options.offset, e = t.offsets.popper;
|
|
219
|
-
return ~t.placement.indexOf("left") ? e.top -= o : ~t.placement.indexOf("right") ? e.top += o : ~t.placement.indexOf("top") ? e.left -= o : ~t.placement.indexOf("bottom") && (e.left += o), t;
|
|
220
|
-
}
|
|
221
|
-
// 计算arrow的位置,保存在data.offsets.arrow ={top,left}
|
|
222
|
-
arrow(t) {
|
|
223
|
-
let o = this._options.arrowElement, e = this._options.arrowOffset;
|
|
224
|
-
if (typeof o == "string" && (o = this._popper.querySelector(o)), !o || !this._popper.contains(o))
|
|
225
|
-
return t;
|
|
226
|
-
let s = {}, r = t.placement.split("-")[0], p = a(t.offsets.popper), l = t.offsets.reference, n = ~["left", "right"].indexOf(r), c = n ? "height" : "width", h = n ? "bottom" : "right", u = n ? "left" : "top", f = n ? "top" : "left", W = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = P(this._popper), T = P(o), d = T[c];
|
|
227
|
-
l[h] - d < p[f] && (t.offsets.popper[f] -= p[f] - (l[h] - d)), l[f] + d > p[h] && (t.offsets.popper[f] += l[f] + d - p[h]);
|
|
228
|
-
let _ = l[f] + (e || l[c] / 2 - d / 2) - p[f];
|
|
229
|
-
_ = Math.max(Math.min(p[c] - d - 8, _), 8), s[f] = _, s[u] = "";
|
|
230
|
-
const y = this._options.placement.split("-");
|
|
231
|
-
return this._options.adjustArrow && ~["top", "bottom"].indexOf(y[0]) && f === "left" && (y[1] === "start" ? s.left = 8 : y[1] || (s.left = (W.width - T.width) / 2)), t.offsets.arrow = s, t.arrowElement = o, t;
|
|
232
|
-
}
|
|
233
|
-
/** 判断 reference 的 offsetParent 元素是fix还是abs, 这个值会赋值给popper 的dom */
|
|
234
|
-
_getPopperPositionByRefernce(t) {
|
|
235
|
-
return this._options.forceAbsolute ? "absolute" : A(t) ? "fixed" : "absolute";
|
|
236
|
-
}
|
|
237
|
-
/** 实时计算一下popper, reference的 位置信息, 用于 */
|
|
238
|
-
_getRefPopOffsets(t, o, e) {
|
|
239
|
-
e = e.split("-")[0];
|
|
240
|
-
let s = { position: this.state.position }, r = s.position === "fixed", p = D(
|
|
241
|
-
o,
|
|
242
|
-
x(t),
|
|
243
|
-
r,
|
|
244
|
-
t
|
|
245
|
-
);
|
|
246
|
-
const { width: l, height: n } = this.popperOuterSize ? this.popperOuterSize : this.popperOuterSize = P(t);
|
|
247
|
-
return ~["right", "left"].indexOf(e) ? (s.top = p.top + p.height / 2 - n / 2, e === "left" ? s.left = p.left - l : s.left = p.right) : (s.left = p.left + p.width / 2 - l / 2, e === "top" ? s.top = p.top - n : s.top = p.bottom), s.width = l, s.height = n, {
|
|
248
|
-
popper: s,
|
|
249
|
-
reference: p
|
|
250
|
-
};
|
|
251
|
-
}
|
|
252
|
-
_setupEventListeners() {
|
|
253
|
-
var t, o;
|
|
254
|
-
if (this.state.updateBoundFn = this.update.bind(this), this.state.scrollUpdate = () => {
|
|
255
|
-
if (this._options.updateHiddenPopperOnScroll)
|
|
256
|
-
this.state.updateBoundFn();
|
|
257
|
-
else {
|
|
258
|
-
if (j(this._reference))
|
|
259
|
-
return;
|
|
260
|
-
this.state.updateBoundFn();
|
|
261
|
-
}
|
|
262
|
-
}, g(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window") {
|
|
263
|
-
let e = this._options.scrollParent || b(this._reference);
|
|
264
|
-
const s = [];
|
|
265
|
-
if ((o = (t = e == null ? void 0 : e.dataset) == null ? void 0 : t.tag) != null && o.includes("-form")) {
|
|
266
|
-
s.push(e);
|
|
267
|
-
let r = b(e);
|
|
268
|
-
(r === window.document.body || r === window.document.documentElement) && (r = window), s.push(r);
|
|
269
|
-
}
|
|
270
|
-
if ((e === window.document.body || e === window.document.documentElement) && (e = window), this.state.scrollTarget = e, this._options.bubbling || v.globalScroll) {
|
|
271
|
-
let r = H(this._reference);
|
|
272
|
-
this.state.scrollTargets = r || [], r.forEach((p) => {
|
|
273
|
-
g(p, "scroll", this.state.scrollUpdate);
|
|
274
|
-
});
|
|
275
|
-
} else
|
|
276
|
-
s.length ? (this.state.scrollTargets = s, s.forEach((r) => {
|
|
277
|
-
g(r, "scroll", this.state.scrollUpdate);
|
|
278
|
-
})) : g(e, "scroll", this.state.scrollUpdate);
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
_removeEventListeners() {
|
|
282
|
-
O(window, "resize", this.state.updateBoundFn), this._options.boundariesElement !== "window" && this.state.scrollTarget && (O(this.state.scrollTarget, "scroll", this.state.scrollUpdate), this.state.scrollTarget = null, (this._options.bubbling || v.globalScroll) && ((this.state.scrollTargets || []).forEach((o) => {
|
|
283
|
-
O(o, "scroll", this.state.scrollUpdate);
|
|
284
|
-
}), this.state.scrollTargets = null)), this.state.updateBoundFn = null, this.state.scrollUpdate = null;
|
|
285
|
-
}
|
|
286
|
-
/** 实时计算一下Boundary的位置 */
|
|
287
|
-
_getBoundaries(t, o, e) {
|
|
288
|
-
let s = { right: 0, left: 0, top: 0, bottom: 0 };
|
|
289
|
-
if (e === "window" || e === "body") {
|
|
290
|
-
let r = window.document.body, p = window.document.documentElement, { width: l, height: n } = I(r, p);
|
|
291
|
-
s = { top: 0, right: l, bottom: n, left: 0 };
|
|
292
|
-
} else if (e === "viewport") {
|
|
293
|
-
let r = x(this._popper), p = b(this._popper), l = F(r);
|
|
294
|
-
const c = t.offsets.popper.position === "fixed" || !this._options.appendToBody && ["right", "left"].includes(this._options.placement);
|
|
295
|
-
let h = c ? 0 : $(p), u = c ? 0 : q(p);
|
|
296
|
-
const f = v.viewportWindow || window;
|
|
297
|
-
s = {
|
|
298
|
-
top: 0 - (l.top - h),
|
|
299
|
-
right: f.document.documentElement.clientWidth - (l.left - u),
|
|
300
|
-
bottom: f.document.documentElement.clientHeight - (l.top - h),
|
|
301
|
-
left: 0 - (l.left - u)
|
|
302
|
-
};
|
|
303
|
-
} else if (x(this._popper) === e) {
|
|
304
|
-
const { clientWidth: r, clientHeight: p } = e;
|
|
305
|
-
s = {
|
|
306
|
-
right: r,
|
|
307
|
-
bottom: p,
|
|
308
|
-
top: 0,
|
|
309
|
-
left: 0
|
|
310
|
-
};
|
|
311
|
-
} else
|
|
312
|
-
s = F(e);
|
|
313
|
-
return s.right -= o, s.left += o, s.bottom = s.bottom - o, s.top = s.top + o, s;
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
var tt = G;
|
|
317
|
-
export {
|
|
318
|
-
tt as default,
|
|
319
|
-
b as getScrollParent
|
|
320
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { KEY_CODE as y } from "../index.js";
|
|
2
|
-
import { removeClass as c, addClass as p, on as g } from "./dom.js";
|
|
3
|
-
const u = typeof window > "u", m = {}, s = {
|
|
4
|
-
leave: "v-modal-leave",
|
|
5
|
-
enter: "v-modal-enter",
|
|
6
|
-
modal: "v-modal"
|
|
7
|
-
}, k = (e, o) => {
|
|
8
|
-
for (let t = e.length - 1; t >= 0; t--)
|
|
9
|
-
if (e[t].id === o) {
|
|
10
|
-
e.splice(t, 1);
|
|
11
|
-
break;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
let h;
|
|
15
|
-
const n = {
|
|
16
|
-
step: 2,
|
|
17
|
-
zIndex: 2e3,
|
|
18
|
-
globalScroll: !1,
|
|
19
|
-
// 是否打开全局滚动监听
|
|
20
|
-
modalFade: !0,
|
|
21
|
-
modalStack: [],
|
|
22
|
-
modalDom: null,
|
|
23
|
-
// 当前model挂载的div.
|
|
24
|
-
hasModal: !1,
|
|
25
|
-
// 当前是否有Modal
|
|
26
|
-
popLockClass: "popup-parent--hidden",
|
|
27
|
-
oldBodyBorder: "",
|
|
28
|
-
viewportWindow: null,
|
|
29
|
-
fixBodyBorder() {
|
|
30
|
-
const e = window.innerWidth - document.documentElement.clientWidth;
|
|
31
|
-
e && (this.oldBodyBorder = document.documentElement.style.borderRight, document.body.style.borderRight = `${e}px solid transparent`);
|
|
32
|
-
},
|
|
33
|
-
resetBodyBorder() {
|
|
34
|
-
document.body.style.borderRight = this.oldBodyBorder, this.oldBodyBorder = "";
|
|
35
|
-
},
|
|
36
|
-
/** 全局反注册 */
|
|
37
|
-
deregister: (e) => {
|
|
38
|
-
e && (m[e] = null, delete m[e]);
|
|
39
|
-
},
|
|
40
|
-
/** 返回全局实例 */
|
|
41
|
-
getInstance: (e) => m[e],
|
|
42
|
-
/** 全局注册 仅vue-popup.ts中使用,instance就是vm, 把vm注册到 vm._popupId 这个键值上 */
|
|
43
|
-
register: (e, o) => {
|
|
44
|
-
e && o && (m[e] = o);
|
|
45
|
-
},
|
|
46
|
-
nextZIndex: () => {
|
|
47
|
-
const e = n.zIndex;
|
|
48
|
-
return n.zIndex += n.step, e;
|
|
49
|
-
},
|
|
50
|
-
/** 打开遮罩层, 仅vue-popup.ts中使用。 dom = vm.$el 或者 undefined (appendtoBody时) */
|
|
51
|
-
openModal(e, o, t, l, r) {
|
|
52
|
-
if (u || !e || o === void 0)
|
|
53
|
-
return;
|
|
54
|
-
this.modalFade = r;
|
|
55
|
-
for (let i = 0, f = this.modalStack.length; i < f; i++)
|
|
56
|
-
if (this.modalStack[i].id === e)
|
|
57
|
-
return;
|
|
58
|
-
const d = h();
|
|
59
|
-
p(d, s.modal), this.modalFade && !n.hasModal && p(d, s.enter), l && l.trim().split(/\s+/).forEach((f) => p(d, f)), setTimeout(() => {
|
|
60
|
-
c(d, s.enter);
|
|
61
|
-
}, 200), o && (d.style.zIndex = o.toString()), d.style.display = "", d.tabIndex = 0;
|
|
62
|
-
let a;
|
|
63
|
-
t && t.parentNode && t.parentNode.nodeType !== 11 ? a = t.parentNode : a = document.body, a.appendChild(d), this.modalStack.push({ id: e, zIndex: o, modalClass: l });
|
|
64
|
-
},
|
|
65
|
-
/** 点击背景遮罩层时,调用栈顶的popup,调用它的close() */
|
|
66
|
-
doOnModalClick: () => {
|
|
67
|
-
const e = n.modalStack, o = e[e.length - 1];
|
|
68
|
-
if (!o)
|
|
69
|
-
return;
|
|
70
|
-
const t = n.getInstance(o.id);
|
|
71
|
-
t && t.closeOnClickModal && typeof t.close == "function" && t.close();
|
|
72
|
-
},
|
|
73
|
-
closeModal(e) {
|
|
74
|
-
const o = this.modalStack, t = h();
|
|
75
|
-
if (o.length > 0) {
|
|
76
|
-
const l = o[o.length - 1];
|
|
77
|
-
if (l.id === e) {
|
|
78
|
-
l.modalClass && l.modalClass.trim().split(/\s+/).forEach((a) => c(t, a)), o.pop();
|
|
79
|
-
const r = o.length;
|
|
80
|
-
r > 0 && (t.style.zIndex = o[r - 1].zIndex.toString());
|
|
81
|
-
} else
|
|
82
|
-
k(o, e);
|
|
83
|
-
}
|
|
84
|
-
o.length === 0 && (this.modalFade && p(t, s.leave), c(document.body, this.popLockClass), this.resetBodyBorder(), setTimeout(() => {
|
|
85
|
-
o.length === 0 && (t.parentNode && t.parentNode.removeChild(t), t.style.display = "none", n.modalDom = null), c(t, s.leave);
|
|
86
|
-
}, 200));
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
h = () => {
|
|
90
|
-
if (u)
|
|
91
|
-
return null;
|
|
92
|
-
let e = n.modalDom;
|
|
93
|
-
return e ? n.hasModal = !0 : (n.hasModal = !1, e = document.createElement("div"), n.modalDom = e, e.addEventListener(
|
|
94
|
-
"touchmove",
|
|
95
|
-
(o) => {
|
|
96
|
-
o.preventDefault(), o.stopPropagation();
|
|
97
|
-
},
|
|
98
|
-
{ passive: !0 }
|
|
99
|
-
), g(e, "click", () => {
|
|
100
|
-
n.doOnModalClick();
|
|
101
|
-
})), e;
|
|
102
|
-
};
|
|
103
|
-
u || g(window, "keydown", (e) => {
|
|
104
|
-
if (e.keyCode === y.Escape) {
|
|
105
|
-
const o = n.modalStack;
|
|
106
|
-
if (o.length > 0) {
|
|
107
|
-
const t = o[o.length - 1];
|
|
108
|
-
if (!t)
|
|
109
|
-
return;
|
|
110
|
-
const l = n.getInstance(t.id);
|
|
111
|
-
l && l.closeOnPressEscape && (l.handleClose ? l.handleClose("esc") : l.handleAction ? l.handleAction("cancel") : l.close());
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
var C = n;
|
|
116
|
-
export {
|
|
117
|
-
C as default
|
|
118
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
function v(i, e, n, f) {
|
|
2
|
-
let t, o = 0;
|
|
3
|
-
typeof e != "boolean" && (f = n, n = e, e = void 0);
|
|
4
|
-
function s() {
|
|
5
|
-
const r = this, c = (/* @__PURE__ */ new Date()).valueOf() - o, p = arguments;
|
|
6
|
-
function u() {
|
|
7
|
-
o = (/* @__PURE__ */ new Date()).valueOf(), n.apply(r, p);
|
|
8
|
-
}
|
|
9
|
-
function m() {
|
|
10
|
-
t = void 0;
|
|
11
|
-
}
|
|
12
|
-
f && !t && u(), t && clearTimeout(t);
|
|
13
|
-
const a = f === void 0;
|
|
14
|
-
a && c > i ? u() : e !== !0 && (t = setTimeout(f ? m : u, a ? i - c : i));
|
|
15
|
-
}
|
|
16
|
-
function l() {
|
|
17
|
-
t && (clearTimeout(t), t = null);
|
|
18
|
-
}
|
|
19
|
-
return s._cancel = l, s;
|
|
20
|
-
}
|
|
21
|
-
export {
|
|
22
|
-
v as default
|
|
23
|
-
};
|