@wikicasa-dev/components 2.0.38 → 2.0.39
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/BaseModal.js +1 -1
- package/dist/UIKit/BaseModal.vue.d.ts +5 -2
- package/dist/chunks/{BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BH2c3gOe.js → BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js} +16 -16
- package/dist/chunks/{BaseModal.vue_vue_type_style_index_0_lang.Bfqji3sg.js → BaseModal.vue_vue_type_style_index_0_lang.C7ScZo9m.js} +43 -35
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/BaseBreadcrumb.js
CHANGED
package/dist/BaseModal.js
CHANGED
|
@@ -14,7 +14,7 @@ declare function __VLS_template(): {
|
|
|
14
14
|
};
|
|
15
15
|
refs: {
|
|
16
16
|
backdropEl: HTMLDivElement;
|
|
17
|
-
|
|
17
|
+
modalDialog: HTMLDialogElement;
|
|
18
18
|
};
|
|
19
19
|
attrs: Partial<{}>;
|
|
20
20
|
};
|
|
@@ -67,7 +67,10 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
67
67
|
}> & Readonly<{
|
|
68
68
|
onOpened?: (() => any) | undefined;
|
|
69
69
|
onClosed?: (() => any) | undefined;
|
|
70
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
70
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
71
|
+
backdropEl: HTMLDivElement;
|
|
72
|
+
modalDialog: HTMLDialogElement;
|
|
73
|
+
}, any>;
|
|
71
74
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
72
75
|
export default _default;
|
|
73
76
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as d, computed as k, openBlock as s, createElementBlock as i, createElementVNode as n, normalizeClass as a, Fragment as u, renderList as p, renderSlot as c, toDisplayString as h, createVNode as b, unref as f } from "vue";
|
|
2
|
+
import { a as C } from "./ArrowIcon.CCFMdsq6.js";
|
|
3
3
|
import "./PharmacyIcon.56ql_DYl.js";
|
|
4
|
-
const
|
|
4
|
+
const g = { "aria-label": "Breadcrumb" }, w = ["data-tooltip"], B = ["href"], $ = /* @__PURE__ */ d({
|
|
5
5
|
__name: "BaseBreadcrumb",
|
|
6
6
|
props: {
|
|
7
7
|
items: {},
|
|
@@ -9,38 +9,38 @@ const C = { "aria-label": "Breadcrumb" }, g = ["data-tooltip"], w = ["href"], _
|
|
|
9
9
|
listItemClasses: {}
|
|
10
10
|
},
|
|
11
11
|
setup(r) {
|
|
12
|
-
const
|
|
12
|
+
const m = k(() => {
|
|
13
13
|
let e = 0;
|
|
14
14
|
const l = [];
|
|
15
15
|
for (; e < r.items.length; )
|
|
16
16
|
l.push({ ...r.items[e], idx: e }), e < r.items.length - 1 && l.push({ arrowIcon: !0 }), e++;
|
|
17
17
|
return l;
|
|
18
18
|
});
|
|
19
|
-
return (e, l) => (s(), i("nav",
|
|
20
|
-
|
|
19
|
+
return (e, l) => (s(), i("nav", g, [
|
|
20
|
+
n("ol", {
|
|
21
21
|
class: a(["uikit-flex uikit-items-center uikit-gap-10px uikit-p-0", e.listClasses])
|
|
22
22
|
}, [
|
|
23
|
-
(s(!0), i(
|
|
23
|
+
(s(!0), i(u, null, p(m.value, (t, o) => (s(), i(u, null, [
|
|
24
24
|
t?.label ? (s(), i("li", {
|
|
25
|
-
key:
|
|
25
|
+
key: `breadcrumb-li-${o}`,
|
|
26
26
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
27
27
|
"data-tooltip": t.dataTooltip
|
|
28
28
|
}, [
|
|
29
|
-
|
|
29
|
+
c(e.$slots, "item", {
|
|
30
30
|
item: t
|
|
31
31
|
}, () => [
|
|
32
|
-
|
|
32
|
+
n("a", {
|
|
33
33
|
class: a(["uikit-text-w-black uikit-no-underline", { "uikit-text-w-primary": t.active }]),
|
|
34
34
|
href: t.link
|
|
35
|
-
},
|
|
35
|
+
}, h(t.label), 11, B)
|
|
36
36
|
])
|
|
37
|
-
], 10,
|
|
38
|
-
key:
|
|
37
|
+
], 10, w)) : (s(), i("li", {
|
|
38
|
+
key: `breadcrumb-li-no-label-${o}`,
|
|
39
39
|
class: a(["uikit-list-none", e.listItemClasses]),
|
|
40
40
|
"aria-hidden": "true"
|
|
41
41
|
}, [
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
c(e.$slots, "separator", {}, () => [
|
|
43
|
+
b(f(C), {
|
|
44
44
|
class: "-uikit-rotate-90",
|
|
45
45
|
"stroke-color": "#222",
|
|
46
46
|
width: 10,
|
|
@@ -54,5 +54,5 @@ const C = { "aria-label": "Breadcrumb" }, g = ["data-tooltip"], w = ["href"], _
|
|
|
54
54
|
}
|
|
55
55
|
});
|
|
56
56
|
export {
|
|
57
|
-
_
|
|
57
|
+
$ as _
|
|
58
58
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as x, ref as u, useTemplateRef as E, onUnmounted as T, watch as z, openBlock as k, createBlock as H, Teleport as O, createElementVNode as l, normalizeClass as s, withModifiers as m, createElementBlock as h, createVNode as $, unref as D, createCommentVNode as w, renderSlot as n, nextTick as I } from "vue";
|
|
2
2
|
import "./types-B0dZ7OiV.D29wNgoj.js";
|
|
3
|
-
import { l as
|
|
3
|
+
import { l as K } from "./CloseIcon.DIkr4soH.js";
|
|
4
4
|
import "./PharmacyIcon.56ql_DYl.js";
|
|
5
|
-
import '../assets/BaseModal.css';const
|
|
5
|
+
import '../assets/BaseModal.css';const g = () => navigator?.userAgent.includes("Windows"), N = (o, d) => new Promise((a, t) => {
|
|
6
6
|
setTimeout(() => {
|
|
7
7
|
try {
|
|
8
8
|
o && o(), a();
|
|
@@ -10,7 +10,7 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
|
|
|
10
10
|
t();
|
|
11
11
|
}
|
|
12
12
|
}, d);
|
|
13
|
-
}),
|
|
13
|
+
}), V = ["id", "data-cy"], A = ["innerHTML"], R = /* @__PURE__ */ x({
|
|
14
14
|
__name: "BaseModal",
|
|
15
15
|
props: {
|
|
16
16
|
id: { default: "base-bt-modal" },
|
|
@@ -33,37 +33,45 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["closed", "opened"],
|
|
35
35
|
setup(o, { emit: d }) {
|
|
36
|
-
const a = d, t = u(!1),
|
|
36
|
+
const a = d, t = u(!1), p = u(null), b = E("modalDialog"), r = u(!1), c = u(!1), f = ({ key: e }) => {
|
|
37
37
|
e === "Escape" && i();
|
|
38
38
|
}, C = () => {
|
|
39
|
-
document?.body.addEventListener("keydown",
|
|
40
|
-
},
|
|
41
|
-
document?.body.removeEventListener("keydown",
|
|
42
|
-
},
|
|
43
|
-
t.value = !0,
|
|
44
|
-
C(), document?.documentElement.classList.add("uikit-no-scrolling"),
|
|
39
|
+
document?.body.addEventListener("keydown", f);
|
|
40
|
+
}, y = () => {
|
|
41
|
+
document?.body.removeEventListener("keydown", f);
|
|
42
|
+
}, M = async () => {
|
|
43
|
+
t.value = !0, I(() => {
|
|
44
|
+
C(), document?.documentElement.classList.add("uikit-no-scrolling"), g() ? document?.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.add("uikit-no-scrolling");
|
|
45
45
|
}), a("opened"), o.autoClose !== void 0 && setTimeout(() => {
|
|
46
46
|
i();
|
|
47
47
|
}, o.autoClose);
|
|
48
|
-
},
|
|
49
|
-
|
|
48
|
+
}, B = (e) => {
|
|
49
|
+
b.value && b.value.contains(e.target) && (c.value = !0);
|
|
50
|
+
}, L = async () => {
|
|
51
|
+
if (o.closeOnClickOut) {
|
|
52
|
+
if (c.value) {
|
|
53
|
+
c.value = !1;
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
await i();
|
|
57
|
+
}
|
|
50
58
|
}, i = async () => {
|
|
51
|
-
t.value = !1,
|
|
52
|
-
|
|
59
|
+
t.value = !1, y(), 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 N(() => {
|
|
60
|
+
p.value?.classList.add("uikit-hidden"), a("closed");
|
|
53
61
|
}, 250);
|
|
54
62
|
};
|
|
55
|
-
return
|
|
56
|
-
|
|
57
|
-
}),
|
|
63
|
+
return T(() => {
|
|
64
|
+
y(), document?.documentElement.classList.remove("uikit-no-scrolling"), g() ? document?.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px") : document?.body.classList.remove("uikit-no-scrolling");
|
|
65
|
+
}), z(
|
|
58
66
|
() => o.showModal,
|
|
59
67
|
async (e) => {
|
|
60
|
-
!e && !t.value ? r.value = !0 : r.value = !1, e && !t.value && await
|
|
68
|
+
!e && !t.value ? r.value = !0 : r.value = !1, e && !t.value && await M(), !e && t.value && await i(), t.value = e;
|
|
61
69
|
},
|
|
62
70
|
{ immediate: !0 }
|
|
63
|
-
), (e,
|
|
71
|
+
), (e, v) => (k(), H(O, { to: "body" }, [
|
|
64
72
|
l("div", {
|
|
65
73
|
ref_key: "backdropEl",
|
|
66
|
-
ref:
|
|
74
|
+
ref: p,
|
|
67
75
|
class: s(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
68
76
|
e.customBackdropClasses,
|
|
69
77
|
{
|
|
@@ -74,12 +82,12 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
|
|
|
74
82
|
{ hide: r.value }
|
|
75
83
|
]]),
|
|
76
84
|
style: { "z-index": "1062" },
|
|
77
|
-
onClick:
|
|
85
|
+
onClick: L,
|
|
86
|
+
onMousedown: m(B, ["stop"])
|
|
78
87
|
}, [
|
|
79
88
|
l("dialog", {
|
|
80
89
|
id: e.id,
|
|
81
|
-
|
|
82
|
-
ref: w,
|
|
90
|
+
ref: "modalDialog",
|
|
83
91
|
"data-cy": e.dataCy,
|
|
84
92
|
class: s(["uikit-modal-dialog transition-y uikit-mx-auto uikit-block uikit-w-full uikit-overflow-y-auto uikit-overflow-x-hidden uikit-rounded uikit-border-none uikit-bg-transparent uikit-bg-white uikit-p-0 uikit-shadow-lg uikit-no-scrollbar uikit-safe-bottom max-sm:uikit-fixed max-sm:uikit-bottom-0 max-sm:uikit-max-h-[95%] max-sm:uikit-rounded-bl-none max-sm:uikit-rounded-br-none sm:uikit-h-auto", [
|
|
85
93
|
e.customModalDialogClasses,
|
|
@@ -91,32 +99,32 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
|
|
|
91
99
|
`base-${e.size}`,
|
|
92
100
|
e.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
93
101
|
]]),
|
|
94
|
-
onClick:
|
|
102
|
+
onClick: v[0] || (v[0] = m(() => {
|
|
95
103
|
}, ["stop"]))
|
|
96
104
|
}, [
|
|
97
105
|
l("div", {
|
|
98
106
|
class: s(["default-header uikit-sticky uikit-top-0 uikit-z-10 uikit-rounded-t uikit-border-0 uikit-bg-white uikit-px-4 uikit-pb-10px uikit-pt-20px sm:uikit-px-6", [e.customModalHeaderClasses]])
|
|
99
107
|
}, [
|
|
100
|
-
e.withCloseIcon ? (
|
|
108
|
+
e.withCloseIcon ? (k(), h("button", {
|
|
101
109
|
key: 0,
|
|
102
110
|
id: "close-icon-btn",
|
|
103
111
|
"data-cy": "bbt-default-close-icon-btn",
|
|
104
112
|
class: s(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", e.closeIconBtnClasses]),
|
|
105
113
|
type: "button",
|
|
106
114
|
"aria-label": "Close",
|
|
107
|
-
onClick:
|
|
115
|
+
onClick: m(i, ["prevent", "stop"])
|
|
108
116
|
}, [
|
|
109
|
-
|
|
117
|
+
$(D(K), {
|
|
110
118
|
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
111
119
|
width: 30,
|
|
112
120
|
height: 30
|
|
113
121
|
})
|
|
114
|
-
], 2)) :
|
|
122
|
+
], 2)) : w("", !0),
|
|
115
123
|
n(e.$slots, "header", { closeModal: i }, () => [
|
|
116
124
|
l("span", {
|
|
117
125
|
class: s(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
118
126
|
innerHTML: e.headerTitle
|
|
119
|
-
}, null, 10,
|
|
127
|
+
}, null, 10, A)
|
|
120
128
|
])
|
|
121
129
|
], 2),
|
|
122
130
|
l("div", {
|
|
@@ -124,18 +132,18 @@ import '../assets/BaseModal.css';const h = () => navigator?.userAgent.includes("
|
|
|
124
132
|
}, [
|
|
125
133
|
n(e.$slots, "body", { closeModal: i })
|
|
126
134
|
], 2),
|
|
127
|
-
e.$slots.footer ? (
|
|
135
|
+
e.$slots.footer ? (k(), h("div", {
|
|
128
136
|
key: 0,
|
|
129
137
|
class: s(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", e.customModalFooterClasses])
|
|
130
138
|
}, [
|
|
131
139
|
n(e.$slots, "footer", { closeModal: i })
|
|
132
|
-
], 2)) :
|
|
140
|
+
], 2)) : w("", !0),
|
|
133
141
|
n(e.$slots, "fixed-bottom")
|
|
134
|
-
], 10,
|
|
135
|
-
],
|
|
142
|
+
], 10, V)
|
|
143
|
+
], 34)
|
|
136
144
|
]));
|
|
137
145
|
}
|
|
138
146
|
});
|
|
139
147
|
export {
|
|
140
|
-
|
|
148
|
+
R as _
|
|
141
149
|
};
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { default as Z } from "./BaseTextarea.js";
|
|
|
27
27
|
import { default as ee } from "./BaseToggle.js";
|
|
28
28
|
import { default as re } from "./BaseTooltip.js";
|
|
29
29
|
import { _ as te } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js";
|
|
30
|
-
import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.
|
|
30
|
+
import { _ as fe } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.C7ScZo9m.js";
|
|
31
31
|
import { default as me } from "./BaseSnackbar.js";
|
|
32
32
|
import { default as le } from "./StaticSpinner.js";
|
|
33
33
|
import { default as de } from "./BaseShimmerLoader.js";
|
|
@@ -39,7 +39,7 @@ import { _ as he } from "./chunks/IntersectionObservable.vue_vue_type_script_set
|
|
|
39
39
|
import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
|
|
40
40
|
import { S as we } from "./chunks/SwiperCarousel.DWUl3bgn.js";
|
|
41
41
|
import { default as ke } from "./SwiperSlide.js";
|
|
42
|
-
import { _ as ve } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.
|
|
42
|
+
import { _ as ve } from "./chunks/BaseBreadcrumb.vue_vue_type_script_setup_true_lang.BAE3i6sW.js";
|
|
43
43
|
import './assets/index.css';export {
|
|
44
44
|
I as AccessibleSelect,
|
|
45
45
|
r as BaseAccordion,
|