@voicenter-team/voicenter-ui-plus 4.0.1 → 4.3.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/MIGRATION_v3.md +196 -196
- package/README.md +1057 -1051
- package/library/assets/components/VcFileUploader/VcFileUploaderSimple.css +1 -1
- package/library/assets/components/VcInteractive/VcInteractive.css +1 -0
- package/library/assets/components/VcJsonSchema/Components/JsonSchemaEditor.css +1 -1
- 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/VcSegmented/VcSegmented.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/components/VcAutocomplete/VcAutocomplete.vue.mjs +2 -3
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- package/library/components/VcCheckboxGroup/VcCheckboxGroup.vue.mjs +1 -3
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +1 -1
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileUploader.vue.mjs +4 -4
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcForm/VcForm.vue.mjs +1 -1
- package/library/components/VcForm/VcFormItem.vue.mjs +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +4 -9
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +5 -1
- package/library/components/VcInput/VcInput.vue.mjs +1 -1
- package/library/components/VcInteractive/VcInteractive.vue.mjs +58 -0
- package/library/components/VcInteractive/VcInteractive.vue3.mjs +5 -0
- package/library/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.mjs +0 -3
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
- package/library/components/VcJsonViewer/VcJsonViewer.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Circles.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/DotSpinner.vue2.mjs +2 -2
- package/library/components/VcLoading/Loaders/LdsSpinner.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/LoadIcon.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue.mjs +1 -1
- package/library/components/VcLoading/Loaders/Stretch.vue2.mjs +1 -1
- package/library/components/VcLoading/VcLoading.vue.mjs +1 -1
- package/library/components/VcMdEditor/ParameterNode.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcMessage/content/VcMessageFileBlock.vue.mjs +37 -30
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcNotification/VcNotification.vue.mjs +2 -2
- package/library/components/VcOtpInput/VcOtpInput.vue.mjs +1 -1
- package/library/components/VcPdfViewer/VcPdfViewer.vue.mjs +2 -1
- package/library/components/VcPdfViewer/pdfjslib.mjs +0 -1
- package/library/components/VcPopover/VcConfirmPopover.vue.mjs +3 -6
- package/library/components/VcPopover/VcSelectPopover.vue.mjs +2 -2
- package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcRadioGroup/VcRadioGroup.vue.mjs +6 -2
- package/library/components/VcRadioTabs/VcRadioTabs.vue.mjs +2 -6
- package/library/components/VcSegmented/VcSegmented.vue.mjs +1 -1
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +1 -3
- package/library/components/VcSelect/VcSelect.vue.mjs +33 -33
- 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/VcSlider/VcSlider.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundPlayerWrapper.vue.mjs +2 -1
- package/library/components/VcSoundplayer/player.options.mjs +1 -6
- package/library/components/VcSparkline/helper.mjs +1 -1
- package/library/components/VcTable/VcTable.vue.mjs +17 -13
- package/library/components/VcTabs/VcTabNav.vue.mjs +2 -0
- package/library/components/VcTransfer/VcTransfer.vue.mjs +16 -5
- package/library/components/VcTree/VcTree.vue.mjs +13 -6
- package/library/components/VcVerticalTabs/VcVerticalTabs.vue.mjs +4 -8
- package/library/components/VcVerticalTabs/VerticalTabNav.vue.mjs +4 -9
- package/library/composables/input/useFileUploader.mjs +1 -3
- package/library/composables/useRTL.mjs +3 -8
- package/library/docs/guides/migration/migrating-from-4.0.md +87 -0
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +0 -3
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +14 -22
- package/library/enum/fileTypes.mjs +53 -3
- package/library/index.mjs +137 -134
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs +1 -1
- package/library/localization/index.mjs.br +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/plugin-components.gen.mjs +245 -242
- package/library/plugin.mjs +135 -132
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +17 -15
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunMetrics.vue.d.ts +9 -39
- package/library/types/components/VcAgentRun/UiComponents/VcAgentRunRow.vue.d.ts +8 -17
- package/library/types/components/VcAgentRun/VcAgentRunCard.vue.d.ts +42 -81
- package/library/types/components/VcAgentRun/VcAgentRunGroup.vue.d.ts +27 -43
- package/library/types/components/VcAgentRun/agentRunStatus.d.ts +2 -2
- package/library/types/components/VcAiReasoning/VcAiReasoning.vue.d.ts +18 -67
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +40 -79
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserConfirm.vue.d.ts +10 -36
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserMultiSelect.vue.d.ts +9 -35
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserQuestionList.vue.d.ts +14 -45
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserRankPriorities.vue.d.ts +9 -35
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserSingleSelect.vue.d.ts +9 -35
- package/library/types/components/VcAskUserCard/UiComponents/VcAskUserText.vue.d.ts +9 -35
- package/library/types/components/VcAskUserCard/UiComponents/askUserControl.d.ts +1 -1
- package/library/types/components/VcAskUserCard/VcAskUserCard.vue.d.ts +18 -63
- package/library/types/components/VcAskUserCard/askUserAnswers.d.ts +1 -1
- package/library/types/components/VcAutocomplete/VcAutocomplete.vue.d.ts +64 -171
- package/library/types/components/VcAvatar/VcAvatar.vue.d.ts +5 -39
- package/library/types/components/VcBadgeTag/VcBadgeTag.vue.d.ts +12 -33
- package/library/types/components/VcButton/VcButton.vue.d.ts +19 -50
- package/library/types/components/VcButton/VcButtonIcon.vue.d.ts +16 -63
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +23 -63
- package/library/types/components/VcCard/VcCard.vue.d.ts +14 -42
- package/library/types/components/VcChatComposer/VcChatComposer.vue.d.ts +32 -97
- package/library/types/components/VcChatComposer/richText.d.ts +2 -2
- package/library/types/components/VcChatComposer/tiptap.d.ts +38 -38
- package/library/types/components/VcCheckbox/VcCheckbox.vue.d.ts +46 -95
- package/library/types/components/VcCheckbox/VcCheckboxButton.vue.d.ts +41 -77
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +40 -76
- package/library/types/components/VcCheckbox/VcCheckboxGroupEl.vue.d.ts +10 -4
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +44 -82
- package/library/types/components/VcCodeBlock/VcCodeBlock.vue.d.ts +5 -39
- package/library/types/components/VcCodeBlock/highlight.d.ts +1 -2
- package/library/types/components/VcCollapse/VcCollapse.vue.d.ts +17 -38
- package/library/types/components/VcCollapse/VcCollapseItem.vue.d.ts +26 -63
- package/library/types/components/VcCollapse/VcCollapseTransition.vue.d.ts +12 -6
- package/library/types/components/VcColorPicker/VcColorPicker.vue.d.ts +7 -43
- package/library/types/components/VcDatePicker/VcDatePicker.vue.d.ts +63 -103
- package/library/types/components/VcDatePickerPanel/VcDatePickerPanel.vue.d.ts +69 -132
- package/library/types/components/VcDelimitedList/VcDelimitedList.vue.d.ts +39 -78
- package/library/types/components/VcDropdown/VcDropdown.vue.d.ts +22 -81
- package/library/types/components/VcDropdown/VcDropdownItem.vue.d.ts +9 -12
- package/library/types/components/VcEmojiPicker/VcEmojiPicker.vue.d.ts +20 -45
- package/library/types/components/VcExcelUploader/VcExcelFileProcessLoader.vue.d.ts +4 -36
- package/library/types/components/VcExcelUploader/VcExcelFileUploadBlock.vue.d.ts +16 -39
- package/library/types/components/VcExcelUploader/VcExcelFileUploader.vue.d.ts +40 -74
- package/library/types/components/VcExcelUploader/VcFileImportErrorsCard.vue.d.ts +7 -29
- package/library/types/components/VcExcelUploader/VcFileImportParseResultBlock.vue.d.ts +20 -44
- package/library/types/components/VcExcelUploader/VcFileImportResultBindData.vue.d.ts +9 -37
- package/library/types/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.d.ts +7 -31
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerPart.vue.d.ts +8 -44
- package/library/types/components/VcExtendedDatetimeRangePicker/ExtendedDatetimeRangePickerRelative.vue.d.ts +5 -45
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.d.ts +10 -80
- package/library/types/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePickerQuickOptionsSelection.vue.d.ts +7 -39
- package/library/types/components/VcFileUploader/VcFileItem.vue.d.ts +9 -39
- package/library/types/components/VcFileUploader/VcFileUploader.vue.d.ts +24 -83
- package/library/types/components/VcFileUploader/VcFileUploaderArea.vue.d.ts +30 -90
- package/library/types/components/VcFileUploader/VcFileUploaderSimple.vue.d.ts +37 -96
- package/library/types/components/VcFileUploader/VcSimpleUploaderAction.vue.d.ts +18 -35
- package/library/types/components/VcFileUploader/VcSimpleUploaderFileList.vue.d.ts +27 -33
- package/library/types/components/VcFilterBar/VcFilterAddMenu.vue.d.ts +14 -31
- package/library/types/components/VcFilterBar/VcFilterBar.vue.d.ts +61 -103
- package/library/types/components/VcFilterBar/VcFilterChip.vue.d.ts +23 -32
- package/library/types/components/VcFilterBar/VcFilterChipEditor.vue.d.ts +20 -38
- package/library/types/components/VcFilterBar/VcFilterEditorModal.vue.d.ts +16 -29
- package/library/types/components/VcFilterBar/VcFilterEditorPanel.vue.d.ts +29 -93
- package/library/types/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.d.ts +16 -55
- package/library/types/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.d.ts +17 -60
- package/library/types/components/VcFilterBar/editors/VcFilterRangeEditor.vue.d.ts +16 -53
- package/library/types/components/VcFilterBar/editors/VcFilterSelectEditor.vue.d.ts +16 -53
- package/library/types/components/VcFilterBar/editors/VcFilterTextEditor.vue.d.ts +17 -56
- package/library/types/components/VcFilterBar/editors/VcFilterTextListEditor.vue.d.ts +17 -54
- package/library/types/components/VcFilterBar/filterBarChip.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarDate.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarDraft.d.ts +11 -11
- package/library/types/components/VcFilterBar/filterBarEditors.d.ts +2 -2
- package/library/types/components/VcFilterBar/filterBarErrors.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarModel.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarOptions.d.ts +2 -2
- package/library/types/components/VcFilterBar/filterBarSearch.d.ts +1 -1
- package/library/types/components/VcFilterBar/filterBarValidate.d.ts +1 -1
- package/library/types/components/VcForm/UiComponents/VcInputError.vue.d.ts +6 -27
- package/library/types/components/VcForm/UiComponents/VcInputLabel.vue.d.ts +14 -36
- package/library/types/components/VcForm/VcForm.vue.d.ts +15 -46
- package/library/types/components/VcForm/VcFormItem.vue.d.ts +23 -42
- package/library/types/components/VcHtmlEditor/VcHtmlEditor.vue.d.ts +8 -42
- package/library/types/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.d.ts +20 -34
- package/library/types/components/VcHtmlEditor/codemirror.d.ts +2 -2
- package/library/types/components/VcHtmlEditor/htmlEditor.config.d.ts +2 -2
- package/library/types/components/VcHyperLink/VcHyperLink.vue.d.ts +14 -39
- package/library/types/components/VcIcon/VcIcon.vue.d.ts +5 -31
- package/library/types/components/VcIconPicker/VcIconPicker.vue.d.ts +26 -60
- package/library/types/components/VcImageUploader/VcImageUploader.vue.d.ts +27 -50
- package/library/types/components/VcImageUploader/cropper.d.ts +24 -24
- package/library/types/components/VcInput/VcInput.vue.d.ts +14 -72
- package/library/types/components/VcInputNumber/VcInputNumber.vue.d.ts +7 -57
- package/library/types/components/VcInteractive/VcInteractive.vue.d.ts +47 -0
- package/library/types/components/VcJsonSchema/Components/ImportJsonSchemaModal.vue.d.ts +10 -19
- package/library/types/components/VcJsonSchema/Components/JsonCodeMirror.vue.d.ts +9 -18
- package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +25 -68
- package/library/types/components/VcJsonSchema/Components/JsonSchemaManageModal.vue.d.ts +11 -21
- package/library/types/components/VcJsonSchema/Components/codemirror.d.ts +2 -2
- package/library/types/components/VcJsonSchema/PropertySetup/JsonSchemaPropertyModal.vue.d.ts +12 -24
- package/library/types/components/VcJsonSchema/VcJsonSchema.vue.d.ts +30 -47
- package/library/types/components/VcJsonSchema/helpers/jsonSchema.enum.d.ts +1 -1
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerAuto.vue.d.ts +9 -37
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerCards.vue.d.ts +5 -15
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerFields.vue.d.ts +7 -29
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerKey.vue.d.ts +6 -28
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerMore.vue.d.ts +7 -19
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerObject.vue.d.ts +7 -30
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.d.ts +8 -34
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerState.vue.d.ts +17 -38
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTable.vue.d.ts +5 -15
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerTree.vue.d.ts +5 -15
- package/library/types/components/VcJsonViewer/UiComponents/VcJsonViewerValue.vue.d.ts +8 -33
- package/library/types/components/VcJsonViewer/VcJsonViewer.vue.d.ts +12 -75
- package/library/types/components/VcJsonViewer/jsonViewerText.d.ts +2 -2
- package/library/types/components/VcJsonViewer/jsonViewerUtils.d.ts +1 -1
- package/library/types/components/VcJsonViewer/useJsonViewerContext.d.ts +1 -1
- package/library/types/components/VcLightbox/VcLightbox.vue.d.ts +30 -62
- package/library/types/components/VcLoading/Loaders/Circles.vue.d.ts +4 -26
- package/library/types/components/VcLoading/Loaders/DotSpinner.vue.d.ts +4 -26
- package/library/types/components/VcLoading/Loaders/LdsSpinner.vue.d.ts +4 -26
- package/library/types/components/VcLoading/Loaders/LoadIcon.vue.d.ts +5 -29
- package/library/types/components/VcLoading/Loaders/Stretch.vue.d.ts +4 -26
- package/library/types/components/VcLoading/Loaders/index.d.ts +5 -5
- package/library/types/components/VcLoading/Loaders/types.d.ts +1 -1
- package/library/types/components/VcLoading/VcLoading.vue.d.ts +13 -38
- package/library/types/components/VcLoading/enum.d.ts +13 -129
- package/library/types/components/VcMdEditor/ParameterNode.vue.d.ts +5 -4
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +33 -215
- package/library/types/components/VcMdEditor/VcMdEditorContent.vue.d.ts +10 -44
- package/library/types/components/VcMdEditor/VcMdEditorToolbar.vue.d.ts +12 -23
- package/library/types/components/VcMdEditor/ltrNumbersPlugin.d.ts +3 -3
- package/library/types/components/VcMdEditor/mdEditor.config.d.ts +10 -10
- package/library/types/components/VcMdEditor/milkdown.d.ts +1 -1
- package/library/types/components/VcMdEditor/readonlyMarkdown.d.ts +1 -1
- package/library/types/components/VcMdEditor/rtlCursorPlugin.d.ts +2 -2
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +26 -82
- package/library/types/components/VcMessage/VcMessageMeta.vue.d.ts +7 -20
- package/library/types/components/VcMessage/content/VcMessageAudioBlock.vue.d.ts +6 -19
- package/library/types/components/VcMessage/content/VcMessageFileBlock.vue.d.ts +9 -22
- package/library/types/components/VcMessage/content/VcMessageImageBlock.vue.d.ts +9 -22
- package/library/types/components/VcMessage/content/VcMessageMarkdownBlock.vue.d.ts +6 -19
- package/library/types/components/VcMessage/content/VcMessageTextBlock.vue.d.ts +6 -19
- package/library/types/components/VcMessage/content/VcMessageVideoBlock.vue.d.ts +6 -19
- package/library/types/components/VcMessage/content/messageContentComponents.d.ts +2 -2
- package/library/types/components/VcMessage/reactions/VcMessageEmojiPicker.vue.d.ts +28 -52
- package/library/types/components/VcMessage/reactions/VcMessageReactionBar.vue.d.ts +9 -22
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapper.vue.d.ts +38 -208
- package/library/types/components/VcMessagesWrapper/VcMessagesWrapperRow.vue.d.ts +41 -86
- package/library/types/components/VcMeterGroup/VcMeterGroup.vue.d.ts +68 -112
- package/library/types/components/VcMeterGroup/VcMeterGroupLabel.vue.d.ts +15 -38
- package/library/types/components/VcModal/VcConfirmModal.vue.d.ts +7 -33
- package/library/types/components/VcModal/VcModal.vue.d.ts +26 -79
- package/library/types/components/VcNotification/VcNotification.vue.d.ts +5 -65
- package/library/types/components/VcNotification/VcNotificationMessage.vue.d.ts +9 -18
- package/library/types/components/VcOtpInput/VcOtpInput.vue.d.ts +11 -61
- package/library/types/components/VcPagination/VcPagination.vue.d.ts +16 -49
- package/library/types/components/VcPagination/VcPaginationButton.vue.d.ts +10 -45
- package/library/types/components/VcPdfViewer/UiComponents/VcPdfViewerToolbar.vue.d.ts +24 -41
- package/library/types/components/VcPdfViewer/VcPdfDocument.vue.d.ts +17 -41
- package/library/types/components/VcPdfViewer/VcPdfDocumentCard.vue.d.ts +18 -37
- package/library/types/components/VcPdfViewer/VcPdfDocumentPage.vue.d.ts +8 -38
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.d.ts +15 -45
- package/library/types/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.d.ts +18 -12
- package/library/types/components/VcPdfViewer/VcPdfViewer.vue.d.ts +37 -72
- package/library/types/components/VcPdfViewer/pdfDocumentActions.d.ts +1 -1
- package/library/types/components/VcPdfViewer/pdfDocumentParams.d.ts +1 -1
- package/library/types/components/VcPdfViewer/pdfjslib.d.ts +1 -1
- package/library/types/components/VcPhoneInput/VcFlagLabel.vue.d.ts +3 -23
- package/library/types/components/VcPhoneInput/VcPhoneInput.vue.d.ts +32 -79
- package/library/types/components/VcPluginOverlays/VcPluginOverlays.vue.d.ts +4 -26
- package/library/types/components/VcPopover/VcConfirmPopover.vue.d.ts +15 -37
- package/library/types/components/VcPopover/VcPopover.vue.d.ts +21 -61
- package/library/types/components/VcPopover/VcSelectPopover.vue.d.ts +33 -97
- package/library/types/components/VcProgress/VcProgress.vue.d.ts +18 -53
- package/library/types/components/VcProgress/VcProgressCircular.vue.d.ts +19 -56
- package/library/types/components/VcProgress/progress.options.d.ts +4 -4
- package/library/types/components/VcRadio/VcRadio.vue.d.ts +26 -55
- package/library/types/components/VcRadioButtons/VcRadioButtonsGroup.vue.d.ts +30 -73
- package/library/types/components/VcRadioGroup/VcRadioGroup.vue.d.ts +31 -76
- package/library/types/components/VcRadioTabs/UiComponents/VcRadioTabsNav.vue.d.ts +26 -62
- package/library/types/components/VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.d.ts +13 -26
- package/library/types/components/VcRadioTabs/VcRadioTabs.vue.d.ts +25 -81
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +45 -92
- package/library/types/components/VcSelect/VcInfiniteScrollSelect.vue.d.ts +50 -154
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +65 -254
- package/library/types/components/VcSelect/VcSelectGrouped.vue.d.ts +57 -175
- package/library/types/components/VcSelect/VcSelectOption.vue.d.ts +25 -45
- package/library/types/components/VcSipFlow/VcSipFlow.vue.d.ts +23 -53
- package/library/types/components/VcSkeletonLoader/Loaders/Card.vue.d.ts +6 -27
- package/library/types/components/VcSkeletonLoader/Loaders/Circle.vue.d.ts +7 -31
- package/library/types/components/VcSkeletonLoader/Loaders/Row.vue.d.ts +7 -31
- package/library/types/components/VcSkeletonLoader/Loaders/Square.vue.d.ts +7 -31
- package/library/types/components/VcSkeletonLoader/Loaders/Text.vue.d.ts +5 -14
- package/library/types/components/VcSkeletonLoader/VcSkeletonLoader.vue.d.ts +3 -35
- package/library/types/components/VcSlider/VcSlider.vue.d.ts +2 -1
- package/library/types/components/VcSoundplayer/VcPlayerPlayStopButton.vue.d.ts +16 -68
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRate.vue.d.ts +8 -37
- package/library/types/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.d.ts +9 -41
- package/library/types/components/VcSoundplayer/VcPlayerSkipButtons.vue.d.ts +20 -54
- package/library/types/components/VcSoundplayer/VcSoundCurrentTime.vue.d.ts +2 -1
- package/library/types/components/VcSoundplayer/VcSoundDuration.vue.d.ts +2 -1
- package/library/types/components/VcSoundplayer/VcSoundPlayer.vue.d.ts +35 -69
- package/library/types/components/VcSoundplayer/VcSoundPlayerCompact.vue.d.ts +20 -57
- package/library/types/components/VcSoundplayer/VcSoundPlayerError.vue.d.ts +9 -26
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarker.vue.d.ts +24 -55
- package/library/types/components/VcSoundplayer/VcSoundPlayerMarkers.vue.d.ts +23 -38
- package/library/types/components/VcSoundplayer/VcSoundPlayerProgress.vue.d.ts +14 -17
- package/library/types/components/VcSoundplayer/VcSoundPlayerWrapper.vue.d.ts +26 -146
- package/library/types/components/VcSoundplayer/VcSoundVolume.vue.d.ts +11 -50
- package/library/types/components/VcSoundplayer/player.options.d.ts +2 -2
- package/library/types/components/VcSoundplayer/soundPlayerParts.d.ts +12 -12
- package/library/types/components/VcSoundplayer/wavesurfer.d.ts +2 -2
- package/library/types/components/VcSparkline/VcBarLine.vue.d.ts +17 -68
- package/library/types/components/VcSparkline/VcSparkline.vue.d.ts +15 -75
- package/library/types/components/VcSparkline/VcTrendLine.vue.d.ts +17 -68
- package/library/types/components/VcSplitButton/VcSplitButton.vue.d.ts +30 -75
- package/library/types/components/VcSwitch/VcSwitch.vue.d.ts +77 -138
- package/library/types/components/VcSystemUserPrompt/VcSystemUserPrompt.vue.d.ts +19 -36
- package/library/types/components/VcSystemUserPrompt/enum.d.ts +1 -1
- package/library/types/components/VcTable/VcTable.vue.d.ts +138 -360
- package/library/types/components/VcTabs/VcTabNav.vue.d.ts +20 -43
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +19 -52
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +137 -165
- package/library/types/components/VcTag/VcTag.vue.d.ts +14 -49
- package/library/types/components/VcTagInput/VcTagInput.vue.d.ts +22 -86
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +9 -57
- package/library/types/components/VcToolCall/UiComponents/VcToolCallValue.vue.d.ts +9 -49
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +40 -73
- package/library/types/components/VcTour/VcTour.vue.d.ts +35 -54
- package/library/types/components/VcTransfer/VcTransfer.vue.d.ts +25 -52
- package/library/types/components/VcTree/VcTree.vue.d.ts +61 -143
- package/library/types/components/VcTree/VcTreeSelect.vue.d.ts +449 -958
- package/library/types/components/VcTree/treeTypeUtils.d.ts +1 -1
- package/library/types/components/VcVerticalTabs/VcVerticalTabs.vue.d.ts +34 -80
- package/library/types/components/VcVerticalTabs/VerticalTabNav.vue.d.ts +31 -73
- package/library/types/components/VcWizard/VcSummaryProgress.vue.d.ts +3 -33
- package/library/types/components/VcWizard/VcSummaryStep.vue.d.ts +6 -36
- package/library/types/components/VcWizard/VcWizard.vue.d.ts +33 -62
- package/library/types/components/VcWizard/VcWizardNavigation.vue.d.ts +20 -53
- package/library/types/components/VcWizard/VcWizardSummary.vue.d.ts +6 -34
- package/library/types/components/VcWizard/VcWizardTransition.vue.d.ts +58 -0
- package/library/types/components/exports.d.ts +129 -127
- package/library/types/components.gen.d.ts +1 -0
- package/library/types/composables/input/useFileUploader.d.ts +1 -1
- package/library/types/composables/input/useInputBase.d.ts +5 -5
- package/library/types/composables/input/useInputColor.d.ts +4 -4
- package/library/types/composables/option/useOptionMethods.d.ts +14 -14
- package/library/types/composables/useAudioRecorder.d.ts +6 -6
- package/library/types/composables/useCopyButton.d.ts +2 -2
- package/library/types/composables/useElapsed.d.ts +2 -2
- package/library/types/composables/useThrottledText.d.ts +1 -1
- package/library/types/directives/index.d.ts +1 -1
- package/library/types/entity/components/Button/VcEntityAddButton.vue.d.ts +16 -33
- package/library/types/entity/components/Button/VcEntityCancelButton.vue.d.ts +21 -45
- package/library/types/entity/components/Button/VcEntityDeleteIconButton.vue.d.ts +21 -41
- package/library/types/entity/components/Button/VcEntityEditIconButton.vue.d.ts +18 -30
- package/library/types/entity/components/Button/VcEntityRestoreButton.vue.d.ts +21 -45
- package/library/types/entity/components/Button/VcEntityStatusButton.vue.d.ts +21 -40
- package/library/types/entity/components/Form/VcBaseVerticalForm.vue.d.ts +18 -37
- package/library/types/entity/components/Form/VcEntityEditPageForm.vue.d.ts +26 -54
- package/library/types/entity/components/Form/VcEntityVerticalCreateForm.vue.d.ts +16 -34
- package/library/types/entity/components/Form/VcEntityVerticalEditForm.vue.d.ts +31 -76
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +38 -135
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +55 -151
- package/library/types/entity/components/index.d.ts +12 -12
- package/library/types/entity/composable/useEntityProvideInject.d.ts +1 -1
- package/library/types/entity/services/BaseEntityService.d.ts +2 -2
- package/library/types/enum/fileTypes.d.ts +1 -1
- package/library/types/localization/Localization.types.d.ts +2 -2
- package/library/types/localization/index.d.ts +2 -2
- package/library/types/localization/locales/en.json.d.ts +415 -415
- package/library/types/plugin-components.gen.d.ts +1 -1
- package/library/types/plugin.d.ts +1 -1
- package/library/types/services/index.d.ts +1 -7
- package/library/types/theme/themes.json.d.ts +72 -72
- package/library/types/types/Entity.types.d.ts +8 -1
- package/library/types/types/Entry.types.d.ts +1 -1
- package/library/types/types/ExcelParser.types.d.ts +1 -1
- package/library/types/types/OptionAndConfig.types.d.ts +8 -4
- package/library/types/types/Overlay.types.d.ts +1 -1
- package/library/types/types/Tabs.d.ts +1 -1
- package/library/types/types/VcAgentRun.types.d.ts +3 -3
- package/library/types/types/VcAiReasoning.types.d.ts +1 -1
- package/library/types/types/VcApprovalCard.types.d.ts +1 -1
- package/library/types/types/VcChatComposer.types.d.ts +1 -1
- package/library/types/types/VcDatePicker.types.d.ts +1 -1
- package/library/types/types/VcDropdown.types.d.ts +2 -2
- package/library/types/types/VcEditableTabs.types.d.ts +1 -1
- package/library/types/types/VcEmojiPicker.types.d.ts +1 -1
- package/library/types/types/VcFileUploader.types.d.ts +1 -1
- package/library/types/types/VcFilterBar.types.d.ts +3 -3
- package/library/types/types/VcInteractive.types.d.ts +7 -0
- package/library/types/types/VcJsonViewer.types.d.ts +2 -2
- package/library/types/types/VcMdEditor.types.d.ts +1 -1
- package/library/types/types/VcMessage.types.d.ts +1 -1
- package/library/types/types/VcMessagesWrapper.types.d.ts +1 -1
- package/library/types/types/VcNotification.types.d.ts +2 -2
- package/library/types/types/VcSoundPlayer.types.d.ts +3 -3
- package/library/types/types/VcSoundPlayerInstance.types.d.ts +3 -3
- package/library/types/types/VcSplitButton.types.d.ts +4 -4
- package/library/types/types/VcToolCall.types.d.ts +2 -2
- package/library/types/types/VcTour.types.d.ts +2 -2
- package/library/types/types/VcTree.types.d.ts +2 -2
- package/library/types/types/icons.types.d.ts +1 -1
- package/library/types/types/index.d.ts +1 -0
- package/library/types/utils/aiChat.d.ts +1 -1
- package/library/types/utils/elementPlusIcons.d.ts +2 -2
- package/library/types/utils/excelParser/configs.d.ts +1 -1
- package/library/types/utils/excelParser/helper.d.ts +3 -3
- package/library/types/utils/excelParser/parser.d.ts +1 -1
- package/library/types/utils/excelParser/validations.d.ts +1 -1
- package/library/types/utils/helpers.d.ts +1 -1
- package/library/types/utils/jsonSchema/helpers.d.ts +2 -5
- package/library/types/utils/jsonSchema/index.d.ts +1 -1
- package/library/types/utils/jsonSchema/jsonSchemaHelpers.d.ts +4 -4
- package/library/types/utils/lucideIcon.d.ts +1 -1
- package/library/types/utils/mountPluginOverlays.d.ts +1 -1
- package/library/utils/globalSingleton.mjs +11 -5
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/library/utils/jsonSchema/jsonSchemaHelpers.mjs +0 -1
- package/package.json +310 -311
- package/src/theme/index.ts +101 -101
- package/src/theme/tailwindScheme.js +78 -78
- package/src/theme/theme.types.ts +31 -31
- package/src/theme/themeMerge.ts +63 -63
- package/src/theme/themes.json +72 -72
- package/tailwind.config.d.ts +5 -5
- package/tailwind.config.js +178 -178
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{dropdown-item.css → tooltip.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _genPath(points, radius, fill = false, height = 75) {
|
|
2
|
-
if (points.length === 0) return "";
|
|
3
2
|
const start = points.shift();
|
|
3
|
+
if (!start) return "";
|
|
4
4
|
const end = points[points.length - 1];
|
|
5
5
|
return (fill ? `M${start.x} ${height - start.x + 2} L${start.x} ${start.y}` : `M${start.x} ${start.y}`) + points.map((point, index) => {
|
|
6
6
|
const next = points[index + 1];
|
|
@@ -418,21 +418,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
418
418
|
function defaultSortMethod(data1, data2) {
|
|
419
419
|
const v1 = resolveFieldData(data1, sortBy.value);
|
|
420
420
|
const v2 = resolveFieldData(data2, sortBy.value);
|
|
421
|
-
|
|
421
|
+
return compareSortValues(v1, v2) * SORT_TYPE[sortOrder.value];
|
|
422
|
+
}
|
|
423
|
+
function compareSortValues(v1, v2) {
|
|
422
424
|
if (v1 == null && v2 != null) {
|
|
423
|
-
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
425
|
+
return -1;
|
|
426
|
+
}
|
|
427
|
+
if (v1 != null && v2 == null) {
|
|
428
|
+
return 1;
|
|
429
|
+
}
|
|
430
|
+
if (v1 == null && v2 == null) {
|
|
431
|
+
return 0;
|
|
432
|
+
}
|
|
433
|
+
if (typeof v1 === "string" && typeof v2 === "string") {
|
|
434
|
+
return v1.localeCompare(v2, void 0, { numeric: true });
|
|
435
|
+
}
|
|
436
|
+
if ((typeof v1 === "number" || typeof v1 === "string") && (typeof v2 === "number" || typeof v2 === "string")) {
|
|
437
|
+
return v1 < v2 ? -1 : v1 > v2 ? 1 : 0;
|
|
434
438
|
}
|
|
435
|
-
return
|
|
439
|
+
return 0;
|
|
436
440
|
}
|
|
437
441
|
function onPerPageOptionClick(option) {
|
|
438
442
|
emit("click-per-page-option", option);
|
|
@@ -135,6 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
}
|
|
136
136
|
function onPrevClick() {
|
|
137
137
|
const content = navScrollContainer.value;
|
|
138
|
+
if (!content) return;
|
|
138
139
|
const width = DomHandler.getWidth(content);
|
|
139
140
|
const pos = content.scrollLeft - width;
|
|
140
141
|
const offset = pos <= 0 ? 0 : pos;
|
|
@@ -142,6 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
143
|
}
|
|
143
144
|
function onNextClick() {
|
|
144
145
|
const content = navScrollContainer.value;
|
|
146
|
+
if (!content) return;
|
|
145
147
|
const width = DomHandler.getWidth(content);
|
|
146
148
|
const pos = content.scrollLeft + width;
|
|
147
149
|
const lastPos = content.scrollWidth - width;
|
|
@@ -22,17 +22,28 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
22
22
|
const props = __props;
|
|
23
23
|
const emit = __emit;
|
|
24
24
|
const { optionListMap, optionValue } = useOptionMethods();
|
|
25
|
+
const optionsMapped = computed(() => {
|
|
26
|
+
return optionListMap(props.options, props.config);
|
|
27
|
+
});
|
|
28
|
+
const valueByKey = computed(() => {
|
|
29
|
+
const values = [...props.modelValue, ...optionsMapped.value.map((option) => option.value)];
|
|
30
|
+
return new Map(values.map((value) => [value, value]));
|
|
31
|
+
});
|
|
25
32
|
const model = computed({
|
|
26
33
|
get() {
|
|
27
34
|
return props.modelValue;
|
|
28
35
|
},
|
|
29
|
-
set(
|
|
30
|
-
|
|
36
|
+
set(keys) {
|
|
37
|
+
const selected = [];
|
|
38
|
+
for (const key of keys) {
|
|
39
|
+
const value = valueByKey.value.get(key);
|
|
40
|
+
if (value !== void 0) {
|
|
41
|
+
selected.push(value);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
emit("update:modelValue", selected);
|
|
31
45
|
}
|
|
32
46
|
});
|
|
33
|
-
const optionsMapped = computed(() => {
|
|
34
|
-
return optionListMap(props.options, props.config);
|
|
35
|
-
});
|
|
36
47
|
function onChange(data) {
|
|
37
48
|
if (!data.length) {
|
|
38
49
|
emit("change", []);
|
|
@@ -138,20 +138,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
138
138
|
return acc;
|
|
139
139
|
}, []);
|
|
140
140
|
}
|
|
141
|
+
function mountedTree() {
|
|
142
|
+
if (!treeRef.value) {
|
|
143
|
+
throw new Error("VcTree: the tree is not mounted");
|
|
144
|
+
}
|
|
145
|
+
return treeRef.value;
|
|
146
|
+
}
|
|
141
147
|
function getCheckedNodesFn(leafOnly = false) {
|
|
142
|
-
return
|
|
148
|
+
return mountedTree().getCheckedNodes(leafOnly, false);
|
|
143
149
|
}
|
|
144
150
|
function getCheckedKeysFn(leafOnly = false) {
|
|
145
|
-
return
|
|
151
|
+
return mountedTree().getCheckedKeys(leafOnly);
|
|
146
152
|
}
|
|
147
153
|
function setCheckedNodesFn(nodes) {
|
|
148
|
-
|
|
154
|
+
mountedTree().setCheckedNodes(nodes, false);
|
|
149
155
|
}
|
|
150
156
|
function setCheckedKeys(keys) {
|
|
151
|
-
|
|
157
|
+
mountedTree().setCheckedKeys(keys, false);
|
|
152
158
|
}
|
|
153
159
|
function resetChecked() {
|
|
154
|
-
|
|
160
|
+
mountedTree().setCheckedKeys([], false);
|
|
155
161
|
}
|
|
156
162
|
function getParentSelectedNodes(options = [], data = []) {
|
|
157
163
|
const _allChecked = getCheckedKeysFn();
|
|
@@ -207,7 +213,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
207
213
|
watch(
|
|
208
214
|
filterValue,
|
|
209
215
|
(val) => {
|
|
210
|
-
|
|
216
|
+
var _a;
|
|
217
|
+
(_a = treeRef.value) == null ? void 0 : _a.filter(val);
|
|
211
218
|
}
|
|
212
219
|
);
|
|
213
220
|
watch(
|
|
@@ -21,16 +21,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
options: { default: () => [] },
|
|
22
22
|
config: { default: void 0 }
|
|
23
23
|
},
|
|
24
|
-
emits: ["
|
|
24
|
+
emits: ["update:modelValue", "change"],
|
|
25
25
|
setup(__props, { emit: __emit }) {
|
|
26
26
|
const props = __props;
|
|
27
27
|
const { optionValue } = useOptionMethods();
|
|
28
28
|
const emit = __emit;
|
|
29
|
-
const activeElement = useVModel(
|
|
30
|
-
props,
|
|
31
|
-
"modelValue",
|
|
32
|
-
emit
|
|
33
|
-
);
|
|
29
|
+
const activeElement = useVModel(props, "modelValue", emit);
|
|
34
30
|
const contentWrapperRef = ref();
|
|
35
31
|
const slotName = computed(() => {
|
|
36
32
|
const allValues = props.options.reduce(
|
|
@@ -40,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40
36
|
},
|
|
41
37
|
[]
|
|
42
38
|
);
|
|
43
|
-
const
|
|
44
|
-
return
|
|
39
|
+
const active = activeElement.value;
|
|
40
|
+
return typeof active === "string" && active && allValues.includes(active) ? active : "";
|
|
45
41
|
});
|
|
46
42
|
function change(val) {
|
|
47
43
|
emit("change", val);
|
|
@@ -12,20 +12,16 @@ const _hoisted_5 = { class: "tab-name-content mx-2 tab-name text-sm font-medium
|
|
|
12
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
13
13
|
__name: "VerticalTabNav",
|
|
14
14
|
props: {
|
|
15
|
+
modelValue: { default: void 0 },
|
|
15
16
|
config: { default: void 0 },
|
|
16
|
-
options: { default: () => [] }
|
|
17
|
-
modelValue: { default: void 0 }
|
|
17
|
+
options: { default: () => [] }
|
|
18
18
|
},
|
|
19
|
-
emits: ["
|
|
19
|
+
emits: ["update:modelValue", "change"],
|
|
20
20
|
setup(__props, { emit: __emit }) {
|
|
21
21
|
const props = __props;
|
|
22
22
|
const { optionListMap } = useOptionMethods();
|
|
23
23
|
const emit = __emit;
|
|
24
|
-
const activeElement = useVModel(
|
|
25
|
-
props,
|
|
26
|
-
"modelValue",
|
|
27
|
-
emit
|
|
28
|
-
);
|
|
24
|
+
const activeElement = useVModel(props, "modelValue", emit);
|
|
29
25
|
const optionsMapped = computed(() => {
|
|
30
26
|
return optionListMap(props.options, props.config);
|
|
31
27
|
});
|
|
@@ -36,7 +32,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
32
|
const value = option.value;
|
|
37
33
|
activeElement.value = value;
|
|
38
34
|
emit("change", option.originalItem);
|
|
39
|
-
emit("update:modelValue", value);
|
|
40
35
|
}
|
|
41
36
|
return (_ctx, _cache) => {
|
|
42
37
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
@@ -101,9 +101,7 @@ function useFileUploader(props, emit) {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
async function getFileArray(inputFiles) {
|
|
104
|
-
|
|
105
|
-
files = processFilesLength(inputFiles);
|
|
106
|
-
files = processFileSize(files);
|
|
104
|
+
const files = processFileSize(processFilesLength(inputFiles));
|
|
107
105
|
if (props.fileType === "base64") {
|
|
108
106
|
return await getFilesInBase64(files);
|
|
109
107
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ref, computed } from "vue";
|
|
2
|
-
let rtlState
|
|
3
|
-
let isInitialized = false;
|
|
2
|
+
let rtlState;
|
|
4
3
|
let observer = null;
|
|
5
4
|
function updateRTLState(isRTL, direction) {
|
|
6
5
|
var _a;
|
|
@@ -9,7 +8,6 @@ function updateRTLState(isRTL, direction) {
|
|
|
9
8
|
isRTL.value = direction.value === "rtl";
|
|
10
9
|
}
|
|
11
10
|
function initializeRTLState() {
|
|
12
|
-
if (isInitialized) return;
|
|
13
11
|
const isRTL = ref(false);
|
|
14
12
|
const direction = ref("ltr");
|
|
15
13
|
updateRTLState(isRTL, direction);
|
|
@@ -29,16 +27,13 @@ function initializeRTLState() {
|
|
|
29
27
|
attributeFilter: ["style", "class"]
|
|
30
28
|
});
|
|
31
29
|
observer._styleObserver = styleObserver;
|
|
32
|
-
|
|
30
|
+
return {
|
|
33
31
|
isRTL: computed(() => isRTL.value),
|
|
34
32
|
direction: computed(() => direction.value)
|
|
35
33
|
};
|
|
36
|
-
isInitialized = true;
|
|
37
34
|
}
|
|
38
35
|
function useRTL() {
|
|
39
|
-
|
|
40
|
-
initializeRTLState();
|
|
41
|
-
}
|
|
36
|
+
rtlState ?? (rtlState = initializeRTLState());
|
|
42
37
|
return rtlState;
|
|
43
38
|
}
|
|
44
39
|
export {
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Migrating from 4.0
|
|
3
|
+
description: What an application on ui-plus 4.0 changes on the way to the current release, and how a project moves to the shared ESLint config and TypeScript 6
|
|
4
|
+
group: migration
|
|
5
|
+
order: 2
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Migrating from 4.0
|
|
9
|
+
|
|
10
|
+
What an application on `4.0` changes or checks on the way to the current release. An application on a 4.0 beta takes the rows of README "Upgrading from a 4.0 beta" first.
|
|
11
|
+
|
|
12
|
+
## What changed in the library
|
|
13
|
+
|
|
14
|
+
A row names the last release without the change, so the application takes every row whose release is the one it has installed (the `version` its `package.json` or lock file gives for the library before the upgrade) or a later one.
|
|
15
|
+
|
|
16
|
+
| Changed after | What changed | What the application does |
|
|
17
|
+
| --- | --- | --- |
|
|
18
|
+
| `4.0.1` | `VcEntityEditableTabs` has no `entityMethodDataType` prop, and its record is always a row of the entity's `list` or the answer of its `info`. The type of its `entity` prop is `VcEntityWithTypedInfo<Entity>` | Nothing at runtime. `entity-method-data-type` is removed from every `<VcEntityEditableTabs>` (`grep -rnE "entity-method-data-type\|entityMethodDataType" src`). A generic component that passes its own `entity` prop on declares that prop as `VcEntityWithTypedInfo<Entity>` and reads the record type as `ExtractServiceImplementsEntity<Entity>`: `vue-tsc` reports the earlier `entity: Entity` there |
|
|
19
|
+
|
|
20
|
+
Additions that ask nothing of an application (new components, props, theme keys and classes) are not rows.
|
|
21
|
+
|
|
22
|
+
## TypeScript and ESLint
|
|
23
|
+
|
|
24
|
+
From `4.2.0` the library is written on TypeScript 6 and linted with `@voicenter-team/eslint-config`. This asks nothing of an application: the declarations in `library/types/` are read by an application on TypeScript 5.9 as before, and the library brings no lint rule into a project.
|
|
25
|
+
|
|
26
|
+
A project moves to the same toolchain on its own schedule. The steps below are the ones the library took.
|
|
27
|
+
|
|
28
|
+
### Packages
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
npm rm @voicenter-team/eslint-config-vue @voicenter-team/eslint-config-ts \
|
|
32
|
+
@typescript-eslint/eslint-plugin @typescript-eslint/parser \
|
|
33
|
+
eslint-plugin-vue vue-eslint-parser @vue/eslint-config-typescript
|
|
34
|
+
npm i -D eslint@^10 @voicenter-team/eslint-config@^1 typescript@^6 vue-tsc@^3
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
The config brings typescript-eslint, eslint-plugin-vue and the stylistic rules itself: a project installs none of them. Node is `^20.19`, `^22.13` or `>=24`.
|
|
38
|
+
|
|
39
|
+
A project that builds declarations with `vite-plugin-dts` takes `vite-plugin-dts@^5` and renames its `outDir` option to `outDirs`: version 3 writes broken declarations on TypeScript 6.
|
|
40
|
+
|
|
41
|
+
### ESLint
|
|
42
|
+
|
|
43
|
+
`.eslintrc.*` and `.eslintignore` are replaced by `eslint.config.mjs`:
|
|
44
|
+
|
|
45
|
+
```js
|
|
46
|
+
import { defineConfig, includeIgnoreFile } from 'eslint/config'
|
|
47
|
+
import voicenterVue from '@voicenter-team/eslint-config/vue'
|
|
48
|
+
|
|
49
|
+
export default defineConfig(
|
|
50
|
+
includeIgnoreFile(new URL('./.gitignore', import.meta.url).pathname),
|
|
51
|
+
voicenterVue
|
|
52
|
+
)
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The script is `eslint .`, with no `--ext` and no `--ignore-path`. A folder that is a project of its own, with its own `package.json` and ESLint config, is named in `globalIgnores([ 'docs/' ])` (from `eslint/config`), or ESLint loads that folder's config for its files.
|
|
56
|
+
|
|
57
|
+
What the config enforces, and what moved from the earlier `-vue` and `-ts` configs, is in the config's own README: `node_modules/@voicenter-team/eslint-config/README.md`, "Migrating from @voicenter-team/eslint-config-ts or -vue".
|
|
58
|
+
|
|
59
|
+
### tsconfig
|
|
60
|
+
|
|
61
|
+
TypeScript 6 reports `baseUrl` as deprecated. It is removed, and each `paths` entry becomes relative to the tsconfig:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"compilerOptions": {
|
|
66
|
+
"moduleResolution": "bundler",
|
|
67
|
+
"paths": {
|
|
68
|
+
"@/*": [ "./src/*" ]
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
`moduleResolution` is `bundler` in the tsconfig of the application and in the one of `vite.config.ts`.
|
|
75
|
+
|
|
76
|
+
### The code
|
|
77
|
+
|
|
78
|
+
The config bans the type assertion (`value as T`, `<T>value`), the non-null assertion (`value!`), `any`, and the comments `@ts-expect-error`, `@ts-ignore` and `@ts-nocheck`. A finding is fixed in the code, with no `eslint-disable` comment:
|
|
79
|
+
|
|
80
|
+
- a value of unknown shape (a parsed JSON, a `catch` variable, an injected value) is `unknown`, narrowed by a type guard, `(value: unknown): value is T`;
|
|
81
|
+
- a type the compiler cannot follow is fixed where it is declared: a generic parameter, a narrower return type, the generated contract;
|
|
82
|
+
- a template ref is read with `useTemplateRef<T>()`;
|
|
83
|
+
- `inject()` without a provider gives `undefined`, and the code handles it.
|
|
84
|
+
|
|
85
|
+
`npx eslint . --no-inline-config` counts the findings that the `eslint-disable` comments of the project hide: that number, not the one of `npx eslint .`, is the size of the work.
|
|
86
|
+
|
|
87
|
+
Done when `npx eslint .` prints nothing with no `eslint-disable` comment left in the code, and the type check exits 0.
|
|
@@ -86,7 +86,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
86
86
|
const localData = ref([]);
|
|
87
87
|
const isRecycleBin = ref(false);
|
|
88
88
|
const searchModel = ref("");
|
|
89
|
-
const searchInputRef = ref();
|
|
90
89
|
const debouncedSearchModel = refDebounced(searchModel, 300);
|
|
91
90
|
const usedSlots = computed(() => {
|
|
92
91
|
return Object.keys(slots);
|
|
@@ -336,8 +335,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
336
335
|
createElementVNode("div", _hoisted_12, [
|
|
337
336
|
((_a2 = __props.searchKeys) == null ? void 0 : _a2.length) ? (openBlock(), createElementBlock("div", _hoisted_13, [
|
|
338
337
|
createVNode(_sfc_main$5, {
|
|
339
|
-
ref_key: "searchInputRef",
|
|
340
|
-
ref: searchInputRef,
|
|
341
338
|
modelValue: searchModel.value,
|
|
342
339
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchModel.value = $event),
|
|
343
340
|
placeholder: unref(tVU).t("voicenterUi.general.search"),
|
|
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
13
13
|
__name: "VcEntityEditableTabs",
|
|
14
14
|
props: {
|
|
15
15
|
entity: {},
|
|
16
|
-
entityMethodDataType: { default: void 0 },
|
|
17
16
|
hideCreateTab: { type: Boolean, default: false },
|
|
18
17
|
lazyLoad: { type: Boolean, default: false },
|
|
19
18
|
modelValue: { default: LIST_TAB_QUERY_VALUE },
|
|
@@ -41,11 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
41
40
|
const emit = __emit;
|
|
42
41
|
const vcTabs = ref(null);
|
|
43
42
|
const editTabs = ref([]);
|
|
44
|
-
const activeTabModel = useVModel(
|
|
45
|
-
props,
|
|
46
|
-
"modelValue",
|
|
47
|
-
emit
|
|
48
|
-
);
|
|
43
|
+
const activeTabModel = useVModel(props, "modelValue", emit);
|
|
49
44
|
const editableTabsData = ref({});
|
|
50
45
|
const dataTabs = computed(() => {
|
|
51
46
|
const listTab = {
|
|
@@ -60,13 +55,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
60
55
|
disabled: tab.disabled,
|
|
61
56
|
disabledHint: tab.disabledHint
|
|
62
57
|
}));
|
|
63
|
-
const editTabsList = [
|
|
64
|
-
...editTabs.value
|
|
65
|
-
];
|
|
66
58
|
const tabs = [
|
|
67
59
|
listTab,
|
|
68
60
|
...fixedTabsList,
|
|
69
|
-
...
|
|
61
|
+
...editTabs.value
|
|
70
62
|
];
|
|
71
63
|
if (!props.hideCreateTab) {
|
|
72
64
|
return [
|
|
@@ -112,16 +104,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
112
104
|
const parsedQueryTabName = parseInt(queryTabName);
|
|
113
105
|
if (isNaN(parsedQueryTabName)) return;
|
|
114
106
|
props.entity.info(parsedQueryTabName).then((res) => {
|
|
115
|
-
|
|
116
|
-
if (!_res) {
|
|
107
|
+
if (!res) {
|
|
117
108
|
return;
|
|
118
109
|
}
|
|
119
|
-
if (props.entity.canEdit(
|
|
120
|
-
openEditTab(
|
|
110
|
+
if (props.entity.canEdit(res)) {
|
|
111
|
+
openEditTab(res);
|
|
121
112
|
} else {
|
|
122
113
|
emit("permission-error", {
|
|
123
114
|
tabName: queryTabName,
|
|
124
|
-
response:
|
|
115
|
+
response: res
|
|
125
116
|
});
|
|
126
117
|
}
|
|
127
118
|
});
|
|
@@ -133,8 +124,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
133
124
|
function onActiveTabChange(tabName) {
|
|
134
125
|
emit("tab-change", tabName);
|
|
135
126
|
}
|
|
127
|
+
function hasEntityData(entityData) {
|
|
128
|
+
return Boolean(entityData);
|
|
129
|
+
}
|
|
136
130
|
function openEditTab(entityData) {
|
|
137
|
-
if (!entityData) {
|
|
131
|
+
if (!hasEntityData(entityData)) {
|
|
138
132
|
return;
|
|
139
133
|
}
|
|
140
134
|
const entityName = props.entity.getEntityName(entityData) || "";
|
|
@@ -162,17 +156,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
162
156
|
const editableData = editableTabsData.value[+tabName];
|
|
163
157
|
let isEditable = false;
|
|
164
158
|
if (entityTabData && editableData) {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
const _key = key;
|
|
168
|
-
const _objectValue = _entityTabData[_key];
|
|
159
|
+
Object.keys(entityTabData).forEach((key) => {
|
|
160
|
+
const _objectValue = Reflect.get(entityTabData, key);
|
|
169
161
|
if (!Array.isArray(_objectValue)) {
|
|
170
162
|
if (typeof _objectValue === "object") {
|
|
171
|
-
if (!isEqual(_objectValue,
|
|
163
|
+
if (!isEqual(_objectValue, Reflect.get(entityTabData, key))) {
|
|
172
164
|
isEditable = true;
|
|
173
165
|
}
|
|
174
166
|
} else {
|
|
175
|
-
if (_objectValue !==
|
|
167
|
+
if (_objectValue !== Reflect.get(entityTabData, key)) {
|
|
176
168
|
isEditable = true;
|
|
177
169
|
}
|
|
178
170
|
}
|
|
@@ -1,16 +1,44 @@
|
|
|
1
|
-
import { FileArchive, FileSpreadsheet, FileText } from "@lucide/vue";
|
|
1
|
+
import { FileArchive, FileMusic, FilePlay, FileImage, FileCode, FileChartPie, FileSpreadsheet, FileBraces, FileText, FileType } from "@lucide/vue";
|
|
2
2
|
const DEFAULT_FILE_TYPE = {
|
|
3
3
|
icon: FileText,
|
|
4
4
|
color: "var(--vc-content-tertiary)"
|
|
5
5
|
};
|
|
6
|
+
const WORD_DOCUMENT = {
|
|
7
|
+
icon: FileType,
|
|
8
|
+
color: "var(--vc-content-info)"
|
|
9
|
+
};
|
|
6
10
|
const TEXT_DOCUMENT = {
|
|
7
11
|
icon: FileText,
|
|
8
12
|
color: "var(--vc-content-secondary)"
|
|
9
13
|
};
|
|
14
|
+
const DATA = {
|
|
15
|
+
icon: FileBraces,
|
|
16
|
+
color: "var(--vc-content-secondary)"
|
|
17
|
+
};
|
|
10
18
|
const SPREADSHEET = {
|
|
11
19
|
icon: FileSpreadsheet,
|
|
12
20
|
color: "var(--vc-content-success)"
|
|
13
21
|
};
|
|
22
|
+
const PRESENTATION = {
|
|
23
|
+
icon: FileChartPie,
|
|
24
|
+
color: "var(--vc-content-warning)"
|
|
25
|
+
};
|
|
26
|
+
const WEB_PAGE = {
|
|
27
|
+
icon: FileCode,
|
|
28
|
+
color: "var(--vc-content-info)"
|
|
29
|
+
};
|
|
30
|
+
const IMAGE = {
|
|
31
|
+
icon: FileImage,
|
|
32
|
+
color: "var(--vc-content-secondary)"
|
|
33
|
+
};
|
|
34
|
+
const VIDEO = {
|
|
35
|
+
icon: FilePlay,
|
|
36
|
+
color: "var(--vc-content-secondary)"
|
|
37
|
+
};
|
|
38
|
+
const AUDIO = {
|
|
39
|
+
icon: FileMusic,
|
|
40
|
+
color: "var(--vc-content-secondary)"
|
|
41
|
+
};
|
|
14
42
|
const ARCHIVE = {
|
|
15
43
|
icon: FileArchive,
|
|
16
44
|
color: "var(--vc-content-warning)"
|
|
@@ -20,12 +48,34 @@ const DEFAULT_FILE_TYPE_MAP = {
|
|
|
20
48
|
icon: FileText,
|
|
21
49
|
color: "var(--vc-content-danger)"
|
|
22
50
|
},
|
|
23
|
-
doc:
|
|
24
|
-
docx:
|
|
51
|
+
doc: WORD_DOCUMENT,
|
|
52
|
+
docx: WORD_DOCUMENT,
|
|
25
53
|
txt: TEXT_DOCUMENT,
|
|
54
|
+
md: TEXT_DOCUMENT,
|
|
55
|
+
json: DATA,
|
|
56
|
+
xml: DATA,
|
|
57
|
+
yaml: DATA,
|
|
58
|
+
yml: DATA,
|
|
26
59
|
xls: SPREADSHEET,
|
|
27
60
|
xlsx: SPREADSHEET,
|
|
28
61
|
csv: SPREADSHEET,
|
|
62
|
+
ppt: PRESENTATION,
|
|
63
|
+
pptx: PRESENTATION,
|
|
64
|
+
html: WEB_PAGE,
|
|
65
|
+
htm: WEB_PAGE,
|
|
66
|
+
jpg: IMAGE,
|
|
67
|
+
jpeg: IMAGE,
|
|
68
|
+
png: IMAGE,
|
|
69
|
+
gif: IMAGE,
|
|
70
|
+
webp: IMAGE,
|
|
71
|
+
svg: IMAGE,
|
|
72
|
+
mp4: VIDEO,
|
|
73
|
+
mov: VIDEO,
|
|
74
|
+
webm: VIDEO,
|
|
75
|
+
mp3: AUDIO,
|
|
76
|
+
wav: AUDIO,
|
|
77
|
+
ogg: AUDIO,
|
|
78
|
+
m4a: AUDIO,
|
|
29
79
|
zip: ARCHIVE,
|
|
30
80
|
rar: ARCHIVE,
|
|
31
81
|
"7z": ARCHIVE
|