bitboss-ui 2.0.0 → 2.0.1

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 (166) hide show
  1. package/dist/index105.js +4 -4
  2. package/dist/index113.js +1 -1
  3. package/dist/index115.js +4 -4
  4. package/dist/index117.js +1 -1
  5. package/dist/index12.js +1 -1
  6. package/dist/index121.js +1 -1
  7. package/dist/index122.js +1 -1
  8. package/dist/index123.js +1 -1
  9. package/dist/index14.js +3 -3
  10. package/dist/index16.js +2 -2
  11. package/dist/index18.js +8 -8
  12. package/dist/index199.js +3 -3
  13. package/dist/index199.js.map +1 -1
  14. package/dist/index20.js +12 -12
  15. package/dist/index200.js +35 -3
  16. package/dist/index200.js.map +1 -1
  17. package/dist/index201.js +6 -35
  18. package/dist/index201.js.map +1 -1
  19. package/dist/index202.js +7 -6
  20. package/dist/index202.js.map +1 -1
  21. package/dist/index203.js +5 -7
  22. package/dist/index203.js.map +1 -1
  23. package/dist/index204.js +126 -5
  24. package/dist/index204.js.map +1 -1
  25. package/dist/index205.js +281 -2
  26. package/dist/index205.js.map +1 -1
  27. package/dist/index206.js +123 -4
  28. package/dist/index206.js.map +1 -1
  29. package/dist/index207.js +19 -2
  30. package/dist/index207.js.map +1 -1
  31. package/dist/index208.js +2 -281
  32. package/dist/index208.js.map +1 -1
  33. package/dist/index209.js +2 -16
  34. package/dist/index209.js.map +1 -1
  35. package/dist/index210.js +172 -14
  36. package/dist/index210.js.map +1 -1
  37. package/dist/index211.js +42 -19
  38. package/dist/index211.js.map +1 -1
  39. package/dist/index213.js +13 -27
  40. package/dist/index213.js.map +1 -1
  41. package/dist/index214.js +369 -8
  42. package/dist/index214.js.map +1 -1
  43. package/dist/index215.js +2 -2
  44. package/dist/index215.js.map +1 -1
  45. package/dist/index216.js +4 -158
  46. package/dist/index216.js.map +1 -1
  47. package/dist/index217.js +2 -84
  48. package/dist/index217.js.map +1 -1
  49. package/dist/index218.js +161 -0
  50. package/dist/index218.js.map +1 -0
  51. package/dist/index219.js +83 -125
  52. package/dist/index219.js.map +1 -1
  53. package/dist/index22.js +5 -5
  54. package/dist/index221.js +3 -2
  55. package/dist/index221.js.map +1 -1
  56. package/dist/index222.js +14 -172
  57. package/dist/index222.js.map +1 -1
  58. package/dist/index223.js +16 -42
  59. package/dist/index223.js.map +1 -1
  60. package/dist/{index212.js → index224.js} +3 -3
  61. package/dist/{index212.js.map → index224.js.map} +1 -1
  62. package/dist/index225.js +27 -13
  63. package/dist/index225.js.map +1 -1
  64. package/dist/index226.js +8 -369
  65. package/dist/index226.js.map +1 -1
  66. package/dist/index227.js +1 -1
  67. package/dist/index234.js +1 -1
  68. package/dist/index237.js +7 -222
  69. package/dist/index237.js.map +1 -1
  70. package/dist/index24.js +1 -1
  71. package/dist/index240.js +6 -431
  72. package/dist/index240.js.map +1 -1
  73. package/dist/index241.js +16 -89
  74. package/dist/index241.js.map +1 -1
  75. package/dist/index242.js +431 -6
  76. package/dist/index242.js.map +1 -1
  77. package/dist/index243.js +89 -16
  78. package/dist/index243.js.map +1 -1
  79. package/dist/index244.js +5 -4
  80. package/dist/index244.js.map +1 -1
  81. package/dist/index245.js +2 -200
  82. package/dist/index245.js.map +1 -1
  83. package/dist/index246.js +9 -6
  84. package/dist/index246.js.map +1 -1
  85. package/dist/index247.js +69 -2
  86. package/dist/index247.js.map +1 -1
  87. package/dist/index248.js +200 -2
  88. package/dist/index248.js.map +1 -1
  89. package/dist/index249.js +4 -2
  90. package/dist/index249.js.map +1 -1
  91. package/dist/index250.js +6 -2
  92. package/dist/index250.js.map +1 -1
  93. package/dist/index251.js +2 -2
  94. package/dist/index252.js +2 -2
  95. package/dist/index253.js +2 -3
  96. package/dist/index253.js.map +1 -1
  97. package/dist/index254.js +126 -12
  98. package/dist/index254.js.map +1 -1
  99. package/dist/index255.js +3 -9
  100. package/dist/index255.js.map +1 -1
  101. package/dist/index257.js +7 -17
  102. package/dist/index257.js.map +1 -1
  103. package/dist/index258.js +3 -9
  104. package/dist/index258.js.map +1 -1
  105. package/dist/index259.js +12 -2
  106. package/dist/index259.js.map +1 -1
  107. package/dist/index26.js +2 -2
  108. package/dist/index260.js +7 -124
  109. package/dist/index260.js.map +1 -1
  110. package/dist/index261.js +17 -3
  111. package/dist/index261.js.map +1 -1
  112. package/dist/index262.js +439 -0
  113. package/dist/index262.js.map +1 -0
  114. package/dist/index263.js +126 -6
  115. package/dist/index263.js.map +1 -1
  116. package/dist/index264.js +224 -2
  117. package/dist/index264.js.map +1 -1
  118. package/dist/index265.js +2 -69
  119. package/dist/index265.js.map +1 -1
  120. package/dist/index266.js +2 -436
  121. package/dist/index266.js.map +1 -1
  122. package/dist/index267.js +2 -127
  123. package/dist/index267.js.map +1 -1
  124. package/dist/index268.js +2 -3
  125. package/dist/index268.js.map +1 -1
  126. package/dist/index269.js +1 -1
  127. package/dist/index270.js +3 -211
  128. package/dist/index270.js.map +1 -1
  129. package/dist/index271.js +214 -0
  130. package/dist/index271.js.map +1 -0
  131. package/dist/index273.js +28 -5
  132. package/dist/index273.js.map +1 -1
  133. package/dist/index278.js +2 -11
  134. package/dist/index278.js.map +1 -1
  135. package/dist/index279.js +10 -34
  136. package/dist/index279.js.map +1 -1
  137. package/dist/index28.js +2 -2
  138. package/dist/index280.js +34 -46
  139. package/dist/index280.js.map +1 -1
  140. package/dist/index281.js +47 -2
  141. package/dist/index281.js.map +1 -1
  142. package/dist/index30.js +2 -2
  143. package/dist/index32.js +3 -3
  144. package/dist/index34.js +42 -41
  145. package/dist/index34.js.map +1 -1
  146. package/dist/index36.js +1 -1
  147. package/dist/index38.js +2 -2
  148. package/dist/index40.js +2 -2
  149. package/dist/index42.js +4 -4
  150. package/dist/index44.js +2 -2
  151. package/dist/index46.js +2 -2
  152. package/dist/index52.js +1 -1
  153. package/dist/index54.js +1 -1
  154. package/dist/index70.js +2 -2
  155. package/dist/index74.js +2 -2
  156. package/dist/index76.js +1 -1
  157. package/dist/index79.js +2 -2
  158. package/dist/index81.js +1 -1
  159. package/dist/index83.js +3 -3
  160. package/package.json +2 -2
  161. package/dist/index220.js +0 -126
  162. package/dist/index220.js.map +0 -1
  163. package/dist/index256.js +0 -12
  164. package/dist/index256.js.map +0 -1
  165. package/dist/index272.js +0 -31
  166. package/dist/index272.js.map +0 -1
