@uzum-tech/ui 2.4.2 → 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 (158) hide show
  1. package/dist/index.js +162 -32
  2. package/dist/index.mjs +162 -32
  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/cascader/src/Cascader.d.ts +30 -0
  15. package/es/cascader/src/CascaderMenu.d.ts +6 -0
  16. package/es/cascader/src/CascaderOption.d.ts +6 -0
  17. package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
  18. package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
  19. package/es/cascader/styles/light.d.ts +3 -0
  20. package/es/chat/src/Chat.d.ts +132 -0
  21. package/es/chat/src/ChatListItems.d.ts +45 -0
  22. package/es/chat/src/ChatMainArea.d.ts +45 -0
  23. package/es/chat/src/ChatMessages.d.ts +45 -0
  24. package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  25. package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  26. package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  27. package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  28. package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  29. package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  30. package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  31. package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  32. package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
  33. package/es/chat/src/interface.d.ts +9 -0
  34. package/es/chat/styles/dark.d.ts +3 -0
  35. package/es/chat/styles/light.d.ts +3 -0
  36. package/es/components.d.ts +453 -0
  37. package/es/data-table/src/DataTable.d.ts +24 -0
  38. package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  39. package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  40. package/es/data-table/src/TableParts/Body.d.ts +12 -0
  41. package/es/data-table/src/TableParts/Header.d.ts +12 -0
  42. package/es/data-table/src/interface.d.ts +9 -0
  43. package/es/data-table/styles/light.d.ts +3 -0
  44. package/es/date-picker/src/DatePicker.d.ts +30 -0
  45. package/es/date-picker/src/panel/date.d.ts +6 -0
  46. package/es/date-picker/src/panel/daterange.d.ts +6 -0
  47. package/es/date-picker/src/panel/datetime.d.ts +6 -0
  48. package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
  49. package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
  50. package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  51. package/es/date-picker/src/panel/panelYear.d.ts +24 -0
  52. package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
  53. package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
  54. package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  55. package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
  56. package/es/date-picker/styles/light.d.ts +3 -0
  57. package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  58. package/es/date-picker-v2/styles/dark.d.ts +3 -0
  59. package/es/date-picker-v2/styles/light.d.ts +3 -0
  60. package/es/editor/src/Editor.d.ts +18 -0
  61. package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  62. package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  63. package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  64. package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  65. package/es/editor/src/interface.d.ts +9 -0
  66. package/es/editor/styles/dark.d.ts +3 -0
  67. package/es/editor/styles/light.d.ts +3 -0
  68. package/es/pagination/src/Pagination.d.ts +24 -0
  69. package/es/pagination/src/interface.d.ts +9 -0
  70. package/es/pagination/styles/light.d.ts +3 -0
  71. package/es/select/src/Select.d.ts +24 -0
  72. package/es/select/src/Select.mjs +2 -1
  73. package/es/select/src/interface.d.ts +10 -0
  74. package/es/select/src/interface.mjs +1 -0
  75. package/es/select/src/styles/index.cssr.mjs +4 -1
  76. package/es/select/styles/light.d.ts +3 -0
  77. package/es/tree-select/src/TreeSelect.d.ts +30 -0
  78. package/es/tree-select/styles/light.d.ts +3 -0
  79. package/es/version.d.ts +1 -1
  80. package/es/version.mjs +1 -1
  81. package/lib/_internal/selection/src/Selection.d.ts +27 -0
  82. package/lib/_internal/selection/src/Selection.js +43 -35
  83. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
  84. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
  85. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
  86. package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
  87. package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
  88. package/lib/_internal/selection/styles/light.d.ts +6 -0
  89. package/lib/_internal/selection/styles/light.js +3 -0
  90. package/lib/cascader/src/Cascader.d.ts +30 -0
  91. package/lib/cascader/src/CascaderMenu.d.ts +6 -0
  92. package/lib/cascader/src/CascaderOption.d.ts +6 -0
  93. package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
  94. package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
  95. package/lib/cascader/styles/light.d.ts +3 -0
  96. package/lib/chat/src/Chat.d.ts +132 -0
  97. package/lib/chat/src/ChatListItems.d.ts +45 -0
  98. package/lib/chat/src/ChatMainArea.d.ts +45 -0
  99. package/lib/chat/src/ChatMessages.d.ts +45 -0
  100. package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
  101. package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
  102. package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
  103. package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
  104. package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
  105. package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
  106. package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
  107. package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
  108. package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
  109. package/lib/chat/src/interface.d.ts +9 -0
  110. package/lib/chat/styles/dark.d.ts +3 -0
  111. package/lib/chat/styles/light.d.ts +3 -0
  112. package/lib/components.d.ts +453 -0
  113. package/lib/data-table/src/DataTable.d.ts +24 -0
  114. package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
  115. package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
  116. package/lib/data-table/src/TableParts/Body.d.ts +12 -0
  117. package/lib/data-table/src/TableParts/Header.d.ts +12 -0
  118. package/lib/data-table/src/interface.d.ts +9 -0
  119. package/lib/data-table/styles/light.d.ts +3 -0
  120. package/lib/date-picker/src/DatePicker.d.ts +30 -0
  121. package/lib/date-picker/src/panel/date.d.ts +6 -0
  122. package/lib/date-picker/src/panel/daterange.d.ts +6 -0
  123. package/lib/date-picker/src/panel/datetime.d.ts +6 -0
  124. package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
  125. package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
  126. package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
  127. package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
  128. package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
  129. package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
  130. package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
  131. package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
  132. package/lib/date-picker/styles/light.d.ts +3 -0
  133. package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
  134. package/lib/date-picker-v2/styles/dark.d.ts +3 -0
  135. package/lib/date-picker-v2/styles/light.d.ts +3 -0
  136. package/lib/editor/src/Editor.d.ts +18 -0
  137. package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
  138. package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
  139. package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
  140. package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
  141. package/lib/editor/src/interface.d.ts +9 -0
  142. package/lib/editor/styles/dark.d.ts +3 -0
  143. package/lib/editor/styles/light.d.ts +3 -0
  144. package/lib/pagination/src/Pagination.d.ts +24 -0
  145. package/lib/pagination/src/interface.d.ts +9 -0
  146. package/lib/pagination/styles/light.d.ts +3 -0
  147. package/lib/select/src/Select.d.ts +24 -0
  148. package/lib/select/src/Select.js +5 -2
  149. package/lib/select/src/interface.d.ts +10 -0
  150. package/lib/select/src/interface.js +1 -1
  151. package/lib/select/src/styles/index.cssr.js +3 -0
  152. package/lib/select/styles/light.d.ts +3 -0
  153. package/lib/tree-select/src/TreeSelect.d.ts +30 -0
  154. package/lib/tree-select/styles/light.d.ts +3 -0
  155. package/lib/version.d.ts +1 -1
  156. package/lib/version.js +1 -1
  157. package/package.json +1 -1
  158. package/web-types.json +11 -1
package/dist/index.js CHANGED
@@ -27925,8 +27925,11 @@
27925
27925
  caretColorSecondary: elementsPrimary,
27926
27926
  filterCounterTextColor: textSecondary,
27927
27927
  filterCounterTextColorDisabled: textSecondary,
27928
+ filterCounterGap: "8px",
27929
+ filterSuffixWrapperGap: "4px",
27928
27930
  arrowColorSecondary: elementsSecondary,
27929
27931
  clearColorSecondary: elementsSecondary,
27932
+ loadingColorSecondary: elementsSecondary,
27930
27933
  colorSecondary: elementsPrimary,
27931
27934
  textColorSecondary: textQuaternary,
27932
27935
  borderSecondary: "none",
@@ -27979,6 +27982,44 @@
27979
27982
  left: 10px;
27980
27983
  `)])]);
27981
27984
 
27985
+ const counterPlaceholderProps = {
27986
+ clsPrefix: {
27987
+ type: String,
27988
+ required: true
27989
+ },
27990
+ placeholder: {
27991
+ type: String,
27992
+ default: ""
27993
+ },
27994
+ placeholderHidden: {
27995
+ type: Boolean
27996
+ },
27997
+ input: {
27998
+ type: Object
27999
+ }
28000
+ };
28001
+
28002
+ var CounterPlaceholder = vue.defineComponent({
28003
+ name: "CounterPlaceholder",
28004
+ props: counterPlaceholderProps,
28005
+ render() {
28006
+ return /* @__PURE__ */ vue.h(
28007
+ "div",
28008
+ {
28009
+ class: `${this.clsPrefix}-base-selection-placeholder ${this.clsPrefix}-base-selection__counter-placeholder`
28010
+ },
28011
+ /* @__PURE__ */ vue.h(
28012
+ "span",
28013
+ {
28014
+ style: this.placeholderHidden ? { visibility: "hidden" } : void 0
28015
+ },
28016
+ this.placeholder
28017
+ ),
28018
+ this.input
28019
+ );
28020
+ }
28021
+ });
28022
+
27982
28023
  function generateSecondaryStates(state) {
27983
28024
  return [cB("base-selection-input", `
