@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
|
@@ -0,0 +1,568 @@
|
|
|
1
|
+
import { toRaw } from "vue";
|
|
2
|
+
const INLINE_ARRAY_MAX_ITEMS = 8;
|
|
3
|
+
const INLINE_ARRAY_MAX_CHARS = 120;
|
|
4
|
+
const EXPAND_ALL_MAX_DEPTH = 32;
|
|
5
|
+
const STATUS_MAX_LENGTH = 32;
|
|
6
|
+
const DEFAULT_STATUS_KEYS = ["status", "state", "health", "result", "level", "severity", "priority"];
|
|
7
|
+
const DEFAULT_STATUS_COLORS = {
|
|
8
|
+
active: "success",
|
|
9
|
+
answered: "success",
|
|
10
|
+
approved: "success",
|
|
11
|
+
completed: "success",
|
|
12
|
+
connected: "success",
|
|
13
|
+
done: "success",
|
|
14
|
+
enabled: "success",
|
|
15
|
+
healthy: "success",
|
|
16
|
+
ok: "success",
|
|
17
|
+
online: "success",
|
|
18
|
+
passed: "success",
|
|
19
|
+
stored: "success",
|
|
20
|
+
success: "success",
|
|
21
|
+
succeeded: "success",
|
|
22
|
+
degraded: "warning",
|
|
23
|
+
partial: "warning",
|
|
24
|
+
pending: "warning",
|
|
25
|
+
processing: "warning",
|
|
26
|
+
queued: "warning",
|
|
27
|
+
warning: "warning",
|
|
28
|
+
busy: "warning",
|
|
29
|
+
error: "destructive",
|
|
30
|
+
failed: "destructive",
|
|
31
|
+
failure: "destructive",
|
|
32
|
+
missing: "destructive",
|
|
33
|
+
offline: "destructive",
|
|
34
|
+
rejected: "destructive",
|
|
35
|
+
timeout: "destructive",
|
|
36
|
+
"no answer": "destructive",
|
|
37
|
+
cancelled: "secondary",
|
|
38
|
+
canceled: "secondary",
|
|
39
|
+
disabled: "secondary",
|
|
40
|
+
inactive: "secondary",
|
|
41
|
+
unknown: "secondary"
|
|
42
|
+
};
|
|
43
|
+
const KEY_ACRONYMS = /* @__PURE__ */ new Set(["id", "url", "uri", "api", "ip", "sip", "ivr", "did", "cdr", "utc", "http", "https", "json", "ui", "sms", "crm", "uuid", "ttl"]);
|
|
44
|
+
const ISO_DATE_RE = /^(\d{4})-(\d{2})-(\d{2})(?:[T ](\d{2}):(\d{2})(?::(\d{2})(?:\.\d{1,9})?)?(?:Z|[+-]\d{2}:?\d{2})?)?$/;
|
|
45
|
+
const URL_RE = /^https?:\/\/[^\s]+$/i;
|
|
46
|
+
const DATE_ONLY_FORMAT = "DD MMM YYYY";
|
|
47
|
+
const FILTER_MAX_DEPTH = 500;
|
|
48
|
+
function isJsonObject(value) {
|
|
49
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
50
|
+
}
|
|
51
|
+
function isJsonArray(value) {
|
|
52
|
+
return Array.isArray(value);
|
|
53
|
+
}
|
|
54
|
+
function isJsonContainer(value) {
|
|
55
|
+
return isJsonObject(value) || isJsonArray(value);
|
|
56
|
+
}
|
|
57
|
+
function isJsonPrimitive(value) {
|
|
58
|
+
return !isJsonContainer(value);
|
|
59
|
+
}
|
|
60
|
+
function isEmptyContainer(value) {
|
|
61
|
+
if (isJsonArray(value)) {
|
|
62
|
+
return value.length === 0;
|
|
63
|
+
}
|
|
64
|
+
if (isJsonObject(value)) {
|
|
65
|
+
return Object.keys(value).length === 0;
|
|
66
|
+
}
|
|
67
|
+
return false;
|
|
68
|
+
}
|
|
69
|
+
function getValueKind(value) {
|
|
70
|
+
if (value === null) return "null";
|
|
71
|
+
if (isJsonArray(value)) return "array";
|
|
72
|
+
if (isJsonObject(value)) return "object";
|
|
73
|
+
if (typeof value === "number") return "number";
|
|
74
|
+
if (typeof value === "boolean") return "boolean";
|
|
75
|
+
return "string";
|
|
76
|
+
}
|
|
77
|
+
function toJsonValue(input) {
|
|
78
|
+
if (input === void 0) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
const text = JSON.stringify(input);
|
|
82
|
+
return text === void 0 ? null : JSON.parse(text);
|
|
83
|
+
}
|
|
84
|
+
function parseJson(text) {
|
|
85
|
+
try {
|
|
86
|
+
return { value: JSON.parse(text) };
|
|
87
|
+
} catch (error) {
|
|
88
|
+
return { error: error instanceof Error ? error.message : String(error) };
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
function isInlineArray(value) {
|
|
92
|
+
if (!isJsonArray(value) || value.length === 0 || value.length > INLINE_ARRAY_MAX_ITEMS) {
|
|
93
|
+
return false;
|
|
94
|
+
}
|
|
95
|
+
if (!value.every(isJsonPrimitive)) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
const textLength = value.reduce((sum, item) => sum + String(item).length, 0);
|
|
99
|
+
return textLength <= INLINE_ARRAY_MAX_CHARS;
|
|
100
|
+
}
|
|
101
|
+
function isInlineValue(value) {
|
|
102
|
+
return isJsonPrimitive(value) || isEmptyContainer(value) || isInlineArray(value);
|
|
103
|
+
}
|
|
104
|
+
function splitEntries(value) {
|
|
105
|
+
return Object.entries(value).reduce((acc, [key, item]) => {
|
|
106
|
+
acc[isInlineValue(item) ? "inline" : "nested"].push({
|
|
107
|
+
key,
|
|
108
|
+
value: item
|
|
109
|
+
});
|
|
110
|
+
return acc;
|
|
111
|
+
}, {
|
|
112
|
+
inline: [],
|
|
113
|
+
nested: []
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function unwrapSingleKey(value, enabled = true) {
|
|
117
|
+
const path = [];
|
|
118
|
+
let current = value;
|
|
119
|
+
while (enabled && isJsonObject(current)) {
|
|
120
|
+
const keys = Object.keys(current);
|
|
121
|
+
if (keys.length !== 1) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
const inner = current[keys[0]];
|
|
125
|
+
if (!isJsonContainer(inner) || isEmptyContainer(inner)) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
path.push(keys[0]);
|
|
129
|
+
current = inner;
|
|
130
|
+
}
|
|
131
|
+
return {
|
|
132
|
+
value: current,
|
|
133
|
+
path
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
function isRecord(value) {
|
|
137
|
+
return isJsonObject(value) && Object.keys(value).length > 0;
|
|
138
|
+
}
|
|
139
|
+
function resolveLayout(value) {
|
|
140
|
+
if (!isJsonContainer(value)) {
|
|
141
|
+
return "value";
|
|
142
|
+
}
|
|
143
|
+
if (isEmptyContainer(value)) {
|
|
144
|
+
return "empty";
|
|
145
|
+
}
|
|
146
|
+
if (isJsonArray(value)) {
|
|
147
|
+
return "table";
|
|
148
|
+
}
|
|
149
|
+
const values = Object.values(value);
|
|
150
|
+
if (values.length >= 2 && values.every(isRecord)) {
|
|
151
|
+
return "cards";
|
|
152
|
+
}
|
|
153
|
+
return "object";
|
|
154
|
+
}
|
|
155
|
+
function summarizeNested(entries) {
|
|
156
|
+
return entries.reduce((acc, { value }) => {
|
|
157
|
+
if (isJsonArray(value)) {
|
|
158
|
+
acc.arrays++;
|
|
159
|
+
} else if (isJsonObject(value)) {
|
|
160
|
+
acc.objects++;
|
|
161
|
+
}
|
|
162
|
+
return acc;
|
|
163
|
+
}, {
|
|
164
|
+
objects: 0,
|
|
165
|
+
arrays: 0
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
function findStatusEntry(value, statusKeys) {
|
|
169
|
+
const keys = Object.keys(value);
|
|
170
|
+
for (const statusKey of statusKeys) {
|
|
171
|
+
const key = keys.find((item2) => item2.toLowerCase() === statusKey.toLowerCase());
|
|
172
|
+
if (key === void 0) {
|
|
173
|
+
continue;
|
|
174
|
+
}
|
|
175
|
+
const item = value[key];
|
|
176
|
+
if (typeof item === "string" || typeof item === "boolean") {
|
|
177
|
+
return {
|
|
178
|
+
key,
|
|
179
|
+
value: item
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return void 0;
|
|
184
|
+
}
|
|
185
|
+
function isMatrix(items) {
|
|
186
|
+
return items.length > 0 && items.every(isJsonArray) && items.some((item) => isJsonArray(item) && item.length > 0);
|
|
187
|
+
}
|
|
188
|
+
function buildTableModel(items) {
|
|
189
|
+
if (isMatrix(items)) {
|
|
190
|
+
const width = items.reduce((max, item) => Math.max(max, isJsonArray(item) ? item.length : 0), 0);
|
|
191
|
+
const columns2 = [
|
|
192
|
+
{
|
|
193
|
+
id: "idx",
|
|
194
|
+
kind: "index",
|
|
195
|
+
key: "index"
|
|
196
|
+
},
|
|
197
|
+
...Array.from({ length: width }, (_, position) => ({
|
|
198
|
+
id: `p${position}`,
|
|
199
|
+
kind: "position",
|
|
200
|
+
key: position
|
|
201
|
+
}))
|
|
202
|
+
];
|
|
203
|
+
const rows2 = items.map((item, index) => {
|
|
204
|
+
const originalIndex = getOriginalIndex(items, index);
|
|
205
|
+
const cells = { idx: originalIndex + 1 };
|
|
206
|
+
const nested = [];
|
|
207
|
+
if (isJsonArray(item)) {
|
|
208
|
+
item.forEach((cell, position) => {
|
|
209
|
+
cells[`p${position}`] = cell;
|
|
210
|
+
if (!isInlineValue(cell)) {
|
|
211
|
+
nested.push({
|
|
212
|
+
key: `[${position}]`,
|
|
213
|
+
value: cell,
|
|
214
|
+
position: {
|
|
215
|
+
item: originalIndex + 1,
|
|
216
|
+
column: position + 1
|
|
217
|
+
}
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return {
|
|
223
|
+
index,
|
|
224
|
+
cells,
|
|
225
|
+
nested,
|
|
226
|
+
source: item
|
|
227
|
+
};
|
|
228
|
+
});
|
|
229
|
+
return {
|
|
230
|
+
columns: columns2,
|
|
231
|
+
rows: rows2
|
|
232
|
+
};
|
|
233
|
+
}
|
|
234
|
+
const fieldKeys = [];
|
|
235
|
+
const fieldKeySet = /* @__PURE__ */ new Set();
|
|
236
|
+
let hasLooseItems = false;
|
|
237
|
+
let hasNestedFields = false;
|
|
238
|
+
items.forEach((item) => {
|
|
239
|
+
if (!isJsonObject(item)) {
|
|
240
|
+
hasLooseItems = true;
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
Object.entries(item).forEach(([key, value]) => {
|
|
244
|
+
if (!isInlineValue(value)) {
|
|
245
|
+
hasNestedFields = true;
|
|
246
|
+
} else if (!fieldKeySet.has(key)) {
|
|
247
|
+
fieldKeySet.add(key);
|
|
248
|
+
fieldKeys.push(key);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
const showValueColumn = hasLooseItems || !fieldKeys.length && !hasNestedFields;
|
|
253
|
+
const showIndexColumn = showValueColumn || !fieldKeys.length;
|
|
254
|
+
const columns = [];
|
|
255
|
+
if (showIndexColumn) {
|
|
256
|
+
columns.push({
|
|
257
|
+
id: "idx",
|
|
258
|
+
kind: "index",
|
|
259
|
+
key: "index"
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
if (showValueColumn) {
|
|
263
|
+
columns.push({
|
|
264
|
+
id: "val",
|
|
265
|
+
kind: "value",
|
|
266
|
+
key: "value"
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
fieldKeys.forEach((key, position) => {
|
|
270
|
+
columns.push({
|
|
271
|
+
id: `f${position}`,
|
|
272
|
+
kind: "field",
|
|
273
|
+
key
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
const rows = items.map((item, index) => {
|
|
277
|
+
const cells = {};
|
|
278
|
+
const nested = [];
|
|
279
|
+
const originalIndex = getOriginalIndex(items, index);
|
|
280
|
+
if (showIndexColumn) {
|
|
281
|
+
cells.idx = originalIndex + 1;
|
|
282
|
+
}
|
|
283
|
+
if (isJsonObject(item)) {
|
|
284
|
+
if (showValueColumn && !fieldKeys.length) {
|
|
285
|
+
cells.val = item;
|
|
286
|
+
}
|
|
287
|
+
fieldKeys.forEach((key, position) => {
|
|
288
|
+
cells[`f${position}`] = item[key];
|
|
289
|
+
});
|
|
290
|
+
Object.entries(item).forEach(([key, value]) => {
|
|
291
|
+
if (!isInlineValue(value)) {
|
|
292
|
+
nested.push({
|
|
293
|
+
key,
|
|
294
|
+
value
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
});
|
|
298
|
+
} else {
|
|
299
|
+
cells.val = item;
|
|
300
|
+
if (!isInlineValue(item)) {
|
|
301
|
+
nested.push({
|
|
302
|
+
key: `[${originalIndex}]`,
|
|
303
|
+
value: item,
|
|
304
|
+
position: { item: originalIndex + 1 }
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
return {
|
|
309
|
+
index,
|
|
310
|
+
cells,
|
|
311
|
+
nested,
|
|
312
|
+
source: item
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
return {
|
|
316
|
+
columns,
|
|
317
|
+
rows
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
function textMatches(text, query) {
|
|
321
|
+
return text.toLowerCase().includes(query);
|
|
322
|
+
}
|
|
323
|
+
function pushAll(stack, items) {
|
|
324
|
+
for (const item of items) {
|
|
325
|
+
stack.push(item);
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function deepMatches(value, query) {
|
|
329
|
+
const stack = [value];
|
|
330
|
+
for (let current = stack.pop(); current !== void 0; current = stack.pop()) {
|
|
331
|
+
if (isJsonObject(current)) {
|
|
332
|
+
for (const [key, item] of Object.entries(current)) {
|
|
333
|
+
if (textMatches(key, query)) {
|
|
334
|
+
return true;
|
|
335
|
+
}
|
|
336
|
+
stack.push(item);
|
|
337
|
+
}
|
|
338
|
+
} else if (isJsonArray(current)) {
|
|
339
|
+
pushAll(stack, current);
|
|
340
|
+
} else if (textMatches(String(current), query)) {
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
return false;
|
|
345
|
+
}
|
|
346
|
+
function filterJson(value, query) {
|
|
347
|
+
const normalized = query.trim().toLowerCase();
|
|
348
|
+
if (!normalized) {
|
|
349
|
+
return value;
|
|
350
|
+
}
|
|
351
|
+
return filterValue(value, normalized);
|
|
352
|
+
}
|
|
353
|
+
const ORIGINAL_INDICES = /* @__PURE__ */ new WeakMap();
|
|
354
|
+
function getOriginalIndex(array, position) {
|
|
355
|
+
var _a;
|
|
356
|
+
return ((_a = ORIGINAL_INDICES.get(toRaw(array))) == null ? void 0 : _a[position]) ?? position;
|
|
357
|
+
}
|
|
358
|
+
function filterValue(value, query, depth = 0) {
|
|
359
|
+
if (depth > FILTER_MAX_DEPTH) {
|
|
360
|
+
return deepMatches(value, query) ? value : void 0;
|
|
361
|
+
}
|
|
362
|
+
if (isJsonArray(value)) {
|
|
363
|
+
const items = [];
|
|
364
|
+
const indices = [];
|
|
365
|
+
value.forEach((item, index) => {
|
|
366
|
+
if (deepMatches(item, query)) {
|
|
367
|
+
items.push(item);
|
|
368
|
+
indices.push(getOriginalIndex(value, index));
|
|
369
|
+
}
|
|
370
|
+
});
|
|
371
|
+
if (!items.length) {
|
|
372
|
+
return void 0;
|
|
373
|
+
}
|
|
374
|
+
ORIGINAL_INDICES.set(toRaw(items), indices);
|
|
375
|
+
return items;
|
|
376
|
+
}
|
|
377
|
+
if (isJsonObject(value)) {
|
|
378
|
+
const entries = [];
|
|
379
|
+
Object.entries(value).forEach(([key, item]) => {
|
|
380
|
+
if (textMatches(key, query)) {
|
|
381
|
+
entries.push([key, item]);
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
const filtered = filterValue(item, query, depth + 1);
|
|
385
|
+
if (filtered !== void 0) {
|
|
386
|
+
entries.push([key, filtered]);
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
return entries.length ? Object.fromEntries(entries) : void 0;
|
|
390
|
+
}
|
|
391
|
+
return textMatches(String(value), query) ? value : void 0;
|
|
392
|
+
}
|
|
393
|
+
function childrenOf(value) {
|
|
394
|
+
if (isJsonArray(value)) {
|
|
395
|
+
return value;
|
|
396
|
+
}
|
|
397
|
+
return isJsonObject(value) ? Object.values(value) : [];
|
|
398
|
+
}
|
|
399
|
+
function countNodes(value) {
|
|
400
|
+
let count = 0;
|
|
401
|
+
const stack = [value];
|
|
402
|
+
for (let current = stack.pop(); current !== void 0; current = stack.pop()) {
|
|
403
|
+
count++;
|
|
404
|
+
pushAll(stack, childrenOf(current));
|
|
405
|
+
}
|
|
406
|
+
return count;
|
|
407
|
+
}
|
|
408
|
+
function countLevels(value) {
|
|
409
|
+
let levels = 0;
|
|
410
|
+
const stack = [{
|
|
411
|
+
value,
|
|
412
|
+
depth: 1
|
|
413
|
+
}];
|
|
414
|
+
for (let current = stack.pop(); current !== void 0; current = stack.pop()) {
|
|
415
|
+
if (!isJsonContainer(current.value)) {
|
|
416
|
+
continue;
|
|
417
|
+
}
|
|
418
|
+
levels = Math.max(levels, current.depth);
|
|
419
|
+
for (const child of childrenOf(current.value)) {
|
|
420
|
+
stack.push({
|
|
421
|
+
value: child,
|
|
422
|
+
depth: current.depth + 1
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
return levels;
|
|
427
|
+
}
|
|
428
|
+
function formatBytes(bytes) {
|
|
429
|
+
if (bytes < 1024) {
|
|
430
|
+
return `${bytes} B`;
|
|
431
|
+
}
|
|
432
|
+
if (bytes < 1024 * 1024) {
|
|
433
|
+
return `${Math.round(bytes / 1024)} KB`;
|
|
434
|
+
}
|
|
435
|
+
return `${(bytes / (1024 * 1024)).toFixed(1)} MB`;
|
|
436
|
+
}
|
|
437
|
+
function byteLength(text) {
|
|
438
|
+
return new TextEncoder().encode(text).length;
|
|
439
|
+
}
|
|
440
|
+
function humanizeWord(word) {
|
|
441
|
+
const lower = word.toLowerCase();
|
|
442
|
+
if (KEY_ACRONYMS.has(lower)) {
|
|
443
|
+
return lower.toUpperCase();
|
|
444
|
+
}
|
|
445
|
+
if (lower.endsWith("s") && KEY_ACRONYMS.has(lower.slice(0, -1))) {
|
|
446
|
+
return `${lower.slice(0, -1).toUpperCase()}s`;
|
|
447
|
+
}
|
|
448
|
+
return lower;
|
|
449
|
+
}
|
|
450
|
+
const IDENTIFIER_KEY_RE = new RegExp("^\\p{L}[\\p{L}\\p{N}]*(?:[ _-][\\p{L}\\p{N}]+)*$", "u");
|
|
451
|
+
function isIdentifierKey(key) {
|
|
452
|
+
return IDENTIFIER_KEY_RE.test(key);
|
|
453
|
+
}
|
|
454
|
+
function humanizeKey(key) {
|
|
455
|
+
if (!isIdentifierKey(key)) {
|
|
456
|
+
return key;
|
|
457
|
+
}
|
|
458
|
+
const words = key.replace(/([a-z\d])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z]{2,})/g, "$1 $2").split(/[\s_\-.]+/).filter(Boolean).map(humanizeWord);
|
|
459
|
+
if (!words.length) {
|
|
460
|
+
return key;
|
|
461
|
+
}
|
|
462
|
+
const [first, ...rest] = words;
|
|
463
|
+
return [first.charAt(0).toUpperCase() + first.slice(1), ...rest].join(" ");
|
|
464
|
+
}
|
|
465
|
+
function hasControlChars(value) {
|
|
466
|
+
for (let index = 0; index < value.length; index++) {
|
|
467
|
+
const code = value.charCodeAt(index);
|
|
468
|
+
if (code < 32 && code !== 9 && code !== 10 && code !== 13 || code === 127) {
|
|
469
|
+
return true;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
return false;
|
|
473
|
+
}
|
|
474
|
+
function isInvisibleString(value) {
|
|
475
|
+
return value.length > 0 && (value.trim() === "" || hasControlChars(value));
|
|
476
|
+
}
|
|
477
|
+
function keyLabel(key, humanize) {
|
|
478
|
+
if (key.trim() === "" || /[\n\r\t]/.test(key) || hasControlChars(key)) {
|
|
479
|
+
return {
|
|
480
|
+
text: JSON.stringify(key),
|
|
481
|
+
literal: true
|
|
482
|
+
};
|
|
483
|
+
}
|
|
484
|
+
return {
|
|
485
|
+
text: humanize ? humanizeKey(key) : key,
|
|
486
|
+
literal: false
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
function isDateString(value) {
|
|
490
|
+
const match = ISO_DATE_RE.exec(value);
|
|
491
|
+
if (!match) {
|
|
492
|
+
return false;
|
|
493
|
+
}
|
|
494
|
+
const [, yearText, monthText, dayText, hourText = "0", minuteText = "0", secondText = "0"] = match;
|
|
495
|
+
if (Number(hourText) > 23 || Number(minuteText) > 59 || Number(secondText) > 59) {
|
|
496
|
+
return false;
|
|
497
|
+
}
|
|
498
|
+
const [year, month, day] = [yearText, monthText, dayText].map(Number);
|
|
499
|
+
const date = new Date(Date.UTC(year, month - 1, day));
|
|
500
|
+
return date.getUTCFullYear() === year && date.getUTCMonth() === month - 1 && date.getUTCDate() === day;
|
|
501
|
+
}
|
|
502
|
+
function hasTimePart(value) {
|
|
503
|
+
const match = ISO_DATE_RE.exec(value);
|
|
504
|
+
return !!(match == null ? void 0 : match[4]);
|
|
505
|
+
}
|
|
506
|
+
function isUrlString(value) {
|
|
507
|
+
return URL_RE.test(value);
|
|
508
|
+
}
|
|
509
|
+
function resolveStatusColor(value, statusColors) {
|
|
510
|
+
if (typeof value !== "string" || value.length > STATUS_MAX_LENGTH) {
|
|
511
|
+
return void 0;
|
|
512
|
+
}
|
|
513
|
+
const normalized = value.trim().toLowerCase();
|
|
514
|
+
const match = Object.keys(statusColors).find((key) => key.toLowerCase() === normalized);
|
|
515
|
+
return match === void 0 ? void 0 : statusColors[match];
|
|
516
|
+
}
|
|
517
|
+
function resolveStatusTagColor(value, statusColors) {
|
|
518
|
+
if (typeof value === "boolean") {
|
|
519
|
+
return value ? "success" : "secondary";
|
|
520
|
+
}
|
|
521
|
+
return resolveStatusColor(value, statusColors) ?? "secondary";
|
|
522
|
+
}
|
|
523
|
+
function stringifyJson(value) {
|
|
524
|
+
return JSON.stringify(value, null, 2);
|
|
525
|
+
}
|
|
526
|
+
export {
|
|
527
|
+
DATE_ONLY_FORMAT,
|
|
528
|
+
DEFAULT_STATUS_COLORS,
|
|
529
|
+
DEFAULT_STATUS_KEYS,
|
|
530
|
+
EXPAND_ALL_MAX_DEPTH,
|
|
531
|
+
FILTER_MAX_DEPTH,
|
|
532
|
+
INLINE_ARRAY_MAX_CHARS,
|
|
533
|
+
INLINE_ARRAY_MAX_ITEMS,
|
|
534
|
+
buildTableModel,
|
|
535
|
+
byteLength,
|
|
536
|
+
countLevels,
|
|
537
|
+
countNodes,
|
|
538
|
+
deepMatches,
|
|
539
|
+
filterJson,
|
|
540
|
+
findStatusEntry,
|
|
541
|
+
formatBytes,
|
|
542
|
+
getOriginalIndex,
|
|
543
|
+
getValueKind,
|
|
544
|
+
hasControlChars,
|
|
545
|
+
hasTimePart,
|
|
546
|
+
humanizeKey,
|
|
547
|
+
isDateString,
|
|
548
|
+
isEmptyContainer,
|
|
549
|
+
isIdentifierKey,
|
|
550
|
+
isInlineArray,
|
|
551
|
+
isInlineValue,
|
|
552
|
+
isInvisibleString,
|
|
553
|
+
isJsonArray,
|
|
554
|
+
isJsonContainer,
|
|
555
|
+
isJsonObject,
|
|
556
|
+
isJsonPrimitive,
|
|
557
|
+
isUrlString,
|
|
558
|
+
keyLabel,
|
|
559
|
+
parseJson,
|
|
560
|
+
resolveLayout,
|
|
561
|
+
resolveStatusColor,
|
|
562
|
+
resolveStatusTagColor,
|
|
563
|
+
splitEntries,
|
|
564
|
+
stringifyJson,
|
|
565
|
+
summarizeNested,
|
|
566
|
+
toJsonValue,
|
|
567
|
+
unwrapSingleKey
|
|
568
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { inject, computed } from "vue";
|
|
2
|
+
import { VcJsonViewerProvideKey } from "../../tokens/tokens.mjs";
|
|
3
|
+
import { DEFAULT_STATUS_KEYS, DEFAULT_STATUS_COLORS } from "./jsonViewerUtils.mjs";
|
|
4
|
+
const DEFAULT_DATE_FORMAT = "DD MMM YYYY, HH:mm";
|
|
5
|
+
const DEFAULT_JSON_VIEWER_CONTEXT = {
|
|
6
|
+
pageSize: 10,
|
|
7
|
+
unwrap: true,
|
|
8
|
+
expandDepth: 1,
|
|
9
|
+
humanizeKeys: true,
|
|
10
|
+
formatDates: true,
|
|
11
|
+
dateFormat: DEFAULT_DATE_FORMAT,
|
|
12
|
+
statusColors: DEFAULT_STATUS_COLORS,
|
|
13
|
+
statusKeys: DEFAULT_STATUS_KEYS,
|
|
14
|
+
expandAll: false,
|
|
15
|
+
expandVersion: 0
|
|
16
|
+
};
|
|
17
|
+
function useJsonViewerContext() {
|
|
18
|
+
const provided = inject(VcJsonViewerProvideKey, void 0);
|
|
19
|
+
return (provided == null ? void 0 : provided.options) ?? computed(() => DEFAULT_JSON_VIEWER_CONTEXT);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
DEFAULT_DATE_FORMAT,
|
|
23
|
+
DEFAULT_JSON_VIEWER_CONTEXT,
|
|
24
|
+
useJsonViewerContext
|
|
25
|
+
};
|