bitboss-ui 2.1.8 → 2.1.9

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 (168) hide show
  1. package/dist/index106.js +9 -9
  2. package/dist/index111.js +1 -1
  3. package/dist/index113.js +1 -1
  4. package/dist/index121.js +11 -11
  5. package/dist/index129.js +1 -1
  6. package/dist/index13.js +1 -1
  7. package/dist/index131.js +4 -4
  8. package/dist/index136.js +1 -1
  9. package/dist/index137.js +2 -2
  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/index206.js +2 -2
  16. package/dist/index207.js +2 -138
  17. package/dist/index208.js +138 -2
  18. package/dist/index209.js +79 -59
  19. package/dist/index21.js +16 -16
  20. package/dist/index211.js +29 -13
  21. package/dist/index212.js +15 -175
  22. package/dist/index213.js +51 -3
  23. package/dist/index214.js +15 -2
  24. package/dist/index215.js +3 -2
  25. package/dist/index216.js +11 -17
  26. package/dist/index217.js +15 -11
  27. package/dist/index218.js +2 -51
  28. package/dist/index219.js +4 -15
  29. package/dist/index220.js +2 -12
  30. package/dist/index221.js +4 -17
  31. package/dist/index222.js +13 -29
  32. package/dist/index223.js +11 -13
  33. package/dist/index224.js +19 -15
  34. package/dist/index225.js +196 -5
  35. package/dist/index227.js +59 -99
  36. package/dist/index229.js +13 -100
  37. package/dist/index23.js +15 -15
  38. package/dist/{index231.js → index230.js} +2 -2
  39. package/dist/index232.js +15 -0
  40. package/dist/index233.js +3 -228
  41. package/dist/index234.js +34 -4
  42. package/dist/index235.js +5 -11
  43. package/dist/index236.js +5 -20
  44. package/dist/index237.js +5 -197
  45. package/dist/index238.js +7 -0
  46. package/dist/index239.js +5 -34
  47. package/dist/index240.js +5 -2
  48. package/dist/index241.js +2 -13
  49. package/dist/index242.js +2 -2
  50. package/dist/index243.js +2 -2
  51. package/dist/index244.js +18 -2
  52. package/dist/index245.js +11 -6
  53. package/dist/index246.js +6 -7
  54. package/dist/index247.js +106 -5
  55. package/dist/index249.js +100 -5
  56. package/dist/index25.js +3 -3
  57. package/dist/index251.js +228 -5
  58. package/dist/index252.js +2 -5
  59. package/dist/index253.js +177 -5
  60. package/dist/index254.js +5 -8
  61. package/dist/index255.js +5 -250
  62. package/dist/index256.js +6 -50
  63. package/dist/index257.js +242 -36
  64. package/dist/index258.js +52 -5
  65. package/dist/index259.js +31 -47
  66. package/dist/index260.js +5 -86
  67. package/dist/index261.js +62 -0
  68. package/dist/index262.js +2 -2
  69. package/dist/index263.js +7 -3
  70. package/dist/index264.js +7 -5
  71. package/dist/index265.js +8 -9
  72. package/dist/index266.js +23 -3
  73. package/dist/index267.js +10 -9
  74. package/dist/index268.js +3 -3
  75. package/dist/index269.js +3 -6
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +6 -16
  78. package/dist/index271.js +15 -8
  79. package/dist/index272.js +9 -23
  80. package/dist/index273.js +8 -9
  81. package/dist/index274.js +9 -8
  82. package/dist/index277.js +5 -67
  83. package/dist/index278.js +7 -4
  84. package/dist/index279.js +67 -8
  85. package/dist/index281.js +19 -0
  86. package/dist/index282.js +28 -7
  87. package/dist/index283.js +4 -4
  88. package/dist/index284.js +1 -1
  89. package/dist/index285.js +1 -1
  90. package/dist/index287.js +7 -2
  91. package/dist/index288.js +3 -28
  92. package/dist/index289.js +7 -17
  93. package/dist/index29.js +5 -5
  94. package/dist/index290.js +11 -7
  95. package/dist/index291.js +3 -10
  96. package/dist/index292.js +5 -4
  97. package/dist/index293.js +1 -1
  98. package/dist/index294.js +280 -3
  99. package/dist/index295.js +2 -280
  100. package/dist/index296.js +125 -2
  101. package/dist/index297.js +2 -16
  102. package/dist/index298.js +15 -2
  103. package/dist/index299.js +2 -16
  104. package/dist/index300.js +16 -2
  105. package/dist/index301.js +2 -19
  106. package/dist/index302.js +16 -2
  107. package/dist/index303.js +2 -15
  108. package/dist/index304.js +19 -2
  109. package/dist/index305.js +2 -19
  110. package/dist/index306.js +6 -2
  111. package/dist/index307.js +3 -27
  112. package/dist/index308.js +3 -2
  113. package/dist/index309.js +1 -1
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +19 -2
  116. package/dist/index311.js +2 -2
  117. package/dist/index312.js +27 -2
  118. package/dist/index313.js +2 -22
  119. package/dist/index314.js +4 -0
  120. package/dist/index315.js +2 -6
  121. package/dist/index316.js +2 -3
  122. package/dist/index317.js +2 -5
  123. package/dist/index318.js +22 -125
  124. package/dist/index320.js +1 -1
  125. package/dist/index324.js +1 -1
  126. package/dist/index325.js +1 -1
  127. package/dist/index326.js +1 -1
  128. package/dist/index328.js +7 -128
  129. package/dist/index329.js +5 -368
  130. package/dist/index33.js +8 -8
  131. package/dist/index330.js +8 -47
  132. package/dist/index331.js +128 -57
  133. package/dist/index332.js +367 -56
  134. package/dist/index333.js +57 -227
  135. package/dist/index334.js +58 -8
  136. package/dist/index335.js +227 -5
  137. package/dist/index336.js +7 -8
  138. package/dist/index337.js +18 -6
  139. package/dist/index338.js +45 -17
  140. package/dist/index340.js +1 -1
  141. package/dist/index35.js +4 -4
  142. package/dist/index37.js +20 -20
  143. package/dist/index39.js +8 -8
  144. package/dist/index41.js +2 -2
  145. package/dist/index43.js +8 -8
  146. package/dist/index45.js +8 -8
  147. package/dist/index47.js +2 -2
  148. package/dist/index49.js +3 -3
  149. package/dist/index53.js +1 -1
  150. package/dist/index55.js +1 -1
  151. package/dist/index57.js +2 -2
  152. package/dist/index61.js +3 -3
  153. package/dist/index67.js +1 -1
  154. package/dist/index79.js +4 -4
  155. package/dist/index81.js +1 -1
  156. package/dist/index83.js +2 -2
  157. package/dist/index85.js +1 -1
  158. package/dist/index87.js +1 -1
  159. package/dist/index90.js +3 -3
  160. package/dist/index92.js +2 -2
  161. package/dist/index94.js +3 -3
  162. package/dist/index96.js +1 -1
  163. package/package.json +1 -1
  164. package/dist/index226.js +0 -6
  165. package/dist/index248.js +0 -7
  166. package/dist/index250.js +0 -7
  167. package/dist/index286.js +0 -5
  168. package/dist/index319.js +0 -4
