@mintplayer/vue-bootstrap 3.24.0 → 3.26.0
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/accordion/index.mjs +54 -64
- package/calendar/index.mjs +27 -28
- package/card/index.mjs +104 -145
- package/carousel/index.mjs +74 -58
- package/charts/hierarchy/index.mjs +44 -43
- package/charts/sparkline/index.mjs +25 -24
- package/charts/trend/index.mjs +25 -24
- package/checkbox/index.mjs +27 -28
- package/chunks/useMachine-DLZ7g_H3.mjs +14 -0
- package/code-snippet/index.mjs +34 -32
- package/datatable/index.mjs +84 -70
- package/datepicker/index.mjs +27 -28
- package/datetime-picker/index.mjs +27 -28
- package/dock/index.mjs +27 -28
- package/dropdown-menu/index.mjs +63 -69
- package/dropdown-menu/src/BsDropdownItem.vue.d.ts +1 -1
- package/dropdown-menu/src/BsDropdownMenu.vue.d.ts +2 -6
- package/dropdown-menu/src/index.d.ts +1 -1
- package/file-manager/index.mjs +18 -19
- package/index.mjs +0 -1
- package/input-group/index.mjs +11 -12
- package/machine/index.mjs +1 -0
- package/machine/src/index.d.ts +1 -0
- package/machine/src/useMachine.d.ts +13 -0
- package/machine/src/useMachine.spec.d.ts +1 -0
- package/multi-range/index.mjs +27 -26
- package/navbar/index.mjs +77 -80
- package/otp-input/index.mjs +27 -26
- package/package.json +11 -2
- package/pagination/index.mjs +27 -26
- package/phone-input/index.mjs +35 -34
- package/query-builder/index.mjs +45 -41
- package/radio/index.mjs +27 -28
- package/radio-group/index.mjs +27 -28
- package/ribbon/index.mjs +28 -47
- package/scheduler/index.mjs +45 -42
- package/select/index.mjs +33 -34
- package/shell/index.mjs +37 -33
- package/signature-pad/index.mjs +26 -25
- package/splitter/index.mjs +12 -14
- package/tab-control/index.mjs +28 -31
- package/theming/index.mjs +37 -55
- package/tile-manager/index.mjs +18 -21
- package/timeline/index.mjs +151 -146
- package/timepicker/index.mjs +49 -53
- package/toggle-button/index.mjs +27 -28
- package/tree-select/index.mjs +105 -97
- package/treeview/index.mjs +56 -55
- package/typeahead/index.mjs +119 -0
- package/typeahead/src/BsTypeahead.vue.d.ts +46 -0
- package/typeahead/src/index.d.ts +3 -0
- package/vue-bootstrap.css +2 -1
package/tree-select/index.mjs
CHANGED
|
@@ -1,98 +1,106 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { InMemoryTreeSelectProvider as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, h as n, mergeModels as r, mergeProps as i, onBeforeUnmount as a, onMounted as o, openBlock as s, ref as c, render as l, useModel as u, useSlots as d, watch as f } from "vue";
|
|
2
|
+
import { InMemoryTreeSelectProvider as p } from "@mintplayer/web-components/tree-select";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/tree-select/src/BsTreeSelect.vue
|
|
5
|
+
var m = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTreeSelect",
|
|
8
|
+
props: /*@__PURE__*/ r({
|
|
9
|
+
provider: {},
|
|
10
|
+
mode: { default: "single" },
|
|
11
|
+
variant: { default: "textbox" },
|
|
12
|
+
cascadeSelect: {
|
|
13
|
+
type: Boolean,
|
|
14
|
+
default: !1
|
|
15
|
+
},
|
|
16
|
+
placeholder: { default: "" },
|
|
17
|
+
showClear: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
panelScrollHeight: { default: "300px" },
|
|
22
|
+
searchDebounceMs: { default: 200 },
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
modelValue: { default: null },
|
|
29
|
+
modelModifiers: {}
|
|
30
|
+
}),
|
|
31
|
+
emits: ["update:modelValue"],
|
|
32
|
+
setup(t) {
|
|
33
|
+
let r = t, p = u(t, "modelValue"), m = c(null), h = () => {
|
|
34
|
+
let e = m.value;
|
|
35
|
+
e && (e.mode = r.mode, e.variant = r.variant, e.cascadeSelect = r.cascadeSelect, e.placeholder = r.placeholder, e.showClear = r.showClear, e.panelScrollHeight = r.panelScrollHeight, e.searchDebounceMs = r.searchDebounceMs, e.disabled = r.disabled, e.provider = r.provider);
|
|
36
|
+
}, g = d(), _ = [];
|
|
37
|
+
function v(e) {
|
|
38
|
+
return _.push(e), e;
|
|
39
|
+
}
|
|
40
|
+
function y(e) {
|
|
41
|
+
let t = g[e];
|
|
42
|
+
if (!t) return;
|
|
43
|
+
let r = /* @__PURE__ */ new Map();
|
|
44
|
+
return (e, i) => {
|
|
45
|
+
let a = r.get(e.id);
|
|
46
|
+
if (a) r.delete(e.id), r.set(e.id, a);
|
|
47
|
+
else if (a = v(document.createElement("span")), r.set(e.id, a), r.size > 400) {
|
|
48
|
+
let e = r.keys().next().value, t = r.get(e);
|
|
49
|
+
if (t) {
|
|
50
|
+
l(null, t);
|
|
51
|
+
let e = _.indexOf(t);
|
|
52
|
+
e > -1 && _.splice(e, 1);
|
|
53
|
+
}
|
|
54
|
+
r.delete(e);
|
|
55
|
+
}
|
|
56
|
+
return l(n("span", null, t({
|
|
57
|
+
node: e,
|
|
58
|
+
query: i
|
|
59
|
+
})), a), a;
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
function b() {
|
|
63
|
+
let e = g.button;
|
|
64
|
+
if (!e) return;
|
|
65
|
+
let t = v(document.createElement("span"));
|
|
66
|
+
return (r) => (l(n("span", null, e({ value: r })), t), t);
|
|
67
|
+
}
|
|
68
|
+
function x(e) {
|
|
69
|
+
let t = g[e];
|
|
70
|
+
if (!t) return;
|
|
71
|
+
let r = v(document.createElement("span"));
|
|
72
|
+
return () => (l(n("span", null, t()), r), r);
|
|
73
|
+
}
|
|
74
|
+
let S = () => {
|
|
75
|
+
let e = m.value;
|
|
76
|
+
e && (e.itemTemplate = y("item"), e.suggestionTemplate = y("suggestion"), e.buttonTemplate = b(), e.headerTemplate = x("header"), e.footerTemplate = x("footer"), e.noResultsTemplate = x("noResults"), e.enterSearchTermTemplate = x("enterSearchTerm"));
|
|
77
|
+
};
|
|
78
|
+
o(() => {
|
|
79
|
+
h(), S(), m.value && (m.value.value = p.value);
|
|
80
|
+
}), f(() => [
|
|
81
|
+
r.mode,
|
|
82
|
+
r.variant,
|
|
83
|
+
r.cascadeSelect,
|
|
84
|
+
r.placeholder,
|
|
85
|
+
r.showClear,
|
|
86
|
+
r.panelScrollHeight,
|
|
87
|
+
r.searchDebounceMs,
|
|
88
|
+
r.disabled,
|
|
89
|
+
r.provider
|
|
90
|
+
], h), f(p, (e) => {
|
|
91
|
+
m.value && (m.value.value = e ?? null);
|
|
92
|
+
}), a(() => {
|
|
93
|
+
for (let e of _) l(null, e);
|
|
94
|
+
});
|
|
95
|
+
function C(e) {
|
|
96
|
+
let t = e.detail;
|
|
97
|
+
p.value = t?.value ?? null;
|
|
98
|
+
}
|
|
99
|
+
return (t, n) => (s(), e("mp-tree-select", i({
|
|
100
|
+
ref_key: "el",
|
|
101
|
+
ref: m
|
|
102
|
+
}, t.$attrs, { onValueChange: C }), null, 16));
|
|
103
|
+
}
|
|
94
104
|
});
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
W as InMemoryTreeSelectProvider
|
|
98
|
-
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { m as BsTreeSelect, p as InMemoryTreeSelectProvider };
|
package/treeview/index.mjs
CHANGED
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, mergeModels as n, mergeProps as r, onMounted as i, openBlock as a, ref as o, useModel as s, watch as c } from "vue";
|
|
2
2
|
import "@mintplayer/web-components/treeview";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region libs/mintplayer-vue-bootstrap/treeview/src/BsTreeview.vue
|
|
5
|
+
var l = /* @__PURE__ */ t({
|
|
6
|
+
inheritAttrs: !1,
|
|
7
|
+
__name: "BsTreeview",
|
|
8
|
+
props: /*@__PURE__*/ n({
|
|
9
|
+
items: {},
|
|
10
|
+
selectionMode: {},
|
|
11
|
+
nodeRenderer: { type: Function },
|
|
12
|
+
iconResolver: { type: Function }
|
|
13
|
+
}, {
|
|
14
|
+
expandedIds: { default: () => [] },
|
|
15
|
+
expandedIdsModifiers: {},
|
|
16
|
+
selectedIds: { default: () => [] },
|
|
17
|
+
selectedIdsModifiers: {}
|
|
18
|
+
}),
|
|
19
|
+
emits: ["update:expandedIds", "update:selectedIds"],
|
|
20
|
+
setup(t) {
|
|
21
|
+
let n = t, l = s(t, "expandedIds"), u = s(t, "selectedIds"), d = o(null), f = () => {
|
|
22
|
+
d.value && (d.value.items = n.items ?? []);
|
|
23
|
+
}, p = () => {
|
|
24
|
+
d.value && (d.value.expandedIds = l.value);
|
|
25
|
+
}, m = () => {
|
|
26
|
+
d.value && (d.value.selectedIds = u.value);
|
|
27
|
+
}, h = () => {
|
|
28
|
+
d.value && (d.value.selectionMode = n.selectionMode ?? "single");
|
|
29
|
+
}, g = () => {
|
|
30
|
+
d.value && (n.nodeRenderer !== void 0 && (d.value.nodeRenderer = n.nodeRenderer), n.iconResolver !== void 0 && (d.value.iconResolver = n.iconResolver));
|
|
31
|
+
};
|
|
32
|
+
i(() => {
|
|
33
|
+
f(), p(), m(), h(), g();
|
|
34
|
+
}), c(() => n.items, f), c(l, p), c(u, m), c(() => n.selectionMode, h), c(() => n.nodeRenderer, g), c(() => n.iconResolver, g);
|
|
35
|
+
function _(e) {
|
|
36
|
+
let t = e.detail;
|
|
37
|
+
t && (l.value = [...t.expandedIds]);
|
|
38
|
+
}
|
|
39
|
+
function v(e) {
|
|
40
|
+
let t = e.detail;
|
|
41
|
+
t && (l.value = [...t.expandedIds]);
|
|
42
|
+
}
|
|
43
|
+
function y(e) {
|
|
44
|
+
let t = e.detail;
|
|
45
|
+
t && (u.value = [...t.selectedIds]);
|
|
46
|
+
}
|
|
47
|
+
return (t, n) => (a(), e("mp-treeview", r({
|
|
48
|
+
ref_key: "el",
|
|
49
|
+
ref: d
|
|
50
|
+
}, t.$attrs, {
|
|
51
|
+
onTreeNodeExpand: _,
|
|
52
|
+
onTreeNodeCollapse: v,
|
|
53
|
+
onTreeNodeSelect: y
|
|
54
|
+
}), null, 16));
|
|
55
|
+
}
|
|
54
56
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
57
|
+
//#endregion
|
|
58
|
+
export { l as BsTreeview };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { t as e } from "../chunks/useMachine-DLZ7g_H3.mjs";
|
|
2
|
+
import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, getCurrentInstance as c, mergeModels as l, mergeProps as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useModel as _, watch as v, withModifiers as y } from "vue";
|
|
3
|
+
import { installLightStyles as b } from "@mintplayer/ui-core/scoped-styles";
|
|
4
|
+
import { TYPEAHEAD_SCOPE as x, TypeaheadMachine as S, connect as C, inMemoryTypeaheadProvider as w, typeaheadScopedStyles as T } from "@mintplayer/ui-core/typeahead";
|
|
5
|
+
//#region libs/mintplayer-vue-bootstrap/typeahead/src/BsTypeahead.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var E = ["value"], D = ["onClick"], O = /* @__PURE__ */ s({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "BsTypeahead",
|
|
9
|
+
props: /*@__PURE__*/ l({
|
|
10
|
+
provider: {
|
|
11
|
+
type: [Function, null],
|
|
12
|
+
default: null
|
|
13
|
+
},
|
|
14
|
+
debounceMs: { default: 200 },
|
|
15
|
+
minLength: { default: 1 },
|
|
16
|
+
itemText: {},
|
|
17
|
+
itemKey: {},
|
|
18
|
+
disabled: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
name: { default: null },
|
|
23
|
+
inputLabel: { default: null },
|
|
24
|
+
loadingLabel: {},
|
|
25
|
+
noResultsLabel: {},
|
|
26
|
+
resultsLabel: {},
|
|
27
|
+
errorText: { default: null }
|
|
28
|
+
}, {
|
|
29
|
+
modelValue: { default: "" },
|
|
30
|
+
modelModifiers: {}
|
|
31
|
+
}),
|
|
32
|
+
emits: /*@__PURE__*/ l([
|
|
33
|
+
"select",
|
|
34
|
+
"submit",
|
|
35
|
+
"open",
|
|
36
|
+
"close",
|
|
37
|
+
"loadError"
|
|
38
|
+
], ["update:modelValue"]),
|
|
39
|
+
setup(s, { emit: l }) {
|
|
40
|
+
let w = s, O = _(s, "modelValue"), k = l, A = `bs-typeahead-${c()?.uid ?? Math.random().toString(36).slice(2)}`, [j, M] = e(() => new S({
|
|
41
|
+
id: A,
|
|
42
|
+
value: O.value,
|
|
43
|
+
onChange: (e) => {
|
|
44
|
+
O.value = e;
|
|
45
|
+
},
|
|
46
|
+
onSelect: (e, t) => k("select", e, t),
|
|
47
|
+
onSubmit: (e) => k("submit", e),
|
|
48
|
+
onOpen: () => k("open"),
|
|
49
|
+
onClose: () => k("close"),
|
|
50
|
+
onError: (e) => k("loadError", e)
|
|
51
|
+
}));
|
|
52
|
+
b(x, T), v(() => w.provider, (e) => j.provider = e, { immediate: !0 }), v(() => w.debounceMs, (e) => j.debounceMs = e, { immediate: !0 }), v(() => w.minLength, (e) => j.minLength = e, { immediate: !0 }), v(() => [w.itemText, w.itemKey], ([e, t]) => {
|
|
53
|
+
j.itemText = e, j.itemKey = t;
|
|
54
|
+
}, { immediate: !0 }), v(() => w.disabled, (e) => j.setDisabled(e), { immediate: !0 }), v(() => w.errorText, (e) => j.setErrorText(e), { immediate: !0 }), v(() => [
|
|
55
|
+
w.inputLabel,
|
|
56
|
+
w.loadingLabel,
|
|
57
|
+
w.noResultsLabel,
|
|
58
|
+
w.resultsLabel
|
|
59
|
+
], ([e, t, n, r]) => {
|
|
60
|
+
let i = { input: e ?? null };
|
|
61
|
+
t !== void 0 && (i.loading = t), n !== void 0 && (i.noResults = n), r !== void 0 && (i.results = r), j.setLabels(i);
|
|
62
|
+
}, { immediate: !0 }), v(O, (e) => {
|
|
63
|
+
e !== j.snapshot.term && j.setValue(e);
|
|
64
|
+
});
|
|
65
|
+
let N = n(() => C(M.value, A, { name: w.name })), P = n(() => {
|
|
66
|
+
let { value: e, ...t } = N.value.input;
|
|
67
|
+
return t;
|
|
68
|
+
});
|
|
69
|
+
function F(e, t) {
|
|
70
|
+
return w.itemKey ? w.itemKey(e) : j.itemTextOf(e) || t;
|
|
71
|
+
}
|
|
72
|
+
function I(e) {
|
|
73
|
+
j.setTerm(e.target.value);
|
|
74
|
+
}
|
|
75
|
+
function L(e) {
|
|
76
|
+
j.keydown(e.key, e) && e.preventDefault();
|
|
77
|
+
}
|
|
78
|
+
let R = g();
|
|
79
|
+
function z() {
|
|
80
|
+
let { role: e, ...t } = R;
|
|
81
|
+
return t;
|
|
82
|
+
}
|
|
83
|
+
return (e, n) => (d(), i("div", u({ class: "mp-typeahead" }, N.value.root), [
|
|
84
|
+
a("input", u({
|
|
85
|
+
class: "form-control",
|
|
86
|
+
type: "text"
|
|
87
|
+
}, {
|
|
88
|
+
...P.value,
|
|
89
|
+
...z()
|
|
90
|
+
}, {
|
|
91
|
+
role: "combobox",
|
|
92
|
+
value: h(M).term,
|
|
93
|
+
onInput: I,
|
|
94
|
+
onKeydown: L,
|
|
95
|
+
onBlur: n[0] ||= (e) => h(j).blur()
|
|
96
|
+
}), null, 16, E),
|
|
97
|
+
a("ul", u({ class: "dropdown-menu" }, N.value.listbox), [N.value.status ? (d(), i("li", u({
|
|
98
|
+
key: 0,
|
|
99
|
+
class: "ta-status"
|
|
100
|
+
}, N.value.status.attrs), m(N.value.status.text), 17)) : r("", !0), (d(!0), i(t, null, f(h(M).items, (t, r) => (d(), i("li", u({
|
|
101
|
+
key: F(t, r),
|
|
102
|
+
class: "dropdown-item"
|
|
103
|
+
}, { ref_for: !0 }, N.value.option(r), {
|
|
104
|
+
onMousedown: n[1] ||= y(() => {}, ["prevent"]),
|
|
105
|
+
onClick: (e) => h(j).pick(r)
|
|
106
|
+
}), [p(e.$slots, "item", {
|
|
107
|
+
item: t,
|
|
108
|
+
term: h(M).term
|
|
109
|
+
}, () => [o(m(h(j).itemTextOf(t)), 1)])], 16, D))), 128))], 16),
|
|
110
|
+
a("span", u({ class: "visually-hidden" }, N.value.live.attrs), m(N.value.live.text), 17),
|
|
111
|
+
N.value.error ? (d(), i("div", u({
|
|
112
|
+
key: 0,
|
|
113
|
+
class: "ta-error"
|
|
114
|
+
}, N.value.error.attrs), m(N.value.error.text), 17)) : r("", !0)
|
|
115
|
+
], 16));
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
//#endregion
|
|
119
|
+
export { O as BsTypeahead, w as inMemoryTypeaheadProvider };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { TypeaheadProvider } from '@mintplayer/ui-core/typeahead';
|
|
2
|
+
declare const _default: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly onSelect?: ((item: T, value: string) => any) | undefined;
|
|
5
|
+
readonly onOpen?: (() => any) | undefined;
|
|
6
|
+
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
7
|
+
readonly onClose?: (() => any) | undefined;
|
|
8
|
+
readonly onSubmit?: ((value: string) => any) | undefined;
|
|
9
|
+
readonly onLoadError?: ((error: unknown) => any) | undefined;
|
|
10
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSubmit" | "onSelect" | "onUpdate:modelValue" | "onClose" | "onOpen" | "onLoadError"> & ({
|
|
11
|
+
modelValue?: string;
|
|
12
|
+
} & {
|
|
13
|
+
provider?: TypeaheadProvider<T> | null;
|
|
14
|
+
debounceMs?: number;
|
|
15
|
+
minLength?: number;
|
|
16
|
+
itemText?: (item: T) => string;
|
|
17
|
+
itemKey?: (item: T) => string | number;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
name?: string | null;
|
|
20
|
+
inputLabel?: string | null;
|
|
21
|
+
loadingLabel?: string;
|
|
22
|
+
noResultsLabel?: string;
|
|
23
|
+
resultsLabel?: (count: number) => string;
|
|
24
|
+
errorText?: string | null;
|
|
25
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
26
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
27
|
+
attrs: any;
|
|
28
|
+
slots: Readonly<{
|
|
29
|
+
item?(props: {
|
|
30
|
+
item: T;
|
|
31
|
+
term: string;
|
|
32
|
+
}): unknown;
|
|
33
|
+
}> & {
|
|
34
|
+
item?(props: {
|
|
35
|
+
item: T;
|
|
36
|
+
term: string;
|
|
37
|
+
}): unknown;
|
|
38
|
+
};
|
|
39
|
+
emit: (((evt: "select", item: T, value: string) => void) & ((evt: "open") => void) & ((evt: "close") => void) & ((evt: "submit", value: string) => void) & ((evt: "loadError", error: unknown) => void)) & ((evt: "update:modelValue", value: string) => void);
|
|
40
|
+
}>) => import('vue').VNode & {
|
|
41
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
42
|
+
};
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_PrettifyLocal<T> = {
|
|
45
|
+
[K in keyof T]: T[K];
|
|
46
|
+
} & {};
|
package/vue-bootstrap.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.dropdown-item>a,.dropdown-item>button{
|
|
1
|
+
.dropdown-item>a,.dropdown-item>button{width:auto;margin:calc(-1 * var(--bs-dropdown-item-padding-y,.25rem)) calc(-1 * var(--bs-dropdown-item-padding-x,1rem));padding:var(--bs-dropdown-item-padding-y,.25rem) var(--bs-dropdown-item-padding-x,1rem);color:inherit;text-align:inherit;font:inherit;background:0 0;border:0;text-decoration:none;display:block}.dropdown-item>a.active,.dropdown-item>button.active{color:var(--bs-dropdown-link-active-color,#fff);background-color:var(--bs-dropdown-link-active-bg,var(--bs-primary))}
|
|
2
|
+
/*$vite$:1*/
|