@pronto-tools-and-more/components 10.55.0 → 10.57.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
CHANGED
|
@@ -437,7 +437,7 @@ var dateHelper = (date, format, language = "de") => {
|
|
|
437
437
|
|
|
438
438
|
// src/parts/DossierList/DossierList.tsx
|
|
439
439
|
var unrender5 = (element, renderElement) => {
|
|
440
|
-
const { render, ...rest } = element;
|
|
440
|
+
const { render, language, ...rest } = element;
|
|
441
441
|
const isCollection = element.dataSource.type === "collection-content";
|
|
442
442
|
const contentKey = isCollection ? "'collection-content'" : "'content'";
|
|
443
443
|
const node = render({
|
|
@@ -445,8 +445,9 @@ var unrender5 = (element, renderElement) => {
|
|
|
445
445
|
description: `$functions.id($context, ${contentKey}, 'description')`,
|
|
446
446
|
imageSrc: `$functions.id($context, ${contentKey}, 'thumbnails', 'default')`,
|
|
447
447
|
slug: `$functions.id($context, ${contentKey}, 'properties', 'slug')`,
|
|
448
|
-
totalCount: 12
|
|
448
|
+
totalCount: 12,
|
|
449
449
|
// TODO use real total count once supported
|
|
450
|
+
language
|
|
450
451
|
});
|
|
451
452
|
const final = renderElement(node);
|
|
452
453
|
return {
|
|
@@ -482,7 +483,8 @@ var getDossierDataSource = ({
|
|
|
482
483
|
};
|
|
483
484
|
var DossierList = ({
|
|
484
485
|
render,
|
|
485
|
-
collectionName
|
|
486
|
+
collectionName,
|
|
487
|
+
language
|
|
486
488
|
}) => {
|
|
487
489
|
const dataSource = getDossierDataSource({ collectionName });
|
|
488
490
|
const json = {
|
|
@@ -491,7 +493,8 @@ var DossierList = ({
|
|
|
491
493
|
dataSource,
|
|
492
494
|
type: "list",
|
|
493
495
|
class: "epaper-issues",
|
|
494
|
-
template: "grid"
|
|
496
|
+
template: "grid",
|
|
497
|
+
language
|
|
495
498
|
};
|
|
496
499
|
return /* @__PURE__ */ React.createElement("div", { className: "DossierList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
|
497
500
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DossierListItemRenderer } from "../DossierListItemRenderer/DossierListItemRenderer.ts";
|
|
2
|
-
export declare const DossierList: ({ render, collectionName, }: {
|
|
2
|
+
export declare const DossierList: ({ render, collectionName, language, }: {
|
|
3
3
|
render: DossierListItemRenderer;
|
|
4
4
|
collectionName?: string;
|
|
5
|
+
language?: string;
|
|
5
6
|
}) => import("react").JSX.Element;
|