@wikicasa-dev/components 1.7.13 → 1.7.14

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.
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CLU0hKrH.js";
1
+ import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.lJ1UY9Qz.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as L, mergeModels as N, useModel as U, ref as p, useSlots as x, computed as z, watch as R, withDirectives as j, openBlock as r, createElementBlock as l, normalizeClass as h, createElementVNode as g, toDisplayString as I, Fragment as $, renderList as C, createBlock as f, resolveDynamicComponent as F, createCommentVNode as w, withCtx as q } from "vue";
1
+ import { defineComponent as L, mergeModels as N, useModel as U, ref as p, useSlots as x, computed as z, watch as R, withDirectives as j, openBlock as n, createElementBlock as l, normalizeClass as h, createElementVNode as T, toDisplayString as I, Fragment as $, renderList as C, createBlock as f, resolveDynamicComponent as F, createCommentVNode as w, withCtx as q } from "vue";
2
2
  import { _ as G } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js";
3
3
  const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], O = { key: 0 }, Y = /* @__PURE__ */ L({
4
4
  inheritAttrs: !1,
@@ -12,7 +12,7 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
12
12
  }),
13
13
  emits: ["update:activeIdx"],
14
14
  setup(B) {
15
- const c = U(B, "activeIdx"), D = p(""), m = p(""), i = p(null), s = (e) => e?.id ?? "", k = x(), d = (e) => e.props ?? null, y = (e) => e.type.__name === "BaseTab", _ = (e, a) => ({
15
+ const c = U(B, "activeIdx"), D = p(""), m = p(""), r = p(null), s = (e) => e?.id ?? "", k = x(), d = (e) => e.props ?? null, y = (e) => e.type.__name === "BaseTab", _ = (e, a) => ({
16
16
  renderFn: e,
17
17
  tabId: b(a),
18
18
  "active-tab-panel-idx": d(e)?.["active-tab-panel-idx"] ?? a,
@@ -20,7 +20,7 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
20
20
  class: d(e)?.class || ""
21
21
  }), o = z(() => k.default ? k.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
22
22
  y(t) && e.push(_(t, e.length));
23
- }) : y(a) && e.push(_(a, e.length)), e), []) : []), u = (e) => c.value === e, P = (e) => m.value === e, b = (e) => `base-tab-${e}-${s(i.value)}`, v = (e) => `base-tab-panel-${e}-${s(i.value)}`, A = (e) => o.value.find((a) => a["active-tab-panel-idx"] === e)?.tabId, S = (e) => {
23
+ }) : y(a) && e.push(_(a, e.length)), e), []) : []), u = (e) => c.value === e, P = (e) => m.value === e, b = (e) => `base-tab-${e}-${s(r.value)}`, v = (e) => `base-tab-panel-${e}-${s(r.value)}`, A = (e) => o.value.find((a) => a["active-tab-panel-idx"] === e)?.tabId, S = (e) => {
24
24
  D.value = b(e);
25
25
  }, V = (e) => {
26
26
  const a = o.value.at(e ?? -1), t = v(a?.["active-tab-panel-idx"] ?? -1);
@@ -37,56 +37,58 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
37
37
  immediate: !0
38
38
  }
39
39
  );
