bitboss-ui 2.0.105 → 2.0.106
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/BbTable/BbTable.vue.d.ts +2 -7
- 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 +9 -9
- package/dist/index111.js +109 -108
- 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 +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.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/index205.js +2 -115
- package/dist/index206.js +86 -2
- package/dist/index208.js +25 -4
- package/dist/index209.js +17 -2
- package/dist/index21.js +110 -103
- package/dist/index210.js +46 -279
- package/dist/index211.js +15 -16
- package/dist/index212.js +3 -16
- package/dist/index213.js +12 -19
- package/dist/index214.js +16 -19
- package/dist/index215.js +2 -27
- package/dist/index216.js +4 -3
- package/dist/index217.js +2 -2
- package/dist/index219.js +3 -250
- package/dist/index220.js +41 -52
- package/dist/index221.js +5 -43
- package/dist/index222.js +7 -5
- package/dist/index223.js +10 -58
- package/dist/index224.js +12 -83
- package/dist/index225.js +55 -0
- package/dist/index227.js +13 -25
- package/dist/index228.js +5 -17
- package/dist/index229.js +15 -47
- package/dist/index23.js +127 -119
- package/dist/index230.js +16 -15
- package/dist/index231.js +19 -12
- package/dist/index232.js +15 -16
- package/dist/index233.js +19 -3
- package/dist/index234.js +26 -40
- package/dist/index235.js +2 -6
- package/dist/index236.js +250 -7
- package/dist/index237.js +50 -10
- package/dist/index238.js +39 -48
- package/dist/index239.js +7 -0
- package/dist/index240.js +60 -13
- package/dist/index241.js +20 -3
- package/dist/index242.js +3 -125
- package/dist/index243.js +123 -122
- package/dist/index244.js +125 -2
- package/dist/index245.js +2 -20
- package/dist/index246.js +2 -2
- package/dist/index247.js +2 -2
- package/dist/index248.js +114 -3
- package/dist/index249.js +3 -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 +3 -16
- package/dist/index262.js +17 -9
- package/dist/index263.js +8 -8
- package/dist/index264.js +28 -23
- package/dist/index265.js +4 -89
- package/dist/index266.js +433 -0
- package/dist/index267.js +2 -4
- package/dist/index268.js +88 -5
- package/dist/index269.js +7 -2
- package/dist/index27.js +1 -1
- package/dist/index270.js +11 -2
- package/dist/index271.js +3 -2
- package/dist/index273.js +7 -2
- package/dist/index274.js +200 -2
- package/dist/index275.js +281 -2
- package/dist/index276.js +6 -2
- package/dist/index277.js +2 -2
- package/dist/index278.js +2 -2
- package/dist/index279.js +2 -28
- package/dist/index280.js +2 -22
- package/dist/index282.js +2 -7
- package/dist/index283.js +2 -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 +20 -429
- package/dist/index29.js +3 -3
- package/dist/index290.js +8 -88
- package/dist/index291.js +23 -3
- package/dist/index292.js +91 -0
- package/dist/index294.js +171 -195
- package/dist/index297.js +22 -176
- package/dist/index299.js +11 -0
- package/dist/index300.js +6 -8
- package/dist/index301.js +15 -435
- package/dist/index302.js +8 -127
- package/dist/index303.js +224 -3
- package/dist/index304.js +436 -3
- package/dist/index305.js +126 -212
- package/dist/index306.js +3 -3
- package/dist/index307.js +3 -3
- package/dist/index308.js +212 -56
- package/dist/index309.js +67 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -19
- package/dist/index311.js +5 -66
- package/dist/index312.js +4 -6
- package/dist/index313.js +8 -2
- package/dist/index314.js +6 -4
- package/dist/index315.js +18 -7
- package/dist/index316.js +45 -0
- package/dist/index317.js +47 -2
- package/dist/index318.js +7 -5
- package/dist/index319.js +32 -2
- package/dist/index321.js +2 -32
- package/dist/index322.js +3 -47
- package/dist/index323.js +3 -2
- package/dist/index324.js +49 -471
- package/dist/index325.js +49 -0
- package/dist/index326.js +2 -424
- package/dist/index327.js +479 -46
- package/dist/index329.js +426 -0
- package/dist/index33.js +45 -45
- package/dist/index330.js +49 -0
- package/dist/index35.js +56 -55
- package/dist/index37.js +166 -165
- package/dist/index39.js +5 -5
- 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/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/index207.js +0 -4
- package/dist/index226.js +0 -10
- package/dist/index253.js +0 -108
- package/dist/index289.js +0 -4
- package/dist/index293.js +0 -226
- package/dist/index298.js +0 -24
- /package/dist/{index272.js → index281.js} +0 -0
- /package/dist/{index328.js → index331.js} +0 -0
package/dist/index43.js
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as j, ref as k, toRef as d, openBlock as z, createBlock as G, unref as B, withCtx as s, renderSlot as l, normalizeProps as h, guardReactiveProps as v, createVNode as R, mergeProps as w, createSlots as W } from "vue";
|
2
|
+
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import N from "./index206.js";
|
5
5
|
/* empty css */
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
import {
|
9
|
-
import {
|
10
|
-
import {
|
11
|
-
import {
|
12
|
-
import {
|
13
|
-
|
14
|
-
const pe = /* @__PURE__ */ z({
|
6
|
+
import { useItemsGetter as U } from "./index208.js";
|
7
|
+
import { useIndexById as T } from "./index209.js";
|
8
|
+
import { useBaseOptions as q } from "./index210.js";
|
9
|
+
import { useCoherence as J } from "./index211.js";
|
10
|
+
import { hash as Q } from "./index212.js";
|
11
|
+
import { useHashedWatcher as E } from "./index213.js";
|
12
|
+
import { usePrefill as X } from "./index214.js";
|
13
|
+
const ue = /* @__PURE__ */ j({
|
15
14
|
__name: "BaseSwitchGroup",
|
16
15
|
props: {
|
17
16
|
ariaDescribedby: {},
|
@@ -37,98 +36,98 @@ const pe = /* @__PURE__ */ z({
|
|
37
36
|
readonly: { type: Boolean }
|
38
37
|
},
|
39
38
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "keydown", "mousedown", "mouseup", "update:modelValue"],
|
40
|
-
setup(C, { emit:
|
41
|
-
const o = C,
|
39
|
+
setup(C, { emit: L }) {
|
40
|
+
const o = C, a = L;
|
42
41
|
if (!Array.isArray(o.modelValue))
|
43
42
|
throw new Error("Model value must be an array in checkbox group.");
|
44
|
-
const
|
45
|
-
getter:
|
43
|
+
const b = k(), r = k(!1), {
|
44
|
+
getter: u,
|
46
45
|
items: $,
|
47
|
-
loading:
|
48
|
-
} =
|
46
|
+
loading: D
|
47
|
+
} = U({
|
49
48
|
items: d(o, "items"),
|
50
49
|
debounce: 0
|
51
|
-
}),
|
52
|
-
o.enforceCoherence && !
|
53
|
-
}, { hasPrefilled:
|
50
|
+
}), c = () => {
|
51
|
+
o.enforceCoherence && !V.value && a("update:modelValue", P.value.coherent);
|
52
|
+
}, { hasPrefilled: I } = X({
|
54
53
|
onStart: !0,
|
55
54
|
currentValue: o.modelValue,
|
56
55
|
multiple: !0,
|
57
56
|
fn: async ({ prefill: e }) => {
|
58
|
-
await
|
57
|
+
await u(e, o.modelValue), c();
|
59
58
|
}
|
60
|
-
}), { data:
|
59
|
+
}), { data: y } = T({
|
61
60
|
items: d(o, "modelValue")
|
62
|
-
}), { options:
|
61
|
+
}), { options: g } = q({
|
63
62
|
disabled: d(o, "disabled"),
|
64
63
|
items: $,
|
65
64
|
itemText: o.itemText,
|
66
65
|
itemValue: o.itemValue,
|
67
66
|
max: o.max,
|
68
67
|
selectable: !0,
|
69
|
-
selectedIndexedByHash:
|
70
|
-
}),
|
71
|
-
|
68
|
+
selectedIndexedByHash: y
|
69
|
+
}), H = async (e) => {
|
70
|
+
a("update:modelValue", o.modelValue.concat(e.value));
|
72
71
|
}, S = async (e) => {
|
73
|
-
const
|
74
|
-
delete
|
75
|
-
}, { data: M } =
|
76
|
-
items:
|
72
|
+
const t = { ...y.value };
|
73
|
+
delete t[e.valueHash], a("update:modelValue", Object.values(t));
|
74
|
+
}, { data: M } = T({
|
75
|
+
items: g,
|
77
76
|
key: "valueHash"
|
78
|
-
}), { coherent:
|
77
|
+
}), { coherent: V, status: P } = J({
|
79
78
|
modelValue: d(o, "modelValue"),
|
80
79
|
multiple: !0,
|
81
|
-
iteratee: (e) => !!M.value[
|
80
|
+
iteratee: (e) => !!M.value[Q(e)]
|
82
81
|
});
|
83
82
|
let i = 0;
|
84
|
-
|
83
|
+
E(
|
85
84
|
() => o.modelValue,
|
86
85
|
async () => {
|
87
|
-
i++,
|
86
|
+
i++, V.value || (await u(!1, o.modelValue), c()), i--;
|
88
87
|
},
|
89
88
|
{
|
90
89
|
debounce: o.modelValueDebounceTime
|
91
90
|
}
|
92
|
-
),
|
91
|
+
), E(
|
93
92
|
() => [o.dependencies, o.items],
|
94
93
|
async () => {
|
95
|
-
|
94
|
+
I.value && (i++, await u(!1, o.modelValue), i === 1 && c(), i--);
|
96
95
|
},
|
97
96
|
{
|
98
97
|
debounce: o.depsDebounceTime
|
99
98
|
}
|
100
99
|
);
|
101
|
-
const
|
100
|
+
const x = (e) => {
|
102
101
|
if (o.id)
|
103
102
|
return [o.id, e.valueHash].filter(Boolean).join("-");
|
104
|
-
},
|
105
|
-
|
106
|
-
},
|
107
|
-
onBlur: (e) =>
|
108
|
-
onClick: (e) =>
|
103
|
+
}, F = (e, t) => {
|
104
|
+
a("change", e), t.selected ? S(t) : H(t);
|
105
|
+
}, O = {
|
106
|
+
onBlur: (e) => a("blur", e),
|
107
|
+
onClick: (e) => a("click", e),
|
109
108
|
onFocus: (e) => {
|
110
|
-
|
109
|
+
a("focus", e), r.value || (document.addEventListener("focusin", m, { passive: !0 }), document.addEventListener("click", p, { passive: !0 }), r.value = !0);
|
111
110
|
},
|
112
|
-
onInput: (e) =>
|
113
|
-
onKeydown: (e) =>
|
114
|
-
onMousedown: (e) =>
|
115
|
-
onMouseup: (e) =>
|
111
|
+
onInput: (e) => a("input", e),
|
112
|
+
onKeydown: (e) => a("keydown", e),
|
113
|
+
onMousedown: (e) => a("mousedown", e),
|
114
|
+
onMouseup: (e) => a("mouseup", e)
|
115
|
+
}, m = (e) => {
|
116
|
+
var t;
|
117
|
+
e.target instanceof HTMLElement && ((t = b.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
|
116
118
|
}, p = (e) => {
|
117
|
-
var
|
118
|
-
e.target instanceof HTMLElement && ((
|
119
|
-
}, f = (e) => {
|
120
|
-
var a;
|
121
|
-
e.target instanceof HTMLElement && ((a = g.value) != null && a.contains(e.target) || (t("inactive"), r.value = !1, document.removeEventListener("focusin", p), document.removeEventListener("click", f)));
|
119
|
+
var t;
|
120
|
+
e.target instanceof HTMLElement && ((t = b.value) != null && t.contains(e.target) || (a("inactive"), r.value = !1, document.removeEventListener("focusin", m), document.removeEventListener("click", p)));
|
122
121
|
};
|
123
|
-
return (e,
|
122
|
+
return (e, t) => (z(), G(N, {
|
124
123
|
class: "bb-base-switch-group",
|
125
124
|
direction: e.direction,
|
126
125
|
"has-errors": e.hasErrors,
|
127
126
|
"hide-label": e.hideLabel,
|
128
|
-
loading: !!
|
129
|
-
"loading-text": e.loadingText
|
130
|
-
"no-data-text": e.noDataText
|
131
|
-
options:
|
127
|
+
loading: !!B(D),
|
128
|
+
"loading-text": e.loadingText,
|
129
|
+
"no-data-text": e.noDataText,
|
130
|
+
options: B(g)
|
132
131
|
}, {
|
133
132
|
prepend: s(() => [
|
134
133
|
l(e.$slots, "prepend")
|
@@ -140,16 +139,16 @@ const pe = /* @__PURE__ */ z({
|
|
140
139
|
l(e.$slots, "no-data")
|
141
140
|
]),
|
142
141
|
label: s((n) => [
|
143
|
-
l(e.$slots, "label", v(
|
142
|
+
l(e.$slots, "label", h(v(n)))
|
144
143
|
]),
|
145
144
|
"option:prepend": s((n) => [
|
146
|
-
l(e.$slots, "option:prepend", v(
|
145
|
+
l(e.$slots, "option:prepend", h(v(n)))
|
147
146
|
]),
|
148
|
-
input: s(({ option: n, index:
|
149
|
-
|
150
|
-
id:
|
147
|
+
input: s(({ option: n, index: A }) => [
|
148
|
+
R(K, w({
|
149
|
+
id: x(n),
|
151
150
|
"aria-describedby": e.ariaDescribedby,
|
152
|
-
autofocus: e.autofocus && !
|
151
|
+
autofocus: e.autofocus && !A,
|
153
152
|
checked: n.selected,
|
154
153
|
color: e.color,
|
155
154
|
disabled: n.disabled,
|
@@ -157,23 +156,23 @@ const pe = /* @__PURE__ */ z({
|
|
157
156
|
name: e.name,
|
158
157
|
readonly: e.readonly,
|
159
158
|
"true-value": n.value
|
160
|
-
},
|
161
|
-
onChange: (
|
162
|
-
}),
|
159
|
+
}, O, {
|
160
|
+
onChange: (f) => F(f, n)
|
161
|
+
}), W({ _: 2 }, [
|
163
162
|
e.$slots.icon ? {
|
164
163
|
name: "icon",
|
165
|
-
fn: s((
|
164
|
+
fn: s((f) => [
|
166
165
|
l(e.$slots, "icon", w({
|
167
166
|
item: n.item,
|
168
167
|
text: n.text
|
169
|
-
},
|
168
|
+
}, f))
|
170
169
|
]),
|
171
170
|
key: "0"
|
172
171
|
} : void 0
|
173
172
|
]), 1040, ["id", "aria-describedby", "autofocus", "checked", "color", "disabled", "has-errors", "name", "readonly", "true-value", "onChange"])
|
174
173
|
]),
|
175
174
|
"option:append": s((n) => [
|
176
|
-
l(e.$slots, "option:append", v(
|
175
|
+
l(e.$slots, "option:append", h(v(n)))
|
177
176
|
]),
|
178
177
|
append: s(() => [
|
179
178
|
l(e.$slots, "append")
|
@@ -183,5 +182,5 @@ const pe = /* @__PURE__ */ z({
|
|
183
182
|
}
|
184
183
|
});
|
185
184
|
export {
|
186
|
-
|
185
|
+
ue as default
|
187
186
|
};
|
package/dist/index45.js
CHANGED
@@ -3,16 +3,16 @@ import { defineComponent as R, ref as u, computed as f, toRef as E, watch as j,
|
|
3
3
|
/* empty css */
|
4
4
|
import oe from "./index128.js";
|
5
5
|
/* empty css */
|
6
|
-
import { last as ae } from "./
|
7
|
-
import { useBaseOptions as ne } from "./
|
8
|
-
import { useIndexById as le } from "./
|
9
|
-
import re from "./
|
6
|
+
import { last as ae } from "./index235.js";
|
7
|
+
import { useBaseOptions as ne } from "./index210.js";
|
8
|
+
import { useIndexById as le } from "./index209.js";
|
9
|
+
import re from "./index252.js";
|
10
10
|
/* empty css */
|
11
|
-
import ie from "./
|
11
|
+
import ie from "./index254.js";
|
12
12
|
/* empty css */
|
13
|
-
import ue from "./
|
13
|
+
import ue from "./index225.js";
|
14
14
|
/* empty css */
|
15
|
-
import se from "./
|
15
|
+
import se from "./index227.js";
|
16
16
|
const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], $e = /* @__PURE__ */ R({
|
17
17
|
__name: "BaseTag",
|
18
18
|
props: {
|
package/dist/index47.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as w, ref as y, computed as u, onMounted as g, watch as B, nextTick as x, openBlock as V, createBlock as k, normalizeClass as $, withCtx as t, renderSlot as r, createVNode as i, createElementVNode as C, mergeProps as T } from "vue";
|
2
|
-
import v from "./
|
3
|
-
import E from "./
|
2
|
+
import v from "./index227.js";
|
3
|
+
import E from "./index225.js";
|
4
4
|
/* empty css */
|
5
5
|
import G from "./index128.js";
|
6
6
|
/* empty css */
|
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as c, openBlock as b, createElementBlock as f, Fragment as y, createVNode as r, normalizeClass as h, withCtx as n, renderSlot as t, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index225.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index227.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/index53.js
CHANGED
@@ -1,15 +1,16 @@
|
|
1
|
-
import { defineComponent as h, ref as
|
2
|
-
import
|
1
|
+
import { defineComponent as h, ref as k, watch as w, openBlock as s, createBlock as r, normalizeClass as C, withCtx as V, createElementVNode as t, createCommentVNode as i, createElementBlock as y, unref as z, renderSlot as n, normalizeProps as c, guardReactiveProps as m, createTextVNode as d, toDisplayString as u } from "vue";
|
2
|
+
import B from "./index126.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import L from "./index127.js";
|
5
5
|
/* empty css */
|
6
|
-
|
6
|
+
import { useLocale as g } from "./index224.js";
|
7
|
+
const $ = {
|
7
8
|
class: "bb-alert__inner-container",
|
8
9
|
role: "alert"
|
9
|
-
},
|
10
|
+
}, S = { class: "bb-alert__icon-container" }, N = { class: "bb-alert__content" }, E = ["aria-label"], M = { class: "bb-alert__title" }, P = { class: "bb-alert__text" }, x = /* @__PURE__ */ h({
|
10
11
|
__name: "BbAlert",
|
11
12
|
props: {
|
12
|
-
closeLabel: {
|
13
|
+
closeLabel: {},
|
13
14
|
showClose: { type: Boolean },
|
14
15
|
text: {},
|
15
16
|
theme: { default: "default" },
|
@@ -20,40 +21,40 @@ const B = {
|
|
20
21
|
},
|
21
22
|
emits: ["update:modelValue"],
|
22
23
|
setup(b, { emit: p }) {
|
23
|
-
const l = b, _ = p, o =
|
24
|
+
const l = b, _ = p, { t: f } = g(), o = k(
|
24
25
|
l.modelValue === void 0 ? !0 : !!l.modelValue
|
25
26
|
);
|
26
|
-
|
27
|
+
w(
|
27
28
|
() => l.modelValue,
|
28
29
|
(e) => {
|
29
30
|
o.value !== !!e && (o.value = !!e);
|
30
31
|
}
|
31
32
|
);
|
32
|
-
const
|
33
|
+
const v = () => {
|
33
34
|
o.value = !1, _("update:modelValue", !1);
|
34
35
|
};
|
35
|
-
return (e, a) => (s(),
|
36
|
+
return (e, a) => (s(), r(B, {
|
36
37
|
class: C(["bb-alert", { [`bb-alert--${e.theme}`]: e.theme }]),
|
37
38
|
"model-value": o.value
|
38
39
|
}, {
|
39
|
-
default:
|
40
|
-
t("div",
|
41
|
-
t("div",
|
42
|
-
e.icon ? (s(),
|
40
|
+
default: V(() => [
|
41
|
+
t("div", $, [
|
42
|
+
t("div", S, [
|
43
|
+
e.icon ? (s(), r(L, {
|
43
44
|
key: 0,
|
44
45
|
class: "bb-alert__icon",
|
45
46
|
size: e.iconSize,
|
46
47
|
type: e.icon
|
47
|
-
}, null, 8, ["size", "type"])) :
|
48
|
+
}, null, 8, ["size", "type"])) : i("", !0)
|
48
49
|
]),
|
49
|
-
t("div",
|
50
|
-
e.showClose ? (s(),
|
50
|
+
t("div", N, [
|
51
|
+
e.showClose ? (s(), y("button", {
|
51
52
|
key: 0,
|
52
|
-
"aria-label": e.closeLabel,
|
53
|
+
"aria-label": e.closeLabel || z(f)("common.closeLabel").value,
|
53
54
|
block: "",
|
54
55
|
class: "bb-alert__close",
|
55
56
|
type: "button",
|
56
|
-
onClick:
|
57
|
+
onClick: v
|
57
58
|
}, a[0] || (a[0] = [
|
58
59
|
t("svg", {
|
59
60
|
fill: "none",
|
@@ -67,15 +68,15 @@ const B = {
|
|
67
68
|
"stroke-width": "2"
|
68
69
|
})
|
69
70
|
], -1)
|
70
|
-
]), 8,
|
71
|
-
t("div",
|
72
|
-
n(e.$slots, "title", c(
|
73
|
-
|
71
|
+
]), 8, E)) : i("", !0),
|
72
|
+
t("div", M, [
|
73
|
+
n(e.$slots, "title", c(m({ text: e.title })), () => [
|
74
|
+
d(u(e.title), 1)
|
74
75
|
])
|
75
76
|
]),
|
76
|
-
t("div",
|
77
|
-
n(e.$slots, "text", c(
|
78
|
-
|
77
|
+
t("div", P, [
|
78
|
+
n(e.$slots, "text", c(m({ text: e.text })), () => [
|
79
|
+
d(u(e.text), 1)
|
79
80
|
])
|
80
81
|
])
|
81
82
|
])
|
@@ -86,5 +87,5 @@ const B = {
|
|
86
87
|
}
|
87
88
|
});
|
88
89
|
export {
|
89
|
-
|
90
|
+
x as default
|
90
91
|
};
|
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 "./index215.js";
|
3
3
|
import { wait as C } from "./index130.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 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 "./
|
3
|
-
import { isNil as B } from "./
|
2
|
+
import { isCssColor as r } from "./index215.js";
|
3
|
+
import { isNil as B } from "./index258.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
6
6
|
props: {
|
package/dist/index61.js
CHANGED
@@ -1,18 +1,19 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as g, ref as v, computed as c, useAttrs as B, toRef as k, openBlock as t, createBlock as a, unref as l, mergeProps as C, withCtx as h, createVNode as L, createCommentVNode as r, createElementVNode as S, normalizeClass as x, renderSlot as V, createTextVNode as F, toDisplayString as d, createElementBlock as N } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import P from "./index13.js";
|
5
5
|
/* empty css */
|
6
|
-
import
|
6
|
+
import s from "./index127.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import T from "./index129.js";
|
9
9
|
/* empty css */
|
10
|
-
import { pickBy as $ } from "./
|
11
|
-
import { noop as A } from "./
|
12
|
-
|
10
|
+
import { pickBy as $ } from "./index259.js";
|
11
|
+
import { noop as A } from "./index260.js";
|
12
|
+
import { useLocale as W } from "./index224.js";
|
13
|
+
const w = {
|
13
14
|
key: 2,
|
14
15
|
class: "bb-button__loading-label sr-only"
|
15
|
-
},
|
16
|
+
}, M = /* @__PURE__ */ g({
|
16
17
|
__name: "BbButton",
|
17
18
|
props: {
|
18
19
|
autoLoading: { type: Boolean },
|
@@ -49,19 +50,19 @@ const T = {
|
|
49
50
|
to: {},
|
50
51
|
type: {}
|
51
52
|
},
|
52
|
-
setup(
|
53
|
-
const e =
|
53
|
+
setup(u) {
|
54
|
+
const e = u, { t: b } = W(), i = v(0), n = c(
|
54
55
|
() => e.loading || !!i.value && e.autoLoading
|
55
|
-
),
|
56
|
+
), m = c(() => e.disabled), { onClick: y = A } = B(), f = async (o) => {
|
56
57
|
if (o.stopImmediatePropagation(), n.value && e.disabledWhileLoading) {
|
57
58
|
e.type === "submit" && o.preventDefault();
|
58
59
|
return;
|
59
60
|
}
|
60
|
-
i.value++, await
|
61
|
-
},
|
61
|
+
i.value++, await y(o), i.value--;
|
62
|
+
}, _ = k(() => ({
|
62
63
|
...$(
|
63
64
|
e,
|
64
|
-
(o,
|
65
|
+
(o, p) => ![
|
65
66
|
"append:icon",
|
66
67
|
"disabled",
|
67
68
|
"autoLoading",
|
@@ -69,49 +70,49 @@ const T = {
|
|
69
70
|
"icon",
|
70
71
|
"loading",
|
71
72
|
"prepend:icon"
|
72
|
-
].includes(
|
73
|
+
].includes(p)
|
73
74
|
)
|
74
75
|
}));
|
75
|
-
return (o,
|
76
|
+
return (o, p) => (t(), a(l(P), C(_.value, {
|
76
77
|
"aria-disabled": n.value ? !0 : void 0,
|
77
78
|
class: {
|
78
79
|
"bb-button": !0,
|
79
80
|
"bb-button--loading": n.value,
|
80
81
|
"bb-button--icon": !!o.icon
|
81
82
|
},
|
82
|
-
disabled:
|
83
|
+
disabled: m.value,
|
83
84
|
tabindex: n.value ? -1 : void 0,
|
84
|
-
onClick:
|
85
|
+
onClick: f
|
85
86
|
}), {
|
86
|
-
default:
|
87
|
-
|
88
|
-
e.icon ? (t(), a(
|
87
|
+
default: h(() => [
|
88
|
+
L(l(T), { class: "bb-button__spinner" }),
|
89
|
+
e.icon ? (t(), a(s, {
|
89
90
|
key: 0,
|
90
91
|
class: "bb-button__icon",
|
91
92
|
type: e.icon
|
92
|
-
}, null, 8, ["type"])) : e["prepend:icon"] ? (t(), a(
|
93
|
+
}, null, 8, ["type"])) : e["prepend:icon"] ? (t(), a(s, {
|
93
94
|
key: 1,
|
94
95
|
class: "bb-button__prepend-icon",
|
95
96
|
type: e["prepend:icon"]
|
96
|
-
}, null, 8, ["type"])) :
|
97
|
-
|
98
|
-
class:
|
97
|
+
}, null, 8, ["type"])) : r("", !0),
|
98
|
+
S("span", {
|
99
|
+
class: x(["bb-button__content", { "sr-only": !!o.icon }])
|
99
100
|
}, [
|
100
|
-
|
101
|
-
|
101
|
+
V(o.$slots, "default", {}, () => [
|
102
|
+
F(d(o.text), 1)
|
102
103
|
])
|
103
104
|
], 2),
|
104
|
-
n.value ? (t(),
|
105
|
-
!o.icon && e["append:icon"] ? (t(), a(
|
105
|
+
n.value ? (t(), N("span", w, d(l(b)("common.loadingText")), 1)) : r("", !0),
|
106
|
+
!o.icon && e["append:icon"] ? (t(), a(s, {
|
106
107
|
key: 3,
|
107
108
|
class: "bb-button__append-icon",
|
108
109
|
type: e["append:icon"]
|
109
|
-
}, null, 8, ["type"])) :
|
110
|
+
}, null, 8, ["type"])) : r("", !0)
|
110
111
|
]),
|
111
112
|
_: 3
|
112
113
|
}, 16, ["aria-disabled", "class", "disabled", "tabindex"]));
|
113
114
|
}
|
114
115
|
});
|
115
116
|
export {
|
116
|
-
|
117
|
+
M as default
|
117
118
|
};
|
package/dist/index75.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as T, mergeProps as B, createElementVNode as H, renderSlot as w, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
|
2
|
-
import { findRightIndex as I } from "./
|
2
|
+
import { findRightIndex as I } from "./index290.js";
|
3
3
|
import { useId as ne } from "./index8.js";
|
4
4
|
import { wait as oe } from "./index130.js";
|
5
5
|
import { useIntersectionObserver as ae } from "./index132.js";
|
6
6
|
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import V from "./
|
9
|
-
import se from "./
|
8
|
+
import V from "./index291.js";
|
9
|
+
import se from "./index292.js";
|
10
10
|
/* empty css */
|
11
11
|
import j from "./index127.js";
|
12
12
|
/* empty css */
|