@pristy/pristy-libvue 0.20.3 → 0.20.5
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/pristy-libvue.mjs +94 -90
- package/dist/pristy-libvue.umd.js +15 -15
- package/package.json +1 -1
package/dist/pristy-libvue.mjs
CHANGED
|
@@ -6564,98 +6564,96 @@ const yu = /* @__PURE__ */ eu(Iu, [["render", cu]]), Lt = eM.global.t;
|
|
|
6564
6564
|
class gu {
|
|
6565
6565
|
getIcon(e) {
|
|
6566
6566
|
let I;
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
}
|
|
6567
|
+
if (e.isFolder)
|
|
6568
|
+
I = "mimetype_folder";
|
|
6569
|
+
else if (e.isFile)
|
|
6570
|
+
if (e.content.mimeType.startsWith("image/"))
|
|
6571
|
+
I = "mimetype_image";
|
|
6572
|
+
else if (e.content.mimeType.startsWith("video/"))
|
|
6573
|
+
I = "mimetype_video";
|
|
6574
|
+
else
|
|
6575
|
+
switch (e.content.mimeType) {
|
|
6576
|
+
case "application/pdf":
|
|
6577
|
+
I = "mimetype_pdf";
|
|
6578
|
+
break;
|
|
6579
|
+
case "message/rfc822":
|
|
6580
|
+
I = "mimetype_eml";
|
|
6581
|
+
break;
|
|
6582
|
+
case "application/vnd.oasis.opendocument.text":
|
|
6583
|
+
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
6584
|
+
I = "collabora-text";
|
|
6585
|
+
break;
|
|
6586
|
+
case "application/vnd.ms-excel":
|
|
6587
|
+
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
6588
|
+
case "application/vnd.oasis.opendocument.spreadsheet":
|
|
6589
|
+
I = "collabora-sheet";
|
|
6590
|
+
break;
|
|
6591
|
+
case "application/vnd.oasis.opendocument.graphics":
|
|
6592
|
+
I = "collabora-draw";
|
|
6593
|
+
break;
|
|
6594
|
+
case "application/vnd.oasis.opendocument.presentation":
|
|
6595
|
+
case "application/vnd.ms-powerpoint":
|
|
6596
|
+
case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
6597
|
+
I = "collabora-presentation";
|
|
6598
|
+
break;
|
|
6599
|
+
default:
|
|
6600
|
+
I = "default";
|
|
6601
|
+
}
|
|
6602
|
+
else
|
|
6603
|
+
switch (e.nodeType) {
|
|
6604
|
+
case "st:site":
|
|
6605
|
+
I = "mimetype_espace";
|
|
6606
|
+
break;
|
|
6607
|
+
default:
|
|
6608
|
+
I = "default";
|
|
6609
|
+
}
|
|
6611
6610
|
return I;
|
|
6612
6611
|
}
|
|
6613
6612
|
getIconLabel(e) {
|
|
6614
6613
|
let I;
|
|
6615
|
-
|
|
6616
|
-
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
}
|
|
6614
|
+
if (e.isFolder)
|
|
6615
|
+
I = Lt("dossier");
|
|
6616
|
+
else if (e.isFile)
|
|
6617
|
+
if (e.content.mimeType.startsWith("image/"))
|
|
6618
|
+
I = Lt("fichier_image");
|
|
6619
|
+
else if (e.content.mimeType.startsWith("video/"))
|
|
6620
|
+
I = Lt("fichier_video");
|
|
6621
|
+
else
|
|
6622
|
+
switch (e.content.mimeType) {
|
|
6623
|
+
case "application/pdf":
|
|
6624
|
+
I = Lt("fichier_pdf");
|
|
6625
|
+
break;
|
|
6626
|
+
case "message/rfc822":
|
|
6627
|
+
I = Lt("fichier_eml");
|
|
6628
|
+
break;
|
|
6629
|
+
case "application/vnd.oasis.opendocument.text":
|
|
6630
|
+
case "application/vnd.openxmlformats-officedocument.wordprocessingml.document":
|
|
6631
|
+
I = Lt("fichier_texte");
|
|
6632
|
+
break;
|
|
6633
|
+
case "application/vnd.ms-excel":
|
|
6634
|
+
case "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":
|
|
6635
|
+
case "application/vnd.oasis.opendocument.spreadsheet":
|
|
6636
|
+
I = Lt("fichier_tableur");
|
|
6637
|
+
break;
|
|
6638
|
+
case "application/vnd.oasis.opendocument.graphics":
|
|
6639
|
+
I = Lt("fichier_dessin");
|
|
6640
|
+
break;
|
|
6641
|
+
case "application/vnd.oasis.opendocument.presentation":
|
|
6642
|
+
case "application/vnd.ms-powerpoint":
|
|
6643
|
+
case "application/vnd.openxmlformats-officedocument.presentationml.presentation":
|
|
6644
|
+
I = Lt("fichier_presentation");
|
|
6645
|
+
break;
|
|
6646
|
+
default:
|
|
6647
|
+
I = e.nodeType;
|
|
6648
|
+
}
|
|
6649
|
+
else
|
|
6650
|
+
switch (e.nodeType) {
|
|
6651
|
+
case "st:site":
|
|
6652
|
+
I = Lt("espace");
|
|
6653
|
+
break;
|
|
6654
|
+
default:
|
|
6655
|
+
I = e.nodeType;
|
|
6656
|
+
}
|
|
6659
6657
|
return I;
|
|
6660
6658
|
}
|
|
6661
6659
|
}
|
|
@@ -6932,7 +6930,7 @@ const Lu = new su(), Yu = Ie({
|
|
|
6932
6930
|
actions: {
|
|
6933
6931
|
reset() {
|
|
6934
6932
|
const t = me();
|
|
6935
|
-
this.language = "afts", this.userQuery = "", this.fullQuery = "", this.filterQueries = [...t.SEARCH_BASE_FILTER_QUERIES], this.facetQueries = [...t.SEARCH_FACET_QUERIES], this.facets = t.SEARCH_FACET, this.fields = [], this.context = null, this.entries = [], this.pagination = {};
|
|
6933
|
+
this.language = "afts", this.userQuery = "", this.fullQuery = "", this.filterQueries = [...t.SEARCH_BASE_FILTER_QUERIES], this.facetQueries = [...t.SEARCH_FACET_QUERIES], this.facets = [...t.SEARCH_FACET], this.fields = [], this.context = null, this.entries = [], this.pagination = {};
|
|
6936
6934
|
},
|
|
6937
6935
|
defineUserQuery(t) {
|
|
6938
6936
|
let I = me().SEARCH_USER_QUERY.replaceAll("%s", t);
|
|
@@ -6954,7 +6952,13 @@ const Lu = new su(), Yu = Ie({
|
|
|
6954
6952
|
paging: this.paging,
|
|
6955
6953
|
filterQueries: this.filterQueries.map((M) => ({ query: M.query })),
|
|
6956
6954
|
facetQueries: this.facetQueries,
|
|
6957
|
-
facetFields: {
|
|
6955
|
+
facetFields: {
|
|
6956
|
+
facets: this.facets.map((M) => ({
|
|
6957
|
+
field: M.field,
|
|
6958
|
+
mincount: M.mincount,
|
|
6959
|
+
label: M.label
|
|
6960
|
+
}))
|
|
6961
|
+
},
|
|
6958
6962
|
sort: [{ type: "FIELD", field: "score", ascending: !1 }],
|
|
6959
6963
|
facetFormat: "V2"
|
|
6960
6964
|
};
|