bitboss-ui 2.0.69 → 2.0.71

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 (144) 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/index122.js +1 -1
  5. package/dist/index126.js +1 -1
  6. package/dist/index127.js +1 -1
  7. package/dist/index128.js +1 -1
  8. package/dist/index13.js +1 -1
  9. package/dist/index130.js +1 -1
  10. package/dist/index132.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 -81
  16. package/dist/index206.js +8 -2
  17. package/dist/index207.js +164 -4
  18. package/dist/index208.js +84 -2
  19. package/dist/index21.js +14 -14
  20. package/dist/index210.js +119 -155
  21. package/dist/index211.js +5 -84
  22. package/dist/index212.js +127 -0
  23. package/dist/index213.js +19 -53
  24. package/dist/index214.js +18 -0
  25. package/dist/index215.js +16 -13
  26. package/dist/index216.js +2 -20
  27. package/dist/index217.js +2 -4
  28. package/dist/index218.js +41 -2
  29. package/dist/index219.js +19 -105
  30. package/dist/index220.js +8 -0
  31. package/dist/index221.js +49 -96
  32. package/dist/index223.js +13 -2
  33. package/dist/index224.js +5 -3
  34. package/dist/index225.js +369 -2
  35. package/dist/index226.js +2 -126
  36. package/dist/index227.js +4 -5
  37. package/dist/index228.js +2 -125
  38. package/dist/index229.js +3 -19
  39. package/dist/index23.js +15 -15
  40. package/dist/index230.js +7 -16
  41. package/dist/index231.js +3 -16
  42. package/dist/index232.js +18 -40
  43. package/dist/index233.js +27 -6
  44. package/dist/index234.js +3 -5
  45. package/dist/index235.js +246 -366
  46. package/dist/index236.js +52 -2
  47. package/dist/index237.js +42 -16
  48. package/dist/index238.js +5 -3
  49. package/dist/index239.js +60 -3
  50. package/dist/index240.js +4 -7
  51. package/dist/index241.js +2 -19
  52. package/dist/index242.js +2 -27
  53. package/dist/index243.js +16 -247
  54. package/dist/index244.js +100 -46
  55. package/dist/index246.js +100 -5
  56. package/dist/index25.js +5 -5
  57. package/dist/index250.js +3 -6
  58. package/dist/index251.js +8 -15
  59. package/dist/index252.js +23 -3
  60. package/dist/index253.js +6 -9
  61. package/dist/index254.js +16 -23
  62. package/dist/index256.js +3 -4
  63. package/dist/index257.js +12 -2
  64. package/dist/index258.js +8 -8
  65. package/dist/index259.js +9 -3
  66. package/dist/index260.js +17 -12
  67. package/dist/index261.js +3 -8
  68. package/dist/index262.js +281 -17
  69. package/dist/index263.js +5 -3
  70. package/dist/index264.js +2 -3
  71. package/dist/index265.js +4 -0
  72. package/dist/index266.js +2 -7
  73. package/dist/index267.js +2 -176
  74. package/dist/index268.js +2 -3
  75. package/dist/index269.js +126 -3
  76. package/dist/index27.js +1 -1
  77. package/dist/index270.js +427 -24
  78. package/dist/index271.js +174 -279
  79. package/dist/index272.js +3 -6
  80. package/dist/index274.js +7 -2
  81. package/dist/index275.js +22 -2
  82. package/dist/index277.js +4 -2
  83. package/dist/index278.js +427 -117
  84. package/dist/index279.js +120 -424
  85. package/dist/index280.js +199 -21
  86. package/dist/index281.js +91 -0
  87. package/dist/index282.js +1 -1
  88. package/dist/index283.js +2 -211
  89. package/dist/index284.js +2 -436
  90. package/dist/index285.js +2 -127
  91. package/dist/index286.js +2 -200
  92. package/dist/index287.js +2 -89
  93. package/dist/index288.js +2 -5
  94. package/dist/index289.js +27 -65
  95. package/dist/index29.js +3 -3
  96. package/dist/index290.js +22 -2
  97. package/dist/index292.js +2 -2
  98. package/dist/index293.js +5 -2
  99. package/dist/index294.js +66 -2
  100. package/dist/index295.js +3 -2
  101. package/dist/index296.js +3 -22
  102. package/dist/index297.js +213 -0
  103. package/dist/index298.js +79 -4
  104. package/dist/index300.js +4 -59
  105. package/dist/index301.js +4 -79
  106. package/dist/index302.js +61 -0
  107. package/dist/index303.js +1 -1
  108. package/dist/index304.js +1 -1
  109. package/dist/index305.js +32 -3
  110. package/dist/index306.js +3 -10
  111. package/dist/index307.js +6 -32
  112. package/dist/index308.js +10 -6
  113. package/dist/index309.js +7 -2
  114. package/dist/index31.js +2 -2
  115. package/dist/index310.js +17 -45
  116. package/dist/index311.js +2 -7
  117. package/dist/index312.js +45 -17
  118. package/dist/index313.js +1 -1
  119. package/dist/index33.js +2 -2
  120. package/dist/index35.js +3 -3
  121. package/dist/index37.js +13 -13
  122. package/dist/index39.js +4 -4
  123. package/dist/index41.js +2 -2
  124. package/dist/index43.js +2 -2
  125. package/dist/index45.js +6 -6
  126. package/dist/index47.js +2 -2
  127. package/dist/index49.js +2 -2
  128. package/dist/index53.js +1 -1
  129. package/dist/index55.js +1 -1
  130. package/dist/index57.js +1 -1
  131. package/dist/index75.js +3 -3
  132. package/dist/index79.js +2 -2
  133. package/dist/index81.js +1 -1
  134. package/dist/index84.js +2 -2
  135. package/dist/index88.js +3 -3
  136. package/dist/index90.js +1 -1
  137. package/package.json +2 -2
  138. package/dist/index209.js +0 -10
  139. package/dist/index245.js +0 -46
  140. package/dist/index247.js +0 -62
  141. package/dist/index273.js +0 -4
  142. package/dist/index276.js +0 -4
  143. package/dist/index291.js +0 -4
  144. package/dist/index299.js +0 -6
