@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
|
@@ -335,8 +335,11 @@ export declare const treeSelectProps: {
|
|
|
335
335
|
caretColorSecondary: string;
|
|
336
336
|
filterCounterTextColor: string;
|
|
337
337
|
filterCounterTextColorDisabled: string;
|
|
338
|
+
filterCounterGap: string;
|
|
339
|
+
filterSuffixWrapperGap: string;
|
|
338
340
|
arrowColorSecondary: string;
|
|
339
341
|
clearColorSecondary: string;
|
|
342
|
+
loadingColorSecondary: string;
|
|
340
343
|
colorSecondary: string;
|
|
341
344
|
textColorSecondary: string;
|
|
342
345
|
borderSecondary: string;
|
|
@@ -589,8 +592,11 @@ export declare const treeSelectProps: {
|
|
|
589
592
|
caretColorSecondary: string;
|
|
590
593
|
filterCounterTextColor: string;
|
|
591
594
|
filterCounterTextColorDisabled: string;
|
|
595
|
+
filterCounterGap: string;
|
|
596
|
+
filterSuffixWrapperGap: string;
|
|
592
597
|
arrowColorSecondary: string;
|
|
593
598
|
clearColorSecondary: string;
|
|
599
|
+
loadingColorSecondary: string;
|
|
594
600
|
colorSecondary: string;
|
|
595
601
|
textColorSecondary: string;
|
|
596
602
|
borderSecondary: string;
|
|
@@ -843,8 +849,11 @@ export declare const treeSelectProps: {
|
|
|
843
849
|
caretColorSecondary: string;
|
|
844
850
|
filterCounterTextColor: string;
|
|
845
851
|
filterCounterTextColorDisabled: string;
|
|
852
|
+
filterCounterGap: string;
|
|
853
|
+
filterSuffixWrapperGap: string;
|
|
846
854
|
arrowColorSecondary: string;
|
|
847
855
|
clearColorSecondary: string;
|
|
856
|
+
loadingColorSecondary: string;
|
|
848
857
|
colorSecondary: string;
|
|
849
858
|
textColorSecondary: string;
|
|
850
859
|
borderSecondary: string;
|
|
@@ -1219,8 +1228,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1219
1228
|
caretColorSecondary: string;
|
|
1220
1229
|
filterCounterTextColor: string;
|
|
1221
1230
|
filterCounterTextColorDisabled: string;
|
|
1231
|
+
filterCounterGap: string;
|
|
1232
|
+
filterSuffixWrapperGap: string;
|
|
1222
1233
|
arrowColorSecondary: string;
|
|
1223
1234
|
clearColorSecondary: string;
|
|
1235
|
+
loadingColorSecondary: string;
|
|
1224
1236
|
colorSecondary: string;
|
|
1225
1237
|
textColorSecondary: string;
|
|
1226
1238
|
borderSecondary: string;
|
|
@@ -1473,8 +1485,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1473
1485
|
caretColorSecondary: string;
|
|
1474
1486
|
filterCounterTextColor: string;
|
|
1475
1487
|
filterCounterTextColorDisabled: string;
|
|
1488
|
+
filterCounterGap: string;
|
|
1489
|
+
filterSuffixWrapperGap: string;
|
|
1476
1490
|
arrowColorSecondary: string;
|
|
1477
1491
|
clearColorSecondary: string;
|
|
1492
|
+
loadingColorSecondary: string;
|
|
1478
1493
|
colorSecondary: string;
|
|
1479
1494
|
textColorSecondary: string;
|
|
1480
1495
|
borderSecondary: string;
|
|
@@ -1727,8 +1742,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1727
1742
|
caretColorSecondary: string;
|
|
1728
1743
|
filterCounterTextColor: string;
|
|
1729
1744
|
filterCounterTextColorDisabled: string;
|
|
1745
|
+
filterCounterGap: string;
|
|
1746
|
+
filterSuffixWrapperGap: string;
|
|
1730
1747
|
arrowColorSecondary: string;
|
|
1731
1748
|
clearColorSecondary: string;
|
|
1749
|
+
loadingColorSecondary: string;
|
|
1732
1750
|
colorSecondary: string;
|
|
1733
1751
|
textColorSecondary: string;
|
|
1734
1752
|
borderSecondary: string;
|
|
@@ -2068,8 +2086,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2068
2086
|
caretColorSecondary: string;
|
|
2069
2087
|
filterCounterTextColor: string;
|
|
2070
2088
|
filterCounterTextColorDisabled: string;
|
|
2089
|
+
filterCounterGap: string;
|
|
2090
|
+
filterSuffixWrapperGap: string;
|
|
2071
2091
|
arrowColorSecondary: string;
|
|
2072
2092
|
clearColorSecondary: string;
|
|
2093
|
+
loadingColorSecondary: string;
|
|
2073
2094
|
colorSecondary: string;
|
|
2074
2095
|
textColorSecondary: string;
|
|
2075
2096
|
borderSecondary: string;
|
|
@@ -2573,8 +2594,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2573
2594
|
caretColorSecondary: string;
|
|
2574
2595
|
filterCounterTextColor: string;
|
|
2575
2596
|
filterCounterTextColorDisabled: string;
|
|
2597
|
+
filterCounterGap: string;
|
|
2598
|
+
filterSuffixWrapperGap: string;
|
|
2576
2599
|
arrowColorSecondary: string;
|
|
2577
2600
|
clearColorSecondary: string;
|
|
2601
|
+
loadingColorSecondary: string;
|
|
2578
2602
|
colorSecondary: string;
|
|
2579
2603
|
textColorSecondary: string;
|
|
2580
2604
|
borderSecondary: string;
|
|
@@ -2827,8 +2851,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
2827
2851
|
caretColorSecondary: string;
|
|
2828
2852
|
filterCounterTextColor: string;
|
|
2829
2853
|
filterCounterTextColorDisabled: string;
|
|
2854
|
+
filterCounterGap: string;
|
|
2855
|
+
filterSuffixWrapperGap: string;
|
|
2830
2856
|
arrowColorSecondary: string;
|
|
2831
2857
|
clearColorSecondary: string;
|
|
2858
|
+
loadingColorSecondary: string;
|
|
2832
2859
|
colorSecondary: string;
|
|
2833
2860
|
textColorSecondary: string;
|
|
2834
2861
|
borderSecondary: string;
|
|
@@ -3081,8 +3108,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
3081
3108
|
caretColorSecondary: string;
|
|
3082
3109
|
filterCounterTextColor: string;
|
|
3083
3110
|
filterCounterTextColorDisabled: string;
|
|
3111
|
+
filterCounterGap: string;
|
|
3112
|
+
filterSuffixWrapperGap: string;
|
|
3084
3113
|
arrowColorSecondary: string;
|
|
3085
3114
|
clearColorSecondary: string;
|
|
3115
|
+
loadingColorSecondary: string;
|
|
3086
3116
|
colorSecondary: string;
|
|
3087
3117
|
textColorSecondary: string;
|
|
3088
3118
|
borderSecondary: string;
|
|
@@ -222,8 +222,11 @@ declare const treeSelectLight: import("../../_mixins/use-theme").Theme<"TreeSele
|
|
|
222
222
|
caretColorSecondary: string;
|
|
223
223
|
filterCounterTextColor: string;
|
|
224
224
|
filterCounterTextColorDisabled: string;
|
|
225
|
+
filterCounterGap: string;
|
|
226
|
+
filterSuffixWrapperGap: string;
|
|
225
227
|
arrowColorSecondary: string;
|
|
226
228
|
clearColorSecondary: string;
|
|
229
|
+
loadingColorSecondary: string;
|
|
227
230
|
colorSecondary: string;
|
|
228
231
|
textColorSecondary: string;
|
|
229
232
|
borderSecondary: string;
|
|
@@ -135,6 +135,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
135
135
|
widthSmall: string;
|
|
136
136
|
widthMedium: string;
|
|
137
137
|
widthLarge: string;
|
|
138
|
+
previewCardWidth: string;
|
|
139
|
+
previewCardHeight: string;
|
|
140
|
+
previewCardBorderRadius: string;
|
|
138
141
|
containerSecondary: string;
|
|
139
142
|
brandPrimary300: string;
|
|
140
143
|
elementsQuaternary: string;
|
|
@@ -408,6 +411,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
408
411
|
widthSmall: string;
|
|
409
412
|
widthMedium: string;
|
|
410
413
|
widthLarge: string;
|
|
414
|
+
previewCardWidth: string;
|
|
415
|
+
previewCardHeight: string;
|
|
416
|
+
previewCardBorderRadius: string;
|
|
411
417
|
containerSecondary: string;
|
|
412
418
|
brandPrimary300: string;
|
|
413
419
|
elementsQuaternary: string;
|
|
@@ -681,6 +687,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
681
687
|
widthSmall: string;
|
|
682
688
|
widthMedium: string;
|
|
683
689
|
widthLarge: string;
|
|
690
|
+
previewCardWidth: string;
|
|
691
|
+
previewCardHeight: string;
|
|
692
|
+
previewCardBorderRadius: string;
|
|
684
693
|
containerSecondary: string;
|
|
685
694
|
brandPrimary300: string;
|
|
686
695
|
elementsQuaternary: string;
|
|
@@ -975,6 +984,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
975
984
|
widthSmall: string;
|
|
976
985
|
widthMedium: string;
|
|
977
986
|
widthLarge: string;
|
|
987
|
+
previewCardWidth: string;
|
|
988
|
+
previewCardHeight: string;
|
|
989
|
+
previewCardBorderRadius: string;
|
|
978
990
|
containerSecondary: string;
|
|
979
991
|
brandPrimary300: string;
|
|
980
992
|
elementsQuaternary: string;
|
|
@@ -1378,6 +1390,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1378
1390
|
widthSmall: string;
|
|
1379
1391
|
widthMedium: string;
|
|
1380
1392
|
widthLarge: string;
|
|
1393
|
+
previewCardWidth: string;
|
|
1394
|
+
previewCardHeight: string;
|
|
1395
|
+
previewCardBorderRadius: string;
|
|
1381
1396
|
containerSecondary: string;
|
|
1382
1397
|
brandPrimary300: string;
|
|
1383
1398
|
elementsQuaternary: string;
|
|
@@ -1651,6 +1666,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1651
1666
|
widthSmall: string;
|
|
1652
1667
|
widthMedium: string;
|
|
1653
1668
|
widthLarge: string;
|
|
1669
|
+
previewCardWidth: string;
|
|
1670
|
+
previewCardHeight: string;
|
|
1671
|
+
previewCardBorderRadius: string;
|
|
1654
1672
|
containerSecondary: string;
|
|
1655
1673
|
brandPrimary300: string;
|
|
1656
1674
|
elementsQuaternary: string;
|
|
@@ -1924,6 +1942,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
1924
1942
|
widthSmall: string;
|
|
1925
1943
|
widthMedium: string;
|
|
1926
1944
|
widthLarge: string;
|
|
1945
|
+
previewCardWidth: string;
|
|
1946
|
+
previewCardHeight: string;
|
|
1947
|
+
previewCardBorderRadius: string;
|
|
1927
1948
|
containerSecondary: string;
|
|
1928
1949
|
brandPrimary300: string;
|
|
1929
1950
|
elementsQuaternary: string;
|
package/lib/upload/src/Upload.js
CHANGED
|
@@ -264,7 +264,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
264
264
|
}
|
|
265
265
|
const cssVarsRef = (0, vue_1.computed)(() => {
|
|
266
266
|
const { value: size } = formItem.mergedSizeRef;
|
|
267
|
-
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, draggerShadowFocus, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, [(0, _utils_1.createKey)('width', size)]: width } } = themeRef.value;
|
|
267
|
+
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, draggerShadowFocus, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, previewCardWidth, previewCardHeight, previewCardBorderRadius, [(0, _utils_1.createKey)('width', size)]: width } } = themeRef.value;
|
|
268
268
|
return {
|
|
269
269
|
'--u-bezier': cubicBezierEaseInOut,
|
|
270
270
|
'--u-border-radius': borderRadius,
|
|
@@ -293,7 +293,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
293
293
|
'--u-upload-dragger-width': width,
|
|
294
294
|
'--u-upload-info-bg-color': containerSecondary,
|
|
295
295
|
'--u-upload-preview-color': brandPrimary300,
|
|
296
|
-
'--u-upload-empty-border-color': elementsQuaternary
|
|
296
|
+
'--u-upload-empty-border-color': elementsQuaternary,
|
|
297
|
+
'--u-upload-preview-card-width': previewCardWidth,
|
|
298
|
+
'--u-upload-preview-card-height': previewCardHeight,
|
|
299
|
+
'--u-upload-preview-card-border-radius': previewCardBorderRadius
|
|
297
300
|
};
|
|
298
301
|
});
|
|
299
302
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -44,6 +44,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
44
|
widthSmall: string;
|
|
45
45
|
widthMedium: string;
|
|
46
46
|
widthLarge: string;
|
|
47
|
+
previewCardWidth: string;
|
|
48
|
+
previewCardHeight: string;
|
|
49
|
+
previewCardBorderRadius: string;
|
|
47
50
|
containerSecondary: string;
|
|
48
51
|
brandPrimary300: string;
|
|
49
52
|
elementsQuaternary: string;
|
|
@@ -332,6 +335,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
332
335
|
widthSmall: string;
|
|
333
336
|
widthMedium: string;
|
|
334
337
|
widthLarge: string;
|
|
338
|
+
previewCardWidth: string;
|
|
339
|
+
previewCardHeight: string;
|
|
340
|
+
previewCardBorderRadius: string;
|
|
335
341
|
containerSecondary: string;
|
|
336
342
|
brandPrimary300: string;
|
|
337
343
|
elementsQuaternary: string;
|
|
@@ -19,7 +19,8 @@ const utils_1 = require("./utils");
|
|
|
19
19
|
const buttonThemeOverrides = {
|
|
20
20
|
paddingMedium: '0 3px',
|
|
21
21
|
heightMedium: '24px',
|
|
22
|
-
iconSizeMedium: '18px'
|
|
22
|
+
iconSizeMedium: '18px',
|
|
23
|
+
textColor: '#101010'
|
|
23
24
|
};
|
|
24
25
|
exports.default = (0, vue_1.defineComponent)({
|
|
25
26
|
name: 'UploadFile',
|
|
@@ -92,7 +93,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
92
93
|
const { file: { status }, listType } = props;
|
|
93
94
|
if (!['finished'].includes(status))
|
|
94
95
|
return false;
|
|
95
|
-
if (listType === 'preview-list') {
|
|
96
|
+
if (listType === 'preview-list' || listType === 'preview-card') {
|
|
96
97
|
return UUpload.isFilePreviewable(props.file);
|
|
97
98
|
}
|
|
98
99
|
return !!mergedThumbnailUrlRef.value && listType === 'image-card';
|
|
@@ -168,7 +169,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
168
169
|
if (onPreview) {
|
|
169
170
|
onPreview(props.file);
|
|
170
171
|
}
|
|
171
|
-
else if (props.listType === 'preview-list'
|
|
172
|
+
else if (props.listType === 'preview-list'
|
|
173
|
+
|| props.listType === 'preview-card') {
|
|
172
174
|
UUpload.openFilePreview(props.file);
|
|
173
175
|
}
|
|
174
176
|
else if (props.listType === 'image-card') {
|
|
@@ -237,9 +239,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
237
239
|
capitalizeFirstLetter: this.capitalizeFirstLetter
|
|
238
240
|
});
|
|
239
241
|
const imageCardTypes = ['image-card', 'image'];
|
|
240
|
-
return ((0, vue_1.h)(spin_1.USpin, { color: "tertiary", description: this.localeRef.uploading, show: this.showProgress, class: [
|
|
242
|
+
return ((0, vue_1.h)(spin_1.USpin, { color: "tertiary", size: listType === 'preview-card' ? 24 : undefined, description: listType === 'preview-card' ? undefined : this.localeRef.uploading, show: this.showProgress, class: [
|
|
241
243
|
!this.vertical
|
|
242
244
|
&& !imageCardTypes.includes(listType)
|
|
245
|
+
&& listType !== 'preview-card'
|
|
243
246
|
&& `${clsPrefix}-upload-file-loader--default`
|
|
244
247
|
] }, {
|
|
245
248
|
default: () => ((0, vue_1.h)("div", { class: [
|
|
@@ -249,26 +252,31 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
249
252
|
&& file.status !== 'error'
|
|
250
253
|
&& imageCardTypes.includes(listType)
|
|
251
254
|
&& `${clsPrefix}-upload-file--with-url`,
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
+
listType !== 'preview-card'
|
|
256
|
+
&& `${clsPrefix}-upload-file--${listType === 'image' || listType === 'image-card'
|
|
257
|
+
? 'image-card'
|
|
258
|
+
: 'text'}-type`,
|
|
255
259
|
listType === 'preview-list'
|
|
256
|
-
&& `${clsPrefix}-upload-file--preview-list-type
|
|
260
|
+
&& `${clsPrefix}-upload-file--preview-list-type`,
|
|
261
|
+
listType === 'preview-card'
|
|
262
|
+
&& `${clsPrefix}-upload-file--preview-card-type`
|
|
257
263
|
] },
|
|
258
264
|
(0, vue_1.h)("div", { class: [
|
|
259
265
|
`${clsPrefix}-upload-file-info`,
|
|
260
266
|
imageCardTypes.includes(listType)
|
|
261
267
|
&& `${clsPrefix}-upload-file-info--vertical`
|
|
262
268
|
] },
|
|
263
|
-
|
|
264
|
-
|
|
269
|
+
listType === 'preview-card'
|
|
270
|
+
? (0, vue_1.cloneVNode)(icon, { onClick: this.handlePreviewClick })
|
|
271
|
+
: icon,
|
|
272
|
+
listType !== 'preview-card' && ((0, vue_1.h)("div", { class: `${clsPrefix}-upload-file-info__name` },
|
|
265
273
|
(0, vue_1.h)(vue_1.Fragment, null,
|
|
266
274
|
(0, vue_1.h)("span", { onClick: this.handlePreviewClick }, this.$slots['upload-file-title']
|
|
267
275
|
? this.$slots['upload-file-title']({ file })
|
|
268
276
|
: file.name),
|
|
269
277
|
(0, vue_1.h)("span", { onClick: this.handlePreviewClick }, this.$slots['upload-file-subtitle']
|
|
270
278
|
? this.$slots['upload-file-subtitle']({ file })
|
|
271
|
-
: ''))),
|
|
279
|
+
: '')))),
|
|
272
280
|
actionsNode),
|
|
273
281
|
this.showProgress && ((0, vue_1.h)("div", { class: `${clsPrefix}-upload-file-overlay` }))))
|
|
274
282
|
}));
|
|
@@ -20,6 +20,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
20
20
|
const { abstractRef, mergedClsPrefixRef, listTypeRef, mergedFileListRef, fileListClassRef, fileListStyleRef, cssVarsRef, themeClassRef, maxReachedRef, showTriggerRef, imageGroupPropsRef, previewSrcListRef, previewShowRef, previewCurrentRef } = UUpload;
|
|
21
21
|
const isImageCardTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'image-card' || listTypeRef.value === 'image');
|
|
22
22
|
const isPreviewListTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'preview-list');
|
|
23
|
+
const isPreviewCardTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'preview-card');
|
|
23
24
|
const renderFileList = () => mergedFileListRef.value.map(file => ((0, vue_1.h)(UploadFile_1.default, { clsPrefix: mergedClsPrefixRef.value, key: file.id, file: file, listType: listTypeRef.value }, slots)));
|
|
24
25
|
const renderUploadFileList = () => isImageCardTypeRef.value ? ((0, vue_1.h)(image_1.UImageGroup, Object.assign({}, imageGroupPropsRef.value), { default: renderFileList })) : ((0, vue_1.h)(_internal_1.UFadeInExpandTransition, { group: true }, {
|
|
25
26
|
default: renderFileList
|
|
@@ -36,6 +37,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
36
37
|
`${mergedClsPrefix}-upload-file-list`,
|
|
37
38
|
isImageCardTypeRef.value
|
|
38
39
|
&& `${mergedClsPrefix}-upload-file-list--grid`,
|
|
40
|
+
isPreviewCardTypeRef.value
|
|
41
|
+
&& `${mergedClsPrefix}-upload-file-list--preview-card-grid`,
|
|
39
42
|
fileListClassRef.value,
|
|
40
43
|
abstract ? themeClassRef === null || themeClassRef === void 0 ? void 0 : themeClassRef.value : undefined
|
|
41
44
|
], style: [
|
|
@@ -43,7 +46,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
43
46
|
fileListStyleRef.value
|
|
44
47
|
] },
|
|
45
48
|
renderUploadFileList(),
|
|
46
|
-
isPreviewListTypeRef.value
|
|
49
|
+
(isPreviewListTypeRef.value || isPreviewCardTypeRef.value)
|
|
50
|
+
&& renderPreview(),
|
|
47
51
|
showTriggerRef.value
|
|
48
52
|
&& !maxReachedRef.value
|
|
49
53
|
&& isImageCardTypeRef.value && ((0, vue_1.h)(UploadTrigger_1.default, null, slots))));
|
|
@@ -39,6 +39,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
39
39
|
widthSmall: string;
|
|
40
40
|
widthMedium: string;
|
|
41
41
|
widthLarge: string;
|
|
42
|
+
previewCardWidth: string;
|
|
43
|
+
previewCardHeight: string;
|
|
44
|
+
previewCardBorderRadius: string;
|
|
42
45
|
containerSecondary: string;
|
|
43
46
|
brandPrimary300: string;
|
|
44
47
|
elementsQuaternary: string;
|
|
@@ -327,6 +330,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
327
330
|
widthSmall: string;
|
|
328
331
|
widthMedium: string;
|
|
329
332
|
widthLarge: string;
|
|
333
|
+
previewCardWidth: string;
|
|
334
|
+
previewCardHeight: string;
|
|
335
|
+
previewCardBorderRadius: string;
|
|
330
336
|
containerSecondary: string;
|
|
331
337
|
brandPrimary300: string;
|
|
332
338
|
elementsQuaternary: string;
|
|
@@ -225,7 +225,7 @@ export type FuncOrRecordOrUndef<T = string> = Record<string, T> | (({ file }: {
|
|
|
225
225
|
file: SettledFileInfo;
|
|
226
226
|
}) => Record<string, T>) | undefined;
|
|
227
227
|
export type IsErrorState = (xhr: XMLHttpRequest) => boolean;
|
|
228
|
-
export type ListType = 'text' | 'image' | 'image-card' | 'preview-list';
|
|
228
|
+
export type ListType = 'text' | 'image' | 'image-card' | 'preview-list' | 'preview-card';
|
|
229
229
|
export type OnBeforeUpload = (data: OnBeforeUploadPayload) => Promise<boolean | void> | boolean | void;
|
|
230
230
|
export type OnChange = (data: OnChangePayload) => void;
|
|
231
231
|
export type OnDownload = (file: SettledFileInfo) => Promise<boolean> | boolean | any;
|
|
@@ -384,6 +384,9 @@ export declare const uploadProps: {
|
|
|
384
384
|
widthSmall: string;
|
|
385
385
|
widthMedium: string;
|
|
386
386
|
widthLarge: string;
|
|
387
|
+
previewCardWidth: string;
|
|
388
|
+
previewCardHeight: string;
|
|
389
|
+
previewCardBorderRadius: string;
|
|
387
390
|
containerSecondary: string;
|
|
388
391
|
brandPrimary300: string;
|
|
389
392
|
elementsQuaternary: string;
|
|
@@ -657,6 +660,9 @@ export declare const uploadProps: {
|
|
|
657
660
|
widthSmall: string;
|
|
658
661
|
widthMedium: string;
|
|
659
662
|
widthLarge: string;
|
|
663
|
+
previewCardWidth: string;
|
|
664
|
+
previewCardHeight: string;
|
|
665
|
+
previewCardBorderRadius: string;
|
|
660
666
|
containerSecondary: string;
|
|
661
667
|
brandPrimary300: string;
|
|
662
668
|
elementsQuaternary: string;
|
|
@@ -930,6 +936,9 @@ export declare const uploadProps: {
|
|
|
930
936
|
widthSmall: string;
|
|
931
937
|
widthMedium: string;
|
|
932
938
|
widthLarge: string;
|
|
939
|
+
previewCardWidth: string;
|
|
940
|
+
previewCardHeight: string;
|
|
941
|
+
previewCardBorderRadius: string;
|
|
933
942
|
containerSecondary: string;
|
|
934
943
|
brandPrimary300: string;
|
|
935
944
|
elementsQuaternary: string;
|
|
@@ -112,6 +112,10 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width: var(--u-upload
|
|
|
112
112
|
grid-template-columns: repeat(auto-fill, 238px);
|
|
113
113
|
grid-gap: 8px;
|
|
114
114
|
margin-top: 0;
|
|
115
|
+
`), (0, cssr_1.cM)('preview-card-grid', `
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-template-columns: repeat(auto-fill, var(--u-upload-preview-card-width));
|
|
118
|
+
grid-gap: 8px;
|
|
115
119
|
`), (0, cssr_1.cB)('upload-file', `
|
|
116
120
|
display: block;
|
|
117
121
|
box-sizing: border-box;
|
|
@@ -130,6 +134,11 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width: var(--u-upload
|
|
|
130
134
|
`), (0, cssr_1.cE)('action', `
|
|
131
135
|
opacity: 1;
|
|
132
136
|
z-index: 10;
|
|
137
|
+
`)])]), (0, cssr_1.cM)('preview-card-type', [(0, cssr_1.cB)('upload-file-info', [(0, cssr_1.cE)('preview', `
|
|
138
|
+
filter: blur(3px);
|
|
139
|
+
`), (0, cssr_1.cE)('action', `
|
|
140
|
+
opacity: 1;
|
|
141
|
+
z-index: 10;
|
|
133
142
|
`)])])]), (0, cssr_1.cM)('text-type', `
|
|
134
143
|
border: var(--u-item-border-image-card);
|
|
135
144
|
margin-bottom: 12px;
|
|
@@ -214,6 +223,8 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width: var(--u-upload
|
|
|
214
223
|
background-color: var(--u-item-color-hover-error);
|
|
215
224
|
`), (0, cssr_1.cB)('upload-file-info', [(0, cssr_1.cE)('name', 'color: var(--u-item-text-color-error);'), (0, cssr_1.cE)('thumbnail', 'color: var(--u-item-text-color-error);')]), (0, cssr_1.cM)('image-card-type', `
|
|
216
225
|
border: var(--u-item-border-image-card-error);
|
|
226
|
+
`), (0, cssr_1.cM)('preview-card-type', `
|
|
227
|
+
border: var(--u-item-border-image-card-error);
|
|
217
228
|
`)]), (0, cssr_1.cM)('with-url', `
|
|
218
229
|
cursor: pointer;
|
|
219
230
|
`, [(0, cssr_1.cB)('upload-file-info', [(0, cssr_1.cE)('name', `
|
|
@@ -370,7 +381,79 @@ exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width: var(--u-upload
|
|
|
370
381
|
`), (0, cssr_1.c)(':nth-child(3)', `
|
|
371
382
|
font-size: 12px;
|
|
372
383
|
color: var(--u-item-text-color-success);
|
|
373
|
-
`)])])
|
|
384
|
+
`)])]), (0, cssr_1.cM)('preview-card-type', `
|
|
385
|
+
position: relative;
|
|
386
|
+
width: var(--u-upload-preview-card-width);
|
|
387
|
+
height: var(--u-upload-preview-card-height);
|
|
388
|
+
border: var(--u-item-border-image-card);
|
|
389
|
+
border-radius: var(--u-upload-preview-card-border-radius);
|
|
390
|
+
background-color: var(--u-upload-info-bg-color);
|
|
391
|
+
overflow: hidden;
|
|
392
|
+
transition: border-color .3s var(--u-bezier), background-color .3s var(--u-bezier);
|
|
393
|
+
`, [(0, cssr_1.cB)('upload-file-overlay', `
|
|
394
|
+
border-radius: inherit;
|
|
395
|
+
`), (0, cssr_1.cB)('upload-file-info', `
|
|
396
|
+
padding-top: 0;
|
|
397
|
+
padding-bottom: 0;
|
|
398
|
+
width: 100%;
|
|
399
|
+
height: 100%;
|
|
400
|
+
justify-content: center;
|
|
401
|
+
`, [(0, cssr_1.cE)('thumbnail', `
|
|
402
|
+
width: 100%;
|
|
403
|
+
height: 100%;
|
|
404
|
+
cursor: pointer;
|
|
405
|
+
`, [(0, cssr_1.cM)('icon', `
|
|
406
|
+
display: flex;
|
|
407
|
+
align-items: flex-start;
|
|
408
|
+
justify-content: center;
|
|
409
|
+
background-color: transparent;
|
|
410
|
+
border-radius: 0;
|
|
411
|
+
margin-right: 0;
|
|
412
|
+
width: 100%;
|
|
413
|
+
height: 100%;
|
|
414
|
+
`)]), (0, cssr_1.cE)('preview', `
|
|
415
|
+
flex-shrink: 0;
|
|
416
|
+
width: 56px;
|
|
417
|
+
height: 67px;
|
|
418
|
+
margin-top: 16px;
|
|
419
|
+
border-radius: 7px;
|
|
420
|
+
transition: filter .2s var(--u-bezier);
|
|
421
|
+
`, [(0, cssr_1.cB)('upload-file-info__preview--ext', `
|
|
422
|
+
font-size: 8px;
|
|
423
|
+
line-height: 10px;
|
|
424
|
+
font-weight: 700;
|
|
425
|
+
top: 6px;
|
|
426
|
+
left: 6px;
|
|
427
|
+
`), (0, cssr_1.cB)('upload-file-info__preview--content', `
|
|
428
|
+
top: 29px;
|
|
429
|
+
left: 6px;
|
|
430
|
+
width: 43px;
|
|
431
|
+
height: 3px;
|
|
432
|
+
border-radius: 2px;
|
|
433
|
+
`, [(0, cssr_1.c)('&::before', `
|
|
434
|
+
top: -6px;
|
|
435
|
+
width: 43px;
|
|
436
|
+
height: 3px;
|
|
437
|
+
border-radius: 2px;
|
|
438
|
+
`), (0, cssr_1.c)('&::after', `
|
|
439
|
+
top: 6px;
|
|
440
|
+
width: 24px;
|
|
441
|
+
height: 3px;
|
|
442
|
+
border-radius: 2px;
|
|
443
|
+
`)])]), (0, cssr_1.cE)('action', `
|
|
444
|
+
padding-top: 0;
|
|
445
|
+
padding-bottom: 0;
|
|
446
|
+
z-index: 2;
|
|
447
|
+
`, [(0, cssr_1.cB)('button', `
|
|
448
|
+
width: 24px;
|
|
449
|
+
height: 24px;
|
|
450
|
+
min-width: 24px;
|
|
451
|
+
padding: 0;
|
|
452
|
+
border-radius: 50%;
|
|
453
|
+
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.08);
|
|
454
|
+
`, [(0, cssr_1.cB)('base-icon', `
|
|
455
|
+
font-size: 16px;
|
|
456
|
+
`)])])])])])]), (0, cssr_1.cB)('upload-file-input', `
|
|
374
457
|
display: block;
|
|
375
458
|
width: 0;
|
|
376
459
|
height: 0;
|
|
@@ -12,8 +12,16 @@ function useUploadActionsRender(options) {
|
|
|
12
12
|
return i === -1 || i === name.length - 1 ? '' : name.slice(i + 1);
|
|
13
13
|
};
|
|
14
14
|
const isImageType = ['image', 'image-card'].includes(listType);
|
|
15
|
+
const isPreviewCardType = listType === 'preview-card';
|
|
15
16
|
const fileExt = getExt(file.name);
|
|
16
17
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
18
|
+
const showRetry = showRetryButton && !disabled;
|
|
19
|
+
const showDownload = showDownloadButton && !isPreviewCardType;
|
|
20
|
+
const showRemoveOrCancel = (showRemoveButton || showCancelButton)
|
|
21
|
+
&& !disabled
|
|
22
|
+
&& !(isPreviewCardType && showRetry);
|
|
23
|
+
const showPreview = showPreviewButton
|
|
24
|
+
&& !(isPreviewCardType && (showRetry || showRemoveOrCancel));
|
|
17
25
|
const fallbackIcon = (0, vue_1.h)('div', {
|
|
18
26
|
class: [
|
|
19
27
|
`${clsPrefix}-upload-file-info__thumbnail`,
|
|
@@ -38,10 +46,14 @@ function useUploadActionsRender(options) {
|
|
|
38
46
|
const actionsNode = (0, vue_1.h)('div', {
|
|
39
47
|
class: [
|
|
40
48
|
`${clsPrefix}-upload-file-info__action`,
|
|
41
|
-
`${clsPrefix}-upload-file--${isImageType
|
|
49
|
+
`${clsPrefix}-upload-file--${isImageType
|
|
50
|
+
? 'image-card'
|
|
51
|
+
: isPreviewCardType
|
|
52
|
+
? 'preview-card'
|
|
53
|
+
: 'text'}-type`
|
|
42
54
|
]
|
|
43
55
|
}, [
|
|
44
|
-
|
|
56
|
+
showPreview
|
|
45
57
|
&& (0, vue_1.h)(button_1.UButton, {
|
|
46
58
|
key: 'preview',
|
|
47
59
|
quaternary: true,
|
|
@@ -53,8 +65,7 @@ function useUploadActionsRender(options) {
|
|
|
53
65
|
}, {
|
|
54
66
|
icon: () => (0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix }, { default: () => (0, vue_1.h)(icons_1.EyeIcon) })
|
|
55
67
|
}),
|
|
56
|
-
|
|
57
|
-
&& !disabled
|
|
68
|
+
showRemoveOrCancel
|
|
58
69
|
&& (0, vue_1.h)(button_1.UButton, {
|
|
59
70
|
key: 'cancelOrTrash',
|
|
60
71
|
quaternary: true,
|
|
@@ -70,8 +81,7 @@ function useUploadActionsRender(options) {
|
|
|
70
81
|
: (0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix, key: 'cancel' }, { default: () => (0, vue_1.h)(icons_1.CancelIcon) })
|
|
71
82
|
})
|
|
72
83
|
}),
|
|
73
|
-
|
|
74
|
-
&& !disabled
|
|
84
|
+
showRetry
|
|
75
85
|
&& (0, vue_1.h)(button_1.UButton, {
|
|
76
86
|
key: 'retry',
|
|
77
87
|
quaternary: true,
|
|
@@ -83,7 +93,7 @@ function useUploadActionsRender(options) {
|
|
|
83
93
|
}, {
|
|
84
94
|
icon: () => (0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix }, { default: () => (0, vue_1.h)(icons_1.RetryIcon) })
|
|
85
95
|
}),
|
|
86
|
-
|
|
96
|
+
showDownload
|
|
87
97
|
&& (0, vue_1.h)(button_1.UButton, {
|
|
88
98
|
key: 'download',
|
|
89
99
|
quaternary: true,
|
|
@@ -25,6 +25,9 @@ export declare function self(vars: ThemeCommonVars): {
|
|
|
25
25
|
widthSmall: string;
|
|
26
26
|
widthMedium: string;
|
|
27
27
|
widthLarge: string;
|
|
28
|
+
previewCardWidth: string;
|
|
29
|
+
previewCardHeight: string;
|
|
30
|
+
previewCardBorderRadius: string;
|
|
28
31
|
containerSecondary: string;
|
|
29
32
|
brandPrimary300: string;
|
|
30
33
|
elementsQuaternary: string;
|
|
@@ -56,6 +59,9 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
56
59
|
widthSmall: string;
|
|
57
60
|
widthMedium: string;
|
|
58
61
|
widthLarge: string;
|
|
62
|
+
previewCardWidth: string;
|
|
63
|
+
previewCardHeight: string;
|
|
64
|
+
previewCardBorderRadius: string;
|
|
59
65
|
containerSecondary: string;
|
|
60
66
|
brandPrimary300: string;
|
|
61
67
|
elementsQuaternary: string;
|
|
@@ -7,7 +7,7 @@ const common_1 = require("../../_styles/common");
|
|
|
7
7
|
const styles_1 = require("../../button/styles");
|
|
8
8
|
const styles_2 = require("../../progress/styles");
|
|
9
9
|
function self(vars) {
|
|
10
|
-
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, containerSecondary, brandPrimary300, brandPrimary500 } = vars;
|
|
10
|
+
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, borderRadiusSmall, containerSecondary, brandPrimary300, brandPrimary500 } = vars;
|
|
11
11
|
return {
|
|
12
12
|
baseColor: containerPrimary,
|
|
13
13
|
fontSize: fontBodyMedium,
|
|
@@ -36,6 +36,9 @@ function self(vars) {
|
|
|
36
36
|
widthSmall: '140px',
|
|
37
37
|
widthMedium: 'auto',
|
|
38
38
|
widthLarge: 'auto',
|
|
39
|
+
previewCardWidth: '80px',
|
|
40
|
+
previewCardHeight: '72px',
|
|
41
|
+
previewCardBorderRadius: borderRadiusSmall,
|
|
39
42
|
containerSecondary,
|
|
40
43
|
brandPrimary300,
|
|
41
44
|
elementsQuaternary
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.4.
|
|
1
|
+
declare const _default: "2.4.4";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED