@wikicasa-dev/components 2.1.4-alpha.9 → 2.1.4
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/BaseAlert.d.ts +9 -20
- package/dist/UIKit/BaseBadge.d.ts +5 -40
- package/dist/UIKit/BaseBreadcrumb.js +2 -3
- package/dist/UIKit/BaseButton.d.ts +8 -9
- package/dist/UIKit/BaseComplexToggle.d.ts +1 -1
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.d.ts +0 -5
- package/dist/UIKit/BaseFloatingLabel.js +3 -1
- package/dist/UIKit/BaseInput.d.ts +5 -4
- package/dist/UIKit/BaseInput.js +3 -1
- package/dist/UIKit/BasePagination.d.ts +3 -10
- package/dist/UIKit/BaseSlider.d.ts +10 -14
- package/dist/UIKit/BaseSlider.js +4 -1
- package/dist/UIKit/BaseSnackbar.js +4 -4
- package/dist/UIKit/BaseTextarea.d.ts +4 -4
- package/dist/UIKit/BaseTextarea.js +3 -3
- package/dist/UIKit/BaseToggle.d.ts +8 -5
- package/dist/UIKit/BaseToggle.js +4 -1
- package/dist/UIKit/BaseTooltip.d.ts +20 -10
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +16 -9
- package/dist/UIKit/Checkbox/CheckboxBtn.js +5 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +3 -2
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -1
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +5 -1
- package/dist/UIKit/Slider/SimpleSlider.d.ts +19 -0
- package/dist/UIKit/Slider/SimpleSlider.js +7 -0
- package/dist/UIKit/Tab/BaseTabList.d.ts +0 -1
- package/dist/UIKit/types.d.ts +6 -11
- package/dist/assets/packages/components/lib/UIKit/BaseAlert.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBadge.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseFloatingLabel.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseInput.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSlider.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseTextarea.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/BaseToggle.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/BaseTooltip.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Checkbox/CheckboxBtn.css +1 -0
- package/dist/assets/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.css +1 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/packages/components/src/tailwind.css +1 -1
- package/dist/composables/useFloatingLabel.d.ts +1 -1
- package/dist/composables/useFloatingLabel.js +20 -20
- package/dist/index.d.ts +2 -5
- package/dist/index.js +85 -98
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +4 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +12 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/NumberUtils.js +18 -0
- package/dist/node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +4 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.js +9 -9
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/utils.js +26 -32
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/controller.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/navigation.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/pagination.js +2 -2
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +2 -2
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +30 -30
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +13 -107
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +11 -46
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +35 -32
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +36 -56
- package/dist/packages/components/lib/UIKit/BaseComplexToggle.vue.js +12 -12
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +45 -48
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +17 -14
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +119 -93
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +66 -70
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +134 -89
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +178 -107
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +7 -7
- package/dist/packages/components/lib/UIKit/BaseTextarea.vue.js +73 -55
- package/dist/packages/components/lib/UIKit/BaseToggle.vue.js +31 -27
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +33 -48
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +40 -19
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +52 -55
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +26 -20
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +9 -9
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +9 -10
- package/dist/packages/components/lib/UIKit/Slider/SimpleSlider.vue.js +82 -0
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +27 -28
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +19 -21
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +6 -5
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +3 -5
- package/package.json +18 -25
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement1.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement2.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement3.js +0 -4
- package/dist/UIKit/BaseBanner/Background/BaseBannerBgElement4.js +0 -4
- package/dist/UIKit/BaseBanner.js +0 -4
- package/dist/UIKit/BaseChip.js +0 -4
- package/dist/UIKit/BaseCollapse.js +0 -7
- package/dist/UIKit/BaseNotificationBadge.js +0 -4
- package/dist/UIKit/BasePin.d.ts +0 -22
- package/dist/UIKit/BasePin.js +0 -5
- package/dist/UIKit/BaseSelect.d.ts +0 -26
- package/dist/UIKit/BaseSelect.js +0 -5
- package/dist/UIKit/DatePicker.js +0 -5
- package/dist/UIKit/InputDropdown.js +0 -4
- package/dist/UIKit/Navigation/NavigationBar.d.ts +0 -17
- package/dist/UIKit/Navigation/NavigationBar.js +0 -5
- package/dist/UIKit/Navigation/NavigationBarItem.d.ts +0 -34
- package/dist/UIKit/Navigation/NavigationBarItem.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControl.js +0 -4
- package/dist/UIKit/SegmentedControl/SegmentedControlItem.js +0 -4
- package/dist/UIKit/Tab/BaseTabItem.d.ts +0 -27
- package/dist/UIKit/Tab/BaseTabItem.js +0 -4
- 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 +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseBreadcrumb.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCollapse.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BasePin.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSelect.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/DatePicker.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Navigation/NavigationBar.css +0 -1
- 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 +0 -19
- 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 +0 -16
- 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 +0 -29
- 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 +0 -33
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement1.vue.js +0 -29
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement2.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement3.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner/Background/BaseBannerBgElement4.vue.js +0 -56
- package/dist/packages/components/lib/UIKit/BaseBanner.vue.js +0 -75
- package/dist/packages/components/lib/UIKit/BaseChip.vue.js +0 -38
- package/dist/packages/components/lib/UIKit/BaseCollapse.vue.js +0 -54
- package/dist/packages/components/lib/UIKit/BaseNotificationBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BasePin.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseSelect.vue.js +0 -65
- package/dist/packages/components/lib/UIKit/DatePicker.vue.js +0 -143
- package/dist/packages/components/lib/UIKit/InputDropdown.vue.js +0 -152
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBar.vue.js +0 -21
- package/dist/packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js +0 -48
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControl.vue.js +0 -93
- package/dist/packages/components/lib/UIKit/SegmentedControl/SegmentedControlItem.vue.js +0 -30
- package/dist/packages/components/lib/UIKit/Tab/BaseTabItem.vue.js +0 -39
- package/plugins/buttonPlugin.ts +0 -290
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.12_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
package/dist/index.js
CHANGED
|
@@ -1,103 +1,90 @@
|
|
|
1
|
-
import './assets/packages/components/lib/UIKit/
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
1
|
+
import './assets/packages/components/lib/UIKit/BaseModal.css';import './assets/packages/components/lib/UIKit/BaseBadge.css';import './assets/packages/components/lib/UIKit/BaseAlert.css';import './assets/packages/components/src/tailwind.css';/* empty css */
|
|
2
|
+
import { default as s } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
3
|
+
import { default as p } from "./packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js";
|
|
4
|
+
import { default as m } from "./packages/components/lib/UIKit/Accordion/BaseAccordionContent.vue.js";
|
|
5
|
+
import { default as x } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
6
|
+
import { default as i } from "./packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js";
|
|
7
|
+
import { default as c } from "./UIKit/Checkbox/CheckboxBtn.js";
|
|
8
|
+
import { default as b } from "./packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js";
|
|
9
|
+
import { default as C } from "./packages/components/lib/UIKit/Tab/BaseTab.vue.js";
|
|
10
|
+
import { default as A } from "./packages/components/lib/UIKit/Tab/BaseTabView.vue.js";
|
|
11
|
+
import { default as T } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
|
|
12
|
+
import { default as L } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
|
|
13
|
+
import { default as D } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
14
|
+
import { default as F } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
16
|
+
import { default as M } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
17
|
+
import { default as P } from "./packages/components/lib/UIKit/BaseBadge.vue.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
19
|
+
import { default as U } from "./packages/components/lib/UIKit/BaseButton.vue.js";
|
|
20
|
+
import { default as j } from "./UIKit/BaseCard.js";
|
|
21
|
+
import { default as y } from "./UIKit/BaseComplexToggle.js";
|
|
22
|
+
import { default as E } from "./packages/components/lib/UIKit/BaseDropDown.vue.js";
|
|
23
|
+
import { default as J } from "./UIKit/BaseFloatingLabel.js";
|
|
24
|
+
import { default as N } from "./UIKit/BaseIcon.js";
|
|
25
|
+
import { default as W } from "./UIKit/BaseInput.js";
|
|
26
|
+
import { default as Y } from "./packages/components/lib/UIKit/BasePagination.vue.js";
|
|
27
|
+
import { default as _ } from "./UIKit/BasePaper.js";
|
|
28
|
+
import { default as ee } from "./UIKit/BaseSlider.js";
|
|
29
|
+
import { default as oe } from "./UIKit/BaseTextarea.js";
|
|
30
|
+
import { default as te } from "./UIKit/BaseToggle.js";
|
|
31
|
+
import { default as se } from "./UIKit/BaseTooltip.js";
|
|
32
|
+
import { default as pe } from "./packages/components/lib/UIKit/BaseUploadFile.vue.js";
|
|
33
|
+
import { default as me } from "./packages/components/lib/UIKit/BaseModal.vue.js";
|
|
27
34
|
/* empty css */
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
|
|
32
|
-
import { default as
|
|
33
|
-
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
40
|
-
/* empty css */
|
|
41
|
-
import { default as Ie } from "./UIKit/BaseSnackbar.js";
|
|
42
|
-
import { default as ve } from "./UIKit/StaticSpinner.js";
|
|
43
|
-
import { default as Le } from "./packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js";
|
|
44
|
-
/* empty css */
|
|
45
|
-
import { default as De } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
46
|
-
import { default as Fe } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
47
|
-
import { default as Me } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
48
|
-
import { default as Oe } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
49
|
-
import { default as Ue } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
50
|
-
import { default as je } from "./components/carousel/SwiperCarousel.js";
|
|
51
|
-
import { default as ye } from "./components/carousel/SwiperSlide.js";
|
|
52
|
-
import { default as Ee } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
53
|
-
/* empty css */
|
|
54
|
-
import { default as Je } from "./packages/components/lib/UIKit/Navigation/NavigationBar.vue.js";
|
|
55
|
-
/* empty css */
|
|
56
|
-
import { default as Qe } from "./packages/components/lib/UIKit/Navigation/NavigationBarItem.vue.js";
|
|
35
|
+
import { default as xe } from "./UIKit/BaseSnackbar.js";
|
|
36
|
+
import { default as ie } from "./UIKit/StaticSpinner.js";
|
|
37
|
+
import { default as ce } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
|
|
38
|
+
import { default as be } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
39
|
+
import { default as Ce } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
40
|
+
import { default as Ae } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
41
|
+
import { default as Te } from "./UIKit/Slider/SimpleSlider.js";
|
|
42
|
+
import { default as Le } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
43
|
+
import { default as De } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
44
|
+
import { default as Fe } from "./components/carousel/SwiperCarousel.js";
|
|
45
|
+
import { default as Me } from "./components/carousel/SwiperSlide.js";
|
|
46
|
+
import { default as Pe } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
57
47
|
export {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
ve as StaticSpinner,
|
|
101
|
-
je as SwiperCarousel,
|
|
102
|
-
ye as SwiperSlide
|
|
48
|
+
D as AccessibleSelect,
|
|
49
|
+
s as BaseAccordion,
|
|
50
|
+
p as BaseAccordionBtn,
|
|
51
|
+
m as BaseAccordionContent,
|
|
52
|
+
x as BaseAccordionItem,
|
|
53
|
+
F as BaseAlert,
|
|
54
|
+
M as BaseAutocomplete,
|
|
55
|
+
P as BaseBadge,
|
|
56
|
+
Pe as BaseBreadcrumb,
|
|
57
|
+
U as BaseButton,
|
|
58
|
+
j as BaseCard,
|
|
59
|
+
y as BaseComplexToggle,
|
|
60
|
+
E as BaseDropDown,
|
|
61
|
+
J as BaseFloatingLabel,
|
|
62
|
+
N as BaseIcon,
|
|
63
|
+
W as BaseInput,
|
|
64
|
+
me as BaseModal,
|
|
65
|
+
Y as BasePagination,
|
|
66
|
+
_ as BasePaper,
|
|
67
|
+
ce as BaseShimmerLoader,
|
|
68
|
+
ee as BaseSlider,
|
|
69
|
+
xe as BaseSnackbar,
|
|
70
|
+
C as BaseTab,
|
|
71
|
+
A as BaseTabView,
|
|
72
|
+
oe as BaseTextarea,
|
|
73
|
+
te as BaseToggle,
|
|
74
|
+
se as BaseTooltip,
|
|
75
|
+
pe as BaseUploadFile,
|
|
76
|
+
c as CheckboxBtn,
|
|
77
|
+
b as CheckboxGroup,
|
|
78
|
+
Ce as DoughnutChart,
|
|
79
|
+
Le as IntersectionObservable,
|
|
80
|
+
De as IntersectionObserver,
|
|
81
|
+
Ae as LineChart,
|
|
82
|
+
T as RadioButton,
|
|
83
|
+
L as RadioGroup,
|
|
84
|
+
i as SelectItem,
|
|
85
|
+
be as ShimmerMultiLine,
|
|
86
|
+
Te as SimpleSlider,
|
|
87
|
+
ie as StaticSpinner,
|
|
88
|
+
Fe as SwiperCarousel,
|
|
89
|
+
Me as SwiperSlide
|
|
103
90
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function a(t, i = !1) {
|
|
2
|
+
return t == null ? "" : n(i ? Math.round(t) : Math.floor(t), 0);
|
|
3
|
+
}
|
|
4
|
+
function n(t, i) {
|
|
5
|
+
return !t && t !== 0 ? "" : t.toLocaleString(
|
|
6
|
+
"it-IT",
|
|
7
|
+
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
8
|
+
{
|
|
9
|
+
minimumFractionDigits: i,
|
|
10
|
+
maximumFractionDigits: i,
|
|
11
|
+
useGrouping: "always"
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as formatInteger,
|
|
17
|
+
n as formatNumber
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { g as K, a as U } from "../shared/ssr-window.esm.js";
|
|
2
|
-
import {
|
|
2
|
+
import { a as C, b as W } from "../shared/utils.js";
|
|
3
3
|
function I(H) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: e,
|
|
@@ -7,7 +7,7 @@ function I(H) {
|
|
|
7
7
|
on: b,
|
|
8
8
|
emit: x
|
|
9
9
|
} = H;
|
|
10
|
-
const
|
|
10
|
+
const o = K(), m = U();
|
|
11
11
|
e.keyboard = {
|
|
12
12
|
enabled: !1
|
|
13
13
|
}, V({
|
|
@@ -24,11 +24,11 @@ function I(H) {
|
|
|
24
24
|
} = e;
|
|
25
25
|
let t = L;
|
|
26
26
|
t.originalEvent && (t = t.originalEvent);
|
|
27
|
-
const i = t.keyCode || t.charCode, k = e.params.keyboard.pageUpDown, r = k && i === 33,
|
|
28
|
-
if (!e.allowSlideNext && (e.isHorizontal() && f || e.isVertical() && u ||
|
|
27
|
+
const i = t.keyCode || t.charCode, k = e.params.keyboard.pageUpDown, r = k && i === 33, a = 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 || a) || !e.allowSlidePrev && (e.isHorizontal() && d || e.isVertical() && c || r))
|
|
29
29
|
return !1;
|
|
30
|
-
if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(
|
|
31
|
-
if (e.params.keyboard.onlyInViewport && (r ||
|
|
30
|
+
if (!(t.shiftKey || t.altKey || t.ctrlKey || t.metaKey) && !(o.activeElement && o.activeElement.nodeName && (o.activeElement.nodeName.toLowerCase() === "input" || o.activeElement.nodeName.toLowerCase() === "textarea"))) {
|
|
31
|
+
if (e.params.keyboard.onlyInViewport && (r || a || d || f || c || u)) {
|
|
32
32
|
let h = !1;
|
|
33
33
|
if (C(e.el, `.${e.params.slideClass}, swiper-slide`).length > 0 && C(e.el, `.${e.params.slideActiveClass}`).length === 0)
|
|
34
34
|
return;
|
|
@@ -44,14 +44,14 @@ function I(H) {
|
|
|
44
44
|
}
|
|
45
45
|
if (!h) return;
|
|
46
46
|
}
|
|
47
|
-
e.isHorizontal() ? ((r ||
|
|
47
|
+
e.isHorizontal() ? ((r || a || d || f) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), ((a || f) && !s || (r || d) && s) && e.slideNext(), ((r || d) && !s || (a || f) && s) && e.slidePrev()) : ((r || a || c || u) && (t.preventDefault ? t.preventDefault() : t.returnValue = !1), (a || u) && e.slideNext(), (r || c) && e.slidePrev()), x("keyPress", i);
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
function g() {
|
|
51
|
-
e.keyboard.enabled || (
|
|
51
|
+
e.keyboard.enabled || (o.addEventListener("keydown", y), e.keyboard.enabled = !0);
|
|
52
52
|
}
|
|
53
53
|
function v() {
|
|
54
|
-
e.keyboard.enabled && (
|
|
54
|
+
e.keyboard.enabled && (o.removeEventListener("keydown", y), e.keyboard.enabled = !1);
|
|
55
55
|
}
|
|
56
56
|
b("init", () => {
|
|
57
57
|
e.params.keyboard.enabled && g();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { c as $ } from "../shared/classes-to-selector.js";
|
|
2
|
-
import { c as
|
|
3
|
-
import { m,
|
|
4
|
-
function
|
|
2
|
+
import { c as F } from "../shared/create-element-if-not-defined.js";
|
|
3
|
+
import { m, a as E, f as T, h as S } from "../shared/utils.js";
|
|
4
|
+
function N(I) {
|
|
5
5
|
let {
|
|
6
6
|
swiper: e,
|
|
7
7
|
extendParams: H,
|
|
8
8
|
on: g,
|
|
9
9
|
emit: v
|
|
10
|
-
} =
|
|
10
|
+
} = I;
|
|
11
11
|
const d = "swiper-pagination";
|
|
12
12
|
H({
|
|
13
13
|
pagination: {
|
|
@@ -54,7 +54,7 @@ function j(O) {
|
|
|
54
54
|
} = e.params.pagination;
|
|
55
55
|
a && (a = a[`${s === "prev" ? "previous" : "next"}ElementSibling`], a && (a.classList.add(`${i}-${s}`), a = a[`${s === "prev" ? "previous" : "next"}ElementSibling`], a && a.classList.add(`${i}-${s}-${s}`)));
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function O(a, s, i) {
|
|
58
58
|
if (a = a % i, s = s % i, s === a + 1)
|
|
59
59
|
return "next";
|
|
60
60
|
if (s === a - 1)
|
|
@@ -68,7 +68,7 @@ function j(O) {
|
|
|
68
68
|
const i = S(s) * e.params.slidesPerGroup;
|
|
69
69
|
if (e.params.loop) {
|
|
70
70
|
if (e.realIndex === i) return;
|
|
71
|
-
const t =
|
|
71
|
+
const t = O(e.realIndex, i, e.slides.length);
|
|
72
72
|
t === "next" ? e.slideNext() : t === "previous" ? e.slidePrev() : e.slideToLoop(i);
|
|
73
73
|
} else
|
|
74
74
|
e.slideTo(i);
|
|
@@ -83,7 +83,7 @@ function j(O) {
|
|
|
83
83
|
if (e.params.loop ? (p = e.previousRealIndex || 0, t = e.params.slidesPerGroup > 1 ? Math.floor(e.realIndex / e.params.slidesPerGroup) : e.realIndex) : typeof e.snapIndex < "u" ? (t = e.snapIndex, p = e.previousSnapIndex) : (p = e.previousIndex || 0, t = e.activeIndex || 0), s.type === "bullets" && e.pagination.bullets && e.pagination.bullets.length > 0) {
|
|
84
84
|
const l = e.pagination.bullets;
|
|
85
85
|
let f, c, L;
|
|
86
|
-
if (s.dynamicBullets && (b =
|
|
86
|
+
if (s.dynamicBullets && (b = T(l[0], e.isHorizontal() ? "width" : "height"), i.forEach((n) => {
|
|
87
87
|
n.style[e.isHorizontal() ? "width" : "height"] = `${b * (s.dynamicMainBullets + 4)}px`;
|
|
88
88
|
}), s.dynamicMainBullets > 1 && p !== void 0 && (u += t - (p || 0), u > s.dynamicMainBullets - 1 ? u = s.dynamicMainBullets - 1 : u < 0 && (u = 0)), f = Math.max(t - u, 0), c = f + (Math.min(l.length, s.dynamicMainBullets) - 1), L = (c + f) / 2), l.forEach((n) => {
|
|
89
89
|
const r = [...["", "-next", "-next-next", "-prev", "-prev-prev", "-main"].map((o) => `${s.bulletActiveClass}${o}`)].map((o) => typeof o == "string" && o.includes(" ") ? o.split(" ") : o).flat();
|
|
@@ -125,7 +125,7 @@ function j(O) {
|
|
|
125
125
|
o.style.transform = `translate3d(0,0,0) scaleX(${n}) scaleY(${r})`, o.style.transitionDuration = `${e.params.speed}ms`;
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
s.type === "custom" && s.renderCustom ? (
|
|
128
|
+
s.type === "custom" && s.renderCustom ? (l.innerHTML = s.renderCustom(e, t + 1, z), f === 0 && v("paginationRender", l)) : (f === 0 && v("paginationRender", l), v("paginationUpdate", l)), e.params.watchOverflow && e.enabled && l.classList[e.isLocked ? "add" : "remove"](s.lockClass);
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
function B() {
|
|
@@ -142,17 +142,17 @@ function j(O) {
|
|
|
142
142
|
a.renderBullet ? t += a.renderBullet.call(e, C, a.bulletClass) : t += `<${a.bulletElement} ${e.isElement ? 'part="bullet"' : ""} class="${a.bulletClass}"></${a.bulletElement}>`;
|
|
143
143
|
}
|
|
144
144
|
a.type === "fraction" && (a.renderFraction ? t = a.renderFraction.call(e, a.currentClass, a.totalClass) : t = `<span class="${a.currentClass}"></span> / <span class="${a.totalClass}"></span>`), a.type === "progressbar" && (a.renderProgressbar ? t = a.renderProgressbar.call(e, a.progressbarFillClass) : t = `<span class="${a.progressbarFillClass}"></span>`), e.pagination.bullets = [], i.forEach((p) => {
|
|
145
|
-
a.type !== "custom" &&
|
|
145
|
+
a.type !== "custom" && (p.innerHTML = t || ""), a.type === "bullets" && e.pagination.bullets.push(...p.querySelectorAll($(a.bulletClass)));
|
|
146
146
|
}), a.type !== "custom" && v("paginationRender", i[0]);
|
|
147
147
|
}
|
|
148
148
|
function A() {
|
|
149
|
-
e.params.pagination =
|
|
149
|
+
e.params.pagination = F(e, e.originalParams.pagination, e.params.pagination, {
|
|
150
150
|
el: "swiper-pagination"
|
|
151
151
|
});
|
|
152
152
|
const a = e.params.pagination;
|
|
153
153
|
if (!a.el) return;
|
|
154
154
|
let s;
|
|
155
|
-
typeof a.el == "string" && e.isElement && (s = e.el.querySelector(a.el)), !s && typeof a.el == "string" && (s = [...document.querySelectorAll(a.el)]), s || (s = a.el), !(!s || s.length === 0) && (e.params.uniqueNavElements && typeof a.el == "string" && Array.isArray(s) && s.length > 1 && (s = [...e.el.querySelectorAll(a.el)], s.length > 1 && (s = s.find((i) =>
|
|
155
|
+
typeof a.el == "string" && e.isElement && (s = e.el.querySelector(a.el)), !s && typeof a.el == "string" && (s = [...document.querySelectorAll(a.el)]), s || (s = a.el), !(!s || s.length === 0) && (e.params.uniqueNavElements && typeof a.el == "string" && Array.isArray(s) && s.length > 1 && (s = [...e.el.querySelectorAll(a.el)], s.length > 1 && (s = s.find((i) => E(i, ".swiper")[0] === e.el))), Array.isArray(s) && s.length === 1 && (s = s[0]), Object.assign(e.pagination, {
|
|
156
156
|
el: s
|
|
157
157
|
}), s = m(s), s.forEach((i) => {
|
|
158
158
|
a.type === "bullets" && a.clickable && i.classList.add(...(a.clickableClass || "").split(" ")), i.classList.add(a.modifierClass + a.type), i.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass), a.type === "bullets" && a.dynamicBullets && (i.classList.add(`${a.modifierClass}${a.type}-dynamic`), u = 0, a.dynamicMainBullets < 1 && (a.dynamicMainBullets = 1)), a.type === "progressbar" && a.progressbarOpposite && i.classList.add(a.progressbarOppositeClass), a.clickable && i.addEventListener("click", D), e.enabled || i.classList.add(a.lockClass);
|
|
@@ -176,7 +176,7 @@ function j(O) {
|
|
|
176
176
|
i.classList.remove(a.horizontalClass, a.verticalClass), i.classList.add(e.isHorizontal() ? a.horizontalClass : a.verticalClass);
|
|
177
177
|
});
|
|
178
178
|
}), g("init", () => {
|
|
179
|
-
e.params.pagination.enabled === !1 ?
|
|
179
|
+
e.params.pagination.enabled === !1 ? P() : (A(), B(), h());
|
|
180
180
|
}), g("activeIndexChange", () => {
|
|
181
181
|
typeof e.snapIndex > "u" && h();
|
|
182
182
|
}), g("snapIndexChange", () => {
|
|
@@ -200,13 +200,13 @@ function j(O) {
|
|
|
200
200
|
v(p === !0 ? "paginationShow" : "paginationHide"), t.forEach((C) => C.classList.toggle(e.params.pagination.hiddenClass));
|
|
201
201
|
}
|
|
202
202
|
});
|
|
203
|
-
const
|
|
203
|
+
const w = () => {
|
|
204
204
|
e.el.classList.remove(e.params.pagination.paginationDisabledClass);
|
|
205
205
|
let {
|
|
206
206
|
el: a
|
|
207
207
|
} = e.pagination;
|
|
208
208
|
a && (a = m(a), a.forEach((s) => s.classList.remove(e.params.pagination.paginationDisabledClass))), A(), B(), h();
|
|
209
|
-
},
|
|
209
|
+
}, P = () => {
|
|
210
210
|
e.el.classList.add(e.params.pagination.paginationDisabledClass);
|
|
211
211
|
let {
|
|
212
212
|
el: a
|
|
@@ -214,8 +214,8 @@ function j(O) {
|
|
|
214
214
|
a && (a = m(a), a.forEach((s) => s.classList.add(e.params.pagination.paginationDisabledClass))), M();
|
|
215
215
|
};
|
|
216
216
|
Object.assign(e.pagination, {
|
|
217
|
-
enable:
|
|
218
|
-
disable:
|
|
217
|
+
enable: w,
|
|
218
|
+
disable: P,
|
|
219
219
|
render: B,
|
|
220
220
|
update: h,
|
|
221
221
|
init: A,
|
|
@@ -223,5 +223,5 @@ function j(O) {
|
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
export {
|
|
226
|
-
|
|
226
|
+
N as default
|
|
227
227
|
};
|
package/dist/node_modules/.pnpm/{swiper@11.2.8 → swiper@11.2.6}/node_modules/swiper/modules/zoom.js
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as he } from "../shared/ssr-window.esm.js";
|
|
2
|
-
import { e as se,
|
|
2
|
+
import { e as se, a as q, b as re, j as oe } from "../shared/utils.js";
|
|
3
3
|
function xe(le) {
|
|
4
4
|
let {
|
|
5
5
|
swiper: a,
|
|
@@ -72,12 +72,12 @@ function xe(le) {
|
|
|
72
72
|
H = i;
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
|
-
function
|
|
75
|
+
function j() {
|
|
76
76
|
if (r.length < 2) return 1;
|
|
77
77
|
const i = r[0].pageX, s = r[0].pageY, n = r[1].pageX, o = r[1].pageY;
|
|
78
78
|
return Math.sqrt((n - i) ** 2 + (o - s) ** 2);
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function k() {
|
|
81
81
|
const i = a.params.zoom, s = t.imageWrapEl.getAttribute("data-swiper-zoom") || i.maxRatio;
|
|
82
82
|
if (i.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
|
|
83
83
|
const n = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
|
|
@@ -100,22 +100,22 @@ function xe(le) {
|
|
|
100
100
|
const s = de();
|
|
101
101
|
return !!(i.target.matches(s) || a.slides.filter((n) => n.contains(i.target)).length > 0);
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function Z(i) {
|
|
104
104
|
const s = `.${a.params.zoom.containerClass}`;
|
|
105
105
|
return !!(i.target.matches(s) || [...a.hostEl.querySelectorAll(s)].filter((n) => n.contains(i.target)).length > 0);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function _(i) {
|
|
108
108
|
if (i.pointerType === "mouse" && r.splice(0, r.length), !M(i)) return;
|
|
109
109
|
const s = a.params.zoom;
|
|
110
110
|
if (w = !1, S = !1, r.push(i), !(r.length < 2)) {
|
|
111
|
-
if (w = !0, t.scaleStart =
|
|
111
|
+
if (w = !0, t.scaleStart = j(), !t.slideEl) {
|
|
112
112
|
t.slideEl = i.target.closest(`.${a.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = a.slides[a.activeIndex]);
|
|
113
113
|
let n = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
114
114
|
if (n && (n = n.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = n, n ? t.imageWrapEl = q(t.imageEl, `.${s.containerClass}`)[0] : t.imageWrapEl = void 0, !t.imageWrapEl) {
|
|
115
115
|
t.imageEl = void 0;
|
|
116
116
|
return;
|
|
117
117
|
}
|
|
118
|
-
t.maxRatio =
|
|
118
|
+
t.maxRatio = k();
|
|
119
119
|
}
|
|
120
120
|
if (t.imageEl) {
|
|
121
121
|
const [n, o] = ue();
|
|
@@ -127,7 +127,7 @@ function xe(le) {
|
|
|
127
127
|
function B(i) {
|
|
128
128
|
if (!M(i)) return;
|
|
129
129
|
const s = a.params.zoom, n = a.zoom, o = r.findIndex((c) => c.pointerId === i.pointerId);
|
|
130
|
-
o >= 0 && (r[o] = i), !(r.length < 2) && (S = !0, t.scaleMove =
|
|
130
|
+
o >= 0 && (r[o] = i), !(r.length < 2) && (S = !0, t.scaleMove = j(), t.imageEl && (n.scale = t.scaleMove / t.scaleStart * u, n.scale > t.maxRatio && (n.scale = t.maxRatio - 1 + (n.scale - t.maxRatio + 1) ** 0.5), n.scale < s.minRatio && (n.scale = s.minRatio + 1 - (s.minRatio - n.scale + 1) ** 0.5), t.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`));
|
|
131
131
|
}
|
|
132
132
|
function F(i) {
|
|
133
133
|
if (!M(i) || i.pointerType === "mouse" && i.type === "pointerout") return;
|
|
@@ -152,7 +152,7 @@ function xe(le) {
|
|
|
152
152
|
}
|
|
153
153
|
function K(i) {
|
|
154
154
|
const n = i.pointerType === "mouse" && a.params.zoom.panOnMouseMove;
|
|
155
|
-
if (!M(i) || !
|
|
155
|
+
if (!M(i) || !Z(i))
|
|
156
156
|
return;
|
|
157
157
|
const o = a.zoom;
|
|
158
158
|
if (!t.imageEl)
|
|
@@ -205,7 +205,7 @@ function xe(le) {
|
|
|
205
205
|
t.slideEl && a.activeIndex !== a.slides.indexOf(t.slideEl) && (t.imageEl && (t.imageEl.style.transform = "translate3d(0,0,0) scale(1)"), t.imageWrapEl && (t.imageWrapEl.style.transform = "translate3d(0,0,0)"), t.slideEl.classList.remove(`${a.params.zoom.zoomedSlideClass}`), i.scale = 1, u = 1, t.slideEl = void 0, t.imageEl = void 0, t.imageWrapEl = void 0, t.originX = 0, t.originY = 0);
|
|
206
206
|
}
|
|
207
207
|
function Q(i) {
|
|
208
|
-
if (u <= 1 || !t.imageWrapEl || !M(i) || !
|
|
208
|
+
if (u <= 1 || !t.imageWrapEl || !M(i) || !Z(i)) return;
|
|
209
209
|
const s = x.getComputedStyle(t.imageWrapEl).transform, n = new x.DOMMatrix(s);
|
|
210
210
|
if (!C) {
|
|
211
211
|
C = !0, v.x = i.clientX, v.y = i.clientY, e.startX = n.e, e.startY = n.f, e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight;
|
|
@@ -227,7 +227,7 @@ function xe(le) {
|
|
|
227
227
|
typeof e.touchesStart.x > "u" && i ? (o = i.pageX, c = i.pageY) : (o = e.touchesStart.x, c = e.touchesStart.y);
|
|
228
228
|
const A = u, y = typeof i == "number" ? i : null;
|
|
229
229
|
u === 1 && y && (o = void 0, c = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0);
|
|
230
|
-
const ne =
|
|
230
|
+
const ne = k();
|
|
231
231
|
s.scale = y || ne, u = y || ne, i && !(u === 1 && y) ? (I = t.slideEl.offsetWidth, O = t.slideEl.offsetHeight, p = re(t.slideEl).left + x.scrollX, g = re(t.slideEl).top + x.scrollY, f = p + I / 2 - o, h = g + O / 2 - c, z = t.imageEl.offsetWidth || t.imageEl.clientWidth, T = t.imageEl.offsetHeight || t.imageEl.clientHeight, X = z * s.scale, Y = T * s.scale, b = Math.min(I / 2 - X / 2, 0), $ = Math.min(O / 2 - Y / 2, 0), L = -b, R = -$, A > 0 && y && typeof e.currentX == "number" && typeof e.currentY == "number" ? (m = e.currentX * s.scale / A, d = e.currentY * s.scale / A) : (m = f * s.scale, d = h * s.scale), m < b && (m = b), m > L && (m = L), d < $ && (d = $), d > R && (d = R)) : (m = 0, d = 0), y && s.scale === 1 && (t.originX = 0, t.originY = 0), e.currentX = m, e.currentY = d, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = `translate3d(${m}px, ${d}px,0)`, t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = `translate3d(0,0,0) scale(${s.scale})`;
|
|
232
232
|
}
|
|
233
233
|
function V() {
|
|
@@ -267,7 +267,7 @@ function xe(le) {
|
|
|
267
267
|
passiveListener: s,
|
|
268
268
|
activeListenerWithCapture: n
|
|
269
269
|
} = te();
|
|
270
|
-
a.wrapperEl.addEventListener("pointerdown",
|
|
270
|
+
a.wrapperEl.addEventListener("pointerdown", _, s), a.wrapperEl.addEventListener("pointermove", B, n), ["pointerup", "pointercancel", "pointerout"].forEach((o) => {
|
|
271
271
|
a.wrapperEl.addEventListener(o, F, s);
|
|
272
272
|
}), a.wrapperEl.addEventListener("pointermove", K, n);
|
|
273
273
|
}
|
|
@@ -279,7 +279,7 @@ function xe(le) {
|
|
|
279
279
|
passiveListener: s,
|
|
280
280
|
activeListenerWithCapture: n
|
|
281
281
|
} = te();
|
|
282
|
-
a.wrapperEl.removeEventListener("pointerdown",
|
|
282
|
+
a.wrapperEl.removeEventListener("pointerdown", _, s), a.wrapperEl.removeEventListener("pointermove", B, n), ["pointerup", "pointercancel", "pointerout"].forEach((o) => {
|
|
283
283
|
a.wrapperEl.removeEventListener(o, F, s);
|
|
284
284
|
}), a.wrapperEl.removeEventListener("pointermove", K, n);
|
|
285
285
|
}
|