bitboss-ui 2.0.171 → 2.0.173
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/BaseColorInput/BaseColorInput.vue.d.ts +97 -7
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +2 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +28 -8
- package/dist/components/BbPopover/BbPopover.vue.d.ts +30 -10
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +28 -8
- package/dist/components/CommonPopover.vue.d.ts +8 -4
- package/dist/index.css +1 -1
- package/dist/index106.js +8 -8
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +10 -10
- package/dist/index129.js +2 -2
- package/dist/index13.js +1 -1
- package/dist/index131.js +40 -39
- package/dist/index133.js +1 -1
- package/dist/index139.js +2 -2
- package/dist/index15.js +130 -142
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index209.js +5 -2
- package/dist/index21.js +16 -16
- package/dist/index210.js +5 -4
- package/dist/index211.js +5 -2
- package/dist/index212.js +5 -18
- package/dist/index213.js +5 -128
- package/dist/index214.js +5 -106
- package/dist/index215.js +7 -0
- package/dist/index216.js +3 -100
- package/dist/index217.js +4 -0
- package/dist/index218.js +6 -64
- package/dist/index219.js +252 -0
- package/dist/index220.js +52 -13
- package/dist/index221.js +43 -5
- package/dist/index222.js +5 -15
- package/dist/index223.js +60 -29
- package/dist/index224.js +13 -16
- package/dist/index225.js +2 -12
- package/dist/index226.js +2 -51
- package/dist/index227.js +2 -17
- package/dist/index228.js +66 -15
- package/dist/index23.js +140 -174
- package/dist/index230.js +13 -12
- package/dist/index231.js +177 -13
- package/dist/index232.js +41 -2
- package/dist/index233.js +5 -227
- package/dist/index234.js +7 -368
- package/dist/index235.js +15 -2
- package/dist/index236.js +86 -5
- package/dist/index238.js +29 -5
- package/dist/index239.js +16 -5
- package/dist/index240.js +17 -5
- package/dist/index241.js +51 -5
- package/dist/index242.js +15 -5
- package/dist/index243.js +12 -8
- package/dist/index244.js +30 -246
- package/dist/index245.js +3 -52
- package/dist/index246.js +5 -44
- package/dist/index247.js +2 -5
- package/dist/index248.js +11 -60
- package/dist/index249.js +20 -5
- package/dist/index25.js +5 -5
- package/dist/index250.js +120 -2
- package/dist/index252.js +4 -20
- package/dist/index253.js +4 -94
- package/dist/index254.js +202 -0
- package/dist/index256.js +18 -4
- package/dist/index257.js +12 -200
- package/dist/index258.js +108 -0
- package/dist/index260.js +95 -81
- package/dist/index262.js +224 -30
- package/dist/index265.js +10 -3
- package/dist/index266.js +2 -176
- package/dist/index267.js +6 -10
- package/dist/index268.js +16 -3
- package/dist/index269.js +3 -6
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -16
- package/dist/index271.js +9 -11
- package/dist/index272.js +8 -100
- package/dist/index273.js +25 -0
- package/dist/index274.js +9 -3
- package/dist/index275.js +8 -9
- package/dist/index276.js +67 -23
- package/dist/index277.js +5 -2
- package/dist/index278.js +280 -9
- package/dist/index279.js +2 -8
- package/dist/index280.js +16 -5
- package/dist/index281.js +2 -67
- package/dist/index282.js +15 -4
- package/dist/index283.js +2 -8
- package/dist/index284.js +19 -4
- package/dist/index285.js +2 -4
- package/dist/index286.js +14 -128
- package/dist/index287.js +2 -3
- package/dist/index288.js +19 -3
- package/dist/index289.js +2 -3
- package/dist/index29.js +2 -2
- package/dist/index290.js +29 -0
- package/dist/index291.js +2 -7
- package/dist/index292.js +1 -1
- package/dist/index293.js +1 -1
- package/dist/index294.js +2 -17
- package/dist/index295.js +2 -28
- package/dist/index296.js +28 -7
- package/dist/index297.js +22 -11
- package/dist/index299.js +7 -2
- package/dist/index300.js +7 -16
- package/dist/index301.js +11 -2
- package/dist/index302.js +5 -15
- package/dist/index303.js +3 -2
- package/dist/index305.js +2 -2
- package/dist/index306.js +3 -15
- package/dist/index307.js +17 -2
- package/dist/index308.js +469 -17
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +199 -26
- package/dist/index311.js +5 -2
- package/dist/index312.js +4 -2
- package/dist/index313.js +125 -2
- package/dist/index314.js +2 -2
- package/dist/index315.js +3 -2
- package/dist/index316.js +3 -22
- package/dist/{index353.js → index317.js} +1 -1
- package/dist/index318.js +3 -125
- package/dist/index319.js +2 -2
- package/dist/index320.js +4 -470
- package/dist/index321.js +8 -3
- package/dist/index322.js +5 -3
- package/dist/index323.js +3 -381
- package/dist/index324.js +700 -125
- package/dist/index325.js +354 -2
- package/dist/index326.js +58 -3
- package/dist/index327.js +2 -6
- package/dist/index328.js +32 -199
- package/dist/index329.js +28 -5
- package/dist/index33.js +8 -8
- package/dist/index331.js +7 -354
- package/dist/index332.js +17 -56
- package/dist/index333.js +58 -3
- package/dist/index334.js +58 -5
- package/dist/index335.js +6 -46
- package/dist/index336.js +47 -2
- package/dist/index337.js +128 -32
- package/dist/index338.js +369 -28
- package/dist/index339.js +10 -0
- package/dist/index340.js +6 -58
- package/dist/index341.js +7 -57
- package/dist/index342.js +227 -6
- package/dist/index343.js +92 -7
- package/dist/index345.js +3 -8
- package/dist/index346.js +482 -5
- package/dist/index347.js +128 -6
- package/dist/index348.js +46 -18
- package/dist/index349.js +431 -223
- package/dist/index35.js +4 -4
- package/dist/index350.js +125 -91
- package/dist/index37.js +230 -240
- package/dist/index39.js +2 -2
- 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 +1 -1
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +106 -112
- 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 +56 -56
- package/package.json +2 -2
- package/dist/components/CommonFloating.vue.d.ts +0 -38
- package/dist/index229.js +0 -5
- package/dist/index237.js +0 -7
- package/dist/index251.js +0 -43
- package/dist/index255.js +0 -11
- package/dist/index259.js +0 -9
- package/dist/index298.js +0 -282
- package/dist/index304.js +0 -21
- package/dist/index330.js +0 -703
- package/dist/index344.js +0 -8
- package/dist/index351.js +0 -484
- package/dist/index354.js +0 -49
- package/dist/index355.js +0 -483
- package/dist/index356.js +0 -4
package/dist/index39.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, createElementBlock as g, openBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, createCommentVNode as H, Fragment as ee, renderList as ae, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeStyle as F, normalizeClass as I } from "vue";
|
2
2
|
import { clamp as le } from "./index207.js";
|
3
3
|
import { head as O } from "./index263.js";
|
4
|
-
import { isCssColor as Y } from "./
|
4
|
+
import { isCssColor as Y } from "./index227.js";
|
5
5
|
import { isNil as P } from "./index264.js";
|
6
6
|
import { isNotNil as ne } from "./index140.js";
|
7
7
|
import { transposeValue as y } from "./index136.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index216.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index227.js";
|
3
|
+
import { when as N } from "./index252.js";
|
4
4
|
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index236.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index238.js";
|
7
|
+
import { useIndexById as T } from "./index240.js";
|
8
|
+
import { useBaseOptions as q } from "./index241.js";
|
9
|
+
import { useCoherence as J } from "./index242.js";
|
10
|
+
import { hash as Q } from "./index216.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index243.js";
|
12
|
+
import { usePrefill as X } from "./index239.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index111.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index217.js";
|
7
|
+
import { useBaseOptions as ne } from "./index241.js";
|
8
|
+
import { useIndexById as re } from "./index240.js";
|
9
|
+
import ie from "./index258.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index260.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index228.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index230.js";
|
16
|
+
import { isEmpty as pe } from "./index247.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index230.js";
|
3
|
+
import G from "./index228.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index111.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
|
2
|
-
import E from "./
|
2
|
+
import E from "./index228.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
4
|
+
import I from "./index230.js";
|
5
5
|
import { isNotNil as N } from "./index140.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index231.js";
|
7
7
|
const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseTextInput",
|
9
9
|
props: {
|
package/dist/index53.js
CHANGED
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 "./index227.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,5 +1,5 @@
|
|
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 "./
|
2
|
+
import { isCssColor as l } from "./index227.js";
|
3
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",
|
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 "./index265.js";
|
11
|
+
import { noop as w } from "./index266.js";
|
12
|
+
import { useLocale as D } from "./index224.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 "./index224.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,17 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { findRightIndex as
|
3
|
-
import { useId as
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { wait as ne } from "./index135.js";
|
1
|
+
import { defineComponent as N, computed as R, ref as g, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as T, 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 D } from "./index272.js";
|
3
|
+
import { useId as te } from "./index8.js";
|
4
|
+
import { useUntil as ne } from "./index248.js";
|
5
|
+
import { wait as oe } from "./index135.js";
|
7
6
|
import ae from "./index13.js";
|
8
7
|
/* empty css */
|
9
|
-
import
|
8
|
+
import B from "./index85.js";
|
10
9
|
/* empty css */
|
11
|
-
import le from "./
|
10
|
+
import le from "./index250.js";
|
12
11
|
/* empty css */
|
13
|
-
import
|
14
|
-
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
12
|
+
import K from "./index273.js";
|
13
|
+
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, ge = /* @__PURE__ */ N({
|
15
14
|
__name: "BbDropdown",
|
16
15
|
props: {
|
17
16
|
arrowPadding: { default: 10 },
|
@@ -29,43 +28,43 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
29
28
|
width: { default: 200 }
|
30
29
|
},
|
31
30
|
setup(O) {
|
32
|
-
const u = O, d = u.id ?? `bb_${
|
33
|
-
let e = u.items.findIndex((
|
31
|
+
const u = O, d = u.id ?? `bb_${te().id.value}`, c = R(() => {
|
32
|
+
let e = u.items.findIndex((n) => !n.disabled), o = D(
|
34
33
|
u.items,
|
35
|
-
(
|
34
|
+
(n) => !n.disabled
|
36
35
|
);
|
37
|
-
return u.items.map((
|
38
|
-
const
|
39
|
-
await
|
36
|
+
return u.items.map((n, t) => {
|
37
|
+
const a = `${d}-item-${n.key}`, { onClick: _, ...C } = n, j = async () => {
|
38
|
+
await p();
|
40
39
|
const s = document.querySelector(`#${d}`);
|
41
40
|
if (s) s instanceof HTMLElement && s.focus();
|
42
41
|
else return;
|
43
|
-
|
44
|
-
},
|
42
|
+
_ && _();
|
43
|
+
}, z = (s) => {
|
45
44
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
46
45
|
if (!i.value) return;
|
47
46
|
if (s.key === "ArrowDown") {
|
48
|
-
if (s.preventDefault(), i.value && t !==
|
47
|
+
if (s.preventDefault(), i.value && t !== o) {
|
49
48
|
const r = i.value.querySelector(
|
50
|
-
|
49
|
+
K.map((v) => `#${a} ~ ${v}`).join(",")
|
51
50
|
);
|
52
51
|
r && r instanceof HTMLElement && r.focus();
|
53
52
|
}
|
54
53
|
} else if (s.key === "ArrowUp") {
|
55
54
|
if (s.preventDefault(), i.value && t !== e) {
|
56
|
-
const r =
|
55
|
+
const r = D(u.items, (w, L) => L < t && !w.disabled), y = Array.from(
|
57
56
|
i.value.querySelectorAll(".bb-dropdown__item")
|
58
57
|
)[r];
|
59
|
-
|
58
|
+
y && y instanceof HTMLElement && y.focus();
|
60
59
|
}
|
61
60
|
} else if (s.key === "Tab") {
|
62
|
-
if (t ===
|
63
|
-
const r =
|
61
|
+
if (t === o && !s.shiftKey) {
|
62
|
+
const r = K.join(","), v = Array.from(
|
64
63
|
document.querySelectorAll(r)
|
65
|
-
),
|
66
|
-
(
|
67
|
-
),
|
68
|
-
if (
|
64
|
+
), y = v.findIndex(
|
65
|
+
(L) => L.id === d
|
66
|
+
), w = v[y + 1];
|
67
|
+
if (w) w instanceof HTMLElement && (s.preventDefault(), p(), w.focus());
|
69
68
|
else return;
|
70
69
|
} else if (t === e && s.shiftKey) {
|
71
70
|
const r = document.querySelector(`#${d}`);
|
@@ -76,92 +75,88 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
76
75
|
}
|
77
76
|
};
|
78
77
|
return {
|
79
|
-
...
|
80
|
-
original:
|
81
|
-
key:
|
82
|
-
disabled:
|
83
|
-
id:
|
84
|
-
onClick:
|
85
|
-
onKeydown:
|
78
|
+
...C,
|
79
|
+
original: n,
|
80
|
+
key: n.key.split(/\W+/g).join("_").toLowerCase(),
|
81
|
+
disabled: C.disabled || u.disabled,
|
82
|
+
id: a,
|
83
|
+
onClick: j,
|
84
|
+
onKeydown: z
|
86
85
|
};
|
87
86
|
});
|
88
|
-
}),
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
e !== 1 && l.value && f();
|
93
|
-
},
|
94
|
-
{ threshold: [0, 1] }
|
95
|
-
);
|
96
|
-
const l = g(!1), E = oe(l), K = () => {
|
97
|
-
l.value ? f() : $();
|
98
|
-
}, P = async (e) => {
|
99
|
-
let a = u.items.findIndex((t) => !t.disabled), o = H(
|
87
|
+
}), b = g(), i = g(), l = g(!1), E = ne(l), P = () => {
|
88
|
+
l.value ? p() : $();
|
89
|
+
}, V = async (e) => {
|
90
|
+
let o = u.items.findIndex((t) => !t.disabled), n = D(
|
100
91
|
u.items,
|
101
92
|
(t) => !t.disabled
|
102
93
|
);
|
103
94
|
if (e.key === "ArrowDown") {
|
104
|
-
if (e.preventDefault(), l.value || await $(), i.value && c.value.length &&
|
105
|
-
const t = c.value[
|
106
|
-
|
95
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && o !== -1) {
|
96
|
+
const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
|
97
|
+
a && a instanceof HTMLElement && a.focus();
|
107
98
|
}
|
108
99
|
} else if (e.key === "ArrowUp") {
|
109
|
-
if (e.preventDefault(), l.value || await $(), i.value && c.value.length &&
|
110
|
-
const t = c.value[
|
111
|
-
|
100
|
+
if (e.preventDefault(), l.value || await $(), i.value && c.value.length && n !== -1) {
|
101
|
+
const t = c.value[n].id, a = i.value.querySelector(`#${t}`);
|
102
|
+
a && a instanceof HTMLElement && a.focus();
|
112
103
|
}
|
113
|
-
} else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length &&
|
114
|
-
const t = c.value[
|
115
|
-
|
104
|
+
} else if (e.key === "Tab" && l.value && !e.shiftKey && (e.preventDefault(), i.value && c.value.length && o !== -1)) {
|
105
|
+
const t = c.value[o].id, a = i.value.querySelector(`#${t}`);
|
106
|
+
a && a instanceof HTMLElement && a.focus();
|
116
107
|
}
|
117
|
-
},
|
118
|
-
const
|
119
|
-
if (
|
120
|
-
let
|
121
|
-
|
108
|
+
}, H = (e) => {
|
109
|
+
const o = e.target;
|
110
|
+
if (o && o instanceof HTMLElement) {
|
111
|
+
let n = !0;
|
112
|
+
b.value && b.value.$el.contains(o) && (n = !1), i.value && i.value.contains(o) && (n = !1), n && p();
|
122
113
|
}
|
123
114
|
}, M = (e) => {
|
124
|
-
const
|
125
|
-
if (
|
126
|
-
let
|
127
|
-
|
115
|
+
const o = e.target;
|
116
|
+
if (o && o instanceof HTMLElement) {
|
117
|
+
let n = !0;
|
118
|
+
b.value && b.value.$el.contains(o) && (n = !1), n && p();
|
128
119
|
}
|
129
120
|
}, S = (e) => {
|
130
|
-
var
|
121
|
+
var o;
|
131
122
|
if (l.value && e.key === "Escape") {
|
132
|
-
if (((
|
133
|
-
const
|
134
|
-
|
123
|
+
if (((o = document.activeElement) == null ? void 0 : o.id) !== d) {
|
124
|
+
const n = document.querySelector(`#${d}`);
|
125
|
+
n instanceof HTMLElement && n.focus();
|
135
126
|
}
|
136
|
-
|
127
|
+
p();
|
137
128
|
}
|
138
|
-
},
|
139
|
-
|
140
|
-
},
|
141
|
-
l.value = !1
|
129
|
+
}, U = g(!1), $ = async () => {
|
130
|
+
U.value = !0, await oe(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
|
131
|
+
}, p = async () => {
|
132
|
+
l.value = !1;
|
142
133
|
};
|
143
|
-
return (
|
134
|
+
return W(l, (e) => {
|
135
|
+
e || (document.removeEventListener("click", H), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S));
|
136
|
+
}), (e, o) => (k(), h(le, {
|
144
137
|
ref_key: "wrapper",
|
145
|
-
ref:
|
138
|
+
ref: b,
|
139
|
+
modelValue: l.value,
|
140
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => l.value = n),
|
146
141
|
"arrow-padding": e.arrowPadding,
|
147
142
|
block: e.block,
|
148
|
-
class:
|
143
|
+
class: G(["bb-dropdown", {
|
149
144
|
[`bb-dropdown--${e.theme}`]: !0
|
150
145
|
}]),
|
151
|
-
"model-value": l.value,
|
152
146
|
offset: e.offset,
|
153
147
|
padding: e.padding,
|
154
148
|
placement: e.placement,
|
149
|
+
"render-content": f(E),
|
155
150
|
"transition-duration": e.transitionDuration
|
156
151
|
}, {
|
157
152
|
activator: T(() => [
|
158
|
-
|
153
|
+
m(e.$slots, "activator", x(ee({
|
159
154
|
props: {
|
160
|
-
"aria-expanded":
|
161
|
-
"aria-controls":
|
162
|
-
id:
|
163
|
-
onClick:
|
164
|
-
onKeydown:
|
155
|
+
"aria-expanded": f(E) ? l.value : !1,
|
156
|
+
"aria-controls": f(E) ? `menu_${f(d)}` : void 0,
|
157
|
+
id: f(d),
|
158
|
+
onClick: P,
|
159
|
+
onKeydown: V,
|
165
160
|
disabled: e.disabled
|
166
161
|
},
|
167
162
|
disabled: e.disabled,
|
@@ -170,86 +165,85 @@ const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" },
|
|
170
165
|
})))
|
171
166
|
]),
|
172
167
|
default: T(() => [
|
173
|
-
|
174
|
-
|
175
|
-
id: `menu_${p(d)}`,
|
168
|
+
I("span", {
|
169
|
+
id: `menu_${f(d)}`,
|
176
170
|
ref_key: "content",
|
177
171
|
ref: i,
|
178
|
-
"aria-labelledby":
|
172
|
+
"aria-labelledby": f(d),
|
179
173
|
"aria-role": "menu",
|
180
174
|
class: "bb-dropdown__items-container",
|
181
175
|
inert: !l.value,
|
182
|
-
style:
|
176
|
+
style: J({ width: `${e.width}px` })
|
183
177
|
}, [
|
184
|
-
|
178
|
+
m(e.$slots, "prepend", {
|
185
179
|
disabled: e.disabled,
|
186
180
|
open: l.value,
|
187
181
|
placement: e.placement
|
188
182
|
}),
|
189
|
-
(
|
183
|
+
(k(!0), q(F, null, Q(c.value, ({ original: n, ...t }, a) => (k(), q(F, {
|
190
184
|
key: t.key
|
191
185
|
}, [
|
192
|
-
|
186
|
+
m(e.$slots, "item:prepend", {
|
193
187
|
disabled: t.disabled,
|
194
|
-
index:
|
195
|
-
item: e.items[
|
188
|
+
index: a,
|
189
|
+
item: e.items[a],
|
196
190
|
open: l.value,
|
197
191
|
placement: e.placement,
|
198
192
|
text: t.text
|
199
193
|
}),
|
200
|
-
|
194
|
+
X(ae, Y({
|
201
195
|
"aria-role": "menuitem",
|
202
196
|
class: ["bb-dropdown__item", {
|
203
|
-
"bb-dropdown__item--first":
|
204
|
-
"bb-dropdown__item--last":
|
197
|
+
"bb-dropdown__item--first": a === 0,
|
198
|
+
"bb-dropdown__item--last": a === e.items.length - 1
|
205
199
|
}],
|
206
200
|
"data-dropdown-item": !0,
|
207
201
|
ref_for: !0
|
208
202
|
}, t), {
|
209
203
|
default: T(() => [
|
210
|
-
|
204
|
+
m(e.$slots, t.key, {
|
211
205
|
disabled: t.disabled,
|
212
|
-
index:
|
213
|
-
item:
|
206
|
+
index: a,
|
207
|
+
item: n,
|
214
208
|
open: l.value,
|
215
209
|
placement: e.placement,
|
216
210
|
text: t.text
|
217
211
|
}, () => [
|
218
|
-
t["prepend:icon"] ? (
|
212
|
+
t["prepend:icon"] ? (k(), h(B, {
|
219
213
|
key: 0,
|
220
214
|
class: "item__prepend-icon",
|
221
215
|
type: t["prepend:icon"]
|
222
|
-
}, null, 8, ["type"])) :
|
223
|
-
|
224
|
-
t["append:icon"] ? (
|
216
|
+
}, null, 8, ["type"])) : A("", !0),
|
217
|
+
I("span", ie, Z(t.text), 1),
|
218
|
+
t["append:icon"] ? (k(), h(B, {
|
225
219
|
key: 1,
|
226
220
|
class: "item__append-icon",
|
227
221
|
type: t["append:icon"]
|
228
|
-
}, null, 8, ["type"])) :
|
222
|
+
}, null, 8, ["type"])) : A("", !0)
|
229
223
|
])
|
230
224
|
]),
|
231
225
|
_: 2
|
232
226
|
}, 1040, ["class"]),
|
233
|
-
|
227
|
+
m(e.$slots, "item:append", {
|
234
228
|
disabled: t.disabled,
|
235
|
-
index:
|
236
|
-
item: e.items[
|
229
|
+
index: a,
|
230
|
+
item: e.items[a],
|
237
231
|
open: l.value,
|
238
232
|
placement: e.placement,
|
239
233
|
text: t.text
|
240
234
|
})
|
241
235
|
], 64))), 128)),
|
242
|
-
|
236
|
+
m(e.$slots, "append", {
|
243
237
|
disabled: e.disabled,
|
244
238
|
open: l.value,
|
245
239
|
placement: e.placement
|
246
240
|
})
|
247
|
-
], 12, se)
|
241
|
+
], 12, se)
|
248
242
|
]),
|
249
243
|
_: 3
|
250
|
-
}, 8, ["arrow-padding", "block", "class", "
|
244
|
+
}, 8, ["modelValue", "arrow-padding", "block", "class", "offset", "padding", "placement", "render-content", "transition-duration"]));
|
251
245
|
}
|
252
246
|
});
|
253
247
|
export {
|
254
|
-
|
248
|
+
ge as default
|
255
249
|
};
|
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 "./index224.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 "./index268.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("./index267.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 "./index227.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 "./index269.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 "./index232.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 "./index234.js";
|
6
|
+
import me from "./index235.js";
|
7
7
|
import { useMobile as ye } from "./index9.js";
|
8
|
-
import { useLocale as he } from "./
|
8
|
+
import { useLocale as he } from "./index224.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 "./index274.js";
|
7
|
+
import { useLocale as H } from "./index224.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",
|