@porsche-design-system/components-vue 4.6.0-rc.2 → 4.6.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,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0),
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [4.6.0] - 2026-08-20
18
+
19
+ ## [4.6.0-rc.3] - 2026-08-19
20
+
21
+ ### Added
22
+
23
+ - **Testing**: the `testing` sub-package now provides a `Shadow` counterpart for every Testing Library query, so
24
+ elements rendered inside Shadow DOM can be queried directly. Eight query families (`AltText`, `DisplayValue`,
25
+ `LabelText`, `PlaceholderText`, `Role`, `TestId`, `Text`, `Title`) in six variants each, plus `screen`, `within`,
26
+ `deepQuerySelector` and `deepQuerySelectorAll`. The existing `getByRoleShadowed`, `getByLabelTextShadowed` and
27
+ `getByTextShadowed` helpers remain available.
28
+ ([#4492](https://github.com/porsche-design-system/porsche-design-system/pull/4492))
29
+
30
+ ### Changed
31
+
32
+ - **Testing**: the `testing` sub-package requires a DOM. Importing it where no DOM is available now throws an explicit
33
+ error on import. ([#4492](https://github.com/porsche-design-system/porsche-design-system/pull/4492))
34
+ - `Flyout`, `Modal`, `Sheet`, `Drilldown`: the `dismiss` event now carries a payload identifying how the component was
35
+ closed. The event detail changed from `void` to `{ reason: 'dismiss-button' | 'backdrop' | 'escape' }`, exported as
36
+ `FlyoutDismissEventDetail`, `ModalDismissEventDetail`, `SheetDismissEventDetail` and `DrilldownDismissEventDetail`.
37
+ ([#4675](https://github.com/porsche-design-system/porsche-design-system/pull/4675))
38
+ - `Popover`: the `dismiss` event now carries a payload identifying how the component was closed. The event detail
39
+ changed from `void` to `{ reason: 'outside-click' | 'focus-out' | 'escape' }`, exported as
40
+ `PopoverDismissEventDetail`. ([#4675](https://github.com/porsche-design-system/porsche-design-system/pull/4675))
41
+
17
42
  ## [4.6.0-rc.2] - 2026-08-13
18
43
 
19
44
  ### Added
@@ -18,10 +18,10 @@ declare const _default: typeof __VLS_export;
18
18
  export default _default;
19
19
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PDrilldownProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
20
  update: (value: CustomEvent<DrilldownUpdateEventDetail>) => any;
21
- dismiss: (value: CustomEvent<void>) => any;
21
+ dismiss: (value: CustomEvent<import("../types").DialogDismissEventDetail>) => any;
22
22
  }, string, import("vue").PublicProps, Readonly<PDrilldownProps> & Readonly<{
23
23
  onUpdate?: ((value: CustomEvent<DrilldownUpdateEventDetail>) => any) | undefined;
24
- onDismiss?: ((value: CustomEvent<void>) => any) | undefined;
24
+ onDismiss?: ((value: CustomEvent<import("../types").DialogDismissEventDetail>) => any) | undefined;
25
25
  }>, {
26
26
  open: boolean;
27
27
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -43,18 +43,18 @@ export type PFlyoutProps = {
43
43
  declare const _default: typeof __VLS_export;
44
44
  export default _default;
45
45
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PFlyoutProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
46
- dismiss: (value: CustomEvent<void>) => any;
46
+ dismiss: (value: CustomEvent<import("../types").DialogDismissEventDetail>) => any;
47
47
  motionHiddenEnd: (value: CustomEvent<TransitionEvent>) => any;
48
48
  motionVisibleEnd: (value: CustomEvent<TransitionEvent>) => any;
49
49
  }, string, import("vue").PublicProps, Readonly<PFlyoutProps> & Readonly<{
50
- onDismiss?: ((value: CustomEvent<void>) => any) | undefined;
50
+ onDismiss?: ((value: CustomEvent<import("../types").DialogDismissEventDetail>) => any) | undefined;
51
51
  onMotionHiddenEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
52
52
  onMotionVisibleEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
53
53
  }>, {
54
+ backdrop: FlyoutBackdrop;
54
55
  background: FlyoutBackground;
55
56
  open: boolean;
56
57
  position: FlyoutPosition;
57
- backdrop: FlyoutBackdrop;
58
58
  disableBackdropClick: boolean;
59
59
  footerBehavior: FlyoutFooterBehavior;
60
60
  fullscreen: BreakpointCustomizable<boolean>;
@@ -38,18 +38,18 @@ export type PModalProps = {
38
38
  declare const _default: typeof __VLS_export;
39
39
  export default _default;
40
40
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PModalProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
41
- dismiss: (value: CustomEvent<void>) => any;
41
+ dismiss: (value: CustomEvent<import("../types").DialogDismissEventDetail>) => any;
42
42
  motionHiddenEnd: (value: CustomEvent<TransitionEvent>) => any;
43
43
  motionVisibleEnd: (value: CustomEvent<TransitionEvent>) => any;
44
44
  }, string, import("vue").PublicProps, Readonly<PModalProps> & Readonly<{
45
- onDismiss?: ((value: CustomEvent<void>) => any) | undefined;
45
+ onDismiss?: ((value: CustomEvent<import("../types").DialogDismissEventDetail>) => any) | undefined;
46
46
  onMotionHiddenEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
47
47
  onMotionVisibleEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
48
48
  }>, {
49
+ backdrop: ModalBackdrop;
49
50
  background: ModalBackground;
50
51
  open: boolean;
51
52
  dismissButton: boolean;
52
- backdrop: ModalBackdrop;
53
53
  disableBackdropClick: boolean;
54
54
  fullscreen: BreakpointCustomizable<boolean>;
55
55
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -1,4 +1,4 @@
1
- import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection } from '../types';
1
+ import type { SelectedAriaAttributes, PopoverAriaAttribute, PopoverDirection, PopoverDismissEventDetail } from '../types';
2
2
  export type PPopoverProps = {
3
3
  /**
4
4
  * Sets ARIA attributes on the popover panel to improve accessibility for screen readers.
@@ -25,9 +25,9 @@ export type PPopoverProps = {
25
25
  declare const _default: typeof __VLS_export;
26
26
  export default _default;
27
27
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PPopoverProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
28
- dismiss: (value: CustomEvent<void>) => any;
28
+ dismiss: (value: CustomEvent<PopoverDismissEventDetail>) => any;
29
29
  }, string, import("vue").PublicProps, Readonly<PPopoverProps> & Readonly<{
30
- onDismiss?: ((value: CustomEvent<void>) => any) | undefined;
30
+ onDismiss?: ((value: CustomEvent<PopoverDismissEventDetail>) => any) | undefined;
31
31
  }>, {
32
32
  direction: PopoverDirection;
33
33
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
@@ -28,11 +28,11 @@ export type PSheetProps = {
28
28
  declare const _default: typeof __VLS_export;
29
29
  export default _default;
30
30
  declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<PSheetProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
31
- dismiss: (value: CustomEvent<void>) => any;
31
+ dismiss: (value: CustomEvent<import("../types").DialogDismissEventDetail>) => any;
32
32
  motionHiddenEnd: (value: CustomEvent<TransitionEvent>) => any;
33
33
  motionVisibleEnd: (value: CustomEvent<TransitionEvent>) => any;
34
34
  }, string, import("vue").PublicProps, Readonly<PSheetProps> & Readonly<{
35
- onDismiss?: ((value: CustomEvent<void>) => any) | undefined;
35
+ onDismiss?: ((value: CustomEvent<import("../types").DialogDismissEventDetail>) => any) | undefined;
36
36
  onMotionHiddenEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
37
37
  onMotionVisibleEnd?: ((value: CustomEvent<TransitionEvent>) => any) | undefined;
38
38
  }>, {
@@ -697,6 +697,10 @@ export type BreakpointValues<T> = {
697
697
  base: T;
698
698
  };
699
699
  export type BreakpointCustomizable<T> = T | BreakpointValues<T>;
700
+ export type DialogDismissReason = "dismiss-button" | "backdrop" | "escape";
701
+ export type DialogDismissEventDetail = {
702
+ reason: DialogDismissReason;
703
+ };
700
704
  declare const LINK_TARGETS: readonly [
701
705
  "_self",
702
706
  "_blank",
@@ -1129,6 +1133,7 @@ export type DrilldownAriaAttribute = (typeof DRILLDOWN_ARIA_ATTRIBUTES)[number];
1129
1133
  export type DrilldownUpdateEventDetail = {
1130
1134
  activeIdentifier: string | undefined;
1131
1135
  };
1136
+ export type DrilldownDismissEventDetail = DialogDismissEventDetail;
1132
1137
  export type DrilldownLinkTarget = LinkTarget;
1133
1138
  export type DrilldownLinkAriaAttribute = LinkAriaAttribute;
1134
1139
  declare const FIELDSET_LABEL_SIZES: readonly [
@@ -1188,6 +1193,7 @@ declare const FLYOUT_ARIA_ATTRIBUTES: readonly [
1188
1193
  export type FlyoutAriaAttribute = (typeof FLYOUT_ARIA_ATTRIBUTES)[number];
1189
1194
  export type FlyoutMotionVisibleEndEventDetail = TransitionEvent;
1190
1195
  export type FlyoutMotionHiddenEndEventDetail = TransitionEvent;
1196
+ export type FlyoutDismissEventDetail = DialogDismissEventDetail;
1191
1197
  export type FlyoutBackdrop = Backdrop;
1192
1198
  declare const HEADING_TAGS: readonly [
1193
1199
  "h1",
@@ -1417,6 +1423,7 @@ export type ModalBackground = (typeof MODAL_BACKGROUNDS)[number];
1417
1423
  export type ModalBackdrop = Backdrop;
1418
1424
  export type ModalMotionVisibleEndEventDetail = TransitionEvent;
1419
1425
  export type ModalMotionHiddenEndEventDetail = TransitionEvent;
1426
+ export type ModalDismissEventDetail = DialogDismissEventDetail;
1420
1427
  declare const MODEL_SIGNATURES_MANIFEST: {
1421
1428
  "718": {
1422
1429
  src: string;
@@ -1539,6 +1546,9 @@ declare const POPOVER_ARIA_ATTRIBUTES: readonly [
1539
1546
  "aria-label"
1540
1547
  ];
1541
1548
  export type PopoverAriaAttribute = (typeof POPOVER_ARIA_ATTRIBUTES)[number];
1549
+ export type PopoverDismissEventDetail = {
1550
+ reason: "outside-click" | "focus-out" | "escape";
1551
+ };
1542
1552
  declare const GROUP_DIRECTIONS: readonly [
1543
1553
  "row",
1544
1554
  "column"
@@ -1587,6 +1597,7 @@ declare const SHEET_BACKGROUNDS: readonly [
1587
1597
  export type SheetBackground = (typeof SHEET_BACKGROUNDS)[number];
1588
1598
  export type SheetMotionVisibleEndEventDetail = TransitionEvent;
1589
1599
  export type SheetMotionHiddenEndEventDetail = TransitionEvent;
1600
+ export type SheetDismissEventDetail = DialogDismissEventDetail;
1590
1601
  declare const SPINNER_COLORS: readonly [
1591
1602
  "primary",
1592
1603
  "inherit"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@porsche-design-system/components-vue",
3
- "version": "4.6.0-rc.2",
3
+ "version": "4.6.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",
@@ -21,7 +21,7 @@
21
21
  "url": "https://github.com/porsche-design-system/porsche-design-system"
22
22
  },
23
23
  "dependencies": {
24
- "@porsche-design-system/components-js": "4.6.0-rc.2"
24
+ "@porsche-design-system/components-js": "4.6.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "ag-grid-enterprise": ">= 36.0.0 <37.0.0",
@@ -15,11 +15,11 @@ Prefer Porsche Design System components and tokens for new UI, even when the use
15
15
 
16
16
  This skill currently covers components, global stylesheets and theming, tokens, and styling integrations. It does not yet include complete getting-started, setup, and installation guidance; the v3-to-v4 migration guide; the changelog; partials; patterns and templates; the AG Grid theme; or the Storefront’s Must Know and Help sections.
17
17
 
18
- Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.6.0-rc.2`; prefer the [exact-version Porsche Design System Storefront](https://designsystem.porsche.com/v4.6.0-rc.2/). Major-version URLs such as `/v4/` always serve the latest v4 release and may describe APIs or setup introduced after the installed version. Use them only as a fallback and verify relevant details against the installed package.
18
+ Before using documentation outside this skill or the installed package, match it to the installed PDS version. This skill was generated for `4.6.0`; prefer the [exact-version Porsche Design System Storefront](https://designsystem.porsche.com/v4.6.0/). Major-version URLs such as `/v4/` always serve the latest v4 release and may describe APIs or setup introduced after the installed version. Use them only as a fallback and verify relevant details against the installed package.
19
19
 
20
20
  For runnable patterns and templates, consult the [Porsche Design System examples repository](https://github.com/porsche-design-system/examples), selecting a release tag or commit that matches the installed package instead of assuming its default branch is compatible. For release-specific changes, read `../../CHANGELOG.md`.
21
21
 
22
- For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.6.0-rc.2/packages/components/src/components) under the repository's `packages/components/src/components/<component>` directory. Do not use the default branch, which may represent a newer release.
22
+ For exact API facts, inspect the installed typings and metadata first. When readable implementation details are necessary, use the [exact-version component source](https://github.com/porsche-design-system/porsche-design-system/tree/v4.6.0/packages/components/src/components) under the repository's `packages/components/src/components/<component>` directory. Do not use the default branch, which may represent a newer release.
23
23
 
24
24
  For deployed browser behavior, inspect component requests in the Network panel. Treat these minified, content-hashed CDN artifacts as a debugging fallback; use the exact-version repository source for readable implementation details.
25
25
 
@@ -92,7 +92,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
92
92
 
93
93
  | Event | Type | Description |
94
94
  | --- | --- | --- |
95
- | `dismiss` | `CustomEvent<void>` | Emitted when the user closes the drilldown via the close button or Escape key. |
95
+ | `dismiss` | `CustomEvent<DrilldownDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' }` | Emitted when the user closes the drilldown via the dismiss button, backdrop click, or Escape key. The event detail identifies which of the three was used. |
96
96
  | `update` | `CustomEvent<DrilldownUpdateEventDetail>`<br>`{ activeIdentifier: string | undefined }` | Emitted when the active navigation level changes, with the new `activeIdentifier` in the event detail. |
97
97
 
98
98
  ### Controlled properties
@@ -95,7 +95,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
95
95
 
96
96
  | Event | Type | Description |
97
97
  | --- | --- | --- |
98
- | `dismiss` | `CustomEvent<void>` | Emitted when the user closes the flyout via the close button, backdrop click, or Escape key. |
98
+ | `dismiss` | `CustomEvent<FlyoutDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' }` | Emitted when the user closes the flyout via the dismiss button, backdrop click, or Escape key. The event detail identifies which of the three was used. |
99
99
  | `motionHiddenEnd` | `CustomEvent<FlyoutMotionHiddenEndEventDetail>`<br>`TransitionEvent` | Emitted after the flyout's close transition completes and the panel is fully hidden. |
100
100
  | `motionVisibleEnd` | `CustomEvent<FlyoutMotionVisibleEndEventDetail>`<br>`TransitionEvent` | Emitted after the flyout's open transition completes and the panel is fully visible. |
101
101
 
@@ -102,7 +102,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
102
102
 
103
103
  | Event | Type | Description |
104
104
  | --- | --- | --- |
105
- | `dismiss` | `CustomEvent<void>` | Emitted when the user closes the modal via the dismiss button, backdrop click, or Escape key. |
105
+ | `dismiss` | `CustomEvent<ModalDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' }` | Emitted when the user closes the modal via the dismiss button, backdrop click, or Escape key. The event detail identifies which of the three was used. |
106
106
  | `motionHiddenEnd` | `CustomEvent<ModalMotionHiddenEndEventDetail>`<br>`TransitionEvent` | Emitted after the modal's close transition completes and the dialog is fully hidden. |
107
107
  | `motionVisibleEnd` | `CustomEvent<ModalMotionVisibleEndEventDetail>`<br>`TransitionEvent` | Emitted after the modal's open transition completes and the dialog is fully visible. |
108
108
 
@@ -85,7 +85,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
85
85
 
86
86
  | Event | Type | Description |
87
87
  | --- | --- | --- |
88
- | `dismiss` | `CustomEvent<void>` | Emitted in controlled mode when the user requests to close the popover via the Escape key, an outside click, or when keyboard focus leaves the popover (Tab / Shift+Tab). |
88
+ | `dismiss` | `CustomEvent<PopoverDismissEventDetail>`<br>`{ reason: 'outside-click' | 'focus-out' | 'escape' }` | Emitted in controlled mode when the user requests to close the popover via the Escape key, an outside click, or when keyboard focus leaves the popover (Tab / Shift+Tab). The event detail identifies which of the three was used. |
89
89
 
90
90
  ### Controlled properties
91
91
 
@@ -95,7 +95,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
95
95
 
96
96
  | Event | Type | Description |
97
97
  | --- | --- | --- |
98
- | `dismiss` | `CustomEvent<void>` | Emitted when the user dismisses the sheet via the close button, backdrop click, or Escape key. |
98
+ | `dismiss` | `CustomEvent<SheetDismissEventDetail>`<br>`{ reason: 'dismiss-button' | 'backdrop' | 'escape' }` | Emitted when the user closes the sheet via the dismiss button, backdrop click, or Escape key. The event detail identifies which of the three was used. |
99
99
  | `motionHiddenEnd` | `CustomEvent<SheetMotionHiddenEndEventDetail>`<br>`TransitionEvent` | Emitted after the sheet's close transition has fully completed and the panel is hidden. |
100
100
  | `motionVisibleEnd` | `CustomEvent<SheetMotionVisibleEndEventDetail>`<br>`TransitionEvent` | Emitted after the sheet's open transition has fully completed and the panel is visible. |
101
101
 
@@ -86,7 +86,7 @@ See [accessibility integration examples](./accessibility.md) for paired anti-pat
86
86
 
87
87
  | Event | Type | Description |
88
88
  | --- | --- | --- |
89
- | `update` | `CustomEvent<TableUpdateEventDetail>`<br>`{ id: string; active?: boolean; direction?: Direction }` | Emitted when the user clicks a sortable column header, carrying the new sort configuration in the event detail. |
89
+ | `update` | `CustomEvent<TableUpdateEventDetail>`<br>`{ id: string; active?: boolean; direction?: 'asc' | 'desc' }` | Emitted when the user clicks a sortable column header, carrying the new sort configuration in the event detail. |
90
90
 
91
91
  ### Slots
92
92