bitboss-ui 2.0.60 → 2.0.62

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 (134) hide show
  1. package/dist/index110.js +5 -5
  2. package/dist/index118.js +1 -1
  3. package/dist/index120.js +5 -5
  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/index133.js +2 -2
  11. package/dist/index15.js +4 -4
  12. package/dist/index17.js +3 -3
  13. package/dist/index19.js +2 -2
  14. package/dist/index204.js +81 -2
  15. package/dist/index205.js +2 -162
  16. package/dist/index206.js +162 -84
  17. package/dist/index207.js +86 -0
  18. package/dist/index209.js +53 -2
  19. package/dist/index21.js +14 -14
  20. package/dist/index211.js +13 -2
  21. package/dist/index212.js +3 -8
  22. package/dist/index213.js +18 -51
  23. package/dist/index214.js +6 -0
  24. package/dist/index215.js +126 -13
  25. package/dist/index216.js +5 -126
  26. package/dist/index217.js +125 -5
  27. package/dist/index218.js +17 -123
  28. package/dist/index219.js +15 -18
  29. package/dist/index220.js +10 -10
  30. package/dist/index221.js +2 -16
  31. package/dist/index222.js +2 -2
  32. package/dist/index223.js +41 -2
  33. package/dist/index224.js +6 -41
  34. package/dist/index225.js +5 -20
  35. package/dist/index226.js +369 -6
  36. package/dist/index227.js +8 -5
  37. package/dist/index228.js +2 -369
  38. package/dist/index229.js +4 -19
  39. package/dist/index23.js +15 -15
  40. package/dist/index230.js +2 -27
  41. package/dist/index231.js +19 -3
  42. package/dist/index232.js +25 -247
  43. package/dist/index233.js +3 -52
  44. package/dist/index234.js +241 -36
  45. package/dist/index235.js +52 -5
  46. package/dist/index236.js +30 -35
  47. package/dist/index237.js +5 -3
  48. package/dist/index238.js +49 -7
  49. package/dist/index239.js +3 -81
  50. package/dist/index240.js +7 -4
  51. package/dist/index243.js +1 -1
  52. package/dist/index245.js +1 -1
  53. package/dist/index25.js +5 -5
  54. package/dist/index250.js +1 -1
  55. package/dist/index251.js +8 -11
  56. package/dist/index252.js +23 -9
  57. package/dist/index253.js +6 -9
  58. package/dist/index254.js +15 -16
  59. package/dist/index255.js +8 -3
  60. package/dist/index256.js +3 -224
  61. package/dist/index257.js +11 -3
  62. package/dist/index258.js +9 -3
  63. package/dist/index259.js +11 -0
  64. package/dist/index260.js +17 -7
  65. package/dist/index261.js +3 -280
  66. package/dist/index262.js +3 -6
  67. package/dist/index264.js +7 -2
  68. package/dist/index265.js +224 -2
  69. package/dist/index266.js +176 -2
  70. package/dist/index267.js +281 -2
  71. package/dist/index268.js +5 -125
  72. package/dist/index269.js +2 -431
  73. package/dist/index27.js +1 -1
  74. package/dist/index270.js +2 -176
  75. package/dist/index271.js +2 -22
  76. package/dist/index272.js +4 -0
  77. package/dist/index274.js +126 -2
  78. package/dist/index275.js +431 -2
  79. package/dist/index276.js +21 -1
  80. package/dist/index278.js +4 -2
  81. package/dist/index279.js +431 -23
  82. package/dist/index280.js +126 -21
  83. package/dist/index282.js +2 -3
  84. package/dist/index283.js +2 -9
  85. package/dist/index284.js +2 -23
  86. package/dist/index285.js +1 -5
  87. package/dist/index286.js +2 -16
  88. package/dist/index287.js +2 -9
  89. package/dist/index288.js +23 -431
  90. package/dist/index289.js +21 -126
  91. package/dist/index29.js +3 -3
  92. package/dist/index291.js +1 -1
  93. package/dist/index294.js +2 -2
  94. package/dist/index295.js +2 -66
  95. package/dist/index297.js +66 -2
  96. package/dist/index298.js +4 -5
  97. package/dist/index299.js +4 -8
  98. package/dist/index300.js +58 -32
  99. package/dist/index301.js +79 -11
  100. package/dist/index303.js +33 -79
  101. package/dist/index304.js +7 -0
  102. package/dist/index305.js +8 -4
  103. package/dist/index306.js +4 -4
  104. package/dist/index307.js +10 -58
  105. package/dist/index31.js +2 -2
  106. package/dist/index311.js +47 -2
  107. package/dist/index312.js +2 -47
  108. package/dist/index313.js +1 -1
  109. package/dist/index33.js +2 -2
  110. package/dist/index35.js +3 -3
  111. package/dist/index37.js +58 -58
  112. package/dist/index39.js +3 -3
  113. package/dist/index41.js +2 -2
  114. package/dist/index43.js +2 -2
  115. package/dist/index45.js +4 -4
  116. package/dist/index47.js +2 -2
  117. package/dist/index49.js +2 -2
  118. package/dist/index55.js +1 -1
  119. package/dist/index57.js +1 -1
  120. package/dist/index75.js +3 -3
  121. package/dist/index79.js +2 -2
  122. package/dist/index81.js +1 -1
  123. package/dist/index84.js +2 -2
  124. package/dist/index86.js +1 -1
  125. package/dist/index88.js +3 -3
  126. package/dist/index90.js +1 -1
  127. package/dist/style.css +1 -1
  128. package/package.json +6 -4
  129. package/dist/index208.js +0 -5
  130. package/dist/index210.js +0 -6
  131. package/dist/index263.js +0 -4
  132. package/dist/index277.js +0 -4
  133. package/dist/index302.js +0 -6
  134. /package/dist/{index290.js → index281.js} +0 -0
