@uzum-tech/ui 2.4.2 → 2.4.4
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 +321 -75
- package/dist/index.mjs +321 -75
- 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 +474 -0
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/es/data-table/src/ColumnSettings/ColumnSettingsDrawer.mjs +1 -1
- package/es/data-table/src/DataTable.d.ts +24 -0
- package/es/data-table/src/DataTable.mjs +16 -13
- 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 +162 -151
- package/es/data-table/src/interface.mjs +7 -7
- package/es/data-table/src/use-column-settings.mjs +4 -1
- package/es/data-table/src/use-resizable.d.ts +2 -0
- package/es/data-table/src/use-resizable.mjs +9 -1
- 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/locales/common/ruRU.mjs +1 -1
- 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/upload/src/Upload.d.ts +21 -0
- package/es/upload/src/Upload.mjs +7 -1
- package/es/upload/src/UploadFile.d.ts +6 -0
- package/es/upload/src/UploadFile.mjs +12 -8
- package/es/upload/src/UploadFileList.mjs +3 -2
- package/es/upload/src/UploadProgress.d.ts +6 -0
- package/es/upload/src/interface.d.ts +10 -1
- package/es/upload/src/styles/index.cssr.mjs +84 -1
- package/es/upload/src/useUploadActionsRender.mjs +10 -5
- package/es/upload/styles/light.d.ts +6 -0
- package/es/upload/styles/light.mjs +4 -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 +474 -0
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.d.ts +2 -2
- package/lib/data-table/src/ColumnSettings/ColumnSettingsDrawer.js +1 -1
- package/lib/data-table/src/DataTable.d.ts +24 -0
- package/lib/data-table/src/DataTable.js +14 -13
- 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 +162 -151
- package/lib/data-table/src/interface.js +7 -7
- package/lib/data-table/src/use-column-settings.js +6 -1
- package/lib/data-table/src/use-resizable.d.ts +2 -0
- package/lib/data-table/src/use-resizable.js +9 -1
- 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/locales/common/ruRU.js +1 -1
- 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/upload/src/Upload.d.ts +21 -0
- package/lib/upload/src/Upload.js +5 -2
- package/lib/upload/src/UploadFile.d.ts +6 -0
- package/lib/upload/src/UploadFile.js +19 -11
- package/lib/upload/src/UploadFileList.js +5 -1
- package/lib/upload/src/UploadProgress.d.ts +6 -0
- package/lib/upload/src/interface.d.ts +10 -1
- package/lib/upload/src/styles/index.cssr.js +84 -1
- package/lib/upload/src/useUploadActionsRender.js +17 -7
- package/lib/upload/styles/light.d.ts +6 -0
- package/lib/upload/styles/light.js +4 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +23 -10
package/dist/index.mjs
CHANGED
|
@@ -11550,7 +11550,7 @@ const ruRu = {
|
|
|
11550
11550
|
uncheckTableAll: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0435",
|
|
11551
11551
|
confirm: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",
|
|
11552
11552
|
clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
11553
|
-
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\
|
|
11553
|
+
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11554
11554
|
columnSettingsButton: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11555
11555
|
columnSettingsSubtitle: "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u043A\u043E\u043B\u043E\u043D\u043A\u0438 \u0438 \u0438\u0437\u043C\u0435\u043D\u0438\u0442\u0435 \u0438\u0445 \u043F\u043E\u0440\u044F\u0434\u043E\u043A",
|
|
11556
11556
|
columnSettingsSelectAll: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",
|
|
@@ -27921,8 +27921,11 @@ function self$1s(vars) {
|
|
|
27921
27921
|
caretColorSecondary: elementsPrimary,
|
|
27922
27922
|
filterCounterTextColor: textSecondary,
|
|
27923
27923
|
filterCounterTextColorDisabled: textSecondary,
|
|
27924
|
+
filterCounterGap: "8px",
|
|
27925
|
+
filterSuffixWrapperGap: "4px",
|
|
27924
27926
|
arrowColorSecondary: elementsSecondary,
|
|
27925
27927
|
clearColorSecondary: elementsSecondary,
|
|
27928
|
+
loadingColorSecondary: elementsSecondary,
|
|
27926
27929
|
colorSecondary: elementsPrimary,
|
|
27927
27930
|
textColorSecondary: textQuaternary,
|
|
27928
27931
|
borderSecondary: "none",
|
|
@@ -27975,6 +27978,44 @@ cB("base-selection", [cM("rtl", `
|
|
|
27975
27978
|
left: 10px;
|
|
27976
27979
|
`)])]);
|
|
27977
27980
|
|
|
27981
|
+
const counterPlaceholderProps = {
|
|
27982
|
+
clsPrefix: {
|
|
27983
|
+
type: String,
|
|
27984
|
+
required: true
|
|
27985
|
+
},
|
|
27986
|
+
placeholder: {
|
|
27987
|
+
type: String,
|
|
27988
|
+
default: ""
|
|
27989
|
+
},
|
|
27990
|
+
placeholderHidden: {
|
|
27991
|
+
type: Boolean
|
|
27992
|
+
},
|
|
27993
|
+
input: {
|
|
27994
|
+
type: Object
|
|
27995
|
+
}
|
|
27996
|
+
};
|
|
27997
|
+
|
|
27998
|
+
var CounterPlaceholder = defineComponent({
|
|
27999
|
+
name: "CounterPlaceholder",
|
|
28000
|
+
props: counterPlaceholderProps,
|
|
28001
|
+
render() {
|
|
28002
|
+
return /* @__PURE__ */ h$1(
|
|
28003
|
+
"div",
|
|
28004
|
+
{
|
|
28005
|
+
class: `${this.clsPrefix}-base-selection-placeholder ${this.clsPrefix}-base-selection__counter-placeholder`
|
|
28006
|
+
},
|
|
28007
|
+
/* @__PURE__ */ h$1(
|
|
28008
|
+
"span",
|
|
28009
|
+
{
|
|
28010
|
+
style: this.placeholderHidden ? { visibility: "hidden" } : void 0
|
|
28011
|
+
},
|
|
28012
|
+
this.placeholder
|
|
28013
|
+
),
|
|
28014
|
+
this.input
|
|
28015
|
+
);
|
|
28016
|
+
}
|
|
28017
|
+
});
|
|
28018
|
+
|
|
27978
28019
|
function generateSecondaryStates(state) {
|
|
27979
28020
|
return [cB("base-selection-input", `
|
|
27980
28021
|
color: var(--u-text-color${state}-secondary);
|
|
@@ -27988,6 +28029,8 @@ function generateSecondaryStates(state) {
|
|
|
27988
28029
|
`)]), cB("base-selection-tags", `
|
|
27989
28030
|
background-color: var(--u-color${state}-secondary);
|
|
27990
28031
|
color: var(--u-text-color${state}-secondary);
|
|
28032
|
+
`), cB("base-selection-placeholder", `
|
|
28033
|
+
color: var(--u-text-color${state}-secondary);
|
|
27991
28034
|
`), cE("border,state-border", `
|
|
27992
28035
|
border: var(--u-border${state}-secondary);
|
|
27993
28036
|
`), cB("base-clear", [cE("clear", `
|
|
@@ -28035,12 +28078,11 @@ var style$1H = c$1([cB("base-selection", `
|
|
|
28035
28078
|
top: 50%;
|
|
28036
28079
|
transform: translateY(-50%);
|
|
28037
28080
|
right: var(--u-padding-right);
|
|
28081
|
+
gap: var(--u-suffix-wrapper-gap);
|
|
28038
28082
|
`, [cB("base-clear", `
|
|
28039
28083
|
font-size: var(--u-clear-size);
|
|
28040
28084
|
`)]), cE("filter-counter", `
|
|
28041
|
-
width:
|
|
28042
|
-
margin-left: 6px;
|
|
28043
|
-
padding-left: 2px;
|
|
28085
|
+
width: 13px;
|
|
28044
28086
|
text-align: center;
|
|
28045
28087
|
color: var(--u-filter-counter-text-color);
|
|
28046
28088
|
`), cB("base-suffix", `
|
|
@@ -28130,6 +28172,8 @@ var style$1H = c$1([cB("base-selection", `
|
|
|
28130
28172
|
color: var(--u-text-color);
|
|
28131
28173
|
`)]), cNotM("disabled", [cM("secondary", [cB("base-selection-placeholder", `
|
|
28132
28174
|
color: var(--u-text-color);
|
|
28175
|
+
`)]), cM("secondary-selected", [cB("base-selection-placeholder", `
|
|
28176
|
+
color: var(--u-text-color-secondary);
|
|
28133
28177
|
`)]), c$1("&:hover", [cE("state-border", `
|
|
28134
28178
|
box-shadow: var(--u-box-shadow-hover);
|
|
28135
28179
|
border: var(--u-border-hover);
|
|
@@ -28219,6 +28263,8 @@ var style$1H = c$1([cB("base-selection", `
|
|
|
28219
28263
|
caret-color: var(--u-caret-color-secondary);
|
|
28220
28264
|
`), cB("base-selection-tags", `
|
|
28221
28265
|
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 37px + var(--u-clear-size));
|
|
28266
|
+
`), cB("base-loading", `
|
|
28267
|
+
color: var(--u-loading-color-secondary);
|
|
28222
28268
|
`), 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", `
|
|
28223
28269
|
box-shadow: var(--u-box-shadow-active-${status});
|
|
28224
28270
|
border: var(--u-border-active-${status});
|
|
@@ -28237,7 +28283,42 @@ var style$1H = c$1([cB("base-selection", `
|
|
|
28237
28283
|
zIndex: 2,
|
|
28238
28284
|
borderRadius: "var(--u-border-radius)",
|
|
28239
28285
|
cursor: "wait"
|
|
28240
|
-
})])
|
|
28286
|
+
})]), cM("auto-width", [cB("base-selection-label, base-selection-tags", `
|
|
28287
|
+
width: 0;
|
|
28288
|
+
min-width: 100%;
|
|
28289
|
+
`), cE("sizer", `
|
|
28290
|
+
position: static;
|
|
28291
|
+
display: block;
|
|
28292
|
+
height: 0;
|
|
28293
|
+
padding-top: 0;
|
|
28294
|
+
padding-bottom: 0;
|
|
28295
|
+
overflow: hidden;
|
|
28296
|
+
visibility: hidden;
|
|
28297
|
+
`, [cB("base-account-option", [cE("wrap", `
|
|
28298
|
+
width: auto;
|
|
28299
|
+
flex-grow: 0;
|
|
28300
|
+
`)])]), cNotM("secondary-selected", [cB("base-selection-placeholder", `
|
|
28301
|
+
padding-right: calc(var(--u-padding-right) + var(--u-arrow-size) + 8px);
|
|
28302
|
+
`)]), cM("counter-selected", [cB("base-selection-tags", "width: auto;")])]), cM("counter-selected", [cB("base-selection-tags", `
|
|
28303
|
+
flex-wrap: nowrap;
|
|
28304
|
+
gap: var(--u-filter-counter-gap);
|
|
28305
|
+
padding-right: var(--u-padding-right);
|
|
28306
|
+
`), cE("counter-placeholder", `
|
|
28307
|
+
position: relative;
|
|
28308
|
+
flex: 1 1 auto;
|
|
28309
|
+
min-width: 0;
|
|
28310
|
+
white-space: nowrap;
|
|
28311
|
+
overflow: hidden;
|
|
28312
|
+
text-overflow: ellipsis;
|
|
28313
|
+
`, [cB("base-selection-input-tag", `
|
|
28314
|
+
position: absolute;
|
|
28315
|
+
top: 0;
|
|
28316
|
+
left: 0;
|
|
28317
|
+
`)]), cE("suffix-wrapper", `
|
|
28318
|
+
position: static;
|
|
28319
|
+
transform: none;
|
|
28320
|
+
flex-shrink: 0;
|
|
28321
|
+
`)])]), cB("base-selection-popover", `
|
|
28241
28322
|
margin-bottom: -3px;
|
|
28242
28323
|
display: flex;
|
|
28243
28324
|
flex-wrap: wrap;
|
|
@@ -28328,6 +28409,7 @@ var UInternalSelection = defineComponent({
|
|
|
28328
28409
|
round: Boolean,
|
|
28329
28410
|
counter: Boolean,
|
|
28330
28411
|
secondary: Boolean,
|
|
28412
|
+
autoWidth: Boolean,
|
|
28331
28413
|
account: Boolean
|
|
28332
28414
|
},
|
|
28333
28415
|
setup(props) {
|
|
@@ -28674,6 +28756,7 @@ var UInternalSelection = defineComponent({
|
|
|
28674
28756
|
// secondary
|
|
28675
28757
|
arrowColorSecondary,
|
|
28676
28758
|
clearColorSecondary,
|
|
28759
|
+
loadingColorSecondary,
|
|
28677
28760
|
colorSecondary,
|
|
28678
28761
|
textColorSecondary,
|
|
28679
28762
|
borderSecondary,
|
|
@@ -28689,6 +28772,8 @@ var UInternalSelection = defineComponent({
|
|
|
28689
28772
|
borderHoverSecondary,
|
|
28690
28773
|
filterCounterTextColor,
|
|
28691
28774
|
filterCounterTextColorDisabled,
|
|
28775
|
+
filterCounterGap,
|
|
28776
|
+
filterSuffixWrapperGap,
|
|
28692
28777
|
caretColorSecondary,
|
|
28693
28778
|
arrowColorActiveSecondary,
|
|
28694
28779
|
clearColorActiveSecondary,
|
|
@@ -28783,8 +28868,11 @@ var UInternalSelection = defineComponent({
|
|
|
28783
28868
|
"--u-caret-color-secondary": caretColorSecondary,
|
|
28784
28869
|
"--u-filter-counter-text-color": filterCounterTextColor,
|
|
28785
28870
|
"--u-filter-counter-text-color-disabled": filterCounterTextColorDisabled,
|
|
28871
|
+
"--u-filter-counter-gap": filterCounterGap,
|
|
28872
|
+
"--u-suffix-wrapper-gap": filterSuffixWrapperGap,
|
|
28786
28873
|
"--u-arrow-color-secondary": arrowColorSecondary,
|
|
28787
28874
|
"--u-clear-color-secondary": clearColorSecondary,
|
|
28875
|
+
"--u-loading-color-secondary": loadingColorSecondary,
|
|
28788
28876
|
"--u-color-secondary": colorSecondary,
|
|
28789
28877
|
"--u-text-color-secondary": textColorSecondary,
|
|
28790
28878
|
"--u-border-secondary": borderSecondary,
|
|
@@ -28896,7 +28984,16 @@ var UInternalSelection = defineComponent({
|
|
|
28896
28984
|
const maxTagCountNumeric = typeof maxTagCount === "number";
|
|
28897
28985
|
const useMaxTagCount = maxTagCountResponsive || maxTagCountNumeric;
|
|
28898
28986
|
const filterCounterEl = this.filterCounterVisible && !this.disabled ? /* @__PURE__ */ h$1("div", { class: [`${clsPrefix}-base-selection__filter-counter`] }, this.filterCounterLength) : null;
|
|
28899
|
-
const clear = this.
|
|
28987
|
+
const clear = this.filterCounterVisible && this.loading ? /* @__PURE__ */ h$1(
|
|
28988
|
+
UBaseLoading,
|
|
28989
|
+
{
|
|
28990
|
+
clsPrefix,
|
|
28991
|
+
class: `${clsPrefix}-base-suffix`,
|
|
28992
|
+
strokeWidth: 24,
|
|
28993
|
+
scale: 0.85,
|
|
28994
|
+
show: true
|
|
28995
|
+
}
|
|
28996
|
+
) : this.filterCounterClearable ? /* @__PURE__ */ h$1(
|
|
28900
28997
|
UBaseClear,
|
|
28901
28998
|
{
|
|
28902
28999
|
clsPrefix,
|
|
@@ -28904,22 +29001,35 @@ var UInternalSelection = defineComponent({
|
|
|
28904
29001
|
onClear: this.handleClear
|
|
28905
29002
|
}
|
|
28906
29003
|
) : null;
|
|
29004
|
+
const suffixShowArrow = this.showArrow || this.counter && this.filterCounterLength === 0;
|
|
29005
|
+
const suffixLoading = this.loading && !this.filterCounterVisible;
|
|
28907
29006
|
const suffix = /* @__PURE__ */ h$1(Wrapper, null, {
|
|
28908
|
-
default: () => /* @__PURE__ */ h$1("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, /* @__PURE__ */ h$1(
|
|
29007
|
+
default: () => /* @__PURE__ */ h$1("div", { class: [`${clsPrefix}-base-selection__suffix-wrapper`] }, suffixShowArrow ? /* @__PURE__ */ h$1(
|
|
28909
29008
|
Suffix,
|
|
28910
29009
|
{
|
|
28911
29010
|
clsPrefix,
|
|
28912
|
-
loading:
|
|
28913
|
-
showArrow:
|
|
29011
|
+
loading: suffixLoading,
|
|
29012
|
+
showArrow: suffixShowArrow,
|
|
28914
29013
|
showClear: this.showSuffixClear,
|
|
28915
29014
|
onClear: this.handleClear
|
|
28916
29015
|
},
|
|
28917
29016
|
{
|
|
28918
29017
|
default: () => [this.$slots.arrow?.()]
|
|
28919
29018
|
}
|
|
28920
|
-
), filterCounterEl, clear)
|
|
29019
|
+
) : null, filterCounterEl, clear)
|
|
28921
29020
|
});
|
|
28922
29021
|
let body;
|
|
29022
|
+
const renderVisibleLabel = () => {
|
|
29023
|
+
if (renderTag) {
|
|
29024
|
+
return renderTag({
|
|
29025
|
+
option: this.selectedOption,
|
|
29026
|
+
handleClose: () => {
|
|
29027
|
+
}
|
|
29028
|
+
});
|
|
29029
|
+
}
|
|
29030
|
+
const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
|
|
29031
|
+
return account ? /* @__PURE__ */ h$1(UBaseAccountOption, { ...this.selectedOption, label }) : label;
|
|
29032
|
+
};
|
|
28923
29033
|
if (multiple) {
|
|
28924
29034
|
const { labelField } = this;
|
|
28925
29035
|
const createTag = (option) => {
|
|
@@ -29034,7 +29144,7 @@ var UInternalSelection = defineComponent({
|
|
|
29034
29144
|
);
|
|
29035
29145
|
}
|
|
29036
29146
|
}
|
|
29037
|
-
const tags = this.filterCounterVisible ?
|
|
29147
|
+
const tags = this.filterCounterVisible ? null : maxTagCountResponsive ? filterable ? /* @__PURE__ */ h$1(
|
|
29038
29148
|
VOverflow,
|
|
29039
29149
|
{
|
|
29040
29150
|
ref: "overflowRef",
|
|
@@ -29081,7 +29191,7 @@ var UInternalSelection = defineComponent({
|
|
|
29081
29191
|
themeOverrides: this.mergedTheme.peerOverrides.Popover,
|
|
29082
29192
|
...ellipsisTagPopoverProps
|
|
29083
29193
|
} : null;
|
|
29084
|
-
const showPlaceholder = this.selected ? false : this.active ? !this.pattern && !this.isComposing : true;
|
|
29194
|
+
const showPlaceholder = this.selected && !this.filterCounterVisible ? false : this.active ? !this.pattern && !this.isComposing : true;
|
|
29085
29195
|
const placeholder = showPlaceholder ? /* @__PURE__ */ h$1(
|
|
29086
29196
|
"div",
|
|
29087
29197
|
{
|
|
@@ -29089,14 +29199,24 @@ var UInternalSelection = defineComponent({
|
|
|
29089
29199
|
},
|
|
29090
29200
|
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection-placeholder__inner` }, this.placeholder)
|
|
29091
29201
|
) : null;
|
|
29202
|
+
const counterPlaceholderHidden = !!(this.pattern || this.isComposing);
|
|
29203
|
+
const counterPlaceholder = this.filterCounterVisible ? /* @__PURE__ */ h$1(
|
|
29204
|
+
CounterPlaceholder,
|
|
29205
|
+
{
|
|
29206
|
+
clsPrefix,
|
|
29207
|
+
placeholder: this.placeholder,
|
|
29208
|
+
"placeholder-hidden": counterPlaceholderHidden,
|
|
29209
|
+
input
|
|
29210
|
+
}
|
|
29211
|
+
) : null;
|
|
29092
29212
|
const popoverTrigger = filterable ? /* @__PURE__ */ h$1(
|
|
29093
29213
|
"div",
|
|
29094
29214
|
{
|
|
29095
29215
|
ref: "patternInputWrapperRef",
|
|
29096
29216
|
class: `${clsPrefix}-base-selection-tags`
|
|
29097
29217
|
},
|
|
29098
|
-
tags,
|
|
29099
|
-
maxTagCountResponsive ? null : input,
|
|
29218
|
+
counterPlaceholder ?? tags,
|
|
29219
|
+
counterPlaceholder || maxTagCountResponsive ? null : input,
|
|
29100
29220
|
suffix
|
|
29101
29221
|
) : /* @__PURE__ */ h$1(
|
|
29102
29222
|
"div",
|
|
@@ -29105,7 +29225,7 @@ var UInternalSelection = defineComponent({
|
|
|
29105
29225
|
class: `${clsPrefix}-base-selection-tags`,
|
|
29106
29226
|
tabindex: disabled ? void 0 : 0
|
|
29107
29227
|
},
|
|
29108
|
-
tags,
|
|
29228
|
+
counterPlaceholder ?? tags,
|
|
29109
29229
|
suffix
|
|
29110
29230
|
);
|
|
29111
29231
|
body = /* @__PURE__ */ h$1(Fragment$1, null, useMaxTagCount ? /* @__PURE__ */ h$1(
|
|
@@ -29119,13 +29239,8 @@ var UInternalSelection = defineComponent({
|
|
|
29119
29239
|
trigger: () => popoverTrigger,
|
|
29120
29240
|
default: renderPopover
|
|
29121
29241
|
}
|
|
29122
|
-
) : popoverTrigger, placeholder);
|
|
29242
|
+
) : popoverTrigger, counterPlaceholder ? null : placeholder);
|
|
29123
29243
|
} else {
|
|
29124
|
-
let children;
|
|
29125
|
-
if (this.label !== void 0) {
|
|
29126
|
-
const label = renderLabel ? renderLabel(this.selectedOption, true) : render$2(this.label, this.selectedOption, true);
|
|
29127
|
-
children = account && /* @__PURE__ */ h$1(UBaseAccountOption, { ...this.selectedOption, label }) || label;
|
|
29128
|
-
}
|
|
29129
29244
|
if (filterable) {
|
|
29130
29245
|
const hasInput = this.pattern || this.isComposing;
|
|
29131
29246
|
const isAccountFocused = this.patternInputFocused && this.account;
|
|
@@ -29162,11 +29277,7 @@ var UInternalSelection = defineComponent({
|
|
|
29162
29277
|
class: `${clsPrefix}-base-selection-label__render-label ${clsPrefix}-base-selection-overlay`,
|
|
29163
29278
|
key: "input"
|
|
29164
29279
|
},
|
|
29165
|
-
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` },
|
|
29166
|
-
option: this.selectedOption,
|
|
29167
|
-
handleClose: () => {
|
|
29168
|
-
}
|
|
29169
|
-
}) : children)
|
|
29280
|
+
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection-overlay__wrapper` }, renderVisibleLabel())
|
|
29170
29281
|
) : null,
|
|
29171
29282
|
showPlaceholder ? /* @__PURE__ */ h$1(
|
|
29172
29283
|
"div",
|
|
@@ -29193,11 +29304,7 @@ var UInternalSelection = defineComponent({
|
|
|
29193
29304
|
title: getTitleAttribute(this.label),
|
|
29194
29305
|
key: "input"
|
|
29195
29306
|
},
|
|
29196
|
-
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection-input__content` },
|
|
29197
|
-
option: this.selectedOption,
|
|
29198
|
-
handleClose: () => {
|
|
29199
|
-
}
|
|
29200
|
-
}) : children)
|
|
29307
|
+
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection-input__content` }, renderVisibleLabel())
|
|
29201
29308
|
) : /* @__PURE__ */ h$1(
|
|
29202
29309
|
"div",
|
|
29203
29310
|
{
|
|
@@ -29222,10 +29329,12 @@ var UInternalSelection = defineComponent({
|
|
|
29222
29329
|
[`${clsPrefix}-base-selection--active`]: this.active,
|
|
29223
29330
|
[`${clsPrefix}-base-selection--secondary`]: this.secondary,
|
|
29224
29331
|
[`${clsPrefix}-base-selection--secondary-selected`]: this.secondary && this.selected,
|
|
29332
|
+
[`${clsPrefix}-base-selection--counter-selected`]: this.filterCounterVisible,
|
|
29225
29333
|
[`${clsPrefix}-base-selection--selected`]: this.selected || this.active && this.pattern,
|
|
29226
29334
|
[`${clsPrefix}-base-selection--disabled`]: this.disabled,
|
|
29227
29335
|
[`${clsPrefix}-base-selection--multiple`]: this.multiple,
|
|
29228
29336
|
[`${clsPrefix}-base-selection--filled`]: this.filled,
|
|
29337
|
+
[`${clsPrefix}-base-selection--auto-width`]: this.autoWidth,
|
|
29229
29338
|
[`${clsPrefix}-base-selection--skeleton`]: this.loadingSkeleton,
|
|
29230
29339
|
// focus is not controlled by selection itself since it always need
|
|
29231
29340
|
// to be managed together with menu. provide :focus style will cause
|
|
@@ -29254,6 +29363,19 @@ var UInternalSelection = defineComponent({
|
|
|
29254
29363
|
}
|
|
29255
29364
|
) : [
|
|
29256
29365
|
body,
|
|
29366
|
+
this.autoWidth ? /* @__PURE__ */ h$1(
|
|
29367
|
+
"div",
|
|
29368
|
+
{
|
|
29369
|
+
"aria-hidden": "true",
|
|
29370
|
+
class: [
|
|
29371
|
+
`${clsPrefix}-base-selection-overlay`,
|
|
29372
|
+
`${clsPrefix}-base-selection-placeholder`,
|
|
29373
|
+
`${clsPrefix}-base-selection__sizer`
|
|
29374
|
+
]
|
|
29375
|
+
},
|
|
29376
|
+
/* @__PURE__ */ h$1("div", null, this.placeholder),
|
|
29377
|
+
!this.multiple && this.selectedOption ? /* @__PURE__ */ h$1("div", null, renderVisibleLabel()) : null
|
|
29378
|
+
) : null,
|
|
29257
29379
|
bordered ? /* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection__border` }) : null,
|
|
29258
29380
|
bordered ? /* @__PURE__ */ h$1("div", { class: `${clsPrefix}-base-selection__state-border` }) : null
|
|
29259
29381
|
]
|
|
@@ -52219,6 +52341,7 @@ function self$13(vars) {
|
|
|
52219
52341
|
fontBodyMedium,
|
|
52220
52342
|
lineHeightBodyMedium,
|
|
52221
52343
|
borderRadiusLarge,
|
|
52344
|
+
borderRadiusSmall,
|
|
52222
52345
|
containerSecondary,
|
|
52223
52346
|
brandPrimary300,
|
|
52224
52347
|
brandPrimary500
|
|
@@ -52251,6 +52374,9 @@ function self$13(vars) {
|
|
|
52251
52374
|
widthSmall: "140px",
|
|
52252
52375
|
widthMedium: "auto",
|
|
52253
52376
|
widthLarge: "auto",
|
|
52377
|
+
previewCardWidth: "80px",
|
|
52378
|
+
previewCardHeight: "72px",
|
|
52379
|
+
previewCardBorderRadius: borderRadiusSmall,
|
|
52254
52380
|
containerSecondary,
|
|
52255
52381
|
brandPrimary300,
|
|
52256
52382
|
elementsQuaternary
|
|
@@ -52392,6 +52518,10 @@ var style$1k = c$1([cB("upload", "width: var(--u-upload-width)", [cM("dragger-in
|
|
|
52392
52518
|
grid-template-columns: repeat(auto-fill, 238px);
|
|
52393
52519
|
grid-gap: 8px;
|
|
52394
52520
|
margin-top: 0;
|
|
52521
|
+
`), cM("preview-card-grid", `
|
|
52522
|
+
display: grid;
|
|
52523
|
+
grid-template-columns: repeat(auto-fill, var(--u-upload-preview-card-width));
|
|
52524
|
+
grid-gap: 8px;
|
|
52395
52525
|
`), cB("upload-file", `
|
|
52396
52526
|
display: block;
|
|
52397
52527
|
box-sizing: border-box;
|
|
@@ -52410,6 +52540,11 @@ var style$1k = c$1([cB("upload", "width: var(--u-upload-width)", [cM("dragger-in
|
|
|
52410
52540
|
`), cE("action", `
|
|
52411
52541
|
opacity: 1;
|
|
52412
52542
|
z-index: 10;
|
|
52543
|
+
`)])]), cM("preview-card-type", [cB("upload-file-info", [cE("preview", `
|
|
52544
|
+
filter: blur(3px);
|
|
52545
|
+
`), cE("action", `
|
|
52546
|
+
opacity: 1;
|
|
52547
|
+
z-index: 10;
|
|
52413
52548
|
`)])])]), cM("text-type", `
|
|
52414
52549
|
border: var(--u-item-border-image-card);
|
|
52415
52550
|
margin-bottom: 12px;
|
|
@@ -52494,6 +52629,8 @@ var style$1k = c$1([cB("upload", "width: var(--u-upload-width)", [cM("dragger-in
|
|
|
52494
52629
|
background-color: var(--u-item-color-hover-error);
|
|
52495
52630
|
`), cB("upload-file-info", [cE("name", "color: var(--u-item-text-color-error);"), cE("thumbnail", "color: var(--u-item-text-color-error);")]), cM("image-card-type", `
|
|
52496
52631
|
border: var(--u-item-border-image-card-error);
|
|
52632
|
+
`), cM("preview-card-type", `
|
|
52633
|
+
border: var(--u-item-border-image-card-error);
|
|
52497
52634
|
`)]), cM("with-url", `
|
|
52498
52635
|
cursor: pointer;
|
|
52499
52636
|
`, [cB("upload-file-info", [cE("name", `
|
|
@@ -52650,7 +52787,79 @@ var style$1k = c$1([cB("upload", "width: var(--u-upload-width)", [cM("dragger-in
|
|
|
52650
52787
|
`), c$1(":nth-child(3)", `
|
|
52651
52788
|
font-size: 12px;
|
|
52652
52789
|
color: var(--u-item-text-color-success);
|
|
52653
|
-
`)])])
|
|
52790
|
+
`)])]), cM("preview-card-type", `
|
|
52791
|
+
position: relative;
|
|
52792
|
+
width: var(--u-upload-preview-card-width);
|
|
52793
|
+
height: var(--u-upload-preview-card-height);
|
|
52794
|
+
border: var(--u-item-border-image-card);
|
|
52795
|
+
border-radius: var(--u-upload-preview-card-border-radius);
|
|
52796
|
+
background-color: var(--u-upload-info-bg-color);
|
|
52797
|
+
overflow: hidden;
|
|
52798
|
+
transition: border-color .3s var(--u-bezier), background-color .3s var(--u-bezier);
|
|
52799
|
+
`, [cB("upload-file-overlay", `
|
|
52800
|
+
border-radius: inherit;
|
|
52801
|
+
`), cB("upload-file-info", `
|
|
52802
|
+
padding-top: 0;
|
|
52803
|
+
padding-bottom: 0;
|
|
52804
|
+
width: 100%;
|
|
52805
|
+
height: 100%;
|
|
52806
|
+
justify-content: center;
|
|
52807
|
+
`, [cE("thumbnail", `
|
|
52808
|
+
width: 100%;
|
|
52809
|
+
height: 100%;
|
|
52810
|
+
cursor: pointer;
|
|
52811
|
+
`, [cM("icon", `
|
|
52812
|
+
display: flex;
|
|
52813
|
+
align-items: flex-start;
|
|
52814
|
+
justify-content: center;
|
|
52815
|
+
background-color: transparent;
|
|
52816
|
+
border-radius: 0;
|
|
52817
|
+
margin-right: 0;
|
|
52818
|
+
width: 100%;
|
|
52819
|
+
height: 100%;
|
|
52820
|
+
`)]), cE("preview", `
|
|
52821
|
+
flex-shrink: 0;
|
|
52822
|
+
width: 56px;
|
|
52823
|
+
height: 67px;
|
|
52824
|
+
margin-top: 16px;
|
|
52825
|
+
border-radius: 7px;
|
|
52826
|
+
transition: filter .2s var(--u-bezier);
|
|
52827
|
+
`, [cB("upload-file-info__preview--ext", `
|
|
52828
|
+
font-size: 8px;
|
|
52829
|
+
line-height: 10px;
|
|
52830
|
+
font-weight: 700;
|
|
52831
|
+
top: 6px;
|
|
52832
|
+
left: 6px;
|
|
52833
|
+
`), cB("upload-file-info__preview--content", `
|
|
52834
|
+
top: 29px;
|
|
52835
|
+
left: 6px;
|
|
52836
|
+
width: 43px;
|
|
52837
|
+
height: 3px;
|
|
52838
|
+
border-radius: 2px;
|
|
52839
|
+
`, [c$1("&::before", `
|
|
52840
|
+
top: -6px;
|
|
52841
|
+
width: 43px;
|
|
52842
|
+
height: 3px;
|
|
52843
|
+
border-radius: 2px;
|
|
52844
|
+
`), c$1("&::after", `
|
|
52845
|
+
top: 6px;
|
|
52846
|
+
width: 24px;
|
|
52847
|
+
height: 3px;
|
|
52848
|
+
border-radius: 2px;
|
|
52849
|
+
`)])]), cE("action", `
|
|
52850
|
+
padding-top: 0;
|
|
52851
|
+
padding-bottom: 0;
|
|
52852
|
+
z-index: 2;
|
|
52853
|
+
`, [cB("button", `
|
|
52854
|
+
width: 24px;
|
|
52855
|
+
height: 24px;
|
|
52856
|
+
min-width: 24px;
|
|
52857
|
+
padding: 0;
|
|
52858
|
+
border-radius: 50%;
|
|
52859
|
+
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.08);
|
|
52860
|
+
`, [cB("base-icon", `
|
|
52861
|
+
font-size: 16px;
|
|
52862
|
+
`)])])])])])]), cB("upload-file-input", `
|
|
52654
52863
|
display: block;
|
|
52655
52864
|
width: 0;
|
|
52656
52865
|
height: 0;
|
|
@@ -57346,8 +57555,13 @@ function useUploadActionsRender(options) {
|
|
|
57346
57555
|
return i === -1 || i === name.length - 1 ? "" : name.slice(i + 1);
|
|
57347
57556
|
};
|
|
57348
57557
|
const isImageType = ["image", "image-card"].includes(listType);
|
|
57558
|
+
const isPreviewCardType = listType === "preview-card";
|
|
57349
57559
|
const fileExt = getExt(file.name);
|
|
57350
57560
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
57561
|
+
const showRetry = showRetryButton && !disabled;
|
|
57562
|
+
const showDownload = showDownloadButton && !isPreviewCardType;
|
|
57563
|
+
const showRemoveOrCancel = (showRemoveButton || showCancelButton) && !disabled && !(isPreviewCardType && showRetry);
|
|
57564
|
+
const showPreview = showPreviewButton && !(isPreviewCardType && (showRetry || showRemoveOrCancel));
|
|
57351
57565
|
const fallbackIcon = h$1(
|
|
57352
57566
|
"div",
|
|
57353
57567
|
{
|
|
@@ -57384,11 +57598,11 @@ function useUploadActionsRender(options) {
|
|
|
57384
57598
|
{
|
|
57385
57599
|
class: [
|
|
57386
57600
|
`${clsPrefix}-upload-file-info__action`,
|
|
57387
|
-
`${clsPrefix}-upload-file--${isImageType ? "image-card" : "text"}-type`
|
|
57601
|
+
`${clsPrefix}-upload-file--${isImageType ? "image-card" : isPreviewCardType ? "preview-card" : "text"}-type`
|
|
57388
57602
|
]
|
|
57389
57603
|
},
|
|
57390
57604
|
[
|
|
57391
|
-
|
|
57605
|
+
showPreview && h$1(
|
|
57392
57606
|
Button,
|
|
57393
57607
|
{
|
|
57394
57608
|
key: "preview",
|
|
@@ -57403,7 +57617,7 @@ function useUploadActionsRender(options) {
|
|
|
57403
57617
|
icon: () => h$1(UBaseIcon, { clsPrefix }, { default: () => h$1(EyeIcon) })
|
|
57404
57618
|
}
|
|
57405
57619
|
),
|
|
57406
|
-
|
|
57620
|
+
showRemoveOrCancel && h$1(
|
|
57407
57621
|
Button,
|
|
57408
57622
|
{
|
|
57409
57623
|
key: "cancelOrTrash",
|
|
@@ -57432,7 +57646,7 @@ function useUploadActionsRender(options) {
|
|
|
57432
57646
|
)
|
|
57433
57647
|
}
|
|
57434
57648
|
),
|
|
57435
|
-
|
|
57649
|
+
showRetry && h$1(
|
|
57436
57650
|
Button,
|
|
57437
57651
|
{
|
|
57438
57652
|
key: "retry",
|
|
@@ -57447,7 +57661,7 @@ function useUploadActionsRender(options) {
|
|
|
57447
57661
|
icon: () => h$1(UBaseIcon, { clsPrefix }, { default: () => h$1(RetryIcon) })
|
|
57448
57662
|
}
|
|
57449
57663
|
),
|
|
57450
|
-
|
|
57664
|
+
showDownload && h$1(
|
|
57451
57665
|
Button,
|
|
57452
57666
|
{
|
|
57453
57667
|
key: "download",
|
|
@@ -57470,7 +57684,8 @@ function useUploadActionsRender(options) {
|
|
|
57470
57684
|
const buttonThemeOverrides = {
|
|
57471
57685
|
paddingMedium: "0 3px",
|
|
57472
57686
|
heightMedium: "24px",
|
|
57473
|
-
iconSizeMedium: "18px"
|
|
57687
|
+
iconSizeMedium: "18px",
|
|
57688
|
+
textColor: "#101010"
|
|
57474
57689
|
};
|
|
57475
57690
|
var UUploadFile = defineComponent({
|
|
57476
57691
|
name: "UploadFile",
|
|
@@ -57546,7 +57761,7 @@ var UUploadFile = defineComponent({
|
|
|
57546
57761
|
} = props;
|
|
57547
57762
|
if (!["finished"].includes(status))
|
|
57548
57763
|
return false;
|
|
57549
|
-
if (listType === "preview-list") {
|
|
57764
|
+
if (listType === "preview-list" || listType === "preview-card") {
|
|
57550
57765
|
return UUpload.isFilePreviewable(props.file);
|
|
57551
57766
|
}
|
|
57552
57767
|
return !!mergedThumbnailUrlRef.value && listType === "image-card";
|
|
@@ -57628,7 +57843,7 @@ var UUploadFile = defineComponent({
|
|
|
57628
57843
|
} = UUpload;
|
|
57629
57844
|
if (onPreview) {
|
|
57630
57845
|
onPreview(props.file);
|
|
57631
|
-
} else if (props.listType === "preview-list") {
|
|
57846
|
+
} else if (props.listType === "preview-list" || props.listType === "preview-card") {
|
|
57632
57847
|
UUpload.openFilePreview(props.file);
|
|
57633
57848
|
} else if (props.listType === "image-card") {
|
|
57634
57849
|
const { value } = imageRef;
|
|
@@ -57702,10 +57917,11 @@ var UUploadFile = defineComponent({
|
|
|
57702
57917
|
_USpin,
|
|
57703
57918
|
{
|
|
57704
57919
|
color: "tertiary",
|
|
57705
|
-
|
|
57920
|
+
size: listType === "preview-card" ? 24 : void 0,
|
|
57921
|
+
description: listType === "preview-card" ? void 0 : this.localeRef.uploading,
|
|
57706
57922
|
show: this.showProgress,
|
|
57707
57923
|
class: [
|
|
57708
|
-
!this.vertical && !imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-loader--default`
|
|
57924
|
+
!this.vertical && !imageCardTypes.includes(listType) && listType !== "preview-card" && `${clsPrefix}-upload-file-loader--default`
|
|
57709
57925
|
]
|
|
57710
57926
|
},
|
|
57711
57927
|
{
|
|
@@ -57716,8 +57932,9 @@ var UUploadFile = defineComponent({
|
|
|
57716
57932
|
`${clsPrefix}-upload-file`,
|
|
57717
57933
|
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
57718
57934
|
file.url && file.status !== "error" && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`,
|
|
57719
|
-
`${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
57720
|
-
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type
|
|
57935
|
+
listType !== "preview-card" && `${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
57936
|
+
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type`,
|
|
57937
|
+
listType === "preview-card" && `${clsPrefix}-upload-file--preview-card-type`
|
|
57721
57938
|
]
|
|
57722
57939
|
},
|
|
57723
57940
|
/* @__PURE__ */ h$1(
|
|
@@ -57728,8 +57945,8 @@ var UUploadFile = defineComponent({
|
|
|
57728
57945
|
imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-info--vertical`
|
|
57729
57946
|
]
|
|
57730
57947
|
},
|
|
57731
|
-
icon,
|
|
57732
|
-
/* @__PURE__ */ h$1("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ h$1(Fragment$1, null, /* @__PURE__ */ h$1("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ h$1("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
57948
|
+
listType === "preview-card" ? cloneVNode(icon, { onClick: this.handlePreviewClick }) : icon,
|
|
57949
|
+
listType !== "preview-card" && /* @__PURE__ */ h$1("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ h$1(Fragment$1, null, /* @__PURE__ */ h$1("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ h$1("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
57733
57950
|
actionsNode
|
|
57734
57951
|
),
|
|
57735
57952
|
this.showProgress && /* @__PURE__ */ h$1("div", { class: `${clsPrefix}-upload-file-overlay` })
|
|
@@ -57896,6 +58113,9 @@ var _UUploadFileList = defineComponent({
|
|
|
57896
58113
|
const isPreviewListTypeRef = computed(
|
|
57897
58114
|
() => listTypeRef.value === "preview-list"
|
|
57898
58115
|
);
|
|
58116
|
+
const isPreviewCardTypeRef = computed(
|
|
58117
|
+
() => listTypeRef.value === "preview-card"
|
|
58118
|
+
);
|
|
57899
58119
|
const renderFileList = () => mergedFileListRef.value.map((file) => /* @__PURE__ */ h$1(
|
|
57900
58120
|
UUploadFile,
|
|
57901
58121
|
{
|
|
@@ -57933,6 +58153,7 @@ var _UUploadFileList = defineComponent({
|
|
|
57933
58153
|
class: [
|
|
57934
58154
|
`${mergedClsPrefix}-upload-file-list`,
|
|
57935
58155
|
isImageCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--grid`,
|
|
58156
|
+
isPreviewCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--preview-card-grid`,
|
|
57936
58157
|
fileListClassRef.value,
|
|
57937
58158
|
abstract ? themeClassRef?.value : void 0
|
|
57938
58159
|
],
|
|
@@ -57942,7 +58163,7 @@ var _UUploadFileList = defineComponent({
|
|
|
57942
58163
|
]
|
|
57943
58164
|
},
|
|
57944
58165
|
renderUploadFileList(),
|
|
57945
|
-
isPreviewListTypeRef.value && renderPreview(),
|
|
58166
|
+
(isPreviewListTypeRef.value || isPreviewCardTypeRef.value) && renderPreview(),
|
|
57946
58167
|
showTriggerRef.value && !maxReachedRef.value && isImageCardTypeRef.value && /* @__PURE__ */ h$1(_UUploadTrigger, null, slots)
|
|
57947
58168
|
);
|
|
57948
58169
|
};
|
|
@@ -58501,6 +58722,9 @@ var _UUpload = defineComponent({
|
|
|
58501
58722
|
containerSecondary,
|
|
58502
58723
|
brandPrimary300,
|
|
58503
58724
|
elementsQuaternary,
|
|
58725
|
+
previewCardWidth,
|
|
58726
|
+
previewCardHeight,
|
|
58727
|
+
previewCardBorderRadius,
|
|
58504
58728
|
[createKey$1("width", size)]: width
|
|
58505
58729
|
}
|
|
58506
58730
|
} = themeRef.value;
|
|
@@ -58532,7 +58756,10 @@ var _UUpload = defineComponent({
|
|
|
58532
58756
|
"--u-upload-dragger-width": width,
|
|
58533
58757
|
"--u-upload-info-bg-color": containerSecondary,
|
|
58534
58758
|
"--u-upload-preview-color": brandPrimary300,
|
|
58535
|
-
"--u-upload-empty-border-color": elementsQuaternary
|
|
58759
|
+
"--u-upload-empty-border-color": elementsQuaternary,
|
|
58760
|
+
"--u-upload-preview-card-width": previewCardWidth,
|
|
58761
|
+
"--u-upload-preview-card-height": previewCardHeight,
|
|
58762
|
+
"--u-upload-preview-card-border-radius": previewCardBorderRadius
|
|
58536
58763
|
};
|
|
58537
58764
|
});
|
|
58538
58765
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass(
|
|
@@ -83643,6 +83870,7 @@ const selectProps = {
|
|
|
83643
83870
|
round: Boolean,
|
|
83644
83871
|
counter: Boolean,
|
|
83645
83872
|
secondary: Boolean,
|
|
83873
|
+
autoWidth: Boolean,
|
|
83646
83874
|
/** deprecated */
|
|
83647
83875
|
onChange: [Function, Array],
|
|
83648
83876
|
items: Array,
|
|
@@ -83656,6 +83884,9 @@ var style$14 = c$1([cB("select", `
|
|
|
83656
83884
|
position: relative;
|
|
83657
83885
|
`, [cE("trigger-wrapper", `
|
|
83658
83886
|
width: 100%;
|
|
83887
|
+
`), cM("auto-width", `
|
|
83888
|
+
width: fit-content;
|
|
83889
|
+
max-width: 100%;
|
|
83659
83890
|
`)]), cB("select-menu", `
|
|
83660
83891
|
margin: 4px 0;
|
|
83661
83892
|
box-shadow: var(--u-menu-box-shadow);
|
|
@@ -84466,7 +84697,10 @@ var _USelect = defineComponent({
|
|
|
84466
84697
|
"div",
|
|
84467
84698
|
{
|
|
84468
84699
|
ref: "selfElRef",
|
|
84469
|
-
class:
|
|
84700
|
+
class: [
|
|
84701
|
+
`${this.mergedClsPrefix}-select`,
|
|
84702
|
+
this.autoWidth && `${this.mergedClsPrefix}-select--auto-width`
|
|
84703
|
+
],
|
|
84470
84704
|
onKeydown: this.$slots.trigger ? this.handleSelfKeydown : void 0
|
|
84471
84705
|
},
|
|
84472
84706
|
/* @__PURE__ */ h$1(Binder, null, {
|
|
@@ -84537,6 +84771,7 @@ var _USelect = defineComponent({
|
|
|
84537
84771
|
round: this.round,
|
|
84538
84772
|
counter: this.counter,
|
|
84539
84773
|
secondary: this.secondary,
|
|
84774
|
+
autoWidth: this.autoWidth,
|
|
84540
84775
|
account: this.account,
|
|
84541
84776
|
tagField: this.tagField,
|
|
84542
84777
|
renderTagLabel: this.renderTagLabel,
|
|
@@ -106354,7 +106589,7 @@ var ColumnSettingsDrawer = defineComponent({
|
|
|
106354
106589
|
{
|
|
106355
106590
|
class: `${mergedClsPrefixRef.value}-data-table-column-settings__item-title`
|
|
106356
106591
|
},
|
|
106357
|
-
() => row.title
|
|
106592
|
+
() => typeof row.title === "function" ? row.title() : row.title
|
|
106358
106593
|
)
|
|
106359
106594
|
]
|
|
106360
106595
|
);
|
|
@@ -106543,12 +106778,6 @@ var ColumnSettingsDrawer = defineComponent({
|
|
|
106543
106778
|
}
|
|
106544
106779
|
});
|
|
106545
106780
|
|
|
106546
|
-
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106547
|
-
TableColumnType2["SELECTION"] = "selection";
|
|
106548
|
-
TableColumnType2["EXPAND"] = "expand";
|
|
106549
|
-
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106550
|
-
return TableColumnType2;
|
|
106551
|
-
})(TableColumnType || {});
|
|
106552
106781
|
const dataTableProps = {
|
|
106553
106782
|
...useTheme.props,
|
|
106554
106783
|
onUnstableColumnResize: Function,
|
|
@@ -106690,6 +106919,12 @@ const dataTableProps = {
|
|
|
106690
106919
|
onCheckedRowKeysChange: [Function, Array]
|
|
106691
106920
|
};
|
|
106692
106921
|
const dataTableInjectionKey = createInjectionKey("u-data-table");
|
|
106922
|
+
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106923
|
+
TableColumnType2["SELECTION"] = "selection";
|
|
106924
|
+
TableColumnType2["EXPAND"] = "expand";
|
|
106925
|
+
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106926
|
+
return TableColumnType2;
|
|
106927
|
+
})(TableColumnType || {});
|
|
106693
106928
|
|
|
106694
106929
|
function renderBodyEmpty(deps) {
|
|
106695
106930
|
const {
|
|
@@ -110529,7 +110764,10 @@ function isConfigurableColumn(column) {
|
|
|
110529
110764
|
return column.visible !== false;
|
|
110530
110765
|
}
|
|
110531
110766
|
function toColumnTitle(column) {
|
|
110532
|
-
|
|
110767
|
+
if (column.settingsTitle !== void 0) return column.settingsTitle;
|
|
110768
|
+
const title = column.title;
|
|
110769
|
+
if (typeof title === "function") return () => title(column);
|
|
110770
|
+
return title ?? String(column.key);
|
|
110533
110771
|
}
|
|
110534
110772
|
function calcColumnsScrollX(columns, getResizableWidth) {
|
|
110535
110773
|
let total = 0;
|
|
@@ -110788,26 +111026,34 @@ function useGroupHeader(props, getResizableWidth) {
|
|
|
110788
111026
|
|
|
110789
111027
|
function useResizable() {
|
|
110790
111028
|
const resizableWidthsRef = ref({});
|
|
111029
|
+
const preferredWidthsRef = ref({});
|
|
110791
111030
|
function getResizableWidth(key) {
|
|
110792
111031
|
return resizableWidthsRef.value[key];
|
|
110793
111032
|
}
|
|
110794
111033
|
function doUpdateResizableWidth(column, width) {
|
|
110795
111034
|
if ("key" in column) {
|
|
111035
|
+
preferredWidthsRef.value[column.key] = width;
|
|
110796
111036
|
resizableWidthsRef.value[column.key] = width;
|
|
110797
111037
|
}
|
|
110798
111038
|
}
|
|
110799
111039
|
function setResizableWidths(widths) {
|
|
110800
111040
|
resizableWidthsRef.value = widths;
|
|
110801
111041
|
}
|
|
111042
|
+
function setPreferredWidths(widths) {
|
|
111043
|
+
preferredWidthsRef.value = widths;
|
|
111044
|
+
}
|
|
110802
111045
|
function clearResizableWidth() {
|
|
111046
|
+
preferredWidthsRef.value = {};
|
|
110803
111047
|
resizableWidthsRef.value = {};
|
|
110804
111048
|
}
|
|
110805
111049
|
return {
|
|
110806
111050
|
getResizableWidth,
|
|
110807
111051
|
doUpdateResizableWidth,
|
|
110808
111052
|
setResizableWidths,
|
|
111053
|
+
setPreferredWidths,
|
|
110809
111054
|
clearResizableWidth,
|
|
110810
|
-
resizableWidthsRef
|
|
111055
|
+
resizableWidthsRef,
|
|
111056
|
+
preferredWidthsRef
|
|
110811
111057
|
};
|
|
110812
111058
|
}
|
|
110813
111059
|
|
|
@@ -111853,15 +112099,15 @@ var _UDataTable = defineComponent({
|
|
|
111853
112099
|
clearResizableWidth,
|
|
111854
112100
|
doUpdateResizableWidth,
|
|
111855
112101
|
setResizableWidths,
|
|
111856
|
-
|
|
112102
|
+
setPreferredWidths,
|
|
112103
|
+
resizableWidthsRef,
|
|
112104
|
+
preferredWidthsRef
|
|
111857
112105
|
} = useResizable();
|
|
111858
112106
|
if (props.localStorageKey && props.resizableStorage !== false) {
|
|
111859
112107
|
const storedWidths = loadTableState(props.localStorageKey)?.columnWidths;
|
|
111860
112108
|
if (storedWidths && Object.keys(storedWidths).length > 0) {
|
|
111861
|
-
|
|
111862
|
-
|
|
111863
|
-
...storedWidths
|
|
111864
|
-
};
|
|
112109
|
+
setPreferredWidths({ ...storedWidths });
|
|
112110
|
+
setResizableWidths({ ...storedWidths });
|
|
111865
112111
|
}
|
|
111866
112112
|
}
|
|
111867
112113
|
const {
|
|
@@ -112020,7 +112266,7 @@ var _UDataTable = defineComponent({
|
|
|
112020
112266
|
watch(
|
|
112021
112267
|
() => props.localStorageKey ? {
|
|
112022
112268
|
key: props.localStorageKey,
|
|
112023
|
-
columnWidths:
|
|
112269
|
+
columnWidths: preferredWidthsRef.value,
|
|
112024
112270
|
columnsConfig: columnsConfigRef.value,
|
|
112025
112271
|
page: mergedPaginationRef.value?.page,
|
|
112026
112272
|
pageSize: mergedPaginationRef.value?.pageSize,
|
|
@@ -112095,23 +112341,23 @@ var _UDataTable = defineComponent({
|
|
|
112095
112341
|
systemMaxWidth: props.resizableMaxWidth
|
|
112096
112342
|
};
|
|
112097
112343
|
});
|
|
112098
|
-
function buildNonFixedModeWidthMap(
|
|
112344
|
+
function buildNonFixedModeWidthMap(preferredWidths, resizableColumns) {
|
|
112099
112345
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112100
112346
|
return {
|
|
112101
112347
|
keys: resizableColumns.map((column) => column.key),
|
|
112102
112348
|
widthMap: sanitizeColumnWidthMap(resizableColumns, {
|
|
112103
112349
|
systemMinWidth,
|
|
112104
112350
|
systemMaxWidth,
|
|
112105
|
-
source:
|
|
112351
|
+
source: preferredWidths
|
|
112106
112352
|
})
|
|
112107
112353
|
};
|
|
112108
112354
|
}
|
|
112109
|
-
function buildFixedModeWidthMap(visibleLeafColumns,
|
|
112355
|
+
function buildFixedModeWidthMap(visibleLeafColumns, sourceWidths) {
|
|
112110
112356
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112111
112357
|
const preferredWidths = sanitizeColumnWidthMap(visibleLeafColumns, {
|
|
112112
112358
|
systemMinWidth,
|
|
112113
112359
|
systemMaxWidth,
|
|
112114
|
-
source:
|
|
112360
|
+
source: sourceWidths
|
|
112115
112361
|
});
|
|
112116
112362
|
const containerWidth = containerWidthSignalRef.value;
|
|
112117
112363
|
if (containerWidth === void 0) {
|
|
@@ -112137,16 +112383,16 @@ var _UDataTable = defineComponent({
|
|
|
112137
112383
|
}
|
|
112138
112384
|
function reconcileResizableWidths(_reason) {
|
|
112139
112385
|
const visibleLeafColumns = visibleLeafColumnsSignalRef.value;
|
|
112140
|
-
const
|
|
112386
|
+
const preferredWidths = preferredWidthsRef.value;
|
|
112141
112387
|
if (!visibleLeafColumns.length || !resizableColumnPresentRef.value) {
|
|
112142
|
-
if (Object.keys(
|
|
112143
|
-
|
|
112388
|
+
if (Object.keys(resizableWidthsRef.value).length) {
|
|
112389
|
+
setResizableWidths({});
|
|
112144
112390
|
}
|
|
112145
112391
|
return;
|
|
112146
112392
|
}
|
|
112147
112393
|
if (modeSignalRef.value !== "fixed") {
|
|
112148
112394
|
const { widthMap, keys } = buildNonFixedModeWidthMap(
|
|
112149
|
-
|
|
112395
|
+
preferredWidths,
|
|
112150
112396
|
resizableColumnsSignalRef.value
|
|
112151
112397
|
);
|
|
112152
112398
|
syncResizableWidths(widthMap, keys);
|
|
@@ -112155,7 +112401,7 @@ var _UDataTable = defineComponent({
|
|
|
112155
112401
|
const visibleLeafKeys = visibleLeafColumns.map((column) => column.key);
|
|
112156
112402
|
const nextWidths = buildFixedModeWidthMap(
|
|
112157
112403
|
visibleLeafColumns,
|
|
112158
|
-
|
|
112404
|
+
preferredWidths
|
|
112159
112405
|
);
|
|
112160
112406
|
syncResizableWidths(nextWidths, visibleLeafKeys);
|
|
112161
112407
|
}
|
|
@@ -112186,7 +112432,7 @@ var _UDataTable = defineComponent({
|
|
|
112186
112432
|
}
|
|
112187
112433
|
);
|
|
112188
112434
|
watch(
|
|
112189
|
-
() =>
|
|
112435
|
+
() => preferredWidthsRef.value,
|
|
112190
112436
|
() => {
|
|
112191
112437
|
reconcileResizableWidths();
|
|
112192
112438
|
},
|
|
@@ -154773,7 +155019,7 @@ function useThemeVars() {
|
|
|
154773
155019
|
});
|
|
154774
155020
|
}
|
|
154775
155021
|
|
|
154776
|
-
var version = "2.4.
|
|
155022
|
+
var version = "2.4.4";
|
|
154777
155023
|
|
|
154778
155024
|
function create({
|
|
154779
155025
|
componentPrefix = "U",
|