@voicenter-team/voicenter-ui-plus 3.4.8 → 4.0.0-beta.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.
- package/README.md +1004 -558
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunMetrics.css +1 -0
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunRow.css +1 -0
- package/library/assets/components/VcAgentRun/VcAgentRunCard.css +1 -0
- package/library/assets/components/VcAgentRun/VcAgentRunGroup.css +1 -0
- package/library/assets/components/VcAiReasoning/VcAiReasoning.css +1 -0
- package/library/assets/components/VcApprovalCard/VcApprovalCard.css +1 -0
- package/library/assets/components/VcAskUserCard/VcAskUserCard.css +1 -0
- package/library/assets/components/VcAutocomplete/VcAutocomplete.css +1 -1
- package/library/assets/components/VcAvatar/VcAvatar.css +1 -1
- package/library/assets/components/VcBadgeTag/VcBadgeTag.css +1 -1
- package/library/assets/components/VcButton/VcButton.css +1 -1
- package/library/assets/components/VcButton/VcButtonIcon.css +1 -1
- package/library/assets/components/VcButton/VcToggleButton.css +1 -1
- package/library/assets/components/VcCard/VcCard.css +1 -1
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckbox.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckboxButton.css +1 -1
- package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -1
- package/library/assets/components/VcCollapse/VcCollapseItem.css +1 -1
- package/library/assets/components/VcColorPicker/VcColorPicker.css +1 -1
- package/library/assets/components/VcDatePicker/VcDatePicker.css +1 -1
- package/library/assets/components/VcDatePickerPanel/VcDatePickerPanel.css +1 -1
- package/library/assets/components/VcDatetimeRangePicker/VcDatetimeRangePicker.css +1 -1
- package/library/assets/components/VcDropdown/VcDropdown.css +1 -1
- package/library/assets/components/VcDropdown/VcDropdownItem.css +1 -1
- package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileItem.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcForm/UiComponents/VcInputError.css +1 -1
- package/library/assets/components/VcForm/UiComponents/VcInputLabel.css +1 -1
- package/library/assets/components/VcForm/VcFormItem.css +1 -1
- package/library/assets/components/VcHtmlEditor/VcHtmlEditor.css +1 -1
- package/library/assets/components/VcHyperLink/VcHyperLink.css +1 -1
- package/library/assets/components/VcIconPicker/VcIconPicker.css +1 -1
- package/library/assets/components/VcImageUploader/VcImageUploader.css +1 -1
- package/library/assets/components/VcInput/VcInput.css +1 -1
- package/library/assets/components/VcInputNumber/VcInputNumber.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonCodeMirror.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- package/library/assets/components/VcJsonSchema/VcJsonSchema.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerCards.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerFields.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerKey.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerMore.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerObject.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerSections.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerState.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTable.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTree.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerValue.css +1 -0
- package/library/assets/components/VcJsonViewer/VcJsonViewer.css +1 -0
- package/library/assets/components/VcLightbox/VcLightbox.css +1 -0
- package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
- package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
- package/library/assets/components/VcLoading/VcLoading.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcMdEditor/VcMdEditorContent.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageFileBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageImageBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageMarkdownBlock.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageTextBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageVideoBlock.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageEmojiPicker.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -1
- package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -1
- package/library/assets/components/VcMeterGroup/VcMeterGroup.css +1 -1
- package/library/assets/components/VcModal/VcModal.css +1 -1
- package/library/assets/components/VcNotification/VcNotification.css +1 -1
- package/library/assets/components/VcOtpInput/VcOtpInput.css +1 -1
- package/library/assets/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.css +1 -0
- package/library/assets/components/VcPdfViewer/VcPdfDocument.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentCard.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfViewer.css +1 -0
- package/library/assets/components/VcPhoneInput/VcFlagLabel.css +1 -1
- package/library/assets/components/VcPhoneInput/VcPhoneInput.css +1 -1
- package/library/assets/components/VcPopover/VcConfirmPopover.css +1 -1
- package/library/assets/components/VcPopover/VcPopover.css +1 -1
- package/library/assets/components/VcPopover/VcSelectPopover.css +1 -1
- package/library/assets/components/VcProgress/VcProgress.css +1 -1
- package/library/assets/components/VcProgress/VcProgressCircular.css +1 -1
- package/library/assets/components/VcRadio/VcRadio.css +1 -1
- package/library/assets/components/VcRadioButtons/VcRadioButtonsGroup.css +1 -1
- package/library/assets/components/VcRadioGroup/VcRadioGroup.css +1 -1
- package/library/assets/components/VcRadioTabs/UiComponents/VcRadioTabsNav.css +1 -1
- package/library/assets/components/VcRadioTabs/VcRadioTabs.css +1 -1
- package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
- package/library/assets/components/VcSelect/VcSelect.css +1 -1
- package/library/assets/components/VcSelect/VcSelectOption.css +1 -1
- package/library/assets/components/VcSipFlow/VcSipFlow.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
- package/library/assets/components/VcSlider/VcSlider.css +1 -1
- package/library/assets/components/VcSoundplayer/VcPlayerPlaybackRate.css +1 -1
- package/library/assets/components/VcSoundplayer/VcSoundPlayerMarker.css +1 -1
- package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
- package/library/assets/components/VcSwitch/VcSwitch.css +1 -1
- package/library/assets/components/VcSystemUserPrompt/VcSystemUserPrompt.css +1 -1
- package/library/assets/components/VcTable/VcTable.css +1 -1
- package/library/assets/components/VcTable/VcTable2.css +1 -1
- package/library/assets/components/VcTabs/VcTabNav.css +1 -1
- package/library/assets/components/VcTabs/VcTabs.css +1 -1
- package/library/assets/components/VcTag/VcTag.css +1 -1
- package/library/assets/components/VcTagInput/VcTagInput.css +1 -1
- package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
- package/library/assets/components/VcToolCall/UiComponents/VcToolCallValue.css +1 -0
- package/library/assets/components/VcToolCall/VcToolCall.css +1 -0
- package/library/assets/components/VcTour/VcTour.css +1 -1
- package/library/assets/components/VcTransfer/VcTransfer.css +1 -1
- package/library/assets/components/VcTree/VcTree.css +1 -1
- package/library/assets/components/VcTree/VcTreeSelect.css +1 -1
- package/library/assets/components/VcVerticalTabs/VcVerticalTabs.css +1 -1
- package/library/assets/components/VcVerticalTabs/VerticalTabNav.css +1 -1
- package/library/assets/components/VcViewSwitcher/VcViewSwitcher.css +1 -1
- package/library/assets/components/VcWizard/VcSummaryProgress.css +1 -1
- package/library/assets/components/VcWizard/VcWizard.css +1 -1
- package/library/assets/components/VcWizard/VcWizardNavigation.css +1 -1
- package/library/assets/components/VcWizard/VcWizardSummary.css +1 -1
- package/library/assets/entity/components/Form/VcBaseVerticalForm.css +1 -1
- package/library/assets/entity/components/Table/VcEntityListTable.css +1 -1
- package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/autocomplete.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/base.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/button.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/checkbox.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/image-viewer.css +1 -0
- package/library/assets/node_modules/element-plus/theme-chalk/src/input-number.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/input.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/option.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/popover.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/popper.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/radio-button.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/radio.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/select.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/tree.css +1 -1
- package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.mjs +110 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue3.mjs +5 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.mjs +70 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue3.mjs +5 -0
- package/library/components/VcAgentRun/VcAgentRunCard.vue.mjs +423 -0
- package/library/components/VcAgentRun/VcAgentRunCard.vue3.mjs +5 -0
- package/library/components/VcAgentRun/VcAgentRunGroup.vue.mjs +210 -0
- package/library/components/VcAgentRun/VcAgentRunGroup.vue3.mjs +5 -0
- package/library/components/VcAgentRun/agentRunStatus.mjs +39 -0
- package/library/components/VcAiReasoning/VcAiReasoning.vue.mjs +227 -0
- package/library/components/VcAiReasoning/VcAiReasoning.vue3.mjs +5 -0
- package/library/components/VcApprovalCard/VcApprovalCard.vue.mjs +419 -0
- package/library/components/VcApprovalCard/VcApprovalCard.vue3.mjs +5 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.mjs +69 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.mjs +177 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.mjs +98 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.mjs +142 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.mjs +156 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue.mjs +76 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/VcAskUserCard.vue.mjs +382 -0
- package/library/components/VcAskUserCard/VcAskUserCard.vue3.mjs +5 -0
- package/library/components/VcAskUserCard/askUserAnswers.mjs +224 -0
- package/library/components/VcAutocomplete/VcAutocomplete.vue.mjs +4 -2
- package/library/components/VcAvatar/VcAvatar.vue.mjs +3 -3
- package/library/components/VcBadgeTag/VcBadgeTag.vue.mjs +8 -5
- package/library/components/VcButton/VcButton.vue.mjs +10 -4
- package/library/components/VcButton/VcButtonIcon.vue.mjs +3 -4
- package/library/components/VcButton/VcToggleButton.vue.mjs +5 -4
- package/library/components/VcChatComposer/VcChatComposer.vue.mjs +154 -51
- package/library/components/VcCodeBlock/VcCodeBlock.vue.mjs +27 -35
- package/library/components/VcCollapse/VcCollapseItem.vue.mjs +12 -7
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +40 -11
- package/library/components/VcDatePickerPanel/VcDatePickerPanel.vue.mjs +49 -32
- package/library/components/VcExcelUploader/VcExcelFileProcessLoader.vue.mjs +2 -2
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +11 -7
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +7 -6
- package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +8 -4
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +2 -1
- package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +13 -12
- package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.mjs +6 -5
- package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.mjs +4 -3
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +7 -3
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.mjs +3 -2
- package/library/components/VcFileUploader/VcFileItem.vue.mjs +59 -31
- package/library/components/VcFileUploader/VcFileUploader.vue.mjs +2 -1
- package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +2 -2
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue2.mjs +2 -1
- package/library/components/VcFileUploader/VcSimpleUploaderAction.vue.mjs +4 -3
- package/library/components/VcForm/UiComponents/VcInputLabel.vue.mjs +6 -2
- package/library/components/VcHtmlEditor/VcHtmlEditor.vue.mjs +4 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +19 -31
- package/library/components/VcHtmlEditor/htmlEditor.config.mjs +13 -10
- package/library/components/VcHyperLink/VcHyperLink.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +1 -1
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +27 -14
- package/library/components/VcInput/VcInput.vue.mjs +4 -2
- package/library/components/VcInputNumber/VcInputNumber.vue.mjs +29 -4
- package/library/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.mjs +5 -4
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -2
- package/library/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.mjs +6 -9
- package/library/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.mjs +9 -10
- package/library/components/VcJsonSchema/VcJsonSchema.vue.mjs +0 -1
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.mjs +98 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.mjs +164 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.mjs +50 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.mjs +25 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.mjs +64 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.mjs +53 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.mjs +104 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.mjs +45 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.mjs +259 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.mjs +179 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.mjs +146 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/VcJsonViewer.vue.mjs +454 -0
- package/library/components/VcJsonViewer/VcJsonViewer.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/jsonViewerText.mjs +41 -0
- package/library/components/VcJsonViewer/jsonViewerUtils.mjs +568 -0
- package/library/components/VcJsonViewer/useJsonViewerContext.mjs +25 -0
- package/library/components/VcLightbox/VcLightbox.vue.mjs +417 -0
- package/library/components/VcLightbox/VcLightbox.vue3.mjs +5 -0
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue2.mjs +3 -2
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +5 -4
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LdsSpinner.vue2.mjs +3 -2
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue2.mjs +5 -4
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +4 -3
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue2.mjs +3 -3
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +37 -12
- package/library/components/VcMdEditor/VcMdEditorContent.vue.mjs +10 -0
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +6 -6
- package/library/components/VcMdEditor/ltrNumbersPlugin.mjs +55 -0
- package/library/components/VcMdEditor/readonlyMarkdown.mjs +81 -0
- package/library/components/VcMdEditor/streamingInterval.mjs +12 -0
- package/library/components/VcMessage/VcMessage.vue.mjs +75 -42
- package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +99 -14
- package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue2.mjs +33 -0
- package/library/components/VcMessage/content/VcMessageTextBlock.vue.mjs +21 -3
- package/library/components/VcMessage/content/markdownPreview.mjs +32 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +3 -1
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +120 -52
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +49 -29
- package/library/components/VcMeterGroup/VcMeterGroup.vue.mjs +1 -1
- package/library/components/VcModal/VcConfirmModal.vue.mjs +10 -9
- package/library/components/VcModal/VcModal.vue.mjs +21 -22
- package/library/components/VcNotification/VcNotification.vue.mjs +2 -2
- package/library/components/VcNotification/VcNotificationMessage.vue.mjs +14 -11
- package/library/components/VcPagination/VcPagination.vue.mjs +5 -4
- package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.mjs +166 -0
- package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue3.mjs +5 -0
- package/library/components/VcPdfViewer/VcPdfDocument.vue.mjs +12 -76
- package/library/components/VcPdfViewer/VcPdfDocumentCard.vue.mjs +18 -8
- package/library/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.mjs +23 -7
- package/library/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.mjs +23 -10
- package/library/components/VcPdfViewer/VcPdfViewer.vue.mjs +581 -0
- package/library/components/VcPdfViewer/VcPdfViewer.vue3.mjs +5 -0
- package/library/components/VcPdfViewer/pdfDocumentActions.mjs +90 -0
- package/library/components/VcPdfViewer/pdfDocumentParams.mjs +11 -0
- package/library/components/VcPdfViewer/pdfStandardFonts.mjs +21 -0
- package/library/components/VcPdfViewer/standard_fonts/FoxitDingbats.pfb +0 -0
- package/library/components/VcPdfViewer/standard_fonts/FoxitSymbol.pfb +0 -0
- package/library/components/VcPdfViewer/standard_fonts/LICENSE_FOXIT +27 -0
- package/library/components/VcPhoneInput/VcPhoneInput.vue.mjs +12 -6
- package/library/components/VcPopover/VcConfirmPopover.vue.mjs +3 -3
- package/library/components/VcPopover/VcSelectPopover.vue.mjs +2 -1
- package/library/components/VcProgress/VcProgress.vue.mjs +11 -20
- package/library/components/VcProgress/VcProgressCircular.vue.mjs +14 -23
- package/library/components/VcProgress/progress.options.mjs +21 -21
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +13 -7
- package/library/components/VcSelect/VcSelect.vue.mjs +18 -19
- package/library/components/VcSelect/VcSelectGrouped.vue.mjs +8 -5
- package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue2.mjs +1 -1
- package/library/components/VcSoundplayer/VcPlayerPlayStopButton.vue.mjs +7 -6
- package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +5 -4
- package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +26 -23
- package/library/components/VcSoundplayer/VcSoundPlayerError.vue.mjs +5 -4
- package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerProgress.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerWrapper.vue.mjs +5 -3
- package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +5 -4
- package/library/components/VcSoundplayer/player.options.mjs +13 -5
- package/library/components/VcSparkline/VcBarLine.vue.mjs +2 -2
- package/library/components/VcSparkline/VcTrendLine.vue.mjs +2 -2
- package/library/components/VcSplitButton/VcSplitButton.vue.mjs +18 -19
- package/library/components/VcSwitch/VcSwitch.vue.mjs +1 -1
- package/library/components/VcTable/VcTable.vue.mjs +18 -11
- package/library/components/VcTabs/VcTabNav.vue.mjs +11 -9
- package/library/components/VcTag/VcTag.vue.mjs +6 -4
- package/library/components/VcTagInput/VcTagInput.vue.mjs +10 -7
- package/library/components/VcTimeInput/VcTimeInput.vue.mjs +18 -8
- package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue.mjs +64 -0
- package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue3.mjs +5 -0
- package/library/components/VcToolCall/VcToolCall.vue.mjs +328 -0
- package/library/components/VcToolCall/VcToolCall.vue3.mjs +5 -0
- package/library/components/VcTree/VcTree.vue.mjs +8 -4
- package/library/components/VcTree/VcTreeSelect.vue.mjs +11 -7
- package/library/components/VcWizard/VcSummaryProgress.vue.mjs +10 -7
- package/library/components/VcWizard/VcSummaryStep.vue.mjs +8 -4
- package/library/components/VcWizard/VcWizardNavigation.vue.mjs +12 -8
- package/library/composables/input/useInputColor.mjs +3 -3
- package/library/composables/useElapsed.mjs +47 -0
- package/library/composables/useThrottledText.mjs +22 -0
- package/library/entity/components/Button/VcEntityAddButton.vue.mjs +4 -3
- package/library/entity/components/Button/VcEntityCancelButton.vue.mjs +4 -3
- package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +3 -2
- package/library/entity/components/Form/VcBaseVerticalForm.vue.mjs +6 -5
- package/library/entity/components/Form/VcEntityEditPageForm.vue.mjs +4 -3
- package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +7 -6
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +15 -15
- package/library/enum/constants.mjs +5 -11
- package/library/enum/fileTypes.mjs +24 -39
- package/library/enum/inputDefaults.mjs +2 -2
- package/library/index.mjs +263 -235
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/localization/locales/en.json.mjs +172 -1
- package/library/plugin-components.gen.mjs +95 -68
- package/library/plugin.mjs +261 -233
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +174 -122
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/theme/themeMerge.mjs +32 -16
- package/library/theme/themes.json.mjs +172 -222
- package/library/tokens/tokens.mjs +2 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.d.ts +46 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.d.ts +20 -0
- package/library/types/components/VcAgentRun/VcAgentRunCard.vue.d.ts +104 -0
- package/library/types/components/VcAgentRun/VcAgentRunGroup.vue.d.ts +53 -0
- package/library/types/components/VcAgentRun/agentRunStatus.d.ts +13 -0
- package/library/types/components/VcAiReasoning/VcAiReasoning.vue.d.ts +85 -0
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +101 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.d.ts +41 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.d.ts +53 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserText.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/askUserControl.d.ts +25 -0
- package/library/types/components/VcAskUserCard/VcAskUserCard.vue.d.ts +84 -0
- package/library/types/components/VcAskUserCard/askUserAnswers.d.ts +57 -0
- package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +72 -72
- package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +1 -1
- package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +1 -1
- package/library/types/components/VcButton/VcButton.vue.d.ts +7 -7
- package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +12 -13
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +4 -4
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +43 -15
- package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +24 -24
- package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +18 -18
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +15 -15
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +12 -12
- package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +1 -1
- package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +3 -3
- package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +1 -1
- package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +21 -21
- package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +18 -18
- package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +4 -4
- package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +1 -1
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +1 -1
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +6 -5
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +4 -4
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +11 -11
- package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +10 -45
- package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcSimpleUploaderAction.vue.d.ts +2 -2
- package/library/types/components/VcForm/VcForm.vue.d.ts +3 -3
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +2 -2
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +1 -1
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +3 -3
- package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +3 -3
- package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +6 -6
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +3 -3
- package/library/types/components/VcInput/VcInput.vue.d.ts +11 -11
- package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +3 -3
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.d.ts +42 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.d.ts +32 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.d.ts +31 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.d.ts +25 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.d.ts +34 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.d.ts +39 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.d.ts +46 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.d.ts +37 -0
- package/library/types/components/VcJsonViewer/VcJsonViewer.vue.d.ts +162 -0
- package/library/types/components/VcJsonViewer/jsonViewerText.d.ts +8 -0
- package/library/types/components/VcJsonViewer/jsonViewerUtils.d.ts +127 -0
- package/library/types/components/VcJsonViewer/useJsonViewerContext.d.ts +5 -0
- package/library/types/components/VcLightbox/VcLightbox.vue.d.ts +90 -0
- package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +2 -2
- package/library/types/components/VcLoading/VcLoading.vue.d.ts +2 -2
- package/library/types/components/VcLoading/enum.d.ts +2 -2
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +111 -55
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +3 -3
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +1 -1
- package/library/types/components/VcMdEditor/ltrNumbersPlugin.d.ts +16 -0
- package/library/types/components/VcMdEditor/readonlyMarkdown.d.ts +7 -0
- package/library/types/components/VcMdEditor/streamingInterval.d.ts +7 -0
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +24 -3
- package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +6 -2
- package/library/types/components/VcMessage/content/VcMessageMarkdownBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/markdownPreview.d.ts +1 -0
- package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +1 -1
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +223 -84
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +89 -42
- package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +2 -2
- package/library/types/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +1 -1
- package/library/types/components/VcModal/VcModal.vue.d.ts +3 -3
- package/library/types/components/VcNotification/VcNotification.vue.d.ts +1 -1
- package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +8 -8
- package/library/types/components/VcPagination/VcPagination.vue.d.ts +1 -1
- package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +4 -4
- package/library/types/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.d.ts +64 -0
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +1 -1
- package/library/types/components/VcPdfViewer/VcPdfViewer.vue.d.ts +114 -0
- package/library/types/components/VcPdfViewer/pdfDocumentActions.d.ts +29 -0
- package/library/types/components/VcPdfViewer/pdfDocumentParams.d.ts +14 -0
- package/library/types/components/VcPdfViewer/pdfStandardFonts.d.ts +9 -0
- package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +8 -8
- package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +1 -1
- package/library/types/components/VcPopover/VcPopover.vue.d.ts +1 -1
- package/library/types/components/VcPopover/VcSelectPopover.vue.d.ts +3 -3
- package/library/types/components/VcProgress/VcProgress.vue.d.ts +1 -1
- package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +4 -4
- package/library/types/components/VcProgress/progress.options.d.ts +9 -7
- package/library/types/components/VcRadio/VcRadio.vue.d.ts +15 -15
- package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +9 -9
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +12 -12
- package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +6 -6
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +18 -18
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +42 -42
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +51 -51
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +48 -48
- package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +9 -9
- package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +1 -1
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +6 -6
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +4 -4
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +2 -2
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +4 -4
- package/library/types/components/VcSoundplayer/player.options.d.ts +1 -0
- package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +4 -4
- package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +4 -4
- package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +4 -4
- package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +6 -6
- package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +24 -24
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +4 -4
- package/library/types/components/VcTable/VcTable.vue.d.ts +6 -3
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +1 -1
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +1 -1
- package/library/types/components/VcTag/VcTag.vue.d.ts +3 -3
- package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +14 -14
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +5 -5
- package/library/types/components/VcToolCall/UiComponents/VcToolCallValue.vue.d.ts +66 -0
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +91 -0
- package/library/types/components/VcTour/VcTour.vue.d.ts +1 -1
- package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +3 -3
- package/library/types/components/VcTree/VcTree.vue.d.ts +18 -18
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +42 -42
- package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +3 -3
- package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +3 -3
- package/library/types/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +9 -9
- package/library/types/components/VcWizard/VcSummaryProgress.vue.d.ts +2 -2
- package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +1 -1
- package/library/types/components/exports.d.ts +19 -1
- package/library/types/components.gen.d.ts +9 -0
- package/library/types/composables/input/useFileUploader.d.ts +2 -2
- package/library/types/composables/useElapsed.d.ts +38 -0
- package/library/types/composables/useThrottledText.d.ts +16 -0
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +3 -3
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +3 -3
- package/library/types/enum/constants.d.ts +2 -10
- package/library/types/enum/inputDefaults.d.ts +2 -2
- package/library/types/localization/locales/en.json.d.ts +365 -194
- package/library/types/theme/themes.json.d.ts +177 -227
- package/library/types/tokens/tokens.d.ts +2 -1
- package/library/types/types/VcAgentRun.types.d.ts +197 -0
- package/library/types/types/VcAiChat.types.d.ts +5 -0
- package/library/types/types/VcAiReasoning.types.d.ts +67 -0
- package/library/types/types/VcApprovalCard.types.d.ts +109 -0
- package/library/types/types/VcAskUserCard.types.d.ts +166 -0
- package/library/types/types/VcChatComposer.types.d.ts +86 -0
- package/library/types/types/VcDropdown.types.d.ts +1 -1
- package/library/types/types/VcFileUploader.types.d.ts +26 -0
- package/library/types/types/VcJsonViewer.types.d.ts +41 -0
- package/library/types/types/VcLightbox.types.d.ts +112 -0
- package/library/types/types/VcMessage.types.d.ts +42 -4
- package/library/types/types/VcMessagesWrapper.types.d.ts +100 -12
- package/library/types/types/VcOtpInput.types.d.ts +1 -1
- package/library/types/types/VcPdfViewer.types.d.ts +138 -0
- package/library/types/types/VcProgress.types.d.ts +1 -1
- package/library/types/types/VcToolCall.types.d.ts +102 -0
- package/library/types/types/index.d.ts +9 -1
- package/library/types/utils/aiChat.d.ts +50 -0
- package/library/types/utils/download.d.ts +5 -0
- package/library/types/utils/elementPlusIcons.d.ts +9 -0
- package/library/types/utils/fileAccept.d.ts +30 -0
- package/library/types/utils/i18nParams.d.ts +8 -0
- package/library/types/utils/numberRuns.d.ts +21 -0
- package/library/types/utils/themeColor.d.ts +1 -0
- package/library/utils/UniqueComponentId.mjs +2 -2
- package/library/utils/aiChat.mjs +121 -0
- package/library/utils/download.mjs +13 -0
- package/library/utils/elementPlusIcons.mjs +14 -0
- package/library/utils/fileAccept.mjs +66 -0
- package/library/utils/i18nParams.mjs +6 -0
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/library/utils/numberRuns.mjs +63 -0
- package/library/utils/themeColor.mjs +9 -0
- package/package.json +216 -215
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +70 -37
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +61 -40
- package/src/theme/themes.json +177 -227
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +176 -192
- package/library/types/types/VcTagInput.types.d.ts +0 -1
|
@@ -45,7 +45,11 @@ export interface VcMessageReaction {
|
|
|
45
45
|
*/
|
|
46
46
|
users?: Array<string>;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Visual style of a message: `bubble` — a coloured bubble; `plain` — no background or padding, full width (the assistant look of AI chats).
|
|
50
|
+
*/
|
|
51
|
+
export type VcMessageVariant = 'bubble' | 'plain';
|
|
52
|
+
export type VcMessageContentType = 'text' | 'image' | 'video' | 'audio' | 'file' | 'markdown';
|
|
49
53
|
/**
|
|
50
54
|
* Delivery status of a message, usually set for own messages only:
|
|
51
55
|
* `pending` — being sent, `sent` — accepted by the server, `delivered` — reached the recipient,
|
|
@@ -115,23 +119,48 @@ export interface VcFileMessageContent {
|
|
|
115
119
|
* Size in bytes.
|
|
116
120
|
*/
|
|
117
121
|
size?: number;
|
|
122
|
+
/**
|
|
123
|
+
* Preview image shown instead of the file type icon; the icon comes back if it fails to load.
|
|
124
|
+
*/
|
|
125
|
+
thumbnailUrl?: string;
|
|
126
|
+
/**
|
|
127
|
+
* The card body becomes a button that emits `content-click` (e.g. to open a viewer), and the download is a separate icon button.
|
|
128
|
+
* Without it the whole card is one download link.
|
|
129
|
+
*/
|
|
130
|
+
previewable?: boolean;
|
|
118
131
|
/**
|
|
119
132
|
* Text shown under the file.
|
|
120
133
|
*/
|
|
121
134
|
caption?: string;
|
|
122
135
|
}
|
|
136
|
+
/**
|
|
137
|
+
* Markdown text, rendered by a read-only VcMdEditor (loaded on demand, only when a message has this block).
|
|
138
|
+
*/
|
|
139
|
+
export interface VcMarkdownMessageContent {
|
|
140
|
+
type: 'markdown';
|
|
141
|
+
text: string;
|
|
142
|
+
/**
|
|
143
|
+
* The text is still arriving; rendering is throttled until it turns false.
|
|
144
|
+
*/
|
|
145
|
+
streaming?: boolean;
|
|
146
|
+
}
|
|
123
147
|
export type VcMediaMessageContent = VcImageMessageContent | VcVideoMessageContent | VcAudioMessageContent | VcFileMessageContent;
|
|
124
|
-
export type VcMessageContent = VcTextMessageContent | VcMediaMessageContent;
|
|
148
|
+
export type VcMessageContent = VcTextMessageContent | VcMediaMessageContent | VcMarkdownMessageContent;
|
|
125
149
|
export interface VcMessageReply {
|
|
126
150
|
author: string;
|
|
127
151
|
content: VcMessageContent;
|
|
128
152
|
}
|
|
129
153
|
export interface VcMessageProps {
|
|
130
154
|
/**
|
|
131
|
-
* Message content, rendered by the block of its `type
|
|
155
|
+
* Message content, rendered by the block of its `type`; an array renders several blocks in order
|
|
156
|
+
* (e.g. two images, a file and a text). Optional for deleted messages and when the default slot renders the content.
|
|
132
157
|
*/
|
|
133
|
-
content?: VcMessageContent
|
|
158
|
+
content?: VcMessageContent | Array<VcMessageContent>;
|
|
134
159
|
align?: VcMessageAlign;
|
|
160
|
+
/**
|
|
161
|
+
* `plain` drops the bubble: no background or padding, full width. The toolbar and reactions keep working.
|
|
162
|
+
*/
|
|
163
|
+
variant?: VcMessageVariant;
|
|
135
164
|
/**
|
|
136
165
|
* Quoted message, rendered above the content in the compact preview mode.
|
|
137
166
|
*/
|
|
@@ -174,3 +203,12 @@ export interface VcMessageProps {
|
|
|
174
203
|
*/
|
|
175
204
|
deletedLabel?: string;
|
|
176
205
|
}
|
|
206
|
+
export interface VcMessageDefaultSlotProps {
|
|
207
|
+
/**
|
|
208
|
+
* The `content` prop as an array (empty when not set).
|
|
209
|
+
*/
|
|
210
|
+
content: Array<VcMessageContent>;
|
|
211
|
+
}
|
|
212
|
+
export interface VcMessageFooterSlotProps {
|
|
213
|
+
align: VcMessageAlign;
|
|
214
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply, VcMessageStatus } from './VcMessage.types';
|
|
1
|
+
import type { VcMessageContent, VcMessageOption, VcMessageReaction, VcMessageReply, VcMessageStatus, VcMessageVariant } from './VcMessage.types';
|
|
2
2
|
export type VcChatMessageId = string | number;
|
|
3
3
|
export interface VcChatMessageSender {
|
|
4
4
|
/**
|
|
@@ -21,11 +21,19 @@ export interface VcChatMessage {
|
|
|
21
21
|
id: VcChatMessageId;
|
|
22
22
|
sender: VcChatMessageSender;
|
|
23
23
|
isOwn: boolean;
|
|
24
|
-
createdAt: Date | string | number;
|
|
25
24
|
/**
|
|
26
|
-
*
|
|
25
|
+
* Send time. Without it the message starts no date divider and shows no time (AI SDK messages have no timestamp).
|
|
26
|
+
*/
|
|
27
|
+
createdAt?: Date | string | number;
|
|
28
|
+
/**
|
|
29
|
+
* Optional for deleted messages and for messages rendered through the `message` slot
|
|
30
|
+
* (which can pass several blocks to its own VcMessage).
|
|
27
31
|
*/
|
|
28
32
|
content?: VcMessageContent;
|
|
33
|
+
/**
|
|
34
|
+
* Visual style of the default VcMessage: `plain` for the assistant look of AI chats.
|
|
35
|
+
*/
|
|
36
|
+
variant?: VcMessageVariant;
|
|
29
37
|
replyTo?: VcChatMessageReply;
|
|
30
38
|
reactions?: Array<VcMessageReaction>;
|
|
31
39
|
isEdited?: boolean;
|
|
@@ -39,22 +47,22 @@ export interface VcChatMessage {
|
|
|
39
47
|
*/
|
|
40
48
|
class?: VcChatMessageClass;
|
|
41
49
|
}
|
|
42
|
-
export type VcChatMessageOptionsFn = (message:
|
|
43
|
-
export type VcChatMessageAdditionalOptionsFn = (message:
|
|
44
|
-
export interface VcMessagesWrapperProps {
|
|
50
|
+
export type VcChatMessageOptionsFn<T extends VcChatMessage = VcChatMessage> = (message: T) => Array<VcMessageOption>;
|
|
51
|
+
export type VcChatMessageAdditionalOptionsFn<T extends VcChatMessage = VcChatMessage> = (message: T) => Array<Array<VcMessageOption>>;
|
|
52
|
+
export interface VcMessagesWrapperProps<T extends VcChatMessage = VcChatMessage> {
|
|
45
53
|
/**
|
|
46
|
-
* Messages
|
|
54
|
+
* Messages, oldest first. Extend `VcChatMessage` with your own fields: the slots and emits keep your type.
|
|
47
55
|
* Keep the objects of unchanged messages: a message is re-rendered only when its object changes.
|
|
48
56
|
*/
|
|
49
|
-
messages: Array<
|
|
57
|
+
messages: Array<T>;
|
|
50
58
|
/**
|
|
51
|
-
* Toolbar options of a message. Decide by `message.content
|
|
59
|
+
* Toolbar options of a message. Decide by `message.content`, `message.isOwn` etc.
|
|
52
60
|
*/
|
|
53
|
-
options?: VcChatMessageOptionsFn
|
|
61
|
+
options?: VcChatMessageOptionsFn<T>;
|
|
54
62
|
/**
|
|
55
63
|
* Grouped "more" menu options of a message.
|
|
56
64
|
*/
|
|
57
|
-
additionalOptions?: VcChatMessageAdditionalOptionsFn
|
|
65
|
+
additionalOptions?: VcChatMessageAdditionalOptionsFn<T>;
|
|
58
66
|
/**
|
|
59
67
|
* Emoji of the reaction picker, the same for every message.
|
|
60
68
|
*/
|
|
@@ -65,7 +73,8 @@ export interface VcMessagesWrapperProps {
|
|
|
65
73
|
*/
|
|
66
74
|
unreadFromId?: VcChatMessageId | null;
|
|
67
75
|
/**
|
|
68
|
-
* Distance to the edge in px
|
|
76
|
+
* Distance to the edge in px within which the view is at that edge: `reached-top` / `reached-bottom` are emitted
|
|
77
|
+
* there, and a scroll up by the user that ends farther from the bottom stops following new messages.
|
|
69
78
|
*/
|
|
70
79
|
scrollThreshold?: number;
|
|
71
80
|
/**
|
|
@@ -76,6 +85,85 @@ export interface VcMessagesWrapperProps {
|
|
|
76
85
|
* dayjs format of the message time.
|
|
77
86
|
*/
|
|
78
87
|
timeFormat?: string;
|
|
88
|
+
/**
|
|
89
|
+
* Hides the "sender · time" header row of messages (AI chats show neither).
|
|
90
|
+
*/
|
|
91
|
+
hideHeader?: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* Shows a "Jump to latest" button when the view is scrolled up by more than `jumpButtonThreshold` px.
|
|
94
|
+
*/
|
|
95
|
+
showJumpButton?: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* Distance from the bottom in px from which the jump button shows.
|
|
98
|
+
*/
|
|
99
|
+
jumpButtonThreshold?: number;
|
|
100
|
+
/**
|
|
101
|
+
* Sets `aria-busy` while an answer streams, so assistive technology does not read partial text.
|
|
102
|
+
*/
|
|
103
|
+
busy?: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface VcMessagesWrapperMessageSlotProps<T extends VcChatMessage = VcChatMessage> {
|
|
106
|
+
message: T;
|
|
107
|
+
/**
|
|
108
|
+
* Index of the message in `messages`.
|
|
109
|
+
*/
|
|
110
|
+
index: number;
|
|
111
|
+
/**
|
|
112
|
+
* First message of a run from one sender (or after a date or "New messages" divider).
|
|
113
|
+
*/
|
|
114
|
+
isGroupStart: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Last message of a run from one sender: the next one has another sender or comes after a divider.
|
|
117
|
+
*/
|
|
118
|
+
isGroupEnd: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* The last message of the list.
|
|
121
|
+
*/
|
|
122
|
+
isLast: boolean;
|
|
123
|
+
/**
|
|
124
|
+
* The header with the time is shown for this message.
|
|
125
|
+
*/
|
|
126
|
+
showTime: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Formatted time; empty without `createdAt`.
|
|
129
|
+
*/
|
|
130
|
+
time: string;
|
|
131
|
+
}
|
|
132
|
+
export interface VcMessagesWrapperMessageHeaderSlotProps<T extends VcChatMessage = VcChatMessage> {
|
|
133
|
+
message: T;
|
|
134
|
+
}
|
|
135
|
+
export interface VcMessagesWrapperDateDividerSlotProps {
|
|
136
|
+
date: Date;
|
|
137
|
+
label: string;
|
|
138
|
+
}
|
|
139
|
+
export interface VcMessagesWrapperUnreadDividerSlotProps {
|
|
140
|
+
/**
|
|
141
|
+
* The localized "New messages" text.
|
|
142
|
+
*/
|
|
143
|
+
label: string;
|
|
144
|
+
}
|
|
145
|
+
export interface VcMessagesWrapperJumpButtonSlotProps {
|
|
146
|
+
scrollToBottom: (behavior?: ScrollBehavior) => void;
|
|
147
|
+
/**
|
|
148
|
+
* Distance from the bottom in px.
|
|
149
|
+
*/
|
|
150
|
+
distance: number;
|
|
151
|
+
}
|
|
152
|
+
export interface VcMessagesWrapperExposed {
|
|
153
|
+
scrollToBottom: (behavior?: ScrollBehavior) => void;
|
|
154
|
+
/**
|
|
155
|
+
* Scrolls a rendered message into view (to the center, smoothly by default); `block: 'start'` puts it at the top.
|
|
156
|
+
* The view then stays on it while the list grows below. Returns false when it is not rendered.
|
|
157
|
+
*/
|
|
158
|
+
scrollToMessage: (id: VcChatMessageId, options?: VcMessagesWrapperScrollOptions) => boolean;
|
|
159
|
+
/**
|
|
160
|
+
* Scrolls the "New messages" divider to the top (instantly by default). Returns false when there is no divider.
|
|
161
|
+
*/
|
|
162
|
+
scrollToUnread: (options?: VcMessagesWrapperScrollOptions) => boolean;
|
|
163
|
+
/**
|
|
164
|
+
* The view is within `scrollThreshold` px of the bottom.
|
|
165
|
+
*/
|
|
166
|
+
isAtBottom: () => boolean;
|
|
79
167
|
}
|
|
80
168
|
export interface VcMessagesWrapperScrollOptions {
|
|
81
169
|
behavior?: ScrollBehavior;
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in toolbar actions of VcPdfViewer: print the document, download it, open it in a new browser tab.
|
|
3
|
+
*/
|
|
4
|
+
export type VcPdfViewerAction = 'print' | 'download' | 'open';
|
|
5
|
+
export interface VcPdfViewerProps {
|
|
6
|
+
/**
|
|
7
|
+
* URL of the PDF: absolute, relative to the page, or a `blob:` URL. Changing it loads the new document. Empty shows the empty state.
|
|
8
|
+
*/
|
|
9
|
+
document?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Name shown in the toolbar and given to the downloaded file. Defaults to the last segment of the URL.
|
|
12
|
+
*/
|
|
13
|
+
fileName?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Downloaded instead of `document`, e.g. the original .docx while the viewer shows its PDF rendering.
|
|
16
|
+
* It is downloaded through a temporary `<a download>`, without fetching it first.
|
|
17
|
+
*/
|
|
18
|
+
downloadUrl?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Current page, 1-based (`v-model:page`). Setting it scrolls that page into view; scrolling updates it.
|
|
21
|
+
*/
|
|
22
|
+
page?: number;
|
|
23
|
+
/**
|
|
24
|
+
* Page width in percent of the viewer width (`v-model:zoom`); 100 fits the width. Zoom buttons change it by 10.
|
|
25
|
+
*/
|
|
26
|
+
zoom?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Lower zoom limit, in percent.
|
|
29
|
+
*/
|
|
30
|
+
minZoom?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Upper zoom limit, in percent. Above 100 the pages scroll horizontally.
|
|
33
|
+
*/
|
|
34
|
+
maxZoom?: number;
|
|
35
|
+
/**
|
|
36
|
+
* Height of the viewer; a number is px. The default fills the parent, e.g. a tab pane with a set height.
|
|
37
|
+
*/
|
|
38
|
+
height?: string | number;
|
|
39
|
+
/**
|
|
40
|
+
* Toolbar actions to show, in this order.
|
|
41
|
+
*/
|
|
42
|
+
actions?: Array<VcPdfViewerAction>;
|
|
43
|
+
/**
|
|
44
|
+
* Hides the toolbar (page navigation, zoom and actions); the pages still scroll.
|
|
45
|
+
*/
|
|
46
|
+
hideToolbar?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* HTTP headers of the document request, e.g. `Authorization` (pdf.js `httpHeaders`).
|
|
49
|
+
*/
|
|
50
|
+
httpHeaders?: Record<string, string>;
|
|
51
|
+
/**
|
|
52
|
+
* Sends cookies with a cross-origin document request (pdf.js `withCredentials`).
|
|
53
|
+
*/
|
|
54
|
+
withCredentials?: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* What the Download button is about to download.
|
|
58
|
+
*/
|
|
59
|
+
export interface VcPdfViewerDownload {
|
|
60
|
+
/**
|
|
61
|
+
* `downloadUrl`, or `document` when it is not set.
|
|
62
|
+
*/
|
|
63
|
+
url: string;
|
|
64
|
+
fileName: string;
|
|
65
|
+
}
|
|
66
|
+
export interface VcPdfViewerEmits {
|
|
67
|
+
/**
|
|
68
|
+
* The current page changed by scrolling or navigation (`v-model:page`).
|
|
69
|
+
*/
|
|
70
|
+
(e: 'update:page', page: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* The zoom changed (`v-model:zoom`).
|
|
73
|
+
*/
|
|
74
|
+
(e: 'update:zoom', zoom: number): void;
|
|
75
|
+
/**
|
|
76
|
+
* The document loaded.
|
|
77
|
+
*/
|
|
78
|
+
(e: 'loaded', pageCount: number): void;
|
|
79
|
+
/**
|
|
80
|
+
* The document could not be loaded; the error state is shown.
|
|
81
|
+
*/
|
|
82
|
+
(e: 'error', error: unknown): void;
|
|
83
|
+
/**
|
|
84
|
+
* Loading progress, 0–100.
|
|
85
|
+
*/
|
|
86
|
+
(e: 'progress', percent: number): void;
|
|
87
|
+
/**
|
|
88
|
+
* The PDF is password-protected: call `callback(password)`. `retry` is true after a wrong password.
|
|
89
|
+
*/
|
|
90
|
+
(e: 'password-requested', callback: unknown, retry: boolean): void;
|
|
91
|
+
/**
|
|
92
|
+
* Download was clicked. Call `event.preventDefault()` to download it yourself.
|
|
93
|
+
*/
|
|
94
|
+
(e: 'download', download: VcPdfViewerDownload, event: MouseEvent): void;
|
|
95
|
+
}
|
|
96
|
+
export interface VcPdfViewerTitleSlotProps {
|
|
97
|
+
fileName: string;
|
|
98
|
+
}
|
|
99
|
+
export interface VcPdfViewerToolbarSlotProps {
|
|
100
|
+
page: number;
|
|
101
|
+
pageCount: number;
|
|
102
|
+
zoom: number;
|
|
103
|
+
}
|
|
104
|
+
export interface VcPdfViewerErrorSlotProps {
|
|
105
|
+
error: unknown;
|
|
106
|
+
reload: () => Promise<void>;
|
|
107
|
+
}
|
|
108
|
+
export interface VcPdfViewerExposed {
|
|
109
|
+
/**
|
|
110
|
+
* Number of pages; 0 until the document is loaded.
|
|
111
|
+
*/
|
|
112
|
+
readonly pageCount: number;
|
|
113
|
+
/**
|
|
114
|
+
* The page in view, 1-based.
|
|
115
|
+
*/
|
|
116
|
+
readonly currentPage: number;
|
|
117
|
+
/**
|
|
118
|
+
* Scrolls a page into view.
|
|
119
|
+
*/
|
|
120
|
+
goToPage: (page: number) => void;
|
|
121
|
+
nextPage: () => void;
|
|
122
|
+
prevPage: () => void;
|
|
123
|
+
zoomIn: () => void;
|
|
124
|
+
zoomOut: () => void;
|
|
125
|
+
/**
|
|
126
|
+
* Back to the `zoom` the viewer started with.
|
|
127
|
+
*/
|
|
128
|
+
resetZoom: () => void;
|
|
129
|
+
/**
|
|
130
|
+
* Downloads the document (or `downloadUrl`) without emitting `download`.
|
|
131
|
+
*/
|
|
132
|
+
download: () => Promise<void>;
|
|
133
|
+
print: () => Promise<void>;
|
|
134
|
+
/**
|
|
135
|
+
* Loads the document again, e.g. after an error.
|
|
136
|
+
*/
|
|
137
|
+
reload: () => Promise<void>;
|
|
138
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare type ProgressFn = (percentage: number) => string;
|
|
2
|
-
export declare type StatusProgressConfig = Record<
|
|
2
|
+
export declare type StatusProgressConfig = Partial<Record<StatusProgress, string>>;
|
|
3
3
|
export declare type StatusProgress = '' | 'primary' | 'success' | 'warning' | 'error' | 'exception' | 'default';
|
|
4
4
|
export declare type BarStyle = {
|
|
5
5
|
width: string;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import type { TIcon } from './icons.types';
|
|
2
|
+
import type { VcAiTimestamp } from './VcAiChat.types';
|
|
3
|
+
/**
|
|
4
|
+
* Lifecycle of a tool invocation:
|
|
5
|
+
* `pending` (queued) → `awaiting-approval` (waits for the user) → `running` → `success` | `error`;
|
|
6
|
+
* `denied` when the user rejected it.
|
|
7
|
+
*/
|
|
8
|
+
export type VcToolCallStatus = 'pending' | 'awaiting-approval' | 'running' | 'success' | 'error' | 'denied';
|
|
9
|
+
/**
|
|
10
|
+
* How input and output data are shown: `friendly` — VcJsonViewer (its toolbar keeps the raw view reachable), `raw` — JSON in a VcCodeBlock.
|
|
11
|
+
*/
|
|
12
|
+
export type VcToolCallDataView = 'friendly' | 'raw';
|
|
13
|
+
export interface VcToolCallProps {
|
|
14
|
+
/**
|
|
15
|
+
* Machine name of the tool (`run_command`). Shown in monospace under the title and set on the root as `data-tool-name`.
|
|
16
|
+
*/
|
|
17
|
+
name: string;
|
|
18
|
+
/**
|
|
19
|
+
* Human-readable name. Defaults to the humanized `name` ("Run command").
|
|
20
|
+
*/
|
|
21
|
+
title?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Status; sets the icon, the status chip and the root `data-tool-status`.
|
|
24
|
+
*/
|
|
25
|
+
status?: VcToolCallStatus;
|
|
26
|
+
/**
|
|
27
|
+
* Tool icon (a Lucide component, a Lucide name or a `vc-icon-*` class). Defaults to `Wrench`.
|
|
28
|
+
*/
|
|
29
|
+
icon?: TIcon;
|
|
30
|
+
/**
|
|
31
|
+
* Arguments of the call. The Input section is hidden when `undefined`.
|
|
32
|
+
*/
|
|
33
|
+
input?: unknown;
|
|
34
|
+
/**
|
|
35
|
+
* Result of the call. The Result section is hidden when `undefined`. A string that holds JSON is parsed.
|
|
36
|
+
*/
|
|
37
|
+
output?: unknown;
|
|
38
|
+
/**
|
|
39
|
+
* Error message. With `status: 'error'` it is always visible under the header (two lines) and shown in full in the body.
|
|
40
|
+
*/
|
|
41
|
+
errorText?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Whether the details are open (`v-model:open`). Collapsed and uncontrolled by default.
|
|
44
|
+
*/
|
|
45
|
+
open?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Start time; the elapsed time ticks while `running`. Time the call then spends `pending` or `awaiting-approval`
|
|
48
|
+
* (e.g. running → awaiting-approval → running) is not counted.
|
|
49
|
+
*/
|
|
50
|
+
startedAt?: VcAiTimestamp;
|
|
51
|
+
/**
|
|
52
|
+
* Final duration in ms, shown after the status while `running` and after `success` or `error`. No time shows while
|
|
53
|
+
* `pending` or `awaiting-approval`, or when `denied`: the call has not run.
|
|
54
|
+
*/
|
|
55
|
+
durationMs?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Row variant without the card border, with smaller text and a divider between rows (sub-agent steps).
|
|
58
|
+
*/
|
|
59
|
+
compact?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Shows a one-line preview of `input` after the title. Defaults to the value of `compact`.
|
|
62
|
+
*/
|
|
63
|
+
showInputPreview?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* How input and output are shown.
|
|
66
|
+
*/
|
|
67
|
+
dataView?: VcToolCallDataView;
|
|
68
|
+
/**
|
|
69
|
+
* Maximum height of each data section; larger data opens in VcJsonViewer's larger view. A number is px.
|
|
70
|
+
*/
|
|
71
|
+
maxBodyHeight?: string | number;
|
|
72
|
+
/**
|
|
73
|
+
* Overrides the localized texts of the status chip.
|
|
74
|
+
*/
|
|
75
|
+
statusLabels?: Partial<Record<VcToolCallStatus, string>>;
|
|
76
|
+
}
|
|
77
|
+
export interface VcToolCallEmits {
|
|
78
|
+
/**
|
|
79
|
+
* The details were opened or closed (`v-model:open`).
|
|
80
|
+
*/
|
|
81
|
+
(e: 'update:open', open: boolean): void;
|
|
82
|
+
}
|
|
83
|
+
export interface VcToolCallTitleSlotProps {
|
|
84
|
+
name: string;
|
|
85
|
+
title: string;
|
|
86
|
+
}
|
|
87
|
+
export interface VcToolCallStatusSlotProps {
|
|
88
|
+
status: VcToolCallStatus;
|
|
89
|
+
}
|
|
90
|
+
export interface VcToolCallInputSlotProps {
|
|
91
|
+
value: unknown;
|
|
92
|
+
}
|
|
93
|
+
export interface VcToolCallOutputSlotProps {
|
|
94
|
+
value: unknown;
|
|
95
|
+
status: VcToolCallStatus;
|
|
96
|
+
}
|
|
97
|
+
export interface VcToolCallExposed {
|
|
98
|
+
/**
|
|
99
|
+
* Opens or closes the details.
|
|
100
|
+
*/
|
|
101
|
+
toggle: () => void;
|
|
102
|
+
}
|
|
@@ -33,7 +33,6 @@ export * from './VcSwitch.types';
|
|
|
33
33
|
export * from './VcTable.types';
|
|
34
34
|
export * from './VcTabs.types';
|
|
35
35
|
export * from './VcTag.types';
|
|
36
|
-
export * from './VcTagInput.types';
|
|
37
36
|
export * from './VcRTL.types';
|
|
38
37
|
export * from './VcWizard.types';
|
|
39
38
|
export * from './VueGeneric.types';
|
|
@@ -44,12 +43,21 @@ export * from './VcMdEditor.types';
|
|
|
44
43
|
export * from './VcSystemUserPrompt.types';
|
|
45
44
|
export * from './VcSoundPlayer.types';
|
|
46
45
|
export * from './VcSoundPlayerInstance.types';
|
|
46
|
+
export * from './VcJsonViewer.types';
|
|
47
47
|
export * from './VcMessage.types';
|
|
48
48
|
export * from './VcMessagesWrapper.types';
|
|
49
49
|
export * from './VcAvatar.types';
|
|
50
50
|
export * from './VcBadgeTag.types';
|
|
51
51
|
export * from './VcEmojiPicker.types';
|
|
52
52
|
export * from './VcChatComposer.types';
|
|
53
|
+
export * from './VcAiChat.types';
|
|
54
|
+
export * from './VcLightbox.types';
|
|
55
|
+
export * from './VcAiReasoning.types';
|
|
56
|
+
export * from './VcToolCall.types';
|
|
57
|
+
export * from './VcApprovalCard.types';
|
|
58
|
+
export * from './VcAskUserCard.types';
|
|
59
|
+
export * from './VcAgentRun.types';
|
|
60
|
+
export * from './VcPdfViewer.types';
|
|
53
61
|
export * from './Entity.basic.types';
|
|
54
62
|
export * from './Entity.types';
|
|
55
63
|
export * from './Tabs';
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { VcAiTimestamp } from '../types';
|
|
2
|
+
/** Result of `parseJsonLike`: nothing to show, structured data, or plain text. */
|
|
3
|
+
export type VcAiJsonLike = {
|
|
4
|
+
kind: 'empty';
|
|
5
|
+
} | {
|
|
6
|
+
kind: 'json';
|
|
7
|
+
data: unknown;
|
|
8
|
+
} | {
|
|
9
|
+
kind: 'text';
|
|
10
|
+
text: string;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Epoch milliseconds of a timestamp, or `undefined` when it is missing or not a valid date.
|
|
14
|
+
*/
|
|
15
|
+
export declare function toTimestamp(value: VcAiTimestamp | null | undefined): number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* A duration for people: `850ms`, `12.5s`, `4s`, `1m 05s`.
|
|
18
|
+
* Values are rounded down, so a running timer never shows a value it has not reached yet.
|
|
19
|
+
* Negative values count as 0; `NaN` and `Infinity` give an empty string.
|
|
20
|
+
*/
|
|
21
|
+
export declare function formatDuration(ms: number): string;
|
|
22
|
+
/**
|
|
23
|
+
* A machine identifier as a sentence-case title:
|
|
24
|
+
* `run_command` → `Run command`, `getUserById` → `Get user by id`, `list-files` → `List files`.
|
|
25
|
+
*/
|
|
26
|
+
export declare function humanizeIdentifier(identifier: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* A one-line preview of any value: a string as is, anything else as compact JSON.
|
|
29
|
+
* Whitespace runs collapse to one space; a result longer than `max` characters is cut
|
|
30
|
+
* and ends with `…` (the ellipsis counts towards `max`). `undefined` gives an empty string.
|
|
31
|
+
*/
|
|
32
|
+
export declare function previewValue(value: unknown, max?: number): string;
|
|
33
|
+
/**
|
|
34
|
+
* Decides how to show a tool input / output:
|
|
35
|
+
* - `undefined`, `''` or only whitespace → `{ kind: 'empty' }`
|
|
36
|
+
* - a string that starts with `{` or `[` and parses as JSON → `{ kind: 'json', data }` (the parsed value)
|
|
37
|
+
* - any other string → `{ kind: 'text', text }` (unchanged)
|
|
38
|
+
* - anything else, `null` included → `{ kind: 'json', data: value }`
|
|
39
|
+
*/
|
|
40
|
+
export declare function parseJsonLike(value: unknown): VcAiJsonLike;
|
|
41
|
+
/**
|
|
42
|
+
* A count with group separators: `111200` → `111,200`.
|
|
43
|
+
*/
|
|
44
|
+
export declare function formatCount(count: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* A price. Below 1 it keeps up to 4 decimals, so LLM costs stay readable
|
|
47
|
+
* (`$0.0123`, `$0.50`); from 1 it has 2 decimals (`$1.50`). A string is
|
|
48
|
+
* returned as is, so a backend can send a preformatted value.
|
|
49
|
+
*/
|
|
50
|
+
export declare function formatCost(cost: number | string, currency?: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import type { TIcon } from '../types/icons.types';
|
|
3
|
+
/**
|
|
4
|
+
* A Lucide icon in the form Element Plus' icon props take (`suffix-icon`,
|
|
5
|
+
* `clear-icon`, `icon` on el-tree…), drawn through VcIcon so it gets the
|
|
6
|
+
* library's stroke. Element Plus' own arrows differ from Lucide's, and every
|
|
7
|
+
* chevron in the library is Lucide.
|
|
8
|
+
*/
|
|
9
|
+
export declare function toElIcon(icon: TIcon, iconClass?: string): Component;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type AcceptToken = {
|
|
2
|
+
kind: 'extension';
|
|
3
|
+
value: string;
|
|
4
|
+
} | {
|
|
5
|
+
kind: 'mimeGroup';
|
|
6
|
+
value: string;
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'mime';
|
|
9
|
+
value: string;
|
|
10
|
+
} | {
|
|
11
|
+
kind: 'any';
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Splits an `accept` string (`.png, image/*, application/pdf`) into its tokens, lowercased.
|
|
15
|
+
*/
|
|
16
|
+
export declare function parseAccept(accept: string | undefined | null): Array<AcceptToken>;
|
|
17
|
+
/**
|
|
18
|
+
* Whether a file matches `accept`, the way a file input filters its dialog:
|
|
19
|
+
* `.ext` by the end of the name, `type/*` by the MIME group, `type/subtype` exactly; all case-insensitive.
|
|
20
|
+
* An empty `accept` accepts everything. A file whose MIME type is unknown (empty) matches only by extension.
|
|
21
|
+
*/
|
|
22
|
+
export declare function matchesAccept(file: Pick<File, 'name' | 'type'>, accept: string | undefined | null): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Splits files into the ones `accept` lets through and the rest, keeping their order.
|
|
25
|
+
*/
|
|
26
|
+
export declare function partitionByAccept<T extends Pick<File, 'name' | 'type'>>(files: Array<T>, accept: string | undefined | null): {
|
|
27
|
+
accepted: Array<T>;
|
|
28
|
+
rejected: Array<T>;
|
|
29
|
+
};
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Escapes a value for a `{param}` of `tVU.t()`.
|
|
3
|
+
*
|
|
4
|
+
* `tVU.t` fills `{param}` with `String.replace`, which expands `$&`, `$'` and friends in the
|
|
5
|
+
* replacement. Data and user text (file names, search queries, JSON keys, people's names) go
|
|
6
|
+
* through this so they show verbatim.
|
|
7
|
+
*/
|
|
8
|
+
export declare function literalParam(value: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Fewest digits of a run: shorter numbers ("42", "3.5", "13:00") read correctly as they are. */
|
|
2
|
+
export declare const MIN_RUN_DIGITS = 7;
|
|
3
|
+
/**
|
|
4
|
+
* Start and end offsets (end exclusive) of every number run in `text`: an optional leading `+`,
|
|
5
|
+
* then digit groups joined by single spaces, `-`, `.`, `/` or parentheses, with at least
|
|
6
|
+
* `MIN_RUN_DIGITS` digits in all and no separator at either end. Runs that are part of a word
|
|
7
|
+
* with left-to-right letters are left out.
|
|
8
|
+
*/
|
|
9
|
+
export declare function findNumberRuns(text: string): Array<[number, number]>;
|
|
10
|
+
export interface NumberRunSegment {
|
|
11
|
+
text: string;
|
|
12
|
+
/** Offset of the segment in the text, a stable key for rendering. */
|
|
13
|
+
start: number;
|
|
14
|
+
/** The segment is a number run, shown with `dir="ltr"`. */
|
|
15
|
+
ltr: boolean;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* `text` cut into consecutive segments: the number runs (`ltr: true`) and the text between them.
|
|
19
|
+
* Joined together, the segments give `text` back unchanged.
|
|
20
|
+
*/
|
|
21
|
+
export declare function splitNumberRuns(text: string): Array<NumberRunSegment>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function themeColor(token: string, element?: Element | null): string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { globalSingleton } from "./globalSingleton.mjs";
|
|
2
2
|
const counter = globalSingleton("UniqueComponentId", () => ({ lastId: 0 }));
|
|
3
|
-
function
|
|
3
|
+
function UniqueComponentId(prefix = "vc_id_") {
|
|
4
4
|
counter.lastId++;
|
|
5
5
|
return `${prefix}${counter.lastId}`;
|
|
6
6
|
}
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
UniqueComponentId as default
|
|
9
9
|
};
|