@pronto-tools-and-more/components 12.2.0 → 12.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +15 -10
- 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
|
];
|
@@ -525,7 +523,8 @@ var unrender5 = (element, renderElement) => {
|
|
525
523
|
};
|
526
524
|
};
|
527
525
|
var getDossierDataSource = ({
|
528
|
-
collectionName
|
526
|
+
collectionName,
|
527
|
+
id
|
529
528
|
}) => {
|
530
529
|
if (collectionName) {
|
531
530
|
return {
|
@@ -541,9 +540,14 @@ var getDossierDataSource = ({
|
|
541
540
|
}
|
542
541
|
return {
|
543
542
|
filter: {
|
544
|
-
|
545
|
-
|
546
|
-
|
543
|
+
AND: [
|
544
|
+
{
|
545
|
+
bundleType: {
|
546
|
+
value: "DOSSIER"
|
547
|
+
}
|
548
|
+
},
|
549
|
+
id ? { id: { value: id } } : void 0
|
550
|
+
]
|
547
551
|
},
|
548
552
|
sort: [],
|
549
553
|
type: "content",
|
@@ -553,9 +557,10 @@ var getDossierDataSource = ({
|
|
553
557
|
var DossierList = ({
|
554
558
|
render,
|
555
559
|
collectionName,
|
556
|
-
language
|
560
|
+
language,
|
561
|
+
id
|
557
562
|
}) => {
|
558
|
-
const dataSource = getDossierDataSource({ collectionName });
|
563
|
+
const dataSource = getDossierDataSource({ collectionName, id });
|
559
564
|
const json = {
|
560
565
|
render,
|
561
566
|
unrender: unrender5,
|
@@ -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;
|