straw-ui-vue 0.1.60 → 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 +48 -6
- package/dist/validation.js +0 -1
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.st-input-group-input[type=number][data-v-af941ff6]{-moz-appearance:textfield}.st-input-group-input[type=number][data-v-af941ff6]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.st-input-group-input[type=number][data-v-af941ff6]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-input-group-input[data-v-af941ff6]::-webkit-credentials-auto-fill-button{visibility:hidden;pointer-events:none;position:absolute;right:0}.st-input-group-input[data-v-af941ff6]::-webkit-caps-lock-indicator{visibility:hidden}.st-input-group-input[data-v-af941ff6]::-ms-reveal{display:none}.st-color-picker-panel[data-v-1e932aa8]{background-color:var(--color-background);border-radius:6px;width:240px;padding:12px;box-shadow:0 2px 8px #00000026}.st-color-picker-panel__saturation[data-v-1e932aa8]{cursor:crosshair;border-radius:4px;width:100%;height:160px;margin-bottom:12px;position:relative;overflow:hidden}.st-color-picker-panel__saturation-bg[data-v-1e932aa8]{position:absolute;inset:0}.st-color-picker-panel__saturation-white[data-v-1e932aa8]{background:linear-gradient(90deg,#fff,#0000);position:absolute;inset:0}.st-color-picker-panel__saturation-black[data-v-1e932aa8]{background:linear-gradient(#0000,#000);position:absolute;inset:0}.st-color-picker-panel__cursor[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d,inset 0 0 0 1px #0000004d}.st-color-picker-panel__hue[data-v-1e932aa8]{margin-bottom:12px}.st-color-picker-panel__hue-bar[data-v-1e932aa8]{cursor:pointer;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__hue-thumb[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__alpha[data-v-1e932aa8]{margin-bottom:12px}.st-color-picker-panel__alpha-bar[data-v-1e932aa8]{cursor:pointer;background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px;border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__alpha-bg[data-v-1e932aa8]{border-radius:4px;position:absolute;inset:0}.st-color-picker-panel__alpha-thumb[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__input-group[data-v-1e932aa8]{gap:8px;margin-bottom:12px;display:flex}.st-color-picker-panel__input-item[data-v-1e932aa8]{flex-direction:column;flex:1;gap:4px;display:flex}.st-color-picker-panel__input-label[data-v-1e932aa8]{color:var(--color-muted-foreground);text-transform:uppercase;font-size:11px}.st-color-picker-panel__input[data-v-1e932aa8]{width:100%;height:28px;color:var(--color-foreground);background-color:var(--color-background);border:1px solid var(--color-border);-moz-appearance:textfield;border-radius:4px;outline:none;padding:0 6px;font-size:12px;transition:border-color .2s}.st-color-picker-panel__input[data-v-1e932aa8]:focus{border-color:var(--color-primary)}.st-color-picker-panel__input[data-v-1e932aa8]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__input[data-v-1e932aa8]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__presets[data-v-1e932aa8]{flex-wrap:wrap;gap:6px;display:flex}.st-color-picker-panel__preset-item[data-v-1e932aa8]{cursor:pointer;border:1px solid var(--color-border);border-radius:3px;width:18px;height:18px;transition:transform .15s,box-shadow .15s}.st-color-picker-panel__preset-item[data-v-1e932aa8]:hover{transform:scale(1.15);box-shadow:0 0 0 2px #0000001a}.st-color-picker[data-v-e86e01ab]{position:relative}.st-color-picker--disabled[data-v-e86e01ab]{opacity:.5;cursor:not-allowed}.st-color-picker--focused .st-color-picker__preview[data-v-e86e01ab]{box-shadow:0 0 0 2px var(--color-primary)}.st-color-picker__preview[data-v-e86e01ab]{border:1px solid var(--color-border);border-radius:4px;width:20px;height:20px;transition:box-shadow .2s}.st-color-picker__preview--empty[data-v-e86e01ab]{background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px}.st-color-picker__arrow[data-v-e86e01ab]{color:var(--color-muted-foreground)}input[type=number][data-v-3115292b]{-moz-appearance:textfield}input[type=number][data-v-3115292b]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-3115292b]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
1
2
|
import { C as e, S as t, _ as n, b as r, d as i, f as a, g as o, h as s, l as c, m as l, n as u, p as d, t as f, u as p, v as m, w as h, x as g, y as _ } from "./forward-props-BJqcpGUj.js";
|
|
2
3
|
import { d as v, f as y, r as b, t as x } from "./dist-umlLlysd.js";
|
|
3
4
|
import { n as S, t as C } from "./use-field-validation-BaP5Jru4.js";
|
|
@@ -5396,6 +5397,10 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5396
5397
|
type: Boolean,
|
|
5397
5398
|
default: !0
|
|
5398
5399
|
},
|
|
5400
|
+
matchTriggerWidth: {
|
|
5401
|
+
type: Boolean,
|
|
5402
|
+
default: !1
|
|
5403
|
+
},
|
|
5399
5404
|
popoverClass: { type: [
|
|
5400
5405
|
Boolean,
|
|
5401
5406
|
null,
|
|
@@ -5483,7 +5488,14 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5483
5488
|
}
|
|
5484
5489
|
let e = Ht(r.value);
|
|
5485
5490
|
return e === void 0 ? T(i.value) : E(e);
|
|
5486
|
-
}), 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
|
+
});
|
|
5487
5499
|
function j() {
|
|
5488
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]));
|
|
5489
5501
|
}
|
|
@@ -5575,6 +5587,7 @@ var Qn = ["for"], $n = /* @__PURE__ */ I({
|
|
|
5575
5587
|
}, [d.list.length > 0 ? (H(), k(zn, {
|
|
5576
5588
|
key: 0,
|
|
5577
5589
|
class: "flex max-h-280px flex-col",
|
|
5590
|
+
"content-class": "w-full",
|
|
5578
5591
|
vertical: "",
|
|
5579
5592
|
"view-class": "min-h-0 flex-1"
|
|
5580
5593
|
}, {
|
|
@@ -8027,6 +8040,10 @@ var si = /* @__PURE__ */ I({
|
|
|
8027
8040
|
type: Boolean,
|
|
8028
8041
|
default: !0
|
|
8029
8042
|
},
|
|
8043
|
+
matchTriggerWidth: {
|
|
8044
|
+
type: Boolean,
|
|
8045
|
+
default: !1
|
|
8046
|
+
},
|
|
8030
8047
|
popoverClass: { type: [
|
|
8031
8048
|
Boolean,
|
|
8032
8049
|
null,
|
|
@@ -8180,6 +8197,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8180
8197
|
"floating-label": c.floatingLabel,
|
|
8181
8198
|
"label-key": c.labelKey,
|
|
8182
8199
|
list: c.list,
|
|
8200
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
8183
8201
|
multiple: c.multiple,
|
|
8184
8202
|
"panel-class": c.panelClass,
|
|
8185
8203
|
"panel-style": c.panelStyle,
|
|
@@ -8222,6 +8240,7 @@ var si = /* @__PURE__ */ I({
|
|
|
8222
8240
|
"floating-label",
|
|
8223
8241
|
"label-key",
|
|
8224
8242
|
"list",
|
|
8243
|
+
"match-trigger-width",
|
|
8225
8244
|
"multiple",
|
|
8226
8245
|
"panel-class",
|
|
8227
8246
|
"panel-style",
|
|
@@ -18562,14 +18581,25 @@ var wf = /* @__PURE__ */ I({
|
|
|
18562
18581
|
String,
|
|
18563
18582
|
Object,
|
|
18564
18583
|
Array
|
|
18565
|
-
] }
|
|
18584
|
+
] },
|
|
18585
|
+
matchTriggerWidth: {
|
|
18586
|
+
type: Boolean,
|
|
18587
|
+
default: !1
|
|
18588
|
+
}
|
|
18566
18589
|
},
|
|
18567
18590
|
setup(e) {
|
|
18568
18591
|
let t = e;
|
|
18569
18592
|
X();
|
|
18570
18593
|
let n = Sf();
|
|
18571
18594
|
if (!n) throw Error("StSelectDropdown must be used within a StSelectContainer");
|
|
18572
|
-
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
|
+
});
|
|
18573
18603
|
return (e, i) => (H(), k(Qt, {
|
|
18574
18604
|
"content-class": t.popoverClass,
|
|
18575
18605
|
"content-style": r.value,
|
|
@@ -18711,6 +18741,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18711
18741
|
class: B(n.value),
|
|
18712
18742
|
"show-track": !1,
|
|
18713
18743
|
style: V(q(t).style),
|
|
18744
|
+
"content-class": "w-full",
|
|
18714
18745
|
"device-type": "desktop",
|
|
18715
18746
|
vertical: "",
|
|
18716
18747
|
"view-class": "min-h-0 flex-1 px-1 py-1.5"
|
|
@@ -18719,7 +18750,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18719
18750
|
_: 3
|
|
18720
18751
|
}, 8, ["class", "style"]));
|
|
18721
18752
|
}
|
|
18722
|
-
}), kf = { class: "flex-1 truncate text-foreground" }, Af = {
|
|
18753
|
+
}), kf = { class: "min-w-0 flex-1 truncate text-foreground" }, Af = {
|
|
18723
18754
|
key: 0,
|
|
18724
18755
|
class: "st-select__check text-primary"
|
|
18725
18756
|
}, jf = /* @__PURE__ */ I({
|
|
@@ -18784,7 +18815,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
18784
18815
|
setup(e) {
|
|
18785
18816
|
let t = J(), n = e;
|
|
18786
18817
|
if (!Sf()) throw Error("SelectGroup must be used within a Select");
|
|
18787
|
-
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));
|
|
18788
18819
|
return (e, i) => (H(), j("div", Mf, [M("div", {
|
|
18789
18820
|
class: B(r.value),
|
|
18790
18821
|
style: V(q(t).style)
|
|
@@ -18991,6 +19022,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
18991
19022
|
type: Boolean,
|
|
18992
19023
|
default: !0
|
|
18993
19024
|
},
|
|
19025
|
+
matchTriggerWidth: {
|
|
19026
|
+
type: Boolean,
|
|
19027
|
+
default: !1
|
|
19028
|
+
},
|
|
18994
19029
|
popoverClass: { type: [
|
|
18995
19030
|
Boolean,
|
|
18996
19031
|
null,
|
|
@@ -19128,6 +19163,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19128
19163
|
}, {
|
|
19129
19164
|
default: $(() => [F(Tf, {
|
|
19130
19165
|
disabled: i.disabled,
|
|
19166
|
+
"match-trigger-width": i.matchTriggerWidth,
|
|
19131
19167
|
"popover-class": i.popoverClass,
|
|
19132
19168
|
"popover-style": i.popoverStyle
|
|
19133
19169
|
}, {
|
|
@@ -19214,6 +19250,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19214
19250
|
_: 3
|
|
19215
19251
|
}, 8, [
|
|
19216
19252
|
"disabled",
|
|
19253
|
+
"match-trigger-width",
|
|
19217
19254
|
"popover-class",
|
|
19218
19255
|
"popover-style"
|
|
19219
19256
|
])]),
|
|
@@ -19567,6 +19604,10 @@ var wf = /* @__PURE__ */ I({
|
|
|
19567
19604
|
type: Boolean,
|
|
19568
19605
|
default: !0
|
|
19569
19606
|
},
|
|
19607
|
+
matchTriggerWidth: {
|
|
19608
|
+
type: Boolean,
|
|
19609
|
+
default: !1
|
|
19610
|
+
},
|
|
19570
19611
|
popoverClass: { type: [
|
|
19571
19612
|
Boolean,
|
|
19572
19613
|
null,
|
|
@@ -19746,6 +19787,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19746
19787
|
list: c.list,
|
|
19747
19788
|
loading: c.loading,
|
|
19748
19789
|
"loading-text": c.loadingText,
|
|
19790
|
+
"match-trigger-width": c.matchTriggerWidth,
|
|
19749
19791
|
"no-match-text": c.noMatchText,
|
|
19750
19792
|
"option-class": c.optionClass,
|
|
19751
19793
|
"option-style": c.optionStyle,
|
|
@@ -19777,7 +19819,7 @@ var wf = /* @__PURE__ */ I({
|
|
|
19777
19819
|
fn: $(() => [G(e.$slots, "prefix")]),
|
|
19778
19820
|
key: "2"
|
|
19779
19821
|
} : void 0
|
|
19780
|
-
]), 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, {
|
|
19781
19823
|
key: 1,
|
|
19782
19824
|
ref_key: "selectRef",
|
|
19783
19825
|
ref: l,
|
package/dist/validation.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
(function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.st-input-group-input[type=number][data-v-af941ff6]{-moz-appearance:textfield}.st-input-group-input[type=number][data-v-af941ff6]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.st-input-group-input[type=number][data-v-af941ff6]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-input-group-input[data-v-af941ff6]::-webkit-credentials-auto-fill-button{visibility:hidden;pointer-events:none;position:absolute;right:0}.st-input-group-input[data-v-af941ff6]::-webkit-caps-lock-indicator{visibility:hidden}.st-input-group-input[data-v-af941ff6]::-ms-reveal{display:none}.st-color-picker-panel[data-v-1e932aa8]{background-color:var(--color-background);border-radius:6px;width:240px;padding:12px;box-shadow:0 2px 8px #00000026}.st-color-picker-panel__saturation[data-v-1e932aa8]{cursor:crosshair;border-radius:4px;width:100%;height:160px;margin-bottom:12px;position:relative;overflow:hidden}.st-color-picker-panel__saturation-bg[data-v-1e932aa8]{position:absolute;inset:0}.st-color-picker-panel__saturation-white[data-v-1e932aa8]{background:linear-gradient(90deg,#fff,#0000);position:absolute;inset:0}.st-color-picker-panel__saturation-black[data-v-1e932aa8]{background:linear-gradient(#0000,#000);position:absolute;inset:0}.st-color-picker-panel__cursor[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d,inset 0 0 0 1px #0000004d}.st-color-picker-panel__hue[data-v-1e932aa8]{margin-bottom:12px}.st-color-picker-panel__hue-bar[data-v-1e932aa8]{cursor:pointer;background:linear-gradient(90deg,red 0%,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__hue-thumb[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__alpha[data-v-1e932aa8]{margin-bottom:12px}.st-color-picker-panel__alpha-bar[data-v-1e932aa8]{cursor:pointer;background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px;border-radius:4px;width:100%;height:12px;position:relative}.st-color-picker-panel__alpha-bg[data-v-1e932aa8]{border-radius:4px;position:absolute;inset:0}.st-color-picker-panel__alpha-thumb[data-v-1e932aa8]{pointer-events:none;border:2px solid #fff;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0000004d}.st-color-picker-panel__input-group[data-v-1e932aa8]{gap:8px;margin-bottom:12px;display:flex}.st-color-picker-panel__input-item[data-v-1e932aa8]{flex-direction:column;flex:1;gap:4px;display:flex}.st-color-picker-panel__input-label[data-v-1e932aa8]{color:var(--color-muted-foreground);text-transform:uppercase;font-size:11px}.st-color-picker-panel__input[data-v-1e932aa8]{width:100%;height:28px;color:var(--color-foreground);background-color:var(--color-background);border:1px solid var(--color-border);-moz-appearance:textfield;border-radius:4px;outline:none;padding:0 6px;font-size:12px;transition:border-color .2s}.st-color-picker-panel__input[data-v-1e932aa8]:focus{border-color:var(--color-primary)}.st-color-picker-panel__input[data-v-1e932aa8]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__input[data-v-1e932aa8]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.st-color-picker-panel__presets[data-v-1e932aa8]{flex-wrap:wrap;gap:6px;display:flex}.st-color-picker-panel__preset-item[data-v-1e932aa8]{cursor:pointer;border:1px solid var(--color-border);border-radius:3px;width:18px;height:18px;transition:transform .15s,box-shadow .15s}.st-color-picker-panel__preset-item[data-v-1e932aa8]:hover{transform:scale(1.15);box-shadow:0 0 0 2px #0000001a}.st-color-picker[data-v-e86e01ab]{position:relative}.st-color-picker--disabled[data-v-e86e01ab]{opacity:.5;cursor:not-allowed}.st-color-picker--focused .st-color-picker__preview[data-v-e86e01ab]{box-shadow:0 0 0 2px var(--color-primary)}.st-color-picker__preview[data-v-e86e01ab]{border:1px solid var(--color-border);border-radius:4px;width:20px;height:20px;transition:box-shadow .2s}.st-color-picker__preview--empty[data-v-e86e01ab]{background-image:linear-gradient(45deg,silver 25%,#0000 25%),linear-gradient(-45deg,silver 25%,#0000 25%),linear-gradient(45deg,#0000 75%,silver 75%),linear-gradient(-45deg,#0000 75%,silver 75%);background-position:0 0,0 4px,4px -4px,-4px 0;background-size:8px 8px}.st-color-picker__arrow[data-v-e86e01ab]{color:var(--color-muted-foreground)}input[type=number][data-v-3115292b]{-moz-appearance:textfield}input[type=number][data-v-3115292b]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number][data-v-3115292b]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();
|
|
2
1
|
export { t as useInjectFieldValidation, n as useProvideFieldValidation } from "./use-field-validation-BaP5Jru4.js";
|