package/dist/index235.js CHANGED
@@ -1,7 +1,54 @@
1
- import o from "./index280.js";
2
- /* empty css */
3
- import t from "./index260.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
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 "./index237.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",
8
+ props: {
9
+ cursor: {},
10
+ disabled: { type: Boolean },
11
+ hidden: { type: Boolean }
12
+ },
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 }])
27
+ }, [
28
+ t("div", y, [
29
+ h(k, {
30
+ direction: r.value,
31
+ duration: 500,
32
+ gap: 30
33
+ }, {
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))
40
+ ]),
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)
48
+ ])
49
+ ], 2));
50
+ }
51
+ });
5
52
  export {
6
- m as default
53
+ C as default
7
54
  };
package/dist/index236.js CHANGED
@@ -1,51 +1,46 @@
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 "./index310.js";
3
- import D from "./index13.js";
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";
4
3
  /* empty css */
5
- const S = { class: "content" }, c = 100, V = /* @__PURE__ */ p({
6
- __name: "BaseDatePickerYearSelector",
4
+ const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
5
+ __name: "BaseDatePickerMonthSelector",
7
6
  props: {
8
7
  cursor: {},
9
8
  disabled: { type: Boolean }
10
9
  },
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({
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({
34
28
  content__btn: !0,
35
- "content__btn--selected": t.selected
29
+ "content__btn--selected": e.selected
36
30
  }),
37
- disabled: e.disabled,
38
- onClick: t.handler
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
39
34
  }, {
40
- default: B(() => [
41
- C(E(t.text), 1)
35
+ default: y(() => [
36
+ x(B(e.text), 1)
42
37
  ]),
43
38
  _: 2
44
39
  }, 1032, ["class", "disabled", "onClick"]))), 128))
45
40
  ])
46
- ], 512));
41
+ ]));
47
42
  }
48
43
  });
49
44
  export {
50
- V as default
45
+ E as default
51
46
  };
package/dist/index237.js CHANGED
@@ -1,5 +1,7 @@
1
- import t from "./index291.js";
2
- const r = t;
1
+ import o from "./index289.js";
2
+ /* empty css */
3
+ import t from "./index264.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
3
5
  export {
4
- r as throttle
6
+ m as default
5
7
  };
