@uzum-tech/ui 1.0.2 → 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.
Files changed (134) hide show
  1. package/dist/index.js +410 -149
  2. package/dist/index.prod.js +1 -1
  3. package/es/_internal/account-option/index.d.ts +1 -0
  4. package/es/_internal/account-option/index.js +1 -0
  5. package/es/_internal/account-option/src/AccountOption.d.ts +162 -0
  6. package/es/_internal/account-option/src/AccountOption.js +56 -0
  7. package/es/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
  8. package/es/_internal/account-option/src/styles/index.cssr.js +40 -0
  9. package/es/_internal/account-option/styles/_common.d.ts +12 -0
  10. package/es/_internal/account-option/styles/_common.js +11 -0
  11. package/es/_internal/account-option/styles/dark.d.ts +2 -0
  12. package/es/_internal/account-option/styles/dark.js +7 -0
  13. package/es/_internal/account-option/styles/index.d.ts +3 -0
  14. package/es/_internal/account-option/styles/index.js +2 -0
  15. package/es/_internal/account-option/styles/light.d.ts +26 -0
  16. package/es/_internal/account-option/styles/light.js +11 -0
  17. package/es/_internal/index.d.ts +1 -0
  18. package/es/_internal/index.js +1 -0
  19. package/es/_internal/select-menu/src/SelectMenu.d.ts +3 -0
  20. package/es/_internal/select-menu/src/SelectMenu.js +2 -1
  21. package/es/_internal/select-menu/src/SelectOption.d.ts +1 -0
  22. package/es/_internal/select-menu/src/SelectOption.js +14 -8
  23. package/es/_internal/select-menu/src/interface.d.ts +1 -0
  24. package/es/_internal/select-menu/src/styles/index.cssr.js +4 -3
  25. package/es/_internal/selection/src/Selection.d.ts +35 -8
  26. package/es/_internal/selection/src/Selection.js +44 -25
  27. package/es/_internal/selection/src/styles/index.cssr.js +12 -3
  28. package/es/_internal/selection/styles/light.d.ts +4 -0
  29. package/es/_internal/selection/styles/light.js +2 -0
  30. package/es/badge/src/Badge.d.ts +71 -4
  31. package/es/badge/src/Badge.js +5 -4
  32. package/es/badge/src/styles/index.cssr.js +1 -1
  33. package/es/badge/styles/light.d.ts +7 -0
  34. package/es/badge/styles/light.js +9 -2
  35. package/es/button/src/Button.js +18 -10
  36. package/es/cascader/src/Cascader.d.ts +20 -0
  37. package/es/cascader/src/CascaderMenu.d.ts +2 -0
  38. package/es/cascader/src/CascaderOption.d.ts +2 -0
  39. package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
  40. package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
  41. package/es/cascader/styles/light.d.ts +2 -0
  42. package/es/config-provider/src/internal-interface.d.ts +2 -0
  43. package/es/data-table/src/DataTable.d.ts +16 -0
  44. package/es/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  45. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
  46. package/es/data-table/src/TableParts/Body.d.ts +4 -0
  47. package/es/data-table/src/TableParts/Cell.d.ts +8 -0
  48. package/es/data-table/src/TableParts/Header.d.ts +4 -0
  49. package/es/data-table/src/interface.d.ts +6 -0
  50. package/es/data-table/styles/light.d.ts +2 -0
  51. package/es/list/src/List.d.ts +1 -1
  52. package/es/list/src/ListItem.d.ts +1 -1
  53. package/es/pagination/src/Pagination.d.ts +22 -0
  54. package/es/pagination/styles/light.d.ts +2 -0
  55. package/es/select/demos/enUS/flag.d.ts +2 -0
  56. package/es/select/demos/enUS/flag.js +25 -0
  57. package/es/select/src/Select.d.ts +35 -1
  58. package/es/select/src/Select.js +10 -5
  59. package/es/select/src/interface.d.ts +2 -0
  60. package/es/select/styles/light.d.ts +2 -0
  61. package/es/theme-editor/src/ThemeEditor.js +2 -2
  62. package/es/themes/dark.js +2 -0
  63. package/es/themes/light.js +2 -0
  64. package/es/tree-select/src/TreeSelect.d.ts +20 -0
  65. package/es/tree-select/styles/light.d.ts +2 -0
  66. package/es/version.d.ts +1 -1
  67. package/es/version.js +1 -1
  68. package/lib/_internal/account-option/index.d.ts +1 -0
  69. package/lib/_internal/account-option/index.js +8 -0
  70. package/lib/_internal/account-option/src/AccountOption.d.ts +162 -0
  71. package/lib/_internal/account-option/src/AccountOption.js +61 -0
  72. package/lib/_internal/account-option/src/styles/index.cssr.d.ts +2 -0
  73. package/lib/_internal/account-option/src/styles/index.cssr.js +45 -0
  74. package/lib/_internal/account-option/styles/_common.d.ts +12 -0
  75. package/lib/_internal/account-option/styles/_common.js +13 -0
  76. package/lib/_internal/account-option/styles/dark.d.ts +2 -0
  77. package/lib/_internal/account-option/styles/dark.js +10 -0
  78. package/lib/_internal/account-option/styles/index.d.ts +3 -0
  79. package/lib/_internal/account-option/styles/index.js +7 -0
  80. package/lib/_internal/account-option/styles/light.d.ts +26 -0
  81. package/lib/_internal/account-option/styles/light.js +18 -0
  82. package/lib/_internal/index.d.ts +1 -0
  83. package/lib/_internal/index.js +3 -1
  84. package/lib/_internal/select-menu/src/SelectMenu.d.ts +3 -0
  85. package/lib/_internal/select-menu/src/SelectMenu.js +2 -1
  86. package/lib/_internal/select-menu/src/SelectOption.d.ts +1 -0
  87. package/lib/_internal/select-menu/src/SelectOption.js +14 -8
  88. package/lib/_internal/select-menu/src/interface.d.ts +1 -0
  89. package/lib/_internal/select-menu/src/styles/index.cssr.js +4 -3
  90. package/lib/_internal/selection/src/Selection.d.ts +35 -8
  91. package/lib/_internal/selection/src/Selection.js +43 -24
  92. package/lib/_internal/selection/src/styles/index.cssr.js +12 -3
  93. package/lib/_internal/selection/styles/light.d.ts +4 -0
  94. package/lib/_internal/selection/styles/light.js +2 -0
  95. package/lib/badge/src/Badge.d.ts +71 -4
  96. package/lib/badge/src/Badge.js +5 -4
  97. package/lib/badge/src/styles/index.cssr.js +1 -1
  98. package/lib/badge/styles/light.d.ts +7 -0
  99. package/lib/badge/styles/light.js +9 -2
  100. package/lib/button/src/Button.js +18 -10
  101. package/lib/cascader/src/Cascader.d.ts +20 -0
  102. package/lib/cascader/src/CascaderMenu.d.ts +2 -0
  103. package/lib/cascader/src/CascaderOption.d.ts +2 -0
  104. package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
  105. package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
  106. package/lib/cascader/styles/light.d.ts +2 -0
  107. package/lib/config-provider/src/internal-interface.d.ts +2 -0
  108. package/lib/data-table/src/DataTable.d.ts +16 -0
  109. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +4 -0
  110. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +6 -2
  111. package/lib/data-table/src/TableParts/Body.d.ts +4 -0
  112. package/lib/data-table/src/TableParts/Cell.d.ts +8 -0
  113. package/lib/data-table/src/TableParts/Header.d.ts +4 -0
  114. package/lib/data-table/src/interface.d.ts +6 -0
  115. package/lib/data-table/styles/light.d.ts +2 -0
  116. package/lib/list/src/List.d.ts +1 -1
  117. package/lib/list/src/ListItem.d.ts +1 -1
  118. package/lib/pagination/src/Pagination.d.ts +22 -0
  119. package/lib/pagination/styles/light.d.ts +2 -0
  120. package/lib/select/demos/enUS/flag.d.ts +2 -0
  121. package/lib/select/demos/enUS/flag.js +27 -0
  122. package/lib/select/src/Select.d.ts +35 -1
  123. package/lib/select/src/Select.js +10 -5
  124. package/lib/select/src/interface.d.ts +2 -0
  125. package/lib/select/styles/light.d.ts +2 -0
  126. package/lib/theme-editor/src/ThemeEditor.js +2 -2
  127. package/lib/themes/dark.js +2 -0
  128. package/lib/themes/light.js +2 -0
  129. package/lib/tree-select/src/TreeSelect.d.ts +20 -0
  130. package/lib/tree-select/styles/light.d.ts +2 -0
  131. package/lib/version.d.ts +1 -1
  132. package/lib/version.js +1 -1
  133. package/package.json +3 -2
  134. 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) => import("vue").VNodeChild)> | null>;
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) => import("vue").VNodeChild)>[] | null>;
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<import("vue").VNodeChild>;
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) => import("vue").VNodeChild)> | null>;
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) => import("vue").VNodeChild)>[] | null>;
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) => import("vue").VNodeChild)> | null;
1289
- selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => import("vue").VNodeChild)>[] | null;
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;
@@ -8,7 +8,7 @@ import { createKey, getTitleAttribute, render, useOnResize, Wrapper } from '../.
8
8
  import Suffix from '../../suffix';
