bitboss-ui 2.0.113 → 2.0.114

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 (151) hide show
  1. package/dist/index100.js +9 -9
  2. package/dist/index111.js +11 -11
  3. package/dist/index119.js +2 -2
  4. package/dist/index121.js +6 -6
  5. package/dist/index123.js +1 -1
  6. package/dist/index125.js +1 -1
  7. package/dist/index127.js +1 -1
  8. package/dist/index128.js +1 -1
  9. package/dist/index129.js +1 -1
  10. package/dist/index13.js +33 -35
  11. package/dist/index133.js +2 -2
  12. package/dist/index15.js +5 -5
  13. package/dist/index17.js +3 -3
  14. package/dist/index19.js +8 -8
  15. package/dist/index207.js +6 -51
  16. package/dist/{index224.js → index208.js} +1 -1
  17. package/dist/index209.js +126 -13
  18. package/dist/index21.js +16 -16
  19. package/dist/index210.js +5 -3
  20. package/dist/index211.js +124 -40
  21. package/dist/index212.js +16 -6
  22. package/dist/index213.js +16 -7
  23. package/dist/index214.js +19 -8
  24. package/dist/index215.js +15 -15
  25. package/dist/index216.js +2 -13
  26. package/dist/index217.js +2 -5
  27. package/dist/index218.js +40 -15
  28. package/dist/index219.js +13 -16
  29. package/dist/index220.js +20 -19
  30. package/dist/index221.js +6 -15
  31. package/dist/index222.js +15 -19
  32. package/dist/index223.js +52 -26
  33. package/dist/index225.js +13 -2
  34. package/dist/index226.js +5 -250
  35. package/dist/index227.js +367 -50
  36. package/dist/index228.js +19 -44
  37. package/dist/index229.js +27 -5
  38. package/dist/index23.js +18 -18
  39. package/dist/index230.js +243 -53
  40. package/dist/index231.js +52 -3
  41. package/dist/index232.js +43 -125
  42. package/dist/index233.js +5 -125
  43. package/dist/index234.js +60 -2
  44. package/dist/index235.js +85 -19
  45. package/dist/index237.js +21 -365
  46. package/dist/index238.js +17 -2
  47. package/dist/index239.js +48 -4
  48. package/dist/index240.js +15 -2
  49. package/dist/index241.js +12 -86
  50. package/dist/index242.js +18 -0
  51. package/dist/index243.js +2 -25
  52. package/dist/index244.js +4 -17
  53. package/dist/index245.js +2 -48
  54. package/dist/index246.js +4 -15
  55. package/dist/index247.js +3 -12
  56. package/dist/index248.js +3 -16
  57. package/dist/index249.js +7 -4
  58. package/dist/index25.js +7 -7
  59. package/dist/index251.js +1 -1
  60. package/dist/index252.js +2 -2
  61. package/dist/index254.js +2 -2
  62. package/dist/index257.js +2 -2
  63. package/dist/index258.js +2 -2
  64. package/dist/index261.js +9 -9
  65. package/dist/index262.js +6 -23
  66. package/dist/index263.js +15 -89
  67. package/dist/index264.js +92 -0
  68. package/dist/index266.js +8 -15
  69. package/dist/index267.js +23 -3
  70. package/dist/index268.js +11 -0
  71. package/dist/index269.js +8 -7
  72. package/dist/index27.js +1 -1
  73. package/dist/index270.js +27 -280
  74. package/dist/index271.js +280 -5
  75. package/dist/index272.js +6 -2
  76. package/dist/index273.js +2 -2
  77. package/dist/index274.js +2 -2
  78. package/dist/index279.js +126 -2
  79. package/dist/index280.js +431 -2
  80. package/dist/index281.js +176 -2
  81. package/dist/index282.js +1 -1
  82. package/dist/index283.js +3 -28
  83. package/dist/index285.js +9 -0
  84. package/dist/index286.js +22 -7
  85. package/dist/index288.js +6 -430
  86. package/dist/index289.js +11 -2
  87. package/dist/index29.js +2 -2
  88. package/dist/index290.js +2 -89
  89. package/dist/index291.js +2 -224
  90. package/dist/index292.js +2 -4
  91. package/dist/index293.js +2 -200
  92. package/dist/index294.js +2 -2
  93. package/dist/index295.js +2 -126
  94. package/dist/index296.js +22 -176
  95. package/dist/index298.js +5 -0
  96. package/dist/index299.js +17 -3
  97. package/dist/index300.js +197 -14
  98. package/dist/index301.js +436 -9
  99. package/dist/index302.js +125 -7
  100. package/dist/index303.js +3 -435
  101. package/dist/index304.js +218 -121
  102. package/dist/index305.js +89 -8
  103. package/dist/index308.js +4 -4
  104. package/dist/index309.js +5 -7
  105. package/dist/index31.js +2 -2
  106. package/dist/index310.js +2 -67
  107. package/dist/index311.js +66 -32
  108. package/dist/index312.js +5 -2
  109. package/dist/index313.js +8 -5
  110. package/dist/index314.js +3 -5
  111. package/dist/index315.js +3 -8
  112. package/dist/index316.js +57 -6
  113. package/dist/index317.js +3 -19
  114. package/dist/index318.js +53 -3
  115. package/dist/index319.js +28 -28
  116. package/dist/index320.js +47 -53
  117. package/dist/index321.js +6 -3
  118. package/dist/index322.js +19 -3
  119. package/dist/index323.js +33 -3
  120. package/dist/index324.js +3 -57
  121. package/dist/index325.js +6 -46
  122. package/dist/index326.js +1 -1
  123. package/dist/index327.js +482 -0
  124. package/dist/index328.js +414 -470
  125. package/dist/index33.js +8 -8
  126. package/dist/index35.js +4 -4
  127. package/dist/index37.js +16 -16
  128. package/dist/index39.js +4 -4
  129. package/dist/index41.js +2 -2
  130. package/dist/index43.js +8 -8
  131. package/dist/index45.js +5 -5
  132. package/dist/index47.js +2 -2
  133. package/dist/index49.js +2 -2
  134. package/dist/index53.js +1 -1
  135. package/dist/index55.js +1 -1
  136. package/dist/index57.js +2 -2
  137. package/dist/index61.js +1 -1
  138. package/dist/index75.js +3 -3
  139. package/dist/index77.js +1 -1
  140. package/dist/index79.js +2 -2
  141. package/dist/index81.js +1 -1
  142. package/dist/index84.js +4 -4
  143. package/dist/index86.js +2 -2
  144. package/dist/index88.js +4 -4
  145. package/package.json +1 -1
  146. package/dist/index236.js +0 -7
  147. package/dist/index265.js +0 -8
  148. package/dist/index284.js +0 -24
  149. package/dist/index287.js +0 -13
  150. package/dist/index297.js +0 -24
  151. package/dist/index329.js +0 -426
