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.
- package/dist/components/BbPopover/BbPopover.vue.d.ts +5 -1
- package/dist/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +4 -4
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index206.js +8 -281
- package/dist/index207.js +2 -16
- package/dist/index208.js +4 -16
- package/dist/index209.js +2 -19
- package/dist/index21.js +14 -14
- package/dist/index210.js +5 -19
- package/dist/index211.js +13 -24
- package/dist/index212.js +16 -3
- package/dist/index213.js +19 -2
- package/dist/index214.js +19 -8
- package/dist/index215.js +25 -247
- package/dist/index216.js +3 -52
- package/dist/index217.js +2 -44
- package/dist/index218.js +249 -5
- package/dist/index219.js +43 -40
- package/dist/index220.js +44 -3
- package/dist/index221.js +5 -41
- package/dist/index222.js +48 -5
- package/dist/index223.js +53 -7
- package/dist/index225.js +13 -4
- package/dist/index226.js +20 -2
- package/dist/index227.js +3 -125
- package/dist/index228.js +3 -125
- package/dist/index229.js +41 -2
- package/dist/index23.js +15 -15
- package/dist/index230.js +6 -20
- package/dist/index231.js +7 -53
- package/dist/index232.js +5 -0
- package/dist/index233.js +158 -13
- package/dist/index234.js +84 -5
- package/dist/index236.js +2 -4
- package/dist/index237.js +119 -151
- package/dist/index238.js +125 -84
- package/dist/index239.js +4 -0
- package/dist/index240.js +5 -3
- package/dist/index241.js +369 -2
- package/dist/index242.js +2 -18
- package/dist/index243.js +17 -105
- package/dist/index244.js +108 -0
- package/dist/{index245.js → index246.js} +1 -1
- package/dist/index25.js +5 -5
- package/dist/index250.js +3 -3
- package/dist/index252.js +1 -1
- package/dist/index256.js +3 -6
- package/dist/index258.js +7 -2
- package/dist/index259.js +176 -2
- package/dist/index260.js +4 -2
- package/dist/index261.js +281 -2
- package/dist/index262.js +6 -2
- package/dist/index263.js +2 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -28
- package/dist/index268.js +2 -22
- package/dist/index269.js +4 -0
- package/dist/index27.js +1 -1
- package/dist/index270.js +2 -7
- package/dist/index271.js +2 -431
- package/dist/index272.js +2 -89
- package/dist/index273.js +28 -4
- package/dist/index274.js +21 -199
- package/dist/index276.js +224 -9
- package/dist/index277.js +3 -2
- package/dist/index278.js +12 -126
- package/dist/index279.js +7 -174
- package/dist/index280.js +9 -3
- package/dist/index281.js +19 -0
- package/dist/index282.js +429 -20
- package/dist/index283.js +91 -0
- package/dist/index284.js +200 -3
- package/dist/index285.js +66 -12
- package/dist/index286.js +2 -9
- package/dist/index287.js +5 -17
- package/dist/index288.js +2 -66
- package/dist/index289.js +117 -427
- package/dist/index29.js +2 -2
- package/dist/index290.js +21 -126
- package/dist/index292.js +431 -219
- package/dist/index293.js +127 -3
- package/dist/index294.js +1 -1
- package/dist/index295.js +3 -211
- package/dist/index296.js +211 -4
- package/dist/index297.js +4 -4
- package/dist/index298.js +4 -59
- package/dist/index299.js +57 -77
- package/dist/index300.js +81 -0
- package/dist/index302.js +4 -7
- package/dist/index303.js +7 -6
- package/dist/index304.js +32 -6
- package/dist/index305.js +6 -18
- package/dist/index306.js +18 -3
- package/dist/index307.js +6 -34
- package/dist/index309.js +1 -1
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -46
- package/dist/index311.js +47 -480
- package/dist/index312.js +482 -0
- package/dist/index314.js +420 -43
- package/dist/index316.js +49 -0
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +13 -13
- package/dist/index39.js +3 -3
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +9 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index88.js +52 -48
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/index224.js +0 -4
- package/dist/index235.js +0 -371
- package/dist/index247.js +0 -4
- package/dist/index257.js +0 -4
- package/dist/index275.js +0 -4
- package/dist/index291.js +0 -7
- package/dist/index301.js +0 -7
- 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 "./
|
8
|
-
import { useOptions as pe } from "./
|
9
|
-
import ce from "./
|
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 "./
|
11
|
+
import fe from "./index246.js";
|
12
12
|
/* empty css */
|
13
|
-
import me from "./
|
13
|
+
import me from "./index223.js";
|
14
14
|
/* empty css */
|
15
|
-
import ve from "./
|
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()
|
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
|
-
|
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 "./
|
3
|
-
import E from "./
|
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 "./
|
2
|
+
import B from "./index223.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
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 "./
|
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 "./
|
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 "./
|
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 "./
|
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 "./
|
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
|
2
|
-
import { useFocusTrap as
|
3
|
-
import { useId as
|
4
|
-
import { useIntersectionObserver as
|
5
|
-
import { waitFor as
|
6
|
-
import
|
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
|
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(
|
26
|
-
const
|
25
|
+
setup(B, { expose: P, emit: _ }) {
|
26
|
+
const N = H(
|
27
27
|
() => import("./index252.js")
|
28
|
-
), t =
|
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
|
37
|
+
var k;
|
38
38
|
const o = e.target;
|
39
|
-
return o instanceof HTMLElement && (
|
39
|
+
return o instanceof HTMLElement && (k = r.value) != null && k.contains(o) || (i(), s("hidden")), !0;
|
40
40
|
},
|
41
|
-
escapeDeactivates: () => (
|
42
|
-
await
|
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
|
-
|
50
|
+
G(
|
51
51
|
r,
|
52
52
|
([{ intersectionRatio: e }]) => {
|
53
|
-
e !== 1 && a.value &&
|
53
|
+
e !== 1 && a.value && i();
|
54
54
|
},
|
55
55
|
{ threshold: [0, 1] }
|
56
56
|
);
|
57
|
-
const
|
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),
|
63
|
-
d.value = !0, await
|
64
|
-
},
|
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
|
-
},
|
66
|
+
}, h = async () => {
|
67
67
|
if (a.value) {
|
68
|
-
await
|
68
|
+
await i(), f(), s("hidden");
|
69
69
|
return;
|
70
70
|
}
|
71
71
|
if (u.value || t.disabled) return;
|
72
|
-
d.value = !0, await
|
72
|
+
d.value = !0, await O();
|
73
73
|
let e = t.focusTarget ?? ".bb-popover__close";
|
74
|
-
|
74
|
+
E({
|
75
75
|
onPostActivate: () => {
|
76
|
-
if (
|
77
|
-
const o =
|
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
|
-
},
|
87
|
-
|
88
|
-
},
|
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 (
|
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
|
-
|
112
|
+
y(e.$slots, "activator", I(V({
|
109
113
|
props: {
|
110
114
|
"aria-controls": `popover_${c}`,
|
111
115
|
"aria-expanded": a.value,
|
112
|
-
onClick:
|
116
|
+
onClick: h,
|
113
117
|
id: c,
|
114
118
|
disabled: !!e.disabled
|
115
119
|
},
|
116
|
-
closed:
|
117
|
-
closing:
|
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 ? (
|
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:
|
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:
|
145
|
+
default: $(() => [
|
142
146
|
p("div", {
|
143
147
|
ref_key: "content",
|
144
|
-
ref:
|
148
|
+
ref: l,
|
145
149
|
class: "bb-popover__content"
|
146
150
|
}, [
|
147
|
-
e.showClose ? (
|
151
|
+
e.showClose ? (b(), C(K, {
|
148
152
|
key: 0,
|
149
153
|
class: "bb-popover__close",
|
150
|
-
onClick:
|
154
|
+
onClick: v
|
151
155
|
}, {
|
152
|
-
default:
|
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
|
-
})) :
|
169
|
-
|
170
|
-
close:
|
171
|
-
closed:
|
172
|
-
closing:
|
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"])) :
|
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
|
-
|
190
|
+
te as default
|
187
191
|
};
|