bitboss-ui 2.0.46 → 2.0.47

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 (149) hide show
  1. package/dist/components/BbPopover/BbPopover.vue.d.ts +5 -1
  2. package/dist/index108.js +1 -1
  3. package/dist/index110.js +5 -5
  4. package/dist/index118.js +1 -1
  5. package/dist/index120.js +5 -5
  6. package/dist/index122.js +1 -1
  7. package/dist/index126.js +1 -1
  8. package/dist/index127.js +1 -1
  9. package/dist/index128.js +1 -1
  10. package/dist/index13.js +1 -1
  11. package/dist/index130.js +1 -1
  12. package/dist/index132.js +2 -2
  13. package/dist/index133.js +2 -2
  14. package/dist/index15.js +4 -4
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +2 -2
  17. package/dist/index204.js +116 -2
  18. package/dist/index205.js +2 -3
  19. package/dist/index206.js +8 -41
  20. package/dist/index207.js +2 -6
  21. package/dist/index208.js +4 -7
  22. package/dist/index209.js +2 -8
  23. package/dist/index21.js +14 -14
  24. package/dist/index210.js +5 -53
  25. package/dist/index211.js +18 -0
  26. package/dist/index212.js +16 -13
  27. package/dist/index213.js +19 -20
  28. package/dist/index214.js +19 -4
  29. package/dist/index215.js +25 -156
  30. package/dist/index216.js +3 -84
  31. package/dist/index217.js +4 -0
  32. package/dist/index218.js +248 -115
  33. package/dist/index219.js +52 -2
  34. package/dist/index220.js +44 -4
  35. package/dist/index221.js +5 -2
  36. package/dist/index222.js +48 -125
  37. package/dist/index223.js +52 -280
  38. package/dist/index225.js +13 -19
  39. package/dist/index226.js +19 -15
  40. package/dist/index227.js +4 -16
  41. package/dist/index228.js +3 -2
  42. package/dist/index229.js +41 -2
  43. package/dist/index23.js +15 -15
  44. package/dist/index230.js +6 -5
  45. package/dist/index231.js +7 -369
  46. package/dist/index232.js +1 -1
  47. package/dist/index233.js +156 -17
  48. package/dist/index234.js +84 -27
  49. package/dist/index236.js +2 -249
  50. package/dist/index237.js +123 -49
  51. package/dist/index238.js +125 -44
  52. package/dist/index239.js +2 -5
  53. package/dist/index240.js +5 -49
  54. package/dist/index241.js +369 -2
  55. package/dist/index242.js +1 -1
  56. package/dist/index244.js +1 -1
  57. package/dist/index246.js +1 -1
  58. package/dist/index25.js +5 -5
  59. package/dist/index250.js +6 -431
  60. package/dist/index251.js +16 -89
  61. package/dist/index252.js +3 -6
  62. package/dist/index253.js +8 -15
  63. package/dist/index254.js +23 -3
  64. package/dist/index255.js +11 -0
  65. package/dist/index256.js +3 -7
  66. package/dist/index258.js +7 -3
  67. package/dist/index259.js +173 -6
  68. package/dist/index260.js +4 -23
  69. package/dist/index261.js +280 -8
  70. package/dist/index262.js +6 -3
  71. package/dist/index263.js +2 -12
  72. package/dist/index264.js +2 -9
  73. package/dist/index265.js +2 -9
  74. package/dist/index266.js +2 -17
  75. package/dist/index267.js +2 -200
  76. package/dist/index268.js +2 -4
  77. package/dist/index269.js +2 -6
  78. package/dist/index270.js +2 -2
  79. package/dist/index271.js +2 -2
  80. package/dist/index272.js +2 -2
  81. package/dist/index273.js +28 -2
  82. package/dist/index274.js +22 -2
  83. package/dist/index276.js +224 -22
  84. package/dist/index277.js +5 -0
  85. package/dist/index278.js +12 -224
  86. package/dist/index279.js +9 -2
  87. package/dist/index280.js +9 -2
  88. package/dist/index281.js +17 -2
  89. package/dist/index282.js +431 -2
  90. package/dist/index283.js +89 -2
  91. package/dist/index284.js +200 -2
  92. package/dist/index285.js +65 -27
  93. package/dist/index286.js +2 -22
  94. package/dist/index287.js +7 -0
  95. package/dist/index288.js +2 -2
  96. package/dist/index289.js +117 -427
  97. package/dist/index29.js +3 -3
  98. package/dist/index290.js +21 -126
  99. package/dist/index292.js +436 -5
  100. package/dist/index293.js +127 -3
  101. package/dist/index294.js +1 -1
  102. package/dist/index295.js +3 -211
  103. package/dist/index296.js +211 -5
  104. package/dist/index297.js +4 -8
  105. package/dist/index298.js +4 -4
  106. package/dist/index299.js +59 -4
  107. package/dist/index300.js +79 -4
  108. package/dist/index302.js +5 -79
  109. package/dist/index303.js +10 -0
  110. package/dist/index304.js +7 -9
  111. package/dist/index305.js +6 -10
  112. package/dist/index306.js +19 -2
  113. package/dist/index307.js +6 -6
  114. package/dist/index308.js +10 -18
  115. package/dist/index309.js +2 -7
  116. package/dist/index31.js +2 -2
  117. package/dist/index310.js +3 -46
  118. package/dist/index311.js +47 -480
  119. package/dist/index312.js +482 -0
  120. package/dist/index314.js +424 -2
  121. package/dist/index315.js +2 -47
  122. package/dist/index316.js +49 -0
  123. package/dist/index33.js +2 -2
  124. package/dist/index35.js +3 -3
  125. package/dist/index37.js +9 -9
  126. package/dist/index39.js +4 -4
  127. package/dist/index41.js +2 -2
  128. package/dist/index43.js +2 -2
  129. package/dist/index45.js +5 -4
  130. package/dist/index47.js +2 -2
  131. package/dist/index49.js +2 -2
  132. package/dist/index55.js +1 -1
  133. package/dist/index57.js +1 -1
  134. package/dist/index75.js +3 -3
  135. package/dist/index79.js +2 -2
  136. package/dist/index81.js +1 -1
  137. package/dist/index84.js +2 -2
  138. package/dist/index86.js +1 -1
  139. package/dist/index88.js +53 -49
  140. package/dist/index90.js +1 -1
  141. package/dist/style.css +1 -1
  142. package/package.json +1 -1
  143. package/dist/index224.js +0 -127
  144. package/dist/index235.js +0 -5
  145. package/dist/index257.js +0 -178
  146. package/dist/index275.js +0 -128
  147. package/dist/index291.js +0 -68
  148. package/dist/index301.js +0 -61
  149. package/dist/index313.js +0 -426
