bitboss-ui 2.0.105 → 2.0.107
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/BaseDialog/BaseDialog.vue.d.ts +0 -1
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +1 -7
- package/dist/components/BbAlert/BbAlert.vue.d.ts +0 -1
- package/dist/components/BbChip/BbChip.vue.d.ts +0 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +0 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbRows/BbRows.vue.d.ts +1 -0
- package/dist/components/BbTable/BbTable.vue.d.ts +2 -7
- package/dist/components/BbTable/types.d.ts +13 -0
- package/dist/components/ListBox.vue.d.ts +0 -2
- package/dist/composables/useLocale.d.ts +1 -1
- package/dist/i18n/en.d.ts +45 -0
- package/dist/i18n/it.d.ts +45 -0
- package/dist/index100.js +46 -45
- package/dist/index111.js +223 -205
- package/dist/index119.js +2 -2
- package/dist/index121.js +55 -54
- package/dist/index123.js +1 -1
- package/dist/index125.js +14 -13
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +36 -35
- package/dist/index17.js +3 -3
- package/dist/index19.js +63 -64
- package/dist/index207.js +8 -2
- package/dist/index208.js +3 -4
- package/dist/index209.js +53 -2
- package/dist/index21.js +110 -103
- package/dist/index211.js +13 -16
- package/dist/index212.js +3 -16
- package/dist/index213.js +40 -18
- package/dist/index214.js +6 -19
- package/dist/index215.js +7 -27
- package/dist/index216.js +12 -3
- package/dist/index217.js +13 -2
- package/dist/index218.js +2 -8
- package/dist/index219.js +4 -250
- package/dist/index220.js +2 -52
- package/dist/index221.js +3 -44
- package/dist/index222.js +20 -5
- package/dist/index223.js +4 -60
- package/dist/index224.js +281 -84
- package/dist/index225.js +18 -0
- package/dist/index226.js +16 -8
- package/dist/index227.js +18 -24
- package/dist/index228.js +14 -16
- package/dist/index229.js +18 -47
- package/dist/index23.js +127 -119
- package/dist/index230.js +27 -15
- package/dist/index231.js +2 -12
- package/dist/index232.js +250 -16
- package/dist/index233.js +52 -3
- package/dist/index234.js +44 -41
- package/dist/index235.js +5 -6
- package/dist/index236.js +60 -7
- package/dist/index237.js +126 -12
- package/dist/index238.js +124 -52
- package/dist/index239.js +4 -0
- package/dist/index240.js +4 -12
- package/dist/index241.js +369 -3
- package/dist/index242.js +85 -125
- package/dist/index244.js +25 -2
- package/dist/index245.js +16 -19
- package/dist/index246.js +48 -5
- package/dist/index247.js +12 -366
- package/dist/index248.js +12 -4
- package/dist/index249.js +16 -2
- package/dist/index25.js +44 -41
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +105 -17
- package/dist/{index255.js → index254.js} +2 -2
- package/dist/index256.js +14 -0
- package/dist/index257.js +2 -12
- package/dist/index258.js +2 -10
- package/dist/index259.js +9 -2
- package/dist/index260.js +3 -6
- package/dist/index261.js +8 -15
- package/dist/index262.js +23 -9
- package/dist/index263.js +88 -8
- package/dist/index265.js +6 -89
- package/dist/index266.js +18 -0
- package/dist/index267.js +9 -4
- package/dist/index268.js +9 -6
- package/dist/index269.js +8 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +28 -2
- package/dist/index271.js +3 -2
- package/dist/index273.js +7 -2
- package/dist/index274.js +431 -2
- package/dist/index275.js +1 -1
- package/dist/index276.js +89 -2
- package/dist/index277.js +7 -2
- package/dist/index278.js +11 -2
- package/dist/index279.js +4 -28
- package/dist/index280.js +224 -22
- package/dist/index281.js +202 -0
- package/dist/index282.js +175 -6
- package/dist/index283.js +6 -3
- package/dist/index284.js +2 -7
- package/dist/index285.js +2 -11
- package/dist/index286.js +2 -17
- package/dist/index287.js +2 -9
- package/dist/index288.js +2 -431
- package/dist/index289.js +2 -2
- package/dist/index29.js +2 -2
- package/dist/index290.js +2 -89
- package/dist/index291.js +2 -3
- package/dist/index292.js +4 -0
- package/dist/index293.js +2 -224
- package/dist/index294.js +2 -200
- package/dist/index295.js +22 -2
- package/dist/index297.js +2 -176
- package/dist/index298.js +125 -21
- package/dist/index299.js +24 -0
- package/dist/index301.js +3 -436
- package/dist/index302.js +16 -126
- package/dist/index303.js +436 -3
- package/dist/index304.js +127 -3
- package/dist/index305.js +3 -213
- package/dist/index306.js +3 -3
- package/dist/index307.js +214 -3
- package/dist/index308.js +3 -58
- package/dist/index309.js +3 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -19
- package/dist/index311.js +56 -64
- package/dist/index312.js +2 -7
- package/dist/index313.js +67 -2
- package/dist/index314.js +5 -5
- package/dist/index315.js +32 -7
- package/dist/index316.js +7 -8
- package/dist/index317.js +18 -7
- package/dist/index318.js +53 -5
- package/dist/index319.js +53 -3
- package/dist/index320.js +46 -3
- package/dist/index321.js +6 -32
- package/dist/index322.js +4 -46
- package/dist/index323.js +8 -2
- package/dist/index324.js +2 -2
- package/dist/index325.js +6 -0
- package/dist/index326.js +2 -424
- package/dist/index328.js +424 -2
- package/dist/index33.js +45 -45
- package/dist/index35.js +56 -55
- package/dist/index37.js +166 -165
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +70 -71
- package/dist/index45.js +7 -7
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +28 -27
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +32 -31
- package/dist/index75.js +3 -3
- package/dist/index77.js +87 -86
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +45 -44
- package/dist/index86.js +67 -66
- package/dist/index88.js +69 -67
- package/package.json +1 -1
- package/dist/index210.js +0 -283
- package/dist/index243.js +0 -127
- package/dist/index253.js +0 -108
- package/dist/index264.js +0 -25
- package/dist/index296.js +0 -128
- package/dist/index300.js +0 -10
- /package/dist/{index327.js → index329.js} +0 -0
- /package/dist/{index272.js → index330.js} +0 -0
package/dist/index77.js
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as E, ref as W, computed as g, openBlock as l, createElementBlock as L, normalizeClass as I, createVNode as u, mergeProps as P, withCtx as t, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as y, createSlots as M, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as R } from "vue";
|
2
|
+
import N from "./index13.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import T from "./index75.js";
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import S from "./index127.js";
|
9
9
|
/* empty css */
|
10
|
-
import
|
10
|
+
import Z from "./index129.js";
|
11
11
|
/* empty css */
|
12
|
-
|
12
|
+
import { useLocale as j } from "./index217.js";
|
13
|
+
const q = { class: "bb-dropdown-button__content" }, A = {
|
13
14
|
key: 1,
|
14
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
15
|
-
},
|
16
|
+
}, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, no = /* @__PURE__ */ E({
|
16
17
|
__name: "BbDropdownButton",
|
17
18
|
props: {
|
18
19
|
arrowPadding: {},
|
@@ -33,93 +34,93 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
|
|
33
34
|
loading: { type: Boolean },
|
34
35
|
"prepend:icon": {}
|
35
36
|
},
|
36
|
-
setup(
|
37
|
-
const n =
|
38
|
-
() => n.loading || !!
|
39
|
-
),
|
40
|
-
|
41
|
-
}, h =
|
42
|
-
() => n.items.map((
|
43
|
-
...
|
44
|
-
onClick:
|
45
|
-
} :
|
46
|
-
),
|
47
|
-
const
|
48
|
-
return
|
37
|
+
setup(V) {
|
38
|
+
const n = V, { t: b } = j(), c = W(0), w = g(
|
39
|
+
() => n.loading || !!c.value && n.autoLoading
|
40
|
+
), z = (o) => async (...s) => {
|
41
|
+
w.value && n.disabledWhileLoading || (c.value++, await o(...s), c.value--);
|
42
|
+
}, h = g(
|
43
|
+
() => n.items.map((o) => o.onClick ? {
|
44
|
+
...o,
|
45
|
+
onClick: z(o.onClick)
|
46
|
+
} : o)
|
47
|
+
), _ = g(() => {
|
48
|
+
const o = { ...h.value[0] };
|
49
|
+
return o.disabled = o.disabled || n.disabled, o;
|
49
50
|
});
|
50
|
-
return (
|
51
|
-
class:
|
52
|
-
"bb-dropdown-button--block":
|
53
|
-
"bb-dropdown-button--loading":
|
54
|
-
[`bb-dropdown-button--${
|
51
|
+
return (o, s) => (l(), L("span", {
|
52
|
+
class: I(["bb-dropdown-button", {
|
53
|
+
"bb-dropdown-button--block": o.block,
|
54
|
+
"bb-dropdown-button--loading": w.value,
|
55
|
+
[`bb-dropdown-button--${o.theme}`]: !0
|
55
56
|
}])
|
56
57
|
}, [
|
57
|
-
|
58
|
+
u(N, P(_.value, { class: "bb-dropdown-button__main-btn" }), {
|
58
59
|
default: t(() => [
|
59
|
-
|
60
|
-
n["prepend:icon"] ? (
|
60
|
+
u(d(Z), { class: "bb-dropdown-button__spinner" }),
|
61
|
+
n["prepend:icon"] ? (l(), D(d(S), {
|
61
62
|
key: 0,
|
62
63
|
class: "bb-dropdown-button__prepend-icon",
|
63
64
|
type: n["prepend:icon"]
|
64
|
-
}, null, 8, ["type"])) :
|
65
|
-
|
66
|
-
|
67
|
-
n["append:icon"] ? (
|
65
|
+
}, null, 8, ["type"])) : v("", !0),
|
66
|
+
m("span", q, y(_.value.text), 1),
|
67
|
+
w.value ? (l(), L("span", A, y(d(b)("common.loadingText").value), 1)) : v("", !0),
|
68
|
+
n["append:icon"] ? (l(), D(d(S), {
|
68
69
|
key: 2,
|
69
70
|
class: "bb-dropdown-button__append-icon",
|
70
71
|
type: n["append:icon"]
|
71
|
-
}, null, 8, ["type"])) :
|
72
|
+
}, null, 8, ["type"])) : v("", !0)
|
72
73
|
]),
|
73
74
|
_: 1
|
74
75
|
}, 16),
|
75
|
-
|
76
|
-
id:
|
77
|
-
"arrow-padding":
|
78
|
-
disabled:
|
79
|
-
eager:
|
76
|
+
u(T, {
|
77
|
+
id: o.id,
|
78
|
+
"arrow-padding": o.arrowPadding,
|
79
|
+
disabled: o.disabled,
|
80
|
+
eager: o.eager,
|
80
81
|
items: h.value,
|
81
|
-
offset:
|
82
|
-
padding:
|
83
|
-
placement:
|
84
|
-
theme:
|
85
|
-
"transition-duration":
|
86
|
-
width:
|
87
|
-
},
|
82
|
+
offset: o.offset,
|
83
|
+
padding: o.padding,
|
84
|
+
placement: o.placement,
|
85
|
+
theme: o.theme,
|
86
|
+
"transition-duration": o.transitionDuration,
|
87
|
+
width: o.width
|
88
|
+
}, M({
|
88
89
|
activator: t(({
|
89
|
-
props:
|
90
|
-
opening:
|
91
|
-
open:
|
92
|
-
closed:
|
93
|
-
closing:
|
94
|
-
disabled:
|
95
|
-
placement:
|
90
|
+
props: e,
|
91
|
+
opening: p,
|
92
|
+
open: f,
|
93
|
+
closed: k,
|
94
|
+
closing: B,
|
95
|
+
disabled: $,
|
96
|
+
placement: C
|
96
97
|
}) => [
|
97
|
-
a(
|
98
|
-
closed:
|
99
|
-
closing:
|
100
|
-
disabled:
|
101
|
-
open:
|
102
|
-
opening:
|
103
|
-
placement:
|
104
|
-
props:
|
98
|
+
a(o.$slots, "activator", {
|
99
|
+
closed: k,
|
100
|
+
closing: B,
|
101
|
+
disabled: $,
|
102
|
+
open: f,
|
103
|
+
opening: p,
|
104
|
+
placement: C,
|
105
|
+
props: e
|
105
106
|
}, () => [
|
106
|
-
|
107
|
+
u(N, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
|
107
108
|
default: t(() => [
|
108
|
-
|
109
|
-
a(
|
110
|
-
closed:
|
111
|
-
closing:
|
112
|
-
disabled:
|
113
|
-
open:
|
114
|
-
opening:
|
115
|
-
placement:
|
109
|
+
m("span", F, y(f || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
|
110
|
+
a(o.$slots, "right-btn", {
|
111
|
+
closed: k,
|
112
|
+
closing: B,
|
113
|
+
disabled: $,
|
114
|
+
open: f,
|
115
|
+
opening: p,
|
116
|
+
placement: C
|
116
117
|
}, () => [
|
117
|
-
|
118
|
+
s[0] || (s[0] = m("svg", {
|
118
119
|
class: "bb-dropdown-button__dropdown-chevron",
|
119
120
|
viewBox: "0 0 24 24",
|
120
121
|
xmlns: "http://www.w3.org/2000/svg"
|
121
122
|
}, [
|
122
|
-
|
123
|
+
m("path", {
|
123
124
|
d: "M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6l-6 6l1.41 1.41Z",
|
124
125
|
fill: "currentColor"
|
125
126
|
})
|
@@ -130,27 +131,27 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
|
|
130
131
|
}, 1040)
|
131
132
|
])
|
132
133
|
]),
|
133
|
-
prepend: t((
|
134
|
-
a(
|
134
|
+
prepend: t((e) => [
|
135
|
+
a(o.$slots, "prepend", r(i(e)))
|
135
136
|
]),
|
136
|
-
"item:prepend": t((
|
137
|
-
a(
|
137
|
+
"item:prepend": t((e) => [
|
138
|
+
a(o.$slots, "item:prepend", r(i(e)))
|
138
139
|
]),
|
139
|
-
item: t((
|
140
|
-
a(
|
140
|
+
item: t((e) => [
|
141
|
+
a(o.$slots, "item", r(i(e)))
|
141
142
|
]),
|
142
|
-
"item:append": t((
|
143
|
-
a(
|
143
|
+
"item:append": t((e) => [
|
144
|
+
a(o.$slots, "item:append", r(i(e)))
|
144
145
|
]),
|
145
|
-
append: t((
|
146
|
-
a(
|
146
|
+
append: t((e) => [
|
147
|
+
a(o.$slots, "append", r(i(e)))
|
147
148
|
]),
|
148
149
|
_: 2
|
149
150
|
}, [
|
150
|
-
|
151
|
-
name:
|
152
|
-
fn: t((
|
153
|
-
a(
|
151
|
+
R(o.items, (e) => ({
|
152
|
+
name: e.key,
|
153
|
+
fn: t((p) => [
|
154
|
+
a(o.$slots, e.key, r(i(p)))
|
154
155
|
])
|
155
156
|
}))
|
156
157
|
]), 1032, ["id", "arrow-padding", "disabled", "eager", "items", "offset", "padding", "placement", "theme", "transition-duration", "width"])
|
@@ -158,5 +159,5 @@ const Z = { class: "bb-dropdown-button__content" }, j = {
|
|
158
159
|
}
|
159
160
|
});
|
160
161
|
export {
|
161
|
-
|
162
|
+
no as default
|
162
163
|
};
|
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 "./
|
2
|
+
import { findInTree as ae } from "./index266.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index128.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index265.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
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 "./
|
2
|
+
import { throttle as c } from "./index212.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useFocusTrap as
|
1
|
+
import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
|
2
|
+
import { useFocusTrap as pe } from "./index213.js";
|
3
3
|
import { useId as E } from "./index8.js";
|
4
4
|
import { wait as H } from "./index130.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import
|
7
|
-
import { useMobile as
|
8
|
-
|
5
|
+
import { useModalsState as b } from "./index215.js";
|
6
|
+
import be from "./index216.js";
|
7
|
+
import { useMobile as me } from "./index9.js";
|
8
|
+
import { useLocale as ye } from "./index217.js";
|
9
|
+
const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
|
9
10
|
__name: "BbOffCanvas",
|
10
11
|
props: {
|
11
|
-
closeLabel: {
|
12
|
+
closeLabel: {},
|
12
13
|
compact: { type: Boolean },
|
13
14
|
disabled: { type: Boolean },
|
14
15
|
eager: { type: Boolean },
|
@@ -28,21 +29,21 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
28
29
|
},
|
29
30
|
emits: ["shown", "hidden", "update:modelValue"],
|
30
31
|
setup(I, { emit: W }) {
|
31
|
-
var
|
32
|
-
const e = I, c = W, _ = `title_${E().id.value}`, k = `description_${E().id.value}`, { isMobile:
|
33
|
-
() => e.fullscreen === !0 || e.fullscreen === "mobile" &&
|
34
|
-
), T = !!((N = (
|
32
|
+
var x, N;
|
33
|
+
const e = I, c = W, { t: F } = ye(), _ = `title_${E().id.value}`, k = `description_${E().id.value}`, { isMobile: R } = me(), d = l(null), M = l(null), K = l(null), P = l(null), U = l(null), j = l(null), q = ae(), C = u(
|
34
|
+
() => e.fullscreen === !0 || e.fullscreen === "mobile" && R.value
|
35
|
+
), T = !!((N = (x = ne()) == null ? void 0 : x.proxy) != null && N.$nuxt), f = l(0), G = u(() => {
|
35
36
|
const { openedModals: t } = b();
|
36
37
|
return !t.value || t.value === f.value;
|
37
|
-
}), { activate:
|
38
|
+
}), { activate: J, deactivate: Q } = pe(M, {
|
38
39
|
initialFocus: e.focusTarget ?? void 0,
|
39
40
|
clickOutsideDeactivates: (t) => t.target === d.value,
|
40
41
|
allowOutsideClick: !0,
|
41
42
|
/* On esc deactivate the trap, return focus and then close the modal */
|
42
|
-
escapeDeactivates: () => (
|
43
|
+
escapeDeactivates: () => (ie(() => {
|
43
44
|
c("update:modelValue", !1);
|
44
45
|
}), !0)
|
45
|
-
}),
|
46
|
+
}), X = u(() => e.closeLabel), w = l(!1), v = l(!1), m = l(!0), p = l(!1), i = l(e.eager || e.modelValue), D = l(null), Y = u(() => v.value || p.value), Z = () => {
|
46
47
|
if (!globalThis.document) return;
|
47
48
|
const t = window.innerWidth - document.documentElement.clientWidth;
|
48
49
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${t}px`;
|
@@ -54,42 +55,42 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
54
55
|
const { openedModals: t, modalHasClosed: o } = b();
|
55
56
|
t.value && (o(), f.value = 0, B());
|
56
57
|
}
|
57
|
-
}),
|
58
|
-
!e.modelValue && !i.value || T && !globalThis.document ||
|
58
|
+
}), re(() => {
|
59
|
+
!e.modelValue && !i.value || T && !globalThis.document || L();
|
59
60
|
}), O(() => {
|
60
61
|
if (e.modelValue) {
|
61
62
|
const { openedModals: t, modalHasClosed: o } = b();
|
62
63
|
t.value && (o(), f.value = 0, B());
|
63
64
|
}
|
64
|
-
}),
|
65
|
+
}), ue(
|
65
66
|
() => e.modelValue,
|
66
67
|
() => {
|
67
|
-
!e.modelValue && !i.value || T && !globalThis.document ||
|
68
|
+
!e.modelValue && !i.value || T && !globalThis.document || L();
|
68
69
|
},
|
69
70
|
{ flush: "post" }
|
70
71
|
);
|
71
|
-
const
|
72
|
+
const L = async () => {
|
72
73
|
if (e.modelValue) {
|
73
74
|
i.value || (i.value = !0), m.value = !1, p.value = !1, v.value = !0;
|
74
75
|
const { modalHasOpened: t, openedModals: o } = b();
|
75
|
-
t(), f.value = o.value,
|
76
|
+
t(), f.value = o.value, Z(), await H(e.transitionDuration), v.value = !1, w.value = !0, c("shown"), J();
|
76
77
|
} else {
|
77
|
-
|
78
|
+
Q(), v.value = !1, w.value = !1, p.value = !0;
|
78
79
|
const { modalHasClosed: t, openedModals: o } = b();
|
79
80
|
t(), f.value = 0, o.value || B(), await H(e.transitionDuration), p.value = !1, m.value = !0, c("hidden"), D.value instanceof HTMLElement && D.value.focus();
|
80
81
|
}
|
81
82
|
}, y = (t) => {
|
82
83
|
t.target === d.value && t.preventDefault();
|
83
|
-
},
|
84
|
-
e.disabled ||
|
84
|
+
}, ee = (t) => {
|
85
|
+
e.disabled || Y.value || d.value && t.target === d.value && (e.persistent || c("update:modelValue", !1));
|
85
86
|
}, V = () => {
|
86
87
|
e.disabled || c("update:modelValue", !1);
|
87
|
-
},
|
88
|
+
}, te = u(() => {
|
88
89
|
const t = [
|
89
90
|
{
|
90
91
|
"bb-offcanvas bb-offcanvas__overlay": !0,
|
91
92
|
"bb-offcanvas--fullscreen": C.value,
|
92
|
-
"bb-offcanvas--faded": !
|
93
|
+
"bb-offcanvas--faded": !G.value,
|
93
94
|
"bb-offcanvas--open": w.value,
|
94
95
|
"bb-offcanvas--opening": v.value,
|
95
96
|
"bb-offcanvas--closed": m.value,
|
@@ -99,7 +100,7 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
99
100
|
},
|
100
101
|
e.overlayClasses
|
101
102
|
].flat(), o = {
|
102
|
-
onClick:
|
103
|
+
onClick: ee,
|
103
104
|
onScroll: y,
|
104
105
|
onTouchmove: y,
|
105
106
|
onWheel: y,
|
@@ -111,9 +112,9 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
111
112
|
class: t,
|
112
113
|
style: a,
|
113
114
|
...o,
|
114
|
-
...
|
115
|
+
...q
|
115
116
|
};
|
116
|
-
}),
|
117
|
+
}), oe = u(() => {
|
117
118
|
const t = [
|
118
119
|
{
|
119
120
|
"bb-offcanvas__panel": !0,
|
@@ -132,38 +133,38 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
132
133
|
lg: 896
|
133
134
|
};
|
134
135
|
e.direction === "left" || e.direction === "right" ? C.value ? a = "100%" : typeof e.size == "number" ? a = e.size + "px" : e.size in h ? a = h[e.size] + "px" : a = e.size + "px" : C.value ? r = "100%" : typeof e.size == "number" ? r = e.size + "px" : e.size in h ? r = h[e.size] + "px" : Number.isNaN(Number(e.size)) ? e.size === "auto" && (r = "auto") : r = e.size + "px";
|
135
|
-
const
|
136
|
+
const le = {
|
136
137
|
maxWidth: a,
|
137
138
|
height: r,
|
138
139
|
transitionDuration: e.transitionDuration / 1e3 + "s"
|
139
140
|
};
|
140
141
|
return {
|
141
142
|
class: t,
|
142
|
-
style:
|
143
|
+
style: le,
|
143
144
|
...o
|
144
145
|
};
|
145
146
|
});
|
146
|
-
return (t, o) => (g(),
|
147
|
-
default:
|
148
|
-
s("div", S(
|
147
|
+
return (t, o) => (g(), ce(be, null, {
|
148
|
+
default: de(() => [
|
149
|
+
s("div", S(te.value, {
|
149
150
|
ref_key: "overlay",
|
150
151
|
ref: d,
|
151
152
|
inert: m.value
|
152
153
|
}), [
|
153
|
-
s("div", S(
|
154
|
+
s("div", S(oe.value, {
|
154
155
|
ref_key: "panel",
|
155
156
|
ref: M
|
156
157
|
}), [
|
157
158
|
i.value ? (g(), z("div", {
|
158
159
|
key: 0,
|
159
160
|
ref_key: "content",
|
160
|
-
ref:
|
161
|
+
ref: K,
|
161
162
|
class: "bb-offcanvas__content"
|
162
163
|
}, [
|
163
164
|
n(t.$slots, "content", { close: V }, () => [
|
164
165
|
s("div", {
|
165
166
|
ref_key: "header",
|
166
|
-
ref:
|
167
|
+
ref: P,
|
167
168
|
class: "bb-offcanvas__header"
|
168
169
|
}, [
|
169
170
|
n(t.$slots, "header", {
|
@@ -176,13 +177,13 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
176
177
|
class: "bb-offcanvas__title"
|
177
178
|
}, [
|
178
179
|
n(t.$slots, "title", { text: t.title }, () => [
|
179
|
-
|
180
|
+
fe(A(t.title), 1)
|
180
181
|
])
|
181
182
|
]),
|
182
|
-
s("span",
|
183
|
+
s("span", ge, [
|
183
184
|
t.showClose ? (g(), z("button", {
|
184
185
|
key: 0,
|
185
|
-
"aria-label":
|
186
|
+
"aria-label": X.value || ve(F)("common.closeLabel").value,
|
186
187
|
type: "button",
|
187
188
|
onClick: V
|
188
189
|
}, [
|
@@ -203,13 +204,13 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
203
204
|
])
|
204
205
|
], -1))
|
205
206
|
])
|
206
|
-
], 8,
|
207
|
+
], 8, _e)) : $("", !0)
|
207
208
|
])
|
208
209
|
])
|
209
210
|
], 512),
|
210
211
|
s("div", {
|
211
212
|
ref_key: "body",
|
212
|
-
ref:
|
213
|
+
ref: U,
|
213
214
|
class: "bb-offcanvas__body scrollbar-border"
|
214
215
|
}, [
|
215
216
|
n(t.$slots, "description", {
|
@@ -227,7 +228,7 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
227
228
|
o[1] || (o[1] = s("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
|
228
229
|
s("div", {
|
229
230
|
ref_key: "footer",
|
230
|
-
ref:
|
231
|
+
ref: j,
|
231
232
|
class: "bb-offcanvas__footer"
|
232
233
|
}, [
|
233
234
|
n(t.$slots, "footer")
|
@@ -235,12 +236,12 @@ const be = ["inert"], me = { class: "bb-offcanvas-close" }, ye = ["aria-label"],
|
|
235
236
|
])
|
236
237
|
], 512)) : $("", !0)
|
237
238
|
], 16)
|
238
|
-
], 16,
|
239
|
+
], 16, he)
|
239
240
|
]),
|
240
241
|
_: 3
|
241
242
|
}));
|
242
243
|
}
|
243
244
|
});
|
244
245
|
export {
|
245
|
-
|
246
|
+
Te as default
|
246
247
|
};
|