@pronto-tools-and-more/components 14.43.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
@@ -41,7 +41,7 @@ var ArticleAuthors = ({
41
41
  },
42
42
  type: "list",
43
43
  class: "data-custom-author-list",
44
- template: "horizontal"
44
+ template: "vertical"
45
45
  };
46
46
  return /* @__PURE__ */ React.createElement("div", { className: "ArticleAuthors" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
47
47
  };
@@ -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: categoryId
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,
@@ -398,7 +403,7 @@ var ArticleList = ({
398
403
  dataSource,
399
404
  type: "list",
400
405
  class: "data-custom-list",
401
- template: "horizontal",
406
+ template: "vertical",
402
407
  pagination: {
403
408
  suffix: "articles",
404
409
  text: {
@@ -570,7 +575,7 @@ var CategoryList = ({
570
575
  },
571
576
  type: "list",
572
577
  class: "data-custom-category-list",
573
- template: "horizontal"
578
+ template: "vertical"
574
579
  };
575
580
  return /* @__PURE__ */ React.createElement("div", { className: "CategoryList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
576
581
  };
@@ -709,7 +714,7 @@ var DigitalMagazineList = ({
709
714
  dataSource,
710
715
  type: "list",
711
716
  class: "data-custom-list",
712
- template: "horizontal",
717
+ template: "vertical",
713
718
  pagination: {
714
719
  suffix: "articles",
715
720
  text: {
@@ -1442,7 +1447,7 @@ var MenuItems2 = ({
1442
1447
  dataSource,
1443
1448
  type: "list",
1444
1449
  class: "data-custom-list",
1445
- template: "horizontal",
1450
+ template: "vertical",
1446
1451
  pagination: {
1447
1452
  suffix: "articles",
1448
1453
  text: {
@@ -2153,7 +2158,7 @@ var TagList = ({
2153
2158
  },
2154
2159
  type: "list",
2155
2160
  class: "data-custom-tag-list",
2156
- template: "horizontal"
2161
+ template: "vertical"
2157
2162
  };
2158
2163
  return /* @__PURE__ */ React.createElement("div", { className: "TagList" }, /* @__PURE__ */ React.createElement(JsonComponent, { json }));
2159
2164
  };
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pronto-tools-and-more/components",
3
- "version": "14.43.0",
3
+ "version": "14.45.0",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "types": "dist/main.d.ts",