@uzum-tech/ui 2.4.1 → 2.4.3

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 (214) hide show
  1. package/dist/index.js +243 -74
  2. package/dist/index.mjs +244 -75
  3. package/dist/index.prod.js +3 -3
  4. package/dist/index.prod.mjs +3 -3
  5. package/es/_internal/selection/src/Selection.d.ts +27 -0
  6. package/es/_internal/selection/src/Selection.mjs +54 -26
  7. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  8. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
  9. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  10. package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
  11. package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
  12. package/es/_internal/selection/styles/light.d.ts +6 -0
  13. package/es/_internal/selection/styles/light.mjs +3 -0
  14. package/es/_utils/index.d.ts +1 -1
  15. package/es/_utils/index.mjs +1 -1
  16. package/es/_utils/markdown/constants.d.ts +1 -0
  17. package/es/_utils/markdown/constants.mjs +1 -0
  18. package/es/_utils/markdown/index.d.ts +1 -1
  19. package/es/_utils/markdown/index.mjs +1 -1
  20. package/es/_utils/markdown/render-markdown.d.ts +3 -0
  21. package/es/_utils/markdown/render-markdown.mjs +18 -3
  22. package/es/_utils/vue/index.d.ts +1 -0
  23. package/es/_utils/vue/index.mjs +1 -0
  24. package/es/_utils/vue/resolve-reactive.d.ts +3 -0
  25. package/es/_utils/vue/resolve-reactive.mjs +9 -0
  26. package/es/cascader/src/Cascader.d.ts +30 -0
  27. package/es/cascader/src/CascaderMenu.d.ts +6 -0
  28. package/es/cascader/src/CascaderOption.d.ts +6 -0
  29. package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
  30. package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
  31. package/es/cascader/styles/light.d.ts +3 -0
  32. package/es/chat/src/Chat.d.ts +132 -0
  33. package/es/chat/src/ChatListItems.d.ts +45 -0
  34. package/es/chat/src/ChatListItems.mjs +16 -11
  35. package/es/chat/src/ChatMainArea.d.ts +45 -0
  36. package/es/chat/src/ChatMainArea.mjs +2 -1
  37. package/es/chat/src/ChatMessages.d.ts +46 -1
  38. package/es/chat/src/ChatMessages.mjs +6 -5
  39. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  40. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  41. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  42. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.mjs +2 -1
  43. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  44. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  45. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.mjs +3 -6
  46. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  47. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  48. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  49. package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
  50. package/es/chat/src/interface.d.ts +26 -34
  51. package/es/chat/styles/dark.d.ts +3 -0
  52. package/es/chat/styles/light.d.ts +3 -0
  53. package/es/chat/tests/utils/constants.d.ts +12 -0
  54. package/es/chat/tests/utils/constants.mjs +12 -0
  55. package/es/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  56. package/es/chat/tests/utils/create-chat-item-mock.mjs +9 -0
  57. package/es/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  58. package/es/chat/tests/utils/create-chat-message-mock.mjs +13 -0
  59. package/es/components.d.ts +457 -4
  60. package/es/data-table/src/DataTable.d.ts +24 -0
  61. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  62. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  63. package/es/data-table/src/TableParts/Body.d.ts +12 -0
  64. package/es/data-table/src/TableParts/Header.d.ts +12 -0
  65. package/es/data-table/src/interface.d.ts +9 -0
  66. package/es/data-table/styles/light.d.ts +3 -0
  67. package/es/date-picker/src/DatePicker.d.ts +30 -0
  68. package/es/date-picker/src/panel/date.d.ts +6 -0
  69. package/es/date-picker/src/panel/daterange.d.ts +6 -0
  70. package/es/date-picker/src/panel/datetime.d.ts +6 -0
  71. package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
  72. package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
  73. package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  74. package/es/date-picker/src/panel/panelYear.d.ts +24 -0
  75. package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
  76. package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
  77. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  78. package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
  79. package/es/date-picker/styles/light.d.ts +3 -0
  80. package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  81. package/es/date-picker-v2/styles/dark.d.ts +3 -0
  82. package/es/date-picker-v2/styles/light.d.ts +3 -0
  83. package/es/editor/src/Editor.d.ts +18 -0
  84. package/es/editor/src/Editor.mjs +14 -2
  85. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  86. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  87. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  88. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  89. package/es/editor/src/interface.d.ts +9 -0
  90. package/es/editor/styles/dark.d.ts +3 -0
  91. package/es/editor/styles/light.d.ts +3 -0
  92. package/es/message-bubble/src/MessageBubble.d.ts +10 -10
  93. package/es/message-bubble/src/MessageBubble.mjs +13 -17
  94. package/es/message-bubble/src/interface.d.ts +5 -5
  95. package/es/message-bubble/src/interface.mjs +3 -3
  96. package/es/pagination/src/Pagination.d.ts +24 -0
  97. package/es/pagination/src/interface.d.ts +9 -0
  98. package/es/pagination/styles/light.d.ts +3 -0
  99. package/es/select/src/Select.d.ts +24 -0
  100. package/es/select/src/Select.mjs +2 -1
  101. package/es/select/src/interface.d.ts +10 -0
  102. package/es/select/src/interface.mjs +1 -0
  103. package/es/select/src/styles/index.cssr.mjs +4 -1
  104. package/es/select/styles/light.d.ts +3 -0
  105. package/es/tree-select/src/TreeSelect.d.ts +30 -0
  106. package/es/tree-select/styles/light.d.ts +3 -0
  107. package/es/version.d.ts +1 -1
  108. package/es/version.mjs +1 -1
  109. package/lib/_internal/selection/src/Selection.d.ts +27 -0
  110. package/lib/_internal/selection/src/Selection.js +43 -35
  111. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  112. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
  113. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  114. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
  115. package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
  116. package/lib/_internal/selection/styles/light.d.ts +6 -0
  117. package/lib/_internal/selection/styles/light.js +3 -0
  118. package/lib/_utils/index.d.ts +1 -1
  119. package/lib/_utils/index.js +3 -1
  120. package/lib/_utils/markdown/constants.d.ts +1 -0
  121. package/lib/_utils/markdown/constants.js +2 -1
  122. package/lib/_utils/markdown/index.d.ts +1 -1
  123. package/lib/_utils/markdown/index.js +4 -1
  124. package/lib/_utils/markdown/render-markdown.d.ts +3 -0
  125. package/lib/_utils/markdown/render-markdown.js +20 -2
  126. package/lib/_utils/vue/index.d.ts +1 -0
  127. package/lib/_utils/vue/index.js +4 -1
  128. package/lib/_utils/vue/resolve-reactive.d.ts +3 -0
  129. package/lib/_utils/vue/resolve-reactive.js +17 -0
  130. package/lib/cascader/src/Cascader.d.ts +30 -0
  131. package/lib/cascader/src/CascaderMenu.d.ts +6 -0
  132. package/lib/cascader/src/CascaderOption.d.ts +6 -0
  133. package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
  134. package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
  135. package/lib/cascader/styles/light.d.ts +3 -0
  136. package/lib/chat/src/Chat.d.ts +132 -0
  137. package/lib/chat/src/ChatListItems.d.ts +45 -0
  138. package/lib/chat/src/ChatListItems.js +20 -17
  139. package/lib/chat/src/ChatMainArea.d.ts +45 -0
  140. package/lib/chat/src/ChatMainArea.js +2 -2
  141. package/lib/chat/src/ChatMessages.d.ts +46 -1
  142. package/lib/chat/src/ChatMessages.js +6 -5
  143. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  144. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  145. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  146. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.js +4 -1
  147. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  148. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  149. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.js +2 -2
  150. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  151. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  152. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  153. package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
  154. package/lib/chat/src/interface.d.ts +26 -34
  155. package/lib/chat/styles/dark.d.ts +3 -0
  156. package/lib/chat/styles/light.d.ts +3 -0
  157. package/lib/chat/tests/utils/constants.d.ts +12 -0
  158. package/lib/chat/tests/utils/constants.js +15 -0
  159. package/lib/chat/tests/utils/create-chat-item-mock.d.ts +2 -0
  160. package/lib/chat/tests/utils/create-chat-item-mock.js +10 -0
  161. package/lib/chat/tests/utils/create-chat-message-mock.d.ts +2 -0
  162. package/lib/chat/tests/utils/create-chat-message-mock.js +14 -0
  163. package/lib/components.d.ts +457 -4
  164. package/lib/data-table/src/DataTable.d.ts +24 -0
  165. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  166. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  167. package/lib/data-table/src/TableParts/Body.d.ts +12 -0
  168. package/lib/data-table/src/TableParts/Header.d.ts +12 -0
  169. package/lib/data-table/src/interface.d.ts +9 -0
  170. package/lib/data-table/styles/light.d.ts +3 -0
  171. package/lib/date-picker/src/DatePicker.d.ts +30 -0
  172. package/lib/date-picker/src/panel/date.d.ts +6 -0
  173. package/lib/date-picker/src/panel/daterange.d.ts +6 -0
  174. package/lib/date-picker/src/panel/datetime.d.ts +6 -0
  175. package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
  176. package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
  177. package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  178. package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
  179. package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
  180. package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
  181. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  182. package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
  183. package/lib/date-picker/styles/light.d.ts +3 -0
  184. package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  185. package/lib/date-picker-v2/styles/dark.d.ts +3 -0
  186. package/lib/date-picker-v2/styles/light.d.ts +3 -0
  187. package/lib/editor/src/Editor.d.ts +20 -2
  188. package/lib/editor/src/Editor.js +13 -1
  189. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  190. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  191. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  192. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  193. package/lib/editor/src/interface.d.ts +9 -0
  194. package/lib/editor/styles/dark.d.ts +3 -0
  195. package/lib/editor/styles/light.d.ts +3 -0
  196. package/lib/message-bubble/src/MessageBubble.d.ts +10 -10
  197. package/lib/message-bubble/src/MessageBubble.js +15 -19
  198. package/lib/message-bubble/src/interface.d.ts +5 -5
  199. package/lib/message-bubble/src/interface.js +3 -3
  200. package/lib/pagination/src/Pagination.d.ts +24 -0
  201. package/lib/pagination/src/interface.d.ts +9 -0
  202. package/lib/pagination/styles/light.d.ts +3 -0
  203. package/lib/select/src/Select.d.ts +24 -0
  204. package/lib/select/src/Select.js +5 -2
  205. package/lib/select/src/interface.d.ts +10 -0
  206. package/lib/select/src/interface.js +1 -1
  207. package/lib/select/src/styles/index.cssr.js +3 -0
  208. package/lib/select/styles/light.d.ts +3 -0
  209. package/lib/tree-select/src/TreeSelect.d.ts +30 -0
  210. package/lib/tree-select/styles/light.d.ts +3 -0
  211. package/lib/version.d.ts +1 -1
  212. package/lib/version.js +1 -1
  213. package/package.json +1 -1
  214. package/web-types.json +17 -7
