@pronto-tools-and-more/components 14.13.0 → 14.15.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
@@ -188,6 +188,9 @@ var getArticleListDataSource = ({
|
|
188
188
|
asContext
|
189
189
|
}) => {
|
190
190
|
if (contextId) {
|
191
|
+
if (!contextId.startsWith("$context.")) {
|
192
|
+
throw new Error(`context id must start with $context.`);
|
193
|
+
}
|
191
194
|
const dataSource2 = {
|
192
195
|
type: "context",
|
193
196
|
data: contextId,
|
@@ -699,7 +702,8 @@ var DossierList = ({
|
|
699
702
|
render,
|
700
703
|
collectionName,
|
701
704
|
language,
|
702
|
-
id
|
705
|
+
id,
|
706
|
+
noContentFound
|
703
707
|
}) => {
|
704
708
|
const dataSource = getDossierDataSource({ collectionName, id });
|
705
709
|
const json = {
|
@@ -709,7 +713,8 @@ var DossierList = ({
|
|
709
713
|
type: "list",
|
710
714
|
class: "epaper-issues",
|
711
715
|
template: "grid",
|
712
|
-
language
|
716
|
+
language,
|
717
|
+
emptyMessage: noContentFound
|
713
718
|
};
|
714
719
|
return /* @__PURE__ */ React.createElement("div", { className: "DossierList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
715
720
|
};
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import { DossierListItemRenderer } from "../DossierListItemRenderer/DossierListItemRenderer.ts";
|
2
|
-
export declare const DossierList: ({ render, collectionName, language, id, }: {
|
2
|
+
export declare const DossierList: ({ render, collectionName, language, id, noContentFound, }: {
|
3
3
|
render: DossierListItemRenderer;
|
4
4
|
collectionName?: string;
|
5
5
|
language?: string;
|
6
6
|
id?: string;
|
7
|
+
noContentFound?: string;
|
7
8
|
}) => import("react").JSX.Element;
|