@templatical/media-library 0.6.5 → 0.6.7
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/pt-BR-Dff76tHu.js +89 -0
- package/dist/cdn/chunks/pt-BR-Dff76tHu.js.map +1 -0
- package/dist/cdn/media-library.js +38 -23
- package/dist/cdn/media-library.js.map +1 -1
- package/dist/pt-BR-T5mPyHbx.js +87 -0
- package/dist/templatical-media-library.js +34 -19
- package/package.json +3 -3
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
//#region src/i18n/locales/pt-BR.ts
|
|
2
|
+
var e = { mediaLibrary: {
|
|
3
|
+
title: "Biblioteca de Mídia",
|
|
4
|
+
searchPlaceholder: "Buscar arquivos...",
|
|
5
|
+
allFiles: "Todos os Arquivos",
|
|
6
|
+
filterAll: "Todos os Tipos",
|
|
7
|
+
filterImages: "Imagens",
|
|
8
|
+
filterDocuments: "Documentos",
|
|
9
|
+
filterVideos: "Vídeos",
|
|
10
|
+
filterAudio: "Áudio",
|
|
11
|
+
newFolder: "Nova Pasta",
|
|
12
|
+
folderName: "Nome da pasta",
|
|
13
|
+
noFiles: "Nenhum arquivo encontrado",
|
|
14
|
+
dropOrClick: "Solte arquivos aqui ou clique para enviar",
|
|
15
|
+
acceptedFormats: "Imagens, PDF, Vídeo, Áudio, Documentos (máx. 10MB)",
|
|
16
|
+
uploading: "Enviando...",
|
|
17
|
+
uploadingProgress: "Enviando {current} de {total}...",
|
|
18
|
+
selectImage: "Selecionar Imagem",
|
|
19
|
+
selectFile: "Selecionar Arquivo",
|
|
20
|
+
deleteSelected: "Excluir",
|
|
21
|
+
copyUrl: "Copiar URL",
|
|
22
|
+
copied: "Copiado!",
|
|
23
|
+
browseMedia: "Explorar Biblioteca de Mídia",
|
|
24
|
+
renameFolder: "Renomear pasta",
|
|
25
|
+
addSubfolder: "Adicionar subpasta",
|
|
26
|
+
subfolderName: "Nome da subpasta",
|
|
27
|
+
sortNewest: "Mais Recentes",
|
|
28
|
+
sortOldest: "Mais Antigos",
|
|
29
|
+
sortNameAsc: "Nome A-Z",
|
|
30
|
+
sortNameDesc: "Nome Z-A",
|
|
31
|
+
sortSizeAsc: "Menores Primeiro",
|
|
32
|
+
sortSizeDesc: "Maiores Primeiro",
|
|
33
|
+
moveSelected: "Mover",
|
|
34
|
+
moveToRoot: "Todos os Arquivos",
|
|
35
|
+
currentFolder: "(atual)",
|
|
36
|
+
confirmDelete: "Confirmar?",
|
|
37
|
+
renameFile: "Renomear",
|
|
38
|
+
editFile: "Editar Arquivo",
|
|
39
|
+
fileName: "Nome do arquivo",
|
|
40
|
+
altText: "Texto Alternativo",
|
|
41
|
+
altTextPlaceholder: "Descreva esta imagem para acessibilidade",
|
|
42
|
+
saveChanges: "Salvar",
|
|
43
|
+
cancel: "Cancelar",
|
|
44
|
+
frequentlyUsed: "Usados Frequentemente",
|
|
45
|
+
deleteWarningTitle: "Excluir Arquivo",
|
|
46
|
+
deleteWarningMessage: "Tem certeza? Esta ação é irreversível.",
|
|
47
|
+
deleteWarningUsageNote: "Os arquivos a seguir estão sendo usados em templates. Excluí-los pode quebrar esses templates.",
|
|
48
|
+
deleteAnyway: "Excluir",
|
|
49
|
+
usedInTemplates: "Usado em {count} template(s)",
|
|
50
|
+
viewGrid: "Visualização em grade",
|
|
51
|
+
viewList: "Visualização em lista",
|
|
52
|
+
showFolders: "Mostrar pastas",
|
|
53
|
+
hideFolders: "Ocultar pastas",
|
|
54
|
+
importFromUrl: "Importar de URL",
|
|
55
|
+
importUrlPlaceholder: "https://exemplo.com/imagem.jpg",
|
|
56
|
+
import: "Importar",
|
|
57
|
+
importing: "Importando...",
|
|
58
|
+
importError: "Falha ao importar da URL",
|
|
59
|
+
conversionLabel: "Tamanho",
|
|
60
|
+
conversionOriginal: "Original",
|
|
61
|
+
conversionSmall: "Pequeno (150px)",
|
|
62
|
+
conversionMedium: "Médio (600px)",
|
|
63
|
+
conversionLarge: "Grande (1200px)",
|
|
64
|
+
replaceFile: "Substituir Arquivo",
|
|
65
|
+
replaceWarningTitle: "Substituir Arquivo",
|
|
66
|
+
replaceWarningMessage: "Você está prestes a substituir este arquivo. O substituto deve ter a mesma extensão ({extension}).",
|
|
67
|
+
replaceWarningUsageNote: "Este arquivo é usado em {count} template(s). Substituí-lo atualizará todas as referências.",
|
|
68
|
+
replaceSelectFile: "Selecionar arquivo substituto",
|
|
69
|
+
replace: "Substituir",
|
|
70
|
+
replacing: "Substituindo...",
|
|
71
|
+
replaceError: "Falha ao substituir arquivo",
|
|
72
|
+
saving: "Salvando...",
|
|
73
|
+
cropAspectRatio: "Proporção",
|
|
74
|
+
cropFree: "Livre",
|
|
75
|
+
cropSquare: "1:1",
|
|
76
|
+
cropLandscape43: "4:3",
|
|
77
|
+
cropLandscape169: "16:9",
|
|
78
|
+
cropOriginal: "Original",
|
|
79
|
+
cropMaxWidth: "Largura Máxima",
|
|
80
|
+
cropMaxHeight: "Altura Máxima",
|
|
81
|
+
cropOutputSize: "Tamanho de Saída",
|
|
82
|
+
cropPixels: "px",
|
|
83
|
+
cropOptional: "(opcional)",
|
|
84
|
+
storageTooltip: "{used} de {total} usados ({remaining} restantes)"
|
|
85
|
+
} };
|
|
86
|
+
//#endregion
|
|
87
|
+
export { e as default };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=pt-BR-Dff76tHu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pt-BR-Dff76tHu.js","names":[],"sources":["../../../src/i18n/locales/pt-BR.ts"],"sourcesContent":["const ptBR = {\n mediaLibrary: {\n title: \"Biblioteca de Mídia\",\n searchPlaceholder: \"Buscar arquivos...\",\n allFiles: \"Todos os Arquivos\",\n filterAll: \"Todos os Tipos\",\n filterImages: \"Imagens\",\n filterDocuments: \"Documentos\",\n filterVideos: \"Vídeos\",\n filterAudio: \"Áudio\",\n newFolder: \"Nova Pasta\",\n folderName: \"Nome da pasta\",\n noFiles: \"Nenhum arquivo encontrado\",\n dropOrClick: \"Solte arquivos aqui ou clique para enviar\",\n acceptedFormats: \"Imagens, PDF, Vídeo, Áudio, Documentos (máx. 10MB)\",\n uploading: \"Enviando...\",\n uploadingProgress: \"Enviando {current} de {total}...\",\n selectImage: \"Selecionar Imagem\",\n selectFile: \"Selecionar Arquivo\",\n deleteSelected: \"Excluir\",\n copyUrl: \"Copiar URL\",\n copied: \"Copiado!\",\n browseMedia: \"Explorar Biblioteca de Mídia\",\n renameFolder: \"Renomear pasta\",\n addSubfolder: \"Adicionar subpasta\",\n subfolderName: \"Nome da subpasta\",\n sortNewest: \"Mais Recentes\",\n sortOldest: \"Mais Antigos\",\n sortNameAsc: \"Nome A-Z\",\n sortNameDesc: \"Nome Z-A\",\n sortSizeAsc: \"Menores Primeiro\",\n sortSizeDesc: \"Maiores Primeiro\",\n moveSelected: \"Mover\",\n moveToRoot: \"Todos os Arquivos\",\n currentFolder: \"(atual)\",\n confirmDelete: \"Confirmar?\",\n renameFile: \"Renomear\",\n editFile: \"Editar Arquivo\",\n fileName: \"Nome do arquivo\",\n altText: \"Texto Alternativo\",\n altTextPlaceholder: \"Descreva esta imagem para acessibilidade\",\n saveChanges: \"Salvar\",\n cancel: \"Cancelar\",\n frequentlyUsed: \"Usados Frequentemente\",\n deleteWarningTitle: \"Excluir Arquivo\",\n deleteWarningMessage: \"Tem certeza? Esta ação é irreversível.\",\n deleteWarningUsageNote:\n \"Os arquivos a seguir estão sendo usados em templates. Excluí-los pode quebrar esses templates.\",\n deleteAnyway: \"Excluir\",\n usedInTemplates: \"Usado em {count} template(s)\",\n viewGrid: \"Visualização em grade\",\n viewList: \"Visualização em lista\",\n showFolders: \"Mostrar pastas\",\n hideFolders: \"Ocultar pastas\",\n importFromUrl: \"Importar de URL\",\n importUrlPlaceholder: \"https://exemplo.com/imagem.jpg\",\n import: \"Importar\",\n importing: \"Importando...\",\n importError: \"Falha ao importar da URL\",\n conversionLabel: \"Tamanho\",\n conversionOriginal: \"Original\",\n conversionSmall: \"Pequeno (150px)\",\n conversionMedium: \"Médio (600px)\",\n conversionLarge: \"Grande (1200px)\",\n replaceFile: \"Substituir Arquivo\",\n replaceWarningTitle: \"Substituir Arquivo\",\n replaceWarningMessage:\n \"Você está prestes a substituir este arquivo. O substituto deve ter a mesma extensão ({extension}).\",\n replaceWarningUsageNote:\n \"Este arquivo é usado em {count} template(s). Substituí-lo atualizará todas as referências.\",\n replaceSelectFile: \"Selecionar arquivo substituto\",\n replace: \"Substituir\",\n replacing: \"Substituindo...\",\n replaceError: \"Falha ao substituir arquivo\",\n saving: \"Salvando...\",\n cropAspectRatio: \"Proporção\",\n cropFree: \"Livre\",\n cropSquare: \"1:1\",\n cropLandscape43: \"4:3\",\n cropLandscape169: \"16:9\",\n cropOriginal: \"Original\",\n cropMaxWidth: \"Largura Máxima\",\n cropMaxHeight: \"Altura Máxima\",\n cropOutputSize: \"Tamanho de Saída\",\n cropPixels: \"px\",\n cropOptional: \"(opcional)\",\n storageTooltip: \"{used} de {total} usados ({remaining} restantes)\",\n },\n};\n\nexport default ptBR;\n"],"mappings":";AAAA,IAAM,IAAO,EACX,cAAc;CACZ,OAAO;CACP,mBAAmB;CACnB,UAAU;CACV,WAAW;CACX,cAAc;CACd,iBAAiB;CACjB,cAAc;CACd,aAAa;CACb,WAAW;CACX,YAAY;CACZ,SAAS;CACT,aAAa;CACb,iBAAiB;CACjB,WAAW;CACX,mBAAmB;CACnB,aAAa;CACb,YAAY;CACZ,gBAAgB;CAChB,SAAS;CACT,QAAQ;CACR,aAAa;CACb,cAAc;CACd,cAAc;CACd,eAAe;CACf,YAAY;CACZ,YAAY;CACZ,aAAa;CACb,cAAc;CACd,aAAa;CACb,cAAc;CACd,cAAc;CACd,YAAY;CACZ,eAAe;CACf,eAAe;CACf,YAAY;CACZ,UAAU;CACV,UAAU;CACV,SAAS;CACT,oBAAoB;CACpB,aAAa;CACb,QAAQ;CACR,gBAAgB;CAChB,oBAAoB;CACpB,sBAAsB;CACtB,wBACE;CACF,cAAc;CACd,iBAAiB;CACjB,UAAU;CACV,UAAU;CACV,aAAa;CACb,aAAa;CACb,eAAe;CACf,sBAAsB;CACtB,QAAQ;CACR,WAAW;CACX,aAAa;CACb,iBAAiB;CACjB,oBAAoB;CACpB,iBAAiB;CACjB,kBAAkB;CAClB,iBAAiB;CACjB,aAAa;CACb,qBAAqB;CACrB,uBACE;CACF,yBACE;CACF,mBAAmB;CACnB,SAAS;CACT,WAAW;CACX,cAAc;CACd,QAAQ;CACR,iBAAiB;CACjB,UAAU;CACV,YAAY;CACZ,iBAAiB;CACjB,kBAAkB;CAClB,cAAc;CACd,cAAc;CACd,eAAe;CACf,gBAAgB;CAChB,YAAY;CACZ,cAAc;CACd,gBAAgB;CACjB,EACF"}
|
|
@@ -6746,33 +6746,48 @@ var Ua = {
|
|
|
6746
6746
|
return i ? typeof i == "function" ? i() : Promise.resolve(i) : new Promise((e, r) => {
|
|
6747
6747
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(r.bind(null, /* @__PURE__ */ Error("Unknown variable dynamic import: " + t + (t.split("/").length === n ? "" : ". Note that variables only represent file names one level deep."))));
|
|
6748
6748
|
});
|
|
6749
|
-
}, Fo = [
|
|
6749
|
+
}, Fo = [
|
|
6750
|
+
"en",
|
|
6751
|
+
"de",
|
|
6752
|
+
"pt-BR"
|
|
6753
|
+
];
|
|
6750
6754
|
function Io(e) {
|
|
6751
|
-
return e.
|
|
6755
|
+
return e.trim().replace(/_/g, "-").toLowerCase();
|
|
6752
6756
|
}
|
|
6753
|
-
|
|
6754
|
-
let t = Io(e)
|
|
6757
|
+
function Lo(e) {
|
|
6758
|
+
let t = Io(e);
|
|
6759
|
+
return Fo.find((e) => Io(e) === t);
|
|
6760
|
+
}
|
|
6761
|
+
function Ro(e) {
|
|
6762
|
+
return Io(e).split("-")[0];
|
|
6763
|
+
}
|
|
6764
|
+
function zo(e) {
|
|
6765
|
+
return Lo(e) ?? Lo(Ro(e)) ?? "en";
|
|
6766
|
+
}
|
|
6767
|
+
async function Bo(e) {
|
|
6768
|
+
let t = zo(e);
|
|
6755
6769
|
return (await Po(/* @__PURE__ */ Object.assign({
|
|
6756
6770
|
"./locales/de.ts": () => import("./chunks/de-DTeAtaXF.js"),
|
|
6757
|
-
"./locales/en.ts": () => import("./chunks/en-DSB0cVAt.js")
|
|
6758
|
-
|
|
6771
|
+
"./locales/en.ts": () => import("./chunks/en-DSB0cVAt.js"),
|
|
6772
|
+
"./locales/pt-BR.ts": () => import("./chunks/pt-BR-Dff76tHu.js")
|
|
6773
|
+
}), `./locales/${t}.ts`, 3)).default;
|
|
6759
6774
|
}
|
|
6760
6775
|
//#endregion
|
|
6761
6776
|
//#region src/standalone/visual.ts
|
|
6762
|
-
var
|
|
6763
|
-
async function
|
|
6777
|
+
var Vo = null, Ho = e(null);
|
|
6778
|
+
async function Uo(e) {
|
|
6764
6779
|
let t = typeof e.container == "string" ? document.querySelector(e.container) : e.container;
|
|
6765
6780
|
if (!t) throw Error(`Container element not found: ${e.container}`);
|
|
6766
6781
|
let n = Ce(e.auth, e.onError);
|
|
6767
6782
|
await n.initialize();
|
|
6768
|
-
let r = await new ke(n).fetchConfig(), i = await
|
|
6769
|
-
return
|
|
6783
|
+
let r = await new ke(n).fetchConfig(), i = await Bo(e.locale ?? "en");
|
|
6784
|
+
return Go(t, e.theme), Vo && Wo(), new Promise((a, s) => {
|
|
6770
6785
|
try {
|
|
6771
|
-
|
|
6786
|
+
Vo = be({ setup() {
|
|
6772
6787
|
let s = () => {
|
|
6773
6788
|
a({
|
|
6774
|
-
setTheme: (e) =>
|
|
6775
|
-
unmount:
|
|
6789
|
+
setTheme: (e) => Go(t, e),
|
|
6790
|
+
unmount: Wo
|
|
6776
6791
|
});
|
|
6777
6792
|
};
|
|
6778
6793
|
return () => o(No, {
|
|
@@ -6782,27 +6797,27 @@ async function Bo(e) {
|
|
|
6782
6797
|
translations: i,
|
|
6783
6798
|
onSelect: e.onSelect,
|
|
6784
6799
|
onError: e.onError,
|
|
6785
|
-
ref:
|
|
6800
|
+
ref: Ho,
|
|
6786
6801
|
onReady: s
|
|
6787
6802
|
});
|
|
6788
|
-
} }),
|
|
6803
|
+
} }), Vo.mount(t);
|
|
6789
6804
|
} catch (e) {
|
|
6790
6805
|
s(e);
|
|
6791
6806
|
}
|
|
6792
6807
|
});
|
|
6793
6808
|
}
|
|
6794
|
-
function
|
|
6795
|
-
|
|
6809
|
+
function Wo() {
|
|
6810
|
+
Vo && (Vo.unmount(), Vo = null, Ho.value = null);
|
|
6796
6811
|
}
|
|
6797
|
-
function
|
|
6812
|
+
function Go(e, t) {
|
|
6798
6813
|
t && (t.primaryColor && e.style.setProperty("--tpl-primary", t.primaryColor), t.borderRadius !== void 0 && (e.style.setProperty("--tpl-radius", `${t.borderRadius}px`), e.style.setProperty("--tpl-radius-sm", `${Math.max(0, t.borderRadius - 3)}px`), e.style.setProperty("--tpl-radius-lg", `${t.borderRadius + 4}px`)));
|
|
6799
6814
|
}
|
|
6800
|
-
var
|
|
6801
|
-
init:
|
|
6802
|
-
unmount:
|
|
6815
|
+
var Ko = {
|
|
6816
|
+
init: Uo,
|
|
6817
|
+
unmount: Wo
|
|
6803
6818
|
};
|
|
6804
|
-
typeof window < "u" && (window.TemplaticalMedia =
|
|
6819
|
+
typeof window < "u" && (window.TemplaticalMedia = Ko);
|
|
6805
6820
|
//#endregion
|
|
6806
|
-
export {
|
|
6821
|
+
export { Ko as default, Uo as init, Wo as unmount };
|
|
6807
6822
|
|
|
6808
6823
|
//# sourceMappingURL=media-library.js.map
|