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.
Files changed (178) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +6 -12
  2. package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +2 -16
  3. package/dist/components/BbRows/BbRows.vue.d.ts +3 -3
  4. package/dist/components/BbTable/BbTable.vue.d.ts +30 -6
  5. package/dist/components/BbTable/types.d.ts +46 -28
  6. package/dist/components/BbTable/utils.d.ts +23 -0
  7. package/dist/index.css +1 -1
  8. package/dist/index107.js +9 -9
  9. package/dist/index112.js +1 -1
  10. package/dist/index114.js +1 -1
  11. package/dist/index120.js +1 -1
  12. package/dist/index122.js +326 -304
  13. package/dist/index13.js +2 -2
  14. package/dist/index130.js +1 -1
  15. package/dist/index132.js +5 -5
  16. package/dist/index134.js +1 -1
  17. package/dist/index136.js +2 -2
  18. package/dist/index139.js +1 -1
  19. package/dist/index142.js +1 -1
  20. package/dist/index15.js +5 -5
  21. package/dist/index17.js +3 -3
  22. package/dist/index19.js +8 -8
  23. package/dist/index21.js +14 -14
  24. package/dist/index215.js +2 -2
  25. package/dist/index216.js +2 -2
  26. package/dist/index217.js +1 -1
  27. package/dist/index218.js +1 -1
  28. package/dist/index219.js +9 -34
  29. package/dist/index220.js +13 -9
  30. package/dist/index221.js +13 -86
  31. package/dist/index222.js +129 -0
  32. package/dist/index224.js +4 -16
  33. package/dist/index225.js +22 -16
  34. package/dist/index226.js +2 -51
  35. package/dist/index227.js +2 -15
  36. package/dist/index228.js +2 -3
  37. package/dist/index229.js +4 -12
  38. package/dist/index23.js +11 -11
  39. package/dist/index230.js +20 -5
  40. package/dist/index231.js +201 -5
  41. package/dist/index233.js +34 -5
  42. package/dist/index234.js +9 -2
  43. package/dist/index235.js +2 -6
  44. package/dist/index236.js +8 -8
  45. package/dist/index237.js +3 -268
  46. package/dist/index238.js +28 -51
  47. package/dist/index239.js +16 -52
  48. package/dist/index240.js +17 -32
  49. package/dist/index241.js +50 -59
  50. package/dist/index242.js +12 -13
  51. package/dist/index243.js +3 -5
  52. package/dist/index244.js +11 -5
  53. package/dist/index245.js +8 -5
  54. package/dist/index246.js +2 -2
  55. package/dist/index247.js +7 -3
  56. package/dist/index248.js +2 -20
  57. package/dist/index249.js +7 -127
  58. package/dist/index25.js +3 -3
  59. package/dist/index250.js +190 -0
  60. package/dist/index251.js +5 -33
  61. package/dist/index252.js +5 -28
  62. package/dist/{index232.js → index253.js} +1 -1
  63. package/dist/index254.js +5 -2
  64. package/dist/index255.js +6 -2
  65. package/dist/index256.js +268 -3
  66. package/dist/index257.js +52 -6
  67. package/dist/index258.js +51 -15
  68. package/dist/index259.js +26 -100
  69. package/dist/index260.js +62 -0
  70. package/dist/index261.js +3 -100
  71. package/dist/index262.js +20 -0
  72. package/dist/index263.js +12 -67
  73. package/dist/index264.js +14 -187
  74. package/dist/index265.js +4 -3
  75. package/dist/index266.js +106 -4
  76. package/dist/index268.js +100 -2
  77. package/dist/index27.js +1 -1
  78. package/dist/index270.js +229 -9
  79. package/dist/index271.js +85 -12
  80. package/dist/index275.js +8 -3
  81. package/dist/index276.js +67 -5
  82. package/dist/index277.js +9 -4
  83. package/dist/index278.js +23 -201
  84. package/dist/index279.js +7 -0
  85. package/dist/index280.js +5 -3
  86. package/dist/index281.js +5 -2
  87. package/dist/index282.js +5 -7
  88. package/dist/index283.js +3 -7
  89. package/dist/index284.js +13 -11
  90. package/dist/index286.js +39 -7
  91. package/dist/index287.js +6 -23
  92. package/dist/index288.js +15 -22
  93. package/dist/index289.js +32 -17
  94. package/dist/index29.js +2 -2
  95. package/dist/index290.js +28 -12
  96. package/dist/index292.js +3 -2
  97. package/dist/index293.js +28 -2
  98. package/dist/index294.js +17 -3
  99. package/dist/index295.js +3 -17
  100. package/dist/index296.js +7 -28
  101. package/dist/index305.js +1 -1
  102. package/dist/index306.js +1 -1
  103. package/dist/index307.js +1 -1
  104. package/dist/index308.js +1 -1
  105. package/dist/index309.js +1 -1
  106. package/dist/index31.js +2 -2
  107. package/dist/index310.js +5 -7
  108. package/dist/index311.js +2 -125
  109. package/dist/index312.js +3 -2
  110. package/dist/index313.js +3 -15
  111. package/dist/index314.js +3 -2
  112. package/dist/index315.js +3 -19
  113. package/dist/index316.js +4 -2
  114. package/dist/index317.js +2 -3
  115. package/dist/index319.js +2 -3
  116. package/dist/index321.js +1 -1
  117. package/dist/index322.js +125 -2
  118. package/dist/index323.js +2 -4
  119. package/dist/index324.js +15 -5
  120. package/dist/index325.js +2 -5
  121. package/dist/index326.js +19 -3
  122. package/dist/index327.js +2 -3
  123. package/dist/index328.js +6 -719
  124. package/dist/index329.js +716 -363
  125. package/dist/index33.js +8 -8
  126. package/dist/index330.js +366 -57
  127. package/dist/index331.js +56 -5
  128. package/dist/index332.js +5 -2
  129. package/dist/index333.js +6 -6
  130. package/dist/index334.js +18 -6
  131. package/dist/index335.js +8 -18
  132. package/dist/index336.js +14 -8
  133. package/dist/index337.js +7 -14
  134. package/dist/index338.js +6 -5
  135. package/dist/index339.js +7 -34
  136. package/dist/index340.js +35 -6
  137. package/dist/index341.js +6 -129
  138. package/dist/index342.js +113 -382
  139. package/dist/index343.js +396 -56
  140. package/dist/index344.js +33 -33
  141. package/dist/index345.js +58 -8
  142. package/dist/index346.js +6 -5
  143. package/dist/index347.js +5 -8
  144. package/dist/index348.js +92 -21
  145. package/dist/index349.js +49 -0
  146. package/dist/index35.js +4 -4
  147. package/dist/index350.js +21 -133
  148. package/dist/index352.js +130 -89
  149. package/dist/index353.js +515 -42
  150. package/dist/index354.js +222 -514
  151. package/dist/index37.js +18 -18
  152. package/dist/index39.js +7 -7
  153. package/dist/index41.js +2 -2
  154. package/dist/index43.js +8 -8
  155. package/dist/index45.js +6 -6
  156. package/dist/index49.js +1 -1
  157. package/dist/index53.js +1 -1
  158. package/dist/index55.js +1 -1
  159. package/dist/index57.js +2 -2
  160. package/dist/index61.js +2 -2
  161. package/dist/index67.js +1 -1
  162. package/dist/index80.js +131 -111
  163. package/dist/index82.js +1 -1
  164. package/dist/index84.js +2 -2
  165. package/dist/index86.js +3 -3
  166. package/dist/index88.js +1 -1
  167. package/dist/index91.js +3 -3
  168. package/dist/index93.js +2 -2
  169. package/dist/index95.js +5 -5
  170. package/dist/index97.js +1 -1
  171. package/package.json +1 -1
  172. package/dist/index223.js +0 -31
  173. package/dist/index267.js +0 -11
  174. package/dist/index269.js +0 -10
  175. package/dist/index272.js +0 -15
  176. package/dist/index291.js +0 -231
  177. package/dist/index351.js +0 -230
  178. /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 "./index228.js";
