@wikicasa-dev/components 2.1.6 → 2.1.7
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/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/controller.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.js +1 -1
- package/dist/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/keyboard.js +67 -0
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/pagination.js +17 -17
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/zoom.js +13 -13
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/shared/classes-to-selector.js +1 -1
- package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/shared/utils.js +32 -26
- 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 +4 -4
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +10 -9
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionBtn.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +5 -4
- package/dist/packages/components/lib/UIKit/BaseBreadcrumb.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +3 -3
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +13 -12
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +25 -26
- package/dist/packages/components/lib/UIKit/BaseSlider.vue.js +45 -45
- package/dist/packages/components/lib/UIKit/BaseSnackbar.vue.js +2 -2
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +12 -11
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +10 -10
- package/package.json +1 -1
- package/dist/node_modules/.pnpm/swiper@11.2.6/node_modules/swiper/modules/keyboard.js +0 -67
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/free-mode.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/navigation.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/pagination.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/zoom.css +0 -0
- /package/dist/assets/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/swiper.css +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_svg-icons@1.2.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_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.11_typescript@5.8.3 → @wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_utilities@1.1.21 → @wikicasa-dev_utilities@1.1.22-alpha.4}/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/node_modules/.pnpm/{@wikicasa-dev_vue-composables@0.0.23_typescript@5.8.3 → @wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/autoplay.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/controller.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/keyboard.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/navigation.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/modules/thumbs.css.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@11.2.6 → swiper@11.2.10}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as L, mergeModels as b, useId as M, useModel as E, ref as h, computed as O, useTemplateRef as W, watch as n, onBeforeMount as $, onMounted as H, onUnmounted as K, createElementBlock as N, openBlock as u, withModifiers as C, normalizeClass as i, renderSlot as g, createBlock as y, createVNode as T, unref as l, withCtx as D, createElementVNode as V, createCommentVNode as q, resolveDynamicComponent as z } from "vue";
|
|
2
2
|
import R from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
4
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
5
|
-
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.
|
|
3
|
+
import { ArrowIcon as U } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as j } from "../../../../node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.5_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
6
|
const F = ["innerHTML"], Z = /* @__PURE__ */ L({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseDropDown",
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { defineComponent as T, ref as n, useTemplateRef as z, onUnmounted as H, watch as I, createBlock as O, openBlock as k, Teleport as $, createElementVNode as s, normalizeClass as o, withModifiers as v, createElementBlock as y, createCommentVNode as h, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
2
|
import "../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
3
|
+
import "date-fns";
|
|
4
|
+
import { isWindows as w } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
5
|
+
import { awaitableSetTimeout as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
5
6
|
import "../../../../_virtual/polyline.js";
|
|
6
|
-
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
7
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
8
|
-
const F = ["id", "data-cy"], U = ["innerHTML"],
|
|
7
|
+
import { CloseIcon as V } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
8
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
9
|
+
const F = ["id", "data-cy"], U = ["innerHTML"], Q = /* @__PURE__ */ T({
|
|
9
10
|
__name: "BaseModal",
|
|
10
11
|
props: {
|
|
11
12
|
id: { default: "base-bt-modal" },
|
|
@@ -28,12 +29,12 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
28
29
|
},
|
|
29
30
|
emits: ["closed", "opened", "dialogClick"],
|
|
30
31
|
setup(l, { emit: C }) {
|
|
31
|
-
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1),
|
|
32
|
+
const r = C, t = n(!1), m = n(null), a = z("modalDialog"), c = n(!1), u = n(!1), p = ({ key: e }) => {
|
|
32
33
|
e === "Escape" && i();
|
|
33
34
|
}, g = () => {
|
|
34
|
-
document?.body.addEventListener("keydown",
|
|
35
|
-
},
|
|
36
|
-
document?.body.removeEventListener("keydown",
|
|
35
|
+
document?.body.addEventListener("keydown", p);
|
|
36
|
+
}, f = () => {
|
|
37
|
+
document?.body.removeEventListener("keydown", p);
|
|
37
38
|
}, M = async () => {
|
|
38
39
|
t.value = !0, N(() => {
|
|
39
40
|
g(), w() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
@@ -53,12 +54,12 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
53
54
|
await i();
|
|
54
55
|
}
|
|
55
56
|
}, i = async () => {
|
|
56
|
-
t.value = !1,
|
|
57
|
+
t.value = !1, f(), document?.documentElement.classList.remove("uikit-no-scrolling"), navigator.userAgent.includes("Windows") ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling"), await S(() => {
|
|
57
58
|
m.value?.classList.add("uikit-hidden"), r("closed");
|
|
58
59
|
}, 250);
|
|
59
60
|
};
|
|
60
61
|
return H(() => {
|
|
61
|
-
|
|
62
|
+
f(), document?.documentElement.classList.remove("uikit-no-scrolling"), w() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
62
63
|
}), I(
|
|
63
64
|
() => l.showModal,
|
|
64
65
|
async (e) => {
|
|
@@ -142,5 +143,5 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
142
143
|
}
|
|
143
144
|
});
|
|
144
145
|
export {
|
|
145
|
-
|
|
146
|
+
Q as default
|
|
146
147
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as U, mergeModels as F, useModel as O, computed as k, createElementBlock as a, openBlock as r, createCommentVNode as s, createElementVNode as w, normalizeClass as N, createVNode as M, unref as L, toDisplayString as c, Fragment as b, createBlock as
|
|
2
|
-
import { ArrowIcon as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
1
|
+
import { defineComponent as U, mergeModels as F, useModel as O, computed as k, createElementBlock as a, openBlock as r, createCommentVNode as s, createElementVNode as w, normalizeClass as N, createVNode as M, unref as L, toDisplayString as c, Fragment as b, createBlock as h, resolveDynamicComponent as f, mergeProps as p, withCtx as d, createTextVNode as g, renderList as j } from "vue";
|
|
2
|
+
import { ArrowIcon as S } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const T = {
|
|
5
5
|
"aria-label": "Page navigation",
|
|
6
6
|
class: "uikit-overflow-auto"
|
|
@@ -33,7 +33,7 @@ const T = {
|
|
|
33
33
|
prevDataCy: {},
|
|
34
34
|
nextDataCy: {},
|
|
35
35
|
linkProps: {},
|
|
36
|
-
linkTag: { default: "a" },
|
|
36
|
+
linkTag: { type: [Object, Function, String], default: "a" },
|
|
37
37
|
baseUrl: {},
|
|
38
38
|
pageQueryParameter: { default: "p" },
|
|
39
39
|
formatter: { type: Function }
|
|
@@ -55,7 +55,7 @@ const T = {
|
|
|
55
55
|
for (; i < l.value - 1 && t < n.siblings; )
|
|
56
56
|
i++, t++;
|
|
57
57
|
return t;
|
|
58
|
-
}),
|
|
58
|
+
}), $ = k(() => {
|
|
59
59
|
const e = C.value + /* Filling with the remaining right siblings */
|
|
60
60
|
Math.abs(P.value - n.siblings) + /* If there is no suspension points on the right, let's fill it */
|
|
61
61
|
new Number(!x.value).valueOf() + /* If the pageNumber is the same of the last, let's fill it */
|
|
@@ -64,7 +64,7 @@ const T = {
|
|
|
64
64
|
const t = [];
|
|
65
65
|
for (i; i < (u.value || 0); i++) t.push(i);
|
|
66
66
|
return t;
|
|
67
|
-
}),
|
|
67
|
+
}), D = k(() => {
|
|
68
68
|
const e = P.value + /* Filling with the remaining left siblings */
|
|
69
69
|
Math.abs(C.value - n.siblings) + /* If there is no suspension points on the left, let's fill it */
|
|
70
70
|
new Number(!y.value).valueOf() + /* If the pageNumber is the same of the firstPage, let's fill it */
|
|
@@ -81,7 +81,7 @@ const T = {
|
|
|
81
81
|
if (n.baseUrl)
|
|
82
82
|
try {
|
|
83
83
|
const i = new URL(n.baseUrl);
|
|
84
|
-
return e === 1
|
|
84
|
+
return e === 1 ? i.toString() : (i.searchParams.set(n.pageQueryParameter, `${e}`), `${i.pathname}${i.search}`);
|
|
85
85
|
} catch (i) {
|
|
86
86
|
console.error(i);
|
|
87
87
|
return;
|
|
@@ -111,29 +111,29 @@ const T = {
|
|
|
111
111
|
key: 0,
|
|
112
112
|
onClick: i[1] || (i[1] = (t) => v(0))
|
|
113
113
|
}, [
|
|
114
|
-
(r(), f(
|
|
114
|
+
(r(), h(f(m.value), p({
|
|
115
115
|
href: o(1),
|
|
116
116
|
to: o(1),
|
|
117
117
|
class: "page uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
118
118
|
}, e.linkProps), {
|
|
119
|
-
default:
|
|
119
|
+
default: d(() => i[4] || (i[4] = [
|
|
120
120
|
g(" 1 ")
|
|
121
121
|
])),
|
|
122
|
-
_: 1
|
|
122
|
+
_: 1,
|
|
123
|
+
__: [4]
|
|
123
124
|
}, 16, ["href", "to"]))
|
|
124
125
|
])) : s("", !0),
|
|
125
126
|
y.value ? (r(), a("li", Q, " ... ")) : s("", !0),
|
|
126
|
-
(r(!0), a(b, null, j(
|
|
127
|
+
(r(!0), a(b, null, j($.value, (t) => (r(), a("li", {
|
|
127
128
|
key: t,
|
|
128
129
|
onClick: (B) => v(t)
|
|
129
130
|
}, [
|
|
130
|
-
(r(), f(
|
|
131
|
+
(r(), h(f(m.value), p({
|
|
131
132
|
href: o(t),
|
|
132
133
|
to: o(t),
|
|
133
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
default: p(() => [
|
|
134
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
135
|
+
}, { ref_for: !0 }, e.linkProps), {
|
|
136
|
+
default: d(() => [
|
|
137
137
|
g(c(e.formatter ? e.formatter(t) : t), 1)
|
|
138
138
|
]),
|
|
139
139
|
_: 2
|
|
@@ -141,31 +141,30 @@ const T = {
|
|
|
141
141
|
], 8, z))), 128))
|
|
142
142
|
], 64)),
|
|
143
143
|
w("li", null, [
|
|
144
|
-
(r(), f(
|
|
144
|
+
(r(), h(f(m.value), p({
|
|
145
145
|
href: o(u.value),
|
|
146
146
|
to: o(u.value),
|
|
147
147
|
class: ["selected uikit-pointer-events-none uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline", {
|
|
148
148
|
"uikit-bg-w-primary uikit-text-white hover:uikit-bg-w-primary hover:uikit-text-white": !e.small
|
|
149
149
|
}]
|
|
150
150
|
}, e.linkProps), {
|
|
151
|
-
default:
|
|
151
|
+
default: d(() => [
|
|
152
152
|
g(c(e.formatter ? e.formatter(u.value) : u.value), 1)
|
|
153
153
|
]),
|
|
154
154
|
_: 1
|
|
155
155
|
}, 16, ["href", "to", "class"]))
|
|
156
156
|
]),
|
|
157
157
|
e.small ? s("", !0) : (r(), a(b, { key: 1 }, [
|
|
158
|
-
(r(!0), a(b, null, j(
|
|
158
|
+
(r(!0), a(b, null, j(D.value, (t) => (r(), a("li", {
|
|
159
159
|
key: t,
|
|
160
160
|
onClick: (B) => v(t)
|
|
161
161
|
}, [
|
|
162
|
-
(r(), f(
|
|
162
|
+
(r(), h(f(m.value), p({
|
|
163
163
|
href: o(t),
|
|
164
164
|
to: o(t),
|
|
165
|
-
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
default: p(() => [
|
|
165
|
+
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
166
|
+
}, { ref_for: !0 }, e.linkProps), {
|
|
167
|
+
default: d(() => [
|
|
169
168
|
g(c(e.formatter ? e.formatter(t) : t), 1)
|
|
170
169
|
]),
|
|
171
170
|
_: 2
|
|
@@ -176,12 +175,12 @@ const T = {
|
|
|
176
175
|
key: 1,
|
|
177
176
|
onClick: i[2] || (i[2] = (t) => v(l.value))
|
|
178
177
|
}, [
|
|
179
|
-
(r(), f(
|
|
178
|
+
(r(), h(f(m.value), p({
|
|
180
179
|
href: o(l.value),
|
|
181
180
|
to: o(l.value),
|
|
182
181
|
class: "uikit-flex uikit-h-30px uikit-min-w-[30px] uikit-cursor-pointer uikit-select-none uikit-items-center uikit-justify-center uikit-rounded-circle uikit-p-5px uikit-no-underline hover:uikit-bg-w-primary hover:uikit-text-white"
|
|
183
182
|
}, e.linkProps), {
|
|
184
|
-
default:
|
|
183
|
+
default: d(() => [
|
|
185
184
|
g(c(e.formatter ? e.formatter(l.value) : l.value), 1)
|
|
186
185
|
]),
|
|
187
186
|
_: 1
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as R, mergeModels as _, useModel as w, ref as p, useTemplateRef as D, useAttrs as j, onMounted as q, createElementBlock as G, openBlock as H, createElementVNode as x, withModifiers as T, createVNode as k } from "vue";
|
|
2
|
+
import C from "../../../../UIKit/BaseInput.js";
|
|
3
|
+
const J = { class: "range_container" }, K = { class: "sliders_control" }, O = ["value", "min", "max", "step"], Q = ["value", "min", "max", "step"], W = { class: "form_control row" }, X = { class: "pb-15 pb-sm-0 col-sm-6 col-xl-4" }, Y = { class: "col-sm-6 col-xl-4" }, ae = /* @__PURE__ */ R({
|
|
4
4
|
__name: "BaseSlider",
|
|
5
|
-
props: /* @__PURE__ */
|
|
5
|
+
props: /* @__PURE__ */ _({
|
|
6
6
|
type: { default: "linear" },
|
|
7
7
|
min: { default: 0 },
|
|
8
8
|
max: { default: 100 }
|
|
@@ -14,11 +14,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
14
14
|
}),
|
|
15
15
|
emits: ["update:minValue", "update:maxValue"],
|
|
16
16
|
setup(m) {
|
|
17
|
-
function
|
|
17
|
+
function B(e, l) {
|
|
18
18
|
const a = parseInt(e.value, 10), t = parseInt(l.value, 10);
|
|
19
19
|
return [a, t];
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const E = (e) => e.minPos + (Math.log(e.value) - e.minlval) / e.scale, L = (e) => Math.exp(
|
|
22
22
|
(e.position - e.minPos) * e.scale + e.minlval
|
|
23
23
|
);
|
|
24
24
|
function V(e, l, a, t, v) {
|
|
@@ -32,39 +32,39 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
32
32
|
${a} ${$ / s * 100}%,
|
|
33
33
|
${a} 100%)`;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function h(e, l) {
|
|
36
36
|
e <= 0 ? l.style.zIndex = "2" : l.style.zIndex = "0";
|
|
37
37
|
}
|
|
38
|
-
const r =
|
|
38
|
+
const r = w(m, "minValue"), o = w(m, "maxValue"), n = p(0), u = p(100), c = p(10), d = p(40), F = p(0), M = p(0), y = p(0), g = D("fromSlider"), i = D("toSlider"), P = (e, l) => {
|
|
39
39
|
if (!g.value || !i.value) return;
|
|
40
40
|
l || (l = "0");
|
|
41
41
|
const a = parseInt(l, 10);
|
|
42
42
|
if (e == "min-input") {
|
|
43
43
|
if (a >= o.value) return;
|
|
44
|
-
r.value = a,
|
|
44
|
+
r.value = a, z(i.value, a, o.value);
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
47
|
-
a < r.value || (o.value = a,
|
|
47
|
+
a < r.value || (o.value = a, A(i.value, i.value, r.value, a));
|
|
48
48
|
}, I = (e) => {
|
|
49
49
|
if (m.type === "logarithmic")
|
|
50
50
|
return e = e || 1, parseInt(
|
|
51
|
-
|
|
51
|
+
E({
|
|
52
52
|
value: e,
|
|
53
53
|
minPos: n.value,
|
|
54
54
|
minlval: F.value,
|
|
55
|
-
scale:
|
|
55
|
+
scale: y.value
|
|
56
56
|
}).toFixed(0),
|
|
57
57
|
10
|
|
58
58
|
);
|
|
59
59
|
if (m.type === "linear")
|
|
60
60
|
return e;
|
|
61
61
|
throw new Error("The slider type has not been implemented");
|
|
62
|
-
},
|
|
62
|
+
}, S = (e) => {
|
|
63
63
|
if (m.type === "logarithmic")
|
|
64
64
|
return e = e || 1, parseInt(
|
|
65
|
-
|
|
65
|
+
L({
|
|
66
66
|
position: e,
|
|
67
|
-
scale:
|
|
67
|
+
scale: y.value,
|
|
68
68
|
minlval: F.value,
|
|
69
69
|
minPos: n.value
|
|
70
70
|
}).toFixed(0),
|
|
@@ -73,7 +73,7 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
73
73
|
if (m.type === "linear")
|
|
74
74
|
return e;
|
|
75
75
|
throw new Error("The slider type has not been implemented");
|
|
76
|
-
},
|
|
76
|
+
}, z = (e, l, a) => {
|
|
77
77
|
const t = I(l), v = I(a);
|
|
78
78
|
V(
|
|
79
79
|
t,
|
|
@@ -88,7 +88,7 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
88
88
|
);
|
|
89
89
|
const s = t, f = o.value;
|
|
90
90
|
s > f ? c.value = f : c.value = s;
|
|
91
|
-
},
|
|
91
|
+
}, A = (e, l, a, t) => {
|
|
92
92
|
const v = I(a), s = I(t);
|
|
93
93
|
V(
|
|
94
94
|
v,
|
|
@@ -102,10 +102,10 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
102
102
|
l
|
|
103
103
|
);
|
|
104
104
|
const f = r.value, $ = s;
|
|
105
|
-
|
|
106
|
-
},
|
|
105
|
+
h(o.value, e), f <= $ ? d.value = $ : d.value = f;
|
|
106
|
+
}, N = (e, l) => {
|
|
107
107
|
if (!l.value) return;
|
|
108
|
-
const [a, t] =
|
|
108
|
+
const [a, t] = B(e, l), v = S(a);
|
|
109
109
|
V(
|
|
110
110
|
a,
|
|
111
111
|
{
|
|
@@ -117,9 +117,9 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
117
117
|
"#2B5DFF",
|
|
118
118
|
l
|
|
119
119
|
), a > t ? (e.value = `${t}`, c.value = t, r.value = t) : (c.value = a, r.value = v);
|
|
120
|
-
},
|
|
120
|
+
}, U = (e, l) => {
|
|
121
121
|
if (!l.value) return;
|
|
122
|
-
const [a, t] =
|
|
122
|
+
const [a, t] = B(e, l), v = S(t);
|
|
123
123
|
V(
|
|
124
124
|
c.value,
|
|
125
125
|
{
|
|
@@ -130,11 +130,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
130
130
|
"#B4C2F0",
|
|
131
131
|
"#2B5DFF",
|
|
132
132
|
l
|
|
133
|
-
),
|
|
134
|
-
},
|
|
133
|
+
), h(parseInt(l.value, 10), l), a <= t ? (d.value = t, o.value = v) : (l.value = `${a}`, d.value = a, o.value = a);
|
|
134
|
+
}, b = j();
|
|
135
135
|
return (() => {
|
|
136
|
-
n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${
|
|
137
|
-
})(),
|
|
136
|
+
n.value = parseInt(`${m.min || 0}`, 10), u.value = parseInt(`${m.max || 100}`, 10), c.value = n.value, d.value = u.value, r.value = parseInt(`${b.minValue || n.value}`, 10), o.value = parseInt(`${b.maxValue || u.value}`, 10), F.value = Math.log(r.value || 1), M.value = Math.log(o.value), y.value = (M.value - F.value) / (u.value - n.value);
|
|
137
|
+
})(), q(() => {
|
|
138
138
|
!g.value || !i.value || (V(
|
|
139
139
|
c.value,
|
|
140
140
|
{
|
|
@@ -145,9 +145,9 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
145
145
|
"#B4C2F0",
|
|
146
146
|
"#2B5DFF",
|
|
147
147
|
i.value
|
|
148
|
-
),
|
|
149
|
-
}), (e, l) => (
|
|
150
|
-
x("div",
|
|
148
|
+
), h(d.value, i.value));
|
|
149
|
+
}), (e, l) => (H(), G("div", J, [
|
|
150
|
+
x("div", K, [
|
|
151
151
|
x("input", {
|
|
152
152
|
ref_key: "fromSlider",
|
|
153
153
|
ref: g,
|
|
@@ -157,11 +157,11 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
157
157
|
min: n.value,
|
|
158
158
|
max: u.value,
|
|
159
159
|
step: e.$attrs.step,
|
|
160
|
-
onInput: l[0] || (l[0] =
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
onInput: l[0] || (l[0] = T((a) => N(
|
|
161
|
+
g.value,
|
|
162
|
+
i.value
|
|
163
163
|
), ["stop"]))
|
|
164
|
-
}, null, 40,
|
|
164
|
+
}, null, 40, O),
|
|
165
165
|
x("input", {
|
|
166
166
|
ref_key: "toSlider",
|
|
167
167
|
ref: i,
|
|
@@ -171,31 +171,31 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
171
171
|
min: n.value,
|
|
172
172
|
max: u.value,
|
|
173
173
|
step: e.$attrs.step,
|
|
174
|
-
onInput: l[1] || (l[1] =
|
|
175
|
-
|
|
176
|
-
|
|
174
|
+
onInput: l[1] || (l[1] = T((a) => U(
|
|
175
|
+
g.value,
|
|
176
|
+
i.value
|
|
177
177
|
), ["stop"]))
|
|
178
|
-
}, null, 40,
|
|
178
|
+
}, null, 40, Q)
|
|
179
179
|
]),
|
|
180
|
-
x("div",
|
|
181
|
-
x("div",
|
|
182
|
-
C
|
|
180
|
+
x("div", W, [
|
|
181
|
+
x("div", X, [
|
|
182
|
+
k(C, {
|
|
183
183
|
"label-text": "Min",
|
|
184
184
|
type: "text",
|
|
185
185
|
pattern: "[0-9]*",
|
|
186
186
|
inputmode: "numeric",
|
|
187
187
|
"model-value": r.value,
|
|
188
|
-
"onUpdate:modelValue": l[2] || (l[2] = (a) =>
|
|
188
|
+
"onUpdate:modelValue": l[2] || (l[2] = (a) => P("min-input", `${a || ""}`))
|
|
189
189
|
}, null, 8, ["model-value"])
|
|
190
190
|
]),
|
|
191
|
-
x("div",
|
|
192
|
-
C
|
|
191
|
+
x("div", Y, [
|
|
192
|
+
k(C, {
|
|
193
193
|
"label-text": "Max",
|
|
194
194
|
type: "text",
|
|
195
195
|
pattern: "[0-9]*",
|
|
196
196
|
inputmode: "numeric",
|
|
197
197
|
"model-value": o.value,
|
|
198
|
-
"onUpdate:modelValue": l[3] || (l[3] = (a) =>
|
|
198
|
+
"onUpdate:modelValue": l[3] || (l[3] = (a) => P("max-input", `${a || ""}`))
|
|
199
199
|
}, null, 8, ["model-value"])
|
|
200
200
|
])
|
|
201
201
|
])
|
|
@@ -203,5 +203,5 @@ const K = { class: "range_container" }, O = { class: "sliders_control" }, Q = ["
|
|
|
203
203
|
}
|
|
204
204
|
});
|
|
205
205
|
export {
|
|
206
|
-
|
|
206
|
+
ae as default
|
|
207
207
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, ref as u, onBeforeMount as f, createBlock as h, openBlock as i, Teleport as y, createElementVNode as e, withModifiers as l, normalizeClass as x, createElementBlock as a, createCommentVNode as s, createVNode as v, unref as _ } from "vue";
|
|
2
|
-
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
3
|
-
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.
|
|
2
|
+
import { CloseIcon as C } from "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../../../node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.15-alpha.1_vue@3.5.16_typescript@5.8.3_/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const g = { class: "snackbar-container uikit-fixed uikit-bottom-10px uikit-left-10px uikit-z-[2000] max-sm:uikit-left-0 max-sm:uikit-w-full" }, T = ["data-cy"], w = ["src", "alt"], L = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "snackbar-type-icon uikit-bg-contain uikit-bg-no-repeat"
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as y, ref as v, computed as h, watch as x, renderSlot as m, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as b, Fragment as A, renderList as I, createBlock as R, unref as K } from "vue";
|
|
2
|
-
import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
2
|
+
import { isArrNullOrEmpty as V } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
|
|
3
3
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
4
|
-
import
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { stringToHyphened as L } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js";
|
|
5
6
|
import "../../../../../_virtual/polyline.js";
|
|
6
7
|
import G from "../../../../../UIKit/Checkbox/CheckboxBtn.js";
|
|
7
|
-
const N = ["id", "data-cy"],
|
|
8
|
+
const N = ["id", "data-cy"], H = /* @__PURE__ */ y({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "CheckboxGroup",
|
|
10
11
|
props: {
|
|
@@ -17,15 +18,15 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
|
17
18
|
autoCheckResetAll: { type: Boolean, default: !1 },
|
|
18
19
|
autoCheckResetEmpty: { type: Boolean, default: !1 },
|
|
19
20
|
manualToggleResetButton: { type: Boolean, default: !1 },
|
|
20
|
-
getKey: { default() {
|
|
21
|
-
return (
|
|
21
|
+
getKey: { type: Function, default() {
|
|
22
|
+
return (n) => typeof n == "string" || typeof n == "number" ? `${n}` : `${n.id}`;
|
|
22
23
|
} },
|
|
23
24
|
groupId: { default: "" },
|
|
24
25
|
dataCy: { default: "" }
|
|
25
26
|
},
|
|
26
27
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
27
|
-
setup(
|
|
28
|
-
const o =
|
|
28
|
+
setup(n, { emit: g }) {
|
|
29
|
+
const o = n, r = g, c = v(/* @__PURE__ */ new Map()), s = h(() => {
|
|
29
30
|
for (const e of o.checkboxData)
|
|
30
31
|
if (e.reset) return e;
|
|
31
32
|
return null;
|
|
@@ -42,7 +43,7 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
|
42
43
|
`${t.id}`,
|
|
43
44
|
t
|
|
44
45
|
), t.checked && e.push(t);
|
|
45
|
-
|
|
46
|
+
r("update:modelValue", e);
|
|
46
47
|
})();
|
|
47
48
|
const u = (e, t) => {
|
|
48
49
|
const a = c.value.get(e);
|
|
@@ -58,7 +59,7 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
|
58
59
|
e.checked = !1;
|
|
59
60
|
});
|
|
60
61
|
}, p = () => {
|
|
61
|
-
k(),
|
|
62
|
+
k(), r("update:modelValue", []), r("resetted");
|
|
62
63
|
}, d = (e) => c.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
|
|
63
64
|
if (V(o.checkboxData)) return;
|
|
64
65
|
const t = c.value.get(e.id);
|
|
@@ -68,7 +69,7 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
|
68
69
|
const a = [];
|
|
69
70
|
c.value.forEach((l) => {
|
|
70
71
|
l.checked && a.push(l);
|
|
71
|
-
}),
|
|
72
|
+
}), r("update:modelValue", a), r("checkedGroup", o.groupId);
|
|
72
73
|
};
|
|
73
74
|
return x(
|
|
74
75
|
() => o.reset,
|
|
@@ -110,5 +111,5 @@ const N = ["id", "data-cy"], F = /* @__PURE__ */ y({
|
|
|
110
111
|
}
|
|
111
112
|
});
|
|
112
113
|
export {
|
|
113
|
-
|
|
114
|
+
H as default
|
|
114
115
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent as J, reactive as Q, ref as k, useId as U, computed as f, onMounted as X, watch as Y, nextTick as M, createElementBlock as l, openBlock as u, normalizeClass as p, createElementVNode as v, createCommentVNode as y, renderSlot as E, Fragment as P, renderList as F, mergeProps as T, withModifiers as O } from "vue";
|
|
2
2
|
import { Swiper as B } from "swiper";
|
|
3
|
-
import x from "../../../../../node_modules/.pnpm/swiper@11.2.
|
|
4
|
-
import '../../../../../assets/node_modules/.pnpm/swiper@11.2.
|
|
5
|
-
/* empty css
|
|
3
|
+
import x from "../../../../../node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/zoom.js";
|
|
4
|
+
import '../../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@11.2.10/node_modules/swiper/swiper.css';/* empty css */
|
|
5
|
+
/* empty css */
|
|
6
6
|
import "../../../../../node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.js";
|
|
7
|
-
import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.
|
|
7
|
+
import { shallowCopyObjectTo as _ } from "../../../../../node_modules/.pnpm/@wikicasa-dev_utilities@1.1.22-alpha.4/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
8
|
+
import "date-fns";
|
|
8
9
|
import "../../../../../_virtual/polyline.js";
|
|
9
|
-
const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"],
|
|
10
|
+
const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "height", "onLoad"], ie = ["id"], ae = ["alt"], we = /* @__PURE__ */ J({
|
|
10
11
|
inheritAttrs: !1,
|
|
11
12
|
__name: "SwiperCarousel",
|
|
12
13
|
props: {
|
|
@@ -184,7 +185,7 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
184
185
|
},
|
|
185
186
|
class: ["disable-select", [e.$attrs["slide-img-classes"] || t.classes]],
|
|
186
187
|
"data-idx": `${d.value}-slide-img-${a}`
|
|
187
|
-
}, z(t, a), {
|
|
188
|
+
}, { ref_for: !0 }, z(t, a), {
|
|
188
189
|
alt: t.alt,
|
|
189
190
|
itemprop: "image",
|
|
190
191
|
width: t.width,
|
|
@@ -231,9 +232,8 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
231
232
|
class: p(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
|
|
232
233
|
}, [
|
|
233
234
|
v("img", T({
|
|
234
|
-
class: e.$attrs["thumb-img-classes"]
|
|
235
|
-
|
|
236
|
-
}, z(t, -1, !1), {
|
|
235
|
+
class: e.$attrs["thumb-img-classes"]
|
|
236
|
+
}, { ref_for: !0 }, z(t, -1, !1), {
|
|
237
237
|
alt: t.alt
|
|
238
238
|
}), null, 16, ae)
|
|
239
239
|
], 2))), 128))
|
|
@@ -243,5 +243,5 @@ const ee = ["id"], te = ["id", "data-cy"], se = ["data-idx", "alt", "width", "he
|
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
245
|
export {
|
|
246
|
-
|
|
246
|
+
we as default
|
|
247
247
|
};
|
package/package.json
CHANGED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { g as K, a as U } from "../shared/ssr-window.esm.js";
|
|
2
|
-
import { a as C, b 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 o = 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, 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
|
-
return !1;
|
|
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
|
-
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 || 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
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function g() {
|
|
51
|
-
e.keyboard.enabled || (o.addEventListener("keydown", y), e.keyboard.enabled = !0);
|
|
52
|
-
}
|
|
53
|
-
function v() {
|
|
54
|
-
e.keyboard.enabled && (o.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
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|