@uzum-tech/ui 1.2.4 → 1.3.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 +460 -301
- package/dist/index.prod.js +2 -2
- 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 -45
- 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/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 +77 -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/lib/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/lib/steps/src/Steps.js
CHANGED
|
@@ -27,7 +27,10 @@ exports.stepsProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props),
|
|
|
27
27
|
}, size: {
|
|
28
28
|
type: String,
|
|
29
29
|
default: 'medium'
|
|
30
|
-
}, vertical: Boolean,
|
|
30
|
+
}, vertical: Boolean, variant: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: 'default'
|
|
33
|
+
}, 'onUpdate:current': [Function, Array], onUpdateCurrent: [Function, Array] });
|
|
31
34
|
exports.stepsInjectionKey = (0, _utils_1.createInjectionKey)('u-steps');
|
|
32
35
|
exports.default = (0, vue_1.defineComponent)({
|
|
33
36
|
name: 'Steps',
|
|
@@ -52,7 +55,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
52
55
|
return ((0, vue_1.h)("div", { class: [
|
|
53
56
|
`${mergedClsPrefix}-steps`,
|
|
54
57
|
this.rtlEnabled && `${mergedClsPrefix}-steps--rtl`,
|
|
55
|
-
this.vertical &&
|
|
58
|
+
(this.vertical || this.variant === 'history') &&
|
|
59
|
+
`${mergedClsPrefix}-steps--vertical`
|
|
56
60
|
] }, stepsWithIndex((0, _utils_1.flatten)((0, _utils_1.getSlot)(this)))));
|
|
57
61
|
}
|
|
58
62
|
});
|
|
@@ -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
|
+
}
|
|
@@ -18,6 +18,7 @@ const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.css
|
|
|
18
18
|
// --u-splitor-color
|
|
19
19
|
// --u-step-header-font-size
|
|
20
20
|
// --u-step-header-font-weight
|
|
21
|
+
// --u-step-icon-color
|
|
21
22
|
exports.default = (0, cssr_1.cB)('steps', `
|
|
22
23
|
width: 100%;
|
|
23
24
|
display: flex;
|
|
@@ -112,7 +113,29 @@ exports.default = (0, cssr_1.cB)('steps', `
|
|
|
112
113
|
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cB)('base-icon', `
|
|
113
114
|
color: var(--u-indicator-text-color);
|
|
114
115
|
transition: color .3s var(--u-bezier);
|
|
115
|
-
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()])])]), (0, cssr_1.cM)('vertical', 'flex-direction: column;', [(0, cssr_1.cNotM)('show-description', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'padding-bottom: 8px;')])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'margin-bottom: 16px;', [(0, cssr_1.
|
|
116
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()])])]), (0, cssr_1.cM)('vertical', 'flex-direction: column;', [(0, cssr_1.cNotM)('show-description', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'padding-bottom: 8px;')])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step', 'margin-bottom: 16px;', [(0, cssr_1.cM)('history-variant', [`
|
|
117
|
+
margin-top: 12px;
|
|
118
|
+
margin-bottom: 24px;
|
|
119
|
+
color: var(--u-header-text-color);
|
|
120
|
+
`, (0, cssr_1.c)('>', [(0, cssr_1.cB)('step-indicator', [`
|
|
121
|
+
background-color: transparent;
|
|
122
|
+
box-shadow: none;
|
|
123
|
+
color: var(--u-header-text-color);
|
|
124
|
+
`, (0, cssr_1.cB)('step-indicator-slot', [(0, cssr_1.cB)('icon', `
|
|
125
|
+
color: var(--u-step-icon-color);
|
|
126
|
+
transition: color .3s var(--u-bezier);
|
|
127
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()]), (0, cssr_1.cB)('base-icon', `
|
|
128
|
+
color: var(--u-step-icon-color);
|
|
129
|
+
transition: color .3s var(--u-bezier);
|
|
130
|
+
`, [(0, icon_switch_cssr_1.iconSwitchTransition)()])]), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step-splitor', `
|
|
131
|
+
position: absolute;
|
|
132
|
+
bottom: -24px;
|
|
133
|
+
width: 2px;
|
|
134
|
+
background-color: var(--u-color-target);
|
|
135
|
+
margin: 0 !important;
|
|
136
|
+
left: calc(var(--u-indicator-size) / 2);
|
|
137
|
+
height: calc(100% - var(--u-indicator-size));
|
|
138
|
+
`)])]), (0, cssr_1.cB)('step-content', [(0, cssr_1.cE)('description', 'margin-top: 8px;')])])]), (0, cssr_1.c)('&:last-child', 'margin-bottom: 0;'), (0, cssr_1.c)('>', [(0, cssr_1.cB)('step-indicator', [(0, cssr_1.c)('>', [(0, cssr_1.cB)('step-splitor', `
|
|
116
139
|
position: absolute;
|
|
117
140
|
bottom: -8px;
|
|
118
141
|
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;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.self = void 0;
|
|
4
4
|
const common_1 = require("../../_styles/common");
|
|
5
5
|
const self = (vars) => {
|
|
6
|
-
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite } = vars;
|
|
6
|
+
const { fontWeightStrong, fontBodySmall, fontBodyMedium, fontBodyLarge, textPrimary, brandPrimary500, staticRed, elementsTertiary, brandPrimary300, textSecondary, staticWhite, staticGreen } = vars;
|
|
7
7
|
return {
|
|
8
8
|
stepHeaderFontSizeSmall: fontBodySmall,
|
|
9
9
|
stepHeaderFontSizeMedium: fontBodyMedium,
|
|
@@ -13,6 +13,10 @@ const self = (vars) => {
|
|
|
13
13
|
indicatorSizeMedium: '28px',
|
|
14
14
|
indicatorIconSizeSmall: '14px',
|
|
15
15
|
indicatorIconSizeMedium: '18px',
|
|
16
|
+
indicatorIconColorProcess: textPrimary,
|
|
17
|
+
indicatorIconColorWait: textSecondary,
|
|
18
|
+
indicatorIconColorFinish: staticGreen,
|
|
19
|
+
indicatorIconColorError: staticRed,
|
|
16
20
|
stepHeaderFontWeight: fontWeightStrong,
|
|
17
21
|
indicatorTextColorProcess: staticWhite,
|
|
18
22
|
indicatorTextColorWait: textSecondary,
|
package/lib/tag/src/Tag.js
CHANGED
|
@@ -160,6 +160,6 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
160
160
|
iconNode || avatarNode,
|
|
161
161
|
(0, vue_1.h)("span", { class: `${mergedClsPrefix}-tag__content`, ref: "contentRef" }, (_b = (_a = this.$slots).default) === null || _b === void 0 ? void 0 : _b.call(_a)),
|
|
162
162
|
!this.checkable && closable ? ((0, vue_1.h)(close_1.UBaseClose, { clsPrefix: mergedClsPrefix, class: `${mergedClsPrefix}-tag__close`, disabled: this.disabled, onClick: this.handleCloseClick, focusable: this.internalCloseFocusable, round: round, isButtonTag: this.internalCloseIsButtonTag, absolute: true })) : null,
|
|
163
|
-
|
|
163
|
+
this.mergedBordered ? ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-tag__border`, style: { borderColor } })) : null));
|
|
164
164
|
}
|
|
165
165
|
});
|
|
@@ -98,15 +98,11 @@ exports.default = (0, cssr_1.cB)('tag', `
|
|
|
98
98
|
box-shadow: none;
|
|
99
99
|
color: var(--u-text-color-checkable);
|
|
100
100
|
background-color: var(--u-color-checkable);
|
|
101
|
-
border: var(--u-border);
|
|
102
|
-
border-color: var(--u-color);
|
|
103
101
|
transition: border-color .3s var(--u-bezier);
|
|
104
102
|
`, [(0, cssr_1.cNotM)('disabled', [(0, cssr_1.c)('&:hover', 'background-color: var(--u-color-hover-checkable);', [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-hover-checkable);')]), (0, cssr_1.c)('&:focus', `
|
|
105
103
|
background-color: var(--u-color-pressed-checkable);
|
|
106
|
-
border: var(--u-border);
|
|
107
104
|
transition: border-color .3s var(--u-bezier);`, [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-pressed-checkable);')]), (0, cssr_1.c)('&:active', `
|
|
108
105
|
background-color: var(--u-color-pressed-checkable);
|
|
109
|
-
border: var(--u-border);
|
|
110
106
|
transition: border-color .3s var(--u-bezier);`, [(0, cssr_1.cNotM)('checked', 'color: var(--u-text-color-pressed-checkable);')])]), (0, cssr_1.cM)('checked', `
|
|
111
107
|
color: var(--u-text-color-checked);
|
|
112
108
|
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/lib/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/lib/upload/src/Upload.js
CHANGED
|
@@ -280,7 +280,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
280
280
|
const xhrMap = new Map();
|
|
281
281
|
const _mergedFileListRef = (0, vooks_1.useMergedState)(controlledFileListRef, uncontrolledFileListRef);
|
|
282
282
|
const mergedFileListRef = (0, vue_1.computed)(() => _mergedFileListRef.value.map(utils_1.createSettledFileInfo));
|
|
283
|
-
function
|
|
283
|
+
function openFileDialog() {
|
|
284
284
|
var _a;
|
|
285
285
|
(_a = inputElRef.value) === null || _a === void 0 ? void 0 : _a.click();
|
|
286
286
|
}
|
|
@@ -481,7 +481,8 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
481
481
|
'--u-dragger-icon-color': draggerIconColor,
|
|
482
482
|
'--u-dragger-title-color': draggerTitleColor,
|
|
483
483
|
'--u-dragger-text-color': draggerTextColor,
|
|
484
|
-
'--u-label-color': labelColor
|
|
484
|
+
'--u-label-color': labelColor,
|
|
485
|
+
'--u-upload-width': props.listType === 'image-card' ? 'auto' : '100%'
|
|
485
486
|
};
|
|
486
487
|
});
|
|
487
488
|
const themeClassHandle = inlineThemeDisabled
|
|
@@ -508,7 +509,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
508
509
|
getFileThumbnailUrlResolver,
|
|
509
510
|
listTypeRef: (0, vue_1.toRef)(props, 'listType'),
|
|
510
511
|
dragOverRef,
|
|
511
|
-
|
|
512
|
+
openFileDialog,
|
|
512
513
|
draggerInsideRef,
|
|
513
514
|
handleFileAddition,
|
|
514
515
|
mergedDisabledRef: formItem.mergedDisabledRef,
|
|
@@ -531,7 +532,7 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
531
532
|
uncontrolledFileListRef.value = [];
|
|
532
533
|
},
|
|
533
534
|
submit,
|
|
534
|
-
|
|
535
|
+
openFileDialog
|
|
535
536
|
};
|
|
536
537
|
return Object.assign({ mergedClsPrefix: mergedClsPrefixRef, draggerInsideRef,
|
|
537
538
|
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;
|
|
@@ -20,12 +20,12 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
20
20
|
if (!UUpload) {
|
|
21
21
|
(0, _utils_1.throwError)('upload-trigger', '`u-upload-trigger` must be placed inside `u-upload`.');
|
|
22
22
|
}
|
|
23
|
-
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef,
|
|
23
|
+
const { mergedClsPrefixRef, mergedDisabledRef, maxReachedRef, listTypeRef, dragOverRef, openFileDialog, draggerInsideRef, handleFileAddition, mergedDirectoryDndRef, triggerStyleRef } = UUpload;
|
|
24
24
|
const isImageCardTypeRef = (0, vue_1.computed)(() => listTypeRef.value === 'image-card');
|
|
25
25
|
function handleTriggerClick() {
|
|
26
26
|
if (mergedDisabledRef.value || maxReachedRef.value)
|
|
27
27
|
return;
|
|
28
|
-
|
|
28
|
+
openFileDialog();
|
|
29
29
|
}
|
|
30
30
|
function handleTriggerDragOver(e) {
|
|
31
31
|
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
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
const cssr_1 = require("../../../_utils/cssr");
|
|
7
7
|
const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-in-height-expand.cssr");
|
|
8
8
|
const icon_switch_cssr_1 = require("../../../_styles/transitions/icon-switch.cssr");
|
|
9
|
-
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width:
|
|
9
|
+
exports.default = (0, cssr_1.c)([(0, cssr_1.cB)('upload', 'width: var(--u-upload-width)', [(0, cssr_1.cM)('dragger-inside', [(0, cssr_1.cB)('upload-trigger', `
|
|
10
10
|
display: block;
|
|
11
11
|
`)]), (0, cssr_1.cM)('drag-over', [(0, cssr_1.cB)('upload-dragger', `
|
|
12
12
|
border: var(--u-dragger-border-hover);
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.3.0";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED