@varlet/ui 3.18.0-alpha.1781276267923 → 3.18.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/es/avatar/avatar.css +1 -1
- package/es/card/card.css +1 -1
- package/es/data-table/dataTable.css +1 -1
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/paper/Paper.mjs +4 -2
- package/es/paper/paper.css +1 -1
- package/es/paper/props.mjs +4 -0
- package/es/snackbar/style/index.mjs +1 -1
- package/es/themes/dark/card.mjs +1 -0
- package/es/themes/dark/dataTable.mjs +10 -4
- package/es/themes/dark/paper.mjs +3 -0
- package/es/themes/md3-dark/card.mjs +1 -0
- package/es/themes/md3-dark/dataTable.mjs +10 -4
- package/es/themes/md3-dark/paper.mjs +3 -0
- package/es/themes/md3-light/card.mjs +1 -0
- package/es/themes/md3-light/dataTable.mjs +9 -3
- package/es/themes/md3-light/paper.mjs +3 -0
- package/es/varlet.css +1 -1
- package/es/varlet.esm.js +200 -166
- package/highlight/web-types.en-US.json +12 -3
- package/highlight/web-types.zh-CN.json +11 -2
- package/lib/varlet.cjs.js +48 -14
- package/lib/varlet.css +1 -1
- package/package.json +7 -7
- package/types/dialog.d.ts +10 -3
- package/types/paper.d.ts +3 -0
- package/types/styleVars.d.ts +13 -3
- package/umd/varlet.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "3.18.
|
|
3
|
+
"version": "3.18.1",
|
|
4
4
|
"description": "A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Vue3",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@popperjs/core": "^2.11.6",
|
|
45
45
|
"dayjs": "^1.10.4",
|
|
46
46
|
"decimal.js": "^10.2.1",
|
|
47
|
-
"@varlet/icons": "3.18.
|
|
48
|
-
"@varlet/shared": "3.18.
|
|
49
|
-
"@varlet/use": "3.18.
|
|
47
|
+
"@varlet/icons": "3.18.1",
|
|
48
|
+
"@varlet/shared": "3.18.1",
|
|
49
|
+
"@varlet/use": "3.18.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/node": "^20.19.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"vue": "3.5.21",
|
|
63
63
|
"vue-router": "4.5.1",
|
|
64
64
|
"zod": "^3.23.8",
|
|
65
|
-
"@varlet/
|
|
66
|
-
"@varlet/
|
|
67
|
-
"@varlet/
|
|
65
|
+
"@varlet/ui": "3.18.1",
|
|
66
|
+
"@varlet/touch-emulator": "3.18.1",
|
|
67
|
+
"@varlet/cli": "3.18.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"vue": "^3.2.0"
|
package/types/dialog.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App, TeleportProps, VNode } from 'vue'
|
|
1
|
+
import { App, Ref, TeleportProps, VNode } from 'vue'
|
|
2
2
|
import { ButtonProps } from './button'
|
|
3
3
|
import { BasicAttributes, ListenerProp, SetPropsDefaults, VarComponent } from './varComponent'
|
|
4
4
|
|
|
@@ -6,6 +6,13 @@ export declare const dialogProps: Record<keyof DialogProps, any>
|
|
|
6
6
|
|
|
7
7
|
export type DialogTypeMessageAlign = 'left' | 'center' | 'right'
|
|
8
8
|
|
|
9
|
+
export interface DialogBeforeCloseRefs {
|
|
10
|
+
confirmButtonLoading: Ref<boolean>
|
|
11
|
+
cancelButtonLoading: Ref<boolean>
|
|
12
|
+
confirmButtonDisabled: Ref<boolean>
|
|
13
|
+
cancelButtonDisabled: Ref<boolean>
|
|
14
|
+
}
|
|
15
|
+
|
|
9
16
|
export interface DialogProps extends BasicAttributes {
|
|
10
17
|
show?: boolean
|
|
11
18
|
width?: string | number
|
|
@@ -37,7 +44,7 @@ export interface DialogProps extends BasicAttributes {
|
|
|
37
44
|
teleport?: TeleportProps['to'] | false
|
|
38
45
|
onOpen?: ListenerProp<() => void>
|
|
39
46
|
onOpened?: ListenerProp<() => void>
|
|
40
|
-
onBeforeClose?: ListenerProp<(action: DialogActions, done: () => void) => void>
|
|
47
|
+
onBeforeClose?: ListenerProp<(action: DialogActions, done: () => void, refs: DialogBeforeCloseRefs) => void>
|
|
41
48
|
onClose?: ListenerProp<() => void>
|
|
42
49
|
onClosed?: ListenerProp<() => void>
|
|
43
50
|
onConfirm?: ListenerProp<() => void>
|
|
@@ -94,7 +101,7 @@ export interface DialogOptions {
|
|
|
94
101
|
closeOnKeyEscape?: boolean
|
|
95
102
|
onOpen?: () => void
|
|
96
103
|
onOpened?: () => void
|
|
97
|
-
onBeforeClose?: (action: DialogActions, done: () => void) => void
|
|
104
|
+
onBeforeClose?: (action: DialogActions, done: () => void, refs: DialogBeforeCloseRefs) => void
|
|
98
105
|
onClose?: () => void
|
|
99
106
|
onClosed?: () => void
|
|
100
107
|
onConfirm?: () => void
|
package/types/paper.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare const paperProps: Record<keyof PaperProps, any>
|
|
|
5
5
|
|
|
6
6
|
export type PaperSurface = 'low'
|
|
7
7
|
|
|
8
|
+
export type PaperVariant = 'standard' | 'outlined' | 'filled'
|
|
9
|
+
|
|
8
10
|
export interface PaperRipple {
|
|
9
11
|
disabled?: boolean
|
|
10
12
|
color?: string
|
|
@@ -23,6 +25,7 @@ export interface PaperProps extends BasicAttributes {
|
|
|
23
25
|
height?: string | number
|
|
24
26
|
round?: boolean
|
|
25
27
|
inline?: boolean
|
|
28
|
+
variant?: PaperVariant
|
|
26
29
|
surface?: PaperSurface
|
|
27
30
|
hoverable?: boolean | PaperHoverable
|
|
28
31
|
onClick?: ListenerProp<(e: Event) => void>
|
package/types/styleVars.d.ts
CHANGED
|
@@ -167,6 +167,7 @@ interface BaseStyleVars {
|
|
|
167
167
|
'--button-large-font-size'?: string
|
|
168
168
|
'--card-background'?: string
|
|
169
169
|
'--card-surface-low-background'?: string
|
|
170
|
+
'--card-outlined-background'?: string
|
|
170
171
|
'--card-filled-background'?: string
|
|
171
172
|
'--card-padding'?: string
|
|
172
173
|
'--card-border-radius'?: string
|
|
@@ -304,9 +305,15 @@ interface BaseStyleVars {
|
|
|
304
305
|
'--data-table-resize-trigger-color'?: string
|
|
305
306
|
'--data-table-fixed-shadow-color'?: string
|
|
306
307
|
'--data-table-border-radius'?: string
|
|
307
|
-
'--data-table-cell-padding'?: string
|
|
308
|
-
'--data-table-
|
|
309
|
-
'--data-table-
|
|
308
|
+
'--data-table-cell-normal-padding'?: string
|
|
309
|
+
'--data-table-cell-small-padding'?: string
|
|
310
|
+
'--data-table-cell-large-padding'?: string
|
|
311
|
+
'--data-table-selection-cell-normal-padding'?: string
|
|
312
|
+
'--data-table-selection-cell-small-padding'?: string
|
|
313
|
+
'--data-table-selection-cell-large-padding'?: string
|
|
314
|
+
'--data-table-expand-cell-normal-padding'?: string
|
|
315
|
+
'--data-table-expand-cell-small-padding'?: string
|
|
316
|
+
'--data-table-expand-cell-large-padding'?: string
|
|
310
317
|
'--data-table-cell-font-size'?: string
|
|
311
318
|
'--data-table-header-font-size'?: string
|
|
312
319
|
'--data-table-header-font-weight'?: string
|
|
@@ -558,6 +565,9 @@ interface BaseStyleVars {
|
|
|
558
565
|
'--pagination-quick-jumper-margin'?: string
|
|
559
566
|
'--paper-background'?: string
|
|
560
567
|
'--paper-surface-low-background'?: string
|
|
568
|
+
'--paper-outlined-background'?: string
|
|
569
|
+
'--paper-filled-background'?: string
|
|
570
|
+
'--paper-outline-color'?: string
|
|
561
571
|
'--paper-border-radius'?: string
|
|
562
572
|
'--picker-background'?: string
|
|
563
573
|
'--picker-toolbar-height'?: string
|