bitboss-ui 2.0.102 → 2.0.104

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 (163) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +10 -16
  2. package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +109 -7
  3. package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -16
  4. package/dist/composables/useBaseOptions.d.ts +31 -0
  5. package/dist/composables/useCoherence.d.ts +20 -0
  6. package/dist/composables/useHashedWatcher.d.ts +2 -0
  7. package/dist/composables/useIndexById.d.ts +11 -0
  8. package/dist/composables/useItemsGetter.d.ts +12 -0
  9. package/dist/composables/usePrefill.d.ts +12 -0
  10. package/dist/index100.js +88 -60
  11. package/dist/index101.js +10 -13
  12. package/dist/index111.js +154 -126
  13. package/dist/index119.js +2 -2
  14. package/dist/index121.js +5 -5
  15. package/dist/index123.js +1 -1
  16. package/dist/index127.js +1 -1
  17. package/dist/index128.js +1 -1
  18. package/dist/index129.js +1 -1
  19. package/dist/index13.js +22 -22
  20. package/dist/index131.js +1 -1
  21. package/dist/index132.js +69 -65
  22. package/dist/index133.js +2 -2
  23. package/dist/index15.js +4 -4
  24. package/dist/index17.js +3 -3
  25. package/dist/index19.js +126 -82
  26. package/dist/index205.js +2 -81
  27. package/dist/index206.js +115 -2
  28. package/dist/index207.js +2 -2
  29. package/dist/index208.js +2 -2
  30. package/dist/index209.js +2 -2
  31. package/dist/index210.js +3 -3
  32. package/dist/index211.js +2 -2
  33. package/dist/index212.js +2 -2
  34. package/dist/index213.js +1 -1
  35. package/dist/index216.js +3 -3
  36. package/dist/index219.js +2 -2
  37. package/dist/index220.js +1 -1
  38. package/dist/index221.js +124 -51
  39. package/dist/{index235.js → index222.js} +1 -1
  40. package/dist/index223.js +2 -13
  41. package/dist/index224.js +41 -2
  42. package/dist/index225.js +20 -4
  43. package/dist/index226.js +6 -2
  44. package/dist/index227.js +51 -18
  45. package/dist/index229.js +12 -2
  46. package/dist/index23.js +11 -11
  47. package/dist/index230.js +5 -168
  48. package/dist/index231.js +10 -82
  49. package/dist/index232.js +371 -0
  50. package/dist/index233.js +4 -8
  51. package/dist/index234.js +83 -125
  52. package/dist/index236.js +8 -2
  53. package/dist/index237.js +24 -40
  54. package/dist/index238.js +17 -6
  55. package/dist/index239.js +48 -5
  56. package/dist/index240.js +15 -12
  57. package/dist/index241.js +11 -368
  58. package/dist/index242.js +16 -3
  59. package/dist/index243.js +2 -7
  60. package/dist/index244.js +4 -2
  61. package/dist/index245.js +2 -18
  62. package/dist/index246.js +3 -106
  63. package/dist/index247.js +9 -0
  64. package/dist/index248.js +2 -100
  65. package/dist/index249.js +20 -0
  66. package/dist/index25.js +5 -5
  67. package/dist/index250.js +106 -2
  68. package/dist/index252.js +100 -10
  69. package/dist/index254.js +11 -8
  70. package/dist/index255.js +2 -23
  71. package/dist/index256.js +3 -89
  72. package/dist/index257.js +4 -0
  73. package/dist/index258.js +10 -9
  74. package/dist/index259.js +3 -6
  75. package/dist/index260.js +8 -15
  76. package/dist/index261.js +23 -9
  77. package/dist/index262.js +88 -7
  78. package/dist/index264.js +8 -5
  79. package/dist/index265.js +6 -2
  80. package/dist/index266.js +16 -2
  81. package/dist/index267.js +281 -2
  82. package/dist/index268.js +6 -2
  83. package/dist/index269.js +2 -2
  84. package/dist/index27.js +1 -1
  85. package/dist/index271.js +2 -2
  86. package/dist/index272.js +2 -2
  87. package/dist/index273.js +2 -2
  88. package/dist/index274.js +2 -2
  89. package/dist/index275.js +2 -28
  90. package/dist/index276.js +1 -21
  91. package/dist/index277.js +4 -0
  92. package/dist/index278.js +2 -7
  93. package/dist/index279.js +28 -3
  94. package/dist/index280.js +24 -0
  95. package/dist/index282.js +7 -224
  96. package/dist/index283.js +3 -176
  97. package/dist/index284.js +7 -3
  98. package/dist/index285.js +11 -12
  99. package/dist/index286.js +16 -8
  100. package/dist/index287.js +7 -15
  101. package/dist/index288.js +3 -4
  102. package/dist/index29.js +3 -3
  103. package/dist/index290.js +174 -9
  104. package/dist/index293.js +1 -1
  105. package/dist/index296.js +1 -1
  106. package/dist/index297.js +3 -88
  107. package/dist/index298.js +8 -200
  108. package/dist/index301.js +200 -2
  109. package/dist/index302.js +89 -3
  110. package/dist/index303.js +1 -1
  111. package/dist/index304.js +3 -213
  112. package/dist/index305.js +206 -59
  113. package/dist/index306.js +224 -5
  114. package/dist/index307.js +5 -3
  115. package/dist/index308.js +2 -3
  116. package/dist/index309.js +66 -3
  117. package/dist/index31.js +2 -2
  118. package/dist/index310.js +3 -58
  119. package/dist/index311.js +6 -32
  120. package/dist/index312.js +18 -7
  121. package/dist/index313.js +5 -8
  122. package/dist/index314.js +7 -4
  123. package/dist/index315.js +3 -8
  124. package/dist/index316.js +3 -7
  125. package/dist/index317.js +56 -17
  126. package/dist/index318.js +8 -7
  127. package/dist/index319.js +8 -4
  128. package/dist/index320.js +7 -2
  129. package/dist/index321.js +3 -46
  130. package/dist/index322.js +33 -480
  131. package/dist/index323.js +49 -0
  132. package/dist/index324.js +2 -424
  133. package/dist/index325.js +479 -46
  134. package/dist/index327.js +426 -0
  135. package/dist/index328.js +49 -0
  136. package/dist/index33.js +102 -61
  137. package/dist/index35.js +3 -3
  138. package/dist/index37.js +284 -244
  139. package/dist/index39.js +4 -4
  140. package/dist/index41.js +2 -2
  141. package/dist/index43.js +129 -84
  142. package/dist/index45.js +122 -120
  143. package/dist/index47.js +2 -2
  144. package/dist/index49.js +2 -2
  145. package/dist/index55.js +1 -1
  146. package/dist/index57.js +2 -2
  147. package/dist/index61.js +2 -2
  148. package/dist/index75.js +3 -3
  149. package/dist/index79.js +2 -2
  150. package/dist/index81.js +1 -1
  151. package/dist/index84.js +3 -3
  152. package/dist/index86.js +1 -1
  153. package/dist/index88.js +4 -4
  154. package/dist/index90.js +1 -1
  155. package/package.json +1 -1
  156. package/dist/composables/useOptions.d.ts +0 -43
  157. package/dist/index228.js +0 -6
  158. package/dist/index251.js +0 -4
  159. package/dist/index253.js +0 -5
  160. package/dist/index263.js +0 -283
  161. package/dist/index281.js +0 -6
  162. package/dist/index289.js +0 -9
  163. /package/dist/{index326.js → index329.js} +0 -0