package/dist/index55.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
2
- import { isCssColor as _ } from "./index219.js";
2
+ import { isCssColor as _ } from "./index207.js";
3
3
  import { wait as C } from "./index131.js";
4
4
  const w = ["alt", "sizes", "src", "srcset"], B = {
5
5
  key: 1,
package/dist/index57.js CHANGED
@@ -1,5 +1,5 @@
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 "./index219.js";
2
+ import { isCssColor as r } from "./index207.js";
3
3
  import { isNil as B } from "./index129.js";
4
4
  const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
5
5
  __name: "BbBadge",
package/dist/index75.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as Q, defineAsyncComponent as W, computed as A, ref as g, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as O, renderSlot as w, normalizeProps as X, guardReactiveProps as Y, unref as h, createBlock as Z, withCtx as K, normalizeStyle as _, Fragment as P, renderList as x, createVNode as ee, createCommentVNode as te } from "vue";
2
- import { findRightIndex as H } from "./index259.js";
2
+ import { findRightIndex as H } from "./index253.js";
3
3
  import { useId as ne } from "./index8.js";
4
4
  import { wait as oe } from "./index131.js";
5
5
  import { useIntersectionObserver as ae } from "./index132.js";
6
6
  import le from "./index13.js";
7
7
  /* empty css */
