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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (244) 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/container/index.d.ts +7 -0
  7. package/dist/container/index.type.d.ts +16 -0
  8. package/dist/container/index.vue.d.ts +26 -0
  9. package/dist/index.d.ts +10 -5
  10. package/dist/index.js +31 -20
  11. package/dist/node_modules/.pnpm/@opentiny_utils@1.0.0/node_modules/@opentiny/utils/dist/opentiny-utils.es.js +832 -0
  12. package/dist/node_modules/.pnpm/@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js +959 -1496
  13. 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
  14. 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
  15. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.21.0/node_modules/@opentiny/vue-common/lib/index.js +727 -0
  16. package/dist/node_modules/.pnpm/@opentiny_vue-common@3.22.0/node_modules/@opentiny/vue-common/lib/index.js +144 -675
  17. 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
  18. 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
  19. package/dist/node_modules/.pnpm/@opentiny_vue-icon@3.21.0/node_modules/@opentiny/vue-icon/lib/close.js +29 -0
  20. 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
  21. 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
  22. 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
  23. 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
  24. 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
  25. 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
  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-column-after.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-add-column-before.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-add-row-after.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-add-row-before.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-align-center.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-align-left.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-align-right.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-bold.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-code-block.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-code-view.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-color.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-delete-column.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-delete-row.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-delete-table.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-font-size.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-format-clear.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-h1.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-h2.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-h3.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-h4.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-h5.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-h6.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-heading.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-high-light.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-image.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-italic.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-line-height.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-link-unlink.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-link.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-list-ordered.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-list-unordered.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-merge-cells-vertical.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-merge-cells.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-node-delete.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-paragraph.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-quote-text.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-redo.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-split-cells-horizontal.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-split-cells-vertical.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-strike-through.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-subscript.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-superscript.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-table.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/rich-text-task-list.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/rich-text-underline.js +1 -1
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/browser.js +36 -0
  79. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/clickoutside.js +47 -0
  80. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/debounce.js +7 -0
  81. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/dom.js +45 -0
  82. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popper.js +320 -0
  83. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/popup-manager.js +118 -0
  84. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/throttle.js +23 -0
  85. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useEventListener.js +9 -0
  86. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useInstanceSlots.js +14 -0
  87. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/useRelation.js +54 -0
  88. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popper.js +84 -0
  89. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/deps/vue-popup.js +73 -0
  90. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/event.js +13 -0
  91. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/function.js +5 -0
  92. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/index.js +11 -0
  93. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/object.js +84 -0
  94. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/string.js +28 -0
  95. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/common/type.js +28 -0
  96. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/dialog-box/index.js +136 -0
  97. 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
  98. 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
  99. 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
  100. 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
  101. 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
  102. 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
  103. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.21.2/node_modules/@opentiny/vue-renderless/tooltip/vue.js +90 -0
  104. 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
  105. 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
  106. package/dist/packages/components/src/{bubble-list → bubble}/bubble-list.vue.js +2 -2
  107. package/dist/packages/components/src/bubble/bubble-list.vue2.js +37 -0
  108. package/dist/packages/components/src/bubble/bubble.vue.js +7 -0
  109. package/dist/packages/components/src/bubble/bubble.vue2.js +118 -0
  110. package/dist/packages/components/src/bubble/components/actions/copy.vue.js +7 -0
  111. package/dist/packages/components/src/bubble/components/actions/copy.vue2.js +35 -0
  112. package/dist/packages/components/src/bubble/components/actions/refresh.vue.js +7 -0
  113. package/dist/packages/components/src/bubble/components/actions/refresh.vue2.js +16 -0
  114. package/dist/packages/components/src/bubble/index.js +18 -0
  115. package/dist/packages/components/src/bubble/useScroll.js +13 -0
  116. package/dist/packages/components/src/container/index.js +9 -0
  117. package/dist/packages/components/src/container/index.vue.js +7 -0
  118. package/dist/packages/components/src/container/index.vue2.js +55 -0
  119. package/dist/packages/components/src/conversations/index.js +1 -1
  120. package/dist/packages/components/src/prompts/index.js +18 -0
  121. package/dist/packages/components/src/prompts/prompt.vue.js +7 -0
  122. package/dist/packages/components/src/prompts/prompt.vue2.js +37 -0
  123. package/dist/packages/components/src/prompts/prompts.vue.js +7 -0
  124. package/dist/packages/components/src/prompts/prompts.vue2.js +36 -0
  125. package/dist/packages/components/src/question/components/CommonQuestions.vue.js +89 -0
  126. package/dist/packages/components/src/question/components/CommonQuestions.vue2.js +4 -0
  127. package/dist/packages/components/src/question/components/HotQuestions.vue.js +140 -0
  128. package/dist/packages/components/src/question/components/HotQuestions.vue2.js +4 -0
  129. package/dist/packages/components/src/question/composables/useQuestions.js +48 -0
  130. package/dist/packages/components/src/question/index.js +9 -0
  131. package/dist/packages/components/src/question/index.vue.js +113 -0
  132. package/dist/packages/components/src/question/index.vue2.js +4 -0
  133. package/dist/packages/components/src/sender/components/ActionButtons.vue.js +105 -123
  134. package/dist/packages/components/src/sender/composables/useInputHandler.js +26 -22
  135. package/dist/packages/components/src/sender/composables/useKeyboardHandler.js +11 -11
  136. package/dist/packages/components/src/sender/composables/useSpeechHandler.js +9 -9
  137. package/dist/packages/components/src/sender/index.vue.js +67 -66
  138. package/dist/packages/components/src/welcome/index.vue.js +5 -7
  139. package/dist/packages/components/src/welcome/index.vue2.js +32 -0
  140. package/dist/packages/svgs/dist/tiny-robot-svgs.js +223 -0
  141. package/dist/prompts/index.d.ts +12 -0
  142. package/dist/prompts/index.type.d.ts +55 -0
  143. package/dist/prompts/prompt.vue.d.ts +3 -0
  144. package/dist/prompts/prompts.vue.d.ts +20 -0
  145. package/dist/question/components/CommonQuestions.vue.d.ts +32 -0
  146. package/dist/question/components/HotQuestions.vue.d.ts +89 -0
  147. package/dist/question/composables/useQuestions.d.ts +17 -0
  148. package/dist/question/index.d.ts +7 -0
  149. package/dist/question/index.type.d.ts +74 -0
  150. package/dist/question/index.vue.d.ts +46 -0
  151. package/dist/sender/components/ActionButtons.vue.d.ts +6 -4
  152. package/dist/sender/composables/useSpeechHandler.d.ts +0 -6
  153. package/dist/sender/index.type.d.ts +1 -1
  154. package/dist/sender/index.vue.d.ts +3 -4
  155. package/dist/style.css +1 -1
  156. package/dist/welcome/index.type.d.ts +10 -0
  157. package/dist/welcome/index.vue.d.ts +17 -1
  158. package/package.json +6 -5
  159. package/src/bubble/bubble-list.vue +42 -0
  160. package/src/bubble/bubble.vue +247 -0
  161. package/src/bubble/components/actions/copy.vue +54 -0
  162. package/src/bubble/components/actions/refresh.vue +31 -0
  163. package/src/bubble/index.ts +23 -0
  164. package/src/bubble/index.type.ts +63 -0
  165. package/src/bubble/useScroll.ts +14 -0
  166. package/src/container/index.ts +12 -0
  167. package/src/container/index.type.ts +17 -0
  168. package/src/container/index.vue +135 -0
  169. package/src/conversations/index.ts +1 -1
  170. package/src/index.ts +26 -12
  171. package/src/prompts/index.ts +25 -0
  172. package/src/prompts/index.type.ts +59 -0
  173. package/src/prompts/prompt.vue +115 -0
  174. package/src/prompts/prompts.vue +50 -0
  175. package/src/question/components/CommonQuestions.vue +146 -0
  176. package/src/question/components/HotQuestions.vue +148 -0
  177. package/src/question/composables/useQuestions.ts +106 -0
  178. package/src/question/index.less +448 -0
  179. package/src/question/index.ts +12 -0
  180. package/src/question/index.type.ts +86 -0
  181. package/src/question/index.vue +140 -0
  182. package/src/question/vars.less +135 -0
  183. package/src/sender/components/ActionButtons.vue +42 -39
  184. package/src/sender/composables/useInputHandler.ts +15 -10
  185. package/src/sender/composables/useKeyboardHandler.ts +6 -4
  186. package/src/sender/composables/useSpeechHandler.ts +5 -11
  187. package/src/sender/index.less +3 -5
  188. package/src/sender/index.type.ts +1 -1
  189. package/src/sender/index.vue +3 -2
  190. package/src/welcome/index.type.ts +12 -0
  191. package/src/welcome/index.vue +68 -2
  192. package/.vscode/extensions.json +0 -3
  193. package/dist/bubble-item/components/icons/ai.vue.d.ts +0 -2
  194. package/dist/bubble-item/components/icons/index.d.ts +0 -2
  195. package/dist/bubble-item/components/icons/user.vue.d.ts +0 -2
  196. package/dist/bubble-item/index.d.ts +0 -7
  197. package/dist/bubble-list/index.d.ts +0 -8
  198. package/dist/bubble-list/index.type.d.ts +0 -55
  199. package/dist/node_modules/.pnpm/@opentiny_vue-directive@3.22.0/node_modules/@opentiny/vue-directive/index.js +0 -57
  200. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popper.js +0 -85
  201. package/dist/node_modules/.pnpm/@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/vue-popup.js +0 -69
  202. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/dialog-box/index.js +0 -135
  203. package/dist/node_modules/.pnpm/@opentiny_vue-renderless@3.22.0/node_modules/@opentiny/vue-renderless/tooltip/vue.js +0 -90
  204. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js +0 -5
  205. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js +0 -10
  206. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseTrim.js +0 -8
  207. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js +0 -4
  208. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js +0 -15
  209. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js +0 -7
  210. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js +0 -5
  211. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
  212. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/debounce.js +0 -54
  213. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObject.js +0 -7
  214. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js +0 -6
  215. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isSymbol.js +0 -9
  216. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/now.js +0 -7
  217. package/dist/node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/toNumber.js +0 -22
  218. package/dist/packages/components/src/bubble-item/bubble-item.vue.js +0 -7
  219. package/dist/packages/components/src/bubble-item/bubble-item.vue2.js +0 -111
  220. package/dist/packages/components/src/bubble-item/components/actions/copy.vue.js +0 -46
  221. package/dist/packages/components/src/bubble-item/components/actions/copy.vue2.js +0 -4
  222. package/dist/packages/components/src/bubble-item/components/actions/refresh.vue.js +0 -12
  223. package/dist/packages/components/src/bubble-item/components/icons/ai.vue.js +0 -45
  224. package/dist/packages/components/src/bubble-item/components/icons/user.vue.js +0 -63
  225. package/dist/packages/components/src/bubble-item/index.js +0 -9
  226. package/dist/packages/components/src/bubble-list/bubble-list.vue2.js +0 -52
  227. package/dist/packages/components/src/bubble-list/index.js +0 -9
  228. package/src/bubble-item/bubble-item.vue +0 -264
  229. package/src/bubble-item/components/actions/copy.vue +0 -47
  230. package/src/bubble-item/components/actions/refresh.vue +0 -27
  231. package/src/bubble-item/components/icons/ai.vue +0 -30
  232. package/src/bubble-item/components/icons/index.ts +0 -2
  233. package/src/bubble-item/components/icons/user.vue +0 -78
  234. package/src/bubble-item/index.ts +0 -12
  235. package/src/bubble-list/bubble-list.vue +0 -53
  236. package/src/bubble-list/index.ts +0 -14
  237. package/src/bubble-list/index.type.ts +0 -65
  238. package/src/sender/global.d.ts +0 -44
  239. /package/dist/{bubble-list → bubble}/bubble-list.vue.d.ts +0 -0
  240. /package/dist/{bubble-item → bubble}/components/actions/index.d.ts +0 -0
  241. /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
  242. /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
  243. /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
  244. /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,223 @@