40
- const T = () => Date.now().toString(36) + Math.random().toString(36).substring(2), E = {
41
- created: (e) => e.setAttribute("id", e.id || T()),
40
+ const g = () => Date.now().toString(36) + Math.random().toString(36).substring(2), E = {
41
+ created(e) {
42
+ console.log("v-uid:directive", e.id), e.setAttribute("id", e.id || g());
43
+ },
42
44
  getSSRProps() {
43
45
  return {
44
- id: T()
46
+ id: g()
45
47
  };
46
48
  }
47
49
  };
48
- return (e, a) => j((r(), l("div", {
50
+ return (e, a) => j((n(), l("div", {
49
51
  ref_key: "root",
50
- ref: i,
52
+ ref: r,
51
53
  class: h(e.$attrs.class)
52
54
  }, [
53
- g("span", {
54
- id: `tablist-${s(i.value)}`,
55
+ T("span", {
56
+ id: `tablist-${s(r.value)}`,
55
57
  class: "uikit-sr-only"
56
58
  }, I(e.tabViewDescription), 9, H),
57
- g("div", {
59
+ T("div", {
58
60
  role: "tablist",
59
- "aria-labelledby": `tablist-${s(i.value)}`,
61
+ "aria-labelledby": `tablist-${s(r.value)}`,
60
62
  class: h(e.tabListClasses)
61
63
  }, [
62
- (r(!0), l($, null, C(o.value, (t, n) => (r(), l("button", {
63
- key: n,
64
- id: b(n),
64
+ (n(!0), l($, null, C(o.value, (t, i) => (n(), l("button", {
65
+ key: i,
66
+ id: b(i),
65
67
  type: "button",
66
68
  role: "tab",
67
- "aria-selected": u(n),
68
- "aria-controls": `base-tab-panel-${n}-${s(i.value)}`,
69
- tabindex: u(n) ? void 0 : -1,
69
+ "aria-selected": u(i),
70
+ "aria-controls": `base-tab-panel-${i}-${s(r.value)}`,
71
+ tabindex: u(i) ? void 0 : -1,
70
72
  class: h([
71
73
  "uikit-bg-transparent uikit-p-5px",
72
74
  {
73
- "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": u(n)
75
+ "uikit-border-b-2 uikit-border-solid uikit-border-w-primary uikit-font-semibold": u(i)
74
76
  },
75
77
  t.class
76
78
  ]),
77
- onClick: (Q) => M(n)
79
+ onClick: (Q) => M(i)
78
80
  }, [
79
- t["header-title"] ? (r(), l("span", O, I(t["header-title"]), 1)) : t.renderFn.children && t.renderFn.children.header ? (r(), f(F(t.renderFn.children.header), { key: 1 })) : w("", !0)
81
+ t["header-title"] ? (n(), l("span", O, I(t["header-title"]), 1)) : t.renderFn.children && t.renderFn.children.header ? (n(), f(F(t.renderFn.children.header), { key: 1 })) : w("", !0)
80
82
  ], 10, K))), 128))
81
83
  ], 10, J),
82
- (r(!0), l($, null, C(o.value, (t, n) => (r(), f(G, {
83
- key: n,
84
- id: v(n),
85
- "labelled-by": A(n) || "",
86
- active: P(v(n))
84
+ (n(!0), l($, null, C(o.value, (t, i) => (n(), f(G, {
85
+ key: i,
86
+ id: v(i),
87
+ "labelled-by": A(i) || "",
88
+ active: P(v(i))
87
89
  }, {
88
90
  default: q(() => [
89
- t.renderFn.children && t.renderFn.children.default ? (r(), f(F(t.renderFn.children.default), { key: 0 })) : w("", !0)
91
+ t.renderFn.children && t.renderFn.children.default ? (n(), f(F(t.renderFn.children.default), { key: 0 })) : w("", !0)
90
92
  ]),
91
93
  _: 2
92
94
  }, 1032, ["id", "labelled-by", "active"]))), 128))
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import { _ as l } from "./chunks/SelectItem.vue_vue_type_script_setup_true_lang.
7
7
  import { default as d } from "./CheckboxBtn.js";
8
8
  import { _ } from "./chunks/CheckboxGroup.vue_vue_type_script_setup_true_lang.DDtN9_Bg.js";
9
9
  import { _ as i } from "./chunks/BaseTab.vue_vue_type_script_setup_true_lang.BRubYI9e.js";
10
- import { _ as b } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.CLU0hKrH.js";
10
+ import { _ as b } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.lJ1UY9Qz.js";
11
11
  import { _ as C } from "./chunks/RadioButton.vue_vue_type_script_setup_true_lang.DR6a7QAi.js";
12
12
  import { _ as I } from "./chunks/RadioGroup.vue_vue_type_script_setup_true_lang.DTUA_Q5e.js";
13
13
  import { _ as T } from "./chunks/AccessibleSelect.vue_vue_type_script_setup_true_lang.5pqk7vlZ.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.7.13",
3
+ "version": "1.7.14",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",