@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.7.3",
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
- "vetur": {
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.3",
54
- "@varlet/shared": "2.7.3"
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.3",
70
- "@varlet/touch-emulator": "2.7.3"
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",
@@ -33,8 +33,7 @@ export interface ActionItem {
33
33
  }
34
34
 
35
35
  export interface ActionSheetOptions {
36
- actions: ActionItem[]
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: ActionSheetOptions): Promise<ActionSheetActions>
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 type { App, TeleportProps, VNode } from 'vue'
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: DialogOptions | string): Promise<DialogActions>
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
@@ -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
@@ -63,7 +63,7 @@ export interface SnackbarOptions {
63
63
  }
64
64
 
65
65
  export interface ISnackbar {
66
- (options: SnackbarOptions | string): SnackbarHandel
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
 
@@ -67,6 +67,10 @@ export class Uploader extends VarComponent {
67
67
  resetValidation(): void
68
68
 
69
69
  reset(): void
70
+
71
+ chooseFile(): void
72
+
73
+ closePreview(): void
70
74
  }
71
75
 
72
76
  export class _UploaderComponent extends Uploader {}