@wikicasa-dev/components 1.7.37 → 1.7.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/BaseAutocomplete.js +1 -1
- package/dist/BasePagination.js +1 -1
- package/dist/BaseSlider.js +4 -8
- package/dist/BaseSnackbar.js +55 -53
- package/dist/BaseTabView.js +1 -1
- package/dist/BaseUploadFile.js +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/SwiperCarousel.js +1 -1
- package/dist/UIKit/AccessibleSelect.vue.d.ts +21 -19
- package/dist/UIKit/Accordion/BaseAccordion.vue.d.ts +15 -13
- package/dist/UIKit/Accordion/BaseAccordionBtn.vue.d.ts +17 -15
- package/dist/UIKit/Accordion/BaseAccordionContent.vue.d.ts +10 -8
- package/dist/UIKit/Accordion/BaseAccordionItem.vue.d.ts +26 -24
- package/dist/UIKit/BaseAlert.vue.d.ts +8 -6
- package/dist/UIKit/BaseAutocomplete.vue.d.ts +11 -9
- package/dist/UIKit/BaseBadge.vue.d.ts +6 -4
- package/dist/UIKit/BaseButton.vue.d.ts +32 -30
- package/dist/UIKit/BaseCard.vue.d.ts +17 -15
- package/dist/UIKit/BaseComplexToggle.vue.d.ts +13 -9
- package/dist/UIKit/BaseDropDown.vue.d.ts +47 -45
- package/dist/UIKit/BaseInput.vue.d.ts +17 -15
- package/dist/UIKit/BaseModal.vue.d.ts +43 -41
- package/dist/UIKit/BaseSelect/SelectItem.vue.d.ts +14 -12
- package/dist/UIKit/BaseSnackbar.vue.d.ts +8 -8
- package/dist/UIKit/BaseToggle.vue.d.ts +7 -5
- package/dist/UIKit/BaseTooltip.vue.d.ts +19 -17
- package/dist/UIKit/BaseUploadFile.vue.d.ts +20 -18
- package/dist/UIKit/Checkbox/CheckboxBtn.vue.d.ts +24 -22
- package/dist/UIKit/Checkbox/CheckboxGroup.vue.d.ts +31 -29
- package/dist/UIKit/Radio/RadioButton.vue.d.ts +2 -2
- package/dist/UIKit/Radio/RadioGroup.vue.d.ts +26 -24
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.vue.d.ts +6 -4
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.vue.d.ts +8 -8
- package/dist/UIKit/StaticSpinner.vue.d.ts +4 -4
- package/dist/UIKit/Tab/BaseTab.vue.d.ts +10 -8
- package/dist/UIKit/Tab/BaseTabPanel.vue.d.ts +8 -6
- package/dist/UIKit/Tab/BaseTabView.vue.d.ts +6 -2
- package/dist/assets/BaseSnackbar.css +1 -1
- package/dist/chart/composables/useChartjsModules.d.ts +2 -2
- package/dist/chunks/{BaseAutocomplete.vue_vue_type_script_setup_true_lang.DqwIqwC2.js → BaseAutocomplete.vue_vue_type_script_setup_true_lang.D_AZtW3a.js} +1 -2
- package/dist/chunks/{BasePagination.vue_vue_type_script_setup_true_lang.DslSstg9.js → BasePagination.vue_vue_type_script_setup_true_lang.m1hcl9Ft.js} +1 -2
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.Ikt4-EHH.js +96 -0
- package/dist/chunks/{BaseUploadFile.vue_vue_type_script_setup_true_lang.1Uo4HnFM.js → BaseUploadFile.vue_vue_type_script_setup_true_lang.Dj2egDaT.js} +1 -2
- package/dist/chunks/{CheckboxGroup.vue_vue_type_script_setup_true_lang.TNbYVnnF.js → CheckboxGroup.vue_vue_type_script_setup_true_lang.Bn9HoCj4.js} +1 -2
- package/dist/chunks/{SwiperCarousel.vue_vue_type_style_index_0_lang.DydGEHWv.js → SwiperCarousel.vue_vue_type_style_index_0_lang.7z9WGfLj.js} +19 -30
- package/dist/chunks/{index.C2AlqfUw.js → index.DUnHxi5U.js} +30 -58
- package/dist/components/IntersectionObserver/IntersectionObservable.vue.d.ts +10 -8
- package/dist/components/IntersectionObserver/IntersectionObserver.vue.d.ts +9 -7
- package/dist/components/carousel/SwiperCarousel.vue.d.ts +6 -4
- package/dist/components/carousel/SwiperSlide.vue.d.ts +4 -2
- package/dist/index.js +6 -6
- package/dist/useChartjsModules.js +5 -10
- package/dist/useKeyboardController.js +2 -4
- package/package.json +15 -15
- package/dist/chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DRECN-Oz.js +0 -94
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/components",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.39",
|
|
4
4
|
"description": "Wikicasa frontend components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"vue-router": "4"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/eslint-parser": "^7.24.
|
|
41
|
+
"@babel/eslint-parser": "^7.24.7",
|
|
42
42
|
"@storybook/addon-essentials": "^8.0.2",
|
|
43
43
|
"@storybook/addon-interactions": "^8.0.2",
|
|
44
44
|
"@storybook/addon-links": "^8.0.2",
|
|
@@ -50,31 +50,31 @@
|
|
|
50
50
|
"@storybook/theming": "^8.0.2",
|
|
51
51
|
"@storybook/vue3": "^8.0.2",
|
|
52
52
|
"@storybook/vue3-vite": "^8.0.2",
|
|
53
|
-
"@types/node": "^20.
|
|
54
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
53
|
+
"@types/node": "^20.14.9",
|
|
54
|
+
"@vitejs/plugin-vue": "^5.0.5",
|
|
55
55
|
"@wikicasa-dev/svg-icons": "^0.0.36",
|
|
56
56
|
"@wikicasa-dev/tailwind-plugins": "^0.0.2",
|
|
57
57
|
"@wikicasa-dev/types": "^1.2.14",
|
|
58
58
|
"@wikicasa-dev/utilities": "^0.2.1",
|
|
59
59
|
"@wikicasa-dev/vue-composables": "^0.0.4",
|
|
60
|
-
"autoprefixer": "^10.4.
|
|
60
|
+
"autoprefixer": "^10.4.19",
|
|
61
61
|
"chromatic": "^11.2.0",
|
|
62
62
|
"eslint": "^8.57.0",
|
|
63
63
|
"eslint-config-prettier": "^9.1.0",
|
|
64
64
|
"eslint-plugin-prettier": "^5.1.3",
|
|
65
65
|
"eslint-plugin-prettier-vue": "^5.0.0",
|
|
66
66
|
"eslint-plugin-vue": "^9.23.0",
|
|
67
|
-
"glob": "^10.
|
|
68
|
-
"postcss": "^8.4.
|
|
69
|
-
"prettier": "^3.2
|
|
70
|
-
"prettier-plugin-tailwindcss": "^0.5
|
|
67
|
+
"glob": "^10.4.2",
|
|
68
|
+
"postcss": "^8.4.38",
|
|
69
|
+
"prettier": "^3.3.2",
|
|
70
|
+
"prettier-plugin-tailwindcss": "^0.6.5",
|
|
71
71
|
"storybook": "^7.4.5",
|
|
72
|
-
"tailwindcss": "^3.4.
|
|
73
|
-
"typescript": "^5.
|
|
74
|
-
"vite": "^5.
|
|
75
|
-
"vite-plugin-dts": "^3.
|
|
76
|
-
"vite-plugin-lib-inject-css": "^2.
|
|
77
|
-
"vue-tsc": "^2.0.
|
|
72
|
+
"tailwindcss": "^3.4.4",
|
|
73
|
+
"typescript": "^5.5.2",
|
|
74
|
+
"vite": "^5.3.1",
|
|
75
|
+
"vite-plugin-dts": "^3.9.1",
|
|
76
|
+
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
77
|
+
"vue-tsc": "^2.0.22"
|
|
78
78
|
},
|
|
79
79
|
"readme": "ERROR: No README data found!",
|
|
80
80
|
"scripts": {
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { defineComponent as x, mergeModels as E, useModel as L, ref as o, onMounted as N, useSlots as S, computed as z, watch as U, openBlock as r, createElementBlock as i, normalizeClass as v, createElementVNode as y, toDisplayString as _, Fragment as T, renderList as I, createBlock as p, resolveDynamicComponent as $, createCommentVNode as g, withCtx as j } from "vue";
|
|
2
|
-
import { _ as q } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js";
|
|
3
|
-
import { getUID as G } from "../utils.js";
|
|
4
|
-
const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], O = { key: 0 }, Y = /* @__PURE__ */ x({
|
|
5
|
-
inheritAttrs: !1,
|
|
6
|
-
__name: "BaseTabView",
|
|
7
|
-
props: /* @__PURE__ */ E({
|
|
8
|
-
tabViewDescription: {},
|
|
9
|
-
tabListClasses: { default: "" }
|
|
10
|
-
}, {
|
|
11
|
-
activeIdx: { default: 0 },
|
|
12
|
-
activeIdxModifiers: {}
|
|
13
|
-
}),
|
|
14
|
-
emits: ["update:activeIdx"],
|
|
15
|
-
setup(C) {
|
|
16
|
-
const c = L(C, "activeIdx"), F = o(""), m = o(null), B = o(null), l = o("");
|
|
17
|
-
N(() => {
|
|
18
|
-
l.value = G();
|
|
19
|
-
});
|
|
20
|
-
const f = S(), d = (e) => e.props ?? null, h = (e) => e.type.__name === "BaseTab", k = (e, t) => ({
|
|
21
|
-
renderFn: e,
|
|
22
|
-
tabId: b(t),
|
|
23
|
-
"active-tab-panel-idx": d(e)?.["active-tab-panel-idx"] ?? t,
|
|
24
|
-
"header-title": d(e)?.["header-title"] || "",
|
|
25
|
-
class: d(e)?.class || ""
|
|
26
|
-
}), s = z(() => f.default ? f.default().reduce((e, t) => (t.children && Array.isArray(t.children) ? t.children.forEach((a) => {
|
|
27
|
-
h(a) && e.push(k(a, e.length));
|
|
28
|
-
}) : h(t) && e.push(k(t, e.length)), e), []) : []), u = (e) => c.value === e, w = (e) => m.value === e, b = (e) => `base-tab-${e}-${l.value}`, P = (e) => `base-tab-panel-${e}-${l.value}`, V = (e) => s.value.find((t) => t["active-tab-panel-idx"] === e)?.tabId, A = (e) => {
|
|
29
|
-
F.value = b(e);
|
|
30
|
-
}, D = (e) => {
|
|
31
|
-
const t = s.value.at(e ?? -1);
|
|
32
|
-
m.value = t?.["active-tab-panel-idx"] ?? null;
|
|
33
|
-
}, M = (e) => {
|
|
34
|
-
A(e), c.value = e;
|
|
35
|
-
};
|
|
36
|
-
return U(
|
|
37
|
-
c,
|
|
38
|
-
(e) => {
|
|
39
|
-
D(e ?? -1);
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
immediate: !0
|
|
43
|
-
}
|
|
44
|
-
), (e, t) => (r(), i("div", {
|
|
45
|
-
ref_key: "root",
|
|
46
|
-
ref: B,
|
|
47
|
-
class: v(e.$attrs.class)
|
|
48
|
-
}, [
|
|
49
|
-
y("span", {
|
|
50
|
-
id: `tablist-${l.value}`,
|
|
51
|
-
class: "uikit-sr-only"
|
|
52
|
-
}, _(e.tabViewDescription), 9, H),
|
|
53
|
-
y("div", {
|
|
54
|
-
role: "tablist",
|
|
55
|
-
"aria-labelledby": `tablist-${l.value}`,
|
|
56
|
-
class: v(e.tabListClasses)
|
|
57
|
-
}, [
|
|
58
|
-
(r(!0), i(T, null, I(s.value, (a, n) => (r(), i("button", {
|
|
59
|
-
key: n,
|
|
60
|
-
id: b(n),
|
|
61
|
-
type: "button",
|
|
62
|
-
role: "tab",
|
|
63
|
-
"aria-selected": u(n),
|
|
64
|
-
"aria-controls": `base-tab-panel-${n}-${l.value}`,
|
|
65
|
-
tabindex: u(n) ? void 0 : -1,
|
|
66
|
-
class: v([
|
|
67
|
-
"uikit-bg-transparent uikit-p-5px",
|
|
68
|
-
{
|
|
69
|
-
"uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": u(n)
|
|
70
|
-
},
|
|
71
|
-
a.class
|
|
72
|
-
]),
|
|
73
|
-
onClick: (Q) => M(n)
|
|
74
|
-
}, [
|
|
75
|
-
a["header-title"] ? (r(), i("span", O, _(a["header-title"]), 1)) : a.renderFn.children && a.renderFn.children.header ? (r(), p($(a.renderFn.children.header), { key: 1 })) : g("", !0)
|
|
76
|
-
], 10, K))), 128))
|
|
77
|
-
], 10, J),
|
|
78
|
-
(r(!0), i(T, null, I(s.value, (a, n) => (r(), p(q, {
|
|
79
|
-
key: n,
|
|
80
|
-
id: P(n),
|
|
81
|
-
"labelled-by": V(n) || "",
|
|
82
|
-
active: w(n)
|
|
83
|
-
}, {
|
|
84
|
-
default: j(() => [
|
|
85
|
-
a.renderFn.children && a.renderFn.children.default ? (r(), p($(a.renderFn.children.default), { key: 0 })) : g("", !0)
|
|
86
|
-
]),
|
|
87
|
-
_: 2
|
|
88
|
-
}, 1032, ["id", "labelled-by", "active"]))), 128))
|
|
89
|
-
], 2));
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
export {
|
|
93
|
-
Y as _
|
|
94
|
-
};
|