@pronto-tools-and-more/components 14.44.0 → 14.45.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
@@ -120,7 +120,7 @@ var createBundleFilter = (bundleId) => {
|
|
120
120
|
}
|
121
121
|
return [];
|
122
122
|
};
|
123
|
-
var createCategoryFilter = (categoryId) => {
|
123
|
+
var createCategoryFilter = (categoryId, parentCategoryId = "nevermatch") => {
|
124
124
|
if (categoryId) {
|
125
125
|
return [
|
126
126
|
{
|
@@ -142,7 +142,7 @@ var createCategoryFilter = (categoryId) => {
|
|
142
142
|
},
|
143
143
|
{
|
144
144
|
parentId: {
|
145
|
-
value:
|
145
|
+
value: parentCategoryId
|
146
146
|
}
|
147
147
|
}
|
148
148
|
]
|
@@ -193,9 +193,10 @@ var createFilterFromProperties = ({
|
|
193
193
|
authorId,
|
194
194
|
categoryId,
|
195
195
|
bundleId,
|
196
|
-
taxonomy
|
196
|
+
taxonomy,
|
197
|
+
parentCategoryId
|
197
198
|
}) => {
|
198
|
-
const categoryFilter = createCategoryFilter(categoryId);
|
199
|
+
const categoryFilter = createCategoryFilter(categoryId, parentCategoryId);
|
199
200
|
const authorFilter = createAuthorFilter(authorId);
|
200
201
|
const bundleFilter = createBundleFilter(bundleId);
|
201
202
|
const propertiesFilter = createPropertiesFilter(properties);
|
@@ -215,6 +216,7 @@ var getArticleListDataSource = ({
|
|
215
216
|
properties,
|
216
217
|
authorId,
|
217
218
|
categoryId,
|
219
|
+
parentCategoryId,
|
218
220
|
bundleId,
|
219
221
|
collectionName,
|
220
222
|
limit,
|
@@ -269,6 +271,7 @@ var getArticleListDataSource = ({
|
|
269
271
|
properties,
|
270
272
|
authorId,
|
271
273
|
categoryId,
|
274
|
+
parentCategoryId,
|
272
275
|
bundleId,
|
273
276
|
taxonomy
|
274
277
|
});
|
@@ -369,6 +372,7 @@ var ArticleList = ({
|
|
369
372
|
render,
|
370
373
|
authorId,
|
371
374
|
categoryId,
|
375
|
+
parentCategoryId,
|
372
376
|
bundleId,
|
373
377
|
limit,
|
374
378
|
offset,
|
@@ -383,6 +387,7 @@ var ArticleList = ({
|
|
383
387
|
properties,
|
384
388
|
authorId,
|
385
389
|
categoryId,
|
390
|
+
parentCategoryId,
|
386
391
|
bundleId,
|
387
392
|
limit,
|
388
393
|
offset,
|
@@ -1,8 +1,9 @@
|
|
1
1
|
import type { ArticleListItemRenderer } from "../ArticleListItemRenderer/ArticleListItemRenderer.ts";
|
2
|
-
export declare const ArticleList: ({ properties, render, authorId, categoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, asContext, taxonomy, }: {
|
2
|
+
export declare const ArticleList: ({ properties, render, authorId, categoryId, parentCategoryId, bundleId, limit, offset, collectionName, noContentFound, bookmarks, contextId, asContext, taxonomy, }: {
|
3
3
|
properties?: any;
|
4
4
|
authorId?: string;
|
5
5
|
categoryId?: string;
|
6
|
+
parentCategoryId?: string;
|
6
7
|
bundleId?: string;
|
7
8
|
render: ArticleListItemRenderer;
|
8
9
|
limit?: number;
|
@@ -1,7 +1,8 @@
|
|
1
|
-
export declare const createFilterFromProperties: ({ properties, authorId, categoryId, bundleId, taxonomy, }: {
|
1
|
+
export declare const createFilterFromProperties: ({ properties, authorId, categoryId, bundleId, taxonomy, parentCategoryId, }: {
|
2
2
|
properties: any;
|
3
3
|
authorId?: string;
|
4
4
|
categoryId?: string;
|
5
|
+
parentCategoryId?: string;
|
5
6
|
bundleId?: string;
|
6
7
|
taxonomy?: any;
|
7
8
|
}) => any[];
|
@@ -1,7 +1,8 @@
|
|
1
|
-
export declare const getArticleListDataSource: ({ properties, authorId, categoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, asContext, taxonomy, }: {
|
1
|
+
export declare const getArticleListDataSource: ({ properties, authorId, categoryId, parentCategoryId, bundleId, collectionName, limit, offset, bookmarks, contextId, asContext, taxonomy, }: {
|
2
2
|
properties: any;
|
3
3
|
authorId: any;
|
4
4
|
categoryId: any;
|
5
|
+
parentCategoryId: any;
|
5
6
|
bundleId: any;
|
6
7
|
collectionName: any;
|
7
8
|
limit: any;
|