package/dist/index258.js CHANGED
@@ -1,7 +1,54 @@
1
- import o from "./index313.js";
2
- /* empty css */
3
- import t from "./index282.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
1
+ import { defineComponent as p, ref as b, watch as _, computed as m, createElementBlock as d, openBlock as c, normalizeClass as u, createElementVNode as t, createVNode as h, withCtx as f, toDisplayString as o } from "vue";
2
+ import k from "./index260.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) => (c(), d("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
+ (c(), d("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/index259.js CHANGED
@@ -1,62 +1,46 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
- import { range as H } from "./index339.js";
3
- import M from "./index13.js";
1
+ import { defineComponent as _, computed as a, createElementBlock as c, openBlock as o, 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 n = 10, l = 3, V = /* @__PURE__ */ g({
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(p, { emit: _ }) {
13
- const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
- () => H(c.value, s.value).map((e) => ({
15
- text: e,
16
- key: e,
17
- selected: e === r.value,
18
- handler: () => b("update:year", e)
19
- }))
20
- ), k = (e) => {
21
- const t = e.target;
22
- t.scrollTop <= 100 ? c.value = Math.max(
23
- c.value - n * l,
24
- r.value - 200
25
- ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
- };
27
- return h(() => {
28
- if (!o.value) return;
29
- const e = o.value.querySelector(
30
- ".content__btn--selected"
31
- );
32
- e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
- }), (e, t) => (u(), m("div", {
34
- ref_key: "container",
35
- ref: o,
36
- class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
- }, [
38
- y("div", {
39
- class: "content",
40
- onScrollPassive: k
41
- }, [
42
- (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
- key: a.key,
44
- class: S({
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({
45
28
  content__btn: !0,
46
- "content__btn--selected": a.selected
29
+ "content__btn--selected": e.selected
47
30
  }),
48
- disabled: e.disabled,
49
- onClick: a.handler
31
+ disabled: r.disabled,
32
+ type: "button",
33
+ onClick: e.handler
50
34
  }, {
51
- default: T(() => [
52
- E(w(a.text), 1)
35
+ default: y(() => [
36
+ x(B(e.text), 1)
53
37
  ]),
54
38
  _: 2
55
39
  }, 1032, ["class", "disabled", "onClick"]))), 128))
56
- ], 32)
57
- ], 512));
40
+ ])
41
+ ]));
58
42
  }
