@templatical/media-library 0.44.2 → 0.45.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/dist/{MediaEditModal-CO_AVnsB.js → MediaEditModal-Bo3nDMEl.js} +3 -11
- package/dist/cdn/chunks/{MediaEditModal-DTCjSFT_.js → MediaEditModal-Ct0DeGy4.js} +6 -14
- package/dist/cdn/chunks/{MediaEditModal-DTCjSFT_.js.map → MediaEditModal-Ct0DeGy4.js.map} +1 -1
- package/dist/cdn/chunks/{icons-6EkTPJx8.js → icons-CtGTlRRa.js} +14 -36
- package/dist/cdn/chunks/{icons-6EkTPJx8.js.map → icons-CtGTlRRa.js.map} +1 -1
- package/dist/cdn/chunks/{useFocusTrap-Cd2j4q7F.js → useFocusTrap-CHlDIBd_.js} +3 -9
- package/dist/cdn/chunks/{useFocusTrap-Cd2j4q7F.js.map → useFocusTrap-CHlDIBd_.js.map} +1 -1
- package/dist/cdn/media-library.js +9 -23
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +8 -28
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, J as s, K as c, L as l, M as u, N as d, O as f, P as p, R as m, T as h, U as g, W as _, X as v, Z as y, _ as b, a as x, b as S, c as C, ct as w, d as T, dt as E, f as D, g as O, h as k, i as A, j, k as M, l as N, lt as P, m as F, n as I, nt as L, o as R, ot as ee, p as te, r as ne, s as z, st as re, t as ie, u as B, ut as V, v as H, w as U, x as W, y as G } from "./chunks/icons-
|
|
2
|
-
import { a as ae, c as oe, d as se, f as K, h as q, i as ce, l as J, m as Y, n as le, o as X, p as ue, r as de, s as fe, t as pe, u as Z } from "./chunks/useFocusTrap-
|
|
1
|
+
import { A as e, B as t, C as n, D as r, E as i, F as a, H as o, J as s, K as c, L as l, M as u, N as d, O as f, P as p, R as m, T as h, U as g, W as _, X as v, Z as y, _ as b, a as x, b as S, c as C, ct as w, d as T, dt as E, f as D, g as O, h as k, i as A, j, k as M, l as N, lt as P, m as F, n as I, nt as L, o as R, ot as ee, p as te, r as ne, s as z, st as re, t as ie, u as B, ut as V, v as H, w as U, x as W, y as G } from "./chunks/icons-CtGTlRRa.js";
|
|
2
|
+
import { a as ae, c as oe, d as se, f as K, h as q, i as ce, l as J, m as Y, n as le, o as X, p as ue, r as de, s as fe, t as pe, u as Z } from "./chunks/useFocusTrap-CHlDIBd_.js";
|
|
3
3
|
//#region src/components/media/MediaBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
4
4
|
var me = {
|
|
5
5
|
key: 0,
|
|
@@ -93,11 +93,7 @@ var me = {
|
|
|
93
93
|
g.value = !1, v.value = "";
|
|
94
94
|
}
|
|
95
95
|
function B() {
|
|
96
|
-
|
|
97
|
-
s("deleteFolder", a.folder.id), x.value = !1;
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
x.value = !0;
|
|
96
|
+
x.value ? (s("deleteFolder", a.folder.id), x.value = !1) : x.value = !0;
|
|
101
97
|
}
|
|
102
98
|
function H(e) {
|
|
103
99
|
let t = e.relatedTarget;
|
|
@@ -648,11 +644,7 @@ var Fe = { class: "tpl:p-4" }, Ie = ["aria-label"], Le = {
|
|
|
648
644
|
return r.canReplace === !0 && e.canUpdate !== !1;
|
|
649
645
|
}
|
|
650
646
|
function y(e, t) {
|
|
651
|
-
|
|
652
|
-
i("toggle", e.id);
|
|
653
|
-
return;
|
|
654
|
-
}
|
|
655
|
-
i("select", e);
|
|
647
|
+
t.metaKey || t.ctrlKey ? i("toggle", e.id) : i("select", e);
|
|
656
648
|
}
|
|
657
649
|
function b(e) {
|
|
658
650
|
p(e) && i("confirm", e);
|
|
@@ -1746,11 +1738,8 @@ function un(e) {
|
|
|
1746
1738
|
}
|
|
1747
1739
|
async function J() {
|
|
1748
1740
|
let { storage: n } = t;
|
|
1749
|
-
if (typeof n != "function")
|
|
1750
|
-
|
|
1751
|
-
return;
|
|
1752
|
-
}
|
|
1753
|
-
try {
|
|
1741
|
+
if (typeof n != "function") D.value = null;
|
|
1742
|
+
else try {
|
|
1754
1743
|
D.value = await n();
|
|
1755
1744
|
} catch (t) {
|
|
1756
1745
|
e.onError?.(t);
|
|
@@ -1800,11 +1789,8 @@ function un(e) {
|
|
|
1800
1789
|
async function fe(n) {
|
|
1801
1790
|
T.value = n, C.value = null;
|
|
1802
1791
|
let { checkUsage: r } = t;
|
|
1803
|
-
if (typeof r != "function")
|
|
1804
|
-
|
|
1805
|
-
return;
|
|
1806
|
-
}
|
|
1807
|
-
try {
|
|
1792
|
+
if (typeof r != "function") E.value = null, w.value = !0;
|
|
1793
|
+
else try {
|
|
1808
1794
|
let e = await r([n.id]);
|
|
1809
1795
|
E.value = e[n.id] ?? null, w.value = !0;
|
|
1810
1796
|
} catch (t) {
|
|
@@ -1992,7 +1978,7 @@ var dn = { class: "tpl:relative tpl:flex tpl:min-h-0 tpl:flex-1 tpl:flex-col tpl
|
|
|
1992
1978
|
"ready"
|
|
1993
1979
|
],
|
|
1994
1980
|
setup(n, { expose: i, emit: a }) {
|
|
1995
|
-
let c = n, l = a, m = p(() => import("./chunks/MediaEditModal-
|
|
1981
|
+
let c = n, l = a, m = p(() => import("./chunks/MediaEditModal-Ct0DeGy4.js")), y = r(() => c.translations), b = r(() => c.confirmTestId ?? "media-confirm"), S = {
|
|
1996
1982
|
get maxFileSize() {
|
|
1997
1983
|
return c.provider.maxFileSize;
|
|
1998
1984
|
},
|