bitboss-ui 2.0.170 → 2.0.171
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/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +12 -12
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +3 -3
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index138.js +1 -1
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +2 -5
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -5
- package/dist/index211.js +2 -5
- package/dist/index212.js +18 -5
- package/dist/index213.js +128 -5
- package/dist/index214.js +106 -5
- package/dist/index216.js +100 -3
- package/dist/index218.js +64 -6
- package/dist/index220.js +13 -52
- package/dist/index221.js +5 -43
- package/dist/index222.js +15 -5
- package/dist/index223.js +29 -60
- package/dist/index224.js +16 -13
- package/dist/index225.js +12 -2
- package/dist/index226.js +51 -4
- package/dist/index227.js +17 -2
- package/dist/index228.js +15 -34
- package/dist/index229.js +3 -2
- package/dist/index23.js +17 -17
- package/dist/index230.js +12 -2
- package/dist/index231.js +12 -85
- package/dist/index232.js +4 -0
- package/dist/index233.js +227 -28
- package/dist/index234.js +363 -12
- package/dist/index235.js +2 -51
- package/dist/index236.js +5 -15
- package/dist/index237.js +5 -12
- package/dist/index238.js +5 -16
- package/dist/index239.js +5 -3
- package/dist/index240.js +5 -4
- package/dist/index241.js +5 -41
- package/dist/index242.js +5 -20
- package/dist/index243.js +6 -92
- package/dist/{index219.js → index244.js} +6 -6
- package/dist/index245.js +41 -189
- package/dist/index246.js +46 -0
- package/dist/index247.js +4 -65
- package/dist/index248.js +62 -0
- package/dist/index249.js +5 -13
- package/dist/index25.js +5 -5
- package/dist/index250.js +2 -6
- package/dist/index251.js +41 -7
- package/dist/index252.js +19 -14
- package/dist/index253.js +93 -17
- package/dist/index255.js +9 -106
- package/dist/index256.js +6 -0
- package/dist/index257.js +194 -94
- package/dist/index259.js +7 -12
- package/dist/index260.js +86 -2
- package/dist/index262.js +33 -367
- package/dist/index263.js +2 -2
- package/dist/index264.js +2 -5
- package/dist/index265.js +3 -9
- package/dist/index267.js +9 -8
- package/dist/index268.js +2 -10
- package/dist/index269.js +6 -101
- package/dist/index27.js +1 -1
- package/dist/index270.js +18 -0
- package/dist/index271.js +11 -23
- package/dist/index272.js +101 -10
- package/dist/index274.js +3 -6
- package/dist/index275.js +8 -15
- package/dist/index276.js +23 -3
- package/dist/index277.js +2 -9
- package/dist/index278.js +9 -8
- package/dist/index279.js +8 -2
- package/dist/index280.js +5 -67
- package/dist/index281.js +67 -5
- package/dist/index282.js +1 -1
- package/dist/index283.js +1 -1
- package/dist/index284.js +4 -280
- package/dist/index285.js +4 -2
- package/dist/index286.js +128 -15
- package/dist/index287.js +3 -2
- package/dist/index288.js +3 -16
- package/dist/index289.js +3 -2
- package/dist/index29.js +3 -3
- package/dist/index291.js +7 -2
- package/dist/index292.js +2 -15
- package/dist/index293.js +2 -2
- package/dist/index294.js +17 -19
- package/dist/index295.js +28 -2
- package/dist/index296.js +7 -27
- package/dist/index297.js +11 -2
- package/dist/index298.js +280 -2
- package/dist/index299.js +2 -2
- package/dist/index300.js +16 -2
- package/dist/index301.js +2 -2
- package/dist/index302.js +15 -27
- package/dist/index303.js +2 -22
- package/dist/{index290.js → index304.js} +2 -2
- package/dist/index305.js +2 -7
- package/dist/index306.js +15 -7
- package/dist/index307.js +2 -11
- package/dist/index308.js +19 -4
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +26 -5
- package/dist/index311.js +2 -4
- package/dist/index312.js +2 -3
- package/dist/index313.js +2 -17
- package/dist/index314.js +2 -5
- package/dist/index315.js +2 -471
- package/dist/index316.js +22 -3
- package/dist/index318.js +125 -3
- package/dist/index319.js +4 -0
- package/dist/index320.js +457 -186
- package/dist/index321.js +3 -2
- package/dist/index322.js +3 -129
- package/dist/index323.js +382 -3
- package/dist/index324.js +126 -3
- package/dist/index325.js +1 -1
- package/dist/index326.js +3 -382
- package/dist/index327.js +5 -125
- package/dist/index328.js +196 -121
- package/dist/index329.js +5 -2
- package/dist/index33.js +8 -8
- package/dist/index330.js +701 -3
- package/dist/index331.js +354 -5
- package/dist/index332.js +58 -701
- package/dist/index333.js +3 -354
- package/dist/index334.js +5 -58
- package/dist/index335.js +47 -2
- package/dist/index336.js +2 -7
- package/dist/index337.js +32 -18
- package/dist/index338.js +28 -7
- package/dist/index340.js +57 -27
- package/dist/index341.js +60 -0
- package/dist/index342.js +6 -227
- package/dist/index343.js +8 -58
- package/dist/index344.js +6 -58
- package/dist/index345.js +8 -8
- package/dist/index346.js +5 -6
- package/dist/index347.js +7 -8
- package/dist/index348.js +19 -5
- package/dist/index349.js +227 -46
- package/dist/index35.js +4 -4
- package/dist/index350.js +1 -1
- package/dist/index351.js +484 -0
- package/dist/index353.js +3 -482
- package/dist/index355.js +1 -1
- package/dist/index37.js +22 -22
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +4 -4
- package/dist/index92.js +2 -2
- package/dist/index94.js +41 -40
- package/dist/index96.js +1 -1
- package/package.json +1 -1
- package/dist/index215.js +0 -7
- package/dist/index217.js +0 -4
- package/dist/index254.js +0 -130
- package/dist/index261.js +0 -230
- package/dist/index273.js +0 -5
- package/dist/index317.js +0 -5
- package/dist/index339.js +0 -35
- package/dist/index352.js +0 -5
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index209.js";
|
3
|
+
import { isNil as B } from "./index264.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index267.js";
|
11
|
+
import { noop as w } from "./index268.js";
|
12
|
+
import { useLocale as D } from "./index231.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index231.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
import { defineComponent as U, computed as V, ref as g, createBlock as L, openBlock as b, normalizeClass as R, withCtx as T, createElementBlock as D, createCommentVNode as _, unref as p, normalizeStyle as W, renderSlot as v, Fragment as F, renderList as G, createVNode as J, mergeProps as Q, createElementVNode as X, toDisplayString as Y, normalizeProps as Z, guardReactiveProps as x } from "vue";
|
2
|
-
import { findRightIndex as H } from "./
|
2
|
+
import { findRightIndex as H } from "./index275.js";
|
3
3
|
import { useId as ee } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as te } from "./index137.js";
|
5
|
-
import { useUntil as oe } from "./
|
5
|
+
import { useUntil as oe } from "./index271.js";
|
6
6
|
import { wait as ne } from "./index135.js";
|
7
7
|
import ae from "./index13.js";
|
8
8
|
/* empty css */
|
9
9
|
import A from "./index85.js";
|
10
10
|
/* empty css */
|
11
|
-
import le from "./
|
11
|
+
import le from "./index272.js";
|
12
12
|
/* empty css */
|
13
|
-
import B from "./
|
13
|
+
import B from "./index276.js";
|
14
14
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ U({
|
15
15
|
__name: "BbDropdown",
|
16
16
|
props: {
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index231.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index270.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index269.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.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, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index209.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index274.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, onBeforeUnmount as A, onMounted as re, watch as ue, createBlock as ce, openBlock as g, withCtx as de, createElementVNode as s, mergeProps as E, createElementBlock as $, createCommentVNode as T, renderSlot as n, createTextVNode as fe, toDisplayString as H, unref as ve, nextTick as pe } from "vue";
|
2
|
-
import { useFocusTrap as be } from "./
|
2
|
+
import { useFocusTrap as be } from "./index251.js";
|
3
3
|
import { useId as I } from "./index8.js";
|
4
4
|
import { wait as D } from "./index135.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import me from "./
|
5
|
+
import { useModalsState as b } from "./index259.js";
|
6
|
+
import me from "./index222.js";
|
7
7
|
import { useMobile as ye } from "./index9.js";
|
8
|
-
import { useLocale as he } from "./
|
8
|
+
import { useLocale as he } from "./index231.js";
|
9
9
|
const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
|
10
10
|
__name: "BbOffCanvas",
|
11
11
|
props: {
|
package/dist/index92.js
CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import { debounce as X } from "./
|
7
|
-
import { useLocale as H } from "./
|
6
|
+
import { debounce as X } from "./index255.js";
|
7
|
+
import { useLocale as H } from "./index231.js";
|
8
8
|
import { useRoute as J } from "./index142.js";
|
9
9
|
const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
|
10
10
|
__name: "BbPagination",
|
package/dist/index94.js
CHANGED
@@ -1,13 +1,13 @@
|
|
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 D, ref as c, computed as h, createBlock as g, openBlock as u, normalizeClass as M, withCtx as f, createElementBlock as z, createCommentVNode as k, unref as y, renderSlot as C, createElementVNode as m, toDisplayString as I, normalizeProps as O, guardReactiveProps as S, nextTick as H } from "vue";
|
2
|
+
import { useId as N } from "./index8.js";
|
3
|
+
import { useIntersectionObserver as U } from "./index137.js";
|
4
|
+
import { useLocale as W } from "./index231.js";
|
5
|
+
import { useUntil as q } from "./index271.js";
|
6
|
+
import A from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import R from "./index272.js";
|
9
9
|
/* empty css */
|
10
|
-
const
|
10
|
+
const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ D({
|
11
11
|
__name: "BbPopover",
|
12
12
|
props: {
|
13
13
|
arrowPadding: { default: 10 },
|
@@ -26,60 +26,61 @@ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @
|
|
26
26
|
width: {}
|
27
27
|
},
|
28
28
|
emits: ["shown", "hidden"],
|
29
|
-
setup(
|
30
|
-
const
|
31
|
-
|
29
|
+
setup($, { expose: L, emit: _ }) {
|
30
|
+
const t = $, n = _, { t: B } = W(), { id: P } = N(), i = `bbp_${P.value}`, r = c(), d = c();
|
31
|
+
U(
|
32
32
|
r,
|
33
33
|
async ([{ intersectionRatio: e }]) => {
|
34
34
|
e !== 1 && o.value && (await l(), n("hidden"));
|
35
35
|
},
|
36
36
|
{ threshold: [0, 1] }
|
37
37
|
);
|
38
|
-
const o = c(!1), T =
|
39
|
-
var
|
40
|
-
e.target instanceof HTMLElement && ((
|
41
|
-
},
|
38
|
+
const o = c(!1), T = q(o), v = (e) => {
|
39
|
+
var a;
|
40
|
+
e.target instanceof HTMLElement && ((a = d.value) != null && a.contains(e.target) || l());
|
41
|
+
}, E = async () => {
|
42
42
|
o.value = !0, document.addEventListener("click", v);
|
43
43
|
}, l = async () => {
|
44
44
|
o.value = !1, document.removeEventListener("click", v);
|
45
|
-
}, b = async () => {
|
46
|
-
var
|
45
|
+
}, b = async (e) => {
|
46
|
+
var w;
|
47
47
|
if (o.value) {
|
48
48
|
await l(), n("hidden");
|
49
49
|
return;
|
50
50
|
}
|
51
|
-
if (
|
52
|
-
|
53
|
-
|
51
|
+
if (t.disabled)
|
52
|
+
return;
|
53
|
+
e.stopImmediatePropagation(), await E();
|
54
|
+
let a = t.focusTarget ?? ".bb-popover__close";
|
54
55
|
await H();
|
55
|
-
const
|
56
|
-
|
56
|
+
const s = (w = d.value) == null ? void 0 : w.querySelector(a);
|
57
|
+
s instanceof HTMLElement && (s.focus(), n("shown"));
|
57
58
|
}, p = async () => {
|
58
59
|
await l(), n("hidden");
|
59
|
-
},
|
60
|
-
if (
|
60
|
+
}, V = h(() => {
|
61
|
+
if (t.width) {
|
61
62
|
let e;
|
62
|
-
return typeof
|
63
|
+
return typeof t.width == "string" && /^\d+[a-zA-Z%]+$/.test(t.width) ? t.width.includes("%") ? r.value ? `${r.value.$el.clientWidth * (+t.width.replace("%", "") / 100)}px` : void 0 : t.width : (e = `${t.width}px`, `${e}px`);
|
63
64
|
}
|
64
65
|
});
|
65
|
-
return
|
66
|
+
return L({
|
66
67
|
open: b,
|
67
68
|
close: p,
|
68
|
-
closed:
|
69
|
-
}), (e,
|
69
|
+
closed: h(() => !o.value)
|
70
|
+
}), (e, a) => (u(), g(R, {
|
70
71
|
ref_key: "wrapper",
|
71
72
|
ref: r,
|
72
73
|
modelValue: o.value,
|
73
|
-
"onUpdate:modelValue":
|
74
|
+
"onUpdate:modelValue": a[0] || (a[0] = (s) => o.value = s),
|
74
75
|
"arrow-padding": e.arrowPadding,
|
75
76
|
block: e.block,
|
76
|
-
class:
|
77
|
+
class: M(["bb-popover", {
|
77
78
|
[`bb-popover--${e.theme}`]: !0
|
78
79
|
}]),
|
79
80
|
"container-attributes": {
|
80
81
|
id: `popover_${i}`,
|
81
82
|
style: {
|
82
|
-
width:
|
83
|
+
width: V.value
|
83
84
|
}
|
84
85
|
},
|
85
86
|
offset: e.offset,
|
@@ -89,7 +90,7 @@ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @
|
|
89
90
|
"transition-duration": e.transitionDuration
|
90
91
|
}, {
|
91
92
|
activator: f(() => [
|
92
|
-
|
93
|
+
C(e.$slots, "activator", O(S({
|
93
94
|
props: {
|
94
95
|
"aria-controls": `popover_${i}`,
|
95
96
|
"aria-expanded": o.value,
|
@@ -103,21 +104,21 @@ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @
|
|
103
104
|
})))
|
104
105
|
]),
|
105
106
|
default: f(() => [
|
106
|
-
|
107
|
+
y(T) ? (u(), z("span", {
|
107
108
|
key: 0,
|
108
109
|
ref_key: "content",
|
109
110
|
ref: d,
|
110
111
|
class: "bb-popover__content",
|
111
112
|
inert: !o.value
|
112
113
|
}, [
|
113
|
-
e.showClose ? (u(),
|
114
|
+
e.showClose ? (u(), g(A, {
|
114
115
|
key: 0,
|
115
116
|
class: "bb-popover__close",
|
116
117
|
onClick: p
|
117
118
|
}, {
|
118
119
|
default: f(() => [
|
119
|
-
m("span",
|
120
|
-
|
120
|
+
m("span", j, I(e.closeLabel || y(B)("common.closeLabel").value), 1),
|
121
|
+
a[1] || (a[1] = m("svg", {
|
121
122
|
fill: "none",
|
122
123
|
viewBox: "0 0 24 24",
|
123
124
|
xmlns: "http://www.w3.org/2000/svg"
|
@@ -131,19 +132,19 @@ const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @
|
|
131
132
|
], -1))
|
132
133
|
]),
|
133
134
|
_: 1
|
134
|
-
})) :
|
135
|
-
|
135
|
+
})) : k("", !0),
|
136
|
+
C(e.$slots, "default", {
|
136
137
|
close: p,
|
137
138
|
disabled: !!e.disabled,
|
138
139
|
open: o.value,
|
139
140
|
placement: e.placement
|
140
141
|
})
|
141
|
-
], 8,
|
142
|
+
], 8, Z)) : k("", !0)
|
142
143
|
]),
|
143
144
|
_: 3
|
144
145
|
}, 8, ["modelValue", "arrow-padding", "block", "class", "container-attributes", "offset", "padding", "placement", "transition-duration"]));
|
145
146
|
}
|
146
147
|
});
|
147
148
|
export {
|
148
|
-
|
149
|
+
oe as default
|
149
150
|
};
|
package/dist/index96.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 "./index207.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index136.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index215.js
DELETED
package/dist/index217.js
DELETED
package/dist/index254.js
DELETED
@@ -1,130 +0,0 @@
|
|
1
|
-
import { arrow as j, computePosition as A } from "./index262.js";
|
2
|
-
import { autoUpdate as W, flip as X, offset as Y, platform as Z, shift as ee } from "./index262.js";
|
3
|
-
import { isNode as B, getNodeName as F } from "./index322.js";
|
4
|
-
import { getOverflowAncestors as te } from "./index322.js";
|
5
|
-
import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
|
6
|
-
function z(e) {
|
7
|
-
return e != null && typeof e == "object" && "$el" in e;
|
8
|
-
}
|
9
|
-
function V(e) {
|
10
|
-
if (z(e)) {
|
11
|
-
const l = e.$el;
|
12
|
-
return B(l) && F(l) === "#comment" ? null : l;
|
13
|
-
}
|
14
|
-
return e;
|
15
|
-
}
|
16
|
-
function i(e) {
|
17
|
-
return typeof e == "function" ? e() : q(e);
|
18
|
-
}
|
19
|
-
function K(e) {
|
20
|
-
return {
|
21
|
-
name: "arrow",
|
22
|
-
options: e,
|
23
|
-
fn(l) {
|
24
|
-
const t = V(i(e.element));
|
25
|
-
return t == null ? {} : j({
|
26
|
-
element: t,
|
27
|
-
padding: e.padding
|
28
|
-
}).fn(l);
|
29
|
-
}
|
30
|
-
};
|
31
|
-
}
|
32
|
-
function M(e) {
|
33
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
34
|
-
}
|
35
|
-
function C(e, l) {
|
36
|
-
const t = M(e);
|
37
|
-
return Math.round(l * t) / t;
|
38
|
-
}
|
39
|
-
function L(e, l, t) {
|
40
|
-
t === void 0 && (t = {});
|
41
|
-
const D = t.whileElementsMounted, s = r(() => {
|
42
|
-
var n;
|
43
|
-
return (n = i(t.open)) != null ? n : !0;
|
44
|
-
}), O = r(() => i(t.middleware)), p = r(() => {
|
45
|
-
var n;
|
46
|
-
return (n = i(t.placement)) != null ? n : "bottom";
|
47
|
-
}), w = r(() => {
|
48
|
-
var n;
|
49
|
-
return (n = i(t.strategy)) != null ? n : "absolute";
|
50
|
-
}), S = r(() => {
|
51
|
-
var n;
|
52
|
-
return (n = i(t.transform)) != null ? n : !0;
|
53
|
-
}), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
|
54
|
-
const n = {
|
55
|
-
position: m.value,
|
56
|
-
left: "0",
|
57
|
-
top: "0"
|
58
|
-
};
|
59
|
-
if (!u.value)
|
60
|
-
return n;
|
61
|
-
const a = C(u.value, y.value), b = C(u.value, h.value);
|
62
|
-
return S.value ? {
|
63
|
-
...n,
|
64
|
-
transform: "translate(" + a + "px, " + b + "px)",
|
65
|
-
...M(u.value) >= 1.5 && {
|
66
|
-
willChange: "transform"
|
67
|
-
}
|
68
|
-
} : {
|
69
|
-
position: m.value,
|
70
|
-
left: a + "px",
|
71
|
-
top: b + "px"
|
72
|
-
};
|
73
|
-
});
|
74
|
-
let d;
|
75
|
-
function v() {
|
76
|
-
if (f.value == null || u.value == null)
|
77
|
-
return;
|
78
|
-
const n = s.value;
|
79
|
-
A(f.value, u.value, {
|
80
|
-
middleware: O.value,
|
81
|
-
placement: p.value,
|
82
|
-
strategy: w.value
|
83
|
-
}).then((a) => {
|
84
|
-
y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
|
85
|
-
});
|
86
|
-
}
|
87
|
-
function R() {
|
88
|
-
typeof d == "function" && (d(), d = void 0);
|
89
|
-
}
|
90
|
-
function N() {
|
91
|
-
if (R(), D === void 0) {
|
92
|
-
v();
|
93
|
-
return;
|
94
|
-
}
|
95
|
-
if (f.value != null && u.value != null) {
|
96
|
-
d = D(f.value, u.value, v);
|
97
|
-
return;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
function $() {
|
101
|
-
s.value || (g.value = !1);
|
102
|
-
}
|
103
|
-
return x([O, p, w, s], v, {
|
104
|
-
flush: "sync"
|
105
|
-
}), x([f, u], N, {
|
106
|
-
flush: "sync"
|
107
|
-
}), x(s, $, {
|
108
|
-
flush: "sync"
|
109
|
-
}), U() && k(R), {
|
110
|
-
x: o(y),
|
111
|
-
y: o(h),
|
112
|
-
strategy: o(m),
|
113
|
-
placement: o(P),
|
114
|
-
middlewareData: o(E),
|
115
|
-
isPositioned: o(g),
|
116
|
-
floatingStyles: _,
|
117
|
-
update: v
|
118
|
-
};
|
119
|
-
}
|
120
|
-
export {
|
121
|
-
K as arrow,
|
122
|
-
W as autoUpdate,
|
123
|
-
A as computePosition,
|
124
|
-
X as flip,
|
125
|
-
te as getOverflowAncestors,
|
126
|
-
Y as offset,
|
127
|
-
Z as platform,
|
128
|
-
ee as shift,
|
129
|
-
L as useFloating
|
130
|
-
};
|