package/dist/index105.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as oe, ref as x, computed as h, toRef as B, watch as ne, openBlock as n, createBlock as de, resolveDynamicComponent as ce, normalizeClass as r, unref as u, withCtx as ie, createElementBlock as d, toDisplayString as p, createCommentVNode as k, createElementVNode as s, renderSlot as f, createVNode as I, Fragment as w, renderList as T, createTextVNode as be, mergeProps as re } from "vue";
2
- import { add as ue } from "./index264.js";
2
+ import { add as ue } from "./index245.js";
3
3
  import { clamp as pe } from "./index198.js";
4
4
  import { isNil as M } from "./index124.js";
5
5
  import { useId as fe } from "./index7.js";
6
- import { useItemValue as me } from "./index256.js";
7
- import { when as he } from "./index206.js";
6
+ import { useItemValue as me } from "./index246.js";
7
+ import { when as he } from "./index216.js";
8
8
  import J from "./index14.js";
9
9
  /* empty css */
10
10
  import ye from "./index28.js";
11
11
  /* empty css */
12
- import { useOptions as _e } from "./index216.js";
12
+ import { useOptions as _e } from "./index218.js";
13
13
  const ke = { key: 0 }, ve = { class: "bb-table-header-row" }, Ce = { class: "bb-table-header__content" }, ge = { class: "bb-table-check__label-text" }, we = {
14
14
  key: 1,
15
15
  class: "bb-table-radio__label-text"
package/dist/index113.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as s, openBlock as e, createBlock as o, Teleport as l, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as p, withCtx as u, createElementBlock as f, Fragment as d, renderList as _, unref as r, mergeProps as b } from "vue";
2
2
  import { state as k, useToast as C } from "./index10.js";
