@septkit/ui 0.0.71 → 0.0.72
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.
|
@@ -18,6 +18,7 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
18
18
|
options: {},
|
|
19
19
|
placeholder: {},
|
|
20
20
|
emptyText: {},
|
|
21
|
+
separator: { default: ", " },
|
|
21
22
|
color: { default: "primary" },
|
|
22
23
|
variant: {},
|
|
23
24
|
size: { default: "md" },
|
|
@@ -53,7 +54,7 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
53
54
|
"input-xl": b.size === "xl"
|
|
54
55
|
})), M = p(() => new Map(b.options.map((e) => [e.value, e.label]))), N = p(() => {
|
|
55
56
|
let e = k.value.map((e) => M.value.get(e) ?? e);
|
|
56
|
-
return e.length ? e.join(
|
|
57
|
+
return e.length ? e.join(b.separator) : b.placeholder ?? "Select...";
|
|
57
58
|
});
|
|
58
59
|
function P(e, t) {
|
|
59
60
|
return e.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
|
package/dist/index.d.ts
CHANGED
|
@@ -553,6 +553,7 @@ declare type __VLS_Props_4 = {
|
|
|
553
553
|
}[];
|
|
554
554
|
placeholder?: string;
|
|
555
555
|
emptyText?: string;
|
|
556
|
+
separator?: string;
|
|
556
557
|
color?: 'neutral' | 'primary' | 'secondary' | 'accent' | 'info' | 'success' | 'warning' | 'error';
|
|
557
558
|
variant?: 'ghost' | 'bordered' | 'soft' | 'dash';
|
|
558
559
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -3436,6 +3437,7 @@ export declare const MultiSelect: DefineComponent<__VLS_PublicProps_2, {}, {}, {
|
|
|
3436
3437
|
}>, {
|
|
3437
3438
|
color: "neutral" | "primary" | "secondary" | "accent" | "info" | "success" | "warning" | "error";
|
|
3438
3439
|
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
3440
|
+
separator: string;
|
|
3439
3441
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
3440
3442
|
|
|
3441
3443
|
export declare type NavNode = {
|