@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
@@ -1,5 +1,5 @@
1
- import { defineComponent as G, ref as k, computed as r, watch as J, createElementBlock as o, openBlock as n, normalizeClass as z, createElementVNode as u, createVNode as d, createCommentVNode as i, Transition as L, withCtx as $, renderSlot as b, unref as l, isRef as Q, normalizeStyle as X, toDisplayString as _, Fragment as Y, renderList as Z } from "vue";
2
- import x from "../../../../node_modules/.pnpm/@opentiny_vue-input@3.22.0/node_modules/@opentiny/vue-input/lib/index.js";
1
+ import { defineComponent as G, ref as $, computed as d, watch as J, createElementBlock as o, openBlock as n, normalizeClass as z, createElementVNode as c, createVNode as p, createCommentVNode as r, Transition as k, withCtx as L, renderSlot as b, unref as l, isRef as Q, normalizeStyle as X, toDisplayString as w, Fragment as Y, renderList as Z } from "vue";
2
+ import x from "../../../../node_modules/.pnpm/@opentiny_vue-input@3.21.0/node_modules/@opentiny/vue-input/lib/index.js";
3
3
  import { useInputHandler as ee } from "./composables/useInputHandler.js";
4
4
  import { useKeyboardHandler as se } from "./composables/useKeyboardHandler.js";
5
5
  import { useSpeechHandler as te } from "./composables/useSpeechHandler.js";
