@swisspost/design-system-components 10.0.0-next.55 → 10.0.0-next.57
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-B4gYpuJF.js → index-B4rc1pqu.js} +2150 -292
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-DkJrv93P.js → package-uQ5oiSiN.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +19 -15
- package/dist/cjs/post-avatar.cjs.entry.js +27 -17
- package/dist/cjs/post-back-to-top.cjs.entry.js +23 -43
- package/dist/cjs/post-banner.cjs.entry.js +15 -12
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +14 -12
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
- package/dist/cjs/post-card-control.cjs.entry.js +42 -26
- package/dist/cjs/{post-closebutton_15.cjs.entry.js → post-closebutton_13.cjs.entry.js} +618 -531
- package/dist/cjs/post-collapsible_2.cjs.entry.js +41 -37
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/post-env-test.cjs.entry.js +15 -0
- package/dist/cjs/post-footer.cjs.entry.js +24 -20
- package/dist/cjs/post-linkarea.cjs.entry.js +5 -5
- package/dist/cjs/post-pagination.cjs.entry.js +615 -0
- package/dist/cjs/post-popover-trigger.cjs.entry.js +54 -34
- package/dist/cjs/post-popover.cjs.entry.js +26 -17
- package/dist/cjs/post-rating.cjs.entry.js +24 -18
- package/dist/cjs/post-stepper-item.cjs.entry.js +5 -5
- package/dist/cjs/post-stepper.cjs.entry.js +40 -29
- package/dist/cjs/post-tab-item.cjs.entry.js +51 -0
- package/dist/cjs/post-tab-panel.cjs.entry.js +13 -11
- package/dist/cjs/post-tabs.cjs.entry.js +195 -40
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +13 -11
- package/dist/cjs/post-tooltip.cjs.entry.js +14 -12
- 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 -8
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +5 -4
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +9 -8
- package/dist/collection/components/post-avatar/post-avatar.js +11 -11
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +15 -15
- package/dist/collection/components/post-banner/post-banner.css +4 -1
- package/dist/collection/components/post-banner/post-banner.js +6 -5
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +3 -3
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -29
- package/dist/collection/components/post-card-control/post-card-control.js +18 -18
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +4 -3
- package/dist/collection/components/post-collapsible/post-collapsible.js +28 -28
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +3 -3
- 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 +144 -82
- package/dist/collection/components/post-icon/post-icon.js +18 -16
- 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} +45 -36
- 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} +24 -23
- 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 +3 -3
- 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 +183 -74
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +3 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +81 -75
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +39 -38
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +3 -3
- 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.js +22 -16
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +45 -29
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +82 -131
- package/dist/collection/components/post-rating/post-rating.js +7 -7
- package/dist/collection/components/post-stepper/post-stepper.js +38 -35
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +2 -2
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- 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 +10 -10
- package/dist/collection/components/post-tabs/post-tabs.js +232 -59
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +2 -2
- package/dist/collection/components/post-tooltip/post-tooltip.js +9 -27
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +4 -4
- 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 +4 -5
- package/dist/components/breakpoints.js +1 -178
- package/dist/components/debounce.js +1 -0
- package/dist/components/environment.js +1 -0
- package/dist/components/event-from.js +1 -119
- package/dist/components/fade-slide.js +1 -0
- package/dist/components/fade.js +1 -11
- package/dist/components/focusable.js +1 -5018
- package/dist/components/get-focusable-children.js +1 -64
- package/dist/components/get-root.js +1 -15
- package/dist/components/heading-levels.js +1 -3
- package/dist/components/index.browser.js +1 -14
- package/dist/components/index.d.ts +11 -10
- package/dist/components/index.js +1 -39
- package/dist/components/long-press-event.js +1 -257
- package/dist/components/package.js +1 -3
- package/dist/components/post-accordion-item.js +1 -6
- package/dist/components/post-accordion-item2.js +1 -113
- package/dist/components/post-accordion.js +1 -6
- package/dist/components/post-accordion2.js +1 -138
- package/dist/components/post-avatar.js +1 -217
- package/dist/components/post-back-to-top.js +1 -144
- package/dist/components/post-banner.js +1 -98
- package/dist/components/post-breadcrumb-item.js +1 -6
- package/dist/components/post-breadcrumb-item2.js +1 -79
- package/dist/components/post-breadcrumbs.js +1 -196
- package/dist/components/post-card-control.js +1 -326
- package/dist/components/post-closebutton.js +1 -6
- package/dist/components/post-closebutton2.js +1 -77
- package/dist/components/post-collapsible-trigger.js +1 -6
- package/dist/components/post-collapsible-trigger2.js +1 -136
- package/dist/components/post-collapsible.js +1 -6
- package/dist/components/post-collapsible2.js +1 -110
- package/dist/components/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/post-env-test.js +1 -0
- package/dist/components/post-footer.js +1 -116
- package/dist/components/post-header.js +1 -372
- package/dist/components/post-icon.js +1 -6
- package/dist/components/post-icon2.js +1 -159
- package/dist/components/post-language-menu-item.d.ts +11 -0
- package/dist/components/post-language-menu-item.js +1 -0
- package/dist/components/{post-language-switch.d.ts → post-language-menu.d.ts} +4 -4
- package/dist/components/post-language-menu.js +1 -0
- package/dist/components/post-linkarea.js +1 -58
- package/dist/components/post-logo.js +1 -58
- package/dist/components/post-mainnavigation.js +1 -180
- package/dist/components/post-megadropdown-trigger.js +1 -136
- package/dist/components/post-megadropdown.js +1 -267
- package/dist/components/post-menu-item.js +1 -6
- package/dist/components/post-menu-item2.js +1 -30
- package/dist/components/post-menu-trigger.js +1 -6
- package/dist/components/post-menu-trigger2.js +1 -110
- package/dist/components/post-menu.js +1 -6
- package/dist/components/post-menu2.js +1 -242
- package/dist/components/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
- package/dist/components/post-pagination.js +1 -0
- package/dist/components/post-popover-trigger.js +1 -132
- package/dist/components/post-popover.js +1 -118
- package/dist/components/post-popovercontainer.js +1 -6
- package/dist/components/post-popovercontainer2.js +1 -3127
- package/dist/components/post-rating.js +1 -148
- package/dist/components/post-stepper-item.js +1 -33
- package/dist/components/post-stepper.js +1 -134
- package/dist/components/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/post-tab-item.js +1 -0
- package/dist/components/post-tab-panel.js +1 -54
- package/dist/components/post-tabs.js +1 -196
- package/dist/components/post-togglebutton.js +1 -56
- package/dist/components/post-togglebutton2.js +1 -0
- package/dist/components/post-tooltip-trigger.js +1 -206
- package/dist/components/post-tooltip.js +1 -114
- package/dist/components/react/index.d.ts +2 -0
- package/dist/components/react/index.js +1 -2315
- package/dist/components/react/p-B8YiQ3mz.js +1 -0
- package/dist/components/react/p-BC5nlBvn.js +1 -0
- package/dist/components/react/p-BLchVpF6.js +1 -14
- package/dist/components/react/p-BVCjnh6Q.js +1 -0
- package/dist/{post-components/p-CBFgkSgY.js → components/react/p-BVGcVycs.js} +1 -1
- package/dist/components/react/p-B_XPj2c8.js +1 -0
- package/dist/components/react/p-BllOMLDs.js +1 -0
- package/dist/components/react/p-BmRNjQUZ.js +1 -0
- package/dist/components/react/p-ByFh05IW.js +1 -0
- package/dist/components/react/p-C9hMpmsD.js +1 -0
- package/dist/components/react/p-CJ13r5fi.js +1 -0
- package/dist/components/react/p-CZvbetqX.js +1 -0
- package/dist/components/react/p-C_2k3G1c.js +1 -257
- package/dist/components/react/p-CoDiS_Ik.js +1 -0
- package/dist/components/react/p-Cou17ld8.js +1 -0
- package/dist/components/react/p-D5knoiyy.js +1 -0
- package/dist/components/react/p-D9DDtvFM.js +1 -0
- package/dist/components/react/p-DY2U5CQt.js +1 -0
- package/dist/components/react/p-DjIHLduJ.js +1 -3
- package/dist/components/react/p-DpATRD2W.js +1 -0
- package/dist/components/react/p-FxUVQ4Tx.js +1 -0
- package/dist/components/react/p-HygIVKXC.js +1 -5018
- package/dist/components/react/p-YR7U0Z_g.js +1 -0
- package/dist/components/react/p-ZeKXASQs.js +1 -0
- package/dist/components/react/p-r4txK0AC.js +1 -3
- package/dist/components/react/p-sSn0kXFi.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -6
- package/dist/components/react/post-accordion.js +1 -6
- package/dist/components/react/post-avatar.js +1 -218
- package/dist/components/react/post-back-to-top.js +1 -145
- package/dist/components/react/post-banner.js +1 -99
- package/dist/components/react/post-breadcrumb-item.js +1 -6
- package/dist/components/react/post-breadcrumbs.js +1 -197
- package/dist/components/react/post-card-control.js +1 -327
- package/dist/components/react/post-closebutton.js +1 -6
- package/dist/components/react/post-collapsible-trigger.js +1 -6
- package/dist/components/react/post-collapsible.js +1 -6
- package/dist/components/react/{post-list.d.ts → post-env-test.d.ts} +4 -4
- package/dist/components/react/post-env-test.js +1 -0
- package/dist/components/react/post-footer.js +1 -117
- package/dist/components/react/post-header.js +1 -373
- package/dist/components/react/post-icon.js +1 -6
- package/dist/components/react/post-language-menu-item.d.ts +11 -0
- package/dist/components/react/post-language-menu-item.js +1 -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 +1 -0
- package/dist/components/react/post-linkarea.js +1 -59
- package/dist/components/react/post-logo.js +1 -59
- package/dist/components/react/post-mainnavigation.js +1 -181
- package/dist/components/react/post-megadropdown-trigger.js +1 -137
- package/dist/components/react/post-megadropdown.js +1 -268
- package/dist/components/react/post-menu-item.js +1 -6
- package/dist/components/react/post-menu-trigger.js +1 -6
- package/dist/components/react/post-menu.js +1 -6
- package/dist/components/react/{post-tab-header.d.ts → post-pagination.d.ts} +4 -4
- package/dist/components/react/post-pagination.js +1 -0
- package/dist/components/react/post-popover-trigger.js +1 -133
- package/dist/components/react/post-popover.js +1 -119
- package/dist/components/react/post-popovercontainer.js +1 -6
- package/dist/components/react/post-rating.js +1 -149
- package/dist/components/react/post-stepper-item.js +1 -34
- package/dist/components/react/post-stepper.js +1 -135
- package/dist/components/react/{post-list-item.d.ts → post-tab-item.d.ts} +4 -4
- package/dist/components/react/post-tab-item.js +1 -0
- package/dist/components/react/post-tab-panel.js +1 -55
- package/dist/components/react/post-tabs.js +1 -197
- package/dist/components/react/post-togglebutton.js +1 -57
- package/dist/components/react/post-tooltip-trigger.js +1 -207
- package/dist/components/react/post-tooltip.js +1 -115
- package/dist/components/switch-variants.js +1 -3
- package/dist/components/utils.js +1 -0
- package/dist/docs.d.ts +11 -0
- package/dist/docs.json +873 -631
- package/dist/{cjs/breakpoints-CEkeixld.js → esm/breakpoints-DYoSKGHO.js} +89 -6
- package/dist/esm/debounce-C9hMpmsD.js +11 -0
- package/dist/esm/environment-CEmnRoA6.js +49 -0
- package/dist/{components/react/p-CzIKqBrS.js → esm/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/{components/react/p-CBFgkSgY.js → esm/get-root-CXfAA093.js} +1 -1
- package/dist/esm/{index-wEFJ-c34.js → index-CDZBzSdV.js} +2150 -292
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-CZvbetqX.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +17 -13
- package/dist/esm/post-avatar.entry.js +22 -12
- package/dist/esm/post-back-to-top.entry.js +23 -43
- package/dist/esm/post-banner.entry.js +14 -11
- package/dist/esm/post-breadcrumb-item_2.entry.js +13 -11
- package/dist/esm/post-breadcrumbs.entry.js +31 -32
- package/dist/esm/post-card-control.entry.js +32 -16
- package/dist/esm/{post-closebutton_15.entry.js → post-closebutton_13.entry.js} +599 -510
- package/dist/esm/post-collapsible_2.entry.js +38 -34
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/post-env-test.entry.js +13 -0
- package/dist/esm/post-footer.entry.js +21 -17
- package/dist/esm/post-linkarea.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +613 -0
- package/dist/esm/post-popover-trigger.entry.js +52 -32
- package/dist/esm/post-popover.entry.js +25 -16
- package/dist/esm/post-rating.entry.js +16 -10
- package/dist/esm/post-stepper-item.entry.js +5 -5
- package/dist/esm/post-stepper.entry.js +39 -28
- package/dist/esm/post-tab-item.entry.js +49 -0
- package/dist/esm/post-tab-panel.entry.js +13 -11
- package/dist/esm/post-tabs.entry.js +195 -40
- package/dist/esm/post-tooltip-trigger.entry.js +10 -8
- package/dist/esm/post-tooltip.entry.js +13 -11
- package/dist/esm/utils-CoDiS_Ik.js +24 -0
- package/dist/post-components/p-09ba7cf9.entry.js +1 -0
- package/dist/post-components/p-0c091898.entry.js +1 -0
- package/dist/post-components/{p-cd03e6f2.entry.js → p-0e97fcfd.entry.js} +1 -1
- package/dist/post-components/p-296f1dd5.entry.js +1 -0
- package/dist/post-components/p-32ad2b21.entry.js +1 -0
- package/dist/post-components/p-366c28cb.entry.js +1 -0
- package/dist/post-components/p-41ae68d5.entry.js +1 -0
- package/dist/post-components/p-448e7265.entry.js +1 -0
- package/dist/post-components/p-554da188.entry.js +1 -0
- package/dist/post-components/p-5912f8f1.entry.js +1 -0
- package/dist/post-components/p-790f300d.entry.js +1 -0
- package/dist/post-components/p-7ed5a493.entry.js +1 -0
- package/dist/post-components/p-85bea1b6.entry.js +1 -0
- package/dist/post-components/p-8bcff4d2.entry.js +1 -0
- package/dist/post-components/p-9dc9c245.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-CDZBzSdV.js +2 -0
- package/dist/post-components/p-CEmnRoA6.js +1 -0
- package/dist/post-components/p-CZvbetqX.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-a06f9695.entry.js +1 -0
- package/dist/post-components/p-a191f1df.entry.js +1 -0
- package/dist/post-components/p-c5d19d62.entry.js +1 -0
- package/dist/post-components/{p-24dc54d1.entry.js → p-c8c4d05b.entry.js} +1 -1
- package/dist/post-components/{p-57288cb2.entry.js → p-d1a5c980.entry.js} +1 -1
- package/dist/post-components/p-d4e2c556.entry.js +1 -0
- package/dist/post-components/p-f96a310c.entry.js +1 -0
- package/dist/post-components/p-fab2327d.entry.js +1 -0
- package/dist/post-components/p-rEfV4v4a.js +1 -0
- 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-footer/post-footer.d.ts +4 -4
- package/dist/types/components/post-header/post-header.d.ts +23 -13
- package/dist/types/components/{post-language-switch/post-language-switch.d.ts → post-language-menu/post-language-menu.d.ts} +12 -11
- 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 +4 -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 +23 -21
- package/dist/types/components/post-rating/post-rating.d.ts +1 -1
- package/dist/types/components/post-stepper/post-stepper.d.ts +9 -8
- 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/post-tooltip/post-tooltip.d.ts +1 -5
- package/dist/types/components.d.ts +322 -219
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/prebuild.d.ts +9 -0
- package/dist/types/stencil-public-runtime.d.ts +147 -10
- 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.d.ts +14 -0
- package/hydrate/index.js +7494 -2714
- package/hydrate/index.mjs +7493 -2715
- package/package.json +7 -8
- package/dist/cjs/fade-nS5zzDQS.js +0 -14
- package/dist/cjs/index-UFKR6Ok0.js +0 -98
- 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 -89
- 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-BVXiQdHq.js +0 -64
- package/dist/components/react/p-BhxZzOEC.js +0 -3
- package/dist/components/react/p-CSAMO7iJ.js +0 -243
- package/dist/components/react/p-CYkf_7Y5.js +0 -89
- package/dist/components/react/p-Ccrl2AQn.js +0 -111
- package/dist/components/react/p-CewRvBtg.js +0 -139
- package/dist/components/react/p-Cwiv86_f.js +0 -111
- package/dist/components/react/p-D2waO0Zc.js +0 -31
- package/dist/components/react/p-DBPOV12C.js +0 -160
- package/dist/components/react/p-DVGEExot.js +0 -3128
- package/dist/components/react/p-Djvj8fd2.js +0 -80
- package/dist/components/react/p-LtiDhYis.js +0 -137
- package/dist/components/react/p-SbIC4aZX.js +0 -11
- package/dist/components/react/p-XrZzCOKT.js +0 -78
- package/dist/components/react/p-v3pOrMNQ.js +0 -114
- 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/breakpoints-CJ80BZ06.js +0 -178
- package/dist/esm/event-from-CzIKqBrS.js +0 -119
- package/dist/esm/fade-SbIC4aZX.js +0 -11
- package/dist/esm/get-root-BkQ3CrLq.js +0 -15
- package/dist/esm/index-Beaz8wEe.js +0 -89
- package/dist/esm/package-BhxZzOEC.js +0 -3
- package/dist/esm/post-tab-header.entry.js +0 -29
- package/dist/post-components/p-01e678c9.entry.js +0 -1
- package/dist/post-components/p-034a453f.entry.js +0 -1
- package/dist/post-components/p-15a4cdbf.entry.js +0 -1
- package/dist/post-components/p-2a2030bf.entry.js +0 -1
- package/dist/post-components/p-2ed84cc3.entry.js +0 -1
- package/dist/post-components/p-3228968f.entry.js +0 -1
- package/dist/post-components/p-3c01ddfe.entry.js +0 -1
- package/dist/post-components/p-748b1f01.entry.js +0 -1
- package/dist/post-components/p-7745e46e.entry.js +0 -1
- package/dist/post-components/p-7f635728.entry.js +0 -1
- package/dist/post-components/p-82c178a3.entry.js +0 -1
- package/dist/post-components/p-9b5f8319.entry.js +0 -1
- package/dist/post-components/p-Beaz8wEe.js +0 -1
- package/dist/post-components/p-BhxZzOEC.js +0 -1
- 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-a9644e54.entry.js +0 -1
- package/dist/post-components/p-af030a3a.entry.js +0 -1
- package/dist/post-components/p-b8ba8139.entry.js +0 -1
- package/dist/post-components/p-db935e8e.entry.js +0 -1
- package/dist/post-components/p-e62e1f57.entry.js +0 -1
- package/dist/post-components/p-fb4b1641.entry.js +0 -1
- package/dist/post-components/p-wEFJ-c34.js +0 -2
- 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 → components/react/p-rEfV4v4a.js} +0 -0
- /package/dist/types/components/{post-language-switch → post-language-menu}/switch-variants.d.ts +0 -0
|
@@ -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,36 +1,47 @@
|
|
|
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;
|
|
16
|
+
private burgerMenuButton;
|
|
18
17
|
private burgerMenu;
|
|
19
18
|
private burgerMenuAnimation;
|
|
20
19
|
private readonly throttledResize;
|
|
21
20
|
private scrollParentResizeObserver;
|
|
22
21
|
private localHeaderResizeObserver;
|
|
23
22
|
private slottedContentObserver;
|
|
23
|
+
private localHeader;
|
|
24
24
|
private get hasBurgerMenu();
|
|
25
|
+
private animationOptions;
|
|
25
26
|
get scrollParent(): HTMLElement;
|
|
26
27
|
host: HTMLPostHeaderElement;
|
|
27
28
|
device: Device;
|
|
28
29
|
hasNavigation: boolean;
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
hasLocalNav: boolean;
|
|
31
|
+
hasAudience: boolean;
|
|
31
32
|
hasTitle: boolean;
|
|
32
33
|
burgerMenuExtended: boolean;
|
|
33
34
|
megadropdownOpen: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Makes the header content span the full width on screens larger than 1440px.
|
|
37
|
+
*/
|
|
38
|
+
fullWidth: boolean;
|
|
39
|
+
validateFullWidth(): void;
|
|
40
|
+
/**
|
|
41
|
+
* The label of the burger menu button.
|
|
42
|
+
*/
|
|
43
|
+
textMenu: string;
|
|
44
|
+
validateTextMenu(): void;
|
|
34
45
|
lockBody(newValue: boolean | string, _oldValue: boolean | string, propName: string): void;
|
|
35
46
|
constructor();
|
|
36
47
|
private readonly breakpointChange;
|
|
@@ -46,7 +57,6 @@ export declare class PostHeader {
|
|
|
46
57
|
toggleBurgerMenu(force?: boolean): Promise<void>;
|
|
47
58
|
private megadropdownStateHandler;
|
|
48
59
|
private getFocusableElements;
|
|
49
|
-
private getMenuButton;
|
|
50
60
|
private keyboardHandler;
|
|
51
61
|
private closeAllMegadropdowns;
|
|
52
62
|
private handleScrollEvent;
|
|
@@ -58,7 +68,7 @@ export declare class PostHeader {
|
|
|
58
68
|
private handleSlottedContentChanges;
|
|
59
69
|
private checkSlottedContent;
|
|
60
70
|
private switchLanguageSwitchMode;
|
|
61
|
-
onFocusChange(): void;
|
|
71
|
+
onFocusChange(e: FocusEvent): void;
|
|
62
72
|
private renderNavigation;
|
|
63
73
|
render(): any;
|
|
64
74
|
}
|
|
@@ -1,36 +1,37 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
10
|
+
textChangeLanguage: string;
|
|
11
|
+
validateTextChangeLanguage(): void;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* An accessible description text for the list of language options. The `#name` placeholder is dynamic and will be replaced with the active language name.
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
textCurrentLanguage: string;
|
|
16
|
+
validateTextCurrentLanguage(): void;
|
|
17
17
|
/**
|
|
18
18
|
* Whether the component is rendered as a list or a menu
|
|
19
19
|
*/
|
|
20
20
|
variant: SwitchVariant;
|
|
21
21
|
validateVariant(): void;
|
|
22
22
|
/**
|
|
23
|
-
* The active language of the language
|
|
23
|
+
* The active language code of the language menu
|
|
24
24
|
*/
|
|
25
25
|
activeLang: string;
|
|
26
|
+
private get description();
|
|
26
27
|
componentDidLoad(): void;
|
|
27
28
|
/**
|
|
28
|
-
* Listen for the postChange event and guard it to run only for events originating from a <post-language-
|
|
29
|
+
* Listen for the postChange event and guard it to run only for events originating from a <post-language-menu-item> element.
|
|
29
30
|
*/
|
|
30
31
|
handlePostChange(event: CustomEvent<string>): void;
|
|
31
32
|
/**
|
|
32
|
-
* Handles cases where the language
|
|
33
|
-
* @param event Initially emitted by <post-
|
|
33
|
+
* Handles cases where the language menu is being rendered before options are available
|
|
34
|
+
* @param event Initially emitted by <post-language-menu-item>
|
|
34
35
|
*/
|
|
35
36
|
handleInitiallyActive(event: CustomEvent<string>): void;
|
|
36
37
|
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 handlePostBeforeToggle;
|
|
56
56
|
private readonly handleClick;
|
|
57
57
|
private controlKeyDownHandler;
|
|
58
58
|
private getSlottedItems;
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
export declare class PostPagination {
|
|
3
|
+
host: HTMLPostPaginationElement;
|
|
4
|
+
private paginationId;
|
|
5
|
+
private maxVisiblePages;
|
|
6
|
+
private items;
|
|
7
|
+
/**
|
|
8
|
+
* The current active page number.
|
|
9
|
+
*
|
|
10
|
+
* **If not specified, defaults to the first page.**
|
|
11
|
+
*/
|
|
12
|
+
page?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The number of items per page.
|
|
15
|
+
*/
|
|
16
|
+
pageSize: number;
|
|
17
|
+
/**
|
|
18
|
+
* The total number of items in the collection.
|
|
19
|
+
*/
|
|
20
|
+
collectionSize: number;
|
|
21
|
+
/**
|
|
22
|
+
* A descriptive label for the pagination navigation, used by assistive technologies.
|
|
23
|
+
*/
|
|
24
|
+
readonly label: string;
|
|
25
|
+
/**
|
|
26
|
+
* Accessible label for the previous page button.
|
|
27
|
+
*/
|
|
28
|
+
readonly textPrevious: string;
|
|
29
|
+
/**
|
|
30
|
+
* Accessible label for the next page button.
|
|
31
|
+
*/
|
|
32
|
+
readonly textNext: string;
|
|
33
|
+
/**
|
|
34
|
+
* Prefix text for page number labels.
|
|
35
|
+
*/
|
|
36
|
+
readonly textPage: string;
|
|
37
|
+
/**
|
|
38
|
+
* Prefix text for the first page label.
|
|
39
|
+
*/
|
|
40
|
+
readonly textFirst: string;
|
|
41
|
+
/**
|
|
42
|
+
* Prefix text for the last page label.
|
|
43
|
+
*/
|
|
44
|
+
readonly textLast: string;
|
|
45
|
+
/**
|
|
46
|
+
* If true, the pagination is disabled.
|
|
47
|
+
*/
|
|
48
|
+
readonly disabled?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Event emitted when the page changes.
|
|
51
|
+
*/
|
|
52
|
+
postChange: EventEmitter<number>;
|
|
53
|
+
private navRef?;
|
|
54
|
+
private hiddenItemsRef?;
|
|
55
|
+
private lastWindowWidth;
|
|
56
|
+
private loaded;
|
|
57
|
+
private debouncedResize;
|
|
58
|
+
private measurementTimeoutId;
|
|
59
|
+
validatePage(): void;
|
|
60
|
+
validatePageSize(): void;
|
|
61
|
+
validateCollectionSize(): void;
|
|
62
|
+
validateLabel(): void;
|
|
63
|
+
validateTextPrevious(): void;
|
|
64
|
+
validateTextNext(): void;
|
|
65
|
+
validateTextPage(): void;
|
|
66
|
+
validateTextFirst(): void;
|
|
67
|
+
validateTextLast(): void;
|
|
68
|
+
validateDisabled(): void;
|
|
69
|
+
handlePropsChange(): void;
|
|
70
|
+
componentWillLoad(): void;
|
|
71
|
+
connectedCallback(): void;
|
|
72
|
+
componentDidLoad(): void;
|
|
73
|
+
disconnectedCallback(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Validate a prop with the appropriate check function
|
|
76
|
+
*/
|
|
77
|
+
private validateProp;
|
|
78
|
+
/**
|
|
79
|
+
* Run all prop validations
|
|
80
|
+
*/
|
|
81
|
+
private runAllValidations;
|
|
82
|
+
/**
|
|
83
|
+
* Schedule measurement attempt with timeout
|
|
84
|
+
*/
|
|
85
|
+
private scheduleMeasurement;
|
|
86
|
+
/**
|
|
87
|
+
* Internal resize handler
|
|
88
|
+
*/
|
|
89
|
+
private handleResizeInternal;
|
|
90
|
+
/**
|
|
91
|
+
* Calculates gap between two elements
|
|
92
|
+
*/
|
|
93
|
+
private calculateGap;
|
|
94
|
+
/**
|
|
95
|
+
* Measures actual rendered elements to determine how many pages can fit
|
|
96
|
+
*/
|
|
97
|
+
private measureAndCalculateVisiblePages;
|
|
98
|
+
/**
|
|
99
|
+
* Gets total width of control buttons (prev/next)
|
|
100
|
+
*/
|
|
101
|
+
private getControlButtonsWidth;
|
|
102
|
+
/**
|
|
103
|
+
* Gets the horizontal padding of the pagination container
|
|
104
|
+
*/
|
|
105
|
+
private getPaginationPadding;
|
|
106
|
+
/**
|
|
107
|
+
* Gets available width from parent container
|
|
108
|
+
*/
|
|
109
|
+
private getAvailableWidth;
|
|
110
|
+
/**
|
|
111
|
+
* Returns true if collection size or page size is invalid
|
|
112
|
+
*/
|
|
113
|
+
private get invalidSize();
|
|
114
|
+
/**
|
|
115
|
+
* Clamps the page number to valid range
|
|
116
|
+
*/
|
|
117
|
+
private clampPageToValidRange;
|
|
118
|
+
/**
|
|
119
|
+
* Validates and updates pages with clamped page number
|
|
120
|
+
*/
|
|
121
|
+
private updatePagesWithValidation;
|
|
122
|
+
/**
|
|
123
|
+
* Calculates the total number of pages.
|
|
124
|
+
*/
|
|
125
|
+
private getTotalPages;
|
|
126
|
+
/**
|
|
127
|
+
* Convert numeric gap to a section type
|
|
128
|
+
*/
|
|
129
|
+
private sectionForGap;
|
|
130
|
+
/**
|
|
131
|
+
* Compute the left/right sections and numeric gaps for a given range
|
|
132
|
+
*/
|
|
133
|
+
private getSections;
|
|
134
|
+
/**
|
|
135
|
+
* Compute total items that would be rendered for a given range
|
|
136
|
+
*/
|
|
137
|
+
private computeTotalItems;
|
|
138
|
+
/**
|
|
139
|
+
* Build a full list of pages (1..totalPages)
|
|
140
|
+
*/
|
|
141
|
+
private buildAllPages;
|
|
142
|
+
/**
|
|
143
|
+
* Adjust start/end pages to avoid gap=2 scenarios
|
|
144
|
+
*/
|
|
145
|
+
private adjustForGapTwo;
|
|
146
|
+
/**
|
|
147
|
+
* Ensure we have the desired number of middle slots
|
|
148
|
+
*/
|
|
149
|
+
private ensureMiddleSlots;
|
|
150
|
+
/**
|
|
151
|
+
* Trim excess items by shrinking the range away from current page
|
|
152
|
+
*/
|
|
153
|
+
private trimExcessItems;
|
|
154
|
+
/**
|
|
155
|
+
* Expand range to fill available slots
|
|
156
|
+
*/
|
|
157
|
+
private expandToFillSlots;
|
|
158
|
+
/**
|
|
159
|
+
* Balance total items to match maxVisible by trimming or expanding
|
|
160
|
+
*/
|
|
161
|
+
private balanceTotalItems;
|
|
162
|
+
/**
|
|
163
|
+
* Calculate optimal page range centered around current page
|
|
164
|
+
*/
|
|
165
|
+
private calculatePageRange;
|
|
166
|
+
/**
|
|
167
|
+
* Build pagination items with ellipsis
|
|
168
|
+
*/
|
|
169
|
+
private buildPaginationItems;
|
|
170
|
+
/**
|
|
171
|
+
* Generates pagination items for small slot counts (3 or 4 items).
|
|
172
|
+
* Ensures current page is always visible.
|
|
173
|
+
*/
|
|
174
|
+
private generateSmallPagination;
|
|
175
|
+
/**
|
|
176
|
+
* Generates the page numbers array with ellipsis based on available space.
|
|
177
|
+
*/
|
|
178
|
+
private generatePages;
|
|
179
|
+
/**
|
|
180
|
+
* Emit page change event and update page
|
|
181
|
+
*/
|
|
182
|
+
private emitPageChange;
|
|
183
|
+
/**
|
|
184
|
+
* Handles page change when a page button is clicked.
|
|
185
|
+
*/
|
|
186
|
+
private handlePageClick;
|
|
187
|
+
/**
|
|
188
|
+
* Handles previous button click.
|
|
189
|
+
*/
|
|
190
|
+
private handlePrevious;
|
|
191
|
+
/**
|
|
192
|
+
* Handles next button click.
|
|
193
|
+
*/
|
|
194
|
+
private handleNext;
|
|
195
|
+
/**
|
|
196
|
+
* Handles keyboard navigation
|
|
197
|
+
*/
|
|
198
|
+
private handleKeyDown;
|
|
199
|
+
/**
|
|
200
|
+
* Builds accessible label for a page button.
|
|
201
|
+
*/
|
|
202
|
+
private buildPageLabel;
|
|
203
|
+
/**
|
|
204
|
+
* Renders an ellipsis item.
|
|
205
|
+
*/
|
|
206
|
+
private renderEllipsis;
|
|
207
|
+
/**
|
|
208
|
+
* Renders a page button.
|
|
209
|
+
*/
|
|
210
|
+
private renderPageButton;
|
|
211
|
+
/**
|
|
212
|
+
* Renders a pagination item.
|
|
213
|
+
*/
|
|
214
|
+
private renderItem;
|
|
215
|
+
/**
|
|
216
|
+
* Renders control button (prev/next)
|
|
217
|
+
*/
|
|
218
|
+
private renderControlButton;
|
|
219
|
+
/**
|
|
220
|
+
* Renders minimal hidden items for measurement
|
|
221
|
+
*/
|
|
222
|
+
private renderHiddenItems;
|
|
223
|
+
render(): any;
|
|
224
|
+
}
|
|
@@ -13,10 +13,10 @@ export declare class PostPopover {
|
|
|
13
13
|
readonly placement?: Placement;
|
|
14
14
|
validatePlacement(): void;
|
|
15
15
|
/**
|
|
16
|
-
* Define the
|
|
16
|
+
* Define the text of the close button for assistive technology
|
|
17
17
|
*/
|
|
18
|
-
readonly
|
|
19
|
-
|
|
18
|
+
readonly textClose: string;
|
|
19
|
+
validateTextClose(): void;
|
|
20
20
|
/**
|
|
21
21
|
* Show a little indicator arrow
|
|
22
22
|
*/
|
|
@@ -37,5 +37,6 @@ export declare class PostPopover {
|
|
|
37
37
|
* @param force Pass true to always show or false to always hide
|
|
38
38
|
*/
|
|
39
39
|
toggle(target: HTMLElement, force?: boolean): Promise<void>;
|
|
40
|
+
private focusFirstEl;
|
|
40
41
|
render(): any;
|
|
41
42
|
}
|
|
@@ -3,7 +3,7 @@ export declare class PostPopoverTrigger {
|
|
|
3
3
|
/**
|
|
4
4
|
* ID of the popover element that this trigger is linked to. Used to open and close the popover.
|
|
5
5
|
*/
|
|
6
|
-
for
|
|
6
|
+
for?: string;
|
|
7
7
|
/**
|
|
8
8
|
* Manages the accessibility attribute `aria-expanded` to indicate whether the associated popover is expanded or collapsed.
|
|
9
9
|
*/
|
|
@@ -22,6 +22,7 @@ export declare class PostPopoverTrigger {
|
|
|
22
22
|
* Reference to the element inside the host that will act as the trigger.
|
|
23
23
|
*/
|
|
24
24
|
private trigger;
|
|
25
|
+
private hasAriaControlsElements;
|
|
25
26
|
private readonly boundHandleToggle;
|
|
26
27
|
private readonly boundHandleKeyDown;
|
|
27
28
|
private readonly boundHandlePostToggle;
|