bitboss-ui 2.0.72 → 2.0.74

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