package/dist/index238.js CHANGED
@@ -1,9 +1,51 @@
1
- import { ref as e } from "vue";
2
- const o = e(0), s = () => {
3
- o.value++;
4
- }, a = () => {
5
- o.value--;
6
- }, d = () => ({ openedModals: o, modalHasOpened: s, modalHasClosed: a });
1
+ 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 "./index310.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
+ });
7
49
  export {
8
- d as useModalsState
50
+ V as default
9
51
  };
package/dist/index239.js CHANGED
@@ -1,83 +1,5 @@
1
- import { getCurrentScope as g, onScopeDispose as D, unref as x, onMounted as O, nextTick as S, isRef as C, getCurrentInstance as F } from "vue";
2
- function G(e) {
3
- return g() ? (D(e), !0) : !1;
4
- }
5
- function d(e) {
6
- return typeof e == "function" ? e() : x(e);
7
- }
8
- const L = typeof window < "u" && typeof document < "u";
9
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
- const V = (e) => e != null, P = Object.prototype.toString, A = (e) => P.call(e) === "[object Object]", m = () => {
11
- };
12
- function h(e, r) {
13
- function t(...n) {
14
- return new Promise((o, i) => {
15
- Promise.resolve(e(() => r.apply(this, n), { fn: r, thisArg: this, args: n })).then(o).catch(i);
16
- });
17
- }
18
- return t;
19
- }
20
- function W(e, r = {}) {
21
- let t, n, o = m;
22
- const i = (l) => {
23
- clearTimeout(l), o(), o = m;
24
- };
25
- return (l) => {
26
- const c = d(e), u = d(r.maxWait);
27
- return t && i(t), c <= 0 || u !== void 0 && u <= 0 ? (n && (i(n), n = null), Promise.resolve(l())) : new Promise((s, T) => {
28
- o = r.rejectOnCancel ? T : s, u && !n && (n = setTimeout(() => {
29
- t && i(t), n = null, s(l());
30
- }, u)), t = setTimeout(() => {
31
- n && i(n), n = null, s(l());
32
- }, c);
33
- });
34
- };
35
- }
36
- function M(...e) {
37
- let r = 0, t, n = !0, o = m, i, a, l, c, u;
38
- !C(e[0]) && typeof e[0] == "object" ? { delay: a, trailing: l = !0, leading: c = !0, rejectOnCancel: u = !1 } = e[0] : [a, l = !0, c = !0, u = !1] = e;
39
- const s = () => {
40
- t && (clearTimeout(t), t = void 0, o(), o = m);
41
- };
42
- return (w) => {
43
- const f = d(a), y = Date.now() - r, p = () => i = w();
44
- return s(), f <= 0 ? (r = Date.now(), p()) : (y > f && (c || !n) ? (r = Date.now(), p()) : l && (i = new Promise((b, j) => {
45
- o = u ? j : b, t = setTimeout(() => {
46
- r = Date.now(), n = !0, b(p()), s();
47
- }, Math.max(0, f - y));
48
- })), !c && !t && (t = setTimeout(() => n = !0, f)), n = !1, i);
49
- };
50
- }
51
- function R(e) {
52
- return F();
53
- }
54
- function E(e, r = 200, t = {}) {
55
- return h(
56
- W(r, t),
57
- e
58
- );
59
- }
60
- function I(e, r = 200, t = !1, n = !0, o = !1) {
61
- return h(
62
- M(r, t, n, o),
63
- e
64
- );
65
- }
66
- function N(e, r = !0, t) {
67
- R() ? O(e, t) : r ? e() : S(e);
68
- }
1
+ import t from "./index291.js";
2
+ const r = t;
69
3
  export {
70
- h as createFilterWrapper,
71
- W as debounceFilter,
72
- R as getLifeCycleTarget,
73
- L as isClient,
74
- A as isObject,
75
- m as noop,
76
- V as notNullish,
77
- M as throttleFilter,
78
- d as toValue,
79
- N as tryOnMounted,
80
- G as tryOnScopeDispose,
81
- E as useDebounceFn,
82
- I as useThrottleFn
4
+ r as throttle
83
5
  };
