bitboss-ui 2.0.45 → 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 (137) hide show
  1. package/dist/components/BbPopover/BbPopover.vue.d.ts +5 -1
  2. package/dist/index110.js +4 -4
  3. package/dist/index118.js +1 -1
  4. package/dist/index120.js +4 -4
  5. package/dist/index122.js +1 -1
  6. package/dist/index126.js +1 -1
  7. package/dist/index127.js +1 -1
  8. package/dist/index128.js +1 -1
  9. package/dist/index13.js +1 -1
  10. package/dist/index133.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/index206.js +8 -281
  15. package/dist/index207.js +2 -16
  16. package/dist/index208.js +4 -16
  17. package/dist/index209.js +2 -19
  18. package/dist/index21.js +14 -14
  19. package/dist/index210.js +5 -19
  20. package/dist/index211.js +13 -24
  21. package/dist/index212.js +16 -3
  22. package/dist/index213.js +19 -2
  23. package/dist/index214.js +19 -8
  24. package/dist/index215.js +25 -247
  25. package/dist/index216.js +3 -52
  26. package/dist/index217.js +2 -44
  27. package/dist/index218.js +249 -5
  28. package/dist/index219.js +43 -40
  29. package/dist/index220.js +44 -3
  30. package/dist/index221.js +5 -41
  31. package/dist/index222.js +48 -5
  32. package/dist/index223.js +53 -7
  33. package/dist/index225.js +13 -4
  34. package/dist/index226.js +20 -2
  35. package/dist/index227.js +3 -125
  36. package/dist/index228.js +3 -125
  37. package/dist/index229.js +41 -2
  38. package/dist/index23.js +15 -15
  39. package/dist/index230.js +6 -20
  40. package/dist/index231.js +7 -53
  41. package/dist/index232.js +5 -0
  42. package/dist/index233.js +158 -13
  43. package/dist/index234.js +84 -5
  44. package/dist/index236.js +2 -4
  45. package/dist/index237.js +119 -151
  46. package/dist/index238.js +125 -84
  47. package/dist/index239.js +4 -0
  48. package/dist/index240.js +5 -3
  49. package/dist/index241.js +369 -2
  50. package/dist/index242.js +2 -18
  51. package/dist/index243.js +17 -105
  52. package/dist/index244.js +108 -0
  53. package/dist/{index245.js → index246.js} +1 -1
  54. package/dist/index25.js +5 -5
  55. package/dist/index250.js +3 -3
  56. package/dist/index252.js +1 -1
  57. package/dist/index256.js +3 -6
  58. package/dist/index258.js +7 -2
  59. package/dist/index259.js +176 -2
  60. package/dist/index260.js +4 -2
  61. package/dist/index261.js +281 -2
  62. package/dist/index262.js +6 -2
  63. package/dist/index263.js +2 -2
  64. package/dist/index264.js +2 -2
  65. package/dist/index265.js +2 -2
  66. package/dist/index266.js +2 -2
  67. package/dist/index267.js +2 -28
  68. package/dist/index268.js +2 -22
  69. package/dist/index269.js +4 -0
  70. package/dist/index27.js +1 -1
  71. package/dist/index270.js +2 -7
  72. package/dist/index271.js +2 -431
  73. package/dist/index272.js +2 -89
  74. package/dist/index273.js +28 -4
  75. package/dist/index274.js +21 -199
  76. package/dist/index276.js +224 -9
  77. package/dist/index277.js +3 -2
  78. package/dist/index278.js +12 -126
  79. package/dist/index279.js +7 -174
  80. package/dist/index280.js +9 -3
  81. package/dist/index281.js +19 -0
  82. package/dist/index282.js +429 -20
  83. package/dist/index283.js +91 -0
  84. package/dist/index284.js +200 -3
  85. package/dist/index285.js +66 -12
  86. package/dist/index286.js +2 -9
  87. package/dist/index287.js +5 -17
  88. package/dist/index288.js +2 -66
  89. package/dist/index289.js +117 -427
  90. package/dist/index29.js +2 -2
  91. package/dist/index290.js +21 -126
  92. package/dist/index292.js +431 -219
  93. package/dist/index293.js +127 -3
  94. package/dist/index294.js +1 -1
  95. package/dist/index295.js +3 -211
  96. package/dist/index296.js +211 -4
  97. package/dist/index297.js +4 -4
  98. package/dist/index298.js +4 -59
  99. package/dist/index299.js +57 -77
  100. package/dist/index300.js +81 -0
  101. package/dist/index302.js +4 -7
  102. package/dist/index303.js +7 -6
  103. package/dist/index304.js +32 -6
  104. package/dist/index305.js +6 -18
  105. package/dist/index306.js +18 -3
  106. package/dist/index307.js +6 -34
  107. package/dist/index309.js +1 -1
  108. package/dist/index31.js +2 -2
  109. package/dist/index310.js +3 -46
  110. package/dist/index311.js +47 -480
  111. package/dist/index312.js +482 -0
  112. package/dist/index314.js +420 -43
  113. package/dist/index316.js +49 -0
  114. package/dist/index33.js +2 -2
  115. package/dist/index35.js +3 -3
  116. package/dist/index37.js +13 -13
  117. package/dist/index39.js +3 -3
  118. package/dist/index41.js +2 -2
  119. package/dist/index43.js +2 -2
  120. package/dist/index45.js +9 -8
  121. package/dist/index47.js +2 -2
  122. package/dist/index49.js +2 -2
  123. package/dist/index55.js +1 -1
  124. package/dist/index57.js +1 -1
  125. package/dist/index81.js +1 -1
  126. package/dist/index84.js +2 -2
  127. package/dist/index88.js +52 -48
  128. package/dist/style.css +1 -1
  129. package/package.json +2 -2
  130. package/dist/index224.js +0 -4
  131. package/dist/index235.js +0 -371
  132. package/dist/index247.js +0 -4
  133. package/dist/index257.js +0 -4
  134. package/dist/index275.js +0 -4
  135. package/dist/index291.js +0 -7
  136. package/dist/index301.js +0 -7
  137. package/dist/index313.js +0 -426
