bitboss-ui 2.1.95 → 2.1.96

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 (197) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +13 -0
  2. package/dist/components/BbSelect/BbSelect.vue.d.ts +16 -0
  3. package/dist/components/FlatListBox.vue.d.ts +56 -0
  4. package/dist/components/GroupedListBox.vue.d.ts +67 -0
  5. package/dist/components/ListBox.vue.d.ts +58 -16
  6. package/dist/composables/useListboxFocus.d.ts +19 -0
  7. package/dist/index.css +1 -1
  8. package/dist/index108.js +9 -9
  9. package/dist/index109.js +17 -10
  10. package/dist/index115.js +1 -1
  11. package/dist/index121.js +4 -4
  12. package/dist/index123.js +13 -13
  13. package/dist/index131.js +1 -1
  14. package/dist/index133.js +5 -5
  15. package/dist/index135.js +1 -1
  16. package/dist/index137.js +2 -2
  17. package/dist/index14.js +1 -1
  18. package/dist/index140.js +1 -1
  19. package/dist/index142.js +2 -2
  20. package/dist/index144.js +1 -1
  21. package/dist/index16.js +5 -5
  22. package/dist/index18.js +3 -3
  23. package/dist/index20.js +8 -8
  24. package/dist/index216.js +138 -2
  25. package/dist/index217.js +2 -138
  26. package/dist/index218.js +2 -2
  27. package/dist/index219.js +1 -1
  28. package/dist/index22.js +14 -14
  29. package/dist/index220.js +1 -1
  30. package/dist/index221.js +5 -2
  31. package/dist/index222.js +5 -2
  32. package/dist/index223.js +5 -2
  33. package/dist/index224.js +5 -7
  34. package/dist/index225.js +3 -2
  35. package/dist/index226.js +2 -7
  36. package/dist/index227.js +6 -5
  37. package/dist/index228.js +8 -5
  38. package/dist/index229.js +268 -5
  39. package/dist/index230.js +52 -5
  40. package/dist/index231.js +52 -3
  41. package/dist/index232.js +32 -6
  42. package/dist/index233.js +58 -6
  43. package/dist/index234.js +12 -267
  44. package/dist/index235.js +4 -52
  45. package/dist/index236.js +19 -51
  46. package/dist/index237.js +195 -26
  47. package/dist/index239.js +134 -12
  48. package/dist/index24.js +11 -11
  49. package/dist/index241.js +32 -16
  50. package/dist/index242.js +26 -104
  51. package/dist/index244.js +2 -100
  52. package/dist/index245.js +4 -0
  53. package/dist/index246.js +51 -3
  54. package/dist/index247.js +17 -2
  55. package/dist/index248.js +106 -3
  56. package/dist/index250.js +100 -3
  57. package/dist/index252.js +3 -5
  58. package/dist/index253.js +5 -4
  59. package/dist/index254.js +5 -9
  60. package/dist/index255.js +5 -29
  61. package/dist/index256.js +2 -16
  62. package/dist/index257.js +34 -12
  63. package/dist/index258.js +85 -52
  64. package/dist/index26.js +3 -3
  65. package/dist/index260.js +27 -11
  66. package/dist/index261.js +15 -2
  67. package/dist/index262.js +12 -67
  68. package/dist/index263.js +15 -32
  69. package/dist/index264.js +188 -28
  70. package/dist/index265.js +5 -0
  71. package/dist/index266.js +8 -187
  72. package/dist/index267.js +18 -3
  73. package/dist/index268.js +12 -3
  74. package/dist/index269.js +4 -33
  75. package/dist/index270.js +103 -7
  76. package/dist/index271.js +13 -5
  77. package/dist/index272.js +11 -5
  78. package/dist/index273.js +5 -5
  79. package/dist/index274.js +2 -20
  80. package/dist/index275.js +3 -135
  81. package/dist/index277.js +22 -85
  82. package/dist/index278.js +11 -0
  83. package/dist/index279.js +23 -15
  84. package/dist/index28.js +1 -1
  85. package/dist/index280.js +2 -9
  86. package/dist/index281.js +7 -23
  87. package/dist/index282.js +6 -22
  88. package/dist/index283.js +33 -9
  89. package/dist/index284.js +13 -4
  90. package/dist/index285.js +59 -193
  91. package/dist/index287.js +3 -34
  92. package/dist/index288.js +6 -7
  93. package/dist/index289.js +14 -16
  94. package/dist/index290.js +9 -12
  95. package/dist/index291.js +20 -228
  96. package/dist/index293.js +3 -11
  97. package/dist/index294.js +3 -6
  98. package/dist/index295.js +3 -16
  99. package/dist/index296.js +2 -2
  100. package/dist/{index292.js → index297.js} +1 -1
  101. package/dist/index298.js +3 -3
  102. package/dist/index299.js +7 -280
  103. package/dist/index30.js +3 -3
  104. package/dist/index300.js +53 -2
  105. package/dist/index301.js +277 -13
  106. package/dist/index302.js +2 -2
  107. package/dist/index303.js +9 -9
  108. package/dist/index305.js +12 -23
  109. package/dist/index307.js +27 -2
  110. package/dist/index308.js +2 -2
  111. package/dist/index309.js +1 -1
  112. package/dist/index310.js +1 -1
  113. package/dist/index311.js +2 -28
  114. package/dist/index312.js +1 -1
  115. package/dist/index313.js +28 -3
  116. package/dist/index314.js +1 -1
  117. package/dist/index315.js +3 -4
  118. package/dist/index316.js +3 -17
  119. package/dist/index317.js +17 -3
  120. package/dist/index318.js +2 -3
  121. package/dist/index319.js +3 -125
  122. package/dist/index32.js +2 -2
  123. package/dist/index320.js +125 -2
  124. package/dist/index321.js +2 -15
  125. package/dist/index322.js +15 -2
  126. package/dist/index323.js +2 -19
  127. package/dist/index324.js +19 -2
  128. package/dist/index325.js +2 -3
  129. package/dist/index326.js +4 -3
  130. package/dist/index327.js +2 -5
  131. package/dist/index328.js +1 -1
  132. package/dist/index329.js +5 -4
  133. package/dist/index330.js +4 -4
  134. package/dist/index331.js +719 -6
  135. package/dist/index332.js +366 -2
  136. package/dist/index333.js +56 -57
  137. package/dist/index334.js +8 -58
  138. package/dist/index335.js +6 -719
  139. package/dist/index336.js +7 -365
  140. package/dist/index337.js +33 -55
  141. package/dist/index338.js +6 -7
  142. package/dist/index339.js +127 -17
  143. package/dist/index34.js +8 -8
  144. package/dist/index340.js +396 -7
  145. package/dist/index341.js +57 -14
  146. package/dist/index342.js +58 -5
  147. package/dist/index343.js +5 -6
  148. package/dist/index344.js +3 -34
  149. package/dist/index345.js +5 -6
  150. package/dist/index346.js +6 -128
  151. package/dist/index347.js +16 -395
  152. package/dist/index348.js +8 -7
  153. package/dist/index349.js +14 -5
  154. package/dist/index350.js +7 -8
  155. package/dist/index351.js +131 -225
  156. package/dist/index354.js +192 -133
  157. package/dist/index355.js +257 -46
  158. package/dist/index356.js +1 -1
  159. package/dist/index357.js +223 -436
  160. package/dist/index358.js +2 -128
  161. package/dist/index359.js +2 -520
  162. package/dist/index36.js +4 -4
  163. package/dist/index360.js +435 -44
  164. package/dist/index361.js +130 -0
  165. package/dist/index362.js +49 -0
  166. package/dist/index363.js +72 -0
  167. package/dist/index364.js +522 -0
  168. package/dist/index365.js +52 -0
  169. package/dist/index38.js +252 -232
  170. package/dist/index40.js +7 -7
  171. package/dist/index42.js +2 -2
  172. package/dist/index44.js +8 -8
  173. package/dist/index46.js +6 -6
  174. package/dist/index50.js +2 -2
  175. package/dist/index54.js +1 -1
  176. package/dist/index56.js +1 -1
  177. package/dist/index58.js +2 -2
  178. package/dist/index62.js +5 -5
  179. package/dist/index68.js +1 -1
  180. package/dist/index81.js +6 -6
  181. package/dist/index83.js +1 -1
  182. package/dist/index85.js +2 -2
  183. package/dist/index87.js +3 -3
  184. package/dist/index89.js +1 -1
  185. package/dist/index92.js +3 -3
  186. package/dist/index94.js +2 -2
  187. package/dist/index96.js +5 -5
  188. package/dist/index98.js +1 -1
  189. package/dist/types/Option.d.ts +5 -0
  190. package/dist/utilities/functions/groupBy.d.ts +4 -2
  191. package/dist/utilities/functions/indexBy.d.ts +9 -2
  192. package/package.json +1 -1
  193. package/dist/index238.js +0 -62
  194. package/dist/index240.js +0 -53
  195. package/dist/index259.js +0 -15
  196. /package/dist/{index251.js → index276.js} +0 -0
  197. /package/dist/{index249.js → index286.js} +0 -0
