@jt-home/mfe-components 1.0.40 → 1.0.42
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/JtAttachmentPreview/index.cjs +1 -1
- package/dist/JtAttachmentPreview/index.mjs +1 -1
- package/dist/index-c8YlthVt.cjs +1 -0
- package/dist/{index-C6AyqKhk.js → index-moF0d2Ee.js} +170 -154
- package/dist/index.cjs +2 -2
- package/dist/index.mjs +1100 -1119
- package/dist/style.css +1 -1
- package/dist/types/components/form/item/JtCascader/cascaderProps.d.ts +0 -1
- package/dist/types/components/form/item/JtCascader/index.vue.d.ts +0 -1
- package/dist/types/components/form/item/JtDatePicker/index.vue.d.ts +0 -1
- package/dist/types/components/form/item/JtInput/index.vue.d.ts +0 -1
- package/dist/types/components/form/item/JtSelect/index.vue.d.ts +0 -1
- package/package.json +99 -98
- package/readme.md +694 -694
- package/dist/index-poi8lPme.cjs +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ElIcon as
|
|
3
|
-
const
|
|
1
|
+
import { ref as A, isRef as ie, watch as Q, defineComponent as L, openBlock as T, createElementBlock as U, createElementVNode as I, onBeforeUnmount as O, h as a, computed as j, onMounted as X, nextTick as me, render as k } from "vue";
|
|
2
|
+
import { ElIcon as N } from "element-plus";
|
|
3
|
+
const ve = {
|
|
4
4
|
common: {
|
|
5
5
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js 无法读取该文件,已切换为浏览器内置预览",
|
|
6
6
|
PDF加载中___: "PDF 加载中...",
|
|
@@ -55,7 +55,7 @@ const ue = {
|
|
|
55
55
|
附件预览: "附件预览",
|
|
56
56
|
附件预览未初始化: "附件预览未初始化"
|
|
57
57
|
}
|
|
58
|
-
},
|
|
58
|
+
}, he = {
|
|
59
59
|
common: {
|
|
60
60
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js cannot read the file. It has been switched to browser built-in preview",
|
|
61
61
|
PDF加载中___: "PDF loading...",
|
|
@@ -110,7 +110,7 @@ const ue = {
|
|
|
110
110
|
附件预览: "Attachment Preview",
|
|
111
111
|
附件预览未初始化: "Attachment preview not initialized"
|
|
112
112
|
}
|
|
113
|
-
},
|
|
113
|
+
}, pe = {
|
|
114
114
|
common: {
|
|
115
115
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js ไม่สามารถอ่านไฟล์ได้ เปลี่ยนเป็นตัวอย่างในตัวเบราว์เซอร์",
|
|
116
116
|
PDF加载中___: "กําลังโหลดไฟล์ PDF ...",
|
|
@@ -165,7 +165,7 @@ const ue = {
|
|
|
165
165
|
附件预览: "เอกสารแนบตัวอย่าง",
|
|
166
166
|
附件预览未初始化: "การแสดงตัวอย่างของสิ่งที่แนบมาไม่ได้เริ่มต้น"
|
|
167
167
|
}
|
|
168
|
-
},
|
|
168
|
+
}, fe = {
|
|
169
169
|
common: {
|
|
170
170
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js không thể đọc tập tin, đã chuyển sang trình duyệt built-in xem trước",
|
|
171
171
|
PDF加载中___: "Đang tải PDF...",
|
|
@@ -220,7 +220,7 @@ const ue = {
|
|
|
220
220
|
附件预览: "Xem trước tệp đính kèm",
|
|
221
221
|
附件预览未初始化: "Bản xem trước đính kèm không được khởi tạo"
|
|
222
222
|
}
|
|
223
|
-
},
|
|
223
|
+
}, ge = {
|
|
224
224
|
common: {
|
|
225
225
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js no puede leer este archivo, cambió a la vista previa integrada del navegador",
|
|
226
226
|
PDF加载中___: "Carga de PDF...",
|
|
@@ -275,7 +275,7 @@ const ue = {
|
|
|
275
275
|
附件预览: "Anexo Preview",
|
|
276
276
|
附件预览未初始化: "Anexo Preview no inicializado"
|
|
277
277
|
}
|
|
278
|
-
},
|
|
278
|
+
}, we = {
|
|
279
279
|
common: {
|
|
280
280
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js tidak dapat membaca file ini, telah beralih ke pratinjau built-in browser",
|
|
281
281
|
PDF加载中___: "PDF sedang memuat...",
|
|
@@ -330,7 +330,7 @@ const ue = {
|
|
|
330
330
|
附件预览: "Lampiran Pratinjau",
|
|
331
331
|
附件预览未初始化: "Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi Lampiran Pratinjau tidak diinisialisasi"
|
|
332
332
|
}
|
|
333
|
-
},
|
|
333
|
+
}, _e = {
|
|
334
334
|
common: {
|
|
335
335
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "PDF.js kann die Datei nicht lesen, wurde auf die eingebaute Vorschau des Browsers umgeschaltet",
|
|
336
336
|
PDF加载中___: "PDF wird geladen...",
|
|
@@ -385,7 +385,7 @@ const ue = {
|
|
|
385
385
|
附件预览: "Anhang Vorschau",
|
|
386
386
|
附件预览未初始化: "Anlage Vorschau nicht initialisiert"
|
|
387
387
|
}
|
|
388
|
-
},
|
|
388
|
+
}, ye = {
|
|
389
389
|
common: {
|
|
390
390
|
"PDF_js无法读取该文件,已切换为浏览器内置预览": "O PDF.js não pode ler o arquivo, mudou para a visualização integrada do navegador",
|
|
391
391
|
PDF加载中___: "PDF Carregando...",
|
|
@@ -440,17 +440,17 @@ const ue = {
|
|
|
440
440
|
附件预览: "Anexo Preview",
|
|
441
441
|
附件预览未初始化: "Anexo Preview não inicializado"
|
|
442
442
|
}
|
|
443
|
-
},
|
|
444
|
-
"zh-cn":
|
|
445
|
-
en:
|
|
446
|
-
th:
|
|
447
|
-
vi:
|
|
448
|
-
es:
|
|
449
|
-
id:
|
|
450
|
-
de:
|
|
451
|
-
pt:
|
|
452
|
-
km:
|
|
453
|
-
},
|
|
443
|
+
}, ke = {}, be = {
|
|
444
|
+
"zh-cn": ve,
|
|
445
|
+
en: he,
|
|
446
|
+
th: pe,
|
|
447
|
+
vi: fe,
|
|
448
|
+
es: ge,
|
|
449
|
+
id: we,
|
|
450
|
+
de: _e,
|
|
451
|
+
pt: ye,
|
|
452
|
+
km: ke
|
|
453
|
+
}, Ae = {
|
|
454
454
|
zh: "zh-cn",
|
|
455
455
|
"zh-hans": "zh-cn",
|
|
456
456
|
"zh-cn": "zh-cn",
|
|
@@ -477,41 +477,57 @@ const ue = {
|
|
|
477
477
|
};
|
|
478
478
|
function J(e) {
|
|
479
479
|
const t = String(e || "zh-cn").trim().toLowerCase().replace(/_/g, "-");
|
|
480
|
-
return
|
|
480
|
+
return Ae[t] || t || "zh-cn";
|
|
481
481
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
482
|
+
const R = A("zh-cn");
|
|
483
|
+
let K;
|
|
484
|
+
function Z() {
|
|
485
|
+
K?.(), K = void 0;
|
|
486
|
+
}
|
|
487
|
+
function ne(e) {
|
|
488
|
+
return e ? typeof e == "function" ? J(e()) : ie(e) ? J(e.value) : J(e) : R.value;
|
|
485
489
|
}
|
|
486
|
-
function
|
|
490
|
+
function Pe(e, t) {
|
|
487
491
|
if (e)
|
|
488
492
|
return t.split(".").reduce((n, r) => {
|
|
489
493
|
if (!(!n || typeof n != "object"))
|
|
490
494
|
return n[r];
|
|
491
495
|
}, e);
|
|
492
496
|
}
|
|
493
|
-
function
|
|
494
|
-
const n = be
|
|
497
|
+
function ae(e, t) {
|
|
498
|
+
const n = Pe(be[e], t);
|
|
495
499
|
return typeof n == "string" ? n : void 0;
|
|
496
500
|
}
|
|
497
|
-
function
|
|
498
|
-
R = J(e);
|
|
501
|
+
function tt(e) {
|
|
502
|
+
Z(), R.value = J(e);
|
|
499
503
|
}
|
|
500
|
-
function
|
|
501
|
-
return R;
|
|
504
|
+
function nt() {
|
|
505
|
+
return R.value;
|
|
502
506
|
}
|
|
503
|
-
function
|
|
504
|
-
R = "zh-cn";
|
|
507
|
+
function at() {
|
|
508
|
+
Z(), R.value = "zh-cn";
|
|
505
509
|
}
|
|
506
|
-
function
|
|
507
|
-
|
|
510
|
+
function it(e, t = {}) {
|
|
511
|
+
if (Z(), t.locale) {
|
|
512
|
+
if (typeof t.locale == "function" || ie(t.locale)) {
|
|
513
|
+
K = Q(
|
|
514
|
+
() => ne(t.locale),
|
|
515
|
+
(n) => {
|
|
516
|
+
R.value = n;
|
|
517
|
+
},
|
|
518
|
+
{ immediate: !0, flush: "sync" }
|
|
519
|
+
);
|
|
520
|
+
return;
|
|
521
|
+
}
|
|
522
|
+
R.value = ne(t.locale);
|
|
523
|
+
}
|
|
508
524
|
}
|
|
509
525
|
function s(e, t = e) {
|
|
510
|
-
const n = t || e;
|
|
511
|
-
return
|
|
526
|
+
const n = t || e, r = R.value;
|
|
527
|
+
return ae(r, e) || ae("zh-cn", e) || n || e;
|
|
512
528
|
}
|
|
513
529
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
514
|
-
var
|
|
530
|
+
var De = /* @__PURE__ */ L({
|
|
515
531
|
name: "Download",
|
|
516
532
|
__name: "download",
|
|
517
533
|
setup(e) {
|
|
@@ -525,7 +541,7 @@ var Ae = /* @__PURE__ */ L({
|
|
|
525
541
|
})
|
|
526
542
|
]));
|
|
527
543
|
}
|
|
528
|
-
}),
|
|
544
|
+
}), je = De, Le = /* @__PURE__ */ L({
|
|
529
545
|
name: "RefreshLeft",
|
|
530
546
|
__name: "refresh-left",
|
|
531
547
|
setup(e) {
|
|
@@ -539,7 +555,7 @@ var Ae = /* @__PURE__ */ L({
|
|
|
539
555
|
})
|
|
540
556
|
]));
|
|
541
557
|
}
|
|
542
|
-
}),
|
|
558
|
+
}), Ee = Le, xe = /* @__PURE__ */ L({
|
|
543
559
|
name: "ZoomIn",
|
|
544
560
|
__name: "zoom-in",
|
|
545
561
|
setup(e) {
|
|
@@ -553,7 +569,7 @@ var Ae = /* @__PURE__ */ L({
|
|
|
553
569
|
})
|
|
554
570
|
]));
|
|
555
571
|
}
|
|
556
|
-
}),
|
|
572
|
+
}), Ce = xe, Re = /* @__PURE__ */ L({
|
|
557
573
|
name: "ZoomOut",
|
|
558
574
|
__name: "zoom-out",
|
|
559
575
|
setup(e) {
|
|
@@ -567,8 +583,8 @@ var Ae = /* @__PURE__ */ L({
|
|
|
567
583
|
})
|
|
568
584
|
]));
|
|
569
585
|
}
|
|
570
|
-
}),
|
|
571
|
-
const
|
|
586
|
+
}), Be = Re;
|
|
587
|
+
const Fe = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAAAAaVBMVEUAAABWapNVapKeqsLJztx3hKnGzN2yu8////9XapWcqMGps8lXapVYa5RWaZWps8lfcJjS1+KjrsVXapWapr////9sfaKrtMrV2uWBj7B4iKqWob1wgaXr7fOBj6/Ax9dhc5yhq8OKl7Wba+6tAAAAE3RSTlMAgGDuDyVLoYDe2XuXRb68cy6e4BCQEAAAAyZJREFUeNrt29tyokAUheGOQjIoeMhuCQ4e0Pd/yCE1STU4mGq7bXqzZ/23ufoqYblTqkIIIYQQQggNlM42Lzctf5nMD22bKQYVOQ30sTPt6dEO74mKXLoiCgDTi1RFbUMUBhZXluQUDKbnWxWtjMLB2pYqUjmFg8WUzSg0TL+rCKVZeJheRJj9DYWHRRnHbBSYnr+qcSsoKCyeLKcfK/emc2UqH4LFGMcVWVftTC4w/TbmhGQjwvR6RBmNAbMYx4nD7k/I1GF3ZZOH3RtHAbDhcZQAG5SJgOn1Vt0mAzYwIUJgvjJ/2OVo2pcmcoQZWehxpBGue5sJEQTryyTBeuMoCtadEFmwjkwYzIyjNJief02IONj3OAqE/ZVJhJnZj3RS1c4nld04ijiC/5EJhbUyobBWJhT2OY5CYa1MKKyVCYXpdSIUphdbobB2HIXCWplQmJGFhZUn07kyNaFgbUsx1/1tb1Jh+i1hDmu0Y+uEN4xqV9ki5Q27atfmKWtYqd1lW84wqj1kr5xhB+3RkjGMrl4yxrCm9pG984V5ytZJINjpY7hmLNki5XjdP0fGFkZ0qL1kfGEt7erzgsYY1lYefrtWsIZ5NAMMMBNg9gEGmD3sejbVnRpyjAvs5rr3DzDAAOsEmH2AAQZYJ8Ds4wJrSlN1NE3+CDYJu+5NgNkHGGCAdQLMPsAAA0zuEQyYbYABBlgnwOwDDDDAOvVhl5NJ1Fu1O6lHMGA/xQl2rPodpcBq6gfYYIABBpgJsAdiBDvX/cTAxF4egNkEWGDY5Q5s8v9onoZdR3KNC4yOg7AzOccFNvi36POJIy4wqgZgF/KIC6yporuCwNrq/nNW7ckzLjCi/bO//MEF9mCAAQYYYDwCDDAmAQYYkwADjEmAAcYkwABjEmCAMQkwwJgEGGBMAgwwJgEGGJMAA4xJgAHGJMD+B1hGE6hwgK1oAqUOsJz4lymHCuJfrpTM9SicYC/EvUw5lRD3Psde4lP29YSJG8bse+ulvZZ5uFTCV5YZl6hpXKXKs5TlL22jnlCaM7uHV7NEPam02LwwaVYkCiGEEEIIITTUH1Fqd5V0WMtQAAAAAElFTkSuQmCC", ze = "data:image/png;base64,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", Me = /* @__PURE__ */ new Set([
|
|
572
588
|
"jpg",
|
|
573
589
|
"jpeg",
|
|
574
590
|
"png",
|
|
@@ -578,7 +594,7 @@ const Re = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
|
|
|
578
594
|
"svg",
|
|
579
595
|
"avif",
|
|
580
596
|
"ico"
|
|
581
|
-
]),
|
|
597
|
+
]), Se = /* @__PURE__ */ new Set(["mp4", "webm", "ogg", "ogv", "mov", "m4v"]), Ne = /* @__PURE__ */ new Set([
|
|
582
598
|
"mp3",
|
|
583
599
|
"wav",
|
|
584
600
|
"ogg",
|
|
@@ -586,7 +602,7 @@ const Re = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
|
|
|
586
602
|
"m4a",
|
|
587
603
|
"aac",
|
|
588
604
|
"flac"
|
|
589
|
-
]),
|
|
605
|
+
]), Je = /* @__PURE__ */ new Set([
|
|
590
606
|
"html",
|
|
591
607
|
"htm",
|
|
592
608
|
"txt",
|
|
@@ -595,7 +611,7 @@ const Re = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
|
|
|
595
611
|
"csv",
|
|
596
612
|
"md",
|
|
597
613
|
"log"
|
|
598
|
-
]),
|
|
614
|
+
]), Ye = /* @__PURE__ */ new Set([
|
|
599
615
|
"doc",
|
|
600
616
|
"docx",
|
|
601
617
|
"xls",
|
|
@@ -607,22 +623,22 @@ const Re = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAANgAAADYCAMAAAC+/t3fAA
|
|
|
607
623
|
"7z"
|
|
608
624
|
]);
|
|
609
625
|
let b = null, V = null, Y = null;
|
|
610
|
-
async function
|
|
626
|
+
async function Te() {
|
|
611
627
|
return V || (V = Promise.all([
|
|
612
628
|
import("./pdf-BmBuG7of.js"),
|
|
613
629
|
import("./pdf.worker.min-4PI-nNLo.js")
|
|
614
630
|
]).then(([e, t]) => (e.GlobalWorkerOptions.workerSrc = t.default, e))), V;
|
|
615
631
|
}
|
|
616
|
-
function
|
|
632
|
+
function Ue(e) {
|
|
617
633
|
return typeof e == "string" ? { url: e } : e;
|
|
618
634
|
}
|
|
619
|
-
function
|
|
635
|
+
function re(e) {
|
|
620
636
|
const [t] = e.split(/[?#]/);
|
|
621
637
|
return t ?? "";
|
|
622
638
|
}
|
|
623
|
-
function
|
|
639
|
+
function $(e, t) {
|
|
624
640
|
if (t?.trim()) return t.trim();
|
|
625
|
-
const n =
|
|
641
|
+
const n = re(e).split("/").filter(Boolean).pop();
|
|
626
642
|
if (!n) return s("common.附件预览");
|
|
627
643
|
try {
|
|
628
644
|
return decodeURIComponent(n);
|
|
@@ -630,69 +646,69 @@ function Q(e, t) {
|
|
|
630
646
|
return n;
|
|
631
647
|
}
|
|
632
648
|
}
|
|
633
|
-
function
|
|
634
|
-
return
|
|
649
|
+
function H(e) {
|
|
650
|
+
return re(e).match(/\.([a-z0-9]+)$/i)?.[1]?.toLowerCase() ?? "";
|
|
635
651
|
}
|
|
636
|
-
function
|
|
652
|
+
function Ie(e) {
|
|
637
653
|
return e?.trim().replace(/^\./, "").toLowerCase() ?? "";
|
|
638
654
|
}
|
|
639
|
-
function
|
|
640
|
-
const t =
|
|
641
|
-
return
|
|
655
|
+
function Oe(e) {
|
|
656
|
+
const t = Ie(e);
|
|
657
|
+
return Me.has(t) ? "image" : t === "pdf" ? "pdf" : Se.has(t) ? "video" : Ne.has(t) ? "audio" : Je.has(t) ? "iframe" : Ye.has(t) ? "unsupported" : "unknown";
|
|
642
658
|
}
|
|
643
|
-
function
|
|
659
|
+
function ee(e) {
|
|
644
660
|
const t = e.toLowerCase().split(";")[0]?.trim() ?? "";
|
|
645
661
|
return t.startsWith("image/") ? "image" : t === "application/pdf" ? "pdf" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : t.startsWith("text/") ? "iframe" : "unknown";
|
|
646
662
|
}
|
|
647
|
-
function
|
|
663
|
+
function oe(e) {
|
|
648
664
|
if (!e.url.trim()) return "empty";
|
|
649
665
|
if (e.mode && e.mode !== "auto") return e.mode;
|
|
650
666
|
if (e.mimeType) {
|
|
651
|
-
const n =
|
|
667
|
+
const n = ee(e.mimeType);
|
|
652
668
|
if (n !== "unknown") return n;
|
|
653
669
|
}
|
|
654
|
-
const t =
|
|
655
|
-
e.extension ||
|
|
670
|
+
const t = Oe(
|
|
671
|
+
e.extension || H(e.name || "") || H(e.url)
|
|
656
672
|
);
|
|
657
673
|
return t !== "unknown" ? t : "unknown";
|
|
658
674
|
}
|
|
659
|
-
async function
|
|
675
|
+
async function qe(e) {
|
|
660
676
|
try {
|
|
661
677
|
const n = (await fetch(e, { method: "HEAD" })).headers.get("content-type") ?? "";
|
|
662
|
-
return
|
|
678
|
+
return ee(n);
|
|
663
679
|
} catch {
|
|
664
680
|
return "unknown";
|
|
665
681
|
}
|
|
666
682
|
}
|
|
667
|
-
async function
|
|
683
|
+
async function se(e) {
|
|
668
684
|
const t = await fetch(e);
|
|
669
685
|
if (!t.ok) throw new Error(`fetch failed: ${t.status}`);
|
|
670
686
|
return t.blob();
|
|
671
687
|
}
|
|
672
|
-
async function
|
|
688
|
+
async function Ve(e) {
|
|
673
689
|
const t = await fetch(e);
|
|
674
690
|
if (!t.ok) throw new Error(`fetch failed: ${t.status}`);
|
|
675
691
|
return new Uint8Array(await t.arrayBuffer());
|
|
676
692
|
}
|
|
677
|
-
function
|
|
678
|
-
const n =
|
|
693
|
+
function Ge(e, t) {
|
|
694
|
+
const n = H(t);
|
|
679
695
|
return n === "doc" || n === "docx" ? "W" : n === "xls" || n === "xlsx" ? "X" : n === "ppt" || n === "pptx" ? "P" : n === "zip" || n === "rar" || n === "7z" ? "ZIP" : e === "pdf" ? "PDF" : "FILE";
|
|
680
696
|
}
|
|
681
|
-
function
|
|
697
|
+
function ce(e, t, n) {
|
|
682
698
|
return a(
|
|
683
699
|
"button",
|
|
684
700
|
{
|
|
685
701
|
class: n,
|
|
686
702
|
type: "button",
|
|
687
703
|
onClick: () => {
|
|
688
|
-
|
|
704
|
+
ue(e, t);
|
|
689
705
|
}
|
|
690
706
|
},
|
|
691
707
|
[
|
|
692
708
|
a(
|
|
693
|
-
|
|
709
|
+
N,
|
|
694
710
|
{ class: "jt-attachment-preview-service__download-icon" },
|
|
695
|
-
() => a(
|
|
711
|
+
() => a(je)
|
|
696
712
|
),
|
|
697
713
|
a(
|
|
698
714
|
"span",
|
|
@@ -705,7 +721,7 @@ function ie(e, t, n) {
|
|
|
705
721
|
function G(e) {
|
|
706
722
|
return e === "image" || e === "pdf";
|
|
707
723
|
}
|
|
708
|
-
function
|
|
724
|
+
function le(e) {
|
|
709
725
|
return a(
|
|
710
726
|
"div",
|
|
711
727
|
{ class: "jt-attachment-preview-service__preview-fallback" },
|
|
@@ -731,19 +747,19 @@ function re(e) {
|
|
|
731
747
|
]
|
|
732
748
|
);
|
|
733
749
|
}
|
|
734
|
-
function
|
|
750
|
+
function W(e, t) {
|
|
735
751
|
const n = document.createElement("a");
|
|
736
752
|
n.href = e, n.download = t, n.style.display = "none", document.body.appendChild(n), n.click(), n.remove();
|
|
737
753
|
}
|
|
738
|
-
async function
|
|
754
|
+
async function ue(e, t) {
|
|
739
755
|
try {
|
|
740
|
-
const n = await
|
|
741
|
-
|
|
756
|
+
const n = await se(e), r = URL.createObjectURL(n);
|
|
757
|
+
W(r, t), URL.revokeObjectURL(r);
|
|
742
758
|
} catch {
|
|
743
|
-
|
|
759
|
+
W(e, t);
|
|
744
760
|
}
|
|
745
761
|
}
|
|
746
|
-
const
|
|
762
|
+
const Ke = L({
|
|
747
763
|
name: "JtAttachmentPreviewPdfCanvas",
|
|
748
764
|
props: {
|
|
749
765
|
url: {
|
|
@@ -768,7 +784,7 @@ const Ve = L({
|
|
|
768
784
|
previewError: (e) => e instanceof Event
|
|
769
785
|
},
|
|
770
786
|
setup(e, { emit: t }) {
|
|
771
|
-
const n =
|
|
787
|
+
const n = A("loading"), r = A([]), i = A([]), c = /* @__PURE__ */ new Map(), l = A("");
|
|
772
788
|
let m = null, _ = [], v = 0;
|
|
773
789
|
async function h(o, u) {
|
|
774
790
|
if (!u) return null;
|
|
@@ -778,14 +794,14 @@ const Ve = L({
|
|
|
778
794
|
async function E(o, u, y = 0) {
|
|
779
795
|
if (!u?.length) return [];
|
|
780
796
|
const g = [];
|
|
781
|
-
for (const
|
|
782
|
-
const B = await h(o,
|
|
797
|
+
for (const D of u) {
|
|
798
|
+
const B = await h(o, D.dest);
|
|
783
799
|
g.push({
|
|
784
|
-
title:
|
|
800
|
+
title: D.title || s("common.未命名标题"),
|
|
785
801
|
pageNumber: B,
|
|
786
802
|
level: y
|
|
787
803
|
});
|
|
788
|
-
const x = await E(o,
|
|
804
|
+
const x = await E(o, D.items, y + 1);
|
|
789
805
|
g.push(...x);
|
|
790
806
|
}
|
|
791
807
|
return g;
|
|
@@ -796,14 +812,14 @@ const Ve = L({
|
|
|
796
812
|
o.cancel();
|
|
797
813
|
_ = [], m?.destroy(), m = null, c.clear();
|
|
798
814
|
}
|
|
799
|
-
async function
|
|
815
|
+
async function P() {
|
|
800
816
|
f();
|
|
801
817
|
const o = v;
|
|
802
818
|
n.value = "loading", l.value = "", r.value = [], i.value = [];
|
|
803
819
|
try {
|
|
804
|
-
const u = await
|
|
820
|
+
const u = await Te();
|
|
805
821
|
if (o !== v) return;
|
|
806
|
-
const y = await
|
|
822
|
+
const y = await Ve(e.url);
|
|
807
823
|
if (o !== v) return;
|
|
808
824
|
m = u.getDocument({ data: y });
|
|
809
825
|
const g = await m.promise;
|
|
@@ -814,23 +830,23 @@ const Ve = L({
|
|
|
814
830
|
), i.value = await E(
|
|
815
831
|
g,
|
|
816
832
|
await g.getOutline()
|
|
817
|
-
), await
|
|
818
|
-
const
|
|
819
|
-
(
|
|
833
|
+
), await me();
|
|
834
|
+
const D = c.values().next().value, B = Math.max(
|
|
835
|
+
(D?.parentElement?.clientWidth ?? 800) - 32,
|
|
820
836
|
320
|
|
821
837
|
);
|
|
822
838
|
for (const x of r.value) {
|
|
823
839
|
if (o !== v) return;
|
|
824
840
|
const C = await g.getPage(x), w = c.get(x), F = w?.getContext("2d");
|
|
825
841
|
if (!w || !F) continue;
|
|
826
|
-
const q = C.getViewport({ scale: 1 }), d = Math.min(B / q.width, 2), z = C.getViewport({ scale: d }),
|
|
827
|
-
w.width = Math.floor(z.width *
|
|
828
|
-
const
|
|
842
|
+
const q = C.getViewport({ scale: 1 }), d = Math.min(B / q.width, 2), z = C.getViewport({ scale: d }), S = window.devicePixelRatio || 1;
|
|
843
|
+
w.width = Math.floor(z.width * S), w.height = Math.floor(z.height * S), w.style.width = `${Math.floor(z.width)}px`, w.style.height = `${Math.floor(z.height)}px`, F.setTransform(S, 0, 0, S, 0, 0);
|
|
844
|
+
const te = C.render({
|
|
829
845
|
canvas: w,
|
|
830
846
|
canvasContext: F,
|
|
831
847
|
viewport: z
|
|
832
848
|
});
|
|
833
|
-
_.push(
|
|
849
|
+
_.push(te), await te.promise;
|
|
834
850
|
}
|
|
835
851
|
if (o !== v) return;
|
|
836
852
|
n.value = "ready", t("previewLoad", new Event("load"));
|
|
@@ -839,7 +855,7 @@ const Ve = L({
|
|
|
839
855
|
n.value = "error", l.value = u instanceof Error ? u.message : s("common.PDF加载失败"), t("previewError", new Event("error"));
|
|
840
856
|
}
|
|
841
857
|
}
|
|
842
|
-
|
|
858
|
+
Q(() => e.url, P, { immediate: !0 }), O(f);
|
|
843
859
|
function p(o) {
|
|
844
860
|
if (!o) return;
|
|
845
861
|
c.get(o)?.scrollIntoView({ behavior: "smooth", block: "start" });
|
|
@@ -851,8 +867,8 @@ const Ve = L({
|
|
|
851
867
|
s("common.PDF加载中___")
|
|
852
868
|
) : null,
|
|
853
869
|
n.value === "error" ? a("div", { class: "jt-attachment-preview-service__pdf-state" }, [
|
|
854
|
-
|
|
855
|
-
icon:
|
|
870
|
+
le({
|
|
871
|
+
icon: ze,
|
|
856
872
|
name: e.name
|
|
857
873
|
})
|
|
858
874
|
]) : null,
|
|
@@ -918,7 +934,7 @@ const Ve = L({
|
|
|
918
934
|
)
|
|
919
935
|
]);
|
|
920
936
|
}
|
|
921
|
-
}),
|
|
937
|
+
}), He = L({
|
|
922
938
|
name: "JtAttachmentPreviewImageTransform",
|
|
923
939
|
props: {
|
|
924
940
|
url: {
|
|
@@ -947,9 +963,9 @@ const Ve = L({
|
|
|
947
963
|
previewError: (e) => e instanceof Event
|
|
948
964
|
},
|
|
949
965
|
setup(e, { emit: t }) {
|
|
950
|
-
const n =
|
|
966
|
+
const n = A(null), r = A("ready"), i = A(1), c = A(!1);
|
|
951
967
|
let l = 0, m = 0, _ = 0, v = 0, h = 0, E = 0, f = 0;
|
|
952
|
-
const
|
|
968
|
+
const P = j(
|
|
953
969
|
() => ({
|
|
954
970
|
"--jt-attachment-preview-service-image-fit": e.fit,
|
|
955
971
|
transform: `translate(${l}px, ${m}px) scale(${i.value})`
|
|
@@ -973,7 +989,7 @@ const Ve = L({
|
|
|
973
989
|
const d = Math.max(Number((i.value - 0.2).toFixed(2)), 0.2);
|
|
974
990
|
i.value = d, d <= 1 && (l = 0, m = 0), p();
|
|
975
991
|
}
|
|
976
|
-
function
|
|
992
|
+
function D() {
|
|
977
993
|
l = 0, m = 0, u(1);
|
|
978
994
|
}
|
|
979
995
|
function B(d) {
|
|
@@ -994,18 +1010,18 @@ const Ve = L({
|
|
|
994
1010
|
function q(d) {
|
|
995
1011
|
d.preventDefault(), u(i.value + (d.deltaY < 0 ? 0.1 : -0.1));
|
|
996
1012
|
}
|
|
997
|
-
return
|
|
1013
|
+
return X(p), Q(
|
|
998
1014
|
() => e.url,
|
|
999
1015
|
() => {
|
|
1000
|
-
r.value = "ready",
|
|
1016
|
+
r.value = "ready", D();
|
|
1001
1017
|
}
|
|
1002
1018
|
), O(() => {
|
|
1003
1019
|
window.removeEventListener("pointermove", w), f && window.cancelAnimationFrame(f);
|
|
1004
1020
|
}), () => a(
|
|
1005
1021
|
"div",
|
|
1006
1022
|
{ class: "jt-attachment-preview-service__image-viewer" },
|
|
1007
|
-
r.value === "error" ?
|
|
1008
|
-
icon:
|
|
1023
|
+
r.value === "error" ? le({
|
|
1024
|
+
icon: Fe,
|
|
1009
1025
|
name: e.name
|
|
1010
1026
|
}) : [
|
|
1011
1027
|
a("img", {
|
|
@@ -1018,7 +1034,7 @@ const Ve = L({
|
|
|
1018
1034
|
],
|
|
1019
1035
|
src: e.url,
|
|
1020
1036
|
alt: e.name,
|
|
1021
|
-
style:
|
|
1037
|
+
style: P.value,
|
|
1022
1038
|
onLoad: B,
|
|
1023
1039
|
onError: x,
|
|
1024
1040
|
onPointerdown: C,
|
|
@@ -1038,7 +1054,7 @@ const Ve = L({
|
|
|
1038
1054
|
title: s("common.缩小"),
|
|
1039
1055
|
onClick: g
|
|
1040
1056
|
},
|
|
1041
|
-
[a(
|
|
1057
|
+
[a(N, () => a(Be))]
|
|
1042
1058
|
),
|
|
1043
1059
|
a(
|
|
1044
1060
|
"span",
|
|
@@ -1053,7 +1069,7 @@ const Ve = L({
|
|
|
1053
1069
|
title: s("common.放大"),
|
|
1054
1070
|
onClick: y
|
|
1055
1071
|
},
|
|
1056
|
-
[a(
|
|
1072
|
+
[a(N, () => a(Ce))]
|
|
1057
1073
|
),
|
|
1058
1074
|
a(
|
|
1059
1075
|
"button",
|
|
@@ -1061,16 +1077,16 @@ const Ve = L({
|
|
|
1061
1077
|
class: "jt-attachment-preview-service__image-tool",
|
|
1062
1078
|
type: "button",
|
|
1063
1079
|
title: s("common.复位"),
|
|
1064
|
-
onClick:
|
|
1080
|
+
onClick: D
|
|
1065
1081
|
},
|
|
1066
|
-
[a(
|
|
1082
|
+
[a(N, () => a(Ee))]
|
|
1067
1083
|
)
|
|
1068
1084
|
]
|
|
1069
1085
|
)
|
|
1070
1086
|
]
|
|
1071
1087
|
);
|
|
1072
1088
|
}
|
|
1073
|
-
}),
|
|
1089
|
+
}), We = L({
|
|
1074
1090
|
name: "JtAttachmentPreviewService",
|
|
1075
1091
|
props: {
|
|
1076
1092
|
options: {
|
|
@@ -1083,13 +1099,13 @@ const Ve = L({
|
|
|
1083
1099
|
}
|
|
1084
1100
|
},
|
|
1085
1101
|
setup(e) {
|
|
1086
|
-
const t =
|
|
1087
|
-
() =>
|
|
1088
|
-
), n =
|
|
1102
|
+
const t = j(
|
|
1103
|
+
() => $(e.options.url, e.options.name)
|
|
1104
|
+
), n = j(
|
|
1089
1105
|
() => e.options.downloadName || t.value
|
|
1090
|
-
), r =
|
|
1091
|
-
() =>
|
|
1092
|
-
), c =
|
|
1106
|
+
), r = j(() => oe(e.options)), i = j(
|
|
1107
|
+
() => Ge(r.value, e.options.url)
|
|
1108
|
+
), c = j(
|
|
1093
1109
|
() => ({
|
|
1094
1110
|
zIndex: e.options.zIndex ?? 3e3,
|
|
1095
1111
|
"--jt-attachment-preview-service-image-fit": e.options.fit ?? "contain"
|
|
@@ -1107,13 +1123,13 @@ const Ve = L({
|
|
|
1107
1123
|
function v(h) {
|
|
1108
1124
|
e.options.onError?.(h);
|
|
1109
1125
|
}
|
|
1110
|
-
return
|
|
1126
|
+
return X(() => {
|
|
1111
1127
|
document.addEventListener("keydown", m), document.body.classList.add("jt-attachment-preview-service-lock");
|
|
1112
1128
|
}), O(() => {
|
|
1113
1129
|
document.removeEventListener("keydown", m), document.body.classList.remove("jt-attachment-preview-service-lock");
|
|
1114
1130
|
}), () => {
|
|
1115
1131
|
const h = e.options.downloadable === !1 ? [] : [
|
|
1116
|
-
|
|
1132
|
+
ce(
|
|
1117
1133
|
e.options.url,
|
|
1118
1134
|
n.value,
|
|
1119
1135
|
"jt-attachment-preview-service__top-download"
|
|
@@ -1152,7 +1168,7 @@ const Ve = L({
|
|
|
1152
1168
|
)
|
|
1153
1169
|
]),
|
|
1154
1170
|
a("div", { class: "jt-attachment-preview-service__body" }, [
|
|
1155
|
-
|
|
1171
|
+
Qe({
|
|
1156
1172
|
type: r.value,
|
|
1157
1173
|
url: e.options.url,
|
|
1158
1174
|
name: t.value,
|
|
@@ -1194,9 +1210,9 @@ const Ve = L({
|
|
|
1194
1210
|
}
|
|
1195
1211
|
},
|
|
1196
1212
|
setup(e) {
|
|
1197
|
-
const t =
|
|
1198
|
-
() =>
|
|
1199
|
-
), n =
|
|
1213
|
+
const t = j(
|
|
1214
|
+
() => $(e.options.url, e.options.name)
|
|
1215
|
+
), n = j(() => ({
|
|
1200
1216
|
zIndex: e.options.zIndex ?? 3e3
|
|
1201
1217
|
}));
|
|
1202
1218
|
function r() {
|
|
@@ -1205,7 +1221,7 @@ const Ve = L({
|
|
|
1205
1221
|
function i(c) {
|
|
1206
1222
|
c.key === "Escape" && e.options.closeOnPressEscape !== !1 && r();
|
|
1207
1223
|
}
|
|
1208
|
-
return
|
|
1224
|
+
return X(() => {
|
|
1209
1225
|
document.addEventListener("keydown", i), document.body.classList.add("jt-attachment-preview-service-lock");
|
|
1210
1226
|
}), O(() => {
|
|
1211
1227
|
document.removeEventListener("keydown", i), document.body.classList.remove("jt-attachment-preview-service-lock");
|
|
@@ -1262,12 +1278,12 @@ const Ve = L({
|
|
|
1262
1278
|
);
|
|
1263
1279
|
}
|
|
1264
1280
|
});
|
|
1265
|
-
function
|
|
1281
|
+
function Qe(e) {
|
|
1266
1282
|
return e.type === "empty" ? a(
|
|
1267
1283
|
"div",
|
|
1268
1284
|
{ class: "jt-attachment-preview-service__empty" },
|
|
1269
1285
|
s("common.暂无附件")
|
|
1270
|
-
) : e.type === "image" ? a(
|
|
1286
|
+
) : e.type === "image" ? a(He, {
|
|
1271
1287
|
url: e.url,
|
|
1272
1288
|
name: e.name,
|
|
1273
1289
|
downloadName: e.downloadName,
|
|
@@ -1286,7 +1302,7 @@ function He(e) {
|
|
|
1286
1302
|
controls: !0,
|
|
1287
1303
|
onLoadeddata: e.onLoad,
|
|
1288
1304
|
onError: e.onError
|
|
1289
|
-
}) : e.type === "pdf" ? a(
|
|
1305
|
+
}) : e.type === "pdf" ? a(Ke, {
|
|
1290
1306
|
url: e.url,
|
|
1291
1307
|
name: e.name,
|
|
1292
1308
|
downloadName: e.downloadName,
|
|
@@ -1320,26 +1336,26 @@ function He(e) {
|
|
|
1320
1336
|
},
|
|
1321
1337
|
e.name
|
|
1322
1338
|
),
|
|
1323
|
-
e.downloadable ?
|
|
1339
|
+
e.downloadable ? ce(
|
|
1324
1340
|
e.url,
|
|
1325
1341
|
e.downloadName,
|
|
1326
1342
|
"jt-attachment-preview-service__primary-download"
|
|
1327
1343
|
) : null
|
|
1328
1344
|
]);
|
|
1329
1345
|
}
|
|
1330
|
-
function
|
|
1346
|
+
function de(e) {
|
|
1331
1347
|
if (typeof document > "u")
|
|
1332
1348
|
return { close: () => {
|
|
1333
1349
|
} };
|
|
1334
1350
|
b?.close();
|
|
1335
|
-
const t =
|
|
1351
|
+
const t = Ue(e), n = t.downloadName || $(t.url, t.name);
|
|
1336
1352
|
let r = !1, i = null, c = null;
|
|
1337
1353
|
const l = () => {
|
|
1338
1354
|
r = !0, i && (k(null, i), i.remove(), i = null), c && (URL.revokeObjectURL(c), c = null), b?.close === l && (b = null);
|
|
1339
1355
|
};
|
|
1340
1356
|
function m() {
|
|
1341
1357
|
r || (i || (i = document.createElement("div"), document.body.appendChild(i)), k(
|
|
1342
|
-
a(
|
|
1358
|
+
a(We, {
|
|
1343
1359
|
options: t,
|
|
1344
1360
|
onDestroy: l
|
|
1345
1361
|
}),
|
|
@@ -1359,22 +1375,22 @@ function se(e) {
|
|
|
1359
1375
|
i && (k(null, i), i.remove(), i = null);
|
|
1360
1376
|
}
|
|
1361
1377
|
function h() {
|
|
1362
|
-
r ||
|
|
1378
|
+
r || ue(t.url, n);
|
|
1363
1379
|
}
|
|
1364
|
-
function E(
|
|
1380
|
+
function E(P) {
|
|
1365
1381
|
if (r) return;
|
|
1366
|
-
const p = URL.createObjectURL(
|
|
1367
|
-
|
|
1382
|
+
const p = URL.createObjectURL(P);
|
|
1383
|
+
W(p, n), URL.revokeObjectURL(p);
|
|
1368
1384
|
}
|
|
1369
|
-
const f =
|
|
1370
|
-
return G(f) ? m() : f === "unknown" ? (_(),
|
|
1385
|
+
const f = oe(t);
|
|
1386
|
+
return G(f) ? m() : f === "unknown" ? (_(), qe(t.url).then(async (P) => {
|
|
1371
1387
|
if (!r) {
|
|
1372
|
-
if (G(
|
|
1373
|
-
t.mode =
|
|
1388
|
+
if (G(P)) {
|
|
1389
|
+
t.mode = P, m();
|
|
1374
1390
|
return;
|
|
1375
1391
|
}
|
|
1376
1392
|
try {
|
|
1377
|
-
const p = await
|
|
1393
|
+
const p = await se(t.url), o = ee(p.type);
|
|
1378
1394
|
if (G(o)) {
|
|
1379
1395
|
c = URL.createObjectURL(p), t.url = c, t.mode = o, m();
|
|
1380
1396
|
return;
|
|
@@ -1386,10 +1402,10 @@ function se(e) {
|
|
|
1386
1402
|
}
|
|
1387
1403
|
})) : h(), b = { close: l }, b;
|
|
1388
1404
|
}
|
|
1389
|
-
function
|
|
1405
|
+
function Xe(e) {
|
|
1390
1406
|
Y = e;
|
|
1391
1407
|
}
|
|
1392
|
-
function
|
|
1408
|
+
function Ze(e) {
|
|
1393
1409
|
if (typeof document > "u")
|
|
1394
1410
|
return { close: () => {
|
|
1395
1411
|
} };
|
|
@@ -1424,7 +1440,7 @@ function Qe(e) {
|
|
|
1424
1440
|
);
|
|
1425
1441
|
return;
|
|
1426
1442
|
}
|
|
1427
|
-
|
|
1443
|
+
de(l);
|
|
1428
1444
|
}).catch((c) => {
|
|
1429
1445
|
if (t) return;
|
|
1430
1446
|
const l = c instanceof Error ? c.message : s("common.接口请求失败");
|
|
@@ -1449,18 +1465,18 @@ function Qe(e) {
|
|
|
1449
1465
|
n
|
|
1450
1466
|
), i);
|
|
1451
1467
|
}
|
|
1452
|
-
const
|
|
1453
|
-
openByParams:
|
|
1454
|
-
setup:
|
|
1468
|
+
const rt = Object.assign(de, {
|
|
1469
|
+
openByParams: Ze,
|
|
1470
|
+
setup: Xe
|
|
1455
1471
|
});
|
|
1456
1472
|
export {
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1473
|
+
rt as J,
|
|
1474
|
+
Ze as a,
|
|
1475
|
+
Xe as b,
|
|
1476
|
+
nt as g,
|
|
1477
|
+
it as i,
|
|
1462
1478
|
J as n,
|
|
1463
|
-
|
|
1464
|
-
|
|
1479
|
+
at as r,
|
|
1480
|
+
tt as s,
|
|
1465
1481
|
s as t
|
|
1466
1482
|
};
|