@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,8 +1,11 @@
|
|
|
1
1
|
import { defineComponent, useAttrs, ref, computed, onMounted, nextTick, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, normalizeStyle, normalizeClass, createElementBlock, createCommentVNode, mergeProps, isRef } from "vue";
|
|
2
2
|
import { MilkdownProvider } from "@milkdown/vue";
|
|
3
3
|
import _sfc_main$3 from "./VcMdEditorContent.vue.mjs";
|
|
4
|
-
import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/node_modules/element-plus/theme-chalk/src/
|
|
4
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcMdEditor/VcMdEditorContent.css';/* empty css */
|
|
5
|
+
import { useReadonlyMarkdownDom } from "./readonlyMarkdown.mjs";
|
|
6
|
+
import { streamingInterval } from "./streamingInterval.mjs";
|
|
5
7
|
import { useVModel } from "@vueuse/core";
|
|
8
|
+
import { useThrottledText } from "../../composables/useThrottledText.mjs";
|
|
6
9
|
import { convertToUnit } from "../../utils/helpers.mjs";
|
|
7
10
|
import { markdown } from "@codemirror/lang-markdown";
|
|
8
11
|
import CodeMirror from "vue-codemirror6";
|
|
@@ -23,7 +26,6 @@ const _hoisted_1 = {
|
|
|
23
26
|
};
|
|
24
27
|
const _hoisted_2 = { class: "flex items-center flex-grow" };
|
|
25
28
|
const _hoisted_3 = { class: "flex items-center gap-1" };
|
|
26
|
-
const _hoisted_4 = { class: "vc-markdown-editor__content" };
|
|
27
29
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
30
|
...{ inheritAttrs: false },
|
|
29
31
|
__name: "VcMdEditor",
|
|
@@ -32,12 +34,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
34
|
html: { default: "" },
|
|
33
35
|
disabled: { type: Boolean, default: false },
|
|
34
36
|
useParameters: { type: Boolean, default: false },
|
|
35
|
-
minHeight: { default:
|
|
37
|
+
minHeight: { default: void 0 },
|
|
36
38
|
maxHeight: { default: void 0 },
|
|
37
39
|
parameters: { default: void 0 },
|
|
38
40
|
isTeleported: { type: Boolean, default: void 0 },
|
|
39
41
|
readonly: { type: Boolean },
|
|
40
|
-
hideToolbar: { type: Boolean }
|
|
42
|
+
hideToolbar: { type: Boolean },
|
|
43
|
+
streaming: { type: Boolean, default: false },
|
|
44
|
+
plain: { type: Boolean, default: false }
|
|
41
45
|
},
|
|
42
46
|
emits: ["update:modelValue", "update:html"],
|
|
43
47
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -50,7 +54,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
54
|
const editorMode = ref(true);
|
|
51
55
|
const mounted = ref(false);
|
|
52
56
|
const milkdownEditorContentRef = ref();
|
|
57
|
+
const contentRef = ref();
|
|
53
58
|
const alignMode = ref("ltr");
|
|
59
|
+
const renderedModel = useThrottledText(
|
|
60
|
+
() => localModel.value,
|
|
61
|
+
() => props.streaming,
|
|
62
|
+
() => {
|
|
63
|
+
var _a;
|
|
64
|
+
return streamingInterval(((_a = localModel.value) == null ? void 0 : _a.length) ?? 0);
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
function onEditorInput(value) {
|
|
68
|
+
localModel.value = value;
|
|
69
|
+
}
|
|
70
|
+
useReadonlyMarkdownDom(contentRef, () => Boolean(props.readonly) && editorMode.value);
|
|
54
71
|
const flatParameters = computed(() => {
|
|
55
72
|
if (!props.parameters) return void 0;
|
|
56
73
|
const result = [];
|
|
@@ -64,7 +81,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
64
81
|
return result;
|
|
65
82
|
});
|
|
66
83
|
const minHeightProperty = computed(() => {
|
|
67
|
-
|
|
84
|
+
const minHeight = props.minHeight === void 0 || props.minHeight === "" ? props.plain ? 0 : 400 : props.minHeight;
|
|
85
|
+
return convertToUnit(minHeight);
|
|
68
86
|
});
|
|
69
87
|
const maxHeightProperty = computed(() => {
|
|
70
88
|
return props.maxHeight ? convertToUnit(props.maxHeight) : void 0;
|
|
@@ -171,8 +189,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
171
189
|
class: normalizeClass([{
|
|
172
190
|
"is--scrollable": maxHeightProperty.value,
|
|
173
191
|
"is-direction--rtl": alignMode.value === "rtl",
|
|
174
|
-
"is-direction--ltr": alignMode.value === "ltr"
|
|
192
|
+
"is-direction--ltr": alignMode.value === "ltr",
|
|
193
|
+
"is--readonly": __props.readonly,
|
|
194
|
+
"is--plain": __props.plain,
|
|
195
|
+
"is--streaming": __props.streaming
|
|
175
196
|
}, "vc-markdown-editor__wrapper"]),
|
|
197
|
+
"data-test": "md-editor",
|
|
176
198
|
style: normalizeStyle({
|
|
177
199
|
"--min-md-height": minHeightProperty.value,
|
|
178
200
|
"--max-md-height": maxHeightProperty.value
|
|
@@ -227,32 +249,35 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
227
249
|
}, 8, ["content", "teleported"])
|
|
228
250
|
])
|
|
229
251
|
])) : createCommentVNode("", true),
|
|
230
|
-
createElementVNode("div",
|
|
252
|
+
createElementVNode("div", {
|
|
253
|
+
ref_key: "contentRef",
|
|
254
|
+
ref: contentRef,
|
|
255
|
+
class: "vc-markdown-editor__content"
|
|
256
|
+
}, [
|
|
231
257
|
editorMode.value ? (openBlock(), createBlock(_sfc_main$3, mergeProps({
|
|
232
258
|
key: 0,
|
|
233
259
|
ref_key: "milkdownEditorContentRef",
|
|
234
260
|
ref: milkdownEditorContentRef,
|
|
235
|
-
modelValue: unref(localModel),
|
|
236
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(localModel) ? localModel.value = $event : null),
|
|
237
261
|
html: unref(localHtml),
|
|
238
|
-
"onUpdate:html": _cache[
|
|
262
|
+
"onUpdate:html": _cache[1] || (_cache[1] = ($event) => isRef(localHtml) ? localHtml.value = $event : null),
|
|
263
|
+
"model-value": unref(renderedModel),
|
|
239
264
|
disabled: __props.disabled,
|
|
240
265
|
"min-height": __props.minHeight,
|
|
241
266
|
parameters: flatParameters.value,
|
|
242
267
|
"use-parameters": __props.useParameters,
|
|
243
268
|
readonly: __props.readonly
|
|
244
|
-
}, unref(attributes)), null, 16, ["
|
|
269
|
+
}, unref(attributes), { "onUpdate:modelValue": onEditorInput }), null, 16, ["html", "model-value", "disabled", "min-height", "parameters", "use-parameters", "readonly"])) : (openBlock(), createBlock(unref(CodeMirror), {
|
|
245
270
|
key: 1,
|
|
246
271
|
ref: "codeMirrorRef",
|
|
247
272
|
modelValue: unref(localModel),
|
|
248
|
-
"onUpdate:modelValue": _cache[
|
|
273
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(localModel) ? localModel.value = $event : null),
|
|
249
274
|
lang: unref(markdown)(),
|
|
250
275
|
disabled: __props.disabled,
|
|
251
276
|
class: normalizeClass([{ "pointer-events-none opacity-50": __props.disabled }, "h-full w-full text-sm vc-markdown-editor__text-editor"]),
|
|
252
277
|
readonly: __props.readonly,
|
|
253
278
|
basic: ""
|
|
254
279
|
}, null, 8, ["modelValue", "lang", "disabled", "class", "readonly"]))
|
|
255
|
-
])
|
|
280
|
+
], 512)
|
|
256
281
|
], 6)
|
|
257
282
|
]),
|
|
258
283
|
_: 1
|
|
@@ -12,6 +12,7 @@ import { useWidgetViewFactory } from "@prosemirror-adapter/vue";
|
|
|
12
12
|
import "@milkdown/crepe/theme/common/style.css";
|
|
13
13
|
import "@milkdown/crepe/theme/frame.css";
|
|
14
14
|
import { rtlCursorPlugin } from "./rtlCursorPlugin.mjs";
|
|
15
|
+
import { ltrNumbersPlugin, refreshLtrNumbers } from "./ltrNumbersPlugin.mjs";
|
|
15
16
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
17
|
__name: "VcMdEditorContent",
|
|
17
18
|
props: {
|
|
@@ -56,6 +57,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
crepe.editor.use(rtlCursorPlugin);
|
|
60
|
+
crepe.editor.use(ltrNumbersPlugin(() => Boolean(props.readonly)));
|
|
59
61
|
const originalGetMarkdown = crepe.getMarkdown.bind(crepe);
|
|
60
62
|
crepe.getMarkdown = function() {
|
|
61
63
|
const markdown = originalGetMarkdown();
|
|
@@ -185,6 +187,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
185
187
|
}
|
|
186
188
|
}
|
|
187
189
|
);
|
|
190
|
+
watch(
|
|
191
|
+
() => props.readonly,
|
|
192
|
+
() => {
|
|
193
|
+
if (crepeInstance && crepeMounted.value) {
|
|
194
|
+
crepeInstance.editor.action((ctx) => refreshLtrNumbers(ctx.get(editorViewCtx)));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
);
|
|
188
198
|
watch(
|
|
189
199
|
() => props.disabled,
|
|
190
200
|
(newValue) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, openBlock, createElementBlock, createElementVNode, createVNode, withCtx, Fragment, renderList, unref, toDisplayString, createBlock, createCommentVNode, nextTick } from "vue";
|
|
2
2
|
import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
|
|
3
|
-
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/node_modules/element-plus/theme-chalk/src/
|
|
3
|
+
import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tooltip.css';import '../../assets/node_modules/element-plus/theme-chalk/src/popper.css';import '../../assets/node_modules/element-plus/theme-chalk/src/cascader-panel.css';import '../../assets/node_modules/element-plus/theme-chalk/src/virtual-list.css';import '../../assets/node_modules/element-plus/theme-chalk/src/scrollbar.css';import '../../assets/node_modules/element-plus/theme-chalk/src/radio.css';import '../../assets/node_modules/element-plus/theme-chalk/src/checkbox.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';import '../../assets/components/VcPopover/VcPopover.css';/* empty css */
|
|
4
4
|
import { headingMenuItems, listMenuItems, advancedMenuItems } from "./mdEditor.config.mjs";
|
|
5
5
|
import { isGroupParameter } from "../../types/VcMdEditor.types.mjs";
|
|
6
6
|
import { ElCascaderPanel, ElTooltip } from "element-plus";
|
|
@@ -18,20 +18,20 @@ import _sfc_main$2 from "../VcButton/VcButton.vue.mjs";
|
|
|
18
18
|
import _sfc_main$3 from "../VcIcon/VcIcon.vue.mjs";
|
|
19
19
|
/* empty css */
|
|
20
20
|
import { Heading, List, FileCode2, Braces, ChevronRight } from "@lucide/vue";
|
|
21
|
-
const _hoisted_1 = { class: "vc-markdown-editor__toolbar flex items-center divide-x divide-
|
|
21
|
+
const _hoisted_1 = { class: "vc-markdown-editor__toolbar flex items-center divide-x divide-border space h-full" };
|
|
22
22
|
const _hoisted_2 = { class: "flex items-center px-1" };
|
|
23
23
|
const _hoisted_3 = { class: "toolbar-item-nav-item" };
|
|
24
|
-
const _hoisted_4 = { class: "p-2 rounded divide-y divide-
|
|
24
|
+
const _hoisted_4 = { class: "p-2 rounded-popup divide-y divide-border" };
|
|
25
25
|
const _hoisted_5 = { class: "w-full flex items-center gap-2" };
|
|
26
26
|
const _hoisted_6 = { class: "toolbar-item-menu-item" };
|
|
27
27
|
const _hoisted_7 = { class: "flex items-center gap-1 px-1" };
|
|
28
28
|
const _hoisted_8 = { class: "toolbar-item-nav-item" };
|
|
29
|
-
const _hoisted_9 = { class: "p-2 rounded divide-y divide-
|
|
29
|
+
const _hoisted_9 = { class: "p-2 rounded-popup divide-y divide-border" };
|
|
30
30
|
const _hoisted_10 = { class: "w-full flex items-center gap-2" };
|
|
31
31
|
const _hoisted_11 = { class: "toolbar-item-menu-item" };
|
|
32
32
|
const _hoisted_12 = { class: "flex items-center gap-1 px-1" };
|
|
33
33
|
const _hoisted_13 = { class: "toolbar-item-nav-item" };
|
|
34
|
-
const _hoisted_14 = { class: "p-2 rounded divide-y divide-
|
|
34
|
+
const _hoisted_14 = { class: "p-2 rounded-popup divide-y divide-border" };
|
|
35
35
|
const _hoisted_15 = { class: "w-full flex items-center gap-2" };
|
|
36
36
|
const _hoisted_16 = {
|
|
37
37
|
key: 0,
|
|
@@ -40,14 +40,14 @@ const _hoisted_16 = {
|
|
|
40
40
|
const _hoisted_17 = { class: "toolbar-item-nav-item" };
|
|
41
41
|
const _hoisted_18 = {
|
|
42
42
|
key: 1,
|
|
43
|
-
class: "p-2 rounded divide-y divide-
|
|
43
|
+
class: "p-2 rounded-popup divide-y divide-border max-h-96 overflow-x-auto"
|
|
44
44
|
};
|
|
45
45
|
const _hoisted_19 = { class: "w-full flex items-center gap-2" };
|
|
46
46
|
const _hoisted_20 = { class: "capitalize toolbar-item-menu-item" };
|
|
47
47
|
const _hoisted_21 = { key: 1 };
|
|
48
48
|
const _hoisted_22 = { class: "w-full flex items-center gap-2" };
|
|
49
49
|
const _hoisted_23 = { class: "capitalize flex-grow text-start toolbar-item-menu-item" };
|
|
50
|
-
const _hoisted_24 = { class: "p-2 rounded divide-y divide-
|
|
50
|
+
const _hoisted_24 = { class: "p-2 rounded-popup divide-y divide-border" };
|
|
51
51
|
const _hoisted_25 = { class: "py-0.5" };
|
|
52
52
|
const _hoisted_26 = { class: "py-0.5" };
|
|
53
53
|
const _hoisted_27 = { class: "py-0.5" };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { $prose } from "@milkdown/utils";
|
|
2
|
+
import { Plugin, PluginKey } from "@milkdown/kit/prose/state";
|
|
3
|
+
import { DecorationSet, Decoration } from "@milkdown/kit/prose/view";
|
|
4
|
+
import { findNumberRuns } from "../../utils/numberRuns.mjs";
|
|
5
|
+
const ltrNumbersKey = new PluginKey("VC_LTR_NUMBERS");
|
|
6
|
+
const PLACEHOLDER = "";
|
|
7
|
+
function textOfBlock(block) {
|
|
8
|
+
let text = "";
|
|
9
|
+
block.forEach((child) => {
|
|
10
|
+
const isPlainText = child.isText && !child.marks.some((mark) => mark.type.spec.code);
|
|
11
|
+
text += isPlainText ? child.text ?? "" : PLACEHOLDER.repeat(child.nodeSize);
|
|
12
|
+
});
|
|
13
|
+
return text;
|
|
14
|
+
}
|
|
15
|
+
function ltrNumberDecorations(doc) {
|
|
16
|
+
const decorations = [];
|
|
17
|
+
doc.descendants((node, position) => {
|
|
18
|
+
if (!node.isTextblock) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
if (!node.type.spec.code) {
|
|
22
|
+
const start = position + 1;
|
|
23
|
+
for (const [from, to] of findNumberRuns(textOfBlock(node))) {
|
|
24
|
+
decorations.push(Decoration.inline(start + from, start + to, { dir: "ltr" }));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
return false;
|
|
28
|
+
});
|
|
29
|
+
return DecorationSet.create(doc, decorations);
|
|
30
|
+
}
|
|
31
|
+
function ltrNumbersPlugin(enabled) {
|
|
32
|
+
return $prose(() => new Plugin({
|
|
33
|
+
key: ltrNumbersKey,
|
|
34
|
+
state: {
|
|
35
|
+
init: (_, state) => enabled() ? ltrNumberDecorations(state.doc) : DecorationSet.empty,
|
|
36
|
+
apply: (transaction, decorations, _, state) => {
|
|
37
|
+
if (!transaction.docChanged && !transaction.getMeta(ltrNumbersKey)) {
|
|
38
|
+
return decorations;
|
|
39
|
+
}
|
|
40
|
+
return enabled() ? ltrNumberDecorations(state.doc) : DecorationSet.empty;
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
props: {
|
|
44
|
+
decorations: (state) => ltrNumbersKey.getState(state)
|
|
45
|
+
}
|
|
46
|
+
}));
|
|
47
|
+
}
|
|
48
|
+
function refreshLtrNumbers(view) {
|
|
49
|
+
view.dispatch(view.state.tr.setMeta(ltrNumbersKey, true));
|
|
50
|
+
}
|
|
51
|
+
export {
|
|
52
|
+
ltrNumberDecorations,
|
|
53
|
+
ltrNumbersPlugin,
|
|
54
|
+
refreshLtrNumbers
|
|
55
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { computed, watch } from "vue";
|
|
2
|
+
import { useMutationObserver } from "@vueuse/core";
|
|
3
|
+
const TEXT_BLOCKS = "p, h1, h2, h3, h4, h5, h6, dt, dd";
|
|
4
|
+
const CONTAINER_BLOCKS = "ul, ol, table, th, td, blockquote";
|
|
5
|
+
const STRONG_CHARACTER = /[\p{L}\u200E\u200F\u061C]/u;
|
|
6
|
+
const RTL_CHARACTER = /[\p{Script=Hebrew}\p{Script=Arabic}\p{Script=Syriac}\p{Script=Thaana}\p{Script=Nko}\u200F\u061C]/u;
|
|
7
|
+
const LTR_BLOCKS = ".milkdown-code-block, code";
|
|
8
|
+
const SAFE_LINK_PROTOCOLS = ["http:", "https:", "mailto:", "tel:"];
|
|
9
|
+
function setAttribute(element, name, value) {
|
|
10
|
+
if (element.getAttribute(name) !== value) {
|
|
11
|
+
element.setAttribute(name, value);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
function getProtocol(href) {
|
|
15
|
+
try {
|
|
16
|
+
return new URL(href, window.location.href).protocol;
|
|
17
|
+
} catch {
|
|
18
|
+
return void 0;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function prepareLink(link) {
|
|
22
|
+
const href = link.getAttribute("href");
|
|
23
|
+
if (href === null) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
const protocol = getProtocol(href);
|
|
27
|
+
if (!href.trim() || !protocol || !SAFE_LINK_PROTOCOLS.includes(protocol)) {
|
|
28
|
+
link.removeAttribute("href");
|
|
29
|
+
link.removeAttribute("target");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
if (href.startsWith("#") || !protocol.startsWith("http")) {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
setAttribute(link, "target", "_blank");
|
|
36
|
+
setAttribute(link, "rel", "noopener noreferrer");
|
|
37
|
+
}
|
|
38
|
+
function textDirection(text) {
|
|
39
|
+
var _a;
|
|
40
|
+
const strong = (_a = text.match(STRONG_CHARACTER)) == null ? void 0 : _a[0];
|
|
41
|
+
if (!strong) {
|
|
42
|
+
return void 0;
|
|
43
|
+
}
|
|
44
|
+
return RTL_CHARACTER.test(strong) ? "rtl" : "ltr";
|
|
45
|
+
}
|
|
46
|
+
function setDirection(element, direction) {
|
|
47
|
+
if (direction) {
|
|
48
|
+
setAttribute(element, "dir", direction);
|
|
49
|
+
} else if (element.hasAttribute("dir")) {
|
|
50
|
+
element.removeAttribute("dir");
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function prepareRenderedMarkdown(root) {
|
|
54
|
+
root.querySelectorAll(TEXT_BLOCKS).forEach((element) => setDirection(element, textDirection(element.textContent ?? "") && "auto"));
|
|
55
|
+
root.querySelectorAll(CONTAINER_BLOCKS).forEach((element) => setDirection(element, textDirection(element.textContent ?? "")));
|
|
56
|
+
root.querySelectorAll(LTR_BLOCKS).forEach((element) => setAttribute(element, "dir", "ltr"));
|
|
57
|
+
root.querySelectorAll("a").forEach(prepareLink);
|
|
58
|
+
}
|
|
59
|
+
function useReadonlyMarkdownDom(root, enabled) {
|
|
60
|
+
const target = computed(() => enabled() ? root.value : void 0);
|
|
61
|
+
watch(target, (element) => {
|
|
62
|
+
if (element) {
|
|
63
|
+
prepareRenderedMarkdown(element);
|
|
64
|
+
}
|
|
65
|
+
}, {
|
|
66
|
+
immediate: true,
|
|
67
|
+
flush: "post"
|
|
68
|
+
});
|
|
69
|
+
useMutationObserver(target, () => {
|
|
70
|
+
if (target.value) {
|
|
71
|
+
prepareRenderedMarkdown(target.value);
|
|
72
|
+
}
|
|
73
|
+
}, {
|
|
74
|
+
childList: true,
|
|
75
|
+
subtree: true
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
prepareRenderedMarkdown,
|
|
80
|
+
useReadonlyMarkdownDom
|
|
81
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const CHARACTERS_PER_MS = 20;
|
|
2
|
+
const MIN_STREAMING_INTERVAL = 120;
|
|
3
|
+
const MAX_STREAMING_INTERVAL = 1e3;
|
|
4
|
+
function streamingInterval(length, minInterval = MIN_STREAMING_INTERVAL) {
|
|
5
|
+
const byLength = Math.min(Math.round(length / CHARACTERS_PER_MS), MAX_STREAMING_INTERVAL);
|
|
6
|
+
return Math.max(minInterval, byLength);
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
MAX_STREAMING_INTERVAL,
|
|
10
|
+
MIN_STREAMING_INTERVAL,
|
|
11
|
+
streamingInterval
|
|
12
|
+
};
|
|
@@ -1,42 +1,50 @@
|
|
|
1
1
|
import '../../assets/components/VcMessage/VcMessage.css';
|
|
2
|
-
import { defineComponent, ref, computed, openBlock, createElementBlock, normalizeClass,
|
|
2
|
+
import { defineComponent, useSlots, ref, computed, openBlock, createElementBlock, normalizeClass, renderSlot, createCommentVNode, toDisplayString, createElementVNode, createBlock, resolveDynamicComponent, unref, Fragment, renderList, withCtx, createVNode } from "vue";
|
|
3
3
|
import { Ellipsis } from "@lucide/vue";
|
|
4
|
-
import _sfc_main$
|
|
5
|
-
import '../../assets/components/VcMessage/reactions/VcMessageReactionBar.css';import '../../assets/components/VcMessage/reactions/VcMessageEmojiPicker.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcDropdown/VcDropdown.css';import '../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
|
|
6
|
-
import _sfc_main$
|
|
4
|
+
import _sfc_main$4 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
5
|
+
import '../../assets/components/VcMessage/reactions/VcMessageReactionBar.css';import '../../assets/components/VcMessage/reactions/VcMessageEmojiPicker.css';import '../../assets/components/VcMessage/VcMessageMeta.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcDropdown/VcDropdown.css';import '../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
|
|
6
|
+
import _sfc_main$5 from "../VcDropdown/VcDropdown.vue.mjs";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import _sfc_main$
|
|
8
|
+
import _sfc_main$6 from "../VcIcon/VcIcon.vue.mjs";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { messageContentComponents } from "./content/messageContentComponents.mjs";
|
|
11
|
-
import _sfc_main$
|
|
11
|
+
import _sfc_main$1 from "./VcMessageMeta.vue.mjs";
|
|
12
|
+
/* empty css */
|
|
13
|
+
import _sfc_main$3 from "./reactions/VcMessageEmojiPicker.vue.mjs";
|
|
12
14
|
/* empty css */
|
|
13
|
-
import _sfc_main$
|
|
15
|
+
import _sfc_main$2 from "./reactions/VcMessageReactionBar.vue.mjs";
|
|
14
16
|
/* empty css */
|
|
15
17
|
import { DEFAULT_REACTION_EMOJIS } from "./reactions/emojis.mjs";
|
|
16
18
|
import { tVU } from "../../localization/index.mjs";
|
|
19
|
+
import { textColorClass } from "../../enum/constants.mjs";
|
|
17
20
|
const _hoisted_1 = {
|
|
18
21
|
key: 0,
|
|
19
|
-
class: "vc-
|
|
22
|
+
class: "vc-message__header"
|
|
20
23
|
};
|
|
21
|
-
const _hoisted_2 = {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
class: "vc-message__content"
|
|
24
|
+
const _hoisted_2 = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "vc-message__deleted"
|
|
25
27
|
};
|
|
28
|
+
const _hoisted_3 = { class: "vc-message__reply-author" };
|
|
26
29
|
const _hoisted_4 = {
|
|
27
|
-
key:
|
|
28
|
-
class: "vc-
|
|
30
|
+
key: 3,
|
|
31
|
+
class: "vc-message__content"
|
|
29
32
|
};
|
|
30
33
|
const _hoisted_5 = {
|
|
31
|
-
key:
|
|
32
|
-
class: "vc-
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "vc-message__caption",
|
|
36
|
+
dir: "auto"
|
|
33
37
|
};
|
|
34
38
|
const _hoisted_6 = {
|
|
35
|
-
key:
|
|
39
|
+
key: 6,
|
|
40
|
+
class: "vc-message__footer"
|
|
41
|
+
};
|
|
42
|
+
const _hoisted_7 = {
|
|
43
|
+
key: 7,
|
|
36
44
|
class: "vc-message__toolbar"
|
|
37
45
|
};
|
|
38
|
-
const
|
|
39
|
-
const
|
|
46
|
+
const _hoisted_8 = { class: "vc-dropdown-item__content-inner vc-message__menu-item" };
|
|
47
|
+
const _hoisted_9 = {
|
|
40
48
|
key: 1,
|
|
41
49
|
class: "vc-message__menu-shortcut"
|
|
42
50
|
};
|
|
@@ -45,6 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
45
53
|
props: {
|
|
46
54
|
content: { default: void 0 },
|
|
47
55
|
align: { default: "start" },
|
|
56
|
+
variant: { default: "bubble" },
|
|
48
57
|
reply: { default: void 0 },
|
|
49
58
|
options: { default: () => [] },
|
|
50
59
|
additionalOptions: { default: () => [] },
|
|
@@ -52,6 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
61
|
reactionEmojis: { default: () => DEFAULT_REACTION_EMOJIS },
|
|
53
62
|
edited: { type: Boolean, default: false },
|
|
54
63
|
deleted: { type: Boolean, default: false },
|
|
64
|
+
status: { default: void 0 },
|
|
55
65
|
editedLabel: { default: void 0 },
|
|
56
66
|
deletedLabel: { default: void 0 }
|
|
57
67
|
},
|
|
@@ -59,14 +69,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
59
69
|
setup(__props, { emit: __emit }) {
|
|
60
70
|
const props = __props;
|
|
61
71
|
const emit = __emit;
|
|
72
|
+
const slots = useSlots();
|
|
62
73
|
const isMenuOpen = ref(false);
|
|
63
74
|
const isPickerOpen = ref(false);
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
75
|
+
const blocks = computed(() => {
|
|
76
|
+
if (!props.content) {
|
|
77
|
+
return [];
|
|
78
|
+
}
|
|
79
|
+
return Array.isArray(props.content) ? props.content : [props.content];
|
|
67
80
|
});
|
|
81
|
+
function getIsMedia() {
|
|
82
|
+
return !props.deleted && !slots.default && blocks.value.length === 1 && (blocks.value[0].type === "image" || blocks.value[0].type === "video");
|
|
83
|
+
}
|
|
84
|
+
const blockItems = computed(() => blocks.value.map((block, index) => {
|
|
85
|
+
var _a;
|
|
86
|
+
return {
|
|
87
|
+
key: index,
|
|
88
|
+
block,
|
|
89
|
+
caption: "caption" in block ? ((_a = block.caption) == null ? void 0 : _a.trim()) ?? "" : ""
|
|
90
|
+
};
|
|
91
|
+
}));
|
|
92
|
+
function getIsMetaOverMedia() {
|
|
93
|
+
return getIsMedia() && !blockItems.value[0].caption;
|
|
94
|
+
}
|
|
68
95
|
const moreOptionsLabel = computed(() => tVU.t("voicenterUi.message.moreOptions"));
|
|
69
96
|
const editedText = computed(() => props.editedLabel || tVU.t("voicenterUi.message.edited"));
|
|
97
|
+
const hasMeta = computed(() => !props.deleted && (props.edited || !!props.status));
|
|
98
|
+
const metaEditedText = computed(() => props.edited ? editedText.value : "");
|
|
70
99
|
const deletedText = computed(() => props.deletedLabel || tVU.t("voicenterUi.message.deleted"));
|
|
71
100
|
const additionalOptionsFlat = computed(() => props.additionalOptions.flat());
|
|
72
101
|
const hasAdditionalOptions = computed(() => additionalOptionsFlat.value.length > 0);
|
|
@@ -79,8 +108,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
79
108
|
color: option.color,
|
|
80
109
|
disabled: option.disabled,
|
|
81
110
|
divided: groupIndex > 0 && index === 0,
|
|
82
|
-
iconClass: option.color ?
|
|
83
|
-
labelClass: option.color ?
|
|
111
|
+
iconClass: option.color ? textColorClass(option.color) : void 0,
|
|
112
|
+
labelClass: option.color ? textColorClass(option.color) : void 0
|
|
84
113
|
})));
|
|
85
114
|
});
|
|
86
115
|
function findAdditionalOption(event) {
|
|
@@ -101,52 +130,81 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
130
|
}
|
|
102
131
|
return (_ctx, _cache) => {
|
|
103
132
|
return openBlock(), createElementBlock("div", {
|
|
104
|
-
class: normalizeClass([[`vc-message--align-${__props.align}`, { "is--menu-open": isMenuOpen.value || isPickerOpen.value, "is--deleted": __props.deleted, "is--media":
|
|
133
|
+
class: normalizeClass([[`vc-message--align-${__props.align}`, `vc-message--${__props.variant}`, { "is--menu-open": isMenuOpen.value || isPickerOpen.value, "is--deleted": __props.deleted, "is--media": getIsMedia() }], "vc-message"])
|
|
105
134
|
}, [
|
|
106
|
-
|
|
135
|
+
slots.header ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
136
|
+
renderSlot(_ctx.$slots, "header")
|
|
137
|
+
])) : createCommentVNode("", true),
|
|
138
|
+
__props.deleted ? (openBlock(), createElementBlock("div", _hoisted_2, toDisplayString(deletedText.value), 1)) : createCommentVNode("", true),
|
|
107
139
|
__props.reply && !__props.deleted ? (openBlock(), createElementBlock("button", {
|
|
108
|
-
key:
|
|
140
|
+
key: 2,
|
|
109
141
|
type: "button",
|
|
110
142
|
class: "vc-message__reply",
|
|
143
|
+
"data-test": "message-reply",
|
|
111
144
|
onClick: _cache[0] || (_cache[0] = ($event) => emit("reply-click"))
|
|
112
145
|
}, [
|
|
113
|
-
createElementVNode("span",
|
|
146
|
+
createElementVNode("span", _hoisted_3, [
|
|
147
|
+
createElementVNode("bdi", null, toDisplayString(__props.reply.author), 1)
|
|
148
|
+
]),
|
|
114
149
|
(openBlock(), createBlock(resolveDynamicComponent(unref(messageContentComponents)[__props.reply.content.type]), {
|
|
115
150
|
content: __props.reply.content,
|
|
116
151
|
preview: "",
|
|
117
|
-
class: "vc-message__reply-content"
|
|
152
|
+
class: "vc-message__reply-content",
|
|
153
|
+
dir: "auto"
|
|
118
154
|
}, null, 8, ["content"]))
|
|
119
155
|
])) : createCommentVNode("", true),
|
|
120
|
-
|
|
121
|
-
(
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
156
|
+
(blocks.value.length || slots.default) && !__props.deleted ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
157
|
+
renderSlot(_ctx.$slots, "default", { content: blocks.value }, () => [
|
|
158
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(blockItems.value, (item) => {
|
|
159
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
160
|
+
key: item.key
|
|
161
|
+
}, [
|
|
162
|
+
(openBlock(), createBlock(resolveDynamicComponent(unref(messageContentComponents)[item.block.type]), {
|
|
163
|
+
content: item.block,
|
|
164
|
+
onContentClick: ($event) => emit("content-click", item.block)
|
|
165
|
+
}, null, 40, ["content", "onContentClick"])),
|
|
166
|
+
item.caption ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString(item.caption), 1)) : createCommentVNode("", true)
|
|
167
|
+
], 64);
|
|
168
|
+
}), 128))
|
|
169
|
+
]),
|
|
170
|
+
hasMeta.value && getIsMetaOverMedia() ? (openBlock(), createBlock(_sfc_main$1, {
|
|
171
|
+
key: 0,
|
|
172
|
+
"edited-text": metaEditedText.value,
|
|
173
|
+
status: __props.status,
|
|
174
|
+
class: "vc-message__meta"
|
|
175
|
+
}, null, 8, ["edited-text", "status"])) : createCommentVNode("", true)
|
|
126
176
|
])) : createCommentVNode("", true),
|
|
127
|
-
|
|
128
|
-
__props.reactions.length && !__props.deleted ? (openBlock(), createBlock(_sfc_main$1, {
|
|
177
|
+
hasMeta.value && !getIsMetaOverMedia() ? (openBlock(), createBlock(_sfc_main$1, {
|
|
129
178
|
key: 4,
|
|
179
|
+
"edited-text": metaEditedText.value,
|
|
180
|
+
status: __props.status,
|
|
181
|
+
class: "vc-message__meta"
|
|
182
|
+
}, null, 8, ["edited-text", "status"])) : createCommentVNode("", true),
|
|
183
|
+
__props.reactions.length && !__props.deleted ? (openBlock(), createBlock(_sfc_main$2, {
|
|
184
|
+
key: 5,
|
|
130
185
|
reactions: __props.reactions,
|
|
131
186
|
emojis: __props.reactionEmojis,
|
|
132
187
|
class: "vc-message__reactions",
|
|
133
|
-
onToggle: _cache[
|
|
188
|
+
onToggle: _cache[1] || (_cache[1] = ($event) => emit("reaction-toggle", $event))
|
|
134
189
|
}, null, 8, ["reactions", "emojis"])) : createCommentVNode("", true),
|
|
135
|
-
|
|
190
|
+
slots.footer && !__props.deleted ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
191
|
+
renderSlot(_ctx.$slots, "footer", { align: __props.align })
|
|
192
|
+
])) : createCommentVNode("", true),
|
|
193
|
+
hasToolbar.value && !__props.deleted ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
136
194
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
137
195
|
return openBlock(), createElementBlock(Fragment, {
|
|
138
196
|
key: option.event
|
|
139
197
|
}, [
|
|
140
|
-
option.emojiPicker ? (openBlock(), createBlock(_sfc_main$
|
|
198
|
+
option.emojiPicker ? (openBlock(), createBlock(_sfc_main$3, {
|
|
141
199
|
key: 0,
|
|
142
200
|
emojis: __props.reactionEmojis,
|
|
143
201
|
disabled: option.disabled,
|
|
144
|
-
onSelect: _cache[
|
|
145
|
-
onOpen: _cache[
|
|
146
|
-
onClose: _cache[
|
|
202
|
+
onSelect: _cache[2] || (_cache[2] = ($event) => emit("reaction-toggle", $event)),
|
|
203
|
+
onOpen: _cache[3] || (_cache[3] = ($event) => isPickerOpen.value = true),
|
|
204
|
+
onClose: _cache[4] || (_cache[4] = ($event) => isPickerOpen.value = false)
|
|
147
205
|
}, {
|
|
148
206
|
trigger: withCtx(({ isOpen }) => [
|
|
149
|
-
createVNode(_sfc_main$
|
|
207
|
+
createVNode(_sfc_main$4, {
|
|
150
208
|
icon: option.icon,
|
|
151
209
|
color: option.color || "secondary",
|
|
152
210
|
disabled: option.disabled,
|
|
@@ -157,7 +215,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
215
|
}, null, 8, ["icon", "color", "disabled", "title", "aria-label", "aria-expanded"])
|
|
158
216
|
]),
|
|
159
217
|
_: 2
|
|
160
|
-
}, 1032, ["emojis", "disabled"])) : (openBlock(), createBlock(_sfc_main$
|
|
218
|
+
}, 1032, ["emojis", "disabled"])) : (openBlock(), createBlock(_sfc_main$4, {
|
|
161
219
|
key: 1,
|
|
162
220
|
icon: option.icon,
|
|
163
221
|
color: option.color || "secondary",
|
|
@@ -168,7 +226,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
226
|
}, null, 8, ["icon", "color", "disabled", "title", "aria-label", "onClick"]))
|
|
169
227
|
], 64);
|
|
170
228
|
}), 128)),
|
|
171
|
-
hasAdditionalOptions.value ? (openBlock(), createBlock(_sfc_main$
|
|
229
|
+
hasAdditionalOptions.value ? (openBlock(), createBlock(_sfc_main$5, {
|
|
172
230
|
key: 0,
|
|
173
231
|
options: dropdownOptions.value,
|
|
174
232
|
placement: __props.align === "end" ? "bottom-end" : "bottom-start",
|
|
@@ -177,11 +235,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
177
235
|
trigger: "click",
|
|
178
236
|
"popper-class": "vc-message__menu",
|
|
179
237
|
onCommand,
|
|
180
|
-
onVisibleChange: _cache[
|
|
238
|
+
onVisibleChange: _cache[5] || (_cache[5] = ($event) => isMenuOpen.value = $event)
|
|
181
239
|
}, {
|
|
182
240
|
"dropdown-item": withCtx(({ item }) => [
|
|
183
|
-
createElementVNode("div",
|
|
184
|
-
item.icon ? (openBlock(), createBlock(_sfc_main$
|
|
241
|
+
createElementVNode("div", _hoisted_8, [
|
|
242
|
+
item.icon ? (openBlock(), createBlock(_sfc_main$6, {
|
|
185
243
|
key: 0,
|
|
186
244
|
icon: item.icon,
|
|
187
245
|
class: normalizeClass(item.iconClass)
|
|
@@ -189,11 +247,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
247
|
createElementVNode("span", {
|
|
190
248
|
class: normalizeClass([item.labelClass, "vc-message__menu-label"])
|
|
191
249
|
}, toDisplayString(item.label), 3),
|
|
192
|
-
getShortcut(item.value) ? (openBlock(), createElementBlock("span",
|
|
250
|
+
getShortcut(item.value) ? (openBlock(), createElementBlock("span", _hoisted_9, toDisplayString(getShortcut(item.value)), 1)) : createCommentVNode("", true)
|
|
193
251
|
])
|
|
194
252
|
]),
|
|
195
253
|
default: withCtx(() => [
|
|
196
|
-
createVNode(_sfc_main$
|
|
254
|
+
createVNode(_sfc_main$4, {
|
|
197
255
|
icon: unref(Ellipsis),
|
|
198
256
|
title: moreOptionsLabel.value,
|
|
199
257
|
"aria-label": moreOptionsLabel.value,
|