package/dist/index245.js CHANGED
@@ -1,50 +1,4 @@
1
- import { computed as d, unref as s } from "vue";
2
- import { useItemText as y } from "./index300.js";
3
- import { useItemValue as x } from "./index301.js";
4
- import { hash as w } from "./index224.js";
5
- import { useLogger as D } from "./index214.js";
6
- const { getItemText: O } = y(), { getItemValue: V } = x(), { warn: H } = D(), T = (i, l, t, a, c) => l || i.disabled ? !0 : typeof t == "function" ? !t(i) : !!(typeof t == "boolean" && !t || a && c >= a), q = ({
7
- items: i,
8
- disabled: l,
9
- selectable: t,
10
- itemText: a,
11
- itemValue: c,
12
- selectedIndexedByHash: p,
13
- max: b = 1 / 0
14
- }) => {
15
- const v = d(() => s(l)), f = d(() => s(i)), h = Object.keys(p.value).length, g = s(b), m = (e) => {
16
- const n = V(e, s(c)), o = w(n), u = O(e, s(a)), r = p.value[o] !== void 0, I = T(
17
- e,
18
- v.value,
19
- t,
20
- g,
21
- h
22
- );
23
- return {
24
- item: e,
25
- text: u,
26
- value: n,
27
- valueHash: o,
28
- selected: r,
29
- disabled: s(I)
30
- };
31
- };
32
- return {
33
- options: d(() => {
34
- const e = [], n = /* @__PURE__ */ new Set();
35
- for (let o = 0; o < f.value.length; o++) {
36
- const u = f.value[o];
37
- u.disabled && H(
38
- "Disabling an item by passing a disabled option to the item itself is deprecated and will be removed in a future version. Use the `disabled` prop or the `selectable` iteratee prop instead."
39
- );
40
- const r = m(u);
41
- n.has(r.valueHash) || (n.add(r.valueHash), e.push(r));
42
- }
43
- return e;
44
- }),
45
- createOption: m
46
- };
47
- };
1
+ const o = (e) => typeof e == "boolean" ? e : e === "true";
48
2
  export {
49
- q as useBaseOptions
3
+ o as booleanishToBoolean
50
4
  };
