@wikicasa-dev/components 2.4.1-alpha.9 → 2.4.2-alpha.0
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/ChartJs/Chart.js +4 -0
- package/dist/ChartJs/DoughnutChart/core.js +6 -0
- package/dist/ChartJs/LineChart/cartesian.js +6 -0
- package/dist/ChartJs/LineChart/core.js +6 -0
- package/dist/ChartJs/Plugins/Legend.js +2 -0
- package/dist/ChartJs/Plugins/TimeScale.js +3 -0
- package/dist/ChartJs/Plugins/Title.js +2 -0
- package/dist/ChartJs/Plugins/Tooltip.js +2 -0
- package/dist/Swiper/Autoplay/factory.js +9 -0
- package/dist/Swiper/Autoplay/index.js +5 -0
- package/dist/Swiper/Controller/factory.js +9 -0
- package/dist/Swiper/{controller.js → Controller/index.js} +2 -2
- package/dist/Swiper/FreeMode/factory.js +9 -0
- package/dist/Swiper/FreeMode/index.js +5 -0
- package/dist/Swiper/Keyboard/factory.js +9 -0
- package/dist/Swiper/Keyboard/index.js +5 -0
- package/dist/Swiper/Navigation/factory.js +17 -0
- package/dist/Swiper/Navigation/index.js +5 -0
- package/dist/Swiper/Pagination/factory.js +17 -0
- package/dist/Swiper/Pagination/index.js +5 -0
- package/dist/Swiper/Thumbs/factory.js +9 -0
- package/dist/Swiper/Thumbs/index.js +5 -0
- package/dist/Swiper/Zoom/factory.js +9 -0
- package/dist/Swiper/Zoom/index.js +5 -0
- package/dist/Swiper/factory.js +13 -0
- package/dist/Swiper/index.js +5 -0
- package/dist/Swiper/types.js +1 -0
- package/dist/UIKit/BaseModal.d.ts +0 -1
- package/dist/VueChartJs/Doughnut/factory.js +12 -0
- package/dist/VueChartJs/Doughnut/index.js +4 -0
- package/dist/VueChartJs/Line/factory.js +14 -0
- package/dist/VueChartJs/Line/index.js +4 -0
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -1
- package/dist/assets/tailwind.css +1 -1
- package/dist/components/IntersectionObserver/IntersectionObserver.d.ts +1 -1
- package/dist/components/carousel/SwiperCarousel.d.ts +9 -2327
- package/dist/components/carousel/SwiperCarousel.js +1 -1
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +51 -53
- package/dist/packages/components/lib/chart/DoughnutChart.vue.js +14 -15
- package/dist/packages/components/lib/chart/LineChart.vue.js +19 -31
- package/dist/packages/components/lib/components/carousel/SwiperCarousel.vue.js +128 -165
- package/package.json +1 -1
- package/dist/Swiper/autoplay.js +0 -5
- package/dist/Swiper/free-mode.js +0 -5
- package/dist/Swiper/keyboard.js +0 -5
- package/dist/Swiper/navigation.js +0 -5
- package/dist/Swiper/pagination.js +0 -5
- package/dist/Swiper/thumbs.js +0 -5
- package/dist/chart/composables/useChartjsModules.d.ts +0 -10
- package/dist/chart/composables/useChartjsModules.js +0 -37
- /package/dist/assets/{swiper-keyboard.css → swiper-autoplay.css} +0 -0
|
@@ -2,7 +2,7 @@ import o from "../../packages/components/lib/components/carousel/SwiperCarousel.
|
|
|
2
2
|
import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-
|
|
5
|
+
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-eb63ca0a"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
8
8
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { CloseIcon as
|
|
3
|
-
const G = ["id", "data-cy"],
|
|
1
|
+
import { defineComponent as A, mergeModels as h, useModel as F, useTemplateRef as y, shallowRef as C, onUnmounted as K, createBlock as N, openBlock as k, Teleport as S, createVNode as w, Transition as V, unref as p, withCtx as P, withDirectives as R, createElementVNode as l, normalizeClass as i, createElementBlock as x, createCommentVNode as g, renderSlot as d, withModifiers as U, vShow as j } from "vue";
|
|
2
|
+
import { CloseIcon as q } from "@wikicasa-dev/svg-icons";
|
|
3
|
+
const G = ["id", "data-cy"], J = ["innerHTML"], X = /* @__PURE__ */ A({
|
|
4
4
|
__name: "BaseModal",
|
|
5
5
|
props: /* @__PURE__ */ h({
|
|
6
6
|
id: { default: "base-bt-modal" },
|
|
@@ -19,76 +19,74 @@ const G = ["id", "data-cy"], j = ["innerHTML"], Q = /* @__PURE__ */ $({
|
|
|
19
19
|
centered: { type: Boolean, default: !1 },
|
|
20
20
|
dataCy: {},
|
|
21
21
|
closeIconBtnClasses: {},
|
|
22
|
-
titleClasses: {}
|
|
23
|
-
appear: { type: Boolean, default: !0 }
|
|
22
|
+
titleClasses: {}
|
|
24
23
|
}, {
|
|
25
24
|
showModal: { type: Boolean, default: !0 },
|
|
26
25
|
showModalModifiers: {}
|
|
27
26
|
}),
|
|
28
27
|
emits: /* @__PURE__ */ h(["closed", "opened", "dialogClick"], ["update:showModal"]),
|
|
29
|
-
setup(e, { emit:
|
|
30
|
-
const r =
|
|
31
|
-
t === "Escape" &&
|
|
32
|
-
},
|
|
28
|
+
setup(e, { emit: M }) {
|
|
29
|
+
const r = M, o = F(e, "showModal"), B = o.value, m = y("backdrop"), a = y("modalDialog"), u = C(!1), c = C(!1), f = ({ key: t }) => {
|
|
30
|
+
t === "Escape" && s();
|
|
31
|
+
}, E = () => {
|
|
33
32
|
document?.body.addEventListener("keydown", f);
|
|
34
33
|
}, b = () => {
|
|
35
34
|
document?.body.removeEventListener("keydown", f);
|
|
36
|
-
},
|
|
37
|
-
c.value || (
|
|
38
|
-
timestamp: Date.now(),
|
|
39
|
-
showModal: o.value,
|
|
40
|
-
stack: new Error().stack
|
|
41
|
-
}), M(), document?.body.classList.add(
|
|
35
|
+
}, I = () => {
|
|
36
|
+
c.value || (E(), document?.body.classList.add(
|
|
42
37
|
"sm:uikit-pr-15px",
|
|
43
38
|
"sm:uikit-mr-0",
|
|
44
39
|
"uikit-overflow-hidden"
|
|
45
40
|
), c.value = !0);
|
|
46
|
-
},
|
|
41
|
+
}, L = () => {
|
|
47
42
|
r("opened"), e.autoClose !== void 0 && setTimeout(() => {
|
|
48
|
-
|
|
43
|
+
s();
|
|
49
44
|
}, e.autoClose);
|
|
50
|
-
},
|
|
51
|
-
|
|
45
|
+
}, z = () => {
|
|
46
|
+
document?.body.classList.remove(
|
|
52
47
|
"sm:uikit-pr-15px",
|
|
53
48
|
"sm:uikit-mr-0",
|
|
54
49
|
"uikit-overflow-hidden"
|
|
55
|
-
)
|
|
56
|
-
},
|
|
50
|
+
);
|
|
51
|
+
}, T = () => {
|
|
52
|
+
b(), c.value = !1, r("closed");
|
|
53
|
+
}, s = () => {
|
|
57
54
|
o.value = !1;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
},
|
|
55
|
+
}, $ = (t) => {
|
|
56
|
+
a.value && a.value.contains(t.target) && (u.value = !0);
|
|
57
|
+
}, D = (t) => {
|
|
58
|
+
a.value && a.value.contains(t.target) && (u.value = !1);
|
|
59
|
+
}, H = async (t) => {
|
|
63
60
|
if (!(t.target !== m.value && m.value?.contains(t.target)) && e.closeOnClickOut) {
|
|
64
61
|
if (u.value) {
|
|
65
62
|
u.value = !1;
|
|
66
63
|
return;
|
|
67
64
|
}
|
|
68
|
-
|
|
65
|
+
s();
|
|
69
66
|
}
|
|
70
67
|
};
|
|
71
|
-
|
|
68
|
+
K(() => {
|
|
72
69
|
b(), document?.body.classList.remove(
|
|
73
70
|
"sm:uikit-pr-15px",
|
|
74
71
|
"sm:uikit-mr-0",
|
|
75
72
|
"uikit-overflow-hidden"
|
|
76
73
|
);
|
|
77
74
|
});
|
|
78
|
-
const
|
|
79
|
-
|
|
75
|
+
const O = (t) => {
|
|
76
|
+
a.value === t.target && t.stopPropagation();
|
|
80
77
|
};
|
|
81
|
-
return (t, n) => (k(),
|
|
82
|
-
|
|
83
|
-
appear:
|
|
78
|
+
return (t, n) => (k(), N(S, { to: "body" }, [
|
|
79
|
+
w(V, {
|
|
80
|
+
appear: p(B),
|
|
84
81
|
name: "modal-transition",
|
|
85
82
|
duration: { enter: 500, leave: 250 },
|
|
86
|
-
onBeforeEnter:
|
|
87
|
-
onAfterEnter:
|
|
88
|
-
|
|
83
|
+
onBeforeEnter: I,
|
|
84
|
+
onAfterEnter: L,
|
|
85
|
+
onLeave: z,
|
|
86
|
+
onAfterLeave: T
|
|
89
87
|
}, {
|
|
90
|
-
default:
|
|
91
|
-
|
|
88
|
+
default: P(() => [
|
|
89
|
+
R(l("div", {
|
|
92
90
|
ref: "backdrop",
|
|
93
91
|
class: i(["bbt-backdrop uikit-fixed uikit-left-0 uikit-top-0 uikit-z-50 uikit-h-full uikit-w-full", [
|
|
94
92
|
e.customBackdropClasses,
|
|
@@ -98,9 +96,9 @@ const G = ["id", "data-cy"], j = ["innerHTML"], Q = /* @__PURE__ */ $({
|
|
|
98
96
|
{ "uikit-bg-transparent": !o.value },
|
|
99
97
|
{ "sm:uikit-pt-[30px]": !e.centered }
|
|
100
98
|
]]),
|
|
101
|
-
onClick:
|
|
102
|
-
onMousedown:
|
|
103
|
-
onMouseup:
|
|
99
|
+
onClick: H,
|
|
100
|
+
onMousedown: $,
|
|
101
|
+
onMouseup: D
|
|
104
102
|
}, [
|
|
105
103
|
l("dialog", {
|
|
106
104
|
id: e.id,
|
|
@@ -117,12 +115,12 @@ const G = ["id", "data-cy"], j = ["innerHTML"], Q = /* @__PURE__ */ $({
|
|
|
117
115
|
]]),
|
|
118
116
|
tabindex: "-1",
|
|
119
117
|
onClick: n[1] || (n[1] = (v) => r("dialogClick", v)),
|
|
120
|
-
onFocusin:
|
|
118
|
+
onFocusin: O
|
|
121
119
|
}, [
|
|
122
120
|
l("div", {
|
|
123
121
|
class: i(["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]])
|
|
124
122
|
}, [
|
|
125
|
-
e.withCloseIcon ? (k(),
|
|
123
|
+
e.withCloseIcon ? (k(), x("button", {
|
|
126
124
|
key: 0,
|
|
127
125
|
id: "close-icon-btn",
|
|
128
126
|
"data-cy": "bbt-default-close-icon-btn",
|
|
@@ -131,34 +129,34 @@ const G = ["id", "data-cy"], j = ["innerHTML"], Q = /* @__PURE__ */ $({
|
|
|
131
129
|
"aria-label": "Close",
|
|
132
130
|
onClick: n[0] || (n[0] = U((v) => o.value = !1, ["prevent", "stop"]))
|
|
133
131
|
}, [
|
|
134
|
-
|
|
132
|
+
w(p(q), {
|
|
135
133
|
class: i(["bbt-close-icon uikit-box-border", e.closeIcon?.classes]),
|
|
136
134
|
width: e.closeIcon?.size || 20,
|
|
137
135
|
height: e.closeIcon?.size || 20
|
|
138
136
|
}, null, 8, ["class", "width", "height"])
|
|
139
|
-
], 2)) :
|
|
140
|
-
d(t.$slots, "header", { closeModal:
|
|
137
|
+
], 2)) : g("", !0),
|
|
138
|
+
d(t.$slots, "header", { closeModal: s }, () => [
|
|
141
139
|
l("span", {
|
|
142
140
|
class: i(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", e.titleClasses]),
|
|
143
141
|
innerHTML: e.headerTitle
|
|
144
|
-
}, null, 10,
|
|
142
|
+
}, null, 10, J)
|
|
145
143
|
])
|
|
146
144
|
], 2),
|
|
147
145
|
l("div", {
|
|
148
146
|
class: i(["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", [e.customModalBodyClasses]])
|
|
149
147
|
}, [
|
|
150
|
-
d(t.$slots, "body", { closeModal:
|
|
148
|
+
d(t.$slots, "body", { closeModal: s })
|
|
151
149
|
], 2),
|
|
152
|
-
t.$slots.footer ? (k(),
|
|
150
|
+
t.$slots.footer ? (k(), x("div", {
|
|
153
151
|
key: 0,
|
|
154
152
|
class: i(["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])
|
|
155
153
|
}, [
|
|
156
|
-
d(t.$slots, "footer", { closeModal:
|
|
157
|
-
], 2)) :
|
|
154
|
+
d(t.$slots, "footer", { closeModal: s })
|
|
155
|
+
], 2)) : g("", !0),
|
|
158
156
|
d(t.$slots, "fixed-bottom")
|
|
159
157
|
], 42, G)
|
|
160
158
|
], 34), [
|
|
161
|
-
[
|
|
159
|
+
[j, o.value]
|
|
162
160
|
])
|
|
163
161
|
]),
|
|
164
162
|
_: 3
|
|
@@ -167,5 +165,5 @@ const G = ["id", "data-cy"], j = ["innerHTML"], Q = /* @__PURE__ */ $({
|
|
|
167
165
|
}
|
|
168
166
|
});
|
|
169
167
|
export {
|
|
170
|
-
|
|
168
|
+
X as default
|
|
171
169
|
};
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { useChartJsModules as g } from "../../../../chart/composables/useChartjsModules.js";
|
|
5
|
-
const y = /* @__PURE__ */ s({
|
|
1
|
+
import { defineComponent as o, defineAsyncComponent as e, hydrateOnIdle as a, createBlock as i, openBlock as l, unref as r } from "vue";
|
|
2
|
+
import { createDoughnutChart as u } from "../../../../VueChartJs/Doughnut/factory.js";
|
|
3
|
+
const h = /* @__PURE__ */ o({
|
|
6
4
|
__name: "DoughnutChart",
|
|
7
5
|
props: {
|
|
8
6
|
options: {},
|
|
9
7
|
data: {}
|
|
10
8
|
},
|
|
11
9
|
setup(t) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const n = e({
|
|
11
|
+
loader: () => u({
|
|
12
|
+
tooltip: !!t.options.plugins?.tooltip,
|
|
13
|
+
legend: !!t.options.plugins?.legend,
|
|
14
|
+
title: !!t.options.plugins?.title
|
|
15
|
+
}),
|
|
16
|
+
hydrate: a()
|
|
17
|
+
});
|
|
18
|
+
return (s, d) => (l(), i(r(n), {
|
|
20
19
|
options: t.options,
|
|
21
20
|
data: t.data
|
|
22
|
-
}, null, 8, ["options", "data"]))
|
|
21
|
+
}, null, 8, ["options", "data"]));
|
|
23
22
|
}
|
|
24
23
|
});
|
|
25
24
|
export {
|
|
26
|
-
|
|
25
|
+
h as default
|
|
27
26
|
};
|
|
@@ -1,42 +1,30 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { useChartJsModules as M } from "../../../../chart/composables/useChartjsModules.js";
|
|
5
|
-
const F = /* @__PURE__ */ m({
|
|
1
|
+
import { defineComponent as i, defineAsyncComponent as c, hydrateOnIdle as s, useTemplateRef as l, computed as r, createBlock as p, openBlock as d, unref as m } from "vue";
|
|
2
|
+
import { createLineChart as u } from "../../../../VueChartJs/Line/factory.js";
|
|
3
|
+
const y = /* @__PURE__ */ i({
|
|
6
4
|
__name: "LineChart",
|
|
7
5
|
props: {
|
|
8
6
|
options: {},
|
|
9
7
|
data: {}
|
|
10
8
|
},
|
|
11
|
-
setup(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
setup(t, { expose: e }) {
|
|
10
|
+
const n = c({
|
|
11
|
+
loader: () => u({
|
|
12
|
+
timeAxis: t.options.scales?.x?.type === "time",
|
|
13
|
+
tooltip: !!t.options.plugins?.tooltip,
|
|
14
|
+
legend: !!t.options.plugins?.legend,
|
|
15
|
+
title: !!t.options.plugins?.title
|
|
16
|
+
}),
|
|
17
|
+
hydrate: s()
|
|
18
|
+
}), o = l("chart"), a = r(
|
|
19
|
+
() => o.value?.chart
|
|
19
20
|
);
|
|
20
|
-
|
|
21
|
-
registerPlugins: n,
|
|
22
|
-
registerTimeCartesianAxis: a,
|
|
23
|
-
executeRegistration: i,
|
|
24
|
-
resolved: s
|
|
25
|
-
} = M(r.options);
|
|
26
|
-
p(() => {
|
|
27
|
-
i(n, a);
|
|
28
|
-
});
|
|
29
|
-
const c = u("chart"), l = f(
|
|
30
|
-
() => c.value?.chart
|
|
31
|
-
);
|
|
32
|
-
return o({ chartInstance: l }), (P, R) => t(s) ? (C(), d(t(g), {
|
|
33
|
-
key: 0,
|
|
21
|
+
return e({ chartInstance: a }), (h, f) => (d(), p(m(n), {
|
|
34
22
|
ref: "chart",
|
|
35
|
-
options:
|
|
36
|
-
data:
|
|
37
|
-
}, null, 8, ["options", "data"]))
|
|
23
|
+
options: t.options,
|
|
24
|
+
data: t.data
|
|
25
|
+
}, null, 8, ["options", "data"]));
|
|
38
26
|
}
|
|
39
27
|
});
|
|
40
28
|
export {
|
|
41
|
-
|
|
29
|
+
y as default
|
|
42
30
|
};
|