@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.js
CHANGED
|
@@ -11554,7 +11554,7 @@
|
|
|
11554
11554
|
uncheckTableAll: "\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435 \u0432 \u0442\u0430\u0431\u043B\u0438\u0446\u0435",
|
|
11555
11555
|
confirm: "\u041F\u043E\u0434\u0442\u0432\u0435\u0440\u0434\u0438\u0442\u044C",
|
|
11556
11556
|
clear: "\u041E\u0447\u0438\u0441\u0442\u0438\u0442\u044C",
|
|
11557
|
-
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\
|
|
11557
|
+
columnSettingsTitle: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11558
11558
|
columnSettingsButton: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0442\u0430\u0431\u043B\u0438\u0446\u044B",
|
|
11559
11559
|
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",
|
|
11560
11560
|
columnSettingsSelectAll: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C \u0432\u0441\u0435",
|
|
@@ -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
|
]
|
|
@@ -52223,6 +52345,7 @@
|
|
|
52223
52345
|
fontBodyMedium,
|
|
52224
52346
|
lineHeightBodyMedium,
|
|
52225
52347
|
borderRadiusLarge,
|
|
52348
|
+
borderRadiusSmall,
|
|
52226
52349
|
containerSecondary,
|
|
52227
52350
|
brandPrimary300,
|
|
52228
52351
|
brandPrimary500
|
|
@@ -52255,6 +52378,9 @@
|
|
|
52255
52378
|
widthSmall: "140px",
|
|
52256
52379
|
widthMedium: "auto",
|
|
52257
52380
|
widthLarge: "auto",
|
|
52381
|
+
previewCardWidth: "80px",
|
|
52382
|
+
previewCardHeight: "72px",
|
|
52383
|
+
previewCardBorderRadius: borderRadiusSmall,
|
|
52258
52384
|
containerSecondary,
|
|
52259
52385
|
brandPrimary300,
|
|
52260
52386
|
elementsQuaternary
|
|
@@ -52396,6 +52522,10 @@
|
|
|
52396
52522
|
grid-template-columns: repeat(auto-fill, 238px);
|
|
52397
52523
|
grid-gap: 8px;
|
|
52398
52524
|
margin-top: 0;
|
|
52525
|
+
`), cM("preview-card-grid", `
|
|
52526
|
+
display: grid;
|
|
52527
|
+
grid-template-columns: repeat(auto-fill, var(--u-upload-preview-card-width));
|
|
52528
|
+
grid-gap: 8px;
|
|
52399
52529
|
`), cB("upload-file", `
|
|
52400
52530
|
display: block;
|
|
52401
52531
|
box-sizing: border-box;
|
|
@@ -52414,6 +52544,11 @@
|
|
|
52414
52544
|
`), cE("action", `
|
|
52415
52545
|
opacity: 1;
|
|
52416
52546
|
z-index: 10;
|
|
52547
|
+
`)])]), cM("preview-card-type", [cB("upload-file-info", [cE("preview", `
|
|
52548
|
+
filter: blur(3px);
|
|
52549
|
+
`), cE("action", `
|
|
52550
|
+
opacity: 1;
|
|
52551
|
+
z-index: 10;
|
|
52417
52552
|
`)])])]), cM("text-type", `
|
|
52418
52553
|
border: var(--u-item-border-image-card);
|
|
52419
52554
|
margin-bottom: 12px;
|
|
@@ -52498,6 +52633,8 @@
|
|
|
52498
52633
|
background-color: var(--u-item-color-hover-error);
|
|
52499
52634
|
`), 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", `
|
|
52500
52635
|
border: var(--u-item-border-image-card-error);
|
|
52636
|
+
`), cM("preview-card-type", `
|
|
52637
|
+
border: var(--u-item-border-image-card-error);
|
|
52501
52638
|
`)]), cM("with-url", `
|
|
52502
52639
|
cursor: pointer;
|
|
52503
52640
|
`, [cB("upload-file-info", [cE("name", `
|
|
@@ -52654,7 +52791,79 @@
|
|
|
52654
52791
|
`), c$1(":nth-child(3)", `
|
|
52655
52792
|
font-size: 12px;
|
|
52656
52793
|
color: var(--u-item-text-color-success);
|
|
52657
|
-
`)])])
|
|
52794
|
+
`)])]), cM("preview-card-type", `
|
|
52795
|
+
position: relative;
|
|
52796
|
+
width: var(--u-upload-preview-card-width);
|
|
52797
|
+
height: var(--u-upload-preview-card-height);
|
|
52798
|
+
border: var(--u-item-border-image-card);
|
|
52799
|
+
border-radius: var(--u-upload-preview-card-border-radius);
|
|
52800
|
+
background-color: var(--u-upload-info-bg-color);
|
|
52801
|
+
overflow: hidden;
|
|
52802
|
+
transition: border-color .3s var(--u-bezier), background-color .3s var(--u-bezier);
|
|
52803
|
+
`, [cB("upload-file-overlay", `
|
|
52804
|
+
border-radius: inherit;
|
|
52805
|
+
`), cB("upload-file-info", `
|
|
52806
|
+
padding-top: 0;
|
|
52807
|
+
padding-bottom: 0;
|
|
52808
|
+
width: 100%;
|
|
52809
|
+
height: 100%;
|
|
52810
|
+
justify-content: center;
|
|
52811
|
+
`, [cE("thumbnail", `
|
|
52812
|
+
width: 100%;
|
|
52813
|
+
height: 100%;
|
|
52814
|
+
cursor: pointer;
|
|
52815
|
+
`, [cM("icon", `
|
|
52816
|
+
display: flex;
|
|
52817
|
+
align-items: flex-start;
|
|
52818
|
+
justify-content: center;
|
|
52819
|
+
background-color: transparent;
|
|
52820
|
+
border-radius: 0;
|
|
52821
|
+
margin-right: 0;
|
|
52822
|
+
width: 100%;
|
|
52823
|
+
height: 100%;
|
|
52824
|
+
`)]), cE("preview", `
|
|
52825
|
+
flex-shrink: 0;
|
|
52826
|
+
width: 56px;
|
|
52827
|
+
height: 67px;
|
|
52828
|
+
margin-top: 16px;
|
|
52829
|
+
border-radius: 7px;
|
|
52830
|
+
transition: filter .2s var(--u-bezier);
|
|
52831
|
+
`, [cB("upload-file-info__preview--ext", `
|
|
52832
|
+
font-size: 8px;
|
|
52833
|
+
line-height: 10px;
|
|
52834
|
+
font-weight: 700;
|
|
52835
|
+
top: 6px;
|
|
52836
|
+
left: 6px;
|
|
52837
|
+
`), cB("upload-file-info__preview--content", `
|
|
52838
|
+
top: 29px;
|
|
52839
|
+
left: 6px;
|
|
52840
|
+
width: 43px;
|
|
52841
|
+
height: 3px;
|
|
52842
|
+
border-radius: 2px;
|
|
52843
|
+
`, [c$1("&::before", `
|
|
52844
|
+
top: -6px;
|
|
52845
|
+
width: 43px;
|
|
52846
|
+
height: 3px;
|
|
52847
|
+
border-radius: 2px;
|
|
52848
|
+
`), c$1("&::after", `
|
|
52849
|
+
top: 6px;
|
|
52850
|
+
width: 24px;
|
|
52851
|
+
height: 3px;
|
|
52852
|
+
border-radius: 2px;
|
|
52853
|
+
`)])]), cE("action", `
|
|
52854
|
+
padding-top: 0;
|
|
52855
|
+
padding-bottom: 0;
|
|
52856
|
+
z-index: 2;
|
|
52857
|
+
`, [cB("button", `
|
|
52858
|
+
width: 24px;
|
|
52859
|
+
height: 24px;
|
|
52860
|
+
min-width: 24px;
|
|
52861
|
+
padding: 0;
|
|
52862
|
+
border-radius: 50%;
|
|
52863
|
+
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.08);
|
|
52864
|
+
`, [cB("base-icon", `
|
|
52865
|
+
font-size: 16px;
|
|
52866
|
+
`)])])])])])]), cB("upload-file-input", `
|
|
52658
52867
|
display: block;
|
|
52659
52868
|
width: 0;
|
|
52660
52869
|
height: 0;
|
|
@@ -57350,8 +57559,13 @@
|
|
|
57350
57559
|
return i === -1 || i === name.length - 1 ? "" : name.slice(i + 1);
|
|
57351
57560
|
};
|
|
57352
57561
|
const isImageType = ["image", "image-card"].includes(listType);
|
|
57562
|
+
const isPreviewCardType = listType === "preview-card";
|
|
57353
57563
|
const fileExt = getExt(file.name);
|
|
57354
57564
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
57565
|
+
const showRetry = showRetryButton && !disabled;
|
|
57566
|
+
const showDownload = showDownloadButton && !isPreviewCardType;
|
|
57567
|
+
const showRemoveOrCancel = (showRemoveButton || showCancelButton) && !disabled && !(isPreviewCardType && showRetry);
|
|
57568
|
+
const showPreview = showPreviewButton && !(isPreviewCardType && (showRetry || showRemoveOrCancel));
|
|
57355
57569
|
const fallbackIcon = vue.h(
|
|
57356
57570
|
"div",
|
|
57357
57571
|
{
|
|
@@ -57388,11 +57602,11 @@
|
|
|
57388
57602
|
{
|
|
57389
57603
|
class: [
|
|
57390
57604
|
`${clsPrefix}-upload-file-info__action`,
|
|
57391
|
-
`${clsPrefix}-upload-file--${isImageType ? "image-card" : "text"}-type`
|
|
57605
|
+
`${clsPrefix}-upload-file--${isImageType ? "image-card" : isPreviewCardType ? "preview-card" : "text"}-type`
|
|
57392
57606
|
]
|
|
57393
57607
|
},
|
|
57394
57608
|
[
|
|
57395
|
-
|
|
57609
|
+
showPreview && vue.h(
|
|
57396
57610
|
Button,
|
|
57397
57611
|
{
|
|
57398
57612
|
key: "preview",
|
|
@@ -57407,7 +57621,7 @@
|
|
|
57407
57621
|
icon: () => vue.h(UBaseIcon, { clsPrefix }, { default: () => vue.h(EyeIcon) })
|
|
57408
57622
|
}
|
|
57409
57623
|
),
|
|
57410
|
-
|
|
57624
|
+
showRemoveOrCancel && vue.h(
|
|
57411
57625
|
Button,
|
|
57412
57626
|
{
|
|
57413
57627
|
key: "cancelOrTrash",
|
|
@@ -57436,7 +57650,7 @@
|
|
|
57436
57650
|
)
|
|
57437
57651
|
}
|
|
57438
57652
|
),
|
|
57439
|
-
|
|
57653
|
+
showRetry && vue.h(
|
|
57440
57654
|
Button,
|
|
57441
57655
|
{
|
|
57442
57656
|
key: "retry",
|
|
@@ -57451,7 +57665,7 @@
|
|
|
57451
57665
|
icon: () => vue.h(UBaseIcon, { clsPrefix }, { default: () => vue.h(RetryIcon) })
|
|
57452
57666
|
}
|
|
57453
57667
|
),
|
|
57454
|
-
|
|
57668
|
+
showDownload && vue.h(
|
|
57455
57669
|
Button,
|
|
57456
57670
|
{
|
|
57457
57671
|
key: "download",
|
|
@@ -57474,7 +57688,8 @@
|
|
|
57474
57688
|
const buttonThemeOverrides = {
|
|
57475
57689
|
paddingMedium: "0 3px",
|
|
57476
57690
|
heightMedium: "24px",
|
|
57477
|
-
iconSizeMedium: "18px"
|
|
57691
|
+
iconSizeMedium: "18px",
|
|
57692
|
+
textColor: "#101010"
|
|
57478
57693
|
};
|
|
57479
57694
|
var UUploadFile = vue.defineComponent({
|
|
57480
57695
|
name: "UploadFile",
|
|
@@ -57550,7 +57765,7 @@
|
|
|
57550
57765
|
} = props;
|
|
57551
57766
|
if (!["finished"].includes(status))
|
|
57552
57767
|
return false;
|
|
57553
|
-
if (listType === "preview-list") {
|
|
57768
|
+
if (listType === "preview-list" || listType === "preview-card") {
|
|
57554
57769
|
return UUpload.isFilePreviewable(props.file);
|
|
57555
57770
|
}
|
|
57556
57771
|
return !!mergedThumbnailUrlRef.value && listType === "image-card";
|
|
@@ -57632,7 +57847,7 @@
|
|
|
57632
57847
|
} = UUpload;
|
|
57633
57848
|
if (onPreview) {
|
|
57634
57849
|
onPreview(props.file);
|
|
57635
|
-
} else if (props.listType === "preview-list") {
|
|
57850
|
+
} else if (props.listType === "preview-list" || props.listType === "preview-card") {
|
|
57636
57851
|
UUpload.openFilePreview(props.file);
|
|
57637
57852
|
} else if (props.listType === "image-card") {
|
|
57638
57853
|
const { value } = imageRef;
|
|
@@ -57706,10 +57921,11 @@
|
|
|
57706
57921
|
_USpin,
|
|
57707
57922
|
{
|
|
57708
57923
|
color: "tertiary",
|
|
57709
|
-
|
|
57924
|
+
size: listType === "preview-card" ? 24 : void 0,
|
|
57925
|
+
description: listType === "preview-card" ? void 0 : this.localeRef.uploading,
|
|
57710
57926
|
show: this.showProgress,
|
|
57711
57927
|
class: [
|
|
57712
|
-
!this.vertical && !imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-loader--default`
|
|
57928
|
+
!this.vertical && !imageCardTypes.includes(listType) && listType !== "preview-card" && `${clsPrefix}-upload-file-loader--default`
|
|
57713
57929
|
]
|
|
57714
57930
|
},
|
|
57715
57931
|
{
|
|
@@ -57720,8 +57936,9 @@
|
|
|
57720
57936
|
`${clsPrefix}-upload-file`,
|
|
57721
57937
|
`${clsPrefix}-upload-file--${this.progressStatus}-status`,
|
|
57722
57938
|
file.url && file.status !== "error" && imageCardTypes.includes(listType) && `${clsPrefix}-upload-file--with-url`,
|
|
57723
|
-
`${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
57724
|
-
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type
|
|
57939
|
+
listType !== "preview-card" && `${clsPrefix}-upload-file--${listType === "image" || listType === "image-card" ? "image-card" : "text"}-type`,
|
|
57940
|
+
listType === "preview-list" && `${clsPrefix}-upload-file--preview-list-type`,
|
|
57941
|
+
listType === "preview-card" && `${clsPrefix}-upload-file--preview-card-type`
|
|
57725
57942
|
]
|
|
57726
57943
|
},
|
|
57727
57944
|
/* @__PURE__ */ vue.h(
|
|
@@ -57732,8 +57949,8 @@
|
|
|
57732
57949
|
imageCardTypes.includes(listType) && `${clsPrefix}-upload-file-info--vertical`
|
|
57733
57950
|
]
|
|
57734
57951
|
},
|
|
57735
|
-
icon,
|
|
57736
|
-
/* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
57952
|
+
listType === "preview-card" ? vue.cloneVNode(icon, { onClick: this.handlePreviewClick }) : icon,
|
|
57953
|
+
listType !== "preview-card" && /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-info__name` }, /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-title"] ? this.$slots["upload-file-title"]({ file }) : file.name), /* @__PURE__ */ vue.h("span", { onClick: this.handlePreviewClick }, this.$slots["upload-file-subtitle"] ? this.$slots["upload-file-subtitle"]({ file }) : ""))),
|
|
57737
57954
|
actionsNode
|
|
57738
57955
|
),
|
|
57739
57956
|
this.showProgress && /* @__PURE__ */ vue.h("div", { class: `${clsPrefix}-upload-file-overlay` })
|
|
@@ -57900,6 +58117,9 @@
|
|
|
57900
58117
|
const isPreviewListTypeRef = vue.computed(
|
|
57901
58118
|
() => listTypeRef.value === "preview-list"
|
|
57902
58119
|
);
|
|
58120
|
+
const isPreviewCardTypeRef = vue.computed(
|
|
58121
|
+
() => listTypeRef.value === "preview-card"
|
|
58122
|
+
);
|
|
57903
58123
|
const renderFileList = () => mergedFileListRef.value.map((file) => /* @__PURE__ */ vue.h(
|
|
57904
58124
|
UUploadFile,
|
|
57905
58125
|
{
|
|
@@ -57937,6 +58157,7 @@
|
|
|
57937
58157
|
class: [
|
|
57938
58158
|
`${mergedClsPrefix}-upload-file-list`,
|
|
57939
58159
|
isImageCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--grid`,
|
|
58160
|
+
isPreviewCardTypeRef.value && `${mergedClsPrefix}-upload-file-list--preview-card-grid`,
|
|
57940
58161
|
fileListClassRef.value,
|
|
57941
58162
|
abstract ? themeClassRef?.value : void 0
|
|
57942
58163
|
],
|
|
@@ -57946,7 +58167,7 @@
|
|
|
57946
58167
|
]
|
|
57947
58168
|
},
|
|
57948
58169
|
renderUploadFileList(),
|
|
57949
|
-
isPreviewListTypeRef.value && renderPreview(),
|
|
58170
|
+
(isPreviewListTypeRef.value || isPreviewCardTypeRef.value) && renderPreview(),
|
|
57950
58171
|
showTriggerRef.value && !maxReachedRef.value && isImageCardTypeRef.value && /* @__PURE__ */ vue.h(_UUploadTrigger, null, slots)
|
|
57951
58172
|
);
|
|
57952
58173
|
};
|
|
@@ -58505,6 +58726,9 @@
|
|
|
58505
58726
|
containerSecondary,
|
|
58506
58727
|
brandPrimary300,
|
|
58507
58728
|
elementsQuaternary,
|
|
58729
|
+
previewCardWidth,
|
|
58730
|
+
previewCardHeight,
|
|
58731
|
+
previewCardBorderRadius,
|
|
58508
58732
|
[createKey$1("width", size)]: width
|
|
58509
58733
|
}
|
|
58510
58734
|
} = themeRef.value;
|
|
@@ -58536,7 +58760,10 @@
|
|
|
58536
58760
|
"--u-upload-dragger-width": width,
|
|
58537
58761
|
"--u-upload-info-bg-color": containerSecondary,
|
|
58538
58762
|
"--u-upload-preview-color": brandPrimary300,
|
|
58539
|
-
"--u-upload-empty-border-color": elementsQuaternary
|
|
58763
|
+
"--u-upload-empty-border-color": elementsQuaternary,
|
|
58764
|
+
"--u-upload-preview-card-width": previewCardWidth,
|
|
58765
|
+
"--u-upload-preview-card-height": previewCardHeight,
|
|
58766
|
+
"--u-upload-preview-card-border-radius": previewCardBorderRadius
|
|
58540
58767
|
};
|
|
58541
58768
|
});
|
|
58542
58769
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass(
|
|
@@ -83647,6 +83874,7 @@ img.ProseMirror-separator {
|
|
|
83647
83874
|
round: Boolean,
|
|
83648
83875
|
counter: Boolean,
|
|
83649
83876
|
secondary: Boolean,
|
|
83877
|
+
autoWidth: Boolean,
|
|
83650
83878
|
/** deprecated */
|
|
83651
83879
|
onChange: [Function, Array],
|
|
83652
83880
|
items: Array,
|
|
@@ -83660,6 +83888,9 @@ img.ProseMirror-separator {
|
|
|
83660
83888
|
position: relative;
|
|
83661
83889
|
`, [cE("trigger-wrapper", `
|
|
83662
83890
|
width: 100%;
|
|
83891
|
+
`), cM("auto-width", `
|
|
83892
|
+
width: fit-content;
|
|
83893
|
+
max-width: 100%;
|
|
83663
83894
|
`)]), cB("select-menu", `
|
|
83664
83895
|
margin: 4px 0;
|
|
83665
83896
|
box-shadow: var(--u-menu-box-shadow);
|
|
@@ -84470,7 +84701,10 @@ img.ProseMirror-separator {
|
|
|
84470
84701
|
"div",
|
|
84471
84702
|
{
|
|
84472
84703
|
ref: "selfElRef",
|
|
84473
|
-
class:
|
|
84704
|
+
class: [
|
|
84705
|
+
`${this.mergedClsPrefix}-select`,
|
|
84706
|
+
this.autoWidth && `${this.mergedClsPrefix}-select--auto-width`
|
|
84707
|
+
],
|
|
84474
84708
|
onKeydown: this.$slots.trigger ? this.handleSelfKeydown : void 0
|
|
84475
84709
|
},
|
|
84476
84710
|
/* @__PURE__ */ vue.h(Binder, null, {
|
|
@@ -84541,6 +84775,7 @@ img.ProseMirror-separator {
|
|
|
84541
84775
|
round: this.round,
|
|
84542
84776
|
counter: this.counter,
|
|
84543
84777
|
secondary: this.secondary,
|
|
84778
|
+
autoWidth: this.autoWidth,
|
|
84544
84779
|
account: this.account,
|
|
84545
84780
|
tagField: this.tagField,
|
|
84546
84781
|
renderTagLabel: this.renderTagLabel,
|
|
@@ -106358,7 +106593,7 @@ img.ProseMirror-separator {
|
|
|
106358
106593
|
{
|
|
106359
106594
|
class: `${mergedClsPrefixRef.value}-data-table-column-settings__item-title`
|
|
106360
106595
|
},
|
|
106361
|
-
() => row.title
|
|
106596
|
+
() => typeof row.title === "function" ? row.title() : row.title
|
|
106362
106597
|
)
|
|
106363
106598
|
]
|
|
106364
106599
|
);
|
|
@@ -106547,12 +106782,6 @@ img.ProseMirror-separator {
|
|
|
106547
106782
|
}
|
|
106548
106783
|
});
|
|
106549
106784
|
|
|
106550
|
-
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106551
|
-
TableColumnType2["SELECTION"] = "selection";
|
|
106552
|
-
TableColumnType2["EXPAND"] = "expand";
|
|
106553
|
-
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106554
|
-
return TableColumnType2;
|
|
106555
|
-
})(TableColumnType || {});
|
|
106556
106785
|
const dataTableProps = {
|
|
106557
106786
|
...useTheme.props,
|
|
106558
106787
|
onUnstableColumnResize: Function,
|
|
@@ -106694,6 +106923,12 @@ img.ProseMirror-separator {
|
|
|
106694
106923
|
onCheckedRowKeysChange: [Function, Array]
|
|
106695
106924
|
};
|
|
106696
106925
|
const dataTableInjectionKey = createInjectionKey("u-data-table");
|
|
106926
|
+
var TableColumnType = /* @__PURE__ */(TableColumnType2 => {
|
|
106927
|
+
TableColumnType2["SELECTION"] = "selection";
|
|
106928
|
+
TableColumnType2["EXPAND"] = "expand";
|
|
106929
|
+
TableColumnType2["DRAGGABLE"] = "draggable";
|
|
106930
|
+
return TableColumnType2;
|
|
106931
|
+
})(TableColumnType || {});
|
|
106697
106932
|
|
|
106698
106933
|
function renderBodyEmpty(deps) {
|
|
106699
106934
|
const {
|
|
@@ -110533,7 +110768,10 @@ img.ProseMirror-separator {
|
|
|
110533
110768
|
return column.visible !== false;
|
|
110534
110769
|
}
|
|
110535
110770
|
function toColumnTitle(column) {
|
|
110536
|
-
|
|
110771
|
+
if (column.settingsTitle !== void 0) return column.settingsTitle;
|
|
110772
|
+
const title = column.title;
|
|
110773
|
+
if (typeof title === "function") return () => title(column);
|
|
110774
|
+
return title ?? String(column.key);
|
|
110537
110775
|
}
|
|
110538
110776
|
function calcColumnsScrollX(columns, getResizableWidth) {
|
|
110539
110777
|
let total = 0;
|
|
@@ -110792,26 +111030,34 @@ img.ProseMirror-separator {
|
|
|
110792
111030
|
|
|
110793
111031
|
function useResizable() {
|
|
110794
111032
|
const resizableWidthsRef = vue.ref({});
|
|
111033
|
+
const preferredWidthsRef = vue.ref({});
|
|
110795
111034
|
function getResizableWidth(key) {
|
|
110796
111035
|
return resizableWidthsRef.value[key];
|
|
110797
111036
|
}
|
|
110798
111037
|
function doUpdateResizableWidth(column, width) {
|
|
110799
111038
|
if ("key" in column) {
|
|
111039
|
+
preferredWidthsRef.value[column.key] = width;
|
|
110800
111040
|
resizableWidthsRef.value[column.key] = width;
|
|
110801
111041
|
}
|
|
110802
111042
|
}
|
|
110803
111043
|
function setResizableWidths(widths) {
|
|
110804
111044
|
resizableWidthsRef.value = widths;
|
|
110805
111045
|
}
|
|
111046
|
+
function setPreferredWidths(widths) {
|
|
111047
|
+
preferredWidthsRef.value = widths;
|
|
111048
|
+
}
|
|
110806
111049
|
function clearResizableWidth() {
|
|
111050
|
+
preferredWidthsRef.value = {};
|
|
110807
111051
|
resizableWidthsRef.value = {};
|
|
110808
111052
|
}
|
|
110809
111053
|
return {
|
|
110810
111054
|
getResizableWidth,
|
|
110811
111055
|
doUpdateResizableWidth,
|
|
110812
111056
|
setResizableWidths,
|
|
111057
|
+
setPreferredWidths,
|
|
110813
111058
|
clearResizableWidth,
|
|
110814
|
-
resizableWidthsRef
|
|
111059
|
+
resizableWidthsRef,
|
|
111060
|
+
preferredWidthsRef
|
|
110815
111061
|
};
|
|
110816
111062
|
}
|
|
110817
111063
|
|
|
@@ -111857,15 +112103,15 @@ img.ProseMirror-separator {
|
|
|
111857
112103
|
clearResizableWidth,
|
|
111858
112104
|
doUpdateResizableWidth,
|
|
111859
112105
|
setResizableWidths,
|
|
111860
|
-
|
|
112106
|
+
setPreferredWidths,
|
|
112107
|
+
resizableWidthsRef,
|
|
112108
|
+
preferredWidthsRef
|
|
111861
112109
|
} = useResizable();
|
|
111862
112110
|
if (props.localStorageKey && props.resizableStorage !== false) {
|
|
111863
112111
|
const storedWidths = loadTableState(props.localStorageKey)?.columnWidths;
|
|
111864
112112
|
if (storedWidths && Object.keys(storedWidths).length > 0) {
|
|
111865
|
-
|
|
111866
|
-
|
|
111867
|
-
...storedWidths
|
|
111868
|
-
};
|
|
112113
|
+
setPreferredWidths({ ...storedWidths });
|
|
112114
|
+
setResizableWidths({ ...storedWidths });
|
|
111869
112115
|
}
|
|
111870
112116
|
}
|
|
111871
112117
|
const {
|
|
@@ -112024,7 +112270,7 @@ img.ProseMirror-separator {
|
|
|
112024
112270
|
vue.watch(
|
|
112025
112271
|
() => props.localStorageKey ? {
|
|
112026
112272
|
key: props.localStorageKey,
|
|
112027
|
-
columnWidths:
|
|
112273
|
+
columnWidths: preferredWidthsRef.value,
|
|
112028
112274
|
columnsConfig: columnsConfigRef.value,
|
|
112029
112275
|
page: mergedPaginationRef.value?.page,
|
|
112030
112276
|
pageSize: mergedPaginationRef.value?.pageSize,
|
|
@@ -112099,23 +112345,23 @@ img.ProseMirror-separator {
|
|
|
112099
112345
|
systemMaxWidth: props.resizableMaxWidth
|
|
112100
112346
|
};
|
|
112101
112347
|
});
|
|
112102
|
-
function buildNonFixedModeWidthMap(
|
|
112348
|
+
function buildNonFixedModeWidthMap(preferredWidths, resizableColumns) {
|
|
112103
112349
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112104
112350
|
return {
|
|
112105
112351
|
keys: resizableColumns.map((column) => column.key),
|
|
112106
112352
|
widthMap: sanitizeColumnWidthMap(resizableColumns, {
|
|
112107
112353
|
systemMinWidth,
|
|
112108
112354
|
systemMaxWidth,
|
|
112109
|
-
source:
|
|
112355
|
+
source: preferredWidths
|
|
112110
112356
|
})
|
|
112111
112357
|
};
|
|
112112
112358
|
}
|
|
112113
|
-
function buildFixedModeWidthMap(visibleLeafColumns,
|
|
112359
|
+
function buildFixedModeWidthMap(visibleLeafColumns, sourceWidths) {
|
|
112114
112360
|
const { systemMinWidth, systemMaxWidth } = widthConstraintSignalRef.value;
|
|
112115
112361
|
const preferredWidths = sanitizeColumnWidthMap(visibleLeafColumns, {
|
|
112116
112362
|
systemMinWidth,
|
|
112117
112363
|
systemMaxWidth,
|
|
112118
|
-
source:
|
|
112364
|
+
source: sourceWidths
|
|
112119
112365
|
});
|
|
112120
112366
|
const containerWidth = containerWidthSignalRef.value;
|
|
112121
112367
|
if (containerWidth === void 0) {
|
|
@@ -112141,16 +112387,16 @@ img.ProseMirror-separator {
|
|
|
112141
112387
|
}
|
|
112142
112388
|
function reconcileResizableWidths(_reason) {
|
|
112143
112389
|
const visibleLeafColumns = visibleLeafColumnsSignalRef.value;
|
|
112144
|
-
const
|
|
112390
|
+
const preferredWidths = preferredWidthsRef.value;
|
|
112145
112391
|
if (!visibleLeafColumns.length || !resizableColumnPresentRef.value) {
|
|
112146
|
-
if (Object.keys(
|
|
112147
|
-
|
|
112392
|
+
if (Object.keys(resizableWidthsRef.value).length) {
|
|
112393
|
+
setResizableWidths({});
|
|
112148
112394
|
}
|
|
112149
112395
|
return;
|
|
112150
112396
|
}
|
|
112151
112397
|
if (modeSignalRef.value !== "fixed") {
|
|
112152
112398
|
const { widthMap, keys } = buildNonFixedModeWidthMap(
|
|
112153
|
-
|
|
112399
|
+
preferredWidths,
|
|
112154
112400
|
resizableColumnsSignalRef.value
|
|
112155
112401
|
);
|
|
112156
112402
|
syncResizableWidths(widthMap, keys);
|
|
@@ -112159,7 +112405,7 @@ img.ProseMirror-separator {
|
|
|
112159
112405
|
const visibleLeafKeys = visibleLeafColumns.map((column) => column.key);
|
|
112160
112406
|
const nextWidths = buildFixedModeWidthMap(
|
|
112161
112407
|
visibleLeafColumns,
|
|
112162
|
-
|
|
112408
|
+
preferredWidths
|
|
112163
112409
|
);
|
|
112164
112410
|
syncResizableWidths(nextWidths, visibleLeafKeys);
|
|
112165
112411
|
}
|
|
@@ -112190,7 +112436,7 @@ img.ProseMirror-separator {
|
|
|
112190
112436
|
}
|
|
112191
112437
|
);
|
|
112192
112438
|
vue.watch(
|
|
112193
|
-
() =>
|
|
112439
|
+
() => preferredWidthsRef.value,
|
|
112194
112440
|
() => {
|
|
112195
112441
|
reconcileResizableWidths();
|
|
112196
112442
|
},
|
|
@@ -154777,7 +155023,7 @@ ${icon.label}`.toLowerCase()
|
|
|
154777
155023
|
});
|
|
154778
155024
|
}
|
|
154779
155025
|
|
|
154780
|
-
var version = "2.4.
|
|
155026
|
+
var version = "2.4.4";
|
|
154781
155027
|
|
|
154782
155028
|
function create({
|
|
154783
155029
|
componentPrefix = "U",
|