bitboss-ui 2.1.76 → 2.1.78
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/BbDropdown/BbDropdown.vue.d.ts +23 -2
- package/dist/components/BbPopover/BbPopover.vue.d.ts +34 -9
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +6 -0
- package/dist/components/CommonPopover.vue.d.ts +5 -0
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +13 -13
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index143.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +13 -13
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +5 -7
- package/dist/index218.js +8 -2
- package/dist/index219.js +32 -4
- package/dist/index220.js +28 -8
- package/dist/index222.js +4 -2
- package/dist/index223.js +13 -2
- package/dist/index224.js +20 -2
- package/dist/index225.js +200 -12
- package/dist/index227.js +135 -3
- package/dist/index23.js +11 -11
- package/dist/index230.js +49 -16
- package/dist/index231.js +16 -11
- package/dist/index232.js +105 -50
- package/dist/index234.js +100 -12
- package/dist/index236.js +3 -29
- package/dist/index237.js +5 -16
- package/dist/index238.js +5 -4
- package/dist/index239.js +5 -106
- package/dist/index240.js +7 -0
- package/dist/index241.js +5 -100
- package/dist/index242.js +7 -0
- package/dist/index243.js +2 -127
- package/dist/index245.js +3 -229
- package/dist/index246.js +2 -13
- package/dist/index247.js +11 -3
- package/dist/index248.js +8 -5
- package/dist/index249.js +13 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +13 -5
- package/dist/index251.js +4 -5
- package/dist/index252.js +23 -5
- package/dist/index253.js +3 -5
- package/dist/index254.js +3 -20
- package/dist/index255.js +17 -32
- package/dist/index256.js +12 -28
- package/dist/{index233.js → index257.js} +1 -1
- package/dist/index258.js +12 -34
- package/dist/index259.js +29 -2
- package/dist/index260.js +15 -6
- package/dist/index261.js +4 -7
- package/dist/index262.js +229 -10
- package/dist/index263.js +9 -2
- package/dist/index264.js +3 -4
- package/dist/index265.js +67 -3
- package/dist/index266.js +2 -4
- package/dist/index267.js +3 -201
- package/dist/index268.js +11 -0
- package/dist/index269.js +8 -85
- package/dist/index27.js +1 -1
- package/dist/index270.js +25 -0
- package/dist/index271.js +5 -5
- package/dist/index272.js +6 -6
- package/dist/index273.js +15 -7
- package/dist/index274.js +3 -268
- package/dist/index275.js +30 -48
- package/dist/index276.js +9 -52
- package/dist/index277.js +5 -32
- package/dist/index278.js +6 -60
- package/dist/index279.js +268 -9
- package/dist/index280.js +50 -21
- package/dist/index281.js +50 -7
- package/dist/index282.js +31 -7
- package/dist/index283.js +59 -8
- package/dist/index284.js +2 -23
- package/dist/index285.js +85 -12
- package/dist/index287.js +7 -65
- package/dist/index288.js +8 -6
- package/dist/index289.js +7 -16
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -41
- package/dist/index291.js +7 -11
- package/dist/index292.js +7 -3
- package/dist/index293.js +43 -0
- package/dist/index295.js +3 -5
- package/dist/index296.js +4 -7
- package/dist/index297.js +7 -3
- package/dist/index298.js +1 -1
- package/dist/index299.js +1 -1
- package/dist/index300.js +17 -2
- package/dist/index301.js +2 -28
- package/dist/index302.js +3 -17
- package/dist/index303.js +2 -4
- package/dist/index304.js +27 -279
- package/dist/index305.js +4 -2
- package/dist/index306.js +3 -125
- package/dist/index307.js +5 -2
- package/dist/index308.js +278 -13
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +121 -12
- package/dist/index311.js +2 -2
- package/dist/index312.js +10 -11
- package/dist/index314.js +12 -15
- package/dist/index316.js +16 -2
- package/dist/index317.js +2 -3
- package/dist/index318.js +19 -5
- package/dist/index319.js +2 -3
- package/dist/index320.js +5 -2
- package/dist/index323.js +1 -1
- package/dist/index324.js +1 -1
- package/dist/index325.js +1 -1
- package/dist/index326.js +1 -1
- package/dist/index327.js +1 -1
- package/dist/index328.js +719 -6
- package/dist/index329.js +366 -4
- package/dist/index33.js +8 -8
- package/dist/index330.js +57 -719
- package/dist/index331.js +2 -366
- package/dist/index332.js +3 -57
- package/dist/index333.js +6 -58
- package/dist/index334.js +35 -58
- package/dist/index335.js +6 -47
- package/dist/index336.js +125 -31
- package/dist/index337.js +398 -6
- package/dist/index338.js +44 -126
- package/dist/index339.js +7 -397
- package/dist/index340.js +5 -7
- package/dist/index341.js +8 -6
- package/dist/index342.js +57 -7
- package/dist/index343.js +57 -92
- package/dist/index344.js +1 -1
- package/dist/index345.js +85 -512
- package/dist/index346.js +5 -134
- package/dist/index347.js +7 -5
- package/dist/index348.js +18 -6
- package/dist/index349.js +8 -18
- package/dist/index35.js +4 -4
- package/dist/index350.js +14 -8
- package/dist/index351.js +6 -14
- package/dist/index352.js +133 -6
- package/dist/index353.js +515 -45
- package/dist/index356.js +44 -435
- package/dist/index357.js +427 -114
- package/dist/index358.js +130 -0
- package/dist/index37.js +17 -17
- package/dist/index39.js +6 -6
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +5 -5
- package/dist/index49.js +20 -20
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +4 -4
- package/dist/index67.js +1 -1
- package/dist/index80.js +209 -156
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +160 -100
- package/dist/index97.js +1 -1
- package/dist/types/CommonProps.d.ts +1 -1
- package/dist/utilities/functions/isNotEmpty.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index221.js +0 -7
- package/dist/index226.js +0 -11
- package/dist/index228.js +0 -5
- package/dist/index235.js +0 -19
- package/dist/index294.js +0 -5
- /package/dist/{index286.js → index244.js} +0 -0
package/dist/index95.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useId as
|
|
3
|
-
import { useIntersectionObserver as
|
|
4
|
-
import { useLocale as
|
|
5
|
-
import { useUntil as
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as re, mergeModels as I, ref as N, useTemplateRef as ae, computed as s, useModel as ie, watch as C, createElementBlock as se, openBlock as Y, Fragment as le, renderSlot as G, createCommentVNode as W, createVNode as ue, normalizeProps as de, mergeProps as X, unref as S, withCtx as F, createElementVNode as B, createBlock as ce, nextTick as pe } from "vue";
|
|
2
|
+
import { useId as me } from "./index8.js";
|
|
3
|
+
import { useIntersectionObserver as ve, useElementSize as fe } from "./index141.js";
|
|
4
|
+
import { useLocale as be } from "./index223.js";
|
|
5
|
+
import { useUntil as he } from "./index250.js";
|
|
6
|
+
import ge from "./index13.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import we from "./index227.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import { extractDomContainer as
|
|
11
|
-
import { parseWidthString as
|
|
12
|
-
const
|
|
10
|
+
import { extractDomContainer as H } from "./index251.js";
|
|
11
|
+
import { parseWidthString as U } from "./index252.js";
|
|
12
|
+
const Ee = ["inert"], Le = 500, ye = 10, De = /* @__PURE__ */ re({
|
|
13
13
|
inheritAttrs: !1,
|
|
14
14
|
__name: "BbPopover",
|
|
15
|
-
props: /* @__PURE__ */
|
|
15
|
+
props: /* @__PURE__ */ I({
|
|
16
16
|
arrowPadding: { default: 10 },
|
|
17
17
|
closeLabel: {},
|
|
18
18
|
block: { type: Boolean },
|
|
@@ -21,146 +21,206 @@ const ne = ["inert"], he = /* @__PURE__ */ G({
|
|
|
21
21
|
id: {},
|
|
22
22
|
offset: { default: 3 },
|
|
23
23
|
padding: { default: 10 },
|
|
24
|
-
placement: { default: "bottom" },
|
|
25
24
|
showClose: { type: Boolean, default: !0 },
|
|
26
25
|
theme: { default: "default" },
|
|
27
26
|
transitionDuration: { default: 300 },
|
|
27
|
+
placement: { default: "bottom" },
|
|
28
28
|
activator: {},
|
|
29
29
|
boundary: {},
|
|
30
30
|
focusTarget: {},
|
|
31
31
|
restoreFocus: { type: Boolean, default: !0 },
|
|
32
|
+
trigger: { default: "click" },
|
|
32
33
|
width: {}
|
|
33
34
|
}, {
|
|
34
35
|
modelValue: { type: Boolean, default: !1 },
|
|
35
36
|
modelModifiers: {}
|
|
36
37
|
}),
|
|
37
|
-
emits: /* @__PURE__ */
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
38
|
+
emits: /* @__PURE__ */ I(["shown", "hidden"], ["update:modelValue"]),
|
|
39
|
+
setup(M, { expose: _, emit: q }) {
|
|
40
|
+
const o = M, O = q, { t: z } = be(), { id: J } = me(), c = o.id ?? J.value, b = `bbp_${c}`, r = N(), T = ae("popoverRef"), V = s(() => H(T.value)), n = ie(M, "modelValue"), p = he(n), h = s(() => o.activator != null), x = s(() => {
|
|
41
|
+
const e = o.trigger;
|
|
42
|
+
return new Set(Array.isArray(e) ? e : [e]);
|
|
43
|
+
}), g = (e, t) => ({
|
|
44
|
+
getBoundingClientRect: () => ({
|
|
45
|
+
x: e,
|
|
46
|
+
y: t,
|
|
47
|
+
width: 0,
|
|
48
|
+
height: 0,
|
|
49
|
+
top: t,
|
|
50
|
+
left: e,
|
|
51
|
+
right: e,
|
|
52
|
+
bottom: t,
|
|
53
|
+
toJSON() {
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
})
|
|
57
|
+
}), d = N(null), K = s(
|
|
58
|
+
() => o.placement === "cursor" && d.value ? d.value : r.value
|
|
59
|
+
);
|
|
60
|
+
let D, a = null, m = !1;
|
|
61
|
+
const w = () => {
|
|
62
|
+
clearTimeout(D), a = null;
|
|
63
|
+
}, R = (e) => {
|
|
64
|
+
r.value = H(e) ?? void 0;
|
|
65
|
+
}, j = s(() => {
|
|
66
|
+
const e = x.value;
|
|
67
|
+
return {
|
|
68
|
+
"aria-expanded": p.value ? n.value : void 0,
|
|
69
|
+
"aria-controls": p.value ? b : void 0,
|
|
70
|
+
"aria-haspopup": "dialog",
|
|
71
|
+
id: c,
|
|
72
|
+
disabled: !!o.disabled,
|
|
73
|
+
ref: R,
|
|
74
|
+
...e.has("click") ? { onClick: E } : {},
|
|
75
|
+
...e.has("contextMenu") ? {
|
|
76
|
+
onContextmenu: L,
|
|
77
|
+
onPointerdown: y,
|
|
78
|
+
onPointermove: k,
|
|
79
|
+
onPointerup: u,
|
|
80
|
+
onPointercancel: u
|
|
81
|
+
} : {}
|
|
82
|
+
};
|
|
83
|
+
});
|
|
84
|
+
C(
|
|
85
|
+
() => o.activator,
|
|
52
86
|
(e) => {
|
|
53
|
-
e &&
|
|
87
|
+
e && R(e);
|
|
54
88
|
},
|
|
55
89
|
{ immediate: !0 }
|
|
56
|
-
),
|
|
57
|
-
r,
|
|
58
|
-
(e, t,
|
|
59
|
-
!e || !
|
|
60
|
-
|
|
61
|
-
|
|
90
|
+
), C(
|
|
91
|
+
[r, x],
|
|
92
|
+
([e, t], i, P) => {
|
|
93
|
+
if (!e || !h.value) return;
|
|
94
|
+
const A = [];
|
|
95
|
+
t.has("click") && (e.addEventListener("click", E), A.push(() => e.removeEventListener("click", E))), t.has("contextMenu") && (e.addEventListener("contextmenu", L), e.addEventListener("pointerdown", y), e.addEventListener("pointermove", k), e.addEventListener("pointerup", u), e.addEventListener("pointercancel", u), A.push(() => {
|
|
96
|
+
e.removeEventListener("contextmenu", L), e.removeEventListener("pointerdown", y), e.removeEventListener("pointermove", k), e.removeEventListener("pointerup", u), e.removeEventListener("pointercancel", u), w();
|
|
97
|
+
})), e.setAttribute("aria-haspopup", "dialog"), P(() => {
|
|
98
|
+
A.forEach((ne) => ne()), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-haspopup");
|
|
99
|
+
});
|
|
62
100
|
},
|
|
63
101
|
{ immediate: !0 }
|
|
64
|
-
),
|
|
65
|
-
[r,
|
|
66
|
-
([e, t,
|
|
67
|
-
!e || !
|
|
102
|
+
), C(
|
|
103
|
+
[r, n, p],
|
|
104
|
+
([e, t, i]) => {
|
|
105
|
+
!e || !h.value || !i || (e.setAttribute("id", c), e.setAttribute("aria-expanded", String(t)), e.setAttribute("aria-controls", b));
|
|
68
106
|
},
|
|
69
107
|
{ immediate: !0 }
|
|
70
|
-
),
|
|
108
|
+
), ve(
|
|
71
109
|
r,
|
|
72
110
|
([{ intersectionRatio: e }]) => {
|
|
73
|
-
e !== 1 &&
|
|
111
|
+
e !== 1 && n.value && l();
|
|
74
112
|
},
|
|
75
113
|
{ threshold: [0, 1] }
|
|
76
114
|
);
|
|
77
|
-
const
|
|
115
|
+
const v = (e) => {
|
|
78
116
|
const t = e.target;
|
|
79
117
|
if (!(t instanceof Node)) return;
|
|
80
|
-
const
|
|
81
|
-
!
|
|
82
|
-
},
|
|
83
|
-
e.key === "Escape" && (e.preventDefault(),
|
|
84
|
-
},
|
|
85
|
-
document.addEventListener("click",
|
|
86
|
-
},
|
|
87
|
-
document.removeEventListener("click",
|
|
88
|
-
},
|
|
89
|
-
if (o.
|
|
90
|
-
|
|
118
|
+
const i = V.value?.contains(t), P = r.value?.contains(t);
|
|
119
|
+
!i && !P && l();
|
|
120
|
+
}, $ = (e) => {
|
|
121
|
+
e.key === "Escape" && (e.preventDefault(), l());
|
|
122
|
+
}, Q = () => {
|
|
123
|
+
document.addEventListener("click", v, { passive: !0 }), document.addEventListener("contextmenu", v, { passive: !0 }), document.addEventListener("keydown", $);
|
|
124
|
+
}, Z = () => {
|
|
125
|
+
document.removeEventListener("click", v), document.removeEventListener("contextmenu", v), document.removeEventListener("keydown", $);
|
|
126
|
+
}, f = async () => {
|
|
127
|
+
if (o.disabled) return;
|
|
128
|
+
n.value = !0, Q(), await pe();
|
|
129
|
+
const e = o.focusTarget ?? (o.showClose ? ".bb-popover__close" : '[tabindex]:not([tabindex="-1"]), button, a, input, select, textarea'), t = V.value?.querySelector(e);
|
|
130
|
+
t instanceof HTMLElement && t.focus(), O("shown");
|
|
131
|
+
}, E = async (e) => {
|
|
132
|
+
if (n.value) {
|
|
133
|
+
l();
|
|
134
|
+
return;
|
|
135
|
+
}
|
|
136
|
+
if (m) {
|
|
137
|
+
m = !1, e.preventDefault(), e.stopPropagation();
|
|
91
138
|
return;
|
|
92
139
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
140
|
+
e.stopImmediatePropagation(), o.placement === "cursor" && (d.value = g(e.clientX, e.clientY)), await f();
|
|
141
|
+
}, L = (e) => {
|
|
142
|
+
o.disabled || (e.preventDefault(), e.stopPropagation(), !(o.placement === "cursor" && (d.value = g(e.clientX, e.clientY), n.value)) && (n.value ? l() : f()));
|
|
143
|
+
}, y = (e) => {
|
|
144
|
+
o.disabled || e.pointerType === "mouse" || (m = !1, a = { x: e.clientX, y: e.clientY }, D = setTimeout(() => {
|
|
145
|
+
m = !0, o.placement === "cursor" && a && (d.value = g(
|
|
146
|
+
a.x,
|
|
147
|
+
a.y
|
|
148
|
+
)), a = null, f();
|
|
149
|
+
}, Le));
|
|
150
|
+
}, k = (e) => {
|
|
151
|
+
if (!a) return;
|
|
152
|
+
const t = e.clientX - a.x, i = e.clientY - a.y;
|
|
153
|
+
Math.sqrt(t * t + i * i) > ye && w();
|
|
154
|
+
}, u = () => {
|
|
155
|
+
w();
|
|
156
|
+
}, l = () => {
|
|
157
|
+
n.value && (n.value = !1, Z(), o.restoreFocus && r.value && r.value.focus(), O("hidden"));
|
|
158
|
+
}, ee = s(() => {
|
|
159
|
+
if (!o.width) return !1;
|
|
160
|
+
const { unit: e } = U(o.width);
|
|
102
161
|
return e === "%";
|
|
103
|
-
}), { width:
|
|
104
|
-
s(() =>
|
|
162
|
+
}), { width: te } = fe(
|
|
163
|
+
s(() => ee.value ? r.value : void 0),
|
|
105
164
|
{ width: 0, height: 0 },
|
|
106
165
|
{ box: "border-box" }
|
|
107
|
-
),
|
|
108
|
-
if (!
|
|
109
|
-
const { value: e, unit: t } =
|
|
110
|
-
return t === "%" && r.value ? `${
|
|
166
|
+
), oe = s(() => {
|
|
167
|
+
if (!o.width) return;
|
|
168
|
+
const { value: e, unit: t } = U(o.width);
|
|
169
|
+
return t === "%" && r.value ? `${te.value * (e / 100)}px` : `${e}px`;
|
|
111
170
|
});
|
|
112
|
-
return
|
|
171
|
+
return _({
|
|
113
172
|
/** Opens the popover programmatically */
|
|
114
|
-
show:
|
|
173
|
+
show: f,
|
|
115
174
|
/** Closes the popover programmatically */
|
|
116
|
-
close:
|
|
175
|
+
close: l,
|
|
117
176
|
/** Whether the popover is currently open */
|
|
118
|
-
isOpen: s(() =>
|
|
119
|
-
}), (e, t) => (
|
|
120
|
-
|
|
121
|
-
props:
|
|
177
|
+
isOpen: s(() => n.value)
|
|
178
|
+
}), (e, t) => (Y(), se(le, null, [
|
|
179
|
+
h.value ? W("", !0) : G(e.$slots, "activator", de(X({ key: 0 }, {
|
|
180
|
+
props: j.value,
|
|
122
181
|
disabled: !!e.disabled,
|
|
123
|
-
isOpen:
|
|
182
|
+
isOpen: n.value,
|
|
124
183
|
placement: e.placement
|
|
125
184
|
}))),
|
|
126
|
-
|
|
127
|
-
id:
|
|
185
|
+
ue(we, X({
|
|
186
|
+
id: b,
|
|
128
187
|
ref_key: "popoverRef",
|
|
129
|
-
ref:
|
|
130
|
-
modelValue:
|
|
131
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
132
|
-
anchor:
|
|
133
|
-
"aria-labelledby":
|
|
188
|
+
ref: T,
|
|
189
|
+
modelValue: n.value,
|
|
190
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => n.value = i),
|
|
191
|
+
anchor: K.value,
|
|
192
|
+
"aria-labelledby": S(p) ? S(c) : void 0,
|
|
134
193
|
"arrow-padding": e.arrowPadding,
|
|
135
194
|
boundary: e.boundary,
|
|
136
195
|
class: ["bb-popover", `bb-popover--${e.theme}`],
|
|
137
196
|
dialog: "",
|
|
138
197
|
eager: e.eager,
|
|
139
198
|
offset: e.offset,
|
|
199
|
+
"hide-arrow": e.placement === "cursor",
|
|
140
200
|
padding: e.padding,
|
|
141
|
-
placement: e.placement,
|
|
142
|
-
style: { width:
|
|
201
|
+
placement: e.placement === "cursor" ? "bottom-start" : e.placement,
|
|
202
|
+
style: { width: oe.value },
|
|
143
203
|
"transition-duration": e.transitionDuration
|
|
144
204
|
}, e.$attrs), {
|
|
145
|
-
default:
|
|
146
|
-
|
|
205
|
+
default: F(() => [
|
|
206
|
+
B("span", {
|
|
147
207
|
class: "bb-popover__content",
|
|
148
|
-
inert: !
|
|
208
|
+
inert: !n.value
|
|
149
209
|
}, [
|
|
150
|
-
e.showClose ? (
|
|
210
|
+
e.showClose ? (Y(), ce(ge, {
|
|
151
211
|
key: 0,
|
|
152
|
-
"aria-label": e.closeLabel ||
|
|
212
|
+
"aria-label": e.closeLabel || S(z)("common.closeLabel").value,
|
|
153
213
|
class: "bb-popover__close",
|
|
154
|
-
onClick:
|
|
214
|
+
onClick: l
|
|
155
215
|
}, {
|
|
156
|
-
default:
|
|
157
|
-
|
|
216
|
+
default: F(() => t[1] || (t[1] = [
|
|
217
|
+
B("svg", {
|
|
158
218
|
"aria-hidden": "true",
|
|
159
219
|
fill: "none",
|
|
160
220
|
viewBox: "0 0 24 24",
|
|
161
221
|
xmlns: "http://www.w3.org/2000/svg"
|
|
162
222
|
}, [
|
|
163
|
-
|
|
223
|
+
B("path", {
|
|
164
224
|
d: "M23 23L1 1M23 1L1 23",
|
|
165
225
|
stroke: "currentColor",
|
|
166
226
|
"stroke-linecap": "round",
|
|
@@ -169,20 +229,20 @@ const ne = ["inert"], he = /* @__PURE__ */ G({
|
|
|
169
229
|
], -1)
|
|
170
230
|
])),
|
|
171
231
|
_: 1
|
|
172
|
-
}, 8, ["aria-label"])) :
|
|
173
|
-
|
|
174
|
-
close:
|
|
232
|
+
}, 8, ["aria-label"])) : W("", !0),
|
|
233
|
+
G(e.$slots, "default", {
|
|
234
|
+
close: l,
|
|
175
235
|
disabled: !!e.disabled,
|
|
176
|
-
open:
|
|
236
|
+
open: n.value,
|
|
177
237
|
placement: e.placement
|
|
178
238
|
})
|
|
179
|
-
], 8,
|
|
239
|
+
], 8, Ee)
|
|
180
240
|
]),
|
|
181
241
|
_: 3
|
|
182
|
-
}, 16, ["modelValue", "anchor", "aria-labelledby", "arrow-padding", "boundary", "class", "eager", "offset", "padding", "placement", "style", "transition-duration"])
|
|
242
|
+
}, 16, ["modelValue", "anchor", "aria-labelledby", "arrow-padding", "boundary", "class", "eager", "offset", "hide-arrow", "padding", "placement", "style", "transition-duration"])
|
|
183
243
|
], 64));
|
|
184
244
|
}
|
|
185
245
|
});
|
|
186
246
|
export {
|
|
187
|
-
|
|
247
|
+
De as default
|
|
188
248
|
};
|
package/dist/index97.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as r, computed as a, createElementBlock as l, openBlock 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 "./index216.js";
|
|
3
3
|
import { getAsPercentageBetween as i } from "./index139.js";
|
|
4
4
|
const _ = /* @__PURE__ */ r({
|
|
5
5
|
__name: "BbProgress",
|
|
@@ -190,7 +190,7 @@ export type CommonProps = {
|
|
|
190
190
|
*/
|
|
191
191
|
placeholder?: InputHTMLAttributes['placeholder'];
|
|
192
192
|
/**
|
|
193
|
-
* Position of the overlay in respect to the related activator
|
|
193
|
+
* Position of the overlay in respect to the related activator.
|
|
194
194
|
*/
|
|
195
195
|
placement?: 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end';
|
|
196
196
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isNotEmpty: (value: unknown) => boolean;
|
package/package.json
CHANGED
package/dist/index221.js
DELETED
package/dist/index226.js
DELETED
package/dist/index228.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { isNil as r } from "./index218.js";
|
|
2
|
-
const e = (t) => r(t) ? !0 : Array.isArray(t) || typeof t == "string" ? t.length === 0 : t instanceof Map || t instanceof Set ? t.size === 0 : typeof t == "number" ? Number.isNaN(t) : typeof t == "boolean" || typeof t == "function" ? !1 : typeof t == "object" ? "length" in t && typeof t.length == "number" ? t.length === 0 : Object.keys(t).length === 0 : !1;
|
|
3
|
-
export {
|
|
4
|
-
e as isEmpty
|
|
5
|
-
};
|
package/dist/index235.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { computed as u, unref as a } from "vue";
|
|
2
|
-
import { hash as d } from "./index227.js";
|
|
3
|
-
const p = ({
|
|
4
|
-
items: m,
|
|
5
|
-
key: e
|
|
6
|
-
}) => {
|
|
7
|
-
const n = (t) => e ? String(t[e]) : d(t), o = u(() => {
|
|
8
|
-
const t = {}, s = Array.from(a(m) ?? []);
|
|
9
|
-
for (let r = 0; r < s.length; r++) {
|
|
10
|
-
const c = s[r];
|
|
11
|
-
t[n(c)] = c;
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
});
|
|
15
|
-
return { data: o, get: (t) => o.value[n(t)] };
|
|
16
|
-
};
|
|
17
|
-
export {
|
|
18
|
-
p as useIndexById
|
|
19
|
-
};
|
package/dist/index294.js
DELETED
|
File without changes
|