bitboss-ui 2.0.113 → 2.0.115
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/index100.js +72 -70
- package/dist/index111.js +11 -11
- package/dist/index119.js +2 -2
- package/dist/index121.js +6 -6
- 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 +33 -35
- 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 +80 -47
- package/dist/index209.js +25 -13
- package/dist/index21.js +16 -16
- package/dist/index210.js +17 -3
- package/dist/index211.js +47 -40
- package/dist/index212.js +15 -6
- package/dist/index213.js +3 -7
- package/dist/index214.js +12 -8
- package/dist/index215.js +16 -15
- package/dist/index216.js +5 -13
- package/dist/index217.js +16 -5
- package/dist/index218.js +10 -10
- package/dist/index219.js +18 -15
- package/dist/index220.js +12 -16
- package/dist/index221.js +17 -13
- package/dist/index222.js +22 -14
- package/dist/index223.js +2 -27
- package/dist/index224.js +8 -3
- package/dist/index225.js +250 -2
- package/dist/index226.js +42 -240
- package/dist/index227.js +35 -43
- package/dist/index228.js +5 -44
- package/dist/index229.js +60 -5
- package/dist/index23.js +18 -18
- package/dist/index230.js +12 -59
- package/dist/index231.js +2 -3
- package/dist/index232.js +4 -126
- package/dist/index233.js +2 -125
- package/dist/index234.js +53 -2
- package/dist/index236.js +12 -4
- package/dist/index237.js +17 -366
- package/dist/index238.js +4 -2
- package/dist/index239.js +3 -4
- package/dist/index240.js +41 -2
- package/dist/index241.js +5 -85
- package/dist/index242.js +9 -0
- package/dist/index243.js +15 -25
- package/dist/index244.js +3 -17
- package/dist/index245.js +123 -45
- package/dist/index246.js +125 -15
- package/dist/index247.js +2 -12
- package/dist/index248.js +5 -16
- package/dist/index249.js +368 -3
- package/dist/index25.js +7 -7
- package/dist/index250.js +2 -2
- package/dist/index251.js +2 -18
- package/dist/index252.js +2 -106
- package/dist/index253.js +20 -0
- package/dist/index254.js +53 -47
- package/dist/index256.js +100 -12
- package/dist/index258.js +12 -2
- package/dist/index261.js +6 -9
- package/dist/index262.js +16 -23
- package/dist/index263.js +8 -89
- package/dist/index264.js +25 -0
- package/dist/index265.js +90 -6
- package/dist/index268.js +19 -0
- package/dist/index269.js +9 -7
- package/dist/index27.js +1 -1
- package/dist/index270.js +27 -280
- package/dist/index271.js +280 -5
- package/dist/index272.js +6 -2
- package/dist/index273.js +2 -2
- package/dist/index279.js +2 -2
- package/dist/index280.js +1 -1
- package/dist/index281.js +1 -1
- package/dist/index282.js +1 -1
- package/dist/index283.js +2 -28
- package/dist/index286.js +6 -6
- package/dist/index287.js +7 -11
- package/dist/index288.js +10 -430
- package/dist/index289.js +4 -2
- package/dist/index29.js +2 -2
- package/dist/index290.js +3 -89
- package/dist/index292.js +175 -3
- package/dist/index293.js +420 -189
- package/dist/index294.js +2 -2
- package/dist/index295.js +82 -119
- package/dist/index296.js +222 -174
- package/dist/index297.js +199 -21
- package/dist/index298.js +10 -0
- package/dist/index299.js +9 -3
- package/dist/index300.js +2 -17
- package/dist/index301.js +125 -8
- package/dist/index302.js +22 -9
- package/dist/index304.js +422 -113
- package/dist/index305.js +127 -8
- package/dist/index306.js +1 -1
- package/dist/index307.js +1 -1
- package/dist/index308.js +3 -3
- package/dist/index309.js +3 -7
- package/dist/index31.js +2 -2
- package/dist/index310.js +3 -67
- package/dist/index311.js +57 -32
- package/dist/index312.js +5 -2
- package/dist/index313.js +8 -5
- package/dist/index314.js +53 -5
- package/dist/index315.js +53 -8
- package/dist/index316.js +32 -6
- package/dist/index317.js +5 -17
- package/dist/index318.js +66 -2
- package/dist/index319.js +7 -53
- package/dist/index320.js +18 -52
- package/dist/index322.js +5 -3
- package/dist/index323.js +2 -3
- package/dist/index324.js +3 -58
- package/dist/index327.js +4 -0
- package/dist/index328.js +1 -1
- package/dist/index33.js +8 -8
- package/dist/index35.js +4 -4
- package/dist/index37.js +21 -21
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +7 -7
- 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 +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +4 -4
- package/package.json +1 -1
- package/dist/index235.js +0 -22
- package/dist/index257.js +0 -4
- package/dist/index266.js +0 -18
- package/dist/index291.js +0 -226
- package/dist/index303.js +0 -438
- package/dist/index326.js +0 -4
package/dist/index100.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { useItemValue as W } from "./
|
3
|
-
import { isNil as
|
4
|
-
import { indexBy as q } from "./
|
5
|
-
import { hash as
|
6
|
-
import { useItemsGetter as z } from "./
|
7
|
-
import { usePrefill as J } from "./
|
8
|
-
import { useIndexById as K } from "./
|
9
|
-
import { useBaseOptions as Q } from "./
|
10
|
-
import { useHashedWatcher as X } from "./
|
11
|
-
const
|
1
|
+
import { defineComponent as R, mergeModels as b, computed as I, toRef as m, reactive as j, useModel as B, watch as E, openBlock as g, createElementBlock as k, Fragment as H, renderSlot as p, unref as x, createCommentVNode as G, renderList as U } from "vue";
|
2
|
+
import { useItemValue as W } from "./index269.js";
|
3
|
+
import { isNil as w } from "./index251.js";
|
4
|
+
import { indexBy as q } from "./index298.js";
|
5
|
+
import { hash as M } from "./index213.js";
|
6
|
+
import { useItemsGetter as z } from "./index209.js";
|
7
|
+
import { usePrefill as J } from "./index215.js";
|
8
|
+
import { useIndexById as K } from "./index210.js";
|
9
|
+
import { useBaseOptions as Q } from "./index211.js";
|
10
|
+
import { useHashedWatcher as X } from "./index214.js";
|
11
|
+
const de = /* @__PURE__ */ R({
|
12
12
|
__name: "BbRows",
|
13
13
|
props: /* @__PURE__ */ b({
|
14
14
|
columns: { default: () => [] },
|
@@ -31,103 +31,105 @@ const ne = /* @__PURE__ */ P({
|
|
31
31
|
"select-allModifiers": {}
|
32
32
|
}),
|
33
33
|
emits: /* @__PURE__ */ b(["update:modelValue"], ["update:unselected-items", "update:select-all"]),
|
34
|
-
setup(
|
35
|
-
const l =
|
36
|
-
getter:
|
37
|
-
items:
|
38
|
-
loading:
|
34
|
+
setup(r, { emit: O }) {
|
35
|
+
const l = r, o = O, { getItemValue: S } = W(), f = I(() => !!(l.loading || F.value)), {
|
36
|
+
getter: v,
|
37
|
+
items: y,
|
38
|
+
loading: F
|
39
39
|
} = z({
|
40
40
|
items: m(l, "items")
|
41
|
-
}), { hasPrefilled:
|
41
|
+
}), { hasPrefilled: N } = J({
|
42
42
|
onStart: !0,
|
43
43
|
currentValue: l.modelValue,
|
44
44
|
multiple: l.multiple,
|
45
45
|
fn: async ({ prefill: e }) => {
|
46
|
-
await
|
46
|
+
await v(e, l.modelValue);
|
47
47
|
}
|
48
|
-
}), { data:
|
48
|
+
}), { data: h } = K({
|
49
49
|
items: m(l, "modelValue")
|
50
|
-
}), { options:
|
50
|
+
}), { options: T } = Q({
|
51
51
|
disabled: m(l, "disabled"),
|
52
|
-
items:
|
52
|
+
items: y,
|
53
53
|
itemText: void 0,
|
54
54
|
itemValue: l.itemValue,
|
55
55
|
max: l.max,
|
56
56
|
selectable: !0,
|
57
|
-
selectedIndexedByHash:
|
58
|
-
}),
|
59
|
-
l.multiple ?
|
60
|
-
},
|
57
|
+
selectedIndexedByHash: h
|
58
|
+
}), $ = async (e) => {
|
59
|
+
l.multiple ? o("update:modelValue", l.modelValue.concat(e.value)) : o("update:modelValue", e.value);
|
60
|
+
}, A = async (e) => {
|
61
61
|
if (l.multiple) {
|
62
|
-
const t = { ...
|
63
|
-
delete t[e.valueHash],
|
62
|
+
const t = { ...h.value };
|
63
|
+
delete t[e.valueHash], o("update:modelValue", Object.values(t));
|
64
64
|
} else
|
65
|
-
|
65
|
+
o("update:modelValue", null);
|
66
66
|
};
|
67
67
|
X(
|
68
68
|
() => [l.dependencies, l.items],
|
69
69
|
async () => {
|
70
|
-
|
70
|
+
N.value && await v(!1, l.modelValue);
|
71
71
|
},
|
72
72
|
{
|
73
73
|
debounce: l.depsDebounceTime
|
74
74
|
}
|
75
75
|
);
|
76
|
-
const
|
76
|
+
const V = I(() => T.value.map((e) => {
|
77
77
|
let t = !l.selectable;
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
78
|
+
typeof l.selectable == "function" && (t = !l.selectable(e.item)), t = t || !!e.disabled;
|
79
|
+
const a = q(
|
80
|
+
l.columns.map((s) => {
|
81
|
+
const { label: L, key: P } = s;
|
82
|
+
let u = S(e.item, s.key);
|
83
|
+
return s.formatter && // By default the formatter runs anyway
|
84
|
+
(!w(u) || s.formatOnNull !== !1) && (u = s.formatter(u, s.key, e.item)), s.placeholder && w(u) && (u = s.placeholder), {
|
85
|
+
value: u,
|
86
|
+
key: P,
|
87
|
+
label: L
|
88
|
+
};
|
89
|
+
}),
|
90
|
+
(s) => s.key
|
91
|
+
), i = !!(e.selected || c.value) && !n.has(e.valueHash);
|
92
|
+
return {
|
93
|
+
columns: a,
|
92
94
|
item: e.item,
|
93
95
|
text: e.text,
|
94
96
|
valueHash: e.valueHash,
|
95
97
|
value: e.value,
|
96
|
-
selected:
|
98
|
+
selected: i,
|
97
99
|
disabled: t
|
98
100
|
};
|
99
|
-
})),
|
100
|
-
|
101
|
-
(t) =>
|
101
|
+
})), C = (e) => {
|
102
|
+
c.value || $(e), n.delete(e.valueHash), d.value = d.value.filter(
|
103
|
+
(t) => M(t) !== M(e.value)
|
102
104
|
);
|
103
|
-
},
|
104
|
-
|
105
|
-
},
|
106
|
-
let
|
107
|
-
return
|
108
|
-
|
109
|
-
}), (e, t) => (g(), k(
|
110
|
-
|
105
|
+
}, D = (e) => {
|
106
|
+
n.add(e.valueHash), d.value.push(e.value), A(e);
|
107
|
+
}, n = j(/* @__PURE__ */ new Set()), d = B(r, "unselected-items");
|
108
|
+
let c = B(r, "select-all");
|
109
|
+
return E(c, () => {
|
110
|
+
n.clear(), d.value = [], o("update:modelValue", []);
|
111
|
+
}), (e, t) => (g(), k(H, null, [
|
112
|
+
f.value ? p(e.$slots, "loading", {
|
111
113
|
key: 0,
|
112
|
-
items:
|
114
|
+
items: x(y)
|
113
115
|
}) : G("", !0),
|
114
|
-
|
115
|
-
key:
|
116
|
-
checked:
|
117
|
-
columns:
|
118
|
-
disabled:
|
119
|
-
index:
|
120
|
-
item:
|
121
|
-
select: () =>
|
122
|
-
unselect: () =>
|
123
|
-
value:
|
124
|
-
})), 128)) :
|
116
|
+
V.value.length ? (g(!0), k(H, { key: 2 }, U(V.value, (a, i) => p(e.$slots, "default", {
|
117
|
+
key: a.valueHash + x(c),
|
118
|
+
checked: a.selected,
|
119
|
+
columns: a.columns,
|
120
|
+
disabled: a.disabled,
|
121
|
+
index: i,
|
122
|
+
item: a.item,
|
123
|
+
select: () => C(a),
|
124
|
+
unselect: () => D(a),
|
125
|
+
value: a.value
|
126
|
+
})), 128)) : p(e.$slots, "no-data", {
|
125
127
|
key: 1,
|
126
|
-
loading:
|
128
|
+
loading: f.value
|
127
129
|
})
|
128
130
|
], 64));
|
129
131
|
}
|
130
132
|
});
|
131
133
|
export {
|
132
|
-
|
134
|
+
de as default
|
133
135
|
};
|
package/dist/index111.js
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
import { defineComponent as me, mergeModels as K, ref as fe, computed as v, toRef as j, useModel as Q, watch as X, reactive as ye, openBlock as n, createBlock as Y, resolveDynamicComponent as he, normalizeClass as p, unref as b, withCtx as ve, createElementBlock as d, toDisplayString as m, createCommentVNode as _, createElementVNode as o, renderSlot as f, isRef as ke, Fragment as I, renderList as T, createVNode as Z, createTextVNode as _e, mergeProps as ge } from "vue";
|
2
|
-
import { add as Ce } from "./
|
2
|
+
import { add as Ce } from "./index323.js";
|
3
3
|
import { clamp as we } from "./index206.js";
|
4
|
-
import { isNil as $ } from "./
|
4
|
+
import { isNil as $ } from "./index251.js";
|
5
5
|
import { useId as Ve } from "./index8.js";
|
6
|
-
import { useItemValue as Be } from "./
|
7
|
-
import { when as Ie } from "./
|
6
|
+
import { useItemValue as Be } from "./index269.js";
|
7
|
+
import { when as Ie } from "./index232.js";
|
8
8
|
import ee from "./index17.js";
|
9
9
|
/* empty css */
|
10
10
|
import Te from "./index31.js";
|
11
11
|
/* empty css */
|
12
|
-
import { hash as le } from "./
|
13
|
-
import { useItemsGetter as $e } from "./
|
14
|
-
import { usePrefill as Ae } from "./
|
15
|
-
import { useIndexById as xe } from "./
|
16
|
-
import { useBaseOptions as Ne } from "./
|
17
|
-
import { useHashedWatcher as Le } from "./
|
18
|
-
import { useLocale as Se } from "./
|
12
|
+
import { hash as le } from "./index213.js";
|
13
|
+
import { useItemsGetter as $e } from "./index209.js";
|
14
|
+
import { usePrefill as Ae } from "./index215.js";
|
15
|
+
import { useIndexById as xe } from "./index210.js";
|
16
|
+
import { useBaseOptions as Ne } from "./index211.js";
|
17
|
+
import { useHashedWatcher as Le } from "./index214.js";
|
18
|
+
import { useLocale as Se } from "./index230.js";
|
19
19
|
const He = {
|
20
20
|
key: 0,
|
21
21
|
class: "sr-only"
|
package/dist/index119.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as l, openBlock as e, createBlock as o, withCtx as r, createElementVNode as c, normalizeClass as m, createVNode as i, TransitionGroup as u, createElementBlock as p, Fragment as f, renderList as _, unref as n, mergeProps as d } from "vue";
|
2
2
|
import { state as k, useToast as b } from "./index11.js";
|
3
|
-
import C from "./
|
4
|
-
import B from "./
|
3
|
+
import C from "./index243.js";
|
4
|
+
import B from "./index318.js";
|
5
5
|
const V = /* @__PURE__ */ l({
|
6
6
|
__name: "BbToast",
|
7
7
|
props: {
|
package/dist/index121.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
import { defineComponent as V, ref as a, watch as H, computed as z, openBlock as B, createElementBlock as I, mergeProps as R, createElementVNode as c, renderSlot as E, normalizeProps as S, guardReactiveProps as U, unref as u, createVNode as W, withCtx as C, createBlock as j, createCommentVNode as q } from "vue";
|
2
|
-
import { useFloating as A, arrow as G } from "./
|
2
|
+
import { useFloating as A, arrow as G } from "./index245.js";
|
3
3
|
import { useId as J } from "./index8.js";
|
4
4
|
import { wait as L } from "./index130.js";
|
5
5
|
import K from "./index13.js";
|
6
6
|
/* empty css */
|
7
|
-
import { throttle as m } from "./
|
8
|
-
import { waitFor as Q } from "./
|
9
|
-
import X from "./
|
7
|
+
import { throttle as m } from "./index239.js";
|
8
|
+
import { waitFor as Q } from "./index241.js";
|
9
|
+
import X from "./index265.js";
|
10
10
|
/* empty css */
|
11
|
-
import { useLocale as Y } from "./
|
12
|
-
import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./
|
11
|
+
import { useLocale as Y } from "./index230.js";
|
12
|
+
import { autoUpdate as Z, flip as x, shift as ee, hide as te } from "./index249.js";
|
13
13
|
const me = /* @__PURE__ */ V({
|
14
14
|
__name: "BbTooltip",
|
15
15
|
props: {
|
package/dist/index123.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as $, computed as g, resolveComponent as y, openBlock as f, createElementBlock as i, Fragment as k, renderList as h, normalizeClass as b, createElementVNode as s, renderSlot as t, createVNode as v, createSlots as B, withCtx as _, mergeProps as C } from "vue";
|
2
|
-
import { flattenTree as T } from "./
|
2
|
+
import { flattenTree as T } from "./index322.js";
|
3
3
|
const w = { class: "bb-tree-row" }, E = { class: "bb-tree-main-content" }, N = /* @__PURE__ */ $({
|
4
4
|
__name: "BbTree",
|
5
5
|
props: {
|
package/dist/index125.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as i, openBlock as o, createElementBlock as a, createElementVNode as t, renderSlot as p, createTextVNode as b, toDisplayString as m, unref as u, withModifiers as d, createCommentVNode as _ } from "vue";
|
2
|
-
import { useLocale as f } from "./
|
2
|
+
import { useLocale as f } from "./index230.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/index127.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, openBlock as h, createElementBlock as $, mergeProps as g } from "vue";
|
2
|
-
import { isCssColor as I } from "./
|
2
|
+
import { isCssColor as I } from "./index231.js";
|
3
3
|
const B = ["innerHTML"], k = /* @__PURE__ */ v({
|
4
4
|
__name: "BbIcon",
|
5
5
|
props: {
|
package/dist/index128.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as v, ref as r, onMounted as p, onBeforeUnmount as h, openBlock as i, createBlock as l, resolveDynamicComponent as u, normalizeStyle as m, withCtx as f, renderSlot as d } from "vue";
|
2
|
-
import { throttle as g } from "./
|
2
|
+
import { throttle as g } from "./index239.js";
|
3
3
|
const O = /* @__PURE__ */ v({
|
4
4
|
__name: "BbSmoothHeight",
|
5
5
|
props: {
|
package/dist/index129.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, computed as s, openBlock as b, createElementBlock as a, normalizeProps as _, guardReactiveProps as x, createStaticVNode as m } from "vue";
|
2
|
-
import { isCssColor as u } from "./
|
2
|
+
import { isCssColor as u } from "./index231.js";
|
3
3
|
const f = /* @__PURE__ */ p({
|
4
4
|
__name: "BbSpinner",
|
5
5
|
props: {
|
package/dist/index13.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { _config as
|
3
|
-
import { useLogger as
|
4
|
-
import { hash as
|
5
|
-
const
|
1
|
+
import { defineComponent as C, getCurrentInstance as d, shallowRef as x, watch as S, computed as f, openBlock as L, createBlock as B, resolveDynamicComponent as N, unref as $, mergeProps as F, withCtx as w, renderSlot as A, createTextVNode as P, toDisplayString as _, resolveComponent as m } from "vue";
|
2
|
+
import { _config as o } from "./index4.js";
|
3
|
+
import { useLogger as v } from "./index224.js";
|
4
|
+
import { hash as g } from "./index213.js";
|
5
|
+
const I = /* @__PURE__ */ C({
|
6
6
|
__name: "BaseButton",
|
7
7
|
props: {
|
8
8
|
activeClass: {},
|
@@ -32,56 +32,54 @@ const q = /* @__PURE__ */ h({
|
|
32
32
|
to: {},
|
33
33
|
type: { default: "button" }
|
34
34
|
},
|
35
|
-
setup(
|
35
|
+
setup(b) {
|
36
36
|
var i, l, u, c;
|
37
|
-
const e =
|
38
|
-
let
|
37
|
+
const e = b, r = !!((l = (i = d()) == null ? void 0 : i.proxy) != null && l.$inertia), y = !!((c = (u = d()) == null ? void 0 : u.proxy) != null && c.$nuxt);
|
38
|
+
let a = x(), n;
|
39
39
|
const s = () => {
|
40
40
|
if (e.href || e.to && e.disabled)
|
41
41
|
if (r && !e.disabled && !e.target) {
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
`Inertia link component "${a.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${a.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${a.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
42
|
+
if (n ?? (n = m(o.inertiaLinkName)), typeof n == "string") {
|
43
|
+
const { warn: t } = v();
|
44
|
+
t(
|
45
|
+
`Inertia link component "${o.inertiaLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.inertiaLinkName}" or set bitboss-ui config key "inertiaLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
47
46
|
);
|
48
47
|
}
|
49
|
-
|
48
|
+
a.value = n;
|
50
49
|
} else
|
51
|
-
|
50
|
+
a.value = "a";
|
52
51
|
else if (e.to)
|
53
|
-
if (
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
`Nuxt link component "${a.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${a.nuxtLinkName}" or set bitboss-ui config key "nuxtLInkName" to the correct value globally. Please visit ${a.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
52
|
+
if (y) {
|
53
|
+
if (n ?? (n = m(o.nuxtLinkName)), typeof n == "string") {
|
54
|
+
const { warn: t } = v();
|
55
|
+
t(
|
56
|
+
`Nuxt link component "${o.nuxtLinkName}" could not be resolved. Ensure you app registers a link component with the name "${o.nuxtLinkName}" or set bitboss-ui config key "nuxtLinkName" to the correct value globally. Please visit ${o.documentationURL}/getting-started to resolve setup issues in bitboss-ui.`
|
59
57
|
);
|
60
58
|
}
|
61
|
-
|
59
|
+
a.value = n;
|
62
60
|
} else
|
63
|
-
|
61
|
+
a.value = "router-link";
|
64
62
|
else
|
65
|
-
|
63
|
+
a.value = e.tag;
|
66
64
|
};
|
67
|
-
s(),
|
65
|
+
s(), S(
|
68
66
|
() => [e.tag, e.to, e.href, e.disabled],
|
69
|
-
(t,
|
70
|
-
|
67
|
+
(t, p) => {
|
68
|
+
g(t) !== g(p) && s();
|
71
69
|
}
|
72
70
|
);
|
73
|
-
const
|
71
|
+
const k = f(() => ({
|
74
72
|
"base-btn": !0,
|
75
73
|
"base-btn--block": e.block,
|
76
74
|
"base-btn--disabled": e.disabled
|
77
|
-
})),
|
75
|
+
})), h = f(() => {
|
78
76
|
const t = {};
|
79
|
-
return
|
77
|
+
return a.value === "button" ? (t.disabled = e.disabled, t.type = e.type) : a.value === "a" || a.value === "router-link" && e.disabled || r && typeof a.value != "string" && a.value.name === "Link" ? e.disabled ? (t["aria-disabled"] = !0, t.role = "link", t.href = null) : (t.href = e.href, t.target = e.target, r && (t.data = e.data, t.headers = e.headers, t.method = e.method, t.onBefore = e.onBefore, t.onCancel = e.onCancel, t.onCancelToken = e.onCancelToken, t.onFinish = e.onFinish, t.only = e.only, t.onProgress = e.onProgress, t.onStart = e.onStart, t.onSuccess = e.onSuccess, t.preserveScroll = e.preserveScroll, t.preserveState = e.preserveState, t.queryStringArrayFormat = e.queryStringArrayFormat, t.replace = e.replace)) : (a.value === "router-link" || typeof a.value != "string" && a.value.name === "NuxtLink") && (t.activeClass = e.activeClass, t.ariaCurrentValue = e.ariaCurrentValue, t.exactActiveClass = e.exactActiveClass, t.replace = e.replace, t.target = e.target, t.to = e.to), t;
|
80
78
|
});
|
81
|
-
return (t,
|
82
|
-
default:
|
83
|
-
|
84
|
-
|
79
|
+
return (t, p) => (L(), B(N($(a)), F({ class: k.value }, h.value), {
|
80
|
+
default: w(() => [
|
81
|
+
A(t.$slots, "default", {}, () => [
|
82
|
+
P(_(t.text), 1)
|
85
83
|
])
|
86
84
|
]),
|
87
85
|
_: 3
|
@@ -89,5 +87,5 @@ const q = /* @__PURE__ */ h({
|
|
89
87
|
}
|
90
88
|
});
|
91
89
|
export {
|
92
|
-
|
90
|
+
I as default
|
93
91
|
};
|
package/dist/index133.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
import { isArray as p } from "./
|
2
|
-
import { isPlainObject as c } from "./
|
1
|
+
import { isArray as p } from "./index312.js";
|
2
|
+
import { isPlainObject as c } from "./index313.js";
|
3
3
|
function i(e, n, u, l, r) {
|
4
4
|
const o = {}.propertyIsEnumerable.call(l, n) ? "enumerable" : "nonenumerable";
|
5
5
|
o === "enumerable" && (e[n] = u), r && o === "nonenumerable" && Object.defineProperty(e, n, {
|
package/dist/index15.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
import { defineComponent as v, ref as h, computed as g, watchPostEffect as C, openBlock as w, createElementBlock as B, Fragment as V, createVNode as t, normalizeClass as H, withCtx as n, renderSlot as l, createElementVNode as s, normalizeStyle as E, withModifiers as q, withDirectives as I, mergeProps as $, unref as d } from "vue";
|
2
|
-
import M from "./
|
2
|
+
import M from "./index234.js";
|
3
3
|
/* empty css */
|
4
|
-
import L from "./
|
5
|
-
import { vMaska as z } from "./
|
6
|
-
import { isHex as D } from "./
|
7
|
-
import { useLocale as F } from "./
|
4
|
+
import L from "./index236.js";
|
5
|
+
import { vMaska as z } from "./index237.js";
|
6
|
+
import { isHex as D } from "./index238.js";
|
7
|
+
import { useLocale as F } from "./index230.js";
|
8
8
|
const P = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "value"], N = ["aria-invalid", "aria-label", "disabled", "required"], J = /* @__PURE__ */ v({
|
9
9
|
__name: "BaseColorInput",
|
10
10
|
props: {
|
package/dist/index17.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as E, ref as m, computed as n, watch as _, openBlock as p, createElementBlock as h, normalizeProps as i, guardReactiveProps as f, mergeProps as k, createCommentVNode as I, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as y } from "./
|
3
|
-
import { when as N } from "./
|
4
|
-
import { booleanishToBoolean as S } from "./
|
2
|
+
import { isCssColor as y } from "./index231.js";
|
3
|
+
import { when as N } from "./index232.js";
|
4
|
+
import { booleanishToBoolean as S } from "./index233.js";
|
5
5
|
const A = {
|
6
6
|
"aria-hidden": "true",
|
7
7
|
class: "bb-base-checkbox-container"
|
package/dist/index19.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
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 b, createVNode as R, mergeProps as T } from "vue";
|
2
2
|
import W from "./index17.js";
|
3
3
|
/* empty css */
|
4
|
-
import K from "./
|
4
|
+
import K from "./index207.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as N } from "./
|
7
|
-
import { useIndexById as w } from "./
|
8
|
-
import { useBaseOptions as U } from "./
|
9
|
-
import { useCoherence as q } from "./
|
10
|
-
import { hash as J } from "./
|
11
|
-
import { useHashedWatcher as C } from "./
|
12
|
-
import { usePrefill as Q } from "./
|
6
|
+
import { useItemsGetter as N } from "./index209.js";
|
7
|
+
import { useIndexById as w } from "./index210.js";
|
8
|
+
import { useBaseOptions as U } from "./index211.js";
|
9
|
+
import { useCoherence as q } from "./index212.js";
|
10
|
+
import { hash as J } from "./index213.js";
|
11
|
+
import { useHashedWatcher as C } from "./index214.js";
|
12
|
+
import { usePrefill as Q } from "./index215.js";
|
13
13
|
const de = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseCheckboxGroup",
|
15
15
|
props: {
|
package/dist/index207.js
CHANGED
@@ -1,55 +1,88 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
__name: "
|
1
|
+
import { defineComponent as h, openBlock as n, createElementBlock as s, normalizeClass as r, createElementVNode as l, renderSlot as t, createTextVNode as o, toDisplayString as d, unref as b, createCommentVNode as p, Fragment as m, renderList as u } from "vue";
|
2
|
+
import { useLocale as g } from "./index230.js";
|
3
|
+
const k = { class: "bb-cr-container__container" }, y = {
|
4
|
+
key: 0,
|
5
|
+
class: "bb-cr-container__loading-container"
|
6
|
+
}, $ = {
|
7
|
+
key: 1,
|
8
|
+
class: "bb-cr-container__no-data-container"
|
9
|
+
}, C = /* @__PURE__ */ h({
|
10
|
+
__name: "OptionsContainer",
|
11
11
|
props: {
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
direction: {},
|
13
|
+
hasErrors: { type: Boolean },
|
14
|
+
hideLabel: { type: Boolean },
|
15
|
+
loadingText: {},
|
16
|
+
loading: { type: Boolean },
|
17
|
+
noDataText: {},
|
18
|
+
options: {}
|
15
19
|
},
|
16
|
-
setup(
|
17
|
-
const
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
onClick: l
|
20
|
+
setup(f) {
|
21
|
+
const { t: i } = g();
|
22
|
+
return (a, T) => (n(), s("span", {
|
23
|
+
ref: "container",
|
24
|
+
class: r(["bb-cr-container", {
|
25
|
+
"bb-cr-container--errors": a.hasErrors,
|
26
|
+
"bb-cr-container--horizontal": a.direction === "horizontal",
|
27
|
+
"bb-cr-container--vertical": a.direction === "vertical"
|
28
|
+
}])
|
26
29
|
}, [
|
27
|
-
|
28
|
-
t("
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
30
|
+
l("span", k, [
|
31
|
+
t(a.$slots, "prepend"),
|
32
|
+
!a.options.length && a.loading ? (n(), s("span", y, [
|
33
|
+
t(a.$slots, "loading", {}, () => [
|
34
|
+
o(d(a.loadingText || b(i)("common.loadingText")), 1)
|
35
|
+
])
|
36
|
+
])) : a.options.length ? p("", !0) : (n(), s("span", $, [
|
37
|
+
t(a.$slots, "no-data", {}, () => [
|
38
|
+
o(d(a.noDataText || b(i)("common.noDataText")), 1)
|
39
|
+
])
|
40
|
+
])),
|
41
|
+
(n(!0), s(m, null, u(a.options, (e, c) => (n(), s(m, {
|
42
|
+
key: (e == null ? void 0 : e.valueHash) || c
|
43
|
+
}, [
|
44
|
+
t(a.$slots, "option:prepend", {
|
45
|
+
id: e.valueHash,
|
46
|
+
checked: !!e.selected,
|
47
|
+
disabled: !!e.disabled,
|
48
|
+
item: e.item,
|
49
|
+
text: e.text
|
50
|
+
}),
|
51
|
+
l("label", {
|
52
|
+
class: r(["bb-cr-container-option", { "bb-base-radio-selected": e.selected }])
|
53
|
+
}, [
|
54
|
+
t(a.$slots, "input", {
|
55
|
+
index: c,
|
56
|
+
option: e
|
57
|
+
}),
|
58
|
+
l("span", {
|
59
|
+
class: r({
|
60
|
+
"bb-cr-container-option__text": !0,
|
61
|
+
"sr-only": a.hideLabel
|
62
|
+
})
|
63
|
+
}, [
|
64
|
+
t(a.$slots, "label", {
|
65
|
+
checked: !!e.selected,
|
66
|
+
item: e.item,
|
67
|
+
text: e.text
|
68
|
+
}, () => [
|
69
|
+
o(d(e.text), 1)
|
70
|
+
])
|
71
|
+
], 2)
|
72
|
+
], 2),
|
73
|
+
t(a.$slots, "option:append", {
|
74
|
+
id: e.valueHash,
|
75
|
+
checked: !!e.selected,
|
76
|
+
disabled: !!e.disabled,
|
77
|
+
item: e.item,
|
78
|
+
text: e.text
|
79
|
+
})
|
80
|
+
], 64))), 128)),
|
81
|
+
t(a.$slots, "append")
|
49
82
|
])
|
50
|
-
],
|
83
|
+
], 2));
|
51
84
|
}
|
52
85
|
});
|
53
86
|
export {
|
54
|
-
|
87
|
+
C as default
|
55
88
|
};
|