package/dist/index111.js CHANGED
@@ -1,29 +1,33 @@
1
- import { defineComponent as re, mergeModels as P, ref as ue, computed as k, toRef as A, useModel as Q, watch as U, reactive as pe, openBlock as n, createBlock as W, resolveDynamicComponent as fe, normalizeClass as r, unref as i, withCtx as me, createElementBlock as d, toDisplayString as u, createCommentVNode as C, createElementVNode as o, renderSlot as p, isRef as ye, Fragment as T, renderList as V, createVNode as G, createTextVNode as he, mergeProps as ke } from "vue";
2
- import { add as ve } from "./index301.js";
3
- import { clamp as _e } from "./index206.js";
4
- import { isNil as K } from "./index251.js";
5
- import { useId as Ce } from "./index8.js";
6
- import { useItemValue as ge } from "./index261.js";
7
- import { when as we } from "./index225.js";
8
- import X from "./index17.js";
1
+ import { defineComponent as me, mergeModels as G, ref as fe, computed as k, toRef as z, useModel as J, watch as K, reactive as ye, openBlock as n, createBlock as Q, resolveDynamicComponent as he, normalizeClass as r, unref as i, withCtx as ve, createElementBlock as d, toDisplayString as u, createCommentVNode as g, createElementVNode as o, renderSlot as p, isRef as ke, Fragment as V, renderList as B, createVNode as X, createTextVNode as _e, mergeProps as ge } from "vue";
2
+ import { add as Ce } from "./index308.js";
3
+ import { clamp as we } from "./index205.js";
4
+ import { isNil as Y } from "./index255.js";
5
+ import { useId as Ve } from "./index8.js";
6
+ import { useItemValue as Be } from "./index287.js";
7
+ import { when as Te } from "./index244.js";
8
+ import Z from "./index17.js";
9
9
  /* empty css */
