bitboss-ui 2.0.90 → 2.0.91

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 (139) hide show
  1. package/dist/index.js +1 -0
  2. package/dist/index109.js +5 -5
  3. package/dist/index117.js +2 -2
  4. package/dist/index119.js +5 -5
  5. package/dist/index12.js +1 -1
  6. package/dist/index121.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index126.js +1 -1
  9. package/dist/index127.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index131.js +2 -2
  12. package/dist/index132.js +2 -2
  13. package/dist/index14.js +4 -4
  14. package/dist/index16.js +3 -3
  15. package/dist/index18.js +2 -2
  16. package/dist/index20.js +12 -12
  17. package/dist/index203.js +2 -81
  18. package/dist/index204.js +81 -2
  19. package/dist/index205.js +2 -52
  20. package/dist/index206.js +6 -0
  21. package/dist/index207.js +2 -13
  22. package/dist/index208.js +50 -6
  23. package/dist/index210.js +13 -4
  24. package/dist/index211.js +157 -119
  25. package/dist/index212.js +84 -5
  26. package/dist/index214.js +5 -19
  27. package/dist/index215.js +2 -2
  28. package/dist/index216.js +2 -2
  29. package/dist/index217.js +19 -2
  30. package/dist/index218.js +19 -2
  31. package/dist/index219.js +26 -40
  32. package/dist/index22.js +14 -14
  33. package/dist/index220.js +3 -20
  34. package/dist/index221.js +2 -6
  35. package/dist/index222.js +8 -5
  36. package/dist/index223.js +247 -10
  37. package/dist/index224.js +50 -367
  38. package/dist/index225.js +44 -2
  39. package/dist/index226.js +5 -3
  40. package/dist/index227.js +60 -4
  41. package/dist/index228.js +126 -3
  42. package/dist/index229.js +125 -7
  43. package/dist/index230.js +2 -164
  44. package/dist/index231.js +41 -84
  45. package/dist/index232.js +22 -0
  46. package/dist/index233.js +6 -19
  47. package/dist/index234.js +5 -27
  48. package/dist/index235.js +12 -3
  49. package/dist/index236.js +366 -246
  50. package/dist/index237.js +3 -52
  51. package/dist/index238.js +7 -44
  52. package/dist/index239.js +3 -5
  53. package/dist/index24.js +6 -6
  54. package/dist/index240.js +4 -60
  55. package/dist/index243.js +1 -1
  56. package/dist/index245.js +1 -1
  57. package/dist/index250.js +9 -3
  58. package/dist/index251.js +25 -0
  59. package/dist/index252.js +89 -7
  60. package/dist/index254.js +6 -23
  61. package/dist/index255.js +14 -87
  62. package/dist/index256.js +6 -0
  63. package/dist/index257.js +3 -4
  64. package/dist/index259.js +7 -6
  65. package/dist/index26.js +1 -1
  66. package/dist/index260.js +3 -2
  67. package/dist/index261.js +12 -2
  68. package/dist/index262.js +9 -2
  69. package/dist/index263.js +9 -2
  70. package/dist/index264.js +17 -2
  71. package/dist/index265.js +3 -125
  72. package/dist/index266.js +277 -427
  73. package/dist/index267.js +5 -175
  74. package/dist/index268.js +2 -22
  75. package/dist/index270.js +2 -2
  76. package/dist/index271.js +2 -224
  77. package/dist/index272.js +2 -6
  78. package/dist/index273.js +2 -16
  79. package/dist/index274.js +2 -9
  80. package/dist/index275.js +2 -200
  81. package/dist/index276.js +2 -436
  82. package/dist/index277.js +2 -127
  83. package/dist/index278.js +24 -85
  84. package/dist/index279.js +22 -3
  85. package/dist/index28.js +3 -3
  86. package/dist/index281.js +2 -9
  87. package/dist/index282.js +125 -8
  88. package/dist/index283.js +429 -15
  89. package/dist/index284.js +175 -3
  90. package/dist/index285.js +22 -2
  91. package/dist/index287.js +1 -1
  92. package/dist/index288.js +9 -2
  93. package/dist/index289.js +436 -2
  94. package/dist/index290.js +127 -2
  95. package/dist/index291.js +197 -25
  96. package/dist/index292.js +224 -22
  97. package/dist/index293.js +91 -0
  98. package/dist/index297.js +1 -1
  99. package/dist/index298.js +66 -5
  100. package/dist/index299.js +5 -66
  101. package/dist/index30.js +2 -2
  102. package/dist/index300.js +4 -32
  103. package/dist/index301.js +7 -4
  104. package/dist/index302.js +3 -8
  105. package/dist/index303.js +3 -4
  106. package/dist/index304.js +3 -3
  107. package/dist/index305.js +58 -3
  108. package/dist/index306.js +33 -3
  109. package/dist/index307.js +6 -57
  110. package/dist/index308.js +18 -10
  111. package/dist/index310.js +10 -6
  112. package/dist/index311.js +3 -18
  113. package/dist/index313.js +1 -1
  114. package/dist/index315.js +1 -1
  115. package/dist/index32.js +2 -2
  116. package/dist/index34.js +3 -3
  117. package/dist/index36.js +10 -10
  118. package/dist/index38.js +3 -3
  119. package/dist/index40.js +2 -2
  120. package/dist/index42.js +2 -2
  121. package/dist/index44.js +4 -4
  122. package/dist/index46.js +2 -2
  123. package/dist/index48.js +2 -2
  124. package/dist/index54.js +1 -1
  125. package/dist/index56.js +1 -1
  126. package/dist/index74.js +3 -3
  127. package/dist/index78.js +2 -2
  128. package/dist/index80.js +1 -1
  129. package/dist/index83.js +3 -3
  130. package/dist/index85.js +1 -1
  131. package/dist/index87.js +4 -4
  132. package/dist/index89.js +1 -1
  133. package/package.json +2 -1
  134. package/dist/index209.js +0 -4
  135. package/dist/index213.js +0 -127
  136. package/dist/index253.js +0 -11
  137. package/dist/index258.js +0 -283
  138. package/dist/index280.js +0 -14
  139. /package/dist/{index286.js → index269.js} +0 -0
