@voicenter-team/voicenter-ui-plus 3.4.8 → 4.0.0-beta.1

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 (564) hide show
  1. package/README.md +1023 -558
  2. package/library/assets/assets/sass/main.css +1 -1
  3. package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunMetrics.css +1 -0
  4. package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunRow.css +1 -0
  5. package/library/assets/components/VcAgentRun/VcAgentRunCard.css +1 -0
  6. package/library/assets/components/VcAgentRun/VcAgentRunGroup.css +1 -0
  7. package/library/assets/components/VcAiReasoning/VcAiReasoning.css +1 -0
  8. package/library/assets/components/VcApprovalCard/VcApprovalCard.css +1 -0
  9. package/library/assets/components/VcAskUserCard/VcAskUserCard.css +1 -0
  10. package/library/assets/components/VcAutocomplete/VcAutocomplete.css +1 -1
  11. package/library/assets/components/VcAvatar/VcAvatar.css +1 -1
  12. package/library/assets/components/VcBadgeTag/VcBadgeTag.css +1 -1
  13. package/library/assets/components/VcButton/VcButton.css +1 -1
  14. package/library/assets/components/VcButton/VcButtonIcon.css +1 -1
  15. package/library/assets/components/VcButton/VcToggleButton.css +1 -1
  16. package/library/assets/components/VcCard/VcCard.css +1 -1
  17. package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
  18. package/library/assets/components/VcCheckbox/VcCheckbox.css +1 -1
  19. package/library/assets/components/VcCheckbox/VcCheckboxButton.css +1 -1
  20. package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -1
  21. package/library/assets/components/VcCollapse/VcCollapseItem.css +1 -1
  22. package/library/assets/components/VcColorPicker/VcColorPicker.css +1 -1
  23. package/library/assets/components/VcDatePicker/VcDatePicker.css +1 -1
  24. package/library/assets/components/VcDatePickerPanel/VcDatePickerPanel.css +1 -1
  25. package/library/assets/components/VcDatetimeRangePicker/VcDatetimeRangePicker.css +1 -1
  26. package/library/assets/components/VcDropdown/VcDropdown.css +1 -1
  27. package/library/assets/components/VcDropdown/VcDropdownItem.css +1 -1
  28. package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -1
  29. package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.css +1 -1
  30. package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.css +1 -1
  31. package/library/assets/components/VcFileUploader/VcFileItem.css +1 -1
  32. package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
  33. package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
  34. package/library/assets/components/VcForm/UiComponents/VcInputError.css +1 -1
  35. package/library/assets/components/VcForm/UiComponents/VcInputLabel.css +1 -1
  36. package/library/assets/components/VcForm/VcFormItem.css +1 -1
  37. package/library/assets/components/VcHtmlEditor/VcHtmlEditor.css +1 -1
  38. package/library/assets/components/VcHyperLink/VcHyperLink.css +1 -1
  39. package/library/assets/components/VcIconPicker/VcIconPicker.css +1 -1
  40. package/library/assets/components/VcImageUploader/VcImageUploader.css +1 -1
  41. package/library/assets/components/VcInput/VcInput.css +1 -1
  42. package/library/assets/components/VcInputNumber/VcInputNumber.css +1 -1
  43. package/library/assets/components/VcJsonSchema/Components/JsonCodeMirror.css +1 -1
  44. package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
  45. package/library/assets/components/VcJsonSchema/VcJsonSchema.css +1 -1
  46. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.css +1 -0
  47. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerCards.css +1 -0
  48. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerFields.css +1 -0
  49. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerKey.css +1 -0
  50. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerMore.css +1 -0
  51. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerObject.css +1 -0
  52. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerSections.css +1 -0
  53. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerState.css +1 -0
  54. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTable.css +1 -0
  55. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTree.css +1 -0
  56. package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerValue.css +1 -0
  57. package/library/assets/components/VcJsonViewer/VcJsonViewer.css +1 -0
  58. package/library/assets/components/VcLightbox/VcLightbox.css +1 -0
  59. package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
  60. package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
  61. package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
  62. package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
  63. package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
  64. package/library/assets/components/VcLoading/VcLoading.css +1 -1
  65. package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
  66. package/library/assets/components/VcMdEditor/VcMdEditorContent.css +1 -1
  67. package/library/assets/components/VcMessage/VcMessage.css +1 -1
  68. package/library/assets/components/VcMessage/content/VcMessageFileBlock.css +1 -1
  69. package/library/assets/components/VcMessage/content/VcMessageImageBlock.css +1 -1
  70. package/library/assets/components/VcMessage/content/VcMessageMarkdownBlock.css +1 -0
  71. package/library/assets/components/VcMessage/content/VcMessageTextBlock.css +1 -1
  72. package/library/assets/components/VcMessage/content/VcMessageVideoBlock.css +1 -1
  73. package/library/assets/components/VcMessage/reactions/VcMessageEmojiPicker.css +1 -1
  74. package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -1
  75. package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -1
  76. package/library/assets/components/VcMeterGroup/VcMeterGroup.css +1 -1
  77. package/library/assets/components/VcModal/VcModal.css +1 -1
  78. package/library/assets/components/VcNotification/VcNotification.css +1 -1
  79. package/library/assets/components/VcOtpInput/VcOtpInput.css +1 -1
  80. package/library/assets/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.css +1 -0
  81. package/library/assets/components/VcPdfViewer/VcPdfDocument.css +1 -1
  82. package/library/assets/components/VcPdfViewer/VcPdfDocumentCard.css +1 -1
  83. package/library/assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.css +1 -1
  84. package/library/assets/components/VcPdfViewer/VcPdfViewer.css +1 -0
  85. package/library/assets/components/VcPhoneInput/VcFlagLabel.css +1 -1
  86. package/library/assets/components/VcPhoneInput/VcPhoneInput.css +1 -1
  87. package/library/assets/components/VcPopover/VcConfirmPopover.css +1 -1
  88. package/library/assets/components/VcPopover/VcPopover.css +1 -1
  89. package/library/assets/components/VcPopover/VcSelectPopover.css +1 -1
  90. package/library/assets/components/VcProgress/VcProgress.css +1 -1
  91. package/library/assets/components/VcProgress/VcProgressCircular.css +1 -1
  92. package/library/assets/components/VcRadio/VcRadio.css +1 -1
  93. package/library/assets/components/VcRadioButtons/VcRadioButtonsGroup.css +1 -1
  94. package/library/assets/components/VcRadioGroup/VcRadioGroup.css +1 -1
  95. package/library/assets/components/VcRadioTabs/UiComponents/VcRadioTabsNav.css +1 -1
  96. package/library/assets/components/VcRadioTabs/VcRadioTabs.css +1 -1
  97. package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
  98. package/library/assets/components/VcSelect/VcSelect.css +1 -1
  99. package/library/assets/components/VcSelect/VcSelectOption.css +1 -1
  100. package/library/assets/components/VcSipFlow/VcSipFlow.css +1 -1
  101. package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
  102. package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
  103. package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
  104. package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
  105. package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
  106. package/library/assets/components/VcSlider/VcSlider.css +1 -1
  107. package/library/assets/components/VcSoundplayer/VcPlayerPlaybackRate.css +1 -1
  108. package/library/assets/components/VcSoundplayer/VcSoundPlayerMarker.css +1 -1
  109. package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
  110. package/library/assets/components/VcSwitch/VcSwitch.css +1 -1
  111. package/library/assets/components/VcSystemUserPrompt/VcSystemUserPrompt.css +1 -1
  112. package/library/assets/components/VcTable/VcTable.css +1 -1
  113. package/library/assets/components/VcTable/VcTable2.css +1 -1
  114. package/library/assets/components/VcTabs/VcTabNav.css +1 -1
  115. package/library/assets/components/VcTabs/VcTabs.css +1 -1
  116. package/library/assets/components/VcTag/VcTag.css +1 -1
  117. package/library/assets/components/VcTagInput/VcTagInput.css +1 -1
  118. package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
  119. package/library/assets/components/VcToolCall/UiComponents/VcToolCallValue.css +1 -0
  120. package/library/assets/components/VcToolCall/VcToolCall.css +1 -0
  121. package/library/assets/components/VcTour/VcTour.css +1 -1
  122. package/library/assets/components/VcTransfer/VcTransfer.css +1 -1
  123. package/library/assets/components/VcTree/VcTree.css +1 -1
  124. package/library/assets/components/VcTree/VcTreeSelect.css +1 -1
  125. package/library/assets/components/VcVerticalTabs/VcVerticalTabs.css +1 -1
  126. package/library/assets/components/VcVerticalTabs/VerticalTabNav.css +1 -1
  127. package/library/assets/components/VcViewSwitcher/VcViewSwitcher.css +1 -1
  128. package/library/assets/components/VcWizard/VcSummaryProgress.css +1 -1
  129. package/library/assets/components/VcWizard/VcWizard.css +1 -1
  130. package/library/assets/components/VcWizard/VcWizardNavigation.css +1 -1
  131. package/library/assets/components/VcWizard/VcWizardSummary.css +1 -1
  132. package/library/assets/entity/components/Form/VcBaseVerticalForm.css +1 -1
  133. package/library/assets/entity/components/Table/VcEntityListTable.css +1 -1
  134. package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
  135. package/library/assets/node_modules/element-plus/theme-chalk/src/autocomplete.css +1 -1
  136. package/library/assets/node_modules/element-plus/theme-chalk/src/base.css +1 -1
  137. package/library/assets/node_modules/element-plus/theme-chalk/src/button.css +1 -1
  138. package/library/assets/node_modules/element-plus/theme-chalk/src/checkbox.css +1 -1
  139. package/library/assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css +1 -1
  140. package/library/assets/node_modules/element-plus/theme-chalk/src/image-viewer.css +1 -0
  141. package/library/assets/node_modules/element-plus/theme-chalk/src/input-number.css +1 -1
  142. package/library/assets/node_modules/element-plus/theme-chalk/src/input.css +1 -1
  143. package/library/assets/node_modules/element-plus/theme-chalk/src/option.css +1 -1
  144. package/library/assets/node_modules/element-plus/theme-chalk/src/popover.css +1 -1
  145. package/library/assets/node_modules/element-plus/theme-chalk/src/popper.css +1 -1
  146. package/library/assets/node_modules/element-plus/theme-chalk/src/radio-button.css +1 -1
  147. package/library/assets/node_modules/element-plus/theme-chalk/src/radio.css +1 -1
  148. package/library/assets/node_modules/element-plus/theme-chalk/src/select.css +1 -1
  149. package/library/assets/node_modules/element-plus/theme-chalk/src/tree.css +1 -1
  150. package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.mjs +110 -0
  151. package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue3.mjs +5 -0
  152. package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.mjs +70 -0
  153. package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue3.mjs +5 -0
  154. package/library/components/VcAgentRun/VcAgentRunCard.vue.mjs +423 -0
  155. package/library/components/VcAgentRun/VcAgentRunCard.vue3.mjs +5 -0
  156. package/library/components/VcAgentRun/VcAgentRunGroup.vue.mjs +210 -0
  157. package/library/components/VcAgentRun/VcAgentRunGroup.vue3.mjs +5 -0
  158. package/library/components/VcAgentRun/agentRunStatus.mjs +39 -0
  159. package/library/components/VcAiReasoning/VcAiReasoning.vue.mjs +227 -0
  160. package/library/components/VcAiReasoning/VcAiReasoning.vue3.mjs +5 -0
  161. package/library/components/VcApprovalCard/VcApprovalCard.vue.mjs +419 -0
  162. package/library/components/VcApprovalCard/VcApprovalCard.vue3.mjs +5 -0
  163. package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.mjs +69 -0
  164. package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue2.mjs +4 -0
  165. package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.mjs +177 -0
  166. package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue2.mjs +4 -0
  167. package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.mjs +98 -0
  168. package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue2.mjs +4 -0
  169. package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.mjs +142 -0
  170. package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue2.mjs +4 -0
  171. package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.mjs +156 -0
  172. package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue2.mjs +4 -0
  173. package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue.mjs +76 -0
  174. package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue2.mjs +4 -0
  175. package/library/components/VcAskUserCard/VcAskUserCard.vue.mjs +382 -0
  176. package/library/components/VcAskUserCard/VcAskUserCard.vue3.mjs +5 -0
  177. package/library/components/VcAskUserCard/askUserAnswers.mjs +224 -0
  178. package/library/components/VcAutocomplete/VcAutocomplete.vue.mjs +4 -2
  179. package/library/components/VcAvatar/VcAvatar.vue.mjs +3 -3
  180. package/library/components/VcBadgeTag/VcBadgeTag.vue.mjs +8 -5
  181. package/library/components/VcButton/VcButton.vue.mjs +10 -4
  182. package/library/components/VcButton/VcButtonIcon.vue.mjs +3 -4
  183. package/library/components/VcButton/VcToggleButton.vue.mjs +5 -4
  184. package/library/components/VcChatComposer/VcChatComposer.vue.mjs +154 -51
  185. package/library/components/VcCodeBlock/VcCodeBlock.vue.mjs +27 -35
  186. package/library/components/VcCollapse/VcCollapseItem.vue.mjs +12 -7
  187. package/library/components/VcDatePicker/VcDatePicker.vue.mjs +40 -11
  188. package/library/components/VcDatePickerPanel/VcDatePickerPanel.vue.mjs +49 -32
  189. package/library/components/VcExcelUploader/VcExcelFileProcessLoader.vue.mjs +2 -2
  190. package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +11 -7
  191. package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +7 -6
  192. package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +8 -4
  193. package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +2 -1
  194. package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +13 -12
  195. package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.mjs +6 -5
  196. package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.mjs +4 -3
  197. package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +7 -3
  198. package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.mjs +3 -2
  199. package/library/components/VcFileUploader/VcFileItem.vue.mjs +59 -31
  200. package/library/components/VcFileUploader/VcFileUploader.vue.mjs +2 -1
  201. package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +2 -2
  202. package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
  203. package/library/components/VcFileUploader/VcFileUploaderSimple.vue2.mjs +2 -1
  204. package/library/components/VcFileUploader/VcSimpleUploaderAction.vue.mjs +4 -3
  205. package/library/components/VcForm/UiComponents/VcInputLabel.vue.mjs +6 -2
  206. package/library/components/VcHtmlEditor/VcHtmlEditor.vue.mjs +4 -1
  207. package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +19 -31
  208. package/library/components/VcHtmlEditor/htmlEditor.config.mjs +13 -10
  209. package/library/components/VcHyperLink/VcHyperLink.vue.mjs +1 -1
  210. package/library/components/VcIconPicker/VcIconPicker.vue.mjs +1 -1
  211. package/library/components/VcImageUploader/VcImageUploader.vue.mjs +27 -14
  212. package/library/components/VcInput/VcInput.vue.mjs +4 -2
  213. package/library/components/VcInputNumber/VcInputNumber.vue.mjs +29 -4
  214. package/library/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.mjs +5 -4
  215. package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -2
  216. package/library/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.mjs +6 -9
  217. package/library/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.mjs +9 -10
  218. package/library/components/VcJsonSchema/VcJsonSchema.vue.mjs +0 -1
  219. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.mjs +98 -0
  220. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue3.mjs +5 -0
  221. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.mjs +164 -0
  222. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue3.mjs +5 -0
  223. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.mjs +50 -0
  224. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue3.mjs +5 -0
  225. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.mjs +25 -0
  226. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue3.mjs +5 -0
  227. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.mjs +64 -0
  228. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue3.mjs +5 -0
  229. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.mjs +53 -0
  230. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue3.mjs +5 -0
  231. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.mjs +104 -0
  232. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue3.mjs +5 -0
  233. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.mjs +45 -0
  234. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue3.mjs +5 -0
  235. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.mjs +259 -0
  236. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue3.mjs +5 -0
  237. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.mjs +179 -0
  238. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue3.mjs +5 -0
  239. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.mjs +146 -0
  240. package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue3.mjs +5 -0
  241. package/library/components/VcJsonViewer/VcJsonViewer.vue.mjs +454 -0
  242. package/library/components/VcJsonViewer/VcJsonViewer.vue3.mjs +5 -0
  243. package/library/components/VcJsonViewer/jsonViewerText.mjs +41 -0
  244. package/library/components/VcJsonViewer/jsonViewerUtils.mjs +568 -0
  245. package/library/components/VcJsonViewer/useJsonViewerContext.mjs +25 -0
  246. package/library/components/VcLightbox/VcLightbox.vue.mjs +417 -0
  247. package/library/components/VcLightbox/VcLightbox.vue3.mjs +5 -0
  248. package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
  249. package/library/components/VcLoading/Loaders/Circles.vue2.mjs +3 -2
  250. package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
  251. package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +5 -4
  252. package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
  253. package/library/components/VcLoading/Loaders/LdsSpinner.vue2.mjs +3 -2
  254. package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
  255. package/library/components/VcLoading/Loaders/LoadIcon.vue2.mjs +5 -4
  256. package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
  257. package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +4 -3
  258. package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
  259. package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
  260. package/library/components/VcMdEditor/ParameterNode.vue2.mjs +3 -3
  261. package/library/components/VcMdEditor/VcMdEditor.vue.mjs +37 -12
  262. package/library/components/VcMdEditor/VcMdEditorContent.vue.mjs +10 -0
  263. package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +6 -6
  264. package/library/components/VcMdEditor/ltrNumbersPlugin.mjs +55 -0
  265. package/library/components/VcMdEditor/readonlyMarkdown.mjs +81 -0
  266. package/library/components/VcMdEditor/streamingInterval.mjs +12 -0
  267. package/library/components/VcMessage/VcMessage.vue.mjs +75 -42
  268. package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +99 -14
  269. package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue.mjs +5 -0
  270. package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue2.mjs +33 -0
  271. package/library/components/VcMessage/content/VcMessageTextBlock.vue.mjs +21 -3
  272. package/library/components/VcMessage/content/markdownPreview.mjs +32 -0
  273. package/library/components/VcMessage/content/messageContentComponents.mjs +3 -1
  274. package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +120 -52
  275. package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +49 -29
  276. package/library/components/VcMeterGroup/VcMeterGroup.vue.mjs +1 -1
  277. package/library/components/VcModal/VcConfirmModal.vue.mjs +10 -9
  278. package/library/components/VcModal/VcModal.vue.mjs +21 -22
  279. package/library/components/VcNotification/VcNotification.vue.mjs +2 -2
  280. package/library/components/VcNotification/VcNotificationMessage.vue.mjs +14 -11
  281. package/library/components/VcPagination/VcPagination.vue.mjs +5 -4
  282. package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.mjs +166 -0
  283. package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue3.mjs +5 -0
  284. package/library/components/VcPdfViewer/VcPdfDocument.vue.mjs +12 -76
  285. package/library/components/VcPdfViewer/VcPdfDocumentCard.vue.mjs +18 -8
  286. package/library/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.mjs +23 -7
  287. package/library/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.mjs +23 -10
  288. package/library/components/VcPdfViewer/VcPdfViewer.vue.mjs +581 -0
  289. package/library/components/VcPdfViewer/VcPdfViewer.vue3.mjs +5 -0
  290. package/library/components/VcPdfViewer/pdfDocumentActions.mjs +90 -0
  291. package/library/components/VcPdfViewer/pdfDocumentParams.mjs +11 -0
  292. package/library/components/VcPdfViewer/pdfStandardFonts.mjs +21 -0
  293. package/library/components/VcPdfViewer/standard_fonts/FoxitDingbats.pfb +0 -0
  294. package/library/components/VcPdfViewer/standard_fonts/FoxitSymbol.pfb +0 -0
  295. package/library/components/VcPdfViewer/standard_fonts/LICENSE_FOXIT +27 -0
  296. package/library/components/VcPhoneInput/VcPhoneInput.vue.mjs +12 -6
  297. package/library/components/VcPopover/VcConfirmPopover.vue.mjs +3 -3
  298. package/library/components/VcPopover/VcSelectPopover.vue.mjs +2 -1
  299. package/library/components/VcProgress/VcProgress.vue.mjs +11 -20
  300. package/library/components/VcProgress/VcProgressCircular.vue.mjs +14 -23
  301. package/library/components/VcProgress/progress.options.mjs +21 -21
  302. package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +13 -7
  303. package/library/components/VcSelect/VcSelect.vue.mjs +18 -19
  304. package/library/components/VcSelect/VcSelectGrouped.vue.mjs +8 -5
  305. package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
  306. package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
  307. package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
  308. package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
  309. package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
  310. package/library/components/VcSkeletonLoader/Loaders/Text.vue2.mjs +1 -1
  311. package/library/components/VcSoundplayer/VcPlayerPlayStopButton.vue.mjs +7 -6
  312. package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +2 -2
  313. package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +5 -4
  314. package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +26 -23
  315. package/library/components/VcSoundplayer/VcSoundPlayerError.vue.mjs +5 -4
  316. package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
  317. package/library/components/VcSoundplayer/VcSoundPlayerProgress.vue.mjs +1 -1
  318. package/library/components/VcSoundplayer/VcSoundPlayerWrapper.vue.mjs +5 -3
  319. package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +5 -4
  320. package/library/components/VcSoundplayer/player.options.mjs +13 -5
  321. package/library/components/VcSparkline/VcBarLine.vue.mjs +2 -2
  322. package/library/components/VcSparkline/VcTrendLine.vue.mjs +2 -2
  323. package/library/components/VcSplitButton/VcSplitButton.vue.mjs +18 -19
  324. package/library/components/VcSwitch/VcSwitch.vue.mjs +1 -1
  325. package/library/components/VcTable/VcTable.vue.mjs +18 -11
  326. package/library/components/VcTabs/VcTabNav.vue.mjs +11 -9
  327. package/library/components/VcTag/VcTag.vue.mjs +6 -4
  328. package/library/components/VcTagInput/VcTagInput.vue.mjs +10 -7
  329. package/library/components/VcTimeInput/VcTimeInput.vue.mjs +18 -8
  330. package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue.mjs +64 -0
  331. package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue3.mjs +5 -0
  332. package/library/components/VcToolCall/VcToolCall.vue.mjs +328 -0
  333. package/library/components/VcToolCall/VcToolCall.vue3.mjs +5 -0
  334. package/library/components/VcTree/VcTree.vue.mjs +8 -4
  335. package/library/components/VcTree/VcTreeSelect.vue.mjs +11 -7
  336. package/library/components/VcWizard/VcSummaryProgress.vue.mjs +10 -7
  337. package/library/components/VcWizard/VcSummaryStep.vue.mjs +8 -4
  338. package/library/components/VcWizard/VcWizardNavigation.vue.mjs +12 -8
  339. package/library/composables/input/useInputColor.mjs +3 -3
  340. package/library/composables/useElapsed.mjs +47 -0
  341. package/library/composables/useThrottledText.mjs +22 -0
  342. package/library/entity/components/Button/VcEntityAddButton.vue.mjs +4 -3
  343. package/library/entity/components/Button/VcEntityCancelButton.vue.mjs +4 -3
  344. package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +3 -2
  345. package/library/entity/components/Form/VcBaseVerticalForm.vue.mjs +6 -5
  346. package/library/entity/components/Form/VcEntityEditPageForm.vue.mjs +4 -3
  347. package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +7 -6
  348. package/library/entity/components/Table/VcEntityListTable.vue.mjs +15 -15
  349. package/library/enum/constants.mjs +5 -11
  350. package/library/enum/fileTypes.mjs +24 -39
  351. package/library/enum/inputDefaults.mjs +2 -2
  352. package/library/index.mjs +263 -235
  353. package/library/index.mjs.br +0 -0
  354. package/library/index.mjs.gz +0 -0
  355. package/library/localization/index.mjs.gz +0 -0
  356. package/library/localization/locales/en.json.mjs +172 -1
  357. package/library/plugin-components.gen.mjs +95 -68
  358. package/library/plugin.mjs +261 -233
  359. package/library/plugin.mjs.br +0 -0
  360. package/library/plugin.mjs.gz +0 -0
  361. package/library/style.css +174 -122
  362. package/library/style.css.br +0 -0
  363. package/library/style.css.gz +0 -0
  364. package/library/theme/index.mjs.gz +0 -0
  365. package/library/theme/themeMerge.mjs +32 -16
  366. package/library/theme/themes.json.mjs +172 -222
  367. package/library/tokens/tokens.mjs +2 -0
  368. package/library/types/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.d.ts +46 -0
  369. package/library/types/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.d.ts +20 -0
  370. package/library/types/components/VcAgentRun/VcAgentRunCard.vue.d.ts +104 -0
  371. package/library/types/components/VcAgentRun/VcAgentRunGroup.vue.d.ts +53 -0
  372. package/library/types/components/VcAgentRun/agentRunStatus.d.ts +13 -0
  373. package/library/types/components/VcAiReasoning/VcAiReasoning.vue.d.ts +85 -0
  374. package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +101 -0
  375. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.d.ts +41 -0
  376. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.d.ts +42 -0
  377. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.d.ts +53 -0
  378. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.d.ts +42 -0
  379. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.d.ts +42 -0
  380. package/library/types/components/VcAskUserCard/UiComponents/VcAskUserText.vue.d.ts +42 -0
  381. package/library/types/components/VcAskUserCard/UiComponents/askUserControl.d.ts +25 -0
  382. package/library/types/components/VcAskUserCard/VcAskUserCard.vue.d.ts +84 -0
  383. package/library/types/components/VcAskUserCard/askUserAnswers.d.ts +57 -0
  384. package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +72 -72
  385. package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +1 -1
  386. package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +1 -1
  387. package/library/types/components/VcButton/VcButton.vue.d.ts +7 -7
  388. package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +12 -13
  389. package/library/types/components/VcButton/VcToggleButton.vue.d.ts +4 -4
  390. package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +43 -15
  391. package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +24 -24
  392. package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +18 -18
  393. package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +15 -15
  394. package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +12 -12
  395. package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +1 -1
  396. package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +3 -3
  397. package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +1 -1
  398. package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +21 -21
  399. package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +18 -18
  400. package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +4 -4
  401. package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +1 -1
  402. package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +1 -1
  403. package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +6 -5
  404. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
  405. package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +4 -4
  406. package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +11 -11
  407. package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +10 -45
  408. package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +6 -6
  409. package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +6 -6
  410. package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +6 -6
  411. package/library/types/components/VcFileUploader/VcSimpleUploaderAction.vue.d.ts +2 -2
  412. package/library/types/components/VcForm/VcForm.vue.d.ts +3 -3
  413. package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +2 -2
  414. package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +1 -1
  415. package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +3 -3
  416. package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +3 -3
  417. package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +6 -6
  418. package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +3 -3
  419. package/library/types/components/VcInput/VcInput.vue.d.ts +11 -11
  420. package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +3 -3
  421. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.d.ts +42 -0
  422. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.d.ts +18 -0
  423. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.d.ts +32 -0
  424. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.d.ts +31 -0
  425. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.d.ts +25 -0
  426. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.d.ts +34 -0
  427. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.d.ts +39 -0
  428. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.d.ts +46 -0
  429. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.d.ts +18 -0
  430. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.d.ts +18 -0
  431. package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.d.ts +37 -0
  432. package/library/types/components/VcJsonViewer/VcJsonViewer.vue.d.ts +162 -0
  433. package/library/types/components/VcJsonViewer/jsonViewerText.d.ts +8 -0
  434. package/library/types/components/VcJsonViewer/jsonViewerUtils.d.ts +127 -0
  435. package/library/types/components/VcJsonViewer/useJsonViewerContext.d.ts +5 -0
  436. package/library/types/components/VcLightbox/VcLightbox.vue.d.ts +90 -0
  437. package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +2 -2
  438. package/library/types/components/VcLoading/VcLoading.vue.d.ts +2 -2
  439. package/library/types/components/VcLoading/enum.d.ts +2 -2
  440. package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +111 -55
  441. package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +3 -3
  442. package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +1 -1
  443. package/library/types/components/VcMdEditor/ltrNumbersPlugin.d.ts +16 -0
  444. package/library/types/components/VcMdEditor/readonlyMarkdown.d.ts +7 -0
  445. package/library/types/components/VcMdEditor/streamingInterval.d.ts +7 -0
  446. package/library/types/components/VcMessage/VcMessage.vue.d.ts +24 -3
  447. package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +6 -2
  448. package/library/types/components/VcMessage/content/VcMessageMarkdownBlock.vue.d.ts +24 -0
  449. package/library/types/components/VcMessage/content/markdownPreview.d.ts +1 -0
  450. package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +1 -1
  451. package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +223 -84
  452. package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +89 -42
  453. package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +2 -2
  454. package/library/types/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +1 -1
  455. package/library/types/components/VcModal/VcModal.vue.d.ts +3 -3
  456. package/library/types/components/VcNotification/VcNotification.vue.d.ts +1 -1
  457. package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +8 -8
  458. package/library/types/components/VcPagination/VcPagination.vue.d.ts +1 -1
  459. package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +4 -4
  460. package/library/types/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.d.ts +64 -0
  461. package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +1 -1
  462. package/library/types/components/VcPdfViewer/VcPdfViewer.vue.d.ts +114 -0
  463. package/library/types/components/VcPdfViewer/pdfDocumentActions.d.ts +29 -0
  464. package/library/types/components/VcPdfViewer/pdfDocumentParams.d.ts +14 -0
  465. package/library/types/components/VcPdfViewer/pdfStandardFonts.d.ts +9 -0
  466. package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +8 -8
  467. package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +1 -1
  468. package/library/types/components/VcPopover/VcPopover.vue.d.ts +1 -1
  469. package/library/types/components/VcPopover/VcSelectPopover.vue.d.ts +3 -3
  470. package/library/types/components/VcProgress/VcProgress.vue.d.ts +1 -1
  471. package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +4 -4
  472. package/library/types/components/VcProgress/progress.options.d.ts +9 -7
  473. package/library/types/components/VcRadio/VcRadio.vue.d.ts +15 -15
  474. package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +9 -9
  475. package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +12 -12
  476. package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +6 -6
  477. package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +18 -18
  478. package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +42 -42
  479. package/library/types/components/VcSelect/VcSelect.vue.d.ts +51 -51
  480. package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +48 -48
  481. package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +9 -9
  482. package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +1 -1
  483. package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +6 -6
  484. package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +4 -4
  485. package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +2 -2
  486. package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +4 -4
  487. package/library/types/components/VcSoundplayer/player.options.d.ts +1 -0
  488. package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +4 -4
  489. package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +4 -4
  490. package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +4 -4
  491. package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +6 -6
  492. package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +24 -24
  493. package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +4 -4
  494. package/library/types/components/VcTable/VcTable.vue.d.ts +6 -3
  495. package/library/types/components/VcTabs/VcTabPane.vue.d.ts +1 -1
  496. package/library/types/components/VcTabs/VcTabs.vue.d.ts +1 -1
  497. package/library/types/components/VcTag/VcTag.vue.d.ts +3 -3
  498. package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +14 -14
  499. package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +5 -5
  500. package/library/types/components/VcToolCall/UiComponents/VcToolCallValue.vue.d.ts +66 -0
  501. package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +91 -0
  502. package/library/types/components/VcTour/VcTour.vue.d.ts +1 -1
  503. package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +3 -3
  504. package/library/types/components/VcTree/VcTree.vue.d.ts +18 -18
  505. package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +42 -42
  506. package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +3 -3
  507. package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +3 -3
  508. package/library/types/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +9 -9
  509. package/library/types/components/VcWizard/VcSummaryProgress.vue.d.ts +2 -2
  510. package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +1 -1
  511. package/library/types/components/exports.d.ts +19 -1
  512. package/library/types/components.gen.d.ts +9 -0
  513. package/library/types/composables/input/useFileUploader.d.ts +2 -2
  514. package/library/types/composables/useElapsed.d.ts +38 -0
  515. package/library/types/composables/useThrottledText.d.ts +16 -0
  516. package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +3 -3
  517. package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +3 -3
  518. package/library/types/enum/constants.d.ts +2 -10
  519. package/library/types/enum/inputDefaults.d.ts +2 -2
  520. package/library/types/localization/locales/en.json.d.ts +365 -194
  521. package/library/types/theme/themes.json.d.ts +177 -227
  522. package/library/types/tokens/tokens.d.ts +2 -1
  523. package/library/types/types/VcAgentRun.types.d.ts +197 -0
  524. package/library/types/types/VcAiChat.types.d.ts +5 -0
  525. package/library/types/types/VcAiReasoning.types.d.ts +67 -0
  526. package/library/types/types/VcApprovalCard.types.d.ts +109 -0
  527. package/library/types/types/VcAskUserCard.types.d.ts +166 -0
  528. package/library/types/types/VcChatComposer.types.d.ts +86 -0
  529. package/library/types/types/VcDropdown.types.d.ts +1 -1
  530. package/library/types/types/VcFileUploader.types.d.ts +26 -0
  531. package/library/types/types/VcJsonViewer.types.d.ts +41 -0
  532. package/library/types/types/VcLightbox.types.d.ts +112 -0
  533. package/library/types/types/VcMessage.types.d.ts +42 -4
  534. package/library/types/types/VcMessagesWrapper.types.d.ts +100 -12
  535. package/library/types/types/VcOtpInput.types.d.ts +1 -1
  536. package/library/types/types/VcPdfViewer.types.d.ts +138 -0
  537. package/library/types/types/VcProgress.types.d.ts +1 -1
  538. package/library/types/types/VcToolCall.types.d.ts +102 -0
  539. package/library/types/types/index.d.ts +9 -1
  540. package/library/types/utils/aiChat.d.ts +50 -0
  541. package/library/types/utils/download.d.ts +5 -0
  542. package/library/types/utils/elementPlusIcons.d.ts +9 -0
  543. package/library/types/utils/fileAccept.d.ts +30 -0
  544. package/library/types/utils/i18nParams.d.ts +8 -0
  545. package/library/types/utils/numberRuns.d.ts +21 -0
  546. package/library/types/utils/themeColor.d.ts +1 -0
  547. package/library/utils/UniqueComponentId.mjs +2 -2
  548. package/library/utils/aiChat.mjs +121 -0
  549. package/library/utils/download.mjs +13 -0
  550. package/library/utils/elementPlusIcons.mjs +14 -0
  551. package/library/utils/fileAccept.mjs +66 -0
  552. package/library/utils/i18nParams.mjs +6 -0
  553. package/library/utils/jsonSchema/index.mjs.gz +0 -0
  554. package/library/utils/numberRuns.mjs +63 -0
  555. package/library/utils/themeColor.mjs +9 -0
  556. package/package.json +216 -215
  557. package/src/theme/index.ts +101 -101
  558. package/src/theme/tailwindScheme.js +70 -37
  559. package/src/theme/theme.types.ts +31 -31
  560. package/src/theme/themeMerge.ts +61 -40
  561. package/src/theme/themes.json +177 -227
  562. package/tailwind.config.d.ts +5 -5
  563. package/tailwind.config.js +176 -192
  564. package/library/types/types/VcTagInput.types.d.ts +0 -1
