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