bitboss-ui 2.0.59 → 2.0.61

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 (143) hide show
  1. package/dist/index110.js +4 -4
  2. package/dist/index118.js +1 -1
  3. package/dist/index120.js +4 -4
  4. package/dist/index126.js +1 -1
  5. package/dist/index127.js +1 -1
  6. package/dist/index128.js +1 -1
  7. package/dist/index13.js +1 -1
  8. package/dist/index130.js +1 -1
  9. package/dist/index132.js +2 -2
  10. package/dist/index15.js +4 -4
  11. package/dist/index17.js +3 -3
  12. package/dist/index19.js +2 -2
  13. package/dist/index204.js +2 -81
  14. package/dist/index205.js +162 -3
  15. package/dist/index206.js +84 -3
  16. package/dist/index208.js +7 -5
  17. package/dist/index209.js +53 -7
  18. package/dist/index21.js +14 -14
  19. package/dist/index211.js +13 -281
  20. package/dist/index212.js +19 -15
  21. package/dist/index213.js +4 -16
  22. package/dist/index214.js +5 -19
  23. package/dist/index215.js +13 -16
  24. package/dist/index216.js +13 -24
  25. package/dist/index217.js +19 -3
  26. package/dist/index218.js +19 -2
  27. package/dist/index219.js +25 -247
  28. package/dist/index220.js +3 -52
  29. package/dist/index221.js +2 -44
  30. package/dist/index222.js +249 -5
  31. package/dist/index223.js +43 -40
  32. package/dist/index224.js +44 -2
  33. package/dist/index225.js +4 -52
  34. package/dist/index226.js +51 -0
  35. package/dist/index227.js +2 -13
  36. package/dist/index228.js +4 -20
  37. package/dist/index229.js +2 -4
  38. package/dist/index23.js +12 -12
  39. package/dist/index230.js +4 -4
  40. package/dist/index231.js +2 -2
  41. package/dist/index233.js +41 -5
  42. package/dist/index234.js +6 -369
  43. package/dist/index235.js +5 -2
  44. package/dist/index236.js +369 -4
  45. package/dist/index237.js +3 -2
  46. package/dist/index238.js +3 -162
  47. package/dist/index239.js +7 -84
  48. package/dist/index240.js +83 -0
  49. package/dist/index241.js +2 -2
  50. package/dist/index242.js +2 -18
  51. package/dist/index243.js +17 -105
  52. package/dist/index244.js +108 -0
  53. package/dist/{index245.js → index246.js} +1 -1
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +3 -224
  56. package/dist/index251.js +11 -430
  57. package/dist/index252.js +7 -87
  58. package/dist/index253.js +9 -6
  59. package/dist/index254.js +17 -2
  60. package/dist/index255.js +4 -2
  61. package/dist/index256.js +3 -2
  62. package/dist/index258.js +7 -2
  63. package/dist/index259.js +176 -2
  64. package/dist/index260.js +281 -2
  65. package/dist/index261.js +6 -2
  66. package/dist/index262.js +2 -2
  67. package/dist/index263.js +2 -2
  68. package/dist/index264.js +2 -28
  69. package/dist/index265.js +2 -22
  70. package/dist/index267.js +2 -7
  71. package/dist/index268.js +2 -3
  72. package/dist/index269.js +4 -0
  73. package/dist/index27.js +1 -1
  74. package/dist/index270.js +2 -176
  75. package/dist/index271.js +2 -3
  76. package/dist/index272.js +27 -8
  77. package/dist/index273.js +22 -23
  78. package/dist/index275.js +4 -16
  79. package/dist/index276.js +2 -200
  80. package/dist/index277.js +124 -7
  81. package/dist/index278.js +431 -2
  82. package/dist/index279.js +21 -125
  83. package/dist/index281.js +5 -0
  84. package/dist/index282.js +8 -3
  85. package/dist/index283.js +23 -3
  86. package/dist/index284.js +224 -12
  87. package/dist/index285.js +199 -8
  88. package/dist/index286.js +436 -9
  89. package/dist/index287.js +126 -16
  90. package/dist/index288.js +6 -4
  91. package/dist/index289.js +15 -435
  92. package/dist/index29.js +3 -3
  93. package/dist/index290.js +7 -125
  94. package/dist/index291.js +89 -3
  95. package/dist/index292.js +1 -1
  96. package/dist/index293.js +3 -211
  97. package/dist/index294.js +204 -59
  98. package/dist/index297.js +1 -1
  99. package/dist/index298.js +1 -1
  100. package/dist/index299.js +66 -4
  101. package/dist/index300.js +7 -79
  102. package/dist/index301.js +21 -0
  103. package/dist/index302.js +3 -32
  104. package/dist/index304.js +32 -6
  105. package/dist/index305.js +10 -18
  106. package/dist/index306.js +79 -4
  107. package/dist/index308.js +4 -59
  108. package/dist/index309.js +4 -47
  109. package/dist/index31.js +2 -2
  110. package/dist/index310.js +58 -10
  111. package/dist/index311.js +47 -2
  112. package/dist/index312.js +4 -0
  113. package/dist/index314.js +470 -414
  114. package/dist/index315.js +420 -43
  115. package/dist/index317.js +49 -0
  116. package/dist/index33.js +2 -2
  117. package/dist/index35.js +2 -2
  118. package/dist/index37.js +60 -60
  119. package/dist/index39.js +4 -4
  120. package/dist/index41.js +2 -2
  121. package/dist/index43.js +2 -2
  122. package/dist/index45.js +6 -6
  123. package/dist/index47.js +2 -2
  124. package/dist/index49.js +2 -2
  125. package/dist/index55.js +1 -1
  126. package/dist/index57.js +1 -1
  127. package/dist/index75.js +3 -3
  128. package/dist/index79.js +2 -2
  129. package/dist/index81.js +1 -1
  130. package/dist/index84.js +42 -41
  131. package/dist/index86.js +1 -1
  132. package/dist/index88.js +3 -3
  133. package/dist/index90.js +1 -1
  134. package/dist/style.css +1 -1
  135. package/package.json +1 -1
  136. package/dist/index207.js +0 -43
  137. package/dist/index210.js +0 -10
  138. package/dist/index247.js +0 -4
  139. package/dist/index274.js +0 -8
  140. package/dist/index280.js +0 -24
  141. package/dist/index307.js +0 -6
  142. package/dist/index313.js +0 -482
  143. /package/dist/{index257.js → index266.js} +0 -0
