bitboss-ui 0.2.29 → 0.2.30
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/BaseSelect/BaseSelect.vue.d.ts +0 -7
- package/dist/components/BbSelect/BbSelect.vue.d.ts +0 -7
- package/dist/index101.js +3 -3
- package/dist/index109.js +1 -1
- package/dist/index11.js +2 -2
- package/dist/index111.js +4 -4
- package/dist/index113.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index117.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index121.js +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index131.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +9 -9
- package/dist/index19.js +3 -3
- package/dist/index196.js +5 -10
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +16 -5
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +10 -10
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +18 -15
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +19 -18
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +23 -14
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +8 -29
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +2 -8
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +3 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +35 -3
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +6 -35
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -6
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +378 -4
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -235
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +373 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -2
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +1 -1
- package/dist/index214.js +1 -1
- package/dist/index215.js +2 -2
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -9
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +131 -118
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +174 -23
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +23 -378
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +8 -371
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +234 -133
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +6 -171
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +121 -2
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +1 -1
- package/dist/index226.js +1 -1
- package/dist/index227.js +435 -2
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +82 -428
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +197 -86
- package/dist/index229.js.map +1 -1
- package/dist/index23.js +1 -1
- package/dist/index230.js +293 -198
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +5 -294
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +2 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +2 -2
- package/dist/index238.js +4 -2
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +116 -3
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +100 -218
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -258
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +224 -69
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +255 -12
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +1 -1
- package/dist/index246.js +69 -2
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -106
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +2 -117
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +15 -2
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +2 -2
- package/dist/index253.js +1 -1
- package/dist/index254.js +1 -1
- package/dist/index29.js +3 -3
- package/dist/index31.js +34 -35
- package/dist/index31.js.map +1 -1
- package/dist/index33.js +2 -2
- package/dist/index35.js +2 -2
- package/dist/index47.js +1 -1
- package/dist/index49.js +1 -1
- package/dist/index65.js +5 -5
- package/dist/index72.js +1 -1
- package/dist/index75.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index91.js +16 -18
- package/dist/index91.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index248.js
CHANGED
|
@@ -1,120 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
x: t,
|
|
3
|
-
y: t
|
|
4
|
-
}), m = {
|
|
5
|
-
left: "right",
|
|
6
|
-
right: "left",
|
|
7
|
-
bottom: "top",
|
|
8
|
-
top: "bottom"
|
|
9
|
-
}, p = {
|
|
10
|
-
start: "end",
|
|
11
|
-
end: "start"
|
|
12
|
-
};
|
|
13
|
-
function S(t, n, o) {
|
|
14
|
-
return a(t, l(n, o));
|
|
15
|
-
}
|
|
16
|
-
function w(t, n) {
|
|
17
|
-
return typeof t == "function" ? t(n) : t;
|
|
18
|
-
}
|
|
19
|
-
function f(t) {
|
|
20
|
-
return t.split("-")[0];
|
|
21
|
-
}
|
|
22
|
-
function g(t) {
|
|
23
|
-
return t.split("-")[1];
|
|
24
|
-
}
|
|
25
|
-
function h(t) {
|
|
26
|
-
return t === "x" ? "y" : "x";
|
|
27
|
-
}
|
|
28
|
-
function x(t) {
|
|
29
|
-
return t === "y" ? "height" : "width";
|
|
30
|
-
}
|
|
31
|
-
function b(t) {
|
|
32
|
-
return ["top", "bottom"].includes(f(t)) ? "y" : "x";
|
|
33
|
-
}
|
|
34
|
-
function d(t) {
|
|
35
|
-
return h(b(t));
|
|
36
|
-
}
|
|
37
|
-
function j(t, n, o) {
|
|
38
|
-
o === void 0 && (o = !1);
|
|
39
|
-
const s = g(t), i = d(t), e = x(i);
|
|
40
|
-
let r = i === "x" ? s === (o ? "end" : "start") ? "right" : "left" : s === "start" ? "bottom" : "top";
|
|
41
|
-
return n.reference[e] > n.floating[e] && (r = u(r)), [r, u(r)];
|
|
42
|
-
}
|
|
43
|
-
function C(t) {
|
|
44
|
-
const n = u(t);
|
|
45
|
-
return [c(t), n, c(n)];
|
|
46
|
-
}
|
|
47
|
-
function c(t) {
|
|
48
|
-
return t.replace(/start|end/g, (n) => p[n]);
|
|
49
|
-
}
|
|
50
|
-
function A(t, n, o) {
|
|
51
|
-
const s = ["left", "right"], i = ["right", "left"], e = ["top", "bottom"], r = ["bottom", "top"];
|
|
52
|
-
switch (t) {
|
|
53
|
-
case "top":
|
|
54
|
-
case "bottom":
|
|
55
|
-
return o ? n ? i : s : n ? s : i;
|
|
56
|
-
case "left":
|
|
57
|
-
case "right":
|
|
58
|
-
return n ? e : r;
|
|
59
|
-
default:
|
|
60
|
-
return [];
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
function L(t, n, o, s) {
|
|
64
|
-
const i = g(t);
|
|
65
|
-
let e = A(f(t), o === "start", s);
|
|
66
|
-
return i && (e = e.map((r) => r + "-" + i), n && (e = e.concat(e.map(c)))), e;
|
|
67
|
-
}
|
|
68
|
-
function u(t) {
|
|
69
|
-
return t.replace(/left|right|bottom|top/g, (n) => m[n]);
|
|
70
|
-
}
|
|
71
|
-
function y(t) {
|
|
72
|
-
return {
|
|
73
|
-
top: 0,
|
|
74
|
-
right: 0,
|
|
75
|
-
bottom: 0,
|
|
76
|
-
left: 0,
|
|
77
|
-
...t
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
function E(t) {
|
|
81
|
-
return typeof t != "number" ? y(t) : {
|
|
82
|
-
top: t,
|
|
83
|
-
right: t,
|
|
84
|
-
bottom: t,
|
|
85
|
-
left: t
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
function R(t) {
|
|
89
|
-
return {
|
|
90
|
-
...t,
|
|
91
|
-
top: t.y,
|
|
92
|
-
left: t.x,
|
|
93
|
-
right: t.x + t.width,
|
|
94
|
-
bottom: t.y + t.height
|
|
95
|
-
};
|
|
96
|
-
}
|
|
1
|
+
var o = { exports: {} };
|
|
97
2
|
export {
|
|
98
|
-
|
|
99
|
-
O as createCoords,
|
|
100
|
-
w as evaluate,
|
|
101
|
-
y as expandPaddingObject,
|
|
102
|
-
M as floor,
|
|
103
|
-
g as getAlignment,
|
|
104
|
-
d as getAlignmentAxis,
|
|
105
|
-
j as getAlignmentSides,
|
|
106
|
-
x as getAxisLength,
|
|
107
|
-
C as getExpandedPlacements,
|
|
108
|
-
c as getOppositeAlignmentPlacement,
|
|
109
|
-
h as getOppositeAxis,
|
|
110
|
-
L as getOppositeAxisPlacements,
|
|
111
|
-
u as getOppositePlacement,
|
|
112
|
-
E as getPaddingObject,
|
|
113
|
-
f as getSide,
|
|
114
|
-
b as getSideAxis,
|
|
115
|
-
a as max,
|
|
116
|
-
l as min,
|
|
117
|
-
R as rectToClientRect,
|
|
118
|
-
P as round
|
|
3
|
+
o as __module
|
|
119
4
|
};
|
|
120
5
|
//# sourceMappingURL=index248.js.map
|
package/dist/index248.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index248.js","sources":[
|
|
1
|
+
{"version":3,"file":"index248.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index249.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
function r(t) {
|
|
2
|
+
return Object.prototype.toString.call(t).slice(8, -1);
|
|
3
|
+
}
|
|
4
|
+
function o(t) {
|
|
5
|
+
return r(t) === "Array";
|
|
6
|
+
}
|
|
7
|
+
function c(t) {
|
|
8
|
+
if (r(t) !== "Object")
|
|
9
|
+
return !1;
|
|
10
|
+
const e = Object.getPrototypeOf(t);
|
|
11
|
+
return !!e && e.constructor === Object && e === Object.prototype;
|
|
12
|
+
}
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
r as getType,
|
|
15
|
+
o as isArray,
|
|
16
|
+
c as isPlainObject
|
|
4
17
|
};
|
|
5
18
|
//# sourceMappingURL=index249.js.map
|
package/dist/index249.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index249.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
1
|
+
{"version":3,"file":"index249.js","sources":["../node_modules/is-what/dist/index.js"],"sourcesContent":["function getType(payload) {\n return Object.prototype.toString.call(payload).slice(8, -1);\n}\n\nfunction isAnyObject(payload) {\n return getType(payload) === \"Object\";\n}\n\nfunction isArray(payload) {\n return getType(payload) === \"Array\";\n}\n\nfunction isBlob(payload) {\n return getType(payload) === \"Blob\";\n}\n\nfunction isBoolean(payload) {\n return getType(payload) === \"Boolean\";\n}\n\nfunction isDate(payload) {\n return getType(payload) === \"Date\" && !isNaN(payload);\n}\n\nfunction isEmptyArray(payload) {\n return isArray(payload) && payload.length === 0;\n}\n\nfunction isPlainObject(payload) {\n if (getType(payload) !== \"Object\")\n return false;\n const prototype = Object.getPrototypeOf(payload);\n return !!prototype && prototype.constructor === Object && prototype === Object.prototype;\n}\n\nfunction isEmptyObject(payload) {\n return isPlainObject(payload) && Object.keys(payload).length === 0;\n}\n\nfunction isEmptyString(payload) {\n return payload === \"\";\n}\n\nfunction isError(payload) {\n return getType(payload) === \"Error\" || payload instanceof Error;\n}\n\nfunction isFile(payload) {\n return getType(payload) === \"File\";\n}\n\nfunction isFullArray(payload) {\n return isArray(payload) && payload.length > 0;\n}\n\nfunction isFullObject(payload) {\n return isPlainObject(payload) && Object.keys(payload).length > 0;\n}\n\nfunction isString(payload) {\n return getType(payload) === \"String\";\n}\n\nfunction isFullString(payload) {\n return isString(payload) && payload !== \"\";\n}\n\nfunction isFunction(payload) {\n return typeof payload === \"function\";\n}\n\nfunction isType(payload, type) {\n if (!(type instanceof Function)) {\n throw new TypeError(\"Type must be a function\");\n }\n if (!Object.prototype.hasOwnProperty.call(type, \"prototype\")) {\n throw new TypeError(\"Type is not a class\");\n }\n const name = type.name;\n return getType(payload) === name || Boolean(payload && payload.constructor === type);\n}\n\nfunction isInstanceOf(value, classOrClassName) {\n if (typeof classOrClassName === \"function\") {\n for (let p = value; p; p = Object.getPrototypeOf(p)) {\n if (isType(p, classOrClassName)) {\n return true;\n }\n }\n return false;\n } else {\n for (let p = value; p; p = Object.getPrototypeOf(p)) {\n if (getType(p) === classOrClassName) {\n return true;\n }\n }\n return false;\n }\n}\n\nfunction isMap(payload) {\n return getType(payload) === \"Map\";\n}\n\nfunction isNaNValue(payload) {\n return getType(payload) === \"Number\" && isNaN(payload);\n}\n\nfunction isNumber(payload) {\n return getType(payload) === \"Number\" && !isNaN(payload);\n}\n\nfunction isNegativeNumber(payload) {\n return isNumber(payload) && payload < 0;\n}\n\nfunction isNull(payload) {\n return getType(payload) === \"Null\";\n}\n\nfunction isOneOf(a, b, c, d, e) {\n return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);\n}\n\nfunction isUndefined(payload) {\n return getType(payload) === \"Undefined\";\n}\n\nconst isNullOrUndefined = isOneOf(isNull, isUndefined);\n\nfunction isObject(payload) {\n return isPlainObject(payload);\n}\n\nfunction isObjectLike(payload) {\n return isAnyObject(payload);\n}\n\nfunction isPositiveNumber(payload) {\n return isNumber(payload) && payload > 0;\n}\n\nfunction isSymbol(payload) {\n return getType(payload) === \"Symbol\";\n}\n\nfunction isPrimitive(payload) {\n return isBoolean(payload) || isNull(payload) || isUndefined(payload) || isNumber(payload) || isString(payload) || isSymbol(payload);\n}\n\nfunction isPromise(payload) {\n return getType(payload) === \"Promise\";\n}\n\nfunction isRegExp(payload) {\n return getType(payload) === \"RegExp\";\n}\n\nfunction isSet(payload) {\n return getType(payload) === \"Set\";\n}\n\nfunction isWeakMap(payload) {\n return getType(payload) === \"WeakMap\";\n}\n\nfunction isWeakSet(payload) {\n return getType(payload) === \"WeakSet\";\n}\n\nexport { getType, isAnyObject, isArray, isBlob, isBoolean, isDate, isEmptyArray, isEmptyObject, isEmptyString, isError, isFile, isFullArray, isFullObject, isFullString, isFunction, isInstanceOf, isMap, isNaNValue, isNegativeNumber, isNull, isNullOrUndefined, isNumber, isObject, isObjectLike, isOneOf, isPlainObject, isPositiveNumber, isPrimitive, isPromise, isRegExp, isSet, isString, isSymbol, isType, isUndefined, isWeakMap, isWeakSet };\n"],"names":["getType","payload","isArray","isPlainObject","prototype"],"mappings":"AAAA,SAASA,EAAQC,GAAS;AACxB,SAAO,OAAO,UAAU,SAAS,KAAKA,CAAO,EAAE,MAAM,GAAG,EAAE;AAC5D;AAMA,SAASC,EAAQD,GAAS;AACxB,SAAOD,EAAQC,CAAO,MAAM;AAC9B;AAkBA,SAASE,EAAcF,GAAS;AAC9B,MAAID,EAAQC,CAAO,MAAM;AACvB,WAAO;AACT,QAAMG,IAAY,OAAO,eAAeH,CAAO;AAC/C,SAAO,CAAC,CAACG,KAAaA,EAAU,gBAAgB,UAAUA,MAAc,OAAO;AACjF;","x_google_ignoreList":[0]}
|
package/dist/index25.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as g, computed as n, ref as _, openBlock as w, createElementBlock as B, normalizeClass as C, createElementVNode as l, normalizeProps as t, guardReactiveProps as u, renderSlot as V } from "vue";
|
|
2
|
-
import { isCssColor as i } from "./
|
|
3
|
-
import { when as E } from "./
|
|
2
|
+
import { isCssColor as i } from "./index207.js";
|
|
3
|
+
import { when as E } from "./index208.js";
|
|
4
4
|
const N = {
|
|
5
5
|
class: "bb-base-radio-container",
|
|
6
6
|
"aria-hidden": "true"
|
package/dist/index253.js
CHANGED
package/dist/index254.js
CHANGED
package/dist/index29.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, ref as b, computed as f, openBlock as l, createElementBlock as i, mergeProps as g, createElementVNode as r, Fragment as I, renderList as V, normalizeClass as B, toDisplayString as h, renderSlot as x } from "vue";
|
|
2
|
-
import { booleanishToBoolean as M } from "./
|
|
3
|
-
import { identity as F } from "./
|
|
4
|
-
import { isCssColor as p } from "./
|
|
2
|
+
import { booleanishToBoolean as M } from "./index215.js";
|
|
3
|
+
import { identity as F } from "./index216.js";
|
|
4
|
+
import { isCssColor as p } from "./index207.js";
|
|
5
5
|
import { isNotNil as T } from "./index124.js";
|
|
6
6
|
const H = { class: "bb-base-rating__inner-container" }, D = { class: "bb-base-rating__label-text" }, N = ["autofocus", "checked", "disabled", "id", "name", "value"], j = ["width", "height"], A = /* @__PURE__ */ r("path", {
|
|
7
7
|
"stroke-linecap": "round",
|
package/dist/index31.js
CHANGED
|
@@ -3,17 +3,17 @@ import Pe from "./index115.js";
|
|
|
3
3
|
import "./index158.js";
|
|
4
4
|
import He from "./index119.js";
|
|
5
5
|
import "./index185.js";
|
|
6
|
-
import { autoUpdate as je, computePosition as Qe, flip as
|
|
6
|
+
import { autoUpdate as je, computePosition as Qe, flip as Ue, shift as We } from "./index209.js";
|
|
7
7
|
import { deepEqual as re } from "./index123.js";
|
|
8
|
-
import { head as le } from "./
|
|
8
|
+
import { head as le } from "./index210.js";
|
|
9
9
|
import { isNotNil as I } from "./index124.js";
|
|
10
|
-
import { last as
|
|
10
|
+
import { last as Re } from "./index203.js";
|
|
11
11
|
import { useItemText as Ke } from "./index125.js";
|
|
12
12
|
import { useItemValue as Ye } from "./index126.js";
|
|
13
13
|
import { wait as q } from "./index122.js";
|
|
14
|
-
import { waitFor as Ze } from "./
|
|
15
|
-
import { when as Ge } from "./
|
|
16
|
-
import { offset as Xe } from "./
|
|
14
|
+
import { waitFor as Ze } from "./index206.js";
|
|
15
|
+
import { when as Ge } from "./index208.js";
|
|
16
|
+
import { offset as Xe } from "./index211.js";
|
|
17
17
|
const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "autofocus", "disabled", "id", "placeholder", "readonly"], tl = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "bb-base-select__loading-container"
|
|
@@ -31,7 +31,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
31
31
|
d: "M0.851779 0.225802C0.90403 0.173418 0.966103 0.131858 1.03444 0.1035C1.10278 0.0751431 1.17604 0.0605469 1.25003 0.0605469C1.32402 0.0605469 1.39728 0.0751431 1.46562 0.1035C1.53396 0.131858 1.59603 0.173418 1.64828 0.225802L8.00003 6.57868L14.3518 0.225802C14.4041 0.173503 14.4662 0.132017 14.5345 0.103713C14.6028 0.0754093 14.6761 0.0608414 14.75 0.0608414C14.824 0.0608414 14.8972 0.0754093 14.9656 0.103713C15.0339 0.132017 15.096 0.173503 15.1483 0.225802C15.2006 0.278101 15.2421 0.340189 15.2704 0.408521C15.2987 0.476852 15.3132 0.55009 15.3132 0.624052C15.3132 0.698014 15.2987 0.771252 15.2704 0.839584C15.2421 0.907916 15.2006 0.970003 15.1483 1.0223L8.39828 7.7723C8.34603 7.82469 8.28395 7.86625 8.21562 7.8946C8.14728 7.92296 8.07402 7.93756 8.00003 7.93756C7.92604 7.93756 7.85278 7.92296 7.78444 7.8946C7.7161 7.86625 7.65403 7.82469 7.60178 7.7723L0.851779 1.0223C0.799395 0.970051 0.757835 0.907978 0.729477 0.83964C0.70112 0.771302 0.686523 0.69804 0.686523 0.624052C0.686523 0.550064 0.70112 0.476803 0.729477 0.408464C0.757835 0.340126 0.799395 0.278053 0.851779 0.225802Z",
|
|
32
32
|
fill: "currentColor"
|
|
33
33
|
})
|
|
34
|
-
], -1),
|
|
34
|
+
], -1), Ol = /* @__PURE__ */ Ne({
|
|
35
35
|
__name: "BaseSelect",
|
|
36
36
|
props: {
|
|
37
37
|
allowWriting: { type: Boolean, default: !0 },
|
|
@@ -61,7 +61,6 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
61
61
|
filterBy: { type: [String, Array, Boolean, Function, null], default: () => [] },
|
|
62
62
|
prefill: { type: [Boolean, String], default: "focus" },
|
|
63
63
|
queryDebounceTime: { default: 500 },
|
|
64
|
-
refreshOnReset: { type: Boolean },
|
|
65
64
|
resetQueryOnOptionSelected: { type: Boolean },
|
|
66
65
|
stash: { type: Boolean },
|
|
67
66
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
|
@@ -144,7 +143,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
144
143
|
return t || a.text.toLowerCase().includes(s.value.toLowerCase());
|
|
145
144
|
}) : e = C.value, e.map((a, t) => ({
|
|
146
145
|
...a,
|
|
147
|
-
focused:
|
|
146
|
+
focused: O.value === t
|
|
148
147
|
}));
|
|
149
148
|
}), z = g(
|
|
150
149
|
() => C.value.reduce(
|
|
@@ -233,7 +232,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
233
232
|
let t = l.modelValue.every(
|
|
234
233
|
(n) => p.value.get(n)
|
|
235
234
|
);
|
|
236
|
-
if ((!t || a === void 0
|
|
235
|
+
if ((!t || a === void 0) && (await N({ prefill: !0 }), t = l.modelValue.every(
|
|
237
236
|
(n) => p.value.get(n)
|
|
238
237
|
)), t)
|
|
239
238
|
l.stash && (m.value = l.modelValue.map(
|
|
@@ -277,11 +276,11 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
277
276
|
!p.value.get(l.modelValue) && l.enforceCoherence && I(l.modelValue) && c("update:modelValue", null), r.value = null;
|
|
278
277
|
}
|
|
279
278
|
);
|
|
280
|
-
let
|
|
279
|
+
let U;
|
|
281
280
|
X(
|
|
282
281
|
() => l.dependencies,
|
|
283
282
|
(e, a) => {
|
|
284
|
-
!P && l.prefill === "focus" && Y || JSON.stringify(e) !== JSON.stringify(a) && (
|
|
283
|
+
!P && l.prefill === "focus" && Y || JSON.stringify(e) !== JSON.stringify(a) && (U && clearTimeout(U), U = setTimeout(async () => {
|
|
285
284
|
if (JSON.stringify(e) !== JSON.stringify(a)) {
|
|
286
285
|
l.enforceCoherence && l.stash && (m.value = []);
|
|
287
286
|
let t = s.value;
|
|
@@ -305,15 +304,15 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
305
304
|
const ge = () => {
|
|
306
305
|
E.value && v.value && Qe(E.value, v.value, {
|
|
307
306
|
placement: "bottom",
|
|
308
|
-
middleware: [Xe(6),
|
|
307
|
+
middleware: [Xe(6), Ue(), We()]
|
|
309
308
|
}).then((e) => {
|
|
310
309
|
var a;
|
|
311
310
|
v.value && (v.value.style.left = `${e.x}px`, v.value.style.top = `${e.y}px`, v.value.style.width = `${(a = E.value) == null ? void 0 : a.offsetWidth}px`);
|
|
312
311
|
});
|
|
313
|
-
},
|
|
314
|
-
K.value = !1,
|
|
312
|
+
}, _ = f(!1), W = f(!1), R = f(!1), K = f(!0), $ = async () => {
|
|
313
|
+
K.value = !1, W.value = !0, await q(l.transitionDuration), W.value = !1, _.value = !0;
|
|
315
314
|
}, M = async () => {
|
|
316
|
-
|
|
315
|
+
_.value = !1, R.value = !0, await q(l.transitionDuration), R.value = !1, K.value = !0;
|
|
317
316
|
}, H = f(!1);
|
|
318
317
|
let Y = !0;
|
|
319
318
|
const we = async (e) => {
|
|
@@ -341,12 +340,12 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
341
340
|
}
|
|
342
341
|
}, Ce = (e) => c("change", e), ke = (e) => {
|
|
343
342
|
c("input", e), s.value === "" && (l.multiple || c("update:modelValue", null)), typeof l.items == "function" && Se();
|
|
344
|
-
}, r = f(null),
|
|
343
|
+
}, r = f(null), O = g(() => Number.isInteger(r.value) && r.value ? (r.value === -1 && (r.value = k.value.length - 1), r.value % k.value.length) : r.value), o = f(null), _e = () => {
|
|
345
344
|
r.value !== null ? r.value++ : r.value = 0, ie().then(() => {
|
|
346
345
|
var e;
|
|
347
|
-
if (
|
|
346
|
+
if (O.value !== null) {
|
|
348
347
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
349
|
-
`#${C.value[
|
|
348
|
+
`#${C.value[O.value].id}`
|
|
350
349
|
);
|
|
351
350
|
a instanceof HTMLElement && a.scrollIntoView({
|
|
352
351
|
behavior: "smooth",
|
|
@@ -355,12 +354,12 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
355
354
|
});
|
|
356
355
|
}
|
|
357
356
|
});
|
|
358
|
-
},
|
|
357
|
+
}, Oe = () => {
|
|
359
358
|
r.value !== null ? r.value-- : r.value = C.value.length - 1, ie().then(() => {
|
|
360
359
|
var e;
|
|
361
|
-
if (
|
|
360
|
+
if (O.value !== null) {
|
|
362
361
|
const a = (e = v.value) == null ? void 0 : e.querySelector(
|
|
363
|
-
`#${C.value[
|
|
362
|
+
`#${C.value[O.value].id}`
|
|
364
363
|
);
|
|
365
364
|
a instanceof HTMLElement && a.scrollIntoView({
|
|
366
365
|
behavior: "smooth",
|
|
@@ -380,14 +379,14 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
380
379
|
{
|
|
381
380
|
if (e.preventDefault(), d.value)
|
|
382
381
|
return;
|
|
383
|
-
o.value = null,
|
|
382
|
+
o.value = null, _.value ? Oe() : (i.value.length && (r.value = le(i.value).index), await $());
|
|
384
383
|
}
|
|
385
384
|
break;
|
|
386
385
|
case "ArrowDown":
|
|
387
386
|
{
|
|
388
387
|
if (e.preventDefault(), d.value)
|
|
389
388
|
return;
|
|
390
|
-
o.value = null,
|
|
389
|
+
o.value = null, _.value ? _e() : (i.value.length && (r.value = le(i.value).index), await $());
|
|
391
390
|
}
|
|
392
391
|
break;
|
|
393
392
|
case "ArrowLeft":
|
|
@@ -426,13 +425,13 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
426
425
|
{
|
|
427
426
|
if (e.preventDefault(), d.value)
|
|
428
427
|
return;
|
|
429
|
-
if (!
|
|
428
|
+
if (!_.value)
|
|
430
429
|
k.value.length && i.value.length && (r.value = le(i.value).index), await $();
|
|
431
|
-
else if (
|
|
432
|
-
if (k.value[
|
|
430
|
+
else if (O.value !== null) {
|
|
431
|
+
if (k.value[O.value].disabled)
|
|
433
432
|
return;
|
|
434
433
|
l.multiple || await M(), A(
|
|
435
|
-
k.value[
|
|
434
|
+
k.value[O.value]
|
|
436
435
|
);
|
|
437
436
|
} else if (l.addOptions) {
|
|
438
437
|
if (l.itemText || l.itemValue) {
|
|
@@ -442,14 +441,14 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
442
441
|
return;
|
|
443
442
|
}
|
|
444
443
|
ye();
|
|
445
|
-
const n =
|
|
444
|
+
const n = Re(V.value);
|
|
446
445
|
A(z.value[n.id]);
|
|
447
446
|
}
|
|
448
447
|
}
|
|
449
448
|
break;
|
|
450
449
|
case "Tab":
|
|
451
450
|
case "Escape":
|
|
452
|
-
|
|
451
|
+
_.value && await M(), c("inactive"), o.value = null, r.value = null;
|
|
453
452
|
break;
|
|
454
453
|
case "Shift":
|
|
455
454
|
if (d.value)
|
|
@@ -594,9 +593,9 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
594
593
|
w("span", {
|
|
595
594
|
class: x({
|
|
596
595
|
"bb-base-select__options-container": !0,
|
|
597
|
-
"bb-base-select__options-container--shown":
|
|
598
|
-
"bb-base-select__options-container--showing":
|
|
599
|
-
"bb-base-select__options-container--hiding":
|
|
596
|
+
"bb-base-select__options-container--shown": _.value,
|
|
597
|
+
"bb-base-select__options-container--showing": W.value,
|
|
598
|
+
"bb-base-select__options-container--hiding": R.value,
|
|
600
599
|
"bb-base-select__options-container--hidden": K.value
|
|
601
600
|
}),
|
|
602
601
|
role: "listbox",
|
|
@@ -661,7 +660,7 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
661
660
|
w("span", ol, [
|
|
662
661
|
h(e.$slots, "chevron", {
|
|
663
662
|
loading: !!d.value,
|
|
664
|
-
shown:
|
|
663
|
+
shown: _.value
|
|
665
664
|
}, () => [
|
|
666
665
|
il
|
|
667
666
|
])
|
|
@@ -688,6 +687,6 @@ const el = { class: "bb-base-select__input-container" }, ll = ["autocomplete", "
|
|
|
688
687
|
}
|
|
689
688
|
});
|
|
690
689
|
export {
|
|
691
|
-
|
|
690
|
+
Ol as default
|
|
692
691
|
};
|
|
693
692
|
//# sourceMappingURL=index31.js.map
|