@wikicasa-dev/components 2.1.2 → 2.1.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/UIKit/AccessibleSelect.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordion.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionBtn.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionContent.js +1 -1
- package/dist/UIKit/Accordion/BaseAccordionItem.js +1 -1
- package/dist/UIKit/BaseAlert.d.ts +20 -9
- package/dist/UIKit/BaseAlert.js +3 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.d.ts +40 -5
- package/dist/UIKit/BaseBadge.js +3 -2
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +4 -0
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +4 -0
- package/dist/UIKit/BaseBanner.js +4 -0
- package/dist/UIKit/BaseBreadcrumb.js +3 -2
- package/dist/UIKit/BaseButton.d.ts +9 -8
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +5 -36
- package/dist/UIKit/BaseChip.js +4 -0
- package/dist/UIKit/BaseCollapse.js +7 -0
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +5 -105
- package/dist/UIKit/BaseDropDown.d.ts +5 -0
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +3 -39
- package/dist/UIKit/BaseIcon.js +4 -25
- package/dist/UIKit/BaseInput.d.ts +4 -5
- package/dist/UIKit/BaseInput.js +3 -210
- package/dist/UIKit/BaseModal.js +3 -2
- package/dist/UIKit/BaseNotificationBadge.js +4 -0
- package/dist/UIKit/BasePagination.d.ts +10 -3
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +9 -9
- package/dist/UIKit/BasePin.js +5 -0
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.d.ts +14 -10
- package/dist/UIKit/BaseSlider.js +2 -206
- package/dist/UIKit/BaseSnackbar.js +5 -80
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +5 -126
- package/dist/UIKit/BaseToggle.d.ts +5 -8
- package/dist/UIKit/BaseToggle.js +2 -41
- package/dist/UIKit/BaseTooltip.d.ts +10 -20
- package/dist/UIKit/BaseTooltip.js +5 -40
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +9 -16
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -3
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/DatePicker.js +5 -0
- package/dist/UIKit/InputDropdown.js +4 -0
- package/dist/UIKit/NativeSelect.js +5 -0
- package/dist/UIKit/Navigation/NavigationBar.d.ts +17 -0
- package/dist/UIKit/Navigation/NavigationBar.js +5 -0
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +34 -0
- package/dist/UIKit/Navigation/NavigationBarItem.js +4 -0
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +4 -0
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +4 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +1 -5
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/StaticSpinner.js +5 -26
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- package/dist/UIKit/Tab/BaseTabItem.d.ts +27 -0
- package/dist/UIKit/Tab/BaseTabItem.js +4 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +3 -3
- package/dist/UIKit/Tab/BaseTabList.js +1 -1
- package/dist/UIKit/Tab/BaseTabPanel.js +1 -1
- package/dist/UIKit/Tab/BaseTabView.js +1 -1
- package/dist/UIKit/types.d.ts +11 -6
- package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/_virtual/polyline.js +2 -0
- package/dist/assets/node_modules/.pnpm/@vuepic_vue-datepicker@11.0.2_vue@3.5.16_typescript@5.8.3_/node_modules/@vuepic/vue-datepicker/dist/main.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.css +1 -0
- package/dist/assets/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -0
- package/dist/assets/{BaseModal.css → packages/components/lib/UIKit/BaseModal.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +1 -0
- package/dist/assets/{BaseSnackbar.css → packages/components/lib/UIKit/BaseSnackbar.css} +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/NativeSelect.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel.css +1 -0
- package/dist/assets/packages/components/lib/components/carousel/SwiperCarousel2.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -0
- package/dist/chart/DoughnutChart.js +1 -1
- package/dist/chart/LineChart.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObservable.js +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +6 -1593
- package/dist/components/carousel/SwiperSlide.js +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +3 -2
- package/dist/index.js +96 -85
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowFilledIcon.js +19 -0
- package/dist/{chunks/ArrowIcon.Bq6Xr3uH.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js} +3 -3
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CheckIcon.js +16 -0
- package/dist/{chunks/CloseIcon.BZ4U3aiI.js → node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js} +11 -11
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +9 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +2 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +40 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/svgIconFactory-BpnFimFz.js +29 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +15 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +10 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useBreakpoints.js +33 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/decode.js +22 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/encode.js +34 -0
- package/dist/node_modules/.pnpm/google-polyline@1.0.3/node_modules/google-polyline/lib/polyline.js +12 -0
- package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js +71 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/autoplay.js +129 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/controller.js +101 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/free-mode.js +125 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/navigation.js +127 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/pagination.js +227 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.css.js +1 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/thumbs.js +121 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/modules/zoom.js +310 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/create-element-if-not-defined.js +12 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/ssr-window.esm.js +135 -0
- package/dist/node_modules/.pnpm/swiper@11.2.8/node_modules/swiper/shared/utils.js +91 -0
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/controller.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/navigation.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/pagination.js +5 -0
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +213 -0
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +33 -0
- package/dist/{chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.APN3hif2.js → packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js} +8 -8
- package/dist/{chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Dn4qNu2R.js → packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js} +1 -1
- package/dist/{chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.Dpjir3yq.js → packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js} +25 -25
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +113 -0
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +193 -0
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +29 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +75 -0
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +55 -0
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +86 -0
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +54 -0
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +106 -0
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +140 -0
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +37 -0
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +185 -0
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +150 -0
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +19 -0
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +107 -0
- package/dist/packages/components/lib/UIKit/BasePaper.vue.js +7 -0
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +37 -0
- package/dist/{chunks/SelectItem.vue_vue_type_script_setup_true_lang.Drq_K7Vx.js → packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +136 -0
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +81 -0
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +109 -0
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +38 -0
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +56 -0
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +50 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +78 -0
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +110 -0
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +143 -0
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +152 -0
- package/dist/packages/components/lib/UIKit/NativeSelect.vue.js +65 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +21 -0
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +48 -0
- package/dist/{chunks/RadioButton.vue_vue_type_script_setup_true_lang.DRQnjRA7.js → packages/components/lib/UIKit/Radio/RadioButton.vue.js} +12 -12
- package/dist/{chunks/RadioGroup.vue_vue_type_script_setup_true_lang.CpsMf2PN.js → packages/components/lib/UIKit/Radio/RadioGroup.vue.js} +6 -6
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +93 -0
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +30 -0
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +22 -0
- package/dist/{chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.BoEMYLem.js → packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js} +10 -9
- package/dist/packages/components/lib/UIKit/StaticSpinner.vue.js +27 -0
- package/dist/{chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js → packages/components/lib/UIKit/Tab/BaseTab.vue.js} +3 -3
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +39 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +46 -0
- package/dist/{chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js → packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js} +1 -1
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +109 -0
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/{chunks/LineChart.vue_vue_type_script_setup_true_lang.ByrHxeZr.js → packages/components/lib/chart/LineChart.vue.js} +2 -2
- package/dist/{chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js → packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js} +5 -5
- package/dist/{chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js → packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js} +4 -4
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +246 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +5 -3
- package/package.json +21 -18
- package/dist/UIKit/Slider/SimpleSlider.d.ts +0 -19
- package/dist/UIKit/Slider/SimpleSlider.js +0 -83
- package/dist/assets/BaseAlert.css +0 -1
- package/dist/assets/BaseBadge.css +0 -1
- package/dist/assets/BaseCard.css +0 -1
- package/dist/assets/BaseComplexToggle.css +0 -1
- package/dist/assets/BaseFloatingLabel.css +0 -1
- package/dist/assets/BaseInput.css +0 -1
- package/dist/assets/BaseShimmerLoader.css +0 -1
- package/dist/assets/BaseSlider.css +0 -1
- package/dist/assets/BaseTextarea.css +0 -1
- package/dist/assets/BaseToggle.css +0 -1
- package/dist/assets/BaseTooltip.css +0 -1
- package/dist/assets/CheckboxBtn.css +0 -1
- package/dist/assets/SimpleSlider.css +0 -1
- package/dist/assets/SwiperCarousel.css +0 -1
- package/dist/assets/index.css +0 -1
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.gRPd8LaO.js +0 -246
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.BJW28Y_i.js +0 -32
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +0 -19
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.Ol7Hmb-E.js +0 -202
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.D2PAy8_x.js +0 -19
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.DlSPjwQe.js +0 -58
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js +0 -66
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.Cb0-JXG0.js +0 -137
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.CCb032YN.js +0 -151
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.Cbo8eLhz.js +0 -164
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js +0 -43
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CUgJNst9.js +0 -105
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.CdwKhQoc.js +0 -71
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.C9gKO-hI.js +0 -111
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.M0NEigw0.js +0 -27
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +0 -10
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +0 -11
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +0 -9
- package/dist/chunks/polyline.tNTK3v2u.js +0 -129
- package/dist/chunks/useKeyboardController.Cs_5GQTJ.js +0 -41
- /package/dist/assets/{BaseIcon.css → packages/components/lib/UIKit/BaseIcon.css} +0 -0
- /package/dist/assets/{BasePaper.css → packages/components/lib/UIKit/BasePaper.css} +0 -0
- /package/dist/assets/{StaticSpinner.css → packages/components/lib/UIKit/StaticSpinner.css} +0 -0
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { defineComponent as M, mergeModels as b, useId as A, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as N, createElementBlock as T, openBlock as u, withModifiers as g, normalizeClass as i, renderSlot as C, createBlock as y, createVNode as V, unref as l, withCtx as D, createElementVNode as K, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
|
-
import { _ as R } from "./BaseButton.vue_vue_type_script_setup_true_lang.BPSr-Zxr.js";
|
|
3
|
-
import { a as U } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
-
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
import { A as j } from "./useKeyboardController.Cs_5GQTJ.js";
|
|
6
|
-
const F = ["innerHTML"], Z = /* @__PURE__ */ M({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "BaseDropDown",
|
|
9
|
-
props: /* @__PURE__ */ b({
|
|
10
|
-
dropdownClasses: { default: "" },
|
|
11
|
-
btnClasses: { default: "" },
|
|
12
|
-
withArrowIcon: { type: Boolean, default: !1 },
|
|
13
|
-
btnLabel: { default: "" },
|
|
14
|
-
labelClasses: { default: "" },
|
|
15
|
-
direction: { default: "down" },
|
|
16
|
-
arrowWidth: { default: 12 },
|
|
17
|
-
arrowStrokeColor: { default: void 0 },
|
|
18
|
-
isAbsolute: { type: Boolean, default: !0 },
|
|
19
|
-
openDropdown: { type: Boolean, default: !1 },
|
|
20
|
-
closeWhenClickedOutside: { type: Boolean, default: !0 },
|
|
21
|
-
dropdownElement: { default: "div" },
|
|
22
|
-
keepState: { default: "" },
|
|
23
|
-
activateKeyboardController: { type: Boolean, default: !0 },
|
|
24
|
-
dataCy: { default: "" }
|
|
25
|
-
}, {
|
|
26
|
-
toggleDropdown: {
|
|
27
|
-
default: void 0
|
|
28
|
-
},
|
|
29
|
-
toggleDropdownModifiers: {}
|
|
30
|
-
}),
|
|
31
|
-
emits: /* @__PURE__ */ b(["click", "update:dropdownState"], ["update:toggleDropdown"]),
|
|
32
|
-
setup(p, { emit: B }) {
|
|
33
|
-
const o = p, c = A(), k = B, f = E(p, "toggleDropdown"), t = h(!1), d = h([]), S = O(() => d.value.length), w = W("dropdown"), { activeIdx: m, selectedIdx: r } = j({
|
|
34
|
-
optionsLength: S,
|
|
35
|
-
isDropdownOpen: t,
|
|
36
|
-
activate: o.activateKeyboardController
|
|
37
|
-
});
|
|
38
|
-
n(
|
|
39
|
-
() => o.openDropdown,
|
|
40
|
-
(e) => {
|
|
41
|
-
t.value = e;
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
immediate: !0
|
|
45
|
-
}
|
|
46
|
-
), n(t, (e) => {
|
|
47
|
-
k("update:dropdownState", e);
|
|
48
|
-
}), n(f, (e) => {
|
|
49
|
-
e && (t.value = !t.value, f.value = !1);
|
|
50
|
-
}), n(r, (e) => {
|
|
51
|
-
e !== -1 && d.value[e].querySelector("a")?.click();
|
|
52
|
-
});
|
|
53
|
-
const v = () => {
|
|
54
|
-
t.value = !1;
|
|
55
|
-
}, s = () => {
|
|
56
|
-
o.keepState === "closed" && !t.value || o.keepState === "opened" && t.value || (t.value = !t.value);
|
|
57
|
-
}, I = (e) => {
|
|
58
|
-
e != null && (m.value = e);
|
|
59
|
-
}, L = (e) => {
|
|
60
|
-
e != null && (r.value = e);
|
|
61
|
-
};
|
|
62
|
-
return $(() => {
|
|
63
|
-
o.closeWhenClickedOutside && document.body.addEventListener("click", v);
|
|
64
|
-
}), H(() => {
|
|
65
|
-
w.value && (d.value = w.value.children || []);
|
|
66
|
-
}), N(() => {
|
|
67
|
-
o.closeWhenClickedOutside && document.body.removeEventListener("click", v);
|
|
68
|
-
}), (e, a) => (u(), T("div", {
|
|
69
|
-
class: i(["uikit-relative uikit-block", e.$attrs.class]),
|
|
70
|
-
onClick: a[1] || (a[1] = g((G) => {
|
|
71
|
-
k("click"), s();
|
|
72
|
-
}, ["stop"]))
|
|
73
|
-
}, [
|
|
74
|
-
C(e.$slots, "btn_slot", {
|
|
75
|
-
toggleDropdown: s,
|
|
76
|
-
isOpen: t.value
|
|
77
|
-
}, () => [
|
|
78
|
-
V(R, {
|
|
79
|
-
id: l(c),
|
|
80
|
-
type: "button",
|
|
81
|
-
"data-cy": e.dataCy,
|
|
82
|
-
class: i([
|
|
83
|
-
"!uikit-flex uikit-w-full uikit-items-center uikit-truncate",
|
|
84
|
-
e.btnClasses
|
|
85
|
-
]),
|
|
86
|
-
"aria-expanded": t.value,
|
|
87
|
-
"btn-class": "uikit-btn-single-selection"
|
|
88
|
-
}, {
|
|
89
|
-
default: D(() => [
|
|
90
|
-
K("span", {
|
|
91
|
-
class: i(["uikit-mr-5px", e.labelClasses]),
|
|
92
|
-
innerHTML: e.btnLabel
|
|
93
|
-
}, null, 10, F),
|
|
94
|
-
e.withArrowIcon ? (u(), y(l(U), {
|
|
95
|
-
key: 0,
|
|
96
|
-
class: i(["uikit-shrink-0 uikit-transition-transform motion-reduce:uikit-transition-none", t.value ? "uikit-rotate-180" : ""]),
|
|
97
|
-
width: e.arrowWidth,
|
|
98
|
-
height: e.arrowWidth,
|
|
99
|
-
"stroke-color": e.arrowStrokeColor
|
|
100
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])) : q("", !0)
|
|
101
|
-
]),
|
|
102
|
-
_: 1
|
|
103
|
-
}, 8, ["id", "data-cy", "class", "aria-expanded"])
|
|
104
|
-
]),
|
|
105
|
-
(u(), y(z(e.dropdownElement), {
|
|
106
|
-
id: "dropdown_" + l(c),
|
|
107
|
-
ref: "dropdown",
|
|
108
|
-
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
109
|
-
class: i(["uikit-max-h-[220px] uikit-w-full uikit-min-w-[90px] uikit-flex-col uikit-overflow-y-auto uikit-border uikit-border-solid uikit-border-w-lavender uikit-bg-white uikit-pl-0 uikit-opacity-100 uikit-shadow uikit-no-scrollbar", [
|
|
110
|
-
e.dropdownClasses,
|
|
111
|
-
t.value ? "uikit-flex" : "uikit-hidden",
|
|
112
|
-
{ "uikit-bottom-[55px] uikit-rounded-xs": e.direction === "up" },
|
|
113
|
-
{ "uikit-rounded-b uikit-border-t-0": e.direction === "down" },
|
|
114
|
-
{ "uikit-absolute": e.isAbsolute }
|
|
115
|
-
]]),
|
|
116
|
-
"aria-hidden": !t.value,
|
|
117
|
-
onClick: a[0] || (a[0] = g(() => {
|
|
118
|
-
}, ["stop"]))
|
|
119
|
-
}, {
|
|
120
|
-
default: D(() => [
|
|
121
|
-
C(e.$slots, "default", {
|
|
122
|
-
isOpen: t.value,
|
|
123
|
-
toggleDropdown: s,
|
|
124
|
-
activeIdx: l(m),
|
|
125
|
-
selectedIdx: l(r),
|
|
126
|
-
setActiveIdx: I,
|
|
127
|
-
setSelectedIdx: L
|
|
128
|
-
})
|
|
129
|
-
]),
|
|
130
|
-
_: 3
|
|
131
|
-
}, 8, ["id", "data-cy", "class", "aria-hidden"]))
|
|
132
|
-
], 2));
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
export {
|
|
136
|
-
Z as _
|
|
137
|
-
};
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { defineComponent as T, ref as d, useTemplateRef as z, onUnmounted as H, watch as O, createBlock as $, openBlock as m, Teleport as D, createElementVNode as a, normalizeClass as s, withModifiers as y, createElementBlock as h, createCommentVNode as w, renderSlot as r, createVNode as I, unref as K, nextTick as N } from "vue";
|
|
2
|
-
import "./polyline.tNTK3v2u.js";
|
|
3
|
-
import { l as V } from "./CloseIcon.BZ4U3aiI.js";
|
|
4
|
-
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("Windows"), A = (o, c) => new Promise((l, t) => {
|
|
6
|
-
setTimeout(() => {
|
|
7
|
-
try {
|
|
8
|
-
o && o(), l();
|
|
9
|
-
} catch {
|
|
10
|
-
t();
|
|
11
|
-
}
|
|
12
|
-
}, c);
|
|
13
|
-
}), F = ["id", "data-cy"], P = ["innerHTML"], j = /* @__PURE__ */ T({
|
|
14
|
-
__name: "BaseModal",
|
|
15
|
-
props: {
|
|
16
|
-
id: { default: "base-bt-modal" },
|
|
17
|
-
size: { default: "modal-md" },
|
|
18
|
-
customBackdropClasses: {},
|
|
19
|
-
customModalDialogClasses: {},
|
|
20
|
-
customModalHeaderClasses: {},
|
|
21
|
-
customModalBodyClasses: {},
|
|
22
|
-
customModalFooterClasses: {},
|
|
23
|
-
withCloseIcon: { type: Boolean, default: !0 },
|
|
24
|
-
showModal: { type: Boolean, default: !0 },
|
|
25
|
-
headerTitle: { default: "" },
|
|
26
|
-
autoClose: {},
|
|
27
|
-
fullHeight: { type: Boolean, default: !1 },
|
|
28
|
-
closeOnClickOut: { type: Boolean, default: !0 },
|
|
29
|
-
centered: { type: Boolean, default: !1 },
|
|
30
|
-
dataCy: {},
|
|
31
|
-
closeIconBtnClasses: {},
|
|
32
|
-
titleClasses: {}
|
|
33
|
-
},
|
|
34
|
-
emits: ["closed", "opened", "dialogClick"],
|
|
35
|
-
setup(o, { emit: c }) {
|
|
36
|
-
const l = c, t = d(!1), f = d(null), u = z("modalDialog"), k = d(!1), n = d(!1), p = ({ key: e }) => {
|
|
37
|
-
e === "Escape" && i();
|
|
38
|
-
}, C = () => {
|
|
39
|
-
document?.body.addEventListener("keydown", p);
|
|
40
|
-
}, b = () => {
|
|
41
|
-
document?.body.removeEventListener("keydown", p);
|
|
42
|
-
}, M = async () => {
|
|
43
|
-
t.value = !0, N(() => {
|
|
44
|
-
C(), g() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
45
|
-
}), l("opened"), o.autoClose !== void 0 && setTimeout(() => {
|
|
46
|
-
i();
|
|
47
|
-
}, o.autoClose);
|
|
48
|
-
}, B = (e) => {
|
|
49
|
-
u.value && u.value.contains(e.target) && (n.value = !0);
|
|
50
|
-
}, x = (e) => {
|
|
51
|
-
u.value && u.value.contains(e.target) && (n.value = !1);
|
|
52
|
-
}, L = async () => {
|
|
53
|
-
if (o.closeOnClickOut) {
|
|
54
|
-
if (n.value) {
|
|
55
|
-
n.value = !1;
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
await i();
|
|
59
|
-
}
|
|
60
|
-
}, i = async () => {
|
|
61
|
-
t.value = !1, b(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await A(() => {
|
|
62
|
-
f.value?.classList.add("uikit-hidden"), l("closed");
|
|
63
|
-
}, 250);
|
|
64
|
-
};
|
|
65
|
-
return H(() => {
|
|
66
|
-
b(), document?.documentElement.classList.remove("uikit-no-scrolling"), g() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
67
|
-
}), O(
|
|
68
|
-
() => o.showModal,
|
|
69
|
-
async (e) => {
|
|
70
|
-
!e && !t.value ? k.value = !0 : k.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
71
|
-
},
|
|
72
|
-
{ immediate: !0 }
|
|
73
|
-
), (e, v) => (m(), $(D, { to: "body" }, [
|
|
74
|
-
a("div", {
|
|
75
|
-
ref_key: "backdropEl",
|
|
76
|
-
ref: f,
|
|
77
|
-
class: s(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
78
|
-
e.customBackdropClasses,
|
|
79
|
-
{
|
|
80
|
-
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": t.value
|
|
81
|
-
},
|
|
82
|
-
{ "uikit-bg-transparent": !t.value },
|
|
83
|
-
{ "sm:uikit-pt-[30px]": !e.centered },
|
|
84
|
-
{ hide: k.value }
|
|
85
|
-
]]),
|
|
86
|
-
style: { "z-index": "1062" },
|
|
87
|
-
onClick: L,
|
|
88
|
-
onMousedown: B,
|
|
89
|
-
onMouseup: x
|
|
90
|
-
}, [
|
|
91
|
-
a("dialog", {
|
|
92
|
-
id: e.id,
|
|
93
|
-
ref: "modalDialog",
|
|
94
|
-
"data-cy": e.dataCy,
|
|
95
|
-
class: s(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
96
|
-
e.customModalDialogClasses,
|
|
97
|
-
{ show: t.value },
|
|
98
|
-
{ "closed uikit-overflow-hidden": !t.value },
|
|
99
|
-
{ centered: e.centered },
|
|
100
|
-
{ "uikit-absolute": e.centered },
|
|
101
|
-
{ "uikit-static": !e.centered },
|
|
102
|
-
`base-${e.size}`,
|
|
103
|
-
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
104
|
-
]]),
|
|
105
|
-
onClick: v[0] || (v[0] = y((E) => l("dialogClick", E), ["stop"]))
|
|
106
|
-
}, [
|
|
107
|
-
a("div", {
|
|
108
|
-
class: s(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
|
|
109
|
-
}, [
|
|
110
|
-
e.withCloseIcon ? (m(), h("button", {
|
|
111
|
-
key: 0,
|
|
112
|
-
id: "close-icon-btn",
|
|
113
|
-
"data-cy": "bbt-default-close-icon-btn",
|
|
114
|
-
class: s(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
115
|
-
type: "button",
|
|
116
|
-
"aria-label": "Close",
|
|
117
|
-
onClick: y(i, ["prevent", "stop"])
|
|
118
|
-
}, [
|
|
119
|
-
I(K(V), {
|
|
120
|
-
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
121
|
-
width: 30,
|
|
122
|
-
height: 30
|
|
123
|
-
})
|
|
124
|
-
], 2)) : w("", !0),
|
|
125
|
-
r(e.$slots, "header", { closeModal: i }, () => [
|
|
126
|
-
a("span", {
|
|
127
|
-
class: s(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
128
|
-
innerHTML: e.headerTitle
|
|
129
|
-
}, null, 10, P)
|
|
130
|
-
])
|
|
131
|
-
], 2),
|
|
132
|
-
a("div", {
|
|
133
|
-
class: s(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [e.customModalBodyClasses]])
|
|
134
|
-
}, [
|
|
135
|
-
r(e.$slots, "body", { closeModal: i })
|
|
136
|
-
], 2),
|
|
137
|
-
e.$slots.footer ? (m(), h("div", {
|
|
138
|
-
key: 0,
|
|
139
|
-
class: s(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
|
|
140
|
-
}, [
|
|
141
|
-
r(e.$slots, "footer", { closeModal: i })
|
|
142
|
-
], 2)) : w("", !0),
|
|
143
|
-
r(e.$slots, "fixed-bottom")
|
|
144
|
-
], 10, F)
|
|
145
|
-
], 34)
|
|
146
|
-
]));
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
export {
|
|
150
|
-
j as _
|
|
151
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as P, useModel as D, computed as s, createElementBlock as n, openBlock as r, createCommentVNode as o, createElementVNode as p, normalizeClass as h, createVNode as y, unref as v, toDisplayString as c, Fragment as m, renderList as x } from "vue";
|
|
2
|
-
import "./polyline.tNTK3v2u.js";
|
|
3
|
-
import { a as C } from "./ArrowIcon.Bq6Xr3uH.js";
|
|
4
|
-
import "./PharmacyIcon.DEQ8mOEJ.js";
|
|
5
|
-
function d(l, t = !1) {
|
|
6
|
-
return l == null ? "" : S(t ? Math.round(l) : Math.floor(l), 0);
|
|
7
|
-
}
|
|
8
|
-
function S(l, t) {
|
|
9
|
-
return !l && l !== 0 ? "" : l.toLocaleString(
|
|
10
|
-
"it-IT",
|
|
11
|
-
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
12
|
-
{
|
|
13
|
-
minimumFractionDigits: t,
|
|
14
|
-
maximumFractionDigits: t,
|
|
15
|
-
useGrouping: "always"
|
|
16
|
-
}
|
|
17
|
-
);
|
|
18
|
-
}
|
|
19
|
-
const $ = {
|
|
20
|
-
"aria-label": "Page navigation",
|
|
21
|
-
class: "uikit-overflow-auto"
|
|
22
|
-
}, B = {
|
|
23
|
-
key: 0,
|
|
24
|
-
class: "uikit-text-14 uikit-m-0 uikit-flex uikit-list-none uikit-content-center uikit-gap-4 uikit-p-0 uikit-pl-0 uikit-font-semibold sm:uikit-gap-5"
|
|
25
|
-
}, F = ["data-cy"], O = {
|
|
26
|
-
key: 0,
|
|
27
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
28
|
-
}, V = {
|
|
29
|
-
key: 1,
|
|
30
|
-
class: "font-weight-bold uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
31
|
-
}, A = ["onClick"], E = ["onClick"], z = {
|
|
32
|
-
key: 0,
|
|
33
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
34
|
-
}, G = ["data-cy"], T = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "uikit-mx-10px uikit-select-none"
|
|
37
|
-
}, Q = /* @__PURE__ */ j({
|
|
38
|
-
__name: "BasePagination",
|
|
39
|
-
props: /* @__PURE__ */ P({
|
|
40
|
-
count: { default: 0 },
|
|
41
|
-
limit: { default: 25 },
|
|
42
|
-
siblings: { default: 3 },
|
|
43
|
-
additionalCount: { default: 0 },
|
|
44
|
-
arrowColor: { default: "#2B5DFF" },
|
|
45
|
-
small: { type: Boolean, default: !1 },
|
|
46
|
-
prevLabel: { default: "" },
|
|
47
|
-
nextLabel: { default: "" },
|
|
48
|
-
prevDataCy: {},
|
|
49
|
-
nextDataCy: {}
|
|
50
|
-
}, {
|
|
51
|
-
pageNumber: { default: 1 },
|
|
52
|
-
pageNumberModifiers: {}
|
|
53
|
-
}),
|
|
54
|
-
emits: ["update:pageNumber"],
|
|
55
|
-
setup(l) {
|
|
56
|
-
const t = D(l, "pageNumber"), a = s(() => Math.ceil((l.count + l.additionalCount) / l.limit)), g = s(() => (t.value || 0) > l.siblings + 2), f = s(
|
|
57
|
-
() => (t.value || 0) < a.value - l.siblings - 1
|
|
58
|
-
), b = s(() => {
|
|
59
|
-
let e = t.value || 0, u = 0;
|
|
60
|
-
for (; e > 2 && u < l.siblings; )
|
|
61
|
-
e--, u++;
|
|
62
|
-
return u;
|
|
63
|
-
}), w = s(() => {
|
|
64
|
-
let e = t.value || 0, u = 0;
|
|
65
|
-
for (; e < a.value - 1 && u < l.siblings; )
|
|
66
|
-
e++, u++;
|
|
67
|
-
return u;
|
|
68
|
-
}), N = s(() => {
|
|
69
|
-
const i = b.value + /* Filling with the remaining right siblings */
|
|
70
|
-
Math.abs(w.value - l.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
71
|
-
new Number(!f.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
72
|
-
new Number(t.value === a.value).valueOf();
|
|
73
|
-
let e = Math.max((t.value || 0) - i, 2);
|
|
74
|
-
const u = [];
|
|
75
|
-
for (e; e < (t.value || 0); e++) u.push(e);
|
|
76
|
-
return u;
|
|
77
|
-
}), M = s(() => {
|
|
78
|
-
const i = w.value + /* Filling with the remaining left siblings */
|
|
79
|
-
Math.abs(b.value - l.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
80
|
-
new Number(!g.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
81
|
-
new Number(t.value === 1).valueOf();
|
|
82
|
-
let e = Math.min(t.value || 0, a.value - 1);
|
|
83
|
-
const u = [];
|
|
84
|
-
for (e; e < Math.min((t.value || 0) + i, a.value - 1); e++)
|
|
85
|
-
u.push(e + 1);
|
|
86
|
-
return u;
|
|
87
|
-
}), k = (i) => {
|
|
88
|
-
let e = i;
|
|
89
|
-
i < 1 ? e = 1 : i > a.value && (e = a.value), t.value = e;
|
|
90
|
-
};
|
|
91
|
-
return (i, e) => (r(), n("nav", $, [
|
|
92
|
-
i.count > 0 ? (r(), n("ul", B, [
|
|
93
|
-
p("li", {
|
|
94
|
-
class: h(["arrow-button prev-page uikit-h-30x uikit-flex uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
95
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": t.value !== 1,
|
|
96
|
-
"hover:uikit-text-white": i.small && t.value !== 1,
|
|
97
|
-
"uikit-rounded-xs": i.small && i.prevLabel
|
|
98
|
-
}]),
|
|
99
|
-
"data-cy": i.prevDataCy,
|
|
100
|
-
onClick: e[0] || (e[0] = (u) => k((t.value || 0) - 1))
|
|
101
|
-
}, [
|
|
102
|
-
y(v(C), {
|
|
103
|
-
width: 20,
|
|
104
|
-
height: 11,
|
|
105
|
-
"stroke-color": t.value === 1 ? "#8996A9" : i.arrowColor,
|
|
106
|
-
class: "uikit-inline-block uikit-rotate-90"
|
|
107
|
-
}, null, 8, ["stroke-color"]),
|
|
108
|
-
i.small && i.prevLabel ? (r(), n("span", O, c(i.prevLabel), 1)) : o("", !0)
|
|
109
|
-
], 10, F),
|
|
110
|
-
i.small ? o("", !0) : (r(), n(m, { key: 0 }, [
|
|
111
|
-
(t.value || 0) > 1 ? (r(), n("li", {
|
|
112
|
-
key: 0,
|
|
113
|
-
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
114
|
-
onClick: e[1] || (e[1] = (u) => k(0))
|
|
115
|
-
}, " 1 ")) : o("", !0),
|
|
116
|
-
g.value ? (r(), n("li", V, " ... ")) : o("", !0),
|
|
117
|
-
(r(!0), n(m, null, x(N.value, (u) => (r(), n("li", {
|
|
118
|
-
key: u,
|
|
119
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
120
|
-
onClick: (L) => k(u)
|
|
121
|
-
}, c(v(d)(u)), 9, A))), 128))
|
|
122
|
-
], 64)),
|
|
123
|
-
p("li", {
|
|
124
|
-
class: h(["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
125
|
-
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !i.small
|
|
126
|
-
}])
|
|
127
|
-
}, c(t.value || 0), 3),
|
|
128
|
-
i.small ? o("", !0) : (r(), n(m, { key: 1 }, [
|
|
129
|
-
(r(!0), n(m, null, x(M.value, (u) => (r(), n("li", {
|
|
130
|
-
key: u,
|
|
131
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
132
|
-
onClick: (L) => k(u)
|
|
133
|
-
}, c(v(d)(u)), 9, E))), 128)),
|
|
134
|
-
f.value ? (r(), n("li", z, " ... ")) : o("", !0),
|
|
135
|
-
(t.value || 0) < a.value ? (r(), n("li", {
|
|
136
|
-
key: 1,
|
|
137
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px hover:uikit-bg-w-primary hover:uikit-text-white",
|
|
138
|
-
onClick: e[2] || (e[2] = (u) => k(a.value))
|
|
139
|
-
}, c(v(d)(a.value)), 1)) : o("", !0)
|
|
140
|
-
], 64)),
|
|
141
|
-
p("li", {
|
|
142
|
-
class: h(["arrow-button next-page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px", {
|
|
143
|
-
"uikit-cursor-pointer hover:uikit-bg-w-primary [&_>_svg]:hover:uikit-brightness-0 [&_>_svg]:hover:uikit-invert": (t.value || 0) < a.value,
|
|
144
|
-
"hover:uikit-text-white": i.small && (t.value || 0) < a.value,
|
|
145
|
-
"uikit-rounded-xs": i.small && i.nextLabel
|
|
146
|
-
}]),
|
|
147
|
-
"data-cy": i.nextDataCy,
|
|
148
|
-
onClick: e[3] || (e[3] = (u) => k((t.value || 0) + 1))
|
|
149
|
-
}, [
|
|
150
|
-
i.small && i.nextLabel ? (r(), n("span", T, c(i.nextLabel), 1)) : o("", !0),
|
|
151
|
-
y(v(C), {
|
|
152
|
-
"stroke-color": (t.value || 0) === a.value ? "#8996A9" : i.arrowColor,
|
|
153
|
-
width: 20,
|
|
154
|
-
height: 11,
|
|
155
|
-
class: "uikit-inline-block -uikit-rotate-90"
|
|
156
|
-
}, null, 8, ["stroke-color"])
|
|
157
|
-
], 10, G)
|
|
158
|
-
])) : o("", !0)
|
|
159
|
-
]));
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
export {
|
|
163
|
-
Q as _
|
|
164
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, inject as l, createElementBlock as r, openBlock as a, normalizeClass as o, Fragment as m, renderList as h, unref as i, createBlock as y, createCommentVNode as C, toDisplayString as _, resolveDynamicComponent as f } from "vue";
|
|
2
|
-
const v = ["aria-labelledby"], B = ["id", "data-cy", "aria-selected", "aria-controls", "tabindex", "onClick"], F = { key: 0 }, $ = /* @__PURE__ */ p({
|
|
3
|
-
__name: "BaseTabList",
|
|
4
|
-
props: {
|
|
5
|
-
uid: {},
|
|
6
|
-
tabListClasses: { default: "" }
|
|
7
|
-
},
|
|
8
|
-
emits: ["tabClick"],
|
|
9
|
-
setup(L, { emit: c }) {
|
|
10
|
-
const d = l("tabs"), s = l("isTabActive"), b = l("handleClick"), u = c;
|
|
11
|
-
return (n, g) => (a(), r("div", {
|
|
12
|
-
role: "tablist",
|
|
13
|
-
"aria-labelledby": `tablist-${n.uid}`,
|
|
14
|
-
class: o(n.tabListClasses)
|
|
15
|
-
}, [
|
|
16
|
-
(a(!0), r(m, null, h(i(d), (e, t) => (a(), r("button", {
|
|
17
|
-
id: e.tabId,
|
|
18
|
-
key: t,
|
|
19
|
-
"data-cy": e["data-cy"],
|
|
20
|
-
type: "button",
|
|
21
|
-
role: "tab",
|
|
22
|
-
"aria-selected": i(s)(t),
|
|
23
|
-
"aria-controls": `base-tab-panel-${t}-${n.uid}`,
|
|
24
|
-
tabindex: i(s)(t) ? void 0 : -1,
|
|
25
|
-
class: o([
|
|
26
|
-
"uikit-bg-transparent uikit-p-5px",
|
|
27
|
-
{
|
|
28
|
-
"uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": i(s)(t)
|
|
29
|
-
},
|
|
30
|
-
e.class
|
|
31
|
-
]),
|
|
32
|
-
onClick: (k) => {
|
|
33
|
-
i(b)(t, e), u("tabClick", k, t, e);
|
|
34
|
-
}
|
|
35
|
-
}, [
|
|
36
|
-
e["header-title"] ? (a(), r("span", F, _(e["header-title"]), 1)) : e.renderFn.children && e.renderFn.children.header ? (a(), y(f(e.renderFn.children.header), { key: 1 })) : C("", !0)
|
|
37
|
-
], 10, B))), 128))
|
|
38
|
-
], 10, v));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
export {
|
|
42
|
-
$ as _
|
|
43
|
-
};
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { defineComponent as S, mergeModels as C, useModel as z, ref as b, useId as j, useSlots as q, computed as G, provide as v, watch as k, createElementBlock as p, openBlock as i, normalizeClass as I, createElementVNode as H, createBlock as d, createCommentVNode as o, unref as f, toDisplayString as J, Fragment as _, renderList as K, withCtx as O, resolveDynamicComponent as Q } from "vue";
|
|
2
|
-
import { _ as R } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js";
|
|
3
|
-
import { _ as g } from "./BaseTabList.vue_vue_type_script_setup_true_lang.CHOGs5d-.js";
|
|
4
|
-
const U = ["data-cy"], W = ["id"], te = /* @__PURE__ */ S({
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "BaseTabView",
|
|
7
|
-
props: /* @__PURE__ */ C({
|
|
8
|
-
tabsPosition: { default: "top" },
|
|
9
|
-
tabViewDescription: {},
|
|
10
|
-
tabListClasses: {},
|
|
11
|
-
dataCy: {}
|
|
12
|
-
}, {
|
|
13
|
-
activeIdx: { default: 0 },
|
|
14
|
-
activeIdxModifiers: {}
|
|
15
|
-
}),
|
|
16
|
-
emits: /* @__PURE__ */ C(["tabClicked"], ["update:activeIdx"]),
|
|
17
|
-
setup(P, { emit: x }) {
|
|
18
|
-
const B = x, l = z(P, "activeIdx"), $ = b(""), u = b(null), A = b(null), r = j(), m = q(), c = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", y = (e, a) => ({
|
|
19
|
-
renderFn: e,
|
|
20
|
-
tabId: T(a),
|
|
21
|
-
"active-tab-panel-idx": c(e)?.["active-tab-panel-idx"] ?? a,
|
|
22
|
-
"header-title": c(e)?.["header-title"] || "",
|
|
23
|
-
class: c(e)?.class || "",
|
|
24
|
-
"tab-panel-classes": c(e)?.["tab-panel-classes"] || "",
|
|
25
|
-
"data-cy": c(e)?.["data-cy"] || ""
|
|
26
|
-
}), n = G(() => m.default ? m.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
|
|
27
|
-
h(t) && e.push(y(t, e.length));
|
|
28
|
-
}) : h(a) && e.push(y(a, e.length)), e), []) : []);
|
|
29
|
-
v("tabs", n), v("isTabActive", (e) => l.value === e);
|
|
30
|
-
const F = (e = -1) => u.value === e, T = (e) => `base-tab-${e}-${r}`, V = (e = -1) => `base-tab-panel-${e}-${r}`, w = (e = -1) => {
|
|
31
|
-
const a = n.value.reduce(
|
|
32
|
-
(t, s, N) => (s["active-tab-panel-idx"] !== e || t.push({ tab: s, idx: N }), t),
|
|
33
|
-
[]
|
|
34
|
-
);
|
|
35
|
-
return a && a.length === 1 ? a[0].tab.tabId : a.find((t) => t.idx === l.value)?.tab.tabId;
|
|
36
|
-
}, D = (e) => {
|
|
37
|
-
$.value = T(e);
|
|
38
|
-
}, L = (e) => {
|
|
39
|
-
const a = n.value.at(e ?? -1);
|
|
40
|
-
u.value = a?.["active-tab-panel-idx"] ?? null;
|
|
41
|
-
};
|
|
42
|
-
v("handleClick", (e, a) => {
|
|
43
|
-
D(e), l.value = e, B("tabClicked", { tabIdx: e, tabElement: a });
|
|
44
|
-
}), k(
|
|
45
|
-
l,
|
|
46
|
-
(e) => {
|
|
47
|
-
L(e ?? -1);
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
immediate: !0
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
const E = (e, a) => {
|
|
54
|
-
for (let t = 0; t < e.length; t++)
|
|
55
|
-
if (e[t] !== a[t]) return t;
|
|
56
|
-
return null;
|
|
57
|
-
}, M = (e = -1) => n.value.find((a) => a["active-tab-panel-idx"] === e);
|
|
58
|
-
return k(
|
|
59
|
-
() => n.value.map((e) => e["active-tab-panel-idx"]),
|
|
60
|
-
(e, a) => {
|
|
61
|
-
const t = E(e, a);
|
|
62
|
-
if (t === null) return;
|
|
63
|
-
const s = n.value[t]["active-tab-panel-idx"];
|
|
64
|
-
l.value !== t || s === void 0 || (u.value = s);
|
|
65
|
-
}
|
|
66
|
-
), (e, a) => (i(), p("div", {
|
|
67
|
-
ref_key: "root",
|
|
68
|
-
ref: A,
|
|
69
|
-
class: I(e.$attrs.class),
|
|
70
|
-
"data-cy": e.dataCy
|
|
71
|
-
}, [
|
|
72
|
-
H("span", {
|
|
73
|
-
id: `tablist-${f(r)}`,
|
|
74
|
-
class: "uikit-sr-only"
|
|
75
|
-
}, J(e.tabViewDescription), 9, W),
|
|
76
|
-
e.tabsPosition === "top" ? (i(), d(g, {
|
|
77
|
-
key: 0,
|
|
78
|
-
uid: f(r),
|
|
79
|
-
"tab-list-classes": e.tabListClasses
|
|
80
|
-
}, null, 8, ["uid", "tab-list-classes"])) : o("", !0),
|
|
81
|
-
(i(!0), p(_, null, K(n.value, (t, s) => (i(), p(_, { key: s }, [
|
|
82
|
-
M(s) ? (i(), d(R, {
|
|
83
|
-
key: 0,
|
|
84
|
-
id: V(t["active-tab-panel-idx"]),
|
|
85
|
-
"labelled-by": w(s) ?? "",
|
|
86
|
-
active: F(s),
|
|
87
|
-
class: I(t["tab-panel-classes"])
|
|
88
|
-
}, {
|
|
89
|
-
default: O(() => [
|
|
90
|
-
t.renderFn.children && t.renderFn.children.default ? (i(), d(Q(t.renderFn.children.default), { key: 0 })) : o("", !0)
|
|
91
|
-
]),
|
|
92
|
-
_: 2
|
|
93
|
-
}, 1032, ["id", "labelled-by", "active", "class"])) : o("", !0)
|
|
94
|
-
], 64))), 128)),
|
|
95
|
-
e.tabsPosition === "bottom" ? (i(), d(g, {
|
|
96
|
-
key: 1,
|
|
97
|
-
uid: f(r),
|
|
98
|
-
"tab-list-classes": e.tabListClasses
|
|
99
|
-
}, null, 8, ["uid", "tab-list-classes"])) : o("", !0)
|
|
100
|
-
], 10, U));
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
export {
|
|
104
|
-
te as _
|
|
105
|
-
};
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as b, watch as m, createElementBlock as o, openBlock as s, normalizeClass as t, createElementVNode as l, createBlock as h, createCommentVNode as n, renderSlot as v } from "vue";
|
|
2
|
-
import w from "../UIKit/BaseFloatingLabel.js";
|
|
3
|
-
const C = ["innerHTML"], g = ["for"], y = ["id", "multiple", "accept"], B = /* @__PURE__ */ c({
|
|
4
|
-
inheritAttrs: !1,
|
|
5
|
-
__name: "BaseUploadFile",
|
|
6
|
-
props: {
|
|
7
|
-
id: {},
|
|
8
|
-
labelText: { default: "" },
|
|
9
|
-
clear: { type: Boolean, default: !1 },
|
|
10
|
-
labelClasses: { default: "" },
|
|
11
|
-
floatingLabelClasses: { default: "" },
|
|
12
|
-
fieldsetClasses: { default: "" },
|
|
13
|
-
legendClasses: { default: "" }
|
|
14
|
-
},
|
|
15
|
-
emits: ["cleared", "uploaded"],
|
|
16
|
-
setup(r, { emit: d }) {
|
|
17
|
-
const k = r, u = d, a = b("");
|
|
18
|
-
m(
|
|
19
|
-
() => k.clear,
|
|
20
|
-
(e) => {
|
|
21
|
-
e && (a.value = "", u("cleared"));
|
|
22
|
-
}
|
|
23
|
-
);
|
|
24
|
-
const p = ({ target: e }) => {
|
|
25
|
-
if (!e) return;
|
|
26
|
-
const i = e.files;
|
|
27
|
-
i?.length && (a.value = i[0].name, u("uploaded", i[0]));
|
|
28
|
-
};
|
|
29
|
-
return (e, i) => (s(), o("div", {
|
|
30
|
-
class: t(["base-upload-file-wrapper uikit-relative", [e.$attrs.class]])
|
|
31
|
-
}, [
|
|
32
|
-
l("fieldset", {
|
|
33
|
-
class: t(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-overflow-hidden uikit-rounded-xs uikit-border uikit-border-dashed uikit-border-w-secondary uikit-bg-w-lavender uikit-px-2 uikit-py-0 uikit-text-start", e.fieldsetClasses])
|
|
34
|
-
}, [
|
|
35
|
-
e.labelText ? (s(), o("legend", {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: t(["uikit-invisible uikit-float-none uikit-ml-2 uikit-block uikit-h-3 uikit-w-auto uikit-max-w-full uikit-overflow-hidden uikit-whitespace-nowrap uikit-p-0 uikit-text", e.legendClasses])
|
|
38
|
-
}, [
|
|
39
|
-
l("span", {
|
|
40
|
-
class: "uikit-visible uikit-inline-block uikit-px-5px uikit-opacity-0",
|
|
41
|
-
innerHTML: e.labelText
|
|
42
|
-
}, null, 8, C)
|
|
43
|
-
], 2)) : n("", !0)
|
|
44
|
-
], 2),
|
|
45
|
-
e.labelText ? (s(), h(w, {
|
|
46
|
-
key: 0,
|
|
47
|
-
class: t(e.floatingLabelClasses),
|
|
48
|
-
"label-text": e.labelText,
|
|
49
|
-
"label-state": "floating-label",
|
|
50
|
-
"label-classes": "!-uikit-top-1"
|
|
51
|
-
}, null, 8, ["class", "label-text"])) : n("", !0),
|
|
52
|
-
l("label", {
|
|
53
|
-
class: t(["upload-file-input uikit-relative uikit-z-10 uikit-flex uikit-h-12 uikit-w-full uikit-cursor-pointer uikit-items-center uikit-justify-center uikit-rounded-xs uikit-text-sm", e.labelClasses]),
|
|
54
|
-
for: e.id
|
|
55
|
-
}, [
|
|
56
|
-
l("input", {
|
|
57
|
-
id: e.id,
|
|
58
|
-
multiple: e.$attrs.multiple,
|
|
59
|
-
type: "file",
|
|
60
|
-
class: "uikit-hidden",
|
|
61
|
-
accept: e.$attrs.accept,
|
|
62
|
-
onInput: i[0] || (i[0] = (f) => p(f))
|
|
63
|
-
}, null, 40, y),
|
|
64
|
-
v(e.$slots, "label", { filename: a.value })
|
|
65
|
-
], 10, g)
|
|
66
|
-
], 2));
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
export {
|
|
70
|
-
B as _
|
|
71
|
-
};
|