10
- import Te from "./index31.js";
10
+ import $e from "./index31.js";
11
11
  /* empty css */
12
- import { useOptions as Ve } from "./index230.js";
13
- import { hash as Y } from "./index213.js";
14
- const $e = {
12
+ import { hash as ee } from "./index213.js";
13
+ import { useItemsGetter as Se } from "./index237.js";
14
+ import { usePrefill as Ie } from "./index242.js";
15
+ import { useIndexById as Ne } from "./index238.js";
16
+ import { useBaseOptions as Ae } from "./index239.js";
17
+ import { useHashedWatcher as He } from "./index241.js";
18
+ const Le = {
15
19
  key: 0,
16
20
  class: "sr-only"
17
- }, Be = { class: "bb-table-header-row" }, Ne = { class: "bb-table-header__content" }, Se = { class: "bb-table-check__label-text sr-only" }, Ae = {
21
+ }, De = { class: "bb-table-header-row" }, xe = { class: "bb-table-header__content" }, Re = { class: "bb-table-check__label-text sr-only" }, ze = {
18
22
  key: 1,
19
23
  class: "bb-table-radio__label-text sr-only"
20
- }, De = { class: "bb-table-header__content" }, Le = { class: "bb-table-header__content sr-only" }, Ie = { class: "bb-table-loading__row" }, Re = ["colspan"], He = { class: "bb-table-loading__text sr-only" }, ze = {
24
+ }, Me = { class: "bb-table-header__content" }, Oe = { class: "bb-table-header__content sr-only" }, je = { class: "bb-table-loading__row" }, qe = ["colspan"], Ee = { class: "bb-table-loading__text sr-only" }, Fe = {
21
25
  class: "bb-table-skeleton__container",
22
26
  role: "status"
23
- }, Me = { class: "bb-table-no-data__row" }, xe = ["colspan"], Oe = { class: "bb-table-no-data__text" }, qe = ["onClick", "onContextmenu", "onDblclick"], Ee = { class: "bb-table-check__label-text sr-only" }, Fe = { class: "bb-table-radio__label-text sr-only" }, tl = /* @__PURE__ */ re({
27
+ }, Pe = { class: "bb-table-no-data__row" }, Ue = ["colspan"], We = { class: "bb-table-no-data__text" }, Ge = ["onClick", "onContextmenu", "onDblclick"], Je = { class: "bb-table-check__label-text sr-only" }, Ke = { class: "bb-table-radio__label-text sr-only" }, pl = /* @__PURE__ */ me({
24
28
  __name: "BbTable",
25
- props: /* @__PURE__ */ P({
26
- accessibleLabel: { type: Function, default: (g) => ["Seleziona"].concat(g.map((D) => D.content)).join(" ") },
29
+ props: /* @__PURE__ */ G({
30
+ accessibleLabel: { type: Function, default: (C) => ["Seleziona"].concat(C.map((N) => N.content)).join(" ") },
27
31
  actions: { type: Boolean },
28
32
  actionsText: { default: "Azioni" },
29
33
  align: { default: "left" },
@@ -62,9 +66,9 @@ const $e = {
62
66
  },
63
67
  "unselected-itemsModifiers": {}
64
68
  }),
65
- emits: /* @__PURE__ */ P(["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"], ["update:select-all", "update:unselected-items"]),
66
- setup(g, { emit: D }) {
67
- const { getItemValue: Z } = ge(), M = Ce().id.value, t = g, v = D, $ = ue(), ee = t.accessibleLabel, le = t.loadingText, te = t.noDataText, x = t.selectText, ae = k(() => t.selectable ? "fieldset" : "div"), O = k(() => t.loading || ne.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
69
+ emits: /* @__PURE__ */ G(["click:row", "contextmenu:row", "dblclick:row", "update:modelValue", "update:selectAll", "item:selected", "item:unselected"], ["update:select-all", "update:unselected-items"]),
70
+ setup(C, { emit: N }) {
71
+ const { getItemValue: le } = Be(), M = Ve().id.value, t = C, m = N, T = fe(), te = t.accessibleLabel, ae = t.loadingText, se = t.noDataText, O = t.selectText, oe = k(() => t.selectable ? "fieldset" : "div"), j = k(() => t.loading || ne.value), q = k(() => [!!t.selectable, !!t.actions].reduce(
68
72
  (e, s) => e + +!!s,
69
73
  t.columns.length
70
74
  )), E = k(
@@ -75,69 +79,93 @@ const $e = {
75
79
  },
76
80
  {}
77
81
  )
78
- ), { options: B, selectOption: se, unselectOption: oe, internalItems: F, innerLoading: ne } = Ve({
79
- emit: v,
82
+ ), {
83
+ getter: F,
84
+ items: A,
85
+ loading: ne
86
+ } = Se({
87
+ items: z(t, "items")
88
+ }), { hasPrefilled: de } = Ie({
89
+ onStart: !0,
90
+ currentValue: t.modelValue,
91
+ multiple: t.multiple,
92
+ fn: async ({ prefill: e }) => {
93
+ await F(e, t.modelValue);
94
+ }
95
+ }), { data: P } = Ne({
96
+ items: z(t, "modelValue")
97
+ }), { options: $ } = Ae({
98
+ disabled: z(t, "disabled"),
99
+ items: A,
80
100
  itemText: void 0,
81
101
  itemValue: t.itemValue,
82
102
  max: t.max,
83
- modelValue: A(t, "modelValue"),
84
- multiple: t.multiple,
85
- resetQueryOnOptionSelected: !1,
86
- stash: !1,
87
- items: A(t, "items"),
88
- enforceCoherence: !1,
89
- prefill: !0,
90
- modelValueDebounceTime: 0,
91
- dependencies: A(t, "dependencies"),
92
- depsDebounceTime: t.depsDebounceTime,
93
- queryDebounceTime: 0,
94
- disabled: A(t, "disabled")
95
- }), de = k(
103
+ selectable: !0,
104
+ selectedIndexedByHash: P
105
+ }), ce = async (e) => {
106
+ t.multiple ? m("update:modelValue", t.modelValue.concat(e.value)) : m("update:modelValue", e.value);
107
+ }, ie = async (e) => {
108
+ if (t.multiple) {
109
+ const s = { ...P.value };
110
+ delete s[e.valueHash], m("update:modelValue", Object.values(s));
111
+ } else
112
+ m("update:modelValue", null);
113
+ };
114
+ He(
115
+ () => [t.dependencies, t.items],
116
+ async () => {
117
+ de.value && await F(!1, t.modelValue);
118
+ },
119
+ {
120
+ debounce: t.depsDebounceTime
121
+ }
122
+ );
123
+ const be = k(
96
124
  () => t.columns.map((e) => {
97
- const s = e.align || "left", { label: l, key: f } = e, R = `header:${E.value[e.key]}`;
125
+ const s = e.align || "left", { label: l, key: f } = e, D = `header:${E.value[e.key]}`;
98
126
  let a = [`bb-table-header--${s}`];
99
127
  return t.thClass && (a = a.concat(t.thClass)), e.thClass && (a = a.concat(e.thClass)), {
100
128
  align: s,
101
129
  key: f,
102
130
  label: l,
103
- slotName: R,
131
+ slotName: D,
104
132
  classes: a
105
133
  };
106
134
  })
107
- ), L = k(() => B.value.map((e) => {
135
+ ), H = k(() => $.value.map((e) => {
108
136
  let s = !t.selectable;
109
137
  typeof t.selectable == "function" && (s = !t.selectable(e.item)), s = s || !!e.disabled;
110
138
  const l = t.columns.map((a) => {
111
- const c = E.value[a.key], h = a.align || "left", { label: S, key: H } = a;
112
- let m = Z(e.item, a.key);
139
+ const c = E.value[a.key], v = a.align || "left", { label: I, key: x } = a;
140
+ let y = le(e.item, a.key);
113
141
  a.formatter && // By default the formatter runs anyway
114
- (!K(m) || a.formatOnNull !== !1) && (m = a.formatter(m, a.key, e.item)), a.placeholder && K(m) && (m = a.placeholder);
115
- let b = [`bb-table-data__cell--${h}`];
142
+ (!Y(y) || a.formatOnNull !== !1) && (y = a.formatter(y, a.key, e.item)), a.placeholder && Y(y) && (y = a.placeholder);
143
+ let b = [`bb-table-data__cell--${v}`];
116
144
  if (t.tdClass)
117
145
  if (typeof t.tdClass == "function") {
118
- let _ = t.tdClass(m, a.key, e.item);
146
+ let _ = t.tdClass(y, a.key, e.item);
119
147
  _ && (b = b.concat(_));
120
148
  } else b = b.concat(t.tdClass);
121
149
  if (a.tdClass)
122
150
  if (typeof a.tdClass == "function") {
123
- let _ = a.tdClass(m, a.key, e.item);
151
+ let _ = a.tdClass(y, a.key, e.item);
124
152
  _ && (b = b.concat(_));
125
153
  } else b = b.concat(a.tdClass);
126
154
  return {
127
- align: h,
155
+ align: v,
128
156
  classes: b,
129
- content: m,
130
- key: H,
131
- label: S,
157
+ content: y,
158
+ key: x,
159
+ label: I,
132
160
  slotName: c
133
161
  };
134
162
  });
135
163
  return {
136
- accessibleLabel: ee(l, e.item),
164
+ accessibleLabel: te(l, e.item),
137
165
  cols: l,
138
- onRowClick: (a) => v("click:row", a, e, !!e.selected),
139
- onRowContextMenu: (a) => v("contextmenu:row", a, e, !!e.selected),
140
- onRowDblClick: (a) => v("dblclick:row", a, e, !!e.selected),
166
+ onRowClick: (a) => m("click:row", a, e, !!e.selected),
167
+ onRowContextMenu: (a) => m("contextmenu:row", a, e, !!e.selected),
168
+ onRowDblClick: (a) => m("dblclick:row", a, e, !!e.selected),
141
169
  item: e.item,
142
170
  text: e.text,
143
171
  valueHash: e.valueHash,
@@ -146,54 +174,54 @@ const $e = {
146
174
  disabled: s
147
175
  };
148
176
  }));
149
- let y = Q(g, "select-all");
150
- U(y, () => {
151
- w.clear(), N.value = [], v("update:modelValue", []);
177
+ let h = J(C, "select-all");
178
+ K(h, () => {
179
+ w.clear(), S.value = [], m("update:modelValue", []);
152
180
  });
153
- const j = k(() => {
181
+ const U = k(() => {
154
182
  var e;
155
- return (e = t.modelValue) != null && e.length ? L.value.some((s) => !s.selected) : !!(y.value && w.size);
156
- }), w = pe(/* @__PURE__ */ new Set()), N = Q(g, "unselected-items"), J = (e) => {
157
- I(e) ? (oe(e), v("item:unselected", e.value), w.add(e.valueHash), N.value.push(e.value)) : (y.value || se(e), v("item:selected", e.value), w.delete(e.valueHash), N.value = N.value.filter(
158
- (s) => Y(s) !== Y(e.value)
183
+ return (e = t.modelValue) != null && e.length ? H.value.some((s) => !s.selected) : !!(h.value && w.size);
184
+ }), w = ye(/* @__PURE__ */ new Set()), S = J(C, "unselected-items"), W = (e) => {
185
+ L(e) ? (ie(e), m("item:unselected", e.value), w.add(e.valueHash), S.value.push(e.value)) : (h.value || ce(e), m("item:selected", e.value), w.delete(e.valueHash), S.value = S.value.filter(
186
+ (s) => ee(s) !== ee(e.value)
159
187
  ));
160
- }, I = (e) => w.has(e.valueHash) ? !1 : e.selected || y.value, ce = we(
188
+ }, L = (e) => w.has(e.valueHash) ? !1 : e.selected || h.value, re = Te(
161
189
  (e) => typeof e != "string",
162
190
  JSON.stringify
163
- ), ie = k(() => [].concat(t.modelValue).map((e) => {
164
- const s = ce(e);
191
+ ), ue = k(() => [].concat(t.modelValue).map((e) => {
192
+ const s = re(e);
165
193
  return {
166
194
  disabled: t.disabled,
167
195
  name: t.name,
168
196
  type: "hidden",
169
197
  value: s
170
198
  };
171
- })), be = k(() => _e(B.value.length, 4, 10));
172
- return U(
173
- () => L.value,
199
+ })), pe = k(() => we($.value.length, 4, 10));
200
+ return K(
201
+ () => H.value,
174
202
  () => {
175
203
  var e;
176
- if (t.fixedColumns.length && t.items && $.value) {
204
+ if (t.fixedColumns.length && t.items && T.value) {
177
205
  const s = Array.from(
178
- $.value.querySelectorAll("thead th")
206
+ T.value.querySelectorAll("thead th")
179
207
  ), l = t.fixedColumns.reduce((a, c) => {
180
- const h = typeof c == "number" ? c : c.index, S = typeof c == "number" ? "left" : c.position, H = s[h].getBoundingClientRect(), m = Math.floor(H.width), b = a.filter((z) => z.position === S).map((z) => z.width).reduce(ve, 0), _ = {
181
- index: h,
182
- position: S,
183
- width: m,
208
+ const v = typeof c == "number" ? c : c.index, I = typeof c == "number" ? "left" : c.position, x = s[v].getBoundingClientRect(), y = Math.floor(x.width), b = a.filter((R) => R.position === I).map((R) => R.width).reduce(Ce, 0), _ = {
209
+ index: v,
210
+ position: I,
211
+ width: y,
184
212
  offset: b
185
213
  };
186
214
  return a.push(_), a;
187
215
  }, []);
188
- Array.from((e = $.value) == null ? void 0 : e.querySelectorAll("tr")).map(
216
+ Array.from((e = T.value) == null ? void 0 : e.querySelectorAll("tr")).map(
189
217
  (a) => Array.from(
190
218
  a.querySelectorAll(
191
219
  l.map((c) => `:scope > :nth-child(${c.index + 1})`).join(", ")
192
220
  )
193
221
  )
194
222
  ).forEach((a) => {
195
- a.forEach((c, h) => {
196
- c.style.position = "sticky", l[h].position === "left" ? c.style.left = `${l[h].offset}px` : c.style.right = `${l[h].offset}px`;
223
+ a.forEach((c, v) => {
224
+ c.style.position = "sticky", l[v].position === "left" ? c.style.left = `${l[v].offset}px` : c.style.right = `${l[v].offset}px`;
197
225
  });
198
226
  });
199
227
  }
@@ -201,22 +229,22 @@ const $e = {
201
229
  {
202
230
  flush: "post"
203
231
  }
204
- ), (e, s) => (n(), W(fe(ae.value), {
232
+ ), (e, s) => (n(), Q(he(oe.value), {
205
233
  ref_key: "container",
206
- ref: $,
234
+ ref: T,
207
235
  class: r({
208
236
  "bb-table": !0,
209
237
  [`bb-table--align-${e.align}`]: !0,
210
238
  "bb-table--compact": e.compact,
211
239
  "bb-table--fixed": e.fixed,
212
240
  "bb-table--fixed-header": e.fixedHeaders,
213
- "bb-table--loading": O.value,
214
- "bb-table--empty": !i(B).length,
241
+ "bb-table--loading": j.value,
242
+ "bb-table--empty": !i($).length,
215
243
  "bb-table--selectable": e.selectable
216
244
  })
217
245
  }, {
218
- default: me(() => [
219
- e.selectable ? (n(), d("legend", $e, u(e.legend), 1)) : C("", !0),
246
+ default: ve(() => [
247
+ e.selectable ? (n(), d("legend", Le, u(e.legend), 1)) : g("", !0),
220
248
  o("table", null, [
221
249
  e.caption ? (n(), d("caption", {
222
250
  key: 0,
@@ -224,10 +252,10 @@ const $e = {
224
252
  "bb-table-caption": !0,
225
253
  "sr-only": !e.displayCaption
226
254
  })
227
- }, u(e.caption), 3)) : C("", !0),
255
+ }, u(e.caption), 3)) : g("", !0),
228
256
  o("thead", null, [
229
257
  p(e.$slots, "thead", {}, () => [
230
- o("tr", Be, [
258
+ o("tr", De, [
231
259
  e.selectable ? (n(), d("th", {
232
260
  key: 0,
233
261
  class: r(["bb-table-header bb-table-header--select", e.thClass]),
@@ -235,32 +263,32 @@ const $e = {
235
263
  }, [
236
264
  p(e.$slots, "header:select", {
237
265
  multiple: e.multiple,
238
- selectAll: !!i(y),
239
- text: i(x)
266
+ selectAll: !!i(h),
267
+ text: i(O)
240
268
  }, () => [
241
- o("span", Ne, [
269
+ o("span", xe, [
242
270
  e.allowSelectAll && e.multiple ? (n(), d("label", {
243
271
  key: 0,
244
272
  class: r(["bb-table-check__label", {
245
273
  "bb-table-check__label--disabled": e.disabled
246
274
  }])
247
275
  }, [
248
- (n(), W(X, {
249
- key: j.value.toString(),
250
- modelValue: i(y),
251
- "onUpdate:modelValue": s[0] || (s[0] = (l) => ye(y) ? y.value = l : y = l),
276
+ (n(), Q(Z, {
277
+ key: U.value.toString(),
278
+ modelValue: i(h),
279
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => ke(h) ? h.value = l : h = l),
252
280
  class: "bb-table-check",
253
281
  disabled: e.disabled,
254
- indeterminate: j.value,
282
+ indeterminate: U.value,
255
283
  name: `select_all_${e.name || ""}`,
256
284
  readonly: e.readonly
257
285
  }, null, 8, ["modelValue", "disabled", "indeterminate", "name", "readonly"])),
258
- o("span", Se, u(e.selectAllLabel), 1)
259
- ], 2)) : e.multiple ? C("", !0) : (n(), d("span", Ae, u(i(x)), 1))
286
+ o("span", Re, u(e.selectAllLabel), 1)
287
+ ], 2)) : e.multiple ? g("", !0) : (n(), d("span", ze, u(i(O)), 1))
260
288
  ])
261
289
  ])
262
- ], 2)) : C("", !0),
263
- (n(!0), d(T, null, V(de.value, (l) => (n(), d("th", {
290
+ ], 2)) : g("", !0),
291
+ (n(!0), d(V, null, B(be.value, (l) => (n(), d("th", {
264
292
  key: l.key,
265
293
  class: r(["bb-table-header", l.classes]),
266
294
  scope: "col"
@@ -268,10 +296,10 @@ const $e = {
268
296
  p(e.$slots, l.slotName, {
269
297
  classes: l.classes,
270
298
  item: void 0,
271
- items: i(F),
299
+ items: i(A),
272
300
  label: l.label
273
301
  }, () => [
274
- o("span", De, u(l.label), 1)
302
+ o("span", Me, u(l.label), 1)
275
303
  ])
276
304
  ], 2))), 128)),
277
305
  e.actions ? (n(), d("th", {
@@ -280,25 +308,25 @@ const $e = {
280
308
  scope: "col"
281
309
  }, [
282
310
  p(e.$slots, "header:actions", { text: e.actionsText }, () => [
283
- o("span", Le, u(e.actionsText), 1)
311
+ o("span", Oe, u(e.actionsText), 1)
284
312
  ])
285
- ], 2)) : C("", !0)
313
+ ], 2)) : g("", !0)
286
314
  ])
287
315
  ])
288
316
  ]),
289
317
  o("tbody", null, [
290
- O.value ? p(e.$slots, "loading", {
318
+ j.value ? p(e.$slots, "loading", {
291
319
  key: 0,
292
- items: i(F)
320
+ items: i(A)
293
321
  }, () => [
294
- o("tr", Ie, [
322
+ o("tr", je, [
295
323
  o("td", {
296
324
  class: "bb-table-loading__cell",
297
325
  colspan: q.value
298
326
  }, [
299
- o("span", He, u(i(le)), 1),
300
- o("div", ze, [
301
- (n(!0), d(T, null, V(be.value, (l) => (n(), d("div", {
327
+ o("span", Ee, u(i(ae)), 1),
328
+ o("div", Fe, [
329
+ (n(!0), d(V, null, B(pe.value, (l) => (n(), d("div", {
302
330
  key: l,
303
331
  class: "bb-table-skeleton-item"
304
332
  }, s[1] || (s[1] = [
@@ -311,10 +339,10 @@ const $e = {
311
339
  ], -1)
312
340
  ])))), 128))
313
341
  ])
314
- ], 8, Re)
342
+ ], 8, qe)
315
343
  ])
316
- ]) : i(B).length ? p(e.$slots, "tbody", { key: 2 }, () => [
317
- (n(!0), d(T, null, V(L.value, (l) => (n(), d("tr", {
344
+ ]) : i($).length ? p(e.$slots, "tbody", { key: 2 }, () => [
345
+ (n(!0), d(V, null, B(H.value, (l) => (n(), d("tr", {
318
346
  key: l.valueHash,
319
347
  class: "bb-table-data__row",
320
348
  onClick: l.onRowClick,
@@ -326,7 +354,7 @@ const $e = {
326
354
  class: r(["bb-table-data__cell bb-table-data__cell--select", e.tdClass])
327
355
  }, [
328
356
  p(e.$slots, "select", {
329
- checked: I(l),
357
+ checked: L(l),
330
358
  disabled: !!l.disabled,
331
359
  inputName: i(M),
332
360
  item: l.item,
@@ -339,34 +367,34 @@ const $e = {
339
367
  "bb-table-check__label--disabled": l.disabled
340
368
  }])
341
369
  }, [
342
- G(X, {
343
- checked: I(l),
370
+ X(Z, {
371
+ checked: L(l),
344
372
  class: "bb-table-check",
345
373
  disabled: l.disabled,
346
374
  readonly: e.readonly,
347
- onChange: () => J(l)
375
+ onChange: () => W(l)
348
376
  }, null, 8, ["checked", "disabled", "readonly", "onChange"]),
349
- o("span", Ee, u(l.accessibleLabel), 1)
377
+ o("span", Je, u(l.accessibleLabel), 1)
350
378
  ], 2)) : (n(), d("label", {
351
379
  key: 1,
352
380
  class: r(["bb-table-radio__label", {
353
381
  "bb-table-radio__label--disabled": l.disabled
354
382
  }])
355
383
  }, [
356
- G(Te, {
384
+ X($e, {
357
385
  checked: l.selected,
358
386
  class: "bb-table-radio",
359
387
  disabled: l.disabled,
360
388
  name: i(M),
361
389
  readonly: e.readonly,
362
390
  value: l.value,
363
- onChange: () => J(l)
391
+ onChange: () => W(l)
364
392
  }, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
365
- o("span", Fe, u(l.accessibleLabel), 1)
393
+ o("span", Ke, u(l.accessibleLabel), 1)
366
394
  ], 2))
367
395
  ])
368
- ], 2)) : C("", !0),
369
- (n(!0), d(T, null, V(l.cols, (f) => (n(), d("td", {
396
+ ], 2)) : g("", !0),
397
+ (n(!0), d(V, null, B(l.cols, (f) => (n(), d("td", {
370
398
  key: f.key,
371
399
  class: r(["bb-table-data__cell", f.classes])
372
400
  }, [
@@ -376,7 +404,7 @@ const $e = {
376
404
  item: l.item,
377
405
  value: l.value
378
406
  }, () => [
379
- he(u(f.content), 1)
407
+ _e(u(f.content), 1)
380
408
  ])
381
409
  ], 2))), 128)),
382
410
  e.actions ? (n(), d("td", {
@@ -387,16 +415,16 @@ const $e = {
387
415
  item: l.item,
388
416
  value: l.value
389
417
  })
390
- ], 2)) : C("", !0)
391
- ], 40, qe))), 128))
418
+ ], 2)) : g("", !0)
419
+ ], 40, Ge))), 128))
392
420
  ]) : p(e.$slots, "no-data", { key: 1 }, () => [
393
- o("tr", Me, [
421
+ o("tr", Pe, [
394
422
  o("td", {
395
423
  class: "bb-table-no-data__cell",
396
424
  colspan: q.value
397
425
  }, [
398
- o("span", Oe, u(i(te)), 1)
399
- ], 8, xe)
426
+ o("span", We, u(i(se)), 1)
427
+ ], 8, Ue)
400
428
  ])
401
429
  ])
402
430
  ]),
@@ -404,7 +432,7 @@ const $e = {
404
432
  p(e.$slots, "tfoot")
405
433
  ])
406
434
  ]),
407
- (n(!0), d(T, null, V(ie.value, (l) => (n(), d("input", ke({
435
+ (n(!0), d(V, null, B(ue.value, (l) => (n(), d("input", ge({
408
436
  key: l.value,
409
437
  ref_for: !0
410
438
  }, l), null, 16))), 128))
@@ -414,5 +442,5 @@ const $e = {
414
442
  }
415
443
  });
416
444
  export {
417
- tl as default
445
+ pl as default
418
446
  };
package/dist/index119.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { state as k, useToast as b } from "./index11.js";
3
- import C from "./index240.js";
4
- import B from "./index305.js";
3
+ import C from "./index231.js";
4
+ import B from "./index309.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index121.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as N, ref as a, watch as V, computed as H, openBlock as B, createElementBlock as z, mergeProps as I, createElementVNode as p, renderSlot as C, normalizeProps as R, guardReactiveProps as S, unref as c, createVNode as U, withCtx as E, createBlock as W, createCommentVNode as j } from "vue";
2
- import { useFloating as q, arrow as A } from "./index234.js";
2
+ import { useFloating as q, arrow as A } from "./index221.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { wait as _ } from "./index130.js";
5
5
  import J from "./index13.js";
6
6
  /* empty css */
7
- import { throttle as m } from "./index242.js";
8
- import { waitFor as K } from "./index238.js";
9
- import Q from "./index256.js";
7
+ import { throttle as m } from "./index246.js";
8
+ import { waitFor as K } from "./index226.js";
9
+ import Q from "./index262.js";
10
10
  /* empty css */
11
- import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index241.js";
11
+ import { autoUpdate as X, flip as Y, shift as Z, hide as x } from "./index232.js";
12
12
  const pe = /* @__PURE__ */ N({
13
13
  __name: "BbTooltip",
14
14
  props: {
package/dist/index123.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 "./index306.js";
2
+ import { flattenTree as T } from "./index307.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index127.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index224.js";
2
+ import { isCssColor as I } from "./index243.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index128.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index242.js";
2
+ import { throttle as g } from "./index246.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index129.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index224.js";
2
+ import { isCssColor as u } from "./index243.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {