@varlet/ui 3.18.0 → 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.
@@ -3,5 +3,5 @@ import '../../icon/icon.css'
3
3
  import '../../ripple/ripple.css'
4
4
  import '../../popup/popup.css'
5
5
  import '../actionSheet.css'
6
- import '../ActionItemSfc.css'
7
6
  import '../ActionSheetSfc.css'
7
+ import '../ActionItemSfc.css'
@@ -304,7 +304,7 @@ import './tree-menu/style/index.mjs'
304
304
  import './uploader/style/index.mjs'
305
305
  import './watermark/style/index.mjs'
306
306
 
307
- const version = '3.18.0'
307
+ const version = '3.18.1'
308
308
 
309
309
  function install(app) {
310
310
  ActionSheet.install && app.use(ActionSheet)
package/es/index.mjs CHANGED
@@ -202,7 +202,7 @@ export * from './tree-menu/index.mjs'
202
202
  export * from './uploader/index.mjs'
203
203
  export * from './watermark/index.mjs'
204
204
 
205
- const version = '3.18.0'
205
+ const version = '3.18.1'
206
206
 
207
207
  function install(app) {
208
208
  ActionSheet.install && app.use(ActionSheet)
@@ -1,7 +1,7 @@
1
1
  import '../../styles/common.css'
2
+ import '../SnackbarSfc.css'
2
3
  import '../../styles/elevation.css'
3
4
  import '../../loading/loading.css'
4
5
  import '../../icon/icon.css'
5
6
  import '../snackbar.css'
6
7
  import '../coreSfc.css'
7
- import '../SnackbarSfc.css'
@@ -13,7 +13,7 @@ var stdin_default = {
13
13
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
14
14
  "--data-table-empty-text-color": "var(--color-text-disabled)",
15
15
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
16
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
16
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
17
17
  "--data-table-border-radius": "2px",
18
18
  "--data-table-cell-normal-padding": "8px 16px",
19
19
  "--data-table-cell-small-padding": "4px 16px",
@@ -13,7 +13,7 @@ var stdin_default = {
13
13
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
14
14
  "--data-table-empty-text-color": "var(--color-text-disabled)",
15
15
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
16
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
16
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
17
17
  "--data-table-border-radius": "2px",
18
18
  "--data-table-cell-normal-padding": "8px 16px",
19
19
  "--data-table-cell-small-padding": "4px 16px",
package/es/varlet.esm.js CHANGED
@@ -19751,7 +19751,7 @@ var h5 = {
19751
19751
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
19752
19752
  "--data-table-empty-text-color": "var(--color-text-disabled)",
19753
19753
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
19754
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
19754
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
19755
19755
  "--data-table-border-radius": "2px",
19756
19756
  "--data-table-cell-normal-padding": "8px 16px",
19757
19757
  "--data-table-cell-small-padding": "4px 16px",
@@ -20876,7 +20876,7 @@ var h5 = {
20876
20876
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
20877
20877
  "--data-table-empty-text-color": "var(--color-text-disabled)",
20878
20878
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
20879
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
20879
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
20880
20880
  "--data-table-border-radius": "2px",
20881
20881
  "--data-table-cell-normal-padding": "8px 16px",
20882
20882
  "--data-table-cell-small-padding": "4px 16px",
@@ -24230,7 +24230,7 @@ eb.render = wD;
24230
24230
  var Ji = eb;
24231
24231
  se(Ji);
24232
24232
  ue(Ji, _g);
24233
- var y7 = Ji, Ks = Ji, kD = "3.18.0";
24233
+ var y7 = Ji, Ks = Ji, kD = "3.18.1";
24234
24234
  function $D(e) {
24235
24235
  pl.install && e.use(pl), ml.install && e.use(ml), hl.install && e.use(hl), yl.install && e.use(yl), $l.install && e.use($l), Cl.install && e.use(Cl), Sl.install && e.use(Sl), Wo.install && e.use(Wo), Pl.install && e.use(Pl), zl.install && e.use(zl), Ol.install && e.use(Ol), Tl.install && e.use(Tl), Nn.install && e.use(Nn), El.install && e.use(El), Il.install && e.use(Il), Bl.install && e.use(Bl), Vr.install && e.use(Vr), Dl.install && e.use(Dl), Wt.install && e.use(Wt), Nl.install && e.use(Nl), Rl.install && e.use(Rl), Al.install && e.use(Al), Vl.install && e.use(Vl), Kt.install && e.use(Kt), qn.install && e.use(qn), Ll.install && e.use(Ll), jl.install && e.use(jl), Xl.install && e.use(Xl), Gl.install && e.use(Gl), Jl.install && e.use(Jl), xl.install && e.use(xl), _l.install && e.use(_l), xt.install && e.use(xt), es.install && e.use(es), ns.install && e.use(ns), Vo.install && e.use(Vo), rs.install && e.use(rs), os.install && e.use(os), Pn.install && e.use(Pn), ts.install && e.use(ts), Sn.install && e.use(Sn), Tn.install && e.use(Tn), qe.install && e.use(qe), as.install && e.use(as), Jo.install && e.use(Jo), is.install && e.use(is), ls.install && e.use(ls), Lo.install && e.use(Lo), Yo.install && e.use(Yo), ss.install && e.use(ss), us.install && e.use(us), Jr.install && e.use(Jr), ds.install && e.use(ds), fl.install && e.use(fl), cs.install && e.use(cs), Ho.install && e.use(Ho), so.install && e.use(so), jo.install && e.use(jo), ea.install && e.use(ea), fs.install && e.use(fs), vs.install && e.use(vs), Zt.install && e.use(Zt), ps.install && e.use(ps), ms.install && e.use(ms), Rr.install && e.use(Rr), hs.install && e.use(hs), gs.install && e.use(gs), qo.install && e.use(qo), bs.install && e.use(bs), ys.install && e.use(ys), ws.install && e.use(ws), ks.install && e.use(ks), $s.install && e.use($s), rn.install && e.use(rn), Cs.install && e.use(Cs), na.install && e.use(na), Ss.install && e.use(Ss), Ps.install && e.use(Ps), zs.install && e.use(zs), Os.install && e.use(Os), Ts.install && e.use(Ts), Is.install && e.use(Is), Bs.install && e.use(Bs), Ds.install && e.use(Ds), Ms.install && e.use(Ms), po.install && e.use(po), Ns.install && e.use(Ns), Go.install && e.use(Go), Zo.install && e.use(Zo), Rs.install && e.use(Rs), As.install && e.use(As), Vs.install && e.use(Vs), Ls.install && e.use(Ls), Fs.install && e.use(Fs), Us.install && e.use(Us), Hs.install && e.use(Hs), js.install && e.use(js), _t.install && e.use(_t), Ys.install && e.use(Ys), Ws.install && e.use(Ws), Ks.install && e.use(Ks);
24236
24236
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.18.0",
4
+ "version": "3.18.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -2818,7 +2818,7 @@
2818
2818
  },
2819
2819
  {
2820
2820
  "name": "row-key",
2821
- "description": "Row key field or getter",
2821
+ "description": "Row key field or getter. Selection, detail expansion, and tree expansion rely on stable unique row keys; configure it explicitly when rows do not have `id`",
2822
2822
  "default": "'id'",
2823
2823
  "value": {
2824
2824
  "type": "string | number | ((context: { row, rowIndex }) => string | number)",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "3.18.0",
4
+ "version": "3.18.1",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
package/lib/varlet.cjs.js CHANGED
@@ -25833,7 +25833,7 @@ var stdin_default$314 = {
25833
25833
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
25834
25834
  "--data-table-empty-text-color": "var(--color-text-disabled)",
25835
25835
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
25836
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
25836
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
25837
25837
  "--data-table-border-radius": "2px",
25838
25838
  "--data-table-cell-normal-padding": "8px 16px",
25839
25839
  "--data-table-cell-small-padding": "4px 16px",
@@ -27187,7 +27187,7 @@ var stdin_default$240 = {
27187
27187
  "--data-table-sort-trigger-hover-background": "hsla(var(--hsl-primary), 0.12)",
27188
27188
  "--data-table-empty-text-color": "var(--color-text-disabled)",
27189
27189
  "--data-table-resize-trigger-color": "hsla(var(--hsl-on-surface-variant), 0.36)",
27190
- "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.04)",
27190
+ "--data-table-fixed-shadow-color": "rgba(0, 0, 0, 0.14)",
27191
27191
  "--data-table-border-radius": "2px",
27192
27192
  "--data-table-cell-normal-padding": "8px 16px",
27193
27193
  "--data-table-cell-small-padding": "4px 16px",
@@ -31273,7 +31273,7 @@ var _WatermarkComponent = stdin_default$106;
31273
31273
  var stdin_default$100 = stdin_default$106;
31274
31274
  //#endregion
31275
31275
  //#region es/index.bundle.mjs
31276
- var version = "3.18.0";
31276
+ var version = "3.18.1";
31277
31277
  function install(app) {
31278
31278
  stdin_default.install && app.use(stdin_default);
31279
31279
  stdin_default$1.install && app.use(stdin_default$1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "3.18.0",
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.0",
48
- "@varlet/shared": "3.18.0",
49
- "@varlet/use": "3.18.0"
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/cli": "3.18.0",
66
- "@varlet/ui": "3.18.0",
67
- "@varlet/touch-emulator": "3.18.0"
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