@stachelock/ui 0.6.8 → 0.6.11
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/{CalendarHeader.vue_vue_type_script_setup_true_lang-CMBsY5Y0.js → CalendarHeader.vue_vue_type_script_setup_true_lang-CooyV5tq.js} +2 -2
- package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-DacJtKYo.js → ComboboxInput.vue_vue_type_script_setup_true_lang-Cy0Pl8Ap.js} +90 -91
- package/dist/{DatepickerInput.vue_vue_type_style_index_0_lang-DbI3619T.js → DatepickerInput.vue_vue_type_style_index_0_lang-C_0dWHo6.js} +5 -4
- package/dist/{DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js → DayCalendar.vue_vue_type_script_setup_true_lang-BgV8wr8v.js} +1 -1
- package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-Bq8Gvhsc.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +1 -1
- package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-CdNtWWlT.js → DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js} +4 -4
- package/dist/EmailInput.vue_vue_type_script_setup_true_lang-59bDl9yw.js +123 -0
- package/dist/{FileDropzoneInput.vue_vue_type_script_setup_true_lang-BJR-_ngq.js → FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js} +1 -1
- package/dist/{ImageDropzoneInput.vue_vue_type_script_setup_true_lang-7JWDfxD2.js → ImageDropzoneInput.vue_vue_type_script_setup_true_lang-Dhl2jFaM.js} +93 -89
- package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-B6A0zsE6.js → InlineTabs.vue_vue_type_script_setup_true_lang-DGGJem-g.js} +1 -1
- package/dist/{MonthCalendar.vue_vue_type_style_index_0_lang-lnKkvJ9u.js → MonthCalendar.vue_vue_type_style_index_0_lang-BdrrlrNr.js} +1 -1
- package/dist/{SelectInput.vue_vue_type_script_setup_true_lang-DFfKsmvj.js → SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js} +138 -140
- package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-DYlrRigi.js +305 -0
- package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-BzqtAqbr.js → TabGroup.vue_vue_type_script_setup_true_lang-DTWW7kYh.js} +1 -1
- package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-C6OYRDCq.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-B8e7kxad.js} +1 -1
- package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-C7T3PUnB.js → TabsInPills.vue_vue_type_script_setup_true_lang-Dzi4ENL1.js} +1 -1
- package/dist/{TagifyInput.vue_vue_type_script_setup_true_lang-BF2mK8JC.js → TagifyInput.vue_vue_type_script_setup_true_lang-CwxJ2x1x.js} +65 -62
- package/dist/{TextAreaInput.vue_vue_type_script_setup_true_lang-Cf0MJobG.js → TextAreaInput.vue_vue_type_script_setup_true_lang-Dtf7H1sT.js} +3 -2
- package/dist/{calendar-DLry-Vik.js → calendar-DaXCwXP5.js} +1 -1
- package/dist/calendars/CalendarDashboard.d.ts +3 -1
- package/dist/calendars/CalendarDashboard.js +2 -2
- package/dist/calendars/CalendarHeader.d.ts +3 -1
- package/dist/calendars/CalendarHeader.js +1 -1
- package/dist/calendars/DayCalendar.d.ts +3 -1
- package/dist/calendars/DayCalendar.js +1 -1
- package/dist/calendars/EventCard.d.ts +3 -1
- package/dist/calendars/EventsList.d.ts +3 -1
- package/dist/calendars/MonthCalendar.d.ts +3 -1
- package/dist/calendars/MonthCalendar.js +1 -1
- package/dist/calendars/WeekCalendar.d.ts +3 -1
- package/dist/calendars/WeekCalendar.js +2 -2
- package/dist/calendars/YearCalendar.d.ts +3 -1
- package/dist/charts/BarChart.d.ts +3 -1
- package/dist/charts/BaseChart.d.ts +3 -1
- package/dist/charts/FunnelChart.d.ts +3 -1
- package/dist/charts/LineChart.d.ts +3 -1
- package/dist/charts/PieChart.d.ts +3 -1
- package/dist/charts/SparklineChart.d.ts +3 -1
- package/dist/charts/StatCard.d.ts +3 -1
- package/dist/charts/chartTheme.d.ts +0 -3
- package/dist/charts/index.d.ts +0 -1
- package/dist/components/Avatar.d.ts +3 -1
- package/dist/components/Badge.d.ts +3 -1
- package/dist/components/Banner.d.ts +3 -1
- package/dist/components/Breadcrumb.d.ts +3 -1
- package/dist/components/Button.d.ts +3 -1
- package/dist/components/ButtonGroup.d.ts +3 -1
- package/dist/components/Checkbox.d.ts +3 -1
- package/dist/components/CloudinaryImage.d.ts +3 -1
- package/dist/components/CloudinaryImage.js +52 -52
- package/dist/components/Loading.d.ts +3 -1
- package/dist/components/LoadingDots.d.ts +3 -1
- package/dist/components/LottieAnimation.d.ts +3 -1
- package/dist/components/Menu.d.ts +3 -1
- package/dist/components/Modal.d.ts +3 -1
- package/dist/components/NavLink.d.ts +3 -1
- package/dist/components/ProgressBar.d.ts +3 -1
- package/dist/components/RadialProgressBar.d.ts +3 -1
- package/dist/components/Table.d.ts +3 -1
- package/dist/components/Transition.d.ts +3 -1
- package/dist/composables/index.d.ts +0 -1
- package/dist/composables/useCalendar.d.ts +0 -3
- package/dist/composables/useCalendar.js +1 -1
- package/dist/composables/useFormValidation.d.ts +0 -3
- package/dist/composables/useMap.d.ts +0 -3
- package/dist/composables/useModal.d.ts +0 -3
- package/dist/composables/useNotifications.d.ts +0 -3
- package/dist/composables/useNotifications.js +1 -1
- package/dist/composables/useTabs.d.ts +0 -1
- package/dist/composables/useTheme.d.ts +0 -3
- package/dist/empty-state/ComingSoon.d.ts +3 -1
- package/dist/empty-state/EmptyState.d.ts +3 -1
- package/dist/empty-state/index.d.ts +0 -1
- package/dist/forms/DynamicForm.d.ts +3 -1
- package/dist/forms/DynamicForm.js +1 -1
- package/dist/forms/DynamicFormField.d.ts +3 -1
- package/dist/forms/DynamicFormField.js +1 -1
- package/dist/forms/FormFieldWrapper.d.ts +3 -1
- package/dist/forms/FormFieldWrapper.js +2 -2
- package/dist/index.d.ts +0 -3
- package/dist/index.js +1677 -1341
- package/dist/inputs/AddDeleteButtonGroup.d.ts +3 -1
- package/dist/inputs/AddressInput.d.ts +3 -1
- package/dist/inputs/AddressInput.js +49 -47
- package/dist/inputs/CheckboxInput.d.ts +3 -1
- package/dist/inputs/ComboboxInput.d.ts +3 -1
- package/dist/inputs/ComboboxInput.js +1 -1
- package/dist/inputs/DatepickerInput.d.ts +3 -1
- package/dist/inputs/DatepickerInput.js +1 -1
- package/dist/inputs/EmailInput.d.ts +3 -1
- package/dist/inputs/EmailInput.js +1 -1
- package/dist/inputs/EmptyInput.d.ts +3 -1
- package/dist/inputs/FileDropzoneInput.d.ts +3 -1
- package/dist/inputs/FileDropzoneInput.js +1 -1
- package/dist/inputs/HiddenInput.d.ts +3 -1
- package/dist/inputs/ImageDropzoneInput.d.ts +3 -1
- package/dist/inputs/ImageDropzoneInput.js +1 -1
- package/dist/inputs/PhoneInput.d.ts +3 -1
- package/dist/inputs/PhoneInput.js +148 -147
- package/dist/inputs/RichTextInput.d.ts +3 -1
- package/dist/inputs/RichTextInput.js +1 -1
- package/dist/inputs/SelectInput.d.ts +3 -1
- package/dist/inputs/SelectInput.js +1 -1
- package/dist/inputs/SelectTextInput.d.ts +3 -1
- package/dist/inputs/SelectTextInput.js +1 -1
- package/dist/inputs/SwitchInput.d.ts +3 -1
- package/dist/inputs/SwitchInputGroup.d.ts +3 -1
- package/dist/inputs/TagifyInput.d.ts +3 -1
- package/dist/inputs/TagifyInput.js +1 -1
- package/dist/inputs/TextAreaInput.d.ts +3 -1
- package/dist/inputs/TextAreaInput.js +1 -1
- package/dist/inputs/TextInput.d.ts +3 -1
- package/dist/inputs/TextInput.js +116 -3
- package/dist/layouts/DashboardLayout.d.ts +3 -1
- package/dist/layouts/DefaultLayout.d.ts +3 -1
- package/dist/layouts/HeaderLayout.d.ts +3 -1
- package/dist/layouts/NavigationGroup.d.ts +3 -1
- package/dist/layouts/NavigationItem.d.ts +3 -1
- package/dist/layouts/ProfileHeaderAvatar.d.ts +3 -1
- package/dist/layouts/ProjectLogo.d.ts +3 -1
- package/dist/layouts/SidebarLayout.d.ts +3 -1
- package/dist/loading/ContentSkeleton.d.ts +3 -1
- package/dist/loading/SmartLoadingIndicator.d.ts +3 -1
- package/dist/loading/index.d.ts +0 -1
- package/dist/maps/GoogleMap.d.ts +3 -1
- package/dist/maps/UiInfoWindow.d.ts +3 -1
- package/dist/maps/UiMap.d.ts +3 -1
- package/dist/maps/UiMapAll.d.ts +3 -1
- package/dist/maps/UiMapMarker.d.ts +3 -1
- package/dist/maps/index.d.ts +0 -1
- package/dist/modals/AlertModal.d.ts +3 -1
- package/dist/modals/BaseModal.d.ts +3 -1
- package/dist/modals/ImageCropperModal.d.ts +3 -1
- package/dist/notifications/NotificationContainer.d.ts +3 -1
- package/dist/notifications/NotificationToast.d.ts +3 -1
- package/dist/notifications/index.d.ts +0 -1
- package/dist/src/components/CloudinaryImage.d.ts +16 -14
- package/dist/src/components/LottieAnimation.d.ts +37 -6
- package/dist/src/components/ThemeDebugModal.d.ts +16 -6
- package/dist/src/components/UiAvatar.d.ts +35 -2
- package/dist/src/components/UiBadge.d.ts +33 -6
- package/dist/src/components/UiBanner.d.ts +108 -35
- package/dist/src/components/UiBreadcrumb.d.ts +11 -10
- package/dist/src/components/UiButton.d.ts +66 -13
- package/dist/src/components/UiButtonGroup.d.ts +37 -7
- package/dist/src/components/UiCheckbox.d.ts +33 -8
- package/dist/src/components/UiLoading.d.ts +28 -2
- package/dist/src/components/UiLoadingDots.d.ts +2 -2
- package/dist/src/components/UiMenu.d.ts +33 -5
- package/dist/src/components/UiModal.d.ts +3 -4
- package/dist/src/components/UiNavLink.d.ts +40 -6
- package/dist/src/components/UiProgressBar.d.ts +32 -3
- package/dist/src/components/UiRadialProgressBar.d.ts +34 -3
- package/dist/src/components/UiTable.d.ts +29 -6
- package/dist/src/components/UiTransition.d.ts +26 -3
- package/dist/src/components/avatars/AvatarIcon.d.ts +28 -6
- package/dist/src/components/avatars/AvatarImage.d.ts +30 -9
- package/dist/src/components/avatars/AvatarInitials.d.ts +24 -5
- package/dist/src/components/avatars/AvatarWithText.d.ts +4 -3
- package/dist/src/components/calendars/CalendarDashboard.d.ts +17 -5
- package/dist/src/components/calendars/CalendarHeader.d.ts +7 -8
- package/dist/src/components/calendars/DayCalendar.d.ts +17 -11
- package/dist/src/components/calendars/EventCard.d.ts +2 -1
- package/dist/src/components/calendars/EventsList.d.ts +18 -6
- package/dist/src/components/calendars/MonthCalendar.d.ts +30 -6
- package/dist/src/components/calendars/WeekCalendar.d.ts +16 -10
- package/dist/src/components/calendars/YearCalendar.d.ts +29 -5
- package/dist/src/components/charts/BarChart.d.ts +40 -7
- package/dist/src/components/charts/BaseChart.d.ts +80 -0
- package/dist/src/components/charts/FunnelChart.d.ts +34 -5
- package/dist/src/components/charts/LineChart.d.ts +37 -6
- package/dist/src/components/charts/PieChart.d.ts +37 -6
- package/dist/src/components/charts/SparklineChart.d.ts +32 -3
- package/dist/src/components/charts/StatCard.d.ts +24 -2
- package/dist/src/components/charts/chartTheme.d.ts +1 -0
- package/dist/src/components/collection-editor/CollectionEditor.d.ts +112 -0
- package/dist/src/components/collection-editor/CollectionItemList.d.ts +37 -7
- package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +34 -8
- package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +37 -7
- package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +37 -7
- package/dist/src/components/empty-state/ComingSoon.d.ts +29 -2
- package/dist/src/components/empty-state/EmptyState.d.ts +26 -4
- package/dist/src/components/formatters/DateFormatter.d.ts +2 -1
- package/dist/src/components/formatters/DateRangeFormatter.d.ts +1 -0
- package/dist/src/components/forms/DynamicForm.d.ts +37 -11
- package/dist/src/components/forms/DynamicFormField.d.ts +15 -5
- package/dist/src/components/forms/FormFieldWrapper.d.ts +58 -14
- package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/XBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/inputs/AddDeleteButtonGroup.d.ts +3 -2
- package/dist/src/components/inputs/AddressInput.d.ts +45 -7
- package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
- package/dist/src/components/inputs/ComboboxInput.d.ts +54 -12
- package/dist/src/components/inputs/DatepickerInput.d.ts +43 -1046
- package/dist/src/components/inputs/EmailInput.d.ts +56 -12
- package/dist/src/components/inputs/EmptyInput.d.ts +26 -2
- package/dist/src/components/inputs/FileDropzoneInput.d.ts +6 -7
- package/dist/src/components/inputs/HiddenInput.d.ts +23 -2
- package/dist/src/components/inputs/ImageDropzoneInput.d.ts +9 -8
- package/dist/src/components/inputs/InputsShowcase.d.ts +1 -1
- package/dist/src/components/inputs/PhoneInput.d.ts +18 -81
- package/dist/src/components/inputs/RichTextInput.d.ts +81 -23
- package/dist/src/components/inputs/SelectInput.d.ts +41 -47
- package/dist/src/components/inputs/SelectTextInput.d.ts +22 -53
- package/dist/src/components/inputs/SwitchInput.d.ts +41 -114
- package/dist/src/components/inputs/SwitchInputGroup.d.ts +3 -2
- package/dist/src/components/inputs/TagifyInput.d.ts +8 -10
- package/dist/src/components/inputs/TextAreaInput.d.ts +35 -9
- package/dist/src/components/inputs/TextInput.d.ts +76 -14
- package/dist/src/components/layouts/CardLayout.d.ts +64 -18
- package/dist/src/components/layouts/DashboardLayout.d.ts +5 -8
- package/dist/src/components/layouts/DefaultLayout.d.ts +1 -1
- package/dist/src/components/layouts/HeaderLayout.d.ts +4 -4
- package/dist/src/components/layouts/InfoCard.d.ts +25 -2
- package/dist/src/components/layouts/NavigationGroup.d.ts +16 -5
- package/dist/src/components/layouts/NavigationItem.d.ts +24 -7
- package/dist/src/components/layouts/ProfileHeaderAvatar.d.ts +40 -10
- package/dist/src/components/layouts/ProjectLogo.d.ts +33 -2
- package/dist/src/components/layouts/PropsTable.d.ts +23 -2
- package/dist/src/components/layouts/ShowcaseCard.d.ts +29 -2
- package/dist/src/components/layouts/ShowcaseLayout.d.ts +28 -5
- package/dist/src/components/layouts/SidebarLayout.d.ts +4 -7
- package/dist/src/components/layouts/StateDisplay.d.ts +23 -2
- package/dist/src/components/loading/ContentSkeleton.d.ts +31 -2
- package/dist/src/components/loading/SmartLoadingIndicator.d.ts +47 -6
- package/dist/src/components/maps/GoogleMap.d.ts +9 -8
- package/dist/src/components/maps/UiInfoWindow.d.ts +14 -229
- package/dist/src/components/maps/UiMap.d.ts +103 -5093
- package/dist/src/components/maps/UiMapAll.d.ts +22 -1132
- package/dist/src/components/maps/UiMapMarker.d.ts +18 -17
- package/dist/src/components/modals/AlertModal.d.ts +10 -9
- package/dist/src/components/modals/BaseModal.d.ts +6 -5
- package/dist/src/components/modals/ImageCropperModal.d.ts +75 -379
- package/dist/src/components/notifications/NotificationToast.d.ts +18 -7
- package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +117 -0
- package/dist/src/components/profile-inputs/NamesInput.d.ts +107 -0
- package/dist/src/components/profile-inputs/index.d.ts +2 -0
- package/dist/src/components/profiles/BentoProfileLayout.d.ts +44 -2
- package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +27 -2
- package/dist/src/components/profiles/ProfileCard.d.ts +30 -2
- package/dist/src/components/profiles/ProfileContactCard.d.ts +25 -2
- package/dist/src/components/profiles/ProfileHeaderCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileLocationCard.d.ts +28 -2
- package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfilePersonalCard.d.ts +25 -2
- package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileSocialCard.d.ts +26 -2
- package/dist/src/components/stepper/StepperPanels.d.ts +14 -4
- package/dist/src/components/tabs/InlineTabs.d.ts +28 -4
- package/dist/src/components/tabs/TabGroup.d.ts +32 -6
- package/dist/src/components/tabs/TabGroupUnderline.d.ts +32 -6
- package/dist/src/components/tabs/TabsInPills.d.ts +26 -4
- package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +37 -2
- package/dist/src/components/wrappers/CardWrapper.d.ts +1 -1
- package/dist/src/components/wrappers/DisclosureWrapper.d.ts +23 -2
- package/dist/src/components/wrappers/FormErrorWrapper.d.ts +25 -2
- package/dist/src/composables/useCalendar.d.ts +1 -0
- package/dist/src/composables/useCollectionEditor.d.ts +1 -0
- package/dist/src/composables/useFormValidation.d.ts +1 -0
- package/dist/src/composables/useMap.d.ts +1 -0
- package/dist/src/composables/useNotifications.d.ts +33 -32
- package/dist/src/composables/useSimpleTabs.d.ts +1 -0
- package/dist/src/composables/useStringTransform.d.ts +1 -0
- package/dist/src/composables/useTabs.d.ts +1 -0
- package/dist/src/config/css-variables.d.ts +1 -0
- package/dist/src/dev.d.ts +1 -0
- package/dist/src/plugin/configure.d.ts +3 -2
- package/dist/src/services/geocoding.service.d.ts +1 -0
- package/dist/src/types/calendars.d.ts +1 -0
- package/dist/src/types/core.d.ts +8 -7
- package/dist/src/types/forms.d.ts +1 -0
- package/dist/src/types/layouts.d.ts +1 -0
- package/dist/src/types/navigation.d.ts +1 -0
- package/dist/src/types/tables.d.ts +1 -0
- package/dist/src/types/ui.d.ts +1 -0
- package/dist/src/utils/component-registry.d.ts +1 -0
- package/dist/src/utils/mapThemes.d.ts +1 -0
- package/dist/src/utils/phone.d.ts +1 -0
- package/dist/src/utils/validation.d.ts +1 -0
- package/dist/src/views/components/index.d.ts +1 -1
- package/dist/src/views/index.d.ts +1 -0
- package/dist/src/views/inputs/index.d.ts +2 -0
- package/dist/stepper/StepperPanels.d.ts +3 -1
- package/dist/stepper/index.d.ts +0 -1
- package/dist/style.css +1 -1
- package/dist/tabs/InlineTabs.d.ts +3 -1
- package/dist/tabs/InlineTabs.js +1 -1
- package/dist/tabs/TabGroup.d.ts +3 -1
- package/dist/tabs/TabGroup.js +1 -1
- package/dist/tabs/TabGroupUnderline.d.ts +3 -1
- package/dist/tabs/TabGroupUnderline.js +1 -1
- package/dist/tabs/TabsInPills.d.ts +3 -1
- package/dist/tabs/TabsInPills.js +1 -1
- package/dist/tabs/index.d.ts +0 -1
- package/dist/tabs/index.js +4 -4
- package/dist/validation-Dzczp6MS.js +22 -0
- package/dist/wrappers/BackgroundGradientWrapper.d.ts +3 -1
- package/dist/wrappers/CardWrapper.d.ts +3 -1
- package/dist/wrappers/DisclosureWrapper.d.ts +3 -1
- package/dist/wrappers/FormErrorWrapper.d.ts +3 -1
- package/dist/wrappers/index.d.ts +0 -1
- package/package.json +29 -29
- package/dist/EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js +0 -121
- package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-C3BGLjY1.js +0 -336
- package/dist/TextInput-C5IzX7m_.js +0 -131
- package/dist/src/views/ButtonsShowcase.d.ts +0 -2
- package/dist/src/views/CalendarsShowcase.d.ts +0 -2
- package/dist/src/views/CardsShowcase.d.ts +0 -2
- package/dist/src/views/ChartsShowcase.d.ts +0 -2
- package/dist/src/views/EmptyStatesShowcase.d.ts +0 -2
- package/dist/src/views/InputsShowcase.d.ts +0 -2
- package/dist/src/views/KitchenSink.d.ts +0 -2
- package/dist/src/views/LayoutsShowcase.d.ts +0 -2
- package/dist/src/views/LoadingShowcase.d.ts +0 -2
- package/dist/src/views/MapsShowcase.d.ts +0 -2
- package/dist/src/views/ModalsShowcase.d.ts +0 -2
- package/dist/src/views/NotificationsShowcase.d.ts +0 -2
- package/dist/src/views/StepperShowcase.d.ts +0 -2
- package/dist/src/views/TabsShowcase.d.ts +0 -2
- package/dist/src/views/ValidationDemo.d.ts +0 -2
- package/dist/src/views/WrappersShowcase.d.ts +0 -2
- package/dist/src/views/components/AvatarPage.d.ts +0 -2
- package/dist/src/views/components/BadgePage.d.ts +0 -2
- package/dist/src/views/components/BannerPage.d.ts +0 -2
- package/dist/src/views/components/BreadcrumbPage.d.ts +0 -2
- package/dist/src/views/components/ButtonPage.d.ts +0 -2
- package/dist/src/views/components/CloudinaryImagePage.d.ts +0 -2
- package/dist/src/views/components/LoadingPage.d.ts +0 -2
- package/dist/src/views/components/LottiePage.d.ts +0 -2
- package/dist/src/views/components/MenuPage.d.ts +0 -2
- package/dist/src/views/components/ModalPage.d.ts +0 -2
- package/dist/src/views/components/ProgressPage.d.ts +0 -2
- package/dist/src/views/components/RichTextInputPage.d.ts +0 -2
- package/dist/src/views/components/TablePage.d.ts +0 -2
- package/dist/src/views/components/TextInputPage.d.ts +0 -2
- package/dist/src/views/components/TransitionPage.d.ts +0 -2
- package/dist/src/views/examples/CheckoutFormExample.d.ts +0 -2
- package/dist/src/views/examples/ContactFormExample.d.ts +0 -2
- package/dist/src/views/examples/RegistrationFormExample.d.ts +0 -2
- package/dist/src/views/examples/SettingsFormExample.d.ts +0 -2
- package/dist/src/views/forms/ValidationPage.d.ts +0 -2
- package/dist/src/views/inputs/CheckboxPage.d.ts +0 -2
- package/dist/src/views/inputs/ComboboxPage.d.ts +0 -2
- package/dist/src/views/inputs/DatepickerPage.d.ts +0 -2
- package/dist/src/views/inputs/EmailPage.d.ts +0 -2
- package/dist/src/views/inputs/FileDropzonePage.d.ts +0 -2
- package/dist/src/views/inputs/MiscInputsPage.d.ts +0 -2
- package/dist/src/views/inputs/PhonePage.d.ts +0 -2
- package/dist/src/views/inputs/SelectPage.d.ts +0 -2
- package/dist/src/views/inputs/SelectTextPage.d.ts +0 -2
- package/dist/src/views/inputs/SwitchGroupPage.d.ts +0 -2
- package/dist/src/views/inputs/SwitchPage.d.ts +0 -2
- package/dist/src/views/inputs/TextAreaPage.d.ts +0 -2
- package/dist/src/views/layouts/CardLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/DashboardLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/HeaderLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/SidebarLayoutPage.d.ts +0 -2
- package/dist/ui.css +0 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { XCircleIcon as
|
|
3
|
-
import { _ as
|
|
4
|
-
import
|
|
1
|
+
import { defineComponent as H, ref as y, computed as w, onMounted as J, watch as K, createElementBlock as u, openBlock as o, createCommentVNode as f, withDirectives as v, toDisplayString as m, createElementVNode as r, normalizeClass as A, createVNode as b, withCtx as N, renderSlot as Q, createTextVNode as Z, vShow as x, Fragment as ee, renderList as le, mergeProps as R, unref as U, createBlock as D } from "vue";
|
|
2
|
+
import { XCircleIcon as se, PhotoIcon as B } from "@heroicons/vue/24/solid";
|
|
3
|
+
import { _ as E } from "./FileDropzoneInput.vue_vue_type_script_setup_true_lang-BC_qN5qn.js";
|
|
4
|
+
import V from "./components/CloudinaryImage.js";
|
|
5
5
|
import O from "./components/LoadingDots.js";
|
|
6
|
-
const
|
|
6
|
+
const te = { class: "sl-space-y-2" }, ae = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "sl-grid sl-grid-cols-3 sl-items-center"
|
|
9
|
-
},
|
|
9
|
+
}, re = {
|
|
10
10
|
key: 0,
|
|
11
11
|
for: "dropzone-file",
|
|
12
12
|
class: "sl-text-sm sl-col-span-2 sl-text-gray-700 dark:sl-text-gray-200"
|
|
13
|
-
},
|
|
13
|
+
}, oe = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "sl-text-xs sl-text-gray-400 dark:sl-text-gray-500 sl-col-start-3 sl-text-right"
|
|
16
|
-
},
|
|
16
|
+
}, ie = {
|
|
17
17
|
key: 2,
|
|
18
18
|
class: "sl-text-xs sl-uppercase sl-text-gray-500 dark:sl-text-gray-400 sl-truncate sl-text-right sl-font-semibold sl-justify-self-end sl-col-start-3"
|
|
19
|
-
},
|
|
19
|
+
}, ne = { class: "sl-w-full" }, ue = { class: "sl-text-xs sl-text-gray-400 dark:sl-text-slate-400" }, de = ["onClick"], ce = { class: "sl-absolute sl-inset-0 sl-flex sl-items-center sl-justify-center sl-z-10 sl-bg-black sl-bg-opacity-50 sl-transition-opacity sl-duration-200" }, fe = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, me = { class: "sl-text-center" }, pe = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, ge = { class: "sl-w-full" }, ye = { key: 2 }, ve = { class: "sl-flex sl-items-center sl-p-4 sl-bg-gray-50 dark:sl-bg-slate-800 sl-rounded-lg" }, be = { class: "sl-flex-shrink-0" }, xe = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "sl-h-16 sl-w-16 sl-rounded-full sl-bg-gray-200 dark:sl-bg-slate-700 sl-flex sl-items-center sl-justify-center"
|
|
22
|
-
},
|
|
22
|
+
}, he = { class: "sl-ml-4 sl-text-left" }, ke = { class: "sl-text-sm sl-font-medium sl-text-gray-700 dark:sl-text-gray-200" }, we = { class: "sl-text-xs sl-text-gray-500 dark:sl-text-gray-400" }, De = { class: "sl-absolute sl-inset-2 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-md" }, ze = { class: "sl-absolute sl-inset-x-0 sl-top-0 sl-bottom-1 sl-z-20 sl-flex sl-items-center sl-justify-center sl-bg-gray-50 dark:sl-bg-slate-800 sl-bg-opacity-95 sl-text-gray-600 dark:sl-text-gray-300 sl-transition-opacity sl-duration-200 sl-rounded-lg" }, Fe = { class: "sl-absolute sl-inset-0 sl-z-30 sl-flex sl-items-center sl-justify-center sl-bg-primary-50 dark:sl-bg-primary-900/30 sl-bg-opacity-95 sl-border-2 sl-border-dashed sl-border-primary-400 sl-rounded-lg sl-transition-opacity sl-duration-200" }, Me = { class: "sl-text-center" }, je = { class: "sl-mt-2 sl-text-sm sl-font-medium sl-text-primary-600 dark:sl-text-primary-400" }, Se = {
|
|
23
23
|
key: 3,
|
|
24
24
|
class: "sl-mt-2 sl-text-sm sl-text-red-600 dark:sl-text-red-400"
|
|
25
|
-
},
|
|
25
|
+
}, Ve = /* @__PURE__ */ H({
|
|
26
26
|
__name: "ImageDropzoneInput",
|
|
27
27
|
props: {
|
|
28
28
|
/** Current image value(s) */
|
|
@@ -144,37 +144,37 @@ const le = { class: "sl-space-y-2" }, se = {
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
emits: ["update:modelValue", "update:media", "clear:media"],
|
|
147
|
-
setup(t, { expose:
|
|
148
|
-
const s = t,
|
|
147
|
+
setup(t, { expose: X, emit: q }) {
|
|
148
|
+
const s = t, z = q, a = y([]), i = y("empty"), p = y(!1), h = y(!1), k = y(!1), d = y(!1), F = y(""), M = y(!1), j = y(!0), S = w(() => s.disabled || h.value), W = w(() => s.acceptedFormats.map((e) => e.split("/")[1]?.toUpperCase() || e).join(", ")), Y = w(() => i.value === "loading" ? "Please be patient while we upload your file" : i.value === "uploaded" && a.value[0]?.created_at ? `Uploaded ${new Date(a.value[0].created_at).toLocaleDateString()}` : "Click to replace"), G = w(() => {
|
|
149
149
|
if (!a.value[0]?.original_file_name) return "Image";
|
|
150
150
|
const e = a.value[0].original_file_name, l = 20;
|
|
151
151
|
if (e.length <= l) return e;
|
|
152
152
|
const n = e.lastIndexOf("."), g = n !== -1 ? e.substring(n) : "";
|
|
153
153
|
return (n !== -1 ? e.substring(0, n) : e).substring(0, l - 3 - g.length) + "..." + g;
|
|
154
|
-
}),
|
|
154
|
+
}), I = w(() => {
|
|
155
155
|
const e = "sl-border-2 sl-border-dashed sl-shadow-sm sl-ring-1 sl-ring-inset focus-within:sl-ring-2 focus-within:sl-ring-inset focus-within:sl-ring-primary-600 sl-transition-all sl-duration-200";
|
|
156
|
-
return !s.colorfulValidation || !
|
|
157
|
-
}),
|
|
156
|
+
return !s.colorfulValidation || !M.value && !s.showErrors ? `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600` : j.value && M.value && s.colorfulValidation ? `${e} sl-border-green-500 sl-ring-green-500` : !j.value && s.colorfulValidation && (M.value || s.showErrors) ? `${e} sl-border-red-500 sl-ring-red-500` : `${e} sl-border-gray-300 dark:sl-border-slate-600 sl-ring-gray-300 dark:sl-ring-slate-600`;
|
|
157
|
+
}), $ = async (e) => {
|
|
158
158
|
if (!(s.onBeforeUpload && s.onBeforeUpload()))
|
|
159
159
|
try {
|
|
160
|
-
h.value = !0,
|
|
160
|
+
h.value = !0, M.value = !0, F.value = "";
|
|
161
161
|
const l = Array.from(e), n = s.enableMultiple ? l : [l[0]];
|
|
162
162
|
for (const g of n) {
|
|
163
163
|
i.value = "loading";
|
|
164
164
|
try {
|
|
165
165
|
const c = await s.onUpload(g, s.presetType, s.projectId);
|
|
166
166
|
if (c) {
|
|
167
|
-
s.enableMultiple ? a.value.push(c) : a.value = [c], i.value = "uploaded",
|
|
167
|
+
s.enableMultiple ? a.value.push(c) : a.value = [c], i.value = "uploaded", j.value = !0, z("update:modelValue", s.enableMultiple ? a.value : a.value[0]);
|
|
168
168
|
const L = {
|
|
169
169
|
cloudinaryAsset: c,
|
|
170
170
|
presetType: s.presetType,
|
|
171
171
|
projectId: s.projectId
|
|
172
172
|
};
|
|
173
|
-
|
|
173
|
+
z("update:media", L);
|
|
174
174
|
} else
|
|
175
175
|
throw new Error("Upload failed - no response");
|
|
176
176
|
} catch (c) {
|
|
177
|
-
console.error("Upload error:", c),
|
|
177
|
+
console.error("Upload error:", c), F.value = c.message || "Upload failed", i.value = "error", j.value = !1;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
} catch (l) {
|
|
@@ -191,7 +191,7 @@ const le = { class: "sl-space-y-2" }, se = {
|
|
|
191
191
|
}, _ = async (e) => {
|
|
192
192
|
if (e.preventDefault(), e.stopPropagation(), k.value = !1, d.value = !0, e.dataTransfer?.files && e.dataTransfer.files.length > 0)
|
|
193
193
|
try {
|
|
194
|
-
await
|
|
194
|
+
await $(e.dataTransfer.files);
|
|
195
195
|
} finally {
|
|
196
196
|
d.value = !1;
|
|
197
197
|
}
|
|
@@ -199,47 +199,51 @@ const le = { class: "sl-space-y-2" }, se = {
|
|
|
199
199
|
d.value = !1;
|
|
200
200
|
}, C = async (e) => {
|
|
201
201
|
try {
|
|
202
|
-
h.value = !0, e && s.deleteFileFromCloudinary && s.onDelete && await s.onDelete(e), e &&
|
|
202
|
+
h.value = !0, e && s.deleteFileFromCloudinary && s.onDelete && await s.onDelete(e), e && z("clear:media", e);
|
|
203
203
|
} catch (l) {
|
|
204
204
|
console.error(l);
|
|
205
205
|
} finally {
|
|
206
|
-
i.value = "empty", a.value = [], h.value = !1,
|
|
206
|
+
i.value = "empty", a.value = [], h.value = !1, z("update:modelValue", null);
|
|
207
207
|
}
|
|
208
208
|
};
|
|
209
|
-
return
|
|
209
|
+
return J(() => {
|
|
210
210
|
s.modelValue && (a.value = Array.isArray(s.modelValue) ? s.modelValue : [s.modelValue], i.value = "inherited");
|
|
211
|
-
}),
|
|
211
|
+
}), K(
|
|
212
212
|
() => s.modelValue,
|
|
213
213
|
(e) => {
|
|
214
214
|
e ? (a.value = Array.isArray(e) ? e : [e], i.value = "inherited") : (i.value = "empty", a.value = []);
|
|
215
215
|
},
|
|
216
216
|
{ immediate: !0 }
|
|
217
|
-
),
|
|
217
|
+
), X({
|
|
218
218
|
clearImage: C,
|
|
219
219
|
imageInputStatus: i,
|
|
220
220
|
uploadResponse: a
|
|
221
|
-
}), (e, l) => (
|
|
222
|
-
t.label || t.tertiaryLabel ? (
|
|
223
|
-
t.label ? (
|
|
224
|
-
S.value && t.disabledMessage ? (
|
|
225
|
-
t.tertiaryLabel && !S.value ? (
|
|
221
|
+
}), (e, l) => (o(), u("div", te, [
|
|
222
|
+
t.label || t.tertiaryLabel ? (o(), u("div", ae, [
|
|
223
|
+
t.label ? (o(), u("label", re, m(t.label), 1)) : f("", !0),
|
|
224
|
+
S.value && t.disabledMessage ? (o(), u("p", oe, m(t.disabledMessage), 1)) : f("", !0),
|
|
225
|
+
t.tertiaryLabel && !S.value ? (o(), u("span", ie, m(t.tertiaryLabel), 1)) : f("", !0)
|
|
226
226
|
])) : f("", !0),
|
|
227
|
-
v(
|
|
227
|
+
v(r("div", {
|
|
228
228
|
class: A(["sl-flex sl-items-center sl-justify-center sl-w-full", { "sl-h-screen": t.fullSize, "sl-mt-2": t.label }])
|
|
229
229
|
}, [
|
|
230
|
-
|
|
231
|
-
b(
|
|
230
|
+
r("div", ne, [
|
|
231
|
+
b(E, {
|
|
232
232
|
"enable-multiple": t.enableMultiple,
|
|
233
|
-
"onUpdate:files":
|
|
233
|
+
"onUpdate:files": $,
|
|
234
234
|
"accepted-formats": t.acceptedFormats,
|
|
235
235
|
"maximum-file-size": t.maximumFileSize,
|
|
236
236
|
disabled: S.value,
|
|
237
|
-
"ring-classes":
|
|
237
|
+
"ring-classes": I.value,
|
|
238
238
|
height: "md"
|
|
239
239
|
}, {
|
|
240
|
-
default:
|
|
241
|
-
|
|
242
|
-
l[8] || (l[8] =
|
|
240
|
+
default: N(() => [
|
|
241
|
+
Q(e.$slots, "empty-state", {}, () => [
|
|
242
|
+
l[8] || (l[8] = r("p", { class: "sl-mb-2 sl-text-sm sl-text-gray-500 dark:sl-text-slate-300" }, [
|
|
243
|
+
r("span", { class: "sl-font-semibold" }, "Click to upload"),
|
|
244
|
+
Z(" or drag and drop ")
|
|
245
|
+
], -1)),
|
|
246
|
+
r("p", ue, m(W.value) + " (MAX. " + m(t.maximumFileSize) + "MB) ", 1)
|
|
243
247
|
])
|
|
244
248
|
]),
|
|
245
249
|
_: 3
|
|
@@ -248,146 +252,146 @@ const le = { class: "sl-space-y-2" }, se = {
|
|
|
248
252
|
], 2), [
|
|
249
253
|
[x, i.value === "empty"]
|
|
250
254
|
]),
|
|
251
|
-
a.value && Array.isArray(a.value) && a.value.length > 1 ? (
|
|
255
|
+
a.value && Array.isArray(a.value) && a.value.length > 1 ? (o(), u("div", {
|
|
252
256
|
key: 1,
|
|
253
257
|
class: A(["sl-flex sl-flex-wrap sl--mx-2", { "sl-mt-2": t.label }])
|
|
254
258
|
}, [
|
|
255
|
-
(
|
|
259
|
+
(o(!0), u(ee, null, le(a.value, (n, g) => (o(), u("div", {
|
|
256
260
|
key: g,
|
|
257
261
|
class: "sl-p-2 sl-relative sl-group",
|
|
258
262
|
onDragover: T,
|
|
259
263
|
onDragleave: P,
|
|
260
264
|
onDrop: _
|
|
261
265
|
}, [
|
|
262
|
-
|
|
266
|
+
r("button", {
|
|
263
267
|
type: "button",
|
|
264
268
|
onClick: (c) => C(n.public_id),
|
|
265
|
-
onMouseenter: l[0] || (l[0] = (c) =>
|
|
266
|
-
onMouseleave: l[1] || (l[1] = (c) =>
|
|
269
|
+
onMouseenter: l[0] || (l[0] = (c) => p.value = !0),
|
|
270
|
+
onMouseleave: l[1] || (l[1] = (c) => p.value = !1),
|
|
267
271
|
class: "sl-relative sl-rounded-lg sl-overflow-hidden focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-500",
|
|
268
272
|
"aria-label": "Remove image"
|
|
269
273
|
}, [
|
|
270
|
-
b(
|
|
274
|
+
b(V, R({
|
|
271
275
|
"public-id": n.public_id
|
|
272
276
|
}, { ref_for: !0 }, t.cloudinaryImageProps, { class: "sl-transition-transform sl-duration-200 group-hover:sl-scale-105 sl-w-full sl-h-full sl-object-cover" }), null, 16, ["public-id"]),
|
|
273
|
-
v(
|
|
274
|
-
b(
|
|
277
|
+
v(r("span", ce, [
|
|
278
|
+
b(U(se), { class: "sl-h-10 sl-w-10 sl-text-red-600" })
|
|
275
279
|
], 512), [
|
|
276
|
-
[x,
|
|
280
|
+
[x, p.value]
|
|
277
281
|
])
|
|
278
|
-
], 40,
|
|
279
|
-
v(
|
|
280
|
-
|
|
281
|
-
d.value ? f("", !0) : (
|
|
282
|
+
], 40, de),
|
|
283
|
+
v(r("div", fe, [
|
|
284
|
+
r("div", me, [
|
|
285
|
+
d.value ? f("", !0) : (o(), D(U(B), {
|
|
282
286
|
key: 0,
|
|
283
287
|
class: "sl-mx-auto sl-h-12 sl-w-12 sl-text-primary-400"
|
|
284
288
|
})),
|
|
285
|
-
d.value ? (
|
|
289
|
+
d.value ? (o(), D(O, {
|
|
286
290
|
key: 1,
|
|
287
291
|
size: "sm"
|
|
288
292
|
})) : f("", !0),
|
|
289
|
-
|
|
293
|
+
r("p", pe, m(d.value ? "Uploading..." : "Drop to replace"), 1)
|
|
290
294
|
])
|
|
291
295
|
], 512), [
|
|
292
296
|
[x, k.value || d.value]
|
|
293
297
|
])
|
|
294
298
|
], 32))), 128)),
|
|
295
|
-
i.value === "uploaded" && t.enableMultiple ? (
|
|
299
|
+
i.value === "uploaded" && t.enableMultiple ? (o(), u("div", {
|
|
296
300
|
key: 0,
|
|
297
301
|
class: A(["sl-flex sl-items-center sl-justify-center sl-w-full", { "sl-h-screen": t.fullSize }])
|
|
298
302
|
}, [
|
|
299
|
-
|
|
300
|
-
b(
|
|
303
|
+
r("div", ge, [
|
|
304
|
+
b(E, {
|
|
301
305
|
"enable-multiple": t.enableMultiple,
|
|
302
|
-
"onUpdate:files":
|
|
306
|
+
"onUpdate:files": $,
|
|
303
307
|
"accepted-formats": t.acceptedFormats,
|
|
304
308
|
"maximum-file-size": t.maximumFileSize,
|
|
305
309
|
disabled: S.value,
|
|
306
|
-
"ring-classes":
|
|
310
|
+
"ring-classes": I.value,
|
|
307
311
|
height: "sm"
|
|
308
312
|
}, {
|
|
309
|
-
default:
|
|
310
|
-
|
|
313
|
+
default: N(() => [...l[9] || (l[9] = [
|
|
314
|
+
r("p", { class: "sl-text-sm sl-text-gray-500 dark:sl-text-gray-400" }, "Add more images", -1)
|
|
311
315
|
])]),
|
|
312
316
|
_: 1
|
|
313
317
|
}, 8, ["enable-multiple", "accepted-formats", "maximum-file-size", "disabled", "ring-classes"])
|
|
314
318
|
])
|
|
315
319
|
], 2)) : f("", !0)
|
|
316
|
-
], 2)) : (
|
|
317
|
-
i.value === "uploaded" || i.value === "loading" || i.value === "inherited" ? (
|
|
320
|
+
], 2)) : (o(), u("div", ye, [
|
|
321
|
+
i.value === "uploaded" || i.value === "loading" || i.value === "inherited" ? (o(), u("div", {
|
|
318
322
|
key: 0,
|
|
319
323
|
class: "sl-relative sl-mt-2",
|
|
320
324
|
onDragover: T,
|
|
321
325
|
onDragleave: P,
|
|
322
326
|
onDrop: _
|
|
323
327
|
}, [
|
|
324
|
-
t.isAvatar ? (
|
|
328
|
+
t.isAvatar ? (o(), u("button", {
|
|
325
329
|
key: 0,
|
|
326
330
|
type: "button",
|
|
327
331
|
onClick: l[2] || (l[2] = (n) => C(a.value[0]?.public_id)),
|
|
328
|
-
onMouseenter: l[3] || (l[3] = (n) =>
|
|
329
|
-
onMouseleave: l[4] || (l[4] = (n) =>
|
|
332
|
+
onMouseenter: l[3] || (l[3] = (n) => p.value = !0),
|
|
333
|
+
onMouseleave: l[4] || (l[4] = (n) => p.value = !1),
|
|
330
334
|
class: "sl-w-full focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-600 focus:sl-ring-offset-2 sl-rounded-lg sl-overflow-hidden sl-transition-all sl-duration-200",
|
|
331
335
|
"aria-label": "Replace avatar"
|
|
332
336
|
}, [
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
a.value[0]?.public_id && i.value !== "loading" ? (
|
|
337
|
+
r("div", ve, [
|
|
338
|
+
r("div", be, [
|
|
339
|
+
a.value[0]?.public_id && i.value !== "loading" ? (o(), D(V, {
|
|
336
340
|
key: 0,
|
|
337
341
|
"public-id": a.value[0].public_id,
|
|
338
342
|
width: 64,
|
|
339
343
|
height: 64,
|
|
340
344
|
class: "sl-h-16 sl-w-16 sl-rounded-full sl-object-cover",
|
|
341
345
|
skeleton: "user"
|
|
342
|
-
}, null, 8, ["public-id"])) : (
|
|
343
|
-
b(
|
|
346
|
+
}, null, 8, ["public-id"])) : (o(), u("div", xe, [
|
|
347
|
+
b(U(B), { class: "sl-h-8 sl-w-8 sl-text-gray-400 dark:sl-text-gray-500" })
|
|
344
348
|
]))
|
|
345
349
|
]),
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
350
|
+
r("div", he, [
|
|
351
|
+
r("p", ke, m(i.value === "loading" ? "Uploading..." : G.value), 1),
|
|
352
|
+
r("p", we, m(i.value === "loading" ? "Please wait..." : Y.value), 1)
|
|
349
353
|
])
|
|
350
354
|
]),
|
|
351
|
-
v(
|
|
352
|
-
[x,
|
|
355
|
+
v(r("span", De, " Replace ", 512), [
|
|
356
|
+
[x, p.value]
|
|
353
357
|
])
|
|
354
|
-
], 32)) : (
|
|
358
|
+
], 32)) : (o(), u("button", {
|
|
355
359
|
key: 1,
|
|
356
360
|
type: "button",
|
|
357
361
|
onClick: l[5] || (l[5] = (n) => C(a.value[0]?.public_id)),
|
|
358
|
-
onMouseenter: l[6] || (l[6] = (n) =>
|
|
359
|
-
onMouseleave: l[7] || (l[7] = (n) =>
|
|
362
|
+
onMouseenter: l[6] || (l[6] = (n) => p.value = !0),
|
|
363
|
+
onMouseleave: l[7] || (l[7] = (n) => p.value = !1),
|
|
360
364
|
class: "sl-w-full focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-primary-600 focus:sl-ring-offset-2 sl-rounded-lg sl-overflow-hidden sl-transition-all sl-duration-200",
|
|
361
365
|
"aria-label": "Replace image"
|
|
362
366
|
}, [
|
|
363
|
-
b(
|
|
367
|
+
b(V, R({
|
|
364
368
|
"public-id": a.value[0]?.public_id
|
|
365
369
|
}, t.cloudinaryImageProps, { class: "sl-transition-transform sl-duration-200 group-hover:sl-scale-105 sl-w-full sl-h-full sl-object-cover" }), null, 16, ["public-id"]),
|
|
366
|
-
v(
|
|
367
|
-
[x,
|
|
370
|
+
v(r("span", ze, " Replace ", 512), [
|
|
371
|
+
[x, p.value]
|
|
368
372
|
])
|
|
369
373
|
], 32)),
|
|
370
|
-
v(
|
|
371
|
-
|
|
372
|
-
d.value ? f("", !0) : (
|
|
374
|
+
v(r("div", Fe, [
|
|
375
|
+
r("div", Me, [
|
|
376
|
+
d.value ? f("", !0) : (o(), D(U(B), {
|
|
373
377
|
key: 0,
|
|
374
378
|
class: "sl-mx-auto sl-h-12 sl-w-12 sl-text-primary-400"
|
|
375
379
|
})),
|
|
376
|
-
d.value ? (
|
|
380
|
+
d.value ? (o(), D(O, {
|
|
377
381
|
key: 1,
|
|
378
382
|
size: "sm"
|
|
379
383
|
})) : f("", !0),
|
|
380
|
-
|
|
384
|
+
r("p", je, m(d.value ? "Uploading..." : "Drop to replace"), 1)
|
|
381
385
|
])
|
|
382
386
|
], 512), [
|
|
383
387
|
[x, k.value || d.value]
|
|
384
388
|
])
|
|
385
389
|
], 32)) : f("", !0)
|
|
386
390
|
])),
|
|
387
|
-
|
|
391
|
+
F.value ? (o(), u("p", Se, m(F.value), 1)) : f("", !0)
|
|
388
392
|
]));
|
|
389
393
|
}
|
|
390
394
|
});
|
|
391
395
|
export {
|
|
392
|
-
|
|
396
|
+
Ve as _
|
|
393
397
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, createElementBlock as s, openBlock as t, createCommentVNode as n, createElementVNode as r, createVNode as I, unref as l, toDisplayString as d, Fragment as c, renderList as u, normalizeClass as h, withModifiers as V, createTextVNode as N, renderSlot as b } from "vue";
|
|
2
|
-
import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as S } from "./SelectInput.vue_vue_type_script_setup_true_lang-DEaP3bhC.js";
|
|
3
3
|
import { u as $ } from "./useSimpleTabs-CSgkChEU.js";
|
|
4
4
|
const B = { class: "sl-w-full" }, M = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as R, computed as u, createElementBlock as r, openBlock as o, createElementVNode as a, Fragment as i, renderList as c, toDisplayString as g, normalizeClass as h, createCommentVNode as m, unref as L, normalizeStyle as _, withModifiers as X } from "vue";
|
|
2
|
-
import { f as $ } from "./calendar-
|
|
2
|
+
import { f as $ } from "./calendar-DaXCwXP5.js";
|
|
3
3
|
import { u as q, c as G } from "./useEventSegments-B-r_8zCW.js";
|
|
4
4
|
const J = { class: "sl-shadow sl-ring-1 sl-ring-black dark:sl-ring-slate-700 sl-ring-opacity-5 lg:sl-flex lg:sl-flex-auto lg:sl-flex-col" }, Q = { class: "sl-grid sl-grid-cols-7 sl-gap-px sl-border-b sl-border-gray-300 dark:sl-border-slate-600 sl-bg-gray-200 dark:sl-bg-slate-800 sl-text-center sl-text-xs sl-font-semibold sl-leading-6 sl-text-gray-700 dark:sl-text-slate-300 lg:sl-flex-none" }, U = { class: "sl-flex sl-bg-gray-200 dark:sl-bg-slate-800 sl-text-xs sl-leading-6 sl-text-gray-700 dark:sl-text-slate-300 lg:sl-flex-auto" }, Y = { class: "sl-hidden sl-w-full lg:sl-grid lg:sl-grid-cols-7 lg:sl-grid-rows-6 lg:sl-gap-px" }, Z = { class: "sl-px-3" }, ss = ["datetime"], es = { class: "sl-mt-2 sl-space-y-1 sl-min-h-0" }, ls = ["onClick"], ts = { class: "sl-relative" }, ns = {
|
|
5
5
|
key: 0,
|