@porsche-design-system/components-angular 4.5.0 → 4.6.0-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.
Files changed (283) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/bin/pds-skill.js +259 -0
  3. package/fesm2022/porsche-design-system-components-angular.mjs.map +1 -1
  4. package/package.json +5 -2
  5. package/skill/SKILL.md +124 -0
  6. package/skill/references/components/p-accordion/examples/Default.ts +26 -0
  7. package/skill/references/components/p-accordion/examples/InteractiveElementsInSummary.ts +30 -0
  8. package/skill/references/components/p-accordion/examples/StickySummary.ts +26 -0
  9. package/skill/references/components/p-accordion/p-accordion.md +95 -0
  10. package/skill/references/components/p-ai-tag/examples/Default.ts +13 -0
  11. package/skill/references/components/p-ai-tag/examples/WithinCheckbox.ts +33 -0
  12. package/skill/references/components/p-ai-tag/examples/WithinFormLabel.ts +40 -0
  13. package/skill/references/components/p-ai-tag/examples/WithinImage.ts +16 -0
  14. package/skill/references/components/p-ai-tag/examples/WithinInputSearch.ts +15 -0
  15. package/skill/references/components/p-ai-tag/examples/WithinRadioGroup.ts +32 -0
  16. package/skill/references/components/p-ai-tag/examples/WithinTable.ts +94 -0
  17. package/skill/references/components/p-ai-tag/examples/WithinText.ts +17 -0
  18. package/skill/references/components/p-ai-tag/p-ai-tag.md +47 -0
  19. package/skill/references/components/p-banner/examples/Customization.ts +37 -0
  20. package/skill/references/components/p-banner/examples/Default.ts +26 -0
  21. package/skill/references/components/p-banner/p-banner.md +92 -0
  22. package/skill/references/components/p-button/examples/Default.ts +15 -0
  23. package/skill/references/components/p-button/examples/Form.ts +26 -0
  24. package/skill/references/components/p-button/examples/FormAttribute.ts +30 -0
  25. package/skill/references/components/p-button/p-button.md +118 -0
  26. package/skill/references/components/p-button-pure/examples/CustomClickableArea.ts +15 -0
  27. package/skill/references/components/p-button-pure/examples/Default.ts +15 -0
  28. package/skill/references/components/p-button-pure/examples/Form.ts +26 -0
  29. package/skill/references/components/p-button-pure/examples/FormAttribute.ts +30 -0
  30. package/skill/references/components/p-button-pure/p-button-pure.md +118 -0
  31. package/skill/references/components/p-button-tile/examples/ColorScheme.ts +18 -0
  32. package/skill/references/components/p-button-tile/examples/Default.ts +21 -0
  33. package/skill/references/components/p-button-tile/examples/FooterSlot.ts +32 -0
  34. package/skill/references/components/p-button-tile/examples/Hyphens.ts +38 -0
  35. package/skill/references/components/p-button-tile/examples/UiBehaviour.ts +44 -0
  36. package/skill/references/components/p-button-tile/p-button-tile.md +115 -0
  37. package/skill/references/components/p-canvas/examples/Default.ts +13 -0
  38. package/skill/references/components/p-canvas/p-canvas.md +91 -0
  39. package/skill/references/components/p-carousel/examples/Default.ts +26 -0
  40. package/skill/references/components/p-carousel/examples/DynamicSlides.ts +37 -0
  41. package/skill/references/components/p-carousel/examples/FlexibleWidths.ts +32 -0
  42. package/skill/references/components/p-carousel/examples/FocusOnCenterSlide.ts +65 -0
  43. package/skill/references/components/p-carousel/examples/Intl.ts +23 -0
  44. package/skill/references/components/p-carousel/examples/JumpToSlide.ts +50 -0
  45. package/skill/references/components/p-carousel/p-carousel.md +142 -0
  46. package/skill/references/components/p-checkbox/examples/Default.ts +13 -0
  47. package/skill/references/components/p-checkbox/examples/Form.ts +31 -0
  48. package/skill/references/components/p-checkbox/examples/Indeterminate.ts +16 -0
  49. package/skill/references/components/p-checkbox/examples/Slots.ts +57 -0
  50. package/skill/references/components/p-checkbox/examples/WrappedLabel.ts +27 -0
  51. package/skill/references/components/p-checkbox/p-checkbox.md +122 -0
  52. package/skill/references/components/p-crest/examples/CustomClickableArea.ts +13 -0
  53. package/skill/references/components/p-crest/examples/Default.ts +13 -0
  54. package/skill/references/components/p-crest/examples/Link.ts +13 -0
  55. package/skill/references/components/p-crest/p-crest.md +65 -0
  56. package/skill/references/components/p-display/examples/Color.ts +15 -0
  57. package/skill/references/components/p-display/examples/Default.ts +15 -0
  58. package/skill/references/components/p-display/examples/Semantics.ts +21 -0
  59. package/skill/references/components/p-display/examples/Size.ts +15 -0
  60. package/skill/references/components/p-display/examples/SizeResponsive.ts +15 -0
  61. package/skill/references/components/p-display/p-display.md +78 -0
  62. package/skill/references/components/p-divider/examples/Default.ts +13 -0
  63. package/skill/references/components/p-divider/examples/Responsive.ts +15 -0
  64. package/skill/references/components/p-divider/examples/Vertical.ts +15 -0
  65. package/skill/references/components/p-divider/p-divider.md +49 -0
  66. package/skill/references/components/p-drilldown/examples/CustomContent.ts +166 -0
  67. package/skill/references/components/p-drilldown/examples/Default.ts +119 -0
  68. package/skill/references/components/p-drilldown/p-drilldown.md +168 -0
  69. package/skill/references/components/p-fieldset/examples/Default.ts +15 -0
  70. package/skill/references/components/p-fieldset/examples/Required.ts +16 -0
  71. package/skill/references/components/p-fieldset/examples/SlottedLabel.ts +18 -0
  72. package/skill/references/components/p-fieldset/examples/SlottedMessage.ts +18 -0
  73. package/skill/references/components/p-fieldset/p-fieldset.md +88 -0
  74. package/skill/references/components/p-flag/examples/Default.ts +13 -0
  75. package/skill/references/components/p-flag/examples/ResponsiveSize.ts +13 -0
  76. package/skill/references/components/p-flag/examples/Size.ts +16 -0
  77. package/skill/references/components/p-flag/examples/SizeCssVar.ts +13 -0
  78. package/skill/references/components/p-flag/p-flag.md +68 -0
  79. package/skill/references/components/p-flyout/examples/CustomStyling.ts +47 -0
  80. package/skill/references/components/p-flyout/examples/Default.ts +44 -0
  81. package/skill/references/components/p-flyout/examples/Form.ts +47 -0
  82. package/skill/references/components/p-flyout/examples/StickyTop.ts +44 -0
  83. package/skill/references/components/p-flyout/p-flyout.md +128 -0
  84. package/skill/references/components/p-heading/examples/Color.ts +15 -0
  85. package/skill/references/components/p-heading/examples/Default.ts +15 -0
  86. package/skill/references/components/p-heading/examples/Semantics.ts +21 -0
  87. package/skill/references/components/p-heading/p-heading.md +78 -0
  88. package/skill/references/components/p-icon/examples/Color.ts +16 -0
  89. package/skill/references/components/p-icon/examples/ColorCssVar.ts +13 -0
  90. package/skill/references/components/p-icon/examples/Custom.ts +13 -0
  91. package/skill/references/components/p-icon/examples/Default.ts +13 -0
  92. package/skill/references/components/p-icon/examples/Overview.ts +591 -0
  93. package/skill/references/components/p-icon/examples/ResponsiveSize.ts +13 -0
  94. package/skill/references/components/p-icon/examples/Size.ts +16 -0
  95. package/skill/references/components/p-icon/examples/SizeCssVar.ts +13 -0
  96. package/skill/references/components/p-icon/p-icon.md +88 -0
  97. package/skill/references/components/p-inline-notification/examples/ActionButton.ts +29 -0
  98. package/skill/references/components/p-inline-notification/examples/Default.ts +13 -0
  99. package/skill/references/components/p-inline-notification/examples/EventHandling.ts +31 -0
  100. package/skill/references/components/p-inline-notification/p-inline-notification.md +74 -0
  101. package/skill/references/components/p-input-date/examples/Default.ts +13 -0
  102. package/skill/references/components/p-input-date/examples/Form.ts +31 -0
  103. package/skill/references/components/p-input-date/examples/Slots.ts +44 -0
  104. package/skill/references/components/p-input-date/p-input-date.md +138 -0
  105. package/skill/references/components/p-input-email/examples/Default.ts +13 -0
  106. package/skill/references/components/p-input-email/examples/Form.ts +31 -0
  107. package/skill/references/components/p-input-email/examples/Slots.ts +44 -0
  108. package/skill/references/components/p-input-email/p-input-email.md +142 -0
  109. package/skill/references/components/p-input-month/examples/Default.ts +13 -0
  110. package/skill/references/components/p-input-month/examples/Form.ts +31 -0
  111. package/skill/references/components/p-input-month/examples/Slots.ts +44 -0
  112. package/skill/references/components/p-input-month/p-input-month.md +138 -0
  113. package/skill/references/components/p-input-number/examples/Default.ts +13 -0
  114. package/skill/references/components/p-input-number/examples/Form.ts +31 -0
  115. package/skill/references/components/p-input-number/examples/Slots.ts +44 -0
  116. package/skill/references/components/p-input-number/p-input-number.md +146 -0
  117. package/skill/references/components/p-input-password/examples/Default.ts +13 -0
  118. package/skill/references/components/p-input-password/examples/Form.ts +31 -0
  119. package/skill/references/components/p-input-password/examples/Slots.ts +42 -0
  120. package/skill/references/components/p-input-password/examples/Toggle.ts +13 -0
  121. package/skill/references/components/p-input-password/p-input-password.md +141 -0
  122. package/skill/references/components/p-input-search/examples/AriaCombobox.ts +38 -0
  123. package/skill/references/components/p-input-search/examples/Default.ts +13 -0
  124. package/skill/references/components/p-input-search/examples/Form.ts +31 -0
  125. package/skill/references/components/p-input-search/examples/Slots.ts +44 -0
  126. package/skill/references/components/p-input-search/p-input-search.md +178 -0
  127. package/skill/references/components/p-input-tel/examples/Default.ts +13 -0
  128. package/skill/references/components/p-input-tel/examples/Form.ts +31 -0
  129. package/skill/references/components/p-input-tel/examples/Slots.ts +44 -0
  130. package/skill/references/components/p-input-tel/p-input-tel.md +141 -0
  131. package/skill/references/components/p-input-text/examples/Controlled.ts +36 -0
  132. package/skill/references/components/p-input-text/examples/Default.ts +13 -0
  133. package/skill/references/components/p-input-text/examples/Form.ts +31 -0
  134. package/skill/references/components/p-input-text/examples/Slots.ts +44 -0
  135. package/skill/references/components/p-input-text/p-input-text.md +146 -0
  136. package/skill/references/components/p-input-time/examples/Default.ts +13 -0
  137. package/skill/references/components/p-input-time/examples/Form.ts +31 -0
  138. package/skill/references/components/p-input-time/examples/Slots.ts +44 -0
  139. package/skill/references/components/p-input-time/p-input-time.md +140 -0
  140. package/skill/references/components/p-input-url/examples/Default.ts +13 -0
  141. package/skill/references/components/p-input-url/examples/Form.ts +31 -0
  142. package/skill/references/components/p-input-url/examples/Slots.ts +44 -0
  143. package/skill/references/components/p-input-url/p-input-url.md +141 -0
  144. package/skill/references/components/p-input-week/examples/Default.ts +13 -0
  145. package/skill/references/components/p-input-week/examples/Form.ts +31 -0
  146. package/skill/references/components/p-input-week/examples/Slots.ts +44 -0
  147. package/skill/references/components/p-input-week/p-input-week.md +138 -0
  148. package/skill/references/components/p-link/examples/Default.ts +15 -0
  149. package/skill/references/components/p-link/examples/FrameworkRouting.ts +17 -0
  150. package/skill/references/components/p-link/examples/Icon.ts +20 -0
  151. package/skill/references/components/p-link/p-link.md +101 -0
  152. package/skill/references/components/p-link-pure/examples/CustomClickableArea.ts +15 -0
  153. package/skill/references/components/p-link-pure/examples/Default.ts +15 -0
  154. package/skill/references/components/p-link-pure/examples/FrameworkRouting.ts +17 -0
  155. package/skill/references/components/p-link-pure/examples/Icon.ts +20 -0
  156. package/skill/references/components/p-link-pure/p-link-pure.md +110 -0
  157. package/skill/references/components/p-link-tile/examples/ColorScheme.ts +18 -0
  158. package/skill/references/components/p-link-tile/examples/Default.ts +21 -0
  159. package/skill/references/components/p-link-tile/examples/FooterSlot.ts +32 -0
  160. package/skill/references/components/p-link-tile/examples/Hyphens.ts +39 -0
  161. package/skill/references/components/p-link-tile/examples/UiBehaviour.ts +44 -0
  162. package/skill/references/components/p-link-tile/examples/WithVideo.ts +18 -0
  163. package/skill/references/components/p-link-tile/p-link-tile.md +105 -0
  164. package/skill/references/components/p-link-tile-product/examples/Default.ts +24 -0
  165. package/skill/references/components/p-link-tile-product/examples/FrameworkRouting.ts +27 -0
  166. package/skill/references/components/p-link-tile-product/p-link-tile-product.md +93 -0
  167. package/skill/references/components/p-modal/examples/AlertDialog.ts +41 -0
  168. package/skill/references/components/p-modal/examples/CustomStyling.ts +28 -0
  169. package/skill/references/components/p-modal/examples/Default.ts +41 -0
  170. package/skill/references/components/p-modal/examples/Scrollable.ts +45 -0
  171. package/skill/references/components/p-modal/p-modal.md +135 -0
  172. package/skill/references/components/p-model-signature/examples/CustomStyling.ts +17 -0
  173. package/skill/references/components/p-model-signature/examples/Default.ts +13 -0
  174. package/skill/references/components/p-model-signature/examples/MaskBlendMode.ts +35 -0
  175. package/skill/references/components/p-model-signature/examples/MaskImage.ts +15 -0
  176. package/skill/references/components/p-model-signature/examples/MaskVideo.ts +15 -0
  177. package/skill/references/components/p-model-signature/examples/SafeZone.ts +63 -0
  178. package/skill/references/components/p-model-signature/p-model-signature.md +62 -0
  179. package/skill/references/components/p-multi-select/examples/AsyncFilter.ts +149 -0
  180. package/skill/references/components/p-multi-select/examples/Default.ts +32 -0
  181. package/skill/references/components/p-multi-select/examples/Form.ts +38 -0
  182. package/skill/references/components/p-multi-select/examples/Optgroups.ts +45 -0
  183. package/skill/references/components/p-multi-select/examples/SelectedSlot.ts +103 -0
  184. package/skill/references/components/p-multi-select/examples/SetValue.ts +76 -0
  185. package/skill/references/components/p-multi-select/examples/Slots.ts +51 -0
  186. package/skill/references/components/p-multi-select/p-multi-select.md +197 -0
  187. package/skill/references/components/p-pagination/examples/Default.ts +13 -0
  188. package/skill/references/components/p-pagination/p-pagination.md +83 -0
  189. package/skill/references/components/p-pin-code/examples/CopyPaste.ts +13 -0
  190. package/skill/references/components/p-pin-code/examples/Default.ts +13 -0
  191. package/skill/references/components/p-pin-code/examples/Form.ts +31 -0
  192. package/skill/references/components/p-pin-code/examples/Slots.ts +42 -0
  193. package/skill/references/components/p-pin-code/p-pin-code.md +109 -0
  194. package/skill/references/components/p-popover/examples/Default.ts +17 -0
  195. package/skill/references/components/p-popover/examples/SlottedButton.ts +18 -0
  196. package/skill/references/components/p-popover/p-popover.md +116 -0
  197. package/skill/references/components/p-radio-group/examples/Default.ts +20 -0
  198. package/skill/references/components/p-radio-group/examples/Form.ts +38 -0
  199. package/skill/references/components/p-radio-group/examples/Slots.ts +72 -0
  200. package/skill/references/components/p-radio-group/p-radio-group.md +157 -0
  201. package/skill/references/components/p-scroller/examples/Default.ts +54 -0
  202. package/skill/references/components/p-scroller/examples/Height.ts +29 -0
  203. package/skill/references/components/p-scroller/examples/ScrollToPosition.ts +43 -0
  204. package/skill/references/components/p-scroller/p-scroller.md +93 -0
  205. package/skill/references/components/p-segmented-control/examples/Default.ts +29 -0
  206. package/skill/references/components/p-segmented-control/examples/Form.ts +37 -0
  207. package/skill/references/components/p-segmented-control/examples/Slots.ts +57 -0
  208. package/skill/references/components/p-segmented-control/examples/WithLabels.ts +29 -0
  209. package/skill/references/components/p-segmented-control/p-segmented-control.md +162 -0
  210. package/skill/references/components/p-select/examples/AsyncFilter.ts +149 -0
  211. package/skill/references/components/p-select/examples/Default.ts +32 -0
  212. package/skill/references/components/p-select/examples/Form.ts +38 -0
  213. package/skill/references/components/p-select/examples/Optgroups.ts +45 -0
  214. package/skill/references/components/p-select/examples/Required.ts +48 -0
  215. package/skill/references/components/p-select/examples/SelectedSlot.ts +130 -0
  216. package/skill/references/components/p-select/examples/SetValue.ts +71 -0
  217. package/skill/references/components/p-select/examples/Slots.ts +51 -0
  218. package/skill/references/components/p-select/examples/SlottedImages.ts +38 -0
  219. package/skill/references/components/p-select/p-select.md +194 -0
  220. package/skill/references/components/p-sheet/examples/Default.ts +33 -0
  221. package/skill/references/components/p-sheet/p-sheet.md +121 -0
  222. package/skill/references/components/p-spinner/examples/Color.ts +16 -0
  223. package/skill/references/components/p-spinner/examples/ColorCssVar.ts +13 -0
  224. package/skill/references/components/p-spinner/examples/Default.ts +13 -0
  225. package/skill/references/components/p-spinner/examples/ResponsiveSize.ts +13 -0
  226. package/skill/references/components/p-spinner/examples/Size.ts +16 -0
  227. package/skill/references/components/p-spinner/examples/SizeCssVar.ts +13 -0
  228. package/skill/references/components/p-spinner/p-spinner.md +96 -0
  229. package/skill/references/components/p-stepper-horizontal/examples/Default.ts +26 -0
  230. package/skill/references/components/p-stepper-horizontal/examples/FrameworkImplementation.ts +107 -0
  231. package/skill/references/components/p-stepper-horizontal/p-stepper-horizontal.md +109 -0
  232. package/skill/references/components/p-switch/examples/Default.ts +21 -0
  233. package/skill/references/components/p-switch/p-switch.md +103 -0
  234. package/skill/references/components/p-table/examples/Advanced.ts +162 -0
  235. package/skill/references/components/p-table/examples/CaptionProperty.ts +40 -0
  236. package/skill/references/components/p-table/examples/CaptionSlot.ts +43 -0
  237. package/skill/references/components/p-table/examples/Default.ts +120 -0
  238. package/skill/references/components/p-table/examples/HideLabel.ts +40 -0
  239. package/skill/references/components/p-table/examples/LayoutFixed.ts +53 -0
  240. package/skill/references/components/p-table/examples/Sorting.ts +79 -0
  241. package/skill/references/components/p-table/p-table.md +189 -0
  242. package/skill/references/components/p-tabs/examples/ActiveTab.ts +29 -0
  243. package/skill/references/components/p-tabs/examples/Default.ts +29 -0
  244. package/skill/references/components/p-tabs/examples/Gradient.ts +114 -0
  245. package/skill/references/components/p-tabs/examples/Labelling.ts +29 -0
  246. package/skill/references/components/p-tabs/p-tabs.md +136 -0
  247. package/skill/references/components/p-tabs-bar/examples/Default.ts +29 -0
  248. package/skill/references/components/p-tabs-bar/examples/Gradient.ts +80 -0
  249. package/skill/references/components/p-tabs-bar/examples/Labelling.ts +29 -0
  250. package/skill/references/components/p-tabs-bar/examples/Links.ts +23 -0
  251. package/skill/references/components/p-tabs-bar/p-tabs-bar.md +181 -0
  252. package/skill/references/components/p-tag/examples/Default.ts +15 -0
  253. package/skill/references/components/p-tag/examples/Multiline.ts +17 -0
  254. package/skill/references/components/p-tag/examples/SlottedButton.ts +44 -0
  255. package/skill/references/components/p-tag/examples/SlottedLink.ts +44 -0
  256. package/skill/references/components/p-tag/p-tag.md +66 -0
  257. package/skill/references/components/p-tag-dismissible/examples/Default.ts +15 -0
  258. package/skill/references/components/p-tag-dismissible/p-tag-dismissible.md +75 -0
  259. package/skill/references/components/p-text/examples/Default.ts +15 -0
  260. package/skill/references/components/p-text/examples/Semantics.ts +21 -0
  261. package/skill/references/components/p-text/examples/Size.ts +15 -0
  262. package/skill/references/components/p-text/examples/SizeResponsive.ts +15 -0
  263. package/skill/references/components/p-text/p-text.md +68 -0
  264. package/skill/references/components/p-text-list/examples/Default.ts +31 -0
  265. package/skill/references/components/p-text-list/p-text-list.md +68 -0
  266. package/skill/references/components/p-textarea/examples/Default.ts +13 -0
  267. package/skill/references/components/p-textarea/examples/Form.ts +31 -0
  268. package/skill/references/components/p-textarea/examples/Slots.ts +42 -0
  269. package/skill/references/components/p-textarea/p-textarea.md +122 -0
  270. package/skill/references/components/p-toast/examples/Default.ts +23 -0
  271. package/skill/references/components/p-toast/p-toast.md +61 -0
  272. package/skill/references/components/p-wordmark/examples/CustomClickableArea.ts +13 -0
  273. package/skill/references/components/p-wordmark/examples/Default.ts +13 -0
  274. package/skill/references/components/p-wordmark/examples/Size.ts +13 -0
  275. package/skill/references/components/p-wordmark/p-wordmark.md +66 -0
  276. package/skill/references/icons.md +5 -0
  277. package/skill/references/styles/emotion.md +439 -0
  278. package/skill/references/styles/scss.md +402 -0
  279. package/skill/references/styles/tailwindcss.md +356 -0
  280. package/skill/references/styles/vanilla-extract.md +444 -0
  281. package/skill/references/stylesheets.md +331 -0
  282. package/skill/references/tokens.md +323 -0
  283. package/types/porsche-design-system-components-angular.d.ts +2 -2
