@nxgt/material-vue 0.28.0 → 0.29.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/CHANGELOG.md +16 -0
- package/dist/{camera-CxXijySa.js → camera-DZ5nYW-v.js} +1 -1
- package/dist/{components-Db9OdMfQ.js → components-Cteo76NG.js} +10245 -10209
- package/dist/components.js +1 -1
- package/dist/{form-scope-BILi3ke-.js → form-scope-BvdPqk6T.js} +1 -1
- package/dist/lib/components/ui/feedback/toast/index.d.ts +2 -1
- package/dist/lib/components/ui/feedback/toast/toast-data.d.ts +23 -0
- package/dist/lib/components/ui/feedback/toast/toast.vue.d.ts +11 -4
- package/dist/lib/components/ui/feedback/toast/toasts.d.ts +26 -6
- package/dist/main.js +1 -1
- package/dist/{pdf-outline-sidebar-BXGTDISI.js → pdf-outline-sidebar-Bln9F9gF.js} +1 -1
- package/dist/{pdf-page-BR4G03kN.js → pdf-page-BVtXjnHS.js} +1 -1
- package/dist/{pdf-page-list-bjQm6_kf.js → pdf-page-list-D3eng5h4.js} +2 -2
- package/dist/{pdf-reader-DGVEFNc0.js → pdf-reader-CPms5uyj.js} +4 -4
- package/dist/{pdf-sidebar-CiM6dwAm.js → pdf-sidebar-lzBEntPH.js} +2 -2
- package/dist/{pdf-thumbnail-sidebar-fM3DGJzD.js → pdf-thumbnail-sidebar-DB3PmiGW.js} +2 -2
- package/dist/{stx-player-BS7-CXFx.js → stx-player-BpQHnHaa.js} +1 -1
- package/docs/components/feedback-and-status.md +35 -6
- package/docs/roadmap.md +5 -0
- package/docs/troubleshooting.md +48 -0
- package/package.json +2 -2
package/dist/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, $a as te, $c as ne, $d as re, $f as e, $i as t, $l as n, $n as r, $o as i, $p as a, $r as o, $s as s, $t as c, $u as l, A as u, Aa as d, Ac as f, Ad as p, Af as m, Ai as h, Al as g, Am as _, An as v, Ao as y, Ap as b, Ar as x, As as S, At as C, Au as w, B as T, Ba as E, Bc as D, Bd as O, Bf as k, Bi as A, Bl as j, Bn as M, Bo as N, Bp as P, Br as F, Bs as I, Bt as L, Bu as R, C as z, Ca as B, Cc as V, Cd as H, Cf as U, Ci as W, Cl as G, Cm as K, Cn as q, Co as J, Cp as Y, Cr as X, Cs as ie, Ct as ae, Cu as oe, D as se, Da as ce, Dc as le, Dd as ue, Df as de, Di as fe, Dl as pe, Dm as me, Dn as he, Do as ge, Dp as _e, Dr as ve, Ds as ye, Dt as be, Du as xe, E as Se, Ea as Ce, Ec as we, Ed as Te, Ef as Ee, Ei as De, El as Oe, Em as ke, En as Ae, Eo as je, Ep as Me, Er as Ne, Es as Pe, Et as Fe, Eu as Ie, F as Le, Fa as Re, Fc as ze, Fd as Be, Ff as Ve, Fi as He, Fl as Ue, Fm as We, Fn as Ge, Fo as Ke, Fp as qe, Fr as Je, Fs as Ye, Ft as Xe, Fu as Ze, G as Qe, Ga as $e, Gc as et, Gd as tt, Gf as nt, Gi as rt, Gl as it, Gn as at, Go as ot, Gp as st, Gr as ct, Gs as lt, Gt as ut, Gu as dt, H as ft, Ha as pt, Hc as mt, Hd as ht, Hf as gt, Hi as _t, Hl as vt, Hn as yt, Ho as bt, Hp as xt, Hr as St, Hs as Ct, Ht as wt, Hu as Tt, I as Et, Ia as Dt, Ic as Ot, Id as kt, If as At, Ii as jt, Il as Mt, In as Nt, Io as Pt, Ip as Ft, Ir as It, Is as Lt, It as Rt, Iu as zt, J as Bt, Ja as Vt, Jc as Ht, Jd as Ut, Jf as Wt, Ji as Gt, Jl as Kt, Jn as qt, Jo as Jt, Jp as Yt, Jr as Xt, Js as Zt, Jt as Qt, Ju as $t, K as en, Ka as tn, Kc as nn, Kd as rn, Kf as an, Ki as on, Kl as sn, Kn as cn, Ko as ln, Kp as un, Kr as dn, Ks as fn, Kt as Z, Ku as pn, L as mn, La as hn, Lc as gn, Ld as _n, Lf as vn, Li as yn, Ll as bn, Ln as xn, Lo as Sn, Lp as Cn, Lr as wn, Ls as Tn, Lt as En, Lu as Dn, M as On, Ma as kn, Mc as An, Md as jn, Mf as Mn, Mi as Nn, Ml as Pn, Mm as Fn, Mn as In, Mo as Ln, Mp as Rn, Mr as zn, Ms as Bn, Mt as Vn, Mu as Hn, N as Un, Na as Wn, Nc as Gn, Nd as Kn, Nf as qn, Ni as Jn, Nl as Yn, Nm as Xn, Nn as Zn, No as Qn, Np as $n, Nr as er, Ns as tr, Nt as nr, Nu as rr, O as ir, Oa as ar, Oc as or, Od as sr, Of as cr, Oi as lr, Ol as ur, Om as dr, On as fr, Oo as pr, Op as mr, Or as hr, Os as gr, Ot as _r, Ou as vr, P as yr, Pa as br, Pc as xr, Pd as Sr, Pf as Cr, Pi as wr, Pl as Tr, Pm as Er, Pn as Dr, Po as Or, Pp as kr, Pr as Ar, Ps as jr, Pt as Mr, Pu as Nr, Q as Pr, Qa as Fr, Qc as Ir, Qd as Lr, Qf as Rr, Qi as zr, Ql as Br, Qn as Vr, Qo as Hr, Qp as Ur, Qr as Wr, Qs as Gr, Qt as Kr, Qu as qr, R as Jr, Ra as Yr, Rc as Xr, Rd as Zr, Rf as Qr, Ri as $r, Rl as ei, Rn as ti, Ro as ni, Rp as ri, Rr as ii, Rt as ai, Ru as oi, S as si, Sa as ci, Sc as li, Sd as ui, Sf as di, Si as fi, Sl as pi, Sm as mi, Sn as hi, So as gi, Sp as _i, Sr as vi, Ss as yi, St as bi, Su as xi, T as Si, Ta as Ci, Tc as wi, Td as Ti, Tf as Ei, Ti as Di, Tl as Oi, Tm as ki, Tn as Ai, To as ji, Tp as Mi, Tr as Ni, Ts as Pi, Tt as Fi, Tu as Ii, U as Li, Ua as Ri, Uc as zi, Ud as Bi, Uf as Vi, Ui as Hi, Ul as Ui, Un as Wi, Uo as Gi, Up as Ki, Ur as qi, Us as Ji, Ut as Yi, Uu as Xi, V as Zi, Va as Qi, Vc as $i, Vd as ea, Vf as ta, Vi as na, Vl as ra, Vn as ia, Vo as aa, Vp as oa, Vr as sa, Vs as ca, Vt as la, Vu as ua, W as da, Wa as fa, Wc as pa, Wd as ma, Wf as ha, Wi as ga, Wl as _a, Wn as va, Wo as ya, Wp as ba, Wr as xa, Ws as Sa, Wt as Ca, Wu as wa, X as Ta, Xa as Ea, Xc as Da, Xd as Oa, Xf as ka, Xi as Aa, Xl as ja, Xn as Ma, Xo as Na, Xp as Pa, Xr as Fa, Xs as Ia, Xt as La, Xu as Ra, Y as za, Ya as Ba, Yc as Va, Yd as Ha, Yf as Ua, Yi as Wa, Yl as Ga, Yn as Ka, Yo as qa, Yp as Ja, Yr as Ya, Ys as Xa, Yt as Za, Yu as Qa, Z as $a, Za as eo, Zc as to, Zd as no, Zf as ro, Zi as io, Zl as ao, Zn as oo, Zo as so, Zp as co, Zr as lo, Zs as uo, Zt as fo, Zu as po, _ as mo, _a as ho, _c as go, _d as _o, _f as vo, _i as yo, _l as bo, _m as xo, _n as So, _o as Co, _p as wo, _r as To, _s as Eo, _t as Do, _u as Oo, a as ko, aa as Ao, ac as jo, ad as Mo, af as No, ai as Po, al as Fo, am as Io, an as Lo, ao as Ro, ap as zo, ar as Bo, as as Vo, at as Ho, au as Uo, b as Wo, ba as Go, bc as Ko, bd as qo, bf as Jo, bi as Yo, bl as Xo, bm as Zo, bn as Qo, bo as $o, bp as es, br as ts, bs as ns, bt as rs, bu as is, c as as, ca as os, cc as ss, cd as cs, cf as ls, ci as us, cl as ds, cm as fs, cn as ps, co as ms, cp as hs, cr as gs, cs as _s, ct as vs, cu as ys, d as bs, da as xs, dc as Ss, dd as Cs, df as ws, di as Ts, dl as Es, dm as Ds, dn as Os, do as ks, dp as As, dr as js, ds as Ms, dt as Ns, du as Ps, ea as Fs, ec as Is, ed as Ls, ef as Rs, ei as zs, el as Bs, em as Vs, en as Hs, eo as Us, ep as Ws, er as Gs, es as Ks, et as qs, eu as Q, f as Js, fa as Ys, fc as Xs, fd as Zs, ff as Qs, fi as $s, fl as ec, fm as tc, fn as nc, fo as rc, fp as ic, fr as ac, fs as oc, ft as sc, fu as cc, g as lc, ga as uc, gc as dc, gd as fc, gf as pc, gi as mc, gl as hc, gm as gc, gn as _c, go as vc, gp as yc, gr as bc, gs as xc, gt as Sc, gu as Cc, h as wc, ha as Tc, hc as Ec, hd as Dc, hf as Oc, hi as kc, hl as Ac, hm as jc, hn as Mc, ho as Nc, hp as Pc, hr as Fc, hs as Ic, ht as Lc, hu as Rc, i as zc, ia as Bc, ic as Vc, id as Hc, if as Uc, ii as Wc, il as Gc, im as Kc, in as qc, io as Jc, ip as Yc, ir as Xc, is as Zc, it as Qc, iu as $c, j as el, ja as tl, jc as nl, jd as rl, jf as il, ji as al, jl as ol, jm as sl, jn as cl, jo as ll, jp as ul, jr as dl, js as fl, jt as pl, ju as ml, k as hl, ka as gl, kc as _l, kd as vl, kf as yl, ki as bl, kl as xl, km as Sl, kn as Cl, ko as wl, kp as Tl, kr as El, ks as Dl, kt as Ol, ku as kl, l as Al, la as jl, lc as Ml, ld as Nl, lf as Pl, li as Fl, ll as Il, lm as Ll, ln as Rl, lo as zl, lp as Bl, lr as Vl, ls as Hl, lt as Ul, lu as Wl, m as Gl, ma as Kl, mc as ql, md as Jl, mf as Yl, mi as Xl, ml as Zl, mm as Ql, mn as $l, mo as eu, mp as tu, ms as nu, mt as ru, mu as iu, n as au, na as ou, nc as su, nd as cu, nf as lu, ni as uu, nl as du, nm as fu, nn as pu, no as mu, np as hu, nr as gu, ns as _u, nt as vu, nu as yu, o as bu, oa as xu, oc as Su, od as Cu, of as wu, oi as Tu, ol as Eu, om as Du, on as Ou, oo as ku, op as Au, or as ju, os as Mu, ot as Nu, ou as Pu, p as Fu, pa as Iu, pc as Lu, pd as Ru, pf as zu, pi as Bu, pl as Vu, pm as Hu, pn as Uu, po as Wu, pp as Gu, pr as Ku, ps as qu, pt as Ju, pu as Yu, q as Xu, qa as Zu, qc as Qu, qd as $u, qf as ed, qi as td, ql as nd, qn as rd, qo as id, qp as ad, qr as od, qs as sd, qt as cd, qu as ld, r as ud, ra as dd, rc as fd, rd as pd, rf as md, ri as hd, rl as gd, rm as _d, rn as vd, ro as yd, rp as bd, rr as xd, rs as Sd, rt as Cd, ru as wd, s as Td, sa as Ed, sc as Dd, sd as Od, sf as kd, si as Ad, sl as jd, sm as Md, sn as Nd, so as Pd, sp as Fd, sr as Id, ss as Ld, st as Rd, su as zd, t as Bd, ta as Vd, tc as Hd, td as Ud, tf as Wd, ti as Gd, tl as Kd, tm as qd, tn as Jd, to as Yd, tp as Xd, tr as Zd, ts as Qd, tt as $d, tu as ef, u as tf, ua as nf, uc as rf, ud as af, uf as of, ui as sf, ul as cf, um as lf, un as uf, uo as df, up as ff, ur as pf, us as mf, ut as hf, uu as gf, v as _f, va as vf, vc as yf, vd as bf, vf as xf, vi as Sf, vl as Cf, vm as wf, vn as Tf, vo as Ef, vp as Df, vr as Of, vs as kf, vt as Af, vu as jf, w as Mf, wa as Nf, wc as Pf, wd as Ff, wf as If, wi as Lf, wl as Rf, wm as zf, wn as Bf, wo as Vf, wp as Hf, wr as Uf, ws as Wf, wt as Gf, wu as Kf, x as qf, xa as Jf, xc as Yf, xd as Xf, xf as Zf, xi as Qf, xl as $f, xm as ep, xn as tp, xo as np, xp as rp, xr as ip, xs as ap, xt as op, xu as sp, y as cp, ya as lp, yc as up, yd as dp, yf as fp, yi as pp, yl as mp, ym as hp, yn as gp, yo as _p, yp as vp, yr as yp, ys as bp, yt as xp, yu as Sp, z as Cp, za as wp, zc as Tp, zd as Ep, zf as Dp, zi as Op, zl as kp, zn as Ap, zo as jp, zp as Mp, zr as Np, zs as Pp, zt as Fp, zu as Ip } from "./components-
|
|
1
|
+
import { $ as ee, $a as te, $c as ne, $d as re, $f as e, $i as t, $l as n, $n as r, $o as i, $p as a, $r as o, $s as s, $t as c, $u as l, A as u, Aa as d, Ac as f, Ad as p, Af as m, Ai as h, Al as g, Am as _, An as v, Ao as y, Ap as b, Ar as x, As as S, At as C, Au as w, B as T, Ba as E, Bc as D, Bd as O, Bf as k, Bi as A, Bl as j, Bn as M, Bo as N, Bp as P, Br as F, Bs as I, Bt as L, Bu as R, C as z, Ca as B, Cc as V, Cd as H, Cf as U, Ci as W, Cl as G, Cm as K, Cn as q, Co as J, Cp as Y, Cr as X, Cs as ie, Ct as ae, Cu as oe, D as se, Da as ce, Dc as le, Dd as ue, Df as de, Di as fe, Dl as pe, Dm as me, Dn as he, Do as ge, Dp as _e, Dr as ve, Ds as ye, Dt as be, Du as xe, E as Se, Ea as Ce, Ec as we, Ed as Te, Ef as Ee, Ei as De, El as Oe, Em as ke, En as Ae, Eo as je, Ep as Me, Er as Ne, Es as Pe, Et as Fe, Eu as Ie, F as Le, Fa as Re, Fc as ze, Fd as Be, Ff as Ve, Fi as He, Fl as Ue, Fm as We, Fn as Ge, Fo as Ke, Fp as qe, Fr as Je, Fs as Ye, Ft as Xe, Fu as Ze, G as Qe, Ga as $e, Gc as et, Gd as tt, Gf as nt, Gi as rt, Gl as it, Gn as at, Go as ot, Gp as st, Gr as ct, Gs as lt, Gt as ut, Gu as dt, H as ft, Ha as pt, Hc as mt, Hd as ht, Hf as gt, Hi as _t, Hl as vt, Hn as yt, Ho as bt, Hp as xt, Hr as St, Hs as Ct, Ht as wt, Hu as Tt, I as Et, Ia as Dt, Ic as Ot, Id as kt, If as At, Ii as jt, Il as Mt, In as Nt, Io as Pt, Ip as Ft, Ir as It, Is as Lt, It as Rt, Iu as zt, J as Bt, Ja as Vt, Jc as Ht, Jd as Ut, Jf as Wt, Ji as Gt, Jl as Kt, Jn as qt, Jo as Jt, Jp as Yt, Jr as Xt, Js as Zt, Jt as Qt, Ju as $t, K as en, Ka as tn, Kc as nn, Kd as rn, Kf as an, Ki as on, Kl as sn, Kn as cn, Ko as ln, Kp as un, Kr as dn, Ks as fn, Kt as Z, Ku as pn, L as mn, La as hn, Lc as gn, Ld as _n, Lf as vn, Li as yn, Ll as bn, Ln as xn, Lo as Sn, Lp as Cn, Lr as wn, Ls as Tn, Lt as En, Lu as Dn, M as On, Ma as kn, Mc as An, Md as jn, Mf as Mn, Mi as Nn, Ml as Pn, Mm as Fn, Mn as In, Mo as Ln, Mp as Rn, Mr as zn, Ms as Bn, Mt as Vn, Mu as Hn, N as Un, Na as Wn, Nc as Gn, Nd as Kn, Nf as qn, Ni as Jn, Nl as Yn, Nm as Xn, Nn as Zn, No as Qn, Np as $n, Nr as er, Ns as tr, Nt as nr, Nu as rr, O as ir, Oa as ar, Oc as or, Od as sr, Of as cr, Oi as lr, Ol as ur, Om as dr, On as fr, Oo as pr, Op as mr, Or as hr, Os as gr, Ot as _r, Ou as vr, P as yr, Pa as br, Pc as xr, Pd as Sr, Pf as Cr, Pi as wr, Pl as Tr, Pm as Er, Pn as Dr, Po as Or, Pp as kr, Pr as Ar, Ps as jr, Pt as Mr, Pu as Nr, Q as Pr, Qa as Fr, Qc as Ir, Qd as Lr, Qf as Rr, Qi as zr, Ql as Br, Qn as Vr, Qo as Hr, Qp as Ur, Qr as Wr, Qs as Gr, Qt as Kr, Qu as qr, R as Jr, Ra as Yr, Rc as Xr, Rd as Zr, Rf as Qr, Ri as $r, Rl as ei, Rn as ti, Ro as ni, Rp as ri, Rr as ii, Rt as ai, Ru as oi, S as si, Sa as ci, Sc as li, Sd as ui, Sf as di, Si as fi, Sl as pi, Sm as mi, Sn as hi, So as gi, Sp as _i, Sr as vi, Ss as yi, St as bi, Su as xi, T as Si, Ta as Ci, Tc as wi, Td as Ti, Tf as Ei, Ti as Di, Tl as Oi, Tm as ki, Tn as Ai, To as ji, Tp as Mi, Tr as Ni, Ts as Pi, Tt as Fi, Tu as Ii, U as Li, Ua as Ri, Uc as zi, Ud as Bi, Uf as Vi, Ui as Hi, Ul as Ui, Un as Wi, Uo as Gi, Up as Ki, Ur as qi, Us as Ji, Ut as Yi, Uu as Xi, V as Zi, Va as Qi, Vc as $i, Vd as ea, Vf as ta, Vi as na, Vl as ra, Vn as ia, Vo as aa, Vp as oa, Vr as sa, Vs as ca, Vt as la, Vu as ua, W as da, Wa as fa, Wc as pa, Wd as ma, Wf as ha, Wi as ga, Wl as _a, Wn as va, Wo as ya, Wp as ba, Wr as xa, Ws as Sa, Wt as Ca, Wu as wa, X as Ta, Xa as Ea, Xc as Da, Xd as Oa, Xf as ka, Xi as Aa, Xl as ja, Xn as Ma, Xo as Na, Xp as Pa, Xr as Fa, Xs as Ia, Xt as La, Xu as Ra, Y as za, Ya as Ba, Yc as Va, Yd as Ha, Yf as Ua, Yi as Wa, Yl as Ga, Yn as Ka, Yo as qa, Yp as Ja, Yr as Ya, Ys as Xa, Yt as Za, Yu as Qa, Z as $a, Za as eo, Zc as to, Zd as no, Zf as ro, Zi as io, Zl as ao, Zn as oo, Zo as so, Zp as co, Zr as lo, Zs as uo, Zt as fo, Zu as po, _ as mo, _a as ho, _c as go, _d as _o, _f as vo, _i as yo, _l as bo, _m as xo, _n as So, _o as Co, _p as wo, _r as To, _s as Eo, _t as Do, _u as Oo, a as ko, aa as Ao, ac as jo, ad as Mo, af as No, ai as Po, al as Fo, am as Io, an as Lo, ao as Ro, ap as zo, ar as Bo, as as Vo, at as Ho, au as Uo, b as Wo, ba as Go, bc as Ko, bd as qo, bf as Jo, bi as Yo, bl as Xo, bm as Zo, bn as Qo, bo as $o, bp as es, br as ts, bs as ns, bt as rs, bu as is, c as as, ca as os, cc as ss, cd as cs, cf as ls, ci as us, cl as ds, cm as fs, cn as ps, co as ms, cp as hs, cr as gs, cs as _s, ct as vs, cu as ys, d as bs, da as xs, dc as Ss, dd as Cs, df as ws, di as Ts, dl as Es, dm as Ds, dn as Os, do as ks, dp as As, dr as js, ds as Ms, dt as Ns, du as Ps, ea as Fs, ec as Is, ed as Ls, ef as Rs, ei as zs, el as Bs, em as Vs, en as Hs, eo as Us, ep as Ws, er as Gs, es as Ks, et as qs, eu as Q, f as Js, fa as Ys, fc as Xs, fd as Zs, ff as Qs, fi as $s, fl as ec, fm as tc, fn as nc, fo as rc, fp as ic, fr as ac, fs as oc, ft as sc, fu as cc, g as lc, ga as uc, gc as dc, gd as fc, gf as pc, gi as mc, gl as hc, gm as gc, gn as _c, go as vc, gp as yc, gr as bc, gs as xc, gt as Sc, gu as Cc, h as wc, ha as Tc, hc as Ec, hd as Dc, hf as Oc, hi as kc, hl as Ac, hm as jc, hn as Mc, ho as Nc, hp as Pc, hr as Fc, hs as Ic, ht as Lc, hu as Rc, i as zc, ia as Bc, ic as Vc, id as Hc, if as Uc, ii as Wc, il as Gc, im as Kc, in as qc, io as Jc, ip as Yc, ir as Xc, is as Zc, it as Qc, iu as $c, j as el, ja as tl, jc as nl, jd as rl, jf as il, ji as al, jl as ol, jm as sl, jn as cl, jo as ll, jp as ul, jr as dl, js as fl, jt as pl, ju as ml, k as hl, ka as gl, kc as _l, kd as vl, kf as yl, ki as bl, kl as xl, km as Sl, kn as Cl, ko as wl, kp as Tl, kr as El, ks as Dl, kt as Ol, ku as kl, l as Al, la as jl, lc as Ml, ld as Nl, lf as Pl, li as Fl, ll as Il, lm as Ll, ln as Rl, lo as zl, lp as Bl, lr as Vl, ls as Hl, lt as Ul, lu as Wl, m as Gl, ma as Kl, mc as ql, md as Jl, mf as Yl, mi as Xl, ml as Zl, mm as Ql, mn as $l, mo as eu, mp as tu, ms as nu, mt as ru, mu as iu, n as au, na as ou, nc as su, nd as cu, nf as lu, ni as uu, nl as du, nm as fu, nn as pu, no as mu, np as hu, nr as gu, ns as _u, nt as vu, nu as yu, o as bu, oa as xu, oc as Su, od as Cu, of as wu, oi as Tu, ol as Eu, om as Du, on as Ou, oo as ku, op as Au, or as ju, os as Mu, ot as Nu, ou as Pu, p as Fu, pa as Iu, pc as Lu, pd as Ru, pf as zu, pi as Bu, pl as Vu, pm as Hu, pn as Uu, po as Wu, pp as Gu, pr as Ku, ps as qu, pt as Ju, pu as Yu, q as Xu, qa as Zu, qc as Qu, qd as $u, qf as ed, qi as td, ql as nd, qn as rd, qo as id, qp as ad, qr as od, qs as sd, qt as cd, qu as ld, r as ud, ra as dd, rc as fd, rd as pd, rf as md, ri as hd, rl as gd, rm as _d, rn as vd, ro as yd, rp as bd, rr as xd, rs as Sd, rt as Cd, ru as wd, s as Td, sa as Ed, sc as Dd, sd as Od, sf as kd, si as Ad, sl as jd, sm as Md, sn as Nd, so as Pd, sp as Fd, sr as Id, ss as Ld, st as Rd, su as zd, t as Bd, ta as Vd, tc as Hd, td as Ud, tf as Wd, ti as Gd, tl as Kd, tm as qd, tn as Jd, to as Yd, tp as Xd, tr as Zd, ts as Qd, tt as $d, tu as ef, u as tf, ua as nf, uc as rf, ud as af, uf as of, ui as sf, ul as cf, um as lf, un as uf, uo as df, up as ff, ur as pf, us as mf, ut as hf, uu as gf, v as _f, va as vf, vc as yf, vd as bf, vf as xf, vi as Sf, vl as Cf, vm as wf, vn as Tf, vo as Ef, vp as Df, vr as Of, vs as kf, vt as Af, vu as jf, w as Mf, wa as Nf, wc as Pf, wd as Ff, wf as If, wi as Lf, wl as Rf, wm as zf, wn as Bf, wo as Vf, wp as Hf, wr as Uf, ws as Wf, wt as Gf, wu as Kf, x as qf, xa as Jf, xc as Yf, xd as Xf, xf as Zf, xi as Qf, xl as $f, xm as ep, xn as tp, xo as np, xp as rp, xr as ip, xs as ap, xt as op, xu as sp, y as cp, ya as lp, yc as up, yd as dp, yf as fp, yi as pp, yl as mp, ym as hp, yn as gp, yo as _p, yp as vp, yr as yp, ys as bp, yt as xp, yu as Sp, z as Cp, za as wp, zc as Tp, zd as Ep, zf as Dp, zi as Op, zl as kp, zn as Ap, zo as jp, zp as Mp, zr as Np, zs as Pp, zt as Fp, zu as Ip } from "./components-Cteo76NG.js";
|
|
2
2
|
import { a as Lp, n as Rp, r as zp, t as Bp, y as Vp } from "./print-format.utils-DwJfU1tK.js";
|
|
3
3
|
import { c as Hp, f as Up, l as Wp, m as Gp, p as Kp, r as qp, t as Jp, u as Yp } from "./Button-D1uzdbOJ.js";
|
|
4
4
|
import { n as Xp, r as Zp, t as Qp } from "./icon-button-D60G5B_Z.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Rs as e } from "./components-
|
|
1
|
+
import { Rs as e } from "./components-Cteo76NG.js";
|
|
2
2
|
import { computed as t, defineComponent as n, guardReactiveProps as r, normalizeProps as i, onMounted as a, ref as o, renderSlot as s, watch as c } from "vue";
|
|
3
3
|
import { useForm as l } from "vee-validate";
|
|
4
4
|
//#endregion
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ToastAction, ToastMethodProps, ToastProps } from './toast';
|
|
2
2
|
export { sonnerToast, toast } from './toast';
|
|
3
3
|
export { default as Toast } from './toast.vue';
|
|
4
|
-
export {
|
|
4
|
+
export type { ToastArgs, ToastData } from './toast-data';
|
|
5
|
+
export { type CustomToastProps, type PresetProps, toasts } from './toasts';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { ExternalToast } from 'vue-sonner';
|
|
3
|
+
import { ToastProps } from './toast.vue';
|
|
4
|
+
/**
|
|
5
|
+
* vue-sonner's own second argument, as in `toast.success(message, data)`: its
|
|
6
|
+
* `description` and `action` are shown by the toast, everything else is
|
|
7
|
+
* passed to vue-sonner as the toast's options. `icon` and `cancel` are left
|
|
8
|
+
* out: a preset draws its own icon, and the close (X) button beside the
|
|
9
|
+
* action stands for vue-sonner's cancel.
|
|
10
|
+
*/
|
|
11
|
+
export type ToastData = Omit<ExternalToast, 'action' | 'cancel' | 'description' | 'icon'> & Pick<ToastProps, 'action' | 'description'>;
|
|
12
|
+
/** A preset's arguments: its props, or vue-sonner's `(message, data)`. */
|
|
13
|
+
export type ToastArgs<P> = [props: P] | [message: string | Component, data?: ToastData];
|
|
14
|
+
type Shown = Pick<ToastProps, 'title' | 'description' | 'action'> & {
|
|
15
|
+
options?: ExternalToast;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A preset's props from either call: an object is taken as is; a message (a
|
|
19
|
+
* string or a component) becomes the title, with `data`'s `description` and `action` and the rest
|
|
20
|
+
* of `data` as `options`.
|
|
21
|
+
*/
|
|
22
|
+
export declare function toastProps<P extends Shown>(...args: ToastArgs<P>): P;
|
|
23
|
+
export {};
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
-
import { HTMLAttributes, VNodeChild } from 'vue';
|
|
1
|
+
import { Component, HTMLAttributes, VNodeChild } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* A toast's action: a labelled button that runs `onClick` and dismisses the
|
|
4
|
+
* toast (vue-sonner's own `{ label, onClick }` fits), or a render function
|
|
5
|
+
* given `dismiss` for anything else. Either may open a dialog: the focus is
|
|
6
|
+
* handed back before `onClick` runs or the toast is dismissed, so the dialog
|
|
7
|
+
* keeps it (`handFocusBack`).
|
|
8
|
+
*/
|
|
2
9
|
export type ToastAction = {
|
|
3
|
-
label: string;
|
|
4
|
-
onClick?: () => void;
|
|
10
|
+
label: string | Component;
|
|
11
|
+
onClick?: (event?: MouseEvent) => void;
|
|
5
12
|
} | ((dismiss: () => void) => VNodeChild);
|
|
6
13
|
export type ToastProps = {
|
|
7
14
|
id: string | number;
|
|
8
|
-
title?: string;
|
|
15
|
+
title?: string | Component;
|
|
9
16
|
description?: string;
|
|
10
17
|
class?: HTMLAttributes['class'];
|
|
11
18
|
action?: ToastAction;
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
import { IconName } from '@fortawesome/fontawesome-common-types';
|
|
2
2
|
import { ToastMethodProps } from './toast';
|
|
3
|
+
import { ToastArgs } from './toast-data';
|
|
3
4
|
export type CustomToastProps = Omit<ToastMethodProps, 'icon' | 'id'> & {
|
|
4
5
|
icon?: IconName;
|
|
5
6
|
color?: 'primary' | 'error' | 'warning' | 'info' | 'success';
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The props of `success`, `warning`, `info` and `error`: the type to use for
|
|
10
|
+
* a value passed to one of them, instead of `Parameters<typeof toasts.x>[0]`
|
|
11
|
+
* (which is now a union with the `(message, data)` form).
|
|
12
|
+
*/
|
|
13
|
+
export type PresetProps = Omit<CustomToastProps, 'color'>;
|
|
14
|
+
declare function custom(...args: ToastArgs<CustomToastProps>): string | number;
|
|
15
|
+
declare function success(...args: ToastArgs<PresetProps>): string | number;
|
|
16
|
+
declare function warning(...args: ToastArgs<PresetProps>): string | number;
|
|
17
|
+
declare function info(...args: ToastArgs<PresetProps>): string | number;
|
|
18
|
+
declare function error(...args: ToastArgs<PresetProps>): string | number;
|
|
19
|
+
declare function loading(...args: ToastArgs<Omit<ToastMethodProps, 'icon'>>): string | number;
|
|
13
20
|
declare function dismiss(id?: string | number): string | number | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* toasts - Semantic toast helpers built on top of {@link toast}, the same as
|
|
23
|
+
* `@nxgt/material`'s. Each takes its props, or vue-sonner's own call,
|
|
24
|
+
* `(message, data)`: the message (a string or a component) is the title,
|
|
25
|
+
* `data.description` and `data.action` are shown, and the rest of `data` is vue-sonner's options
|
|
26
|
+
* (`ToastData`).
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* toasts.success({ description: 'Item saved' });
|
|
31
|
+
* toasts.success('Saved', { action: { label: 'Undo', onClick: undo } });
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
14
34
|
export declare const toasts: {
|
|
15
35
|
custom: typeof custom;
|
|
16
36
|
success: typeof success;
|
package/dist/main.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as ee } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { $ as te, $a as ne, $c as re, $d as e, $f as t, $i as n, $l as r, $n as i, $o as a, $p as o, $r as s, $s as c, $t as l, $u as u, A as d, Aa as f, Ac as p, Ad as m, Af as h, Ai as g, Al as _, Am as v, An as y, Ao as b, Ap as x, Ar as S, As as C, At as w, Au as T, B as E, Ba as D, Bc as O, Bd as k, Bf as A, Bi as j, Bl as M, Bn as N, Bo as P, Bp as F, Br as I, Bs as L, Bt as R, Bu as z, C as B, Ca as V, Cc as H, Cd as U, Cf as W, Ci as G, Cl as K, Cm as q, Cn as J, Co as Y, Cp as X, Cr as ie, Cs as ae, Ct as oe, Cu as se, D as ce, Da as le, Dc as ue, Dd as de, Df as fe, Di as pe, Dl as me, Dm as he, Dn as ge, Do as _e, Dp as ve, Dr as ye, Ds as be, Dt as xe, Du as Se, E as Ce, Ea as we, Ec as Te, Ed as Ee, Ef as De, Ei as Oe, El as ke, Em as Ae, En as je, Eo as Me, Ep as Ne, Er as Pe, Es as Fe, Et as Ie, Eu as Le, F as Re, Fa as ze, Fc as Be, Fd as Ve, Ff as He, Fi as Ue, Fl as We, Fm as Ge, Fn as Ke, Fo as qe, Fp as Je, Fr as Ye, Fs as Xe, Ft as Ze, Fu as Qe, G as $e, Ga as et, Gc as tt, Gd as nt, Gf as rt, Gi as it, Gl as at, Gn as ot, Go as st, Gp as ct, Gr as lt, Gs as ut, Gt as dt, Gu as ft, H as pt, Ha as mt, Hc as ht, Hd as gt, Hf as _t, Hi as vt, Hl as yt, Hn as bt, Ho as xt, Hp as St, Hr as Ct, Hs as wt, Ht as Tt, Hu as Et, I as Dt, Ia as Ot, Ic as kt, Id as At, If as jt, Ii as Mt, Il as Nt, In as Pt, Io as Ft, Ip as It, Ir as Lt, Is as Rt, It as zt, Iu as Bt, J as Vt, Ja as Ht, Jc as Ut, Jd as Wt, Jf as Gt, Ji as Kt, Jl as qt, Jn as Jt, Jo as Yt, Jp as Xt, Jr as Zt, Js as Qt, Jt as $t, Ju as en, K as tn, Ka as nn, Kc as rn, Kd as an, Kf as on, Ki as sn, Kl as cn, Kn as ln, Ko as un, Kp as dn, Kr as fn, Ks as pn, Kt as Z, Ku as mn, L as hn, La as gn, Lc as _n, Ld as vn, Lf as yn, Li as bn, Ll as xn, Ln as Sn, Lo as Cn, Lp as wn, Lr as Tn, Ls as En, Lt as Dn, Lu as On, M as kn, Ma as An, Mc as jn, Md as Mn, Mf as Nn, Mi as Pn, Ml as Fn, Mm as In, Mn as Ln, Mo as Rn, Mp as zn, Mr as Bn, Ms as Vn, Mt as Hn, Mu as Un, N as Wn, Na as Gn, Nc as Kn, Nd as qn, Nf as Jn, Ni as Yn, Nl as Xn, Nm as Zn, Nn as Qn, No as $n, Np as er, Nr as tr, Ns as nr, Nt as rr, Nu as ir, O as ar, Oa as or, Oc as sr, Od as cr, Of as lr, Oi as ur, Ol as dr, Om as fr, On as pr, Oo as mr, Op as hr, Or as gr, Os as _r, Ot as vr, Ou as yr, P as br, Pa as xr, Pc as Sr, Pd as Cr, Pf as wr, Pi as Tr, Pl as Er, Pm as Dr, Pn as Or, Po as kr, Pp as Ar, Pr as jr, Ps as Mr, Pt as Nr, Pu as Pr, Q as Fr, Qa as Ir, Qc as Lr, Qd as Rr, Qf as zr, Qi as Br, Ql as Vr, Qn as Hr, Qo as Ur, Qp as Wr, Qr as Gr, Qs as Kr, Qt as qr, Qu as Jr, R as Yr, Ra as Xr, Rc as Zr, Rd as Qr, Rf as $r, Ri as ei, Rl as ti, Rn as ni, Ro as ri, Rp as ii, Rr as ai, Rt as oi, Ru as si, S as ci, Sa as li, Sc as ui, Sd as di, Sf as fi, Si as pi, Sl as mi, Sm as hi, Sn as gi, So as _i, Sp as vi, Sr as yi, Ss as bi, St as xi, Su as Si, T as Ci, Ta as wi, Tc as Ti, Td as Ei, Tf as Di, Ti as Oi, Tl as ki, Tm as Ai, Tn as ji, To as Mi, Tp as Ni, Tr as Pi, Ts as Fi, Tt as Ii, Tu as Li, U as Ri, Ua as zi, Uc as Bi, Ud as Vi, Uf as Hi, Ui, Ul as Wi, Un as Gi, Uo as Ki, Up as qi, Ur as Ji, Us as Yi, Ut as Xi, Uu as Zi, V as Qi, Va as $i, Vc as ea, Vd as ta, Vf as na, Vi as ra, Vl as ia, Vn as aa, Vo as oa, Vp as sa, Vr as ca, Vs as la, Vt as ua, Vu as da, W as fa, Wa as pa, Wc as ma, Wd as ha, Wf as ga, Wi as _a, Wl as va, Wn as ya, Wo as ba, Wp as xa, Wr as Sa, Ws as Ca, Wt as wa, Wu as Ta, X as Ea, Xa as Da, Xc as Oa, Xd as ka, Xf as Aa, Xi as ja, Xl as Ma, Xn as Na, Xo as Pa, Xp as Fa, Xr as Ia, Xs as La, Xt as Ra, Xu as za, Y as Ba, Ya as Va, Yc as Ha, Yd as Ua, Yf as Wa, Yi as Ga, Yl as Ka, Yn as qa, Yo as Ja, Yp as Ya, Yr as Xa, Ys as Za, Yt as Qa, Yu as $a, Z as eo, Za as to, Zc as no, Zd as ro, Zf as io, Zi as ao, Zl as oo, Zn as so, Zo as co, Zp as lo, Zr as uo, Zs as fo, Zt as po, Zu as mo, _ as ho, _a as go, _c as _o, _d as vo, _f as yo, _i as bo, _l as xo, _m as So, _n as Co, _o as wo, _p as To, _r as Eo, _s as Do, _t as Oo, _u as ko, a as Ao, aa as jo, ac as Mo, ad as No, af as Po, ai as Fo, al as Io, am as Lo, an as Ro, ao as zo, ap as Bo, ar as Vo, as as Ho, at as Uo, au as Wo, b as Go, ba as Ko, bc as qo, bd as Jo, bf as Yo, bi as Xo, bl as Zo, bm as Qo, bn as $o, bo as es, bp as ts, br as ns, bs as rs, bt as is, bu as as, c as os, ca as ss, cc as cs, cd as ls, cf as us, ci as ds, cl as fs, cm as ps, cn as ms, co as hs, cp as gs, cr as _s, cs as vs, ct as ys, cu as bs, d as xs, da as Ss, dc as Cs, dd as ws, df as Ts, di as Es, dl as Ds, dm as Os, dn as ks, do as As, dp as js, dr as Ms, ds as Ns, dt as Ps, du as Fs, ea as Is, ec as Ls, ed as Rs, ef as zs, ei as Bs, el as Vs, em as Hs, en as Us, eo as Ws, ep as Gs, er as Ks, es as qs, et as Js, eu as Ys, f as Xs, fa as Zs, fc as Qs, fd as $s, ff as ec, fi as tc, fl as nc, fm as rc, fn as ic, fo as ac, fp as oc, fr as sc, fs as cc, ft as lc, fu as uc, g as dc, ga as fc, gc as pc, gd as mc, gf as hc, gi as gc, gl as _c, gm as vc, gn as yc, go as bc, gp as xc, gr as Sc, gs as Cc, gt as wc, gu as Tc, h as Ec, ha as Dc, hc as Oc, hd as kc, hf as Ac, hi as jc, hl as Mc, hm as Nc, hn as Pc, ho as Fc, hp as Ic, hr as Lc, hs as Q, ht as Rc, hu as zc, i as Bc, ia as Vc, ic as Hc, id as Uc, if as Wc, ii as Gc, il as Kc, im as qc, in as Jc, io as Yc, ip as Xc, ir as Zc, is as Qc, it as $c, iu as el, j as tl, ja as nl, jc as rl, jd as il, jf as al, ji as ol, jl as sl, jm as cl, jn as ll, jo as ul, jp as dl, jr as fl, js as pl, jt as ml, ju as hl, k as gl, ka as _l, kc as vl, kd as yl, kf as bl, ki as xl, kl as Sl, km as Cl, kn as wl, ko as Tl, kp as El, kr as Dl, ks as Ol, kt as kl, ku as Al, l as jl, la as Ml, lc as Nl, ld as Pl, lf as Fl, li as Il, ll as Ll, lm as Rl, ln as zl, lo as Bl, lp as Vl, lr as Hl, ls as Ul, lt as Wl, lu as Gl, m as Kl, ma as ql, mc as Jl, md as Yl, mf as Xl, mi as Zl, ml as Ql, mm as $l, mn as eu, mo as tu, mp as nu, ms as ru, mt as iu, mu as au, n as ou, na as su, nc as cu, nd as lu, nf as uu, ni as du, nl as fu, nm as pu, nn as mu, no as hu, np as gu, nr as _u, ns as vu, nt as yu, nu as bu, o as xu, oa as Su, oc as Cu, od as wu, of as Tu, oi as Eu, ol as Du, om as Ou, on as ku, oo as Au, op as ju, or as Mu, os as Nu, ot as Pu, ou as Fu, p as Iu, pa as Lu, pc as Ru, pd as zu, pf as Bu, pi as Vu, pl as Hu, pm as Uu, pn as Wu, po as Gu, pp as Ku, pr as qu, ps as Ju, pt as Yu, pu as Xu, q as Zu, qa as Qu, qc as $u, qd as ed, qf as td, qi as nd, ql as rd, qn as id, qo as ad, qp as od, qr as sd, qs as cd, qt as ld, qu as ud, r as dd, ra as fd, rc as pd, rd as md, rf as hd, ri as gd, rl as _d, rm as vd, rn as yd, ro as bd, rp as xd, rr as Sd, rs as Cd, rt as wd, ru as Td, s as Ed, sa as Dd, sc as Od, sd as kd, sf as Ad, si as jd, sl as Md, sm as Nd, sn as Pd, so as Fd, sp as Id, sr as Ld, ss as Rd, st as zd, su as Bd, t as Vd, ta as Hd, tc as Ud, td as Wd, tf as Gd, ti as Kd, tl as qd, tm as Jd, tn as Yd, to as Xd, tp as Zd, tr as Qd, ts as $d, tt as ef, tu as tf, u as nf, ua as rf, uc as af, ud as of, uf as sf, ui as cf, ul as lf, um as uf, un as df, uo as ff, up as pf, ur as mf, us as hf, ut as gf, uu as _f, v as vf, va as yf, vc as bf, vd as xf, vf as Sf, vi as Cf, vl as wf, vm as Tf, vn as Ef, vo as Df, vp as Of, vr as kf, vs as Af, vt as jf, vu as Mf, w as Nf, wa as Pf, wc as Ff, wd as If, wf as Lf, wi as Rf, wl as zf, wm as Bf, wn as Vf, wo as Hf, wp as Uf, wr as Wf, ws as Gf, wt as Kf, wu as qf, x as Jf, xa as Yf, xc as Xf, xd as Zf, xf as Qf, xi as $f, xl as ep, xm as tp, xn as np, xo as rp, xp as ip, xr as ap, xs as op, xt as sp, xu as cp, y as lp, ya as up, yc as dp, yd as fp, yf as pp, yi as mp, yl as hp, ym as gp, yn as _p, yo as vp, yp, yr as bp, ys as xp, yt as Sp, yu as Cp, z as wp, za as Tp, zc as Ep, zd as Dp, zf as Op, zi as kp, zl as Ap, zn as jp, zo as Mp, zp as Np, zr as Pp, zs as Fp, zt as Ip, zu as Lp } from "./components-
|
|
2
|
+
import { $ as te, $a as ne, $c as re, $d as e, $f as t, $i as n, $l as r, $n as i, $o as a, $p as o, $r as s, $s as c, $t as l, $u as u, A as d, Aa as f, Ac as p, Ad as m, Af as h, Ai as g, Al as _, Am as v, An as y, Ao as b, Ap as x, Ar as S, As as C, At as w, Au as T, B as E, Ba as D, Bc as O, Bd as k, Bf as A, Bi as j, Bl as M, Bn as N, Bo as P, Bp as F, Br as I, Bs as L, Bt as R, Bu as z, C as B, Ca as V, Cc as H, Cd as U, Cf as W, Ci as G, Cl as K, Cm as q, Cn as J, Co as Y, Cp as X, Cr as ie, Cs as ae, Ct as oe, Cu as se, D as ce, Da as le, Dc as ue, Dd as de, Df as fe, Di as pe, Dl as me, Dm as he, Dn as ge, Do as _e, Dp as ve, Dr as ye, Ds as be, Dt as xe, Du as Se, E as Ce, Ea as we, Ec as Te, Ed as Ee, Ef as De, Ei as Oe, El as ke, Em as Ae, En as je, Eo as Me, Ep as Ne, Er as Pe, Es as Fe, Et as Ie, Eu as Le, F as Re, Fa as ze, Fc as Be, Fd as Ve, Ff as He, Fi as Ue, Fl as We, Fm as Ge, Fn as Ke, Fo as qe, Fp as Je, Fr as Ye, Fs as Xe, Ft as Ze, Fu as Qe, G as $e, Ga as et, Gc as tt, Gd as nt, Gf as rt, Gi as it, Gl as at, Gn as ot, Go as st, Gp as ct, Gr as lt, Gs as ut, Gt as dt, Gu as ft, H as pt, Ha as mt, Hc as ht, Hd as gt, Hf as _t, Hi as vt, Hl as yt, Hn as bt, Ho as xt, Hp as St, Hr as Ct, Hs as wt, Ht as Tt, Hu as Et, I as Dt, Ia as Ot, Ic as kt, Id as At, If as jt, Ii as Mt, Il as Nt, In as Pt, Io as Ft, Ip as It, Ir as Lt, Is as Rt, It as zt, Iu as Bt, J as Vt, Ja as Ht, Jc as Ut, Jd as Wt, Jf as Gt, Ji as Kt, Jl as qt, Jn as Jt, Jo as Yt, Jp as Xt, Jr as Zt, Js as Qt, Jt as $t, Ju as en, K as tn, Ka as nn, Kc as rn, Kd as an, Kf as on, Ki as sn, Kl as cn, Kn as ln, Ko as un, Kp as dn, Kr as fn, Ks as pn, Kt as Z, Ku as mn, L as hn, La as gn, Lc as _n, Ld as vn, Lf as yn, Li as bn, Ll as xn, Ln as Sn, Lo as Cn, Lp as wn, Lr as Tn, Ls as En, Lt as Dn, Lu as On, M as kn, Ma as An, Mc as jn, Md as Mn, Mf as Nn, Mi as Pn, Ml as Fn, Mm as In, Mn as Ln, Mo as Rn, Mp as zn, Mr as Bn, Ms as Vn, Mt as Hn, Mu as Un, N as Wn, Na as Gn, Nc as Kn, Nd as qn, Nf as Jn, Ni as Yn, Nl as Xn, Nm as Zn, Nn as Qn, No as $n, Np as er, Nr as tr, Ns as nr, Nt as rr, Nu as ir, O as ar, Oa as or, Oc as sr, Od as cr, Of as lr, Oi as ur, Ol as dr, Om as fr, On as pr, Oo as mr, Op as hr, Or as gr, Os as _r, Ot as vr, Ou as yr, P as br, Pa as xr, Pc as Sr, Pd as Cr, Pf as wr, Pi as Tr, Pl as Er, Pm as Dr, Pn as Or, Po as kr, Pp as Ar, Pr as jr, Ps as Mr, Pt as Nr, Pu as Pr, Q as Fr, Qa as Ir, Qc as Lr, Qd as Rr, Qf as zr, Qi as Br, Ql as Vr, Qn as Hr, Qo as Ur, Qp as Wr, Qr as Gr, Qs as Kr, Qt as qr, Qu as Jr, R as Yr, Ra as Xr, Rc as Zr, Rd as Qr, Rf as $r, Ri as ei, Rl as ti, Rn as ni, Ro as ri, Rp as ii, Rr as ai, Rt as oi, Ru as si, S as ci, Sa as li, Sc as ui, Sd as di, Sf as fi, Si as pi, Sl as mi, Sm as hi, Sn as gi, So as _i, Sp as vi, Sr as yi, Ss as bi, St as xi, Su as Si, T as Ci, Ta as wi, Tc as Ti, Td as Ei, Tf as Di, Ti as Oi, Tl as ki, Tm as Ai, Tn as ji, To as Mi, Tp as Ni, Tr as Pi, Ts as Fi, Tt as Ii, Tu as Li, U as Ri, Ua as zi, Uc as Bi, Ud as Vi, Uf as Hi, Ui, Ul as Wi, Un as Gi, Uo as Ki, Up as qi, Ur as Ji, Us as Yi, Ut as Xi, Uu as Zi, V as Qi, Va as $i, Vc as ea, Vd as ta, Vf as na, Vi as ra, Vl as ia, Vn as aa, Vo as oa, Vp as sa, Vr as ca, Vs as la, Vt as ua, Vu as da, W as fa, Wa as pa, Wc as ma, Wd as ha, Wf as ga, Wi as _a, Wl as va, Wn as ya, Wo as ba, Wp as xa, Wr as Sa, Ws as Ca, Wt as wa, Wu as Ta, X as Ea, Xa as Da, Xc as Oa, Xd as ka, Xf as Aa, Xi as ja, Xl as Ma, Xn as Na, Xo as Pa, Xp as Fa, Xr as Ia, Xs as La, Xt as Ra, Xu as za, Y as Ba, Ya as Va, Yc as Ha, Yd as Ua, Yf as Wa, Yi as Ga, Yl as Ka, Yn as qa, Yo as Ja, Yp as Ya, Yr as Xa, Ys as Za, Yt as Qa, Yu as $a, Z as eo, Za as to, Zc as no, Zd as ro, Zf as io, Zi as ao, Zl as oo, Zn as so, Zo as co, Zp as lo, Zr as uo, Zs as fo, Zt as po, Zu as mo, _ as ho, _a as go, _c as _o, _d as vo, _f as yo, _i as bo, _l as xo, _m as So, _n as Co, _o as wo, _p as To, _r as Eo, _s as Do, _t as Oo, _u as ko, a as Ao, aa as jo, ac as Mo, ad as No, af as Po, ai as Fo, al as Io, am as Lo, an as Ro, ao as zo, ap as Bo, ar as Vo, as as Ho, at as Uo, au as Wo, b as Go, ba as Ko, bc as qo, bd as Jo, bf as Yo, bi as Xo, bl as Zo, bm as Qo, bn as $o, bo as es, bp as ts, br as ns, bs as rs, bt as is, bu as as, c as os, ca as ss, cc as cs, cd as ls, cf as us, ci as ds, cl as fs, cm as ps, cn as ms, co as hs, cp as gs, cr as _s, cs as vs, ct as ys, cu as bs, d as xs, da as Ss, dc as Cs, dd as ws, df as Ts, di as Es, dl as Ds, dm as Os, dn as ks, do as As, dp as js, dr as Ms, ds as Ns, dt as Ps, du as Fs, ea as Is, ec as Ls, ed as Rs, ef as zs, ei as Bs, el as Vs, em as Hs, en as Us, eo as Ws, ep as Gs, er as Ks, es as qs, et as Js, eu as Ys, f as Xs, fa as Zs, fc as Qs, fd as $s, ff as ec, fi as tc, fl as nc, fm as rc, fn as ic, fo as ac, fp as oc, fr as sc, fs as cc, ft as lc, fu as uc, g as dc, ga as fc, gc as pc, gd as mc, gf as hc, gi as gc, gl as _c, gm as vc, gn as yc, go as bc, gp as xc, gr as Sc, gs as Cc, gt as wc, gu as Tc, h as Ec, ha as Dc, hc as Oc, hd as kc, hf as Ac, hi as jc, hl as Mc, hm as Nc, hn as Pc, ho as Fc, hp as Ic, hr as Lc, hs as Q, ht as Rc, hu as zc, i as Bc, ia as Vc, ic as Hc, id as Uc, if as Wc, ii as Gc, il as Kc, im as qc, in as Jc, io as Yc, ip as Xc, ir as Zc, is as Qc, it as $c, iu as el, j as tl, ja as nl, jc as rl, jd as il, jf as al, ji as ol, jl as sl, jm as cl, jn as ll, jo as ul, jp as dl, jr as fl, js as pl, jt as ml, ju as hl, k as gl, ka as _l, kc as vl, kd as yl, kf as bl, ki as xl, kl as Sl, km as Cl, kn as wl, ko as Tl, kp as El, kr as Dl, ks as Ol, kt as kl, ku as Al, l as jl, la as Ml, lc as Nl, ld as Pl, lf as Fl, li as Il, ll as Ll, lm as Rl, ln as zl, lo as Bl, lp as Vl, lr as Hl, ls as Ul, lt as Wl, lu as Gl, m as Kl, ma as ql, mc as Jl, md as Yl, mf as Xl, mi as Zl, ml as Ql, mm as $l, mn as eu, mo as tu, mp as nu, ms as ru, mt as iu, mu as au, n as ou, na as su, nc as cu, nd as lu, nf as uu, ni as du, nl as fu, nm as pu, nn as mu, no as hu, np as gu, nr as _u, ns as vu, nt as yu, nu as bu, o as xu, oa as Su, oc as Cu, od as wu, of as Tu, oi as Eu, ol as Du, om as Ou, on as ku, oo as Au, op as ju, or as Mu, os as Nu, ot as Pu, ou as Fu, p as Iu, pa as Lu, pc as Ru, pd as zu, pf as Bu, pi as Vu, pl as Hu, pm as Uu, pn as Wu, po as Gu, pp as Ku, pr as qu, ps as Ju, pt as Yu, pu as Xu, q as Zu, qa as Qu, qc as $u, qd as ed, qf as td, qi as nd, ql as rd, qn as id, qo as ad, qp as od, qr as sd, qs as cd, qt as ld, qu as ud, r as dd, ra as fd, rc as pd, rd as md, rf as hd, ri as gd, rl as _d, rm as vd, rn as yd, ro as bd, rp as xd, rr as Sd, rs as Cd, rt as wd, ru as Td, s as Ed, sa as Dd, sc as Od, sd as kd, sf as Ad, si as jd, sl as Md, sm as Nd, sn as Pd, so as Fd, sp as Id, sr as Ld, ss as Rd, st as zd, su as Bd, t as Vd, ta as Hd, tc as Ud, td as Wd, tf as Gd, ti as Kd, tl as qd, tm as Jd, tn as Yd, to as Xd, tp as Zd, tr as Qd, ts as $d, tt as ef, tu as tf, u as nf, ua as rf, uc as af, ud as of, uf as sf, ui as cf, ul as lf, um as uf, un as df, uo as ff, up as pf, ur as mf, us as hf, ut as gf, uu as _f, v as vf, va as yf, vc as bf, vd as xf, vf as Sf, vi as Cf, vl as wf, vm as Tf, vn as Ef, vo as Df, vp as Of, vr as kf, vs as Af, vt as jf, vu as Mf, w as Nf, wa as Pf, wc as Ff, wd as If, wf as Lf, wi as Rf, wl as zf, wm as Bf, wn as Vf, wo as Hf, wp as Uf, wr as Wf, ws as Gf, wt as Kf, wu as qf, x as Jf, xa as Yf, xc as Xf, xd as Zf, xf as Qf, xi as $f, xl as ep, xm as tp, xn as np, xo as rp, xp as ip, xr as ap, xs as op, xt as sp, xu as cp, y as lp, ya as up, yc as dp, yd as fp, yf as pp, yi as mp, yl as hp, ym as gp, yn as _p, yo as vp, yp, yr as bp, ys as xp, yt as Sp, yu as Cp, z as wp, za as Tp, zc as Ep, zd as Dp, zf as Op, zi as kp, zl as Ap, zn as jp, zo as Mp, zp as Np, zr as Pp, zs as Fp, zt as Ip, zu as Lp } from "./components-Cteo76NG.js";
|
|
3
3
|
import { a as Rp, i as zp, n as Bp, r as Vp } from "./stored-language-UnInBB6T.js";
|
|
4
4
|
import { a as Hp, i as Up, n as Wp, r as Gp, t as Kp } from "./i18n-provider-BPK68eqM.js";
|
|
5
5
|
import { n as qp, r as Jp, t as Yp } from "./translator-J3_vaV_A.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import { Ef as n } from "./components-
|
|
3
|
+
import { Ef as n } from "./components-Cteo76NG.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-Do6ztdtV.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, withCtx as v } from "vue";
|
|
6
6
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-outline-row.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { kp as t } from "./components-
|
|
2
|
+
import { kp as t } from "./components-Cteo76NG.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, openBlock as f, ref as p, shallowRef as m, unref as h, watch as g } from "vue";
|
|
4
4
|
import { DEFAULT_PAGE_SIZE as _, escapeHtml as v, findTextMatches as y, highlightItemHtml as b, placeholderSize as x, rotatedSize as S } from "@nxgt/material-core/pdf-viewer";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/pdf-note-icons.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
|
-
import { Ef as t } from "./components-
|
|
3
|
-
import { t as n } from "./pdf-page-
|
|
2
|
+
import { Ef as t } from "./components-Cteo76NG.js";
|
|
3
|
+
import { t as n } from "./pdf-page-BVtXjnHS.js";
|
|
4
4
|
import { Fragment as r, createBlock as i, createElementBlock as a, createElementVNode as o, defineComponent as s, openBlock as c, renderList as l, withCtx as u } from "vue";
|
|
5
5
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-page-list.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var d = { class: "flex flex-col items-center gap-4 px-4 py-4" }, f = /*@__PURE__*/ s({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { On as t } from "./components-
|
|
2
|
+
import { On as t } from "./components-Cteo76NG.js";
|
|
3
3
|
import { t as n } from "./use-material-translation-Do6ztdtV.js";
|
|
4
4
|
import { t as r } from "./Button-D1uzdbOJ.js";
|
|
5
5
|
import { o as i } from "./HoverCardTrigger-DaM5d4hE.js";
|
|
6
|
-
import { n as a } from "./pdf-page-
|
|
7
|
-
import { t as o } from "./pdf-page-list-
|
|
8
|
-
import { t as s } from "./pdf-sidebar-
|
|
6
|
+
import { n as a } from "./pdf-page-BVtXjnHS.js";
|
|
7
|
+
import { t as o } from "./pdf-page-list-D3eng5h4.js";
|
|
8
|
+
import { t as s } from "./pdf-sidebar-lzBEntPH.js";
|
|
9
9
|
import { t as c } from "./pdf-toolbar-mWlGTWU1.js";
|
|
10
10
|
import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, onBeforeUnmount as y, onMounted as b, openBlock as x, reactive as S, ref as C, shallowRef as w, toDisplayString as T, toRef as E, unref as D, useId as O, watch as k, withCtx as A } from "vue";
|
|
11
11
|
import { AlertCircle as j, FileX2 as M, KeyRound as N, Loader2 as P } from "@lucide/vue";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
3
|
import { t as n } from "./use-material-translation-Do6ztdtV.js";
|
|
4
|
-
import { t as r } from "./pdf-outline-sidebar-
|
|
5
|
-
import { t as i } from "./pdf-thumbnail-sidebar-
|
|
4
|
+
import { t as r } from "./pdf-outline-sidebar-Bln9F9gF.js";
|
|
5
|
+
import { t as i } from "./pdf-thumbnail-sidebar-DB3PmiGW.js";
|
|
6
6
|
import { createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d, unref as f, useId as p, useTemplateRef as m } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var h = ["aria-label"], g = ["aria-label"], _ = [
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { n as e } from "./rolldown-runtime-CWhphoD1.js";
|
|
2
2
|
import { t } from "./utils-CykWQ0iJ.js";
|
|
3
|
-
import { Ef as n } from "./components-
|
|
3
|
+
import { Ef as n } from "./components-Cteo76NG.js";
|
|
4
4
|
import { t as r } from "./use-material-translation-Do6ztdtV.js";
|
|
5
|
-
import { t as i } from "./pdf-page-
|
|
5
|
+
import { t as i } from "./pdf-page-BVtXjnHS.js";
|
|
6
6
|
import { Fragment as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
7
7
|
//#region lib/components/ui/media/pdf-viewer/partials/pdf-thumbnail-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var _ = ["aria-label"], v = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./utils-CykWQ0iJ.js";
|
|
2
|
-
import { $t as t, Jt as n, Mp as r, Qt as i, Yt as a, Zt as o, en as s, qt as c } from "./components-
|
|
2
|
+
import { $t as t, Jt as n, Mp as r, Qt as i, Yt as a, Zt as o, en as s, qt as c } from "./components-Cteo76NG.js";
|
|
3
3
|
import { t as l } from "./use-material-translation-Do6ztdtV.js";
|
|
4
4
|
import { createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, normalizeClass as _, openBlock as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
5
5
|
//#region lib/components/ui/media/stx-player/partials/stx-player-frame.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -572,7 +572,7 @@ async function upload() {
|
|
|
572
572
|
| --- | --- | --- | --- |
|
|
573
573
|
| `title` / `description` | `string` | preset title for `success`, `error`, `loading` | toast text |
|
|
574
574
|
| `icon` | a VNode (`toast`) · icon name (`toasts.*`) | preset icon | leading icon |
|
|
575
|
-
| `action` | `{ label, onClick? }` or `(dismiss) => VNode` | a translated “Close” for `success`, `info`, `error`;
|
|
575
|
+
| `action` | `{ label, onClick? }` (`label`: a string or a component) or `(dismiss) => VNode` | a translated “Close” for `success`, `info`, `error`; every preset keeps the caller's own, in either call | trailing button: `onClick` (given the click event, optional when you call it yourself), then the toast closes; or what the function renders, given `dismiss`. Brings the X button and a persistent toast, see below |
|
|
576
576
|
| `dismissLabel` | `string` | the translated “Close” when an `action` is given | accessible name of the X icon button beside the action; `''` hides it |
|
|
577
577
|
| `role` | `'status' \| 'alert'` | none (`toasts.error`: `'alert'`) | live-region role. Toasts are already announced politely by the `Toaster`'s region; `alert` interrupts, and may be read twice by some screen readers |
|
|
578
578
|
| `options` | vue-sonner `ExternalToast` | `duration: 5000` for presets, `Infinity` for `loading` and for any toast with your own `action` (a preset's fallback "Close" still times out at 5000) unless a `duration` is passed | passed to Sonner (`id`, `duration`, `position`…) |
|
|
@@ -586,7 +586,7 @@ stylesheet comes with this package's (`styles.css`, or the compiled
|
|
|
586
586
|
stylesheet). `Toast` is the component each toast renders, and `sonnerToast`
|
|
587
587
|
is vue-sonner's own `toast`, for anything the presets do not cover.
|
|
588
588
|
|
|
589
|
-
**Types:** `ToasterProps` (vue-sonner's), from `@nxgt/material-vue/components`.
|
|
589
|
+
**Types:** `ToastAction`, `ToastProps`, `ToastMethodProps`, `ToastData`, `ToastArgs`, `PresetProps` (the props of `success`, `warning`, `info` and `error`: use it, not `Parameters<typeof toasts.success>[0]`, which is now a union with the `(message, data)` form), and `ToasterProps` (vue-sonner's), from `@nxgt/material-vue/components`.
|
|
590
590
|
|
|
591
591
|
**On a phone** (under 600px wide, where vue-sonner lays toasts out across the
|
|
592
592
|
screen), a `Toaster` with no `position` shows its toasts at the top
|
|
@@ -603,6 +603,27 @@ raise its `top` when a sticky header must stay visible:
|
|
|
603
603
|
<Toaster position="bottom-center" /> <!-- bottom-center everywhere -->
|
|
604
604
|
```
|
|
605
605
|
|
|
606
|
+
**vue-sonner's call works too.** Every preset (`custom`, `success`, `info`,
|
|
607
|
+
`warning`, `error`, `loading`) also takes vue-sonner's own `(message, data)`: the
|
|
608
|
+
message (a string or a component) is the title, `data.description` and `data.action` are shown, and the
|
|
609
|
+
rest of `data` (`id`, `duration`, `onDismiss`…) is passed to vue-sonner as the
|
|
610
|
+
options. `data` is typed `ToastData`, vue-sonner's `ExternalToast` without `icon`
|
|
611
|
+
(a preset draws its own) and `cancel` (the X button stands for it): passing
|
|
612
|
+
either is a type error rather than a silent no-op.
|
|
613
|
+
|
|
614
|
+
```ts
|
|
615
|
+
toasts.success('Staff member restored', {
|
|
616
|
+
description: 'They can sign in again.',
|
|
617
|
+
action: { label: 'Send an invitation', onClick: openInvite },
|
|
618
|
+
});
|
|
619
|
+
// the same as
|
|
620
|
+
toasts.success({
|
|
621
|
+
title: 'Staff member restored',
|
|
622
|
+
description: 'They can sign in again.',
|
|
623
|
+
action: { label: 'Send an invitation', onClick: openInvite },
|
|
624
|
+
});
|
|
625
|
+
```
|
|
626
|
+
|
|
606
627
|
**An action keeps the toast open.** `toast()` itself does it, so a preset and a
|
|
607
628
|
direct call behave alike: any toast with an `action` is persistent by default
|
|
608
629
|
(`options.duration: Infinity`, WCAG 2.2.1: a timed toast can vanish before a
|
|
@@ -620,10 +641,18 @@ elsewhere) is ignored, so a tapped toast still goes after its duration. On a
|
|
|
620
641
|
touch screen a tap no longer fans out a stack of two or more toasts either: pass
|
|
621
642
|
`expand` to keep the stack open. Sonner does not close a toast on Escape (it
|
|
622
643
|
only collapses the stack); this `Toast` does when focus is inside it, with or
|
|
623
|
-
without an action. The close button is reached with Tab.
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
644
|
+
without an action. The close button is reached with Tab.
|
|
645
|
+
|
|
646
|
+
**Focus after an action.** A click on a toast's action first gives the focus
|
|
647
|
+
back to the control that had it before the focus entered the toast, then runs
|
|
648
|
+
your `onClick`, then closes the toast; a function action's `dismiss` does the
|
|
649
|
+
same before it closes. So an action that opens a `Dialog` (or moves the focus
|
|
650
|
+
anywhere else) keeps it there: the dialog holds the control it focused once
|
|
651
|
+
the toast has gone, and gives the focus back to that earlier control when it
|
|
652
|
+
closes (WCAG 2.4.3). An action that moves the focus nowhere leaves it on that
|
|
653
|
+
earlier control. A toast closed by its X or by Escape takes its focused
|
|
654
|
+
control with it, so the focus falls back to `document.body`; move it yourself
|
|
655
|
+
(after `toasts.dismiss()`) when the flow needs it elsewhere.
|
|
627
656
|
|
|
628
657
|
**Announced to screen readers:** `Toaster` renders a polite live region
|
|
629
658
|
(`<section aria-live="polite">`) that is in the page before the first toast,
|
package/docs/roadmap.md
CHANGED
|
@@ -95,6 +95,11 @@ Nothing in progress right now; see Next.
|
|
|
95
95
|
|
|
96
96
|
## Shipped
|
|
97
97
|
|
|
98
|
+
- **Toast actions that work everywhere** — `toasts.success(message, { action })`
|
|
99
|
+
and every other preset take sonner's own call shape and keep their action,
|
|
100
|
+
and a dialog a toast's action opens keeps the focus, then gives it back to
|
|
101
|
+
where it was before the toast. 0.29.0.
|
|
102
|
+
|
|
98
103
|
- **Tabs in two looks** — `underline`, the new default, whose bar slides to
|
|
99
104
|
the active tab, and a neutral `segmented` pill; a list that scrolls
|
|
100
105
|
sideways on a phone instead of widening the page, right-to-left, a visible
|
package/docs/troubleshooting.md
CHANGED
|
@@ -54,6 +54,8 @@ words in your error.
|
|
|
54
54
|
- [A toast covers the form's button on a phone](#a-toast-covers-the-forms-button-on-a-phone)
|
|
55
55
|
- [A toast never goes away after a tap](#a-toast-never-goes-away-after-a-tap)
|
|
56
56
|
- [A toast's action cannot be clicked while a dialog is open](#a-toasts-action-cannot-be-clicked-while-a-dialog-is-open)
|
|
57
|
+
- [`toasts.success(message, { action })` shows no action button](#toastssuccessmessage--action--shows-no-action-button)
|
|
58
|
+
- [The focus leaves a dialog that a toast's action opened](#the-focus-leaves-a-dialog-that-a-toasts-action-opened)
|
|
57
59
|
- [A `ConfirmationDialog` reopened at once stays closed](#a-confirmationdialog-reopened-at-once-stays-closed)
|
|
58
60
|
- [The first Escape after closing a nested dialog does nothing](#the-first-escape-after-closing-a-nested-dialog-does-nothing)
|
|
59
61
|
|
|
@@ -1139,6 +1141,52 @@ counted a pointer down on a toast as outside the dialog.
|
|
|
1139
1141
|
inside the `Toaster` as inside, so the action runs and the dialog stays open.
|
|
1140
1142
|
Sonner's own `Toaster` keeps the old behaviour.
|
|
1141
1143
|
|
|
1144
|
+
### `toasts.success(message, { action })` shows no action button
|
|
1145
|
+
|
|
1146
|
+
**When:** a preset is called the way vue-sonner's own `toast.success` is, with a
|
|
1147
|
+
message and a `data` object: `toasts.success('Staff member restored', {
|
|
1148
|
+
action: { label: 'Send an invitation', onClick } })`. The toast shows the
|
|
1149
|
+
preset's default title ("Success") and its "Close" button, not your message,
|
|
1150
|
+
description or action.
|
|
1151
|
+
**Why:** the presets took one props object only (`{ title, description,
|
|
1152
|
+
action, options }`): a string first argument was read as that object, and
|
|
1153
|
+
the second argument was ignored.
|
|
1154
|
+
**Fix:** update `@nxgt/material-vue`: every preset (`custom`, `success`, `info`,
|
|
1155
|
+
`warning`, `error`, `loading`) now takes `(message, data)` too, the message as
|
|
1156
|
+
the title and `data.description` and `data.action` shown, the rest of `data`
|
|
1157
|
+
as vue-sonner's options. The props object works as before:
|
|
1158
|
+
|
|
1159
|
+
```ts
|
|
1160
|
+
toasts.success('Staff member restored', { action: { label: 'Send an invitation', onClick } });
|
|
1161
|
+
toasts.success({ title: 'Staff member restored', action: { label: 'Send an invitation', onClick } });
|
|
1162
|
+
```
|
|
1163
|
+
|
|
1164
|
+
`data` takes no `icon` (a preset draws its own) and no `cancel` (the X button
|
|
1165
|
+
beside the action stands for it).
|
|
1166
|
+
|
|
1167
|
+
### The focus leaves a dialog that a toast's action opened
|
|
1168
|
+
|
|
1169
|
+
**When:** a toast's action opens a `Dialog` (or an `AlertDialog`, a `Sheet`,
|
|
1170
|
+
a `Drawer`). Closing the dialog leaves the focus on `document.body`, not on
|
|
1171
|
+
the control that had it before the toast, and a keyboard user starts again
|
|
1172
|
+
from the top of the page.
|
|
1173
|
+
**Why:** the toast's button had the focus when the action ran, so the
|
|
1174
|
+
dialog took it as the control to give the focus back to; that button left
|
|
1175
|
+
the page with its toast, and the focus fell to `document.body`. A keyboard
|
|
1176
|
+
user reaches a toast through the list item around it, and vue-sonner
|
|
1177
|
+
restores nothing when the focus leaves the list (its `blur` does not bubble
|
|
1178
|
+
from the toast's buttons), so nothing else gave the focus back. With several
|
|
1179
|
+
toasts, a toast reached from another one never had the focus from the page:
|
|
1180
|
+
the `Toaster` remembers where the focus entered it for that case.
|
|
1181
|
+
**Fix:** update `@nxgt/material-vue` and give the toast an `action` (a `{ label,
|
|
1182
|
+
onClick }`, or a function that calls the `dismiss` it is given): the action
|
|
1183
|
+
gives the focus back to where it was before the toast first, then runs. The
|
|
1184
|
+
dialog keeps its control, and gives the focus back to that earlier control
|
|
1185
|
+
when it closes. A workaround that blurs the button and opens the dialog on
|
|
1186
|
+
the next frame can go. A button you render in a function action and that
|
|
1187
|
+
opens a dialog without calling `dismiss` is not covered: call `dismiss()`
|
|
1188
|
+
before opening the dialog.
|
|
1189
|
+
|
|
1142
1190
|
### A `ConfirmationDialog` reopened at once stays closed
|
|
1143
1191
|
|
|
1144
1192
|
**When:** a `ConfirmationDialog` with `v-model:open` (or `:open` and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.29.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"docs:previews": "vitest run --project previews"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@nxgt/material-core": "^0.
|
|
122
|
+
"@nxgt/material-core": "^0.7.0",
|
|
123
123
|
"@floating-ui/dom": "^1.8.0",
|
|
124
124
|
"@fortawesome/fontawesome-common-types": "7.3.1",
|
|
125
125
|
"@lucide/vue": "^1.45.0",
|