bitboss-ui 2.1.29 → 2.1.31
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/index106.js +7 -7
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +32 -84
- package/dist/index21.js +16 -16
- package/dist/index210.js +15 -0
- package/dist/index211.js +13 -29
- package/dist/index212.js +9 -15
- package/dist/index213.js +5 -51
- package/dist/index214.js +5 -15
- package/dist/index215.js +5 -3
- package/dist/index216.js +5 -12
- package/dist/index217.js +5 -16
- package/dist/index218.js +5 -4
- package/dist/index219.js +2 -13
- package/dist/index220.js +2 -11
- package/dist/index221.js +2 -20
- package/dist/index222.js +18 -195
- package/dist/{index224.js → index223.js} +2 -2
- package/dist/index225.js +15 -0
- package/dist/index226.js +117 -13
- package/dist/index228.js +4 -0
- package/dist/index229.js +4 -2
- package/dist/index23.js +15 -15
- package/dist/index230.js +2 -4
- package/dist/index231.js +49 -32
- package/dist/index232.js +17 -2
- package/dist/index233.js +106 -2
- package/dist/index235.js +100 -12
- package/dist/index237.js +4 -106
- package/dist/index238.js +199 -0
- package/dist/index240.js +88 -0
- package/dist/index242.js +29 -2
- package/dist/index243.js +15 -2
- package/dist/index244.js +3 -6
- package/dist/index245.js +12 -2
- package/dist/index246.js +16 -5
- package/dist/index247.js +183 -5
- package/dist/index248.js +3 -5
- package/dist/index249.js +2 -5
- package/dist/index25.js +3 -3
- package/dist/index250.js +2 -5
- package/dist/index251.js +7 -5
- package/dist/index252.js +7 -3
- package/dist/index253.js +5 -2
- package/dist/index254.js +5 -7
- package/dist/index255.js +8 -7
- package/dist/index256.js +249 -12
- package/dist/index257.js +52 -5
- package/dist/index258.js +44 -5
- package/dist/index259.js +5 -8
- package/dist/index260.js +53 -243
- package/dist/index261.js +7 -52
- package/dist/index262.js +16 -42
- package/dist/index263.js +12 -5
- package/dist/index264.js +5 -59
- package/dist/index265.js +226 -180
- package/dist/index268.js +6 -9
- package/dist/index269.js +16 -23
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -6
- package/dist/index271.js +8 -15
- package/dist/index272.js +23 -3
- package/dist/index274.js +1 -1
- package/dist/index276.js +67 -2
- package/dist/index277.js +5 -5
- package/dist/index278.js +4 -7
- package/dist/index279.js +8 -5
- package/dist/index280.js +2 -67
- package/dist/index281.js +2 -3
- package/dist/index282.js +4 -17
- package/dist/index284.js +7 -3
- package/dist/index285.js +1 -1
- package/dist/index286.js +6 -0
- package/dist/index287.js +6 -6
- package/dist/index288.js +11 -3
- package/dist/index289.js +3 -7
- package/dist/index29.js +23 -24
- package/dist/index290.js +3 -11
- package/dist/index291.js +17 -4
- package/dist/index292.js +3 -4
- package/dist/index293.js +3 -2
- package/dist/index294.js +1 -1
- package/dist/index295.js +28 -3
- package/dist/index296.js +280 -2
- package/dist/index297.js +2 -280
- package/dist/index298.js +125 -2
- package/dist/index299.js +2 -125
- package/dist/index300.js +15 -2
- package/dist/index301.js +2 -15
- package/dist/index302.js +16 -2
- package/dist/index303.js +2 -16
- package/dist/index304.js +16 -2
- package/dist/index305.js +2 -16
- package/dist/index306.js +19 -2
- package/dist/index307.js +2 -19
- package/dist/index308.js +5 -2
- package/dist/index309.js +6 -5
- package/dist/index31.js +2 -2
- package/dist/index310.js +18 -5
- package/dist/index311.js +2 -19
- package/dist/index312.js +27 -2
- package/dist/index313.js +2 -27
- package/dist/index314.js +2 -2
- package/dist/index315.js +1 -1
- package/dist/index316.js +1 -1
- package/dist/index317.js +1 -1
- package/dist/index318.js +21 -1
- package/dist/index320.js +4 -0
- package/dist/index321.js +718 -5
- package/dist/index322.js +363 -715
- package/dist/index323.js +58 -366
- package/dist/index324.js +5 -58
- package/dist/index325.js +1 -1
- package/dist/index326.js +32 -227
- package/dist/index327.js +28 -33
- package/dist/index329.js +10 -0
- package/dist/index33.js +8 -8
- package/dist/index330.js +5 -6
- package/dist/index331.js +8 -19
- package/dist/index332.js +8 -7
- package/dist/index333.js +128 -7
- package/dist/index334.js +353 -113
- package/dist/index335.js +56 -367
- package/dist/index336.js +58 -47
- package/dist/index337.js +227 -57
- package/dist/index338.js +7 -58
- package/dist/index339.js +6 -7
- package/dist/index340.js +18 -5
- package/dist/index341.js +47 -8
- package/dist/index342.js +1 -1
- package/dist/index344.js +1 -1
- package/dist/index35.js +4 -4
- package/dist/index37.js +20 -20
- package/dist/index39.js +6 -6
- 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 +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +1 -1
- 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 +3 -3
- package/dist/index92.js +1 -1
- package/dist/index94.js +3 -3
- package/package.json +1 -1
- package/dist/index227.js +0 -119
- package/dist/index234.js +0 -20
- package/dist/index236.js +0 -8
- package/dist/index239.js +0 -102
- package/dist/index241.js +0 -231
- package/dist/index283.js +0 -30
- package/dist/index319.js +0 -24
- package/dist/index328.js +0 -30
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index228.js";
|
3
3
|
import { wait as C } from "./index135.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
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 "./index228.js";
|
3
|
+
import { isNil as B } from "./index250.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
@@ -9,7 +9,7 @@ import T from "./index113.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import { pickBy as W } from "./index266.js";
|
11
11
|
import { noop as w } from "./index267.js";
|
12
|
-
import { useLocale as D } from "./
|
12
|
+
import { useLocale as D } from "./index211.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 "./index211.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,15 +1,15 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
-
import { findRightIndex as T } from "./
|
2
|
+
import { findRightIndex as T } from "./index271.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index212.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index226.js";
|
11
11
|
/* empty css */
|
12
|
-
import K from "./
|
12
|
+
import K from "./index272.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
|
14
14
|
__name: "BbDropdown",
|
15
15
|
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 "./index211.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 "./index269.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("./index268.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 "./index228.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 "./index270.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as P, mergeModels as T, useModel as q, computed as v, ref as z, watch as A, onMounted as H, createElementBlock as r, openBlock as d, withModifiers as K, normalizeStyle as R, normalizeClass as U, unref as p, createCommentVNode as y, Fragment as j, createElementVNode as t, renderSlot as l, createTextVNode as G, toDisplayString as D, nextTick as J } from "vue";
|
2
|
-
import { parseSize as Q } from "./
|
2
|
+
import { parseSize as Q } from "./index210.js";
|
3
3
|
import { useId as S } from "./index8.js";
|
4
|
-
import { useLocale as X } from "./
|
4
|
+
import { useLocale as X } from "./index211.js";
|
5
5
|
import { useMobile as Y } from "./index9.js";
|
6
|
-
import { useUntil as Z } from "./
|
6
|
+
import { useUntil as Z } from "./index212.js";
|
7
7
|
import { wait as h } from "./index135.js";
|
8
8
|
const x = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], ee = {
|
9
9
|
ref: "header",
|
package/dist/index92.js
CHANGED
@@ -4,7 +4,7 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
6
|
import { debounce as X } from "./index273.js";
|
7
|
-
import { useLocale as H } from "./
|
7
|
+
import { useLocale as H } from "./index211.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,11 +1,11 @@
|
|
1
1
|
import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
|
2
2
|
import { useId as H } from "./index8.js";
|
3
3
|
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
-
import { useLocale as U } from "./
|
5
|
-
import { useUntil as W } from "./
|
4
|
+
import { useLocale as U } from "./index211.js";
|
5
|
+
import { useUntil as W } from "./index212.js";
|
6
6
|
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import A from "./
|
8
|
+
import A from "./index226.js";
|
9
9
|
/* empty css */
|
10
10
|
const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
|
11
11
|
__name: "BbPopover",
|
package/package.json
CHANGED
package/dist/index227.js
DELETED
@@ -1,119 +0,0 @@
|
|
1
|
-
import { defineComponent as V, mergeModels as A, useModel as x, ref as l, watch as S, onMounted as z, computed as E, createBlock as b, openBlock as v, resolveDynamicComponent as g, normalizeStyle as F, normalizeClass as N, unref as n, withCtx as w, renderSlot as y, createCommentVNode as q, mergeProps as h, createElementVNode as C } from "vue";
|
2
|
-
import { useMinimalQueue as Q } from "./index333.js";
|
3
|
-
import { wait as U } from "./index135.js";
|
4
|
-
import { useFloating as j, arrow as G } from "./index334.js";
|
5
|
-
import { flip as H, offset as I, shift as J, hide as K, autoUpdate as L } from "./index335.js";
|
6
|
-
const O = { class: "bb-common-popover__bubble" }, ee = /* @__PURE__ */ V({
|
7
|
-
__name: "CommonPopover",
|
8
|
-
props: /* @__PURE__ */ A({
|
9
|
-
arrowPadding: {},
|
10
|
-
offset: {},
|
11
|
-
block: { type: Boolean },
|
12
|
-
padding: { default: 0 },
|
13
|
-
placement: {},
|
14
|
-
transitionDuration: { default: 250 },
|
15
|
-
containerAttributes: {},
|
16
|
-
dialog: { type: Boolean },
|
17
|
-
renderContent: { type: Boolean, default: !0 },
|
18
|
-
tag: { default: "span" },
|
19
|
-
flip: { type: Boolean, default: !0 }
|
20
|
-
}, {
|
21
|
-
modelValue: { type: Boolean, default: !1 },
|
22
|
-
modelModifiers: {}
|
23
|
-
}),
|
24
|
-
emits: ["update:modelValue"],
|
25
|
-
setup(s) {
|
26
|
-
const o = s, a = x(s, "modelValue"), i = l(), t = l(), p = l(), { floatingStyles: k, placement: _, middlewareData: r, update: M } = j(
|
27
|
-
i,
|
28
|
-
t,
|
29
|
-
{
|
30
|
-
placement: o.placement,
|
31
|
-
whileElementsMounted: L,
|
32
|
-
middleware: [
|
33
|
-
...o.flip ? [H()] : [],
|
34
|
-
I(o.offset),
|
35
|
-
J({ padding: o.padding }),
|
36
|
-
K(),
|
37
|
-
G({
|
38
|
-
element: p,
|
39
|
-
padding: o.arrowPadding
|
40
|
-
})
|
41
|
-
],
|
42
|
-
strategy: "fixed"
|
43
|
-
}
|
44
|
-
), { queueFunction: B } = Q(), u = B(async (e) => {
|
45
|
-
e ? (M(), P()) : (await U(o.transitionDuration), t.value && (o.dialog ? t.value.close() : t.value.hidePopover()));
|
46
|
-
}), P = () => {
|
47
|
-
if (!t.value) return;
|
48
|
-
if (!o.dialog) return t.value.showPopover();
|
49
|
-
t.value.showModal();
|
50
|
-
};
|
51
|
-
S(a, u, { flush: "post" }), z(() => {
|
52
|
-
a.value && u(a.value);
|
53
|
-
});
|
54
|
-
const $ = E(() => {
|
55
|
-
if (r.value.arrow) {
|
56
|
-
const { x: e, y: d } = r.value.arrow;
|
57
|
-
return {
|
58
|
-
style: {
|
59
|
-
left: `${e}px`,
|
60
|
-
top: `${d}px`
|
61
|
-
}
|
62
|
-
};
|
63
|
-
}
|
64
|
-
}), D = () => {
|
65
|
-
a.value = !1;
|
66
|
-
};
|
67
|
-
return (e, d) => (v(), b(g(e.dialog ? "div" : e.tag), {
|
68
|
-
ref_key: "wrapper",
|
69
|
-
ref: i,
|
70
|
-
class: N(["bb-common-popover", {
|
71
|
-
"bb-common-popover--open": a.value && !!t.value,
|
72
|
-
"bb-common-popover--block": o.block,
|
73
|
-
[`bb-common-popover--${n(_)}`]: !0
|
74
|
-
}]),
|
75
|
-
style: F({
|
76
|
-
"--transition-duration": `${o.transitionDuration}ms`
|
77
|
-
})
|
78
|
-
}, {
|
79
|
-
default: w(() => {
|
80
|
-
var m, c, f;
|
81
|
-
return [
|
82
|
-
y(e.$slots, "activator"),
|
83
|
-
e.renderContent ? (v(), b(g(e.dialog ? "dialog" : e.tag), h({
|
84
|
-
key: 0,
|
85
|
-
ref_key: "content",
|
86
|
-
ref: t,
|
87
|
-
class: ["bb-common-popover__bubble-container", {
|
88
|
-
"bb-common-popover__bubble-container--open": a.value && !!t.value
|
89
|
-
}],
|
90
|
-
popover: "manual",
|
91
|
-
style: {
|
92
|
-
...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
|
93
|
-
...n(k),
|
94
|
-
"--arrow-offset-x": Math.round(((f = (c = n(r)) == null ? void 0 : c.arrow) == null ? void 0 : f.x) ?? 0) + "px",
|
95
|
-
"--page-padding": `${e.padding}px`
|
96
|
-
},
|
97
|
-
tabindex: a.value ? void 0 : -1
|
98
|
-
}, e.containerAttributes, { onClose: n(D) }), {
|
99
|
-
default: w(() => [
|
100
|
-
C("span", h({
|
101
|
-
ref_key: "bubblearrow",
|
102
|
-
ref: p,
|
103
|
-
class: "bb-common-popover__arrow"
|
104
|
-
}, $.value), null, 16),
|
105
|
-
C("span", O, [
|
106
|
-
y(e.$slots, "default")
|
107
|
-
])
|
108
|
-
]),
|
109
|
-
_: 3
|
110
|
-
}, 16, ["class", "style", "tabindex", "onClose"])) : q("", !0)
|
111
|
-
];
|
112
|
-
}),
|
113
|
-
_: 3
|
114
|
-
}, 8, ["class", "style"]));
|
115
|
-
}
|
116
|
-
});
|
117
|
-
export {
|
118
|
-
ee as default
|
119
|
-
};
|
package/dist/index234.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { isNil as c } from "./index245.js";
|
2
|
-
const a = (t, r) => {
|
3
|
-
if (!Object.prototype.hasOwnProperty.call(t, r))
|
4
|
-
throw new Error(
|
5
|
-
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
6
|
-
);
|
7
|
-
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
8
|
-
const i = s.toLocaleLowerCase();
|
9
|
-
for (let e = 0; e < r.length; e++) {
|
10
|
-
const n = r[e];
|
11
|
-
a(t, n);
|
12
|
-
const o = t[n];
|
13
|
-
if (c(o)) continue;
|
14
|
-
if (l(o).includes(i)) return !0;
|
15
|
-
}
|
16
|
-
return !1;
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
y as matchAnyKey
|
20
|
-
};
|
package/dist/index236.js
DELETED
package/dist/index239.js
DELETED
@@ -1,102 +0,0 @@
|
|
1
|
-
import { defineComponent as F, ref as H, computed as L, watch as N, createElementBlock as d, openBlock as v, Fragment as S, renderList as A, withModifiers as O, normalizeClass as P, toDisplayString as V } from "vue";
|
2
|
-
import { hash as f } from "./index215.js";
|
3
|
-
import { isNil as i } from "./index245.js";
|
4
|
-
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
5
|
-
__name: "CommaBox",
|
6
|
-
props: {
|
7
|
-
options: {}
|
8
|
-
},
|
9
|
-
emits: ["option:unselected"],
|
10
|
-
setup(m, { expose: h, emit: x }) {
|
11
|
-
const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
|
12
|
-
const s = i(n.value) ? -1 : n.value;
|
13
|
-
let o = (s + e) % t.options.length;
|
14
|
-
for (; t.options[o].disabled && o !== s; )
|
15
|
-
o = u(e + 1);
|
16
|
-
return o;
|
17
|
-
}, b = () => {
|
18
|
-
if (!l.value) return;
|
19
|
-
const e = u();
|
20
|
-
n.value = e;
|
21
|
-
}, c = (e = 1) => {
|
22
|
-
const s = i(n.value) ? 0 : n.value;
|
23
|
-
let o = (s - e + t.options.length) % t.options.length;
|
24
|
-
for (; t.options[o].disabled && o !== s; )
|
25
|
-
o = c(e + 1);
|
26
|
-
return o;
|
27
|
-
}, w = async () => {
|
28
|
-
if (!l.value) return;
|
29
|
-
const e = c();
|
30
|
-
n.value = e;
|
31
|
-
}, I = () => {
|
32
|
-
if (!l.value) return;
|
33
|
-
let e = 0;
|
34
|
-
for (; t.options[e].disabled; )
|
35
|
-
e++;
|
36
|
-
n.value = e;
|
37
|
-
}, g = () => {
|
38
|
-
if (!l.value) return;
|
39
|
-
let e = t.options.length - 1;
|
40
|
-
for (; t.options[e].disabled && e !== 0; )
|
41
|
-
e--;
|
42
|
-
n.value = e;
|
43
|
-
}, k = () => {
|
44
|
-
if (!l.value) return;
|
45
|
-
let e = 0;
|
46
|
-
for (; !t.options[e].selected && t.options.length !== e; )
|
47
|
-
e++;
|
48
|
-
n.value = e;
|
49
|
-
}, _ = () => {
|
50
|
-
if (!l.value) return;
|
51
|
-
let e = t.options.length - 1;
|
52
|
-
for (; t.options[e].selected && e !== 0; )
|
53
|
-
e--;
|
54
|
-
n.value = e;
|
55
|
-
}, C = (e) => {
|
56
|
-
if (!l.value) return;
|
57
|
-
const s = t.options.findIndex(
|
58
|
-
(o) => o.valueHash === e
|
59
|
-
);
|
60
|
-
s >= 0 && (n.value = s);
|
61
|
-
}, r = () => {
|
62
|
-
n.value = null;
|
63
|
-
}, y = () => {
|
64
|
-
if (i(n.value)) return;
|
65
|
-
const e = t.options[n.value];
|
66
|
-
e.selected && a("option:unselected", e);
|
67
|
-
}, B = () => i(n.value) ? void 0 : t.options[n.value];
|
68
|
-
return N(
|
69
|
-
() => t.options,
|
70
|
-
(e, s) => {
|
71
|
-
f(e) !== f(s) && r();
|
72
|
-
},
|
73
|
-
{
|
74
|
-
flush: "post"
|
75
|
-
}
|
76
|
-
), h({
|
77
|
-
focusNext: b,
|
78
|
-
focusPrevious: w,
|
79
|
-
focusFirst: I,
|
80
|
-
focusFirstSelected: k,
|
81
|
-
focusLast: g,
|
82
|
-
focusLastSelected: _,
|
83
|
-
blur: r,
|
84
|
-
confirmOption: y,
|
85
|
-
focusByHash: C,
|
86
|
-
getHighlighted: B
|
87
|
-
}), (e, s) => (v(!0), d(S, null, A(e.options, (o, p) => (v(), d("span", {
|
88
|
-
key: o.valueHash,
|
89
|
-
class: P({
|
90
|
-
"bb-commabox-item": !0,
|
91
|
-
"bb-commabox-item--focused": p === n.value,
|
92
|
-
"bb-commabox-item--has-comma": p !== e.options.length - 1
|
93
|
-
}),
|
94
|
-
clearable: !0,
|
95
|
-
text: o.text,
|
96
|
-
"onClick:clear": O((D) => a("option:unselected", o), ["stop"])
|
97
|
-
}, V(o.text), 43, z))), 128));
|
98
|
-
}
|
99
|
-
});
|
100
|
-
export {
|
101
|
-
j as default
|
102
|
-
};
|
package/dist/index241.js
DELETED
@@ -1,231 +0,0 @@
|
|
1
|
-
import { defineComponent as U, ref as f, computed as x, watch as D, createElementBlock as d, openBlock as p, withModifiers as X, normalizeStyle as h, normalizeClass as $, createElementVNode as v, renderSlot as m, createTextVNode as z, toDisplayString as g, unref as H, Fragment as Z, renderList as ee } from "vue";
|
2
|
-
import { isNil as b } from "./index245.js";
|
3
|
-
import { useVirtualizer as te } from "./index336.js";
|
4
|
-
import { isNotNil as oe } from "./index140.js";
|
5
|
-
import { hash as L } from "./index215.js";
|
6
|
-
import { useLocale as ne } from "./index219.js";
|
7
|
-
const le = { class: "bb-listbox__outer-container scrollbar-border" }, ie = {
|
8
|
-
key: 0,
|
9
|
-
class: "bb-listbox__loading"
|
10
|
-
}, se = {
|
11
|
-
key: 1,
|
12
|
-
class: "bb-listbox__no-data"
|
13
|
-
}, ae = ["aria-selected", "data-index"], ue = { class: "autocomplete-option__label" }, be = /* @__PURE__ */ U({
|
14
|
-
__name: "ListBox",
|
15
|
-
props: {
|
16
|
-
compact: { type: Boolean },
|
17
|
-
options: {},
|
18
|
-
open: { type: Boolean },
|
19
|
-
loading: { type: Boolean },
|
20
|
-
multiple: { type: Boolean },
|
21
|
-
transitionDuration: { default: 250 },
|
22
|
-
loadingText: {},
|
23
|
-
noDataText: {}
|
24
|
-
},
|
25
|
-
emits: ["option:selected", "option:unselected"],
|
26
|
-
setup(N, { expose: V, emit: O }) {
|
27
|
-
const o = N, y = O, { t: I } = ne(), s = f(null), C = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = x(
|
28
|
-
() => o.options.map((e) => ({ ...e, id: C(e.value) }))
|
29
|
-
), c = te({
|
30
|
-
get count() {
|
31
|
-
return o.options.length;
|
32
|
-
},
|
33
|
-
getScrollElement: () => s.value ? s.value : null,
|
34
|
-
estimateSize: () => o.compact ? 32 : 40,
|
35
|
-
overscan: 5,
|
36
|
-
measureElement: () => o.compact ? 32 : 40,
|
37
|
-
useAnimationFrameWithResizeObserver: !0
|
38
|
-
}), F = (e) => {
|
39
|
-
e && c.value.measureElement(e);
|
40
|
-
}, M = x(() => c.value.getVirtualItems()), A = x(() => c.value.getTotalSize()), n = f(null), a = x(
|
41
|
-
() => o.open && o.options.some((e) => !e.disabled)
|
42
|
-
), _ = (e = 1) => {
|
43
|
-
const l = b(n.value) ? -1 : n.value;
|
44
|
-
let t = (l + e) % o.options.length;
|
45
|
-
for (; o.options[t].disabled && t !== l; )
|
46
|
-
t = _(e + 1);
|
47
|
-
return t;
|
48
|
-
}, R = () => {
|
49
|
-
if (!a.value) return;
|
50
|
-
const e = _();
|
51
|
-
n.value = e, u();
|
52
|
-
}, S = (e = 1) => {
|
53
|
-
const l = b(n.value) ? 0 : n.value;
|
54
|
-
let t = (l - e + o.options.length) % o.options.length;
|
55
|
-
for (; o.options[t].disabled && t !== l; )
|
56
|
-
t = S(e + 1);
|
57
|
-
return t;
|
58
|
-
}, P = async () => {
|
59
|
-
if (!a.value) return;
|
60
|
-
const e = S();
|
61
|
-
n.value = e, u();
|
62
|
-
}, W = () => {
|
63
|
-
if (!a.value) return;
|
64
|
-
let e = 0;
|
65
|
-
for (; o.options[e].disabled; )
|
66
|
-
e++;
|
67
|
-
n.value = e, u();
|
68
|
-
}, q = () => {
|
69
|
-
if (!a.value) return;
|
70
|
-
let e = o.options.length - 1;
|
71
|
-
for (; o.options[e].disabled && e !== 0; )
|
72
|
-
e--;
|
73
|
-
n.value = e, u();
|
74
|
-
}, J = () => {
|
75
|
-
if (!a.value) return;
|
76
|
-
let e = 0;
|
77
|
-
for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
|
78
|
-
e++;
|
79
|
-
n.value = e % o.options.length, u();
|
80
|
-
}, Y = () => {
|
81
|
-
if (!a.value) return;
|
82
|
-
let e = o.options.length - 1;
|
83
|
-
for (; o.options[e].selected && e > 0; )
|
84
|
-
e--;
|
85
|
-
n.value = e === -1 ? o.options.length - 1 : e, u();
|
86
|
-
}, j = (e) => {
|
87
|
-
if (!a.value) return;
|
88
|
-
const l = o.options.findIndex(
|
89
|
-
(t) => t.valueHash === e
|
90
|
-
);
|
91
|
-
l >= 0 && (n.value = l), u();
|
92
|
-
}, k = () => {
|
93
|
-
n.value = null;
|
94
|
-
}, u = () => {
|
95
|
-
s.value && oe(n.value) && c.value.scrollToIndex(n.value, {
|
96
|
-
align: "center",
|
97
|
-
behavior: "smooth"
|
98
|
-
});
|
99
|
-
}, w = () => {
|
100
|
-
if (b(n.value) || !o.open) return;
|
101
|
-
const e = o.options[n.value];
|
102
|
-
e.selected ? y("option:unselected", e) : y("option:selected", e);
|
103
|
-
}, B = f(0), E = () => {
|
104
|
-
s.value && (B.value = s.value.scrollHeight);
|
105
|
-
}, G = (e) => !e.disabled, K = (e) => {
|
106
|
-
if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
|
107
|
-
if (!s.value.querySelector('[role="listbox"]'))
|
108
|
-
throw new Error("Could not find listbox in DOM tree.");
|
109
|
-
let t = e.target, r = t.dataset.index;
|
110
|
-
for (; b(r) && t.parentElement; )
|
111
|
-
t = t.parentElement, r = t.dataset.index;
|
112
|
-
if (r) {
|
113
|
-
const T = o.options[+r];
|
114
|
-
T && G(T) && (n.value = +r, w());
|
115
|
-
}
|
116
|
-
}
|
117
|
-
}, Q = () => b(n.value) ? void 0 : o.options[n.value];
|
118
|
-
return D(
|
119
|
-
() => o.open,
|
120
|
-
() => {
|
121
|
-
E();
|
122
|
-
},
|
123
|
-
{ flush: "post" }
|
124
|
-
), D(
|
125
|
-
() => o.options,
|
126
|
-
(e, l) => {
|
127
|
-
L(e.map((t) => t.valueHash)) !== L(l.map((t) => t.valueHash)) && (c.value.calculateRange(), E(), k());
|
128
|
-
},
|
129
|
-
{
|
130
|
-
flush: "post"
|
131
|
-
}
|
132
|
-
), V({
|
133
|
-
focusNext: R,
|
134
|
-
focusPrevious: P,
|
135
|
-
focusFirst: W,
|
136
|
-
focusFirstSelected: J,
|
137
|
-
focusLast: q,
|
138
|
-
focusLastSelected: Y,
|
139
|
-
blur: k,
|
140
|
-
confirmOption: w,
|
141
|
-
focusByHash: j,
|
142
|
-
getHighlighted: Q
|
143
|
-
}), (e, l) => (p(), d("span", {
|
144
|
-
class: $(["bb-listbox", {
|
145
|
-
"bb-listbox--compact": e.compact,
|
146
|
-
"bb-listbox--loading": e.loading,
|
147
|
-
"bb-listbox--multiple": e.multiple,
|
148
|
-
"bb-listbox--no-data": !i.value.length,
|
149
|
-
"bb-listbox--open": e.open
|
150
|
-
}]),
|
151
|
-
style: h({
|
152
|
-
"--transition-duration": `${e.transitionDuration}ms`,
|
153
|
-
"--overlay-min-height": `${B.value}px`
|
154
|
-
}),
|
155
|
-
onClick: X(K, ["stop"])
|
156
|
-
}, [
|
157
|
-
v("span", le, [
|
158
|
-
v("span", {
|
159
|
-
ref_key: "inner",
|
160
|
-
ref: s,
|
161
|
-
class: "bb-listbox__inner-container",
|
162
|
-
tabindex: "-1"
|
163
|
-
}, [
|
164
|
-
m(e.$slots, "options:prepend"),
|
165
|
-
e.loading && !e.options.length ? (p(), d("span", ie, [
|
166
|
-
m(e.$slots, "loading", {}, () => [
|
167
|
-
z(g(e.loadingText || H(I)("common.loadingText").value), 1)
|
168
|
-
])
|
169
|
-
])) : e.options.length ? (p(), d("span", {
|
170
|
-
key: 2,
|
171
|
-
role: "listbox",
|
172
|
-
style: h({
|
173
|
-
height: `${A.value}px`
|
174
|
-
}),
|
175
|
-
tabindex: "-1"
|
176
|
-
}, [
|
177
|
-
(p(!0), d(Z, null, ee(M.value, (t, r) => (p(), d("span", {
|
178
|
-
key: i.value[t.index].value,
|
179
|
-
ref_for: !0,
|
180
|
-
ref: F,
|
181
|
-
"aria-selected": n.value === r ? !0 : void 0,
|
182
|
-
class: $({
|
183
|
-
"bb-listbox__option autocomplete-option": !0,
|
184
|
-
"autocomplete-option--focused": n.value === t.index,
|
185
|
-
"autocomplete-option--selected": i.value[t.index].selected,
|
186
|
-
"autocomplete-option--disabled": i.value[t.index].disabled
|
187
|
-
}),
|
188
|
-
"data-index": t.index,
|
189
|
-
role: "option",
|
190
|
-
style: h({
|
191
|
-
transform: `translateY(${t.start}px)`
|
192
|
-
})
|
193
|
-
}, [
|
194
|
-
m(e.$slots, "option", {
|
195
|
-
disabled: !!i.value[t.index].disabled,
|
196
|
-
focused: n.value === t.index,
|
197
|
-
index: t.index,
|
198
|
-
item: i.value[t.index].item,
|
199
|
-
selected: !!i.value[t.index].selected,
|
200
|
-
text: i.value[t.index].text,
|
201
|
-
value: i.value[t.index].value
|
202
|
-
}, () => [
|
203
|
-
l[0] || (l[0] = v("svg", {
|
204
|
-
class: "autocomplete-option__checkbox",
|
205
|
-
role: "presentation",
|
206
|
-
viewBox: "276.411 158.834 114.971 114.97"
|
207
|
-
}, [
|
208
|
-
v("path", {
|
209
|
-
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
210
|
-
fill: "none",
|
211
|
-
"stroke-linecap": "round",
|
212
|
-
"stroke-width": "14px"
|
213
|
-
})
|
214
|
-
], -1)),
|
215
|
-
v("span", ue, g(i.value[t.index].text), 1)
|
216
|
-
])
|
217
|
-
], 14, ae))), 128))
|
218
|
-
], 4)) : (p(), d("span", se, [
|
219
|
-
m(e.$slots, "no-data", {}, () => [
|
220
|
-
z(g(e.noDataText || H(I)("common.noDataText").value), 1)
|
221
|
-
])
|
222
|
-
])),
|
223
|
-
m(e.$slots, "options:append")
|
224
|
-
], 512)
|
225
|
-
])
|
226
|
-
], 6));
|
227
|
-
}
|
228
|
-
});
|
229
|
-
export {
|
230
|
-
be as default
|
231
|
-
};
|
package/dist/index283.js
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
function y(t, r) {
|
2
|
-
return t > r ? 1 : -1;
|
3
|
-
}
|
4
|
-
function c(t, r) {
|
5
|
-
var n = 5381;
|
6
|
-
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
7
|
-
r || (r = /* @__PURE__ */ new WeakSet());
|
8
|
-
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
9
|
-
var s = p[i], e = t[s];
|
10
|
-
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
11
|
-
if (r.has(e)) continue;
|
12
|
-
r.add(e);
|
13
|
-
}
|
14
|
-
n = 33 * n ^ c(e, r);
|
15
|
-
}
|
16
|
-
return 33 * n ^ c(t.constructor, r);
|
17
|
-
}
|
18
|
-
var o = typeof t;
|
19
|
-
try {
|
20
|
-
t instanceof Date ? o += t.getTime() : o += String(t);
|
21
|
-
} catch {
|
22
|
-
o += String(Object.assign({}, t));
|
23
|
-
}
|
24
|
-
for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
|
25
|
-
return n;
|
26
|
-
}
|
27
|
-
export {
|
28
|
-
c as hash,
|
29
|
-
y as sortNumbers
|
30
|
-
};
|