@wikicasa-dev/components 1.9.9 → 1.9.11
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/BaseAutocomplete.js +1 -1
- package/dist/BaseModal.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/SwiperCarousel.js +3 -2
- package/dist/assets/BaseComplexToggle.css +1 -1
- package/dist/assets/BaseModal.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.CVHgONL9.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.C4reyEmW.js} +1 -1
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.Cu555pTv.js +142 -0
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.m1hcl9Ft.js → BasePagination.vue_vue_type_script_setup_true_lang.DVRq2MJS.js} +7 -7
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.hSeL05pn.js} +2 -2
- package/dist/chunks/ObjectUtils.BOUbloeg.js +10 -0
- package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.PH6iC0qV.js → SwiperCarousel.BV6QiwmC.js} +59 -58
- package/dist/chunks/{index.BbdLcPJo.js → index.C7BPB1tC.js} +2 -2
- package/dist/chunks/types-B0dZ7OiV.D29wNgoj.js +3209 -0
- package/dist/index.js +5 -5
- package/package.json +2 -2
- package/dist/chunks/BaseModal.vue_vue_type_style_index_0_lang.DSPssuBQ.js +0 -141
- package/dist/chunks/ObjectUtils.B1Dk4qsM.js +0 -12
- package/dist/chunks/js.cookie.CkZE2oaL.js +0 -95
package/dist/index.js
CHANGED
|
@@ -4,14 +4,14 @@ import { _ as f } from "./chunks/BaseAccordionContent.vue_vue_type_script_setup_
|
|
|
4
4
|
import { _ as m } from "./chunks/BaseAccordionItem.vue_vue_type_script_setup_true_lang.6bQhmpuN.js";
|
|
5
5
|
import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.Colhxc7n.js";
|
|
6
6
|
import { default as d } from "./CheckboxBtn.js";
|
|
7
|
-
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.
|
|
7
|
+
import { _ as u } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.hSeL05pn.js";
|
|
8
8
|
import { _ } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.Cu67jd8K.js";
|
|
9
9
|
import { _ as S } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DSlvTOkB.js";
|
|
10
10
|
import { _ as g } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
|
|
11
11
|
import { _ as h } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.BYlMCUWP.js";
|
|
12
12
|
import { _ as I } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.Dex-5kju.js";
|
|
13
13
|
import { _ as w } from "./chunks/BaseAlert.vue_vue_type_style_index_0_lang.BtqP_iYL.js";
|
|
14
|
-
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.
|
|
14
|
+
import { _ as k } from "./chunks/BaseAutocomplete.vue_vue_type_script_setup_true_lang.C4reyEmW.js";
|
|
15
15
|
import { _ as D } from "./chunks/BaseBadge.vue_vue_type_style_index_0_lang.BOA1gBKu.js";
|
|
16
16
|
import { _ as G } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.dlLTK59i.js";
|
|
17
17
|
import { default as O } from "./BaseCard.js";
|
|
@@ -21,14 +21,14 @@ import { default as j } from "./BaseFloatingLabel.js";
|
|
|
21
21
|
import { default as y } from "./BaseIcon.js";
|
|
22
22
|
import { default as E } from "./BaseInput.js";
|
|
23
23
|
import { default as J } from "./BaseNavItem.js";
|
|
24
|
-
import { _ as Q } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.
|
|
24
|
+
import { _ as Q } from "./chunks/BasePagination.vue_vue_type_script_setup_true_lang.DVRq2MJS.js";
|
|
25
25
|
import { default as X } from "./BasePaper.js";
|
|
26
26
|
import { default as Z } from "./BaseSlider.js";
|
|
27
27
|
import { default as ee } from "./BaseTextarea.js";
|
|
28
28
|
import { default as re } from "./BaseToggle.js";
|
|
29
29
|
import { default as te } from "./BaseTooltip.js";
|
|
30
30
|
import { _ as fe } from "./chunks/BaseUploadFile.vue_vue_type_script_setup_true_lang.2elmVcZt.js";
|
|
31
|
-
import { _ as me } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.
|
|
31
|
+
import { _ as me } from "./chunks/BaseModal.vue_vue_type_style_index_0_lang.Cu555pTv.js";
|
|
32
32
|
import { default as le } from "./BaseSnackbar.js";
|
|
33
33
|
import { default as de } from "./StaticSpinner.js";
|
|
34
34
|
import { default as ue } from "./BaseShimmerLoader.js";
|
|
@@ -37,7 +37,7 @@ import { _ as Se } from "./chunks/DoughnutChart.vue_vue_type_script_setup_true_l
|
|
|
37
37
|
import { _ as ge } from "./chunks/LineChart.vue_vue_type_script_setup_true_lang.CNkvmtfq.js";
|
|
38
38
|
import { _ as he } from "./chunks/IntersectionObservable.vue_vue_type_script_setup_true_lang.BBMxY-re.js";
|
|
39
39
|
import { _ as Ie } from "./chunks/IntersectionObserver.vue_vue_type_script_setup_true_lang.CQHjzQc3.js";
|
|
40
|
-
import {
|
|
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
43
|
import './assets/index.css';export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.11",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@wikicasa-dev/svg-icons": "^0.0.36",
|
|
46
46
|
"@wikicasa-dev/tailwind-plugins": "^0.0.2",
|
|
47
47
|
"@wikicasa-dev/types": "^1.5.52",
|
|
48
|
-
"@wikicasa-dev/utilities": "^0.
|
|
48
|
+
"@wikicasa-dev/utilities": "^1.0.22",
|
|
49
49
|
"@wikicasa-dev/vue-composables": "^0.0.4",
|
|
50
50
|
"autoprefixer": "^10.4.20",
|
|
51
51
|
"chromatic": "^11.12.5",
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, ref as k, onUnmounted as M, watch as B, nextTick as E, openBlock as c, createBlock as b, Teleport as L, createElementVNode as a, normalizeClass as o, withModifiers as y, withCtx as $, createVNode as T, unref as z, createCommentVNode as h, renderSlot as d, createElementBlock as H } from "vue";
|
|
2
|
-
import "./js.cookie.CkZE2oaL.js";
|
|
3
|
-
import { _ as O } from "./BaseButton.vue_vue_type_script_setup_true_lang.dlLTK59i.js";
|
|
4
|
-
import { l as I } from "./CloseIcon._moEkaop.js";
|
|
5
|
-
import "./DownloadIcon.DHCHRETy.js";
|
|
6
|
-
import '../assets/BaseModal.css';const K = (l, n) => new Promise((s, u) => {
|
|
7
|
-
setTimeout(() => {
|
|
8
|
-
try {
|
|
9
|
-
l && l(), s();
|
|
10
|
-
} catch {
|
|
11
|
-
u();
|
|
12
|
-
}
|
|
13
|
-
}, n);
|
|
14
|
-
}), N = ["id", "data-cy"], V = ["innerHTML"], j = /* @__PURE__ */ x({
|
|
15
|
-
__name: "BaseModal",
|
|
16
|
-
props: {
|
|
17
|
-
id: { default: "base-bt-modal" },
|
|
18
|
-
size: { default: "modal-md" },
|
|
19
|
-
customBackdropClasses: { default: "" },
|
|
20
|
-
customModalDialogClasses: { default: "" },
|
|
21
|
-
customModalHeaderClasses: { default: "" },
|
|
22
|
-
customModalBodyClasses: { default: "" },
|
|
23
|
-
customModalFooterClasses: { default: "" },
|
|
24
|
-
withCloseIcon: { type: Boolean, default: !0 },
|
|
25
|
-
showModal: { type: Boolean, default: !0 },
|
|
26
|
-
closeIcon: { default: "" },
|
|
27
|
-
headerTitle: { default: "" },
|
|
28
|
-
autoClose: {},
|
|
29
|
-
fullHeight: { type: Boolean, default: !1 },
|
|
30
|
-
closeOnClickOut: { type: Boolean, default: !0 },
|
|
31
|
-
centered: { type: Boolean, default: !1 }
|
|
32
|
-
},
|
|
33
|
-
emits: ["closed", "opened"],
|
|
34
|
-
setup(l, { emit: n }) {
|
|
35
|
-
const s = l, u = n, e = k(!1), r = k(null), v = k(null), m = ({ key: t }) => {
|
|
36
|
-
t === "Escape" && i();
|
|
37
|
-
}, w = () => {
|
|
38
|
-
document.body.addEventListener("keydown", m);
|
|
39
|
-
}, p = () => {
|
|
40
|
-
document.body.removeEventListener("keydown", m);
|
|
41
|
-
}, C = async () => {
|
|
42
|
-
e.value = !0, w(), document.documentElement.classList.add("uikit-no-scrolling"), document.body.classList.add("uikit-no-scrolling", "sm:uikit-pr-15px"), u("opened"), s.autoClose !== void 0 && setTimeout(() => {
|
|
43
|
-
i();
|
|
44
|
-
}, s.autoClose);
|
|
45
|
-
}, g = async () => {
|
|
46
|
-
s.closeOnClickOut && await i();
|
|
47
|
-
}, i = async () => {
|
|
48
|
-
e.value = !1, p(), document.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px"), document.documentElement.classList.remove("uikit-no-scrolling"), await K(() => {
|
|
49
|
-
r.value?.classList.add("uikit-hidden"), u("closed");
|
|
50
|
-
}, 250);
|
|
51
|
-
};
|
|
52
|
-
return M(() => {
|
|
53
|
-
p(), document.body.classList.remove("uikit-no-scrolling", "sm:uikit-pr-15px"), document.documentElement.classList.remove("uikit-no-scrolling");
|
|
54
|
-
}), B(
|
|
55
|
-
() => s.showModal,
|
|
56
|
-
async (t) => {
|
|
57
|
-
!t && !e.value && E(() => {
|
|
58
|
-
r.value?.classList.add("uikit-hidden");
|
|
59
|
-
}), t && !e.value && await C(), !t && e.value && await i(), e.value = t;
|
|
60
|
-
},
|
|
61
|
-
{ immediate: !0 }
|
|
62
|
-
), (t, f) => (c(), b(L, { to: "body" }, [
|
|
63
|
-
a("div", {
|
|
64
|
-
ref_key: "backdropEl",
|
|
65
|
-
ref: r,
|
|
66
|
-
class: o(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-h-full uikit-w-full", [
|
|
67
|
-
t.customBackdropClasses,
|
|
68
|
-
{
|
|
69
|
-
"uikit-animate-[backdrop-opacity_0.3s_ease-out_0s_backwards] uikit-bg-w-secondary/70": e.value
|
|
70
|
-
},
|
|
71
|
-
{ "uikit-bg-transparent": !e.value },
|
|
72
|
-
{ "sm:uikit-pt-[30px]": !t.centered }
|
|
73
|
-
]]),
|
|
74
|
-
style: { "z-index": "1062" },
|
|
75
|
-
onClick: g
|
|
76
|
-
}, [
|
|
77
|
-
a("dialog", {
|
|
78
|
-
id: t.id,
|
|
79
|
-
ref_key: "modalEl",
|
|
80
|
-
ref: v,
|
|
81
|
-
"data-cy": t.$attrs["data-cy"],
|
|
82
|
-
class: o(["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", [
|
|
83
|
-
t.customModalDialogClasses,
|
|
84
|
-
{ show: e.value },
|
|
85
|
-
{ "closed uikit-overflow-hidden": !e.value },
|
|
86
|
-
{ centered: t.centered },
|
|
87
|
-
`base-${t.size}`,
|
|
88
|
-
t.fullHeight ? "uikit-h-[95%]" : "uikit-h-auto"
|
|
89
|
-
]]),
|
|
90
|
-
onClick: f[0] || (f[0] = y(() => {
|
|
91
|
-
}, ["stop"]))
|
|
92
|
-
}, [
|
|
93
|
-
a("div", {
|
|
94
|
-
class: o(["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", [t.customModalHeaderClasses]])
|
|
95
|
-
}, [
|
|
96
|
-
t.withCloseIcon ? (c(), b(O, {
|
|
97
|
-
key: 0,
|
|
98
|
-
id: "close-icon-btn",
|
|
99
|
-
"data-cy": "bbt-default-close-icon-btn",
|
|
100
|
-
class: o(["uikit-absolute uikit-right-15px uikit-top-15px uikit-z-10 uikit-bg-transparent", t.$attrs["close-icon-btn-classes"]]),
|
|
101
|
-
type: "button",
|
|
102
|
-
"aria-label": "Close",
|
|
103
|
-
"is-empty": !0,
|
|
104
|
-
onClick: y(i, ["prevent", "stop"])
|
|
105
|
-
}, {
|
|
106
|
-
default: $(() => [
|
|
107
|
-
T(z(I), {
|
|
108
|
-
class: "bbt-close-icon uikit-box-border uikit-p-5px",
|
|
109
|
-
width: 30,
|
|
110
|
-
height: 30
|
|
111
|
-
})
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
}, 8, ["class"])) : h("", !0),
|
|
115
|
-
d(t.$slots, "header", { closeModal: i }, () => [
|
|
116
|
-
a("span", {
|
|
117
|
-
class: o(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", t.$attrs["title-classes"]]),
|
|
118
|
-
innerHTML: t.headerTitle
|
|
119
|
-
}, null, 10, V)
|
|
120
|
-
])
|
|
121
|
-
], 2),
|
|
122
|
-
a("div", {
|
|
123
|
-
class: o(["uikit-bbt-body uikit-flex-auto uikit-overflow-y-auto uikit-overflow-x-hidden uikit-px-4 uikit-pb-0 uikit-no-scrollbar sm:uikit-px-6 sm:uikit-pb-25px", [t.customModalBodyClasses]])
|
|
124
|
-
}, [
|
|
125
|
-
d(t.$slots, "body", { closeModal: i })
|
|
126
|
-
], 2),
|
|
127
|
-
t.$slots.footer ? (c(), H("div", {
|
|
128
|
-
key: 0,
|
|
129
|
-
class: o(["uikit-bbt-footer uikit-sticky uikit-bottom-0 uikit-border-0 uikit-bg-white uikit-px-4 uikit-py-15px sm:uikit-px-6", t.customModalFooterClasses])
|
|
130
|
-
}, [
|
|
131
|
-
d(t.$slots, "footer", { closeModal: i })
|
|
132
|
-
], 2)) : h("", !0),
|
|
133
|
-
d(t.$slots, "fixed-bottom")
|
|
134
|
-
], 10, N)
|
|
135
|
-
], 2)
|
|
136
|
-
]));
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
export {
|
|
140
|
-
j as _
|
|
141
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
let g;
|
|
2
|
-
const y = new Uint8Array(16);
|
|
3
|
-
function h() {
|
|
4
|
-
if (!g && (g = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !g))
|
|
5
|
-
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
6
|
-
return g(y);
|
|
7
|
-
}
|
|
8
|
-
const o = [];
|
|
9
|
-
for (let e = 0; e < 256; ++e)
|
|
10
|
-
o.push((e + 256).toString(16).slice(1));
|
|
11
|
-
function f(e, n = 0) {
|
|
12
|
-
return o[e[n + 0]] + o[e[n + 1]] + o[e[n + 2]] + o[e[n + 3]] + "-" + o[e[n + 4]] + o[e[n + 5]] + "-" + o[e[n + 6]] + o[e[n + 7]] + "-" + o[e[n + 8]] + o[e[n + 9]] + "-" + o[e[n + 10]] + o[e[n + 11]] + o[e[n + 12]] + o[e[n + 13]] + o[e[n + 14]] + o[e[n + 15]];
|
|
13
|
-
}
|
|
14
|
-
const x = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), U = {
|
|
15
|
-
randomUUID: x
|
|
16
|
-
};
|
|
17
|
-
function C(e, n, u) {
|
|
18
|
-
if (U.randomUUID && !n && !e)
|
|
19
|
-
return U.randomUUID();
|
|
20
|
-
e = e || {};
|
|
21
|
-
const c = e.random || (e.rng || h)();
|
|
22
|
-
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, f(c);
|
|
23
|
-
}
|
|
24
|
-
C();
|
|
25
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
26
|
-
function l(e) {
|
|
27
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
28
|
-
var u = arguments[n];
|
|
29
|
-
for (var c in u)
|
|
30
|
-
e[c] = u[c];
|
|
31
|
-
}
|
|
32
|
-
return e;
|
|
33
|
-
}
|
|
34
|
-
var a = {
|
|
35
|
-
read: function(e) {
|
|
36
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
37
|
-
},
|
|
38
|
-
write: function(e) {
|
|
39
|
-
return encodeURIComponent(e).replace(
|
|
40
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
41
|
-
decodeURIComponent
|
|
42
|
-
);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
function v(e, n) {
|
|
46
|
-
function u(t, p, r) {
|
|
47
|
-
if (!(typeof document > "u")) {
|
|
48
|
-
r = l({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
49
|
-
var i = "";
|
|
50
|
-
for (var d in r)
|
|
51
|
-
r[d] && (i += "; " + d, r[d] !== !0 && (i += "=" + r[d].split(";")[0]));
|
|
52
|
-
return document.cookie = t + "=" + e.write(p, t) + i;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function c(t) {
|
|
56
|
-
if (!(typeof document > "u" || arguments.length && !t)) {
|
|
57
|
-
for (var p = document.cookie ? document.cookie.split("; ") : [], r = {}, i = 0; i < p.length; i++) {
|
|
58
|
-
var d = p[i].split("="), s = d.slice(1).join("=");
|
|
59
|
-
try {
|
|
60
|
-
var m = decodeURIComponent(d[0]);
|
|
61
|
-
if (r[m] = e.read(s, m), t === m)
|
|
62
|
-
break;
|
|
63
|
-
} catch {
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return t ? r[t] : r;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return Object.create(
|
|
70
|
-
{
|
|
71
|
-
set: u,
|
|
72
|
-
get: c,
|
|
73
|
-
remove: function(t, p) {
|
|
74
|
-
u(
|
|
75
|
-
t,
|
|
76
|
-
"",
|
|
77
|
-
l({}, p, {
|
|
78
|
-
expires: -1
|
|
79
|
-
})
|
|
80
|
-
);
|
|
81
|
-
},
|
|
82
|
-
withAttributes: function(t) {
|
|
83
|
-
return v(this.converter, l({}, this.attributes, t));
|
|
84
|
-
},
|
|
85
|
-
withConverter: function(t) {
|
|
86
|
-
return v(l({}, this.converter, t), this.attributes);
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
attributes: { value: Object.freeze(n) },
|
|
91
|
-
converter: { value: Object.freeze(e) }
|
|
92
|
-
}
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
v(a, { path: "/" });
|