bitboss-ui 2.0.111 → 2.0.113

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 (155) hide show
  1. package/dist/composables/useConfirm.d.ts +79 -111
  2. package/dist/index100.js +9 -9
  3. package/dist/index111.js +12 -12
  4. package/dist/index119.js +1 -1
  5. package/dist/index121.js +5 -5
  6. package/dist/index123.js +1 -1
  7. package/dist/index125.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index129.js +1 -1
  11. package/dist/index13.js +2 -2
  12. package/dist/index131.js +1 -1
  13. package/dist/index133.js +2 -2
  14. package/dist/index15.js +5 -5
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +8 -8
  17. package/dist/index206.js +2 -3
  18. package/dist/index207.js +51 -6
  19. package/dist/index209.js +13 -2
  20. package/dist/index21.js +16 -16
  21. package/dist/index210.js +3 -53
  22. package/dist/index211.js +43 -0
  23. package/dist/index212.js +6 -13
  24. package/dist/index213.js +7 -2
  25. package/dist/index214.js +8 -4
  26. package/dist/index215.js +15 -2
  27. package/dist/index216.js +13 -20
  28. package/dist/index217.js +5 -4
  29. package/dist/index218.js +16 -13
  30. package/dist/index219.js +16 -5
  31. package/dist/index220.js +18 -15
  32. package/dist/index221.js +14 -15
  33. package/dist/index222.js +18 -18
  34. package/dist/index223.js +24 -12
  35. package/dist/index224.js +3 -19
  36. package/dist/index225.js +2 -27
  37. package/dist/index226.js +250 -2
  38. package/dist/index227.js +42 -240
  39. package/dist/index228.js +35 -43
  40. package/dist/index229.js +5 -44
  41. package/dist/index23.js +18 -18
  42. package/dist/index230.js +60 -5
  43. package/dist/index231.js +3 -60
  44. package/dist/index232.js +126 -3
  45. package/dist/index233.js +124 -40
  46. package/dist/index234.js +2 -6
  47. package/dist/index235.js +20 -7
  48. package/dist/index236.js +5 -15
  49. package/dist/index237.js +353 -110
  50. package/dist/index238.js +2 -125
  51. package/dist/index239.js +4 -2
  52. package/dist/index240.js +2 -5
  53. package/dist/index241.js +85 -368
  54. package/dist/index243.js +27 -0
  55. package/dist/index244.js +13 -21
  56. package/dist/index245.js +45 -14
  57. package/dist/index246.js +12 -45
  58. package/dist/index247.js +11 -14
  59. package/dist/index248.js +15 -11
  60. package/dist/index249.js +4 -16
  61. package/dist/index25.js +7 -7
  62. package/dist/index250.js +2 -2
  63. package/dist/index251.js +18 -2
  64. package/dist/index252.js +2 -2
  65. package/dist/index254.js +2 -2
  66. package/dist/index256.js +12 -2
  67. package/dist/index257.js +2 -18
  68. package/dist/index258.js +2 -12
  69. package/dist/index263.js +4 -4
  70. package/dist/index265.js +6 -28
  71. package/dist/index266.js +16 -6
  72. package/dist/index267.js +3 -16
  73. package/dist/index269.js +7 -9
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +281 -9
  76. package/dist/index271.js +6 -8
  77. package/dist/index272.js +2 -3
  78. package/dist/index274.js +2 -7
  79. package/dist/index275.js +2 -4
  80. package/dist/index276.js +2 -176
  81. package/dist/index277.js +2 -7
  82. package/dist/index278.js +2 -11
  83. package/dist/index279.js +2 -281
  84. package/dist/index280.js +2 -6
  85. package/dist/index281.js +2 -2
  86. package/dist/index282.js +2 -2
  87. package/dist/index283.js +28 -2
  88. package/dist/index284.js +22 -2
  89. package/dist/index286.js +7 -2
  90. package/dist/index287.js +11 -2
  91. package/dist/index288.js +431 -2
  92. package/dist/index289.js +1 -1
  93. package/dist/index29.js +3 -3
  94. package/dist/index290.js +89 -2
  95. package/dist/index291.js +224 -2
  96. package/dist/index292.js +4 -22
  97. package/dist/index293.js +202 -0
  98. package/dist/index294.js +2 -431
  99. package/dist/index295.js +126 -2
  100. package/dist/index296.js +171 -84
  101. package/dist/index297.js +22 -2
  102. package/dist/index299.js +3 -22
  103. package/dist/index300.js +19 -0
  104. package/dist/index301.js +8 -199
  105. package/dist/index302.js +9 -3
  106. package/dist/index303.js +434 -15
  107. package/dist/index304.js +113 -422
  108. package/dist/index305.js +8 -127
  109. package/dist/index308.js +3 -3
  110. package/dist/index309.js +7 -2
  111. package/dist/index31.js +2 -2
  112. package/dist/index310.js +1 -1
  113. package/dist/index311.js +33 -5
  114. package/dist/index312.js +2 -5
  115. package/dist/index313.js +5 -8
  116. package/dist/index314.js +5 -3
  117. package/dist/index315.js +8 -3
  118. package/dist/index316.js +7 -3
  119. package/dist/index317.js +17 -56
  120. package/dist/index318.js +3 -4
  121. package/dist/index319.js +53 -7
  122. package/dist/index320.js +52 -18
  123. package/dist/index321.js +3 -6
  124. package/dist/index322.js +2 -32
  125. package/dist/index323.js +3 -53
  126. package/dist/index324.js +57 -52
  127. package/dist/{index327.js → index328.js} +1 -1
  128. package/dist/index33.js +8 -8
  129. package/dist/index35.js +4 -4
  130. package/dist/index37.js +19 -19
  131. package/dist/index39.js +5 -5
  132. package/dist/index41.js +2 -2
  133. package/dist/index43.js +8 -8
  134. package/dist/index45.js +5 -5
  135. package/dist/index47.js +2 -2
  136. package/dist/index49.js +2 -2
  137. package/dist/index53.js +1 -1
  138. package/dist/index55.js +8 -7
  139. package/dist/index57.js +2 -2
  140. package/dist/index6.js +49 -87
  141. package/dist/index61.js +1 -1
  142. package/dist/index69.js +76 -64
  143. package/dist/index77.js +1 -1
  144. package/dist/index79.js +2 -2
  145. package/dist/index81.js +1 -1
  146. package/dist/index84.js +4 -4
  147. package/dist/index86.js +2 -2
  148. package/dist/index88.js +3 -3
  149. package/dist/index90.js +1 -1
  150. package/package.json +1 -1
  151. package/dist/index208.js +0 -5
  152. package/dist/index242.js +0 -88
  153. package/dist/index268.js +0 -226
  154. package/dist/index298.js +0 -128
  155. /package/dist/{index285.js → index273.js} +0 -0