package/dist/index223.js CHANGED
@@ -1,51 +1,54 @@
1
- import { defineComponent as p, ref as _, computed as b, onMounted as f, openBlock as n, createElementBlock as o, createElementVNode as k, Fragment as y, renderList as h, unref as g, createBlock as v, normalizeClass as x, withCtx as B, createTextVNode as C, toDisplayString as E } from "vue";
2
- import { range as w } from "./index303.js";
3
- import D from "./index13.js";
4
- /* empty css */
5
- const S = { class: "content" }, c = 100, V = /* @__PURE__ */ p({
6
- __name: "BaseDatePickerYearSelector",
1
+ import { defineComponent as p, ref as b, watch as _, computed as m, openBlock as d, createElementBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
+ import k from "./index225.js";
3
+ const y = { class: "bb-base-date-picker__year-container" }, v = {
4
+ "aria-live": "polite",
5
+ class: "bb-base-date-picker__selected-day-label"
6
+ }, B = { class: "bb-base-date-picker__weekday" }, D = { class: "bb-base-date-picker__monthday" }, M = { class: "bb-base-date-picker__month-button" }, C = /* @__PURE__ */ p({
7
+ __name: "BaseDatePickerHeader",
7
8
  props: {
8
9
  cursor: {},
9
- disabled: { type: Boolean }
10
+ disabled: { type: Boolean },
11
+ hidden: { type: Boolean }
10
12
  },
11
- emits: ["update:year"],
12
- setup(s, { emit: l }) {
13
- const i = s, d = l, r = _(), u = b(() => i.cursor.year()), a = (/* @__PURE__ */ new Date()).getFullYear() - c / 2, m = w(a, a + c).map((e) => ({
14
- text: e,
15
- key: e,
16
- selected: e === u.value,
17
- handler: () => d("update:year", e)
18
- }));
19
- return f(() => {
20
- if (!r.value) return;
21
- const e = r.value.querySelector(
22
- ".content__btn--selected"
23
- );
24
- e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
25
- }), (e, T) => (n(), o("div", {
26
- ref_key: "container",
27
- ref: r,
28
- class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
13
+ emits: ["mode:year", "mode:month"],
14
+ setup(n) {
15
+ const s = n, r = b("top"), l = (e, a) => {
16
+ e && a && (r.value = e.isBefore(a) ? "top" : "bottom");
17
+ };
18
+ _(
19
+ () => s.cursor,
20
+ (e, a) => {
21
+ l(e, a);
22
+ }
23
+ );
24
+ const i = m(() => s.cursor.format("YYYY"));
25
+ return (e, a) => (d(), c("div", {
26
+ class: u(["bb-base-date-picker__header", { "bb-base-date-picker__header--hidden": e.hidden }])
29
27
  }, [
30
- k("div", S, [
31
- (n(!0), o(y, null, h(g(m), (t) => (n(), v(D, {
32
- key: t.key,
33
- class: x({
34
- content__btn: !0,
35
- "content__btn--selected": t.selected
36
- }),
37
- disabled: e.disabled,
38
- onClick: t.handler
28
+ t("div", y, [
29
+ h(k, {
30
+ direction: r.value,
31
+ duration: 500,
32
+ gap: 30
39
33
  }, {
40
- default: B(() => [
41
- C(E(t.text), 1)
34
+ default: f(() => [
35
+ (d(), c("span", {
36
+ key: i.value,
37
+ "aria-live": "polite",
38
+ class: "bb-base-date-picker__year-button"
39
+ }, o(i.value), 1))
42
40
  ]),
43
- _: 2
44
- }, 1032, ["class", "disabled", "onClick"]))), 128))
41
+ _: 1
42
+ }, 8, ["direction"])
43
+ ]),
44
+ t("div", v, [
45
+ t("span", B, o(e.cursor.format("ddd")) + ", ", 1),
46
+ t("span", D, o(e.cursor.format("DD")), 1),
47
+ t("span", M, o(e.cursor.format("MMMM")), 1)
45
48
  ])
46
- ], 512));
49
+ ], 2));
47
50
  }
48
51
  });
49
52
  export {
50
- V as default
53
+ C as default
51
54
  };
package/dist/index224.js CHANGED
@@ -1,4 +1,46 @@
1
- const n = (t, a, m) => Math.min(Math.max(t, a), m);
1
+ import { defineComponent as _, computed as a, openBlock as o, createElementBlock as c, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
2
+ import C from "./index13.js";
3
+ /* empty css */
4
+ const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
+ __name: "BaseDatePickerMonthSelector",
6
+ props: {
7
+ cursor: {},
8
+ disabled: { type: Boolean }
9
+ },
10
+ emits: ["update:month"],
11
+ setup(l, { emit: d }) {
12
+ const s = l, m = d, i = a(() => s.cursor.month()), u = a(
13
+ () => new Array(12).fill(0).map((r, t) => {
14
+ const n = s.cursor.clone().startOf("year").add(t, "month");
15
+ return {
16
+ text: n.format("MMMM"),
17
+ key: n.unix(),
18
+ selected: n.month() === i.value,
19
+ handler: () => m("update:month", t)
20
+ };
21
+ })
22
+ );
23
+ return (r, t) => (o(), c("div", M, [
24
+ p("div", v, [
25
+ (o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
26
+ key: e.key,
27
+ class: f({
28
+ content__btn: !0,
29
+ "content__btn--selected": e.selected
30
+ }),
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
34
+ }, {
35
+ default: y(() => [
36
+ x(B(e.text), 1)
37
+ ]),
38
+ _: 2
39
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
40
+ ])
41
+ ]));
42
+ }
43
+ });
2
44
  export {
3
- n as clamp
45
+ E as default
4
46
  };
package/dist/index225.js CHANGED
@@ -1,55 +1,7 @@
1
- import { defineComponent as f, ref as d, openBlock as r, createElementBlock as _, renderSlot as e, createElementVNode as t, createBlock as s, unref as p, createCommentVNode as i, createVNode as c } from "vue";
2
- /* empty css */
3
- /* empty css */
4
- import a from "./index126.js";
1
+ import o from "./index273.js";
5
2
  /* empty css */
6
- import $ from "./index128.js";
7
- /* empty css */
8
- import b from "./index302.js";
9
- const y = { class: "bb-common-input-inner-container__prefix" }, k = { class: "bb-common-input-inner-container__suffix" }, S = /* @__PURE__ */ f({
10
- __name: "CommonInputInnerContainer",
11
- props: {
12
- "append:icon": {},
13
- "prepend:icon": {},
14
- preventFocus: { type: Boolean }
15
- },
16
- setup(m) {
17
- const u = m, o = d(), l = () => {
18
- var n;
19
- !o.value || u.preventFocus || (n = o.value.querySelector("input")) == null || n.focus();
20
- };
21
- return (n, C) => (r(), _("span", {
22
- ref_key: "container",
23
- ref: o,
24
- class: "bb-common-input-inner-container",
25
- onClick: l
26
- }, [
27
- e(n.$slots, "prepend", {}, () => [
28
- t("span", y, [
29
- e(n.$slots, "prefix")
30
- ])
31
- ]),
32
- n.$props["prepend:icon"] ? (r(), s(p(a), {
33
- key: 0,
34
- class: "bb-common-input-inner-container__prepend-icon",
35
- type: n.$props["prepend:icon"]
36
- }, null, 8, ["type"])) : i("", !0),
37
- e(n.$slots, "default"),
38
- n.$props["append:icon"] ? (r(), s(p(a), {
39
- key: 1,
40
- class: "bb-common-input-inner-container__append-icon",
41
- type: n.$props["append:icon"]
42
- }, null, 8, ["type"])) : i("", !0),
43
- c(p($)),
44
- c(b),
45
- e(n.$slots, "append", {}, () => [
46
- t("span", k, [
47
- e(n.$slots, "suffix")
48
- ])
49
- ])
50
- ], 512));
51
- }
52
- });
3
+ import t from "./index258.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
53
5
  export {
54
- S as default
6
+ m as default
55
7
  };
@@ -0,0 +1,51 @@
1
+ import { defineComponent as p, ref as _, computed as b, onMounted as f, openBlock as n, createElementBlock as o, createElementVNode as k, Fragment as y, renderList as h, unref as g, createBlock as v, normalizeClass as x, withCtx as B, createTextVNode as C, toDisplayString as E } from "vue";
2
+ import { range as w } from "./index303.js";
3
+ import D from "./index13.js";
4
+ /* empty css */
5
+ const S = { class: "content" }, c = 100, V = /* @__PURE__ */ p({
6
+ __name: "BaseDatePickerYearSelector",
7
+ props: {
8
+ cursor: {},
9
+ disabled: { type: Boolean }
10
+ },
11
+ emits: ["update:year"],
12
+ setup(s, { emit: l }) {
13
+ const i = s, d = l, r = _(), u = b(() => i.cursor.year()), a = (/* @__PURE__ */ new Date()).getFullYear() - c / 2, m = w(a, a + c).map((e) => ({
14
+ text: e,
15
+ key: e,
16
+ selected: e === u.value,
17
+ handler: () => d("update:year", e)
18
+ }));
19
+ return f(() => {
20
+ if (!r.value) return;
21
+ const e = r.value.querySelector(
22
+ ".content__btn--selected"
23
+ );
24
+ e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
25
+ }), (e, T) => (n(), o("div", {
26
+ ref_key: "container",
27
+ ref: r,
28
+ class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
29
+ }, [
30
+ k("div", S, [
31
+ (n(!0), o(y, null, h(g(m), (t) => (n(), v(D, {
32
+ key: t.key,
33
+ class: x({
34
+ content__btn: !0,
35
+ "content__btn--selected": t.selected
36
+ }),
37
+ disabled: e.disabled,
38
+ onClick: t.handler
39
+ }, {
40
+ default: B(() => [
41
+ C(E(t.text), 1)
42
+ ]),
43
+ _: 2
44
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
45
+ ])
46
+ ], 512));
47
+ }
48
+ });
49
+ export {
50
+ V as default
51
+ };
package/dist/index227.js CHANGED
@@ -1,15 +1,4 @@
1
- import { openBlock as t, createElementBlock as n, renderSlot as e } from "vue";
2
- /* empty css */
3
- import r from "./index267.js";
4
- const s = {}, c = { class: "bb-common-input-outer-container" };
5
- function p(o, a) {
6
- return t(), n("span", c, [
7
- e(o.$slots, "prepend-outer"),
8
- e(o.$slots, "default"),
9
- e(o.$slots, "append-outer")
10
- ]);
11
- }
12
- const i = /* @__PURE__ */ r(s, [["render", p]]);
1
+ const s = (r) => !!r && !!r.match(/^(#|var\(--|(rgb|hsl)a?\()/);
13
2
  export {
14
- i as default
3
+ s as isCssColor
15
4
  };
package/dist/index228.js CHANGED
@@ -1,22 +1,6 @@
1
- import { MaskInput as r } from "./index270.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
- };
1
+ import { curry as e } from "./index275.js";
2
+ const t = (n, o, r) => n(r) ? o(r) : r, s = e(t);
20
3
  export {
21
- k as vMaska
4
+ t as baseWhen,
5
+ s as when
22
6
  };
package/dist/index229.js CHANGED
@@ -1,6 +1,4 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
1
+ const o = (e) => typeof e == "boolean" ? e : e === "true";
4
2
  export {
5
- x as isHex
3
+ o as booleanishToBoolean
6
4
  };
package/dist/index23.js CHANGED
@@ -1,26 +1,26 @@
1
1
  import { defineComponent as ae, ref as o, computed as v, watch as oe, openBlock as w, createBlock as V, normalizeClass as B, withCtx as i, renderSlot as d, createVNode as E, withDirectives as ne, createElementVNode as r, mergeProps as I, unref as c, withModifiers as re, toDisplayString as F, Teleport as le, normalizeStyle as ie, KeepAlive as se, createCommentVNode as L } from "vue";
2
2
  import { useFloating as ue } from "./index230.js";
3
- import n from "./index211.js";
3
+ import n from "./index214.js";
4
4
  import de from "./index231.js";
5
- import ce from "./index214.js";
6
- import pe from "./index212.js";
7
- import me from "./index213.js";
5
+ import ce from "./index217.js";
6
+ import pe from "./index215.js";
7
+ import me from "./index216.js";
8
8
  import { identity as fe } from "./index232.js";
9
- import { last as be } from "./index218.js";
10
- import { useFocusTrap as ve } from "./index207.js";
9
+ import { last as be } from "./index221.js";
10
+ import { useFocusTrap as ve } from "./index233.js";
11
11
  import { useId as ye } from "./index8.js";
12
12
  import { useIntersectionObserver as ge } from "./index132.js";
13
13
  import { useMobile as ke } from "./index9.js";
14
- import { vMaska as Me } from "./index228.js";
14
+ import { vMaska as Me } from "./index212.js";
15
15
  import { wait as he } from "./index131.js";
16
- import { waitFor as we } from "./index208.js";
16
+ import { waitFor as we } from "./index234.js";
17
17
  import Ve from "./index21.js";
18
18
  /* empty css */
19
- import Ce from "./index225.js";
19
+ import Ce from "./index209.js";
20
20
  /* empty css */
21
- import Ye from "./index227.js";
22
- import Ae from "./index233.js";
23
- import { autoUpdate as De, flip as Se, offset as $e, shift as Oe, hide as _e } from "./index234.js";
21
+ import Ye from "./index211.js";
22
+ import Ae from "./index235.js";
23
+ import { autoUpdate as De, flip as Se, offset as $e, shift as Oe, hide as _e } from "./index236.js";
24
24
  const Be = ["id", "aria-describedby", "autocomplete", "autofocus", "data-maska", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "value"], Ee = ["disabled"], Ie = { class: "sr-only" }, Fe = ["id"], rt = /* @__PURE__ */ ae({
25
25
  __name: "BaseDatePickerInput",
26
26
  props: {
package/dist/index230.js CHANGED
@@ -1,7 +1,7 @@
1
- import { arrow as j, computePosition as A } from "./index234.js";
2
- import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index234.js";
3
- import { isNode as B, getNodeName as F } from "./index279.js";
4
- import { getOverflowAncestors as le } from "./index279.js";
1
+ import { arrow as j, computePosition as A } from "./index236.js";
2
+ import { autoUpdate as W, flip as X, hide as Y, offset as Z, platform as ee, shift as ne } from "./index236.js";
3
+ import { isNode as B, getNodeName as F } from "./index277.js";
4
+ import { getOverflowAncestors as le } from "./index277.js";
5
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
6
  function z(e) {
7
7
  return e != null && typeof e == "object" && "$el" in e;
package/dist/index231.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as et, commonjsGlobal as nt } from "./index253.js";
2
- import { __module as B } from "./index278.js";
1
+ import { getDefaultExportFromCjs as et, commonjsGlobal as nt } from "./index261.js";
2
+ import { __module as B } from "./index276.js";
3
3
  (function(I, at) {
4
4
  (function(U, k) {
5
5
  I.exports = k();
package/dist/index233.js CHANGED
@@ -1,7 +1,43 @@
1
- import o from "./index280.js";
2
- /* empty css */
3
- import t from "./index267.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-cb4d6ef0"]]);
1
+ import { unrefElement as A } from "./index132.js";
2
+ import { toValue as n, notNullish as g, tryOnScopeDispose as y } from "./index240.js";
3
+ import { ref as i, computed as D, watch as F } from "vue";
4
+ import { createFocusTrap as T } from "./index278.js";
5
+ function E(f, a = {}) {
6
+ let e;
7
+ const { immediate: l, ...p } = a, r = i(!1), s = i(!1), c = (t) => e && e.activate(t), u = (t) => e && e.deactivate(t), v = () => {
8
+ e && (e.pause(), s.value = !0);
9
+ }, m = () => {
10
+ e && (e.unpause(), s.value = !1);
11
+ }, d = D(() => {
12
+ const t = n(f);
13
+ return (Array.isArray(t) ? t : [t]).map((h) => {
14
+ const o = n(h);
15
+ return typeof o == "string" ? o : A(o);
16
+ }).filter(g);
17
+ });
18
+ return F(
19
+ d,
20
+ (t) => {
21
+ t.length && (e = T(t, {
22
+ ...p,
23
+ onActivate() {
24
+ r.value = !0, a.onActivate && a.onActivate();
25
+ },
26
+ onDeactivate() {
27
+ r.value = !1, a.onDeactivate && a.onDeactivate();
28
+ }
29
+ }), l && c());
30
+ },
31
+ { flush: "post" }
32
+ ), y(() => u()), {
33
+ hasFocus: r,
34
+ isPaused: s,
35
+ activate: c,
36
+ deactivate: u,
37
+ pause: v,
38
+ unpause: m
39
+ };
40
+ }
5
41
  export {
6
- e as default
42
+ E as useFocusTrap
7
43
  };