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.
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +0 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
- package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
- package/dist/components/ListBox.vue.d.ts +0 -2
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/it.d.ts +45 -0
- package/dist/index100.js +9 -9
- package/dist/index111.js +109 -108
- package/dist/index119.js +2 -2
- package/dist/index121.js +55 -54
- package/dist/index123.js +1 -1
- package/dist/index125.js +14 -13
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +36 -35
- package/dist/index17.js +3 -3
- package/dist/index19.js +63 -64
- package/dist/index205.js +2 -115
- package/dist/index206.js +86 -2
- package/dist/index208.js +25 -4
- package/dist/index209.js +17 -2
- package/dist/index21.js +110 -103
- package/dist/index210.js +46 -279
- package/dist/index211.js +15 -16
- package/dist/index212.js +3 -16
- package/dist/index213.js +12 -19
- package/dist/index214.js +16 -19
- package/dist/index215.js +2 -27
- package/dist/index216.js +4 -3
- package/dist/index217.js +2 -2
- package/dist/index219.js +3 -250
- package/dist/index220.js +41 -52
- package/dist/index221.js +5 -43
- package/dist/index222.js +7 -5
- package/dist/index223.js +10 -58
- package/dist/index224.js +12 -83
- package/dist/index225.js +55 -0
- package/dist/index227.js +13 -25
- package/dist/index228.js +5 -17
- package/dist/index229.js +15 -47
- package/dist/index23.js +127 -119
- package/dist/index230.js +16 -15
- package/dist/index231.js +19 -12
- package/dist/index232.js +15 -16
- package/dist/index233.js +19 -3
- package/dist/index234.js +26 -40
- package/dist/index235.js +2 -6
- package/dist/index236.js +250 -7
- package/dist/index237.js +50 -10
- package/dist/index238.js +39 -48
- package/dist/index239.js +7 -0
- package/dist/index240.js +60 -13
- package/dist/index241.js +20 -3
- package/dist/index242.js +3 -125
- package/dist/index243.js +123 -122
- package/dist/index244.js +125 -2
- package/dist/index245.js +2 -20
- package/dist/index246.js +2 -2
- package/dist/index247.js +2 -2
- package/dist/index248.js +114 -3
- package/dist/index249.js +3 -2
- package/dist/index25.js +44 -41
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +105 -17
- package/dist/{index255.js → index254.js} +2 -2
- package/dist/index256.js +14 -0
- package/dist/index257.js +2 -12
- package/dist/index258.js +2 -10
- package/dist/index259.js +9 -2
- package/dist/index260.js +3 -6
- package/dist/index261.js +3 -16
- package/dist/index262.js +17 -9
- package/dist/index263.js +8 -8
- package/dist/index264.js +28 -23
- package/dist/index265.js +4 -89
- package/dist/index266.js +433 -0
- package/dist/index267.js +2 -4
- package/dist/index268.js +88 -5
- package/dist/index269.js +7 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +11 -2
- package/dist/index271.js +3 -2
- package/dist/index273.js +7 -2
- package/dist/index274.js +200 -2
- package/dist/index275.js +281 -2
- package/dist/index276.js +6 -2
- package/dist/index277.js +2 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +2 -28
- package/dist/index280.js +2 -22
- package/dist/index282.js +2 -7
- package/dist/index283.js +2 -3
- package/dist/index284.js +2 -7
- package/dist/index285.js +2 -11
- package/dist/index286.js +2 -17
- package/dist/index287.js +2 -9
- package/dist/index288.js +20 -429
- package/dist/index29.js +3 -3
- package/dist/index290.js +8 -88
- package/dist/index291.js +23 -3
- package/dist/index292.js +91 -0
- package/dist/index294.js +171 -195
- package/dist/index297.js +22 -176
- package/dist/index299.js +11 -0
- package/dist/index300.js +6 -8
- package/dist/index301.js +15 -435
- package/dist/index302.js +8 -127
- package/dist/index303.js +224 -3
- package/dist/index304.js +436 -3
- package/dist/index305.js +126 -212
- package/dist/index306.js +3 -3
- package/dist/index307.js +3 -3
- package/dist/index308.js +212 -56
- package/dist/index309.js +67 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -19
- package/dist/index311.js +5 -66
- package/dist/index312.js +4 -6
- package/dist/index313.js +8 -2
- package/dist/index314.js +6 -4
- package/dist/index315.js +18 -7
- package/dist/index316.js +45 -0
- package/dist/index317.js +47 -2
- package/dist/index318.js +7 -5
- package/dist/index319.js +32 -2
- package/dist/index321.js +2 -32
- package/dist/index322.js +3 -47
- package/dist/index323.js +3 -2
- package/dist/index324.js +49 -471
- package/dist/index325.js +49 -0
- package/dist/index326.js +2 -424
- package/dist/index327.js +479 -46
- package/dist/index329.js +426 -0
- package/dist/index33.js +45 -45
- package/dist/index330.js +49 -0
- package/dist/index35.js +56 -55
- package/dist/index37.js +166 -165
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +70 -71
- package/dist/index45.js +7 -7
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +28 -27
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +32 -31
- package/dist/index75.js +3 -3
- package/dist/index77.js +87 -86
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +45 -44
- package/dist/index86.js +67 -66
- package/dist/index88.js +69 -67
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/index207.js +0 -4
- package/dist/index226.js +0 -10
- package/dist/index253.js +0 -108
- package/dist/index289.js +0 -4
- package/dist/index293.js +0 -226
- package/dist/index298.js +0 -24
- /package/dist/{index272.js → index281.js} +0 -0
- /package/dist/{index328.js → index331.js} +0 -0
package/dist/index111.js
CHANGED
@@ -1,33 +1,34 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { add as
|
3
|
-
import { clamp as
|
4
|
-
import { isNil as
|
5
|
-
import { useId as
|
6
|
-
import { useItemValue as
|
7
|
-
import { when as
|
8
|
-
import
|
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
|
10
|
+
import Be from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import { hash as
|
13
|
-
import { useItemsGetter as
|
14
|
-
import { usePrefill as
|
15
|
-
import { useIndexById as
|
16
|
-
import { useBaseOptions as
|
17
|
-
import { useHashedWatcher as
|
18
|
-
|
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
|
-
},
|
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
|
-
},
|
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
|
-
},
|
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__ */
|
30
|
-
accessibleLabel: {
|
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: {
|
50
|
+
loadingText: {},
|
50
51
|
max: { default: 1 / 0 },
|
51
52
|
modelValue: { default: () => [] },
|
52
53
|
multiple: { type: Boolean, default: !0 },
|
53
54
|
name: {},
|
54
|
-
noDataText: {
|
55
|
+
noDataText: {},
|
55
56
|
readonly: { type: Boolean },
|
56
57
|
selectable: { type: [Boolean, Function] },
|
57
|
-
selectAllLabel: {
|
58
|
-
selectText: {
|
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__ */
|
70
|
-
setup(
|
71
|
-
const { getItemValue: le } =
|
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
|
-
)),
|
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:
|
84
|
-
items:
|
85
|
-
loading:
|
86
|
-
} =
|
87
|
-
items:
|
88
|
-
}), { hasPrefilled:
|
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
|
94
|
+
await z(e, t.modelValue);
|
94
95
|
}
|
95
|
-
}), { data:
|
96
|
-
items:
|
97
|
-
}), { options: $ } =
|
98
|
-
disabled:
|
99
|
-
items:
|
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:
|
105
|
-
}),
|
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
|
-
},
|
108
|
+
}, de = async (e) => {
|
108
109
|
if (t.multiple) {
|
109
|
-
const s = { ...
|
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
|
-
|
115
|
+
Ne(
|
115
116
|
() => [t.dependencies, t.items],
|
116
117
|
async () => {
|
117
|
-
|
118
|
+
oe.value && await z(!1, t.modelValue);
|
118
119
|
},
|
119
120
|
{
|
120
121
|
debounce: t.depsDebounceTime
|
121
122
|
}
|
122
123
|
);
|
123
|
-
const
|
124
|
+
const ce = k(
|
124
125
|
() => t.columns.map((e) => {
|
125
|
-
const s = e.align || "left", { label: l, key: f } = e, D = `header:${
|
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
|
-
),
|
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 =
|
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
|
-
(!
|
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:
|
159
|
+
key: R,
|
159
160
|
label: I,
|
160
161
|
slotName: c
|
161
162
|
};
|
162
163
|
});
|
163
164
|
return {
|
164
|
-
accessibleLabel: te(l
|
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 =
|
178
|
-
|
179
|
-
w.clear(),
|
178
|
+
let h = G(N, "select-all");
|
179
|
+
J(h, () => {
|
180
|
+
w.clear(), A.value = [], m("update:modelValue", []);
|
180
181
|
});
|
181
|
-
const
|
182
|
+
const P = k(() => {
|
182
183
|
var e;
|
183
|
-
return (e = t.modelValue) != null && e.length ?
|
184
|
-
}), w =
|
185
|
-
|
186
|
-
(s) =>
|
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
|
-
},
|
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
|
-
),
|
192
|
-
const s =
|
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
|
-
})),
|
200
|
-
return
|
201
|
-
() =>
|
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,
|
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(),
|
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:
|
247
|
-
e.selectable ? (n(), d("legend",
|
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",
|
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(
|
268
|
+
text: e.selectText || i(C)("table.selectText").value
|
268
269
|
}, () => [
|
269
|
-
o("span",
|
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(),
|
277
|
-
key:
|
277
|
+
(n(), K(Y, {
|
278
|
+
key: P.value.toString(),
|
278
279
|
modelValue: i(h),
|
279
|
-
"onUpdate:modelValue": s[0] || (s[0] = (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:
|
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",
|
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(
|
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(
|
300
|
+
items: i(L),
|
300
301
|
label: l.label
|
301
302
|
}, () => [
|
302
|
-
o("span",
|
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(
|
321
|
+
items: i(L)
|
321
322
|
}, () => [
|
322
323
|
o("tr", je, [
|
323
324
|
o("td", {
|
324
325
|
class: "bb-table-loading__cell",
|
325
|
-
colspan:
|
326
|
+
colspan: E.value
|
326
327
|
}, [
|
327
|
-
o("span",
|
328
|
-
o("div",
|
329
|
-
(n(!0), d(V, null, B(
|
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,
|
343
|
+
], 8, Ee)
|
343
344
|
])
|
344
345
|
]) : i($).length ? p(e.$slots, "tbody", { key: 2 }, () => [
|
345
|
-
(n(!0), d(V, null, B(
|
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:
|
358
|
+
checked: H(l),
|
358
359
|
disabled: !!l.disabled,
|
359
|
-
inputName: i(
|
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
|
-
|
371
|
-
checked:
|
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: () =>
|
376
|
+
onChange: () => U(l)
|
376
377
|
}, null, 8, ["checked", "disabled", "readonly", "onChange"]),
|
377
|
-
o("span",
|
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
|
-
|
385
|
+
Q(Be, {
|
385
386
|
checked: l.selected,
|
386
387
|
class: "bb-table-radio",
|
387
388
|
disabled: l.disabled,
|
388
|
-
name: i(
|
389
|
+
name: i(O),
|
389
390
|
readonly: e.readonly,
|
390
391
|
value: l.value,
|
391
|
-
onChange: () =>
|
392
|
+
onChange: () => U(l)
|
392
393
|
}, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
|
393
|
-
o("span",
|
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
|
-
|
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,
|
420
|
+
], 40, We))), 128))
|
420
421
|
]) : p(e.$slots, "no-data", { key: 1 }, () => [
|
421
|
-
o("tr",
|
422
|
+
o("tr", Fe, [
|
422
423
|
o("td", {
|
423
424
|
class: "bb-table-no-data__cell",
|
424
|
-
colspan:
|
425
|
+
colspan: E.value
|
425
426
|
}, [
|
426
|
-
o("span",
|
427
|
-
], 8,
|
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(
|
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,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 "./
|
4
|
-
import B from "./
|
3
|
+
import C from "./index223.js";
|
4
|
+
import B from "./index309.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|