@swisspost/design-system-components 10.0.0-next.54 → 10.0.0-next.56
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/{components/react/p-CJ80BZ06.js → cjs/breakpoints-Df03Ct7n.js} +103 -5
- package/dist/cjs/debounce-BsIBi_-2.js +13 -0
- package/dist/cjs/environment-BQE9Unf_.js +52 -0
- package/dist/cjs/{event-from-CLvtSUKf.js → event-from-CwMw19f8.js} +2 -2
- package/dist/cjs/fade-CPQhl1fP.js +26 -0
- package/dist/cjs/fade-slide-dPhQa-I1.js +38 -0
- package/dist/cjs/{get-focusable-children-Bx63XUQg.js → get-focusable-children-ChETM1wK.js} +29 -21
- package/dist/cjs/{get-root-CyMf3Vsd.js → get-root-CUAv4k4C.js} +2 -2
- package/dist/cjs/{index-Cb8CTrOz.js → index-CKNxhb0S.js} +29 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-CvZxvdTJ.js → package-CY7IOoiw.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +12 -12
- package/dist/cjs/post-avatar.cjs.entry.js +11 -11
- package/dist/cjs/post-back-to-top.cjs.entry.js +16 -40
- package/dist/cjs/post-banner.cjs.entry.js +11 -10
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +7 -7
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +22 -31
- package/dist/cjs/post-card-control.cjs.entry.js +16 -16
- package/dist/cjs/{post-closebutton_15.cjs.entry.js → post-closebutton_13.cjs.entry.js} +537 -507
- package/dist/cjs/post-collapsible_2.cjs.entry.js +39 -38
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-env-test.cjs.entry.js +15 -0
- package/dist/cjs/post-footer.cjs.entry.js +21 -19
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-pagination.cjs.entry.js +589 -0
- package/dist/cjs/post-popover-trigger.cjs.entry.js +46 -30
- package/dist/cjs/post-popover.cjs.entry.js +12 -12
- package/dist/cjs/post-rating.cjs.entry.js +13 -13
- package/dist/cjs/post-stepper-item.cjs.entry.js +18 -0
- package/dist/cjs/post-stepper.cjs.entry.js +109 -0
- package/dist/cjs/post-tab-item.cjs.entry.js +49 -0
- package/dist/cjs/post-tab-panel.cjs.entry.js +9 -9
- package/dist/cjs/post-tabs.cjs.entry.js +191 -38
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +8 -8
- package/dist/cjs/post-tooltip.cjs.entry.js +7 -7
- package/dist/cjs/utils-s05L2ulk.js +26 -0
- package/dist/collection/animations/collapse.js +3 -3
- package/dist/collection/animations/fade-slide.js +33 -0
- package/dist/collection/animations/fade.js +19 -7
- package/dist/collection/animations/index.js +2 -0
- package/dist/collection/animations/slide.js +25 -21
- package/dist/collection/animations/types.js +14 -0
- package/dist/collection/animations/utils.js +8 -0
- package/dist/collection/collection-manifest.json +8 -6
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +2 -2
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -4
- package/dist/collection/components/post-avatar/post-avatar.css +1 -1
- package/dist/collection/components/post-avatar/post-avatar.js +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +14 -14
- package/dist/collection/components/post-banner/post-banner.css +4 -1
- package/dist/collection/components/post-banner/post-banner.js +3 -3
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +28 -28
- package/dist/collection/components/post-card-control/post-card-control.js +3 -3
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +27 -27
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +6 -5
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +18 -16
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +186 -105
- package/dist/collection/components/post-icon/post-icon.js +6 -4
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -0
- package/dist/collection/components/{post-language-switch/post-language-switch.js → post-language-menu/post-language-menu.js} +25 -25
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -0
- package/dist/collection/components/{post-language-option/post-language-option.js → post-language-menu-item/post-language-menu-item.js} +14 -14
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-logo/post-logo.css +3 -1
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +41 -29
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +184 -75
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +3 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +80 -74
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +35 -35
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-pagination/post-pagination.css +1 -0
- package/dist/collection/components/post-pagination/post-pagination.js +838 -0
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +10 -10
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +43 -27
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +45 -92
- package/dist/collection/components/post-rating/post-rating.js +3 -3
- package/dist/collection/components/post-stepper/post-stepper.css +1 -0
- package/dist/collection/components/post-stepper/post-stepper.js +207 -0
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +7 -0
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +18 -0
- package/dist/collection/components/post-tab-item/post-tab-item.css +1 -0
- package/dist/collection/components/post-tab-item/post-tab-item.js +86 -0
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +9 -9
- package/dist/collection/components/post-tabs/post-tabs.js +230 -57
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/collection/utils/environment.js +47 -2
- package/dist/collection/utils/event-from.js +2 -2
- package/dist/collection/utils/get-focusable-children.js +29 -21
- package/dist/collection/utils/is-motion-reduced.js +1 -1
- package/dist/collection/utils/tests/environment/hydrate-app-helper.js +16 -0
- package/dist/collection/utils/tests/environment/post-env-test.js +9 -0
- package/dist/component-names.json +6 -5
- package/dist/components/breakpoints.js +90 -3
- package/dist/components/debounce.js +11 -0
- package/dist/components/environment.js +49 -0
- package/dist/components/event-from.js +2 -2
- package/dist/components/fade-slide.js +36 -0
- package/dist/components/fade.js +21 -8
- package/dist/components/get-focusable-children.js +29 -21
- package/dist/components/get-root.js +1 -1
- package/dist/components/index.d.ts +14 -10
- package/dist/components/index.js +7 -5
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +4 -5
- package/dist/components/post-accordion2.js +4 -5
- package/dist/components/post-avatar.js +3 -4
- package/dist/components/post-back-to-top.js +14 -40
- package/dist/components/post-banner.js +5 -6
- package/dist/components/post-breadcrumb-item2.js +2 -3
- package/dist/components/post-breadcrumbs.js +24 -34
- package/dist/components/post-card-control.js +4 -5
- package/dist/components/post-closebutton2.js +3 -4
- package/dist/components/post-collapsible-trigger2.js +10 -10
- package/dist/components/post-collapsible2.js +25 -25
- package/dist/components/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/post-env-test.js +31 -0
- package/dist/components/post-footer.js +17 -16
- package/dist/components/post-header.js +156 -119
- package/dist/components/post-icon2.js +8 -6
- package/dist/components/post-language-menu-item.d.ts +11 -0
- package/dist/components/post-language-menu-item.js +98 -0
- package/dist/components/{post-language-switch.d.ts → post-language-menu.d.ts} +4 -4
- package/dist/components/post-language-menu.js +156 -0
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-logo.js +3 -4
- package/dist/components/post-mainnavigation.js +21 -32
- package/dist/components/post-megadropdown-trigger.js +72 -79
- package/dist/components/post-megadropdown.js +183 -78
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +2 -3
- package/dist/components/post-menu2.js +35 -36
- package/dist/components/post-pagination.d.ts +11 -0
- package/dist/components/post-pagination.js +635 -0
- package/dist/components/post-popover-trigger.js +41 -26
- package/dist/components/post-popover.js +9 -10
- package/dist/components/post-popovercontainer2.js +44 -40
- package/dist/components/post-rating.js +3 -4
- package/dist/components/post-stepper-item.d.ts +11 -0
- package/dist/components/post-stepper-item.js +33 -0
- package/dist/components/{post-list-item.d.ts → post-stepper.d.ts} +4 -4
- package/dist/components/post-stepper.js +136 -0
- package/dist/components/{post-tab-header.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/post-tab-item.js +70 -0
- package/dist/components/post-tab-panel.js +8 -9
- package/dist/components/post-tabs.js +192 -37
- package/dist/components/post-togglebutton.js +1 -51
- package/dist/components/post-togglebutton2.js +53 -0
- package/dist/components/post-tooltip-trigger.js +3 -3
- package/dist/components/post-tooltip.js +3 -4
- package/dist/components/react/index.js +1 -1
- package/dist/{cjs/breakpoints-CEkeixld.js → components/react/p-B8YiQ3mz.js} +89 -6
- package/dist/components/react/{p-2U_BGLjc.js → p-BOLlAY91.js} +9 -7
- package/dist/components/react/p-BVCjnh6Q.js +36 -0
- package/dist/components/react/{p-CBFgkSgY.js → p-BVGcVycs.js} +1 -1
- package/dist/components/react/{p-D4NSCxrX.js → p-BYCGzO-t.js} +13 -13
- package/dist/components/react/p-C9hMpmsD.js +11 -0
- package/dist/components/react/{p-BVXiQdHq.js → p-CJ13r5fi.js} +29 -21
- package/dist/components/react/{p-nSFSgY-P.js → p-CnZWXrbA.js} +40 -41
- package/dist/components/react/p-CoDiS_Ik.js +24 -0
- package/dist/components/react/p-CyniMNY-.js +54 -0
- package/dist/components/react/p-D5knoiyy.js +24 -0
- package/dist/components/react/{p-Ccgu_WOx.js → p-DBO6FfHt.js} +4 -5
- package/dist/components/react/{p-BfLuYwf7.js → p-DRfa3MOV.js} +26 -26
- package/dist/components/react/{p-BUxAs8N5.js → p-DYImHx0e.js} +4 -5
- package/dist/components/react/p-DZ5m2Ttg.js +3 -0
- package/dist/components/react/p-FxUVQ4Tx.js +49 -0
- package/dist/components/react/{p-BK474oMI.js → p-L36-yvgK.js} +2 -2
- package/dist/components/react/{p-DVxZMuPW.js → p-NCAcc7ZZ.js} +6 -7
- package/dist/components/react/{p-mENtrn2l.js → p-QNPIvxLq.js} +45 -41
- package/dist/components/react/{p-D3CFjhAf.js → p-_pLhqTys.js} +5 -6
- package/dist/components/react/p-c6yNOQwn.js +113 -0
- package/dist/components/react/{p-CzIKqBrS.js → p-rEfV4v4a.js} +2 -2
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-avatar.js +4 -5
- package/dist/components/react/post-back-to-top.js +16 -42
- package/dist/components/react/post-banner.js +7 -8
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +31 -41
- package/dist/components/react/post-card-control.js +6 -7
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/react/post-env-test.js +32 -0
- package/dist/components/react/post-footer.js +23 -22
- package/dist/components/react/post-header.js +158 -121
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.d.ts +11 -0
- package/dist/components/react/post-language-menu-item.js +99 -0
- package/dist/components/react/{post-language-option.d.ts → post-language-menu.d.ts} +4 -4
- package/dist/components/react/post-language-menu.js +157 -0
- package/dist/components/react/post-linkarea.js +2 -2
- package/dist/components/react/post-logo.js +4 -5
- package/dist/components/react/post-mainnavigation.js +23 -34
- package/dist/components/react/post-megadropdown-trigger.js +74 -81
- package/dist/components/react/post-megadropdown.js +185 -80
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-pagination.d.ts +11 -0
- package/dist/components/react/post-pagination.js +636 -0
- package/dist/components/react/post-popover-trigger.js +42 -27
- package/dist/components/react/post-popover.js +14 -15
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +5 -6
- package/dist/components/react/post-stepper-item.d.ts +11 -0
- package/dist/components/react/post-stepper-item.js +34 -0
- package/dist/components/react/{post-list-item.d.ts → post-stepper.d.ts} +4 -4
- package/dist/components/react/post-stepper.js +137 -0
- package/dist/components/react/{post-tab-header.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/react/post-tab-item.js +71 -0
- package/dist/components/react/post-tab-panel.js +9 -10
- package/dist/components/react/post-tabs.js +193 -38
- package/dist/components/react/post-togglebutton.js +1 -52
- package/dist/components/react/post-tooltip-trigger.js +4 -4
- package/dist/components/react/post-tooltip.js +5 -6
- package/dist/components/utils.js +24 -0
- package/dist/docs.json +968 -563
- package/dist/esm/{breakpoints-CJ80BZ06.js → breakpoints-DYoSKGHO.js} +90 -3
- package/dist/esm/debounce-C9hMpmsD.js +11 -0
- package/dist/esm/environment-CEmnRoA6.js +49 -0
- package/dist/esm/{event-from-CzIKqBrS.js → event-from-rEfV4v4a.js} +2 -2
- package/dist/esm/fade-DsgPYmAa.js +24 -0
- package/dist/esm/fade-slide-CvOvauo9.js +36 -0
- package/dist/esm/{get-focusable-children-D9ZHp2FP.js → get-focusable-children-BXNs2_sw.js} +29 -21
- package/dist/esm/{get-root-BkQ3CrLq.js → get-root-CXfAA093.js} +1 -1
- package/dist/esm/{index-CFNKgUjL.js → index-1ReqxAnI.js} +29 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-DZ5m2Ttg.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +10 -10
- package/dist/esm/post-avatar.entry.js +6 -6
- package/dist/esm/post-back-to-top.entry.js +16 -40
- package/dist/esm/post-banner.entry.js +10 -9
- package/dist/esm/post-breadcrumb-item_2.entry.js +6 -6
- package/dist/esm/post-breadcrumbs.entry.js +20 -29
- package/dist/esm/post-card-control.entry.js +6 -6
- package/dist/esm/{post-closebutton_15.entry.js → post-closebutton_13.entry.js} +518 -486
- package/dist/esm/post-collapsible_2.entry.js +36 -35
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-env-test.entry.js +13 -0
- package/dist/esm/post-footer.entry.js +18 -16
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-pagination.entry.js +587 -0
- package/dist/esm/post-popover-trigger.entry.js +44 -28
- package/dist/esm/post-popover.entry.js +11 -11
- package/dist/esm/post-rating.entry.js +5 -5
- package/dist/esm/post-stepper-item.entry.js +16 -0
- package/dist/esm/post-stepper.entry.js +107 -0
- package/dist/esm/post-tab-item.entry.js +47 -0
- package/dist/esm/post-tab-panel.entry.js +9 -9
- package/dist/esm/post-tabs.entry.js +191 -38
- package/dist/esm/post-tooltip-trigger.entry.js +5 -5
- package/dist/esm/post-tooltip.entry.js +6 -6
- package/dist/esm/utils-CoDiS_Ik.js +24 -0
- package/dist/post-components/{p-8f0fc02a.entry.js → p-130eb074.entry.js} +1 -1
- package/dist/post-components/p-13d018fe.entry.js +1 -0
- package/dist/post-components/p-143e5a84.entry.js +1 -0
- package/dist/post-components/p-1ReqxAnI.js +2 -0
- package/dist/post-components/p-2b220851.entry.js +1 -0
- package/dist/post-components/{p-96750e25.entry.js → p-390f111f.entry.js} +1 -1
- package/dist/post-components/p-3cf09fbd.entry.js +1 -0
- package/dist/post-components/p-52e584ca.entry.js +1 -0
- package/dist/post-components/p-56a4040c.entry.js +1 -0
- package/dist/post-components/p-675dab57.entry.js +1 -0
- package/dist/post-components/p-6857fd9d.entry.js +1 -0
- package/dist/post-components/p-7cd00e3e.entry.js +1 -0
- package/dist/post-components/p-7f5d2487.entry.js +1 -0
- package/dist/post-components/{p-bf41fe56.entry.js → p-88201353.entry.js} +1 -1
- package/dist/post-components/p-89360cd1.entry.js +1 -0
- package/dist/post-components/p-B7ebLhHc.js +1 -0
- package/dist/post-components/p-BVCjnh6Q.js +1 -0
- package/dist/post-components/p-BXNs2_sw.js +1 -0
- package/dist/post-components/p-C9hMpmsD.js +1 -0
- package/dist/post-components/p-CEmnRoA6.js +1 -0
- package/dist/post-components/p-CoDiS_Ik.js +1 -0
- package/dist/post-components/p-D5knoiyy.js +1 -0
- package/dist/post-components/p-DI-h_mEL.js +1 -0
- package/dist/post-components/p-DZ5m2Ttg.js +1 -0
- package/dist/post-components/p-a740eaed.entry.js +1 -0
- package/dist/post-components/{p-261b1452.entry.js → p-a79590f5.entry.js} +1 -1
- package/dist/post-components/p-b708d96a.entry.js +1 -0
- package/dist/post-components/p-bcf5786f.entry.js +1 -0
- package/dist/post-components/p-c92512f5.entry.js +1 -0
- package/dist/post-components/{p-658b1ccc.entry.js → p-d7cb3a61.entry.js} +1 -1
- package/dist/post-components/p-d7f33813.entry.js +1 -0
- package/dist/post-components/p-da97ee21.entry.js +1 -0
- package/dist/post-components/{p-11c204e0.entry.js → p-ed4db774.entry.js} +1 -1
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/prebuild.js +46 -0
- package/dist/types/animations/collapse.d.ts +1 -0
- package/dist/types/animations/fade-slide.d.ts +11 -0
- package/dist/types/animations/fade.d.ts +2 -2
- package/dist/types/animations/index.d.ts +2 -0
- package/dist/types/animations/slide.d.ts +9 -2
- package/dist/types/animations/types.d.ts +13 -0
- package/dist/types/animations/utils.d.ts +2 -0
- package/dist/types/components/post-accordion-item/heading-levels.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +2 -2
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +2 -2
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +6 -6
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +4 -5
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +1 -0
- package/dist/types/components/post-footer/post-footer.d.ts +4 -4
- package/dist/types/components/post-header/post-header.d.ts +28 -19
- package/dist/types/components/{post-language-switch/post-language-switch.d.ts → post-language-menu/post-language-menu.d.ts} +6 -6
- package/dist/types/components/{post-language-option/post-language-option.d.ts → post-language-menu-item/post-language-menu-item.d.ts} +5 -5
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +6 -5
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +20 -2
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +17 -23
- package/dist/types/components/post-menu/post-menu.d.ts +4 -4
- package/dist/types/components/post-pagination/post-pagination.d.ts +224 -0
- package/dist/types/components/post-popover/post-popover.d.ts +3 -3
- package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +2 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +13 -16
- package/dist/types/components/post-rating/post-rating.d.ts +1 -1
- package/dist/types/components/post-stepper/post-stepper.d.ts +39 -0
- package/dist/types/components/post-stepper-item/post-stepper-item.d.ts +3 -0
- package/dist/types/components/post-tab-item/post-tab-item.d.ts +19 -0
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +3 -3
- package/dist/types/components/post-tabs/post-tabs.d.ts +33 -12
- package/dist/types/components.d.ts +357 -186
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/prebuild.d.ts +9 -0
- package/dist/types/types/heading-levels.d.ts +1 -1
- package/dist/types/utils/environment.d.ts +25 -1
- package/dist/types/utils/get-focusable-children.d.ts +2 -2
- package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +5 -0
- package/dist/types/utils/tests/environment/post-env-test.d.ts +3 -0
- package/hydrate/index.js +1882 -833
- package/hydrate/index.mjs +1882 -833
- package/package.json +9 -11
- package/dist/cjs/fade-nS5zzDQS.js +0 -14
- package/dist/cjs/index-DtvYdwe1.js +0 -96
- package/dist/cjs/post-tab-header.cjs.entry.js +0 -31
- package/dist/collection/animations/slide-and-fade.js +0 -25
- package/dist/collection/components/post-language-option/post-language-option.css +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.css +0 -1
- package/dist/collection/components/post-list/post-list.css +0 -1
- package/dist/collection/components/post-list/post-list.js +0 -97
- package/dist/collection/components/post-list-item/post-list-item.css +0 -1
- package/dist/collection/components/post-list-item/post-list-item.js +0 -26
- package/dist/collection/components/post-tab-header/post-tab-header.css +0 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +0 -65
- package/dist/components/index2.js +0 -88
- package/dist/components/post-language-option.d.ts +0 -11
- package/dist/components/post-language-option.js +0 -99
- package/dist/components/post-language-switch.js +0 -157
- package/dist/components/post-list-item.js +0 -38
- package/dist/components/post-list.js +0 -61
- package/dist/components/post-tab-header.js +0 -52
- package/dist/components/react/p-BXRsHuTS.js +0 -3
- package/dist/components/react/p-CV7fm1rW.js +0 -88
- package/dist/components/react/p-Dj7qWba5.js +0 -114
- package/dist/components/react/p-SbIC4aZX.js +0 -11
- package/dist/components/react/post-language-option.js +0 -100
- package/dist/components/react/post-language-switch.d.ts +0 -11
- package/dist/components/react/post-language-switch.js +0 -158
- package/dist/components/react/post-list-item.js +0 -39
- package/dist/components/react/post-list.js +0 -62
- package/dist/components/react/post-tab-header.js +0 -53
- package/dist/esm/fade-SbIC4aZX.js +0 -11
- package/dist/esm/index-VmK3ABCB.js +0 -88
- package/dist/esm/package-BXRsHuTS.js +0 -3
- package/dist/esm/post-tab-header.entry.js +0 -29
- package/dist/post-components/p-02ea3ec5.entry.js +0 -1
- package/dist/post-components/p-0e92dbef.entry.js +0 -1
- package/dist/post-components/p-0ec2bdd7.entry.js +0 -1
- package/dist/post-components/p-197a0f25.entry.js +0 -1
- package/dist/post-components/p-3274ab81.entry.js +0 -1
- package/dist/post-components/p-77e43032.entry.js +0 -1
- package/dist/post-components/p-BXRsHuTS.js +0 -1
- package/dist/post-components/p-CBFgkSgY.js +0 -1
- package/dist/post-components/p-CFNKgUjL.js +0 -2
- package/dist/post-components/p-CJ80BZ06.js +0 -1
- package/dist/post-components/p-D9ZHp2FP.js +0 -1
- package/dist/post-components/p-SbIC4aZX.js +0 -1
- package/dist/post-components/p-VmK3ABCB.js +0 -1
- package/dist/post-components/p-b5b5e4b9.entry.js +0 -1
- package/dist/post-components/p-b8059ba1.entry.js +0 -1
- package/dist/post-components/p-d6134e24.entry.js +0 -1
- package/dist/post-components/p-e7029b9e.entry.js +0 -1
- package/dist/post-components/p-e90688ab.entry.js +0 -1
- package/dist/post-components/p-ea5da614.entry.js +0 -1
- package/dist/post-components/p-f1b815b6.entry.js +0 -1
- package/dist/types/animations/slide-and-fade.d.ts +0 -2
- package/dist/types/components/post-list/post-list.d.ts +0 -24
- package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +0 -14
- /package/dist/collection/components/{post-language-switch → post-language-menu}/switch-variants.js +0 -0
- /package/dist/post-components/{p-CzIKqBrS.js → p-rEfV4v4a.js} +0 -0
- /package/dist/types/components/{post-language-switch → post-language-menu}/switch-variants.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as
|
|
1
|
+
import{p as e,g as t,b as a}from"./p-1ReqxAnI.js";export{s as setNonce}from"./p-1ReqxAnI.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await t(),a([["p-3cf09fbd",[[1,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],breadcrumbItems:[32],isConcatenated:[32],lastWindowWidth:[32]},null,{homeUrl:["validateHomeUrl"],textHome:["validateTextHome"],textBreadcrumbs:["validateTextBreadcrumbs"],textMoreItems:["validateTextMoreItems"]}]]],["p-a740eaed",[[1,"post-footer",{textFooter:[513,"text-footer"],device:[32],gridSlotDisplayed:[32]},null,{textFooter:["validateTextFooter"]}]]],["p-6857fd9d",[[1,"post-popover",{placement:[1],textClose:[513,"text-close"],arrow:[4],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"],textClose:["validateTextClose"]}]]],["p-b708d96a",[[1,"post-back-to-top",{textBackToTop:[513,"text-back-to-top"],belowFold:[32]},null,{textBackToTop:["validateTextBackToTop"],belowFold:["watchBelowFold"]}]]],["p-130eb074",[[65,"post-card-control",{label:[513],description:[1],type:[513],name:[1],value:[1],checked:[1028],disabled:[1028],validity:[1028],icon:[1],focused:[32],reset:[64],groupReset:[64]},null,{label:["validateControlLabel"],description:["validateControlDescription"],type:["validateControlType"],name:["validateControlName"],value:["validateControlValue"],icon:["validateControlIcon"],checked:["updateControlChecked"],disabled:["updateControlDisabled"]}]]],["p-7f5d2487",[[1,"post-pagination",{page:[1026],pageSize:[514,"page-size"],collectionSize:[514,"collection-size"],label:[513],textPrevious:[513,"text-previous"],textNext:[513,"text-next"],textPage:[513,"text-page"],textFirst:[513,"text-first"],textLast:[513,"text-last"],disabled:[4],paginationId:[32],maxVisiblePages:[32],items:[32]},null,{page:["validatePage","handlePropsChange"],pageSize:["validatePageSize","handlePropsChange"],collectionSize:["validateCollectionSize","handlePropsChange"],label:["validateLabel"],textPrevious:["validateTextPrevious"],textNext:["validateTextNext"],textPage:["validateTextPage"],textFirst:["validateTextFirst"],textLast:["validateTextLast"],disabled:["validateDisabled"]}]]],["p-a79590f5",[[1,"post-rating",{label:[513],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]},null,{label:["validateLabel"],stars:["validateStars"],currentRating:["validateCurrentRating"]}]]],["p-390f111f",[[1,"post-tooltip",{placement:[1],arrow:[4],animation:[1],open:[1540],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"]}]]],["p-ed4db774",[[1,"post-avatar",{firstname:[513],lastname:[1],userid:[1],email:[1],description:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32],storageKey:[32]},null,{firstname:["validateFirstname"],lastname:["validateLastname"],userid:["updateUserid"],email:["updateEmail"],description:["validateDescription"]}]]],["p-7cd00e3e",[[1,"post-banner",{type:[513],hasActions:[32],dismiss:[64]},[[0,"click","onCloseButtonClick"]],{type:["validateType"]}]]],["p-143e5a84",[[1,"post-env-test"]]],["p-89360cd1",[[1,"post-linkarea",{interactiveElements:[32]}]]],["p-13d018fe",[[1,"post-popover-trigger",{for:[513],ariaExpanded:[32],popoverOpen:[32]},null,{popoverOpen:["syncAriaExpanded"],for:["validateFor"]}]]],["p-bcf5786f",[[1,"post-stepper",{textCurrentStep:[513,"text-current-step"],textCompletedStep:[513,"text-completed-step"],textStepNumber:[513,"text-step-number"],currentIndex:[2,"current-index"],mobileActiveStepLabel:[32],mobileActiveStepName:[32]},null,{textCurrentStep:["validateTextCurrentStep"],textCompletedStep:["validateTextCompletedStep"],textStepNumber:["validateTextStepNumber"],currentIndex:["validateCurrentIndex"]}]]],["p-675dab57",[[4,"post-stepper-item"]]],["p-2b220851",[[1,"post-tab-item",{name:[513],tabId:[32],isNavigationMode:[32]},null,{name:["validateName"]}]]],["p-52e584ca",[[1,"post-tab-panel",{for:[513],panelId:[32]},null,{for:["validateFor"]}]]],["p-56a4040c",[[1,"post-tabs",{activeTab:[1,"active-tab"],fullWidth:[516,"full-width"],label:[513],isNavigationMode:[32],show:[64]},null,{label:["validateLabel"]}]]],["p-88201353",[[1,"post-tooltip-trigger",{for:[513],delay:[2]},null,{for:["validateControlFor"]}]]],["p-c92512f5",[[1,"post-collapsible",{collapsed:[1028],toggle:[64]},null,{collapsed:["collapsedChange"]}],[1,"post-collapsible-trigger",{for:[513],update:[64]},null,{for:["validateAriaAttributes"]}]]],["p-d7f33813",[[1,"post-language-menu",{textChangeLanguage:[513,"text-change-language"],textCurrentLanguage:[513,"text-current-language"],variant:[1],activeLang:[32]},[[0,"postChange","handlePostChange"],[0,"postLanguageMenuItemInitiallyActive","handleInitiallyActive"]],{textChangeLanguage:["validateCaption"],textCurrentLanguage:["validateDescription"],variant:["validateVariant"]}],[1,"post-header",{textMenu:[513,"text-menu"],device:[32],hasNavigation:[32],hasLocalNav:[32],hasAudience:[32],hasTitle:[32],burgerMenuExtended:[32],megadropdownOpen:[32],toggleBurgerMenu:[64]},[[0,"focusin","onFocusChange"],[0,"focusout","onFocusChange"]],{textMenu:["validateTextMenu"],device:["lockBody"],burgerMenuExtended:["lockBody"]}],[1,"post-megadropdown",{textClose:[513,"text-close"],textBack:[513,"text-back"],device:[32],isVisible:[32],trigger:[32],megadropdownTitle:[32],animationClass:[32],toggle:[64],show:[64],hide:[64],focusFirst:[64]},null,{textClose:["validateTextClose"],textBack:["validateTextBack"]}],[1,"post-mainnavigation",{textMain:[513,"text-main"],canScrollLeft:[32],canScrollRight:[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]],{textMain:["validateTextMain"]}],[1,"post-megadropdown-trigger",{active:[516],for:[513],isMegadropdownExpanded:[32],slottedContent:[32]},null,{for:["validateFor"]}],[4,"post-language-menu-item",{code:[513],active:[1540],variant:[1],name:[1],url:[1],select:[64]},null,{code:["validateCode"],variant:["validateVariant"],name:["validateName"],url:["validateUrl"]}],[1,"post-logo",{url:[1]},null,{url:["validateUrl"]}],[1,"post-togglebutton",{toggled:[1028]}],[4,"post-closebutton",{buttonType:[1,"button-type"]},null,{buttonType:["validateButtonType"]}],[1,"post-menu",{placement:[1],label:[513],isVisible:[32],toggle:[64],show:[64],hide:[64]},null,{placement:["validatePlacement"],label:["validateLabel"]}],[4,"post-menu-trigger",{for:[513],ariaExpanded:[32]},null,{for:["validateControlFor"]}],[4,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],animation:[1],arrow:[4],safeSpace:[513,"safe-space"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]},null,{placement:["validatePlacement"],edgeGap:["validateEdgeGap"],safeSpace:["validateSafeSpace"]}],[1,"post-icon",{animation:[1],base:[1],flipH:[4,"flip-h"],flipV:[4,"flip-v"],name:[513],rotate:[2],scale:[2]},null,{animation:["validateAnimation"],base:["validateBase"],name:["validateName"],rotate:["validateRotate"],scale:["validateScale"]}]]],["p-da97ee21",[[1,"post-accordion-item",{collapsed:[1028],headingLevel:[2,"heading-level"],id:[32],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]],{headingLevel:["validateHeadingLevel"]}],[1,"post-accordion",{headingLevel:[514,"heading-level"],multiple:[4],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:["validateHeadingLevel"]}]]],["p-d7cb3a61",[[1,"post-breadcrumb-item",{url:[1],fullUrl:[32]},null,{url:["validateUrl"]}],[4,"post-menu-item"]]]],e))));
|
package/dist/prebuild.js
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import fs from "fs";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { format } from "prettier";
|
|
4
|
+
const DEFAULT_OUTPUT_OPTIONS = {
|
|
5
|
+
type: 'json',
|
|
6
|
+
template: '{{names}}',
|
|
7
|
+
lineSeparator: ',',
|
|
8
|
+
formatParser: null,
|
|
9
|
+
};
|
|
10
|
+
export const componentNameOutputOptions = [
|
|
11
|
+
{
|
|
12
|
+
template: '{ componentNames: [{{names}}] }',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
type: 'scss',
|
|
16
|
+
template: '$component-names: ({{names}});',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
export async function createComponentNameOutput(outputOptionsArray) {
|
|
20
|
+
// Define the source and output paths
|
|
21
|
+
const SOURCE_PATH = [path.resolve('src/components')];
|
|
22
|
+
const OUTPUT_PATH = path.resolve('src/_generated');
|
|
23
|
+
// Process component names
|
|
24
|
+
const componentNames = SOURCE_PATH.reduce((names, srcPath) => {
|
|
25
|
+
if (fs.existsSync(srcPath)) {
|
|
26
|
+
const fileNames = fs.readdirSync(srcPath);
|
|
27
|
+
const camelCaseNames = fileNames.map((name) => name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase());
|
|
28
|
+
names.push(...camelCaseNames);
|
|
29
|
+
}
|
|
30
|
+
return names;
|
|
31
|
+
}, []);
|
|
32
|
+
// Ensure the output directory exists
|
|
33
|
+
fs.mkdirSync(OUTPUT_PATH, { recursive: true });
|
|
34
|
+
await Promise.all(outputOptionsArray.map(async (outputOptions = {}) => {
|
|
35
|
+
const options = { ...DEFAULT_OUTPUT_OPTIONS, ...outputOptions };
|
|
36
|
+
const names = componentNames.map(n => `'${n}'`).join(options.lineSeparator);
|
|
37
|
+
const template = options.template.replace('{{names}}', names);
|
|
38
|
+
const output = await format(template, { parser: options.formatParser || options.type });
|
|
39
|
+
// Write the SCSS file
|
|
40
|
+
fs.writeFileSync(`${OUTPUT_PATH}/component-names.${options.type}`, output, 'utf8');
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
function prebuild() {
|
|
44
|
+
createComponentNameOutput(componentNameOutputOptions);
|
|
45
|
+
}
|
|
46
|
+
prebuild();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Used by
|
|
3
|
+
* 1. PostHeader (burger menu)
|
|
4
|
+
* 2. PostMegadropdown
|
|
5
|
+
* 3. BackToTopButton
|
|
6
|
+
*/
|
|
7
|
+
import { AnimationOptions } from './types';
|
|
8
|
+
export type FadeSlideOptions = AnimationOptions & {
|
|
9
|
+
translate: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function fadeSlide(el: Element, direction: 'in' | 'out', options: Partial<FadeSlideOptions>): Animation;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function
|
|
1
|
+
import { AnimationOptions } from './types';
|
|
2
|
+
export declare function fade(el: Element, direction: 'in' | 'out', options?: Partial<AnimationOptions>): Animation;
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Used by PostMegadropdown (burger menu)
|
|
3
|
+
*/
|
|
4
|
+
import { AnimationOptions } from './types';
|
|
5
|
+
type SlideOptions = Partial<AnimationOptions> & {
|
|
6
|
+
translate?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function slide(el: HTMLElement, direction: 'in' | 'out', options?: SlideOptions): Animation;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type CurveEasing = {
|
|
2
|
+
x1: number;
|
|
3
|
+
y1: number;
|
|
4
|
+
x2: number;
|
|
5
|
+
y2: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const PRESET_MAP: Record<PresetEasing | 'headerEase', CurveEasing | PresetEasing>;
|
|
8
|
+
export type PresetEasing = 'linear' | 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | 'headerEase';
|
|
9
|
+
export interface AnimationOptions {
|
|
10
|
+
duration: number;
|
|
11
|
+
easing: CurveEasing | PresetEasing;
|
|
12
|
+
fill: FillMode;
|
|
13
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const HEADING_LEVELS: readonly [1, 2, 3, 4, 5, 6];
|
|
2
|
-
export type HeadingLevel = typeof HEADING_LEVELS[number];
|
|
2
|
+
export type HeadingLevel = (typeof HEADING_LEVELS)[number];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HeadingLevel } from "../../types/index";
|
|
2
2
|
/**
|
|
3
|
-
* @part button - The element that toggles the accordion item (header button).
|
|
4
|
-
* @part body - The
|
|
3
|
+
* @part post-accordion-button - The element that toggles the accordion item (header button).
|
|
4
|
+
* @part post-accordion-body - The element that holds the accordion item's content.
|
|
5
5
|
* @slot logo - Slot for placing a logo in the accordion item’s header, before the content.
|
|
6
6
|
* @slot header - Slot for placing custom content within the accordion item's header.
|
|
7
7
|
* @slot default - Slot for placing content within the accordion item's body.
|
|
@@ -4,12 +4,12 @@ export declare class PostBackToTop {
|
|
|
4
4
|
* The label of the back-to-top button, intended solely for accessibility purposes.
|
|
5
5
|
* This label is always hidden from view.
|
|
6
6
|
**/
|
|
7
|
-
|
|
7
|
+
textBackToTop: string;
|
|
8
8
|
belowFold: boolean;
|
|
9
9
|
private translateY;
|
|
10
10
|
private isBelowFold;
|
|
11
11
|
private readonly handleScroll;
|
|
12
|
-
|
|
12
|
+
validateTextBackToTop(): void;
|
|
13
13
|
watchBelowFold(newValue: boolean): void;
|
|
14
14
|
private scrollToTop;
|
|
15
15
|
private getSecondPixelValue;
|
|
@@ -7,15 +7,15 @@ export declare class PostBreadcrumbs {
|
|
|
7
7
|
/**
|
|
8
8
|
* The text label for the home breadcrumb item.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
textHome: string;
|
|
11
11
|
/**
|
|
12
12
|
* The accessible label for the breadcrumb component.
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
textBreadcrumbs: string;
|
|
15
15
|
/**
|
|
16
16
|
* The accessible label for the breadcrumb menu when breadcrumb items are concatenated.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
textMoreItems: string;
|
|
19
19
|
breadcrumbItems: {
|
|
20
20
|
url: string;
|
|
21
21
|
text: string;
|
|
@@ -25,9 +25,9 @@ export declare class PostBreadcrumbs {
|
|
|
25
25
|
private breadcrumbsNavRef?;
|
|
26
26
|
private lastItem;
|
|
27
27
|
validateHomeUrl(): void;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
validateTextHome(): void;
|
|
29
|
+
validateTextBreadcrumbs(): void;
|
|
30
|
+
validateTextMoreItems(): void;
|
|
31
31
|
componentWillLoad(): void;
|
|
32
32
|
componentDidLoad(): void;
|
|
33
33
|
disconnectedCallback(): void;
|
|
@@ -3,8 +3,6 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
3
3
|
* @slot default - Slot for placing content within the collapsible element.
|
|
4
4
|
*/
|
|
5
5
|
export declare class PostCollapsible {
|
|
6
|
-
private isLoaded;
|
|
7
|
-
private isOpen;
|
|
8
6
|
host: HTMLPostCollapsibleElement;
|
|
9
7
|
/**
|
|
10
8
|
* If `true`, the element is collapsed otherwise it is displayed.
|
|
@@ -14,16 +12,17 @@ export declare class PostCollapsible {
|
|
|
14
12
|
/**
|
|
15
13
|
* An event emitted when the collapse element is shown or hidden, before the transition.
|
|
16
14
|
*
|
|
17
|
-
* The event payload is a boolean: `true` if the collapsible
|
|
15
|
+
* The event payload is a boolean: `true` if the collapsible is expanded, `false` if it is collapsed.
|
|
18
16
|
*/
|
|
19
17
|
postToggle: EventEmitter<boolean>;
|
|
18
|
+
get isExpanded(): boolean;
|
|
20
19
|
componentDidLoad(): void;
|
|
21
20
|
/**
|
|
22
21
|
* Triggers the collapse programmatically.
|
|
23
|
-
*
|
|
24
22
|
* If there is a collapsing transition running already, it will be reversed.
|
|
23
|
+
* If no parameter is provided, the current state (this.isExpanded) will be toggled.
|
|
25
24
|
*/
|
|
26
|
-
toggle(
|
|
25
|
+
toggle(shouldExpand?: boolean): Promise<boolean>;
|
|
27
26
|
/**
|
|
28
27
|
* Update all post-collapsible-trigger elements referring to the collapsible
|
|
29
28
|
*/
|
|
@@ -11,6 +11,7 @@ export declare class PostCollapsibleTrigger {
|
|
|
11
11
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
12
12
|
*/
|
|
13
13
|
validateAriaAttributes(): void;
|
|
14
|
+
constructor();
|
|
14
15
|
/**
|
|
15
16
|
* Initiate a mutation observer that updates the trigger whenever necessary
|
|
16
17
|
*/
|
|
@@ -11,18 +11,18 @@ import { Device } from "../../utils/index";
|
|
|
11
11
|
export declare class PostFooter {
|
|
12
12
|
host: HTMLPostFooterElement;
|
|
13
13
|
/**
|
|
14
|
-
* The
|
|
14
|
+
* The textFooter to add to the footer (visually hidden).
|
|
15
15
|
*/
|
|
16
|
-
readonly
|
|
16
|
+
readonly textFooter: string;
|
|
17
17
|
device: Device;
|
|
18
18
|
gridSlotDisplayed: Record<string, boolean>;
|
|
19
|
-
|
|
19
|
+
validateTextFooter(): void;
|
|
20
20
|
constructor();
|
|
21
21
|
connectedCallback(): void;
|
|
22
22
|
componentWillLoad(): void;
|
|
23
23
|
disconnectedCallback(): void;
|
|
24
24
|
private readonly breakpointChange;
|
|
25
|
-
private
|
|
25
|
+
private handleGridSlotChange;
|
|
26
26
|
private updateGridSlotDisplay;
|
|
27
27
|
private renderAccordion;
|
|
28
28
|
private renderColumns;
|
|
@@ -1,33 +1,42 @@
|
|
|
1
1
|
import { Device } from "../../utils/breakpoints";
|
|
2
2
|
/**
|
|
3
3
|
* @slot post-logo - Should be used together with the `<post-logo>` component.
|
|
4
|
-
* @slot global-
|
|
5
|
-
* @slot
|
|
6
|
-
* @slot
|
|
7
|
-
* @slot post-language-switch - Should be used with the `<post-language-switch>` component.
|
|
4
|
+
* @slot global-nav-primary - Holds search button in the global header.
|
|
5
|
+
* @slot global-nav-secondary - Holds an `<ul>` with meta navigation links.
|
|
6
|
+
* @slot language-menu - Should be used with the `<post-language-switch>` component.
|
|
8
7
|
* @slot title - Holds the application title.
|
|
9
|
-
* @slot
|
|
10
|
-
* @slot
|
|
11
|
-
* @slot
|
|
12
|
-
* @slot
|
|
13
|
-
* @slot navigation-controls - Custom controls, right aligned with the main navigation.
|
|
8
|
+
* @slot main-nav - Has a default slot because it's only meant to be used in the `<post-header>`.
|
|
9
|
+
* @slot audience - Holds the list of buttons to choose the audience.
|
|
10
|
+
* @slot post-login - Holds the user menu or login button in the global header.
|
|
11
|
+
* @slot local-nav - Holds controls specific to the current application.
|
|
14
12
|
*/
|
|
15
13
|
export declare class PostHeader {
|
|
16
14
|
private firstFocusableEl;
|
|
17
15
|
private lastFocusableEl;
|
|
18
|
-
private
|
|
19
|
-
private
|
|
16
|
+
private burgerMenuButton;
|
|
17
|
+
private burgerMenu;
|
|
18
|
+
private burgerMenuAnimation;
|
|
20
19
|
private readonly throttledResize;
|
|
21
20
|
private scrollParentResizeObserver;
|
|
22
21
|
private localHeaderResizeObserver;
|
|
23
|
-
private
|
|
22
|
+
private slottedContentObserver;
|
|
23
|
+
private localHeader;
|
|
24
|
+
private get hasBurgerMenu();
|
|
25
|
+
private animationOptions;
|
|
24
26
|
get scrollParent(): HTMLElement;
|
|
25
27
|
host: HTMLPostHeaderElement;
|
|
26
28
|
device: Device;
|
|
27
29
|
hasNavigation: boolean;
|
|
30
|
+
hasLocalNav: boolean;
|
|
31
|
+
hasAudience: boolean;
|
|
28
32
|
hasTitle: boolean;
|
|
29
|
-
|
|
33
|
+
burgerMenuExtended: boolean;
|
|
30
34
|
megadropdownOpen: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* The label of the burger menu button.
|
|
37
|
+
*/
|
|
38
|
+
textMenu: string;
|
|
39
|
+
validateTextMenu(): void;
|
|
31
40
|
lockBody(newValue: boolean | string, _oldValue: boolean | string, propName: string): void;
|
|
32
41
|
constructor();
|
|
33
42
|
private readonly breakpointChange;
|
|
@@ -36,16 +45,13 @@ export declare class PostHeader {
|
|
|
36
45
|
componentDidRender(): void;
|
|
37
46
|
componentDidLoad(): void;
|
|
38
47
|
disconnectedCallback(): void;
|
|
39
|
-
private
|
|
40
|
-
private checkTitleExistence;
|
|
41
|
-
private closeMobileMenu;
|
|
48
|
+
private closeBurgerMenu;
|
|
42
49
|
/**
|
|
43
|
-
* Toggles the
|
|
50
|
+
* Toggles the burger navigation menu.
|
|
44
51
|
*/
|
|
45
|
-
|
|
52
|
+
toggleBurgerMenu(force?: boolean): Promise<void>;
|
|
46
53
|
private megadropdownStateHandler;
|
|
47
54
|
private getFocusableElements;
|
|
48
|
-
private getMenuButton;
|
|
49
55
|
private keyboardHandler;
|
|
50
56
|
private closeAllMegadropdowns;
|
|
51
57
|
private handleScrollEvent;
|
|
@@ -54,7 +60,10 @@ export declare class PostHeader {
|
|
|
54
60
|
private handleLinkClick;
|
|
55
61
|
private handleScrollParentResize;
|
|
56
62
|
private handleLocalHeaderResize;
|
|
63
|
+
private handleSlottedContentChanges;
|
|
64
|
+
private checkSlottedContent;
|
|
57
65
|
private switchLanguageSwitchMode;
|
|
66
|
+
onFocusChange(e: FocusEvent): void;
|
|
58
67
|
private renderNavigation;
|
|
59
68
|
render(): any;
|
|
60
69
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SwitchVariant } from './switch-variants';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class PostLanguageMenu {
|
|
3
3
|
private readonly menuId;
|
|
4
4
|
private readonly listSpanId;
|
|
5
5
|
private get languageOptions();
|
|
6
|
-
host:
|
|
6
|
+
host: HTMLPostLanguageMenuElement;
|
|
7
7
|
/**
|
|
8
8
|
* A title for the list of language options
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
textChangeLanguage: string;
|
|
11
11
|
validateCaption(): void;
|
|
12
12
|
/**
|
|
13
13
|
* A descriptive text for the list of language options
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
textCurrentLanguage: string;
|
|
16
16
|
validateDescription(): void;
|
|
17
17
|
/**
|
|
18
18
|
* Whether the component is rendered as a list or a menu
|
|
@@ -25,12 +25,12 @@ export declare class PostLanguageSwitch {
|
|
|
25
25
|
activeLang: string;
|
|
26
26
|
componentDidLoad(): void;
|
|
27
27
|
/**
|
|
28
|
-
* Listen for the postChange event and guard it to run only for events originating from a <post-language-
|
|
28
|
+
* Listen for the postChange event and guard it to run only for events originating from a <post-language-menu-item> element.
|
|
29
29
|
*/
|
|
30
30
|
handlePostChange(event: CustomEvent<string>): void;
|
|
31
31
|
/**
|
|
32
32
|
* Handles cases where the language switch is being rendered before options are available
|
|
33
|
-
* @param event Initially emitted by <post-
|
|
33
|
+
* @param event Initially emitted by <post-language-menu-item>
|
|
34
34
|
*/
|
|
35
35
|
handleInitiallyActive(event: CustomEvent<string>): void;
|
|
36
36
|
private updateChildrenVariant;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import { SwitchVariant } from '../post-language-
|
|
2
|
+
import { SwitchVariant } from '../post-language-menu/switch-variants';
|
|
3
3
|
/**
|
|
4
4
|
* @slot default - Slot for placing the content inside the anchor or button.
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
7
|
-
host:
|
|
6
|
+
export declare class PostLanguageMenuItem {
|
|
7
|
+
host: HTMLPostLanguageMenuItemElement;
|
|
8
8
|
/**
|
|
9
9
|
* The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, "de".
|
|
10
10
|
*/
|
|
@@ -15,7 +15,7 @@ export declare class PostLanguageOption {
|
|
|
15
15
|
*/
|
|
16
16
|
active?: boolean;
|
|
17
17
|
/**
|
|
18
|
-
* To communicate the variant prop from the parent (post-language-
|
|
18
|
+
* To communicate the variant prop from the parent (post-language-menu) component to the child (post-language-menu-item) component. See parent docs for a description about the property itself.
|
|
19
19
|
*/
|
|
20
20
|
variant?: SwitchVariant;
|
|
21
21
|
validateVariant(): void;
|
|
@@ -38,7 +38,7 @@ export declare class PostLanguageOption {
|
|
|
38
38
|
/**
|
|
39
39
|
* An event emitted when the language option is initially active. The payload is the ISO 639 code of the language.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
postLanguageMenuItemInitiallyActive: EventEmitter<string>;
|
|
42
42
|
/**
|
|
43
43
|
* Selects the language option programmatically.
|
|
44
44
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare class PostMainnavigation {
|
|
2
|
+
host: HTMLPostMainnavigationElement;
|
|
2
3
|
private navbar;
|
|
3
4
|
private scrollRepeatInterval;
|
|
4
5
|
private navbarDisableTimer;
|
|
@@ -6,6 +7,11 @@ export declare class PostMainnavigation {
|
|
|
6
7
|
private mutationObserver;
|
|
7
8
|
canScrollLeft: boolean;
|
|
8
9
|
canScrollRight: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Defines the accessible label for the navigation element. This text is used as the `aria-label` attribute to provide screen reader users with a description of the navigation's purpose.
|
|
12
|
+
*/
|
|
13
|
+
textMain: string;
|
|
14
|
+
validateTextMain(): void;
|
|
9
15
|
constructor();
|
|
10
16
|
componentDidLoad(): void;
|
|
11
17
|
/**
|
|
@@ -16,12 +22,7 @@ export declare class PostMainnavigation {
|
|
|
16
22
|
* Stops the repeated scrolling when the mouse button is released.
|
|
17
23
|
*/
|
|
18
24
|
stopScrolling(): void;
|
|
19
|
-
private handleMutations;
|
|
20
25
|
private get navigationItems();
|
|
21
|
-
/**
|
|
22
|
-
* Hack to fix the layout shift due to bold text on active elements
|
|
23
|
-
*/
|
|
24
|
-
private fixLayoutShift;
|
|
25
26
|
/**
|
|
26
27
|
* Returns whether scrolling is enabled in either the left or right direction.
|
|
27
28
|
*/
|
|
@@ -6,7 +6,21 @@ export declare class PostMegadropdown {
|
|
|
6
6
|
/** Tracks the currently active dropdown instance. */
|
|
7
7
|
private static activeDropdown;
|
|
8
8
|
private defaultSlotObserver;
|
|
9
|
+
private currentAnimation;
|
|
10
|
+
private animatedContainer;
|
|
11
|
+
private isAnimating;
|
|
12
|
+
private fsAnimationOptions;
|
|
9
13
|
host: HTMLPostMegadropdownElement;
|
|
14
|
+
/**
|
|
15
|
+
* An accessible label for the close button visible on desktop
|
|
16
|
+
*/
|
|
17
|
+
textClose: string;
|
|
18
|
+
validateTextClose(): void;
|
|
19
|
+
/**
|
|
20
|
+
* A label for the back button visible on tablet and mobile
|
|
21
|
+
*/
|
|
22
|
+
textBack: string;
|
|
23
|
+
validateTextBack(): void;
|
|
10
24
|
device: Device;
|
|
11
25
|
/**
|
|
12
26
|
* Holds the current visibility state of the dropdown.
|
|
@@ -15,6 +29,7 @@ export declare class PostMegadropdown {
|
|
|
15
29
|
*/
|
|
16
30
|
isVisible: boolean;
|
|
17
31
|
trigger: boolean;
|
|
32
|
+
megadropdownTitle: string;
|
|
18
33
|
/** Holds the current animation class. */
|
|
19
34
|
animationClass: string | null;
|
|
20
35
|
private get megadropdownTrigger();
|
|
@@ -28,6 +43,7 @@ export declare class PostMegadropdown {
|
|
|
28
43
|
isVisible: boolean;
|
|
29
44
|
focusParent?: boolean;
|
|
30
45
|
}>;
|
|
46
|
+
constructor();
|
|
31
47
|
connectedCallback(): void;
|
|
32
48
|
componentDidRender(): void;
|
|
33
49
|
componentDidLoad(): void;
|
|
@@ -48,12 +64,14 @@ export declare class PostMegadropdown {
|
|
|
48
64
|
* Sets focus to the first focusable element within the component.
|
|
49
65
|
*/
|
|
50
66
|
focusFirst(): Promise<void>;
|
|
51
|
-
private breakpointChange;
|
|
52
67
|
/**
|
|
53
68
|
* Forces the dropdown to close without animation.
|
|
54
69
|
*/
|
|
55
70
|
private forceClose;
|
|
56
|
-
private
|
|
71
|
+
private createAnimation;
|
|
72
|
+
private animate;
|
|
73
|
+
private cancelAnimation;
|
|
74
|
+
private breakpointChange;
|
|
57
75
|
private readonly handleClickOutside;
|
|
58
76
|
private addListeners;
|
|
59
77
|
private removeListeners;
|
|
@@ -1,33 +1,27 @@
|
|
|
1
1
|
export declare class PostMegadropdownTrigger {
|
|
2
|
-
/**
|
|
3
|
-
* ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown.
|
|
4
|
-
*/
|
|
5
|
-
for: string;
|
|
6
2
|
host: HTMLPostMegadropdownTriggerElement;
|
|
3
|
+
private mutationObserver;
|
|
4
|
+
private interactiveButton;
|
|
5
|
+
private isMegadropdownExpanded;
|
|
6
|
+
private slottedContent;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
ariaExpanded: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Reference to the slotted button within the trigger, if present.
|
|
13
|
-
* Used to manage click and key events for mega dropdown control.
|
|
8
|
+
* Sets the trigger state to be active or inactive.
|
|
14
9
|
*/
|
|
15
|
-
|
|
10
|
+
active: boolean;
|
|
16
11
|
/**
|
|
17
|
-
*
|
|
18
|
-
* Used to determine if this trigger should handle focus when its dropdown closes.
|
|
19
|
-
*/
|
|
20
|
-
private wasExpanded;
|
|
21
|
-
/**
|
|
22
|
-
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
23
|
-
* @param forValue - The new value of the `for` property.
|
|
12
|
+
* ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown.
|
|
24
13
|
*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
14
|
+
for: string;
|
|
15
|
+
validateFor(): void;
|
|
16
|
+
constructor();
|
|
17
|
+
connectedCallback(): void;
|
|
18
|
+
componentWillLoad(): void;
|
|
30
19
|
componentDidLoad(): void;
|
|
31
20
|
disconnectedCallback(): void;
|
|
21
|
+
private cloneSlottedButton;
|
|
22
|
+
private get megadropdown();
|
|
23
|
+
private onClick;
|
|
24
|
+
private onKeyDown;
|
|
25
|
+
private onMegadropdownToggled;
|
|
32
26
|
render(): any;
|
|
33
27
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
import { Placement } from '@floating-ui/dom';
|
|
3
3
|
/**
|
|
4
|
-
* @part menu - The container element that holds the list of menu items.
|
|
4
|
+
* @part post-menu - The container element that holds the list of menu items.
|
|
5
5
|
* @slot header - Holds the header part of the menu.
|
|
6
6
|
*/
|
|
7
7
|
export declare class PostMenu {
|
|
@@ -17,7 +17,7 @@ export declare class PostMenu {
|
|
|
17
17
|
readonly placement?: Placement;
|
|
18
18
|
validatePlacement(): void;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* A descriptive label that clearly identifies the menu’s content so assistive technologies can convey its purpose.
|
|
21
21
|
*/
|
|
22
22
|
readonly label: string;
|
|
23
23
|
validateLabel(): void;
|
|
@@ -51,8 +51,8 @@ export declare class PostMenu {
|
|
|
51
51
|
*/
|
|
52
52
|
hide(): Promise<void>;
|
|
53
53
|
private readonly handleKeyDown;
|
|
54
|
-
private
|
|
55
|
-
private
|
|
54
|
+
private handlePostShown;
|
|
55
|
+
private handlePostToggled;
|
|
56
56
|
private readonly handleClick;
|
|
57
57
|
private controlKeyDownHandler;
|
|
58
58
|
private getSlottedItems;
|