59
43
  });
60
44
  export {
61
- V as default
45
+ E as default
62
46
  };
package/dist/index260.js CHANGED
@@ -1,88 +1,7 @@
1
- import { defineComponent as h, createElementBlock as n, openBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createCommentVNode as p, createTextVNode as o, toDisplayString as d, unref as b, Fragment as m, renderList as u } from "vue";
2
- import { useLocale as g } from "./index223.js";
3
- const k = { class: "bb-cr-container__container" }, y = {
4
- key: 0,
5
- class: "bb-cr-container__loading-container"
6
- }, $ = {
7
- key: 1,
8
- class: "bb-cr-container__no-data-container"
9
- }, C = /* @__PURE__ */ h({
10
- __name: "OptionsContainer",
11
- props: {
12
- direction: {},
13
- hasErrors: { type: Boolean },
14
- hideLabel: { type: Boolean },
15
- loadingText: {},
16
- loading: { type: Boolean },
17
- noDataText: {},
18
- options: {}
19
- },
20
- setup(f) {
21
- const { t: i } = g();
22
- return (a, T) => (s(), n("span", {
23
- ref: "container",
24
- class: r(["bb-cr-container", {
25
- "bb-cr-container--errors": a.hasErrors,
26
- "bb-cr-container--horizontal": a.direction === "horizontal",
27
- "bb-cr-container--vertical": a.direction === "vertical"
28
- }])
29
- }, [
30
- l("span", k, [
31
- t(a.$slots, "prepend"),
32
- !a.options.length && a.loading ? (s(), n("span", y, [
33
- t(a.$slots, "loading", {}, () => [
34
- o(d(a.loadingText || b(i)("common.loadingText")), 1)
35
- ])
36
- ])) : a.options.length ? p("", !0) : (s(), n("span", $, [
37
- t(a.$slots, "no-data", {}, () => [
38
- o(d(a.noDataText || b(i)("common.noDataText")), 1)
39
- ])
40
- ])),
41
- (s(!0), n(m, null, u(a.options, (e, c) => (s(), n(m, {
42
- key: (e == null ? void 0 : e.valueHash) || c
43
- }, [
44
- t(a.$slots, "option:prepend", {
45
- id: e.valueHash,
46
- checked: !!e.selected,
47
- disabled: !!e.disabled,
48
- item: e.item,
49
- text: e.text
50
- }),
51
- l("label", {
52
- class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
53
- }, [
54
- t(a.$slots, "input", {
55
- index: c,
56
- option: e
57
- }),
58
- l("span", {
59
- class: r({
60
- "bb-cr-container-option__text": !0,
61
- "sr-only": a.hideLabel
62
- })
63
- }, [
64
- t(a.$slots, "label", {
65
- checked: !!e.selected,
66
- item: e.item,
67
- text: e.text
68
- }, () => [
69
- o(d(e.text), 1)
70
- ])
71
- ], 2)
72
- ], 2),
73
- t(a.$slots, "option:append", {
74
- id: e.valueHash,
75
- checked: !!e.selected,
76
- disabled: !!e.disabled,
77
- item: e.item,
78
- text: e.text
79
- })
80
- ], 64))), 128)),
81
- t(a.$slots, "append")
82
- ])
83
- ], 2));
84
- }
85
- });
1
+ import o from "./index318.js";
2
+ /* empty css */
3
+ import t from "./index287.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
86
5
  export {
87
- C as default
6
+ m as default
88
7
  };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as g, ref as i, computed as d, onMounted as h, createElementBlock as m, openBlock as u, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