@@ -0,0 +1,78 @@
1
+ # p-display
2
+
3
+ > **Deprecated:** since v4.0.0, will be removed with next major release. Please use `p-heading` instead.
4
+
5
+ `p-display` is used to highlight and specify heading styling and hierarchy in documents.
6
+
7
+ > **Recommendation**
8
+ >
9
+ > Although the component is very sophisticated, it's recommended (if possible) to use the corresponding utility classes of the "@porsche-design-system/components-{js | angular | react | vue}/tailwindcss" sub-package or any of the other styling solutions for best performance since way less DOM nodes are required to render. Further information can be found [here](../../styles/tailwindcss.md).
10
+
11
+ ## Usage
12
+
13
+ p-display is used to highlight and specify heading styling and hierarchy.
14
+
15
+ ### Do's:
16
+
17
+ - Use p-display for standout moments like hero intros, emotional statements, or key statistics.
18
+ - Choose from display-small, display-medium, or display-large depending on the visual weight required.
19
+ - Center-align p-display styles for marketing, landing, or intro sections to enhance visual impact.
20
+ - Ensure generous spacing around p-display elements to give them room to breathe.
21
+
22
+ ### Don't:
23
+
24
+ - Don’t use p-display styles for standard section headings or body text—use p-heading or p-text instead.
25
+ - Don’t mix multiple p-display sizes on the same screen unless clearly structured (e.g. in a visual hierarchy).
26
+
27
+ ## Accessibility support
28
+
29
+ This component does not include any special accessibility features.
30
+
31
+ ## Development considerations
32
+
33
+ ### Heading hierarchy
34
+
35
+ While using the `Display` component, take care of the correct heading hierarchy which can be adjusted through the `tag` property. Keep in mind that the visual appearance must not always be identical with the semantic hierarchy.
36
+
37
+ #### Best practices
38
+
39
+ - Use one unique `h1` per page that describes what that page is about.
40
+ - Use headings to describe the content below. Do not use an HTML heading just to make the text appear bigger or stand out.
41
+ - Use heading levels like the index of a book: hierarchical.
42
+ - Do not choose a heading by its size, but by its level in the context of the content.
43
+ - Heading hierarchy should not increase by more than one level at a time.
44
+ - Do not skip a heading level from the top down.
45
+
46
+ ### Common do's and don'ts
47
+
48
+ - **Do** use the `tag` prop to reflect semantic hierarchy, not just visual `size`.
49
+ - **Do** keep one unique `h1` per page for the primary page topic.
50
+ - **Don't** use `tag="h1"` on display text that is not the main page title.
51
+
52
+ ## API
53
+
54
+ ### Properties
55
+
56
+ | Property | Type | Default | Description |
57
+ | --- | --- | --- | --- |
58
+ | `align` | `'start'` `'center'` `'end'` `'inherit'` | `'start'` | Sets the horizontal text alignment (`start`, `center`, `end`, or `inherit`). |
59
+ | `color` | `'primary'` `'inherit'` | `'primary'` | Sets the text color using PDS color tokens. |
60
+ | `ellipsis` | `boolean` | `false` | Truncates the text with an ellipsis when it overflows the container on a single line. |
61
+ | `size` | `'small'` `'medium'` `'large'` `'inherit'`<br>`BreakpointCustomizable<DisplaySize>` | `'large'` | Sets the visual text size. Supports responsive breakpoint values. |
62
+ | `tag` | `undefined` `'h1'` `'h2'` `'h3'` `'h4'` `'h5'` `'h6'` | `undefined` | Sets the HTML heading tag (h1–h6) for correct document outline placement. When omitted, the tag is inferred from `size`. |
63
+
64
+ ### Slots
65
+
66
+ | Slot | Required | Allowed tag names | Description |
67
+ | --- | --- | --- | --- |
68
+ | _(default)_ | no | — | Default slot for the display text. |
69
+
70
+ ## Examples
71
+
72
+ | Example | When to use | File |
73
+ | --- | --- | --- |
74
+ | Default | Minimal default configuration. | [./examples/Default.ts](./examples/Default.ts) |
75
+ | Size | There are predefined fluid text sizes for the component which should cover most use cases. | [./examples/Size.ts](./examples/Size.ts) |
76
+ | Responsive | Responsive | [./examples/SizeResponsive.ts](./examples/SizeResponsive.ts) |
77
+ | Semantics | To provide more contextual HTML semantics you can either pass them with the `tag` property or directly inside a slot. | [./examples/Semantics.ts](./examples/Semantics.ts) |
78
+ | Color | Predefined theme-based colors are available, but `inherit` can also be used to define a custom color. | [./examples/Color.ts](./examples/Color.ts) |
@@ -0,0 +1,13 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <p-divider></p-divider>
8
+ `,
9
+ changeDetection: ChangeDetectionStrategy.OnPush,
10
+ standalone: true,
11
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
12
+ })
13
+ export class ExampleComponent {}
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <div class="lg:flex lg:h-[150px]">
8
+ <p-divider [direction]="{'base': 'horizontal', 'l': 'vertical'}"></p-divider>
9
+ </div>
10
+ `,
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
14
+ })
15
+ export class ExampleComponent {}
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <div class="flex h-[100px]">
8
+ <p-divider direction="vertical"></p-divider>
9
+ </div>
10
+ `,
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
14
+ })
15
+ export class ExampleComponent {}
@@ -0,0 +1,49 @@
1
+ # p-divider
2
+
3
+ The `p-divider` is used as 'horizontal or vertical rule' and displays a dividing line. The component is self-closing. Slotted content between the component tags won't be displayed.
4
+
5
+ ## Usage
6
+
7
+ ### Do:
8
+
9
+ - Use to create a visual separation between related sections of content.
10
+ - Use to separate content into clear groups.
11
+ - Use when other options for structuring content are not sufficient.
12
+
13
+ ### Don't:
14
+
15
+ - Don't use dividers to structure content, rather work with more space for clustering
16
+ - Don't use it for decorative purposes unless it's necessary.
17
+ - Avoid full-bleed dividers to separate page sections.
18
+
19
+ ## Accessibility support
20
+
21
+ This component does not include any special accessibility features.
22
+
23
+ ## Development considerations
24
+
25
+ ### Structure
26
+
27
+ A divider is visual separation only. Use headings, landmarks, or section structure to communicate content groups.
28
+
29
+ ### Common do's and don'ts
30
+
31
+ - **Do** pair dividers with headings or landmarks that describe the sections they separate.
32
+ - **Don't** rely on a divider alone to communicate a new major section.
33
+
34
+ ## API
35
+
36
+ ### Properties
37
+
38
+ | Property | Type | Default | Description |
39
+ | --- | --- | --- | --- |
40
+ | `color` | `'contrast-lower'` `'contrast-low'` `'contrast-medium'` `'contrast-high'` | `'contrast-lower'` | Sets the color of the divider line using PDS contrast tokens. |
41
+ | `direction` | `'vertical'` `'horizontal'`<br>`BreakpointCustomizable<DividerDirection>` | `'horizontal'` | Sets the orientation of the divider to `horizontal` or `vertical`. Supports responsive breakpoint values. |
42
+
43
+ ## Examples
44
+
45
+ | Example | When to use | File |
46
+ | --- | --- | --- |
47
+ | Default | Minimal default configuration. | [./examples/Default.ts](./examples/Default.ts) |
48
+ | Vertical | **Hint:** The component has not an implicit vertical height unless we set a container which provides it or define the height on the component itself. | [./examples/Vertical.ts](./examples/Vertical.ts) |
49
+ | Responsive | You can change the divider's direction by using different major breakpoints `xs`, `s`, `m`, `l`, `xl`. | [./examples/Responsive.ts](./examples/Responsive.ts) |
@@ -0,0 +1,166 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule, type DrilldownUpdateEventDetail } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <nav aria-label="Main">
8
+ <p-button type="button" [aria]="{'aria-haspopup': 'dialog'}" (click)="onClick()">
9
+ Open Drilldown
10
+ </p-button>
11
+ <p-drilldown [open]="open" [activeIdentifier]="activeIdentifier" class="[--p-drilldown-grid-template:repeat(5,auto)_minmax(0,1fr)/auto]" (update)="onUpdate($event)" (dismiss)="onDismiss()">
12
+ <p-drilldown-item identifier="id-1" label="Motorsport" class="[--p-drilldown-grid-template:auto/repeat(2,minmax(0,1fr))] [--p-drilldown-gap:0px_16px]">
13
+ <p-drilldown-item identifier="id-1-1" label="718">
14
+ <p-model-signature slot="header" model="718"></p-model-signature>
15
+ <p-button-tile slot="button" label="Some label" description="718" weight="semi-bold" [compact]="true" [aspectRatio]="{'base': '1/1', 's': '9/16'}" class="mb-fluid-sm">
16
+ <img srcset="assets/porsche-963@2x.webp 2x" src="assets/porsche-963.webp" [width]="636" [height]="847" alt="Porsche 963" />
17
+ </p-button-tile>
18
+ <p-drilldown-link href="#">
19
+ Some anchor
20
+ </p-drilldown-link>
21
+ <p-drilldown-link href="#">
22
+ Some anchor
23
+ </p-drilldown-link>
24
+ <p-drilldown-link href="#">
25
+ Some anchor
26
+ </p-drilldown-link>
27
+ <p-drilldown-link href="#">
28
+ Some anchor
29
+ </p-drilldown-link>
30
+ </p-drilldown-item>
31
+ <p-drilldown-item identifier="id-1-2" label="911">
32
+ <p-model-signature slot="header" model="911"></p-model-signature>
33
+ <p-button-tile slot="button" label="Some label" description="911" weight="semi-bold" [compact]="true" [aspectRatio]="{'base': '1/1', 's': '9/16'}" class="mb-fluid-sm">
34
+ <img srcset="assets/porsche-963@2x.webp 2x" src="assets/porsche-963.webp" [width]="636" [height]="847" alt="Porsche 963" />
35
+ </p-button-tile>
36
+ <p-drilldown-link href="#">
37
+ Some anchor
38
+ </p-drilldown-link>
39
+ <p-drilldown-link href="#">
40
+ Some anchor
41
+ </p-drilldown-link>
42
+ </p-drilldown-item>
43
+ <p-drilldown-link href="#">
44
+ Some anchor
45
+ </p-drilldown-link>
46
+ <p-drilldown-link href="#" aria-current="page">
47
+ Some anchor
48
+ </p-drilldown-link>
49
+ <p-drilldown-link href="#">
50
+ Some anchor
51
+ </p-drilldown-link>
52
+ <p-drilldown-link href="#">
53
+ Some anchor
54
+ </p-drilldown-link>
55
+ <p-drilldown-link href="#">
56
+ Some anchor
57
+ </p-drilldown-link>
58
+ <p-drilldown-link href="#">
59
+ Some anchor
60
+ </p-drilldown-link>
61
+ <p-drilldown-link href="#">
62
+ Some anchor
63
+ </p-drilldown-link>
64
+ <p-drilldown-link href="#">
65
+ Some anchor
66
+ </p-drilldown-link>
67
+ <p-drilldown-link href="#">
68
+ Some anchor
69
+ </p-drilldown-link>
70
+ </p-drilldown-item>
71
+ <p-drilldown-item identifier="id-2" label="Some label">
72
+ <p-drilldown-item identifier="id-2-1" label="Some label">
73
+ <p-drilldown-link href="#">
74
+ Some anchor
75
+ </p-drilldown-link>
76
+ <p-drilldown-link href="#">
77
+ Some anchor
78
+ </p-drilldown-link>
79
+ <p-drilldown-link href="#">
80
+ Some anchor
81
+ </p-drilldown-link>
82
+ <p-drilldown-link href="#">
83
+ Some anchor
84
+ </p-drilldown-link>
85
+ </p-drilldown-item>
86
+ <p-drilldown-item identifier="id-2-2" label="Some label">
87
+ <p-drilldown-link href="#">
88
+ Some anchor
89
+ </p-drilldown-link>
90
+ <p-drilldown-link href="#">
91
+ Some anchor
92
+ </p-drilldown-link>
93
+ <p-drilldown-link href="#">
94
+ Some anchor
95
+ </p-drilldown-link>
96
+ </p-drilldown-item>
97
+ <p-drilldown-link href="#">
98
+ Some anchor
99
+ </p-drilldown-link>
100
+ <p-drilldown-link href="#">
101
+ Some anchor
102
+ </p-drilldown-link>
103
+ <p-drilldown-link href="#">
104
+ Some anchor
105
+ </p-drilldown-link>
106
+ <p-drilldown-link href="#">
107
+ Some anchor
108
+ </p-drilldown-link>
109
+ </p-drilldown-item>
110
+ <p-drilldown-item identifier="id-3" label="Some label">
111
+ <p-drilldown-link href="#">
112
+ Some anchor
113
+ </p-drilldown-link>
114
+ <p-drilldown-link href="#">
115
+ Some anchor
116
+ </p-drilldown-link>
117
+ <p-drilldown-link href="#">
118
+ Some anchor
119
+ </p-drilldown-link>
120
+ <p-drilldown-link href="#">
121
+ Some anchor
122
+ </p-drilldown-link>
123
+ </p-drilldown-item>
124
+ <p-drilldown-item identifier="id-4" label="Some label">
125
+ <p-drilldown-link href="#">
126
+ Some anchor
127
+ </p-drilldown-link>
128
+ <p-drilldown-link href="#">
129
+ Some anchor
130
+ </p-drilldown-link>
131
+ <p-drilldown-link href="#">
132
+ Some anchor
133
+ </p-drilldown-link>
134
+ </p-drilldown-item>
135
+ <p-drilldown-item identifier="id-5" label="Some label">
136
+ <p-drilldown-link href="#">
137
+ Some anchor
138
+ </p-drilldown-link>
139
+ <p-drilldown-link href="#">
140
+ Some anchor
141
+ </p-drilldown-link>
142
+ </p-drilldown-item>
143
+ <p-link href="#" variant="secondary" icon="external" class="self-end">
144
+ Some external anchor
145
+ </p-link>
146
+ </p-drilldown>
147
+ </nav>
148
+ `,
149
+ changeDetection: ChangeDetectionStrategy.OnPush,
150
+ standalone: true,
151
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
152
+ })
153
+ export class ExampleComponent {
154
+ activeIdentifier = "id-1";
155
+ open = false;
156
+
157
+ onClick() {
158
+ this.open = true;
159
+ }
160
+ onUpdate(e: CustomEvent<DrilldownUpdateEventDetail>) {
161
+ this.activeIdentifier = e.detail.activeIdentifier;
162
+ }
163
+ onDismiss() {
164
+ this.open = false;
165
+ }
166
+ }
@@ -0,0 +1,119 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule, type DrilldownUpdateEventDetail } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <nav aria-label="Main">
8
+ <p-button type="button" [aria]="{'aria-haspopup': 'dialog'}" (click)="onClick()">
9
+ Open Drilldown
10
+ </p-button>
11
+ <p-drilldown [open]="open" [activeIdentifier]="activeIdentifier" (update)="onUpdate($event)" (dismiss)="onDismiss()">
12
+ <p-drilldown-item identifier="id-1" label="Some Label (1)">
13
+ <p-drilldown-item identifier="id-1-1" label="Some Label (1-1)">
14
+ <p-drilldown-link href="#">
15
+ Some anchor (1-1)
16
+ </p-drilldown-link>
17
+ <p-drilldown-link>
18
+ <a href="#">
19
+ Some anchor (1-1)
20
+ </a>
21
+ </p-drilldown-link>
22
+ </p-drilldown-item>
23
+ <p-drilldown-item identifier="id-1-2" label="Some Label (1-2)">
24
+ <p-drilldown-link href="#">
25
+ Some anchor (1-2)
26
+ </p-drilldown-link>
27
+ <p-drilldown-link href="#">
28
+ Some anchor (1-2)
29
+ </p-drilldown-link>
30
+ <p-drilldown-link href="#">
31
+ Some anchor (1-2)
32
+ </p-drilldown-link>
33
+ <p-drilldown-item identifier="id-1-2-1" label="Some Label (1-2-1)">
34
+ <p-drilldown-link href="#">
35
+ Some anchor (1-2-1)
36
+ </p-drilldown-link>
37
+ <p-drilldown-link href="#">
38
+ Some anchor (1-2-1)
39
+ </p-drilldown-link>
40
+ </p-drilldown-item>
41
+ <p-drilldown-link href="#">
42
+ Some anchor (1-2)
43
+ </p-drilldown-link>
44
+ </p-drilldown-item>
45
+ <p-drilldown-link href="#">
46
+ Some anchor (1-1)
47
+ </p-drilldown-link>
48
+ <p-drilldown-link href="#">
49
+ Some anchor (1-1)
50
+ </p-drilldown-link>
51
+ <p-drilldown-link href="#">
52
+ Some anchor (1-1)
53
+ </p-drilldown-link>
54
+ </p-drilldown-item>
55
+ <p-drilldown-item identifier="id-2" label="Some Label (2)">
56
+ <p-drilldown-link href="#">
57
+ Some anchor (2)
58
+ </p-drilldown-link>
59
+ <p-drilldown-link href="#">
60
+ Some anchor (2)
61
+ </p-drilldown-link>
62
+ <p-drilldown-link href="#">
63
+ Some anchor (2)
64
+ </p-drilldown-link>
65
+ <p-drilldown-link href="#">
66
+ Some anchor (2)
67
+ </p-drilldown-link>
68
+ </p-drilldown-item>
69
+ <p-drilldown-item identifier="id-3" label="Some Label (3)">
70
+ <p-drilldown-link href="#">
71
+ Some anchor (3)
72
+ </p-drilldown-link>
73
+ <p-drilldown-link href="#">
74
+ Some anchor (3)
75
+ </p-drilldown-link>
76
+ <p-drilldown-link href="#">
77
+ Some anchor (3)
78
+ </p-drilldown-link>
79
+ </p-drilldown-item>
80
+ <p-drilldown-item identifier="id-4" label="Some Label (4)">
81
+ <p-drilldown-link href="#">
82
+ Some anchor (4)
83
+ </p-drilldown-link>
84
+ <p-drilldown-link href="#">
85
+ Some anchor (4)
86
+ </p-drilldown-link>
87
+ <p-drilldown-link href="#">
88
+ Some anchor (4)
89
+ </p-drilldown-link>
90
+ </p-drilldown-item>
91
+ <p-drilldown-item identifier="id-5" label="Some Label (5)">
92
+ <p-drilldown-link href="#">
93
+ Some anchor (5)
94
+ </p-drilldown-link>
95
+ <p-drilldown-link href="#">
96
+ Some anchor (5)
97
+ </p-drilldown-link>
98
+ </p-drilldown-item>
99
+ </p-drilldown>
100
+ </nav>
101
+ `,
102
+ changeDetection: ChangeDetectionStrategy.OnPush,
103
+ standalone: true,
104
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
105
+ })
106
+ export class ExampleComponent {
107
+ activeIdentifier = undefined;
108
+ open = false;
109
+
110
+ onClick() {
111
+ this.open = true;
112
+ }
113
+ onUpdate(e: CustomEvent<DrilldownUpdateEventDetail>) {
114
+ this.activeIdentifier = e.detail.activeIdentifier;
115
+ }
116
+ onDismiss() {
117
+ this.open = false;
118
+ }
119
+ }
@@ -0,0 +1,168 @@
1
+ # p-drilldown
2
+
3
+ > **Experimental:** This component is experimental — its API may change in any release. Avoid relying on it in production.
4
+
5
+ > **Experimental Component**
6
+ >
7
+ > The `p-drilldown` component is experimental and might be changed or removed in a future release.
8
+
9
+ The `p-drilldown` component is meant for displaying an infinite multilevel structure in a drilldown menu that overlays the page content from the start side of the screen. It is a controlled component that gives you flexible control over its behavior.
10
+
11
+ The basic concept of the component is to have a button that opens the `p-drilldown` with an infinite multilevel structure. The levels are generated out of `p-drilldown-item` which generates a list of cascade buttons to navigate to a deeper level, back buttons and a header section on mobile view. These items can be filled with e.g. `p-drilldown-link`, another `p-drilldown-item` or any HTML element.
12
+
13
+ The visibility of `p-drilldown` can be controlled by its `open` property.
14
+
15
+ It's **obligatory** that each `p-drilldown-item` has a unique `identifier` and `label` defined.
16
+
17
+ Since it's a controlled component it's necessary to register an event listener for the `dismiss` and `update` event in order to get notified when `p-drilldown` needs to be closed or navigated to another hierarchy level.
18
+
19
+ ## Usage
20
+
21
+ ### Do:
22
+
23
+ - Use Drilldown for multilevel purposes.
24
+ - Use Drilldown for multilevel on desktop & mobile.
25
+ - Use a button-pure with a burger icon as the main trigger for the Drilldown component.
26
+ - Use additional interaction items to trigger component.
27
+ - Use a multilevel hierarchy that matches the two-layer capability of the component.
28
+ - Use the first layer for multilevel targets or categories for link lists.
29
+ - Use the second layer only if necessary.
30
+ - Use section headings on the second layer for a group of links.
31
+ - Use link-tile on the second layer for important links.
32
+
33
+ ### Don't:
34
+
35
+ - Don't put too much additional information into the component.
36
+ - Don't use other interaction components than mentioned.
37
+ - Don't manipulate the heading in the second layer.
38
+ - Don't implement external links without indicators.
39
+
40
+ ---
41
+
42
+ ## Related components
43
+
44
+ - [Flyout](../p-flyout/p-flyout.md)
45
+
46
+ ## Accessibility support
47
+
48
+ The `Drilldown` component uses the native `dialog` element to provide a modal dialog which comes with browser-specific behavior. As a result, accessibility features may vary across different browsers.
49
+
50
+ ### Keyboard
51
+
52
+ | Key / state | Function |
53
+ | --- | --- |
54
+ | `Tab`, `Shift-Tab` | Moves focus to the next (or previous) focusable element inside the dialog. Focus is trapped (browser behavior). |
55
+ | `ESC` | Closes the dialog. |
56
+ | `focus` on trigger element | The focus is returned to the trigger element after closing the dialog (browser behavior). |
57
+
58
+ ### ARIA enhancements
59
+
60
+ #### External **ARIA** provided by the `aria` property:
61
+
62
+ | ARIA | Usage |
63
+ | --- | --- |
64
+ | `aria-label` | Defines a string value that labels the dialog element. |
65
+
66
+ ## Development considerations
67
+
68
+ To inform users that the trigger button opens a `dialog`, the `aria-haspopup` attribute must be set using the `aria` property, e.g.: `aria="{ 'aria-haspopup': 'dialog' }"`.
69
+
70
+ ### Common do's and don'ts
71
+
72
+ - **Do** use a semantic trigger (usually a button) with a meaningful accessible name.
73
+ - **Do** set `aria-haspopup` through the trigger component `aria` prop.
74
+ - **Do** provide a meaningful dialog label through the drilldown `aria` prop when needed.
75
+ - **Don't** add native `aria-*` attributes directly on the component host.
76
+
77
+ ## API
78
+
79
+ ### Properties
80
+
81
+ | Property | Type | Default | Description |
82
+ | --- | --- | --- | --- |
83
+ | `activeIdentifier` | `string | undefined` | `undefined` | Sets which `p-drilldown-item` (by `identifier`) is currently expanded to show its sub-navigation level. |
84
+ | `aria` | `DrilldownAriaAttribute` | `undefined` | Sets ARIA attributes on the drilldown dialog element for improved screen reader accessibility. |
85
+ | `open` | `boolean` | `false` | Controls whether the drilldown navigation panel is visible. |
86
+
87
+ ### Events
88
+
89
+ | Event | Type | Description |
90
+ | --- | --- | --- |
91
+ | `dismiss` | `CustomEvent<void>` | Emitted when the user closes the drilldown via the close button or Escape key. |
92
+ | `update` | `CustomEvent<DrilldownUpdateEventDetail>`<br>`{ activeIdentifier: string | undefined }` | Emitted when the active navigation level changes, with the new `activeIdentifier` in the event detail. |
93
+
94
+ ### Controlled properties
95
+
96
+ - `open` — a controlled prop: the component does **not** update it itself. Handle the `dismiss` event and assign the new value to `open` yourself, or the change will not take effect.
97
+ - `activeIdentifier` — a controlled prop: the component does **not** update it itself. Handle the `update` event and assign the new value to `activeIdentifier` yourself, or the change will not take effect.
98
+
99
+ ### Slots
100
+
101
+ | Slot | Required | Allowed tag names | Description |
102
+ | --- | --- | --- | --- |
103
+ | _(default)_ | no | — | Default slot to render p-drilldown items. |
104
+
105
+ ### CSS Variables
106
+
107
+ | CSS Variable | Default | Description |
108
+ | --- | --- | --- |
109
+ | `--p-drilldown-grid-template` | `auto/auto` | Overrides the CSS `grid-template` of the default slot container, allowing custom grid layout for drilldown items. |
110
+ | `--p-drilldown-gap` | `8px` | Overrides the gap between drilldown items in the default slot container. |
111
+
112
+ ## Sub-components
113
+
114
+ These tags are only valid inside the parent(s) listed under each one — often this component, but some are shared and list a different parent (e.g. a tag documented here via a common ancestor). Their APIs come from the same authoritative `component-meta` as the parent above.
115
+
116
+ ### `p-drilldown-item` _(experimental)_
117
+
118
+ > **Experimental:** This component is experimental — its API may change in any release. Avoid relying on it in production.
119
+
120
+ Allowed parents: `p-drilldown`, `p-drilldown-item`.
121
+
122
+ #### Properties
123
+
124
+ | Property | Type | Default | Description |
125
+ | --- | --- | --- | --- |
126
+ | `cascade` | `boolean` | `false` | Private property set by the component itself. |
127
+ | `identifier` _(required)_ | `string` | `undefined` | Sets the unique identifier matched against the drilldown's `activeIdentifier` to determine if this item is shown. |
128
+ | `label` | `string` | `undefined` | Sets the text used for the back button, sticky header, and cascade button that navigates into this navigation level. |
129
+ | `primary` | `boolean` | `false` | Private property set by the component itself. |
130
+ | `secondary` | `boolean` | `false` | Private property set by the component itself. |
131
+
132
+ #### Slots
133
+
134
+ | Slot | Required | Allowed tag names | Description |
135
+ | --- | --- | --- | --- |
136
+ | _(default)_ | no | — | Default slot for the main content. |
137
+ | `button` | no | — | Shows a custom button to reach a deeper level of the navigation structure. |
138
+ | `header` | no | — | Shows a custom header section on mobile view. |
139
+
140
+ ### `p-drilldown-link` _(experimental)_
141
+
142
+ > **Experimental:** This component is experimental — its API may change in any release. Avoid relying on it in production.
143
+
144
+ Allowed parents: `p-drilldown`, `p-drilldown-item`.
145
+
146
+ #### Properties
147
+
148
+ | Property | Type | Default | Description |
149
+ | --- | --- | --- | --- |
150
+ | `active` | `boolean` | `false` | Visually marks the link as the currently active navigation item, e.g. the current page. |
151
+ | `aria` | `DrilldownLinkAriaAttribute` | `undefined` | Sets ARIA attributes on the link for improved accessibility. Only applies when `href` is set. |
152
+ | `download` | `string` | `undefined` | Sets the native `download` attribute to trigger a file download. Only applies when `href` is set. |
153
+ | `href` | `string` | `undefined` | When set, the component renders as an anchor navigating to this URL. Otherwise, provide a slotted anchor element. |
154
+ | `rel` | `string` | `undefined` | Sets the `rel` attribute on the link element (e.g. `noopener`). Only applies when `href` is set. |
155
+ | `target` | `'_self'` `'_blank'` `'_parent'` `'_top'` `'string'` | `'_self'` | Specifies where to open the linked URL (e.g. `_self`, `_blank`). Only applies when `href` is set. |
156
+
157
+ #### Slots
158
+
159
+ | Slot | Required | Allowed tag names | Description |
160
+ | --- | --- | --- | --- |
161
+ | _(default)_ | no | — | Default slot to render the link label. |
162
+
163
+ ## Examples
164
+
165
+ | Example | When to use | File |
166
+ | --- | --- | --- |
167
+ | Default | Minimal default configuration. | [./examples/Default.ts](./examples/Default.ts) |
168
+ | Example with custom content | To give more flexibility, it's possible to use custom slots `slot="button"` (renders a custom cascade button) and/or `slot="header"` (renders a custom header on mobile view). | [./examples/CustomContent.ts](./examples/CustomContent.ts) |
@@ -0,0 +1,15 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <p-fieldset label="Some legend label">
8
+ <p-input-text label="Some label" name="some-name"></p-input-text>
9
+ </p-fieldset>
10
+ `,
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
14
+ })
15
+ export class ExampleComponent {}
@@ -0,0 +1,16 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core';
2
+ import { PorscheDesignSystemModule } from '@porsche-design-system/components-angular';
3
+
4
+ @Component({
5
+ selector: 'porsche-design-system-app',
6
+ template: `
7
+ <p-fieldset label="Some legend label" [required]="true">
8
+ <p-input-text label="Some label" name="some-name-1" [required]="true"></p-input-text>
9
+ <p-input-text label="Some label" name="some-name-2" [required]="true" class="mt-fluid-sm"></p-input-text>
10
+ </p-fieldset>
11
+ `,
12
+ changeDetection: ChangeDetectionStrategy.OnPush,
13
+ standalone: true,
14
+ imports: [PorscheDesignSystemModule], // <-- PDS module is imported here
15
+ })
16
+ export class ExampleComponent {}