package/dist/index246.js CHANGED
@@ -1,17 +1,6 @@
1
- import { isNil as f } from "./index258.js";
2
- import { computed as t, unref as o } from "vue";
3
- const a = ({ modelValue: e, iteratee: h, multiple: u }) => {
4
- const i = t(
5
- () => new Array().concat(o(e))
6
- ), s = t(() => i.value.reduce(
7
- (r, n) => (h(n) ? r.coherent.push(n) : r.incoherent.push(n), r),
8
- { coherent: [], incoherent: [] }
9
- )), c = t(() => u && !o(e).length || !u && f(o(e)) ? !0 : !s.value.incoherent.length);
10
- return {
11
- status: s,
12
- coherent: c
13
- };
14
- };
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
15
4
  export {
16
- a as useCoherence
5
+ x as isHex
17
6
  };
package/dist/index247.js CHANGED
@@ -1,14 +1,5 @@
1
- import { hash as e } from "./index224.js";
2
- import { debouncedWatch as s } from "./index205.js";
3
- const n = (o, c, h) => {
4
- s(
5
- o,
6
- (r, t) => {
7
- e(r) !== e(t) && c(r, t);
8
- },
9
- h
10
- );
11
- };
1
+ import r from "./index304.js";
2
+ const t = r;
12
3
  export {
13
- n as useHashedWatcher
4
+ t as deburr
14
5
  };
package/dist/index248.js CHANGED
@@ -1,18 +1,5 @@
1
- import { isNotNil as n } from "./index134.js";
2
- import { ref as t, onServerPrefetch as u, onBeforeMount as c } from "vue";
3
- const h = ({
4
- fn: i,
5
- onStart: s,
6
- multiple: f,
7
- currentValue: o
8
- }) => {
9
- const a = s || !f && n(o) || f && !!o.length, e = t(!1), l = t(!1), r = async () => {
10
- e.value = !0, await i({ prefill: !0 }), e.value = !1, l.value = !0;
11
- };
12
- return a && (u(r), c(async () => {
13
- l.value || await r();
14
- })), { isPrefilling: e, hasPrefilled: l, prefill: r };
15
- };
1
+ import t from "./index305.js";
2
+ const r = t;
16
3
  export {
17
- h as usePrefill
4
+ r as throttle
18
5
  };
package/dist/index249.js CHANGED
@@ -1,6 +1,9 @@
1
- function x(e) {
2
- return /^#([A-Fa-f0-9]{6})$/.test(e);
3
- }
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 });
4
7
  export {
5
- x as isHex
8
+ d as useModalsState
6
9
  };
package/dist/index25.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as ne, ref as o, computed as u, getCurrentInstance as re, nextTick as N, useAttrs as ue, onMounted as de, onBeforeUnmount as G, watch as ce, openBlock as _, createBlock as ve, withCtx as fe, createElementVNode as a, mergeProps as P, createElementBlock as $, renderSlot as d, createTextVNode as be, toDisplayString as K, createCommentVNode as z } from "vue";
2
- import { throttle as pe } from "./index210.js";
3
- import { useFocusTrap as me } from "./index211.js";
2
+ import { throttle as pe } from "./index248.js";
3
+ import { useFocusTrap as me } from "./index218.js";
4
4
  import { useId as U } from "./index8.js";
5
5
  import { wait as H } from "./index130.js";
6
- import { waitFor as ge } from "./index212.js";
7
- import { useModalsState as C } from "./index213.js";
8
- import { useLogger as ye } from "./index214.js";
6
+ import { waitFor as ge } from "./index221.js";
7
+ import { useModalsState as C } from "./index249.js";
8
+ import { useLogger as ye } from "./index207.js";
9
9
  import { useMobile as he } from "./index9.js";