@@ -0,0 +1,382 @@
1
+ import '../../assets/components/VcAskUserCard/VcAskUserCard.css';
2
+ import { defineComponent, ref, computed, watch, nextTick, openBlock, createElementBlock, unref, normalizeClass, createElementVNode, createBlock, resolveDynamicComponent, withCtx, renderSlot, normalizeProps, guardReactiveProps, createVNode, toDisplayString, createCommentVNode, Fragment, renderList, withDirectives, vShow, createTextVNode } from "vue";
3
+ import { useVModel } from "@vueuse/core";
4
+ import { TriangleAlert, Clock, CircleMinus, CircleCheck, MessageCircleQuestion, ChevronRight, CircleAlert } from "@lucide/vue";
5
+ import _sfc_main$5 from "../VcButton/VcButton.vue.mjs";
6
+ import '../../assets/components/VcTag/VcTag.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';/* empty css */
7
+ import _sfc_main$3 from "../VcCollapse/VcCollapseTransition.vue.mjs";
8
+ import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
9
+ /* empty css */
10
+ import _sfc_main$2 from "../VcTag/VcTag.vue.mjs";
11
+ /* empty css */
12
+ import _sfc_main$4 from "./UiComponents/VcAskUserQuestionList.vue.mjs";
13
+ import { isQuestionSetValid, canSubmitAnswers, answerText, isRequired, answersOf, invalidAnswerQuestions } from "./askUserAnswers.mjs";
14
+ import { tVU } from "../../localization/index.mjs";
15
+ import { literalParam } from "../../utils/i18nParams.mjs";
16
+ import UniqueComponentId from "../../utils/UniqueComponentId.mjs";
17
+ const _hoisted_1 = ["data-ask-user-status", "aria-labelledby", "aria-busy"];
18
+ const _hoisted_2 = { class: "vc-ask-user-card__header" };
19
+ const _hoisted_3 = {
20
+ class: "vc-ask-user-card__icon",
21
+ "aria-hidden": "true"
22
+ };
23
+ const _hoisted_4 = ["id"];
24
+ const _hoisted_5 = {
25
+ key: 0,
26
+ class: "vc-ask-user-card__meta",
27
+ "data-test": "ask-user-card-expired"
28
+ };
29
+ const _hoisted_6 = {
30
+ key: 1,
31
+ class: "vc-ask-user-card__answers",
32
+ "data-test": "ask-user-card-answers"
33
+ };
34
+ const _hoisted_7 = ["data-test"];
35
+ const _hoisted_8 = {
36
+ key: 0,
37
+ class: "vc-ask-user-card__answer-header",
38
+ dir: "auto"
39
+ };
40
+ const _hoisted_9 = ["id"];
41
+ const _hoisted_10 = { class: "vc-ask-user-card__body-inner" };
42
+ const _hoisted_11 = {
43
+ key: 1,
44
+ class: "vc-ask-user-card__content"
45
+ };
46
+ const _hoisted_12 = {
47
+ key: 0,
48
+ class: "vc-ask-user-card__invalid",
49
+ "data-test": "ask-user-card-invalid"
50
+ };
51
+ const _hoisted_13 = {
52
+ key: 2,
53
+ class: "vc-ask-user-card__error",
54
+ role: "alert",
55
+ "data-test": "ask-user-card-error"
56
+ };
57
+ const _hoisted_14 = { dir: "auto" };
58
+ const _hoisted_15 = {
59
+ key: 3,
60
+ class: "vc-ask-user-card__actions",
61
+ "data-test": "ask-user-card-actions"
62
+ };
63
+ const _hoisted_16 = {
64
+ class: "vc-ask-user-card__live",
65
+ "aria-live": "polite",
66
+ "data-test": "ask-user-card-live"
67
+ };
68
+ const _sfc_main = /* @__PURE__ */ defineComponent({
69
+ __name: "VcAskUserCard",
70
+ props: {
71
+ preamble: { default: "" },
72
+ questions: { default: () => [] },
73
+ answers: { default: void 0 },
74
+ status: { default: "pending" },
75
+ action: { default: void 0 },
76
+ invalid: { type: Boolean, default: false },
77
+ errorText: { default: "" },
78
+ open: { type: Boolean, default: void 0 },
79
+ title: { default: void 0 },
80
+ skippable: { type: Boolean, default: void 0 },
81
+ submitLabel: { default: void 0 },
82
+ skipLabel: { default: void 0 }
83
+ },
84
+ emits: ["submit", "skip", "update:answers", "update:open"],
85
+ setup(__props, { emit: __emit }) {
86
+ const props = __props;
87
+ const emit = __emit;
88
+ const RESOLVED_STATUSES = ["answered", "skipped", "expired"];
89
+ const STATE_ICONS = {
90
+ pending: MessageCircleQuestion,
91
+ submitting: MessageCircleQuestion,
92
+ answered: CircleCheck,
93
+ skipped: CircleMinus,
94
+ expired: Clock
95
+ };
96
+ const titleId = UniqueComponentId("vc_ask_user_card_title_");
97
+ const bodyId = UniqueComponentId("vc_ask_user_card_body_");
98
+ const rootRef = ref();
99
+ const isInvalid = computed(() => props.invalid || !isQuestionSetValid(props.questions));
100
+ const questionList = computed(() => isInvalid.value ? [] : props.questions);
101
+ const isResolved = computed(() => RESOLVED_STATUSES.includes(props.status));
102
+ const answersModel = useVModel(props, "answers", emit, { passive: true });
103
+ const answersValue = computed(() => answersModel.value ?? {});
104
+ const validationError = ref("");
105
+ function setAnswer(id, answer) {
106
+ validationError.value = "";
107
+ const next = { ...answersValue.value };
108
+ if (answer === void 0) {
109
+ Reflect.deleteProperty(next, id);
110
+ } else {
111
+ next[id] = answer;
112
+ }
113
+ answersModel.value = next;
114
+ }
115
+ const isComplete = computed(() => canSubmitAnswers(questionList.value, answersValue.value));
116
+ const answerChips = computed(() => {
117
+ if (props.status !== "answered") {
118
+ return [];
119
+ }
120
+ return questionList.value.flatMap((question) => {
121
+ const text = answerText(question, answersValue.value[question.id]);
122
+ return text ? [{
123
+ id: question.id,
124
+ header: question.header ?? "",
125
+ text
126
+ }] : [];
127
+ });
128
+ });
129
+ const isOpen = useVModel(props, "open", emit, { passive: true });
130
+ const hasBody = computed(() => isResolved.value && questionList.value.length > 0);
131
+ const bodyMounted = ref(Boolean(isOpen.value));
132
+ watch(() => Boolean(isOpen.value), (open) => {
133
+ if (open) {
134
+ bodyMounted.value = true;
135
+ }
136
+ });
137
+ function toggle() {
138
+ if (hasBody.value) {
139
+ isOpen.value = !isOpen.value;
140
+ }
141
+ }
142
+ const toggleHint = computed(() => tVU.t(isOpen.value ? "voicenterUi.askUserCard.hideQuestions" : "voicenterUi.askUserCard.showQuestions"));
143
+ const titleText = computed(() => {
144
+ switch (props.status) {
145
+ case "answered":
146
+ return tVU.t("voicenterUi.askUserCard.answered");
147
+ case "skipped":
148
+ return tVU.t("voicenterUi.askUserCard.skipped");
149
+ case "expired":
150
+ return tVU.t("voicenterUi.askUserCard.expired");
151
+ default:
152
+ if (isInvalid.value) {
153
+ return tVU.t("voicenterUi.askUserCard.invalidTitle");
154
+ }
155
+ return props.title || tVU.t(`voicenterUi.askUserCard.title.${questionList.value.length > 1 ? "other" : "one"}`);
156
+ }
157
+ });
158
+ const expiredText = computed(() => tVU.t("voicenterUi.askUserCard.expiredDescription"));
159
+ const invalidDescription = computed(() => tVU.t("voicenterUi.askUserCard.invalidDescription"));
160
+ const submitText = computed(() => props.submitLabel || tVU.t("voicenterUi.askUserCard.submit"));
161
+ const skipText = computed(() => props.skipLabel || tVU.t("voicenterUi.askUserCard.skip"));
162
+ const stateIcon = computed(() => {
163
+ if (isInvalid.value && !isResolved.value) {
164
+ return TriangleAlert;
165
+ }
166
+ return STATE_ICONS[props.status] ?? MessageCircleQuestion;
167
+ });
168
+ const iconSlotProps = computed(() => ({
169
+ status: props.status,
170
+ invalid: isInvalid.value
171
+ }));
172
+ const errorMessage = computed(() => props.errorText || validationError.value);
173
+ const locked = ref(false);
174
+ const pressed = ref();
175
+ let actedHere = false;
176
+ const controlsDisabled = computed(() => props.status !== "pending" || locked.value);
177
+ const loadingAction = computed(() => {
178
+ if (props.status === "submitting") {
179
+ return props.action ?? pressed.value;
180
+ }
181
+ return props.status === "pending" && locked.value ? pressed.value : void 0;
182
+ });
183
+ const showSubmit = computed(() => {
184
+ const [first, ...rest] = questionList.value;
185
+ return !isInvalid.value && !((first == null ? void 0 : first.type) === "confirm" && rest.length === 0);
186
+ });
187
+ const showSkip = computed(() => isInvalid.value || (props.skippable ?? questionList.value.some((question) => !isRequired(question))));
188
+ function lock(action) {
189
+ locked.value = true;
190
+ pressed.value = action;
191
+ actedHere = true;
192
+ }
193
+ function submit() {
194
+ if (controlsDisabled.value || isInvalid.value || !isComplete.value) {
195
+ return;
196
+ }
197
+ const answers = answersOf(questionList.value, answersValue.value);
198
+ const [wrong] = invalidAnswerQuestions(questionList.value, answers);
199
+ if (wrong) {
200
+ validationError.value = tVU.t("voicenterUi.askUserCard.invalidAnswer", { question: literalParam(wrong.header || wrong.prompt) });
201
+ return;
202
+ }
203
+ validationError.value = "";
204
+ lock("submit");
205
+ emit("submit", answers);
206
+ }
207
+ function skip() {
208
+ if (controlsDisabled.value) {
209
+ return;
210
+ }
211
+ lock("skip");
212
+ emit("skip");
213
+ }
214
+ watch(() => props.errorText, () => {
215
+ locked.value = false;
216
+ });
217
+ watch(() => props.status, async (status, previous) => {
218
+ var _a, _b, _c;
219
+ locked.value = false;
220
+ const resolvedNow = RESOLVED_STATUSES.includes(status) && !RESOLVED_STATUSES.includes(previous);
221
+ if (!resolvedNow) {
222
+ return;
223
+ }
224
+ const active = document.activeElement;
225
+ const focusInside = Boolean(active && ((_a = rootRef.value) == null ? void 0 : _a.contains(active)));
226
+ const focusLost = !active || active === document.body;
227
+ const moveFocus = focusInside || actedHere && focusLost;
228
+ actedHere = false;
229
+ if (!moveFocus) {
230
+ return;
231
+ }
232
+ await nextTick();
233
+ (_c = (_b = rootRef.value) == null ? void 0 : _b.querySelector("button.vc-ask-user-card__toggle")) == null ? void 0 : _c.focus();
234
+ });
235
+ return (_ctx, _cache) => {
236
+ return openBlock(), createElementBlock("div", {
237
+ ref_key: "rootRef",
238
+ ref: rootRef,
239
+ class: normalizeClass([[`is--${__props.status}`, {
240
+ "is--invalid": isInvalid.value,
241
+ "is--resolved": isResolved.value,
242
+ "is--expandable": hasBody.value,
243
+ "is--open": hasBody.value && unref(isOpen)
244
+ }], "vc-ask-user-card"]),
245
+ "data-ask-user-status": __props.status,
246
+ "aria-labelledby": unref(titleId),
247
+ "aria-busy": __props.status === "submitting" || void 0,
248
+ "data-test": "ask-user-card",
249
+ role: "group"
250
+ }, [
251
+ createElementVNode("div", _hoisted_2, [
252
+ (openBlock(), createBlock(resolveDynamicComponent(hasBody.value ? "button" : "div"), {
253
+ type: hasBody.value ? "button" : void 0,
254
+ "aria-expanded": hasBody.value ? Boolean(unref(isOpen)) : void 0,
255
+ "aria-controls": hasBody.value && bodyMounted.value ? unref(bodyId) : void 0,
256
+ title: hasBody.value ? toggleHint.value : void 0,
257
+ class: "vc-ask-user-card__toggle",
258
+ "data-test": "ask-user-card-toggle",
259
+ onClick: toggle
260
+ }, {
261
+ default: withCtx(() => [
262
+ createElementVNode("span", _hoisted_3, [
263
+ renderSlot(_ctx.$slots, "icon", normalizeProps(guardReactiveProps(iconSlotProps.value)), () => [
264
+ createVNode(_sfc_main$1, { icon: stateIcon.value }, null, 8, ["icon"])
265
+ ])
266
+ ]),
267
+ createElementVNode("span", {
268
+ id: unref(titleId),
269
+ class: "vc-ask-user-card__title",
270
+ "data-test": "ask-user-card-title",
271
+ dir: "auto"
272
+ }, toDisplayString(titleText.value), 9, _hoisted_4)
273
+ ]),
274
+ _: 3
275
+ }, 8, ["type", "aria-expanded", "aria-controls", "title"])),
276
+ __props.status === "expired" ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(expiredText.value), 1)) : createCommentVNode("", true),
277
+ answerChips.value.length ? (openBlock(), createElementBlock("span", _hoisted_6, [
278
+ (openBlock(true), createElementBlock(Fragment, null, renderList(answerChips.value, (chip) => {
279
+ return openBlock(), createElementBlock("span", {
280
+ key: chip.id,
281
+ "data-test": `ask-user-card-answer-${chip.id}`,
282
+ class: "vc-ask-user-card__answer"
283
+ }, [
284
+ chip.header ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(chip.header), 1)) : createCommentVNode("", true),
285
+ createVNode(_sfc_main$2, {
286
+ label: chip.text,
287
+ title: chip.text,
288
+ class: "vc-ask-user-card__answer-tag",
289
+ color: "secondary",
290
+ dir: "auto",
291
+ compact: ""
292
+ }, null, 8, ["label", "title"])
293
+ ], 8, _hoisted_7);
294
+ }), 128))
295
+ ])) : createCommentVNode("", true),
296
+ hasBody.value ? (openBlock(), createBlock(_sfc_main$1, {
297
+ key: 2,
298
+ icon: unref(ChevronRight),
299
+ class: "vc-ask-user-card__chevron",
300
+ "aria-hidden": "true"
301
+ }, null, 8, ["icon"])) : createCommentVNode("", true)
302
+ ]),
303
+ isResolved.value ? (openBlock(), createBlock(_sfc_main$3, { key: 0 }, {
304
+ default: withCtx(() => [
305
+ bodyMounted.value ? withDirectives((openBlock(), createElementBlock("div", {
306
+ key: 0,
307
+ id: unref(bodyId),
308
+ class: "vc-ask-user-card__body",
309
+ "data-test": "ask-user-card-body"
310
+ }, [
311
+ createElementVNode("div", _hoisted_10, [
312
+ createVNode(_sfc_main$4, {
313
+ questions: questionList.value,
314
+ preamble: __props.preamble,
315
+ answers: __props.status === "answered" ? answersValue.value : {},
316
+ disabled: ""
317
+ }, null, 8, ["questions", "preamble", "answers"])
318
+ ])
319
+ ], 8, _hoisted_9)), [
320
+ [vShow, unref(isOpen)]
321
+ ]) : createCommentVNode("", true)
322
+ ]),
323
+ _: 1
324
+ })) : (openBlock(), createElementBlock("div", _hoisted_11, [
325
+ isInvalid.value ? (openBlock(), createElementBlock("p", _hoisted_12, toDisplayString(invalidDescription.value), 1)) : (openBlock(), createBlock(_sfc_main$4, {
326
+ key: 1,
327
+ questions: questionList.value,
328
+ preamble: __props.preamble,
329
+ answers: answersValue.value,
330
+ disabled: controlsDisabled.value,
331
+ loading: loadingAction.value === "submit",
332
+ "onUpdate:answer": setAnswer,
333
+ onSubmit: submit
334
+ }, null, 8, ["questions", "preamble", "answers", "disabled", "loading"])),
335
+ errorMessage.value ? (openBlock(), createElementBlock("div", _hoisted_13, [
336
+ createVNode(_sfc_main$1, {
337
+ icon: unref(CircleAlert),
338
+ class: "vc-ask-user-card__error-icon",
339
+ "aria-hidden": "true"
340
+ }, null, 8, ["icon"]),
341
+ createElementVNode("span", _hoisted_14, toDisplayString(errorMessage.value), 1)
342
+ ])) : createCommentVNode("", true),
343
+ showSubmit.value || showSkip.value ? (openBlock(), createElementBlock("div", _hoisted_15, [
344
+ showSubmit.value ? (openBlock(), createBlock(_sfc_main$5, {
345
+ key: 0,
346
+ disabled: controlsDisabled.value || !isComplete.value,
347
+ loading: loadingAction.value === "submit",
348
+ color: "primary",
349
+ size: "small",
350
+ "data-test-name": "ask-user-card-submit",
351
+ onClick: submit
352
+ }, {
353
+ default: withCtx(() => [
354
+ createTextVNode(toDisplayString(submitText.value), 1)
355
+ ]),
356
+ _: 1
357
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true),
358
+ showSkip.value ? (openBlock(), createBlock(_sfc_main$5, {
359
+ key: 1,
360
+ disabled: controlsDisabled.value,
361
+ loading: loadingAction.value === "skip",
362
+ color: "primary",
363
+ type: "outline",
364
+ size: "small",
365
+ "data-test-name": "ask-user-card-skip",
366
+ onClick: skip
367
+ }, {
368
+ default: withCtx(() => [
369
+ createTextVNode(toDisplayString(skipText.value), 1)
370
+ ]),
371
+ _: 1
372
+ }, 8, ["disabled", "loading"])) : createCommentVNode("", true)
373
+ ])) : createCommentVNode("", true)
374
+ ])),
375
+ createElementVNode("span", _hoisted_16, toDisplayString(isResolved.value ? titleText.value : ""), 1)
376
+ ], 10, _hoisted_1);
377
+ };
378
+ }
379
+ });
380
+ export {
381
+ _sfc_main as default
382
+ };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./VcAskUserCard.vue.mjs";
2
+ import '../../assets/components/VcAskUserCard/VcAskUserCard.css';/* empty css */
3
+ export {
4
+ _sfc_main as default
5
+ };
@@ -0,0 +1,224 @@
1
+ import { tVU } from "../../localization/index.mjs";
2
+ const OTHER_VALUE = "__vc_ask_user_other__";
3
+ const QUESTION_TYPES = ["single-select", "multi-select", "rank-priorities", "text", "confirm"];
4
+ const CHOICE_TYPES = ["single-select", "multi-select", "rank-priorities"];
5
+ function isRequired(question) {
6
+ return question.required !== false;
7
+ }
8
+ function hasOther(question) {
9
+ return question.allowOther === true && (question.type === "single-select" || question.type === "multi-select");
10
+ }
11
+ function isQuestionSetValid(questions) {
12
+ if (!Array.isArray(questions) || questions.length === 0) {
13
+ return false;
14
+ }
15
+ const ids = /* @__PURE__ */ new Set();
16
+ return questions.every((question) => {
17
+ if (!question || typeof question.id !== "string" || question.id === "" || ids.has(question.id)) {
18
+ return false;
19
+ }
20
+ ids.add(question.id);
21
+ if (typeof question.prompt !== "string" || !QUESTION_TYPES.includes(question.type)) {
22
+ return false;
23
+ }
24
+ if (CHOICE_TYPES.includes(question.type)) {
25
+ return Array.isArray(question.options) && question.options.length >= 2;
26
+ }
27
+ return true;
28
+ });
29
+ }
30
+ function sortedOptions(question) {
31
+ const options = question.options ?? [];
32
+ return [...options].sort((a, b) => Number(b.recommended === true) - Number(a.recommended === true));
33
+ }
34
+ function optionLabel(question, value) {
35
+ var _a, _b;
36
+ return ((_b = (_a = question.options) == null ? void 0 : _a.find((option) => option.value === value)) == null ? void 0 : _b.label) ?? value;
37
+ }
38
+ function confirmChoices(question) {
39
+ const [first, second, ...rest] = question.options ?? [];
40
+ if (first && second && rest.length === 0) {
41
+ return [
42
+ {
43
+ value: true,
44
+ label: first.label
45
+ },
46
+ {
47
+ value: false,
48
+ label: second.label
49
+ }
50
+ ];
51
+ }
52
+ return [
53
+ {
54
+ value: true,
55
+ label: tVU.t("voicenterUi.askUserCard.yes")
56
+ },
57
+ {
58
+ value: false,
59
+ label: tVU.t("voicenterUi.askUserCard.no")
60
+ }
61
+ ];
62
+ }
63
+ function answerText(question, answer) {
64
+ var _a;
65
+ if (!answer) {
66
+ return "";
67
+ }
68
+ if (question.type === "confirm") {
69
+ return ((_a = confirmChoices(question).find((choice) => choice.value === answer.value)) == null ? void 0 : _a.label) ?? answer.label ?? "";
70
+ }
71
+ if (Array.isArray(answer.value)) {
72
+ return answer.value.map((value) => optionLabel(question, value)).join(", ");
73
+ }
74
+ if (typeof answer.value === "string") {
75
+ return answer.isOther ? answer.value : optionLabel(question, answer.value);
76
+ }
77
+ return answer.label ?? "";
78
+ }
79
+ function isAnswerComplete(question, answer) {
80
+ if (!answer) {
81
+ return !isRequired(question);
82
+ }
83
+ if (Array.isArray(answer.value)) {
84
+ return answer.value.length > 0 || !isRequired(question);
85
+ }
86
+ if (typeof answer.value === "string") {
87
+ return answer.value.trim().length > 0 || !isRequired(question);
88
+ }
89
+ return typeof answer.value === "boolean";
90
+ }
91
+ function canSubmitAnswers(questions, answers) {
92
+ return questions.every((question) => isAnswerComplete(question, answers[question.id]));
93
+ }
94
+ function isAnswerValid(question, answer) {
95
+ const optionValues = new Set((question.options ?? []).map((option) => option.value));
96
+ const other = Boolean(answer.isOther) && hasOther(question);
97
+ switch (question.type) {
98
+ case "single-select":
99
+ return typeof answer.value === "string" && (other || optionValues.has(answer.value));
100
+ case "multi-select": {
101
+ if (!Array.isArray(answer.value) || answer.value.length === 0) {
102
+ return false;
103
+ }
104
+ const picked = other ? answer.value.slice(0, -1) : answer.value;
105
+ return picked.every((value) => optionValues.has(value));
106
+ }
107
+ case "rank-priorities": {
108
+ if (!Array.isArray(answer.value)) {
109
+ return false;
110
+ }
111
+ const ranked = new Set(answer.value);
112
+ return ranked.size === answer.value.length && ranked.size === optionValues.size && [...optionValues].every((value) => ranked.has(value));
113
+ }
114
+ case "confirm":
115
+ return typeof answer.value === "boolean";
116
+ case "text":
117
+ return typeof answer.value === "string";
118
+ default:
119
+ return false;
120
+ }
121
+ }
122
+ function invalidAnswerQuestions(questions, answers) {
123
+ return questions.filter((question) => {
124
+ const answer = answers[question.id];
125
+ return answer !== void 0 && !isAnswerValid(question, answer);
126
+ });
127
+ }
128
+ function answersOf(questions, answers) {
129
+ const result = {};
130
+ questions.forEach((question) => {
131
+ const answer = answers[question.id];
132
+ if (answer !== void 0) {
133
+ result[question.id] = answer;
134
+ }
135
+ });
136
+ return result;
137
+ }
138
+ function singleSelectState(answer) {
139
+ if (!answer || typeof answer.value !== "string") {
140
+ return {
141
+ picked: void 0,
142
+ otherText: ""
143
+ };
144
+ }
145
+ if (answer.isOther) {
146
+ return {
147
+ picked: OTHER_VALUE,
148
+ otherText: answer.value
149
+ };
150
+ }
151
+ return {
152
+ picked: answer.value,
153
+ otherText: ""
154
+ };
155
+ }
156
+ function multiSelectState(answer) {
157
+ if (!answer || !Array.isArray(answer.value)) {
158
+ return {
159
+ selected: [],
160
+ useOther: false,
161
+ otherText: ""
162
+ };
163
+ }
164
+ if (answer.isOther && answer.value.length > 0) {
165
+ return {
166
+ selected: answer.value.slice(0, -1),
167
+ useOther: true,
168
+ otherText: answer.value[answer.value.length - 1] ?? ""
169
+ };
170
+ }
171
+ return {
172
+ selected: [...answer.value],
173
+ useOther: false,
174
+ otherText: ""
175
+ };
176
+ }
177
+ function rankOrder(question, answer) {
178
+ const all = (question.options ?? []).map((option) => option.value);
179
+ if (!answer || !Array.isArray(answer.value)) {
180
+ return all;
181
+ }
182
+ const stored = answer.value.filter((value, index, list) => all.includes(value) && list.indexOf(value) === index);
183
+ return [...stored, ...all.filter((value) => !stored.includes(value))];
184
+ }
185
+ function moveItem(order, from, to) {
186
+ if (from === to || from < 0 || to < 0 || from >= order.length || to >= order.length) {
187
+ return [...order];
188
+ }
189
+ const next = [...order];
190
+ const [moved] = next.splice(from, 1);
191
+ if (moved !== void 0) {
192
+ next.splice(to, 0, moved);
193
+ }
194
+ return next;
195
+ }
196
+ function rankAnswer(question, order) {
197
+ return {
198
+ value: [...order],
199
+ label: order.map((value) => optionLabel(question, value)).join(", ")
200
+ };
201
+ }
202
+ function sameAnswer(a, b) {
203
+ return JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
204
+ }
205
+ export {
206
+ OTHER_VALUE,
207
+ answerText,
208
+ answersOf,
209
+ canSubmitAnswers,
210
+ confirmChoices,
211
+ hasOther,
212
+ invalidAnswerQuestions,
213
+ isAnswerComplete,
214
+ isAnswerValid,
215
+ isQuestionSetValid,
216
+ isRequired,
217
+ moveItem,
218
+ multiSelectState,
219
+ rankAnswer,
220
+ rankOrder,
221
+ sameAnswer,
222
+ singleSelectState,
223
+ sortedOptions
224
+ };
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, useModel, openBlock, createBlock, unref, mergeProps, createSlots, withCtx, renderSlot, createVNode, normalizeStyle, normalizeClass, createCommentVNode, mergeModels } from "vue";
2
+ import { X } from "@lucide/vue";
2
3
  import { ElAutocomplete } from "element-plus";