package/dist/index40.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 "./index221.js";
3
- import { isCssColor as K } from "./index222.js";
4
- import { isNil as x } from "./index223.js";
2
+ import { head as ce } from "./index280.js";
3
+ import { isCssColor as K } from "./index244.js";
4
+ import { isNil as x } from "./index245.js";
5
5
  import { getAsPercentageBetween as S, getAsPercentage as be, getValueFromPercentageInInterval as T } from "./index140.js";
6
- import { snapToStep as ve } from "./index224.js";
7
- import { last as fe } from "./index225.js";
8
- import { transpose as Q } from "./index226.js";
9
- import { clamp as m } from "./index216.js";
6
+ import { snapToStep as ve } from "./index281.js";
7
+ import { last as fe } from "./index226.js";
8
+ import { transpose as Q } from "./index282.js";
9
+ import { clamp as m } from "./index218.js";
10
10
  const pe = {
11
11
  key: 0,
12
12
  class: "bb-base-slider__ticks-container"
package/dist/index42.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 "./index222.js";
3
- import { when as x } from "./index253.js";
2
+ import { isCssColor as p } from "./index244.js";
3
+ import { when as x } from "./index269.js";
4
4
  const M = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ F({
5
5
  __name: "BaseSwitch",
6
6
  props: {
package/dist/index44.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 "./index42.js";
3
3
  /* empty css */
4
- import N from "./index277.js";
4
+ import N from "./index258.js";
5
5
  /* empty css */
6
- import { useItemsGetter as U } from "./index255.js";
7
- import { useIndexById as T } from "./index241.js";
8
- import { useBaseOptions as q } from "./index240.js";
9
- import { useCoherence as J } from "./index279.js";
10
- import { hash as Q } from "./index231.js";
11
- import { useHashedWatcher as $ } from "./index257.js";
12
- import { usePrefill as X } from "./index256.js";
6
+ import { useItemsGetter as U } from "./index260.js";
7
+ import { useIndexById as T } from "./index247.js";
8
+ import { useBaseOptions as q } from "./index246.js";
9
+ import { useCoherence as J } from "./index261.js";
10
+ import { hash as Q } from "./index225.js";
11
+ import { useHashedWatcher as $ } from "./index262.js";
12
+ import { usePrefill as X } from "./index263.js";
13
13
  const ue = /* @__PURE__ */ j({
14
14
  __name: "BaseSwitchGroup",
15
15
  props: {
package/dist/index46.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 "./index113.js";
3
3
  /* empty css */
4
- import { last as le } from "./index225.js";
5
- import { useBaseOptions as ne } from "./index240.js";
6
- import { useIndexById as re } from "./index241.js";
7
- import ie from "./index242.js";
4
+ import { last as le } from "./index226.js";
5
+ import { useBaseOptions as ne } from "./index246.js";
6
+ import { useIndexById as re } from "./index247.js";
7
+ import ie from "./index248.js";
8
8
  /* empty css */
9
- import ue from "./index244.js";
9
+ import ue from "./index250.js";
10
10
  /* empty css */
11
11
  import se from "./index137.js";
12
12
  /* empty css */
13
13
  import de from "./index139.js";
14
- import { isEmpty as pe } from "./index246.js";
14
+ import { isEmpty as pe } from "./index252.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/index50.js CHANGED
@@ -2,8 +2,8 @@ import { defineComponent as V, ref as h, computed as v, onMounted as B, onBefore
2
2
  import q from "./index137.js";
3
3
  /* empty css */
4
4
  import I from "./index139.js";
5
- import { MaskInput as z } from "./index266.js";
6
- import { isNotEmpty as D } from "./index267.js";
5
+ import { MaskInput as z } from "./index264.js";
6
+ import { isNotEmpty as D } from "./index265.js";
7
7
  const N = ["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/index54.js CHANGED
@@ -3,7 +3,7 @@ import B from "./index70.js";
3
3
  /* empty css */
4
4
  import L from "./index87.js";
5
5
  /* empty css */
6
- import { useLocale as g } from "./index239.js";
6
+ import { useLocale as g } from "./index234.js";
7
7
  const $ = {
8
8
  class: "bb-alert__inner-container",
9
9
  role: "alert"
package/dist/index56.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 "./index222.js";
2
+ import { isCssColor as y } from "./index244.js";
3
3
  import { wait as C } from "./index141.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index58.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 "./index222.js";
3
- import { isNil as B } from "./index223.js";
2
+ import { isCssColor as l } from "./index244.js";
3
+ import { isNil as B } from "./index245.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/index62.js CHANGED
@@ -7,11 +7,11 @@ import f from "./index87.js";
7
7
  /* empty css */
8
8
  import J from "./index115.js";
9
9
  /* empty css */
10
- import { pickBy as K } from "./index249.js";
11
- import { noop as Q } from "./index250.js";
12
- import { useLocale as U } from "./index239.js";
13
- import { extractDomContainer as X } from "./index251.js";
14
- import { isEqual as $ } from "./index248.js";
10
+ import { pickBy as K } from "./index286.js";
11
+ import { noop as Q } from "./index287.js";
12
+ import { useLocale as U } from "./index234.js";
13
+ import { extractDomContainer as X } from "./index276.js";
14
+ import { isEqual as $ } from "./index275.js";
15
15
  const Y = {
16
16
  key: 2,
17
17
  class: "bb-button__loading-label sr-only"
package/dist/index68.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 "./index239.js";
2
+ import { useLocale as f } from "./index234.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/index81.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as fe, ref as C, computed as p, useTemplateRef as ve, watch as $, onBeforeUnmount as be, createElementBlock as M, openBlock as E, Fragment as B, renderSlot as v, createCommentVNode as V, createVNode as x, normalizeProps as ye, mergeProps as q, withCtx as G, createElementVNode as J, normalizeStyle as we, unref as Q, renderList as ge, createBlock as Z, toDisplayString as he } from "vue";
2
- import { findRightIndex as R } from "./index280.js";
2
+ import { findRightIndex as R } from "./index278.js";
3
3
  import { useId as Ee } from "./index8.js";
4
- import { useUntil as Le } from "./index260.js";
4
+ import { useUntil as Le } from "./index271.js";
5
5
  import { wait as ke } from "./index141.js";
6
6
  import De from "./index14.js";
7
7
  /* empty css */
8
8
  import ee from "./index87.js";
9
9
  /* empty css */
10
- import $e from "./index275.js";
10
+ import $e from "./index239.js";
11
11
  /* empty css */
12
- import te from "./index281.js";
13
- import { extractDomContainer as H } from "./index251.js";
12
+ import te from "./index279.js";
13
+ import { extractDomContainer as H } from "./index276.js";
14
14
  import { useIntersectionObserver as Ae, useElementSize as Se } from "./index142.js";
15
- import { parseWidthString as Pe } from "./index282.js";
15
+ import { parseWidthString as Pe } from "./index277.js";
16
16
  const Ie = ["id", "aria-labelledby", "inert"], Te = { class: "item__content" }, Oe = 500, _e = 10, ze = /* @__PURE__ */ fe({
17
17
  inheritAttrs: !1,
18
18
  __name: "BbDropdown",
package/dist/index83.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index87.js";
9
9
  /* empty css */
10
10
  import I from "./index115.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index239.js";
12
+ import { useLocale as M } from "./index234.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/index85.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 "./index295.js";
2
+ import { findInTree as ae } from "./index289.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index113.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("./index294.js")).default);
56
+ b || (b = (await import("./index288.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index87.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 "./index222.js";
3
- import { get as m } from "./index293.js";
4
- import { useLogger as N } from "./index233.js";
2
+ import { isCssColor as C } from "./index244.js";
3
+ import { get as m } from "./index272.js";
4
+ import { useLogger as N } from "./index228.js";
5
5
  const S = ["innerHTML"], E = /* @__PURE__ */ $({
6
6
  __name: "BbIcon",
7
7
  props: {
package/dist/index89.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 "./index292.js";
2
+ import { throttle as c } from "./index297.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index92.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as I, mergeModels as B, useModel as N, computed as p, ref as L, watch as P, onMounted as W, createElementBlock as d, openBlock as c, withModifiers as F, normalizeStyle as O, normalizeClass as q, unref as v, createCommentVNode as h, Fragment as A, createElementVNode as t, renderSlot as l, createTextVNode as H, toDisplayString as M, nextTick as K } from "vue";
2
- import { parseSize as R } from "./index259.js";
2
+ import { parseSize as R } from "./index284.js";
3
3
  import { useId as $ } from "./index8.js";
4
- import { useLocale as U } from "./index239.js";
4
+ import { useLocale as U } from "./index234.js";
5
5
  import { useMobile as j } from "./index9.js";
6
- import { useUntil as G } from "./index260.js";
6
+ import { useUntil as G } from "./index271.js";
7
7
  import { wait as y } from "./index141.js";
8
8
  import { _config as J } from "./index4.js";
9
9
  const Q = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], X = {
package/dist/index94.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as b, r
3
3
  /* empty css */
4
4
  import P from "./index14.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index283.js";
7
- import { useLocale as H } from "./index239.js";
6
+ import { debounce as X } from "./index266.js";
7
+ import { useLocale as H } from "./index234.js";
8
8
  import { useRoute as J } from "./index148.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",
package/dist/index96.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as re, mergeModels as I, ref as N, useTemplateRef as ae, computed as s, useModel as ie, watch as C, createElementBlock as se, openBlock as Y, Fragment as le, renderSlot as G, createCommentVNode as W, createVNode as ue, normalizeProps as de, mergeProps as X, unref as S, withCtx as F, createElementVNode as B, createBlock as ce, nextTick as pe } from "vue";
2
2
  import { useId as me } from "./index8.js";
3
3
  import { useIntersectionObserver as ve, useElementSize as fe } from "./index142.js";
4
- import { useLocale as be } from "./index239.js";
5
- import { useUntil as he } from "./index260.js";
4
+ import { useLocale as be } from "./index234.js";
5
+ import { useUntil as he } from "./index271.js";
6
6
  import ge from "./index14.js";
7
7
  /* empty css */
8
- import we from "./index275.js";
8
+ import we from "./index239.js";
9
9
  /* empty css */
10
- import { extractDomContainer as H } from "./index251.js";
11
- import { parseWidthString as U } from "./index282.js";
10
+ import { extractDomContainer as H } from "./index276.js";
11
+ import { parseWidthString as U } from "./index277.js";
12
12
  const Ee = ["inert"], Le = 500, ye = 10, De = /* @__PURE__ */ re({
13
13
  inheritAttrs: !1,
14
14
  __name: "BbPopover",
package/dist/index98.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index216.js";
2
+ import { clamp as p } from "./index218.js";
3
3
  import { getAsPercentageBetween as i } from "./index140.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
@@ -6,3 +6,8 @@ export type Option<Item = any> = {
6
6
  disabled?: boolean;
7
7
  valueHash: string;
8
8
  };
9
+ export type GroupedOptions = {
10
+ id: string;
11
+ data: any;
12
+ options: Option[];
13
+ };
@@ -1,4 +1,6 @@
1
1
  /**
2
- * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items
2
+ * Creates an object with keys corresponding to the return value of iteratee or
3
+ * property value and values correspond to arrays of items.
3
4
  */
4
- export declare const groupBy: <T>(arr: T[], iteratee: (item: T, index: number, arr: T[]) => string | number | symbol) => Record<ReturnType<typeof iteratee>, T[]>;
5
+ export declare function groupBy<T>(arr: T[], key: keyof T): Record<string | number | symbol, T[]>;
6
+ export declare function groupBy<T, U extends string | number | symbol>(arr: T[], iteratee: (item: T, index: number, arr: T[]) => U): Record<U, T[]>;
@@ -1,4 +1,11 @@
1
1
  /**
2
- * Creates an object with keys corresponding to the return value of iteratee and values correspond to arrays of items
2
+ * Creates an object with keys corresponding to the return value of iteratee or
3
+ * property value and values correspond to items
4
+ *
5
+ * @param arr - Array to index
6
+ * @param iterateeOrKey - Either a function that returns the key or a property
7
+ * key string
8
+ * @returns Object with indexed items
3
9
  */
4
- export declare const indexBy: <T, U extends string | number | symbol>(arr: T[], iteratee: (item: T, index: number, arr: T[]) => U) => Record<U, T>;
10
+ export declare function indexBy<T>(arr: T[], key: keyof T): Record<string | number | symbol, T>;
11
+ export declare function indexBy<T, U extends string | number | symbol>(arr: T[], iteratee: (item: T, index: number, arr: T[]) => U): Record<U, T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.1.95",
3
+ "version": "2.1.96",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index238.js DELETED
@@ -1,62 +0,0 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
- import { range as H } from "./index343.js";
3
- import M from "./index14.js";
4
- /* empty css */
5
- const n = 10, l = 3, V = /* @__PURE__ */ g({
6
- __name: "BaseDatePickerYearSelector",
7
- props: {
8
- cursor: {},
9
- disabled: { type: Boolean }
10
- },
11
- emits: ["update:year"],
12
- setup(p, { emit: _ }) {
13
- const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
- () => H(c.value, s.value).map((e) => ({
15
- text: e,
16
- key: e,
17
- selected: e === r.value,
18
- handler: () => b("update:year", e)
19
- }))
20
- ), k = (e) => {
21
- const t = e.target;
22
- t.scrollTop <= 100 ? c.value = Math.max(
23
- c.value - n * l,
24
- r.value - 200
25
- ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
- };
27
- return h(() => {
28
- if (!o.value) return;
29
- const e = o.value.querySelector(
30
- ".content__btn--selected"
31
- );
32
- e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
- }), (e, t) => (u(), m("div", {
34
- ref_key: "container",
35
- ref: o,
36
- class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
- }, [
38
- y("div", {
39
- class: "content",
40
- onScrollPassive: k
41
- }, [
42
- (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
- key: a.key,
44
- class: S({
45
- content__btn: !0,
46
- "content__btn--selected": a.selected
47
- }),
48
- disabled: e.disabled,
49
- onClick: a.handler
50
- }, {
51
- default: T(() => [
52
- E(w(a.text), 1)
53
- ]),
54
- _: 2
55
- }, 1032, ["class", "disabled", "onClick"]))), 128))
56
- ], 32)
57
- ], 512));
58
- }
59
- });
60
- export {
61
- V as default
62
- };
package/dist/index240.js DELETED
@@ -1,53 +0,0 @@
1
- import { computed as l, unref as o } from "vue";
2
- import { useItemText as x } from "./index316.js";
3
- import { useItemValue as w } from "./index254.js";
4
- import { hash as y } from "./index231.js";
5
- import { useLogger as D } from "./index233.js";
6
- const { getItemText: O } = x(), { getItemValue: V } = w(), { warn: H } = D(), T = (u, c, m, a, d, r) => r ? !1 : !!(c || u.disabled || a && d >= a), q = ({
7
- items: u,
8
- disabled: c,
9
- selectable: m,
10
- itemText: a,
11
- itemValue: d,
12
- selectedIndexedByHash: r,
13
- max: b = 1 / 0
14
- }) => {
15
- const v = l(() => o(c)), p = l(() => o(u)), h = l(
16
- () => Object.keys(r.value).length
17
- ), g = o(b), f = (e) => {
18
- const n = V(e, o(d)), t = y(n), i = O(e, o(a)), s = r.value[t] !== void 0, I = T(
19
- e,
20
- v.value,
21
- m,
22
- g,
23
- h.value,
24
- s
25
- );
26
- return {
27
- item: e,
28
- text: i,
29
- value: n,
30
- valueHash: t,
31
- selected: s,
32
- disabled: o(I)
33
- };
34
- };
35
- return {
36
- options: l(() => {
37
- const e = [], n = /* @__PURE__ */ new Set();
38
- for (let t = 0; t < p.value.length; t++) {
39
- const i = p.value[t];
40
- i.disabled && H(
41
- "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
42
- );
43
- const s = f(i);
44
- n.has(s.valueHash) || (n.add(s.valueHash), e.push(s));
45
- }
46
- return e;
47
- }),
48
- createOption: f
49
- };
50
- };
51
- export {
52
- q as useBaseOptions
53
- };
package/dist/index259.js DELETED
@@ -1,15 +0,0 @@
1
- const c = (t, r) => {
2
- if (typeof t == "string") {
3
- const e = /^(\d+)([a-zA-Z%]+)?$/, n = t.match(e);
4
- if (n) {
5
- const [, o, a] = n;
6
- return a ? t : o + "px";
7
- } else if (t in r)
8
- return r[t] + "px";
9
- throw new Error(`Invalid size: ${t}`);
10
- }
11
- return t + "px";
12
- };
13
- export {
14
- c as parseSize
15
- };
File without changes
File without changes