bitboss-ui 2.0.166 → 2.0.167

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/index106.js +7 -7
  2. package/dist/index111.js +1 -1
  3. package/dist/index113.js +1 -1
  4. package/dist/index121.js +10 -10
  5. package/dist/index129.js +2 -2
  6. package/dist/index13.js +1 -1
  7. package/dist/index131.js +3 -3
  8. package/dist/index133.js +1 -1
  9. package/dist/index136.js +1 -1
  10. package/dist/index138.js +1 -1
  11. package/dist/index139.js +2 -2
  12. package/dist/index15.js +8 -8
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +8 -8
  15. package/dist/index207.js +2 -2
  16. package/dist/index208.js +2 -2
  17. package/dist/index209.js +4 -2
  18. package/dist/index21.js +16 -16
  19. package/dist/index210.js +41 -4
  20. package/dist/index211.js +20 -2
  21. package/dist/index212.js +93 -40
  22. package/dist/index214.js +200 -7
  23. package/dist/index216.js +65 -12
  24. package/dist/index218.js +12 -3
  25. package/dist/index219.js +13 -20
  26. package/dist/index220.js +5 -94
  27. package/dist/index221.js +7 -0
  28. package/dist/index222.js +5 -200
  29. package/dist/index223.js +7 -0
  30. package/dist/index224.js +5 -66
  31. package/dist/index225.js +7 -0
  32. package/dist/index226.js +5 -13
  33. package/dist/index227.js +3 -2
  34. package/dist/index228.js +2 -6
  35. package/dist/index229.js +7 -15
  36. package/dist/index23.js +17 -17
  37. package/dist/index230.js +249 -8
  38. package/dist/index231.js +52 -11
  39. package/dist/index232.js +39 -96
  40. package/dist/index233.js +7 -0
  41. package/dist/index234.js +60 -23
  42. package/dist/index235.js +6 -2
  43. package/dist/index236.js +7 -177
  44. package/dist/index237.js +15 -3
  45. package/dist/index238.js +34 -5
  46. package/dist/index239.js +86 -5
  47. package/dist/index241.js +29 -5
  48. package/dist/index242.js +17 -5
  49. package/dist/index243.js +51 -5
  50. package/dist/index244.js +15 -2
  51. package/dist/index245.js +12 -2
  52. package/dist/index246.js +15 -8
  53. package/dist/index247.js +5 -3
  54. package/dist/index248.js +2 -51
  55. package/dist/index249.js +2 -17
  56. package/dist/index25.js +5 -5
  57. package/dist/index250.js +9 -106
  58. package/dist/index251.js +20 -0
  59. package/dist/index252.js +126 -98
  60. package/dist/index253.js +6 -0
  61. package/dist/index254.js +106 -2
  62. package/dist/index256.js +95 -81
  63. package/dist/index258.js +11 -28
  64. package/dist/index259.js +228 -15
  65. package/dist/index260.js +367 -11
  66. package/dist/index261.js +2 -16
  67. package/dist/index262.js +2 -10
  68. package/dist/index263.js +2 -3
  69. package/dist/index264.js +3 -18
  70. package/dist/index265.js +169 -120
  71. package/dist/index266.js +2 -12
  72. package/dist/index267.js +10 -228
  73. package/dist/index268.js +2 -367
  74. package/dist/index269.js +9 -5
  75. package/dist/index27.js +1 -1
  76. package/dist/index270.js +11 -5
  77. package/dist/index271.js +99 -6
  78. package/dist/index273.js +23 -52
  79. package/dist/index274.js +6 -44
  80. package/dist/index275.js +16 -5
  81. package/dist/index276.js +3 -60
  82. package/dist/index277.js +1 -1
  83. package/dist/index280.js +67 -5
  84. package/dist/index281.js +5 -67
  85. package/dist/index282.js +5 -4
  86. package/dist/index283.js +7 -470
  87. package/dist/index284.js +471 -2
  88. package/dist/index285.js +3 -7
  89. package/dist/index286.js +3 -11
  90. package/dist/index287.js +3 -2
  91. package/dist/index289.js +7 -3
  92. package/dist/index29.js +3 -3
  93. package/dist/index290.js +7 -3
  94. package/dist/index291.js +13 -0
  95. package/dist/index292.js +280 -7
  96. package/dist/index293.js +2 -200
  97. package/dist/index294.js +16 -701
  98. package/dist/index295.js +2 -354
  99. package/dist/index296.js +15 -57
  100. package/dist/index297.js +2 -3
  101. package/dist/index298.js +19 -5
  102. package/dist/index299.js +2 -280
  103. package/dist/index300.js +15 -2
  104. package/dist/index301.js +2 -125
  105. package/dist/index302.js +19 -2
  106. package/dist/index303.js +2 -16
  107. package/dist/index304.js +27 -2
  108. package/dist/index305.js +2 -16
  109. package/dist/index306.js +2 -2
  110. package/dist/index307.js +2 -19
  111. package/dist/index308.js +2 -2
  112. package/dist/index309.js +2 -15
  113. package/dist/index31.js +2 -2
  114. package/dist/index310.js +28 -2
  115. package/dist/index311.js +22 -5
  116. package/dist/index313.js +200 -3
  117. package/dist/index314.js +4 -17
  118. package/dist/index315.js +2 -6
  119. package/dist/index316.js +5 -4
  120. package/dist/index317.js +2 -8
  121. package/dist/index318.js +3 -28
  122. package/dist/index319.js +17 -3
  123. package/dist/index320.js +124 -3
  124. package/dist/index321.js +2 -19
  125. package/dist/index322.js +129 -2
  126. package/dist/index323.js +3 -27
  127. package/dist/index324.js +3 -2
  128. package/dist/index325.js +1 -1
  129. package/dist/index326.js +4 -2
  130. package/dist/index327.js +382 -2
  131. package/dist/index328.js +126 -2
  132. package/dist/index329.js +5 -22
  133. package/dist/index33.js +8 -8
  134. package/dist/{index288.js → index330.js} +1 -1
  135. package/dist/index331.js +5 -129
  136. package/dist/index332.js +701 -2
  137. package/dist/index333.js +353 -381
  138. package/dist/index334.js +56 -124
  139. package/dist/index335.js +8 -2
  140. package/dist/index336.js +5 -92
  141. package/dist/index337.js +7 -57
  142. package/dist/index338.js +7 -58
  143. package/dist/index339.js +32 -227
  144. package/dist/index340.js +28 -8
  145. package/dist/index342.js +57 -7
  146. package/dist/index343.js +58 -7
  147. package/dist/index344.js +2 -2
  148. package/dist/index345.js +227 -32
  149. package/dist/index346.js +2 -28
  150. package/dist/index347.js +49 -0
  151. package/dist/index35.js +4 -4
  152. package/dist/index350.js +92 -46
  153. package/dist/index352.js +1 -1
  154. package/dist/index353.js +463 -462
  155. package/dist/index354.js +47 -2
  156. package/dist/index355.js +462 -463
  157. package/dist/index356.js +2 -47
  158. package/dist/index37.js +22 -22
  159. package/dist/index39.js +5 -5
  160. package/dist/index41.js +2 -2
  161. package/dist/index43.js +8 -8
  162. package/dist/index45.js +8 -8
  163. package/dist/index47.js +2 -2
  164. package/dist/index49.js +3 -3
  165. package/dist/index53.js +1 -1
  166. package/dist/index55.js +1 -1
  167. package/dist/index57.js +2 -2
  168. package/dist/index61.js +3 -3
  169. package/dist/index67.js +1 -1
  170. package/dist/index79.js +4 -4
  171. package/dist/index81.js +1 -1
  172. package/dist/index83.js +2 -2
  173. package/dist/index85.js +1 -1
  174. package/dist/index87.js +1 -1
  175. package/dist/index90.js +4 -4
  176. package/dist/index92.js +2 -2
  177. package/dist/index94.js +3 -3
  178. package/dist/index96.js +1 -1
  179. package/package.json +2 -2
  180. package/dist/index213.js +0 -8
  181. package/dist/index215.js +0 -17
  182. package/dist/index217.js +0 -36
  183. package/dist/index240.js +0 -7
  184. package/dist/index255.js +0 -5
  185. package/dist/index272.js +0 -252
  186. package/dist/index312.js +0 -5
  187. package/dist/index341.js +0 -8