package/dist/index246.js CHANGED
@@ -1,7 +1,102 @@
1
- import o from "./index296.js";
2
- /* empty css */
3
- import t from "./index266.js";
4
- const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
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 "./index234.js";
3
+ import { isNil as i } from "./index129.js";
4
+ const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
5
+ __name: "CommaBox",
6
+ props: {
7
+ options: {}
8
+ },
9
+ emits: ["option:unselected"],
10
+ setup(m, { expose: h, emit: x }) {
11
+ const t = m, a = x, n = H(null), l = L(() => t.options.some((e) => !e.disabled)), u = (e = 1) => {
12
+ const s = i(n.value) ? -1 : n.value;
13
+ let o = (s + e) % t.options.length;
14
+ for (; t.options[o].disabled && o !== s; )
15
+ o = u(e + 1);
16
+ return o;
17
+ }, b = () => {
18
+ if (!l.value) return;
19
+ const e = u();
20
+ n.value = e;
21
+ }, c = (e = 1) => {
22
+ const s = i(n.value) ? 0 : n.value;
23
+ let o = (s - e + t.options.length) % t.options.length;
24
+ for (; t.options[o].disabled && o !== s; )
25
+ o = c(e + 1);
26
+ return o;
27
+ }, w = async () => {
28
+ if (!l.value) return;
29
+ const e = c();
30
+ n.value = e;
31
+ }, I = () => {
32
+ if (!l.value) return;
33
+ let e = 0;
34
+ for (; t.options[e].disabled; )
35
+ e++;
36
+ n.value = e;
37
+ }, g = () => {
38
+ if (!l.value) return;
39
+ let e = t.options.length - 1;
40
+ for (; t.options[e].disabled && e !== 0; )
41
+ e--;
42
+ n.value = e;
43
+ }, k = () => {
44
+ if (!l.value) return;
45
+ let e = 0;
46
+ for (; !t.options[e].selected && t.options.length !== e; )
47
+ e++;
48
+ n.value = e;
49
+ }, _ = () => {
50
+ if (!l.value) return;
51
+ let e = t.options.length - 1;
52
+ for (; t.options[e].selected && e !== 0; )
53
+ e--;
54
+ n.value = e;
55
+ }, C = (e) => {
56
+ if (!l.value) return;
57
+ const s = t.options.findIndex(
58
+ (o) => o.valueHash === e
59
+ );
60
+ s >= 0 && (n.value = s);
61
+ }, r = () => {
62
+ n.value = null;
63
+ }, y = () => {
64
+ if (!n.value) return;
65
+ const e = t.options[n.value];
66
+ e.selected && a("option:unselected", e);
67
+ }, B = () => i(n.value) ? void 0 : t.options[n.value];
68
+ return N(
69
+ () => t.options,
70
+ (e, s) => {
71
+ f(e) !== f(s) && r();
72
+ },
73
+ {
74
+ flush: "post"
75
+ }
76
+ ), h({
77
+ focusNext: b,
78
+ focusPrevious: w,
79
+ focusFirst: I,
80
+ focusFirstSelected: k,
81
+ focusLast: g,
82
+ focusLastSelected: _,
83
+ blur: r,
84
+ confirmOption: y,
85
+ focusByHash: C,
86
+ getHighlighted: B
87
+ }), (e, s) => (d(!0), v(S, null, A(e.options, (o, p) => (d(), v("span", {
88
+ key: o.valueHash,
89
+ class: O({
90
+ "bb-commabox-item": !0,
91
+ "bb-commabox-item--focused": p === n.value,
92
+ "bb-commabox-item--has-comma": p !== e.options.length - 1
93
+ }),
94
+ clearable: !0,
95
+ text: o.text,
96
+ "onClick:clear": P((D) => a("option:unselected", o), ["stop"])
97
+ }, V(o.text), 43, z))), 128));
98
+ }
99
+ });
5
100
  export {
6
- m as default
101
+ j as default
7
102
  };
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 "./index239.js";
3
- import { useFocusTrap as fe } from "./index232.js";
2
+ import { throttle as ve } from "./index229.js";
3
+ import { useFocusTrap as fe } from "./index218.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 "./index233.js";
7
- import { useModalsState as C } from "./index240.js";
8
- import { useLogger as pe } from "./index209.js";
6
+ import { waitFor as be } from "./index220.js";
7
+ import { useModalsState as C } from "./index230.js";
8
+ import { useLogger as pe } from "./index206.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,8 +1,5 @@
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();
1
+ import o from "./index298.js";
2
+ /* empty css */
5
3
  export {
6
- o as Mime,
7
- f as default
4
+ o as default
8
5
  };
