@wikicasa-dev/components 1.7.15 → 1.7.16

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.liN0ALtl.js";
1
+ import { _ as f } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DuZNuAII.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,9 +1,9 @@
1
- import { defineComponent as N, mergeModels as U, useModel as x, ref as v, computed as T, useSlots as z, watch as R, withDirectives as j, openBlock as n, createElementBlock as s, normalizeClass as p, createElementVNode as I, toDisplayString as $, Fragment as C, renderList as F, createBlock as h, resolveDynamicComponent as w, createCommentVNode as B, withCtx as q } from "vue";
2
- import { _ as G } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js";
3
- const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], O = { key: 0 }, Y = /* @__PURE__ */ N({
1
+ import { defineComponent as L, mergeModels as N, useModel as U, ref as v, computed as g, useSlots as z, watch as R, nextTick as j, withDirectives as q, openBlock as n, createElementBlock as s, normalizeClass as p, createElementVNode as I, toDisplayString as $, Fragment as C, renderList as F, createBlock as h, resolveDynamicComponent as w, createCommentVNode as B, withCtx as G } from "vue";
2
+ import { _ as H } from "./BaseTabPanel.vue_vue_type_script_setup_true_lang.DoZHWHt1.js";
3
+ const J = ["id"], K = ["aria-labelledby"], O = ["id", "aria-selected", "aria-controls", "tabindex", "onClick"], Q = { key: 0 }, Z = /* @__PURE__ */ L({
4
4
  inheritAttrs: !1,
5
5
  __name: "BaseTabView",
6
- props: /* @__PURE__ */ U({
6
+ props: /* @__PURE__ */ N({
7
7
  tabViewDescription: {},
8
8
  tabListClasses: { default: "" }
9
9
  }, {
@@ -12,42 +12,44 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
12
12
  }),
13
13
  emits: ["update:activeIdx"],
14
14
  setup(D) {
15
- const o = x(D, "activeIdx"), P = v(""), f = v(""), m = v(null), r = T(() => m.value?.id ?? ""), k = z(), c = (e) => e.props ?? null, y = (e) => e.type.__name === "BaseTab", _ = (e, a) => ({
15
+ const o = U(D, "activeIdx"), P = v(""), f = v(""), m = v(null), r = g(() => m.value?.id ?? ""), k = z(), c = (e) => e.props ?? null, y = (e) => e.type.__name === "BaseTab", _ = (e, a) => ({
16
16
  renderFn: e,
17
17
  tabId: u(a),
18
18
  "active-tab-panel-idx": c(e)?.["active-tab-panel-idx"] ?? a,
19
19
  "header-title": c(e)?.["header-title"] || "",
20
20
  class: c(e)?.class || ""
21
- }), l = T(() => k.default ? k.default().reduce((e, a) => (a.children && Array.isArray(a.children) ? a.children.forEach((t) => {
21
+ }), l = g(() => 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
23
  }) : y(a) && e.push(_(a, e.length)), e), []) : []), d = (e) => o.value === e, A = (e) => f.value === e, u = (e) => `base-tab-${e}-${r.value}`, b = (e) => `base-tab-panel-${e}-${r.value}`, S = (e) => l.value.find((a) => a["active-tab-panel-idx"] === e)?.tabId, V = (e) => {
24
24
  P.value = u(e);
25
25
  }, M = (e) => {
26
26
  const a = l.value.at(e ?? -1), t = b(a?.["active-tab-panel-idx"] ?? -1);
27
27
  t && (f.value = t);
28
- }, E = (e) => {
28
+ }, x = (e) => {
29
29
  V(e), o.value = e;
30
30
  };
31
31
  R(
32
32
  o,
33
33
  (e) => {
34
- M(e ?? -1);
34
+ j(() => {
35
+ M(e ?? -1);
36
+ });
35
37
  },
36
38
  {
37
39
  immediate: !0
38
40
  }
39
41
  );
40
- const g = () => Date.now().toString(36) + Math.random().toString(36).substring(2), L = {
42
+ const T = () => Date.now().toString(36) + Math.random().toString(36).substring(2), E = {
41
43
  created(e) {
42
- console.log("v-uid:directive", e.id), e.setAttribute("id", e.id || g());
44
+ console.log("v-uid:directive", e.id), e.setAttribute("id", e.id || T());
43
45
  },
44
46
  getSSRProps() {
45
47
  return {
46
- id: g()
48
+ id: T()
47
49
  };
48
50
  }
49
51
  };
50
- return (e, a) => j((n(), s("div", {
52
+ return (e, a) => q((n(), s("div", {
51
53
  ref_key: "root",
52
54
  ref: m,
53
55
  class: p(e.$attrs.class)
@@ -55,7 +57,7 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
55
57
  I("span", {
56
58
  id: `tablist-${r.value}`,
57
59
  class: "uikit-sr-only"
58
- }, $(e.tabViewDescription), 9, H),
60
+ }, $(e.tabViewDescription), 9, J),
59
61
  I("div", {
60
62
  role: "tablist",
61
63
  "aria-labelledby": `tablist-${r.value}`,
@@ -76,27 +78,27 @@ const H = ["id"], J = ["aria-labelledby"], K = ["id", "aria-selected", "aria-con
76
78
  },
77
79
  t.class
78
80
  ]),
79
- onClick: (Q) => E(i)
81
+ onClick: (W) => x(i)
80
82
  }, [
81
- t["header-title"] ? (n(), s("span", O, $(t["header-title"]), 1)) : t.renderFn.children && t.renderFn.children.header ? (n(), h(w(t.renderFn.children.header), { key: 1 })) : B("", !0)
82
- ], 10, K))), 128))
83
- ], 10, J),
84
- (n(!0), s(C, null, F(l.value, (t, i) => (n(), h(G, {
83
+ t["header-title"] ? (n(), s("span", Q, $(t["header-title"]), 1)) : t.renderFn.children && t.renderFn.children.header ? (n(), h(w(t.renderFn.children.header), { key: 1 })) : B("", !0)
84
+ ], 10, O))), 128))
85
+ ], 10, K),
86
+ (n(!0), s(C, null, F(l.value, (t, i) => (n(), h(H, {
85
87
  key: i,
86
88
  id: b(i),
87
89
  "labelled-by": S(i) || "",
88
90
  active: A(b(i))
89
91
  }, {
90
- default: q(() => [
92
+ default: G(() => [
91
93
  t.renderFn.children && t.renderFn.children.default ? (n(), h(w(t.renderFn.children.default), { key: 0 })) : B("", !0)
92
94
  ]),
93
95
  _: 2
94
96
  }, 1032, ["id", "labelled-by", "active"]))), 128))
95
97
  ], 2)), [
96
- [L]
98
+ [E]
97
99
  ]);
98
100
  }
99
101
  });
100
102
  export {
101
- Y as _
103
+ Z as _
102
104
  };
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.liN0ALtl.js";
10
+ import { _ as b } from "./chunks/BaseTabView.vue_vue_type_script_setup_true_lang.DuZNuAII.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.15",
3
+ "version": "1.7.16",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",