@voicenter-team/voicenter-ui-plus 3.4.7 → 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 +457 -11
- 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/VcMessageMeta.css +1 -0
- 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 -0
- 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 +182 -68
- package/library/components/VcChatComposer/richText.mjs +8 -0
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- 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 +41 -12
- package/library/components/VcDatePickerPanel/VcDatePickerPanel.vue.mjs +49 -32
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- 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 +8 -6
- package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +8 -4
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +2 -1
- package/library/components/VcExcelUploader/VcFileImportResultBindData.vue.mjs +1 -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/VcForm/VcForm.vue.mjs +1 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditor.vue.mjs +4 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +20 -32
- 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 +5 -3
- 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 +38 -13
- package/library/components/VcMdEditor/VcMdEditorContent.vue.mjs +10 -0
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +7 -7
- 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 +109 -51
- package/library/components/VcMessage/VcMessageMeta.vue.mjs +49 -0
- package/library/components/VcMessage/VcMessageMeta.vue3.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageAudioBlock.vue.mjs +3 -9
- package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +99 -14
- package/library/components/VcMessage/content/VcMessageImageBlock.vue.mjs +1 -1
- 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/VcMessageVideoBlock.vue.mjs +60 -0
- package/library/components/VcMessage/content/VcMessageVideoBlock.vue3.mjs +5 -0
- package/library/components/VcMessage/content/formatDuration.mjs +10 -0
- package/library/components/VcMessage/content/markdownPreview.mjs +32 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +11 -6
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +261 -89
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +103 -0
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue2.mjs +4 -0
- 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/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +13 -7
- package/library/components/VcSelect/VcSelect.vue.mjs +19 -20
- 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/VcSlider/VcSlider.vue.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/locales/en.json.mjs +179 -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 +177 -121
- package/library/style.css.br +0 -0
- package/library/style.css.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 +68 -13
- 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 +7 -7
- 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 +43 -4
- package/library/types/components/VcMessage/VcMessageMeta.vue.d.ts +24 -0
- 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/VcMessageVideoBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/formatDuration.d.ts +4 -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 -66
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +96 -0
- 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/VcConfirmModal.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 +179 -1
- 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 +89 -2
- 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 +88 -5
- package/library/types/types/VcMessagesWrapper.types.d.ts +129 -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/numberRuns.mjs +63 -0
- package/library/utils/themeColor.mjs +9 -0
- package/package.json +10 -9
- 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 +59 -75
- package/library/types/types/VcTagInput.types.d.ts +0 -1
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{date-picker.css → tooltip.css} +0 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import '../../assets/components/VcButton/VcButton.css';
|
|
2
2
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createBlock, createCommentVNode, createVNode } from "vue";
|
|
3
|
+
import { Loader } from "@lucide/vue";
|
|
3
4
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
4
5
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
5
6
|
const _hoisted_1 = ["disabled", "aria-disabled", "type", "data-test"];
|
|
6
7
|
const _hoisted_2 = { class: "vc-button--content" };
|
|
7
8
|
const _hoisted_3 = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "vc-button__label"
|
|
11
|
+
};
|
|
12
|
+
const _hoisted_4 = {
|
|
8
13
|
key: 0,
|
|
9
14
|
class: "vc-button--loader"
|
|
10
15
|
};
|
|
@@ -18,7 +23,6 @@ const CLASS_FOR_LOADING = "is--loading";
|
|
|
18
23
|
const DEFAULT_SIZE = "middle";
|
|
19
24
|
const DEFAULT_TYPE = "default";
|
|
20
25
|
const DEFAULT_COLOR = "primary";
|
|
21
|
-
const DEFAULT_LOAD_ICON = "loader";
|
|
22
26
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
27
|
__name: "VcButton",
|
|
24
28
|
props: {
|
|
@@ -26,7 +30,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
26
30
|
loading: { type: Boolean, default: false },
|
|
27
31
|
block: { type: Boolean, default: false },
|
|
28
32
|
dataTestName: { default: "vc-button" },
|
|
29
|
-
loaderIcon: { default:
|
|
33
|
+
loaderIcon: { default: () => Loader },
|
|
30
34
|
size: { default: DEFAULT_SIZE },
|
|
31
35
|
type: { default: DEFAULT_TYPE },
|
|
32
36
|
icon: { default: "" },
|
|
@@ -78,9 +82,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
82
|
class: "content-icon"
|
|
79
83
|
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
80
84
|
]),
|
|
81
|
-
|
|
85
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
86
|
+
renderSlot(_ctx.$slots, "default")
|
|
87
|
+
])) : createCommentVNode("", true)
|
|
82
88
|
]),
|
|
83
|
-
__props.loading ? (openBlock(), createElementBlock("span",
|
|
89
|
+
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
84
90
|
renderSlot(_ctx.$slots, "loader", {}, () => [
|
|
85
91
|
createVNode(_sfc_main$1, {
|
|
86
92
|
icon: __props.loaderIcon,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import '../../assets/components/VcButton/VcButtonIcon.css';
|
|
2
2
|
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, createVNode } from "vue";
|
|
3
|
+
import { Loader, Settings } from "@lucide/vue";
|
|
3
4
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
4
5
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
5
6
|
const _hoisted_1 = ["disabled", "aria-disabled", "type", "data-test"];
|
|
6
7
|
const _hoisted_2 = { class: "vc-button--content" };
|
|
7
8
|
const DEFAULT_TYPE = "default";
|
|
8
9
|
const DEFAULT_COLOR = "primary";
|
|
9
|
-
const DEFAULT_ICON = "vc-icon-settings";
|
|
10
|
-
const LOADING_ICON = "loader";
|
|
11
10
|
const CLASS_DISABLED = "is--disabled";
|
|
12
11
|
const CLASS_ANIMATION = "is--animate";
|
|
13
12
|
const CLASS_LOADING = "is--loading";
|
|
@@ -24,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
23
|
props: {
|
|
25
24
|
type: { default: DEFAULT_TYPE },
|
|
26
25
|
color: { default: DEFAULT_COLOR },
|
|
27
|
-
icon: { default:
|
|
26
|
+
icon: { default: () => Settings },
|
|
28
27
|
dataTestName: { default: "vc-button" },
|
|
29
28
|
animate: { type: Boolean, default: false },
|
|
30
29
|
disabled: { type: Boolean, default: false },
|
|
@@ -36,7 +35,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
35
|
filled: { type: Boolean },
|
|
37
36
|
filledColor: { default: "light" },
|
|
38
37
|
loading: { type: Boolean },
|
|
39
|
-
loadingIcon: { default:
|
|
38
|
+
loadingIcon: { default: () => Loader }
|
|
40
39
|
},
|
|
41
40
|
emits: ["click"],
|
|
42
41
|
setup(__props, { emit: __emit }) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import '../../assets/components/VcButton/VcToggleButton.css';
|
|
2
|
-
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, renderSlot, createBlock, createCommentVNode, toDisplayString } from "vue";
|
|
2
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createVNode, unref, renderSlot, createBlock, createCommentVNode, toDisplayString } from "vue";
|
|
3
|
+
import { Loader } from "@lucide/vue";
|
|
3
4
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
4
5
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
5
6
|
const _hoisted_1 = ["tabindex", "disabled", "aria-pressed", "data-p-checked", "data-p-disabled", "data-test"];
|
|
6
7
|
const _hoisted_2 = { class: "vc-toggle-button__content" };
|
|
7
8
|
const _hoisted_3 = {
|
|
8
9
|
key: 0,
|
|
9
|
-
class: "flex-center"
|
|
10
|
+
class: "flex-center vc-toggle-button__loader"
|
|
10
11
|
};
|
|
11
12
|
const _hoisted_4 = { class: "vc-toggle-button__label" };
|
|
12
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -73,9 +74,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
createElementVNode("span", _hoisted_2, [
|
|
74
75
|
__props.loading ? (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
75
76
|
createVNode(_sfc_main$1, {
|
|
76
|
-
icon:
|
|
77
|
+
icon: unref(Loader),
|
|
77
78
|
loading: ""
|
|
78
|
-
})
|
|
79
|
+
}, null, 8, ["icon"])
|
|
79
80
|
])) : renderSlot(_ctx.$slots, "default", {
|
|
80
81
|
key: 1,
|
|
81
82
|
value: __props.modelValue
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../../assets/components/VcChatComposer/VcChatComposer.css';
|
|
2
|
-
import { defineComponent, reactive, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, withModifiers, normalizeClass, createVNode, unref, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, withDirectives, Teleport, vShow, createTextVNode, withCtx } from "vue";
|
|
2
|
+
import { defineComponent, reactive, ref, computed, watch, onBeforeUnmount, openBlock, createElementBlock, withModifiers, normalizeClass, createVNode, unref, createElementVNode, toDisplayString, createCommentVNode, renderSlot, Fragment, renderList, createBlock, withDirectives, Teleport, vShow, createTextVNode, withCtx } from "vue";
|
|
3
|
+
import { useFileDialog } from "@vueuse/core";
|
|
3
4
|
import { Extension, useEditor, EditorContent } from "@tiptap/vue-3";
|
|
4
5
|
import Document from "@tiptap/extension-document";
|
|
5
6
|
import Paragraph from "@tiptap/extension-paragraph";
|
|
@@ -28,6 +29,9 @@ import _sfc_main$4 from "../VcSoundplayer/VcSoundPlayer.vue.mjs";
|
|
|
28
29
|
import useFileUploader from "../../composables/input/useFileUploader.mjs";
|
|
29
30
|
import useAudioRecorder from "../../composables/useAudioRecorder.mjs";
|
|
30
31
|
import { tVU } from "../../localization/index.mjs";
|
|
32
|
+
import { partitionByAccept } from "../../utils/fileAccept.mjs";
|
|
33
|
+
import { getFileSize } from "../../utils/helpers.mjs";
|
|
34
|
+
import { literalParam } from "../../utils/i18nParams.mjs";
|
|
31
35
|
import { resolveFormat, richTextToDoc, docToRichText } from "./richText.mjs";
|
|
32
36
|
const _hoisted_1 = {
|
|
33
37
|
key: 0,
|
|
@@ -40,26 +44,35 @@ const _hoisted_3 = {
|
|
|
40
44
|
};
|
|
41
45
|
const _hoisted_4 = {
|
|
42
46
|
key: 1,
|
|
43
|
-
class: "vc-chat-
|
|
47
|
+
class: "vc-chat-composer__header"
|
|
44
48
|
};
|
|
45
49
|
const _hoisted_5 = {
|
|
46
50
|
key: 2,
|
|
47
|
-
class: "vc-chat-
|
|
51
|
+
class: "vc-chat-composer__attachments"
|
|
48
52
|
};
|
|
49
|
-
const _hoisted_6 = {
|
|
50
|
-
const _hoisted_7 = {
|
|
53
|
+
const _hoisted_6 = {
|
|
51
54
|
key: 3,
|
|
55
|
+
class: "vc-chat-composer__recording"
|
|
56
|
+
};
|
|
57
|
+
const _hoisted_7 = { class: "vc-chat-composer__recording-time" };
|
|
58
|
+
const _hoisted_8 = {
|
|
59
|
+
key: 4,
|
|
52
60
|
class: "vc-chat-composer__voice"
|
|
53
61
|
};
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
|
|
62
|
+
const _hoisted_9 = { class: "vc-chat-composer__editor-wrapper" };
|
|
63
|
+
const _hoisted_10 = ["aria-selected", "onMousedown"];
|
|
64
|
+
const _hoisted_11 = { class: "vc-chat-composer__toolbar" };
|
|
65
|
+
const _hoisted_12 = { class: "vc-chat-composer__actions" };
|
|
66
|
+
const _hoisted_13 = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: "vc-chat-composer__hint",
|
|
69
|
+
"data-test": "chat-composer-hint"
|
|
70
|
+
};
|
|
60
71
|
const _hoisted_14 = {
|
|
61
|
-
key:
|
|
62
|
-
class: "vc-chat-composer__error"
|
|
72
|
+
key: 5,
|
|
73
|
+
class: "vc-chat-composer__error",
|
|
74
|
+
role: "alert",
|
|
75
|
+
"data-test": "chat-composer-error"
|
|
63
76
|
};
|
|
64
77
|
const MAX_MENTION_SUGGESTIONS = 8;
|
|
65
78
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -79,9 +92,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
92
|
dropHintText: { default: void 0 },
|
|
80
93
|
recentEmojis: { default: () => [] },
|
|
81
94
|
enableVoice: { type: Boolean, default: true },
|
|
82
|
-
clearOnSend: { type: Boolean, default: true }
|
|
95
|
+
clearOnSend: { type: Boolean, default: true },
|
|
96
|
+
streaming: { type: Boolean, default: false },
|
|
97
|
+
enableEmoji: { type: Boolean, default: true },
|
|
98
|
+
enableAttachments: { type: Boolean, default: true },
|
|
99
|
+
showSendHint: { type: Boolean, default: true }
|
|
83
100
|
},
|
|
84
|
-
emits: ["update:modelValue", "update:attachments", "send", "retry", "emoji-select"],
|
|
101
|
+
emits: ["update:modelValue", "update:attachments", "send", "retry", "emoji-select", "stop", "attachment-click", "focus", "blur"],
|
|
85
102
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
86
103
|
const FORMAT_EXTENSIONS = {
|
|
87
104
|
bold: Bold,
|
|
@@ -102,9 +119,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
102
119
|
let unmountMentionList;
|
|
103
120
|
const hasText = ref(!!resolveFormat(props.format).parse(props.modelValue).text.trim());
|
|
104
121
|
let lastEmittedValue = "";
|
|
105
|
-
const fileInputRef = ref();
|
|
106
122
|
const isDragOver = ref(false);
|
|
107
123
|
let dragDepth = 0;
|
|
124
|
+
const rejectedText = ref("");
|
|
108
125
|
const recorder = useAudioRecorder();
|
|
109
126
|
const uploaderProps = {
|
|
110
127
|
get files() {
|
|
@@ -140,6 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
140
157
|
const dropText = computed(() => tVU.t("voicenterUi.chatComposer.dropFiles"));
|
|
141
158
|
const cancelText = computed(() => tVU.t("voicenterUi.general.cancel"));
|
|
142
159
|
const deleteText = computed(() => tVU.t("voicenterUi.general.delete"));
|
|
160
|
+
const stopButtonText = computed(() => tVU.t("voicenterUi.chatComposer.stop"));
|
|
161
|
+
const stopGeneratingText = computed(() => tVU.t("voicenterUi.chatComposer.stopGenerating"));
|
|
143
162
|
const valueFormat = computed(() => resolveFormat(props.format));
|
|
144
163
|
const recordingTime = computed(() => {
|
|
145
164
|
const seconds = recorder.duration.value;
|
|
@@ -149,11 +168,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
149
168
|
if (recorder.error.value) {
|
|
150
169
|
return tVU.t("voicenterUi.chatComposer.microphoneError");
|
|
151
170
|
}
|
|
152
|
-
return errorText.value;
|
|
171
|
+
return rejectedText.value || errorText.value;
|
|
153
172
|
});
|
|
154
173
|
const isUploading = computed(() => props.attachments.some((item) => item.status));
|
|
155
174
|
const canSend = computed(() => {
|
|
156
|
-
if (props.disabled || isUploading.value || recorder.state.value === "recording") {
|
|
175
|
+
if (props.disabled || props.streaming || isUploading.value || recorder.state.value === "recording") {
|
|
157
176
|
return false;
|
|
158
177
|
}
|
|
159
178
|
return hasText.value || props.attachments.length > 0 || recorder.state.value === "recorded";
|
|
@@ -196,28 +215,78 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
196
215
|
emit("emoji-select", emoji);
|
|
197
216
|
(_a = editor.value) == null ? void 0 : _a.chain().focus().insertContent(emoji).run();
|
|
198
217
|
}
|
|
218
|
+
const fileDialog = useFileDialog();
|
|
219
|
+
fileDialog.onChange((files) => {
|
|
220
|
+
if (files) {
|
|
221
|
+
addFiles(Array.from(files));
|
|
222
|
+
}
|
|
223
|
+
});
|
|
199
224
|
function openFileDialog() {
|
|
200
|
-
if (
|
|
225
|
+
if (props.disabled || !props.enableAttachments) {
|
|
201
226
|
return;
|
|
202
227
|
}
|
|
203
|
-
|
|
228
|
+
fileDialog.open({
|
|
229
|
+
accept: props.accept ?? "",
|
|
230
|
+
multiple: true,
|
|
231
|
+
reset: true
|
|
232
|
+
});
|
|
204
233
|
}
|
|
205
234
|
function addFiles(files) {
|
|
206
|
-
if (props.disabled || !files.length) {
|
|
235
|
+
if (props.disabled || !props.enableAttachments || !files.length) {
|
|
207
236
|
return;
|
|
208
237
|
}
|
|
209
|
-
|
|
238
|
+
const { accepted, rejected } = partitionByAccept(files, props.accept);
|
|
239
|
+
const messages = [];
|
|
240
|
+
if (rejected.length) {
|
|
241
|
+
messages.push(tVU.t("voicenterUi.chatComposer.unsupportedFile", { name: literalParam(rejected.map((file) => file.name).join(", ")) }));
|
|
242
|
+
}
|
|
243
|
+
let candidates = accepted;
|
|
244
|
+
const fileSizeLimit = props.fileSizeLimit;
|
|
245
|
+
if (fileSizeLimit && candidates.some((file) => file.size > fileSizeLimit)) {
|
|
246
|
+
messages.push(tVU.t("voicenterUi.uploader.some.files.were.concat.size.limit"));
|
|
247
|
+
candidates = candidates.filter((file) => file.size <= fileSizeLimit);
|
|
248
|
+
}
|
|
249
|
+
const fileListSizeLimit = props.fileListSizeLimit;
|
|
250
|
+
if (fileListSizeLimit) {
|
|
251
|
+
let total = props.attachments.reduce((sum, file) => sum + file.size, 0);
|
|
252
|
+
const fitting = candidates.filter((file) => {
|
|
253
|
+
if (total + file.size > fileListSizeLimit) {
|
|
254
|
+
return false;
|
|
255
|
+
}
|
|
256
|
+
total += file.size;
|
|
257
|
+
return true;
|
|
258
|
+
});
|
|
259
|
+
if (fitting.length < candidates.length) {
|
|
260
|
+
const size = getFileSize(fileListSizeLimit);
|
|
261
|
+
messages.push(tVU.t("voicenterUi.uploader.file.size.sum.should.not.exceed", {
|
|
262
|
+
value: Array.isArray(size) ? size[0] ?? "" : size,
|
|
263
|
+
measure: Array.isArray(size) ? size[1] ?? "" : ""
|
|
264
|
+
}));
|
|
265
|
+
}
|
|
266
|
+
candidates = fitting;
|
|
267
|
+
}
|
|
268
|
+
rejectedText.value = messages.join(" ");
|
|
269
|
+
if (candidates.length) {
|
|
270
|
+
processFiles([...props.attachments, ...candidates]);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
function onRemove(id) {
|
|
274
|
+
rejectedText.value = "";
|
|
275
|
+
onTagClose(id);
|
|
210
276
|
}
|
|
211
|
-
function
|
|
277
|
+
function onPaste(event) {
|
|
212
278
|
var _a;
|
|
213
|
-
|
|
214
|
-
if (
|
|
215
|
-
|
|
279
|
+
const files = Array.from(((_a = event.clipboardData) == null ? void 0 : _a.files) ?? []);
|
|
280
|
+
if (!props.enableAttachments || props.disabled || !files.length) {
|
|
281
|
+
return false;
|
|
216
282
|
}
|
|
283
|
+
event.preventDefault();
|
|
284
|
+
addFiles(files);
|
|
285
|
+
return true;
|
|
217
286
|
}
|
|
218
287
|
function onDragEnter(event) {
|
|
219
288
|
var _a;
|
|
220
|
-
if (props.disabled || !((_a = event.dataTransfer) == null ? void 0 : _a.types.includes("Files"))) {
|
|
289
|
+
if (props.disabled || !props.enableAttachments || !((_a = event.dataTransfer) == null ? void 0 : _a.types.includes("Files"))) {
|
|
221
290
|
return;
|
|
222
291
|
}
|
|
223
292
|
dragDepth++;
|
|
@@ -233,7 +302,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
233
302
|
var _a;
|
|
234
303
|
dragDepth = 0;
|
|
235
304
|
isDragOver.value = false;
|
|
236
|
-
|
|
305
|
+
if (props.enableAttachments) {
|
|
306
|
+
addFiles(Array.from(((_a = event.dataTransfer) == null ? void 0 : _a.files) ?? []));
|
|
307
|
+
}
|
|
237
308
|
}
|
|
238
309
|
function startRecording() {
|
|
239
310
|
if (!recorder || props.disabled) {
|
|
@@ -259,6 +330,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
259
330
|
}
|
|
260
331
|
recorder.reset();
|
|
261
332
|
}
|
|
333
|
+
function clear() {
|
|
334
|
+
var _a;
|
|
335
|
+
(_a = editor.value) == null ? void 0 : _a.chain().clearContent(true).unsetAllMarks().run();
|
|
336
|
+
rejectedText.value = "";
|
|
337
|
+
if (props.attachments.length) {
|
|
338
|
+
emit("update:attachments", []);
|
|
339
|
+
}
|
|
340
|
+
deleteRecording();
|
|
341
|
+
}
|
|
262
342
|
function send() {
|
|
263
343
|
if (!canSend.value || !editor.value) {
|
|
264
344
|
return;
|
|
@@ -271,9 +351,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
271
351
|
voice: recorder.blob.value
|
|
272
352
|
});
|
|
273
353
|
if (props.clearOnSend) {
|
|
274
|
-
|
|
275
|
-
emit("update:attachments", []);
|
|
276
|
-
deleteRecording();
|
|
354
|
+
clear();
|
|
277
355
|
}
|
|
278
356
|
}
|
|
279
357
|
const SendOnEnter = Extension.create({
|
|
@@ -286,7 +364,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286
364
|
if (mention.isOpen || this.editor.view.composing) {
|
|
287
365
|
return false;
|
|
288
366
|
}
|
|
289
|
-
|
|
367
|
+
if (!props.streaming) {
|
|
368
|
+
send();
|
|
369
|
+
}
|
|
290
370
|
return true;
|
|
291
371
|
},
|
|
292
372
|
"Shift-Enter": () => this.editor.commands.splitBlock()
|
|
@@ -295,6 +375,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
295
375
|
});
|
|
296
376
|
const editor = useEditor({
|
|
297
377
|
editable: !props.disabled,
|
|
378
|
+
editorProps: {
|
|
379
|
+
handlePaste: (_view, event) => onPaste(event)
|
|
380
|
+
},
|
|
298
381
|
content: richTextToDoc(valueFormat.value.parse(props.modelValue)),
|
|
299
382
|
extensions: [
|
|
300
383
|
Document,
|
|
@@ -302,7 +385,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
302
385
|
Text,
|
|
303
386
|
UndoRedo,
|
|
304
387
|
Placeholder.configure({ placeholder: () => placeholderText.value }),
|
|
305
|
-
|
|
388
|
+
// Plain text cannot keep formatting: no format extensions, so typed markers stay text.
|
|
389
|
+
...(props.format === "text" ? [] : props.formats).map((format) => FORMAT_EXTENSIONS[format]),
|
|
306
390
|
Mention.configure({
|
|
307
391
|
HTMLAttributes: { class: "vc-chat-composer__mention" },
|
|
308
392
|
suggestion: {
|
|
@@ -359,6 +443,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
359
443
|
}),
|
|
360
444
|
SendOnEnter
|
|
361
445
|
],
|
|
446
|
+
onFocus: () => emit("focus"),
|
|
447
|
+
onBlur: () => emit("blur"),
|
|
362
448
|
onUpdate: () => {
|
|
363
449
|
const richText = getRichText();
|
|
364
450
|
hasText.value = !!richText.text.trim();
|
|
@@ -395,13 +481,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
395
481
|
focus: () => {
|
|
396
482
|
var _a;
|
|
397
483
|
return (_a = editor.value) == null ? void 0 : _a.commands.focus();
|
|
398
|
-
}
|
|
484
|
+
},
|
|
485
|
+
addFiles,
|
|
486
|
+
clear
|
|
399
487
|
});
|
|
400
488
|
return (_ctx, _cache) => {
|
|
401
489
|
return openBlock(), createElementBlock("div", {
|
|
402
|
-
class: normalizeClass([{ "is--disabled": __props.disabled, "is--drag": isDragOver.value }, "vc-chat-composer"]),
|
|
490
|
+
class: normalizeClass([{ "is--disabled": __props.disabled, "is--drag": isDragOver.value, "is--streaming": __props.streaming }, "vc-chat-composer"]),
|
|
491
|
+
"data-test": "chat-composer",
|
|
403
492
|
onDragenter: withModifiers(onDragEnter, ["prevent"]),
|
|
404
|
-
onDragover: _cache[
|
|
493
|
+
onDragover: _cache[1] || (_cache[1] = withModifiers(() => {
|
|
405
494
|
}, ["prevent"])),
|
|
406
495
|
onDragleave: onDragLeave,
|
|
407
496
|
onDrop: withModifiers(onDrop, ["prevent"])
|
|
@@ -414,22 +503,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
414
503
|
createElementVNode("span", _hoisted_2, toDisplayString(dropText.value), 1),
|
|
415
504
|
__props.dropHintText ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.dropHintText), 1)) : createCommentVNode("", true)
|
|
416
505
|
])) : createCommentVNode("", true),
|
|
417
|
-
|
|
506
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
507
|
+
renderSlot(_ctx.$slots, "header")
|
|
508
|
+
])) : createCommentVNode("", true),
|
|
509
|
+
__props.attachments.length ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
418
510
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.attachments, (item) => {
|
|
419
511
|
return openBlock(), createBlock(_sfc_main$2, {
|
|
420
512
|
key: item.id ?? item.name,
|
|
421
513
|
file: item,
|
|
422
514
|
status: item.status,
|
|
423
515
|
progress: item.progress,
|
|
516
|
+
"error-text": item.error,
|
|
424
517
|
disabled: __props.disabled,
|
|
425
|
-
onRemove: ($event) =>
|
|
426
|
-
onRetry: ($event) => emit("retry", item)
|
|
427
|
-
|
|
518
|
+
onRemove: ($event) => onRemove(item.id),
|
|
519
|
+
onRetry: ($event) => emit("retry", item),
|
|
520
|
+
onPreview: ($event) => emit("attachment-click", item)
|
|
521
|
+
}, null, 8, ["file", "status", "progress", "error-text", "disabled", "onRemove", "onRetry", "onPreview"]);
|
|
428
522
|
}), 128))
|
|
429
523
|
])) : createCommentVNode("", true),
|
|
430
|
-
unref(recorder).state.value === "recording" ? (openBlock(), createElementBlock("div",
|
|
431
|
-
_cache[
|
|
432
|
-
createElementVNode("span",
|
|
524
|
+
unref(recorder).state.value === "recording" ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
525
|
+
_cache[2] || (_cache[2] = createElementVNode("span", { class: "vc-chat-composer__recording-dot" }, null, -1)),
|
|
526
|
+
createElementVNode("span", _hoisted_7, toDisplayString(recordingTime.value), 1),
|
|
433
527
|
createVNode(_sfc_main$3, {
|
|
434
528
|
icon: unref(Trash2),
|
|
435
529
|
title: cancelText.value,
|
|
@@ -444,7 +538,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
444
538
|
color: "primary",
|
|
445
539
|
onClick: stopRecording
|
|
446
540
|
}, null, 8, ["icon", "title", "aria-label"])
|
|
447
|
-
])) : unref(recorder).state.value === "recorded" && unref(recorder).url.value ? (openBlock(), createElementBlock("div",
|
|
541
|
+
])) : unref(recorder).state.value === "recorded" && unref(recorder).url.value ? (openBlock(), createElementBlock("div", _hoisted_8, [
|
|
448
542
|
createVNode(_sfc_main$4, {
|
|
449
543
|
src: unref(recorder).url.value,
|
|
450
544
|
size: "sm",
|
|
@@ -458,7 +552,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
458
552
|
onClick: deleteRecording
|
|
459
553
|
}, null, 8, ["icon", "title", "aria-label"])
|
|
460
554
|
])) : createCommentVNode("", true),
|
|
461
|
-
withDirectives(createElementVNode("div",
|
|
555
|
+
withDirectives(createElementVNode("div", _hoisted_9, [
|
|
462
556
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
463
557
|
mention.isOpen && mention.items.length ? (openBlock(), createElementBlock("ul", {
|
|
464
558
|
key: 0,
|
|
@@ -482,7 +576,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
482
576
|
size: "sm"
|
|
483
577
|
}, null, 8, ["src", "initials", "alt"]),
|
|
484
578
|
createElementVNode("span", null, toDisplayString(user.name), 1)
|
|
485
|
-
], 42,
|
|
579
|
+
], 42, _hoisted_10);
|
|
486
580
|
}), 128))
|
|
487
581
|
], 512)) : createCommentVNode("", true)
|
|
488
582
|
])),
|
|
@@ -493,56 +587,76 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
493
587
|
], 512), [
|
|
494
588
|
[vShow, unref(recorder).state.value === "idle"]
|
|
495
589
|
]),
|
|
496
|
-
createElementVNode("div",
|
|
497
|
-
createElementVNode("div",
|
|
498
|
-
|
|
590
|
+
createElementVNode("div", _hoisted_11, [
|
|
591
|
+
createElementVNode("div", _hoisted_12, [
|
|
592
|
+
__props.enableAttachments ? (openBlock(), createBlock(_sfc_main$3, {
|
|
593
|
+
key: 0,
|
|
499
594
|
icon: unref(Paperclip),
|
|
500
595
|
disabled: __props.disabled,
|
|
501
596
|
title: attachText.value,
|
|
502
597
|
"aria-label": attachText.value,
|
|
503
598
|
color: "secondary",
|
|
599
|
+
"data-test-name": "chat-composer-attach",
|
|
504
600
|
onClick: openFileDialog
|
|
505
|
-
}, null, 8, ["icon", "disabled", "title", "aria-label"]),
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
ref: fileInputRef,
|
|
509
|
-
accept: __props.accept,
|
|
510
|
-
type: "file",
|
|
511
|
-
multiple: "",
|
|
512
|
-
class: "vc-chat-composer__file-input",
|
|
513
|
-
onChange: onFileInputChange
|
|
514
|
-
}, null, 40, _hoisted_12),
|
|
515
|
-
createVNode(_sfc_main$6, {
|
|
601
|
+
}, null, 8, ["icon", "disabled", "title", "aria-label"])) : createCommentVNode("", true),
|
|
602
|
+
__props.enableEmoji ? (openBlock(), createBlock(_sfc_main$6, {
|
|
603
|
+
key: 1,
|
|
516
604
|
"recent-emojis": __props.recentEmojis,
|
|
517
605
|
disabled: __props.disabled,
|
|
518
606
|
onSelect: insertEmoji
|
|
519
|
-
}, null, 8, ["recent-emojis", "disabled"]),
|
|
607
|
+
}, null, 8, ["recent-emojis", "disabled"])) : createCommentVNode("", true),
|
|
520
608
|
__props.enableVoice && unref(recorder).isSupported.value ? (openBlock(), createBlock(_sfc_main$3, {
|
|
521
|
-
key:
|
|
609
|
+
key: 2,
|
|
522
610
|
icon: unref(Mic),
|
|
523
611
|
disabled: __props.disabled || unref(recorder).state.value !== "idle",
|
|
524
612
|
title: recordText.value,
|
|
525
613
|
"aria-label": recordText.value,
|
|
526
614
|
color: "secondary",
|
|
527
615
|
onClick: startRecording
|
|
528
|
-
}, null, 8, ["icon", "disabled", "title", "aria-label"])) : createCommentVNode("", true)
|
|
616
|
+
}, null, 8, ["icon", "disabled", "title", "aria-label"])) : createCommentVNode("", true),
|
|
617
|
+
renderSlot(_ctx.$slots, "toolbar-start", {
|
|
618
|
+
disabled: __props.disabled,
|
|
619
|
+
streaming: __props.streaming
|
|
620
|
+
})
|
|
529
621
|
]),
|
|
530
|
-
|
|
622
|
+
__props.showSendHint ? (openBlock(), createElementBlock("span", _hoisted_13, [
|
|
531
623
|
createTextVNode(toDisplayString(pressText.value) + " ", 1),
|
|
532
|
-
_cache[
|
|
624
|
+
_cache[3] || (_cache[3] = createElementVNode("kbd", { class: "vc-chat-composer__kbd" }, "Enter", -1)),
|
|
533
625
|
createTextVNode(" " + toDisplayString(toSendText.value), 1)
|
|
534
|
-
]),
|
|
535
|
-
|
|
626
|
+
])) : createCommentVNode("", true),
|
|
627
|
+
renderSlot(_ctx.$slots, "toolbar-end", {
|
|
628
|
+
disabled: __props.disabled,
|
|
629
|
+
streaming: __props.streaming,
|
|
630
|
+
canSend: canSend.value
|
|
631
|
+
}),
|
|
632
|
+
__props.streaming ? (openBlock(), createBlock(_sfc_main$7, {
|
|
633
|
+
key: 1,
|
|
634
|
+
icon: unref(Square),
|
|
635
|
+
"aria-label": stopGeneratingText.value,
|
|
636
|
+
title: stopGeneratingText.value,
|
|
637
|
+
color: "secondary",
|
|
638
|
+
type: "outline",
|
|
639
|
+
"data-test-name": "chat-composer-stop",
|
|
640
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("stop"))
|
|
641
|
+
}, {
|
|
642
|
+
default: withCtx(() => [
|
|
643
|
+
createTextVNode(toDisplayString(stopButtonText.value), 1)
|
|
644
|
+
]),
|
|
645
|
+
_: 1
|
|
646
|
+
}, 8, ["icon", "aria-label", "title"])) : (openBlock(), createBlock(_sfc_main$7, {
|
|
647
|
+
key: 2,
|
|
536
648
|
icon: unref(SendHorizontal),
|
|
537
649
|
disabled: !canSend.value,
|
|
538
650
|
color: "primary",
|
|
651
|
+
class: "vc-chat-composer__send",
|
|
652
|
+
"data-test-name": "chat-composer-send",
|
|
539
653
|
onClick: send
|
|
540
654
|
}, {
|
|
541
655
|
default: withCtx(() => [
|
|
542
656
|
createTextVNode(toDisplayString(sendText.value), 1)
|
|
543
657
|
]),
|
|
544
658
|
_: 1
|
|
545
|
-
}, 8, ["icon", "disabled"])
|
|
659
|
+
}, 8, ["icon", "disabled"]))
|
|
546
660
|
]),
|
|
547
661
|
errorMessage.value ? (openBlock(), createElementBlock("div", _hoisted_14, toDisplayString(errorMessage.value), 1)) : createCommentVNode("", true)
|
|
548
662
|
], 34);
|
|
@@ -81,6 +81,13 @@ const entitiesFormat = {
|
|
|
81
81
|
},
|
|
82
82
|
serialize: (richText) => richText
|
|
83
83
|
};
|
|
84
|
+
const textFormat = {
|
|
85
|
+
parse: (value) => ({
|
|
86
|
+
text: typeof value === "string" ? value : "",
|
|
87
|
+
entities: []
|
|
88
|
+
}),
|
|
89
|
+
serialize: (richText) => richText.text
|
|
90
|
+
};
|
|
84
91
|
const MARKDOWN_MARKERS = {
|
|
85
92
|
bold: "**",
|
|
86
93
|
italic: "*",
|
|
@@ -235,6 +242,7 @@ const htmlFormat = {
|
|
|
235
242
|
)
|
|
236
243
|
};
|
|
237
244
|
const BUILT_IN_FORMATS = {
|
|
245
|
+
text: textFormat,
|
|
238
246
|
entities: entitiesFormat,
|
|
239
247
|
markdown: markdownFormat,
|
|
240
248
|
html: htmlFormat
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, toRef, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { ElCheckbox } from "element-plus";
|
|
3
|
-
import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/
|
|
3
|
+
import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.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-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
4
4
|
import '../../assets/components/VcCheckbox/VcCheckbox.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, toRef, openBlock, createBlock, unref, normalizeClass, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { ElCheckboxButton } from "element-plus";
|
|
3
|
-
import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/
|
|
3
|
+
import '../../assets/node_modules/element-plus/theme-chalk/src/popover.css';import '../../assets/node_modules/element-plus/theme-chalk/src/transfer.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tree.css';import '../../assets/node_modules/element-plus/theme-chalk/src/text.css';import '../../assets/node_modules/element-plus/theme-chalk/src/slider.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker.css';import '../../assets/node_modules/element-plus/theme-chalk/src/color-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/select.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option-group.css';import '../../assets/node_modules/element-plus/theme-chalk/src/option.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tag.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-number.css';import '../../assets/node_modules/element-plus/theme-chalk/src/input.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form-item.css';import '../../assets/node_modules/element-plus/theme-chalk/src/form.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
4
4
|
import '../../assets/components/VcCheckbox/VcCheckboxButton.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|