@uzum-tech/ui 1.2.4 → 1.3.1
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 +436 -301
- package/dist/index.prod.js +2 -2
- package/es/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/es/_internal/icons/CheckmarkCircle.js +9 -0
- package/es/_internal/icons/DismissCircle.d.ts +2 -0
- package/es/_internal/icons/DismissCircle.js +9 -0
- package/es/_internal/icons/Edit.d.ts +2 -0
- package/es/_internal/icons/Edit.js +9 -0
- package/es/_internal/icons/index.d.ts +3 -0
- package/es/_internal/icons/index.js +3 -0
- package/es/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/es/_internal/select-menu/src/SelectOption.js +1 -1
- package/es/_internal/selection/src/Selection.d.ts +2 -0
- package/es/_internal/selection/src/Selection.js +3 -1
- package/es/_styles/common/dark.js +1 -1
- package/es/_styles/common/light.d.ts +2 -0
- package/es/_styles/common/light.js +1 -1
- package/es/alert/src/Alert.d.ts +2 -0
- package/es/auto-complete/src/AutoComplete.d.ts +2 -0
- package/es/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/es/calendar/src/Calendar.d.ts +2 -0
- package/es/card/src/Card.d.ts +2 -0
- package/es/cascader/src/Cascader.d.ts +2 -0
- package/es/cascader/src/CascaderMenu.d.ts +2 -0
- package/es/cascader/src/CascaderOption.d.ts +2 -0
- package/es/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/es/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/es/checkbox/src/Checkbox.d.ts +2 -0
- package/es/collapse/src/Collapse.d.ts +2 -0
- package/es/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/es/data-table/src/DataTable.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/es/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/es/data-table/src/TableParts/Body.d.ts +2 -0
- package/es/data-table/src/TableParts/Cell.d.ts +4 -0
- package/es/data-table/src/TableParts/Header.d.ts +2 -0
- package/es/data-table/styles/light.js +2 -2
- package/es/date-picker/src/DatePicker.d.ts +2 -0
- package/es/date-picker/src/panel/date.d.ts +2 -0
- package/es/date-picker/src/panel/daterange.d.ts +2 -0
- package/es/date-picker/src/panel/datetime.d.ts +2 -0
- package/es/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/es/date-picker/src/panel/panelMonth.d.ts +4 -0
- package/es/date-picker/src/panel/panelMonthContent.d.ts +2 -0
- package/es/date-picker/src/panel/panelYear.d.ts +4 -0
- package/es/date-picker/src/panel/panelYearContent.d.ts +2 -0
- package/es/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/es/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/es/dialog/src/Dialog.d.ts +2 -0
- package/es/dialog/src/DialogProvider.d.ts +4 -0
- package/es/drawer/src/Drawer.d.ts +24 -0
- package/es/drawer/src/Drawer.js +4 -2
- package/es/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/es/drawer/src/DrawerContent.d.ts +4 -0
- package/es/drawer/src/styles/index.cssr.js +4 -0
- package/es/drawer/styles/_common.d.ts +2 -0
- package/es/drawer/styles/_common.js +3 -1
- package/es/drawer/styles/light.d.ts +4 -0
- package/es/dropdown/src/Dropdown.d.ts +2 -0
- package/es/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/es/dynamic-input/src/InputPreset.d.ts +2 -0
- package/es/dynamic-input/src/PairPreset.d.ts +2 -0
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -0
- package/es/ellipsis/src/Ellipsis.d.ts +2 -0
- package/es/input/src/Input.d.ts +2 -0
- package/es/input-number/src/InputNumber.d.ts +2 -0
- package/es/layout/src/Layout.d.ts +4 -0
- package/es/layout/src/LayoutContent.d.ts +2 -0
- package/es/layout/src/LayoutSider.d.ts +2 -0
- package/es/legacy-transfer/src/Transfer.d.ts +2 -0
- package/es/legacy-transfer/src/TransferFilter.d.ts +2 -0
- package/es/legacy-transfer/src/TransferList.d.ts +2 -0
- package/es/legacy-transfer/src/TransferListItem.d.ts +2 -0
- package/es/log/src/Log.d.ts +2 -0
- package/es/mention/src/Mention.d.ts +2 -0
- package/es/menu/src/Menu.d.ts +2 -0
- package/es/menu/src/MenuOption.d.ts +2 -0
- package/es/menu/src/Submenu.d.ts +2 -0
- package/es/modal/src/BodyWrapper.d.ts +2 -0
- package/es/notification/src/NotificationContainer.d.ts +2 -0
- package/es/pagination/src/Pagination.d.ts +2 -0
- package/es/popconfirm/src/Popconfirm.d.ts +2 -0
- package/es/popselect/src/Popselect.d.ts +2 -0
- package/es/popselect/src/PopselectPanel.d.ts +2 -0
- package/es/select/src/Select.d.ts +2 -0
- package/es/status/src/Status.d.ts +36 -6
- package/es/status/src/Status.js +28 -22
- package/es/status/src/interface.d.ts +3 -0
- package/es/status/src/interface.js +1 -0
- package/es/status/src/styles/index.cssr.js +5 -1
- package/es/status/styles/light.d.ts +2 -0
- package/es/status/styles/light.js +3 -1
- package/es/steps/src/Step.d.ts +12 -6
- package/es/steps/src/Step.js +77 -46
- package/es/steps/src/Steps.d.ts +63 -13
- package/es/steps/src/Steps.js +6 -2
- package/es/steps/src/interface.d.ts +13 -0
- package/es/steps/src/interface.js +1 -0
- package/es/steps/src/styles/index.cssr.js +24 -1
- package/es/steps/styles/light.d.ts +4 -0
- package/es/steps/styles/light.js +5 -1
- package/es/tag/src/Tag.js +1 -1
- package/es/tag/src/styles/index.cssr.js +0 -4
- package/es/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/es/time-picker/src/Panel.d.ts +2 -0
- package/es/time-picker/src/TimePicker.d.ts +2 -0
- package/es/tooltip/src/Tooltip.d.ts +2 -0
- package/es/transfer/src/Transfer.d.ts +2 -0
- package/es/transfer/src/TransferFilter.d.ts +2 -0
- package/es/transfer/src/TransferList.d.ts +2 -0
- package/es/transfer/src/TransferListItem.d.ts +2 -0
- package/es/tree/src/Tree.d.ts +2 -0
- package/es/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/es/tree-select/src/TreeSelect.d.ts +2 -0
- package/es/upload/src/Upload.d.ts +3 -1
- package/es/upload/src/Upload.js +5 -4
- package/es/upload/src/UploadFile.d.ts +2 -0
- package/es/upload/src/UploadProgress.d.ts +2 -0
- package/es/upload/src/UploadTrigger.js +2 -2
- package/es/upload/src/interface.d.ts +2 -2
- package/es/upload/src/styles/index.cssr.js +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/icons/CheckmarkCircle.d.ts +2 -0
- package/lib/_internal/icons/CheckmarkCircle.js +11 -0
- package/lib/_internal/icons/DismissCircle.d.ts +2 -0
- package/lib/_internal/icons/DismissCircle.js +11 -0
- package/lib/_internal/icons/Edit.d.ts +2 -0
- package/lib/_internal/icons/Edit.js +11 -0
- package/lib/_internal/icons/index.d.ts +3 -0
- package/lib/_internal/icons/index.js +7 -1
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +2 -0
- package/lib/_internal/select-menu/src/SelectOption.js +5 -2
- package/lib/_internal/selection/src/Selection.d.ts +2 -0
- package/lib/_internal/selection/src/Selection.js +6 -4
- package/lib/_styles/common/dark.js +1 -1
- package/lib/_styles/common/light.d.ts +2 -0
- package/lib/_styles/common/light.js +1 -1
- package/lib/alert/src/Alert.d.ts +2 -0
- package/lib/auto-complete/src/AutoComplete.d.ts +2 -0
- package/lib/avatar-group/src/AvatarGroup.d.ts +2 -0
- package/lib/calendar/src/Calendar.d.ts +2 -0
- package/lib/card/src/Card.d.ts +2 -0
- package/lib/cascader/src/Cascader.d.ts +2 -0
- package/lib/cascader/src/CascaderMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderOption.d.ts +2 -0
- package/lib/cascader/src/CascaderSelectMenu.d.ts +2 -0
- package/lib/cascader/src/CascaderSubmenu.d.ts +2 -0
- package/lib/checkbox/src/Checkbox.d.ts +2 -0
- package/lib/collapse/src/Collapse.d.ts +2 -0
- package/lib/color-picker/src/ColorInputUnit.d.ts +2 -0
- package/lib/data-table/src/DataTable.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterButton.d.ts +2 -0
- package/lib/data-table/src/HeaderButton/FilterMenu.d.ts +2 -0
- package/lib/data-table/src/TableParts/Body.d.ts +2 -0
- package/lib/data-table/src/TableParts/Cell.d.ts +4 -0
- package/lib/data-table/src/TableParts/Header.d.ts +2 -0
- package/lib/data-table/styles/light.js +2 -2
- package/lib/date-picker/src/DatePicker.d.ts +2 -0
- package/lib/date-picker/src/panel/date.d.ts +2 -0
- package/lib/date-picker/src/panel/daterange.d.ts +2 -0
- package/lib/date-picker/src/panel/datetime.d.ts +2 -0
- package/lib/date-picker/src/panel/datetimerange.d.ts +2 -0
- package/lib/date-picker/src/panel/panelMonth.d.ts +4 -0
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +2 -0
- package/lib/date-picker/src/panel/panelYear.d.ts +4 -0
- package/lib/date-picker/src/panel/panelYearContent.d.ts +2 -0
- package/lib/date-picker/src/panel/use-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-dual-calendar.d.ts +2 -0
- package/lib/date-picker/src/panel/use-panel-common.d.ts +2 -0
- package/lib/dialog/src/Dialog.d.ts +2 -0
- package/lib/dialog/src/DialogProvider.d.ts +4 -0
- package/lib/drawer/src/Drawer.d.ts +24 -0
- package/lib/drawer/src/Drawer.js +4 -2
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +4 -0
- package/lib/drawer/src/DrawerContent.d.ts +4 -0
- package/lib/drawer/src/styles/index.cssr.js +4 -0
- package/lib/drawer/styles/_common.d.ts +2 -0
- package/lib/drawer/styles/_common.js +3 -1
- package/lib/drawer/styles/light.d.ts +4 -0
- package/lib/dropdown/src/Dropdown.d.ts +2 -0
- package/lib/dynamic-input/src/DynamicInput.d.ts +2 -0
- package/lib/dynamic-input/src/InputPreset.d.ts +2 -0
- package/lib/dynamic-input/src/PairPreset.d.ts +2 -0
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -0
- package/lib/ellipsis/src/Ellipsis.d.ts +2 -0
- package/lib/input/src/Input.d.ts +2 -0
- package/lib/input-number/src/InputNumber.d.ts +2 -0
- package/lib/layout/src/Layout.d.ts +4 -0
- package/lib/layout/src/LayoutContent.d.ts +2 -0
- package/lib/layout/src/LayoutSider.d.ts +2 -0
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -0
- package/lib/legacy-transfer/src/TransferFilter.d.ts +2 -0
- package/lib/legacy-transfer/src/TransferList.d.ts +2 -0
- package/lib/legacy-transfer/src/TransferListItem.d.ts +2 -0
- package/lib/log/src/Log.d.ts +2 -0
- package/lib/mention/src/Mention.d.ts +2 -0
- package/lib/menu/src/Menu.d.ts +2 -0
- package/lib/menu/src/MenuOption.d.ts +2 -0
- package/lib/menu/src/Submenu.d.ts +2 -0
- package/lib/modal/src/BodyWrapper.d.ts +2 -0
- package/lib/notification/src/NotificationContainer.d.ts +2 -0
- package/lib/pagination/src/Pagination.d.ts +2 -0
- package/lib/popconfirm/src/Popconfirm.d.ts +2 -0
- package/lib/popselect/src/Popselect.d.ts +2 -0
- package/lib/popselect/src/PopselectPanel.d.ts +2 -0
- package/lib/select/src/Select.d.ts +2 -0
- package/lib/status/src/Status.d.ts +36 -6
- package/lib/status/src/Status.js +27 -21
- package/lib/status/src/interface.d.ts +3 -0
- package/lib/status/src/interface.js +2 -0
- package/lib/status/src/styles/index.cssr.js +5 -1
- package/lib/status/styles/light.d.ts +2 -0
- package/lib/status/styles/light.js +3 -1
- package/lib/steps/src/Step.d.ts +12 -6
- package/lib/steps/src/Step.js +76 -45
- package/lib/steps/src/Steps.d.ts +63 -13
- package/lib/steps/src/Steps.js +6 -2
- package/lib/steps/src/interface.d.ts +13 -0
- package/lib/steps/src/interface.js +2 -0
- package/lib/steps/src/styles/index.cssr.js +24 -1
- package/lib/steps/styles/light.d.ts +4 -0
- package/lib/steps/styles/light.js +5 -1
- package/lib/tag/src/Tag.js +1 -1
- package/lib/tag/src/styles/index.cssr.js +0 -4
- package/lib/theme-editor/src/ThemeEditor.d.ts +2 -0
- package/lib/time-picker/src/Panel.d.ts +2 -0
- package/lib/time-picker/src/TimePicker.d.ts +2 -0
- package/lib/tooltip/src/Tooltip.d.ts +2 -0
- package/lib/transfer/src/Transfer.d.ts +2 -0
- package/lib/transfer/src/TransferFilter.d.ts +2 -0
- package/lib/transfer/src/TransferList.d.ts +2 -0
- package/lib/transfer/src/TransferListItem.d.ts +2 -0
- package/lib/tree/src/Tree.d.ts +2 -0
- package/lib/tree/src/TreeNodeCheckbox.d.ts +2 -0
- package/lib/tree-select/src/TreeSelect.d.ts +2 -0
- package/lib/upload/src/Upload.d.ts +3 -1
- package/lib/upload/src/Upload.js +5 -4
- package/lib/upload/src/UploadFile.d.ts +2 -0
- package/lib/upload/src/UploadProgress.d.ts +2 -0
- package/lib/upload/src/UploadTrigger.js +2 -2
- package/lib/upload/src/interface.d.ts +2 -2
- package/lib/upload/src/styles/index.cssr.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +29 -4
package/es/steps/src/Steps.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { type PropType,
|
|
1
|
+
import { type PropType, ExtractPropTypes, Ref, Slots } from 'vue';
|
|
2
2
|
import type { MergedTheme } from '../../_mixins';
|
|
3
|
-
import type { ExtractPublicPropTypes
|
|
3
|
+
import type { ExtractPublicPropTypes } from '../../_utils';
|
|
4
4
|
import type { StepsTheme } from '../styles';
|
|
5
|
+
import { OnUpdateValue, StepsStatus, StepsVariant } from './interface';
|
|
5
6
|
export declare const stepsProps: {
|
|
6
7
|
current: NumberConstructor;
|
|
7
8
|
status: {
|
|
8
|
-
type: PropType<
|
|
9
|
+
type: PropType<StepsStatus>;
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
size: {
|
|
@@ -13,8 +14,12 @@ export declare const stepsProps: {
|
|
|
13
14
|
default: string;
|
|
14
15
|
};
|
|
15
16
|
vertical: BooleanConstructor;
|
|
16
|
-
|
|
17
|
-
|
|
17
|
+
variant: {
|
|
18
|
+
type: PropType<StepsVariant>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
'onUpdate:current': PropType<OnUpdateValue>;
|
|
22
|
+
onUpdateCurrent: PropType<OnUpdateValue>;
|
|
18
23
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
19
24
|
stepHeaderFontSizeSmall: string;
|
|
20
25
|
stepHeaderFontSizeMedium: string;
|
|
@@ -24,6 +29,10 @@ export declare const stepsProps: {
|
|
|
24
29
|
indicatorSizeMedium: string;
|
|
25
30
|
indicatorIconSizeSmall: string;
|
|
26
31
|
indicatorIconSizeMedium: string;
|
|
32
|
+
indicatorIconColorProcess: string;
|
|
33
|
+
indicatorIconColorWait: string;
|
|
34
|
+
indicatorIconColorFinish: string;
|
|
35
|
+
indicatorIconColorError: string;
|
|
27
36
|
stepHeaderFontWeight: string;
|
|
28
37
|
indicatorTextColorProcess: string;
|
|
29
38
|
indicatorTextColorWait: string;
|
|
@@ -59,6 +68,10 @@ export declare const stepsProps: {
|
|
|
59
68
|
indicatorSizeMedium: string;
|
|
60
69
|
indicatorIconSizeSmall: string;
|
|
61
70
|
indicatorIconSizeMedium: string;
|
|
71
|
+
indicatorIconColorProcess: string;
|
|
72
|
+
indicatorIconColorWait: string;
|
|
73
|
+
indicatorIconColorFinish: string;
|
|
74
|
+
indicatorIconColorError: string;
|
|
62
75
|
stepHeaderFontWeight: string;
|
|
63
76
|
indicatorTextColorProcess: string;
|
|
64
77
|
indicatorTextColorWait: string;
|
|
@@ -94,6 +107,10 @@ export declare const stepsProps: {
|
|
|
94
107
|
indicatorSizeMedium: string;
|
|
95
108
|
indicatorIconSizeSmall: string;
|
|
96
109
|
indicatorIconSizeMedium: string;
|
|
110
|
+
indicatorIconColorProcess: string;
|
|
111
|
+
indicatorIconColorWait: string;
|
|
112
|
+
indicatorIconColorFinish: string;
|
|
113
|
+
indicatorIconColorError: string;
|
|
97
114
|
stepHeaderFontWeight: string;
|
|
98
115
|
indicatorTextColorProcess: string;
|
|
99
116
|
indicatorTextColorWait: string;
|
|
@@ -121,18 +138,18 @@ export declare const stepsProps: {
|
|
|
121
138
|
descriptionTextColorError: string;
|
|
122
139
|
}, any>>>;
|
|
123
140
|
};
|
|
141
|
+
export type StepsProps = ExtractPublicPropTypes<typeof stepsProps>;
|
|
124
142
|
export interface StepsInjection {
|
|
125
143
|
props: ExtractPropTypes<typeof stepsProps>;
|
|
126
144
|
mergedClsPrefixRef: Ref<string>;
|
|
127
145
|
mergedThemeRef: Ref<MergedTheme<StepsTheme>>;
|
|
128
146
|
stepsSlots: Slots;
|
|
129
147
|
}
|
|
130
|
-
export type StepsProps = ExtractPublicPropTypes<typeof stepsProps>;
|
|
131
148
|
export declare const stepsInjectionKey: import("vue").InjectionKey<StepsInjection>;
|
|
132
149
|
declare const _default: import("vue").DefineComponent<{
|
|
133
150
|
current: NumberConstructor;
|
|
134
151
|
status: {
|
|
135
|
-
type: PropType<
|
|
152
|
+
type: PropType<StepsStatus>;
|
|
136
153
|
default: string;
|
|
137
154
|
};
|
|
138
155
|
size: {
|
|
@@ -140,8 +157,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
157
|
default: string;
|
|
141
158
|
};
|
|
142
159
|
vertical: BooleanConstructor;
|
|
143
|
-
|
|
144
|
-
|
|
160
|
+
variant: {
|
|
161
|
+
type: PropType<StepsVariant>;
|
|
162
|
+
default: string;
|
|
163
|
+
};
|
|
164
|
+
'onUpdate:current': PropType<OnUpdateValue>;
|
|
165
|
+
onUpdateCurrent: PropType<OnUpdateValue>;
|
|
145
166
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
146
167
|
stepHeaderFontSizeSmall: string;
|
|
147
168
|
stepHeaderFontSizeMedium: string;
|
|
@@ -151,6 +172,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
151
172
|
indicatorSizeMedium: string;
|
|
152
173
|
indicatorIconSizeSmall: string;
|
|
153
174
|
indicatorIconSizeMedium: string;
|
|
175
|
+
indicatorIconColorProcess: string;
|
|
176
|
+
indicatorIconColorWait: string;
|
|
177
|
+
indicatorIconColorFinish: string;
|
|
178
|
+
indicatorIconColorError: string;
|
|
154
179
|
stepHeaderFontWeight: string;
|
|
155
180
|
indicatorTextColorProcess: string;
|
|
156
181
|
indicatorTextColorWait: string;
|
|
@@ -186,6 +211,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
186
211
|
indicatorSizeMedium: string;
|
|
187
212
|
indicatorIconSizeSmall: string;
|
|
188
213
|
indicatorIconSizeMedium: string;
|
|
214
|
+
indicatorIconColorProcess: string;
|
|
215
|
+
indicatorIconColorWait: string;
|
|
216
|
+
indicatorIconColorFinish: string;
|
|
217
|
+
indicatorIconColorError: string;
|
|
189
218
|
stepHeaderFontWeight: string;
|
|
190
219
|
indicatorTextColorProcess: string;
|
|
191
220
|
indicatorTextColorWait: string;
|
|
@@ -221,6 +250,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
221
250
|
indicatorSizeMedium: string;
|
|
222
251
|
indicatorIconSizeSmall: string;
|
|
223
252
|
indicatorIconSizeMedium: string;
|
|
253
|
+
indicatorIconColorProcess: string;
|
|
254
|
+
indicatorIconColorWait: string;
|
|
255
|
+
indicatorIconColorFinish: string;
|
|
256
|
+
indicatorIconColorError: string;
|
|
224
257
|
stepHeaderFontWeight: string;
|
|
225
258
|
indicatorTextColorProcess: string;
|
|
226
259
|
indicatorTextColorWait: string;
|
|
@@ -253,7 +286,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
253
286
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
254
287
|
current: NumberConstructor;
|
|
255
288
|
status: {
|
|
256
|
-
type: PropType<
|
|
289
|
+
type: PropType<StepsStatus>;
|
|
257
290
|
default: string;
|
|
258
291
|
};
|
|
259
292
|
size: {
|
|
@@ -261,8 +294,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
261
294
|
default: string;
|
|
262
295
|
};
|
|
263
296
|
vertical: BooleanConstructor;
|
|
264
|
-
|
|
265
|
-
|
|
297
|
+
variant: {
|
|
298
|
+
type: PropType<StepsVariant>;
|
|
299
|
+
default: string;
|
|
300
|
+
};
|
|
301
|
+
'onUpdate:current': PropType<OnUpdateValue>;
|
|
302
|
+
onUpdateCurrent: PropType<OnUpdateValue>;
|
|
266
303
|
theme: PropType<import("../../_mixins").Theme<"Steps", {
|
|
267
304
|
stepHeaderFontSizeSmall: string;
|
|
268
305
|
stepHeaderFontSizeMedium: string;
|
|
@@ -272,6 +309,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
272
309
|
indicatorSizeMedium: string;
|
|
273
310
|
indicatorIconSizeSmall: string;
|
|
274
311
|
indicatorIconSizeMedium: string;
|
|
312
|
+
indicatorIconColorProcess: string;
|
|
313
|
+
indicatorIconColorWait: string;
|
|
314
|
+
indicatorIconColorFinish: string;
|
|
315
|
+
indicatorIconColorError: string;
|
|
275
316
|
stepHeaderFontWeight: string;
|
|
276
317
|
indicatorTextColorProcess: string;
|
|
277
318
|
indicatorTextColorWait: string;
|
|
@@ -307,6 +348,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
307
348
|
indicatorSizeMedium: string;
|
|
308
349
|
indicatorIconSizeSmall: string;
|
|
309
350
|
indicatorIconSizeMedium: string;
|
|
351
|
+
indicatorIconColorProcess: string;
|
|
352
|
+
indicatorIconColorWait: string;
|
|
353
|
+
indicatorIconColorFinish: string;
|
|
354
|
+
indicatorIconColorError: string;
|
|
310
355
|
stepHeaderFontWeight: string;
|
|
311
356
|
indicatorTextColorProcess: string;
|
|
312
357
|
indicatorTextColorWait: string;
|
|
@@ -342,6 +387,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
342
387
|
indicatorSizeMedium: string;
|
|
343
388
|
indicatorIconSizeSmall: string;
|
|
344
389
|
indicatorIconSizeMedium: string;
|
|
390
|
+
indicatorIconColorProcess: string;
|
|
391
|
+
indicatorIconColorWait: string;
|
|
392
|
+
indicatorIconColorFinish: string;
|
|
393
|
+
indicatorIconColorError: string;
|
|
345
394
|
stepHeaderFontWeight: string;
|
|
346
395
|
indicatorTextColorProcess: string;
|
|
347
396
|
indicatorTextColorWait: string;
|
|
@@ -371,6 +420,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
371
420
|
}>>, {
|
|
372
421
|
size: "small" | "medium";
|
|
373
422
|
vertical: boolean;
|
|
374
|
-
status:
|
|
423
|
+
status: StepsStatus;
|
|
424
|
+
variant: StepsVariant;
|
|
375
425
|
}, {}>;
|
|
376
426
|
export default _default;
|
package/es/steps/src/Steps.js
CHANGED
|
@@ -21,7 +21,10 @@ export const stepsProps = Object.assign(Object.assign({}, useTheme.props), { cur
|
|
|
21
21
|
}, size: {
|
|
22
22
|
type: String,
|
|
23
23
|
default: 'medium'
|
|
24
|
-
}, vertical: Boolean,
|
|
24
|
+
}, vertical: Boolean, variant: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: 'default'
|
|
27
|
+
}, 'onUpdate:current': [Function, Array], onUpdateCurrent: [Function, Array] });
|
|
25
28
|
export const stepsInjectionKey = createInjectionKey('u-steps');
|
|
26
29
|
export default defineComponent({
|
|
27
30
|
name: 'Steps',
|
|
@@ -46,7 +49,8 @@ export default defineComponent({
|
|
|
46
49
|
return (h("div", { class: [
|
|
47
50
|
`${mergedClsPrefix}-steps`,
|
|
48
51
|
this.rtlEnabled && `${mergedClsPrefix}-steps--rtl`,
|
|
49
|
-
this.vertical &&
|
|
52
|
+
(this.vertical || this.variant === 'history') &&
|
|
53
|
+
`${mergedClsPrefix}-steps--vertical`
|
|
50
54
|
] }, stepsWithIndex(flatten(getSlot(this)))));
|
|
51
55
|
}
|
|
52
56
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
import { MaybeArray } from '../../_utils';
|
|
3
|
+
export type StepsStatus = 'process' | 'finish' | 'error' | 'wait';
|
|
4
|
+
export type StepsVariant = 'default' | 'history';
|
|
5
|
+
export type OnUpdateValue = MaybeArray<(current: number) => void>;
|
|
6
|
+
export type IconRenderer = {
|
|
7
|
+
[K in StepsVariant]: Record<string, () => VNodeChild | null>;
|
|
8
|
+
};
|
|
9
|
+
export interface VariantBehaviors {
|
|
10
|
+
variant: StepsVariant;
|
|
11
|
+
isVerticalOrHistory: boolean;
|
|
12
|
+
shouldRenderSplitor: boolean;
|
|
13
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -13,6 +13,7 @@ import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.c
|
|
|
13
13
|
// --u-splitor-color
|
|
14
14
|
// --u-step-header-font-size
|
|
15
15
|
// --u-step-header-font-weight
|
|
16
|
+
// --u-step-icon-color
|
|
16
17
|
export default cB('steps', `
|
|
17
18
|
width: 100%;
|
|
18
19
|
display: flex;
|
|
@@ -107,7 +108,29 @@ export default cB('steps', `
|
|
|
107
108
|
`, [iconSwitchTransition()]), cB('base-icon', `
|
|
108
109
|
color: var(--u-indicator-text-color);
|
|
109
110
|
transition: color .3s var(--u-bezier);
|
|
110
|
-
`, [iconSwitchTransition()])])]), cM('vertical', 'flex-direction: column;', [cNotM('show-description', [c('>', [cB('step', 'padding-bottom: 8px;')])]), c('>', [cB('step', 'margin-bottom: 16px;', [
|
|
111
|
+
`, [iconSwitchTransition()])])]), cM('vertical', 'flex-direction: column;', [cNotM('show-description', [c('>', [cB('step', 'padding-bottom: 8px;')])]), c('>', [cB('step', 'margin-bottom: 16px;', [cM('history-variant', [`
|
|
112
|
+
margin-top: 12px;
|
|
113
|
+
margin-bottom: 24px;
|
|
114
|
+
color: var(--u-header-text-color);
|
|
115
|
+
`, c('>', [cB('step-indicator', [`
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
box-shadow: none;
|
|
118
|
+
color: var(--u-header-text-color);
|
|
119
|
+
`, cB('step-indicator-slot', [cB('icon', `
|
|
120
|
+
color: var(--u-step-icon-color);
|
|
121
|
+
transition: color .3s var(--u-bezier);
|
|
122
|
+
`, [iconSwitchTransition()]), cB('base-icon', `
|
|
123
|
+
color: var(--u-step-icon-color);
|
|
124
|
+
transition: color .3s var(--u-bezier);
|
|
125
|
+
`, [iconSwitchTransition()])]), c('>', [cB('step-splitor', `
|
|
126
|
+
position: absolute;
|
|
127
|
+
bottom: -24px;
|
|
128
|
+
width: 2px;
|
|
129
|
+
background-color: var(--u-color-target);
|
|
130
|
+
margin: 0 !important;
|
|
131
|
+
left: calc(var(--u-indicator-size) / 2);
|
|
132
|
+
height: calc(100% - var(--u-indicator-size));
|
|
133
|
+
`)])]), cB('step-content', [cE('description', 'margin-top: 8px;')])])]), c('&:last-child', 'margin-bottom: 0;'), c('>', [cB('step-indicator', [c('>', [cB('step-splitor', `
|
|
111
134
|
position: absolute;
|
|
112
135
|
bottom: -8px;
|
|
113
136
|
width: 1px;
|
|
@@ -9,6 +9,10 @@ export declare const self: (vars: ThemeCommonVars) => {
|
|
|
9
9
|
indicatorSizeMedium: string;
|
|
10
10
|
indicatorIconSizeSmall: string;
|
|
11
11
|
indicatorIconSizeMedium: string;
|
|
12
|
+
indicatorIconColorProcess: string;
|
|
13
|
+
indicatorIconColorWait: string;
|
|
14
|
+
indicatorIconColorFinish: string;
|
|
15
|
+
indicatorIconColorError: string;
|
|
12
16
|
stepHeaderFontWeight: string;
|
|
13
17
|
indicatorTextColorProcess: string;
|
|
14
18
|
indicatorTextColorWait: string;
|
package/es/steps/styles/light.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { commonLight } from '../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
|
-
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite } = vars;
|
|
3
|
+
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite, staticGreen } = vars;
|
|
4
4
|
return {
|
|
5
5
|
stepHeaderFontSizeSmall: fontBodySmall,
|
|
6
6
|
stepHeaderFontSizeMedium: fontBodyMedium,
|
|
@@ -10,6 +10,10 @@ export const self = (vars) => {
|
|
|
10
10
|
indicatorSizeMedium: '28px',
|
|
11
11
|
indicatorIconSizeSmall: '14px',
|
|
12
12
|
indicatorIconSizeMedium: '18px',
|
|
13
|
+
indicatorIconColorProcess: textPrimary,
|
|
14
|
+
indicatorIconColorWait: textSecondary,
|
|
15
|
+
indicatorIconColorFinish: staticGreen,
|
|
16
|
+
indicatorIconColorError: staticRed,
|
|
13
17
|
stepHeaderFontWeight: fontWeightStrong,
|
|
14
18
|
indicatorTextColorProcess: staticWhite,
|
|
15
19
|
indicatorTextColorWait: textSecondary,
|
package/es/tag/src/Tag.js
CHANGED
|
@@ -154,6 +154,6 @@ export default defineComponent({
|
|
|
154
154
|
iconNode || avatarNode,
|
|
155
155
|
h("span", { class: `${mergedClsPrefix}-tag__content`, ref: "contentRef" }, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)),
|
|
156
156
|
!this.checkable && closable ? (h(UBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-tag__close`, disabled: this.disabled, onClick: this.handleCloseClick, focusable: this.internalCloseFocusable, round: round, isButtonTag: this.internalCloseIsButtonTag, absolute: true })) : null,
|
|
157
|
-
|
|
157
|
+
this.mergedBordered ? (h("div", { class: `${mergedClsPrefix}-tag__border`, style: { borderColor } })) : null));
|
|
158
158
|
}
|
|
159
159
|
});
|
|
@@ -93,15 +93,11 @@ export default cB('tag', `
|
|
|
93
93
|
box-shadow: none;
|
|
94
94
|
color: var(--u-text-color-checkable);
|
|
95
95
|
background-color: var(--u-color-checkable);
|
|
96
|
-
border: var(--u-border);
|
|
97
|
-
border-color: var(--u-color);
|
|
98
96
|
transition: border-color .3s var(--u-bezier);
|
|
99
97
|
`, [cNotM('disabled', [c('&:hover', 'background-color: var(--u-color-hover-checkable);', [cNotM('checked', 'color: var(--u-text-color-hover-checkable);')]), c('&:focus', `
|
|
100
98
|
background-color: var(--u-color-pressed-checkable);
|
|
101
|
-
border: var(--u-border);
|
|
102
99
|
transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')]), c('&:active', `
|
|
103
100
|
background-color: var(--u-color-pressed-checkable);
|
|
104
|
-
border: var(--u-border);
|
|
105
101
|
transition: border-color .3s var(--u-bezier);`, [cNotM('checked', 'color: var(--u-text-color-pressed-checkable);')])]), cM('checked', `
|
|
106
102
|
color: var(--u-text-color-checked);
|
|
107
103
|
background-color: var(--u-color-checked);
|
|
@@ -66,8 +66,10 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
66
66
|
staticRed: string;
|
|
67
67
|
staticOrange: string;
|
|
68
68
|
staticGreen: string;
|
|
69
|
+
staticDeepBlue: string;
|
|
69
70
|
staticErrorAccent: string;
|
|
70
71
|
shadowDepth2: string;
|
|
72
|
+
shadowDepth: string;
|
|
71
73
|
fontFamily: string;
|
|
72
74
|
fontFamilyMono: string;
|
|
73
75
|
cubicBezierEaseInOut: string;
|
|
@@ -133,8 +133,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
133
133
|
staticRed: string;
|
|
134
134
|
staticOrange: string;
|
|
135
135
|
staticGreen: string;
|
|
136
|
+
staticDeepBlue: string;
|
|
136
137
|
staticErrorAccent: string;
|
|
137
138
|
shadowDepth2: string;
|
|
139
|
+
shadowDepth: string;
|
|
138
140
|
fontFamily: string;
|
|
139
141
|
fontFamilyMono: string;
|
|
140
142
|
cubicBezierEaseInOut: string;
|
|
@@ -2114,8 +2114,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2114
2114
|
staticRed: string;
|
|
2115
2115
|
staticOrange: string;
|
|
2116
2116
|
staticGreen: string;
|
|
2117
|
+
staticDeepBlue: string;
|
|
2117
2118
|
staticErrorAccent: string;
|
|
2118
2119
|
shadowDepth2: string;
|
|
2120
|
+
shadowDepth: string;
|
|
2119
2121
|
fontFamily: string;
|
|
2120
2122
|
fontFamilyMono: string;
|
|
2121
2123
|
cubicBezierEaseInOut: string;
|
|
@@ -428,8 +428,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
428
428
|
staticRed: string;
|
|
429
429
|
staticOrange: string;
|
|
430
430
|
staticGreen: string;
|
|
431
|
+
staticDeepBlue: string;
|
|
431
432
|
staticErrorAccent: string;
|
|
432
433
|
shadowDepth2: string;
|
|
434
|
+
shadowDepth: string;
|
|
433
435
|
fontFamily: string;
|
|
434
436
|
fontFamilyMono: string;
|
|
435
437
|
cubicBezierEaseInOut: string;
|
|
@@ -2443,8 +2443,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2443
2443
|
staticRed: string;
|
|
2444
2444
|
staticOrange: string;
|
|
2445
2445
|
staticGreen: string;
|
|
2446
|
+
staticDeepBlue: string;
|
|
2446
2447
|
staticErrorAccent: string;
|
|
2447
2448
|
shadowDepth2: string;
|
|
2449
|
+
shadowDepth: string;
|
|
2448
2450
|
fontFamily: string;
|
|
2449
2451
|
fontFamilyMono: string;
|
|
2450
2452
|
cubicBezierEaseInOut: string;
|
|
@@ -66,8 +66,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
staticRed: string;
|
|
67
67
|
staticOrange: string;
|
|
68
68
|
staticGreen: string;
|
|
69
|
+
staticDeepBlue: string;
|
|
69
70
|
staticErrorAccent: string;
|
|
70
71
|
shadowDepth2: string;
|
|
72
|
+
shadowDepth: string;
|
|
71
73
|
fontFamily: string;
|
|
72
74
|
fontFamilyMono: string;
|
|
73
75
|
cubicBezierEaseInOut: string;
|
|
@@ -76,8 +76,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
76
|
staticRed: string;
|
|
77
77
|
staticOrange: string;
|
|
78
78
|
staticGreen: string;
|
|
79
|
+
staticDeepBlue: string;
|
|
79
80
|
staticErrorAccent: string;
|
|
80
81
|
shadowDepth2: string;
|
|
82
|
+
shadowDepth: string;
|
|
81
83
|
fontFamily: string;
|
|
82
84
|
fontFamilyMono: string;
|
|
83
85
|
cubicBezierEaseInOut: string;
|
|
@@ -74,8 +74,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
staticRed: string;
|
|
75
75
|
staticOrange: string;
|
|
76
76
|
staticGreen: string;
|
|
77
|
+
staticDeepBlue: string;
|
|
77
78
|
staticErrorAccent: string;
|
|
78
79
|
shadowDepth2: string;
|
|
80
|
+
shadowDepth: string;
|
|
79
81
|
fontFamily: string;
|
|
80
82
|
fontFamilyMono: string;
|
|
81
83
|
cubicBezierEaseInOut: string;
|
package/es/tree/src/Tree.d.ts
CHANGED
|
@@ -920,8 +920,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
920
920
|
staticRed: string;
|
|
921
921
|
staticOrange: string;
|
|
922
922
|
staticGreen: string;
|
|
923
|
+
staticDeepBlue: string;
|
|
923
924
|
staticErrorAccent: string;
|
|
924
925
|
shadowDepth2: string;
|
|
926
|
+
shadowDepth: string;
|
|
925
927
|
fontFamily: string;
|
|
926
928
|
fontFamilyMono: string;
|
|
927
929
|
cubicBezierEaseInOut: string;
|
|
@@ -73,8 +73,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
73
73
|
staticRed: string;
|
|
74
74
|
staticOrange: string;
|
|
75
75
|
staticGreen: string;
|
|
76
|
+
staticDeepBlue: string;
|
|
76
77
|
staticErrorAccent: string;
|
|
77
78
|
shadowDepth2: string;
|
|
79
|
+
shadowDepth: string;
|
|
78
80
|
fontFamily: string;
|
|
79
81
|
fontFamilyMono: string;
|
|
80
82
|
cubicBezierEaseInOut: string;
|
|
@@ -1760,8 +1760,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1760
1760
|
staticRed: string;
|
|
1761
1761
|
staticOrange: string;
|
|
1762
1762
|
staticGreen: string;
|
|
1763
|
+
staticDeepBlue: string;
|
|
1763
1764
|
staticErrorAccent: string;
|
|
1764
1765
|
shadowDepth2: string;
|
|
1766
|
+
shadowDepth: string;
|
|
1765
1767
|
fontFamily: string;
|
|
1766
1768
|
fontFamilyMono: string;
|
|
1767
1769
|
cubicBezierEaseInOut: string;
|
|
@@ -1735,7 +1735,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1735
1735
|
}, any>;
|
|
1736
1736
|
}>>>;
|
|
1737
1737
|
}, {
|
|
1738
|
-
|
|
1738
|
+
openFileDialog: () => void;
|
|
1739
1739
|
submit: () => void;
|
|
1740
1740
|
clear: () => void;
|
|
1741
1741
|
mergedClsPrefix: import("vue").Ref<string>;
|
|
@@ -1803,8 +1803,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1803
1803
|
staticRed: string;
|
|
1804
1804
|
staticOrange: string;
|
|
1805
1805
|
staticGreen: string;
|
|
1806
|
+
staticDeepBlue: string;
|
|
1806
1807
|
staticErrorAccent: string;
|
|
1807
1808
|
shadowDepth2: string;
|
|
1809
|
+
shadowDepth: string;
|
|
1808
1810
|
fontFamily: string;
|
|
1809
1811
|
fontFamilyMono: string;
|
|
1810
1812
|
cubicBezierEaseInOut: string;
|
package/es/upload/src/Upload.js
CHANGED
|
@@ -251,7 +251,7 @@ export default defineComponent({
|
|
|
251
251
|
const xhrMap = new Map();
|
|
252
252
|
const _mergedFileListRef = useMergedState(controlledFileListRef, uncontrolledFileListRef);
|
|
253
253
|
const mergedFileListRef = computed(() => _mergedFileListRef.value.map(createSettledFileInfo));
|
|
254
|
-
function
|
|
254
|
+
function openFileDialog() {
|
|
255
255
|
var _a;
|
|
256
256
|
(_a = inputElRef.value) === null || _a === void 0 ? void 0 : _a.click();
|
|
257
257
|
}
|
|
@@ -452,7 +452,8 @@ export default defineComponent({
|
|
|
452
452
|
'--u-dragger-icon-color': draggerIconColor,
|
|
453
453
|
'--u-dragger-title-color': draggerTitleColor,
|
|
454
454
|
'--u-dragger-text-color': draggerTextColor,
|
|
455
|
-
'--u-label-color': labelColor
|
|
455
|
+
'--u-label-color': labelColor,
|
|
456
|
+
'--u-upload-width': props.listType === 'image-card' ? 'auto' : '100%'
|
|
456
457
|
};
|
|
457
458
|
});
|
|
458
459
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -479,7 +480,7 @@ export default defineComponent({
|
|
|
479
480
|
getFileThumbnailUrlResolver,
|
|
480
481
|
listTypeRef: toRef(props, 'listType'),
|
|
481
482
|
dragOverRef,
|
|
482
|
-
|
|
483
|
+
openFileDialog,
|
|
483
484
|
draggerInsideRef,
|
|
484
485
|
handleFileAddition,
|
|
485
486
|
mergedDisabledRef: formItem.mergedDisabledRef,
|
|
@@ -502,7 +503,7 @@ export default defineComponent({
|
|
|
502
503
|
uncontrolledFileListRef.value = [];
|
|
503
504
|
},
|
|
504
505
|
submit,
|
|
505
|
-
|
|
506
|
+
openFileDialog
|
|
506
507
|
};
|
|
507
508
|
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, draggerInsideRef,
|
|
508
509
|
inputElRef, mergedTheme: themeRef, dragOver: dragOverRef, mergedMultiple: mergedMultipleRef, cssVars: inlineThemeDisabled ? undefined : cssVarsRef, themeClass: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.themeClass, onRender: themeClassHandle === null || themeClassHandle === void 0 ? void 0 : themeClassHandle.onRender, handleFileInputChange }, exposedMethods);
|
|
@@ -71,8 +71,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
71
71
|
staticRed: string;
|
|
72
72
|
staticOrange: string;
|
|
73
73
|
staticGreen: string;
|
|
74
|
+
staticDeepBlue: string;
|
|
74
75
|
staticErrorAccent: string;
|
|
75
76
|
shadowDepth2: string;
|
|
77
|
+
shadowDepth: string;
|
|
76
78
|
fontFamily: string;
|
|
77
79
|
fontFamilyMono: string;
|
|
78
80
|
cubicBezierEaseInOut: string;
|
|
@@ -67,8 +67,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
67
67
|
staticRed: string;
|
|
68
68
|
staticOrange: string;
|
|
69
69
|
staticGreen: string;
|
|
70
|
+
staticDeepBlue: string;
|
|
70
71
|
staticErrorAccent: string;
|
|
71
72
|
shadowDepth2: string;
|
|
73
|
+
shadowDepth: string;
|
|
72
74
|
fontFamily: string;
|
|
73
75
|
fontFamilyMono: string;
|
|
74
76
|
cubicBezierEaseInOut: string;
|
|
@@ -15,12 +15,12 @@ export default defineComponent({
|
|
|
15
15
|
if (!UUpload) {
|
|
16
16
|
throwError('upload-trigger', '`u-upload-trigger` must be placed inside `u-upload`.');
|
|
17
17
|
}
|
|
18
|
-
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef,
|
|
18
|
+
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef, openFileDialog, draggerInsideRef, handleFileAddition, mergedDirectoryDndRef, triggerStyleRef } = UUpload;
|
|
19
19
|
const isImageCardTypeRef = computed(() => listTypeRef.value === 'image-card');
|
|
20
20
|
function handleTriggerClick() {
|
|
21
21
|
if (mergedDisabledRef.value || maxReachedRef.value)
|
|
22
22
|
return;
|
|
23
|
-
|
|
23
|
+
openFileDialog();
|
|
24
24
|
}
|
|
25
25
|
function handleTriggerDragOver(e) {
|
|
26
26
|
e.preventDefault();
|
|
@@ -82,7 +82,7 @@ export interface UploadInjection {
|
|
|
82
82
|
getFileThumbnailUrlResolver: (file: SettledFileInfo) => Promise<string> | string;
|
|
83
83
|
renderIconRef: Ref<RenderIcon | undefined>;
|
|
84
84
|
handleFileAddition: (files: FileAndEntry[] | null, e?: Event) => void;
|
|
85
|
-
|
|
85
|
+
openFileDialog: () => void;
|
|
86
86
|
}
|
|
87
87
|
export declare const uploadInjectionKey: import("vue").InjectionKey<UploadInjection>;
|
|
88
88
|
export interface XhrHandlers {
|
|
@@ -92,7 +92,7 @@ export interface XhrHandlers {
|
|
|
92
92
|
handleXHRError: (e: ProgressEvent) => void;
|
|
93
93
|
}
|
|
94
94
|
export interface UploadInst {
|
|
95
|
-
|
|
95
|
+
openFileDialog: () => void;
|
|
96
96
|
submit: () => void;
|
|
97
97
|
clear: () => void;
|
|
98
98
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { c, cM, cB, cE } from '../../../_utils/cssr';
|
|
2
2
|
import { fadeInHeightExpandTransition } from '../../../_styles/transitions/fade-in-height-expand.cssr';
|
|
3
3
|
import { iconSwitchTransition } from '../../../_styles/transitions/icon-switch.cssr';
|
|
4
|
-
export default c([cB('upload', 'width:
|
|
4
|
+
export default c([cB('upload', 'width: var(--u-upload-width)', [cM('dragger-inside', [cB('upload-trigger', `
|
|
5
5
|
display: block;
|
|
6
6
|
`)]), cM('drag-over', [cB('upload-dragger', `
|
|
7
7
|
border: var(--u-dragger-border-hover);
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.3.1";
|
|
2
2
|
export default _default;
|
package/es/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '1.
|
|
1
|
+
export default '1.3.1';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'CheckmarkCircle',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
|
+
(0, vue_1.h)("g", { fill: "none" },
|
|
9
|
+
(0, vue_1.h)("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm-1.25 9.94l4.47-4.47a.75.75 0 0 1 1.133.976l-.073.084l-5 5a.75.75 0 0 1-.976.073l-.084-.073l-2.5-2.5a.75.75 0 0 1 .976-1.133l.084.073l1.97 1.97l4.47-4.47l-4.47 4.47z", fill: "currentColor" }))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const vue_1 = require("vue");
|
|
4
|
+
exports.default = (0, vue_1.defineComponent)({
|
|
5
|
+
name: 'DismissCircle',
|
|
6
|
+
render() {
|
|
7
|
+
return ((0, vue_1.h)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24" },
|
|
8
|
+
(0, vue_1.h)("g", { fill: "none" },
|
|
9
|
+
(0, vue_1.h)("path", { d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2zm0 1.5a8.5 8.5 0 1 0 0 17a8.5 8.5 0 0 0 0-17zm3.446 4.897l.084.073a.75.75 0 0 1 .073.976l-.073.084L13.061 12l2.47 2.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-2.47 2.47a.75.75 0 0 1-.976.072l-.084-.073a.75.75 0 0 1-.073-.976l.073-.084L10.939 12l-2.47-2.47a.75.75 0 0 1-.072-.976l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l2.47-2.47a.75.75 0 0 1 .976-.072z", fill: "currentColor" }))));
|
|
10
|
+
}
|
|
11
|
+
});
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|