straw-ui-vue 0.1.61 → 0.1.62
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/st-cascade/desktop/st-cascade-desktop.d.ts +1 -0
- package/dist/components/st-cascade/desktop/types/st-cascade-desktop.d.ts +2 -0
- package/dist/components/st-cascade/index.d.ts +9 -0
- package/dist/components/st-cascade/st-cascade.d.ts +1 -0
- package/dist/components/st-select/desktop/st-select-desktop.d.ts +1 -0
- package/dist/components/st-select/desktop/types/st-select-desktop.d.ts +2 -0
- package/dist/components/st-select/index.d.ts +15 -0
- package/dist/components/st-select/st-select-dropdown.d.ts +1 -0
- package/dist/components/st-select/st-select.d.ts +1 -0
- package/dist/components/st-select/types/st-select-dropdown.d.ts +2 -0
- package/dist/straw-ui.js +47 -6
- package/package.json +1 -1
|
@@ -33,6 +33,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCas
|
|
|
33
33
|
showPath: boolean;
|
|
34
34
|
defaultExpandedAll: boolean;
|
|
35
35
|
floatingLabel: boolean;
|
|
36
|
+
matchTriggerWidth: boolean;
|
|
36
37
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
37
38
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
38
39
|
declare const _default: typeof __VLS_export;
|
|
@@ -36,6 +36,8 @@ export interface StCascadeDesktopProps {
|
|
|
36
36
|
defaultExpandedAll?: boolean;
|
|
37
37
|
/** 是否启用浮动占位标签(placeholder 在聚焦或有值时缩到左上角) */
|
|
38
38
|
floatingLabel?: boolean;
|
|
39
|
+
/** 弹出层宽度是否锁定为触发输入框宽度:true 等宽(超长节点省略号截断),false 以触发输入框宽度为最小宽度、由内容撑开 */
|
|
40
|
+
matchTriggerWidth?: boolean;
|
|
39
41
|
/** 弹出层的类名 */
|
|
40
42
|
popoverClass?: ClassValue;
|
|
41
43
|
/** 弹出层的样式 */
|
|
@@ -21,6 +21,7 @@ export declare const StCascade: {
|
|
|
21
21
|
expandOnClick: boolean | "auto";
|
|
22
22
|
showPath: boolean;
|
|
23
23
|
floatingLabel: boolean;
|
|
24
|
+
matchTriggerWidth: boolean;
|
|
24
25
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
25
26
|
P: {};
|
|
26
27
|
B: {};
|
|
@@ -43,6 +44,7 @@ export declare const StCascade: {
|
|
|
43
44
|
expandOnClick: boolean | "auto";
|
|
44
45
|
showPath: boolean;
|
|
45
46
|
floatingLabel: boolean;
|
|
47
|
+
matchTriggerWidth: boolean;
|
|
46
48
|
}>;
|
|
47
49
|
__isFragment?: never;
|
|
48
50
|
__isTeleport?: never;
|
|
@@ -69,6 +71,7 @@ export declare const StCascade: {
|
|
|
69
71
|
expandOnClick: boolean | "auto";
|
|
70
72
|
showPath: boolean;
|
|
71
73
|
floatingLabel: boolean;
|
|
74
|
+
matchTriggerWidth: boolean;
|
|
72
75
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
73
76
|
$slots: import('./index.ts').StCascadeSlots;
|
|
74
77
|
}) & {
|
|
@@ -258,6 +261,7 @@ export declare const StCascade: {
|
|
|
258
261
|
showPath: boolean;
|
|
259
262
|
defaultExpandedAll: boolean;
|
|
260
263
|
floatingLabel: boolean;
|
|
264
|
+
matchTriggerWidth: boolean;
|
|
261
265
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
262
266
|
P: {};
|
|
263
267
|
B: {};
|
|
@@ -288,6 +292,7 @@ export declare const StCascade: {
|
|
|
288
292
|
showPath: boolean;
|
|
289
293
|
defaultExpandedAll: boolean;
|
|
290
294
|
floatingLabel: boolean;
|
|
295
|
+
matchTriggerWidth: boolean;
|
|
291
296
|
}>;
|
|
292
297
|
__isFragment?: never;
|
|
293
298
|
__isTeleport?: never;
|
|
@@ -320,6 +325,7 @@ export declare const StCascade: {
|
|
|
320
325
|
showPath: boolean;
|
|
321
326
|
defaultExpandedAll: boolean;
|
|
322
327
|
floatingLabel: boolean;
|
|
328
|
+
matchTriggerWidth: boolean;
|
|
323
329
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
324
330
|
$slots: import('./index.ts').StCascadeDesktopSlots;
|
|
325
331
|
});
|
|
@@ -627,6 +633,7 @@ export declare const StCascadeDesktop: {
|
|
|
627
633
|
showPath: boolean;
|
|
628
634
|
defaultExpandedAll: boolean;
|
|
629
635
|
floatingLabel: boolean;
|
|
636
|
+
matchTriggerWidth: boolean;
|
|
630
637
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
631
638
|
P: {};
|
|
632
639
|
B: {};
|
|
@@ -657,6 +664,7 @@ export declare const StCascadeDesktop: {
|
|
|
657
664
|
showPath: boolean;
|
|
658
665
|
defaultExpandedAll: boolean;
|
|
659
666
|
floatingLabel: boolean;
|
|
667
|
+
matchTriggerWidth: boolean;
|
|
660
668
|
}>;
|
|
661
669
|
__isFragment?: never;
|
|
662
670
|
__isTeleport?: never;
|
|
@@ -689,6 +697,7 @@ export declare const StCascadeDesktop: {
|
|
|
689
697
|
showPath: boolean;
|
|
690
698
|
defaultExpandedAll: boolean;
|
|
691
699
|
floatingLabel: boolean;
|
|
700
|
+
matchTriggerWidth: boolean;
|
|
692
701
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
693
702
|
$slots: import('./index.ts').StCascadeDesktopSlots;
|
|
694
703
|
});
|
|
@@ -27,6 +27,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StCas
|
|
|
27
27
|
expandOnClick: boolean | "auto";
|
|
28
28
|
showPath: boolean;
|
|
29
29
|
floatingLabel: boolean;
|
|
30
|
+
matchTriggerWidth: boolean;
|
|
30
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
32
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
33
|
declare const _default: typeof __VLS_export;
|
|
@@ -38,6 +38,8 @@ export interface StSelectDesktopProps {
|
|
|
38
38
|
group?: boolean;
|
|
39
39
|
/** 是否启用浮动占位标签(placeholder 在聚焦或有值时缩到左上角) */
|
|
40
40
|
floatingLabel?: boolean;
|
|
41
|
+
/** 下拉面板宽度是否锁定为触发器宽度:true 等宽(超长选项省略号截断),false 以触发器宽度为最小宽度、由内容撑开 */
|
|
42
|
+
matchTriggerWidth?: boolean;
|
|
41
43
|
/** popover 下拉菜单的类名 */
|
|
42
44
|
popoverClass?: ClassValue;
|
|
43
45
|
/** popover 下拉菜单的样式 */
|
|
@@ -16,6 +16,7 @@ export declare const StSelect: {
|
|
|
16
16
|
}, import('vue').PublicProps, {
|
|
17
17
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
18
18
|
floatingLabel: boolean;
|
|
19
|
+
matchTriggerWidth: boolean;
|
|
19
20
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
20
21
|
P: {};
|
|
21
22
|
B: {};
|
|
@@ -34,6 +35,7 @@ export declare const StSelect: {
|
|
|
34
35
|
}>, import('./index.ts').StSelectExpose, {}, {}, {}, {
|
|
35
36
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
36
37
|
floatingLabel: boolean;
|
|
38
|
+
matchTriggerWidth: boolean;
|
|
37
39
|
}>;
|
|
38
40
|
__isFragment?: never;
|
|
39
41
|
__isTeleport?: never;
|
|
@@ -55,6 +57,7 @@ export declare const StSelect: {
|
|
|
55
57
|
}, string, {
|
|
56
58
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
57
59
|
floatingLabel: boolean;
|
|
60
|
+
matchTriggerWidth: boolean;
|
|
58
61
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
59
62
|
$slots: import('./index.ts').StSelectSlots;
|
|
60
63
|
}) & {
|
|
@@ -170,6 +173,7 @@ export declare const StSelect: {
|
|
|
170
173
|
StSelectDropdown: {
|
|
171
174
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
172
175
|
disabled: boolean;
|
|
176
|
+
matchTriggerWidth: boolean;
|
|
173
177
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
174
178
|
P: {};
|
|
175
179
|
B: {};
|
|
@@ -179,12 +183,14 @@ export declare const StSelect: {
|
|
|
179
183
|
Defaults: {};
|
|
180
184
|
}, Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
181
185
|
disabled: boolean;
|
|
186
|
+
matchTriggerWidth: boolean;
|
|
182
187
|
}>;
|
|
183
188
|
__isFragment?: never;
|
|
184
189
|
__isTeleport?: never;
|
|
185
190
|
__isSuspense?: never;
|
|
186
191
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
187
192
|
disabled: boolean;
|
|
193
|
+
matchTriggerWidth: boolean;
|
|
188
194
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
189
195
|
$slots: import('./types/st-select-dropdown').StSelectDropdownSlots;
|
|
190
196
|
});
|
|
@@ -358,6 +364,7 @@ export declare const StSelect: {
|
|
|
358
364
|
placeholder: string;
|
|
359
365
|
clearable: boolean;
|
|
360
366
|
floatingLabel: boolean;
|
|
367
|
+
matchTriggerWidth: boolean;
|
|
361
368
|
filterable: boolean;
|
|
362
369
|
remote: boolean;
|
|
363
370
|
loadingText: string;
|
|
@@ -389,6 +396,7 @@ export declare const StSelect: {
|
|
|
389
396
|
placeholder: string;
|
|
390
397
|
clearable: boolean;
|
|
391
398
|
floatingLabel: boolean;
|
|
399
|
+
matchTriggerWidth: boolean;
|
|
392
400
|
filterable: boolean;
|
|
393
401
|
remote: boolean;
|
|
394
402
|
loadingText: string;
|
|
@@ -423,6 +431,7 @@ export declare const StSelect: {
|
|
|
423
431
|
placeholder: string;
|
|
424
432
|
clearable: boolean;
|
|
425
433
|
floatingLabel: boolean;
|
|
434
|
+
matchTriggerWidth: boolean;
|
|
426
435
|
filterable: boolean;
|
|
427
436
|
remote: boolean;
|
|
428
437
|
loadingText: string;
|
|
@@ -714,6 +723,7 @@ export declare const StSelectContent: {
|
|
|
714
723
|
export declare const StSelectDropdown: {
|
|
715
724
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
716
725
|
disabled: boolean;
|
|
726
|
+
matchTriggerWidth: boolean;
|
|
717
727
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
718
728
|
P: {};
|
|
719
729
|
B: {};
|
|
@@ -723,12 +733,14 @@ export declare const StSelectDropdown: {
|
|
|
723
733
|
Defaults: {};
|
|
724
734
|
}, Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
725
735
|
disabled: boolean;
|
|
736
|
+
matchTriggerWidth: boolean;
|
|
726
737
|
}>;
|
|
727
738
|
__isFragment?: never;
|
|
728
739
|
__isTeleport?: never;
|
|
729
740
|
__isSuspense?: never;
|
|
730
741
|
} & import('vue').ComponentOptionsBase<Readonly<import('./types/st-select-dropdown').StSelectDropdownProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
731
742
|
disabled: boolean;
|
|
743
|
+
matchTriggerWidth: boolean;
|
|
732
744
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
733
745
|
$slots: import('./types/st-select-dropdown').StSelectDropdownSlots;
|
|
734
746
|
});
|
|
@@ -903,6 +915,7 @@ export declare const StSelectDesktop: {
|
|
|
903
915
|
placeholder: string;
|
|
904
916
|
clearable: boolean;
|
|
905
917
|
floatingLabel: boolean;
|
|
918
|
+
matchTriggerWidth: boolean;
|
|
906
919
|
filterable: boolean;
|
|
907
920
|
remote: boolean;
|
|
908
921
|
loadingText: string;
|
|
@@ -934,6 +947,7 @@ export declare const StSelectDesktop: {
|
|
|
934
947
|
placeholder: string;
|
|
935
948
|
clearable: boolean;
|
|
936
949
|
floatingLabel: boolean;
|
|
950
|
+
matchTriggerWidth: boolean;
|
|
937
951
|
filterable: boolean;
|
|
938
952
|
remote: boolean;
|
|
939
953
|
loadingText: string;
|
|
@@ -968,6 +982,7 @@ export declare const StSelectDesktop: {
|
|
|
968
982
|
placeholder: string;
|
|
969
983
|
clearable: boolean;
|
|
970
984
|
floatingLabel: boolean;
|
|
985
|
+
matchTriggerWidth: boolean;
|
|
971
986
|
filterable: boolean;
|
|
972
987
|
remote: boolean;
|
|
973
988
|
loadingText: string;
|
|
@@ -2,6 +2,7 @@ import { StSelectDropdownProps, StSelectDropdownSlots } from './types/st-select-
|
|
|
2
2
|
type __VLS_Slots = StSelectDropdownSlots;
|
|
3
3
|
declare const __VLS_base: import('vue').DefineComponent<StSelectDropdownProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StSelectDropdownProps> & Readonly<{}>, {
|
|
4
4
|
disabled: boolean;
|
|
5
|
+
matchTriggerWidth: boolean;
|
|
5
6
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
6
7
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
7
8
|
declare const _default: typeof __VLS_export;
|
|
@@ -20,6 +20,7 @@ declare const __VLS_base: import('vue').DefineComponent<__VLS_PublicProps, StSel
|
|
|
20
20
|
}>, {
|
|
21
21
|
deviceType: import('../../types.ts').DeviceType | "auto";
|
|
22
22
|
floatingLabel: boolean;
|
|
23
|
+
matchTriggerWidth: boolean;
|
|
23
24
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
25
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
25
26
|
declare const _default: typeof __VLS_export;
|
package/dist/straw-ui.js
CHANGED
|
@@ -5397,6 +5397,10 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5397
5397
|
type: Boolean,
|
|
5398
5398
|
default: !0
|
|
5399
5399
|
},
|
|
5400
|
+
matchTriggerWidth: {
|
|
5401
|
+
type: Boolean,
|
|
5402
|
+
default: !1
|
|
5403
|
+
},
|
|
5400
5404
|
popoverClass: { type: [
|
|
5401
5405
|
Boolean,
|
|
5402
5406
|
null,
|
|
@@ -5484,7 +5488,14 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5484
5488
|
}
|
|
5485
5489
|
let e = Ht(r.value);
|
|
5486
5490
|
return e === void 0 ? T(i.value) : E(e);
|
|
5487
|
-
}), ee = O(() => d.placeholder || "请选择"), te = O(() => !d.clearable || d.disabled || !m.value ? !1 : D.value.length > 0), A = O(() =>
|
|
5491
|
+
}), ee = O(() => d.placeholder || "请选择"), te = O(() => !d.clearable || d.disabled || !m.value ? !1 : D.value.length > 0), A = O(() => {
|
|
5492
|
+
if (d.popoverStyle) return d.popoverStyle;
|
|
5493
|
+
if (h.value > 0) {
|
|
5494
|
+
let e = `${h.value}px`;
|
|
5495
|
+
return d.matchTriggerWidth ? { width: e } : { minWidth: e };
|
|
5496
|
+
}
|
|
5497
|
+
return {};
|
|
5498
|
+
});
|
|
5488
5499
|
function j() {
|
|
5489
5500
|
d.multiple || (g.value = [...i.value], i.value.length > 0 && (_.value = [.../* @__PURE__ */ new Set([..._.value, ...i.value.slice(0, -1)])])), d.defaultExpandedAll && (_.value = [...v.value.values()].filter((e) => !e.isLeaf).map((e) => e.path[e.path.length - 1]));
|
|
5490
5501
|
}
|
|
@@ -5576,6 +5587,7 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5576
5587
|
}, [d.list.length > 0 ? (H(), k(zn, {
|
|
5577
5588
|
key: 0,
|
|
5578
5589
|
class: "flex max-h-280px flex-col",
|
|
5590
|
+
"content-class": "w-full",
|
|
5579
5591
|
vertical: "",
|
|
5580
5592
|
"view-class": "min-h-0 flex-1"
|
|
5581
5593
|
}, {
|
|
@@ -8028,6 +8040,10 @@ var si = /* @__PURE__ */ I({
|
|
|
8028
8040
|
type: Boolean,
|
|
8029
8041
|
default: !0
|
|
8030
8042
|
},
|
|
8043
|
+
matchTriggerWidth: {
|
|
8044
|
+
type: Boolean,
|
|
8045
|
+
default: !1
|
|
8046
|
+
},
|
|
8031
8047
|
popoverClass: { type: [
|
|
8032
8048
|
Boolean,
|
|
8033
8049
|
null,
|
|
@@ -8181,6 +8197,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8181
8197
|
"floating-label": c.floatingLabel,
|
|
8182
8198
|
"label-key": c.labelKey,
|
|
8183
8199
|
list: c.list,
|
|
8200
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
8184
8201
|
multiple: c.multiple,
|
|
8185
8202
|
"panel-class": c.panelClass,
|
|
8186
8203
|
"panel-style": c.panelStyle,
|
|
@@ -8223,6 +8240,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8223
8240
|
"floating-label",
|
|
8224
8241
|
"label-key",
|
|
8225
8242
|
"list",
|
|
8243
|
+
"match-trigger-width",
|
|
8226
8244
|
"multiple",
|
|
8227
8245
|
"panel-class",
|
|
8228
8246
|
"panel-style",
|
|
@@ -18563,14 +18581,25 @@ var wf = /* @__PURE__ */ I({
|
|
|
18563
18581
|
String,
|
|
18564
18582
|
Object,
|
|
18565
18583
|
Array
|
|
18566
|
-
] }
|
|
18584
|
+
] },
|
|
18585
|
+
matchTriggerWidth: {
|
|
18586
|
+
type: Boolean,
|
|
18587
|
+
default: !1
|
|
18588
|
+
}
|
|
18567
18589
|
},
|
|
18568
18590
|
setup(e) {
|
|
18569
18591
|
let t = e;
|
|
18570
18592
|
X();
|
|
18571
18593
|
let n = Sf();
|
|
18572
18594
|
if (!n) throw Error("StSelectDropdown must be used within a StSelectContainer");
|
|
18573
|
-
let r = O(() =>
|
|
18595
|
+
let r = O(() => {
|
|
18596
|
+
if (t.popoverStyle) return t.popoverStyle;
|
|
18597
|
+
if (n.triggerWidth.value > 0) {
|
|
18598
|
+
let e = `${n.triggerWidth.value}px`;
|
|
18599
|
+
return t.matchTriggerWidth ? { width: e } : { minWidth: e };
|
|
18600
|
+
}
|
|
18601
|
+
return {};
|
|
18602
|
+
});
|
|
18574
18603
|
return (e, i) => (H(), k(Qt, {
|
|
18575
18604
|
"content-class": t.popoverClass,
|
|
18576
18605
|
"content-style": r.value,
|
|
@@ -18712,6 +18741,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18712
18741
|
class: B(n.value),
|
|
18713
18742
|
"show-track": !1,
|
|
18714
18743
|
style: V(q(t).style),
|
|
18744
|
+
"content-class": "w-full",
|
|
18715
18745
|
"device-type": "desktop",
|
|
18716
18746
|
vertical: "",
|
|
18717
18747
|
"view-class": "min-h-0 flex-1 px-1 py-1.5"
|
|
@@ -18720,7 +18750,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18720
18750
|
_: 3
|
|
18721
18751
|
}, 8, ["class", "style"]));
|
|
18722
18752
|
}
|
|
18723
|
-
}), kf = { class: "flex-1 truncate text-foreground" }, Af = {
|
|
18753
|
+
}), kf = { class: "min-w-0 flex-1 truncate text-foreground" }, Af = {
|
|
18724
18754
|
key: 0,
|
|
18725
18755
|
class: "st-select__check text-primary"
|
|
18726
18756
|
}, jf = /* @__PURE__ */ I({
|
|
@@ -18785,7 +18815,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18785
18815
|
setup(e) {
|
|
18786
18816
|
let t = J(), n = e;
|
|
18787
18817
|
if (!Sf()) throw Error("SelectGroup must be used within a Select");
|
|
18788
|
-
let r = O(() => l("st-select__group-label", "px-3 py-2 text-xs font-semibold text-muted-foreground", t.class));
|
|
18818
|
+
let r = O(() => l("st-select__group-label", "truncate px-3 py-2 text-xs font-semibold text-muted-foreground", t.class));
|
|
18789
18819
|
return (e, i) => (H(), j("div", Mf, [M("div", {
|
|
18790
18820
|
class: B(r.value),
|
|
18791
18821
|
style: V(q(t).style)
|
|
@@ -18992,6 +19022,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
18992
19022
|
type: Boolean,
|
|
18993
19023
|
default: !0
|
|
18994
19024
|
},
|
|
19025
|
+
matchTriggerWidth: {
|
|
19026
|
+
type: Boolean,
|
|
19027
|
+
default: !1
|
|
19028
|
+
},
|
|
18995
19029
|
popoverClass: { type: [
|
|
18996
19030
|
Boolean,
|
|
18997
19031
|
null,
|
|
@@ -19129,6 +19163,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19129
19163
|
}, {
|
|
19130
19164
|
default: $(() => [F(Tf, {
|
|
19131
19165
|
disabled: i.disabled,
|
|
19166
|
+
"match-trigger-width": i.matchTriggerWidth,
|
|
19132
19167
|
"popover-class": i.popoverClass,
|
|
19133
19168
|
"popover-style": i.popoverStyle
|
|
19134
19169
|
}, {
|
|
@@ -19215,6 +19250,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19215
19250
|
_: 3
|
|
19216
19251
|
}, 8, [
|
|
19217
19252
|
"disabled",
|
|
19253
|
+
"match-trigger-width",
|
|
19218
19254
|
"popover-class",
|
|
19219
19255
|
"popover-style"
|
|
19220
19256
|
])]),
|
|
@@ -19568,6 +19604,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
19568
19604
|
type: Boolean,
|
|
19569
19605
|
default: !0
|
|
19570
19606
|
},
|
|
19607
|
+
matchTriggerWidth: {
|
|
19608
|
+
type: Boolean,
|
|
19609
|
+
default: !1
|
|
19610
|
+
},
|
|
19571
19611
|
popoverClass: { type: [
|
|
19572
19612
|
Boolean,
|
|
19573
19613
|
null,
|
|
@@ -19747,6 +19787,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19747
19787
|
list: c.list,
|
|
19748
19788
|
loading: c.loading,
|
|
19749
19789
|
"loading-text": c.loadingText,
|
|
19790
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
19750
19791
|
"no-match-text": c.noMatchText,
|
|
19751
19792
|
"option-class": c.optionClass,
|
|
19752
19793
|
"option-style": c.optionStyle,
|
|
@@ -19778,7 +19819,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19778
19819
|
fn: $(() => [G(e.$slots, "prefix")]),
|
|
19779
19820
|
key: "2"
|
|
19780
19821
|
} : void 0
|
|
19781
|
-
]), 1032, /* @__PURE__ */ "modelValue.class.clearable.content-class.content-style.debounce.disabled.dropdown-class.dropdown-style.empty-class.empty-style.filterable.floating-label.group.group-label-class.group-label-style.label-key.list.loading.loading-text.no-match-text.option-class.option-style.placeholder.popover-class.popover-style.remote.remote-method.size.style.value-key".split("."))) : (H(), k(qf, {
|
|
19822
|
+
]), 1032, /* @__PURE__ */ "modelValue.class.clearable.content-class.content-style.debounce.disabled.dropdown-class.dropdown-style.empty-class.empty-style.filterable.floating-label.group.group-label-class.group-label-style.label-key.list.loading.loading-text.match-trigger-width.no-match-text.option-class.option-style.placeholder.popover-class.popover-style.remote.remote-method.size.style.value-key".split("."))) : (H(), k(qf, {
|
|
19782
19823
|
key: 1,
|
|
19783
19824
|
ref_key: "selectRef",
|
|
19784
19825
|
ref: l,
|