9
9
  import { internalSelectionLight } from '../styles';
10
10
  import style from './styles/index.cssr';
11
- import { UBaseSkeleton } from '../../../_internal';
11
+ import { UBaseAccountOption, UBaseIcon, UBaseSkeleton } from '../../../_internal';
12
12
  import { getPadding, pxfy, depx } from 'seemly';
13
13
  import UBaseClear from '../../clear';
14
14
  export default defineComponent({
@@ -31,13 +31,13 @@ export default defineComponent({
31
31
  }, labelField: { type: String, default: 'label' }, valueField: {
32
32
  type: String,
33
33
  default: 'value'
34
- }, multiple: Boolean, filterable: Boolean, clearable: Boolean, disabled: Boolean, size: {
34
+ }, tagField: String, multiple: Boolean, filterable: Boolean, clearable: Boolean, disabled: Boolean, size: {
35
35
  type: String,
36
36
  default: 'medium'
37
37
  }, loading: Boolean, loadingSkeleton: Boolean, autofocus: Boolean, showArrow: {
38
38
  type: Boolean,
39
39
  default: true
40
- }, 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 }),
40
+ }, 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 }),
41
41
  setup(props) {
42
42
  const patternInputMirrorRef = ref(null);
43
43
  const patternInputRef = ref(null);
@@ -356,11 +356,12 @@ export default defineComponent({
356
356
  // clear
357
357
  clearColor, clearColorHover, clearColorPressed,
358
358
  // secondary
359
- 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, [createKey('clearSize', size)]: clearSize, [createKey('arrowSize', size)]: arrowSize, [createKey('padding', size)]: padding, [createKey('borderRadius', size)]: borderRadius, [createKey('height', size)]: height, [createKey('fontSize', size)]: fontSize, [createKey('lineHeight', size)]: lineHeight } } = themeRef.value;
359
+ 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, [createKey('clearSize', size)]: clearSize, [createKey('arrowSize', size)]: arrowSize, [createKey('padding', size)]: padding, [createKey('borderRadius', size)]: borderRadius, [createKey('height', size)]: height, [createKey('fontSize', size)]: fontSize, [createKey('lineHeight', size)]: lineHeight } } = themeRef.value;
360
360
  const { top: paddingTop, right: paddingRight, bottom: paddingBottom, left: paddingLeft } = getPadding(padding);