27984
28025
  color: var(--u-text-color${state}-secondary);
@@ -27992,6 +28033,8 @@
27992
28033
  `)]), cB("base-selection-tags", `
27993
28034
  background-color: var(--u-color${state}-secondary);
27994
28035
  color: var(--u-text-color${state}-secondary);
28036
+ `), cB("base-selection-placeholder", `
28037
+ color: var(--u-text-color${state}-secondary);
27995
28038
  `), cE("border,state-border", `
27996
28039
  border: var(--u-border${state}-secondary);
27997
28040
  `), cB("base-clear", [cE("clear", `
@@ -28039,12 +28082,11 @@
28039
28082
  top: 50%;
28040
28083
  transform: translateY(-50%);
28041
28084
  right: var(--u-padding-right);
28085
+ gap: var(--u-suffix-wrapper-gap);
28042
28086
  `, [cB("base-clear", `
28043
28087
  font-size: var(--u-clear-size);
28044
28088
  `)]), cE("filter-counter", `
28045
- width: 28px;
28046
- margin-left: 6px;
28047
- padding-left: 2px;
28089
+ width: 13px;
28048
28090
  text-align: center;
28049
28091
  color: var(--u-filter-counter-text-color);
28050
28092
  `), cB("base-suffix", `
@@ -28134,6 +28176,8 @@
28134
28176
  color: var(--u-text-color);
28135
28177
  `)]), cNotM("disabled", [cM("secondary", [cB("base-selection-placeholder", `
28136
28178
  color: var(--u-text-color);
28179
+ `)]), cM("secondary-selected", [cB("base-selection-placeholder", `
28180
+ color: var(--u-text-color-secondary);
28137
28181
  `)]), c$1("&:hover", [cE("state-border", `
28138
28182
  box-shadow: var(--u-box-shadow-hover);
28139
28183
  border: var(--u-border-hover);
@@ -28223,6 +28267,8 @@
28223
28267
  caret-color: var(--u-caret-color-secondary);
28224
28268
  `), cB("base-selection-tags", `
28225
28269
  padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
28270
+ `), cB("base-loading", `
28271
+ color: var(--u-loading-color-secondary);
28226
28272
  `), cNotM("disabled", [c$1("&: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", `
28227
28273
  box-shadow: var(--u-box-shadow-active-${status});
28228
28274
  border: var(--u-border-active-${status});
@@ -28241,7 +28287,42 @@
28241
28287
  zIndex: 2,
