@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
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ This is Vue 3.x + Typescript component library made for Voicenter systems.
|
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
9
|
npm i @voicenter-team/voicenter-ui-plus
|
|
10
|
-
npm i vue@^3.5 element-plus @vueuse/core dayjs lodash-es libphonenumber-js maska
|
|
10
|
+
npm i vue@^3.5 element-plus @vueuse/core @lucide/vue dayjs lodash-es libphonenumber-js maska
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
### Sass compiler (build-time)
|
|
@@ -24,12 +24,18 @@ Optional peer deps — install only for the heavy components you use:
|
|
|
24
24
|
|
|
25
25
|
| Component | Peer deps |
|
|
26
26
|
|---|---|
|
|
27
|
-
| `VcPdfDocument` | `pdfjs-dist@^2.16.105` |
|
|
27
|
+
| `VcPdfDocument` / `VcPdfViewer` | `pdfjs-dist@^2.16.105` |
|
|
28
28
|
| `VcSoundPlayer` | `wavesurfer.js` |
|
|
29
29
|
| `VcExcelFileUploader` | `xlsx` |
|
|
30
30
|
| `VcImageUploader` | `vue-advanced-cropper` |
|
|
31
31
|
| `VcHtmlEditor` / `VcJsonSchema` | `codemirror @codemirror/lang-html @codemirror/lang-json @codemirror/lang-markdown vue-codemirror6` |
|
|
32
|
-
| `VcMdEditor` | `@milkdown/crepe @milkdown/kit @milkdown/vue
|
|
32
|
+
| `VcMdEditor` | `@milkdown/crepe @milkdown/kit @milkdown/utils @milkdown/vue` (all `^7.22.0`: older releases lose every list with the current `prosemirror-model`) `@prosemirror-adapter/vue codemirror @codemirror/lang-markdown vue-codemirror6` |
|
|
33
|
+
| `VcAiReasoning` | the `VcMdEditor` peers |
|
|
34
|
+
| `VcAgentRunCard` / `VcAgentRunGroup` | the `VcMdEditor` peers and `highlight.js` (tool steps and response data through `VcJsonViewer` / `VcCodeBlock`) |
|
|
35
|
+
| `VcToolCall` / `VcApprovalCard` | `highlight.js` (through `VcJsonViewer` / `VcCodeBlock`) |
|
|
36
|
+
| `VcMessage` | the `VcMdEditor` peers, only when a message has a `markdown` block (the block is loaded on demand) |
|
|
37
|
+
| `VcChatComposer` | `@tiptap/core @tiptap/pm @tiptap/vue-3 @tiptap/extension-document @tiptap/extension-paragraph @tiptap/extension-text @tiptap/extension-bold @tiptap/extension-italic @tiptap/extension-strike @tiptap/extension-code @tiptap/extension-mention @tiptap/extensions @tiptap/suggestion @floating-ui/dom emojibase-data wavesurfer.js` |
|
|
38
|
+
| `VcLightbox` | `element-plus` (its `ElImageViewer`; already a required peer) |
|
|
33
39
|
|
|
34
40
|
### If you're on Vite 8 / rolldown (and skipping some optional peers)
|
|
35
41
|
|
|
@@ -90,7 +96,7 @@ import '@voicenter-team/voicenter-ui-plus/style.css'
|
|
|
90
96
|
app.use(VoicenterUI, {
|
|
91
97
|
themeConfig, // theme config (see below)
|
|
92
98
|
lang: 'en', // localization
|
|
93
|
-
injectIconFont: true //
|
|
99
|
+
injectIconFont: true // the vc-icon-* font, for vc-icon-* classes
|
|
94
100
|
})
|
|
95
101
|
// Confirm modals/popovers/notifications: auto-mounted via VcPluginOverlays
|
|
96
102
|
// (mountOverlays: true by default). Opt out with mountOverlays: false and
|
|
@@ -129,6 +135,8 @@ Entity components such as `VcEntityListTable` call `useConfirmModal` internally
|
|
|
129
135
|
|
|
130
136
|
### Tailwind
|
|
131
137
|
|
|
138
|
+
The scheme and the shipped `tailwind.config.js` are Tailwind 3 configurations: an application installs `tailwindcss@3`, `postcss` and `autoprefixer` (`npx tailwindcss init -p` creates its configuration).
|
|
139
|
+
|
|
132
140
|
Tailwind's colours come from the library scheme, so the utility classes and the theme are one set of tokens. `theme.colors` replaces Tailwind's own palette on purpose: only the library's colours exist as classes.
|
|
133
141
|
|
|
134
142
|
```js
|
|
@@ -145,17 +153,52 @@ module.exports = {
|
|
|
145
153
|
}
|
|
146
154
|
```
|
|
147
155
|
|
|
156
|
+
The library's own `tailwind.config.js` (shipped as `@voicenter-team/voicenter-ui-plus/tailwind.config`) also has keys for the radii, shadows and font weights of the components; [Corners](#corners), [Shadows](#shadows) and [Text](#text) say what each class is for. Their values are the CSS variables the library stylesheet sets on `:root` in both modes, so a class drawn with them changes together with the library. An application takes these keys from the shipped configuration:
|
|
157
|
+
|
|
158
|
+
```js
|
|
159
|
+
// tailwind.config.js
|
|
160
|
+
const uiPlusTheme = require('@voicenter-team/voicenter-ui-plus/tailwind.config').theme
|
|
161
|
+
|
|
162
|
+
module.exports = {
|
|
163
|
+
...yourConfiguration,
|
|
164
|
+
theme: {
|
|
165
|
+
// colours as above
|
|
166
|
+
extend: {
|
|
167
|
+
borderRadius: uiPlusTheme.borderRadius,
|
|
168
|
+
boxShadow: uiPlusTheme.boxShadow,
|
|
169
|
+
transitionProperty: uiPlusTheme.extend.transitionProperty,
|
|
170
|
+
fontWeight: uiPlusTheme.extend.fontWeight
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
148
176
|
Import the application's own stylesheet after the library, so the application's utilities win ties of equal specificity with the library's CSS (`.hidden` is the usual one).
|
|
149
177
|
|
|
178
|
+
The 3.x colour names are not in the scheme; [Migrating from 3.x to 4.x](#migrating-from-3x-to-4x) lists their 4.x names.
|
|
179
|
+
|
|
150
180
|
### Theming specification
|
|
151
|
-
The `themeConfig` which is passed as options to the VoicenterUI `vue.use` data could have the following specifications
|
|
181
|
+
The `themeConfig` which is passed as options to the VoicenterUI `vue.use` data could have the following specifications.
|
|
182
|
+
|
|
183
|
+
A theme is a flat object of colour tokens. Each key is set on the document element as a CSS variable with `--` in front of it: `vc-action-primary` becomes `--vc-action-primary`. The keys are grouped by role:
|
|
184
|
+
|
|
185
|
+
- `vc-content-*`: text and icons (`primary`, `secondary`, `tertiary`, `disabled`, `success`, `warning`, `danger`, `info`); the built-in themes also set `vc-content-warning-icon`, which no component reads;
|
|
186
|
+
- `vc-bg-*`: backgrounds (`page`, `surface`, `inset`, `inset-strong`, `field`, `muted`, `overlay`);
|
|
187
|
+
- `vc-action-*`: fills of interactive elements (`primary`, `secondary`, `info`, `success`, `warning`, `danger`);
|
|
188
|
+
- `vc-onfill` and `vc-onfill-{fill}`: text on a solid fill. Every built-in theme sets `vc-onfill-primary` and `vc-onfill-warning`; `vc-onfill-secondary`, `vc-onfill-info`, `vc-onfill-success` and `vc-onfill-danger` are optional, and a fill whose key is not set takes `vc-onfill`;
|
|
189
|
+
- `vc-border`, `vc-border-strong`, `vc-input` (field borders), `vc-ring` (focus ring), `vc-shadow-color`;
|
|
190
|
+
- `vc-mix-anchor` and `vc-mix-anchor-{fill}`: the colour hover and pressed states are mixed toward (black darkens, white lightens). Any fill can have its own anchor: a fill whose `vc-mix-anchor-{fill}` key is not set mixes toward `vc-mix-anchor`. Every built-in theme sets `vc-mix-anchor-primary` and `vc-mix-anchor-warning`, the two fills with their own text colour.
|
|
191
|
+
|
|
192
|
+
Hover, pressed, disabled and tinted states (`--vc-action-primary--hover`, `--vc-action-primary--subtle-hover`, …) are mixed from these values by the library, so a theme sets only the base colours. The Element Plus colour variables (`--el-color-primary`, `--el-bg-color`, `--el-border-color`, …) are filled from the same tokens; a theme can still set an `el-*` key to override one. A theme that does not set `vc-content-success`, `vc-content-warning`, `vc-content-danger` or `vc-content-info` takes its `vc-action-*` of the same status for it.
|
|
193
|
+
|
|
194
|
+
The full list of keys and the values of every built-in theme are in [`src/theme/themes.json`](https://github.com/VoicenterTeam/voicenter-ui-plus/blob/master/src/theme/themes.json). The library's stylesheet sets the keys of the default theme (redGreen) on `:root`. Any other key a theme leaves out takes the default theme's value; after a theme switch at run time, a key the new theme leaves out keeps the previous theme's value. Theme keys of 3.x (`primary`, `default-text`, `ui-lines`, …) are not read: a `customJson` or remote theme passes the `vc-*` keys ([Migrating from 3.x to 4.x](#migrating-from-3x-to-4x) maps them).
|
|
152
195
|
|
|
153
196
|
### Local
|
|
154
197
|
**Config:**
|
|
155
198
|
```js
|
|
156
199
|
{
|
|
157
200
|
type: 'local'
|
|
158
|
-
themeName: 'red' | '
|
|
201
|
+
themeName: 'voicenter' | 'voicenterRed' | 'red' | 'redGreen' | 'black'
|
|
159
202
|
onSetupCallback: () => {
|
|
160
203
|
console.log('Loaded!')
|
|
161
204
|
}
|
|
@@ -167,7 +210,7 @@ Such configuration will append to the document element the CSS variables from on
|
|
|
167
210
|
|
|
168
211
|
**Params:**
|
|
169
212
|
- **themeName**
|
|
170
|
-
- The name of the theme to be injected
|
|
213
|
+
- The name of the theme to be injected. `redGreen` is the default (it is also used when no `themeConfig` is passed); `black` is a dark theme. An unknown name logs a warning and keeps the default.
|
|
171
214
|
- **onSetupCallback**
|
|
172
215
|
- The function which will be called right after the variables will be injected into the document element. First parameter of which is the theme object which was set up
|
|
173
216
|
|
|
@@ -206,7 +249,8 @@ Such configuration will initiate the call to the specified apiUrl in order to re
|
|
|
206
249
|
{
|
|
207
250
|
type: 'customJson'
|
|
208
251
|
config: {
|
|
209
|
-
|
|
252
|
+
'vc-action-primary': '#E80130',
|
|
253
|
+
'vc-content-primary': '#1F2937'
|
|
210
254
|
}
|
|
211
255
|
onSetupCallback: () => {
|
|
212
256
|
console.log('Loaded!')
|
|
@@ -219,13 +263,373 @@ Such configuration will initiate the styling with custom provided theme
|
|
|
219
263
|
|
|
220
264
|
**Params:**
|
|
221
265
|
- **config**
|
|
222
|
-
- The object where the key is the variable to be set and the value is the variable value.
|
|
266
|
+
- The object where the key is the variable to be set and the value is the variable value. The keys are the theme keys described above; check the [themes object](https://github.com/VoicenterTeam/voicenter-ui-plus/blob/master/src/theme/themes.json) for the full list.
|
|
223
267
|
- **onSetupCallback**
|
|
224
268
|
- The function which will be called right after the variables will be injected into the document element. First parameter of which is the theme object which was set up
|
|
225
269
|
|
|
226
270
|
### None
|
|
227
271
|
`{ type: 'none', onSetupCallback?: (theme) => void }` injects no theme variables; the application sets them itself.
|
|
228
272
|
|
|
273
|
+
## Migrating from 3.x to 4.x
|
|
274
|
+
|
|
275
|
+
### What changed and why
|
|
276
|
+
|
|
277
|
+
- **Colours** are named by their role, and a theme sets only the base colours: the hover, pressed, disabled and tinted states are mixed from them by the library, with one formula for every colour. The 3.x colour names are gone. Details: [Colour names](#colour-names), [CSS variables](#css-variables), [Tailwind colour classes](#tailwind-colour-classes), [Theme keys](#theme-keys) and [Finding the 3.x names](#finding-the-3x-names).
|
|
278
|
+
- **Icons** are Lucide (`@lucide/vue`), the icons of the 4.0 design, where 3.x drew the `vc-icon-*` font. An icon prop still takes a `vc-icon-*` class. Details: [Icons](#icons).
|
|
279
|
+
- **Corners** take one of five radius roles, `control`, `popup`, `card`, `tag` and `inner`, each a CSS variable (`--vc-radius-control`) and a class of the shipped Tailwind configuration (`rounded-control`). They replace the 3.x radius scale and `--base-border-radius`. The classes read the variables the library stylesheet sets, so a corner drawn with them changes together with the library. Details: [Corners](#corners) and [Styles and component defaults](#styles-and-component-defaults).
|
|
280
|
+
- **Text** has one font key, `main`, which names the role rather than the font, so a font change keeps the class; `font-inter`, `font-heebo` and `font-rubik`, which all drew Rubik, are gone. It takes three weights, `font-normal`, `font-medium` and `font-semibold` (`--vc-font-weight-*`): Rubik is a variable font whose stock weights read heavy, so the first two are lighter than in 3.x. Details: [Text](#text) and [Styles and component defaults](#styles-and-component-defaults).
|
|
281
|
+
- **Focus** is one ring, `shadow-focus` (`shadow-focus-inner` draws it inside), in the theme's `vc-ring` colour. The colour-named focus classes are gone: they all drew that one ring, whatever colour the name gave. Details: [Shadows](#shadows) and [Styles and component defaults](#styles-and-component-defaults).
|
|
282
|
+
- **Component defaults**: the fields default to `primary`, and the colours `primary-alternative` and `active` are gone, since both drew the brand colour, as `primary` does. VcTagInput and VcTreeSelect show their values as the muted chips of a multiple VcSelect, a field's prefix icon follows the size of the field, and the close and copy controls of modals, notifications and code blocks are a VcButtonIcon, with the size, radius and hover of the library's controls. Details: [Styles and component defaults](#styles-and-component-defaults).
|
|
283
|
+
- **Removed**: besides the names above, the theme `blue`, which no application on 3.x selects (only applications still on 0.x do), and the classes of the native close controls. The sections below give what replaces each removed name.
|
|
284
|
+
|
|
285
|
+
### Colour names
|
|
286
|
+
|
|
287
|
+
In 4.x the colours are named by their role: `content` for text and icons, `bg` for backgrounds, `action` for the fills of interactive elements, `onfill` for text on a fill, and `border`, `input` and `ring` for lines. The 3.x colour names are gone: a 3.x CSS variable is not set, a 3.x Tailwind colour class is not generated and a 3.x theme key is not read. An application moves every colour it takes from ui-plus to the 4.x name in the tables below.
|
|
288
|
+
|
|
289
|
+
Hover, pressed and tinted states keep one pattern. In CSS variables, `--focus` (hover) becomes `--hover`, `--pressed` stays `--pressed`, and `-bg--focus` and `-bg--pressed` (the 10% and 20% washes) become `--subtle-hover` and `--subtle-pressed`: `--primary-actions-bg--focus` is `--vc-action-primary--subtle-hover`. Tailwind names use one dash: `bg-action-primary-hover`, `bg-action-primary-subtle-hover`. `destructive` and `error` are both `danger`; `primary-alternative` and `active-elements` are both `primary`.
|
|
290
|
+
|
|
291
|
+
What keeps its name:
|
|
292
|
+
|
|
293
|
+
- the `color` prop values of the components: `primary`, `secondary`, `destructive`, `success` and `warning`; `info` is new, and `active` and `primary-alternative` are removed (see "Styles and component defaults");
|
|
294
|
+
- the shadow classes (`shadow-card`, `shadow-table`, `shadow-hover-outer-primary`, …) apart from the focus classes, `shadow-hover`, `shadow-hover-{colour}` and `shadow-hover-outer-destructive` (see "Styles and component defaults"): they read the 4.x tokens;
|
|
295
|
+
- the Element Plus variables (`--el-color-primary`, `--el-border-color`, …): the library fills them from the 4.x tokens.
|
|
296
|
+
|
|
297
|
+
Props that take a Tailwind colour name take the 4.x name: `VcCollapseItem` `color-icon="action-primary"` and `color-border="border"` (the defaults). The `color` of `VcLoading` takes a component colour (`primary`, `destructive`, …) or a 4.x Tailwind colour name (`content-secondary`).
|
|
298
|
+
|
|
299
|
+
Some 3.x names had a value of their own in the built-in themes and now share a token, so they draw differently:
|
|
300
|
+
|
|
301
|
+
- `icons` and `table-headings` were an accent colour of their own in red and black and the brand colour in redGreen, and `headers` an accent colour in black; they are `content-primary`, the body text colour.
|
|
302
|
+
- `default-text` (red, voicenterRed) and `heading-text` (red) differed from `primary-text`; all three are `content-primary`.
|
|
303
|
+
- `primary-alternative` had a colour of its own in every theme; it is `action-primary`.
|
|
304
|
+
- `active-elements` had a colour of its own in red; it is `action-primary`.
|
|
305
|
+
- `inactive-elements` was the secondary colour in red, redGreen and black; it is `content-disabled`.
|
|
306
|
+
- `progress-line-done` was a neutral grey in red, redGreen and black; it is `action-success`. `progress-line-not-done` was the secondary colour in red and redGreen and a dark grey in black; it is `border`.
|
|
307
|
+
- `scrollbar-track`, `scrollbar-thumb` and `scrollbar-thumb-hover` were fixed greys in red, redGreen and black; they are `bg-surface`, `border` and `content-disabled`, so the scrollbar follows the theme.
|
|
308
|
+
- `destructive` and `error` were two colours in redGreen and black; both are `action-danger`.
|
|
309
|
+
|
|
310
|
+
Some names keep their meaning but have a new value in some themes: `dark-bg` (`bg-inset-strong`) in red and redGreen; `destructive`, `error`, `success`, `warning` and `actions-mix-color` in voicenterRed. The 3.x theme `blue` is not a 4.x theme: `themeName: 'blue'` logs a warning and the default theme is used.
|
|
311
|
+
|
|
312
|
+
For the brand colour, use `action-primary`.
|
|
313
|
+
|
|
314
|
+
### CSS variables
|
|
315
|
+
|
|
316
|
+
| 3.x variable | 4.x |
|
|
317
|
+
| --- | --- |
|
|
318
|
+
| `--main-bg` | `var(--vc-bg-page)` |
|
|
319
|
+
| `--light-bg` | `var(--vc-bg-surface)` |
|
|
320
|
+
| `--card-bg-color` | `var(--vc-bg-surface)` |
|
|
321
|
+
| `--dark-bg` | `var(--vc-bg-inset-strong)` |
|
|
322
|
+
| `--field-bg` | `var(--vc-bg-field)` |
|
|
323
|
+
| `--overlay-bg` | `var(--vc-bg-overlay)`: it carries its own transparency (3.x components mixed `--overlay-bg` to 40%, so a 3.x value `X` becomes `color-mix(in srgb, X 40%, transparent)`) |
|
|
324
|
+
| `--skeleton-loader` | `var(--vc-bg-muted)` |
|
|
325
|
+
| `--skeleton-loader-animation` | `var(--vc-bg-skeleton-shine)` |
|
|
326
|
+
| `--scrollbar-track` | `var(--vc-bg-surface)` |
|
|
327
|
+
| `--primary-text` | `var(--vc-content-primary)` |
|
|
328
|
+
| `--heading-text` | `var(--vc-content-primary)` |
|
|
329
|
+
| `--headers` | `var(--vc-content-primary)` |
|
|
330
|
+
| `--icons` | `var(--vc-content-primary)` |
|
|
331
|
+
| `--table-headings` | `var(--vc-content-primary)` |
|
|
332
|
+
| `--default-text` | `var(--vc-content-primary)` |
|
|
333
|
+
| `--secondary-text` | `var(--vc-content-secondary)` |
|
|
334
|
+
| `--placeholders` | `var(--vc-content-tertiary)` |
|
|
335
|
+
| `--inactive-text` | `var(--vc-content-disabled)` |
|
|
336
|
+
| `--inactive-elements` | `var(--vc-content-disabled)` |
|
|
337
|
+
| `--btn-filled-text` | `var(--vc-onfill-primary, var(--vc-onfill))` |
|
|
338
|
+
| `--default-loader` | `var(--vc-onfill-primary, var(--vc-onfill))` |
|
|
339
|
+
| `--ui-lines` | `var(--vc-border)` |
|
|
340
|
+
| `--major-ui-lines` | `var(--vc-border-strong)` |
|
|
341
|
+
| `--field-borders` | `var(--vc-input)` |
|
|
342
|
+
| `--scrollbar-thumb` | `var(--vc-border)` |
|
|
343
|
+
| `--scrollbar-thumb-hover` | `var(--vc-content-disabled)` |
|
|
344
|
+
| `--progress-line-done` | `var(--vc-action-success)` |
|
|
345
|
+
| `--progress-line-not-done` | `var(--vc-border)` |
|
|
346
|
+
| `--card-shadow-color` | `color-mix(in srgb, var(--vc-shadow-color) 12%, transparent)` |
|
|
347
|
+
| `--table-shadow-color` | `color-mix(in srgb, var(--vc-shadow-color) 7%, transparent)` |
|
|
348
|
+
| `--actions-mix-color` | `var(--vc-mix-anchor)` |
|
|
349
|
+
| `--primary` | `var(--vc-action-primary)` |
|
|
350
|
+
| `--primary-actions` | `var(--vc-action-primary)` |
|
|
351
|
+
| `--primary-actions--focus` | `var(--vc-action-primary--hover)` |
|
|
352
|
+
| `--primary-actions--pressed` | `var(--vc-action-primary--pressed)` |
|
|
353
|
+
| `--primary-actions-bg--focus` | `var(--vc-action-primary--subtle-hover)` |
|
|
354
|
+
| `--primary-actions-bg--pressed` | `var(--vc-action-primary--subtle-pressed)` |
|
|
355
|
+
| `--primary-alternative` | `var(--vc-action-primary)` |
|
|
356
|
+
| `--primary-alternative-actions` | `var(--vc-action-primary)` |
|
|
357
|
+
| `--primary-alternative-actions--focus` | `var(--vc-action-primary--hover)` |
|
|
358
|
+
| `--primary-alternative-actions--pressed` | `var(--vc-action-primary--pressed)` |
|
|
359
|
+
| `--primary-alternative-actions-bg--focus` | `var(--vc-action-primary--subtle-hover)` |
|
|
360
|
+
| `--primary-alternative-actions-bg--pressed` | `var(--vc-action-primary--subtle-pressed)` |
|
|
361
|
+
| `--secondary` | `var(--vc-action-secondary)` |
|
|
362
|
+
| `--secondary-actions` | `var(--vc-action-secondary)` |
|
|
363
|
+
| `--secondary-actions--focus` | `var(--vc-action-secondary--hover)` |
|
|
364
|
+
| `--secondary-actions--pressed` | `var(--vc-action-secondary--pressed)` |
|
|
365
|
+
| `--secondary-actions-bg--focus` | `var(--vc-action-secondary--subtle-hover)` |
|
|
366
|
+
| `--secondary-actions-bg--pressed` | `var(--vc-action-secondary--subtle-pressed)` |
|
|
367
|
+
| `--destructive` | `var(--vc-action-danger)` (fills); `var(--vc-content-danger)` (text) |
|
|
368
|
+
| `--destructive-actions` | `var(--vc-action-danger)` (fills); `var(--vc-content-danger)` (text) |
|
|
369
|
+
| `--destructive-actions--focus` | `var(--vc-action-danger--hover)` |
|
|
370
|
+
| `--destructive-actions--pressed` | `var(--vc-action-danger--pressed)` |
|
|
371
|
+
| `--destructive-actions-bg--focus` | `var(--vc-action-danger--subtle-hover)` |
|
|
372
|
+
| `--destructive-actions-bg--pressed` | `var(--vc-action-danger--subtle-pressed)` |
|
|
373
|
+
| `--error` | `var(--vc-action-danger)` (fills); `var(--vc-content-danger)` (text) |
|
|
374
|
+
| `--error-actions` | `var(--vc-action-danger)` (fills); `var(--vc-content-danger)` (text) |
|
|
375
|
+
| `--error-actions--focus` | `var(--vc-action-danger--hover)` |
|
|
376
|
+
| `--error-actions--pressed` | `var(--vc-action-danger--pressed)` |
|
|
377
|
+
| `--error-actions-bg--focus` | `var(--vc-action-danger--subtle-hover)` |
|
|
378
|
+
| `--error-actions-bg--pressed` | `var(--vc-action-danger--subtle-pressed)` |
|
|
379
|
+
| `--success` | `var(--vc-action-success)` (fills); `var(--vc-content-success)` (text) |
|
|
380
|
+
| `--success-actions` | `var(--vc-action-success)` (fills); `var(--vc-content-success)` (text) |
|
|
381
|
+
| `--success-actions--focus` | `var(--vc-action-success--hover)` |
|
|
382
|
+
| `--success-actions--pressed` | `var(--vc-action-success--pressed)` |
|
|
383
|
+
| `--success-actions-bg--focus` | `var(--vc-action-success--subtle-hover)` |
|
|
384
|
+
| `--success-actions-bg--pressed` | `var(--vc-action-success--subtle-pressed)` |
|
|
385
|
+
| `--warning` | `var(--vc-action-warning)` (fills); `var(--vc-content-warning)` (text) |
|
|
386
|
+
| `--warning-actions` | `var(--vc-action-warning)` (fills); `var(--vc-content-warning)` (text) |
|
|
387
|
+
| `--warning-actions--focus` | `var(--vc-action-warning--hover)` |
|
|
388
|
+
| `--warning-actions--pressed` | `var(--vc-action-warning--pressed)` |
|
|
389
|
+
| `--warning-actions-bg--focus` | `var(--vc-action-warning--subtle-hover)` |
|
|
390
|
+
| `--warning-actions-bg--pressed` | `var(--vc-action-warning--subtle-pressed)` |
|
|
391
|
+
| `--active-elements` | `var(--vc-action-primary)` |
|
|
392
|
+
| `--active-elements--focus` | `var(--vc-action-primary--hover)` |
|
|
393
|
+
| `--active-elements--pressed` | `var(--vc-action-primary--pressed)` |
|
|
394
|
+
| `--active-elements-bg--focus` | `var(--vc-action-primary--subtle-hover)` |
|
|
395
|
+
| `--active-elements-bg--pressed` | `var(--vc-action-primary--subtle-pressed)` |
|
|
396
|
+
| `--inactive-elements--focus` | `color-mix(in srgb, var(--vc-content-disabled) 80%, var(--vc-mix-anchor))` |
|
|
397
|
+
| `--inactive-elements--pressed` | `color-mix(in srgb, var(--vc-content-disabled) 65%, var(--vc-mix-anchor))` |
|
|
398
|
+
| `--inactive-elements-bg--focus` | `color-mix(in srgb, var(--vc-content-disabled) 10%, transparent)` |
|
|
399
|
+
| `--inactive-elements-bg--pressed` | `color-mix(in srgb, var(--vc-content-disabled) 20%, transparent)` |
|
|
400
|
+
| `--input-font-weight` (the weight of field text, `500`) | `--input-font-weight`, now the normal weight step `var(--vc-font-weight-normal)` |
|
|
401
|
+
|
|
402
|
+
### Tailwind colour classes
|
|
403
|
+
|
|
404
|
+
A colour name works the same after every colour prefix (`text-`, `bg-`, `border-`, `ring-`, `fill-`, `stroke-`, `divide-`, `outline-`, `placeholder-`, …) and with every variant: `text-default-text` becomes `text-content-primary`, `hover:bg-primary-actions-bg--focus` becomes `hover:bg-action-primary-subtle-hover`, `border-ui-lines` becomes `border-border`.
|
|
405
|
+
|
|
406
|
+
Text and icons in a status colour take the `content` name (`text-content-danger`, `text-content-success`). In most themes it is the same colour as the fill (`bg-action-danger`); voicenter and voicenterRed draw success and warning text and icons darker than the fill.
|
|
407
|
+
|
|
408
|
+
| 3.x colour name | 4.x colour name |
|
|
409
|
+
| --- | --- |
|
|
410
|
+
| `main-bg` | `page` |
|
|
411
|
+
| `light-bg` | `surface` |
|
|
412
|
+
| `card-bg-color` | `surface` |
|
|
413
|
+
| `dark-bg` | `inset-strong` |
|
|
414
|
+
| `field-bg` | `field` |
|
|
415
|
+
| `overlay-bg` | `overlay` (it carries its own transparency, as above) |
|
|
416
|
+
| `skeleton-loader` | `muted` |
|
|
417
|
+
| `skeleton-loader-animation` | no class |
|
|
418
|
+
| `scrollbar-track` | `surface` |
|
|
419
|
+
| `primary-text` | `content-primary` |
|
|
420
|
+
| `heading-text` | `content-primary` |
|
|
421
|
+
| `headers` | `content-primary` |
|
|
422
|
+
| `icons` | `content-primary` |
|
|
423
|
+
| `table-headings` | `content-primary` |
|
|
424
|
+
| `default-text` | `content-primary` |
|
|
425
|
+
| `secondary-text` | `content-secondary` |
|
|
426
|
+
| `placeholders` | `content-tertiary` |
|
|
427
|
+
| `inactive-text` | `content-disabled` |
|
|
428
|
+
| `inactive-elements` | `content-disabled` |
|
|
429
|
+
| `btn-filled-text` | `onfill-primary` |
|
|
430
|
+
| `default-loader` | `onfill-primary` |
|
|
431
|
+
| `ui-lines` | `border` |
|
|
432
|
+
| `major-ui-lines` | `border-strong` |
|
|
433
|
+
| `field-borders` | `input` |
|
|
434
|
+
| `scrollbar-thumb` | `border` |
|
|
435
|
+
| `scrollbar-thumb-hover` | `content-disabled` |
|
|
436
|
+
| `progress-line-done` | `action-success` |
|
|
437
|
+
| `progress-line-not-done` | `border` |
|
|
438
|
+
| `card-shadow-color` | no class; the `shadow-card` and `shadow-table` classes carry it |
|
|
439
|
+
| `table-shadow-color` | no class; the `shadow-table-row` and `shadow-table-header` classes carry it |
|
|
440
|
+
| `actions-mix-color` | no class |
|
|
441
|
+
| `primary` | `action-primary` |
|
|
442
|
+
| `primary-actions` | `action-primary` |
|
|
443
|
+
| `primary-actions--focus` | `action-primary-hover` |
|
|
444
|
+
| `primary-actions--pressed` | `action-primary-pressed` |
|
|
445
|
+
| `primary-actions-bg--focus` | `action-primary-subtle-hover` |
|
|
446
|
+
| `primary-actions-bg--pressed` | `action-primary-subtle-pressed` |
|
|
447
|
+
| `primary-alternative` | `action-primary` |
|
|
448
|
+
| `primary-alternative-actions` | `action-primary` |
|
|
449
|
+
| `primary-alternative-actions--focus` | `action-primary-hover` |
|
|
450
|
+
| `primary-alternative-actions--pressed` | `action-primary-pressed` |
|
|
451
|
+
| `primary-alternative-actions-bg--focus` | `action-primary-subtle-hover` |
|
|
452
|
+
| `primary-alternative-actions-bg--pressed` | `action-primary-subtle-pressed` |
|
|
453
|
+
| `secondary` | `action-secondary` |
|
|
454
|
+
| `secondary-actions` | `action-secondary` |
|
|
455
|
+
| `secondary-actions--focus` | `action-secondary-hover` |
|
|
456
|
+
| `secondary-actions--pressed` | `action-secondary-pressed` |
|
|
457
|
+
| `secondary-actions-bg--focus` | `action-secondary-subtle-hover` |
|
|
458
|
+
| `secondary-actions-bg--pressed` | `action-secondary-subtle-pressed` |
|
|
459
|
+
| `destructive` | `action-danger` (fills); `content-danger` (text) |
|
|
460
|
+
| `destructive-actions` | `action-danger` (fills); `content-danger` (text) |
|
|
461
|
+
| `destructive-actions--focus` | `action-danger-hover` |
|
|
462
|
+
| `destructive-actions--pressed` | `action-danger-pressed` |
|
|
463
|
+
| `destructive-actions-bg--focus` | `action-danger-subtle-hover` |
|
|
464
|
+
| `destructive-actions-bg--pressed` | `action-danger-subtle-pressed` |
|
|
465
|
+
| `error` | `action-danger` (fills); `content-danger` (text) |
|
|
466
|
+
| `error-actions` | `action-danger` (fills); `content-danger` (text) |
|
|
467
|
+
| `error-actions--focus` | `action-danger-hover` |
|
|
468
|
+
| `error-actions--pressed` | `action-danger-pressed` |
|
|
469
|
+
| `error-actions-bg--focus` | `action-danger-subtle-hover` |
|
|
470
|
+
| `error-actions-bg--pressed` | `action-danger-subtle-pressed` |
|
|
471
|
+
| `success` | `action-success` (fills); `content-success` (text) |
|
|
472
|
+
| `success-actions` | `action-success` (fills); `content-success` (text) |
|
|
473
|
+
| `success-actions--focus` | `action-success-hover` |
|
|
474
|
+
| `success-actions--pressed` | `action-success-pressed` |
|
|
475
|
+
| `success-actions-bg--focus` | `action-success-subtle-hover` |
|
|
476
|
+
| `success-actions-bg--pressed` | `action-success-subtle-pressed` |
|
|
477
|
+
| `warning` | `action-warning` (fills); `content-warning` (text) |
|
|
478
|
+
| `warning-actions` | `action-warning` (fills); `content-warning` (text) |
|
|
479
|
+
| `warning-actions--focus` | `action-warning-hover` |
|
|
480
|
+
| `warning-actions--pressed` | `action-warning-pressed` |
|
|
481
|
+
| `warning-actions-bg--focus` | `action-warning-subtle-hover` |
|
|
482
|
+
| `warning-actions-bg--pressed` | `action-warning-subtle-pressed` |
|
|
483
|
+
| `active-elements` | `action-primary` |
|
|
484
|
+
| `active-elements--focus` | `action-primary-hover` |
|
|
485
|
+
| `active-elements--pressed` | `action-primary-pressed` |
|
|
486
|
+
| `active-elements-bg--focus` | `action-primary-subtle-hover` |
|
|
487
|
+
| `active-elements-bg--pressed` | `action-primary-subtle-pressed` |
|
|
488
|
+
| `inactive-elements--focus` | no class |
|
|
489
|
+
| `inactive-elements--pressed` | no class |
|
|
490
|
+
| `inactive-elements-bg--focus` | no class; disabled fields use `bg-inset` |
|
|
491
|
+
| `inactive-elements-bg--pressed` | no class |
|
|
492
|
+
|
|
493
|
+
### Theme keys
|
|
494
|
+
|
|
495
|
+
A `customJson` or `remote` theme passes the 4.x keys ([Theming specification](#theming-specification)). Where several 3.x keys become one 4.x key, the theme sets it once. A 4.x theme sets only base colours: the hover, pressed and tinted states are mixed by the library. A key the theme leaves out takes the default theme's value, as the Theming specification describes.
|
|
496
|
+
|
|
497
|
+
Keys with no 3.x key of their own: `vc-bg-inset`, `vc-ring`, `vc-onfill-warning`, the anchors of single fills `vc-mix-anchor-{fill}` (the built-in themes set `vc-mix-anchor-primary` and `vc-mix-anchor-warning`; set them as `actions-mix-color` was set), `vc-action-info` and `vc-content-info`.
|
|
498
|
+
|
|
499
|
+
A remote branding section gets the `vc-*` keys before the application is upgraded: a 3.x application ignores them, and a 4.x application ignores the 3.x keys, so every key it does not receive takes the default theme's value.
|
|
500
|
+
|
|
501
|
+
| 3.x theme key | 4.x theme key |
|
|
502
|
+
| --- | --- |
|
|
503
|
+
| `main-bg` | `vc-bg-page` |
|
|
504
|
+
| `light-bg` | `vc-bg-surface` |
|
|
505
|
+
| `card-bg-color` | `vc-bg-surface` |
|
|
506
|
+
| `dark-bg` | `vc-bg-inset-strong` |
|
|
507
|
+
| `field-bg` | `vc-bg-field` |
|
|
508
|
+
| `overlay-bg` | `vc-bg-overlay`: it carries its own transparency (3.x components mixed `--overlay-bg` to 40%, so a 3.x value `X` becomes `color-mix(in srgb, X 40%, transparent)`) |
|
|
509
|
+
| `skeleton-loader` | `vc-bg-muted` |
|
|
510
|
+
| `skeleton-loader-animation` | none: mixed from `vc-bg-surface` |
|
|
511
|
+
| `scrollbar-track` | `vc-bg-surface` |
|
|
512
|
+
| `default-text` | `vc-content-primary` |
|
|
513
|
+
| `primary-text` | `vc-content-primary` |
|
|
514
|
+
| `heading-text` | `vc-content-primary` |
|
|
515
|
+
| `headers` | `vc-content-primary` |
|
|
516
|
+
| `icons` | `vc-content-primary` |
|
|
517
|
+
| `table-headings` | `vc-content-primary` |
|
|
518
|
+
| `secondary-text` | `vc-content-secondary` |
|
|
519
|
+
| `placeholders` | `vc-content-tertiary` |
|
|
520
|
+
| `inactive-text` | `vc-content-disabled` |
|
|
521
|
+
| `inactive-elements` | `vc-content-disabled` |
|
|
522
|
+
| `scrollbar-thumb-hover` | `vc-content-disabled` |
|
|
523
|
+
| `btn-filled-text` | `vc-onfill-primary` (text on the primary fill); `vc-onfill` for the other fills |
|
|
524
|
+
| `default-loader` | `vc-onfill-primary` |
|
|
525
|
+
| `ui-lines` | `vc-border` |
|
|
526
|
+
| `scrollbar-thumb` | `vc-border` |
|
|
527
|
+
| `major-ui-lines` | `vc-border-strong` |
|
|
528
|
+
| `progress-line-not-done` | `vc-border` |
|
|
529
|
+
| `field-borders` | `vc-input` |
|
|
530
|
+
| `card-shadow-color` | `vc-shadow-color`: a dark base colour the library mixes down (12% for cards here); the 3.x light-grey value is not reused |
|
|
531
|
+
| `table-shadow-color` | `vc-shadow-color`: a dark base colour the library mixes down (7% for tables here); the 3.x light-grey value is not reused |
|
|
532
|
+
| `actions-mix-color` | `vc-mix-anchor`, and `vc-mix-anchor-{fill}` for a fill with its own anchor (the built-in themes set `vc-mix-anchor-primary` and `vc-mix-anchor-warning`) |
|
|
533
|
+
| `primary` | `vc-action-primary` |
|
|
534
|
+
| `primary-alternative` | `vc-action-primary` |
|
|
535
|
+
| `active-elements` | `vc-action-primary` |
|
|
536
|
+
| `secondary` | `vc-action-secondary` |
|
|
537
|
+
| `destructive` | `vc-action-danger` (fills); `vc-content-danger` (text) |
|
|
538
|
+
| `error` | `vc-action-danger` (fills); `vc-content-danger` (text) |
|
|
539
|
+
| `success` | `vc-action-success` (fills); `vc-content-success` (text) |
|
|
540
|
+
| `progress-line-done` | `vc-action-success` |
|
|
541
|
+
| `warning` | `vc-action-warning` (fills); `vc-content-warning` (text and icons) |
|
|
542
|
+
| `transparent` | none: not a theme key |
|
|
543
|
+
| `current` | none: not a theme key |
|
|
544
|
+
| `white` | none: not a theme key |
|
|
545
|
+
| `black` | none: not a theme key |
|
|
546
|
+
|
|
547
|
+
### Finding the 3.x names
|
|
548
|
+
|
|
549
|
+
A 3.x name in `@apply` or in `theme('colors.…')` fails the Tailwind build. In a template class or in `var(--…)` it fails silently: the class is not generated and the variable is not set. This finds them in an application (any hit is a 3.x name; the 4.x names do not match):
|
|
550
|
+
|
|
551
|
+
```bash
|
|
552
|
+
n='(main|light|dark|field|overlay)-bg|card-bg-color|skeleton-loader(-animation)?|scrollbar-(track|thumb(-hover)?)|(primary|heading|default|secondary|inactive|btn-filled)-text|headers|icons|table-headings|placeholders|default-loader|(major-)?ui-lines|field-borders|progress-line-(not-)?done|(card|table)-shadow-color|actions-mix-color|(primary(-alternative)?|secondary|destructive|error|success|warning)(-actions)?|(active|inactive)-elements'
|
|
553
|
+
s='(-bg)?(--(focus|pressed))?'
|
|
554
|
+
grep -rnE "(var\(|['\"])--($n)$s[,)'\"]|(^|[^a-zA-Z0-9_-])(text|bg|border(-[xytrblse])?|ring(-offset)?|fill|stroke|divide|outline|placeholder|shadow|from|via|to|caret|accent|decoration)-($n)$s([^a-zA-Z0-9_-]|$)" src
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
Colour prop values that name a Tailwind colour (`VcCollapseItem` `color-icon` and `color-border`, `VcLoading` `color`) do not match this pattern; check them separately.
|
|
558
|
+
|
|
559
|
+
The theme keys of a `customJson` configuration (`colors.json`) and of a remote branding section move to the `vc-*` keys of the table above. An application with `type: 'none'` sets the 4.x variables itself. `onSetupCallback(theme)` receives the theme with its `vc-*` keys.
|
|
560
|
+
|
|
561
|
+
### Icons
|
|
562
|
+
|
|
563
|
+
The components draw Lucide icons (`@lucide/vue`) where 3.x drew the `vc-icon-*` font, and the default icon of an icon prop is a Lucide component. A style that targets a `vc-icon-*` class inside a component no longer matches. An icon prop still takes a `vc-icon-*` class, drawn by the icon font that `injectIconFont` loads.
|
|
564
|
+
|
|
565
|
+
### Styles and component defaults
|
|
566
|
+
|
|
567
|
+
| What | 3.x | 4.x |
|
|
568
|
+
| --- | --- | --- |
|
|
569
|
+
| Close and maximize controls of VcModal, the close control of a notification, the copy control of VcCodeBlock | native buttons with the classes `vc-dialog-header-icon`, `vc-link`, `vc-dialog-header-maximize-icon`, `vc-dialog-header-close-icon` and `vc-toast-close-icon`; the copy control read `--code-block-muted` and `--code-block-selection` | a small secondary VcButtonIcon; those classes are gone (`vc-dialog-header-close`, `vc-dialog-header-maximize`, `vc-toast-icon-close` and `vc-code-block__copy` stay), and the copy control takes the colours of VcButtonIcon instead of `--code-block-muted` and `--code-block-selection` |
|
|
570
|
+
| `--base-border-radius` | set on `<html>` by the theme setup | removed; corners read the component radii `--vc-radius-*` (`--vc-radius-control` for controls) |
|
|
571
|
+
| The radius keys of the shipped `tailwind.config.js` | `xs`, `sm` (0.25rem), `md`, `lg`, `xl`, `xxl`, `tag`, `DEFAULT` (`rounded`) and `horizontal-tab-*` | the radius roles (see "Corners"), `none` and `full`. An application keeps Tailwind's own scale, and its `extend.borderRadius` from the shipped configuration adds the roles: `rounded-sm` is Tailwind's, and `rounded-xs`, `rounded-xxl` and `rounded-horizontal-tab-*` are not generated. A configuration that takes the whole shipped file instead of the keys "Tailwind" lists, such as `merge(require('@voicenter-team/voicenter-ui-plus/tailwind.config'), ownConfig)` with lodash `merge`, has only the roles, `none` and `full`. `borderRadius: require('tailwindcss/defaultTheme').borderRadius` in its own `theme` brings Tailwind's scale back beside the roles, since `merge` joins the two objects. With it `rounded-sm` is 0.125rem (3.x: 0.25rem; `rounded` is the 0.25rem one), and `rounded-2xl` and `rounded-3xl` are generated, which 3.x did not generate |
|
|
572
|
+
| The font keys of the shipped `tailwind.config.js` and the font classes of the library stylesheet | `main`, `rubik`, `inter` and `heebo`, all four Rubik | `main` only: `font-inter`, `font-heebo` and `font-rubik` are removed; replace them with `font-main`. `@apply font-inter` (or `font-heebo`, `font-rubik`) and `theme('fontFamily.inter')` fail the build. In a template the class is not generated, and text without it inherits whatever font its container sets, so the class is replaced rather than dropped |
|
|
573
|
+
| The component colours `primary-alternative` and `active`: the value of `color` and of any prop that takes a component colour (`prefixIconColor`, `tagColor`, `buttonColor`, `filledColor`, `confirmActionColor`, the `colorKey` of an option) | `primary-alternative` drew a colour of its own, `active` drew `active-elements` | removed: `componentColors` and `COMPONENT_COLOR_TYPE` no longer list them, and no class is generated for them. A project replaces every `primary-alternative` with `primary`, and every `active` given as a colour (`color="active"`, `prefix-icon-color="active"`) with `primary`: both draw the brand colour. A style that targets their colour classes (`vc-button-color--primary-alternative`, `vc-input--active`, `vc-switch-color-active`, …) targets the `primary` class |
|
|
574
|
+
| The default `color` of VcInput, VcAutocomplete, VcPhoneInput, VcOtpInput, VcTimeInput, VcTagInput, VcSwitch and VcExtendedDatetimeRangePicker; `DEFAULT_COLOR` | `'active'` | `'primary'` |
|
|
575
|
+
| `shadow-hover-outer-active`, `shadow-hover-outer-primary-alternative` | the hover glow of the `active` and `primary-alternative` colours | removed; `shadow-hover-outer-primary` |
|
|
576
|
+
| `shadow-hover-outer-destructive` | the hover glow of the `destructive` colour | `shadow-hover-outer-danger`: a glow class is named by its fill, as `bg-action-danger` |
|
|
577
|
+
| The hover outline of VcCard with `hovered` | replaces the card shadow | fades in over the card shadow, which stays |
|
|
578
|
+
| The divider between VcViewSwitcher items | `secondary-actions` | `border` |
|
|
579
|
+
| `shadow-focus-outer`, `shadow-focus-outer-{primary,secondary,destructive,success,warning,info}`, `shadow-focus-{primary,secondary,destructive,success,warning}` | a focus glow in the colour the class names | removed; `shadow-focus`, the one focus ring, which has no colour of its own. A project whose Tailwind configuration defines these keys itself keeps them |
|
|
580
|
+
| `shadow-hover`, `shadow-hover-{primary,secondary,destructive,success,warning}` | a hover glow, outside and inside, in the colour the class names | removed: no component used them. `shadow-hover-inner`, `shadow-hover-outer`, `shadow-hover-outer-{colour}` and `shadow-hover-outer-off` stay. A project whose Tailwind configuration defines these keys itself keeps them |
|
|
581
|
+
| `tagBorderless` and `tagColor` of VcTagInput and VcTreeSelect | `false`, `'primary'` | `true`, `''`: a value is a borderless chip with no colour, neutral like a VcSelect multiple value (label and close icon `content-secondary`); set them for bordered, coloured tags. `tag-color="secondary"` draws the secondary colour, `action-secondary`, as on any other tag |
|
|
582
|
+
| `DEFAULT_ICON_SIZE`, the default `prefixIconSize` of VcInput, VcAutocomplete, VcPhoneInput and VcExtendedDatetimeRangePicker | `'sm'` | `''`: no size class, so the prefix icon follows the size of the field and is larger at the default size; `prefix-icon-size="sm"` keeps the 3.x size |
|
|
583
|
+
| `iconClass` of VcSoundPlayerMarker | `'icon-md'` | `'icon-xs'`: the icon sits on a filled circle of the marker colour |
|
|
584
|
+
| `borderRadius` of VcMeterGroup | `'6px'` | `'var(--vc-radius-inner)'`, the inner radius role |
|
|
585
|
+
| `StatusProgressConfig`, the type of the `statusColorMap` prop of VcProgressCircular | `Record<string, string>` | `Partial<Record<StatusProgress, string>>`: its keys are the `StatusProgress` values, each optional, so an object literal with another key, or code that reads another key, fails the type check |
|
|
586
|
+
| `VcTagInputColor`, exported from the package root | `'active' \| 'primary' \| 'secondary' \| 'destructive'` | removed: no prop took it. The `color` of VcTagInput is `COMPONENT_COLOR_TYPE` and its `tagColor` is `VcTagColorType` |
|
|
587
|
+
| `TEXT_COLORS`, exported from the package root | the Tailwind text class of each component colour (`text-primary`, `text-secondary-actions`, …) | removed; `textColorClass(color)` returns the text class of a component colour, `vc-text-color--<colour>` from the library stylesheet, and `text-<key>` for a Tailwind colour key |
|
|
588
|
+
| The default slot of VcButton and the value of VcBadgeTag | direct children of `.vc-button--content` and of the badge | inside `span.vc-button__label` and `span.vc-badge-tag__value`, which trim the label box to its capitals so the control centres them; a selector that reaches the slot content as a direct child (`.vc-button--content > span`) no longer matches it |
|
|
589
|
+
| `font-normal`, `font-medium`, `font-semibold` | `400`, `500`, `600` | `380`, `480`, `600` (`--vc-font-weight-*`): the three weights of the components' text, in an application too once it takes `extend.fontWeight` (see "Tailwind") |
|
|
590
|
+
| Page text, `b` and `strong`, table headers (`th`) | `400`, `bolder`, the browser's bold | `font-normal`, `font-semibold`, `font-medium` |
|
|
591
|
+
| `font-bold`, `font-extrabold`, `font-black`; `font-thin`, `font-extralight`, `font-light` in an application | Tailwind's weights | unchanged; the 4.x text has the three weights above, so replace the first three with `font-semibold` and the other three with `font-normal` |
|
|
592
|
+
| The colour of an `info` or `warning` notification (`NotifyService`, `$notify`) | `info`: `primary-actions`, the brand colour; `warning`: `warning` | `content-info` and `content-warning`: a notification takes the text colour of the component colour of its type, as `success` takes `content-success` and `error` takes `content-danger` |
|
|
593
|
+
| The border and clear icon of VcTagInput with a `color` | a glow on hover; when focused, the border of the colour | no glow: for every colour, `info` included, the border warms toward the colour on hover and takes the colour's hover shade when focused; the clear icon is the colour's text colour and darkens from it on hover |
|
|
594
|
+
| `color` and `prefixIconColor` of VcTreeSelect | the field drew the same colour whatever its `color` (the colour class did not reach it); a `prefixIconColor` other than `active`, `primary` and `destructive` drew `active-elements` | the field takes its `color` as VcTagInput does: the border warms toward the colour on hover and takes the colour's hover shade while the tree is open; the prefix icon takes the text colour of its `prefixIconColor`, for every colour |
|
|
595
|
+
| The rings of the `circles` loader of VcLoading with a `color` other than `primary`, `secondary` and `destructive` | three rings of the one colour | the outer ring is the colour, the second and third its hover and pressed shades, as for `primary`, `secondary` and `destructive` |
|
|
596
|
+
| The text of an unchecked VcRadioButtonsGroup button on hover | `primary`: the brand colour itself; the other colours: the hover shade of the fill | the hover shade of the colour's text colour, `primary` included: `primary` darkens on hover (lightens in `black`) as the others do, and `success` and `warning` mix from their text colour, which in voicenter and voicenterRed is darker than the fill |
|
|
597
|
+
| The tick of a checked VcCheckbox, the text of a checked VcCheckboxButton and the text inside a VcProgress bar, for a fill other than `primary` | `btn-filled-text`, on every fill | the on-fill colour of that fill, as on a filled button: on the `warning` fill it is `onfill-warning`, dark in voicenter and voicenterRed |
|
|
598
|
+
| A status that the `statusColorMap` of VcProgressCircular leaves out, when the map has no `default` key | `primary-alternative-actions`, the library's default | the fill of that status |
|
|
599
|
+
| The text and underline of a `success` or `warning` VcHyperLink | the fill colour (`success-actions`, `warning-actions`) | the text colour, `content-success` or `content-warning`, for the text and the underline alike: every colour's underline is the colour of its text. In voicenter and voicenterRed these are darker than the fill |
|
|
600
|
+
| The clear icon of a VcInput or VcAutocomplete with a `color`, on hover | the hover shade of the fill | the hover shade of the colour's text colour, the colour the icon has at rest: unchanged for `primary`, `secondary`, `destructive` and `info`; for `success` and `warning` in voicenter and voicenterRed, whose text is darker than the fill, darker than before |
|
|
601
|
+
| Slot content of a VcRadio with a `color` that reads `active-elements` (4.x: `action-primary`) | the radio's colour: the radio redefined `--active-elements` | the brand colour: the radio sets its own `--vc-radio-color` and redefines no theme variable |
|
|
602
|
+
| Slot content of VcFileUploaderArea that reads `icons` (4.x: `content-primary`) | `secondary-text`: the area redefined `--icons` | `content-primary`: the area colours its own label, drop text and file names `content-secondary` and redefines no theme variable |
|
|
603
|
+
|
|
604
|
+
### AI chat components
|
|
605
|
+
|
|
606
|
+
4.x adds the components `VcAiReasoning`, `VcToolCall`, `VcApprovalCard`, `VcAskUserCard`, `VcAgentRunCard`, `VcAgentRunGroup`, `VcLightbox` and `VcPdfViewer` (their peers are in [Installation](#installation)). `VcMessage`, `VcMessagesWrapper`, `VcChatComposer` and `VcFileItem` gained props, slots and events for AI chats; existing usages render as before. What can need a change in an application:
|
|
607
|
+
|
|
608
|
+
- **`@milkdown/*` must be `^7.22.0`** (was `^7.15.5`). With the `prosemirror-model` that npm resolves today (1.25.12), milkdown before 7.22.0 fails to parse lists (`RangeError: Expected value of type boolean for attribute spread`), and every list of a `VcMdEditor` disappears. A lockfile that still holds an older `prosemirror-model` hides the problem until the next fresh install.
|
|
609
|
+
- **`VcMdEditor` in `readonly` lays out its text by the text's own direction and treats it as untrusted.** Every paragraph, heading, list, quote, table and cell takes its direction from its own text instead of the page's (`<html dir>` at mount, or the direction button): English text in an RTL page now reads left to right, a Hebrew paragraph in an LTR page right to left, a block without letters follows the text around it, and code reads left to right. A link with a protocol other than http(s), mailto and tel loses its `href`, web links open in a new tab (`target="_blank" rel="noopener noreferrer"`), and the table handles are hidden. An editable editor is unchanged. New in `VcMdEditor`: `streaming` (throttled updates and a caret while an AI answer arrives) and `plain` (no field around the text, for bubbles and cards); `minHeight` takes the number `0` (it fell back to 400px, so callers passed the string `'0'`).
|
|
610
|
+
- **`VcMessagesWrapper` is generic** over the message type: extend `VcChatMessage` with your own fields and the slots and events keep your type. `InstanceType<typeof VcMessagesWrapper>` no longer type-checks for a template ref; use the exported interface:
|
|
611
|
+
|
|
612
|
+
```diff
|
|
613
|
+
- const wrapper = ref<InstanceType<typeof VcMessagesWrapper>>()
|
|
614
|
+
+ import type { VcMessagesWrapperExposed } from '@voicenter-team/voicenter-ui-plus'
|
|
615
|
+
+ const wrapper = ref<VcMessagesWrapperExposed>()
|
|
616
|
+
```
|
|
617
|
+
|
|
618
|
+
- **`VcChatMessage.createdAt` is optional.** A message without it starts no date divider and shows no time (AI SDK messages have no timestamp). Code that passes `message.createdAt` on to something that does not accept `undefined` needs a guard, or a message type of your own with a required `createdAt`.
|
|
619
|
+
- **`VcMessageContent` has a `markdown` block** (`{ type: 'markdown', text, streaming? }`). An exhaustive `switch` or a `Record<VcMessageContentType, …>` over the content types needs the new case.
|
|
620
|
+
- **`VcMessage`'s `content` also accepts an array** of blocks, rendered in order in one bubble. `VcChatMessage.content` stays a single block; several blocks in a wrapper go through its `message` slot.
|
|
621
|
+
- **`VcMessage` colours changed.** In 3.x own messages used `--dark-bg` / `--btn-filled-text`, a contrast of 1.13–1.42:1 in every light theme, and the quote of an incoming message used the same pair. In 4.x both sides are neutral, with `--vc-content-primary` text: others on `--vc-bg-surface`, own messages on `--vc-bg-muted`, and the quote takes the other side's background (`--vc-bg-muted` in others' messages, `--vc-bg-surface` in own). The variables keep their 3.x names (`--vc-message-bg`, `--vc-message-text`, `--vc-message-reply-bg`, `--vc-message-reply-text`): a project that sets them keeps working, with any 3.x theme variable in their values replaced by its 4.x token. Markdown links in bubbles take the text colour. A project that styled around the old dark own bubble (e.g. white icons in a custom `footer`) should check its contrast.
|
|
622
|
+
- **The `actions` slot of `VcChatComposer` (3.4.8) is `toolbar-start`**, with the slot props `{ disabled, streaming }`; `toolbar-end` (new) sits right before Send / Stop.
|
|
623
|
+
- **`VcMessagesWrapper`'s `scrollToMessage` takes options**, as in 3.4.8: `scrollToMessage(id, 'auto')` of 3.4.7 and earlier becomes `scrollToMessage(id, { behavior: 'auto' })`, and `block` and `offset` place the message. It scrolls only the wrapper, not the page, and the view stays on the message while the list grows below it.
|
|
624
|
+
- **Exported types**: `VcFileItemProps` (with the new `errorText`), `VcChatComposerEmits`, and props / emits / slot-props / exposed interfaces of every new component.
|
|
625
|
+
- **Localization**: the library ships only `en`. An application with another locale adds the new keys with `tVUManage.updateLocaleMessages`: `voicenterUi.aiChat.*`, `voicenterUi.lightbox.*`, `voicenterUi.aiReasoning.*`, `voicenterUi.toolCall.*`, `voicenterUi.approvalCard.*`, `voicenterUi.askUserCard.*`, `voicenterUi.agentRun.*`, `voicenterUi.agentRunGroup.*`, `voicenterUi.pdfViewer.*`, `voicenterUi.messagesWrapper.jumpToBottom`, `voicenterUi.message.download`, `voicenterUi.chatComposer.stop`, `voicenterUi.chatComposer.stopGenerating`, `voicenterUi.chatComposer.unsupportedFile`, `voicenterUi.fileItem.preview`, `voicenterUi.fileItem.remove` (English texts in `src/localization/locales/en.json`).
|
|
626
|
+
|
|
627
|
+
Fixes in the components 3.x had:
|
|
628
|
+
|
|
629
|
+
- **PDFs open without `eval` (CVE-2024-4367).** pdf.js before 4.2.67 compiles font glyphs with `eval`, so a crafted PDF could run JavaScript in the page. `VcPdfDocument` and `VcPdfViewer` now pass `isEvalSupported: false` to `getDocument` (no caller can turn it back on); pdf.js draws the glyphs through its slower interpreted path, the text looks the same. The lasting fix is `pdfjs-dist` 4.2.67 or newer, a separate upgrade of the peer (the library still declares `^2.16.105`).
|
|
630
|
+
- **Lists in `VcMdEditor`** render again with `@milkdown/*` `^7.22.0` (see above).
|
|
631
|
+
- **Code blocks in `VcMdEditor`** take the theme's colours. Copy is a secondary text action (`--vc-action-secondary` text and icon, the `--vc-action-secondary--subtle-hover` hover, a focus ring, visible while it has keyboard focus) instead of Crepe's grey pill without hover or focus states; the line numbers, fold markers, folded-code placeholder, cursor and selection use the theme variables instead of One Dark's colours. The syntax colours are unchanged. Read-only, a code block is framed (`--vc-border`, on `--vc-bg-surface` in `--vc-content-primary`) with no line numbers, active line or language button, Copy floats in its corner on hover or focus, a long line scrolls with a visible scrollbar, and inline code wraps instead of running past the column.
|
|
632
|
+
|
|
229
633
|
## Using ui-plus in an application
|
|
230
634
|
|
|
231
635
|
How an application builds its UI with ui-plus. Agents working in a consuming project read this section before any UI work; it describes the version installed next to it.
|
|
@@ -254,10 +658,41 @@ The installed package is the truth. Read it before saying what ui-plus has or ho
|
|
|
254
658
|
|
|
255
659
|
### Colours
|
|
256
660
|
|
|
257
|
-
- Every colour is a ui-plus token: a Tailwind class from the library scheme (`text-
|
|
661
|
+
- Every colour is a ui-plus token: a Tailwind class from the library scheme (`text-content-primary`, `text-content-secondary`, `text-action-primary`, `bg-page`, `bg-surface`, `border-border`, `text-content-success`, `text-content-danger`) or a theme variable in a style (`color: var(--vc-content-primary)`). Status colours, tags, icons and chart series included.
|
|
258
662
|
- Hex values, `rgb()`/`rgba()`, arbitrary classes such as `bg-[#…]` and new colour variables stay out of application code. Such colours already in a project are not a precedent.
|
|
259
663
|
- The theme configuration (`themeConfig`, usually a `colors.json`) sets the library theme. It is not a palette to add colours to.
|
|
260
664
|
|
|
665
|
+
### Corners
|
|
666
|
+
|
|
667
|
+
- A corner takes the radius role of what it draws: `rounded-<role>`, a class of the shipped configuration ([Tailwind](#tailwind)), or `var(--vc-radius-<role>)` in a style:
|
|
668
|
+
- `rounded-control`: buttons, icon, toggle and split buttons, inputs, selects, pickers;
|
|
669
|
+
- `rounded-popup`: floating panels (popovers, dropdowns, select panels, tooltips, date-picker panels, notifications);
|
|
670
|
+
- `rounded-card`: cards, the outer frame of a table, modals;
|
|
671
|
+
- `rounded-tag`: tags and chips, drawn as a pill;
|
|
672
|
+
- `rounded-inner`: a part inside a control, popup or card (menu and list items, thumbnails and file icons, inline chips and labels, boxes inside editors and modals, checkbox boxes, colour-picker sliders, tree nodes, skeleton blocks, square tags).
|
|
673
|
+
- Besides the roles the shipped configuration has only `rounded-none` and `rounded-full` (a circle).
|
|
674
|
+
- Pixel radii and arbitrary classes such as `rounded-[6px]` stay out of application code. Such radii already in a project are not a precedent.
|
|
675
|
+
|
|
676
|
+
### Shadows
|
|
677
|
+
|
|
678
|
+
- A shadow is a class of the shipped configuration ([Tailwind](#tailwind)):
|
|
679
|
+
- elevation: `shadow-raised` for an element lifted on hover or drag and `shadow-overlay` for a floating panel, read from `--vc-shadow-raised` and `--vc-shadow-overlay`; `shadow-card` for a card;
|
|
680
|
+
- focus: `shadow-focus` draws the one focus ring `--vc-focus-ring`, the theme's `--vc-ring` colour at `--vc-focus-ring-width`, and `shadow-focus-inner` draws it inside.
|
|
681
|
+
- `shadow-vertical-tab-item-hover` is the raised elevation; `shadow-focus-outer-off` is not a focus ring and keeps its own glow.
|
|
682
|
+
- A hand-written `box-shadow` and arbitrary classes such as `shadow-[…]` stay out of application code. Such shadows already in a project are not a precedent.
|
|
683
|
+
|
|
684
|
+
### Text
|
|
685
|
+
|
|
686
|
+
- Text keeps the library font, Rubik, which covers Latin and Hebrew: `font-main`, the one font key of the shipped configuration, set on `<html>`. The plugin (`app.use(VoicenterUI)`) loads it from Google Fonts. The tree-shake entry does not load it: the stylesheet only names it.
|
|
687
|
+
- Text takes three weights, classes of the shipped configuration ([Tailwind](#tailwind)) read from `--vc-font-weight-*`: `font-normal` (the page text), `font-medium` (table headers, `th`) and `font-semibold` (`b` and `strong`). The other weight classes keep their Tailwind values.
|
|
688
|
+
- `transition-weight` is for text whose weight changes with its state.
|
|
689
|
+
- Other font families and the weights `font-bold` and heavier stay out of application code. Such fonts and weights already in a project are not a precedent.
|
|
690
|
+
|
|
691
|
+
### Icons
|
|
692
|
+
|
|
693
|
+
- Icons are Lucide (`@lucide/vue`). An icon the application passes to a component or draws itself is a Lucide component imported by name: `import { Search } from '@lucide/vue'`, then `<VcButton :icon="Search">` or `<VcIcon :icon="Search" />`.
|
|
694
|
+
- The type of an icon prop is `TIcon`, exported from the package root.
|
|
695
|
+
|
|
261
696
|
### Notifications and confirmations
|
|
262
697
|
|
|
263
698
|
`NotifyService`, `useConfirmModal` and `useConfirmPopup` render only through the hosts described in [Global overlays](#global-overlays), mounted once in the application. A `VcNotification` host shows only the messages of its own `group`, so where the application mounts one host per group, every notification names one of those groups.
|
|
@@ -266,6 +701,15 @@ The installed package is the truth. Read it before saying what ui-plus has or ho
|
|
|
266
701
|
|
|
267
702
|
ui-plus follows the `dir` attribute of `<html>`: `useRTL()` reads it and updates when it changes. The application sets the direction there, once.
|
|
268
703
|
|
|
704
|
+
### AI chat
|
|
705
|
+
|
|
706
|
+
An AI chat is built from the chat components; their props, events and slots are in the installed types, and the [live documentation](https://voicenter-ui.netlify.app/) has an example of each.
|
|
707
|
+
|
|
708
|
+
- The conversation: `VcMessagesWrapper` (its `message` slot renders one AI message from several parts, `hideHeader`, `busy`, the jump-to-latest button) with `VcMessage` (`variant="plain"` for the assistant, several content blocks, the `footer` slot for model / tokens / copy).
|
|
709
|
+
- Assistant text: `VcMdEditor` with `readonly hide-toolbar plain`, and `streaming` while it streams (the renderer of the `markdown` block of `VcMessage`). Reasoning: `VcAiReasoning`. Tool calls: `VcToolCall`. Human approval of a tool: `VcApprovalCard`. Questions the agent asks the user: `VcAskUserCard`. Sub-agents: `VcAgentRunCard` / `VcAgentRunGroup`.
|
|
710
|
+
- Input: `VcChatComposer` with `streaming` (Stop instead of Send). Attachments open in `VcLightbox` (images) or `VcPdfViewer` (an inline PDF viewer for a tab or a panel).
|
|
711
|
+
- The library ships only English texts: an application in another language adds the keys of these components with `tVUManage.updateLocaleMessages` (the list is in [AI chat components](#ai-chat-components)).
|
|
712
|
+
|
|
269
713
|
### Server-side rendering
|
|
270
714
|
|
|
271
715
|
ui-plus is built and tested for client-rendered Vue applications. Its composables read `document` and `window` when they are called (`useRTL` among them), and the package ships no Nuxt module. An application with server-side rendering proves one page that uses ui-plus in development and in a production build before relying on it, and reports what fails.
|
|
@@ -275,7 +719,9 @@ ui-plus is built and tested for client-rendered Vue applications. Its composable
|
|
|
275
719
|
- **Component not found or a blank page**: in tree-shake mode a component is a local import, never a globally registered tag. In plugin mode both `app.use(VoicenterUI, …)` and `import '@voicenter-team/voicenter-ui-plus/style.css'` are present.
|
|
276
720
|
- **`Cannot find module 'pdfjs-dist'` (or another optional peer) at build time**: install the peer, or stop importing its component.
|
|
277
721
|
- **Duplicate styles, a huge CSS payload**: the two modes are mixed (named imports plus the global `style.css`). Pick one (`MIGRATION_v3.md`, §1).
|
|
278
|
-
-
|
|
722
|
+
- **`InstanceType<typeof VcMessagesWrapper>` does not type-check**: a generic component (`VcMessagesWrapper` since 4.0) has no constructor type. Type its template ref with the exported interface: `ref<VcMessagesWrapperExposed>()`. The other chat components with exposed methods export the same kind of interface (`VcChatComposerExposed`, `VcLightboxExposed`, `VcPdfViewerExposed`, …).
|
|
723
|
+
- **Lists missing from `VcMdEditor` or an AI answer** (`RangeError: Expected value of type boolean for attribute spread` in the console): `@milkdown/*` is older than 7.22.0. Install `^7.22.0` ([AI chat components](#ai-chat-components)).
|
|
724
|
+
- **PDF.js worker not loading, or Symbol / ZapfDingbats glyphs (✓, ✗, ★, Greek letters) drawn with another font or as boxes**: the worker and the standard font data of those two fonts are sibling assets resolved with `new URL('./pdf.worker.min.js', import.meta.url)` and `new URL('./standard_fonts/FoxitDingbats.pfb', import.meta.url)` (and `FoxitSymbol.pfb`); the bundler must support that pattern (Vite, webpack 5+, Rollup and esbuild do) and emits them as assets of the application.
|
|
279
725
|
|
|
280
726
|
## Date Handling
|
|
281
727
|
|