@pronto-tools-and-more/components 12.5.0 → 12.7.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main.js +43 -7
- package/dist/parts/Components/Components.d.ts +2 -0
- package/dist/parts/GetArticleListDataSource/GetArticleListDataSource.d.ts +8 -2
- package/dist/parts/IBookmarkInfo/IBookmarkInfo.d.ts +2 -0
- package/dist/parts/Language/Language.d.ts +7 -0
- package/dist/parts/LanguageMapping/LanguageMapping.d.ts +7 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
@@ -169,9 +169,17 @@ var getArticleListDataSource = ({
|
|
169
169
|
}) => {
|
170
170
|
if (bookmarks) {
|
171
171
|
const dataSource2 = {
|
172
|
-
|
173
|
-
|
174
|
-
|
172
|
+
type: "content",
|
173
|
+
filter: {
|
174
|
+
AND: [
|
175
|
+
{
|
176
|
+
id: {
|
177
|
+
operation: "REGEX",
|
178
|
+
value: "$functions.bookmarkIdString($context.bookmarkIds)"
|
179
|
+
}
|
180
|
+
}
|
181
|
+
]
|
182
|
+
}
|
175
183
|
};
|
176
184
|
return dataSource2;
|
177
185
|
}
|
@@ -338,16 +346,24 @@ var BaseBookmarkButton = ({
|
|
338
346
|
children,
|
339
347
|
className
|
340
348
|
}) => {
|
341
|
-
const
|
342
|
-
const fnString = `globalThis.toggleBookmarkArticle(${stringifiedInfo})`;
|
349
|
+
const fnString = `globalThis.toggleBookmarkArticle(this)`;
|
343
350
|
const dataBookmarked = `$functions.isBookmarked(${info.id})`;
|
344
351
|
return /* @__PURE__ */ React.createElement(
|
345
352
|
"button",
|
346
353
|
{
|
347
354
|
className,
|
348
355
|
onClick: fnString,
|
349
|
-
"data-
|
350
|
-
"data-
|
356
|
+
"data-bookmarked": dataBookmarked,
|
357
|
+
"data-bookmark-article-id": info.id,
|
358
|
+
"data-bookmark-article-name": info.name,
|
359
|
+
"data-bookmark-article-description": info.description,
|
360
|
+
"data-bookmark-article-imageSrc": info.imageSrc,
|
361
|
+
"data-bookmark-article-slug": info.slug,
|
362
|
+
"data-bookmark-article-metadataVideoPodcast": info.metadataVideoPodcast,
|
363
|
+
"data-bookmark-article-readTime": info.readTime,
|
364
|
+
"data-bookmark-article-publicationDate": info.publicationDate,
|
365
|
+
"data-bookmark-article-primaryCategoryId": info.primaryCategoryId,
|
366
|
+
"data-bookmark-article-primaryCategoryName": info.primaryCategoryName
|
351
367
|
},
|
352
368
|
...children
|
353
369
|
);
|
@@ -987,6 +1003,24 @@ var HighlightedEPaper = ({ ePaperId }) => {
|
|
987
1003
|
return /* @__PURE__ */ React.createElement("div", { className: "HighlightedEPaper" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
|
988
1004
|
};
|
989
1005
|
|
1006
|
+
// src/parts/Language/Language.ts
|
1007
|
+
var Language = {
|
1008
|
+
De: "de",
|
1009
|
+
En: "en",
|
1010
|
+
Fr: "fr",
|
1011
|
+
Es: "es",
|
1012
|
+
It: "it"
|
1013
|
+
};
|
1014
|
+
|
1015
|
+
// src/parts/LanguageMapping/LanguageMapping.ts
|
1016
|
+
var LanguageMapping = {
|
1017
|
+
de: "de-de",
|
1018
|
+
en: "en-gb",
|
1019
|
+
fr: "fr-fr",
|
1020
|
+
es: "es-es",
|
1021
|
+
it: "it-it"
|
1022
|
+
};
|
1023
|
+
|
990
1024
|
// src/parts/LanguageRegistry/LanguageRegistry.ts
|
991
1025
|
var createLanguageRegistry = () => {
|
992
1026
|
const languages = /* @__PURE__ */ Object.create(null);
|
@@ -1661,6 +1695,8 @@ export {
|
|
1661
1695
|
Heading,
|
1662
1696
|
HighlightedEPaper,
|
1663
1697
|
JsonComponent,
|
1698
|
+
Language,
|
1699
|
+
LanguageMapping,
|
1664
1700
|
Link,
|
1665
1701
|
Login,
|
1666
1702
|
MaskIcon,
|
@@ -43,6 +43,8 @@ export * from "../ISearchResultComponent/ISearchResultComponent.tsx";
|
|
43
43
|
export * from "../ISocialLink/ISocialLink.ts";
|
44
44
|
export * from "../ITagItem/ITagItem.ts";
|
45
45
|
export * from "../JsonComponent/JsonComponent.tsx";
|
46
|
+
export * from "../Language/Language.ts";
|
47
|
+
export * from "../LanguageMapping/LanguageMapping.ts";
|
46
48
|
export * from "../LanguageRegistry/LanguageRegistry.ts";
|
47
49
|
export * from "../Link/Link.tsx";
|
48
50
|
export * from "../Login/Login.tsx";
|
@@ -8,9 +8,15 @@ export declare const getArticleListDataSource: ({ properties, authorId, category
|
|
8
8
|
offset: any;
|
9
9
|
bookmarks: any;
|
10
10
|
}) => {
|
11
|
-
data: string;
|
12
11
|
type: string;
|
13
|
-
|
12
|
+
filter: {
|
13
|
+
AND: {
|
14
|
+
id: {
|
15
|
+
operation: string;
|
16
|
+
value: string;
|
17
|
+
};
|
18
|
+
}[];
|
19
|
+
};
|
14
20
|
} | {
|
15
21
|
type: string;
|
16
22
|
filter: {
|