@opentiny/tiny-robot 0.1.0-alpha.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/{bubble-item → bubble}/components/actions/copy.vue.d.ts +3 -3
  2. package/dist/{bubble-item → bubble}/components/actions/refresh.vue.d.ts +1 -1
  3. package/dist/bubble/index.d.ts +12 -0
  4. package/dist/bubble/index.type.d.ts +53 -0
  5. package/dist/bubble/useScroll.d.ts +4 -0
  6. package/dist/index.d.ts +9 -5
  7. package/dist/index.js +25 -18
  8. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  9. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  10. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/index.js +21 -21
  11. package/dist/node_modules/.pnpm/{@opentiny_vue-button@3.22.0 → @opentiny_vue-button@3.21.0}/node_modules/@opentiny/vue-button/lib/pc.js +3 -3
  12. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  13. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  14. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/index.js +9 -9
  15. package/dist/node_modules/.pnpm/{@opentiny_vue-dialog-box@3.22.0 → @opentiny_vue-dialog-box@3.21.0}/node_modules/@opentiny/vue-dialog-box/lib/pc.js +5 -5
  16. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  17. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeclose.js +1 -1
  18. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/eyeopen.js +1 -1
  19. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/finish.js +1 -1
  20. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/fullscreen.js +1 -1
  21. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/loading-shadow.js +21 -22
  22. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/minscreen.js +1 -1
  23. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-after.js +1 -1
  24. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-column-before.js +1 -1
  25. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-after.js +1 -1
  26. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-add-row-before.js +1 -1
  27. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-center.js +1 -1
  28. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-left.js +1 -1
  29. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-align-right.js +1 -1
  30. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-bold.js +1 -1
  31. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-block.js +1 -1
  32. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-code-view.js +1 -1
  33. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-color.js +1 -1
  34. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-column.js +1 -1
  35. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-row.js +1 -1
  36. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-delete-table.js +1 -1
  37. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-font-size.js +1 -1
  38. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-format-clear.js +1 -1
  39. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h1.js +1 -1
  40. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h2.js +1 -1
  41. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h3.js +1 -1
  42. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h4.js +1 -1
  43. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h5.js +1 -1
  44. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-h6.js +1 -1
  45. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-heading.js +1 -1
  46. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-high-light.js +1 -1
  47. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-image.js +1 -1
  48. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-italic.js +1 -1
  49. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-line-height.js +1 -1
  50. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link-unlink.js +1 -1
  51. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-link.js +1 -1
  52. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-ordered.js +1 -1
  53. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-list-unordered.js +1 -1
  54. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells-vertical.js +1 -1
  55. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-merge-cells.js +1 -1
  56. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-node-delete.js +1 -1
  57. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-paragraph.js +1 -1
  58. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-quote-text.js +1 -1
  59. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-redo.js +1 -1
  60. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-horizontal.js +1 -1
  61. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-split-cells-vertical.js +1 -1
  62. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-strike-through.js +1 -1
  63. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-subscript.js +1 -1
  64. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-superscript.js +1 -1
  65. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-table.js +1 -1
  66. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-task-list.js +1 -1
  67. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-underline.js +1 -1
  68. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/rich-text-undo.js +1 -1
  69. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/sub-script.js +1 -1
  70. package/dist/node_modules/.pnpm/{@opentiny_vue-icon@3.22.0 → @opentiny_vue-icon@3.21.0}/node_modules/@opentiny/vue-icon/lib/warn.js +1 -1
  71. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/index.js +3 -3
  72. package/dist/node_modules/.pnpm/{@opentiny_vue-input@3.22.0 → @opentiny_vue-input@3.21.0}/node_modules/@opentiny/vue-input/lib/pc.js +36 -36
  73. package/dist/node_modules/.pnpm/{@opentiny_vue-locale@3.22.0 → @opentiny_vue-locale@3.21.0}/node_modules/@opentiny/vue-locale/lib/index.js +63 -63
  74. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/index.js +1 -1
  75. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  76. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  77. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  94. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/dialog-box/vue.js +33 -34
  95. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/index.js +22 -22
  96. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/input/vue.js +9 -9
  97. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/index.js +1 -1
  98. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue.js +5 -5
  99. package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tooltip/index.js +41 -40
  100. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  101. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/index.js +3 -6
  102. package/dist/node_modules/.pnpm/{@opentiny_vue-tooltip@3.22.0 → @opentiny_vue-tooltip@3.21.0}/node_modules/@opentiny/vue-tooltip/lib/pc.js +2 -2
  103. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  104. package/dist/packages/components/src/bubble/bubble-list.vue2.js +38 -0
  105. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  106. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  107. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  108. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  109. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  110. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  111. package/dist/packages/components/src/bubble/index.js +18 -0
  112. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  113. package/dist/packages/components/src/conversations/index.js +1 -1
  114. package/dist/packages/components/src/prompts/index.js +18 -0
  115. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  116. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  117. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  118. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  119. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  120. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  121. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  122. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  123. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  124. package/dist/packages/components/src/question/index.js +9 -0
  125. package/dist/packages/components/src/question/index.vue.js +113 -0
  126. package/dist/packages/components/src/question/index.vue2.js +4 -0
  127. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  128. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  129. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  130. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  131. package/dist/packages/components/src/sender/index.vue.js +67 -66
  132. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  133. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  134. package/dist/packages/svgs/dist/tiny-robot-svgs.js +144 -0
  135. package/dist/prompts/index.d.ts +12 -0
  136. package/dist/prompts/index.type.d.ts +55 -0
  137. package/dist/prompts/prompt.vue.d.ts +3 -0
  138. package/dist/prompts/prompts.vue.d.ts +20 -0
  139. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  140. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  141. package/dist/question/composables/useQuestions.d.ts +17 -0
  142. package/dist/question/index.d.ts +7 -0
  143. package/dist/question/index.type.d.ts +74 -0
  144. package/dist/question/index.vue.d.ts +46 -0
  145. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  146. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  147. package/dist/sender/index.type.d.ts +1 -1
  148. package/dist/sender/index.vue.d.ts +1 -2
  149. package/dist/style.css +1 -1
  150. package/dist/welcome/index.type.d.ts +10 -0
  151. package/dist/welcome/index.vue.d.ts +17 -1
  152. package/package.json +5 -3
  153. package/src/bubble/bubble-list.vue +44 -0
  154. package/src/bubble/bubble.vue +247 -0
  155. package/src/bubble/components/actions/copy.vue +54 -0
  156. package/src/bubble/components/actions/refresh.vue +31 -0
  157. package/src/bubble/index.ts +23 -0
  158. package/src/bubble/index.type.ts +63 -0
  159. package/src/bubble/useScroll.ts +14 -0
  160. package/src/conversations/index.ts +1 -1
  161. package/src/index.ts +23 -12
  162. package/src/prompts/index.ts +25 -0
  163. package/src/prompts/index.type.ts +59 -0
  164. package/src/prompts/prompt.vue +115 -0
  165. package/src/prompts/prompts.vue +50 -0
  166. package/src/question/components/CommonQuestions.vue +146 -0
  167. package/src/question/components/HotQuestions.vue +148 -0
  168. package/src/question/composables/useQuestions.ts +106 -0
  169. package/src/question/index.less +448 -0
  170. package/src/question/index.ts +12 -0
  171. package/src/question/index.type.ts +86 -0
  172. package/src/question/index.vue +140 -0
  173. package/src/question/vars.less +135 -0
  174. package/src/sender/components/ActionButtons.vue +42 -39
  175. package/src/sender/composables/useInputHandler.ts +15 -10
  176. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  177. package/src/sender/composables/useSpeechHandler.ts +5 -11
  178. package/src/sender/index.less +3 -5
  179. package/src/sender/index.type.ts +1 -1
  180. package/src/sender/index.vue +3 -2
  181. package/src/welcome/index.type.ts +12 -0
  182. package/src/welcome/index.vue +68 -2
  183. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  184. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  185. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  186. package/dist/bubble-item/index.d.ts +0 -7
  187. package/dist/bubble-list/index.d.ts +0 -8
  188. package/dist/bubble-list/index.type.d.ts +0 -55
  189. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  190. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  191. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  192. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  193. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  194. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  195. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  196. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  197. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  198. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  199. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  200. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  201. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  202. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  203. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  208. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  209. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  210. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  211. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  212. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  213. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  214. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  215. package/dist/packages/components/src/bubble-item/index.js +0 -9
  216. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  217. package/dist/packages/components/src/bubble-list/index.js +0 -9
  218. package/src/bubble-item/bubble-item.vue +0 -264
  219. package/src/bubble-item/components/actions/copy.vue +0 -47
  220. package/src/bubble-item/components/actions/refresh.vue +0 -27
  221. package/src/bubble-item/components/icons/ai.vue +0 -30
  222. package/src/bubble-item/components/icons/index.ts +0 -2
  223. package/src/bubble-item/components/icons/user.vue +0 -78
  224. package/src/bubble-item/index.ts +0 -12
  225. package/src/bubble-list/bubble-list.vue +0 -53
  226. package/src/bubble-list/index.ts +0 -14
  227. package/src/bubble-list/index.type.ts +0 -65
  228. package/src/sender/global.d.ts +0 -44
  229. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  230. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  231. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/button/vue.js +0 -0
  232. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/chunk-G2ADBYYC.js +0 -0
  233. /package/dist/node_modules/.pnpm/{@opentiny_vue-renderless@3.22.0 → @opentiny_vue-renderless@3.21.2}/node_modules/@opentiny/vue-renderless/tall-storage/vue-storage-box.js +0 -0
  234. /package/src/{bubble-item → bubble}/components/actions/index.ts +0 -0