package/dist/index45.js CHANGED
@@ -4,15 +4,15 @@ import { defineComponent as Y, ref as r, computed as k, toRef as B, openBlock as
4
4
  import ue from "./index127.js";
5
5
  /* empty css */
6
6
  import { isNotNil as se } from "./index134.js";
7
- import { last as de } from "./index213.js";
8
- import { useOptions as pe } from "./index237.js";
9
- import ce from "./index243.js";
7
+ import { last as de } from "./index217.js";
8
+ import { useOptions as pe } from "./index233.js";
9
+ import ce from "./index244.js";
10
10
  /* empty css */
11
- import fe from "./index245.js";
11
+ import fe from "./index246.js";
12
12
  /* empty css */
13
- import me from "./index231.js";
13
+ import me from "./index223.js";
14
14
  /* empty css */
15
- import ve from "./index233.js";
15
+ import ve from "./index225.js";
16
16
  const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Ne = /* @__PURE__ */ Y({
17
17
  __name: "BaseTag",
18
18
  props: {
@@ -104,7 +104,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
104
104
  _(o.value) ? (l("duplicate", o.value), o.value = "") : (A(), j(de(S.value)));
105
105
  }
106
106
  }, j = (e) => {
107
- M(e), E(), t.multiple || close();
107
+ M(e), E();
108
108
  }, G = (e) => {
109
109
  P(e), E();
110
110
  }, J = (e) => {
@@ -113,7 +113,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
113
113
  l("click", e), !(t.disabled || t.readonly) && d.value instanceof HTMLElement && d.value.focus();
114
114
  }, c = async (e) => {
115
115
  if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
116
- close(), H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), q();
116
+ H(), document.removeEventListener("click", c), document.removeEventListener("focusin", c), q();
117
117
  return;
118
118
  }
119
119
  }, X = {
@@ -191,6 +191,7 @@ const ye = { class: "bb-base-tag__input-container" }, be = ["id", "aria-describe
191
191
  class: "bb-base-tag__text-input",
192
192
  disabled: e.disabled,
193
193
  "enter-key-hint": "next",
194
+ enterkeyhint: "done",
194
195
  placeholder: L.value,
195
196
  readonly: e.readonly,
196
197
  required: e.required && !e.multiple || e.multiple && !e.modelValue.length,
package/dist/index47.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, ref as g, computed as u, onMounted as y, watch as V, nextTick as k, openBlock as x, createBlock as B, normalizeClass as $, withCtx as r, renderSlot as t, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
2
- import v from "./index233.js";
3
- import E from "./index231.js";
2
+ import v from "./index225.js";
3
+ import E from "./index223.js";
4
4
  /* empty css */
5
5
  import G from "./index127.js";
6
6
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
2
- import B from "./index231.js";
2
+ import B from "./index223.js";
3
3
  /* empty css */
4
- import k from "./index233.js";
4
+ import k from "./index225.js";
5
5
  const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
6
6
  __name: "BaseTextInput",
7
7
  props: {
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 "./index224.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 "./index224.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/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 "./index220.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 "./index221.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 "./index223.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/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 "./index221.js";
3
- import { useId as R } from "./index8.js";
4
- import { useIntersectionObserver as j } from "./index132.js";
5
- import { waitFor as G } from "./index222.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(
25
+ setup(B, { expose: P, emit: _ }) {
26
+ const N = H(
27
27
  () => import("./index252.js")
28
- ), t = T, s = B, { id: _ } = R(), c = `bbp_${_.value}`, r = n(), i = n(), { activate: N, deactivate: D } = z(i, {
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
  };