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