@wikicasa-dev/components 2.1.23 → 2.1.24-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/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.js +2 -2
- package/dist/UIKit/BaseAutocomplete.js +1 -1
- package/dist/UIKit/BaseBadge.js +2 -2
- package/dist/UIKit/BaseBreadcrumb.js +1 -1
- package/dist/UIKit/BaseButton.js +1 -1
- package/dist/UIKit/BaseCard.js +2 -2
- package/dist/UIKit/BaseComplexToggle.js +2 -2
- package/dist/UIKit/BaseDropDown.js +1 -1
- package/dist/UIKit/BaseFloatingLabel.js +2 -2
- package/dist/UIKit/BaseIcon.js +2 -2
- package/dist/UIKit/BaseInput.js +2 -2
- package/dist/UIKit/BaseModal.js +2 -2
- package/dist/UIKit/BasePagination.js +1 -1
- package/dist/UIKit/BasePaper.js +2 -2
- package/dist/UIKit/BaseSelect/SelectItem.js +1 -1
- package/dist/UIKit/BaseSlider.js +2 -2
- package/dist/UIKit/BaseSnackbar.d.ts +39 -20
- package/dist/UIKit/BaseSnackbar.js +3 -5
- package/dist/UIKit/BaseTextarea.js +2 -2
- package/dist/UIKit/BaseToggle.js +2 -2
- package/dist/UIKit/BaseTooltip.js +2 -2
- package/dist/UIKit/BaseUploadFile.js +1 -1
- package/dist/UIKit/Checkbox/CheckboxBtn.js +2 -2
- package/dist/UIKit/Checkbox/CheckboxGroup.js +1 -1
- package/dist/UIKit/Radio/RadioButton.js +1 -1
- package/dist/UIKit/Radio/RadioGroup.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +2 -2
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.js +1 -1
- package/dist/UIKit/Slider/SimpleSlider.js +2 -2
- package/dist/UIKit/StaticSpinner.js +2 -2
- package/dist/UIKit/Tab/BaseTab.js +1 -1
- 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/_virtual/polyline.js +1 -1
- package/dist/assets/{packages/components/lib → lib}/UIKit/BaseBadge.css +1 -1
- package/dist/assets/lib/UIKit/BaseCard.css +1 -0
- package/dist/assets/lib/UIKit/BaseComplexToggle.css +1 -0
- package/dist/assets/lib/UIKit/BaseModal.css +1 -0
- package/dist/assets/lib/UIKit/BaseSnackbar.css +1 -0
- package/dist/assets/lib/UIKit/Slider/SimpleSlider.css +1 -0
- package/dist/assets/node_modules/swiper/modules/keyboard.css +0 -0
- package/dist/assets/node_modules/swiper/modules/navigation.css +1 -0
- package/dist/assets/node_modules/swiper/swiper.css +1 -0
- package/dist/assets/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.d.ts +11 -4
- package/dist/components/carousel/SwiperCarousel.js +3 -3
- package/dist/index.js +89 -88
- package/dist/lazyModules/Swiper/autoplay.js +5 -0
- package/dist/lazyModules/Swiper/controller.js +5 -0
- package/dist/lazyModules/Swiper/free-mode.js +5 -0
- package/dist/lazyModules/Swiper/keyboard.js +5 -0
- package/dist/lazyModules/Swiper/navigation.js +5 -0
- package/dist/lazyModules/Swiper/pagination.js +5 -0
- package/dist/lazyModules/Swiper/thumbs.js +5 -0
- package/dist/lib/UIKit/AccessibleSelect.vue.js +211 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordion.vue.js +3 -3
- package/dist/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionContent.vue.js +10 -10
- package/dist/{packages/components/lib → lib}/UIKit/Accordion/BaseAccordionItem.vue.js +54 -54
- package/dist/lib/UIKit/BaseAlert.vue.js +19 -0
- package/dist/lib/UIKit/BaseAutocomplete.vue.js +192 -0
- package/dist/lib/UIKit/BaseBadge.vue.js +19 -0
- package/dist/lib/UIKit/BaseBreadcrumb.vue.js +58 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseButton.vue.js +18 -18
- package/dist/lib/UIKit/BaseCard.vue.js +37 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseComplexToggle.vue.js +29 -29
- package/dist/lib/UIKit/BaseDropDown.vue.js +135 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.vue.js +14 -14
- package/dist/lib/UIKit/BaseIcon.vue.js +27 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseInput.vue.js +86 -86
- package/dist/{packages/components/lib → lib}/UIKit/BaseModal.vue.js +61 -61
- package/dist/{packages/components/lib → lib}/UIKit/BasePagination.vue.js +93 -95
- package/dist/lib/UIKit/BaseSelect/SelectItem.vue.js +41 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseSlider.vue.js +45 -45
- package/dist/lib/UIKit/BaseSnackbar.vue.js +119 -0
- package/dist/{packages/components/lib → lib}/UIKit/BaseTextarea.vue.js +57 -57
- package/dist/{packages/components/lib → lib}/UIKit/BaseToggle.vue.js +15 -15
- package/dist/lib/UIKit/BaseTooltip.vue.js +41 -0
- package/dist/lib/UIKit/BaseUploadFile.vue.js +71 -0
- package/dist/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.vue.js +26 -26
- package/dist/lib/UIKit/Checkbox/CheckboxGroup.vue.js +112 -0
- package/dist/lib/UIKit/Radio/RadioButton.vue.js +58 -0
- package/dist/lib/UIKit/Radio/RadioGroup.vue.js +60 -0
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -8
- package/dist/{packages/components/lib → lib}/UIKit/Slider/SimpleSlider.vue.js +7 -7
- package/dist/{packages/components/lib → lib}/UIKit/StaticSpinner.vue.js +3 -3
- package/dist/lib/UIKit/Tab/BaseTabList.vue.js +45 -0
- package/dist/lib/UIKit/Tab/BaseTabPanel.vue.js +25 -0
- package/dist/lib/UIKit/Tab/BaseTabView.vue.js +107 -0
- package/dist/lib/chart/DoughnutChart.vue.js +27 -0
- package/dist/lib/chart/LineChart.vue.js +42 -0
- package/dist/lib/components/IntersectionObserver/IntersectionObservable.vue.js +24 -0
- package/dist/{packages/components/lib → lib}/components/carousel/SwiperCarousel.vue.js +26 -27
- package/dist/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +41 -0
- package/dist/node_modules/{.pnpm/js-cookie@3.0.5/node_modules/js-cookie → js-cookie}/dist/js.cookie.js +0 -1
- package/dist/node_modules/swiper/modules/autoplay.js +128 -0
- package/dist/node_modules/swiper/modules/controller.js +100 -0
- package/dist/node_modules/swiper/modules/free-mode.js +123 -0
- package/dist/node_modules/swiper/modules/keyboard.js +66 -0
- package/dist/node_modules/swiper/modules/navigation.js +136 -0
- package/dist/node_modules/swiper/modules/pagination.js +226 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/thumbs.js +33 -34
- package/dist/node_modules/swiper/modules/zoom.js +309 -0
- package/dist/node_modules/swiper/shared/classes-to-selector.js +6 -0
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/ssr-window.esm.js +9 -10
- package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/utils.js +42 -39
- package/package.json +34 -30
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css +0 -1
- package/dist/assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/swiper.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseCard.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseComplexToggle.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseModal.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/BaseSnackbar.css +0 -1
- package/dist/assets/packages/components/lib/UIKit/Slider/SimpleSlider.css +0 -1
- package/dist/assets/packages/components/src/tailwind.css +0 -1
- 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 +0 -41
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/autoplay.js +0 -129
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/controller.js +0 -101
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/free-mode.js +0 -125
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js +0 -127
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js +0 -227
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/thumbs.css.js +0 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/zoom.js +0 -310
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/shared/classes-to-selector.js +0 -6
- package/dist/packages/components/lazyModules/Swiper/autoplay.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/controller.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/free-mode.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/keyboard.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/navigation.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/pagination.js +0 -5
- package/dist/packages/components/lazyModules/Swiper/thumbs.js +0 -5
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +0 -213
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +0 -60
- package/dist/packages/components/lib/UIKit/BaseAlert.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +0 -192
- package/dist/packages/components/lib/UIKit/BaseBadge.vue.js +0 -19
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +0 -37
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +0 -137
- package/dist/packages/components/lib/UIKit/BaseIcon.vue.js +0 -27
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +0 -81
- package/dist/packages/components/lib/UIKit/BaseTooltip.vue.js +0 -41
- package/dist/packages/components/lib/UIKit/BaseUploadFile.vue.js +0 -71
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +0 -114
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +0 -58
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +0 -62
- package/dist/packages/components/lib/UIKit/Tab/BaseTabList.vue.js +0 -45
- package/dist/packages/components/lib/UIKit/Tab/BaseTabPanel.vue.js +0 -25
- package/dist/packages/components/lib/UIKit/Tab/BaseTabView.vue.js +0 -107
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +0 -27
- package/dist/packages/components/lib/chart/LineChart.vue.js +0 -42
- package/dist/packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js +0 -24
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseAlert.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseFloatingLabel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseIcon.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseInput.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BasePaper.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseSlider.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTextarea.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseToggle.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/BaseTooltip.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/Checkbox/CheckboxBtn.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/ShimmerLoader/BaseShimmerLoader.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/UIKit/StaticSpinner.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel.css +0 -0
- /package/dist/assets/{packages/components/lib → lib}/components/carousel/SwiperCarousel2.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/modules/zoom.css +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/BasePaper.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/UIKit/Tab/BaseTab.vue.js +0 -0
- /package/dist/{packages/components/lib → lib}/components/IntersectionObserver/IntersectionObserver.vue.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev → @wikicasa-dev}/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/@wikicasa-dev_utilities@1.1.21/node_modules/@wikicasa-dev → @wikicasa-dev}/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/decode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/encode.js +0 -0
- /package/dist/node_modules/{.pnpm/google-polyline@1.0.3/node_modules/google-polyline → google-polyline}/lib/polyline.js +0 -0
- /package/dist/node_modules/{.pnpm/swiper@11.2.6/node_modules/swiper → swiper}/shared/create-element-if-not-defined.js +0 -0
|
@@ -1,310 +0,0 @@
|
|
|
1
|
-
import { a as he } from "../shared/ssr-window.esm.js";
|
|
2
|
-
import { e as se, a as q, b as re, j as oe } from "../shared/utils.js";
|
|
3
|
-
function xe(le) {
|
|
4
|
-
let {
|
|
5
|
-
swiper: a,
|
|
6
|
-
extendParams: ce,
|
|
7
|
-
on: E,
|
|
8
|
-
emit: me
|
|
9
|
-
} = le;
|
|
10
|
-
const x = he();
|
|
11
|
-
ce({
|
|
12
|
-
zoom: {
|
|
13
|
-
enabled: !1,
|
|
14
|
-
limitToOriginalSize: !1,
|
|
15
|
-
maxRatio: 3,
|
|
16
|
-
minRatio: 1,
|
|
17
|
-
panOnMouseMove: !1,
|
|
18
|
-
toggle: !0,
|
|
19
|
-
containerClass: "swiper-zoom-container",
|
|
20
|
-
zoomedSlideClass: "swiper-slide-zoomed"
|
|
21
|
-
}
|
|
22
|
-
}), a.zoom = {
|
|
23
|
-
enabled: !1
|
|
24
|
-
};
|
|
25
|
-
let u = 1, D = !1, C = !1, v = {
|
|
26
|
-
x: 0,
|
|
27
|
-
y: 0
|
|
28
|
-
};
|
|
29
|
-
const G = -3;
|
|
30
|
-
let w, S;
|
|
31
|
-
const r = [], t = {
|
|
32
|
-
originX: 0,
|
|
33
|
-
originY: 0,
|
|
34
|
-
slideEl: void 0,
|
|
35
|
-
slideWidth: void 0,
|
|
36
|
-
slideHeight: void 0,
|
|
37
|
-
imageEl: void 0,
|
|
38
|
-
imageWrapEl: void 0,
|
|
39
|
-
maxRatio: 3
|
|
40
|
-
}, e = {
|
|
41
|
-
isTouched: void 0,
|
|
42
|
-
isMoved: void 0,
|
|
43
|
-
currentX: void 0,
|
|
44
|
-
currentY: void 0,
|
|
45
|
-
minX: void 0,
|
|
46
|
-
minY: void 0,
|
|
47
|
-
maxX: void 0,
|
|
48
|
-
maxY: void 0,
|
|
49
|
-
width: void 0,
|
|
50
|
-
height: void 0,
|
|
51
|
-
startX: void 0,
|
|
52
|
-
startY: void 0,
|
|
53
|
-
touchesStart: {},
|
|
54
|
-
touchesCurrent: {}
|
|
55
|
-
}, l = {
|
|
56
|
-
x: void 0,
|
|
57
|
-
y: void 0,
|
|
58
|
-
prevPositionX: void 0,
|
|
59
|
-
prevPositionY: void 0,
|
|
60
|
-
prevTime: void 0
|
|
61
|
-
};
|
|
62
|
-
let H = 1;
|
|
63
|
-
Object.defineProperty(a.zoom, "scale", {
|
|
64
|
-
get() {
|
|
65
|
-
return H;
|
|
66
|
-
},
|
|
67
|
-
set(i) {
|
|
68
|
-
if (H !== i) {
|
|
69
|
-
const s = t.imageEl, n = t.slideEl;
|
|
70
|
-
me("zoomChange", i, s, n);
|
|
71
|
-
}
|
|
72
|
-
H = i;
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
function j() {
|
|
76
|
-
if (r.length < 2) return 1;
|
|
77
|
-
const i = r[0].pageX, s = r[0].pageY, n = r[1].pageX, o = r[1].pageY;
|
|
78
|
-
return Math.sqrt((n - i) ** 2 + (o - s) ** 2);
|
|
79
|
-
}
|
|
80
|
-
function k() {
|
|
81
|
-
const i = a.params.zoom, s = t.imageWrapEl.getAttribute("data-swiper-zoom") || i.maxRatio;
|
|
82
|
-
if (i.limitToOriginalSize && t.imageEl && t.imageEl.naturalWidth) {
|
|
83
|
-
const n = t.imageEl.naturalWidth / t.imageEl.offsetWidth;
|
|
84
|
-
return Math.min(n, s);
|
|
85
|
-
}
|
|
86
|
-
return s;
|
|
87
|
-
}
|
|
88
|
-
function ue() {
|
|
89
|
-
if (r.length < 2) return {
|
|
90
|
-
x: null,
|
|
91
|
-
y: null
|
|
92
|
-
};
|
|
93
|
-
const i = t.imageEl.getBoundingClientRect();
|
|
94
|
-
return [(r[0].pageX + (r[1].pageX - r[0].pageX) / 2 - i.x - x.scrollX) / u, (r[0].pageY + (r[1].pageY - r[0].pageY) / 2 - i.y - x.scrollY) / u];
|
|
95
|
-
}
|
|
96
|
-
function de() {
|
|
97
|
-
return a.isElement ? "swiper-slide" : `.${a.params.slideClass}`;
|
|
98
|
-
}
|
|
99
|
-
function M(i) {
|
|
100
|
-
const s = de();
|
|
101
|
-
return !!(i.target.matches(s) || a.slides.filter((n) => n.contains(i.target)).length > 0);
|
|
102
|
-
}
|
|
103
|
-
function Z(i) {
|
|
104
|
-
const s = `.${a.params.zoom.containerClass}`;
|
|
105
|
-
return !!(i.target.matches(s) || [...a.hostEl.querySelectorAll(s)].filter((n) => n.contains(i.target)).length > 0);
|
|
106
|
-
}
|
|
107
|
-
function _(i) {
|
|
108
|
-
if (i.pointerType === "mouse" && r.splice(0, r.length), !M(i)) return;
|
|
109
|
-
const s = a.params.zoom;
|
|
110
|
-
if (w = !1, S = !1, r.push(i), !(r.length < 2)) {
|
|
111
|
-
if (w = !0, t.scaleStart = j(), !t.slideEl) {
|
|
112
|
-
t.slideEl = i.target.closest(`.${a.params.slideClass}, swiper-slide`), t.slideEl || (t.slideEl = a.slides[a.activeIndex]);
|
|
113
|
-
let n = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
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
|
-
t.imageEl = void 0;
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
t.maxRatio = k();
|
|
119
|
-
}
|
|
120
|
-
if (t.imageEl) {
|
|
121
|
-
const [n, o] = ue();
|
|
122
|
-
t.originX = n, t.originY = o, t.imageEl.style.transitionDuration = "0ms";
|
|
123
|
-
}
|
|
124
|
-
D = !0;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
function B(i) {
|
|
128
|
-
if (!M(i)) return;
|
|
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 = 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
|
-
}
|
|
132
|
-
function F(i) {
|
|
133
|
-
if (!M(i) || i.pointerType === "mouse" && i.type === "pointerout") return;
|
|
134
|
-
const s = a.params.zoom, n = a.zoom, o = r.findIndex((c) => c.pointerId === i.pointerId);
|
|
135
|
-
o >= 0 && r.splice(o, 1), !(!w || !S) && (w = !1, S = !1, t.imageEl && (n.scale = Math.max(Math.min(n.scale, t.maxRatio), s.minRatio), t.imageEl.style.transitionDuration = `${a.params.speed}ms`, t.imageEl.style.transform = `translate3d(0,0,0) scale(${n.scale})`, u = n.scale, D = !1, n.scale > 1 && t.slideEl ? t.slideEl.classList.add(`${s.zoomedSlideClass}`) : n.scale <= 1 && t.slideEl && t.slideEl.classList.remove(`${s.zoomedSlideClass}`), n.scale === 1 && (t.originX = 0, t.originY = 0, t.slideEl = void 0)));
|
|
136
|
-
}
|
|
137
|
-
let J;
|
|
138
|
-
function P() {
|
|
139
|
-
a.touchEventsData.preventTouchMoveFromPointerMove = !1;
|
|
140
|
-
}
|
|
141
|
-
function fe() {
|
|
142
|
-
clearTimeout(J), a.touchEventsData.preventTouchMoveFromPointerMove = !0, J = setTimeout(() => {
|
|
143
|
-
a.destroyed || P();
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
function pe(i) {
|
|
147
|
-
const s = a.device;
|
|
148
|
-
if (!t.imageEl || e.isTouched) return;
|
|
149
|
-
s.android && i.cancelable && i.preventDefault(), e.isTouched = !0;
|
|
150
|
-
const n = r.length > 0 ? r[0] : i;
|
|
151
|
-
e.touchesStart.x = n.pageX, e.touchesStart.y = n.pageY;
|
|
152
|
-
}
|
|
153
|
-
function K(i) {
|
|
154
|
-
const n = i.pointerType === "mouse" && a.params.zoom.panOnMouseMove;
|
|
155
|
-
if (!M(i) || !Z(i))
|
|
156
|
-
return;
|
|
157
|
-
const o = a.zoom;
|
|
158
|
-
if (!t.imageEl)
|
|
159
|
-
return;
|
|
160
|
-
if (!e.isTouched || !t.slideEl) {
|
|
161
|
-
n && Q(i);
|
|
162
|
-
return;
|
|
163
|
-
}
|
|
164
|
-
if (n) {
|
|
165
|
-
Q(i);
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
e.isMoved || (e.width = t.imageEl.offsetWidth || t.imageEl.clientWidth, e.height = t.imageEl.offsetHeight || t.imageEl.clientHeight, e.startX = oe(t.imageWrapEl, "x") || 0, e.startY = oe(t.imageWrapEl, "y") || 0, t.slideWidth = t.slideEl.offsetWidth, t.slideHeight = t.slideEl.offsetHeight, t.imageWrapEl.style.transitionDuration = "0ms");
|
|
169
|
-
const c = e.width * o.scale, p = e.height * o.scale;
|
|
170
|
-
if (e.minX = Math.min(t.slideWidth / 2 - c / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - p / 2, 0), e.maxY = -e.minY, e.touchesCurrent.x = r.length > 0 ? r[0].pageX : i.pageX, e.touchesCurrent.y = r.length > 0 ? r[0].pageY : i.pageY, Math.max(Math.abs(e.touchesCurrent.x - e.touchesStart.x), Math.abs(e.touchesCurrent.y - e.touchesStart.y)) > 5 && (a.allowClick = !1), !e.isMoved && !D) {
|
|
171
|
-
if (a.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)) {
|
|
172
|
-
e.isTouched = !1, P();
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
if (!a.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)) {
|
|
176
|
-
e.isTouched = !1, P();
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
i.cancelable && i.preventDefault(), i.stopPropagation(), fe(), e.isMoved = !0;
|
|
181
|
-
const f = (o.scale - u) / (t.maxRatio - a.params.zoom.minRatio), {
|
|
182
|
-
originX: h,
|
|
183
|
-
originY: m
|
|
184
|
-
} = t;
|
|
185
|
-
e.currentX = e.touchesCurrent.x - e.touchesStart.x + e.startX + f * (e.width - h * 2), e.currentY = e.touchesCurrent.y - e.touchesStart.y + e.startY + f * (e.height - m * 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), l.prevPositionX || (l.prevPositionX = e.touchesCurrent.x), l.prevPositionY || (l.prevPositionY = e.touchesCurrent.y), l.prevTime || (l.prevTime = Date.now()), l.x = (e.touchesCurrent.x - l.prevPositionX) / (Date.now() - l.prevTime) / 2, l.y = (e.touchesCurrent.y - l.prevPositionY) / (Date.now() - l.prevTime) / 2, Math.abs(e.touchesCurrent.x - l.prevPositionX) < 2 && (l.x = 0), Math.abs(e.touchesCurrent.y - l.prevPositionY) < 2 && (l.y = 0), l.prevPositionX = e.touchesCurrent.x, l.prevPositionY = e.touchesCurrent.y, l.prevTime = Date.now(), t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
186
|
-
}
|
|
187
|
-
function ge() {
|
|
188
|
-
const i = a.zoom;
|
|
189
|
-
if (r.length = 0, !t.imageEl) return;
|
|
190
|
-
if (!e.isTouched || !e.isMoved) {
|
|
191
|
-
e.isTouched = !1, e.isMoved = !1;
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
e.isTouched = !1, e.isMoved = !1;
|
|
195
|
-
let s = 300, n = 300;
|
|
196
|
-
const o = l.x * s, c = e.currentX + o, p = l.y * n, g = e.currentY + p;
|
|
197
|
-
l.x !== 0 && (s = Math.abs((c - e.currentX) / l.x)), l.y !== 0 && (n = Math.abs((g - e.currentY) / l.y));
|
|
198
|
-
const f = Math.max(s, n);
|
|
199
|
-
e.currentX = c, e.currentY = g;
|
|
200
|
-
const h = e.width * i.scale, m = e.height * i.scale;
|
|
201
|
-
e.minX = Math.min(t.slideWidth / 2 - h / 2, 0), e.maxX = -e.minX, e.minY = Math.min(t.slideHeight / 2 - m / 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), t.imageWrapEl.style.transitionDuration = `${f}ms`, t.imageWrapEl.style.transform = `translate3d(${e.currentX}px, ${e.currentY}px,0)`;
|
|
202
|
-
}
|
|
203
|
-
function N() {
|
|
204
|
-
const i = a.zoom;
|
|
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
|
-
}
|
|
207
|
-
function Q(i) {
|
|
208
|
-
if (u <= 1 || !t.imageWrapEl || !M(i) || !Z(i)) return;
|
|
209
|
-
const s = x.getComputedStyle(t.imageWrapEl).transform, n = new x.DOMMatrix(s);
|
|
210
|
-
if (!C) {
|
|
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;
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
const o = (i.clientX - v.x) * G, c = (i.clientY - v.y) * G, p = e.width * u, g = e.height * u, f = t.slideWidth, h = t.slideHeight, m = Math.min(f / 2 - p / 2, 0), d = -m, z = Math.min(h / 2 - g / 2, 0), T = -z, X = Math.max(Math.min(e.startX + o, d), m), Y = Math.max(Math.min(e.startY + c, T), z);
|
|
215
|
-
t.imageWrapEl.style.transitionDuration = "0ms", t.imageWrapEl.style.transform = `translate3d(${X}px, ${Y}px, 0)`, v.x = i.clientX, v.y = i.clientY, e.startX = X, e.startY = Y, e.currentX = X, e.currentY = Y;
|
|
216
|
-
}
|
|
217
|
-
function U(i) {
|
|
218
|
-
const s = a.zoom, n = a.params.zoom;
|
|
219
|
-
if (!t.slideEl) {
|
|
220
|
-
i && i.target && (t.slideEl = i.target.closest(`.${a.params.slideClass}, swiper-slide`)), t.slideEl || (a.params.virtual && a.params.virtual.enabled && a.virtual ? t.slideEl = se(a.slidesEl, `.${a.params.slideActiveClass}`)[0] : t.slideEl = a.slides[a.activeIndex]);
|
|
221
|
-
let W = t.slideEl.querySelector(`.${n.containerClass}`);
|
|
222
|
-
W && (W = W.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]), t.imageEl = W, W ? t.imageWrapEl = q(t.imageEl, `.${n.containerClass}`)[0] : t.imageWrapEl = void 0;
|
|
223
|
-
}
|
|
224
|
-
if (!t.imageEl || !t.imageWrapEl) return;
|
|
225
|
-
a.params.cssMode && (a.wrapperEl.style.overflow = "hidden", a.wrapperEl.style.touchAction = "none"), t.slideEl.classList.add(`${n.zoomedSlideClass}`);
|
|
226
|
-
let o, c, p, g, f, h, m, d, z, T, X, Y, b, $, L, R, I, O;
|
|
227
|
-
typeof e.touchesStart.x > "u" && i ? (o = i.pageX, c = i.pageY) : (o = e.touchesStart.x, c = e.touchesStart.y);
|
|
228
|
-
const A = u, y = typeof i == "number" ? i : null;
|
|
229
|
-
u === 1 && y && (o = void 0, c = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0);
|
|
230
|
-
const ne = k();
|
|
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
|
-
}
|
|
233
|
-
function V() {
|
|
234
|
-
const i = a.zoom, s = a.params.zoom;
|
|
235
|
-
if (!t.slideEl) {
|
|
236
|
-
a.params.virtual && a.params.virtual.enabled && a.virtual ? t.slideEl = se(a.slidesEl, `.${a.params.slideActiveClass}`)[0] : t.slideEl = a.slides[a.activeIndex];
|
|
237
|
-
let n = t.slideEl.querySelector(`.${s.containerClass}`);
|
|
238
|
-
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;
|
|
239
|
-
}
|
|
240
|
-
!t.imageEl || !t.imageWrapEl || (a.params.cssMode && (a.wrapperEl.style.overflow = "", a.wrapperEl.style.touchAction = ""), i.scale = 1, u = 1, e.currentX = void 0, e.currentY = void 0, e.touchesStart.x = void 0, e.touchesStart.y = void 0, t.imageWrapEl.style.transitionDuration = "300ms", t.imageWrapEl.style.transform = "translate3d(0,0,0)", t.imageEl.style.transitionDuration = "300ms", t.imageEl.style.transform = "translate3d(0,0,0) scale(1)", t.slideEl.classList.remove(`${s.zoomedSlideClass}`), t.slideEl = void 0, t.originX = 0, t.originY = 0, a.params.zoom.panOnMouseMove && (v = {
|
|
241
|
-
x: 0,
|
|
242
|
-
y: 0
|
|
243
|
-
}, C && (C = !1, e.startX = 0, e.startY = 0)));
|
|
244
|
-
}
|
|
245
|
-
function ee(i) {
|
|
246
|
-
const s = a.zoom;
|
|
247
|
-
s.scale && s.scale !== 1 ? V() : U(i);
|
|
248
|
-
}
|
|
249
|
-
function te() {
|
|
250
|
-
const i = a.params.passiveListeners ? {
|
|
251
|
-
passive: !0,
|
|
252
|
-
capture: !1
|
|
253
|
-
} : !1, s = a.params.passiveListeners ? {
|
|
254
|
-
passive: !1,
|
|
255
|
-
capture: !0
|
|
256
|
-
} : !0;
|
|
257
|
-
return {
|
|
258
|
-
passiveListener: i,
|
|
259
|
-
activeListenerWithCapture: s
|
|
260
|
-
};
|
|
261
|
-
}
|
|
262
|
-
function ie() {
|
|
263
|
-
const i = a.zoom;
|
|
264
|
-
if (i.enabled) return;
|
|
265
|
-
i.enabled = !0;
|
|
266
|
-
const {
|
|
267
|
-
passiveListener: s,
|
|
268
|
-
activeListenerWithCapture: n
|
|
269
|
-
} = te();
|
|
270
|
-
a.wrapperEl.addEventListener("pointerdown", _, s), a.wrapperEl.addEventListener("pointermove", B, n), ["pointerup", "pointercancel", "pointerout"].forEach((o) => {
|
|
271
|
-
a.wrapperEl.addEventListener(o, F, s);
|
|
272
|
-
}), a.wrapperEl.addEventListener("pointermove", K, n);
|
|
273
|
-
}
|
|
274
|
-
function ae() {
|
|
275
|
-
const i = a.zoom;
|
|
276
|
-
if (!i.enabled) return;
|
|
277
|
-
i.enabled = !1;
|
|
278
|
-
const {
|
|
279
|
-
passiveListener: s,
|
|
280
|
-
activeListenerWithCapture: n
|
|
281
|
-
} = te();
|
|
282
|
-
a.wrapperEl.removeEventListener("pointerdown", _, s), a.wrapperEl.removeEventListener("pointermove", B, n), ["pointerup", "pointercancel", "pointerout"].forEach((o) => {
|
|
283
|
-
a.wrapperEl.removeEventListener(o, F, s);
|
|
284
|
-
}), a.wrapperEl.removeEventListener("pointermove", K, n);
|
|
285
|
-
}
|
|
286
|
-
E("init", () => {
|
|
287
|
-
a.params.zoom.enabled && ie();
|
|
288
|
-
}), E("destroy", () => {
|
|
289
|
-
ae();
|
|
290
|
-
}), E("touchStart", (i, s) => {
|
|
291
|
-
a.zoom.enabled && pe(s);
|
|
292
|
-
}), E("touchEnd", (i, s) => {
|
|
293
|
-
a.zoom.enabled && ge();
|
|
294
|
-
}), E("doubleTap", (i, s) => {
|
|
295
|
-
!a.animating && a.params.zoom.enabled && a.zoom.enabled && a.params.zoom.toggle && ee(s);
|
|
296
|
-
}), E("transitionEnd", () => {
|
|
297
|
-
a.zoom.enabled && a.params.zoom.enabled && N();
|
|
298
|
-
}), E("slideChange", () => {
|
|
299
|
-
a.zoom.enabled && a.params.zoom.enabled && a.params.cssMode && N();
|
|
300
|
-
}), Object.assign(a.zoom, {
|
|
301
|
-
enable: ie,
|
|
302
|
-
disable: ae,
|
|
303
|
-
in: U,
|
|
304
|
-
out: V,
|
|
305
|
-
toggle: ee
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
export {
|
|
309
|
-
xe as default
|
|
310
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.js";
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/navigation.css';/* empty css */
|
|
3
|
-
export {
|
|
4
|
-
i as Navigation
|
|
5
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { default as i } from "../../../../node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.js";
|
|
2
|
-
import '../../../../assets/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/pagination.css';/* empty css */
|
|
3
|
-
export {
|
|
4
|
-
i as Pagination
|
|
5
|
-
};
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { defineComponent as F, mergeModels as $, useModel as M, useId as A, computed as V, ref as L, watch as w, onMounted as E, onUnmounted as P, createElementBlock as s, openBlock as a, normalizeClass as l, createElementVNode as o, createCommentVNode as d, withModifiers as p, renderSlot as z, unref as b, createBlock as N, createVNode as O, Fragment as T, renderList as S } from "vue";
|
|
2
|
-
import { useKeyboardController as q } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
-
import { ArrowIcon as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
-
import { WarningIconRounded as K } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
|
-
const R = ["id", "innerHTML"], U = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], W = ["innerHTML"], G = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, J = ["innerHTML"], Q = ["data-cy"], X = ["id", "aria-selected", "onClick", "onMouseover"], Y = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Z = ["name", "checked", "onInput"], x = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], se = /* @__PURE__ */ F({
|
|
7
|
-
inheritAttrs: !1,
|
|
8
|
-
__name: "AccessibleSelect",
|
|
9
|
-
props: /* @__PURE__ */ $({
|
|
10
|
-
label: { default: "" },
|
|
11
|
-
dropdownPosition: { default: "bottom" },
|
|
12
|
-
namespace: {},
|
|
13
|
-
options: {},
|
|
14
|
-
isValid: { type: [Boolean, null], default: null },
|
|
15
|
-
feedback: {},
|
|
16
|
-
closeOnBodyPressed: { type: Boolean, default: !0 },
|
|
17
|
-
border: { type: Boolean, default: !0 },
|
|
18
|
-
fieldsetClasses: {},
|
|
19
|
-
legendClasses: {},
|
|
20
|
-
dropdownClasses: {},
|
|
21
|
-
labelClasses: {},
|
|
22
|
-
btnClasses: {},
|
|
23
|
-
dropdownItemClasses: {},
|
|
24
|
-
btnTextClasses: {},
|
|
25
|
-
arrowIcon: {},
|
|
26
|
-
dataCy: {},
|
|
27
|
-
wrapperClasses: {}
|
|
28
|
-
}, {
|
|
29
|
-
modelValue: {
|
|
30
|
-
default: () => ({ id: "", label: "" })
|
|
31
|
-
},
|
|
32
|
-
modelModifiers: {},
|
|
33
|
-
toggleDropdown: {
|
|
34
|
-
default: void 0
|
|
35
|
-
},
|
|
36
|
-
toggleDropdownModifiers: {}
|
|
37
|
-
}),
|
|
38
|
-
emits: /* @__PURE__ */ $(["click", "update:dropdownState"], ["update:modelValue", "update:toggleDropdown"]),
|
|
39
|
-
setup(u, { emit: B }) {
|
|
40
|
-
const h = B, k = M(u, "modelValue"), y = M(u, "toggleDropdown"), H = A(), t = V(() => u.namespace || H), i = L(!1), I = L(null), f = V(() => !!k.value.label), { activeIdx: c, selectedIdx: D } = q({
|
|
41
|
-
optionsLength: u.options.length,
|
|
42
|
-
isDropdownOpen: i
|
|
43
|
-
}), m = (e) => {
|
|
44
|
-
i.value = !1, k.value = e;
|
|
45
|
-
};
|
|
46
|
-
w(D, (e) => {
|
|
47
|
-
m(u.options[e]), i.value = !1;
|
|
48
|
-
}), w(y, (e) => {
|
|
49
|
-
e && (i.value = !i.value, y.value = !1);
|
|
50
|
-
}), w(i, (e) => {
|
|
51
|
-
h("update:dropdownState", e);
|
|
52
|
-
});
|
|
53
|
-
const g = ({ target: e }) => {
|
|
54
|
-
`${t.value}_btn` !== e.id && (i.value = !1);
|
|
55
|
-
};
|
|
56
|
-
return E(() => {
|
|
57
|
-
u.closeOnBodyPressed && document.addEventListener("click", g);
|
|
58
|
-
}), P(() => {
|
|
59
|
-
u.closeOnBodyPressed && document.removeEventListener("click", g);
|
|
60
|
-
}), (e, n) => (a(), s("div", {
|
|
61
|
-
class: l(e.$attrs.class)
|
|
62
|
-
}, [
|
|
63
|
-
o("div", {
|
|
64
|
-
class: l(["uikit-relative uikit-flex uikit-h-12 uikit-items-center", e.wrapperClasses])
|
|
65
|
-
}, [
|
|
66
|
-
e.label ? (a(), s("label", {
|
|
67
|
-
key: 0,
|
|
68
|
-
id: `${t.value}_label`,
|
|
69
|
-
class: l(["uikit-pointer-events-none uikit-absolute uikit-z-10 uikit-text-sm uikit-font-medium uikit-transition-all uikit-ease-in-out", [
|
|
70
|
-
f.value ? "as-floating -uikit-top-1 uikit-left-[22px] uikit-text-w-black" : "as-inline uikit-top-4 uikit-text-w-gray",
|
|
71
|
-
e.labelClasses,
|
|
72
|
-
{ "uikit-left-9": e.$slots.lefticon && !f.value },
|
|
73
|
-
{ "uikit-left-4": !e.$slots.lefticon && !f.value }
|
|
74
|
-
]]),
|
|
75
|
-
innerHTML: e.label
|
|
76
|
-
}, null, 10, R)) : d("", !0),
|
|
77
|
-
e.$slots.lefticon ? (a(), s("span", {
|
|
78
|
-
key: 1,
|
|
79
|
-
class: "uikit-z-20 uikit-mt-2 uikit-pl-2",
|
|
80
|
-
onClick: n[0] || (n[0] = p((r) => i.value = !i.value, ["stop"]))
|
|
81
|
-
}, [
|
|
82
|
-
z(e.$slots, "lefticon")
|
|
83
|
-
])) : d("", !0),
|
|
84
|
-
o("button", {
|
|
85
|
-
id: `${t.value}_btn`,
|
|
86
|
-
ref_key: "btnEl",
|
|
87
|
-
ref: I,
|
|
88
|
-
type: "button",
|
|
89
|
-
"data-cy": e.dataCy,
|
|
90
|
-
class: l(["uikit-peer uikit-relative uikit-z-10 uikit-flex uikit-h-full uikit-w-full uikit-items-center uikit-justify-between uikit-truncate uikit-border-0 uikit-bg-transparent uikit-pr-4 uikit-text-left focus-visible:uikit-outline-0", [e.$slots.lefticon ? "uikit-pl-2" : "uikit-pl-4", e.btnClasses]]),
|
|
91
|
-
"aria-required": !!e.$attrs.required,
|
|
92
|
-
role: "combobox",
|
|
93
|
-
"aria-haspopup": "listbox",
|
|
94
|
-
"aria-controls": `${t.value}_dropdown`,
|
|
95
|
-
"aria-labelledby": `${t.value}_label ${t.value}_btn`,
|
|
96
|
-
"aria-expanded": i.value,
|
|
97
|
-
"aria-activedescendant": b(c) >= 0 && i.value ? `${t.value}_element_${e.options[b(c)].label}` : "",
|
|
98
|
-
"aria-invalid": e.isValid === !1,
|
|
99
|
-
"aria-describedby": e.isValid === !1 ? `${t.value}_invalid_msg` : void 0,
|
|
100
|
-
onClick: n[1] || (n[1] = (r) => {
|
|
101
|
-
i.value = !i.value, h("click", r);
|
|
102
|
-
})
|
|
103
|
-
}, [
|
|
104
|
-
o("span", {
|
|
105
|
-
class: l(["uikit-pointer-events-none uikit-mt-1", e.btnTextClasses]),
|
|
106
|
-
innerHTML: k.value.visibleLabel || k.value.label
|
|
107
|
-
}, null, 10, W),
|
|
108
|
-
o("span", G, [
|
|
109
|
-
e.isValid == !1 ? (a(), N(b(K), {
|
|
110
|
-
key: 0,
|
|
111
|
-
class: "uikit-mr-1",
|
|
112
|
-
width: 20,
|
|
113
|
-
height: 20,
|
|
114
|
-
"stroke-color": "#FA4F64"
|
|
115
|
-
})) : d("", !0),
|
|
116
|
-
O(b(j), {
|
|
117
|
-
class: l(["uikit-transition-transform motion-reduce:uikit-transition-none", [
|
|
118
|
-
i.value ? "uikit-rotate-180" : "",
|
|
119
|
-
e.arrowIcon?.classes
|
|
120
|
-
]]),
|
|
121
|
-
width: e.arrowIcon?.width ?? 18,
|
|
122
|
-
height: e.arrowIcon?.height ?? 18,
|
|
123
|
-
"stroke-color": e.isValid ? "#2B5DFF" : e.isValid === !1 ? "#FA4F64" : e.arrowIcon?.strokeColor ?? "#222"
|
|
124
|
-
}, null, 8, ["class", "width", "height", "stroke-color"])
|
|
125
|
-
])
|
|
126
|
-
], 10, U),
|
|
127
|
-
o("fieldset", {
|
|
128
|
-
"aria-hidden": "true",
|
|
129
|
-
class: l(["uikit-pointer-events-none uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-m-0 uikit-box-border uikit-h-12 uikit-cursor-pointer uikit-rounded-xs uikit-bg-white uikit-px-2 uikit-py-0 peer-focus:uikit-border-2", [
|
|
130
|
-
e.fieldsetClasses,
|
|
131
|
-
e.isValid ? "uikit-border-w-primary" : e.isValid === !1 ? "uikit-border-w-danger" : "uikit-border-w-secondary",
|
|
132
|
-
{
|
|
133
|
-
"uikit-border uikit-border-solid peer-focus:uikit-border-w-primary peer-focus-visible:uikit-border-2 peer-focus-visible:uikit-border-w-primary peer-aria-invalid:uikit-border-w-danger": e.border
|
|
134
|
-
},
|
|
135
|
-
{ "uikit-border-0 peer-focus:uikit-border-0": !e.border }
|
|
136
|
-
]])
|
|
137
|
-
}, [
|
|
138
|
-
o("legend", {
|
|
139
|
-
class: l([[e.legendClasses, { "uikit-m-0 uikit-w-0": !e.label }], "uikit-ml-2 uikit-h-3 uikit-px-0 uikit-text-sm"])
|
|
140
|
-
}, [
|
|
141
|
-
e.label ? (a(), s("span", {
|
|
142
|
-
key: 0,
|
|
143
|
-
class: l(["uikit-mx-5px", [k.value.label ? "uikit-invisible" : "uikit-hidden"]]),
|
|
144
|
-
innerHTML: e.label
|
|
145
|
-
}, null, 10, J)) : d("", !0)
|
|
146
|
-
], 2)
|
|
147
|
-
], 2),
|
|
148
|
-
o("ul", {
|
|
149
|
-
"data-cy": e.dataCy && `${e.dataCy}_dropdown`,
|
|
150
|
-
role: "listbox",
|
|
151
|
-
tabindex: -1,
|
|
152
|
-
"aria-multiselectable": !1,
|
|
153
|
-
class: l(["uikit-absolute uikit-z-30 uikit-m-0 uikit-max-h-[225px] uikit-w-full uikit-min-w-full uikit-list-none uikit-overflow-y-auto uikit-p-0 uikit-no-scrollbar", [
|
|
154
|
-
{ "uikit-h-0 uikit-w-0 uikit-overflow-hidden": !i.value },
|
|
155
|
-
{
|
|
156
|
-
"uikit-rounded-xs uikit-border uikit-border-solid uikit-border-w-secondary uikit-bg-white": i.value
|
|
157
|
-
},
|
|
158
|
-
{ "uikit-bottom-[55px]": e.dropdownPosition === "top" },
|
|
159
|
-
{ "uikit-top-[55px]": e.dropdownPosition === "bottom" },
|
|
160
|
-
e.dropdownClasses
|
|
161
|
-
]]),
|
|
162
|
-
onClick: n[3] || (n[3] = p(() => {
|
|
163
|
-
}, ["stop"]))
|
|
164
|
-
}, [
|
|
165
|
-
(a(!0), s(T, null, S(e.options, (r, v) => (a(), s("li", {
|
|
166
|
-
id: `${t.value}_element_${e.options[v].label}`,
|
|
167
|
-
key: `${r.label}_${v}`,
|
|
168
|
-
role: "option",
|
|
169
|
-
"aria-selected": b(c) === v,
|
|
170
|
-
class: l(["uikit-m-1 uikit-cursor-pointer uikit-px-20px uikit-py-10px uikit-text aria-selected:uikit-rounded-xs aria-selected:uikit-bg-w-cultured", e.dropdownItemClasses]),
|
|
171
|
-
onClick: p((C) => m(r), ["stop"]),
|
|
172
|
-
onMouseover: p((C) => c.value = v, ["stop"]),
|
|
173
|
-
onBlur: n[2] || (n[2] = p(() => {
|
|
174
|
-
}, ["stop"]))
|
|
175
|
-
}, [
|
|
176
|
-
o("label", Y, [
|
|
177
|
-
o("input", {
|
|
178
|
-
tabindex: "-1",
|
|
179
|
-
class: "uikit-m-0 uikit-appearance-none",
|
|
180
|
-
name: `${t.value}_radio`,
|
|
181
|
-
type: "radio",
|
|
182
|
-
checked: r.label === k.value.label,
|
|
183
|
-
onInput: p((C) => m(r), ["stop"])
|
|
184
|
-
}, null, 40, Z),
|
|
185
|
-
o("span", {
|
|
186
|
-
innerHTML: r.label
|
|
187
|
-
}, null, 8, x)
|
|
188
|
-
])
|
|
189
|
-
], 42, X))), 128))
|
|
190
|
-
], 10, Q)
|
|
191
|
-
], 2),
|
|
192
|
-
e.feedback ? (a(), s(T, { key: 0 }, [
|
|
193
|
-
e.feedback.valid ? (a(), s("span", {
|
|
194
|
-
key: 0,
|
|
195
|
-
id: `${t.value}_valid_msg`,
|
|
196
|
-
"arial-live": e.$attrs["aria-live"],
|
|
197
|
-
class: "uikit-mt-1 uikit-inline-block uikit-text-12",
|
|
198
|
-
innerHTML: e.isValid ? e.feedback.valid : ""
|
|
199
|
-
}, null, 8, _)) : d("", !0),
|
|
200
|
-
e.feedback.invalid ? (a(), s("span", {
|
|
201
|
-
key: 1,
|
|
202
|
-
id: `${t.value}_invalid_msg`,
|
|
203
|
-
"arial-live": e.$attrs["aria-live"],
|
|
204
|
-
class: "uikit-mt-1 uikit-inline-block uikit-text-12 uikit-text-w-danger",
|
|
205
|
-
innerHTML: e.isValid === !1 ? e.feedback.invalid : ""
|
|
206
|
-
}, null, 8, ee)) : d("", !0)
|
|
207
|
-
], 64)) : d("", !0)
|
|
208
|
-
], 2));
|
|
209
|
-
}
|
|
210
|
-
});
|
|
211
|
-
export {
|
|
212
|
-
se as default
|
|
213
|
-
};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as e, renderSlot as n, createElementVNode as c, withModifiers as p, createVNode as u, unref as k } from "vue";
|
|
2
|
-
import { ArrowIcon as m } from "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
-
import "../../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
|
-
const f = ["id"], g = ["aria-expanded", "aria-controls"], b = /* @__PURE__ */ s({
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "BaseAccordionBtn",
|
|
7
|
-
props: {
|
|
8
|
-
id: {},
|
|
9
|
-
arrowWidth: { default: 12 },
|
|
10
|
-
arrowColor: {},
|
|
11
|
-
onContainerClickExpand: { type: Boolean, default: !1 },
|
|
12
|
-
accordionOpen: { type: Boolean, default: !1 },
|
|
13
|
-
toggleAccordion: { type: Function }
|
|
14
|
-
},
|
|
15
|
-
emits: ["click"],
|
|
16
|
-
setup(C, { emit: i }) {
|
|
17
|
-
const r = i;
|
|
18
|
-
return (o, t) => (d(), l("div", {
|
|
19
|
-
id: `${o.id}`,
|
|
20
|
-
class: e(["uikit-flex uikit-items-center uikit-justify-around", [
|
|
21
|
-
o.$attrs["btn-wrapper-classes"],
|
|
22
|
-
o.onContainerClickExpand ? "uikit-cursor-pointer" : ""
|
|
23
|
-
]]),
|
|
24
|
-
onClick: t[1] || (t[1] = (a) => o.onContainerClickExpand && o.toggleAccordion())
|
|
25
|
-
}, [
|
|
26
|
-
n(o.$slots, "custom_content"),
|
|
27
|
-
n(o.$slots, "custom_btn", {
|
|
28
|
-
btnId: `btn-${o.id}`,
|
|
29
|
-
isOpen: o.accordionOpen,
|
|
30
|
-
toggleAccordion: o.toggleAccordion
|
|
31
|
-
}, () => [
|
|
32
|
-
c("button", {
|
|
33
|
-
type: "button",
|
|
34
|
-
class: e(["uikit-border-0 uikit-bg-transparent", o.$attrs["btn-classes"]]),
|
|
35
|
-
"aria-expanded": o.accordionOpen,
|
|
36
|
-
"aria-controls": `accordion-text-${o.id}`,
|
|
37
|
-
onClick: t[0] || (t[0] = p((a) => {
|
|
38
|
-
o.toggleAccordion(), r("click");
|
|
39
|
-
}, ["prevent", "stop"]))
|
|
40
|
-
}, [
|
|
41
|
-
u(k(m), {
|
|
42
|
-
class: e([
|
|
43
|
-
"uikit-transition-transform motion-reduce:uikit-transition-none",
|
|
44
|
-
[
|
|
45
|
-
o.accordionOpen ? "uikit-rotate-180" : "",
|
|
46
|
-
o.$attrs["arrow-classes"]
|
|
47
|
-
]
|
|
48
|
-
]),
|
|
49
|
-
"stroke-color": o.arrowColor ?? "#222",
|
|
50
|
-
width: o.arrowWidth,
|
|
51
|
-
height: o.arrowWidth
|
|
52
|
-
}, null, 8, ["stroke-color", "class", "width", "height"])
|
|
53
|
-
], 10, g)
|
|
54
|
-
])
|
|
55
|
-
], 10, f));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
b as default
|
|
60
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, createElementBlock as r, openBlock as s, normalizeClass as a, renderSlot as l } from "vue";
|
|
2
|
-
const o = ["id"], p = /* @__PURE__ */ t({
|
|
3
|
-
__name: "BaseAlert",
|
|
4
|
-
props: {
|
|
5
|
-
alertClass: { default: "" }
|
|
6
|
-
},
|
|
7
|
-
setup(n) {
|
|
8
|
-
return (e, i) => (s(), r("div", {
|
|
9
|
-
id: e.$attrs.id,
|
|
10
|
-
class: a(["uikit-alert", e.alertClass]),
|
|
11
|
-
role: "alert"
|
|
12
|
-
}, [
|
|
13
|
-
l(e.$slots, "default")
|
|
14
|
-
], 10, o));
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
p as default
|
|
19
|
-
};
|