28242
28288
  borderRadius: "var(--u-border-radius)",
28243
28289
  cursor: "wait"
28244
- })])]), cB("base-selection-popover", `
28290
+ })]), cM("auto-width", [cB("base-selection-label, base-selection-tags", `
28291
+ width: 0;
28292
+ min-width: 100%;
28293
+ `), cE("sizer", `
28294
+ position: static;
28295
+ display: block;
28296
+ height: 0;
28297
+ padding-top: 0;
28298
+ padding-bottom: 0;
28299
+ overflow: hidden;
28300
+ visibility: hidden;
28301
+ `, [cB("base-account-option", [cE("wrap", `
28302
+ width: auto;
28303
+ flex-grow: 0;
28304
+ `)])]), cNotM("secondary-selected", [cB("base-selection-placeholder", `
28305
+ padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 8px);
28306
+ `)]), cM("counter-selected", [cB("base-selection-tags", "width: auto;")])]), cM("counter-selected", [cB("base-selection-tags", `
28307
+ flex-wrap: nowrap;
28308
+ gap: var(--u-filter-counter-gap);
28309
+ padding-right: var(--u-padding-right);
28310
+ `), cE("counter-placeholder", `
28311
+ position: relative;
28312
+ flex: 1 1 auto;
28313
+ min-width: 0;
28314
+ white-space: nowrap;
28315
+ overflow: hidden;
28316
+ text-overflow: ellipsis;
28317
+ `, [cB("base-selection-input-tag", `
28318
+ position: absolute;
28319
+ top: 0;
28320
+ left: 0;
28321
+ `)]), cE("suffix-wrapper", `
28322
+ position: static;
28323
+ transform: none;
28324
+ flex-shrink: 0;
28325
+ `)])]), cB("base-selection-popover", `
28245
28326
  margin-bottom: -3px;
28246
28327
  display: flex;
28247
28328
  flex-wrap: wrap;
@@ -28332,6 +28413,7 @@
28332
28413
  round: Boolean,
28333
28414
  counter: Boolean,
28334
28415
  secondary: Boolean,
28416
+ autoWidth: Boolean,
28335
28417
  account: Boolean
28336
28418
  },
