bitboss-ui 2.1.78 → 2.1.80

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 (187) hide show
  1. package/dist/components/BaseDialog/BaseDialog.vue.d.ts +7 -1
  2. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +9 -2
  3. package/dist/components/BbButton/BbButton.vue.d.ts +22 -2
  4. package/dist/components/BbDialog/BbDialog.vue.d.ts +6 -2
  5. package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +12 -1
  6. package/dist/components/BbSelect/BbSelect.vue.d.ts +9 -2
  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 +13 -13
  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/index139.js +1 -1
  18. package/dist/index141.js +2 -2
  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/index214.js +2 -138
  25. package/dist/index215.js +138 -2
  26. package/dist/index216.js +2 -2
  27. package/dist/index217.js +1 -1
  28. package/dist/index218.js +1 -1
  29. package/dist/index220.js +1 -1
  30. package/dist/index222.js +5 -4
  31. package/dist/index223.js +5 -13
  32. package/dist/index224.js +5 -20
  33. package/dist/index225.js +5 -201
  34. package/dist/index226.js +7 -0
  35. package/dist/index227.js +3 -135
  36. package/dist/index228.js +4 -0
  37. package/dist/index229.js +6 -2
  38. package/dist/index23.js +11 -11
  39. package/dist/index230.js +8 -51
  40. package/dist/index231.js +268 -17
  41. package/dist/index232.js +46 -100
  42. package/dist/index233.js +54 -0
  43. package/dist/index234.js +28 -96
  44. package/dist/index235.js +62 -0
  45. package/dist/index236.js +13 -3
  46. package/dist/index237.js +86 -5
  47. package/dist/index239.js +29 -5
  48. package/dist/index240.js +17 -5
  49. package/dist/index241.js +51 -5
  50. package/dist/index242.js +15 -5
  51. package/dist/index243.js +12 -2
  52. package/dist/index244.js +15 -187
  53. package/dist/index245.js +10 -3
  54. package/dist/index246.js +3 -2
  55. package/dist/index247.js +3 -10
  56. package/dist/index248.js +3 -8
  57. package/dist/index249.js +5 -13
  58. package/dist/index25.js +41 -40
  59. package/dist/index250.js +5 -13
  60. package/dist/index251.js +5 -4
  61. package/dist/index252.js +2 -23
  62. package/dist/index253.js +3 -3
  63. package/dist/index254.js +20 -3
  64. package/dist/index255.js +134 -17
  65. package/dist/index257.js +187 -14
  66. package/dist/index258.js +3 -12
  67. package/dist/index259.js +12 -28
  68. package/dist/index260.js +12 -15
  69. package/dist/index261.js +9 -4
  70. package/dist/index262.js +2 -229
  71. package/dist/index263.js +11 -10
  72. package/dist/index264.js +6 -3
  73. package/dist/index265.js +15 -66
  74. package/dist/index266.js +9 -2
  75. package/dist/index267.js +2 -3
  76. package/dist/index268.js +8 -9
  77. package/dist/index27.js +1 -1
  78. package/dist/index271.js +23 -5
  79. package/dist/index272.js +2 -6
  80. package/dist/index273.js +4 -16
  81. package/dist/index274.js +201 -3
  82. package/dist/index276.js +3 -9
  83. package/dist/index277.js +3 -5
  84. package/dist/index278.js +4 -6
  85. package/dist/index279.js +40 -267
  86. package/dist/index280.js +7 -52
  87. package/dist/index281.js +17 -51
  88. package/dist/index282.js +12 -32
  89. package/dist/index283.js +100 -54
  90. package/dist/index285.js +95 -81
  91. package/dist/index287.js +227 -7
  92. package/dist/index288.js +34 -8
  93. package/dist/index289.js +8 -6
  94. package/dist/index29.js +3 -3
  95. package/dist/index293.js +66 -40
  96. package/dist/index296.js +7 -4
  97. package/dist/index297.js +280 -7
  98. package/dist/index298.js +2 -3
  99. package/dist/index299.js +16 -3
  100. package/dist/index300.js +2 -17
  101. package/dist/index301.js +16 -2
  102. package/dist/index302.js +2 -3
  103. package/dist/index303.js +27 -2
  104. package/dist/index304.js +2 -28
  105. package/dist/index305.js +2 -4
  106. package/dist/index306.js +2 -3
  107. package/dist/index307.js +2 -5
  108. package/dist/index308.js +2 -280
  109. package/dist/index309.js +28 -2
  110. package/dist/index31.js +2 -2
  111. package/dist/index310.js +2 -125
  112. package/dist/index311.js +3 -2
  113. package/dist/index312.js +17 -15
  114. package/dist/index313.js +125 -2
  115. package/dist/index314.js +2 -16
  116. package/dist/index315.js +15 -2
  117. package/dist/index316.js +2 -16
  118. package/dist/index317.js +19 -2
  119. package/dist/index318.js +2 -19
  120. package/dist/index319.js +3 -2
  121. package/dist/index320.js +3 -5
  122. package/dist/index321.js +719 -27
  123. package/dist/index322.js +366 -2
  124. package/dist/index323.js +57 -2
  125. package/dist/index324.js +4 -2
  126. package/dist/index325.js +5 -2
  127. package/dist/index326.js +5 -2
  128. package/dist/index327.js +3 -2
  129. package/dist/index328.js +3 -719
  130. package/dist/index329.js +2 -366
  131. package/dist/index33.js +8 -8
  132. package/dist/index330.js +2 -57
  133. package/dist/index331.js +6 -2
  134. package/dist/index332.js +2 -3
  135. package/dist/index333.js +5 -6
  136. package/dist/index334.js +6 -34
  137. package/dist/index335.js +19 -6
  138. package/dist/index336.js +7 -127
  139. package/dist/index337.js +12 -395
  140. package/dist/index338.js +6 -46
  141. package/dist/index339.js +58 -8
  142. package/dist/index340.js +58 -6
  143. package/dist/index341.js +4 -8
  144. package/dist/index342.js +35 -58
  145. package/dist/index343.js +6 -58
  146. package/dist/index344.js +123 -222
  147. package/dist/index345.js +388 -83
  148. package/dist/index346.js +8 -5
  149. package/dist/index347.js +5 -6
  150. package/dist/index348.js +8 -19
  151. package/dist/index349.js +22 -9
  152. package/dist/index35.js +4 -4
  153. package/dist/index351.js +133 -6
  154. package/dist/index352.js +89 -130
  155. package/dist/index353.js +222 -514
  156. package/dist/index354.js +47 -22
  157. package/dist/index355.js +522 -0
  158. package/dist/index356.js +435 -44
  159. package/dist/index357.js +114 -427
  160. package/dist/index358.js +48 -126
  161. package/dist/index37.js +108 -99
  162. package/dist/index39.js +4 -4
  163. package/dist/index41.js +2 -2
  164. package/dist/index43.js +8 -8
  165. package/dist/index45.js +6 -6
  166. package/dist/index49.js +2 -2
  167. package/dist/index53.js +1 -1
  168. package/dist/index55.js +1 -1
  169. package/dist/index57.js +2 -2
  170. package/dist/index61.js +74 -58
  171. package/dist/index67.js +1 -1
  172. package/dist/index78.js +28 -25
  173. package/dist/index80.js +4 -4
  174. package/dist/index82.js +1 -1
  175. package/dist/index84.js +2 -2
  176. package/dist/index86.js +3 -3
  177. package/dist/index88.js +1 -1
  178. package/dist/index91.js +60 -60
  179. package/dist/index93.js +2 -2
  180. package/dist/index95.js +5 -5
  181. package/dist/index97.js +1 -1
  182. package/package.json +1 -1
  183. package/dist/index238.js +0 -7
  184. package/dist/index256.js +0 -14
  185. package/dist/index275.js +0 -36
  186. package/dist/index284.js +0 -4
  187. package/dist/index350.js +0 -17
package/dist/index358.js CHANGED
@@ -1,130 +1,52 @@
1
- const j = ["top", "right", "bottom", "left"], m = Math.min, p = Math.max, C = Math.round, L = Math.floor, E = (t) => ({
2
- x: t,
3
- y: t
4
- }), h = {
5
- left: "right",
6
- right: "left",
7
- bottom: "top",
8
- top: "bottom"
9
- }, x = {
10
- start: "end",
11
- end: "start"
12
- };
13
- function R(t, e, n) {
14
- return p(t, m(e, n));
15
- }
16
- function T(t, e) {
17
- return typeof t == "function" ? t(e) : t;
18
- }
19
- function g(t) {
20
- return t.split("-")[0];
21
- }
22
- function a(t) {
23
- return t.split("-")[1];
24
- }
25
- function b(t) {
26
- return t === "x" ? "y" : "x";
27
- }
28
- function d(t) {
29
- return t === "y" ? "height" : "width";
30
- }
31
- const A = /* @__PURE__ */ new Set(["top", "bottom"]);
32
- function P(t) {
33
- return A.has(g(t)) ? "y" : "x";
34
- }
35
- function y(t) {
36
- return b(P(t));
37
- }
38
- function k(t, e, n) {
39
- n === void 0 && (n = !1);
40
- const r = a(t), i = y(t), o = d(i);
41
- let c = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
42
- return e.reference[o] > e.floating[o] && (c = f(c)), [c, f(c)];
43
- }
44
- function q(t) {
45
- const e = f(t);
46
- return [s(t), e, s(e)];
47
- }
48
- function s(t) {
49
- return t.replace(/start|end/g, (e) => x[e]);
50
- }
51
- const u = ["left", "right"], l = ["right", "left"], M = ["top", "bottom"], O = ["bottom", "top"];
52
- function S(t, e, n) {
53
- switch (t) {
54
- case "top":
55
- case "bottom":
56
- return n ? e ? l : u : e ? u : l;
57
- case "left":
58
- case "right":
59
- return e ? M : O;
60
- default:
61
- return [];
1
+ function T(n, l, e) {
2
+ let i = e.initialDeps ?? [], t, c = !0;
3
+ function h() {
4
+ var d, m, f;
5
+ let g;
6
+ e.key && ((d = e.debug) != null && d.call(e)) && (g = Date.now());
7
+ const o = n();
8
+ if (!(o.length !== i.length || o.some((r, a) => i[a] !== r)))
9
+ return t;
10
+ i = o;
11
+ let s;
12
+ if (e.key && ((m = e.debug) != null && m.call(e)) && (s = Date.now()), t = l(...o), e.key && ((f = e.debug) != null && f.call(e))) {
13
+ const r = Math.round((Date.now() - g) * 100) / 100, a = Math.round((Date.now() - s) * 100) / 100, b = a / 16, w = (u, D) => {
14
+ for (u = String(u); u.length < D; )
15
+ u = " " + u;
16
+ return u;
17
+ };
18
+ console.info(
19
+ `%c⏱ ${w(a, 5)} /${w(r, 5)} ms`,
20
+ `
21
+ font-size: .6rem;
22
+ font-weight: bold;
23
+ color: hsl(${Math.max(
24
+ 0,
25
+ Math.min(120 - 120 * b, 120)
26
+ )}deg 100% 31%);`,
27
+ e?.key
28
+ );
29
+ }
30
+ return e?.onChange && !(c && e.skipInitialOnChange) && e.onChange(t), c = !1, t;
62
31
  }
63
- }
64
- function z(t, e, n, r) {
65
- const i = a(t);
66
- let o = S(g(t), n === "start", r);
67
- return i && (o = o.map((c) => c + "-" + i), e && (o = o.concat(o.map(s)))), o;
68
- }
69
- function f(t) {
70
- return t.replace(/left|right|bottom|top/g, (e) => h[e]);
71
- }
72
- function w(t) {
73
- return {
74
- top: 0,
75
- right: 0,
76
- bottom: 0,
77
- left: 0,
78
- ...t
79
- };
80
- }
81
- function B(t) {
82
- return typeof t != "number" ? w(t) : {
83
- top: t,
84
- right: t,
85
- bottom: t,
86
- left: t
87
- };
88
- }
89
- function D(t) {
90
- const {
91
- x: e,
92
- y: n,
93
- width: r,
94
- height: i
95
- } = t;
96
- return {
97
- width: r,
98
- height: i,
99
- top: n,
100
- left: e,
101
- right: e + r,
102
- bottom: n + i,
103
- x: e,
104
- y: n
32
+ return h.updateDeps = (d) => {
33
+ i = d;
34
+ }, h;
35
+ }
36
+ function k(n, l) {
37
+ if (n === void 0)
38
+ throw new Error("Unexpected undefined");
39
+ return n;
40
+ }
41
+ const y = (n, l) => Math.abs(n - l) < 1.01, C = (n, l, e) => {
42
+ let i;
43
+ return function(...t) {
44
+ n.clearTimeout(i), i = n.setTimeout(() => l.apply(this, t), e);
105
45
  };
106
- }
46
+ };
107
47
  export {
108
- R as clamp,
109
- E as createCoords,
110
- T as evaluate,
111
- w as expandPaddingObject,
112
- L as floor,
113
- a as getAlignment,
114
- y as getAlignmentAxis,
115
- k as getAlignmentSides,
116
- d as getAxisLength,
117
- q as getExpandedPlacements,
118
- s as getOppositeAlignmentPlacement,
119
- b as getOppositeAxis,
120
- z as getOppositeAxisPlacements,
121
- f as getOppositePlacement,
122
- B as getPaddingObject,
123
- g as getSide,
124
- P as getSideAxis,
125
- p as max,
126
- m as min,
127
- D as rectToClientRect,
128
- C as round,
129
- j as sides
48
+ y as approxEqual,
49
+ C as debounce,
50
+ T as memo,
51
+ k as notUndefined
130
52
  };
package/dist/index37.js CHANGED
@@ -1,34 +1,34 @@
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";
1
+ import { defineComponent as Qe, ref as f, computed as m, toRef as z, createBlock as K, openBlock as h, normalizeClass as ee, withCtx as u, createElementVNode as L, createVNode as T, createElementBlock as I, unref as g, renderSlot as d, createCommentVNode as te, withDirectives as Xe, Fragment as ae, toDisplayString as Ye, withKeys as w, 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 "./index254.js";
5
- import { isEmpty as lt } from "./index236.js";
6
- import { last as ot } from "./index229.js";
7
- import { matchAnyKey as ne } from "./index255.js";
8
- import { useArray as nt } from "./index256.js";
9
- import { useBaseOptions as ut } from "./index230.js";
10
- import { useCoherence as st } from "./index257.js";
11
- import { useHashedWatcher as ue } from "./index258.js";
4
+ import { hash as at } from "./index227.js";
5
+ import { isEmpty as lt } from "./index253.js";
6
+ import { last as ot } from "./index228.js";
7
+ import { matchAnyKey as ne } from "./index281.js";
8
+ import { useArray as nt } from "./index282.js";
9
+ import { useBaseOptions as ut } from "./index241.js";
10
+ import { useCoherence as st } from "./index242.js";
11
+ import { useHashedWatcher as ue } from "./index243.js";
12
12
  import { useId as it } from "./index8.js";
13
- import { useIndexById as se } from "./index231.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 "./index259.js";
16
- import { useLocale as mt } from "./index223.js";
15
+ import { useItemsGetter as pt } from "./index239.js";
16
+ import { useLocale as mt } from "./index236.js";
17
17
  import { useMobile as ft } from "./index9.js";
18
- import { usePrefill as vt } from "./index260.js";
19
- import { wait as T } from "./index140.js";
20
- import { when as ht } from "./index261.js";
21
- import yt from "./index232.js";
18
+ import { usePrefill as vt } from "./index244.js";
19
+ import { wait as E } from "./index140.js";
20
+ import { when as ht } from "./index278.js";
21
+ import yt from "./index283.js";
22
22
  /* empty css */
23
- import bt from "./index234.js";
23
+ import bt from "./index285.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 "./index227.js";
28
+ import Bt from "./index255.js";
29
29
  /* empty css */
30
- import Vt from "./index262.js";
31
- import { useUntil as St } from "./index250.js";
30
+ import Vt from "./index287.js";
31
+ import { useUntil as St } from "./index260.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,
@@ -80,49 +80,49 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
80
80
  const t = ie, o = re;
81
81
  if (t.multiple && !Array.isArray(t.modelValue))
82
82
  throw new Error('Multiple is set to "true" but modelValue is not an array.');
83
- const { t: de } = mt(), ce = rt(), E = f(null), I = f(null), s = f(null), _ = f(null), R = f(null), r = m(
83
+ const { t: de } = mt(), ce = rt(), F = f(null), D = f(null), s = f(null), _ = f(null), R = f(null), r = m(
84
84
  () => t.comma ? _.value : R.value
85
- ), { width: pe } = dt(I), { isMobile: me } = ft(), fe = m(
85
+ ), { width: pe } = dt(D), { isMobile: me } = ft(), fe = m(
86
86
  () => t.allowWriting === "not-mobile" && me.value ? "none" : void 0
87
87
  ), j = t.id || it().id.value, { resume: ve, pause: he } = ct(
88
- I,
88
+ D,
89
89
  async ([{ intersectionRatio: e }]) => {
90
- e !== 1 && n.value && await S();
90
+ e !== 1 && n.value && await k();
91
91
  },
92
92
  { threshold: [0, 1], immediate: !1 }
93
93
  ), ye = m(() => ({
94
94
  width: `${pe.value ?? 0}px`
95
- })), F = f(null), A = () => {
96
- F.value instanceof HTMLInputElement && F.value.focus();
95
+ })), A = f(null), v = () => {
96
+ A.value instanceof HTMLInputElement && A.value.focus();
97
97
  }, be = async (e) => {
98
- o("focus", e), Ke(), document.addEventListener("click", D), document.addEventListener("focusin", D);
98
+ o("focus", e), Ke(), document.addEventListener("click", O), document.addEventListener("focusin", O);
99
99
  }, ge = () => {
100
100
  t.prefill === "focus" && !Te.value && !J.value && Ee();
101
101
  }, we = async (e) => {
102
102
  o("blur", e);
103
103
  }, Be = (e) => o("change", e), Ve = (e) => {
104
- o("input", e), a.value === "" && (t.multiple || o("update:modelValue", null)), r.value?.blur(), N.value && V(), He(a.value, !1, t.modelValue);
105
- }, D = async (e) => {
106
- if (e.target instanceof Node && E.value && !E.value.$el.contains(e.target) && !s.value?.$el?.contains(e.target)) {
107
- S(), Ue(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await T(t.transitionDuration), h();
104
+ o("input", e), a.value === "" && (t.multiple || o("update:modelValue", null)), r.value?.blur(), N.value && S(), He(a.value, !1, t.modelValue);
105
+ }, O = async (e) => {
106
+ if (e.target instanceof Node && F.value && !F.value.$el.contains(e.target) && !s.value?.$el?.contains(e.target)) {
107
+ k(), Ue(), document.removeEventListener("click", O), document.removeEventListener("focusin", O), await E(t.transitionDuration), y();
108
108
  return;
109
109
  }
110
- }, w = m(() => !(t.readonly || t.disabled || $.value || !r.value && t.multiple && i.value.length <= t.maxSelectedLabels)), Se = async () => {
111
- w.value && (r.value?.blur(), n.value ? s.value?.focusPrevious() : (await V(), await T(t.transitionDuration), s.value?.focusLastSelected()));
110
+ }, B = m(() => !(t.readonly || t.disabled || H.value || !r.value && t.multiple && i.value.length <= t.maxSelectedLabels)), Se = async () => {
111
+ B.value && (r.value?.blur(), n.value ? s.value?.focusPrevious() : (await S(), await E(t.transitionDuration), s.value?.focusLastSelected()));
112
112
  }, ke = async () => {
113
- w.value && (r.value?.blur(), n.value ? s.value?.focusNext() : (await V(), await T(t.transitionDuration), s.value?.focusFirstSelected()));
113
+ B.value && (r.value?.blur(), n.value ? s.value?.focusNext() : (await S(), await E(t.transitionDuration), s.value?.focusFirstSelected()));
114
114
  }, Ce = (e) => {
115
- if (!w.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
115
+ if (!B.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
116
116
  r.value?.focusPrevious();
117
117
  const l = r.value?.getHighlighted();
118
118
  l && s.value?.focusByHash(l.valueHash);
119
119
  }, Ie = (e) => {
120
- if (!w.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
120
+ if (!B.value || !t.multiple || a.value || (e.preventDefault(), s.value?.blur(), !i.value.length)) return;
121
121
  r.value?.focusNext();
122
122
  const l = r.value?.getHighlighted();
123
123
  l && s.value?.focusByHash(l.valueHash);
124
124
  }, De = async () => {
125
- if (!w.value)
125
+ if (!B.value)
126
126
  return;
127
127
  if (n.value) {
128
128
  if (s.value?.getHighlighted()) {
@@ -130,15 +130,15 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
130
130
  return;
131
131
  }
132
132
  } else {
133
- await V(), await T(t.transitionDuration), i.value.length && s.value?.focusFirstSelected();
133
+ await S(), await E(t.transitionDuration), i.value.length && s.value?.focusFirstSelected();
134
134
  return;
135
135
  }
136
136
  const e = a.value.trim();
137
137
  xe(e) || (o("option:add", e), a.value = "");
138
138
  }, Oe = async () => {
139
- n.value && await S();
139
+ n.value && await k();
140
140
  }, $e = async () => {
141
- !w.value || a.value || !i.value.length || (r.value?.getHighlighted() && r.value.confirmOption(), await U(), r.value?.focusPrevious());
141
+ !B.value || a.value || !i.value.length || (r.value?.getHighlighted() && r.value.confirmOption(), await U(), r.value?.focusPrevious());
142
142
  }, a = f(""), {
143
143
  getter: q,
144
144
  debouncedGetter: He,
@@ -158,7 +158,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
158
158
  currentValue: t.modelValue,
159
159
  multiple: t.multiple,
160
160
  fn: async ({ prefill: e }) => {
161
- await q(a.value, e, t.modelValue), t.stash && X(...O.value.map((l) => l.item)), x(), h();
161
+ await q(a.value, e, t.modelValue), t.stash && X(...$.value.map((l) => l.item)), x(), y();
162
162
  }
163
163
  }), {
164
164
  array: Q,
@@ -171,7 +171,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
171
171
  }), qe = m(() => i.value.length ? "" : t.placeholder), { data: M, get: xe } = se({
172
172
  // Force model value to be an array
173
173
  items: m(() => [].concat(t.modelValue))
174
- }), { options: O } = ut({
174
+ }), { options: $ } = ut({
175
175
  disabled: z(t, "disabled"),
176
176
  items: m(() => [...Le.value, ...Q.value]),
177
177
  itemText: t.itemText,
@@ -179,16 +179,16 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
179
179
  max: t.max,
180
180
  selectable: !0,
181
181
  selectedIndexedByHash: M
182
- }), $ = m(() => !!(G.value || t.loading)), Me = m(() => {
182
+ }), H = m(() => !!(G.value || t.loading)), Me = m(() => {
183
183
  let e = [];
184
184
  const l = i.value.some(
185
- (y) => y.text === a.value
185
+ (b) => b.text === a.value
186
186
  );
187
- return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = O.value.filter((y) => {
188
- let k = !1;
189
- return typeof t.filterBy == "function" ? k = t.filterBy(y.value, y.item, a.value) : t.filterBy === "not_stashed" && a.value ? k = !new Set(Q.value.map((Je) => Je.valueHash)).has(y.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (k = k || ne(y.item, t.filterBy, a.value.trim())), k || ne(y, ["text"], a.value.trim());
190
- }) : e = O.value, e;
191
- }), h = () => {
187
+ return (t.multiple && a.value || t.filterBy === "not_stashed" && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = $.value.filter((b) => {
188
+ let C = !1;
189
+ return typeof t.filterBy == "function" ? C = t.filterBy(b.value, b.item, a.value) : t.filterBy === "not_stashed" && a.value ? C = !new Set(Q.value.map((Je) => Je.valueHash)).has(b.valueHash) : Array.isArray(t.filterBy) && t.filterBy.length && (C = C || ne(b.item, t.filterBy, a.value.trim())), C || ne(b, ["text"], a.value.trim());
190
+ }) : e = $.value, e;
191
+ }), y = () => {
192
192
  if (t.multiple) {
193
193
  a.value = "";
194
194
  return;
@@ -196,27 +196,27 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
196
196
  let e;
197
197
  i.value && (e = ot(i.value)), a.value = e?.text || "";
198
198
  }, Pe = async (e) => {
199
- t.multiple ? (o("update:modelValue", t.modelValue.concat(e.value)), t.stash && X(e.item), h()) : (t.stash && Ae(e.item), o("update:modelValue", e.value), await U(), h()), A(), t.multiple || S();
199
+ t.multiple ? (o("update:modelValue", t.modelValue.concat(e.value)), t.stash && X(e.item), y()) : (t.stash && Ae(e.item), o("update:modelValue", e.value), await U(), y()), v(), t.multiple || k();
200
200
  }, P = async (e) => {
201
201
  if (Fe((l) => l.valueHash !== e.valueHash), t.multiple) {
202
202
  const l = { ...M.value };
203
203
  delete l[e.valueHash], o("update:modelValue", Object.values(l));
204
204
  } else
205
- o("update:modelValue", null), await U(), h();
206
- A();
205
+ o("update:modelValue", null), await U(), y();
206
+ v();
207
207
  }, { data: Y } = se({
208
- items: O,
208
+ items: $,
209
209
  key: "valueHash"
210
210
  }), { coherent: Z, status: Ne } = st({
211
211
  modelValue: z(t, "modelValue"),
212
212
  multiple: t.multiple,
213
213
  iteratee: (e) => !!Y.value[at(e)]
214
214
  });
215
- let B = 0;
215
+ let V = 0;
216
216
  ue(
217
217
  () => t.modelValue,
218
218
  async () => {
219
- B++, Z.value || (await q(a.value, !0, t.modelValue), x()), B === 1 && h(), B--;
219
+ V++, Z.value || (await q(a.value, !0, t.modelValue), x()), V === 1 && y(), V--;
220
220
  },
221
221
  {
222
222
  debounce: t.modelValueDebounceTime
@@ -224,22 +224,22 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
224
224
  ), ue(
225
225
  () => [t.dependencies, t.items],
226
226
  async () => {
227
- J.value && (B++, await q(a.value, !0, t.modelValue), B === 1 && (x(), h()), B--);
227
+ J.value && (V++, await q(a.value, !0, t.modelValue), V === 1 && (x(), y()), V--);
228
228
  },
229
229
  {
230
230
  debounce: t.depsDebounceTime
231
231
  }
232
232
  );
233
- const n = f(!1), N = f(!0), We = St(n), V = async () => {
233
+ const n = f(!1), N = f(!0), We = St(n), S = async () => {
234
234
  ve(), N.value = !1, n.value = !0;
235
- }, S = async () => {
235
+ }, k = async () => {
236
236
  n.value = !1, N.value = !0, r.value?.blur(), he();
237
- }, ze = () => n.value ? S() : V(), W = f(!1), Ke = () => {
237
+ }, ze = () => n.value ? k() : S(), W = f(!1), Ke = () => {
238
238
  W.value = !0;
239
239
  }, Ue = () => {
240
240
  W.value = !1, o("inactive");
241
241
  }, _e = (e) => {
242
- e.preventDefault(), o("click", e), !(t.disabled || t.readonly) && (A(), ze());
242
+ e.preventDefault(), o("click", e), !(t.disabled || t.readonly) && (v(), ze());
243
243
  }, Re = ht(
244
244
  (e) => typeof e != "string",
245
245
  JSON.stringify
@@ -255,14 +255,14 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
255
255
  let e = null;
256
256
  t.multiple && (e = []), o("update:modelValue", e);
257
257
  };
258
- return (e, l) => (v(), K(wt, {
258
+ return (e, l) => (h(), K(wt, {
259
259
  ref_key: "outerContainer",
260
- ref: E,
260
+ ref: F,
261
261
  class: ee({
262
262
  "bb-base-select": !0,
263
263
  "bb-base-select--active": W.value,
264
264
  "bb-base-select--shown": n.value,
265
- "bb-base-select--loading": $.value,
265
+ "bb-base-select--loading": H.value,
266
266
  "bb-base-select--disabled": e.disabled,
267
267
  "bb-base-select--errors": e.hasErrors,
268
268
  "bb-base-select--readonly": e.readonly,
@@ -277,57 +277,63 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
277
277
  d(e.$slots, "append-outer", { query: a.value })
278
278
  ]),
279
279
  default: u(() => [
280
- H("span", {
280
+ L("span", {
281
281
  ref_key: "innerContainer",
282
- ref: I,
282
+ ref: D,
283
283
  class: "bb-base-select__inner-wrapper"
284
284
  }, [
285
- L(gt, {
285
+ T(gt, {
286
286
  "append:icon": t["append:icon"],
287
- clearable: e.clearable && !b(lt)(e.modelValue),
287
+ clearable: e.clearable && !g(lt)(e.modelValue),
288
288
  "prepend:icon": t["prepend:icon"],
289
289
  "prevent-focus": !0,
290
290
  "onClick:clear": Ge
291
291
  }, {
292
292
  prepend: u(() => [
293
- d(e.$slots, "prepend", { query: a.value })
293
+ d(e.$slots, "prepend", {
294
+ query: a.value,
295
+ focus: v
296
+ })
294
297
  ]),
295
298
  prefix: u(() => [
296
299
  d(e.$slots, "prefix")
297
300
  ]),
298
301
  append: u(() => [
299
- d(e.$slots, "append", { query: a.value })
302
+ d(e.$slots, "append", {
303
+ query: a.value,
304
+ focus: v
305
+ })
300
306
  ]),
301
307
  suffix: u(() => [
302
308
  d(e.$slots, "suffix")
303
309
  ]),
304
310
  default: u(() => [
305
- L(tt, { tag: "span" }, {
311
+ T(tt, { tag: "span" }, {
306
312
  default: u(() => [
307
- H("span", Ct, [
308
- e.multiple && i.value.length <= e.maxSelectedLabels ? (v(), C(ae, { key: 0 }, [
309
- e.comma ? (v(), K(bt, {
313
+ L("span", Ct, [
314
+ e.multiple && i.value.length <= e.maxSelectedLabels ? (h(), I(ae, { key: 0 }, [
315
+ e.comma ? (h(), K(bt, {
310
316
  key: 0,
311
317
  ref_key: "commaBox",
312
318
  ref: _,
313
319
  options: i.value,
314
320
  "onOption:unselected": P
315
- }, null, 8, ["options"])) : (v(), K(yt, {
321
+ }, null, 8, ["options"])) : (h(), K(yt, {
316
322
  key: 1,
317
323
  ref_key: "chipsBox",
318
324
  ref: R,
319
325
  options: i.value,
320
326
  "onOption:unselected": P
321
327
  }, null, 8, ["options"]))
322
- ], 64)) : e.multiple ? (v(), C("span", It, Ye(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : b(de)("select.multipleMaxReached", i.value.length)), 1)) : te("", !0),
323
- Xe((v(), C("input", {
324
- id: b(j),
325
- key: `${b(ce)}`,
328
+ ], 64)) : e.multiple ? (h(), I("span", It, Ye(e.selectedLabelsFn ? e.selectedLabelsFn(i.value.length) : g(de)("select.multipleMaxReached", i.value.length)), 1)) : te("", !0),
329
+ Xe((h(), I("input", {
330
+ id: g(j),
331
+ key: `${g(ce)}`,
326
332
  ref_key: "input",
327
- ref: F,
333
+ ref: A,
328
334
  "onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p),
329
335
  "aria-autocomplete": "list",
330
- "aria-controls": b(We) ? `${b(j)}_listbox` : void 0,
336
+ "aria-controls": g(We) ? `${g(j)}_listbox` : void 0,
331
337
  "aria-describedby": e.ariaDescribedby,
332
338
  "aria-expanded": n.value,
333
339
  autocomplete: e.autocomplete,
@@ -348,13 +354,13 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
348
354
  onFocus: c(be, ["stop"]),
349
355
  onInput: c(Ve, ["stop"]),
350
356
  onKeydown: [
351
- g(c($e, ["stop"]), ["delete"]),
352
- g(c(Ce, ["stop"]), ["left"]),
353
- g(c(ke, ["stop", "prevent"]), ["down"]),
354
- g(c(De, ["stop", "prevent"]), ["enter"]),
355
- g(c(Oe, ["stop", "prevent"]), ["esc"]),
356
- g(c(Se, ["stop", "prevent"]), ["up"]),
357
- g(c(Ie, ["stop"]), ["right"])
357
+ w(c($e, ["stop"]), ["delete"]),
358
+ w(c(Ce, ["stop"]), ["left"]),
359
+ w(c(ke, ["stop", "prevent"]), ["down"]),
360
+ w(c(De, ["stop", "prevent"]), ["enter"]),
361
+ w(c(Oe, ["stop", "prevent"]), ["esc"]),
362
+ w(c(Se, ["stop", "prevent"]), ["up"]),
363
+ w(c(Ie, ["stop"]), ["right"])
358
364
  ]
359
365
  }, null, 44, Dt)), [
360
366
  [Ze, a.value]
@@ -365,15 +371,15 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
365
371
  }),
366
372
  e.showChevron ? d(e.$slots, "chevron", {
367
373
  key: 0,
368
- loading: !!b(G),
374
+ loading: !!g(G),
369
375
  shown: n.value
370
376
  }, () => [
371
- l[2] || (l[2] = H("svg", {
377
+ l[2] || (l[2] = L("svg", {
372
378
  class: "bb-base-select__chevron",
373
379
  viewBox: "0 0 24 24",
374
380
  xmlns: "http://www.w3.org/2000/svg"
375
381
  }, [
376
- H("path", {
382
+ L("path", {
377
383
  d: "M7.41 8.58L12 13.17l4.59-4.59L18 10l-6 6l-6-6z",
378
384
  fill: "currentColor"
379
385
  })
@@ -383,19 +389,19 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
383
389
  _: 3
384
390
  }, 8, ["append:icon", "clearable", "prepend:icon"])
385
391
  ], 512),
386
- L(Bt, {
392
+ T(Bt, {
387
393
  modelValue: n.value,
388
394
  "onUpdate:modelValue": l[1] || (l[1] = (p) => n.value = p),
389
- anchor: I.value,
395
+ anchor: D.value,
390
396
  offset: 4,
391
397
  "transition-duration": e.transitionDuration
392
398
  }, {
393
399
  default: u(() => [
394
- L(Vt, {
400
+ T(Vt, {
395
401
  ref_key: "optionsContainer",
396
402
  ref: s,
397
403
  compact: e.compact,
398
- loading: $.value,
404
+ loading: H.value,
399
405
  "loading-text": e.loadingText,
400
406
  multiple: e.multiple,
401
407
  "no-data-text": e.noDataText,
@@ -406,21 +412,24 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
406
412
  "onOption:unselected": P
407
413
  }, {
408
414
  "options:prepend": u(() => [
409
- d(e.$slots, "options:prepend")
415
+ d(e.$slots, "options:prepend", { focus: v })
410
416
  ]),
411
417
  loading: u(() => [
412
418
  d(e.$slots, "loading", { query: a.value })
413
419
  ]),
414
420
  "no-data": u(() => [
415
- d(e.$slots, "no-data", { query: a.value })
421
+ d(e.$slots, "no-data", {
422
+ query: a.value,
423
+ focus: v
424
+ })
416
425
  ]),
417
426
  "options:append": u(() => [
418
- d(e.$slots, "options:append")
427
+ d(e.$slots, "options:append", { focus: v })
419
428
  ]),
420
429
  option: u((p) => [
421
430
  d(e.$slots, "option", oe({
422
431
  hasErrors: e.hasErrors,
423
- loading: $.value
432
+ loading: H.value
424
433
  }, p))
425
434
  ]),
426
435
  _: 3
@@ -428,7 +437,7 @@ const Ct = { class: "bb-base-select__input-container" }, It = {
428
437
  ]),
429
438
  _: 3
430
439
  }, 8, ["modelValue", "anchor", "transition-duration"]),
431
- (v(!0), C(ae, null, et(je.value, (p) => (v(), C("input", oe({
440
+ (h(!0), I(ae, null, et(je.value, (p) => (h(), I("input", oe({
432
441
  key: p.value,
433
442
  ref_for: !0
434
443
  }, p), null, 16))), 128))
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
2
  import { head as ce } from "./index290.js";
3
- import { isCssColor as K } from "./index246.js";
4
- import { isNil as x } from "./index284.js";
3
+ import { isCssColor as K } from "./index262.js";
4
+ import { isNil as x } from "./index267.js";
5
5
  import { getAsPercentageBetween as S, getAsPercentage as be, getValueFromPercentageInInterval as T } from "./index139.js";
6
6
  import { snapToStep as ve } from "./index291.js";
7
- import { last as fe } from "./index229.js";
7
+ import { last as fe } from "./index228.js";
8
8
  import { transpose as Q } from "./index292.js";
9
- import { clamp as m } from "./index216.js";
9
+ import { clamp as m } from "./index214.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 "./index246.js";
3
- import { when as x } from "./index261.js";
2
+ import { isCssColor as p } from "./index262.js";
3
+ import { when as x } from "./index278.js";
4
4
  const M = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ F({
5
5
  __name: "BaseSwitch",
6
6
  props: {