2
+ import { range as H } from "./index339.js";
3
+ import M from "./index13.js";
4
+ /* empty css */
5
+ const n = 10, l = 3, V = /* @__PURE__ */ g({
6
+ __name: "BaseDatePickerYearSelector",
7
+ props: {
8
+ cursor: {},
9
+ disabled: { type: Boolean }
10
+ },
11
+ emits: ["update:year"],
12
+ setup(p, { emit: _ }) {
13
+ const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
14
+ () => H(c.value, s.value).map((e) => ({
15
+ text: e,
16
+ key: e,
17
+ selected: e === r.value,
18
+ handler: () => b("update:year", e)
19
+ }))
20
+ ), k = (e) => {
21
+ const t = e.target;
22
+ t.scrollTop <= 100 ? c.value = Math.max(
23
+ c.value - n * l,
24
+ r.value - 200
25
+ ) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
26
+ };
27
+ return h(() => {
28
+ if (!o.value) return;
29
+ const e = o.value.querySelector(
30
+ ".content__btn--selected"
31
+ );
32
+ e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
33
+ }), (e, t) => (u(), m("div", {
34
+ ref_key: "container",
35
+ ref: o,
36
+ class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
37
+ }, [
38
+ y("div", {
39
+ class: "content",
40
+ onScrollPassive: k
41
+ }, [
42
+ (u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
43
+ key: a.key,
44
+ class: S({
45
+ content__btn: !0,
46
+ "content__btn--selected": a.selected
47
+ }),
48
+ disabled: e.disabled,
49
+ onClick: a.handler
50
+ }, {
51
+ default: T(() => [
52
+ E(w(a.text), 1)
53
+ ]),
54
+ _: 2
55
+ }, 1032, ["class", "disabled", "onClick"]))), 128))
56
+ ], 32)
57
+ ], 512));
58
+ }
59
+ });
60
+ export {
61
+ V as default
62
+ };
package/dist/index262.js CHANGED
@@ -1,4 +1,4 @@
1
- const e = (t) => t;
1
+ const o = (e) => e[0];
2
2
  export {
3
- e as identity
3
+ o as head
4
4
  };