28337
28419
  setup(props) {
@@ -28678,6 +28760,7 @@
28678
28760
  // secondary
28679
28761
  arrowColorSecondary,
28680
28762
  clearColorSecondary,
28763
+ loadingColorSecondary,
28681
28764
  colorSecondary,
28682
28765
  textColorSecondary,
28683
28766
  borderSecondary,
@@ -28693,6 +28776,8 @@
28693
28776
  borderHoverSecondary,
28694
28777
  filterCounterTextColor,
28695
28778
  filterCounterTextColorDisabled,
28779
+ filterCounterGap,
28780
+ filterSuffixWrapperGap,
28696
28781
  caretColorSecondary,
28697
28782
  arrowColorActiveSecondary,
28698
28783
  clearColorActiveSecondary,
@@ -28787,8 +28872,11 @@
28787
28872
  "--u-caret-color-secondary": caretColorSecondary,
28788
28873
  "--u-filter-counter-text-color": filterCounterTextColor,
28789
28874
  "--u-filter-counter-text-color-disabled": filterCounterTextColorDisabled,
28875
+ "--u-filter-counter-gap": filterCounterGap,
28876
+ "--u-suffix-wrapper-gap": filterSuffixWrapperGap,
28790
28877
  "--u-arrow-color-secondary": arrowColorSecondary,
28791
28878
  "--u-clear-color-secondary": clearColorSecondary,
28879
+ "--u-loading-color-secondary": loadingColorSecondary,
28792
28880
  "--u-color-secondary": colorSecondary,
28793
28881
  "--u-text-color-secondary": textColorSecondary,
28794
28882
  "--u-border-secondary": borderSecondary,
@@ -28900,7 +28988,16 @@
28900
28988
  const maxTagCountNumeric = typeof maxTagCount === "number";
28901
28989
  const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
28902
28990
  const filterCounterEl = this.filterCounterVisible && !this.disabled ? /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__filter-counter`] }, this.filterCounterLength) : null;
28903
- const clear = this.filterCounterClearable ? /* @__PURE__ */ vue.h(
28991
+ const clear = this.filterCounterVisible && this.loading ? /* @__PURE__ */ vue.h(
28992
+ UBaseLoading,
28993
+ {
28994
+ clsPrefix,
28995
+ class: `${clsPrefix}-base-suffix`,
28996
+ strokeWidth: 24,
28997
+ scale: 0.85,
28998
+ show: true
28999
+ }
29000
+ ) : this.filterCounterClearable ? /* @__PURE__ */ vue.h(
28904
29001
  UBaseClear,
28905
29002
  {
28906
29003
  clsPrefix,
@@ -28908,22 +29005,35 @@
28908
29005
  onClear: this.handleClear
28909
29006
  }
28910
29007
  ) : null;
29008
+ const suffixShowArrow = this.showArrow || this.counter && this.filterCounterLength === 0;
29009
+ const suffixLoading = this.loading && !this.filterCounterVisible;
28911
29010
  const suffix = /* @__PURE__ */ vue.h(Wrapper, null, {
28912
- default: () => /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, /* @__PURE__ */ vue.h(
29011
+ default: () => /* @__PURE__ */ vue.h("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, suffixShowArrow ? /* @__PURE__ */ vue.h(
28913
29012
  Suffix,
28914
29013
  {
28915
29014
  clsPrefix,
28916
- loading: this.loading,
28917
- showArrow: this.showArrow || this.counter && this.filterCounterLength === 0,
29015
+ loading: suffixLoading,
29016
+ showArrow: suffixShowArrow,
28918
29017
  showClear: this.showSuffixClear,
28919
29018
  onClear: this.handleClear
28920
29019
  },
28921
29020
  {
28922
29021
  default: () => [this.$slots.arrow?.()]
28923
29022
  }
28924
- ), filterCounterEl, clear)
29023
+ ) : null, filterCounterEl, clear)
28925
29024
  });
28926
29025
  let body;
29026
+ const renderVisibleLabel = () => {
29027
+ if (renderTag) {
29028
+ return renderTag({
29029
+ option: this.selectedOption,
29030
+ handleClose: () => {
29031
+ }
29032
+ });
29033
+ }
29034
+ const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
29035
+ return account ? /* @__PURE__ */ vue.h(UBaseAccountOption, { ...this.selectedOption, label }) : label;
29036
+ };
28927
29037
  if (multiple) {
28928
29038
  const { labelField } = this;
28929
29039
  const createTag = (option) => {
@@ -29038,7 +29148,7 @@
29038
29148
  );
29039
29149
  }
29040
29150
  }
29041
- const tags = this.filterCounterVisible ? this.pattern ? null : this.placeholder : maxTagCountResponsive ? filterable ? /* @__PURE__ */ vue.h(
29151
+ const tags = this.filterCounterVisible ? null : maxTagCountResponsive ? filterable ? /* @__PURE__ */ vue.h(
29042
29152
  VOverflow,
29043
29153
  {
29044
29154
  ref: "overflowRef",
@@ -29085,7 +29195,7 @@
29085
29195
  themeOverrides: this.mergedTheme.peerOverrides.Popover,
29086
29196
  ...ellipsisTagPopoverProps
29087
29197
  } : null;
29088
- const showPlaceholder = this.selected ? false : this.active ? !this.pattern && !this.isComposing : true;
29198
+ const showPlaceholder = this.selected && !this.filterCounterVisible ? false : this.active ? !this.pattern && !this.isComposing : true;
29089
29199
  const placeholder = showPlaceholder ? /* @__PURE__ */ vue.h(
29090
29200
  "div",
29091
29201
  {
@@ -29093,14 +29203,24 @@
29093
29203
  },
29094
29204
  /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder)
29095
29205
  ) : null;
29206
+ const counterPlaceholderHidden = !!(this.pattern || this.isComposing);
29207
+ const counterPlaceholder = this.filterCounterVisible ? /* @__PURE__ */ vue.h(
29208
+ CounterPlaceholder,
29209
+ {
29210
+ clsPrefix,
29211
+ placeholder: this.placeholder,
29212
+ "placeholder-hidden": counterPlaceholderHidden,
29213
+ input
29214
+ }
29215
+ ) : null;
29096
29216
  const popoverTrigger = filterable ? /* @__PURE__ */ vue.h(
29097
29217
  "div",
29098
29218
  {
29099
29219
  ref: "patternInputWrapperRef",
29100
29220
  class: `${clsPrefix}-base-selection-tags`
29101
29221
  },
29102
- tags,
29103
- maxTagCountResponsive ? null : input,
29222
+ counterPlaceholder ?? tags,
29223
+ counterPlaceholder || maxTagCountResponsive ? null : input,
29104
29224
  suffix
29105
29225
  ) : /* @__PURE__ */ vue.h(
29106
29226
  "div",
@@ -29109,7 +29229,7 @@
29109
29229
  class: `${clsPrefix}-base-selection-tags`,
29110
29230
  tabindex: disabled ? void 0 : 0
29111
29231
  },
29112
- tags,
29232
+ counterPlaceholder ?? tags,
29113
29233
  suffix
29114
29234
  );
29115
29235
  body = /* @__PURE__ */ vue.h(vue.Fragment, null, useMaxTagCount ? /* @__PURE__ */ vue.h(
@@ -29123,13 +29243,8 @@
29123
29243
  trigger: () => popoverTrigger,
29124
29244
  default: renderPopover
29125
29245
  }
29126
- ) : popoverTrigger, placeholder);
29246
+ ) : popoverTrigger, counterPlaceholder ? null : placeholder);
29127
29247
  } else {
29128
- let children;
29129
- if (this.label !== void 0) {
29130
- const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
29131
- children = account && /* @__PURE__ */ vue.h(UBaseAccountOption, { ...this.selectedOption, label }) || label;
29132
- }
29133
29248
  if (filterable) {
29134
29249
  const hasInput = this.pattern || this.isComposing;
29135
29250
  const isAccountFocused = this.patternInputFocused && this.account;
@@ -29166,11 +29281,7 @@
29166
29281
  class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`,
29167
29282
  key: "input"
29168
29283
  },
