bitboss-ui 2.1.87 → 2.1.89

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 (164) hide show
  1. package/dist/components/BaseSelect/BaseSelect.vue.d.ts +8 -0
  2. package/dist/components/BbSelect/BbSelect.vue.d.ts +6 -0
  3. package/dist/components/ListBox.vue.d.ts +1 -0
  4. package/dist/index.css +1 -1
  5. package/dist/index107.js +8 -8
  6. package/dist/index108.js +5 -3
  7. package/dist/index114.js +1 -1
  8. package/dist/index120.js +1 -1
  9. package/dist/index122.js +78 -76
  10. package/dist/index13.js +2 -2
  11. package/dist/index130.js +1 -1
  12. package/dist/index132.js +4 -4
  13. package/dist/index134.js +1 -1
  14. package/dist/index136.js +2 -2
  15. package/dist/index139.js +1 -1
  16. package/dist/index142.js +1 -1
  17. package/dist/index143.js +2 -2
  18. package/dist/index15.js +4 -4
  19. package/dist/index17.js +3 -3
  20. package/dist/index19.js +7 -7
  21. package/dist/index215.js +2 -2
  22. package/dist/index216.js +2 -2
  23. package/dist/index217.js +5 -2
  24. package/dist/index218.js +8 -2
  25. package/dist/index219.js +2 -3
  26. package/dist/index220.js +2 -5
  27. package/dist/index221.js +3 -8
  28. package/dist/index222.js +1 -1
  29. package/dist/index223.js +1 -1
  30. package/dist/index224.js +1 -1
  31. package/dist/index225.js +1 -1
  32. package/dist/index23.js +7 -7
  33. package/dist/index230.js +6 -6
  34. package/dist/index231.js +1 -1
  35. package/dist/index234.js +1 -1
  36. package/dist/index235.js +1 -1
  37. package/dist/index236.js +85 -12
  38. package/dist/index238.js +29 -3
  39. package/dist/index239.js +17 -4
  40. package/dist/index240.js +50 -9
  41. package/dist/index241.js +14 -2
  42. package/dist/index242.js +12 -4
  43. package/dist/index243.js +16 -86
  44. package/dist/index244.js +4 -0
  45. package/dist/index245.js +2 -29
  46. package/dist/index246.js +6 -16
  47. package/dist/index247.js +7 -51
  48. package/dist/index248.js +32 -14
  49. package/dist/index249.js +28 -12
  50. package/dist/index25.js +2 -2
  51. package/dist/index251.js +4 -9
  52. package/dist/index252.js +18 -133
  53. package/dist/index253.js +203 -0
  54. package/dist/index255.js +131 -19
  55. package/dist/index257.js +4 -3
  56. package/dist/index258.js +13 -9
  57. package/dist/index259.js +4 -106
  58. package/dist/index260.js +25 -0
  59. package/dist/index261.js +3 -100
  60. package/dist/index262.js +5 -0
  61. package/dist/index263.js +11 -3
  62. package/dist/index264.js +9 -2
  63. package/dist/index265.js +13 -5
  64. package/dist/index266.js +6 -5
  65. package/dist/index267.js +16 -5
  66. package/dist/index268.js +5 -20
  67. package/dist/index269.js +5 -2
  68. package/dist/index27.js +1 -1
  69. package/dist/index270.js +5 -2
  70. package/dist/index271.js +2 -7
  71. package/dist/index272.js +3 -7
  72. package/dist/index273.js +10 -67
  73. package/dist/index274.js +2 -32
  74. package/dist/index275.js +188 -28
  75. package/dist/index276.js +5 -0
  76. package/dist/index277.js +67 -7
  77. package/dist/index278.js +17 -8
  78. package/dist/index279.js +12 -9
  79. package/dist/index280.js +104 -51
  80. package/dist/index282.js +100 -5
  81. package/dist/index284.js +229 -12
  82. package/dist/index285.js +7 -225
  83. package/dist/index286.js +53 -6
  84. package/dist/index287.js +5 -16
  85. package/dist/index288.js +34 -8
  86. package/dist/index289.js +9 -4
  87. package/dist/index29.js +3 -3
  88. package/dist/index290.js +7 -201
  89. package/dist/index291.js +11 -0
  90. package/dist/index292.js +23 -34
  91. package/dist/index293.js +8 -3
  92. package/dist/index295.js +1 -1
  93. package/dist/index31.js +2 -2
  94. package/dist/index310.js +2 -2
  95. package/dist/index311.js +3 -4
  96. package/dist/index312.js +3 -5
  97. package/dist/index313.js +1 -1
  98. package/dist/index314.js +1 -1
  99. package/dist/index315.js +5 -3
  100. package/dist/index316.js +4 -3
  101. package/dist/index317.js +5 -3
  102. package/dist/index318.js +719 -125
  103. package/dist/index319.js +366 -2
  104. package/dist/index320.js +56 -14
  105. package/dist/index321.js +125 -2
  106. package/dist/index322.js +2 -19
  107. package/dist/index323.js +15 -2
  108. package/dist/index324.js +2 -2
  109. package/dist/index325.js +18 -5
  110. package/dist/index326.js +2 -719
  111. package/dist/index327.js +2 -366
  112. package/dist/index328.js +3 -57
  113. package/dist/index329.js +3 -2
  114. package/dist/index33.js +7 -7
  115. package/dist/index330.js +2 -4
  116. package/dist/index331.js +1 -1
  117. package/dist/index332.js +4 -3
  118. package/dist/index333.js +6 -5
  119. package/dist/index334.js +6 -34
  120. package/dist/index335.js +7 -6
  121. package/dist/index336.js +17 -127
  122. package/dist/index337.js +7 -396
  123. package/dist/index338.js +14 -6
  124. package/dist/index339.js +5 -7
  125. package/dist/index340.js +57 -18
  126. package/dist/index341.js +58 -9
  127. package/dist/index342.js +90 -12
  128. package/dist/index343.js +8 -5
  129. package/dist/index344.js +6 -58
  130. package/dist/index345.js +7 -57
  131. package/dist/index346.js +1 -1
  132. package/dist/index347.js +31 -130
  133. package/dist/index348.js +5 -21
  134. package/dist/index349.js +131 -0
  135. package/dist/index35.js +3 -3
  136. package/dist/index350.js +395 -44
  137. package/dist/index351.js +46 -7
  138. package/dist/index352.js +22 -6
  139. package/dist/index354.js +130 -89
  140. package/dist/index37.js +56 -54
  141. package/dist/index39.js +6 -6
  142. package/dist/index41.js +2 -2
  143. package/dist/index43.js +7 -7
  144. package/dist/index45.js +5 -5
  145. package/dist/index49.js +2 -2
  146. package/dist/index55.js +1 -1
  147. package/dist/index57.js +2 -2
  148. package/dist/index61.js +4 -4
  149. package/dist/index80.js +6 -6
  150. package/dist/index84.js +2 -2
  151. package/dist/index86.js +2 -2
  152. package/dist/index88.js +1 -1
  153. package/dist/index91.js +2 -2
  154. package/dist/index93.js +1 -1
  155. package/dist/index95.js +4 -4
  156. package/dist/index97.js +1 -1
  157. package/package.json +1 -1
  158. package/dist/index237.js +0 -15
  159. package/dist/index250.js +0 -18
  160. package/dist/index254.js +0 -25
  161. package/dist/index256.js +0 -190
  162. package/dist/index281.js +0 -13
  163. package/dist/index283.js +0 -20
  164. package/dist/index353.js +0 -10
package/dist/index341.js CHANGED
@@ -1,11 +1,60 @@
1
- import n from "./index222.js";
2
- function Y(r, t) {
3
- return t ? r.format("YYYY-MM-DD") : r.toISOString();
4
- }
5
- function e(r, t) {
6
- return t ? n(r, "YYYY-MM-DD") : n(r);
7
- }
1
+ const e = {
2
+ common: {
3
+ closeLabel: "Close",
4
+ loadingText: "Loading...",
5
+ noDataText: "No data to display",
6
+ clearLabel: "Reset selected value"
7
+ },
8
+ colorInput: {
9
+ paletteLabel: "Select a color from the palette",
10
+ mainCanvasDesc: "Use the arrows to select a color",
11
+ mainCanvasSelectedColor: "Selected color: {0}",
12
+ hueCanvasDesc: "Use the arrows to select a hue",
13
+ hueCanvasSelectedHue: "Selected hue: {0}"
14
+ },
15
+ datePicker: {
16
+ monthLabel: "Select a month",
17
+ yearLabel: "Select a year",
18
+ previousMonthLabel: "Go to previous month",
19
+ nextMonthLabel: "Go to next month"
20
+ },
21
+ baseDatePickerInput: {
22
+ dateFormat: "Date format",
23
+ dateFormatSingle: "DD/MM/YYYY",
24
+ dateFormatRange: "DD/MM/YYYY - DD/MM/YYYY",
25
+ emptyRange: "Select a range",
26
+ changeSelectionRange: "Change selection, from {0} to {1}",
27
+ changeSelection: "Change selection, {0}",
28
+ emptySelection: "Select a date"
29
+ },
30
+ dialog: {
31
+ closeLabel: "Close dialog"
32
+ },
33
+ dropdownButton: {
34
+ open: "Open menu",
35
+ close: "Close menu"
36
+ },
37
+ rating: {
38
+ singleStar: "{0} out of {1}",
39
+ multipleStars: "{0} out of {1}"
40
+ },
41
+ select: {
42
+ multipleMaxReached: "{0} items selected"
43
+ },
44
+ chip: {
45
+ clearLabel: "Remove"
46
+ },
47
+ pagination: {
48
+ previous: "Previous",
49
+ next: "Next"
50
+ },
51
+ table: {
52
+ noDataText: "No data to display",
53
+ selectAllLabel: "Select all items on this page",
54
+ selectText: "Select an item",
55
+ select: "Select"
56
+ }
57
+ };
8
58
  export {
9
- e as toInnerValue,
10
- Y as toOuterValue
59
+ e as default
11
60
  };
