@uzum-tech/ui 1.8.1 → 1.9.0
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 +847 -249
- package/dist/index.prod.js +3 -3
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
- package/es/_internal/scrollbar/src/Scrollbar.js +121 -68
- package/es/_internal/scrollbar/src/styles/index.cssr.js +32 -15
- package/es/_internal/scrollbar/styles/common.d.ts +7 -0
- package/es/_internal/scrollbar/styles/common.js +7 -0
- package/es/_internal/scrollbar/styles/light.d.ts +8 -0
- package/es/_internal/scrollbar/styles/light.js +3 -5
- package/es/_internal/select-menu/src/SelectMenu.d.ts +57 -1
- package/es/_internal/select-menu/styles/light.d.ts +8 -0
- package/es/_internal/selection/src/Selection.d.ts +3 -1
- package/es/_internal/selection/src/Selection.js +3 -1
- package/es/_utils/css/index.d.ts +1 -0
- package/es/_utils/css/index.js +1 -0
- package/es/_utils/css/rtl-inset.d.ts +1 -0
- package/es/_utils/css/rtl-inset.js +5 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/auto-complete/src/AutoComplete.d.ts +88 -0
- package/es/auto-complete/styles/light.d.ts +8 -0
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/button/src/Button.d.ts +72 -0
- package/es/button/src/Button.js +13 -7
- package/es/button/src/styles/index.cssr.js +1 -2
- package/es/button/styles/light.d.ts +8 -0
- package/es/button/styles/light.js +7 -7
- package/es/calendar/src/Calendar.d.ts +80 -0
- package/es/calendar/styles/light.d.ts +8 -0
- package/es/cascader/src/Cascader.d.ts +168 -0
- package/es/cascader/src/CascaderMenu.d.ts +24 -0
- package/es/cascader/src/CascaderOption.d.ts +24 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +24 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +25 -1
- package/es/cascader/styles/light.d.ts +16 -0
- package/es/chat/src/Chat.d.ts +175 -7
- package/es/chat/src/Chat.js +11 -12
- package/es/chat/src/ChatListItems.d.ts +192 -0
- package/es/chat/src/ChatListItems.js +4 -1
- package/es/chat/src/ChatMessages.d.ts +192 -0
- package/es/chat/src/styles/index.cssr.js +1 -3
- package/es/chat/styles/dark.d.ts +16 -0
- package/es/chat/styles/light.d.ts +16 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/es/color-picker/src/ColorPicker.d.ts +72 -0
- package/es/color-picker/styles/light.d.ts +8 -0
- package/es/components.d.ts +2 -0
- package/es/components.js +2 -0
- package/es/data-table/src/DataTable.d.ts +240 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
- package/es/data-table/src/TableParts/Body.d.ts +49 -1
- package/es/data-table/src/TableParts/Header.d.ts +48 -0
- package/es/data-table/src/interface.d.ts +96 -0
- package/es/data-table/styles/light.d.ts +32 -0
- package/es/date-picker/src/DatePicker.d.ts +339 -3
- package/es/date-picker/src/panel/date.d.ts +49 -1
- package/es/date-picker/src/panel/daterange.d.ts +50 -2
- package/es/date-picker/src/panel/datetime.d.ts +49 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +50 -2
- package/es/date-picker/src/panel/panelMonth.d.ts +98 -2
- package/es/date-picker/src/panel/panelMonthContent.d.ts +49 -1
- package/es/date-picker/src/panel/panelYear.d.ts +98 -2
- package/es/date-picker/src/panel/panelYearContent.d.ts +49 -1
- package/es/date-picker/src/panel/use-calendar.d.ts +48 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +48 -0
- package/es/date-picker/styles/light.d.ts +32 -0
- package/es/dialog/src/Dialog.d.ts +56 -0
- package/es/dialog/src/DialogProvider.d.ts +18 -2
- package/es/dialog/styles/light.d.ts +8 -0
- package/es/drawer/src/Drawer.d.ts +81 -1
- package/es/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/es/drawer/src/DrawerContent.d.ts +8 -0
- package/es/drawer/styles/light.d.ts +8 -0
- package/es/dropdown/src/Dropdown.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/es/dynamic-input/src/InputPreset.d.ts +8 -0
- package/es/dynamic-input/src/PairPreset.d.ts +8 -0
- package/es/dynamic-input/styles/light.d.ts +8 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/es/dynamic-tags/styles/light.d.ts +8 -0
- package/es/infinite-scroll/index.d.ts +2 -0
- package/es/infinite-scroll/index.js +1 -0
- package/es/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
- package/es/infinite-scroll/src/InfiniteScroll.js +78 -0
- package/es/input-number/src/InputNumber.d.ts +80 -0
- package/es/input-number/styles/light.d.ts +8 -0
- package/es/layout/src/Layout.d.ts +112 -0
- package/es/layout/src/LayoutContent.d.ts +56 -0
- package/es/layout/src/LayoutFooter.d.ts +72 -0
- package/es/layout/src/LayoutHeader.d.ts +48 -0
- package/es/layout/src/LayoutSider.d.ts +56 -0
- package/es/layout/styles/light.d.ts +8 -0
- package/es/legacy-transfer/src/Transfer.d.ts +160 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +16 -0
- package/es/legacy-transfer/src/TransferList.d.ts +17 -1
- package/es/legacy-transfer/src/TransferListItem.d.ts +16 -0
- package/es/legacy-transfer/styles/light.d.ts +16 -0
- package/es/log/src/Log.d.ts +80 -0
- package/es/log/styles/light.d.ts +8 -0
- package/es/mention/src/Mention.d.ts +88 -0
- package/es/mention/styles/light.d.ts +8 -0
- package/es/menu/src/Menu.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +25 -1
- package/es/modal/src/Modal.d.ts +145 -1
- package/es/modal/styles/light.d.ts +16 -0
- package/es/notification/src/Notification.d.ts +5 -0
- package/es/notification/src/Notification.js +16 -6
- package/es/notification/src/NotificationContainer.d.ts +20 -0
- package/es/notification/src/NotificationProvider.d.ts +180 -0
- package/es/notification/src/styles/index.cssr.js +12 -8
- package/es/notification/styles/light.d.ts +32 -0
- package/es/notification/styles/light.js +9 -8
- package/es/pagination/src/Pagination.d.ts +176 -0
- package/es/pagination/styles/light.d.ts +16 -0
- package/es/popconfirm/src/Popconfirm.d.ts +80 -0
- package/es/popconfirm/styles/light.d.ts +8 -0
- package/es/popselect/src/Popselect.d.ts +88 -0
- package/es/popselect/src/PopselectPanel.d.ts +16 -0
- package/es/popselect/styles/light.d.ts +8 -0
- package/es/scrollbar/src/Scrollbar.d.ts +72 -0
- package/es/select/src/Select.d.ts +88 -0
- package/es/select/styles/light.d.ts +8 -0
- package/es/time-picker/src/Panel.d.ts +16 -0
- package/es/time-picker/src/TimePicker.d.ts +160 -0
- package/es/time-picker/styles/light.d.ts +16 -0
- package/es/transfer/src/Transfer.d.ts +160 -0
- package/es/transfer/src/TransferFilter.d.ts +16 -0
- package/es/transfer/src/TransferList.d.ts +17 -1
- package/es/transfer/src/TransferListItem.d.ts +16 -0
- package/es/transfer/styles/light.d.ts +16 -0
- package/es/tree/src/Tree.d.ts +82 -2
- package/es/tree/src/TreeNodeCheckbox.d.ts +8 -0
- package/es/tree/styles/light.d.ts +8 -0
- package/es/tree-select/src/TreeSelect.d.ts +89 -1
- package/es/tree-select/styles/light.d.ts +8 -0
- package/es/upload/src/Upload.d.ts +90 -0
- package/es/upload/src/Upload.js +2 -1
- package/es/upload/src/UploadFile.d.ts +9 -0
- package/es/upload/src/UploadProgress.d.ts +9 -0
- package/es/upload/src/styles/index.cssr.js +1 -0
- package/es/upload/src/useUploadActionsRender.js +5 -1
- package/es/upload/styles/light.d.ts +10 -0
- package/es/upload/styles/light.js +6 -5
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/index.d.ts +2 -0
- package/es/virtual-list/index.js +1 -0
- package/es/virtual-list/src/VirtualList.d.ts +146 -0
- package/es/virtual-list/src/VirtualList.js +103 -0
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +119 -17
- package/lib/_internal/scrollbar/src/Scrollbar.js +118 -65
- package/lib/_internal/scrollbar/src/styles/index.cssr.js +32 -15
- package/lib/_internal/scrollbar/styles/common.d.ts +7 -0
- package/lib/_internal/scrollbar/styles/common.js +10 -0
- package/lib/_internal/scrollbar/styles/light.d.ts +8 -0
- package/lib/_internal/scrollbar/styles/light.js +3 -5
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +57 -1
- package/lib/_internal/select-menu/styles/light.d.ts +8 -0
- package/lib/_internal/selection/src/Selection.d.ts +3 -1
- package/lib/_internal/selection/src/Selection.js +3 -1
- package/lib/_utils/css/index.d.ts +1 -0
- package/lib/_utils/css/index.js +3 -1
- package/lib/_utils/css/rtl-inset.d.ts +1 -0
- package/lib/_utils/css/rtl-inset.js +8 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/auto-complete/src/AutoComplete.d.ts +88 -0
- package/lib/auto-complete/styles/light.d.ts +8 -0
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/button/src/Button.d.ts +72 -0
- package/lib/button/src/Button.js +13 -7
- package/lib/button/src/styles/index.cssr.js +1 -2
- package/lib/button/styles/light.d.ts +8 -0
- package/lib/button/styles/light.js +7 -7
- package/lib/calendar/src/Calendar.d.ts +80 -0
- package/lib/calendar/styles/light.d.ts +8 -0
- package/lib/cascader/src/Cascader.d.ts +168 -0
- package/lib/cascader/src/CascaderMenu.d.ts +24 -0
- package/lib/cascader/src/CascaderOption.d.ts +24 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +24 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +25 -1
- package/lib/cascader/styles/light.d.ts +16 -0
- package/lib/chat/src/Chat.d.ts +175 -7
- package/lib/chat/src/Chat.js +11 -12
- package/lib/chat/src/ChatListItems.d.ts +192 -0
- package/lib/chat/src/ChatListItems.js +4 -1
- package/lib/chat/src/ChatMessages.d.ts +192 -0
- package/lib/chat/src/styles/index.cssr.js +1 -3
- package/lib/chat/styles/dark.d.ts +16 -0
- package/lib/chat/styles/light.d.ts +16 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +8 -0
- package/lib/color-picker/src/ColorPicker.d.ts +72 -0
- package/lib/color-picker/styles/light.d.ts +8 -0
- package/lib/components.d.ts +2 -0
- package/lib/components.js +2 -0
- package/lib/data-table/src/DataTable.d.ts +240 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +48 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +48 -0
- package/lib/data-table/src/TableParts/Body.d.ts +49 -1
- package/lib/data-table/src/TableParts/Header.d.ts +48 -0
- package/lib/data-table/src/interface.d.ts +96 -0
- package/lib/data-table/styles/light.d.ts +32 -0
- package/lib/date-picker/src/DatePicker.d.ts +339 -3
- package/lib/date-picker/src/panel/date.d.ts +49 -1
- package/lib/date-picker/src/panel/daterange.d.ts +50 -2
- package/lib/date-picker/src/panel/datetime.d.ts +49 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +50 -2
- package/lib/date-picker/src/panel/panelMonth.d.ts +98 -2
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +49 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +98 -2
- package/lib/date-picker/src/panel/panelYearContent.d.ts +49 -1
- package/lib/date-picker/src/panel/use-calendar.d.ts +48 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +48 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +48 -0
- package/lib/date-picker/styles/light.d.ts +32 -0
- package/lib/dialog/src/Dialog.d.ts +56 -0
- package/lib/dialog/src/DialogProvider.d.ts +18 -2
- package/lib/dialog/styles/light.d.ts +8 -0
- package/lib/drawer/src/Drawer.d.ts +81 -1
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +9 -1
- package/lib/drawer/src/DrawerContent.d.ts +8 -0
- package/lib/drawer/styles/light.d.ts +8 -0
- package/lib/dropdown/src/Dropdown.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +80 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +8 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +8 -0
- package/lib/dynamic-input/styles/light.d.ts +8 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +80 -0
- package/lib/dynamic-tags/styles/light.d.ts +8 -0
- package/lib/infinite-scroll/index.d.ts +2 -0
- package/lib/infinite-scroll/index.js +9 -0
- package/lib/infinite-scroll/src/InfiniteScroll.d.ts +45 -0
- package/lib/infinite-scroll/src/InfiniteScroll.js +81 -0
- package/lib/input-number/src/InputNumber.d.ts +80 -0
- package/lib/input-number/styles/light.d.ts +8 -0
- package/lib/layout/src/Layout.d.ts +112 -0
- package/lib/layout/src/LayoutContent.d.ts +56 -0
- package/lib/layout/src/LayoutFooter.d.ts +72 -0
- package/lib/layout/src/LayoutHeader.d.ts +48 -0
- package/lib/layout/src/LayoutSider.d.ts +56 -0
- package/lib/layout/styles/light.d.ts +8 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +160 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +16 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +17 -1
- package/lib/legacy-transfer/src/TransferListItem.d.ts +16 -0
- package/lib/legacy-transfer/styles/light.d.ts +16 -0
- package/lib/log/src/Log.d.ts +80 -0
- package/lib/log/styles/light.d.ts +8 -0
- package/lib/mention/src/Mention.d.ts +88 -0
- package/lib/mention/styles/light.d.ts +8 -0
- package/lib/menu/src/Menu.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +25 -1
- package/lib/modal/src/Modal.d.ts +145 -1
- package/lib/modal/styles/light.d.ts +16 -0
- package/lib/notification/src/Notification.d.ts +5 -0
- package/lib/notification/src/Notification.js +14 -4
- package/lib/notification/src/NotificationContainer.d.ts +20 -0
- package/lib/notification/src/NotificationProvider.d.ts +180 -0
- package/lib/notification/src/styles/index.cssr.js +12 -8
- package/lib/notification/styles/light.d.ts +32 -0
- package/lib/notification/styles/light.js +9 -8
- package/lib/pagination/src/Pagination.d.ts +176 -0
- package/lib/pagination/styles/light.d.ts +16 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +80 -0
- package/lib/popconfirm/styles/light.d.ts +8 -0
- package/lib/popselect/src/Popselect.d.ts +88 -0
- package/lib/popselect/src/PopselectPanel.d.ts +16 -0
- package/lib/popselect/styles/light.d.ts +8 -0
- package/lib/scrollbar/src/Scrollbar.d.ts +72 -0
- package/lib/select/src/Select.d.ts +88 -0
- package/lib/select/styles/light.d.ts +8 -0
- package/lib/time-picker/src/Panel.d.ts +16 -0
- package/lib/time-picker/src/TimePicker.d.ts +160 -0
- package/lib/time-picker/styles/light.d.ts +16 -0
- package/lib/transfer/src/Transfer.d.ts +160 -0
- package/lib/transfer/src/TransferFilter.d.ts +16 -0
- package/lib/transfer/src/TransferList.d.ts +17 -1
- package/lib/transfer/src/TransferListItem.d.ts +16 -0
- package/lib/transfer/styles/light.d.ts +16 -0
- package/lib/tree/src/Tree.d.ts +82 -2
- package/lib/tree/src/TreeNodeCheckbox.d.ts +8 -0
- package/lib/tree/styles/light.d.ts +8 -0
- package/lib/tree-select/src/TreeSelect.d.ts +89 -1
- package/lib/tree-select/styles/light.d.ts +8 -0
- package/lib/upload/src/Upload.d.ts +90 -0
- package/lib/upload/src/Upload.js +2 -1
- package/lib/upload/src/UploadFile.d.ts +9 -0
- package/lib/upload/src/UploadProgress.d.ts +9 -0
- package/lib/upload/src/styles/index.cssr.js +1 -0
- package/lib/upload/src/useUploadActionsRender.js +5 -1
- package/lib/upload/styles/light.d.ts +10 -0
- package/lib/upload/styles/light.js +6 -5
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/index.d.ts +2 -0
- package/lib/virtual-list/index.js +9 -0
- package/lib/virtual-list/src/VirtualList.d.ts +146 -0
- package/lib/virtual-list/src/VirtualList.js +106 -0
- package/package.json +2 -2
- package/volar.d.ts +1 -0
- package/web-types.json +33 -4
|
@@ -116,6 +116,7 @@ export declare const uploadProps: {
|
|
|
116
116
|
draggerColor: string;
|
|
117
117
|
draggerBorder: string;
|
|
118
118
|
draggerBorderHover: string;
|
|
119
|
+
draggerShadowFocus: string;
|
|
119
120
|
itemColorHover: string;
|
|
120
121
|
itemColorHoverError: string;
|
|
121
122
|
itemTextColor: string;
|
|
@@ -158,16 +159,24 @@ export declare const uploadProps: {
|
|
|
158
159
|
colorSecondary: string;
|
|
159
160
|
colorSecondaryHover: string;
|
|
160
161
|
colorSecondaryPressed: string;
|
|
162
|
+
colorSecondaryFocus: string;
|
|
163
|
+
colorSecondaryDisabled: string;
|
|
164
|
+
textColorSecondaryDisabled: string;
|
|
161
165
|
waveColorSecondary: string;
|
|
162
166
|
colorTertiary: string;
|
|
163
167
|
colorTertiaryHover: string;
|
|
164
168
|
colorTertiaryPressed: string;
|
|
169
|
+
colorTertiaryFocus: string;
|
|
165
170
|
colorTertiaryDisalbed: string;
|
|
166
171
|
waveColorTertiary: string;
|
|
167
172
|
textColorTextTertiary: string;
|
|
173
|
+
rippleColorTertiary: string;
|
|
168
174
|
colorQuaternary: string;
|
|
169
175
|
colorQuaternaryHover: string;
|
|
170
176
|
colorQuaternaryPressed: string;
|
|
177
|
+
colorQuaternaryFocus: string;
|
|
178
|
+
rippleColorQuaternary: string;
|
|
179
|
+
waveColorQuaternary: string;
|
|
171
180
|
color: string;
|
|
172
181
|
colorHover: string;
|
|
173
182
|
colorPressed: string;
|
|
@@ -380,6 +389,7 @@ export declare const uploadProps: {
|
|
|
380
389
|
draggerColor: string;
|
|
381
390
|
draggerBorder: string;
|
|
382
391
|
draggerBorderHover: string;
|
|
392
|
+
draggerShadowFocus: string;
|
|
383
393
|
itemColorHover: string;
|
|
384
394
|
itemColorHoverError: string;
|
|
385
395
|
itemTextColor: string;
|
|
@@ -422,16 +432,24 @@ export declare const uploadProps: {
|
|
|
422
432
|
colorSecondary: string;
|
|
423
433
|
colorSecondaryHover: string;
|
|
424
434
|
colorSecondaryPressed: string;
|
|
435
|
+
colorSecondaryFocus: string;
|
|
436
|
+
colorSecondaryDisabled: string;
|
|
437
|
+
textColorSecondaryDisabled: string;
|
|
425
438
|
waveColorSecondary: string;
|
|
426
439
|
colorTertiary: string;
|
|
427
440
|
colorTertiaryHover: string;
|
|
428
441
|
colorTertiaryPressed: string;
|
|
442
|
+
colorTertiaryFocus: string;
|
|
429
443
|
colorTertiaryDisalbed: string;
|
|
430
444
|
waveColorTertiary: string;
|
|
431
445
|
textColorTextTertiary: string;
|
|
446
|
+
rippleColorTertiary: string;
|
|
432
447
|
colorQuaternary: string;
|
|
433
448
|
colorQuaternaryHover: string;
|
|
434
449
|
colorQuaternaryPressed: string;
|
|
450
|
+
colorQuaternaryFocus: string;
|
|
451
|
+
rippleColorQuaternary: string;
|
|
452
|
+
waveColorQuaternary: string;
|
|
435
453
|
color: string;
|
|
436
454
|
colorHover: string;
|
|
437
455
|
colorPressed: string;
|
|
@@ -644,6 +662,7 @@ export declare const uploadProps: {
|
|
|
644
662
|
draggerColor: string;
|
|
645
663
|
draggerBorder: string;
|
|
646
664
|
draggerBorderHover: string;
|
|
665
|
+
draggerShadowFocus: string;
|
|
647
666
|
itemColorHover: string;
|
|
648
667
|
itemColorHoverError: string;
|
|
649
668
|
itemTextColor: string;
|
|
@@ -686,16 +705,24 @@ export declare const uploadProps: {
|
|
|
686
705
|
colorSecondary: string;
|
|
687
706
|
colorSecondaryHover: string;
|
|
688
707
|
colorSecondaryPressed: string;
|
|
708
|
+
colorSecondaryFocus: string;
|
|
709
|
+
colorSecondaryDisabled: string;
|
|
710
|
+
textColorSecondaryDisabled: string;
|
|
689
711
|
waveColorSecondary: string;
|
|
690
712
|
colorTertiary: string;
|
|
691
713
|
colorTertiaryHover: string;
|
|
692
714
|
colorTertiaryPressed: string;
|
|
715
|
+
colorTertiaryFocus: string;
|
|
693
716
|
colorTertiaryDisalbed: string;
|
|
694
717
|
waveColorTertiary: string;
|
|
695
718
|
textColorTextTertiary: string;
|
|
719
|
+
rippleColorTertiary: string;
|
|
696
720
|
colorQuaternary: string;
|
|
697
721
|
colorQuaternaryHover: string;
|
|
698
722
|
colorQuaternaryPressed: string;
|
|
723
|
+
colorQuaternaryFocus: string;
|
|
724
|
+
rippleColorQuaternary: string;
|
|
725
|
+
waveColorQuaternary: string;
|
|
699
726
|
color: string;
|
|
700
727
|
colorHover: string;
|
|
701
728
|
colorPressed: string;
|
|
@@ -1016,6 +1043,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1016
1043
|
draggerColor: string;
|
|
1017
1044
|
draggerBorder: string;
|
|
1018
1045
|
draggerBorderHover: string;
|
|
1046
|
+
draggerShadowFocus: string;
|
|
1019
1047
|
itemColorHover: string;
|
|
1020
1048
|
itemColorHoverError: string;
|
|
1021
1049
|
itemTextColor: string;
|
|
@@ -1058,16 +1086,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1058
1086
|
colorSecondary: string;
|
|
1059
1087
|
colorSecondaryHover: string;
|
|
1060
1088
|
colorSecondaryPressed: string;
|
|
1089
|
+
colorSecondaryFocus: string;
|
|
1090
|
+
colorSecondaryDisabled: string;
|
|
1091
|
+
textColorSecondaryDisabled: string;
|
|
1061
1092
|
waveColorSecondary: string;
|
|
1062
1093
|
colorTertiary: string;
|
|
1063
1094
|
colorTertiaryHover: string;
|
|
1064
1095
|
colorTertiaryPressed: string;
|
|
1096
|
+
colorTertiaryFocus: string;
|
|
1065
1097
|
colorTertiaryDisalbed: string;
|
|
1066
1098
|
waveColorTertiary: string;
|
|
1067
1099
|
textColorTextTertiary: string;
|
|
1100
|
+
rippleColorTertiary: string;
|
|
1068
1101
|
colorQuaternary: string;
|
|
1069
1102
|
colorQuaternaryHover: string;
|
|
1070
1103
|
colorQuaternaryPressed: string;
|
|
1104
|
+
colorQuaternaryFocus: string;
|
|
1105
|
+
rippleColorQuaternary: string;
|
|
1106
|
+
waveColorQuaternary: string;
|
|
1071
1107
|
color: string;
|
|
1072
1108
|
colorHover: string;
|
|
1073
1109
|
colorPressed: string;
|
|
@@ -1280,6 +1316,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1280
1316
|
draggerColor: string;
|
|
1281
1317
|
draggerBorder: string;
|
|
1282
1318
|
draggerBorderHover: string;
|
|
1319
|
+
draggerShadowFocus: string;
|
|
1283
1320
|
itemColorHover: string;
|
|
1284
1321
|
itemColorHoverError: string;
|
|
1285
1322
|
itemTextColor: string;
|
|
@@ -1322,16 +1359,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1322
1359
|
colorSecondary: string;
|
|
1323
1360
|
colorSecondaryHover: string;
|
|
1324
1361
|
colorSecondaryPressed: string;
|
|
1362
|
+
colorSecondaryFocus: string;
|
|
1363
|
+
colorSecondaryDisabled: string;
|
|
1364
|
+
textColorSecondaryDisabled: string;
|
|
1325
1365
|
waveColorSecondary: string;
|
|
1326
1366
|
colorTertiary: string;
|
|
1327
1367
|
colorTertiaryHover: string;
|
|
1328
1368
|
colorTertiaryPressed: string;
|
|
1369
|
+
colorTertiaryFocus: string;
|
|
1329
1370
|
colorTertiaryDisalbed: string;
|
|
1330
1371
|
waveColorTertiary: string;
|
|
1331
1372
|
textColorTextTertiary: string;
|
|
1373
|
+
rippleColorTertiary: string;
|
|
1332
1374
|
colorQuaternary: string;
|
|
1333
1375
|
colorQuaternaryHover: string;
|
|
1334
1376
|
colorQuaternaryPressed: string;
|
|
1377
|
+
colorQuaternaryFocus: string;
|
|
1378
|
+
rippleColorQuaternary: string;
|
|
1379
|
+
waveColorQuaternary: string;
|
|
1335
1380
|
color: string;
|
|
1336
1381
|
colorHover: string;
|
|
1337
1382
|
colorPressed: string;
|
|
@@ -1544,6 +1589,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1544
1589
|
draggerColor: string;
|
|
1545
1590
|
draggerBorder: string;
|
|
1546
1591
|
draggerBorderHover: string;
|
|
1592
|
+
draggerShadowFocus: string;
|
|
1547
1593
|
itemColorHover: string;
|
|
1548
1594
|
itemColorHoverError: string;
|
|
1549
1595
|
itemTextColor: string;
|
|
@@ -1586,16 +1632,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1586
1632
|
colorSecondary: string;
|
|
1587
1633
|
colorSecondaryHover: string;
|
|
1588
1634
|
colorSecondaryPressed: string;
|
|
1635
|
+
colorSecondaryFocus: string;
|
|
1636
|
+
colorSecondaryDisabled: string;
|
|
1637
|
+
textColorSecondaryDisabled: string;
|
|
1589
1638
|
waveColorSecondary: string;
|
|
1590
1639
|
colorTertiary: string;
|
|
1591
1640
|
colorTertiaryHover: string;
|
|
1592
1641
|
colorTertiaryPressed: string;
|
|
1642
|
+
colorTertiaryFocus: string;
|
|
1593
1643
|
colorTertiaryDisalbed: string;
|
|
1594
1644
|
waveColorTertiary: string;
|
|
1595
1645
|
textColorTextTertiary: string;
|
|
1646
|
+
rippleColorTertiary: string;
|
|
1596
1647
|
colorQuaternary: string;
|
|
1597
1648
|
colorQuaternaryHover: string;
|
|
1598
1649
|
colorQuaternaryPressed: string;
|
|
1650
|
+
colorQuaternaryFocus: string;
|
|
1651
|
+
rippleColorQuaternary: string;
|
|
1652
|
+
waveColorQuaternary: string;
|
|
1599
1653
|
color: string;
|
|
1600
1654
|
colorHover: string;
|
|
1601
1655
|
colorPressed: string;
|
|
@@ -1825,6 +1879,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1825
1879
|
draggerColor: string;
|
|
1826
1880
|
draggerBorder: string;
|
|
1827
1881
|
draggerBorderHover: string;
|
|
1882
|
+
draggerShadowFocus: string;
|
|
1828
1883
|
itemColorHover: string;
|
|
1829
1884
|
itemColorHoverError: string;
|
|
1830
1885
|
itemTextColor: string;
|
|
@@ -1868,16 +1923,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1868
1923
|
colorSecondary: string;
|
|
1869
1924
|
colorSecondaryHover: string;
|
|
1870
1925
|
colorSecondaryPressed: string;
|
|
1926
|
+
colorSecondaryFocus: string;
|
|
1927
|
+
colorSecondaryDisabled: string;
|
|
1928
|
+
textColorSecondaryDisabled: string;
|
|
1871
1929
|
waveColorSecondary: string;
|
|
1872
1930
|
colorTertiary: string;
|
|
1873
1931
|
colorTertiaryHover: string;
|
|
1874
1932
|
colorTertiaryPressed: string;
|
|
1933
|
+
colorTertiaryFocus: string;
|
|
1875
1934
|
colorTertiaryDisalbed: string;
|
|
1876
1935
|
waveColorTertiary: string;
|
|
1877
1936
|
textColorTextTertiary: string;
|
|
1937
|
+
rippleColorTertiary: string;
|
|
1878
1938
|
colorQuaternary: string;
|
|
1879
1939
|
colorQuaternaryHover: string;
|
|
1880
1940
|
colorQuaternaryPressed: string;
|
|
1941
|
+
colorQuaternaryFocus: string;
|
|
1942
|
+
rippleColorQuaternary: string;
|
|
1943
|
+
waveColorQuaternary: string;
|
|
1881
1944
|
color: string;
|
|
1882
1945
|
colorHover: string;
|
|
1883
1946
|
colorPressed: string;
|
|
@@ -2215,6 +2278,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2215
2278
|
draggerColor: string;
|
|
2216
2279
|
draggerBorder: string;
|
|
2217
2280
|
draggerBorderHover: string;
|
|
2281
|
+
draggerShadowFocus: string;
|
|
2218
2282
|
itemColorHover: string;
|
|
2219
2283
|
itemColorHoverError: string;
|
|
2220
2284
|
itemTextColor: string;
|
|
@@ -2257,16 +2321,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2257
2321
|
colorSecondary: string;
|
|
2258
2322
|
colorSecondaryHover: string;
|
|
2259
2323
|
colorSecondaryPressed: string;
|
|
2324
|
+
colorSecondaryFocus: string;
|
|
2325
|
+
colorSecondaryDisabled: string;
|
|
2326
|
+
textColorSecondaryDisabled: string;
|
|
2260
2327
|
waveColorSecondary: string;
|
|
2261
2328
|
colorTertiary: string;
|
|
2262
2329
|
colorTertiaryHover: string;
|
|
2263
2330
|
colorTertiaryPressed: string;
|
|
2331
|
+
colorTertiaryFocus: string;
|
|
2264
2332
|
colorTertiaryDisalbed: string;
|
|
2265
2333
|
waveColorTertiary: string;
|
|
2266
2334
|
textColorTextTertiary: string;
|
|
2335
|
+
rippleColorTertiary: string;
|
|
2267
2336
|
colorQuaternary: string;
|
|
2268
2337
|
colorQuaternaryHover: string;
|
|
2269
2338
|
colorQuaternaryPressed: string;
|
|
2339
|
+
colorQuaternaryFocus: string;
|
|
2340
|
+
rippleColorQuaternary: string;
|
|
2341
|
+
waveColorQuaternary: string;
|
|
2270
2342
|
color: string;
|
|
2271
2343
|
colorHover: string;
|
|
2272
2344
|
colorPressed: string;
|
|
@@ -2479,6 +2551,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2479
2551
|
draggerColor: string;
|
|
2480
2552
|
draggerBorder: string;
|
|
2481
2553
|
draggerBorderHover: string;
|
|
2554
|
+
draggerShadowFocus: string;
|
|
2482
2555
|
itemColorHover: string;
|
|
2483
2556
|
itemColorHoverError: string;
|
|
2484
2557
|
itemTextColor: string;
|
|
@@ -2521,16 +2594,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2521
2594
|
colorSecondary: string;
|
|
2522
2595
|
colorSecondaryHover: string;
|
|
2523
2596
|
colorSecondaryPressed: string;
|
|
2597
|
+
colorSecondaryFocus: string;
|
|
2598
|
+
colorSecondaryDisabled: string;
|
|
2599
|
+
textColorSecondaryDisabled: string;
|
|
2524
2600
|
waveColorSecondary: string;
|
|
2525
2601
|
colorTertiary: string;
|
|
2526
2602
|
colorTertiaryHover: string;
|
|
2527
2603
|
colorTertiaryPressed: string;
|
|
2604
|
+
colorTertiaryFocus: string;
|
|
2528
2605
|
colorTertiaryDisalbed: string;
|
|
2529
2606
|
waveColorTertiary: string;
|
|
2530
2607
|
textColorTextTertiary: string;
|
|
2608
|
+
rippleColorTertiary: string;
|
|
2531
2609
|
colorQuaternary: string;
|
|
2532
2610
|
colorQuaternaryHover: string;
|
|
2533
2611
|
colorQuaternaryPressed: string;
|
|
2612
|
+
colorQuaternaryFocus: string;
|
|
2613
|
+
rippleColorQuaternary: string;
|
|
2614
|
+
waveColorQuaternary: string;
|
|
2534
2615
|
color: string;
|
|
2535
2616
|
colorHover: string;
|
|
2536
2617
|
colorPressed: string;
|
|
@@ -2743,6 +2824,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2743
2824
|
draggerColor: string;
|
|
2744
2825
|
draggerBorder: string;
|
|
2745
2826
|
draggerBorderHover: string;
|
|
2827
|
+
draggerShadowFocus: string;
|
|
2746
2828
|
itemColorHover: string;
|
|
2747
2829
|
itemColorHoverError: string;
|
|
2748
2830
|
itemTextColor: string;
|
|
@@ -2785,16 +2867,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2785
2867
|
colorSecondary: string;
|
|
2786
2868
|
colorSecondaryHover: string;
|
|
2787
2869
|
colorSecondaryPressed: string;
|
|
2870
|
+
colorSecondaryFocus: string;
|
|
2871
|
+
colorSecondaryDisabled: string;
|
|
2872
|
+
textColorSecondaryDisabled: string;
|
|
2788
2873
|
waveColorSecondary: string;
|
|
2789
2874
|
colorTertiary: string;
|
|
2790
2875
|
colorTertiaryHover: string;
|
|
2791
2876
|
colorTertiaryPressed: string;
|
|
2877
|
+
colorTertiaryFocus: string;
|
|
2792
2878
|
colorTertiaryDisalbed: string;
|
|
2793
2879
|
waveColorTertiary: string;
|
|
2794
2880
|
textColorTextTertiary: string;
|
|
2881
|
+
rippleColorTertiary: string;
|
|
2795
2882
|
colorQuaternary: string;
|
|
2796
2883
|
colorQuaternaryHover: string;
|
|
2797
2884
|
colorQuaternaryPressed: string;
|
|
2885
|
+
colorQuaternaryFocus: string;
|
|
2886
|
+
rippleColorQuaternary: string;
|
|
2887
|
+
waveColorQuaternary: string;
|
|
2798
2888
|
color: string;
|
|
2799
2889
|
colorHover: string;
|
|
2800
2890
|
colorPressed: string;
|
package/es/upload/src/Upload.js
CHANGED
|
@@ -287,12 +287,13 @@ export default defineComponent({
|
|
|
287
287
|
}
|
|
288
288
|
const cssVarsRef = computed(() => {
|
|
289
289
|
const { value: size } = formItem.mergedSizeRef;
|
|
290
|
-
const { common: { cubicBezierEaseInOut }, self: { draggerColor, draggerBorder, draggerBorderHover, itemColorHover, itemColorHoverError, itemTextColorError, itemTextColorSuccess, itemTextColor, itemIconColor, itemDisabledOpacity, lineHeight, borderRadius, fontSize, itemBorderImageCardError, itemBorderImageCard, baseColor, draggerIconBgColor, draggerIconColor, draggerTextColor, draggerTitleColor, labelColor, containerSecondary, brandPrimary300, elementsQuaternary, [createKey('width', size)]: width } } = themeRef.value;
|
|
290
|
+
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, [createKey('width', size)]: width } } = themeRef.value;
|
|
291
291
|
return {
|
|
292
292
|
'--u-bezier': cubicBezierEaseInOut,
|
|
293
293
|
'--u-border-radius': borderRadius,
|
|
294
294
|
'--u-dragger-border': draggerBorder,
|
|
295
295
|
'--u-dragger-border-hover': draggerBorderHover,
|
|
296
|
+
'--u-dragger-shadow-focus': draggerShadowFocus,
|
|
296
297
|
'--u-dragger-color': draggerColor,
|
|
297
298
|
'--u-font-size': fontSize,
|
|
298
299
|
'--u-item-color-hover': itemColorHover,
|
|
@@ -24,6 +24,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
24
|
draggerColor: string;
|
|
25
25
|
draggerBorder: string;
|
|
26
26
|
draggerBorderHover: string;
|
|
27
|
+
draggerShadowFocus: string;
|
|
27
28
|
itemColorHover: string;
|
|
28
29
|
itemColorHoverError: string;
|
|
29
30
|
itemTextColor: string;
|
|
@@ -67,16 +68,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
68
|
colorSecondary: string;
|
|
68
69
|
colorSecondaryHover: string;
|
|
69
70
|
colorSecondaryPressed: string;
|
|
71
|
+
colorSecondaryFocus: string;
|
|
72
|
+
colorSecondaryDisabled: string;
|
|
73
|
+
textColorSecondaryDisabled: string;
|
|
70
74
|
waveColorSecondary: string;
|
|
71
75
|
colorTertiary: string;
|
|
72
76
|
colorTertiaryHover: string;
|
|
73
77
|
colorTertiaryPressed: string;
|
|
78
|
+
colorTertiaryFocus: string;
|
|
74
79
|
colorTertiaryDisalbed: string;
|
|
75
80
|
waveColorTertiary: string;
|
|
76
81
|
textColorTextTertiary: string;
|
|
82
|
+
rippleColorTertiary: string;
|
|
77
83
|
colorQuaternary: string;
|
|
78
84
|
colorQuaternaryHover: string;
|
|
79
85
|
colorQuaternaryPressed: string;
|
|
86
|
+
colorQuaternaryFocus: string;
|
|
87
|
+
rippleColorQuaternary: string;
|
|
88
|
+
waveColorQuaternary: string;
|
|
80
89
|
color: string;
|
|
81
90
|
colorHover: string;
|
|
82
91
|
colorPressed: string;
|
|
@@ -20,6 +20,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
draggerColor: string;
|
|
21
21
|
draggerBorder: string;
|
|
22
22
|
draggerBorderHover: string;
|
|
23
|
+
draggerShadowFocus: string;
|
|
23
24
|
itemColorHover: string;
|
|
24
25
|
itemColorHoverError: string;
|
|
25
26
|
itemTextColor: string;
|
|
@@ -63,16 +64,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
63
64
|
colorSecondary: string;
|
|
64
65
|
colorSecondaryHover: string;
|
|
65
66
|
colorSecondaryPressed: string;
|
|
67
|
+
colorSecondaryFocus: string;
|
|
68
|
+
colorSecondaryDisabled: string;
|
|
69
|
+
textColorSecondaryDisabled: string;
|
|
66
70
|
waveColorSecondary: string;
|
|
67
71
|
colorTertiary: string;
|
|
68
72
|
colorTertiaryHover: string;
|
|
69
73
|
colorTertiaryPressed: string;
|
|
74
|
+
colorTertiaryFocus: string;
|
|
70
75
|
colorTertiaryDisalbed: string;
|
|
71
76
|
waveColorTertiary: string;
|
|
72
77
|
textColorTextTertiary: string;
|
|
78
|
+
rippleColorTertiary: string;
|
|
73
79
|
colorQuaternary: string;
|
|
74
80
|
colorQuaternaryHover: string;
|
|
75
81
|
colorQuaternaryPressed: string;
|
|
82
|
+
colorQuaternaryFocus: string;
|
|
83
|
+
rippleColorQuaternary: string;
|
|
84
|
+
waveColorQuaternary: string;
|
|
76
85
|
color: string;
|
|
77
86
|
colorHover: string;
|
|
78
87
|
colorPressed: string;
|
|
@@ -5,6 +5,7 @@ export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-insi
|
|
|
5
5
|
display: block;
|
|
6
6
|
`)]), cM('drag-over', [cB('upload-dragger', `
|
|
7
7
|
border: var(--u-dragger-border-hover);
|
|
8
|
+
box-shadow: var(--u-dragger-shadow-focus);
|
|
8
9
|
`)]), cE('label', {
|
|
9
10
|
marginBottom: '12px',
|
|
10
11
|
marginTop: 0,
|
|
@@ -4,8 +4,12 @@ import { UBaseIcon, UIconSwitchTransition } from '../../_internal';
|
|
|
4
4
|
import { CancelIcon, EyeIcon, RetryIcon, TrashIcon, DownloadIcon } from '../../_internal/icons';
|
|
5
5
|
export function useUploadActionsRender(opts) {
|
|
6
6
|
const { clsPrefix, listType, file, showPreviewButton, showRemoveButton, showCancelButton, showRetryButton, showDownloadButton, disabled, buttonType, mergedTheme, buttonThemeOverrides, handlePreviewClick, handleRemoveOrCancelClick, handleRetryClick, handleDownloadClick, capitalizeFirstLetter } = opts;
|
|
7
|
+
const getExt = (name) => {
|
|
8
|
+
const i = name.lastIndexOf('.');
|
|
9
|
+
return i === -1 || i === name.length - 1 ? '' : name.slice(i + 1);
|
|
10
|
+
};
|
|
7
11
|
const isImageType = ['image', 'image-card'].includes(listType);
|
|
8
|
-
const fileExt = file.name
|
|
12
|
+
const fileExt = getExt(file.name);
|
|
9
13
|
const capitalizedExt = capitalizeFirstLetter(fileExt);
|
|
10
14
|
const icon = h('div', {
|
|
11
15
|
class: [
|
|
@@ -7,6 +7,7 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
7
7
|
draggerColor: string;
|
|
8
8
|
draggerBorder: string;
|
|
9
9
|
draggerBorderHover: string;
|
|
10
|
+
draggerShadowFocus: string;
|
|
10
11
|
itemColorHover: string;
|
|
11
12
|
itemColorHoverError: string;
|
|
12
13
|
itemTextColor: string;
|
|
@@ -37,6 +38,7 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
37
38
|
draggerColor: string;
|
|
38
39
|
draggerBorder: string;
|
|
39
40
|
draggerBorderHover: string;
|
|
41
|
+
draggerShadowFocus: string;
|
|
40
42
|
itemColorHover: string;
|
|
41
43
|
itemColorHoverError: string;
|
|
42
44
|
itemTextColor: string;
|
|
@@ -79,16 +81,24 @@ declare const uploadLight: import("../../_mixins").Theme<"Upload", {
|
|
|
79
81
|
colorSecondary: string;
|
|
80
82
|
colorSecondaryHover: string;
|
|
81
83
|
colorSecondaryPressed: string;
|
|
84
|
+
colorSecondaryFocus: string;
|
|
85
|
+
colorSecondaryDisabled: string;
|
|
86
|
+
textColorSecondaryDisabled: string;
|
|
82
87
|
waveColorSecondary: string;
|
|
83
88
|
colorTertiary: string;
|
|
84
89
|
colorTertiaryHover: string;
|
|
85
90
|
colorTertiaryPressed: string;
|
|
91
|
+
colorTertiaryFocus: string;
|
|
86
92
|
colorTertiaryDisalbed: string;
|
|
87
93
|
waveColorTertiary: string;
|
|
88
94
|
textColorTextTertiary: string;
|
|
95
|
+
rippleColorTertiary: string;
|
|
89
96
|
colorQuaternary: string;
|
|
90
97
|
colorQuaternaryHover: string;
|
|
91
98
|
colorQuaternaryPressed: string;
|
|
99
|
+
colorQuaternaryFocus: string;
|
|
100
|
+
rippleColorQuaternary: string;
|
|
101
|
+
waveColorQuaternary: string;
|
|
92
102
|
color: string;
|
|
93
103
|
colorHover: string;
|
|
94
104
|
colorPressed: string;
|
|
@@ -4,15 +4,16 @@ import { progressLight } from '../../progress/styles';
|
|
|
4
4
|
import { commonLight } from '../../_styles/common';
|
|
5
5
|
import { createTheme } from '../../_mixins';
|
|
6
6
|
export const self = (vars) => {
|
|
7
|
-
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge,
|
|
7
|
+
const { staticGreen, staticRed, elementsQuaternary, elementsTertiary, elementsPrimary, textPrimary, opacityDisabled, containerPrimary, fontBodyMedium, lineHeightBodyMedium, borderRadiusLarge, containerSecondary, brandPrimary300, brandPrimary500 } = vars;
|
|
8
8
|
return {
|
|
9
9
|
baseColor: containerPrimary,
|
|
10
10
|
fontSize: fontBodyMedium,
|
|
11
11
|
lineHeight: lineHeightBodyMedium,
|
|
12
12
|
borderRadius: borderRadiusLarge,
|
|
13
13
|
draggerColor: elementsTertiary,
|
|
14
|
-
draggerBorder: `
|
|
15
|
-
draggerBorderHover: `
|
|
14
|
+
draggerBorder: `1px dashed ${brandPrimary500}`,
|
|
15
|
+
draggerBorderHover: `1px solid ${brandPrimary500}`,
|
|
16
|
+
draggerShadowFocus: `0 0 0 4px ${brandPrimary500}1a`,
|
|
16
17
|
itemColorHover: elementsTertiary,
|
|
17
18
|
itemColorHoverError: changeColor(staticRed, {
|
|
18
19
|
alpha: 0.05
|
|
@@ -22,8 +23,8 @@ export const self = (vars) => {
|
|
|
22
23
|
itemTextColorSuccess: staticGreen,
|
|
23
24
|
itemIconColor: elementsPrimary,
|
|
24
25
|
itemDisabledOpacity: opacityDisabled,
|
|
25
|
-
itemBorderImageCardError: `
|
|
26
|
-
itemBorderImageCard: `
|
|
26
|
+
itemBorderImageCardError: `1px solid ${staticRed}`,
|
|
27
|
+
itemBorderImageCard: `1px solid ${elementsQuaternary}`,
|
|
27
28
|
draggerIconBgColor: elementsTertiary,
|
|
28
29
|
draggerIconColor: elementsPrimary,
|
|
29
30
|
draggerTitleColor: textPrimary,
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.9.0";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.9.0';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NVirtualList, virtualListProps } from './src/VirtualList';
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { CSSProperties, PropType } from 'vue';
|
|
2
|
+
import type { VirtualListItemData, VirtualListScrollToOptions } from 'vueuc';
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
|
+
import type { ScrollbarProps } from '../../scrollbar/src/Scrollbar';
|
|
5
|
+
export { type VirtualListInst } from 'vueuc';
|
|
6
|
+
export declare const virtualListProps: {
|
|
7
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
8
|
+
readonly items: {
|
|
9
|
+
readonly type: PropType<VirtualListItemData[]>;
|
|
10
|
+
readonly default: () => never[];
|
|
11
|
+
};
|
|
12
|
+
readonly itemSize: {
|
|
13
|
+
readonly type: NumberConstructor;
|
|
14
|
+
readonly required: true;
|
|
15
|
+
};
|
|
16
|
+
readonly itemResizable: BooleanConstructor;
|
|
17
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
18
|
+
readonly visibleItemsTag: {
|
|
19
|
+
readonly type: PropType<string | object>;
|
|
20
|
+
readonly default: "div";
|
|
21
|
+
};
|
|
22
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
23
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
24
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
25
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
26
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
27
|
+
readonly defaultScrollKey: PropType<number | string>;
|
|
28
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
29
|
+
readonly keyField: {
|
|
30
|
+
readonly type: StringConstructor;
|
|
31
|
+
readonly default: "key";
|
|
32
|
+
};
|
|
33
|
+
readonly paddingTop: {
|
|
34
|
+
readonly type: PropType<number | string>;
|
|
35
|
+
readonly default: 0;
|
|
36
|
+
};
|
|
37
|
+
readonly paddingBottom: {
|
|
38
|
+
readonly type: PropType<number | string>;
|
|
39
|
+
readonly default: 0;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type VirtualListProps = ExtractPublicPropTypes<typeof virtualListProps>;
|
|
43
|
+
declare const _default: import("vue").DefineComponent<{
|
|
44
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
45
|
+
readonly items: {
|
|
46
|
+
readonly type: PropType<VirtualListItemData[]>;
|
|
47
|
+
readonly default: () => never[];
|
|
48
|
+
};
|
|
49
|
+
readonly itemSize: {
|
|
50
|
+
readonly type: NumberConstructor;
|
|
51
|
+
readonly required: true;
|
|
52
|
+
};
|
|
53
|
+
readonly itemResizable: BooleanConstructor;
|
|
54
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
55
|
+
readonly visibleItemsTag: {
|
|
56
|
+
readonly type: PropType<string | object>;
|
|
57
|
+
readonly default: "div";
|
|
58
|
+
};
|
|
59
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
60
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
61
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
62
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
63
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
64
|
+
readonly defaultScrollKey: PropType<number | string>;
|
|
65
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
66
|
+
readonly keyField: {
|
|
67
|
+
readonly type: StringConstructor;
|
|
68
|
+
readonly default: "key";
|
|
69
|
+
};
|
|
70
|
+
readonly paddingTop: {
|
|
71
|
+
readonly type: PropType<number | string>;
|
|
72
|
+
readonly default: 0;
|
|
73
|
+
};
|
|
74
|
+
readonly paddingBottom: {
|
|
75
|
+
readonly type: PropType<number | string>;
|
|
76
|
+
readonly default: 0;
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
scrollTo: (options: VirtualListScrollToOptions | number, y?: number) => void;
|
|
80
|
+
scrollbarInstRef: import("vue").Ref<{
|
|
81
|
+
$el: HTMLElement;
|
|
82
|
+
containerRef: HTMLElement | null;
|
|
83
|
+
contentRef: HTMLElement | null;
|
|
84
|
+
containerScrollTop: number;
|
|
85
|
+
syncUnifiedContainer: () => void;
|
|
86
|
+
scrollTo: import("../../_internal/scrollbar/src/Scrollbar").ScrollTo;
|
|
87
|
+
scrollBy: import("../../_internal/scrollbar/src/Scrollbar").ScrollBy;
|
|
88
|
+
sync: () => void;
|
|
89
|
+
handleMouseEnterWrapper: () => void;
|
|
90
|
+
handleMouseLeaveWrapper: () => void;
|
|
91
|
+
} | null>;
|
|
92
|
+
virtualListInstRef: import("vue").Ref<{
|
|
93
|
+
listElRef: HTMLElement;
|
|
94
|
+
itemsElRef: HTMLElement | null;
|
|
95
|
+
scrollTo: import("vueuc").VVirtualListScrollTo;
|
|
96
|
+
} | null>;
|
|
97
|
+
getScrollContainer: () => HTMLElement | null | undefined;
|
|
98
|
+
getScrollContent: () => HTMLElement | null | undefined;
|
|
99
|
+
handleScroll: (e: Event) => void;
|
|
100
|
+
handleResize: (e: ResizeObserverEntry) => void;
|
|
101
|
+
handleWheel: (e: WheelEvent) => void;
|
|
102
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
readonly scrollbarProps: PropType<ScrollbarProps>;
|
|
104
|
+
readonly items: {
|
|
105
|
+
readonly type: PropType<VirtualListItemData[]>;
|
|
106
|
+
readonly default: () => never[];
|
|
107
|
+
};
|
|
108
|
+
readonly itemSize: {
|
|
109
|
+
readonly type: NumberConstructor;
|
|
110
|
+
readonly required: true;
|
|
111
|
+
};
|
|
112
|
+
readonly itemResizable: BooleanConstructor;
|
|
113
|
+
readonly itemsStyle: PropType<string | CSSProperties>;
|
|
114
|
+
readonly visibleItemsTag: {
|
|
115
|
+
readonly type: PropType<string | object>;
|
|
116
|
+
readonly default: "div";
|
|
117
|
+
};
|
|
118
|
+
readonly visibleItemsProps: ObjectConstructor;
|
|
119
|
+
readonly ignoreItemResize: BooleanConstructor;
|
|
120
|
+
readonly onScroll: PropType<(event: Event) => void>;
|
|
121
|
+
readonly onWheel: PropType<(event: WheelEvent) => void>;
|
|
122
|
+
readonly onResize: PropType<(entry: ResizeObserverEntry) => void>;
|
|
123
|
+
readonly defaultScrollKey: PropType<number | string>;
|
|
124
|
+
readonly defaultScrollIndex: NumberConstructor;
|
|
125
|
+
readonly keyField: {
|
|
126
|
+
readonly type: StringConstructor;
|
|
127
|
+
readonly default: "key";
|
|
128
|
+
};
|
|
129
|
+
readonly paddingTop: {
|
|
130
|
+
readonly type: PropType<number | string>;
|
|
131
|
+
readonly default: 0;
|
|
132
|
+
};
|
|
133
|
+
readonly paddingBottom: {
|
|
134
|
+
readonly type: PropType<number | string>;
|
|
135
|
+
readonly default: 0;
|
|
136
|
+
};
|
|
137
|
+
}>>, {
|
|
138
|
+
readonly paddingBottom: string | number;
|
|
139
|
+
readonly paddingTop: string | number;
|
|
140
|
+
readonly items: VirtualListItemData[];
|
|
141
|
+
readonly keyField: string;
|
|
142
|
+
readonly visibleItemsTag: string | object;
|
|
143
|
+
readonly ignoreItemResize: boolean;
|
|
144
|
+
readonly itemResizable: boolean;
|
|
145
|
+
}, {}>;
|
|
146
|
+
export default _default;
|