@porsche-design-system/components-react 3.25.0-rc.1 → 3.25.1-rc.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/CHANGELOG.md CHANGED
@@ -14,6 +14,15 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ### [Unreleased]
16
16
 
17
+ ### [3.25.1-rc.0] - 2025-01-23
18
+
19
+ #### Fixed
20
+
21
+ - `Carousel`: throws error when object-like string is passed by `pagination`
22
+ ([#3715](https://github.com/porsche-design-system/porsche-design-system/pull/3715))
23
+
24
+ ### [3.25.0] - 2025-01-23
25
+
17
26
  ### [3.25.0-rc.1] - 2025-01-22
18
27
 
19
28
  #### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-react",
3
- "version": "3.25.0-rc.1",
3
+ "version": "3.25.1-rc.0",
4
4
  "description": "Porsche Design System is a component library designed to help developers create the best experience for software or services distributed by Dr. Ing. h.c. F. Porsche AG.",
5
5
  "keywords": [
6
6
  "porsche",
@@ -17,7 +17,7 @@
17
17
  "license": "SEE LICENSE IN LICENSE",
18
18
  "homepage": "https://designsystem.porsche.com",
19
19
  "dependencies": {
20
- "@porsche-design-system/components-js": "3.25.0-rc.1"
20
+ "@porsche-design-system/components-js": "3.25.1-rc.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "ag-grid-community": ">= 32.0.0 <33.0.0",
@@ -28,13 +28,11 @@ class DSRCarousel extends react.Component {
28
28
  btnNext;
29
29
  paginationEl;
30
30
  slides = [];
31
- get parsedSlidesPerPage() {
32
- }
33
31
  get splideSlides() {
34
32
  return this.props.splide.Components.Elements.slides;
35
33
  }
36
34
  get hasNavigation() {
37
- return this.props.parsedSlidesPerPage === 'auto' || this.props.amountOfPages > 1;
35
+ return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
38
36
  }
39
37
  render() {
40
38
  const { children, namedSlotChildren, otherChildren } = splitChildren.splitChildren(this.props.children);
@@ -64,7 +62,8 @@ class DSRCarousel extends react.Component {
64
62
  (this.props.heading ? (jsxRuntime.jsx("h2", { className: "heading", id: headingId, children: this.props.heading })) : (jsxRuntime.jsx("div", { className: "heading", id: headingId, children: jsxRuntime.jsx("slot", { name: "heading" }) }))), hasDescriptionPropOrSlot && (this.props.description ? jsxRuntime.jsx("p", { children: this.props.description }) : jsxRuntime.jsx("slot", { name: "description" })), hasControlsSlot && jsxRuntime.jsx("slot", { name: "controls" }), jsxRuntime.jsxs("div", { className: "nav", children: [this.props.skipLinkTarget && (jsxRuntime.jsx(linkPure_wrapper.PLinkPure, { href: this.props.skipLinkTarget, theme: this.props.theme, icon: "arrow-last", className: "btn skip-link", alignLabel: "start", hideLabel: true, children: "Skip carousel entries" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { ...btnProps, icon: "arrow-left" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsxRuntime.jsx(buttonPure_wrapper.PButtonPure, { ...btnProps, icon: "arrow-right" }))] })] }), jsxRuntime.jsx("div", { id: "splide", className: "splide", ...utilsEntry.parseAndGetAriaAttributes({
65
63
  'aria-labelledby': hasHeadingPropOrSlot && !this.props.aria ? headingId : undefined,
66
64
  ...utilsEntry.parseAndGetAriaAttributes(this.props.aria),
67
- }), children: jsxRuntime.jsx("div", { className: "splide__track", children: jsxRuntime.jsx("div", { className: "splide__list", children: otherChildren.map((_, i) => (jsxRuntime.jsx("div", { className: "splide__slide", tabIndex: 0, children: jsxRuntime.jsx("slot", { name: `slide-${i}` }) }, i))) }) }) }), (this.props.disablePagination ? this.props.disablePagination !== true : this.props.pagination) && (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsxRuntime.jsx("div", { className: "pagination-container", "aria-hidden": "true", children: jsxRuntime.jsx("div", { className: "pagination" }) }))] })] }), this.props.children] }));
65
+ }), children: jsxRuntime.jsx("div", { className: "splide__track", children: jsxRuntime.jsx("div", { className: "splide__list", children: otherChildren.map((_, i) => (jsxRuntime.jsx("div", { className: "splide__slide", tabIndex: 0, children: jsxRuntime.jsx("slot", { name: `slide-${i}` }) }, i))) }) }) }), (this.props.disablePagination ? this.props.disablePagination !== true : this.props.pagination) &&
66
+ (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsxRuntime.jsx("div", { className: "pagination-container", "aria-hidden": "true", children: jsxRuntime.jsx("div", { className: "pagination" }) }))] })] }), this.props.children] }));
68
67
  }
69
68
  getPageCount = () => (this.props.focusOnCenterSlide ? this.slides.length : this.props.amountOfPages);
70
69
  }
@@ -26,13 +26,11 @@ class DSRCarousel extends Component {
26
26
  btnNext;
27
27
  paginationEl;
28
28
  slides = [];
29
- get parsedSlidesPerPage() {
30
- }
31
29
  get splideSlides() {
32
30
  return this.props.splide.Components.Elements.slides;
33
31
  }
34
32
  get hasNavigation() {
35
- return this.props.parsedSlidesPerPage === 'auto' || this.props.amountOfPages > 1;
33
+ return this.props.slidesPerPage === 'auto' || this.props.amountOfPages > 1;
36
34
  }
37
35
  render() {
38
36
  const { children, namedSlotChildren, otherChildren } = splitChildren(this.props.children);
@@ -62,7 +60,8 @@ class DSRCarousel extends Component {
62
60
  (this.props.heading ? (jsx("h2", { className: "heading", id: headingId, children: this.props.heading })) : (jsx("div", { className: "heading", id: headingId, children: jsx("slot", { name: "heading" }) }))), hasDescriptionPropOrSlot && (this.props.description ? jsx("p", { children: this.props.description }) : jsx("slot", { name: "description" })), hasControlsSlot && jsx("slot", { name: "controls" }), jsxs("div", { className: "nav", children: [this.props.skipLinkTarget && (jsx(PLinkPure, { href: this.props.skipLinkTarget, theme: this.props.theme, icon: "arrow-last", className: "btn skip-link", alignLabel: "start", hideLabel: true, children: "Skip carousel entries" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx(PButtonPure, { ...btnProps, icon: "arrow-left" })), (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx(PButtonPure, { ...btnProps, icon: "arrow-right" }))] })] }), jsx("div", { id: "splide", className: "splide", ...parseAndGetAriaAttributes({
63
61
  'aria-labelledby': hasHeadingPropOrSlot && !this.props.aria ? headingId : undefined,
64
62
  ...parseAndGetAriaAttributes(this.props.aria),
65
- }), children: jsx("div", { className: "splide__track", children: jsx("div", { className: "splide__list", children: otherChildren.map((_, i) => (jsx("div", { className: "splide__slide", tabIndex: 0, children: jsx("slot", { name: `slide-${i}` }) }, i))) }) }) }), (this.props.disablePagination ? this.props.disablePagination !== true : this.props.pagination) && (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx("div", { className: "pagination-container", "aria-hidden": "true", children: jsx("div", { className: "pagination" }) }))] })] }), this.props.children] }));
63
+ }), children: jsx("div", { className: "splide__track", children: jsx("div", { className: "splide__list", children: otherChildren.map((_, i) => (jsx("div", { className: "splide__slide", tabIndex: 0, children: jsx("slot", { name: `slide-${i}` }) }, i))) }) }) }), (this.props.disablePagination ? this.props.disablePagination !== true : this.props.pagination) &&
64
+ (this.props.slidesPerPage === 'auto' || typeof this.props.slidesPerPage === 'object' || this.props.slidesPerPage < otherChildren.length) && (jsx("div", { className: "pagination-container", "aria-hidden": "true", children: jsx("div", { className: "pagination" }) }))] })] }), this.props.children] }));
66
65
  }
67
66
  getPageCount = () => (this.props.focusOnCenterSlide ? this.slides.length : this.props.amountOfPages);
68
67
  }
@@ -16,7 +16,6 @@ export declare class DSRCarousel extends Component<any> {
16
16
  private btnNext;
17
17
  private paginationEl;
18
18
  private slides;
19
- private get parsedSlidesPerPage();
20
19
  private get splideSlides();
21
20
  private get hasNavigation();
22
21
  render(): JSX.Element;