@bridge-ui/vue 0.21.0 → 0.22.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/dist/Components/Alert/Alert.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Alert/alert.types.d.ts +5 -4
- package/dist/Components/Alert/composables/useAlert.d.ts +2 -2
- package/dist/Components/Alert/composables/useAlert.js +2 -2
- package/dist/Components/Autocomplete/Autocomplete.vue.d.ts +1 -0
- package/dist/Components/Autocomplete/Autocomplete.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Autocomplete/autocomplete.types.d.ts +7 -0
- package/dist/Components/Autocomplete/composables/useAutocomplete.d.ts +2 -2
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +3 -2
- package/dist/Components/Avatar/composables/useAvatar.js +2 -2
- package/dist/Components/Calendar/composables/useCalendar.js +132 -131
- package/dist/Components/CalendarDate/composables/useCalendarDate.js +116 -115
- package/dist/Components/CalendarRange/composables/useCalendarRange.js +132 -131
- package/dist/Components/Card/Card.vue_vue_type_script_setup_true_lang.js +24 -10
- package/dist/Components/Card/card.types.d.ts +5 -4
- package/dist/Components/Card/composables/useCard.d.ts +2 -2
- package/dist/Components/Card/composables/useCard.js +2 -2
- package/dist/Components/Carousel/composables/useCarousel.js +6 -6
- package/dist/Components/ColorPicker/ColorPicker.vue_vue_type_script_setup_true_lang.js +48 -39
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +33 -36
- package/dist/Components/DataTable/composables/useDataTable.d.ts +2 -0
- package/dist/Components/DataTable/composables/useDataTable.js +226 -216
- package/dist/Components/FileUpload/FileUpload.vue_vue_type_script_setup_true_lang.js +51 -57
- package/dist/Components/FileUpload/composables/useFileUpload.d.ts +2 -0
- package/dist/Components/FileUpload/composables/useFileUpload.js +6 -4
- package/dist/Components/Link/Link.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Link/link.types.d.ts +1 -1
- package/dist/Components/ListItem/composables/useListItem.js +4 -5
- package/dist/Components/Pagination/composables/usePagination.js +9 -9
- package/dist/Components/Select/Select.vue.d.ts +1 -0
- package/dist/Components/Select/Select.vue_vue_type_script_setup_true_lang.js +5 -1
- package/dist/Components/Select/composables/useSelect.d.ts +2 -2
- package/dist/Components/Select/composables/useSelect.js +3 -2
- package/dist/Components/Select/select.types.d.ts +7 -0
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +97 -72
- package/dist/Components/Snackbar/composables/useSnackbar.d.ts +2 -2
- package/dist/Components/Snackbar/composables/useSnackbar.js +2 -2
- package/dist/Components/Snackbar/snackbar.types.d.ts +5 -4
- package/dist/Components/Table/composables/useTableRow.js +3 -3
- package/dist/Components/Text/Text.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/Components/Text/composables/useText.d.ts +1 -1
- package/dist/Components/Text/text.types.d.ts +1 -1
- package/dist/Components/TimePanel/composables/useTimePanel.js +113 -112
- package/dist/Utils/index.d.ts +6 -0
- package/dist/Utils/index.js +21 -17
- package/dist/index.js +157 -157
- package/docs/components/Autocomplete.md +23 -22
- package/docs/components/Link.md +1 -1
- package/docs/components/Select.md +22 -21
- package/docs/components/Text.md +6 -4
- package/package.json +2 -2
|
@@ -7,19 +7,13 @@ import s from "../BaseField/BaseField.js";
|
|
|
7
7
|
import { useFileUpload as c } from "./composables/useFileUpload.js";
|
|
8
8
|
import { FILE_UPLOAD_KEY as l } from "./fileUploadInjectionKey.js";
|
|
9
9
|
import u from "../FileUploadItem/FileUploadItem.js";
|
|
10
|
-
import { Fragment as d, computed as
|
|
11
|
-
import { getFileUploadItemKey as
|
|
10
|
+
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createTextVNode as v, createVNode as y, defineComponent as b, guardReactiveProps as x, mergeModels as S, mergeProps as C, normalizeProps as w, openBlock as T, provide as ee, ref as te, renderList as E, renderSlot as D, toDisplayString as O, unref as k, useModel as A, withCtx as j } from "vue";
|
|
11
|
+
import { getFileUploadItemKey as M } from "@bridge-ui/core/Domain";
|
|
12
12
|
// src/Components/FileUpload/FileUpload.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
14
|
-
key: 0,
|
|
15
|
-
class: "m-0 font-medium text-dark-900 dark:text-dark-100"
|
|
16
|
-
}, P = {
|
|
17
|
-
key: 1,
|
|
18
|
-
class: "m-0 text-sm text-dark-500 dark:text-dark-400"
|
|
19
|
-
}, F = ["tabindex"], I = /*@__PURE__*/ y({
|
|
13
|
+
var N = { class: "flex w-full flex-col" }, P = ["tabindex"], F = /*@__PURE__*/ b({
|
|
20
14
|
inheritAttrs: !1,
|
|
21
15
|
__name: "FileUpload",
|
|
22
|
-
props: /*@__PURE__*/
|
|
16
|
+
props: /*@__PURE__*/ S({
|
|
23
17
|
accept: {},
|
|
24
18
|
buttonLabel: {},
|
|
25
19
|
classes: {},
|
|
@@ -45,67 +39,67 @@ var M = { class: "flex w-full flex-col" }, N = {
|
|
|
45
39
|
modelValue: {},
|
|
46
40
|
modelModifiers: {}
|
|
47
41
|
}),
|
|
48
|
-
emits: /*@__PURE__*/
|
|
42
|
+
emits: /*@__PURE__*/ S([
|
|
49
43
|
"remove",
|
|
50
44
|
"retry",
|
|
51
45
|
"update:modelValue"
|
|
52
46
|
], ["update:modelValue"]),
|
|
53
|
-
setup(
|
|
54
|
-
let
|
|
47
|
+
setup(b, { emit: S }) {
|
|
48
|
+
let F = S, I = A(b, "modelValue"), L = b, R = te(L.defaultValue ?? null), z = r(I, R), { slots: B, merged: V, listBind: ne, inputRef: H, baseField: U, inputBind: W, mediaBind: G, titleBind: K, fileItems: q, isDropzone: J, showPicker: Y, stateItems: X, actionsBind: Z, contentBind: re, triggerBind: ie, getItemBind: Q, buttonLabel: ae, dropzoneBind: oe, openFileDialog: $, orientationItems: se, dropzoneTitleBind: ce, itemDescriptionBind: le, dropzoneDescriptionBind: ue } = c(L, {
|
|
55
49
|
size: "md",
|
|
56
50
|
rounded: "md",
|
|
57
51
|
multiple: !1,
|
|
58
52
|
color: "primary",
|
|
59
53
|
variant: "button",
|
|
60
54
|
orientation: "horizontal"
|
|
61
|
-
},
|
|
62
|
-
|
|
55
|
+
}, z, F);
|
|
56
|
+
ee(l, f(() => ({
|
|
63
57
|
getItemBind: Q,
|
|
64
|
-
size:
|
|
65
|
-
color:
|
|
66
|
-
mediaBind:
|
|
67
|
-
titleBind:
|
|
68
|
-
stateItems:
|
|
69
|
-
rounded:
|
|
70
|
-
actionsBind:
|
|
71
|
-
contentBind:
|
|
72
|
-
disabled:
|
|
73
|
-
orientation:
|
|
74
|
-
orientationItems:
|
|
75
|
-
descriptionBind:
|
|
58
|
+
size: V.value.size,
|
|
59
|
+
color: V.value.color,
|
|
60
|
+
mediaBind: G.value,
|
|
61
|
+
titleBind: K.value,
|
|
62
|
+
stateItems: X.value,
|
|
63
|
+
rounded: V.value.rounded,
|
|
64
|
+
actionsBind: Z.value,
|
|
65
|
+
contentBind: re.value,
|
|
66
|
+
disabled: V.value.disabled,
|
|
67
|
+
orientation: V.value.orientation,
|
|
68
|
+
orientationItems: se.value,
|
|
69
|
+
descriptionBind: le.value
|
|
76
70
|
})));
|
|
77
71
|
function de(e) {
|
|
78
72
|
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), $());
|
|
79
73
|
}
|
|
80
|
-
return (r, c) => (
|
|
81
|
-
default:
|
|
82
|
-
|
|
74
|
+
return (r, c) => (T(), p(s, { field: k(U) }, _({
|
|
75
|
+
default: j(() => [g("div", N, [
|
|
76
|
+
g("input", C({
|
|
83
77
|
ref_key: "inputRef",
|
|
84
|
-
ref:
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
|
|
78
|
+
ref: H
|
|
79
|
+
}, k(W)), null, 16),
|
|
80
|
+
k(Y) ? (T(), h(d, { key: 0 }, [k(J) ? (T(), h("div", w(C({ key: 0 }, k(oe))), [k(e)(k(B), "dropzone") ? D(r.$slots, "dropzone", {}, void 0, void 0, 0) : (T(), h(d, { key: 1 }, [
|
|
81
|
+
y(k(i), {
|
|
88
82
|
icon: "inbox",
|
|
89
83
|
class: "mb-1 text-dark-400"
|
|
90
84
|
}),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
], 64))], 16)) : (
|
|
85
|
+
k(t)(k(V).title) ? (T(), h("p", w(C({ key: 0 }, k(ce))), O(k(V).title), 17)) : m("", !0),
|
|
86
|
+
k(t)(k(V).description) ? (T(), h("p", w(C({ key: 1 }, k(ue))), O(k(V).description), 17)) : m("", !0)
|
|
87
|
+
], 64))], 16)) : (T(), h("div", w(C({ key: 1 }, k(ie))), [k(e)(k(B), "trigger") ? (T(), h("span", {
|
|
94
88
|
key: 0,
|
|
95
89
|
role: "button",
|
|
96
|
-
onClick: c[0] ||= (...e) =>
|
|
90
|
+
onClick: c[0] ||= (...e) => k($) && k($)(...e),
|
|
97
91
|
onKeydown: de,
|
|
98
|
-
tabindex:
|
|
99
|
-
}, [
|
|
92
|
+
tabindex: k(V).disabled ? -1 : 0
|
|
93
|
+
}, [D(r.$slots, "trigger")], 40, P)) : (T(), p(k(a), {
|
|
100
94
|
key: 1,
|
|
101
95
|
type: "button",
|
|
102
|
-
size:
|
|
103
|
-
color:
|
|
104
|
-
rounded:
|
|
105
|
-
disabled:
|
|
106
|
-
onClick:
|
|
96
|
+
size: k(V).size,
|
|
97
|
+
color: k(V).color,
|
|
98
|
+
rounded: k(V).rounded,
|
|
99
|
+
disabled: k(V).disabled,
|
|
100
|
+
onClick: k($)
|
|
107
101
|
}, {
|
|
108
|
-
default:
|
|
102
|
+
default: j(() => [v(O(k(ae)), 1)]),
|
|
109
103
|
_: 1
|
|
110
104
|
}, 8, [
|
|
111
105
|
"size",
|
|
@@ -113,28 +107,28 @@ var M = { class: "flex w-full flex-col" }, N = {
|
|
|
113
107
|
"rounded",
|
|
114
108
|
"disabled",
|
|
115
109
|
"onClick"
|
|
116
|
-
]))], 16))], 64)) :
|
|
117
|
-
|
|
110
|
+
]))], 16))], 64)) : m("", !0),
|
|
111
|
+
k(e)(k(B), "list") ? D(r.$slots, "list", { items: k(q) }, void 0, void 0, 1) : k(q).length > 0 ? (T(), h("ul", w(C({ key: 2 }, k(ne))), [(T(!0), h(d, null, E(k(q), (t) => (T(), h(d, { key: k(M)(t.value, t.index) }, [k(e)(k(B), "item") ? (T(), h("li", C({
|
|
118
112
|
key: 0,
|
|
119
113
|
ref_for: !0
|
|
120
|
-
},
|
|
114
|
+
}, k(Q)(t.index)), [D(r.$slots, "item", C({ ref_for: !0 }, t))], 16)) : (T(), p(u, C({
|
|
121
115
|
key: 1,
|
|
122
116
|
ref_for: !0
|
|
123
|
-
}, t),
|
|
117
|
+
}, t), _({ _: 2 }, [k(e)(k(B), "start") ? {
|
|
124
118
|
name: "start",
|
|
125
|
-
fn:
|
|
119
|
+
fn: j(() => [D(r.$slots, "start", C({ ref_for: !0 }, t))]),
|
|
126
120
|
key: "0"
|
|
127
|
-
} : void 0,
|
|
121
|
+
} : void 0, k(e)(k(B), "end") ? {
|
|
128
122
|
name: "end",
|
|
129
|
-
fn:
|
|
123
|
+
fn: j(() => [D(r.$slots, "end", C({ ref_for: !0 }, t))]),
|
|
130
124
|
key: "1"
|
|
131
|
-
} : void 0]), 1040))], 64))), 128))], 16)) :
|
|
125
|
+
} : void 0]), 1040))], 64))), 128))], 16)) : m("", !0)
|
|
132
126
|
])]),
|
|
133
127
|
_: 2
|
|
134
|
-
}, [
|
|
128
|
+
}, [E(k(n)(k(o).filter((e) => e !== "start" && e !== "end"), r.$slots), (e) => ({
|
|
135
129
|
name: e,
|
|
136
|
-
fn:
|
|
130
|
+
fn: j((t) => [D(r.$slots, e, w(x(t || {})))])
|
|
137
131
|
}))]), 1032, ["field"]));
|
|
138
132
|
}
|
|
139
133
|
});
|
|
140
|
-
export {
|
|
134
|
+
export { F as default };
|
|
@@ -113,8 +113,10 @@ export declare function useFileUpload(props: FileUploadOwnProps<boolean>, libDef
|
|
|
113
113
|
horizontal: import('@bridge-ui/core/Tokens').FileUploadOrientationItem;
|
|
114
114
|
vertical: import('@bridge-ui/core/Tokens').FileUploadOrientationItem;
|
|
115
115
|
}>>;
|
|
116
|
+
dropzoneTitleBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
116
117
|
itemDescriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
117
118
|
resolvedErrorMessage: import('vue').ComputedRef<string | undefined>;
|
|
119
|
+
dropzoneDescriptionBind: import('vue').ComputedRef<import('@bridge-ui/core/Utils').MergePartBind<object, "class", {}, {}>>;
|
|
118
120
|
inputRef: Ref<null | HTMLInputElement>;
|
|
119
121
|
};
|
|
120
122
|
export {};
|
|
@@ -187,7 +187,7 @@ function T(T, E, D, O) {
|
|
|
187
187
|
let Ae = i(() => e(L.value?.media, {}, C(d(K.value, "media"), X.value, d(J.value, "media"), d(G.value, "media")))), je = i(() => e(L.value?.content, {}, C(d(K.value, "content"), d(J.value, "content"), d(G.value, "content")))), Me = i(() => e(L.value?.title, {}, C({
|
|
188
188
|
[d(K.value, "title") ?? ""]: !0,
|
|
189
189
|
[d(G.value, "title") ?? ""]: !0
|
|
190
|
-
}))), Ne = i(() => e({}, {}, C({ [d(K.value, "
|
|
190
|
+
}))), Ne = i(() => e({}, {}, C({ [d(K.value, "dropzoneTitle") ?? ""]: !0 }))), Pe = i(() => e({}, {}, C({ [d(K.value, "dropzoneDescription") ?? ""]: !0 }))), Fe = i(() => e({}, {}, C({ [d(K.value, "description") ?? ""]: !0 }))), Ie = i(() => e(L.value?.actions, {}, C(d(K.value, "actions"), d(J.value, "actions"), d(G.value, "actions")))), Le = i(() => F.value.buttonLabel == null ? F.value.multiple ? "Choose files" : "Choose file" : F.value.buttonLabel);
|
|
191
191
|
return {
|
|
192
192
|
slots: de,
|
|
193
193
|
merged: F,
|
|
@@ -217,17 +217,19 @@ function T(T, E, D, O) {
|
|
|
217
217
|
showPicker: pe,
|
|
218
218
|
canAddMore: V,
|
|
219
219
|
stateItems: Y,
|
|
220
|
-
actionsBind:
|
|
220
|
+
actionsBind: Ie,
|
|
221
221
|
contentBind: je,
|
|
222
222
|
triggerBind: De,
|
|
223
223
|
getItemBind: ke,
|
|
224
|
-
buttonLabel:
|
|
224
|
+
buttonLabel: Le,
|
|
225
225
|
dropzoneBind: Oe,
|
|
226
226
|
openFileDialog: Q,
|
|
227
227
|
validationError: j,
|
|
228
228
|
orientationItems: q,
|
|
229
|
-
|
|
229
|
+
dropzoneTitleBind: Ne,
|
|
230
|
+
itemDescriptionBind: Fe,
|
|
230
231
|
resolvedErrorMessage: H,
|
|
232
|
+
dropzoneDescriptionBind: Pe,
|
|
231
233
|
inputRef: M
|
|
232
234
|
};
|
|
233
235
|
}
|
|
@@ -22,7 +22,7 @@ var f = /*@__PURE__*/ a({
|
|
|
22
22
|
},
|
|
23
23
|
setup(a) {
|
|
24
24
|
let { slots: f, merged: p, rootRel: m, rootTag: h, rootBind: g, rootHref: _, rootTarget: v, leftIconBind: y, rightIconBind: b, rootAriaDisabled: x } = n(a, {
|
|
25
|
-
size: "
|
|
25
|
+
size: "sm",
|
|
26
26
|
color: "primary",
|
|
27
27
|
underline: "hover"
|
|
28
28
|
});
|
|
@@ -98,8 +98,8 @@ function C(C, w, T) {
|
|
|
98
98
|
[N.value?.optionHighlightedClass ?? ""]: I.value && z.value && !L.value,
|
|
99
99
|
[N.value?.mergedClasses.optionHighlighted ?? ""]: I.value && z.value && !L.value,
|
|
100
100
|
"opacity-50 pointer-events-none": j.value.disabled,
|
|
101
|
-
[
|
|
102
|
-
[
|
|
101
|
+
[N.value?.sizeClasses?.option ?? ""]: I.value,
|
|
102
|
+
[m(V.value, "interactive") ?? ""]: !0
|
|
103
103
|
})
|
|
104
104
|
});
|
|
105
105
|
return !Y.value || !j.value.disabled ? e : {
|
|
@@ -121,10 +121,9 @@ function C(C, w, T) {
|
|
|
121
121
|
"min-w-0 flex-1": !0,
|
|
122
122
|
[m(V.value, "content") ?? ""]: !0
|
|
123
123
|
}))), ne = s(() => t(B.value?.primary, {}, b({
|
|
124
|
-
"block truncate text-sm font-medium": !0,
|
|
124
|
+
"block truncate text-sm leading-normal font-medium": !0,
|
|
125
125
|
[N.value?.sizeClasses?.primary ?? ""]: I.value,
|
|
126
|
-
[m(V.value, "primary") ?? ""]: !0
|
|
127
|
-
"leading-normal": !0
|
|
126
|
+
[m(V.value, "primary") ?? ""]: !0
|
|
128
127
|
}))), re = s(() => t(B.value?.secondary, {}, b({
|
|
129
128
|
"mt-0.5 block truncate text-xs leading-normal text-dark-500 dark:text-dark-400": !0,
|
|
130
129
|
[N.value?.sizeClasses?.secondary ?? ""]: I.value,
|
|
@@ -116,10 +116,10 @@ function m(m, h, g, _, v) {
|
|
|
116
116
|
class: u({
|
|
117
117
|
[K.value]: !0,
|
|
118
118
|
[se.value]: n,
|
|
119
|
-
[s(j.value, "item") ?? ""]: !0,
|
|
120
119
|
"ml-0": Y("page", e),
|
|
121
120
|
[s(I.value, "itemStart") ?? ""]: r,
|
|
122
|
-
[s(I.value, "itemEnd") ?? ""]: i
|
|
121
|
+
[s(I.value, "itemEnd") ?? ""]: i,
|
|
122
|
+
[s(j.value, "item") ?? ""]: !0
|
|
123
123
|
})
|
|
124
124
|
});
|
|
125
125
|
}, Q = (e) => t(T.value?.ellipsis, {}, {
|
|
@@ -129,8 +129,8 @@ function m(m, h, g, _, v) {
|
|
|
129
129
|
[s(N.value, "ellipsis") ?? ""]: !0,
|
|
130
130
|
[s(P.value, "ellipsis") ?? ""]: !0,
|
|
131
131
|
[s(I.value, "item") ?? ""]: G.value,
|
|
132
|
-
|
|
133
|
-
"
|
|
132
|
+
"ml-0": Y("ellipsis", e),
|
|
133
|
+
[s(j.value, "ellipsis") ?? ""]: !0
|
|
134
134
|
})
|
|
135
135
|
}), $ = i(() => s(N.value, "icon") ?? "sm");
|
|
136
136
|
return {
|
|
@@ -149,10 +149,10 @@ function m(m, h, g, _, v) {
|
|
|
149
149
|
"aria-label": X.value,
|
|
150
150
|
class: u({
|
|
151
151
|
[q.value]: !0,
|
|
152
|
-
[s(j.value, "prev") ?? ""]: !0,
|
|
153
|
-
[s(j.value, "item") ?? ""]: !0,
|
|
154
152
|
"ml-0": W.value,
|
|
155
|
-
[s(I.value, "itemStart") ?? ""]: W.value
|
|
153
|
+
[s(I.value, "itemStart") ?? ""]: W.value,
|
|
154
|
+
[s(j.value, "item") ?? ""]: !0,
|
|
155
|
+
[s(j.value, "prev") ?? ""]: !0
|
|
156
156
|
})
|
|
157
157
|
})),
|
|
158
158
|
nextBind: i(() => t(T.value?.next, {}, {
|
|
@@ -162,9 +162,9 @@ function m(m, h, g, _, v) {
|
|
|
162
162
|
"aria-label": Z.value,
|
|
163
163
|
class: u({
|
|
164
164
|
[q.value]: !0,
|
|
165
|
-
[s(
|
|
165
|
+
[s(I.value, "itemEnd") ?? ""]: W.value,
|
|
166
166
|
[s(j.value, "item") ?? ""]: !0,
|
|
167
|
-
[s(
|
|
167
|
+
[s(j.value, "next") ?? ""]: !0
|
|
168
168
|
})
|
|
169
169
|
})),
|
|
170
170
|
prevLabel: X,
|
|
@@ -32,6 +32,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, {}, {
|
|
|
32
32
|
showErrorIcon: boolean;
|
|
33
33
|
clearable: boolean;
|
|
34
34
|
minItemsForSearch: number;
|
|
35
|
+
persistentPlaceholder: boolean;
|
|
35
36
|
searchable: boolean;
|
|
36
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
37
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -14,7 +14,7 @@ import { cn as M } from "@bridge-ui/core/Utils";
|
|
|
14
14
|
// src/Components/Select/Select.vue?vue&type=script&setup=true&lang.ts
|
|
15
15
|
var N = {
|
|
16
16
|
key: 0,
|
|
17
|
-
class: "flex min-w-0 flex-1 flex-wrap items-center gap-0.5"
|
|
17
|
+
class: "flex min-w-0 flex-1 flex-wrap items-center gap-0.5 py-1.5 [&>textarea]:py-0"
|
|
18
18
|
}, P = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "flex min-w-0 flex-1 items-center gap-1"
|
|
@@ -47,6 +47,10 @@ var N = {
|
|
|
47
47
|
options: {},
|
|
48
48
|
optionValue: {},
|
|
49
49
|
overlay: {},
|
|
50
|
+
persistentPlaceholder: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
50
54
|
placeholder: {},
|
|
51
55
|
searchable: {
|
|
52
56
|
type: Boolean,
|
|
@@ -488,9 +488,9 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
|
|
|
488
488
|
"aria-expanded": boolean;
|
|
489
489
|
readonly: boolean;
|
|
490
490
|
onKeydown: (event: KeyboardEvent) => void;
|
|
491
|
-
placeholder: string | undefined;
|
|
492
491
|
"aria-autocomplete": string | undefined;
|
|
493
492
|
"aria-activedescendant": string | undefined;
|
|
493
|
+
placeholder: string | undefined;
|
|
494
494
|
} | {
|
|
495
495
|
onInput: (event: Event) => void;
|
|
496
496
|
role: string;
|
|
@@ -499,9 +499,9 @@ export declare function useSelect(props: SelectOwnProps, model: Ref<null | undef
|
|
|
499
499
|
"aria-expanded": boolean;
|
|
500
500
|
readonly: boolean;
|
|
501
501
|
onKeydown: (event: KeyboardEvent) => void;
|
|
502
|
-
placeholder: string | undefined;
|
|
503
502
|
"aria-autocomplete": string | undefined;
|
|
504
503
|
"aria-activedescendant": string | undefined;
|
|
504
|
+
placeholder: string | undefined;
|
|
505
505
|
}, import('@bridge-ui/core/Utils').MergePartBind<object, "class", {
|
|
506
506
|
id: string;
|
|
507
507
|
disabled: boolean;
|
|
@@ -32,7 +32,8 @@ var Ae = [
|
|
|
32
32
|
"disableMaxHeight",
|
|
33
33
|
"hideEmptyMessage",
|
|
34
34
|
"minItemsForSearch",
|
|
35
|
-
"optionDescription"
|
|
35
|
+
"optionDescription",
|
|
36
|
+
"persistentPlaceholder"
|
|
36
37
|
];
|
|
37
38
|
function h(h, g, _, v, je) {
|
|
38
39
|
let Me = ue(), y = fe(), b = de(), Ne = n(), x = e(), S = c(!1), C = c(""), w = c(!1), T = c(-1), E = c([]), D = c([]), O = c([]), k = c(null), A = null, j = o(() => ke({
|
|
@@ -260,9 +261,9 @@ function h(h, g, _, v, je) {
|
|
|
260
261
|
"aria-expanded": S.value,
|
|
261
262
|
readonly: qe.value,
|
|
262
263
|
onKeydown: lt,
|
|
263
|
-
placeholder: M.value.placeholder,
|
|
264
264
|
"aria-autocomplete": G.value ? "list" : void 0,
|
|
265
265
|
"aria-activedescendant": S.value ? J.activeDescendantId.value : void 0,
|
|
266
|
+
placeholder: P.value && U.value && !M.value.persistentPlaceholder ? void 0 : M.value.placeholder,
|
|
266
267
|
...P.value ? {
|
|
267
268
|
rows: 1,
|
|
268
269
|
onInput: (e) => {
|
|
@@ -219,6 +219,13 @@ export interface SelectOwnProps extends Omit<FormFieldOwnProps, "field"> {
|
|
|
219
219
|
* @default "auto"
|
|
220
220
|
*/
|
|
221
221
|
overlay?: FieldOverlayMode;
|
|
222
|
+
/**
|
|
223
|
+
* Keeps the placeholder visible next to the chips when `multiple` is set.
|
|
224
|
+
* By default it hides once a value is selected.
|
|
225
|
+
*
|
|
226
|
+
* @default false
|
|
227
|
+
*/
|
|
228
|
+
persistentPlaceholder?: boolean;
|
|
222
229
|
/**
|
|
223
230
|
* Placeholder shown when no value is selected.
|
|
224
231
|
*/
|