3
4
  import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/node_modules/element-plus/theme-chalk/src/autocomplete.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
4
5
  import '../../assets/components/VcAutocomplete/VcAutocomplete.css';/* empty css */
@@ -102,9 +103,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
103
  renderSlot(_ctx.$slots, "suffix", {}, () => [
103
104
  localModel.value ? (openBlock(), createBlock(_sfc_main$1, {
104
105
  key: 0,
105
- icon: "vc-icon-close icon-xs closable-icon",
106
+ icon: unref(X),
107
+ class: "icon-xs closable-icon",
106
108
  onClick: onClear
107
- })) : createCommentVNode("", true)
109
+ }, null, 8, ["icon"])) : createCommentVNode("", true)
108
110
  ])
109
111
  ]),
110
112
  key: "1"
@@ -18,10 +18,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  initials: { default: "" },
19
19
  alt: { default: void 0 },
20
20
  size: { default: "md" },
21
- color: { default: "var(--primary-actions)" },
22
- textColor: { default: "var(--btn-filled-text)" },
21
+ color: { default: "var(--vc-action-primary)" },
22
+ textColor: { default: "var(--vc-onfill-primary, var(--vc-onfill))" },
23
23
  statusColor: { default: void 0 },
24
- statusBorderColor: { default: "var(--light-bg)" }
24
+ statusBorderColor: { default: "var(--vc-bg-surface)" }
25
25
  },
