@templatical/media-library 0.10.0 → 0.10.2
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-BPmya9As.js} +483 -482
- package/dist/cdn/chunks/icons-BPmya9As.js.map +1 -0
- package/dist/cdn/media-library.js +14 -10
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/templatical-media-library.js +10 -6
- package/package.json +10 -10
- 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-BPmya9As.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) {
|
|
@@ -4044,7 +4048,7 @@ var Ln = ["data-tpl-theme"], Rn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, zn
|
|
|
4044
4048
|
}, fr = {
|
|
4045
4049
|
class: "tpl:mb-1 tpl:block tpl:text-xs tpl:font-medium",
|
|
4046
4050
|
style: { color: "var(--tpl-text-muted)" }
|
|
4047
|
-
}, pr = ["placeholder"], mr = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, hr = ["disabled"], gr =
|
|
4051
|
+
}, pr = ["placeholder"], mr = { class: "tpl:flex tpl:shrink-0 tpl:justify-end tpl:gap-2 tpl:p-5 tpl:pt-4" }, hr = ["disabled"], gr = /*@__PURE__*/ m({
|
|
4048
4052
|
__name: "MediaEditModal",
|
|
4049
4053
|
props: {
|
|
4050
4054
|
visible: { type: Boolean },
|
|
@@ -4221,7 +4225,7 @@ var Ln = ["data-tpl-theme"], Rn = { class: "tpl:shrink-0 tpl:p-5 tpl:pb-4" }, zn
|
|
|
4221
4225
|
let n = e.__vccOpts || e;
|
|
4222
4226
|
for (let [e, r] of t) n[e] = r;
|
|
4223
4227
|
return n;
|
|
4224
|
-
}, vr =
|
|
4228
|
+
}, vr = /*#__PURE__*/ _r(gr, [["__scopeId", "data-v-6b677237"]]), yr = {
|
|
4225
4229
|
key: 1,
|
|
4226
4230
|
class: "tpl:size-4 tpl:shrink-0"
|
|
4227
4231
|
}, br = {
|
|
@@ -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);
|
|
@@ -5078,7 +5082,7 @@ var pi = { class: "tpl:p-4" }, mi = {
|
|
|
5078
5082
|
}, Bi = {
|
|
5079
5083
|
key: 4,
|
|
5080
5084
|
class: "tpl:flex tpl:justify-center tpl:py-4"
|
|
5081
|
-
}, Vi =
|
|
5085
|
+
}, Vi = /*#__PURE__*/ _r(/* @__PURE__ */ m({
|
|
5082
5086
|
__name: "MediaGrid",
|
|
5083
5087
|
props: {
|
|
5084
5088
|
items: {},
|
|
@@ -5391,7 +5395,7 @@ var pi = { class: "tpl:p-4" }, mi = {
|
|
|
5391
5395
|
}, fa = {
|
|
5392
5396
|
class: "tpl:block tpl:text-[10px]",
|
|
5393
5397
|
style: { color: "var(--tpl-text-muted)" }
|
|
5394
|
-
}, pa = ["value"], ma = ["value"], ha =
|
|
5398
|
+
}, pa = ["value"], ma = ["value"], ha = /*#__PURE__*/ _r(/* @__PURE__ */ m({
|
|
5395
5399
|
__name: "MediaPreviewPanel",
|
|
5396
5400
|
props: {
|
|
5397
5401
|
item: {},
|
|
@@ -6785,7 +6789,7 @@ function Bo(e) {
|
|
|
6785
6789
|
}
|
|
6786
6790
|
async function Vo(e) {
|
|
6787
6791
|
let t = Bo(e);
|
|
6788
|
-
return (await Fo(/*
|
|
6792
|
+
return (await Fo(/* #__PURE__ */ Object.assign({
|
|
6789
6793
|
"./locales/de.ts": () => import("./chunks/de-ByQyu2jv.js"),
|
|
6790
6794
|
"./locales/en.ts": () => import("./chunks/en-B-xajqfh.js"),
|
|
6791
6795
|
"./locales/pt-BR.ts": () => import("./chunks/pt-BR-C0Hzc26R.js")
|