@templatical/media-library 0.44.3 → 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
|
@@ -155,14 +155,10 @@ var fe = ["data-tpl-theme"], pe = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, me
|
|
|
155
155
|
function Xe(e) {
|
|
156
156
|
if (!e.coordinates) return;
|
|
157
157
|
let t = Y(e.coordinates);
|
|
158
|
-
|
|
158
|
+
V.value = {
|
|
159
159
|
width: t.width,
|
|
160
160
|
height: t.height
|
|
161
|
-
}, !K)
|
|
162
|
-
K = t;
|
|
163
|
-
return;
|
|
164
|
-
}
|
|
165
|
-
W.value = !Ye(t, K);
|
|
161
|
+
}, K ? W.value = !Ye(t, K) : K = t;
|
|
166
162
|
}
|
|
167
163
|
function Ze({ imageSize: e }) {
|
|
168
164
|
return {
|
|
@@ -195,11 +191,7 @@ var fe = ["data-tpl-theme"], pe = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, me
|
|
|
195
191
|
return;
|
|
196
192
|
}
|
|
197
193
|
let i = await D.save(t.id, e, n ? N.value : void 0, r);
|
|
198
|
-
|
|
199
|
-
O("close");
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
i === "replaced" && et(), G.value = "save";
|
|
194
|
+
U.value = !1, i === "saved" ? O("close") : (i === "replaced" && et(), G.value = "save");
|
|
203
195
|
}
|
|
204
196
|
function et() {
|
|
205
197
|
let e = P.value?.getResult().coordinates;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as e, D as t, E as n, F as r, G as i, H as a, J as o, K as s, M as c, N as l, O as u, R as d, S as f, T as p, W as m, X as h, Z as g, ct as _, dt as v, j as y, k as b, lt as ee, nt as x, q as S, ut as te, w as ne, x as re, y as ie, z as ae } from "./icons-
|
|
2
|
-
import { f as oe, h as se, l as ce, n as le, t as ue, u as de } from "./useFocusTrap-
|
|
1
|
+
import { A as e, D as t, E as n, F as r, G as i, H as a, J as o, K as s, M as c, N as l, O as u, R as d, S as f, T as p, W as m, X as h, Z as g, ct as _, dt as v, j as y, k as b, lt as ee, nt as x, q as S, ut as te, w as ne, x as re, y as ie, z as ae } from "./icons-CtGTlRRa.js";
|
|
2
|
+
import { f as oe, h as se, l as ce, n as le, t as ue, u as de } from "./useFocusTrap-CHlDIBd_.js";
|
|
3
3
|
//#region src/composables/useImageCrop.ts
|
|
4
4
|
var fe = {
|
|
5
5
|
free: void 0,
|
|
@@ -3370,14 +3370,10 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3370
3370
|
function we(e) {
|
|
3371
3371
|
if (!e.coordinates) return;
|
|
3372
3372
|
let t = Se(e.coordinates);
|
|
3373
|
-
|
|
3373
|
+
M.value = {
|
|
3374
3374
|
width: t.width,
|
|
3375
3375
|
height: t.height
|
|
3376
|
-
}, !I)
|
|
3377
|
-
I = t;
|
|
3378
|
-
return;
|
|
3379
|
-
}
|
|
3380
|
-
P.value = !Ce(t, I);
|
|
3376
|
+
}, I ? P.value = !Ce(t, I) : I = t;
|
|
3381
3377
|
}
|
|
3382
3378
|
function B({ imageSize: e }) {
|
|
3383
3379
|
return {
|
|
@@ -3410,11 +3406,7 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3410
3406
|
return;
|
|
3411
3407
|
}
|
|
3412
3408
|
let i = await s.save(t.id, e, n ? ve.value : void 0, r);
|
|
3413
|
-
|
|
3414
|
-
f("close");
|
|
3415
|
-
return;
|
|
3416
|
-
}
|
|
3417
|
-
i === "replaced" && ke(), F.value = "save";
|
|
3409
|
+
N.value = !1, i === "saved" ? f("close") : (i === "replaced" && ke(), F.value = "save");
|
|
3418
3410
|
}
|
|
3419
3411
|
function ke() {
|
|
3420
3412
|
let e = T.value?.getResult().coordinates;
|
|
@@ -3565,4 +3557,4 @@ var Vt = ["data-tpl-theme"], Ht = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, Ut
|
|
|
3565
3557
|
//#endregion
|
|
3566
3558
|
export { Cn as default };
|
|
3567
3559
|
|
|
3568
|
-
//# sourceMappingURL=MediaEditModal-
|
|
3560
|
+
//# sourceMappingURL=MediaEditModal-Ct0DeGy4.js.map
|