bitboss-ui 2.0.117 → 2.0.118
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 +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 +2 -2
- package/dist/index131.js +1 -1
- package/dist/index132.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/index205.js +2 -115
- package/dist/index206.js +126 -2
- package/dist/index207.js +5 -65
- package/dist/index208.js +127 -0
- package/dist/index209.js +16 -13
- package/dist/index21.js +16 -16
- package/dist/index210.js +15 -19
- package/dist/index211.js +19 -4
- package/dist/index212.js +15 -13
- package/dist/index213.js +2 -3
- package/dist/index214.js +2 -126
- package/dist/index215.js +41 -5
- package/dist/index216.js +13 -125
- package/dist/index217.js +19 -15
- package/dist/index218.js +6 -16
- package/dist/index219.js +15 -19
- package/dist/index220.js +65 -15
- package/dist/index222.js +13 -2
- package/dist/index223.js +5 -41
- package/dist/index224.js +2 -6
- package/dist/index225.js +369 -15
- package/dist/index226.js +3 -5
- package/dist/index227.js +7 -2
- package/dist/index228.js +7 -368
- package/dist/index229.js +19 -86
- package/dist/index23.js +19 -19
- package/dist/index230.js +29 -0
- package/dist/index231.js +3 -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 +3 -16
- package/dist/index238.js +115 -2
- package/dist/index239.js +4 -4
- package/dist/index240.js +2 -2
- package/dist/index241.js +4 -19
- package/dist/index242.js +2 -27
- package/dist/index243.js +84 -6
- package/dist/index245.js +24 -51
- package/dist/index246.js +17 -44
- package/dist/index247.js +51 -5
- package/dist/index248.js +15 -60
- package/dist/index249.js +12 -3
- package/dist/index25.js +7 -7
- package/dist/index250.js +16 -7
- package/dist/index253.js +18 -2
- package/dist/index254.js +105 -17
- package/dist/{index257.js → index256.js} +1 -1
- package/dist/index258.js +14 -0
- package/dist/index259.js +214 -12
- package/dist/index262.js +9 -6
- package/dist/index263.js +23 -16
- package/dist/index264.js +89 -8
- package/dist/index266.js +6 -90
- package/dist/index267.js +18 -0
- package/dist/index269.js +9 -224
- package/dist/index27.js +1 -1
- package/dist/index270.js +8 -3
- package/dist/index271.js +283 -0
- package/dist/index272.js +6 -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 +2 -6
- package/dist/index278.js +2 -2
- package/dist/index279.js +126 -2
- package/dist/index280.js +431 -2
- package/dist/index281.js +176 -2
- package/dist/index282.js +2 -2
- package/dist/index283.js +3 -2
- package/dist/index285.js +5 -429
- package/dist/index286.js +21 -1
- package/dist/index288.js +9 -0
- package/dist/index289.js +11 -3
- package/dist/index29.js +3 -3
- package/dist/index290.js +87 -15
- package/dist/index291.js +199 -8
- package/dist/index292.js +431 -23
- package/dist/index293.js +126 -3
- package/dist/index294.js +219 -431
- package/dist/index295.js +2 -127
- package/dist/index296.js +2 -200
- package/dist/index297.js +2 -2
- package/dist/index298.js +2 -2
- package/dist/index299.js +1 -1
- package/dist/index300.js +1 -1
- package/dist/index301.js +28 -2
- package/dist/index302.js +21 -1
- package/dist/index304.js +6 -0
- package/dist/index305.js +3 -8
- package/dist/index306.js +15 -87
- 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 +5 -5
- package/dist/index315.js +8 -67
- package/dist/index316.js +3 -7
- package/dist/index317.js +3 -19
- package/dist/index318.js +58 -3
- package/dist/index319.js +3 -32
- package/dist/index320.js +28 -21
- package/dist/index321.js +25 -52
- package/dist/index322.js +7 -53
- package/dist/index323.js +6 -4
- package/dist/index324.js +18 -7
- package/dist/index325.js +53 -7
- package/dist/index326.js +53 -4
- package/dist/index328.js +480 -2
- package/dist/index329.js +4 -0
- package/dist/index33.js +8 -8
- package/dist/index35.js +4 -4
- package/dist/index37.js +176 -175
- package/dist/index39.js +3 -3
- 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 +1 -1
- package/dist/index61.js +1 -1
- package/dist/index75.js +37 -35
- package/dist/index77.js +54 -50
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +1 -1
- package/dist/index88.js +5 -5
- package/dist/index90.js +1 -1
- 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/index221.js +0 -4
- package/dist/index244.js +0 -252
- package/dist/index255.js +0 -108
- package/dist/index265.js +0 -25
- package/dist/index284.js +0 -128
- package/dist/index287.js +0 -24
- package/dist/index303.js +0 -24
- package/dist/index331.js +0 -482
package/dist/index37.js
CHANGED
@@ -1,40 +1,41 @@
|
|
1
|
-
import { defineComponent as
|
1
|
+
import { defineComponent as _e, ref as f, computed as y, toRef as T, openBlock as h, createBlock as L, normalizeClass as Z, withCtx as r, renderSlot as c, createVNode as K, unref as V, createElementVNode as F, createElementBlock as H, Fragment as ee, toDisplayString as Ge, createCommentVNode as te, withDirectives as je, withModifiers as p, withKeys as g, vModelDynamic as Je, renderList as Qe, mergeProps as le, normalizeStyle as Xe, nextTick as U } from "vue";
|
2
2
|
/* empty css */
|
3
3
|
/* empty css */
|
4
|
-
import { useId as
|
5
|
-
import { useMobile as
|
6
|
-
import
|
4
|
+
import { useId as Ye } from "./index8.js";
|
5
|
+
import { useMobile as Ze } from "./index9.js";
|
6
|
+
import et from "./index128.js";
|
7
7
|
/* empty css */
|
8
|
-
import { last as
|
9
|
-
import { matchAnyKey as ae } from "./
|
10
|
-
import { useFloating as
|
11
|
-
import { useIntersectionObserver as
|
12
|
-
import { wait as
|
13
|
-
import { when as
|
14
|
-
import
|
8
|
+
import { last as tt } from "./index214.js";
|
9
|
+
import { matchAnyKey as ae } from "./index253.js";
|
10
|
+
import { useFloating as lt } from "./index206.js";
|
11
|
+
import { useIntersectionObserver as at } from "./index132.js";
|
12
|
+
import { wait as E } from "./index130.js";
|
13
|
+
import { when as ot } from "./index241.js";
|
14
|
+
import nt from "./index254.js";
|
15
15
|
/* empty css */
|
16
|
-
import
|
16
|
+
import it from "./index256.js";
|
17
17
|
/* empty css */
|
18
|
-
import
|
18
|
+
import rt from "./index220.js";
|
19
19
|
/* empty css */
|
20
|
-
import
|
21
|
-
import { waitFor as
|
22
|
-
import
|
23
|
-
import { useItemsGetter as
|
24
|
-
import { usePrefill as
|
25
|
-
import { useArray as
|
26
|
-
import { useBaseOptions as
|
27
|
-
import { useIndexById as oe } from "./
|
28
|
-
import { useCoherence as
|
29
|
-
import { hash as
|
30
|
-
import { useHashedWatcher as ne } from "./
|
31
|
-
import { useLocale as
|
32
|
-
import { isEmpty as
|
33
|
-
import
|
34
|
-
|
20
|
+
import ut from "./index222.js";
|
21
|
+
import { waitFor as st } from "./index218.js";
|
22
|
+
import dt from "./index219.js";
|
23
|
+
import { useItemsGetter as ct } from "./index245.js";
|
24
|
+
import { usePrefill as pt } from "./index250.js";
|
25
|
+
import { useArray as mt } from "./index258.js";
|
26
|
+
import { useBaseOptions as ft } from "./index247.js";
|
27
|
+
import { useIndexById as oe } from "./index246.js";
|
28
|
+
import { useCoherence as vt } from "./index248.js";
|
29
|
+
import { hash as yt } from "./index231.js";
|
30
|
+
import { useHashedWatcher as ne } from "./index249.js";
|
31
|
+
import { useLocale as ht } from "./index216.js";
|
32
|
+
import { isEmpty as bt } from "./index224.js";
|
33
|
+
import gt from "./index259.js";
|
34
|
+
import { autoUpdate as wt, flip as Bt, offset as Vt, shift as It } from "./index225.js";
|
35
|
+
const kt = { class: "bb-base-select__input-container" }, St = {
|
35
36
|
key: 1,
|
36
37
|
class: "bb-base-select__max-reached"
|
37
|
-
},
|
38
|
+
}, Ct = ["id", "aria-controls", "aria-describedby", "aria-expanded", "autocomplete", "autofocus", "disabled", "inputmode", "placeholder", "readonly", "required", "onKeydown"], rl = /* @__PURE__ */ _e({
|
38
39
|
__name: "BaseSelect",
|
39
40
|
props: {
|
40
41
|
allowWriting: { type: [Boolean, String], default: !0 },
|
@@ -77,77 +78,77 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
77
78
|
updateOnAnimationFrame: { type: Boolean, default: !1 }
|
78
79
|
},
|
79
80
|
emits: ["blur", "change", "click", "focus", "inactive", "input", "update:modelValue", "option:add"],
|
80
|
-
setup(ie, { emit:
|
81
|
-
const t = ie, i =
|
81
|
+
setup(ie, { emit: re }) {
|
82
|
+
const t = ie, i = re;
|
82
83
|
if (t.multiple && !Array.isArray(t.modelValue))
|
83
84
|
throw new Error('Multiple is set to "true" but modelValue is not an array.');
|
84
|
-
const { t:
|
85
|
-
() => t.comma ? R.value :
|
86
|
-
), { isMobile:
|
87
|
-
() => t.allowWriting === "not-mobile" &&
|
88
|
-
),
|
89
|
-
|
85
|
+
const { t: ue } = ht(), x = f(null), I = f(null), n = f(null), R = f(null), _ = f(null), s = y(
|
86
|
+
() => t.comma ? R.value : _.value
|
87
|
+
), { isMobile: se } = Ze(), de = y(
|
88
|
+
() => t.allowWriting === "not-mobile" && se.value ? "none" : void 0
|
89
|
+
), G = t.id || Ye().id.value;
|
90
|
+
at(
|
90
91
|
// @ts-expect-error - wrong inferred type
|
91
92
|
I,
|
92
93
|
([{ intersectionRatio: e }]) => {
|
93
|
-
e !== 1 &&
|
94
|
+
e !== 1 && S();
|
94
95
|
},
|
95
96
|
{ threshold: [0, 1] }
|
96
97
|
);
|
97
|
-
const { floatingStyles:
|
98
|
+
const { floatingStyles: ce } = lt(
|
98
99
|
// @ts-expect-error - wrong inferred type
|
99
100
|
I,
|
100
101
|
n,
|
101
102
|
{
|
102
103
|
placement: "bottom",
|
103
|
-
whileElementsMounted:
|
104
|
-
middleware: [
|
104
|
+
whileElementsMounted: wt,
|
105
|
+
middleware: [Bt(), Vt(5), It()]
|
105
106
|
}
|
106
|
-
),
|
107
|
+
), pe = y(() => {
|
107
108
|
var l;
|
108
109
|
const e = {
|
109
|
-
...
|
110
|
+
...ce.value,
|
110
111
|
zIndex: "10"
|
111
112
|
};
|
112
113
|
return I.value && (e.width = `${(l = I.value) == null ? void 0 : l.$el.clientWidth}px`), e;
|
113
|
-
}),
|
114
|
-
|
115
|
-
},
|
116
|
-
i("focus", e),
|
117
|
-
},
|
118
|
-
t.prefill === "focus" && !$e.value && !
|
119
|
-
},
|
114
|
+
}), A = f(null), q = () => {
|
115
|
+
A.value instanceof HTMLInputElement && A.value.focus();
|
116
|
+
}, me = async (e) => {
|
117
|
+
i("focus", e), Ne(), document.addEventListener("click", $), document.addEventListener("focusin", $);
|
118
|
+
}, fe = () => {
|
119
|
+
t.prefill === "focus" && !$e.value && !J.value && De();
|
120
|
+
}, ve = async (e) => {
|
120
121
|
i("blur", e);
|
121
|
-
},
|
122
|
+
}, ye = (e) => i("change", e), he = (e) => {
|
122
123
|
var l;
|
123
124
|
i("input", e), a.value === "" && (t.multiple || i("update:modelValue", null)), (l = s.value) == null || l.blur(), N.value && k(), Se(a.value, !1, t.modelValue);
|
124
|
-
},
|
125
|
+
}, $ = async (e) => {
|
125
126
|
var l, o;
|
126
|
-
if (e.target instanceof Node &&
|
127
|
-
|
127
|
+
if (e.target instanceof Node && x.value && !x.value.$el.contains(e.target) && !((o = (l = n.value) == null ? void 0 : l.$el) != null && o.contains(e.target))) {
|
128
|
+
S(), We(), document.removeEventListener("click", $), document.removeEventListener("focusin", $), await E(t.transitionDuration), b();
|
128
129
|
return;
|
129
130
|
}
|
130
|
-
},
|
131
|
+
}, w = y(() => !(t.readonly || t.disabled || O.value || !s.value && t.multiple && u.value.length <= t.maxSelectedLabels)), be = async () => {
|
131
132
|
var e, l, o;
|
132
|
-
|
133
|
-
},
|
133
|
+
w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusPrevious() : (await k(), await E(t.transitionDuration), (o = n.value) == null || o.focusLastSelected()));
|
134
|
+
}, ge = async () => {
|
134
135
|
var e, l, o;
|
135
|
-
|
136
|
-
},
|
137
|
-
var o, d, v,
|
138
|
-
if (!
|
136
|
+
w.value && ((e = s.value) == null || e.blur(), m.value ? (l = n.value) == null || l.focusNext() : (await k(), await E(t.transitionDuration), (o = n.value) == null || o.focusFirstSelected()));
|
137
|
+
}, we = (e) => {
|
138
|
+
var o, d, v, C;
|
139
|
+
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !u.value.length)) return;
|
139
140
|
(d = s.value) == null || d.focusPrevious();
|
140
141
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
141
|
-
l && ((
|
142
|
-
},
|
143
|
-
var o, d, v,
|
144
|
-
if (!
|
142
|
+
l && ((C = n.value) == null || C.focusByHash(l.valueHash));
|
143
|
+
}, Be = (e) => {
|
144
|
+
var o, d, v, C;
|
145
|
+
if (!w.value || !t.multiple || a.value || (e.preventDefault(), (o = n.value) == null || o.blur(), !u.value.length)) return;
|
145
146
|
(d = s.value) == null || d.focusNext();
|
146
147
|
const l = (v = s.value) == null ? void 0 : v.getHighlighted();
|
147
|
-
l && ((
|
148
|
-
},
|
148
|
+
l && ((C = n.value) == null || C.focusByHash(l.valueHash));
|
149
|
+
}, Ve = async () => {
|
149
150
|
var l, o;
|
150
|
-
if (!
|
151
|
+
if (!w.value)
|
151
152
|
return;
|
152
153
|
if (m.value) {
|
153
154
|
if ((o = n.value) != null && o.getHighlighted()) {
|
@@ -155,32 +156,32 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
155
156
|
return;
|
156
157
|
}
|
157
158
|
} else {
|
158
|
-
await k(), await
|
159
|
+
await k(), await E(t.transitionDuration), u.value.length && ((l = n.value) == null || l.focusFirstSelected());
|
159
160
|
return;
|
160
161
|
}
|
161
162
|
const e = a.value.trim();
|
162
|
-
|
163
|
+
Ee(e) || (i("option:add", e), a.value = "");
|
164
|
+
}, Ie = async () => {
|
165
|
+
m.value && await S();
|
163
166
|
}, ke = async () => {
|
164
|
-
m.value && await C();
|
165
|
-
}, Ce = async () => {
|
166
167
|
var e, l;
|
167
|
-
!
|
168
|
+
!w.value || a.value || !u.value.length || ((e = s.value) != null && e.getHighlighted() && s.value.confirmOption(), await U(), (l = s.value) == null || l.focusPrevious());
|
168
169
|
}, a = f(""), {
|
169
170
|
getter: M,
|
170
171
|
debouncedGetter: Se,
|
171
|
-
items:
|
172
|
-
loading:
|
173
|
-
} =
|
174
|
-
items:
|
172
|
+
items: Ce,
|
173
|
+
loading: j
|
174
|
+
} = ct({
|
175
|
+
items: T(t, "items"),
|
175
176
|
debounce: t.queryDebounceTime
|
176
177
|
}), P = () => {
|
177
178
|
var e, l;
|
178
|
-
t.enforceCoherence && !Y.value && (t.multiple ? i("update:modelValue",
|
179
|
+
t.enforceCoherence && !Y.value && (t.multiple ? i("update:modelValue", Me.value.coherent) : i("update:modelValue", null), (e = s.value) == null || e.blur(), (l = n.value) == null || l.blur());
|
179
180
|
}, {
|
180
|
-
hasPrefilled:
|
181
|
+
hasPrefilled: J,
|
181
182
|
isPrefilling: $e,
|
182
|
-
prefill:
|
183
|
-
} =
|
183
|
+
prefill: De
|
184
|
+
} = pt({
|
184
185
|
onStart: t.prefill === !0,
|
185
186
|
currentValue: t.modelValue,
|
186
187
|
multiple: t.multiple,
|
@@ -188,58 +189,58 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
188
189
|
await M(a.value, e, t.modelValue), P(), b();
|
189
190
|
}
|
190
191
|
}), {
|
191
|
-
array:
|
192
|
+
array: Oe,
|
192
193
|
add: Te,
|
193
|
-
remove:
|
194
|
-
set:
|
195
|
-
} =
|
196
|
-
items:
|
197
|
-
}), { options:
|
198
|
-
disabled:
|
199
|
-
items: y(() => [...
|
194
|
+
remove: Le,
|
195
|
+
set: Fe
|
196
|
+
} = mt(), u = y(() => D.value.filter((e) => e.selected)), He = y(() => u.value.length ? "" : t.placeholder), { data: Q, get: Ee } = oe({
|
197
|
+
items: T(t, "modelValue")
|
198
|
+
}), { options: D } = ft({
|
199
|
+
disabled: T(t, "disabled"),
|
200
|
+
items: y(() => [...Ce.value, ...Oe.value]),
|
200
201
|
itemText: t.itemText,
|
201
202
|
itemValue: t.itemValue,
|
202
203
|
max: t.max,
|
203
204
|
selectable: !0,
|
204
|
-
selectedIndexedByHash:
|
205
|
-
}), O = y(() => !!(
|
205
|
+
selectedIndexedByHash: Q
|
206
|
+
}), O = y(() => !!(j.value || t.loading)), xe = y(() => {
|
206
207
|
let e = [];
|
207
|
-
const l =
|
208
|
+
const l = u.value.some(
|
208
209
|
(d) => d.text === a.value
|
209
210
|
);
|
210
|
-
return (t.multiple && a.value || a.value && !l && !t.multiple) && t.filterBy ? e =
|
211
|
+
return (t.multiple && a.value || a.value && !l && !t.multiple) && t.filterBy ? e = D.value.filter((d) => {
|
211
212
|
let v = !1;
|
212
213
|
return typeof t.filterBy == "function" ? v = t.filterBy(d.value, d.item) : Array.isArray(t.filterBy) && t.filterBy.length && (v = v || ae(d.item, t.filterBy, a.value.trim())), v || ae(d, ["text"], a.value.trim());
|
213
|
-
}) : e =
|
214
|
+
}) : e = D.value, e;
|
214
215
|
}), b = () => {
|
215
216
|
if (t.multiple) {
|
216
217
|
a.value = "";
|
217
218
|
return;
|
218
219
|
}
|
219
220
|
let e;
|
220
|
-
|
221
|
-
},
|
222
|
-
t.multiple ? (i("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash &&
|
221
|
+
u.value && (e = tt(u.value)), a.value = (e == null ? void 0 : e.text) || "";
|
222
|
+
}, Ae = async (e) => {
|
223
|
+
t.multiple ? (i("update:modelValue", t.modelValue.concat(e.value)), t.stash && Te(e.item), b()) : (t.stash && Fe(e.item), i("update:modelValue", e.value), await U(), b()), q(), t.multiple || S();
|
223
224
|
}, X = async (e) => {
|
224
|
-
if (
|
225
|
-
const l = { ...
|
225
|
+
if (Le((l) => l.valueHash !== e.valueHash), t.multiple) {
|
226
|
+
const l = { ...Q.value };
|
226
227
|
delete l[e.valueHash], i("update:modelValue", Object.values(l));
|
227
228
|
} else
|
228
229
|
i("update:modelValue", null), await U(), b();
|
229
230
|
q();
|
230
|
-
}, { data:
|
231
|
-
items:
|
231
|
+
}, { data: qe } = oe({
|
232
|
+
items: D,
|
232
233
|
key: "valueHash"
|
233
|
-
}), { coherent: Y, status:
|
234
|
-
modelValue:
|
234
|
+
}), { coherent: Y, status: Me } = vt({
|
235
|
+
modelValue: T(t, "modelValue"),
|
235
236
|
multiple: t.multiple,
|
236
|
-
iteratee: (e) => !!
|
237
|
+
iteratee: (e) => !!qe.value[yt(e)]
|
237
238
|
});
|
238
|
-
let
|
239
|
+
let B = 0;
|
239
240
|
ne(
|
240
241
|
() => t.modelValue,
|
241
242
|
async () => {
|
242
|
-
|
243
|
+
B++, Y.value || (await M(a.value, !1, t.modelValue), P()), B === 1 && b(), B--;
|
243
244
|
},
|
244
245
|
{
|
245
246
|
debounce: t.modelValueDebounceTime
|
@@ -247,41 +248,41 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
247
248
|
), ne(
|
248
249
|
() => [t.dependencies, t.items],
|
249
250
|
async () => {
|
250
|
-
|
251
|
+
J.value && (B++, await M(a.value, !1, t.modelValue), B === 1 && (P(), b()), B--);
|
251
252
|
},
|
252
253
|
{
|
253
254
|
debounce: t.depsDebounceTime
|
254
255
|
}
|
255
256
|
);
|
256
257
|
const m = f(!1), N = f(!0), W = f(!1), k = async () => {
|
257
|
-
W.value = !0, await
|
258
|
-
},
|
258
|
+
W.value = !0, await st(() => !!n.value), N.value = !1, m.value = !0;
|
259
|
+
}, S = async () => {
|
259
260
|
var e;
|
260
261
|
m.value = !1, N.value = !0, (e = s.value) == null || e.blur();
|
261
|
-
},
|
262
|
+
}, Pe = () => m.value ? S() : k(), z = f(!1), Ne = () => {
|
262
263
|
z.value = !0;
|
263
|
-
},
|
264
|
+
}, We = () => {
|
264
265
|
z.value = !1, i("inactive");
|
265
|
-
},
|
266
|
-
e.preventDefault(), i("click", e), !(t.disabled || t.readonly) && (q(),
|
267
|
-
},
|
266
|
+
}, ze = (e) => {
|
267
|
+
e.preventDefault(), i("click", e), !(t.disabled || t.readonly) && (q(), Pe());
|
268
|
+
}, Ke = ot(
|
268
269
|
(e) => typeof e != "string",
|
269
270
|
JSON.stringify
|
270
|
-
),
|
271
|
-
const l =
|
271
|
+
), Ue = y(() => [].concat(t.modelValue).map((e) => {
|
272
|
+
const l = Ke(e);
|
272
273
|
return {
|
273
274
|
disabled: t.disabled,
|
274
275
|
name: t.name,
|
275
276
|
type: "hidden",
|
276
277
|
value: l
|
277
278
|
};
|
278
|
-
})),
|
279
|
+
})), Re = () => {
|
279
280
|
let e = null;
|
280
281
|
t.multiple && (e = []), i("update:modelValue", e);
|
281
282
|
};
|
282
|
-
return (e, l) => (h(),
|
283
|
+
return (e, l) => (h(), L(ut, {
|
283
284
|
ref_key: "outerContainer",
|
284
|
-
ref:
|
285
|
+
ref: x,
|
285
286
|
class: Z({
|
286
287
|
"bb-base-select": !0,
|
287
288
|
"bb-base-select--active": z.value,
|
@@ -292,97 +293,97 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
292
293
|
"bb-base-select--readonly": e.readonly,
|
293
294
|
"bb-base-select--compact": e.compact
|
294
295
|
}),
|
295
|
-
onClick:
|
296
|
+
onClick: ze
|
296
297
|
}, {
|
297
|
-
"prepend-outer":
|
298
|
+
"prepend-outer": r(() => [
|
298
299
|
c(e.$slots, "prepend-outer", { query: a.value })
|
299
300
|
]),
|
300
|
-
"append-outer":
|
301
|
+
"append-outer": r(() => [
|
301
302
|
c(e.$slots, "append-outer", { query: a.value })
|
302
303
|
]),
|
303
|
-
default:
|
304
|
-
K(
|
304
|
+
default: r(() => [
|
305
|
+
K(rt, {
|
305
306
|
ref_key: "innerContainer",
|
306
307
|
ref: I,
|
307
308
|
"append:icon": t["append:icon"],
|
308
|
-
clearable: e.clearable && !
|
309
|
+
clearable: e.clearable && !V(bt)(e.modelValue),
|
309
310
|
"prepend:icon": t["prepend:icon"],
|
310
311
|
"prevent-focus": !0,
|
311
|
-
"onClick:clear":
|
312
|
+
"onClick:clear": Re
|
312
313
|
}, {
|
313
|
-
prepend:
|
314
|
+
prepend: r(() => [
|
314
315
|
c(e.$slots, "prepend", { query: a.value })
|
315
316
|
]),
|
316
|
-
prefix:
|
317
|
+
prefix: r(() => [
|
317
318
|
c(e.$slots, "prefix")
|
318
319
|
]),
|
319
|
-
append:
|
320
|
+
append: r(() => [
|
320
321
|
c(e.$slots, "append", { query: a.value })
|
321
322
|
]),
|
322
|
-
suffix:
|
323
|
+
suffix: r(() => [
|
323
324
|
c(e.$slots, "suffix")
|
324
325
|
]),
|
325
|
-
default:
|
326
|
-
K(
|
327
|
-
default:
|
328
|
-
F("span",
|
329
|
-
e.multiple &&
|
330
|
-
e.comma ? (h(),
|
326
|
+
default: r(() => [
|
327
|
+
K(V(et), { tag: "span" }, {
|
328
|
+
default: r(() => [
|
329
|
+
F("span", kt, [
|
330
|
+
e.multiple && u.value.length <= e.maxSelectedLabels ? (h(), H(ee, { key: 0 }, [
|
331
|
+
e.comma ? (h(), L(it, {
|
331
332
|
key: 0,
|
332
333
|
ref_key: "commaBox",
|
333
334
|
ref: R,
|
334
|
-
options:
|
335
|
-
}, null, 8, ["options"])) : (h(),
|
335
|
+
options: u.value
|
336
|
+
}, null, 8, ["options"])) : (h(), L(nt, {
|
336
337
|
key: 1,
|
337
338
|
ref_key: "chipsBox",
|
338
|
-
ref:
|
339
|
-
options:
|
339
|
+
ref: _,
|
340
|
+
options: u.value,
|
340
341
|
"onOption:unselected": X
|
341
342
|
}, null, 8, ["options"]))
|
342
|
-
], 64)) : e.multiple ? (h(), H("span", St,
|
343
|
-
|
344
|
-
id:
|
343
|
+
], 64)) : e.multiple ? (h(), H("span", St, Ge(e.selectedLabelsFn ? e.selectedLabelsFn(u.value.length) : V(ue)("select.multipleMaxReached", u.value.length)), 1)) : te("", !0),
|
344
|
+
je(F("input", {
|
345
|
+
id: V(G),
|
345
346
|
ref_key: "input",
|
346
|
-
ref:
|
347
|
+
ref: A,
|
347
348
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => a.value = o),
|
348
349
|
"aria-autocomplete": "list",
|
349
|
-
"aria-controls": W.value ? `${
|
350
|
+
"aria-controls": W.value ? `${V(G)}_listbox` : void 0,
|
350
351
|
"aria-describedby": e.ariaDescribedby,
|
351
352
|
"aria-expanded": m.value,
|
352
353
|
autocomplete: e.autocomplete,
|
353
354
|
autofocus: e.autofocus,
|
354
355
|
class: Z("bb-base-select__text-input"),
|
355
356
|
disabled: e.disabled,
|
356
|
-
inputmode:
|
357
|
-
placeholder:
|
357
|
+
inputmode: de.value,
|
358
|
+
placeholder: He.value,
|
358
359
|
readonly: e.readonly || !e.allowWriting,
|
359
360
|
required: e.required && (!e.multiple || !e.modelValue.length),
|
360
361
|
role: "combobox",
|
361
362
|
size: "1",
|
362
363
|
type: "text",
|
363
|
-
onBlur: p(
|
364
|
-
onChange: p(
|
365
|
-
onFocusOnce: p(
|
366
|
-
onFocus: p(
|
367
|
-
onInput: p(
|
364
|
+
onBlur: p(ve, ["stop"]),
|
365
|
+
onChange: p(ye, ["stop"]),
|
366
|
+
onFocusOnce: p(fe, ["stop"]),
|
367
|
+
onFocus: p(me, ["stop"]),
|
368
|
+
onInput: p(he, ["stop"]),
|
368
369
|
onKeydown: [
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
370
|
+
g(p(ke, ["stop"]), ["delete"]),
|
371
|
+
g(p(we, ["stop"]), ["left"]),
|
372
|
+
g(p(ge, ["stop", "prevent"]), ["down"]),
|
373
|
+
g(p(Ve, ["stop", "prevent"]), ["enter"]),
|
374
|
+
g(p(Ie, ["stop", "prevent"]), ["esc"]),
|
375
|
+
g(p(be, ["stop", "prevent"]), ["up"]),
|
376
|
+
g(p(Be, ["stop"]), ["right"])
|
376
377
|
]
|
377
|
-
}, null, 40,
|
378
|
-
[
|
378
|
+
}, null, 40, Ct), [
|
379
|
+
[Je, a.value]
|
379
380
|
])
|
380
381
|
])
|
381
382
|
]),
|
382
383
|
_: 1
|
383
384
|
}),
|
384
385
|
c(e.$slots, "chevron", {
|
385
|
-
loading: !!
|
386
|
+
loading: !!V(j),
|
386
387
|
shown: m.value
|
387
388
|
}, () => [
|
388
389
|
l[1] || (l[1] = F("svg", {
|
@@ -399,16 +400,16 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
399
400
|
]),
|
400
401
|
_: 3
|
401
402
|
}, 8, ["append:icon", "clearable", "prepend:icon"]),
|
402
|
-
(h(!0), H(ee, null,
|
403
|
+
(h(!0), H(ee, null, Qe(Ue.value, (o) => (h(), H("input", le({
|
403
404
|
key: o.value,
|
404
405
|
ref_for: !0
|
405
406
|
}, o), null, 16))), 128)),
|
406
|
-
W.value ? (h(),
|
407
|
+
W.value ? (h(), L(dt, {
|
407
408
|
key: 0,
|
408
409
|
target: e.teleportTarget
|
409
410
|
}, {
|
410
|
-
default:
|
411
|
-
K(
|
411
|
+
default: r(() => [
|
412
|
+
K(gt, {
|
412
413
|
ref_key: "optionsContainer",
|
413
414
|
ref: n,
|
414
415
|
compact: e.compact,
|
@@ -416,24 +417,24 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
416
417
|
"loading-text": e.loadingText,
|
417
418
|
"no-data-text": e.noDataText,
|
418
419
|
open: m.value,
|
419
|
-
options:
|
420
|
-
style:
|
421
|
-
"onOption:selected":
|
420
|
+
options: xe.value,
|
421
|
+
style: Xe(pe.value),
|
422
|
+
"onOption:selected": Ae,
|
422
423
|
"onOption:unselected": X
|
423
424
|
}, {
|
424
|
-
"options:prepend":
|
425
|
+
"options:prepend": r(() => [
|
425
426
|
c(e.$slots, "options:prepend")
|
426
427
|
]),
|
427
|
-
loading:
|
428
|
+
loading: r(() => [
|
428
429
|
c(e.$slots, "loading", { query: a.value })
|
429
430
|
]),
|
430
|
-
"no-data":
|
431
|
+
"no-data": r(() => [
|
431
432
|
c(e.$slots, "no-data", { query: a.value })
|
432
433
|
]),
|
433
|
-
"options:append":
|
434
|
+
"options:append": r(() => [
|
434
435
|
c(e.$slots, "options:append")
|
435
436
|
]),
|
436
|
-
option:
|
437
|
+
option: r((o) => [
|
437
438
|
c(e.$slots, "option", le({
|
438
439
|
hasErrors: e.hasErrors,
|
439
440
|
loading: O.value
|
@@ -450,5 +451,5 @@ const Ct = { class: "bb-base-select__input-container" }, St = {
|
|
450
451
|
}
|
451
452
|
});
|
452
453
|
export {
|
453
|
-
|
454
|
+
rl as default
|
454
455
|
};
|
package/dist/index39.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
import { defineComponent as U, ref as d, computed as h, onMounted as W, watch as Z, 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 "./
|
2
|
+
import { clamp as le } from "./index205.js";
|
3
3
|
import { head as O } from "./index251.js";
|
4
|
-
import { isCssColor as Y } from "./
|
4
|
+
import { isCssColor as Y } from "./index240.js";
|
5
5
|
import { isNil as P } from "./index252.js";
|
6
6
|
import { isNotNil as ne } from "./index134.js";
|
7
7
|
import { transposeValue as y } from "./index131.js";
|
8
|
-
import { hash as J } from "./
|
8
|
+
import { hash as J } from "./index231.js";
|
9
9
|
const oe = { class: "bb-base-slider__slider-container" }, ie = {
|
10
10
|
key: 0,
|
11
11
|
class: "bb-base-slider__ticks-container"
|
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 "./index240.js";
|
3
|
+
import { when as N } from "./index241.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 "./index243.js";
|
5
5
|
/* empty css */
|
6
|
-
import { useItemsGetter as U } from "./
|
7
|
-
import { useIndexById as T } from "./
|
8
|
-
import { useBaseOptions as q } from "./
|
9
|
-
import { useCoherence as J } from "./
|
10
|
-
import { hash as Q } from "./
|
11
|
-
import { useHashedWatcher as E } from "./
|
12
|
-
import { usePrefill as X } from "./
|
6
|
+
import { useItemsGetter as U } from "./index245.js";
|
7
|
+
import { useIndexById as T } from "./index246.js";
|
8
|
+
import { useBaseOptions as q } from "./index247.js";
|
9
|
+
import { useCoherence as J } from "./index248.js";
|
10
|
+
import { hash as Q } from "./index231.js";
|
11
|
+
import { useHashedWatcher as E } from "./index249.js";
|
12
|
+
import { usePrefill as X } from "./index250.js";
|
13
13
|
const ue = /* @__PURE__ */ j({
|
14
14
|
__name: "BaseSwitchGroup",
|
15
15
|
props: {
|