bitboss-ui 2.0.167 → 2.0.168

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 (173) hide show
  1. package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -10
  2. package/dist/components/BbPopover/BbPopover.vue.d.ts +10 -10
  3. package/dist/components/BbTooltip/BbTooltip.vue.d.ts +8 -8
  4. package/dist/components/CommonPopover.vue.d.ts +6 -6
  5. package/dist/index106.js +7 -7
  6. package/dist/index111.js +1 -1
  7. package/dist/index113.js +1 -1
  8. package/dist/index121.js +9 -9
  9. package/dist/index129.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index131.js +7 -7
  12. package/dist/index15.js +8 -8
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +8 -8
  15. package/dist/index209.js +66 -4
  16. package/dist/index21.js +16 -16
  17. package/dist/index211.js +13 -20
  18. package/dist/index212.js +176 -93
  19. package/dist/index213.js +4 -0
  20. package/dist/index214.js +4 -200
  21. package/dist/index215.js +4 -0
  22. package/dist/index216.js +41 -66
  23. package/dist/index217.js +8 -0
  24. package/dist/index218.js +7 -13
  25. package/dist/index219.js +14 -12
  26. package/dist/index220.js +13 -5
  27. package/dist/index221.js +4 -5
  28. package/dist/index222.js +20 -5
  29. package/dist/index223.js +94 -5
  30. package/dist/index225.js +200 -5
  31. package/dist/index227.js +86 -3
  32. package/dist/index229.js +29 -8
  33. package/dist/index23.js +16 -16
  34. package/dist/index230.js +17 -250
  35. package/dist/index231.js +49 -50
  36. package/dist/index232.js +15 -44
  37. package/dist/index233.js +3 -5
  38. package/dist/index234.js +12 -60
  39. package/dist/index235.js +16 -6
  40. package/dist/index236.js +2 -7
  41. package/dist/index237.js +17 -14
  42. package/dist/index238.js +126 -32
  43. package/dist/index239.js +101 -81
  44. package/dist/index241.js +99 -28
  45. package/dist/index243.js +11 -50
  46. package/dist/index244.js +2 -15
  47. package/dist/index245.js +228 -12
  48. package/dist/index246.js +367 -15
  49. package/dist/index247.js +34 -5
  50. package/dist/index249.js +2 -2
  51. package/dist/index25.js +5 -5
  52. package/dist/index250.js +2 -9
  53. package/dist/index251.js +5 -18
  54. package/dist/index252.js +5 -128
  55. package/dist/index253.js +5 -4
  56. package/dist/index254.js +5 -106
  57. package/dist/index255.js +7 -0
  58. package/dist/index256.js +5 -100
  59. package/dist/index257.js +11 -0
  60. package/dist/index258.js +3 -12
  61. package/dist/index259.js +5 -228
  62. package/dist/index260.js +5 -368
  63. package/dist/index261.js +8 -2
  64. package/dist/index262.js +250 -2
  65. package/dist/index263.js +52 -2
  66. package/dist/index264.js +44 -3
  67. package/dist/index265.js +5 -177
  68. package/dist/index266.js +60 -2
  69. package/dist/index27.js +1 -1
  70. package/dist/index271.js +22 -22
  71. package/dist/index274.js +3 -6
  72. package/dist/index275.js +6 -16
  73. package/dist/index276.js +16 -3
  74. package/dist/index277.js +1 -1
  75. package/dist/index280.js +1 -1
  76. package/dist/index282.js +1 -1
  77. package/dist/index283.js +1 -1
  78. package/dist/index284.js +3 -470
  79. package/dist/index285.js +1 -1
  80. package/dist/index287.js +7 -3
  81. package/dist/index288.js +6 -0
  82. package/dist/index289.js +469 -5
  83. package/dist/index29.js +2 -2
  84. package/dist/index290.js +2 -7
  85. package/dist/index291.js +7 -11
  86. package/dist/index292.js +10 -279
  87. package/dist/index293.js +3 -2
  88. package/dist/index294.js +3 -16
  89. package/dist/index295.js +3 -2
  90. package/dist/index296.js +17 -16
  91. package/dist/index297.js +28 -2
  92. package/dist/index298.js +2 -19
  93. package/dist/index299.js +200 -2
  94. package/dist/index300.js +128 -14
  95. package/dist/index301.js +3 -2
  96. package/dist/index302.js +3 -19
  97. package/dist/index303.js +2 -2
  98. package/dist/index304.js +379 -24
  99. package/dist/index305.js +126 -2
  100. package/dist/index306.js +280 -2
  101. package/dist/index307.js +2 -2
  102. package/dist/index308.js +125 -2
  103. package/dist/index309.js +2 -2
  104. package/dist/index31.js +2 -2
  105. package/dist/index310.js +15 -27
  106. package/dist/index311.js +2 -22
  107. package/dist/index312.js +18 -0
  108. package/dist/index313.js +2 -200
  109. package/dist/index314.js +18 -3
  110. package/dist/index315.js +2 -2
  111. package/dist/index316.js +14 -5
  112. package/dist/index317.js +2 -2
  113. package/dist/index318.js +5 -3
  114. package/dist/index319.js +6 -17
  115. package/dist/index320.js +15 -121
  116. package/dist/index321.js +2 -2
  117. package/dist/index322.js +26 -128
  118. package/dist/index323.js +2 -3
  119. package/dist/index324.js +2 -3
  120. package/dist/index325.js +1 -1
  121. package/dist/index326.js +2 -4
  122. package/dist/index327.js +2 -382
  123. package/dist/index328.js +21 -125
  124. package/dist/index33.js +8 -8
  125. package/dist/index330.js +5 -3
  126. package/dist/index331.js +3 -5
  127. package/dist/index335.js +2 -8
  128. package/dist/index336.js +5 -6
  129. package/dist/index337.js +7 -8
  130. package/dist/index338.js +17 -5
  131. package/dist/index339.js +227 -32
  132. package/dist/index340.js +47 -28
  133. package/dist/index341.js +9 -0
  134. package/dist/index344.js +8 -5
  135. package/dist/index345.js +5 -227
  136. package/dist/index346.js +8 -2
  137. package/dist/index347.js +32 -46
  138. package/dist/index348.js +28 -7
  139. package/dist/index35.js +3 -3
  140. package/dist/index350.js +1 -1
  141. package/dist/index351.js +484 -0
  142. package/dist/index353.js +3 -482
  143. package/dist/index355.js +1 -1
  144. package/dist/index37.js +22 -22
  145. package/dist/index39.js +4 -4
  146. package/dist/index41.js +2 -2
  147. package/dist/index43.js +8 -8
  148. package/dist/index45.js +8 -8
  149. package/dist/index47.js +2 -2
  150. package/dist/index49.js +3 -3
  151. package/dist/index53.js +1 -1
  152. package/dist/index55.js +1 -1
  153. package/dist/index57.js +2 -2
  154. package/dist/index61.js +1 -1
  155. package/dist/index67.js +1 -1
  156. package/dist/index79.js +14 -14
  157. package/dist/index81.js +1 -1
  158. package/dist/index83.js +2 -2
  159. package/dist/index85.js +1 -1
  160. package/dist/index87.js +1 -1
  161. package/dist/index90.js +4 -4
  162. package/dist/index92.js +2 -2
  163. package/dist/index94.js +15 -15
  164. package/package.json +1 -1
  165. package/dist/index210.js +0 -43
  166. package/dist/index224.js +0 -7
  167. package/dist/index226.js +0 -7
  168. package/dist/index228.js +0 -4
  169. package/dist/index242.js +0 -19
  170. package/dist/index286.js +0 -5
  171. package/dist/index329.js +0 -7
  172. package/dist/index349.js +0 -21
  173. package/dist/index352.js +0 -5
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as l } from "./index261.js";
3
- import { isNil as B } from "./index263.js";
2
+ import { isCssColor as l } from "./index213.js";
3
+ import { isNil as B } from "./index250.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index61.js CHANGED
@@ -9,7 +9,7 @@ import T from "./index113.js";
9
9
  /* empty css */