@@ -0,0 +1,73 @@
1
+ import { __spreadValues as _ } from "../../chunk-G2ADBYYC.js";
2
+ import { merge as T } from "../object.js";
3
+ import n from "./popup-manager.js";
4
+ import { addClass as g } from "./dom.js";
5
+ let I = 1;
6
+ const m = typeof window > "u", x = ({
7
+ onMounted: l,
8
+ onBeforeUnmount: e,
9
+ watch: r,
10
+ vm: o,
11
+ api: s,
12
+ props: t,
13
+ state: p,
14
+ nextTick: i
15
+ }) => {
16
+ l(() => {
17
+ o._popupId = `popup-${I++}`, n.register(o._popupId, o);
18
+ }), e(() => {
19
+ n.deregister(o._popupId), n.closeModal(o._popupId);
20
+ }), r(
21
+ () => t.visible,
22
+ (d) => {
23
+ if (d) {
24
+ if (o._opening)
25
+ return;
26
+ p.rendered ? s.open() : (p.rendered = !0, i(() => {
27
+ s.open();
28
+ }));
29
+ } else
30
+ s.close();
31
+ }
32
+ );
33
+ }, y = ({ state: l, vm: e }) => (r) => {
34
+ l.rendered || (l.rendered = !0);
35
+ const o = T({}, e.$props || e, r);
36
+ e._closeTimer && (clearTimeout(e._closeTimer), e._closeTimer = null), clearTimeout(e._openTimer);
37
+ const s = () => {
38
+ if (m || l.opened)
39
+ return;
40
+ e._opening = !0;
41
+ const p = e.$el, i = o.modal, d = o.zIndex;
42
+ d && (n.zIndex = d), i && (e._closing && (n.closeModal(e._popupId), e._closing = !1), n.openModal(
43
+ e._popupId,
44
+ n.nextZIndex(),
45
+ o.modalAppendToBody ? void 0 : p,
46
+ o.modalClass,
47
+ o.modalFade
48
+ ), o.lockScroll && (n.fixBodyBorder(), g(document.body, n.popLockClass))), getComputedStyle(p).position === "static" && (p.style.position = "absolute"), p.style.zIndex = n.nextZIndex().toString(), l.opened = !0, e._opening = !1;
49
+ }, t = Number(o.openDelay);
50
+ t > 0 ? e._openTimer = setTimeout(() => {
51
+ e._openTimer = null, s();
52
+ }, t) : s();
53
+ }, M = ({ state: l, vm: e }) => () => {
54
+ e._openTimer !== null && (clearTimeout(e._openTimer), e._openTimer = null), clearTimeout(e._closeTimer);
55
+ const r = () => {
56
+ e._closing = !0, l.opened = !1, n.closeModal(e._popupId), e._closing = !1;
57
+ }, o = Number(e.closeDelay);
58
+ o > 0 ? e._closeTimer = setTimeout(() => {
59
+ e._closeTimer = null, r();
60
+ }, o) : r();
61
+ };
62
+ var B = (l) => {
63
+ const { api: e, nextTick: r, onBeforeUnmount: o, onMounted: s, props: t, reactive: p, toRefs: i, vm: d, watch: u } = l, c = p({
64
+ opened: !1,
65
+ rendered: !1
66
+ });
67
+ x({ onMounted: s, onBeforeUnmount: o, watch: u, vm: d, api: e, props: t, state: c, nextTick: r });
68
+ const a = y({ state: c, vm: d }), f = M({ state: c, vm: d });
69
+ return _({ open: a, close: f, PopupManager: n }, i(c));
70
+ };
71
+ export {
72
+ B as default
73
+ };
@@ -0,0 +1,13 @@
1
+ const i = (n, u, ...t) => {
2
+ let f = !1;
3
+ if (typeof n == "function") {
4
+ const e = document.createEvent("HTMLEvents");
5
+ e.initEvent(u, !1, !0), e.preventDefault = () => {
6
+ f = !0;
7
+ }, t.unshift(e), t.unshift(u), n.apply(null, t);
8
+ }
9
+ return !f;
10
+ };
11
+ export {
12
+ i as emitEvent
13
+ };
@@ -0,0 +1,11 @@
1
+ import { xss as e } from "../../../../../@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js";
2
+ const r = {
3
+ Escape: 27,
4
+ ArrowUp: 38,
5
+ ArrowDown: 40,
6
+ NumpadEnter: 13
7
+ };
8
+ export {
9
+ r as KEY_CODE,
10
+ e as xss
11
+ };
@@ -0,0 +1,84 @@
1
+ import { typeOf as b, isObject as h, isPlainObject as p, isNull as g, hasOwn as j } from "./type.js";
2
+ let A;
3
+ const x = (e, r, n) => {
4
+ if (!e || !p(e) || !r || typeof r != "string")
5
+ return;
6
+ const o = r.split(".");
7
+ let t = e;
8
+ const i = o.length;
9
+ if (i > 1) {
10
+ for (let l = 0; l < i; l++)
11
+ if (t = t[o[l]], g(t))
12
+ return t;
13
+ return t;
14
+ } else
15
+ return t[o[0]];
16
+ }, O = (e, r, n, o) => {
17
+ if (!e || !p(e) || !r || typeof r != "string")
18
+ return e;
19
+ const t = r.split("."), i = e;
20
+ let s = t.length, l = t[0];
21
+ if (s > 1) {
22
+ s--;
23
+ let f = i, c, u;
24
+ for (let y = 0; y < s; y++)
25
+ c = t[y], u = f[c], (u === null || !p(u)) && (f[c] = {}, u = f[c]), f = u;
26
+ l = t[s], f[l] = n;
27
+ } else
28
+ i[l] = n;
29
+ return i;
30
+ }, m = (e, r, n, o) => {
31
+ const t = (i, s, l, f) => {
32
+ const c = {};
33
+ return s.forEach((u) => O(c, u, x(i, u))), c;
34
+ };
35
+ return p(e) ? Array.isArray(r) ? t(e, r) : A(n !== !1, {}, e) : e;
36
+ }, E = (e) => Array.isArray(e) ? e.map((r) => m(r)) : e, I = (e, r, n, o, t) => {
37
+ let i;
38
+ if (n && o && (p(o) || (i = Array.isArray(o))))
39
+ if (i)
40
+ i = !1, e[r] = E(o);
41
+ else {
42
+ const s = t && p(t) ? t : {};
43
+ e[r] = A(n, s, o);
44
+ }
45
+ else if (o !== void 0)
46
+ try {
47
+ e[r] = o;
48
+ } catch {
49
+ }
50
+ };
51
+ A = function(...e) {
52
+ const r = e.length;
53
+ let n = e[0] || {}, o = 1, t = !1;
54
+ for (b(n) === "boolean" && (t = n, n = e[o] || {}, o++), !h(n) && b(n) !== "function" && (n = {}); o < r; o++) {
55
+ const i = e[o];
56
+ if (i !== null && h(i)) {
57
+ const s = Object.keys(i);
58
+ for (const l of s) {
59
+ const f = n[l], c = i[l];
60
+ n !== c && I(n, l, t, c, f);
61
+ }
62
+ }
63
+ }
64
+ return n;
65
+ };
66
+ const C = function(e, ...r) {
67
+ for (let n = 0, o = r.length; n < o; n++) {
68
+ const t = r[n] || {};
69
+ for (const i in t)
70
+ if (j.call(t, i)) {
71
+ const s = t[i];
72
+ s !== void 0 && (e[i] = s);
73
+ }
74
+ }
75
+ return e;
76
+ };
77
+ export {
78
+ E as copyArray,
79
+ m as copyField,
80
+ A as extend,
81
+ x as getObj,
82
+ C as merge,
83
+ O as setObj
84
+ };
@@ -0,0 +1,28 @@
1
+ import { isBrowser as u, globalEnvironment as i } from "./browser.js";
2
+ function a(e) {
3
+ let t = /* @__PURE__ */ Object.create(null);
4
+ return function(n) {
5
+ return t[n] || (t[n] = e(n));
6
+ };
7
+ }
8
+ const m = /-(\w)/g, d = a((e) => e.replace(m, (t, c) => c ? c.toUpperCase() : "")), g = a((e) => e.charAt(0).toUpperCase() + e.slice(1)), h = /\B([A-Z])/g, U = a((e) => e.replace(h, "-$1").toLowerCase()), p = () => i.crypto.getRandomValues(new i.Uint32Array(1))[0] / 4294967296, _ = (e = "", t = 8) => e + p().toString().substr(2, t), E = (e, t, c) => {
9
+ let n;
10
+ if (!u)
11
+ return { t: e, o: !1 };
12
+ const o = document.createElement("canvas").getContext("2d");
13
+ o.font = t;
14
+ let r = o.measureText(e);
15
+ if (r.width < c)
16
+ return { t: e, o: !1 };
17
+ for (let s = -1; ; s--)
18
+ if (n = e.slice(0, s) + "...", r = o.measureText(n), r.width < c)
19
+ return { t: n, o: !0 };
20
+ };
21
+ export {
22
+ d as camelize,
23
+ g as capitalize,
24
+ _ as guid,
25
+ U as hyphenate,
26
+ E as omitText,
27
+ p as random
28
+ };
@@ -0,0 +1,28 @@
1
+ const e = Object.prototype.toString, n = Object.prototype.hasOwnProperty, s = Object.getPrototypeOf, r = n.toString, b = r.call(Object), i = {
2
+ "[object Error]": "error",
3
+ "[object Object]": "object",
4
+ "[object RegExp]": "regExp",
5
+ "[object Date]": "date",
6
+ "[object Array]": "array",
7
+ "[object Function]": "function",
8
+ "[object AsyncFunction]": "asyncFunction",
9
+ "[object String]": "string",
10
+ "[object Number]": "number",
11
+ "[object Boolean]": "boolean"
12
+ }, j = (t) => t == null, l = (t) => j(t) ? String(t) : i[e.call(t)] || "object", a = (t) => l(t) === "object", u = (t) => {
13
+ if (!t || e.call(t) !== "[object Object]")
14
+ return !1;
15
+ const o = s(t);
16
+ if (!o)
17
+ return !0;
18
+ const c = n.call(o, "constructor") && o.constructor;
19
+ return typeof c == "function" && r.call(c) === b;
20
+ };
21
+ export {
22
+ n as hasOwn,
23
+ j as isNull,
24
+ a as isObject,
25
+ u as isPlainObject,
26
+ e as toString,
27
+ l as typeOf
28
+ };
@@ -0,0 +1,136 @@
1
+ import { __spreadValues as y } from "../chunk-G2ADBYYC.js";
2
+ import { getDomNode as C, addClass as _, removeClass as w, on as F, off as O } from "../common/deps/dom.js";
3
+ import { emitEvent as $ } from "../common/event.js";
4
+ const M = ({ constants: e, props: o }) => () => o.rightSlide ? e.DIALOG_SLIDER_RIGHT : e.DIALOG_FADE, g = (e) => isNaN(Number(e)) ? e : e + "px", P = ({ props: e, state: o, designConfig: l }) => () => {
5
+ var r;
6
+ let t = {}, { width: i, top: d, rightSlide: c, maxHeight: a } = e;
7
+ return d === void 0 && (d = c ? "0" : (r = l == null ? void 0 : l.state) != null && r.top ? "" : "15vh"), i = g(i), d = g(d), a = g(a), o.isFull || (t.width = i, t.top = o.top || d, t.maxHeight = a, c ? (t.right = 0, t.height = "calc(100vh - " + t.top + ")") : t.left = o.left || "calc((100vw - " + i + ") / 2)"), o.dragStyle && (t = y(y({}, t), o.dragStyle), o.isFull && (t = { left: "0px", top: "0px" })), e.customStyle && (t = Object.assign(t, e.customStyle)), t;
8
+ }, X = ({
9
+ api: e,
10
+ constants: o,
11
+ emit: l,
12
+ nextTick: r,
13
+ parent: t,
14
+ props: i,
15
+ vm: d,
16
+ state: c
17
+ }) => (a) => {
18
+ const u = t.$el;
19
+ if (i.lockScroll && (a ? e.showScrollbar() : e.hideScrollbar()), c.move = !1, c.isFull = i.fullscreen, l("update:visible", a), a)
20
+ c.closed = !1, l("open"), F(u, "scroll", e.updatePopper), r(() => {
21
+ d.$refs.dialog.scrollTop = 0;
22
+ }), i.appendToBody && document.body.appendChild(u);
23
+ else if (O(u, "scroll", e.updatePopper), c.closed || (c.emitter.emit("boxclose", i.isFormReset), l("close")), i.destroyOnClose && r(() => c.key++), i.rightSlide && c.current !== "default") {
24
+ const m = `[data-tag=${o.DIALOG_BOX_DATA_TAG}]`;
25
+ i.rightSlide && (u.querySelector(m).style.left = "");
26
+ }
27
+ }, L = ({ api: e, parent: o, props: l }) => () => {
28
+ if (l.lockScroll && l.visible && e.showScrollbar(), l.visible) {
29
+ const r = o.$el;
30
+ e.open(), l.appendToBody && document.body.appendChild(r);
31
+ }
32
+ }, T = ({ api: e, parent: o, props: l }) => () => {
33
+ const r = o.$el;
34
+ e.hideScrollbar(), l.appendToBody && r && r.parentNode && r.parentNode.removeChild(r);
35
+ }, B = ({ state: e }) => (o) => {
36
+ e.mouseDownWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(o.target.className) && o.type === "mousedown" && (e.mouseDownWrapperFlag = !0);
37
+ }, Y = ({ state: e }) => (o) => {
38
+ e.mouseUpWrapperFlag = !1, /tiny-dialog-box__wrapper/.test(o.target.className) && o.type === "mouseup" && (e.mouseUpWrapperFlag = !0);
39
+ }, G = ({ api: e, props: o, state: l }) => () => {
40
+ o.closeOnClickModal && l.mouseDownWrapperFlag && l.mouseUpWrapperFlag && e.handleClose("mask");
41
+ }, H = ({
42
+ api: e,
43
+ constants: o,
44
+ emit: l,
45
+ parent: r,
46
+ props: t
47
+ }) => (i = "close") => {
48
+ if (typeof t.beforeClose == "function" && t.beforeClose(i) === !1)
49
+ return;
50
+ const d = r.$el;
51
+ if (t.rightSlide) {
52
+ const c = d.querySelector(o.DIALOG_BOX_CLASS) || d;
53
+ c.style.left = "";
54
+ }
55
+ $(l, "before-close", e.hide) && e.hide(i);
56
+ }, I = ({ api: e, emit: o, state: l, props: r }) => (t) => {
57
+ t !== !1 && (l.emitter.emit("boxclose", r.isFormReset), o("update:visible", !1), o("change", !1), o("close", t), l.closed = !0, e.hideScrollbar());
58
+ }, R = ({ api: e, emit: o }) => () => {
59
+ o("confirm"), e.handleClose("confirm");
60
+ }, U = ({ api: e, emit: o }) => () => {
61
+ o("cancel"), e.handleClose("cancel");
62
+ }, k = ({ api: e, constants: o }) => () => {
63
+ e.broadcast(o.SELECT_DROPDOWN, "updatePopper"), e.broadcast(o.DROPDOWN_MENU, "updatePopper");
64
+ }, q = (e) => () => {
65
+ e("opened");
66
+ }, V = (e) => () => {
67
+ e("closed");
68
+ }, x = ({
69
+ vm: e,
70
+ componentList: o
71
+ }) => {
72
+ const l = e.$children;
73
+ return !l || l.length === 0 ? [] : (l.forEach((r) => {
74
+ r.$options.componentName === "Select" && o.push(r), x({ vm: r, componentList: o });
75
+ }), o);
76
+ }, N = (e) => {
77
+ x({ vm: e, componentList: [] }).forEach((o) => {
78
+ o.state.visible = !1;
79
+ });
80
+ }, j = ({
81
+ parent: e,
82
+ props: o,
83
+ state: l,
84
+ emit: r,
85
+ vm: t
86
+ }) => (i) => {
87
+ if (!o.draggable || l.isFull)
88
+ return;
89
+ let d = t.$refs.dialog;
90
+ i.preventDefault();
91
+ let c = document.onmousemove, a = document.onmouseup, u = i.clientX - d.offsetLeft, m = i.clientY - d.offsetTop, { visibleHeight: b, visibleWidth: S } = C();
92
+ document.onmousemove = (f) => {
93
+ f.preventDefault(), l.move || (r("drag-start", f), N(e), l.move = !0);
94
+ let D = d.offsetWidth, v = d.offsetHeight, n, s;
95
+ if (o.dragOutsideWindow) {
96
+ let p = S - 10, h = b - 10;
97
+ n = f.clientX - u, s = f.clientY - m, n = f.clientX < 0 ? -u : n > p ? p : n, s = f.clientY < 0 ? -m : s > h ? h : s;
98
+ } else {
99
+ let p = Math.max(S - D, 0), h = Math.max(b - v, 0);
100
+ n = f.clientX - u, s = f.clientY - m, n = n < 0 ? 0 : n > p ? p : n, s = s < 0 ? 0 : s > h ? h : s;
101
+ }
102
+ l.isFull || (l.dragStyle = { left: `${n}px`, top: `${s}px` }), l.left = `${n}px`, l.top = `${s}px`, l.emitter.emit("boxdrag"), r("drag-move", f);
103
+ }, document.onmouseup = () => {
104
+ document.onmousemove = c, document.onmouseup = a, o.draggable && l.move && r("drag-end", i), l.move = !1;
105
+ };
106
+ }, z = (e) => () => {
107
+ _(document.body, e);
108
+ }, J = (e) => () => {
109
+ w(document.body, e);
110
+ }, K = ({ state: e, emit: o, nextTick: l, vm: r }) => (t) => {
111
+ e.isFull = t, l(() => {
112
+ o("resize", { fullscreen: t, dialog: r.$refs.dialog });
113
+ });
114
+ };
115
+ export {
116
+ q as afterEnter,
117
+ V as afterLeave,
118
+ g as computedAddUnit,
119
+ M as computedAnimationName,
120
+ P as computedStyle,
121
+ U as handleCancel,
122
+ H as handleClose,
123
+ R as handleConfirm,
124
+ j as handleDrag,
125
+ G as handleWrapperClick,
126
+ I as hide,
127
+ J as hideScrollbar,
128
+ L as mounted,
129
+ z as showScrollbar,
130
+ K as toggleFullScreen,
131
+ T as unMounted,
132
+ k as updatePopper,
133
+ B as useMouseEventDown,
134
+ Y as useMouseEventUp,
135
+ X as watchVisible
136
+ };
@@ -1,8 +1,7 @@
1
1
  import { __spreadValues as M } from "../chunk-G2ADBYYC.js";
