bitboss-ui 2.0.107 → 2.0.109
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 +4 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbTeleport.vue.d.ts +4 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +4 -0
- package/dist/index100.js +8 -8
- package/dist/index101.js +22 -20
- package/dist/index111.js +10 -10
- package/dist/index119.js +2 -2
- package/dist/index121.js +18 -16
- package/dist/index123.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.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 +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index205.js +2 -115
- package/dist/index206.js +115 -2
- package/dist/index208.js +1 -1
- package/dist/index209.js +2 -53
- package/dist/index21.js +13 -13
- package/dist/index210.js +6 -0
- package/dist/index211.js +2 -13
- package/dist/index212.js +53 -3
- package/dist/index214.js +13 -6
- package/dist/index215.js +20 -7
- package/dist/index216.js +4 -12
- package/dist/index217.js +2 -2
- package/dist/index218.js +126 -2
- package/dist/index219.js +5 -4
- package/dist/index220.js +125 -2
- package/dist/index221.js +16 -3
- package/dist/index222.js +15 -19
- package/dist/index223.js +19 -4
- package/dist/index224.js +14 -280
- package/dist/index225.js +2 -16
- package/dist/index226.js +2 -16
- package/dist/index227.js +40 -18
- package/dist/index228.js +6 -15
- package/dist/index229.js +15 -19
- package/dist/index23.js +47 -43
- package/dist/index230.js +5 -27
- package/dist/index231.js +369 -2
- package/dist/index232.js +79 -243
- package/dist/index234.js +25 -44
- package/dist/index235.js +17 -5
- package/dist/index236.js +47 -59
- package/dist/index237.js +13 -124
- package/dist/index238.js +12 -125
- package/dist/index239.js +16 -2
- package/dist/index240.js +3 -5
- package/dist/index241.js +3 -369
- package/dist/index242.js +7 -86
- package/dist/index243.js +21 -0
- package/dist/index244.js +27 -25
- package/dist/index245.js +250 -17
- package/dist/index246.js +50 -46
- package/dist/index247.js +44 -15
- package/dist/index248.js +5 -12
- package/dist/index249.js +60 -16
- package/dist/index25.js +5 -5
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index254.js +1 -1
- package/dist/index257.js +2 -2
- package/dist/index258.js +2 -2
- package/dist/index261.js +27 -8
- package/dist/index262.js +9 -23
- package/dist/index263.js +23 -89
- package/dist/index264.js +92 -0
- package/dist/index266.js +6 -16
- package/dist/index267.js +16 -9
- package/dist/index268.js +4 -9
- package/dist/index269.js +9 -8
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -28
- package/dist/index272.js +9 -0
- package/dist/index273.js +175 -6
- package/dist/index274.js +6 -430
- package/dist/index275.js +11 -2
- package/dist/index276.js +280 -88
- package/dist/index277.js +6 -7
- package/dist/index278.js +2 -11
- package/dist/index279.js +2 -4
- package/dist/index280.js +2 -224
- package/dist/index281.js +2 -200
- package/dist/index282.js +2 -176
- package/dist/index283.js +2 -6
- package/dist/index284.js +126 -2
- package/dist/index285.js +431 -2
- package/dist/index286.js +2 -2
- package/dist/index287.js +22 -2
- package/dist/index289.js +3 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +17 -2
- package/dist/index291.js +9 -2
- package/dist/index292.js +8 -2
- package/dist/index293.js +224 -2
- package/dist/index294.js +2 -2
- package/dist/index295.js +2 -22
- package/dist/index296.js +4 -0
- package/dist/index297.js +2 -2
- package/dist/index298.js +2 -126
- package/dist/index299.js +1 -21
- package/dist/index300.js +24 -0
- package/dist/index302.js +87 -15
- package/dist/index303.js +191 -427
- package/dist/index304.js +422 -113
- package/dist/index305.js +127 -3
- package/dist/index306.js +1 -1
- package/dist/index307.js +3 -214
- package/dist/index308.js +214 -3
- package/dist/index309.js +5 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +67 -3
- package/dist/index311.js +2 -58
- package/dist/index312.js +5 -2
- package/dist/index313.js +8 -67
- package/dist/index314.js +3 -5
- package/dist/index315.js +3 -32
- package/dist/index316.js +3 -7
- package/dist/index317.js +3 -19
- package/dist/index318.js +57 -52
- package/dist/index319.js +32 -52
- package/dist/index320.js +53 -47
- package/dist/index321.js +53 -7
- package/dist/index322.js +46 -4
- package/dist/index323.js +6 -7
- package/dist/index324.js +7 -480
- package/dist/index325.js +18 -3
- package/dist/index326.js +1 -1
- package/dist/index327.js +482 -0
- package/dist/index329.js +420 -43
- package/dist/index33.js +7 -7
- package/dist/index330.js +47 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +85 -81
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- package/dist/index45.js +27 -27
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index75.js +22 -20
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +40 -38
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +4 -0
- package/package.json +2 -2
- package/dist/index213.js +0 -43
- package/dist/index233.js +0 -54
- package/dist/index265.js +0 -8
- package/dist/index271.js +0 -5
- package/dist/index301.js +0 -5
- package/dist/index328.js +0 -426
- /package/dist/{index288.js → index331.js} +0 -0
package/dist/index37.js
CHANGED
@@ -1,39 +1,39 @@
|
|
1
|
-
import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as
|
1
|
+
import { defineComponent as Re, defineAsyncComponent as Ge, ref as f, computed as y, toRef as T, openBlock as h, createBlock as x, normalizeClass as Z, withCtx as i, renderSlot as c, createVNode as K, unref as V, createElementVNode as H, createElementBlock as A, Fragment as ee, toDisplayString as je, createCommentVNode as te, withDirectives as Je, withModifiers as p, withKeys as g, vModelDynamic as Qe, renderList as Xe, mergeProps as oe, normalizeStyle as Ye, nextTick as _ } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
4
|
import { useId as Ze } from "./index8.js";
|
5
5
|
import { useMobile as et } from "./index9.js";
|
6
6
|
import tt from "./index128.js";
|
7
7
|
/* empty css */
|
8
|
-
import { last as
|
9
|
-
import { matchAnyKey as
|
10
|
-
import { useFloating as
|
8
|
+
import { last as ot } from "./index226.js";
|
9
|
+
import { matchAnyKey as le } from "./index251.js";
|
10
|
+
import { useFloating as lt } from "./index218.js";
|
11
11
|
import { useIntersectionObserver as at } from "./index132.js";
|
12
12
|
import { wait as L } from "./index130.js";
|
13
|
-
import { when as nt } from "./
|
13
|
+
import { when as nt } from "./index210.js";
|
14
14
|
import it from "./index252.js";
|
15
15
|
/* empty css */
|
16
16
|
import ut from "./index254.js";
|
17
17
|
/* empty css */
|
18
|
-
import rt from "./
|
18
|
+
import rt from "./index212.js";
|
19
19
|
/* empty css */
|
20
|
-
import st from "./
|
21
|
-
import { waitFor as dt } from "./
|
22
|
-
import ct from "./
|
23
|
-
import { useItemsGetter as pt } from "./
|
24
|
-
import { usePrefill as mt } from "./
|
20
|
+
import st from "./index214.js";
|
21
|
+
import { waitFor as dt } from "./index228.js";
|
22
|
+
import ct from "./index229.js";
|
23
|
+
import { useItemsGetter as pt } from "./index234.js";
|
24
|
+
import { usePrefill as mt } from "./index239.js";
|
25
25
|
import { useArray as ft } from "./index256.js";
|
26
|
-
import { useBaseOptions as vt } from "./
|
27
|
-
import { useIndexById as ae } from "./
|
28
|
-
import { useCoherence as yt } from "./
|
26
|
+
import { useBaseOptions as vt } from "./index236.js";
|
27
|
+
import { useIndexById as ae } from "./index235.js";
|
28
|
+
import { useCoherence as yt } from "./index237.js";
|
29
29
|
import { hash as ht } from "./index208.js";
|
30
|
-
import { useHashedWatcher as ne } from "./
|
30
|
+
import { useHashedWatcher as ne } from "./index238.js";
|
31
31
|
import { useLocale as bt } from "./index217.js";
|
32
|
-
import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./
|
32
|
+
import { autoUpdate as gt, flip as wt, offset as Bt, shift as Vt } from "./index231.js";
|
33
33
|
const It = { class: "bb-base-select__input-container" }, kt = {
|
34
34
|
key: 1,
|
35
35
|
class: "bb-base-select__max-reached"
|
36
|
-
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"],
|
36
|
+
}, St = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], ao = /* @__PURE__ */ Re({
|
37
37
|
__name: "BaseSelect",
|
38
38
|
props: {
|
39
39
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -69,6 +69,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
69
69
|
readonly: { type: Boolean },
|
70
70
|
required: { type: Boolean },
|
71
71
|
stash: { type: Boolean },
|
72
|
+
teleportTarget: {},
|
72
73
|
transitionDuration: { default: 300 },
|
73
74
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
74
75
|
},
|
@@ -89,7 +90,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
89
90
|
},
|
90
91
|
{ threshold: [0, 1] }
|
91
92
|
);
|
92
|
-
const { floatingStyles: pe } =
|
93
|
+
const { floatingStyles: pe } = lt(
|
93
94
|
I,
|
94
95
|
n,
|
95
96
|
{
|
@@ -98,12 +99,12 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
98
99
|
middleware: [wt(), Bt(5), Vt()]
|
99
100
|
}
|
100
101
|
), me = y(() => {
|
101
|
-
var
|
102
|
+
var o;
|
102
103
|
const e = {
|
103
104
|
...pe.value,
|
104
105
|
zIndex: "10"
|
105
106
|
};
|
106
|
-
return I.value && (e.width = `${(
|
107
|
+
return I.value && (e.width = `${(o = I.value) == null ? void 0 : o.$el.clientWidth}px`), e;
|
107
108
|
}), F = f(null), q = () => {
|
108
109
|
F.value instanceof HTMLInputElement && F.value.focus();
|
109
110
|
}, fe = async (e) => {
|
@@ -113,33 +114,33 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
113
114
|
}, ye = async (e) => {
|
114
115
|
u("blur", e);
|
115
116
|
}, he = (e) => u("change", e), be = (e) => {
|
116
|
-
var
|
117
|
-
u("input", e),
|
117
|
+
var o;
|
118
|
+
u("input", e), l.value === "" && (t.multiple || u("update:modelValue", null)), (o = r.value) == null || o.blur(), N.value && k(), Ce(l.value, !1, t.modelValue);
|
118
119
|
}, D = async (e) => {
|
119
120
|
if (e.target instanceof Node && E.value && n.value && !E.value.$el.contains(e.target) && !n.value.$el.contains(e.target)) {
|
120
121
|
S(), ze(), document.removeEventListener("click", D), document.removeEventListener("focusin", D), await L(t.transitionDuration), b();
|
121
122
|
return;
|
122
123
|
}
|
123
124
|
}, w = y(() => !(t.readonly || t.disabled || O.value || !r.value && t.multiple)), ge = async () => {
|
124
|
-
var e,
|
125
|
-
w.value && ((e = r.value) == null || e.blur(), m.value ? (
|
125
|
+
var e, o, a;
|
126
|
+
w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusPrevious() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusLastSelected()));
|
126
127
|
}, we = async () => {
|
127
|
-
var e,
|
128
|
-
w.value && ((e = r.value) == null || e.blur(), m.value ? (
|
128
|
+
var e, o, a;
|
129
|
+
w.value && ((e = r.value) == null || e.blur(), m.value ? (o = n.value) == null || o.focusNext() : (await k(), await L(t.transitionDuration), (a = n.value) == null || a.focusFirstSelected()));
|
129
130
|
}, Be = (e) => {
|
130
131
|
var a, d, v, C;
|
131
|
-
if (!w.value || !t.multiple ||
|
132
|
+
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
|
132
133
|
(d = r.value) == null || d.focusPrevious();
|
133
|
-
const
|
134
|
-
|
134
|
+
const o = (v = r.value) == null ? void 0 : v.getHighlighted();
|
135
|
+
o && ((C = n.value) == null || C.focusByHash(o.valueHash));
|
135
136
|
}, Ve = (e) => {
|
136
137
|
var a, d, v, C;
|
137
|
-
if (!w.value || !t.multiple ||
|
138
|
+
if (!w.value || !t.multiple || l.value || (e.preventDefault(), (a = n.value) == null || a.blur(), !s.value.length)) return;
|
138
139
|
(d = r.value) == null || d.focusNext();
|
139
|
-
const
|
140
|
-
|
140
|
+
const o = (v = r.value) == null ? void 0 : v.getHighlighted();
|
141
|
+
o && ((C = n.value) == null || C.focusByHash(o.valueHash));
|
141
142
|
}, Ie = async () => {
|
142
|
-
var
|
143
|
+
var o, a;
|
143
144
|
if (!w.value)
|
144
145
|
return;
|
145
146
|
if (m.value) {
|
@@ -148,27 +149,27 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
148
149
|
return;
|
149
150
|
}
|
150
151
|
} else {
|
151
|
-
await k(), await L(t.transitionDuration), s.value.length && ((
|
152
|
+
await k(), await L(t.transitionDuration), s.value.length && ((o = n.value) == null || o.focusFirstSelected());
|
152
153
|
return;
|
153
154
|
}
|
154
|
-
const e =
|
155
|
-
Ee(e) || (u("option:add", e),
|
155
|
+
const e = l.value.trim();
|
156
|
+
Ee(e) || (u("option:add", e), l.value = "");
|
156
157
|
}, ke = async () => {
|
157
158
|
m.value && await S();
|
158
159
|
}, Se = async () => {
|
159
|
-
var e,
|
160
|
-
!w.value ||
|
161
|
-
},
|
160
|
+
var e, o;
|
161
|
+
!w.value || l.value || !s.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await _(), (o = r.value) == null || o.focusPrevious());
|
162
|
+
}, l = f(""), {
|
162
163
|
getter: M,
|
163
164
|
debouncedGetter: Ce,
|
164
165
|
items: De,
|
165
166
|
loading: j
|
166
167
|
} = pt({
|
167
|
-
items:
|
168
|
+
items: T(t, "items"),
|
168
169
|
debounce: t.queryDebounceTime
|
169
170
|
}), P = () => {
|
170
|
-
var e,
|
171
|
-
t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (
|
171
|
+
var e, o;
|
172
|
+
t.enforceCoherence && !Y.value && (t.multiple ? u("update:modelValue", Pe.value.coherent) : u("update:modelValue", null), (e = r.value) == null || e.blur(), (o = n.value) == null || o.blur());
|
172
173
|
}, {
|
173
174
|
hasPrefilled: J,
|
174
175
|
isPrefilling: $e,
|
@@ -178,18 +179,18 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
178
179
|
currentValue: t.modelValue,
|
179
180
|
multiple: t.multiple,
|
180
181
|
fn: async ({ prefill: e }) => {
|
181
|
-
await M(
|
182
|
+
await M(l.value, e, t.modelValue), P(), b();
|
182
183
|
}
|
183
184
|
}), {
|
184
|
-
array:
|
185
|
-
add:
|
185
|
+
array: Te,
|
186
|
+
add: xe,
|
186
187
|
remove: He,
|
187
188
|
set: Ae
|
188
189
|
} = ft(), s = y(() => $.value.filter((e) => e.selected)), Le = y(() => s.value.length ? "" : t.placeholder), { data: Q, get: Ee } = ae({
|
189
|
-
items:
|
190
|
+
items: T(t, "modelValue")
|
190
191
|
}), { options: $ } = vt({
|
191
|
-
disabled:
|
192
|
-
items: y(() => [...De.value, ...
|
192
|
+
disabled: T(t, "disabled"),
|
193
|
+
items: y(() => [...De.value, ...Te.value]),
|
193
194
|
itemText: t.itemText,
|
194
195
|
itemValue: t.itemValue,
|
195
196
|
max: t.max,
|
@@ -197,26 +198,26 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
197
198
|
selectedIndexedByHash: Q
|
198
199
|
}), O = y(() => !!(j.value || t.loading)), Fe = y(() => {
|
199
200
|
let e = [];
|
200
|
-
const
|
201
|
-
(d) => d.text ===
|
201
|
+
const o = s.value.some(
|
202
|
+
(d) => d.text === l.value
|
202
203
|
);
|
203
|
-
return (t.multiple &&
|
204
|
+
return (t.multiple && l.value || l.value && !o && !t.multiple) && t.filterBy ? e = $.value.filter((d) => {
|
204
205
|
let v = !1;
|
205
|
-
return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v ||
|
206
|
+
return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || le(d.item, t.filterBy, l.value.trim())), v || le(d, ["text"], l.value.trim());
|
206
207
|
}) : e = $.value, e;
|
207
208
|
}), b = () => {
|
208
209
|
if (t.multiple) {
|
209
|
-
|
210
|
+
l.value = "";
|
210
211
|
return;
|
211
212
|
}
|
212
213
|
let e;
|
213
|
-
s.value && (e =
|
214
|
+
s.value && (e = ot(s.value)), l.value = (e == null ? void 0 : e.text) || "";
|
214
215
|
}, qe = async (e) => {
|
215
|
-
t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash &&
|
216
|
+
t.multiple ? (u("update:modelValue", t.modelValue.concat(e.value)), t.stash && xe(e.item), b()) : (t.stash && Ae(e.item), u("update:modelValue", e.value), await _(), b()), q(), t.multiple || S();
|
216
217
|
}, X = async (e) => {
|
217
|
-
if (He((
|
218
|
-
const
|
219
|
-
delete
|
218
|
+
if (He((o) => o.valueHash !== e.valueHash), t.multiple) {
|
219
|
+
const o = { ...Q.value };
|
220
|
+
delete o[e.valueHash], u("update:modelValue", Object.values(o));
|
220
221
|
} else
|
221
222
|
u("update:modelValue", null), await _(), b();
|
222
223
|
q();
|
@@ -224,7 +225,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
224
225
|
items: $,
|
225
226
|
key: "valueHash"
|
226
227
|
}), { coherent: Y, status: Pe } = yt({
|
227
|
-
modelValue:
|
228
|
+
modelValue: T(t, "modelValue"),
|
228
229
|
multiple: t.multiple,
|
229
230
|
iteratee: (e) => !!Me.value[ht(e)]
|
230
231
|
});
|
@@ -232,7 +233,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
232
233
|
ne(
|
233
234
|
() => t.modelValue,
|
234
235
|
async () => {
|
235
|
-
B++, Y.value || (await M(
|
236
|
+
B++, Y.value || (await M(l.value, !1, t.modelValue), P()), B === 1 && b(), B--;
|
236
237
|
},
|
237
238
|
{
|
238
239
|
debounce: t.modelValueDebounceTime
|
@@ -240,7 +241,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
240
241
|
), ne(
|
241
242
|
() => [t.dependencies, t.items],
|
242
243
|
async () => {
|
243
|
-
J.value && (B++, await M(
|
244
|
+
J.value && (B++, await M(l.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
|
244
245
|
},
|
245
246
|
{
|
246
247
|
debounce: t.depsDebounceTime
|
@@ -261,15 +262,15 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
261
262
|
(e) => typeof e != "string",
|
262
263
|
JSON.stringify
|
263
264
|
), Ue = y(() => [].concat(t.modelValue).map((e) => {
|
264
|
-
const
|
265
|
+
const o = _e(e);
|
265
266
|
return {
|
266
267
|
disabled: t.disabled,
|
267
268
|
name: t.name,
|
268
269
|
type: "hidden",
|
269
|
-
value:
|
270
|
+
value: o
|
270
271
|
};
|
271
272
|
}));
|
272
|
-
return (e,
|
273
|
+
return (e, o) => (h(), x(st, {
|
273
274
|
ref_key: "outerContainer",
|
274
275
|
ref: E,
|
275
276
|
class: Z({
|
@@ -285,10 +286,10 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
285
286
|
onClick: Ke
|
286
287
|
}, {
|
287
288
|
"prepend-outer": i(() => [
|
288
|
-
c(e.$slots, "prepend-outer", { query:
|
289
|
+
c(e.$slots, "prepend-outer", { query: l.value })
|
289
290
|
]),
|
290
291
|
"append-outer": i(() => [
|
291
|
-
c(e.$slots, "append-outer", { query:
|
292
|
+
c(e.$slots, "append-outer", { query: l.value })
|
292
293
|
]),
|
293
294
|
default: i(() => [
|
294
295
|
K(rt, {
|
@@ -299,13 +300,13 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
299
300
|
"prevent-focus": !0
|
300
301
|
}, {
|
301
302
|
prepend: i(() => [
|
302
|
-
c(e.$slots, "prepend", { query:
|
303
|
+
c(e.$slots, "prepend", { query: l.value })
|
303
304
|
]),
|
304
305
|
prefix: i(() => [
|
305
306
|
c(e.$slots, "prefix")
|
306
307
|
]),
|
307
308
|
append: i(() => [
|
308
|
-
c(e.$slots, "append", { query:
|
309
|
+
c(e.$slots, "append", { query: l.value })
|
309
310
|
]),
|
310
311
|
suffix: i(() => [
|
311
312
|
c(e.$slots, "suffix")
|
@@ -315,12 +316,12 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
315
316
|
default: i(() => [
|
316
317
|
H("span", It, [
|
317
318
|
e.multiple && s.value.length <= e.maxSelectedLabels ? (h(), A(ee, { key: 0 }, [
|
318
|
-
e.comma ? (h(),
|
319
|
+
e.comma ? (h(), x(ut, {
|
319
320
|
key: 0,
|
320
321
|
ref_key: "commaBox",
|
321
322
|
ref: U,
|
322
323
|
options: s.value
|
323
|
-
}, null, 8, ["options"])) : (h(),
|
324
|
+
}, null, 8, ["options"])) : (h(), x(it, {
|
324
325
|
key: 1,
|
325
326
|
ref_key: "chipsBox",
|
326
327
|
ref: R,
|
@@ -332,7 +333,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
332
333
|
id: V(G),
|
333
334
|
ref_key: "input",
|
334
335
|
ref: F,
|
335
|
-
"onUpdate:modelValue":
|
336
|
+
"onUpdate:modelValue": o[0] || (o[0] = (a) => l.value = a),
|
336
337
|
"aria-autocomplete": "list",
|
337
338
|
"aria-controls": W.value ? `${V(G)}_listbox` : void 0,
|
338
339
|
"aria-describedby": e.ariaDescribedby,
|
@@ -344,7 +345,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
344
345
|
inputmode: ce.value,
|
345
346
|
placeholder: Le.value,
|
346
347
|
readonly: e.readonly || !e.allowWriting,
|
347
|
-
required: e.required && !e.multiple ||
|
348
|
+
required: e.required && (!e.multiple || !e.modelValue.length),
|
348
349
|
role: "combobox",
|
349
350
|
size: "1",
|
350
351
|
type: "text",
|
@@ -363,7 +364,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
363
364
|
g(p(Ve, ["stop"]), ["right"])
|
364
365
|
]
|
365
366
|
}, null, 40, St), [
|
366
|
-
[Qe,
|
367
|
+
[Qe, l.value]
|
367
368
|
])
|
368
369
|
])
|
369
370
|
]),
|
@@ -373,7 +374,7 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
373
374
|
loading: !!V(j),
|
374
375
|
shown: m.value
|
375
376
|
}, () => [
|
376
|
-
|
377
|
+
o[1] || (o[1] = H("svg", {
|
377
378
|
class: "bb-base-select__chevron",
|
378
379
|
viewBox: "0 0 24 24",
|
379
380
|
xmlns: "http://www.w3.org/2000/svg"
|
@@ -387,11 +388,14 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
387
388
|
]),
|
388
389
|
_: 3
|
389
390
|
}, 8, ["append:icon", "prepend:icon"]),
|
390
|
-
(h(!0), A(ee, null, Xe(Ue.value, (a) => (h(), A("input",
|
391
|
+
(h(!0), A(ee, null, Xe(Ue.value, (a) => (h(), A("input", oe({
|
391
392
|
key: a.value,
|
392
393
|
ref_for: !0
|
393
394
|
}, a), null, 16))), 128)),
|
394
|
-
W.value ? (h(),
|
395
|
+
W.value ? (h(), x(ct, {
|
396
|
+
key: 0,
|
397
|
+
target: e.teleportTarget
|
398
|
+
}, {
|
395
399
|
default: i(() => [
|
396
400
|
K(V(se), {
|
397
401
|
ref_key: "optionsContainer",
|
@@ -410,16 +414,16 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
410
414
|
c(e.$slots, "options:prepend")
|
411
415
|
]),
|
412
416
|
loading: i(() => [
|
413
|
-
c(e.$slots, "loading", { query:
|
417
|
+
c(e.$slots, "loading", { query: l.value })
|
414
418
|
]),
|
415
419
|
"no-data": i(() => [
|
416
|
-
c(e.$slots, "no-data", { query:
|
420
|
+
c(e.$slots, "no-data", { query: l.value })
|
417
421
|
]),
|
418
422
|
"options:append": i(() => [
|
419
423
|
c(e.$slots, "options:append")
|
420
424
|
]),
|
421
425
|
option: i((a) => [
|
422
|
-
c(e.$slots, "option",
|
426
|
+
c(e.$slots, "option", oe({
|
423
427
|
hasErrors: e.hasErrors,
|
424
428
|
loading: O.value
|
425
429
|
}, a))
|
@@ -428,12 +432,12 @@ const It = { class: "bb-base-select__input-container" }, kt = {
|
|
428
432
|
}, 8, ["compact", "loading", "loading-text", "no-data-text", "open", "options", "style"])
|
429
433
|
]),
|
430
434
|
_: 3
|
431
|
-
})) : te("", !0)
|
435
|
+
}, 8, ["target"])) : te("", !0)
|
432
436
|
]),
|
433
437
|
_: 3
|
434
438
|
}, 8, ["class"]));
|
435
439
|
}
|
436
440
|
});
|
437
441
|
export {
|
438
|
-
|
442
|
+
ao as default
|
439
443
|
};
|
package/dist/index39.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, openBlock as g, createElementBlock as w, mergeProps as T, renderSlot as f, createElementVNode as c, Fragment as ee, renderList as ae, createCommentVNode as H, normalizeProps as re, guardReactiveProps as te, unref as b, normalizeClass as F, normalizeStyle 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 "./index205.js";
|
3
|
+
import { head as O } from "./index257.js";
|
4
|
+
import { isCssColor as Y } from "./index209.js";
|
5
|
+
import { isNil as P } from "./index258.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
8
|
import { hash as J } from "./index208.js";
|
package/dist/index41.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent as I, ref as f, computed as n, watch as S, openBlock as h, createElementBlock as y, normalizeProps as r, guardReactiveProps as d, mergeProps as V, createCommentVNode as A, createElementVNode as l, renderSlot as F } from "vue";
|
2
|
-
import { isCssColor as b } from "./
|
3
|
-
import { when as N } from "./
|
2
|
+
import { isCssColor as b } from "./index209.js";
|
3
|
+
import { when as N } from "./index210.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, 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
2
|
import K from "./index41.js";
|
3
3
|
/* empty css */
|
4
|
-
import N from "./
|
4
|
+
import N from "./index232.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 "./
|
6
|
+
import { useItemsGetter as U } from "./index234.js";
|
7
|
+
import { useIndexById as T } from "./index235.js";
|
8
|
+
import { useBaseOptions as q } from "./index236.js";
|
9
|
+
import { useCoherence as J } from "./index237.js";
|
10
10
|
import { hash as Q } from "./index208.js";
|
11
|
-
import { useHashedWatcher as E } from "./
|
12
|
-
import { usePrefill as X } from "./
|
11
|
+
import { useHashedWatcher as E } from "./index238.js";
|
12
|
+
import { usePrefill as X } from "./index239.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|
package/dist/index45.js
CHANGED
@@ -1,18 +1,18 @@
|
|
1
|
-
import { defineComponent as R, ref as u, computed as
|
1
|
+
import { defineComponent as R, ref as u, computed as m, toRef as E, watch as j, openBlock as v, createBlock as k, normalizeClass as Q, withCtx as l, renderSlot as s, createVNode as I, unref as Z, createElementVNode as $, createElementBlock as G, Fragment as J, createCommentVNode as W, withDirectives as X, mergeProps as Y, withModifiers as d, withKeys as y, vModelDynamic as ee, nextTick as te } from "vue";
|
2
2
|
/* empty css */
|
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 "./
|
6
|
+
import { last as ae } from "./index226.js";
|
7
|
+
import { useBaseOptions as ne } from "./index236.js";
|
8
|
+
import { useIndexById as le } from "./index235.js";
|
9
9
|
import re from "./index252.js";
|
10
10
|
/* empty css */
|
11
11
|
import ie from "./index254.js";
|
12
12
|
/* empty css */
|
13
|
-
import ue from "./
|
13
|
+
import ue from "./index212.js";
|
14
14
|
/* empty css */
|
15
|
-
import se from "./
|
15
|
+
import se from "./index214.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: {
|
@@ -41,15 +41,15 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
41
41
|
const t = O, n = D;
|
42
42
|
if (t.multiple && !Array.isArray(t.modelValue))
|
43
43
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
44
|
-
const b = u(null), L = u(null), B = u(null), V = u(null), r =
|
44
|
+
const b = u(null), L = u(null), B = u(null), V = u(null), r = m(
|
45
45
|
() => t.comma ? B.value : V.value
|
46
46
|
), p = u(null), A = () => {
|
47
47
|
p.value instanceof HTMLInputElement && p.value.focus();
|
48
|
-
}, o = u(""), i =
|
48
|
+
}, o = u(""), i = m(() => K.value.filter((e) => e.selected)), { data: w, get: H } = le({
|
49
49
|
items: E(t, "modelValue")
|
50
50
|
}), { options: K } = ne({
|
51
51
|
disabled: E(t, "disabled"),
|
52
|
-
items:
|
52
|
+
items: m(() => [].concat(t.modelValue)),
|
53
53
|
itemText: void 0,
|
54
54
|
itemValue: void 0,
|
55
55
|
max: t.max,
|
@@ -80,19 +80,19 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
80
80
|
g.value = !0;
|
81
81
|
}, M = () => {
|
82
82
|
g.value = !1, n("inactive");
|
83
|
-
}, h =
|
83
|
+
}, h = m(() => !(t.readonly || t.disabled || !r.value && t.multiple)), N = (e) => {
|
84
84
|
var a;
|
85
85
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusPrevious())));
|
86
|
-
},
|
86
|
+
}, _ = (e) => {
|
87
87
|
var a;
|
88
88
|
h.value && (!t.multiple || o.value || (e.preventDefault(), i.value.length && ((a = r.value) == null || a.focusNext())));
|
89
|
-
},
|
89
|
+
}, P = async () => {
|
90
90
|
var e, a;
|
91
91
|
!h.value || o.value || !i.value.length || ((e = r.value) != null && e.getHighlighted() && r.value.confirmOption(), await te(), (a = r.value) == null || a.focusPrevious());
|
92
|
-
},
|
92
|
+
}, x = () => {
|
93
93
|
var e;
|
94
94
|
(e = r.value) == null || e.blur();
|
95
|
-
},
|
95
|
+
}, F = async (e) => {
|
96
96
|
var a;
|
97
97
|
if (n("keydown", e), t.readonly || t.disabled) {
|
98
98
|
e.preventDefault();
|
@@ -100,9 +100,9 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
100
100
|
}
|
101
101
|
if (/^[A-Za-z0-9]$/.test(e.key) && ((a = r.value) == null || a.blur()), e.key === t.divider || e.key === "Unidentified" && o.value.includes(t.divider)) {
|
102
102
|
if (t.divider.length === 1 && o.value.includes(t.divider)) {
|
103
|
-
const
|
104
|
-
if (
|
105
|
-
o.value =
|
103
|
+
const f = o.value.split(t.divider)[0];
|
104
|
+
if (f)
|
105
|
+
o.value = f;
|
106
106
|
else {
|
107
107
|
o.value = "";
|
108
108
|
return;
|
@@ -120,9 +120,9 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
120
120
|
t.multiple ? n("update:modelValue", t.modelValue.concat(o.value)) : n("update:modelValue", o.value);
|
121
121
|
}
|
122
122
|
}
|
123
|
-
},
|
123
|
+
}, S = (e) => {
|
124
124
|
n("focus", e), q(), document.addEventListener("click", c), document.addEventListener("focusin", c);
|
125
|
-
},
|
125
|
+
}, U = (e) => {
|
126
126
|
n("click", e), !(t.disabled || t.readonly) && p.value instanceof HTMLElement && p.value.focus();
|
127
127
|
}, c = async (e) => {
|
128
128
|
if (e.target instanceof Node && b.value && !b.value.$el.contains(e.target)) {
|
@@ -147,7 +147,7 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
147
147
|
"bb-base-tag--readonly": e.readonly,
|
148
148
|
"bb-base-tag--compact": e.compact
|
149
149
|
}),
|
150
|
-
onClick:
|
150
|
+
onClick: U
|
151
151
|
}, {
|
152
152
|
"prepend-outer": l(() => [
|
153
153
|
s(e.$slots, "prepend-outer")
|
@@ -198,7 +198,7 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
198
198
|
ref_key: "input",
|
199
199
|
ref: p
|
200
200
|
}, z, {
|
201
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
201
|
+
"onUpdate:modelValue": a[0] || (a[0] = (f) => o.value = f),
|
202
202
|
"aria-describedby": e.ariaDescribedby,
|
203
203
|
autocomplete: e.autocomplete,
|
204
204
|
autofocus: e.autofocus,
|
@@ -207,15 +207,15 @@ const de = { class: "bb-base-tag__input-container" }, pe = ["id", "aria-describe
|
|
207
207
|
enterkeyhint: "done",
|
208
208
|
placeholder: e.placeholder,
|
209
209
|
readonly: e.readonly,
|
210
|
-
required: e.required && !e.multiple ||
|
210
|
+
required: e.required && (!e.multiple || !e.modelValue.length),
|
211
211
|
type: "text",
|
212
|
-
onFocus: d(
|
212
|
+
onFocus: d(S, ["stop"]),
|
213
213
|
onKeydown: [
|
214
|
-
d(
|
215
|
-
y(d(
|
214
|
+
d(F, ["stop"]),
|
215
|
+
y(d(P, ["stop"]), ["delete"]),
|
216
216
|
y(d(N, ["stop"]), ["left"]),
|
217
|
-
y(d(
|
218
|
-
y(d(
|
217
|
+
y(d(x, ["stop", "prevent"]), ["esc"]),
|
218
|
+
y(d(_, ["stop"]), ["right"])
|
219
219
|
]
|
220
220
|
}), null, 16, pe), [
|
221
221
|
[ee, o.value]
|
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 "./index214.js";
|
3
|
+
import E from "./index212.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 "./index212.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index214.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/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 "./index209.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 "./index209.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: {
|