@@ -834,7 +834,7 @@ export default defineComponent({
834
834
  };
835
835
  return h("div", {
836
836
  ref: "selfElRef",
837
- class: `${this.mergedClsPrefix}-select`,
837
+ class: [`${this.mergedClsPrefix}-select`, this.autoWidth && `${this.mergedClsPrefix}-select--auto-width`],
838
838
  onKeydown: this.$slots.trigger ? this.handleSelfKeydown : undefined
839
839
  }, h(VBinder, null, {
840
840
  default: () => [h(VTarget, null, {
@@ -897,6 +897,7 @@ export default defineComponent({
897
897
  round: this.round,
898
898
  counter: this.counter,
899
899
  secondary: this.secondary,
900
+ autoWidth: this.autoWidth,
900
901
  account: this.account,
901
902
  tagField: this.tagField,
902
903
  renderTagLabel: this.renderTagLabel,
@@ -234,6 +234,7 @@ export declare const selectProps: {
234
234
  readonly round: BooleanConstructor;
235
235
  readonly counter: BooleanConstructor;
236
236
  readonly secondary: BooleanConstructor;
237
+ readonly autoWidth: BooleanConstructor;
237
238
  /** deprecated */
238
239
  readonly onChange: PropType<MaybeArray<OnUpdateValue>>;
239
240
  readonly items: PropType<SelectMixedOption[]>;
@@ -323,8 +324,11 @@ export declare const selectProps: {
323
324
  caretColorSecondary: string;
324
325
  filterCounterTextColor: string;
325
326
  filterCounterTextColorDisabled: string;
327
+ filterCounterGap: string;
328
+ filterSuffixWrapperGap: string;
326
329
  arrowColorSecondary: string;
327
330
  clearColorSecondary: string;
331
+ loadingColorSecondary: string;
328
332
  colorSecondary: string;
329
333
  textColorSecondary: string;
330
334
  borderSecondary: string;
@@ -638,8 +642,11 @@ export declare const selectProps: {
638
642
  caretColorSecondary: string;
639
643
  filterCounterTextColor: string;
640
644
  filterCounterTextColorDisabled: string;
645
+ filterCounterGap: string;
646
+ filterSuffixWrapperGap: string;
641
647
  arrowColorSecondary: string;
642
648
  clearColorSecondary: string;
649
+ loadingColorSecondary: string;
643
650
  colorSecondary: string;
644
651
  textColorSecondary: string;
645
652
  borderSecondary: string;
@@ -953,8 +960,11 @@ export declare const selectProps: {
953
960
  caretColorSecondary: string;
954
961
  filterCounterTextColor: string;
955
962
  filterCounterTextColorDisabled: string;
963
+ filterCounterGap: string;
964
+ filterSuffixWrapperGap: string;
956
965
  arrowColorSecondary: string;
957
966
  clearColorSecondary: string;
967
+ loadingColorSecondary: string;
958
968
  colorSecondary: string;
959
969
  textColorSecondary: string;
960
970
  borderSecondary: string;
@@ -147,6 +147,7 @@ export const selectProps = Object.assign(Object.assign({}, useTheme.props), {
147
147
  round: Boolean,
148
148
  counter: Boolean,
149
149
  secondary: Boolean,
150
+ autoWidth: Boolean,
150
151
  /** deprecated */
151
152
  onChange: [Function, Array],
152
153
  items: Array,
@@ -1,5 +1,5 @@
1
1
  import { fadeInScaleUpTransition } from "../../../_styles/transitions/fade-in-scale-up.cssr.mjs";
2
- import { c, cB, cE } from "../../../_utils/cssr/index.mjs";
2
+ import { c, cB, cE, cM } from "../../../_utils/cssr/index.mjs";
3
3
  // --u-menu-box-shadow
4
4
  export default c([cB('select', `
5
5
  z-index: auto;
@@ -8,6 +8,9 @@ export default c([cB('select', `
8
8
  position: relative;
9
9
  `, [cE('trigger-wrapper', `
10
10
  width: 100%;
11
+ `), cM('auto-width', `
12
+ width: fit-content;
13
+ max-width: 100%;
11
14
  `)]), cB('select-menu', `
12
15
  margin: 4px 0;
13
16
  box-shadow: var(--u-menu-box-shadow);
@@ -87,8 +87,11 @@ declare const selectLight: import("../../_mixins").Theme<"Select", {
87
87
  caretColorSecondary: string;
88
88
  filterCounterTextColor: string;
89
89
  filterCounterTextColorDisabled: string;
90
+ filterCounterGap: string;
91
+ filterSuffixWrapperGap: string;
90
92
  arrowColorSecondary: string;
91
93
  clearColorSecondary: string;
94
+ loadingColorSecondary: string;
92
95
  colorSecondary: string;
93
96
  textColorSecondary: string;
94
97
  borderSecondary: string;
@@ -335,8 +335,11 @@ export declare const treeSelectProps: {
335
335
  caretColorSecondary: string;
336
336
  filterCounterTextColor: string;
337
337
  filterCounterTextColorDisabled: string;
338
+ filterCounterGap: string;
339
+ filterSuffixWrapperGap: string;
338
340
  arrowColorSecondary: string;
339
341
  clearColorSecondary: string;
342
+ loadingColorSecondary: string;
340
343
  colorSecondary: string;
341
344
  textColorSecondary: string;
342
345
  borderSecondary: string;
@@ -589,8 +592,11 @@ export declare const treeSelectProps: {
589
592
  caretColorSecondary: string;
590
593
  filterCounterTextColor: string;
591
594
  filterCounterTextColorDisabled: string;
595
+ filterCounterGap: string;
596
+ filterSuffixWrapperGap: string;
592
597
  arrowColorSecondary: string;
593
598
  clearColorSecondary: string;
599
+ loadingColorSecondary: string;
594
600
  colorSecondary: string;
595
601
  textColorSecondary: string;
596
602
  borderSecondary: string;
@@ -843,8 +849,11 @@ export declare const treeSelectProps: {
843
849
  caretColorSecondary: string;
844
850
  filterCounterTextColor: string;
845
851
  filterCounterTextColorDisabled: string;
852
+ filterCounterGap: string;
853
+ filterSuffixWrapperGap: string;
846
854
  arrowColorSecondary: string;
847
855
  clearColorSecondary: string;
856
+ loadingColorSecondary: string;
848
857
  colorSecondary: string;
849
858
  textColorSecondary: string;
850
859
  borderSecondary: string;
@@ -1219,8 +1228,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1219
1228
  caretColorSecondary: string;
1220
1229
  filterCounterTextColor: string;
1221
1230
  filterCounterTextColorDisabled: string;
1231
+ filterCounterGap: string;
1232
+ filterSuffixWrapperGap: string;
1222
1233
  arrowColorSecondary: string;
1223
1234
  clearColorSecondary: string;
1235
+ loadingColorSecondary: string;
1224
1236
  colorSecondary: string;
1225
1237
  textColorSecondary: string;
1226
1238
  borderSecondary: string;
@@ -1473,8 +1485,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1473
1485
  caretColorSecondary: string;
1474
1486
  filterCounterTextColor: string;
1475
1487
  filterCounterTextColorDisabled: string;
1488
+ filterCounterGap: string;
1489
+ filterSuffixWrapperGap: string;
1476
1490
  arrowColorSecondary: string;
1477
1491
  clearColorSecondary: string;
1492
+ loadingColorSecondary: string;
1478
1493
  colorSecondary: string;
1479
1494
  textColorSecondary: string;
1480
1495
  borderSecondary: string;
@@ -1727,8 +1742,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1727
1742
  caretColorSecondary: string;
1728
1743
  filterCounterTextColor: string;
1729
1744
  filterCounterTextColorDisabled: string;
1745
+ filterCounterGap: string;
1746
+ filterSuffixWrapperGap: string;
1730
1747
  arrowColorSecondary: string;
1731
1748
  clearColorSecondary: string;
1749
+ loadingColorSecondary: string;
1732
1750
  colorSecondary: string;
1733
1751
  textColorSecondary: string;
1734
1752
  borderSecondary: string;
@@ -2068,8 +2086,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2068
2086
  caretColorSecondary: string;
2069
2087
  filterCounterTextColor: string;
2070
2088
  filterCounterTextColorDisabled: string;
2089
+ filterCounterGap: string;
2090
+ filterSuffixWrapperGap: string;
2071
2091
  arrowColorSecondary: string;
2072
2092
  clearColorSecondary: string;
2093
+ loadingColorSecondary: string;
2073
2094
  colorSecondary: string;
2074
2095
  textColorSecondary: string;
2075
2096
  borderSecondary: string;
@@ -2573,8 +2594,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2573
2594
  caretColorSecondary: string;
2574
2595
  filterCounterTextColor: string;
2575
2596
  filterCounterTextColorDisabled: string;
2597
+ filterCounterGap: string;
2598
+ filterSuffixWrapperGap: string;
2576
2599
  arrowColorSecondary: string;
2577
2600
  clearColorSecondary: string;
2601
+ loadingColorSecondary: string;
2578
2602
  colorSecondary: string;
2579
2603
  textColorSecondary: string;
2580
2604
  borderSecondary: string;
@@ -2827,8 +2851,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
2827
2851
  caretColorSecondary: string;
2828
2852
  filterCounterTextColor: string;
2829
2853
  filterCounterTextColorDisabled: string;
2854
+ filterCounterGap: string;
2855
+ filterSuffixWrapperGap: string;
2830
2856
  arrowColorSecondary: string;
2831
2857
  clearColorSecondary: string;
2858
+ loadingColorSecondary: string;
2832
2859
  colorSecondary: string;
2833
2860
  textColorSecondary: string;
2834
2861
  borderSecondary: string;
@@ -3081,8 +3108,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
3081
3108
  caretColorSecondary: string;
3082
3109
  filterCounterTextColor: string;
3083
3110
  filterCounterTextColorDisabled: string;
3111
+ filterCounterGap: string;
3112
+ filterSuffixWrapperGap: string;
3084
3113
  arrowColorSecondary: string;
3085
3114
  clearColorSecondary: string;
3115
+ loadingColorSecondary: string;
3086
3116
  colorSecondary: string;
3087
3117
  textColorSecondary: string;
3088
3118
  borderSecondary: string;
@@ -222,8 +222,11 @@ declare const treeSelectLight: import("../../_mixins").Theme<"TreeSelect", {
222
222
  caretColorSecondary: string;
223
223
  filterCounterTextColor: string;
224
224
  filterCounterTextColorDisabled: string;
225
+ filterCounterGap: string;
226
+ filterSuffixWrapperGap: string;
225
227
  arrowColorSecondary: string;
226
228
  clearColorSecondary: string;
229
+ loadingColorSecondary: string;
227
230
  colorSecondary: string;
228
231
  textColorSecondary: string;
229
232
  borderSecondary: string;
package/es/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "2.4.1";
1
+ declare const _default: "2.4.3";
2
2
  export default _default;
package/es/version.mjs CHANGED
@@ -1 +1 @@
1
- export default '2.4.1';
1
+ export default '2.4.3';
@@ -88,6 +88,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
88
88
  round: BooleanConstructor;
89
89
  counter: BooleanConstructor;
90
90
  secondary: BooleanConstructor;
91
+ autoWidth: BooleanConstructor;
91
92
  account: BooleanConstructor;
92
93
  theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
93
94
  paddingTiny: string;
@@ -171,8 +172,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
171
172
  caretColorSecondary: string;
172
173
  filterCounterTextColor: string;
173
174
  filterCounterTextColorDisabled: string;
175
+ filterCounterGap: string;
176
+ filterSuffixWrapperGap: string;
174
177
  arrowColorSecondary: string;
175
178
  clearColorSecondary: string;
179
+ loadingColorSecondary: string;
176
180
  colorSecondary: string;
177
181
  textColorSecondary: string;
178
182
  borderSecondary: string;
@@ -294,8 +298,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
294
298
  caretColorSecondary: string;
295
299
  filterCounterTextColor: string;
296
300
  filterCounterTextColorDisabled: string;
301
+ filterCounterGap: string;
302
+ filterSuffixWrapperGap: string;
297
303
  arrowColorSecondary: string;
298
304
  clearColorSecondary: string;
305
+ loadingColorSecondary: string;
299
306
  colorSecondary: string;
300
307
  textColorSecondary: string;
301
308
  borderSecondary: string;
@@ -417,8 +424,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
417
424
  caretColorSecondary: string;
418
425
  filterCounterTextColor: string;
419
426
  filterCounterTextColorDisabled: string;
427
+ filterCounterGap: string;
428
+ filterSuffixWrapperGap: string;
420
429
  arrowColorSecondary: string;
421
430
  clearColorSecondary: string;
431
+ loadingColorSecondary: string;
422
432
  colorSecondary: string;
423
433
  textColorSecondary: string;
424
434
  borderSecondary: string;
@@ -543,8 +553,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
543
553
  caretColorSecondary: string;
544
554
  filterCounterTextColor: string;
545
555
  filterCounterTextColorDisabled: string;
556
+ filterCounterGap: string;
557
+ filterSuffixWrapperGap: string;
546
558
  arrowColorSecondary: string;
547
559
  clearColorSecondary: string;
560
+ loadingColorSecondary: string;
548
561
  colorSecondary: string;
549
562
  textColorSecondary: string;
550
563
  borderSecondary: string;
@@ -707,8 +720,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
707
720
  '--u-caret-color-secondary': string;
708
721
  '--u-filter-counter-text-color': string;
709
722
  '--u-filter-counter-text-color-disabled': string;
723
+ '--u-filter-counter-gap': string;
724
+ '--u-suffix-wrapper-gap': string;
710
725
  '--u-arrow-color-secondary': string;
711
726
  '--u-clear-color-secondary': string;
727
+ '--u-loading-color-secondary': string;
712
728
  '--u-color-secondary': string;
713
729
  '--u-text-color-secondary': string;
714
730
  '--u-border-secondary': string;
@@ -814,6 +830,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
814
830
  round: BooleanConstructor;
815
831
  counter: BooleanConstructor;
816
832
  secondary: BooleanConstructor;
833
+ autoWidth: BooleanConstructor;
817
834
  account: BooleanConstructor;
818
835
  theme: PropType<import("../../../_mixins").Theme<"InternalSelection", {
819
836
  paddingTiny: string;
@@ -897,8 +914,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
897
914
  caretColorSecondary: string;
898
915
  filterCounterTextColor: string;
899
916
  filterCounterTextColorDisabled: string;
917
+ filterCounterGap: string;
918
+ filterSuffixWrapperGap: string;
900
919
  arrowColorSecondary: string;
901
920
  clearColorSecondary: string;
921
+ loadingColorSecondary: string;
902
922
  colorSecondary: string;
903
923
  textColorSecondary: string;
904
924
  borderSecondary: string;
@@ -1020,8 +1040,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1020
1040
  caretColorSecondary: string;
1021
1041
  filterCounterTextColor: string;
1022
1042
  filterCounterTextColorDisabled: string;
1043
+ filterCounterGap: string;
1044
+ filterSuffixWrapperGap: string;
1023
1045
  arrowColorSecondary: string;
1024
1046
  clearColorSecondary: string;
1047
+ loadingColorSecondary: string;
1025
1048
  colorSecondary: string;
1026
1049
  textColorSecondary: string;
1027
1050
  borderSecondary: string;
@@ -1143,8 +1166,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1143
1166
  caretColorSecondary: string;
1144
1167
  filterCounterTextColor: string;
1145
1168
  filterCounterTextColorDisabled: string;
1169
+ filterCounterGap: string;
1170
+ filterSuffixWrapperGap: string;
1146
1171
  arrowColorSecondary: string;
1147
1172
  clearColorSecondary: string;
1173
+ loadingColorSecondary: string;
1148
1174
  colorSecondary: string;
1149
1175
  textColorSecondary: string;
1150
1176
  borderSecondary: string;
@@ -1202,6 +1228,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
1202
1228
  filled: boolean;
1203
1229
  ignoreComposition: boolean;
1204
1230
  counter: boolean;
1231
+ autoWidth: boolean;
1205
1232
  account: boolean;
1206
1233
  autofocus: boolean;
1207
1234
  pattern: string;
@@ -13,9 +13,11 @@ const tag_1 = require("../../../tag");
13
13
  const account_option_1 = __importDefault(require("../../account-option"));
14
14
  const clear_1 = __importDefault(require("../../clear"));
15
15
  const icon_1 = require("../../icon");
16
+ const loading_1 = __importDefault(require("../../loading"));
16
17
  const skeleton_1 = __importDefault(require("../../skeleton"));
17
18
  const suffix_1 = __importDefault(require("../../suffix"));
18
19
  const styles_1 = require("../styles");
20
+ const CounterPlaceholder_1 = __importDefault(require("./SelectionParts/CounterPlaceholder/CounterPlaceholder"));
19
21
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
20
22
  exports.default = (0, vue_1.defineComponent)({
21
23
  name: 'InternalSelection',
@@ -43,7 +45,7 @@ exports.default = (0, vue_1.defineComponent)({
43
45
  }, loading: Boolean, loadingSkeleton: Boolean, autofocus: Boolean, showArrow: {
44
46
  type: Boolean,
45
47
  default: true
46
- }, inputProps: Object, focused: Boolean, filled: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], ellipsisTagPopoverProps: Object, 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 }),
48
+ }, inputProps: Object, focused: Boolean, filled: Boolean, renderTag: Function, onKeydown: Function, onClick: Function, onBlur: Function, onFocus: Function, onDeleteOption: Function, maxTagCount: [String, Number], ellipsisTagPopoverProps: Object, 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, autoWidth: Boolean, account: Boolean }),
47
49
  setup(props) {
48
50
  const patternInputMirrorRef = (0, vue_1.ref)(null);
49
51
  const patternInputRef = (0, vue_1.ref)(null);
@@ -364,7 +366,7 @@ exports.default = (0, vue_1.defineComponent)({
364
366
  // clear
365
367
  clearColor, clearColorHover, clearColorPressed,
366
368
  // secondary
367
- arrowColorSecondary, clearColorSecondary, colorSecondary, textColorSecondary, borderSecondary, arrowColorDisabledSecondary, clearColorDisabledSecondary, colorDisabledSecondary, textColorDisabledSecondary, borderDisabledSecondary, arrowColorHoverSecondary, clearColorHoverSecondary, colorHoverSecondary, textColorHoverSecondary, borderHoverSecondary, filterCounterTextColor, filterCounterTextColorDisabled, 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;
369
+ arrowColorSecondary, clearColorSecondary, loadingColorSecondary, colorSecondary, textColorSecondary, borderSecondary, arrowColorDisabledSecondary, clearColorDisabledSecondary, colorDisabledSecondary, textColorDisabledSecondary, borderDisabledSecondary, arrowColorHoverSecondary, clearColorHoverSecondary, colorHoverSecondary, textColorHoverSecondary, borderHoverSecondary, filterCounterTextColor, filterCounterTextColorDisabled, filterCounterGap, filterSuffixWrapperGap, 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;
368
370
  const { top: paddingTop, right: paddingRight, bottom: paddingBottom, left: paddingLeft } = (0, seemly_1.getPadding)(padding);
369
371
  return {
370
372
  '--u-bezier': cubicBezierEaseInOut,
@@ -432,8 +434,11 @@ exports.default = (0, vue_1.defineComponent)({
432
434
  '--u-caret-color-secondary': caretColorSecondary,
433
435
  '--u-filter-counter-text-color': filterCounterTextColor,
434
436
  '--u-filter-counter-text-color-disabled': filterCounterTextColorDisabled,
437
+ '--u-filter-counter-gap': filterCounterGap,
438
+ '--u-suffix-wrapper-gap': filterSuffixWrapperGap,
435
439
  '--u-arrow-color-secondary': arrowColorSecondary,
436
440
  '--u-clear-color-secondary': clearColorSecondary,
441
+ '--u-loading-color-secondary': loadingColorSecondary,
437
442
  '--u-color-secondary': colorSecondary,
438
443
  '--u-text-color-secondary': textColorSecondary,
439
444
  '--u-border-secondary': borderSecondary,
@@ -526,17 +531,30 @@ exports.default = (0, vue_1.defineComponent)({
526
531
  const maxTagCountNumeric = typeof maxTagCount === 'number';
527
532
  const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
528
533
  const filterCounterEl = this.filterCounterVisible && !this.disabled ? ((0, vue_1.h)("div", { class: [`${clsPrefix}-base-selection__filter-counter`] }, this.filterCounterLength)) : null;
529
- const clear = this.filterCounterClearable ? ((0, vue_1.h)(clear_1.default, { clsPrefix: clsPrefix, show: true, onClear: this.handleClear })) : null;
534
+ const clear = this.filterCounterVisible && this.loading ? ((0, vue_1.h)(loading_1.default, { clsPrefix: clsPrefix, class: `${clsPrefix}-base-suffix`, strokeWidth: 24, scale: 0.85, show: true })) : this.filterCounterClearable ? ((0, vue_1.h)(clear_1.default, { clsPrefix: clsPrefix, show: true, onClear: this.handleClear })) : null;
535
+ const suffixShowArrow = this.showArrow || (this.counter && this.filterCounterLength === 0);
536
+ const suffixLoading = this.loading && !this.filterCounterVisible;
530
537
  const suffix = ((0, vue_1.h)(_utils_1.Wrapper, null, {
531
538
  default: () => ((0, vue_1.h)("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] },
532
- (0, vue_1.h)(suffix_1.default, { clsPrefix: clsPrefix, loading: this.loading, showArrow: this.showArrow
533
- || (this.counter && this.filterCounterLength === 0), showClear: this.showSuffixClear, onClear: this.handleClear }, {
539
+ suffixShowArrow ? ((0, vue_1.h)(suffix_1.default, { clsPrefix: clsPrefix, loading: suffixLoading, showArrow: suffixShowArrow, showClear: this.showSuffixClear, onClear: this.handleClear }, {
534
540
  default: () => { var _a, _b; return [(_b = (_a = this.$slots).arrow) === null || _b === void 0 ? void 0 : _b.call(_a)]; }
535
- }),
541
+ })) : null,
536
542
  filterCounterEl,
537
543
  clear))
538
544
  }));
539
545
  let body;
546
+ const renderVisibleLabel = () => {
547
+ if (renderTag) {
548
+ return renderTag({
549
+ option: this.selectedOption,
550
+ handleClose: () => { }
551
+ });
552
+ }
553
+ const label = renderLabel
554
+ ? renderLabel(this.selectedOption, true)
555
+ : (0, _utils_1.render)(this.label, this.selectedOption, true);
556
+ return account ? ((0, vue_1.h)(account_option_1.default, Object.assign({}, this.selectedOption, { label: label }))) : (label);
557
+ };
540
558
  if (multiple) {
541
559
  const { labelField } = this;
542
560
  const createTag = (option) => {
@@ -581,7 +599,7 @@ exports.default = (0, vue_1.defineComponent)({
581
599
  })));
582
600
  }
583
601
  }
584
- const tags = this.filterCounterVisible ? (this.pattern ? null : (this.placeholder)) : maxTagCountResponsive ? (filterable ? ((0, vue_1.h)(vueuc_1.VOverflow, { ref: "overflowRef", updateCounter: this.updateCounter, getCounter: this.getCounter, getTail: this.getTail, style: {
602
+ const tags = this.filterCounterVisible ? null : maxTagCountResponsive ? (filterable ? ((0, vue_1.h)(vueuc_1.VOverflow, { ref: "overflowRef", updateCounter: this.updateCounter, getCounter: this.getCounter, getTail: this.getTail, style: {
585
603
  width: '100%',
586
604
  display: 'flex',
587
605
  overflow: 'hidden'
@@ -605,36 +623,27 @@ exports.default = (0, vue_1.defineComponent)({
605
623
  const popoverProps = useMaxTagCount
606
624
  ? Object.assign({ show: this.showTagsPanel, trigger: 'hover', overlap: true, placement: 'top', width: 'trigger', onUpdateShow: this.onPopoverUpdateShow, theme: this.mergedTheme.peers.Popover, themeOverrides: this.mergedTheme.peerOverrides.Popover }, ellipsisTagPopoverProps)
607
625
  : null;
608
- const showPlaceholder = this.selected
626
+ const showPlaceholder = this.selected && !this.filterCounterVisible
609
627
  ? false
610
628
  : this.active
611
629
  ? !this.pattern && !this.isComposing
612
630
  : true;
613
631
  const placeholder = showPlaceholder ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay` },
614
632
  (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder))) : null;
615
- const popoverTrigger = filterable ? ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-tags` },
616
- tags,
617
- maxTagCountResponsive ? null : input,
618
- suffix)) : ((0, vue_1.h)("div", { ref: "multipleElRef", class: `${clsPrefix}-base-selection-tags`, tabindex: disabled ? undefined : 0 },
619
- tags,
633
+ const counterPlaceholderHidden = !!(this.pattern || this.isComposing);
634
+ const counterPlaceholder = this.filterCounterVisible ? ((0, vue_1.h)(CounterPlaceholder_1.default, { clsPrefix: clsPrefix, placeholder: this.placeholder, "placeholder-hidden": counterPlaceholderHidden, input: input })) : null;
635
+ const popoverTrigger = filterable ? ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-tags` }, counterPlaceholder !== null && counterPlaceholder !== void 0 ? counterPlaceholder : tags,
636
+ counterPlaceholder || maxTagCountResponsive ? null : input,
637
+ suffix)) : ((0, vue_1.h)("div", { ref: "multipleElRef", class: `${clsPrefix}-base-selection-tags`, tabindex: disabled ? undefined : 0 }, counterPlaceholder !== null && counterPlaceholder !== void 0 ? counterPlaceholder : tags,
620
638
  suffix));
621
639
  body = ((0, vue_1.h)(vue_1.Fragment, null,
622
640
  useMaxTagCount ? ((0, vue_1.h)(popover_1.UPopover, Object.assign({}, popoverProps, { scrollable: true, style: "max-height: calc(var(--v-target-height) * 6.6);" }), {
623
641
  trigger: () => popoverTrigger,
624
642
  default: renderPopover
625
643
  })) : (popoverTrigger),
626
- placeholder));
644
+ counterPlaceholder ? null : placeholder));
627
645
  }
628
646
  else {
629
- let children;
630
- if (this.label !== undefined) {
631
- const label = renderLabel
632
- ? renderLabel(this.selectedOption, true)
633
- : (0, _utils_1.render)(this.label, this.selectedOption, true);
634
- children
635
- = (account && ((0, vue_1.h)(account_option_1.default, Object.assign({}, this.selectedOption, { label: label }))))
636
- || label;
637
- }
638
647
  if (filterable) {
639
648
  const hasInput = this.pattern || this.isComposing;
640
649
  const isAccountFocused = this.patternInputFocused && this.account;
@@ -643,12 +652,7 @@ exports.default = (0, vue_1.defineComponent)({
643
652
  body = ((0, vue_1.h)("div", { ref: "patternInputWrapperRef", class: `${clsPrefix}-base-selection-label` },
644
653
  (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 })),
645
654
  showSelectedLabel ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`, key: "input" },
646
- (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderTag
647
- ? renderTag({
648
- option: this.selectedOption,
649
- handleClose: () => { }
650
- })
651
- : children))) : null,
655
+ (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderVisibleLabel()))) : null,
652
656
  showPlaceholder ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
653
657
  (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, this.filterablePlaceholder))) : null,
654
658
  suffix));
@@ -656,12 +660,7 @@ exports.default = (0, vue_1.defineComponent)({
656
660
  else {
657
661
  body = ((0, vue_1.h)("div", { ref: "singleElRef", class: `${clsPrefix}-base-selection-label`, tabindex: this.disabled ? undefined : 0 },
658
662
  this.label !== undefined ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-input`, title: (0, _utils_1.getTitleAttribute)(this.label), key: "input" },
659
- (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-input__content` }, renderTag
660
- ? renderTag({
661
- option: this.selectedOption,
662
- handleClose: () => { }
663
- })
664
- : children))) : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
663
+ (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-input__content` }, renderVisibleLabel()))) : ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder ${clsPrefix}-base-selection-overlay`, key: "placeholder" },
665
664
  (0, vue_1.h)("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder))),
666
665
  suffix));
667
666
  }
@@ -674,10 +673,12 @@ exports.default = (0, vue_1.defineComponent)({
674
673
  [`${clsPrefix}-base-selection--active`]: this.active,
675
674
  [`${clsPrefix}-base-selection--secondary`]: this.secondary,
676
675
  [`${clsPrefix}-base-selection--secondary-selected`]: this.secondary && this.selected,
676
+ [`${clsPrefix}-base-selection--counter-selected`]: this.filterCounterVisible,
677
677
  [`${clsPrefix}-base-selection--selected`]: this.selected || (this.active && this.pattern),
678
678
  [`${clsPrefix}-base-selection--disabled`]: this.disabled,
679
679
  [`${clsPrefix}-base-selection--multiple`]: this.multiple,
680
680
  [`${clsPrefix}-base-selection--filled`]: this.filled,
681
+ [`${clsPrefix}-base-selection--auto-width`]: this.autoWidth,
681
682
  [`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
682
683
  // focus is not controlled by selection itself since it always need
683
684
  // to be managed together with menu. provide :focus style will cause
@@ -689,6 +690,13 @@ exports.default = (0, vue_1.defineComponent)({
689
690
  `${clsPrefix}-base-selection__loading--skeleton`
690
691
  ] })) : ([
691
692
  body,
693
+ this.autoWidth ? ((0, vue_1.h)("div", { "aria-hidden": "true", class: [
694
+ `${clsPrefix}-base-selection-overlay`,
695
+ `${clsPrefix}-base-selection-placeholder`,
696
+ `${clsPrefix}-base-selection__sizer`
697
+ ] },
698
+ (0, vue_1.h)("div", null, this.placeholder),
699
+ !this.multiple && this.selectedOption ? ((0, vue_1.h)("div", null, renderVisibleLabel())) : null)) : null,
692
700
  bordered ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection__border` })) : null,
693
701
  bordered ? ((0, vue_1.h)("div", { class: `${clsPrefix}-base-selection__state-border` })) : null
694
702
  ])));
@@ -0,0 +1,35 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ readonly clsPrefix: {
3
+ readonly type: StringConstructor;
4
+ readonly required: true;
5
+ };
6
+ readonly placeholder: {
7
+ readonly type: StringConstructor;
8
+ readonly default: "";
9
+ };
10
+ readonly placeholderHidden: {
11
+ readonly type: BooleanConstructor;
12
+ };
13
+ readonly input: {
14
+ readonly type: import("vue").PropType<import("vue").VNode | null>;
15
+ };
16
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ readonly clsPrefix: {
18
+ readonly type: StringConstructor;
19
+ readonly required: true;
20
+ };
21
+ readonly placeholder: {
22
+ readonly type: StringConstructor;
23
+ readonly default: "";
24
+ };
25
+ readonly placeholderHidden: {
26
+ readonly type: BooleanConstructor;
27
+ };
28
+ readonly input: {
29
+ readonly type: import("vue").PropType<import("vue").VNode | null>;
30
+ };
31
+ }>> & Readonly<{}>, {
32
+ readonly placeholder: string;
33
+ readonly placeholderHidden: boolean;
34
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
35
+ export default _default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const vue_1 = require("vue");
4
+ const counter_placeholder_types_1 = require("./counter-placeholder.types");
5
+ exports.default = (0, vue_1.defineComponent)({
6
+ name: 'CounterPlaceholder',
7
+ props: counter_placeholder_types_1.counterPlaceholderProps,
8
+ render() {
9
+ return ((0, vue_1.h)("div", { class: `${this.clsPrefix}-base-selection-placeholder ${this.clsPrefix}-base-selection__counter-placeholder` },
10
+ (0, vue_1.h)("span", { style: this.placeholderHidden ? { visibility: 'hidden' } : undefined }, this.placeholder),
11
+ this.input));
12
+ }
13
+ });
@@ -0,0 +1,17 @@
1
+ import type { PropType, VNode } from 'vue';
2
+ export declare const counterPlaceholderProps: {
3
+ readonly clsPrefix: {
4
+ readonly type: StringConstructor;
5
+ readonly required: true;
6
+ };
7
+ readonly placeholder: {
8
+ readonly type: StringConstructor;
9
+ readonly default: "";
10
+ };
11
+ readonly placeholderHidden: {
12
+ readonly type: BooleanConstructor;
13
+ };
14
+ readonly input: {
15
+ readonly type: PropType<VNode | null>;
16
+ };
17
+ };
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.counterPlaceholderProps = void 0;
4
+ exports.counterPlaceholderProps = {
5
+ clsPrefix: {
6
+ type: String,
7
+ required: true
8
+ },
9
+ placeholder: {
10
+ type: String,
11
+ default: ''
12
+ },
13
+ placeholderHidden: {
14
+ type: Boolean
15
+ },
16
+ input: {
17
+ type: Object
18
+ }
19
+ };