@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.
- package/dist/index.js +162 -32
- package/dist/index.mjs +162 -32
- package/dist/index.prod.js +3 -3
- package/dist/index.prod.mjs +3 -3
- package/es/_internal/selection/src/Selection.d.ts +27 -0
- package/es/_internal/selection/src/Selection.mjs +54 -26
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.mjs +15 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/es/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.mjs +16 -0
- package/es/_internal/selection/src/styles/index.cssr.mjs +45 -4
- package/es/_internal/selection/styles/light.d.ts +6 -0
- package/es/_internal/selection/styles/light.mjs +3 -0
- package/es/cascader/src/Cascader.d.ts +30 -0
- package/es/cascader/src/CascaderMenu.d.ts +6 -0
- package/es/cascader/src/CascaderOption.d.ts +6 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/es/cascader/styles/light.d.ts +3 -0
- package/es/chat/src/Chat.d.ts +132 -0
- package/es/chat/src/ChatListItems.d.ts +45 -0
- package/es/chat/src/ChatMainArea.d.ts +45 -0
- package/es/chat/src/ChatMessages.d.ts +45 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/es/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/es/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/es/chat/src/interface.d.ts +9 -0
- package/es/chat/styles/dark.d.ts +3 -0
- package/es/chat/styles/light.d.ts +3 -0
- package/es/components.d.ts +453 -0
- package/es/data-table/src/DataTable.d.ts +24 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/es/data-table/src/TableParts/Body.d.ts +12 -0
- package/es/data-table/src/TableParts/Header.d.ts +12 -0
- package/es/data-table/src/interface.d.ts +9 -0
- package/es/data-table/styles/light.d.ts +3 -0
- package/es/date-picker/src/DatePicker.d.ts +30 -0
- package/es/date-picker/src/panel/date.d.ts +6 -0
- package/es/date-picker/src/panel/daterange.d.ts +6 -0
- package/es/date-picker/src/panel/datetime.d.ts +6 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/es/date-picker/src/panel/panelYear.d.ts +24 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/es/date-picker/styles/light.d.ts +3 -0
- package/es/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/es/date-picker-v2/styles/dark.d.ts +3 -0
- package/es/date-picker-v2/styles/light.d.ts +3 -0
- package/es/editor/src/Editor.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/es/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/es/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/es/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/es/editor/src/interface.d.ts +9 -0
- package/es/editor/styles/dark.d.ts +3 -0
- package/es/editor/styles/light.d.ts +3 -0
- package/es/pagination/src/Pagination.d.ts +24 -0
- package/es/pagination/src/interface.d.ts +9 -0
- package/es/pagination/styles/light.d.ts +3 -0
- package/es/select/src/Select.d.ts +24 -0
- package/es/select/src/Select.mjs +2 -1
- package/es/select/src/interface.d.ts +10 -0
- package/es/select/src/interface.mjs +1 -0
- package/es/select/src/styles/index.cssr.mjs +4 -1
- package/es/select/styles/light.d.ts +3 -0
- package/es/tree-select/src/TreeSelect.d.ts +30 -0
- package/es/tree-select/styles/light.d.ts +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/_internal/selection/src/Selection.d.ts +27 -0
- package/lib/_internal/selection/src/Selection.js +43 -35
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.d.ts +35 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/CounterPlaceholder.js +13 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.d.ts +17 -0
- package/lib/_internal/selection/src/SelectionParts/CounterPlaceholder/counter-placeholder.types.js +19 -0
- package/lib/_internal/selection/src/styles/index.cssr.js +45 -4
- package/lib/_internal/selection/styles/light.d.ts +6 -0
- package/lib/_internal/selection/styles/light.js +3 -0
- package/lib/cascader/src/Cascader.d.ts +30 -0
- package/lib/cascader/src/CascaderMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderOption.d.ts +6 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +6 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +6 -0
- package/lib/cascader/styles/light.d.ts +3 -0
- package/lib/chat/src/Chat.d.ts +132 -0
- package/lib/chat/src/ChatListItems.d.ts +45 -0
- package/lib/chat/src/ChatMainArea.d.ts +45 -0
- package/lib/chat/src/ChatMessages.d.ts +45 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/ChatAttachmentButton.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatAttachmentButton/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/ChatEditingBlock.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatEditingBlock/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatHeader/ChatHeader.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatHeader/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/ChatLegacyInput.d.ts +36 -0
- package/lib/chat/src/ChatParts/ChatLegacyInput/interface.d.ts +9 -0
- package/lib/chat/src/ChatParts/Sidebar.d.ts +12 -0
- package/lib/chat/src/interface.d.ts +9 -0
- package/lib/chat/styles/dark.d.ts +3 -0
- package/lib/chat/styles/light.d.ts +3 -0
- package/lib/components.d.ts +453 -0
- package/lib/data-table/src/DataTable.d.ts +24 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +12 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +12 -0
- package/lib/data-table/src/TableParts/Body.d.ts +12 -0
- package/lib/data-table/src/TableParts/Header.d.ts +12 -0
- package/lib/data-table/src/interface.d.ts +9 -0
- package/lib/data-table/styles/light.d.ts +3 -0
- package/lib/date-picker/src/DatePicker.d.ts +30 -0
- package/lib/date-picker/src/panel/date.d.ts +6 -0
- package/lib/date-picker/src/panel/daterange.d.ts +6 -0
- package/lib/date-picker/src/panel/datetime.d.ts +6 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +6 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +24 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +6 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +24 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +6 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +6 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +6 -0
- package/lib/date-picker/styles/light.d.ts +3 -0
- package/lib/date-picker-v2/src/DatePickerV2.d.ts +30 -0
- package/lib/date-picker-v2/styles/dark.d.ts +3 -0
- package/lib/date-picker-v2/styles/light.d.ts +3 -0
- package/lib/editor/src/Editor.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorContent/EditorContent.d.ts +18 -0
- package/lib/editor/src/EditorParts/EditorContent/interface.d.ts +9 -0
- package/lib/editor/src/EditorParts/EditorToolbar/EditorToolbar.d.ts +21 -0
- package/lib/editor/src/EditorParts/EditorToolbar/interface.d.ts +9 -0
- package/lib/editor/src/interface.d.ts +9 -0
- package/lib/editor/styles/dark.d.ts +3 -0
- package/lib/editor/styles/light.d.ts +3 -0
- package/lib/pagination/src/Pagination.d.ts +24 -0
- package/lib/pagination/src/interface.d.ts +9 -0
- package/lib/pagination/styles/light.d.ts +3 -0
- package/lib/select/src/Select.d.ts +24 -0
- package/lib/select/src/Select.js +5 -2
- package/lib/select/src/interface.d.ts +10 -0
- package/lib/select/src/interface.js +1 -1
- package/lib/select/src/styles/index.cssr.js +3 -0
- package/lib/select/styles/light.d.ts +3 -0
- package/lib/tree-select/src/TreeSelect.d.ts +30 -0
- package/lib/tree-select/styles/light.d.ts +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- 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:
|
|
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
|
-
})])
|
|
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.
|
|
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:
|
|
28917
|
-
showArrow:
|
|
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 ?
|
|
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` },
|
|
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` },
|
|
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:
|
|
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.
|
|
154910
|
+
var version = "2.4.3";
|
|
154781
154911
|
|
|
154782
154912
|
function create({
|
|
154783
154913
|
componentPrefix = "U",
|