@stachelock/ui 0.6.7 → 0.6.10
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-CA_C4dmn.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js} +2 -2
- package/dist/ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js +368 -0
- 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/{EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js → EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js} +51 -49
- package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-slNq2sot.js → InlineTabs.vue_vue_type_script_setup_true_lang-BWzrSbT3.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-D9yg_rkV.js +327 -0
- package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js +304 -0
- package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-pEKm-uUq.js → TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js} +1 -1
- package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang--IKyRPkX.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js} +1 -1
- package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-EG0nj4F6.js → TabsInPills.vue_vue_type_script_setup_true_lang-mw68ZzS1.js} +1 -1
- 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/DynamicFormField.d.ts +3 -1
- package/dist/forms/FormFieldWrapper.d.ts +3 -1
- 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 +144 -141
- 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/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/HiddenInput.d.ts +3 -1
- package/dist/inputs/ImageDropzoneInput.d.ts +3 -1
- package/dist/inputs/PhoneInput.d.ts +3 -1
- package/dist/inputs/PhoneInput.js +146 -145
- package/dist/inputs/RichTextInput.d.ts +3 -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/TextAreaInput.d.ts +3 -1
- package/dist/inputs/TextInput.d.ts +3 -1
- package/dist/inputs/TextInput.js +42 -39
- 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 +51 -7
- package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
- package/dist/src/components/inputs/ComboboxInput.d.ts +55 -10
- 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 +77 -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 +6 -0
- package/dist/src/utils/component-registry.d.ts +1 -0
- package/dist/src/utils/index.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 +12 -0
- package/dist/src/views/inputs/index.d.ts +1 -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/ComboboxInput.vue_vue_type_script_setup_true_lang-D52gzkAa.js +0 -353
- package/dist/SelectInput.vue_vue_type_script_setup_true_lang-COZuuSFS.js +0 -320
- package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-BVaViHPl.js +0 -336
- 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,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as P, ref as v, computed as x, watch as D, onMounted as q, onUnmounted as J, createElementBlock as d, openBlock as c, createElementVNode as s, toDisplayString as u, createVNode as y, unref as C, createCommentVNode as S, renderSlot as M, Fragment as _, withCtx as $, createTextVNode as Q, Transition as X, withDirectives as Z, renderList as ee, normalizeClass as te, vShow as se } from "vue";
|
|
2
2
|
import { ChevronLeftIcon as le, ChevronRightIcon as ae, EllipsisHorizontalIcon as re } from "@heroicons/vue/20/solid";
|
|
3
3
|
import ne from "./components/Button.js";
|
|
4
|
-
import { _ as oe } from "./SelectInput.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { t as h, p as A, b as ie, g as de, a as O } from "./calendar-
|
|
4
|
+
import { _ as oe } from "./SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js";
|
|
5
|
+
import { t as h, p as A, b as ie, g as de, a as O } from "./calendar-DaXCwXP5.js";
|
|
6
6
|
const ce = { class: "sl-flex sl-items-center sl-justify-between sl-border-b sl-border-gray-200 dark:sl-border-slate-700 sl-pl-6 sl-py-4 lg:sl-flex-none sl-bg-white dark:sl-bg-slate-900" }, ue = { class: "sl-text-base sl-font-semibold sl-leading-6 sl-text-gray-800 dark:sl-text-slate-200" }, ye = ["datetime"], me = { class: "sl-flex sl-items-center" }, ge = { class: "sl-relative sl-flex sl-items-center sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-shadow-sm md:sl-items-stretch" }, ve = { class: "sl-sr-only" }, he = { class: "sl-sr-only" }, fe = { class: "sl-hidden md:sl-ml-4 md:sl-flex md:sl-items-center" }, be = { class: "sl-w-36" }, ke = { class: "sl-absolute sl-right-0 sl-z-10 sl-mt-3 sl-w-36 sl-origin-top-right sl-divide-y sl-divide-gray-100 dark:sl-divide-slate-700 sl-overflow-hidden sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-shadow-lg sl-ring-1 sl-ring-black dark:sl-ring-slate-600 sl-ring-opacity-5 focus:sl-outline-none" }, we = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "sl-py-1"
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { defineComponent as te, ref as w, watch as F, computed as x, createElementBlock as m, openBlock as u, createVNode as d, unref as n, withCtx as v, createElementVNode as c, normalizeClass as g, createCommentVNode as f, withModifiers as I, createBlock as N, toDisplayString as M, Fragment as ae, renderList as oe } from "vue";
|
|
2
|
+
import { Combobox as ne, ComboboxInput as re, ComboboxButton as ue, TransitionRoot as ie, ComboboxOptions as de, ComboboxOption as U } from "@headlessui/vue";
|
|
3
|
+
import { XMarkIcon as ce, ChevronUpDownIcon as me, CheckIcon as z } from "@heroicons/vue/20/solid";
|
|
4
|
+
import { useField as ve } from "vee-validate";
|
|
5
|
+
import fe from "./forms/FormFieldWrapper.js";
|
|
6
|
+
import { _ as pe } from "./UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js";
|
|
7
|
+
import { g as ge } from "./id-DafBB_QF.js";
|
|
8
|
+
const ye = { class: "sl-w-full" }, he = { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2 sl-gap-1" }, be = { class: "sl-block sl-truncate sl-font-medium" }, ke = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "sl-absolute sl-inset-y-0 sl-left-0 sl-flex sl-items-center sl-pl-3 sl-text-stachelock-600 dark:sl-text-stachelock-400"
|
|
11
|
+
}, xe = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "sl-relative sl-cursor-default sl-select-none sl-py-2 sl-px-4 sl-text-gray-700 dark:sl-text-slate-200"
|
|
14
|
+
}, we = { class: "sl-flex sl-items-center sl-gap-2" }, Ce = {
|
|
15
|
+
key: 2,
|
|
16
|
+
class: "sl-relative sl-cursor-default sl-select-none sl-py-2 sl-px-4 sl-text-gray-700 dark:sl-text-slate-200"
|
|
17
|
+
}, Ae = { class: "sl-block sl-truncate" }, Ve = { key: 0 }, Be = 50, Ne = /* @__PURE__ */ te({
|
|
18
|
+
__name: "ComboboxInput",
|
|
19
|
+
props: {
|
|
20
|
+
name: {},
|
|
21
|
+
items: {},
|
|
22
|
+
label: {},
|
|
23
|
+
placeholder: {},
|
|
24
|
+
disabled: { type: Boolean },
|
|
25
|
+
rules: {},
|
|
26
|
+
validateOnMount: { type: Boolean },
|
|
27
|
+
successMessage: {},
|
|
28
|
+
tertiaryLabel: {},
|
|
29
|
+
itemKey: { default: "id" },
|
|
30
|
+
itemText: { default: "name" },
|
|
31
|
+
customQuery: {},
|
|
32
|
+
loading: { type: Boolean, default: !1 },
|
|
33
|
+
multiple: { type: Boolean, default: !1 },
|
|
34
|
+
showAll: { type: Boolean, default: !1 },
|
|
35
|
+
modelValue: { type: [String, Number, Boolean, null, Object, Array] },
|
|
36
|
+
value: { type: [String, Number, Boolean, null, Object, Array] },
|
|
37
|
+
boxShadow: { type: Boolean, default: !1 },
|
|
38
|
+
clearable: { type: Boolean, default: !1 },
|
|
39
|
+
showValidCheck: { type: Boolean, default: !0 },
|
|
40
|
+
colorfulValidation: { type: Boolean, default: !0 }
|
|
41
|
+
},
|
|
42
|
+
emits: ["update:modelValue", "update:value", "update:query", "blur", "focus"],
|
|
43
|
+
setup(a, { emit: D }) {
|
|
44
|
+
const s = a, i = D, P = ge(s.name), o = w(""), C = s.modelValue ?? s.value, { value: y, errorMessage: K, handleChange: p, meta: A, setTouched: V } = ve(
|
|
45
|
+
() => s.name,
|
|
46
|
+
s.rules,
|
|
47
|
+
{
|
|
48
|
+
validateOnMount: s.validateOnMount,
|
|
49
|
+
initialValue: C
|
|
50
|
+
}
|
|
51
|
+
), t = w(
|
|
52
|
+
s.multiple ? Array.isArray(C) ? C : [] : C ?? null
|
|
53
|
+
);
|
|
54
|
+
F(
|
|
55
|
+
() => s.modelValue ?? s.value,
|
|
56
|
+
(e) => {
|
|
57
|
+
if (s.multiple) {
|
|
58
|
+
const l = Array.isArray(e) ? e : [];
|
|
59
|
+
l !== t.value && (t.value = l, y.value = l);
|
|
60
|
+
} else
|
|
61
|
+
e !== t.value && (t.value = e, y.value = e);
|
|
62
|
+
},
|
|
63
|
+
{ immediate: !0 }
|
|
64
|
+
), F(
|
|
65
|
+
t,
|
|
66
|
+
(e) => {
|
|
67
|
+
i("update:modelValue", e), i("update:value", e);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
const $ = x(() => [
|
|
71
|
+
"sl-w-full",
|
|
72
|
+
"sl-border-none",
|
|
73
|
+
"sl-py-1.5",
|
|
74
|
+
"sl-pl-3",
|
|
75
|
+
"sl-pr-10",
|
|
76
|
+
"sl-text-sm",
|
|
77
|
+
"sl-leading-5",
|
|
78
|
+
"sl-text-gray-900",
|
|
79
|
+
"dark:sl-text-slate-100",
|
|
80
|
+
"placeholder:sl-text-gray-400",
|
|
81
|
+
"dark:placeholder:sl-text-slate-500",
|
|
82
|
+
"sl-outline-none",
|
|
83
|
+
"focus:sl-outline-none",
|
|
84
|
+
"dark:sl-outline-none",
|
|
85
|
+
"dark:focus:sl-outline-none",
|
|
86
|
+
"focus:sl-ring-0",
|
|
87
|
+
"sl-bg-transparent"
|
|
88
|
+
].join(" ")), H = x(() => {
|
|
89
|
+
const e = [
|
|
90
|
+
"sl-relative",
|
|
91
|
+
"sl-w-full",
|
|
92
|
+
"sl-cursor-default",
|
|
93
|
+
"sl-rounded-md",
|
|
94
|
+
"sl-shadow-sm",
|
|
95
|
+
"sl-ring-1",
|
|
96
|
+
"sl-ring-inset",
|
|
97
|
+
"sl-bg-white",
|
|
98
|
+
"dark:sl-bg-slate-800",
|
|
99
|
+
"sl-text-left",
|
|
100
|
+
"sl-outline-none",
|
|
101
|
+
"dark:sl-outline-none",
|
|
102
|
+
"focus-within:sl-outline-none",
|
|
103
|
+
"dark:focus-within:sl-outline-none",
|
|
104
|
+
"[&_*]:sl-outline-none",
|
|
105
|
+
"dark:[&_*]:sl-outline-none",
|
|
106
|
+
"focus-within:sl-ring-2",
|
|
107
|
+
"focus-within:sl-ring-inset",
|
|
108
|
+
"focus-within:sl-ring-stachelock-600",
|
|
109
|
+
"sl-transition-all",
|
|
110
|
+
"sl-duration-200"
|
|
111
|
+
];
|
|
112
|
+
return s.disabled ? e.push(
|
|
113
|
+
"sl-bg-gray-50",
|
|
114
|
+
"dark:sl-bg-slate-800",
|
|
115
|
+
"sl-cursor-not-allowed",
|
|
116
|
+
"sl-ring-gray-200",
|
|
117
|
+
"dark:sl-ring-slate-700"
|
|
118
|
+
) : K.value ? e.push(
|
|
119
|
+
"sl-ring-red-500",
|
|
120
|
+
"dark:sl-ring-red-500"
|
|
121
|
+
) : s.colorfulValidation && A.valid && A.touched ? e.push(
|
|
122
|
+
"sl-ring-green-500",
|
|
123
|
+
"dark:sl-ring-green-500"
|
|
124
|
+
) : e.push(
|
|
125
|
+
"sl-ring-gray-300",
|
|
126
|
+
"dark:sl-ring-slate-600"
|
|
127
|
+
), e.join(" ");
|
|
128
|
+
}), S = (e) => {
|
|
129
|
+
const l = e[s.itemKey];
|
|
130
|
+
return l == null ? "" : typeof l == "string" || typeof l == "number" ? l : String(l);
|
|
131
|
+
}, B = (e) => {
|
|
132
|
+
if (!e) return "";
|
|
133
|
+
const l = e[s.itemText];
|
|
134
|
+
return l != null ? String(l) : String(e);
|
|
135
|
+
}, h = w([]), T = w([]), L = w(1), Q = () => {
|
|
136
|
+
const e = L.value * Be;
|
|
137
|
+
T.value = h.value.slice(0, e), L.value += 1;
|
|
138
|
+
}, R = () => {
|
|
139
|
+
L.value = 1, T.value = [], Q();
|
|
140
|
+
}, j = () => {
|
|
141
|
+
if (o.value && o.value !== "")
|
|
142
|
+
if (s.customQuery)
|
|
143
|
+
h.value = s.customQuery(o.value, s.items);
|
|
144
|
+
else {
|
|
145
|
+
const e = o.value.toLowerCase();
|
|
146
|
+
h.value = s.items.filter((l) => B(l).toLowerCase().includes(e));
|
|
147
|
+
}
|
|
148
|
+
else
|
|
149
|
+
h.value = s.items;
|
|
150
|
+
R();
|
|
151
|
+
}, q = x(() => s.items.filter((e) => !e.disabled)), W = (e) => {
|
|
152
|
+
const l = e.target;
|
|
153
|
+
o.value = l.value, i("update:query", o.value), j();
|
|
154
|
+
}, X = (e) => {
|
|
155
|
+
if (s.multiple) {
|
|
156
|
+
const l = Array.isArray(e) ? e : [];
|
|
157
|
+
t.value = l, y.value = l, V(!0), p(l);
|
|
158
|
+
} else
|
|
159
|
+
t.value = e, y.value = e, V(!0), p(e);
|
|
160
|
+
}, O = x(() => {
|
|
161
|
+
if (!s.multiple || !Array.isArray(t.value)) return !1;
|
|
162
|
+
const e = q.value;
|
|
163
|
+
if (e.length === 0) return !1;
|
|
164
|
+
const l = Array.isArray(t.value) ? t.value : [], r = new Set(l.map((k) => S(k)));
|
|
165
|
+
return e.every((k) => r.has(S(k)));
|
|
166
|
+
}), G = () => {
|
|
167
|
+
s.multiple && (O.value ? t.value = [] : t.value = [...q.value], V(!0), p(t.value), i("update:modelValue", t.value));
|
|
168
|
+
}, J = (e) => s.multiple ? !Array.isArray(e) || e.length === 0 ? "" : e.length === 1 ? B(e[0]) : `${e.length} selected` : B(e), b = x(() => s.multiple || o.value === "" ? null : { [s.itemKey]: null, [s.itemText]: o.value }), Y = () => {
|
|
169
|
+
s.multiple || b.value && (s.customQuery ? (i("update:modelValue", o.value), p(o.value)) : (t.value = b.value, p(t.value)));
|
|
170
|
+
}, Z = (e) => {
|
|
171
|
+
const l = e.target;
|
|
172
|
+
l.scrollTop + l.clientHeight >= l.scrollHeight && Q();
|
|
173
|
+
}, _ = (e) => {
|
|
174
|
+
i("focus", e);
|
|
175
|
+
}, ee = x(() => {
|
|
176
|
+
if (!s.clearable) return !1;
|
|
177
|
+
const e = t.value ?? s.value ?? s.modelValue ?? y.value;
|
|
178
|
+
return s.multiple && Array.isArray(e) ? e.length > 0 : e != null && e !== "";
|
|
179
|
+
}), le = (e) => {
|
|
180
|
+
e.stopPropagation(), e.preventDefault();
|
|
181
|
+
const l = s.multiple ? [] : null;
|
|
182
|
+
t.value = l, y.value = l, o.value = "", V(!0), p(l), i("update:modelValue", l), i("update:value", l);
|
|
183
|
+
}, se = (e) => {
|
|
184
|
+
!s.multiple && b.value && (t.value = b.value, p(t.value), i("update:modelValue", t.value), i("update:value", t.value)), i("blur", e);
|
|
185
|
+
};
|
|
186
|
+
return F(() => s.items, () => {
|
|
187
|
+
j();
|
|
188
|
+
}, { immediate: !0, deep: !0 }), (e, l) => (u(), m("div", ye, [
|
|
189
|
+
d(fe, {
|
|
190
|
+
id: n(P),
|
|
191
|
+
name: a.name,
|
|
192
|
+
label: a.label,
|
|
193
|
+
disabled: a.disabled,
|
|
194
|
+
optional: !a.rules,
|
|
195
|
+
"tertiary-label": a.tertiaryLabel,
|
|
196
|
+
"box-shadow": a.boxShadow,
|
|
197
|
+
"error-message": n(K),
|
|
198
|
+
"success-message": a.successMessage,
|
|
199
|
+
"is-valid": n(A).valid,
|
|
200
|
+
"is-touched": n(A).touched,
|
|
201
|
+
"show-valid-check": a.showValidCheck,
|
|
202
|
+
"colorful-validation": a.colorfulValidation
|
|
203
|
+
}, {
|
|
204
|
+
"success-message": v(() => [
|
|
205
|
+
a.successMessage ? (u(), m("span", Ve, M(a.successMessage), 1)) : f("", !0)
|
|
206
|
+
]),
|
|
207
|
+
default: v(() => [
|
|
208
|
+
d(n(ne), {
|
|
209
|
+
modelValue: t.value,
|
|
210
|
+
"onUpdate:modelValue": [
|
|
211
|
+
l[4] || (l[4] = (r) => t.value = r),
|
|
212
|
+
X
|
|
213
|
+
],
|
|
214
|
+
disabled: a.disabled,
|
|
215
|
+
multiple: a.multiple,
|
|
216
|
+
as: "div",
|
|
217
|
+
class: "sl-outline-none dark:sl-outline-none focus:sl-outline-none dark:focus:sl-outline-none"
|
|
218
|
+
}, {
|
|
219
|
+
default: v(() => [
|
|
220
|
+
c("div", {
|
|
221
|
+
class: g(H.value)
|
|
222
|
+
}, [
|
|
223
|
+
d(n(re), {
|
|
224
|
+
id: n(P),
|
|
225
|
+
class: g($.value),
|
|
226
|
+
"display-value": J,
|
|
227
|
+
placeholder: a.placeholder || "Type to search...",
|
|
228
|
+
modelValue: o.value,
|
|
229
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r),
|
|
230
|
+
onInput: W,
|
|
231
|
+
onBlur: se,
|
|
232
|
+
onFocus: _
|
|
233
|
+
}, null, 8, ["id", "class", "placeholder", "modelValue"]),
|
|
234
|
+
c("div", he, [
|
|
235
|
+
ee.value ? (u(), m("button", {
|
|
236
|
+
key: 0,
|
|
237
|
+
type: "button",
|
|
238
|
+
class: "sl-p-0.5 sl-rounded-full sl-text-gray-400 dark:sl-text-slate-400 hover:sl-text-gray-600 dark:hover:sl-text-slate-200 hover:sl-bg-gray-100 dark:hover:sl-bg-slate-700 focus:sl-outline-none",
|
|
239
|
+
onClick: le,
|
|
240
|
+
onMousedown: l[1] || (l[1] = I(() => {
|
|
241
|
+
}, ["prevent"]))
|
|
242
|
+
}, [
|
|
243
|
+
d(n(ce), {
|
|
244
|
+
class: "sl-h-4 sl-w-4",
|
|
245
|
+
"aria-hidden": "true"
|
|
246
|
+
}),
|
|
247
|
+
l[5] || (l[5] = c("span", { class: "sl-sr-only" }, "Clear selection", -1))
|
|
248
|
+
], 32)) : f("", !0),
|
|
249
|
+
d(n(ue), { class: "sl-flex sl-items-center sl-outline-none focus:sl-outline-none dark:sl-outline-none dark:focus:sl-outline-none" }, {
|
|
250
|
+
default: v(() => [
|
|
251
|
+
d(n(me), {
|
|
252
|
+
class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-300",
|
|
253
|
+
"aria-hidden": "true"
|
|
254
|
+
})
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
d(n(ie), {
|
|
260
|
+
leave: "sl-transition sl-ease-in sl-duration-100",
|
|
261
|
+
"leave-from": "sl-opacity-100",
|
|
262
|
+
"leave-to": "sl-opacity-0",
|
|
263
|
+
onAfterLeave: l[3] || (l[3] = (r) => o.value = "")
|
|
264
|
+
}, {
|
|
265
|
+
default: v(() => [
|
|
266
|
+
h.value.length > 0 || o.value !== "" || a.multiple && a.showAll ? (u(), N(n(de), {
|
|
267
|
+
key: 0,
|
|
268
|
+
class: "sl-absolute sl-z-[9999] sl-mt-1 sl-max-h-60 sl-w-full sl-overflow-auto sl-rounded-md sl-bg-white dark:sl-bg-slate-800 sl-py-1 sl-text-base sl-shadow-lg dark:sl-shadow-slate-900/50 sl-ring-1 sl-ring-black sl-ring-opacity-5 dark:sl-ring-slate-700 focus:sl-outline-none sm:sl-text-sm",
|
|
269
|
+
onScroll: Z
|
|
270
|
+
}, {
|
|
271
|
+
default: v(() => [
|
|
272
|
+
a.multiple && a.showAll ? (u(), m("li", {
|
|
273
|
+
key: 0,
|
|
274
|
+
role: "button",
|
|
275
|
+
tabindex: "0",
|
|
276
|
+
onMousedown: l[2] || (l[2] = I(() => {
|
|
277
|
+
}, ["prevent"])),
|
|
278
|
+
onClick: I(G, ["prevent", "stop"]),
|
|
279
|
+
class: g([
|
|
280
|
+
"sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-10 sl-pr-4 sl-text-gray-900 dark:sl-text-slate-200",
|
|
281
|
+
"hover:sl-bg-stachelock-600 hover:sl-text-white"
|
|
282
|
+
]),
|
|
283
|
+
"data-testid": "select-all-option"
|
|
284
|
+
}, [
|
|
285
|
+
c("span", be, M(O.value ? "Unselect All" : "Select All"), 1),
|
|
286
|
+
O.value ? (u(), m("span", ke, [
|
|
287
|
+
d(n(z), {
|
|
288
|
+
class: "sl-h-5 sl-w-5",
|
|
289
|
+
"aria-hidden": "true"
|
|
290
|
+
})
|
|
291
|
+
])) : f("", !0)
|
|
292
|
+
], 32)) : f("", !0),
|
|
293
|
+
a.loading ? (u(), m("div", xe, [
|
|
294
|
+
c("div", we, [
|
|
295
|
+
d(pe, { size: "sm" }),
|
|
296
|
+
l[6] || (l[6] = c("span", null, "Loading...", -1))
|
|
297
|
+
])
|
|
298
|
+
])) : o.value !== "" && h.value.length === 0 ? (u(), m("div", Ce, " Nothing found. ")) : f("", !0),
|
|
299
|
+
(u(!0), m(ae, null, oe(T.value, (r) => (u(), N(n(U), {
|
|
300
|
+
key: S(r),
|
|
301
|
+
value: r,
|
|
302
|
+
as: "template",
|
|
303
|
+
disabled: r.disabled
|
|
304
|
+
}, {
|
|
305
|
+
default: v(({ active: k, selected: E }) => [
|
|
306
|
+
c("li", {
|
|
307
|
+
class: g([
|
|
308
|
+
"sl-relative sl-cursor-default sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
|
|
309
|
+
k ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200",
|
|
310
|
+
r.disabled ? "sl-opacity-50 sl-cursor-not-allowed" : ""
|
|
311
|
+
])
|
|
312
|
+
}, [
|
|
313
|
+
c("span", {
|
|
314
|
+
class: g([
|
|
315
|
+
"sl-block sl-truncate",
|
|
316
|
+
E ? "sl-font-medium" : "sl-font-normal"
|
|
317
|
+
])
|
|
318
|
+
}, M(B(r)), 3),
|
|
319
|
+
E ? (u(), m("span", {
|
|
320
|
+
key: 0,
|
|
321
|
+
class: g(["sl-absolute sl-inset-y-0 sl-left-0 sl-flex sl-items-center sl-pl-3", k ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"])
|
|
322
|
+
}, [
|
|
323
|
+
d(n(z), {
|
|
324
|
+
class: "sl-h-5 sl-w-5",
|
|
325
|
+
"aria-hidden": "true"
|
|
326
|
+
})
|
|
327
|
+
], 2)) : f("", !0)
|
|
328
|
+
], 2)
|
|
329
|
+
]),
|
|
330
|
+
_: 2
|
|
331
|
+
}, 1032, ["value", "disabled"]))), 128)),
|
|
332
|
+
!a.multiple && b.value ? (u(), N(n(U), {
|
|
333
|
+
key: 3,
|
|
334
|
+
value: b.value,
|
|
335
|
+
as: "template"
|
|
336
|
+
}, {
|
|
337
|
+
default: v(({ active: r }) => [
|
|
338
|
+
c("li", {
|
|
339
|
+
onClick: I(Y, ["prevent", "stop"]),
|
|
340
|
+
class: g([
|
|
341
|
+
"sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
|
|
342
|
+
r ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
|
|
343
|
+
])
|
|
344
|
+
}, [
|
|
345
|
+
c("span", Ae, ' Enter "' + M(o.value) + '" manually ', 1)
|
|
346
|
+
], 2)
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
}, 8, ["value"])) : f("", !0)
|
|
350
|
+
]),
|
|
351
|
+
_: 1
|
|
352
|
+
})) : f("", !0)
|
|
353
|
+
]),
|
|
354
|
+
_: 1
|
|
355
|
+
})
|
|
356
|
+
], 2)
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
}, 8, ["modelValue", "disabled", "multiple"])
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
}, 8, ["id", "name", "label", "disabled", "optional", "tertiary-label", "box-shadow", "error-message", "success-message", "is-valid", "is-touched", "show-valid-check", "colorful-validation"])
|
|
363
|
+
]));
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
export {
|
|
367
|
+
Ne as _
|
|
368
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as G, ref as m, computed as i, onMounted as Y, nextTick as q, onUnmounted as J, createElementBlock as o, openBlock as n, createElementVNode as l, createCommentVNode as d, Fragment as f, renderList as y, createTextVNode as K, toDisplayString as r, normalizeClass as Q, normalizeStyle as x, unref as p, renderSlot as W } from "vue";
|
|
2
|
-
import { i as $, c as X, d as ss, f as A } from "./calendar-
|
|
2
|
+
import { i as $, c as X, d as ss, f as A } from "./calendar-DaXCwXP5.js";
|
|
3
3
|
const ts = { class: "sl-isolate sl-flex sl-flex-auto sl-overflow-hidden sl-bg-white dark:sl-bg-slate-900" }, es = { class: "sl-grid sl-grid-cols-7 sl-text-sm sl-leading-6 sl-text-gray-500 dark:sl-text-slate-400 xl:sl-hidden" }, ls = ["onClick"], os = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "sl-border-b sl-border-gray-200 dark:sl-border-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-px-4 sl-py-2"
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useField as
|
|
3
|
-
import { string as
|
|
4
|
-
import
|
|
5
|
-
import { g as
|
|
6
|
-
|
|
1
|
+
import { defineComponent as I, ref as M, computed as V, toRef as m, watch as n, nextTick as F, createElementBlock as K, openBlock as O, createVNode as q, unref as s, withCtx as f, renderSlot as L, createElementVNode as N, withKeys as R, normalizeClass as T, withModifiers as $ } from "vue";
|
|
2
|
+
import { useField as z } from "vee-validate";
|
|
3
|
+
import { string as H } from "yup";
|
|
4
|
+
import S from "./forms/FormFieldWrapper.js";
|
|
5
|
+
import { g as U } from "./id-DafBB_QF.js";
|
|
6
|
+
import { i as W } from "./validation-Dzczp6MS.js";
|
|
7
|
+
const j = { class: "sl-w-full" }, A = ["name", "id", "value", "placeholder", "autocomplete", "disabled", "onKeydown"], Y = /* @__PURE__ */ I({
|
|
7
8
|
__name: "EmailInput",
|
|
8
9
|
props: {
|
|
9
10
|
name: {},
|
|
@@ -12,7 +13,7 @@ const S = { class: "sl-w-full" }, U = ["name", "id", "value", "placeholder", "au
|
|
|
12
13
|
placeholder: { default: "you@example.com" },
|
|
13
14
|
disabled: { type: Boolean, default: !1 },
|
|
14
15
|
disabledMessage: { default: "" },
|
|
15
|
-
rules: { default: () =>
|
|
16
|
+
rules: { default: () => H().email("Invalid email address").required("Email is required") },
|
|
16
17
|
successMessage: { default: "" },
|
|
17
18
|
tertiaryLabel: { default: "" },
|
|
18
19
|
colorfulValidation: { type: Boolean, default: !0 },
|
|
@@ -22,100 +23,101 @@ const S = { class: "sl-w-full" }, U = ["name", "id", "value", "placeholder", "au
|
|
|
22
23
|
},
|
|
23
24
|
emits: ["update:value", "update:validity", "focus", "blur", "submit"],
|
|
24
25
|
setup(l, { expose: h, emit: v }) {
|
|
25
|
-
const
|
|
26
|
+
const a = l, t = v, d = U(`sl-${a.name}`), r = M(!1), g = V(() => W(a.rules)), {
|
|
26
27
|
value: i,
|
|
27
|
-
errorMessage:
|
|
28
|
-
handleBlur:
|
|
28
|
+
errorMessage: b,
|
|
29
|
+
handleBlur: p,
|
|
29
30
|
handleChange: y,
|
|
30
31
|
meta: u,
|
|
31
32
|
validate: c,
|
|
32
|
-
setTouched:
|
|
33
|
-
} =
|
|
34
|
-
initialValue:
|
|
33
|
+
setTouched: w
|
|
34
|
+
} = z(m(a, "name"), m(a, "rules"), {
|
|
35
|
+
initialValue: a.value,
|
|
35
36
|
validateOnValueUpdate: !0,
|
|
36
37
|
validateOnMount: !1
|
|
37
38
|
});
|
|
38
39
|
n(
|
|
39
|
-
() =>
|
|
40
|
+
() => a.value,
|
|
40
41
|
(e) => {
|
|
41
42
|
e !== void 0 && e !== i.value && (i.value = e);
|
|
42
43
|
},
|
|
43
44
|
{ immediate: !0 }
|
|
44
45
|
), n(
|
|
45
46
|
() => u.valid,
|
|
46
|
-
(e) =>
|
|
47
|
+
(e) => F(() => t("update:validity", e)),
|
|
47
48
|
{ immediate: !0 }
|
|
48
|
-
), n(i, (e,
|
|
49
|
-
e !==
|
|
49
|
+
), n(i, (e, o) => {
|
|
50
|
+
e !== o && t("update:value", e || "");
|
|
50
51
|
});
|
|
51
|
-
function
|
|
52
|
-
const
|
|
53
|
-
y(
|
|
52
|
+
function k(e) {
|
|
53
|
+
const o = e.target.value;
|
|
54
|
+
y(o), t("update:value", o);
|
|
54
55
|
}
|
|
55
|
-
async function
|
|
56
|
-
r.value || (r.value = !0,
|
|
56
|
+
async function B(e) {
|
|
57
|
+
r.value || (r.value = !0, w(!0)), await c(), p(e), t("blur", e);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
|
|
59
|
+
function x(e) {
|
|
60
|
+
t("focus", e);
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
u.valid && i.value &&
|
|
62
|
+
function E() {
|
|
63
|
+
u.valid && i.value && t("submit");
|
|
63
64
|
}
|
|
64
65
|
return h({
|
|
65
66
|
focus: () => {
|
|
66
|
-
document.getElementById(
|
|
67
|
+
document.getElementById(d)?.focus();
|
|
67
68
|
},
|
|
68
69
|
blur: () => {
|
|
69
|
-
document.getElementById(
|
|
70
|
+
document.getElementById(d)?.blur();
|
|
70
71
|
},
|
|
71
72
|
validate: c
|
|
72
|
-
}), (e,
|
|
73
|
-
|
|
74
|
-
id:
|
|
73
|
+
}), (e, o) => (O(), K("div", j, [
|
|
74
|
+
q(S, {
|
|
75
|
+
id: s(d),
|
|
75
76
|
name: l.name,
|
|
76
77
|
label: l.label,
|
|
77
78
|
"tertiary-label": l.tertiaryLabel,
|
|
78
|
-
"error-message":
|
|
79
|
+
"error-message": s(b),
|
|
79
80
|
"success-message": l.successMessage,
|
|
80
|
-
"is-valid":
|
|
81
|
-
"is-touched":
|
|
81
|
+
"is-valid": s(u).valid,
|
|
82
|
+
"is-touched": s(u).touched,
|
|
82
83
|
"show-errors": l.showErrors,
|
|
83
84
|
"show-valid-check": l.showValidCheck,
|
|
84
85
|
"colorful-validation": l.colorfulValidation,
|
|
85
86
|
disabled: l.disabled,
|
|
86
|
-
"disabled-message": l.disabledMessage
|
|
87
|
+
"disabled-message": l.disabledMessage,
|
|
88
|
+
optional: g.value
|
|
87
89
|
}, {
|
|
88
|
-
default: f(({ inputClasses:
|
|
89
|
-
|
|
90
|
+
default: f(({ inputClasses: C }) => [
|
|
91
|
+
N("input", {
|
|
90
92
|
name: l.name,
|
|
91
|
-
id:
|
|
93
|
+
id: s(d),
|
|
92
94
|
type: "email",
|
|
93
|
-
value:
|
|
95
|
+
value: s(i),
|
|
94
96
|
placeholder: l.placeholder,
|
|
95
97
|
autocomplete: l.autoComplete,
|
|
96
98
|
disabled: l.disabled,
|
|
97
|
-
class:
|
|
98
|
-
|
|
99
|
+
class: T(["sl-block sl-w-full sl-bg-transparent sl-text-gray-900 dark:sl-text-gray-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-gray-500 focus:sl-ring-0 focus:sl-outline-none sm:sl-text-sm sm:sl-leading-6", [
|
|
100
|
+
C,
|
|
99
101
|
"sl-py-1.5 sl-pl-2",
|
|
100
102
|
{ "sl-text-gray-400": l.disabled },
|
|
101
103
|
{ "sl-pr-10": l.showValidCheck }
|
|
102
104
|
]]),
|
|
103
|
-
onInput:
|
|
104
|
-
onFocus:
|
|
105
|
-
onBlur:
|
|
106
|
-
onKeydown:
|
|
105
|
+
onInput: k,
|
|
106
|
+
onFocus: x,
|
|
107
|
+
onBlur: B,
|
|
108
|
+
onKeydown: R($(E, ["prevent"]), ["enter"]),
|
|
107
109
|
enterkeyhint: "go",
|
|
108
110
|
"data-testid": "email-input"
|
|
109
|
-
}, null, 42,
|
|
111
|
+
}, null, 42, A)
|
|
110
112
|
]),
|
|
111
113
|
"input-right": f(() => [
|
|
112
|
-
|
|
114
|
+
L(e.$slots, "input-right")
|
|
113
115
|
]),
|
|
114
116
|
_: 3
|
|
115
|
-
}, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "colorful-validation", "disabled", "disabled-message"])
|
|
117
|
+
}, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "show-errors", "show-valid-check", "colorful-validation", "disabled", "disabled-message", "optional"])
|
|
116
118
|
]));
|
|
117
119
|
}
|
|
118
120
|
});
|
|
119
121
|
export {
|
|
120
|
-
|
|
122
|
+
Y as _
|
|
121
123
|
};
|
|
@@ -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-D9yg_rkV.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,
|