package/dist/index263.js CHANGED
@@ -1,5 +1,9 @@
1
- import r from "./index317.js";
2
- const t = r;
1
+ const s = (e, t, o, r) => {
2
+ if (r <= 0) throw new Error("Step must be a positive number");
3
+ if (t > o) throw new Error("Min must be less than or equal to Max");
4
+ const n = Math.max(t, Math.min(o, e)), a = Math.round((n - t) / r);
5
+ return t + a * r;
6
+ };
3
7
  export {
4
- t as deburr
8
+ s as snapToStep
5
9
  };
package/dist/index264.js CHANGED
@@ -1,7 +1,9 @@
1
- import { getDefaultExportFromCjs as r } from "./index315.js";
2
- import { __require as o } from "./index318.js";
3
- var t = o();
4
- const m = /* @__PURE__ */ r(t);
1
+ function o(t, e, n, r, a) {
2
+ if (n === e)
3
+ throw new Error("Original boundaries cannot be equal.");
4
+ const c = (t - e) / (n - e);
5
+ return r + c * (a - r);
6
+ }
5
7
  export {
6
- m as default
8
+ o as transpose
7
9
  };
package/dist/index265.js CHANGED
@@ -1,12 +1,11 @@
1
- const o = (t, r) => {
2
- const e = {};
3
- for (const c in t)
4
- if (Object.prototype.hasOwnProperty.call(t, c)) {
5
- const n = t[c];
6
- r(n, c, t) && (e[c] = n);
7
- }
8
- return e;
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;
9
8
  };
10
9
  export {
11
- o as pickBy
10
+ o as findRightIndex
12
11
  };
package/dist/index266.js CHANGED
@@ -1,5 +1,25 @@
1
- const o = () => {
2
- };
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 noop
24
+ n as default
5
25
  };
package/dist/index267.js CHANGED
@@ -1,11 +1,12 @@
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
- }
1
+ const o = (t, r) => {
2
+ const e = {};
3
+ for (const c in t)
4
+ if (Object.prototype.hasOwnProperty.call(t, c)) {
5
+ const n = t[c];
6
+ r(n, c, t) && (e[c] = n);
7
+ }
8
+ return e;
9
+ };
9
10
  export {
10
- u as debounce
11
+ o as pickBy
11
12
  };
package/dist/index268.js CHANGED
@@ -1,5 +1,5 @@
1
- import t from "./index320.js";
2
- const r = t;
1
+ const o = () => {
2
+ };
3
3
  export {
4
- r as throttle
4
+ o as noop
5
5
  };
package/dist/index269.js CHANGED
@@ -1,8 +1,5 @@
1
- import e from "./index321.js";
2
- import o from "./index322.js";
3
- import r from "./index323.js";
4
- const f = new r(o, e)._freeze();
1
+ import t from "./index320.js";
2
+ const r = t;
5
3
  export {
6
- r as Mime,
7
- f as default
4
+ r as throttle
8
5
  };
package/dist/index27.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, computed as n, createElementBlock as c, openBlock as r, normalizeClass as T, createBlock as w, createVNode as B, createElementVNode as p, resolveDynamicComponent as E, normalizeProps as o, guardReactiveProps as l, withCtx as b, renderSlot as P, createTextVNode as V, toDisplayString as d, unref as m, Fragment as D, renderList as I } from "vue";
2
- import { deburr as N } from "./index263.js";
2
+ import { deburr as N } from "./index233.js";
3
3
  import { getAsPercentage as $ } from "./index136.js";
4
4
  import { useId as F } from "./index8.js";
5
5
  import R from "./index69.js";
package/dist/index270.js CHANGED
@@ -1,18 +1,8 @@
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;
13
- }
14
- return t;
15
- }, null);
1
+ import e from "./index321.js";
2
+ import o from "./index322.js";
3
+ import r from "./index323.js";
4
+ const f = new r(o, e)._freeze();
16
5
  export {
17
- e as findInTree
6
+ r as Mime,
7
+ f as default
18
8
  };
