bitboss-ui 2.0.72 → 2.0.73

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 (142) hide show
  1. package/dist/components/BbPagination/BbPagination.vue.d.ts +5 -0
  2. package/dist/index106.js +16 -16
  3. package/dist/index110.js +59 -60
  4. package/dist/index118.js +1 -1
  5. package/dist/index120.js +57 -58
  6. package/dist/index122.js +1 -1
  7. package/dist/index126.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index130.js +1 -1
  12. package/dist/index132.js +2 -2
  13. package/dist/index133.js +2 -2
  14. package/dist/index15.js +2 -2
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +2 -2
  17. package/dist/index204.js +2 -81
  18. package/dist/index205.js +2 -2
  19. package/dist/index206.js +4 -8
  20. package/dist/index207.js +2 -2
  21. package/dist/index208.js +3 -4
  22. package/dist/index209.js +8 -2
  23. package/dist/index21.js +14 -14
  24. package/dist/index210.js +1 -1
  25. package/dist/index212.js +1 -1
  26. package/dist/index213.js +5 -20
  27. package/dist/index214.js +16 -4
  28. package/dist/index215.js +14 -162
  29. package/dist/index216.js +19 -84
  30. package/dist/index217.js +21 -0
  31. package/dist/index218.js +27 -3
  32. package/dist/index219.js +3 -41
  33. package/dist/index220.js +2 -6
  34. package/dist/index221.js +249 -7
  35. package/dist/index222.js +49 -123
  36. package/dist/index223.js +44 -5
  37. package/dist/index224.js +5 -125
  38. package/dist/index225.js +60 -19
  39. package/dist/index226.js +124 -14
  40. package/dist/index227.js +122 -13
  41. package/dist/index229.js +41 -2
  42. package/dist/index23.js +12 -12
  43. package/dist/index230.js +20 -5
  44. package/dist/index231.js +6 -369
  45. package/dist/index232.js +5 -3
  46. package/dist/index233.js +367 -17
  47. package/dist/index234.js +3 -27
  48. package/dist/index235.js +7 -3
  49. package/dist/index236.js +160 -245
  50. package/dist/index237.js +77 -45
  51. package/dist/index239.js +4 -5
  52. package/dist/index240.js +80 -59
  53. package/dist/index241.js +1 -1
  54. package/dist/index243.js +1 -1
  55. package/dist/index245.js +1 -1
  56. package/dist/index25.js +5 -5
  57. package/dist/index250.js +4 -6
  58. package/dist/index251.js +224 -16
  59. package/dist/index252.js +1 -1
  60. package/dist/index254.js +7 -23
  61. package/dist/index255.js +280 -8
  62. package/dist/index256.js +6 -4
  63. package/dist/index257.js +2 -3
  64. package/dist/index259.js +2 -7
  65. package/dist/index260.js +2 -176
  66. package/dist/index261.js +2 -66
  67. package/dist/index262.js +2 -2
  68. package/dist/index263.js +2 -9
  69. package/dist/index264.js +2 -3
  70. package/dist/index265.js +2 -12
  71. package/dist/index266.js +2 -9
  72. package/dist/index267.js +25 -14
  73. package/dist/index268.js +22 -4
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +2 -89
  76. package/dist/index271.js +125 -280
  77. package/dist/index272.js +430 -5
  78. package/dist/index273.js +176 -2
  79. package/dist/index274.js +22 -2
  80. package/dist/index276.js +3 -2
  81. package/dist/index277.js +12 -2
  82. package/dist/index278.js +7 -124
  83. package/dist/index279.js +7 -20
  84. package/dist/index280.js +19 -0
  85. package/dist/index281.js +4 -200
  86. package/dist/index282.js +200 -224
  87. package/dist/index285.js +3 -2
  88. package/dist/index286.js +9 -2
  89. package/dist/index287.js +23 -2
  90. package/dist/index288.js +89 -2
  91. package/dist/index289.js +5 -1
  92. package/dist/index29.js +16 -17
  93. package/dist/index290.js +16 -2
  94. package/dist/index291.js +8 -27
  95. package/dist/index292.js +3 -22
  96. package/dist/index293.js +5 -0
  97. package/dist/index294.js +211 -5
  98. package/dist/index295.js +5 -3
  99. package/dist/index296.js +65 -2
  100. package/dist/index297.js +2 -211
  101. package/dist/index298.js +5 -4
  102. package/dist/index299.js +8 -4
  103. package/dist/index300.js +32 -58
  104. package/dist/index301.js +6 -4
  105. package/dist/index302.js +18 -7
  106. package/dist/index303.js +7 -79
  107. package/dist/index304.js +6 -0
  108. package/dist/index305.js +10 -3
  109. package/dist/index306.js +84 -2
  110. package/dist/index308.js +4 -7
  111. package/dist/index309.js +4 -19
  112. package/dist/index31.js +2 -2
  113. package/dist/index310.js +58 -6
  114. package/dist/index311.js +46 -10
  115. package/dist/index312.js +2 -47
  116. package/dist/{index313.js → index314.js} +2 -2
  117. package/dist/index315.js +1 -1
  118. package/dist/index316.js +47 -2
  119. package/dist/index317.js +2 -47
  120. package/dist/index33.js +2 -2
  121. package/dist/index35.js +2 -2
  122. package/dist/index37.js +7 -7
  123. package/dist/index39.js +3 -3
  124. package/dist/index41.js +2 -2
  125. package/dist/index43.js +2 -2
  126. package/dist/index45.js +2 -2
  127. package/dist/index55.js +1 -1
  128. package/dist/index57.js +1 -1
  129. package/dist/index61.js +21 -23
  130. package/dist/index75.js +47 -48
  131. package/dist/index79.js +4 -7
  132. package/dist/index81.js +1 -1
  133. package/dist/index84.js +2 -2
  134. package/dist/index86.js +27 -26
  135. package/dist/index88.js +86 -86
  136. package/dist/index90.js +1 -1
  137. package/package.json +1 -1
  138. package/dist/index238.js +0 -46
  139. package/dist/index253.js +0 -11
  140. package/dist/index269.js +0 -433
  141. package/dist/index307.js +0 -35
  142. /package/dist/{index275.js → index258.js} +0 -0