5
- import { isEmpty as lt } from "./index247.js";
6
- import { last as ot } from "./index234.js";
7
- import { matchAnyKey as ne } from "./index289.js";
8
- import { useArray as nt } from "./index290.js";
9
- import { useBaseOptions as ut } from "./index226.js";
10
- import { useCoherence as st } from "./index227.js";
11
- import { useHashedWatcher as ue } from "./index229.js";
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 "./index225.js";
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 "./index223.js";
16
- import { useLocale as mt } from "./index242.js";
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 "./index224.js";
18
+ import { usePrefill as vt } from "./index239.js";
19
19
  import { wait as T } from "./index140.js";
20
- import { when as ht } from "./index266.js";
21
- import yt from "./index259.js";
20
+ import { when as ht } from "./index265.js";
21
+ import yt from "./index266.js";
22
22
  /* empty css */
23
- import bt from "./index261.js";
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 "./index249.js";
28
+ import Bt from "./index222.js";
29
29
  /* empty css */
30
- import Vt from "./index291.js";
31
- import { useUntil as St } from "./index272.js";
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 "./index281.js";
3
- import { isCssColor as K } from "./index254.js";
4
- import { isNil as x } from "./index268.js";
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 "./index282.js";
7
- import { last as fe } from "./index234.js";
8
- import { transpose as Q } from "./index283.js";
9
- import { clamp as m } from "./index216.js";
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 "./index254.js";
3
- import { when as x } from "./index266.js";
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 "./index221.js";
4
+ import N from "./index271.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index223.js";
7
- import { useIndexById as T } from "./index225.js";
8
- import { useBaseOptions as q } from "./index226.js";
9
- import { useCoherence as J } from "./index227.js";
10
- import { hash as Q } from "./index228.js";
11
- import { useHashedWatcher as $ } from "./index229.js";
12
- import { usePrefill as X } from "./index224.js";
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 "./index234.js";
5
- import { useBaseOptions as ne } from "./index226.js";
6
- import { useIndexById as re } from "./index225.js";
7
- import ie from "./index259.js";
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 "./index261.js";
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 "./index247.js";
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 "./index264.js";
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
@@ -3,7 +3,7 @@ import B from "./index69.js";
3
3
  /* empty css */