package/dist/index240.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/index243.js CHANGED
@@ -1,5 +1,5 @@
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 "./index231.js";
2
+ import { hash as d } from "./index233.js";
3
3
  import { isNil as l } from "./index129.js";
4
4
  import E from "./index124.js";
5
5
  /* empty css */
package/dist/index245.js CHANGED
@@ -1,5 +1,5 @@
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 "./index231.js";
2
+ import { hash as f } from "./index233.js";
3
3
  import { isNil as i } from "./index129.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
package/dist/index25.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, Teleport as de, createElementVNode as a, mergeProps as G, createElementBlock as T, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
- import { throttle as ve } from "./index237.js";
3
- import { useFocusTrap as fe } from "./index224.js";
2
+ import { throttle as ve } from "./index239.js";
3
+ import { useFocusTrap as fe } from "./index223.js";
4
4
  import { useId as K } from "./index8.js";
5
5
  import { wait as H } from "./index131.js";
6
- import { waitFor as be } from "./index226.js";
7
- import { useModalsState as C } from "./index238.js";
8
- import { useLogger as pe } from "./index212.js";
6
+ import { waitFor as be } from "./index224.js";
7
+ import { useModalsState as C } from "./index240.js";
8
+ import { useLogger as pe } from "./index227.js";
9
9
  const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PURE__ */ ae({
10
10
  __name: "BaseDialog",
11
11
  props: {
package/dist/index250.js CHANGED
@@ -1,4 +1,4 @@
1
- import o from "./index206.js";
1
+ import o from "./index301.js";
2
2
  /* empty css */
3
3
  export {
4
4
  o as default
package/dist/index251.js CHANGED
@@ -1,14 +1,11 @@
1
- import { ref as t } from "vue";
2
- const n = () => {
3
- const e = t([]);
4
- return { array: e, set: (...r) => {
5
- e.value = r;
6
- }, add: (...r) => {
7
- e.value.push(...r);
8
- }, remove: (r) => {
9
- e.value = e.value.filter(r);
10
- } };
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;
11
8
  };
12
9
  export {
13
- n as useArray
10
+ o as findRightIndex
14
11
  };
package/dist/index252.js CHANGED
@@ -1,11 +1,25 @@
1
- function u(e, i) {
2
- const n = /* @__PURE__ */ new Set(), s = [];
3
- for (let t = 0; t < e.length; t++) {
4
- const o = e[t], c = i(o);
5
- n.has(c) || (n.add(c), s.push(o));
6
- }
7
- return s;
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
+ ];
9
23
  export {
10
- u as uniqBy
24
+ n as default
11
25
  };
package/dist/index253.js CHANGED
@@ -1,11 +1,8 @@
1
- import { get as o } from "./index301.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
- });
1
+ import e from "./index298.js";
2
+ import r from "./index299.js";
3
+ import o from "./index300.js";
4
+ const f = new o(r, e)._freeze();
9
5
  export {
10
- e as useItemValue
6
+ o as Mime,
7
+ f as default
11
8
  };
package/dist/index254.js CHANGED
@@ -1,19 +1,18 @@
1
- import { get as t } from "./index301.js";
2
- const o = () => ({
3
- getItemText(r, n) {
4
- if (typeof r == "string" && !n) return r;
5
- if (n) {
6
- if (typeof n == "function") {
7
- let f = n(r);
8
- return typeof f != "string" && (f = JSON.stringify(f)), f;
9
- } else if (typeof n == "string") {
10
- const f = t(r, n);
11
- return typeof f == "string" ? f : JSON.stringify(f);
12
- }
13
- }
14
- return JSON.stringify(r);
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;
15
13
  }
16
- });
14
+ return t;
15
+ }, null);
17
16
  export {
18
- o as useItemText
17
+ e as findInTree
19
18
  };
package/dist/index255.js CHANGED
@@ -1,6 +1,11 @@
1
- function u(...e) {
2
- return (r) => e.reduce((n, t) => t(n), r);
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
+ };
3
8
  }
4
9
  export {
5
- u as pipe
10
+ u as debounce
6
11
  };