@uzum-tech/ui 1.0.3 → 1.1.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/index.js +387 -126
- package/dist/index.prod.js +1 -1
- package/es/_internal/account-option/index.d.ts +1 -0
- package/es/_internal/account-option/index.js +1 -0
- package/es/_internal/account-option/src/AccountOption.d.ts +162 -0
- package/es/_internal/account-option/src/AccountOption.js +56 -0
- package/es/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
- package/es/_internal/account-option/src/styles/index.cssr.js +40 -0
- package/es/_internal/account-option/styles/_common.d.ts +12 -0
- package/es/_internal/account-option/styles/_common.js +11 -0
- package/es/_internal/account-option/styles/dark.d.ts +2 -0
- package/es/_internal/account-option/styles/dark.js +7 -0
- package/es/_internal/account-option/styles/index.d.ts +3 -0
- package/es/_internal/account-option/styles/index.js +2 -0
- package/es/_internal/account-option/styles/light.d.ts +26 -0
- package/es/_internal/account-option/styles/light.js +11 -0
- package/es/_internal/index.d.ts +1 -0
- package/es/_internal/index.js +1 -0
- package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -0
- package/es/_internal/select-menu/src/SelectMenu.js +2 -1
- package/es/_internal/select-menu/src/SelectOption.d.ts +1 -0
- package/es/_internal/select-menu/src/SelectOption.js +14 -8
- package/es/_internal/select-menu/src/interface.d.ts +1 -0
- package/es/_internal/select-menu/src/styles/index.cssr.js +4 -3
- package/es/_internal/selection/src/Selection.d.ts +35 -8
- package/es/_internal/selection/src/Selection.js +44 -25
- package/es/_internal/selection/src/styles/index.cssr.js +12 -3
- package/es/_internal/selection/styles/light.d.ts +4 -0
- package/es/_internal/selection/styles/light.js +2 -0
- package/es/badge/src/Badge.d.ts +71 -4
- package/es/badge/src/Badge.js +5 -4
- package/es/badge/src/styles/index.cssr.js +1 -1
- package/es/badge/styles/light.d.ts +7 -0
- package/es/badge/styles/light.js +9 -2
- package/es/cascader/src/Cascader.d.ts +20 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -0
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/cascader/styles/light.d.ts +2 -0
- package/es/config-provider/src/internal-interface.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +16 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
- package/es/data-table/src/TableParts/Body.d.ts +4 -0
- package/es/data-table/src/TableParts/Cell.d.ts +8 -0
- package/es/data-table/src/TableParts/Header.d.ts +4 -0
- package/es/data-table/src/interface.d.ts +6 -0
- package/es/data-table/styles/light.d.ts +2 -0
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/ListItem.d.ts +1 -1
- package/es/pagination/src/Pagination.d.ts +22 -0
- package/es/pagination/styles/light.d.ts +2 -0
- package/es/select/demos/enUS/flag.d.ts +2 -0
- package/es/select/demos/enUS/flag.js +25 -0
- package/es/select/src/Select.d.ts +35 -1
- package/es/select/src/Select.js +10 -5
- package/es/select/src/interface.d.ts +2 -0
- package/es/select/styles/light.d.ts +2 -0
- package/es/theme-editor/src/ThemeEditor.js +2 -2
- package/es/themes/dark.js +2 -0
- package/es/themes/light.js +2 -0
- package/es/tree-select/src/TreeSelect.d.ts +20 -0
- package/es/tree-select/styles/light.d.ts +2 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/account-option/index.d.ts +1 -0
- package/lib/_internal/account-option/index.js +8 -0
- package/lib/_internal/account-option/src/AccountOption.d.ts +162 -0
- package/lib/_internal/account-option/src/AccountOption.js +61 -0
- package/lib/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
- package/lib/_internal/account-option/src/styles/index.cssr.js +45 -0
- package/lib/_internal/account-option/styles/_common.d.ts +12 -0
- package/lib/_internal/account-option/styles/_common.js +13 -0
- package/lib/_internal/account-option/styles/dark.d.ts +2 -0
- package/lib/_internal/account-option/styles/dark.js +10 -0
- package/lib/_internal/account-option/styles/index.d.ts +3 -0
- package/lib/_internal/account-option/styles/index.js +7 -0
- package/lib/_internal/account-option/styles/light.d.ts +26 -0
- package/lib/_internal/account-option/styles/light.js +18 -0
- package/lib/_internal/index.d.ts +1 -0
- package/lib/_internal/index.js +3 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -0
- package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
- package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -0
- package/lib/_internal/select-menu/src/SelectOption.js +14 -8
- package/lib/_internal/select-menu/src/interface.d.ts +1 -0
- package/lib/_internal/select-menu/src/styles/index.cssr.js +4 -3
- package/lib/_internal/selection/src/Selection.d.ts +35 -8
- package/lib/_internal/selection/src/Selection.js +43 -24
- package/lib/_internal/selection/src/styles/index.cssr.js +12 -3
- package/lib/_internal/selection/styles/light.d.ts +4 -0
- package/lib/_internal/selection/styles/light.js +2 -0
- package/lib/badge/src/Badge.d.ts +71 -4
- package/lib/badge/src/Badge.js +5 -4
- package/lib/badge/src/styles/index.cssr.js +1 -1
- package/lib/badge/styles/light.d.ts +7 -0
- package/lib/badge/styles/light.js +9 -2
- package/lib/cascader/src/Cascader.d.ts +20 -0
- package/lib/cascader/src/CascaderMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/cascader/styles/light.d.ts +2 -0
- package/lib/config-provider/src/internal-interface.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +16 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
- package/lib/data-table/src/TableParts/Body.d.ts +4 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
- package/lib/data-table/src/TableParts/Header.d.ts +4 -0
- package/lib/data-table/src/interface.d.ts +6 -0
- package/lib/data-table/styles/light.d.ts +2 -0
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/ListItem.d.ts +1 -1
- package/lib/pagination/src/Pagination.d.ts +22 -0
- package/lib/pagination/styles/light.d.ts +2 -0
- package/lib/select/demos/enUS/flag.d.ts +2 -0
- package/lib/select/demos/enUS/flag.js +27 -0
- package/lib/select/src/Select.d.ts +35 -1
- package/lib/select/src/Select.js +10 -5
- package/lib/select/src/interface.d.ts +2 -0
- package/lib/select/styles/light.d.ts +2 -0
- package/lib/theme-editor/src/ThemeEditor.js +2 -2
- package/lib/themes/dark.js +2 -0
- package/lib/themes/light.js +2 -0
- package/lib/tree-select/src/TreeSelect.d.ts +20 -0
- package/lib/tree-select/styles/light.d.ts +2 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
- package/web-types.json +41 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType, type InputHTMLAttributes } from 'vue';
|
|
1
|
+
import { type PropType, type InputHTMLAttributes, VNodeChild } from 'vue';
|
|
2
2
|
import type { RenderLabel, RenderLabelImpl } from '../../select-menu/src/interface';
|
|
3
3
|
import type { SelectBaseOption } from '../../../select/src/interface';
|
|
4
4
|
import type { FormValidationStatus } from '../../../form/src/interface';
|
|
@@ -27,11 +27,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
};
|
|
28
28
|
placeholder: StringConstructor;
|
|
29
29
|
selectedOption: {
|
|
30
|
-
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
30
|
+
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)> | null>;
|
|
31
31
|
default: null;
|
|
32
32
|
};
|
|
33
33
|
selectedOptions: {
|
|
34
|
-
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
34
|
+
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)>[] | null>;
|
|
35
35
|
default: null;
|
|
36
36
|
};
|
|
37
37
|
labelField: {
|
|
@@ -42,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
42
42
|
type: StringConstructor;
|
|
43
43
|
default: string;
|
|
44
44
|
};
|
|
45
|
+
tagField: StringConstructor;
|
|
45
46
|
multiple: BooleanConstructor;
|
|
46
47
|
filterable: BooleanConstructor;
|
|
47
48
|
clearable: BooleanConstructor;
|
|
@@ -59,6 +60,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
60
|
};
|
|
60
61
|
inputProps: PropType<InputHTMLAttributes>;
|
|
61
62
|
focused: BooleanConstructor;
|
|
63
|
+
filled: BooleanConstructor;
|
|
62
64
|
renderTag: PropType<RenderTag>;
|
|
63
65
|
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
64
66
|
onClick: PropType<(e: MouseEvent) => void>;
|
|
@@ -71,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
73
|
onPatternFocus: PropType<(e: FocusEvent) => void>;
|
|
72
74
|
onPatternBlur: PropType<(e: FocusEvent) => void>;
|
|
73
75
|
renderLabel: PropType<RenderLabel>;
|
|
76
|
+
renderTagLabel: PropType<RenderLabel>;
|
|
74
77
|
status: PropType<FormValidationStatus>;
|
|
75
78
|
inlineThemeDisabled: BooleanConstructor;
|
|
76
79
|
ignoreComposition: {
|
|
@@ -81,6 +84,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
81
84
|
round: BooleanConstructor;
|
|
82
85
|
counter: BooleanConstructor;
|
|
83
86
|
secondary: BooleanConstructor;
|
|
87
|
+
account: BooleanConstructor;
|
|
84
88
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
85
89
|
paddingTiny: string;
|
|
86
90
|
paddingSmall: string;
|
|
@@ -122,9 +126,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
126
|
placeholderColor: string;
|
|
123
127
|
placeholderColorDisabled: string;
|
|
124
128
|
color: string;
|
|
129
|
+
colorFilled: string;
|
|
125
130
|
colorDisabled: string;
|
|
126
131
|
colorActive: string;
|
|
127
132
|
border: string;
|
|
133
|
+
borderFilled: string;
|
|
128
134
|
borderHover: string;
|
|
129
135
|
borderActive: string;
|
|
130
136
|
borderFocus: string;
|
|
@@ -245,9 +251,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
245
251
|
placeholderColor: string;
|
|
246
252
|
placeholderColorDisabled: string;
|
|
247
253
|
color: string;
|
|
254
|
+
colorFilled: string;
|
|
248
255
|
colorDisabled: string;
|
|
249
256
|
colorActive: string;
|
|
250
257
|
border: string;
|
|
258
|
+
borderFilled: string;
|
|
251
259
|
borderHover: string;
|
|
252
260
|
borderActive: string;
|
|
253
261
|
borderFocus: string;
|
|
@@ -368,9 +376,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
368
376
|
placeholderColor: string;
|
|
369
377
|
placeholderColorDisabled: string;
|
|
370
378
|
color: string;
|
|
379
|
+
colorFilled: string;
|
|
371
380
|
colorDisabled: string;
|
|
372
381
|
colorActive: string;
|
|
373
382
|
border: string;
|
|
383
|
+
borderFilled: string;
|
|
374
384
|
borderHover: string;
|
|
375
385
|
borderActive: string;
|
|
376
386
|
borderFocus: string;
|
|
@@ -603,9 +613,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
603
613
|
placeholderColor: string;
|
|
604
614
|
placeholderColorDisabled: string;
|
|
605
615
|
color: string;
|
|
616
|
+
colorFilled: string;
|
|
606
617
|
colorDisabled: string;
|
|
607
618
|
colorActive: string;
|
|
608
619
|
border: string;
|
|
620
|
+
borderFilled: string;
|
|
609
621
|
borderHover: string;
|
|
610
622
|
borderActive: string;
|
|
611
623
|
borderFocus: string;
|
|
@@ -696,7 +708,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
696
708
|
}>;
|
|
697
709
|
mergedClearable: import("vue").ComputedRef<boolean>;
|
|
698
710
|
patternInputFocused: import("vue").Ref<boolean>;
|
|
699
|
-
filterablePlaceholder: import("vue").ComputedRef<
|
|
711
|
+
filterablePlaceholder: import("vue").ComputedRef<VNodeChild>;
|
|
700
712
|
label: import("vue").ComputedRef<unknown>;
|
|
701
713
|
selected: import("vue").ComputedRef<boolean>;
|
|
702
714
|
showTagsPanel: import("vue").Ref<boolean>;
|
|
@@ -740,9 +752,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
740
752
|
getCounter: () => HTMLElement | null;
|
|
741
753
|
getTail: () => HTMLElement | null;
|
|
742
754
|
renderLabel: RenderLabelImpl;
|
|
755
|
+
renderTagLabel: RenderLabelImpl;
|
|
743
756
|
cssVars: import("vue").ComputedRef<{
|
|
744
757
|
'--u-bezier': string;
|
|
745
758
|
'--u-border': string;
|
|
759
|
+
'--u-border-filled': string;
|
|
746
760
|
'--u-border-active': string;
|
|
747
761
|
'--u-border-focus': string;
|
|
748
762
|
'--u-border-hover': string;
|
|
@@ -753,6 +767,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
753
767
|
'--u-box-shadow-hover': string;
|
|
754
768
|
'--u-caret-color': string;
|
|
755
769
|
'--u-color': string;
|
|
770
|
+
'--u-color-filled': string;
|
|
756
771
|
'--u-color-active': string;
|
|
757
772
|
'--u-color-disabled': string;
|
|
758
773
|
'--u-line-height': string;
|
|
@@ -847,11 +862,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
847
862
|
};
|
|
848
863
|
placeholder: StringConstructor;
|
|
849
864
|
selectedOption: {
|
|
850
|
-
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
865
|
+
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)> | null>;
|
|
851
866
|
default: null;
|
|
852
867
|
};
|
|
853
868
|
selectedOptions: {
|
|
854
|
-
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
869
|
+
type: PropType<SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)>[] | null>;
|
|
855
870
|
default: null;
|
|
856
871
|
};
|
|
857
872
|
labelField: {
|
|
@@ -862,6 +877,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
862
877
|
type: StringConstructor;
|
|
863
878
|
default: string;
|
|
864
879
|
};
|
|
880
|
+
tagField: StringConstructor;
|
|
865
881
|
multiple: BooleanConstructor;
|
|
866
882
|
filterable: BooleanConstructor;
|
|
867
883
|
clearable: BooleanConstructor;
|
|
@@ -879,6 +895,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
879
895
|
};
|
|
880
896
|
inputProps: PropType<InputHTMLAttributes>;
|
|
881
897
|
focused: BooleanConstructor;
|
|
898
|
+
filled: BooleanConstructor;
|
|
882
899
|
renderTag: PropType<RenderTag>;
|
|
883
900
|
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
884
901
|
onClick: PropType<(e: MouseEvent) => void>;
|
|
@@ -891,6 +908,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
891
908
|
onPatternFocus: PropType<(e: FocusEvent) => void>;
|
|
892
909
|
onPatternBlur: PropType<(e: FocusEvent) => void>;
|
|
893
910
|
renderLabel: PropType<RenderLabel>;
|
|
911
|
+
renderTagLabel: PropType<RenderLabel>;
|
|
894
912
|
status: PropType<FormValidationStatus>;
|
|
895
913
|
inlineThemeDisabled: BooleanConstructor;
|
|
896
914
|
ignoreComposition: {
|
|
@@ -901,6 +919,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
901
919
|
round: BooleanConstructor;
|
|
902
920
|
counter: BooleanConstructor;
|
|
903
921
|
secondary: BooleanConstructor;
|
|
922
|
+
account: BooleanConstructor;
|
|
904
923
|
theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
|
|
905
924
|
paddingTiny: string;
|
|
906
925
|
paddingSmall: string;
|
|
@@ -942,9 +961,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
942
961
|
placeholderColor: string;
|
|
943
962
|
placeholderColorDisabled: string;
|
|
944
963
|
color: string;
|
|
964
|
+
colorFilled: string;
|
|
945
965
|
colorDisabled: string;
|
|
946
966
|
colorActive: string;
|
|
947
967
|
border: string;
|
|
968
|
+
borderFilled: string;
|
|
948
969
|
borderHover: string;
|
|
949
970
|
borderActive: string;
|
|
950
971
|
borderFocus: string;
|
|
@@ -1065,9 +1086,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1065
1086
|
placeholderColor: string;
|
|
1066
1087
|
placeholderColorDisabled: string;
|
|
1067
1088
|
color: string;
|
|
1089
|
+
colorFilled: string;
|
|
1068
1090
|
colorDisabled: string;
|
|
1069
1091
|
colorActive: string;
|
|
1070
1092
|
border: string;
|
|
1093
|
+
borderFilled: string;
|
|
1071
1094
|
borderHover: string;
|
|
1072
1095
|
borderActive: string;
|
|
1073
1096
|
borderFocus: string;
|
|
@@ -1188,9 +1211,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1188
1211
|
placeholderColor: string;
|
|
1189
1212
|
placeholderColorDisabled: string;
|
|
1190
1213
|
color: string;
|
|
1214
|
+
colorFilled: string;
|
|
1191
1215
|
colorDisabled: string;
|
|
1192
1216
|
colorActive: string;
|
|
1193
1217
|
border: string;
|
|
1218
|
+
borderFilled: string;
|
|
1194
1219
|
borderHover: string;
|
|
1195
1220
|
borderActive: string;
|
|
1196
1221
|
borderFocus: string;
|
|
@@ -1274,6 +1299,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1274
1299
|
pattern: string;
|
|
1275
1300
|
round: boolean;
|
|
1276
1301
|
size: SelectSize;
|
|
1302
|
+
filled: boolean;
|
|
1277
1303
|
multiple: boolean;
|
|
1278
1304
|
active: boolean;
|
|
1279
1305
|
disabled: boolean;
|
|
@@ -1281,12 +1307,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1281
1307
|
loading: boolean;
|
|
1282
1308
|
bordered: boolean | undefined;
|
|
1283
1309
|
inlineThemeDisabled: boolean;
|
|
1310
|
+
account: boolean;
|
|
1284
1311
|
labelField: string;
|
|
1285
1312
|
valueField: string;
|
|
1286
1313
|
showArrow: boolean;
|
|
1287
1314
|
secondary: boolean;
|
|
1288
|
-
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
1289
|
-
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) =>
|
|
1315
|
+
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)> | null;
|
|
1316
|
+
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)>[] | null;
|
|
1290
1317
|
filterable: boolean;
|
|
1291
1318
|
clearable: boolean;
|
|
1292
1319
|
loadingSkeleton: boolean;
|
|
@@ -36,13 +36,13 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
36
|
}, labelField: { type: String, default: 'label' }, valueField: {
|
|
37
37
|
type: String,
|
|
38
38
|
default: 'value'
|
|
39
|
-
}, multiple: Boolean, filterable: Boolean, clearable: Boolean, disabled: Boolean, size: {
|
|
39
|
+
}, tagField: String, multiple: Boolean, filterable: Boolean, clearable: Boolean, disabled: Boolean, size: {
|
|
40
40
|
type: String,
|
|
41
41
|
default: 'medium'
|
|
42
42
|
}, loading: Boolean, loadingSkeleton: Boolean, autofocus: Boolean, showArrow: {
|
|
43
43
|
type: Boolean,
|
|
44
44
|
default: true
|
|
45
|
-
}, inputProps: Object, focused: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, status: String, inlineThemeDisabled: Boolean, ignoreComposition: { type: Boolean, default: true }, onResize: Function, round: Boolean, counter: Boolean, secondary: Boolean }),
|
|
45
|
+
}, inputProps: Object, focused: Boolean, filled: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], onClear: Function, onPatternInput: Function, onPatternFocus: Function, onPatternBlur: Function, renderLabel: Function, renderTagLabel: Function, status: String, inlineThemeDisabled: Boolean, ignoreComposition: { type: Boolean, default: true }, onResize: Function, round: Boolean, counter: Boolean, secondary: Boolean, account: Boolean }),
|
|
46
46
|
setup(props) {
|
|
47
47
|
const patternInputMirrorRef = (0, vue_1.ref)(null);
|
|
48
48
|
const patternInputRef = (0, vue_1.ref)(null);
|
|
@@ -361,11 +361,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
361
361
|
// clear
|
|
362
362
|
clearColor, clearColorHover, clearColorPressed,
|
|
363
363
|
// secondary
|
|
364
|
-
arrowColorSecondary, clearColorSecondary, colorSecondary, textColorSecondary, borderSecondary, arrowColorDisabledSecondary, clearColorDisabledSecondary, colorDisabledSecondary, textColorDisabledSecondary, borderDisabledSecondary, arrowColorHoverSecondary, clearColorHoverSecondary, colorHoverSecondary, textColorHoverSecondary, borderHoverSecondary, filterCounterTextColor, filterCounterSeparatorColor, filterCounterTextColorDisabled, filterCounterSeparatorColorDisabled, caretColorSecondary, arrowColorActiveSecondary, clearColorActiveSecondary, colorActiveSecondary, textColorActiveSecondary, borderActiveSecondary, arrowColorFocusSecondary, clearColorFocusSecondary, colorFocusSecondary, textColorFocusSecondary, borderFocusSecondary, [(0, _utils_1.createKey)('clearSize', size)]: clearSize, [(0, _utils_1.createKey)('arrowSize', size)]: arrowSize, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('borderRadius', size)]: borderRadius, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('lineHeight', size)]: lineHeight } } = themeRef.value;
|
|
364
|
+
arrowColorSecondary, clearColorSecondary, colorSecondary, textColorSecondary, borderSecondary, arrowColorDisabledSecondary, clearColorDisabledSecondary, colorDisabledSecondary, textColorDisabledSecondary, borderDisabledSecondary, arrowColorHoverSecondary, clearColorHoverSecondary, colorHoverSecondary, textColorHoverSecondary, borderHoverSecondary, filterCounterTextColor, filterCounterSeparatorColor, filterCounterTextColorDisabled, filterCounterSeparatorColorDisabled, caretColorSecondary, arrowColorActiveSecondary, clearColorActiveSecondary, colorActiveSecondary, textColorActiveSecondary, borderActiveSecondary, arrowColorFocusSecondary, clearColorFocusSecondary, colorFocusSecondary, textColorFocusSecondary, borderFocusSecondary, borderFilled, colorFilled, [(0, _utils_1.createKey)('clearSize', size)]: clearSize, [(0, _utils_1.createKey)('arrowSize', size)]: arrowSize, [(0, _utils_1.createKey)('padding', size)]: padding, [(0, _utils_1.createKey)('borderRadius', size)]: borderRadius, [(0, _utils_1.createKey)('height', size)]: height, [(0, _utils_1.createKey)('fontSize', size)]: fontSize, [(0, _utils_1.createKey)('lineHeight', size)]: lineHeight } } = themeRef.value;
|
|
365
365
|
const { top: paddingTop, right: paddingRight, bottom: paddingBottom, left: paddingLeft } = (0, seemly_1.getPadding)(padding);
|
|
366
366
|
return {
|
|
367
367
|
'--u-bezier': cubicBezierEaseInOut,
|
|
368
368
|
'--u-border': border,
|
|
369
|
+
'--u-border-filled': borderFilled,
|
|
369
370
|
'--u-border-active': borderActive,
|
|
370
371
|
'--u-border-focus': borderFocus,
|
|
371
372
|
'--u-border-hover': borderHover,
|
|
@@ -376,6 +377,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
376
377
|
'--u-box-shadow-hover': boxShadowHover,
|
|
377
378
|
'--u-caret-color': caretColor,
|
|
378
379
|
'--u-color': color,
|
|
380
|
+
'--u-color-filled': colorFilled,
|
|
379
381
|
'--u-color-active': colorActive,
|
|
380
382
|
'--u-color-disabled': colorDisabled,
|
|
381
383
|
'--u-line-height': lineHeight,
|
|
@@ -505,6 +507,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
505
507
|
getCounter,
|
|
506
508
|
getTail,
|
|
507
509
|
renderLabel: props.renderLabel,
|
|
510
|
+
renderTagLabel: props.renderTagLabel,
|
|
508
511
|
cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
|
|
509
512
|
themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
|
|
510
513
|
onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
|
|
@@ -516,7 +519,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
516
519
|
};
|
|
517
520
|
},
|
|
518
521
|
render() {
|
|
519
|
-
const { status, multiple, disabled, loadingSkeleton, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel } = this;
|
|
522
|
+
const { status, multiple, disabled, loadingSkeleton, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel, tagField, renderTagLabel, account } = this;
|
|
520
523
|
onRender === null || onRender === void 0 ? void 0 : onRender();
|
|
521
524
|
const maxTagCountResponsive = maxTagCount === 'responsive';
|
|
522
525
|
const maxTagCountNumeric = typeof maxTagCount === 'number';
|
|
@@ -534,18 +537,27 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
534
537
|
let body;
|
|
535
538
|
if (multiple) {
|
|
536
539
|
const { labelField } = this;
|
|
537
|
-
const createTag = (option) =>
|
|
538
|
-
option
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
540
|
+
const createTag = (option) => {
|
|
541
|
+
const icon = option.avatar || option.icon
|
|
542
|
+
? () => ((0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: clsPrefix }, {
|
|
543
|
+
default: option.avatar || option.icon
|
|
544
|
+
}))
|
|
545
|
+
: null;
|
|
546
|
+
const selectedFunctionForLabel = renderTagLabel || renderLabel;
|
|
547
|
+
return ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
|
|
548
|
+
option,
|
|
549
|
+
handleClose: () => {
|
|
550
|
+
this.handleDeleteOption(option);
|
|
551
|
+
}
|
|
552
|
+
})) : ((0, vue_1.h)(tag_1.UTag, { size: this.tagSize, closable: !option.disabled, disabled: disabled, onClose: () => {
|
|
553
|
+
this.handleDeleteOption(option);
|
|
554
|
+
}, internalCloseIsButtonTag: false, internalCloseFocusable: false }, {
|
|
555
|
+
icon: account ? icon : null,
|
|
556
|
+
default: () => selectedFunctionForLabel
|
|
557
|
+
? selectedFunctionForLabel(option, true)
|
|
558
|
+
: (0, _utils_1.render)(option[tagField || labelField], option, true)
|
|
559
|
+
}))));
|
|
560
|
+
};
|
|
549
561
|
const createOriginalTagNodes = () => (maxTagCountNumeric
|
|
550
562
|
? this.selectedOptions.slice(0, maxTagCount)
|
|
551
563
|
: this.selectedOptions).map(createTag);
|
|
@@ -621,10 +633,20 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
621
633
|
placeholder));
|
|
622
634
|
}
|
|
623
635
|
else {
|
|
636
|
+
let children;
|
|
637
|
+
if (this.label !== undefined) {
|
|
638
|
+
const label = renderLabel
|
|
639
|
+
? renderLabel(this.selectedOption, true)
|
|
640
|
+
: (0, _utils_1.render)(this.label, this.selectedOption, true);
|
|
641
|
+
children =
|
|
642
|
+
(account && ((0, vue_1.h)(_internal_1.UBaseAccountOption, Object.assign({}, this.selectedOption, { label: label })))) ||
|
|
643
|
+
label;
|
|
644
|
+
}
|
|
624
645
|
if (filterable) {
|
|
625
646
|
const hasInput = this.pattern || this.isComposing;
|
|
626
|
-
const
|
|
627
|
-
const
|
|
647
|
+
const isAccountFocused = this.patternInputFocused && this.account;
|
|
648
|
+
const showPlaceholder = !isAccountFocused && !hasInput && !this.selected;
|
|
649
|
+
const showSelectedLabel = !isAccountFocused && !hasInput && this.selected;
|
|
628
650
|
body = ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
|
|
629
651
|
(0, vue_1.h)("input", Object.assign({}, this.inputProps, { ref: "patternInputRef", class: `${clsPrefix}-base-selection-input`, value: this.active ? this.pattern : '', placeholder: "", readonly: disabled, disabled: disabled, tabindex: -1, autofocus: this.autofocus, onFocus: this.handlePatternInputFocus, onBlur: this.handlePatternInputBlur, onInput: this.handlePatternInputInput, onCompositionstart: this.handleCompositionStart, onCompositionend: this.handleCompositionEnd })),
|
|
630
652
|
showSelectedLabel ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
|
|
@@ -633,9 +655,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
633
655
|
option: this.selectedOption,
|
|
634
656
|
handleClose: () => { }
|
|
635
657
|
})
|
|
636
|
-
:
|
|
637
|
-
? renderLabel(this.selectedOption, true)
|
|
638
|
-
: (0, _utils_1.render)(this.label, this.selectedOption, true)))) : null,
|
|
658
|
+
: children))) : null,
|
|
639
659
|
showPlaceholder ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
|
|
640
660
|
(0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, this.filterablePlaceholder))) : null,
|
|
641
661
|
suffix));
|
|
@@ -648,9 +668,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
648
668
|
option: this.selectedOption,
|
|
649
669
|
handleClose: () => { }
|
|
650
670
|
})
|
|
651
|
-
:
|
|
652
|
-
? renderLabel(this.selectedOption, true)
|
|
653
|
-
: (0, _utils_1.render)(this.label, this.selectedOption, true)))) : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
|
|
671
|
+
: children))) : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
|
|
654
672
|
(0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder))),
|
|
655
673
|
suffix));
|
|
656
674
|
}
|
|
@@ -666,6 +684,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
666
684
|
[`${clsPrefix}-base-selection--selected`]: this.selected || (this.active && this.pattern),
|
|
667
685
|
[`${clsPrefix}-base-selection--disabled`]: this.disabled,
|
|
668
686
|
[`${clsPrefix}-base-selection--multiple`]: this.multiple,
|
|
687
|
+
[`${clsPrefix}-base-selection--filled`]: this.filled,
|
|
669
688
|
[`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
|
|
670
689
|
// focus is not controlled by selection itself since it always need
|
|
671
690
|
// to be managed together with menu. provide :focus style will cause
|
|
@@ -195,6 +195,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
195
195
|
padding-top: 4px;
|
|
196
196
|
padding-bottom: 4px;
|
|
197
197
|
flex-wrap: wrap;
|
|
198
|
+
align-content: center;
|
|
198
199
|
align-items: center;
|
|
199
200
|
width: 100%;
|
|
200
201
|
vertical-align: bottom;
|
|
@@ -257,7 +258,15 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
257
258
|
border: var(--u-border-active);
|
|
258
259
|
`), (0, cssr_1.cB)('base-suffix', [(0, cssr_1.cE)('arrow', `
|
|
259
260
|
color: var(--u-arrow-color-hover);
|
|
260
|
-
`)]), (0, cssr_1.cB)('base-selection-label', 'background-color: var(--u-color-active);'), (0, cssr_1.cB)('base-selection-tags', 'background-color: var(--u-color-active);')])])
|
|
261
|
+
`)]), (0, cssr_1.cNotM)('filled', [(0, cssr_1.cB)('base-selection-label', 'background-color: var(--u-color-active);'), (0, cssr_1.cB)('base-selection-tags', 'background-color: var(--u-color-active);')])])]), (0, cssr_1.cM)('filled', [(0, cssr_1.cB)('base-selection-label', `
|
|
262
|
+
background-color: var(--u-color-filled);
|
|
263
|
+
`), (0, cssr_1.cB)('base-selection-tags', `
|
|
264
|
+
background-color: var(--u-color-filled);
|
|
265
|
+
`), (0, cssr_1.cE)('border', `
|
|
266
|
+
border: var(--u-border-filled);
|
|
267
|
+
`), (0, cssr_1.cE)('state-border', `
|
|
268
|
+
border: var(--u-border-filled);
|
|
269
|
+
`)]), (0, cssr_1.cM)('skeleton', 'cursor: not-allowed;'), (0, cssr_1.cM)('disabled', 'cursor: not-allowed;', [(0, cssr_1.cE)('border', `
|
|
261
270
|
border: var(--u-border-disabled);
|
|
262
271
|
`), (0, cssr_1.cE)('filter-counter', `
|
|
263
272
|
color: var(--u-filter-counter-text-color-disabled);
|
|
@@ -283,7 +292,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
283
292
|
cursor: not-allowed;
|
|
284
293
|
color: var(--u-placeholder-color-disabled);
|
|
285
294
|
`), (0, cssr_1.cM)('secondary-selected', [generateSecondaryStates('-disabled')])]), (0, cssr_1.cB)('base-selection-input-tag', `
|
|
286
|
-
line-height: calc(var(--u-height) - 12px);
|
|
295
|
+
// line-height: calc(var(--u-height) - 12px);
|
|
287
296
|
outline: none;
|
|
288
297
|
display: none;
|
|
289
298
|
position: relative;
|
|
@@ -321,7 +330,7 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('base-selection', `
|
|
|
321
330
|
caret-color: var(--u-caret-color-secondary);
|
|
322
331
|
`), (0, cssr_1.cB)('base-selection-tags', `
|
|
323
332
|
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
|
|
324
|
-
`), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', [generateSecondaryStates('-hover'), (0, cssr_1.cB)('base-clear', '--u-clear-color-hover: var(--u-clear-color-hover-secondary)')]), (0, cssr_1.cM)('focus', [generateSecondaryStates('-focus')]), (0, cssr_1.cM)('active', [generateSecondaryStates('-active')])])]), ['warning', 'error'].map(status => (0, cssr_1.cM)(`${status}-status`, [(0, cssr_1.cE)('state-border', `border: var(--u-border-${status});`), (0, cssr_1.cNotM)('secondary-selected', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('base-selection-label', `background-color: var(--u-color-active-${status});`), (0, cssr_1.cB)('base-selection-tags', `background-color: var(--u-color-active-${status});`)])])]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('active', [(0, cssr_1.cE)('state-border', `
|
|
333
|
+
`), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', [generateSecondaryStates('-hover'), (0, cssr_1.cB)('base-clear', '--u-clear-color-hover: var(--u-clear-color-hover-secondary)')]), (0, cssr_1.cM)('focus', [generateSecondaryStates('-focus')]), (0, cssr_1.cM)('active', [generateSecondaryStates('-active')])])]), ['warning', 'error'].map(status => (0, cssr_1.cM)(`${status}-status`, [(0, cssr_1.cE)('state-border', `border: var(--u-border-${status});`), (0, cssr_1.cNotM)('secondary-selected', [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.cNotM)('filled', [(0, cssr_1.cM)('active', [(0, cssr_1.cB)('base-selection-label', `background-color: var(--u-color-active-${status});`), (0, cssr_1.cB)('base-selection-tags', `background-color: var(--u-color-active-${status});`)])])])]), (0, cssr_1.cNotM)('disabled', [(0, cssr_1.cM)('active', [(0, cssr_1.cE)('state-border', `
|
|
325
334
|
box-shadow: var(--u-box-shadow-active-${status});
|
|
326
335
|
border: var(--u-border-active-${status});
|
|
327
336
|
`)]), (0, cssr_1.cM)('focus', [(0, cssr_1.cE)('state-border', `
|
|
@@ -40,9 +40,11 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
40
40
|
placeholderColor: string;
|
|
41
41
|
placeholderColorDisabled: string;
|
|
42
42
|
color: string;
|
|
43
|
+
colorFilled: string;
|
|
43
44
|
colorDisabled: string;
|
|
44
45
|
colorActive: string;
|
|
45
46
|
border: string;
|
|
47
|
+
borderFilled: string;
|
|
46
48
|
borderHover: string;
|
|
47
49
|
borderActive: string;
|
|
48
50
|
borderFocus: string;
|
|
@@ -149,9 +151,11 @@ declare const internalSelectionLight: import("../../../_mixins").Theme<"Internal
|
|
|
149
151
|
placeholderColor: string;
|
|
150
152
|
placeholderColorDisabled: string;
|
|
151
153
|
color: string;
|
|
154
|
+
colorFilled: string;
|
|
152
155
|
colorDisabled: string;
|
|
153
156
|
colorActive: string;
|
|
154
157
|
border: string;
|
|
158
|
+
borderFilled: string;
|
|
155
159
|
borderHover: string;
|
|
156
160
|
borderActive: string;
|
|
157
161
|
borderFocus: string;
|
|
@@ -49,9 +49,11 @@ const self = (vars) => {
|
|
|
49
49
|
placeholderColor: textSecondary,
|
|
50
50
|
placeholderColorDisabled: textSecondary,
|
|
51
51
|
color: elementsSecondary,
|
|
52
|
+
colorFilled: elementsTertiary,
|
|
52
53
|
colorDisabled: elementsTertiary,
|
|
53
54
|
colorActive: elementsSecondary,
|
|
54
55
|
border: `2px solid ${elementsQuaternary}`,
|
|
56
|
+
borderFilled: 'none',
|
|
55
57
|
borderHover: `2px solid ${elementsPrimary}`,
|
|
56
58
|
borderActive: `2px solid ${elementsPrimary}`,
|
|
57
59
|
borderFocus: `2px solid ${elementsPrimary}`,
|
package/lib/badge/src/Badge.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export declare const badgeProps: {
|
|
|
5
5
|
readonly max: NumberConstructor;
|
|
6
6
|
readonly dot: BooleanConstructor;
|
|
7
7
|
readonly type: {
|
|
8
|
-
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
8
|
+
readonly type: PropType<"default" | "error" | "info" | "success" | "warning" | "prime">;
|
|
9
9
|
readonly default: "default";
|
|
10
10
|
};
|
|
11
11
|
readonly show: {
|
|
@@ -15,30 +15,52 @@ export declare const badgeProps: {
|
|
|
15
15
|
readonly showZero: BooleanConstructor;
|
|
16
16
|
readonly processing: BooleanConstructor;
|
|
17
17
|
readonly color: StringConstructor;
|
|
18
|
+
readonly textColor: StringConstructor;
|
|
18
19
|
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
19
20
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
20
21
|
color: string;
|
|
22
|
+
colorPrime: string;
|
|
21
23
|
colorInfo: string;
|
|
22
24
|
colorSuccess: string;
|
|
23
25
|
colorError: string;
|
|
24
26
|
colorWarning: string;
|
|
25
27
|
fontSize: string;
|
|
28
|
+
textColor: string;
|
|
29
|
+
textColorPrime: string;
|
|
30
|
+
textColorInfo: string;
|
|
31
|
+
textColorSuccess: string;
|
|
32
|
+
textColorError: string;
|
|
33
|
+
textColorWarning: string;
|
|
26
34
|
}, any>>;
|
|
27
35
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
28
36
|
color: string;
|
|
37
|
+
colorPrime: string;
|
|
29
38
|
colorInfo: string;
|
|
30
39
|
colorSuccess: string;
|
|
31
40
|
colorError: string;
|
|
32
41
|
colorWarning: string;
|
|
33
42
|
fontSize: string;
|
|
43
|
+
textColor: string;
|
|
44
|
+
textColorPrime: string;
|
|
45
|
+
textColorInfo: string;
|
|
46
|
+
textColorSuccess: string;
|
|
47
|
+
textColorError: string;
|
|
48
|
+
textColorWarning: string;
|
|
34
49
|
}, any>>>;
|
|
35
50
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
36
51
|
color: string;
|
|
52
|
+
colorPrime: string;
|
|
37
53
|
colorInfo: string;
|
|
38
54
|
colorSuccess: string;
|
|
39
55
|
colorError: string;
|
|
40
56
|
colorWarning: string;
|
|
41
57
|
fontSize: string;
|
|
58
|
+
textColor: string;
|
|
59
|
+
textColorPrime: string;
|
|
60
|
+
textColorInfo: string;
|
|
61
|
+
textColorSuccess: string;
|
|
62
|
+
textColorError: string;
|
|
63
|
+
textColorWarning: string;
|
|
42
64
|
}, any>>>;
|
|
43
65
|
};
|
|
44
66
|
export type BadgeProps = ExtractPublicPropTypes<typeof badgeProps>;
|
|
@@ -47,7 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
69
|
readonly max: NumberConstructor;
|
|
48
70
|
readonly dot: BooleanConstructor;
|
|
49
71
|
readonly type: {
|
|
50
|
-
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
72
|
+
readonly type: PropType<"default" | "error" | "info" | "success" | "warning" | "prime">;
|
|
51
73
|
readonly default: "default";
|
|
52
74
|
};
|
|
53
75
|
readonly show: {
|
|
@@ -57,30 +79,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
79
|
readonly showZero: BooleanConstructor;
|
|
58
80
|
readonly processing: BooleanConstructor;
|
|
59
81
|
readonly color: StringConstructor;
|
|
82
|
+
readonly textColor: StringConstructor;
|
|
60
83
|
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
61
84
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
62
85
|
color: string;
|
|
86
|
+
colorPrime: string;
|
|
63
87
|
colorInfo: string;
|
|
64
88
|
colorSuccess: string;
|
|
65
89
|
colorError: string;
|
|
66
90
|
colorWarning: string;
|
|
67
91
|
fontSize: string;
|
|
92
|
+
textColor: string;
|
|
93
|
+
textColorPrime: string;
|
|
94
|
+
textColorInfo: string;
|
|
95
|
+
textColorSuccess: string;
|
|
96
|
+
textColorError: string;
|
|
97
|
+
textColorWarning: string;
|
|
68
98
|
}, any>>;
|
|
69
99
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
70
100
|
color: string;
|
|
101
|
+
colorPrime: string;
|
|
71
102
|
colorInfo: string;
|
|
72
103
|
colorSuccess: string;
|
|
73
104
|
colorError: string;
|
|
74
105
|
colorWarning: string;
|
|
75
106
|
fontSize: string;
|
|
107
|
+
textColor: string;
|
|
108
|
+
textColorPrime: string;
|
|
109
|
+
textColorInfo: string;
|
|
110
|
+
textColorSuccess: string;
|
|
111
|
+
textColorError: string;
|
|
112
|
+
textColorWarning: string;
|
|
76
113
|
}, any>>>;
|
|
77
114
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
78
115
|
color: string;
|
|
116
|
+
colorPrime: string;
|
|
79
117
|
colorInfo: string;
|
|
80
118
|
colorSuccess: string;
|
|
81
119
|
colorError: string;
|
|
82
120
|
colorWarning: string;
|
|
83
121
|
fontSize: string;
|
|
122
|
+
textColor: string;
|
|
123
|
+
textColorPrime: string;
|
|
124
|
+
textColorInfo: string;
|
|
125
|
+
textColorSuccess: string;
|
|
126
|
+
textColorError: string;
|
|
127
|
+
textColorWarning: string;
|
|
84
128
|
}, any>>>;
|
|
85
129
|
}, {
|
|
86
130
|
rtlEnabled: import("vue").Ref<import("../../config-provider/src/internal-interface").RtlItem | undefined> | undefined;
|
|
@@ -95,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
139
|
'--u-ripple-color': string;
|
|
96
140
|
'--u-bezier': string;
|
|
97
141
|
'--u-ripple-bezier': string;
|
|
142
|
+
'--u-text-color': string;
|
|
98
143
|
}> | undefined;
|
|
99
144
|
themeClass: import("vue").Ref<string> | undefined;
|
|
100
145
|
onRender: (() => void) | undefined;
|
|
@@ -106,7 +151,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
106
151
|
readonly max: NumberConstructor;
|
|
107
152
|
readonly dot: BooleanConstructor;
|
|
108
153
|
readonly type: {
|
|
109
|
-
readonly type: PropType<"default" | "error" | "info" | "success" | "warning">;
|
|
154
|
+
readonly type: PropType<"default" | "error" | "info" | "success" | "warning" | "prime">;
|
|
110
155
|
readonly default: "default";
|
|
111
156
|
};
|
|
112
157
|
readonly show: {
|
|
@@ -116,33 +161,55 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
116
161
|
readonly showZero: BooleanConstructor;
|
|
117
162
|
readonly processing: BooleanConstructor;
|
|
118
163
|
readonly color: StringConstructor;
|
|
164
|
+
readonly textColor: StringConstructor;
|
|
119
165
|
readonly offset: PropType<readonly [string | number, string | number]>;
|
|
120
166
|
readonly theme: PropType<import("../../_mixins").Theme<"Badge", {
|
|
121
167
|
color: string;
|
|
168
|
+
colorPrime: string;
|
|
122
169
|
colorInfo: string;
|
|
123
170
|
colorSuccess: string;
|
|
124
171
|
colorError: string;
|
|
125
172
|
colorWarning: string;
|
|
126
173
|
fontSize: string;
|
|
174
|
+
textColor: string;
|
|
175
|
+
textColorPrime: string;
|
|
176
|
+
textColorInfo: string;
|
|
177
|
+
textColorSuccess: string;
|
|
178
|
+
textColorError: string;
|
|
179
|
+
textColorWarning: string;
|
|
127
180
|
}, any>>;
|
|
128
181
|
readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
129
182
|
color: string;
|
|
183
|
+
colorPrime: string;
|
|
130
184
|
colorInfo: string;
|
|
131
185
|
colorSuccess: string;
|
|
132
186
|
colorError: string;
|
|
133
187
|
colorWarning: string;
|
|
134
188
|
fontSize: string;
|
|
189
|
+
textColor: string;
|
|
190
|
+
textColorPrime: string;
|
|
191
|
+
textColorInfo: string;
|
|
192
|
+
textColorSuccess: string;
|
|
193
|
+
textColorError: string;
|
|
194
|
+
textColorWarning: string;
|
|
135
195
|
}, any>>>;
|
|
136
196
|
readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"Badge", {
|
|
137
197
|
color: string;
|
|
198
|
+
colorPrime: string;
|
|
138
199
|
colorInfo: string;
|
|
139
200
|
colorSuccess: string;
|
|
140
201
|
colorError: string;
|
|
141
202
|
colorWarning: string;
|
|
142
203
|
fontSize: string;
|
|
204
|
+
textColor: string;
|
|
205
|
+
textColorPrime: string;
|
|
206
|
+
textColorInfo: string;
|
|
207
|
+
textColorSuccess: string;
|
|
208
|
+
textColorError: string;
|
|
209
|
+
textColorWarning: string;
|
|
143
210
|
}, any>>>;
|
|
144
211
|
}>>, {
|
|
145
|
-
readonly type: "default" | "error" | "info" | "success" | "warning";
|
|
212
|
+
readonly type: "default" | "error" | "info" | "success" | "warning" | "prime";
|
|
146
213
|
readonly show: boolean;
|
|
147
214
|
readonly dot: boolean;
|
|
148
215
|
readonly showZero: boolean;
|