@wikicasa-dev/components 1.7.11 → 1.7.12

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.BmeQLSmK.js";
1
+ import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.B7nmcVUG.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 r, createElementBlock as l, normalizeClass as h, createElementVNode as T, toDisplayString as g, Fragment as I, renderList as $, createBlock as f, resolveDynamicComponent as C, createCommentVNode as F, 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,
@@ -11,8 +11,8 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
11
11
  activeIdxModifiers: {}
12
12
  }),
13
13
  emits: ["update:activeIdx"],
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) => ({
14
+ setup(w) {
15
+ const c = U(w, "activeIdx"), B = 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) => ({
16
16
  renderFn: e,
17
17
  tabId: b(a),
18
18
  "active-tab-panel-idx": d(e)?.["active-tab-panel-idx"] ?? a,
@@ -20,28 +20,28 @@ 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) => {
24
- D.value = b(e);
25
- }, V = (e) => {
23
+ }) : y(a) && e.push(_(a, e.length)), e), []) : []), u = (e) => c.value === e, D = (e) => m.value === e, b = (e) => `base-tab-${e}-${s(i.value)}`, v = (e) => `base-tab-panel-${e}-${s(i.value)}`, P = (e) => o.value.find((a) => a["active-tab-panel-idx"] === e)?.tabId, A = (e) => {
24
+ B.value = b(e);
25
+ }, S = (e) => {
26
26
  const a = o.value.at(e ?? -1), t = v(a?.["active-tab-panel-idx"] ?? -1);
27
27
  t && (m.value = t);
28
- }, M = (e) => {
29
- S(e), c.value = e;
28
+ }, V = (e) => {
29
+ A(e), c.value = e;
30
30
  };
31
31
  R(
32
32
  c,
33
33
  (e) => {
34
- V(e ?? -1);
34
+ S(e ?? -1);
35
35
  },
36
36
  {
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.id = T,
42
- getSSRProps() {
40
+ const M = Date.now().toString(36) + Math.random().toString(36).substring(2), E = {
41
+ created: (e) => e.id = M,
42
+ getSSRProps(e) {
43
43
  return {
44
- id: T
44
+ id: e.value
45
45
  };
46
46
  }
47
47
  };
@@ -50,16 +50,16 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
50
50
  ref: i,
51
51
  class: h(e.$attrs.class)
52
52
  }, [
53
- g("span", {
53
+ T("span", {
54
54
  id: `tablist-${s(i.value)}`,
55
55
  class: "uikit-sr-only"
56
- }, I(e.tabViewDescription), 9, H),
57
- g("div", {
56
+ }, g(e.tabViewDescription), 9, H),
57
+ T("div", {
58
58
  role: "tablist",
59
59
  "aria-labelledby": `tablist-${s(i.value)}`,
60
60
  class: h(e.tabListClasses)
61
61
  }, [
62
- (r(!0), l($, null, C(o.value, (t, n) => (r(), l("button", {
62
+ (r(!0), l(I, null, $(o.value, (t, n) => (r(), l("button", {
63
63
  key: n,
64
64
  id: b(n),
65
65
  type: "button",
@@ -74,19 +74,19 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
74
74
  },
75
75
  t.class
76
76
  ]),
77
- onClick: (Q) => M(n)
77
+ onClick: (Q) => V(n)
78
78
  }, [
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)
79
+ t["header-title"] ? (r(), l("span", O, g(t["header-title"]), 1)) : t.renderFn.children && t.renderFn.children.header ? (r(), f(C(t.renderFn.children.header), { key: 1 })) : F("", !0)
80
80
  ], 10, K))), 128))
81
81
  ], 10, J),
82
- (r(!0), l($, null, C(o.value, (t, n) => (r(), f(G, {
82
+ (r(!0), l(I, null, $(o.value, (t, n) => (r(), f(G, {
83
83
  key: n,
84
84
  id: v(n),
85
- "labelled-by": A(n) || "",
86
- active: P(v(n))
85
+ "labelled-by": P(n) || "",
86
+ active: D(v(n))
87
87
  }, {
88
88
  default: q(() => [
89
- t.renderFn.children && t.renderFn.children.default ? (r(), f(F(t.renderFn.children.default), { key: 0 })) : w("", !0)
89
+ t.renderFn.children && t.renderFn.children.default ? (r(), f(C(t.renderFn.children.default), { key: 0 })) : F("", !0)
90
90
  ]),
91
91
  _: 2
92
92
  }, 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.BmeQLSmK.js";
10
+ import { _ as b } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.B7nmcVUG.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.11",
3
+ "version": "1.7.12",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",