bitboss-ui 2.0.175 → 2.0.176
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/BaseButton/BaseButton.vue.d.ts +1 -1
- package/dist/components/BaseColorInput/BaseColorInput.vue.d.ts +1 -0
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +34 -27
- package/dist/components/BbConfirm/BbConfirm.vue.d.ts +1 -1
- package/dist/components/BbDialog/BbDialog.vue.d.ts +8 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbToast/BbToast.vue.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +11 -11
- package/dist/index129.js +20 -26
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index138.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +9 -9
- package/dist/index17.js +2 -2
- package/dist/index19.js +8 -8
- package/dist/index207.js +2 -2
- package/dist/index208.js +2 -2
- package/dist/index209.js +13 -86
- package/dist/index21.js +16 -16
- package/dist/index210.js +68 -0
- package/dist/index212.js +175 -15
- package/dist/index213.js +86 -51
- package/dist/index215.js +29 -3
- package/dist/index216.js +16 -11
- package/dist/index217.js +48 -13
- package/dist/index218.js +15 -2
- package/dist/index219.js +3 -2
- package/dist/index220.js +11 -17
- package/dist/index221.js +15 -11
- package/dist/index222.js +33 -12
- package/dist/index223.js +2 -6
- package/dist/index224.js +1 -1
- package/dist/index225.js +2 -106
- package/dist/index226.js +7 -0
- package/dist/index227.js +5 -100
- package/dist/index228.js +7 -0
- package/dist/index229.js +5 -66
- package/dist/index23.js +15 -15
- package/dist/index230.js +7 -0
- package/dist/index231.js +5 -13
- package/dist/index232.js +2 -120
- package/dist/index233.js +4 -0
- package/dist/index234.js +2 -228
- package/dist/index235.js +13 -2
- package/dist/index236.js +11 -2
- package/dist/index237.js +20 -2
- package/dist/index238.js +113 -41
- package/dist/index240.js +102 -11
- package/dist/index242.js +100 -3
- package/dist/index244.js +4 -34
- package/dist/index245.js +194 -174
- package/dist/index247.js +18 -5
- package/dist/index248.js +12 -5
- package/dist/index249.js +6 -5
- package/dist/index25.js +154 -224
- package/dist/index250.js +228 -5
- package/dist/index251.js +13 -5
- package/dist/index252.js +3 -5
- package/dist/index253.js +5 -8
- package/dist/index254.js +5 -250
- package/dist/index255.js +6 -50
- package/dist/index256.js +242 -36
- package/dist/index257.js +52 -5
- package/dist/index258.js +31 -47
- package/dist/index259.js +5 -4
- package/dist/index260.js +60 -11
- package/dist/index261.js +2 -20
- package/dist/index262.js +2 -200
- package/dist/index263.js +11 -0
- package/dist/index264.js +23 -5
- package/dist/index265.js +10 -2
- package/dist/index266.js +3 -2
- package/dist/index267.js +41 -6
- package/dist/index268.js +7 -16
- package/dist/index269.js +15 -3
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -9
- package/dist/index271.js +6 -23
- package/dist/index272.js +16 -9
- package/dist/index273.js +9 -9
- package/dist/index274.js +9 -8
- package/dist/index275.js +7 -66
- package/dist/index276.js +2 -5
- package/dist/index277.js +5 -2
- package/dist/index278.js +67 -5
- package/dist/index279.js +4 -7
- package/dist/index280.js +8 -3
- package/dist/index282.js +7 -28
- package/dist/index283.js +3 -471
- package/dist/index284.js +3 -2
- package/dist/index285.js +17 -7
- package/dist/index286.js +27 -10
- package/dist/index287.js +2 -4
- package/dist/index289.js +4 -5
- package/dist/index29.js +3 -3
- package/dist/index290.js +278 -198
- package/dist/index291.js +2 -3
- package/dist/index292.js +125 -3
- package/dist/index293.js +2 -3
- package/dist/index294.js +17 -0
- package/dist/index295.js +2 -7
- package/dist/index296.js +16 -3
- package/dist/index297.js +2 -2
- package/dist/index298.js +16 -3
- package/dist/index299.js +2 -280
- package/dist/index300.js +19 -2
- package/dist/index301.js +2 -16
- package/dist/index302.js +3 -2
- package/dist/index303.js +7 -16
- package/dist/index304.js +11 -2
- package/dist/index305.js +3 -19
- package/dist/index306.js +3 -2
- package/dist/index307.js +3 -15
- package/dist/index308.js +6 -2
- package/dist/index309.js +2 -19
- package/dist/index31.js +1 -1
- package/dist/index310.js +5 -2
- package/dist/index311.js +15 -23
- package/dist/index313.js +27 -2
- package/dist/index314.js +2 -2
- package/dist/index316.js +1 -1
- package/dist/index317.js +1 -21
- package/dist/index318.js +4 -0
- package/dist/index319.js +22 -6
- package/dist/index321.js +471 -2
- package/dist/index322.js +1 -1
- package/dist/index323.js +2 -2
- package/dist/index324.js +199 -700
- package/dist/index325.js +699 -352
- package/dist/index326.js +354 -58
- package/dist/index327.js +58 -2
- package/dist/index328.js +2 -228
- package/dist/index329.js +6 -128
- package/dist/index33.js +8 -8
- package/dist/index330.js +44 -366
- package/dist/index331.js +128 -6
- package/dist/index332.js +366 -16
- package/dist/index333.js +6 -6
- package/dist/index334.js +17 -45
- package/dist/index335.js +32 -7
- package/dist/index336.js +28 -6
- package/dist/index340.js +7 -32
- package/dist/index341.js +6 -28
- package/dist/index343.js +221 -86
- package/dist/index344.js +89 -125
- package/dist/index345.js +467 -421
- package/dist/index346.js +123 -121
- package/dist/index348.js +5 -0
- package/dist/index349.js +47 -3
- package/dist/index35.js +4 -4
- package/dist/index350.js +429 -40
- package/dist/index351.js +129 -0
- package/dist/index37.js +19 -19
- package/dist/index39.js +5 -5
- package/dist/index41.js +1 -1
- 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 +3 -3
- package/dist/index67.js +1 -1
- package/dist/index73.js +23 -26
- package/dist/index77.js +32 -34
- 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 +7 -6
- package/dist/index96.js +1 -1
- package/dist/utilities/functions/parseSize.d.ts +2 -0
- package/package.json +2 -2
- package/dist/index211.js +0 -31
- package/dist/index214.js +0 -17
- package/dist/index239.js +0 -9
- package/dist/index241.js +0 -12
- package/dist/index243.js +0 -5
- package/dist/index246.js +0 -7
- package/dist/index281.js +0 -19
- package/dist/index320.js +0 -127
- package/dist/index347.js +0 -484
- /package/dist/{index337.js → index342.js} +0 -0
package/dist/index228.js
ADDED
package/dist/index229.js
CHANGED
@@ -1,68 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
/* empty css */
|
6
|
-
import C from "./index113.js";
|
7
|
-
/* empty css */
|
8
|
-
import h from "./index340.js";
|
9
|
-
import B from "./index341.js";
|
10
|
-
/* empty css */
|
11
|
-
const v = { class: "bb-common-input-inner-container__prefix" }, I = { class: "bb-common-input-inner-container__suffix" }, A = /* @__PURE__ */ _({
|
12
|
-
__name: "CommonInputInnerContainer",
|
13
|
-
props: {
|
14
|
-
"append:icon": {},
|
15
|
-
clearable: { type: Boolean },
|
16
|
-
"prepend:icon": {},
|
17
|
-
preventFocus: { type: Boolean }
|
18
|
-
},
|
19
|
-
emits: ["click:clear"],
|
20
|
-
setup(u, { emit: d }) {
|
21
|
-
const t = u, f = d, o = $(), a = () => {
|
22
|
-
var e;
|
23
|
-
!o.value || t.preventFocus || (e = o.value.querySelector("input")) == null || e.focus();
|
24
|
-
}, b = () => {
|
25
|
-
f("click:clear"), a();
|
26
|
-
};
|
27
|
-
return (e, E) => (r(), k("span", {
|
28
|
-
ref_key: "container",
|
29
|
-
ref: o,
|
30
|
-
class: y(["bb-common-input-inner-container", {
|
31
|
-
"bb-common-input-inner-container--clearable": t.clearable
|
32
|
-
}]),
|
33
|
-
onClick: a
|
34
|
-
}, [
|
35
|
-
n(e.$slots, "prepend", {}, () => [
|
36
|
-
l("span", v, [
|
37
|
-
n(e.$slots, "prefix")
|
38
|
-
])
|
39
|
-
]),
|
40
|
-
e.$props["prepend:icon"] ? (r(), c(i(m), {
|
41
|
-
key: 0,
|
42
|
-
class: "bb-common-input-inner-container__prepend-icon",
|
43
|
-
type: e.$props["prepend:icon"]
|
44
|
-
}, null, 8, ["type"])) : s("", !0),
|
45
|
-
n(e.$slots, "default"),
|
46
|
-
p(B, {
|
47
|
-
"aria-hidden": !e.clearable,
|
48
|
-
tabindex: e.clearable ? 0 : -1,
|
49
|
-
onClick: b
|
50
|
-
}, null, 8, ["aria-hidden", "tabindex"]),
|
51
|
-
e.$props["append:icon"] ? (r(), c(i(m), {
|
52
|
-
key: 1,
|
53
|
-
class: "bb-common-input-inner-container__append-icon",
|
54
|
-
type: e.$props["append:icon"]
|
55
|
-
}, null, 8, ["type"])) : s("", !0),
|
56
|
-
p(h),
|
57
|
-
p(i(C)),
|
58
|
-
n(e.$slots, "append", {}, () => [
|
59
|
-
l("span", I, [
|
60
|
-
n(e.$slots, "suffix")
|
61
|
-
])
|
62
|
-
])
|
63
|
-
], 2));
|
64
|
-
}
|
65
|
-
});
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index308.js";
|
2
|
+
import { __require as e } from "./index296.js";
|
3
|
+
var t = e();
|
4
|
+
const m = /* @__PURE__ */ r(t);
|
66
5
|
export {
|
67
|
-
|
6
|
+
m as default
|
68
7
|
};
|
package/dist/index23.js
CHANGED
@@ -1,25 +1,25 @@
|
|
1
1
|
import { defineComponent as K, watchEffect as Q, ref as l, computed as k, watch as D, createBlock as C, openBlock as Y, normalizeClass as w, withCtx as i, createVNode as B, unref as r, createCommentVNode as X, withDirectives as x, createElementVNode as s, mergeProps as S, withModifiers as ee, toDisplayString as E, renderSlot as c } from "vue";
|
2
2
|
import { _config as te } from "./index4.js";
|
3
|
-
import o from "./
|
4
|
-
import ae from "./
|
5
|
-
import oe from "./
|
6
|
-
import re from "./
|
7
|
-
import ne from "./
|
8
|
-
import le from "./
|
9
|
-
import { identity as ie } from "./
|
10
|
-
import { isEmpty as se } from "./
|
11
|
-
import { last as de } from "./
|
3
|
+
import o from "./index226.js";
|
4
|
+
import ae from "./index227.js";
|
5
|
+
import oe from "./index228.js";
|
6
|
+
import re from "./index229.js";
|
7
|
+
import ne from "./index230.js";
|
8
|
+
import le from "./index231.js";
|
9
|
+
import { identity as ie } from "./index232.js";
|
10
|
+
import { isEmpty as se } from "./index233.js";
|
11
|
+
import { last as de } from "./index234.js";
|
12
12
|
import { useId as ue } from "./index8.js";
|
13
|
-
import { useLocale as pe } from "./
|
13
|
+
import { useLocale as pe } from "./index235.js";
|
14
14
|
import { useMobile as ce } from "./index9.js";
|
15
|
-
import { useUntil as me } from "./
|
16
|
-
import { vMaska as fe } from "./
|
15
|
+
import { useUntil as me } from "./index236.js";
|
16
|
+
import { vMaska as fe } from "./index237.js";
|
17
17
|
import be from "./index21.js";
|
18
18
|
/* empty css */
|
19
|
-
import ge from "./
|
19
|
+
import ge from "./index210.js";
|
20
20
|
/* empty css */
|
21
|
-
import ke from "./
|
22
|
-
import ye from "./
|
21
|
+
import ke from "./index209.js";
|
22
|
+
import ye from "./index238.js";
|
23
23
|
/* empty css */
|
24
24
|
const ve = ["inert"], Ve = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Me = ["aria-label", "disabled"], he = ["id"], ze = /* @__PURE__ */ K({
|
25
25
|
__name: "BaseDatePickerInput",
|
package/dist/index230.js
ADDED
package/dist/index231.js
CHANGED
@@ -1,15 +1,7 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
function p(o, a) {
|
6
|
-
return n(), t("span", c, [
|
7
|
-
e(o.$slots, "prepend-outer"),
|
8
|
-
e(o.$slots, "default"),
|
9
|
-
e(o.$slots, "append-outer")
|
10
|
-
]);
|
11
|
-
}
|
12
|
-
const i = /* @__PURE__ */ r(s, [["render", p]]);
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index308.js";
|
2
|
+
import { __require as t } from "./index300.js";
|
3
|
+
var o = t();
|
4
|
+
const a = /* @__PURE__ */ r(o);
|
13
5
|
export {
|
14
|
-
|
6
|
+
a as default
|
15
7
|
};
|
package/dist/index232.js
CHANGED
@@ -1,122 +1,4 @@
|
|
1
|
-
|
2
|
-
import { useFloating as E, arrow as N } from "./index329.js";
|
3
|
-
import { flip as F, offset as H, shift as U, hide as j, autoUpdate as q } from "./index330.js";
|
4
|
-
const G = { class: "bb-common-popover__bubble" }, O = /* @__PURE__ */ _({
|
5
|
-
__name: "CommonPopover",
|
6
|
-
props: /* @__PURE__ */ B({
|
7
|
-
arrowPadding: {},
|
8
|
-
offset: {},
|
9
|
-
block: { type: Boolean },
|
10
|
-
padding: { default: 0 },
|
11
|
-
placement: {},
|
12
|
-
transitionDuration: { default: 250 },
|
13
|
-
containerAttributes: {},
|
14
|
-
dialog: { type: Boolean },
|
15
|
-
renderContent: { type: Boolean, default: !0 },
|
16
|
-
tag: { default: "span" }
|
17
|
-
}, {
|
18
|
-
modelValue: { type: Boolean, default: !1 },
|
19
|
-
modelModifiers: {}
|
20
|
-
}),
|
21
|
-
emits: ["update:modelValue"],
|
22
|
-
setup(i) {
|
23
|
-
const a = i, l = V(i, "modelValue"), d = r(l.value);
|
24
|
-
l.value = !1;
|
25
|
-
const u = r(), o = r(), p = r(), { floatingStyles: M, placement: $, middlewareData: n } = E(
|
26
|
-
u,
|
27
|
-
o,
|
28
|
-
{
|
29
|
-
placement: a.placement,
|
30
|
-
whileElementsMounted: q,
|
31
|
-
middleware: [
|
32
|
-
F(),
|
33
|
-
H(a.offset),
|
34
|
-
U({ padding: a.padding }),
|
35
|
-
j(),
|
36
|
-
N({
|
37
|
-
element: p,
|
38
|
-
padding: a.arrowPadding
|
39
|
-
})
|
40
|
-
],
|
41
|
-
strategy: "fixed"
|
42
|
-
}
|
43
|
-
);
|
44
|
-
b(
|
45
|
-
() => {
|
46
|
-
var e, t;
|
47
|
-
return (t = (e = n.value) == null ? void 0 : e.hide) == null ? void 0 : t.referenceHidden;
|
48
|
-
},
|
49
|
-
(e) => {
|
50
|
-
e && (l.value = !1);
|
51
|
-
}
|
52
|
-
), b(l, (e) => {
|
53
|
-
e ? o.value && (a.dialog ? o.value.showModal() : o.value.showPopover()) : o.value && (a.dialog ? o.value.close() : o.value.hidePopover());
|
54
|
-
}), A(() => {
|
55
|
-
d.value && o.value && (l.value = d.value, a.dialog ? o.value.showModal() : o.value.showPopover());
|
56
|
-
});
|
57
|
-
const P = D(() => {
|
58
|
-
if (n.value.arrow) {
|
59
|
-
const { x: e, y: t } = n.value.arrow;
|
60
|
-
return {
|
61
|
-
style: {
|
62
|
-
left: `${e}px`,
|
63
|
-
top: `${t}px`
|
64
|
-
}
|
65
|
-
};
|
66
|
-
}
|
67
|
-
});
|
68
|
-
return (e, t) => (g(), c(w(e.dialog ? "div" : e.tag), {
|
69
|
-
ref_key: "wrapper",
|
70
|
-
ref: u,
|
71
|
-
class: S(["bb-common-popover", {
|
72
|
-
"bb-common-popover--open": l.value && !!o.value,
|
73
|
-
"bb-common-popover--block": a.block,
|
74
|
-
[`bb-common-popover--${s($)}`]: !0
|
75
|
-
}]),
|
76
|
-
style: x({
|
77
|
-
"--transition-duration": `${a.transitionDuration}ms`
|
78
|
-
})
|
79
|
-
}, {
|
80
|
-
default: y(() => {
|
81
|
-
var m, f, v;
|
82
|
-
return [
|
83
|
-
h(e.$slots, "activator"),
|
84
|
-
e.renderContent ? (g(), c(w(e.dialog ? "dialog" : e.tag), k({
|
85
|
-
key: 0,
|
86
|
-
ref_key: "content",
|
87
|
-
ref: o,
|
88
|
-
class: ["bb-common-popover__bubble-container", {
|
89
|
-
"bb-common-popover__bubble-container--open": l.value && !!o.value
|
90
|
-
}],
|
91
|
-
popover: "manual",
|
92
|
-
style: {
|
93
|
-
...((m = e.containerAttributes) == null ? void 0 : m.style) ?? {},
|
94
|
-
...s(M),
|
95
|
-
"--arrow-offset-x": Math.round(((v = (f = s(n)) == null ? void 0 : f.arrow) == null ? void 0 : v.x) ?? 0) + "px",
|
96
|
-
"--page-padding": `${e.padding}px`
|
97
|
-
},
|
98
|
-
tabindex: l.value ? void 0 : -1
|
99
|
-
}, e.containerAttributes, {
|
100
|
-
onClose: t[0] || (t[0] = (I) => l.value = !1)
|
101
|
-
}), {
|
102
|
-
default: y(() => [
|
103
|
-
C("span", k({
|
104
|
-
ref_key: "bubblearrow",
|
105
|
-
ref: p,
|
106
|
-
class: "bb-common-popover__arrow"
|
107
|
-
}, P.value), null, 16),
|
108
|
-
C("span", G, [
|
109
|
-
h(e.$slots, "default")
|
110
|
-
])
|
111
|
-
]),
|
112
|
-
_: 3
|
113
|
-
}, 16, ["class", "style", "tabindex"])) : z("", !0)
|
114
|
-
];
|
115
|
-
}),
|
116
|
-
_: 3
|
117
|
-
}, 8, ["class", "style"]));
|
118
|
-
}
|
119
|
-
});
|
1
|
+
const e = (t) => t;
|
120
2
|
export {
|
121
|
-
|
3
|
+
e as identity
|
122
4
|
};
|
package/dist/index233.js
ADDED
@@ -0,0 +1,4 @@
|
|
1
|
+
const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
|
2
|
+
export {
|
3
|
+
n as isEmpty
|
4
|
+
};
|
package/dist/index234.js
CHANGED
@@ -1,230 +1,4 @@
|
|
1
|
-
|
2
|
-
import { isNil as b } from "./index237.js";
|
3
|
-
import { useVirtualizer as te } from "./index334.js";
|
4
|
-
import { isNotNil as oe } from "./index140.js";
|
5
|
-
import { hash as N } from "./index215.js";
|
6
|
-
import { useLocale as ne } from "./index222.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__content" }, re = { class: "autocomplete-option__label" }, xe = /* @__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(V, { expose: z, emit: C }) {
|
27
|
-
const o = V, _ = C, { t: y } = ne(), s = f(null), O = (e) => "option_" + JSON.stringify(e).replace(/\W/g, "_"), i = x(
|
28
|
-
() => o.options.map((e) => ({ ...e, id: O(e.value) }))
|
29
|
-
), v = te({
|
30
|
-
get count() {
|
31
|
-
return o.options.length;
|
32
|
-
},
|
33
|
-
getScrollElement: () => s.value,
|
34
|
-
estimateSize: () => 42,
|
35
|
-
overscan: 5
|
36
|
-
}), F = (e) => {
|
37
|
-
e && v.value.measureElement(e);
|
38
|
-
}, M = x(() => v.value.getVirtualItems()), A = x(() => v.value.getTotalSize()), n = f(null), a = x(
|
39
|
-
() => o.open && o.options.some((e) => !e.disabled)
|
40
|
-
), I = (e = 1) => {
|
41
|
-
const l = b(n.value) ? -1 : n.value;
|
42
|
-
let t = (l + e) % o.options.length;
|
43
|
-
for (; o.options[t].disabled && t !== l; )
|
44
|
-
t = I(e + 1);
|
45
|
-
return t;
|
46
|
-
}, P = () => {
|
47
|
-
if (!a.value) return;
|
48
|
-
const e = I();
|
49
|
-
n.value = e, u();
|
50
|
-
}, S = (e = 1) => {
|
51
|
-
const l = b(n.value) ? 0 : n.value;
|
52
|
-
let t = (l - e + o.options.length) % o.options.length;
|
53
|
-
for (; o.options[t].disabled && t !== l; )
|
54
|
-
t = S(e + 1);
|
55
|
-
return t;
|
56
|
-
}, R = async () => {
|
57
|
-
if (!a.value) return;
|
58
|
-
const e = S();
|
59
|
-
n.value = e, u();
|
60
|
-
}, q = () => {
|
61
|
-
if (!a.value) return;
|
62
|
-
let e = 0;
|
63
|
-
for (; o.options[e].disabled; )
|
64
|
-
e++;
|
65
|
-
n.value = e, u();
|
66
|
-
}, J = () => {
|
67
|
-
if (!a.value) return;
|
68
|
-
let e = o.options.length - 1;
|
69
|
-
for (; o.options[e].disabled && e !== 0; )
|
70
|
-
e--;
|
71
|
-
n.value = e, u();
|
72
|
-
}, W = () => {
|
73
|
-
if (!a.value) return;
|
74
|
-
let e = 0;
|
75
|
-
for (; o.options[e] && !o.options[e].selected && o.options.length !== e; )
|
76
|
-
e++;
|
77
|
-
n.value = e % o.options.length, u();
|
78
|
-
}, Y = () => {
|
79
|
-
if (!a.value) return;
|
80
|
-
let e = o.options.length - 1;
|
81
|
-
for (; o.options[e].selected && e > 0; )
|
82
|
-
e--;
|
83
|
-
n.value = e === -1 ? o.options.length - 1 : e, u();
|
84
|
-
}, j = (e) => {
|
85
|
-
if (!a.value) return;
|
86
|
-
const l = o.options.findIndex(
|
87
|
-
(t) => t.valueHash === e
|
88
|
-
);
|
89
|
-
l >= 0 && (n.value = l), u();
|
90
|
-
}, k = () => {
|
91
|
-
n.value = null;
|
92
|
-
}, u = () => {
|
93
|
-
s.value && oe(n.value) && v.value.scrollToIndex(n.value, {
|
94
|
-
align: "center",
|
95
|
-
behavior: "smooth"
|
96
|
-
});
|
97
|
-
}, w = () => {
|
98
|
-
if (b(n.value) || !o.open) return;
|
99
|
-
const e = o.options[n.value];
|
100
|
-
e.selected ? _("option:unselected", e) : _("option:selected", e);
|
101
|
-
}, B = f(0), T = () => {
|
102
|
-
s.value && (B.value = s.value.scrollHeight);
|
103
|
-
}, G = (e) => !e.disabled, K = (e) => {
|
104
|
-
if (e.preventDefault(), s.value && e.target && e.target instanceof HTMLElement) {
|
105
|
-
if (!s.value.querySelector('[role="listbox"]'))
|
106
|
-
throw new Error("Could not find listbox in DOM tree.");
|
107
|
-
let t = e.target, r = t.dataset.index;
|
108
|
-
for (; b(r) && t.parentElement; )
|
109
|
-
t = t.parentElement, r = t.dataset.index;
|
110
|
-
if (r) {
|
111
|
-
const D = o.options[+r];
|
112
|
-
D && G(D) && (n.value = +r, w());
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}, Q = () => b(n.value) ? void 0 : o.options[n.value];
|
116
|
-
return E(
|
117
|
-
() => o.open,
|
118
|
-
() => {
|
119
|
-
T();
|
120
|
-
},
|
121
|
-
{ flush: "post" }
|
122
|
-
), E(
|
123
|
-
() => o.options,
|
124
|
-
(e, l) => {
|
125
|
-
N(e.map((t) => t.valueHash)) !== N(l.map((t) => t.valueHash)) && (v.value.calculateRange(), T(), k());
|
126
|
-
},
|
127
|
-
{
|
128
|
-
flush: "post"
|
129
|
-
}
|
130
|
-
), z({
|
131
|
-
focusNext: P,
|
132
|
-
focusPrevious: R,
|
133
|
-
focusFirst: q,
|
134
|
-
focusFirstSelected: W,
|
135
|
-
focusLast: J,
|
136
|
-
focusLastSelected: Y,
|
137
|
-
blur: k,
|
138
|
-
confirmOption: w,
|
139
|
-
focusByHash: j,
|
140
|
-
getHighlighted: Q
|
141
|
-
}), (e, l) => (p(), d("span", {
|
142
|
-
class: $(["bb-listbox", {
|
143
|
-
"bb-listbox--compact": e.compact,
|
144
|
-
"bb-listbox--loading": e.loading,
|
145
|
-
"bb-listbox--multiple": e.multiple,
|
146
|
-
"bb-listbox--no-data": !i.value.length,
|
147
|
-
"bb-listbox--open": e.open
|
148
|
-
}]),
|
149
|
-
style: h({
|
150
|
-
"--transition-duration": `${e.transitionDuration}ms`,
|
151
|
-
"--overlay-min-height": `${B.value}px`
|
152
|
-
}),
|
153
|
-
onClick: X(K, ["stop"])
|
154
|
-
}, [
|
155
|
-
c("span", le, [
|
156
|
-
c("span", {
|
157
|
-
ref_key: "inner",
|
158
|
-
ref: s,
|
159
|
-
class: "bb-listbox__inner-container"
|
160
|
-
}, [
|
161
|
-
m(e.$slots, "options:prepend"),
|
162
|
-
e.loading && !e.options.length ? (p(), d("span", ie, [
|
163
|
-
m(e.$slots, "loading", {}, () => [
|
164
|
-
H(g(e.loadingText || L(y)("common.loadingText").value), 1)
|
165
|
-
])
|
166
|
-
])) : e.options.length ? (p(), d("span", {
|
167
|
-
key: 2,
|
168
|
-
role: "listbox",
|
169
|
-
style: h({
|
170
|
-
height: `${A.value}px`
|
171
|
-
}),
|
172
|
-
tabindex: "-1"
|
173
|
-
}, [
|
174
|
-
(p(!0), d(Z, null, ee(M.value, (t, r) => (p(), d("span", {
|
175
|
-
key: i.value[t.index].value,
|
176
|
-
ref_for: !0,
|
177
|
-
ref: F,
|
178
|
-
"aria-selected": n.value === r ? !0 : void 0,
|
179
|
-
class: $({
|
180
|
-
"bb-listbox__option autocomplete-option": !0,
|
181
|
-
"autocomplete-option--focused": n.value === t.index,
|
182
|
-
"autocomplete-option--selected": i.value[t.index].selected,
|
183
|
-
"autocomplete-option--disabled": i.value[t.index].disabled
|
184
|
-
}),
|
185
|
-
"data-index": t.index,
|
186
|
-
role: "option",
|
187
|
-
style: h({
|
188
|
-
transform: `translateY(${t.start}px)`
|
189
|
-
})
|
190
|
-
}, [
|
191
|
-
c("span", ue, [
|
192
|
-
m(e.$slots, "option", {
|
193
|
-
disabled: !!i.value[t.index].disabled,
|
194
|
-
focused: n.value === t.index,
|
195
|
-
index: t.index,
|
196
|
-
item: i.value[t.index].item,
|
197
|
-
selected: !!i.value[t.index].selected,
|
198
|
-
text: i.value[t.index].text,
|
199
|
-
value: i.value[t.index].value
|
200
|
-
}, () => [
|
201
|
-
l[0] || (l[0] = c("svg", {
|
202
|
-
class: "autocomplete-option__checkbox",
|
203
|
-
role: "presentation",
|
204
|
-
viewBox: "276.411 158.834 114.971 114.97"
|
205
|
-
}, [
|
206
|
-
c("path", {
|
207
|
-
d: "M 297.574 224.786 L 318.309 243.134 L 371.568 189.232",
|
208
|
-
fill: "none",
|
209
|
-
"stroke-linecap": "round",
|
210
|
-
"stroke-width": "14px"
|
211
|
-
})
|
212
|
-
], -1)),
|
213
|
-
c("span", re, g(i.value[t.index].text), 1)
|
214
|
-
])
|
215
|
-
])
|
216
|
-
], 14, ae))), 128))
|
217
|
-
], 4)) : (p(), d("span", se, [
|
218
|
-
m(e.$slots, "no-data", {}, () => [
|
219
|
-
H(g(e.noDataText || L(y)("common.noDataText").value), 1)
|
220
|
-
])
|
221
|
-
])),
|
222
|
-
m(e.$slots, "options:append")
|
223
|
-
], 512)
|
224
|
-
])
|
225
|
-
], 6));
|
226
|
-
}
|
227
|
-
});
|
1
|
+
const e = (t) => t[t.length - 1];
|
228
2
|
export {
|
229
|
-
|
3
|
+
e as last
|
230
4
|
};
|
package/dist/index235.js
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
|
1
|
+
import { locales as t } from "./index303.js";
|
2
|
+
import { _config as m } from "./index4.js";
|
3
|
+
import { get as c } from "./index304.js";
|
4
|
+
import { readonly as l, computed as n } from "vue";
|
5
|
+
const p = (o, ...r) => l(
|
6
|
+
n(() => c(t[m.locale], o).replace(
|
7
|
+
/\{(\d+)\}/g,
|
8
|
+
(a, e) => r[e]
|
9
|
+
))
|
10
|
+
), d = () => ({
|
11
|
+
t: p
|
12
|
+
});
|
2
13
|
export {
|
3
|
-
|
14
|
+
d as useLocale
|
4
15
|
};
|
package/dist/index236.js
CHANGED
@@ -1,4 +1,13 @@
|
|
1
|
-
|
1
|
+
import { ref as a, watch as c, toValue as u } from "vue";
|
2
|
+
const i = (e, { initialValue: o = !1, nextValue: r = !0 } = {}) => {
|
3
|
+
const t = a(o), n = c(
|
4
|
+
() => u(e),
|
5
|
+
(s) => {
|
6
|
+
s && (t.value = r, n());
|
7
|
+
}
|
8
|
+
);
|
9
|
+
return t;
|
10
|
+
};
|
2
11
|
export {
|
3
|
-
|
12
|
+
i as useUntil
|
4
13
|
};
|
package/dist/index237.js
CHANGED
@@ -1,4 +1,22 @@
|
|
1
|
-
|
1
|
+
import { MaskInput as r } from "./index212.js";
|
2
|
+
const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
|
3
|
+
if (a.arg == null || a.instance == null) return;
|
4
|
+
const s = "setup" in a.instance.$.type;
|
5
|
+
a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
|
6
|
+
}, k = (a, n) => {
|
7
|
+
var s;
|
8
|
+
const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
|
9
|
+
if (t == null || (t == null ? void 0 : t.type) === "file") return;
|
10
|
+
let e = {};
|
11
|
+
if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
|
12
|
+
const l = (o) => {
|
13
|
+
const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
|
14
|
+
p(n, i);
|
15
|
+
};
|
16
|
+
e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
|
17
|
+
}
|
18
|
+
u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
|
19
|
+
};
|
2
20
|
export {
|
3
|
-
|
21
|
+
k as vMaska
|
4
22
|
};
|