@wikicasa-dev/components 2.6.11-alpha.0 → 3.0.0-alpha.0
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/AccessibleSelect.js +4 -0
- package/dist/BaseAccordion.js +4 -0
- package/dist/BaseAccordionBtn.js +4 -0
- package/dist/BaseAccordionContent.js +4 -0
- package/dist/BaseAccordionItem.js +4 -0
- package/dist/BaseAlert.js +4 -0
- package/dist/BaseAutocomplete.js +4 -0
- package/dist/BaseBadge.js +4 -0
- package/dist/BaseBreadcrumb.js +4 -0
- package/dist/BaseButton.js +4 -0
- package/dist/BaseCard.js +38 -0
- package/dist/BaseComplexToggle.js +107 -0
- package/dist/BaseDropDown.js +4 -0
- package/dist/BaseFloatingLabel.js +41 -0
- package/dist/BaseIcon.js +28 -0
- package/dist/BaseInput.js +212 -0
- package/dist/BaseModal.js +4 -0
- package/dist/BasePagination.js +4 -0
- package/dist/BasePaper.js +14 -0
- package/dist/BaseShimmerLoader.js +22 -0
- package/dist/{UIKit/BaseSlider.vue.js → BaseSlider.js} +52 -49
- package/dist/BaseSnackbar.js +82 -0
- package/dist/BaseTab.js +4 -0
- package/dist/BaseTabList.js +4 -0
- package/dist/BaseTabPanel.js +4 -0
- package/dist/BaseTabView.js +4 -0
- package/dist/BaseTextarea.js +128 -0
- package/dist/BaseToggle.js +43 -0
- package/dist/BaseTooltip.js +42 -0
- package/dist/BaseUploadFile.js +4 -0
- package/dist/CheckboxBtn.js +76 -0
- package/dist/CheckboxGroup.js +4 -0
- package/dist/DoughnutChart.js +4 -0
- package/dist/IntersectionObservable.js +4 -0
- package/dist/IntersectionObserver.js +4 -0
- package/dist/LineChart.js +4 -0
- package/dist/RadioButton.js +4 -0
- package/dist/RadioGroup.js +4 -0
- package/dist/SelectItem.js +4 -0
- package/dist/ShimmerMultiLine.js +4 -0
- package/dist/{UIKit/Slider/SimpleSlider.vue.js → SimpleSlider.js} +30 -29
- package/dist/StaticSpinner.js +28 -0
- package/dist/SwiperCarousel.js +5 -0
- package/dist/{components/carousel/SwiperSlide.js → SwiperSlide.js} +3 -3
- package/dist/UIKit/AccessibleSelect.vue.d.ts +55 -0
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +32 -0
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +34 -0
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +30 -0
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +60 -0
- package/dist/UIKit/BaseAlert.vue.d.ts +26 -0
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +48 -0
- package/dist/UIKit/BaseBadge.vue.d.ts +22 -0
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +35 -0
- package/dist/UIKit/BaseButton.vue.d.ts +46 -0
- package/dist/UIKit/BaseCard.vue.d.ts +29 -0
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +47 -0
- package/dist/UIKit/BaseDropDown.vue.d.ts +81 -0
- package/dist/UIKit/BaseFloatingLabel.vue.d.ts +17 -0
- package/dist/UIKit/BaseIcon.vue.d.ts +11 -0
- package/dist/UIKit/BaseInput.vue.d.ts +68 -0
- package/dist/UIKit/BaseModal.vue.d.ts +63 -0
- package/dist/UIKit/{BasePagination.d.ts → BasePagination.vue.d.ts} +5 -13
- package/dist/UIKit/BasePaper.vue.d.ts +2 -0
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +38 -0
- package/dist/UIKit/{BaseSlider.d.ts → BaseSlider.vue.d.ts} +7 -6
- package/dist/UIKit/BaseSnackbar.vue.d.ts +24 -0
- package/dist/UIKit/{BaseTextarea.d.ts → BaseTextarea.vue.d.ts} +10 -10
- package/dist/UIKit/BaseToggle.vue.d.ts +32 -0
- package/dist/UIKit/BaseTooltip.vue.d.ts +38 -0
- package/dist/UIKit/BaseUploadFile.vue.d.ts +42 -0
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +53 -0
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +71 -0
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +27 -0
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +54 -0
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +21 -0
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +63 -0
- package/dist/UIKit/Slider/{SimpleSlider.d.ts → SimpleSlider.vue.d.ts} +6 -6
- package/dist/UIKit/StaticSpinner.vue.d.ts +6 -0
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +23 -0
- package/dist/UIKit/Tab/BaseTabList.vue.d.ts +14 -0
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +24 -0
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +27 -0
- package/dist/UIKit/types.d.ts +52 -10
- package/dist/assets/BaseAlert.css +1 -0
- package/dist/assets/BaseBadge.css +1 -1
- package/dist/assets/BaseCard.css +1 -0
- package/dist/assets/BaseComplexToggle.css +1 -0
- package/dist/assets/BaseFloatingLabel.css +1 -0
- package/dist/assets/BaseIcon.css +1 -0
- package/dist/assets/BaseInput.css +1 -0
- package/dist/assets/BaseModal.css +1 -0
- package/dist/assets/BasePaper.css +1 -0
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/BaseSlider.css +1 -0
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/assets/BaseTextarea.css +1 -0
- package/dist/assets/BaseToggle.css +1 -0
- package/dist/assets/BaseTooltip.css +1 -0
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/assets/SimpleSlider.css +1 -1
- package/dist/assets/StaticSpinner.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -0
- package/dist/chart/DoughnutChart.vue.d.ts +7 -0
- package/dist/chart/LineChart.vue.d.ts +19 -0
- package/dist/chart/composables/useChartjsModules.d.ts +10 -0
- package/dist/chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.QU1FSgY0.js +246 -0
- package/dist/chunks/ArrowIcon.Bq6Xr3uH.js +28 -0
- package/dist/chunks/BaseAccordion.vue_vue_type_script_setup_true_lang.C34SZThb.js +32 -0
- package/dist/chunks/BaseAccordionBtn.vue_vue_type_script_setup_true_lang.DEk3SXLJ.js +60 -0
- package/dist/chunks/BaseAccordionContent.vue_vue_type_script_setup_true_lang.Qp_TWYFE.js +34 -0
- package/dist/chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.BJB5DnDs.js +143 -0
- package/dist/chunks/BaseAlert.vue_vue_type_style_index_0_lang.DUWb9d9_.js +19 -0
- package/dist/chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.S_XFg2zV.js +202 -0
- package/dist/chunks/BaseBadge.vue_vue_type_style_index_0_lang.DvAI34Oa.js +19 -0
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BrzeVW2_.js +58 -0
- package/dist/chunks/BaseButton.vue_vue_type_script_setup_true_lang.DHwyd5Gb.js +66 -0
- package/dist/chunks/BaseDropDown.vue_vue_type_script_setup_true_lang.OKB0gEpo.js +137 -0
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.a2qGyPhV.js +150 -0
- package/dist/chunks/BasePagination.vue_vue_type_script_setup_true_lang.DdFMVFIO.js +164 -0
- package/dist/{UIKit/Tab/BaseTab.vue.js → chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js} +3 -3
- package/dist/chunks/BaseTabList.vue_vue_type_script_setup_true_lang.CxrS-Vq6.js +43 -0
- package/dist/chunks/BaseTabPanel.vue_vue_type_script_setup_true_lang.CVJUssBq.js +24 -0
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DGTsSVEG.js +105 -0
- package/dist/chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.BL98w2D8.js +71 -0
- package/dist/chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.B_9CFhd2.js +111 -0
- package/dist/chunks/CloseIcon.BZ4U3aiI.js +38 -0
- package/dist/chunks/DoughnutChart.vue_vue_type_script_setup_true_lang.B8wxbJBV.js +27 -0
- package/dist/chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.DC17cx-h.js +24 -0
- package/dist/chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.BKewKDXG.js +52 -0
- package/dist/chunks/LineChart.vue_vue_type_script_setup_true_lang.CXNsFiyD.js +42 -0
- package/dist/chunks/ObjectUtils.DwkJjVq1.js +10 -0
- package/dist/chunks/PharmacyIcon.DEQ8mOEJ.js +11 -0
- package/dist/chunks/RadioButton.vue_vue_type_script_setup_true_lang.CxVJji0G.js +58 -0
- package/dist/chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BNKSEicl.js +62 -0
- package/dist/chunks/SelectItem.vue_vue_type_script_setup_true_lang.jB3LVM3c.js +41 -0
- package/dist/chunks/ShimmerMultiLine.vue_vue_type_script_setup_true_lang.CPUobRgG.js +29 -0
- package/dist/chunks/SwiperCarousel.BheiaKKw.js +748 -0
- package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +9 -0
- package/dist/chunks/index.BJP9rQkU.js +887 -0
- package/dist/chunks/polyline.DjpLdMaW.js +5256 -0
- package/dist/chunks/useBreakpoints.BXk8Xcw3.js +5189 -0
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +29 -0
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +57 -0
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +57 -0
- package/dist/components/carousel/SwiperSlide.vue.d.ts +17 -0
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/index.d.ts +45 -67
- package/dist/index.js +85 -149
- package/dist/useChartjsModules.js +48 -0
- package/dist/utils.js +3 -3
- package/package.json +39 -69
- package/dist/UIKit/AccessibleSelect.d.ts +0 -64
- package/dist/UIKit/AccessibleSelect.js +0 -5
- package/dist/UIKit/AccessibleSelect.vue.js +0 -206
- package/dist/UIKit/Accordion/AccordionContentPrimitive.d.ts +0 -15
- package/dist/UIKit/Accordion/AccordionContentPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionContentPrimitive.vue.js +0 -22
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.d.ts +0 -12
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionHeaderPrimitive.vue.js +0 -21
- package/dist/UIKit/Accordion/AccordionItemPrimitive.d.ts +0 -14
- package/dist/UIKit/Accordion/AccordionItemPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionItemPrimitive.vue.js +0 -24
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.d.ts +0 -14
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.js +0 -4
- package/dist/UIKit/Accordion/AccordionTriggerPrimitive.vue.js +0 -22
- package/dist/UIKit/Accordion/BaseAccordion.d.ts +0 -38
- package/dist/UIKit/Accordion/BaseAccordion.js +0 -4
- package/dist/UIKit/Accordion/BaseAccordion.vue.js +0 -37
- package/dist/UIKit/Accordion/BaseAccordionItem.d.ts +0 -33
- package/dist/UIKit/Accordion/BaseAccordionItem.js +0 -5
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.js +0 -82
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +0 -75
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.js +0 -5
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.vue.js +0 -227
- package/dist/UIKit/BaseAlert.d.ts +0 -22
- package/dist/UIKit/BaseAlert.js +0 -5
- package/dist/UIKit/BaseAlert.vue.js +0 -19
- package/dist/UIKit/BaseAutocomplete.d.ts +0 -62
- package/dist/UIKit/BaseAutocomplete.js +0 -5
- package/dist/UIKit/BaseAutocomplete.vue.js +0 -195
- package/dist/UIKit/BaseBadge.d.ts +0 -18
- package/dist/UIKit/BaseBadge.js +0 -5
- package/dist/UIKit/BaseBadge.vue.js +0 -18
- package/dist/UIKit/BaseBreadcrumb.d.ts +0 -32
- package/dist/UIKit/BaseBreadcrumb.js +0 -4
- package/dist/UIKit/BaseBreadcrumb.vue.js +0 -57
- package/dist/UIKit/BaseButton.d.ts +0 -75
- package/dist/UIKit/BaseButton.js +0 -4
- package/dist/UIKit/BaseButton.vue.js +0 -88
- package/dist/UIKit/BaseComplexToggle.d.ts +0 -54
- package/dist/UIKit/BaseComplexToggle.js +0 -7
- package/dist/UIKit/BaseComplexToggle.vue.js +0 -106
- package/dist/UIKit/BaseDropDown.d.ts +0 -88
- package/dist/UIKit/BaseDropDown.js +0 -5
- package/dist/UIKit/BaseDropDown.vue.js +0 -152
- package/dist/UIKit/BaseFloatingLabel.d.ts +0 -24
- package/dist/UIKit/BaseFloatingLabel.js +0 -7
- package/dist/UIKit/BaseFloatingLabel.vue.js +0 -40
- package/dist/UIKit/BaseInput.d.ts +0 -63
- package/dist/UIKit/BaseInput.js +0 -7
- package/dist/UIKit/BaseInput.vue.js +0 -211
- package/dist/UIKit/BaseModal.d.ts +0 -65
- package/dist/UIKit/BaseModal.js +0 -5
- package/dist/UIKit/BaseModal.vue.js +0 -170
- package/dist/UIKit/BasePagination.js +0 -4
- package/dist/UIKit/BasePagination.vue.js +0 -230
- package/dist/UIKit/BaseSelect/SelectItem.d.ts +0 -30
- package/dist/UIKit/BaseSelect/SelectItem.js +0 -4
- package/dist/UIKit/BaseSelect/SelectItem.vue.js +0 -42
- package/dist/UIKit/BaseSlider.js +0 -7
- package/dist/UIKit/BaseSnackbar.d.ts +0 -64
- package/dist/UIKit/BaseSnackbar.js +0 -5
- package/dist/UIKit/BaseSnackbar.vue.js +0 -147
- package/dist/UIKit/BaseTextarea.js +0 -7
- package/dist/UIKit/BaseTextarea.vue.js +0 -127
- package/dist/UIKit/BaseToggle.d.ts +0 -28
- package/dist/UIKit/BaseToggle.js +0 -4
- package/dist/UIKit/BaseToggle.vue.js +0 -39
- package/dist/UIKit/BaseTooltip.d.ts +0 -35
- package/dist/UIKit/BaseTooltip.js +0 -7
- package/dist/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/UIKit/BaseUploadFile.d.ts +0 -38
- package/dist/UIKit/BaseUploadFile.js +0 -4
- package/dist/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/UIKit/Card/BaseCard.d.ts +0 -25
- package/dist/UIKit/Card/BaseCard.js +0 -5
- package/dist/UIKit/Card/BaseCard.vue.js +0 -37
- package/dist/UIKit/Card/CardDescriptionPrimitive.d.ts +0 -13
- package/dist/UIKit/Card/CardDescriptionPrimitive.js +0 -12
- package/dist/UIKit/Card/CardImagePrimitive.d.ts +0 -13
- package/dist/UIKit/Card/CardImagePrimitive.js +0 -4
- package/dist/UIKit/Card/CardImagePrimitive.vue.js +0 -16
- package/dist/UIKit/Card/CardRootPrimitive.d.ts +0 -20
- package/dist/UIKit/Card/CardRootPrimitive.js +0 -5
- package/dist/UIKit/Card/CardRootPrimitive.vue.js +0 -27
- package/dist/UIKit/Card/type.d.ts +0 -3
- package/dist/UIKit/Card/type.js +0 -4
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +0 -52
- package/dist/UIKit/Checkbox/CheckboxBtn.js +0 -5
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.js +0 -82
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +0 -74
- package/dist/UIKit/Checkbox/CheckboxGroup.js +0 -4
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.js +0 -117
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +0 -41
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +0 -78
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.d.ts +0 -31
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupItemPrimitive.vue.js +0 -35
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.d.ts +0 -26
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.js +0 -4
- package/dist/UIKit/Checkbox/v2/CheckboxGroupPrimitive.vue.js +0 -35
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.d.ts +0 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.js +0 -4
- package/dist/UIKit/ProgressBar/ProgressIndicatorPrimitive.vue.js +0 -16
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.d.ts +0 -25
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.js +0 -4
- package/dist/UIKit/ProgressBar/ProgressRootPrimitive.vue.js +0 -32
- package/dist/UIKit/Radio/RadioButton.d.ts +0 -38
- package/dist/UIKit/Radio/RadioButton.js +0 -4
- package/dist/UIKit/Radio/RadioButton.vue.js +0 -60
- package/dist/UIKit/Radio/RadioGroup.d.ts +0 -64
- package/dist/UIKit/Radio/RadioGroup.js +0 -4
- package/dist/UIKit/Radio/RadioGroup.vue.js +0 -64
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -38
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -48
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -17
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
- package/dist/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -45
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.d.ts +0 -22
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.js +0 -4
- package/dist/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js +0 -31
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +0 -15
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +0 -7
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +0 -20
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +0 -11
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +0 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +0 -31
- package/dist/UIKit/Slider/SimpleSlider.js +0 -7
- package/dist/UIKit/StaticSpinner.d.ts +0 -7
- package/dist/UIKit/StaticSpinner.js +0 -7
- package/dist/UIKit/StaticSpinner.vue.js +0 -27
- package/dist/UIKit/Tab/BaseTab.d.ts +0 -19
- package/dist/UIKit/Tab/BaseTab.js +0 -4
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -14
- package/dist/UIKit/Tab/BaseTabList.js +0 -4
- package/dist/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/UIKit/Tab/BaseTabPanel.d.ts +0 -20
- package/dist/UIKit/Tab/BaseTabPanel.js +0 -4
- package/dist/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/UIKit/Tab/BaseTabView.d.ts +0 -49
- package/dist/UIKit/Tab/BaseTabView.js +0 -4
- package/dist/UIKit/Tab/BaseTabView.vue.js +0 -106
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +0 -29
- package/dist/UIKit/Tab/v2/BaseTabs.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabs.vue.js +0 -39
- package/dist/UIKit/Tab/v2/BaseTabsContent.d.ts +0 -14
- package/dist/UIKit/Tab/v2/BaseTabsContent.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsContent.vue.js +0 -24
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.d.ts +0 -16
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.js +0 -5
- package/dist/UIKit/Tab/v2/BaseTabsIndicator.vue.js +0 -34
- package/dist/UIKit/Tab/v2/BaseTabsList.d.ts +0 -14
- package/dist/UIKit/Tab/v2/BaseTabsList.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsList.vue.js +0 -23
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.d.ts +0 -25
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.js +0 -4
- package/dist/UIKit/Tab/v2/BaseTabsTrigger.vue.js +0 -31
- package/dist/UIKit/types.js +0 -1
- package/dist/_virtual/_plugin-vue_export-helper.js +0 -9
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/assets/BaseAccordionItem.css +0 -1
- package/dist/assets/BaseAutocomplete.css +0 -1
- package/dist/assets/BaseComplexToggle2.css +0 -1
- package/dist/assets/BaseDropDown.css +0 -1
- package/dist/assets/BaseFloatingLabel2.css +0 -1
- package/dist/assets/BaseInput2.css +0 -1
- package/dist/assets/BaseSlider2.css +0 -1
- package/dist/assets/BaseTabs.css +0 -1
- package/dist/assets/BaseTabsIndicator.css +0 -1
- package/dist/assets/BaseTextarea2.css +0 -1
- package/dist/assets/BaseTooltip2.css +0 -1
- package/dist/assets/ClearableAutocomplete.css +0 -1
- package/dist/assets/RadioButtonItem.css +0 -1
- package/dist/assets/SwiperRootPrimitive.css +0 -1
- package/dist/assets/SwiperRootPrimitive2.css +0 -1
- package/dist/assets/SwiperSlideImagePrimitive.css +0 -1
- package/dist/assets/baseAlert.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/baseModal.css +0 -1
- package/dist/assets/baseSlider.css +0 -1
- package/dist/assets/baseSpinner.css +0 -1
- package/dist/assets/baseTextarea.css +0 -1
- package/dist/assets/baseTooltip.css +0 -1
- package/dist/assets/swiper-free-mode.css +0 -1
- package/dist/assets/swiper-navigation.css +0 -1
- package/dist/assets/swiper-pagination.css +0 -1
- package/dist/assets/swiper-swiper.css +0 -1
- package/dist/assets/swiper-thumbs.css +0 -0
- package/dist/assets/swiper-zoom.css +0 -1
- package/dist/assets/swiperPaginationBullet.css +0 -1
- package/dist/assets/tailwind.css +0 -1
- package/dist/chart/DoughnutChart.d.ts +0 -8
- package/dist/chart/DoughnutChart.js +0 -4
- package/dist/chart/DoughnutChart.vue.js +0 -26
- package/dist/chart/LineChart.d.ts +0 -11
- package/dist/chart/LineChart.js +0 -4
- package/dist/chart/LineChart.vue.js +0 -30
- package/dist/components/IntersectionObserver/IntersectionObservable.d.ts +0 -22
- package/dist/components/IntersectionObserver/IntersectionObservable.js +0 -4
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- package/dist/components/IntersectionObserver/IntersectionObserver.d.ts +0 -52
- package/dist/components/IntersectionObserver/IntersectionObserver.js +0 -4
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.js +0 -50
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +0 -21
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.js +0 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +0 -39
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +0 -22
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.js +0 -4
- package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +0 -31
- package/dist/components/IntersectionObserver/v2/types.d.ts +0 -4
- package/dist/components/IntersectionObserver/v2/types.js +0 -6
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.d.ts +0 -9
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.js +0 -4
- package/dist/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js +0 -39
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.d.ts +0 -9
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +0 -4
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js +0 -35
- package/dist/components/carousel/Primitive/SwiperPrimitive.d.ts +0 -20
- package/dist/components/carousel/Primitive/SwiperPrimitive.js +0 -4
- package/dist/components/carousel/Primitive/SwiperPrimitive.vue.js +0 -21
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +0 -51
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +0 -11
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.vue.js +0 -113
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +0 -18
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +0 -5
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +0 -40
- package/dist/components/carousel/SwiperCarousel.d.ts +0 -50
- package/dist/components/carousel/SwiperCarousel.js +0 -7
- package/dist/components/carousel/SwiperCarousel.vue.js +0 -232
- package/dist/components/carousel/SwiperSlide.d.ts +0 -13
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- package/dist/lazyModules/ChartJs/Chart.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Chart.js +0 -4
- package/dist/lazyModules/ChartJs/DoughnutChart/core.d.ts +0 -2
- package/dist/lazyModules/ChartJs/DoughnutChart/core.js +0 -6
- package/dist/lazyModules/ChartJs/LineChart/cartesian.d.ts +0 -2
- package/dist/lazyModules/ChartJs/LineChart/cartesian.js +0 -6
- package/dist/lazyModules/ChartJs/LineChart/core.d.ts +0 -2
- package/dist/lazyModules/ChartJs/LineChart/core.js +0 -6
- package/dist/lazyModules/ChartJs/Plugins/Legend.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Legend.js +0 -2
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.d.ts +0 -0
- package/dist/lazyModules/ChartJs/Plugins/TimeScale.js +0 -3
- package/dist/lazyModules/ChartJs/Plugins/Title.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Title.js +0 -2
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.d.ts +0 -1
- package/dist/lazyModules/ChartJs/Plugins/Tooltip.js +0 -2
- package/dist/lazyModules/Swiper/Autoplay/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Autoplay/factory.js +0 -9
- package/dist/lazyModules/Swiper/Autoplay/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Autoplay/index.js +0 -6
- package/dist/lazyModules/Swiper/Controller/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Controller/factory.js +0 -7
- package/dist/lazyModules/Swiper/Controller/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Controller/index.js +0 -6
- package/dist/lazyModules/Swiper/FreeMode/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/FreeMode/factory.js +0 -9
- package/dist/lazyModules/Swiper/FreeMode/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/FreeMode/index.js +0 -6
- package/dist/lazyModules/Swiper/Keyboard/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Keyboard/factory.js +0 -9
- package/dist/lazyModules/Swiper/Keyboard/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Keyboard/index.js +0 -6
- package/dist/lazyModules/Swiper/Navigation/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Navigation/factory.js +0 -9
- package/dist/lazyModules/Swiper/Navigation/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Navigation/index.js +0 -6
- package/dist/lazyModules/Swiper/Pagination/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Pagination/factory.js +0 -7
- package/dist/lazyModules/Swiper/Pagination/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Pagination/index.js +0 -6
- package/dist/lazyModules/Swiper/Thumbs/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Thumbs/factory.js +0 -7
- package/dist/lazyModules/Swiper/Thumbs/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Thumbs/index.js +0 -6
- package/dist/lazyModules/Swiper/Zoom/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/Zoom/factory.js +0 -9
- package/dist/lazyModules/Swiper/Zoom/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/Zoom/index.js +0 -6
- package/dist/lazyModules/Swiper/factory.d.ts +0 -3
- package/dist/lazyModules/Swiper/factory.js +0 -13
- package/dist/lazyModules/Swiper/index.d.ts +0 -1
- package/dist/lazyModules/Swiper/index.js +0 -5
- package/dist/lazyModules/Swiper/swiper-css.d.js +0 -1
- package/dist/lazyModules/Swiper/types.d.ts +0 -5
- package/dist/lazyModules/Swiper/types.js +0 -1
- package/dist/lazyModules/VueChartJs/Doughnut/factory.d.ts +0 -7
- package/dist/lazyModules/VueChartJs/Doughnut/factory.js +0 -12
- package/dist/lazyModules/VueChartJs/Doughnut/index.d.ts +0 -3
- package/dist/lazyModules/VueChartJs/Doughnut/index.js +0 -5
- package/dist/lazyModules/VueChartJs/Line/factory.d.ts +0 -7
- package/dist/lazyModules/VueChartJs/Line/factory.js +0 -14
- package/dist/lazyModules/VueChartJs/Line/index.d.ts +0 -3
- package/dist/lazyModules/VueChartJs/Line/index.js +0 -5
- package/dist/types/index.d.ts +0 -33
- package/dist/types/index.js +0 -1
- /package/dist/{composables/useFloatingLabel.js → useFloatingLabel.js} +0 -0
- /package/dist/{composables/useValidator.js → useValidator.js} +0 -0
|
@@ -0,0 +1,748 @@
|
|
|
1
|
+
import { defineComponent as Oe, reactive as Le, ref as Se, computed as I, onMounted as ke, createElementBlock as T, openBlock as W, normalizeClass as P, createElementVNode as R, createCommentVNode as ie, renderSlot as xe, Fragment as le, renderList as Me, mergeProps as Xe, withModifiers as ue, nextTick as De } from "vue";
|
|
2
|
+
import { Swiper as Ye } from "swiper";
|
|
3
|
+
import "./polyline.DjpLdMaW.js";
|
|
4
|
+
import { l as He } from "./ObjectUtils.DwkJjVq1.js";
|
|
5
|
+
import { _ as Ie } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import '../assets/SwiperCarousel.css';function Ce(r) {
|
|
7
|
+
return r !== null && typeof r == "object" && "constructor" in r && r.constructor === Object;
|
|
8
|
+
}
|
|
9
|
+
function de(r, t) {
|
|
10
|
+
r === void 0 && (r = {}), t === void 0 && (t = {});
|
|
11
|
+
const c = ["__proto__", "constructor", "prototype"];
|
|
12
|
+
Object.keys(t).filter((s) => c.indexOf(s) < 0).forEach((s) => {
|
|
13
|
+
typeof r[s] > "u" ? r[s] = t[s] : Ce(t[s]) && Ce(r[s]) && Object.keys(t[s]).length > 0 && de(r[s], t[s]);
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
const We = {
|
|
17
|
+
body: {},
|
|
18
|
+
addEventListener() {
|
|
19
|
+
},
|
|
20
|
+
removeEventListener() {
|
|
21
|
+
},
|
|
22
|
+
activeElement: {
|
|
23
|
+
blur() {
|
|
24
|
+
},
|
|
25
|
+
nodeName: ""
|
|
26
|
+
},
|
|
27
|
+
querySelector() {
|
|
28
|
+
return null;
|
|
29
|
+
},
|
|
30
|
+
querySelectorAll() {
|
|
31
|
+
return [];
|
|
32
|
+
},
|
|
33
|
+
getElementById() {
|
|
34
|
+
return null;
|
|
35
|
+
},
|
|
36
|
+
createEvent() {
|
|
37
|
+
return {
|
|
38
|
+
initEvent() {
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
createElement() {
|
|
43
|
+
return {
|
|
44
|
+
children: [],
|
|
45
|
+
childNodes: [],
|
|
46
|
+
style: {},
|
|
47
|
+
setAttribute() {
|
|
48
|
+
},
|
|
49
|
+
getElementsByTagName() {
|
|
50
|
+
return [];
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
createElementNS() {
|
|
55
|
+
return {};
|
|
56
|
+
},
|
|
57
|
+
importNode() {
|
|
58
|
+
return null;
|
|
59
|
+
},
|
|
60
|
+
location: {
|
|
61
|
+
hash: "",
|
|
62
|
+
host: "",
|
|
63
|
+
hostname: "",
|
|
64
|
+
href: "",
|
|
65
|
+
origin: "",
|
|
66
|
+
pathname: "",
|
|
67
|
+
protocol: "",
|
|
68
|
+
search: ""
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
function Re() {
|
|
72
|
+
const r = typeof document < "u" ? document : {};
|
|
73
|
+
return de(r, We), r;
|
|
74
|
+
}
|
|
75
|
+
const Ae = {
|
|
76
|
+
document: We,
|
|
77
|
+
navigator: {
|
|
78
|
+
userAgent: ""
|
|
79
|
+
},
|
|
80
|
+
location: {
|
|
81
|
+
hash: "",
|
|
82
|
+
host: "",
|
|
83
|
+
hostname: "",
|
|
84
|
+
href: "",
|
|
85
|
+
origin: "",
|
|
86
|
+
pathname: "",
|
|
87
|
+
protocol: "",
|
|
88
|
+
search: ""
|
|
89
|
+
},
|
|
90
|
+
history: {
|
|
91
|
+
replaceState() {
|
|
92
|
+
},
|
|
93
|
+
pushState() {
|
|
94
|
+
},
|
|
95
|
+
go() {
|
|
96
|
+
},
|
|
97
|
+
back() {
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
CustomEvent: function() {
|
|
101
|
+
return this;
|
|
102
|
+
},
|
|
103
|
+
addEventListener() {
|
|
104
|
+
},
|
|
105
|
+
removeEventListener() {
|
|
106
|
+
},
|
|
107
|
+
getComputedStyle() {
|
|
108
|
+
return {
|
|
109
|
+
getPropertyValue() {
|
|
110
|
+
return "";
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
},
|
|
114
|
+
Image() {
|
|
115
|
+
},
|
|
116
|
+
Date() {
|
|
117
|
+
},
|
|
118
|
+
screen: {},
|
|
119
|
+
setTimeout() {
|
|
120
|
+
},
|
|
121
|
+
clearTimeout() {
|
|
122
|
+
},
|
|
123
|
+
matchMedia() {
|
|
124
|
+
return {};
|
|
125
|
+
},
|
|
126
|
+
requestAnimationFrame(r) {
|
|
127
|
+
return typeof setTimeout > "u" ? (r(), null) : setTimeout(r, 0);
|
|
128
|
+
},
|
|
129
|
+
cancelAnimationFrame(r) {
|
|
130
|
+
typeof setTimeout > "u" || clearTimeout(r);
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
function B() {
|
|
134
|
+
const r = typeof window < "u" ? window : {};
|
|
135
|
+
return de(r, Ae), r;
|
|
136
|
+
}
|
|
137
|
+
function Fe(r) {
|
|
138
|
+
return r === void 0 && (r = ""), r.trim().split(" ").filter((t) => !!t.trim());
|
|
139
|
+
}
|
|
140
|
+
function tt(r, t) {
|
|
141
|
+
return t === void 0 && (t = 0), setTimeout(r, t);
|
|
142
|
+
}
|
|
143
|
+
function it() {
|
|
144
|
+
return Date.now();
|
|
145
|
+
}
|
|
146
|
+
function je(r) {
|
|
147
|
+
const t = B();
|
|
148
|
+
let c;
|
|
149
|
+
return t.getComputedStyle && (c = t.getComputedStyle(r, null)), !c && r.currentStyle && (c = r.currentStyle), c || (c = r.style), c;
|
|
150
|
+
}
|
|
151
|
+
function ze(r, t) {
|
|
152
|
+
t === void 0 && (t = "x");
|
|
153
|
+
const c = B();
|
|
154
|
+
let s, h, d;
|
|
155
|
+
const f = je(r);
|
|
156
|
+
return c.WebKitCSSMatrix ? (h = f.transform || f.webkitTransform, h.split(",").length > 6 && (h = h.split(", ").map((x) => x.replace(",", ".")).join(", ")), d = new c.WebKitCSSMatrix(h === "none" ? "" : h)) : (d = f.MozTransform || f.OTransform || f.MsTransform || f.msTransform || f.transform || f.getPropertyValue("transform").replace("translate(", "matrix(1, 0, 0, 1,"), s = d.toString().split(",")), t === "x" && (c.WebKitCSSMatrix ? h = d.m41 : s.length === 16 ? h = parseFloat(s[12]) : h = parseFloat(s[4])), t === "y" && (c.WebKitCSSMatrix ? h = d.m42 : s.length === 16 ? h = parseFloat(s[13]) : h = parseFloat(s[5])), h || 0;
|
|
157
|
+
}
|
|
158
|
+
function nt(r) {
|
|
159
|
+
return typeof r == "object" && r !== null && r.constructor && Object.prototype.toString.call(r).slice(8, -1) === "Object";
|
|
160
|
+
}
|
|
161
|
+
function $e(r, t) {
|
|
162
|
+
t === void 0 && (t = "");
|
|
163
|
+
const c = B(), s = [...r.children];
|
|
164
|
+
return c.HTMLSlotElement && r instanceof HTMLSlotElement && s.push(...r.assignedElements()), t ? s.filter((h) => h.matches(t)) : s;
|
|
165
|
+
}
|
|
166
|
+
function rt(r, t) {
|
|
167
|
+
t === void 0 && (t = []);
|
|
168
|
+
const c = document.createElement(r);
|
|
169
|
+
return c.classList.add(...Array.isArray(t) ? t : Fe(t)), c;
|
|
170
|
+
}
|
|
171
|
+
function Te(r) {
|
|
172
|
+
const t = B(), c = Re(), s = r.getBoundingClientRect(), h = c.body, d = r.clientTop || h.clientTop || 0, f = r.clientLeft || h.clientLeft || 0, x = r === t ? t.scrollY : r.scrollTop, O = r === t ? t.scrollX : r.scrollLeft;
|
|
173
|
+
return {
|
|
174
|
+
top: s.top + x - d,
|
|
175
|
+
left: s.left + O - f
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
function st(r) {
|
|
179
|
+
let t = r, c;
|
|
180
|
+
if (t) {
|
|
181
|
+
for (c = 0; (t = t.previousSibling) !== null; )
|
|
182
|
+
t.nodeType === 1 && (c += 1);
|
|
183
|
+
return c;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
function ce(r, t) {
|
|
187
|
+
const c = [];
|
|
188
|
+
let s = r.parentElement;
|
|
189
|
+
for (; s; )
|
|
190
|
+
t ? s.matches(t) && c.push(s) : c.push(s), s = s.parentElement;
|
|
191
|
+
return c;
|
|
192
|
+
}
|
|
193
|
+
function at(r, t) {
|
|
194
|
+
function c(s) {
|
|
195
|
+
s.target === r && (t.call(r, s), r.removeEventListener("transitionend", c));
|
|
196
|
+
}
|
|
197
|
+
t && r.addEventListener("transitionend", c);
|
|
198
|
+
}
|
|
199
|
+
function ot(r, t, c) {
|
|
200
|
+
const s = B();
|
|
201
|
+
return r[t === "width" ? "offsetWidth" : "offsetHeight"] + parseFloat(s.getComputedStyle(r, null).getPropertyValue(t === "width" ? "margin-right" : "margin-top")) + parseFloat(s.getComputedStyle(r, null).getPropertyValue(t === "width" ? "margin-left" : "margin-bottom"));
|
|
202
|
+
}
|
|
203
|
+
function lt(r) {
|
|
204
|
+
return (Array.isArray(r) ? r : [r]).filter((t) => !!t);
|
|
205
|
+
}
|
|
206
|
+
function qe(r) {
|
|
207
|
+
let {
|
|
208
|
+
swiper: t,
|
|
209
|
+
extendParams: c,
|
|
210
|
+
on: s,
|
|
211
|
+
emit: h
|
|
212
|
+
} = r;
|
|
213
|
+
const d = B();
|
|
214
|
+
c({
|
|
215
|
+
zoom: {
|
|
216
|
+
enabled: !1,
|
|
217
|
+
limitToOriginalSize: !1,
|
|
218
|
+
maxRatio: 3,
|
|
219
|
+
minRatio: 1,
|
|
220
|
+
panOnMouseMove: !1,
|
|
221
|
+
toggle: !0,
|
|
222
|
+
containerClass: "swiper-zoom-container",
|
|
223
|
+
zoomedSlideClass: "swiper-slide-zoomed"
|
|
224
|
+
}
|
|
225
|
+
}), t.zoom = {
|
|
226
|
+
enabled: !1
|
|
227
|
+
};
|
|
228
|
+
let f = 1, x = !1, O = !1, z = {
|
|
229
|
+
x: 0,
|
|
230
|
+
y: 0
|
|
231
|
+
};
|
|
232
|
+
const V = -3;
|
|
233
|
+
let H, A;
|
|
234
|
+
const p = [], i = {
|
|
235
|
+
originX: 0,
|
|
236
|
+
originY: 0,
|
|
237
|
+
slideEl: void 0,
|
|
238
|
+
slideWidth: void 0,
|
|
239
|
+
slideHeight: void 0,
|
|
240
|
+
imageEl: void 0,
|
|
241
|
+
imageWrapEl: void 0,
|
|
242
|
+
maxRatio: 3
|
|
243
|
+
}, e = {
|
|
244
|
+
isTouched: void 0,
|
|
245
|
+
isMoved: void 0,
|
|
246
|
+
currentX: void 0,
|
|
247
|
+
currentY: void 0,
|
|
248
|
+
minX: void 0,
|
|
249
|
+
minY: void 0,
|
|
250
|
+
maxX: void 0,
|
|
251
|
+
maxY: void 0,
|
|
252
|
+
width: void 0,
|
|
253
|
+
height: void 0,
|
|
254
|
+
startX: void 0,
|
|
255
|
+
startY: void 0,
|
|
256
|
+
touchesStart: {},
|
|
257
|
+
touchesCurrent: {}
|
|
258
|
+
}, m = {
|
|
259
|
+
x: void 0,
|
|
260
|
+
y: void 0,
|
|
261
|
+
prevPositionX: void 0,
|
|
262
|
+
prevPositionY: void 0,
|
|
263
|
+
prevTime: void 0
|
|
264
|
+
};
|
|
265
|
+
let N = 1;
|
|
266
|
+
Object.defineProperty(t.zoom, "scale", {
|
|
267
|
+
get() {
|
|
268
|
+
return N;
|
|
269
|
+
},
|
|
270
|
+
set(n) {
|
|
271
|
+
if (N !== n) {
|
|
272
|
+
const o = i.imageEl, a = i.slideEl;
|
|
273
|
+
h("zoomChange", n, o, a);
|
|
274
|
+
}
|
|
275
|
+
N = n;
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
function _() {
|
|
279
|
+
if (p.length < 2) return 1;
|
|
280
|
+
const n = p[0].pageX, o = p[0].pageY, a = p[1].pageX, g = p[1].pageY;
|
|
281
|
+
return Math.sqrt((a - n) ** 2 + (g - o) ** 2);
|
|
282
|
+
}
|
|
283
|
+
function Z() {
|
|
284
|
+
const n = t.params.zoom, o = i.imageWrapEl.getAttribute("data-swiper-zoom") || n.maxRatio;
|
|
285
|
+
if (n.limitToOriginalSize && i.imageEl && i.imageEl.naturalWidth) {
|
|
286
|
+
const a = i.imageEl.naturalWidth / i.imageEl.offsetWidth;
|
|
287
|
+
return Math.min(a, o);
|
|
288
|
+
}
|
|
289
|
+
return o;
|
|
290
|
+
}
|
|
291
|
+
function l() {
|
|
292
|
+
if (p.length < 2) return {
|
|
293
|
+
x: null,
|
|
294
|
+
y: null
|
|
295
|
+
};
|
|
296
|
+
const n = i.imageEl.getBoundingClientRect();
|
|
297
|
+
return [(p[0].pageX + (p[1].pageX - p[0].pageX) / 2 - n.x - d.scrollX) / f, (p[0].pageY + (p[1].pageY - p[0].pageY) / 2 - n.y - d.scrollY) / f];
|
|
298
|
+
}
|
|
299
|
+
function v() {
|
|
300
|
+
return t.isElement ? "swiper-slide" : `.${t.params.slideClass}`;
|
|
301
|
+
}
|
|
302
|
+
function u(n) {
|
|
303
|
+
const o = v();
|
|
304
|
+
return !!(n.target.matches(o) || t.slides.filter((a) => a.contains(n.target)).length > 0);
|
|
305
|
+
}
|
|
306
|
+
function E(n) {
|
|
307
|
+
const o = `.${t.params.zoom.containerClass}`;
|
|
308
|
+
return !!(n.target.matches(o) || [...t.hostEl.querySelectorAll(o)].filter((a) => a.contains(n.target)).length > 0);
|
|
309
|
+
}
|
|
310
|
+
function b(n) {
|
|
311
|
+
if (n.pointerType === "mouse" && p.splice(0, p.length), !u(n)) return;
|
|
312
|
+
const o = t.params.zoom;
|
|
313
|
+
if (H = !1, A = !1, p.push(n), !(p.length < 2)) {
|
|
314
|
+
if (H = !0, i.scaleStart = _(), !i.slideEl) {
|
|
315
|
+
i.slideEl = n.target.closest(`.${t.params.slideClass}, swiper-slide`), i.slideEl || (i.slideEl = t.slides[t.activeIndex]);
|
|
316
|
+
let a = i.slideEl.querySelector(`.${o.containerClass}`);
|
|
317
|
+
if (a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = a, a ? i.imageWrapEl = ce(i.imageEl, `.${o.containerClass}`)[0] : i.imageWrapEl = void 0, !i.imageWrapEl) {
|
|
318
|
+
i.imageEl = void 0;
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
i.maxRatio = Z();
|
|
322
|
+
}
|
|
323
|
+
if (i.imageEl) {
|
|
324
|
+
const [a, g] = l();
|
|
325
|
+
i.originX = a, i.originY = g, i.imageEl.style.transitionDuration = "0ms";
|
|
326
|
+
}
|
|
327
|
+
x = !0;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
function J(n) {
|
|
331
|
+
if (!u(n)) return;
|
|
332
|
+
const o = t.params.zoom, a = t.zoom, g = p.findIndex((w) => w.pointerId === n.pointerId);
|
|
333
|
+
g >= 0 && (p[g] = n), !(p.length < 2) && (A = !0, i.scaleMove = _(), i.imageEl && (a.scale = i.scaleMove / i.scaleStart * f, a.scale > i.maxRatio && (a.scale = i.maxRatio - 1 + (a.scale - i.maxRatio + 1) ** 0.5), a.scale < o.minRatio && (a.scale = o.minRatio + 1 - (o.minRatio - a.scale + 1) ** 0.5), i.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`));
|
|
334
|
+
}
|
|
335
|
+
function Q(n) {
|
|
336
|
+
if (!u(n) || n.pointerType === "mouse" && n.type === "pointerout") return;
|
|
337
|
+
const o = t.params.zoom, a = t.zoom, g = p.findIndex((w) => w.pointerId === n.pointerId);
|
|
338
|
+
g >= 0 && p.splice(g, 1), !(!H || !A) && (H = !1, A = !1, i.imageEl && (a.scale = Math.max(Math.min(a.scale, i.maxRatio), o.minRatio), i.imageEl.style.transitionDuration = `${t.params.speed}ms`, i.imageEl.style.transform = `translate3d(0,0,0) scale(${a.scale})`, f = a.scale, x = !1, a.scale > 1 && i.slideEl ? i.slideEl.classList.add(`${o.zoomedSlideClass}`) : a.scale <= 1 && i.slideEl && i.slideEl.classList.remove(`${o.zoomedSlideClass}`), a.scale === 1 && (i.originX = 0, i.originY = 0, i.slideEl = void 0)));
|
|
339
|
+
}
|
|
340
|
+
let S;
|
|
341
|
+
function M() {
|
|
342
|
+
t.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
343
|
+
}
|
|
344
|
+
function Y() {
|
|
345
|
+
clearTimeout(S), t.touchEventsData.preventTouchMoveFromPointerMove = !0, S = setTimeout(() => {
|
|
346
|
+
t.destroyed || M();
|
|
347
|
+
});
|
|
348
|
+
}
|
|
349
|
+
function C(n) {
|
|
350
|
+
const o = t.device;
|
|
351
|
+
if (!i.imageEl || e.isTouched) return;
|
|
352
|
+
o.android && n.cancelable && n.preventDefault(), e.isTouched = !0;
|
|
353
|
+
const a = p.length > 0 ? p[0] : n;
|
|
354
|
+
e.touchesStart.x = a.pageX, e.touchesStart.y = a.pageY;
|
|
355
|
+
}
|
|
356
|
+
function me(n) {
|
|
357
|
+
const a = n.pointerType === "mouse" && t.params.zoom.panOnMouseMove;
|
|
358
|
+
if (!u(n) || !E(n))
|
|
359
|
+
return;
|
|
360
|
+
const g = t.zoom;
|
|
361
|
+
if (!i.imageEl)
|
|
362
|
+
return;
|
|
363
|
+
if (!e.isTouched || !i.slideEl) {
|
|
364
|
+
a && fe(n);
|
|
365
|
+
return;
|
|
366
|
+
}
|
|
367
|
+
if (a) {
|
|
368
|
+
fe(n);
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
e.isMoved || (e.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, e.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, e.startX = ze(i.imageWrapEl, "x") || 0, e.startY = ze(i.imageWrapEl, "y") || 0, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight, i.imageWrapEl.style.transitionDuration = "0ms");
|
|
372
|
+
const w = e.width * g.scale, L = e.height * g.scale;
|
|
373
|
+
if (e.minX = Math.min(i.slideWidth / 2 - w / 2, 0), e.maxX = -e.minX, e.minY = Math.min(i.slideHeight / 2 - L / 2, 0), e.maxY = -e.minY, e.touchesCurrent.x = p.length > 0 ? p[0].pageX : n.pageX, e.touchesCurrent.y = p.length > 0 ? p[0].pageY : n.pageY, Math.max(Math.abs(e.touchesCurrent.x - e.touchesStart.x), Math.abs(e.touchesCurrent.y - e.touchesStart.y)) > 5 && (t.allowClick = !1), !e.isMoved && !x) {
|
|
374
|
+
if (t.isHorizontal() && (Math.floor(e.minX) === Math.floor(e.startX) && e.touchesCurrent.x < e.touchesStart.x || Math.floor(e.maxX) === Math.floor(e.startX) && e.touchesCurrent.x > e.touchesStart.x)) {
|
|
375
|
+
e.isTouched = !1, M();
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
if (!t.isHorizontal() && (Math.floor(e.minY) === Math.floor(e.startY) && e.touchesCurrent.y < e.touchesStart.y || Math.floor(e.maxY) === Math.floor(e.startY) && e.touchesCurrent.y > e.touchesStart.y)) {
|
|
379
|
+
e.isTouched = !1, M();
|
|
380
|
+
return;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
n.cancelable && n.preventDefault(), n.stopPropagation(), Y(), e.isMoved = !0;
|
|
384
|
+
const $ = (g.scale - f) / (i.maxRatio - t.params.zoom.minRatio), {
|
|
385
|
+
originX: D,
|
|
386
|
+
originY: y
|
|
387
|
+
} = i;
|
|
388
|
+
e.currentX = e.touchesCurrent.x - e.touchesStart.x + e.startX + $ * (e.width - D * 2), e.currentY = e.touchesCurrent.y - e.touchesStart.y + e.startY + $ * (e.height - y * 2), e.currentX < e.minX && (e.currentX = e.minX + 1 - (e.minX - e.currentX + 1) ** 0.8), e.currentX > e.maxX && (e.currentX = e.maxX - 1 + (e.currentX - e.maxX + 1) ** 0.8), e.currentY < e.minY && (e.currentY = e.minY + 1 - (e.minY - e.currentY + 1) ** 0.8), e.currentY > e.maxY && (e.currentY = e.maxY - 1 + (e.currentY - e.maxY + 1) ** 0.8), m.prevPositionX || (m.prevPositionX = e.touchesCurrent.x), m.prevPositionY || (m.prevPositionY = e.touchesCurrent.y), m.prevTime || (m.prevTime = Date.now()), m.x = (e.touchesCurrent.x - m.prevPositionX) / (Date.now() - m.prevTime) / 2, m.y = (e.touchesCurrent.y - m.prevPositionY) / (Date.now() - m.prevTime) / 2, Math.abs(e.touchesCurrent.x - m.prevPositionX) < 2 && (m.x = 0), Math.abs(e.touchesCurrent.y - m.prevPositionY) < 2 && (m.y = 0), m.prevPositionX = e.touchesCurrent.x, m.prevPositionY = e.touchesCurrent.y, m.prevTime = Date.now(), i.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
389
|
+
}
|
|
390
|
+
function Pe() {
|
|
391
|
+
const n = t.zoom;
|
|
392
|
+
if (p.length = 0, !i.imageEl) return;
|
|
393
|
+
if (!e.isTouched || !e.isMoved) {
|
|
394
|
+
e.isTouched = !1, e.isMoved = !1;
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
e.isTouched = !1, e.isMoved = !1;
|
|
398
|
+
let o = 300, a = 300;
|
|
399
|
+
const g = m.x * o, w = e.currentX + g, L = m.y * a, k = e.currentY + L;
|
|
400
|
+
m.x !== 0 && (o = Math.abs((w - e.currentX) / m.x)), m.y !== 0 && (a = Math.abs((k - e.currentY) / m.y));
|
|
401
|
+
const $ = Math.max(o, a);
|
|
402
|
+
e.currentX = w, e.currentY = k;
|
|
403
|
+
const D = e.width * n.scale, y = e.height * n.scale;
|
|
404
|
+
e.minX = Math.min(i.slideWidth / 2 - D / 2, 0), e.maxX = -e.minX, e.minY = Math.min(i.slideHeight / 2 - y / 2, 0), e.maxY = -e.minY, e.currentX = Math.max(Math.min(e.currentX, e.maxX), e.minX), e.currentY = Math.max(Math.min(e.currentY, e.maxY), e.minY), i.imageWrapEl.style.transitionDuration = `${$}ms`, i.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
405
|
+
}
|
|
406
|
+
function pe() {
|
|
407
|
+
const n = t.zoom;
|
|
408
|
+
i.slideEl && t.activeIndex !== t.slides.indexOf(i.slideEl) && (i.imageEl && (i.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), i.imageWrapEl && (i.imageWrapEl.style.transform = "translate3d(0,0,0)"), i.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`), n.scale = 1, f = 1, i.slideEl = void 0, i.imageEl = void 0, i.imageWrapEl = void 0, i.originX = 0, i.originY = 0);
|
|
409
|
+
}
|
|
410
|
+
function fe(n) {
|
|
411
|
+
if (f <= 1 || !i.imageWrapEl || !u(n) || !E(n)) return;
|
|
412
|
+
const o = d.getComputedStyle(i.imageWrapEl).transform, a = new d.DOMMatrix(o);
|
|
413
|
+
if (!O) {
|
|
414
|
+
O = !0, z.x = n.clientX, z.y = n.clientY, e.startX = a.e, e.startY = a.f, e.width = i.imageEl.offsetWidth || i.imageEl.clientWidth, e.height = i.imageEl.offsetHeight || i.imageEl.clientHeight, i.slideWidth = i.slideEl.offsetWidth, i.slideHeight = i.slideEl.offsetHeight;
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
417
|
+
const g = (n.clientX - z.x) * V, w = (n.clientY - z.y) * V, L = e.width * f, k = e.height * f, $ = i.slideWidth, D = i.slideHeight, y = Math.min($ / 2 - L / 2, 0), X = -y, G = Math.min(D / 2 - k / 2, 0), U = -G, F = Math.max(Math.min(e.startX + g, X), y), j = Math.max(Math.min(e.startY + w, U), G);
|
|
418
|
+
i.imageWrapEl.style.transitionDuration = "0ms", i.imageWrapEl.style.transform = `translate3d(${F}px, ${j}px, 0)`, z.x = n.clientX, z.y = n.clientY, e.startX = F, e.startY = j, e.currentX = F, e.currentY = j;
|
|
419
|
+
}
|
|
420
|
+
function ge(n) {
|
|
421
|
+
const o = t.zoom, a = t.params.zoom;
|
|
422
|
+
if (!i.slideEl) {
|
|
423
|
+
n && n.target && (i.slideEl = n.target.closest(`.${t.params.slideClass}, swiper-slide`)), i.slideEl || (t.params.virtual && t.params.virtual.enabled && t.virtual ? i.slideEl = $e(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : i.slideEl = t.slides[t.activeIndex]);
|
|
424
|
+
let K = i.slideEl.querySelector(`.${a.containerClass}`);
|
|
425
|
+
K && (K = K.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = K, K ? i.imageWrapEl = ce(i.imageEl, `.${a.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
426
|
+
}
|
|
427
|
+
if (!i.imageEl || !i.imageWrapEl) return;
|
|
428
|
+
t.params.cssMode && (t.wrapperEl.style.overflow = "hidden", t.wrapperEl.style.touchAction = "none"), i.slideEl.classList.add(`${a.zoomedSlideClass}`);
|
|
429
|
+
let g, w, L, k, $, D, y, X, G, U, F, j, ee, te, ne, re, se, ae;
|
|
430
|
+
typeof e.touchesStart.x > "u" && n ? (g = n.pageX, w = n.pageY) : (g = e.touchesStart.x, w = e.touchesStart.y);
|
|
431
|
+
const oe = f, q = typeof n == "number" ? n : null;
|
|
432
|
+
f === 1 && q && (g = void 0, w = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0);
|
|
433
|
+
const be = Z();
|
|
434
|
+
o.scale = q || be, f = q || be, n && !(f === 1 && q) ? (se = i.slideEl.offsetWidth, ae = i.slideEl.offsetHeight, L = Te(i.slideEl).left + d.scrollX, k = Te(i.slideEl).top + d.scrollY, $ = L + se / 2 - g, D = k + ae / 2 - w, G = i.imageEl.offsetWidth || i.imageEl.clientWidth, U = i.imageEl.offsetHeight || i.imageEl.clientHeight, F = G * o.scale, j = U * o.scale, ee = Math.min(se / 2 - F / 2, 0), te = Math.min(ae / 2 - j / 2, 0), ne = -ee, re = -te, oe > 0 && q && typeof e.currentX == "number" && typeof e.currentY == "number" ? (y = e.currentX * o.scale / oe, X = e.currentY * o.scale / oe) : (y = $ * o.scale, X = D * o.scale), y < ee && (y = ee), y > ne && (y = ne), X < te && (X = te), X > re && (X = re)) : (y = 0, X = 0), q && o.scale === 1 && (i.originX = 0, i.originY = 0), e.currentX = y, e.currentY = X, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = `translate3d(${y}px, ${X}px,0)`, i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = `translate3d(0,0,0) scale(${o.scale})`;
|
|
435
|
+
}
|
|
436
|
+
function he() {
|
|
437
|
+
const n = t.zoom, o = t.params.zoom;
|
|
438
|
+
if (!i.slideEl) {
|
|
439
|
+
t.params.virtual && t.params.virtual.enabled && t.virtual ? i.slideEl = $e(t.slidesEl, `.${t.params.slideActiveClass}`)[0] : i.slideEl = t.slides[t.activeIndex];
|
|
440
|
+
let a = i.slideEl.querySelector(`.${o.containerClass}`);
|
|
441
|
+
a && (a = a.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), i.imageEl = a, a ? i.imageWrapEl = ce(i.imageEl, `.${o.containerClass}`)[0] : i.imageWrapEl = void 0;
|
|
442
|
+
}
|
|
443
|
+
!i.imageEl || !i.imageWrapEl || (t.params.cssMode && (t.wrapperEl.style.overflow = "", t.wrapperEl.style.touchAction = ""), n.scale = 1, f = 1, e.currentX = void 0, e.currentY = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0, i.imageWrapEl.style.transitionDuration = "300ms", i.imageWrapEl.style.transform = "translate3d(0,0,0)", i.imageEl.style.transitionDuration = "300ms", i.imageEl.style.transform = "translate3d(0,0,0) scale(1)", i.slideEl.classList.remove(`${o.zoomedSlideClass}`), i.slideEl = void 0, i.originX = 0, i.originY = 0, t.params.zoom.panOnMouseMove && (z = {
|
|
444
|
+
x: 0,
|
|
445
|
+
y: 0
|
|
446
|
+
}, O && (O = !1, e.startX = 0, e.startY = 0)));
|
|
447
|
+
}
|
|
448
|
+
function ve(n) {
|
|
449
|
+
const o = t.zoom;
|
|
450
|
+
o.scale && o.scale !== 1 ? he() : ge(n);
|
|
451
|
+
}
|
|
452
|
+
function Ee() {
|
|
453
|
+
const n = t.params.passiveListeners ? {
|
|
454
|
+
passive: !0,
|
|
455
|
+
capture: !1
|
|
456
|
+
} : !1, o = t.params.passiveListeners ? {
|
|
457
|
+
passive: !1,
|
|
458
|
+
capture: !0
|
|
459
|
+
} : !0;
|
|
460
|
+
return {
|
|
461
|
+
passiveListener: n,
|
|
462
|
+
activeListenerWithCapture: o
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
function we() {
|
|
466
|
+
const n = t.zoom;
|
|
467
|
+
if (n.enabled) return;
|
|
468
|
+
n.enabled = !0;
|
|
469
|
+
const {
|
|
470
|
+
passiveListener: o,
|
|
471
|
+
activeListenerWithCapture: a
|
|
472
|
+
} = Ee();
|
|
473
|
+
t.wrapperEl.addEventListener("pointerdown", b, o), t.wrapperEl.addEventListener("pointermove", J, a), ["pointerup", "pointercancel", "pointerout"].forEach((g) => {
|
|
474
|
+
t.wrapperEl.addEventListener(g, Q, o);
|
|
475
|
+
}), t.wrapperEl.addEventListener("pointermove", me, a);
|
|
476
|
+
}
|
|
477
|
+
function ye() {
|
|
478
|
+
const n = t.zoom;
|
|
479
|
+
if (!n.enabled) return;
|
|
480
|
+
n.enabled = !1;
|
|
481
|
+
const {
|
|
482
|
+
passiveListener: o,
|
|
483
|
+
activeListenerWithCapture: a
|
|
484
|
+
} = Ee();
|
|
485
|
+
t.wrapperEl.removeEventListener("pointerdown", b, o), t.wrapperEl.removeEventListener("pointermove", J, a), ["pointerup", "pointercancel", "pointerout"].forEach((g) => {
|
|
486
|
+
t.wrapperEl.removeEventListener(g, Q, o);
|
|
487
|
+
}), t.wrapperEl.removeEventListener("pointermove", me, a);
|
|
488
|
+
}
|
|
489
|
+
s("init", () => {
|
|
490
|
+
t.params.zoom.enabled && we();
|
|
491
|
+
}), s("destroy", () => {
|
|
492
|
+
ye();
|
|
493
|
+
}), s("touchStart", (n, o) => {
|
|
494
|
+
t.zoom.enabled && C(o);
|
|
495
|
+
}), s("touchEnd", (n, o) => {
|
|
496
|
+
t.zoom.enabled && Pe();
|
|
497
|
+
}), s("doubleTap", (n, o) => {
|
|
498
|
+
!t.animating && t.params.zoom.enabled && t.zoom.enabled && t.params.zoom.toggle && ve(o);
|
|
499
|
+
}), s("transitionEnd", () => {
|
|
500
|
+
t.zoom.enabled && t.params.zoom.enabled && pe();
|
|
501
|
+
}), s("slideChange", () => {
|
|
502
|
+
t.zoom.enabled && t.params.zoom.enabled && t.params.cssMode && pe();
|
|
503
|
+
}), Object.assign(t.zoom, {
|
|
504
|
+
enable: we,
|
|
505
|
+
disable: ye,
|
|
506
|
+
in: ge,
|
|
507
|
+
out: he,
|
|
508
|
+
toggle: ve
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
const Be = ["id"], Ve = ["id", "data-cy"], Ne = ["data-idx", "loading", "alt", "width", "height", "onLoad"], _e = ["id"], Ge = ["loading", "alt"], Ke = /* @__PURE__ */ Oe({
|
|
512
|
+
inheritAttrs: !1,
|
|
513
|
+
__name: "SwiperCarousel",
|
|
514
|
+
props: {
|
|
515
|
+
id: {},
|
|
516
|
+
swiperOptions: {},
|
|
517
|
+
thumbSwiperOptions: {},
|
|
518
|
+
lazyLoadImages: { type: Boolean, default: !0 },
|
|
519
|
+
backgroundImage: { type: Boolean, default: !1 },
|
|
520
|
+
images: {},
|
|
521
|
+
artDirection: {},
|
|
522
|
+
shiftFirstImage: { type: Boolean, default: !1 }
|
|
523
|
+
},
|
|
524
|
+
emits: ["moved", "click", "firstSlideLoaded"],
|
|
525
|
+
setup(r, { expose: t, emit: c }) {
|
|
526
|
+
const s = r, h = c, d = Le({
|
|
527
|
+
swiperParams: { modules: [qe] },
|
|
528
|
+
swiper: null,
|
|
529
|
+
initCarousel: !1
|
|
530
|
+
}), f = Se(), x = I(() => s.swiperOptions?.slidesPerView || 1), O = I(() => s.thumbSwiperOptions?.slidesPerView || 1), z = I(() => !!s.swiperOptions?.keyboard), V = I(() => {
|
|
531
|
+
const l = s.swiperOptions;
|
|
532
|
+
return l ? !!l.navigation : !1;
|
|
533
|
+
}), H = I(() => {
|
|
534
|
+
const l = s.swiperOptions;
|
|
535
|
+
return l ? !!l.pagination : !1;
|
|
536
|
+
}), A = I(() => {
|
|
537
|
+
const l = s.swiperOptions;
|
|
538
|
+
return l ? !!l.autoplay : !1;
|
|
539
|
+
}), p = I(
|
|
540
|
+
() => s.swiperOptions?.effect || "slider"
|
|
541
|
+
), i = () => {
|
|
542
|
+
s.swiperOptions && He(s.swiperOptions, d.swiperParams);
|
|
543
|
+
}, e = (l, v = -1) => {
|
|
544
|
+
if (!l.images)
|
|
545
|
+
return { src: l.src || "" };
|
|
546
|
+
let u = "", E = "", b = "";
|
|
547
|
+
if (s.artDirection) {
|
|
548
|
+
for (const S in s.artDirection) {
|
|
549
|
+
const { mq: M, width: Y } = s.artDirection[S];
|
|
550
|
+
Y && (b += b ? `,${M} ${parseInt(Y)}px` : `${M} ${parseInt(Y)}px`);
|
|
551
|
+
}
|
|
552
|
+
E = l.images.reduce((S, M, Y) => {
|
|
553
|
+
const C = Object.values(s.artDirection)[Y];
|
|
554
|
+
return !C || !C.width || (S += S ? `, ${M.storagePath} ${C.width}` : `${M.storagePath} ${C.width}`), S;
|
|
555
|
+
}, ""), u = l.images[0].storagePath;
|
|
556
|
+
} else {
|
|
557
|
+
let S = l.images;
|
|
558
|
+
l.images.length > 3 ? S = l.images.slice(2, 5) : s.shiftFirstImage && (S[0] = S[1]), E = S.reduce((M, Y, C) => (C === 0 && (u = `${Y.storagePath}`), C > 0 && (M += ", "), `${M}${Y.storagePath} ${C + 1}x`), "");
|
|
559
|
+
}
|
|
560
|
+
const J = u, Q = E;
|
|
561
|
+
return typeof x.value == "number" && v > x.value ? (u = "", E = "", { sizes: b, "data-src": J, "data-srcset": Q }) : { src: u, srcset: E, sizes: b };
|
|
562
|
+
}, m = [], N = (l) => {
|
|
563
|
+
if (typeof x.value == "string") return;
|
|
564
|
+
const v = m[l];
|
|
565
|
+
if (v && !v.src && (v.src = v.dataset.src || "", v.srcset = v.dataset.srcset || ""), l < x.value || l + 1 >= (s.images ?? []).length)
|
|
566
|
+
return;
|
|
567
|
+
const u = m[l + 1];
|
|
568
|
+
u && !u.src && (u.src = u?.dataset.src || "", u.srcset = u?.dataset.srcset || "");
|
|
569
|
+
};
|
|
570
|
+
t({
|
|
571
|
+
moveTo(l, v = 0, u = !0) {
|
|
572
|
+
d.swiper && d.swiper.slideTo(l, v, u);
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
const _ = Se(null), Z = (l) => {
|
|
576
|
+
l === 0 && m && m[l] && De(() => {
|
|
577
|
+
_.value?.setAttribute("data-first-slide-loaded", "true"), h("firstSlideLoaded");
|
|
578
|
+
});
|
|
579
|
+
};
|
|
580
|
+
return ke(async () => {
|
|
581
|
+
if (i(), z.value) {
|
|
582
|
+
const { Keyboard: u } = await import("./index.BJP9rQkU.js");
|
|
583
|
+
d.swiperParams.modules?.push(u), d.swiperParams.keyboard = s.swiperOptions.keyboard;
|
|
584
|
+
}
|
|
585
|
+
if (H.value) {
|
|
586
|
+
const { Pagination: u } = await import("./index.BJP9rQkU.js");
|
|
587
|
+
d.swiperParams.modules?.push(u), d.swiperParams.pagination = {
|
|
588
|
+
el: ".swiper-pagination",
|
|
589
|
+
renderFraction: (E, b) => `<div class="uikit:rounded-xs uikit:border-w-black uikit:border uikit:border-solid uikit:px-3 uikit:bg-white uikit:pt-[3px] uikit:pb-[3px]">
|
|
590
|
+
<span data-cy="swiper-pagination-current" class="${E}"></span>
|
|
591
|
+
/
|
|
592
|
+
<span data-cy="swiper-pagination-total" class="${b}"></span>
|
|
593
|
+
</div>`,
|
|
594
|
+
...typeof d.swiperParams.pagination == "boolean" ? {} : d.swiperParams.pagination
|
|
595
|
+
};
|
|
596
|
+
}
|
|
597
|
+
if (V.value) {
|
|
598
|
+
const { Navigation: u } = await import("./index.BJP9rQkU.js");
|
|
599
|
+
d.swiperParams.modules?.push(u);
|
|
600
|
+
const E = {
|
|
601
|
+
...s.swiperOptions.navigation.nextEl ?? {
|
|
602
|
+
nextEl: ".swiper-button-next"
|
|
603
|
+
},
|
|
604
|
+
...s.swiperOptions.navigation.prevEl ?? {
|
|
605
|
+
prevEl: ".swiper-button-prev"
|
|
606
|
+
}
|
|
607
|
+
};
|
|
608
|
+
d.swiperParams.navigation = {
|
|
609
|
+
...typeof s.swiperOptions.navigation == "object" ? s.swiperOptions.navigation : {},
|
|
610
|
+
...E
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
if (A.value) {
|
|
614
|
+
const { Autoplay: u } = await import("./index.BJP9rQkU.js");
|
|
615
|
+
d.swiperParams.modules?.push(u), d.swiperParams.autoplay = s.swiperOptions.autoplay;
|
|
616
|
+
}
|
|
617
|
+
const l = {
|
|
618
|
+
...d.swiperParams,
|
|
619
|
+
on: {
|
|
620
|
+
slideChange: (u) => {
|
|
621
|
+
N(u.activeIndex), h("moved", { activeIndex: u.activeIndex });
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
let v = null;
|
|
626
|
+
if (s.thumbSwiperOptions) {
|
|
627
|
+
const { Thumbs: u, FreeMode: E, Controller: b } = await import("./index.BJP9rQkU.js");
|
|
628
|
+
d.swiperParams.modules?.push(u), d.swiperParams.modules?.push(b), v = new Ye(`#thumb_${s.id}`, {
|
|
629
|
+
...s.thumbSwiperOptions,
|
|
630
|
+
modules: [E]
|
|
631
|
+
}), l.thumbs = {
|
|
632
|
+
swiper: v
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
l.lazyPreloadPrevNext = 1, d.swiper = new Ye(`#${s.id}`, l), f.value?.classList.remove("uikit:hidden");
|
|
636
|
+
}), (l, v) => (W(), T("div", {
|
|
637
|
+
id: `root-${l.id}`,
|
|
638
|
+
ref_key: "root",
|
|
639
|
+
ref: _,
|
|
640
|
+
class: P(["swiper-carousel-root", l.$attrs["root-classes"]])
|
|
641
|
+
}, [
|
|
642
|
+
R("div", {
|
|
643
|
+
id: l.id,
|
|
644
|
+
"data-cy": l.$attrs["data-cy"],
|
|
645
|
+
class: P(["swiper", l.$attrs["swiper-classes"]])
|
|
646
|
+
}, [
|
|
647
|
+
R("div", {
|
|
648
|
+
ref_key: "swiperWrapper",
|
|
649
|
+
ref: f,
|
|
650
|
+
class: P(["swiper-wrapper", [
|
|
651
|
+
l.$attrs["swiper-wrapper-classes"],
|
|
652
|
+
p.value === "none" && "no-transition"
|
|
653
|
+
]]),
|
|
654
|
+
onClick: v[0] || (v[0] = (u) => h("click"))
|
|
655
|
+
}, [
|
|
656
|
+
xe(l.$slots, "default", {}, () => [
|
|
657
|
+
(W(!0), T(le, null, Me(l.images, (u, E) => (W(), T("div", {
|
|
658
|
+
key: `swiper_${l.id}_${E}`,
|
|
659
|
+
class: P(["swiper-slide", l.$attrs["swiper-slide-classes"]])
|
|
660
|
+
}, [
|
|
661
|
+
R("div", {
|
|
662
|
+
class: P(["swiper-zoom-container", l.$attrs["swiper-zoom-container-classes"]])
|
|
663
|
+
}, [
|
|
664
|
+
l.backgroundImage ? ie("", !0) : (W(), T("img", Xe({
|
|
665
|
+
key: 0,
|
|
666
|
+
ref_for: !0,
|
|
667
|
+
ref: (b) => {
|
|
668
|
+
m.push(b);
|
|
669
|
+
},
|
|
670
|
+
class: ["disable-select", [l.$attrs["slide-img-classes"] || u.classes]],
|
|
671
|
+
"data-idx": `${l.id}-slide-img-${E}`
|
|
672
|
+
}, e(u, E), {
|
|
673
|
+
loading: l.lazyLoadImages || E >= x.value ? "lazy" : void 0,
|
|
674
|
+
alt: u.alt,
|
|
675
|
+
itemprop: "image",
|
|
676
|
+
width: u.width,
|
|
677
|
+
height: u.height,
|
|
678
|
+
onLoad: (b) => Z(E)
|
|
679
|
+
}), null, 16, Ne))
|
|
680
|
+
], 2)
|
|
681
|
+
], 2))), 128)),
|
|
682
|
+
xe(l.$slots, "last_slide", {}, void 0, !0)
|
|
683
|
+
], !0)
|
|
684
|
+
], 2),
|
|
685
|
+
H.value ? (W(), T("div", {
|
|
686
|
+
key: 0,
|
|
687
|
+
class: P([l.$attrs["swiper-pagination-classes"], "swiper-pagination uikit:[&.swiper-pagination-fraction]:flex uikit:[&.swiper-pagination-fraction]:justify-center"]),
|
|
688
|
+
onClick: v[1] || (v[1] = ue(() => {
|
|
689
|
+
}, ["stop"]))
|
|
690
|
+
}, null, 2)) : ie("", !0),
|
|
691
|
+
V.value ? (W(), T(le, { key: 1 }, [
|
|
692
|
+
R("div", {
|
|
693
|
+
class: "swiper-button-prev",
|
|
694
|
+
"data-cy": "swiper-button-prev",
|
|
695
|
+
onClick: v[2] || (v[2] = ue(() => {
|
|
696
|
+
}, ["stop"]))
|
|
697
|
+
}),
|
|
698
|
+
R("div", {
|
|
699
|
+
class: "swiper-button-next",
|
|
700
|
+
"data-cy": "swiper-button-next",
|
|
701
|
+
onClick: v[3] || (v[3] = ue(() => {
|
|
702
|
+
}, ["stop"]))
|
|
703
|
+
})
|
|
704
|
+
], 64)) : ie("", !0)
|
|
705
|
+
], 10, Ve),
|
|
706
|
+
l.thumbSwiperOptions ? (W(), T("div", {
|
|
707
|
+
key: 0,
|
|
708
|
+
id: `thumb_${l.id}`,
|
|
709
|
+
thumbsSlider: "",
|
|
710
|
+
class: P(["swiper", l.$attrs["thumb-swiper-classes"]])
|
|
711
|
+
}, [
|
|
712
|
+
R("div", {
|
|
713
|
+
class: P(["swiper-wrapper", l.$attrs["thumb-swiper-wrapper-classes"]])
|
|
714
|
+
}, [
|
|
715
|
+
(W(!0), T(le, null, Me(l.images, (u, E) => (W(), T("div", {
|
|
716
|
+
key: `thumb_${l.id}_${E}`,
|
|
717
|
+
class: P(["swiper-slide", l.$attrs["thumb-img-wrapper-classes"]])
|
|
718
|
+
}, [
|
|
719
|
+
R("img", Xe({
|
|
720
|
+
class: l.$attrs["thumb-img-classes"],
|
|
721
|
+
ref_for: !0
|
|
722
|
+
}, e(u), {
|
|
723
|
+
loading: E >= O.value ? "lazy" : void 0,
|
|
724
|
+
alt: u.alt
|
|
725
|
+
}), null, 16, Ge)
|
|
726
|
+
], 2))), 128))
|
|
727
|
+
], 2)
|
|
728
|
+
], 10, _e)) : ie("", !0)
|
|
729
|
+
], 10, Be));
|
|
730
|
+
}
|
|
731
|
+
}), ut = /* @__PURE__ */ Ie(Ke, [["__scopeId", "data-v-5ca8ec99"]]);
|
|
732
|
+
export {
|
|
733
|
+
ut as S,
|
|
734
|
+
qe as Z,
|
|
735
|
+
B as a,
|
|
736
|
+
Te as b,
|
|
737
|
+
$e as c,
|
|
738
|
+
rt as d,
|
|
739
|
+
ce as e,
|
|
740
|
+
ot as f,
|
|
741
|
+
Re as g,
|
|
742
|
+
st as h,
|
|
743
|
+
at as i,
|
|
744
|
+
nt as j,
|
|
745
|
+
it as k,
|
|
746
|
+
lt as m,
|
|
747
|
+
tt as n
|
|
748
|
+
};
|