3
- import B from "./index265.js";
3
+ import B from "./index247.js";
4
4
  const N = /* @__PURE__ */ s({
5
5
  __name: "BbToast",
6
6
  props: {
package/dist/index115.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as A, ref as o, computed as $, watch as I, openBlock as b, createElementBlock as D, mergeProps as L, createElementVNode as c, renderSlot as M, normalizeProps as R, guardReactiveProps as U, unref as u, createBlock as O, Teleport as W, normalizeClass as j, normalizeStyle as q, withCtx as G, createCommentVNode as P } from "vue";
2
- import { useFloating as J, arrow as K } from "./index219.js";
2
+ import { useFloating as J, arrow as K } from "./index204.js";
3
3
  import { useId as Q } from "./index7.js";
4
4
  import { wait as T } from "./index126.js";
5
5
  import X from "./index12.js";
6
6
  /* empty css */
7
- import { throttle as w } from "./index200.js";
8
- import { waitFor as Y } from "./index202.js";
9
- import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./index226.js";
7
+ import { throttle as w } from "./index199.js";
8
+ import { waitFor as Y } from "./index201.js";
9
+ import { autoUpdate as Z, flip as ee, shift as te, hide as oe } from "./index214.js";
10
10
  const ae = { class: "bb-tooltip__bubble" }, ne = /* @__PURE__ */ c("svg", {
11
11
  fill: "none",
12
12
  viewBox: "0 0 24 24",
package/dist/index117.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
2
- import { flattenTree as T } from "./index273.js";
2
+ import { flattenTree as T } from "./index244.js";
3
3
  const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
4
4
  __name: "BbTree",
5
5
  props: {
package/dist/index12.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, getCurrentInstance as p, computed as s, resolveComponent as d, openBlock as k, createBlock as h, resolveDynamicComponent as C, mergeProps as x, withCtx as S, renderSlot as L, createTextVNode as B, toDisplayString as N } from "vue";
2
2
  import { _config as o } from "./index3.js";
3
- import { useLogger as m } from "./index204.js";
3
+ import { useLogger as m } from "./index203.js";
4
4
  const P = /* @__PURE__ */ y({
5
5
  __name: "BaseButton",
6
6
  props: {
package/dist/index121.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as d, inject as x, computed as l, ref as y, watchEffect as _, openBlock as b, createElementBlock as h, mergeProps as w } from "vue";
2
- import { isCssColor as z } from "./index205.js";
2
+ import { isCssColor as z } from "./index215.js";
3
3
  const g = ["innerHTML"], $ = /* @__PURE__ */ m({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index122.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
2
- import { throttle as g } from "./index200.js";
2
+ import { throttle as g } from "./index199.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index123.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as l, openBlock as _, createElementBlock as a, normalizeProps as b, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as d } from "./index205.js";
2
+ import { isCssColor as d } from "./index215.js";
3
3
  const u = /* @__PURE__ */ m('<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle class="bb-spinner__circle" cx="12" cy="3" r="0"></circle><circle class="bb-spinner__circle circle--1" cx="16.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--2" cx="7.50" cy="4.21" r="0"></circle><circle class="bb-spinner__circle circle--3" cx="19.79" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--4" cx="4.21" cy="7.50" r="0"></circle><circle class="bb-spinner__circle circle--5" cx="21.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--6" cx="3.00" cy="12.00" r="0"></circle><circle class="bb-spinner__circle circle--7" cx="19.79" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--8" cx="4.21" cy="16.50" r="0"></circle><circle class="bb-spinner__circle circle--9" cx="16.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--10" cx="7.50" cy="19.79" r="0"></circle><circle class="bb-spinner__circle circle--11" cx="12" cy="21" r="0"></circle></svg>', 1), y = [
4
4
  u
5
5
  ], g = /* @__PURE__ */ p({
package/dist/index14.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, ref as b, computed as n, watch as E, openBlock as m, createElementBlock as p, normalizeProps as c, guardReactiveProps as h, mergeProps as f, createCommentVNode as I, createElementVNode as s, renderSlot as q } from "vue";
2
- import { isCssColor as k } from "./index205.js";
3
- import { when as F } from "./index206.js";
4
- import { booleanishToBoolean as N } from "./index207.js";
2
+ import { isCssColor as k } from "./index215.js";
3
+ import { when as F } from "./index216.js";
4
+ import { booleanishToBoolean as N } from "./index217.js";
5
5
  const S = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index16.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as $, ref as p, toRef as l, openBlock as B, createBlock as w, unref as f, withCtx as i, renderSlot as s, normalizeProps as b, guardReactiveProps as h, createVNode as O, mergeProps as v } from "vue";
2
- import { useOptions as z } from "./index216.js";
2
+ import { useOptions as z } from "./index218.js";
3
3
  import F from "./index14.js";
4
4
  /* empty css */
5
- import M from "./index217.js";
5
+ import M from "./index219.js";
6
6
  /* empty css */
7
7
  const G = /* @__PURE__ */ $({
8
8
  __name: "BaseCheckboxGroup",
package/dist/index18.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as Ve, ref as k, computed as p, watch as F, nextTick as U, openBlock as d, createElementBlock as u, mergeProps as Se, createElementVNode as r, createTextVNode as De, toDisplayString as f, unref as y, withDirectives as q, createVNode as V, Transition as S, withCtx as D, vShow as j, createCommentVNode as Y, normalizeClass as g, Fragment as w, renderList as O, renderSlot as G } from "vue";
2
- import i from "./index208.js";
3
- import Me from "./index209.js";
4
- import Ae from "./index210.js";
5
- import xe from "./index211.js";
6
- import Ce from "./index212.js";
7
- import Ye from "./index213.js";
8
- import { groupBy as J } from "./index214.js";
2
+ import i from "./index205.js";
3
+ import Me from "./index222.js";
4
+ import Ae from "./index223.js";
5
+ import xe from "./index207.js";
6
+ import Ce from "./index224.js";
7
+ import Ye from "./index225.js";
8
+ import { groupBy as J } from "./index226.js";
9
9
  import { isNil as Be } from "./index124.js";
10
- import { last as Q } from "./index215.js";
10
+ import { last as Q } from "./index209.js";
11
11
  const Ie = { class: "bb-base-date-picker__header" }, Ee = ["disabled"], Ne = /* @__PURE__ */ r("span", null, null, -1), Te = {
12
12
  "aria-live": "polite",
13
13
  class: "bb-base-date-picker__selected-day-label"
package/dist/index199.js CHANGED
@@ -1,6 +1,6 @@
1
- import r from "./index237.js";
2
- const t = r;
1
+ import t from "./index243.js";
2
+ const r = t;
3
3
  export {
4
- t as deburr
4
+ r as throttle
5
5
  };
6
6
  //# sourceMappingURL=index199.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index199.js","sources":["../src/utilities/functions/deburr.ts"],"sourcesContent":["import d from 'lodash.deburr';\n\nexport const deburr = d;\n"],"names":["deburr","d"],"mappings":";AAEO,MAAMA,IAASC;"}
1
+ {"version":3,"file":"index199.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
package/dist/index20.js CHANGED
@@ -1,23 +1,23 @@
1
1
  import { defineComponent as re, ref as n, computed as b, watch as le, openBlock as L, createBlock as F, normalizeClass as z, withCtx as l, renderSlot as d, createVNode as P, withDirectives as ie, createElementVNode as r, mergeProps as W, unref as v, toDisplayString as j, Teleport as se, normalizeStyle as ue, createSlots as de, renderList as ce, normalizeProps as pe, guardReactiveProps as fe, createCommentVNode as me } from "vue";
2
- import { useFloating as be } from "./index219.js";
3
- import o from "./index208.js";
4
- import ve from "./index220.js";
5
- import ge from "./index211.js";
6
- import { identity as ye } from "./index221.js";
7
- import { last as ke } from "./index215.js";
8
- import { useFocusTrap as he } from "./index201.js";
2
+ import { useFloating as be } from "./index204.js";
3
+ import o from "./index205.js";
4
+ import ve from "./index206.js";
5
+ import ge from "./index207.js";
6
+ import { identity as ye } from "./index208.js";
7
+ import { last as ke } from "./index209.js";
8
+ import { useFocusTrap as he } from "./index200.js";
9
9
  import { useId as Me } from "./index7.js";
10
10
  import { useIntersectionObserver as we } from "./index127.js";
11
11
  import { useMobile as Ve } from "./index8.js";
12
- import { vMaska as Ce } from "./index222.js";
12
+ import { vMaska as Ce } from "./index210.js";
13
13
  import { wait as S } from "./index126.js";
14
- import { waitFor as _e } from "./index202.js";
14
+ import { waitFor as _e } from "./index201.js";
15
15
  import Ye from "./index18.js";
16
16
  /* empty css */
17
- import De from "./index223.js";
17
+ import De from "./index211.js";
18
18
  /* empty css */
19
- import Ae from "./index225.js";
20
- import { autoUpdate as Se, flip as $e, offset as Oe, shift as Be, hide as Ee } from "./index226.js";
19
+ import Ae from "./index213.js";
20
+ import { autoUpdate as Se, flip as $e, offset as Oe, shift as Be, hide as Ee } from "./index214.js";
21
21
  const Ie = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Le = ["disabled"], Fe = /* @__PURE__ */ r("svg", {
22
22
  fill: "none",
23
23
  viewBox: "0 0 16 16",
package/dist/index200.js CHANGED
@@ -1,6 +1,38 @@
1
- import t from "./index241.js";
2
- const r = t;
1
+ import { unrefElement as m } from "./index127.js";
2
+ import { ref as u, watch as l } from "vue";
3
+ import { createFocusTrap as d } from "./index242.js";
4
+ import { tryOnScopeDispose as D } from "./index197.js";
5
+ function O(i, a = {}) {
6
+ let e;
7
+ const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
+ e && (e.pause(), s.value = !0);
9
+ }, p = () => {
10
+ e && (e.unpause(), s.value = !1);
11
+ };
12
+ return l(
13
+ () => m(i),
14
+ (t) => {
15
+ t && (e = d(t, {
16
+ ...n,
17
+ onActivate() {
18
+ c.value = !0, a.onActivate && a.onActivate();
19
+ },
20
+ onDeactivate() {
21
+ c.value = !1, a.onDeactivate && a.onDeactivate();
22
+ }
23
+ }), f && o());
24
+ },
25
+ { flush: "post" }
26
+ ), D(() => r()), {
27
+ hasFocus: c,
28
+ isPaused: s,
29
+ activate: o,
30
+ deactivate: r,
31
+ pause: v,
32
+ unpause: p
33
+ };
34
+ }
3
35
  export {
4
- r as throttle
36
+ O as useFocusTrap
5
37
  };
6
38
  //# sourceMappingURL=index200.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index200.js","sources":["../src/utilities/functions/throttle.ts"],"sourcesContent":["import t from 'lodash.throttle';\n\nexport const throttle = t;\n"],"names":["throttle"],"mappings":";AAEO,MAAMA,IAAW;"}
1
+ {"version":3,"file":"index200.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
package/dist/index201.js CHANGED
@@ -1,38 +1,9 @@
1
- import { unrefElement as m } from "./index127.js";
2
- import { ref as u, watch as l } from "vue";
3
- import { createFocusTrap as d } from "./index240.js";
4
- import { tryOnScopeDispose as D } from "./index197.js";
5
- function O(i, a = {}) {
6
- let e;
7
- const { immediate: f, ...n } = a, c = u(!1), s = u(!1), o = (t) => e && e.activate(t), r = (t) => e && e.deactivate(t), v = () => {
8
- e && (e.pause(), s.value = !0);
9
- }, p = () => {
10
- e && (e.unpause(), s.value = !1);
11
- };
12
- return l(
13
- () => m(i),
14
- (t) => {
15
- t && (e = d(t, {
16
- ...n,
17
- onActivate() {
18
- c.value = !0, a.onActivate && a.onActivate();
19
- },
20
- onDeactivate() {
21
- c.value = !1, a.onDeactivate && a.onDeactivate();
22
- }
23
- }), f && o());
24
- },
25
- { flush: "post" }
26
- ), D(() => r()), {
27
- hasFocus: c,
28
- isPaused: s,
29
- activate: o,
30
- deactivate: r,
31
- pause: v,
32
- unpause: p
33
- };
34
- }
1
+ const o = (e, t = 50) => new Promise((r) => {
2
+ const n = setInterval(() => {
3
+ e() && (clearInterval(n), r());
4
+ }, t);
5
+ });
35
6
  export {
36
- O as useFocusTrap
7
+ o as waitFor
37
8
  };
38
9
  //# sourceMappingURL=index201.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index201.js","sources":["../node_modules/@vueuse/integrations/useFocusTrap.mjs"],"sourcesContent":["import { unrefElement, tryOnScopeDispose } from '@vueuse/core';\nimport { ref, watch } from 'vue-demi';\nimport { createFocusTrap } from 'focus-trap';\n\nfunction useFocusTrap(target, options = {}) {\n let trap;\n const { immediate, ...focusTrapOptions } = options;\n const hasFocus = ref(false);\n const isPaused = ref(false);\n const activate = (opts) => trap && trap.activate(opts);\n const deactivate = (opts) => trap && trap.deactivate(opts);\n const pause = () => {\n if (trap) {\n trap.pause();\n isPaused.value = true;\n }\n };\n const unpause = () => {\n if (trap) {\n trap.unpause();\n isPaused.value = false;\n }\n };\n watch(\n () => unrefElement(target),\n (el) => {\n if (!el)\n return;\n trap = createFocusTrap(el, {\n ...focusTrapOptions,\n onActivate() {\n hasFocus.value = true;\n if (options.onActivate)\n options.onActivate();\n },\n onDeactivate() {\n hasFocus.value = false;\n if (options.onDeactivate)\n options.onDeactivate();\n }\n });\n if (immediate)\n activate();\n },\n { flush: \"post\" }\n );\n tryOnScopeDispose(() => deactivate());\n return {\n hasFocus,\n isPaused,\n activate,\n deactivate,\n pause,\n unpause\n };\n}\n\nexport { useFocusTrap };\n"],"names":["useFocusTrap","target","options","trap","immediate","focusTrapOptions","hasFocus","ref","isPaused","activate","opts","deactivate","pause","unpause","watch","unrefElement","el","createFocusTrap","tryOnScopeDispose"],"mappings":";;;;AAIA,SAASA,EAAaC,GAAQC,IAAU,IAAI;AAC1C,MAAIC;AACJ,QAAM,EAAE,WAAAC,GAAW,GAAGC,EAAgB,IAAKH,GACrCI,IAAWC,EAAI,EAAK,GACpBC,IAAWD,EAAI,EAAK,GACpBE,IAAW,CAACC,MAASP,KAAQA,EAAK,SAASO,CAAI,GAC/CC,IAAa,CAACD,MAASP,KAAQA,EAAK,WAAWO,CAAI,GACnDE,IAAQ,MAAM;AAClB,IAAIT,MACFA,EAAK,MAAK,GACVK,EAAS,QAAQ;AAAA,EAEvB,GACQK,IAAU,MAAM;AACpB,IAAIV,MACFA,EAAK,QAAO,GACZK,EAAS,QAAQ;AAAA,EAEvB;AACE,SAAAM;AAAA,IACE,MAAMC,EAAad,CAAM;AAAA,IACzB,CAACe,MAAO;AACN,MAAKA,MAELb,IAAOc,EAAgBD,GAAI;AAAA,QACzB,GAAGX;AAAA,QACH,aAAa;AACX,UAAAC,EAAS,QAAQ,IACbJ,EAAQ,cACVA,EAAQ,WAAU;AAAA,QACrB;AAAA,QACD,eAAe;AACb,UAAAI,EAAS,QAAQ,IACbJ,EAAQ,gBACVA,EAAQ,aAAY;AAAA,QACvB;AAAA,MACT,CAAO,GACGE,KACFK;IACH;AAAA,IACD,EAAE,OAAO,OAAQ;AAAA,EACrB,GACES,EAAkB,MAAMP,EAAU,CAAE,GAC7B;AAAA,IACL,UAAAL;AAAA,IACA,UAAAE;AAAA,IACA,UAAAC;AAAA,IACA,YAAAE;AAAA,IACA,OAAAC;AAAA,IACA,SAAAC;AAAA,EACJ;AACA;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index201.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
package/dist/index202.js CHANGED
@@ -1,9 +1,10 @@
1
- const o = (e, t = 50) => new Promise((r) => {
2
- const n = setInterval(() => {
3
- e() && (clearInterval(n), r());
4
- }, t);
5
- });
1
+ import { ref as e } from "vue";
2
+ const o = e(0), s = () => {
3
+ o.value++;
4
+ }, a = () => {
5
+ o.value--;
6
+ }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
6
7
  export {
7
- o as waitFor
8
+ d as useModalsState
8
9
  };
9
10
  //# sourceMappingURL=index202.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index202.js","sources":["../src/utilities/functions/waitFor.ts"],"sourcesContent":["/** Wait until iteratee returns true to resolve the promise */\nexport const waitFor: (\n\titeratee: () => boolean,\n\tinterval?: number\n) => Promise<void> = (iteratee, interval = 50) =>\n\tnew Promise((resolve) => {\n\t\tconst i = setInterval(() => {\n\t\t\tif (iteratee()) {\n\t\t\t\tclearInterval(i);\n\t\t\t\tresolve();\n\t\t\t}\n\t\t}, interval);\n\t});\n"],"names":["waitFor","iteratee","interval","resolve","i"],"mappings":"AACa,MAAAA,IAGQ,CAACC,GAAUC,IAAW,OAC1C,IAAI,QAAQ,CAACC,MAAY;AAClB,QAAAC,IAAI,YAAY,MAAM;AAC3B,IAAIH,QACH,cAAcG,CAAC,GACPD;KAEPD,CAAQ;AACZ,CAAC;"}
1
+ {"version":3,"file":"index202.js","sources":["../src/composables/useModalsState.ts"],"sourcesContent":["import { ref } from 'vue';\n\nconst openedModals = ref(0);\n\nconst modalHasOpened = () => {\n\topenedModals.value++;\n};\n\nconst modalHasClosed = () => {\n\topenedModals.value--;\n};\nexport const useModalsState = () => {\n\treturn { openedModals, modalHasOpened, modalHasClosed };\n};\n"],"names":["openedModals","ref","modalHasOpened","modalHasClosed","useModalsState"],"mappings":";AAEA,MAAMA,IAAeC,EAAI,CAAC,GAEpBC,IAAiB,MAAM;AACf,EAAAF,EAAA;AACd,GAEMG,IAAiB,MAAM;AACf,EAAAH,EAAA;AACd,GACaI,IAAiB,OACtB,EAAE,cAAAJ,GAAc,gBAAAE,GAAgB,gBAAAC;"}
package/dist/index203.js CHANGED
@@ -1,10 +1,8 @@
1
- import { ref as e } from "vue";
2
- const o = e(0), s = () => {
3
- o.value++;
4
- }, a = () => {
5
- o.value--;
6
- }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
1
+ const o = "bitboss-ui | ", e = () => ({
2
+ warn: (r) => console.warn(`${o}${r}`),
3
+ error: (r) => console.error(`${o}${r}`)
4
+ });
7
5
  export {
8
- d as useModalsState
6
+ e as useLogger
9
7
  };
10
8
  //# sourceMappingURL=index203.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index203.js","sources":["../src/composables/useModalsState.ts"],"sourcesContent":["import { ref } from 'vue';\n\nconst openedModals = ref(0);\n\nconst modalHasOpened = () => {\n\topenedModals.value++;\n};\n\nconst modalHasClosed = () => {\n\topenedModals.value--;\n};\nexport const useModalsState = () => {\n\treturn { openedModals, modalHasOpened, modalHasClosed };\n};\n"],"names":["openedModals","ref","modalHasOpened","modalHasClosed","useModalsState"],"mappings":";AAEA,MAAMA,IAAeC,EAAI,CAAC,GAEpBC,IAAiB,MAAM;AACf,EAAAF,EAAA;AACd,GAEMG,IAAiB,MAAM;AACf,EAAAH,EAAA;AACd,GACaI,IAAiB,OACtB,EAAE,cAAAJ,GAAc,gBAAAE,GAAgB,gBAAAC;"}
1
+ {"version":3,"file":"index203.js","sources":["../src/composables/useLogger.ts"],"sourcesContent":["const prefix = `bitboss-ui | `;\n\nexport const useLogger = () => {\n\treturn {\n\t\twarn: (message: string) => console.warn(`${prefix}${message}`),\n\t\terror: (message: string) => console.error(`${prefix}${message}`),\n\t};\n};\n"],"names":["prefix","useLogger","message"],"mappings":"AAAA,MAAMA,IAAS,iBAEFC,IAAY,OACjB;AAAA,EACN,MAAM,CAACC,MAAoB,QAAQ,KAAK,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA,EAC7D,OAAO,CAACA,MAAoB,QAAQ,MAAM,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA;"}
package/dist/index204.js CHANGED
@@ -1,8 +1,129 @@
1
- const o = "bitboss-ui | ", e = () => ({
2
- warn: (r) => console.warn(`${o}${r}`),
3
- error: (r) => console.error(`${o}${r}`)
4
- });
1
+ import { arrow as j, computePosition as A } from "./index214.js";
2
+ import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index214.js";
3
+ import { isNode as B, getNodeName as F } from "./index254.js";
4
+ import { getOverflowAncestors as le } from "./index254.js";
5
+ import { computed as a, ref as f, shallowRef as I, watch as h, getCurrentScope as U, onScopeDispose as k, shallowReadonly as r, unref as q } from "vue";
6
+ function z(e) {
7
+ return e != null && typeof e == "object" && "$el" in e;
8
+ }
9
+ function g(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 o(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 = g(o(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 x = t.whileElementsMounted, V = a(() => {
42
+ var n;
43
+ return (n = o(t.open)) != null ? n : !0;
44
+ }), D = a(() => o(t.middleware)), d = a(() => {
45
+ var n;
46
+ return (n = o(t.placement)) != null ? n : "bottom";
47
+ }), v = a(() => {
48
+ var n;
49
+ return (n = o(t.strategy)) != null ? n : "absolute";
50
+ }), S = a(() => {
51
+ var n;
52
+ return (n = o(t.transform)) != null ? n : !0;
53
+ }), i = a(() => g(e.value)), u = a(() => g(l.value)), p = f(0), w = f(0), c = f(v.value), O = f(d.value), P = I({}), y = f(!1), _ = a(() => {
54
+ const n = {
55
+ position: c.value,
56
+ left: "0",
57
+ top: "0"
58
+ };
59
+ if (!u.value)
60
+ return n;
61
+ const R = C(u.value, p.value), b = C(u.value, w.value);
62
+ return S.value ? {
63
+ ...n,
64
+ transform: "translate(" + R + "px, " + b + "px)",
65
+ ...M(u.value) >= 1.5 && {
66
+ willChange: "transform"
67
+ }
68
+ } : {
69
+ position: c.value,
70
+ left: R + "px",
71
+ top: b + "px"
72
+ };
73
+ });
74
+ let s;
75
+ function m() {
76
+ i.value == null || u.value == null || A(i.value, u.value, {
77
+ middleware: D.value,
78
+ placement: d.value,
79
+ strategy: v.value
80
+ }).then((n) => {
81
+ p.value = n.x, w.value = n.y, c.value = n.strategy, O.value = n.placement, P.value = n.middlewareData, y.value = !0;
82
+ });
83
+ }
84
+ function E() {
85
+ typeof s == "function" && (s(), s = void 0);
86
+ }
87
+ function N() {
88
+ if (E(), x === void 0) {
89
+ m();
90
+ return;
91
+ }
92
+ if (i.value != null && u.value != null) {
93
+ s = x(i.value, u.value, m);
94
+ return;
95
+ }
96
+ }
97
+ function $() {
98
+ V.value || (y.value = !1);
99
+ }
100
+ return h([D, d, v], m, {
101
+ flush: "sync"
102
+ }), h([i, u], N, {
103
+ flush: "sync"
104
+ }), h(V, $, {
105
+ flush: "sync"
106
+ }), U() && k(E), {
107
+ x: r(p),
108
+ y: r(w),
109
+ strategy: r(c),
110
+ placement: r(O),
111
+ middlewareData: r(P),
112
+ isPositioned: r(y),
113
+ floatingStyles: _,
114
+ update: m
115
+ };
116
+ }
5
117
  export {
6
- e as useLogger
118
+ K as arrow,
119
+ W as autoUpdate,
120
+ A as computePosition,
121
+ X as flip,
122
+ le as getOverflowAncestors,
123
+ Y as hide,
124
+ Z as offset,
125
+ ee as platform,
126
+ ne as shift,
127
+ L as useFloating
7
128
  };
8
129
  //# sourceMappingURL=index204.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index204.js","sources":["../src/composables/useLogger.ts"],"sourcesContent":["const prefix = `bitboss-ui | `;\n\nexport const useLogger = () => {\n\treturn {\n\t\twarn: (message: string) => console.warn(`${prefix}${message}`),\n\t\terror: (message: string) => console.error(`${prefix}${message}`),\n\t};\n};\n"],"names":["prefix","useLogger","message"],"mappings":"AAAA,MAAMA,IAAS,iBAEFC,IAAY,OACjB;AAAA,EACN,MAAM,CAACC,MAAoB,QAAQ,KAAK,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA,EAC7D,OAAO,CAACA,MAAoB,QAAQ,MAAM,GAAGF,CAAM,GAAGE,CAAO,EAAE;AAAA;"}
1
+ {"version":3,"file":"index204.js","sources":["../node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs"],"sourcesContent":["import { arrow as arrow$1, computePosition } from '@floating-ui/dom';\nexport { autoPlacement, autoUpdate, computePosition, detectOverflow, flip, getOverflowAncestors, hide, inline, limitShift, offset, platform, shift, size } from '@floating-ui/dom';\nimport { isNode, getNodeName } from '@floating-ui/utils/dom';\nimport { unref, computed, ref, shallowRef, watch, getCurrentScope, onScopeDispose, shallowReadonly } from 'vue-demi';\n\nfunction isComponentPublicInstance(target) {\n return target != null && typeof target === 'object' && '$el' in target;\n}\nfunction unwrapElement(target) {\n if (isComponentPublicInstance(target)) {\n const element = target.$el;\n return isNode(element) && getNodeName(element) === '#comment' ? null : element;\n }\n return target;\n}\n\nfunction toValue(source) {\n return typeof source === 'function' ? source() : unref(source);\n}\n\n/**\n * Positions an inner element of the floating element such that it is centered to the reference element.\n * @param options The arrow options.\n * @see https://floating-ui.com/docs/arrow\n */\nfunction arrow(options) {\n return {\n name: 'arrow',\n options,\n fn(args) {\n const element = unwrapElement(toValue(options.element));\n if (element == null) {\n return {};\n }\n return arrow$1({\n element,\n padding: options.padding\n }).fn(args);\n }\n };\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\n/**\n * Computes the `x` and `y` coordinates that will place the floating element next to a reference element when it is given a certain CSS positioning strategy.\n * @param reference The reference template ref.\n * @param floating The floating template ref.\n * @param options The floating options.\n * @see https://floating-ui.com/docs/vue\n */\nfunction useFloating(reference, floating, options) {\n if (options === void 0) {\n options = {};\n }\n const whileElementsMountedOption = options.whileElementsMounted;\n const openOption = computed(() => {\n var _toValue;\n return (_toValue = toValue(options.open)) != null ? _toValue : true;\n });\n const middlewareOption = computed(() => toValue(options.middleware));\n const placementOption = computed(() => {\n var _toValue2;\n return (_toValue2 = toValue(options.placement)) != null ? _toValue2 : 'bottom';\n });\n const strategyOption = computed(() => {\n var _toValue3;\n return (_toValue3 = toValue(options.strategy)) != null ? _toValue3 : 'absolute';\n });\n const transformOption = computed(() => {\n var _toValue4;\n return (_toValue4 = toValue(options.transform)) != null ? _toValue4 : true;\n });\n const referenceElement = computed(() => unwrapElement(reference.value));\n const floatingElement = computed(() => unwrapElement(floating.value));\n const x = ref(0);\n const y = ref(0);\n const strategy = ref(strategyOption.value);\n const placement = ref(placementOption.value);\n const middlewareData = shallowRef({});\n const isPositioned = ref(false);\n const floatingStyles = computed(() => {\n const initialStyles = {\n position: strategy.value,\n left: '0',\n top: '0'\n };\n if (!floatingElement.value) {\n return initialStyles;\n }\n const xVal = roundByDPR(floatingElement.value, x.value);\n const yVal = roundByDPR(floatingElement.value, y.value);\n if (transformOption.value) {\n return {\n ...initialStyles,\n transform: \"translate(\" + xVal + \"px, \" + yVal + \"px)\",\n ...(getDPR(floatingElement.value) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy.value,\n left: xVal + \"px\",\n top: yVal + \"px\"\n };\n });\n let whileElementsMountedCleanup;\n function update() {\n if (referenceElement.value == null || floatingElement.value == null) {\n return;\n }\n computePosition(referenceElement.value, floatingElement.value, {\n middleware: middlewareOption.value,\n placement: placementOption.value,\n strategy: strategyOption.value\n }).then(position => {\n x.value = position.x;\n y.value = position.y;\n strategy.value = position.strategy;\n placement.value = position.placement;\n middlewareData.value = position.middlewareData;\n isPositioned.value = true;\n });\n }\n function cleanup() {\n if (typeof whileElementsMountedCleanup === 'function') {\n whileElementsMountedCleanup();\n whileElementsMountedCleanup = undefined;\n }\n }\n function attach() {\n cleanup();\n if (whileElementsMountedOption === undefined) {\n update();\n return;\n }\n if (referenceElement.value != null && floatingElement.value != null) {\n whileElementsMountedCleanup = whileElementsMountedOption(referenceElement.value, floatingElement.value, update);\n return;\n }\n }\n function reset() {\n if (!openOption.value) {\n isPositioned.value = false;\n }\n }\n watch([middlewareOption, placementOption, strategyOption], update, {\n flush: 'sync'\n });\n watch([referenceElement, floatingElement], attach, {\n flush: 'sync'\n });\n watch(openOption, reset, {\n flush: 'sync'\n });\n if (getCurrentScope()) {\n onScopeDispose(cleanup);\n }\n return {\n x: shallowReadonly(x),\n y: shallowReadonly(y),\n strategy: shallowReadonly(strategy),\n placement: shallowReadonly(placement),\n middlewareData: shallowReadonly(middlewareData),\n isPositioned: shallowReadonly(isPositioned),\n floatingStyles,\n update\n };\n}\n\nexport { arrow, useFloating };\n"],"names":["isComponentPublicInstance","target","unwrapElement","element","isNode","getNodeName","toValue","source","unref","arrow","options","args","arrow$1","getDPR","roundByDPR","value","dpr","useFloating","reference","floating","whileElementsMountedOption","openOption","computed","_toValue","middlewareOption","placementOption","_toValue2","strategyOption","_toValue3","transformOption","_toValue4","referenceElement","floatingElement","x","ref","y","strategy","placement","middlewareData","shallowRef","isPositioned","floatingStyles","initialStyles","xVal","yVal","whileElementsMountedCleanup","update","computePosition","position","cleanup","attach","reset","watch","getCurrentScope","onScopeDispose","shallowReadonly"],"mappings":";;;;;AAKA,SAASA,EAA0BC,GAAQ;AACzC,SAAOA,KAAU,QAAQ,OAAOA,KAAW,YAAY,SAASA;AAClE;AACA,SAASC,EAAcD,GAAQ;AAC7B,MAAID,EAA0BC,CAAM,GAAG;AACrC,UAAME,IAAUF,EAAO;AACvB,WAAOG,EAAOD,CAAO,KAAKE,EAAYF,CAAO,MAAM,aAAa,OAAOA;AAAA,EACxE;AACD,SAAOF;AACT;AAEA,SAASK,EAAQC,GAAQ;AACvB,SAAO,OAAOA,KAAW,aAAaA,EAAM,IAAKC,EAAMD,CAAM;AAC/D;AAOA,SAASE,EAAMC,GAAS;AACtB,SAAO;AAAA,IACL,MAAM;AAAA,IACN,SAAAA;AAAA,IACA,GAAGC,GAAM;AACP,YAAMR,IAAUD,EAAcI,EAAQI,EAAQ,OAAO,CAAC;AACtD,aAAIP,KAAW,OACN,KAEFS,EAAQ;AAAA,QACb,SAAAT;AAAA,QACA,SAASO,EAAQ;AAAA,MACzB,CAAO,EAAE,GAAGC,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