bitboss-ui 2.0.72 → 2.0.73

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/BbPagination/BbPagination.vue.d.ts +5 -0
  2. package/dist/index106.js +16 -16
  3. package/dist/index110.js +59 -60
  4. package/dist/index118.js +1 -1
  5. package/dist/index120.js +57 -58
  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 +2 -2
  15. package/dist/index17.js +3 -3
  16. package/dist/index19.js +2 -2
  17. package/dist/index204.js +2 -81
  18. package/dist/index205.js +2 -2
  19. package/dist/index206.js +4 -8
  20. package/dist/index207.js +2 -2
  21. package/dist/index208.js +3 -4
  22. package/dist/index209.js +8 -2
  23. package/dist/index21.js +14 -14
  24. package/dist/index210.js +1 -1
  25. package/dist/index212.js +1 -1
  26. package/dist/index213.js +5 -20
  27. package/dist/index214.js +16 -4
  28. package/dist/index215.js +14 -162
  29. package/dist/index216.js +19 -84
  30. package/dist/index217.js +21 -0
  31. package/dist/index218.js +27 -3
  32. package/dist/index219.js +3 -41
  33. package/dist/index220.js +2 -6
  34. package/dist/index221.js +249 -7
  35. package/dist/index222.js +49 -123
  36. package/dist/index223.js +44 -5
  37. package/dist/index224.js +5 -125
  38. package/dist/index225.js +60 -19
  39. package/dist/index226.js +124 -14
  40. package/dist/index227.js +122 -13
  41. package/dist/index229.js +41 -2
  42. package/dist/index23.js +12 -12
  43. package/dist/index230.js +20 -5
  44. package/dist/index231.js +6 -369
  45. package/dist/index232.js +5 -3
  46. package/dist/index233.js +367 -17
  47. package/dist/index234.js +3 -27
  48. package/dist/index235.js +7 -3
  49. package/dist/index236.js +160 -245
  50. package/dist/index237.js +77 -45
  51. package/dist/index239.js +4 -5
  52. package/dist/index240.js +80 -59
  53. package/dist/index241.js +1 -1
  54. package/dist/index243.js +1 -1
  55. package/dist/index245.js +1 -1
  56. package/dist/index25.js +5 -5
  57. package/dist/index250.js +4 -6
  58. package/dist/index251.js +224 -16
  59. package/dist/index252.js +1 -1
  60. package/dist/index254.js +7 -23
  61. package/dist/index255.js +280 -8
  62. package/dist/index256.js +6 -4
  63. package/dist/index257.js +2 -3
  64. package/dist/index259.js +2 -7
  65. package/dist/index260.js +2 -176
  66. package/dist/index261.js +2 -66
  67. package/dist/index262.js +2 -2
  68. package/dist/index263.js +2 -9
  69. package/dist/index264.js +2 -3
  70. package/dist/index265.js +2 -12
  71. package/dist/index266.js +2 -9
  72. package/dist/index267.js +25 -14
  73. package/dist/index268.js +22 -4
  74. package/dist/index27.js +1 -1
  75. package/dist/index270.js +2 -89
  76. package/dist/index271.js +125 -280
  77. package/dist/index272.js +430 -5
  78. package/dist/index273.js +176 -2
  79. package/dist/index274.js +22 -2
  80. package/dist/index276.js +3 -2
  81. package/dist/index277.js +12 -2
  82. package/dist/index278.js +7 -124
  83. package/dist/index279.js +7 -20
  84. package/dist/index280.js +19 -0
  85. package/dist/index281.js +4 -200
  86. package/dist/index282.js +200 -224
  87. package/dist/index285.js +3 -2
  88. package/dist/index286.js +9 -2
  89. package/dist/index287.js +23 -2
  90. package/dist/index288.js +89 -2
  91. package/dist/index289.js +5 -1
  92. package/dist/index29.js +16 -17
  93. package/dist/index290.js +16 -2
  94. package/dist/index291.js +8 -27
  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 +5 -3
  99. package/dist/index296.js +65 -2
  100. package/dist/index297.js +2 -211
  101. package/dist/index298.js +5 -4
  102. package/dist/index299.js +8 -4
  103. package/dist/index300.js +32 -58
  104. package/dist/index301.js +6 -4
  105. package/dist/index302.js +18 -7
  106. package/dist/index303.js +7 -79
  107. package/dist/index304.js +6 -0
  108. package/dist/index305.js +10 -3
  109. package/dist/index306.js +84 -2
  110. package/dist/index308.js +4 -7
  111. package/dist/index309.js +4 -19
  112. package/dist/index31.js +2 -2
  113. package/dist/index310.js +58 -6
  114. package/dist/index311.js +46 -10
  115. package/dist/index312.js +2 -47
  116. package/dist/{index313.js → index314.js} +2 -2
  117. package/dist/index315.js +1 -1
  118. package/dist/index316.js +47 -2
  119. package/dist/index317.js +2 -47
  120. package/dist/index33.js +2 -2
  121. package/dist/index35.js +2 -2
  122. package/dist/index37.js +7 -7
  123. package/dist/index39.js +3 -3
  124. package/dist/index41.js +2 -2
  125. package/dist/index43.js +2 -2
  126. package/dist/index45.js +2 -2
  127. package/dist/index55.js +1 -1
  128. package/dist/index57.js +1 -1
  129. package/dist/index61.js +21 -23
  130. package/dist/index75.js +47 -48
  131. package/dist/index79.js +4 -7
  132. package/dist/index81.js +1 -1
  133. package/dist/index84.js +2 -2
  134. package/dist/index86.js +27 -26
  135. package/dist/index88.js +86 -86
  136. package/dist/index90.js +1 -1
  137. package/package.json +1 -1
  138. package/dist/index238.js +0 -46
  139. package/dist/index253.js +0 -11
  140. package/dist/index269.js +0 -433
  141. package/dist/index307.js +0 -35
  142. /package/dist/{index275.js → index258.js} +0 -0
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 "./index229.js";
3
+ import { useId as G } from "./index8.js";
4
+ import { useIntersectionObserver as J } from "./index132.js";
5
+ import { waitFor as K } from "./index231.js";
6
+ import Q from "./index13.js";
7
7
  /* empty css */
8
- const te = /* @__PURE__ */ S({
8
+ import { useDebounceFn as U } from "./index240.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(
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, {
26
+ setup($, { expose: T, emit: _ }) {
27
+ const B = O(
28
+ () => import("./index285.js")
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",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitboss-ui",
3
- "version": "2.0.72",
3
+ "version": "2.0.73",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "scripts": {
package/dist/index238.js DELETED
@@ -1,46 +0,0 @@
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 "./index13.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
- });
44
- export {
45
- E as default
46
- };
package/dist/index253.js DELETED
@@ -1,11 +0,0 @@
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
- };
9
- export {
10
- o as findRightIndex
11
- };