@dpa-id-components/dpa-shared-components 21.1.1 → 22.0.0-next.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/dist/{alert-fill-BHn_Z4vo.js → alert-filled-COSmQYAa.js} +1 -1
- package/dist/{bell-fill-DHRfa4cC.js → bell-filled-7gfK8601.js} +1 -1
- package/dist/{bookmark-outlined-D41PleT8.js → bookmark-D65iW--h.js} +1 -1
- package/dist/{bookmark-DNJYJq0J.js → bookmark-filled-5lCW1BfF.js} +1 -1
- package/dist/{comment-fill-Dc-swkQu.js → comment-filled-Cl_qZ6Fz.js} +1 -1
- package/dist/components/UiBadge/UiBadge.vue.d.ts +3 -16
- package/dist/components/UiButton/UiButton.vue.d.ts +15 -21
- package/dist/components/UiButtonGroup/UiButtonGroup.vue.d.ts +5 -11
- package/dist/components/UiCheckbox/UiCheckbox.vue.d.ts +14 -21
- package/dist/components/UiChip/UiChip.vue.d.ts +11 -12
- package/dist/components/UiColorPicker/UiColorPicker.vue.d.ts +6 -8
- package/dist/components/UiDatePicker/UiDatePicker.vue.d.ts +47 -84
- package/dist/components/UiDialog/UiDialog.vue.d.ts +20 -37
- package/dist/components/UiFilterBadge/UiFilterBadge.vue.d.ts +10 -9
- package/dist/components/UiFilterButton/UiFilterButton.vue.d.ts +26 -10
- package/dist/components/UiIcon/UiIcon.vue.d.ts +11 -6
- package/dist/components/UiIcon/icons.d.ts +14 -39
- package/dist/components/UiIconButton/UiIconButton.vue.d.ts +15 -6
- package/dist/components/UiInfoContent/UiInfoContent.vue.d.ts +17 -10
- package/dist/components/UiInput/UiInput.vue.d.ts +6 -48
- package/dist/components/UiList/UiList.vue.d.ts +5 -11
- package/dist/components/UiListItem/UiListItem.vue.d.ts +12 -24
- package/dist/components/UiMenu/UiMenu.vue.d.ts +30 -35
- package/dist/components/UiMenu/UiMenuItem.vue.d.ts +8 -5
- package/dist/components/UiMenu/UiMenuList.vue.d.ts +13 -11
- package/dist/components/UiPopover/UiPopover.vue.d.ts +45 -0
- package/dist/components/UiRadioButton/UiRadioButton.vue.d.ts +35 -0
- package/dist/components/UiRadioInputGroup/UiRadioInputGroup.vue.d.ts +27 -31
- package/dist/components/UiSearchBar/UiSearchBar.vue.d.ts +16 -39
- package/dist/components/UiSearchInput/UiSearchInput.vue.d.ts +2 -2
- package/dist/components/UiSkeletonBox/UiSkeletonBox.vue.d.ts +1 -5
- package/dist/components/UiSnackbar/UiSnackbar.vue.d.ts +4 -10
- package/dist/components/UiSpinner/UiSpinner.vue.d.ts +5 -8
- package/dist/components/UiTextButton/UiTextButton.vue.d.ts +22 -13
- package/dist/components/UiToggleButton/UiToggleButton.vue.d.ts +10 -24
- package/dist/components/UiTooltip/UiTooltip.vue.d.ts +3 -31
- package/dist/components/index.d.ts +3 -4
- package/dist/dpa-shared-components.js +4263 -4873
- package/dist/{flag-fill-C3XgapYW.js → flag-filled-VmJW-U0p.js} +1 -1
- package/dist/{folder-fill-CnEmPx6c.js → folder-filled-D6pmcH0e.js} +1 -1
- package/dist/{image focus point-D_hUlTWi.js → image-focus-point-BJ7HhehR.js} +1 -1
- package/dist/{info-fill-DlgeXJbI.js → info-filled-PYbvwGmZ.js} +1 -1
- package/dist/{map-outline-uvK8An7m.js → map-FF2zfEGP.js} +1 -1
- package/dist/{map-BMOQGCce.js → map-filled-Y8JaYK4Y.js} +1 -1
- package/dist/{video-rounded-ISWC3gUM.js → play-CArB2O7k.js} +1 -1
- package/dist/{saved-search-fill-CPoyaMRU.js → saved-search-filled-CNz5iwu_.js} +1 -1
- package/dist/{sidebar-fill-CBSJYVQQ.js → sidebar-filled-BnnqCUYl.js} +1 -1
- package/dist/spinner-CrCQ6H6L.js +32 -0
- package/dist/src/assets/icons/{bookmark-fill.vue → bookmark-filled.vue} +1 -1
- package/dist/src/assets/icons/bookmark.vue +4 -7
- package/dist/src/assets/icons/flag-filled.vue +4 -4
- package/dist/src/assets/icons/folder-filled.vue +4 -4
- package/dist/src/assets/icons/info-filled.vue +4 -4
- package/dist/src/assets/icons/map-filled.vue +13 -0
- package/dist/src/assets/icons/map.vue +1 -1
- package/dist/src/assets/icons/play.vue +1 -1
- package/dist/src/assets/icons/spinner.vue +27 -3
- package/dist/src/components/DpaMediaItem/DpaMediaItem.spec.ts +3 -3
- package/dist/src/components/DpaMediaItem/DpaMediaItem.vue +17 -17
- package/dist/src/components/UiBadge/README.md +8 -13
- package/dist/src/components/UiBadge/UiBadge.spec.ts +9 -15
- package/dist/src/components/UiBadge/UiBadge.stories.ts +52 -42
- package/dist/src/components/UiBadge/UiBadge.vue +29 -77
- package/dist/src/components/UiButton/README.md +20 -18
- package/dist/src/components/UiButton/UiButton.spec.ts +12 -41
- package/dist/src/components/UiButton/UiButton.stories.ts +53 -33
- package/dist/src/components/UiButton/UiButton.vue +55 -111
- package/dist/src/components/UiButtonGroup/UiButtonGroup.stories.ts +3 -2
- package/dist/src/components/UiButtonGroup/UiButtonGroup.vue +23 -1
- package/dist/src/components/UiCard/UiCard.vue +3 -3
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.spec.ts +4 -2
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.stories.ts +1 -1
- package/dist/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +2 -3
- package/dist/src/components/UiCheckbox/README.md +4 -16
- package/dist/src/components/UiCheckbox/UiCheckbox.spec.ts +15 -141
- package/dist/src/components/UiCheckbox/UiCheckbox.stories.ts +18 -32
- package/dist/src/components/UiCheckbox/UiCheckbox.vue +48 -84
- package/dist/src/components/UiChip/README.md +10 -5
- package/dist/src/components/UiChip/UiChip.spec.ts +5 -60
- package/dist/src/components/UiChip/UiChip.stories.ts +53 -17
- package/dist/src/components/UiChip/UiChip.vue +31 -33
- package/dist/src/components/UiCollapseNavigation/README.md +3 -3
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.stories.ts +12 -12
- package/dist/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +8 -6
- package/dist/src/components/UiColorPicker/UiColorPicker.spec.ts +12 -24
- package/dist/src/components/UiColorPicker/UiColorPicker.stories.ts +5 -6
- package/dist/src/components/UiColorPicker/UiColorPicker.vue +21 -60
- package/dist/src/components/UiColorPicker/lib/colors.ts +9 -9
- package/dist/src/components/UiDatePicker/README.md +68 -46
- package/dist/src/components/UiDatePicker/UiDatePicker.spec.ts +92 -284
- package/dist/src/components/UiDatePicker/UiDatePicker.stories.ts +210 -196
- package/dist/src/components/UiDatePicker/UiDatePicker.vue +301 -432
- package/dist/src/components/UiDialog/README.md +17 -22
- package/dist/src/components/UiDialog/UiDialog.spec.ts +3 -110
- package/dist/src/components/UiDialog/UiDialog.stories.ts +45 -54
- package/dist/src/components/UiDialog/UiDialog.vue +75 -104
- package/dist/src/components/UiFilterBadge/README.md +7 -7
- package/dist/src/components/UiFilterBadge/UiFilterBadge.spec.ts +47 -3
- package/dist/src/components/UiFilterBadge/UiFilterBadge.stories.ts +3 -18
- package/dist/src/components/UiFilterBadge/UiFilterBadge.vue +31 -26
- package/dist/src/components/UiFilterButton/README.md +2 -0
- package/dist/src/components/UiFilterButton/UiFilterButton.spec.ts +1 -1
- package/dist/src/components/UiFilterButton/UiFilterButton.stories.ts +2 -1
- package/dist/src/components/UiFilterButton/UiFilterButton.vue +31 -23
- package/dist/src/components/UiIcon/UiIcon.spec.ts +3 -3
- package/dist/src/components/UiIcon/UiIcon.stories.ts +1 -1
- package/dist/src/components/UiIcon/UiIcon.vue +24 -25
- package/dist/src/components/UiIcon/icons.ts +113 -141
- package/dist/src/components/UiIconButton/UiIconButton.spec.ts +1 -1
- package/dist/src/components/UiIconButton/UiIconButton.stories.ts +1 -0
- package/dist/src/components/UiIconButton/UiIconButton.vue +28 -10
- package/dist/src/components/UiInfoContent/README.md +7 -8
- package/dist/src/components/UiInfoContent/UiInfoContent.spec.ts +29 -21
- package/dist/src/components/UiInfoContent/UiInfoContent.stories.ts +11 -33
- package/dist/src/components/UiInfoContent/UiInfoContent.vue +34 -33
- package/dist/src/components/UiInput/README.md +15 -32
- package/dist/src/components/UiInput/UiInput.spec.ts +71 -102
- package/dist/src/components/UiInput/UiInput.stories.ts +67 -58
- package/dist/src/components/UiInput/UiInput.vue +87 -286
- package/dist/src/components/UiLabel/README.md +0 -9
- package/dist/src/components/UiLabel/UiLabel.vue +1 -1
- package/dist/src/components/UiList/UiList.stories.ts +1 -0
- package/dist/src/components/UiList/UiList.vue +22 -0
- package/dist/src/components/UiListItem/UiListItem.spec.ts +1 -2
- package/dist/src/components/UiListItem/UiListItem.stories.ts +2 -2
- package/dist/src/components/UiListItem/UiListItem.vue +73 -93
- package/dist/src/components/UiMenu/README.md +64 -7
- package/dist/src/components/UiMenu/UiMenu.spec.ts +87 -99
- package/dist/src/components/UiMenu/UiMenu.stories.ts +166 -411
- package/dist/src/components/UiMenu/UiMenu.vue +228 -408
- package/dist/src/components/UiMenu/UiMenuItem.vue +28 -9
- package/dist/src/components/UiMenu/UiMenuList.vue +22 -0
- package/dist/src/components/UiOverlay/README.md +1 -1
- package/dist/src/components/UiOverlay/UiOverlay.stories.ts +1 -1
- package/dist/src/components/UiOverlay/UiOverlay.vue +2 -2
- package/dist/src/components/UiOverlayMenu/README.md +1 -1
- package/dist/src/components/UiOverlayMenu/UiOverlayMenu.vue +3 -3
- package/dist/src/components/UiPopover/README.md +56 -0
- package/dist/src/components/UiPopover/UiPopover.stories.ts +49 -0
- package/dist/src/components/UiPopover/UiPopover.vue +187 -0
- package/dist/src/components/UiRadioButton/README.md +44 -0
- package/dist/src/components/UiRadioButton/UiRadioButton.stories.ts +85 -0
- package/dist/src/components/UiRadioButton/UiRadioButton.vue +82 -0
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.spec.ts +5 -5
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.stories.ts +5 -30
- package/dist/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +44 -69
- package/dist/src/components/UiSearchBar/README.md +40 -37
- package/dist/src/components/UiSearchBar/UiSearchBar.spec.ts +6 -23
- package/dist/src/components/UiSearchBar/UiSearchBar.stories.ts +25 -127
- package/dist/src/components/UiSearchBar/UiSearchBar.vue +73 -179
- package/dist/src/components/UiSearchInput/UiSearchInput.vue +27 -22
- package/dist/src/components/UiSection/UiSection.vue +4 -4
- package/dist/src/components/UiSectionDivider/UiSectionDivider.vue +3 -3
- package/dist/src/components/UiSelect/UiSelect.stories.ts +1 -1
- package/dist/src/components/UiSelect/UiSelect.vue +17 -76
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.spec.ts +1 -1
- package/dist/src/components/UiSkeletonBox/UiSkeletonBox.vue +12 -17
- package/dist/src/components/UiSnackbar/UiSnackbar.spec.ts +45 -0
- package/dist/src/components/UiSnackbar/UiSnackbar.stories.ts +19 -22
- package/dist/src/components/UiSnackbar/UiSnackbar.vue +23 -26
- package/dist/src/components/UiSpinner/README.md +6 -4
- package/dist/src/components/UiSpinner/UiSpinner.spec.ts +33 -19
- package/dist/src/components/UiSpinner/UiSpinner.stories.ts +16 -20
- package/dist/src/components/UiSpinner/UiSpinner.vue +55 -87
- package/dist/src/components/UiTextButton/UiTextButton.spec.ts +3 -3
- package/dist/src/components/UiTextButton/UiTextButton.stories.ts +1 -0
- package/dist/src/components/UiTextButton/UiTextButton.vue +28 -9
- package/dist/src/components/UiToggleButton/README.md +16 -15
- package/dist/src/components/UiToggleButton/UiToggleButton.spec.ts +48 -62
- package/dist/src/components/UiToggleButton/UiToggleButton.stories.ts +30 -40
- package/dist/src/components/UiToggleButton/UiToggleButton.vue +54 -129
- package/dist/src/components/UiTooltip/README.md +25 -36
- package/dist/src/components/UiTooltip/UiTooltip.spec.ts +45 -25
- package/dist/src/components/UiTooltip/UiTooltip.stories.ts +21 -64
- package/dist/src/components/UiTooltip/UiTooltip.vue +64 -136
- package/dist/src/components/index.ts +4 -6
- package/dist/src/compositions/useBreakpoints/UseBreakpoints.stories.vue +4 -2
- package/dist/src/tailwindPreset.css +161 -56
- package/dist/src/types/index.ts +1 -0
- package/dist/src/utils/cn.spec.ts +21 -4
- package/dist/src/utils/cn.ts +11 -4
- package/dist/style.css +1 -1
- package/dist/tailwindPreset.css +161 -56
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/cn.d.ts +8 -0
- package/dist/{video overlay-DfhF7VpE.js → video-overlay-D6e61Eo7.js} +1 -1
- package/package.json +1 -2
- package/src/assets/icons/{bookmark-fill.vue → bookmark-filled.vue} +1 -1
- package/src/assets/icons/bookmark.vue +4 -7
- package/src/assets/icons/flag-filled.vue +4 -4
- package/src/assets/icons/folder-filled.vue +4 -4
- package/src/assets/icons/info-filled.vue +4 -4
- package/src/assets/icons/map-filled.vue +13 -0
- package/src/assets/icons/map.vue +1 -1
- package/src/assets/icons/play.vue +1 -1
- package/src/assets/icons/spinner.vue +27 -3
- package/src/components/DpaMediaItem/DpaMediaItem.vue +17 -17
- package/src/components/UiBadge/README.md +8 -13
- package/src/components/UiBadge/UiBadge.vue +29 -77
- package/src/components/UiButton/README.md +20 -18
- package/src/components/UiButton/UiButton.vue +55 -111
- package/src/components/UiButtonGroup/UiButtonGroup.vue +23 -1
- package/src/components/UiCard/UiCard.vue +3 -3
- package/src/components/UiCheckBoxGroup/UiCheckBoxGroup.vue +2 -3
- package/src/components/UiCheckbox/README.md +4 -16
- package/src/components/UiCheckbox/UiCheckbox.vue +48 -84
- package/src/components/UiChip/README.md +10 -5
- package/src/components/UiChip/UiChip.vue +31 -33
- package/src/components/UiCollapseNavigation/README.md +3 -3
- package/src/components/UiCollapseNavigation/UiCollapseNavigation.vue +8 -6
- package/src/components/UiColorPicker/UiColorPicker.vue +21 -60
- package/src/components/UiColorPicker/lib/colors.ts +9 -9
- package/src/components/UiDatePicker/README.md +68 -46
- package/src/components/UiDatePicker/UiDatePicker.vue +301 -432
- package/src/components/UiDialog/README.md +17 -22
- package/src/components/UiDialog/UiDialog.vue +75 -104
- package/src/components/UiFilterBadge/README.md +7 -7
- package/src/components/UiFilterBadge/UiFilterBadge.vue +31 -26
- package/src/components/UiFilterButton/README.md +2 -0
- package/src/components/UiFilterButton/UiFilterButton.vue +31 -23
- package/src/components/UiIcon/UiIcon.vue +24 -25
- package/src/components/UiIcon/icons.ts +113 -141
- package/src/components/UiIconButton/UiIconButton.vue +28 -10
- package/src/components/UiInfoContent/README.md +7 -8
- package/src/components/UiInfoContent/UiInfoContent.vue +34 -33
- package/src/components/UiInput/README.md +15 -32
- package/src/components/UiInput/UiInput.vue +87 -286
- package/src/components/UiLabel/README.md +0 -9
- package/src/components/UiLabel/UiLabel.vue +1 -1
- package/src/components/UiList/UiList.vue +22 -0
- package/src/components/UiListItem/UiListItem.vue +73 -93
- package/src/components/UiMenu/README.md +64 -7
- package/src/components/UiMenu/UiMenu.vue +228 -408
- package/src/components/UiMenu/UiMenuItem.vue +28 -9
- package/src/components/UiMenu/UiMenuList.vue +22 -0
- package/src/components/UiOverlay/README.md +1 -1
- package/src/components/UiOverlay/UiOverlay.vue +2 -2
- package/src/components/UiOverlayMenu/README.md +1 -1
- package/src/components/UiOverlayMenu/UiOverlayMenu.vue +3 -3
- package/src/components/UiPopover/README.md +56 -0
- package/src/components/UiPopover/UiPopover.vue +187 -0
- package/src/components/UiRadioButton/README.md +44 -0
- package/src/components/UiRadioButton/UiRadioButton.vue +82 -0
- package/src/components/UiRadioInputGroup/UiRadioInputGroup.vue +44 -69
- package/src/components/UiSearchBar/README.md +40 -37
- package/src/components/UiSearchBar/UiSearchBar.vue +73 -179
- package/src/components/UiSearchInput/UiSearchInput.vue +27 -22
- package/src/components/UiSection/UiSection.vue +4 -4
- package/src/components/UiSectionDivider/UiSectionDivider.vue +3 -3
- package/src/components/UiSelect/UiSelect.vue +17 -76
- package/src/components/UiSkeletonBox/UiSkeletonBox.vue +12 -17
- package/src/components/UiSnackbar/UiSnackbar.vue +23 -26
- package/src/components/UiSpinner/README.md +6 -4
- package/src/components/UiSpinner/UiSpinner.vue +55 -87
- package/src/components/UiTextButton/UiTextButton.vue +28 -9
- package/src/components/UiToggleButton/README.md +16 -15
- package/src/components/UiToggleButton/UiToggleButton.vue +54 -129
- package/src/components/UiTooltip/README.md +25 -36
- package/src/components/UiTooltip/UiTooltip.vue +64 -136
- package/src/tailwindPreset.css +161 -56
- package/src/types/index.ts +1 -0
- package/src/utils/cn.ts +11 -4
- package/dist/assets/icons/flag-outline.vue.d.ts +0 -3
- package/dist/assets/icons/folder-fill.vue.d.ts +0 -3
- package/dist/assets/icons/graphic-circled.vue.d.ts +0 -3
- package/dist/assets/icons/graphic-filled.vue.d.ts +0 -3
- package/dist/assets/icons/image focus point.vue.d.ts +0 -3
- package/dist/assets/icons/info-fill.vue.d.ts +0 -3
- package/dist/assets/icons/lock-filled.vue.d.ts +0 -3
- package/dist/assets/icons/map-outline.vue.d.ts +0 -3
- package/dist/assets/icons/paperplane.vue.d.ts +0 -3
- package/dist/assets/icons/pause-circle.vue.d.ts +0 -3
- package/dist/assets/icons/picture-circled.vue.d.ts +0 -3
- package/dist/assets/icons/picture-filled.vue.d.ts +0 -3
- package/dist/assets/icons/picture-gallery.vue.d.ts +0 -3
- package/dist/assets/icons/play-circle.vue.d.ts +0 -3
- package/dist/assets/icons/play-fill.vue.d.ts +0 -3
- package/dist/assets/icons/plus-circle.vue.d.ts +0 -3
- package/dist/assets/icons/saved-search-fill.vue.d.ts +0 -3
- package/dist/assets/icons/sidebar-fill.vue.d.ts +0 -3
- package/dist/assets/icons/star-fill.vue.d.ts +0 -3
- package/dist/assets/icons/text-circled.vue.d.ts +0 -3
- package/dist/assets/icons/text-filled.vue.d.ts +0 -3
- package/dist/assets/icons/video overlay.vue.d.ts +0 -3
- package/dist/assets/icons/video-circled.vue.d.ts +0 -3
- package/dist/assets/icons/video-filled.vue.d.ts +0 -3
- package/dist/assets/icons/video-rounded.vue.d.ts +0 -3
- package/dist/audio-circled-amRbTaDb.js +0 -15
- package/dist/audio-filled-C7m_-PTb.js +0 -15
- package/dist/bookmark-fill-DbkrXmPt.js +0 -20
- package/dist/components/UiAutocomplete/UiAutocomplete.vue.d.ts +0 -22
- package/dist/components/UiFilterBadgeButton/UiFilterBadgeButton.vue.d.ts +0 -29
- package/dist/components/UiSimpleInput/UiSimpleInput.vue.d.ts +0 -20
- package/dist/filter-outline-ChWKUbSt.js +0 -16
- package/dist/flag-filled-CdVD_QxY.js +0 -18
- package/dist/flag-outline-ChGgKT6P.js +0 -18
- package/dist/folder-filled-zwvSw3Sd.js +0 -18
- package/dist/graphic-circled-BtuNYmPh.js +0 -15
- package/dist/graphic-filled-DXQvxz4s.js +0 -15
- package/dist/info-filled-Btao1rhT.js +0 -18
- package/dist/lock-filled-C5I60_d0.js +0 -18
- package/dist/paperplane-ed0y9oB6.js +0 -18
- package/dist/pause-circle-ab18LhX3.js +0 -19
- package/dist/picture-circled-DYsNZNYH.js +0 -15
- package/dist/picture-filled-CQYRN3Fa.js +0 -15
- package/dist/picture-gallery-BgWYQrqC.js +0 -16
- package/dist/play-BXy8WcYq.js +0 -18
- package/dist/play-circle-B88YxOh-.js +0 -18
- package/dist/play-fill-nWPoHjD3.js +0 -18
- package/dist/plus-circle-DKWKVMiq.js +0 -18
- package/dist/spinner-dy09pOOm.js +0 -13
- package/dist/src/assets/icons/audio-circled.vue +0 -12
- package/dist/src/assets/icons/audio-filled.vue +0 -12
- package/dist/src/assets/icons/bookmark-outlined.vue +0 -12
- package/dist/src/assets/icons/filter-outline.vue +0 -8
- package/dist/src/assets/icons/flag-fill.vue +0 -13
- package/dist/src/assets/icons/flag-outline.vue +0 -13
- package/dist/src/assets/icons/folder-fill.vue +0 -13
- package/dist/src/assets/icons/graphic-circled.vue +0 -12
- package/dist/src/assets/icons/graphic-filled.vue +0 -12
- package/dist/src/assets/icons/info-fill.vue +0 -13
- package/dist/src/assets/icons/lock-filled.vue +0 -13
- package/dist/src/assets/icons/map-outline.vue +0 -13
- package/dist/src/assets/icons/paperplane.vue +0 -13
- package/dist/src/assets/icons/pause-circle.vue +0 -14
- package/dist/src/assets/icons/picture-circled.vue +0 -12
- package/dist/src/assets/icons/picture-filled.vue +0 -12
- package/dist/src/assets/icons/picture-gallery.vue +0 -13
- package/dist/src/assets/icons/play-circle.vue +0 -13
- package/dist/src/assets/icons/play-fill.vue +0 -13
- package/dist/src/assets/icons/plus-circle.vue +0 -13
- package/dist/src/assets/icons/star-fill.vue +0 -13
- package/dist/src/assets/icons/text-circled.vue +0 -12
- package/dist/src/assets/icons/text-filled.vue +0 -12
- package/dist/src/assets/icons/video-circled.vue +0 -12
- package/dist/src/assets/icons/video-filled.vue +0 -12
- package/dist/src/assets/icons/video-rounded.vue +0 -13
- package/dist/src/components/UiAutocomplete/README.md +0 -44
- package/dist/src/components/UiAutocomplete/UiAutocomplete.spec.ts +0 -39
- package/dist/src/components/UiAutocomplete/UiAutocomplete.stories.ts +0 -46
- package/dist/src/components/UiAutocomplete/UiAutocomplete.vue +0 -159
- package/dist/src/components/UiFilterBadgeButton/README.md +0 -38
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.spec.ts +0 -41
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.stories.ts +0 -56
- package/dist/src/components/UiFilterBadgeButton/UiFilterBadgeButton.vue +0 -50
- package/dist/src/components/UiSimpleInput/README.md +0 -38
- package/dist/src/components/UiSimpleInput/UiSimpleInput.spec.ts +0 -58
- package/dist/src/components/UiSimpleInput/UiSimpleInput.stories.ts +0 -53
- package/dist/src/components/UiSimpleInput/UiSimpleInput.vue +0 -98
- package/dist/src/utils/index.spec.ts +0 -12
- package/dist/star-fill-DIXwg3gQ.js +0 -18
- package/dist/text-circled-Cykzn5-2.js +0 -15
- package/dist/text-filled-BwOhn26K.js +0 -15
- package/dist/video-circled-Bw9Miyyr.js +0 -15
- package/dist/video-filled-B5Td1M5L.js +0 -15
- package/src/assets/icons/audio-circled.vue +0 -12
- package/src/assets/icons/audio-filled.vue +0 -12
- package/src/assets/icons/bookmark-outlined.vue +0 -12
- package/src/assets/icons/filter-outline.vue +0 -8
- package/src/assets/icons/flag-fill.vue +0 -13
- package/src/assets/icons/flag-outline.vue +0 -13
- package/src/assets/icons/folder-fill.vue +0 -13
- package/src/assets/icons/graphic-circled.vue +0 -12
- package/src/assets/icons/graphic-filled.vue +0 -12
- package/src/assets/icons/info-fill.vue +0 -13
- package/src/assets/icons/lock-filled.vue +0 -13
- package/src/assets/icons/map-outline.vue +0 -13
- package/src/assets/icons/paperplane.vue +0 -13
- package/src/assets/icons/pause-circle.vue +0 -14
- package/src/assets/icons/picture-circled.vue +0 -12
- package/src/assets/icons/picture-filled.vue +0 -12
- package/src/assets/icons/picture-gallery.vue +0 -13
- package/src/assets/icons/play-circle.vue +0 -13
- package/src/assets/icons/play-fill.vue +0 -13
- package/src/assets/icons/plus-circle.vue +0 -13
- package/src/assets/icons/star-fill.vue +0 -13
- package/src/assets/icons/text-circled.vue +0 -12
- package/src/assets/icons/text-filled.vue +0 -12
- package/src/assets/icons/video-circled.vue +0 -12
- package/src/assets/icons/video-filled.vue +0 -12
- package/src/assets/icons/video-rounded.vue +0 -13
- package/src/components/UiAutocomplete/README.md +0 -44
- package/src/components/UiAutocomplete/UiAutocomplete.vue +0 -159
- package/src/components/UiFilterBadgeButton/README.md +0 -38
- package/src/components/UiFilterBadgeButton/UiFilterBadgeButton.vue +0 -50
- package/src/components/UiSimpleInput/README.md +0 -38
- package/src/components/UiSimpleInput/UiSimpleInput.vue +0 -98
- /package/dist/{alert-BMmH4q6y.js → alert-CdAp0ksh.js} +0 -0
- /package/dist/assets/icons/{alert-fill.vue.d.ts → alert-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{audio-circled.vue.d.ts → bell-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{audio-filled.vue.d.ts → bookmark-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{bell-fill.vue.d.ts → comment-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{bookmark-fill.vue.d.ts → image-focus-point.vue.d.ts} +0 -0
- /package/dist/assets/icons/{bookmark-outlined.vue.d.ts → map-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{comment-fill.vue.d.ts → saved-search-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{filter-outline.vue.d.ts → sidebar-filled.vue.d.ts} +0 -0
- /package/dist/assets/icons/{flag-fill.vue.d.ts → video-overlay.vue.d.ts} +0 -0
- /package/dist/{audio-BN2iVbbp.js → audio-Cgg6MUeM.js} +0 -0
- /package/dist/{audio-DLQLFJ3x.js → audio-DS8plcCU.js} +0 -0
- /package/dist/{bag-Br7SrnRJ.js → bag-B28jMR7E.js} +0 -0
- /package/dist/{bell-kOosto6B.js → bell-k_sZgnpL.js} +0 -0
- /package/dist/{book-D0Xsp8As.js → book-CqUJ_JRz.js} +0 -0
- /package/dist/{box-Bw_tD7Nd.js → box-BCDNtaq7.js} +0 -0
- /package/dist/{bulb-tXJKei6j.js → bulb-12wSYpgA.js} +0 -0
- /package/dist/{call-BdzulBfZ.js → call-CW04DyHi.js} +0 -0
- /package/dist/{camera-D8so0Wqg.js → camera-CbeyxVU5.js} +0 -0
- /package/dist/{check-CTBqwPMY.js → check-BpPjjXqx.js} +0 -0
- /package/dist/{checklist-CVBb2iLT.js → checklist-CFCfO7IN.js} +0 -0
- /package/dist/{checkmark-BkBvk5FP.js → checkmark-DhUksPvT.js} +0 -0
- /package/dist/{checkmark-double-9tbcPPxC.js → checkmark-double-BNGXAUiT.js} +0 -0
- /package/dist/{chevron-down-BcjUrqWQ.js → chevron-down-BjZ6BFFp.js} +0 -0
- /package/dist/{chevron-left-DdChgK6Q.js → chevron-left-Z-D_OY2t.js} +0 -0
- /package/dist/{chevron-right-BR3OVahz.js → chevron-right-D1GfZQB6.js} +0 -0
- /package/dist/{chevron-up-R3uiTZDq.js → chevron-up-DWZ1F8w0.js} +0 -0
- /package/dist/{clipboard-BFi2VbBj.js → clipboard-CNCIToKK.js} +0 -0
- /package/dist/{clock-C3D4TRfx.js → clock-CqWSNhFX.js} +0 -0
- /package/dist/{close-CbIMNMG_.js → close-oHIGT_JQ.js} +0 -0
- /package/dist/{cloud-save-CQCTGXxN.js → cloud-save-CWTQ5IHS.js} +0 -0
- /package/dist/{code-ChJ2qMcZ.js → code-BD5nOHqK.js} +0 -0
- /package/dist/{collapse-DISUbIVr.js → collapse-D6QeCZC7.js} +0 -0
- /package/dist/{color-palette-B4pqFFIE.js → color-palette-BpONORjj.js} +0 -0
- /package/dist/{comment-CzF3hkpf.js → comment-D5RZxZWG.js} +0 -0
- /package/dist/{copy-CywrUiK2.js → copy-BDnlScSS.js} +0 -0
- /package/dist/{copy-link-DqcNlpUK.js → copy-link-BSfa58Tb.js} +0 -0
- /package/dist/{delete-Bl6aSpBn.js → delete-dDyi0gau.js} +0 -0
- /package/dist/{download-BdnIOaET.js → download-B-ZTsIBv.js} +0 -0
- /package/dist/{dpa-id-4HKRxUEF.js → dpa-id-DRnjTcHI.js} +0 -0
- /package/dist/{edit-KtC1G-_s.js → edit-BbFkVyRd.js} +0 -0
- /package/dist/{edit-add-DjUq6zXq.js → edit-add-CAPOsjts.js} +0 -0
- /package/dist/{eil-CPA4kVQM.js → eil-CzEP-9Lo.js} +0 -0
- /package/dist/{emoji-C2BmBFxC.js → emoji-BjLqvypC.js} +0 -0
- /package/dist/{emoji-add-NHqne_6m.js → emoji-add-BB4fB4th.js} +0 -0
- /package/dist/{envelope-BDSOA_J7.js → envelope-DftzB5Ol.js} +0 -0
- /package/dist/{event-Bo_sb247.js → event-FR1JMgj6.js} +0 -0
- /package/dist/{expand-BK_uzKmx.js → expand-DaVQ0gpz.js} +0 -0
- /package/dist/{external-link-BPYyKPIa.js → external-link-2Es0qWwd.js} +0 -0
- /package/dist/{file-B97T9C2M.js → file-AHJ00f5M.js} +0 -0
- /package/dist/{file-pdf-lFk-5brY.js → file-pdf-CJDdjKS0.js} +0 -0
- /package/dist/{filter-BIJnBkRa.js → filter-CXjBFUUg.js} +0 -0
- /package/dist/{flag-DNP4L-y-.js → flag-CbX4PUMS.js} +0 -0
- /package/dist/{flags-G-Nbo5ST.js → flags-Buo1j-9g.js} +0 -0
- /package/dist/{flash-9TBwsdOx.js → flash-Dlr5gL01.js} +0 -0
- /package/dist/{folder-s6NWFqjh.js → folder-DQwCjGZC.js} +0 -0
- /package/dist/{folder-add-B-l2wmwY.js → folder-add-zPr2Gmtj.js} +0 -0
- /package/dist/{gallery-B8I5lJ51.js → gallery-CfUbckcB.js} +0 -0
- /package/dist/{gallery-DSmOoCFT.js → gallery-DPl8qZQu.js} +0 -0
- /package/dist/{graphic-BMtcGj5R.js → graphic-BbhCuiiE.js} +0 -0
- /package/dist/{graphic-d-_5qmyr.js → graphic-nXH5ifxc.js} +0 -0
- /package/dist/{graphics-eur3JZ_7.js → graphics-Dp8pQzs-.js} +0 -0
- /package/dist/{grid-1-DOm2nS5Y.js → grid-1-DZUEMbtb.js} +0 -0
- /package/dist/{grid-2-D9XOIyFO.js → grid-2-BQ-9yylY.js} +0 -0
- /package/dist/{grid-3-CR1E0m9u.js → grid-3-BGhZrrCJ.js} +0 -0
- /package/dist/{grid-4-QKKeiUGc.js → grid-4-DY9N435A.js} +0 -0
- /package/dist/{grid-6-C5bCbXur.js → grid-6-B0BR3wbB.js} +0 -0
- /package/dist/{grid-9-FNxsRYRg.js → grid-9-BWhM7qat.js} +0 -0
- /package/dist/{grid-masonry-CuwXzdZ6.js → grid-masonry-1e9tYkSK.js} +0 -0
- /package/dist/{grid-masonry-9-CxLBpKCz.js → grid-masonry-9-DiiX1pQo.js} +0 -0
- /package/dist/{help-DkjfD818.js → help-CLfj4LQM.js} +0 -0
- /package/dist/{home-njHAfgwc.js → home-D6htLjOF.js} +0 -0
- /package/dist/{image-C2RlXeDP.js → image-DnYnaoeu.js} +0 -0
- /package/dist/{impact-high-C0SywXT1.js → impact-high-DuECIU0d.js} +0 -0
- /package/dist/{impact-low-yDd0jU4k.js → impact-low-DMtzvmWi.js} +0 -0
- /package/dist/{impact-medium-Cc_nInN7.js → impact-medium-B5-WfnV2.js} +0 -0
- /package/dist/{impact-very-high-DiOgG_Ji.js → impact-very-high-C1K1nCE9.js} +0 -0
- /package/dist/{impact-very-low-CYW4RgJO.js → impact-very-low-CXbiBK6E.js} +0 -0
- /package/dist/{info-NBFIJ3YI.js → info-Ca-64c_9.js} +0 -0
- /package/dist/{label-CTr8hHIv.js → label-D8X5FrVe.js} +0 -0
- /package/dist/{label-filled-CnTpOqvX.js → label-filled-DjSc-Fk4.js} +0 -0
- /package/dist/{language-UqPESR_Z.js → language-OE6ZfER_.js} +0 -0
- /package/dist/{latest-Cq12zjMs.js → latest-D0dlub5f.js} +0 -0
- /package/dist/{lightbulb-BpK9qU_u.js → lightbulb-DKJrsADi.js} +0 -0
- /package/dist/{list-DKcsNf15.js → list-BviTrZEl.js} +0 -0
- /package/dist/{list-search-BzZuYf_P.js → list-search-Ck6anukf.js} +0 -0
- /package/dist/{lock-BFfHVSog.js → lock-C5vUwbkA.js} +0 -0
- /package/dist/{mail-pagEqHtM.js → mail-CtA-d2d0.js} +0 -0
- /package/dist/{menu-j4cvnLP8.js → menu-DFzmvE6J.js} +0 -0
- /package/dist/{minus-CGsJ-jkT.js → minus-COmVHb9S.js} +0 -0
- /package/dist/{more-horizontal-CDZjG5h8.js → more-horizontal-DzHbd3yn.js} +0 -0
- /package/dist/{more-vertical-YUehtvol.js → more-vertical-CiJm6ZaV.js} +0 -0
- /package/dist/{move-CiU3PwqY.js → move-CUyDTrlz.js} +0 -0
- /package/dist/{move-up-down-H-qHtTwO.js → move-up-down-3AiMDXGu.js} +0 -0
- /package/dist/{navigation-DmqoQINO.js → navigation-BryXzz7G.js} +0 -0
- /package/dist/{note-BZ3q-D4L.js → note-CXIfkCb0.js} +0 -0
- /package/dist/{offline-CLl0pwpv.js → offline-BlqqTvjx.js} +0 -0
- /package/dist/{package-iJOVTpPH.js → package-BEkSqrZt.js} +0 -0
- /package/dist/{package-D_Bh8bgp.js → package-pKbuF39E.js} +0 -0
- /package/dist/{paper-plane-DcYms0cj.js → paper-plane-CwVjTgAB.js} +0 -0
- /package/dist/{pause-COAxeJRm.js → pause-D-nbILiS.js} +0 -0
- /package/dist/{pdf-BweFqxRM.js → pdf-C7o5LP5D.js} +0 -0
- /package/dist/{pen-CmBOMgX_.js → pen-5O6IZM5k.js} +0 -0
- /package/dist/{pen-check-BApB0Zi2.js → pen-check-GQoVyZ_V.js} +0 -0
- /package/dist/{people-D07vIou7.js → people-CFA1u84D.js} +0 -0
- /package/dist/{phone-B9TyVbBj.js → phone-BmL2p-7F.js} +0 -0
- /package/dist/{picture-D7kBYru_.js → picture-BBiWVmta.js} +0 -0
- /package/dist/{picture-DJRwU5Gl.js → picture-jf1PkZfY.js} +0 -0
- /package/dist/{pin-BlBzA8ov.js → pin-CTaBntUQ.js} +0 -0
- /package/dist/{planning-BhE-A4FO.js → planning-s3sRV6ix.js} +0 -0
- /package/dist/{plus-CmEv_iHA.js → plus-Dm-ZxxHJ.js} +0 -0
- /package/dist/{print-ChdLXKHj.js → print-B5fjHJZL.js} +0 -0
- /package/dist/{refresh-C7k19NtO.js → refresh-gU5ZZuG6.js} +0 -0
- /package/dist/{reset-CpXqaOj5.js → reset-CwU1iGF5.js} +0 -0
- /package/dist/{responsive-CKNXzAo1.js → responsive-BHNmDmM6.js} +0 -0
- /package/dist/{rubix-thema-Cmk-5-bm.js → rubix-thema-BZvVEFud.js} +0 -0
- /package/dist/{save-BX3-Z5qP.js → save-mTHDeUnL.js} +0 -0
- /package/dist/{saved-search-Be8D9tJ9.js → saved-search-DJO4_yPH.js} +0 -0
- /package/dist/{search-BeIwOzJl.js → search-B5yHBLf_.js} +0 -0
- /package/dist/{settings-CLChu_zl.js → settings-Hb_Y7Y53.js} +0 -0
- /package/dist/{share-j6ezShBH.js → share-OpdW8ZmZ.js} +0 -0
- /package/dist/{share-alternative-BD-WQYvk.js → share-alternative-C3pSVTYb.js} +0 -0
- /package/dist/{sidebar-CPe20Xae.js → sidebar-DtAUGBof.js} +0 -0
- /package/dist/{slack-BjvLF16S.js → slack-mCoCq7b9.js} +0 -0
- /package/dist/{slider-config-CTzwxojK.js → slider-config-yjKG-9r9.js} +0 -0
- /package/dist/{spellcheck-thqRUMx9.js → spellcheck-bP4DPCKJ.js} +0 -0
- /package/dist/src/assets/icons/{alert-fill.vue → alert-filled.vue} +0 -0
- /package/dist/src/assets/icons/{bell-fill.vue → bell-filled.vue} +0 -0
- /package/dist/src/assets/icons/{comment-fill.vue → comment-filled.vue} +0 -0
- /package/dist/src/assets/icons/{image focus point.vue → image-focus-point.vue} +0 -0
- /package/dist/src/assets/icons/{saved-search-fill.vue → saved-search-filled.vue} +0 -0
- /package/dist/src/assets/icons/{sidebar-fill.vue → sidebar-filled.vue} +0 -0
- /package/dist/src/assets/icons/{video overlay.vue → video-overlay.vue} +0 -0
- /package/dist/{standard-view-dE52BPUm.js → standard-view-CN0ixRE4.js} +0 -0
- /package/dist/{star-uv_o0S9H.js → star-BKWqck4u.js} +0 -0
- /package/dist/{star-filled-BqrpxMqq.js → star-filled-CdXMXBn7.js} +0 -0
- /package/dist/{stop-CrmQCpqp.js → stop-B8l9lmwT.js} +0 -0
- /package/dist/{story-BdUCZQmb.js → story-Cxy8EkgB.js} +0 -0
- /package/dist/{story-DEvV0oQv.js → story-DOxZDwJp.js} +0 -0
- /package/dist/{sync-CPmOdu5b.js → sync-BW_fAqt6.js} +0 -0
- /package/dist/{tasks-TKH8SUBe.js → tasks-DLNuebMi.js} +0 -0
- /package/dist/{text-7i2atLMM.js → text-Bsl2QZz3.js} +0 -0
- /package/dist/{text-BMhu0paW.js → text-CPSps-qh.js} +0 -0
- /package/dist/{thumbs-down-LH8SIeIF.js → thumbs-down-pSf_ND98.js} +0 -0
- /package/dist/{thumbs-up-WZQzpqKr.js → thumbs-up-Braz70N6.js} +0 -0
- /package/dist/{thumbs-up-double-SeGWEXZ_.js → thumbs-up-double-C6foUkOq.js} +0 -0
- /package/dist/{topic-63EhQ_l1.js → topic-BamlhBNV.js} +0 -0
- /package/dist/{union-DKjbjP-9.js → union-CYw04THu.js} +0 -0
- /package/dist/{upload-yjh9wxAA.js → upload-BL_iLqTa.js} +0 -0
- /package/dist/{user-need-divert-me-B_cSVEIY.js → user-need-divert-me-2RaqdMMH.js} +0 -0
- /package/dist/{user-need-educate-me-DOgCmShA.js → user-need-educate-me-CRi42bIc.js} +0 -0
- /package/dist/{user-need-give-me-perspective-2wacZI2F.js → user-need-give-me-perspective-BIF7v9vF.js} +0 -0
- /package/dist/{user-need-help-me-D4VE0IcH.js → user-need-help-me-O0XSLzP-.js} +0 -0
- /package/dist/{user-need-touch-me-u3n8c5IH.js → user-need-touch-me-BueJ3SSh.js} +0 -0
- /package/dist/{user-need-update-me-BcDyXzME.js → user-need-update-me-DP574fsn.js} +0 -0
- /package/dist/{video-BViz7WnQ.js → video-CWHoNlON.js} +0 -0
- /package/dist/{video-hhs4-tLq.js → video-DhS7zpNF.js} +0 -0
- /package/dist/{view-C9Xks5Gy.js → view-Bc5W8beK.js} +0 -0
- /package/dist/{view-off-BuSbQwX0.js → view-off-DquC2i3E.js} +0 -0
- /package/dist/{volume-up-BLQXZI5X.js → volume-up-DEzoW7Bq.js} +0 -0
- /package/src/assets/icons/{alert-fill.vue → alert-filled.vue} +0 -0
- /package/src/assets/icons/{bell-fill.vue → bell-filled.vue} +0 -0
- /package/src/assets/icons/{comment-fill.vue → comment-filled.vue} +0 -0
- /package/src/assets/icons/{image focus point.vue → image-focus-point.vue} +0 -0
- /package/src/assets/icons/{saved-search-fill.vue → saved-search-filled.vue} +0 -0
- /package/src/assets/icons/{sidebar-fill.vue → sidebar-filled.vue} +0 -0
- /package/src/assets/icons/{video overlay.vue → video-overlay.vue} +0 -0
|
@@ -3,544 +3,413 @@
|
|
|
3
3
|
<VueDatePicker
|
|
4
4
|
ref="datePicker"
|
|
5
5
|
v-model="date"
|
|
6
|
-
offset="10"
|
|
7
6
|
:inline="inline"
|
|
8
|
-
:timezone="utc ? 'utc' : undefined"
|
|
9
|
-
:class="{
|
|
10
|
-
dynamicPadding: multiCalendars,
|
|
11
|
-
singleCalWidth: !multiCalendars,
|
|
12
|
-
singleCalWithSidebar: !multiCalendars && leftSidebar,
|
|
13
|
-
}"
|
|
14
|
-
:text-input="!roundedEdges"
|
|
15
|
-
:ui="uiConfig"
|
|
16
|
-
:multi-calendars="multiCalendars"
|
|
17
7
|
:locale="locale"
|
|
18
|
-
:
|
|
19
|
-
:
|
|
20
|
-
:
|
|
21
|
-
:input-attrs="{ clearable: false }"
|
|
22
|
-
:formats="{ input: formatInput }"
|
|
8
|
+
:teleport="teleport"
|
|
9
|
+
:timezone="utc ? 'utc' : undefined"
|
|
10
|
+
:disabled="disabled"
|
|
23
11
|
:min-date="minDate"
|
|
24
12
|
:max-date="maxDate"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
:
|
|
28
|
-
:floating="{
|
|
29
|
-
arrow: menuArrow ?? false,
|
|
30
|
-
flip: autoPosition,
|
|
31
|
-
placement: 'bottom-start',
|
|
32
|
-
}"
|
|
33
|
-
:disabled="disabledState"
|
|
34
|
-
:keep-action-row="actionArea"
|
|
13
|
+
prevent-min-max-navigation
|
|
14
|
+
transitions
|
|
15
|
+
:multi-calendars="multiCalendars"
|
|
35
16
|
:month-picker="monthPicker"
|
|
36
|
-
:
|
|
17
|
+
:year-range="getYearRange"
|
|
18
|
+
:auto-apply="autoApply"
|
|
37
19
|
:config="{
|
|
38
|
-
closeOnScroll,
|
|
39
20
|
monthChangeOnScroll: false,
|
|
21
|
+
closeOnAutoApply,
|
|
22
|
+
keepActionRow: !!$slots['action-row'],
|
|
40
23
|
}"
|
|
41
|
-
|
|
24
|
+
:range="
|
|
42
25
|
monthPicker
|
|
43
|
-
?
|
|
26
|
+
? undefined
|
|
44
27
|
: {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
},
|
|
50
|
-
startDate: Array.isArray(props.selectedDate)
|
|
51
|
-
? props.selectedDate[0]
|
|
52
|
-
: (props.selectedDate as Date),
|
|
28
|
+
partialRange: false,
|
|
29
|
+
showLastInRange: false,
|
|
30
|
+
autoRange,
|
|
31
|
+
maxRange,
|
|
53
32
|
}
|
|
54
33
|
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
34
|
+
:floating="{
|
|
35
|
+
arrow: menuArrow ?? false,
|
|
36
|
+
flip: autoPosition,
|
|
37
|
+
shift: autoPosition,
|
|
38
|
+
placement: 'bottom-start',
|
|
39
|
+
}"
|
|
40
|
+
:formats="{
|
|
41
|
+
month: 'LLLL',
|
|
42
|
+
input: customFormatCallback ? customFormatCallback : formatInput,
|
|
43
|
+
}"
|
|
44
|
+
:time-config="{
|
|
45
|
+
enableTimePicker,
|
|
46
|
+
}"
|
|
47
|
+
:input-attrs="{ clearable: false }"
|
|
48
|
+
:ui="{
|
|
49
|
+
calendar: 'calendar-wrapper',
|
|
50
|
+
navBtnNext: 'nav-btn-next',
|
|
51
|
+
navBtnPrev: 'nav-btn-prev',
|
|
52
|
+
}"
|
|
53
|
+
@open="
|
|
54
|
+
emit('open');
|
|
55
|
+
internalIsOpen = true;
|
|
56
|
+
"
|
|
57
|
+
@closed="
|
|
58
|
+
emit('closed');
|
|
59
|
+
internalIsOpen = false;
|
|
60
|
+
"
|
|
61
|
+
@keydown.esc="closeMenu"
|
|
62
|
+
@range-start="emit('range-start', $event)"
|
|
63
|
+
@range-end="emit('range-end', $event)"
|
|
60
64
|
>
|
|
61
65
|
<template #dp-input="{ value }">
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
:title="value || placeholderText"
|
|
74
|
-
@click="emit('open')"
|
|
75
|
-
/>
|
|
76
|
-
<UiInput
|
|
77
|
-
v-else
|
|
78
|
-
id="desktop-datepicker"
|
|
79
|
-
:model-value="value"
|
|
80
|
-
:label="inputLabel"
|
|
81
|
-
:chevron="true"
|
|
82
|
-
:disabled="disabledState"
|
|
83
|
-
:placeholder="placeholderText"
|
|
84
|
-
/>
|
|
85
|
-
</template>
|
|
86
|
-
<template v-if="leftSidebar" #left-sidebar>
|
|
87
|
-
<div
|
|
88
|
-
class="flex w-full flex-col md:w-37 md:border-r-2 md:border-r-gray-200"
|
|
66
|
+
<UiButton
|
|
67
|
+
class="flex justify-between"
|
|
68
|
+
:class="{
|
|
69
|
+
'border-neutral-subtle': internalIsOpen,
|
|
70
|
+
'w-full min-w-0': triggerWidth === 'full',
|
|
71
|
+
'flex-none': triggerWidth === 'fit',
|
|
72
|
+
}"
|
|
73
|
+
:appearance="value ? 'primary' : 'secondary-alt'"
|
|
74
|
+
:disabled
|
|
75
|
+
size="sm"
|
|
76
|
+
data-testid="datepicker-trigger"
|
|
89
77
|
>
|
|
90
|
-
<div
|
|
91
|
-
class="flex items-center justify-between"
|
|
92
|
-
@click="mobileQuickfiltersOpen = !mobileQuickfiltersOpen"
|
|
93
|
-
>
|
|
94
|
-
<span
|
|
95
|
-
class="p-3 text-xs/4 font-semibold tracking-wider text-gray-700"
|
|
96
|
-
>
|
|
97
|
-
{{ props.quickFilterHeadline }}
|
|
98
|
-
</span>
|
|
78
|
+
<div class="flex min-w-0 items-center gap-2">
|
|
99
79
|
<UiIcon
|
|
100
|
-
v-if="
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
80
|
+
v-if="leftTriggerIcon"
|
|
81
|
+
class="shrink-0"
|
|
82
|
+
:name="leftTriggerIcon"
|
|
83
|
+
size="sm"
|
|
104
84
|
/>
|
|
85
|
+
<span class="truncate">{{ value || triggerPlaceholderText }}</span>
|
|
105
86
|
</div>
|
|
87
|
+
<UiIcon class="shrink-0" name="chevron-down" size="sm" />
|
|
88
|
+
</UiButton>
|
|
89
|
+
</template>
|
|
90
|
+
<template v-if="leftSidebar" #left-sidebar>
|
|
91
|
+
<div class="flex w-full flex-col gap-y-2 px-6 py-4">
|
|
92
|
+
<h2
|
|
93
|
+
class="text-xs/4 font-semibold tracking-wider text-neutral-subtle uppercase"
|
|
94
|
+
>
|
|
95
|
+
{{ quickFilterHeadline }}
|
|
96
|
+
</h2>
|
|
106
97
|
<div
|
|
107
|
-
|
|
108
|
-
:key="range.label"
|
|
109
|
-
:class="[
|
|
110
|
-
!mobileQuickfiltersOpen && enableQuickfilterToggle
|
|
111
|
-
? 'hidden'
|
|
112
|
-
: 'md:block',
|
|
113
|
-
]"
|
|
98
|
+
class="flex flex-col flex-nowrap items-start gap-y-2 whitespace-nowrap"
|
|
114
99
|
>
|
|
115
|
-
<
|
|
116
|
-
|
|
117
|
-
:
|
|
118
|
-
:
|
|
119
|
-
:
|
|
120
|
-
|
|
100
|
+
<button
|
|
101
|
+
v-for="filter in quickFilterRanges"
|
|
102
|
+
:key="filter.label"
|
|
103
|
+
:data-testid="filter.label"
|
|
104
|
+
class="text-sm font-semibold text-neutral-primary hover:text-primary"
|
|
105
|
+
:class="{ 'text-primary': quickFilterActive(filter.range) }"
|
|
106
|
+
@click="setQuickFilter(filter)"
|
|
121
107
|
>
|
|
122
|
-
|
|
108
|
+
{{ filter.label }}
|
|
109
|
+
</button>
|
|
123
110
|
</div>
|
|
124
111
|
</div>
|
|
125
112
|
</template>
|
|
126
|
-
<template #action-
|
|
127
|
-
<slot name="
|
|
128
|
-
|
|
129
|
-
|
|
113
|
+
<template v-if="$slots['action-row']" #action-row="slotProps">
|
|
114
|
+
<slot name="action-row" v-bind="slotProps" />
|
|
115
|
+
</template>
|
|
116
|
+
<template
|
|
117
|
+
v-if="$slots['action-extra'] || actionExtraContent"
|
|
118
|
+
#action-extra="slotProps"
|
|
119
|
+
>
|
|
120
|
+
<slot name="action-extra" v-bind="{ ...slotProps, reset }">
|
|
121
|
+
<div v-if="actionExtraContent">
|
|
122
|
+
{{ actionExtraContent }}
|
|
130
123
|
</div>
|
|
131
124
|
</slot>
|
|
132
125
|
</template>
|
|
133
|
-
<template #
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
>{{ cancel }}
|
|
139
|
-
</UiButton>
|
|
140
|
-
<UiButton
|
|
141
|
-
class="my-4 mr-4 p-0"
|
|
142
|
-
color="blue"
|
|
143
|
-
data-testid="ui-mobile-datepicker-submit-button"
|
|
144
|
-
@click="selectDate"
|
|
145
|
-
>{{ submit }}
|
|
146
|
-
</UiButton>
|
|
147
|
-
</div>
|
|
126
|
+
<template #arrow-left>
|
|
127
|
+
<UiIcon class="text-neutral-subtle" name="chevron-left" size="sm" />
|
|
128
|
+
</template>
|
|
129
|
+
<template #arrow-right>
|
|
130
|
+
<UiIcon class="text-neutral-subtle" name="chevron-right" size="sm" />
|
|
148
131
|
</template>
|
|
149
|
-
|
|
150
132
|
<template #arrow>
|
|
151
|
-
<div ref="
|
|
133
|
+
<div ref="menuArrow" class="dp__arrow_top"></div>
|
|
152
134
|
</template>
|
|
153
135
|
</VueDatePicker>
|
|
154
136
|
</div>
|
|
155
137
|
</template>
|
|
156
138
|
|
|
157
139
|
<script setup lang="ts">
|
|
140
|
+
import { type ActionRowSlotProps, VueDatePicker } from "@vuepic/vue-datepicker";
|
|
158
141
|
import "@vuepic/vue-datepicker/dist/main.css";
|
|
159
|
-
|
|
160
|
-
import { VueDatePicker } from "@vuepic/vue-datepicker";
|
|
161
|
-
import { format, getYear, type Locale, startOfMonth } from "date-fns";
|
|
142
|
+
import { format, getYear, type Locale } from "date-fns";
|
|
162
143
|
import { de } from "date-fns/locale";
|
|
163
|
-
import { computed, ref,
|
|
144
|
+
import { computed, ref, type ShallowRef, useTemplateRef } from "vue";
|
|
164
145
|
|
|
165
146
|
import UiButton from "../UiButton/UiButton.vue";
|
|
166
|
-
import UiFilterButton from "../UiFilterButton/UiFilterButton.vue";
|
|
167
147
|
import UiIcon, { type UiIconName } from "../UiIcon/UiIcon.vue";
|
|
168
|
-
import UiInput from "../UiInput/UiInput.vue";
|
|
169
|
-
|
|
170
|
-
type DateType = Date | [Date, Date] | string | { month: number; year: number };
|
|
171
148
|
|
|
172
149
|
export interface PresetRange {
|
|
173
150
|
label: string;
|
|
174
151
|
range: [Date, Date] | { year: number; month: number };
|
|
175
|
-
isSelected?: boolean;
|
|
176
152
|
name?: string;
|
|
177
|
-
style?: Record<string, string>;
|
|
178
|
-
slot?: string;
|
|
179
153
|
}
|
|
154
|
+
export type DateType =
|
|
155
|
+
| Date
|
|
156
|
+
| [Date, Date]
|
|
157
|
+
| string
|
|
158
|
+
| { month: number; year: number };
|
|
180
159
|
|
|
181
|
-
const
|
|
182
|
-
"
|
|
183
|
-
close: [];
|
|
184
|
-
open: [];
|
|
185
|
-
reset: [];
|
|
186
|
-
"quickfilter-changed": [PresetRange];
|
|
187
|
-
}>();
|
|
160
|
+
const datePicker =
|
|
161
|
+
useTemplateRef<InstanceType<typeof VueDatePicker>>("datePicker");
|
|
188
162
|
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
definesRange?: boolean;
|
|
192
|
-
multiCalendars?: boolean;
|
|
193
|
-
enableTimePicker?: boolean;
|
|
194
|
-
autoApply?: boolean;
|
|
195
|
-
closeOnAutoApply?: boolean;
|
|
196
|
-
roundedEdges?: boolean;
|
|
197
|
-
locale?: Locale;
|
|
198
|
-
placeholderText?: string;
|
|
199
|
-
quickFilterRanges?: PresetRange[];
|
|
200
|
-
quickFilterHeadline?: string;
|
|
201
|
-
selectedDate?: DateType;
|
|
202
|
-
autoPosition?: boolean;
|
|
203
|
-
leftSidebar?: boolean;
|
|
204
|
-
actionArea?: boolean;
|
|
205
|
-
actionAreaExtraContent?: string;
|
|
206
|
-
cancel?: string;
|
|
207
|
-
submit?: string;
|
|
208
|
-
firstAvailableDate?: number;
|
|
209
|
-
minDate?: Date | string;
|
|
210
|
-
maxDate?: Date;
|
|
211
|
-
autoRange?: string | number | undefined;
|
|
212
|
-
maxRange?: number | string | undefined;
|
|
213
|
-
activeState?: boolean;
|
|
214
|
-
disabledState?: boolean;
|
|
215
|
-
monthPicker?: boolean;
|
|
216
|
-
customFormatCallback?: (date: Date | [Date, Date]) => string;
|
|
217
|
-
inputLabel?: string;
|
|
218
|
-
iconLeft?: UiIconName | null;
|
|
219
|
-
inline?: boolean;
|
|
220
|
-
utc?: boolean;
|
|
221
|
-
teleport?: boolean | string;
|
|
222
|
-
closeOnScroll?: boolean;
|
|
223
|
-
enableQuickfilterToggle?: boolean;
|
|
224
|
-
}>(),
|
|
225
|
-
{
|
|
226
|
-
definesRange: true,
|
|
227
|
-
multiCalendars: true,
|
|
228
|
-
locale: () => de,
|
|
229
|
-
enableTimePicker: false,
|
|
230
|
-
autoApply: true,
|
|
231
|
-
closeOnAutoApply: true,
|
|
232
|
-
placeholderText: "",
|
|
233
|
-
roundedEdges: true,
|
|
234
|
-
quickFilterHeadline: "",
|
|
235
|
-
quickFilterRanges: () => [],
|
|
236
|
-
selectedDate: "",
|
|
237
|
-
autoPosition: false,
|
|
238
|
-
leftSidebar: true,
|
|
239
|
-
actionArea: true,
|
|
240
|
-
actionAreaExtraContent: "",
|
|
241
|
-
cancel: "",
|
|
242
|
-
submit: "",
|
|
243
|
-
firstAvailableDate: 1948,
|
|
244
|
-
minDate: () => new Date("1948-01-01"),
|
|
245
|
-
maxDate: undefined,
|
|
246
|
-
autoRange: undefined,
|
|
247
|
-
maxRange: undefined,
|
|
248
|
-
activeState: false,
|
|
249
|
-
disabledState: false,
|
|
250
|
-
monthPicker: false,
|
|
251
|
-
inputLabel: "",
|
|
252
|
-
iconLeft: null,
|
|
253
|
-
inline: false,
|
|
254
|
-
utc: true,
|
|
255
|
-
teleport: undefined,
|
|
256
|
-
closeOnScroll: false,
|
|
257
|
-
enableQuickfilterToggle: true,
|
|
258
|
-
customFormatCallback: undefined,
|
|
259
|
-
},
|
|
260
|
-
);
|
|
261
|
-
|
|
262
|
-
const datePickerRef = useTemplateRef("datePicker");
|
|
263
|
-
const menuArrow = ref();
|
|
264
|
-
|
|
265
|
-
const date = ref<DateType>();
|
|
266
|
-
|
|
267
|
-
const uiConfig = ref({
|
|
268
|
-
menu: "datepicker-wrapper",
|
|
269
|
-
calendar: "datepicker-calendar-instance",
|
|
270
|
-
calendarCell: "datepicker-cell",
|
|
271
|
-
});
|
|
272
|
-
|
|
273
|
-
watchEffect(() => {
|
|
274
|
-
date.value = props.selectedDate;
|
|
275
|
-
});
|
|
163
|
+
const menuArrow =
|
|
164
|
+
useTemplateRef<Readonly<ShallowRef<HTMLDivElement>>>("menuArrow");
|
|
276
165
|
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
emit("quickfilter-changed", range);
|
|
285
|
-
closePicker();
|
|
286
|
-
};
|
|
166
|
+
defineSlots<{
|
|
167
|
+
"action-row"?: (props: ActionRowSlotProps) => any;
|
|
168
|
+
"action-extra"?: (props: {
|
|
169
|
+
selectCurrentDate: () => void;
|
|
170
|
+
reset: () => void;
|
|
171
|
+
}) => any;
|
|
172
|
+
}>();
|
|
287
173
|
|
|
288
|
-
const
|
|
289
|
-
const startDate = format(dateRange[0], "dd.MM.yyyy");
|
|
290
|
-
const endDate = format(dateRange[1], "dd.MM.yyyy");
|
|
174
|
+
const date = defineModel<DateType>();
|
|
291
175
|
|
|
292
|
-
|
|
293
|
-
|
|
176
|
+
const emit = defineEmits<{
|
|
177
|
+
closed: [];
|
|
178
|
+
open: [];
|
|
179
|
+
"range-start": [Date];
|
|
180
|
+
"range-end": [Date];
|
|
181
|
+
"quick-filter-changed": [PresetRange];
|
|
182
|
+
}>();
|
|
294
183
|
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
184
|
+
const {
|
|
185
|
+
autoApply = true,
|
|
186
|
+
closeOnAutoApply = true,
|
|
187
|
+
inline = false,
|
|
188
|
+
disabled = false,
|
|
189
|
+
locale = de,
|
|
190
|
+
utc = undefined,
|
|
191
|
+
teleport = false,
|
|
192
|
+
minDate = new Date("1948-01-01"),
|
|
193
|
+
maxDate = undefined,
|
|
194
|
+
autoRange = undefined,
|
|
195
|
+
maxRange = undefined,
|
|
196
|
+
multiCalendars = false,
|
|
197
|
+
monthPicker = false,
|
|
198
|
+
enableTimePicker = false,
|
|
199
|
+
autoPosition = true,
|
|
200
|
+
triggerPlaceholderText = undefined,
|
|
201
|
+
customFormatCallback = undefined,
|
|
202
|
+
leftTriggerIcon = undefined,
|
|
203
|
+
triggerWidth = "fit",
|
|
204
|
+
leftSidebar = false,
|
|
205
|
+
quickFilterHeadline = undefined,
|
|
206
|
+
quickFilterRanges = [],
|
|
207
|
+
actionExtraContent = undefined,
|
|
208
|
+
} = defineProps<{
|
|
209
|
+
autoApply?: boolean;
|
|
210
|
+
locale?: Locale;
|
|
211
|
+
disabled?: boolean;
|
|
212
|
+
minDate?: Date | string | number;
|
|
213
|
+
maxDate?: Date | string | number;
|
|
214
|
+
inline?: boolean;
|
|
215
|
+
teleport?: string | boolean | HTMLElement;
|
|
216
|
+
monthPicker?: boolean;
|
|
217
|
+
multiCalendars?: boolean;
|
|
218
|
+
utc?: boolean;
|
|
219
|
+
|
|
220
|
+
// Time Config
|
|
221
|
+
enableTimePicker?: boolean;
|
|
222
|
+
|
|
223
|
+
// Floating Config
|
|
224
|
+
autoPosition?: boolean;
|
|
225
|
+
|
|
226
|
+
// Range Config
|
|
227
|
+
autoRange?: string | number;
|
|
228
|
+
maxRange?: string | number;
|
|
229
|
+
|
|
230
|
+
// General Config
|
|
231
|
+
closeOnAutoApply?: boolean;
|
|
232
|
+
|
|
233
|
+
// Slots
|
|
234
|
+
triggerPlaceholderText?: string;
|
|
235
|
+
triggerWidth?: "full" | "fit";
|
|
236
|
+
customFormatCallback?: (date: Date | [Date, Date]) => string;
|
|
237
|
+
leftTriggerIcon?: UiIconName;
|
|
238
|
+
leftSidebar?: boolean;
|
|
239
|
+
quickFilterHeadline?: string;
|
|
240
|
+
quickFilterRanges?: PresetRange[];
|
|
241
|
+
actionExtraContent?: string;
|
|
242
|
+
}>();
|
|
312
243
|
|
|
313
|
-
const
|
|
314
|
-
|
|
315
|
-
return [
|
|
244
|
+
const internalIsOpen = ref(false);
|
|
245
|
+
const getYearRange = computed<[number, number]>(() => {
|
|
246
|
+
return [getYear(minDate), getYear(maxDate || new Date())];
|
|
316
247
|
});
|
|
317
248
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
closePicker();
|
|
322
|
-
};
|
|
323
|
-
|
|
324
|
-
const handleCancel = () => {
|
|
325
|
-
date.value = props.selectedDate;
|
|
326
|
-
showDatepicker.value = false;
|
|
327
|
-
closePicker();
|
|
328
|
-
};
|
|
329
|
-
|
|
330
|
-
const closeAction = () => {
|
|
331
|
-
emit("close");
|
|
332
|
-
showDatepicker.value = false;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
watch(
|
|
336
|
-
() => props.selectedDate,
|
|
337
|
-
() => (date.value = props.selectedDate),
|
|
338
|
-
);
|
|
339
|
-
|
|
340
|
-
const mobileQuickfiltersOpen = ref(false);
|
|
341
|
-
</script>
|
|
342
|
-
|
|
343
|
-
<style>
|
|
344
|
-
@reference "../../tailwindPreset.css";
|
|
249
|
+
function closeMenu() {
|
|
250
|
+
datePicker.value?.closeMenu();
|
|
251
|
+
}
|
|
345
252
|
|
|
346
|
-
|
|
347
|
-
|
|
253
|
+
function reset() {
|
|
254
|
+
date.value = undefined;
|
|
255
|
+
closeMenu();
|
|
348
256
|
}
|
|
349
257
|
|
|
350
|
-
|
|
351
|
-
|
|
258
|
+
function setQuickFilter(value: PresetRange) {
|
|
259
|
+
date.value = value.range;
|
|
260
|
+
emit("quick-filter-changed", value);
|
|
261
|
+
closeMenu();
|
|
352
262
|
}
|
|
353
263
|
|
|
354
|
-
|
|
355
|
-
|
|
264
|
+
function isMonthYear(date: DateType): date is { month: number; year: number } {
|
|
265
|
+
return typeof date === "object" && "month" in date && "year" in date;
|
|
356
266
|
}
|
|
357
267
|
|
|
358
|
-
|
|
359
|
-
|
|
268
|
+
function quickFilterActive(
|
|
269
|
+
quickFilterDate: [Date, Date] | { year: number; month: number },
|
|
270
|
+
) {
|
|
271
|
+
const internalDate = date.value;
|
|
272
|
+
if (!internalDate) return false;
|
|
273
|
+
if (Array.isArray(internalDate) && Array.isArray(quickFilterDate)) {
|
|
274
|
+
const [start, end] = internalDate;
|
|
275
|
+
const [quickFilterStart, quickFilterEnd] = quickFilterDate;
|
|
276
|
+
return (
|
|
277
|
+
start.toDateString() == quickFilterStart.toDateString() &&
|
|
278
|
+
end.toDateString() == quickFilterEnd.toDateString()
|
|
279
|
+
);
|
|
280
|
+
} else if (isMonthYear(internalDate) && isMonthYear(quickFilterDate)) {
|
|
281
|
+
return (
|
|
282
|
+
internalDate.year === quickFilterDate.year &&
|
|
283
|
+
internalDate.month === quickFilterDate.month
|
|
284
|
+
);
|
|
285
|
+
}
|
|
286
|
+
return false;
|
|
360
287
|
}
|
|
361
288
|
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
0 2px 6px -2px rgb(0 0 0 / 0.25) !important;
|
|
367
|
-
border-bottom-right-radius: 1rem !important;
|
|
368
|
-
border-bottom-left-radius: 1rem !important;
|
|
289
|
+
function formatMonth(date: Date) {
|
|
290
|
+
return format(date, "LLLL yyyy", {
|
|
291
|
+
locale,
|
|
292
|
+
});
|
|
369
293
|
}
|
|
370
294
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
295
|
+
function formatInput(date: Date | [Date, Date]): string {
|
|
296
|
+
const DATE_FORMAT = "dd.MM.yyyy";
|
|
297
|
+
if (Array.isArray(date)) {
|
|
298
|
+
const [start, end] = date;
|
|
299
|
+
if (start.toISOString() == end.toISOString())
|
|
300
|
+
return format(start, DATE_FORMAT, { locale });
|
|
301
|
+
return `${format(start, DATE_FORMAT, { locale })} - ${format(end, DATE_FORMAT, { locale })}`;
|
|
302
|
+
}
|
|
303
|
+
return monthPicker ? formatMonth(date) : format(date, "dd.MM.yyyy");
|
|
380
304
|
}
|
|
305
|
+
</script>
|
|
306
|
+
<style>
|
|
307
|
+
@reference "../../tailwindPreset.css";
|
|
381
308
|
|
|
382
|
-
.
|
|
383
|
-
|
|
309
|
+
.dp__arrow_top {
|
|
310
|
+
left: 10%;
|
|
384
311
|
}
|
|
385
312
|
|
|
386
|
-
.
|
|
387
|
-
|
|
313
|
+
.dp__menu {
|
|
314
|
+
border-radius: var(--radius-2xl);
|
|
315
|
+
box-shadow: var(--shadow-lg);
|
|
388
316
|
}
|
|
389
317
|
|
|
390
|
-
.
|
|
391
|
-
|
|
318
|
+
.dp--year-select,
|
|
319
|
+
.dp__month_year_select {
|
|
320
|
+
border-radius: var(--radius-2xl);
|
|
392
321
|
}
|
|
393
322
|
|
|
394
|
-
.
|
|
395
|
-
|
|
323
|
+
.nav-btn-prev,
|
|
324
|
+
.nav-btn-next {
|
|
325
|
+
padding: 0.25rem;
|
|
396
326
|
}
|
|
397
327
|
|
|
398
|
-
.
|
|
399
|
-
|
|
328
|
+
.dp__flex_display {
|
|
329
|
+
gap: 2rem;
|
|
400
330
|
}
|
|
401
331
|
|
|
402
332
|
.dp__sidebar_left {
|
|
403
|
-
|
|
333
|
+
padding: 0;
|
|
404
334
|
}
|
|
405
335
|
|
|
406
|
-
.
|
|
407
|
-
|
|
336
|
+
.dp__cell_inner {
|
|
337
|
+
border-radius: calc(infinity * 1px);
|
|
408
338
|
}
|
|
409
339
|
|
|
410
|
-
.dp__cell_inner {
|
|
411
|
-
|
|
340
|
+
.dp__cell_inner:hover {
|
|
341
|
+
border-radius: calc(infinity * 1px);
|
|
412
342
|
}
|
|
413
343
|
|
|
414
|
-
.
|
|
415
|
-
|
|
416
|
-
@apply text-gray-500;
|
|
344
|
+
.dp__today {
|
|
345
|
+
border: 1px solid var(--color-neutral-primary);
|
|
417
346
|
}
|
|
418
347
|
|
|
419
348
|
.dp__cell_auto_range,
|
|
420
349
|
.dp__cell_auto_range_start,
|
|
421
350
|
.dp__cell_auto_range_end {
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
.datepicker-cell:active {
|
|
426
|
-
@apply rounded-full;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
.datepicker-cell:hover {
|
|
430
|
-
@apply rounded-full bg-gray-300 text-gray-900;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.dp__button.dp__overlay_action {
|
|
434
|
-
@apply hidden;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.dp__range_between {
|
|
438
|
-
@apply bg-gray-200!;
|
|
439
|
-
@apply border-none;
|
|
440
|
-
@apply text-gray-900;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
.datepicker-calendar-instance {
|
|
444
|
-
@apply px-3;
|
|
445
|
-
@apply py-3;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
.dp__month_year_wrap {
|
|
449
|
-
width: inherit !important;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
|
-
.dp__month_year_row {
|
|
453
|
-
@apply mt-3;
|
|
454
|
-
@apply mx-3;
|
|
455
|
-
@apply leading-6;
|
|
456
|
-
@apply text-base;
|
|
457
|
-
@apply font-medium;
|
|
458
|
-
@apply text-gray-900;
|
|
459
|
-
justify-content: space-between;
|
|
351
|
+
border: none;
|
|
352
|
+
color: var(--color-neutral-primary);
|
|
353
|
+
background-color: var(--color-neutral-faint);
|
|
460
354
|
}
|
|
461
355
|
|
|
462
356
|
.dp__month_year_select {
|
|
463
|
-
|
|
464
|
-
|
|
357
|
+
font-size: var(--text-base);
|
|
358
|
+
font-weight: var(--font-weight-semibold);
|
|
359
|
+
color: var(--color-neutral-primary);
|
|
465
360
|
}
|
|
466
361
|
|
|
467
|
-
.
|
|
468
|
-
|
|
469
|
-
}
|
|
470
|
-
|
|
471
|
-
.dp__inner_nav > svg {
|
|
472
|
-
@apply text-gray-800;
|
|
473
|
-
@apply w-4 h-4;
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
.dp__inner_nav:hover > svg {
|
|
477
|
-
@apply fill-white;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
.dp__calendar_next {
|
|
481
|
-
margin-left: 0;
|
|
362
|
+
.dp__calendar_header_separator {
|
|
363
|
+
display: none;
|
|
482
364
|
}
|
|
483
365
|
|
|
484
366
|
.dp__calendar_header {
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
.dp__preset_ranges {
|
|
491
|
-
@apply font-sans;
|
|
492
|
-
@apply text-gray-800;
|
|
493
|
-
@apply font-semibold;
|
|
494
|
-
@apply p-5;
|
|
495
|
-
@apply flex;
|
|
496
|
-
@apply flex-col;
|
|
497
|
-
@apply justify-evenly;
|
|
498
|
-
@apply w-44;
|
|
499
|
-
@apply border-r-2;
|
|
500
|
-
@apply border-r-gray-200;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
.dp__arrow_top {
|
|
504
|
-
left: 10%;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
.dp__inner_nav_disabled {
|
|
508
|
-
@apply bg-transparent;
|
|
367
|
+
gap: 0.25rem;
|
|
368
|
+
align-items: center;
|
|
369
|
+
font-size: var(--text-xs);
|
|
370
|
+
color: var(--color-neutral-subtle);
|
|
371
|
+
font-weight: var(--font-weight-semibold);
|
|
509
372
|
}
|
|
510
373
|
|
|
511
|
-
.
|
|
512
|
-
|
|
374
|
+
.dp__calendar_header_item {
|
|
375
|
+
display: flex;
|
|
376
|
+
align-items: center;
|
|
377
|
+
justify-content: center;
|
|
378
|
+
color: var(--color-neutral-subtle);
|
|
513
379
|
}
|
|
514
380
|
|
|
515
|
-
.
|
|
516
|
-
|
|
381
|
+
.dp__calendar_row {
|
|
382
|
+
gap: 0.25rem;
|
|
517
383
|
}
|
|
518
384
|
|
|
519
|
-
.
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
.
|
|
525
|
-
@apply rounded-full;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
.dp__overlay_cell:hover,
|
|
529
|
-
.dp__month_year_select:hover {
|
|
530
|
-
@apply rounded-full bg-gray-300 text-gray-900;
|
|
385
|
+
.dp__action_row,
|
|
386
|
+
.dp__action_extra {
|
|
387
|
+
justify-content: end;
|
|
388
|
+
gap: 1rem;
|
|
389
|
+
border-top: 1px solid var(--color-neutral-faint);
|
|
390
|
+
padding: 0.5rem 1rem;
|
|
531
391
|
}
|
|
532
392
|
|
|
533
393
|
.dp__theme_light {
|
|
534
|
-
--dp-font-family:
|
|
535
|
-
--dp-
|
|
536
|
-
--dp-
|
|
537
|
-
--dp-
|
|
538
|
-
--dp-
|
|
539
|
-
--dp-
|
|
540
|
-
--dp-
|
|
541
|
-
--dp-
|
|
542
|
-
--dp-
|
|
543
|
-
--dp-
|
|
544
|
-
--dp-
|
|
394
|
+
--dp-font-family: var(--font-sans);
|
|
395
|
+
--dp-month-year-row-height: 2rem; /*Height of the month-year select row*/
|
|
396
|
+
--dp-button-icon-height: 1.5rem; /*Icon sizing in buttons*/
|
|
397
|
+
--dp-calendar-header-cell-padding: 0.25rem; /*Adjust padding in calendar header cells*/
|
|
398
|
+
--dp-menu-padding: 1rem;
|
|
399
|
+
--dp-cell-size: 2rem; /*Font sizes*/
|
|
400
|
+
--dp-font-size: var(--text-xs); /*Default font-size*/
|
|
401
|
+
--dp-background-color: var(--color-surface-level-1);
|
|
402
|
+
--dp-primary-color: var(--color-primary);
|
|
403
|
+
--dp-hover-color: var(--color-neutral-faint);
|
|
404
|
+
--dp-hover-text-color: var(--color-neutral-primary);
|
|
405
|
+
--dp-hover-icon-color: var(--color-neutral);
|
|
406
|
+
--dp-primary-disabled-color: var(--color-neutral-soft);
|
|
407
|
+
--dp-primary-text-color: var(--color-neutral);
|
|
408
|
+
--dp-secondary-color: #c0c4cc;
|
|
409
|
+
--dp-border-color: var(--color-neutral-pale);
|
|
410
|
+
--dp-menu-border-color: var(--color-neutral-pale);
|
|
411
|
+
--dp-range-between-dates-background-color: var(--dp-hover-color, #f3f3f3);
|
|
412
|
+
--dp-range-between-dates-text-color: var(--dp-hover-text-color, #212121);
|
|
413
|
+
--dp-range-between-border-color: var(--dp-hover-color, #f3f3f3);
|
|
545
414
|
}
|
|
546
415
|
</style>
|