@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,21 +1,30 @@
|
|
|
1
1
|
import '../../assets/components/VcMessagesWrapper/VcMessagesWrapper.css';
|
|
2
|
-
import { defineComponent, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, toDisplayString,
|
|
2
|
+
import { defineComponent, ref, computed, watch, nextTick, onMounted, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, renderSlot, createCommentVNode, Fragment, renderList, toDisplayString, createBlock, mergeProps, createVNode, unref } from "vue";
|
|
3
|
+
import { useDocumentVisibility, useResizeObserver } from "@vueuse/core";
|
|
3
4
|
import dayjs from "dayjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
5
|
+
import { ArrowDown } from "@lucide/vue";
|
|
6
|
+
import _sfc_main$2 from "../VcButton/VcButtonIcon.vue.mjs";
|
|
7
|
+
import '../../assets/components/VcButton/VcButtonIcon.css';/* empty css */
|
|
8
|
+
import _sfc_main$1 from "./VcMessagesWrapperRow.vue.mjs";
|
|
6
9
|
import { tVU } from "../../localization/index.mjs";
|
|
7
|
-
const _hoisted_1 =
|
|
10
|
+
const _hoisted_1 = ["aria-busy"];
|
|
11
|
+
const _hoisted_2 = {
|
|
8
12
|
key: 0,
|
|
9
13
|
class: "vc-messages-wrapper__date"
|
|
10
14
|
};
|
|
11
|
-
const
|
|
12
|
-
const _hoisted_3 = ["data-message-id"];
|
|
15
|
+
const _hoisted_3 = { class: "vc-messages-wrapper__date-label" };
|
|
13
16
|
const _hoisted_4 = {
|
|
14
|
-
key:
|
|
15
|
-
class: "vc-messages-
|
|
17
|
+
key: 1,
|
|
18
|
+
class: "vc-messages-wrapper__unread"
|
|
19
|
+
};
|
|
20
|
+
const _hoisted_5 = { class: "vc-messages-wrapper__unread-label" };
|
|
21
|
+
const _hoisted_6 = {
|
|
22
|
+
key: 1,
|
|
23
|
+
class: "vc-messages-wrapper__jump",
|
|
24
|
+
"data-test": "messages-wrapper-jump"
|
|
16
25
|
};
|
|
17
|
-
const
|
|
18
|
-
const
|
|
26
|
+
const UNREAD_KEY = "unread-divider";
|
|
27
|
+
const SEEN_TOLERANCE = 2;
|
|
19
28
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
29
|
__name: "VcMessagesWrapper",
|
|
21
30
|
props: {
|
|
@@ -23,24 +32,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
32
|
options: { type: Function, default: void 0 },
|
|
24
33
|
additionalOptions: { type: Function, default: void 0 },
|
|
25
34
|
reactionEmojis: { default: void 0 },
|
|
35
|
+
unreadFromId: { default: void 0 },
|
|
26
36
|
scrollThreshold: { default: 50 },
|
|
27
37
|
dateFormat: { default: "dddd, MMM D" },
|
|
28
|
-
timeFormat: { default: "HH:mm" }
|
|
38
|
+
timeFormat: { default: "HH:mm" },
|
|
39
|
+
hideHeader: { type: Boolean, default: false },
|
|
40
|
+
showJumpButton: { type: Boolean, default: false },
|
|
41
|
+
jumpButtonThreshold: { default: 100 },
|
|
42
|
+
busy: { type: Boolean, default: false }
|
|
29
43
|
},
|
|
30
|
-
emits: ["reached-top", "reached-bottom", "option-click", "reply-click", "content-click", "reaction-toggle"],
|
|
44
|
+
emits: ["reached-top", "reached-bottom", "option-click", "reply-click", "content-click", "reaction-toggle", "seen"],
|
|
31
45
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
32
46
|
const props = __props;
|
|
33
47
|
const emit = __emit;
|
|
34
48
|
const containerRef = ref();
|
|
35
49
|
const listRef = ref();
|
|
50
|
+
const jumpText = computed(() => tVU.t("voicenterUi.messagesWrapper.jumpToBottom"));
|
|
51
|
+
const unreadLabel = computed(() => tVU.t("voicenterUi.messagesWrapper.newMessages"));
|
|
52
|
+
function isSameId(a, b) {
|
|
53
|
+
return String(a) === String(b);
|
|
54
|
+
}
|
|
36
55
|
const renderItems = computed(() => {
|
|
37
56
|
const items = [];
|
|
57
|
+
const { unreadFromId } = props;
|
|
58
|
+
const messageItems = [];
|
|
38
59
|
let previous;
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
|
|
60
|
+
let lastDay;
|
|
61
|
+
props.messages.forEach((message, index) => {
|
|
62
|
+
const createdAt = message.createdAt == null ? void 0 : dayjs(message.createdAt);
|
|
63
|
+
const previousCreatedAt = (previous == null ? void 0 : previous.createdAt) == null ? void 0 : dayjs(previous.createdAt);
|
|
64
|
+
const isNewDay = !!createdAt && (!lastDay || !createdAt.isSame(lastDay, "day"));
|
|
65
|
+
const isUnreadStart = unreadFromId !== void 0 && unreadFromId !== null && isSameId(message.id, unreadFromId);
|
|
66
|
+
if (createdAt && isNewDay) {
|
|
44
67
|
items.push({
|
|
45
68
|
kind: "date",
|
|
46
69
|
key: `date-${createdAt.format("YYYY-MM-DD")}`,
|
|
@@ -48,18 +71,36 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
71
|
label: formatDateLabel(createdAt)
|
|
49
72
|
});
|
|
50
73
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
74
|
+
if (createdAt) {
|
|
75
|
+
lastDay = createdAt;
|
|
76
|
+
}
|
|
77
|
+
if (isUnreadStart) {
|
|
78
|
+
items.push({
|
|
79
|
+
kind: "unread",
|
|
80
|
+
key: UNREAD_KEY
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const isGroupStart = isNewDay || isUnreadStart || (previous == null ? void 0 : previous.sender.id) !== message.sender.id;
|
|
84
|
+
const isNewMinute = !previousCreatedAt || !(createdAt == null ? void 0 : createdAt.isSame(previousCreatedAt, "minute"));
|
|
85
|
+
const item = {
|
|
54
86
|
kind: "message",
|
|
55
87
|
key: message.id,
|
|
56
88
|
message,
|
|
89
|
+
index,
|
|
57
90
|
isGroupStart,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
91
|
+
isGroupEnd: true,
|
|
92
|
+
isLast: index === props.messages.length - 1,
|
|
93
|
+
showTime: !!createdAt && (isGroupStart || isNewMinute),
|
|
94
|
+
time: createdAt ? createdAt.format(props.timeFormat) : ""
|
|
95
|
+
};
|
|
96
|
+
items.push(item);
|
|
97
|
+
messageItems.push(item);
|
|
61
98
|
previous = message;
|
|
62
|
-
}
|
|
99
|
+
});
|
|
100
|
+
messageItems.forEach((item, index) => {
|
|
101
|
+
var _a;
|
|
102
|
+
item.isGroupEnd = !messageItems[index + 1] || !!((_a = messageItems[index + 1]) == null ? void 0 : _a.isGroupStart);
|
|
103
|
+
});
|
|
63
104
|
return items;
|
|
64
105
|
});
|
|
65
106
|
function formatDateLabel(date) {
|
|
@@ -72,8 +113,34 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
72
113
|
}
|
|
73
114
|
return date.format(props.dateFormat);
|
|
74
115
|
}
|
|
75
|
-
|
|
76
|
-
|
|
116
|
+
function onOptionClick(event, message, option) {
|
|
117
|
+
emit("option-click", event, message, option);
|
|
118
|
+
}
|
|
119
|
+
function onReplyClick(message) {
|
|
120
|
+
var _a;
|
|
121
|
+
if (((_a = message.replyTo) == null ? void 0 : _a.id) !== void 0) {
|
|
122
|
+
scrollToMessage(message.replyTo.id);
|
|
123
|
+
}
|
|
124
|
+
emit("reply-click", message);
|
|
125
|
+
}
|
|
126
|
+
function onContentClick(message, content) {
|
|
127
|
+
emit("content-click", message, content);
|
|
128
|
+
}
|
|
129
|
+
function onReactionToggle(emoji, message) {
|
|
130
|
+
emit("reaction-toggle", emoji, message);
|
|
131
|
+
}
|
|
132
|
+
const lastEdges = {
|
|
133
|
+
top: false,
|
|
134
|
+
bottom: false
|
|
135
|
+
};
|
|
136
|
+
const distanceFromBottom = ref(0);
|
|
137
|
+
let isFollowing = true;
|
|
138
|
+
let lastScrollTop = 0;
|
|
139
|
+
const isJumpVisible = computed(() => props.showJumpButton && distanceFromBottom.value > props.jumpButtonThreshold);
|
|
140
|
+
function measureDistance() {
|
|
141
|
+
const el = containerRef.value;
|
|
142
|
+
distanceFromBottom.value = el ? Math.max(0, el.scrollHeight - el.scrollTop - el.clientHeight) : 0;
|
|
143
|
+
}
|
|
77
144
|
function getEdges() {
|
|
78
145
|
const el = containerRef.value;
|
|
79
146
|
if (!el) {
|
|
@@ -88,51 +155,137 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
88
155
|
};
|
|
89
156
|
}
|
|
90
157
|
function syncEdges() {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
158
|
+
var _a;
|
|
159
|
+
Object.assign(lastEdges, getEdges());
|
|
160
|
+
lastScrollTop = ((_a = containerRef.value) == null ? void 0 : _a.scrollTop) ?? 0;
|
|
161
|
+
measureDistance();
|
|
94
162
|
}
|
|
95
163
|
function onScroll() {
|
|
164
|
+
var _a;
|
|
96
165
|
const edges = getEdges();
|
|
97
|
-
|
|
166
|
+
const scrollTop = ((_a = containerRef.value) == null ? void 0 : _a.scrollTop) ?? 0;
|
|
167
|
+
if (edges.top && !lastEdges.top) {
|
|
98
168
|
emit("reached-top");
|
|
99
169
|
}
|
|
100
|
-
if (edges.bottom && !
|
|
170
|
+
if (edges.bottom && !lastEdges.bottom) {
|
|
101
171
|
emit("reached-bottom");
|
|
102
172
|
}
|
|
103
|
-
|
|
104
|
-
|
|
173
|
+
if (edges.bottom) {
|
|
174
|
+
isFollowing = true;
|
|
175
|
+
} else if (scrollTop < lastScrollTop) {
|
|
176
|
+
isFollowing = false;
|
|
177
|
+
}
|
|
178
|
+
Object.assign(lastEdges, edges);
|
|
179
|
+
lastScrollTop = scrollTop;
|
|
180
|
+
measureDistance();
|
|
181
|
+
scheduleSeenUpdate();
|
|
105
182
|
}
|
|
106
183
|
function scrollToBottom(behavior = "auto") {
|
|
107
184
|
const el = containerRef.value;
|
|
108
185
|
if (!el) {
|
|
109
186
|
return;
|
|
110
187
|
}
|
|
188
|
+
isFollowing = true;
|
|
111
189
|
el.scrollTo({
|
|
112
190
|
top: el.scrollHeight,
|
|
113
191
|
behavior
|
|
114
192
|
});
|
|
115
193
|
syncEdges();
|
|
116
194
|
}
|
|
117
|
-
function
|
|
195
|
+
function scrollToElement(target, { behavior = "auto", block = "start", offset = 0 } = {}) {
|
|
196
|
+
const el = containerRef.value;
|
|
197
|
+
if (!el) {
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
isFollowing = false;
|
|
201
|
+
const containerTop = el.getBoundingClientRect().top + el.clientTop;
|
|
202
|
+
const { top, height } = target.getBoundingClientRect();
|
|
203
|
+
const elementTop = top - containerTop + el.scrollTop;
|
|
204
|
+
const positions = {
|
|
205
|
+
start: elementTop - offset,
|
|
206
|
+
center: elementTop - (el.clientHeight - height) / 2,
|
|
207
|
+
end: elementTop + height - el.clientHeight + offset
|
|
208
|
+
};
|
|
209
|
+
el.scrollTo({
|
|
210
|
+
top: positions[block],
|
|
211
|
+
behavior
|
|
212
|
+
});
|
|
213
|
+
if (behavior !== "smooth") {
|
|
214
|
+
syncEdges();
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
function getMessageRows() {
|
|
118
218
|
var _a;
|
|
119
|
-
|
|
219
|
+
return Array.from(((_a = listRef.value) == null ? void 0 : _a.children) ?? []).filter((child) => child instanceof HTMLElement && child.dataset.messageId !== void 0);
|
|
220
|
+
}
|
|
221
|
+
function scrollToMessage(id, options = {}) {
|
|
222
|
+
const target = getMessageRows().find((row) => isSameId(row.dataset.messageId ?? "", id));
|
|
120
223
|
if (!target) {
|
|
121
224
|
return false;
|
|
122
225
|
}
|
|
123
|
-
target
|
|
226
|
+
scrollToElement(target, {
|
|
124
227
|
block: "center",
|
|
125
|
-
behavior
|
|
228
|
+
behavior: "smooth",
|
|
229
|
+
...options
|
|
126
230
|
});
|
|
127
231
|
return true;
|
|
128
232
|
}
|
|
129
|
-
function
|
|
233
|
+
function scrollToUnread(options = {}) {
|
|
130
234
|
var _a;
|
|
131
|
-
|
|
132
|
-
|
|
235
|
+
const target = (_a = listRef.value) == null ? void 0 : _a.querySelector(":scope > .vc-messages-wrapper__unread");
|
|
236
|
+
if (!target) {
|
|
237
|
+
return false;
|
|
133
238
|
}
|
|
134
|
-
|
|
239
|
+
scrollToElement(target, options);
|
|
240
|
+
return true;
|
|
241
|
+
}
|
|
242
|
+
function isAtBottom() {
|
|
243
|
+
return getEdges().bottom;
|
|
135
244
|
}
|
|
245
|
+
const visibility = useDocumentVisibility();
|
|
246
|
+
let lastSeenId;
|
|
247
|
+
let isSeenScheduled = false;
|
|
248
|
+
let seenFrame = 0;
|
|
249
|
+
function updateSeen() {
|
|
250
|
+
const el = containerRef.value;
|
|
251
|
+
if (!el || !el.clientHeight || visibility.value !== "visible") {
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
const rows = getMessageRows();
|
|
255
|
+
const visibleBottom = el.getBoundingClientRect().bottom + SEEN_TOLERANCE;
|
|
256
|
+
let low = 0;
|
|
257
|
+
let high = rows.length - 1;
|
|
258
|
+
let seenRow;
|
|
259
|
+
while (low <= high) {
|
|
260
|
+
const middle = Math.floor((low + high) / 2);
|
|
261
|
+
if (rows[middle].getBoundingClientRect().bottom <= visibleBottom) {
|
|
262
|
+
seenRow = rows[middle];
|
|
263
|
+
low = middle + 1;
|
|
264
|
+
} else {
|
|
265
|
+
high = middle - 1;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
const seenId = seenRow == null ? void 0 : seenRow.dataset.messageId;
|
|
269
|
+
const seenIndex = seenId === void 0 ? -1 : props.messages.findIndex((message) => isSameId(message.id, seenId));
|
|
270
|
+
const previousId = lastSeenId;
|
|
271
|
+
const previousIndex = previousId === void 0 ? -1 : props.messages.findIndex((message) => isSameId(message.id, previousId));
|
|
272
|
+
if (seenIndex <= previousIndex) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
lastSeenId = props.messages[seenIndex].id;
|
|
276
|
+
emit("seen", props.messages[seenIndex]);
|
|
277
|
+
}
|
|
278
|
+
function scheduleSeenUpdate() {
|
|
279
|
+
if (isSeenScheduled) {
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
isSeenScheduled = true;
|
|
283
|
+
seenFrame = requestAnimationFrame(() => {
|
|
284
|
+
isSeenScheduled = false;
|
|
285
|
+
updateSeen();
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
watch(visibility, scheduleSeenUpdate);
|
|
136
289
|
watch(
|
|
137
290
|
() => {
|
|
138
291
|
var _a, _b;
|
|
@@ -143,7 +296,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
143
296
|
if (!el) {
|
|
144
297
|
return;
|
|
145
298
|
}
|
|
146
|
-
const wasAtBottom = getEdges().bottom;
|
|
299
|
+
const wasAtBottom = isFollowing || getEdges().bottom;
|
|
147
300
|
const previousScrollHeight = el.scrollHeight;
|
|
148
301
|
const previousScrollTop = el.scrollTop;
|
|
149
302
|
const previousFirstIndex = props.messages.findIndex((message) => message.id === previousFirstId);
|
|
@@ -153,32 +306,40 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
153
306
|
syncEdges();
|
|
154
307
|
} else if (wasAtBottom) {
|
|
155
308
|
scrollToBottom();
|
|
309
|
+
} else {
|
|
310
|
+
measureDistance();
|
|
156
311
|
}
|
|
312
|
+
scheduleSeenUpdate();
|
|
157
313
|
}
|
|
158
314
|
);
|
|
159
|
-
|
|
315
|
+
useResizeObserver([listRef, containerRef], () => {
|
|
316
|
+
if (isFollowing) {
|
|
317
|
+
scrollToBottom();
|
|
318
|
+
} else {
|
|
319
|
+
measureDistance();
|
|
320
|
+
}
|
|
321
|
+
scheduleSeenUpdate();
|
|
322
|
+
});
|
|
160
323
|
onMounted(() => {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (isAtBottom) {
|
|
164
|
-
scrollToBottom();
|
|
165
|
-
}
|
|
166
|
-
});
|
|
167
|
-
if (listRef.value) {
|
|
168
|
-
resizeObserver.observe(listRef.value);
|
|
324
|
+
if (!scrollToUnread()) {
|
|
325
|
+
scrollToBottom();
|
|
169
326
|
}
|
|
327
|
+
scheduleSeenUpdate();
|
|
170
328
|
});
|
|
171
329
|
onBeforeUnmount(() => {
|
|
172
|
-
|
|
330
|
+
cancelAnimationFrame(seenFrame);
|
|
173
331
|
});
|
|
174
332
|
__expose({
|
|
175
333
|
scrollToBottom,
|
|
176
|
-
scrollToMessage
|
|
334
|
+
scrollToMessage,
|
|
335
|
+
scrollToUnread,
|
|
336
|
+
isAtBottom
|
|
177
337
|
});
|
|
178
338
|
return (_ctx, _cache) => {
|
|
179
339
|
return openBlock(), createElementBlock("div", {
|
|
180
340
|
ref_key: "containerRef",
|
|
181
341
|
ref: containerRef,
|
|
342
|
+
"aria-busy": __props.busy,
|
|
182
343
|
class: "vc-messages-wrapper",
|
|
183
344
|
onScroll
|
|
184
345
|
}, [
|
|
@@ -189,52 +350,63 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
189
350
|
}, [
|
|
190
351
|
!__props.messages.length ? renderSlot(_ctx.$slots, "empty", { key: 0 }) : createCommentVNode("", true),
|
|
191
352
|
(openBlock(true), createElementBlock(Fragment, null, renderList(renderItems.value, (item) => {
|
|
192
|
-
var _a, _b;
|
|
193
353
|
return openBlock(), createElementBlock(Fragment, {
|
|
194
354
|
key: item.key
|
|
195
355
|
}, [
|
|
196
|
-
item.kind === "date" ? (openBlock(), createElementBlock("div",
|
|
356
|
+
item.kind === "date" ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
197
357
|
renderSlot(_ctx.$slots, "date-divider", {
|
|
198
358
|
date: item.date,
|
|
199
359
|
label: item.label
|
|
200
360
|
}, () => [
|
|
201
|
-
createElementVNode("span",
|
|
361
|
+
createElementVNode("span", _hoisted_3, toDisplayString(item.label), 1)
|
|
362
|
+
])
|
|
363
|
+
])) : item.kind === "unread" ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
364
|
+
renderSlot(_ctx.$slots, "unread-divider", { label: unreadLabel.value }, () => [
|
|
365
|
+
createElementVNode("span", _hoisted_5, toDisplayString(unreadLabel.value), 1)
|
|
202
366
|
])
|
|
203
|
-
])) : (openBlock(),
|
|
204
|
-
key:
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
reactions: item.message.reactions,
|
|
223
|
-
"reaction-emojis": __props.reactionEmojis,
|
|
224
|
-
edited: item.message.isEdited,
|
|
225
|
-
deleted: item.message.isDeleted,
|
|
226
|
-
options: ((_a = __props.options) == null ? void 0 : _a.call(__props, item.message)) ?? [],
|
|
227
|
-
"additional-options": ((_b = __props.additionalOptions) == null ? void 0 : _b.call(__props, item.message)) ?? [],
|
|
228
|
-
onOptionClick: (event, option) => emit("option-click", event, item.message, option),
|
|
229
|
-
onReplyClick: ($event) => onReplyClick(item.message),
|
|
230
|
-
onContentClick: ($event) => emit("content-click", item.message),
|
|
231
|
-
onReactionToggle: ($event) => emit("reaction-toggle", $event, item.message)
|
|
232
|
-
}, null, 8, ["content", "align", "reply", "reactions", "reaction-emojis", "edited", "deleted", "options", "additional-options", "onOptionClick", "onReplyClick", "onContentClick", "onReactionToggle"])
|
|
233
|
-
], 10, _hoisted_3))
|
|
367
|
+
])) : (openBlock(), createBlock(_sfc_main$1, mergeProps({
|
|
368
|
+
key: 2,
|
|
369
|
+
ref_for: true
|
|
370
|
+
}, _ctx.$slots.message ? { index: item.index, isGroupEnd: item.isGroupEnd, isLast: item.isLast } : void 0, {
|
|
371
|
+
message: item.message,
|
|
372
|
+
"is-group-start": item.isGroupStart,
|
|
373
|
+
"show-time": item.showTime,
|
|
374
|
+
time: item.time,
|
|
375
|
+
"hide-header": __props.hideHeader,
|
|
376
|
+
options: __props.options,
|
|
377
|
+
"additional-options": __props.additionalOptions,
|
|
378
|
+
"reaction-emojis": __props.reactionEmojis,
|
|
379
|
+
"message-slot": _ctx.$slots.message,
|
|
380
|
+
"header-slot": _ctx.$slots["message-header"],
|
|
381
|
+
onOptionClick,
|
|
382
|
+
onReplyClick,
|
|
383
|
+
onContentClick,
|
|
384
|
+
onReactionToggle
|
|
385
|
+
}), null, 16, ["message", "is-group-start", "show-time", "time", "hide-header", "options", "additional-options", "reaction-emojis", "message-slot", "header-slot"]))
|
|
234
386
|
], 64);
|
|
235
|
-
}), 128))
|
|
387
|
+
}), 128)),
|
|
388
|
+
renderSlot(_ctx.$slots, "footer"),
|
|
389
|
+
isJumpVisible.value ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
390
|
+
renderSlot(_ctx.$slots, "jump-button", {
|
|
391
|
+
scrollToBottom,
|
|
392
|
+
distance: distanceFromBottom.value
|
|
393
|
+
}, () => [
|
|
394
|
+
createVNode(_sfc_main$2, {
|
|
395
|
+
icon: unref(ArrowDown),
|
|
396
|
+
title: jumpText.value,
|
|
397
|
+
"aria-label": jumpText.value,
|
|
398
|
+
type: "outline",
|
|
399
|
+
color: "primary",
|
|
400
|
+
circle: "",
|
|
401
|
+
filled: "",
|
|
402
|
+
class: "vc-messages-wrapper__jump-button",
|
|
403
|
+
"data-test-name": "messages-wrapper-jump-button",
|
|
404
|
+
onClick: _cache[0] || (_cache[0] = ($event) => scrollToBottom("smooth"))
|
|
405
|
+
}, null, 8, ["icon", "title", "aria-label"])
|
|
406
|
+
])
|
|
407
|
+
])) : createCommentVNode("", true)
|
|
236
408
|
], 512)
|
|
237
|
-
],
|
|
409
|
+
], 40, _hoisted_1);
|
|
238
410
|
};
|
|
239
411
|
}
|
|
240
412
|
});
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createElementBlock, normalizeClass, toDisplayString, createCommentVNode, createBlock, createSlots, withCtx, createVNode } from "vue";
|
|
2
|
+
import _sfc_main$1 from "../VcMessage/VcMessage.vue.mjs";
|
|
3
|
+
import '../../assets/components/VcMessage/VcMessage.css';/* empty css */
|
|
4
|
+
const _hoisted_1 = ["data-message-id"];
|
|
5
|
+
const _hoisted_2 = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "vc-messages-wrapper__header"
|
|
8
|
+
};
|
|
9
|
+
const _hoisted_3 = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "vc-messages-wrapper__sender",
|
|
12
|
+
dir: "auto"
|
|
13
|
+
};
|
|
14
|
+
const _hoisted_4 = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "vc-messages-wrapper__dot"
|
|
17
|
+
};
|
|
18
|
+
const _hoisted_5 = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "vc-messages-wrapper__time"
|
|
21
|
+
};
|
|
22
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
23
|
+
__name: "VcMessagesWrapperRow",
|
|
24
|
+
props: {
|
|
25
|
+
message: {},
|
|
26
|
+
isGroupStart: { type: Boolean },
|
|
27
|
+
showTime: { type: Boolean },
|
|
28
|
+
time: {},
|
|
29
|
+
hideHeader: { type: Boolean },
|
|
30
|
+
options: { type: Function, default: void 0 },
|
|
31
|
+
additionalOptions: { type: Function, default: void 0 },
|
|
32
|
+
reactionEmojis: { default: void 0 },
|
|
33
|
+
messageSlot: { type: Function, default: void 0 },
|
|
34
|
+
headerSlot: { type: Function, default: void 0 },
|
|
35
|
+
index: { default: 0 },
|
|
36
|
+
isGroupEnd: { type: Boolean, default: false },
|
|
37
|
+
isLast: { type: Boolean, default: false }
|
|
38
|
+
},
|
|
39
|
+
emits: ["option-click", "reply-click", "content-click", "reaction-toggle"],
|
|
40
|
+
setup(__props, { emit: __emit }) {
|
|
41
|
+
const EMPTY_OPTIONS = [];
|
|
42
|
+
const EMPTY_ADDITIONAL_OPTIONS = [];
|
|
43
|
+
const props = __props;
|
|
44
|
+
const emit = __emit;
|
|
45
|
+
const SlotOutlet = (outlet) => outlet.render(outlet.scope);
|
|
46
|
+
const messageOptions = computed(() => {
|
|
47
|
+
var _a;
|
|
48
|
+
return ((_a = props.options) == null ? void 0 : _a.call(props, props.message)) ?? EMPTY_OPTIONS;
|
|
49
|
+
});
|
|
50
|
+
const messageAdditionalOptions = computed(() => {
|
|
51
|
+
var _a;
|
|
52
|
+
return ((_a = props.additionalOptions) == null ? void 0 : _a.call(props, props.message)) ?? EMPTY_ADDITIONAL_OPTIONS;
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createElementBlock("div", {
|
|
56
|
+
"data-message-id": props.message.id,
|
|
57
|
+
class: normalizeClass([[props.message.class, { "is--own": props.message.isOwn, "is--group-start": __props.isGroupStart }], "vc-messages-wrapper__row"])
|
|
58
|
+
}, [
|
|
59
|
+
!__props.hideHeader && (__props.showTime || __props.isGroupStart) ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
60
|
+
__props.isGroupStart ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(props.message.sender.name), 1)) : createCommentVNode("", true),
|
|
61
|
+
__props.isGroupStart && __props.showTime ? (openBlock(), createElementBlock("span", _hoisted_4, "·")) : createCommentVNode("", true),
|
|
62
|
+
__props.showTime ? (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.time), 1)) : createCommentVNode("", true)
|
|
63
|
+
])) : createCommentVNode("", true),
|
|
64
|
+
__props.messageSlot ? (openBlock(), createBlock(SlotOutlet, {
|
|
65
|
+
key: 1,
|
|
66
|
+
render: __props.messageSlot,
|
|
67
|
+
scope: { message: props.message, index: __props.index, isGroupStart: __props.isGroupStart, isGroupEnd: __props.isGroupEnd, isLast: __props.isLast, showTime: __props.showTime, time: __props.time }
|
|
68
|
+
}, null, 8, ["render", "scope"])) : (openBlock(), createBlock(_sfc_main$1, {
|
|
69
|
+
key: 2,
|
|
70
|
+
content: props.message.content,
|
|
71
|
+
align: props.message.isOwn ? "end" : "start",
|
|
72
|
+
variant: props.message.variant,
|
|
73
|
+
reply: props.message.replyTo,
|
|
74
|
+
reactions: props.message.reactions,
|
|
75
|
+
"reaction-emojis": __props.reactionEmojis,
|
|
76
|
+
edited: props.message.isEdited,
|
|
77
|
+
deleted: props.message.isDeleted,
|
|
78
|
+
status: props.message.status,
|
|
79
|
+
options: messageOptions.value,
|
|
80
|
+
"additional-options": messageAdditionalOptions.value,
|
|
81
|
+
onOptionClick: _cache[0] || (_cache[0] = (event, option) => emit("option-click", event, props.message, option)),
|
|
82
|
+
onReplyClick: _cache[1] || (_cache[1] = ($event) => emit("reply-click", props.message)),
|
|
83
|
+
onContentClick: _cache[2] || (_cache[2] = (content) => emit("content-click", props.message, content)),
|
|
84
|
+
onReactionToggle: _cache[3] || (_cache[3] = ($event) => emit("reaction-toggle", $event, props.message))
|
|
85
|
+
}, createSlots({ _: 2 }, [
|
|
86
|
+
__props.headerSlot ? {
|
|
87
|
+
name: "header",
|
|
88
|
+
fn: withCtx(() => [
|
|
89
|
+
createVNode(SlotOutlet, {
|
|
90
|
+
render: __props.headerSlot,
|
|
91
|
+
scope: { message: props.message }
|
|
92
|
+
}, null, 8, ["render", "scope"])
|
|
93
|
+
]),
|
|
94
|
+
key: "0"
|
|
95
|
+
} : void 0
|
|
96
|
+
]), 1032, ["content", "align", "variant", "reply", "reactions", "reaction-emojis", "edited", "deleted", "status", "options", "additional-options"]))
|
|
97
|
+
], 10, _hoisted_1);
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
export {
|
|
102
|
+
_sfc_main as default
|
|
103
|
+
};
|
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
labelClasses: { default: void 0 },
|
|
18
18
|
labelOffset: { default: "1rem" },
|
|
19
19
|
height: { default: "0.5rem" },
|
|
20
|
-
borderRadius: { default: "
|
|
20
|
+
borderRadius: { default: "var(--vc-radius-inner)" },
|
|
21
21
|
markerSize: { default: "0.5rem" }
|
|
22
22
|
},
|
|
23
23
|
setup(__props, { expose: __expose }) {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, createVNode } from "vue";
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createTextVNode, toDisplayString, resolveDynamicComponent, createCommentVNode, createVNode, unref } from "vue";
|
|
2
|
+
import { Check, X, Trash2, Pencil, Save } from "@lucide/vue";
|
|
2
3
|
import { confirmModalState } from "../../composables/useConfirmModal.mjs";
|
|
3
4
|
import _sfc_main$1 from "./VcModal.vue.mjs";
|
|
4
5
|
import '../../assets/components/VcButton/VcButton.css';import '../../assets/components/VcModal/VcModal.css';/* empty css */
|
|
@@ -6,13 +7,13 @@ import { tVU } from "../../localization/index.mjs";
|
|
|
6
7
|
import _sfc_main$2 from "../VcButton/VcButton.vue.mjs";
|
|
7
8
|
/* empty css */
|
|
8
9
|
const _hoisted_1 = { class: "w-full flex items-center justify-center" };
|
|
9
|
-
const _hoisted_2 = { class: "mx-1 text-lg font-
|
|
10
|
+
const _hoisted_2 = { class: "mx-1 text-lg font-semibold md:font-medium text-center" };
|
|
10
11
|
const _hoisted_3 = {
|
|
11
12
|
class: "w-full flex justify-between items-center gap-4",
|
|
12
13
|
"data-test": "modal-action-buttons"
|
|
13
14
|
};
|
|
14
15
|
const CONTENT_WRAPPER_CLASS = "w-full flex flex-col items-center justify-center py-6";
|
|
15
|
-
const CONTENT_CLASS = "w-64 text-base font-normal text-
|
|
16
|
+
const CONTENT_CLASS = "w-64 text-base font-normal text-content-primary text-center";
|
|
16
17
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
18
|
__name: "VcConfirmModal",
|
|
18
19
|
props: {
|
|
@@ -73,16 +74,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
74
|
return "primary";
|
|
74
75
|
});
|
|
75
76
|
const buttonConfirmIcon = computed(() => {
|
|
76
|
-
let icon =
|
|
77
|
+
let icon = Check;
|
|
77
78
|
switch (type.value) {
|
|
78
79
|
case "save":
|
|
79
|
-
icon =
|
|
80
|
+
icon = Save;
|
|
80
81
|
break;
|
|
81
82
|
case "edit":
|
|
82
|
-
icon =
|
|
83
|
+
icon = Pencil;
|
|
83
84
|
break;
|
|
84
85
|
case "delete":
|
|
85
|
-
icon =
|
|
86
|
+
icon = Trash2;
|
|
86
87
|
break;
|
|
87
88
|
}
|
|
88
89
|
return icon;
|
|
@@ -126,7 +127,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
127
|
createElementVNode("div", _hoisted_3, [
|
|
127
128
|
createVNode(_sfc_main$2, {
|
|
128
129
|
size: buttonSize.value,
|
|
129
|
-
icon:
|
|
130
|
+
icon: unref(X),
|
|
130
131
|
type: "outline",
|
|
131
132
|
color: "secondary",
|
|
132
133
|
"data-test-name": "button-cancel",
|
|
@@ -136,7 +137,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
136
137
|
createTextVNode(toDisplayString(cancelLabel.value), 1)
|
|
137
138
|
]),
|
|
138
139
|
_: 1
|
|
139
|
-
}, 8, ["size"]),
|
|
140
|
+
}, 8, ["size", "icon"]),
|
|
140
141
|
createVNode(_sfc_main$2, {
|
|
141
142
|
icon: buttonConfirmIcon.value,
|
|
142
143
|
color: buttonConfirmColor.value,
|