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.
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +10 -16
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +109 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +2 -16
- package/dist/composables/useBaseOptions.d.ts +31 -0
- package/dist/composables/useCoherence.d.ts +20 -0
- package/dist/composables/useHashedWatcher.d.ts +2 -0
- package/dist/composables/useIndexById.d.ts +11 -0
- package/dist/composables/useItemsGetter.d.ts +12 -0
- package/dist/composables/usePrefill.d.ts +12 -0
- package/dist/index100.js +88 -60
- package/dist/index101.js +10 -13
- package/dist/index111.js +154 -126
- package/dist/index119.js +2 -2
- package/dist/index121.js +5 -5
- package/dist/index123.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +22 -22
- package/dist/index131.js +1 -1
- package/dist/index132.js +69 -65
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +126 -82
- package/dist/index205.js +2 -81
- package/dist/index206.js +115 -2
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +2 -2
- package/dist/index210.js +3 -3
- package/dist/index211.js +2 -2
- package/dist/index212.js +2 -2
- package/dist/index213.js +1 -1
- package/dist/index216.js +3 -3
- package/dist/index219.js +2 -2
- package/dist/index220.js +1 -1
- package/dist/index221.js +124 -51
- package/dist/{index235.js → index222.js} +1 -1
- package/dist/index223.js +2 -13
- package/dist/index224.js +41 -2
- package/dist/index225.js +20 -4
- package/dist/index226.js +6 -2
- package/dist/index227.js +51 -18
- package/dist/index229.js +12 -2
- package/dist/index23.js +11 -11
- package/dist/index230.js +5 -168
- package/dist/index231.js +10 -82
- package/dist/index232.js +371 -0
- package/dist/index233.js +4 -8
- package/dist/index234.js +83 -125
- package/dist/index236.js +8 -2
- package/dist/index237.js +24 -40
- package/dist/index238.js +17 -6
- package/dist/index239.js +48 -5
- package/dist/index240.js +15 -12
- package/dist/index241.js +11 -368
- package/dist/index242.js +16 -3
- package/dist/index243.js +2 -7
- package/dist/index244.js +4 -2
- package/dist/index245.js +2 -18
- package/dist/index246.js +3 -106
- package/dist/index247.js +9 -0
- package/dist/index248.js +2 -100
- package/dist/index249.js +20 -0
- package/dist/index25.js +5 -5
- package/dist/index250.js +106 -2
- package/dist/index252.js +100 -10
- package/dist/index254.js +11 -8
- package/dist/index255.js +2 -23
- package/dist/index256.js +3 -89
- package/dist/index257.js +4 -0
- package/dist/index258.js +10 -9
- package/dist/index259.js +3 -6
- package/dist/index260.js +8 -15
- package/dist/index261.js +23 -9
- package/dist/index262.js +88 -7
- package/dist/index264.js +8 -5
- package/dist/index265.js +6 -2
- package/dist/index266.js +16 -2
- package/dist/index267.js +281 -2
- package/dist/index268.js +6 -2
- package/dist/index269.js +2 -2
- package/dist/index27.js +1 -1
- package/dist/index271.js +2 -2
- package/dist/index272.js +2 -2
- package/dist/index273.js +2 -2
- package/dist/index274.js +2 -2
- package/dist/index275.js +2 -28
- package/dist/index276.js +1 -21
- package/dist/index277.js +4 -0
- package/dist/index278.js +2 -7
- package/dist/index279.js +28 -3
- package/dist/index280.js +24 -0
- package/dist/index282.js +7 -224
- package/dist/index283.js +3 -176
- package/dist/index284.js +7 -3
- package/dist/index285.js +11 -12
- package/dist/index286.js +16 -8
- package/dist/index287.js +7 -15
- package/dist/index288.js +3 -4
- package/dist/index29.js +3 -3
- package/dist/index290.js +174 -9
- package/dist/index293.js +1 -1
- package/dist/index296.js +1 -1
- package/dist/index297.js +3 -88
- package/dist/index298.js +8 -200
- package/dist/index301.js +200 -2
- package/dist/index302.js +89 -3
- package/dist/index303.js +1 -1
- package/dist/index304.js +3 -213
- package/dist/index305.js +206 -59
- package/dist/index306.js +224 -5
- package/dist/index307.js +5 -3
- package/dist/index308.js +2 -3
- package/dist/index309.js +66 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -58
- package/dist/index311.js +6 -32
- package/dist/index312.js +18 -7
- package/dist/index313.js +5 -8
- package/dist/index314.js +7 -4
- package/dist/index315.js +3 -8
- package/dist/index316.js +3 -7
- package/dist/index317.js +56 -17
- package/dist/index318.js +8 -7
- package/dist/index319.js +8 -4
- package/dist/index320.js +7 -2
- package/dist/index321.js +3 -46
- package/dist/index322.js +33 -480
- package/dist/index323.js +49 -0
- package/dist/index324.js +2 -424
- package/dist/index325.js +479 -46
- package/dist/index327.js +426 -0
- package/dist/index328.js +49 -0
- package/dist/index33.js +102 -61
- package/dist/index35.js +3 -3
- package/dist/index37.js +284 -244
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +129 -84
- package/dist/index45.js +122 -120
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +2 -2
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/composables/useOptions.d.ts +0 -43
- package/dist/index228.js +0 -6
- package/dist/index251.js +0 -4
- package/dist/index253.js +0 -5
- package/dist/index263.js +0 -283
- package/dist/index281.js +0 -6
- package/dist/index289.js +0 -9
- /package/dist/{index326.js → index329.js} +0 -0
package/dist/index111.js
CHANGED
@@ -1,29 +1,33 @@
|
|
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 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
|
10
|
+
import $e from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import {
|
13
|
-
import {
|
14
|
-
|
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
|
-
},
|
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
|
-
},
|
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
|
-
},
|
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__ */
|
26
|
-
accessibleLabel: { type: Function, default: (
|
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__ */
|
66
|
-
setup(
|
67
|
-
const { getItemValue:
|
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
|
-
), {
|
79
|
-
|
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
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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,
|
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:
|
131
|
+
slotName: D,
|
104
132
|
classes: a
|
105
133
|
};
|
106
134
|
})
|
107
|
-
),
|
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],
|
112
|
-
let
|
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
|
-
(!
|
115
|
-
let b = [`bb-table-data__cell--${
|
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(
|
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(
|
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:
|
155
|
+
align: v,
|
128
156
|
classes: b,
|
129
|
-
content:
|
130
|
-
key:
|
131
|
-
label:
|
157
|
+
content: y,
|
158
|
+
key: x,
|
159
|
+
label: I,
|
132
160
|
slotName: c
|
133
161
|
};
|
134
162
|
});
|
135
163
|
return {
|
136
|
-
accessibleLabel:
|
164
|
+
accessibleLabel: te(l, e.item),
|
137
165
|
cols: l,
|
138
|
-
onRowClick: (a) =>
|
139
|
-
onRowContextMenu: (a) =>
|
140
|
-
onRowDblClick: (a) =>
|
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
|
150
|
-
|
151
|
-
w.clear(),
|
177
|
+
let h = J(C, "select-all");
|
178
|
+
K(h, () => {
|
179
|
+
w.clear(), S.value = [], m("update:modelValue", []);
|
152
180
|
});
|
153
|
-
const
|
181
|
+
const U = k(() => {
|
154
182
|
var e;
|
155
|
-
return (e = t.modelValue) != null && e.length ?
|
156
|
-
}), w =
|
157
|
-
|
158
|
-
(s) =>
|
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
|
-
},
|
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
|
-
),
|
164
|
-
const s =
|
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
|
-
})),
|
172
|
-
return
|
173
|
-
() =>
|
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 &&
|
204
|
+
if (t.fixedColumns.length && t.items && T.value) {
|
177
205
|
const s = Array.from(
|
178
|
-
|
206
|
+
T.value.querySelectorAll("thead th")
|
179
207
|
), l = t.fixedColumns.reduce((a, c) => {
|
180
|
-
const
|
181
|
-
index:
|
182
|
-
position:
|
183
|
-
width:
|
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 =
|
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,
|
196
|
-
c.style.position = "sticky", l[
|
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(),
|
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":
|
214
|
-
"bb-table--empty": !i(
|
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:
|
219
|
-
e.selectable ? (n(), d("legend",
|
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)) :
|
255
|
+
}, u(e.caption), 3)) : g("", !0),
|
228
256
|
o("thead", null, [
|
229
257
|
p(e.$slots, "thead", {}, () => [
|
230
|
-
o("tr",
|
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(
|
239
|
-
text: i(
|
266
|
+
selectAll: !!i(h),
|
267
|
+
text: i(O)
|
240
268
|
}, () => [
|
241
|
-
o("span",
|
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(),
|
249
|
-
key:
|
250
|
-
modelValue: i(
|
251
|
-
"onUpdate:modelValue": s[0] || (s[0] = (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:
|
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",
|
259
|
-
], 2)) : e.multiple ?
|
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)) :
|
263
|
-
(n(!0), d(
|
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(
|
299
|
+
items: i(A),
|
272
300
|
label: l.label
|
273
301
|
}, () => [
|
274
|
-
o("span",
|
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",
|
311
|
+
o("span", Oe, u(e.actionsText), 1)
|
284
312
|
])
|
285
|
-
], 2)) :
|
313
|
+
], 2)) : g("", !0)
|
286
314
|
])
|
287
315
|
])
|
288
316
|
]),
|
289
317
|
o("tbody", null, [
|
290
|
-
|
318
|
+
j.value ? p(e.$slots, "loading", {
|
291
319
|
key: 0,
|
292
|
-
items: i(
|
320
|
+
items: i(A)
|
293
321
|
}, () => [
|
294
|
-
o("tr",
|
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",
|
300
|
-
o("div",
|
301
|
-
(n(!0), d(
|
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,
|
342
|
+
], 8, qe)
|
315
343
|
])
|
316
|
-
]) : i(
|
317
|
-
(n(!0), d(
|
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:
|
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
|
-
|
343
|
-
checked:
|
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: () =>
|
375
|
+
onChange: () => W(l)
|
348
376
|
}, null, 8, ["checked", "disabled", "readonly", "onChange"]),
|
349
|
-
o("span",
|
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
|
-
|
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: () =>
|
391
|
+
onChange: () => W(l)
|
364
392
|
}, null, 8, ["checked", "disabled", "name", "readonly", "value", "onChange"]),
|
365
|
-
o("span",
|
393
|
+
o("span", Ke, u(l.accessibleLabel), 1)
|
366
394
|
], 2))
|
367
395
|
])
|
368
|
-
], 2)) :
|
369
|
-
(n(!0), d(
|
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
|
-
|
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)) :
|
391
|
-
], 40,
|
418
|
+
], 2)) : g("", !0)
|
419
|
+
], 40, Ge))), 128))
|
392
420
|
]) : p(e.$slots, "no-data", { key: 1 }, () => [
|
393
|
-
o("tr",
|
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",
|
399
|
-
], 8,
|
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(
|
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
|
-
|
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 "./
|
4
|
-
import B from "./
|
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 "./
|
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 "./
|
8
|
-
import { waitFor as K } from "./
|
9
|
-
import Q from "./
|
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 "./
|
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 "./
|
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 "./
|
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 "./
|
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 "./
|
2
|
+
import { isCssColor as u } from "./index243.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|