@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,228 +0,0 @@
|
|
|
1
|
-
import { omitText as y } from "../common/string.js";
|
|
2
|
-
const b = `
|
|
3
|
-
height:0 !important;visibility:hidden !important;overflow:hidden !important;
|
|
4
|
-
position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !important
|
|
5
|
-
`, V = [
|
|
6
|
-
"width",
|
|
7
|
-
"line-height",
|
|
8
|
-
"padding-top",
|
|
9
|
-
"padding-bottom",
|
|
10
|
-
"padding-left",
|
|
11
|
-
"padding-right",
|
|
12
|
-
"border-width",
|
|
13
|
-
"box-sizing",
|
|
14
|
-
"letter-spacing",
|
|
15
|
-
"font-family",
|
|
16
|
-
"font-weight",
|
|
17
|
-
"font-size",
|
|
18
|
-
"text-rendering",
|
|
19
|
-
"text-transform",
|
|
20
|
-
"text-indent"
|
|
21
|
-
], f = {
|
|
22
|
-
BoxSizing: "box-sizing",
|
|
23
|
-
BorderBox: "border-box",
|
|
24
|
-
ContentBox: "content-box",
|
|
25
|
-
PaddingTop: "padding-top",
|
|
26
|
-
PaddingBottom: "padding-bottom",
|
|
27
|
-
BorderTopWidth: "border-top-width",
|
|
28
|
-
BorderBottomWidth: "border-bottom-width"
|
|
29
|
-
}, S = typeof window > "u", w = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), C = (e) => () => {
|
|
30
|
-
if (e.inputDisabled)
|
|
31
|
-
return !1;
|
|
32
|
-
e.boxVisibility = !0;
|
|
33
|
-
}, I = ({ props: e }) => () => ({
|
|
34
|
-
textAlign: e.textAlign
|
|
35
|
-
}), B = () => (e) => {
|
|
36
|
-
const t = window.getComputedStyle(e), n = t.getPropertyValue(f.BoxSizing), o = parseFloat(t.getPropertyValue(f.PaddingBottom)) + parseFloat(t.getPropertyValue(f.PaddingTop)), i = parseFloat(t.getPropertyValue(f.BorderBottomWidth)) + parseFloat(t.getPropertyValue(f.BorderTopWidth));
|
|
37
|
-
return { contextStyle: V.map((r) => `${r}:${t.getPropertyValue(r)}`).join(";"), paddingSize: o, borderSize: i, boxSizing: n };
|
|
38
|
-
}, H = ({
|
|
39
|
-
api: e,
|
|
40
|
-
hiddenTextarea: t,
|
|
41
|
-
props: n,
|
|
42
|
-
state: o,
|
|
43
|
-
mode: i,
|
|
44
|
-
constants: l
|
|
45
|
-
}) => (r, a = 1, s = null) => {
|
|
46
|
-
if (!r)
|
|
47
|
-
return {
|
|
48
|
-
minHeight: "",
|
|
49
|
-
height: ""
|
|
50
|
-
};
|
|
51
|
-
t || (t = document.createElement("textarea"), document.body.appendChild(t));
|
|
52
|
-
const { paddingSize: d, borderSize: p, boxSizing: g, contextStyle: m } = e.calculateNodeStyling(r);
|
|
53
|
-
t.setAttribute("style", `${m};${b}`), t.value = r.value || r.placeholder || "";
|
|
54
|
-
let c = t.scrollHeight;
|
|
55
|
-
const h = {};
|
|
56
|
-
i === "mobile" && (c = Math.max(t.scrollHeight, l.TEXTAREA_HEIGHT_MOBILE)), g === f.BorderBox ? c = c + p * 2 + d : g === f.ContentBox && (c = c - d), t.value = "";
|
|
57
|
-
const x = t.scrollHeight - d;
|
|
58
|
-
if (a !== null) {
|
|
59
|
-
let u = x * a;
|
|
60
|
-
g === f.BorderBox && (u = u + d + p), n.size && (u = n.size === "mini" ? u * 0.67 : n.size === "small" ? u : u * 1.17), n.height && (u = n.height), o.isDisplayOnly ? h.minHeight = "0px" : (c = Math.max(u, c), h.minHeight = `${u}px`);
|
|
61
|
-
}
|
|
62
|
-
if (s !== null) {
|
|
63
|
-
let u = x * s;
|
|
64
|
-
g === f.BorderBox && (u += p + d), c = Math.min(u, c);
|
|
65
|
-
}
|
|
66
|
-
return h.height = `${c}px`, t.parentNode && t.parentNode.removeChild(t), t = null, h;
|
|
67
|
-
}, T = (e) => () => e.$refs.input || e.$refs.textarea, $ = (e) => () => e.getInput().blur(), O = (e) => () => e.getInput().focus(), E = (e) => () => e.getInput().select(), D = ({
|
|
68
|
-
api: e,
|
|
69
|
-
componentName: t,
|
|
70
|
-
eventName: n,
|
|
71
|
-
emit: o,
|
|
72
|
-
props: i,
|
|
73
|
-
state: l,
|
|
74
|
-
vm: r
|
|
75
|
-
}) => (a) => {
|
|
76
|
-
l.focused = !1, o("blur", a), e.isMemoryStorage.value = !1, i.validateEvent && e.dispatch(t, n, [i.modelValue]), i.hoverExpand && (r.$refs.textarea.scrollTop = 0);
|
|
77
|
-
}, M = ({ api: e, emit: t, state: n }) => (o) => {
|
|
78
|
-
n.focused = !0, t("focus", o), e.searchMemory(o.target.value);
|
|
79
|
-
}, z = ({ api: e, emit: t, nextTick: n, state: o }) => (i) => {
|
|
80
|
-
o.isComposing || i.target.value !== o.nativeInputValue && (t("update:modelValue", i.target.value), t("input", i), e.searchMemory(i.target.value), n(e.setNativeInputValue));
|
|
81
|
-
}, k = (e) => (t) => e("change", t.target.value), P = ({ api: e, parent: t, vm: n, state: o, props: i }) => () => {
|
|
82
|
-
if (S)
|
|
83
|
-
return;
|
|
84
|
-
const { autosize: l, type: r } = t;
|
|
85
|
-
if (r !== "textarea" || !n.$refs.textarea)
|
|
86
|
-
return;
|
|
87
|
-
if (i.hoverExpand && !o.enteredTextarea) {
|
|
88
|
-
o.textareaCalcStyle = {
|
|
89
|
-
minHeight: o.textareaHeight,
|
|
90
|
-
height: o.textareaHeight
|
|
91
|
-
};
|
|
92
|
-
return;
|
|
93
|
-
}
|
|
94
|
-
if (!l || o.isDisplayOnly) {
|
|
95
|
-
o.textareaCalcStyle = {
|
|
96
|
-
minHeight: e.calcTextareaHeight(n.$refs.textarea).minHeight
|
|
97
|
-
};
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
const a = l.minRows, s = l.maxRows;
|
|
101
|
-
o.textareaCalcStyle = e.calcTextareaHeight(n.$refs.textarea, a, s);
|
|
102
|
-
}, W = ({ api: e, state: t }) => () => {
|
|
103
|
-
const n = e.getInput();
|
|
104
|
-
n && n.value !== t.nativeInputValue && (n.value = t.nativeInputValue);
|
|
105
|
-
}, L = (e) => () => e.isComposing = !0, N = (e) => (t) => {
|
|
106
|
-
const n = t.target.value, o = n[n.length - 1] || "";
|
|
107
|
-
e.isComposing = !w(o);
|
|
108
|
-
}, F = ({ api: e, state: t }) => (n) => {
|
|
109
|
-
t.isComposing && (t.isComposing = !1, e.handleInput(n));
|
|
110
|
-
}, A = ({ vm: e, parent: t }) => (n) => {
|
|
111
|
-
const o = e.$refs[n] ? [e.$refs[n]] : [];
|
|
112
|
-
if (!o.length)
|
|
113
|
-
return;
|
|
114
|
-
let i = null;
|
|
115
|
-
for (let a = 0, s = o.length; a < s; a++)
|
|
116
|
-
if (o[a].parentNode === t.$el) {
|
|
117
|
-
i = o[a];
|
|
118
|
-
break;
|
|
119
|
-
}
|
|
120
|
-
if (!i)
|
|
121
|
-
return;
|
|
122
|
-
const r = { suffix: "append", prefix: "prepend" }[n];
|
|
123
|
-
if (t.$slots[r]) {
|
|
124
|
-
const a = e.$refs[r];
|
|
125
|
-
let s;
|
|
126
|
-
n === "suffix" ? s = `translateX(-${a.offsetWidth}px) translateY(-50%)` : n === "prefix" && (s = `translate(${a.offsetWidth}px, -50%)`), i.style.transform = s;
|
|
127
|
-
} else
|
|
128
|
-
i.removeAttribute("style");
|
|
129
|
-
}, R = (e) => () => {
|
|
130
|
-
e.calcIconOffset("prefix"), e.calcIconOffset("suffix");
|
|
131
|
-
}, Y = (e) => () => {
|
|
132
|
-
e("update:modelValue", ""), e("change", ""), e("clear");
|
|
133
|
-
}, _ = ({ api: e, nextTick: t, state: n }) => () => {
|
|
134
|
-
n.passwordVisible = !n.passwordVisible, t(e.focus);
|
|
135
|
-
}, X = ({ parent: e, props: t, state: n }) => () => e.$slots.suffix || t.suffixIcon || n.showClear || t.showPassword || n.isWordLimitVisible || n.validateState && n.needStatusIcon || t.mask && n.inputDisabled, U = (e) => typeof e == "number" ? String(e).length : (e || "").length, j = ({ emit: e, props: t, state: n }) => (o) => {
|
|
136
|
-
if (t.isSelect) {
|
|
137
|
-
e("update:modelValue", o), e("change", o);
|
|
138
|
-
const i = t.selectMenu.length && t.selectMenu.filter((l) => l.id === o).shift();
|
|
139
|
-
n.checkedLabel = i ? i.label : "";
|
|
140
|
-
}
|
|
141
|
-
}, q = (e) => () => {
|
|
142
|
-
const t = e.getInput();
|
|
143
|
-
return t && t.selectionStart !== t.selectionEnd;
|
|
144
|
-
}, G = ({ state: e, props: t }) => (n, o) => {
|
|
145
|
-
if (o === "textarea" && t.popupMore)
|
|
146
|
-
return;
|
|
147
|
-
const i = o === "textarea" ? n.target.querySelector(".text-box") : n.target;
|
|
148
|
-
if (e.displayOnlyTooltip = "", !i)
|
|
149
|
-
return;
|
|
150
|
-
if (i.scrollWidth > i.offsetWidth || o === "textarea" && i.scrollHeight > i.offsetHeight)
|
|
151
|
-
e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue;
|
|
152
|
-
else {
|
|
153
|
-
let r = !1;
|
|
154
|
-
if (t.mask && e.maskValueVisible) {
|
|
155
|
-
const a = i.textContent, s = window.getComputedStyle(i).font, d = i.getBoundingClientRect(), p = 31, g = (a == null ? void 0 : a.trim()) || "";
|
|
156
|
-
r = y(g, s, d.width - p).o;
|
|
157
|
-
}
|
|
158
|
-
r && (e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue);
|
|
159
|
-
}
|
|
160
|
-
}, K = ({ state: e, props: t }) => () => {
|
|
161
|
-
let n = "";
|
|
162
|
-
const o = t.displayOnlyContent || e.nativeInputValue;
|
|
163
|
-
for (let i = 0; i < o.length; i++)
|
|
164
|
-
n += "*";
|
|
165
|
-
return n;
|
|
166
|
-
}, J = ({ state: e }) => () => e.maskValueVisible ? e.nativeInputValue : e.nativeInputValue && e.maskSymbol, Q = ({ state: e, props: t, nextTick: n, vm: o }) => (i) => {
|
|
167
|
-
n(() => {
|
|
168
|
-
const l = o.$refs.input;
|
|
169
|
-
t.mask && e.nativeInputValue && l && (l.value = e.maskValueVisible || !e.inputDisabled ? e.nativeInputValue : e.maskSymbol), i === "mask" && !t.mask && l && (l.value = e.nativeInputValue);
|
|
170
|
-
});
|
|
171
|
-
}, Z = ({ api: e, state: t, props: n, nextTick: o }) => () => {
|
|
172
|
-
t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !0, o(e.resizeTextarea));
|
|
173
|
-
}, ee = ({ api: e, state: t, props: n, nextTick: o, vm: i }) => () => {
|
|
174
|
-
t.isDragging || n.hoverExpand && !t.isDisplayOnly && (t.enteredTextarea = !1, o(() => {
|
|
175
|
-
e.resizeTextarea(), i.$refs.textarea.scrollTop = 0;
|
|
176
|
-
}));
|
|
177
|
-
}, te = ({ parent: e, state: t, props: n }) => () => {
|
|
178
|
-
const o = n.displayOnlyContent || t.nativeInputValue;
|
|
179
|
-
return (typeof n.showEmptyValue == "boolean" ? n.showEmptyValue : (e.tinyForm || {}).showEmptyValue) ? o : o || "-";
|
|
180
|
-
}, ne = ({ state: e, vm: t }) => (n) => {
|
|
181
|
-
e.timer && clearTimeout(e.timer), e.timer = setTimeout(() => {
|
|
182
|
-
const o = t.$refs && t.$refs.textBox;
|
|
183
|
-
if (o)
|
|
184
|
-
if (n && o.offsetHeight === 0) {
|
|
185
|
-
let i = o.cloneNode(!0);
|
|
186
|
-
i.style.visibility = "hidden", i.style.position = "absolute", i.style.left = "-9999px", document.body.appendChild(i), i.scrollHeight > i.offsetHeight && (e.showMoreBtn = !0), document.body.removeChild(i), i = null;
|
|
187
|
-
} else o.scrollHeight > o.offsetHeight ? e.showMoreBtn = !0 : e.showMoreBtn = !1;
|
|
188
|
-
}, 100);
|
|
189
|
-
}, oe = ({ state: e }) => () => e.isDragging = !0, ie = ({ state: e, api: t }) => (n) => {
|
|
190
|
-
e.isDragging = !1, n && t.handleLeaveTextarea();
|
|
191
|
-
};
|
|
192
|
-
export {
|
|
193
|
-
$ as blur,
|
|
194
|
-
A as calcIconOffset,
|
|
195
|
-
H as calcTextareaHeight,
|
|
196
|
-
B as calculateNodeStyling,
|
|
197
|
-
Y as clear,
|
|
198
|
-
O as focus,
|
|
199
|
-
te as getDisplayOnlyText,
|
|
200
|
-
J as getDisplayedMaskValue,
|
|
201
|
-
T as getInput,
|
|
202
|
-
X as getSuffixVisible,
|
|
203
|
-
D as handleBlur,
|
|
204
|
-
k as handleChange,
|
|
205
|
-
F as handleCompositionEnd,
|
|
206
|
-
L as handleCompositionStart,
|
|
207
|
-
N as handleCompositionUpdate,
|
|
208
|
-
G as handleEnterDisplayOnlyContent,
|
|
209
|
-
Z as handleEnterTextarea,
|
|
210
|
-
M as handleFocus,
|
|
211
|
-
z as handleInput,
|
|
212
|
-
ee as handleLeaveTextarea,
|
|
213
|
-
_ as handlePasswordVisible,
|
|
214
|
-
oe as handleTextareaMouseDown,
|
|
215
|
-
ie as handleTextareaMouseUp,
|
|
216
|
-
q as hasSelection,
|
|
217
|
-
K as hiddenPassword,
|
|
218
|
-
I as inputStyle,
|
|
219
|
-
P as resizeTextarea,
|
|
220
|
-
E as select,
|
|
221
|
-
Q as setInputDomValue,
|
|
222
|
-
W as setNativeInputValue,
|
|
223
|
-
ne as setShowMoreBtn,
|
|
224
|
-
C as showBox,
|
|
225
|
-
U as textLength,
|
|
226
|
-
R as updateIconOffset,
|
|
227
|
-
j as watchFormSelect
|
|
228
|
-
};
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { __spreadProps as w, __spreadValues as M } from "../chunk-G2ADBYYC.js";
|
|
2
|
-
import { textLength as T, handleTextareaMouseUp as z, handleTextareaMouseDown as C, inputStyle as v, handleLeaveTextarea as F, handleEnterTextarea as N, getDisplayOnlyText as L, setInputDomValue as B, handleCompositionUpdate as E, handleCompositionStart as P, calculateNodeStyling as _, getSuffixVisible as A, calcIconOffset as U, watchFormSelect as W, handleChange as $, setShowMoreBtn as H, getInput as j, clear as k, showBox as K, getDisplayedMaskValue as Y, hiddenPassword as q, handleEnterDisplayOnlyContent as G, hasSelection as J, handlePasswordVisible as Q, handleCompositionEnd as R, setNativeInputValue as X, calcTextareaHeight as Z, updateIconOffset as p, resizeTextarea as ee, handleInput as ae, handleFocus as le, handleBlur as te, select as ie, focus as ne, blur as oe } from "./index.js";
|
|
3
|
-
import se from "../tall-storage/vue-storage-box.js";
|
|
4
|
-
import { on as de, off as ue } from "../common/deps/dom.js";
|
|
5
|
-
const Ie = [
|
|
6
|
-
"blur",
|
|
7
|
-
"showBox",
|
|
8
|
-
"clear",
|
|
9
|
-
"focus",
|
|
10
|
-
"state",
|
|
11
|
-
"select",
|
|
12
|
-
"getInput",
|
|
13
|
-
"handleBlur",
|
|
14
|
-
"handleInput",
|
|
15
|
-
"handleFocus",
|
|
16
|
-
"handleChange",
|
|
17
|
-
"calcIconOffset",
|
|
18
|
-
"resizeTextarea",
|
|
19
|
-
"getSuffixVisible",
|
|
20
|
-
"updateIconOffset",
|
|
21
|
-
"calcTextareaHeight",
|
|
22
|
-
"setNativeInputValue",
|
|
23
|
-
"calculateNodeStyling",
|
|
24
|
-
"handleCompositionEnd",
|
|
25
|
-
"handlePasswordVisible",
|
|
26
|
-
"handleCompositionStart",
|
|
27
|
-
"handleCompositionUpdate",
|
|
28
|
-
"addMemory",
|
|
29
|
-
"searchMemory",
|
|
30
|
-
"selectedMemory",
|
|
31
|
-
"storageData",
|
|
32
|
-
"isMemoryStorage",
|
|
33
|
-
"hasSelection",
|
|
34
|
-
"handleEnterDisplayOnlyContent",
|
|
35
|
-
"hiddenPassword",
|
|
36
|
-
"inputStyle",
|
|
37
|
-
"handleEnterTextarea",
|
|
38
|
-
"handleLeaveTextarea",
|
|
39
|
-
"handleTextareaMouseDown",
|
|
40
|
-
"handleTextareaMouseUp"
|
|
41
|
-
], re = ({
|
|
42
|
-
reactive: t,
|
|
43
|
-
computed: e,
|
|
44
|
-
mode: o,
|
|
45
|
-
props: a,
|
|
46
|
-
parent: l,
|
|
47
|
-
constants: d,
|
|
48
|
-
api: s,
|
|
49
|
-
vm: r,
|
|
50
|
-
designConfig: n
|
|
51
|
-
}) => {
|
|
52
|
-
const i = t({
|
|
53
|
-
mode: o,
|
|
54
|
-
maskSymbol: d.MASKSYMBOL,
|
|
55
|
-
focused: !1,
|
|
56
|
-
hovering: !1,
|
|
57
|
-
isComposing: !1,
|
|
58
|
-
passwordVisible: !1,
|
|
59
|
-
maskValueVisible: !1,
|
|
60
|
-
boxVisibility: !1,
|
|
61
|
-
textareaCalcStyle: {},
|
|
62
|
-
checkedLabel: "",
|
|
63
|
-
enteredTextarea: !1,
|
|
64
|
-
sheetvalue: a.modelValue,
|
|
65
|
-
inputSize: e(() => a.size || i.formItemSize || (l.tinyForm || {}).size),
|
|
66
|
-
inputSizeMf: e(() => a.size || i.formItemSize || (l.tinyForm || {}).size),
|
|
67
|
-
showClear: e(
|
|
68
|
-
() => {
|
|
69
|
-
var f;
|
|
70
|
-
return a.clearable && !i.inputDisabled && !a.readonly && i.nativeInputValue && (!((f = n == null ? void 0 : n.options) != null && f.isCloseIconHide) || i.focused || i.hovering);
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
textareaHeight: r.theme === "saas" ? "28px" : "30px",
|
|
74
|
-
upperLimit: e(() => l.$attrs.maxlength),
|
|
75
|
-
textLength: e(() => T(a.modelValue)),
|
|
76
|
-
inputExceed: e(() => i.isWordLimitVisible && i.textLength > i.upperLimit),
|
|
77
|
-
formItemSize: e(() => (l.formItem || {}).formItemSize),
|
|
78
|
-
validateIcon: e(() => d.VALIDATE_ICON[i.validateState]),
|
|
79
|
-
showWordLimit: e(() => a.showWordLimit && l.$attrs.maxlength),
|
|
80
|
-
inputDisabled: e(
|
|
81
|
-
() => a.disabled || (l.tinyForm || {}).disabled || i.isDisplayOnly || (l.tinyForm || {}).displayOnly
|
|
82
|
-
),
|
|
83
|
-
validateState: e(() => l.formItem ? l.formItem.validateState : ""),
|
|
84
|
-
inputStyle: e(() => s.inputStyle()),
|
|
85
|
-
textareaStyle: e(() => w(M({}, i.textareaCalcStyle), {
|
|
86
|
-
resize: a.resize,
|
|
87
|
-
textAlign: a.textAlign
|
|
88
|
-
})),
|
|
89
|
-
needStatusIcon: e(() => l.tinyForm ? l.tinyForm.statusIcon : !1),
|
|
90
|
-
showPwdVisible: e(
|
|
91
|
-
() => a.showPassword && !i.inputDisabled && !a.readonly && (!!i.nativeInputValue || i.focused)
|
|
92
|
-
),
|
|
93
|
-
nativeInputValue: e(
|
|
94
|
-
() => a.modelValue === null || a.modelValue === void 0 ? "" : String(a.modelValue)
|
|
95
|
-
),
|
|
96
|
-
tooltipConfig: e(() => l.tinyForm ? l.tinyForm.tooltipConfig : {}),
|
|
97
|
-
isWordLimitVisible: e(
|
|
98
|
-
() => (a.showWordLimit && l.$attrs.maxlength || a.counter) && (l.type === "text" || l.type === "textarea") && !i.inputDisabled && !a.readonly && !a.showPassword
|
|
99
|
-
),
|
|
100
|
-
isDisplayOnly: e(
|
|
101
|
-
() => (a.displayOnly || (l.tinyForm || {}).displayOnly) && ["text", "textarea", "password", "number"].includes(a.type)
|
|
102
|
-
),
|
|
103
|
-
displayOnlyTooltip: "",
|
|
104
|
-
showMoreBtn: !1,
|
|
105
|
-
showDisplayOnlyBox: !1,
|
|
106
|
-
timer: null,
|
|
107
|
-
hiddenPassword: e(() => s.hiddenPassword()),
|
|
108
|
-
displayedMaskValue: e(() => s.getDisplayedMaskValue()),
|
|
109
|
-
displayOnlyText: e(() => s.getDisplayOnlyText()),
|
|
110
|
-
isDragging: !1
|
|
111
|
-
});
|
|
112
|
-
return i;
|
|
113
|
-
}, he = ({
|
|
114
|
-
api: t,
|
|
115
|
-
state: e,
|
|
116
|
-
dispatch: o,
|
|
117
|
-
broadcast: a,
|
|
118
|
-
emit: l,
|
|
119
|
-
vm: d,
|
|
120
|
-
props: s,
|
|
121
|
-
parent: r,
|
|
122
|
-
nextTick: n
|
|
123
|
-
}) => {
|
|
124
|
-
Object.assign(t, {
|
|
125
|
-
state: e,
|
|
126
|
-
dispatch: o,
|
|
127
|
-
broadcast: a,
|
|
128
|
-
showBox: K(e),
|
|
129
|
-
clear: k(l),
|
|
130
|
-
getInput: j(d),
|
|
131
|
-
setShowMoreBtn: H({ state: e, vm: d }),
|
|
132
|
-
handleChange: $(l),
|
|
133
|
-
watchFormSelect: W({ emit: l, props: s, state: e }),
|
|
134
|
-
calcIconOffset: U({ vm: d, parent: r }),
|
|
135
|
-
getSuffixVisible: A({ parent: r, props: s, state: e }),
|
|
136
|
-
calculateNodeStyling: _(),
|
|
137
|
-
handleCompositionStart: P(e),
|
|
138
|
-
handleCompositionUpdate: E(e),
|
|
139
|
-
setInputDomValue: B({ state: e, props: s, nextTick: n, vm: d }),
|
|
140
|
-
getDisplayOnlyText: L({ parent: r, props: s, state: e }),
|
|
141
|
-
handleEnterTextarea: N({ api: t, state: e, props: s, nextTick: n }),
|
|
142
|
-
handleLeaveTextarea: F({ api: t, state: e, props: s, nextTick: n, vm: d }),
|
|
143
|
-
inputStyle: v({ props: s }),
|
|
144
|
-
handleTextareaMouseDown: C({ state: e }),
|
|
145
|
-
handleTextareaMouseUp: z({ state: e, api: t })
|
|
146
|
-
});
|
|
147
|
-
}, ye = ({
|
|
148
|
-
storages: t,
|
|
149
|
-
api: e,
|
|
150
|
-
componentName: o,
|
|
151
|
-
props: a,
|
|
152
|
-
emit: l,
|
|
153
|
-
eventName: d,
|
|
154
|
-
nextTick: s,
|
|
155
|
-
parent: r,
|
|
156
|
-
state: n,
|
|
157
|
-
vm: i,
|
|
158
|
-
mode: f,
|
|
159
|
-
constants: h
|
|
160
|
-
}) => {
|
|
161
|
-
const { storageData: m, isMemoryStorage: x, addMemory: y, searchMemory: I, selectedMemory: g } = t;
|
|
162
|
-
return Object.assign(e, {
|
|
163
|
-
addMemory: y,
|
|
164
|
-
storageData: m,
|
|
165
|
-
searchMemory: I,
|
|
166
|
-
selectedMemory: g,
|
|
167
|
-
isMemoryStorage: x,
|
|
168
|
-
blur: oe(e),
|
|
169
|
-
focus: ne(e),
|
|
170
|
-
select: ie(e),
|
|
171
|
-
handleBlur: te({
|
|
172
|
-
api: e,
|
|
173
|
-
componentName: o,
|
|
174
|
-
emit: l,
|
|
175
|
-
eventName: d.blur,
|
|
176
|
-
props: a,
|
|
177
|
-
state: n,
|
|
178
|
-
vm: i
|
|
179
|
-
}),
|
|
180
|
-
handleFocus: le({ api: e, emit: l, state: n }),
|
|
181
|
-
handleInput: ae({ api: e, emit: l, nextTick: s, state: n }),
|
|
182
|
-
resizeTextarea: ee({ api: e, parent: r, vm: i, state: n, props: a }),
|
|
183
|
-
updateIconOffset: p(e),
|
|
184
|
-
calcTextareaHeight: Z({
|
|
185
|
-
api: e,
|
|
186
|
-
hiddenTextarea: null,
|
|
187
|
-
props: a,
|
|
188
|
-
state: n,
|
|
189
|
-
mode: f,
|
|
190
|
-
constants: h
|
|
191
|
-
}),
|
|
192
|
-
setNativeInputValue: X({ api: e, state: n }),
|
|
193
|
-
handleCompositionEnd: R({ api: e, state: n }),
|
|
194
|
-
handlePasswordVisible: Q({ api: e, nextTick: s, state: n }),
|
|
195
|
-
hasSelection: J(e),
|
|
196
|
-
handleEnterDisplayOnlyContent: G({ state: n, props: a }),
|
|
197
|
-
hiddenPassword: q({ state: n, props: a }),
|
|
198
|
-
getDisplayedMaskValue: Y({ state: n })
|
|
199
|
-
});
|
|
200
|
-
}, fe = ({
|
|
201
|
-
watch: t,
|
|
202
|
-
state: e,
|
|
203
|
-
api: o,
|
|
204
|
-
props: a,
|
|
205
|
-
nextTick: l,
|
|
206
|
-
emit: d,
|
|
207
|
-
componentName: s,
|
|
208
|
-
eventName: r
|
|
209
|
-
}) => {
|
|
210
|
-
t(
|
|
211
|
-
() => a.modelValue,
|
|
212
|
-
(n) => {
|
|
213
|
-
e.mode === "mobile" && (e.sheetvalue = n, d("update:modelValue", n)), l(o.resizeTextarea), a.validateEvent && o.dispatch(s, r.change, [n]), a.type === "textarea" && a.popupMore && e.isDisplayOnly && o.setShowMoreBtn(), o.setInputDomValue();
|
|
214
|
-
}
|
|
215
|
-
), t(() => e.maskValueVisible, o.setInputDomValue), t(() => e.inputDisabled, o.setInputDomValue), t(
|
|
216
|
-
() => a.mask,
|
|
217
|
-
() => {
|
|
218
|
-
o.setInputDomValue("mask");
|
|
219
|
-
}
|
|
220
|
-
), t(
|
|
221
|
-
() => a.size,
|
|
222
|
-
() => l(o.resizeTextarea),
|
|
223
|
-
{ immediate: !0 }
|
|
224
|
-
), t(
|
|
225
|
-
() => e.nativeInputValue,
|
|
226
|
-
() => {
|
|
227
|
-
o.setNativeInputValue();
|
|
228
|
-
}
|
|
229
|
-
), t(
|
|
230
|
-
() => a.type,
|
|
231
|
-
() => {
|
|
232
|
-
l(() => {
|
|
233
|
-
o.setNativeInputValue(), o.resizeTextarea(), o.updateIconOffset();
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
), t(
|
|
237
|
-
() => e.isDisplayOnly,
|
|
238
|
-
() => {
|
|
239
|
-
l(() => {
|
|
240
|
-
o.setNativeInputValue(), o.resizeTextarea(), o.updateIconOffset();
|
|
241
|
-
});
|
|
242
|
-
}
|
|
243
|
-
), t(
|
|
244
|
-
() => e.sheetvalue,
|
|
245
|
-
(n) => o.watchFormSelect(n),
|
|
246
|
-
{ immediate: !0 }
|
|
247
|
-
);
|
|
248
|
-
}, Se = (t, { computed: e, onMounted: o, onBeforeUnmount: a, onUpdated: l, reactive: d, toRefs: s, watch: r, inject: n }, { vm: i, refs: f, parent: h, emit: m, constants: x, nextTick: y, broadcast: I, dispatch: g, mode: S, designConfig: D }) => {
|
|
249
|
-
const u = {}, V = x.COMPONENT_NAME.FormItem, b = { change: "form.change", blur: "form.blur" }, c = re({ reactive: d, computed: e, mode: S, props: t, parent: h, constants: x, api: u, vm: i, designConfig: D });
|
|
250
|
-
he({ api: u, state: c, dispatch: g, broadcast: I, emit: m, props: t, parent: h, vm: i, nextTick: y });
|
|
251
|
-
const O = se({ api: u, props: t, reactive: d, toRefs: s });
|
|
252
|
-
return h.tinyForm = h.tinyForm || n("form", null), ye({ api: u, storages: O, componentName: V, emit: m, eventName: b, props: t, state: c, nextTick: y, parent: h, vm: i, mode: S, constants: x }), fe({ watch: r, state: c, api: u, props: t, nextTick: y, emit: m, componentName: V, eventName: b }), o(() => {
|
|
253
|
-
u.setNativeInputValue(), u.resizeTextarea(), u.updateIconOffset(), u.setInputDomValue(), g("Select", "input-mounted", i.$el), g("Tooltip", "tooltip-update", i.$el), t.type === "textarea" && t.popupMore && c.isDisplayOnly && (u.setShowMoreBtn(!0), de(window, "resize", u.setShowMoreBtn)), i.$attrs.autofocus && u.focus();
|
|
254
|
-
}), a(() => {
|
|
255
|
-
t.type === "textarea" && t.popupMore && c.isDisplayOnly && ue(window, "resize", u.setShowMoreBtn);
|
|
256
|
-
}), l(() => {
|
|
257
|
-
y(u.updateIconOffset);
|
|
258
|
-
}), u;
|
|
259
|
-
};
|
|
260
|
-
export {
|
|
261
|
-
Ie as api,
|
|
262
|
-
Se as renderless
|
|
263
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { KEY_CODE as i } from "../common/index.js";
|
|
2
|
-
const h = (t) => (t && t.preventDefault ? t.preventDefault() : window.event.returnValue = !1, !1), y = ({ emit: t, state: e }) => (r) => {
|
|
3
|
-
e.hoverValue = "", t("selected", r);
|
|
4
|
-
}, d = ({ emit: t, props: e, state: r }) => () => {
|
|
5
|
-
const l = window.event.keyCode, a = e.localstorageData.indexOf(r.hoverValue), o = e.localstorageData.length - 1;
|
|
6
|
-
if (l === i.ArrowUp && e.isMemoryStorage)
|
|
7
|
-
return a > 0 && a <= o ? r.hoverValue = e.localstorageData[a - 1] : r.hoverValue = e.localstorageData[o], !1;
|
|
8
|
-
if (l === i.ArrowDown && e.isMemoryStorage)
|
|
9
|
-
return a >= 0 && a < o ? r.hoverValue = e.localstorageData[a + 1] : r.hoverValue = e.localstorageData[0], !1;
|
|
10
|
-
l === i.NumpadEnter && e.isMemoryStorage && r.hoverValue && r.hoverValue.length > 0 && t("selected", r.hoverValue);
|
|
11
|
-
}, g = (t, e = 5) => {
|
|
12
|
-
const r = t.length;
|
|
13
|
-
let l = [], a = {};
|
|
14
|
-
for (let o = 0, n = 1; n <= e && !(o < 0 || o >= r || (a[t[o]] ? n = n - 1 : (a[t[o]] = !0, l.push(t[o])), n === r)); n++)
|
|
15
|
-
o++;
|
|
16
|
-
return l;
|
|
17
|
-
}, f = (t, e) => {
|
|
18
|
-
if (typeof t == "string")
|
|
19
|
-
try {
|
|
20
|
-
const r = JSON.parse(t);
|
|
21
|
-
return !!(typeof r == "object" && r && (!e || r.constructor === e));
|
|
22
|
-
} catch {
|
|
23
|
-
return !1;
|
|
24
|
-
}
|
|
25
|
-
}, u = (t, e, r = 5) => {
|
|
26
|
-
if (typeof e == "string") {
|
|
27
|
-
const l = localStorage.getItem(t), a = f(l, Array);
|
|
28
|
-
let o = "";
|
|
29
|
-
if (l && a) {
|
|
30
|
-
let n = JSON.parse(localStorage.getItem(t));
|
|
31
|
-
n.unshift(e), n = g(n, r), o = JSON.stringify(n);
|
|
32
|
-
} else l === null || l === e ? o = JSON.stringify([e]) : o = JSON.stringify([e, l]);
|
|
33
|
-
localStorage.setItem(t, o);
|
|
34
|
-
}
|
|
35
|
-
}, S = (t) => (e) => {
|
|
36
|
-
t.name && (e != null && e.trim()) && u(t.name, e, t.memorySpace);
|
|
37
|
-
}, D = ({ props: t, state: e }) => (r) => {
|
|
38
|
-
if (!t.name)
|
|
39
|
-
return;
|
|
40
|
-
const l = localStorage.getItem(t.name);
|
|
41
|
-
let a = [], o = !0;
|
|
42
|
-
if (f(l)) {
|
|
43
|
-
const n = JSON.parse(l);
|
|
44
|
-
if (!r)
|
|
45
|
-
a = JSON.parse(l);
|
|
46
|
-
else
|
|
47
|
-
for (let s = 0, c = n.length; s < c; s++)
|
|
48
|
-
n[s].includes(r) && a.push(n[s]);
|
|
49
|
-
a.length === 0 && (o = !1);
|
|
50
|
-
} else
|
|
51
|
-
l === null ? o = !1 : a.push(l);
|
|
52
|
-
e.storageData = a, e.isMemoryStorage = o;
|
|
53
|
-
}, w = ({ api: t, state: e }) => (r) => {
|
|
54
|
-
t.getInput().value = r, t.handleInput({ target: { value: r } }), t.handleChange({ target: { value: r } }), e.isMemoryStorage = !1;
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
S as addMemory,
|
|
58
|
-
d as keydown,
|
|
59
|
-
h as mousedown,
|
|
60
|
-
D as searchMemory,
|
|
61
|
-
y as selectItem,
|
|
62
|
-
w as selectedMemory
|
|
63
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { __spreadProps as s, __spreadValues as m } from "../chunk-G2ADBYYC.js";
|
|
2
|
-
import { selectedMemory as d, searchMemory as y, addMemory as M } from "./index.js";
|
|
3
|
-
var c = ({ api: a, props: r, reactive: o, toRefs: t }) => {
|
|
4
|
-
const e = o({
|
|
5
|
-
storageData: [],
|
|
6
|
-
isMemoryStorage: !1
|
|
7
|
-
});
|
|
8
|
-
return s(m({}, t(e)), {
|
|
9
|
-
addMemory: M(r),
|
|
10
|
-
searchMemory: y({ props: r, state: e }),
|
|
11
|
-
selectedMemory: d({ api: a, state: e })
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
c as default
|
|
16
|
-
};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { keydown as a, selectItem as c, mousedown as u } from "./index.js";
|
|
2
|
-
import { off as w, on as l } from "../common/deps/dom.js";
|
|
3
|
-
const k = ["state", "mousedown", "selectItem"], f = (t, { onUnmounted: r, reactive: m, watch: s }, { emit: n }) => {
|
|
4
|
-
const e = m({
|
|
5
|
-
hoverValue: ""
|
|
6
|
-
}), o = {
|
|
7
|
-
state: e,
|
|
8
|
-
mousedown: u,
|
|
9
|
-
selectItem: c({ emit: n, state: e }),
|
|
10
|
-
keydown: a({ emit: n, props: t, state: e })
|
|
11
|
-
};
|
|
12
|
-
return s(
|
|
13
|
-
() => t.isMemoryStorage,
|
|
14
|
-
(d) => !d && (e.hoverValue = ""),
|
|
15
|
-
{ immediate: !0 }
|
|
16
|
-
), r(() => {
|
|
17
|
-
e.hoverValue = "", w(document, "keydown", o.keydown);
|
|
18
|
-
}), l(document, "keydown", o.keydown), o;
|
|
19
|
-
};
|
|
20
|
-
export {
|
|
21
|
-
k as api,
|
|
22
|
-
f as renderless
|
|
23
|
-
};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import d from "../common/deps/debounce.js";
|
|
2
|
-
import { on as r, addClass as f, removeClass as p, off as c } from "../common/deps/dom.js";
|
|
3
|
-
const h = ({ api: e, state: o, props: t }) => (n) => {
|
|
4
|
-
const u = n && n.type === "mouseenter" ? 200 : 0;
|
|
5
|
-
if (t.visible === "auto") {
|
|
6
|
-
const { clientWidth: i, scrollWidth: s } = o.referenceElm;
|
|
7
|
-
if (s <= i)
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
e.setExpectedState(!0), e.handleShowPopper(u);
|
|
11
|
-
}, b = (e) => () => {
|
|
12
|
-
e.setExpectedState(!1), e.debounceClose();
|
|
13
|
-
}, g = ({ api: e, state: o }) => () => {
|
|
14
|
-
o.focusing = !0, e.show();
|
|
15
|
-
}, w = ({ api: e, state: o }) => () => {
|
|
16
|
-
o.focusing = !1, e.hide();
|
|
17
|
-
}, y = ({ api: e, state: o }) => () => {
|
|
18
|
-
o.focusing = !1, e.show();
|
|
19
|
-
}, P = ({ props: e, state: o }) => (t) => {
|
|
20
|
-
!o.expectedState || e.manual || (clearTimeout(o.timeout), o.timeout = window.setTimeout(() => {
|
|
21
|
-
o.showPopper = !0;
|
|
22
|
-
}, e.openDelay || t), e.hideAfter > 0 && (o.timeoutPending = window.setTimeout(() => {
|
|
23
|
-
o.showPopper = !1;
|
|
24
|
-
}, e.hideAfter)));
|
|
25
|
-
}, E = ({ api: e, props: o, state: t }) => () => {
|
|
26
|
-
o.enterable && t.expectedState || o.manual || (clearTimeout(t.timeout), t.timeoutPending && clearTimeout(t.timeoutPending), t.showPopper = !1, o.disabled && e.doDestroy());
|
|
27
|
-
}, x = ({ props: e, api: o, state: t, popperVmRef: n }) => (l) => {
|
|
28
|
-
if (e.manual)
|
|
29
|
-
return;
|
|
30
|
-
const u = t.referenceElm, i = n.popper;
|
|
31
|
-
!i || !u || i.contains(l.target) || u.contains(l.target) || t.showPopper && (o.setExpectedState(!1), o.debounceClose());
|
|
32
|
-
}, C = ({ state: e }) => (o) => {
|
|
33
|
-
e.expectedState === !1 && clearTimeout(e.timeoutPending), e.expectedState = o;
|
|
34
|
-
}, S = ({ state: e, api: o, vm: t }) => () => {
|
|
35
|
-
const n = e.referenceElm;
|
|
36
|
-
e.showPopper = !1, n && n.nodeType === 1 && (c(document, "click", o.handleDocumentClick), c(n, "mouseenter", o.show), c(n, "mouseleave", o.hide), c(n, "focus", o.focusHandler), c(n, "blur", o.handleBlur), c(n, "click", o.removeFocusing)), t.popperVM && (typeof t.popperVM.$destroy == "function" && t.popperVM.$destroy(), t.popperVM = null);
|
|
37
|
-
}, T = ({ api: e, props: o }) => d(o.closeDelay, () => {
|
|
38
|
-
e.handleClosePopper();
|
|
39
|
-
}), $ = (e) => (o) => {
|
|
40
|
-
o ? f(e.referenceElm, "focusing") : p(e.referenceElm, "focusing");
|
|
41
|
-
}, D = ({ slots: e, api: o }) => () => {
|
|
42
|
-
if (!e.default || !e.default().length) {
|
|
43
|
-
o.handleFocus();
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
let t = e.default()[0];
|
|
47
|
-
t = t.elm || t.el, t && t.focus ? t.focus() : o.handleFocus();
|
|
48
|
-
}, k = ({ api: e, state: o, vm: t }) => (n) => {
|
|
49
|
-
let l = null;
|
|
50
|
-
t.$el.nodeType === 8 ? l = n : t.$el.nodeType === 1 && (l = t.$el), !(!l || l.nodeType === 8 || o.referenceElm) && (o.referenceElm = l, l.setAttribute("aria-describedby", o.tooltipId), l.setAttribute("tabindex", o.tabindex.toString()), r(document, "click", e.handleDocumentClick), r(l, "mouseenter", e.show), r(l, "mouseleave", e.hide), r(l, "focus", e.focusHandler), r(l, "blur", e.handleBlur), r(l, "click", e.removeFocusing));
|
|
51
|
-
}, F = ({ state: e, popperVmRef: o }) => (t) => {
|
|
52
|
-
for (let n of t)
|
|
53
|
-
n.type === "attributes" && n.attributeName === "x-placement" && (e.xPlacement = o.popper.getAttribute("x-placement") || "bottom");
|
|
54
|
-
}, M = ({ vm: e, nextTick: o, popperVmRef: t }) => (n) => {
|
|
55
|
-
o(() => e.bindEvent(n));
|
|
56
|
-
let l = e.popperVM;
|
|
57
|
-
e.$refs.popper ? t.popper = e.$refs.popper : t.popper = l.$el, o(() => {
|
|
58
|
-
e.modelValue && e.updatePopper();
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
export {
|
|
62
|
-
k as bindEvent,
|
|
63
|
-
M as bindPopper,
|
|
64
|
-
T as debounceClose,
|
|
65
|
-
S as destroyed,
|
|
66
|
-
D as focusHandler,
|
|
67
|
-
w as handleBlur,
|
|
68
|
-
E as handleClosePopper,
|
|
69
|
-
x as handleDocumentClick,
|
|
70
|
-
g as handleFocus,
|
|
71
|
-
P as handleShowPopper,
|
|
72
|
-
b as hide,
|
|
73
|
-
F as observeCallback,
|
|
74
|
-
y as removeFocusing,
|
|
75
|
-
C as setExpectedState,
|
|
76
|
-
h as show,
|
|
77
|
-
$ as watchFocusing
|
|
78
|
-
};
|