@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,725 +1,194 @@
1
1
  import * as l from "vue";
2
- import { capitalize as te, camelize as re, debounce as ne, hyphenate as ie, isServer as oe } from "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
3
- import { t as K } from "../../../../../@opentiny_vue-locale@3.22.0/node_modules/@opentiny/vue-locale/lib/index.js";
2
+ import "../../../../../@opentiny_utils@3.22.0/node_modules/@opentiny/utils/dist/index.es.js";
4
3
  /* empty css */
5
- import { useInstanceSlots as ae } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js";
6
- import { useRelation as ue } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js";
7
- function j() {
8
- return j = Object.assign ? Object.assign.bind() : function(f) {
9
- for (var e = 1; e < arguments.length; e++) {
10
- var t = arguments[e];
11
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (f[r] = t[r]);
4
+ import { useInstanceSlots as D } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useInstanceSlots.js";
5
+ import { useRelation as L } from "../../../../../@opentiny_vue-hooks@3.22.0/node_modules/@opentiny/vue-hooks/dist/src/useRelation.js";
6
+ function g() {
7
+ return g = Object.assign ? Object.assign.bind() : function(u) {
8
+ for (var r = 1; r < arguments.length; r++) {
9
+ var n = arguments[r];
10
+ for (var t in n) ({}).hasOwnProperty.call(n, t) && (u[t] = n[t]);
12
11
  }
13
- return f;
14
- }, j.apply(null, arguments);
12
+ return u;
13
+ }, g.apply(null, arguments);
15
14
  }
16
- var k = function() {
17
- var e = {}, t = function(n, a, o) {
18
- if (o === void 0 && (o = !1), n && typeof n == "string" && typeof a == "function") {
19
- var u = e[n] || [];
20
- e[n] = u, u.push(a), a.once = o;
15
+ var N = function() {
16
+ var r = {}, n = function(e, f, i) {
17
+ if (i === void 0 && (i = !1), e && typeof e == "string" && typeof f == "function") {
18
+ var o = r[e] || [];
19
+ r[e] = o, o.push(f), f.once = i;
21
20
  }
22
- }, r = {
23
- emit: function(n) {
24
- var a = arguments, o = e[n];
25
- o && (o.forEach(function(u) {
26
- return u.apply(null, [].slice.call(a, 1));
27
- }), e[n] = o.filter(function(u) {
28
- return !u.once;
21
+ }, t = {
22
+ emit: function(e) {
23
+ var f = arguments, i = r[e];
24
+ i && (i.forEach(function(o) {
25
+ return o.apply(null, [].slice.call(f, 1));
26
+ }), r[e] = i.filter(function(o) {
27
+ return !o.once;
29
28
  }));
30
29
  },
31
- on: t,
32
- once: function(n, a) {
33
- t(n, a, !0);
30
+ on: n,
31
+ once: function(e, f) {
32
+ n(e, f, !0);
34
33
  },
35
- off: function(n, a) {
36
- if (n && typeof n == "string") {
37
- var o = e[n];
38
- typeof a == "function" ? e[n] = o.filter(function(u) {
39
- return u !== a;
40
- }) : delete e[n];
34
+ off: function(e, f) {
35
+ if (e && typeof e == "string") {
36
+ var i = r[e];
37
+ typeof f == "function" ? r[e] = i.filter(function(o) {
38
+ return o !== f;
39
+ }) : delete r[e];
41
40
  } else
42
- e = {};
41
+ r = {};
43
42
  }
44
43
  };
45
- return r;
46
- }, fe = function(e, t) {
47
- t === void 0 && (t = {});
48
- var r = {};
49
- for (var i in e)
50
- i.indexOf("_") !== 0 && (r[i] = e[i]);
51
- for (var n in t)
52
- r[n] = t[n];
53
- return r;
54
- }, se = function(e, t) {
55
- if (e === void 0 && (e = {}), typeof t == "object") {
56
- var r = Array.isArray(t) ? t : Object.keys(t).filter(function(n) {
57
- return t[n];
58
- }), i = "";
59
- return r.forEach(function(n) {
60
- e[n] && (i += e[n] + " ");
61
- }), i;
62
- } else
63
- return e[t] || "";
64
- }, ce = l.defineAsyncComponent, le = l.markRaw, z = function(e) {
65
- var t = e.view, r = t === void 0 ? void 0 : t, i = e.component, n = i === void 0 ? void 0 : i, a = e.props, o = e.context, u = o.attrs, s = o.slots, c = e.extend, v = c === void 0 ? {} : c;
44
+ return t;
45
+ }, G = l.markRaw, U = function(r) {
46
+ var n = r.view, t = n === void 0 ? void 0 : n, a = r.component, e = a === void 0 ? void 0 : a, f = r.props, i = r.context, o = i.attrs, c = i.slots, s = r.extend, p = s === void 0 ? {} : s;
66
47
  return function() {
67
- return l.h(r && r.value || n, j({
48
+ return l.h(t && t.value || e, g({
68
49
  ref: "modeTemplate"
69
- }, a, u, v), s);
70
- };
71
- }, F = function(e) {
72
- var t = l.getCurrentInstance();
73
- return e && q(t), t == null ? void 0 : t.appContext.config.globalProperties;
74
- }, ve = function() {
75
- var e, t = l.getCurrentInstance(), r = t == null || (e = t.type) == null ? void 0 : e.name;
76
- if (!r) {
77
- var i, n;
78
- r = t == null || (i = t.parent) == null || (n = i.type) == null ? void 0 : n.name;
79
- }
80
- return r || "";
81
- }, pe = function() {
82
- var e;
83
- return ((e = l.getCurrentInstance()) == null ? void 0 : e.appContext) || {
84
- component: function() {
85
- }
86
- };
87
- }, de = function() {
88
- var e = l.getCurrentInstance();
89
- return (e == null ? void 0 : e.appContext.config.globalProperties) || {};
90
- }, ge = function(e) {
91
- var t;
92
- e === void 0 && (e = l.getCurrentInstance());
93
- var r = (t = e) == null ? void 0 : t.appContext.config.globalProperties.$router, i = r && r.currentRoute.value;
94
- return {
95
- route: i,
96
- router: r
97
- };
98
- }, q = function(e) {
99
- var t = k();
100
- typeof e.$emitter > "u" && Object.defineProperty(e, "$emitter", {
50
+ }, f, o, p), c);
51
+ };
52
+ }, V = function(r) {
53
+ var n = l.getCurrentInstance();
54
+ return r && q(n), n == null ? void 0 : n.appContext.config.globalProperties;
55
+ }, q = function(r) {
56
+ var n = N();
57
+ typeof r.$emitter > "u" && Object.defineProperty(r, "$emitter", {
101
58
  get: function() {
102
- return t;
59
+ return n;
103
60
  }
104
61
  });
105
- }, me = function(e) {
106
- var t = function(i, n, a, o) {
107
- var u = i.subTree && i.subTree.children || i.children;
108
- Array.isArray(u) && u.forEach(function(s) {
109
- var c = s.type && s.type.componentName, v = s.component;
110
- c === n ? (v.emit(a, o), v.$emitter && v.$emitter.emit(a, o)) : t(s, n, a, o);
111
- });
112
- };
113
- return {
114
- dispatch: function(i, n, a) {
115
- for (var o = e.parent || e.root, u = o.type && o.type.componentName; o && (!u || u !== i); )
116
- o = o.parent, o && (u = o.type && o.type.componentName);
117
- if (o) {
118
- var s, c;
119
- (s = o).emit.apply(s, [n].concat(a)), o.$emitter && (c = o.$emitter).emit.apply(c, [n].concat(a));
120
- }
121
- },
122
- broadcast: function(i, n, a) {
123
- t(e, i, n, a);
124
- }
125
- };
126
- }, w = function(e) {
127
- if (e && e.parent) return e.parent.type.name === "AsyncComponentWrapper" && e.parent.parent ? e.parent.parent : e.parent;
128
- }, ye = function(e) {
129
- return function(t) {
130
- var r = w(e), i = 0, n = function(o) {
131
- return {
132
- level: i,
133
- vm: _({}, o),
134
- el: o.vnode.el,
135
- options: o.type
136
- };
137
- };
138
- if (typeof t != "function") return r ? n(r) : {};
139
- for (i++; r && !t(n(r)); )
140
- r = w(r), i++;
141
- };
142
- }, he = function(e) {
143
- return function(t) {
144
- if (typeof t != "function") return Q(e.subTree);
145
- var r = 1, i = function(a) {
146
- if (a) {
147
- var o = a.children || a.dynamicChildren, u = r++;
148
- if (Array.isArray(o)) {
149
- if (o.some(function(s) {
150
- return s.component && t({
151
- level: u,
152
- vm: _({}, s.component),
153
- el: s.el,
154
- options: s.type,
155
- isLevel1: !0
156
- });
157
- })) return;
158
- o.forEach(function(s) {
159
- return i(s);
160
- });
161
- }
162
- }
163
- };
164
- i(e.subTree);
165
- };
166
- }, be = /^on[A-Z]/, Ce = function(e) {
167
- var t = {}, r = {};
168
- for (var i in e) {
169
- var n = e[i];
170
- if (be.test(i) && typeof n == "function") {
171
- r[ie(i.substr(2))] = n;
172
- continue;
173
- }
174
- t[i] = n;
175
- }
176
- return {
177
- $attrs: t,
178
- $listeners: r
179
- };
180
- }, Q = function(e) {
181
- var t = [];
182
- if (t.refs = {}, e) {
183
- var r = e.dynamicChildren || e.children;
184
- Array.isArray(r) ? r.forEach(function(i) {
185
- if (i.component) {
186
- var n = _({}, i.component);
187
- t.push(n), i.props.ref && (t.refs[i.props.ref] = n);
188
- }
189
- }) : e.component && t.push(_({}, e.component));
190
- }
191
- return t;
192
- }, S = function(e, t, r, i) {
193
- var n = function(u) {
194
- if (typeof i == "function" && i(u)) return 1;
195
- Object.defineProperty(e, u, {
196
- configurable: !0,
197
- enumerable: !0,
198
- get: function() {
199
- return t[r][u];
200
- },
201
- set: function(c) {
202
- return t[r][u] = c;
203
- }
204
- });
205
- };
206
- for (var a in t[r])
207
- n(a);
208
- return e;
209
- }, U = function(e) {
210
- return e.indexOf("_") === 0;
211
- }, W = function(e, t) {
212
- return S(e, t, "setupState", null), S(e, t, "props", U), S(e, t, "ctx", U), e;
213
- }, _ = function(e, t, r) {
214
- r === void 0 && (r = null);
215
- var i = Ce(t.attrs), n = i.$attrs, a = i.$listeners, o = t.$emitter;
216
- o || (q(t), o = t.$emitter);
217
- var u = function() {
218
- for (var v = arguments.length, b = new Array(v), d = 0; d < v; d++)
219
- b[d] = arguments[d];
220
- t.emit.apply(t, b), o.emit.apply(e, b);
221
- }, s = function(v, b, d) {
222
- return v[b] = d;
223
- };
224
- return r || W(e, t), Object.defineProperties(e, {
225
- $attrs: {
226
- get: function() {
227
- return n;
228
- }
229
- },
230
- $children: {
231
- get: function() {
232
- return Q(t.subTree);
233
- }
234
- },
235
- $constants: {
236
- get: function() {
237
- return t.props._constants;
238
- }
239
- },
240
- $emit: {
241
- get: function() {
242
- return u;
243
- }
244
- },
245
- $el: {
246
- get: function() {
247
- return t.vnode.el;
248
- }
249
- },
250
- $listeners: {
251
- get: function() {
252
- return a;
253
- }
254
- },
255
- $mode: {
256
- get: function() {
257
- return t._tiny_mode;
258
- }
259
- },
260
- $nextTick: {
261
- get: function() {
262
- return l.nextTick;
263
- }
264
- },
265
- $off: {
266
- get: function() {
267
- return o.off;
268
- }
269
- },
270
- $on: {
271
- get: function() {
272
- return o.on;
273
- }
274
- },
275
- $once: {
276
- get: function() {
277
- return o.once;
278
- }
279
- },
280
- $options: {
281
- get: function() {
282
- return {
283
- componentName: t.type.componentName
284
- };
285
- }
286
- },
287
- $parent: {
288
- get: function() {
289
- return t.parent && _({}, w(t));
290
- }
291
- },
292
- $refs: {
293
- get: function() {
294
- return t.refs;
295
- }
296
- },
297
- $renderless: {
298
- get: function() {
299
- return t.props.tiny_renderless;
300
- }
301
- },
302
- $scopedSlots: {
303
- get: function() {
304
- return t.slots;
305
- }
306
- },
307
- $set: {
308
- get: function() {
309
- return s;
310
- }
311
- },
312
- $slots: {
313
- get: function() {
314
- return t.slots;
315
- }
316
- },
317
- $template: {
318
- get: function() {
319
- return t.props.tiny_template;
320
- }
321
- }
322
- }), e;
323
- }, $e = function(e, t) {
324
- for (var r in e.refs)
325
- Object.prototype.hasOwnProperty.call(e.refs, r) && (t[r] = e.refs[r]);
326
- }, xe = function(e, t) {
327
- var r, i, n = l.getCurrentInstance(), a = n == null ? void 0 : n.appContext.config.globalProperties, o = ge(n), u = o.route, s = o.router, c = n == null || (r = n.proxy) == null || (i = r.$root) == null ? void 0 : i.$i18n, v = me(n), b = v.dispatch, d = v.broadcast, I = ye(n), A = he(n), m = _({}, n, e), y = e.emit, p = {}, C = typeof n.props.tiny_template > "u" && w(n), h = C ? _({}, C) : n.parent ? _({}, n.parent) : null, g = function($) {
328
- var P, O = $.name, H = $.value, ee = C ? C.ctx : n == null || (P = n.parent) == null ? void 0 : P.ctx;
329
- ee[O] = H, h[O] = H;
330
- }, x = function($) {
331
- Object.defineProperties(m, $), Object.defineProperties(n == null ? void 0 : n.ctx, $);
332
- }, M = function($) {
333
- h && Object.defineProperties(h, $);
334
- };
335
- return l.onBeforeMount(function() {
336
- return W(m, n);
337
- }), l.onMounted(function() {
338
- return $e(n, p);
339
- }), {
340
- framework: "vue3",
341
- vm: m,
342
- emit: y,
343
- emitter: k,
344
- route: u,
345
- router: s,
346
- dispatch: b,
347
- broadcast: d,
348
- parentHandler: I,
349
- childrenHandler: A,
350
- i18n: c,
351
- refs: p,
352
- slots: n == null ? void 0 : n.slots,
353
- scopedSlots: n == null ? void 0 : n.slots,
354
- attrs: e.attrs,
355
- parent: h,
356
- nextTick: l.nextTick,
357
- constants: n == null ? void 0 : n.props._constants,
358
- mode: t,
359
- isPCMode: t === "pc",
360
- isMobileMode: t === "mobile",
361
- service: a == null ? void 0 : a.$service,
362
- getService: function() {
363
- return a == null ? void 0 : a.$getService(m);
364
- },
365
- setParentAttribute: g,
366
- defineInstanceProperties: x,
367
- defineParentInstanceProperties: M
368
- };
369
- }, T = function(e, t, r) {
370
- if (typeof e[t] < "u") {
371
- var i = e[t];
372
- e[r] = function(n, a, o) {
373
- o.context = a.instance, i(n, a, o);
374
- }, delete e[t];
375
- }
376
- }, Ue = function(e) {
377
- for (var t in e) {
378
- var r = e[t];
379
- T(r, "inserted", "mounted"), T(r, "bind", "beforeMount"), T(r, "update", "updated"), T(r, "unbind", "unmounted");
380
- }
381
- return e;
382
- }, ke = function(e) {
383
- return e;
384
- }, _e = l.Text, Ae = l.Comment, ze = function(e) {
385
- return !e || !e.type || [_e, Ae].includes(e.type);
386
- }, Pe = function(e) {
387
- var t = {};
388
- for (var r in e)
389
- if (r === "class" || r === "style")
390
- t[r] = e[r];
391
- else if (r === "on" || r === "nativeOn") {
392
- var i = e[r];
393
- for (var n in i) t["on" + te(re(n))] = i[n];
394
- } else if (r === "attrs" || r === "props" || r === "domProps") {
395
- var a = e[r];
396
- for (var o in a) t[o] = a[o];
397
- } else
398
- t[r] = e[r];
399
- return t;
400
- }, Ee = function(e) {
401
- var t = e, r = !1;
402
- if (typeof e == "string" && typeof document < "u") {
403
- var i = document.createElement(e), n = ["SVG", "CIRCLE", "PATH"];
404
- i instanceof HTMLUnknownElement && !n.includes(i.nodeName) || e.includes("-") ? (e = e.toLowerCase(), r = !0, e === "transition" ? t = l.Transition : e === "transition-group" ? t = l.TransitionGroup : t = l.resolveComponent(e)) : t = e;
405
- }
406
- return {
407
- type: t,
408
- component: e,
409
- customElement: r
410
- };
411
- }, qe = function(e, t, r) {
412
- var i = {}, n = r, a = Ee(e), o = a.customElement, u = a.type;
413
- return e = a.component, t && typeof t == "object" && !Array.isArray(t) ? (i = Pe(t), t.scopedSlots && (n = t.scopedSlots)) : (typeof t == "string" || Array.isArray(t)) && (r = t), (typeof r == "string" || Array.isArray(r)) && (n = typeof e != "string" || o ? function() {
414
- return r;
415
- } : r), l.h(u, i, n);
416
- }, je = function(e) {
417
- return function(t) {
418
- var r, i = t.component, n = t.propsData, a = t.el, o = Object.assign(i, {
419
- provide: (r = {}, r[e.configKey] = e.configInstance, r)
420
- }), u = l.createVNode(o, n);
421
- return l.render(u, a), _({}, u.component);
422
- };
423
- }, Ie = l.defineComponent, Z = !1, L = function(e) {
424
- var t = [];
425
- return Object.keys(e).forEach(function(r) {
426
- return e[r] && t.push(r);
427
- }), t.join(" ");
428
- }, Oe = function(e) {
429
- var t = [];
430
- return e.forEach(function(r) {
431
- typeof r == "string" ? t.push(r) : typeof r == "object" && t.push(L(r));
432
- }), t.join(" ");
433
- }, V = function(e) {
434
- if (!e)
62
+ }, F = l.defineComponent, A = !1, d = function(r) {
63
+ var n = [];
64
+ return Object.keys(r).forEach(function(t) {
65
+ return r[t] && n.push(t);
66
+ }), n.join(" ");
67
+ }, z = function(r) {
68
+ var n = [];
69
+ return r.forEach(function(t) {
70
+ typeof t == "string" ? n.push(t) : typeof t == "object" && n.push(d(t));
71
+ }), n.join(" ");
72
+ }, B = function(r) {
73
+ if (!r)
435
74
  return "";
436
- if (typeof e == "string")
437
- return e;
438
- if (Array.isArray(e) && e.length > 0) {
439
- var t = [];
440
- return e.forEach(function(r) {
441
- r && (typeof r == "string" ? t.push(r) : Array.isArray(r) ? t.push(Oe(r)) : typeof r == "object" && t.push(L(r)));
442
- }), t.join(" ");
75
+ if (typeof r == "string")
76
+ return r;
77
+ if (Array.isArray(r) && r.length > 0) {
78
+ var n = [];
79
+ return r.forEach(function(t) {
80
+ t && (typeof t == "string" ? n.push(t) : Array.isArray(t) ? n.push(z(t)) : typeof t == "object" && n.push(d(t)));
81
+ }), n.join(" ");
443
82
  }
444
- return typeof e == "object" ? L(e) : "";
445
- }, Qe = function(e) {
446
- var t = V(e), r = Array.from(new Set(t.split(" "))).filter(function(i) {
447
- return i;
448
- });
449
- return V(r);
450
- }, Te = function() {
451
- var e = l.ref(""), t = ["2xl", "xl", "lg", "md", "sm"], r = function(u) {
452
- return oe || typeof matchMedia != "function" ? {
453
- matches: !1,
454
- media: u,
455
- addEventListener: function() {
456
- },
457
- removeEventListener: function() {
458
- }
459
- } : window.matchMedia(u);
460
- }, i = {
461
- "2xl": r("(min-width:1536px)"),
462
- xl: r("(min-width:1280px)"),
463
- lg: r("(min-width:1024px)"),
464
- md: r("(min-width:768px)"),
465
- sm: r("(min-width:640px)")
466
- }, n = function() {
467
- for (var u = 0; u < t.length; u++) {
468
- var s = t[u];
469
- if (i[s].matches) {
470
- e.value = s;
471
- return;
472
- }
473
- }
474
- e.value = "default";
475
- }, a = ne(0, function() {
476
- return n();
477
- });
478
- return n(), t.forEach(function(o) {
479
- return i[o].addEventListener("change", a);
480
- }), l.onBeforeUnmount(function() {
481
- t.forEach(function(o) {
482
- return i[o].removeEventListener("change", a);
483
- });
484
- }), {
485
- current: e
486
- };
487
- }, we = ["IconLoadingShadow", "IconNoData"], J = 0, X = function(e, t) {
83
+ return typeof r == "object" ? d(r) : "";
84
+ }, H = ["IconLoadingShadow", "IconNoData"], M = 0, O = function(r, n) {
488
85
  {
489
- var r;
490
- if ((r = e.props) != null && r.id) {
491
- var i = "" + e.props.id + J;
492
- t[e.props.id] = i, e.props.id = i;
86
+ var t;
87
+ if ((t = r.props) != null && t.id) {
88
+ var a = "" + r.props.id + M;
89
+ n[r.props.id] = a, r.props.id = a;
493
90
  }
494
91
  }
495
- Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(n) {
496
- X(n, t);
92
+ Array.isArray(r == null ? void 0 : r.children) && r.children.forEach(function(e) {
93
+ O(e, n);
497
94
  });
498
- }, Y = function(e, t) {
499
- var r = ["fill", "mask", "filter"];
500
- r.forEach(function(i) {
95
+ }, E = function(r, n) {
96
+ var t = ["fill", "mask", "filter"];
97
+ t.forEach(function(a) {
501
98
  {
502
- var n, a;
503
- if ((n = e.props) != null && (a = n[i]) != null && a.includes("url(#")) {
504
- var o = e.props[i].replace("url(#", "").replace(")", ""), u = t[o];
505
- u && (e.props[i] = "url(#" + u + ")");
99
+ var e, f;
100
+ if ((e = r.props) != null && (f = e[a]) != null && f.includes("url(#")) {
101
+ var i = r.props[a].replace("url(#", "").replace(")", ""), o = n[i];
102
+ o && (r.props[a] = "url(#" + o + ")");
506
103
  }
507
104
  }
508
- }), Array.isArray(e == null ? void 0 : e.children) && e.children.forEach(function(i) {
509
- Y(i, t);
105
+ }), Array.isArray(r == null ? void 0 : r.children) && r.children.forEach(function(a) {
106
+ E(a, n);
510
107
  });
511
- }, Me = function(e) {
512
- if (e) {
513
- var t = {};
514
- X(e, t), Y(e, t), J++;
108
+ }, J = function(r) {
109
+ if (r) {
110
+ var n = {};
111
+ O(r, n), E(r, n), M++;
515
112
  }
516
113
  };
517
- ae(j({}, l, {
518
- isVue2: Z
114
+ D(g({}, l, {
115
+ isVue2: A
519
116
  }));
520
- ue(j({}, l, {
521
- isVue2: Z
117
+ L(g({}, l, {
118
+ isVue2: A
522
119
  }));
523
- var B = "Tiny", We = {
524
- tiny_mode: String,
525
- tiny_mode_root: Boolean,
526
- tiny_template: [Function, Object],
527
- tiny_renderless: Function,
528
- tiny_theme: String,
529
- tiny_chart_theme: Object
530
- }, Ze = ["tiny_mode", "tiny_mode_root", "tiny_template", "tiny_renderless", "_constants", "tiny_theme", "tiny_chart_theme"], G = function(e, t) {
531
- var r = function(v) {
532
- return ~["pc", "mobile", "mobile-first"].indexOf(v);
533
- }, i = F(t), n = typeof e.tiny_mode == "string" ? e.tiny_mode : null, a = l.inject("TinyMode", null), o;
534
- typeof i.tiny_mode == "string" ? o = i.tiny_mode : i.tiny_mode && (o = i.tiny_mode.value), r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
535
- var u = n || a || o || "pc";
536
- e.tiny_mode_root && l.provide("TinyMode", u);
537
- var s = l.getCurrentInstance();
538
- return Object.defineProperty(s, "_tiny_mode", {
539
- value: u
540
- }), u;
541
- }, Se = function(e, t) {
542
- var r = function(c) {
543
- return ~["tiny", "saas"].indexOf(c);
544
- }, i = F(t), n = typeof e.tiny_theme == "string" ? e.tiny_theme : null, a = l.inject("TinyTheme", null), o = i.tiny_theme && i.tiny_theme.value;
545
- r(n) || (n = null), r(a) || (a = null), r(o) || (o = null);
546
- var u = n || a || o || "tiny";
547
- return u;
548
- }, Re = function(e, t) {
549
- var r = F(t), i = typeof e.tiny_chart_theme == "object" ? e.tiny_chart_theme : null, n = l.inject("TinyChartTheme", null), a = r.tiny_chart_theme && r.tiny_chart_theme.value, o = i || n || a || null;
550
- return o;
551
- }, Je = function(e) {
552
- var t = e.props, r = e.context, i = e.template, n = e.extend, a = n === void 0 ? {} : n, o = G(t, r), u = l.computed(function() {
553
- if (typeof t.tiny_template < "u") return t.tiny_template;
554
- var s = i(o, t);
555
- return typeof s == "function" ? ce(s) : s;
556
- });
557
- return z({
558
- view: u,
559
- props: t,
560
- context: r,
561
- extend: a
562
- });
563
- }, D = {
564
- configKey: Symbol("designConfigKey"),
565
- configInstance: null
566
- }, Xe = je(D), Le = {
120
+ var K = "Tiny", Q = function(r, n) {
121
+ var t = function(p) {
122
+ return ~["pc", "mobile", "mobile-first"].indexOf(p);
123
+ }, a = V(n), e = typeof r.tiny_mode == "string" ? r.tiny_mode : null, f = l.inject("TinyMode", null), i;
124
+ typeof a.tiny_mode == "string" ? i = a.tiny_mode : a.tiny_mode && (i = a.tiny_mode.value), t(e) || (e = null), t(f) || (f = null), t(i) || (i = null);
125
+ var o = e || f || i || "pc";
126
+ r.tiny_mode_root && l.provide("TinyMode", o);
127
+ var c = l.getCurrentInstance();
128
+ return Object.defineProperty(c, "_tiny_mode", {
129
+ value: o
130
+ }), o;
131
+ }, W = {
567
132
  designConfig: null,
568
133
  twMerge: function() {
569
134
  return "";
570
135
  }
571
- }, N = function() {
572
- for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++)
573
- t[r] = arguments[r];
574
- return Le.twMerge(V(t));
575
- }, Ye = function(e) {
576
- var t, r, i, n = e.props, a = e.context, o = e.renderless, u = e.api, s = e.extendOptions, c = s === void 0 ? {} : s, v = e.mono, b = v === void 0 ? !1 : v, d = e.classes, I = d === void 0 ? {} : d, A = typeof n.tiny_renderless == "function" ? n.tiny_renderless : o, m = l.inject(D.configKey, {});
577
- m = ((t = m) == null ? void 0 : t.value) || m || {};
578
- var y = (r = m) == null || (i = r.components) == null ? void 0 : i[ve().replace(B, "")], p = j({
579
- $prefix: B,
580
- t: K
581
- }, xe(a, G(n, a)), {
582
- designConfig: y,
583
- globalDesignConfig: m,
584
- useBreakpoint: Te,
585
- mergeClass: N
586
- });
587
- p.vm.theme = Se(n, a), p.vm.chartTheme = Re(n, a);
588
- var C = A(n, l, p, c);
589
- typeof (y == null ? void 0 : y.renderless) == "function" && Object.assign(C, y.renderless(n, l, p, C));
590
- var h = {
591
- t: K,
592
- vm: p.vm,
593
- f: fe,
594
- a: Ve,
595
- d: p.defineInstanceProperties,
596
- dp: p.defineParentInstanceProperties,
597
- gcls: function(x) {
598
- return se(I, x);
599
- },
600
- m: N
601
- };
602
- return h.d({
603
- slots: {
604
- get: function() {
605
- return p.vm.$slots;
606
- },
607
- configurable: !0
608
- },
609
- scopedSlots: {
610
- get: function() {
611
- return p.vm.$scopedSlots;
612
- },
613
- configurable: !0
614
- }
615
- }), h.dp({
616
- slots: {
617
- get: function() {
618
- return p.parent.$slots;
619
- },
620
- configurable: !0
621
- },
622
- scopedSlots: {
623
- get: function() {
624
- return p.parent.$scopedSlots;
625
- },
626
- configurable: !0
627
- }
628
- }), Be(), Array.isArray(u) && (Array.isArray(y == null ? void 0 : y.api) && (u = u.concat(y.api)), u.forEach(function(g) {
629
- var x = C[g];
630
- typeof x < "u" && (h[g] = x, b || p.setParentAttribute({
631
- name: g,
632
- value: x
633
- }));
634
- })), h;
136
+ }, X = function() {
137
+ for (var r = arguments.length, n = new Array(r), t = 0; t < r; t++)
138
+ n[t] = arguments[t];
139
+ return W.twMerge(B(n));
635
140
  };
636
- function De(f) {
637
- var e = f.name, t = e === void 0 ? "Icon" : e, r = f.component;
638
- return function(i) {
639
- return le(Ie({
640
- name: B + t,
641
- setup: function(a, o) {
642
- var u = o.attrs || {}, s = u.fill, c = u.width, v = u.height, b = u["custom-class"], d = u["first-color"], I = u["second-color"], A = Object.assign({}, a, i || null), m = G(A, o), y = m === "mobile-first", p = {
141
+ function nr(u) {
142
+ var r = u.name, n = r === void 0 ? "Icon" : r, t = u.component;
143
+ return function(a) {
144
+ return G(F({
145
+ name: K + n,
146
+ setup: function(f, i) {
147
+ var o = i.attrs || {}, c = o.fill, s = o.width, p = o.height, x = o["custom-class"], C = o["first-color"], R = o["second-color"], m = Object.assign({}, f, a || null), T = Q(m, i), y = T === "mobile-first", P = {
643
148
  "data-tag": y ? "tiny-svg" : null
644
- }, C = p, h = "tiny-svg";
645
- y && (h = N("h-4 w-4 inline-block", b || "", A.class || ""));
646
- var g = Object.assign({
149
+ }, _ = P, h = "tiny-svg";
150
+ y && (h = X("h-4 w-4 inline-block", x || "", m.class || ""));
151
+ var b = Object.assign({
647
152
  style: {
648
- fill: s,
649
- width: c,
650
- height: v,
651
- "--tiny-first-color": d || "",
652
- "--tiny-second-color": I || ""
153
+ fill: c,
154
+ width: s,
155
+ height: p,
156
+ "--tiny-first-color": C || "",
157
+ "--tiny-second-color": R || ""
653
158
  },
654
159
  class: h,
655
160
  isSvg: !0
656
- }, C);
657
- if (g.nativeOn = o.listeners, we.includes(t)) {
658
- var x = r.render;
659
- r.render = function() {
660
- for (var M = x.bind(this), E = arguments.length, $ = new Array(E), P = 0; P < E; P++)
661
- $[P] = arguments[P];
662
- var O = M($);
663
- return Me(O), O;
161
+ }, _);
162
+ if (b.nativeOn = i.listeners, H.includes(n)) {
163
+ var S = t.render;
164
+ t.render = function() {
165
+ for (var $ = S.bind(this), j = arguments.length, I = new Array(j), v = 0; v < j; v++)
166
+ I[v] = arguments[v];
167
+ var w = $(I);
168
+ return J(w), w;
664
169
  };
665
170
  }
666
- return z({
667
- component: r,
668
- props: A,
669
- context: o,
670
- extend: g
171
+ return U({
172
+ component: t,
173
+ props: m,
174
+ context: i,
175
+ extend: b
671
176
  });
672
177
  }
673
178
  }));
674
179
  };
675
180
  }
676
- var Ve = function(e, t, r) {
677
- var i = {}, n = function(u) {
678
- var s = t.some(function(c) {
679
- return new RegExp(c).test(u);
680
- });
681
- (r && s || !r && !s) && (i[u] = e[u]);
682
- };
683
- for (var a in e)
684
- n(a);
685
- return i;
686
- }, R = {}, Be = function() {
687
- for (var e in R) {
688
- var t = R[e];
689
- typeof t.install == "function" && t.install(pe()), typeof t.init == "function" && t.init(de());
690
- }
691
- R = {};
692
- };
693
181
  export {
694
- B as $prefix,
695
- We as $props,
696
- Je as $setup,
697
- de as appProperties,
698
- Xe as createComponent,
699
- Le as customDesignConfig,
700
- Qe as deduplicateCssClass,
701
- ce as defineAsyncComponent,
702
- Ie as defineComponent,
703
- D as design,
704
- Ue as directive,
705
- k as emitter,
706
- Ve as filterAttrs,
707
- qe as h,
182
+ K as $prefix,
183
+ W as customDesignConfig,
184
+ F as defineComponent,
185
+ N as emitter,
708
186
  l as hooks,
709
- Be as initComponent,
710
- ze as isEmptyVnode,
711
- Z as isVue2,
712
- N as mergeClass,
713
- ke as parseVnode,
714
- Ze as props,
715
- G as resolveMode,
716
- Se as resolveTheme,
717
- Ye as setup,
718
- R as setupComponent,
719
- V as stringifyCssClass,
720
- Oe as stringifyCssClassArray,
721
- L as stringifyCssClassObject,
722
- De as svg,
723
- Te as useBreakpoint,
724
- ge as useRouter
187
+ A as isVue2,
188
+ X as mergeClass,
189
+ Q as resolveMode,
190
+ B as stringifyCssClass,
191
+ z as stringifyCssClassArray,
192
+ d as stringifyCssClassObject,
193
+ nr as svg
725
194
  };