bitboss-ui 2.0.117 → 2.0.119
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/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +15 -3
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +29 -367
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +76 -89
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +75 -89
- package/dist/components/BbRows/BbRows.vue.d.ts +70 -85
- package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -10
- package/dist/components/BbTable/BbTable.vue.d.ts +63 -91
- package/dist/components/BbTable/types.d.ts +46 -27
- package/dist/components/ListBox.vue.d.ts +40 -44
- package/dist/index100.js +91 -82
- package/dist/index101.js +7 -16
- package/dist/index111.js +235 -211
- package/dist/index119.js +2 -2
- package/dist/index121.js +5 -5
- package/dist/index123.js +1 -1
- package/dist/index125.js +1 -1
- 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 +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index207.js +124 -63
- package/dist/index208.js +7 -0
- package/dist/index209.js +125 -13
- package/dist/index21.js +16 -16
- package/dist/index210.js +15 -19
- package/dist/index211.js +16 -4
- package/dist/index212.js +19 -13
- package/dist/index213.js +15 -3
- package/dist/index214.js +2 -126
- package/dist/index215.js +2 -5
- package/dist/index216.js +40 -124
- package/dist/index217.js +13 -16
- package/dist/index218.js +19 -15
- package/dist/index219.js +6 -19
- package/dist/index220.js +15 -15
- package/dist/index221.js +65 -2
- package/dist/index223.js +12 -40
- package/dist/index224.js +5 -6
- package/dist/index225.js +2 -15
- package/dist/index226.js +369 -5
- package/dist/index227.js +4 -2
- package/dist/index228.js +17 -367
- package/dist/index229.js +27 -86
- package/dist/index23.js +19 -19
- package/dist/index230.js +5 -0
- package/dist/index231.js +8 -25
- package/dist/index232.js +250 -17
- package/dist/index233.js +50 -49
- package/dist/index234.js +44 -15
- package/dist/index235.js +5 -3
- package/dist/index236.js +60 -12
- package/dist/index237.js +86 -16
- package/dist/index239.js +25 -4
- package/dist/index240.js +17 -2
- package/dist/index241.js +50 -18
- package/dist/index242.js +15 -27
- package/dist/index243.js +12 -8
- package/dist/index244.js +16 -250
- package/dist/index245.js +2 -52
- package/dist/index246.js +4 -44
- package/dist/index247.js +2 -5
- package/dist/index248.js +3 -60
- package/dist/index249.js +7 -3
- package/dist/index25.js +7 -7
- package/dist/index250.js +3 -7
- package/dist/index251.js +106 -2
- package/dist/index253.js +100 -2
- package/dist/index255.js +17 -105
- package/dist/index256.js +14 -0
- package/dist/index257.js +197 -83
- package/dist/index258.js +4 -0
- package/dist/index259.js +2 -12
- package/dist/index262.js +3 -3
- package/dist/index266.js +3 -3
- package/dist/index269.js +280 -223
- package/dist/index27.js +1 -1
- package/dist/index270.js +6 -3
- package/dist/index271.js +4 -0
- package/dist/index272.js +2 -7
- package/dist/index273.js +2 -176
- package/dist/index274.js +2 -7
- package/dist/index275.js +2 -11
- package/dist/index276.js +2 -281
- package/dist/index277.js +125 -5
- package/dist/index278.js +431 -2
- package/dist/index279.js +176 -2
- package/dist/index280.js +2 -2
- package/dist/index281.js +3 -2
- package/dist/index283.js +7 -2
- package/dist/index284.js +21 -125
- package/dist/index286.js +7 -2
- package/dist/index287.js +11 -22
- package/dist/index288.js +438 -0
- package/dist/index289.js +127 -3
- package/dist/index29.js +2 -2
- package/dist/index290.js +197 -14
- package/dist/index291.js +4 -9
- package/dist/index293.js +3 -4
- package/dist/index294.js +15 -434
- package/dist/index295.js +8 -126
- package/dist/index296.js +2 -200
- package/dist/index298.js +2 -2
- package/dist/index299.js +1 -1
- package/dist/index300.js +1 -1
- package/dist/index301.js +1 -1
- package/dist/index302.js +21 -1
- package/dist/index304.js +91 -0
- package/dist/index306.js +218 -83
- package/dist/index307.js +1 -1
- package/dist/index308.js +1 -1
- package/dist/index309.js +2 -214
- package/dist/index31.js +2 -2
- package/dist/index311.js +5 -3
- package/dist/index312.js +67 -3
- package/dist/index313.js +3 -58
- package/dist/index314.js +3 -5
- package/dist/index315.js +56 -65
- package/dist/index316.js +4 -6
- package/dist/index317.js +7 -18
- package/dist/index318.js +7 -3
- package/dist/index319.js +1 -1
- package/dist/index320.js +1 -1
- package/dist/index321.js +4 -53
- package/dist/index322.js +28 -28
- package/dist/index323.js +53 -5
- package/dist/index324.js +3 -8
- package/dist/index325.js +6 -6
- package/dist/index326.js +18 -3
- package/dist/index328.js +1 -1
- package/dist/index33.js +8 -8
- package/dist/index331.js +1 -1
- package/dist/index35.js +4 -4
- package/dist/index37.js +176 -175
- package/dist/index39.js +4 -4
- 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 +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +1 -1
- package/dist/index75.js +35 -33
- package/dist/index77.js +54 -50
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +1 -1
- package/dist/index88.js +3 -3
- package/dist/types/ColumnName.d.ts +4 -0
- package/dist/types/Option.d.ts +2 -2
- package/dist/types/PrefixWith.d.ts +1 -0
- package/package.json +1 -1
- package/dist/index222.js +0 -4
- package/dist/index238.js +0 -4
- package/dist/index252.js +0 -4
- package/dist/index254.js +0 -20
- package/dist/index282.js +0 -4
- package/dist/index285.js +0 -433
- package/dist/index303.js +0 -24
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 "./index128.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 "./index215.js";
|
7
|
+
import { useBaseOptions as ne } from "./index241.js";
|
8
|
+
import { useIndexById as re } from "./index240.js";
|
9
|
+
import ie from "./index251.js";
|
10
10
|
/* empty css */
|
11
|
-
import ue from "./
|
11
|
+
import ue from "./index253.js";
|
12
12
|
/* empty css */
|
13
|
-
import se from "./
|
13
|
+
import se from "./index221.js";
|
14
14
|
/* empty css */
|
15
|
-
import de from "./
|
16
|
-
import { isEmpty as pe } from "./
|
15
|
+
import de from "./index223.js";
|
16
|
+
import { isEmpty as pe } from "./index225.js";
|
17
17
|
const ce = { class: "bb-base-tag__input-container" }, me = ["id", "aria-describedby", "autocomplete", "autofocus", "disabled", "placeholder", "readonly", "required", "onKeydown"], Le = /* @__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, openBlock as $, createBlock as k, normalizeClass as C, withCtx as r, renderSlot as t, createVNode as i, unref as T, createElementVNode as v, mergeProps as x } from "vue";
|
2
|
-
import E from "./
|
3
|
-
import G from "./
|
2
|
+
import E from "./index223.js";
|
3
|
+
import G from "./index221.js";
|
4
4
|
/* empty css */
|
5
5
|
import M from "./index128.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 r, normalizeClass as B, withCtx as n, renderSlot as l, unref as g, createElementVNode as p, mergeProps as h } from "vue";
|
2
|
-
import $ from "./
|
2
|
+
import $ from "./index221.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index223.js";
|
5
5
|
import { isNotNil as C } from "./index134.js";
|
6
6
|
const V = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], M = /* @__PURE__ */ m({
|
7
7
|
__name: "BaseTextInput",
|
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, openBlock as l, createElementBlock as i, normalizeProps as _, guardReactiveProps as h, renderSlot as k } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
2
|
+
import { isCssColor as y } from "./index245.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 "./index245.js";
|
3
|
+
import { isNil as B } from "./index259.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
@@ -9,7 +9,7 @@ import T from "./index129.js";
|
|
9
9
|
/* empty css */
|
10
10
|
import { pickBy as $ } from "./index260.js";
|
11
11
|
import { noop as A } from "./index261.js";
|
12
|
-
import { useLocale as W } from "./
|
12
|
+
import { useLocale as W } from "./index217.js";
|
13
13
|
const w = {
|
14
14
|
key: 2,
|
15
15
|
class: "bb-button__loading-label sr-only"
|
package/dist/index75.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { defineComponent as X, computed as
|
1
|
+
import { defineComponent as X, computed as F, ref as g, openBlock as $, createElementBlock as D, mergeProps as A, createElementVNode as H, renderSlot as y, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as B, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as j, toDisplayString as te } from "vue";
|
2
2
|
import { findRightIndex as I } from "./index264.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
|
8
|
+
import N from "./index265.js";
|
9
9
|
import se from "./index266.js";
|
10
10
|
/* empty css */
|
11
|
-
import
|
11
|
+
import V from "./index127.js";
|
12
12
|
/* empty css */
|
13
13
|
const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
14
14
|
__name: "BbDropdown",
|
@@ -28,25 +28,25 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
28
28
|
width: { default: 200 }
|
29
29
|
},
|
30
30
|
setup(z) {
|
31
|
-
const r = z, u = r.id ?? `bb_${ne().id.value}`, m =
|
31
|
+
const r = z, u = r.id ?? `bb_${ne().id.value}`, m = F(() => {
|
32
32
|
let e = r.items.findIndex((t) => !t.disabled), o = I(
|
33
33
|
r.items,
|
34
34
|
(t) => !t.disabled
|
35
35
|
);
|
36
36
|
return r.items.map((t, n) => {
|
37
|
-
const i = `${u}-item-${t.key}`, { onClick: q, ...
|
37
|
+
const i = `${u}-item-${t.key}`, { onClick: q, ...C } = t, J = async () => {
|
38
38
|
await b();
|
39
39
|
const s = document.querySelector(`#${u}`);
|
40
40
|
if (s) s instanceof HTMLElement && s.focus();
|
41
41
|
else return;
|
42
42
|
q && q();
|
43
|
-
},
|
43
|
+
}, Q = (s) => {
|
44
44
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
45
45
|
if (!a.value) return;
|
46
46
|
if (s.key === "ArrowDown") {
|
47
47
|
if (s.preventDefault(), a.value && n !== o) {
|
48
48
|
const d = a.value.querySelector(
|
49
|
-
|
49
|
+
N.map((w) => `#${i} ~ ${w}`).join(",")
|
50
50
|
);
|
51
51
|
d && d instanceof HTMLElement && d.focus();
|
52
52
|
}
|
@@ -59,7 +59,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
59
59
|
}
|
60
60
|
} else if (s.key === "Tab") {
|
61
61
|
if (n === o && !s.shiftKey) {
|
62
|
-
const d =
|
62
|
+
const d = N.join(","), w = Array.from(
|
63
63
|
document.querySelectorAll(d)
|
64
64
|
), k = w.findIndex(
|
65
65
|
(T) => T.id === u
|
@@ -75,14 +75,16 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
75
75
|
}
|
76
76
|
};
|
77
77
|
return {
|
78
|
-
...
|
79
|
-
|
78
|
+
...C,
|
79
|
+
original: t,
|
80
|
+
key: t.key.split(/\W+/g).join("_").toLowerCase(),
|
81
|
+
disabled: C.disabled || r.disabled,
|
80
82
|
id: i,
|
81
|
-
onClick:
|
82
|
-
onKeydown:
|
83
|
+
onClick: J,
|
84
|
+
onKeydown: Q
|
83
85
|
};
|
84
86
|
});
|
85
|
-
}), v =
|
87
|
+
}), v = g(), a = g();
|
86
88
|
ae(
|
87
89
|
v,
|
88
90
|
([{ intersectionRatio: e }]) => {
|
@@ -90,7 +92,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
90
92
|
},
|
91
93
|
{ threshold: [0, 1] }
|
92
94
|
);
|
93
|
-
const c =
|
95
|
+
const c = g(!1), l = g(!1), p = g(!1), f = g(!0), R = () => {
|
94
96
|
c.value || p.value || (l.value ? b() : L());
|
95
97
|
}, U = async (e) => {
|
96
98
|
let o = r.items.findIndex((n) => !n.disabled), t = I(
|
@@ -134,23 +136,23 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
134
136
|
}
|
135
137
|
b();
|
136
138
|
}
|
137
|
-
},
|
138
|
-
|
139
|
+
}, W = g(!1), L = async () => {
|
140
|
+
W.value = !0, await oe(50), l.value = !0, document.addEventListener("click", M, { passive: !0 }), document.addEventListener("focusin", S, { passive: !0 }), document.addEventListener("keydown", _, { passive: !0 });
|
139
141
|
}, b = async () => {
|
140
142
|
l.value = !1, document.removeEventListener("click", M), document.removeEventListener("focusin", S), document.removeEventListener("keydown", _);
|
141
|
-
},
|
143
|
+
}, G = F(() => ({
|
142
144
|
class: {
|
143
145
|
"bb-dropdown--block": r.block,
|
144
146
|
[`bb-dropdown--${r.theme}`]: r.theme
|
145
147
|
}
|
146
148
|
}));
|
147
|
-
return (e, o) => ($(), D("span",
|
149
|
+
return (e, o) => ($(), D("span", A({ class: "bb-dropdown" }, G.value), [
|
148
150
|
H("span", {
|
149
151
|
ref_key: "wrapper",
|
150
152
|
ref: v,
|
151
153
|
class: "bb-dropdown__wrapper"
|
152
154
|
}, [
|
153
|
-
|
155
|
+
y(e.$slots, "activator", Y(Z({
|
154
156
|
props: {
|
155
157
|
"aria-expanded": l.value,
|
156
158
|
"aria-controls": `menu_${h(u)}`,
|
@@ -167,7 +169,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
167
169
|
placement: e.placement
|
168
170
|
})))
|
169
171
|
], 512),
|
170
|
-
|
172
|
+
B(se, {
|
171
173
|
"arrow-padding": e.arrowPadding,
|
172
174
|
"base-class": "bb-dropdown",
|
173
175
|
"container-attributes": {
|
@@ -192,7 +194,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
192
194
|
class: "bb-dropdown__items-container",
|
193
195
|
style: x({ width: `${e.width}px` })
|
194
196
|
}, [
|
195
|
-
|
197
|
+
y(e.$slots, "prepend", {
|
196
198
|
closed: f.value,
|
197
199
|
closing: p.value,
|
198
200
|
disabled: e.disabled,
|
@@ -203,7 +205,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
203
205
|
($(!0), D(K, null, ee(m.value, (t, n) => ($(), D(K, {
|
204
206
|
key: t.key
|
205
207
|
}, [
|
206
|
-
|
208
|
+
y(e.$slots, "item:prepend", {
|
207
209
|
closed: f.value,
|
208
210
|
closing: p.value,
|
209
211
|
disabled: t.disabled,
|
@@ -214,7 +216,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
214
216
|
placement: e.placement,
|
215
217
|
text: t.text
|
216
218
|
}),
|
217
|
-
|
219
|
+
B(le, A({
|
218
220
|
"aria-role": "menuitem",
|
219
221
|
class: ["bb-dropdown__item", {
|
220
222
|
"bb-dropdown__item--first": n === 0,
|
@@ -224,45 +226,45 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
224
226
|
ref_for: !0
|
225
227
|
}, t), {
|
226
228
|
default: O(() => [
|
227
|
-
|
229
|
+
y(e.$slots, t.key, {
|
228
230
|
closed: f.value,
|
229
231
|
closing: p.value,
|
230
232
|
disabled: t.disabled,
|
231
233
|
index: n,
|
232
|
-
item: t,
|
234
|
+
item: t.original,
|
233
235
|
open: l.value,
|
234
236
|
opening: c.value,
|
235
237
|
placement: e.placement,
|
236
238
|
text: t.text
|
237
239
|
}, () => [
|
238
|
-
|
240
|
+
y(e.$slots, "item", {
|
239
241
|
closed: f.value,
|
240
242
|
closing: p.value,
|
241
243
|
disabled: t.disabled,
|
242
244
|
index: n,
|
243
|
-
item: t,
|
245
|
+
item: t.original,
|
244
246
|
open: l.value,
|
245
247
|
opening: c.value,
|
246
248
|
placement: e.placement,
|
247
249
|
text: t.text
|
248
250
|
}, () => [
|
249
|
-
t["prepend:icon"] ? ($(), P(
|
251
|
+
t["prepend:icon"] ? ($(), P(V, {
|
250
252
|
key: 0,
|
251
253
|
class: "item__prepend-icon",
|
252
254
|
type: t["prepend:icon"]
|
253
|
-
}, null, 8, ["type"])) :
|
255
|
+
}, null, 8, ["type"])) : j("", !0),
|
254
256
|
H("span", ie, te(t.text), 1),
|
255
|
-
t["append:icon"] ? ($(), P(
|
257
|
+
t["append:icon"] ? ($(), P(V, {
|
256
258
|
key: 1,
|
257
259
|
class: "item__append-icon",
|
258
260
|
type: t["append:icon"]
|
259
|
-
}, null, 8, ["type"])) :
|
261
|
+
}, null, 8, ["type"])) : j("", !0)
|
260
262
|
])
|
261
263
|
])
|
262
264
|
]),
|
263
265
|
_: 2
|
264
266
|
}, 1040, ["class"]),
|
265
|
-
|
267
|
+
y(e.$slots, "item:append", {
|
266
268
|
closed: f.value,
|
267
269
|
closing: p.value,
|
268
270
|
disabled: t.disabled,
|
@@ -274,7 +276,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
274
276
|
text: t.text
|
275
277
|
})
|
276
278
|
], 64))), 128)),
|
277
|
-
|
279
|
+
y(e.$slots, "append", {
|
278
280
|
closed: f.value,
|
279
281
|
closing: p.value,
|
280
282
|
disabled: e.disabled,
|
package/dist/index77.js
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import
|
1
|
+
import { defineComponent as j, ref as z, computed as y, openBlock as l, createElementBlock as L, normalizeClass as E, createVNode as u, mergeProps as P, withCtx as n, unref as d, createBlock as D, createCommentVNode as v, createElementVNode as m, toDisplayString as _, createSlots as I, renderSlot as a, normalizeProps as r, guardReactiveProps as i, renderList as M } from "vue";
|
2
|
+
import W from "./index13.js";
|
3
3
|
/* empty css */
|
4
|
-
import
|
4
|
+
import R from "./index75.js";
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
8
|
-
import
|
8
|
+
import N from "./index127.js";
|
9
9
|
/* empty css */
|
10
|
-
import
|
10
|
+
import T from "./index129.js";
|
11
11
|
/* empty css */
|
12
|
-
import { useLocale as
|
12
|
+
import { useLocale as Z } from "./index217.js";
|
13
13
|
const q = { class: "bb-dropdown-button__content" }, A = {
|
14
14
|
key: 1,
|
15
15
|
class: "bb-dropdown-button__loading-label sr-only"
|
16
|
-
}, F = { class: "bb-dropdown-button__dropdown-label sr-only" },
|
16
|
+
}, F = { class: "bb-dropdown-button__dropdown-label sr-only" }, to = /* @__PURE__ */ j({
|
17
17
|
__name: "BbDropdownButton",
|
18
18
|
props: {
|
19
19
|
arrowPadding: {},
|
@@ -34,84 +34,88 @@ const q = { class: "bb-dropdown-button__content" }, A = {
|
|
34
34
|
loading: { type: Boolean },
|
35
35
|
"prepend:icon": {}
|
36
36
|
},
|
37
|
-
setup(
|
38
|
-
const
|
39
|
-
() =>
|
40
|
-
),
|
41
|
-
w.value &&
|
42
|
-
},
|
43
|
-
() =>
|
37
|
+
setup(S) {
|
38
|
+
const t = S, { t: b } = Z(), c = z(0), w = y(
|
39
|
+
() => t.loading || !!c.value && t.autoLoading
|
40
|
+
), V = (o) => async (...s) => {
|
41
|
+
w.value && t.disabledWhileLoading || (c.value++, await o(...s), c.value--);
|
42
|
+
}, f = y(
|
43
|
+
() => t.items.map((o) => o.onClick ? {
|
44
44
|
...o,
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
key: o.key.split(/\W+/g).join("_").toLowerCase(),
|
46
|
+
onClick: V(o.onClick)
|
47
|
+
} : {
|
48
|
+
...o,
|
49
|
+
key: o.key.split(/\W+/g).join("_").toLowerCase()
|
50
|
+
})
|
51
|
+
), k = y(() => {
|
52
|
+
const o = { ...f.value[0] };
|
53
|
+
return o.disabled = o.disabled || t.disabled, o;
|
50
54
|
});
|
51
55
|
return (o, s) => (l(), L("span", {
|
52
|
-
class:
|
56
|
+
class: E(["bb-dropdown-button", {
|
53
57
|
"bb-dropdown-button--block": o.block,
|
54
58
|
"bb-dropdown-button--loading": w.value,
|
55
59
|
[`bb-dropdown-button--${o.theme}`]: !0
|
56
60
|
}])
|
57
61
|
}, [
|
58
|
-
u(
|
59
|
-
default:
|
60
|
-
u(d(
|
61
|
-
|
62
|
+
u(W, P(k.value, { class: "bb-dropdown-button__main-btn" }), {
|
63
|
+
default: n(() => [
|
64
|
+
u(d(T), { class: "bb-dropdown-button__spinner" }),
|
65
|
+
t["prepend:icon"] ? (l(), D(d(N), {
|
62
66
|
key: 0,
|
63
67
|
class: "bb-dropdown-button__prepend-icon",
|
64
|
-
type:
|
68
|
+
type: t["prepend:icon"]
|
65
69
|
}, null, 8, ["type"])) : v("", !0),
|
66
|
-
m("span", q,
|
67
|
-
w.value ? (l(), L("span", A,
|
68
|
-
|
70
|
+
m("span", q, _(k.value.text), 1),
|
71
|
+
w.value ? (l(), L("span", A, _(d(b)("common.loadingText").value), 1)) : v("", !0),
|
72
|
+
t["append:icon"] ? (l(), D(d(N), {
|
69
73
|
key: 2,
|
70
74
|
class: "bb-dropdown-button__append-icon",
|
71
|
-
type:
|
75
|
+
type: t["append:icon"]
|
72
76
|
}, null, 8, ["type"])) : v("", !0)
|
73
77
|
]),
|
74
78
|
_: 1
|
75
79
|
}, 16),
|
76
|
-
u(
|
80
|
+
u(R, {
|
77
81
|
id: o.id,
|
78
82
|
"arrow-padding": o.arrowPadding,
|
79
83
|
disabled: o.disabled,
|
80
84
|
eager: o.eager,
|
81
|
-
items:
|
85
|
+
items: f.value,
|
82
86
|
offset: o.offset,
|
83
87
|
padding: o.padding,
|
84
88
|
placement: o.placement,
|
85
89
|
theme: o.theme,
|
86
90
|
"transition-duration": o.transitionDuration,
|
87
91
|
width: o.width
|
88
|
-
},
|
89
|
-
activator:
|
92
|
+
}, I({
|
93
|
+
activator: n(({
|
90
94
|
props: e,
|
91
95
|
opening: p,
|
92
|
-
open:
|
93
|
-
closed:
|
96
|
+
open: g,
|
97
|
+
closed: h,
|
94
98
|
closing: B,
|
95
99
|
disabled: $,
|
96
100
|
placement: C
|
97
101
|
}) => [
|
98
102
|
a(o.$slots, "activator", {
|
99
|
-
closed:
|
103
|
+
closed: h,
|
100
104
|
closing: B,
|
101
105
|
disabled: $,
|
102
|
-
open:
|
106
|
+
open: g,
|
103
107
|
opening: p,
|
104
108
|
placement: C,
|
105
109
|
props: e
|
106
110
|
}, () => [
|
107
|
-
u(
|
108
|
-
default:
|
109
|
-
m("span", F,
|
111
|
+
u(W, P(e, { class: "bb-dropdown-button__dropdown-btn" }), {
|
112
|
+
default: n(() => [
|
113
|
+
m("span", F, _(g || p ? d(b)("dropdownButton.close").value : d(b)("dropdownButton.open").value), 1),
|
110
114
|
a(o.$slots, "right-btn", {
|
111
|
-
closed:
|
115
|
+
closed: h,
|
112
116
|
closing: B,
|
113
117
|
disabled: $,
|
114
|
-
open:
|
118
|
+
open: g,
|
115
119
|
opening: p,
|
116
120
|
placement: C
|
117
121
|
}, () => [
|
@@ -131,26 +135,26 @@ const q = { class: "bb-dropdown-button__content" }, A = {
|
|
131
135
|
}, 1040)
|
132
136
|
])
|
133
137
|
]),
|
134
|
-
prepend:
|
138
|
+
prepend: n((e) => [
|
135
139
|
a(o.$slots, "prepend", r(i(e)))
|
136
140
|
]),
|
137
|
-
"item:prepend":
|
141
|
+
"item:prepend": n((e) => [
|
138
142
|
a(o.$slots, "item:prepend", r(i(e)))
|
139
143
|
]),
|
140
|
-
item:
|
144
|
+
item: n((e) => [
|
141
145
|
a(o.$slots, "item", r(i(e)))
|
142
146
|
]),
|
143
|
-
"item:append":
|
147
|
+
"item:append": n((e) => [
|
144
148
|
a(o.$slots, "item:append", r(i(e)))
|
145
149
|
]),
|
146
|
-
append:
|
150
|
+
append: n((e) => [
|
147
151
|
a(o.$slots, "append", r(i(e)))
|
148
152
|
]),
|
149
153
|
_: 2
|
150
154
|
}, [
|
151
|
-
|
155
|
+
M(f.value, (e) => ({
|
152
156
|
name: e.key,
|
153
|
-
fn:
|
157
|
+
fn: n((p) => [
|
154
158
|
a(o.$slots, e.key, r(i(p)))
|
155
159
|
])
|
156
160
|
}))
|
@@ -159,5 +163,5 @@ const q = { class: "bb-dropdown-button__content" }, A = {
|
|
159
163
|
}
|
160
164
|
});
|
161
165
|
export {
|
162
|
-
|
166
|
+
to as default
|
163
167
|
};
|
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 "./index248.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
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 "./
|
2
|
+
import { useFocusTrap as pe } from "./index216.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 be from "./
|
5
|
+
import { useModalsState as b } from "./index249.js";
|
6
|
+
import be from "./index220.js";
|
7
7
|
import { useMobile as me } from "./index9.js";
|
8
|
-
import { useLocale as ye } from "./
|
8
|
+
import { useLocale as ye } from "./index217.js";
|
9
9
|
const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
|
10
10
|
__name: "BbOffCanvas",
|
11
11
|
props: {
|
package/dist/index86.js
CHANGED
@@ -4,7 +4,7 @@ import { debounce as T } from "./index268.js";
|
|
4
4
|
/* empty css */
|
5
5
|
import z from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { useLocale as D } from "./
|
7
|
+
import { useLocale as D } from "./index217.js";
|
8
8
|
const G = ["aria-label"], I = { class: "bb-pagination__page-label sr-only" }, O = { class: "bb-pagination__page-label" }, j = { class: "bb-pagination__page-label" }, q = { class: "bb-pagination__page-label sr-only" }, Z = /* @__PURE__ */ E({
|
9
9
|
__name: "BbPagination",
|
10
10
|
props: {
|
package/dist/index88.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
|
2
|
-
import { useFocusTrap as j } from "./
|
2
|
+
import { useFocusTrap as j } from "./index216.js";
|
3
3
|
import { useId as G } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
-
import { waitFor as K } from "./
|
5
|
+
import { waitFor as K } from "./index219.js";
|
6
6
|
import Q from "./index13.js";
|
7
7
|
/* empty css */
|
8
8
|
import U from "./index266.js";
|
9
9
|
/* empty css */
|
10
|
-
import { useLocale as X } from "./
|
10
|
+
import { useLocale as X } from "./index217.js";
|
11
11
|
import { useDebounceFn as Y } from "./index205.js";
|
12
12
|
const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
|
13
13
|
__name: "BbPopover",
|
@@ -0,0 +1,4 @@
|
|
1
|
+
type ReplaceNonWordWithUnderscore<S extends string> = S extends `${infer Head}${infer Tail}` ? Head extends ' ' | '.' | ',' | '!' | '?' | '-' | ';' | ':' | "'" | '"' | '(' | ')' | '[' | ']' | '{' | '}' | '`' | '~' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '+' | '=' | '|' | '\\' | '/' | '<' | '>' | '?' | '!' ? `_${ReplaceNonWordWithUnderscore<Tail>}` : `${Head}${ReplaceNonWordWithUnderscore<Tail>}` : S;
|
2
|
+
type CollapseConsecutiveUnderscores<S extends string> = S extends `${infer Head}__${infer Tail}` ? CollapseConsecutiveUnderscores<`${Head}_${Tail}`> : S;
|
3
|
+
export type ColumnName<S extends string> = CollapseConsecutiveUnderscores<Lowercase<ReplaceNonWordWithUnderscore<S>>>;
|
4
|
+
export {};
|
package/dist/types/Option.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
export type PrefixWith<T extends string, Prefix extends string> = `${Prefix}${T}`;
|
package/package.json
CHANGED
package/dist/index222.js
DELETED
package/dist/index238.js
DELETED
package/dist/index252.js
DELETED
package/dist/index254.js
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import { isNil as c } from "./index252.js";
|
2
|
-
const a = (t, r) => {
|
3
|
-
if (!Object.prototype.hasOwnProperty.call(t, r))
|
4
|
-
throw new Error(
|
5
|
-
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
6
|
-
);
|
7
|
-
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
8
|
-
const i = s.toLocaleLowerCase();
|
9
|
-
for (let e = 0; e < r.length; e++) {
|
10
|
-
const n = r[e];
|
11
|
-
a(t, n);
|
12
|
-
const o = t[n];
|
13
|
-
if (c(o)) continue;
|
14
|
-
if (l(o).includes(i)) return !0;
|
15
|
-
}
|
16
|
-
return !1;
|
17
|
-
};
|
18
|
-
export {
|
19
|
-
y as matchAnyKey
|
20
|
-
};
|
package/dist/index282.js
DELETED