2
- import { toggleFullScreen as y, handleDrag as L, showScrollbar as v, hideScrollbar as w, afterLeave as D, afterEnter as A, computedAnimationName as F, unMounted as N, mounted as P, computedStyle as V, watchVisible as W, handleClose as _, hide as O, useMouseEventUp as k, useMouseEventDown as U, handleWrapperClick as j, updatePopper as x, handleConfirm as K, handleCancel as q } from "./index.js";
3
- import "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
4
- import { usePopup as z } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js";
5
- const Z = [
2
+ import { toggleFullScreen as v, handleDrag as y, showScrollbar as L, hideScrollbar as w, afterLeave as D, afterEnter as _, computedAnimationName as A, unMounted as F, mounted as N, computedStyle as V, watchVisible as W, handleClose as O, hide as P, useMouseEventUp as k, useMouseEventDown as U, handleWrapperClick as j, updatePopper as x, handleConfirm as K, handleCancel as q } from "./index.js";
3
+ import z from "../common/deps/vue-popup.js";
4
+ const Y = [
6
5
  "afterEnter",
7
6
  "afterLeave",
8
7
  "handleClose",
@@ -18,13 +17,13 @@ const Z = [
18
17
  reactive: e,
19
18
  computed: l,
20
19
  api: n,
21
- emitter: o,
20
+ emitter: u,
22
21
  props: a,
23
- useBreakpoint: u
22
+ useBreakpoint: o
24
23
  }) => {
25
- const { current: r } = u();
24
+ const { current: r } = o();
26
25
  return e({
27
- emitter: o(),
26
+ emitter: u(),
28
27
  key: 0,
29
28
  x: null,
30
29
  y: null,
@@ -40,19 +39,19 @@ const Z = [
40
39
  current: r,
41
40
  dragStyle: null
42
41
  });
43
- }, H = ({ reactive: e, state: l, toRefs: n, usePopups: o }) => {
44
- const { opened: a, rendered: u } = o;
42
+ }, H = ({ reactive: e, state: l, toRefs: n, usePopups: u }) => {
43
+ const { opened: a, rendered: o } = u;
45
44
  return e(M({
46
45
  opened: a,
47
- rendered: u
46
+ rendered: o
48
47
  }, n(l)));
49
48
  }, I = ({
50
49
  emit: e,
51
50
  api: l,
52
51
  state: n,
53
- parent: o,
52
+ parent: u,
54
53
  props: a,
55
- lockScrollClass: u,
54
+ lockScrollClass: o,
56
55
  constants: r,
57
56
  usePopups: i,
58
57
  nextTick: c,
@@ -72,38 +71,38 @@ const Z = [
72
71
  handleWrapperClick: j({ api: l, props: a, state: n }),
73
72
  useMouseEventDown: U({ state: n }),
74
73
  useMouseEventUp: k({ state: n }),
75
- hide: O({ api: l, emit: e, state: n, props: a }),
76
- handleClose: _({ api: l, constants: r, emit: e, parent: o, props: a }),
74
+ hide: P({ api: l, emit: e, state: n, props: a }),
75
+ handleClose: O({ api: l, constants: r, emit: e, parent: u, props: a }),
77
76
  watchVisible: W({
78
77
  api: l,
79
78
  constants: r,
80
79
  emit: e,
81
80
  nextTick: c,
82
- parent: o,
81
+ parent: u,
83
82
  props: a,
84
83
  vm: d,
85
84
  state: n
86
85
  }),
87
86
  computedStyle: V({ state: n, props: a, designConfig: f }),
88
- mounted: P({ api: l, parent: o, props: a }),
89
- unMounted: N({ api: l, parent: o, props: a }),
90
- computedAnimationName: F({ constants: r, props: a }),
91
- afterEnter: A(e),
87
+ mounted: N({ api: l, parent: u, props: a }),
88
+ unMounted: F({ api: l, parent: u, props: a }),
89
+ computedAnimationName: A({ constants: r, props: a }),
90
+ afterEnter: _(e),
92
91
  afterLeave: D(e),
93
- hideScrollbar: w(u),
94
- showScrollbar: v(u),
95
- handleDrag: L({ parent: o, props: a, state: n, emit: e, vm: d }),
92
+ hideScrollbar: w(o),
93
+ showScrollbar: L(o),
94
+ handleDrag: y({ parent: u, props: a, state: n, emit: e, vm: d }),
96
95
  // tiny 新增
97
- toggleFullScreen: y({ state: n, emit: e, nextTick: c, vm: d })
96
+ toggleFullScreen: v({ state: n, emit: e, nextTick: c, vm: d })
98
97
  });
99
- }, J = ({ watch: e, state: l, api: n, props: o }) => {
100
- e(() => o.visible, n.watchVisible), e(
101
- () => o.fullscreen,
98
+ }, J = ({ watch: e, state: l, api: n, props: u }) => {
99
+ e(() => u.visible, n.watchVisible), e(
100
+ () => u.fullscreen,
102
101
  (a) => {
103
102
  l.isFull = a;
104
103
  }
105
104
  );
106
- }, $ = (e, { computed: l, onBeforeUnmount: n, onMounted: o, toRefs: a, reactive: u, watch: r }, {
105
+ }, Z = (e, { computed: l, onBeforeUnmount: n, onMounted: u, toRefs: a, reactive: o, watch: r }, {
107
106
  vm: i,
108
107
  emitter: c,
109
108
  parent: m,
@@ -116,14 +115,14 @@ const Z = [
116
115
  useBreakpoint: b
117
116
  }) => {
118
117
  const t = {}, E = d.SCROLL_LOCK_CLASS(S);
119
- let h = G({ reactive: u, computed: l, api: t, emitter: c, props: e, useBreakpoint: b });
118
+ let h = G({ reactive: o, computed: l, api: t, emitter: c, props: e, useBreakpoint: b });
120
119
  const g = z({
121
120
  api: t,
122
121
  nextTick: s,
123
122
  onBeforeUnmount: n,
124
- onMounted: o,
123
+ onMounted: u,
125
124
  props: e,
126
- reactive: u,
125
+ reactive: o,
127
126
  toRefs: a,
128
127
  vm: i,
129
128
  watch: r
@@ -141,9 +140,9 @@ const Z = [
141
140
  vm: i,
142
141
  broadcast: C,
143
142
  designConfig: p
144
- }), h = H({ reactive: u, state: h, toRefs: a, usePopups: g }), J({ watch: r, state: h, api: t, props: e }), o(t.mounted), n(t.unMounted), t;
143
+ }), h = H({ reactive: o, state: h, toRefs: a, usePopups: g }), J({ watch: r, state: h, api: t, props: e }), u(t.mounted), n(t.unMounted), t;
145
144
  };
146
145
  export {
147
- Z as api,
148
- $ as renderless
146
+ Y as api,
147
+ Z as renderless
149
148
  };
@@ -1,8 +1,8 @@
1
- import { omitText as y, isServer as b } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
2
- const V = `
1
+ import { omitText as y } from "../common/string.js";
2
+ const b = `
3
3
  height:0 !important;visibility:hidden !important;overflow:hidden !important;
4
4
  position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !important
5
- `, S = [
5
+ `, V = [
6
6
  "width",
7
7
  "line-height",
8
8
  "padding-top",
@@ -26,7 +26,7 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
26
26
  PaddingBottom: "padding-bottom",
27
27
  BorderTopWidth: "border-top-width",
28
28
  BorderBottomWidth: "border-bottom-width"
29
- }, w = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), C = (e) => () => {
29
+ }, S = typeof window > "u", w = (e) => /([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e), C = (e) => () => {
30
30
  if (e.inputDisabled)
31
31
  return !1;
32
32
  e.boxVisibility = !0;
@@ -34,7 +34,7 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
34
34
  textAlign: e.textAlign
35
35
  }), B = () => (e) => {
36
36
  const t = window.getComputedStyle(e), n = t.getPropertyValue(f.BoxSizing), o = parseFloat(t.getPropertyValue(f.PaddingBottom)) + parseFloat(t.getPropertyValue(f.PaddingTop)), i = parseFloat(t.getPropertyValue(f.BorderBottomWidth)) + parseFloat(t.getPropertyValue(f.BorderTopWidth));
37
- return { contextStyle: S.map((r) => `${r}:${t.getPropertyValue(r)}`).join(";"), paddingSize: o, borderSize: i, boxSizing: n };
37
+ return { contextStyle: V.map((r) => `${r}:${t.getPropertyValue(r)}`).join(";"), paddingSize: o, borderSize: i, boxSizing: n };
38
38
  }, H = ({
39
39
  api: e,
40
40
  hiddenTextarea: t,
@@ -49,21 +49,21 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
49
49
  height: ""
50
50
  };
51
51
  t || (t = document.createElement("textarea"), document.body.appendChild(t));
52
- const { paddingSize: d, borderSize: h, boxSizing: g, contextStyle: m } = e.calculateNodeStyling(r);
53
- t.setAttribute("style", `${m};${V}`), t.value = r.value || r.placeholder || "";
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
54
  let c = t.scrollHeight;
55
- const p = {};
56
- i === "mobile" && (c = Math.max(t.scrollHeight, l.TEXTAREA_HEIGHT_MOBILE)), g === f.BorderBox ? c = c + h * 2 + d : g === f.ContentBox && (c = c - d), t.value = "";
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
57
  const x = t.scrollHeight - d;
58
58
  if (a !== null) {
59
59
  let u = x * a;
60
- g === f.BorderBox && (u = u + d + h), n.size && (u = n.size === "mini" ? u * 0.67 : n.size === "small" ? u : u * 1.17), n.height && (u = n.height), o.isDisplayOnly ? p.minHeight = "0px" : (c = Math.max(u, c), p.minHeight = `${u}px`);
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
61
  }
62
62
  if (s !== null) {
63
63
  let u = x * s;
64
- g === f.BorderBox && (u += h + d), c = Math.min(u, c);
64
+ g === f.BorderBox && (u += p + d), c = Math.min(u, c);
65
65
  }
66
- return p.height = `${c}px`, t.parentNode && t.parentNode.removeChild(t), t = null, p;
66
+ return h.height = `${c}px`, t.parentNode && t.parentNode.removeChild(t), t = null, h;
67
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
68
  api: e,
69
69
  componentName: t,
@@ -79,7 +79,7 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
79
79
  }, z = ({ api: e, emit: t, nextTick: n, state: o }) => (i) => {
80
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
81
  }, k = (e) => (t) => e("change", t.target.value), P = ({ api: e, parent: t, vm: n, state: o, props: i }) => () => {
82
- if (b)
82
+ if (S)
83
83
  return;
84
84
  const { autosize: l, type: r } = t;
85
85
  if (r !== "textarea" || !n.$refs.textarea)
@@ -132,16 +132,16 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
132
132
  e("update:modelValue", ""), e("change", ""), e("clear");
133
133
  }, _ = ({ api: e, nextTick: t, state: n }) => () => {
134
134
  n.passwordVisible = !n.passwordVisible, t(e.focus);
135
- }, X = ({ parent: e, props: t, state: n }) => () => e.$slots.suffix || t.suffixIcon || n.showClear || t.showPassword || n.isWordLimitVisible || n.validateState && n.needStatusIcon || t.mask && n.inputDisabled, G = (e) => typeof e == "number" ? String(e).length : (e || "").length, U = ({ emit: e, props: t, state: n }) => (o) => {
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
136
  if (t.isSelect) {
137
137
  e("update:modelValue", o), e("change", o);
138
138
  const i = t.selectMenu.length && t.selectMenu.filter((l) => l.id === o).shift();
139
139
  n.checkedLabel = i ? i.label : "";
140
140
  }
141
- }, j = (e) => () => {
141
+ }, q = (e) => () => {
142
142
  const t = e.getInput();
143
143
  return t && t.selectionStart !== t.selectionEnd;
144
- }, q = ({ state: e, props: t }) => (n, o) => {
144
+ }, G = ({ state: e, props: t }) => (n, o) => {
145
145
  if (o === "textarea" && t.popupMore)
146
146
  return;
147
147
  const i = o === "textarea" ? n.target.querySelector(".text-box") : n.target;
@@ -152,8 +152,8 @@ position:absolute !important;z-index:-1000 !important;top:0 !important;right:0 !
152
152
  else {
153
153
  let r = !1;
154
154
  if (t.mask && e.maskValueVisible) {
155
- const a = i.textContent, s = window.getComputedStyle(i).font, d = i.getBoundingClientRect(), h = 31, g = (a == null ? void 0 : a.trim()) || "";
156
- r = y(g, s, d.width - h).o;
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
157
  }
158
158
  r && (e.displayOnlyTooltip = t.displayOnlyContent || e.nativeInputValue);
159
159
  }
@@ -205,7 +205,7 @@ export {
205
205
  F as handleCompositionEnd,
206
206
  L as handleCompositionStart,
207
207
  N as handleCompositionUpdate,
208
- q as handleEnterDisplayOnlyContent,
208
+ G as handleEnterDisplayOnlyContent,
209
209
  Z as handleEnterTextarea,
210
210
  M as handleFocus,
211
211
  z as handleInput,
@@ -213,7 +213,7 @@ export {
213
213
  _ as handlePasswordVisible,
214
214
  oe as handleTextareaMouseDown,
215
215
  ie as handleTextareaMouseUp,
216
- j as hasSelection,
216
+ q as hasSelection,
217
217
  K as hiddenPassword,
218
218
  I as inputStyle,
219
219
  P as resizeTextarea,
@@ -222,7 +222,7 @@ export {
222
222
  W as setNativeInputValue,
223
223
  ne as setShowMoreBtn,
224
224
  C as showBox,
225
- G as textLength,
225
+ U as textLength,
226
226
  R as updateIconOffset,
227
- U as watchFormSelect
227
+ j as watchFormSelect
228
228
  };