@@ -29,7 +29,7 @@ const oe = ["data-theme"], ne = { class: "tiny-sender__container" }, le = { clas
29
29
  }, ye = ["onClick"], ge = {
30
30
  key: 0,
31
31
  class: "tiny-sender__error"
32
- }, $e = /* @__PURE__ */ G({
32
+ }, Le = /* @__PURE__ */ G({
33
33
  __name: "index",
34
34
  props: {
35
35
  autofocus: { type: Boolean, default: !1 },
@@ -39,7 +39,6 @@ const oe = ["data-theme"], ne = { class: "tiny-sender__container" }, le = { clas
39
39
  clearable: { type: Boolean, default: !1 },
40
40
  disabled: { type: Boolean, default: !1 },
41
41
  defaultValue: {},
42
- debounceSubmit: { default: 300 },
43
42
  loading: { type: Boolean, default: !1 },
44
43
  modelValue: { default: "" },
45
44
  mode: { default: "single" },
@@ -51,11 +50,11 @@ const oe = ["data-theme"], ne = { class: "tiny-sender__container" }, le = { clas
51
50
  suggestions: {},
52
51
  theme: { default: "light" }
53
52
  },
54
- emits: ["update:modelValue", "submit", "clear", "speech-start", "speech-end", "speech-interim", "speech-error", "suggestion-select", "focus", "blur", "escape-press"],
53
+ emits: ["update:modelValue", "submit", "clear", "speech-start", "speech-end", "speech-interim", "speech-error", "suggestion-select", "focus", "blur", "escape-press", "cancel"],
55
54
  setup(F, { expose: E, emit: K }) {
56
- const t = F, a = K, c = k(null), { inputValue: s, isComposing: h, clearInput: w } = ee(t, a), f = k(!1), B = r(() => !t.suggestions || !s.value ? [] : t.suggestions.filter((e) => e.toLowerCase().includes(s.value.toLowerCase()))), R = (e) => {
57
- s.value = e, f.value = !1, a("suggestion-select", e);
58
- }, W = r(() => ({
55
+ const t = F, a = K, m = $(null), { inputValue: s, isComposing: f, clearInput: _ } = ee(t, a), y = $(!1), B = d(() => !t.suggestions || !s.value ? [] : t.suggestions.filter((e) => e.toLowerCase().includes(s.value.toLowerCase()))), R = (e) => {
56
+ s.value = e, y.value = !1, a("suggestion-select", e);
57
+ }, W = d(() => ({
59
58
  ...typeof t.speech == "object" ? t.speech : {},
60
59
  onStart: () => a("speech-start"),
61
60
  onEnd: (e) => a("speech-end", e),
@@ -66,121 +65,122 @@ const oe = ["data-theme"], ne = { class: "tiny-sender__container" }, le = { clas
66
65
  onError: (e) => {
67
66
  P(e.message), a("speech-error", e);
68
67
  }
69
- })), { speechState: y, start: V, stop: I } = te(W.value), S = () => {
70
- y.isRecording ? I() : V();
68
+ })), { speechState: g, start: V, stop: I } = te(W.value), S = () => {
69
+ g.isRecording ? I() : V();
71
70
  }, { handleKeyPress: H, triggerSubmit: C } = se(
72
71
  t,
73
72
  a,
74
73
  s,
75
- h,
76
- y,
77
74
  f,
75
+ g,
76
+ y,
78
77
  S
79
78
  ), N = (e) => {
80
79
  a("focus", e);
81
80
  }, O = (e) => {
82
81
  a("blur", e);
83
- }, q = r(() => t.mode === "multiple" ? "textarea" : "text"), D = r(
82
+ }, q = d(() => t.mode === "multiple" ? "textarea" : "text"), D = d(
84
83
  () => ({
85
84
  display: "flex",
86
85
  justifyContent: t.showWordLimit && t.maxLength !== 1 / 0 ? "space-between" : "flex-end",
87
86
  alignItems: "center"
88
87
  })
89
- ), g = r(() => t.disabled), T = r(() => t.loading), M = r(() => ({
90
- "is-disabled": g.value,
88
+ ), v = d(() => t.disabled), T = d(() => t.loading), M = d(() => ({
89
+ "is-disabled": v.value,
91
90
  "is-loading": T.value,
92
- "has-error": !!p.value
93
- })), p = k(""), P = (e) => {
94
- p.value = e, setTimeout(() => p.value = "", 5e3);
91
+ "has-error": !!h.value
92
+ })), h = $(""), P = (e) => {
93
+ h.value = e, setTimeout(() => h.value = "", 5e3);
95
94
  }, U = () => {
96
- h.value = !1, setTimeout(() => h.value = !1, 50);
95
+ f.value = !1, setTimeout(() => f.value = !1, 50);
97
96
  };
98
97
  return J(s, () => {
99
- f.value = !!t.suggestions && !!s.value;
98
+ y.value = !!t.suggestions && !!s.value;
100
99
  }), E({
101
100
  focus: () => {
102
- if (c.value)
103
- c.value.focus();
101
+ if (m.value)
102
+ m.value.focus();
104
103
  else {
105
104
  const e = document.querySelector(".tiny-input__inner");
106
105
  e == null || e.focus();
107
106
  }
108
107
  },
109
108
  blur: () => {
110
- if (c.value)
111
- c.value.blur();
109
+ if (m.value)
110
+ m.value.blur();
112
111
  else {
113
112
  const e = document.querySelector(".tiny-input__inner");
114
113
  e == null || e.blur();
115
114
  }
116
115
  },
117
- clear: w,
116
+ clear: _,
118
117
  submit: C,
119
118
  startSpeech: V,
120
119
  stopSpeech: I
121
- }), (e, v) => (n(), o("div", {
120
+ }), (e, i) => (n(), o("div", {
122
121
  class: z(["tiny-sender", [M.value, `theme-${e.theme}`, `mode-${e.mode}`]]),
123
122
  "data-theme": e.theme
124
123
  }, [
125
- u("div", ne, [
126
- u("div", le, [
127
- d(L, { name: "tiny-sender-slide-down" }, {
128
- default: $(() => [
124
+ c("div", ne, [
125
+ c("div", le, [
126
+ p(k, { name: "tiny-sender-slide-down" }, {
127
+ default: L(() => [
129
128
  e.$slots.header ? (n(), o("div", ae, [
130
129
  b(e.$slots, "header")
131
- ])) : i("", !0)
130
+ ])) : r("", !0)
132
131
  ]),
133
132
  _: 3
134
133
  }),
135
- u("div", {
134
+ c("div", {
136
135
  class: z(["tiny-sender__input-row", { "has-prefix": e.$slots.prefix, "has-header": e.$slots.header }])
137
136
  }, [
138
137
  e.$slots.prefix ? (n(), o("div", ie, [
139
138
  b(e.$slots, "prefix")
140
- ])) : i("", !0),
141
- u("div", re, [
142
- d(l(x), {
139
+ ])) : r("", !0),
140
+ c("div", re, [
141
+ p(l(x), {
143
142
  ref_key: "inputRef",
144
- ref: c,
143
+ ref: m,
145
144
  autosize: e.autoSize,
146
145
  type: q.value,
147
146
  readonly: T.value,
148
147
  resize: e.mode === "multiple" ? "none" : void 0,
149
148
  modelValue: l(s),
150
- "onUpdate:modelValue": v[0] || (v[0] = (m) => Q(s) ? s.value = m : null),
151
- disabled: g.value,
149
+ "onUpdate:modelValue": i[0] || (i[0] = (u) => Q(s) ? s.value = u : null),
150
+ disabled: v.value,
152
151
  placeholder: e.placeholder,
153
152
  maxlength: e.maxLength,
154
153
  autofocus: e.autofocus,
155
154
  onKeydown: l(H),
156
- onCompositionstart: v[1] || (v[1] = (m) => h.value = !0),
155
+ onCompositionstart: i[1] || (i[1] = (u) => f.value = !0),
157
156
  onCompositionend: U,
158
157
  onFocus: N,
159
158
  onBlur: O
160
159
  }, null, 8, ["autosize", "type", "readonly", "resize", "modelValue", "disabled", "placeholder", "maxlength", "autofocus", "onKeydown"])
161
160
  ]),
162
161
  e.mode === "single" ? (n(), o("div", ue, [
163
- u("div", de, [
162
+ c("div", de, [
164
163
  b(e.$slots, "actions"),
165
- d(j, {
164
+ p(j, {
166
165
  class: "inline-buttons",
167
166
  "allow-speech": e.allowSpeech,
168
167
  "allow-files": e.allowFiles,
169
168
  loading: e.loading,
170
- disabled: g.value,
169
+ disabled: v.value,
171
170
  "show-clear": e.clearable,
172
171
  "has-content": !!l(s),
173
- "speech-status": l(y),
172
+ "speech-status": l(g),
174
173
  "submit-type": e.submitType,
175
- onClear: l(w),
174
+ onClear: l(_),
176
175
  onToggleSpeech: S,
177
- onSubmit: l(C)
176
+ onSubmit: l(C),
177
+ onCancel: i[2] || (i[2] = (u) => e.$emit("cancel"))
178
178
  }, null, 8, ["allow-speech", "allow-files", "loading", "disabled", "show-clear", "has-content", "speech-status", "submit-type", "onClear", "onSubmit"])
179
179
  ])
180
- ])) : i("", !0)
180
+ ])) : r("", !0)
181
181
  ], 2),
182
- d(L, { name: "tiny-sender-slide-up" }, {
183
- default: $(() => [
182
+ p(k, { name: "tiny-sender-slide-up" }, {
183
+ default: L(() => [
184
184
  e.$slots.footer ? (n(), o("div", ce, [
185
185
  b(e.$slots, "footer")
186
186
  ])) : e.mode !== "single" || e.showWordLimit && e.maxLength !== 1 / 0 ? (n(), o("div", {
@@ -188,46 +188,47 @@ const oe = ["data-theme"], ne = { class: "tiny-sender__container" }, le = { clas
188
188
  style: X(D.value),
189
189
  class: "tiny-sender__footer-slot tiny-sender__bottom-row"
190
190
  }, [
191
- e.showWordLimit && e.maxLength !== 1 / 0 ? (n(), o("div", pe, _(l(s).length) + "/" + _(e.maxLength), 1)) : i("", !0),
191
+ e.showWordLimit && e.maxLength !== 1 / 0 ? (n(), o("div", pe, w(l(s).length) + "/" + w(e.maxLength), 1)) : r("", !0),
192
192
  e.mode === "multiple" ? (n(), o("div", me, [
193
- u("div", he, [
194
- d(j, {
193
+ c("div", he, [
194
+ p(j, {
195
195
  "allow-speech": e.allowSpeech,
196
196
  "allow-files": e.allowFiles,
197
197
  loading: e.loading,
198
- disabled: g.value,
198
+ disabled: v.value,
199
199
  "show-clear": e.clearable,
200
200
  "has-content": !!l(s),
201
- "speech-status": l(y),
201
+ "speech-status": l(g),
202
202
  "submit-type": e.submitType,
203
- onClear: l(w),
203
+ onClear: l(_),
204
204
  onToggleSpeech: S,
205
- onSubmit: l(C)
205
+ onSubmit: l(C),
206
+ onCancel: i[3] || (i[3] = (u) => e.$emit("cancel"))
206
207
  }, null, 8, ["allow-speech", "allow-files", "loading", "disabled", "show-clear", "has-content", "speech-status", "submit-type", "onClear", "onSubmit"])
207
208
  ])
208
- ])) : i("", !0)
209
- ], 4)) : i("", !0)
209
+ ])) : r("", !0)
210
+ ], 4)) : r("", !0)
210
211
  ]),
211
212
  _: 3
212
213
  })
213
214
  ])
214
215
  ]),
215
- d(L, { name: "tiny-sender-slide-up" }, {
216
- default: $(() => [
217
- f.value && B.value.length ? (n(), o("div", fe, [
218
- (n(!0), o(Y, null, Z(B.value, (m, A) => (n(), o("div", {
216
+ p(k, { name: "tiny-sender-slide-up" }, {
217
+ default: L(() => [
218
+ y.value && B.value.length ? (n(), o("div", fe, [
219
+ (n(!0), o(Y, null, Z(B.value, (u, A) => (n(), o("div", {
219
220
  key: A,
220
221
  class: "suggestion-item",
221
- onClick: (ve) => R(m)
222
- }, _(m), 9, ye))), 128))
223
- ])) : i("", !0)
222
+ onClick: (ve) => R(u)
223
+ }, w(u), 9, ye))), 128))
224
+ ])) : r("", !0)
224
225
  ]),
225
226
  _: 1
226
227
  }),
227
- p.value ? (n(), o("div", ge, _(p.value), 1)) : i("", !0)
228
+ h.value ? (n(), o("div", ge, w(h.value), 1)) : r("", !0)
228
229
  ], 10, oe));
229
230
  }
230
231
  });
231
232
  export {
232
- $e as default
233
+ Le as default
233
234
  };
@@ -1,9 +1,7 @@
1
- import e from "../../../../_virtual/_plugin-vue_export-helper.js";
2
- const c = {};
3
- function r(o, t) {
4
- return "Welcome";
5
- }
6
- const _ = /* @__PURE__ */ e(c, [["render", r]]);
1
+ import o from "./index.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b9a85199"]]);
7
5
  export {
8
- _ as default
6
+ e as default
9
7
  };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as i, useCssVars as l, createElementBlock as c, openBlock as t, createElementVNode as o, renderSlot as a, createCommentVNode as _, createBlock as d, resolveDynamicComponent as p, toDisplayString as n } from "vue";
2
+ const m = { class: "tr-welcome" }, f = { class: "tr-welcome__title-wrapper" }, u = {
3
+ key: 0,
4
+ class: "tr-welcome__icon"
5
+ }, h = { class: "tr-welcome__title" }, w = { class: "tr-welcome__description" }, C = /* @__PURE__ */ i({
6
+ __name: "index",
7
+ props: {
8
+ title: {},
9
+ description: {},
10
+ align: { default: "center" },
11
+ icon: {}
12
+ },
13
+ setup(r) {
14
+ l((s) => ({
15
+ a8ff55f2: e.align
16
+ }));
17
+ const e = r;
18
+ return (s, k) => (t(), c("div", m, [
19
+ o("div", f, [
20
+ e.icon ? (t(), c("span", u, [
21
+ (t(), d(p(e.icon)))
22
+ ])) : _("", !0),
23
+ o("h3", h, n(e.title), 1)
24
+ ]),
25
+ o("span", w, n(e.description), 1),
26
+ a(s.$slots, "footer", {}, void 0, !0)
27
+ ]));
28
+ }
29
+ });
30
+ export {
31
+ C as default
32
+ };
@@ -0,0 +1,144 @@
1
+ import { createElementBlock as d, openBlock as n, createElementVNode as o, createStaticVNode as c } from "vue";
2
+ const s = (t, e) => {
3
+ const i = t.__vccOpts || t;
4
+ for (const [r, l] of e)
5
+ i[r] = l;
6
+ return i;
7
+ }, f = {
8
+ name: "IconArrowDown"
9
+ }, w = {
10
+ width: "20",
11
+ height: "20",
12
+ viewBox: "0 0 20 20",
13
+ fill: "none",
14
+ xmlns: "http://www.w3.org/2000/svg"
15
+ };
16
+ function a(t, e, i, r, l, h) {
17
+ return n(), d("svg", w, e[0] || (e[0] = [
18
+ c('<filter id="mini_shadow" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur in="SourceAlpha" stdDeviation="1.2"></feGaussianBlur><feOffset dx="0" dy="1.5" result="offsetblur"></feOffset><feFlood flood-color="rgba(0,0,0,0.12)"></feFlood><feComposite in2="offsetblur" operator="in"></feComposite><feMerge><feMergeNode></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><circle cx="10" cy="10" r="6.5" fill="white" filter="url(#mini_shadow)"></circle><path d="M12.5 9.5L10 12L7.5 9.5" stroke="#595959" stroke-width="1.1" stroke-linecap="round" stroke-linejoin="round"></path>', 3)
19
+ ]));
20
+ }
21
+ const D = /* @__PURE__ */ s(f, [["render", a]]), C = {
22
+ name: "IconArrowUp"
23
+ }, p = {
24
+ width: "20",
25
+ height: "20",
26
+ viewBox: "0 0 20 20",
27
+ fill: "none",
28
+ xmlns: "http://www.w3.org/2000/svg"
29
+ };
30
+ function u(t, e, i, r, l, h) {
31
+ return n(), d("svg", p, e[0] || (e[0] = [
32
+ c('<filter id="shadow_s" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur in="SourceAlpha" stdDeviation="1.5"></feGaussianBlur><feOffset dx="0" dy="2" result="offsetblur"></feOffset><feFlood flood-color="rgba(0,0,0,0.15)"></feFlood><feComposite in2="offsetblur" operator="in"></feComposite><feMerge><feMergeNode></feMergeNode><feMergeNode in="SourceGraphic"></feMergeNode></feMerge></filter><circle cx="10" cy="10" r="6" fill="white" filter="url(#shadow_s)"></circle><path d="M7.5 10.5L10 8L12.5 10.5" stroke="#595959" stroke-width="1" stroke-linecap="round" stroke-linejoin="round"></path>', 3)
33
+ ]));
34
+ }
35
+ const G = /* @__PURE__ */ s(C, [["render", u]]), g = {
36
+ name: "IconCopy"
37
+ }, x = {
38
+ viewBox: "0 0 16 16",
39
+ fill: "none",
40
+ xmlns: "http://www.w3.org/2000/svg",
41
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
42
+ };
43
+ function k(t, e, i, r, l, h) {
44
+ return n(), d("svg", x, e[0] || (e[0] = [
45
+ o("desc", null, "Created with Pixso.", -1),
46
+ o("defs", null, null, -1),
47
+ o("path", {
48
+ id: "矢量 22",
49
+ d: "M4 4.76C2.89 4.76 2 5.66 2 6.76L2 11.99C2 13.1 2.89 13.99 4 13.99L9.23 13.99C10.33 13.99 11.23 13.1 11.23 11.99L11.23 6.76C11.23 5.66 10.33 4.76 9.23 4.76L4 4.76ZM14 8.46L14 3.84C14 2.82 13.17 2 12.15 2L7.53 2",
50
+ stroke: "#191919",
51
+ "stroke-opacity": "1.000000",
52
+ "stroke-width": "1.000000",
53
+ "stroke-linecap": "round"
54
+ }, null, -1)
55
+ ]));
56
+ }
57
+ const P = /* @__PURE__ */ s(g, [["render", k]]), y = {
58
+ name: "IconEdit"
59
+ }, v = {
60
+ width: "16.000000",
61
+ height: "16.000000",
62
+ viewBox: "0 0 16 16",
63
+ fill: "none",
64
+ xmlns: "http://www.w3.org/2000/svg",
65
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
66
+ };
67
+ function m(t, e, i, r, l, h) {
68
+ return n(), d("svg", v, e[0] || (e[0] = [
69
+ c('<desc> Created with Pixso. </desc><defs></defs><rect id="矩形" width="16.000000" height="16.000000" fill="#FF8800" fill-opacity="0"></rect><rect id="矩形" x="0.500000" y="0.500000" width="15.000000" height="15.000000" stroke="#979797" stroke-opacity="0" stroke-width="1.000000"></rect><path id="路径" d="M4.57 14L12.71 5.85C13.42 5.14 13.42 3.99 12.71 3.28C12 2.57 10.85 2.57 10.14 3.28L2 11.42L2 14L4.57 14Z" stroke="#1476ff" stroke-opacity="1.000000" stroke-width="1.000000" stroke-linejoin="round"></path><path id="Fill 1" d="M12.85 12.75C12.27 13.29 12 14.14 12 15C12 14.15 11.7 13.29 11.14 12.75C10.6 12.22 9.81 12 9 12C9.78 12 10.6 11.73 11.14 11.25C11.74 10.7 12 9.87 12 9C12 9.87 12.26 10.7 12.85 11.25C13.39 11.74 14.21 12 15 12C14.2 12 13.39 12.24 12.85 12.75Z" fill="#1476ff" fill-opacity="1.000000" fill-rule="evenodd"></path><path id="Fill 1" d="" fill="#F2F2F2" fill-opacity="0" fill-rule="evenodd"></path><path id="Fill 1备份" d="M3.57 3.5C3.18 3.86 3 4.42 3 5C3 4.43 2.8 3.86 2.42 3.5C2.06 3.15 1.54 3 1 3C1.52 3 2.07 2.82 2.42 2.5C2.82 2.13 3 1.58 3 1C3 1.58 3.17 2.13 3.57 2.5C3.92 2.82 4.47 3 5 3C4.46 3 3.92 3.16 3.57 3.5Z" fill="#1476ff" fill-opacity="1.000000" fill-rule="evenodd"></path><path id="Fill 1备份" d="" fill="#F2F2F2" fill-opacity="0" fill-rule="evenodd"></path><path id="路径" d="M8.85 4.57L11.42 7.14" stroke="#1476ff" stroke-opacity="1.000000" stroke-width="1.000000" stroke-linejoin="round" stroke-linecap="round"></path>', 10)
70
+ ]));
71
+ }
72
+ const S = /* @__PURE__ */ s(y, [["render", m]]), L = {
73
+ name: "IconHotQuestion"
74
+ }, F = {
75
+ width: "36.000000",
76
+ height: "36.000000",
77
+ viewBox: "0 0 36 36",
78
+ fill: "none",
79
+ xmlns: "http://www.w3.org/2000/svg",
80
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
81
+ };
82
+ function M(t, e, i, r, l, h) {
83
+ return n(), d("svg", F, e[0] || (e[0] = [
84
+ c('<desc> Created with Pixso. </desc><defs></defs><rect id="矩形" width="36.000000" height="36.000000" fill="#D8D8D8" fill-opacity="0"></rect><rect id="矩形" x="0.500000" y="0.500000" width="35.000000" height="35.000000" stroke="#979797" stroke-opacity="0" stroke-width="1.000000"></rect><mask id="mask_558_34052" fill="white"><path id="形状结合" d="M24.8647 6.34033L24.8765 6.29529C24.978 5.90442 25.532 5.90161 25.6375 6.2915L25.655 6.35693C25.8301 6.96191 26.3176 7.43347 26.9287 7.5874C27.3254 7.68726 27.3254 8.25098 26.9287 8.35095C26.2969 8.51025 25.7986 9.00854 25.6394 9.64038C25.5396 10.0371 24.9758 10.0371 24.8757 9.64038C24.7166 9.00854 24.2183 8.51025 23.5864 8.3512C23.1897 8.25122 23.1897 7.6875 23.5864 7.58752C24.2053 7.43164 24.697 6.94995 24.8647 6.34033ZM15.3689 9.2561L15.4387 8.98706C15.6418 8.20508 16.75 8.19958 16.9609 8.97949L17.0735 9.39624C18.2734 13.547 21.615 16.7795 25.8079 17.8352C26.6016 18.035 26.6016 19.1625 25.8081 19.3624C21.4719 20.4552 18.0571 23.8704 16.9656 28.2061C16.7656 28.9995 15.6382 28.9996 15.4382 28.2062C14.3455 23.8701 10.9304 20.4552 6.59473 19.3635C5.80127 19.1637 5.80103 18.0363 6.59448 17.8363C10.8413 16.7661 14.2107 13.4655 15.3689 9.2561ZM25.418 24.1724L25.3992 24.2444C25.1309 25.2197 24.3442 25.9904 23.354 26.2399C22.7192 26.3998 22.7192 27.3019 23.354 27.4617C24.365 27.7162 25.1624 28.5134 25.417 29.5244C25.5769 30.1592 26.479 30.1591 26.6387 29.5243C26.8933 28.5134 27.6904 27.7161 28.7017 27.4613C29.3364 27.3014 29.3362 26.3994 28.7014 26.2396C27.7239 25.9934 26.9436 25.2388 26.6638 24.2709L26.6357 24.1663C26.467 23.5424 25.5803 23.5468 25.418 24.1724Z" clip-rule="evenodd" fill="" fill-opacity="1.000000" fill-rule="evenodd"></path></mask><path id="形状结合" d="M24.8647 6.34033L24.8765 6.29529C24.978 5.90442 25.532 5.90161 25.6375 6.2915L25.655 6.35693C25.8301 6.96191 26.3176 7.43347 26.9287 7.5874C27.3254 7.68726 27.3254 8.25098 26.9287 8.35095C26.2969 8.51025 25.7986 9.00854 25.6394 9.64038C25.5396 10.0371 24.9758 10.0371 24.8757 9.64038C24.7166 9.00854 24.2183 8.51025 23.5864 8.3512C23.1897 8.25122 23.1897 7.6875 23.5864 7.58752C24.2053 7.43164 24.697 6.94995 24.8647 6.34033ZM15.3689 9.2561L15.4387 8.98706C15.6418 8.20508 16.75 8.19958 16.9609 8.97949L17.0735 9.39624C18.2734 13.547 21.615 16.7795 25.8079 17.8352C26.6016 18.035 26.6016 19.1625 25.8081 19.3624C21.4719 20.4552 18.0571 23.8704 16.9656 28.2061C16.7656 28.9995 15.6382 28.9996 15.4382 28.2062C14.3455 23.8701 10.9304 20.4552 6.59473 19.3635C5.80127 19.1637 5.80103 18.0363 6.59448 17.8363C10.8413 16.7661 14.2107 13.4655 15.3689 9.2561ZM25.418 24.1724L25.3992 24.2444C25.1309 25.2197 24.3442 25.9904 23.354 26.2399C22.7192 26.3998 22.7192 27.3019 23.354 27.4617C24.365 27.7162 25.1624 28.5134 25.417 29.5244C25.5769 30.1592 26.479 30.1591 26.6387 29.5243C26.8933 28.5134 27.6904 27.7161 28.7017 27.4613C29.3364 27.3014 29.3362 26.3994 28.7014 26.2396C27.7239 25.9934 26.9436 25.2388 26.6638 24.2709L26.6357 24.1663C26.467 23.5424 25.5803 23.5468 25.418 24.1724Z" clip-rule="evenodd" fill="#1476FF" fill-opacity="1.000000" fill-rule="evenodd" mask="url(#mask_558_34052)"></path><path id="形状结合" d="" clip-rule="evenodd" fill="#979797" fill-opacity="0.000000" fill-rule="evenodd"></path>', 7)
85
+ ]));
86
+ }
87
+ const j = /* @__PURE__ */ s(L, [["render", M]]), A = {
88
+ name: "IconRefresh"
89
+ }, I = {
90
+ viewBox: "0 0 16 16",
91
+ fill: "none",
92
+ xmlns: "http://www.w3.org/2000/svg",
93
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
94
+ };
95
+ function B(t, e, i, r, l, h) {
96
+ return n(), d("svg", I, e[0] || (e[0] = [
97
+ o("desc", null, "Created with Pixso.", -1),
98
+ o("defs", null, [
99
+ o("clipPath", { id: "clip521_64343" }, [
100
+ o("rect", {
101
+ id: "刷新-refresh",
102
+ width: "16.000000",
103
+ height: "16.000000",
104
+ fill: "white",
105
+ "fill-opacity": "0"
106
+ })
107
+ ])
108
+ ], -1),
109
+ o("g", { "clip-path": "url(#clip521_64343)" }, [
110
+ o("path", {
111
+ id: "形状结合",
112
+ d: "M11.8 2.75C14.55 4.73 15.27 8.46 13.54 11.3L15.24 10.84C15.47 10.78 15.7 10.9 15.8 11.1L15.83 11.18C15.9 11.44 15.75 11.7 15.49 11.77L12.59 12.54C12.34 12.61 12.08 12.46 12.01 12.2L11.23 9.31C11.16 9.06 11.31 8.79 11.57 8.72C11.82 8.65 12.08 8.81 12.16 9.06L12.65 10.91C14.21 8.49 13.62 5.24 11.24 3.52C8.77 1.74 5.32 2.28 3.53 4.73C1.74 7.18 2.29 10.61 4.76 12.39C6.42 13.59 8.28 13.84 10.39 13.16C10.64 13.08 10.91 13.22 10.99 13.47C11.07 13.72 10.94 13.99 10.68 14.07C8.29 14.85 6.11 14.55 4.19 13.16C1.3 11.07 0.65 7.04 2.75 4.16C4.85 1.29 8.91 0.66 11.8 2.75Z",
113
+ fill: "#191919",
114
+ "fill-opacity": "1.000000",
115
+ "fill-rule": "nonzero"
116
+ })
117
+ ], -1)
118
+ ]));
119
+ }
120
+ const E = /* @__PURE__ */ s(A, [["render", B]]), Z = {
121
+ name: "IconTypeAll"
122
+ }, _ = {
123
+ width: "16.000000",
124
+ height: "16.000000",
125
+ viewBox: "0 0 16 16",
126
+ fill: "none",
127
+ xmlns: "http://www.w3.org/2000/svg",
128
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
129
+ };
130
+ function N(t, e, i, r, l, h) {
131
+ return n(), d("svg", _, e[0] || (e[0] = [
132
+ c('<desc> Created with Pixso. </desc><defs></defs><rect id="矩形" width="16.000000" height="16.000000" fill="#6598FF" fill-opacity="0"></rect><rect id="矩形" x="0.500000" y="0.500000" width="15.000000" height="15.000000" stroke="#979797" stroke-opacity="0" stroke-width="1.000000"></rect><rect id="矩形" x="1.667969" y="1.666504" rx="1.000000" width="5.000000" height="5.000000" fill="#1476FF" fill-opacity="0"></rect><rect id="矩形" x="1.667969" y="1.666504" rx="1.000000" width="5.000000" height="5.000000" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.000000"></rect><rect id="矩形备份 6" x="1.500000" y="9.500000" rx="1.000000" width="5.000000" height="5.000000" fill="#1476FF" fill-opacity="0"></rect><rect id="矩形备份 6" x="1.500000" y="9.500000" rx="1.000000" width="5.000000" height="5.000000" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.000000"></rect><rect id="矩形备份 5" x="9.500000" y="1.500000" rx="2.500000" width="5.000000" height="5.000000" fill="#1476FF" fill-opacity="0"></rect><rect id="矩形备份 5" x="9.500000" y="1.500000" rx="2.500000" width="5.000000" height="5.000000" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.000000"></rect><rect id="矩形备份 7" x="9.500000" y="9.500000" rx="1.000000" width="5.000000" height="5.000000" fill="#1476FF" fill-opacity="0"></rect><rect id="矩形备份 7" x="9.500000" y="9.500000" rx="1.000000" width="5.000000" height="5.000000" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.000000"></rect>', 12)
133
+ ]));
134
+ }
135
+ const O = /* @__PURE__ */ s(Z, [["render", N]]);
136
+ export {
137
+ D as IconArrowDown,
138
+ G as IconArrowUp,
139
+ P as IconCopy,
140
+ S as IconEdit,
141
+ j as IconHotQuestion,
142
+ E as IconRefresh,
143
+ O as IconTypeAll
144
+ };
@@ -0,0 +1,12 @@
1
+ import { App } from 'vue';
2
+ import { default as PromptComp } from './prompt.vue';
3
+ import { default as PromptsComp } from './prompts.vue';
4
+ declare const installPrompt: <T>(app: App<T>) => void;
5
+ export declare const Prompt: typeof PromptComp & {
6
+ install: typeof installPrompt;
7
+ };
8
+ declare const installPrompts: <T>(app: App<T>) => void;
9
+ export declare const Prompts: typeof PromptsComp & {
10
+ install: typeof installPrompts;
11
+ };
12
+ export {};
@@ -0,0 +1,55 @@
1
+ import { CSSProperties, VNode } from 'vue';
2
+ export interface PromptProps {
3
+ /**
4
+ * 提示标签,显示提示的主要内容
5
+ */
6
+ label: string;
7
+ /**
8
+ * 唯一标识用于区分每个提示项,用于 Prompts 列表。如果不传此参数,则使用 index 作为 key
9
+ */
10
+ id?: string;
11
+ /**
12
+ * 提示描述,提供额外的信息
13
+ */
14
+ description?: string;
15
+ /**
16
+ * 提示图标,显示在提示项的左侧
17
+ */
18
+ icon?: VNode;
19
+ /**
20
+ * 是否禁用。默认 false
21
+ */
22
+ disabled?: boolean;
23
+ /**
24
+ * 提示徽章,显示在提示项的右上角
25
+ */
26
+ badge?: string | VNode;
27
+ }
28
+ export interface PromptsProps {
29
+ /**
30
+ * 包含多个提示项的列表
31
+ */
32
+ items: PromptProps[];
33
+ /**
34
+ * 自定义样式,用于各个提示项的不同部分
35
+ */
36
+ itemStyle?: string | CSSProperties;
37
+ /**
38
+ * 自定义类名,用于各个提示项的不同部分
39
+ */
40
+ itemClass?: string | string[];
41
+ /**
42
+ * 提示列表是否垂直排列。默认 false
43
+ */
44
+ vertical?: boolean;
45
+ /**
46
+ * 提示列表是否折行。默认 false
47
+ */
48
+ wrap?: boolean;
49
+ }
50
+ export interface PromptsEvents {
51
+ (e: 'item-click', ev: MouseEvent, item: PromptProps): void;
52
+ }
53
+ export interface PromptsSlots {
54
+ footer?: () => unknown;
55
+ }
@@ -0,0 +1,3 @@
1
+ import { PromptProps } from './index.type';
2
+ declare const _default: import('vue').DefineComponent<PromptProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<PromptProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
3
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import { PromptProps, PromptsProps, PromptsSlots } from './index.type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: Readonly<PromptsSlots> & PromptsSlots;
5
+ refs: {};
6
+ rootEl: HTMLDivElement;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<PromptsProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ "item-click": (ev: MouseEvent, item: PromptProps) => any;
11
+ }, string, import('vue').PublicProps, Readonly<PromptsProps> & Readonly<{
12
+ "onItem-click"?: ((ev: MouseEvent, item: PromptProps) => any) | undefined;
13
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
14
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
15
+ export default _default;
16
+ type __VLS_WithTemplateSlots<T, S> = T & {
17
+ new (): {
18
+ $slots: S;
19
+ };
20
+ };
@@ -0,0 +1,32 @@
1
+ import { PropType } from 'vue';
2
+ import { Question } from '../index.type';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ questions: {
5
+ type: PropType<Question[]>;
6
+ required: true;
7
+ };
8
+ isExpanded: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "question-click": (...args: any[]) => void;
14
+ "show-expand-button": (...args: any[]) => void;
15
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
+ questions: {
17
+ type: PropType<Question[]>;
18
+ required: true;
19
+ };
20
+ isExpanded: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>> & Readonly<{
25
+ "onQuestion-click"?: ((...args: any[]) => any) | undefined;
26
+ "onShow-expand-button"?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ isExpanded: boolean;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
30
+ commonQuestionsRef: HTMLDivElement;
31
+ }, HTMLDivElement>;
32
+ export default _default;