@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,23 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { defineComponent as pe, inject as ye, onMounted as ve, ref as $, reactive as be, computed as K, watch as he, createElementBlock as G, openBlock as x, createVNode as y, unref as p, withCtx as C, createElementVNode as v, createCommentVNode as R, normalizeClass as I, createBlock as E, Fragment as xe, renderList as ke, toDisplayString as N, resolveDynamicComponent as we, createTextVNode as H } from "vue";
|
|
2
|
+
import { i as Ce } from "../validation-Dzczp6MS.js";
|
|
3
|
+
import { Combobox as Ie, ComboboxInput as Se, ComboboxButton as Ae, TransitionRoot as W, ComboboxOptions as ze, ComboboxOption as _e } from "@headlessui/vue";
|
|
4
|
+
import { LockClosedIcon as $e, MagnifyingGlassIcon as Ke, CheckIcon as Ge, ChevronDownIcon as Oe, ChevronUpIcon as Te } from "@heroicons/vue/20/solid";
|
|
5
|
+
import { ClockIcon as Q, ExclamationCircleIcon as Me, CheckCircleIcon as Ue } from "@heroicons/vue/24/outline";
|
|
6
|
+
import { useField as Ee } from "vee-validate";
|
|
6
7
|
import { debounce as X } from "lodash-es";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { g as
|
|
10
|
-
import { Loader as
|
|
11
|
-
import { _ as
|
|
8
|
+
import Pe from "../forms/FormFieldWrapper.js";
|
|
9
|
+
import O from "./TextInput.js";
|
|
10
|
+
import { g as Le } from "../id-DafBB_QF.js";
|
|
11
|
+
import { Loader as Re } from "@googlemaps/js-api-loader";
|
|
12
|
+
import { _ as Ne } from "../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
13
|
let k = null, U = null, L = null, T = null, F = !1;
|
|
13
|
-
const M = /* @__PURE__ */ new Map(),
|
|
14
|
-
function
|
|
14
|
+
const M = /* @__PURE__ */ new Map(), Fe = 1e3, Be = 1e3 * 60 * 60 * 24;
|
|
15
|
+
function De(e) {
|
|
15
16
|
k = e, F = !1, T = null, L = null, U = null;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
+
function Ve() {
|
|
18
19
|
return k !== null && !!k.apiKey;
|
|
19
20
|
}
|
|
20
|
-
async function
|
|
21
|
+
async function B() {
|
|
21
22
|
if (!F) {
|
|
22
23
|
if (T)
|
|
23
24
|
return T;
|
|
@@ -27,7 +28,7 @@ async function D() {
|
|
|
27
28
|
);
|
|
28
29
|
return T = (async () => {
|
|
29
30
|
try {
|
|
30
|
-
await new
|
|
31
|
+
await new Re({
|
|
31
32
|
apiKey: k.apiKey,
|
|
32
33
|
version: k.version || "weekly",
|
|
33
34
|
id: "__stachelockGoogleMapsScriptId",
|
|
@@ -47,11 +48,11 @@ function Y(e) {
|
|
|
47
48
|
}
|
|
48
49
|
function q(e) {
|
|
49
50
|
const a = M.get(e);
|
|
50
|
-
return a ? Date.now() - a.ts >
|
|
51
|
+
return a ? Date.now() - a.ts > Be ? (M.delete(e), null) : a.result : null;
|
|
51
52
|
}
|
|
52
53
|
function ee(e, a) {
|
|
53
54
|
try {
|
|
54
|
-
if (M.size >=
|
|
55
|
+
if (M.size >= Fe) {
|
|
55
56
|
const c = M.keys().next().value;
|
|
56
57
|
c && M.delete(c);
|
|
57
58
|
}
|
|
@@ -61,26 +62,26 @@ function ee(e, a) {
|
|
|
61
62
|
}
|
|
62
63
|
function te(e, a = 15, c = "200x200") {
|
|
63
64
|
if (!k?.apiKey) return "";
|
|
64
|
-
const
|
|
65
|
+
const r = k.staticMapsApiKey || k.apiKey, i = "https://maps.googleapis.com/maps/api/staticmap", f = new URLSearchParams({
|
|
65
66
|
center: `${e.lat},${e.lng}`,
|
|
66
67
|
zoom: a.toString(),
|
|
67
68
|
size: c,
|
|
68
|
-
key:
|
|
69
|
+
key: r,
|
|
69
70
|
markers: `color:red|${e.lat},${e.lng}`
|
|
70
71
|
});
|
|
71
72
|
return `${i}?${f.toString()}`;
|
|
72
73
|
}
|
|
73
|
-
async function
|
|
74
|
+
async function je(e) {
|
|
74
75
|
if (!e?.trim())
|
|
75
76
|
return {
|
|
76
77
|
status: "INVALID_INPUT",
|
|
77
78
|
message: "No placeId provided for geocoding."
|
|
78
79
|
};
|
|
79
|
-
await
|
|
80
|
+
await B();
|
|
80
81
|
const a = Y({ placeId: e }), c = q(a);
|
|
81
|
-
return c || new Promise((
|
|
82
|
+
return c || new Promise((r) => {
|
|
82
83
|
if (!U) {
|
|
83
|
-
|
|
84
|
+
r({
|
|
84
85
|
status: "ERROR",
|
|
85
86
|
message: "Geocoder service not initialized."
|
|
86
87
|
});
|
|
@@ -88,48 +89,48 @@ async function Be(e) {
|
|
|
88
89
|
}
|
|
89
90
|
U.geocode({ placeId: e }, (i, f) => {
|
|
90
91
|
if (f === google.maps.GeocoderStatus.OK && i && i.length > 0) {
|
|
91
|
-
const d = i[0],
|
|
92
|
+
const d = i[0], n = d.geometry ? {
|
|
92
93
|
lat: d.geometry.location.lat(),
|
|
93
94
|
lng: d.geometry.location.lng()
|
|
94
95
|
} : void 0, h = {
|
|
95
96
|
status: "OK",
|
|
96
97
|
message: "Found address",
|
|
97
98
|
address_components: d.address_components || [],
|
|
98
|
-
location:
|
|
99
|
+
location: n,
|
|
99
100
|
formatted_address: d.formatted_address || "",
|
|
100
|
-
thumbnailUrl:
|
|
101
|
+
thumbnailUrl: n ? te(n) : void 0
|
|
101
102
|
};
|
|
102
|
-
ee(a, h),
|
|
103
|
+
ee(a, h), r(h);
|
|
103
104
|
} else
|
|
104
|
-
|
|
105
|
+
r({
|
|
105
106
|
status: f.toString(),
|
|
106
107
|
message: `Unable to geocode place: ${f}`
|
|
107
108
|
});
|
|
108
109
|
});
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
function
|
|
112
|
+
function Ze(e) {
|
|
112
113
|
const a = J(e);
|
|
113
114
|
if (a.length < 10) return !1;
|
|
114
|
-
const c = /\d/.test(a),
|
|
115
|
-
return (
|
|
115
|
+
const c = /\d/.test(a), r = a.includes(","), i = /\b([A-Z]{2})\b/i.test(e), f = /\b\d{5}(?:-\d{4})?\b/.test(a);
|
|
116
|
+
return (r || i || f) && c;
|
|
116
117
|
}
|
|
117
|
-
async function
|
|
118
|
+
async function He(e) {
|
|
118
119
|
if (!e?.trim())
|
|
119
120
|
return {
|
|
120
121
|
status: "INVALID_INPUT",
|
|
121
122
|
message: "No address provided for geocoding."
|
|
122
123
|
};
|
|
123
|
-
if (!
|
|
124
|
+
if (!Ze(e))
|
|
124
125
|
return {
|
|
125
126
|
status: "INVALID_INPUT",
|
|
126
127
|
message: "Insufficient address information for geocoding."
|
|
127
128
|
};
|
|
128
|
-
await
|
|
129
|
+
await B();
|
|
129
130
|
const a = Y(e), c = q(a);
|
|
130
|
-
return c || new Promise((
|
|
131
|
+
return c || new Promise((r) => {
|
|
131
132
|
if (!U) {
|
|
132
|
-
|
|
133
|
+
r({
|
|
133
134
|
status: "ERROR",
|
|
134
135
|
message: "Geocoder service not initialized."
|
|
135
136
|
});
|
|
@@ -137,54 +138,54 @@ async function je(e) {
|
|
|
137
138
|
}
|
|
138
139
|
U.geocode({ address: e }, (i, f) => {
|
|
139
140
|
if (f === google.maps.GeocoderStatus.OK && i && i.length > 0) {
|
|
140
|
-
const d = i[0],
|
|
141
|
+
const d = i[0], n = d.geometry ? {
|
|
141
142
|
lat: d.geometry.location.lat(),
|
|
142
143
|
lng: d.geometry.location.lng()
|
|
143
144
|
} : void 0, h = {
|
|
144
145
|
status: "OK",
|
|
145
146
|
message: "Found address",
|
|
146
147
|
address_components: d.address_components || [],
|
|
147
|
-
location:
|
|
148
|
+
location: n,
|
|
148
149
|
formatted_address: d.formatted_address || "",
|
|
149
|
-
thumbnailUrl:
|
|
150
|
+
thumbnailUrl: n ? te(n) : void 0
|
|
150
151
|
};
|
|
151
|
-
ee(a, h),
|
|
152
|
+
ee(a, h), r(h);
|
|
152
153
|
} else
|
|
153
|
-
|
|
154
|
+
r({
|
|
154
155
|
status: f.toString(),
|
|
155
156
|
message: `Unable to geocode address: ${f}`
|
|
156
157
|
});
|
|
157
158
|
});
|
|
158
159
|
});
|
|
159
160
|
}
|
|
160
|
-
async function
|
|
161
|
+
async function We(e, a) {
|
|
161
162
|
if (!e?.trim())
|
|
162
163
|
return [];
|
|
163
|
-
if (await
|
|
164
|
+
if (await B(), !L)
|
|
164
165
|
return console.warn("[Geocoding] Places library not initialized"), [];
|
|
165
166
|
try {
|
|
166
|
-
const { AutocompleteSuggestion: c } = L,
|
|
167
|
+
const { AutocompleteSuggestion: c } = L, r = {
|
|
167
168
|
input: e,
|
|
168
169
|
...a?.includedPrimaryTypes && { includedPrimaryTypes: a.includedPrimaryTypes },
|
|
169
170
|
...a?.includedRegionCodes && { includedRegionCodes: a.includedRegionCodes }
|
|
170
|
-
}, { suggestions: i } = await c.fetchAutocompleteSuggestions(
|
|
171
|
+
}, { suggestions: i } = await c.fetchAutocompleteSuggestions(r);
|
|
171
172
|
return i.filter(
|
|
172
173
|
(d) => d.placePrediction !== null
|
|
173
174
|
).map((d) => {
|
|
174
|
-
const
|
|
175
|
+
const n = d.placePrediction;
|
|
175
176
|
return {
|
|
176
|
-
placeId:
|
|
177
|
-
description:
|
|
178
|
-
mainText:
|
|
179
|
-
secondaryText:
|
|
180
|
-
types:
|
|
177
|
+
placeId: n.placeId,
|
|
178
|
+
description: n.text.toString(),
|
|
179
|
+
mainText: n.mainText?.toString() || n.text.toString(),
|
|
180
|
+
secondaryText: n.secondaryText?.toString() || "",
|
|
181
|
+
types: n.types || []
|
|
181
182
|
};
|
|
182
183
|
});
|
|
183
184
|
} catch (c) {
|
|
184
185
|
return console.error("[Geocoding] Error fetching autocomplete suggestions:", c), [];
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
|
-
function
|
|
188
|
+
function Qe(e) {
|
|
188
189
|
const a = {
|
|
189
190
|
street: "",
|
|
190
191
|
city: "",
|
|
@@ -194,14 +195,14 @@ function He(e) {
|
|
|
194
195
|
};
|
|
195
196
|
if (!e?.address_components)
|
|
196
197
|
return a;
|
|
197
|
-
let c = "",
|
|
198
|
+
let c = "", r = "", i = "", f = "", d = "", n = "", h = "", S = "", A = "", P = "", b = "", z = "";
|
|
198
199
|
for (const g of e.address_components) {
|
|
199
200
|
const u = g.types;
|
|
200
|
-
u.includes("street_number") ? c = g.long_name : u.includes("route") ?
|
|
201
|
+
u.includes("street_number") ? c = g.long_name : u.includes("route") ? r = g.long_name : u.includes("subpremise") ? i = g.long_name : u.includes("premise") ? f = g.long_name : u.includes("locality") ? d = g.long_name : u.includes("sublocality") || u.includes("sublocality_level_1") ? u.includes("sublocality_level_1") ? h = g.long_name : n = g.long_name : u.includes("administrative_area_level_2") ? S = g.long_name : u.includes("administrative_area_level_3") ? A = g.long_name : u.includes("postal_town") ? P = g.long_name : u.includes("administrative_area_level_1") ? a.state = g.short_name : u.includes("postal_code") ? b = g.long_name : u.includes("postal_code_prefix") ? z = g.long_name : u.includes("country") && (a.country = g.short_name);
|
|
201
202
|
}
|
|
202
|
-
return c &&
|
|
203
|
+
return c && r ? a.street = `${c} ${r}` : r ? a.street = r : f && (a.street = f), i && a.street && (a.street = `${a.street}, ${i}`), a.city = d || P || h || n || A || S || "", a.zipcode = b || z || "", a;
|
|
203
204
|
}
|
|
204
|
-
function
|
|
205
|
+
function Xe(e) {
|
|
205
206
|
return [
|
|
206
207
|
e.street,
|
|
207
208
|
e.city,
|
|
@@ -209,10 +210,10 @@ function We(e) {
|
|
|
209
210
|
e.country
|
|
210
211
|
].filter(Boolean).join(", ");
|
|
211
212
|
}
|
|
212
|
-
const
|
|
213
|
+
const Je = { class: "sl-address-input" }, Ye = { class: "sl-space-y-3" }, qe = { class: "sl-relative" }, et = { class: "sl-flex sl-flex-col" }, tt = {
|
|
213
214
|
key: 0,
|
|
214
215
|
class: "sl-flex sl-items-center sl-justify-between"
|
|
215
|
-
},
|
|
216
|
+
}, st = { class: "sl-flex sl-items-center sl-gap-2" }, lt = { class: "sl-grid sl-grid-cols-1 sm:sl-grid-cols-2 sl-gap-3 sl-p-3 sl-bg-gray-50 dark:sl-bg-slate-800/50 sl-rounded-lg sl-border sl-border-gray-200 dark:sl-border-slate-700" }, at = { class: "sm:sl-col-span-2" }, ot = /* @__PURE__ */ pe({
|
|
216
217
|
__name: "AddressInput",
|
|
217
218
|
props: {
|
|
218
219
|
name: {},
|
|
@@ -225,33 +226,34 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
225
226
|
allowManualEntry: { type: Boolean, default: !0 },
|
|
226
227
|
successMessage: { default: "" },
|
|
227
228
|
tertiaryLabel: { default: "" },
|
|
228
|
-
validateOnMount: { type: Boolean, default: !1 }
|
|
229
|
+
validateOnMount: { type: Boolean, default: !1 },
|
|
230
|
+
optional: { type: Boolean, default: void 0 }
|
|
229
231
|
},
|
|
230
232
|
emits: ["update:modelValue", "blur", "focus"],
|
|
231
233
|
setup(e, { expose: a, emit: c }) {
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
d?.apiKey && !
|
|
234
|
+
const r = e, i = c, f = Le(r.name || "address-input"), d = ye("googleMaps", void 0);
|
|
235
|
+
ve(() => {
|
|
236
|
+
d?.apiKey && !Ve() && De({
|
|
235
237
|
apiKey: d.apiKey,
|
|
236
238
|
version: d.version,
|
|
237
239
|
libraries: d.libraries
|
|
238
240
|
});
|
|
239
241
|
});
|
|
240
|
-
const { value:
|
|
241
|
-
() =>
|
|
242
|
-
|
|
242
|
+
const { value: n, errorMessage: h, meta: S, handleChange: A, setTouched: P } = Ee(
|
|
243
|
+
() => r.name,
|
|
244
|
+
r.rules,
|
|
243
245
|
{
|
|
244
|
-
validateOnMount:
|
|
245
|
-
initialValue:
|
|
246
|
+
validateOnMount: r.validateOnMount,
|
|
247
|
+
initialValue: r.modelValue
|
|
246
248
|
}
|
|
247
|
-
), b = $([]), z = $(null), g = $(""), u = $(!1),
|
|
249
|
+
), b = $([]), z = $(null), g = $(""), u = $(!1), D = $(!1), m = $("unverified"), s = be({
|
|
248
250
|
street: "",
|
|
249
251
|
suite: "",
|
|
250
252
|
city: "",
|
|
251
253
|
state: "",
|
|
252
254
|
zipcode: "",
|
|
253
255
|
country: ""
|
|
254
|
-
}), V =
|
|
256
|
+
}), V = K(() => !!(n.value?.formattedAddress || n.value?.street)), se = K(() => r.optional !== void 0 ? r.optional : Ce(r.rules)), le = K(() => r.showSuggestionCount && b.value.length > 0 ? `${b.value.length} suggestions` : r.tertiaryLabel), j = K(() => {
|
|
255
257
|
switch (m.value) {
|
|
256
258
|
case "verified":
|
|
257
259
|
return "sl-text-green-600 dark:sl-text-green-400";
|
|
@@ -262,7 +264,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
262
264
|
default:
|
|
263
265
|
return "sl-text-gray-500 dark:sl-text-slate-400";
|
|
264
266
|
}
|
|
265
|
-
}),
|
|
267
|
+
}), ae = K(() => {
|
|
266
268
|
switch (m.value) {
|
|
267
269
|
case "verified":
|
|
268
270
|
return "Verified";
|
|
@@ -273,47 +275,47 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
273
275
|
default:
|
|
274
276
|
return "Unverified";
|
|
275
277
|
}
|
|
276
|
-
}),
|
|
278
|
+
}), oe = K(() => {
|
|
277
279
|
switch (m.value) {
|
|
278
280
|
case "verified":
|
|
279
|
-
return
|
|
281
|
+
return Ue;
|
|
280
282
|
case "error":
|
|
281
|
-
return
|
|
283
|
+
return Me;
|
|
282
284
|
case "pending":
|
|
283
285
|
return Q;
|
|
284
286
|
default:
|
|
285
287
|
return Q;
|
|
286
288
|
}
|
|
287
|
-
}),
|
|
289
|
+
}), re = X(async (l) => {
|
|
288
290
|
if (!l || l.length < 3) {
|
|
289
291
|
b.value = [];
|
|
290
292
|
return;
|
|
291
293
|
}
|
|
292
|
-
|
|
294
|
+
D.value = !0;
|
|
293
295
|
try {
|
|
294
|
-
const t = await
|
|
296
|
+
const t = await We(l);
|
|
295
297
|
b.value = t;
|
|
296
298
|
} catch (t) {
|
|
297
299
|
console.error("[AddressInput] Error fetching suggestions:", t), b.value = [];
|
|
298
300
|
} finally {
|
|
299
|
-
|
|
301
|
+
D.value = !1;
|
|
300
302
|
}
|
|
301
303
|
}, 300);
|
|
302
|
-
function
|
|
304
|
+
function ne(l) {
|
|
303
305
|
const t = l.target;
|
|
304
|
-
g.value = t.value,
|
|
306
|
+
g.value = t.value, re(t.value);
|
|
305
307
|
}
|
|
306
|
-
function
|
|
307
|
-
return l ? l.description :
|
|
308
|
+
function ie(l) {
|
|
309
|
+
return l ? l.description : n.value?.formattedAddress ? n.value.formattedAddress : "";
|
|
308
310
|
}
|
|
309
|
-
async function
|
|
311
|
+
async function de(l) {
|
|
310
312
|
if (l) {
|
|
311
313
|
m.value = "pending", b.value = [];
|
|
312
314
|
try {
|
|
313
|
-
const t = await
|
|
315
|
+
const t = await je(l.placeId);
|
|
314
316
|
if (t.status === "OK") {
|
|
315
317
|
m.value = "verified";
|
|
316
|
-
const o =
|
|
318
|
+
const o = Qe(t);
|
|
317
319
|
s.street = o.street, s.city = o.city, s.state = o.state, s.zipcode = o.zipcode, s.country = o.country;
|
|
318
320
|
const w = {
|
|
319
321
|
formattedAddress: t.formatted_address,
|
|
@@ -326,7 +328,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
326
328
|
geocode: t,
|
|
327
329
|
placeId: l.placeId
|
|
328
330
|
};
|
|
329
|
-
|
|
331
|
+
n.value = w, A(w), i("update:modelValue", w), u.value = !0;
|
|
330
332
|
} else
|
|
331
333
|
m.value = "error", console.warn("[AddressInput] Geocoding failed:", t.message);
|
|
332
334
|
} catch (t) {
|
|
@@ -334,15 +336,15 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
334
336
|
}
|
|
335
337
|
}
|
|
336
338
|
}
|
|
337
|
-
const
|
|
338
|
-
const l =
|
|
339
|
+
const ce = ["street", "city", "state", "zipcode", "country"], ue = X(async () => {
|
|
340
|
+
const l = Xe(s);
|
|
339
341
|
if (!l || l.length < 10) {
|
|
340
342
|
m.value = "unverified";
|
|
341
343
|
return;
|
|
342
344
|
}
|
|
343
345
|
m.value = "pending";
|
|
344
346
|
try {
|
|
345
|
-
const t = await
|
|
347
|
+
const t = await He(l);
|
|
346
348
|
if (t.status === "OK") {
|
|
347
349
|
m.value = "verified";
|
|
348
350
|
const o = {
|
|
@@ -357,7 +359,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
357
359
|
placeId: void 0
|
|
358
360
|
// Clear placeId since we re-geocoded
|
|
359
361
|
};
|
|
360
|
-
|
|
362
|
+
n.value = o, A(o), i("update:modelValue", o);
|
|
361
363
|
} else
|
|
362
364
|
m.value = "unverified";
|
|
363
365
|
} catch (t) {
|
|
@@ -366,7 +368,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
366
368
|
}, 600);
|
|
367
369
|
function _(l) {
|
|
368
370
|
const t = {
|
|
369
|
-
...
|
|
371
|
+
...n.value,
|
|
370
372
|
street: s.street,
|
|
371
373
|
suite: s.suite,
|
|
372
374
|
city: s.city,
|
|
@@ -374,74 +376,75 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
374
376
|
zipcode: s.zipcode,
|
|
375
377
|
country: s.country
|
|
376
378
|
};
|
|
377
|
-
|
|
379
|
+
ce.includes(l) && (m.value = "unverified", t.geocode = void 0, ue()), n.value = t, A(t), i("update:modelValue", t);
|
|
378
380
|
}
|
|
379
|
-
function
|
|
381
|
+
function fe(l) {
|
|
380
382
|
i("focus", l);
|
|
381
383
|
}
|
|
382
|
-
function
|
|
384
|
+
function ge(l) {
|
|
383
385
|
P(!0), i("blur", l);
|
|
384
386
|
}
|
|
385
|
-
|
|
386
|
-
() =>
|
|
387
|
+
he(
|
|
388
|
+
() => r.modelValue,
|
|
387
389
|
(l) => {
|
|
388
|
-
l && (l.geocode?.status === "OK" ? m.value = "verified" : l.geocode?.status === "ERROR" && (m.value = "error"), l !==
|
|
390
|
+
l && (l.geocode?.status === "OK" ? m.value = "verified" : l.geocode?.status === "ERROR" && (m.value = "error"), l !== n.value && (n.value = l, l.street !== void 0 && (s.street = l.street), l.suite !== void 0 && (s.suite = l.suite), l.city !== void 0 && (s.city = l.city), l.state !== void 0 && (s.state = l.state), l.zipcode !== void 0 && (s.zipcode = l.zipcode), l.country !== void 0 && (s.country = l.country)));
|
|
389
391
|
},
|
|
390
392
|
{ immediate: !0, deep: !0 }
|
|
391
393
|
);
|
|
392
|
-
function
|
|
393
|
-
|
|
394
|
+
function me() {
|
|
395
|
+
n.value = void 0, z.value = null, g.value = "", b.value = [], u.value = !1, m.value = "unverified", s.street = "", s.suite = "", s.city = "", s.state = "", s.zipcode = "", s.country = "";
|
|
394
396
|
}
|
|
395
397
|
return a({
|
|
396
|
-
resetInput:
|
|
398
|
+
resetInput: me,
|
|
397
399
|
geocodeStatus: m,
|
|
398
400
|
meta: S,
|
|
399
401
|
errorMessage: h
|
|
400
|
-
}), (l, t) => (x(),
|
|
401
|
-
y(
|
|
402
|
+
}), (l, t) => (x(), G("div", Je, [
|
|
403
|
+
y(Pe, {
|
|
402
404
|
id: p(f),
|
|
403
405
|
name: e.name,
|
|
404
406
|
label: e.label,
|
|
405
|
-
"tertiary-label":
|
|
407
|
+
"tertiary-label": le.value,
|
|
406
408
|
"error-message": p(h),
|
|
407
409
|
"success-message": e.successMessage,
|
|
408
410
|
"is-valid": p(S).valid,
|
|
409
411
|
"is-touched": p(S).touched,
|
|
410
|
-
disabled: e.disabled
|
|
412
|
+
disabled: e.disabled,
|
|
413
|
+
optional: se.value
|
|
411
414
|
}, {
|
|
412
415
|
default: C(() => [
|
|
413
|
-
v("div",
|
|
414
|
-
y(p(
|
|
416
|
+
v("div", Ye, [
|
|
417
|
+
y(p(Ie), {
|
|
415
418
|
modelValue: z.value,
|
|
416
419
|
"onUpdate:modelValue": [
|
|
417
420
|
t[0] || (t[0] = (o) => z.value = o),
|
|
418
|
-
|
|
421
|
+
de
|
|
419
422
|
],
|
|
420
423
|
disabled: e.disabled,
|
|
421
424
|
nullable: ""
|
|
422
425
|
}, {
|
|
423
426
|
default: C(() => [
|
|
424
|
-
v("div",
|
|
425
|
-
y(p(
|
|
427
|
+
v("div", qe, [
|
|
428
|
+
y(p(Se), {
|
|
426
429
|
id: p(f),
|
|
427
|
-
"display-value":
|
|
430
|
+
"display-value": ie,
|
|
428
431
|
placeholder: e.placeholder || "Search for an address...",
|
|
429
432
|
disabled: e.disabled,
|
|
430
433
|
class: I([
|
|
431
|
-
"sl-block sl-w-full sl-rounded-
|
|
432
|
-
e.disabled ? "sl-
|
|
434
|
+
"sl-block sl-w-full sl-rounded-md sl-shadow-sm sl-ring-1 sl-ring-inset sl-py-1.5 sl-pl-3 sl-pr-10 sl-text-sm focus:sl-outline-none focus:sl-ring-2 focus:sl-ring-inset focus:sl-ring-stachelock-600",
|
|
435
|
+
e.disabled ? "sl-ring-gray-200 dark:sl-ring-slate-700 sl-bg-gray-50 dark:sl-bg-slate-800 sl-text-gray-500 dark:sl-text-slate-400 sl-cursor-not-allowed" : "sl-ring-gray-300 dark:sl-ring-slate-600 sl-bg-white dark:sl-bg-slate-800 sl-text-gray-900 dark:sl-text-slate-100 placeholder:sl-text-gray-400 dark:placeholder:sl-text-slate-500"
|
|
433
436
|
]),
|
|
434
|
-
onChange:
|
|
435
|
-
onFocus:
|
|
436
|
-
onBlur:
|
|
437
|
+
onChange: ne,
|
|
438
|
+
onFocus: fe,
|
|
439
|
+
onBlur: ge
|
|
437
440
|
}, null, 8, ["id", "placeholder", "disabled", "class"]),
|
|
438
|
-
y(p(
|
|
441
|
+
y(p(Ae), { class: "sl-absolute sl-inset-y-0 sl-right-0 sl-flex sl-items-center sl-pr-2" }, {
|
|
439
442
|
default: C(() => [
|
|
440
|
-
e.disabled ? (x(),
|
|
443
|
+
e.disabled ? (x(), E(p($e), {
|
|
441
444
|
key: 0,
|
|
442
445
|
class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-500",
|
|
443
446
|
"aria-hidden": "true"
|
|
444
|
-
})) : (x(),
|
|
447
|
+
})) : (x(), E(p(Ke), {
|
|
445
448
|
key: 1,
|
|
446
449
|
class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-400",
|
|
447
450
|
"aria-hidden": "true"
|
|
@@ -455,12 +458,12 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
455
458
|
"leave-to": "sl-opacity-0"
|
|
456
459
|
}, {
|
|
457
460
|
default: C(() => [
|
|
458
|
-
b.value.length > 0 ? (x(),
|
|
461
|
+
b.value.length > 0 ? (x(), E(p(ze), {
|
|
459
462
|
key: 0,
|
|
460
463
|
class: "sl-absolute sl-z-50 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"
|
|
461
464
|
}, {
|
|
462
465
|
default: C(() => [
|
|
463
|
-
(x(!0),
|
|
466
|
+
(x(!0), G(xe, null, ke(b.value, (o) => (x(), E(p(_e), {
|
|
464
467
|
key: o.placeId,
|
|
465
468
|
value: o,
|
|
466
469
|
as: "template"
|
|
@@ -472,7 +475,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
472
475
|
w ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
|
|
473
476
|
])
|
|
474
477
|
}, [
|
|
475
|
-
v("div",
|
|
478
|
+
v("div", et, [
|
|
476
479
|
v("span", {
|
|
477
480
|
class: I(["sl-block sl-truncate", Z ? "sl-font-medium" : "sl-font-normal"])
|
|
478
481
|
}, N(o.mainText), 3),
|
|
@@ -480,14 +483,14 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
480
483
|
class: I(["sl-text-xs", w ? "sl-text-stachelock-100" : "sl-text-gray-500 dark:sl-text-slate-400"])
|
|
481
484
|
}, N(o.secondaryText), 3)
|
|
482
485
|
]),
|
|
483
|
-
Z ? (x(),
|
|
486
|
+
Z ? (x(), G("span", {
|
|
484
487
|
key: 0,
|
|
485
488
|
class: I([
|
|
486
489
|
"sl-absolute sl-inset-y-0 sl-left-0 sl-flex sl-items-center sl-pl-3",
|
|
487
490
|
w ? "sl-text-white" : "sl-text-stachelock-600 dark:sl-text-stachelock-400"
|
|
488
491
|
])
|
|
489
492
|
}, [
|
|
490
|
-
y(p(
|
|
493
|
+
y(p(Ge), {
|
|
491
494
|
class: "sl-h-5 sl-w-5",
|
|
492
495
|
"aria-hidden": "true"
|
|
493
496
|
})
|
|
@@ -506,31 +509,31 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
506
509
|
]),
|
|
507
510
|
_: 1
|
|
508
511
|
}, 8, ["modelValue", "disabled"]),
|
|
509
|
-
V.value && !e.disabled ? (x(),
|
|
510
|
-
v("div",
|
|
512
|
+
V.value && !e.disabled ? (x(), G("div", tt, [
|
|
513
|
+
v("div", st, [
|
|
511
514
|
v("span", {
|
|
512
515
|
class: I(["sl-text-xs sl-uppercase sl-font-medium", j.value])
|
|
513
|
-
}, N(
|
|
514
|
-
(x(),
|
|
516
|
+
}, N(ae.value), 3),
|
|
517
|
+
(x(), E(we(oe.value), {
|
|
515
518
|
class: I(["sl-h-4 sl-w-4", j.value])
|
|
516
519
|
}, null, 8, ["class"]))
|
|
517
520
|
]),
|
|
518
|
-
u.value ? (x(),
|
|
521
|
+
u.value ? (x(), G("button", {
|
|
519
522
|
key: 1,
|
|
520
523
|
type: "button",
|
|
521
524
|
onClick: t[2] || (t[2] = (o) => u.value = !1),
|
|
522
525
|
class: "sl-text-xs sl-text-gray-500 dark:sl-text-slate-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
|
|
523
526
|
}, [
|
|
524
527
|
t[10] || (t[10] = H(" Collapse ", -1)),
|
|
525
|
-
y(p(
|
|
526
|
-
])) : (x(),
|
|
528
|
+
y(p(Te), { class: "sl-h-3 sl-w-3" })
|
|
529
|
+
])) : (x(), G("button", {
|
|
527
530
|
key: 0,
|
|
528
531
|
type: "button",
|
|
529
532
|
onClick: t[1] || (t[1] = (o) => u.value = !0),
|
|
530
533
|
class: "sl-text-xs sl-text-stachelock-600 dark:sl-text-stachelock-400 hover:sl-underline sl-flex sl-items-center sl-gap-1"
|
|
531
534
|
}, [
|
|
532
535
|
t[9] || (t[9] = H(" Edit address ", -1)),
|
|
533
|
-
y(p(
|
|
536
|
+
y(p(Oe), { class: "sl-h-3 sl-w-3" })
|
|
534
537
|
]))
|
|
535
538
|
])) : R("", !0),
|
|
536
539
|
y(p(W), {
|
|
@@ -543,9 +546,9 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
543
546
|
"leave-to": "sl-opacity-0 sl-transform sl--translate-y-2"
|
|
544
547
|
}, {
|
|
545
548
|
default: C(() => [
|
|
546
|
-
v("div",
|
|
547
|
-
v("div",
|
|
548
|
-
y(
|
|
549
|
+
v("div", lt, [
|
|
550
|
+
v("div", at, [
|
|
551
|
+
y(O, {
|
|
549
552
|
name: `${e.name}_street`,
|
|
550
553
|
label: "Street Address",
|
|
551
554
|
value: s.street,
|
|
@@ -558,7 +561,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
558
561
|
}, null, 8, ["name", "value", "disabled"])
|
|
559
562
|
]),
|
|
560
563
|
v("div", null, [
|
|
561
|
-
y(
|
|
564
|
+
y(O, {
|
|
562
565
|
name: `${e.name}_suite`,
|
|
563
566
|
label: "Suite / Apt",
|
|
564
567
|
value: s.suite,
|
|
@@ -572,7 +575,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
572
575
|
}, null, 8, ["name", "value", "disabled"])
|
|
573
576
|
]),
|
|
574
577
|
v("div", null, [
|
|
575
|
-
y(
|
|
578
|
+
y(O, {
|
|
576
579
|
name: `${e.name}_city`,
|
|
577
580
|
label: "City",
|
|
578
581
|
value: s.city,
|
|
@@ -585,7 +588,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
585
588
|
}, null, 8, ["name", "value", "disabled"])
|
|
586
589
|
]),
|
|
587
590
|
v("div", null, [
|
|
588
|
-
y(
|
|
591
|
+
y(O, {
|
|
589
592
|
name: `${e.name}_state`,
|
|
590
593
|
label: "State",
|
|
591
594
|
value: s.state,
|
|
@@ -598,7 +601,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
598
601
|
}, null, 8, ["name", "value", "disabled"])
|
|
599
602
|
]),
|
|
600
603
|
v("div", null, [
|
|
601
|
-
y(
|
|
604
|
+
y(O, {
|
|
602
605
|
name: `${e.name}_zipcode`,
|
|
603
606
|
label: "ZIP Code",
|
|
604
607
|
value: s.zipcode,
|
|
@@ -611,7 +614,7 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
611
614
|
}, null, 8, ["name", "value", "disabled"])
|
|
612
615
|
]),
|
|
613
616
|
v("div", null, [
|
|
614
|
-
y(
|
|
617
|
+
y(O, {
|
|
615
618
|
name: `${e.name}_country`,
|
|
616
619
|
label: "Country",
|
|
617
620
|
value: s.country,
|
|
@@ -630,10 +633,10 @@ const Qe = { class: "sl-address-input" }, Xe = { class: "sl-space-y-3" }, Je = {
|
|
|
630
633
|
])
|
|
631
634
|
]),
|
|
632
635
|
_: 1
|
|
633
|
-
}, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled"])
|
|
636
|
+
}, 8, ["id", "name", "label", "tertiary-label", "error-message", "success-message", "is-valid", "is-touched", "disabled", "optional"])
|
|
634
637
|
]));
|
|
635
638
|
}
|
|
636
|
-
}),
|
|
639
|
+
}), bt = /* @__PURE__ */ Ne(ot, [["__scopeId", "data-v-b3950b26"]]);
|
|
637
640
|
export {
|
|
638
|
-
|
|
641
|
+
bt as default
|
|
639
642
|
};
|