@templatical/media-library 0.10.0 → 0.10.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/dist/cdn/chunks/{icons-yO_-mdzQ.js → icons-DTJIxe9X.js} +469 -468
- package/dist/cdn/chunks/icons-DTJIxe9X.js.map +1 -0
- package/dist/cdn/media-library.js +9 -5
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +5 -1
- package/package.json +6 -6
- package/dist/cdn/chunks/icons-yO_-mdzQ.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as ee, c as te, d as ne, et as re, f as A, g as ie, h as ae, i as oe, it as j, j as M, k as N, l as se, m as ce, n as le, nt as ue, o as de, ot as P, p as fe, q as F, r as pe, rt as I, s as me, st as L, t as he, tt as ge, u as _e, v as ve, w as R, x as ye, y as be, z } from "./chunks/icons-
|
|
1
|
+
import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, V as S, W as C, X as w, Y as T, Z as E, _ as D, a as O, at as k, b as ee, c as te, d as ne, et as re, f as A, g as ie, h as ae, i as oe, it as j, j as M, k as N, l as se, m as ce, n as le, nt as ue, o as de, ot as P, p as fe, q as F, r as pe, rt as I, s as me, st as L, t as he, tt as ge, u as _e, v as ve, w as R, x as ye, y as be, z } from "./chunks/icons-DTJIxe9X.js";
|
|
2
2
|
//#region ../types/src/config.ts
|
|
3
3
|
var xe = class extends Error {
|
|
4
4
|
statusCode;
|
|
@@ -477,7 +477,11 @@ function Re(e, t, n) {
|
|
|
477
477
|
let r = e.width, i = e.height;
|
|
478
478
|
if (!t && !n) return e;
|
|
479
479
|
let a = r, o = i;
|
|
480
|
-
if (t && r > t && (a = t, o = Math.round(t / r * i)), n && o > n
|
|
480
|
+
if (t && r > t && (a = t, o = Math.round(t / r * i)), n && o > n) {
|
|
481
|
+
let e = n / o;
|
|
482
|
+
a = Math.round(a * e), o = n;
|
|
483
|
+
}
|
|
484
|
+
if (a === r && o === i) return e;
|
|
481
485
|
let s = document.createElement("canvas");
|
|
482
486
|
s.width = a, s.height = o;
|
|
483
487
|
let c = s.getContext("2d");
|
|
@@ -514,7 +518,7 @@ function Be(e, t, n, r) {
|
|
|
514
518
|
//#region src/keys.ts
|
|
515
519
|
var Ve = Symbol("templaticalMediaPopoverTarget");
|
|
516
520
|
//#endregion
|
|
517
|
-
//#region ../../node_modules/.pnpm/vue-advanced-cropper@2.8.9_vue@3.5.
|
|
521
|
+
//#region ../../node_modules/.pnpm/vue-advanced-cropper@2.8.9_vue@3.5.35_typescript@6.0.3_/node_modules/vue-advanced-cropper/dist/index.esm-bundler.js
|
|
518
522
|
function He(e, t) {
|
|
519
523
|
var n = Object.keys(e);
|
|
520
524
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -4635,7 +4639,7 @@ var Ln = ["data-tpl-theme"], Rn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, zn
|
|
|
4635
4639
|
}
|
|
4636
4640
|
});
|
|
4637
4641
|
//#endregion
|
|
4638
|
-
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.
|
|
4642
|
+
//#region ../../node_modules/.pnpm/@vueuse+shared@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/shared/dist/index.js
|
|
4639
4643
|
function Pr(e, t) {
|
|
4640
4644
|
return T() ? (E(e, t), !0) : !1;
|
|
4641
4645
|
}
|
|
@@ -4732,7 +4736,7 @@ function Xr(e, t, n) {
|
|
|
4732
4736
|
});
|
|
4733
4737
|
}
|
|
4734
4738
|
//#endregion
|
|
4735
|
-
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.
|
|
4739
|
+
//#region ../../node_modules/.pnpm/@vueuse+core@14.3.0_vue@3.5.35_typescript@6.0.3_/node_modules/@vueuse/core/dist/index.js
|
|
4736
4740
|
var Zr = Ir ? window : void 0, Qr = Ir ? window.document : void 0, $r = Ir ? window.navigator : void 0;
|
|
4737
4741
|
function ei(e) {
|
|
4738
4742
|
let t = I(e);
|