package/dist/index342.js CHANGED
@@ -1,17 +1,95 @@
1
- import f from "./index222.js";
2
- import { toOuterValue as i } from "./index341.js";
3
- function Y(m, e) {
4
- let r = !0;
5
- if (e.min) {
6
- const a = f(e.min, "YYYY-MM-DD");
7
- r &&= m.isSameOrAfter(a);
1
+ import { commonjsGlobal as y } from "./index333.js";
2
+ var p, _;
3
+ function Z() {
4
+ if (_) return p;
5
+ _ = 1;
6
+ var x = "Expected a function", I = NaN, W = "[object Symbol]", C = /^\s+|\s+$/g, M = /^[-+]0x[0-9a-f]+$/i, N = /^0b[01]+$/i, R = /^0o[0-7]+$/i, $ = parseInt, q = typeof y == "object" && y && y.Object === Object && y, A = typeof self == "object" && self && self.Object === Object && self, B = q || A || Function("return this")(), F = Object.prototype, G = F.toString, P = Math.max, D = Math.min, h = function() {
7
+ return B.Date.now();
8
+ };
9
+ function H(e, r, n) {
10
+ var f, a, g, c, i, u, s = 0, S = !1, d = !1, j = !0;
11
+ if (typeof e != "function")
12
+ throw new TypeError(x);
13
+ r = O(r) || 0, m(n) && (S = !!n.leading, d = "maxWait" in n, g = d ? P(O(n.maxWait) || 0, r) : g, j = "trailing" in n ? !!n.trailing : j);
14
+ function v(t) {
15
+ var o = f, l = a;
16
+ return f = a = void 0, s = t, c = e.apply(l, o), c;
17
+ }
18
+ function J(t) {
19
+ return s = t, i = setTimeout(b, r), S ? v(t) : c;
20
+ }
21
+ function K(t) {
22
+ var o = t - u, l = t - s, L = r - o;
23
+ return d ? D(L, g - l) : L;
24
+ }
25
+ function E(t) {
26
+ var o = t - u, l = t - s;
27
+ return u === void 0 || o >= r || o < 0 || d && l >= g;
28
+ }
29
+ function b() {
30
+ var t = h();
31
+ if (E(t))
32
+ return k(t);
33
+ i = setTimeout(b, K(t));
34
+ }
35
+ function k(t) {
36
+ return i = void 0, j && f ? v(t) : (f = a = void 0, c);
37
+ }
38
+ function Q() {
39
+ i !== void 0 && clearTimeout(i), s = 0, f = u = a = i = void 0;
40
+ }
41
+ function V() {
42
+ return i === void 0 ? c : k(h());
43
+ }
44
+ function T() {
45
+ var t = h(), o = E(t);
46
+ if (f = arguments, a = this, u = t, o) {
47
+ if (i === void 0)
48
+ return J(u);
49
+ if (d)
50
+ return i = setTimeout(b, r), v(u);
51
+ }
52
+ return i === void 0 && (i = setTimeout(b, r)), c;
53
+ }
54
+ return T.cancel = Q, T.flush = V, T;
8
55
  }
9
- if (e.max) {
10
- const a = f(e.max, "YYYY-MM-DD");
11
- r &&= m.isSameOrBefore(a);
56
+ function U(e, r, n) {
57
+ var f = !0, a = !0;
58
+ if (typeof e != "function")
59
+ throw new TypeError(x);
60
+ return m(n) && (f = "leading" in n ? !!n.leading : f, a = "trailing" in n ? !!n.trailing : a), H(e, r, {
61
+ leading: f,
62
+ maxWait: r,
63
+ trailing: a
64
+ });
12
65
  }
13
- return typeof e.selectable == "function" && (r &&= e.selectable(i(m, e.floating))), !r;
66
+ function m(e) {
67
+ var r = typeof e;
68
+ return !!e && (r == "object" || r == "function");
69
+ }
70
+ function X(e) {
71
+ return !!e && typeof e == "object";
72
+ }
73
+ function z(e) {
74
+ return typeof e == "symbol" || X(e) && G.call(e) == W;
75
+ }
76
+ function O(e) {
77
+ if (typeof e == "number")
78
+ return e;
79
+ if (z(e))
80
+ return I;
81
+ if (m(e)) {
82
+ var r = typeof e.valueOf == "function" ? e.valueOf() : e;
83
+ e = m(r) ? r + "" : r;
84
+ }
85
+ if (typeof e != "string")
86
+ return e === 0 ? e : +e;
87
+ e = e.replace(C, "");
88
+ var n = N.test(e);
89
+ return n || R.test(e) ? $(e.slice(2), n ? 2 : 8) : M.test(e) ? I : +e;
90
+ }
91
+ return p = U, p;
14
92
  }
15
93
  export {
16
- Y as isDateDisabled
94
+ Z as __require
17
95
  };
package/dist/index343.js CHANGED
@@ -1,7 +1,10 @@
1
- import o from "./index348.js";
2
- /* empty css */
3
- import t from "./index213.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
1
+ function i(t) {
2
+ if (t = t.replace(/^#/, ""), !/^([A-Fa-f0-9]{3}|[A-Fa-f0-9]{6})$/.test(t))
3
+ throw new Error("Invalid hex code");
4
+ t.length === 3 && (t = t.split("").map((n) => n + n).join(""));
5
+ const r = parseInt(t.slice(0, 2), 16), s = parseInt(t.slice(2, 4), 16), o = parseInt(t.slice(4, 6), 16);
6
+ return [r, s, o];
7
+ }
5
8
  export {
6
- m as default
9
+ i as hexToRgb
7
10
  };
package/dist/index344.js CHANGED
@@ -1,60 +1,8 @@
1
- const e = {
2
- common: {
3
- closeLabel: "Chiudi",
4
- loadingText: "Caricamento...",
5
- noDataText: "Nessun elemento da visualizzare",
6
- clearLabel: "Reset valore selezionato"
7
- },
8
- colorInput: {
9
- paletteLabel: "Seleziona un colore dalla tavolozza",
10
- mainCanvasDesc: "Usa le frecce per selezionare un colore",
11
- mainCanvasSelectedColor: "Colore selezionato: {0}",
12
- hueCanvasDesc: "Usa le frecce per selezionare una tonalità",
13
- hueCanvasSelectedHue: "Tonalità selezionata: {0}"
14
- },
15
- datePicker: {
16
- monthLabel: "Seleziona un mese",
17
- yearLabel: "Seleziona un anno",
18
- previousMonthLabel: "Vai indietro di un mese",
19
- nextMonthLabel: "Vai avanti di un mese"
20
- },
21
- baseDatePickerInput: {
22
- dateFormat: "Formato della data",
23
- dateFormatSingle: "GG/MM/AAAA",
24
- dateFormatRange: "GG/MM/AAAA - GG/MM/AAAA",
25
- emptyRange: "Seleziona un range",
26
- changeSelectionRange: "Cambia selezione, da {0} a {1}",
27
- changeSelection: "Cambia selezione, {0}",
28
- emptySelection: "Seleziona una data"
29
- },
30
- dialog: {
31
- closeLabel: "Chiudi modale"
32
- },
33
- dropdownButton: {
34
- open: "Apri menu",
35
- close: "Chiudi menu"
36
- },
37
- rating: {
38
- singleStar: "{0} su {1}",
39
- multipleStars: "{0} su {1}"
40
- },
41
- select: {
42
- multipleMaxReached: "{0} elementi selezionati"
43
- },
44
- chip: {
45
- clearLabel: "Elimina"
46
- },
47
- pagination: {
48
- previous: "Precedente",
49
- next: "Successivo"
50
- },
51
- table: {
52
- noDataText: "Non ci sono elementi da visualizzare",
53
- selectAllLabel: "Seleziona tutti gli elementi di questa pagina",
54
- selectText: "Seleziona un elemento",
55
- select: "Seleziona"
56
- }
57
- };
1
+ function l(c, f, r) {
2
+ const t = c / 255, n = f / 255, o = r / 255, i = Math.max(t, n, o), a = Math.min(t, n, o), s = i - a;
3
+ let e = 0;
4
+ return s !== 0 && (i === t ? e = (n - o) / s % 6 : i === n ? e = (o - t) / s + 2 : i === o && (e = (t - n) / s + 4), e *= 60, e < 0 && (e += 360)), e;
5
+ }
58
6
  export {
59
- e as default
7
+ l as getHueFromRGB
60
8
  };
package/dist/index345.js CHANGED
@@ -1,60 +1,10 @@
1
- const e = {
2
- common: {
3
- closeLabel: "Close",
4
- loadingText: "Loading...",
5
- noDataText: "No data to display",
6
- clearLabel: "Reset selected value"
7
- },
8
- colorInput: {
9
- paletteLabel: "Select a color from the palette",
10
- mainCanvasDesc: "Use the arrows to select a color",
11
- mainCanvasSelectedColor: "Selected color: {0}",
12
- hueCanvasDesc: "Use the arrows to select a hue",
13
- hueCanvasSelectedHue: "Selected hue: {0}"
14
- },
15
- datePicker: {
16
- monthLabel: "Select a month",
17
- yearLabel: "Select a year",
18
- previousMonthLabel: "Go to previous month",
19
- nextMonthLabel: "Go to next month"
20
- },
21
- baseDatePickerInput: {
22
- dateFormat: "Date format",
23
- dateFormatSingle: "DD/MM/YYYY",
24
- dateFormatRange: "DD/MM/YYYY - DD/MM/YYYY",
25
- emptyRange: "Select a range",
26
- changeSelectionRange: "Change selection, from {0} to {1}",
27
- changeSelection: "Change selection, {0}",
28
- emptySelection: "Select a date"
29
- },
30
- dialog: {
31
- closeLabel: "Close dialog"
32
- },
33
- dropdownButton: {
34
- open: "Open menu",
35
- close: "Close menu"
36
- },
37
- rating: {
38
- singleStar: "{0} out of {1}",
39
- multipleStars: "{0} out of {1}"
40
- },
41
- select: {
42
- multipleMaxReached: "{0} items selected"
43
- },
44
- chip: {
45
- clearLabel: "Remove"
46
- },
47
- pagination: {
48
- previous: "Previous",
49
- next: "Next"
50
- },
51
- table: {
52
- noDataText: "No data to display",
53
- selectAllLabel: "Select all items on this page",
54
- selectText: "Select an item",
55
- select: "Select"
56
- }
1
+ const i = (r, s, a) => {
2
+ const t = a / 100, c = s * Math.min(t, 1 - t) / 100, n = (h) => {
3
+ const o = (h + r / 30) % 12, e = t - c * Math.max(Math.min(o - 3, 9 - o, 1), -1);
4
+ return Math.round(255 * e).toString(16).padStart(2, "0");
5
+ };
6
+ return `#${n(0)}${n(8)}${n(4)}`;
57
7
  };
58
8
  export {
59
- e as default
9
+ i as hslToHex
60
10
  };
package/dist/index346.js CHANGED
@@ -1,4 +1,4 @@
1
- import { commonjsGlobal as r } from "./index325.js";
1
+ import { commonjsGlobal as r } from "./index333.js";
2
2
  var o, c;
3
3
  function C() {
4
4
  if (c) return o;
package/dist/index347.js CHANGED
@@ -1,136 +1,37 @@
1
- function c() {
2
- return typeof window < "u";
3
- }
4
- function u(t) {
5
- return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
6
- }
7
- function i(t) {
8
- var e;
9
- return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
10
- }
11
- function N(t) {
12
- var e;
13
- return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
14
- }
15
- function p(t) {
16
- return c() ? t instanceof Node || t instanceof i(t).Node : !1;
17
- }
18
- function m(t) {
19
- return c() ? t instanceof Element || t instanceof i(t).Element : !1;
20
- }
21
- function w(t) {
22
- return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
23
- }
24
- function f(t) {
25
- return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
26
- }
27
- const E = /* @__PURE__ */ new Set(["inline", "contents"]);
28
- function y(t) {
29
- const {
30
- overflow: e,
31
- overflowX: n,
32
- overflowY: o,
33
- display: r
34
- } = S(t);
35
- return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
36
- }
37
- const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
38
- function A(t) {
39
- return T.has(u(t));
40
- }
41
- const v = [":popover-open", ":modal"];
42
- function L(t) {
43
- return v.some((e) => {
1
+ import { ref as c, computed as a } from "vue";
2
+ function w(o) {
3
+ const e = c(!1), r = c(!1);
4
+ let n = null;
5
+ const s = () => {
6
+ if (e.value)
7
+ throw new Error("Operation was cancelled");
8
+ }, u = async (...i) => {
9
+ r.value && t(), e.value = !1, r.value = !0, n = new AbortController();
10
+ const f = {
11
+ signal: n.signal,
12
+ isCancelled: a(() => e.value),
13
+ checkCancelled: s
14
+ };
44
15
  try {
45
- return t.matches(e);
46
- } catch {
47
- return !1;
16
+ const l = await o(f, ...i);
17
+ if (!e.value)
18
+ return l;
19
+ throw new Error("Operation was cancelled");
20
+ } catch (l) {
21
+ throw l instanceof Error && (l.message === "Operation was cancelled" || l.name === "AbortError"), l;
22
+ } finally {
23
+ r.value = !1, n = null;
48
24
  }
49
- });
50
- }
51
- const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
52
- function V(t) {
53
- const e = O(), n = m(t) ? S(t) : t;
54
- return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
55
- }
56
- function B(t) {
57
- let e = s(t);
58
- for (; w(e) && !h(e); ) {
59
- if (V(e))
60
- return e;
61
- if (L(e))
62
- return null;
63
- e = s(e);
64
- }
65
- return null;
66
- }
67
- function O() {
68
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
69
- }
70
- const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
71
- function h(t) {
72
- return R.has(u(t));
73
- }
74
- function S(t) {
75
- return i(t).getComputedStyle(t);
76
- }
77
- function F(t) {
78
- return m(t) ? {
79
- scrollLeft: t.scrollLeft,
80
- scrollTop: t.scrollTop
81
- } : {
82
- scrollLeft: t.scrollX,
83
- scrollTop: t.scrollY
25
+ }, t = () => {
26
+ n && !e.value && (e.value = !0, n.abort());
27
+ };
28
+ return {
29
+ execute: u,
30
+ cancel: t,
31
+ isCancelled: a(() => e.value),
32
+ isExecuting: a(() => r.value)
84
33
  };
85
- }
86
- function s(t) {
87
- if (u(t) === "html")
88
- return t;
89
- const e = (
90
- // Step into the shadow DOM of the parent of a slotted node.
91
- t.assignedSlot || // DOM Element detected.
92
- t.parentNode || // ShadowRoot detected.
93
- f(t) && t.host || // Fallback.
94
- N(t)
95
- );
96
- return f(e) ? e.host : e;
97
- }
98
- function b(t) {
99
- const e = s(t);
100
- return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
101
- }
102
- function d(t, e, n) {
103
- var o;
104
- e === void 0 && (e = []), n === void 0 && (n = !0);
105
- const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
106
- if (g) {
107
- const a = _(l);
108
- return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
109
- }
110
- return e.concat(r, d(r, [], n));
111
- }
112
- function _(t) {
113
- return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
114
34
  }
115
35
  export {
116
- S as getComputedStyle,
117
- B as getContainingBlock,
118
- N as getDocumentElement,
119
- _ as getFrameElement,
120
- b as getNearestOverflowAncestor,
121
- u as getNodeName,
122
- F as getNodeScroll,
123
- d as getOverflowAncestors,
124
- s as getParentNode,
125
- i as getWindow,
126
- V as isContainingBlock,
127
- m as isElement,
128
- w as isHTMLElement,
129
- h as isLastTraversableNode,
130
- p as isNode,
131
- y as isOverflowElement,
132
- f as isShadowRoot,
133
- A as isTableElement,
134
- L as isTopLayer,
135
- O as isWebKit
36
+ w as useCancelableFunction
136
37
  };
package/dist/index348.js CHANGED
@@ -1,24 +1,8 @@
1
- import { defineComponent as a, computed as i, createBlock as r, openBlock as d, Transition as l, normalizeStyle as s, withCtx as u, renderSlot as p } from "vue";
2
- const f = /* @__PURE__ */ a({
3
- __name: "Slide",
4
- props: {
5
- direction: { default: "right" },
6
- duration: { default: 500 },
7
- gap: { default: 0 }
8
- },
9
- setup(t) {
10
- const n = t, o = i(() => `bb-slide-in-${n.direction}`);
11
- return (e, m) => (d(), r(l, {
12
- name: o.value,
13
- style: s({ "--transition-duration": `${e.duration}ms`, "--gap": `${e.gap}px` })
14
- }, {
15
- default: u(() => [
16
- p(e.$slots, "default", {}, void 0, !0)
17
- ]),
18
- _: 3
19
- }, 8, ["name", "style"]));
20
- }
1
+ const o = (e, t = 50) => new Promise((r) => {
2
+ const n = setInterval(() => {
3
+ e() && (clearInterval(n), r());
4
+ }, t);
21
5
  });
22
6
  export {
23
- f as default
7
+ o as waitFor
24
8
  };
@@ -0,0 +1,131 @@
1
+ import { arrow as j, computePosition as A } from "./index350.js";
2
+ import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index350.js";
3
+ import { isNode as B, getNodeName as F } from "./index354.js";
4
+ import { getOverflowAncestors as le } from "./index354.js";
5
+ import { computed as r, ref as c, shallowRef as I, watch as x, getCurrentScope as U, onScopeDispose as k, shallowReadonly as o, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function V(e) {
10
+ if (z(e)) {
11
+ const l = e.$el;
12
+ return B(l) && F(l) === "#comment" ? null : l;
13
+ }
14
+ return e;
15
+ }
16
+ function i(e) {
17
+ return typeof e == "function" ? e() : q(e);
18
+ }
19
+ function K(e) {
20
+ return {
21
+ name: "arrow",
22
+ options: e,
23
+ fn(l) {
24
+ const t = V(i(e.element));
25
+ return t == null ? {} : j({
26
+ element: t,
27
+ padding: e.padding
28
+ }).fn(l);
29
+ }
30
+ };
31
+ }
32
+ function M(e) {
33
+ return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
34
+ }
35
+ function C(e, l) {
36
+ const t = M(e);
37
+ return Math.round(l * t) / t;
38
+ }
39
+ function L(e, l, t) {
40
+ t === void 0 && (t = {});
41
+ const D = t.whileElementsMounted, s = r(() => {
42
+ var n;
43
+ return (n = i(t.open)) != null ? n : !0;
44
+ }), O = r(() => i(t.middleware)), p = r(() => {
45
+ var n;
46
+ return (n = i(t.placement)) != null ? n : "bottom";
47
+ }), w = r(() => {
48
+ var n;
49
+ return (n = i(t.strategy)) != null ? n : "absolute";
50
+ }), S = r(() => {
51
+ var n;
52
+ return (n = i(t.transform)) != null ? n : !0;
53
+ }), f = r(() => V(e.value)), u = r(() => V(l.value)), y = c(0), h = c(0), m = c(w.value), P = c(p.value), E = I({}), g = c(!1), _ = r(() => {
54
+ const n = {
55
+ position: m.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const a = C(u.value, y.value), b = C(u.value, h.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + a + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: m.value,
70
+ left: a + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let d;
75
+ function v() {
76
+ if (f.value == null || u.value == null)
77
+ return;
78
+ const n = s.value;
79
+ A(f.value, u.value, {
80
+ middleware: O.value,
81
+ placement: p.value,
82
+ strategy: w.value
83
+ }).then((a) => {
84
+ y.value = a.x, h.value = a.y, m.value = a.strategy, P.value = a.placement, E.value = a.middlewareData, g.value = n !== !1;
85
+ });
86
+ }
87
+ function R() {
88
+ typeof d == "function" && (d(), d = void 0);
89
+ }
90
+ function N() {
91
+ if (R(), D === void 0) {
92
+ v();
93
+ return;
94
+ }
95
+ if (f.value != null && u.value != null) {
96
+ d = D(f.value, u.value, v);
97
+ return;
98
+ }
99
+ }
100
+ function $() {
101
+ s.value || (g.value = !1);
102
+ }
103
+ return x([O, p, w, s], v, {
104
+ flush: "sync"
105
+ }), x([f, u], N, {
106
+ flush: "sync"
107
+ }), x(s, $, {
108
+ flush: "sync"
109
+ }), U() && k(R), {
110
+ x: o(y),
111
+ y: o(h),
112
+ strategy: o(m),
113
+ placement: o(P),
114
+ middlewareData: o(E),
115
+ isPositioned: o(g),
116
+ floatingStyles: _,
117
+ update: v
118
+ };
119
+ }
120
+ export {
121
+ K as arrow,
122
+ W as autoUpdate,
123
+ A as computePosition,
124
+ X as flip,
125
+ le as getOverflowAncestors,
126
+ Y as hide,
127
+ Z as offset,
128
+ ee as platform,
129
+ ne as shift,
130
+ L as useFloating
131
+ };
package/dist/index35.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as I, ref as v, computed as f, createElementBlock as l, openBlock as r, mergeProps as h, createElementVNode as i, renderSlot as g, Fragment as V, renderList as M, normalizeClass as D, toDisplayString as F, unref as y } from "vue";
2
- import { booleanishToBoolean as T } from "./index218.js";
3
- import { identity as $ } from "./index264.js";
4
- import { isCssColor as k } from "./index217.js";
2
+ import { booleanishToBoolean as T } from "./index220.js";
3
+ import { identity as $ } from "./index271.js";
4
+ import { isCssColor as k } from "./index219.js";
5
5
  import { isNotNil as q } from "./index144.js";
6
6
  import { useLocale as x } from "./index235.js";
7
7
  const H = { class: "bb-base-rating__inner-container" }, S = { class: "bb-base-rating__label-text sr-only" }, N = ["id", "aria-describedby", "autofocus", "checked", "disabled", "name", "required", "value"], j = ["height", "width"], W = /* @__PURE__ */ I({