@voicenter-team/voicenter-ui-plus 4.0.0-beta.5 → 4.0.0-beta.7
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 +118 -58
- package/library/assets/assets/sass/main.css +1 -1
- package/library/assets/components/VcAgentRun/UiComponents/VcAgentRunRow.css +1 -1
- package/library/assets/components/VcAgentRun/VcAgentRunCard.css +1 -1
- package/library/assets/components/VcAgentRun/VcAgentRunGroup.css +1 -1
- package/library/assets/components/VcApprovalCard/VcApprovalCard.css +1 -1
- package/library/assets/components/VcAskUserCard/VcAskUserCard.css +1 -1
- package/library/assets/components/VcAutocomplete/VcAutocomplete.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/VcChatComposer/VcChatComposer.css +1 -1
- package/library/assets/components/VcCheckbox/VcCheckbox.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/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/VcFilterBar/VcFilterAddMenu.css +1 -0
- package/library/assets/components/VcFilterBar/VcFilterBar.css +1 -0
- package/library/assets/components/VcFilterBar/VcFilterChip.css +1 -0
- package/library/assets/components/VcFilterBar/VcFilterChipEditor.css +1 -0
- package/library/assets/components/VcFilterBar/VcFilterEditorModal.css +1 -0
- package/library/assets/components/VcFilterBar/VcFilterEditorPanel.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterBooleanEditor.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterMultiselectEditor.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterRangeEditor.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterSelectEditor.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterTextEditor.css +1 -0
- package/library/assets/components/VcFilterBar/editors/VcFilterTextListEditor.css +1 -0
- package/library/assets/components/VcForm/UiComponents/VcInputLabel.css +1 -1
- package/library/assets/components/VcHyperLink/VcHyperLink.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/VcJsonViewer/UiComponents/VcJsonViewerAuto.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerCards.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerKey.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerState.css +1 -1
- package/library/assets/components/VcJsonViewer/UiComponents/VcJsonViewerValue.css +1 -1
- package/library/assets/components/VcJsonViewer/VcJsonViewer.css +1 -1
- package/library/assets/components/VcLightbox/VcLightbox.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/VcMdEditor/VcMdEditorContent.css +1 -1
- package/library/assets/components/VcMessage/VcMessage.css +1 -1
- package/library/assets/components/VcMessage/reactions/VcMessageReactionBar.css +1 -1
- package/library/assets/components/VcOtpInput/VcOtpInput.css +1 -1
- package/library/assets/components/VcPdfViewer/VcPdfDocumentViewerFooter.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/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/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/VcTable/VcTable.css +1 -1
- package/library/assets/components/VcTabs/VcTabNav.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/VcToolCall.css +1 -1
- package/library/assets/components/VcTour/VcTour.css +1 -1
- package/library/assets/components/VcTransfer/VcTransfer.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/entity/components/Tabs/VcEntityEditableTabs.css +1 -1
- package/library/assets/node_modules/element-plus/theme-chalk/src/tree.css +1 -1
- package/library/components/VcCheckbox/VcCheckbox.vue.mjs +1 -1
- package/library/components/VcCheckbox/VcCheckboxButton.vue.mjs +1 -1
- package/library/components/VcDatePicker/VcDatePicker.vue.mjs +2 -2
- package/library/components/VcDropdown/VcDropdownItem.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileProcessLoader.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcExcelFileUploadBlock.vue.mjs +1 -1
- package/library/components/VcExcelUploader/VcFileImportErrorsCard.vue.mjs +2 -2
- package/library/components/VcExcelUploader/VcFileImportParseResultBlock.vue.mjs +4 -4
- package/library/components/VcExcelUploader/VcFileImportResultBindDataTable.vue.mjs +0 -1
- package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs +2 -2
- package/library/components/VcFileUploader/VcFileUploaderSimple.vue.mjs +1 -1
- package/library/components/VcFilterBar/VcFilterAddMenu.vue.mjs +380 -0
- package/library/components/VcFilterBar/VcFilterAddMenu.vue3.mjs +5 -0
- package/library/components/VcFilterBar/VcFilterBar.vue.mjs +469 -0
- package/library/components/VcFilterBar/VcFilterBar.vue3.mjs +5 -0
- package/library/components/VcFilterBar/VcFilterChip.vue.mjs +136 -0
- package/library/components/VcFilterBar/VcFilterChip.vue3.mjs +5 -0
- package/library/components/VcFilterBar/VcFilterChipEditor.vue.mjs +133 -0
- package/library/components/VcFilterBar/VcFilterChipEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/VcFilterEditorModal.vue.mjs +90 -0
- package/library/components/VcFilterBar/VcFilterEditorModal.vue3.mjs +5 -0
- package/library/components/VcFilterBar/VcFilterEditorPanel.vue.mjs +179 -0
- package/library/components/VcFilterBar/VcFilterEditorPanel.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.mjs +62 -0
- package/library/components/VcFilterBar/editors/VcFilterBooleanEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.mjs +199 -0
- package/library/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterRangeEditor.vue.mjs +124 -0
- package/library/components/VcFilterBar/editors/VcFilterRangeEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterSelectEditor.vue.mjs +96 -0
- package/library/components/VcFilterBar/editors/VcFilterSelectEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterTextEditor.vue.mjs +58 -0
- package/library/components/VcFilterBar/editors/VcFilterTextEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/editors/VcFilterTextListEditor.vue.mjs +155 -0
- package/library/components/VcFilterBar/editors/VcFilterTextListEditor.vue3.mjs +5 -0
- package/library/components/VcFilterBar/filterBarChip.mjs +59 -0
- package/library/components/VcFilterBar/filterBarDate.mjs +69 -0
- package/library/components/VcFilterBar/filterBarDraft.mjs +86 -0
- package/library/components/VcFilterBar/filterBarEditors.mjs +36 -0
- package/library/components/VcFilterBar/filterBarErrors.mjs +57 -0
- package/library/components/VcFilterBar/filterBarModel.mjs +378 -0
- package/library/components/VcFilterBar/filterBarOptions.mjs +253 -0
- package/library/components/VcFilterBar/filterBarSearch.mjs +89 -0
- package/library/components/VcFilterBar/filterBarValidate.mjs +99 -0
- 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 +1 -1
- package/library/components/VcHtmlEditor/VcHtmlEditorToolbar.vue.mjs +1 -1
- package/library/components/VcIconPicker/VcIconPicker.vue.mjs +2 -2
- package/library/components/VcImageUploader/VcImageUploader.vue.mjs +4 -4
- package/library/components/VcInput/VcInput.vue.mjs +1 -1
- package/library/components/VcJsonSchema/Components/JsonSchemaEditor.vue.mjs +1 -1
- package/library/components/VcJsonViewer/UiComponents/VcJsonViewerSections.vue.mjs +9 -4
- 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/ParameterNode.vue2.mjs +1 -1
- package/library/components/VcMdEditor/VcMdEditor.vue.mjs +2 -2
- package/library/components/VcMdEditor/VcMdEditorToolbar.vue.mjs +1 -1
- package/library/components/VcMessage/reactions/VcMessageReactionBar.vue.mjs +1 -1
- package/library/components/VcPdfViewer/VcPdfDocumentCard.vue.mjs +3 -3
- package/library/components/VcPdfViewer/VcPdfDocumentViewerFooter.vue.mjs +2 -2
- package/library/components/VcPdfViewer/VcPdfDocumentViewerToolbar.vue.mjs +4 -4
- package/library/components/VcRadio/VcRadio.vue.mjs +1 -1
- package/library/components/VcSegmented/VcSegmented.vue.mjs +88 -41
- package/library/components/VcSelect/VcInfiniteScrollSelect.vue.mjs +1 -1
- package/library/components/VcSelect/VcSelect.vue.mjs +1 -1
- package/library/components/VcSipFlow/VcSipFlow.vue.mjs +1 -3
- 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/VcPlayerPlayStopButton.vue.mjs +4 -4
- package/library/components/VcSoundplayer/VcPlayerPlaybackRate.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcPlayerPlaybackRatePopup.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcPlayerSkipButtons.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcSoundPlayer.vue.mjs +2 -2
- package/library/components/VcSoundplayer/VcSoundPlayerMarker.vue.mjs +1 -1
- package/library/components/VcSoundplayer/VcSoundVolume.vue.mjs +2 -2
- package/library/components/VcSoundplayer/player.options.mjs +2 -2
- package/library/components/VcTable/VcTable.vue.mjs +5 -8
- package/library/components/VcTabs/VcTabNav.vue.mjs +45 -32
- package/library/components/VcTabs/VcTabPane.vue.mjs +12 -3
- package/library/components/VcTimeInput/VcTimeInput.vue.mjs +61 -27
- package/library/components/VcTour/VcTour.vue.mjs +104 -16
- package/library/components/VcTree/VcTree.vue.mjs +1 -1
- package/library/components/VcTree/VcTreeSelect.vue.mjs +1 -1
- package/library/components/VcWizard/VcSummaryProgress.vue.mjs +1 -1
- package/library/components/VcWizard/VcSummaryStep.vue.mjs +3 -3
- package/library/components/VcWizard/VcWizard.vue.mjs +2 -16
- package/library/entity/components/Form/VcEntityVerticalEditForm.vue.mjs +6 -10
- package/library/entity/components/Table/VcEntityListTable.vue.mjs +1 -2
- package/library/entity/components/Tabs/VcEntityEditableTabs.vue.mjs +51 -7
- package/library/font/index.mjs +1 -1
- package/library/index.mjs +113 -54
- package/library/index.mjs.br +0 -0
- package/library/index.mjs.gz +0 -0
- package/library/localization/index.mjs.gz +0 -0
- package/library/localization/locales/en.json.mjs +51 -1
- package/library/plugin-components.gen.mjs +201 -204
- package/library/plugin.mjs +113 -54
- package/library/plugin.mjs.br +0 -0
- package/library/plugin.mjs.gz +0 -0
- package/library/style.css +104 -84
- package/library/style.css.br +0 -0
- package/library/style.css.gz +0 -0
- package/library/theme/index.mjs +1 -1
- package/library/theme/index.mjs.br +0 -0
- package/library/theme/index.mjs.gz +0 -0
- package/library/theme/themeMerge.mjs +2 -0
- package/library/theme/themes.json.mjs +33 -144
- package/library/tokens/tokens.mjs +2 -0
- package/library/types/components/VcApprovalCard/VcApprovalCard.vue.d.ts +1 -1
- package/library/types/components/VcButton/VcToggleButton.vue.d.ts +1 -1
- package/library/types/components/VcCheckbox/VcCheckboxButtonGroup.vue.d.ts +3 -3
- package/library/types/components/VcCheckboxGroup/VcCheckboxGroup.vue.d.ts +3 -3
- package/library/types/components/VcFilterBar/VcFilterAddMenu.vue.d.ts +39 -0
- package/library/types/components/VcFilterBar/VcFilterBar.vue.d.ts +132 -0
- package/library/types/components/VcFilterBar/VcFilterChip.vue.d.ts +42 -0
- package/library/types/components/VcFilterBar/VcFilterChipEditor.vue.d.ts +46 -0
- package/library/types/components/VcFilterBar/VcFilterEditorModal.vue.d.ts +40 -0
- package/library/types/components/VcFilterBar/VcFilterEditorPanel.vue.d.ts +116 -0
- package/library/types/components/VcFilterBar/editors/VcFilterBooleanEditor.vue.d.ts +66 -0
- package/library/types/components/VcFilterBar/editors/VcFilterMultiselectEditor.vue.d.ts +73 -0
- package/library/types/components/VcFilterBar/editors/VcFilterRangeEditor.vue.d.ts +62 -0
- package/library/types/components/VcFilterBar/editors/VcFilterSelectEditor.vue.d.ts +62 -0
- package/library/types/components/VcFilterBar/editors/VcFilterTextEditor.vue.d.ts +68 -0
- package/library/types/components/VcFilterBar/editors/VcFilterTextListEditor.vue.d.ts +64 -0
- package/library/types/components/VcFilterBar/filterBarChip.d.ts +23 -0
- package/library/types/components/VcFilterBar/filterBarDate.d.ts +14 -0
- package/library/types/components/VcFilterBar/filterBarDraft.d.ts +28 -0
- package/library/types/components/VcFilterBar/filterBarEditors.d.ts +7 -0
- package/library/types/components/VcFilterBar/filterBarErrors.d.ts +22 -0
- package/library/types/components/VcFilterBar/filterBarModel.d.ts +83 -0
- package/library/types/components/VcFilterBar/filterBarOptions.d.ts +52 -0
- package/library/types/components/VcFilterBar/filterBarSearch.d.ts +23 -0
- package/library/types/components/VcFilterBar/filterBarValidate.d.ts +34 -0
- package/library/types/components/VcJsonSchema/Components/JsonSchemaEditor.vue.d.ts +1 -1
- package/library/types/components/VcMdEditor/VcMdEditor.vue.d.ts +1 -1
- package/library/types/components/VcMessage/VcMessage.vue.d.ts +1 -1
- package/library/types/components/VcSegmented/VcSegmented.vue.d.ts +25 -16
- package/library/types/components/VcSelect/VcSelect.vue.d.ts +3 -3
- package/library/types/components/VcTable/VcTable.vue.d.ts +22 -22
- package/library/types/components/VcTabs/VcTabPane.vue.d.ts +8 -0
- package/library/types/components/VcTabs/VcTabs.vue.d.ts +2 -0
- package/library/types/components/VcTag/VcTag.vue.d.ts +1 -1
- package/library/types/components/VcTimeInput/VcTimeInput.vue.d.ts +9 -0
- package/library/types/components/VcToolCall/VcToolCall.vue.d.ts +1 -1
- package/library/types/components/exports.d.ts +3 -5
- package/library/types/components.gen.d.ts +1 -2
- package/library/types/entity/components/Table/VcEntityListTable.vue.d.ts +3 -3
- package/library/types/entity/components/Tabs/VcEntityEditableTabs.vue.d.ts +14 -8
- package/library/types/index.d.ts +8 -0
- package/library/types/localization/locales/en.json.d.ts +415 -365
- package/library/types/theme/themes.json.d.ts +72 -177
- package/library/types/tokens/tokens.d.ts +2 -1
- package/library/types/types/ExcelParser.types.d.ts +0 -7
- package/library/types/types/Tabs.d.ts +16 -0
- package/library/types/types/VcDatetimeRangePicker.types.d.ts +0 -19
- package/library/types/types/VcFilterBar.types.d.ts +329 -0
- package/library/types/types/VcTable.types.d.ts +5 -0
- package/library/types/types/VcTabs.types.d.ts +1 -0
- package/library/types/types/VcTimeInput.types.d.ts +3 -0
- package/library/types/types/VcWizard.types.d.ts +0 -4
- package/library/types/types/index.d.ts +2 -0
- package/library/utils/jsonSchema/index.mjs.gz +0 -0
- package/library/utils/jsonSchema/jsonSchemaHelpers.mjs +1 -1
- package/library/utils/lucideIcon.mjs +1 -1
- package/package.json +311 -311
- package/src/theme/index.ts +1 -1
- package/src/theme/tailwindScheme.js +78 -70
- package/src/theme/themeMerge.ts +63 -61
- package/src/theme/themes.json +72 -177
- package/tailwind.config.js +178 -176
- package/library/assets/components/VcDatetimeRangePicker/VcDatetimeRangePicker.css +0 -1
- package/library/assets/components/VcViewSwitcher/VcViewSwitcher.css +0 -1
- package/library/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.mjs +0 -24
- package/library/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue3.mjs +0 -5
- package/library/components/VcViewSwitcher/VcViewSwitcher.vue.mjs +0 -86
- package/library/components/VcViewSwitcher/VcViewSwitcher.vue3.mjs +0 -5
- package/library/types/components/VcDatetimeRangePicker/VcDatetimeRangePicker.vue.d.ts +0 -2
- package/library/types/components/VcViewSwitcher/VcViewSwitcher.vue.d.ts +0 -74
- /package/library/assets/node_modules/element-plus/theme-chalk/src/{tooltip.css → date-picker.css} +0 -0
|
@@ -29,7 +29,7 @@ const _hoisted_3 = {
|
|
|
29
29
|
class: "flex items-center px-1"
|
|
30
30
|
};
|
|
31
31
|
const _hoisted_4 = { key: 5 };
|
|
32
|
-
const _hoisted_5 = { class: "cursor-pointer text-content-disabled hover:text-
|
|
32
|
+
const _hoisted_5 = { class: "cursor-pointer text-content-disabled hover:text-content-brand duration-200" };
|
|
33
33
|
const _hoisted_6 = { class: "p-2" };
|
|
34
34
|
const _hoisted_7 = ["onClick"];
|
|
35
35
|
const _hoisted_8 = {
|
|
@@ -289,7 +289,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
289
289
|
onClick: withModifiers(($event) => download(item), ["stop"])
|
|
290
290
|
}, [
|
|
291
291
|
createVNode(_sfc_main$5, {
|
|
292
|
-
class: "text-
|
|
292
|
+
class: "text-content-brand icon-xl",
|
|
293
293
|
icon: downloadIconType(item)
|
|
294
294
|
}, null, 8, ["icon"]),
|
|
295
295
|
fileType(item) ? (openBlock(), createElementBlock("span", _hoisted_8, toDisplayString(fileType(item)), 1)) : createCommentVNode("", true)
|
|
@@ -52,7 +52,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
icon: unref(volume) ? __props.icon : __props.iconOff,
|
|
53
53
|
class: normalizeClass([[
|
|
54
54
|
__props.iconClass,
|
|
55
|
-
__props.disabled ? "text-content-disabled" : "text-
|
|
55
|
+
__props.disabled ? "text-content-disabled" : "text-content-brand"
|
|
56
56
|
], "cursor-pointer"])
|
|
57
57
|
}, null, 8, ["icon", "class"])
|
|
58
58
|
]),
|
|
@@ -78,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
78
|
icon: unref(volume) ? __props.icon : __props.iconOff,
|
|
79
79
|
class: normalizeClass([[
|
|
80
80
|
__props.iconClass,
|
|
81
|
-
__props.disabled ? "text-content-disabled" : "text-
|
|
81
|
+
__props.disabled ? "text-content-disabled" : "text-content-brand"
|
|
82
82
|
], "cursor-pointer"])
|
|
83
83
|
}, null, 8, ["icon", "class"])
|
|
84
84
|
])
|
|
@@ -92,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
92
92
|
expandableRow: { type: Boolean },
|
|
93
93
|
rowSelectable: { type: Boolean },
|
|
94
94
|
loading: { type: Boolean },
|
|
95
|
-
|
|
95
|
+
density: { default: "default" },
|
|
96
96
|
stripe: { type: Boolean },
|
|
97
97
|
rowUnselect: { type: Boolean },
|
|
98
98
|
isServerData: { type: Boolean },
|
|
@@ -344,7 +344,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
344
344
|
if (valueToLabel.has(value)) return;
|
|
345
345
|
let label;
|
|
346
346
|
if (column.format) {
|
|
347
|
-
const formatted = column.format(
|
|
347
|
+
const formatted = column.format(option);
|
|
348
348
|
label = String(formatted ?? value);
|
|
349
349
|
} else {
|
|
350
350
|
label = String(value);
|
|
@@ -442,7 +442,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
442
442
|
return "";
|
|
443
443
|
}
|
|
444
444
|
if (column.sortBy === sortBy.value) {
|
|
445
|
-
return "text-
|
|
445
|
+
return "text-content-brand";
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
function isSortableColumn(column) {
|
|
@@ -604,12 +604,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
604
604
|
function gettingColumnItemData(column) {
|
|
605
605
|
return column.columnItemLabel;
|
|
606
606
|
}
|
|
607
|
-
function rowAsRecord(option) {
|
|
608
|
-
return option;
|
|
609
|
-
}
|
|
610
607
|
function gettingRowItemData(option, rowColumn) {
|
|
611
608
|
if (rowColumn.format) {
|
|
612
|
-
return rowColumn.format(
|
|
609
|
+
return rowColumn.format(option);
|
|
613
610
|
}
|
|
614
611
|
const labelKey = rowColumn.rowItemLabelKey ? rowColumn.rowItemLabelKey : rowColumn.columnItemLabel;
|
|
615
612
|
return get(option, labelKey, "");
|
|
@@ -810,7 +807,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
810
807
|
class: normalizeClass(["vc-table", [
|
|
811
808
|
hasFooter.value ? "vc-table--with-footer" : "vc-table--without-footer",
|
|
812
809
|
{ "w-full": __props.withPagination },
|
|
813
|
-
|
|
810
|
+
`vc-table--density-${__props.density}`,
|
|
814
811
|
{ "vc-table--striped": __props.stripe },
|
|
815
812
|
__props.tableClass
|
|
816
813
|
]])
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import '../../assets/components/VcTabs/VcTabNav.css';
|
|
2
|
-
import { defineComponent, ref, computed, watch, onMounted, onUpdated, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, normalizeClass, Fragment, renderList,
|
|
2
|
+
import { defineComponent, ref, computed, watch, onMounted, onUpdated, onBeforeUnmount, openBlock, createElementBlock, withModifiers, createVNode, unref, createCommentVNode, createElementVNode, normalizeClass, Fragment, renderList, createBlock, withCtx, renderSlot, resolveDynamicComponent, toDisplayString, nextTick } from "vue";
|
|
3
3
|
import { ChevronLeft, X, ChevronRight } from "@lucide/vue";
|
|
4
4
|
import DomHandler from "../../utils/DomHandler.mjs";
|
|
5
5
|
import _sfc_main$1 from "../VcIcon/VcIcon.vue.mjs";
|
|
6
6
|
import '../../assets/components/VcIcon/VcIcon.css';/* empty css */
|
|
7
|
+
import _sfc_main$2 from "../VcRadioTabs/UiComponents/VcRadioTabsNavHint.vue.mjs";
|
|
7
8
|
const _hoisted_1 = { class: "vc-tabs__nav-wrap relative" };
|
|
8
9
|
const _hoisted_2 = ["tabindex", "data-test-name", "onClick"];
|
|
9
10
|
const _hoisted_3 = {
|
|
@@ -68,6 +69,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
69
|
tabList[nextIndex].focus();
|
|
69
70
|
tabList[nextIndex].click();
|
|
70
71
|
}
|
|
72
|
+
function getDisabledHint(tab) {
|
|
73
|
+
return tab.props.disabled && tab.props.disabledHint ? tab.props.disabledHint : void 0;
|
|
74
|
+
}
|
|
71
75
|
function isActiveTab(tab) {
|
|
72
76
|
return props.activeTab === tab.paneName;
|
|
73
77
|
}
|
|
@@ -225,38 +229,47 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
229
|
onKeydown: changeTab
|
|
226
230
|
}, [
|
|
227
231
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabItems, (tabItem, index) => {
|
|
228
|
-
|
|
229
|
-
return openBlock(), createElementBlock("div", {
|
|
232
|
+
return openBlock(), createBlock(_sfc_main$2, {
|
|
230
233
|
key: tabItem.props.name || `tab-${index}`,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
234
|
+
hint: getDisabledHint(tabItem)
|
|
235
|
+
}, {
|
|
236
|
+
default: withCtx(() => {
|
|
237
|
+
var _a;
|
|
238
|
+
return [
|
|
239
|
+
createElementVNode("div", {
|
|
240
|
+
class: normalizeClass([[{
|
|
241
|
+
"is--active": isActiveTab(tabItem),
|
|
242
|
+
"is--disabled": tabItem.props.disabled
|
|
243
|
+
}, tabItem.navClass], "vc-tabs__item"]),
|
|
244
|
+
tabindex: isActiveTab(tabItem) ? 0 : -1,
|
|
245
|
+
role: "tab",
|
|
246
|
+
"data-test-name": `tab-${tabItem.paneName}`,
|
|
247
|
+
onClick: withModifiers(($event) => setActiveTab(tabItem, index), ["stop"])
|
|
248
|
+
}, [
|
|
249
|
+
((_a = tabItem.slots) == null ? void 0 : _a.label) ? renderSlot(_ctx.$slots, "tabs-nav-item", {
|
|
250
|
+
key: 0,
|
|
251
|
+
tab: tabItem
|
|
252
|
+
}, () => [
|
|
253
|
+
(openBlock(), createBlock(resolveDynamicComponent(tabItem.slots.label)))
|
|
254
|
+
]) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
255
|
+
tabItem.icon ? (openBlock(), createBlock(_sfc_main$1, {
|
|
256
|
+
key: 0,
|
|
257
|
+
icon: tabItem.icon,
|
|
258
|
+
class: "tabs-nav-icon"
|
|
259
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
260
|
+
tabItem.label ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(tabItem.label), 1)) : createCommentVNode("", true),
|
|
261
|
+
tabItem.props.closable && !tabItem.props.disabled ? (openBlock(), createBlock(_sfc_main$1, {
|
|
262
|
+
key: 2,
|
|
263
|
+
icon: unref(X),
|
|
264
|
+
class: "icon-xxs icon-closable",
|
|
265
|
+
onClick: withModifiers(($event) => closeTab(tabItem, index), ["stop"])
|
|
266
|
+
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true)
|
|
267
|
+
], 64))
|
|
268
|
+
], 10, _hoisted_2)
|
|
269
|
+
];
|
|
270
|
+
}),
|
|
271
|
+
_: 2
|
|
272
|
+
}, 1032, ["hint"]);
|
|
260
273
|
}), 128)),
|
|
261
274
|
createElementVNode("div", {
|
|
262
275
|
ref_key: "activeBar",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../assets/components/VcTabs/VcTabPane.css';
|
|
2
|
-
import { defineComponent, useSlots, inject, ref, computed, watch, onMounted, onUnmounted, provide, withDirectives, openBlock, createElementBlock, unref, renderSlot, createBlock, resolveDynamicComponent, createTextVNode, vShow, createCommentVNode } from "vue";
|
|
2
|
+
import { defineComponent, useSlots, inject, ref, computed, watch, onMounted, reactive, onUnmounted, provide, withDirectives, openBlock, createElementBlock, unref, renderSlot, createBlock, resolveDynamicComponent, createTextVNode, vShow, createCommentVNode } from "vue";
|
|
3
3
|
import { VcTabsProvideKey, VcTabPaneProvideKey } from "../../tokens/tokens.mjs";
|
|
4
4
|
const _hoisted_1 = {
|
|
5
5
|
key: 0,
|
|
@@ -16,6 +16,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
navClass: { default: "" },
|
|
17
17
|
closable: { type: Boolean, default: false },
|
|
18
18
|
disabled: { type: Boolean, default: false },
|
|
19
|
+
disabledHint: { default: void 0 },
|
|
19
20
|
lazy: { type: Boolean, default: false },
|
|
20
21
|
tabData: { default: () => ({}) },
|
|
21
22
|
index: { default: 0 }
|
|
@@ -54,7 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
54
55
|
}
|
|
55
56
|
);
|
|
56
57
|
onMounted(() => {
|
|
57
|
-
const paneData = {
|
|
58
|
+
const paneData = reactive({
|
|
58
59
|
paneName: props.name,
|
|
59
60
|
active: isActive.value,
|
|
60
61
|
icon: props.icon,
|
|
@@ -65,8 +66,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
66
|
isClosable: props.closable,
|
|
66
67
|
tabData: props.tabData,
|
|
67
68
|
navClass: props.navClass
|
|
68
|
-
};
|
|
69
|
+
});
|
|
69
70
|
parentTabData == null ? void 0 : parentTabData.registerPane(paneData);
|
|
71
|
+
watch(
|
|
72
|
+
() => [props.disabled, props.disabledHint],
|
|
73
|
+
([disabled, disabledHint]) => {
|
|
74
|
+
paneData.disabled = disabled;
|
|
75
|
+
paneData.props.disabled = disabled;
|
|
76
|
+
paneData.props.disabledHint = disabledHint;
|
|
77
|
+
}
|
|
78
|
+
);
|
|
70
79
|
});
|
|
71
80
|
onUnmounted(() => {
|
|
72
81
|
parentTabData == null ? void 0 : parentTabData.unregisterPane(props.name);
|
|
@@ -12,10 +12,16 @@ const _hoisted_2 = {
|
|
|
12
12
|
"data-test": "time-input-container"
|
|
13
13
|
};
|
|
14
14
|
const _hoisted_3 = ["disabled"];
|
|
15
|
-
const _hoisted_4 = {
|
|
15
|
+
const _hoisted_4 = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "divider-wrapper"
|
|
18
|
+
};
|
|
16
19
|
const _hoisted_5 = { class: "divider" };
|
|
17
20
|
const _hoisted_6 = ["disabled"];
|
|
18
|
-
const _hoisted_7 = {
|
|
21
|
+
const _hoisted_7 = {
|
|
22
|
+
key: 3,
|
|
23
|
+
class: "divider-wrapper"
|
|
24
|
+
};
|
|
19
25
|
const _hoisted_8 = { class: "divider" };
|
|
20
26
|
const _hoisted_9 = ["disabled"];
|
|
21
27
|
const CLASS_FOR_COLOR = "vc-time-input-color--";
|
|
@@ -34,6 +40,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
34
40
|
emptyDataText: { default: "" },
|
|
35
41
|
placeholder: { default: "" },
|
|
36
42
|
allowMouseWheel: { type: Boolean, default: false },
|
|
43
|
+
format: { default: "hh:mm:ss" },
|
|
37
44
|
id: { default: void 0 },
|
|
38
45
|
disabled: { type: Boolean, default: false },
|
|
39
46
|
clearable: { type: Boolean },
|
|
@@ -48,6 +55,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
55
|
},
|
|
49
56
|
emits: ["input", "update:modelValue"],
|
|
50
57
|
setup(__props, { emit: __emit }) {
|
|
58
|
+
const UNIT_OF = {
|
|
59
|
+
hh: "hours",
|
|
60
|
+
mm: "minutes",
|
|
61
|
+
ss: "seconds"
|
|
62
|
+
};
|
|
51
63
|
const vLongPress = { ...longPress };
|
|
52
64
|
const props = __props;
|
|
53
65
|
const emit = __emit;
|
|
@@ -78,11 +90,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
78
90
|
const _time = props.modelValue || timeModel.value;
|
|
79
91
|
return !!(!isFocus.value && _time === 0 && props.emptyDataText);
|
|
80
92
|
});
|
|
93
|
+
const units = computed(() => props.format.split(":").map((part) => UNIT_OF[part]).filter((unit) => !!unit));
|
|
94
|
+
const lastUnit = computed(() => units.value[units.value.length - 1] ?? "seconds");
|
|
95
|
+
function clearHiddenUnits() {
|
|
96
|
+
const order = ["hours", "minutes", "seconds"];
|
|
97
|
+
order.slice(order.indexOf(lastUnit.value) + 1).forEach((unit) => {
|
|
98
|
+
timeSettingModel[unit] = "00";
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function inputStyle(unit) {
|
|
102
|
+
const digits = timeSettingModel[unit].length;
|
|
103
|
+
return unit === units.value[0] && digits > 2 ? { width: `calc(${digits}ch + 0.5rem)` } : void 0;
|
|
104
|
+
}
|
|
81
105
|
const placeholderInput = computed(() => {
|
|
82
|
-
return props.emptyDataText || props.placeholder || "00
|
|
106
|
+
return props.emptyDataText || props.placeholder || units.value.map(() => "00").join(props.divider);
|
|
83
107
|
});
|
|
84
108
|
function onClickWrapper() {
|
|
85
|
-
onClickInput(
|
|
109
|
+
onClickInput(lastUnit.value);
|
|
86
110
|
}
|
|
87
111
|
const onLongPressDecrease = () => {
|
|
88
112
|
return decrease();
|
|
@@ -105,7 +129,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
105
129
|
return parseInt(hours2) * 3600 + parseInt(minutes2) * 60 + parseInt(seconds2);
|
|
106
130
|
}
|
|
107
131
|
function onPlaceholderClick() {
|
|
108
|
-
onClickInput(
|
|
132
|
+
onClickInput(lastUnit.value);
|
|
109
133
|
}
|
|
110
134
|
function onClickInput(type) {
|
|
111
135
|
var _a, _b, _c;
|
|
@@ -130,7 +154,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
154
|
if (timeValue < 0) {
|
|
131
155
|
timeValue = 0;
|
|
132
156
|
}
|
|
133
|
-
if (["minutes", "seconds"].includes(type) && timeValue > 59) {
|
|
157
|
+
if (["minutes", "seconds"].includes(type) && type !== units.value[0] && timeValue > 59) {
|
|
134
158
|
timeValue = 59;
|
|
135
159
|
}
|
|
136
160
|
return timeValue;
|
|
@@ -142,8 +166,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
142
166
|
return `${val}`;
|
|
143
167
|
}
|
|
144
168
|
function getTimeData(value) {
|
|
145
|
-
const
|
|
146
|
-
const
|
|
169
|
+
const first = units.value[0];
|
|
170
|
+
const hours2 = first === "hours" ? Math.floor(value / 3600) : 0;
|
|
171
|
+
const minutes2 = first === "seconds" ? 0 : Math.floor((value - hours2 * 3600) / 60);
|
|
147
172
|
const seconds2 = Math.floor(value - hours2 * 3600 - minutes2 * 60);
|
|
148
173
|
return {
|
|
149
174
|
hours: hours2,
|
|
@@ -168,7 +193,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
168
193
|
return;
|
|
169
194
|
}
|
|
170
195
|
let _nevTime = timeModel.value + props.step;
|
|
171
|
-
if (_nevTime >= props.maxValue) {
|
|
196
|
+
if (props.maxValue > 0 && _nevTime >= props.maxValue) {
|
|
172
197
|
_nevTime = props.maxValue;
|
|
173
198
|
}
|
|
174
199
|
setTimeData(_nevTime);
|
|
@@ -239,12 +264,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
239
264
|
};
|
|
240
265
|
emit("update:modelValue", props.minValue);
|
|
241
266
|
emit("input", res);
|
|
242
|
-
} else if (timeModel.value > props.maxValue) {
|
|
267
|
+
} else if (props.maxValue > 0 && timeModel.value > props.maxValue) {
|
|
243
268
|
const res = {
|
|
244
269
|
seconds: props.maxValue || 0,
|
|
245
270
|
string: { ...timeSettingModel }
|
|
246
271
|
};
|
|
247
|
-
emit("update:modelValue", props.
|
|
272
|
+
emit("update:modelValue", props.maxValue);
|
|
248
273
|
emit("input", res);
|
|
249
274
|
}
|
|
250
275
|
});
|
|
@@ -290,57 +315,66 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
290
315
|
onClick: withModifiers(onClickWrapper, ["stop", "self"]),
|
|
291
316
|
onWheel: onWheelMouse
|
|
292
317
|
}, [
|
|
293
|
-
withDirectives(
|
|
318
|
+
units.value.includes("hours") ? withDirectives((openBlock(), createElementBlock("input", {
|
|
319
|
+
key: 0,
|
|
294
320
|
ref_key: "hours",
|
|
295
321
|
ref: hours,
|
|
296
322
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => timeSettingModel.hours = $event),
|
|
297
323
|
class: "vc-time-input__input hours",
|
|
324
|
+
style: normalizeStyle(inputStyle("hours")),
|
|
298
325
|
type: "number",
|
|
299
326
|
"data-test": "hours",
|
|
300
327
|
disabled: __props.disabled,
|
|
301
328
|
placeholder: "00",
|
|
302
329
|
onFocusin: _cache[1] || (_cache[1] = ($event) => isFocus.value = true),
|
|
303
330
|
onFocusout: _cache[2] || (_cache[2] = ($event) => isFocus.value = false),
|
|
304
|
-
onClick: _cache[3] || (_cache[3] = ($event) => onClickInput("hours"))
|
|
305
|
-
|
|
331
|
+
onClick: _cache[3] || (_cache[3] = ($event) => onClickInput("hours")),
|
|
332
|
+
onInput: clearHiddenUnits
|
|
333
|
+
}, null, 44, _hoisted_3)), [
|
|
306
334
|
[vModelText, timeSettingModel.hours]
|
|
307
|
-
]),
|
|
308
|
-
|
|
335
|
+
]) : createCommentVNode("", true),
|
|
336
|
+
units.value.includes("hours") && units.value.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
309
337
|
createElementVNode("span", _hoisted_5, toDisplayString(__props.divider), 1)
|
|
310
|
-
]),
|
|
311
|
-
withDirectives(
|
|
338
|
+
])) : createCommentVNode("", true),
|
|
339
|
+
units.value.includes("minutes") ? withDirectives((openBlock(), createElementBlock("input", {
|
|
340
|
+
key: 2,
|
|
312
341
|
ref_key: "minutes",
|
|
313
342
|
ref: minutes,
|
|
314
343
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => timeSettingModel.minutes = $event),
|
|
315
344
|
class: "vc-time-input__input minutes",
|
|
345
|
+
style: normalizeStyle(inputStyle("minutes")),
|
|
316
346
|
type: "number",
|
|
317
347
|
"data-test": "minutes",
|
|
318
348
|
disabled: __props.disabled,
|
|
319
349
|
placeholder: "00",
|
|
320
350
|
onFocusin: _cache[5] || (_cache[5] = ($event) => isFocus.value = true),
|
|
321
351
|
onFocusout: _cache[6] || (_cache[6] = ($event) => isFocus.value = false),
|
|
322
|
-
onClick: _cache[7] || (_cache[7] = ($event) => onClickInput("minutes"))
|
|
323
|
-
|
|
352
|
+
onClick: _cache[7] || (_cache[7] = ($event) => onClickInput("minutes")),
|
|
353
|
+
onInput: clearHiddenUnits
|
|
354
|
+
}, null, 44, _hoisted_6)), [
|
|
324
355
|
[vModelText, timeSettingModel.minutes]
|
|
325
|
-
]),
|
|
326
|
-
|
|
356
|
+
]) : createCommentVNode("", true),
|
|
357
|
+
units.value.includes("minutes") && units.value.includes("seconds") ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
327
358
|
createElementVNode("span", _hoisted_8, toDisplayString(__props.divider), 1)
|
|
328
|
-
]),
|
|
329
|
-
withDirectives(
|
|
359
|
+
])) : createCommentVNode("", true),
|
|
360
|
+
units.value.includes("seconds") ? withDirectives((openBlock(), createElementBlock("input", {
|
|
361
|
+
key: 4,
|
|
330
362
|
ref_key: "seconds",
|
|
331
363
|
ref: seconds,
|
|
332
364
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => timeSettingModel.seconds = $event),
|
|
333
365
|
class: "vc-time-input__input seconds",
|
|
366
|
+
style: normalizeStyle(inputStyle("seconds")),
|
|
334
367
|
type: "number",
|
|
335
368
|
"data-test": "seconds",
|
|
336
369
|
disabled: __props.disabled,
|
|
337
370
|
placeholder: "00",
|
|
338
371
|
onFocusin: _cache[9] || (_cache[9] = ($event) => isFocus.value = true),
|
|
339
372
|
onFocusout: _cache[10] || (_cache[10] = ($event) => isFocus.value = false),
|
|
340
|
-
onClick: _cache[11] || (_cache[11] = ($event) => onClickInput("seconds"))
|
|
341
|
-
|
|
373
|
+
onClick: _cache[11] || (_cache[11] = ($event) => onClickInput("seconds")),
|
|
374
|
+
onInput: clearHiddenUnits
|
|
375
|
+
}, null, 44, _hoisted_9)), [
|
|
342
376
|
[vModelText, timeSettingModel.seconds]
|
|
343
|
-
])
|
|
377
|
+
]) : createCommentVNode("", true)
|
|
344
378
|
], 32)
|
|
345
379
|
]),
|
|
346
380
|
withDirectives((openBlock(), createElementBlock("div", {
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { defineComponent, useSlots, openBlock, createBlock, unref, isRef,
|
|
2
|
-
import { ElTour, ElTourStep } from "element-plus";
|
|
3
|
-
import '../../assets/node_modules/element-plus/theme-chalk/src/tour.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
1
|
+
import { defineComponent, useSlots, computed, openBlock, createBlock, unref, isRef, withCtx, createElementBlock, Fragment, renderList, mergeProps, createSlots, renderSlot, createCommentVNode, createElementVNode, normalizeClass, createVNode } from "vue";
|
|
2
|
+
import { useLocale, ElTour, ElTourStep } from "element-plus";
|
|
3
|
+
import '../../assets/components/VcButton/VcButton.css';import '../../assets/node_modules/element-plus/theme-chalk/src/tour.css';import '../../assets/node_modules/element-plus/theme-chalk/src/button.css';import '../../assets/node_modules/element-plus/theme-chalk/src/base.css';
|
|
4
4
|
import '../../assets/components/VcTour/VcTour.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import { useVModel } from "@vueuse/core";
|
|
8
|
+
import _sfc_main$1 from "../VcButton/VcButton.vue.mjs";
|
|
9
|
+
/* empty css */
|
|
10
|
+
const _hoisted_1 = { class: "vc-tour__footer" };
|
|
11
|
+
const _hoisted_2 = { class: "vc-tour__indicators" };
|
|
12
|
+
const _hoisted_3 = { class: "vc-tour__buttons" };
|
|
8
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
14
|
__name: "VcTour",
|
|
10
15
|
props: {
|
|
@@ -29,8 +34,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
29
34
|
const props = __props;
|
|
30
35
|
const emit = __emit;
|
|
31
36
|
const slots = useSlots();
|
|
37
|
+
const { t } = useLocale();
|
|
38
|
+
const tourMask = computed(() => {
|
|
39
|
+
if (props.mask === false) {
|
|
40
|
+
return false;
|
|
41
|
+
}
|
|
42
|
+
const own = props.mask === true ? {} : props.mask;
|
|
43
|
+
return {
|
|
44
|
+
...own,
|
|
45
|
+
color: (own == null ? void 0 : own.color) ?? "var(--vc-bg-overlay)"
|
|
46
|
+
};
|
|
47
|
+
});
|
|
32
48
|
const localModel = useVModel(props, "modelValue", emit);
|
|
33
|
-
const localCurrent = useVModel(props, "current", emit
|
|
49
|
+
const localCurrent = useVModel(props, "current", emit, {
|
|
50
|
+
passive: true,
|
|
51
|
+
defaultValue: 0
|
|
52
|
+
});
|
|
53
|
+
const ButtonLabel = (labelProps) => labelProps.label;
|
|
54
|
+
ButtonLabel.props = ["label"];
|
|
55
|
+
function stepButtons(index) {
|
|
56
|
+
var _a, _b;
|
|
57
|
+
const own = (_b = (_a = props.steps) == null ? void 0 : _a[index]) == null ? void 0 : _b.props;
|
|
58
|
+
return {
|
|
59
|
+
prev: own == null ? void 0 : own.prevButtonProps,
|
|
60
|
+
next: own == null ? void 0 : own.nextButtonProps
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function onPrev(index) {
|
|
64
|
+
var _a, _b;
|
|
65
|
+
localCurrent.value = index - 1;
|
|
66
|
+
(_b = (_a = stepButtons(index).prev) == null ? void 0 : _a.onClick) == null ? void 0 : _b.call(_a);
|
|
67
|
+
emit("change", index - 1);
|
|
68
|
+
}
|
|
69
|
+
function onNext(index, total) {
|
|
70
|
+
var _a, _b, _c, _d;
|
|
71
|
+
if (index >= total - 1) {
|
|
72
|
+
(_b = (_a = stepButtons(index).next) == null ? void 0 : _a.onClick) == null ? void 0 : _b.call(_a);
|
|
73
|
+
localModel.value = false;
|
|
74
|
+
emit("close", index);
|
|
75
|
+
emit("finish");
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
localCurrent.value = index + 1;
|
|
79
|
+
(_d = (_c = stepButtons(index).next) == null ? void 0 : _c.onClick) == null ? void 0 : _d.call(_c);
|
|
80
|
+
emit("change", index + 1);
|
|
81
|
+
}
|
|
34
82
|
function onClose(currentStep) {
|
|
35
83
|
emit("close", currentStep);
|
|
36
84
|
}
|
|
@@ -50,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
98
|
"show-arrow": __props.showArrow,
|
|
51
99
|
placement: __props.placement,
|
|
52
100
|
"content-style": __props.contentStyle,
|
|
53
|
-
mask:
|
|
101
|
+
mask: tourMask.value,
|
|
54
102
|
gap: __props.gap,
|
|
55
103
|
"scroll-into-view-options": __props.scrollIntoViewOptions,
|
|
56
104
|
"z-index": __props.zIndex,
|
|
@@ -62,7 +110,55 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
110
|
onClose,
|
|
63
111
|
onFinish,
|
|
64
112
|
onChange
|
|
65
|
-
},
|
|
113
|
+
}, {
|
|
114
|
+
indicators: withCtx(({ current: stepIndex, total }) => [
|
|
115
|
+
createElementVNode("div", _hoisted_1, [
|
|
116
|
+
createElementVNode("div", _hoisted_2, [
|
|
117
|
+
_ctx.$slots.indicators ? renderSlot(_ctx.$slots, "indicators", {
|
|
118
|
+
key: 0,
|
|
119
|
+
indicator: { current: stepIndex, total }
|
|
120
|
+
}) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(total, (index) => {
|
|
121
|
+
return openBlock(), createElementBlock("span", {
|
|
122
|
+
key: index,
|
|
123
|
+
class: normalizeClass(["vc-tour__indicator", { "is--active": index - 1 === stepIndex }])
|
|
124
|
+
}, null, 2);
|
|
125
|
+
}), 128))
|
|
126
|
+
]),
|
|
127
|
+
createElementVNode("div", _hoisted_3, [
|
|
128
|
+
stepIndex > 0 ? (openBlock(), createBlock(_sfc_main$1, {
|
|
129
|
+
key: 0,
|
|
130
|
+
size: "small",
|
|
131
|
+
type: "outline",
|
|
132
|
+
color: "secondary",
|
|
133
|
+
onClick: ($event) => onPrev(stepIndex)
|
|
134
|
+
}, {
|
|
135
|
+
default: withCtx(() => {
|
|
136
|
+
var _a;
|
|
137
|
+
return [
|
|
138
|
+
createVNode(ButtonLabel, {
|
|
139
|
+
label: ((_a = stepButtons(stepIndex).prev) == null ? void 0 : _a.children) ?? unref(t)("el.tour.previous")
|
|
140
|
+
}, null, 8, ["label"])
|
|
141
|
+
];
|
|
142
|
+
}),
|
|
143
|
+
_: 2
|
|
144
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true),
|
|
145
|
+
createVNode(_sfc_main$1, {
|
|
146
|
+
size: "small",
|
|
147
|
+
onClick: ($event) => onNext(stepIndex, total)
|
|
148
|
+
}, {
|
|
149
|
+
default: withCtx(() => {
|
|
150
|
+
var _a;
|
|
151
|
+
return [
|
|
152
|
+
createVNode(ButtonLabel, {
|
|
153
|
+
label: ((_a = stepButtons(stepIndex).next) == null ? void 0 : _a.children) ?? (stepIndex === total - 1 ? unref(t)("el.tour.finish") : unref(t)("el.tour.next"))
|
|
154
|
+
}, null, 8, ["label"])
|
|
155
|
+
];
|
|
156
|
+
}),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1032, ["onClick"])
|
|
159
|
+
])
|
|
160
|
+
])
|
|
161
|
+
]),
|
|
66
162
|
default: withCtx(() => [
|
|
67
163
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step) => {
|
|
68
164
|
return openBlock(), createBlock(unref(ElTourStep), mergeProps({
|
|
@@ -91,16 +187,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
91
187
|
]), 1040, ["target", "title", "description"]);
|
|
92
188
|
}), 128))
|
|
93
189
|
]),
|
|
94
|
-
_:
|
|
95
|
-
}, [
|
|
96
|
-
_ctx.$slots.indicators ? {
|
|
97
|
-
name: "indicators",
|
|
98
|
-
fn: withCtx((indicator) => [
|
|
99
|
-
renderSlot(_ctx.$slots, "indicators", { indicator })
|
|
100
|
-
]),
|
|
101
|
-
key: "0"
|
|
102
|
-
} : void 0
|
|
103
|
-
]), 1032, ["modelValue", "current", "append-to", "show-arrow", "placement", "content-style", "mask", "gap", "scroll-into-view-options", "z-index", "show-close", "close-icon", "close-on-press-escape", "target-area-clickable"]);
|
|
190
|
+
_: 3
|
|
191
|
+
}, 8, ["modelValue", "current", "append-to", "show-arrow", "placement", "content-style", "mask", "gap", "scroll-into-view-options", "z-index", "show-close", "close-icon", "close-on-press-escape", "target-area-clickable"]);
|
|
104
192
|
};
|
|
105
193
|
}
|
|
106
194
|
});
|
|
@@ -347,7 +347,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
347
347
|
data[props.config.iconKey] ? (openBlock(), createBlock(_sfc_main$2, {
|
|
348
348
|
key: 0,
|
|
349
349
|
icon: data[props.config.iconKey],
|
|
350
|
-
class: normalizeClass([[colorClass.value], "vc-tree-node-icon icon-
|
|
350
|
+
class: normalizeClass([[colorClass.value], "vc-tree-node-icon icon-xl"])
|
|
351
351
|
}, null, 8, ["icon", "class"])) : createCommentVNode("", true),
|
|
352
352
|
createElementVNode("span", {
|
|
353
353
|
class: normalizeClass([props.config.nodeLabelClassName ? data[props.config.nodeLabelClassName] : "", "vc-tree-node-label"])
|
|
@@ -310,7 +310,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
310
310
|
createElementVNode("div", _hoisted_5, [
|
|
311
311
|
createVNode(_sfc_main$3, {
|
|
312
312
|
icon: unref(FolderTree),
|
|
313
|
-
class: "text-content-primary icon-
|
|
313
|
+
class: "text-content-primary icon-xl"
|
|
314
314
|
}, null, 8, ["icon"])
|
|
315
315
|
])
|
|
316
316
|
], 2)
|
|
@@ -56,7 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
56
56
|
createElementVNode("div", _hoisted_3, [
|
|
57
57
|
createVNode(_sfc_main$1, {
|
|
58
58
|
icon: __props.icon,
|
|
59
|
-
class: normalizeClass([[__props.activeDot ? "text-
|
|
59
|
+
class: normalizeClass([[__props.activeDot ? "text-content-brand" : "text-content-disabled"], "step-icon min-w-8"])
|
|
60
60
|
}, null, 8, ["icon", "class"])
|
|
61
61
|
])
|
|
62
62
|
])
|