bitboss-ui 2.1.0 → 2.1.2
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/BaseButton/BaseButton.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +2 -0
- package/dist/components/BbNumberInput/BbNumberInput.vue.d.ts +10 -2
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +2 -2
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index106.js +9 -9
- package/dist/index111.js +1 -1
- package/dist/index113.js +1 -1
- package/dist/index121.js +12 -12
- package/dist/index129.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index131.js +4 -4
- package/dist/index133.js +1 -1
- package/dist/index136.js +1 -1
- package/dist/index137.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index15.js +8 -8
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index206.js +138 -2
- package/dist/index207.js +2 -138
- package/dist/index209.js +86 -2
- package/dist/index21.js +16 -16
- package/dist/index211.js +29 -2
- package/dist/index212.js +17 -66
- package/dist/index213.js +53 -0
- package/dist/index214.js +15 -13
- package/dist/index215.js +3 -13
- package/dist/index216.js +12 -13
- package/dist/index217.js +15 -10
- package/dist/index218.js +4 -5
- package/dist/index219.js +13 -5
- package/dist/index220.js +11 -5
- package/dist/index221.js +20 -5
- package/dist/index222.js +197 -5
- package/dist/index224.js +66 -2
- package/dist/index226.js +13 -2
- package/dist/index227.js +111 -18
- package/dist/index229.js +36 -0
- package/dist/index23.js +15 -15
- package/dist/index230.js +2 -86
- package/dist/index231.js +4 -0
- package/dist/index232.js +17 -28
- package/dist/index233.js +11 -15
- package/dist/index234.js +6 -17
- package/dist/index235.js +4 -51
- package/dist/index236.js +106 -15
- package/dist/index238.js +100 -12
- package/dist/index240.js +219 -188
- package/dist/index241.js +5 -0
- package/dist/index242.js +2 -5
- package/dist/index243.js +2 -5
- package/dist/index244.js +12 -7
- package/dist/index245.js +5 -250
- package/dist/index246.js +5 -52
- package/dist/index247.js +5 -44
- package/dist/index248.js +4 -4
- package/dist/index249.js +5 -60
- package/dist/index25.js +35 -42
- package/dist/index250.js +5 -18
- package/dist/index251.js +2 -12
- package/dist/index252.js +2 -6
- package/dist/index253.js +176 -105
- package/dist/index254.js +12 -0
- package/dist/index255.js +3 -100
- package/dist/index256.js +7 -0
- package/dist/index257.js +5 -228
- package/dist/index258.js +7 -176
- package/dist/index259.js +250 -2
- package/dist/index260.js +52 -3
- package/dist/index261.js +42 -32
- package/dist/index262.js +5 -2
- package/dist/index263.js +60 -10
- package/dist/index264.js +2 -3
- package/dist/index265.js +9 -6
- package/dist/index266.js +8 -16
- package/dist/index267.js +9 -3
- package/dist/index268.js +23 -9
- package/dist/index269.js +9 -9
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -23
- package/dist/index271.js +6 -9
- package/dist/index272.js +16 -8
- package/dist/index273.js +2 -5
- package/dist/index274.js +67 -8
- package/dist/index275.js +5 -2
- package/dist/index276.js +5 -67
- package/dist/index277.js +8 -5
- package/dist/index278.js +3 -4
- package/dist/index279.js +17 -3
- package/dist/index280.js +30 -0
- package/dist/index281.js +3 -7
- package/dist/index282.js +3 -7
- package/dist/index284.js +7 -4
- package/dist/index285.js +1 -1
- package/dist/index286.js +7 -3
- package/dist/index287.js +11 -3
- package/dist/index288.js +4 -17
- package/dist/index289.js +2 -28
- package/dist/index29.js +91 -87
- package/dist/index290.js +3 -280
- package/dist/index291.js +3 -2
- package/dist/index292.js +2 -125
- package/dist/index293.js +4 -2
- package/dist/index294.js +5 -15
- package/dist/index295.js +280 -2
- package/dist/index296.js +2 -16
- package/dist/index297.js +125 -2
- package/dist/index298.js +2 -16
- package/dist/index299.js +15 -2
- package/dist/index300.js +2 -19
- package/dist/index301.js +16 -2
- package/dist/index302.js +2 -19
- package/dist/index303.js +16 -2
- package/dist/index304.js +2 -27
- package/dist/index305.js +19 -2
- package/dist/index306.js +2 -2
- package/dist/index307.js +6 -2
- package/dist/index308.js +19 -2
- package/dist/index309.js +2 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +27 -22
- package/dist/index311.js +4 -0
- package/dist/index312.js +2 -3
- package/dist/index313.js +2 -3
- package/dist/index314.js +1 -1
- package/dist/index315.js +2 -6
- package/dist/index316.js +21 -1
- package/dist/index318.js +1 -1
- package/dist/index322.js +7 -32
- package/dist/index323.js +6 -28
- package/dist/index324.js +10 -0
- package/dist/index325.js +33 -2
- package/dist/index326.js +27 -128
- package/dist/index328.js +2 -8
- package/dist/index329.js +227 -5
- package/dist/index33.js +8 -8
- package/dist/index330.js +57 -7
- package/dist/index331.js +58 -47
- package/dist/index332.js +46 -6
- package/dist/index333.js +127 -17
- package/dist/index334.js +367 -56
- package/dist/index335.js +7 -58
- package/dist/index336.js +17 -226
- package/dist/index338.js +1 -1
- package/dist/index340.js +1 -1
- package/dist/index342.js +467 -421
- package/dist/index343.js +422 -113
- package/dist/index344.js +123 -478
- package/dist/index35.js +4 -4
- package/dist/index37.js +20 -20
- package/dist/index39.js +15 -15
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +8 -8
- package/dist/index47.js +2 -2
- package/dist/index49.js +3 -3
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +3 -3
- package/dist/index67.js +1 -1
- package/dist/index79.js +4 -4
- package/dist/index81.js +1 -1
- package/dist/index83.js +2 -2
- package/dist/index85.js +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.js +59 -66
- package/dist/index92.js +2 -2
- package/dist/index94.js +3 -3
- package/dist/index96.js +1 -1
- package/package.json +2 -2
- package/dist/index210.js +0 -6
- package/dist/index223.js +0 -7
- package/dist/index225.js +0 -4
- package/dist/index228.js +0 -115
- package/dist/index237.js +0 -5
- package/dist/index239.js +0 -6
- package/dist/index283.js +0 -13
- package/dist/index317.js +0 -7
- package/dist/index327.js +0 -371
package/dist/index39.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, createElementBlock as g, openBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, createCommentVNode as H, Fragment as ee, renderList as ae, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeStyle as F, normalizeClass as I } from "vue";
|
2
|
-
import { clamp as le } from "./
|
3
|
-
import { head as O } from "./
|
4
|
-
import { isCssColor as Y } from "./
|
5
|
-
import { isNil as P } from "./
|
2
|
+
import { clamp as le } from "./index207.js";
|
3
|
+
import { head as O } from "./index264.js";
|
4
|
+
import { isCssColor as Y } from "./index243.js";
|
5
|
+
import { isNil as P } from "./index242.js";
|
6
6
|
import { isNotNil as ne } from "./index140.js";
|
7
7
|
import { transposeValue as y } from "./index136.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index215.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
@@ -38,7 +38,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
38
38
|
originalBounds: { min: a.min, max: a.max },
|
39
39
|
targetBounds: { min: 0, max: 100 },
|
40
40
|
step: 1
|
41
|
-
}),
|
41
|
+
}), x = d(!1);
|
42
42
|
if (a.range && !Array.isArray(a.modelValue))
|
43
43
|
throw new TypeError(
|
44
44
|
"BaseSlider mode is set as range but modelValue is not an array"
|
@@ -68,7 +68,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
68
68
|
},
|
69
69
|
{ immediate: !0 }
|
70
70
|
);
|
71
|
-
let
|
71
|
+
let A = d(!1), t = d(null);
|
72
72
|
const S = (e) => {
|
73
73
|
if (v.value && v.value.contains(e.target))
|
74
74
|
return "higher";
|
@@ -76,10 +76,10 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
76
76
|
return "lower";
|
77
77
|
throw new Error("Could not identify target thumb");
|
78
78
|
}, G = (e) => {
|
79
|
-
a.disabled || a.readonly || (t.value || (t.value = S(e)),
|
79
|
+
a.disabled || a.readonly || (t.value || (t.value = S(e)), A.value = !0, document.addEventListener("pointermove", N), document.addEventListener("pointerup", z), u("pointerdown", e));
|
80
80
|
};
|
81
|
-
let M = h(() =>
|
82
|
-
const
|
81
|
+
let M = h(() => A.value ? {} : { onPointerdown: G });
|
82
|
+
const N = (e) => {
|
83
83
|
if (!(a.disabled || a.readonly) && B.value) {
|
84
84
|
const r = B.value.getBoundingClientRect(), l = e.clientX, i = r.left, s = r.width;
|
85
85
|
e instanceof PointerEvent ? u("pointermove", e) : u("click", e);
|
@@ -104,7 +104,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
104
104
|
);
|
105
105
|
return a.range ? l : l[1];
|
106
106
|
}, z = (e) => {
|
107
|
-
|
107
|
+
A.value = !1, t.value = null, document.removeEventListener("pointermove", N), document.removeEventListener("pointerup", z), u("pointerup", e), u("update:modelValue", k());
|
108
108
|
}, X = (e) => {
|
109
109
|
u("keydown", e), !(a.disabled || a.readonly || e.key !== "ArrowLeft" && e.key !== "ArrowRight") && (e.key === "ArrowLeft" ? t.value === "higher" || document.activeElement === v.value ? o.value = Math.max(
|
110
110
|
o.value - p,
|
@@ -122,10 +122,10 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
122
122
|
}, q = (e) => {
|
123
123
|
u("focus", e);
|
124
124
|
const r = S(e);
|
125
|
-
r && (t.value = r),
|
125
|
+
r && (t.value = r), x.value || (x.value = !0, u("active"), document.addEventListener("focusin", V), document.addEventListener("click", V));
|
126
126
|
}, V = (e) => {
|
127
127
|
var r;
|
128
|
-
e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || (
|
128
|
+
e.target instanceof HTMLElement && ((r = C.value) != null && r.contains(e.target) || (x.value = !1, t.value = null, u("inactive"), document.removeEventListener("focusin", V), document.removeEventListener("click", V)));
|
129
129
|
}, D = {
|
130
130
|
class: {
|
131
131
|
"bb-base-slider": !0,
|
@@ -137,7 +137,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
137
137
|
onClick: (e) => {
|
138
138
|
var l;
|
139
139
|
if (a.range) return;
|
140
|
-
(l = v.value) == null || l.focus(),
|
140
|
+
(l = v.value) == null || l.focus(), N(e);
|
141
141
|
const r = k();
|
142
142
|
J(r) !== J(a.modelValue) && u("update:modelValue", k());
|
143
143
|
},
|
@@ -203,7 +203,7 @@ const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
|
203
203
|
readonly: e.readonly,
|
204
204
|
required: e.required,
|
205
205
|
tabindex: -1,
|
206
|
-
type: "
|
206
|
+
type: "text",
|
207
207
|
value: JSON.stringify(e.modelValue)
|
208
208
|
}, null, 8, se),
|
209
209
|
c("span", {
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, createElementBlock as h, openBlock as y, normalizeProps as r, guardReactiveProps as d, createCommentVNode as A, createElementVNode as l, mergeProps as V, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index243.js";
|
3
|
+
import { when as N } from "./index235.js";
|
4
4
|
const x = { class: "bb-base-switch-container" }, $ = /* @__PURE__ */ I({
|
5
5
|
__name: "BaseSwitch",
|
6
6
|
props: {
|
package/dist/index43.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as j, ref as k, toRef as d, createBlock as z, openBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as v, guardReactiveProps as b, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index209.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as $ } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index211.js";
|
7
|
+
import { useIndexById as T } from "./index212.js";
|
8
|
+
import { useBaseOptions as q } from "./index213.js";
|
9
|
+
import { useCoherence as J } from "./index214.js";
|
10
|
+
import { hash as Q } from "./index215.js";
|
11
|
+
import { useHashedWatcher as $ } from "./index216.js";
|
12
|
+
import { usePrefill as X } from "./index217.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -3,17 +3,17 @@ import { defineComponent as Q, ref as u, computed as f, toRef as E, watch as Z,
|
|
3
3
|
/* empty css */
|
4
4
|
import ae from "./index111.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as le } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as re } from "./
|
9
|
-
import ie from "./
|
6
|
+
import { last as le } from "./index231.js";
|
7
|
+
import { useBaseOptions as ne } from "./index213.js";
|
8
|
+
import { useIndexById as re } from "./index212.js";
|
9
|
+
import ie from "./index236.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index238.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index224.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index226.js";
|
16
|
+
import { isEmpty as pe } from "./index230.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], De = /* @__PURE__ */ Q({
|
18
18
|
__name: "BaseTag",
|
19
19
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as h, ref as y, computed as u, onMounted as g, watch as B, nextTick as V, createBlock as $, openBlock as k, normalizeClass as C, withCtx as r, createVNode as i, unref as T, createElementVNode as v, mergeProps as x, renderSlot as t } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index226.js";
|
3
|
+
import G from "./index224.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index111.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as V, ref as h, computed as v, onMounted as B, onBeforeUnmount as M, watch as g, createElementBlock as i, openBlock as r, Fragment as w, createVNode as m, createElementVNode as $, normalizeClass as C, withCtx as n, unref as q, mergeProps as b, renderSlot as d } from "vue";
|
2
|
-
import E from "./
|
2
|
+
import E from "./index224.js";
|
3
3
|
/* empty css */
|
4
|
-
import I from "./
|
4
|
+
import I from "./index226.js";
|
5
5
|
import { isNotNil as N } from "./index140.js";
|
6
|
-
import { MaskInput as z } from "./
|
6
|
+
import { MaskInput as z } from "./index253.js";
|
7
7
|
const D = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type"], F = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "inputmode", "name", "placeholder", "readonly", "required", "type", "value"], U = /* @__PURE__ */ V({
|
8
8
|
__name: "BaseTextInput",
|
9
9
|
props: {
|
package/dist/index53.js
CHANGED
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as b, computed as z, ref as o, onMounted as g, createElementBlock as l, openBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index243.js";
|
3
3
|
import { wait as C } from "./index135.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as s, createElementBlock as m, openBlock as u, normalizeClass as g, createElementVNode as n, renderSlot as r, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as l } from "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as l } from "./index243.js";
|
3
|
+
import { isNil as B } from "./index242.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, N = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -7,9 +7,9 @@ import p from "./index85.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import T from "./index113.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as W } from "./
|
11
|
-
import { noop as w } from "./
|
12
|
-
import { useLocale as D } from "./
|
10
|
+
import { pickBy as W } from "./index254.js";
|
11
|
+
import { noop as w } from "./index255.js";
|
12
|
+
import { useLocale as D } from "./index219.js";
|
13
13
|
const E = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index67.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, createElementBlock as o, openBlock as a, createElementVNode as t, createCommentVNode as p, renderSlot as b, createTextVNode as m, toDisplayString as u, withModifiers as d, unref as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index219.js";
|
3
3
|
const h = { class: "bb-chip" }, L = { class: "bb-chip__content" }, k = ["aria-label"], B = /* @__PURE__ */ i({
|
4
4
|
__name: "BbChip",
|
5
5
|
props: {
|
package/dist/index79.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as N, computed as R, ref as E, watch as W, createBlock as h, openBlock as k, unref as f, normalizeClass as G, withCtx as D, createElementVNode as I, normalizeStyle as J, renderSlot as m, createElementBlock as q, Fragment as F, renderList as Q, createVNode as X, mergeProps as Y, createCommentVNode as A, toDisplayString as Z, normalizeProps as x, guardReactiveProps as ee } from "vue";
|
2
|
-
import { findRightIndex as T } from "./
|
2
|
+
import { findRightIndex as T } from "./index267.js";
|
3
3
|
import { useId as te } from "./index8.js";
|
4
|
-
import { useUntil as ne } from "./
|
4
|
+
import { useUntil as ne } from "./index220.js";
|
5
5
|
import { wait as oe } from "./index135.js";
|
6
6
|
import ae from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import B from "./index85.js";
|
9
9
|
/* empty css */
|
10
|
-
import le from "./
|
10
|
+
import le from "./index227.js";
|
11
11
|
/* empty css */
|
12
|
-
import K from "./
|
12
|
+
import K from "./index268.js";
|
13
13
|
const se = ["id", "aria-labelledby", "inert"], ie = { class: "item__content" }, Ee = /* @__PURE__ */ N({
|
14
14
|
__name: "BbDropdown",
|
15
15
|
props: {
|
package/dist/index81.js
CHANGED
@@ -9,7 +9,7 @@ import z from "./index85.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import I from "./index113.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as M } from "./
|
12
|
+
import { useLocale as M } from "./index219.js";
|
13
13
|
const O = { class: "bb-dropdown-button__content" }, R = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
package/dist/index83.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, createBlock as G, openBlock as V, 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 "./index272.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index111.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("./index271.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index85.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as p, getCurrentInstance as c, onServerPrefetch as w, onBeforeMount as z, inject as _, watch as b, computed as f, createElementBlock as h, openBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index243.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index87.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, createBlock as g, openBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index270.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index90.js
CHANGED
@@ -1,22 +1,20 @@
|
|
1
|
-
import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as
|
2
|
-
import { parseSize as
|
3
|
-
import { useId as
|
4
|
-
import { useLocale as
|
5
|
-
import { useMobile as
|
6
|
-
import { useUntil as
|
1
|
+
import { defineComponent as O, mergeModels as E, useModel as P, computed as p, ref as T, watch as q, onMounted as A, createElementBlock as d, openBlock as c, withModifiers as H, normalizeStyle as K, normalizeClass as R, unref as v, createCommentVNode as y, Fragment as U, createElementVNode as l, renderSlot as s, createTextVNode as j, toDisplayString as z, nextTick as G } from "vue";
|
2
|
+
import { parseSize as J } from "./index244.js";
|
3
|
+
import { useId as D } from "./index8.js";
|
4
|
+
import { useLocale as Q } from "./index219.js";
|
5
|
+
import { useMobile as X } from "./index9.js";
|
6
|
+
import { useUntil as Y } from "./index220.js";
|
7
7
|
import { wait as h } from "./index135.js";
|
8
|
-
|
9
|
-
/* empty css */
|
10
|
-
const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
|
8
|
+
const Z = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], x = {
|
11
9
|
ref: "header",
|
12
10
|
class: "bb-offcanvas__header"
|
13
|
-
},
|
11
|
+
}, ee = { class: "bb-offcanvas__close" }, oe = ["aria-label", "disabled"], te = {
|
14
12
|
ref: "body",
|
15
13
|
class: "bb-offcanvas__body scrollbar-border"
|
16
|
-
},
|
14
|
+
}, le = {
|
17
15
|
ref: "footer",
|
18
16
|
class: "bb-offcanvas__footer"
|
19
|
-
},
|
17
|
+
}, ue = /* @__PURE__ */ O({
|
20
18
|
__name: "BbOffCanvas",
|
21
19
|
props: /* @__PURE__ */ E({
|
22
20
|
closeLabel: {},
|
@@ -39,106 +37,106 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
|
|
39
37
|
modelModifiers: {}
|
40
38
|
}),
|
41
39
|
emits: /* @__PURE__ */ E(["shown", "hidden"], ["update:modelValue"]),
|
42
|
-
setup(
|
43
|
-
const
|
44
|
-
() =>
|
45
|
-
), i = T(null), u =
|
46
|
-
() =>
|
40
|
+
setup(g, { emit: S }) {
|
41
|
+
const o = g, w = S, t = P(g, "modelValue"), { t: V } = Q(), I = p(
|
42
|
+
() => o.closeLabel || V("dialog.closeLabel").value
|
43
|
+
), i = T(null), u = Y(
|
44
|
+
() => t.value || o.eager,
|
47
45
|
{
|
48
|
-
initialValue:
|
46
|
+
initialValue: t.value || o.eager
|
49
47
|
}
|
50
|
-
), f = `title_${
|
51
|
-
if (e.key === "Escape" && (
|
48
|
+
), f = `title_${D().id.value}`, m = `description_${D().id.value}`, C = (e) => {
|
49
|
+
if (e.key === "Escape" && (o.disabled || o.persistent))
|
52
50
|
return e.preventDefault(), a.value = !0, h(200).then(() => {
|
53
51
|
a.value = !1;
|
54
52
|
}), !1;
|
55
|
-
},
|
56
|
-
var n, B,
|
53
|
+
}, k = async (e) => {
|
54
|
+
var n, B, L, M;
|
57
55
|
e ? ((n = window.globalThis) != null && n.document && !document.documentElement.style.getPropertyValue("--scrollbar-width") && (document.documentElement.style.setProperty(
|
58
56
|
"--scrollbar-width",
|
59
57
|
`${W()}px`
|
60
|
-
), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(),
|
61
|
-
var
|
62
|
-
const b = (
|
58
|
+
), document.addEventListener("keydown", C)), (B = i.value) == null || B.showModal(), o.focusTarget && G(() => {
|
59
|
+
var $;
|
60
|
+
const b = ($ = i.value) == null ? void 0 : $.querySelector(o.focusTarget);
|
63
61
|
b && b instanceof HTMLElement && b.focus();
|
64
|
-
}),
|
62
|
+
}), w("shown")) : (await h(o.transitionDuration), (L = window.globalThis) != null && L.document && document.removeEventListener("keydown", C), (M = i.value) == null || M.close(), w("hidden"));
|
65
63
|
};
|
66
|
-
q(
|
67
|
-
|
64
|
+
q(t, k), A(() => {
|
65
|
+
t.value && k(!0);
|
68
66
|
});
|
69
|
-
const
|
67
|
+
const N = p(() => _.value ? "100%" : o.size === "auto" ? "fit-content" : J(o.size, {
|
70
68
|
sm: 384,
|
71
69
|
md: 652,
|
72
70
|
lg: 896
|
73
71
|
})), r = (e) => {
|
74
|
-
if (e.preventDefault(),
|
72
|
+
if (e.preventDefault(), o.disabled || o.persistent)
|
75
73
|
return a.value = !0, h(300).then(() => {
|
76
74
|
a.value = !1;
|
77
75
|
}), !1;
|
78
|
-
|
79
|
-
}, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } =
|
80
|
-
() =>
|
76
|
+
t.value = !1;
|
77
|
+
}, a = T(!1), W = () => globalThis.document ? window.innerWidth - document.documentElement.clientWidth : 0, { isMobile: F } = X(), _ = p(
|
78
|
+
() => o.fullscreen === !0 || o.fullscreen === "mobile" && F.value
|
81
79
|
);
|
82
80
|
return (e, n) => (c(), d("dialog", {
|
83
81
|
ref_key: "dialog",
|
84
82
|
ref: i,
|
85
83
|
"aria-describedby": v(u) && e.description ? m : void 0,
|
86
84
|
"aria-labelledby": v(u) && e.title ? f : void 0,
|
87
|
-
"aria-live":
|
85
|
+
"aria-live": t.value ? "polite" : "off",
|
88
86
|
class: R([
|
89
87
|
"bb-offcanvas",
|
90
88
|
[
|
91
89
|
{
|
92
|
-
"bb-offcanvas--open":
|
93
|
-
"bb-offcanvas--fullscreen":
|
90
|
+
"bb-offcanvas--open": t.value,
|
91
|
+
"bb-offcanvas--fullscreen": _.value,
|
94
92
|
"bb-offcanvas--compact": e.compact,
|
95
93
|
"bb-offcanvas--deny-close": a.value,
|
96
|
-
[`bb-offcanvas--${
|
94
|
+
[`bb-offcanvas--${o.direction}`]: !0
|
97
95
|
},
|
98
96
|
e.overlayClasses,
|
99
97
|
e.panelClasses
|
100
98
|
].flat()
|
101
99
|
]),
|
102
|
-
inert: !
|
100
|
+
inert: !t.value,
|
103
101
|
style: K({
|
104
|
-
"--max-size":
|
105
|
-
"--transition-duration": `${
|
102
|
+
"--max-size": N.value,
|
103
|
+
"--transition-duration": `${o.transitionDuration}ms`
|
106
104
|
}),
|
107
105
|
onCancel: r,
|
108
106
|
onClick: H(r, ["self"])
|
109
107
|
}, [
|
110
108
|
v(u) ? (c(), d(U, { key: 0 }, [
|
111
|
-
|
112
|
-
|
109
|
+
l("div", x, [
|
110
|
+
s(e.$slots, "header", {
|
113
111
|
close: r,
|
114
112
|
title: e.title,
|
115
113
|
titleId: f
|
116
114
|
}, () => [
|
117
|
-
|
115
|
+
l("span", {
|
118
116
|
id: f,
|
119
117
|
class: "bb-offcanvas__title"
|
120
118
|
}, [
|
121
|
-
|
122
|
-
j(
|
119
|
+
s(e.$slots, "title", { text: e.title }, () => [
|
120
|
+
j(z(e.title), 1)
|
123
121
|
])
|
124
122
|
]),
|
125
|
-
|
123
|
+
l("span", ee, [
|
126
124
|
e.showClose ? (c(), d("button", {
|
127
125
|
key: 0,
|
128
|
-
"aria-label":
|
129
|
-
disabled:
|
126
|
+
"aria-label": I.value,
|
127
|
+
disabled: o.disabled,
|
130
128
|
type: "button",
|
131
129
|
onClick: r
|
132
130
|
}, [
|
133
|
-
|
134
|
-
n[0] || (n[0] =
|
135
|
-
|
131
|
+
s(e.$slots, "close", {}, () => [
|
132
|
+
n[0] || (n[0] = l("span", { class: "bb-offcanvas__close-icon" }, [
|
133
|
+
l("svg", {
|
136
134
|
"aria-hidden": "true",
|
137
135
|
fill: "none",
|
138
136
|
viewBox: "0 0 24 24",
|
139
137
|
xmlns: "http://www.w3.org/2000/svg"
|
140
138
|
}, [
|
141
|
-
|
139
|
+
l("path", {
|
142
140
|
d: "M23 23L1 1M23 1L1 23",
|
143
141
|
stroke: "currentColor",
|
144
142
|
"stroke-linecap": "round",
|
@@ -147,12 +145,12 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
|
|
147
145
|
])
|
148
146
|
], -1))
|
149
147
|
])
|
150
|
-
], 8,
|
148
|
+
], 8, oe)) : y("", !0)
|
151
149
|
])
|
152
150
|
])
|
153
151
|
], 512),
|
154
|
-
|
155
|
-
|
152
|
+
l("div", te, [
|
153
|
+
s(e.$slots, "description", {
|
156
154
|
descriptionId: m,
|
157
155
|
text: e.description
|
158
156
|
}, () => [
|
@@ -160,22 +158,17 @@ const te = ["aria-describedby", "aria-labelledby", "aria-live", "inert"], oe = {
|
|
160
158
|
key: 0,
|
161
159
|
id: m,
|
162
160
|
class: "bb-offcanvas__description sr-only"
|
163
|
-
},
|
161
|
+
}, z(e.description), 1)) : y("", !0)
|
164
162
|
]),
|
165
|
-
|
166
|
-
default: J(() => [
|
167
|
-
l(e.$slots, "default")
|
168
|
-
]),
|
169
|
-
_: 3
|
170
|
-
})
|
163
|
+
s(e.$slots, "default")
|
171
164
|
], 512),
|
172
|
-
|
173
|
-
|
165
|
+
l("div", le, [
|
166
|
+
s(e.$slots, "footer")
|
174
167
|
], 512)
|
175
168
|
], 64)) : y("", !0)
|
176
|
-
], 46,
|
169
|
+
], 46, Z));
|
177
170
|
}
|
178
171
|
});
|
179
172
|
export {
|
180
|
-
|
173
|
+
ue as default
|
181
174
|
};
|
package/dist/index92.js
CHANGED
@@ -3,8 +3,8 @@ import { defineComponent as V, mergeModels as W, useModel as U, computed as d, r
|
|
3
3
|
/* empty css */
|
4
4
|
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import { debounce as X } from "./
|
7
|
-
import { useLocale as H } from "./
|
6
|
+
import { debounce as X } from "./index269.js";
|
7
|
+
import { useLocale as H } from "./index219.js";
|
8
8
|
import { useRoute as J } from "./index142.js";
|
9
9
|
const K = ["aria-label"], Q = { class: "bb-pagination__page-label sr-only" }, Y = { class: "bb-pagination__page-label" }, Z = { class: "bb-pagination__page-label" }, ee = { class: "bb-pagination__page-label sr-only" }, ue = /* @__PURE__ */ V({
|
10
10
|
__name: "BbPagination",
|
package/dist/index94.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as V, ref as m, computed as g, createBlock as k, openBlock as y, unref as l, normalizeClass as D, withCtx as v, createElementVNode as d, createCommentVNode as M, renderSlot as C, toDisplayString as z, normalizeProps as I, guardReactiveProps as O, nextTick as S } from "vue";
|
2
2
|
import { useId as H } from "./index8.js";
|
3
3
|
import { useIntersectionObserver as N } from "./index137.js";
|
4
|
-
import { useLocale as U } from "./
|
5
|
-
import { useUntil as W } from "./
|
4
|
+
import { useLocale as U } from "./index219.js";
|
5
|
+
import { useUntil as W } from "./index220.js";
|
6
6
|
import q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import A from "./
|
8
|
+
import A from "./index227.js";
|
9
9
|
/* empty css */
|
10
10
|
const R = ["inert"], Z = { class: "bb-popover__close-label sr-only" }, ee = /* @__PURE__ */ V({
|
11
11
|
__name: "BbPopover",
|
package/dist/index96.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, createElementBlock as l, openBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index207.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index136.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|
package/package.json
CHANGED
package/dist/index210.js
DELETED
package/dist/index223.js
DELETED
package/dist/index225.js
DELETED
@@ -1,4 +0,0 @@
|
|
1
|
-
const n = (t) => t == null || Number.isNaN(t) || typeof t == "object" && Object.keys(t).length === 0 || typeof t == "string" && t.trim().length === 0 || t instanceof Map && [...t.keys()].length === 0 || t instanceof Set && [...t.keys()].length === 0;
|
2
|
-
export {
|
3
|
-
n as isEmpty
|
4
|
-
};
|