bitboss-ui 2.0.105 → 2.0.106

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.
Files changed (175) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
  3. package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
  4. package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
  6. package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
  7. package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
  8. package/dist/components/ListBox.vue.d.ts +0 -2
  9. package/dist/composables/useLocale.d.ts +1 -1
  10. package/dist/i18n/en.d.ts +45 -0
  11. package/dist/i18n/it.d.ts +45 -0
  12. package/dist/index100.js +9 -9
  13. package/dist/index111.js +109 -108
  14. package/dist/index119.js +2 -2
  15. package/dist/index121.js +55 -54
  16. package/dist/index123.js +1 -1
  17. package/dist/index125.js +14 -13
  18. package/dist/index127.js +1 -1
  19. package/dist/index128.js +1 -1
  20. package/dist/index129.js +1 -1
  21. package/dist/index13.js +1 -1
  22. package/dist/index131.js +1 -1
  23. package/dist/index132.js +2 -2
  24. package/dist/index133.js +2 -2
  25. package/dist/index15.js +36 -35
  26. package/dist/index17.js +3 -3
  27. package/dist/index19.js +63 -64
  28. package/dist/index205.js +2 -115
  29. package/dist/index206.js +86 -2
  30. package/dist/index208.js +25 -4
  31. package/dist/index209.js +17 -2
  32. package/dist/index21.js +110 -103
  33. package/dist/index210.js +46 -279
  34. package/dist/index211.js +15 -16
  35. package/dist/index212.js +3 -16
  36. package/dist/index213.js +12 -19
  37. package/dist/index214.js +16 -19
  38. package/dist/index215.js +2 -27
  39. package/dist/index216.js +4 -3
  40. package/dist/index217.js +2 -2
  41. package/dist/index219.js +3 -250
  42. package/dist/index220.js +41 -52
  43. package/dist/index221.js +5 -43
  44. package/dist/index222.js +7 -5
  45. package/dist/index223.js +10 -58
  46. package/dist/index224.js +12 -83
  47. package/dist/index225.js +55 -0
  48. package/dist/index227.js +13 -25
  49. package/dist/index228.js +5 -17
  50. package/dist/index229.js +15 -47
  51. package/dist/index23.js +127 -119
  52. package/dist/index230.js +16 -15
  53. package/dist/index231.js +19 -12
  54. package/dist/index232.js +15 -16
  55. package/dist/index233.js +19 -3
  56. package/dist/index234.js +26 -40
  57. package/dist/index235.js +2 -6
  58. package/dist/index236.js +250 -7
  59. package/dist/index237.js +50 -10
  60. package/dist/index238.js +39 -48
  61. package/dist/index239.js +7 -0
  62. package/dist/index240.js +60 -13
  63. package/dist/index241.js +20 -3
  64. package/dist/index242.js +3 -125
  65. package/dist/index243.js +123 -122
  66. package/dist/index244.js +125 -2
  67. package/dist/index245.js +2 -20
  68. package/dist/index246.js +2 -2
  69. package/dist/index247.js +2 -2
  70. package/dist/index248.js +114 -3
  71. package/dist/index249.js +3 -2
  72. package/dist/index25.js +44 -41
  73. package/dist/index250.js +2 -2
  74. package/dist/index251.js +18 -2
  75. package/dist/index252.js +105 -17
  76. package/dist/{index255.js → index254.js} +2 -2
  77. package/dist/index256.js +14 -0
  78. package/dist/index257.js +2 -12
  79. package/dist/index258.js +2 -10
  80. package/dist/index259.js +9 -2
  81. package/dist/index260.js +3 -6
  82. package/dist/index261.js +3 -16
  83. package/dist/index262.js +17 -9
  84. package/dist/index263.js +8 -8
  85. package/dist/index264.js +28 -23
  86. package/dist/index265.js +4 -89
  87. package/dist/index266.js +433 -0
  88. package/dist/index267.js +2 -4
  89. package/dist/index268.js +88 -5
  90. package/dist/index269.js +7 -2
  91. package/dist/index27.js +1 -1
  92. package/dist/index270.js +11 -2
  93. package/dist/index271.js +3 -2
  94. package/dist/index273.js +7 -2
  95. package/dist/index274.js +200 -2
  96. package/dist/index275.js +281 -2
  97. package/dist/index276.js +6 -2
  98. package/dist/index277.js +2 -2
  99. package/dist/index278.js +2 -2
  100. package/dist/index279.js +2 -28
  101. package/dist/index280.js +2 -22
  102. package/dist/index282.js +2 -7
  103. package/dist/index283.js +2 -3
  104. package/dist/index284.js +2 -7
  105. package/dist/index285.js +2 -11
  106. package/dist/index286.js +2 -17
  107. package/dist/index287.js +2 -9
  108. package/dist/index288.js +20 -429
  109. package/dist/index29.js +3 -3
  110. package/dist/index290.js +8 -88
  111. package/dist/index291.js +23 -3
  112. package/dist/index292.js +91 -0
  113. package/dist/index294.js +171 -195
  114. package/dist/index297.js +22 -176
  115. package/dist/index299.js +11 -0
  116. package/dist/index300.js +6 -8
  117. package/dist/index301.js +15 -435
  118. package/dist/index302.js +8 -127
  119. package/dist/index303.js +224 -3
  120. package/dist/index304.js +436 -3
  121. package/dist/index305.js +126 -212
  122. package/dist/index306.js +3 -3
  123. package/dist/index307.js +3 -3
  124. package/dist/index308.js +212 -56
  125. package/dist/index309.js +67 -7
  126. package/dist/index31.js +2 -2
  127. package/dist/index310.js +2 -19
  128. package/dist/index311.js +5 -66
  129. package/dist/index312.js +4 -6
  130. package/dist/index313.js +8 -2
  131. package/dist/index314.js +6 -4
  132. package/dist/index315.js +18 -7
  133. package/dist/index316.js +45 -0
  134. package/dist/index317.js +47 -2
  135. package/dist/index318.js +7 -5
  136. package/dist/index319.js +32 -2
  137. package/dist/index321.js +2 -32
  138. package/dist/index322.js +3 -47
  139. package/dist/index323.js +3 -2
  140. package/dist/index324.js +49 -471
  141. package/dist/index325.js +49 -0
  142. package/dist/index326.js +2 -424
  143. package/dist/index327.js +479 -46
  144. package/dist/index329.js +426 -0
  145. package/dist/index33.js +45 -45
  146. package/dist/index330.js +49 -0
  147. package/dist/index35.js +56 -55
  148. package/dist/index37.js +166 -165
  149. package/dist/index39.js +5 -5
  150. package/dist/index41.js +2 -2
  151. package/dist/index43.js +70 -71
  152. package/dist/index45.js +7 -7
  153. package/dist/index47.js +2 -2
  154. package/dist/index49.js +2 -2
  155. package/dist/index53.js +28 -27
  156. package/dist/index55.js +1 -1
  157. package/dist/index57.js +2 -2
  158. package/dist/index61.js +32 -31
  159. package/dist/index75.js +3 -3
  160. package/dist/index77.js +87 -86
  161. package/dist/index79.js +2 -2
  162. package/dist/index81.js +1 -1
  163. package/dist/index84.js +45 -44
  164. package/dist/index86.js +67 -66
  165. package/dist/index88.js +69 -67
  166. package/dist/index90.js +1 -1
  167. package/package.json +1 -1
  168. package/dist/index207.js +0 -4
  169. package/dist/index226.js +0 -10
  170. package/dist/index253.js +0 -108
  171. package/dist/index289.js +0 -4
  172. package/dist/index293.js +0 -226
  173. package/dist/index298.js +0 -24
  174. /package/dist/{index272.js → index281.js} +0 -0
  175. /package/dist/{index328.js → index331.js} +0 -0
