@wikicasa-dev/components 2.1.25-alpha.4 → 2.1.27
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.d.ts +5 -5
- package/dist/_virtual/polyline.js +1 -1
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +4 -4
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js +11 -10
- 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 +6 -5
- 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 +12 -11
- package/dist/packages/components/lib/UIKit/BasePagination.vue.js +2 -2
- 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 +31 -30
- package/package.json +12 -12
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.21-alpha.2_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.21-alpha.2_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.21-alpha.2_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/svg-icons/dist/DefaultValues-CpabIgVz.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.21-alpha.2_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_svg-icons@1.2.21-alpha.2_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_utilities@1.1.21 → packages/components}/node_modules/@wikicasa-dev/utilities/dist/utils/StringUtils.js +0 -0
- /package/dist/{node_modules/.pnpm/@wikicasa-dev_vue-composables@0.0.24-alpha.0_vue@3.5.24_typescript@5.9.3_ → packages/components}/node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js +0 -0
- /package/dist/{node_modules/.pnpm/google-polyline@1.0.3 → packages/components}/node_modules/google-polyline/lib/decode.js +0 -0
- /package/dist/{node_modules/.pnpm/google-polyline@1.0.3 → packages/components}/node_modules/google-polyline/lib/encode.js +0 -0
- /package/dist/{node_modules/.pnpm/google-polyline@1.0.3 → packages/components}/node_modules/google-polyline/lib/polyline.js +0 -0
- /package/dist/{node_modules/.pnpm/js-cookie@3.0.5 → packages/components}/node_modules/js-cookie/dist/js.cookie.js +0 -0
|
@@ -3,20 +3,20 @@ import { ClassTypeProp, IconItem, LabelItem } from './types';
|
|
|
3
3
|
export type AccessibleSelectOptions<TPayload = unknown, TID = string | number | undefined> = IconItem & LabelItem<TID> & {
|
|
4
4
|
visibleLabel?: string;
|
|
5
5
|
} & TPayload;
|
|
6
|
-
declare const _default: <TID,
|
|
6
|
+
declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
9
|
-
readonly "onUpdate:modelValue"?: ((value: Optional<AccessibleSelectOptions<
|
|
9
|
+
readonly "onUpdate:modelValue"?: ((value: Optional<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
10
10
|
readonly "onUpdate:toggleDropdown"?: ((value: Optional<boolean>) => any) | undefined;
|
|
11
11
|
readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
12
12
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onClick" | "onUpdate:modelValue" | "onUpdate:toggleDropdown" | "onUpdate:dropdownState"> & ({
|
|
13
|
-
modelValue?: Optional<AccessibleSelectOptions<
|
|
13
|
+
modelValue?: Optional<AccessibleSelectOptions<TPayload, TID>>;
|
|
14
14
|
toggleDropdown?: Optional<boolean>;
|
|
15
15
|
} & {
|
|
16
16
|
label?: string;
|
|
17
17
|
dropdownPosition?: "top" | "bottom";
|
|
18
18
|
namespace?: string;
|
|
19
|
-
options: AccessibleSelectOptions<
|
|
19
|
+
options: AccessibleSelectOptions<TPayload, TID>[];
|
|
20
20
|
isValid?: boolean | null;
|
|
21
21
|
feedback?: Partial<{
|
|
22
22
|
valid: string;
|
|
@@ -48,7 +48,7 @@ declare const _default: <TID, TLabel extends string | number | undefined>(__VLS_
|
|
|
48
48
|
slots: {
|
|
49
49
|
lefticon?(_: {}): any;
|
|
50
50
|
};
|
|
51
|
-
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "update:dropdownState", args_0: boolean) => void)) & (((evt: "update:modelValue", value: Optional<AccessibleSelectOptions<
|
|
51
|
+
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "update:dropdownState", args_0: boolean) => void)) & (((evt: "update:modelValue", value: Optional<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:toggleDropdown", value: Optional<boolean>) => void));
|
|
52
52
|
}>) => import('vue').VNode & {
|
|
53
53
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
54
54
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { __require as r } from "../
|
|
1
|
+
import { __require as r } from "../packages/components/node_modules/google-polyline/lib/polyline.js";
|
|
2
2
|
r();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as D, mergeModels as $, useModel as p, useId as F, computed as M, ref as V, watch as h, onMounted as A, onUnmounted as E, createElementBlock as u, openBlock as n, normalizeClass as a, createElementVNode as o, createCommentVNode as r, withModifiers as c, renderSlot as P, unref as b, createBlock as z, createVNode as N, Fragment as L, renderList as O } from "vue";
|
|
2
|
-
import { useKeyboardController as S } from "
|
|
3
|
-
import { ArrowIcon as q } from "
|
|
4
|
-
import { WarningIconRounded as j } from "
|
|
5
|
-
import "
|
|
2
|
+
import { useKeyboardController as S } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
3
|
+
import { ArrowIcon as q } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import { WarningIconRounded as j } from "../../node_modules/@wikicasa-dev/svg-icons/dist/WarningIconRounded.js";
|
|
5
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const K = ["id", "innerHTML"], R = ["id", "data-cy", "aria-required", "aria-controls", "aria-labelledby", "aria-expanded", "aria-activedescendant", "aria-invalid", "aria-describedby"], U = ["innerHTML"], W = { class: "uikit-pointer-events-none uikit-mt-1 uikit-inline-flex" }, G = ["innerHTML"], J = ["data-cy"], Q = ["id", "aria-selected", "onClick", "onMouseover"], X = { class: "uikit-inline-block uikit-cursor-pointer uikit-text-sm" }, Y = ["name", "checked", "onInput"], Z = ["innerHTML"], _ = ["id", "arial-live", "innerHTML"], ee = ["id", "arial-live", "innerHTML"], oe = /* @__PURE__ */ D({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "AccessibleSelect",
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "
|
|
3
|
-
import { isEmptyObject as f } from "
|
|
1
|
+
import { defineComponent as s, ref as u, provide as i, renderSlot as d } from "vue";
|
|
2
|
+
import "../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import { isEmptyObject as f } from "../../../node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
4
|
+
import "date-fns";
|
|
4
5
|
import "../../../../../_virtual/polyline.js";
|
|
5
|
-
const
|
|
6
|
+
const y = /* @__PURE__ */ s({
|
|
6
7
|
__name: "BaseAccordion",
|
|
7
8
|
props: {
|
|
8
9
|
autoClose: { type: Boolean, default: !0 },
|
|
@@ -11,23 +12,23 @@ const k = /* @__PURE__ */ p({
|
|
|
11
12
|
setup(l) {
|
|
12
13
|
const n = u(null), o = u(
|
|
13
14
|
{}
|
|
14
|
-
),
|
|
15
|
+
), c = (e, t) => {
|
|
15
16
|
if (l.autoClose && t && !f(t))
|
|
16
17
|
for (const a in t)
|
|
17
18
|
a !== `${e}` && (t[a].active = !1);
|
|
18
|
-
},
|
|
19
|
+
}, p = (e, t) => {
|
|
19
20
|
t && (t[e].active = !(t[e].active ?? !1));
|
|
20
21
|
}, r = (e, t) => {
|
|
21
|
-
|
|
22
|
+
c(e.id, t ?? o.value), n.value = e, p(e.id, t ?? o.value);
|
|
22
23
|
};
|
|
23
|
-
return
|
|
24
|
+
return i("handleClick", (e) => {
|
|
24
25
|
l.autoUpdate && r(e);
|
|
25
|
-
}),
|
|
26
|
+
}), i("accordionItems", o), (e, t) => d(e.$slots, "default", {
|
|
26
27
|
updatePrev: r,
|
|
27
28
|
prev: n.value
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
});
|
|
31
32
|
export {
|
|
32
|
-
|
|
33
|
+
y as default
|
|
33
34
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as l, openBlock as d, normalizeClass as n, renderSlot as i, createElementVNode as u, withModifiers as k, createVNode as m, unref as f } from "vue";
|
|
2
|
-
import { ArrowIcon as g } from "
|
|
3
|
-
import "
|
|
2
|
+
import { ArrowIcon as g } from "../../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const C = ["id"], w = ["aria-expanded", "aria-controls"], A = /* @__PURE__ */ s({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "BaseAccordionBtn",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as $, ref as y, inject as v, watch as r, unref as d, createElementBlock as f, openBlock as u, normalizeClass as m, createBlock as g, createCommentVNode as O, renderSlot as a, createElementVNode as k, withModifiers as A, createVNode as w, withCtx as n } from "vue";
|
|
2
2
|
import B from "./BaseAccordionBtn.vue.js";
|
|
3
3
|
import E from "./BaseAccordionContent.vue.js";
|
|
4
|
-
import { ArrowIcon as W } from "
|
|
5
|
-
import "
|
|
4
|
+
import { ArrowIcon as W } from "../../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
5
|
+
import "../../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
6
6
|
const x = { key: 0 }, I = ["id", "data-cy", "aria-expanded", "aria-controls"], M = ["itemprop", "innerHTML"], P = /* @__PURE__ */ $({
|
|
7
7
|
inheritAttrs: !1,
|
|
8
8
|
__name: "BaseAccordionItem",
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { defineComponent as P, mergeModels as y, useModel as F, ref as d, computed as k, onBeforeMount as L, watch as f, createBlock as g, openBlock as w, normalizeClass as H, withCtx as s, createElementBlock as K, Fragment as T, renderList as z, unref as A, createElementVNode as N, createVNode as U, renderSlot as $ } from "vue";
|
|
2
2
|
import W from "../../../../UIKit/BaseInput.js";
|
|
3
3
|
import j from "./BaseDropDown.vue.js";
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
4
|
+
import "../../node_modules/js-cookie/dist/js.cookie.js";
|
|
5
|
+
import "date-fns";
|
|
6
|
+
import { debounce as q } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/FunctionUtils.js";
|
|
6
7
|
import "../../../../_virtual/polyline.js";
|
|
7
8
|
import G from "./BaseSelect/SelectItem.vue.js";
|
|
8
|
-
import { useKeyboardController as J } from "
|
|
9
|
-
const Q = ["innerHTML"],
|
|
9
|
+
import { useKeyboardController as J } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
10
|
+
const Q = ["innerHTML"], oe = /* @__PURE__ */ P({
|
|
10
11
|
__name: "BaseAutocomplete",
|
|
11
12
|
props: /* @__PURE__ */ y({
|
|
12
13
|
isValid: { type: [Boolean, null], default: null },
|
|
@@ -188,5 +189,5 @@ const Q = ["innerHTML"], ae = /* @__PURE__ */ P({
|
|
|
188
189
|
}
|
|
189
190
|
});
|
|
190
191
|
export {
|
|
191
|
-
|
|
192
|
+
oe as default
|
|
192
193
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, computed as k, createElementBlock as i, openBlock as l, createElementVNode as n, normalizeClass as r, Fragment as u, renderList as h, renderSlot as c, toDisplayString as b, createVNode as p, unref as f } from "vue";
|
|
2
|
-
import { ArrowIcon as C } from "
|
|
3
|
-
import "
|
|
2
|
+
import { ArrowIcon as C } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], I = ["href"], $ = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as A, mergeModels as b, useId as L, useModel as M, ref as h, computed as E, useTemplateRef as O, watch as d, onBeforeMount as W, onMounted as $, onUnmounted as H, createElementBlock as K, openBlock as c, withModifiers as y, normalizeClass as l, renderSlot as C, createBlock as g, createVNode as N, unref as a, withCtx as D, createElementVNode as T, createCommentVNode as V, resolveDynamicComponent as q } from "vue";
|
|
2
2
|
import z from "./BaseButton.vue.js";
|
|
3
|
-
import { ArrowIcon as R } from "
|
|
4
|
-
import "
|
|
5
|
-
import { useKeyboardController as U } from "
|
|
3
|
+
import { ArrowIcon as R } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
4
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
5
|
+
import { useKeyboardController as U } from "../../node_modules/@wikicasa-dev/vue-composables/dist/useKeyboardController.js";
|
|
6
6
|
const j = ["innerHTML"], Y = /* @__PURE__ */ A({
|
|
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 l, normalizeClass as s, withModifiers as y, createElementBlock as h, createCommentVNode as w, renderSlot as d, createVNode as D, unref as K, nextTick as N } from "vue";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
2
|
+
import "../../node_modules/js-cookie/dist/js.cookie.js";
|
|
3
|
+
import "date-fns";
|
|
4
|
+
import { isWindows as C } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/DeviceDetectionUtils.js";
|
|
5
|
+
import { awaitableSetTimeout as S } from "../../node_modules/@wikicasa-dev/utilities/dist/utils/GenericUtils.js";
|
|
5
6
|
import "../../../../_virtual/polyline.js";
|
|
6
|
-
import { CloseIcon as V } from "
|
|
7
|
-
import "
|
|
8
|
-
const F = ["id", "data-cy"], U = ["innerHTML"],
|
|
7
|
+
import { CloseIcon as V } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
8
|
+
import "../../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" },
|
|
@@ -27,16 +28,16 @@ const F = ["id", "data-cy"], U = ["innerHTML"], J = /* @__PURE__ */ T({
|
|
|
27
28
|
titleClasses: {}
|
|
28
29
|
},
|
|
29
30
|
emits: ["closed", "opened", "dialogClick"],
|
|
30
|
-
setup(e, { emit:
|
|
31
|
-
const c =
|
|
31
|
+
setup(e, { emit: p }) {
|
|
32
|
+
const c = p, i = n(!1), m = n(null), a = z("modalDialog"), r = n(!1), u = n(!1), f = ({ key: t }) => {
|
|
32
33
|
t === "Escape" && o();
|
|
33
|
-
},
|
|
34
|
+
}, g = () => {
|
|
34
35
|
document?.body.addEventListener("keydown", f);
|
|
35
36
|
}, b = () => {
|
|
36
37
|
document?.body.removeEventListener("keydown", f);
|
|
37
38
|
}, x = async () => {
|
|
38
39
|
i.value = !0, N(() => {
|
|
39
|
-
|
|
40
|
+
g(), C() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
40
41
|
}), c("opened"), e.autoClose !== void 0 && setTimeout(() => {
|
|
41
42
|
o();
|
|
42
43
|
}, e.autoClose);
|
|
@@ -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
1
|
import { defineComponent as O, mergeModels as V, useModel as A, computed as s, createElementBlock as o, openBlock as a, createCommentVNode as k, createElementVNode as P, createBlock as v, resolveDynamicComponent as m, mergeProps as h, withCtx as f, createVNode as $, unref as p, toDisplayString as g, Fragment as w, createTextVNode as x, renderList as j } from "vue";
|
|
2
|
-
import { ArrowIcon as B } from "
|
|
3
|
-
import "
|
|
2
|
+
import { ArrowIcon as B } from "../../node_modules/@wikicasa-dev/svg-icons/dist/ArrowIcon.js";
|
|
3
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
const Q = {
|
|
5
5
|
"aria-label": "Page navigation",
|
|
6
6
|
class: "uikit-overflow-auto"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, mergeModels as I, useModel as w, ref as b, watch as y, nextTick as $, createBlock as s, openBlock as r, unref as i, withCtx as a, renderSlot as f, createVNode as n, normalizeClass as m, createCommentVNode as p, normalizeStyle as B } from "vue";
|
|
2
|
-
import { CloseIcon as V } from "
|
|
3
|
-
import "
|
|
2
|
+
import { CloseIcon as V } from "../../node_modules/@wikicasa-dev/svg-icons/dist/CloseIcon.js";
|
|
3
|
+
import "../../node_modules/@wikicasa-dev/svg-icons/dist/PharmacyIcon.js";
|
|
4
4
|
import { ToastProvider as D, ToastRoot as M, ToastTitle as P, ToastDescription as z, ToastClose as S, ToastAction as A, ProgressRoot as N, ProgressIndicator as R, ToastPortal as U, ToastViewport as h } from "reka-ui";
|
|
5
5
|
const E = /* @__PURE__ */ x({
|
|
6
6
|
inheritAttrs: !1,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as x, ref as y, computed as h, watch as v, renderSlot as b, createElementVNode as D, normalizeClass as E, createElementBlock as $, createCommentVNode as B, openBlock as C, Fragment as A, renderList as I, createBlock as R, unref as K } from "vue";
|
|
2
|
-
import { isArrNullOrEmpty as V } from "
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
2
|
+
import { isArrNullOrEmpty as V } from "../../../node_modules/@wikicasa-dev/utilities/dist/utils/ArrayUtils.js";
|
|
3
|
+
import "../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
4
|
+
import "date-fns";
|
|
5
|
+
import { stringToHyphened as L } from "../../../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__ */ x({
|
|
8
9
|
inheritAttrs: !1,
|
|
9
10
|
__name: "CheckboxGroup",
|
|
10
11
|
props: {
|
|
@@ -23,7 +24,7 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ x({
|
|
|
23
24
|
},
|
|
24
25
|
emits: ["resetted", "update:modelValue", "checkedGroup"],
|
|
25
26
|
setup(t, { emit: g }) {
|
|
26
|
-
const o = t,
|
|
27
|
+
const o = t, r = g, l = y(/* @__PURE__ */ new Map()), s = h(() => {
|
|
27
28
|
for (const e of o.checkboxData)
|
|
28
29
|
if (e.reset) return e;
|
|
29
30
|
return null;
|
|
@@ -40,7 +41,7 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ x({
|
|
|
40
41
|
`${a.id}`,
|
|
41
42
|
a
|
|
42
43
|
), a.checked && e.push(a);
|
|
43
|
-
|
|
44
|
+
r("update:modelValue", e);
|
|
44
45
|
})();
|
|
45
46
|
const u = (e, a) => {
|
|
46
47
|
const c = l.value.get(e);
|
|
@@ -56,17 +57,17 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ x({
|
|
|
56
57
|
e.checked = !1;
|
|
57
58
|
});
|
|
58
59
|
}, m = () => {
|
|
59
|
-
k(),
|
|
60
|
+
k(), r("update:modelValue", []), r("resetted");
|
|
60
61
|
}, d = (e) => l.value.get(o.getKey(e))?.checked ?? !1, i = (e) => {
|
|
61
62
|
if (V(o.checkboxData)) return;
|
|
62
63
|
const a = l.value.get(e.id);
|
|
63
|
-
a?.reset && e.checked ? k() :
|
|
64
|
+
a?.reset && e.checked ? k() : s.value && !a?.reset && u(o.getKey(s.value), { checked: !1 }), u(`${e.id}`), o.autoCheckResetAll && s.value && f.value === p.value - 1 && l.value.forEach((n) => {
|
|
64
65
|
n.checked = !!n.reset;
|
|
65
|
-
}), o.autoCheckResetEmpty &&
|
|
66
|
+
}), o.autoCheckResetEmpty && s.value && !f.value && (!o.manualToggleResetButton || !a?.reset) && u(o.getKey(s.value), { checked: !0 });
|
|
66
67
|
const c = [];
|
|
67
68
|
l.value.forEach((n) => {
|
|
68
69
|
n.checked && c.push(n);
|
|
69
|
-
}),
|
|
70
|
+
}), r("update:modelValue", c), r("checkedGroup", o.groupId);
|
|
70
71
|
};
|
|
71
72
|
return v(
|
|
72
73
|
() => o.reset,
|
|
@@ -108,5 +109,5 @@ const N = ["id", "data-cy"], z = /* @__PURE__ */ x({
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
export {
|
|
111
|
-
|
|
112
|
+
H as default
|
|
112
113
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { defineComponent as Q, reactive as U, ref as k, useId as X, computed as f, onMounted as Y, watch as x, nextTick as V, createElementBlock as l, openBlock as
|
|
1
|
+
import { defineComponent as Q, reactive as U, ref as k, useId as X, computed as f, onMounted as Y, watch as x, nextTick as V, createElementBlock as l, openBlock as p, normalizeClass as u, createElementVNode as v, createCommentVNode as $, renderSlot as M, Fragment as P, renderList as E, mergeProps as F, withModifiers as O } from "vue";
|
|
2
2
|
import { Swiper as T } from "swiper";
|
|
3
3
|
import _ from "../../../../../node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.js";
|
|
4
4
|
import '../../../../../assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/modules/zoom.css';import '../../../../../assets/node_modules/.pnpm/swiper@12.0.3/node_modules/swiper/swiper.css';/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import "
|
|
7
|
-
import { shallowCopyObjectTo as ee } from "
|
|
6
|
+
import "../../../node_modules/js-cookie/dist/js.cookie.js";
|
|
7
|
+
import { shallowCopyObjectTo as ee } from "../../../node_modules/@wikicasa-dev/utilities/dist/utils/ObjectUtils.js";
|
|
8
|
+
import "date-fns";
|
|
8
9
|
import "../../../../../_virtual/polyline.js";
|
|
9
|
-
const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "height", "onLoad"], ae = ["id"], re = ["alt"],
|
|
10
|
+
const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "height", "onLoad"], ae = ["id"], re = ["alt"], ve = /* @__PURE__ */ Q({
|
|
10
11
|
inheritAttrs: !1,
|
|
11
12
|
__name: "SwiperCarousel",
|
|
12
13
|
props: {
|
|
@@ -25,7 +26,7 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
25
26
|
swiperParams: { modules: [_] },
|
|
26
27
|
swiper: null,
|
|
27
28
|
initCarousel: !1
|
|
28
|
-
}), S = k(), j = k(!1), A = X(),
|
|
29
|
+
}), S = k(), j = k(!1), A = X(), d = f(() => s.id ?? A), N = f(() => a.swiper), g = f(() => s.swiperOptions?.slidesPerView || 1), W = f(() => !!s.swiperOptions?.keyboard), C = f(() => !!s.swiperOptions.navigation), I = f(() => !!s.swiperOptions.pagination), q = f(() => !!s.swiperOptions.autoplay), K = f(
|
|
29
30
|
() => s.swiperOptions?.effect || "slider"
|
|
30
31
|
), R = () => {
|
|
31
32
|
s.swiperOptions && ee(s.swiperOptions, a.swiperParams);
|
|
@@ -127,14 +128,14 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
127
128
|
import("../../../lazyModules/Swiper/free-mode.js"),
|
|
128
129
|
import("../../../lazyModules/Swiper/controller.js")
|
|
129
130
|
]);
|
|
130
|
-
a.swiperParams.modules?.push(t.Thumbs), a.swiperParams.modules?.push(o.Controller), i = new T(`#thumb_${
|
|
131
|
+
a.swiperParams.modules?.push(t.Thumbs), a.swiperParams.modules?.push(o.Controller), i = new T(`#thumb_${d.value}`, {
|
|
131
132
|
...s.thumbSwiperOptions,
|
|
132
133
|
modules: [r.FreeMode]
|
|
133
134
|
}), e.thumbs = {
|
|
134
135
|
swiper: i
|
|
135
136
|
};
|
|
136
137
|
}
|
|
137
|
-
e.lazyPreloadPrevNext = 1, a.swiper = new T(`#${
|
|
138
|
+
e.lazyPreloadPrevNext = 1, a.swiper = new T(`#${d.value}`, e), S.value?.classList.remove("uikit-hidden");
|
|
138
139
|
}), x(
|
|
139
140
|
() => s.images,
|
|
140
141
|
() => {
|
|
@@ -150,42 +151,42 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
150
151
|
updateSlidesPerView: (e) => {
|
|
151
152
|
!a.swiper || a.swiper.params.slidesPerView === e || (a.swiper.params.slidesPerView = e, a.swiper.update());
|
|
152
153
|
}
|
|
153
|
-
}), (e, i) => (
|
|
154
|
-
id: `root-${
|
|
154
|
+
}), (e, i) => (p(), l("div", {
|
|
155
|
+
id: `root-${d.value}`,
|
|
155
156
|
ref_key: "root",
|
|
156
157
|
ref: L,
|
|
157
|
-
class:
|
|
158
|
+
class: u(["swiper-carousel-root", e.$attrs["root-classes"]])
|
|
158
159
|
}, [
|
|
159
160
|
v("div", {
|
|
160
|
-
id:
|
|
161
|
+
id: d.value,
|
|
161
162
|
"data-cy": e.$attrs["data-cy"],
|
|
162
|
-
class:
|
|
163
|
+
class: u(["swiper", e.$attrs["swiper-classes"]])
|
|
163
164
|
}, [
|
|
164
165
|
v("div", {
|
|
165
166
|
ref_key: "swiperWrapper",
|
|
166
167
|
ref: S,
|
|
167
|
-
class:
|
|
168
|
+
class: u(["swiper-wrapper", [
|
|
168
169
|
e.$attrs["swiper-wrapper-classes"],
|
|
169
170
|
K.value === "none" && "no-transition"
|
|
170
171
|
]]),
|
|
171
172
|
onClick: i[0] || (i[0] = (t) => y("click"))
|
|
172
173
|
}, [
|
|
173
174
|
M(e.$slots, "default", {}, () => [
|
|
174
|
-
(
|
|
175
|
-
key: `swiper_${
|
|
176
|
-
class:
|
|
175
|
+
(p(!0), l(P, null, E(s.images, (t, r) => (p(), l("div", {
|
|
176
|
+
key: `swiper_${d.value}_${r}`,
|
|
177
|
+
class: u(["swiper-slide", e.$attrs["swiper-slide-classes"]])
|
|
177
178
|
}, [
|
|
178
179
|
v("div", {
|
|
179
|
-
class:
|
|
180
|
+
class: u(["swiper-zoom-container", e.$attrs["swiper-zoom-container-classes"]])
|
|
180
181
|
}, [
|
|
181
|
-
s.backgroundImage ? $("", !0) : (
|
|
182
|
+
s.backgroundImage ? $("", !0) : (p(), l("img", F({
|
|
182
183
|
key: 0,
|
|
183
184
|
ref_for: !0,
|
|
184
185
|
ref: (o) => {
|
|
185
186
|
h.push(o);
|
|
186
187
|
},
|
|
187
188
|
class: ["disable-select", [e.$attrs["slide-img-classes"] || t.classes]],
|
|
188
|
-
"data-idx": `${
|
|
189
|
+
"data-idx": `${d.value}-slide-img-${r}`
|
|
189
190
|
}, { ref_for: !0 }, z(t, r), {
|
|
190
191
|
alt: t.alt,
|
|
191
192
|
itemprop: "image",
|
|
@@ -198,13 +199,13 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
198
199
|
M(e.$slots, "last_slide", {}, void 0, !0)
|
|
199
200
|
], !0)
|
|
200
201
|
], 2),
|
|
201
|
-
I.value ? (
|
|
202
|
+
I.value ? (p(), l("div", {
|
|
202
203
|
key: 0,
|
|
203
|
-
class:
|
|
204
|
+
class: u([e.$attrs["swiper-pagination-classes"], "swiper-pagination [&.swiper-pagination-fraction]:uikit-flex [&.swiper-pagination-fraction]:uikit-justify-center"]),
|
|
204
205
|
onClick: i[1] || (i[1] = O(() => {
|
|
205
206
|
}, ["stop"]))
|
|
206
207
|
}, null, 2)) : $("", !0),
|
|
207
|
-
C.value ? (
|
|
208
|
+
C.value ? (p(), l(P, { key: 1 }, [
|
|
208
209
|
v("div", {
|
|
209
210
|
class: "swiper-button-prev",
|
|
210
211
|
"data-cy": "swiper-button-prev",
|
|
@@ -219,18 +220,18 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
219
220
|
})
|
|
220
221
|
], 64)) : $("", !0)
|
|
221
222
|
], 10, se),
|
|
222
|
-
s.thumbSwiperOptions ? (
|
|
223
|
+
s.thumbSwiperOptions ? (p(), l("div", {
|
|
223
224
|
key: 0,
|
|
224
|
-
id: `thumb_${
|
|
225
|
+
id: `thumb_${d.value}`,
|
|
225
226
|
thumbsSlider: "",
|
|
226
|
-
class:
|
|
227
|
+
class: u(["swiper", e.$attrs["thumb-swiper-classes"]])
|
|
227
228
|
}, [
|
|
228
229
|
v("div", {
|
|
229
|
-
class:
|
|
230
|
+
class: u(["swiper-wrapper", e.$attrs["thumb-swiper-wrapper-classes"]])
|
|
230
231
|
}, [
|
|
231
|
-
(
|
|
232
|
-
key: `thumb_${
|
|
233
|
-
class:
|
|
232
|
+
(p(!0), l(P, null, E(s.images, (t, r) => (p(), l("div", {
|
|
233
|
+
key: `thumb_${d.value}_${r}`,
|
|
234
|
+
class: u(["swiper-slide", e.$attrs["thumb-img-wrapper-classes"]])
|
|
234
235
|
}, [
|
|
235
236
|
v("img", F({
|
|
236
237
|
class: e.$attrs["thumb-img-classes"]
|
|
@@ -244,5 +245,5 @@ const te = ["id"], se = ["id", "data-cy"], ie = ["data-idx", "alt", "width", "he
|
|
|
244
245
|
}
|
|
245
246
|
});
|
|
246
247
|
export {
|
|
247
|
-
|
|
248
|
+
ve as default
|
|
248
249
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.27",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -40,16 +40,17 @@
|
|
|
40
40
|
"url": "https://bitbucket.org/wikicasa/wikicasa-fe/issues"
|
|
41
41
|
},
|
|
42
42
|
"homepage": "https://bitbucket.org/wikicasa/wikicasa-fe#readme",
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vue": "^3.5.0",
|
|
45
|
+
"date-fns": "^4.0.0"
|
|
46
|
+
},
|
|
43
47
|
"dependencies": {
|
|
44
|
-
"caniuse-lite": "^1.0.30001756",
|
|
45
48
|
"chart.js": "4.5.1",
|
|
46
49
|
"chartjs-adapter-date-fns": "3.0.0",
|
|
47
|
-
"date-fns": "4.1.0",
|
|
48
50
|
"reka-ui": "^2.6.0",
|
|
49
51
|
"swiper": "^12.0.3",
|
|
50
52
|
"vue": "^3.5.24",
|
|
51
|
-
"vue-chartjs": "5.3.3"
|
|
52
|
-
"vue-router": "^4.6.3"
|
|
53
|
+
"vue-chartjs": "5.3.3"
|
|
53
54
|
},
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@babel/eslint-parser": "^7.28.5",
|
|
@@ -58,12 +59,13 @@
|
|
|
58
59
|
"@vitejs/plugin-vue": "^6.0.2",
|
|
59
60
|
"@vue/eslint-config-prettier": "^10.2.0",
|
|
60
61
|
"@vue/eslint-config-typescript": "^14.6.0",
|
|
61
|
-
"@wikicasa-dev/svg-icons": "1.2.21
|
|
62
|
-
"@wikicasa-dev/vue-composables": "0.0.24
|
|
62
|
+
"@wikicasa-dev/svg-icons": "1.2.21",
|
|
63
|
+
"@wikicasa-dev/vue-composables": "0.0.24",
|
|
63
64
|
"@wikicasa-dev/tailwind-plugins": "^0.0.3",
|
|
64
|
-
"@wikicasa-dev/types": "2.4.
|
|
65
|
-
"@wikicasa-dev/utilities": "1.1.
|
|
65
|
+
"@wikicasa-dev/types": "2.4.6",
|
|
66
|
+
"@wikicasa-dev/utilities": "1.1.22",
|
|
66
67
|
"autoprefixer": "^10.4.22",
|
|
68
|
+
"date-fns": "4.1.0",
|
|
67
69
|
"eslint": "^9.39",
|
|
68
70
|
"eslint-plugin-vue": "^10.5.1",
|
|
69
71
|
"jiti": "^2.6.1",
|
|
@@ -78,11 +80,9 @@
|
|
|
78
80
|
"vite": "7.2.4",
|
|
79
81
|
"vite-plugin-dts": "^4.5.4",
|
|
80
82
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
83
|
+
"vue-router": "^4.6.3",
|
|
81
84
|
"vue-tsc": "3.1.4"
|
|
82
85
|
},
|
|
83
|
-
"peerDependencies": {
|
|
84
|
-
"vue": "^3.5.0"
|
|
85
|
-
},
|
|
86
86
|
"readme": "ERROR: No README data found!",
|
|
87
87
|
"scripts": {
|
|
88
88
|
"dev": "vite",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|