package/dist/index57.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
2
- import { isCssColor as r } from "./index213.js";
3
- import { isNil as B } from "./index251.js";
2
+ import { isCssColor as r } from "./index238.js";
3
+ import { isNil as B } from "./index258.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
6
6
  props: {
package/dist/index6.js CHANGED
@@ -1,94 +1,56 @@
1
- import { ref as i, computed as v, watch as m } from "vue";
2
- import { wait as y } from "./index130.js";
3
- const t = i(null), r = {
4
- actions: !0,
5
- description: "",
6
- loading: !1,
7
- no: !0,
8
- noText: "",
1
+ import { ref as i } from "vue";
2
+ import { wait as f } from "./index130.js";
3
+ const u = [], o = {
4
+ current: null,
5
+ processing: !1,
6
+ yesBusy: !1,
9
7
  noBusy: !1,
10
- open: !1,
11
- size: "sm",
12
- text: "",
13
- theme: "default",
14
- title: "",
15
- yes: !0,
16
- yesText: "",
17
- onYes: null,
18
- onNo: null,
19
- yesBusy: !1
20
- }, d = {
21
- actions: !0,
22
- description: "",
23
- no: !0,
24
- noText: "Annulla",
25
- text: "",
26
- theme: "default",
27
- title: "",
28
- yes: !0,
29
- yesText: "OK",
30
- size: "sm",
31
- onYes: null,
32
- onNo: null,
33
- timeout: void 0
8
+ loading: !1
34
9
  }, e = i({
35
- ...r
36
- }), T = v(() => [
37
- {
38
- text: e.value.noText,
39
- handler: async () => {
40
- e.value.noBusy || (e.value.onNo && (e.value.noBusy = !0, await e.value.onNo(), e.value.noBusy = !1), t.value = !1);
41
- }
42
- },
43
- {
44
- text: e.value.yesText,
45
- handler: async () => {
46
- e.value.yesBusy || (e.value.onYes && (e.value.yesBusy = !0, await e.value.onYes(), e.value.yesBusy = !1), t.value = !0);
10
+ ...o
11
+ });
12
+ let a;
13
+ const l = () => {
14
+ const t = u.shift();
15
+ t && (e.value.current = t, e.value.noBusy = !1, e.value.yesBusy = !1, e.value.processing = !0, clearTimeout(a), t.timeout && (e.value.current.autoClose = !0, a = setTimeout(() => {
16
+ v(!1);
17
+ }, t.timeout)));
18
+ }, c = async () => {
19
+ e.value.processing = !1, await f(200), e.value = { ...o };
20
+ }, v = async (t) => {
21
+ var n;
22
+ if (!e.value.current)
23
+ return;
24
+ let r = t;
25
+ try {
26
+ if (e.value.current.onYes && t) {
27
+ const s = await e.value.current.onYes();
28
+ e.value.current.returning && (r = s);
29
+ } else if (e.value.current.onNo && !t) {
30
+ const s = await e.value.current.onNo();
31
+ e.value.current.returning && (r = s);
47
32
  }
33
+ u.length ? (e.value.current.resolve(r), l()) : e.value.current.autoClose ? (e.value.current.resolve(r), c()) : e.value.current.resolve(r);
34
+ } catch (s) {
35
+ (n = e.value.current) == null || n.reject(s);
48
36
  }
49
- ]), w = () => {
50
- const n = async () => {
51
- e.value.open = !1, await y(300), e.value = r, t.value = null;
52
- };
53
- return {
54
- /**
55
- * The confirm function. It accepts a set of options defining
56
- * the behavior of the modal and returns `Promise<boolean>`
57
- * when the user accepts, declines, or ignores the modal.
58
- */
59
- confirm: (l) => {
60
- const u = { ...d, ...l };
61
- return e.value = { ...e.value, ...u }, e.value.open = !0, new Promise((c) => {
62
- let a;
63
- const s = (o) => {
64
- clearTimeout(a), c(o), t.value = null, f(), u.autoClose && n();
65
- }, f = m(
66
- t,
67
- (o) => {
68
- o !== null && s(o);
69
- },
70
- { once: !0 }
71
- );
72
- u.timeout && (a = setTimeout(() => {
73
- s(!1);
74
- }, u.timeout));
75
- });
76
- },
77
- /**
78
- * Sets the state of the confirm to loading and displays a spinner.
79
- */
80
- setLoading: (l = !0) => {
81
- e.value.loading = l;
82
- },
83
- /**
84
- * Closes the confirmation modal. It is a manual operation
85
- * so you can update the state while the modal is still open.
86
- */
87
- close: n
88
- };
89
- };
37
+ }, m = (t) => new Promise((r, n) => {
38
+ u.push({
39
+ yesText: "OK",
40
+ noText: "Annulla",
41
+ ...t,
42
+ resolve: r,
43
+ reject: n
44
+ }), l();
45
+ }), g = (t) => {
46
+ e.value.loading = t;
47
+ }, d = () => ({
48
+ confirm: m,
49
+ close: c,
50
+ setLoading: g
51
+ });
90
52
  export {
91
- T as actions,
53
+ v as processMessage,
92
54
  e as state,
93
- w as useConfirm
55
+ d as useConfirm
94
56
  };
package/dist/index61.js CHANGED
@@ -9,7 +9,7 @@ import T from "./index129.js";
9
9
  /* empty css */
10
10
  import { pickBy as $ } from "./index259.js";
11
11
  import { noop as A } from "./index260.js";
12
- import { useLocale as W } from "./index218.js";
12
+ import { useLocale as W } from "./index216.js";
13
13
  const w = {
14
14
  key: 2,
15
15
  class: "bb-button__loading-label sr-only"
package/dist/index69.js CHANGED
@@ -1,77 +1,89 @@
1
- import { defineComponent as y, computed as d, openBlock as t, createBlock as a, unref as e, createSlots as v, withCtx as n, createElementBlock as l, toDisplayString as r, createCommentVNode as c, createVNode as b, createTextVNode as _ } from "vue";
2
- import { actions as u, state as o } from "./index6.js";
3
- import k from "./index25.js";
1
+ import { defineComponent as g, openBlock as r, createBlock as i, unref as e, createSlots as x, withCtx as s, createElementVNode as C, createElementBlock as b, createVNode as V, toDisplayString as a, createCommentVNode as c, createTextVNode as k } from "vue";
2
+ import { state as t, processMessage as l } from "./index6.js";
3
+ import $ from "./index25.js";
4
4
  /* empty css */
5
5
  import h from "./index129.js";
6
6
  /* empty css */
7
- import f from "./index61.js";
7
+ import v from "./index61.js";
8
8
  /* empty css */
9
- const B = {
9
+ const z = { class: "bb-confirm__content" }, N = {
10
10
  key: 0,
11
- class: "bb-confirm__content"
12
- }, x = {
13
- key: 0,
14
- class: "bb-confirm__text"
15
- }, g = {
16
- key: 1,
17
11
  class: "bb-confirm__spinner"
18
- }, E = /* @__PURE__ */ y({
12
+ }, w = {
13
+ key: 1,
14
+ class: "bb-confirm__text"
15
+ }, F = /* @__PURE__ */ g({
19
16
  __name: "BbConfirm",
20
- setup(C) {
21
- const s = d(() => u.value[0]), i = d(() => u.value[1]), p = (m) => {
22
- m ? i.value.handler() : s.value.handler();
17
+ setup(T) {
18
+ const B = (m) => {
19
+ l(m);
23
20
  };
24
- return (m, V) => (t(), a(k, {
25
- "model-value": e(o).open || e(o).loading,
26
- "overlay-classes": ["bb-confirm", `bb-confirm--${e(o).theme}`],
27
- persistent: e(o).yesBusy || e(o).noBusy || e(o).loading,
28
- "show-close": !(e(o).yesBusy || e(o).noBusy || e(o).loading),
29
- size: e(o).size,
30
- title: e(o).title,
31
- "onUpdate:modelValue": p
32
- }, v({
33
- default: n(() => [
34
- e(o).loading ? (t(), l("div", g, [
35
- b(h, { size: "36" })
36
- ])) : (t(), l("div", B, [
37
- e(o).text ? (t(), l("div", x, r(e(o).text), 1)) : c("", !0)
38
- ]))
39
- ]),
40
- _: 2
41
- }, [
42
- !e(o).loading && e(o).actions ? {
43
- name: "footer",
44
- fn: n(() => [
45
- e(o).no ? (t(), a(f, {
46
- key: 0,
47
- "auto-loading": "",
48
- class: "bb-confirm__no",
49
- inert: e(o).yesBusy,
50
- onClick: s.value.handler
51
- }, {
52
- default: n(() => [
53
- _(r(s.value.text), 1)
54
- ]),
55
- _: 1
56
- }, 8, ["inert", "onClick"])) : c("", !0),
57
- e(o).yes ? (t(), a(f, {
58
- key: 1,
59
- "auto-loading": "",
60
- class: "bb-confirm__yes",
61
- inert: e(o).noBusy,
62
- onClick: i.value.handler
63
- }, {
64
- default: n(() => [
65
- _(r(i.value.text), 1)
66
- ]),
67
- _: 1
68
- }, 8, ["inert", "onClick"])) : c("", !0)
21
+ return (m, n) => {
22
+ var u, f, d, _;
23
+ return r(), i($, {
24
+ "model-value": e(t).processing,
25
+ "overlay-classes": [
26
+ "bb-confirm",
27
+ `bb-confirm--${((u = e(t).current) == null ? void 0 : u.theme) || "default"}`
28
+ ],
29
+ persistent: e(t).yesBusy || e(t).noBusy || e(t).loading,
30
+ "show-close": !(e(t).yesBusy || e(t).noBusy || e(t).loading),
31
+ size: (f = e(t).current) == null ? void 0 : f.size,
32
+ title: (d = e(t).current) == null ? void 0 : d.title,
33
+ "onUpdate:modelValue": B
34
+ }, x({
35
+ default: s(() => [
36
+ C("div", z, [
37
+ e(t).loading ? (r(), b("div", N, [
38
+ V(h, { size: "36" })
39
+ ])) : e(t).current ? (r(), b("div", w, a(e(t).current.text), 1)) : c("", !0)
40
+ ])
69
41
  ]),
70
- key: "0"
71
- } : void 0
72
- ]), 1032, ["model-value", "overlay-classes", "persistent", "show-close", "size", "title"]));
42
+ _: 2
43
+ }, [
44
+ ((_ = e(t).current) == null ? void 0 : _.actions) !== !1 && !e(t).loading ? {
45
+ name: "footer",
46
+ fn: s(() => {
47
+ var p, y;
48
+ return [
49
+ ((p = e(t).current) == null ? void 0 : p.no) !== !1 ? (r(), i(v, {
50
+ key: 0,
51
+ "auto-loading": "",
52
+ class: "bb-confirm__no",
53
+ inert: e(t).yesBusy,
54
+ onClick: n[0] || (n[0] = (o) => e(l)(!1))
55
+ }, {
56
+ default: s(() => {
57
+ var o;
58
+ return [
59
+ k(a((o = e(t).current) == null ? void 0 : o.noText), 1)
60
+ ];
61
+ }),
62
+ _: 1
63
+ }, 8, ["inert"])) : c("", !0),
64
+ ((y = e(t).current) == null ? void 0 : y.yes) !== !1 ? (r(), i(v, {
65
+ key: 1,
66
+ "auto-loading": "",
67
+ class: "bb-confirm__yes",
68
+ inert: e(t).noBusy,
69
+ onClick: n[1] || (n[1] = (o) => e(l)(!0))
70
+ }, {
71
+ default: s(() => {
72
+ var o;
73
+ return [
74
+ k(a((o = e(t).current) == null ? void 0 : o.yesText), 1)
75
+ ];
76
+ }),
77
+ _: 1
78
+ }, 8, ["inert"])) : c("", !0)
79
+ ];
80
+ }),
81
+ key: "0"
82
+ } : void 0
83
+ ]), 1032, ["model-value", "overlay-classes", "persistent", "show-close", "size", "title"]);
84
+ };
73
85
  }
74
86
  });
75
87
  export {
76
- E as default
88
+ F as default
77
89
  };
package/dist/index77.js CHANGED
@@ -9,7 +9,7 @@ import S from "./index127.js";
9
9
  /* empty css */
10
10
  import Z from "./index129.js";
11
11
  /* empty css */
12
- import { useLocale as j } from "./index218.js";
12
+ import { useLocale as j } from "./index216.js";
13
13
  const q = { class: "bb-dropdown-button__content" }, A = {
14
14
  key: 1,
15
15
  class: "bb-dropdown-button__loading-label sr-only"
package/dist/index79.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
2
- import { findInTree as ae } from "./index267.js";
2
+ import { findInTree as ae } from "./index266.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index128.js";
5
5
  /* empty css */
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
53
53
  const r = a.accept[t];
54
54
  if (r.includes("/")) e.push(r);
55
55
  else {
56
- b || (b = (await import("./index266.js")).default);
56
+ b || (b = (await import("./index265.js")).default);
57
57
  const o = b.getType(r);
58
58
  if (!o)
59
59
  throw new Error(
package/dist/index81.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
2
- import { throttle as c } from "./index232.js";
2
+ import { throttle as c } from "./index210.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
2
- import { useFocusTrap as pe } from "./index233.js";
2
+ import { useFocusTrap as pe } from "./index211.js";
3
3
  import { useId as E } from "./index8.js";
4
4
  import { wait as H } from "./index130.js";
5
- import { useModalsState as b } from "./index235.js";
6
- import be from "./index236.js";
5
+ import { useModalsState as b } from "./index213.js";
6
+ import be from "./index215.js";
7
7
  import { useMobile as me } from "./index9.js";
8
- import { useLocale as ye } from "./index218.js";
8
+ import { useLocale as ye } from "./index216.js";
9
9
  const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
10
10
  __name: "BbOffCanvas",
11
11
  props: {
package/dist/index86.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as E, computed as h, ref as g, onMounted as P, onBeforeUnmount as W, openBlock as k, createElementBlock as V, normalizeClass as $, createElementVNode as i, createVNode as S, unref as v, withCtx as w, renderSlot as c, toDisplayString as m, Fragment as R, renderList as F, nextTick as x } from "vue";
2
- import { debounce as T } from "./index269.js";
2
+ import { debounce as T } from "./index302.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import z from "./index13.js";
6
6
  /* empty css */
7
- import { useLocale as D } from "./index218.js";
7
+ import { useLocale as D } from "./index216.js";
8
8
  const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
9
9
  __name: "BbPagination",
10
10
  props: {
package/dist/index88.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
2
- import { useFocusTrap as j } from "./index233.js";
2
+ import { useFocusTrap as j } from "./index211.js";
3
3
  import { useId as G } from "./index8.js";
4
4
  import { useIntersectionObserver as J } from "./index132.js";
5
- import { waitFor as K } from "./index234.js";
5
+ import { waitFor as K } from "./index212.js";
6
6
  import Q from "./index13.js";
7
7
  /* empty css */
8
8
  import U from "./index263.js";
9
9
  /* empty css */
10
- import { useLocale as X } from "./index218.js";
10
+ import { useLocale as X } from "./index216.js";
11
11
  import { useDebounceFn as Y } from "./index205.js";
12
12
  const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
13
13
  __name: "BbPopover",
package/dist/index90.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
2
- import { clamp as p } from "./index209.js";
2
+ import { clamp as p } from "./index206.js";
3
3
  import { getAsPercentageBetween as i } from "./index131.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.111",
3
+ "version": "2.0.113",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index208.js DELETED
@@ -1,5 +0,0 @@
1
- import { hash as o } from "./index265.js";
2
- const t = (r, h = "bb") => `${h}${o(r)}`;
3
- export {
4
- t as hash
5
- };
package/dist/index242.js DELETED
@@ -1,88 +0,0 @@
1
- import { defineComponent as h, openBlock as n, createElementBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createTextVNode as o, toDisplayString as d, unref as b, createCommentVNode as p, Fragment as m, renderList as u } from "vue";
2
- import { useLocale as g } from "./index218.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) => (n(), s("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 ? (n(), s("span", y, [
33
- t(a.$slots, "loading", {}, () => [
34
- o(d(a.loadingText || b(i)("common.loadingText")), 1)
35
- ])
36
- ])) : a.options.length ? p("", !0) : (n(), s("span", $, [
37
- t(a.$slots, "no-data", {}, () => [
38
- o(d(a.noDataText || b(i)("common.noDataText")), 1)
39
- ])
40
- ])),
41
- (n(!0), s(m, null, u(a.options, (e, c) => (n(), s(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
- });
86
- export {
87
- C as default
88
- };