package/dist/index77.js CHANGED
@@ -1,18 +1,19 @@
1
- import { defineComponent as z, ref as E, computed as w, openBlock as s, createElementBlock as $, normalizeClass as W, createVNode as l, mergeProps as C, withCtx as t, unref as f, createBlock as L, createCommentVNode as g, createElementVNode as u, toDisplayString as P, createSlots as A, renderSlot as a, normalizeProps as d, guardReactiveProps as r, renderList as I } from "vue";
2
- import D from "./index13.js";
1
+ import { defineComponent as E, ref as W, computed as g, openBlock as l, createElementBlock as L, normalizeClass as I, createVNode as u, mergeProps as P, withCtx as t, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as y, createSlots as M, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as R } from "vue";
2
+ import N from "./index13.js";
3
3
  /* empty css */
4
- import M from "./index75.js";
4
+ import T from "./index75.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  /* empty css */
8
- import N from "./index127.js";
8
+ import S from "./index127.js";
9
9
  /* empty css */
10
- import R from "./index129.js";
10
+ import Z from "./index129.js";
11
11
  /* empty css */
12
- const Z = { class: "bb-dropdown-button__content" }, j = {
12
+ import { useLocale as j } from "./index224.js";
13
+ const q = { class: "bb-dropdown-button__content" }, A = {
13
14
  key: 1,
14
15
  class: "bb-dropdown-button__loading-label sr-only"
15
- }, q = { class: "bb-dropdown-button__dropdown-label sr-only" }, x = /* @__PURE__ */ z({
16
+ }, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, no = /* @__PURE__ */ E({
16
17
  __name: "BbDropdownButton",
17
18
  props: {
18
19
  arrowPadding: {},
@@ -33,93 +34,93 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
33
34
  loading: { type: Boolean },
34
35
  "prepend:icon": {}
35
36
  },
36
- setup(S) {
37
- const n = S, m = E(0), b = w(
38
- () => n.loading || !!m.value && n.autoLoading
39
- ), V = (e) => async (...p) => {
40
- b.value && n.disabledWhileLoading || (m.value++, await e(...p), m.value--);
41
- }, h = w(
42
- () => n.items.map((e) => e.onClick ? {
43
- ...e,
44
- onClick: V(e.onClick)
45
- } : e)
46
- ), y = w(() => {
47
- const e = { ...h.value[0] };
48
- return e.disabled = e.disabled || n.disabled, e;
37
+ setup(V) {
38
+ const n = V, { t: b } = j(), c = W(0), w = g(
39
+ () => n.loading || !!c.value && n.autoLoading
40
+ ), z = (o) => async (...s) => {
41
+ w.value && n.disabledWhileLoading || (c.value++, await o(...s), c.value--);
42
+ }, h = g(
43
+ () => n.items.map((o) => o.onClick ? {
44
+ ...o,
45
+ onClick: z(o.onClick)
46
+ } : o)
47
+ ), _ = g(() => {
48
+ const o = { ...h.value[0] };
49
+ return o.disabled = o.disabled || n.disabled, o;
49
50
  });
50
- return (e, p) => (s(), $("span", {
51
- class: W(["bb-dropdown-button", {
52
- "bb-dropdown-button--block": e.block,
53
- "bb-dropdown-button--loading": b.value,
54
- [`bb-dropdown-button--${e.theme}`]: !0
51
+ return (o, s) => (l(), L("span", {
52
+ class: I(["bb-dropdown-button", {
53
+ "bb-dropdown-button--block": o.block,
54
+ "bb-dropdown-button--loading": w.value,
55
+ [`bb-dropdown-button--${o.theme}`]: !0
55
56
  }])
56
57
  }, [
57
- l(D, C(y.value, { class: "bb-dropdown-button__main-btn" }), {
58
+ u(N, P(_.value, { class: "bb-dropdown-button__main-btn" }), {
58
59
  default: t(() => [
59
- l(f(R), { class: "bb-dropdown-button__spinner" }),
60
- n["prepend:icon"] ? (s(), L(f(N), {
60
+ u(d(Z), { class: "bb-dropdown-button__spinner" }),
61
+ n["prepend:icon"] ? (l(), D(d(S), {
61
62
  key: 0,
62
63
  class: "bb-dropdown-button__prepend-icon",
63
64
  type: n["prepend:icon"]
64
- }, null, 8, ["type"])) : g("", !0),
65
- u("span", Z, P(y.value.text), 1),
66
- b.value ? (s(), $("span", j, "caricamento")) : g("", !0),
67
- n["append:icon"] ? (s(), L(f(N), {
65
+ }, null, 8, ["type"])) : v("", !0),
66
+ m("span", q, y(_.value.text), 1),
67
+ w.value ? (l(), L("span", A, y(d(b)("common.loadingText").value), 1)) : v("", !0),
68
+ n["append:icon"] ? (l(), D(d(S), {
68
69
  key: 2,
69
70
  class: "bb-dropdown-button__append-icon",
70
71
  type: n["append:icon"]
71
- }, null, 8, ["type"])) : g("", !0)
72
+ }, null, 8, ["type"])) : v("", !0)
72
73
  ]),
73
74
  _: 1
74
75
  }, 16),
75
- l(M, {
76
- id: e.id,
77
- "arrow-padding": e.arrowPadding,
78
- disabled: e.disabled,
79
- eager: e.eager,
76
+ u(T, {
77
+ id: o.id,
78
+ "arrow-padding": o.arrowPadding,
79
+ disabled: o.disabled,
80
+ eager: o.eager,
80
81
  items: h.value,
81
- offset: e.offset,
82
- padding: e.padding,
83
- placement: e.placement,
84
- theme: e.theme,
85
- "transition-duration": e.transitionDuration,
86
- width: e.width
87
- }, A({
82
+ offset: o.offset,
83
+ padding: o.padding,
84
+ placement: o.placement,
85
+ theme: o.theme,
86
+ "transition-duration": o.transitionDuration,
87
+ width: o.width
88
+ }, M({
88
89
  activator: t(({
89
- props: o,
90
- opening: i,
91
- open: c,
92
- closed: _,
93
- closing: v,
94
- disabled: k,
95
- placement: B
90
+ props: e,
91
+ opening: p,
92
+ open: f,
93
+ closed: k,
94
+ closing: B,
95
+ disabled: $,
96
+ placement: C
96
97
  }) => [
97
- a(e.$slots, "activator", {
98
- closed: _,
99
- closing: v,
100
- disabled: k,
101
- open: c,
102
- opening: i,
103
- placement: B,
104
- props: o
98
+ a(o.$slots, "activator", {
99
+ closed: k,
100
+ closing: B,
101
+ disabled: $,
102
+ open: f,
103
+ opening: p,
104
+ placement: C,
105
+ props: e
105
106
  }, () => [
106
- l(D, C(o, { class: "bb-dropdown-button__dropdown-btn" }), {
107
+ u(N, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
107
108
  default: t(() => [
108
- u("span", q, P(c || i ? "Chiudi" : "Apri") + " il menu", 1),
109
- a(e.$slots, "right-btn", {
110
- closed: _,
111
- closing: v,
112
- disabled: k,
113
- open: c,
114
- opening: i,
115
- placement: B
109
+ m("span", F, y(f || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
110
+ a(o.$slots, "right-btn", {
111
+ closed: k,
112
+ closing: B,
113
+ disabled: $,
114
+ open: f,
115
+ opening: p,
116
+ placement: C
116
117
  }, () => [
117
- p[0] || (p[0] = u("svg", {
118
+ s[0] || (s[0] = m("svg", {
118
119
  class: "bb-dropdown-button__dropdown-chevron",
119
120
  viewBox: "0 0 24 24",
120
121
  xmlns: "http://www.w3.org/2000/svg"
121
122
  }, [
122
- u("path", {
123
+ m("path", {
123
124
  d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
124
125
  fill: "currentColor"
125
126
  })
@@ -130,27 +131,27 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
130
131
  }, 1040)
131
132
  ])
132
133
  ]),
133
- prepend: t((o) => [
134
- a(e.$slots, "prepend", d(r(o)))
134
+ prepend: t((e) => [
135
+ a(o.$slots, "prepend", r(i(e)))
135
136
  ]),
136
- "item:prepend": t((o) => [
137
- a(e.$slots, "item:prepend", d(r(o)))
137
+ "item:prepend": t((e) => [
138
+ a(o.$slots, "item:prepend", r(i(e)))
138
139
  ]),
139
- item: t((o) => [
140
- a(e.$slots, "item", d(r(o)))
140
+ item: t((e) => [
141
+ a(o.$slots, "item", r(i(e)))
141
142
  ]),
142
- "item:append": t((o) => [
143
- a(e.$slots, "item:append", d(r(o)))
143
+ "item:append": t((e) => [
144
+ a(o.$slots, "item:append", r(i(e)))
144
145
  ]),
145
- append: t((o) => [
146
- a(e.$slots, "append", d(r(o)))
146
+ append: t((e) => [
147
+ a(o.$slots, "append", r(i(e)))
147
148
  ]),
148
149
  _: 2
149
150
  }, [
150
- I(e.items, (o) => ({
151
- name: o.key,
152
- fn: t((i) => [
153
- a(e.$slots, o.key, d(r(i)))
151
+ R(o.items, (e) => ({
152
+ name: e.key,
153
+ fn: t((p) => [
154
+ a(o.$slots, e.key, r(i(p)))
154
155
  ])
155
156
  }))
156
157
  ]), 1032, ["id", "arrow-padding", "disabled", "eager", "items", "offset", "padding", "placement", "theme", "transition-duration", "width"])
@@ -158,5 +159,5 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
158
159
  }
159
160
  });
160
161
  export {
161
- x as default
162
+ no as default
162
163
  };
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index261.js";
2
+ import { findInTree as ae } from "./index301.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index260.js")).default);
56
+ b || (b = (await import("./index300.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index233.js";
2
+ import { throttle as c } from "./index219.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,14 +1,15 @@
1
- import { defineComponent as le, ref as l, useAttrs as se, computed as u, getCurrentInstance as ae, nextTick as ne, onBeforeUnmount as O, onMounted as ie, watch as re, openBlock as g, createBlock as ue, withCtx as ce, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as de, toDisplayString as A, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as fe } from "./index234.js";
1
+ import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
2
+ import { useFocusTrap as pe } from "./index220.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index236.js";
6
- import ve from "./index237.js";
7
- import { useMobile as pe } from "./index9.js";
8
- const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"], Ve = /* @__PURE__ */ le({
5
+ import { useModalsState as b } from "./index222.js";
6
+ import be from "./index223.js";
7
+ import { useMobile as me } from "./index9.js";
8
+ import { useLocale as ye } from "./index224.js";
9
+ const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
9
10
  __name: "BbOffCanvas",
10
11
  props: {
11
- closeLabel: { default: "Chiudi" },
12
+ closeLabel: {},
12
13
  compact: { type: Boolean },
13
14
  disabled: { type: Boolean },
14
15
  eager: { type: Boolean },
@@ -28,21 +29,21 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
28
29
  },
29
30
  emits: ["shown", "hidden", "update:modelValue"],
30
31
  setup(I, { emit: W }) {
31
- var L, N;
32
- const e = I, c = W, _ = `title_${E().id.value}`, k = `description_${E().id.value}`, { isMobile: F } = pe(), d = l(null), M = l(null), R = l(null), K = l(null), P = l(null), U = l(null), j = se(), C = u(
33
- () => e.fullscreen === !0 || e.fullscreen === "mobile" && F.value
34
- ), T = !!((N = (L = ae()) == null ? void 0 : L.proxy) != null && N.$nuxt), f = l(0), q = u(() => {
32
+ var x, N;
33
+ const e = I, c = W, { t: F } = ye(), _ = `title_${E().id.value}`, k = `description_${E().id.value}`, { isMobile: R } = me(), d = l(null), M = l(null), K = l(null), P = l(null), U = l(null), j = l(null), q = ae(), C = u(
34
+ () => e.fullscreen === !0 || e.fullscreen === "mobile" && R.value
35
+ ), T = !!((N = (x = ne()) == null ? void 0 : x.proxy) != null && N.$nuxt), f = l(0), G = u(() => {
35
36
  const { openedModals: t } = b();
36
37
  return !t.value || t.value === f.value;
37
- }), { activate: G, deactivate: J } = fe(M, {
38
+ }), { activate: J, deactivate: Q } = pe(M, {
38
39
  initialFocus: e.focusTarget ?? void 0,
39
40
  clickOutsideDeactivates: (t) => t.target === d.value,
40
41
  allowOutsideClick: !0,
41
42
  /* On esc deactivate the trap, return focus and then close the modal */
42
- escapeDeactivates: () => (ne(() => {
43
+ escapeDeactivates: () => (ie(() => {
43
44
  c("update:modelValue", !1);
44
45
  }), !0)
45
- }), Q = u(() => e.closeLabel), w = l(!1), v = l(!1), m = l(!0), p = l(!1), i = l(e.eager || e.modelValue), D = l(null), X = u(() => v.value || p.value), Y = () => {
46
+ }), X = u(() => e.closeLabel), w = l(!1), v = l(!1), m = l(!0), p = l(!1), i = l(e.eager || e.modelValue), D = l(null), Y = u(() => v.value || p.value), Z = () => {
46
47
  if (!globalThis.document) return;
47
48
  const t = window.innerWidth - document.documentElement.clientWidth;
48
49
  document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
@@ -54,42 +55,42 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
54
55
  const { openedModals: t, modalHasClosed: o } = b();
55
56
  t.value && (o(), f.value = 0, B());
56
57
  }
57
- }), ie(() => {
58
- !e.modelValue && !i.value || T && !globalThis.document || x();
58
+ }), re(() => {
59
+ !e.modelValue && !i.value || T && !globalThis.document || L();
59
60
  }), O(() => {
60
61
  if (e.modelValue) {
61
62
  const { openedModals: t, modalHasClosed: o } = b();
62
63
  t.value && (o(), f.value = 0, B());
63
64
  }
64
- }), re(
65
+ }), ue(
65
66
  () => e.modelValue,
66
67
  () => {
67
- !e.modelValue && !i.value || T && !globalThis.document || x();
68
+ !e.modelValue && !i.value || T && !globalThis.document || L();
68
69
  },
69
70
  { flush: "post" }
70
71
  );
71
- const x = async () => {
72
+ const L = async () => {
72
73
  if (e.modelValue) {
73
74
  i.value || (i.value = !0), m.value = !1, p.value = !1, v.value = !0;
74
75
  const { modalHasOpened: t, openedModals: o } = b();
75
- t(), f.value = o.value, Y(), await H(e.transitionDuration), v.value = !1, w.value = !0, c("shown"), G();
76
+ t(), f.value = o.value, Z(), await H(e.transitionDuration), v.value = !1, w.value = !0, c("shown"), J();
76
77
  } else {
77
- J(), v.value = !1, w.value = !1, p.value = !0;
78
+ Q(), v.value = !1, w.value = !1, p.value = !0;
78
79
  const { modalHasClosed: t, openedModals: o } = b();
79
80
  t(), f.value = 0, o.value || B(), await H(e.transitionDuration), p.value = !1, m.value = !0, c("hidden"), D.value instanceof HTMLElement && D.value.focus();
80
81
  }
81
82
  }, y = (t) => {
82
83
  t.target === d.value && t.preventDefault();
83
- }, Z = (t) => {
84
- e.disabled || X.value || d.value && t.target === d.value && (e.persistent || c("update:modelValue", !1));
84
+ }, ee = (t) => {
85
+ e.disabled || Y.value || d.value && t.target === d.value && (e.persistent || c("update:modelValue", !1));
85
86
  }, V = () => {
86
87
  e.disabled || c("update:modelValue", !1);
87
- }, ee = u(() => {
88
+ }, te = u(() => {
88
89
  const t = [
89
90
  {
90
91
  "bb-offcanvas bb-offcanvas__overlay": !0,
91
92
  "bb-offcanvas--fullscreen": C.value,
92
- "bb-offcanvas--faded": !q.value,
93
+ "bb-offcanvas--faded": !G.value,
93
94
  "bb-offcanvas--open": w.value,
94
95
  "bb-offcanvas--opening": v.value,
95
96
  "bb-offcanvas--closed": m.value,
@@ -99,7 +100,7 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
99
100
  },
100
101
  e.overlayClasses
101
102
  ].flat(), o = {
102
- onClick: Z,
103
+ onClick: ee,
103
104
  onScroll: y,
104
105
  onTouchmove: y,
105
106
  onWheel: y,
@@ -111,9 +112,9 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
111
112
  class: t,
112
113
  style: a,
113
114
  ...o,
114
- ...j
115
+ ...q
115
116
  };
116
- }), te = u(() => {
117
+ }), oe = u(() => {
117
118
  const t = [
118
119
  {
119
120
  "bb-offcanvas__panel": !0,
@@ -132,38 +133,38 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
132
133
  lg: 896
133
134
  };
134
135
  e.direction === "left" || e.direction === "right" ? C.value ? a = "100%" : typeof e.size == "number" ? a = e.size + "px" : e.size in h ? a = h[e.size] + "px" : a = e.size + "px" : C.value ? r = "100%" : typeof e.size == "number" ? r = e.size + "px" : e.size in h ? r = h[e.size] + "px" : Number.isNaN(Number(e.size)) ? e.size === "auto" && (r = "auto") : r = e.size + "px";
135
- const oe = {
136
+ const le = {
136
137
  maxWidth: a,
137
138
  height: r,
138
139
  transitionDuration: e.transitionDuration / 1e3 + "s"
139
140
  };
140
141
  return {
141
142
  class: t,
142
- style: oe,
143
+ style: le,
143
144
  ...o
144
145
  };
145
146
  });
146
- return (t, o) => (g(), ue(ve, null, {
147
- default: ce(() => [
148
- s("div", S(ee.value, {
147
+ return (t, o) => (g(), ce(be, null, {
148
+ default: de(() => [
149
+ s("div", S(te.value, {
149
150
  ref_key: "overlay",
150
151
  ref: d,
151
152
  inert: m.value
152
153
  }), [
153
- s("div", S(te.value, {
154
+ s("div", S(oe.value, {
154
155
  ref_key: "panel",
155
156
  ref: M
156
157
  }), [
157
158
  i.value ? (g(), z("div", {
158
159
  key: 0,
159
160
  ref_key: "content",
160
- ref: R,
161
+ ref: K,
161
162
  class: "bb-offcanvas__content"
162
163
  }, [
163
164
  n(t.$slots, "content", { close: V }, () => [
164
165
  s("div", {
165
166
  ref_key: "header",
166
- ref: K,
167
+ ref: P,
167
168
  class: "bb-offcanvas__header"
168
169
  }, [
169
170
  n(t.$slots, "header", {
@@ -176,13 +177,13 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
176
177
  class: "bb-offcanvas__title"
177
178
  }, [
178
179
  n(t.$slots, "title", { text: t.title }, () => [
179
- de(A(t.title), 1)
180
+ fe(A(t.title), 1)
180
181
  ])
181
182
  ]),
182
- s("span", me, [
183
+ s("span", ge, [
183
184
  t.showClose ? (g(), z("button", {
184
185
  key: 0,
185
- "aria-label": Q.value,
186
+ "aria-label": X.value || ve(F)("common.closeLabel").value,
186
187
  type: "button",
187
188
  onClick: V
188
189
  }, [
@@ -203,13 +204,13 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
203
204
  ])
204
205
  ], -1))
205
206
  ])
206
- ], 8, ye)) : $("", !0)
207
+ ], 8, _e)) : $("", !0)
207
208
  ])
208
209
  ])
209
210
  ], 512),
210
211
  s("div", {
211
212
  ref_key: "body",
212
- ref: P,
213
+ ref: U,
213
214
  class: "bb-offcanvas__body scrollbar-border"
214
215
  }, [
215
216
  n(t.$slots, "description", {
@@ -227,7 +228,7 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
227
228
  o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
228
229
  s("div", {
229
230
  ref_key: "footer",
230
- ref: U,
231
+ ref: j,
231
232
  class: "bb-offcanvas__footer"
232
233
  }, [
233
234
  n(t.$slots, "footer")
@@ -235,12 +236,12 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
235
236
  ])
236
237
  ], 512)) : $("", !0)
237
238
  ], 16)
238
- ], 16, be)
239
+ ], 16, he)
239
240
  ]),
240
241
  _: 3
241
242
  }));
242
243
  }
243
244
  });
244
245
  export {
245
- Ve as default
246
+ Te as default
246
247
  };