10
- import we from "./index215.js";
11
- import { useLocale as ke } from "./index216.js";
10
+ import we from "./index222.js";
11
+ import { useLocale as ke } from "./index219.js";
12
12
  const _e = { class: "bb-base-dialog-close" }, Ce = ["aria-label"], Se = /* @__PURE__ */ ne({
13
13
  __name: "BaseDialog",
14
14
  props: {
package/dist/index251.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isNil as c } from "./index258.js";
1
+ import { isNil as c } from "./index257.js";
2
2
  const a = (t, r) => {
3
3
  if (!Object.prototype.hasOwnProperty.call(t, r))
4
4
  throw new Error(
package/dist/index252.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
2
- import { hash as d } from "./index224.js";
3
- import { isNil as l } from "./index258.js";
2
+ import { hash as d } from "./index208.js";
3
+ import { isNil as l } from "./index257.js";
4
4
  import E from "./index125.js";
5
5
  /* empty css */
6
6
  const K = /* @__PURE__ */ y({
package/dist/index254.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
2
- import { hash as f } from "./index224.js";
3
- import { isNil as i } from "./index258.js";
2
+ import { hash as f } from "./index208.js";
3
+ import { isNil as i } from "./index257.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
6
6
  props: {
package/dist/index257.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = (e) => e[0];
1
+ const r = (e) => typeof e > "u" || e === null;
2
2
  export {
3
- o as head
3
+ r as isNil
4
4
  };
package/dist/index258.js CHANGED
@@ -1,4 +1,4 @@
1
- const r = (e) => typeof e > "u" || e === null;
1
+ const o = (e) => e[0];
2
2
  export {
3
- r as isNil
3
+ o as head
4
4
  };
package/dist/index261.js CHANGED
@@ -1,11 +1,11 @@
1
- const o = (n, t) => {
2
- for (let e = n.length - 1; e >= 0; e--) {
3
- const i = n[e];
4
- if (t(i, e, n))
5
- return e;
6
- }
7
- return -1;
8
- };
1
+ function u(e, i) {
2
+ let t;
3
+ return function(...o) {
4
+ t !== void 0 && clearTimeout(t), t = setTimeout(() => {
5
+ e.apply(this, o);
6
+ }, i);
7
+ };
8
+ }
9
9
  export {
10
- o as findRightIndex
10
+ u as debounce
11
11
  };
package/dist/index262.js CHANGED
@@ -1,25 +1,8 @@
1
- const e = {
2
- inert: ":not([inert]):not([inert] *)",
3
- negTabIndex: ':not([tabindex^="-"])',
4
- disabled: ":not(:disabled)"
5
- }, n = [
6
- `a[href]${e.inert}${e.negTabIndex}`,
7
- `area[href]${e.inert}${e.negTabIndex}`,
8
- `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
- `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
- `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
- `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
- `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
- `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
- // Discard until Firefox supports `:has()`
15
- // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
- // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
- `iframe${e.inert}${e.negTabIndex}`,
18
- `audio[controls]${e.inert}${e.negTabIndex}`,
19
- `video[controls]${e.inert}${e.negTabIndex}`,
20
- `[contenteditable]${e.inert}${e.negTabIndex}`,
21
- `[tabindex]${e.inert}${e.negTabIndex}`
22
- ];
1
+ import e from "./index314.js";
2
+ import o from "./index315.js";
3
+ import r from "./index316.js";
4
+ const f = new r(o, e)._freeze();
23
5
  export {
24
- n as default
6
+ r as Mime,
7
+ f as default
25
8
  };
package/dist/index263.js CHANGED
@@ -1,92 +1,18 @@
1
- import { defineComponent as h, toRef as y, ref as r, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
2
- import C from "./index215.js";
3
- import f from "./index328.js";
4
- import { useFloating as D, arrow as E } from "./index232.js";
5
- import { autoUpdate as P, flip as F, offset as S, shift as T } from "./index237.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: {},
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"), n = r(), l = r(), i = r(), { floatingStyles: g, placement: w, middlewareData: s } = D(
25
- n,
26
- l,
27
- {
28
- placement: e.placement,
29
- whileElementsMounted: P,
30
- middleware: [
31
- F(),
32
- S(e.offset),
33
- T({ padding: e.padding }),
34
- E({
35
- element: i,
36
- padding: e.arrowPadding
37
- })
38
- ]
39
- }
40
- ), _ = a(() => {
41
- if (s.value.arrow) {
42
- const { x: t, y: u } = s.value.arrow;
43
- return {
44
- style: {
45
- left: `${t}px`,
46
- top: `${u}px`
47
- }
48
- };
49
- }
50
- }), p = a(() => f({}, e.containerAttributes, {
51
- class: {
52
- "bb-floating": !0,
53
- [`bb-floating--${w.value}`]: !0,
54
- [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
55
- "bb-floating--hidden": !e.open,
56
- "bb-floating--open": e.open
57
- },
58
- style: {
59
- ...g.value,
60
- "--transition-duration": `${e.transitionDuration}ms`
61
- },
62
- tabindex: e.open ? void 0 : -1
63
- })), v = a(() => f({}, e.bubbleAttributes, {}));
64
- return $(
65
- () => e.open,
66
- (t) => {
67
- t && (n.value = m.value);
68
- }
69
- ), (t, u) => (b(), A(C, { target: t.teleportTarget }, {
70
- default: k(() => [
71
- (b(), x("span", o(p.value, {
72
- key: p.value.id,
73
- ref_key: "content",
74
- ref: l
75
- }), [
76
- c("span", o({
77
- ref_key: "bubblearrow",
78
- ref: i,
79
- class: "bb-floating__arrow"
80
- }, _.value), null, 16),
81
- c("span", o({ class: "bb-floating__bubble" }, v.value), [
82
- B(t.$slots, "default")
83
- ], 16)
84
- ], 16))
85
- ]),
86
- _: 3
87
- }, 8, ["target"]));
1
+ const e = (o, r, f) => o.reduce((t, n) => {
2
+ if (t) return t;
3
+ if (f(n))
4
+ return n;
5
+ if (r in n) {
6
+ const i = e(
7
+ [].concat(n[r]),
8
+ r,
9
+ f
10
+ );
11
+ if (i)
12
+ return i;
88
13
  }
89
- });
14
+ return t;
15
+ }, null);
90
16
  export {
91
- W as default
17
+ e as findInTree
92
18
  };
@@ -0,0 +1,92 @@
1
+ import { defineComponent as h, toRef as y, ref as r, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
2
+ import C from "./index222.js";
3
+ import f from "./index327.js";
4
+ import { useFloating as D, arrow as E } from "./index209.js";
5
+ import { autoUpdate as P, flip as F, offset as S, shift as T } from "./index227.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: {},
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"), n = r(), l = r(), i = r(), { floatingStyles: g, placement: w, middlewareData: s } = D(
25
+ n,
26
+ l,
27
+ {
28
+ placement: e.placement,
29
+ whileElementsMounted: P,
30
+ middleware: [
31
+ F(),
32
+ S(e.offset),
33
+ T({ padding: e.padding }),
34
+ E({
35
+ element: i,
36
+ padding: e.arrowPadding
37
+ })
38
+ ]
39
+ }
40
+ ), _ = a(() => {
41
+ if (s.value.arrow) {
42
+ const { x: t, y: u } = s.value.arrow;
43
+ return {
44
+ style: {
45
+ left: `${t}px`,
46
+ top: `${u}px`
47
+ }
48
+ };
49
+ }
50
+ }), p = a(() => f({}, e.containerAttributes, {
51
+ class: {
52
+ "bb-floating": !0,
53
+ [`bb-floating--${w.value}`]: !0,
54
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
55
+ "bb-floating--hidden": !e.open,
56
+ "bb-floating--open": e.open
57
+ },
58
+ style: {
59
+ ...g.value,
60
+ "--transition-duration": `${e.transitionDuration}ms`
61
+ },
62
+ tabindex: e.open ? void 0 : -1
63
+ })), v = a(() => f({}, e.bubbleAttributes, {}));
64
+ return $(
65
+ () => e.open,
66
+ (t) => {
67
+ t && (n.value = m.value);
68
+ }
69
+ ), (t, u) => (b(), A(C, { target: t.teleportTarget }, {
70
+ default: k(() => [
71
+ (b(), x("span", o(p.value, {
72
+ key: p.value.id,
73
+ ref_key: "content",
74
+ ref: l
75
+ }), [
76
+ c("span", o({
77
+ ref_key: "bubblearrow",
78
+ ref: i,
79
+ class: "bb-floating__arrow"
80
+ }, _.value), null, 16),
81
+ c("span", o({ class: "bb-floating__bubble" }, v.value), [
82
+ B(t.$slots, "default")
83
+ ], 16)
84
+ ], 16))
85
+ ]),
86
+ _: 3
87
+ }, 8, ["target"]));
88
+ }
89
+ });
90
+ export {
91
+ W as default
92
+ };
package/dist/index266.js CHANGED
@@ -1,18 +1,11 @@
1
- const e = (o, r, f) => o.reduce((t, n) => {
2
- if (t) return t;
3
- if (f(n))
4
- return n;
5
- if (r in n) {
6
- const i = e(
7
- [].concat(n[r]),
8
- r,
9
- f
10
- );
11
- if (i)
12
- return i;
1
+ const o = (n, t) => {
2
+ for (let e = n.length - 1; e >= 0; e--) {
3
+ const i = n[e];
4
+ if (t(i, e, n))
5
+ return e;
13
6
  }
14
- return t;
15
- }, null);
7
+ return -1;
8
+ };
16
9
  export {
17
- e as findInTree
10
+ o as findRightIndex
18
11
  };
package/dist/index267.js CHANGED
@@ -1,5 +1,25 @@
1
- import o from "./index207.js";
2
- /* empty css */
1
+ const e = {
2
+ inert: ":not([inert]):not([inert] *)",
3
+ negTabIndex: ':not([tabindex^="-"])',
4
+ disabled: ":not(:disabled)"
5
+ }, n = [
6
+ `a[href]${e.inert}${e.negTabIndex}`,
7
+ `area[href]${e.inert}${e.negTabIndex}`,
8
+ `input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
9
+ `input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
10
+ `select${e.inert}${e.negTabIndex}${e.disabled}`,
11
+ `textarea${e.inert}${e.negTabIndex}${e.disabled}`,
12
+ `button${e.inert}${e.negTabIndex}${e.disabled}`,
13
+ `details${e.inert} > summary:first-of-type${e.negTabIndex}`,
14
+ // Discard until Firefox supports `:has()`
15
+ // See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
16
+ // `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
17
+ `iframe${e.inert}${e.negTabIndex}`,
18
+ `audio[controls]${e.inert}${e.negTabIndex}`,
19
+ `video[controls]${e.inert}${e.negTabIndex}`,
20
+ `[contenteditable]${e.inert}${e.negTabIndex}`,
21
+ `[tabindex]${e.inert}${e.negTabIndex}`
22
+ ];
3
23
  export {
4
- o as default
24
+ n as default
5
25
  };
@@ -0,0 +1,11 @@
1
+ import { get as o } from "./index289.js";
2
+ const e = () => ({
3
+ getItemValue(n, f) {
4
+ if (typeof f > "u") return n;
5
+ if (typeof f == "function") return f(n);
6
+ if (typeof f == "string") return o(n, f);
7
+ }
8
+ });
9
+ export {
10
+ e as useItemValue
11
+ };
package/dist/index269.js CHANGED
@@ -1,9 +1,10 @@
1
- const s = (t, e) => {
2
- const o = t.__vccOpts || t;
3
- for (const [r, c] of e)
4
- o[r] = c;
5
- return o;
6
- };
1
+ const u = (t, r) => t.reduce(
2
+ (e, n, o, d) => {
3
+ const s = r(n, o, d);
4
+ return e[s] = n, e;
5
+ },
6
+ {}
7
+ );
7
8
  export {
8
- s as default
9
+ u as indexBy
9
10
  };
package/dist/index27.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as n, openBlock as r, createElementBlock as c, normalizeClass as T, createBlock as w, resolveDynamicComponent as B, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as E, createTextVNode as V, toDisplayString as p, createElementVNode as d, unref as m, createVNode as P, Fragment as D, renderList as I } from "vue";
2
- import { deburr as N } from "./index231.js";
2
+ import { deburr as N } from "./index247.js";
3
3
  import { getAsPercentage as $ } from "./index131.js";
4
4
  import { useId as F } from "./index8.js";
5
5
  import R from "./index126.js";