@pronto-tools-and-more/components 12.2.0 → 12.4.0
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/main.js +25 -11
- package/dist/parts/DossierList/DossierList.d.ts +2 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -79,10 +79,8 @@ var createBundleFilter = (bundleId) => {
|
|
|
79
79
|
if (bundleId) {
|
|
80
80
|
return [
|
|
81
81
|
{
|
|
82
|
-
|
|
83
|
-
value:
|
|
84
|
-
id: bundleId
|
|
85
|
-
}
|
|
82
|
+
bundleId: {
|
|
83
|
+
value: bundleId
|
|
86
84
|
}
|
|
87
85
|
}
|
|
88
86
|
];
|
|
@@ -524,8 +522,22 @@ var unrender5 = (element, renderElement) => {
|
|
|
524
522
|
content: final
|
|
525
523
|
};
|
|
526
524
|
};
|
|
525
|
+
var getAndFilter = ({ id }) => {
|
|
526
|
+
const and = [
|
|
527
|
+
{
|
|
528
|
+
bundleType: {
|
|
529
|
+
value: "DOSSIER"
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
];
|
|
533
|
+
if (id) {
|
|
534
|
+
and.push({ id: { value: id } });
|
|
535
|
+
}
|
|
536
|
+
return and;
|
|
537
|
+
};
|
|
527
538
|
var getDossierDataSource = ({
|
|
528
|
-
collectionName
|
|
539
|
+
collectionName,
|
|
540
|
+
id
|
|
529
541
|
}) => {
|
|
530
542
|
if (collectionName) {
|
|
531
543
|
return {
|
|
@@ -539,11 +551,10 @@ var getDossierDataSource = ({
|
|
|
539
551
|
}
|
|
540
552
|
};
|
|
541
553
|
}
|
|
554
|
+
const and = getAndFilter({ id });
|
|
542
555
|
return {
|
|
543
556
|
filter: {
|
|
544
|
-
|
|
545
|
-
value: "DOSSIER"
|
|
546
|
-
}
|
|
557
|
+
AND: and
|
|
547
558
|
},
|
|
548
559
|
sort: [],
|
|
549
560
|
type: "content",
|
|
@@ -553,9 +564,10 @@ var getDossierDataSource = ({
|
|
|
553
564
|
var DossierList = ({
|
|
554
565
|
render,
|
|
555
566
|
collectionName,
|
|
556
|
-
language
|
|
567
|
+
language,
|
|
568
|
+
id
|
|
557
569
|
}) => {
|
|
558
|
-
const dataSource = getDossierDataSource({ collectionName });
|
|
570
|
+
const dataSource = getDossierDataSource({ collectionName, id });
|
|
559
571
|
const json = {
|
|
560
572
|
render,
|
|
561
573
|
unrender: unrender5,
|
|
@@ -1551,7 +1563,9 @@ var Seo = ({
|
|
|
1551
1563
|
description,
|
|
1552
1564
|
title: `${title}${titlePostfix}`,
|
|
1553
1565
|
keywords,
|
|
1554
|
-
"google-site-verification": googleSiteVerification
|
|
1566
|
+
"google-site-verification": googleSiteVerification,
|
|
1567
|
+
lang: language,
|
|
1568
|
+
alternates
|
|
1555
1569
|
}
|
|
1556
1570
|
};
|
|
1557
1571
|
return /* @__PURE__ */ React.createElement(JsonComponent, { json });
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DossierListItemRenderer } from "../DossierListItemRenderer/DossierListItemRenderer.ts";
|
|
2
|
-
export declare const DossierList: ({ render, collectionName, language, }: {
|
|
2
|
+
export declare const DossierList: ({ render, collectionName, language, id, }: {
|
|
3
3
|
render: DossierListItemRenderer;
|
|
4
4
|
collectionName?: string;
|
|
5
5
|
language?: string;
|
|
6
|
+
id?: string;
|
|
6
7
|
}) => import("react").JSX.Element;
|