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
package/dist/index86.js
CHANGED
@@ -1,29 +1,30 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { debounce as F } from "./
|
1
|
+
import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
|
2
|
+
import { debounce as F } from "./index291.js";
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
import w from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
const T =
|
7
|
+
const T = ["aria-label"], D = { class: "bb-pagination__page-label" }, G = { class: "bb-pagination__page-label" }, H = /* @__PURE__ */ P({
|
8
8
|
__name: "BbPagination",
|
9
9
|
props: {
|
10
10
|
disabled: { type: Boolean },
|
11
11
|
loading: { type: Boolean },
|
12
12
|
align: { default: "right" },
|
13
13
|
ellipsis: { default: "..." },
|
14
|
+
label: { default: "Paginazione" },
|
14
15
|
maxSize: { default: 6 },
|
15
16
|
modelValue: { default: 1 },
|
16
17
|
totalPages: { default: 1 }
|
17
18
|
},
|
18
19
|
emits: ["update:modelValue"],
|
19
|
-
setup(
|
20
|
-
const l =
|
21
|
-
r.value && d.value && (r.value.clientWidth < d.value.clientWidth ? t.value - 1 > 3 ? (t.value--, $(
|
22
|
-
r.value.clientWidth - d.value.clientWidth > z.value && (t.value = Math.min(t.value + 1, +l.maxSize), $(
|
20
|
+
setup(B, { emit: x }) {
|
21
|
+
const l = B, c = x, s = _(() => +l.totalPages), u = g(1), t = g(+l.maxSize), r = g(), d = g(), z = g(1 / 0), f = () => {
|
22
|
+
r.value && d.value && (r.value.clientWidth < d.value.clientWidth ? t.value - 1 > 3 ? (t.value--, $(f)) : t.value = 3 : t.value < +l.maxSize && /* If there is enough space to fit one */
|
23
|
+
r.value.clientWidth - d.value.clientWidth > z.value && (t.value = Math.min(t.value + 1, +l.maxSize), $(f)));
|
23
24
|
};
|
24
25
|
if (globalThis.ResizeObserver) {
|
25
|
-
const e = new ResizeObserver(F(
|
26
|
-
|
26
|
+
const e = new ResizeObserver(F(f, 200));
|
27
|
+
A(() => {
|
27
28
|
if (r.value && d.value) {
|
28
29
|
const a = r.value.querySelectorAll(
|
29
30
|
".bb-pagination__page"
|
@@ -34,41 +35,41 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
34
35
|
}
|
35
36
|
e.observe(r.value);
|
36
37
|
}
|
37
|
-
}),
|
38
|
+
}), E(() => {
|
38
39
|
e.disconnect();
|
39
40
|
});
|
40
41
|
}
|
41
|
-
const
|
42
|
+
const L = _(() => {
|
42
43
|
if (s.value <= 0 || isNaN(s.value) || s.value > Number.MAX_SAFE_INTEGER)
|
43
44
|
return [];
|
44
45
|
if (t.value <= 1) return [l.modelValue];
|
45
46
|
if (s.value <= t.value)
|
46
|
-
return
|
47
|
+
return b(s.value, u.value);
|
47
48
|
const e = t.value % 2 === 0, a = e ? t.value / 2 : Math.floor(t.value / 2), n = e ? a : a + 1, p = s.value - a;
|
48
49
|
if (n - l.modelValue >= 0)
|
49
50
|
return [
|
50
|
-
...
|
51
|
+
...b(Math.max(1, t.value - 1), u.value),
|
51
52
|
l.ellipsis,
|
52
53
|
s.value
|
53
54
|
];
|
54
55
|
if (l.modelValue - p >= (e ? 1 : 0)) {
|
55
|
-
const o = t.value - 1,
|
56
|
+
const o = t.value - 1, m = s.value - o + u.value;
|
56
57
|
return [
|
57
58
|
u.value,
|
58
59
|
l.ellipsis,
|
59
|
-
...
|
60
|
+
...b(o, m)
|
60
61
|
];
|
61
62
|
} else {
|
62
|
-
const o = Math.max(1, t.value - 3),
|
63
|
+
const o = Math.max(1, t.value - 3), m = o === 1 ? l.modelValue : l.modelValue - Math.ceil(o / 2) + u.value;
|
63
64
|
return [
|
64
65
|
u.value,
|
65
66
|
l.ellipsis,
|
66
|
-
...
|
67
|
+
...b(o, m),
|
67
68
|
l.ellipsis,
|
68
69
|
s.value
|
69
70
|
];
|
70
71
|
}
|
71
|
-
}),
|
72
|
+
}), N = _(() => L.value.map((e, a) => typeof e == "string" ? {
|
72
73
|
active: !1,
|
73
74
|
key: `ellipsis-${a}`,
|
74
75
|
page: e,
|
@@ -80,7 +81,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
80
81
|
page: e,
|
81
82
|
ellipsis: !1,
|
82
83
|
disabled: !!l.disabled || +l.totalPages < 2 || l.loading
|
83
|
-
})),
|
84
|
+
})), b = (e, a = 0) => Array.from({ length: e }, (n, p) => a + p);
|
84
85
|
return (e, a) => (y(), k("div", {
|
85
86
|
ref_key: "outercontainer",
|
86
87
|
ref: r,
|
@@ -89,7 +90,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
89
90
|
"bb-pagination--disabled": e.disabled
|
90
91
|
}])
|
91
92
|
}, [
|
92
|
-
i("nav",
|
93
|
+
i("nav", { "aria-label": e.label }, [
|
93
94
|
i("ul", {
|
94
95
|
ref_key: "innercontainer",
|
95
96
|
ref: d,
|
@@ -102,7 +103,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
102
103
|
onClick: a[0] || (a[0] = (n) => c("update:modelValue", l.modelValue - 1))
|
103
104
|
}, {
|
104
105
|
default: h(() => [
|
105
|
-
|
106
|
+
v(e.$slots, "previous", {}, () => [
|
106
107
|
a[2] || (a[2] = i("span", { class: "bb-pagination__page-label sr-only" }, "Precedente", -1)),
|
107
108
|
a[3] || (a[3] = i("svg", {
|
108
109
|
class: "bb-pagination__page-chevron",
|
@@ -119,7 +120,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
119
120
|
_: 3
|
120
121
|
}, 8, ["disabled"])
|
121
122
|
]),
|
122
|
-
(y(!0), k(W, null, R(
|
123
|
+
(y(!0), k(W, null, R(N.value, (n) => (y(), k("li", {
|
123
124
|
key: n.key
|
124
125
|
}, [
|
125
126
|
V(S(w), {
|
@@ -131,9 +132,9 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
131
132
|
onClick: (p) => c("update:modelValue", n.key)
|
132
133
|
}, {
|
133
134
|
default: h(() => [
|
134
|
-
n.ellipsis === !0 ?
|
135
|
+
n.ellipsis === !0 ? v(e.$slots, "ellipsis", { key: 0 }, () => [
|
135
136
|
i("span", D, M(l.ellipsis), 1)
|
136
|
-
]) :
|
137
|
+
]) : v(e.$slots, "item", {
|
137
138
|
key: 1,
|
138
139
|
active: n.active,
|
139
140
|
disabled: n.disabled,
|
@@ -152,7 +153,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
152
153
|
onClick: a[1] || (a[1] = (n) => c("update:modelValue", l.modelValue + 1))
|
153
154
|
}, {
|
154
155
|
default: h(() => [
|
155
|
-
|
156
|
+
v(e.$slots, "next", {}, () => [
|
156
157
|
a[4] || (a[4] = i("span", { class: "bb-pagination__page-label sr-only" }, "Successivo", -1)),
|
157
158
|
a[5] || (a[5] = i("svg", {
|
158
159
|
class: "bb-pagination__page-chevron",
|
@@ -170,7 +171,7 @@ const T = { "aria-label": "Navigazione" }, D = { class: "bb-pagination__page-lab
|
|
170
171
|
}, 8, ["disabled"])
|
171
172
|
])
|
172
173
|
], 512)
|
173
|
-
])
|
174
|
+
], 8, T)
|
174
175
|
], 2));
|
175
176
|
}
|
176
177
|
});
|
package/dist/index88.js
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useFocusTrap as
|
3
|
-
import { useId as
|
4
|
-
import { useIntersectionObserver as
|
5
|
-
import { waitFor as
|
6
|
-
import
|
1
|
+
import { defineComponent as M, defineAsyncComponent as O, ref as r, computed as v, openBlock as y, createElementBlock as S, mergeProps as H, createElementVNode as c, renderSlot as k, normalizeProps as V, guardReactiveProps as q, createVNode as A, unref as I, withCtx as C, createBlock as W, createCommentVNode as z, nextTick as R } from "vue";
|
2
|
+
import { useFocusTrap as j } from "./index229.js";
|
3
|
+
import { useId as G } from "./index8.js";
|
4
|
+
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
+
import { waitFor as K } from "./index231.js";
|
6
|
+
import Q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
|
8
|
+
import { useDebounceFn as U } from "./index240.js";
|
9
|
+
const ne = /* @__PURE__ */ M({
|
9
10
|
__name: "BbPopover",
|
10
11
|
props: {
|
11
12
|
arrowPadding: { default: 10 },
|
@@ -22,10 +23,10 @@ const te = /* @__PURE__ */ S({
|
|
22
23
|
width: {}
|
23
24
|
},
|
24
25
|
emits: ["shown", "hidden"],
|
25
|
-
setup(
|
26
|
-
const
|
27
|
-
() => import("./
|
28
|
-
),
|
26
|
+
setup($, { expose: T, emit: _ }) {
|
27
|
+
const B = O(
|
28
|
+
() => import("./index285.js")
|
29
|
+
), o = $, s = _, { id: P } = G(), p = `bbp_${P.value}`, n = r(), i = r(), { activate: N, deactivate: m } = j(i, {
|
29
30
|
/**
|
30
31
|
* This traps all clicks outside so we are pressing
|
31
32
|
* the trigger we just allow and process that in its
|
@@ -34,12 +35,12 @@ const te = /* @__PURE__ */ S({
|
|
34
35
|
* close the popover and be done
|
35
36
|
*/
|
36
37
|
clickOutsideDeactivates: (e) => {
|
37
|
-
var
|
38
|
-
const
|
39
|
-
return
|
38
|
+
var h;
|
39
|
+
const t = e.target;
|
40
|
+
return t instanceof HTMLElement && (h = n.value) != null && h.contains(t) || (l(), s("hidden")), !0;
|
40
41
|
},
|
41
|
-
escapeDeactivates: () => (
|
42
|
-
await
|
42
|
+
escapeDeactivates: () => (R(async () => {
|
43
|
+
await l(), u(), s("hidden");
|
43
44
|
}), !0),
|
44
45
|
/* We don't return focus so that when
|
45
46
|
* we press a button on tyhe page we can focus
|
@@ -47,91 +48,90 @@ const te = /* @__PURE__ */ S({
|
|
47
48
|
*/
|
48
49
|
returnFocusOnDeactivate: !1
|
49
50
|
});
|
50
|
-
|
51
|
-
|
52
|
-
([{ intersectionRatio: e }]) => {
|
53
|
-
e !== 1 && a.value &&
|
51
|
+
J(
|
52
|
+
n,
|
53
|
+
async ([{ intersectionRatio: e }]) => {
|
54
|
+
e !== 1 && a.value && (m(), await l(), s("hidden"));
|
54
55
|
},
|
55
56
|
{ threshold: [0, 1] }
|
56
57
|
);
|
57
|
-
const
|
58
|
+
const D = v(() => ({
|
58
59
|
class: {
|
59
|
-
"bb-popover--block":
|
60
|
-
[`bb-popover--${
|
60
|
+
"bb-popover--block": o.block,
|
61
|
+
[`bb-popover--${o.theme}`]: !0
|
61
62
|
}
|
62
|
-
})),
|
63
|
-
|
64
|
-
},
|
63
|
+
})), E = r(!1), d = r(!1), a = r(!1), b = r(!1), g = r(!0), F = async () => {
|
64
|
+
E.value = !0, await K(() => !!i.value), a.value = !0;
|
65
|
+
}, l = async () => {
|
65
66
|
a.value = !1;
|
66
|
-
},
|
67
|
+
}, w = async () => {
|
67
68
|
if (a.value) {
|
68
|
-
await
|
69
|
+
await l(), u(), s("hidden");
|
69
70
|
return;
|
70
71
|
}
|
71
|
-
if (
|
72
|
-
|
73
|
-
let e =
|
74
|
-
|
75
|
-
onPostActivate: () => {
|
76
|
-
if (
|
77
|
-
const
|
78
|
-
|
72
|
+
if (d.value || o.disabled) return;
|
73
|
+
await F();
|
74
|
+
let e = o.focusTarget ?? ".bb-popover__close";
|
75
|
+
N({
|
76
|
+
onPostActivate: U(() => {
|
77
|
+
if (i.value) {
|
78
|
+
const t = i.value.querySelector(e);
|
79
|
+
t instanceof HTMLElement && (t.focus(), s("shown"));
|
79
80
|
}
|
80
|
-
}
|
81
|
+
}, 150)
|
81
82
|
});
|
82
|
-
},
|
83
|
-
var
|
84
|
-
const e = (
|
83
|
+
}, u = () => {
|
84
|
+
var t;
|
85
|
+
const e = (t = n.value) == null ? void 0 : t.querySelector(`[aria-controls=popover_${p}]`);
|
85
86
|
e instanceof HTMLElement && e.focus({ preventScroll: !0 });
|
86
|
-
},
|
87
|
-
|
88
|
-
},
|
89
|
-
if (
|
87
|
+
}, f = async () => {
|
88
|
+
m(), await l(), u(), s("hidden");
|
89
|
+
}, L = v(() => {
|
90
|
+
if (o.width) {
|
90
91
|
let e;
|
91
|
-
if (typeof
|
92
|
-
if (
|
93
|
-
if (!
|
94
|
-
e = `${
|
92
|
+
if (typeof o.width == "string" && Number.isNaN(Number(o.width)))
|
93
|
+
if (o.width.includes("%")) {
|
94
|
+
if (!n.value) return;
|
95
|
+
e = `${n.value.clientWidth * (+o.width.replace("%", "") / 100)}`;
|
95
96
|
} else
|
96
|
-
e =
|
97
|
+
e = o.width;
|
97
98
|
else
|
98
|
-
e = `${
|
99
|
+
e = `${o.width}`;
|
99
100
|
return `${e}px`;
|
100
101
|
}
|
101
102
|
});
|
102
|
-
return
|
103
|
-
open:
|
104
|
-
close:
|
105
|
-
closed:
|
106
|
-
}), (e,
|
107
|
-
|
103
|
+
return T({
|
104
|
+
open: w,
|
105
|
+
close: f,
|
106
|
+
closed: v(() => !a.value)
|
107
|
+
}), (e, t) => (y(), S("span", H({ class: "bb-popover" }, D.value), [
|
108
|
+
c("span", {
|
108
109
|
ref_key: "wrapper",
|
109
|
-
ref:
|
110
|
+
ref: n,
|
110
111
|
class: "bb-popover__wrapper"
|
111
112
|
}, [
|
112
|
-
|
113
|
+
k(e.$slots, "activator", V(q({
|
113
114
|
props: {
|
114
|
-
"aria-controls": `popover_${
|
115
|
+
"aria-controls": `popover_${p}`,
|
115
116
|
"aria-expanded": a.value,
|
116
|
-
onClick:
|
117
|
-
id:
|
117
|
+
onClick: w,
|
118
|
+
id: p,
|
118
119
|
disabled: !!e.disabled
|
119
120
|
},
|
120
|
-
closed:
|
121
|
-
closing:
|
121
|
+
closed: g.value,
|
122
|
+
closing: b.value,
|
122
123
|
disabled: !!e.disabled,
|
123
124
|
open: a.value,
|
124
|
-
opening:
|
125
|
+
opening: d.value,
|
125
126
|
placement: e.placement
|
126
127
|
})))
|
127
128
|
], 512),
|
128
|
-
|
129
|
-
key: 0,
|
129
|
+
A(I(B), {
|
130
130
|
"arrow-padding": e.arrowPadding,
|
131
131
|
"base-class": "bb-popover",
|
132
132
|
"container-attributes": {
|
133
|
-
id: `popover_${
|
134
|
-
style: { width:
|
133
|
+
id: `popover_${p}`,
|
134
|
+
style: { width: L.value }
|
135
135
|
},
|
136
136
|
eager: e.eager,
|
137
137
|
offset: e.offset,
|
@@ -140,27 +140,27 @@ const te = /* @__PURE__ */ S({
|
|
140
140
|
placement: e.placement,
|
141
141
|
theme: e.theme,
|
142
142
|
"transition-duration": e.transitionDuration,
|
143
|
-
wrapper:
|
143
|
+
wrapper: n.value
|
144
144
|
}, {
|
145
|
-
default:
|
146
|
-
|
145
|
+
default: C(() => [
|
146
|
+
c("div", {
|
147
147
|
ref_key: "content",
|
148
|
-
ref:
|
148
|
+
ref: i,
|
149
149
|
class: "bb-popover__content"
|
150
150
|
}, [
|
151
|
-
e.showClose ? (
|
151
|
+
e.showClose ? (y(), W(Q, {
|
152
152
|
key: 0,
|
153
153
|
class: "bb-popover__close",
|
154
|
-
onClick:
|
154
|
+
onClick: f
|
155
155
|
}, {
|
156
|
-
default:
|
157
|
-
|
158
|
-
|
156
|
+
default: C(() => t[0] || (t[0] = [
|
157
|
+
c("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
|
158
|
+
c("svg", {
|
159
159
|
fill: "none",
|
160
160
|
viewBox: "0 0 24 24",
|
161
161
|
xmlns: "http://www.w3.org/2000/svg"
|
162
162
|
}, [
|
163
|
-
|
163
|
+
c("path", {
|
164
164
|
d: "M23 23L1 1M23 1L1 23",
|
165
165
|
stroke: "currentColor",
|
166
166
|
"stroke-linecap": "round",
|
@@ -169,23 +169,23 @@ const te = /* @__PURE__ */ S({
|
|
169
169
|
], -1)
|
170
170
|
])),
|
171
171
|
_: 1
|
172
|
-
})) :
|
173
|
-
|
174
|
-
close:
|
175
|
-
closed:
|
176
|
-
closing:
|
172
|
+
})) : z("", !0),
|
173
|
+
k(e.$slots, "default", {
|
174
|
+
close: f,
|
175
|
+
closed: g.value,
|
176
|
+
closing: b.value,
|
177
177
|
disabled: !!e.disabled,
|
178
178
|
open: a.value,
|
179
|
-
opening:
|
179
|
+
opening: d.value,
|
180
180
|
placement: e.placement
|
181
181
|
})
|
182
182
|
], 512)
|
183
183
|
]),
|
184
184
|
_: 3
|
185
|
-
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
|
185
|
+
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
|
186
186
|
], 16));
|
187
187
|
}
|
188
188
|
});
|
189
189
|
export {
|
190
|
-
|
190
|
+
ne as default
|
191
191
|
};
|
package/dist/index90.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index204.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index130.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index211.js
DELETED
package/dist/index238.js
DELETED
package/dist/index244.js
DELETED
@@ -1,108 +0,0 @@
|
|
1
|
-
import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
2
|
-
import { hash as d } from "./index234.js";
|
3
|
-
import { isNil as l } from "./index129.js";
|
4
|
-
import E from "./index124.js";
|
5
|
-
/* empty css */
|
6
|
-
const K = /* @__PURE__ */ y({
|
7
|
-
__name: "ChipsBox",
|
8
|
-
props: {
|
9
|
-
options: {}
|
10
|
-
},
|
11
|
-
emits: ["option:unselected"],
|
12
|
-
setup(f, { expose: v, emit: h }) {
|
13
|
-
const t = f, u = h, n = F(null), i = H(() => t.options.some((e) => !e.disabled)), a = (e = 1) => {
|
14
|
-
const s = l(n.value) ? -1 : n.value;
|
15
|
-
let o = (s + e) % t.options.length;
|
16
|
-
for (; t.options[o].disabled && o !== s; )
|
17
|
-
o = a(e + 1);
|
18
|
-
return o;
|
19
|
-
}, x = () => {
|
20
|
-
if (!i.value) return;
|
21
|
-
const e = a();
|
22
|
-
n.value = e;
|
23
|
-
}, c = (e = 1) => {
|
24
|
-
const s = l(n.value) ? 0 : n.value;
|
25
|
-
let o = (s - e + t.options.length) % t.options.length;
|
26
|
-
for (; t.options[o].disabled && o !== s; )
|
27
|
-
o = c(e + 1);
|
28
|
-
return o;
|
29
|
-
}, m = async () => {
|
30
|
-
if (!i.value) return;
|
31
|
-
const e = c();
|
32
|
-
n.value = e;
|
33
|
-
}, w = () => {
|
34
|
-
if (!i.value) return;
|
35
|
-
let e = 0;
|
36
|
-
for (; t.options[e].disabled; )
|
37
|
-
e++;
|
38
|
-
n.value = e;
|
39
|
-
}, b = () => {
|
40
|
-
if (!i.value) return;
|
41
|
-
let e = t.options.length - 1;
|
42
|
-
for (; t.options[e].disabled && e !== 0; )
|
43
|
-
e--;
|
44
|
-
n.value = e;
|
45
|
-
}, I = () => {
|
46
|
-
if (!i.value) return;
|
47
|
-
let e = 0;
|
48
|
-
for (; !t.options[e].selected && t.options.length !== e; )
|
49
|
-
e++;
|
50
|
-
n.value = e;
|
51
|
-
}, g = () => {
|
52
|
-
if (!i.value) return;
|
53
|
-
let e = t.options.length - 1;
|
54
|
-
for (; t.options[e].selected && e !== 0; )
|
55
|
-
e--;
|
56
|
-
n.value = e;
|
57
|
-
}, _ = (e) => {
|
58
|
-
if (!i.value) return;
|
59
|
-
const s = t.options.findIndex(
|
60
|
-
(o) => o.valueHash === e
|
61
|
-
);
|
62
|
-
s >= 0 && (n.value = s);
|
63
|
-
}, r = () => {
|
64
|
-
n.value = null;
|
65
|
-
}, k = () => {
|
66
|
-
if (l(n.value)) return;
|
67
|
-
const e = t.options[n.value];
|
68
|
-
e.selected && u("option:unselected", e);
|
69
|
-
}, C = () => l(n.value) ? void 0 : t.options[n.value];
|
70
|
-
return N(
|
71
|
-
() => t.options,
|
72
|
-
(e, s) => {
|
73
|
-
d(e) !== d(s) && r();
|
74
|
-
},
|
75
|
-
{
|
76
|
-
flush: "post"
|
77
|
-
}
|
78
|
-
), v({
|
79
|
-
focusNext: x,
|
80
|
-
focusPrevious: m,
|
81
|
-
focusFirst: w,
|
82
|
-
focusFirstSelected: I,
|
83
|
-
focusLast: b,
|
84
|
-
focusLastSelected: g,
|
85
|
-
blur: r,
|
86
|
-
confirmOption: k,
|
87
|
-
focusByHash: _,
|
88
|
-
getHighlighted: C
|
89
|
-
}), (e, s) => (p(!0), L(S, null, V(e.options, (o, B) => (p(), A(E, {
|
90
|
-
key: o.valueHash,
|
91
|
-
class: O({
|
92
|
-
"bb-chipsbox-item": !0,
|
93
|
-
"bb-chipsbox-item--focused": B === n.value
|
94
|
-
}),
|
95
|
-
clearable: !0,
|
96
|
-
text: o.text,
|
97
|
-
"onClick:clear": P((M) => u("option:unselected", o), ["stop"])
|
98
|
-
}, {
|
99
|
-
default: $(() => [
|
100
|
-
z(D(o.text), 1)
|
101
|
-
]),
|
102
|
-
_: 2
|
103
|
-
}, 1032, ["class", "text", "onClick:clear"]))), 128));
|
104
|
-
}
|
105
|
-
});
|
106
|
-
export {
|
107
|
-
K as default
|
108
|
-
};
|