@varlet/ui 2.7.3 → 2.7.4-alpha.1675865250542
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/es/action-sheet/index.mjs +30 -6
- package/es/countdown/Countdown.mjs +1 -1
- package/es/dialog/index.mjs +40 -11
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/input.css +1 -1
- package/es/loading-bar/index.mjs +22 -3
- package/es/select/select.css +1 -1
- package/es/snackbar/index.mjs +25 -10
- package/es/style.css +1 -1
- package/es/uploader/Uploader.mjs +18 -9
- package/es/varlet.esm.js +4077 -4008
- package/highlight/web-types.en-US.json +5931 -0
- package/highlight/{web-types.json → web-types.zh-CN.json} +10 -1
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +206 -105
- package/package.json +6 -10
- package/types/actionSheet.d.ts +7 -3
- package/types/dialog.d.ts +7 -2
- package/types/loadingBar.d.ts +5 -0
- package/types/snackbar.d.ts +5 -1
- package/types/uploader.d.ts +4 -0
- package/umd/style.css +1 -1
- package/umd/varlet.js +6 -6
- package/highlight/attributes.json +0 -2074
- package/highlight/tags.json +0 -800
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.4-alpha.1675865250542",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
"style": "umd/style.css",
|
|
9
9
|
"unpkg": "umd/varlet.js",
|
|
10
10
|
"jsdelivr": "umd/varlet.js",
|
|
11
|
-
"
|
|
12
|
-
"tags": "highlight/tags.json",
|
|
13
|
-
"attributes": "highlight/attributes.json"
|
|
14
|
-
},
|
|
15
|
-
"web-types": "highlight/web-types.json",
|
|
11
|
+
"web-types": "highlight/web-types.en-US.json",
|
|
16
12
|
"keywords": [
|
|
17
13
|
"Vue",
|
|
18
14
|
"Material",
|
|
@@ -50,8 +46,8 @@
|
|
|
50
46
|
"@popperjs/core": "^2.11.6",
|
|
51
47
|
"dayjs": "^1.10.4",
|
|
52
48
|
"decimal.js": "^10.2.1",
|
|
53
|
-
"@varlet/icons": "2.7.
|
|
54
|
-
"@varlet/shared": "2.7.
|
|
49
|
+
"@varlet/icons": "2.7.4-alpha.1675865250542",
|
|
50
|
+
"@varlet/shared": "2.7.4-alpha.1675865250542"
|
|
55
51
|
},
|
|
56
52
|
"devDependencies": {
|
|
57
53
|
"@types/jest": "^26.0.15",
|
|
@@ -66,8 +62,8 @@
|
|
|
66
62
|
"typescript": "^4.4.4",
|
|
67
63
|
"vue": "3.2.25",
|
|
68
64
|
"vue-router": "4.0.12",
|
|
69
|
-
"@varlet/cli": "2.7.
|
|
70
|
-
"@varlet/touch-emulator": "2.7.
|
|
65
|
+
"@varlet/cli": "2.7.4-alpha.1675865250542",
|
|
66
|
+
"@varlet/touch-emulator": "2.7.4-alpha.1675865250542"
|
|
71
67
|
},
|
|
72
68
|
"browserslist": [
|
|
73
69
|
"Chrome >= 54",
|
package/types/actionSheet.d.ts
CHANGED
|
@@ -33,8 +33,7 @@ export interface ActionItem {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface ActionSheetOptions {
|
|
36
|
-
actions
|
|
37
|
-
show?: boolean
|
|
36
|
+
actions?: ActionItem[]
|
|
38
37
|
title?: string
|
|
39
38
|
overlay?: boolean
|
|
40
39
|
overlayClass?: string
|
|
@@ -63,9 +62,14 @@ export class ActionSheetComponent extends VarComponent {
|
|
|
63
62
|
export type ActionSheetActions = ActionItem | 'close'
|
|
64
63
|
|
|
65
64
|
export interface IActionSheet {
|
|
66
|
-
(options
|
|
65
|
+
(options?: ActionSheetOptions): Promise<ActionSheetActions>
|
|
66
|
+
|
|
67
67
|
Component: typeof ActionSheetComponent
|
|
68
68
|
|
|
69
|
+
setDefaultOptions(options: ActionSheetOptions): void
|
|
70
|
+
|
|
71
|
+
resetDefaultOptions(): void
|
|
72
|
+
|
|
69
73
|
close(): void
|
|
70
74
|
|
|
71
75
|
install(app: App): void
|
package/types/dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
|
-
import
|
|
2
|
+
import { App, TeleportProps, VNode } from 'vue'
|
|
3
3
|
|
|
4
4
|
export declare const dialogProps: Record<string, any>
|
|
5
5
|
|
|
@@ -80,9 +80,14 @@ export interface DialogOptions {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export interface IDialog {
|
|
83
|
-
(options
|
|
83
|
+
(options?: DialogOptions | string): Promise<DialogActions>
|
|
84
|
+
|
|
84
85
|
Component: typeof DialogComponent
|
|
85
86
|
|
|
87
|
+
setDefaultOptions(options: DialogOptions): void
|
|
88
|
+
|
|
89
|
+
resetDefaultOptions(): void
|
|
90
|
+
|
|
86
91
|
close(): void
|
|
87
92
|
|
|
88
93
|
install(app: App): void
|
package/types/loadingBar.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export interface LoadingBarOptions {
|
|
|
8
8
|
export declare const loadingBarProps: Record<string, any>
|
|
9
9
|
|
|
10
10
|
export interface ILoadingBar {
|
|
11
|
+
/** @deprecated Use setDefaultOptions to instead. */
|
|
11
12
|
mergeConfig(options: LoadingBarOptions): void
|
|
12
13
|
|
|
13
14
|
start(): void
|
|
@@ -15,6 +16,10 @@ export interface ILoadingBar {
|
|
|
15
16
|
finish(): void
|
|
16
17
|
|
|
17
18
|
error(): void
|
|
19
|
+
|
|
20
|
+
setDefaultOptions(options: LoadingBarOptions): void
|
|
21
|
+
|
|
22
|
+
resetDefaultOptions(): void
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export declare const LoadingBar: ILoadingBar
|
package/types/snackbar.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export interface SnackbarOptions {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export interface ISnackbar {
|
|
66
|
-
(options
|
|
66
|
+
(options?: SnackbarOptions | string): SnackbarHandel
|
|
67
67
|
|
|
68
68
|
Component: typeof SnackbarComponent
|
|
69
69
|
|
|
@@ -81,6 +81,10 @@ export interface ISnackbar {
|
|
|
81
81
|
|
|
82
82
|
loading(options: SnackbarOptions | string): SnackbarHandel
|
|
83
83
|
|
|
84
|
+
setDefaultOptions(options: SnackbarOptions): void
|
|
85
|
+
|
|
86
|
+
resetDefaultOptions(): void
|
|
87
|
+
|
|
84
88
|
clear(): void
|
|
85
89
|
}
|
|
86
90
|
|