29169
- /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderTag ? renderTag({
29170
- option: this.selectedOption,
29171
- handleClose: () => {
29172
- }
29173
- }) : children)
29284
+ /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderVisibleLabel())
29174
29285
  ) : null,
29175
29286
  showPlaceholder ? /* @__PURE__ */ vue.h(
29176
29287
  "div",
@@ -29197,11 +29308,7 @@
29197
29308
  title: getTitleAttribute(this.label),
29198
29309
  key: "input"
29199
29310
  },
29200
- /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-input__content` }, renderTag ? renderTag({
29201
- option: this.selectedOption,
29202
- handleClose: () => {
29203
- }
29204
- }) : children)
29311
+ /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection-input__content` }, renderVisibleLabel())
29205
29312
  ) : /* @__PURE__ */ vue.h(
29206
29313
  "div",
29207
29314
  {
@@ -29226,10 +29333,12 @@
29226
29333
  [`${clsPrefix}-base-selection--active`]: this.active,
29227
29334
  [`${clsPrefix}-base-selection--secondary`]: this.secondary,
29228
29335
  [`${clsPrefix}-base-selection--secondary-selected`]: this.secondary && this.selected,
29336
+ [`${clsPrefix}-base-selection--counter-selected`]: this.filterCounterVisible,
29229
29337
  [`${clsPrefix}-base-selection--selected`]: this.selected || this.active && this.pattern,
29230
29338
  [`${clsPrefix}-base-selection--disabled`]: this.disabled,
29231
29339
  [`${clsPrefix}-base-selection--multiple`]: this.multiple,
29232
29340
  [`${clsPrefix}-base-selection--filled`]: this.filled,
29341
+ [`${clsPrefix}-base-selection--auto-width`]: this.autoWidth,
29233
29342
  [`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
29234
29343
  // focus is not controlled by selection itself since it always need
29235
29344
  // to be managed together with menu. provide :focus style will cause
@@ -29258,6 +29367,19 @@
29258
29367
  }
29259
29368
  ) : [
29260
29369
  body,
29370
+ this.autoWidth ? /* @__PURE__ */ vue.h(
29371
+ "div",
29372
+ {
29373
+ "aria-hidden": "true",
29374
+ class: [
29375
+ `${clsPrefix}-base-selection-overlay`,
29376
+ `${clsPrefix}-base-selection-placeholder`,
29377
+ `${clsPrefix}-base-selection__sizer`
29378
+ ]
29379
+ },
29380
+ /* @__PURE__ */ vue.h("div", null, this.placeholder),
29381
+ !this.multiple && this.selectedOption ? /* @__PURE__ */ vue.h("div", null, renderVisibleLabel()) : null
29382
+ ) : null,
29261
29383
  bordered ? /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection__border` }) : null,
29262
29384
  bordered ? /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-base-selection__state-border` }) : null
29263
29385
  ]
@@ -83647,6 +83769,7 @@ img.ProseMirror-separator {
83647
83769
  round: Boolean,
83648
83770
  counter: Boolean,
83649
83771
  secondary: Boolean,
83772
+ autoWidth: Boolean,
83650
83773
  /** deprecated */
83651
83774
  onChange: [Function, Array],
83652
83775
  items: Array,
@@ -83660,6 +83783,9 @@ img.ProseMirror-separator {
83660
83783
  position: relative;
83661
83784
  `, [cE("trigger-wrapper", `
83662
83785
  width: 100%;
83786
+ `), cM("auto-width", `
83787
+ width: fit-content;
83788
+ max-width: 100%;
83663
83789
  `)]), cB("select-menu", `
83664
83790
  margin: 4px 0;
83665
83791
  box-shadow: var(--u-menu-box-shadow);
@@ -84470,7 +84596,10 @@ img.ProseMirror-separator {
84470
84596
  "div",
84471
84597
  {
84472
84598
  ref: "selfElRef",
84473
- class: `${this.mergedClsPrefix}-select`,
84599
+ class: [
84600
+ `${this.mergedClsPrefix}-select`,
84601
+ this.autoWidth && `${this.mergedClsPrefix}-select--auto-width`
84602
+ ],
84474
84603
  onKeydown: this.$slots.trigger ? this.handleSelfKeydown : void 0
84475
84604
  },
84476
84605
  /* @__PURE__ */ vue.h(Binder, null, {
@@ -84541,6 +84670,7 @@ img.ProseMirror-separator {
84541
84670
  round: this.round,
84542
84671
  counter: this.counter,
84543
84672
  secondary: this.secondary,
84673
+ autoWidth: this.autoWidth,
84544
84674
  account: this.account,
84545
84675
  tagField: this.tagField,
84546
84676
  renderTagLabel: this.renderTagLabel,
@@ -154777,7 +154907,7 @@ ${icon.label}`.toLowerCase()
154777
154907
  });
154778
154908
  }
154779
154909
 
154780
- var version = "2.4.2";
154910
+ var version = "2.4.3";
154781
154911
 
154782
154912
  function create({
154783
154913
  componentPrefix = "U",