@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
|
@@ -8,7 +8,7 @@ const _hoisted_2 = {
|
|
|
8
8
|
};
|
|
9
9
|
const _hoisted_3 = {
|
|
10
10
|
key: 1,
|
|
11
|
-
class: "w-full text-xl font-medium text-center text-
|
|
11
|
+
class: "w-full text-xl font-medium text-center text-content-brand transition-all duration-500"
|
|
12
12
|
};
|
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
14
|
...{
|
|
@@ -108,7 +108,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
108
108
|
createElementVNode("div", _hoisted_6, [
|
|
109
109
|
createVNode(_sfc_main$1, {
|
|
110
110
|
icon: unref(CloudUpload),
|
|
111
|
-
class: "icon-download text-
|
|
111
|
+
class: "icon-download text-content-brand ltr:mr-8 rtl:ml-8"
|
|
112
112
|
}, null, 8, ["icon"]),
|
|
113
113
|
createElementVNode("span", _hoisted_7, toDisplayString(__props.fileUploaderInstructions || unref(tVU).t("voicenterUi.uploader.fileUploaderInstructions")), 1)
|
|
114
114
|
]),
|
|
@@ -15,7 +15,7 @@ const _hoisted_3 = {
|
|
|
15
15
|
};
|
|
16
16
|
const _hoisted_4 = { class: "flex justify-between w-full" };
|
|
17
17
|
const _hoisted_5 = { class: "flex items-center font-medium flex-grow" };
|
|
18
|
-
const _hoisted_6 = { class: "font-medium text-
|
|
18
|
+
const _hoisted_6 = { class: "font-medium text-content-brand pointer mx-1 more-action" };
|
|
19
19
|
const _hoisted_7 = { key: 0 };
|
|
20
20
|
const _hoisted_8 = { key: 1 };
|
|
21
21
|
const _hoisted_9 = { class: "px-3" };
|
|
@@ -66,7 +66,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
66
66
|
createElementVNode("div", _hoisted_5, [
|
|
67
67
|
createVNode(_sfc_main$3, {
|
|
68
68
|
icon: unref(X),
|
|
69
|
-
class: "text-content-danger icon-
|
|
69
|
+
class: "text-content-danger icon-xl ltr:mr-2 rtl:ml-2"
|
|
70
70
|
}, null, 8, ["icon"]),
|
|
71
71
|
createElementVNode("div", null, toDisplayString(unref(tVU).t("voicenterUi.uploader.errorsInRow", {
|
|
72
72
|
row: errorRow.row + 1,
|
|
@@ -2,8 +2,8 @@ import { defineComponent, ref, computed, watch, openBlock, createElementBlock, c
|
|
|
2
2
|
import { Table } from "@lucide/vue";
|
|
3
3
|
import { useVModel } from "@vueuse/core";
|
|
4
4
|
import { tVU } from "../../localization/index.mjs";
|
|
5
|
-
import _sfc_main$1 from "../
|
|
6
|
-
import '../../assets/components/VcTable/VcTable2.css';import '../../assets/components/VcTable/VcTable.css';import '../../assets/components/VcSwitch/VcSwitch.css';import '../../assets/components/VcInputNumber/VcInputNumber.css';import '../../assets/components/VcSelect/VcSelect.css';import '../../assets/components/
|
|
5
|
+
import _sfc_main$1 from "../VcSegmented/VcSegmented.vue.mjs";
|
|
6
|
+
import '../../assets/components/VcTable/VcTable2.css';import '../../assets/components/VcTable/VcTable.css';import '../../assets/components/VcSwitch/VcSwitch.css';import '../../assets/components/VcInputNumber/VcInputNumber.css';import '../../assets/components/VcSelect/VcSelect.css';import '../../assets/components/VcSegmented/VcSegmented.css';/* empty css */
|
|
7
7
|
import _sfc_main$2 from "../VcSelect/VcSelect.vue.mjs";
|
|
8
8
|
/* empty css */
|
|
9
9
|
import _sfc_main$3 from "../VcInputNumber/VcInputNumber.vue.mjs";
|
|
@@ -152,6 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
152
152
|
createVNode(_sfc_main$1, {
|
|
153
153
|
modelValue: unref(activeSheetModel),
|
|
154
154
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(activeSheetModel) ? activeSheetModel.value = $event : null),
|
|
155
|
+
variant: "surface",
|
|
155
156
|
options: sheetOptions.value,
|
|
156
157
|
config: {
|
|
157
158
|
labelKey: "name",
|
|
@@ -217,8 +218,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
217
218
|
"has-actions": false,
|
|
218
219
|
"has-pagination": false,
|
|
219
220
|
"has-search": false,
|
|
220
|
-
"empty-data-text": unref(tVU).t("voicenterUi.general.no.data")
|
|
221
|
-
compact: ""
|
|
221
|
+
"empty-data-text": unref(tVU).t("voicenterUi.general.no.data")
|
|
222
222
|
}, createSlots({ _: 2 }, [
|
|
223
223
|
renderList(__props.showColumns, (col) => {
|
|
224
224
|
return {
|
|
@@ -115,7 +115,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
115
115
|
"has-search": false,
|
|
116
116
|
"has-pagination": false,
|
|
117
117
|
"row-class-name": getErrorRowClass,
|
|
118
|
-
compact: "",
|
|
119
118
|
stripe: "",
|
|
120
119
|
"wrapper-class": "bind-result-table",
|
|
121
120
|
onHandleSelectionChange: itemSelectionChange
|
package/library/components/VcExtendedDatetimeRangePicker/VcExtendedDatetimeRangePicker.vue.mjs
CHANGED
|
@@ -264,7 +264,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
264
264
|
__props.icon ? (openBlock(), createElementBlock("span", _hoisted_4, [
|
|
265
265
|
createVNode(_sfc_main$1, {
|
|
266
266
|
icon: __props.icon,
|
|
267
|
-
class: "icon-
|
|
267
|
+
class: "icon-xl vc-extended-datetime-range-picker__label-wrapper--left-item-icon text-content-primary"
|
|
268
268
|
}, null, 8, ["icon"])
|
|
269
269
|
])) : createCommentVNode("", true),
|
|
270
270
|
__props.label ? (openBlock(), createElementBlock("span", _hoisted_5, [
|
|
@@ -308,7 +308,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
308
308
|
}), null, 16, ["modelValue", "min-date", "max-date", "max-time", "color", "disabled", "preset-value"]),
|
|
309
309
|
createVNode(_sfc_main$1, {
|
|
310
310
|
icon: unref(ArrowRight),
|
|
311
|
-
class: "text-
|
|
311
|
+
class: "text-content-brand self-center shrink-0 !hidden sm:!block rtl:rotate-180"
|
|
312
312
|
}, null, 8, ["icon"]),
|
|
313
313
|
createVNode(_sfc_main$3, mergeProps({
|
|
314
314
|
ref: "extendedDatetimeRangePickerPartToRef",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _sfc_main from "./VcFileUploaderSimple.vue2.mjs";
|
|
2
2
|
import '../../assets/components/VcFileUploader/VcFileUploaderSimple.css';/* empty css */
|
|
3
3
|
import _export_sfc from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
|
-
const VcFileUploaderSimple = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
4
|
+
const VcFileUploaderSimple = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-3c8723b7"]]);
|
|
5
5
|
export {
|
|
6
6
|
VcFileUploaderSimple as default
|
|
7
7
|
};
|
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
import '../../assets/components/VcFilterBar/VcFilterAddMenu.css';
|
|
2
|
+
import { defineComponent, ref, shallowRef, computed, openBlock, createBlock, withCtx, withDirectives, createElementBlock, withKeys, withModifiers, unref, Fragment, createElementVNode, createVNode, renderList, toDisplayString, createCommentVNode, normalizeClass, createTextVNode, nextTick } from "vue";
|
|
3
|
+
import { Search, Plus } from "@lucide/vue";
|
|
4
|
+
import _sfc_main$5 from "../VcButton/VcButton.vue.mjs";
|
|
5
|
+
import '../../assets/components/VcFilterBar/VcFilterEditorPanel.css';import '../../assets/components/VcPopover/VcPopover.css';import '../../assets/components/VcInput/VcInput.css';import '../../assets/components/VcIcon/VcIcon.css';import '../../assets/components/VcButton/VcButton.css';/* empty css */
|
|
6
|
+
import _sfc_main$3 from "../VcIcon/VcIcon.vue.mjs";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import _sfc_main$2 from "../VcInput/VcInput.vue.mjs";
|
|
9
|
+
/* empty css */
|
|
10
|
+
import _sfc_main$1 from "../VcPopover/VcPopover.vue.mjs";
|
|
11
|
+
/* empty css */
|
|
12
|
+
import { ClickOutside } from "element-plus";
|
|
13
|
+
import { tVU } from "../../localization/index.mjs";
|
|
14
|
+
import { getTextDirection, formatChipValue, readOptionKey } from "./filterBarChip.mjs";
|
|
15
|
+
import { getFieldModes, getAppliedValues, getBlockedValues, addFieldValue, readFieldValue, isFilterListValue } from "./filterBarModel.mjs";
|
|
16
|
+
import { useFilterOptionsStore } from "./filterBarOptions.mjs";
|
|
17
|
+
import { canAddFieldValue } from "./filterBarValidate.mjs";
|
|
18
|
+
import { isModalField, hasFilterEditor } from "./filterBarEditors.mjs";
|
|
19
|
+
import _sfc_main$4 from "./VcFilterEditorPanel.vue.mjs";
|
|
20
|
+
/* empty css */
|
|
21
|
+
const _hoisted_1 = ["aria-label", "onKeydown"];
|
|
22
|
+
const _hoisted_2 = { class: "vc-filter-add-menu__search" };
|
|
23
|
+
const _hoisted_3 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "vc-filter-add-menu__group"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_4 = ["aria-disabled", "title", "data-test", "onClick"];
|
|
28
|
+
const _hoisted_5 = { class: "vc-filter-add-menu__label" };
|
|
29
|
+
const _hoisted_6 = ["dir"];
|
|
30
|
+
const _hoisted_7 = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "vc-filter-add-menu__empty"
|
|
33
|
+
};
|
|
34
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
35
|
+
__name: "VcFilterAddMenu",
|
|
36
|
+
props: {
|
|
37
|
+
fields: {},
|
|
38
|
+
modelValue: {},
|
|
39
|
+
modelOptions: {},
|
|
40
|
+
editorSlots: {},
|
|
41
|
+
footerSlot: { type: Function },
|
|
42
|
+
optionsCaption: {}
|
|
43
|
+
},
|
|
44
|
+
emits: ["update:modelValue", "open-modal"],
|
|
45
|
+
setup(__props, { emit: __emit }) {
|
|
46
|
+
const props = __props;
|
|
47
|
+
const emit = __emit;
|
|
48
|
+
const store = useFilterOptionsStore();
|
|
49
|
+
const open = ref(false);
|
|
50
|
+
const menuQuery = ref("");
|
|
51
|
+
const referenceRef = ref();
|
|
52
|
+
const contentRef = ref();
|
|
53
|
+
const listRef = ref();
|
|
54
|
+
const draftField = shallowRef();
|
|
55
|
+
const draftMode = ref("include");
|
|
56
|
+
const draftValue = ref();
|
|
57
|
+
function hasEditor(field) {
|
|
58
|
+
return hasFilterEditor(field, props.editorSlots);
|
|
59
|
+
}
|
|
60
|
+
function sourceOf(field) {
|
|
61
|
+
if (field.kind !== "multiselect" && field.kind !== "select") {
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
return field.options && !Array.isArray(field.options) ? field.options : void 0;
|
|
65
|
+
}
|
|
66
|
+
function paramsOf(field) {
|
|
67
|
+
if (field.kind !== "multiselect" && field.kind !== "select") {
|
|
68
|
+
return void 0;
|
|
69
|
+
}
|
|
70
|
+
return typeof field.optionsParams === "function" ? field.optionsParams() : field.optionsParams;
|
|
71
|
+
}
|
|
72
|
+
function knownOptions(field) {
|
|
73
|
+
var _a;
|
|
74
|
+
if (field.kind !== "multiselect" && field.kind !== "select") {
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
if (Array.isArray(field.options)) {
|
|
78
|
+
return field.options;
|
|
79
|
+
}
|
|
80
|
+
const source = sourceOf(field);
|
|
81
|
+
return source ? ((_a = store.peek(source, paramsOf(field))) == null ? void 0 : _a.data) ?? [] : [];
|
|
82
|
+
}
|
|
83
|
+
function preview(field) {
|
|
84
|
+
var _a, _b;
|
|
85
|
+
const valueKey = field.kind === "multiselect" || field.kind === "select" ? ((_a = field.optionConfig) == null ? void 0 : _a.valueKey) ?? "value" : "value";
|
|
86
|
+
const labelKey = field.kind === "multiselect" || field.kind === "select" ? ((_b = field.optionConfig) == null ? void 0 : _b.labelKey) ?? "label" : "label";
|
|
87
|
+
const options = knownOptions(field);
|
|
88
|
+
const optionLabel = (item) => {
|
|
89
|
+
const option = options.find((candidate) => readOptionKey(candidate, valueKey) === item);
|
|
90
|
+
const label = option ? readOptionKey(option, labelKey) : void 0;
|
|
91
|
+
return typeof label === "string" || typeof label === "number" ? String(label) : void 0;
|
|
92
|
+
};
|
|
93
|
+
const context = {
|
|
94
|
+
optionLabel,
|
|
95
|
+
yes: tVU.t("voicenterUi.filterBar.yes"),
|
|
96
|
+
no: tVU.t("voicenterUi.filterBar.no")
|
|
97
|
+
};
|
|
98
|
+
return getFieldModes(field).flatMap((mode) => {
|
|
99
|
+
const value = readFieldValue(props.modelValue, field, mode, props.modelOptions);
|
|
100
|
+
if (value === void 0) {
|
|
101
|
+
return [];
|
|
102
|
+
}
|
|
103
|
+
const text = formatChipValue(field, value, context).text;
|
|
104
|
+
return [mode === "exclude" ? tVU.t("voicenterUi.filterBar.excludePreview", { value: text }) : text];
|
|
105
|
+
}).join("; ");
|
|
106
|
+
}
|
|
107
|
+
function disabledReason(field) {
|
|
108
|
+
var _a;
|
|
109
|
+
if (typeof field.disabled === "string") {
|
|
110
|
+
return field.disabled;
|
|
111
|
+
}
|
|
112
|
+
const source = sourceOf(field);
|
|
113
|
+
const denied = source ? (_a = store.peek(source, paramsOf(field))) == null ? void 0 : _a.deniedReason : void 0;
|
|
114
|
+
if (denied) {
|
|
115
|
+
return denied;
|
|
116
|
+
}
|
|
117
|
+
return hasEditor(field) ? "" : tVU.t("voicenterUi.filterBar.noEditor");
|
|
118
|
+
}
|
|
119
|
+
const groups = computed(() => {
|
|
120
|
+
const query = menuQuery.value.trim().toLowerCase();
|
|
121
|
+
const result = [];
|
|
122
|
+
props.fields.forEach((field) => {
|
|
123
|
+
if (query && !field.label.toLowerCase().includes(query) && !(field.group ?? "").toLowerCase().includes(query)) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
const name = field.group ?? "";
|
|
127
|
+
let group = result.find((item) => item.name === name);
|
|
128
|
+
if (!group) {
|
|
129
|
+
group = {
|
|
130
|
+
name,
|
|
131
|
+
rows: []
|
|
132
|
+
};
|
|
133
|
+
result.push(group);
|
|
134
|
+
}
|
|
135
|
+
const reason = disabledReason(field);
|
|
136
|
+
group.rows.push({
|
|
137
|
+
field,
|
|
138
|
+
preview: preview(field),
|
|
139
|
+
disabledReason: reason,
|
|
140
|
+
disabled: field.disabled === true || !!reason
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
return result;
|
|
144
|
+
});
|
|
145
|
+
function focusMenuSearch() {
|
|
146
|
+
void nextTick(() => {
|
|
147
|
+
var _a, _b;
|
|
148
|
+
return (_b = (_a = contentRef.value) == null ? void 0 : _a.querySelector(".vc-filter-add-menu__search input")) == null ? void 0 : _b.focus();
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
function reset() {
|
|
152
|
+
menuQuery.value = "";
|
|
153
|
+
draftField.value = void 0;
|
|
154
|
+
draftMode.value = "include";
|
|
155
|
+
draftValue.value = void 0;
|
|
156
|
+
}
|
|
157
|
+
function toggle() {
|
|
158
|
+
if (open.value) {
|
|
159
|
+
close();
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
reset();
|
|
163
|
+
open.value = true;
|
|
164
|
+
focusMenuSearch();
|
|
165
|
+
}
|
|
166
|
+
function close() {
|
|
167
|
+
var _a, _b;
|
|
168
|
+
if (!open.value) {
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
open.value = false;
|
|
172
|
+
reset();
|
|
173
|
+
(_b = (_a = referenceRef.value) == null ? void 0 : _a.querySelector("button")) == null ? void 0 : _b.focus();
|
|
174
|
+
}
|
|
175
|
+
function backToMenu() {
|
|
176
|
+
draftField.value = void 0;
|
|
177
|
+
draftValue.value = void 0;
|
|
178
|
+
focusMenuSearch();
|
|
179
|
+
}
|
|
180
|
+
function onEscape() {
|
|
181
|
+
if (draftField.value) {
|
|
182
|
+
backToMenu();
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
close();
|
|
186
|
+
}
|
|
187
|
+
function rowButtons() {
|
|
188
|
+
var _a;
|
|
189
|
+
return Array.from(((_a = listRef.value) == null ? void 0 : _a.querySelectorAll(".vc-filter-add-menu__item")) ?? []);
|
|
190
|
+
}
|
|
191
|
+
function focusRow(index) {
|
|
192
|
+
var _a;
|
|
193
|
+
(_a = rowButtons()[index]) == null ? void 0 : _a.focus();
|
|
194
|
+
}
|
|
195
|
+
function moveFocus(step) {
|
|
196
|
+
var _a, _b, _c;
|
|
197
|
+
const buttons = rowButtons();
|
|
198
|
+
const current = buttons.findIndex((button) => button === document.activeElement);
|
|
199
|
+
const next = current + step;
|
|
200
|
+
if (next < 0) {
|
|
201
|
+
(_b = (_a = contentRef.value) == null ? void 0 : _a.querySelector(".vc-filter-add-menu__search input")) == null ? void 0 : _b.focus();
|
|
202
|
+
return;
|
|
203
|
+
}
|
|
204
|
+
(_c = buttons[Math.min(next, buttons.length - 1)]) == null ? void 0 : _c.focus();
|
|
205
|
+
}
|
|
206
|
+
function pick(row) {
|
|
207
|
+
if (row.disabled) {
|
|
208
|
+
return;
|
|
209
|
+
}
|
|
210
|
+
if (isModalField(row.field)) {
|
|
211
|
+
close();
|
|
212
|
+
emit("open-modal", row.field);
|
|
213
|
+
return;
|
|
214
|
+
}
|
|
215
|
+
draftField.value = row.field;
|
|
216
|
+
draftMode.value = "include";
|
|
217
|
+
draftValue.value = void 0;
|
|
218
|
+
void nextTick(() => {
|
|
219
|
+
var _a, _b;
|
|
220
|
+
return (_b = (_a = contentRef.value) == null ? void 0 : _a.querySelector("input")) == null ? void 0 : _b.focus();
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
function pickFirst() {
|
|
224
|
+
const first = groups.value.flatMap((group) => group.rows).find((row) => !row.disabled);
|
|
225
|
+
if (first) {
|
|
226
|
+
pick(first);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const canExclude = computed(() => !!draftField.value && getFieldModes(draftField.value).includes("exclude"));
|
|
230
|
+
const applied = computed(() => draftField.value ? getAppliedValues(props.modelValue, draftField.value, draftMode.value, props.modelOptions) : []);
|
|
231
|
+
const blocked = computed(() => draftField.value ? getBlockedValues(props.modelValue, draftField.value, draftMode.value, props.modelOptions) : []);
|
|
232
|
+
function setMode(mode) {
|
|
233
|
+
if (mode !== "include" && mode !== "exclude") {
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
draftMode.value = mode;
|
|
237
|
+
if (isFilterListValue(draftValue.value)) {
|
|
238
|
+
const kept = draftValue.value.filter((item) => !blocked.value.includes(item) && !applied.value.includes(item));
|
|
239
|
+
draftValue.value = kept.length ? kept : void 0;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
const canAdd = computed(() => !!draftField.value && canAddFieldValue(draftField.value, draftValue.value, applied.value));
|
|
243
|
+
const draftPreview = computed(() => draftField.value && canAdd.value ? addFieldValue(props.modelValue, draftField.value, draftMode.value, draftValue.value, props.modelOptions) : props.modelValue);
|
|
244
|
+
function commit() {
|
|
245
|
+
const field = draftField.value;
|
|
246
|
+
if (!field || !canAdd.value) {
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
emit("update:modelValue", addFieldValue(props.modelValue, field, draftMode.value, draftValue.value, props.modelOptions));
|
|
250
|
+
close();
|
|
251
|
+
}
|
|
252
|
+
return (_ctx, _cache) => {
|
|
253
|
+
return openBlock(), createBlock(_sfc_main$1, {
|
|
254
|
+
open: open.value,
|
|
255
|
+
trigger: "manual",
|
|
256
|
+
placement: "bottom-start",
|
|
257
|
+
"popover-width": draftField.value ? 320 : 340,
|
|
258
|
+
"popover-class": "vc-filter-add-menu__popover"
|
|
259
|
+
}, {
|
|
260
|
+
reference: withCtx(() => [
|
|
261
|
+
createElementVNode("span", {
|
|
262
|
+
ref_key: "referenceRef",
|
|
263
|
+
ref: referenceRef,
|
|
264
|
+
class: "vc-filter-add-menu__reference"
|
|
265
|
+
}, [
|
|
266
|
+
createVNode(_sfc_main$5, {
|
|
267
|
+
type: "outline",
|
|
268
|
+
color: "primary",
|
|
269
|
+
size: "small",
|
|
270
|
+
icon: unref(Plus),
|
|
271
|
+
"aria-expanded": open.value ? "true" : "false",
|
|
272
|
+
"aria-haspopup": "dialog",
|
|
273
|
+
"data-test": "vc-filter-bar-add",
|
|
274
|
+
onClick: toggle
|
|
275
|
+
}, {
|
|
276
|
+
default: withCtx(() => [
|
|
277
|
+
createTextVNode(toDisplayString(unref(tVU).t("voicenterUi.filterBar.addFilter")), 1)
|
|
278
|
+
]),
|
|
279
|
+
_: 1
|
|
280
|
+
}, 8, ["icon", "aria-expanded"])
|
|
281
|
+
], 512)
|
|
282
|
+
]),
|
|
283
|
+
default: withCtx(() => [
|
|
284
|
+
withDirectives((openBlock(), createElementBlock("div", {
|
|
285
|
+
ref_key: "contentRef",
|
|
286
|
+
ref: contentRef,
|
|
287
|
+
class: "vc-filter-add-menu",
|
|
288
|
+
role: "dialog",
|
|
289
|
+
"aria-label": unref(tVU).t("voicenterUi.filterBar.addFilter"),
|
|
290
|
+
"data-test": "vc-filter-add-menu",
|
|
291
|
+
onKeydown: withKeys(withModifiers(onEscape, ["stop", "prevent"]), ["esc"])
|
|
292
|
+
}, [
|
|
293
|
+
!draftField.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
294
|
+
createElementVNode("div", _hoisted_2, [
|
|
295
|
+
createVNode(_sfc_main$2, {
|
|
296
|
+
modelValue: menuQuery.value,
|
|
297
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => menuQuery.value = $event),
|
|
298
|
+
"prefix-icon": unref(Search),
|
|
299
|
+
placeholder: unref(tVU).t("voicenterUi.filterBar.searchFilters"),
|
|
300
|
+
"aria-label": unref(tVU).t("voicenterUi.filterBar.searchFilters"),
|
|
301
|
+
clearable: "",
|
|
302
|
+
"data-test": "vc-filter-menu-search",
|
|
303
|
+
onKeydown: [
|
|
304
|
+
_cache[1] || (_cache[1] = withKeys(withModifiers(($event) => focusRow(0), ["prevent"]), ["down"])),
|
|
305
|
+
withKeys(withModifiers(pickFirst, ["prevent"]), ["enter"])
|
|
306
|
+
]
|
|
307
|
+
}, null, 8, ["modelValue", "prefix-icon", "placeholder", "aria-label", "onKeydown"])
|
|
308
|
+
]),
|
|
309
|
+
createElementVNode("div", {
|
|
310
|
+
ref_key: "listRef",
|
|
311
|
+
ref: listRef,
|
|
312
|
+
class: "vc-filter-add-menu__list",
|
|
313
|
+
onKeydown: [
|
|
314
|
+
_cache[2] || (_cache[2] = withKeys(withModifiers(($event) => moveFocus(1), ["prevent"]), ["down"])),
|
|
315
|
+
_cache[3] || (_cache[3] = withKeys(withModifiers(($event) => moveFocus(-1), ["prevent"]), ["up"]))
|
|
316
|
+
]
|
|
317
|
+
}, [
|
|
318
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group) => {
|
|
319
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
320
|
+
key: group.name
|
|
321
|
+
}, [
|
|
322
|
+
group.name ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(group.name), 1)) : createCommentVNode("", true),
|
|
323
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(group.rows, (row) => {
|
|
324
|
+
return openBlock(), createElementBlock("button", {
|
|
325
|
+
key: row.field.key,
|
|
326
|
+
type: "button",
|
|
327
|
+
class: normalizeClass(["vc-filter-add-menu__item", { "is-disabled": !!row.disabledReason || row.disabled }]),
|
|
328
|
+
"aria-disabled": row.disabled ? "true" : void 0,
|
|
329
|
+
title: row.disabledReason || row.preview,
|
|
330
|
+
"data-test": `vc-filter-menu-item-${row.field.key}`,
|
|
331
|
+
onClick: ($event) => pick(row)
|
|
332
|
+
}, [
|
|
333
|
+
row.field.icon ? (openBlock(), createBlock(_sfc_main$3, {
|
|
334
|
+
key: 0,
|
|
335
|
+
icon: row.field.icon,
|
|
336
|
+
class: "vc-filter-add-menu__icon"
|
|
337
|
+
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
338
|
+
createElementVNode("span", _hoisted_5, toDisplayString(row.field.label), 1),
|
|
339
|
+
createElementVNode("span", {
|
|
340
|
+
class: "vc-filter-add-menu__preview",
|
|
341
|
+
dir: unref(getTextDirection)(row.disabledReason || row.preview)
|
|
342
|
+
}, toDisplayString(row.disabledReason || row.preview), 9, _hoisted_6)
|
|
343
|
+
], 10, _hoisted_4);
|
|
344
|
+
}), 128))
|
|
345
|
+
], 64);
|
|
346
|
+
}), 128)),
|
|
347
|
+
!groups.value.length ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString(unref(tVU).t("voicenterUi.filterBar.noFilterMatch", { query: menuQuery.value })), 1)) : createCommentVNode("", true)
|
|
348
|
+
], 544)
|
|
349
|
+
], 64)) : (openBlock(), createBlock(_sfc_main$4, {
|
|
350
|
+
key: 1,
|
|
351
|
+
field: draftField.value,
|
|
352
|
+
mode: draftMode.value,
|
|
353
|
+
value: draftValue.value,
|
|
354
|
+
applied: applied.value,
|
|
355
|
+
blocked: blocked.value,
|
|
356
|
+
"can-exclude": canExclude.value,
|
|
357
|
+
"show-back": "",
|
|
358
|
+
"commit-label": unref(tVU).t("voicenterUi.filterBar.addFilter"),
|
|
359
|
+
"can-commit": canAdd.value,
|
|
360
|
+
preview: draftPreview.value,
|
|
361
|
+
"editor-slots": __props.editorSlots,
|
|
362
|
+
"footer-slot": __props.footerSlot,
|
|
363
|
+
caption: __props.optionsCaption,
|
|
364
|
+
"onUpdate:mode": setMode,
|
|
365
|
+
"onUpdate:value": _cache[4] || (_cache[4] = ($event) => draftValue.value = $event),
|
|
366
|
+
onBack: backToMenu,
|
|
367
|
+
onCommit: commit
|
|
368
|
+
}, null, 8, ["field", "mode", "value", "applied", "blocked", "can-exclude", "commit-label", "can-commit", "preview", "editor-slots", "footer-slot", "caption"]))
|
|
369
|
+
], 40, _hoisted_1)), [
|
|
370
|
+
[unref(ClickOutside), close, referenceRef.value]
|
|
371
|
+
])
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["open", "popover-width"]);
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
export {
|
|
379
|
+
_sfc_main as default
|
|
380
|
+
};
|