10
10
  import { pickBy as W } from "./index267.js";
11
11
  import { noop as w } from "./index268.js";
12
- import { useLocale as D } from "./index219.js";
12
+ import { useLocale as D } from "./index220.js";
13
13
  const E = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index67.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
2
- import { useLocale as f } from "./index219.js";
2
+ import { useLocale as f } from "./index220.js";
3
3
  const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
4
4
  __name: "BbChip",
5
5
  props: {
package/dist/index79.js CHANGED
@@ -28,20 +28,20 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
28
28
  items: {},
29
29
  width: { default: 200 }
30
30
  },
31
- setup(K) {
32
- const u = K, d = u.id ?? `bb_${te().id.value}`, c = V(() => {
31
+ setup(R) {
32
+ const u = R, d = u.id ?? `bb_${te().id.value}`, c = V(() => {
33
33
  let e = u.items.findIndex((o) => !o.disabled), a = _(
34
34
  u.items,
35
35
  (o) => !o.disabled
36
36
  );
37
37
  return u.items.map((o, t) => {
38
- const n = `${d}-item-${o.key}`, { onClick: S, ...C } = o, N = async () => {
38
+ const n = `${d}-item-${o.key}`, { onClick: S, ...C } = o, z = async () => {
39
39
  await f();
40
40
  const s = document.querySelector(`#${d}`);
41
41
  if (s) s instanceof HTMLElement && s.focus();
42
42
  else return;
43
43
  S && S();
44
- }, R = (s) => {
44
+ }, N = (s) => {
45
45
  if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
46
46
  if (!i.value) return;
47
47
  if (s.key === "ArrowDown") {
@@ -81,8 +81,8 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
81
81
  key: o.key.split(/\W+/g).join("_").toLowerCase(),
82
82
  disabled: C.disabled || u.disabled,
83
83
  id: n,
84
- onClick: N,
85
- onKeydown: R
84
+ onClick: z,
85
+ onKeydown: N
86
86
  };
87
87
  });
88
88
  }), m = q("wrapper"), i = q("content");
@@ -93,9 +93,9 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
93
93
  },
94
94
  { threshold: [0, 1] }
95
95
  );
96
- const l = F(!1), g = ne(l), P = () => {
96
+ const l = F(!1), g = ne(l), K = () => {
97
97
  l.value ? f() : E();
98
- }, j = async (e) => {
98
+ }, P = async (e) => {
99
99
  let a = u.items.findIndex((t) => !t.disabled), o = _(
100
100
  u.items,
101
101
  (t) => !t.disabled
@@ -135,13 +135,13 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
135
135
  }
136
136
  f();
137
137
  }
138
- }, z = F(!1), E = async () => {
139
- z.value = !0, await ae(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", I, { passive: !0 }), document.addEventListener("keydown", M, { passive: !0 });
138
+ }, j = F(!1), E = async () => {
139
+ j.value = !0, await ae(50), l.value = !0, document.addEventListener("click", H, { passive: !0 }), document.addEventListener("focusin", I, { passive: !0 }), document.addEventListener("keydown", M, { passive: !0 });
140
140
  }, f = async () => {
141
141
  l.value = !1, document.removeEventListener("click", H), document.removeEventListener("focusin", I), document.removeEventListener("keydown", M);
142
142
  };
143
143
  return (e, a) => (b(), h(se, {
144
- ref_key: "wrapper",
144
+ ref_key: "wrapperRef",
145
145
  ref: m,
146
146
  "arrow-padding": e.arrowPadding,
147
147
  block: e.block,
@@ -160,8 +160,8 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
160
160
  "aria-expanded": p(g) ? l.value : !1,
161
161
  "aria-controls": p(g) ? `menu_${p(d)}` : void 0,
162
162
  id: p(d),
163
- onClick: P,
164
- onKeydown: j,
163
+ onClick: K,
164
+ onKeydown: P,
165
165
  disabled: e.disabled
166
166
  },
167
167
  disabled: e.disabled,
@@ -173,7 +173,7 @@ const ie = ["id", "aria-labelledby", "inert"], re = { class: "item__content" },
173
173
  p(g) ? (b(), T("span", {
174
174
  key: 0,
175
175
  id: `menu_${p(d)}`,
176
- ref_key: "content",
176
+ ref_key: "contentRef",
177
177
  ref: i,
178
178
  "aria-labelledby": p(d),
179
179
  "aria-role": "menu",
package/dist/index81.js CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
9
9
  /* empty css */
10
10
  import I from "./index113.js";
11
11
  /* empty css */
12
- import { useLocale as M } from "./index219.js";
12
+ import { useLocale as M } from "./index220.js";
13
13
  const O = { class: "bb-dropdown-button__content" }, R = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index83.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index275.js";
2
+ import { findInTree as ae } from "./index276.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index111.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index274.js")).default);
56
+ b || (b = (await import("./index275.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index85.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
2
- import { isCssColor as I } from "./index261.js";
2
+ import { isCssColor as I } from "./index213.js";
3
3
  const B = ["innerHTML"], k = /* @__PURE__ */ v({
4
4
  __name: "BbIcon",
5
5
  props: {
package/dist/index87.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index276.js";
2
+ import { throttle as c } from "./index274.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index90.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as l, useAttrs as ne, computed as u, getCurrentInstance as ie, onBeforeUnmount as A, onMounted as re, watch as ue, createBlock as ce, openBlock as g, withCtx as de, createElementVNode as s, mergeProps as E, createElementBlock as $, createCommentVNode as T, renderSlot as n, createTextVNode as fe, toDisplayString as H, unref as ve, nextTick as pe } from "vue";
2
- import { useFocusTrap as be } from "./index210.js";
2
+ import { useFocusTrap as be } from "./index216.js";
3
3
  import { useId as I } from "./index8.js";
4
4
  import { wait as D } from "./index135.js";
5
- import { useModalsState as b } from "./index236.js";
6
- import me from "./index237.js";
5
+ import { useModalsState as b } from "./index218.js";
6
+ import me from "./index219.js";
7
7
  import { useMobile as ye } from "./index9.js";
8
- import { useLocale as he } from "./index219.js";
8
+ import { useLocale as he } from "./index220.js";
9
9
  const ge = ["inert"], _e = { class: "bb-offcanvas-close" }, ke = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index92.js CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
3
3
  /* empty css */
4
4
  import P from "./index13.js";
5
5
  /* empty css */
6
- import { debounce as X } from "./index250.js";
7
- import { useLocale as H } from "./index219.js";
6
+ import { debounce as X } from "./index257.js";
7
+ import { useLocale as H } from "./index220.js";
8
8
  import { useRoute as J } from "./index142.js";
9
9
  const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
10
10
  __name: "BbPagination",
package/dist/index94.js CHANGED
@@ -1,13 +1,13 @@
1
- import { defineComponent as V, useTemplateRef as b, ref as D, computed as w, createBlock as h, openBlock as c, normalizeClass as M, withCtx as u, createElementBlock as z, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as f, toDisplayString as O, normalizeProps as S, guardReactiveProps as H, nextTick as I } from "vue";
2
- import { useId as N } from "./index8.js";
3
- import { useIntersectionObserver as R } from "./index137.js";
4
- import { useLocale as U } from "./index219.js";
1
+ import { defineComponent as R, useTemplateRef as b, ref as V, computed as w, createBlock as h, openBlock as c, normalizeClass as D, withCtx as u, createElementBlock as M, createCommentVNode as g, unref as k, renderSlot as y, createElementVNode as f, toDisplayString as z, normalizeProps as O, guardReactiveProps as S, nextTick as H } from "vue";
2
+ import { useId as I } from "./index8.js";
3
+ import { useIntersectionObserver as N } from "./index137.js";
4
+ import { useLocale as U } from "./index220.js";
5
5
  import { useUntil as W } from "./index270.js";
6
6
  import q from "./index13.js";
7
7
  /* empty css */
8
8
  import A from "./index271.js";
9
9
  /* empty css */
10
- const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ V({
10
+ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @__PURE__ */ R({
11
11
  __name: "BbPopover",
12
12
  props: {
13
13
  arrowPadding: { default: 10 },
@@ -27,15 +27,15 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
27
27
  },
28
28
  emits: ["shown", "hidden"],
29
29
  setup(C, { expose: $, emit: L }) {
30
- const a = C, n = L, { t: _ } = U(), { id: B } = N(), i = `bbp_${B.value}`, r = b("wrapper"), d = b("content");
31
- R(
30
+ const a = C, n = L, { t: _ } = U(), { id: B } = I(), i = `bbp_${B.value}`, r = b("wrapper"), d = b("content");
31
+ N(
32
32
  r,
33
33
  async ([{ intersectionRatio: e }]) => {
34
34
  e !== 1 && o.value && (await l(), n("hidden"));
35
35
  },
36
36
  { threshold: [0, 1] }
37
37
  );
38
- const o = D(!1), T = W(o), m = (e) => {
38
+ const o = V(!1), T = W(o), m = (e) => {
39
39
  var t;
40
40
  e.target instanceof HTMLElement && ((t = d.value) != null && t.contains(e.target) || l());
41
41
  }, P = async () => {
@@ -51,7 +51,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
51
51
  if (a.disabled) return;
52
52
  await P();
53
53
  let e = a.focusTarget ?? ".bb-popover__close";
54
- await I();
54
+ await H();
55
55
  const t = (s = d.value) == null ? void 0 : s.querySelector(e);
56
56
  t instanceof HTMLElement && (t.focus(), n("shown"));
57
57
  }, p = async () => {
@@ -67,13 +67,13 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
67
67
  close: p,
68
68
  closed: w(() => !o.value)
69
69
  }), (e, t) => (c(), h(A, {
70
- ref_key: "wrapper",
70
+ ref_key: "wrapperRef",
71
71
  ref: r,
72
72
  modelValue: o.value,
73
73
  "onUpdate:modelValue": t[0] || (t[0] = (s) => o.value = s),
74
74
  "arrow-padding": e.arrowPadding,
75
75
  block: e.block,
76
- class: M(["bb-popover", {
76
+ class: D(["bb-popover", {
77
77
  [`bb-popover--${e.theme}`]: !0
78
78
  }]),
79
79
  "container-attributes": {
@@ -89,7 +89,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
89
89
  "transition-duration": e.transitionDuration
90
90
  }, {
91
91
  activator: u(() => [
92
- y(e.$slots, "activator", S(H({
92
+ y(e.$slots, "activator", O(S({
93
93
  props: {
94
94
  "aria-controls": `popover_${i}`,
95
95
  "aria-expanded": o.value,
@@ -103,9 +103,9 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
103
103
  })))
104
104
  ]),
105
105
  default: u(() => [
106
- k(T) ? (c(), z("span", {
106
+ k(T) ? (c(), M("span", {
107
107
  key: 0,
108
- ref_key: "content",
108
+ ref_key: "contentRef",
109
109
  ref: d,
110
110
  class: "bb-popover__content",
111
111
  inert: !o.value
@@ -116,7 +116,7 @@ const Z = ["inert"], j = { class: "bb-popover__close-label sr-only" }, oe = /* @
116
116
  onClick: p
117
117
  }, {
118
118
  default: u(() => [
119
- f("span", j, O(e.closeLabel || k(_)("common.closeLabel").value), 1),
119
+ f("span", j, z(e.closeLabel || k(_)("common.closeLabel").value), 1),
120
120
  t[1] || (t[1] = f("svg", {
121
121
  fill: "none",
122
122
  viewBox: "0 0 24 24",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.167",
3
+ "version": "2.0.168",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index210.js DELETED
@@ -1,43 +0,0 @@
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
- }
41
- export {
42
- N as useFocusTrap
43
- };
package/dist/index224.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index316.js";
2
- import { __require as e } from "./index300.js";
3
- var o = e();
4
- const m = /* @__PURE__ */ r(o);
5
- export {
6
- m as default
7
- };
package/dist/index226.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as e } from "./index316.js";
2
- import { __require as r } from "./index304.js";
3
- var o = r();
4
- const f = /* @__PURE__ */ e(o);
5
- export {
6
- f as default
7
- };
package/dist/index228.js DELETED
@@ -1,4 +0,0 @@
1
- const e = (t) => t[t.length - 1];
2
- export {
3
- e as last
4
- };
package/dist/index242.js DELETED
@@ -1,19 +0,0 @@
1
- import { computed as i, unref as m } from "vue";
2
- import { hash as s } from "./index227.js";
3
- const p = ({ items: a, key: r }) => {
4
- const n = i(() => {
5
- const t = {}, c = new Array().concat(m(a));
6
- for (let e = 0; e < c.length; e++) {
7
- const o = c[e], u = r ? String(o[r]) : s(o);
8
- t[u] = o;
9
- }
10
- return t;
11
- });
12
- return {
13
- data: n,
14
- get: (t) => r ? n.value[String(t[r])] : n.value[s(t)]
15
- };
16
- };
17
- export {
18
- p as useIndexById
19
- };
package/dist/index286.js DELETED
@@ -1,5 +0,0 @@
1
- import o from "./index214.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
package/dist/index329.js DELETED
@@ -1,7 +0,0 @@
1
- import { getDefaultExportFromCjs as r } from "./index316.js";
2
- import { __require as o } from "./index345.js";
3
- var e = o();
4
- const s = /* @__PURE__ */ r(e);
5
- export {
6
- s as default
7
- };
package/dist/index349.js DELETED
@@ -1,21 +0,0 @@
1
- function l(t, ...e) {
2
- if (t.length) {
3
- const o = t[0];
4
- if (typeof o == "string") return [...t].sort(r);
5
- if (typeof o == "number") return [...t].sort(r);
6
- if (e && e.length)
7
- return [...t].sort((f, u) => {
8
- for (let n = 0; n < e.length; n++) {
9
- const i = e[n], s = r(f[i], u[i]);
10
- if (s) return s;
11
- }
12
- return 0;
13
- });
14
- throw new Error("Invalid comparison");
15
- }
16
- return t;
17
- }
18
- const r = (t, e) => t < e ? -1 : t > e ? 1 : 0;
19
- export {
20
- l as sort
21
- };
package/dist/index352.js DELETED
@@ -1,5 +0,0 @@
1
- import o from "./index340.js";
2
- /* empty css */
3
- export {
4
- o as default
5
- };