@livestorm/ui-vue 1.1.3 → 2.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +154 -32
- package/components-vite.js +5 -5
- package/components.d.ts +3 -3
- package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-BN5208td.mjs +5452 -0
- package/dist/a11y--y7uaY4j.mjs +217 -0
- package/dist/breakpoints.mjs +9 -0
- package/dist/bus.mjs +5 -0
- package/dist/components.mjs +215 -1663
- package/dist/index.mjs +85 -166
- package/dist/integrations.mjs +8 -0
- package/dist/layouts.mjs +236 -0
- package/dist/responsive.mjs +25 -0
- package/dist/slot.mjs +21 -0
- package/dist/toastDSV2-wMh-UMzW.mjs +74 -0
- package/dist/types/index.d.ts +84 -0
- package/dist/types/src/components/Toast/LayoutToasts.vue.d.ts +3 -0
- package/dist/types/src/components/Toast/ToastMessage.vue.d.ts +21 -0
- package/dist/types/src/components/Toast/toastDSV2.d.ts +102 -0
- package/dist/types/src/components/UiActionBar/UiActionBar.vue.d.ts +44 -0
- package/dist/types/src/components/UiActionBar/UiActionBarItem.vue.d.ts +47 -0
- package/dist/types/src/components/UiActionBar/UiActionBarSeparator.vue.d.ts +3 -0
- package/dist/types/src/components/UiActionBar/index.d.ts +4 -0
- package/dist/types/src/components/UiActionBar/types.d.ts +14 -0
- package/dist/types/src/components/UiAnimatedLogo/UiAnimatedLogo.vue.d.ts +10 -0
- package/dist/types/src/components/UiAnimatedLogo/animations-links.d.ts +3 -0
- package/dist/types/src/components/UiAvatar/UiAvatar.vue.d.ts +55 -0
- package/dist/types/src/components/UiAvatar/index.d.ts +1 -0
- package/dist/types/src/components/UiAvatarList/UiAvatarList.vue.d.ts +28 -0
- package/dist/types/src/components/UiAvatarList/index.d.ts +1 -0
- package/dist/types/src/components/UiBadge/UiBadge.vue.d.ts +47 -0
- package/dist/types/src/components/UiBadge/index.d.ts +1 -0
- package/dist/types/src/components/UiBanner/UiBanner.vue.d.ts +96 -0
- package/dist/types/src/components/UiBanner/index.d.ts +2 -0
- package/dist/types/src/components/UiBreadcrumb/UiBreadcrumb.vue.d.ts +15 -0
- package/dist/types/src/components/UiBreadcrumb/index.d.ts +2 -0
- package/dist/types/src/components/UiButton/UiButton.vue.d.ts +280 -0
- package/dist/types/src/components/UiButtonGroup/UiButtonGroup.vue.d.ts +42 -0
- package/dist/types/src/components/UiButtonGroup/UiButtonGroupItem.vue.d.ts +21 -0
- package/dist/types/src/components/UiButtonGroup/index.d.ts +3 -0
- package/dist/types/src/components/UiButtonGroup/types.d.ts +10 -0
- package/dist/types/src/components/UiCard/UiCard.vue.d.ts +31 -0
- package/dist/types/src/components/UiCarousel/UiCarousel.vue.d.ts +63 -0
- package/dist/types/src/components/UiCarousel/index.d.ts +2 -0
- package/dist/types/src/components/UiColorField/UiColorField.vue.d.ts +19 -0
- package/dist/types/src/components/UiColorField/index.d.ts +2 -0
- package/dist/types/src/components/UiColorField/types.d.ts +29 -0
- package/dist/types/src/components/UiColorPicker/UiColorPicker.vue.d.ts +35 -0
- package/dist/types/src/components/UiColorPicker/index.d.ts +2 -0
- package/dist/types/src/components/UiColorPicker/types.d.ts +97 -0
- package/dist/types/src/components/UiDialog/MarketplaceHeaderExample.vue.d.ts +28 -0
- package/dist/types/src/components/UiDialog/UiDialog.vue.d.ts +18 -0
- package/dist/types/src/components/UiDialog/UiDialogClose.vue.d.ts +10 -0
- package/dist/types/src/components/UiDialog/UiDialogContent.vue.d.ts +54 -0
- package/dist/types/src/components/UiDialog/UiDialogFooter.vue.d.ts +13 -0
- package/dist/types/src/components/UiDialog/UiDialogTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiDialog/index.d.ts +7 -0
- package/dist/types/src/components/UiDropdown/UiDropdown.vue.d.ts +42 -0
- package/dist/types/src/components/UiDropdown/UiDropdownContent.vue.d.ts +32 -0
- package/dist/types/src/components/UiDropdown/UiDropdownItem.vue.d.ts +27 -0
- package/dist/types/src/components/UiDropdown/UiDropdownSeparator.vue.d.ts +3 -0
- package/dist/types/src/components/UiDropdown/UiDropdownTrigger.vue.d.ts +45 -0
- package/dist/types/src/components/UiDropdown/context.d.ts +7 -0
- package/dist/types/src/components/UiDropdown/index.d.ts +6 -0
- package/dist/types/src/components/UiEmptyState/UiEmptyState.vue.d.ts +29 -0
- package/dist/types/src/components/UiFieldWrapper/UiFieldWrapper.vue.d.ts +36 -0
- package/dist/types/src/components/UiFieldWrapper/index.d.ts +1 -0
- package/dist/types/src/components/UiForm/UiFormField.types.d.ts +22 -0
- package/dist/types/src/components/UiForm/UiFormField.vue.d.ts +34 -0
- package/dist/types/src/components/UiForm/index.d.ts +3 -0
- package/dist/types/src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue.d.ts +6 -0
- package/dist/types/src/components/UiInputCheckbox/UiInputCheckbox.vue.d.ts +108 -0
- package/dist/types/src/components/UiInputCheckbox/index.d.ts +2 -0
- package/dist/types/src/components/UiInputCheckbox/types.d.ts +1 -0
- package/dist/types/src/components/UiInputSelect/UiInputSelect.vue.d.ts +66 -0
- package/dist/types/src/components/UiInputSelect/index.d.ts +2 -0
- package/dist/types/src/components/UiInputSelect/types.d.ts +1 -0
- package/dist/types/src/components/UiInputTextarea/UiInputTextarea.vue.d.ts +49 -0
- package/dist/types/src/components/UiInputTextarea/index.d.ts +2 -0
- package/dist/types/src/components/UiInputTextarea/types.d.ts +1 -0
- package/dist/types/src/components/UiLabel/UiLabel.vue.d.ts +17 -0
- package/dist/types/src/components/UiList/UiList.vue.d.ts +27 -0
- package/dist/types/src/components/UiListItem/UiListItem.vue.d.ts +35 -0
- package/dist/types/src/components/UiLoader/UiLoader.vue.d.ts +17 -0
- package/dist/types/src/components/UiLogo/UiLogo.vue.d.ts +20 -0
- package/dist/types/src/components/UiLogo/variants/PulseVariant.vue.d.ts +3 -0
- package/dist/types/src/components/UiLogo/variants/TornadoVariant.vue.d.ts +3 -0
- package/dist/types/src/components/UiMenu/UiMenu.vue.d.ts +18 -0
- package/dist/types/src/components/UiMenu/UiMenuContent.vue.d.ts +30 -0
- package/dist/types/src/components/UiMenu/UiMenuGroup.vue.d.ts +16 -0
- package/dist/types/src/components/UiMenu/UiMenuItem.vue.d.ts +18 -0
- package/dist/types/src/components/UiMenu/UiMenuLabel.vue.d.ts +13 -0
- package/dist/types/src/components/UiMenu/UiMenuSeparator.vue.d.ts +13 -0
- package/dist/types/src/components/UiMenu/UiMenuSub.vue.d.ts +18 -0
- package/dist/types/src/components/UiMenu/UiMenuSubContent.vue.d.ts +32 -0
- package/dist/types/src/components/UiMenu/UiMenuSubTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiMenu/UiMenuTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiMenu/index.d.ts +10 -0
- package/dist/types/src/components/UiPage/UiPage.vue.d.ts +37 -0
- package/dist/types/src/components/UiPageHeader/UiPageHeader.vue.d.ts +33 -0
- package/dist/types/src/components/UiPopover/UiPopover.vue.d.ts +18 -0
- package/dist/types/src/components/UiPopover/UiPopoverAnchor.vue.d.ts +14 -0
- package/dist/types/src/components/UiPopover/UiPopoverContent.vue.d.ts +28 -0
- package/dist/types/src/components/UiPopover/UiPopoverTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiProgress/UiProgress.vue.d.ts +15 -0
- package/dist/types/src/components/UiProgress/index.d.ts +2 -0
- package/dist/types/src/components/UiProgress/types.d.ts +4 -0
- package/dist/types/src/components/UiRoomButton/UiRoomButton.vue.d.ts +29 -0
- package/dist/types/src/components/UiShell/UiShell.vue.d.ts +24 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenu.vue.d.ts +64 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenuBottom.vue.d.ts +7 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenuItem.vue.d.ts +53 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenuItemContent.vue.d.ts +43 -0
- package/dist/types/src/components/UiSideMenu/UiSideMenuTop.vue.d.ts +7 -0
- package/dist/types/src/components/UiSideMenu/injection.d.ts +7 -0
- package/dist/types/src/components/UiSideMenu/types.d.ts +39 -0
- package/dist/types/src/components/UiSideMenu/useLabelHidden.d.ts +2 -0
- package/dist/types/src/components/UiSideMenu/useSideMenuLayout.d.ts +7 -0
- package/dist/types/src/components/UiStepper/UiStepper.vue.d.ts +18 -0
- package/dist/types/src/components/UiStepper/UiStepperDescription.vue.d.ts +14 -0
- package/dist/types/src/components/UiStepper/UiStepperIndicator.vue.d.ts +20 -0
- package/dist/types/src/components/UiStepper/UiStepperItem.vue.d.ts +19 -0
- package/dist/types/src/components/UiStepper/UiStepperSeparator.vue.d.ts +10 -0
- package/dist/types/src/components/UiStepper/UiStepperTitle.vue.d.ts +14 -0
- package/dist/types/src/components/UiStepper/index.d.ts +7 -0
- package/dist/types/src/components/UiTable/UiTable.vue.d.ts +20 -0
- package/dist/types/src/components/UiTable/UiTableBody.vue.d.ts +13 -0
- package/dist/types/src/components/UiTable/UiTableCell.vue.d.ts +13 -0
- package/dist/types/src/components/UiTable/UiTableHeader.vue.d.ts +13 -0
- package/dist/types/src/components/UiTable/UiTableHeaderCell.vue.d.ts +13 -0
- package/dist/types/src/components/UiTable/UiTableRow.vue.d.ts +16 -0
- package/dist/types/src/components/UiTable/index.d.ts +6 -0
- package/dist/types/src/components/UiTabs/UiTabs.vue.d.ts +37 -0
- package/dist/types/src/components/UiTabs/index.d.ts +2 -0
- package/dist/types/src/components/UiTag/UiTag.vue.d.ts +43 -0
- package/dist/types/src/components/UiTag/index.d.ts +1 -0
- package/dist/types/src/components/UiTextField/UiTextField.vue.d.ts +65 -0
- package/dist/types/src/components/UiTextField/index.d.ts +2 -0
- package/dist/types/src/components/UiTextField/types.d.ts +2 -0
- package/dist/types/src/components/UiTimeline/UiTimeline.vue.d.ts +19 -0
- package/dist/types/src/components/UiTimeline/UiTimelineItem.vue.d.ts +28 -0
- package/dist/types/src/components/UiTimeline/index.d.ts +2 -0
- package/dist/types/src/components/UiTooltip/UiTooltip.vue.d.ts +41 -0
- package/dist/types/src/components/UiTooltip/UiTooltipContent.vue.d.ts +54 -0
- package/dist/types/src/components/UiTooltip/UiTooltipProvider.vue.d.ts +17 -0
- package/dist/types/src/components/UiTooltip/UiTooltipTrigger.vue.d.ts +14 -0
- package/dist/types/src/components/UiTooltip/index.d.ts +4 -0
- package/dist/types/src/composables/useButtonStyles.d.ts +20 -0
- package/dist/types/src/composables/useMobileMenu.d.ts +11 -0
- package/dist/types/src/composables/useThemeAndModes.d.ts +34 -0
- package/dist/types/src/constants/index.d.ts +2 -0
- package/dist/types/src/constants/sizes.d.ts +2 -0
- package/dist/types/src/constants/themes.d.ts +22 -0
- package/dist/types/src/integrations/index.d.ts +1 -0
- package/dist/types/src/layouts/index.d.ts +2 -0
- package/dist/types/src/mixins/DynamicAction.d.ts +30 -0
- package/dist/types/src/primitives.d.ts +6 -0
- package/dist/types/src/theme.d.ts +1 -0
- package/dist/types/src/utils/a11y.d.ts +2 -0
- package/dist/types/src/utils/breakpoints.d.ts +9 -0
- package/dist/types/src/utils/bus.d.ts +2 -0
- package/dist/types/src/utils/clipboard.d.ts +4 -0
- package/dist/types/src/utils/devices.d.ts +19 -0
- package/dist/types/src/utils/elements.d.ts +1 -0
- package/dist/types/src/utils/index.d.ts +9 -0
- package/dist/types/src/utils/numbers.d.ts +30 -0
- package/dist/types/src/utils/responsive.d.ts +5 -0
- package/dist/types/src/utils/responsive.types.d.ts +12 -0
- package/dist/types/src/utils/router.d.ts +1 -0
- package/dist/types/src/utils/slot.d.ts +8 -0
- package/dist/types/src/utils/stack-view.d.ts +10 -0
- package/dist/types/src/utils/uid.d.ts +1 -0
- package/dist/types/style.d.ts +1 -0
- package/dist/ui-vue.css +1 -0
- package/dist/useThemeAndModes-DY5SDC0a.mjs +109 -0
- package/dist/utils.mjs +146 -0
- package/index.d.ts +88 -2
- package/index.js +169 -16
- package/integrations.d.ts +10 -0
- package/package.json +130 -63
- package/src/components/Toast/LayoutToasts.vue +63 -0
- package/src/components/Toast/ToastMessage.vue +208 -0
- package/src/components/Toast/toastDSV2.ts +151 -0
- package/src/components/UiActionBar/UiActionBar.vue +86 -0
- package/src/components/UiActionBar/UiActionBarItem.vue +179 -0
- package/src/components/UiActionBar/UiActionBarSeparator.vue +18 -0
- package/src/components/UiActionBar/index.ts +4 -0
- package/src/components/UiActionBar/types.ts +24 -0
- package/src/components/UiAnimatedLogo/UiAnimatedLogo.vue +47 -0
- package/src/components/UiAnimatedLogo/animations-links.ts +6 -0
- package/src/components/UiAvatar/UiAvatar.vue +186 -0
- package/src/components/UiAvatar/index.js +1 -0
- package/src/components/UiAvatarList/UiAvatarList.vue +109 -0
- package/src/components/UiAvatarList/index.js +1 -0
- package/src/components/UiBadge/UiBadge.vue +161 -0
- package/src/components/UiBadge/index.ts +2 -0
- package/src/components/UiBanner/UiBanner.vue +363 -0
- package/src/components/UiBanner/index.ts +2 -0
- package/src/components/UiBreadcrumb/UiBreadcrumb.vue +93 -0
- package/src/components/UiBreadcrumb/index.ts +2 -0
- package/src/components/UiButton/UiButton.vue +322 -0
- package/src/components/UiButtonGroup/UiButtonGroup.vue +198 -0
- package/src/components/UiButtonGroup/UiButtonGroupItem.vue +123 -0
- package/src/components/UiButtonGroup/index.ts +3 -0
- package/src/components/UiButtonGroup/types.ts +24 -0
- package/src/components/UiCard/UiCard.vue +112 -0
- package/src/components/UiCarousel/UiCarousel.vue +215 -0
- package/src/components/UiCarousel/index.ts +2 -0
- package/src/components/UiColorField/UiColorField.vue +158 -0
- package/src/components/UiColorField/index.ts +2 -0
- package/src/components/UiColorField/types.ts +30 -0
- package/src/components/UiColorPicker/UiColorPicker.vue +487 -0
- package/src/components/UiColorPicker/index.ts +2 -0
- package/src/components/UiColorPicker/types.ts +103 -0
- package/src/components/UiDialog/MarketplaceHeaderExample.vue +217 -0
- package/src/components/UiDialog/UiDialog.md +97 -0
- package/src/components/UiDialog/UiDialog.vue +16 -0
- package/src/components/UiDialog/UiDialogClose.vue +29 -0
- package/src/components/UiDialog/UiDialogContent.vue +238 -0
- package/src/components/UiDialog/UiDialogFooter.vue +9 -0
- package/src/components/UiDialog/UiDialogTrigger.vue +12 -0
- package/src/components/UiDialog/index.ts +18 -0
- package/src/components/UiDropdown/UiDropdown.vue +48 -0
- package/src/components/UiDropdown/UiDropdownContent.vue +72 -0
- package/src/components/UiDropdown/UiDropdownItem.vue +75 -0
- package/src/components/UiDropdown/UiDropdownSeparator.vue +7 -0
- package/src/components/UiDropdown/UiDropdownTrigger.vue +239 -0
- package/src/components/UiDropdown/context.ts +9 -0
- package/src/components/UiDropdown/index.ts +21 -0
- package/src/components/UiEmptyState/UiEmptyState.vue +80 -0
- package/src/components/UiFieldWrapper/UiFieldWrapper.vue +81 -0
- package/src/components/UiFieldWrapper/index.ts +1 -0
- package/src/components/UiForm/UiFormField.types.ts +24 -0
- package/src/components/UiForm/UiFormField.vue +66 -0
- package/src/components/UiForm/index.ts +3 -0
- package/src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue +28 -0
- package/src/components/UiInputCheckbox/UiInputCheckbox.vue +481 -0
- package/src/components/UiInputCheckbox/index.ts +2 -0
- package/src/components/UiInputCheckbox/types.ts +1 -0
- package/src/components/UiInputSelect/UiInputSelect.vue +166 -0
- package/src/components/UiInputSelect/index.ts +2 -0
- package/src/components/UiInputSelect/types.ts +1 -0
- package/src/components/UiInputTextarea/UiInputTextarea.vue +219 -0
- package/src/components/UiInputTextarea/index.ts +2 -0
- package/src/components/UiInputTextarea/types.ts +1 -0
- package/src/components/UiLabel/UiLabel.vue +36 -0
- package/src/components/UiList/UiList.vue +45 -0
- package/src/components/UiListItem/UiListItem.vue +108 -0
- package/src/components/UiLoader/UiLoader.vue +45 -0
- package/src/components/UiLogo/UiLogo.vue +99 -0
- package/src/components/UiLogo/variants/PulseVariant.vue +51 -0
- package/src/components/UiLogo/variants/TornadoVariant.vue +147 -0
- package/src/components/UiMenu/UiMenu.vue +15 -0
- package/src/components/UiMenu/UiMenuContent.vue +25 -0
- package/src/components/UiMenu/UiMenuGroup.vue +19 -0
- package/src/components/UiMenu/UiMenuItem.vue +18 -0
- package/src/components/UiMenu/UiMenuLabel.vue +9 -0
- package/src/components/UiMenu/UiMenuSeparator.vue +9 -0
- package/src/components/UiMenu/UiMenuSub.vue +15 -0
- package/src/components/UiMenu/UiMenuSubContent.vue +23 -0
- package/src/components/UiMenu/UiMenuSubTrigger.vue +17 -0
- package/src/components/UiMenu/UiMenuTrigger.vue +13 -0
- package/src/components/UiMenu/index.ts +10 -0
- package/src/components/UiPage/UiPage.vue +201 -0
- package/src/components/UiPageHeader/UiPageHeader.vue +128 -0
- package/src/components/UiPopover/UiPopover.vue +16 -0
- package/src/components/UiPopover/UiPopoverAnchor.vue +12 -0
- package/src/components/UiPopover/UiPopoverContent.vue +26 -0
- package/src/components/UiPopover/UiPopoverTrigger.vue +19 -0
- package/src/components/UiProgress/UiProgress.vue +92 -0
- package/src/components/UiProgress/index.ts +2 -0
- package/src/components/UiProgress/types.ts +5 -0
- package/src/components/UiRoomButton/UiRoomButton.vue +240 -0
- package/src/components/UiShell/UiShell.vue +88 -0
- package/src/components/UiSideMenu/UiSideMenu.vue +513 -0
- package/src/components/UiSideMenu/UiSideMenuBottom.vue +27 -0
- package/src/components/UiSideMenu/UiSideMenuItem.vue +102 -0
- package/src/components/UiSideMenu/UiSideMenuItemContent.vue +172 -0
- package/src/components/UiSideMenu/UiSideMenuTop.vue +29 -0
- package/src/components/UiSideMenu/injection.ts +9 -0
- package/src/components/UiSideMenu/types.ts +41 -0
- package/src/components/UiSideMenu/useLabelHidden.ts +33 -0
- package/src/components/UiSideMenu/useSideMenuLayout.ts +12 -0
- package/src/components/UiStepper/UiStepper.vue +40 -0
- package/src/components/UiStepper/UiStepperDescription.vue +27 -0
- package/src/components/UiStepper/UiStepperIndicator.vue +93 -0
- package/src/components/UiStepper/UiStepperItem.vue +30 -0
- package/src/components/UiStepper/UiStepperSeparator.vue +49 -0
- package/src/components/UiStepper/UiStepperTitle.vue +24 -0
- package/src/components/UiStepper/index.ts +17 -0
- package/src/components/UiTable/UiTable.vue +24 -0
- package/src/components/UiTable/UiTableBody.vue +5 -0
- package/src/components/UiTable/UiTableCell.vue +26 -0
- package/src/components/UiTable/UiTableHeader.vue +17 -0
- package/src/components/UiTable/UiTableHeaderCell.vue +19 -0
- package/src/components/UiTable/UiTableRow.vue +27 -0
- package/src/components/UiTable/index.ts +6 -0
- package/src/components/UiTabs/UiTabs.vue +218 -0
- package/src/components/UiTabs/index.ts +5 -0
- package/src/components/UiTag/UiTag.vue +187 -0
- package/src/components/UiTag/index.js +1 -0
- package/src/components/UiTextField/UiTextField.vue +370 -0
- package/src/components/UiTextField/index.ts +2 -0
- package/src/components/UiTextField/types.ts +2 -0
- package/src/components/UiTimeline/README.md +169 -0
- package/src/components/UiTimeline/UiTimeline.vue +58 -0
- package/src/components/UiTimeline/UiTimelineItem.vue +141 -0
- package/src/components/UiTimeline/index.ts +2 -0
- package/src/components/UiTooltip/UiTooltip.vue +68 -0
- package/src/components/UiTooltip/UiTooltipContent.vue +86 -0
- package/src/components/UiTooltip/UiTooltipProvider.vue +15 -0
- package/src/components/UiTooltip/UiTooltipTrigger.vue +19 -0
- package/src/components/UiTooltip/index.js +4 -0
- package/src/composables/useButtonStyles.ts +242 -0
- package/src/composables/useMobileMenu.ts +57 -0
- package/src/composables/useThemeAndModes.ts +225 -0
- package/src/constants/index.ts +2 -0
- package/src/constants/sizes.ts +2 -0
- package/src/constants/themes.ts +34 -0
- package/src/css/{body.postcss → body.css} +3 -2
- package/src/css/reka-animations.css +209 -0
- package/src/css/{transitions.postcss → transitions.css} +12 -5
- package/src/global.d.ts +181 -0
- package/src/integrations/index.js +1 -0
- package/src/layouts/index.js +5 -0
- package/src/mixins/DynamicAction.js +5 -3
- package/src/primitives.ts +6 -0
- package/src/theme.ts +1 -0
- package/src/utils/a11y.ts +8 -0
- package/src/utils/{breakpoints.js → breakpoints.ts} +1 -0
- package/src/utils/clipboard.js +81 -14
- package/src/utils/devices.js +0 -3
- package/src/utils/index.js +2 -1
- package/src/utils/numbers.ts +61 -0
- package/src/utils/responsive.types.ts +12 -0
- package/src/utils/{slot.js → slot.ts} +18 -1
- package/style.js +3 -12
- package/theme.d.ts +1 -0
- package/.env +0 -1
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -49
- package/.pkg +0 -11
- package/babel.config.js +0 -5
- package/build/Dockerfile +0 -31
- package/ci/ci.yml +0 -54
- package/components-webpack.js +0 -29
- package/dist/environment-da321c85.mjs +0 -1656
- package/dist/style.css +0 -1
- package/plugins.js +0 -17
- package/postcss.config.js +0 -1
- package/src/components/BaseAutocomplete/BaseAutocomplete.spec.js +0 -506
- package/src/components/BaseAutocomplete/BaseAutocomplete.stories.js +0 -184
- package/src/components/BaseAutocomplete/BaseAutocomplete.vue +0 -431
- package/src/components/BaseBanner/BaseBanner.spec.js +0 -32
- package/src/components/BaseBanner/BaseBanner.stories.js +0 -133
- package/src/components/BaseBanner/BaseBanner.vue +0 -229
- package/src/components/BaseButton/BaseButton.spec.js +0 -98
- package/src/components/BaseButton/BaseButton.stories.js +0 -300
- package/src/components/BaseButton/BaseButton.vue +0 -193
- package/src/components/BaseButton/__snapshots__/BaseButton.spec.js.snap +0 -37
- package/src/components/BaseButton/__snapshots__/BaseButton.spec.js.snap.old +0 -31
- package/src/components/BaseCheckbox/BaseCheckbox.stories.js +0 -157
- package/src/components/BaseCheckbox/BaseCheckbox.vue +0 -180
- package/src/components/BaseDropdownMenu/BaseDropdownMenu.stories.js +0 -84
- package/src/components/BaseDropdownMenu/BaseDropdownMenu.vue +0 -251
- package/src/components/BaseDropdownMenu/BaseDropdownMenuButton.vue +0 -26
- package/src/components/BaseDropdownMenu/BaseDropdownMenuDivider.vue +0 -10
- package/src/components/BaseDropdownMenu/BaseDropdownMenuItem.vue +0 -206
- package/src/components/BaseDropdownMenu/BaseDropdownMenuSearch.vue +0 -49
- package/src/components/BaseDropdownMenu/BaseDropdownMenuTitle.vue +0 -26
- package/src/components/BaseModal/BaseModal.stories.js +0 -155
- package/src/components/BaseModal/BaseModal.vue +0 -187
- package/src/components/BaseModal/BaseModalContent.vue +0 -166
- package/src/components/BaseModal/BaseModalContentOld.vue +0 -242
- package/src/components/BaseRadio/BaseRadio.stories.js +0 -164
- package/src/components/BaseRadio/BaseRadio.vue +0 -153
- package/src/components/BaseRating/BaseRating.spec.js +0 -46
- package/src/components/BaseRating/BaseRating.stories.js +0 -46
- package/src/components/BaseRating/BaseRating.vue +0 -119
- package/src/components/BaseSelect/BaseSelect.stories.js +0 -177
- package/src/components/BaseSelect/BaseSelect.vue +0 -443
- package/src/components/BaseSelect/BaseSelectGroup.vue +0 -34
- package/src/components/BaseSelect/BaseSelectOption.vue +0 -219
- package/src/components/BaseSwitch/BaseSwitch.stories.js +0 -44
- package/src/components/BaseSwitch/BaseSwitch.vue +0 -114
- package/src/components/BaseTag/BaseTag.stories.js +0 -123
- package/src/components/BaseTag/BaseTag.vue +0 -244
- package/src/css/button.postcss +0 -363
- package/src/css/checkbox-radio.postcss +0 -188
- package/src/css/icon.postcss +0 -9
- package/src/css/loader.postcss +0 -120
- package/src/css/popper.postcss +0 -161
- package/src/css/tailwind-utilities.postcss +0 -1
- package/src/css/tailwind.postcss +0 -2
- package/style-postcss.d.ts +0 -3
- package/style-postcss.js +0 -2
- package/tailwind.config.base.cjs +0 -88
- package/tailwind.config.js +0 -9
- package/tsconfig.check.json +0 -13
- package/tsconfig.json +0 -66
- package/vite.config.js +0 -43
- package/vitest.setup.js +0 -26
package/dist/components.mjs
CHANGED
|
@@ -1,1672 +1,224 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
type: String,
|
|
57
|
-
default: ""
|
|
58
|
-
},
|
|
59
|
-
/** Prevent click events propagation on the trigger */
|
|
60
|
-
blockClick: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !1
|
|
63
|
-
},
|
|
64
|
-
scrollable: {
|
|
65
|
-
type: Boolean,
|
|
66
|
-
default: !1
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
emits: ["search:enter", "update:search"],
|
|
70
|
-
setup(e, { expose: l, emit: t }) {
|
|
71
|
-
const o = e;
|
|
72
|
-
F("BaseDropdown", { close: d });
|
|
73
|
-
function d() {
|
|
74
|
-
c.value.hide();
|
|
75
|
-
}
|
|
76
|
-
l({
|
|
77
|
-
hide: d
|
|
78
|
-
});
|
|
79
|
-
const n = A(), f = y(() => n.header ? n.header() : null), r = y(() => n.footer ? n.footer() : null), _ = y(() => o.searchEnabled && o.searchPosition === "top"), p = y(() => o.searchEnabled && o.searchPosition === "bottom"), a = K(), c = x(), h = x();
|
|
80
|
-
E(
|
|
81
|
-
() => h.value,
|
|
82
|
-
(b) => {
|
|
83
|
-
t("update:search", b);
|
|
84
|
-
}
|
|
85
|
-
), F("BaseDropdown.search", h);
|
|
86
|
-
function w(b) {
|
|
87
|
-
b.stopPropagation(), b.preventDefault();
|
|
88
|
-
}
|
|
89
|
-
function T() {
|
|
90
|
-
c.value.$refs.popper.$refs.reference.addEventListener("click", w);
|
|
91
|
-
}
|
|
92
|
-
function I() {
|
|
93
|
-
c.value.$refs.popper.$refs.reference.removeEventListener("click", w);
|
|
94
|
-
}
|
|
95
|
-
E(
|
|
96
|
-
() => o.blockClick,
|
|
97
|
-
(b, k) => {
|
|
98
|
-
b !== k && (b ? T() : I());
|
|
99
|
-
}
|
|
100
|
-
), Te(() => {
|
|
101
|
-
o.blockClick && T();
|
|
102
|
-
}), re(() => {
|
|
103
|
-
I();
|
|
104
|
-
});
|
|
105
|
-
const O = x();
|
|
106
|
-
function z() {
|
|
107
|
-
o.searchEnabled && !a && O.value.focusSearch();
|
|
108
|
-
}
|
|
109
|
-
return (b, k) => {
|
|
110
|
-
const M = S("RenderSlot"), N = S("BaseDropdownMenuSearch"), Oe = S("BaseButton"), xe = S("VDropdown");
|
|
111
|
-
return s(), $(xe, {
|
|
112
|
-
ref_key: "popover",
|
|
113
|
-
ref: c,
|
|
114
|
-
class: "base-dropdown-menu",
|
|
115
|
-
"popper-class": "no-padding",
|
|
116
|
-
onApplyShow: k[6] || (k[6] = (P) => z())
|
|
117
|
-
}, {
|
|
118
|
-
default: B(() => [
|
|
119
|
-
g(b.$slots, "default", Z(ee(o)), () => [
|
|
120
|
-
v("div", Ge, [
|
|
121
|
-
v("div", {
|
|
122
|
-
class: u([e.icon, "icon w-4 h-4 text-grey-700 hover:text-grey-900"])
|
|
123
|
-
}, null, 2)
|
|
124
|
-
])
|
|
125
|
-
], !0)
|
|
126
|
-
]),
|
|
127
|
-
popper: B(() => [
|
|
128
|
-
v("div", {
|
|
129
|
-
class: u(["max-w-inherit max-h-inherit text-grey-900 [&_a:not(.base-button)]:text-grey-900", [
|
|
130
|
-
{
|
|
131
|
-
"bg-white rounded-8": D(K)
|
|
132
|
-
},
|
|
133
|
-
f.value || _.value ? "pt-2" : "pt-1",
|
|
134
|
-
r.value || p.value ? "pb-2" : "pb-1",
|
|
135
|
-
e.containerClass
|
|
136
|
-
]]),
|
|
137
|
-
"data-testid": "popper",
|
|
138
|
-
onClick: k[4] || (k[4] = U(() => {
|
|
139
|
-
}, ["stop"]))
|
|
140
|
-
}, [
|
|
141
|
-
f.value || _.value ? (s(), i("div", Ue, [
|
|
142
|
-
f.value ? (s(), i("div", Ne, [
|
|
143
|
-
C(M, { vnodes: f.value }, null, 8, ["vnodes"])
|
|
144
|
-
])) : _.value ? (s(), i("div", Fe, [
|
|
145
|
-
C(N, {
|
|
146
|
-
ref_key: "searchInput",
|
|
147
|
-
ref: O,
|
|
148
|
-
class: "sticky-header bg-white",
|
|
149
|
-
"padding-item": "px-2 pb-2",
|
|
150
|
-
throttle: e.searchThrottle,
|
|
151
|
-
placeholder: e.searchPlaceholder,
|
|
152
|
-
"onUpdate:search": k[0] || (k[0] = (P) => h.value = P),
|
|
153
|
-
"onSearch:enter": k[1] || (k[1] = (P) => b.$emit("search:enter", h.value))
|
|
154
|
-
}, null, 8, ["throttle", "placeholder"]),
|
|
155
|
-
g(b.$slots, "header-with-search-additional-block", {}, void 0, !0)
|
|
156
|
-
])) : m("", !0)
|
|
157
|
-
])) : m("", !0),
|
|
158
|
-
v("div", {
|
|
159
|
-
ref: "list",
|
|
160
|
-
class: u(["menu-items max-w-inherit overflow-y-auto", {
|
|
161
|
-
"max-h-[268px]": e.scrollable || D(a)
|
|
162
|
-
}])
|
|
163
|
-
}, [
|
|
164
|
-
g(b.$slots, "popper", Z(ee({ ...o, search: h.value })), void 0, !0)
|
|
165
|
-
], 2),
|
|
166
|
-
r.value || p.value ? (s(), i("div", qe, [
|
|
167
|
-
r.value ? (s(), i("div", Ke, [
|
|
168
|
-
C(M, { vnodes: r.value }, null, 8, ["vnodes"])
|
|
169
|
-
])) : p.value ? (s(), i("div", We, [
|
|
170
|
-
g(b.$slots, "header-with-search-additional-block", {}, void 0, !0),
|
|
171
|
-
C(N, {
|
|
172
|
-
ref_key: "searchInput",
|
|
173
|
-
ref: O,
|
|
174
|
-
class: "sticky-footer bg-white",
|
|
175
|
-
"padding-item": "px-2 pt-2",
|
|
176
|
-
throttle: e.searchThrottle,
|
|
177
|
-
placeholder: e.searchPlaceholder,
|
|
178
|
-
"onUpdate:search": k[2] || (k[2] = (P) => h.value = P),
|
|
179
|
-
"onSearch:enter": k[3] || (k[3] = (P) => b.$emit("search:enter", h.value))
|
|
180
|
-
}, null, 8, ["throttle", "placeholder"])
|
|
181
|
-
])) : m("", !0)
|
|
182
|
-
])) : m("", !0)
|
|
183
|
-
], 2),
|
|
184
|
-
D(a) ? (s(), i("div", Je, [
|
|
185
|
-
C(Oe, {
|
|
186
|
-
class: "base-button-alpha-white w-full",
|
|
187
|
-
onClick: k[5] || (k[5] = (P) => d())
|
|
188
|
-
}, {
|
|
189
|
-
default: B(() => [
|
|
190
|
-
G(j(b.i18n.t("general_text_cancel")), 1)
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
})
|
|
194
|
-
])) : m("", !0)
|
|
195
|
-
]),
|
|
196
|
-
_: 3
|
|
197
|
-
}, 512);
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
}, Xe = /* @__PURE__ */ L(Qe, [["__scopeId", "data-v-ec1adfdc"]]), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1
|
+
import { _ as xe, a as he, b as ke, c as Ge, d as He, e as Re, f as Ee, I as We, g as Ne, h as qe, i as Ke, j as Qe, k as Ve, l as Xe, X as Ye, $ as Ze, Z as Je, t as eo, x as oo, u as to, v as no, w as _o, n as io, z as ro, m as co, o as lo, p as so, r as ao, s as uo, y as po, A as mo, D as vo, F as bo, G as Uo, K as go, L as fo, M as So, N as To, O as yo, P as jo, Q as Oo, R as Mo, S as Po, T as zo, V as $o, W as Bo, Y as Do, a2 as Co, a5 as Io, a4 as Lo, a7 as Ao, a8 as wo, aa as Fo, ab as xo, ae as ho, ag as ko, ah as Go, ai as Ho, aj as Ro, ak as Eo, an as Wo, ao as No, ap as r, aq as c, ar as l, as as s, at as a, au as u, av as p, aw as m, ax as v, ay as b, az as U, aA as g, aB as d, aC as f, aD as S, aE as T, aF as y } from "./UiTimelineItem.vue_vue_type_style_index_0_lang-BN5208td.mjs";
|
|
2
|
+
import { b as qo, c as Ko, a as Qo, _ as Vo } from "./a11y--y7uaY4j.mjs";
|
|
3
|
+
import { RenderSlot as j } from "./slot.mjs";
|
|
4
|
+
const O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5
|
+
__proto__: null,
|
|
6
|
+
default: xe
|
|
7
|
+
}, Symbol.toStringTag, { value: "Module" })), M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8
|
+
__proto__: null,
|
|
9
|
+
default: he
|
|
10
|
+
}, Symbol.toStringTag, { value: "Module" })), P = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
11
|
+
__proto__: null,
|
|
12
|
+
default: ke
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
14
|
+
__proto__: null,
|
|
15
|
+
default: Ge
|
|
16
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
17
|
+
__proto__: null,
|
|
18
|
+
default: He
|
|
19
|
+
}, Symbol.toStringTag, { value: "Module" })), B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
20
|
+
__proto__: null,
|
|
21
|
+
default: Re
|
|
22
|
+
}, Symbol.toStringTag, { value: "Module" })), D = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
23
|
+
__proto__: null,
|
|
24
|
+
default: Ee
|
|
25
|
+
}, Symbol.toStringTag, { value: "Module" })), C = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
26
|
+
__proto__: null,
|
|
27
|
+
default: We
|
|
28
|
+
}, Symbol.toStringTag, { value: "Module" })), I = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
29
|
+
__proto__: null,
|
|
30
|
+
default: qo
|
|
31
|
+
}, Symbol.toStringTag, { value: "Module" })), L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
32
|
+
__proto__: null,
|
|
33
|
+
default: Ko
|
|
34
|
+
}, Symbol.toStringTag, { value: "Module" })), A = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
35
|
+
__proto__: null,
|
|
36
|
+
default: Qo
|
|
37
|
+
}, Symbol.toStringTag, { value: "Module" })), w = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
38
|
+
__proto__: null,
|
|
39
|
+
default: Vo
|
|
40
|
+
}, Symbol.toStringTag, { value: "Module" })), F = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41
|
+
__proto__: null,
|
|
42
|
+
default: Ne
|
|
43
|
+
}, Symbol.toStringTag, { value: "Module" })), x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44
|
+
__proto__: null,
|
|
45
|
+
default: qe
|
|
46
|
+
}, Symbol.toStringTag, { value: "Module" })), h = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
47
|
+
__proto__: null,
|
|
48
|
+
default: Ke
|
|
49
|
+
}, Symbol.toStringTag, { value: "Module" })), k = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
50
|
+
__proto__: null,
|
|
51
|
+
default: Qe
|
|
52
|
+
}, Symbol.toStringTag, { value: "Module" })), G = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
53
|
+
__proto__: null,
|
|
54
|
+
default: Ve
|
|
55
|
+
}, Symbol.toStringTag, { value: "Module" })), H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
201
56
|
__proto__: null,
|
|
202
57
|
default: Xe
|
|
203
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
__name: "BaseDropdownMenuButton",
|
|
208
|
-
emits: ["click"],
|
|
209
|
-
setup(e) {
|
|
210
|
-
return (l, t) => {
|
|
211
|
-
const o = S("BaseButton"), d = S("BaseDropdownMenuItem");
|
|
212
|
-
return s(), $(d, {
|
|
213
|
-
tag: "div",
|
|
214
|
-
"has-hover-effect": !1,
|
|
215
|
-
"keep-open": "",
|
|
216
|
-
"padding-item": "px-2"
|
|
217
|
-
}, {
|
|
218
|
-
default: B(() => [
|
|
219
|
-
C(o, W(l.$attrs, {
|
|
220
|
-
class: "w-full",
|
|
221
|
-
onClick: t[0] || (t[0] = (n) => l.$emit("click"))
|
|
222
|
-
}), {
|
|
223
|
-
default: B(() => [
|
|
224
|
-
g(l.$slots, "default")
|
|
225
|
-
]),
|
|
226
|
-
_: 3
|
|
227
|
-
}, 16)
|
|
228
|
-
]),
|
|
229
|
-
_: 3
|
|
230
|
-
});
|
|
231
|
-
};
|
|
232
|
-
}
|
|
233
|
-
}), he = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
58
|
+
}, Symbol.toStringTag, { value: "Module" })), R = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
59
|
+
__proto__: null,
|
|
60
|
+
default: Ye
|
|
61
|
+
}, Symbol.toStringTag, { value: "Module" })), E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
234
62
|
__proto__: null,
|
|
235
63
|
default: Ze
|
|
236
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
__proto__: null,
|
|
253
|
-
default:
|
|
254
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
v("div", null, [
|
|
382
|
-
v("div", {
|
|
383
|
-
class: u([[
|
|
384
|
-
e.labelClass
|
|
385
|
-
], "text-14-medium text-left"])
|
|
386
|
-
}, [
|
|
387
|
-
g(p.$slots, "label-override", {}, () => [
|
|
388
|
-
R(v("div", {
|
|
389
|
-
class: "no-info",
|
|
390
|
-
innerHTML: e.label
|
|
391
|
-
}, null, 8, it), [
|
|
392
|
-
[h, e.labelTooltip]
|
|
393
|
-
])
|
|
394
|
-
])
|
|
395
|
-
], 2),
|
|
396
|
-
R((s(), i("div", {
|
|
397
|
-
class: u([e.secondaryLabelClass, "text-14-regular text-grey-600 text-left no-info"])
|
|
398
|
-
}, [
|
|
399
|
-
G(j(e.secondaryLabel), 1)
|
|
400
|
-
], 2)), [
|
|
401
|
-
[h, e.secondaryLabelTooltip]
|
|
402
|
-
])
|
|
403
|
-
])
|
|
404
|
-
]),
|
|
405
|
-
v("div", dt, [
|
|
406
|
-
e.additionalInfo ? (s(), i("div", rt, j(e.additionalInfo), 1)) : m("", !0),
|
|
407
|
-
e.secondaryIcon ? (s(), i("div", {
|
|
408
|
-
key: 1,
|
|
409
|
-
class: u([e.secondaryIcon, "icon icon-right w-4 h-4 text-grey-600"])
|
|
410
|
-
}, null, 2)) : m("", !0),
|
|
411
|
-
g(p.$slots, "additional-right-part")
|
|
412
|
-
])
|
|
413
|
-
])
|
|
414
|
-
], 2)
|
|
415
|
-
]),
|
|
416
|
-
_: 3
|
|
417
|
-
}, 16, ["disabled", "class"])), [
|
|
418
|
-
[h, e.tooltip]
|
|
419
|
-
]);
|
|
420
|
-
};
|
|
421
|
-
}
|
|
422
|
-
}), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
423
|
-
__proto__: null,
|
|
424
|
-
default: ut
|
|
425
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
426
|
-
let q;
|
|
427
|
-
function ft(e) {
|
|
428
|
-
if (e)
|
|
429
|
-
if (clearTimeout(q), e.focus(), "activeElement" in document) {
|
|
430
|
-
const l = setInterval(() => {
|
|
431
|
-
e.focus(), document.activeElement === e && (clearInterval(l), clearTimeout(q), q = setTimeout(() => {
|
|
432
|
-
document.activeElement !== e && focus(e);
|
|
433
|
-
}, 100));
|
|
434
|
-
}, 100);
|
|
435
|
-
} else
|
|
436
|
-
setTimeout(() => {
|
|
437
|
-
e.focus();
|
|
438
|
-
}, 1e3);
|
|
439
|
-
}
|
|
440
|
-
const pt = /* @__PURE__ */ H({
|
|
441
|
-
__name: "BaseDropdownMenuSearch",
|
|
442
|
-
props: {
|
|
443
|
-
paddingItem: {
|
|
444
|
-
type: String,
|
|
445
|
-
default: "px-2"
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
emits: ["update:search", "search:enter"],
|
|
449
|
-
setup(e, { expose: l, emit: t }) {
|
|
450
|
-
const o = x();
|
|
451
|
-
function d() {
|
|
452
|
-
ft(o.value);
|
|
453
|
-
}
|
|
454
|
-
l({
|
|
455
|
-
focusSearch: d
|
|
456
|
-
});
|
|
457
|
-
const n = x();
|
|
458
|
-
return E(
|
|
459
|
-
() => n.value,
|
|
460
|
-
(f) => {
|
|
461
|
-
t("update:search", f);
|
|
462
|
-
}
|
|
463
|
-
), (f, r) => {
|
|
464
|
-
const _ = S("BaseSearchInput"), p = S("BaseDropdownMenuItem");
|
|
465
|
-
return s(), $(p, {
|
|
466
|
-
tag: "div",
|
|
467
|
-
"keep-open": "",
|
|
468
|
-
"padding-item": e.paddingItem,
|
|
469
|
-
"has-hover-effect": !1
|
|
470
|
-
}, {
|
|
471
|
-
default: B(() => [
|
|
472
|
-
C(_, W({
|
|
473
|
-
ref_key: "searchInput",
|
|
474
|
-
ref: o
|
|
475
|
-
}, f.$attrs, {
|
|
476
|
-
modelValue: n.value,
|
|
477
|
-
"onUpdate:modelValue": r[0] || (r[0] = (a) => n.value = a),
|
|
478
|
-
modelModifiers: { trim: !0, lazy: !0 },
|
|
479
|
-
"input-class": "base-input-small",
|
|
480
|
-
class: "w-full",
|
|
481
|
-
onKeyup: r[1] || (r[1] = ce((a) => t("search:enter"), ["enter"]))
|
|
482
|
-
}), null, 16, ["modelValue"])
|
|
483
|
-
]),
|
|
484
|
-
_: 1
|
|
485
|
-
}, 8, ["padding-item"]);
|
|
486
|
-
};
|
|
487
|
-
}
|
|
488
|
-
}), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
489
|
-
__proto__: null,
|
|
490
|
-
default: pt
|
|
491
|
-
}, Symbol.toStringTag, { value: "Module" })), ht = { class: "text-12-medium text-grey-600 flex justify-between items-center w-full" }, mt = /* @__PURE__ */ H({
|
|
492
|
-
__name: "BaseDropdownMenuTitle",
|
|
493
|
-
props: {
|
|
494
|
-
title: {
|
|
495
|
-
type: String,
|
|
496
|
-
required: !0
|
|
497
|
-
},
|
|
498
|
-
paddingItem: {
|
|
499
|
-
type: String,
|
|
500
|
-
default: "px-4 pt-2 pb-1"
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
setup(e) {
|
|
504
|
-
return (l, t) => {
|
|
505
|
-
const o = S("BaseDropdownMenuItem");
|
|
506
|
-
return s(), $(o, {
|
|
507
|
-
tag: "h3",
|
|
508
|
-
"padding-item": e.paddingItem,
|
|
509
|
-
"keep-open": "",
|
|
510
|
-
"has-hover-effect": !1
|
|
511
|
-
}, {
|
|
512
|
-
default: B(() => [
|
|
513
|
-
v("div", ht, [
|
|
514
|
-
v("span", null, j(e.title), 1),
|
|
515
|
-
g(l.$slots, "additional-info")
|
|
516
|
-
])
|
|
517
|
-
]),
|
|
518
|
-
_: 3
|
|
519
|
-
}, 8, ["padding-item"]);
|
|
520
|
-
};
|
|
521
|
-
}
|
|
522
|
-
}), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
523
|
-
__proto__: null,
|
|
524
|
-
default: mt
|
|
525
|
-
}, Symbol.toStringTag, { value: "Module" })), vt = { class: "flex min-h-full items-end justify-center p-2 text-center sm:items-center" }, bt = { class: "flex justify-between" }, _t = {
|
|
526
|
-
key: 0,
|
|
527
|
-
class: "flex items-center px-6 pt-6"
|
|
528
|
-
}, gt = { key: 1 }, yt = {
|
|
529
|
-
key: 0,
|
|
530
|
-
class: "p-6 text-left text-grey-700",
|
|
531
|
-
"data-testid": "modal-content"
|
|
532
|
-
}, Bt = { class: "flex flex-col-reverse sm:flex-row gap-2.5 w-full justify-end" }, St = /* @__PURE__ */ H({
|
|
533
|
-
__name: "BaseModalContent",
|
|
534
|
-
props: {
|
|
535
|
-
title: {},
|
|
536
|
-
locked: { type: Boolean },
|
|
537
|
-
width: {},
|
|
538
|
-
confirmLabel: {},
|
|
539
|
-
cancelLabel: {},
|
|
540
|
-
confirmLoading: { type: Boolean },
|
|
541
|
-
confirmColor: {},
|
|
542
|
-
confirmHref: {},
|
|
543
|
-
customIcon: {},
|
|
544
|
-
type: {}
|
|
545
|
-
},
|
|
546
|
-
emits: [
|
|
547
|
-
"confirm",
|
|
548
|
-
"cancel",
|
|
549
|
-
"close"
|
|
550
|
-
],
|
|
551
|
-
setup(e, { emit: l }) {
|
|
552
|
-
const t = e, o = V(te);
|
|
553
|
-
if (!o)
|
|
554
|
-
throw new Error("BaseModalContent must be used inside a BaseModal");
|
|
555
|
-
E(() => t.locked, (c) => {
|
|
556
|
-
o.locked = c;
|
|
557
|
-
}, { immediate: !0 });
|
|
558
|
-
const d = V(le);
|
|
559
|
-
function n(c = !0) {
|
|
560
|
-
t.locked || (l("close"), c && d());
|
|
561
|
-
}
|
|
562
|
-
V(oe)(() => {
|
|
563
|
-
n(!1);
|
|
564
|
-
});
|
|
565
|
-
const r = A(), _ = y(() => r.content ? r.content() : []), p = y(() => r["additional-buttons"]()), a = y(() => {
|
|
566
|
-
if (t.customIcon)
|
|
567
|
-
return t.customIcon;
|
|
568
|
-
switch (t.type) {
|
|
569
|
-
case "alert":
|
|
570
|
-
return "i-ls-alert-circle text-red-600";
|
|
571
|
-
case "warning":
|
|
572
|
-
return "i-ls-alert-triangle text-orange-600";
|
|
573
|
-
case "info":
|
|
574
|
-
return "i-ls-info text-livestorm-600";
|
|
575
|
-
case "success":
|
|
576
|
-
return "i-ls-check-circle text-green-600";
|
|
577
|
-
default:
|
|
578
|
-
return;
|
|
579
|
-
}
|
|
580
|
-
});
|
|
581
|
-
return (c, h) => (s(), i("div", vt, [
|
|
582
|
-
v("div", {
|
|
583
|
-
class: "relative bg-white w-full min-w-[320px] max-w-[650px] rounded-8 base-modal-box",
|
|
584
|
-
style: ue({ "max-width": `${c.width}px` }),
|
|
585
|
-
onClick: h[4] || (h[4] = U(() => {
|
|
586
|
-
}, ["stop"]))
|
|
587
|
-
}, [
|
|
588
|
-
v("div", bt, [
|
|
589
|
-
t.title ? (s(), i("div", _t, [
|
|
590
|
-
a.value ? (s(), i("div", {
|
|
591
|
-
key: 0,
|
|
592
|
-
class: u(["w-6 h-6 mr-2 sm:mr-3 shrink-0", a.value])
|
|
593
|
-
}, null, 2)) : m("", !0),
|
|
594
|
-
v("span", {
|
|
595
|
-
"data-testid": "modal-title",
|
|
596
|
-
class: u(["block text-16-semibold text-grey-900 text-left", { "pb-6": !_.value }])
|
|
597
|
-
}, j(t.title), 3)
|
|
598
|
-
])) : (s(), i("span", gt)),
|
|
599
|
-
c.locked ? m("", !0) : (s(), i("div", {
|
|
600
|
-
key: 2,
|
|
601
|
-
class: "i-ls-x w-6 h-6 text-grey-700 hover:text-grey-900 cursor-pointer shrink-0 mt-6 mr-6",
|
|
602
|
-
"data-testid": "modal-close-icon",
|
|
603
|
-
tabindex: "0",
|
|
604
|
-
role: "button",
|
|
605
|
-
"aria-label": "close",
|
|
606
|
-
onClick: h[0] || (h[0] = (w) => n()),
|
|
607
|
-
onKeydown: h[1] || (h[1] = ce((w) => n(), ["enter"]))
|
|
608
|
-
}, null, 32))
|
|
609
|
-
]),
|
|
610
|
-
_.value ? (s(), i("div", yt, [
|
|
611
|
-
g(c.$slots, "content", {}, void 0, !0)
|
|
612
|
-
])) : m("", !0),
|
|
613
|
-
c.confirmLabel || c.cancelLabel || p.value ? (s(), i("div", {
|
|
614
|
-
key: 1,
|
|
615
|
-
class: u(["px-6 pb-6 flex flex-row-reverse w-full sm:w-auto", { "pt-6": !t.title && !_.value }])
|
|
616
|
-
}, [
|
|
617
|
-
v("div", Bt, [
|
|
618
|
-
g(c.$slots, "additional-buttons", {}, void 0, !0),
|
|
619
|
-
c.cancelLabel ? (s(), $(Y, {
|
|
620
|
-
key: 0,
|
|
621
|
-
class: "base-button-anti-primary w-full sm:w-auto",
|
|
622
|
-
onClick: h[2] || (h[2] = (w) => c.$emit("cancel"))
|
|
623
|
-
}, {
|
|
624
|
-
default: B(() => [
|
|
625
|
-
G(j(c.cancelLabel), 1)
|
|
626
|
-
]),
|
|
627
|
-
_: 1
|
|
628
|
-
})) : m("", !0),
|
|
629
|
-
c.confirmLabel ? (s(), $(Y, {
|
|
630
|
-
key: 1,
|
|
631
|
-
loading: c.confirmLoading,
|
|
632
|
-
href: c.confirmHref,
|
|
633
|
-
target: c.confirmHref ? "_blank" : null,
|
|
634
|
-
class: u(["w-full sm:w-auto", c.confirmColor ? `base-button-${c.confirmColor}` : "base-button-primary"]),
|
|
635
|
-
onClick: h[3] || (h[3] = (w) => c.$emit("confirm", w))
|
|
636
|
-
}, {
|
|
637
|
-
default: B(() => [
|
|
638
|
-
G(j(c.confirmLabel), 1)
|
|
639
|
-
]),
|
|
640
|
-
_: 1
|
|
641
|
-
}, 8, ["loading", "href", "target", "class"])) : m("", !0)
|
|
642
|
-
])
|
|
643
|
-
], 2)) : m("", !0)
|
|
644
|
-
], 4)
|
|
645
|
-
]));
|
|
646
|
-
}
|
|
647
|
-
});
|
|
648
|
-
const wt = /* @__PURE__ */ L(St, [["__scopeId", "data-v-79ea9dbb"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
649
|
-
__proto__: null,
|
|
650
|
-
default: wt
|
|
651
|
-
}, Symbol.toStringTag, { value: "Module" })), kt = (e) => (Le("data-v-d29a3e6a"), e = e(), ze(), e), Ct = ["data-testid"], Mt = { class: "base-modal-header" }, $t = /* @__PURE__ */ kt(() => /* @__PURE__ */ v("div", { class: "i-ls-x icon" }, null, -1)), It = [
|
|
652
|
-
$t
|
|
653
|
-
], Ot = {
|
|
654
|
-
key: 2,
|
|
655
|
-
class: "subtitle"
|
|
656
|
-
}, xt = {
|
|
657
|
-
key: 0,
|
|
658
|
-
class: "base-modal-content"
|
|
659
|
-
}, Dt = /* @__PURE__ */ H({
|
|
660
|
-
__name: "BaseModalContentOld",
|
|
661
|
-
props: {
|
|
662
|
-
locked: {
|
|
663
|
-
type: Boolean,
|
|
664
|
-
default: !1
|
|
665
|
-
},
|
|
666
|
-
width: {
|
|
667
|
-
type: Number,
|
|
668
|
-
default: null
|
|
669
|
-
},
|
|
670
|
-
// @deprecated
|
|
671
|
-
fullScreen: {
|
|
672
|
-
type: Boolean,
|
|
673
|
-
default: !1
|
|
674
|
-
},
|
|
675
|
-
// @deprecated
|
|
676
|
-
noPadding: {
|
|
677
|
-
type: Boolean,
|
|
678
|
-
default: !1
|
|
679
|
-
},
|
|
680
|
-
dataTestid: {
|
|
681
|
-
type: String,
|
|
682
|
-
default: null
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
emits: [
|
|
686
|
-
"close"
|
|
687
|
-
],
|
|
688
|
-
setup(e, { emit: l }) {
|
|
689
|
-
const t = e, {
|
|
690
|
-
locked: o,
|
|
691
|
-
fullScreen: d,
|
|
692
|
-
width: n,
|
|
693
|
-
noPadding: f
|
|
694
|
-
} = X(t), r = V(te);
|
|
695
|
-
if (!r)
|
|
696
|
-
throw new Error("BaseModalContentOld must be used inside BaseModal");
|
|
697
|
-
E(() => t.locked, (I) => {
|
|
698
|
-
r.locked = I;
|
|
699
|
-
}, { immediate: !0 }), E(() => t.fullScreen, (I) => {
|
|
700
|
-
r.fullScreen = I;
|
|
701
|
-
}, { immediate: !0 });
|
|
702
|
-
const _ = V(le);
|
|
703
|
-
function p(I = !0) {
|
|
704
|
-
o.value || (l("close"), I && _());
|
|
705
|
-
}
|
|
706
|
-
V(oe)(() => {
|
|
707
|
-
p(!1);
|
|
708
|
-
});
|
|
709
|
-
const c = A(), h = y(() => c.title()), w = y(() => c.subtitle()), T = y(() => c.content());
|
|
710
|
-
return (I, O) => {
|
|
711
|
-
const z = S("RenderSlot");
|
|
712
|
-
return s(), i("div", {
|
|
713
|
-
class: u([{
|
|
714
|
-
"has-header": h.value || w.value,
|
|
715
|
-
"has-title": h.value,
|
|
716
|
-
"has-subtitle": w.value,
|
|
717
|
-
"has-content": T.value
|
|
718
|
-
}, "base-modal-layout"]),
|
|
719
|
-
onClick: O[2] || (O[2] = U(() => {
|
|
720
|
-
}, ["stop"]))
|
|
721
|
-
}, [
|
|
722
|
-
v("section", {
|
|
723
|
-
style: ue({ "max-width": `${D(n)}px` }),
|
|
724
|
-
class: u([[D(f) ? "p-0" : "p-5"], "transition-transform"]),
|
|
725
|
-
"data-testid": e.dataTestid
|
|
726
|
-
}, [
|
|
727
|
-
g(I.$slots, "outside-header", {}, void 0, !0),
|
|
728
|
-
v("div", Mt, [
|
|
729
|
-
!D(o) && !D(d) ? (s(), i("div", {
|
|
730
|
-
key: 0,
|
|
731
|
-
class: "close-button",
|
|
732
|
-
"data-testid": "modal-close-icon",
|
|
733
|
-
onClick: O[0] || (O[0] = (b) => p())
|
|
734
|
-
}, It)) : m("", !0),
|
|
735
|
-
h.value ? (s(), i("div", {
|
|
736
|
-
key: 1,
|
|
737
|
-
class: u(["title text-grey-900", {
|
|
738
|
-
"flex flex-row items-center border-b h-16 border-grey-200 px-6 py-4": D(d)
|
|
739
|
-
}])
|
|
740
|
-
}, [
|
|
741
|
-
D(d) ? (s(), i("div", {
|
|
742
|
-
key: 0,
|
|
743
|
-
class: "i-ls-chevron-left arrow-back cursor-pointer w-6 h-6 mr-2 text-grey-600 hover:text-grey-600",
|
|
744
|
-
onClick: O[1] || (O[1] = (b) => p())
|
|
745
|
-
})) : m("", !0),
|
|
746
|
-
C(z, { vnodes: h.value }, null, 8, ["vnodes"])
|
|
747
|
-
], 2)) : m("", !0),
|
|
748
|
-
w.value ? (s(), i("div", Ot, [
|
|
749
|
-
C(z, { vnodes: w.value }, null, 8, ["vnodes"])
|
|
750
|
-
])) : m("", !0)
|
|
751
|
-
]),
|
|
752
|
-
T.value ? (s(), i("div", xt, [
|
|
753
|
-
C(z, { vnodes: T.value }, null, 8, ["vnodes"])
|
|
754
|
-
])) : m("", !0)
|
|
755
|
-
], 14, Ct)
|
|
756
|
-
], 2);
|
|
757
|
-
};
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
const Vt = /* @__PURE__ */ L(Dt, [["__scopeId", "data-v-d29a3e6a"]]), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
761
|
-
__proto__: null,
|
|
762
|
-
default: Vt
|
|
763
|
-
}, Symbol.toStringTag, { value: "Module" })), Tt = ["id", "checked", "disabled", "value"], jt = ["for"], Lt = {
|
|
764
|
-
key: 1,
|
|
765
|
-
class: "input-custom"
|
|
766
|
-
}, zt = /* @__PURE__ */ v("span", { class: "check-radio" }, null, -1), Pt = [
|
|
767
|
-
zt
|
|
768
|
-
], At = ["innerHTML"], Rt = ["innerHTML"], Et = {
|
|
769
|
-
key: 3,
|
|
770
|
-
class: "input-custom"
|
|
771
|
-
}, Ht = /* @__PURE__ */ v("span", { class: "check-radio" }, null, -1), Gt = [
|
|
772
|
-
Ht
|
|
773
|
-
];
|
|
774
|
-
let Ut = 0;
|
|
775
|
-
const Nt = /* @__PURE__ */ H({
|
|
776
|
-
__name: "BaseRadio",
|
|
777
|
-
props: {
|
|
778
|
-
modelValue: { default: null },
|
|
779
|
-
value: {},
|
|
780
|
-
label: { default: void 0 },
|
|
781
|
-
labelContainerClass: { default: void 0 },
|
|
782
|
-
labelClass: { default: void 0 },
|
|
783
|
-
description: { default: void 0 },
|
|
784
|
-
forId: { default: void 0 },
|
|
785
|
-
required: { type: Boolean, default: !1 },
|
|
786
|
-
disabled: { type: Boolean, default: !1 },
|
|
787
|
-
tooltip: { default: void 0 },
|
|
788
|
-
orientation: { default: "horizontal" }
|
|
789
|
-
},
|
|
790
|
-
emits: ["change", "update:modelValue", "tooltip-clicked"],
|
|
791
|
-
setup(e, { emit: l }) {
|
|
792
|
-
const t = e, o = V("BaseFormInputInjection", void 0), d = A(), n = y(() => d.icon ? d.icon() : null), f = y(() => {
|
|
793
|
-
var a;
|
|
794
|
-
return (a = o == null ? void 0 : o.childConfig) == null ? void 0 : a.value;
|
|
795
|
-
}), r = y(() => o ? f.value === t.value : t.modelValue === t.value);
|
|
796
|
-
function _() {
|
|
797
|
-
if (!o)
|
|
798
|
-
return l("update:modelValue", t.value), l("change", t.value), !1;
|
|
799
|
-
o.setInputModel(t.value);
|
|
800
|
-
}
|
|
801
|
-
const p = x();
|
|
802
|
-
return p.value = `BaseRadio:${Ut++}`, (a, c) => {
|
|
803
|
-
const h = S("RenderSlot"), w = J("tooltip");
|
|
804
|
-
return s(), i("div", {
|
|
805
|
-
class: u(["base-radio", {
|
|
806
|
-
"base-radio-disabled": a.disabled,
|
|
807
|
-
"with-description": a.description
|
|
808
|
-
}])
|
|
809
|
-
}, [
|
|
810
|
-
v("input", {
|
|
811
|
-
id: a.forId || p.value,
|
|
812
|
-
checked: r.value,
|
|
813
|
-
disabled: a.disabled,
|
|
814
|
-
value: a.value,
|
|
815
|
-
type: "radio",
|
|
816
|
-
onChange: _
|
|
817
|
-
}, null, 40, Tt),
|
|
818
|
-
v("label", {
|
|
819
|
-
for: a.forId || p.value,
|
|
820
|
-
class: u({
|
|
821
|
-
"label-disabled": a.disabled,
|
|
822
|
-
"flex flex-col vertical-padding-large": a.orientation === "vertical",
|
|
823
|
-
"vertical-padding": a.description && a.orientation === "horizontal"
|
|
824
|
-
})
|
|
825
|
-
}, [
|
|
826
|
-
n.value ? (s(), i("div", {
|
|
827
|
-
key: 0,
|
|
828
|
-
class: u(["w-4 h-4 icon flex items-center justify-center", [a.orientation === "vertical" ? "mb-2" : "mr-2"]])
|
|
829
|
-
}, [
|
|
830
|
-
C(h, { vnodes: n.value }, null, 8, ["vnodes"])
|
|
831
|
-
], 2)) : m("", !0),
|
|
832
|
-
a.orientation === "horizontal" ? (s(), i("span", Lt, Pt)) : m("", !0),
|
|
833
|
-
a.label ? (s(), i("span", {
|
|
834
|
-
key: 2,
|
|
835
|
-
class: u(["label-custom", {
|
|
836
|
-
"mb-2 !ml-0 text-center": a.orientation === "vertical"
|
|
837
|
-
}])
|
|
838
|
-
}, [
|
|
839
|
-
v("span", {
|
|
840
|
-
class: u(["text-grey-700 label", [
|
|
841
|
-
a.labelClass
|
|
842
|
-
]]),
|
|
843
|
-
innerHTML: a.required ? `${a.label} *` : a.label
|
|
844
|
-
}, null, 10, At),
|
|
845
|
-
a.tooltip ? R((s(), i("span", {
|
|
846
|
-
key: 0,
|
|
847
|
-
onClick: c[0] || (c[0] = U((T) => a.$emit("tooltip-clicked"), ["stop", "prevent"]))
|
|
848
|
-
}, null, 512)), [
|
|
849
|
-
[w, a.tooltip]
|
|
850
|
-
]) : m("", !0),
|
|
851
|
-
a.description ? (s(), i("span", {
|
|
852
|
-
key: 1,
|
|
853
|
-
class: u(["description text-grey-600 block", {
|
|
854
|
-
"text-center": a.orientation === "vertical"
|
|
855
|
-
}]),
|
|
856
|
-
innerHTML: a.description
|
|
857
|
-
}, null, 10, Rt)) : m("", !0)
|
|
858
|
-
], 2)) : m("", !0),
|
|
859
|
-
a.orientation === "vertical" ? (s(), i("span", Et, Gt)) : m("", !0),
|
|
860
|
-
g(a.$slots, "incentive")
|
|
861
|
-
], 10, jt)
|
|
862
|
-
], 2);
|
|
863
|
-
};
|
|
864
|
-
}
|
|
865
|
-
}), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
866
|
-
__proto__: null,
|
|
867
|
-
default: Nt
|
|
868
|
-
}, Symbol.toStringTag, { value: "Module" })), Ft = ["onMouseenter"], qt = ["for"], Kt = ["fill-color"], Wt = ["id", "name", "value", "readonly", "onClick"], Jt = {
|
|
869
|
-
__name: "BaseRating",
|
|
870
|
-
props: {
|
|
871
|
-
modelValue: {
|
|
872
|
-
type: Number,
|
|
873
|
-
default: 0
|
|
874
|
-
},
|
|
875
|
-
name: {
|
|
876
|
-
type: String,
|
|
877
|
-
default: null
|
|
878
|
-
},
|
|
879
|
-
length: {
|
|
880
|
-
type: Number,
|
|
881
|
-
validator: (e) => e > 0 && e < 100,
|
|
882
|
-
default: 5
|
|
883
|
-
},
|
|
884
|
-
itemLabels: {
|
|
885
|
-
type: Array,
|
|
886
|
-
default: null
|
|
887
|
-
},
|
|
888
|
-
hover: {
|
|
889
|
-
type: Boolean,
|
|
890
|
-
default: !1
|
|
891
|
-
},
|
|
892
|
-
readonly: {
|
|
893
|
-
type: Boolean,
|
|
894
|
-
default: !1
|
|
895
|
-
},
|
|
896
|
-
itemLabelClass: {
|
|
897
|
-
type: String,
|
|
898
|
-
default: null
|
|
899
|
-
}
|
|
900
|
-
},
|
|
901
|
-
emits: ["update:modelValue"],
|
|
902
|
-
setup(e, { emit: l }) {
|
|
903
|
-
const t = e, { hover: o, modelValue: d, itemLabels: n, name: f, readonly: r } = X(t), _ = He(), p = x(d.value), a = x(0), c = x(!1), h = y(() => f.value ?? `base-rating-${_}`);
|
|
904
|
-
function w(b) {
|
|
905
|
-
return o.value && c.value ? b <= a.value : b <= p.value;
|
|
906
|
-
}
|
|
907
|
-
function T(b) {
|
|
908
|
-
var k;
|
|
909
|
-
return (k = n.value) == null ? void 0 : k[b - 1];
|
|
910
|
-
}
|
|
911
|
-
function I(b) {
|
|
912
|
-
r.value || (p.value = b, c.value = !1, l("update:modelValue", p.value));
|
|
913
|
-
}
|
|
914
|
-
function O(b) {
|
|
915
|
-
a.value = b, c.value = !0;
|
|
916
|
-
}
|
|
917
|
-
function z(b) {
|
|
918
|
-
c.value = !1;
|
|
919
|
-
}
|
|
920
|
-
return (b, k) => (s(), i("div", {
|
|
921
|
-
class: "base-rating flex gap-3",
|
|
922
|
-
onMouseleave: z
|
|
923
|
-
}, [
|
|
924
|
-
(s(!0), i(Q, null, Pe(e.length, (M) => (s(), i("div", {
|
|
925
|
-
key: `${h.value}-${M}`,
|
|
926
|
-
class: u(["item", {
|
|
927
|
-
active: w(M),
|
|
928
|
-
"pointer-events-none": D(r)
|
|
929
|
-
}]),
|
|
930
|
-
"data-testid": "base-rating-item",
|
|
931
|
-
onMouseenter: (N) => O(M)
|
|
932
|
-
}, [
|
|
933
|
-
v("label", {
|
|
934
|
-
for: `${h.value}-${M}`,
|
|
935
|
-
class: "flex flex-col items-center h-full cursor-pointer"
|
|
936
|
-
}, [
|
|
937
|
-
v("div", {
|
|
938
|
-
"data-testid": "base-rating-star-icon",
|
|
939
|
-
class: u(["i-ls-star-fill w-8 h-8", [w(M) ? "text-livestorm-700" : "text-grey-300"]]),
|
|
940
|
-
"fill-color": w(M) ? "currentColor" : null
|
|
941
|
-
}, null, 10, Kt),
|
|
942
|
-
T(M) ? (s(), i("span", {
|
|
943
|
-
key: 0,
|
|
944
|
-
class: u(["flex-1 flex items-center justify-center min-w-[52px] text-11-regular text-center text-grey-700 mt-2", e.itemLabelClass])
|
|
945
|
-
}, j(T(M)), 3)) : m("", !0)
|
|
946
|
-
], 8, qt),
|
|
947
|
-
v("input", {
|
|
948
|
-
id: `${h.value}-${M}`,
|
|
949
|
-
class: "hidden",
|
|
950
|
-
name: h.value,
|
|
951
|
-
type: "radio",
|
|
952
|
-
value: M,
|
|
953
|
-
readonly: D(r),
|
|
954
|
-
onClick: (N) => I(M)
|
|
955
|
-
}, null, 8, Wt)
|
|
956
|
-
], 42, Ft))), 128))
|
|
957
|
-
], 32));
|
|
958
|
-
}
|
|
959
|
-
}, Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
960
|
-
__proto__: null,
|
|
961
|
-
default: Jt
|
|
962
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
963
|
-
const Qt = {
|
|
964
|
-
provide() {
|
|
965
|
-
return {
|
|
966
|
-
select_onValueChange: this.onValueChange,
|
|
967
|
-
select_childConfig: this.childConfig
|
|
968
|
-
};
|
|
969
|
-
},
|
|
970
|
-
props: {
|
|
971
|
-
buttonClass: {
|
|
972
|
-
type: String,
|
|
973
|
-
default: "base-button-select base-form-style"
|
|
974
|
-
},
|
|
975
|
-
disabled: {
|
|
976
|
-
type: Boolean,
|
|
977
|
-
default: !1
|
|
978
|
-
},
|
|
979
|
-
icon: {
|
|
980
|
-
type: String,
|
|
981
|
-
default: null
|
|
982
|
-
},
|
|
983
|
-
// eslint-disable-next-line vue/require-prop-types
|
|
984
|
-
modelValue: {
|
|
985
|
-
default: null
|
|
986
|
-
},
|
|
987
|
-
label: {
|
|
988
|
-
type: [String, Boolean],
|
|
989
|
-
default: null
|
|
990
|
-
},
|
|
991
|
-
loading: {
|
|
992
|
-
type: Boolean,
|
|
993
|
-
default: !1
|
|
994
|
-
},
|
|
995
|
-
searchEnabled: {
|
|
996
|
-
type: Boolean,
|
|
997
|
-
default: !1
|
|
998
|
-
},
|
|
999
|
-
searchPlaceholder: {
|
|
1000
|
-
type: String,
|
|
1001
|
-
default: null
|
|
1002
|
-
},
|
|
1003
|
-
multi: {
|
|
1004
|
-
type: Boolean,
|
|
1005
|
-
default: !1
|
|
1006
|
-
},
|
|
1007
|
-
values: {
|
|
1008
|
-
type: Array,
|
|
1009
|
-
default: null
|
|
1010
|
-
},
|
|
1011
|
-
// Override
|
|
1012
|
-
popperClass: {
|
|
1013
|
-
type: String,
|
|
1014
|
-
default: null
|
|
1015
|
-
},
|
|
1016
|
-
placeholder: {
|
|
1017
|
-
type: String,
|
|
1018
|
-
default: null
|
|
1019
|
-
},
|
|
1020
|
-
placeholderOne: {
|
|
1021
|
-
type: String,
|
|
1022
|
-
default: null
|
|
1023
|
-
},
|
|
1024
|
-
placeholderMany: {
|
|
1025
|
-
type: [String, Function],
|
|
1026
|
-
default: null
|
|
1027
|
-
},
|
|
1028
|
-
placeholderAll: {
|
|
1029
|
-
type: String,
|
|
1030
|
-
default: null
|
|
1031
|
-
},
|
|
1032
|
-
required: {
|
|
1033
|
-
type: Boolean,
|
|
1034
|
-
default: !1
|
|
1035
|
-
},
|
|
1036
|
-
theme: {
|
|
1037
|
-
type: String,
|
|
1038
|
-
default: "select"
|
|
1039
|
-
},
|
|
1040
|
-
selectAllButtonDisplayed: {
|
|
1041
|
-
type: Boolean,
|
|
1042
|
-
default: !1
|
|
1043
|
-
},
|
|
1044
|
-
scrollable: {
|
|
1045
|
-
type: Boolean,
|
|
1046
|
-
default: !0
|
|
1047
|
-
}
|
|
1048
|
-
},
|
|
1049
|
-
emits: ["input", "change", "update:modelValue"],
|
|
1050
|
-
setup(e) {
|
|
1051
|
-
const { modelValue: l } = X(e);
|
|
1052
|
-
F("BaseSelect.modelValue", l);
|
|
1053
|
-
const t = x([]);
|
|
1054
|
-
F("BaseSelect.childOptions", t);
|
|
1055
|
-
const o = y(() => t.value.find((f) => f.value === e.modelValue)), d = x(""), n = K();
|
|
1056
|
-
return {
|
|
1057
|
-
currentChild: o,
|
|
1058
|
-
childOptions: t,
|
|
1059
|
-
search: d,
|
|
1060
|
-
mobileMode: n
|
|
1061
|
-
};
|
|
1062
|
-
},
|
|
1063
|
-
data() {
|
|
1064
|
-
return {
|
|
1065
|
-
childConfig: {
|
|
1066
|
-
width: 0,
|
|
1067
|
-
multi: this.multi,
|
|
1068
|
-
count: 0
|
|
1069
|
-
}
|
|
1070
|
-
};
|
|
1071
|
-
},
|
|
1072
|
-
computed: {
|
|
1073
|
-
allChildOptionsInModelValue() {
|
|
1074
|
-
return this.childOptions.filter((e) => !this.modelValue.includes(e.value)).length === 0;
|
|
1075
|
-
},
|
|
1076
|
-
selectAllIcon() {
|
|
1077
|
-
return this.allChildOptionsInModelValue ? "i-ls-check" : "i-ls-minus";
|
|
1078
|
-
},
|
|
1079
|
-
selectAll() {
|
|
1080
|
-
var e;
|
|
1081
|
-
return (e = this.modelValue) != null && e.length ? this.childOptions.filter((l) => l.disabled).length === this.modelValue.length && this.allChildOptionsInModelValue ? !0 : !!this.childOptions.filter((l) => !l.disabled).find((l) => this.modelValue.includes(l.value)) : !1;
|
|
1082
|
-
},
|
|
1083
|
-
displayedLabel() {
|
|
1084
|
-
let e, l = !1;
|
|
1085
|
-
return this.label ? e = this.label : !this.multi && this.currentChild ? (e = this.currentChild.label || this.modelValue, l = !0) : this.placeholderOne && this.selectedCount === 1 ? (e = this.placeholderOne, l = !0) : this.multi && this.placeholderAll && this.selectedCount === this.totalCount ? (e = this.placeholderAll, l = !0) : this.placeholderMany && this.selectedCount > 0 ? (typeof this.placeholderMany == "function" ? e = this.placeholderMany(this.selectedCount) : e = `${this.selectedCount} ${this.placeholderMany}`, l = !0) : this.placeholder ? e = this.placeholder : e = this.modelValue, {
|
|
1086
|
-
label: e,
|
|
1087
|
-
hasValue: l
|
|
1088
|
-
};
|
|
1089
|
-
},
|
|
1090
|
-
selectedCount() {
|
|
1091
|
-
if (this.multi && Array.isArray(this.modelValue))
|
|
1092
|
-
return this.modelValue.length;
|
|
1093
|
-
},
|
|
1094
|
-
totalCount() {
|
|
1095
|
-
return this.childConfig.count;
|
|
1096
|
-
},
|
|
1097
|
-
finalLabel() {
|
|
1098
|
-
return this.loading ? "" : this.displayedLabel.label;
|
|
1099
|
-
}
|
|
1100
|
-
},
|
|
1101
|
-
watch: {
|
|
1102
|
-
search(e, l) {
|
|
1103
|
-
this.scrollToSelectedItem();
|
|
1104
|
-
},
|
|
1105
|
-
multi(e) {
|
|
1106
|
-
this.childConfig.multi = e;
|
|
1107
|
-
}
|
|
1108
|
-
},
|
|
1109
|
-
methods: {
|
|
1110
|
-
onToggleSelectAll() {
|
|
1111
|
-
if (this.selectAll)
|
|
1112
|
-
this.$emit("update:modelValue", this.childOptions.filter((e) => e.disabled).map((e) => e.value));
|
|
1113
|
-
else {
|
|
1114
|
-
const e = this.childOptions.filter((l) => l.disabled && this.modelValue.includes(l.value)).map((l) => l.value);
|
|
1115
|
-
this.$emit("update:modelValue", [
|
|
1116
|
-
...e,
|
|
1117
|
-
...this.childOptions.filter((l) => !l.disabled && !l.hidden).map((l) => l.value)
|
|
1118
|
-
]);
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
onValueChange(e) {
|
|
1122
|
-
let l, t = !1;
|
|
1123
|
-
if (this.multi) {
|
|
1124
|
-
l = this.modelValue && this.modelValue.slice() || [];
|
|
1125
|
-
const o = l.indexOf(e);
|
|
1126
|
-
o === -1 ? this.values ? l.splice(this.getValueIndex(l, e), 0, e) : (l.push(e), t = !0) : l.splice(o, 1);
|
|
1127
|
-
} else
|
|
1128
|
-
l = e;
|
|
1129
|
-
this.$emit("update:modelValue", l), this.$emit("change", e, t), this.mobileMode || this.focusSearch();
|
|
1130
|
-
},
|
|
1131
|
-
getValueIndex(e, l) {
|
|
1132
|
-
let o = this.values.indexOf(l), d;
|
|
1133
|
-
for (; o >= 0 && (d = e.indexOf(this.values[o])) === -1; )
|
|
1134
|
-
o--;
|
|
1135
|
-
return d + 1;
|
|
1136
|
-
},
|
|
1137
|
-
onApplyShow() {
|
|
1138
|
-
this.multi || this.scrollToSelectedItem(), this.mobileMode || this.focusSearch();
|
|
1139
|
-
},
|
|
1140
|
-
focusSearch() {
|
|
1141
|
-
var e;
|
|
1142
|
-
(e = this.$refs.dropdown.$refs.searchInput) == null || e.focusSearch();
|
|
1143
|
-
},
|
|
1144
|
-
onShow() {
|
|
1145
|
-
this.$responsive.tablet && !this.$_wasShown && (this.$_documentElementOverflow = document.documentElement.style.overflow, this.$_bodyOverflow = document.body.style.overflow, document.documentElement.style.overflow = "hidden", document.body.style.overflow = "hidden", this.$_wasShown = !0);
|
|
1146
|
-
},
|
|
1147
|
-
onHide() {
|
|
1148
|
-
document.documentElement.style.overflow = this.$_documentElementOverflow, document.body.style.overflow = this.$_bodyOverflow, this.$_wasShown = !1;
|
|
1149
|
-
},
|
|
1150
|
-
async scrollToSelectedItem() {
|
|
1151
|
-
await this.$nextTick();
|
|
1152
|
-
const e = this.$refs.dropdown.$refs.list, l = e.querySelector(".selected");
|
|
1153
|
-
l && (e.scrollTop = l.offsetTop + (l.clientHeight - e.clientHeight) / 2);
|
|
1154
|
-
},
|
|
1155
|
-
selectFirstResult() {
|
|
1156
|
-
if (this.search) {
|
|
1157
|
-
const [e] = this.childOptions.filter((l) => l.matchSearch);
|
|
1158
|
-
e && (this.onValueChange(e.value), this.multi || this.$refs.dropdown.hide());
|
|
1159
|
-
}
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
}, Xt = {
|
|
1163
|
-
ref: "toggle",
|
|
1164
|
-
class: "select-toggle"
|
|
1165
|
-
};
|
|
1166
|
-
function Yt(e, l, t, o, d, n) {
|
|
1167
|
-
const f = S("BaseButton"), r = S("BaseCheckbox"), _ = S("BaseDropdownMenuItem"), p = S("BaseDropdownMenu");
|
|
1168
|
-
return s(), $(p, {
|
|
1169
|
-
ref: "dropdown",
|
|
1170
|
-
theme: t.theme,
|
|
1171
|
-
"popper-class": t.popperClass + " select-popper ios-fix-height",
|
|
1172
|
-
disabled: t.disabled,
|
|
1173
|
-
class: u([{
|
|
1174
|
-
"has-value": n.displayedLabel.hasValue
|
|
1175
|
-
}, "base-select"]),
|
|
1176
|
-
"search-enabled": t.searchEnabled,
|
|
1177
|
-
"search-throttle": 200,
|
|
1178
|
-
"search-placeholder": t.searchPlaceholder || e.i18n.t("general_form_multiselect-search"),
|
|
1179
|
-
scrollable: t.scrollable,
|
|
1180
|
-
onShow: n.onShow,
|
|
1181
|
-
onHide: n.onHide,
|
|
1182
|
-
onApplyShow: n.onApplyShow,
|
|
1183
|
-
"onUpdate:search": l[1] || (l[1] = (a) => o.search = a),
|
|
1184
|
-
"onSearch:enter": l[2] || (l[2] = (a) => n.selectFirstResult(e.hide))
|
|
1185
|
-
}, {
|
|
1186
|
-
default: B(({ shown: a }) => [
|
|
1187
|
-
v("div", Xt, [
|
|
1188
|
-
g(e.$slots, "toggle", {
|
|
1189
|
-
loading: t.loading,
|
|
1190
|
-
value: t.modelValue,
|
|
1191
|
-
label: n.finalLabel,
|
|
1192
|
-
disabled: t.disabled,
|
|
1193
|
-
isShown: a
|
|
1194
|
-
}, () => [
|
|
1195
|
-
C(f, {
|
|
1196
|
-
class: u(["w-full justify-start", [
|
|
1197
|
-
t.buttonClass,
|
|
1198
|
-
{ active: a }
|
|
1199
|
-
]]),
|
|
1200
|
-
disabled: t.disabled,
|
|
1201
|
-
icon: t.icon,
|
|
1202
|
-
"icon-right": "i-ls-chevron-down",
|
|
1203
|
-
loading: t.loading,
|
|
1204
|
-
type: "button"
|
|
1205
|
-
}, {
|
|
1206
|
-
default: B(() => [
|
|
1207
|
-
g(e.$slots, "toggle-button", {
|
|
1208
|
-
loading: t.loading,
|
|
1209
|
-
value: t.modelValue,
|
|
1210
|
-
label: n.finalLabel
|
|
1211
|
-
}, () => [
|
|
1212
|
-
G(j(n.finalLabel), 1)
|
|
1213
|
-
], !0)
|
|
1214
|
-
]),
|
|
1215
|
-
_: 2
|
|
1216
|
-
}, 1032, ["class", "disabled", "icon", "loading"])
|
|
1217
|
-
], !0)
|
|
1218
|
-
], 512)
|
|
1219
|
-
]),
|
|
1220
|
-
header: B(() => [
|
|
1221
|
-
g(e.$slots, "header", {}, void 0, !0)
|
|
1222
|
-
]),
|
|
1223
|
-
"header-with-search-additional-block": B(() => [
|
|
1224
|
-
g(e.$slots, "header-with-search-additional-block", {}, void 0, !0)
|
|
1225
|
-
]),
|
|
1226
|
-
footer: B(() => [
|
|
1227
|
-
g(e.$slots, "footer", {}, void 0, !0)
|
|
1228
|
-
]),
|
|
1229
|
-
popper: B(() => [
|
|
1230
|
-
!o.search && t.multi && o.childOptions.length && t.selectAllButtonDisplayed ? (s(), $(_, {
|
|
1231
|
-
key: 0,
|
|
1232
|
-
label: e.i18n.t(n.selectAll ? "general_form_multiselect-unselect-all" : "general_form_multiselect-select-all"),
|
|
1233
|
-
"keep-open": "",
|
|
1234
|
-
"data-testid": "select-all",
|
|
1235
|
-
"can-click-on-active": "",
|
|
1236
|
-
onClick: l[0] || (l[0] = U((a) => n.onToggleSelectAll(), ["prevent"]))
|
|
1237
|
-
}, {
|
|
1238
|
-
checkbox: B(() => [
|
|
1239
|
-
C(r, {
|
|
1240
|
-
icon: n.selectAllIcon,
|
|
1241
|
-
value: n.selectAll,
|
|
1242
|
-
"for-id": "select-all"
|
|
1243
|
-
}, null, 8, ["icon", "value"])
|
|
1244
|
-
]),
|
|
1245
|
-
_: 1
|
|
1246
|
-
}, 8, ["label"])) : m("", !0),
|
|
1247
|
-
g(e.$slots, "default", {}, void 0, !0)
|
|
1248
|
-
]),
|
|
1249
|
-
_: 3
|
|
1250
|
-
}, 8, ["theme", "popper-class", "disabled", "class", "search-enabled", "search-placeholder", "scrollable", "onShow", "onHide", "onApplyShow"]);
|
|
1251
|
-
}
|
|
1252
|
-
const Zt = /* @__PURE__ */ L(Qt, [["render", Yt], ["__scopeId", "data-v-e636353b"]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1253
|
-
__proto__: null,
|
|
1254
|
-
default: Zt
|
|
1255
|
-
}, Symbol.toStringTag, { value: "Module" })), el = {
|
|
1256
|
-
provide() {
|
|
1257
|
-
return {
|
|
1258
|
-
selectGroup_childConfig: this.childConfig
|
|
1259
|
-
};
|
|
1260
|
-
},
|
|
1261
|
-
props: {
|
|
1262
|
-
title: {
|
|
1263
|
-
type: String,
|
|
1264
|
-
default: null
|
|
1265
|
-
}
|
|
1266
|
-
},
|
|
1267
|
-
data() {
|
|
1268
|
-
return {
|
|
1269
|
-
childConfig: {
|
|
1270
|
-
visible: 0
|
|
1271
|
-
}
|
|
1272
|
-
};
|
|
1273
|
-
}
|
|
1274
|
-
}, tl = { class: "base-select-group" };
|
|
1275
|
-
function ll(e, l, t, o, d, n) {
|
|
1276
|
-
const f = S("BaseDropdownMenuTitle");
|
|
1277
|
-
return s(), i("div", tl, [
|
|
1278
|
-
t.title && d.childConfig.visible ? (s(), $(f, {
|
|
1279
|
-
key: 0,
|
|
1280
|
-
title: t.title
|
|
1281
|
-
}, null, 8, ["title"])) : m("", !0),
|
|
1282
|
-
g(e.$slots, "default")
|
|
1283
|
-
]);
|
|
1284
|
-
}
|
|
1285
|
-
const ol = /* @__PURE__ */ L(el, [["render", ll]]), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1286
|
-
__proto__: null,
|
|
1287
|
-
default: ol
|
|
1288
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1289
|
-
let nl = 0;
|
|
1290
|
-
const sl = {
|
|
1291
|
-
name: "BaseSelectOption",
|
|
1292
|
-
inject: {
|
|
1293
|
-
select_onValueChange: {},
|
|
1294
|
-
select_childConfig: {},
|
|
1295
|
-
selectGroup_childConfig: { default: null }
|
|
1296
|
-
},
|
|
1297
|
-
props: {
|
|
1298
|
-
// eslint-disable-next-line vue/require-prop-types
|
|
1299
|
-
value: {
|
|
1300
|
-
default: null
|
|
1301
|
-
},
|
|
1302
|
-
label: {
|
|
1303
|
-
type: [String, Function],
|
|
1304
|
-
default: ""
|
|
1305
|
-
},
|
|
1306
|
-
hidden: {
|
|
1307
|
-
type: Boolean,
|
|
1308
|
-
default: !1
|
|
1309
|
-
},
|
|
1310
|
-
prevent: {
|
|
1311
|
-
type: Boolean,
|
|
1312
|
-
default: !1
|
|
1313
|
-
},
|
|
1314
|
-
selected: {
|
|
1315
|
-
type: Boolean,
|
|
1316
|
-
default: !1
|
|
1317
|
-
},
|
|
1318
|
-
description: {
|
|
1319
|
-
type: String,
|
|
1320
|
-
default: null
|
|
1321
|
-
},
|
|
1322
|
-
tooltip: {
|
|
1323
|
-
type: [String, Object],
|
|
1324
|
-
default: null
|
|
1325
|
-
},
|
|
1326
|
-
labelClass: {
|
|
1327
|
-
type: String,
|
|
1328
|
-
default: null
|
|
1329
|
-
},
|
|
1330
|
-
descriptionClass: {
|
|
1331
|
-
type: String,
|
|
1332
|
-
default: null
|
|
1333
|
-
},
|
|
1334
|
-
icon: {
|
|
1335
|
-
type: String,
|
|
1336
|
-
default: null
|
|
1337
|
-
},
|
|
1338
|
-
disabled: {
|
|
1339
|
-
type: Boolean,
|
|
1340
|
-
default: !1
|
|
1341
|
-
}
|
|
1342
|
-
},
|
|
1343
|
-
emits: ["click"],
|
|
1344
|
-
setup(e) {
|
|
1345
|
-
const l = V("BaseSelect.modelValue"), t = x(""), o = V("BaseSelect.childOptions"), d = V("BaseDropdown.search"), n = y(() => {
|
|
1346
|
-
if (!d.value)
|
|
1347
|
-
return !0;
|
|
1348
|
-
if (!t.value)
|
|
1349
|
-
return !1;
|
|
1350
|
-
const r = (a) => a.normalize("NFD").replace(/[\u0300-\u036f]/g, ""), _ = r(d.value).replace(/[.*+\-?^${}()|[\]\\]/g, "\\$&");
|
|
1351
|
-
return new RegExp(_, "i").test(r(t.value));
|
|
1352
|
-
}), f = nl++;
|
|
1353
|
-
return o.value.push(Ae({
|
|
1354
|
-
id: f,
|
|
1355
|
-
value: y(() => e.value),
|
|
1356
|
-
label: t,
|
|
1357
|
-
matchSearch: n,
|
|
1358
|
-
disabled: y(() => e.disabled),
|
|
1359
|
-
hidden: y(() => e.hidden)
|
|
1360
|
-
})), re(() => {
|
|
1361
|
-
const r = o.value.findIndex((_) => _.id === f);
|
|
1362
|
-
r !== -1 && o.value.splice(r, 1);
|
|
1363
|
-
}), {
|
|
1364
|
-
finalValue: l,
|
|
1365
|
-
labelContent: t,
|
|
1366
|
-
matchSearch: n
|
|
1367
|
-
};
|
|
1368
|
-
},
|
|
1369
|
-
computed: {
|
|
1370
|
-
finalSelected() {
|
|
1371
|
-
if (this.selected)
|
|
1372
|
-
return this.selected;
|
|
1373
|
-
const e = this.finalValue;
|
|
1374
|
-
return this.multi ? e && e.indexOf(this.value) !== -1 : this.value === e;
|
|
1375
|
-
},
|
|
1376
|
-
cssClass() {
|
|
1377
|
-
return {
|
|
1378
|
-
selected: this.finalSelected,
|
|
1379
|
-
hidden: this.finalHidden
|
|
1380
|
-
};
|
|
1381
|
-
},
|
|
1382
|
-
finalHidden() {
|
|
1383
|
-
return this.hidden || !this.matchSearch;
|
|
1384
|
-
},
|
|
1385
|
-
multi() {
|
|
1386
|
-
return this.select_childConfig.multi;
|
|
1387
|
-
}
|
|
1388
|
-
},
|
|
1389
|
-
watch: {
|
|
1390
|
-
hidden(e) {
|
|
1391
|
-
this.select_childConfig.count += e ? -1 : 1;
|
|
1392
|
-
},
|
|
1393
|
-
finalHidden(e) {
|
|
1394
|
-
this.selectGroup_childConfig && (this.selectGroup_childConfig.visible += e ? -1 : 1);
|
|
1395
|
-
},
|
|
1396
|
-
label: {
|
|
1397
|
-
handler: "updateLabelContent",
|
|
1398
|
-
immediate: !0
|
|
1399
|
-
}
|
|
1400
|
-
},
|
|
1401
|
-
mounted() {
|
|
1402
|
-
this.select_childConfig.count++, this.selectGroup_childConfig && !this.finalHidden && this.selectGroup_childConfig.visible++;
|
|
1403
|
-
},
|
|
1404
|
-
beforeUnmount() {
|
|
1405
|
-
this.select_childConfig.count--, this.selectGroup_childConfig && !this.finalHidden && this.selectGroup_childConfig.visible--;
|
|
1406
|
-
},
|
|
1407
|
-
methods: {
|
|
1408
|
-
async updateLabelContent() {
|
|
1409
|
-
typeof this.label == "function" ? this.labelContent = await this.label() : this.labelContent = this.label;
|
|
1410
|
-
},
|
|
1411
|
-
onClick(e) {
|
|
1412
|
-
this.prevent || this.select_onValueChange(this.value), this.$emit("click", e);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
};
|
|
1416
|
-
function al(e, l, t, o, d, n) {
|
|
1417
|
-
const f = S("BaseCheckbox"), r = S("BaseDropdownMenuItem");
|
|
1418
|
-
return s(), $(r, {
|
|
1419
|
-
"keep-open": e.$attrs["keep-open"] != null ? e.$attrs["keep-open"] === "" || e.$attrs["keep-open"] : n.multi,
|
|
1420
|
-
class: u([n.cssClass, "base-select-option overflow-hidden"]),
|
|
1421
|
-
tooltip: t.tooltip,
|
|
1422
|
-
active: n.finalSelected,
|
|
1423
|
-
label: o.labelContent,
|
|
1424
|
-
"secondary-label": t.description,
|
|
1425
|
-
disabled: t.disabled,
|
|
1426
|
-
"label-class": t.labelClass,
|
|
1427
|
-
icon: t.icon,
|
|
1428
|
-
"can-click-on-active": !0,
|
|
1429
|
-
onClick: n.onClick
|
|
1430
|
-
}, {
|
|
1431
|
-
checkbox: B(() => [
|
|
1432
|
-
n.multi && !e.$attrs.loading ? (s(), $(f, {
|
|
1433
|
-
key: 0,
|
|
1434
|
-
modelValue: o.finalValue,
|
|
1435
|
-
"onUpdate:modelValue": l[0] || (l[0] = (_) => o.finalValue = _),
|
|
1436
|
-
"for-id": t.value,
|
|
1437
|
-
value: t.value,
|
|
1438
|
-
disabled: t.disabled,
|
|
1439
|
-
"disable-change": ""
|
|
1440
|
-
}, null, 8, ["modelValue", "for-id", "value", "disabled"])) : m("", !0)
|
|
1441
|
-
]),
|
|
1442
|
-
"label-override": B(() => [
|
|
1443
|
-
g(e.$slots, "default", {}, void 0, !0)
|
|
1444
|
-
]),
|
|
1445
|
-
"additional-left-part": B(() => [
|
|
1446
|
-
g(e.$slots, "additional-left-part", {}, void 0, !0)
|
|
1447
|
-
]),
|
|
1448
|
-
"additional-right-part": B(() => [
|
|
1449
|
-
g(e.$slots, "additional-right-part", {}, void 0, !0)
|
|
1450
|
-
]),
|
|
1451
|
-
_: 3
|
|
1452
|
-
}, 8, ["keep-open", "class", "tooltip", "active", "label", "secondary-label", "disabled", "label-class", "icon", "onClick"]);
|
|
1453
|
-
}
|
|
1454
|
-
const il = /* @__PURE__ */ L(sl, [["render", al], ["__scopeId", "data-v-0b16dd62"]]), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1455
|
-
__proto__: null,
|
|
1456
|
-
default: il
|
|
1457
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1458
|
-
const dl = {
|
|
1459
|
-
props: {
|
|
1460
|
-
modelValue: {
|
|
1461
|
-
type: Boolean,
|
|
1462
|
-
required: !0
|
|
1463
|
-
},
|
|
1464
|
-
disabled: {
|
|
1465
|
-
type: Boolean,
|
|
1466
|
-
default: !1
|
|
1467
|
-
},
|
|
1468
|
-
colorClass: {
|
|
1469
|
-
type: String,
|
|
1470
|
-
default: "base-switch-green"
|
|
1471
|
-
}
|
|
1472
|
-
},
|
|
1473
|
-
emits: [
|
|
1474
|
-
"update:modelValue"
|
|
1475
|
-
],
|
|
1476
|
-
setup() {
|
|
1477
|
-
const e = A();
|
|
1478
|
-
return {
|
|
1479
|
-
defaultSlot: y(() => e.default())
|
|
1480
|
-
};
|
|
1481
|
-
},
|
|
1482
|
-
computed: {
|
|
1483
|
-
valueModel: {
|
|
1484
|
-
get() {
|
|
1485
|
-
return this.modelValue;
|
|
1486
|
-
},
|
|
1487
|
-
set(e) {
|
|
1488
|
-
return this.$emit("update:modelValue", e);
|
|
1489
|
-
}
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
}, rl = { class: "flex items-center relative" }, cl = ["disabled"], ul = {
|
|
1493
|
-
key: 0,
|
|
1494
|
-
class: "ml-3"
|
|
1495
|
-
};
|
|
1496
|
-
function fl(e, l, t, o, d, n) {
|
|
1497
|
-
const f = S("RenderSlot");
|
|
1498
|
-
return s(), i("div", {
|
|
1499
|
-
class: u(["base-switch select-none", {
|
|
1500
|
-
checked: n.valueModel,
|
|
1501
|
-
"opacity-50": t.disabled
|
|
1502
|
-
}])
|
|
1503
|
-
}, [
|
|
1504
|
-
v("div", rl, [
|
|
1505
|
-
v("label", {
|
|
1506
|
-
class: u(["switch-box flex-none block rounded-full h-5 border", n.valueModel ? t.colorClass : "bg-grey-300 border-grey-200"])
|
|
1507
|
-
}, [
|
|
1508
|
-
R(v("input", {
|
|
1509
|
-
"onUpdate:modelValue": l[0] || (l[0] = (r) => n.valueModel = r),
|
|
1510
|
-
type: "checkbox",
|
|
1511
|
-
disabled: t.disabled,
|
|
1512
|
-
class: u(["opacity-0 absolute inset-0 w-full h-full z-10", [
|
|
1513
|
-
t.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
1514
|
-
]])
|
|
1515
|
-
}, null, 10, cl), [
|
|
1516
|
-
[Re, n.valueModel]
|
|
1517
|
-
]),
|
|
1518
|
-
v("div", {
|
|
1519
|
-
class: u(["dot w-4 h-4 bg-white rounded-full absolute border", !n.valueModel && "border-grey-200"])
|
|
1520
|
-
}, null, 2)
|
|
1521
|
-
], 2),
|
|
1522
|
-
o.defaultSlot ? (s(), i("span", ul, [
|
|
1523
|
-
C(f, { vnodes: o.defaultSlot }, null, 8, ["vnodes"])
|
|
1524
|
-
])) : m("", !0)
|
|
1525
|
-
])
|
|
1526
|
-
], 2);
|
|
1527
|
-
}
|
|
1528
|
-
const pl = /* @__PURE__ */ L(dl, [["render", fl], ["__scopeId", "data-v-5805577b"]]), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1529
|
-
__proto__: null,
|
|
1530
|
-
default: pl
|
|
1531
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
1532
|
-
const hl = {
|
|
1533
|
-
props: {
|
|
1534
|
-
size: {
|
|
1535
|
-
type: String,
|
|
1536
|
-
default: "small",
|
|
1537
|
-
validator(e) {
|
|
1538
|
-
return ["xsmall", "small", "medium"].includes(e);
|
|
1539
|
-
}
|
|
1540
|
-
},
|
|
1541
|
-
theme: {
|
|
1542
|
-
type: String,
|
|
1543
|
-
default: "light-blue",
|
|
1544
|
-
validator(e) {
|
|
1545
|
-
return [
|
|
1546
|
-
"light-blue",
|
|
1547
|
-
"light-green",
|
|
1548
|
-
"light-orange",
|
|
1549
|
-
"light-red",
|
|
1550
|
-
"light-grey",
|
|
1551
|
-
"dark-blue",
|
|
1552
|
-
"dark-green",
|
|
1553
|
-
"dark-orange",
|
|
1554
|
-
"dark-red",
|
|
1555
|
-
"dark-grey"
|
|
1556
|
-
].includes(e);
|
|
1557
|
-
}
|
|
1558
|
-
},
|
|
1559
|
-
leftIcon: {
|
|
1560
|
-
type: String,
|
|
1561
|
-
default: null
|
|
1562
|
-
},
|
|
1563
|
-
tooltip: {
|
|
1564
|
-
type: [String, Object],
|
|
1565
|
-
default: null
|
|
1566
|
-
},
|
|
1567
|
-
uppercase: {
|
|
1568
|
-
type: Boolean,
|
|
1569
|
-
default: !1
|
|
1570
|
-
},
|
|
1571
|
-
deletable: {
|
|
1572
|
-
type: Boolean,
|
|
1573
|
-
default: !1
|
|
1574
|
-
}
|
|
1575
|
-
},
|
|
1576
|
-
emits: ["delete"],
|
|
1577
|
-
setup() {
|
|
1578
|
-
const e = A(), l = y(() => e.default()), t = y(() => e["user-avatar"]());
|
|
1579
|
-
return {
|
|
1580
|
-
defaultSlot: l,
|
|
1581
|
-
userAvatarSlot: t
|
|
1582
|
-
};
|
|
1583
|
-
},
|
|
1584
|
-
computed: {
|
|
1585
|
-
isLeftIconImageUrl() {
|
|
1586
|
-
var e;
|
|
1587
|
-
return (e = this.leftIcon) == null ? void 0 : e.includes(".svg");
|
|
1588
|
-
},
|
|
1589
|
-
iconSizeClasses() {
|
|
1590
|
-
return {
|
|
1591
|
-
"h-3 w-3": this.size === "xsmall" || this.size === "small",
|
|
1592
|
-
"h-4 w-4": this.size === "medium"
|
|
1593
|
-
};
|
|
1594
|
-
}
|
|
1595
|
-
}
|
|
1596
|
-
}, ml = ["src"];
|
|
1597
|
-
function vl(e, l, t, o, d, n) {
|
|
1598
|
-
const f = S("RenderSlot"), r = J("tooltip");
|
|
1599
|
-
return R((s(), i("span", {
|
|
1600
|
-
class: u([[
|
|
1601
|
-
{ uppercase: t.uppercase },
|
|
1602
|
-
{ "xsmall text-11-semibold ": t.size === "xsmall" },
|
|
1603
|
-
{ "small text-12-semibold py-1": t.size === "small" },
|
|
1604
|
-
{ "medium text-16-semibold py-1": t.size === "medium" },
|
|
1605
|
-
{ "pointer-events-none": !t.deletable && !t.tooltip },
|
|
1606
|
-
{ "cursor-help": !t.deletable && t.tooltip },
|
|
1607
|
-
t.theme
|
|
1608
|
-
], "base-tag cursor-default no-info px-2 rounded-full inline-flex items-center whitespace-nowrap"]),
|
|
1609
|
-
"data-testid": "base-tag"
|
|
1610
|
-
}, [
|
|
1611
|
-
t.leftIcon ? (s(), i(Q, { key: 0 }, [
|
|
1612
|
-
n.isLeftIconImageUrl ? (s(), i("img", {
|
|
1613
|
-
key: 0,
|
|
1614
|
-
class: u(n.iconSizeClasses),
|
|
1615
|
-
src: t.leftIcon
|
|
1616
|
-
}, null, 10, ml)) : (s(), i("div", {
|
|
1617
|
-
key: 1,
|
|
1618
|
-
class: u(["icon-left block", [t.leftIcon, n.iconSizeClasses]])
|
|
1619
|
-
}, null, 2))
|
|
1620
|
-
], 64)) : m("", !0),
|
|
1621
|
-
o.userAvatarSlot ? (s(), i("div", {
|
|
1622
|
-
key: 1,
|
|
1623
|
-
class: u(["base-tag-avatar", [
|
|
1624
|
-
{ "ml-1": t.leftIcon },
|
|
1625
|
-
{ "h-3 w-3 xsmall": t.size === "xsmall" },
|
|
1626
|
-
{ "h-4 w-4 small": t.size === "small" },
|
|
1627
|
-
{ "h-6 w-6 medium": t.size === "medium" }
|
|
1628
|
-
]])
|
|
1629
|
-
}, [
|
|
1630
|
-
C(f, { vnodes: o.userAvatarSlot }, null, 8, ["vnodes"])
|
|
1631
|
-
], 2)) : m("", !0),
|
|
1632
|
-
o.defaultSlot ? (s(), i("span", {
|
|
1633
|
-
key: 2,
|
|
1634
|
-
class: u(["overflow-hidden max-w-sm text-ellipsis", { "ml-1": t.leftIcon || o.userAvatarSlot }])
|
|
1635
|
-
}, [
|
|
1636
|
-
C(f, { vnodes: o.defaultSlot }, null, 8, ["vnodes"])
|
|
1637
|
-
], 2)) : m("", !0),
|
|
1638
|
-
t.deletable ? (s(), i("div", {
|
|
1639
|
-
key: 3,
|
|
1640
|
-
class: u(["i-ls-x icon-delete block ml-1 cursor-pointer", n.iconSizeClasses]),
|
|
1641
|
-
onClick: l[0] || (l[0] = (_) => e.$emit("delete"))
|
|
1642
|
-
}, null, 2)) : m("", !0)
|
|
1643
|
-
], 2)), [
|
|
1644
|
-
[r, t.tooltip]
|
|
1645
|
-
]);
|
|
1646
|
-
}
|
|
1647
|
-
const bl = /* @__PURE__ */ L(hl, [["render", vl], ["__scopeId", "data-v-25ee29c2"]]), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1648
|
-
__proto__: null,
|
|
1649
|
-
default: bl
|
|
1650
|
-
}, Symbol.toStringTag, { value: "Module" })), Ie = /Base([a-z0-9]+)\./i;
|
|
1651
|
-
function Cl(e, l = "Ls") {
|
|
1652
|
-
e.component("RenderSlot", ne);
|
|
1653
|
-
const t = /* @__PURE__ */ Object.assign({ "./src/components/BaseAutocomplete/BaseAutocomplete.vue": se, "./src/components/BaseBanner/BaseBanner.vue": ae, "./src/components/BaseButton/BaseButton.vue": ie, "./src/components/BaseCheckbox/BaseCheckbox.vue": fe, "./src/components/BaseDropdownMenu/BaseDropdownMenu.vue": pe, "./src/components/BaseDropdownMenu/BaseDropdownMenuButton.vue": he, "./src/components/BaseDropdownMenu/BaseDropdownMenuDivider.vue": me, "./src/components/BaseDropdownMenu/BaseDropdownMenuItem.vue": ve, "./src/components/BaseDropdownMenu/BaseDropdownMenuSearch.vue": be, "./src/components/BaseDropdownMenu/BaseDropdownMenuTitle.vue": _e, "./src/components/BaseModal/BaseModal.vue": de, "./src/components/BaseModal/BaseModalContent.vue": ge, "./src/components/BaseModal/BaseModalContentOld.vue": ye, "./src/components/BaseRadio/BaseRadio.vue": Be, "./src/components/BaseRating/BaseRating.vue": Se, "./src/components/BaseSelect/BaseSelect.vue": we, "./src/components/BaseSelect/BaseSelectGroup.vue": ke, "./src/components/BaseSelect/BaseSelectOption.vue": Ce, "./src/components/BaseSwitch/BaseSwitch.vue": Me, "./src/components/BaseTag/BaseTag.vue": $e });
|
|
1654
|
-
for (const o in t) {
|
|
1655
|
-
const d = t[o], n = o.match(Ie)[1];
|
|
1656
|
-
e.component(`${l}${n}`, d.default || d);
|
|
64
|
+
}, Symbol.toStringTag, { value: "Module" })), W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
65
|
+
__proto__: null,
|
|
66
|
+
default: Je
|
|
67
|
+
}, Symbol.toStringTag, { value: "Module" })), N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
68
|
+
__proto__: null,
|
|
69
|
+
default: eo
|
|
70
|
+
}, Symbol.toStringTag, { value: "Module" })), q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
71
|
+
__proto__: null,
|
|
72
|
+
default: oo
|
|
73
|
+
}, Symbol.toStringTag, { value: "Module" })), K = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
74
|
+
__proto__: null,
|
|
75
|
+
default: to
|
|
76
|
+
}, Symbol.toStringTag, { value: "Module" })), Q = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
77
|
+
__proto__: null,
|
|
78
|
+
default: no
|
|
79
|
+
}, Symbol.toStringTag, { value: "Module" })), V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
80
|
+
__proto__: null,
|
|
81
|
+
default: _o
|
|
82
|
+
}, Symbol.toStringTag, { value: "Module" })), X = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
83
|
+
__proto__: null,
|
|
84
|
+
default: io
|
|
85
|
+
}, Symbol.toStringTag, { value: "Module" })), Y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
86
|
+
__proto__: null,
|
|
87
|
+
default: ro
|
|
88
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
89
|
+
__proto__: null,
|
|
90
|
+
default: co
|
|
91
|
+
}, Symbol.toStringTag, { value: "Module" })), J = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
92
|
+
__proto__: null,
|
|
93
|
+
default: lo
|
|
94
|
+
}, Symbol.toStringTag, { value: "Module" })), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
95
|
+
__proto__: null,
|
|
96
|
+
default: so
|
|
97
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
98
|
+
__proto__: null,
|
|
99
|
+
default: ao
|
|
100
|
+
}, Symbol.toStringTag, { value: "Module" })), te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
101
|
+
__proto__: null,
|
|
102
|
+
default: uo
|
|
103
|
+
}, Symbol.toStringTag, { value: "Module" })), ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
104
|
+
__proto__: null,
|
|
105
|
+
default: po
|
|
106
|
+
}, Symbol.toStringTag, { value: "Module" })), _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
107
|
+
__proto__: null,
|
|
108
|
+
default: mo
|
|
109
|
+
}, Symbol.toStringTag, { value: "Module" })), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
110
|
+
__proto__: null,
|
|
111
|
+
default: vo
|
|
112
|
+
}, Symbol.toStringTag, { value: "Module" })), re = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
113
|
+
__proto__: null,
|
|
114
|
+
default: bo
|
|
115
|
+
}, Symbol.toStringTag, { value: "Module" })), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
116
|
+
__proto__: null,
|
|
117
|
+
default: Uo
|
|
118
|
+
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
119
|
+
__proto__: null,
|
|
120
|
+
default: go
|
|
121
|
+
}, Symbol.toStringTag, { value: "Module" })), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
122
|
+
__proto__: null,
|
|
123
|
+
default: fo
|
|
124
|
+
}, Symbol.toStringTag, { value: "Module" })), ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
125
|
+
__proto__: null,
|
|
126
|
+
default: So
|
|
127
|
+
}, Symbol.toStringTag, { value: "Module" })), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
128
|
+
__proto__: null,
|
|
129
|
+
default: To
|
|
130
|
+
}, Symbol.toStringTag, { value: "Module" })), pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
131
|
+
__proto__: null,
|
|
132
|
+
default: yo
|
|
133
|
+
}, Symbol.toStringTag, { value: "Module" })), me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
134
|
+
__proto__: null,
|
|
135
|
+
default: jo
|
|
136
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
137
|
+
__proto__: null,
|
|
138
|
+
default: Oo
|
|
139
|
+
}, Symbol.toStringTag, { value: "Module" })), be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
140
|
+
__proto__: null,
|
|
141
|
+
default: Mo
|
|
142
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
143
|
+
__proto__: null,
|
|
144
|
+
default: Po
|
|
145
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
146
|
+
__proto__: null,
|
|
147
|
+
default: zo
|
|
148
|
+
}, Symbol.toStringTag, { value: "Module" })), de = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
149
|
+
__proto__: null,
|
|
150
|
+
default: $o
|
|
151
|
+
}, Symbol.toStringTag, { value: "Module" })), fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
152
|
+
__proto__: null,
|
|
153
|
+
default: Bo
|
|
154
|
+
}, Symbol.toStringTag, { value: "Module" })), Se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
155
|
+
__proto__: null,
|
|
156
|
+
default: Do
|
|
157
|
+
}, Symbol.toStringTag, { value: "Module" })), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
158
|
+
__proto__: null,
|
|
159
|
+
default: Co
|
|
160
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
161
|
+
__proto__: null,
|
|
162
|
+
default: Io
|
|
163
|
+
}, Symbol.toStringTag, { value: "Module" })), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
164
|
+
__proto__: null,
|
|
165
|
+
default: Lo
|
|
166
|
+
}, Symbol.toStringTag, { value: "Module" })), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
167
|
+
__proto__: null,
|
|
168
|
+
default: Ao
|
|
169
|
+
}, Symbol.toStringTag, { value: "Module" })), Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
170
|
+
__proto__: null,
|
|
171
|
+
default: wo
|
|
172
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
173
|
+
__proto__: null,
|
|
174
|
+
default: Fo
|
|
175
|
+
}, Symbol.toStringTag, { value: "Module" })), ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
176
|
+
__proto__: null,
|
|
177
|
+
default: xo
|
|
178
|
+
}, Symbol.toStringTag, { value: "Module" })), $e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
179
|
+
__proto__: null,
|
|
180
|
+
default: ho
|
|
181
|
+
}, Symbol.toStringTag, { value: "Module" })), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
182
|
+
__proto__: null,
|
|
183
|
+
default: ko
|
|
184
|
+
}, Symbol.toStringTag, { value: "Module" })), De = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
185
|
+
__proto__: null,
|
|
186
|
+
default: Go
|
|
187
|
+
}, Symbol.toStringTag, { value: "Module" })), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
188
|
+
__proto__: null,
|
|
189
|
+
default: Ho
|
|
190
|
+
}, Symbol.toStringTag, { value: "Module" })), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
191
|
+
__proto__: null,
|
|
192
|
+
default: Ro
|
|
193
|
+
}, Symbol.toStringTag, { value: "Module" })), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
194
|
+
__proto__: null,
|
|
195
|
+
default: Eo
|
|
196
|
+
}, Symbol.toStringTag, { value: "Module" })), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
197
|
+
__proto__: null,
|
|
198
|
+
default: Wo
|
|
199
|
+
}, Symbol.toStringTag, { value: "Module" })), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
200
|
+
__proto__: null,
|
|
201
|
+
default: No
|
|
202
|
+
}, Symbol.toStringTag, { value: "Module" })), Fe = /Ui([a-z0-9]+)\./i;
|
|
203
|
+
function Jo(_, e = "Ui") {
|
|
204
|
+
_.component("RenderSlot", j);
|
|
205
|
+
const o = /* @__PURE__ */ Object.assign({ "./src/components/UiActionBar/UiActionBar.vue": O, "./src/components/UiActionBar/UiActionBarItem.vue": M, "./src/components/UiActionBar/UiActionBarSeparator.vue": P, "./src/components/UiAnimatedLogo/UiAnimatedLogo.vue": z, "./src/components/UiAvatar/UiAvatar.vue": $, "./src/components/UiAvatarList/UiAvatarList.vue": B, "./src/components/UiBadge/UiBadge.vue": D, "./src/components/UiBanner/UiBanner.vue": F, "./src/components/UiBreadcrumb/UiBreadcrumb.vue": x, "./src/components/UiButton/UiButton.vue": y, "./src/components/UiButtonGroup/UiButtonGroup.vue": h, "./src/components/UiButtonGroup/UiButtonGroupItem.vue": k, "./src/components/UiCard/UiCard.vue": G, "./src/components/UiCarousel/UiCarousel.vue": H, "./src/components/UiColorField/UiColorField.vue": Z, "./src/components/UiColorPicker/UiColorPicker.vue": X, "./src/components/UiDialog/UiDialog.vue": J, "./src/components/UiDialog/UiDialogClose.vue": ee, "./src/components/UiDialog/UiDialogContent.vue": T, "./src/components/UiDialog/UiDialogFooter.vue": oe, "./src/components/UiDialog/UiDialogTrigger.vue": te, "./src/components/UiDropdown/UiDropdown.vue": N, "./src/components/UiDropdown/UiDropdownContent.vue": K, "./src/components/UiDropdown/UiDropdownItem.vue": Q, "./src/components/UiDropdown/UiDropdownSeparator.vue": V, "./src/components/UiDropdown/UiDropdownTrigger.vue": q, "./src/components/UiEmptyState/UiEmptyState.vue": ne, "./src/components/UiFieldWrapper/UiFieldWrapper.vue": Y, "./src/components/UiForm/UiFormField.vue": _e, "./src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue": S, "./src/components/UiInputCheckbox/UiInputCheckbox.vue": f, "./src/components/UiInputSelect/UiInputSelect.vue": ie, "./src/components/UiInputTextarea/UiInputTextarea.vue": d, "./src/components/UiLabel/UiLabel.vue": re, "./src/components/UiList/UiList.vue": ce, "./src/components/UiListItem/UiListItem.vue": g, "./src/components/UiLoader/UiLoader.vue": C, "./src/components/UiLogo/UiLogo.vue": U, "./src/components/UiMenu/UiMenu.vue": le, "./src/components/UiMenu/UiMenuContent.vue": se, "./src/components/UiMenu/UiMenuGroup.vue": ae, "./src/components/UiMenu/UiMenuItem.vue": ue, "./src/components/UiMenu/UiMenuLabel.vue": pe, "./src/components/UiMenu/UiMenuSeparator.vue": me, "./src/components/UiMenu/UiMenuSub.vue": ve, "./src/components/UiMenu/UiMenuSubContent.vue": be, "./src/components/UiMenu/UiMenuSubTrigger.vue": Ue, "./src/components/UiMenu/UiMenuTrigger.vue": ge, "./src/components/UiPage/UiPage.vue": de, "./src/components/UiPageHeader/UiPageHeader.vue": fe, "./src/components/UiPopover/UiPopover.vue": R, "./src/components/UiPopover/UiPopoverAnchor.vue": Se, "./src/components/UiPopover/UiPopoverContent.vue": W, "./src/components/UiPopover/UiPopoverTrigger.vue": E, "./src/components/UiProgress/UiProgress.vue": b, "./src/components/UiRoomButton/UiRoomButton.vue": v, "./src/components/UiShell/UiShell.vue": Te, "./src/components/UiSideMenu/UiSideMenu.vue": m, "./src/components/UiSideMenu/UiSideMenuBottom.vue": je, "./src/components/UiSideMenu/UiSideMenuItem.vue": ye, "./src/components/UiSideMenu/UiSideMenuItemContent.vue": p, "./src/components/UiSideMenu/UiSideMenuTop.vue": Oe, "./src/components/UiStepper/UiStepper.vue": Me, "./src/components/UiStepper/UiStepperDescription.vue": u, "./src/components/UiStepper/UiStepperIndicator.vue": Pe, "./src/components/UiStepper/UiStepperItem.vue": ze, "./src/components/UiStepper/UiStepperSeparator.vue": a, "./src/components/UiStepper/UiStepperTitle.vue": s, "./src/components/UiTable/UiTable.vue": $e, "./src/components/UiTable/UiTableBody.vue": l, "./src/components/UiTable/UiTableCell.vue": Be, "./src/components/UiTable/UiTableHeader.vue": De, "./src/components/UiTable/UiTableHeaderCell.vue": Ce, "./src/components/UiTable/UiTableRow.vue": Ie, "./src/components/UiTabs/UiTabs.vue": Le, "./src/components/UiTag/UiTag.vue": c, "./src/components/UiTextField/UiTextField.vue": r, "./src/components/UiTimeline/UiTimeline.vue": Ae, "./src/components/UiTimeline/UiTimelineItem.vue": we, "./src/components/UiTooltip/UiTooltip.vue": w, "./src/components/UiTooltip/UiTooltipContent.vue": A, "./src/components/UiTooltip/UiTooltipProvider.vue": I, "./src/components/UiTooltip/UiTooltipTrigger.vue": L });
|
|
206
|
+
for (const t in o) {
|
|
207
|
+
const n = o[t], i = t.match(Fe)[1];
|
|
208
|
+
_.component(`${e}${i}`, n.default || n);
|
|
1657
209
|
}
|
|
1658
210
|
}
|
|
1659
|
-
function
|
|
1660
|
-
const
|
|
1661
|
-
|
|
1662
|
-
const
|
|
1663
|
-
for (const
|
|
1664
|
-
const
|
|
1665
|
-
|
|
1666
|
-
}
|
|
1667
|
-
return
|
|
211
|
+
function et(_ = "Ui") {
|
|
212
|
+
const e = {};
|
|
213
|
+
e.RenderSlot = j;
|
|
214
|
+
const o = /* @__PURE__ */ Object.assign({ "./src/components/UiActionBar/UiActionBar.vue": O, "./src/components/UiActionBar/UiActionBarItem.vue": M, "./src/components/UiActionBar/UiActionBarSeparator.vue": P, "./src/components/UiAnimatedLogo/UiAnimatedLogo.vue": z, "./src/components/UiAvatar/UiAvatar.vue": $, "./src/components/UiAvatarList/UiAvatarList.vue": B, "./src/components/UiBadge/UiBadge.vue": D, "./src/components/UiBanner/UiBanner.vue": F, "./src/components/UiBreadcrumb/UiBreadcrumb.vue": x, "./src/components/UiButton/UiButton.vue": y, "./src/components/UiButtonGroup/UiButtonGroup.vue": h, "./src/components/UiButtonGroup/UiButtonGroupItem.vue": k, "./src/components/UiCard/UiCard.vue": G, "./src/components/UiCarousel/UiCarousel.vue": H, "./src/components/UiColorField/UiColorField.vue": Z, "./src/components/UiColorPicker/UiColorPicker.vue": X, "./src/components/UiDialog/UiDialog.vue": J, "./src/components/UiDialog/UiDialogClose.vue": ee, "./src/components/UiDialog/UiDialogContent.vue": T, "./src/components/UiDialog/UiDialogFooter.vue": oe, "./src/components/UiDialog/UiDialogTrigger.vue": te, "./src/components/UiDropdown/UiDropdown.vue": N, "./src/components/UiDropdown/UiDropdownContent.vue": K, "./src/components/UiDropdown/UiDropdownItem.vue": Q, "./src/components/UiDropdown/UiDropdownSeparator.vue": V, "./src/components/UiDropdown/UiDropdownTrigger.vue": q, "./src/components/UiEmptyState/UiEmptyState.vue": ne, "./src/components/UiFieldWrapper/UiFieldWrapper.vue": Y, "./src/components/UiForm/UiFormField.vue": _e, "./src/components/UiHorizontalSeparator/UiHorizontalSeparator.vue": S, "./src/components/UiInputCheckbox/UiInputCheckbox.vue": f, "./src/components/UiInputSelect/UiInputSelect.vue": ie, "./src/components/UiInputTextarea/UiInputTextarea.vue": d, "./src/components/UiLabel/UiLabel.vue": re, "./src/components/UiList/UiList.vue": ce, "./src/components/UiListItem/UiListItem.vue": g, "./src/components/UiLoader/UiLoader.vue": C, "./src/components/UiLogo/UiLogo.vue": U, "./src/components/UiMenu/UiMenu.vue": le, "./src/components/UiMenu/UiMenuContent.vue": se, "./src/components/UiMenu/UiMenuGroup.vue": ae, "./src/components/UiMenu/UiMenuItem.vue": ue, "./src/components/UiMenu/UiMenuLabel.vue": pe, "./src/components/UiMenu/UiMenuSeparator.vue": me, "./src/components/UiMenu/UiMenuSub.vue": ve, "./src/components/UiMenu/UiMenuSubContent.vue": be, "./src/components/UiMenu/UiMenuSubTrigger.vue": Ue, "./src/components/UiMenu/UiMenuTrigger.vue": ge, "./src/components/UiPage/UiPage.vue": de, "./src/components/UiPageHeader/UiPageHeader.vue": fe, "./src/components/UiPopover/UiPopover.vue": R, "./src/components/UiPopover/UiPopoverAnchor.vue": Se, "./src/components/UiPopover/UiPopoverContent.vue": W, "./src/components/UiPopover/UiPopoverTrigger.vue": E, "./src/components/UiProgress/UiProgress.vue": b, "./src/components/UiRoomButton/UiRoomButton.vue": v, "./src/components/UiShell/UiShell.vue": Te, "./src/components/UiSideMenu/UiSideMenu.vue": m, "./src/components/UiSideMenu/UiSideMenuBottom.vue": je, "./src/components/UiSideMenu/UiSideMenuItem.vue": ye, "./src/components/UiSideMenu/UiSideMenuItemContent.vue": p, "./src/components/UiSideMenu/UiSideMenuTop.vue": Oe, "./src/components/UiStepper/UiStepper.vue": Me, "./src/components/UiStepper/UiStepperDescription.vue": u, "./src/components/UiStepper/UiStepperIndicator.vue": Pe, "./src/components/UiStepper/UiStepperItem.vue": ze, "./src/components/UiStepper/UiStepperSeparator.vue": a, "./src/components/UiStepper/UiStepperTitle.vue": s, "./src/components/UiTable/UiTable.vue": $e, "./src/components/UiTable/UiTableBody.vue": l, "./src/components/UiTable/UiTableCell.vue": Be, "./src/components/UiTable/UiTableHeader.vue": De, "./src/components/UiTable/UiTableHeaderCell.vue": Ce, "./src/components/UiTable/UiTableRow.vue": Ie, "./src/components/UiTabs/UiTabs.vue": Le, "./src/components/UiTag/UiTag.vue": c, "./src/components/UiTextField/UiTextField.vue": r, "./src/components/UiTimeline/UiTimeline.vue": Ae, "./src/components/UiTimeline/UiTimelineItem.vue": we, "./src/components/UiTooltip/UiTooltip.vue": w, "./src/components/UiTooltip/UiTooltipContent.vue": A, "./src/components/UiTooltip/UiTooltipProvider.vue": I, "./src/components/UiTooltip/UiTooltipTrigger.vue": L });
|
|
215
|
+
for (const t in o) {
|
|
216
|
+
const n = o[t], i = t.match(Fe)[1];
|
|
217
|
+
e[`${_}${i}`] = n.default || n;
|
|
218
|
+
}
|
|
219
|
+
return e;
|
|
1668
220
|
}
|
|
1669
221
|
export {
|
|
1670
|
-
|
|
1671
|
-
|
|
222
|
+
et as getComponents,
|
|
223
|
+
Jo as registerComponents
|
|
1672
224
|
};
|