1
+ import { createElementBlock as n, openBlock as c, createElementVNode as t, createStaticVNode as h } from "vue";
2
+ const d = (i, e) => {
3
+ const l = i.__vccOpts || i;
4
+ for (const [o, r] of e)
5
+ l[o] = r;
6
+ return l;
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(i, e, l, o, r, s) {
17
+ return c(), n("svg", w, e[0] || (e[0] = [
18
+ h('<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 Q = /* @__PURE__ */ d(f, [["render", a]]), p = {
22
+ name: "IconArrowUp"
23
+ }, C = {
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(i, e, l, o, r, s) {
31
+ return c(), n("svg", C, e[0] || (e[0] = [
32
+ h('<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 T = /* @__PURE__ */ d(p, [["render", u]]), x = {
36
+ name: "IconCancelFullScreen"
37
+ }, g = {
38
+ version: "1.1",
39
+ id: "图层_1",
40
+ xmlns: "http://www.w3.org/2000/svg",
41
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
42
+ x: "0px",
43
+ y: "0px",
44
+ viewBox: "0 0 132 132",
45
+ style: { "enable-background": "new 0 0 132 132" },
46
+ "xml:space": "preserve"
47
+ };
48
+ function k(i, e, l, o, r, s) {
49
+ return c(), n("svg", g, e[0] || (e[0] = [
50
+ t("rect", {
51
+ style: { fill: "none" },
52
+ width: "132",
53
+ height: "132"
54
+ }, null, -1),
55
+ t("path", {
56
+ style: { fill: "currentColor" },
57
+ d: `M96.2,64.8c2.3,0,4.1-1.8,4.1-4.1s-1.8-4.1-4.1-4.1H81.3l20.6-20.7c1.5-1.4,1.6-3.7,0.4-5.4l-0.4-0.4
58
+ c-1.5-1.6-4-1.7-5.6-0.2c-0.1,0.1-0.1,0.1-0.2,0.2L75.6,50.6V36c0-2-1.4-3.7-3.4-4.1h-0.7c-2.3,0-4.1,1.8-4.1,4.1v21.8
59
+ c0,4.1,3.3,7.4,7.4,7.4L96.2,64.8z M30.2,101.9c1.5,1.6,4,1.6,5.6,0.2c0.1-0.1,0.1-0.1,0.2-0.2l20.5-20.5V96c0,2,1.4,3.7,3.4,4.1
60
+ h0.7c2.3,0,4.1-1.8,4.1-4.1V74.2c0-4.1-3.3-7.4-7.4-7.4H35.8c-2.3,0-4.1,1.8-4.1,4.1s1.8,4.1,4.1,4.1h14.9L30.1,95.8
61
+ c-1.3,1.6-1.3,3.8,0,5.4L30.2,101.9z M33,20.6h66c6.8,0,12.4,5.5,12.4,12.4v66c0,6.8-5.5,12.4-12.4,12.4H33
62
+ c-6.8,0-12.4-5.5-12.4-12.4V33C20.6,26.2,26.2,20.6,33,20.6z M33,12.4c-11.4,0-20.6,9.2-20.6,20.6v66c0,11.4,9.2,20.6,20.6,20.6h66
63
+ c11.4,0,20.6-9.2,20.6-20.6V33c0-11.4-9.2-20.6-20.6-20.6H33z`
64
+ }, null, -1)
65
+ ]));
66
+ }
67
+ const R = /* @__PURE__ */ d(x, [["render", k]]), v = {
68
+ name: "IconClose"
69
+ }, y = {
70
+ viewBox: "0 0 20 20",
71
+ fill: "none",
72
+ xmlns: "http://www.w3.org/2000/svg",
73
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
74
+ };
75
+ function L(i, e, l, o, r, s) {
76
+ return c(), n("svg", y, e[0] || (e[0] = [
77
+ h('<desc> Created with Pixso. </desc><defs></defs><rect id="矩形 757" width="20.000000" height="20.000000" fill="#C4C4C4" fill-opacity="0"></rect><path id="路径 2" d="M3.33 4.19L3.3 4.19C3.06 3.94 3.06 3.55 3.3 3.3C3.55 3.06 3.94 3.06 4.19 3.3L4.19 3.33L3.33 4.19ZM16.66 15.8L16.69 15.8C16.93 16.05 16.93 16.44 16.69 16.69C16.44 16.93 16.05 16.93 15.8 16.69L15.8 16.66L16.66 15.8Z" fill="#D8D8D8" fill-opacity="0" fill-rule="nonzero"></path><path id="路径 2" d="M3.75 3.75L16.25 16.25" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.250000" stroke-linejoin="round" stroke-linecap="round"></path><path id="路径 2" d="M15.8 3.33L15.8 3.3C16.05 3.06 16.44 3.06 16.69 3.3C16.93 3.55 16.93 3.94 16.69 4.19L16.66 4.19L15.8 3.33ZM4.19 16.66L4.19 16.69C3.94 16.93 3.55 16.93 3.3 16.69C3.06 16.44 3.06 16.05 3.3 15.8L3.33 15.8L4.19 16.66Z" fill="#D8D8D8" fill-opacity="0" fill-rule="nonzero"></path><path id="路径 2" d="M16.25 3.75L3.75 16.25" stroke="#191919" stroke-opacity="1.000000" stroke-width="1.250000" stroke-linejoin="round" stroke-linecap="round"></path>', 7)
78
+ ]));
79
+ }
80
+ const U = /* @__PURE__ */ d(v, [["render", L]]), m = {
81
+ name: "IconCopy"
82
+ }, M = {
83
+ viewBox: "0 0 16 16",
84
+ fill: "none",
85
+ xmlns: "http://www.w3.org/2000/svg",
86
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
87
+ };
88
+ function F(i, e, l, o, r, s) {
89
+ return c(), n("svg", M, e[0] || (e[0] = [
90
+ t("desc", null, "Created with Pixso.", -1),
91
+ t("defs", null, null, -1),
92
+ t("path", {
93
+ id: "矢量 22",
94
+ 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",
95
+ stroke: "#191919",
96
+ "stroke-opacity": "1.000000",
97
+ "stroke-width": "1.000000",
98
+ "stroke-linecap": "round"
99
+ }, null, -1)
100
+ ]));
101
+ }
102
+ const q = /* @__PURE__ */ d(m, [["render", F]]), z = {
103
+ name: "IconEdit"
104
+ }, I = {
105
+ width: "16.000000",
106
+ height: "16.000000",
107
+ viewBox: "0 0 16 16",
108
+ fill: "none",
109
+ xmlns: "http://www.w3.org/2000/svg",
110
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
111
+ };
112
+ function B(i, e, l, o, r, s) {
113
+ return c(), n("svg", I, e[0] || (e[0] = [
114
+ h('<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)
115
+ ]));
116
+ }
117
+ const J = /* @__PURE__ */ d(z, [["render", B]]), Z = {
118
+ name: "IconFullScreen"
119
+ }, _ = {
120
+ version: "1.1",
121
+ id: "图层_1",
122
+ xmlns: "http://www.w3.org/2000/svg",
123
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
124
+ x: "0px",
125
+ y: "0px",
126
+ viewBox: "0 0 132 132",
127
+ style: { "enable-background": "new 0 0 132 132" },
128
+ "xml:space": "preserve"
129
+ };
130
+ function D(i, e, l, o, r, s) {
131
+ return c(), n("svg", _, e[0] || (e[0] = [
132
+ t("rect", {
133
+ style: { fill: "none" },
134
+ width: "132",
135
+ height: "132"
136
+ }, null, -1),
137
+ t("path", {
138
+ style: { fill: "currentColor" },
139
+ d: `M74.2,28.9c-2.3,0-4.1,1.8-4.1,4.1s1.8,4.1,4.1,4.1h14.9L68.6,57.8c-1.5,1.4-1.7,3.7-0.4,5.4l0.4,0.5
140
+ c1.7,1.6,4.2,1.6,5.9,0l20.5-20.5v14.7c0,2,1.4,3.7,3.4,4H99c2.3,0,4.1-1.8,4.1-4.1V36.3c0-4.1-3.3-7.4-7.4-7.4H74.2z M63.4,68.4
141
+ c-1.6-1.6-4.2-1.6-5.9,0L37.1,88.9V74.2c0-2-1.4-3.7-3.4-4H33c-2.3,0-4.1,1.8-4.1,4.1v21.4c0,4.1,3.3,7.4,7.4,7.4h21.5
142
+ c2.3,0,4.1-1.8,4.1-4.1S60.1,95,57.8,95H42.8l20.6-20.7c1.3-1.6,1.3-3.8,0-5.4V68.4z M33,20.6h66c6.8,0,12.4,5.5,12.4,12.4v66
143
+ c0,6.8-5.5,12.4-12.4,12.4H33c-6.8,0-12.4-5.5-12.4-12.4V33C20.6,26.2,26.2,20.6,33,20.6z M33,12.4c-11.4,0-20.6,9.2-20.6,20.6v66
144
+ c0,11.4,9.2,20.6,20.6,20.6h66c11.4,0,20.6-9.2,20.6-20.6V33c0-11.4-9.2-20.6-20.6-20.6H33z`
145
+ }, null, -1)
146
+ ]));
147
+ }
148
+ const K = /* @__PURE__ */ d(Z, [["render", D]]), b = {
149
+ name: "IconHotQuestion"
150
+ }, H = {
151
+ width: "36.000000",
152
+ height: "36.000000",
153
+ viewBox: "0 0 36 36",
154
+ fill: "none",
155
+ xmlns: "http://www.w3.org/2000/svg",
156
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
157
+ };
158
+ function V(i, e, l, o, r, s) {
159
+ return c(), n("svg", H, e[0] || (e[0] = [
160
+ h('<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)
161
+ ]));
162
+ }
163
+ const X = /* @__PURE__ */ d(b, [["render", V]]), N = {
164
+ name: "IconRefresh"
165
+ }, S = {
166
+ viewBox: "0 0 16 16",
167
+ fill: "none",
168
+ xmlns: "http://www.w3.org/2000/svg",
169
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
170
+ };
171
+ function P(i, e, l, o, r, s) {
172
+ return c(), n("svg", S, e[0] || (e[0] = [
173
+ t("desc", null, "Created with Pixso.", -1),
174
+ t("defs", null, [
175
+ t("clipPath", { id: "clip521_64343" }, [
176
+ t("rect", {
177
+ id: "刷新-refresh",
178
+ width: "16.000000",
179
+ height: "16.000000",
180
+ fill: "white",
181
+ "fill-opacity": "0"
182
+ })
183
+ ])
184
+ ], -1),
185
+ t("g", { "clip-path": "url(#clip521_64343)" }, [
186
+ t("path", {
187
+ id: "形状结合",
188
+ 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",
189
+ fill: "#191919",
190
+ "fill-opacity": "1.000000",
191
+ "fill-rule": "nonzero"
192
+ })
193
+ ], -1)
194
+ ]));
195
+ }
196
+ const Y = /* @__PURE__ */ d(N, [["render", P]]), j = {
197
+ name: "IconTypeAll"
198
+ }, G = {
199
+ width: "16.000000",
200
+ height: "16.000000",
201
+ viewBox: "0 0 16 16",
202
+ fill: "none",
203
+ xmlns: "http://www.w3.org/2000/svg",
204
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
205
+ };
206
+ function O(i, e, l, o, r, s) {
207
+ return c(), n("svg", G, e[0] || (e[0] = [
208
+ h('<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)
209
+ ]));
210
+ }
211
+ const $ = /* @__PURE__ */ d(j, [["render", O]]);
212
+ export {
213
+ Q as IconArrowDown,
214
+ T as IconArrowUp,
215
+ R as IconCancelFullScreen,
216
+ U as IconClose,
217
+ q as IconCopy,
218
+ J as IconEdit,
219
+ K as IconFullScreen,
220
+ X as IconHotQuestion,
221
+ Y as IconRefresh,
222
+ $ as IconTypeAll
223
+ };
@@ -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
+ };