8
- import N from "./index260.js";
8
+ import N from "./index254.js";
9
9
  const me = /* @__PURE__ */ Q({
10
10
  __name: "BbDropdown",
11
11
  props: {
@@ -24,7 +24,7 @@ const me = /* @__PURE__ */ Q({
24
24
  },
25
25
  setup(V) {
26
26
  const j = W(
27
- () => import("./index258.js")
27
+ () => import("./index252.js")
28
28
  ), r = V, d = r.id ?? `bb_${ne().id.value}`, m = A(() => {
29
29
  let e = r.items.findIndex((t) => !t.disabled), o = H(
30
30
  r.items,
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 "./index253.js";
2
+ import { findInTree as ae } from "./index251.js";
3
3
  import { useId as re } from "./index8.js";
4
4
  import oe from "./index127.js";
5
5
  /* empty css */
@@ -56,7 +56,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = {
56
56
  const r = a.accept[t];
57
57
  if (r.includes("/")) e.push(r);
58
58
  else {
59
- b || (b = (await import("./index252.js")).default);
59
+ b || (b = (await import("./index250.js")).default);
60
60
  const o = b.getType(r);
61
61
  if (!o)
62
62
  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 "./index205.js";
2
+ import { throttle as c } from "./index228.js";
3
3
  const M = /* @__PURE__ */ h({
4
4
  __name: "BbIntersection",
5
5
  props: {
package/dist/index84.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as te, ref as s, useAttrs as oe, getCurrentInstance as se, computed as v, nextTick as le, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as l, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
2
- import { useFocusTrap as ce } from "./index206.js";
2
+ import { useFocusTrap as ce } from "./index229.js";
3
3
  import { useId as A } from "./index8.js";
4
4
  import { wait as E } from "./index131.js";
5
- import { useModalsState as p } from "./index208.js";
5
+ import { useModalsState as p } from "./index231.js";
6
6
  const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
7
7
  __name: "BbOffCanvas",
8
8
  props: {
package/dist/index86.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as A, computed as _, ref as g, onMounted as E, onBeforeUnmount as P, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as b, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
2
- import { debounce as F } from "./index261.js";
2
+ import { debounce as F } from "./index255.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  import w from "./index13.js";
package/dist/index88.js CHANGED
@@ -1,11 +1,11 @@
1
- import { defineComponent as F, defineAsyncComponent as S, ref as n, computed as h, openBlock as v, createElementBlock as H, mergeProps as q, createElementVNode as p, renderSlot as k, normalizeProps as A, guardReactiveProps as I, createBlock as y, unref as V, withCtx as C, createCommentVNode as $, nextTick as W } from "vue";
2
- import { useFocusTrap as z } from "./index206.js";
3
- import { useId as R } from "./index8.js";
4
- import { useIntersectionObserver as j } from "./index132.js";
5
- import { waitFor as G } from "./index207.js";
6
- import J from "./index13.js";
1
+ import { defineComponent as S, defineAsyncComponent as H, ref as n, computed as m, openBlock as b, createElementBlock as q, mergeProps as A, createElementVNode as p, renderSlot as y, normalizeProps as I, guardReactiveProps as V, createBlock as C, unref as W, withCtx as $, createCommentVNode as T, nextTick as z } from "vue";
2
+ import { useFocusTrap as R } from "./index229.js";
3
+ import { useId as j } from "./index8.js";
4
+ import { useIntersectionObserver as G } from "./index132.js";
5
+ import { waitFor as J } from "./index230.js";
6
+ import K from "./index13.js";
7
7
  /* empty css */
8
- const ee = /* @__PURE__ */ F({
8
+ const te = /* @__PURE__ */ S({
9
9
  __name: "BbPopover",
10
10
  props: {
11
11
  arrowPadding: { default: 10 },
@@ -22,10 +22,10 @@ const ee = /* @__PURE__ */ F({
22
22
  width: {}
23
23
  },
24
24
  emits: ["shown", "hidden"],
25
- setup(T, { emit: B }) {
26
- const P = S(
27
- () => import("./index258.js")
28
- ), t = T, s = B, { id: _ } = R(), c = `bbp_${_.value}`, r = n(), i = n(), { activate: N, deactivate: D } = z(i, {
25
+ setup(B, { expose: P, emit: _ }) {
26
+ const N = H(
27
+ () => import("./index252.js")
28
+ ), t = B, s = _, { id: D } = j(), c = `bbp_${D.value}`, r = n(), l = n(), { activate: E, deactivate: L } = R(l, {
29
29
  /**
30
30
  * This traps all clicks outside so we are pressing
31
31
  * the trigger we just allow and process that in its
@@ -34,12 +34,12 @@ const ee = /* @__PURE__ */ F({
34
34
  * close the popover and be done
35
35
  */
36
36
  clickOutsideDeactivates: (e) => {
37
- var w;
37
+ var k;
38
38
  const o = e.target;
39
- return o instanceof HTMLElement && (w = r.value) != null && w.contains(o) || (l(), s("hidden")), !0;
39
+ return o instanceof HTMLElement && (k = r.value) != null && k.contains(o) || (i(), s("hidden")), !0;
40
40
  },
41
- escapeDeactivates: () => (W(async () => {
42
- await l(), f(), s("hidden");
41
+ escapeDeactivates: () => (z(async () => {
42
+ await i(), f(), s("hidden");
43
43
  }), !0),
44
44
  /* We don't return focus so that when
45
45
  * we press a button on tyhe page we can focus
@@ -47,34 +47,34 @@ const ee = /* @__PURE__ */ F({
47
47
  */
48
48
  returnFocusOnDeactivate: !1
49
49
  });
50
- j(
50
+ G(
51
51
  r,
52
52
  ([{ intersectionRatio: e }]) => {
53
- e !== 1 && a.value && l();
53
+ e !== 1 && a.value && i();
54
54
  },
55
55
  { threshold: [0, 1] }
56
56
  );
57
- const E = h(() => ({
57
+ const M = m(() => ({
58
58
  class: {
59
59
  "bb-popover--block": t.block,
60
60
  [`bb-popover--${t.theme}`]: !0
61
61
  }
62
- })), d = n(!1), u = n(!1), a = n(!1), m = n(!1), b = n(!0), L = async () => {
63
- d.value = !0, await G(() => !!i.value), a.value = !0;
64
- }, l = async () => {
62
+ })), d = n(!1), u = n(!1), a = n(!1), g = n(!1), w = n(!0), O = async () => {
63
+ d.value = !0, await J(() => !!l.value), a.value = !0;
64
+ }, i = async () => {
65
65
  a.value = !1;
66
- }, M = async () => {
66
+ }, h = async () => {
67
67
  if (a.value) {
68
- await l(), f(), s("hidden");
68
+ await i(), f(), s("hidden");
69
69
  return;
70
70
  }
71
71
  if (u.value || t.disabled) return;
72
- d.value = !0, await L();
72
+ d.value = !0, await O();
73
73
  let e = t.focusTarget ?? ".bb-popover__close";
74
- N({
74
+ E({
75
75
  onPostActivate: () => {
76
- if (i.value) {
77
- const o = i.value.querySelector(e);
76
+ if (l.value) {
77
+ const o = l.value.querySelector(e);
78
78
  o instanceof HTMLElement && (o.focus(), s("shown"));
79
79
  }
80
80
  }
@@ -83,9 +83,9 @@ const ee = /* @__PURE__ */ F({
83
83
  var o;
84
84
  const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
85
85
  e instanceof HTMLElement && e.focus({ preventScroll: !0 });
86
- }, g = async () => {
87
- D(), await l(), f(), s("hidden");
88
- }, O = h(() => {
86
+ }, v = async () => {
87
+ L(), await i(), f(), s("hidden");
88
+ }, F = m(() => {
89
89
  if (t.width) {
90
90
  let e;
91
91
  if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
@@ -99,35 +99,39 @@ const ee = /* @__PURE__ */ F({
99
99
  return `${e}px`;
100
100
  }
101
101
  });
102
- return (e, o) => (v(), H("span", q({ class: "bb-popover" }, E.value), [
102
+ return P({
103
+ open: h,
104
+ close: v,
105
+ closed: m(() => !a.value)
106
+ }), (e, o) => (b(), q("span", A({ class: "bb-popover" }, M.value), [
103
107
  p("span", {
104
108
  ref_key: "wrapper",
105
109
  ref: r,
106
110
  class: "bb-popover__wrapper"
107
111
  }, [
108
- k(e.$slots, "activator", A(I({
112
+ y(e.$slots, "activator", I(V({
109
113
  props: {
110
114
  "aria-controls": `popover_${c}`,
111
115
  "aria-expanded": a.value,
112
- onClick: M,
116
+ onClick: h,
113
117
  id: c,
114
118
  disabled: !!e.disabled
115
119
  },
116
- closed: b.value,
117
- closing: m.value,
120
+ closed: w.value,
121
+ closing: g.value,
118
122
  disabled: !!e.disabled,
119
123
  open: a.value,
120
124
  opening: u.value,
121
125
  placement: e.placement
122
126
  })))
123
127
  ], 512),
124
- d.value || e.eager ? (v(), y(V(P), {
128
+ d.value || e.eager ? (b(), C(W(N), {
125
129
  key: 0,
126
130
  "arrow-padding": e.arrowPadding,
127
131
  "base-class": "bb-popover",
128
132
  "container-attributes": {
129
133
  id: `popover_${c}`,
130
- style: { width: O.value }
134
+ style: { width: F.value }
131
135
  },
132
136
  eager: e.eager,
133
137
  offset: e.offset,
@@ -138,18 +142,18 @@ const ee = /* @__PURE__ */ F({
138
142
  "transition-duration": e.transitionDuration,
139
143
  wrapper: r.value
140
144
  }, {
141
- default: C(() => [
145
+ default: $(() => [
142
146
  p("div", {
143
147
  ref_key: "content",
144
- ref: i,
148
+ ref: l,
145
149
  class: "bb-popover__content"
146
150
  }, [
147
- e.showClose ? (v(), y(J, {
151
+ e.showClose ? (b(), C(K, {
148
152
  key: 0,
149
153
  class: "bb-popover__close",
150
- onClick: g
154
+ onClick: v
151
155
  }, {
152
- default: C(() => o[0] || (o[0] = [
156
+ default: $(() => o[0] || (o[0] = [
153
157
  p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
154
158
  p("svg", {
155
159
  fill: "none",
@@ -165,11 +169,11 @@ const ee = /* @__PURE__ */ F({
165
169
  ], -1)
166
170
  ])),
167
171
  _: 1
168
- })) : $("", !0),
169
- k(e.$slots, "default", {
170
- close: g,
171
- closed: b.value,
172
- closing: m.value,
172
+ })) : T("", !0),
173
+ y(e.$slots, "default", {
174
+ close: v,
175
+ closed: w.value,
176
+ closing: g.value,
173
177
  disabled: !!e.disabled,
174
178
  open: a.value,
175
179
  opening: u.value,
@@ -178,10 +182,10 @@ const ee = /* @__PURE__ */ F({
178
182
  ], 512)
179
183
  ]),
180
184
  _: 3
181
- }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : $("", !0)
185
+ }, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])) : T("", !0)
182
186
  ], 16));
183
187
  }
184
188
  });
185
189
  export {
186
- ee as default
190
+ te as default
187
191
  };
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 "./index204.js";
2
+ import { clamp as p } from "./index205.js";
3
3
  import { getAsPercentageBetween as i } from "./index130.js";
4
4
  const _ = /* @__PURE__ */ r({
5
5
  __name: "BbProgress",