package/dist/index251.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/index252.js CHANGED
@@ -1,5 +1,25 @@
1
- import o from "./index301.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
  };
package/dist/index253.js CHANGED
@@ -1,11 +1,8 @@
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
+ import e from "./index300.js";
2
+ import r from "./index301.js";
3
+ import o from "./index302.js";
4
+ const f = new o(r, e)._freeze();
9
5
  export {
10
- o as findRightIndex
6
+ o as Mime,
7
+ f as default
11
8
  };
package/dist/index254.js CHANGED
@@ -1,25 +1,18 @@
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
+ 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);
23
16
  export {
24
- n as default
17
+ e as findInTree
25
18
  };
package/dist/index256.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/index257.js CHANGED
@@ -1,4 +1,14 @@
1
- const t = (d, o) => +d + +o;
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
- t as add
13
+ n as useArray
4
14
  };
package/dist/index258.js CHANGED
@@ -1,11 +1,11 @@
1
- import { get as o } from "./index306.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);
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));
7
6
  }
8
- });
7
+ return s;
8
+ }
9
9
  export {
10
- e as useItemValue
10
+ u as uniqBy
11
11
  };
package/dist/index259.js CHANGED
@@ -1,5 +1,11 @@
1
- import o from "./index211.js";
2
- /* empty css */
1
+ import { get as o } from "./index308.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
+ });
3
9
  export {
4
- o as default
10
+ e as useItemValue
5
11
  };
package/dist/index260.js CHANGED
@@ -1,14 +1,19 @@
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
- };
1
+ import { get as t } from "./index308.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
+ });
12
17
  export {
13
- n as useArray
18
+ o as useItemText
14
19
  };
package/dist/index261.js CHANGED
@@ -1,11 +1,6 @@
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;
1
+ function u(...e) {
2
+ return (r) => e.reduce((n, t) => t(n), r);
8
3
  }
9
4
  export {
10
- u as uniqBy
5
+ u as pipe
11
6
  };