4
4
  import L from "./index86.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index242.js";
6
+ import { useLocale as g } from "./index220.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
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 "./index254.js";
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 "./index254.js";
3
- import { isNil as B } from "./index268.js";
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 "./index242.js";
13
- import { extractDomContainer as I } from "./index275.js";
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 "./index242.js";
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 x, ref as P, computed as w, useTemplateRef as ee, watch as te, createElementBlock as L, openBlock as b, Fragment as S, renderSlot as c, createVNode as q, normalizeProps as oe, guardReactiveProps as ne, unref as m, mergeProps as B, withCtx as V, createElementVNode as F, normalizeStyle as ae, renderList as re, createBlock as K, createCommentVNode as H, toDisplayString as se } from "vue";
2
- import { findRightIndex as A } from "./index286.js";
3
- import { useId as ie } from "./index8.js";
4
- import { useUntil as le } from "./index272.js";
5
- import { wait as de } from "./index140.js";
6
- import ue from "./index13.js";
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 M from "./index86.js";
8
+ import j from "./index86.js";
9
9
  /* empty css */
10
- import pe from "./index249.js";
10
+ import me from "./index222.js";
11
11
  /* empty css */
12
- import R from "./index287.js";
13
- import { extractDomContainer as _ } from "./index275.js";
14
- import { useIntersectionObserver as ce, useElementSize as me } from "./index141.js";
15
- import { parseWidthString as fe } from "./index288.js";
16
- const be = ["id", "aria-labelledby", "inert"], ve = { class: "item__content" }, Oe = /* @__PURE__ */ x({
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(U) {
33
- const l = U, d = l.id ?? `bb_${ie().id.value}`, g = P(), h = w(() => _(g.value)), W = ee("popover"), u = w(() => _(W.value)), o = P(!1), C = le(o, { initialValue: l.eager }), j = (e) => {
34
- const n = _(e);
35
- n && (g.value = n);
36
- }, { resume: z, pause: N } = ce(
37
- h,
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
- ), k = w(() => {
43
- let e = l.items.findIndex((r) => !r.disabled), n = A(
44
- l.items,
45
- (r) => !r.disabled
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 l.items.map((r, t) => {
48
- const a = `${d}-item-${r.key}`, { onClick: E, ...D } = r, X = async (s) => {
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 i = document.querySelector(`#${d}`);
51
- i && i.focus(), E?.(s);
52
- }, Y = (s) => {
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 i = u.value.querySelector(
57
- R.map((y) => `#${a} ~ ${y}`).join(",")
57
+ const l = u.value.querySelector(
58
+ z.map((g) => `#${r} ~ ${g}`).join(",")
58
59
  );
59
- i instanceof HTMLElement && i.focus();
60
+ l instanceof HTMLElement && l.focus();
60
61
  }
61
62
  } else if (s.key === "ArrowUp") {
62
63
  if (s.preventDefault(), t !== e) {
63
- const i = A(
64
- l.items,
65
- (I, Z) => Z < t && !I.disabled
66
- ), f = Array.from(
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
- )[i];
69
- f instanceof HTMLElement && f.focus();
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 i = Array.from(
74
- document.querySelectorAll(R.join(","))
75
- ), y = i.findIndex(
76
- (I) => I.id === d
77
- ), f = i[y + 1];
78
- f instanceof HTMLElement && (s.preventDefault(), p(), f.focus());
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 i = document.querySelector(`#${d}`);
81
- i && (s.preventDefault(), i.focus());
81
+ const l = document.querySelector(`#${d}`);
82
+ l && (s.preventDefault(), l.focus());
82
83
  }
83
84
  }
84
85
  }
85
86
  };
86
87
  return {
87
- ...D,
88
- original: r,
89
- key: r.key.split(/\W+/g).join("_").toLowerCase(),
90
- disabled: D.disabled || l.disabled,
91
- id: a,
92
- onClick: X,
93
- onKeydown: Y
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
- }), G = () => {
97
- o.value ? p() : $();
98
- }, J = async (e) => {
99
- const n = l.items.findIndex((a) => !a.disabled), r = A(
100
- l.items,
101
- (a) => !a.disabled
102
- ), t = (a) => {
103
- if (!u.value || !k.value.length || a === -1) return;
104
- const E = k.value[a].id;
105
- u.value.querySelector(`#${E}`)?.focus();
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(r)) : e.key === "Tab" && o.value && !e.shiftKey && (e.preventDefault(), t(n));
108
- }, v = (e) => {
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
- }, T = (e) => {
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
- z(), await de(50), o.value = !0, document.addEventListener("click", v, { passive: !0 }), document.addEventListener("focusin", v, { passive: !0 }), document.addEventListener("keydown", T, { capture: !0 });
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, N();
119
+ o.value = !1, Y();
118
120
  };
119
- te(o, (e) => {
120
- e || (document.removeEventListener("click", v), document.removeEventListener("focusin", v), document.removeEventListener("keydown", T, { capture: !0 }));
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: Q } = me(
123
- h,
148
+ const { width: Z } = ve(
149
+ k,
124
150
  { width: 0, height: 0 },
125
151
  {
126
152
  box: "border-box"
127
153
  }
128
- ), O = w(() => {
129
- if (l.width !== "auto") {
130
- if (l.width) {
131
- const { value: e, unit: n } = fe(l.width);
132
- return n === "%" ? h.value ? `${Q.value * (e / 100)}px` : "0px" : `${e}px`;
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) => (b(), L(S, null, [
138
- c(e.$slots, "activator", oe(ne({
163
+ return (e, n) => (y(), I(S, null, [
164
+ G.value ? _("", !0) : c(e.$slots, "activator", re(C({ key: 0 }, {
139
165
  props: {
140
- "aria-expanded": m(C) ? o.value : !1,
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
- q(pe, B({
172
+ H(me, C({
153
173
  ref: "popover",
154
174
  modelValue: o.value,
155
- "onUpdate:modelValue": n[0] || (n[0] = (r) => o.value = r),
156
- anchor: g.value,
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: V(() => [
168
- F("span", {
169
- id: `menu_${m(d)}`,
170
- "aria-labelledby": m(d),
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: ae(O.value ? { width: O.value } : void 0)
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
- (b(!0), L(S, null, re(k.value, ({ original: r, ...t }, a) => (b(), L(S, {
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: a,
187
- item: e.items[a],
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
- q(ue, B({
212
+ H(ce, C({
193
213
  "aria-role": "menuitem",
194
214
  class: ["bb-dropdown__item", {
195
- "bb-dropdown__item--first": a === 0,
196
- "bb-dropdown__item--last": a === e.items.length - 1
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: V(() => [
221
+ default: M(() => [
202
222
  c(e.$slots, t.key, {
203
223
  disabled: t.disabled,
204
- index: a,
205
- item: r,
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"] ? (b(), K(M, {
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"])) : H("", !0),
215
- F("span", ve, se(t.text), 1),
216
- t["append:icon"] ? (b(), K(M, {
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"])) : H("", !0)
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: a,
228
- item: e.items[a],
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, be)
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
- Oe as default
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 "./index242.js";
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 "./index258.js";
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("./index257.js")).default);
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 "./index254.js";
3
- import { get as m } from "./index284.js";
4
- import { useLogger as N } from "./index236.js";
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 "./index280.js";
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 "./index271.js";
2
+ import { parseSize as R } from "./index284.js";
3
3
  import { useId as $ } from "./index8.js";
4
- import { useLocale as U } from "./index242.js";
4
+ import { useLocale as U } from "./index220.js";
5
5
  import { useMobile as j } from "./index9.js";
6
- import { useUntil as G } from "./index272.js";
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 = {