package/dist/index106.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as D, computed as V, toRef as r, ref as E, reactive as L, watch as m, createElementBlock as b, openBlock as B, Fragment as g, renderSlot as i, createCommentVNode as P, unref as R, renderList as j } from "vue";
2
2
  import { useItemValue as G } from "./index277.js";
3
- import { isNil as k } from "./index235.js";
3
+ import { isNil as k } from "./index263.js";
4
4
  import { indexBy as U } from "./index278.js";
5
- import { hash as p } from "./index255.js";
6
- import { useItemsGetter as W } from "./index258.js";
7
- import { usePrefill as q } from "./index261.js";
8
- import { useIndexById as z } from "./index249.js";
9
- import { useBaseOptions as J } from "./index248.js";
10
- import { useHashedWatcher as K } from "./index260.js";
5
+ import { hash as p } from "./index227.js";
6
+ import { useItemsGetter as W } from "./index241.js";
7
+ import { usePrefill as q } from "./index246.js";
8
+ import { useIndexById as z } from "./index242.js";
9
+ import { useBaseOptions as J } from "./index243.js";
10
+ import { useHashedWatcher as K } from "./index245.js";
11
11
  const oe = /* @__PURE__ */ D({
12
12
  __name: "BbRows",
13
13
  props: {
package/dist/index111.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as a, onMounted as m, onBeforeUnmount as p, createBlock as i, openBlock as l, resolveDynamicComponent as u, normalizeStyle as d, withCtx as f, renderSlot as h } from "vue";
2
- import { throttle as g } from "./index237.js";
2
+ import { throttle as g } from "./index276.js";
3
3
  const O = /* @__PURE__ */ v({
4
4
  __name: "BbSmoothHeight",
5
5
  props: {
package/dist/index113.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, computed as s, createElementBlock as b, openBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
2
- import { isCssColor as u } from "./index209.js";
2
+ import { isCssColor as u } from "./index261.js";
3
3
  const f = /* @__PURE__ */ p({
4
4
  __name: "BbSpinner",
5
5
  props: {
package/dist/index121.js CHANGED
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as ue, ref as K, computed as h, toRef as O, watch as D, reactive as pe, createBlock as Q, openBlock as n, resolveDynamicComponent as me, normalizeClass as p, unref as v, withCtx as fe, createElementBlock as d, createCommentVNode as g, createElementVNode as o, toDisplayString as m, renderSlot as f, Fragment as A, renderList as B, createVNode as X, createTextVNode as ye, mergeProps as he } from "vue";
2
2
  import { add as ve } from "./index279.js";
3
- import { clamp as ke } from "./index208.js";
4
- import { isNil as T } from "./index235.js";
3
+ import { clamp as ke } from "./index207.js";
4
+ import { isNil as T } from "./index263.js";
5
5
  import { useId as _e } from "./index8.js";
6
6
  import { useItemValue as ge } from "./index277.js";
7
- import { when as Ce } from "./index210.js";
7
+ import { when as Ce } from "./index253.js";
8
8
  import Y from "./index17.js";
9
9
  /* empty css */
10
10
  import we from "./index31.js";
11
11
  /* empty css */
12
- import { hash as E } from "./index255.js";
13
- import { useItemsGetter as Ie } from "./index258.js";
14
- import { usePrefill as Ve } from "./index261.js";
15
- import { useIndexById as Ae } from "./index249.js";
16
- import { useBaseOptions as Be } from "./index248.js";
17
- import { useHashedWatcher as Te } from "./index260.js";
18
- import { useLocale as $e } from "./index216.js";
12
+ import { hash as E } from "./index227.js";
13
+ import { useItemsGetter as Ie } from "./index241.js";
14
+ import { usePrefill as Ve } from "./index246.js";
15
+ import { useIndexById as Ae } from "./index242.js";
16
+ import { useBaseOptions as Be } from "./index243.js";
17
+ import { useHashedWatcher as Te } from "./index245.js";
18
+ import { useLocale as $e } from "./index219.js";
19
19
  const xe = {
20
20
  key: 0,
21
21
  class: "sr-only"
package/dist/index129.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as l, createBlock as o, openBlock as e, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
2
2
  import { useToast as k, state as b } from "./index11.js";
3
- import C from "./index215.js";
4
- import B from "./index281.js";
3
+ import C from "./index237.js";
4
+ import B from "./index280.js";
5
5
  const V = /* @__PURE__ */ l({
6
6
  __name: "BbToast",
7
7
  props: {
package/dist/index13.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as m, getCurrentInstance as h, computed as r, createBlock as i, openBlock as u, mergeProps as c, withCtx as d, renderSlot as p, createTextVNode as f, toDisplayString as v, resolveDynamicComponent as C } from "vue";
2
- import S from "./index217.js";
2
+ import S from "./index238.js";
3
3
  const A = /* @__PURE__ */ m({
4
4
  __name: "BaseButton",
5
5
  props: {
package/dist/index131.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as V, mergeModels as h, useTemplateRef as $, ref as g, useModel as D, createBlock as k, openBlock as y, normalizeClass as O, withCtx as i, createElementVNode as d, createCommentVNode as P, renderSlot as B, unref as u, normalizeProps as z, guardReactiveProps as F } from "vue";
2
- import { throttle as m } from "./index237.js";
2
+ import { throttle as m } from "./index276.js";
3
3
  import { useId as N } from "./index8.js";
4
- import { useLocale as R } from "./index216.js";
4
+ import { useLocale as R } from "./index219.js";
5
5
  import { wait as H } from "./index135.js";
6
6
  import I from "./index13.js";
7
7
  /* empty css */
8
- import S from "./index232.js";
8
+ import S from "./index271.js";
9
9
  /* empty css */
10
10
  const X = /* @__PURE__ */ V({
11
11
  __name: "BbTooltip",
package/dist/index133.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, computed as g, resolveComponent as y, createElementBlock as f, openBlock 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 "./index280.js";
2
+ import { flattenTree as T } from "./index281.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/index136.js CHANGED
@@ -1,4 +1,4 @@
1
- import { clamp as o } from "./index208.js";
1
+ import { clamp as o } from "./index207.js";
2
2
  const r = (t, e) => t * 100 / e, p = (t, e) => t / 100 * e, l = (t, e, n) => r(t - e, n - e), P = ({
3
3
  value: t = 0,
4
4
  originalBounds: e,
package/dist/index138.js CHANGED
@@ -1,4 +1,4 @@
1
- import { urlAlphabet as l } from "./index207.js";
1
+ import { urlAlphabet as l } from "./index208.js";
2
2
  let o = (t = 21) => {
3
3
  let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
4
4
  for (; t--; )
package/dist/index139.js CHANGED
@@ -1,5 +1,5 @@
1
- import { isArray as p } from "./index316.js";
2
- import { isPlainObject as c } from "./index317.js";
1
+ import { isArray as p } from "./index282.js";
2
+ import { isPlainObject as c } from "./index283.js";
3
3
  function i(e, n, u, l, r) {
4
4
  const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
5
5
  o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
package/dist/index15.js CHANGED
@@ -1,18 +1,18 @@
1
1
  import { defineComponent as H, ref as u, computed as D, createElementBlock as E, openBlock as I, Fragment as M, createVNode as p, normalizeClass as _, withCtx as n, unref as s, withDirectives as F, createElementVNode as c, mergeProps as T, renderSlot as r, withModifiers as q, normalizeStyle as L, nextTick as N } from "vue";
2
- import { isHex as O } from "./index218.js";
2
+ import { isHex as O } from "./index209.js";
3
3
  import { isNotNil as z } from "./index140.js";
4
- import { useFocusTrap as S } from "./index212.js";
4
+ import { useFocusTrap as S } from "./index210.js";
5
5
  import { useId as A } from "./index8.js";
6
- import { vMaska as K } from "./index219.js";
7
- import P from "./index220.js";
6
+ import { vMaska as K } from "./index211.js";
7
+ import P from "./index212.js";
8
8
  /* empty css */
9
- import R from "./index222.js";
9
+ import R from "./index214.js";
10
10
  /* empty css */
11
- import U from "./index224.js";
11
+ import U from "./index216.js";
12
12
  /* empty css */
13
- import j from "./index226.js";
13
+ import j from "./index218.js";
14
14
  import { wait as G } from "./index135.js";
15
- import { useLocale as J } from "./index216.js";
15
+ import { useLocale as J } from "./index219.js";
16
16
  const Q = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], W = ["aria-label"], X = { class: "bb-common-input-inner-container__suffix" }, ce = /* @__PURE__ */ H({
17
17
  __name: "BaseColorInput",
18
18
  props: {
package/dist/index17.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as E, ref as m, computed as n, watch as _, createElementBlock as p, openBlock as h, normalizeProps as i, guardReactiveProps as f, createCommentVNode as I, createElementVNode as l, mergeProps as k, renderSlot as F } from "vue";
2
- import { isCssColor as y } from "./index209.js";
3
- import { when as N } from "./index210.js";
4
- import { booleanishToBoolean as S } from "./index211.js";
2
+ import { isCssColor as y } from "./index261.js";
3
+ import { when as N } from "./index253.js";
4
+ import { booleanishToBoolean as S } from "./index262.js";
5
5
  const A = {
6
6
  "aria-hidden": "true",
7
7
  class: "bb-base-checkbox-container"
package/dist/index19.js CHANGED
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as b, guardReactiveProps as v, createVNode as R, mergeProps as T } from "vue";
2
2
  import W from "./index17.js";
3
3
  /* empty css */
4
- import K from "./index256.js";
4
+ import K from "./index239.js";
5
5
  /* empty css */
6
- import { useItemsGetter as N } from "./index258.js";
7
- import { useIndexById as w } from "./index249.js";
8
- import { useBaseOptions as U } from "./index248.js";
9
- import { useCoherence as q } from "./index259.js";
10
- import { hash as J } from "./index255.js";
11
- import { useHashedWatcher as C } from "./index260.js";
12
- import { usePrefill as Q } from "./index261.js";
6
+ import { useItemsGetter as N } from "./index241.js";
7
+ import { useIndexById as w } from "./index242.js";
8
+ import { useBaseOptions as U } from "./index243.js";
9
+ import { useCoherence as q } from "./index244.js";
10
+ import { hash as J } from "./index227.js";
11
+ import { useHashedWatcher as C } from "./index245.js";
12
+ import { usePrefill as Q } from "./index246.js";
13
13
  const de = /* @__PURE__ */ j({
14
14
  __name: "BaseCheckboxGroup",
15
15
  props: {
package/dist/index207.js CHANGED
@@ -1,4 +1,4 @@
1
- const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
1
+ const n = (t, a, m) => Math.min(Math.max(t, a), m);
2
2
  export {
3
- t as urlAlphabet
3
+ n as clamp
4
4
  };
package/dist/index208.js CHANGED
@@ -1,4 +1,4 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ const t = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
2
2
  export {
3
- n as clamp
3
+ t as urlAlphabet
4
4
  };
package/dist/index209.js CHANGED
@@ -1,4 +1,6 @@
1
- const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
2
4
  export {
3
- s as isCssColor
5
+ x as isHex
4
6
  };
package/dist/index21.js CHANGED
@@ -5,22 +5,22 @@ import { _config as C } from "./index4.js";
5
5
  import { useId as F } from "./index8.js";
6
6
  import f from "./index13.js";
7
7
  /* empty css */
8
- import s from "./index238.js";
9
- import G from "./index240.js";
10
- import J from "./index241.js";
11
- import K from "./index242.js";
12
- import Q from "./index243.js";
13
- import X from "./index269.js";
14
- import ee from "./index270.js";
15
- import { hash as M } from "./index255.js";
16
- import { last as ae } from "./index244.js";
17
- import { useLogger as te } from "./index271.js";
18
- import oe from "./index272.js";
19
- import le from "./index273.js";
20
- import re from "./index274.js";
21
- import B from "./index275.js";
22
- import se from "./index276.js";
23
- import { useLocale as de } from "./index216.js";
8
+ import s from "./index220.js";
9
+ import G from "./index221.js";
10
+ import J from "./index222.js";
11
+ import K from "./index223.js";
12
+ import Q from "./index224.js";
13
+ import X from "./index225.js";
14
+ import ee from "./index226.js";
15
+ import { hash as M } from "./index227.js";
16
+ import { last as ae } from "./index228.js";
17
+ import { useLogger as te } from "./index229.js";
18
+ import oe from "./index230.js";
19
+ import le from "./index231.js";
20
+ import re from "./index232.js";
21
+ import B from "./index233.js";
22
+ import se from "./index234.js";
23
+ import { useLocale as de } from "./index219.js";
24
24
  const ie = { class: "bb-base-date-picker" }, ne = { class: "bb-base-date-picker__body" }, ue = { class: "bb-base-date-picker__controls" }, me = { class: "sr-only" }, pe = { class: "sr-only" }, ce = { class: "sr-only" }, fe = {
25
25
  style: { transform: "rotate(180deg)" },
26
26
  viewBox: "0 0 24 24",
package/dist/index210.js CHANGED
@@ -1,6 +1,43 @@
1
- import { curry as e } from "./index282.js";
2
- const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
1
+ import { unrefElement as g } from "./index137.js";
2
+ import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
3
+ import { createFocusTrap as F } from "./index284.js";
4
+ import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
5
+ function N(f, a = {}) {
6
+ let t;
7
+ const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
8
+ t && (t.pause(), r.value = !0);
9
+ }, m = () => {
10
+ t && (t.unpause(), r.value = !1);
11
+ }, h = T(() => {
12
+ const e = i(f);
13
+ return A(e).map((d) => {
14
+ const s = i(d);
15
+ return typeof s == "string" ? s : g(s);
16
+ }).filter(D);
17
+ });
18
+ return w(
19
+ h,
20
+ (e) => {
21
+ e.length && (t = F(e, {
22
+ ...p,
23
+ onActivate() {
24
+ o.value = !0, a.onActivate && a.onActivate();
25
+ },
26
+ onDeactivate() {
27
+ o.value = !1, a.onDeactivate && a.onDeactivate();
28
+ }
29
+ }), l && c());
30
+ },
31
+ { flush: "post" }
32
+ ), y(() => u()), {
33
+ hasFocus: o,
34
+ isPaused: r,
35
+ activate: c,
36
+ deactivate: u,
37
+ pause: v,
38
+ unpause: m
39
+ };
40
+ }
3
41
  export {
4
- t as baseWhen,
5
- s as when
42
+ N as useFocusTrap
6
43
  };
package/dist/index211.js CHANGED
@@ -1,4 +1,22 @@
1
- const o = (e) => typeof e == "boolean" ? e : e === "true";
1
+ import { MaskInput as r } from "./index265.js";
2
+ const u = /* @__PURE__ */ new WeakMap(), p = (a, n) => {
3
+ if (a.arg == null || a.instance == null) return;
4
+ const s = "setup" in a.instance.$.type;
5
+ a.arg in a.instance ? a.instance[a.arg] = n : s && console.warn("Maska: please expose `%s` using defineExpose", a.arg);
6
+ }, k = (a, n) => {
7
+ var s;
8
+ const t = a instanceof HTMLInputElement ? a : a.querySelector("input");
9
+ if (t == null || (t == null ? void 0 : t.type) === "file") return;
10
+ let e = {};
11
+ if (n.value != null && (e = typeof n.value == "string" ? { mask: n.value } : { ...n.value }), n.arg != null) {
12
+ const l = (o) => {
13
+ const i = n.modifiers.unmasked ? o.unmasked : n.modifiers.completed ? o.completed : o.masked;
14
+ p(n, i);
15
+ };
16
+ e.onMaska = e.onMaska == null ? l : Array.isArray(e.onMaska) ? [...e.onMaska, l] : [e.onMaska, l];
17
+ }
18
+ u.has(t) ? (s = u.get(t)) == null || s.update(e) : u.set(t, new r(t, e));
19
+ };
2
20
  export {
3
- o as booleanishToBoolean
21
+ k as vMaska
4
22
  };
package/dist/index212.js CHANGED
@@ -1,43 +1,96 @@
1
- import { unrefElement as g } from "./index137.js";
2
- import { toArray as A, notNullish as D, tryOnScopeDispose as y } from "./index206.js";
3
- import { createFocusTrap as F } from "./index283.js";
4
- import { shallowRef as n, computed as T, toValue as i, watch as w } from "vue";
5
- function N(f, a = {}) {
6
- let t;
7
- const { immediate: l, ...p } = a, o = n(!1), r = n(!1), c = (e) => t && t.activate(e), u = (e) => t && t.deactivate(e), v = () => {
8
- t && (t.pause(), r.value = !0);
9
- }, m = () => {
10
- t && (t.unpause(), r.value = !1);
11
- }, h = T(() => {
12
- const e = i(f);
13
- return A(e).map((d) => {
14
- const s = i(d);
15
- return typeof s == "string" ? s : g(s);
16
- }).filter(D);
17
- });
18
- return w(
19
- h,
20
- (e) => {
21
- e.length && (t = F(e, {
22
- ...p,
23
- onActivate() {
24
- o.value = !0, a.onActivate && a.onActivate();
1
+ import { defineComponent as h, toRef as y, ref as o, computed as n, watch as x, createBlock as $, openBlock as b, withCtx as A, createElementBlock as k, mergeProps as l, createElementVNode as f, renderSlot as B } from "vue";
2
+ import C from "./index237.js";
3
+ import c from "./index344.js";
4
+ import { useFloating as D, arrow as E } from "./index252.js";
5
+ import { flip as P, offset as F, shift as M, autoUpdate as S } from "./index260.js";
6
+ const W = /* @__PURE__ */ h({
7
+ __name: "CommonFloating",
8
+ props: {
9
+ arrowPadding: {},
10
+ eager: { type: Boolean },
11
+ offset: {},
12
+ padding: {},
13
+ placement: {},
14
+ theme: { default: "default" },
15
+ transitionDuration: {},
16
+ containerAttributes: { default: () => ({}) },
17
+ bubbleAttributes: {},
18
+ wrapper: {},
19
+ baseClass: {},
20
+ open: { type: Boolean },
21
+ teleportTarget: {}
22
+ },
23
+ setup(d) {
24
+ const e = d, m = y(e, "wrapper"), i = o(), s = o(), p = o(), { floatingStyles: g, placement: w, middlewareData: a } = D(
25
+ i,
26
+ s,
27
+ {
28
+ placement: e.placement,
29
+ whileElementsMounted: S,
30
+ middleware: [
31
+ P(),
32
+ F(e.offset),
33
+ M({ padding: e.padding }),
34
+ E({
35
+ element: p,
36
+ padding: e.arrowPadding
37
+ })
38
+ ]
39
+ }
40
+ ), _ = n(() => {
41
+ if (a.value.arrow) {
42
+ const { x: t, y: r } = a.value.arrow;
43
+ return {
44
+ style: {
45
+ left: `${t}px`,
46
+ top: `${r}px`
47
+ }
48
+ };
49
+ }
50
+ }), u = n(() => {
51
+ var t, r;
52
+ return c({}, e.containerAttributes, {
53
+ class: {
54
+ "bb-floating": !0,
55
+ [`bb-floating--${w.value}`]: !0,
56
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
57
+ "bb-floating--hidden": !e.open,
58
+ "bb-floating--open": e.open
25
59
  },
26
- onDeactivate() {
27
- o.value = !1, a.onDeactivate && a.onDeactivate();
28
- }
29
- }), l && c());
30
- },
31
- { flush: "post" }
32
- ), y(() => u()), {
33
- hasFocus: o,
34
- isPaused: r,
35
- activate: c,
36
- deactivate: u,
37
- pause: v,
38
- unpause: m
39
- };
40
- }
60
+ style: {
61
+ ...g.value,
62
+ "--transition-duration": `${e.transitionDuration}ms`,
63
+ "--arrow-offset-x": Math.round(((r = (t = a.value) == null ? void 0 : t.arrow) == null ? void 0 : r.x) ?? 0) + "px"
64
+ },
65
+ tabindex: e.open ? void 0 : -1
66
+ });
67
+ }), v = n(() => c({}, e.bubbleAttributes, {}));
68
+ return x(
69
+ () => e.open,
70
+ (t) => {
71
+ t && (i.value = m.value);
72
+ }
73
+ ), (t, r) => (b(), $(C, { target: t.teleportTarget }, {
74
+ default: A(() => [
75
+ (b(), k("span", l(u.value, {
76
+ key: u.value.id,
77
+ ref_key: "content",
78
+ ref: s
79
+ }), [
80
+ f("span", l({
81
+ ref_key: "bubblearrow",
82
+ ref: p,
83
+ class: "bb-floating__arrow"
84
+ }, _.value), null, 16),
85
+ f("span", l({ class: "bb-floating__bubble" }, v.value), [
86
+ B(t.$slots, "default")
87
+ ], 16)
88
+ ], 16))
89
+ ]),
90
+ _: 3
91
+ }, 8, ["target"]));
92
+ }
93
+ });
41
94
  export {
42
- N as useFocusTrap
95
+ W as default
43
96
  };