package/dist/index271.js CHANGED
@@ -1,11 +1,18 @@
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;
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;
6
13
  }
7
- return -1;
8
- };
14
+ return t;
15
+ }, null);
9
16
  export {
10
- o as findRightIndex
17
+ e as findInTree
11
18
  };
package/dist/index272.js CHANGED
@@ -1,25 +1,11 @@
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 { get as o } from "./index290.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
+ });
23
9
  export {
24
- n as default
10
+ e as useItemValue
25
11
  };
package/dist/index273.js CHANGED
@@ -1,11 +1,10 @@
1
- import { get as o } from "./index291.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
+ 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
+ );
9
8
  export {
10
- e as useItemValue
9
+ u as indexBy
11
10
  };
package/dist/index274.js CHANGED
@@ -1,10 +1,11 @@
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
- );
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
+ }
8
9
  export {
9
- u as indexBy
10
+ u as debounce
10
11
  };
package/dist/index277.js CHANGED
@@ -1,69 +1,7 @@
1
- import { defineComponent as d, createElementBlock as l, openBlock as o, normalizeClass as u, createElementVNode as t, createBlock as i, createCommentVNode as s, unref as f, withCtx as g, toDisplayString as n } from "vue";
2
- import { useLocale as k } from "./index223.js";
3
- import h from "./index13.js";
4
- /* empty css */
5
- import C from "./index85.js";
6
- /* empty css */
7
- const w = { class: "bb-toast-message__icon-container" }, v = { class: "bb-toast-message__content" }, y = {
8
- key: 1,
9
- class: "bb-toast-message__title"
10
- }, B = { class: "bb-toast-message__text" }, z = /* @__PURE__ */ d({
11
- __name: "BbToastMessage",
12
- props: {
13
- title: {},
14
- text: {},
15
- icon: {},
16
- theme: { default: "default" },
17
- id: {},
18
- showClose: { type: Boolean }
19
- },
20
- emits: ["click:close"],
21
- setup(r, { emit: c }) {
22
- const m = r, p = c, { t: _ } = k(), b = () => {
23
- p("click:close", m.id);
24
- };
25
- return (e, a) => (o(), l("div", {
26
- "aria-atomic": "true",
27
- "aria-live": "polite",
28
- "aria-role": "alert",
29
- class: u(["bb-toast-message", { [`bb-toast-message--${e.theme}`]: e.theme }])
30
- }, [
31
- t("div", w, [
32
- e.icon ? (o(), i(C, {
33
- key: 0,
34
- class: "bb-toast-message__icon",
35
- type: e.icon
36
- }, null, 8, ["type"])) : s("", !0)
37
- ]),
38
- t("div", v, [
39
- e.showClose ? (o(), i(h, {
40
- key: 0,
41
- "aria-label": f(_)("common.closeLabel").value,
42
- class: "bb-toast-message__close",
43
- onClick: b
44
- }, {
45
- default: g(() => a[0] || (a[0] = [
46
- t("svg", {
47
- fill: "none",
48
- viewBox: "0 0 24 24",
49
- xmlns: "http://www.w3.org/2000/svg"
50
- }, [
51
- t("path", {
52
- d: "M23 23L1 1M23 1L1 23",
53
- stroke: "currentColor",
54
- "stroke-linecap": "round",
55
- "stroke-width": "2"
56
- })
57
- ], -1)
58
- ])),
59
- _: 1
60
- }, 8, ["aria-label"])) : s("", !0),
61
- e.title ? (o(), l("p", y, n(e.title), 1)) : s("", !0),
62
- t("p", B, n(e.text), 1)
63
- ])
64
- ], 2));
65
- }
66
- });
1
+ import { getType as t } from "./index291.js";
2
+ function o(r) {
3
+ return t(r) === "Array";
4
+ }
67
5
  export {
68
- z as default
6
+ o as isArray
69
7
  };