package/dist/index237.js CHANGED
@@ -1,54 +1,5 @@
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 "./index239.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
- });
1
+ import t from "./index293.js";
2
+ const r = t;
52
3
  export {
53
- C as default
4
+ r as throttle
54
5
  };
package/dist/index238.js CHANGED
@@ -1,46 +1,9 @@
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 "./index12.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
- });
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 });
44
7
  export {
45
- E as default
8
+ d as useModalsState
46
9
  };
package/dist/index239.js CHANGED
@@ -1,7 +1,5 @@
1
- import o from "./index292.js";
2
- /* empty css */
3
- import t from "./index252.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
1
+ import r from "./index292.js";
2
+ const t = r;
5
3
  export {
6
- m as default
4
+ t as deburr
7
5
  };
package/dist/index24.js CHANGED
@@ -1,12 +1,12 @@
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, withCtx as de, createElementVNode as a, mergeProps as G, createElementBlock as $, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
2
- import { throttle as ve } from "./index228.js";
3
- import { useFocusTrap as fe } from "./index219.js";
2
+ import { throttle as ve } from "./index237.js";
3
+ import { useFocusTrap as fe } from "./index231.js";
4
4
  import { useId as K } from "./index7.js";
5
5
  import { wait as H } from "./index130.js";
6
- import { waitFor as be } from "./index221.js";
7
- import { useModalsState as _ } from "./index229.js";
8
- import { useLogger as pe } from "./index208.js";
9
- import me from "./index223.js";
6
+ import { waitFor as be } from "./index233.js";
7
+ import { useModalsState as _ } from "./index238.js";
8
+ import { useLogger as pe } from "./index222.js";
9
+ import me from "./index235.js";
10
10
  const ge = { class: "bb-base-dialog-close" }, ye = ["aria-label"], ze = /* @__PURE__ */ ae({
11
11
  __name: "BaseDialog",
12
12
  props: {
package/dist/index240.js CHANGED
@@ -1,62 +1,6 @@
1
- import { defineComponent as g, ref as i, computed as d, onMounted as h, openBlock as u, createElementBlock as m, 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 "./index309.js";
3
- import M from "./index12.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
- });
1
+ function x(e) {
2
+ return /^#([A-Fa-f0-9]{6})$/.test(e);
3
+ }
60
4
  export {
61
- V as default
5
+ x as isHex
62
6
  };
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 "./index235.js";
2
+ import { hash as d } from "./index220.js";
3
3
  import { isNil as l } from "./index128.js";
4
4
  import E from "./index123.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 "./index235.js";
2
+ import { hash as f } from "./index220.js";
3
3
  import { isNil as i } from "./index128.js";
4
4
  const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
5
  __name: "CommaBox",
package/dist/index250.js CHANGED
@@ -1,5 +1,11 @@
1
- import o from "./index205.js";
2
- /* empty css */
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
+ };
3
9
  export {
4
- o as default
10
+ o as findRightIndex
5
11
  };
@@ -0,0 +1,25 @@
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
+ ];
23
+ export {
24
+ n as default
25
+ };
package/dist/index252.js CHANGED
@@ -1,9 +1,91 @@
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
+ import { defineComponent as h, toRef as y, ref as n, 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 "./index235.js";
3
+ import f from "./index315.js";
4
+ import { useFloating as D, arrow as E } from "./index228.js";
5
+ import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index236.js";
6
+ const j = /* @__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
+ },
22
+ setup(d) {
23
+ const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
24
+ r,
25
+ l,
26
+ {
27
+ placement: e.placement,
28
+ whileElementsMounted: P,
29
+ middleware: [
30
+ F(),
31
+ S(e.offset),
32
+ M({ padding: e.padding }),
33
+ E({
34
+ element: i,
35
+ padding: e.arrowPadding
36
+ })
37
+ ]
38
+ }
39
+ ), _ = a(() => {
40
+ if (s.value.arrow) {
41
+ const { x: t, y: u } = s.value.arrow;
42
+ return {
43
+ style: {
44
+ left: `${t}px`,
45
+ top: `${u}px`
46
+ }
47
+ };
48
+ }
49
+ }), p = a(() => f({}, e.containerAttributes, {
50
+ class: {
51
+ "bb-floating": !0,
52
+ [`bb-floating--${w.value}`]: !0,
53
+ [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
54
+ "bb-floating--hidden": !e.open,
55
+ "bb-floating--open": e.open
56
+ },
57
+ style: {
58
+ ...g.value,
59
+ "--transition-duration": `${e.transitionDuration}ms`
60
+ },
61
+ tabindex: e.open ? void 0 : -1
62
+ })), v = a(() => f({}, e.bubbleAttributes, {}));
63
+ return $(
64
+ () => e.open,
65
+ (t) => {
66
+ t && (r.value = m.value);
67
+ }
68
+ ), (t, u) => (b(), A(C, null, {
69
+ default: k(() => [
70
+ (b(), x("span", o(p.value, {
71
+ key: p.value.id,
72
+ ref_key: "content",
73
+ ref: l
74
+ }), [
75
+ c("span", o({
76
+ ref_key: "bubblearrow",
77
+ ref: i,
78
+ class: "bb-floating__arrow"
79
+ }, _.value), null, 16),
80
+ c("span", o({ class: "bb-floating__bubble" }, v.value), [
81
+ B(t.$slots, "default")
82
+ ], 16)
83
+ ], 16))
84
+ ]),
85
+ _: 3
86
+ }));
87
+ }
88
+ });
7
89
  export {
8
- s as default
90
+ j as default
9
91
  };
package/dist/index254.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 "./index303.js";
2
+ import o from "./index304.js";
3
+ import r from "./index305.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/index255.js CHANGED
@@ -1,91 +1,18 @@
1
- import { defineComponent as h, toRef as y, ref as n, 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 "./index223.js";
3
- import f from "./index315.js";
4
- import { useFloating as D, arrow as E } from "./index211.js";
5
- import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index224.js";
6
- const j = /* @__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
- },
22
- setup(d) {
23
- const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
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]),
24
8
  r,
25
- l,
26
- {
27
- placement: e.placement,
28
- whileElementsMounted: P,
29
- middleware: [
30
- F(),
31
- S(e.offset),
32
- M({ padding: e.padding }),
33
- E({
34
- element: i,
35
- padding: e.arrowPadding
36
- })
37
- ]
38
- }
39
- ), _ = a(() => {
40
- if (s.value.arrow) {
41
- const { x: t, y: u } = s.value.arrow;
42
- return {
43
- style: {
44
- left: `${t}px`,
45
- top: `${u}px`
46
- }
47
- };
48
- }
49
- }), p = a(() => f({}, e.containerAttributes, {
50
- class: {
51
- "bb-floating": !0,
52
- [`bb-floating--${w.value}`]: !0,
53
- [`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
54
- "bb-floating--hidden": !e.open,
55
- "bb-floating--open": e.open
56
- },
57
- style: {
58
- ...g.value,
59
- "--transition-duration": `${e.transitionDuration}ms`
60
- },
61
- tabindex: e.open ? void 0 : -1
62
- })), v = a(() => f({}, e.bubbleAttributes, {}));
63
- return $(
64
- () => e.open,
65
- (t) => {
66
- t && (r.value = m.value);
67
- }
68
- ), (t, u) => (b(), A(C, null, {
69
- default: k(() => [
70
- (b(), x("span", o(p.value, {
71
- key: p.value.id,
72
- ref_key: "content",
73
- ref: l
74
- }), [
75
- c("span", o({
76
- ref_key: "bubblearrow",
77
- ref: i,
78
- class: "bb-floating__arrow"
79
- }, _.value), null, 16),
80
- c("span", o({ class: "bb-floating__bubble" }, v.value), [
81
- B(t.$slots, "default")
82
- ], 16)
83
- ], 16))
84
- ]),
85
- _: 3
86
- }));
9
+ f
10
+ );
11
+ if (i)
12
+ return i;
87
13
  }
88
- });
14
+ return t;
15
+ }, null);
89
16
  export {
90
- j as default
17
+ e as findInTree
91
18
  };
@@ -0,0 +1,6 @@
1
+ const e = function(t) {
2
+ return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
+ };
4
+ export {
5
+ e as curry
6
+ };
package/dist/index257.js CHANGED
@@ -1,6 +1,5 @@
1
- const e = function(t) {
2
- return (...n) => n.length >= t.length ? t(...n) : e(t.bind(void 0, ...n));
3
- };
1
+ import o from "./index208.js";
2
+ /* empty css */
4
3
  export {
5
- e as curry
4
+ o as default
6
5
  };
package/dist/index259.js CHANGED
@@ -1,8 +1,9 @@
1
- var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
- function l(e) {
3
- return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
4
- }
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
+ };
5
7
  export {
6
- o as commonjsGlobal,
7
- l as getDefaultExportFromCjs
8
+ s as default
8
9
  };