361
361
  return {
362
362
  '--u-bezier': cubicBezierEaseInOut,
363
363
  '--u-border': border,
364
+ '--u-border-filled': borderFilled,
364
365
  '--u-border-active': borderActive,
365
366
  '--u-border-focus': borderFocus,
366
367
  '--u-border-hover': borderHover,
@@ -371,6 +372,7 @@ export default defineComponent({
371
372
  '--u-box-shadow-hover': boxShadowHover,
372
373
  '--u-caret-color': caretColor,
373
374
  '--u-color': color,
375
+ '--u-color-filled': colorFilled,
374
376
  '--u-color-active': colorActive,
375
377
  '--u-color-disabled': colorDisabled,
376
378
  '--u-line-height': lineHeight,
@@ -500,6 +502,7 @@ export default defineComponent({
500
502
  getCounter,
501
503
  getTail,
502
504
  renderLabel: props.renderLabel,
505
+ renderTagLabel: props.renderTagLabel,
503
506
  cssVars: inlineThemeDisabled ? undefined : cssVarsRef,
504
507
  themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass,
505
508
  onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender,
@@ -511,7 +514,7 @@ export default defineComponent({
511
514
  };
512
515
  },
513
516
  render() {
514
- const { status, multiple, disabled, loadingSkeleton, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel } = this;
517
+ const { status, multiple, disabled, loadingSkeleton, filterable, maxTagCount, bordered, clsPrefix, onRender, renderTag, renderLabel, tagField, renderTagLabel, account } = this;
515
518
  onRender === null || onRender === void 0 ? void 0 : onRender();
516
519
  const maxTagCountResponsive = maxTagCount === 'responsive';
517
520
  const maxTagCountNumeric = typeof maxTagCount === 'number';
@@ -529,18 +532,27 @@ export default defineComponent({
529
532
  let body;
530
533
  if (multiple) {
531
534
  const { labelField } = this;
532
- const createTag = (option) => (h("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
533
- option,
534
- handleClose: () => {
535
- this.handleDeleteOption(option);
536
- }
537
- })) : (h(UTag, { size: this.tagSize, closable: !option.disabled, disabled: disabled, onClose: () => {
538
- this.handleDeleteOption(option);
539
- }, internalCloseIsButtonTag: false, internalCloseFocusable: false }, {
540
- default: () => renderLabel
541
- ? renderLabel(option, true)
542
- : render(option[labelField], option, true)
543
- }))));
535
+ const createTag = (option) => {
536
+ const icon = option.avatar || option.icon
537
+ ? () => (h(UBaseIcon, { clsPrefix: clsPrefix }, {
538
+ default: option.avatar || option.icon
539
+ }))
540
+ : null;
541
+ const selectedFunctionForLabel = renderTagLabel || renderLabel;
542
+ return (h("div", { class: `${clsPrefix}-base-selection-tag-wrapper`, key: option.value }, renderTag ? (renderTag({
543
+ option,
544
+ handleClose: () => {
545
+ this.handleDeleteOption(option);
546
+ }
547
+ })) : (h(UTag, { size: this.tagSize, closable: !option.disabled, disabled: disabled, onClose: () => {
548
+ this.handleDeleteOption(option);
549
+ }, internalCloseIsButtonTag: false, internalCloseFocusable: false }, {
550
+ icon: account ? icon : null,
551
+ default: () => selectedFunctionForLabel
552
+ ? selectedFunctionForLabel(option, true)
553
+ : render(option[tagField || labelField], option, true)
554
+ }))));
555
+ };
544
556
  const createOriginalTagNodes = () => (maxTagCountNumeric
545
557
  ? this.selectedOptions.slice(0, maxTagCount)
546
558
  : this.selectedOptions).map(createTag);
@@ -616,10 +628,20 @@ export default defineComponent({
616
628
  placeholder));
617
629
  }
618
630
  else {
631
+ let children;
632
+ if (this.label !== undefined) {
633
+ const label = renderLabel
634
+ ? renderLabel(this.selectedOption, true)
635
+ : render(this.label, this.selectedOption, true);
636
+ children =
637
+ (account && (h(UBaseAccountOption, Object.assign({}, this.selectedOption, { label: label })))) ||
638
+ label;
639
+ }
619
640
  if (filterable) {
620
641
  const hasInput = this.pattern || this.isComposing;
621
- const showPlaceholder = !hasInput && !this.selected;
622
- const showSelectedLabel = !hasInput && this.selected;
642
+ const isAccountFocused = this.patternInputFocused && this.account;
643
+ const showPlaceholder = !isAccountFocused && !hasInput && !this.selected;
644
+ const showSelectedLabel = !isAccountFocused && !hasInput && this.selected;
623
645
  body = (h("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
624
646
  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 })),
625
647
  showSelectedLabel ? (h("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
@@ -628,9 +650,7 @@ export default defineComponent({
628
650
  option: this.selectedOption,
629
651
  handleClose: () => { }
630
652
  })
631
- : renderLabel
632
- ? renderLabel(this.selectedOption, true)
633
- : render(this.label, this.selectedOption, true)))) : null,
653
+ : children))) : null,
634
654
  showPlaceholder ? (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
635
655
  h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, this.filterablePlaceholder))) : null,