26
26
  setup(__props) {
27
27
  const props = __props;
@@ -1,12 +1,13 @@
1
1
  import '../../assets/components/VcBadgeTag/VcBadgeTag.css';
2
- import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, renderSlot, createTextVNode, toDisplayString } from "vue";
2
+ import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
3
+ const _hoisted_1 = { class: "vc-badge-tag__value" };
3
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
4
5
  __name: "VcBadgeTag",
5
6
  props: {
6
7
  value: { default: void 0 },
7
8
  size: { default: "md" },
8
- color: { default: "var(--primary-actions)" },
9
- textColor: { default: "var(--btn-filled-text)" }
9
+ color: { default: "var(--vc-action-primary)" },
10
+ textColor: { default: "var(--vc-onfill-primary, var(--vc-onfill))" }
10
11
  },
11
12
  setup(__props) {
12
13
  const props = __props;
@@ -19,8 +20,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  class: normalizeClass([`vc-badge-tag--${__props.size}`, "vc-badge-tag"]),
20
21
  style: normalizeStyle(styleVariables.value)
21
22
  }, [
22
- renderSlot(_ctx.$slots, "default", {}, () => [
23
- createTextVNode(toDisplayString(__props.value), 1)
23
+ createElementVNode("span", _hoisted_1, [
24
+ renderSlot(_ctx.$slots, "default", {}, () => [
25
+ createTextVNode(toDisplayString(__props.value), 1)
26
+ ])
24
27
  ])
25
28
  ], 6);
26
29
  };