@voicenter-team/voicenter-ui-plus 3.4.8 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1023 -558
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunMetrics.css +1 -0
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunRow.css +1 -0
- package/library/assets/components/VcAgentRun/VcAgentRunCard.css +1 -0
- package/library/assets/components/VcAgentRun/VcAgentRunGroup.css +1 -0
- package/library/assets/components/VcAiReasoning/VcAiReasoning.css +1 -0
- package/library/assets/components/VcApprovalCard/VcApprovalCard.css +1 -0
- package/library/assets/components/VcAskUserCard/VcAskUserCard.css +1 -0
- package/library/assets/components/VcAutocomplete/VcAutocomplete.css +1 -1
- package/library/assets/components/VcAvatar/VcAvatar.css +1 -1
- package/library/assets/components/VcBadgeTag/VcBadgeTag.css +1 -1
- package/library/assets/components/VcButton/VcButton.css +1 -1
- package/library/assets/components/VcButton/VcButtonIcon.css +1 -1
- package/library/assets/components/VcButton/VcToggleButton.css +1 -1
- package/library/assets/components/VcCard/VcCard.css +1 -1
- package/library/assets/components/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckbox.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckboxButton.css +1 -1
- package/library/assets/components/VcCodeBlock/VcCodeBlock.css +1 -1
- package/library/assets/components/VcCollapse/VcCollapseItem.css +1 -1
- package/library/assets/components/VcColorPicker/VcColorPicker.css +1 -1
- package/library/assets/components/VcDatePicker/VcDatePicker.css +1 -1
- package/library/assets/components/VcDatePickerPanel/VcDatePickerPanel.css +1 -1
- package/library/assets/components/VcDatetimeRangePicker/VcDatetimeRangePicker.css +1 -1
- package/library/assets/components/VcDropdown/VcDropdown.css +1 -1
- package/library/assets/components/VcDropdown/VcDropdownItem.css +1 -1
- package/library/assets/components/VcEmojiPicker/VcEmojiPicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.css +1 -1
- package/library/assets/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileItem.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderArea.css +1 -1
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcForm/UiComponents/VcInputError.css +1 -1
- package/library/assets/components/VcForm/UiComponents/VcInputLabel.css +1 -1
- package/library/assets/components/VcForm/VcFormItem.css +1 -1
- package/library/assets/components/VcHtmlEditor/VcHtmlEditor.css +1 -1
- package/library/assets/components/VcHyperLink/VcHyperLink.css +1 -1
- package/library/assets/components/VcIconPicker/VcIconPicker.css +1 -1
- package/library/assets/components/VcImageUploader/VcImageUploader.css +1 -1
- package/library/assets/components/VcInput/VcInput.css +1 -1
- package/library/assets/components/VcInputNumber/VcInputNumber.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonCodeMirror.css +1 -1
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- package/library/assets/components/VcJsonSchema/VcJsonSchema.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerCards.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerFields.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerKey.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerMore.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerObject.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerSections.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerState.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTable.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerTree.css +1 -0
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerValue.css +1 -0
- package/library/assets/components/VcJsonViewer/VcJsonViewer.css +1 -0
- package/library/assets/components/VcLightbox/VcLightbox.css +1 -0
- package/library/assets/components/VcLoading/Loaders/Circles.css +1 -1
- package/library/assets/components/VcLoading/Loaders/DotSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LdsSpinner.css +1 -1
- package/library/assets/components/VcLoading/Loaders/LoadIcon.css +1 -1
- package/library/assets/components/VcLoading/Loaders/Stretch.css +1 -1
- package/library/assets/components/VcLoading/VcLoading.css +1 -1
- package/library/assets/components/VcMdEditor/ParameterNode.css +1 -1
- package/library/assets/components/VcMdEditor/VcMdEditorContent.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageFileBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageImageBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageMarkdownBlock.css +1 -0
- package/library/assets/components/VcMessage/content/VcMessageTextBlock.css +1 -1
- package/library/assets/components/VcMessage/content/VcMessageVideoBlock.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageEmojiPicker.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -1
- package/library/assets/components/VcMessagesWrapper/VcMessagesWrapper.css +1 -1
- package/library/assets/components/VcMeterGroup/VcMeterGroup.css +1 -1
- package/library/assets/components/VcModal/VcModal.css +1 -1
- package/library/assets/components/VcNotification/VcNotification.css +1 -1
- package/library/assets/components/VcOtpInput/VcOtpInput.css +1 -1
- package/library/assets/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.css +1 -0
- package/library/assets/components/VcPdfViewer/VcPdfDocument.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentCard.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfViewer.css +1 -0
- package/library/assets/components/VcPhoneInput/VcFlagLabel.css +1 -1
- package/library/assets/components/VcPhoneInput/VcPhoneInput.css +1 -1
- package/library/assets/components/VcPopover/VcConfirmPopover.css +1 -1
- package/library/assets/components/VcPopover/VcPopover.css +1 -1
- package/library/assets/components/VcPopover/VcSelectPopover.css +1 -1
- package/library/assets/components/VcProgress/VcProgress.css +1 -1
- package/library/assets/components/VcProgress/VcProgressCircular.css +1 -1
- package/library/assets/components/VcRadio/VcRadio.css +1 -1
- package/library/assets/components/VcRadioButtons/VcRadioButtonsGroup.css +1 -1
- package/library/assets/components/VcRadioGroup/VcRadioGroup.css +1 -1
- package/library/assets/components/VcRadioTabs/UiComponents/VcRadioTabsNav.css +1 -1
- package/library/assets/components/VcRadioTabs/VcRadioTabs.css +1 -1
- package/library/assets/components/VcSegmented/VcSegmented.css +1 -1
- package/library/assets/components/VcSelect/VcSelect.css +1 -1
- package/library/assets/components/VcSelect/VcSelectOption.css +1 -1
- package/library/assets/components/VcSipFlow/VcSipFlow.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Card.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Circle.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Row.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Square.css +1 -1
- package/library/assets/components/VcSkeletonLoader/Loaders/Text.css +1 -1
- package/library/assets/components/VcSlider/VcSlider.css +1 -1
- package/library/assets/components/VcSoundplayer/VcPlayerPlaybackRate.css +1 -1
- package/library/assets/components/VcSoundplayer/VcSoundPlayerMarker.css +1 -1
- package/library/assets/components/VcSplitButton/VcSplitButton.css +1 -1
- package/library/assets/components/VcSwitch/VcSwitch.css +1 -1
- package/library/assets/components/VcSystemUserPrompt/VcSystemUserPrompt.css +1 -1
- package/library/assets/components/VcTable/VcTable.css +1 -1
- package/library/assets/components/VcTable/VcTable2.css +1 -1
- package/library/assets/components/VcTabs/VcTabNav.css +1 -1
- package/library/assets/components/VcTabs/VcTabs.css +1 -1
- package/library/assets/components/VcTag/VcTag.css +1 -1
- package/library/assets/components/VcTagInput/VcTagInput.css +1 -1
- package/library/assets/components/VcTimeInput/VcTimeInput.css +1 -1
- package/library/assets/components/VcToolCall/UiComponents/VcToolCallValue.css +1 -0
- package/library/assets/components/VcToolCall/VcToolCall.css +1 -0
- package/library/assets/components/VcTour/VcTour.css +1 -1
- package/library/assets/components/VcTransfer/VcTransfer.css +1 -1
- package/library/assets/components/VcTree/VcTree.css +1 -1
- package/library/assets/components/VcTree/VcTreeSelect.css +1 -1
- package/library/assets/components/VcVerticalTabs/VcVerticalTabs.css +1 -1
- package/library/assets/components/VcVerticalTabs/VerticalTabNav.css +1 -1
- package/library/assets/components/VcViewSwitcher/VcViewSwitcher.css +1 -1
- package/library/assets/components/VcWizard/VcSummaryProgress.css +1 -1
- package/library/assets/components/VcWizard/VcWizard.css +1 -1
- package/library/assets/components/VcWizard/VcWizardNavigation.css +1 -1
- package/library/assets/components/VcWizard/VcWizardSummary.css +1 -1
- package/library/assets/entity/components/Form/VcBaseVerticalForm.css +1 -1
- package/library/assets/entity/components/Table/VcEntityListTable.css +1 -1
- package/library/assets/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/autocomplete.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/base.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/button.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/checkbox.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/date-picker-panel.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/image-viewer.css +1 -0
- package/library/assets/node_modules/element-plus/theme-chalk/src/input-number.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/input.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/option.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/popover.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/popper.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/radio-button.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/radio.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/select.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/tree.css +1 -1
- package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.mjs +110 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue3.mjs +5 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.mjs +70 -0
- package/library/components/VcAgentRun/UiComponents/VcAgentRunRow.vue3.mjs +5 -0
- package/library/components/VcAgentRun/VcAgentRunCard.vue.mjs +423 -0
- package/library/components/VcAgentRun/VcAgentRunCard.vue3.mjs +5 -0
- package/library/components/VcAgentRun/VcAgentRunGroup.vue.mjs +210 -0
- package/library/components/VcAgentRun/VcAgentRunGroup.vue3.mjs +5 -0
- package/library/components/VcAgentRun/agentRunStatus.mjs +39 -0
- package/library/components/VcAiReasoning/VcAiReasoning.vue.mjs +227 -0
- package/library/components/VcAiReasoning/VcAiReasoning.vue3.mjs +5 -0
- package/library/components/VcApprovalCard/VcApprovalCard.vue.mjs +419 -0
- package/library/components/VcApprovalCard/VcApprovalCard.vue3.mjs +5 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.mjs +69 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.mjs +177 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.mjs +98 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.mjs +142 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.mjs +156 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue.mjs +76 -0
- package/library/components/VcAskUserCard/UiComponents/VcAskUserText.vue2.mjs +4 -0
- package/library/components/VcAskUserCard/VcAskUserCard.vue.mjs +382 -0
- package/library/components/VcAskUserCard/VcAskUserCard.vue3.mjs +5 -0
- package/library/components/VcAskUserCard/askUserAnswers.mjs +224 -0
- package/library/components/VcAutocomplete/VcAutocomplete.vue.mjs +4 -2
- package/library/components/VcAvatar/VcAvatar.vue.mjs +3 -3
- package/library/components/VcBadgeTag/VcBadgeTag.vue.mjs +8 -5
- package/library/components/VcButton/VcButton.vue.mjs +10 -4
- package/library/components/VcButton/VcButtonIcon.vue.mjs +3 -4
- package/library/components/VcButton/VcToggleButton.vue.mjs +5 -4
- package/library/components/VcChatComposer/VcChatComposer.vue.mjs +154 -51
- package/library/components/VcCodeBlock/VcCodeBlock.vue.mjs +27 -35
- package/library/components/VcCollapse/VcCollapseItem.vue.mjs +12 -7
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +40 -11
- package/library/components/VcDatePickerPanel/VcDatePickerPanel.vue.mjs +49 -32
- package/library/components/VcExcelUploader/VcExcelFileProcessLoader.vue.mjs +2 -2
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +11 -7
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +7 -6
- package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +8 -4
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +2 -1
- package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +13 -12
- package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.mjs +6 -5
- package/library/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.mjs +4 -3
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +7 -3
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.mjs +3 -2
- package/library/components/VcFileUploader/VcFileItem.vue.mjs +59 -31
- package/library/components/VcFileUploader/VcFileUploader.vue.mjs +2 -1
- package/library/components/VcFileUploader/VcFileUploaderArea.vue.mjs +2 -2
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue2.mjs +2 -1
- package/library/components/VcFileUploader/VcSimpleUploaderAction.vue.mjs +4 -3
- package/library/components/VcForm/UiComponents/VcInputLabel.vue.mjs +6 -2
- package/library/components/VcHtmlEditor/VcHtmlEditor.vue.mjs +4 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +19 -31
- package/library/components/VcHtmlEditor/htmlEditor.config.mjs +13 -10
- package/library/components/VcHyperLink/VcHyperLink.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +1 -1
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +27 -14
- package/library/components/VcInput/VcInput.vue.mjs +4 -2
- package/library/components/VcInputNumber/VcInputNumber.vue.mjs +29 -4
- package/library/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.mjs +5 -4
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -2
- package/library/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.mjs +6 -9
- package/library/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.mjs +9 -10
- package/library/components/VcJsonSchema/VcJsonSchema.vue.mjs +0 -1
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.mjs +98 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.mjs +164 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.mjs +50 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.mjs +25 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.mjs +64 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.mjs +53 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.mjs +104 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.mjs +45 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.mjs +259 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.mjs +179 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.mjs +146 -0
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/VcJsonViewer.vue.mjs +454 -0
- package/library/components/VcJsonViewer/VcJsonViewer.vue3.mjs +5 -0
- package/library/components/VcJsonViewer/jsonViewerText.mjs +41 -0
- package/library/components/VcJsonViewer/jsonViewerUtils.mjs +568 -0
- package/library/components/VcJsonViewer/useJsonViewerContext.mjs +25 -0
- package/library/components/VcLightbox/VcLightbox.vue.mjs +417 -0
- package/library/components/VcLightbox/VcLightbox.vue3.mjs +5 -0
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue2.mjs +3 -2
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +5 -4
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LdsSpinner.vue2.mjs +3 -2
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue2.mjs +5 -4
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +4 -3
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue2.mjs +3 -3
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +37 -12
- package/library/components/VcMdEditor/VcMdEditorContent.vue.mjs +10 -0
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +6 -6
- package/library/components/VcMdEditor/ltrNumbersPlugin.mjs +55 -0
- package/library/components/VcMdEditor/readonlyMarkdown.mjs +81 -0
- package/library/components/VcMdEditor/streamingInterval.mjs +12 -0
- package/library/components/VcMessage/VcMessage.vue.mjs +75 -42
- package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +99 -14
- package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue.mjs +5 -0
- package/library/components/VcMessage/content/VcMessageMarkdownBlock.vue2.mjs +33 -0
- package/library/components/VcMessage/content/VcMessageTextBlock.vue.mjs +21 -3
- package/library/components/VcMessage/content/markdownPreview.mjs +32 -0
- package/library/components/VcMessage/content/messageContentComponents.mjs +3 -1
- package/library/components/VcMessagesWrapper/VcMessagesWrapper.vue.mjs +120 -52
- package/library/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.mjs +49 -29
- package/library/components/VcMeterGroup/VcMeterGroup.vue.mjs +1 -1
- package/library/components/VcModal/VcConfirmModal.vue.mjs +10 -9
- package/library/components/VcModal/VcModal.vue.mjs +21 -22
- package/library/components/VcNotification/VcNotification.vue.mjs +2 -2
- package/library/components/VcNotification/VcNotificationMessage.vue.mjs +14 -11
- package/library/components/VcPagination/VcPagination.vue.mjs +5 -4
- package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.mjs +166 -0
- package/library/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue3.mjs +5 -0
- package/library/components/VcPdfViewer/VcPdfDocument.vue.mjs +12 -76
- package/library/components/VcPdfViewer/VcPdfDocumentCard.vue.mjs +18 -8
- package/library/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.mjs +23 -7
- package/library/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.mjs +23 -10
- package/library/components/VcPdfViewer/VcPdfViewer.vue.mjs +581 -0
- package/library/components/VcPdfViewer/VcPdfViewer.vue3.mjs +5 -0
- package/library/components/VcPdfViewer/pdfDocumentActions.mjs +90 -0
- package/library/components/VcPdfViewer/pdfDocumentParams.mjs +11 -0
- package/library/components/VcPdfViewer/pdfStandardFonts.mjs +21 -0
- package/library/components/VcPdfViewer/standard_fonts/FoxitDingbats.pfb +0 -0
- package/library/components/VcPdfViewer/standard_fonts/FoxitSymbol.pfb +0 -0
- package/library/components/VcPdfViewer/standard_fonts/LICENSE_FOXIT +27 -0
- package/library/components/VcPhoneInput/VcPhoneInput.vue.mjs +12 -6
- package/library/components/VcPopover/VcConfirmPopover.vue.mjs +3 -3
- package/library/components/VcPopover/VcSelectPopover.vue.mjs +2 -1
- package/library/components/VcProgress/VcProgress.vue.mjs +11 -20
- package/library/components/VcProgress/VcProgressCircular.vue.mjs +14 -23
- package/library/components/VcProgress/progress.options.mjs +21 -21
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +13 -7
- package/library/components/VcSelect/VcSelect.vue.mjs +18 -19
- package/library/components/VcSelect/VcSelectGrouped.vue.mjs +8 -5
- package/library/components/VcSkeletonLoader/Loaders/Card.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Circle.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Row.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Square.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue.mjs +1 -1
- package/library/components/VcSkeletonLoader/Loaders/Text.vue2.mjs +1 -1
- package/library/components/VcSoundplayer/VcPlayerPlayStopButton.vue.mjs +7 -6
- package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +5 -4
- package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +26 -23
- package/library/components/VcSoundplayer/VcSoundPlayerError.vue.mjs +5 -4
- package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerProgress.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerWrapper.vue.mjs +5 -3
- package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +5 -4
- package/library/components/VcSoundplayer/player.options.mjs +13 -5
- package/library/components/VcSparkline/VcBarLine.vue.mjs +2 -2
- package/library/components/VcSparkline/VcTrendLine.vue.mjs +2 -2
- package/library/components/VcSplitButton/VcSplitButton.vue.mjs +18 -19
- package/library/components/VcSwitch/VcSwitch.vue.mjs +1 -1
- package/library/components/VcTable/VcTable.vue.mjs +18 -11
- package/library/components/VcTabs/VcTabNav.vue.mjs +11 -9
- package/library/components/VcTag/VcTag.vue.mjs +6 -4
- package/library/components/VcTagInput/VcTagInput.vue.mjs +10 -7
- package/library/components/VcTimeInput/VcTimeInput.vue.mjs +18 -8
- package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue.mjs +64 -0
- package/library/components/VcToolCall/UiComponents/VcToolCallValue.vue3.mjs +5 -0
- package/library/components/VcToolCall/VcToolCall.vue.mjs +328 -0
- package/library/components/VcToolCall/VcToolCall.vue3.mjs +5 -0
- package/library/components/VcTree/VcTree.vue.mjs +8 -4
- package/library/components/VcTree/VcTreeSelect.vue.mjs +11 -7
- package/library/components/VcWizard/VcSummaryProgress.vue.mjs +10 -7
- package/library/components/VcWizard/VcSummaryStep.vue.mjs +8 -4
- package/library/components/VcWizard/VcWizardNavigation.vue.mjs +12 -8
- package/library/composables/input/useInputColor.mjs +3 -3
- package/library/composables/useElapsed.mjs +47 -0
- package/library/composables/useThrottledText.mjs +22 -0
- package/library/entity/components/Button/VcEntityAddButton.vue.mjs +4 -3
- package/library/entity/components/Button/VcEntityCancelButton.vue.mjs +4 -3
- package/library/entity/components/Button/VcEntityEditIconButton.vue.mjs +3 -2
- package/library/entity/components/Form/VcBaseVerticalForm.vue.mjs +6 -5
- package/library/entity/components/Form/VcEntityEditPageForm.vue.mjs +4 -3
- package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +7 -6
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +15 -15
- package/library/enum/constants.mjs +5 -11
- package/library/enum/fileTypes.mjs +24 -39
- package/library/enum/inputDefaults.mjs +2 -2
- package/library/index.mjs +263 -235
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/localization/locales/en.json.mjs +172 -1
- package/library/plugin-components.gen.mjs +95 -68
- package/library/plugin.mjs +261 -233
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +174 -122
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/theme/themeMerge.mjs +32 -16
- package/library/theme/themes.json.mjs +172 -222
- package/library/tokens/tokens.mjs +2 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.d.ts +46 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.d.ts +20 -0
- package/library/types/components/VcAgentRun/VcAgentRunCard.vue.d.ts +104 -0
- package/library/types/components/VcAgentRun/VcAgentRunGroup.vue.d.ts +53 -0
- package/library/types/components/VcAgentRun/agentRunStatus.d.ts +13 -0
- package/library/types/components/VcAiReasoning/VcAiReasoning.vue.d.ts +85 -0
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +101 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.d.ts +41 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.d.ts +53 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserText.vue.d.ts +42 -0
- package/library/types/components/VcAskUserCard/UiComponents/askUserControl.d.ts +25 -0
- package/library/types/components/VcAskUserCard/VcAskUserCard.vue.d.ts +84 -0
- package/library/types/components/VcAskUserCard/askUserAnswers.d.ts +57 -0
- package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +72 -72
- package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +1 -1
- package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +1 -1
- package/library/types/components/VcButton/VcButton.vue.d.ts +7 -7
- package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +12 -13
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +4 -4
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +43 -15
- package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +24 -24
- package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +18 -18
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +15 -15
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +12 -12
- package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +1 -1
- package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +3 -3
- package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +1 -1
- package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +21 -21
- package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +18 -18
- package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +4 -4
- package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +1 -1
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +1 -1
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +6 -5
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +1 -1
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +4 -4
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +11 -11
- package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +10 -45
- package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +6 -6
- package/library/types/components/VcFileUploader/VcSimpleUploaderAction.vue.d.ts +2 -2
- package/library/types/components/VcForm/VcForm.vue.d.ts +3 -3
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +2 -2
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +1 -1
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +3 -3
- package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +3 -3
- package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +6 -6
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +3 -3
- package/library/types/components/VcInput/VcInput.vue.d.ts +11 -11
- package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +3 -3
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.d.ts +42 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.d.ts +32 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.d.ts +31 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.d.ts +25 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.d.ts +34 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.d.ts +39 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.d.ts +46 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.d.ts +18 -0
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.d.ts +37 -0
- package/library/types/components/VcJsonViewer/VcJsonViewer.vue.d.ts +162 -0
- package/library/types/components/VcJsonViewer/jsonViewerText.d.ts +8 -0
- package/library/types/components/VcJsonViewer/jsonViewerUtils.d.ts +127 -0
- package/library/types/components/VcJsonViewer/useJsonViewerContext.d.ts +5 -0
- package/library/types/components/VcLightbox/VcLightbox.vue.d.ts +90 -0
- package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +2 -2
- package/library/types/components/VcLoading/VcLoading.vue.d.ts +2 -2
- package/library/types/components/VcLoading/enum.d.ts +2 -2
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +111 -55
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +3 -3
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +1 -1
- package/library/types/components/VcMdEditor/ltrNumbersPlugin.d.ts +16 -0
- package/library/types/components/VcMdEditor/readonlyMarkdown.d.ts +7 -0
- package/library/types/components/VcMdEditor/streamingInterval.d.ts +7 -0
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +24 -3
- package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +6 -2
- package/library/types/components/VcMessage/content/VcMessageMarkdownBlock.vue.d.ts +24 -0
- package/library/types/components/VcMessage/content/markdownPreview.d.ts +1 -0
- package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +1 -1
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +223 -84
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +89 -42
- package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +2 -2
- package/library/types/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +1 -1
- package/library/types/components/VcModal/VcModal.vue.d.ts +3 -3
- package/library/types/components/VcNotification/VcNotification.vue.d.ts +1 -1
- package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +8 -8
- package/library/types/components/VcPagination/VcPagination.vue.d.ts +1 -1
- package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +4 -4
- package/library/types/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.d.ts +64 -0
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +1 -1
- package/library/types/components/VcPdfViewer/VcPdfViewer.vue.d.ts +114 -0
- package/library/types/components/VcPdfViewer/pdfDocumentActions.d.ts +29 -0
- package/library/types/components/VcPdfViewer/pdfDocumentParams.d.ts +14 -0
- package/library/types/components/VcPdfViewer/pdfStandardFonts.d.ts +9 -0
- package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +8 -8
- package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +1 -1
- package/library/types/components/VcPopover/VcPopover.vue.d.ts +1 -1
- package/library/types/components/VcPopover/VcSelectPopover.vue.d.ts +3 -3
- package/library/types/components/VcProgress/VcProgress.vue.d.ts +1 -1
- package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +4 -4
- package/library/types/components/VcProgress/progress.options.d.ts +9 -7
- package/library/types/components/VcRadio/VcRadio.vue.d.ts +15 -15
- package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +9 -9
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +12 -12
- package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +6 -6
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +18 -18
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +42 -42
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +51 -51
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +48 -48
- package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +9 -9
- package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +1 -1
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +6 -6
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +4 -4
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +2 -2
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +4 -4
- package/library/types/components/VcSoundplayer/player.options.d.ts +1 -0
- package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +4 -4
- package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +4 -4
- package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +4 -4
- package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +6 -6
- package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +24 -24
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +4 -4
- package/library/types/components/VcTable/VcTable.vue.d.ts +6 -3
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +1 -1
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +1 -1
- package/library/types/components/VcTag/VcTag.vue.d.ts +3 -3
- package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +14 -14
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +5 -5
- package/library/types/components/VcToolCall/UiComponents/VcToolCallValue.vue.d.ts +66 -0
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +91 -0
- package/library/types/components/VcTour/VcTour.vue.d.ts +1 -1
- package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +3 -3
- package/library/types/components/VcTree/VcTree.vue.d.ts +18 -18
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +42 -42
- package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +3 -3
- package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +3 -3
- package/library/types/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +9 -9
- package/library/types/components/VcWizard/VcSummaryProgress.vue.d.ts +2 -2
- package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +1 -1
- package/library/types/components/exports.d.ts +19 -1
- package/library/types/components.gen.d.ts +9 -0
- package/library/types/composables/input/useFileUploader.d.ts +2 -2
- package/library/types/composables/useElapsed.d.ts +38 -0
- package/library/types/composables/useThrottledText.d.ts +16 -0
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +3 -3
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +3 -3
- package/library/types/enum/constants.d.ts +2 -10
- package/library/types/enum/inputDefaults.d.ts +2 -2
- package/library/types/localization/locales/en.json.d.ts +365 -194
- package/library/types/theme/themes.json.d.ts +177 -227
- package/library/types/tokens/tokens.d.ts +2 -1
- package/library/types/types/VcAgentRun.types.d.ts +197 -0
- package/library/types/types/VcAiChat.types.d.ts +5 -0
- package/library/types/types/VcAiReasoning.types.d.ts +67 -0
- package/library/types/types/VcApprovalCard.types.d.ts +109 -0
- package/library/types/types/VcAskUserCard.types.d.ts +166 -0
- package/library/types/types/VcChatComposer.types.d.ts +86 -0
- package/library/types/types/VcDropdown.types.d.ts +1 -1
- package/library/types/types/VcFileUploader.types.d.ts +26 -0
- package/library/types/types/VcJsonViewer.types.d.ts +41 -0
- package/library/types/types/VcLightbox.types.d.ts +112 -0
- package/library/types/types/VcMessage.types.d.ts +42 -4
- package/library/types/types/VcMessagesWrapper.types.d.ts +100 -12
- package/library/types/types/VcOtpInput.types.d.ts +1 -1
- package/library/types/types/VcPdfViewer.types.d.ts +138 -0
- package/library/types/types/VcProgress.types.d.ts +1 -1
- package/library/types/types/VcToolCall.types.d.ts +102 -0
- package/library/types/types/index.d.ts +9 -1
- package/library/types/utils/aiChat.d.ts +50 -0
- package/library/types/utils/download.d.ts +5 -0
- package/library/types/utils/elementPlusIcons.d.ts +9 -0
- package/library/types/utils/fileAccept.d.ts +30 -0
- package/library/types/utils/i18nParams.d.ts +8 -0
- package/library/types/utils/numberRuns.d.ts +21 -0
- package/library/types/utils/themeColor.d.ts +1 -0
- package/library/utils/UniqueComponentId.mjs +2 -2
- package/library/utils/aiChat.mjs +121 -0
- package/library/utils/download.mjs +13 -0
- package/library/utils/elementPlusIcons.mjs +14 -0
- package/library/utils/fileAccept.mjs +66 -0
- package/library/utils/i18nParams.mjs +6 -0
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/library/utils/numberRuns.mjs +63 -0
- package/library/utils/themeColor.mjs +9 -0
- package/package.json +216 -215
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +70 -37
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +61 -40
- package/src/theme/themes.json +177 -227
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +176 -192
- package/library/types/types/VcTagInput.types.d.ts +0 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { VcAiTimestamp } from './VcAiChat.types';
|
|
2
|
+
export interface VcAiReasoningProps {
|
|
3
|
+
/**
|
|
4
|
+
* Reasoning text. Markdown, rendered by a read-only VcMdEditor (updates are throttled while streaming), unless `markdown` is false.
|
|
5
|
+
*/
|
|
6
|
+
text?: string;
|
|
7
|
+
/**
|
|
8
|
+
* The model is still thinking: a "Thinking…" label with a live timer, the body open and `aria-busy`.
|
|
9
|
+
*/
|
|
10
|
+
streaming?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the body is open (`v-model:open`). Uncontrolled when not set.
|
|
13
|
+
*/
|
|
14
|
+
open?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Opens the body when `streaming` turns true.
|
|
17
|
+
*/
|
|
18
|
+
autoOpen?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Collapses the body `collapseDelay` ms after streaming ends, if it was opened automatically and the user did not toggle it meanwhile.
|
|
21
|
+
*/
|
|
22
|
+
autoCollapse?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Delay of the automatic collapse, in ms.
|
|
25
|
+
*/
|
|
26
|
+
collapseDelay?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Known thinking time in ms. Otherwise it is measured between `streaming` true → false; when unknown (a reloaded message) the label is "Thought".
|
|
29
|
+
*/
|
|
30
|
+
durationMs?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Start of the live timer. Defaults to the moment `streaming` turned true.
|
|
33
|
+
*/
|
|
34
|
+
startedAt?: VcAiTimestamp;
|
|
35
|
+
/**
|
|
36
|
+
* Replaces the trigger label ("Thinking…" / "Thought for 12 seconds").
|
|
37
|
+
*/
|
|
38
|
+
label?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Maximum body height; the body scrolls and stays pinned to the bottom while streaming. A number is px.
|
|
41
|
+
*/
|
|
42
|
+
maxHeight?: string | number;
|
|
43
|
+
/**
|
|
44
|
+
* `false` renders the text as plain pre-wrapped text instead of markdown.
|
|
45
|
+
*/
|
|
46
|
+
markdown?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface VcAiReasoningEmits {
|
|
49
|
+
/**
|
|
50
|
+
* The body was opened or closed (`v-model:open`).
|
|
51
|
+
*/
|
|
52
|
+
(e: 'update:open', open: boolean): void;
|
|
53
|
+
}
|
|
54
|
+
export interface VcAiReasoningLabelSlotProps {
|
|
55
|
+
streaming: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Known or measured duration; `undefined` while unknown.
|
|
58
|
+
*/
|
|
59
|
+
durationMs: number | undefined;
|
|
60
|
+
open: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface VcAiReasoningExposed {
|
|
63
|
+
/**
|
|
64
|
+
* Opens or closes the body.
|
|
65
|
+
*/
|
|
66
|
+
toggle: () => void;
|
|
67
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import type { VcAiTimestamp } from './VcAiChat.types';
|
|
2
|
+
/**
|
|
3
|
+
* `pending` — waits for a decision; `submitting` — the decision is being sent;
|
|
4
|
+
* `approved` / `denied` — resolved; `expired` — no longer waiting.
|
|
5
|
+
*/
|
|
6
|
+
export type VcApprovalStatus = 'pending' | 'submitting' | 'approved' | 'denied' | 'expired';
|
|
7
|
+
export type VcApprovalAction = 'approve' | 'always-allow' | 'deny';
|
|
8
|
+
export interface VcApprovalCardProps {
|
|
9
|
+
/**
|
|
10
|
+
* Card title, e.g. "AI wants to update the queue". Defaults to the localized "Approval required".
|
|
11
|
+
*/
|
|
12
|
+
title?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Plain-text description (`dir="auto"`). Use the `description` slot for rich content.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Machine name of the action, shown as a code chip.
|
|
19
|
+
*/
|
|
20
|
+
toolName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Arguments of the action, shown in a VcJsonViewer behind "Show details". A string that holds JSON is parsed.
|
|
23
|
+
*/
|
|
24
|
+
args?: unknown;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the arguments are shown (`v-model:args-open`).
|
|
27
|
+
*/
|
|
28
|
+
argsOpen?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Decision state. The card is controlled: it only emits, the host sets the status.
|
|
31
|
+
*/
|
|
32
|
+
status?: VcApprovalStatus;
|
|
33
|
+
/**
|
|
34
|
+
* The action the user took. While `submitting`, its button shows a spinner; once resolved it picks the outcome text ("Approved" or "Always allowed").
|
|
35
|
+
*/
|
|
36
|
+
action?: VcApprovalAction;
|
|
37
|
+
/**
|
|
38
|
+
* Buttons to show, in this order.
|
|
39
|
+
*/
|
|
40
|
+
actions?: Array<VcApprovalAction>;
|
|
41
|
+
/**
|
|
42
|
+
* Overrides the localized "Approve" label.
|
|
43
|
+
*/
|
|
44
|
+
approveLabel?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Overrides the localized "Always allow" label.
|
|
47
|
+
*/
|
|
48
|
+
alwaysAllowLabel?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Overrides the localized "Deny" label.
|
|
51
|
+
*/
|
|
52
|
+
denyLabel?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Hover hint of the Always allow button (a VcPopover with `trigger="hover"`). Overrides the localized text.
|
|
55
|
+
*/
|
|
56
|
+
alwaysAllowHint?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Who decided, shown as "by Dana" after the outcome.
|
|
59
|
+
*/
|
|
60
|
+
resolvedBy?: string;
|
|
61
|
+
/**
|
|
62
|
+
* When it was decided, shown after the outcome in `timeFormat`.
|
|
63
|
+
*/
|
|
64
|
+
resolvedAt?: VcAiTimestamp;
|
|
65
|
+
/**
|
|
66
|
+
* dayjs format of `resolvedAt`.
|
|
67
|
+
*/
|
|
68
|
+
timeFormat?: string;
|
|
69
|
+
/**
|
|
70
|
+
* One wrapping row: icon · title · tool chip · buttons · details toggle.
|
|
71
|
+
*/
|
|
72
|
+
compact?: boolean;
|
|
73
|
+
}
|
|
74
|
+
export interface VcApprovalCardEmits {
|
|
75
|
+
/**
|
|
76
|
+
* Approve was clicked. All buttons stay disabled until the `status` prop changes.
|
|
77
|
+
*/
|
|
78
|
+
(e: 'approve'): void;
|
|
79
|
+
/**
|
|
80
|
+
* Always allow was clicked. All buttons stay disabled until the `status` prop changes.
|
|
81
|
+
*/
|
|
82
|
+
(e: 'always-allow'): void;
|
|
83
|
+
/**
|
|
84
|
+
* Deny was clicked. All buttons stay disabled until the `status` prop changes.
|
|
85
|
+
*/
|
|
86
|
+
(e: 'deny'): void;
|
|
87
|
+
/**
|
|
88
|
+
* The arguments were shown or hidden (`v-model:args-open`).
|
|
89
|
+
*/
|
|
90
|
+
(e: 'update:argsOpen', open: boolean): void;
|
|
91
|
+
}
|
|
92
|
+
export interface VcApprovalCardArgsSlotProps {
|
|
93
|
+
args: unknown;
|
|
94
|
+
}
|
|
95
|
+
export interface VcApprovalCardActionsSlotProps {
|
|
96
|
+
/**
|
|
97
|
+
* True while submitting, resolved, or after a click until `status` changes.
|
|
98
|
+
*/
|
|
99
|
+
disabled: boolean;
|
|
100
|
+
approve: () => void;
|
|
101
|
+
alwaysAllow: () => void;
|
|
102
|
+
deny: () => void;
|
|
103
|
+
}
|
|
104
|
+
export interface VcApprovalCardOutcomeSlotProps {
|
|
105
|
+
status: VcApprovalStatus;
|
|
106
|
+
action: VcApprovalAction | undefined;
|
|
107
|
+
resolvedBy: string | undefined;
|
|
108
|
+
resolvedAt: VcAiTimestamp | undefined;
|
|
109
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a question is answered:
|
|
3
|
+
* `single-select` — one option (radio buttons), "Other" with free text when `allowOther`;
|
|
4
|
+
* `multi-select` — any number of options (checkboxes and "All of the above"), "Other" when `allowOther`;
|
|
5
|
+
* `rank-priorities` — every option put in order, most important first;
|
|
6
|
+
* `text` — free text; `confirm` — yes or no.
|
|
7
|
+
*/
|
|
8
|
+
export type VcAskUserQuestionType = 'single-select' | 'multi-select' | 'rank-priorities' | 'text' | 'confirm';
|
|
9
|
+
export interface VcAskUserOption {
|
|
10
|
+
/**
|
|
11
|
+
* Value carried by the answer.
|
|
12
|
+
*/
|
|
13
|
+
value: string;
|
|
14
|
+
/**
|
|
15
|
+
* Text of the option.
|
|
16
|
+
*/
|
|
17
|
+
label: string;
|
|
18
|
+
/**
|
|
19
|
+
* A line under the label.
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Lists the option first and marks it "(Recommended)".
|
|
24
|
+
*/
|
|
25
|
+
recommended?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface VcAskUserQuestion {
|
|
28
|
+
/**
|
|
29
|
+
* Key of the question's answer in the answers map; unique within the set.
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* A short label (one to three words). Shown above the prompt when the set has several questions, and before the
|
|
34
|
+
* answer in the header of an answered card.
|
|
35
|
+
*/
|
|
36
|
+
header?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The question.
|
|
39
|
+
*/
|
|
40
|
+
prompt: string;
|
|
41
|
+
type: VcAskUserQuestionType;
|
|
42
|
+
/**
|
|
43
|
+
* A required question needs an answer before Submit. Defaults to `true`.
|
|
44
|
+
*/
|
|
45
|
+
required?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Options of `single-select`, `multi-select` and `rank-priorities`. For `confirm`, exactly two options replace
|
|
48
|
+
* Yes / No: the first one means yes.
|
|
49
|
+
*/
|
|
50
|
+
options?: Array<VcAskUserOption>;
|
|
51
|
+
/**
|
|
52
|
+
* Adds "Other" with a text field to `single-select` and `multi-select`. Defaults to `false`.
|
|
53
|
+
*/
|
|
54
|
+
allowOther?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Placeholder of a `text` question.
|
|
57
|
+
*/
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
/**
|
|
60
|
+
* A `text` question gets a text area that grows with its text; Shift+Enter makes a new line.
|
|
61
|
+
*/
|
|
62
|
+
multiline?: boolean;
|
|
63
|
+
}
|
|
64
|
+
export type VcAskUserAnswerValue = string | Array<string> | boolean;
|
|
65
|
+
export interface VcAskUserAnswer {
|
|
66
|
+
/**
|
|
67
|
+
* `single-select`: the option value, or the free text when `isOther`. `multi-select`: the picked option values in
|
|
68
|
+
* the order of the options, then the free text last when `isOther`. `rank-priorities`: every option value, most
|
|
69
|
+
* important first. `text`: the text. `confirm`: `true` for yes.
|
|
70
|
+
*/
|
|
71
|
+
value: VcAskUserAnswerValue;
|
|
72
|
+
/**
|
|
73
|
+
* The answer carries free text from "Other".
|
|
74
|
+
*/
|
|
75
|
+
isOther?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* The answer in words: the chosen label(s), the ranking, the confirm choice.
|
|
78
|
+
*/
|
|
79
|
+
label?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Answers by question id.
|
|
83
|
+
*/
|
|
84
|
+
export type VcAskUserAnswers = Record<string, VcAskUserAnswer>;
|
|
85
|
+
/**
|
|
86
|
+
* `pending` — waits for the answers; `submitting` — the answers (or the skip) are being sent;
|
|
87
|
+
* `answered` / `skipped` — resolved; `expired` — no longer waiting for an answer.
|
|
88
|
+
*/
|
|
89
|
+
export type VcAskUserStatus = 'pending' | 'submitting' | 'answered' | 'skipped' | 'expired';
|
|
90
|
+
export type VcAskUserAction = 'submit' | 'skip';
|
|
91
|
+
export interface VcAskUserCardProps {
|
|
92
|
+
/**
|
|
93
|
+
* Text shown before the questions (`dir="auto"`).
|
|
94
|
+
*/
|
|
95
|
+
preamble?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The questions, in order. A set the card cannot show (no questions, a choice question with fewer than two
|
|
98
|
+
* options, a repeated id) is treated as `invalid`.
|
|
99
|
+
*/
|
|
100
|
+
questions?: Array<VcAskUserQuestion>;
|
|
101
|
+
/**
|
|
102
|
+
* The answers by question id (`v-model:answers`). While `pending` they follow the controls; once `answered` they
|
|
103
|
+
* are the stored answers the card shows. Uncontrolled when not bound.
|
|
104
|
+
*/
|
|
105
|
+
answers?: VcAskUserAnswers;
|
|
106
|
+
/**
|
|
107
|
+
* Lifecycle state. The card is controlled: it only emits `submit` / `skip`, the host sets the status.
|
|
108
|
+
*/
|
|
109
|
+
status?: VcAskUserStatus;
|
|
110
|
+
/**
|
|
111
|
+
* The action the user took. While `submitting`, its button shows a spinner.
|
|
112
|
+
*/
|
|
113
|
+
action?: VcAskUserAction;
|
|
114
|
+
/**
|
|
115
|
+
* The question set could not be read: the card shows a warning and Skip instead of the questions.
|
|
116
|
+
*/
|
|
117
|
+
invalid?: boolean;
|
|
118
|
+
/**
|
|
119
|
+
* An error from the host (e.g. the answers could not be sent), shown above the buttons.
|
|
120
|
+
*/
|
|
121
|
+
errorText?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the questions of an answered, skipped or expired card are shown (`v-model:open`). Uncontrolled when not
|
|
124
|
+
* set.
|
|
125
|
+
*/
|
|
126
|
+
open?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Title of a pending card. Defaults to the localized "A question from the agent" / "Questions from the agent".
|
|
129
|
+
*/
|
|
130
|
+
title?: string;
|
|
131
|
+
/**
|
|
132
|
+
* Shows Skip while pending. Defaults to `true` when some question is optional; an invalid set always has Skip.
|
|
133
|
+
*/
|
|
134
|
+
skippable?: boolean;
|
|
135
|
+
/**
|
|
136
|
+
* Overrides the localized "Submit" label.
|
|
137
|
+
*/
|
|
138
|
+
submitLabel?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Overrides the localized "Skip" label.
|
|
141
|
+
*/
|
|
142
|
+
skipLabel?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface VcAskUserCardEmits {
|
|
145
|
+
/**
|
|
146
|
+
* Submit was clicked (or a lone question completed by a pick), with the answers checked against the questions.
|
|
147
|
+
* Every control stays disabled until `status` or `errorText` changes.
|
|
148
|
+
*/
|
|
149
|
+
(e: 'submit', answers: VcAskUserAnswers): void;
|
|
150
|
+
/**
|
|
151
|
+
* Skip was clicked. Every control stays disabled until `status` or `errorText` changes.
|
|
152
|
+
*/
|
|
153
|
+
(e: 'skip'): void;
|
|
154
|
+
/**
|
|
155
|
+
* An answer changed (`v-model:answers`).
|
|
156
|
+
*/
|
|
157
|
+
(e: 'update:answers', answers: VcAskUserAnswers): void;
|
|
158
|
+
/**
|
|
159
|
+
* The questions of a resolved card were shown or hidden (`v-model:open`).
|
|
160
|
+
*/
|
|
161
|
+
(e: 'update:open', open: boolean): void;
|
|
162
|
+
}
|
|
163
|
+
export interface VcAskUserCardIconSlotProps {
|
|
164
|
+
status: VcAskUserStatus;
|
|
165
|
+
invalid: boolean;
|
|
166
|
+
}
|
|
@@ -47,6 +47,10 @@ export type VcChatAttachment = FileUploaded & {
|
|
|
47
47
|
* 0–100, for `status: 'uploading'`.
|
|
48
48
|
*/
|
|
49
49
|
progress?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Message shown for `status: 'error'` instead of the generic "Upload failed".
|
|
52
|
+
*/
|
|
53
|
+
error?: string;
|
|
50
54
|
};
|
|
51
55
|
export interface VcChatComposerSendPayload<Value = unknown> {
|
|
52
56
|
/**
|
|
@@ -110,4 +114,86 @@ export interface VcChatComposerProps {
|
|
|
110
114
|
* Clears the text, the attachments and the voice message after `send`.
|
|
111
115
|
*/
|
|
112
116
|
clearOnSend?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* An answer is being generated: the Send button becomes Stop (emits `stop`) and Enter does not send.
|
|
119
|
+
* Unlike `disabled`, the text stays editable, so the user can type ahead.
|
|
120
|
+
*/
|
|
121
|
+
streaming?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Shows the emoji picker button.
|
|
124
|
+
*/
|
|
125
|
+
enableEmoji?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Shows the attach button and accepts dropped and pasted files.
|
|
128
|
+
*/
|
|
129
|
+
enableAttachments?: boolean;
|
|
130
|
+
/**
|
|
131
|
+
* Shows the "Press Enter to send" hint.
|
|
132
|
+
*/
|
|
133
|
+
showSendHint?: boolean;
|
|
134
|
+
}
|
|
135
|
+
export interface VcChatComposerEmits {
|
|
136
|
+
/**
|
|
137
|
+
* The text changed (`v-model`), in the `format` of the composer.
|
|
138
|
+
*/
|
|
139
|
+
(e: 'update:modelValue', value: unknown): void;
|
|
140
|
+
/**
|
|
141
|
+
* Files were attached or removed (`v-model:attachments`).
|
|
142
|
+
*/
|
|
143
|
+
(e: 'update:attachments', attachments: Array<VcChatAttachment>): void;
|
|
144
|
+
/**
|
|
145
|
+
* Send was clicked or Enter pressed with something to send; never while `streaming`.
|
|
146
|
+
*/
|
|
147
|
+
(e: 'send', payload: VcChatComposerSendPayload): void;
|
|
148
|
+
/**
|
|
149
|
+
* Retry was clicked on an attachment with `status: 'error'`.
|
|
150
|
+
*/
|
|
151
|
+
(e: 'retry', attachment: VcChatAttachment): void;
|
|
152
|
+
/**
|
|
153
|
+
* An emoji was picked in the emoji picker.
|
|
154
|
+
*/
|
|
155
|
+
(e: 'emoji-select', emoji: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* Stop was clicked while `streaming`.
|
|
158
|
+
*/
|
|
159
|
+
(e: 'stop'): void;
|
|
160
|
+
/**
|
|
161
|
+
* The preview of an image attachment was clicked, e.g. to open it in VcLightbox.
|
|
162
|
+
*/
|
|
163
|
+
(e: 'attachment-click', attachment: VcChatAttachment): void;
|
|
164
|
+
/**
|
|
165
|
+
* The text field got focus.
|
|
166
|
+
*/
|
|
167
|
+
(e: 'focus'): void;
|
|
168
|
+
/**
|
|
169
|
+
* The text field lost focus.
|
|
170
|
+
*/
|
|
171
|
+
(e: 'blur'): void;
|
|
172
|
+
}
|
|
173
|
+
export interface VcChatComposerToolbarStartSlotProps {
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
streaming: boolean;
|
|
176
|
+
}
|
|
177
|
+
export interface VcChatComposerToolbarEndSlotProps {
|
|
178
|
+
disabled: boolean;
|
|
179
|
+
streaming: boolean;
|
|
180
|
+
/**
|
|
181
|
+
* There is text or an attachment to send and nothing blocks sending.
|
|
182
|
+
*/
|
|
183
|
+
canSend: boolean;
|
|
184
|
+
}
|
|
185
|
+
export interface VcChatComposerExposed {
|
|
186
|
+
/**
|
|
187
|
+
* Sends the current text and attachments, as the Send button does.
|
|
188
|
+
*/
|
|
189
|
+
send: () => void;
|
|
190
|
+
focus: () => void;
|
|
191
|
+
/**
|
|
192
|
+
* Attaches files programmatically, e.g. from a drop zone of the host. `accept` and the size limits apply.
|
|
193
|
+
*/
|
|
194
|
+
addFiles: (files: Array<File>) => void;
|
|
195
|
+
/**
|
|
196
|
+
* Clears the text, the attachments and the voice message without sending.
|
|
197
|
+
*/
|
|
198
|
+
clear: () => void;
|
|
113
199
|
}
|
|
@@ -16,7 +16,7 @@ export type VcDropdownOption = {
|
|
|
16
16
|
/**
|
|
17
17
|
* Extra CSS classes for the icon. Useful when the icon is a Vue
|
|
18
18
|
* component (Lucide) and you still want utility classes like
|
|
19
|
-
* `text-success` applied to it.
|
|
19
|
+
* `text-content-success` applied to it.
|
|
20
20
|
*/
|
|
21
21
|
iconClass?: string;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { IFileTypeStyle } from '../composables/input/useFileUploader';
|
|
1
2
|
export interface FileUploaded extends File {
|
|
2
3
|
id?: number;
|
|
3
4
|
/**
|
|
@@ -12,3 +13,28 @@ export type ReturnFileType = 'base64' | 'file';
|
|
|
12
13
|
* Upload state of a VcFileItem; no status means a plain file.
|
|
13
14
|
*/
|
|
14
15
|
export type VcFileItemStatus = 'uploading' | 'error';
|
|
16
|
+
export interface VcFileItemProps {
|
|
17
|
+
file: FileUploaded;
|
|
18
|
+
/**
|
|
19
|
+
* Icon / color per extension on top of the built-in ones; the reserved `default` key
|
|
20
|
+
* restyles the fallback for unknown extensions.
|
|
21
|
+
*/
|
|
22
|
+
fileTypeMap?: Record<string, IFileTypeStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Shows the remove button.
|
|
25
|
+
*/
|
|
26
|
+
removable?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Upload state: a progress bar while uploading, "Upload failed" with a retry button on error.
|
|
30
|
+
*/
|
|
31
|
+
status?: VcFileItemStatus;
|
|
32
|
+
/**
|
|
33
|
+
* 0–100, for `status: 'uploading'`.
|
|
34
|
+
*/
|
|
35
|
+
progress?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Message shown for `status: 'error'` instead of the localized "Upload failed".
|
|
38
|
+
*/
|
|
39
|
+
errorText?: string;
|
|
40
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ComputedRef } from 'vue';
|
|
2
|
+
import type { COMPONENT_COLOR_TYPE } from '../enum/constants';
|
|
3
|
+
export declare type VcJsonPrimitive = string | number | boolean | null;
|
|
4
|
+
export declare type VcJsonObject = {
|
|
5
|
+
[key: string]: VcJsonValue;
|
|
6
|
+
};
|
|
7
|
+
export declare type VcJsonArray = Array<VcJsonValue>;
|
|
8
|
+
export declare type VcJsonValue = VcJsonPrimitive | VcJsonObject | VcJsonArray;
|
|
9
|
+
/**
|
|
10
|
+
* @description The view the viewer is showing.
|
|
11
|
+
* - `auto` derives the layout from the payload shape (array → table,
|
|
12
|
+
* object of records → cards, any other object → key/value summary)
|
|
13
|
+
* - `tree` is an expandable tree of every node
|
|
14
|
+
* - `raw` is the pretty-printed JSON source
|
|
15
|
+
*/
|
|
16
|
+
export declare type VcJsonViewerView = 'auto' | 'tree' | 'raw';
|
|
17
|
+
/** @description Type of a single JSON value, as shown in type chips. */
|
|
18
|
+
export declare type VcJsonValueKind = 'string' | 'number' | 'boolean' | 'null' | 'object' | 'array';
|
|
19
|
+
/** @description Layout the `auto` view resolved for a value. */
|
|
20
|
+
export declare type VcJsonAutoLayout = 'value' | 'empty' | 'table' | 'cards' | 'object';
|
|
21
|
+
/**
|
|
22
|
+
* @description Maps a string value (case-insensitive) to a tag color, so
|
|
23
|
+
* status-like values such as `failed` or `active` render as colored tags.
|
|
24
|
+
*/
|
|
25
|
+
export declare type VcJsonViewerStatusColors = Record<string, COMPONENT_COLOR_TYPE>;
|
|
26
|
+
/** @description Shared rendering options, provided to every nested level. */
|
|
27
|
+
export declare type VcJsonViewerContext = {
|
|
28
|
+
pageSize: number;
|
|
29
|
+
unwrap: boolean;
|
|
30
|
+
expandDepth: number;
|
|
31
|
+
humanizeKeys: boolean;
|
|
32
|
+
formatDates: boolean;
|
|
33
|
+
dateFormat: string;
|
|
34
|
+
statusColors: VcJsonViewerStatusColors;
|
|
35
|
+
statusKeys: Array<string>;
|
|
36
|
+
expandAll: boolean;
|
|
37
|
+
expandVersion: number;
|
|
38
|
+
};
|
|
39
|
+
export declare type VcJsonViewerProvideType = {
|
|
40
|
+
options: ComputedRef<VcJsonViewerContext>;
|
|
41
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One image of the lightbox. A plain string in `items` is the same as `{ src }`.
|
|
3
|
+
*/
|
|
4
|
+
export interface VcLightboxItem {
|
|
5
|
+
/**
|
|
6
|
+
* Image URL.
|
|
7
|
+
*/
|
|
8
|
+
src: string;
|
|
9
|
+
/**
|
|
10
|
+
* Alternative text of the image; also the dialog label when there is no `title`.
|
|
11
|
+
*/
|
|
12
|
+
alt?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Caption shown under the image and used as the dialog label.
|
|
15
|
+
*/
|
|
16
|
+
title?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Downloaded instead of `src`, e.g. the original file while `src` is a resized preview.
|
|
19
|
+
*/
|
|
20
|
+
downloadUrl?: string;
|
|
21
|
+
/**
|
|
22
|
+
* File name of the download. Taken from the URL when not set.
|
|
23
|
+
*/
|
|
24
|
+
fileName?: string;
|
|
25
|
+
}
|
|
26
|
+
export type VcLightboxSource = VcLightboxItem | string;
|
|
27
|
+
export interface VcLightboxProps {
|
|
28
|
+
/**
|
|
29
|
+
* Visibility (`v-model`).
|
|
30
|
+
*/
|
|
31
|
+
modelValue?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Images to browse. Strings are image URLs.
|
|
34
|
+
*/
|
|
35
|
+
items?: Array<VcLightboxSource>;
|
|
36
|
+
/**
|
|
37
|
+
* Index of the shown image (`v-model:index`). Changing it while open switches the image and resets the zoom.
|
|
38
|
+
*/
|
|
39
|
+
index?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Next on the last image goes to the first one, and back.
|
|
42
|
+
*/
|
|
43
|
+
loop?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Allows zoom by the toolbar buttons, the wheel and ↑ / ↓ (each step × 1.2), and shows the zoom buttons.
|
|
46
|
+
* The image can always be dragged; Space switches between "fit" and the actual size.
|
|
47
|
+
*/
|
|
48
|
+
zoomable?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Upper zoom limit, as a scale of the fitted image (the lower limit is 0.2).
|
|
51
|
+
*/
|
|
52
|
+
maxZoom?: number;
|
|
53
|
+
/**
|
|
54
|
+
* Shows the Download button.
|
|
55
|
+
*/
|
|
56
|
+
downloadable?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* A click on the backdrop closes the lightbox.
|
|
59
|
+
*/
|
|
60
|
+
closeOnBackdrop?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Escape closes the lightbox (only the topmost dialog, as in VcModal).
|
|
63
|
+
*/
|
|
64
|
+
closeOnEscape?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Shows "2 of 5". Never shown for a single image.
|
|
67
|
+
*/
|
|
68
|
+
showCounter?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface VcLightboxEmits {
|
|
71
|
+
/**
|
|
72
|
+
* Visibility changed (`v-model`).
|
|
73
|
+
*/
|
|
74
|
+
(e: 'update:modelValue', value: boolean): void;
|
|
75
|
+
/**
|
|
76
|
+
* The shown image changed (`v-model:index`).
|
|
77
|
+
*/
|
|
78
|
+
(e: 'update:index', index: number): void;
|
|
79
|
+
/**
|
|
80
|
+
* The lightbox opened.
|
|
81
|
+
*/
|
|
82
|
+
(e: 'open'): void;
|
|
83
|
+
/**
|
|
84
|
+
* The lightbox closed.
|
|
85
|
+
*/
|
|
86
|
+
(e: 'close'): void;
|
|
87
|
+
/**
|
|
88
|
+
* An image failed to load; the broken state is shown and Download stays available.
|
|
89
|
+
*/
|
|
90
|
+
(e: 'error', item: VcLightboxItem): void;
|
|
91
|
+
/**
|
|
92
|
+
* Download was clicked. Call `event.preventDefault()` to download it yourself, e.g. a cross-origin file.
|
|
93
|
+
*/
|
|
94
|
+
(e: 'download', item: VcLightboxItem, event: MouseEvent): void;
|
|
95
|
+
}
|
|
96
|
+
export interface VcLightboxToolbarSlotProps {
|
|
97
|
+
item: VcLightboxItem;
|
|
98
|
+
index: number;
|
|
99
|
+
}
|
|
100
|
+
export interface VcLightboxCaptionSlotProps {
|
|
101
|
+
item: VcLightboxItem;
|
|
102
|
+
index: number;
|
|
103
|
+
}
|
|
104
|
+
export interface VcLightboxExposed {
|
|
105
|
+
/**
|
|
106
|
+
* Opens the lightbox at an image index.
|
|
107
|
+
*/
|
|
108
|
+
open: (index?: number) => void;
|
|
109
|
+
close: () => void;
|
|
110
|
+
next: () => void;
|
|
111
|
+
prev: () => void;
|
|
112
|
+
}
|