@wikicasa-dev/components 1.9.25 → 1.9.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/BaseBreadcrumb.js +1 -1
- package/dist/CheckboxBtn.js +11 -11
- package/dist/UIKit/BaseBreadcrumb.vue.d.ts +6 -0
- package/dist/assets/CheckboxBtn.css +1 -1
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.ho5b_0cc.js +57 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.CYvEsNdp.js +0 -53
package/dist/BaseBreadcrumb.js
CHANGED
package/dist/CheckboxBtn.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, openBlock as
|
|
1
|
+
import { defineComponent as f, openBlock as n, createElementBlock as s, normalizeClass as l, withModifiers as r, createElementVNode as d, renderSlot as b, toDisplayString as m, createCommentVNode as h } from "vue";
|
|
2
2
|
import { _ as g } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
|
|
3
|
-
import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "checked", "disabled"], V = ["for"],
|
|
3
|
+
import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "checked", "disabled"], V = ["for"], $ = /* @__PURE__ */ f({
|
|
4
4
|
__name: "CheckboxBtn",
|
|
5
5
|
props: {
|
|
6
6
|
id: {},
|
|
@@ -16,16 +16,16 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
16
16
|
},
|
|
17
17
|
emits: ["click", "change", "update:modelValue"],
|
|
18
18
|
setup(u, { emit: k }) {
|
|
19
|
-
const i = u, t = k,
|
|
19
|
+
const i = u, t = k, o = () => {
|
|
20
20
|
t("change", {
|
|
21
21
|
id: i.id,
|
|
22
22
|
label: i.label,
|
|
23
23
|
checked: !i.modelValue
|
|
24
24
|
}), t("update:modelValue", !i.modelValue);
|
|
25
|
-
},
|
|
26
|
-
|
|
25
|
+
}, c = () => {
|
|
26
|
+
o(), i.handleLabelClick && t("click");
|
|
27
27
|
};
|
|
28
|
-
return (e, a) => (
|
|
28
|
+
return (e, a) => (n(), s("div", {
|
|
29
29
|
id: e.containerId,
|
|
30
30
|
class: l(["uikit-group uikit-relative uikit-block uikit-pl-25px hover:uikit-cursor-pointer", [
|
|
31
31
|
{ "uikit-mr-4 uikit-inline-flex uikit-items-center": e.inline },
|
|
@@ -33,7 +33,7 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
33
33
|
e.$attrs["wrapper-margin-y"],
|
|
34
34
|
e.containerClass
|
|
35
35
|
]]),
|
|
36
|
-
onClick: r(
|
|
36
|
+
onClick: r(c, ["stop"])
|
|
37
37
|
}, [
|
|
38
38
|
d("input", {
|
|
39
39
|
id: `${e.id}`,
|
|
@@ -47,15 +47,15 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
47
47
|
type: "checkbox",
|
|
48
48
|
checked: e.$attrs.checked || e.modelValue,
|
|
49
49
|
disabled: e.$attrs.disabled,
|
|
50
|
-
onChange: a[0] || (a[0] = r((
|
|
51
|
-
onClick: a[1] || (a[1] = r((
|
|
50
|
+
onChange: a[0] || (a[0] = r((p) => o(), ["stop", "prevent"])),
|
|
51
|
+
onClick: a[1] || (a[1] = r((p) => t("click"), ["stop"]))
|
|
52
52
|
}, null, 42, y),
|
|
53
53
|
b(e.$slots, "label", {}, () => [
|
|
54
54
|
d("label", {
|
|
55
55
|
class: l(["uikit-pl-10px uikit-text-sm group-hover:uikit-cursor-pointer", [e.labelClass, { "uikit-text-w-danger": e.isValid === !1 }]]),
|
|
56
56
|
for: `${e.id}`
|
|
57
57
|
}, m(e.label), 11, V),
|
|
58
|
-
e.$attrs.required ? (
|
|
58
|
+
e.$attrs.required ? (n(), s("span", {
|
|
59
59
|
key: 0,
|
|
60
60
|
class: l(["required after:uikit-content-['*']", [
|
|
61
61
|
e.isValid !== !1 ? "after:uikit-text-w-primary" : "after:uikit-text-w-danger"
|
|
@@ -64,7 +64,7 @@ import './assets/CheckboxBtn.css';const C = ["id"], y = ["id", "data-cy", "check
|
|
|
64
64
|
], !0)
|
|
65
65
|
], 10, C));
|
|
66
66
|
}
|
|
67
|
-
}), B = /* @__PURE__ */ g(
|
|
67
|
+
}), B = /* @__PURE__ */ g($, [["__scopeId", "data-v-9cc9c8aa"]]);
|
|
68
68
|
export {
|
|
69
69
|
B as default
|
|
70
70
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { ClassType } from '@wikicasa-dev/types';
|
|
2
|
+
|
|
1
3
|
type BreadcrumbItemsType = {
|
|
2
4
|
link: string;
|
|
3
5
|
label: string;
|
|
@@ -14,8 +16,12 @@ declare function __VLS_template(): {
|
|
|
14
16
|
};
|
|
15
17
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
18
|
items: BreadcrumbItemsType[];
|
|
19
|
+
listClasses?: ClassType;
|
|
20
|
+
listItemClasses?: ClassType;
|
|
17
21
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
22
|
items: BreadcrumbItemsType[];
|
|
23
|
+
listClasses?: ClassType;
|
|
24
|
+
listItemClasses?: ClassType;
|
|
19
25
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
20
26
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
21
27
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.checked-bg[data-v-
|
|
1
|
+
.checked-bg[data-v-9cc9c8aa]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg transform='translate(-307 -2432)'%3E%3Crect width='16' height='16' fill='%232b5dff' data-name='Rettangolo 2689' rx='3' transform='translate(307 2432)'/%3E%3Cpath fill='none' stroke='%23f4f7ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m319.499 2437.499-6 6Zm-9 3 3 3Z' data-name='Unione 5'/%3E%3C/g%3E%3C/svg%3E")}.checked-bg-invalid[data-v-9cc9c8aa]:checked{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cg transform='translate(-307 -2432)'%3E%3Crect width='16' height='16' fill='%23FA4F64' data-name='Rettangolo 2689' rx='3' transform='translate(307 2432)'/%3E%3Cpath fill='none' stroke='%23f4f7ff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m319.499 2437.499-6 6Zm-9 3 3 3Z' data-name='Unione 5'/%3E%3C/g%3E%3C/svg%3E")}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { defineComponent as m, computed as d, openBlock as s, createElementBlock as i, createElementVNode as n, normalizeClass as r, Fragment as o, renderList as k, renderSlot as u, toDisplayString as h, createVNode as p, unref as f } from "vue";
|
|
2
|
+
import { d as b } from "./ArrowIcon.B7Oqov4Y.js";
|
|
3
|
+
import "./PharmacyIcon.qIkuSERu.js";
|
|
4
|
+
const C = { "aria-label": "Breadcrumb" }, g = ["href"], y = /* @__PURE__ */ m({
|
|
5
|
+
__name: "BaseBreadcrumb",
|
|
6
|
+
props: {
|
|
7
|
+
items: {},
|
|
8
|
+
listClasses: {},
|
|
9
|
+
listItemClasses: {}
|
|
10
|
+
},
|
|
11
|
+
setup(a) {
|
|
12
|
+
const c = d(() => {
|
|
13
|
+
let e = 0;
|
|
14
|
+
const l = [];
|
|
15
|
+
for (; e < a.items.length; )
|
|
16
|
+
l.push({ ...a.items[e], idx: e }), e < a.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
|
|
17
|
+
return l;
|
|
18
|
+
});
|
|
19
|
+
return (e, l) => (s(), i("nav", C, [
|
|
20
|
+
n("ol", {
|
|
21
|
+
class: r(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
|
|
22
|
+
}, [
|
|
23
|
+
(s(!0), i(o, null, k(c.value, (t) => (s(), i(o, null, [
|
|
24
|
+
t?.label ? (s(), i("li", {
|
|
25
|
+
key: 0,
|
|
26
|
+
class: r(["uikit-list-none", e.listItemClasses])
|
|
27
|
+
}, [
|
|
28
|
+
u(e.$slots, "item", {
|
|
29
|
+
item: t
|
|
30
|
+
}, () => [
|
|
31
|
+
n("a", {
|
|
32
|
+
class: r(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
33
|
+
href: t.link
|
|
34
|
+
}, h(t.label), 11, g)
|
|
35
|
+
])
|
|
36
|
+
], 2)) : (s(), i("li", {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: r(["uikit-list-none", e.listItemClasses]),
|
|
39
|
+
"aria-hidden": "true"
|
|
40
|
+
}, [
|
|
41
|
+
u(e.$slots, "separator", {}, () => [
|
|
42
|
+
p(f(b), {
|
|
43
|
+
class: "-uikit-rotate-90",
|
|
44
|
+
"stroke-color": "#222",
|
|
45
|
+
width: 10,
|
|
46
|
+
height: 10
|
|
47
|
+
})
|
|
48
|
+
])
|
|
49
|
+
], 2))
|
|
50
|
+
], 64))), 256))
|
|
51
|
+
], 2)
|
|
52
|
+
]));
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
export {
|
|
56
|
+
y as _
|
|
57
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup
|
|
|
40
40
|
import { S as we } from "./chunks/SwiperCarousel.BV6QiwmC.js";
|
|
41
41
|
import { default as ke } from "./SwiperSlide.js";
|
|
42
42
|
import { useValidator as De } from "./useValidator.js";
|
|
43
|
-
import { _ as Ge } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.
|
|
43
|
+
import { _ as Ge } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.ho5b_0cc.js";
|
|
44
44
|
import './assets/index.css';export {
|
|
45
45
|
I as AccessibleSelect,
|
|
46
46
|
r as BaseAccordion,
|
package/package.json
CHANGED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, computed as d, openBlock as i, createElementBlock as r, createElementVNode as o, Fragment as l, renderList as m, renderSlot as a, normalizeClass as h, toDisplayString as k, createVNode as p, unref as _ } from "vue";
|
|
2
|
-
import { d as f } from "./ArrowIcon.B7Oqov4Y.js";
|
|
3
|
-
import "./PharmacyIcon.qIkuSERu.js";
|
|
4
|
-
const b = { "aria-label": "Breadcrumb" }, g = { class: "uikit-flex uikit-items-center uikit-gap-10px uikit-p-0" }, w = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "uikit-list-none"
|
|
7
|
-
}, x = ["href"], B = {
|
|
8
|
-
key: 1,
|
|
9
|
-
class: "uikit-list-none",
|
|
10
|
-
"aria-hidden": "true"
|
|
11
|
-
}, E = /* @__PURE__ */ u({
|
|
12
|
-
__name: "BaseBreadcrumb",
|
|
13
|
-
props: {
|
|
14
|
-
items: {}
|
|
15
|
-
},
|
|
16
|
-
setup(n) {
|
|
17
|
-
const c = d(() => {
|
|
18
|
-
let e = 0;
|
|
19
|
-
const s = [];
|
|
20
|
-
for (; e < n.items.length; )
|
|
21
|
-
s.push({ ...n.items[e], idx: e }), e < n.items.length - 1 && s.push({ arrowIcon: !0 }), e++;
|
|
22
|
-
return s;
|
|
23
|
-
});
|
|
24
|
-
return (e, s) => (i(), r("nav", b, [
|
|
25
|
-
o("ol", g, [
|
|
26
|
-
(i(!0), r(l, null, m(c.value, (t) => (i(), r(l, null, [
|
|
27
|
-
t?.label ? (i(), r("li", w, [
|
|
28
|
-
a(e.$slots, "item", {
|
|
29
|
-
item: t
|
|
30
|
-
}, () => [
|
|
31
|
-
o("a", {
|
|
32
|
-
class: h(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
33
|
-
href: t.link
|
|
34
|
-
}, k(t.label), 11, x)
|
|
35
|
-
])
|
|
36
|
-
])) : (i(), r("li", B, [
|
|
37
|
-
a(e.$slots, "separator", {}, () => [
|
|
38
|
-
p(_(f), {
|
|
39
|
-
class: "-uikit-rotate-90",
|
|
40
|
-
"stroke-color": "#222",
|
|
41
|
-
width: 10,
|
|
42
|
-
height: 10
|
|
43
|
-
})
|
|
44
|
-
])
|
|
45
|
-
]))
|
|
46
|
-
], 64))), 256))
|
|
47
|
-
])
|
|
48
|
-
]));
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
export {
|
|
52
|
-
E as _
|
|
53
|
-
};
|