636
656
  suffix));
@@ -643,9 +663,7 @@ export default defineComponent({
643
663
  option: this.selectedOption,
644
664
  handleClose: () => { }
645
665
  })
646
- : renderLabel
647
- ? renderLabel(this.selectedOption, true)
648
- : render(this.label, this.selectedOption, true)))) : (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
666
+ : children))) : (h("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
649
667
  h("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder))),
650
668
  suffix));
651
669
  }
@@ -661,6 +679,7 @@ export default defineComponent({
661
679
  [`${clsPrefix}-base-selection--selected`]: this.selected || (this.active && this.pattern),
662
680
  [`${clsPrefix}-base-selection--disabled`]: this.disabled,
663
681
  [`${clsPrefix}-base-selection--multiple`]: this.multiple,
682
+ [`${clsPrefix}-base-selection--filled`]: this.filled,
664
683
  [`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
665
684
  // focus is not controlled by selection itself since it always need
666
685
  // to be managed together with menu. provide :focus style will cause
@@ -190,6 +190,7 @@ export default c([cB('base-selection', `
190
190
  padding-top: 4px;
191
191
  padding-bottom: 4px;
192
192
  flex-wrap: wrap;
193
+ align-content: center;
193
194
  align-items: center;
194
195
  width: 100%;
195
196
  vertical-align: bottom;
@@ -252,7 +253,15 @@ export default c([cB('base-selection', `
252
253
  border: var(--u-border-active);
253
254
  `), cB('base-suffix', [cE('arrow', `
254
255
  color: var(--u-arrow-color-hover);
255
- `)]), cB('base-selection-label', 'background-color: var(--u-color-active);'), cB('base-selection-tags', 'background-color: var(--u-color-active);')])]), cM('skeleton', 'cursor: not-allowed;'), cM('disabled', 'cursor: not-allowed;', [cE('border', `
256
+ `)]), cNotM('filled', [cB('base-selection-label', 'background-color: var(--u-color-active);'), cB('base-selection-tags', 'background-color: var(--u-color-active);')])])]), cM('filled', [cB('base-selection-label', `
257
+ background-color: var(--u-color-filled);
258
+ `), cB('base-selection-tags', `
259
+ background-color: var(--u-color-filled);
260
+ `), cE('border', `
261
+ border: var(--u-border-filled);
262
+ `), cE('state-border', `
263
+ border: var(--u-border-filled);
264
+ `)]), cM('skeleton', 'cursor: not-allowed;'), cM('disabled', 'cursor: not-allowed;', [cE('border', `
256
265
  border: var(--u-border-disabled);
257
266
  `), cE('filter-counter', `
258
267
  color: var(--u-filter-counter-text-color-disabled);
@@ -278,7 +287,7 @@ export default c([cB('base-selection', `
278
287
  cursor: not-allowed;
279
288
  color: var(--u-placeholder-color-disabled);
280
289
  `), cM('secondary-selected', [generateSecondaryStates('-disabled')])]), cB('base-selection-input-tag', `
281
- line-height: calc(var(--u-height) - 12px);
290
+ // line-height: calc(var(--u-height) - 12px);
282
291
  outline: none;
283
292
  display: none;
284
293
  position: relative;
@@ -316,7 +325,7 @@ export default c([cB('base-selection', `
316
325
  caret-color: var(--u-caret-color-secondary);
317
326
  `), cB('base-selection-tags', `
318
327
  padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
319
- `), cNotM('disabled', [c('&:hover', [generateSecondaryStates('-hover'), cB('base-clear', '--u-clear-color-hover: var(--u-clear-color-hover-secondary)')]), cM('focus', [generateSecondaryStates('-focus')]), cM('active', [generateSecondaryStates('-active')])])]), ['warning', 'error'].map(status => cM(`${status}-status`, [cE('state-border', `border: var(--u-border-${status});`), cNotM('secondary-selected', [cNotM('disabled', [cM('active', [cB('base-selection-label', `background-color: var(--u-color-active-${status});`), cB('base-selection-tags', `background-color: var(--u-color-active-${status});`)])])]), cNotM('disabled', [cM('active', [cE('state-border', `
328
+ `), cNotM('disabled', [c('&:hover', [generateSecondaryStates('-hover'), cB('base-clear', '--u-clear-color-hover: var(--u-clear-color-hover-secondary)')]), cM('focus', [generateSecondaryStates('-focus')]), cM('active', [generateSecondaryStates('-active')])])]), ['warning', 'error'].map(status => cM(`${status}-status`, [cE('state-border', `border: var(--u-border-${status});`), cNotM('secondary-selected', [cNotM('disabled', [cNotM('filled', [cM('active', [cB('base-selection-label', `background-color: var(--u-color-active-${status});`), cB('base-selection-tags', `background-color: var(--u-color-active-${status});`)])])])]), cNotM('disabled', [cM('active', [cE('state-border', `
320
329
  box-shadow: var(--u-box-shadow-active-${status});
321
330
  border: var(--u-border-active-${status});
322
331
  `)]), cM('focus', [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;
@@ -46,9 +46,11 @@ export const self = (vars) => {
46
46
  placeholderColor: textSecondary,
47
47
  placeholderColorDisabled: textSecondary,
48
48
  color: elementsSecondary,
49
+ colorFilled: elementsTertiary,
49
50
  colorDisabled: elementsTertiary,
50
51
  colorActive: elementsSecondary,
51
52
  border: `2px solid ${elementsQuaternary}`,
53
+ borderFilled: 'none',
52
54
  borderHover: `2px solid ${elementsPrimary}`,
53
55
  borderActive: `2px solid ${elementsPrimary}`,
54
56
  borderFocus: `2px solid ${elementsPrimary}`,
@@ -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;