@@ -5,6 +5,10 @@ export type BbPaginationProps = Pick<CommonProps, 'disabled' | 'loading'> & {
5
5
  * String of text displayed in place of hidden pages
6
6
  */
7
7
  ellipsis?: string;
8
+ /**
9
+ * Label of the pagination
10
+ */
11
+ label?: string;
8
12
  /**
9
13
  * Maximum number of clickable pages displayed at all times.
10
14
  * This has a tolerance of +/- 1 for odd / even numbering.
@@ -28,6 +32,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Bb
28
32
  }, string, import('vue').PublicProps, Readonly<BbPaginationProps> & Readonly<{
29
33
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
30
34
  }>, {
35
+ label: string;
31
36
  modelValue: number;
32
37
  align: "left" | "center" | "right";
33
38
  maxSize: string | number;
package/dist/index106.js CHANGED
@@ -1,9 +1,9 @@
1
- import { defineComponent as v, ref as g, computed as y, openBlock as w, createBlock as B, withCtx as a, renderSlot as i, normalizeProps as l, guardReactiveProps as r, createVNode as $, mergeProps as T } from "vue";
2
- import V from "./index27.js";
1
+ import { defineComponent as f, ref as v, computed as g, openBlock as y, createBlock as w, withCtx as a, renderSlot as i, normalizeProps as l, guardReactiveProps as r, createVNode as B, mergeProps as $ } from "vue";
2
+ import T from "./index27.js";
3
3
  /* empty css */
4
- import D from "./index43.js";
4
+ import V from "./index43.js";
5
5
  /* empty css */
6
- const F = /* @__PURE__ */ v({
6
+ const E = /* @__PURE__ */ f({
7
7
  __name: "BbSwitchGroup",
8
8
  props: {
9
9
  autofocus: {},
@@ -34,8 +34,8 @@ const F = /* @__PURE__ */ v({
34
34
  reverse: { type: Boolean }
35
35
  },
36
36
  emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
37
- setup(d, { emit: p }) {
38
- const u = d, n = p, s = g(!1), m = y(() => u.persistentHint || s.value), c = {
37
+ setup(t, { emit: p }) {
38
+ const u = t, n = p, s = v(!1), m = g(() => u.persistentHint || s.value), c = {
39
39
  onBlur: (e) => n("blur", e),
40
40
  onChange: (e) => n("change", e),
41
41
  onClick: (e) => n("click", e),
@@ -51,7 +51,7 @@ const F = /* @__PURE__ */ v({
51
51
  onMouseup: (e) => n("mouseup", e),
52
52
  "onUpdate:modelValue": (e) => n("update:modelValue", e)
53
53
  };
54
- return (e, k) => (w(), B(V, {
54
+ return (e, D) => (y(), w(T, {
55
55
  id: e.id,
56
56
  class: "bb-switch-group",
57
57
  direction: "vertical",
@@ -66,13 +66,13 @@ const F = /* @__PURE__ */ v({
66
66
  "show-hint": m.value,
67
67
  tag: "fieldset"
68
68
  }, {
69
- label: a((t) => [
70
- i(e.$slots, "legend", l(r(t)))
69
+ label: a((d) => [
70
+ i(e.$slots, "legend", l(r(d)))
71
71
  ]),
72
- input: a(({ id: t, name: h, hasErrors: b, ariaDescribedby: f }) => [
73
- $(D, T({
74
- id: t,
75
- "aria-describedby": f,
72
+ input: a(({ id: d, hasErrors: h, ariaDescribedby: b }) => [
73
+ B(V, $({
74
+ id: d,
75
+ "aria-describedby": b,
76
76
  autofocus: e.autofocus,
77
77
  color: e.color,
78
78
  dependencies: e.dependencies,
@@ -80,7 +80,7 @@ const F = /* @__PURE__ */ v({
80
80
  direction: e.inputDirection,
81
81
  disabled: e.disabled,
82
82
  "enforce-coherence": e.enforceCoherence,
83
- "has-errors": b,
83
+ "has-errors": h,
84
84
  "hide-label": e.hideLabel,
85
85
  "item-text": e.itemText,
86
86
  "item-value": e.itemValue,
@@ -89,7 +89,7 @@ const F = /* @__PURE__ */ v({
89
89
  max: e.max,
90
90
  "model-value": e.modelValue,
91
91
  "model-value-debounce-time": e.modelValueDebounceTime,
92
- name: h,
92
+ name: e.name,
93
93
  "no-data-text": e.noDataText,
94
94
  readonly: e.readonly
95
95
  }, c), {
@@ -125,5 +125,5 @@ const F = /* @__PURE__ */ v({
125
125
  }
126
126
  });
127
127
  export {
128
- F as default
128
+ E as default
129
129
  };
package/dist/index110.js CHANGED
@@ -1,15 +1,15 @@
1
- import { defineComponent as oe, ref as j, computed as y, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as _, createElementVNode as o, renderSlot as f, createVNode as x, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index262.js";
3
- import { clamp as pe } from "./index205.js";
1
+ import { defineComponent as oe, ref as j, computed as m, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as y, withCtx as ie, createElementBlock as d, toDisplayString as u, createCommentVNode as _, createElementVNode as o, renderSlot as p, createVNode as R, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
+ import { add as ue } from "./index297.js";
3
+ import { clamp as pe } from "./index204.js";
4
4
  import { isNil as M } from "./index129.js";
5
5
  import { useId as fe } from "./index8.js";
6
- import { useItemValue as me } from "./index263.js";
7
- import { when as ye } from "./index208.js";
6
+ import { useItemValue as me } from "./index279.js";
7
+ import { when as ye } from "./index206.js";
8
8
  import J from "./index17.js";
9
9
  /* empty css */
10
10
  import he from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as ke } from "./index215.js";
12
+ import { useOptions as ke } from "./index236.js";
13
13
  const _e = {
14
14
  key: 0,
15
15
  class: "sr-only"
@@ -57,10 +57,10 @@ const _e = {
57
57
  },
58
58
  emits: ["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll"],
59
59
  setup(N, { emit: S }) {
60
- const { getItemValue: P } = me(), D = fe().id.value, t = N, v = S, V = j(), Q = t.accessibleLabel, U = t.loadingText, W = t.noDataText, z = t.selectText, G = y(() => t.selectable ? "fieldset" : "div"), K = j(!1), O = y(() => t.loading || K.value), H = y(() => [!!t.selectable, !!t.actions].reduce(
60
+ const { getItemValue: P } = me(), x = fe().id.value, t = N, v = S, V = j(), Q = t.accessibleLabel, U = t.loadingText, W = t.noDataText, z = t.selectText, G = m(() => t.selectable ? "fieldset" : "div"), K = j(!1), O = m(() => t.loading || K.value), H = m(() => [!!t.selectable, !!t.actions].reduce(
61
61
  (e, s) => e + +!!s,
62
62
  t.columns.length
63
- )), q = y(
63
+ )), q = m(
64
64
  () => t.columns.reduce(
65
65
  (e, s) => {
66
66
  const l = s.key.split(/\W+/g).join("_");
@@ -85,7 +85,7 @@ const _e = {
85
85
  depsDebounceTime: t.depsDebounceTime,
86
86
  queryDebounceTime: 0,
87
87
  disabled: B(t, "disabled")
88
- }), Z = y(
88
+ }), Z = m(
89
89
  () => t.columns.map((e) => {
90
90
  const s = e.align || "left", { label: l, key: c } = e, g = `header:${q.value[e.key]}`;
91
91
  let a = [`bb-table-header--${s}`];
@@ -97,30 +97,30 @@ const _e = {
97
97
  classes: a
98
98
  };
99
99
  })
100
- ), C = y(() => $.value.map((e) => {
100
+ ), C = m(() => $.value.map((e) => {
101
101
  let s = !t.selectable;
102
- typeof t.selectable == "function" && (s = !t.selectable(e)), s = s || !!e.disabled;
102
+ typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
103
103
  const l = t.columns.map((a) => {
104
- const i = q.value[a.key], h = a.align || "left", { label: A, key: I } = a;
105
- let m = P(e.item, a.key);
104
+ const i = q.value[a.key], h = a.align || "left", { label: A, key: L } = a;
105
+ let f = P(e.item, a.key);
106
106
  a.formatter && // By default the formatter runs anyway
107
- (!M(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && M(m) && (m = a.placeholder);
107
+ (!M(f) || a.formatOnNull !== !1) && (f = a.formatter(f, a.key, e.item)), a.placeholder && M(f) && (f = a.placeholder);
108
108
  let b = [`bb-table-data__cell--${h}`];
109
109
  if (t.tdClass)
110
110
  if (typeof t.tdClass == "function") {
111
- let k = t.tdClass(m, a.key, e.item);
111
+ let k = t.tdClass(f, a.key, e.item);
112
112
  k && (b = b.concat(k));
113
113
  } else b = b.concat(t.tdClass);
114
114
  if (a.tdClass)
115
115
  if (typeof a.tdClass == "function") {
116
- let k = a.tdClass(m, a.key, e.item);
116
+ let k = a.tdClass(f, a.key, e.item);
117
117
  k && (b = b.concat(k));
118
118
  } else b = b.concat(a.tdClass);
119
119
  return {
120
120
  align: h,
121
121
  classes: b,
122
- content: m,
123
- key: I,
122
+ content: f,
123
+ key: L,
124
124
  label: A,
125
125
  slotName: i
126
126
  };
@@ -141,9 +141,9 @@ const _e = {
141
141
  })), ee = (e) => {
142
142
  let s = e, l = [];
143
143
  s && (l = C.value.reduce((c, g) => (!g.disabled && c.length < t.max && c.push(g.value), c), [])), v("update:modelValue", l), v("update:selectAll", e);
144
- }, L = y(
144
+ }, D = m(
145
145
  () => !!(C.value.length && C.value.filter((e) => !e.disabled).every((e) => e.selected))
146
- ), le = y(
146
+ ), le = m(
147
147
  () => {
148
148
  var e;
149
149
  return C.value.some((s) => !s.selected) && !!((e = t.modelValue) != null && e.length);
@@ -153,7 +153,7 @@ const _e = {
153
153
  }, te = ye(
154
154
  (e) => typeof e != "string",
155
155
  JSON.stringify
156
- ), ae = y(() => [].concat(t.modelValue).map((e) => {
156
+ ), ae = m(() => [].concat(t.modelValue).map((e) => {
157
157
  const s = te(e);
158
158
  return {
159
159
  disabled: t.disabled,
@@ -161,7 +161,7 @@ const _e = {
161
161
  type: "hidden",
162
162
  value: s
163
163
  };
164
- })), se = y(() => pe($.value.length, 4, 10));
164
+ })), se = m(() => pe($.value.length, 4, 10));
165
165
  return ne(
166
166
  () => C.value,
167
167
  () => {
@@ -170,10 +170,10 @@ const _e = {
170
170
  const s = Array.from(
171
171
  V.value.querySelectorAll("thead th")
172
172
  ), l = t.fixedColumns.reduce((a, i) => {
173
- const h = typeof i == "number" ? i : i.index, A = typeof i == "number" ? "left" : i.position, I = s[h].getBoundingClientRect(), m = Math.floor(I.width), b = a.filter((R) => R.position === A).map((R) => R.width).reduce(ue, 0), k = {
173
+ const h = typeof i == "number" ? i : i.index, A = typeof i == "number" ? "left" : i.position, L = s[h].getBoundingClientRect(), f = Math.floor(L.width), b = a.filter((I) => I.position === A).map((I) => I.width).reduce(ue, 0), k = {
174
174
  index: h,
175
175
  position: A,
176
- width: m,
176
+ width: f,
177
177
  offset: b
178
178
  };
179
179
  return a.push(k), a;
@@ -204,12 +204,12 @@ const _e = {
204
204
  "bb-table--fixed": e.fixed,
205
205
  "bb-table--fixed-header": e.fixedHeaders,
206
206
  "bb-table--loading": O.value,
207
- "bb-table--empty": !u($).length,
207
+ "bb-table--empty": !y($).length,
208
208
  "bb-table--selectable": e.selectable
209
209
  })
210
210
  }, {
211
211
  default: ie(() => [
212
- e.selectable ? (n(), d("legend", _e, p(e.legend), 1)) : _("", !0),
212
+ e.selectable ? (n(), d("legend", _e, u(e.legend), 1)) : _("", !0),
213
213
  o("table", null, [
214
214
  e.caption ? (n(), d("caption", {
215
215
  key: 0,
@@ -217,19 +217,19 @@ const _e = {
217
217
  "bb-table-caption": !0,
218
218
  "sr-only": !e.displayCaption
219
219
  })
220
- }, p(e.caption), 3)) : _("", !0),
220
+ }, u(e.caption), 3)) : _("", !0),
221
221
  o("thead", null, [
222
- f(e.$slots, "thead", {}, () => [
222
+ p(e.$slots, "thead", {}, () => [
223
223
  o("tr", ve, [
224
224
  e.selectable ? (n(), d("th", {
225
225
  key: 0,
226
226
  class: r(["bb-table-header bb-table-header--select", e.thClass]),
227
227
  scope: "col"
228
228
  }, [
229
- f(e.$slots, "header:select", {
229
+ p(e.$slots, "header:select", {
230
230
  multiple: e.multiple,
231
231
  selectAll: !!e.selectAll,
232
- text: u(z)
232
+ text: y(z)
233
233
  }, () => [
234
234
  o("span", Ce, [
235
235
  e.allowSelectAll && e.multiple ? (n(), d("label", {
@@ -238,17 +238,17 @@ const _e = {
238
238
  "bb-table-check__label--disabled": e.disabled
239
239
  }])
240
240
  }, [
241
- x(J, {
241
+ R(J, {
242
242
  class: "bb-table-check",
243
243
  disabled: e.disabled,
244
244
  indeterminate: le.value,
245
- "model-value": L.value,
245
+ "model-value": D.value,
246
246
  name: `select_all_${e.name || ""}`,
247
247
  readonly: e.readonly,
248
248
  "onUpdate:modelValue": ee
249
249
  }, null, 8, ["disabled", "indeterminate", "model-value", "name", "readonly"]),
250
- o("span", ge, p(e.selectAllLabel), 1)
251
- ], 2)) : e.multiple ? _("", !0) : (n(), d("span", we, p(u(z)), 1))
250
+ o("span", ge, u(e.selectAllLabel), 1)
251
+ ], 2)) : e.multiple ? _("", !0) : (n(), d("span", we, u(y(z)), 1))
252
252
  ])
253
253
  ])
254
254
  ], 2)) : _("", !0),
@@ -257,13 +257,13 @@ const _e = {
257
257
  class: r(["bb-table-header", l.classes]),
258
258
  scope: "col"
259
259
  }, [
260
- f(e.$slots, l.slotName, {
260
+ p(e.$slots, l.slotName, {
261
261
  classes: l.classes,
262
262
  item: void 0,
263
- items: u(E),
263
+ items: y(E),
264
264
  label: l.label
265
265
  }, () => [
266
- o("span", Te, p(l.label), 1)
266
+ o("span", Te, u(l.label), 1)
267
267
  ])
268
268
  ], 2))), 128)),
269
269
  e.actions ? (n(), d("th", {
@@ -271,24 +271,24 @@ const _e = {
271
271
  class: r(["bb-table-header bb-table-header--actions", e.thClass]),
272
272
  scope: "col"
273
273
  }, [
274
- f(e.$slots, "header:actions", { text: e.actionsText }, () => [
275
- o("span", Ve, p(e.actionsText), 1)
274
+ p(e.$slots, "header:actions", { text: e.actionsText }, () => [
275
+ o("span", Ve, u(e.actionsText), 1)
276
276
  ])
277
277
  ], 2)) : _("", !0)
278
278
  ])
279
279
  ])
280
280
  ]),
281
281
  o("tbody", null, [
282
- O.value ? f(e.$slots, "loading", {
282
+ O.value ? p(e.$slots, "loading", {
283
283
  key: 0,
284
- items: u(E)
284
+ items: y(E)
285
285
  }, () => [
286
286
  o("tr", $e, [
287
287
  o("td", {
288
288
  class: "bb-table-loading__cell",
289
289
  colspan: H.value
290
290
  }, [
291
- o("span", Be, p(u(U)), 1),
291
+ o("span", Be, u(y(U)), 1),
292
292
  o("div", Ne, [
293
293
  (n(!0), d(w, null, T(se.value, (l) => (n(), d("div", {
294
294
  key: l,
@@ -305,7 +305,7 @@ const _e = {
305
305
  ])
306
306
  ], 8, Ae)
307
307
  ])
308
- ]) : u($).length ? f(e.$slots, "tbody", { key: 2 }, () => [
308
+ ]) : y($).length ? p(e.$slots, "tbody", { key: 2 }, () => [
309
309
  (n(!0), d(w, null, T(C.value, (l) => (n(), d("tr", {
310
310
  key: l.valueHash,
311
311
  class: "bb-table-data__row",
@@ -317,10 +317,10 @@ const _e = {
317
317
  key: 0,
318
318
  class: r(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
319
319
  }, [
320
- f(e.$slots, "select", {
321
- checked: !!(l.selected || L.value),
320
+ p(e.$slots, "select", {
321
+ checked: !!(l.selected || D.value),
322
322
  disabled: !!l.disabled,
323
- inputName: u(D),
323
+ inputName: y(x),
324
324
  item: l.item,
325
325
  readonly: !!e.readonly,
326
326
  value: l.value
@@ -331,31 +331,30 @@ const _e = {
331
331
  "bb-table-check__label--disabled": l.disabled
332
332
  }])
333
333
  }, [
334
- x(J, {
335
- checked: l.selected || L.value,
334
+ R(J, {
335
+ checked: l.selected || D.value,
336
336
  class: "bb-table-check",
337
337
  disabled: l.disabled,
338
- name: u(D),
339
338
  readonly: e.readonly,
340
339
  onChange: () => F(l)
341
- }, null, 8, ["checked", "disabled", "name", "readonly", "onChange"]),
342
- o("span", Re, p(l.accessibleLabel), 1)
340
+ }, null, 8, ["checked", "disabled", "readonly", "onChange"]),
341
+ o("span", Re, u(l.accessibleLabel), 1)
343
342
  ], 2)) : (n(), d("label", {
344
343
  key: 1,
345
344
  class: r(["bb-table-radio__label", {
346
345
  "bb-table-radio__label--disabled": l.disabled
347
346
  }])
348
347
  }, [
349
- x(he, {
348
+ R(he, {
350
349
  checked: l.selected,
351
350
  class: "bb-table-radio",
352
351
  disabled: l.disabled,
353
- name: u(D),
352
+ name: y(x),
354
353
  readonly: e.readonly,
355
354
  value: l.value,
356
355
  onChange: () => F(l)
357
356
  }, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
358
- o("span", xe, p(l.accessibleLabel), 1)
357
+ o("span", xe, u(l.accessibleLabel), 1)
359
358
  ], 2))
360
359
  ])
361
360
  ], 2)) : _("", !0),
@@ -363,38 +362,38 @@ const _e = {
363
362
  key: c.key,
364
363
  class: r(["bb-table-data__cell", c.classes])
365
364
  }, [
366
- f(e.$slots, c.slotName, {
365
+ p(e.$slots, c.slotName, {
367
366
  classes: c.classes,
368
367
  content: c.content,
369
368
  item: l.item,
370
369
  value: l.value
371
370
  }, () => [
372
- be(p(c.content), 1)
371
+ be(u(c.content), 1)
373
372
  ])
374
373
  ], 2))), 128)),
375
374
  e.actions ? (n(), d("td", {
376
375
  key: 1,
377
376
  class: r(["bb-table__cell bb-table__cell--actions", e.tdClass])
378
377
  }, [
379
- f(e.$slots, "actions", {
378
+ p(e.$slots, "actions", {
380
379
  item: l.item,
381
380
  value: l.value
382
381
  })
383
382
  ], 2)) : _("", !0)
384
383
  ], 40, Ie))), 128))
385
- ]) : f(e.$slots, "no-data", { key: 1 }, () => [
384
+ ]) : p(e.$slots, "no-data", { key: 1 }, () => [
386
385
  o("tr", Se, [
387
386
  o("td", {
388
387
  class: "bb-table-no-data__cell",
389
388
  colspan: H.value
390
389
  }, [
391
- o("span", Le, p(u(W)), 1)
390
+ o("span", Le, u(y(W)), 1)
392
391
  ], 8, De)
393
392
  ])
394
393
  ])
395
394
  ]),
396
395
  o("tfoot", null, [
397
- f(e.$slots, "tfoot")
396
+ p(e.$slots, "tfoot")
398
397
  ])
399
398
  ]),
400
399
  (n(!0), d(w, null, T(ae.value, (l) => (n(), d("input", re({
package/dist/index118.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index11.js";
3
- import B from "./index261.js";
3
+ import B from "./index296.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index120.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as z, defineAsyncComponent as A, ref as a, watch as I, computed as R, openBlock as v, createElementBlock as S, mergeProps as U, createElementVNode as c, renderSlot as E, normalizeProps as W, guardReactiveProps as j, unref as u, createBlock as D, withCtx as L, createCommentVNode as M } from "vue";
2
- import { useFloating as q, arrow as G } from "./index222.js";
3
- import { useId as J } from "./index8.js";
4
- import { wait as P } from "./index131.js";
5
- import K from "./index13.js";
1
+ import { defineComponent as V, defineAsyncComponent as H, ref as o, watch as z, computed as A, openBlock as C, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as B, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as E, createBlock as j, createCommentVNode as q } from "vue";
2
+ import { useFloating as G, arrow as J } from "./index226.js";
3
+ import { useId as K } from "./index8.js";
4
+ import { wait as D } from "./index131.js";
5
+ import Q from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as b } from "./index218.js";
8
- import { waitFor as Q } from "./index220.js";
9
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index231.js";
10
- const ue = /* @__PURE__ */ z({
7
+ import { throttle as m } from "./index234.js";
8
+ import { waitFor as X } from "./index231.js";
9
+ import { autoUpdate as Y, flip as Z, shift as x, hide as ee } from "./index233.js";
10
+ const de = /* @__PURE__ */ V({
11
11
  __name: "BbTooltip",
12
12
  props: {
13
13
  arrowPadding: { default: 10 },
@@ -22,107 +22,106 @@ const ue = /* @__PURE__ */ z({
22
22
  theme: { default: "default" },
23
23
  transitionDuration: { default: 250 }
24
24
  },
25
- setup(F) {
26
- const O = A(
27
- () => import("./index252.js")
28
- ), t = F, w = `bb_${t.id ?? J().id.value}`, s = a(), d = a(), _ = a(), { placement: g, middlewareData: $ } = q(s, d, {
25
+ setup(L) {
26
+ const M = H(
27
+ () => import("./index285.js")
28
+ ), t = L, v = `bb_${t.id ?? K().id.value}`, s = o(), d = o(), P = o(), { placement: b, middlewareData: _ } = G(s, d, {
29
29
  placement: t.placement,
30
- whileElementsMounted: X,
30
+ whileElementsMounted: Y,
31
31
  middleware: [
32
- Y(),
33
- Z({ padding: t.padding }),
34
- G({
35
- element: _,
32
+ Z(),
33
+ x({ padding: t.padding }),
34
+ J({
35
+ element: P,
36
36
  padding: t.arrowPadding
37
37
  }),
38
- x()
38
+ ee()
39
39
  ]
40
40
  });
41
- let h = () => {
41
+ let w = () => {
42
42
  };
43
- const k = a(!0), n = a(!1), r = a(!1), l = a(!1), p = a(!0), y = () => {
44
- r.value || n.value || t.disabled || (N(), document.addEventListener("mouseover", C, { passive: !0 }), document.addEventListener("keydown", B, { passive: !0 }));
45
- }, T = y, C = b((e) => {
46
- const o = e.target;
47
- if (o && o instanceof HTMLElement) {
48
- let m = !0;
49
- s.value && s.value.contains(o) && (m = !1), d.value && d.value.contains(o) && (m = !1), m && i();
43
+ const g = o(!0), n = o(!1), r = o(!1), i = o(!1), p = o(!0), h = () => {
44
+ r.value || n.value || t.disabled || (T(), document.addEventListener("mouseover", k, { passive: !0 }), document.addEventListener("keydown", y, { passive: !0 }));
45
+ }, F = h, k = m((e) => {
46
+ const a = e.target;
47
+ if (a && a instanceof HTMLElement) {
48
+ let f = !0;
49
+ s.value && s.value.contains(a) && (f = !1), d.value && d.value.contains(a) && (f = !1), f && l();
50
50
  }
51
- }, t.transitionDuration), B = (e) => {
52
- r.value && e.key === "Escape" && i();
53
- }, H = () => {
54
- k.value = !1, i();
55
- }, f = a(!1), N = b(async () => {
56
- k.value && (f.value = !0, p.value = !1, l.value = !1, n.value = !0, await P(50), r.value = !0, n.value = !1, h = I(
51
+ }, t.transitionDuration), y = (e) => {
52
+ r.value && e.key === "Escape" && l();
53
+ }, O = () => {
54
+ g.value = !1, l();
55
+ }, $ = o(!1), T = m(async () => {
56
+ g.value && ($.value = !0, p.value = !1, i.value = !1, n.value = !0, await D(50), r.value = !0, n.value = !1, w = z(
57
57
  () => {
58
58
  var e;
59
- return (e = $.value.hide) == null ? void 0 : e.referenceHidden;
59
+ return (e = _.value.hide) == null ? void 0 : e.referenceHidden;
60
60
  },
61
61
  async (e) => {
62
- !l.value && !p.value && e && await i();
62
+ !i.value && !p.value && e && await l();
63
63
  }
64
64
  ));
65
- }, t.transitionDuration), i = b(async () => {
66
- await Q(() => !n.value), document.removeEventListener("mouseover", C), document.removeEventListener("keydown", B), r.value = !1, n.value = !1, l.value = !0, await P(t.transitionDuration), l.value = !1, p.value = !0, h();
67
- }, t.transitionDuration), V = R(() => ({
65
+ }, t.transitionDuration), l = m(async () => {
66
+ await X(() => !n.value), document.removeEventListener("mouseover", k), document.removeEventListener("keydown", y), r.value = !1, n.value = !1, i.value = !0, await D(t.transitionDuration), i.value = !1, p.value = !0, w();
67
+ }, t.transitionDuration), N = A(() => ({
68
68
  class: {
69
69
  "bb-tooltip--block": t.block,
70
70
  [`bb-tooltip--theme-${t.theme}`]: t.theme
71
71
  }
72
72
  }));
73
- return (e, o) => (v(), S("span", U({ class: "bb-tooltip" }, V.value), [
73
+ return (e, a) => (C(), I("span", R({ class: "bb-tooltip" }, N.value), [
74
74
  c("span", {
75
75
  ref_key: "wrapper",
76
76
  ref: s,
77
77
  class: "bb-tooltip__wrapper"
78
78
  }, [
79
- E(e.$slots, "activator", W(j({
79
+ B(e.$slots, "activator", S(U({
80
80
  props: {
81
- ...f.value ? { "aria-describedby": w } : {},
82
- onMouseenter: y,
83
- onFocus: u(T),
84
- onBlur: u(i),
81
+ "aria-describedby": v,
82
+ onMouseenter: h,
83
+ onFocus: u(F),
84
+ onBlur: u(l),
85
85
  disabled: e.disabled
86
86
  },
87
87
  closed: p.value,
88
- closing: l.value,
88
+ closing: i.value,
89
89
  disabled: e.disabled,
90
90
  open: r.value,
91
91
  opening: n.value,
92
- placement: u(g)
92
+ placement: u(b)
93
93
  })))
94
94
  ], 512),
95
- f.value || e.eager ? (v(), D(u(O), {
96
- key: 0,
95
+ W(u(M), {
97
96
  "arrow-padding": e.arrowPadding,
98
97
  "base-class": "bb-tooltip",
99
98
  "container-attributes": {
100
- id: w
99
+ id: v
101
100
  },
102
101
  eager: e.eager,
103
102
  offset: e.offset,
104
103
  open: r.value,
105
104
  padding: e.padding,
106
- placement: u(g),
105
+ placement: u(b),
107
106
  theme: e.theme,
108
107
  "transition-duration": e.transitionDuration,
109
108
  wrapper: s.value
110
109
  }, {
111
- default: L(() => [
110
+ default: E(() => [
112
111
  c("span", {
113
112
  ref_key: "content",
114
113
  ref: d,
115
114
  class: "bb-tooltip__content"
116
115
  }, [
117
- e.showClose ? (v(), D(K, {
116
+ e.showClose ? (C(), j(Q, {
118
117
  key: 0,
119
118
  "aria-hidden": "true",
120
119
  "aria-label": "Chiudi",
121
120
  class: "bb-tooltip__close",
122
121
  tabindex: "-1",
123
- onClick: H
122
+ onClick: O
124
123
  }, {
125
- default: L(() => o[0] || (o[0] = [
124
+ default: E(() => a[0] || (a[0] = [
126
125
  c("svg", {
127
126
  fill: "none",
128
127
  viewBox: "0 0 24 24",
@@ -137,15 +136,15 @@ const ue = /* @__PURE__ */ z({
137
136
  ], -1)
138
137
  ])),
139
138
  _: 1
140
- })) : M("", !0),
141
- E(e.$slots, "default")
139
+ })) : q("", !0),
140
+ B(e.$slots, "default")
142
141
  ], 512)
143
142
  ]),
144
143
  _: 3
145
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : M("", !0)
144
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
146
145
  ], 16));
147
146
  }
148
147
  });
149
148
  export {
150
- ue as default
149
+ de as default
151
150
  };
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index294.js";
2
+ import { flattenTree as T } from "./index295.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {