@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
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
+
function d(r) {
|
|
3
|
+
for (var c = 1; c < arguments.length; c++) {
|
|
4
|
+
var f = arguments[c];
|
|
5
|
+
for (var p in f)
|
|
6
|
+
r[p] = f[p];
|
|
7
|
+
}
|
|
8
|
+
return r;
|
|
9
|
+
}
|
|
10
|
+
var g = {
|
|
11
|
+
read: function(r) {
|
|
12
|
+
return r[0] === '"' && (r = r.slice(1, -1)), r.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
13
|
+
},
|
|
14
|
+
write: function(r) {
|
|
15
|
+
return encodeURIComponent(r).replace(
|
|
16
|
+
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
17
|
+
decodeURIComponent
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
function s(r, c) {
|
|
22
|
+
function f(n, t, e) {
|
|
23
|
+
if (!(typeof document > "u")) {
|
|
24
|
+
e = d({}, c, e), typeof e.expires == "number" && (e.expires = new Date(Date.now() + e.expires * 864e5)), e.expires && (e.expires = e.expires.toUTCString()), n = encodeURIComponent(n).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
|
+
var o = "";
|
|
26
|
+
for (var i in e)
|
|
27
|
+
e[i] && (o += "; " + i, e[i] !== !0 && (o += "=" + e[i].split(";")[0]));
|
|
28
|
+
return document.cookie = n + "=" + r.write(t, n) + o;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
function p(n) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !n)) {
|
|
33
|
+
for (var t = document.cookie ? document.cookie.split("; ") : [], e = {}, o = 0; o < t.length; o++) {
|
|
34
|
+
var i = t[o].split("="), v = i.slice(1).join("=");
|
|
35
|
+
try {
|
|
36
|
+
var u = decodeURIComponent(i[0]);
|
|
37
|
+
if (e[u] = r.read(v, u), n === u)
|
|
38
|
+
break;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return n ? e[n] : e;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return Object.create(
|
|
46
|
+
{
|
|
47
|
+
set: f,
|
|
48
|
+
get: p,
|
|
49
|
+
remove: function(n, t) {
|
|
50
|
+
f(
|
|
51
|
+
n,
|
|
52
|
+
"",
|
|
53
|
+
d({}, t, {
|
|
54
|
+
expires: -1
|
|
55
|
+
})
|
|
56
|
+
);
|
|
57
|
+
},
|
|
58
|
+
withAttributes: function(n) {
|
|
59
|
+
return s(this.converter, d({}, this.attributes, n));
|
|
60
|
+
},
|
|
61
|
+
withConverter: function(n) {
|
|
62
|
+
return s(d({}, this.converter, n), this.attributes);
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
attributes: { value: Object.freeze(c) },
|
|
67
|
+
converter: { value: Object.freeze(r) }
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
s(g, { path: "/" });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { g as S } from "../shared/ssr-window.esm.js";
|
|
2
|
+
function k(x) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
extendParams: B,
|
|
6
|
+
on: s,
|
|
7
|
+
emit: r,
|
|
8
|
+
params: u
|
|
9
|
+
} = x;
|
|
10
|
+
e.autoplay = {
|
|
11
|
+
running: !1,
|
|
12
|
+
paused: !1,
|
|
13
|
+
timeLeft: 0
|
|
14
|
+
}, B({
|
|
15
|
+
autoplay: {
|
|
16
|
+
enabled: !1,
|
|
17
|
+
delay: 3e3,
|
|
18
|
+
waitForTransition: !0,
|
|
19
|
+
disableOnInteraction: !1,
|
|
20
|
+
stopOnLastSlide: !1,
|
|
21
|
+
reverseDirection: !1,
|
|
22
|
+
pauseOnMouseEnter: !1
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
let y, E, b = u && u.autoplay ? u.autoplay.delay : 3e3, g = u && u.autoplay ? u.autoplay.delay : 3e3, n, f = (/* @__PURE__ */ new Date()).getTime(), w, v, p, h, L, o, D;
|
|
26
|
+
function M(t) {
|
|
27
|
+
!e || e.destroyed || !e.wrapperEl || t.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", M), !(D || t.detail && t.detail.bySwiperTouchMove) && l());
|
|
28
|
+
}
|
|
29
|
+
const O = () => {
|
|
30
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
31
|
+
e.autoplay.paused ? w = !0 : w && (g = n, w = !1);
|
|
32
|
+
const t = e.autoplay.paused ? n : f + g - (/* @__PURE__ */ new Date()).getTime();
|
|
33
|
+
e.autoplay.timeLeft = t, r("autoplayTimeLeft", t, t / b), E = requestAnimationFrame(() => {
|
|
34
|
+
O();
|
|
35
|
+
});
|
|
36
|
+
}, C = () => {
|
|
37
|
+
let t;
|
|
38
|
+
return e.virtual && e.params.virtual.enabled ? t = e.slides.find((a) => a.classList.contains("swiper-slide-active")) : t = e.slides[e.activeIndex], t ? parseInt(t.getAttribute("data-swiper-autoplay"), 10) : void 0;
|
|
39
|
+
}, T = (t) => {
|
|
40
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
41
|
+
cancelAnimationFrame(E), O();
|
|
42
|
+
let i = typeof t > "u" ? e.params.autoplay.delay : t;
|
|
43
|
+
b = e.params.autoplay.delay, g = e.params.autoplay.delay;
|
|
44
|
+
const a = C();
|
|
45
|
+
!Number.isNaN(a) && a > 0 && typeof t > "u" && (i = a, b = a, g = a), n = i;
|
|
46
|
+
const c = e.params.speed, N = () => {
|
|
47
|
+
!e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, c, !0, !0), r("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(c, !0, !0), r("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, c, !0, !0), r("autoplay")), e.params.cssMode && (f = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
|
|
48
|
+
T();
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
return i > 0 ? (clearTimeout(y), y = setTimeout(() => {
|
|
52
|
+
N();
|
|
53
|
+
}, i)) : requestAnimationFrame(() => {
|
|
54
|
+
N();
|
|
55
|
+
}), i;
|
|
56
|
+
}, I = () => {
|
|
57
|
+
f = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, T(), r("autoplayStart");
|
|
58
|
+
}, m = () => {
|
|
59
|
+
e.autoplay.running = !1, clearTimeout(y), cancelAnimationFrame(E), r("autoplayStop");
|
|
60
|
+
}, d = (t, i) => {
|
|
61
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
62
|
+
clearTimeout(y), t || (o = !0);
|
|
63
|
+
const a = () => {
|
|
64
|
+
r("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", M) : l();
|
|
65
|
+
};
|
|
66
|
+
if (e.autoplay.paused = !0, i) {
|
|
67
|
+
L && (n = e.params.autoplay.delay), L = !1, a();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
n = (n || e.params.autoplay.delay) - ((/* @__PURE__ */ new Date()).getTime() - f), !(e.isEnd && n < 0 && !e.params.loop) && (n < 0 && (n = 0), a());
|
|
71
|
+
}, l = () => {
|
|
72
|
+
e.isEnd && n < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (f = (/* @__PURE__ */ new Date()).getTime(), o ? (o = !1, T(n)) : T(), e.autoplay.paused = !1, r("autoplayResume"));
|
|
73
|
+
}, A = () => {
|
|
74
|
+
if (e.destroyed || !e.autoplay.running) return;
|
|
75
|
+
const t = S();
|
|
76
|
+
t.visibilityState === "hidden" && (o = !0, d(!0)), t.visibilityState === "visible" && l();
|
|
77
|
+
}, P = (t) => {
|
|
78
|
+
t.pointerType === "mouse" && (o = !0, D = !0, !(e.animating || e.autoplay.paused) && d(!0));
|
|
79
|
+
}, F = (t) => {
|
|
80
|
+
t.pointerType === "mouse" && (D = !1, e.autoplay.paused && l());
|
|
81
|
+
}, q = () => {
|
|
82
|
+
e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", P), e.el.addEventListener("pointerleave", F));
|
|
83
|
+
}, R = () => {
|
|
84
|
+
e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", P), e.el.removeEventListener("pointerleave", F));
|
|
85
|
+
}, _ = () => {
|
|
86
|
+
S().addEventListener("visibilitychange", A);
|
|
87
|
+
}, j = () => {
|
|
88
|
+
S().removeEventListener("visibilitychange", A);
|
|
89
|
+
};
|
|
90
|
+
s("init", () => {
|
|
91
|
+
e.params.autoplay.enabled && (q(), _(), I());
|
|
92
|
+
}), s("destroy", () => {
|
|
93
|
+
R(), j(), e.autoplay.running && m();
|
|
94
|
+
}), s("_freeModeStaticRelease", () => {
|
|
95
|
+
(p || o) && l();
|
|
96
|
+
}), s("_freeModeNoMomentumRelease", () => {
|
|
97
|
+
e.params.autoplay.disableOnInteraction ? m() : d(!0, !0);
|
|
98
|
+
}), s("beforeTransitionStart", (t, i, a) => {
|
|
99
|
+
e.destroyed || !e.autoplay.running || (a || !e.params.autoplay.disableOnInteraction ? d(!0, !0) : m());
|
|
100
|
+
}), s("sliderFirstMove", () => {
|
|
101
|
+
if (!(e.destroyed || !e.autoplay.running)) {
|
|
102
|
+
if (e.params.autoplay.disableOnInteraction) {
|
|
103
|
+
m();
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
v = !0, p = !1, o = !1, h = setTimeout(() => {
|
|
107
|
+
o = !0, p = !0, d(!0);
|
|
108
|
+
}, 200);
|
|
109
|
+
}
|
|
110
|
+
}), s("touchEnd", () => {
|
|
111
|
+
if (!(e.destroyed || !e.autoplay.running || !v)) {
|
|
112
|
+
if (clearTimeout(h), clearTimeout(y), e.params.autoplay.disableOnInteraction) {
|
|
113
|
+
p = !1, v = !1;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
p && e.params.cssMode && l(), p = !1, v = !1;
|
|
117
|
+
}
|
|
118
|
+
}), s("slideChange", () => {
|
|
119
|
+
e.destroyed || !e.autoplay.running || (L = !0);
|
|
120
|
+
}), Object.assign(e.autoplay, {
|
|
121
|
+
start: I,
|
|
122
|
+
stop: m,
|
|
123
|
+
pause: d,
|
|
124
|
+
resume: l
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
k as default
|
|
129
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { n as w, l as v } from "../shared/utils.js";
|
|
2
|
+
function b(m) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
extendParams: h,
|
|
6
|
+
on: f
|
|
7
|
+
} = m;
|
|
8
|
+
h({
|
|
9
|
+
controller: {
|
|
10
|
+
control: void 0,
|
|
11
|
+
inverse: !1,
|
|
12
|
+
by: "slide"
|
|
13
|
+
// or 'container'
|
|
14
|
+
}
|
|
15
|
+
}), e.controller = {
|
|
16
|
+
control: void 0
|
|
17
|
+
};
|
|
18
|
+
function p(s, i) {
|
|
19
|
+
const o = /* @__PURE__ */ function() {
|
|
20
|
+
let l, n, c;
|
|
21
|
+
return (u, g) => {
|
|
22
|
+
for (n = -1, l = u.length; l - n > 1; )
|
|
23
|
+
c = l + n >> 1, u[c] <= g ? n = c : l = c;
|
|
24
|
+
return l;
|
|
25
|
+
};
|
|
26
|
+
}();
|
|
27
|
+
this.x = s, this.y = i, this.lastIndex = s.length - 1;
|
|
28
|
+
let t, r;
|
|
29
|
+
return this.interpolate = function(l) {
|
|
30
|
+
return l ? (r = o(this.x, l), t = r - 1, (l - this.x[t]) * (this.y[r] - this.y[t]) / (this.x[r] - this.x[t]) + this.y[t]) : 0;
|
|
31
|
+
}, this;
|
|
32
|
+
}
|
|
33
|
+
function T(s) {
|
|
34
|
+
e.controller.spline = e.params.loop ? new p(e.slidesGrid, s.slidesGrid) : new p(e.snapGrid, s.snapGrid);
|
|
35
|
+
}
|
|
36
|
+
function y(s, i) {
|
|
37
|
+
const o = e.controller.control;
|
|
38
|
+
let t, r;
|
|
39
|
+
const a = e.constructor;
|
|
40
|
+
function l(n) {
|
|
41
|
+
if (n.destroyed) return;
|
|
42
|
+
const c = e.rtlTranslate ? -e.translate : e.translate;
|
|
43
|
+
e.params.controller.by === "slide" && (T(n), r = -e.controller.spline.interpolate(-c)), (!r || e.params.controller.by === "container") && (t = (n.maxTranslate() - n.minTranslate()) / (e.maxTranslate() - e.minTranslate()), (Number.isNaN(t) || !Number.isFinite(t)) && (t = 1), r = (c - e.minTranslate()) * t + n.minTranslate()), e.params.controller.inverse && (r = n.maxTranslate() - r), n.updateProgress(r), n.setTranslate(r, e), n.updateActiveIndex(), n.updateSlidesClasses();
|
|
44
|
+
}
|
|
45
|
+
if (Array.isArray(o))
|
|
46
|
+
for (let n = 0; n < o.length; n += 1)
|
|
47
|
+
o[n] !== i && o[n] instanceof a && l(o[n]);
|
|
48
|
+
else o instanceof a && i !== o && l(o);
|
|
49
|
+
}
|
|
50
|
+
function x(s, i) {
|
|
51
|
+
const o = e.constructor, t = e.controller.control;
|
|
52
|
+
let r;
|
|
53
|
+
function a(l) {
|
|
54
|
+
l.destroyed || (l.setTransition(s, e), s !== 0 && (l.transitionStart(), l.params.autoHeight && w(() => {
|
|
55
|
+
l.updateAutoHeight();
|
|
56
|
+
}), v(l.wrapperEl, () => {
|
|
57
|
+
t && l.transitionEnd();
|
|
58
|
+
})));
|
|
59
|
+
}
|
|
60
|
+
if (Array.isArray(t))
|
|
61
|
+
for (r = 0; r < t.length; r += 1)
|
|
62
|
+
t[r] !== i && t[r] instanceof o && a(t[r]);
|
|
63
|
+
else t instanceof o && i !== t && a(t);
|
|
64
|
+
}
|
|
65
|
+
function d() {
|
|
66
|
+
e.controller.control && e.controller.spline && (e.controller.spline = void 0, delete e.controller.spline);
|
|
67
|
+
}
|
|
68
|
+
f("beforeInit", () => {
|
|
69
|
+
if (typeof window < "u" && // eslint-disable-line
|
|
70
|
+
(typeof e.params.controller.control == "string" || e.params.controller.control instanceof HTMLElement)) {
|
|
71
|
+
(typeof e.params.controller.control == "string" ? [...document.querySelectorAll(e.params.controller.control)] : [e.params.controller.control]).forEach((i) => {
|
|
72
|
+
if (e.controller.control || (e.controller.control = []), i && i.swiper)
|
|
73
|
+
e.controller.control.push(i.swiper);
|
|
74
|
+
else if (i) {
|
|
75
|
+
const o = `${e.params.eventsPrefix}init`, t = (r) => {
|
|
76
|
+
e.controller.control.push(r.detail[0]), e.update(), i.removeEventListener(o, t);
|
|
77
|
+
};
|
|
78
|
+
i.addEventListener(o, t);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
e.controller.control = e.params.controller.control;
|
|
84
|
+
}), f("update", () => {
|
|
85
|
+
d();
|
|
86
|
+
}), f("resize", () => {
|
|
87
|
+
d();
|
|
88
|
+
}), f("observerUpdate", () => {
|
|
89
|
+
d();
|
|
90
|
+
}), f("setTranslate", (s, i, o) => {
|
|
91
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTranslate(i, o);
|
|
92
|
+
}), f("setTransition", (s, i, o) => {
|
|
93
|
+
!e.controller.control || e.controller.control.destroyed || e.controller.setTransition(i, o);
|
|
94
|
+
}), Object.assign(e.controller, {
|
|
95
|
+
setTranslate: y,
|
|
96
|
+
setTransition: x
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
export {
|
|
100
|
+
b as default
|
|
101
|
+
};
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { f as v, l as h } from "../shared/utils.js";
|
|
2
|
+
function z(g) {
|
|
3
|
+
let {
|
|
4
|
+
swiper: e,
|
|
5
|
+
extendParams: x,
|
|
6
|
+
emit: c,
|
|
7
|
+
once: S
|
|
8
|
+
} = g;
|
|
9
|
+
x({
|
|
10
|
+
freeMode: {
|
|
11
|
+
enabled: !1,
|
|
12
|
+
momentum: !0,
|
|
13
|
+
momentumRatio: 1,
|
|
14
|
+
momentumBounce: !0,
|
|
15
|
+
momentumBounceRatio: 1,
|
|
16
|
+
momentumVelocityRatio: 1,
|
|
17
|
+
sticky: !1,
|
|
18
|
+
minimumVelocity: 0.02
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
function E() {
|
|
22
|
+
if (e.params.cssMode) return;
|
|
23
|
+
const s = e.getTranslate();
|
|
24
|
+
e.setTranslate(s), e.setTransition(0), e.touchEventsData.velocities.length = 0, e.freeMode.onTouchEnd({
|
|
25
|
+
currentPos: e.rtl ? e.translate : -e.translate
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function B() {
|
|
29
|
+
if (e.params.cssMode) return;
|
|
30
|
+
const {
|
|
31
|
+
touchEventsData: s,
|
|
32
|
+
touches: m
|
|
33
|
+
} = e;
|
|
34
|
+
s.velocities.length === 0 && s.velocities.push({
|
|
35
|
+
position: m[e.isHorizontal() ? "startX" : "startY"],
|
|
36
|
+
time: s.touchStartTime
|
|
37
|
+
}), s.velocities.push({
|
|
38
|
+
position: m[e.isHorizontal() ? "currentX" : "currentY"],
|
|
39
|
+
time: v()
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function b(s) {
|
|
43
|
+
let {
|
|
44
|
+
currentPos: m
|
|
45
|
+
} = s;
|
|
46
|
+
if (e.params.cssMode) return;
|
|
47
|
+
const {
|
|
48
|
+
params: o,
|
|
49
|
+
wrapperEl: f,
|
|
50
|
+
rtlTranslate: p,
|
|
51
|
+
snapGrid: a,
|
|
52
|
+
touchEventsData: r
|
|
53
|
+
} = e, w = v() - r.touchStartTime;
|
|
54
|
+
if (m < -e.minTranslate()) {
|
|
55
|
+
e.slideTo(e.activeIndex);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
if (m > -e.maxTranslate()) {
|
|
59
|
+
e.slides.length < a.length ? e.slideTo(a.length - 1) : e.slideTo(e.slides.length - 1);
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
if (o.freeMode.momentum) {
|
|
63
|
+
if (r.velocities.length > 1) {
|
|
64
|
+
const i = r.velocities.pop(), n = r.velocities.pop(), P = i.position - n.position, y = i.time - n.time;
|
|
65
|
+
e.velocity = P / y, e.velocity /= 2, Math.abs(e.velocity) < o.freeMode.minimumVelocity && (e.velocity = 0), (y > 150 || v() - i.time > 300) && (e.velocity = 0);
|
|
66
|
+
} else
|
|
67
|
+
e.velocity = 0;
|
|
68
|
+
e.velocity *= o.freeMode.momentumVelocityRatio, r.velocities.length = 0;
|
|
69
|
+
let l = 1e3 * o.freeMode.momentumRatio;
|
|
70
|
+
const D = e.velocity * l;
|
|
71
|
+
let t = e.translate + D;
|
|
72
|
+
p && (t = -t);
|
|
73
|
+
let M = !1, u;
|
|
74
|
+
const d = Math.abs(e.velocity) * 20 * o.freeMode.momentumBounceRatio;
|
|
75
|
+
let T;
|
|
76
|
+
if (t < e.maxTranslate())
|
|
77
|
+
o.freeMode.momentumBounce ? (t + e.maxTranslate() < -d && (t = e.maxTranslate() - d), u = e.maxTranslate(), M = !0, r.allowMomentumBounce = !0) : t = e.maxTranslate(), o.loop && o.centeredSlides && (T = !0);
|
|
78
|
+
else if (t > e.minTranslate())
|
|
79
|
+
o.freeMode.momentumBounce ? (t - e.minTranslate() > d && (t = e.minTranslate() + d), u = e.minTranslate(), M = !0, r.allowMomentumBounce = !0) : t = e.minTranslate(), o.loop && o.centeredSlides && (T = !0);
|
|
80
|
+
else if (o.freeMode.sticky) {
|
|
81
|
+
let i;
|
|
82
|
+
for (let n = 0; n < a.length; n += 1)
|
|
83
|
+
if (a[n] > -t) {
|
|
84
|
+
i = n;
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
Math.abs(a[i] - t) < Math.abs(a[i - 1] - t) || e.swipeDirection === "next" ? t = a[i] : t = a[i - 1], t = -t;
|
|
88
|
+
}
|
|
89
|
+
if (T && S("transitionEnd", () => {
|
|
90
|
+
e.loopFix();
|
|
91
|
+
}), e.velocity !== 0) {
|
|
92
|
+
if (p ? l = Math.abs((-t - e.translate) / e.velocity) : l = Math.abs((t - e.translate) / e.velocity), o.freeMode.sticky) {
|
|
93
|
+
const i = Math.abs((p ? -t : t) - e.translate), n = e.slidesSizesGrid[e.activeIndex];
|
|
94
|
+
i < n ? l = o.speed : i < 2 * n ? l = o.speed * 1.5 : l = o.speed * 2.5;
|
|
95
|
+
}
|
|
96
|
+
} else if (o.freeMode.sticky) {
|
|
97
|
+
e.slideToClosest();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
o.freeMode.momentumBounce && M ? (e.updateProgress(u), e.setTransition(l), e.setTranslate(t), e.transitionStart(!0, e.swipeDirection), e.animating = !0, h(f, () => {
|
|
101
|
+
!e || e.destroyed || !r.allowMomentumBounce || (c("momentumBounce"), e.setTransition(o.speed), setTimeout(() => {
|
|
102
|
+
e.setTranslate(u), h(f, () => {
|
|
103
|
+
!e || e.destroyed || e.transitionEnd();
|
|
104
|
+
});
|
|
105
|
+
}, 0));
|
|
106
|
+
})) : e.velocity ? (c("_freeModeNoMomentumRelease"), e.updateProgress(t), e.setTransition(l), e.setTranslate(t), e.transitionStart(!0, e.swipeDirection), e.animating || (e.animating = !0, h(f, () => {
|
|
107
|
+
!e || e.destroyed || e.transitionEnd();
|
|
108
|
+
}))) : e.updateProgress(t), e.updateActiveIndex(), e.updateSlidesClasses();
|
|
109
|
+
} else if (o.freeMode.sticky) {
|
|
110
|
+
e.slideToClosest();
|
|
111
|
+
return;
|
|
112
|
+
} else o.freeMode && c("_freeModeNoMomentumRelease");
|
|
113
|
+
(!o.freeMode.momentum || w >= o.longSwipesMs) && (c("_freeModeStaticRelease"), e.updateProgress(), e.updateActiveIndex(), e.updateSlidesClasses());
|
|
114
|
+
}
|
|
115
|
+
Object.assign(e, {
|
|
116
|
+
freeMode: {
|
|
117
|
+
onTouchStart: E,
|
|
118
|
+
onTouchMove: B,
|
|
119
|
+
onTouchEnd: b
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
export {
|
|
124
|
+
z as default
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { g as K, a as U } from "../shared/ssr-window.esm.js";
|
|
2
|
+
import { b as C, d as W } from "../shared/utils.js";
|
|
3
|
+
function I(H) {
|
|
4
|
+
let {
|
|
5
|
+
swiper: e,
|
|
6
|
+
extendParams: V,
|
|
7
|
+
on: b,
|
|
8
|
+
emit: x
|
|
9
|
+
} = H;
|
|
10
|
+
const a = K(), m = U();
|
|
11
|
+
e.keyboard = {
|
|
12
|
+
enabled: !1
|
|
13
|
+
}, V({
|
|
14
|
+
keyboard: {
|
|
15
|
+
enabled: !1,
|
|
16
|
+
onlyInViewport: !0,
|
|
17
|
+
pageUpDown: !0
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function y(L) {
|
|
21
|
+
if (!e.enabled) return;
|
|
22
|
+
const {
|
|
23
|
+
rtlTranslate: s
|
|
24
|
+
} = e;
|
|
25
|
+
let t = L;
|
|
26
|
+
t.originalEvent && (t = t.originalEvent);
|
|
27
|
+
const i = t.keyCode || t.charCode, k = e.params.keyboard.pageUpDown, r = k && i === 33, o = k && i === 34, d = i === 37, f = i === 39, c = i === 38, u = i === 40;
|
|
28
|
+
if (!e.allowSlideNext && (e.isHorizontal() && f || e.isVertical() && u || o) || !e.allowSlidePrev && (e.isHorizontal() && d || e.isVertical() && c || r))
|
|
29
|
+
return !1;
|
|
30
|
+
if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(a.activeElement && a.activeElement.nodeName && (a.activeElement.nodeName.toLowerCase() === "input" || a.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
|
31
|
+
if (e.params.keyboard.onlyInViewport && (r || o || d || f || c || u)) {
|
|
32
|
+
let h = !1;
|
|
33
|
+
if (C(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && C(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
34
|
+
return;
|
|
35
|
+
const p = e.el, D = p.clientWidth, E = p.clientHeight, N = m.innerWidth, A = m.innerHeight, n = W(p);
|
|
36
|
+
s && (n.left -= p.scrollLeft);
|
|
37
|
+
const P = [[n.left, n.top], [n.left + D, n.top], [n.left, n.top + E], [n.left + D, n.top + E]];
|
|
38
|
+
for (let w = 0; w < P.length; w += 1) {
|
|
39
|
+
const l = P[w];
|
|
40
|
+
if (l[0] >= 0 && l[0] <= N && l[1] >= 0 && l[1] <= A) {
|
|
41
|
+
if (l[0] === 0 && l[1] === 0) continue;
|
|
42
|
+
h = !0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!h) return;
|
|
46
|
+
}
|
|
47
|
+
e.isHorizontal() ? ((r || o || d || f) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), ((o || f) && !s || (r || d) && s) && e.slideNext(), ((r || d) && !s || (o || f) && s) && e.slidePrev()) : ((r || o || c || u) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), (o || u) && e.slideNext(), (r || c) && e.slidePrev()), x("keyPress", i);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
function g() {
|
|
51
|
+
e.keyboard.enabled || (a.addEventListener("keydown", y), e.keyboard.enabled = !0);
|
|
52
|
+
}
|
|
53
|
+
function v() {
|
|
54
|
+
e.keyboard.enabled && (a.removeEventListener("keydown", y), e.keyboard.enabled = !1);
|
|
55
|
+
}
|
|
56
|
+
b("init", () => {
|
|
57
|
+
e.params.keyboard.enabled && g();
|
|
58
|
+
}), b("destroy", () => {
|
|
59
|
+
e.keyboard.enabled && v();
|
|
60
|
+
}), Object.assign(e.keyboard, {
|
|
61
|
+
enable: g,
|
|
62
|
+
disable: v
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
I as default
|
|
67
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { c as w } from "../shared/create-element-if-not-defined.js";
|
|
2
|
+
import { m as l } from "../shared/utils.js";
|
|
3
|
+
function N(x) {
|
|
4
|
+
let {
|
|
5
|
+
swiper: a,
|
|
6
|
+
extendParams: C,
|
|
7
|
+
on: c,
|
|
8
|
+
emit: g
|
|
9
|
+
} = x;
|
|
10
|
+
C({
|
|
11
|
+
navigation: {
|
|
12
|
+
nextEl: null,
|
|
13
|
+
prevEl: null,
|
|
14
|
+
hideOnClick: !1,
|
|
15
|
+
disabledClass: "swiper-button-disabled",
|
|
16
|
+
hiddenClass: "swiper-button-hidden",
|
|
17
|
+
lockClass: "swiper-button-lock",
|
|
18
|
+
navigationDisabledClass: "swiper-navigation-disabled"
|
|
19
|
+
}
|
|
20
|
+
}), a.navigation = {
|
|
21
|
+
nextEl: null,
|
|
22
|
+
prevEl: null
|
|
23
|
+
};
|
|
24
|
+
function u(i) {
|
|
25
|
+
let n;
|
|
26
|
+
return i && typeof i == "string" && a.isElement && (n = a.el.querySelector(i) || a.hostEl.querySelector(i), n) ? n : (i && (typeof i == "string" && (n = [...document.querySelectorAll(i)]), a.params.uniqueNavElements && typeof i == "string" && n && n.length > 1 && a.el.querySelectorAll(i).length === 1 ? n = a.el.querySelector(i) : n && n.length === 1 && (n = n[0])), i && !n ? i : n);
|
|
27
|
+
}
|
|
28
|
+
function f(i, n) {
|
|
29
|
+
const t = a.params.navigation;
|
|
30
|
+
i = l(i), i.forEach((e) => {
|
|
31
|
+
e && (e.classList[n ? "add" : "remove"](...t.disabledClass.split(" ")), e.tagName === "BUTTON" && (e.disabled = n), a.params.watchOverflow && a.enabled && e.classList[a.isLocked ? "add" : "remove"](t.lockClass));
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function d() {
|
|
35
|
+
const {
|
|
36
|
+
nextEl: i,
|
|
37
|
+
prevEl: n
|
|
38
|
+
} = a.navigation;
|
|
39
|
+
if (a.params.loop) {
|
|
40
|
+
f(n, !1), f(i, !1);
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
f(n, a.isBeginning && !a.params.rewind), f(i, a.isEnd && !a.params.rewind);
|
|
44
|
+
}
|
|
45
|
+
function E(i) {
|
|
46
|
+
i.preventDefault(), !(a.isBeginning && !a.params.loop && !a.params.rewind) && (a.slidePrev(), g("navigationPrev"));
|
|
47
|
+
}
|
|
48
|
+
function h(i) {
|
|
49
|
+
i.preventDefault(), !(a.isEnd && !a.params.loop && !a.params.rewind) && (a.slideNext(), g("navigationNext"));
|
|
50
|
+
}
|
|
51
|
+
function v() {
|
|
52
|
+
const i = a.params.navigation;
|
|
53
|
+
if (a.params.navigation = w(a, a.originalParams.navigation, a.params.navigation, {
|
|
54
|
+
nextEl: "swiper-button-next",
|
|
55
|
+
prevEl: "swiper-button-prev"
|
|
56
|
+
}), !(i.nextEl || i.prevEl)) return;
|
|
57
|
+
let n = u(i.nextEl), t = u(i.prevEl);
|
|
58
|
+
Object.assign(a.navigation, {
|
|
59
|
+
nextEl: n,
|
|
60
|
+
prevEl: t
|
|
61
|
+
}), n = l(n), t = l(t);
|
|
62
|
+
const e = (s, p) => {
|
|
63
|
+
s && s.addEventListener("click", p === "next" ? h : E), !a.enabled && s && s.classList.add(...i.lockClass.split(" "));
|
|
64
|
+
};
|
|
65
|
+
n.forEach((s) => e(s, "next")), t.forEach((s) => e(s, "prev"));
|
|
66
|
+
}
|
|
67
|
+
function m() {
|
|
68
|
+
let {
|
|
69
|
+
nextEl: i,
|
|
70
|
+
prevEl: n
|
|
71
|
+
} = a.navigation;
|
|
72
|
+
i = l(i), n = l(n);
|
|
73
|
+
const t = (e, s) => {
|
|
74
|
+
e.removeEventListener("click", s === "next" ? h : E), e.classList.remove(...a.params.navigation.disabledClass.split(" "));
|
|
75
|
+
};
|
|
76
|
+
i.forEach((e) => t(e, "next")), n.forEach((e) => t(e, "prev"));
|
|
77
|
+
}
|
|
78
|
+
c("init", () => {
|
|
79
|
+
a.params.navigation.enabled === !1 ? b() : (v(), d());
|
|
80
|
+
}), c("toEdge fromEdge lock unlock", () => {
|
|
81
|
+
d();
|
|
82
|
+
}), c("destroy", () => {
|
|
83
|
+
m();
|
|
84
|
+
}), c("enable disable", () => {
|
|
85
|
+
let {
|
|
86
|
+
nextEl: i,
|
|
87
|
+
prevEl: n
|
|
88
|
+
} = a.navigation;
|
|
89
|
+
if (i = l(i), n = l(n), a.enabled) {
|
|
90
|
+
d();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
[...i, ...n].filter((t) => !!t).forEach((t) => t.classList.add(a.params.navigation.lockClass));
|
|
94
|
+
}), c("click", (i, n) => {
|
|
95
|
+
let {
|
|
96
|
+
nextEl: t,
|
|
97
|
+
prevEl: e
|
|
98
|
+
} = a.navigation;
|
|
99
|
+
t = l(t), e = l(e);
|
|
100
|
+
const s = n.target;
|
|
101
|
+
let p = e.includes(s) || t.includes(s);
|
|
102
|
+
if (a.isElement && !p) {
|
|
103
|
+
const o = n.path || n.composedPath && n.composedPath();
|
|
104
|
+
o && (p = o.find((r) => t.includes(r) || e.includes(r)));
|
|
105
|
+
}
|
|
106
|
+
if (a.params.navigation.hideOnClick && !p) {
|
|
107
|
+
if (a.pagination && a.params.pagination && a.params.pagination.clickable && (a.pagination.el === s || a.pagination.el.contains(s))) return;
|
|
108
|
+
let o;
|
|
109
|
+
t.length ? o = t[0].classList.contains(a.params.navigation.hiddenClass) : e.length && (o = e[0].classList.contains(a.params.navigation.hiddenClass)), g(o === !0 ? "navigationShow" : "navigationHide"), [...t, ...e].filter((r) => !!r).forEach((r) => r.classList.toggle(a.params.navigation.hiddenClass));
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
const k = () => {
|
|
113
|
+
a.el.classList.remove(...a.params.navigation.navigationDisabledClass.split(" ")), v(), d();
|
|
114
|
+
}, b = () => {
|
|
115
|
+
a.el.classList.add(...a.params.navigation.navigationDisabledClass.split(" ")), m();
|
|
116
|
+
};
|
|
117
|
+
Object.assign(a.navigation, {
|
|
118
|
+
enable: k,
|
|
119
|
+
disable: b,
|
|
120
|
+
update: d,
|
|
121
|
+
init: v,
|
|
122
|
+
destroy: m
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
export {
|
|
126
|
+
N as default
|
|
127
|
+
};
|