bitboss-ui 2.0.72 → 2.0.74
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/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +5 -0
- package/dist/components/BbPagination/BbPagination.vue.d.ts +5 -0
- package/dist/index106.js +16 -16
- package/dist/index108.js +52 -57
- package/dist/index110.js +59 -60
- package/dist/index118.js +1 -1
- package/dist/index120.js +56 -57
- package/dist/index122.js +1 -1
- package/dist/index126.js +21 -19
- 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/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +53 -2
- package/dist/index207.js +13 -2
- package/dist/index208.js +20 -4
- package/dist/index209.js +4 -2
- package/dist/index21.js +14 -14
- package/dist/index210.js +3 -53
- package/dist/index211.js +83 -0
- package/dist/index212.js +5 -13
- package/dist/index213.js +15 -19
- package/dist/index214.js +16 -4
- package/dist/index215.js +17 -162
- package/dist/index216.js +19 -84
- package/dist/index217.js +29 -0
- package/dist/index218.js +3 -3
- package/dist/index219.js +2 -41
- package/dist/index220.js +7 -5
- package/dist/index221.js +249 -7
- package/dist/index222.js +49 -123
- package/dist/index223.js +44 -5
- package/dist/index224.js +5 -125
- package/dist/index225.js +60 -19
- package/dist/index226.js +2 -16
- package/dist/index227.js +4 -16
- package/dist/index228.js +2 -2
- package/dist/index229.js +126 -2
- package/dist/index23.js +15 -15
- package/dist/index230.js +125 -5
- package/dist/index231.js +2 -369
- package/dist/index232.js +41 -3
- package/dist/index233.js +6 -19
- package/dist/index234.js +5 -27
- package/dist/index235.js +369 -3
- package/dist/index236.js +3 -249
- package/dist/index237.js +7 -52
- package/dist/index238.js +163 -43
- package/dist/index239.js +84 -5
- package/dist/index241.js +1 -1
- package/dist/index243.js +1 -1
- package/dist/index245.js +1 -1
- package/dist/index25.js +5 -5
- package/dist/index252.js +1 -1
- package/dist/index255.js +3 -9
- package/dist/index257.js +7 -3
- package/dist/index258.js +178 -0
- package/dist/index259.js +224 -7
- package/dist/index260.js +8 -175
- package/dist/index261.js +281 -66
- package/dist/index262.js +6 -2
- package/dist/index263.js +2 -9
- package/dist/index264.js +2 -3
- package/dist/index265.js +2 -12
- package/dist/index266.js +2 -9
- package/dist/index267.js +2 -17
- package/dist/index268.js +2 -4
- package/dist/index269.js +2 -431
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -89
- package/dist/index271.js +2 -281
- package/dist/index272.js +2 -6
- package/dist/index273.js +28 -2
- package/dist/index274.js +22 -2
- package/dist/index276.js +4 -2
- package/dist/index277.js +2 -2
- package/dist/index279.js +429 -20
- package/dist/index280.js +24 -0
- package/dist/index282.js +83 -218
- package/dist/index283.js +3 -436
- package/dist/index284.js +11 -126
- package/dist/index285.js +9 -2
- package/dist/index286.js +9 -2
- package/dist/index287.js +17 -2
- package/dist/index288.js +4 -2
- package/dist/index289.js +200 -2
- package/dist/index29.js +18 -19
- package/dist/index290.js +436 -2
- package/dist/index291.js +125 -26
- package/dist/index292.js +3 -22
- package/dist/index293.js +5 -0
- package/dist/index294.js +211 -5
- package/dist/index295.js +65 -2
- package/dist/index296.js +5 -3
- package/dist/index297.js +2 -211
- package/dist/index301.js +1 -1
- package/dist/index302.js +1 -1
- package/dist/index303.js +33 -79
- package/dist/index304.js +86 -0
- package/dist/index306.js +4 -2
- package/dist/index307.js +6 -32
- package/dist/index31.js +2 -2
- package/dist/index310.js +46 -6
- package/dist/index311.js +2 -11
- package/dist/index312.js +10 -46
- package/dist/{index313.js → index314.js} +2 -2
- package/dist/index315.js +1 -1
- package/dist/index316.js +47 -2
- package/dist/index317.js +2 -47
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +9 -9
- package/dist/index39.js +3 -3
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +4 -4
- 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/index59.js +21 -20
- package/dist/index61.js +21 -23
- package/dist/index75.js +45 -46
- package/dist/index79.js +2 -5
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +27 -26
- package/dist/index88.js +85 -85
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index206.js +0 -10
- package/dist/index240.js +0 -62
- package/dist/index256.js +0 -6
- package/dist/index275.js +0 -4
- package/dist/index281.js +0 -202
- package/dist/index305.js +0 -6
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 "./index232.js";
|
3
|
+
import { useId as G } from "./index8.js";
|
4
|
+
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
+
import { waitFor as K } from "./index233.js";
|
6
|
+
import Q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
|
8
|
+
import { useDebounceFn as U } from "./index211.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
|
26
|
+
setup($, { expose: T, emit: _ }) {
|
27
|
+
const B = O(
|
27
28
|
() => import("./index252.js")
|
28
|
-
),
|
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",
|