package/dist/index26.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 y, 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 "./index226.js";
2
+ import { deburr as N } from "./index239.js";
3
3
  import { getAsPercentage as $ } from "./index129.js";
4
4
  import { useId as F } from "./index7.js";
5
5
  import R from "./index124.js";
package/dist/index260.js CHANGED
@@ -1,4 +1,5 @@
1
- var a = { exports: {} };
1
+ import o from "./index212.js";
2
+ /* empty css */
2
3
  export {
3
- a as __module
4
+ o as default
4
5
  };
package/dist/index261.js CHANGED
@@ -1,4 +1,14 @@
1
- var o = { exports: {} };
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
+ } };
11
+ };
2
12
  export {
3
- o as __module
13
+ n as useArray
4
14
  };
package/dist/index262.js CHANGED
@@ -1,4 +1,11 @@
1
- var e = { exports: {} };
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
+ }
2
9
  export {
3
- e as __module
10
+ u as uniqBy
4
11
  };
package/dist/index263.js CHANGED
@@ -1,4 +1,11 @@
1
- var e = { exports: {} };
1
+ import { get as o } from "./index310.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
+ });
2
9
  export {
3
- e as __module
10
+ e as useItemValue
4
11
  };
package/dist/index264.js CHANGED
@@ -1,4 +1,19 @@
1
- var e = { exports: {} };
1
+ import { get as t } from "./index310.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);
15
+ }
16
+ });
2
17
  export {
3
- e as __module
18
+ o as useItemText
4
19
  };