@stachelock/ui 0.6.8 → 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-CMBsY5Y0.js → CalendarHeader.vue_vue_type_script_setup_true_lang-Cbgbb2e5.js} +2 -2
- package/dist/{ComboboxInput.vue_vue_type_script_setup_true_lang-DacJtKYo.js → ComboboxInput.vue_vue_type_script_setup_true_lang-kHTj4Ju2.js} +88 -89
- package/dist/{DayCalendar.vue_vue_type_script_setup_true_lang-D-4jcUvI.js → DayCalendar.vue_vue_type_script_setup_true_lang-BgV8wr8v.js} +1 -1
- package/dist/{DynamicForm.vue_vue_type_script_setup_true_lang-Bq8Gvhsc.js → DynamicForm.vue_vue_type_script_setup_true_lang-BR8Pq7Kw.js} +1 -1
- package/dist/{DynamicFormField.vue_vue_type_script_setup_true_lang-CdNtWWlT.js → DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js} +4 -4
- package/dist/{EmailInput.vue_vue_type_script_setup_true_lang-BicPMIop.js → EmailInput.vue_vue_type_script_setup_true_lang-CWEfbsJ_.js} +51 -49
- package/dist/{InlineTabs.vue_vue_type_script_setup_true_lang-B6A0zsE6.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-DFfKsmvj.js → SelectInput.vue_vue_type_script_setup_true_lang-D9yg_rkV.js} +132 -135
- package/dist/SelectTextInput.vue_vue_type_script_setup_true_lang-CtFVOrhm.js +304 -0
- package/dist/{TabGroup.vue_vue_type_script_setup_true_lang-BzqtAqbr.js → TabGroup.vue_vue_type_script_setup_true_lang-123nIzRC.js} +1 -1
- package/dist/{TabGroupUnderline.vue_vue_type_script_setup_true_lang-C6OYRDCq.js → TabGroupUnderline.vue_vue_type_script_setup_true_lang-DbIwjaLJ.js} +1 -1
- package/dist/{TabsInPills.vue_vue_type_script_setup_true_lang-C7T3PUnB.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/DynamicForm.js +1 -1
- package/dist/forms/DynamicFormField.d.ts +3 -1
- package/dist/forms/DynamicFormField.js +1 -1
- package/dist/forms/FormFieldWrapper.d.ts +3 -1
- package/dist/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 +22 -21
- 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 +111 -3
- package/dist/layouts/DashboardLayout.d.ts +3 -1
- package/dist/layouts/DefaultLayout.d.ts +3 -1
- package/dist/layouts/HeaderLayout.d.ts +3 -1
- package/dist/layouts/NavigationGroup.d.ts +3 -1
- package/dist/layouts/NavigationItem.d.ts +3 -1
- package/dist/layouts/ProfileHeaderAvatar.d.ts +3 -1
- package/dist/layouts/ProjectLogo.d.ts +3 -1
- package/dist/layouts/SidebarLayout.d.ts +3 -1
- package/dist/loading/ContentSkeleton.d.ts +3 -1
- package/dist/loading/SmartLoadingIndicator.d.ts +3 -1
- package/dist/loading/index.d.ts +0 -1
- package/dist/maps/GoogleMap.d.ts +3 -1
- package/dist/maps/UiInfoWindow.d.ts +3 -1
- package/dist/maps/UiMap.d.ts +3 -1
- package/dist/maps/UiMapAll.d.ts +3 -1
- package/dist/maps/UiMapMarker.d.ts +3 -1
- package/dist/maps/index.d.ts +0 -1
- package/dist/modals/AlertModal.d.ts +3 -1
- package/dist/modals/BaseModal.d.ts +3 -1
- package/dist/modals/ImageCropperModal.d.ts +3 -1
- package/dist/notifications/NotificationContainer.d.ts +3 -1
- package/dist/notifications/NotificationToast.d.ts +3 -1
- package/dist/notifications/index.d.ts +0 -1
- package/dist/src/components/CloudinaryImage.d.ts +16 -14
- package/dist/src/components/LottieAnimation.d.ts +37 -6
- package/dist/src/components/ThemeDebugModal.d.ts +16 -6
- package/dist/src/components/UiAvatar.d.ts +35 -2
- package/dist/src/components/UiBadge.d.ts +33 -6
- package/dist/src/components/UiBanner.d.ts +108 -35
- package/dist/src/components/UiBreadcrumb.d.ts +11 -10
- package/dist/src/components/UiButton.d.ts +66 -13
- package/dist/src/components/UiButtonGroup.d.ts +37 -7
- package/dist/src/components/UiCheckbox.d.ts +33 -8
- package/dist/src/components/UiLoading.d.ts +28 -2
- package/dist/src/components/UiLoadingDots.d.ts +2 -2
- package/dist/src/components/UiMenu.d.ts +33 -5
- package/dist/src/components/UiModal.d.ts +3 -4
- package/dist/src/components/UiNavLink.d.ts +40 -6
- package/dist/src/components/UiProgressBar.d.ts +32 -3
- package/dist/src/components/UiRadialProgressBar.d.ts +34 -3
- package/dist/src/components/UiTable.d.ts +29 -6
- package/dist/src/components/UiTransition.d.ts +26 -3
- package/dist/src/components/avatars/AvatarIcon.d.ts +28 -6
- package/dist/src/components/avatars/AvatarImage.d.ts +30 -9
- package/dist/src/components/avatars/AvatarInitials.d.ts +24 -5
- package/dist/src/components/avatars/AvatarWithText.d.ts +4 -3
- package/dist/src/components/calendars/CalendarDashboard.d.ts +17 -5
- package/dist/src/components/calendars/CalendarHeader.d.ts +7 -8
- package/dist/src/components/calendars/DayCalendar.d.ts +17 -11
- package/dist/src/components/calendars/EventCard.d.ts +2 -1
- package/dist/src/components/calendars/EventsList.d.ts +18 -6
- package/dist/src/components/calendars/MonthCalendar.d.ts +30 -6
- package/dist/src/components/calendars/WeekCalendar.d.ts +16 -10
- package/dist/src/components/calendars/YearCalendar.d.ts +29 -5
- package/dist/src/components/charts/BarChart.d.ts +40 -7
- package/dist/src/components/charts/BaseChart.d.ts +80 -0
- package/dist/src/components/charts/FunnelChart.d.ts +34 -5
- package/dist/src/components/charts/LineChart.d.ts +37 -6
- package/dist/src/components/charts/PieChart.d.ts +37 -6
- package/dist/src/components/charts/SparklineChart.d.ts +32 -3
- package/dist/src/components/charts/StatCard.d.ts +24 -2
- package/dist/src/components/charts/chartTheme.d.ts +1 -0
- package/dist/src/components/collection-editor/CollectionEditor.d.ts +112 -0
- package/dist/src/components/collection-editor/CollectionItemList.d.ts +37 -7
- package/dist/src/components/collection-editor/OrganizationsEditor.d.ts +34 -8
- package/dist/src/components/collection-editor/RelatedNamesEditor.d.ts +37 -7
- package/dist/src/components/collection-editor/SocialLinksEditor.d.ts +37 -7
- package/dist/src/components/empty-state/ComingSoon.d.ts +29 -2
- package/dist/src/components/empty-state/EmptyState.d.ts +26 -4
- package/dist/src/components/formatters/DateFormatter.d.ts +2 -1
- package/dist/src/components/formatters/DateRangeFormatter.d.ts +1 -0
- package/dist/src/components/forms/DynamicForm.d.ts +37 -11
- package/dist/src/components/forms/DynamicFormField.d.ts +15 -5
- package/dist/src/components/forms/FormFieldWrapper.d.ts +58 -14
- package/dist/src/components/icons/brands/DiscordBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/FacebookBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/GitHubBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/InstagramBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/LinkedInBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/PinterestBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/SnapchatBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/ThreadsBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/TikTokBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/TwitchBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/XBrandIcon.d.ts +1 -1
- package/dist/src/components/icons/brands/YouTubeBrandIcon.d.ts +1 -1
- package/dist/src/components/index.d.ts +1 -0
- package/dist/src/components/inputs/AddDeleteButtonGroup.d.ts +3 -2
- package/dist/src/components/inputs/AddressInput.d.ts +45 -7
- package/dist/src/components/inputs/CheckboxInput.d.ts +37 -10
- package/dist/src/components/inputs/ComboboxInput.d.ts +54 -12
- package/dist/src/components/inputs/DatepickerInput.d.ts +43 -1046
- package/dist/src/components/inputs/EmailInput.d.ts +56 -12
- package/dist/src/components/inputs/EmptyInput.d.ts +26 -2
- package/dist/src/components/inputs/FileDropzoneInput.d.ts +6 -7
- package/dist/src/components/inputs/HiddenInput.d.ts +23 -2
- package/dist/src/components/inputs/ImageDropzoneInput.d.ts +9 -8
- package/dist/src/components/inputs/InputsShowcase.d.ts +1 -1
- package/dist/src/components/inputs/PhoneInput.d.ts +18 -81
- package/dist/src/components/inputs/RichTextInput.d.ts +81 -23
- package/dist/src/components/inputs/SelectInput.d.ts +41 -47
- package/dist/src/components/inputs/SelectTextInput.d.ts +22 -53
- package/dist/src/components/inputs/SwitchInput.d.ts +41 -114
- package/dist/src/components/inputs/SwitchInputGroup.d.ts +3 -2
- package/dist/src/components/inputs/TagifyInput.d.ts +8 -10
- package/dist/src/components/inputs/TextAreaInput.d.ts +35 -9
- package/dist/src/components/inputs/TextInput.d.ts +76 -14
- package/dist/src/components/layouts/CardLayout.d.ts +64 -18
- package/dist/src/components/layouts/DashboardLayout.d.ts +5 -8
- package/dist/src/components/layouts/DefaultLayout.d.ts +1 -1
- package/dist/src/components/layouts/HeaderLayout.d.ts +4 -4
- package/dist/src/components/layouts/InfoCard.d.ts +25 -2
- package/dist/src/components/layouts/NavigationGroup.d.ts +16 -5
- package/dist/src/components/layouts/NavigationItem.d.ts +24 -7
- package/dist/src/components/layouts/ProfileHeaderAvatar.d.ts +40 -10
- package/dist/src/components/layouts/ProjectLogo.d.ts +33 -2
- package/dist/src/components/layouts/PropsTable.d.ts +23 -2
- package/dist/src/components/layouts/ShowcaseCard.d.ts +29 -2
- package/dist/src/components/layouts/ShowcaseLayout.d.ts +28 -5
- package/dist/src/components/layouts/SidebarLayout.d.ts +4 -7
- package/dist/src/components/layouts/StateDisplay.d.ts +23 -2
- package/dist/src/components/loading/ContentSkeleton.d.ts +31 -2
- package/dist/src/components/loading/SmartLoadingIndicator.d.ts +47 -6
- package/dist/src/components/maps/GoogleMap.d.ts +9 -8
- package/dist/src/components/maps/UiInfoWindow.d.ts +14 -229
- package/dist/src/components/maps/UiMap.d.ts +103 -5093
- package/dist/src/components/maps/UiMapAll.d.ts +22 -1132
- package/dist/src/components/maps/UiMapMarker.d.ts +18 -17
- package/dist/src/components/modals/AlertModal.d.ts +10 -9
- package/dist/src/components/modals/BaseModal.d.ts +6 -5
- package/dist/src/components/modals/ImageCropperModal.d.ts +75 -379
- package/dist/src/components/notifications/NotificationToast.d.ts +18 -7
- package/dist/src/components/profile-inputs/BaseInformationInput.d.ts +117 -0
- package/dist/src/components/profile-inputs/NamesInput.d.ts +107 -0
- package/dist/src/components/profile-inputs/index.d.ts +2 -0
- package/dist/src/components/profiles/BentoProfileLayout.d.ts +44 -2
- package/dist/src/components/profiles/BentoProfileLayoutSkeleton.d.ts +27 -2
- package/dist/src/components/profiles/ProfileCard.d.ts +30 -2
- package/dist/src/components/profiles/ProfileContactCard.d.ts +25 -2
- package/dist/src/components/profiles/ProfileHeaderCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileLocationCard.d.ts +28 -2
- package/dist/src/components/profiles/ProfileOrganizationsCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfilePersonalCard.d.ts +25 -2
- package/dist/src/components/profiles/ProfileProfessionalCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileRelatedNamesCard.d.ts +26 -2
- package/dist/src/components/profiles/ProfileSocialCard.d.ts +26 -2
- package/dist/src/components/stepper/StepperPanels.d.ts +14 -4
- package/dist/src/components/tabs/InlineTabs.d.ts +28 -4
- package/dist/src/components/tabs/TabGroup.d.ts +32 -6
- package/dist/src/components/tabs/TabGroupUnderline.d.ts +32 -6
- package/dist/src/components/tabs/TabsInPills.d.ts +26 -4
- package/dist/src/components/wrappers/BackgroundGradientWrapper.d.ts +37 -2
- package/dist/src/components/wrappers/CardWrapper.d.ts +1 -1
- package/dist/src/components/wrappers/DisclosureWrapper.d.ts +23 -2
- package/dist/src/components/wrappers/FormErrorWrapper.d.ts +25 -2
- package/dist/src/composables/useCalendar.d.ts +1 -0
- package/dist/src/composables/useCollectionEditor.d.ts +1 -0
- package/dist/src/composables/useFormValidation.d.ts +1 -0
- package/dist/src/composables/useMap.d.ts +1 -0
- package/dist/src/composables/useNotifications.d.ts +33 -32
- package/dist/src/composables/useSimpleTabs.d.ts +1 -0
- package/dist/src/composables/useStringTransform.d.ts +1 -0
- package/dist/src/composables/useTabs.d.ts +1 -0
- package/dist/src/config/css-variables.d.ts +1 -0
- package/dist/src/dev.d.ts +1 -0
- package/dist/src/plugin/configure.d.ts +3 -2
- package/dist/src/services/geocoding.service.d.ts +1 -0
- package/dist/src/types/calendars.d.ts +1 -0
- package/dist/src/types/core.d.ts +8 -7
- package/dist/src/types/forms.d.ts +1 -0
- package/dist/src/types/layouts.d.ts +1 -0
- package/dist/src/types/navigation.d.ts +1 -0
- package/dist/src/types/tables.d.ts +1 -0
- package/dist/src/types/ui.d.ts +1 -0
- package/dist/src/utils/component-registry.d.ts +1 -0
- package/dist/src/utils/mapThemes.d.ts +1 -0
- package/dist/src/utils/phone.d.ts +1 -0
- package/dist/src/utils/validation.d.ts +1 -0
- package/dist/src/views/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/SelectTextInput.vue_vue_type_script_setup_true_lang-C3BGLjY1.js +0 -336
- package/dist/TextInput-C5IzX7m_.js +0 -131
- package/dist/src/views/ButtonsShowcase.d.ts +0 -2
- package/dist/src/views/CalendarsShowcase.d.ts +0 -2
- package/dist/src/views/CardsShowcase.d.ts +0 -2
- package/dist/src/views/ChartsShowcase.d.ts +0 -2
- package/dist/src/views/EmptyStatesShowcase.d.ts +0 -2
- package/dist/src/views/InputsShowcase.d.ts +0 -2
- package/dist/src/views/KitchenSink.d.ts +0 -2
- package/dist/src/views/LayoutsShowcase.d.ts +0 -2
- package/dist/src/views/LoadingShowcase.d.ts +0 -2
- package/dist/src/views/MapsShowcase.d.ts +0 -2
- package/dist/src/views/ModalsShowcase.d.ts +0 -2
- package/dist/src/views/NotificationsShowcase.d.ts +0 -2
- package/dist/src/views/StepperShowcase.d.ts +0 -2
- package/dist/src/views/TabsShowcase.d.ts +0 -2
- package/dist/src/views/ValidationDemo.d.ts +0 -2
- package/dist/src/views/WrappersShowcase.d.ts +0 -2
- package/dist/src/views/components/AvatarPage.d.ts +0 -2
- package/dist/src/views/components/BadgePage.d.ts +0 -2
- package/dist/src/views/components/BannerPage.d.ts +0 -2
- package/dist/src/views/components/BreadcrumbPage.d.ts +0 -2
- package/dist/src/views/components/ButtonPage.d.ts +0 -2
- package/dist/src/views/components/CloudinaryImagePage.d.ts +0 -2
- package/dist/src/views/components/LoadingPage.d.ts +0 -2
- package/dist/src/views/components/LottiePage.d.ts +0 -2
- package/dist/src/views/components/MenuPage.d.ts +0 -2
- package/dist/src/views/components/ModalPage.d.ts +0 -2
- package/dist/src/views/components/ProgressPage.d.ts +0 -2
- package/dist/src/views/components/RichTextInputPage.d.ts +0 -2
- package/dist/src/views/components/TablePage.d.ts +0 -2
- package/dist/src/views/components/TextInputPage.d.ts +0 -2
- package/dist/src/views/components/TransitionPage.d.ts +0 -2
- package/dist/src/views/examples/CheckoutFormExample.d.ts +0 -2
- package/dist/src/views/examples/ContactFormExample.d.ts +0 -2
- package/dist/src/views/examples/RegistrationFormExample.d.ts +0 -2
- package/dist/src/views/examples/SettingsFormExample.d.ts +0 -2
- package/dist/src/views/forms/ValidationPage.d.ts +0 -2
- package/dist/src/views/inputs/CheckboxPage.d.ts +0 -2
- package/dist/src/views/inputs/ComboboxPage.d.ts +0 -2
- package/dist/src/views/inputs/DatepickerPage.d.ts +0 -2
- package/dist/src/views/inputs/EmailPage.d.ts +0 -2
- package/dist/src/views/inputs/FileDropzonePage.d.ts +0 -2
- package/dist/src/views/inputs/MiscInputsPage.d.ts +0 -2
- package/dist/src/views/inputs/PhonePage.d.ts +0 -2
- package/dist/src/views/inputs/SelectPage.d.ts +0 -2
- package/dist/src/views/inputs/SelectTextPage.d.ts +0 -2
- package/dist/src/views/inputs/SwitchGroupPage.d.ts +0 -2
- package/dist/src/views/inputs/SwitchPage.d.ts +0 -2
- package/dist/src/views/inputs/TextAreaPage.d.ts +0 -2
- package/dist/src/views/layouts/CardLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/DashboardLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/HeaderLayoutPage.d.ts +0 -2
- package/dist/src/views/layouts/SidebarLayoutPage.d.ts +0 -2
- package/dist/ui.css +0 -1
|
@@ -1,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"
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
|
2
|
-
import { Combobox as
|
|
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
3
|
import { XMarkIcon as ce, ChevronUpDownIcon as me, CheckIcon as z } from "@heroicons/vue/20/solid";
|
|
4
4
|
import { useField as ve } from "vee-validate";
|
|
5
5
|
import fe from "./forms/FormFieldWrapper.js";
|
|
6
6
|
import { _ as pe } from "./UiLoading.vue_vue_type_script_setup_true_lang-rNvtzKbq.js";
|
|
7
|
-
import { g as
|
|
8
|
-
const
|
|
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
9
|
key: 0,
|
|
10
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
11
|
}, xe = {
|
|
@@ -14,7 +14,7 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
14
14
|
}, we = { class: "sl-flex sl-items-center sl-gap-2" }, Ce = {
|
|
15
15
|
key: 2,
|
|
16
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 },
|
|
17
|
+
}, Ae = { class: "sl-block sl-truncate" }, Ve = { key: 0 }, Be = 50, Ne = /* @__PURE__ */ te({
|
|
18
18
|
__name: "ComboboxInput",
|
|
19
19
|
props: {
|
|
20
20
|
name: {},
|
|
@@ -35,11 +35,13 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
35
35
|
modelValue: { type: [String, Number, Boolean, null, Object, Array] },
|
|
36
36
|
value: { type: [String, Number, Boolean, null, Object, Array] },
|
|
37
37
|
boxShadow: { type: Boolean, default: !1 },
|
|
38
|
-
clearable: { type: Boolean, default: !1 }
|
|
38
|
+
clearable: { type: Boolean, default: !1 },
|
|
39
|
+
showValidCheck: { type: Boolean, default: !0 },
|
|
40
|
+
colorfulValidation: { type: Boolean, default: !0 }
|
|
39
41
|
},
|
|
40
42
|
emits: ["update:modelValue", "update:value", "update:query", "blur", "focus"],
|
|
41
43
|
setup(a, { emit: D }) {
|
|
42
|
-
const s = a, i = D, P =
|
|
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(
|
|
43
45
|
() => s.name,
|
|
44
46
|
s.rules,
|
|
45
47
|
{
|
|
@@ -54,9 +56,9 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
54
56
|
(e) => {
|
|
55
57
|
if (s.multiple) {
|
|
56
58
|
const l = Array.isArray(e) ? e : [];
|
|
57
|
-
l !== t.value && (t.value = l,
|
|
59
|
+
l !== t.value && (t.value = l, y.value = l);
|
|
58
60
|
} else
|
|
59
|
-
e !== t.value && (t.value = e,
|
|
61
|
+
e !== t.value && (t.value = e, y.value = e);
|
|
60
62
|
},
|
|
61
63
|
{ immediate: !0 }
|
|
62
64
|
), F(
|
|
@@ -68,7 +70,7 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
68
70
|
const $ = x(() => [
|
|
69
71
|
"sl-w-full",
|
|
70
72
|
"sl-border-none",
|
|
71
|
-
"sl-py-
|
|
73
|
+
"sl-py-1.5",
|
|
72
74
|
"sl-pl-3",
|
|
73
75
|
"sl-pr-10",
|
|
74
76
|
"sl-text-sm",
|
|
@@ -89,10 +91,12 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
89
91
|
"sl-w-full",
|
|
90
92
|
"sl-cursor-default",
|
|
91
93
|
"sl-rounded-md",
|
|
94
|
+
"sl-shadow-sm",
|
|
95
|
+
"sl-ring-1",
|
|
96
|
+
"sl-ring-inset",
|
|
92
97
|
"sl-bg-white",
|
|
93
|
-
"dark:sl-bg-slate-
|
|
98
|
+
"dark:sl-bg-slate-800",
|
|
94
99
|
"sl-text-left",
|
|
95
|
-
"sl-border",
|
|
96
100
|
"sl-outline-none",
|
|
97
101
|
"dark:sl-outline-none",
|
|
98
102
|
"focus-within:sl-outline-none",
|
|
@@ -100,8 +104,8 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
100
104
|
"[&_*]:sl-outline-none",
|
|
101
105
|
"dark:[&_*]:sl-outline-none",
|
|
102
106
|
"focus-within:sl-ring-2",
|
|
103
|
-
"focus-within:sl-ring-
|
|
104
|
-
"focus-within:sl-
|
|
107
|
+
"focus-within:sl-ring-inset",
|
|
108
|
+
"focus-within:sl-ring-stachelock-600",
|
|
105
109
|
"sl-transition-all",
|
|
106
110
|
"sl-duration-200"
|
|
107
111
|
];
|
|
@@ -109,46 +113,40 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
109
113
|
"sl-bg-gray-50",
|
|
110
114
|
"dark:sl-bg-slate-800",
|
|
111
115
|
"sl-cursor-not-allowed",
|
|
112
|
-
"sl-
|
|
113
|
-
"dark:sl-
|
|
116
|
+
"sl-ring-gray-200",
|
|
117
|
+
"dark:sl-ring-slate-700"
|
|
114
118
|
) : K.value ? e.push(
|
|
115
|
-
"sl-
|
|
116
|
-
"dark:sl-
|
|
117
|
-
|
|
118
|
-
"
|
|
119
|
-
|
|
120
|
-
"sl-border-green-300",
|
|
121
|
-
"dark:sl-border-green-500",
|
|
122
|
-
"focus-within:sl-ring-green-500",
|
|
123
|
-
"focus-within:sl-border-green-500"
|
|
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
124
|
) : e.push(
|
|
125
|
-
"sl-
|
|
126
|
-
"dark:sl-
|
|
127
|
-
"hover:sl-border-gray-400",
|
|
128
|
-
"dark:hover:sl-border-slate-500"
|
|
125
|
+
"sl-ring-gray-300",
|
|
126
|
+
"dark:sl-ring-slate-600"
|
|
129
127
|
), e.join(" ");
|
|
130
128
|
}), S = (e) => {
|
|
131
129
|
const l = e[s.itemKey];
|
|
132
130
|
return l == null ? "" : typeof l == "string" || typeof l == "number" ? l : String(l);
|
|
133
|
-
},
|
|
131
|
+
}, B = (e) => {
|
|
134
132
|
if (!e) return "";
|
|
135
133
|
const l = e[s.itemText];
|
|
136
134
|
return l != null ? String(l) : String(e);
|
|
137
|
-
},
|
|
138
|
-
const e = L.value *
|
|
139
|
-
T.value =
|
|
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;
|
|
140
138
|
}, R = () => {
|
|
141
139
|
L.value = 1, T.value = [], Q();
|
|
142
140
|
}, j = () => {
|
|
143
141
|
if (o.value && o.value !== "")
|
|
144
142
|
if (s.customQuery)
|
|
145
|
-
|
|
143
|
+
h.value = s.customQuery(o.value, s.items);
|
|
146
144
|
else {
|
|
147
145
|
const e = o.value.toLowerCase();
|
|
148
|
-
|
|
146
|
+
h.value = s.items.filter((l) => B(l).toLowerCase().includes(e));
|
|
149
147
|
}
|
|
150
148
|
else
|
|
151
|
-
|
|
149
|
+
h.value = s.items;
|
|
152
150
|
R();
|
|
153
151
|
}, q = x(() => s.items.filter((e) => !e.disabled)), W = (e) => {
|
|
154
152
|
const l = e.target;
|
|
@@ -156,19 +154,19 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
156
154
|
}, X = (e) => {
|
|
157
155
|
if (s.multiple) {
|
|
158
156
|
const l = Array.isArray(e) ? e : [];
|
|
159
|
-
t.value = l,
|
|
157
|
+
t.value = l, y.value = l, V(!0), p(l);
|
|
160
158
|
} else
|
|
161
|
-
t.value = e,
|
|
159
|
+
t.value = e, y.value = e, V(!0), p(e);
|
|
162
160
|
}, O = x(() => {
|
|
163
161
|
if (!s.multiple || !Array.isArray(t.value)) return !1;
|
|
164
162
|
const e = q.value;
|
|
165
163
|
if (e.length === 0) return !1;
|
|
166
|
-
const l = Array.isArray(t.value) ? t.value : [],
|
|
167
|
-
return e.every((k) =>
|
|
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)));
|
|
168
166
|
}), G = () => {
|
|
169
167
|
s.multiple && (O.value ? t.value = [] : t.value = [...q.value], V(!0), p(t.value), i("update:modelValue", t.value));
|
|
170
|
-
}, J = (e) => s.multiple ? !Array.isArray(e) || e.length === 0 ? "" : e.length === 1 ?
|
|
171
|
-
s.multiple ||
|
|
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)));
|
|
172
170
|
}, Z = (e) => {
|
|
173
171
|
const l = e.target;
|
|
174
172
|
l.scrollTop + l.clientHeight >= l.scrollHeight && Q();
|
|
@@ -176,40 +174,41 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
176
174
|
i("focus", e);
|
|
177
175
|
}, ee = x(() => {
|
|
178
176
|
if (!s.clearable) return !1;
|
|
179
|
-
const e = t.value ?? s.value ?? s.modelValue ??
|
|
177
|
+
const e = t.value ?? s.value ?? s.modelValue ?? y.value;
|
|
180
178
|
return s.multiple && Array.isArray(e) ? e.length > 0 : e != null && e !== "";
|
|
181
179
|
}), le = (e) => {
|
|
182
180
|
e.stopPropagation(), e.preventDefault();
|
|
183
181
|
const l = s.multiple ? [] : null;
|
|
184
|
-
t.value = l,
|
|
182
|
+
t.value = l, y.value = l, o.value = "", V(!0), p(l), i("update:modelValue", l), i("update:value", l);
|
|
185
183
|
}, se = (e) => {
|
|
186
|
-
!s.multiple &&
|
|
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);
|
|
187
185
|
};
|
|
188
186
|
return F(() => s.items, () => {
|
|
189
187
|
j();
|
|
190
|
-
}, { immediate: !0, deep: !0 }), (e, l) => (u(), m("div",
|
|
188
|
+
}, { immediate: !0, deep: !0 }), (e, l) => (u(), m("div", ye, [
|
|
191
189
|
d(fe, {
|
|
192
|
-
id:
|
|
190
|
+
id: n(P),
|
|
193
191
|
name: a.name,
|
|
194
192
|
label: a.label,
|
|
195
193
|
disabled: a.disabled,
|
|
196
194
|
optional: !a.rules,
|
|
197
195
|
"tertiary-label": a.tertiaryLabel,
|
|
198
196
|
"box-shadow": a.boxShadow,
|
|
199
|
-
"error-message":
|
|
197
|
+
"error-message": n(K),
|
|
200
198
|
"success-message": a.successMessage,
|
|
201
|
-
"is-valid":
|
|
202
|
-
"is-touched":
|
|
203
|
-
"show-valid-check":
|
|
199
|
+
"is-valid": n(A).valid,
|
|
200
|
+
"is-touched": n(A).touched,
|
|
201
|
+
"show-valid-check": a.showValidCheck,
|
|
202
|
+
"colorful-validation": a.colorfulValidation
|
|
204
203
|
}, {
|
|
205
204
|
"success-message": v(() => [
|
|
206
205
|
a.successMessage ? (u(), m("span", Ve, M(a.successMessage), 1)) : f("", !0)
|
|
207
206
|
]),
|
|
208
207
|
default: v(() => [
|
|
209
|
-
d(
|
|
208
|
+
d(n(ne), {
|
|
210
209
|
modelValue: t.value,
|
|
211
210
|
"onUpdate:modelValue": [
|
|
212
|
-
l[4] || (l[4] = (
|
|
211
|
+
l[4] || (l[4] = (r) => t.value = r),
|
|
213
212
|
X
|
|
214
213
|
],
|
|
215
214
|
disabled: a.disabled,
|
|
@@ -219,37 +218,37 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
219
218
|
}, {
|
|
220
219
|
default: v(() => [
|
|
221
220
|
c("div", {
|
|
222
|
-
class:
|
|
221
|
+
class: g(H.value)
|
|
223
222
|
}, [
|
|
224
|
-
d(
|
|
225
|
-
id:
|
|
226
|
-
class:
|
|
223
|
+
d(n(re), {
|
|
224
|
+
id: n(P),
|
|
225
|
+
class: g($.value),
|
|
227
226
|
"display-value": J,
|
|
228
227
|
placeholder: a.placeholder || "Type to search...",
|
|
229
228
|
modelValue: o.value,
|
|
230
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
229
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => o.value = r),
|
|
231
230
|
onInput: W,
|
|
232
231
|
onBlur: se,
|
|
233
232
|
onFocus: _
|
|
234
233
|
}, null, 8, ["id", "class", "placeholder", "modelValue"]),
|
|
235
|
-
c("div",
|
|
234
|
+
c("div", he, [
|
|
236
235
|
ee.value ? (u(), m("button", {
|
|
237
236
|
key: 0,
|
|
238
237
|
type: "button",
|
|
239
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",
|
|
240
239
|
onClick: le,
|
|
241
|
-
onMousedown: l[1] || (l[1] =
|
|
240
|
+
onMousedown: l[1] || (l[1] = I(() => {
|
|
242
241
|
}, ["prevent"]))
|
|
243
242
|
}, [
|
|
244
|
-
d(
|
|
243
|
+
d(n(ce), {
|
|
245
244
|
class: "sl-h-4 sl-w-4",
|
|
246
245
|
"aria-hidden": "true"
|
|
247
246
|
}),
|
|
248
247
|
l[5] || (l[5] = c("span", { class: "sl-sr-only" }, "Clear selection", -1))
|
|
249
248
|
], 32)) : f("", !0),
|
|
250
|
-
d(
|
|
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" }, {
|
|
251
250
|
default: v(() => [
|
|
252
|
-
d(
|
|
251
|
+
d(n(me), {
|
|
253
252
|
class: "sl-h-5 sl-w-5 sl-text-gray-400 dark:sl-text-slate-300",
|
|
254
253
|
"aria-hidden": "true"
|
|
255
254
|
})
|
|
@@ -257,14 +256,14 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
257
256
|
_: 1
|
|
258
257
|
})
|
|
259
258
|
]),
|
|
260
|
-
d(
|
|
259
|
+
d(n(ie), {
|
|
261
260
|
leave: "sl-transition sl-ease-in sl-duration-100",
|
|
262
261
|
"leave-from": "sl-opacity-100",
|
|
263
262
|
"leave-to": "sl-opacity-0",
|
|
264
|
-
onAfterLeave: l[3] || (l[3] = (
|
|
263
|
+
onAfterLeave: l[3] || (l[3] = (r) => o.value = "")
|
|
265
264
|
}, {
|
|
266
265
|
default: v(() => [
|
|
267
|
-
|
|
266
|
+
h.value.length > 0 || o.value !== "" || a.multiple && a.showAll ? (u(), N(n(de), {
|
|
268
267
|
key: 0,
|
|
269
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",
|
|
270
269
|
onScroll: Z
|
|
@@ -274,18 +273,18 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
274
273
|
key: 0,
|
|
275
274
|
role: "button",
|
|
276
275
|
tabindex: "0",
|
|
277
|
-
onMousedown: l[2] || (l[2] =
|
|
276
|
+
onMousedown: l[2] || (l[2] = I(() => {
|
|
278
277
|
}, ["prevent"])),
|
|
279
|
-
onClick:
|
|
280
|
-
class:
|
|
278
|
+
onClick: I(G, ["prevent", "stop"]),
|
|
279
|
+
class: g([
|
|
281
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",
|
|
282
281
|
"hover:sl-bg-stachelock-600 hover:sl-text-white"
|
|
283
282
|
]),
|
|
284
283
|
"data-testid": "select-all-option"
|
|
285
284
|
}, [
|
|
286
|
-
c("span",
|
|
285
|
+
c("span", be, M(O.value ? "Unselect All" : "Select All"), 1),
|
|
287
286
|
O.value ? (u(), m("span", ke, [
|
|
288
|
-
d(
|
|
287
|
+
d(n(z), {
|
|
289
288
|
class: "sl-h-5 sl-w-5",
|
|
290
289
|
"aria-hidden": "true"
|
|
291
290
|
})
|
|
@@ -296,32 +295,32 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
296
295
|
d(pe, { size: "sm" }),
|
|
297
296
|
l[6] || (l[6] = c("span", null, "Loading...", -1))
|
|
298
297
|
])
|
|
299
|
-
])) : o.value !== "" &&
|
|
300
|
-
(u(!0), m(ae, null, oe(T.value, (
|
|
301
|
-
key: S(
|
|
302
|
-
value:
|
|
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,
|
|
303
302
|
as: "template",
|
|
304
|
-
disabled:
|
|
303
|
+
disabled: r.disabled
|
|
305
304
|
}, {
|
|
306
305
|
default: v(({ active: k, selected: E }) => [
|
|
307
306
|
c("li", {
|
|
308
|
-
class:
|
|
307
|
+
class: g([
|
|
309
308
|
"sl-relative sl-cursor-default sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
|
|
310
309
|
k ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200",
|
|
311
|
-
|
|
310
|
+
r.disabled ? "sl-opacity-50 sl-cursor-not-allowed" : ""
|
|
312
311
|
])
|
|
313
312
|
}, [
|
|
314
313
|
c("span", {
|
|
315
|
-
class:
|
|
314
|
+
class: g([
|
|
316
315
|
"sl-block sl-truncate",
|
|
317
316
|
E ? "sl-font-medium" : "sl-font-normal"
|
|
318
317
|
])
|
|
319
|
-
}, M(
|
|
318
|
+
}, M(B(r)), 3),
|
|
320
319
|
E ? (u(), m("span", {
|
|
321
320
|
key: 0,
|
|
322
|
-
class:
|
|
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"])
|
|
323
322
|
}, [
|
|
324
|
-
d(
|
|
323
|
+
d(n(z), {
|
|
325
324
|
class: "sl-h-5 sl-w-5",
|
|
326
325
|
"aria-hidden": "true"
|
|
327
326
|
})
|
|
@@ -330,17 +329,17 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
330
329
|
]),
|
|
331
330
|
_: 2
|
|
332
331
|
}, 1032, ["value", "disabled"]))), 128)),
|
|
333
|
-
!a.multiple &&
|
|
332
|
+
!a.multiple && b.value ? (u(), N(n(U), {
|
|
334
333
|
key: 3,
|
|
335
|
-
value:
|
|
334
|
+
value: b.value,
|
|
336
335
|
as: "template"
|
|
337
336
|
}, {
|
|
338
|
-
default: v(({ active:
|
|
337
|
+
default: v(({ active: r }) => [
|
|
339
338
|
c("li", {
|
|
340
|
-
onClick:
|
|
341
|
-
class:
|
|
339
|
+
onClick: I(Y, ["prevent", "stop"]),
|
|
340
|
+
class: g([
|
|
342
341
|
"sl-relative sl-cursor-pointer sl-select-none sl-py-2 sl-pl-10 sl-pr-4",
|
|
343
|
-
|
|
342
|
+
r ? "sl-bg-stachelock-600 sl-text-white" : "sl-text-gray-900 dark:sl-text-slate-200"
|
|
344
343
|
])
|
|
345
344
|
}, [
|
|
346
345
|
c("span", Ae, ' Enter "' + M(o.value) + '" manually ', 1)
|
|
@@ -360,7 +359,7 @@ const be = { class: "sl-w-full" }, ge = { class: "sl-absolute sl-inset-y-0 sl-ri
|
|
|
360
359
|
}, 8, ["modelValue", "disabled", "multiple"])
|
|
361
360
|
]),
|
|
362
361
|
_: 1
|
|
363
|
-
}, 8, ["id", "name", "label", "disabled", "optional", "tertiary-label", "box-shadow", "error-message", "success-message", "is-valid", "is-touched"])
|
|
362
|
+
}, 8, ["id", "name", "label", "disabled", "optional", "tertiary-label", "box-shadow", "error-message", "success-message", "is-valid", "is-touched", "show-valid-check", "colorful-validation"])
|
|
364
363
|
]));
|
|
365
364
|
}
|
|
366
365
|
});
|
|
@@ -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"
|
|
@@ -2,7 +2,7 @@ import { defineComponent as Y, ref as Z, reactive as _, watch as w, computed as
|
|
|
2
2
|
import { useForm as te } from "vee-validate";
|
|
3
3
|
import { ExclamationCircleIcon as se } from "@heroicons/vue/24/outline";
|
|
4
4
|
import A from "./components/Button.js";
|
|
5
|
-
import { _ as ae } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ae } from "./DynamicFormField.vue_vue_type_script_setup_true_lang-BCVmqg_n.js";
|
|
6
6
|
const le = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "sl-mb-6"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as b, computed as s, defineAsyncComponent as y, createBlock as v, createElementBlock as g, openBlock as c, resolveDynamicComponent as w, mergeProps as k, toHandlers as V, createElementVNode as o, createVNode as _, unref as L, toDisplayString as P } from "vue";
|
|
2
|
-
import
|
|
2
|
+
import t from "./inputs/TextInput.js";
|
|
3
3
|
import { ExclamationTriangleIcon as C } from "@heroicons/vue/24/outline";
|
|
4
4
|
const D = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "sl-p-4 sl-bg-yellow-50 sl-border sl-border-yellow-200 sl-rounded-md"
|
|
7
|
-
}, F = { class: "sl-flex" },
|
|
7
|
+
}, F = { class: "sl-flex" }, M = { class: "sl-ml-3" }, T = { class: "sl-mt-2 sl-text-sm sl-text-yellow-700" }, A = /* @__PURE__ */ b({
|
|
8
8
|
__name: "DynamicFormField",
|
|
9
9
|
props: {
|
|
10
10
|
field: {},
|
|
@@ -137,9 +137,9 @@ const D = {
|
|
|
137
137
|
}), null, 16, ["model-value"])) : (c(), g("div", D, [
|
|
138
138
|
o("div", F, [
|
|
139
139
|
_(L(C), { class: "sl-h-5 sl-w-5 sl-text-yellow-400" }),
|
|
140
|
-
o("div",
|
|
140
|
+
o("div", M, [
|
|
141
141
|
i[0] || (i[0] = o("h3", { class: "sl-text-sm sl-font-medium sl-text-yellow-800" }, " Unknown field type ", -1)),
|
|
142
|
-
o("div",
|
|
142
|
+
o("div", T, [
|
|
143
143
|
o("p", null, 'Field type "' + P(a.field.type) + '" is not supported.', 1)
|
|
144
144
|
])
|
|
145
145
|
])
|
|
@@ -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,
|