bitboss-ui 2.1.72 → 2.1.74
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/BbDropdown/BbDropdown.vue.d.ts +6 -12
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -16
- package/dist/components/BbRows/BbRows.vue.d.ts +3 -3
- package/dist/components/BbTable/BbTable.vue.d.ts +30 -6
- package/dist/components/BbTable/types.d.ts +46 -28
- package/dist/components/BbTable/utils.d.ts +23 -0
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +326 -304
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +9 -34
- package/dist/index220.js +13 -9
- package/dist/index221.js +13 -86
- package/dist/index222.js +129 -0
- package/dist/index224.js +4 -16
- package/dist/index225.js +22 -16
- package/dist/index226.js +2 -51
- package/dist/index227.js +2 -15
- package/dist/index228.js +2 -3
- package/dist/index229.js +4 -12
- package/dist/index23.js +11 -11
- package/dist/index230.js +20 -5
- package/dist/index231.js +201 -5
- package/dist/index233.js +34 -5
- package/dist/index234.js +9 -2
- package/dist/index235.js +2 -6
- package/dist/index236.js +8 -8
- package/dist/index237.js +3 -268
- package/dist/index238.js +28 -51
- package/dist/index239.js +16 -52
- package/dist/index240.js +17 -32
- package/dist/index241.js +50 -59
- package/dist/index242.js +12 -13
- package/dist/index243.js +3 -5
- package/dist/index244.js +11 -5
- package/dist/index245.js +8 -5
- package/dist/index246.js +2 -2
- package/dist/index247.js +7 -3
- package/dist/index248.js +2 -20
- package/dist/index249.js +7 -127
- package/dist/index25.js +3 -3
- package/dist/index250.js +190 -0
- package/dist/index251.js +5 -33
- package/dist/index252.js +5 -28
- package/dist/{index232.js → index253.js} +1 -1
- package/dist/index254.js +5 -2
- package/dist/index255.js +6 -2
- package/dist/index256.js +268 -3
- package/dist/index257.js +52 -6
- package/dist/index258.js +51 -15
- package/dist/index259.js +26 -100
- package/dist/index260.js +62 -0
- package/dist/index261.js +3 -100
- package/dist/index262.js +20 -0
- package/dist/index263.js +12 -67
- package/dist/index264.js +14 -187
- package/dist/index265.js +4 -3
- package/dist/index266.js +106 -4
- package/dist/index268.js +100 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +229 -9
- package/dist/index271.js +85 -12
- package/dist/index275.js +8 -3
- package/dist/index276.js +67 -5
- package/dist/index277.js +9 -4
- package/dist/index278.js +23 -201
- package/dist/index279.js +7 -0
- package/dist/index280.js +5 -3
- package/dist/index281.js +5 -2
- package/dist/index282.js +5 -7
- package/dist/index283.js +3 -7
- package/dist/index284.js +13 -11
- package/dist/index286.js +39 -7
- package/dist/index287.js +6 -23
- package/dist/index288.js +15 -22
- package/dist/index289.js +32 -17
- package/dist/index29.js +2 -2
- package/dist/index290.js +28 -12
- package/dist/index292.js +3 -2
- package/dist/index293.js +28 -2
- package/dist/index294.js +17 -3
- package/dist/index295.js +3 -17
- package/dist/index296.js +7 -28
- package/dist/index305.js +1 -1
- package/dist/index306.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index308.js +1 -1
- package/dist/index309.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +5 -7
- package/dist/index311.js +2 -125
- package/dist/index312.js +3 -2
- package/dist/index313.js +3 -15
- package/dist/index314.js +3 -2
- package/dist/index315.js +3 -19
- package/dist/index316.js +4 -2
- package/dist/index317.js +2 -3
- package/dist/index319.js +2 -3
- package/dist/index321.js +1 -1
- package/dist/index322.js +125 -2
- package/dist/index323.js +2 -4
- package/dist/index324.js +15 -5
- package/dist/index325.js +2 -5
- package/dist/index326.js +19 -3
- package/dist/index327.js +2 -3
- package/dist/index328.js +6 -719
- package/dist/index329.js +716 -363
- package/dist/index33.js +8 -8
- package/dist/index330.js +366 -57
- package/dist/index331.js +56 -5
- package/dist/index332.js +5 -2
- package/dist/index333.js +6 -6
- package/dist/index334.js +18 -6
- package/dist/index335.js +8 -18
- package/dist/index336.js +14 -8
- package/dist/index337.js +7 -14
- package/dist/index338.js +6 -5
- package/dist/index339.js +7 -34
- package/dist/index340.js +35 -6
- package/dist/index341.js +6 -129
- package/dist/index342.js +113 -382
- package/dist/index343.js +396 -56
- package/dist/index344.js +33 -33
- package/dist/index345.js +58 -8
- package/dist/index346.js +6 -5
- package/dist/index347.js +5 -8
- package/dist/index348.js +92 -21
- package/dist/index349.js +49 -0
- package/dist/index35.js +4 -4
- package/dist/index350.js +21 -133
- package/dist/index352.js +130 -89
- package/dist/index353.js +515 -42
- package/dist/index354.js +222 -514
- package/dist/index37.js +18 -18
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- package/dist/index49.js +1 -1
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +2 -2
- package/dist/index67.js +1 -1
- package/dist/index80.js +131 -111
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/dist/index97.js +1 -1
- package/package.json +1 -1
- package/dist/index223.js +0 -31
- package/dist/index267.js +0 -11
- package/dist/index269.js +0 -10
- package/dist/index272.js +0 -15
- package/dist/index291.js +0 -231
- package/dist/index351.js +0 -230
- /package/dist/{index320.js → index318.js} +0 -0
package/dist/index37.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { defineComponent as Qe, ref as f, computed as m, toRef as z, createBlock as K, openBlock as v, normalizeClass as ee, withCtx as u, createElementVNode as H, createVNode as L, createElementBlock as C, unref as b, renderSlot as d, createCommentVNode as te, withDirectives as Xe, Fragment as ae, toDisplayString as Ye, withKeys as g, withModifiers as c, normalizeStyle as le, vModelDynamic as Ze, mergeProps as oe, renderList as et, nextTick as U } from "vue";
|
|
2
2
|
import tt from "./index112.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { hash as at } from "./
|
|
5
|
-
import { isEmpty as lt } from "./
|
|
6
|
-
import { last as ot } from "./
|
|
7
|
-
import { matchAnyKey as ne } from "./
|
|
8
|
-
import { useArray as nt } from "./
|
|
9
|
-
import { useBaseOptions as ut } from "./
|
|
10
|
-
import { useCoherence as st } from "./
|
|
11
|
-
import { useHashedWatcher as ue } from "./
|
|
4
|
+
import { hash as at } from "./index237.js";
|
|
5
|
+
import { isEmpty as lt } from "./index261.js";
|
|
6
|
+
import { last as ot } from "./index248.js";
|
|
7
|
+
import { matchAnyKey as ne } from "./index262.js";
|
|
8
|
+
import { useArray as nt } from "./index263.js";
|
|
9
|
+
import { useBaseOptions as ut } from "./index241.js";
|
|
10
|
+
import { useCoherence as st } from "./index264.js";
|
|
11
|
+
import { useHashedWatcher as ue } from "./index242.js";
|
|
12
12
|
import { useId as it } from "./index8.js";
|
|
13
|
-
import { useIndexById as se } from "./
|
|
13
|
+
import { useIndexById as se } from "./index240.js";
|
|
14
14
|
import { useMounted as rt, useElementSize as dt, useIntersectionObserver as ct } from "./index141.js";
|
|
15
|
-
import { useItemsGetter as pt } from "./
|
|
16
|
-
import { useLocale as mt } from "./
|
|
15
|
+
import { useItemsGetter as pt } from "./index238.js";
|
|
16
|
+
import { useLocale as mt } from "./index220.js";
|
|
17
17
|
import { useMobile as ft } from "./index9.js";
|
|
18
|
-
import { usePrefill as vt } from "./
|
|
18
|
+
import { usePrefill as vt } from "./index239.js";
|
|
19
19
|
import { wait as T } from "./index140.js";
|
|
20
|
-
import { when as ht } from "./
|
|
21
|
-
import yt from "./
|
|
20
|
+
import { when as ht } from "./index265.js";
|
|
21
|
+
import yt from "./index266.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import bt from "./
|
|
23
|
+
import bt from "./index268.js";
|
|
24
24
|
/* empty css */
|
|
25
25
|
import gt from "./index136.js";
|
|
26
26
|
/* empty css */
|
|
27
27
|
import wt from "./index138.js";
|
|
28
|
-
import Bt from "./
|
|
28
|
+
import Bt from "./index222.js";
|
|
29
29
|
/* empty css */
|
|
30
|
-
import Vt from "./
|
|
31
|
-
import { useUntil as St } from "./
|
|
30
|
+
import Vt from "./index270.js";
|
|
31
|
+
import { useUntil as St } from "./index221.js";
|
|
32
32
|
import { mapValues as kt } from "./index145.js";
|
|
33
33
|
const Ct = { class: "bb-base-select__input-container" }, It = {
|
|
34
34
|
key: 1,
|
package/dist/index39.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as ie, ref as d, computed as f, onMounted as se, watch as ue, createElementBlock as y, openBlock as g, normalizeProps as G, guardReactiveProps as O, renderSlot as p, createElementVNode as c, mergeProps as N, createCommentVNode as Y, Fragment as de, renderList as me, unref as b, normalizeStyle as j, normalizeClass as J } from "vue";
|
|
2
|
-
import { head as ce } from "./
|
|
3
|
-
import { isCssColor as K } from "./
|
|
4
|
-
import { isNil as x } from "./
|
|
2
|
+
import { head as ce } from "./index246.js";
|
|
3
|
+
import { isCssColor as K } from "./index228.js";
|
|
4
|
+
import { isNil as x } from "./index235.js";
|
|
5
5
|
import { getAsPercentageBetween as S, getAsPercentage as be, getValueFromPercentageInInterval as T } from "./index139.js";
|
|
6
|
-
import { snapToStep as ve } from "./
|
|
7
|
-
import { last as fe } from "./
|
|
8
|
-
import { transpose as Q } from "./
|
|
9
|
-
import { clamp as m } from "./
|
|
6
|
+
import { snapToStep as ve } from "./index247.js";
|
|
7
|
+
import { last as fe } from "./index248.js";
|
|
8
|
+
import { transpose as Q } from "./index249.js";
|
|
9
|
+
import { clamp as m } from "./index215.js";
|
|
10
10
|
const pe = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "bb-base-slider__ticks-container"
|
package/dist/index41.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, ref as b, computed as s, watch as S, createElementBlock as y, openBlock as V, normalizeProps as l, guardReactiveProps as m, createCommentVNode as A, createElementVNode as r, mergeProps as v, renderSlot as N } from "vue";
|
|
2
|
-
import { isCssColor as p } from "./
|
|
3
|
-
import { when as x } from "./
|
|
2
|
+
import { isCssColor as p } from "./index228.js";
|
|
3
|
+
import { when as x } from "./index265.js";
|
|
4
4
|
const M = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ F({
|
|
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 n, renderSlot as s, 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 "./index271.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 "./index264.js";
|
|
10
|
+
import { hash as Q } from "./index237.js";
|
|
11
|
+
import { useHashedWatcher as $ } from "./index242.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
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as j, ref as u, computed as m, toRef as C, watch as Q, createBlock as h, openBlock as f, normalizeClass as Z, withCtx as l, createVNode as E, unref as G, createElementVNode as I, createElementBlock as J, createCommentVNode as W, withDirectives as X, Fragment as Y, mergeProps as ee, withModifiers as s, withKeys as v, vModelText as te, renderSlot as d, nextTick as oe } from "vue";
|
|
2
2
|
import ae from "./index112.js";
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { last as le } from "./
|
|
5
|
-
import { useBaseOptions as ne } from "./
|
|
6
|
-
import { useIndexById as re } from "./
|
|
7
|
-
import ie from "./
|
|
4
|
+
import { last as le } from "./index248.js";
|
|
5
|
+
import { useBaseOptions as ne } from "./index241.js";
|
|
6
|
+
import { useIndexById as re } from "./index240.js";
|
|
7
|
+
import ie from "./index266.js";
|
|
8
8
|
/* empty css */
|
|
9
|
-
import ue from "./
|
|
9
|
+
import ue from "./index268.js";
|
|
10
10
|
/* empty css */
|
|
11
11
|
import se from "./index136.js";
|
|
12
12
|
/* empty css */
|
|
13
13
|
import de from "./index138.js";
|
|
14
|
-
import { isEmpty as pe } from "./
|
|
14
|
+
import { isEmpty as pe } from "./index261.js";
|
|
15
15
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Oe = /* @__PURE__ */ j({
|
|
16
16
|
__name: "BaseTag",
|
|
17
17
|
props: {
|
package/dist/index49.js
CHANGED
|
@@ -3,7 +3,7 @@ import E from "./index136.js";
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import I from "./index138.js";
|
|
5
5
|
import { isNotNil as N } from "./index144.js";
|
|
6
|
-
import { MaskInput as z } from "./
|
|
6
|
+
import { MaskInput as z } from "./index250.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 "./index228.js";
|
|
3
3
|
import { wait as C } from "./index140.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 "./index235.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,8 +9,8 @@ import x from "./index114.js";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
import { pickBy as O } from "./index273.js";
|
|
11
11
|
import { noop as G } from "./index274.js";
|
|
12
|
-
import { useLocale as H } from "./
|
|
13
|
-
import { extractDomContainer as I } from "./
|
|
12
|
+
import { useLocale as H } from "./index220.js";
|
|
13
|
+
import { extractDomContainer as I } from "./index224.js";
|
|
14
14
|
const J = {
|
|
15
15
|
key: 2,
|
|
16
16
|
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 "./index220.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/index80.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { findRightIndex as
|
|
3
|
-
import { useId as
|
|
4
|
-
import { useUntil as
|
|
5
|
-
import { wait as
|
|
6
|
-
import
|
|
1
|
+
import { defineComponent as oe, ref as K, computed as b, useTemplateRef as ne, watch as h, onBeforeUnmount as ae, createElementBlock as I, openBlock as y, Fragment as S, renderSlot as c, createCommentVNode as _, createVNode as H, normalizeProps as re, mergeProps as C, withCtx as M, createElementVNode as U, normalizeStyle as ie, unref as R, renderList as se, createBlock as W, toDisplayString as le } from "vue";
|
|
2
|
+
import { findRightIndex as T } from "./index277.js";
|
|
3
|
+
import { useId as de } from "./index8.js";
|
|
4
|
+
import { useUntil as ue } from "./index221.js";
|
|
5
|
+
import { wait as pe } from "./index140.js";
|
|
6
|
+
import ce from "./index13.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import j from "./index86.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import
|
|
10
|
+
import me from "./index222.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import
|
|
13
|
-
import { extractDomContainer as
|
|
14
|
-
import { useIntersectionObserver as
|
|
15
|
-
import { parseWidthString as
|
|
16
|
-
const
|
|
12
|
+
import z from "./index278.js";
|
|
13
|
+
import { extractDomContainer as B } from "./index224.js";
|
|
14
|
+
import { useIntersectionObserver as fe, useElementSize as ve } from "./index141.js";
|
|
15
|
+
import { parseWidthString as be } from "./index225.js";
|
|
16
|
+
const ye = ["id", "aria-labelledby", "inert"], we = { class: "item__content" }, Pe = /* @__PURE__ */ oe({
|
|
17
17
|
inheritAttrs: !1,
|
|
18
18
|
__name: "BbDropdown",
|
|
19
19
|
props: {
|
|
@@ -25,135 +25,155 @@ const be = ["id", "aria-labelledby", "inert"], ve = { class: "item__content" },
|
|
|
25
25
|
padding: { default: 6 },
|
|
26
26
|
placement: { default: "bottom" },
|
|
27
27
|
transitionDuration: { default: 300 },
|
|
28
|
+
activator: {},
|
|
28
29
|
items: {},
|
|
29
30
|
theme: { default: "default" },
|
|
30
31
|
width: { default: "auto" }
|
|
31
32
|
},
|
|
32
|
-
setup(
|
|
33
|
-
const
|
|
34
|
-
const n =
|
|
35
|
-
n && (
|
|
36
|
-
}, { resume:
|
|
37
|
-
|
|
33
|
+
setup(N) {
|
|
34
|
+
const i = N, d = i.id ?? `bb_${de().id.value}`, m = K(), k = b(() => B(m.value)), G = b(() => i.activator != null), J = ne("popover"), u = b(() => B(J.value)), o = K(!1), Q = ue(o, { initialValue: i.eager }), O = (e) => {
|
|
35
|
+
const n = B(e);
|
|
36
|
+
n && (m.value = n);
|
|
37
|
+
}, { resume: X, pause: Y } = fe(
|
|
38
|
+
k,
|
|
38
39
|
async ([{ intersectionRatio: e }]) => {
|
|
39
40
|
e !== 1 && o.value && await p();
|
|
40
41
|
},
|
|
41
42
|
{ threshold: [0, 1], immediate: !1 }
|
|
42
|
-
),
|
|
43
|
-
let e =
|
|
44
|
-
|
|
45
|
-
(
|
|
43
|
+
), E = b(() => {
|
|
44
|
+
let e = i.items.findIndex((a) => !a.disabled), n = T(
|
|
45
|
+
i.items,
|
|
46
|
+
(a) => !a.disabled
|
|
46
47
|
);
|
|
47
|
-
return
|
|
48
|
-
const
|
|
48
|
+
return i.items.map((a, t) => {
|
|
49
|
+
const r = `${d}-item-${a.key}`, { onClick: D, ...A } = a, x = async (s) => {
|
|
49
50
|
s.stopPropagation(), await p();
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
},
|
|
51
|
+
const l = document.querySelector(`#${d}`);
|
|
52
|
+
l && l.focus(), D?.(s);
|
|
53
|
+
}, ee = (s) => {
|
|
53
54
|
if (!(!(s.target instanceof HTMLElement) || !s.target.dataset.dropdownItem || !u.value)) {
|
|
54
55
|
if (s.key === "ArrowDown") {
|
|
55
56
|
if (s.preventDefault(), t !== n) {
|
|
56
|
-
const
|
|
57
|
-
|
|
57
|
+
const l = u.value.querySelector(
|
|
58
|
+
z.map((g) => `#${r} ~ ${g}`).join(",")
|
|
58
59
|
);
|
|
59
|
-
|
|
60
|
+
l instanceof HTMLElement && l.focus();
|
|
60
61
|
}
|
|
61
62
|
} else if (s.key === "ArrowUp") {
|
|
62
63
|
if (s.preventDefault(), t !== e) {
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
(
|
|
66
|
-
),
|
|
64
|
+
const l = T(
|
|
65
|
+
i.items,
|
|
66
|
+
(L, te) => te < t && !L.disabled
|
|
67
|
+
), v = Array.from(
|
|
67
68
|
u.value.querySelectorAll(".bb-dropdown__item")
|
|
68
|
-
)[
|
|
69
|
-
|
|
69
|
+
)[l];
|
|
70
|
+
v instanceof HTMLElement && v.focus();
|
|
70
71
|
}
|
|
71
72
|
} else if (s.key === "Tab") {
|
|
72
73
|
if (t === n && !s.shiftKey) {
|
|
73
|
-
const
|
|
74
|
-
document.querySelectorAll(
|
|
75
|
-
),
|
|
76
|
-
(
|
|
77
|
-
),
|
|
78
|
-
|
|
74
|
+
const l = Array.from(
|
|
75
|
+
document.querySelectorAll(z.join(","))
|
|
76
|
+
), g = l.findIndex(
|
|
77
|
+
(L) => L.id === d
|
|
78
|
+
), v = l[g + 1];
|
|
79
|
+
v instanceof HTMLElement && (s.preventDefault(), p(), v.focus());
|
|
79
80
|
} else if (t === e && s.shiftKey) {
|
|
80
|
-
const
|
|
81
|
-
|
|
81
|
+
const l = document.querySelector(`#${d}`);
|
|
82
|
+
l && (s.preventDefault(), l.focus());
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
};
|
|
86
87
|
return {
|
|
87
|
-
...
|
|
88
|
-
original:
|
|
89
|
-
key:
|
|
90
|
-
disabled:
|
|
91
|
-
id:
|
|
92
|
-
onClick:
|
|
93
|
-
onKeydown:
|
|
88
|
+
...A,
|
|
89
|
+
original: a,
|
|
90
|
+
key: a.key.split(/\W+/g).join("_").toLowerCase(),
|
|
91
|
+
disabled: A.disabled || i.disabled,
|
|
92
|
+
id: r,
|
|
93
|
+
onClick: x,
|
|
94
|
+
onKeydown: ee
|
|
94
95
|
};
|
|
95
96
|
});
|
|
96
|
-
}),
|
|
97
|
-
o.value ? p() : $();
|
|
98
|
-
},
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
97
|
+
}), P = (e) => {
|
|
98
|
+
i.disabled || (e.stopPropagation(), o.value ? p() : $());
|
|
99
|
+
}, q = async (e) => {
|
|
100
|
+
if (i.disabled) return;
|
|
101
|
+
const n = i.items.findIndex((r) => !r.disabled), a = T(
|
|
102
|
+
i.items,
|
|
103
|
+
(r) => !r.disabled
|
|
104
|
+
), t = (r) => {
|
|
105
|
+
if (!u.value || !E.value.length || r === -1) return;
|
|
106
|
+
const D = E.value[r].id;
|
|
107
|
+
u.value.querySelector(`#${D}`)?.focus();
|
|
106
108
|
};
|
|
107
|
-
e.key === "ArrowDown" ? (e.preventDefault(), o.value || await $(), t(n)) : e.key === "ArrowUp" ? (e.preventDefault(), o.value || await $(), t(
|
|
108
|
-
},
|
|
109
|
+
e.key === "ArrowDown" ? (e.preventDefault(), o.value || await $(), t(n)) : e.key === "ArrowUp" ? (e.preventDefault(), o.value || await $(), t(a)) : e.key === "Tab" && o.value && !e.shiftKey && (e.preventDefault(), t(n));
|
|
110
|
+
}, w = (e) => {
|
|
109
111
|
const n = e.target;
|
|
110
112
|
if (!(n instanceof HTMLElement)) return;
|
|
111
113
|
!u.value?.contains(n) && p();
|
|
112
|
-
},
|
|
114
|
+
}, V = (e) => {
|
|
113
115
|
!o.value || e.key !== "Escape" || (e.stopImmediatePropagation(), e.preventDefault(), document.activeElement?.id !== d && document.querySelector(`#${d}`)?.focus(), p());
|
|
114
116
|
}, $ = async () => {
|
|
115
|
-
|
|
117
|
+
X(), await pe(50), o.value = !0, document.addEventListener("click", w, { passive: !0 }), document.addEventListener("focusin", w, { passive: !0 }), document.addEventListener("keydown", V, { capture: !0 });
|
|
116
118
|
}, p = async () => {
|
|
117
|
-
o.value = !1,
|
|
119
|
+
o.value = !1, Y();
|
|
118
120
|
};
|
|
119
|
-
|
|
120
|
-
e || (document.removeEventListener("click",
|
|
121
|
+
h(o, (e) => {
|
|
122
|
+
e || (document.removeEventListener("click", w), document.removeEventListener("focusin", w), document.removeEventListener("keydown", V, { capture: !0 }));
|
|
123
|
+
}), h(
|
|
124
|
+
() => i.activator,
|
|
125
|
+
(e) => {
|
|
126
|
+
e && O(e);
|
|
127
|
+
},
|
|
128
|
+
{ immediate: !0 }
|
|
129
|
+
);
|
|
130
|
+
let f = null;
|
|
131
|
+
h(
|
|
132
|
+
m,
|
|
133
|
+
(e) => {
|
|
134
|
+
f && (f(), f = null), e && (e.id = d, e.addEventListener("click", P), e.addEventListener("keydown", q), f = () => {
|
|
135
|
+
e.removeEventListener("click", P), e.removeEventListener("keydown", q), e.removeAttribute("id"), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls");
|
|
136
|
+
});
|
|
137
|
+
},
|
|
138
|
+
{ immediate: !0 }
|
|
139
|
+
), h(
|
|
140
|
+
[m, o, Q],
|
|
141
|
+
([e, n, a]) => {
|
|
142
|
+
e && (e.setAttribute("aria-expanded", a ? String(n) : "false"), a ? e.setAttribute("aria-controls", `menu_${d}`) : e.removeAttribute("aria-controls"));
|
|
143
|
+
},
|
|
144
|
+
{ immediate: !0 }
|
|
145
|
+
), ae(() => {
|
|
146
|
+
f?.();
|
|
121
147
|
});
|
|
122
|
-
const { width:
|
|
123
|
-
|
|
148
|
+
const { width: Z } = ve(
|
|
149
|
+
k,
|
|
124
150
|
{ width: 0, height: 0 },
|
|
125
151
|
{
|
|
126
152
|
box: "border-box"
|
|
127
153
|
}
|
|
128
|
-
),
|
|
129
|
-
if (
|
|
130
|
-
if (
|
|
131
|
-
const { value: e, unit: n } =
|
|
132
|
-
return n === "%" ?
|
|
154
|
+
), F = b(() => {
|
|
155
|
+
if (i.width !== "auto") {
|
|
156
|
+
if (i.width) {
|
|
157
|
+
const { value: e, unit: n } = be(i.width);
|
|
158
|
+
return n === "%" ? k.value ? `${Z.value * (e / 100)}px` : "0px" : `${e}px`;
|
|
133
159
|
}
|
|
134
160
|
return "0px";
|
|
135
161
|
}
|
|
136
162
|
});
|
|
137
|
-
return (e, n) => (
|
|
138
|
-
c(e.$slots, "activator",
|
|
163
|
+
return (e, n) => (y(), I(S, null, [
|
|
164
|
+
G.value ? _("", !0) : c(e.$slots, "activator", re(C({ key: 0 }, {
|
|
139
165
|
props: {
|
|
140
|
-
|
|
141
|
-
"aria-controls": m(C) ? `menu_${m(d)}` : void 0,
|
|
142
|
-
id: m(d),
|
|
143
|
-
onClick: G,
|
|
144
|
-
onKeydown: J,
|
|
145
|
-
disabled: e.disabled,
|
|
146
|
-
ref: j
|
|
166
|
+
ref: O
|
|
147
167
|
},
|
|
148
168
|
disabled: e.disabled,
|
|
149
169
|
open: o.value,
|
|
150
170
|
placement: e.placement
|
|
151
171
|
}))),
|
|
152
|
-
|
|
172
|
+
H(me, C({
|
|
153
173
|
ref: "popover",
|
|
154
174
|
modelValue: o.value,
|
|
155
|
-
"onUpdate:modelValue": n[0] || (n[0] = (
|
|
156
|
-
anchor:
|
|
175
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
|
|
176
|
+
anchor: m.value,
|
|
157
177
|
"arrow-padding": e.arrowPadding,
|
|
158
178
|
class: ["bb-dropdown", {
|
|
159
179
|
[`bb-dropdown--${e.theme}`]: !0
|
|
@@ -164,68 +184,68 @@ const be = ["id", "aria-labelledby", "inert"], ve = { class: "item__content" },
|
|
|
164
184
|
placement: e.placement,
|
|
165
185
|
"transition-duration": e.transitionDuration
|
|
166
186
|
}, e.$attrs), {
|
|
167
|
-
default:
|
|
168
|
-
|
|
169
|
-
id: `menu_${
|
|
170
|
-
"aria-labelledby":
|
|
187
|
+
default: M(() => [
|
|
188
|
+
U("span", {
|
|
189
|
+
id: `menu_${R(d)}`,
|
|
190
|
+
"aria-labelledby": R(d),
|
|
171
191
|
"aria-role": "menu",
|
|
172
192
|
class: "bb-dropdown__items-container",
|
|
173
193
|
inert: !o.value,
|
|
174
|
-
style:
|
|
194
|
+
style: ie(F.value ? { width: F.value } : void 0)
|
|
175
195
|
}, [
|
|
176
196
|
c(e.$slots, "prepend", {
|
|
177
197
|
disabled: e.disabled,
|
|
178
198
|
open: o.value,
|
|
179
199
|
placement: e.placement
|
|
180
200
|
}),
|
|
181
|
-
(
|
|
201
|
+
(y(!0), I(S, null, se(E.value, ({ original: a, ...t }, r) => (y(), I(S, {
|
|
182
202
|
key: t.key
|
|
183
203
|
}, [
|
|
184
204
|
c(e.$slots, "item:prepend", {
|
|
185
205
|
disabled: t.disabled,
|
|
186
|
-
index:
|
|
187
|
-
item: e.items[
|
|
206
|
+
index: r,
|
|
207
|
+
item: e.items[r],
|
|
188
208
|
open: o.value,
|
|
189
209
|
placement: e.placement,
|
|
190
210
|
text: t.text
|
|
191
211
|
}),
|
|
192
|
-
|
|
212
|
+
H(ce, C({
|
|
193
213
|
"aria-role": "menuitem",
|
|
194
214
|
class: ["bb-dropdown__item", {
|
|
195
|
-
"bb-dropdown__item--first":
|
|
196
|
-
"bb-dropdown__item--last":
|
|
215
|
+
"bb-dropdown__item--first": r === 0,
|
|
216
|
+
"bb-dropdown__item--last": r === e.items.length - 1
|
|
197
217
|
}],
|
|
198
218
|
"data-dropdown-item": !0,
|
|
199
219
|
ref_for: !0
|
|
200
220
|
}, t), {
|
|
201
|
-
default:
|
|
221
|
+
default: M(() => [
|
|
202
222
|
c(e.$slots, t.key, {
|
|
203
223
|
disabled: t.disabled,
|
|
204
|
-
index:
|
|
205
|
-
item:
|
|
224
|
+
index: r,
|
|
225
|
+
item: a,
|
|
206
226
|
open: o.value,
|
|
207
227
|
placement: e.placement,
|
|
208
228
|
text: t.text
|
|
209
229
|
}, () => [
|
|
210
|
-
t["prepend:icon"] ? (
|
|
230
|
+
t["prepend:icon"] ? (y(), W(j, {
|
|
211
231
|
key: 0,
|
|
212
232
|
class: "item__prepend-icon",
|
|
213
233
|
type: t["prepend:icon"]
|
|
214
|
-
}, null, 8, ["type"])) :
|
|
215
|
-
|
|
216
|
-
t["append:icon"] ? (
|
|
234
|
+
}, null, 8, ["type"])) : _("", !0),
|
|
235
|
+
U("span", we, le(t.text), 1),
|
|
236
|
+
t["append:icon"] ? (y(), W(j, {
|
|
217
237
|
key: 1,
|
|
218
238
|
class: "item__append-icon",
|
|
219
239
|
type: t["append:icon"]
|
|
220
|
-
}, null, 8, ["type"])) :
|
|
240
|
+
}, null, 8, ["type"])) : _("", !0)
|
|
221
241
|
])
|
|
222
242
|
]),
|
|
223
243
|
_: 2
|
|
224
244
|
}, 1040, ["class"]),
|
|
225
245
|
c(e.$slots, "item:append", {
|
|
226
246
|
disabled: t.disabled,
|
|
227
|
-
index:
|
|
228
|
-
item: e.items[
|
|
247
|
+
index: r,
|
|
248
|
+
item: e.items[r],
|
|
229
249
|
open: o.value,
|
|
230
250
|
placement: e.placement,
|
|
231
251
|
text: t.text
|
|
@@ -236,7 +256,7 @@ const be = ["id", "aria-labelledby", "inert"], ve = { class: "item__content" },
|
|
|
236
256
|
open: o.value,
|
|
237
257
|
placement: e.placement
|
|
238
258
|
})
|
|
239
|
-
], 12,
|
|
259
|
+
], 12, ye)
|
|
240
260
|
]),
|
|
241
261
|
_: 3
|
|
242
262
|
}, 16, ["modelValue", "anchor", "arrow-padding", "class", "eager", "offset", "padding", "placement", "transition-duration"])
|
|
@@ -244,5 +264,5 @@ const be = ["id", "aria-labelledby", "inert"], ve = { class: "item__content" },
|
|
|
244
264
|
}
|
|
245
265
|
});
|
|
246
266
|
export {
|
|
247
|
-
|
|
267
|
+
Pe as default
|
|
248
268
|
};
|
package/dist/index82.js
CHANGED
|
@@ -9,7 +9,7 @@ import z from "./index86.js";
|
|
|
9
9
|
/* empty css */
|
|
10
10
|
import I from "./index114.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { useLocale as M } from "./
|
|
12
|
+
import { useLocale as M } from "./index220.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/index84.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 "./index288.js";
|
|
3
3
|
import { useId as re } from "./index8.js";
|
|
4
4
|
import oe from "./index112.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("./index287.js")).default);
|
|
57
57
|
const o = b.getType(r);
|
|
58
58
|
if (!o)
|
|
59
59
|
throw new Error(
|
package/dist/index86.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as $, ref as f, computed as a, getCurrentInstance as d, onServerPrefetch as I, onBeforeMount as _, watch as L, createElementBlock as M, openBlock as B, mergeProps as k, inject as A } from "vue";
|
|
2
|
-
import { isCssColor as C } from "./
|
|
3
|
-
import { get as m } from "./
|
|
4
|
-
import { useLogger as N } from "./
|
|
2
|
+
import { isCssColor as C } from "./index228.js";
|
|
3
|
+
import { get as m } from "./index244.js";
|
|
4
|
+
import { useLogger as N } from "./index245.js";
|
|
5
5
|
const S = ["innerHTML"], E = /* @__PURE__ */ $({
|
|
6
6
|
__name: "BbIcon",
|
|
7
7
|
props: {
|
package/dist/index88.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 "./index243.js";
|
|
3
3
|
const M = /* @__PURE__ */ h({
|
|
4
4
|
__name: "BbIntersection",
|
|
5
5
|
props: {
|
package/dist/index91.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as I, mergeModels as B, useModel as N, computed as m, ref as L, watch as P, onMounted as W, createElementBlock as r, openBlock as d, withModifiers as F, normalizeStyle as O, normalizeClass as q, unref as p, createCommentVNode as v, Fragment as A, createElementVNode as o, renderSlot as l, createTextVNode as H, toDisplayString as M, nextTick as K } from "vue";
|
|
2
|
-
import { parseSize as R } from "./
|
|
2
|
+
import { parseSize as R } from "./index284.js";
|
|
3
3
|
import { useId as $ } from "./index8.js";
|
|
4
|
-
import { useLocale as U } from "./
|
|
4
|
+
import { useLocale as U } from "./index220.js";
|
|
5
5
|
import { useMobile as j } from "./index9.js";
|
|
6
|
-
import { useUntil as G } from "./
|
|
6
|
+
import { useUntil as G } from "./index221.js";
|
|
7
7
|
import { wait as y } from "./index140.js";
|
|
8
8
|
import { _config as J } from "./index4.js";
|
|
9
9
|
const Q = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], X = {
|