@swisspost/design-system-components 10.4.0 → 10.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cjs/breakpoints-Kruvy8Dm.js +47 -0
- package/dist/cjs/{create-validator-decorator-BtgLWaMJ.js → create-validator-decorator-Cy5yN6u9.js} +1 -1
- package/dist/cjs/{event-from-CwMw19f8.js → event-from-CTcQxB9-.js} +19 -13
- package/dist/cjs/{index-CW10QvjR.js → index-B3PXzvDk.js} +1 -1
- package/dist/cjs/{breakpoints-B0Olgvgc.js → index-CggFmZ8n.js} +0 -42
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-vJeW7S4_.js → one-of-CRFrfihj.js} +1 -1
- package/dist/cjs/{package-CL8OSAS4.js → package-pKyFPwiA.js} +1 -1
- package/dist/cjs/{pattern-Zmn3wpyp.js → pattern-D329DFcf.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +7 -7
- package/dist/cjs/post-autocomplete.cjs.entry.js +70 -55
- package/dist/cjs/post-avatar.cjs.entry.js +7 -7
- package/dist/cjs/post-back-to-top.cjs.entry.js +25 -13
- package/dist/cjs/post-banner.cjs.entry.js +6 -13
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +42 -12
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +222 -71
- package/dist/cjs/post-closebutton_14.cjs.entry.js +431 -233
- package/dist/cjs/post-collapsible_2.cjs.entry.js +9 -9
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +18 -16
- package/dist/cjs/post-footer.cjs.entry.js +8 -8
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +6 -6
- package/dist/cjs/post-number-input.cjs.entry.js +7 -6
- package/dist/cjs/post-pagination.cjs.entry.js +6 -6
- package/dist/cjs/post-popover-trigger.cjs.entry.js +8 -8
- package/dist/cjs/post-popover.cjs.entry.js +11 -11
- package/dist/cjs/post-progressbar.cjs.entry.js +5 -5
- package/dist/cjs/post-rating.cjs.entry.js +7 -7
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +8 -8
- package/dist/cjs/post-side-navigation.cjs.entry.js +9 -9
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +8 -8
- package/dist/cjs/post-tab-item.cjs.entry.js +7 -7
- package/dist/cjs/post-tab-panel.cjs.entry.js +7 -7
- package/dist/cjs/post-tabs.cjs.entry.js +9 -9
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +8 -8
- package/dist/cjs/post-tooltip.cjs.entry.js +6 -6
- package/dist/cjs/{required-DRnPokVn.js → required-DhAEd0c7.js} +1 -1
- package/dist/cjs/{type-CNcU_-B2.js → type-2Ma9dvHs.js} +1 -1
- package/dist/cjs/{url-DgJ3lXQz.js → url-DePscsTj.js} +1 -1
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +65 -50
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +19 -7
- package/dist/collection/components/post-banner/post-banner.js +2 -17
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +59 -4
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +249 -71
- package/dist/collection/components/post-closebutton/post-closebutton.js +7 -8
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +2 -2
- package/dist/collection/components/post-date-picker/native-mask-element.js +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +11 -9
- package/dist/collection/components/post-footer/post-footer.js +2 -2
- package/dist/collection/components/post-header/post-header.js +2 -2
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +2 -2
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +3 -3
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +23 -8
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-popover/post-popover.css +1 -1
- package/dist/collection/components/post-popover/post-popover.js +4 -4
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +3 -3
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +71 -43
- package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +1 -1
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +1 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +2 -2
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +2 -2
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +2 -2
- package/dist/collection/utils/breakpoints.js +11 -9
- package/dist/collection/utils/closable-target.js +38 -0
- package/dist/collection/utils/event-from.js +18 -13
- package/dist/collection/utils/floating-ui.js +72 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/event-from.js +1 -1
- package/dist/components/index2.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.js +1 -1
- package/dist/components/post-side-navigation.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/{p-Bwko4UKh.js → p-3RU9XwVO.js} +1 -1
- package/dist/components/react/p-5LuCes5o.js +1 -0
- package/dist/components/react/p-B1TcktiB.js +1 -0
- package/dist/components/react/{p-4wtxqxXu.js → p-B2jsM_Ov.js} +1 -1
- package/dist/components/react/p-BEcxHjuM.js +1 -0
- package/dist/components/react/p-BN2dfUQ0.js +1 -0
- package/dist/components/react/p-BPUhha1U.js +1 -0
- package/dist/{post-components/p-C-lLRsYC.js → components/react/p-BdLRXQqY.js} +1 -1
- package/dist/components/react/{p-BSb74xQy.js → p-Bnb_TyDh.js} +1 -1
- package/dist/components/react/p-CVVXnYLU.js +1 -0
- package/dist/components/react/{p-9RCG8BWM.js → p-CcDLIogT.js} +1 -1
- package/dist/components/react/{p-CSmrQ__L.js → p-CdggfEzz.js} +1 -1
- package/dist/components/react/p-CnN4Jdtv.js +1 -0
- package/dist/components/react/{p-D-imniYA.js → p-CzsG0uCA.js} +1 -1
- package/dist/components/react/p-DeO0rZ1T.js +1 -0
- package/dist/components/react/p-DffT6evQ.js +1 -0
- package/dist/components/react/p-T8T3po4z.js +1 -0
- package/dist/components/react/p-WXzzOdnl.js +1 -0
- package/dist/components/react/p-bR8vy6-s.js +1 -0
- package/dist/components/react/{p-B1kYo1K9.js → p-m1-sOx5T.js} +1 -1
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- 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-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- 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-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-progressbar.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.js +1 -1
- package/dist/components/react/post-side-navigation.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +118 -27
- package/dist/esm/breakpoints-I1j7a0bW.js +45 -0
- package/dist/esm/{create-validator-decorator-CNUaQboh.js → create-validator-decorator-C2XlYkNB.js} +1 -1
- package/dist/esm/{event-from-rEfV4v4a.js → event-from-BEcxHjuM.js} +19 -14
- package/dist/esm/{index-sn7oKSwC.js → index-BjziJWh2.js} +1 -1
- package/dist/esm/{breakpoints-BQ3HlJPr.js → index-bR8vy6-s.js} +1 -42
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-C6Ironyj.js → one-of-Do1iao-k.js} +1 -1
- package/dist/esm/{package-tTf1w3A9.js → package-T8T3po4z.js} +1 -1
- package/dist/esm/{pattern-57oD--q3.js → pattern-BZDucOTq.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +7 -7
- package/dist/esm/post-autocomplete.entry.js +70 -55
- package/dist/esm/post-avatar.entry.js +7 -7
- package/dist/esm/post-back-to-top.entry.js +25 -13
- package/dist/esm/post-banner.entry.js +6 -13
- package/dist/esm/post-breadcrumb-item.entry.js +42 -12
- package/dist/esm/post-breadcrumbs.entry.js +222 -71
- package/dist/esm/post-closebutton_14.entry.js +430 -232
- package/dist/esm/post-collapsible_2.entry.js +9 -9
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +18 -16
- package/dist/esm/post-footer.entry.js +8 -8
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +6 -6
- package/dist/esm/post-number-input.entry.js +6 -5
- package/dist/esm/post-pagination.entry.js +6 -6
- package/dist/esm/post-popover-trigger.entry.js +8 -8
- package/dist/esm/post-popover.entry.js +11 -11
- package/dist/esm/post-progressbar.entry.js +5 -5
- package/dist/esm/post-rating.entry.js +7 -7
- package/dist/esm/post-side-navigation-trigger.entry.js +8 -8
- package/dist/esm/post-side-navigation.entry.js +9 -9
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +8 -8
- package/dist/esm/post-tab-item.entry.js +7 -7
- package/dist/esm/post-tab-panel.entry.js +7 -7
- package/dist/esm/post-tabs.entry.js +9 -9
- package/dist/esm/post-tooltip-trigger.entry.js +8 -8
- package/dist/esm/post-tooltip.entry.js +6 -6
- package/dist/esm/{required-D2rl2XZJ.js → required-B0X7uy13.js} +1 -1
- package/dist/esm/{type-CGynDrfh.js → type-CF1dOg6D.js} +1 -1
- package/dist/esm/{url-1wyUfUv-.js → url-BL7d6iWZ.js} +1 -1
- package/dist/post-components/{p-167191e5.entry.js → p-0e922531.entry.js} +1 -1
- package/dist/post-components/{p-cf6eacab.entry.js → p-1ec27142.entry.js} +1 -1
- package/dist/post-components/{p-da217dbc.entry.js → p-2005eb98.entry.js} +1 -1
- package/dist/post-components/p-2cff5b3a.entry.js +1 -0
- package/dist/post-components/p-53bd2128.entry.js +1 -0
- package/dist/post-components/{p-212c71e4.entry.js → p-59b30e90.entry.js} +1 -1
- package/dist/post-components/{p-beed9922.entry.js → p-60550edb.entry.js} +1 -1
- package/dist/post-components/p-655ded00.entry.js +1 -0
- package/dist/post-components/p-76cc3c9a.entry.js +1 -0
- package/dist/post-components/{p-3149d866.entry.js → p-8012cc3b.entry.js} +1 -1
- package/dist/post-components/p-819c93de.entry.js +1 -0
- package/dist/post-components/p-840acd3c.entry.js +1 -0
- package/dist/post-components/p-87b1034f.entry.js +1 -0
- package/dist/post-components/p-88f754e9.entry.js +1 -0
- package/dist/post-components/p-9S_5_Zh8.js +1 -0
- package/dist/post-components/p-BEcxHjuM.js +1 -0
- package/dist/post-components/p-BYfu3J2D.js +1 -0
- package/dist/post-components/p-BjziJWh2.js +2 -0
- package/dist/post-components/p-BoYe-VVx.js +1 -0
- package/dist/post-components/p-CbbADNiv.js +1 -0
- package/dist/post-components/p-DgnQe03V.js +1 -0
- package/dist/post-components/p-DlKbBdcP.js +1 -0
- package/dist/post-components/p-I1j7a0bW.js +1 -0
- package/dist/post-components/p-T8T3po4z.js +1 -0
- package/dist/post-components/{p-a01ea634.entry.js → p-a32d3050.entry.js} +1 -1
- package/dist/post-components/p-b4229624.entry.js +1 -0
- package/dist/post-components/{p-96bf6b01.entry.js → p-b9faa76b.entry.js} +1 -1
- package/dist/post-components/p-bR8vy6-s.js +1 -0
- package/dist/post-components/{p-70fbe469.entry.js → p-ba1b4ba0.entry.js} +1 -1
- package/dist/post-components/p-c0ae13b7.entry.js +1 -0
- package/dist/post-components/p-c9dcdebb.entry.js +1 -0
- package/dist/post-components/p-ccf8020b.entry.js +1 -0
- package/dist/post-components/p-cd68d3a2.entry.js +1 -0
- package/dist/post-components/p-cdc7b8d3.entry.js +1 -0
- package/dist/post-components/{p-1cf5bc67.entry.js → p-d7c9a969.entry.js} +1 -1
- package/dist/post-components/p-db11f781.entry.js +1 -0
- package/dist/post-components/{p-0323b0f3.entry.js → p-dc285087.entry.js} +1 -1
- package/dist/post-components/{p-e8d9723e.entry.js → p-de6f1816.entry.js} +1 -1
- package/dist/post-components/p-dec8bd99.entry.js +1 -0
- package/dist/post-components/p-f9a8ee94.entry.js +1 -0
- package/dist/post-components/post-components.css +2 -2
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +18 -6
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +2 -1
- package/dist/types/components/post-banner/post-banner.d.ts +0 -1
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +12 -1
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +54 -14
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +1 -1
- package/dist/types/components/post-menu/post-menu.d.ts +1 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +8 -5
- package/dist/types/components.d.ts +38 -7
- package/dist/types/utils/breakpoints.d.ts +1 -0
- package/dist/types/utils/closable-target.d.ts +5 -0
- package/dist/types/utils/event-from.d.ts +8 -0
- package/dist/types/utils/floating-ui.d.ts +12 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/hydrate/index.js +1085 -665
- package/hydrate/index.mjs +1085 -665
- package/package.json +31 -22
- package/dist/components/react/p-BXqGI600.js +0 -1
- package/dist/components/react/p-B_WnO-QF.js +0 -1
- package/dist/components/react/p-BaB8wJvk.js +0 -1
- package/dist/components/react/p-Bji_4dfL.js +0 -1
- package/dist/components/react/p-CX2E_IXB.js +0 -1
- package/dist/components/react/p-CwmQwirr.js +0 -1
- package/dist/components/react/p-D17tCsFk.js +0 -1
- package/dist/components/react/p-DD1c_IgL.js +0 -1
- package/dist/components/react/p-Df31eVdi.js +0 -1
- package/dist/components/react/p-I0dqoE80.js +0 -1
- package/dist/components/react/p-rEfV4v4a.js +0 -1
- package/dist/components/react/p-tTf1w3A9.js +0 -1
- package/dist/post-components/p-06ddd73b.entry.js +0 -1
- package/dist/post-components/p-090e52db.entry.js +0 -1
- package/dist/post-components/p-292a9784.entry.js +0 -1
- package/dist/post-components/p-2de6fe62.entry.js +0 -1
- package/dist/post-components/p-39ff8127.entry.js +0 -1
- package/dist/post-components/p-3a968b19.entry.js +0 -1
- package/dist/post-components/p-472_tiaS.js +0 -1
- package/dist/post-components/p-58422de1.entry.js +0 -1
- package/dist/post-components/p-5873a90c.entry.js +0 -1
- package/dist/post-components/p-986fa1c1.entry.js +0 -1
- package/dist/post-components/p-BQ3HlJPr.js +0 -1
- package/dist/post-components/p-B_FOhVrp.js +0 -1
- package/dist/post-components/p-CeNqFJV7.js +0 -1
- package/dist/post-components/p-DYDdaLz-.js +0 -1
- package/dist/post-components/p-DoNhJ2D7.js +0 -1
- package/dist/post-components/p-b1d2384a.entry.js +0 -1
- package/dist/post-components/p-b535fc10.entry.js +0 -1
- package/dist/post-components/p-b99e6621.entry.js +0 -1
- package/dist/post-components/p-bf83a3fb.entry.js +0 -1
- package/dist/post-components/p-c46bc56f.entry.js +0 -1
- package/dist/post-components/p-ce8132a9.entry.js +0 -1
- package/dist/post-components/p-d72e830b.entry.js +0 -1
- package/dist/post-components/p-e08d26f4.entry.js +0 -1
- package/dist/post-components/p-rEfV4v4a.js +0 -1
- package/dist/post-components/p-sn7oKSwC.js +0 -2
- package/dist/post-components/p-tTf1w3A9.js +0 -1
|
@@ -18,7 +18,12 @@ export declare class PostAutocomplete {
|
|
|
18
18
|
* e.g. "{count} suggestions available"
|
|
19
19
|
*/
|
|
20
20
|
readonly textAvailableSuggestions: string;
|
|
21
|
-
|
|
21
|
+
/** Whether the listbox is currently expanded */
|
|
22
|
+
private expanded;
|
|
23
|
+
/** The value of the last run query */
|
|
24
|
+
private lastQuery;
|
|
25
|
+
/** The value of the selected listbox option */
|
|
26
|
+
selectedValue: string | null;
|
|
22
27
|
/** Cancelable event emitted when the input value is to be filtered */
|
|
23
28
|
postFilteringEvent: EventEmitter<string>;
|
|
24
29
|
private get inputElement();
|
|
@@ -26,19 +31,26 @@ export declare class PostAutocomplete {
|
|
|
26
31
|
componentWillLoad(): void;
|
|
27
32
|
disconnectedCallback(): void;
|
|
28
33
|
private attachInputListeners;
|
|
29
|
-
private readonly handleFocus;
|
|
30
34
|
private detachInputListeners;
|
|
31
35
|
private attachListboxListeners;
|
|
32
36
|
private detachListboxListeners;
|
|
33
37
|
private clearAnnouncement;
|
|
34
38
|
private announceCount;
|
|
35
|
-
private
|
|
39
|
+
private showListBox;
|
|
40
|
+
private hideListBox;
|
|
41
|
+
private updateSelectedValue;
|
|
42
|
+
/** Restores the input to the value of the selected option. */
|
|
43
|
+
private restoreSelectedValue;
|
|
44
|
+
/** Runs a query, filtering the listbox options and reflecting the outcome. */
|
|
45
|
+
private runQuery;
|
|
46
|
+
/** Filters the listbox options based on the query, delegating to the consuming parent when possible. */
|
|
47
|
+
private filterListBox;
|
|
48
|
+
private readonly handleClick;
|
|
49
|
+
private readonly handleBlur;
|
|
36
50
|
private readonly handleInput;
|
|
37
51
|
private readonly handleKeyDown;
|
|
38
52
|
private readonly handleOptionSelected;
|
|
39
53
|
private readonly handleOptionActive;
|
|
40
|
-
private readonly
|
|
41
|
-
private readonly showListBox;
|
|
42
|
-
private readonly clearInput;
|
|
54
|
+
private readonly handleClear;
|
|
43
55
|
render(): any;
|
|
44
56
|
}
|
|
@@ -7,9 +7,10 @@ export declare class PostBackToTop {
|
|
|
7
7
|
textBackToTop: string;
|
|
8
8
|
belowFold: boolean;
|
|
9
9
|
private translateY;
|
|
10
|
+
private currentAnimation?;
|
|
10
11
|
private isBelowFold;
|
|
11
12
|
private readonly handleScroll;
|
|
12
|
-
watchBelowFold(newValue: boolean): void
|
|
13
|
+
watchBelowFold(newValue: boolean): Promise<void>;
|
|
13
14
|
private scrollToTop;
|
|
14
15
|
private getSecondPixelValue;
|
|
15
16
|
private animateButton;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { Variant } from './variants';
|
|
2
2
|
/**
|
|
3
|
-
* @slot default - The content displayed inside the breadcrumb item.
|
|
3
|
+
* @slot default - The content displayed inside the breadcrumb item. Can contain text or an <a> element, so consumers can slot their own routing-aware link instead of relying on the `url` prop.
|
|
4
4
|
*/
|
|
5
5
|
export declare class PostBreadcrumbItem {
|
|
6
6
|
host: HTMLPostBreadcrumbItemElement;
|
|
7
|
+
/**
|
|
8
|
+
* Whether the consumer slotted their own <a>. When true, the component renders only the <slot>, leaving the slotted anchor untouched so the host app's router can handle clicks.
|
|
9
|
+
*/
|
|
10
|
+
hasSlottedAnchor: boolean;
|
|
7
11
|
/**
|
|
8
12
|
* The destination URL for the breadcrumb item. If omitted, the item is rendered as non-interactive text.
|
|
9
13
|
*/
|
|
@@ -24,5 +28,12 @@ export declare class PostBreadcrumbItem {
|
|
|
24
28
|
* Indicates that the item represents the current page, applying appropriate styling.
|
|
25
29
|
*/
|
|
26
30
|
selected: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Indicates that this is the only visible item, applying appropriate styling.
|
|
33
|
+
*/
|
|
34
|
+
standalone: boolean;
|
|
35
|
+
componentWillLoad(): void;
|
|
36
|
+
private checkSlottedAnchor;
|
|
37
|
+
private renderContent;
|
|
27
38
|
render(): any;
|
|
28
39
|
}
|
|
@@ -1,17 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot home - The content of the root (home) breadcrumb item. Can contain an `<a>` element, so consumers can slot their own routing-aware link instead of relying on the `home-url` prop.
|
|
3
|
+
*/
|
|
1
4
|
export declare class PostBreadcrumbs {
|
|
2
|
-
private
|
|
5
|
+
private debounceUpdateCollapsedItems;
|
|
3
6
|
private resizeObserver;
|
|
7
|
+
private mutationObserver;
|
|
4
8
|
host: HTMLPostBreadcrumbsElement;
|
|
5
|
-
shouldRenderMenu: boolean;
|
|
6
9
|
id: string;
|
|
10
|
+
loaded: boolean;
|
|
11
|
+
/** Whether the consumer slotted their own `<a>` into the `home` slot. When true, `home-url` is not required, since the internal fallback link is not rendered. */
|
|
12
|
+
hasSlottedHomeAnchor: boolean;
|
|
13
|
+
/** Whether the slotted home anchor contains a post-icon. */
|
|
14
|
+
hasSlottedHomeIcon: boolean;
|
|
15
|
+
/** The number of breadcrumb items, counted from the start, moved into the overflow menu. */
|
|
16
|
+
collapsed: number;
|
|
17
|
+
/** Whether the home item is collapsed into its own overflow menu. */
|
|
18
|
+
homeCollapsed: boolean;
|
|
19
|
+
/** Whether the last (selected) item wraps onto multiple lines. */
|
|
20
|
+
lastItemWraps: boolean;
|
|
21
|
+
/** The visible breadcrumb navigation. */
|
|
22
|
+
private nav;
|
|
23
|
+
/** An off-screen copy of the breadcrumb navigation used for measurement. */
|
|
24
|
+
private hiddenNav;
|
|
7
25
|
/**
|
|
8
26
|
* The URL for the root (home) breadcrumb item.
|
|
9
27
|
*/
|
|
10
|
-
homeUrl
|
|
28
|
+
homeUrl?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The label of the root (home) breadcrumb item. Displayed visibly when `home-text-only` is
|
|
31
|
+
* `true`, otherwise used as an accessible label alongside the home icon.
|
|
32
|
+
*/
|
|
33
|
+
textHome?: string;
|
|
11
34
|
/**
|
|
12
|
-
*
|
|
35
|
+
* Whether `text-home` content is displayed instead of the home icon, enabling segment specific
|
|
36
|
+
* breadcrumbs (like "Private customers" or "About us").
|
|
13
37
|
*/
|
|
14
|
-
|
|
38
|
+
homeTextOnly: boolean;
|
|
15
39
|
/**
|
|
16
40
|
* An accessible label for the breadcrumb navigation.
|
|
17
41
|
*/
|
|
@@ -21,18 +45,34 @@ export declare class PostBreadcrumbs {
|
|
|
21
45
|
*/
|
|
22
46
|
textMoreItems: string;
|
|
23
47
|
componentWillLoad(): void;
|
|
24
|
-
componentDidLoad(): void
|
|
48
|
+
componentDidLoad(): Promise<void>;
|
|
25
49
|
disconnectedCallback(): void;
|
|
26
|
-
private
|
|
27
|
-
private
|
|
50
|
+
private checkSlottedHomeAnchor;
|
|
51
|
+
private get usesHomeText();
|
|
52
|
+
/** Measures the available space and updates all three degrade-stage states. */
|
|
53
|
+
private updateCollapsedItems;
|
|
54
|
+
private calculateCollapsedItems;
|
|
55
|
+
/** Runs the three degrade stages in order against the off-screen measurement clone. */
|
|
56
|
+
private calculateOverflowingItems;
|
|
57
|
+
/** Stage 1: collapses middle items until the rest fits, or none are left. */
|
|
58
|
+
private collapseMiddleItems;
|
|
59
|
+
/** Applies the degrade states to the `<post-breadcrumb-item>` elements. */
|
|
60
|
+
private updateItems;
|
|
61
|
+
/** Rebuilds the off-screen copy of the breadcrumb navigation. */
|
|
62
|
+
private updateHiddenNav;
|
|
63
|
+
private updateAfterMutation;
|
|
28
64
|
/**
|
|
29
|
-
*
|
|
65
|
+
* Renders an off-screen copy of the nav for measurements. `.home` is rebuilt independently (see
|
|
66
|
+
* `buildMeasurementHomeElement`) rather than cloned, since the live nav may show the home item
|
|
67
|
+
* in the overflow menu instead if it is already collapsed.
|
|
30
68
|
*/
|
|
31
|
-
private
|
|
32
|
-
|
|
33
|
-
private
|
|
34
|
-
private prepareBreadcrumbItemsForClone;
|
|
35
|
-
private updateBreadcrumbItemProps;
|
|
69
|
+
private renderHiddenNav;
|
|
70
|
+
/** Builds `.home` in its full, uncollapsed form for measurement. Mirrors `renderHomeContent`, but as plain DOM since this runs outside the render cycle. */
|
|
71
|
+
private buildMeasurementHomeElement;
|
|
36
72
|
private renderMenu;
|
|
73
|
+
/** Reused by the plain home item and the home menu — a slot can only be assigned once. */
|
|
74
|
+
private renderHomeContent;
|
|
75
|
+
/** Degrade stage 2: home renders in full, single-line, not yet collapsed. */
|
|
76
|
+
private renderHome;
|
|
37
77
|
render(): any;
|
|
38
78
|
}
|
|
@@ -76,6 +76,13 @@ export declare class PostPopovercontainer {
|
|
|
76
76
|
* Enables a safespace through which the cursor can be moved without the popover being disabled
|
|
77
77
|
*/
|
|
78
78
|
readonly safeSpace?: 'triangle' | 'trapezoid';
|
|
79
|
+
/**
|
|
80
|
+
* Whether to automatically hide the popover when the target moves outside the scrollport.
|
|
81
|
+
*
|
|
82
|
+
* If the `post-header` can cover the target, the popover will also be hidden as soon as the
|
|
83
|
+
* target scrolls behind it.
|
|
84
|
+
*/
|
|
85
|
+
readonly autoHide?: boolean;
|
|
79
86
|
/**
|
|
80
87
|
* Animation style
|
|
81
88
|
*/
|
|
@@ -129,12 +136,8 @@ export declare class PostPopovercontainer {
|
|
|
129
136
|
* an influence on popovercontainer positioning
|
|
130
137
|
*/
|
|
131
138
|
private startAutoupdates;
|
|
132
|
-
|
|
133
|
-
* Retrieves the dynamic height of the header
|
|
134
|
-
*/
|
|
135
|
-
private getHeaderHeight;
|
|
139
|
+
private updatePosition;
|
|
136
140
|
private calculatePosition;
|
|
137
|
-
private computeMainPosition;
|
|
138
141
|
private updateSafeSpaceBoundaries;
|
|
139
142
|
render(): any;
|
|
140
143
|
}
|
|
@@ -125,6 +125,11 @@ export namespace Components {
|
|
|
125
125
|
* @default false
|
|
126
126
|
*/
|
|
127
127
|
"selected": boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Indicates that this is the only visible item, applying appropriate styling.
|
|
130
|
+
* @default false
|
|
131
|
+
*/
|
|
132
|
+
"standalone": boolean;
|
|
128
133
|
/**
|
|
129
134
|
* The destination URL for the breadcrumb item. If omitted, the item is rendered as non-interactive text.
|
|
130
135
|
*/
|
|
@@ -136,18 +141,23 @@ export namespace Components {
|
|
|
136
141
|
"variant": Variant;
|
|
137
142
|
}
|
|
138
143
|
interface PostBreadcrumbs {
|
|
144
|
+
/**
|
|
145
|
+
* Whether `text-home` content is displayed instead of the home icon, enabling segment specific breadcrumbs (like "Private customers" or "About us").
|
|
146
|
+
* @default false
|
|
147
|
+
*/
|
|
148
|
+
"homeTextOnly": boolean;
|
|
139
149
|
/**
|
|
140
150
|
* The URL for the root (home) breadcrumb item.
|
|
141
151
|
*/
|
|
142
|
-
"homeUrl"
|
|
152
|
+
"homeUrl"?: string;
|
|
143
153
|
/**
|
|
144
154
|
* An accessible label for the breadcrumb navigation.
|
|
145
155
|
*/
|
|
146
156
|
"textBreadcrumbs": string;
|
|
147
157
|
/**
|
|
148
|
-
*
|
|
158
|
+
* The label of the root (home) breadcrumb item. Displayed visibly when `home-text-only` is `true`, otherwise used as an accessible label alongside the home icon.
|
|
149
159
|
*/
|
|
150
|
-
"textHome"
|
|
160
|
+
"textHome"?: string;
|
|
151
161
|
/**
|
|
152
162
|
* An accessible label for the overflow menu that contains collapsed breadcrumb items.
|
|
153
163
|
*/
|
|
@@ -573,6 +583,10 @@ export namespace Components {
|
|
|
573
583
|
* @default false
|
|
574
584
|
*/
|
|
575
585
|
"arrow"?: boolean;
|
|
586
|
+
/**
|
|
587
|
+
* Whether to automatically hide the popover when the target moves outside the scrollport. If the `post-header` can cover the target, the popover will also be hidden as soon as the target scrolls behind it.
|
|
588
|
+
*/
|
|
589
|
+
"autoHide"?: boolean;
|
|
576
590
|
/**
|
|
577
591
|
* Gap between the edge of the page and the popovercontainer
|
|
578
592
|
* @default 8
|
|
@@ -1421,6 +1435,11 @@ declare namespace LocalJSX {
|
|
|
1421
1435
|
* @default false
|
|
1422
1436
|
*/
|
|
1423
1437
|
"selected"?: boolean;
|
|
1438
|
+
/**
|
|
1439
|
+
* Indicates that this is the only visible item, applying appropriate styling.
|
|
1440
|
+
* @default false
|
|
1441
|
+
*/
|
|
1442
|
+
"standalone"?: boolean;
|
|
1424
1443
|
/**
|
|
1425
1444
|
* The destination URL for the breadcrumb item. If omitted, the item is rendered as non-interactive text.
|
|
1426
1445
|
*/
|
|
@@ -1432,18 +1451,23 @@ declare namespace LocalJSX {
|
|
|
1432
1451
|
"variant"?: Variant;
|
|
1433
1452
|
}
|
|
1434
1453
|
interface PostBreadcrumbs {
|
|
1454
|
+
/**
|
|
1455
|
+
* Whether `text-home` content is displayed instead of the home icon, enabling segment specific breadcrumbs (like "Private customers" or "About us").
|
|
1456
|
+
* @default false
|
|
1457
|
+
*/
|
|
1458
|
+
"homeTextOnly"?: boolean;
|
|
1435
1459
|
/**
|
|
1436
1460
|
* The URL for the root (home) breadcrumb item.
|
|
1437
1461
|
*/
|
|
1438
|
-
"homeUrl"
|
|
1462
|
+
"homeUrl"?: string;
|
|
1439
1463
|
/**
|
|
1440
1464
|
* An accessible label for the breadcrumb navigation.
|
|
1441
1465
|
*/
|
|
1442
1466
|
"textBreadcrumbs": string;
|
|
1443
1467
|
/**
|
|
1444
|
-
*
|
|
1468
|
+
* The label of the root (home) breadcrumb item. Displayed visibly when `home-text-only` is `true`, otherwise used as an accessible label alongside the home icon.
|
|
1445
1469
|
*/
|
|
1446
|
-
"textHome"
|
|
1470
|
+
"textHome"?: string;
|
|
1447
1471
|
/**
|
|
1448
1472
|
* An accessible label for the overflow menu that contains collapsed breadcrumb items.
|
|
1449
1473
|
*/
|
|
@@ -1826,6 +1850,10 @@ declare namespace LocalJSX {
|
|
|
1826
1850
|
* @default false
|
|
1827
1851
|
*/
|
|
1828
1852
|
"arrow"?: boolean;
|
|
1853
|
+
/**
|
|
1854
|
+
* Whether to automatically hide the popover when the target moves outside the scrollport. If the `post-header` can cover the target, the popover will also be hidden as soon as the target scrolls behind it.
|
|
1855
|
+
*/
|
|
1856
|
+
"autoHide"?: boolean;
|
|
1829
1857
|
/**
|
|
1830
1858
|
* Gap between the edge of the page and the popovercontainer
|
|
1831
1859
|
* @default 8
|
|
@@ -2069,10 +2097,12 @@ declare namespace LocalJSX {
|
|
|
2069
2097
|
"description": string;
|
|
2070
2098
|
"variant": Variant;
|
|
2071
2099
|
"selected": boolean;
|
|
2100
|
+
"standalone": boolean;
|
|
2072
2101
|
}
|
|
2073
2102
|
interface PostBreadcrumbsAttributes {
|
|
2074
2103
|
"homeUrl": string;
|
|
2075
2104
|
"textHome": string;
|
|
2105
|
+
"homeTextOnly": boolean;
|
|
2076
2106
|
"textBreadcrumbs": string;
|
|
2077
2107
|
"textMoreItems": string;
|
|
2078
2108
|
}
|
|
@@ -2183,6 +2213,7 @@ declare namespace LocalJSX {
|
|
|
2183
2213
|
"offset": number;
|
|
2184
2214
|
"arrow": boolean;
|
|
2185
2215
|
"safeSpace": 'triangle' | 'trapezoid';
|
|
2216
|
+
"autoHide": boolean;
|
|
2186
2217
|
}
|
|
2187
2218
|
interface PostProgressbarAttributes {
|
|
2188
2219
|
"min": number;
|
|
@@ -2244,7 +2275,7 @@ declare namespace LocalJSX {
|
|
|
2244
2275
|
"post-back-to-top": Omit<PostBackToTop, keyof PostBackToTopAttributes> & { [K in keyof PostBackToTop & keyof PostBackToTopAttributes]?: PostBackToTop[K] } & { [K in keyof PostBackToTop & keyof PostBackToTopAttributes as `attr:${K}`]?: PostBackToTopAttributes[K] } & { [K in keyof PostBackToTop & keyof PostBackToTopAttributes as `prop:${K}`]?: PostBackToTop[K] } & OneOf<"textBackToTop", PostBackToTop["textBackToTop"], PostBackToTopAttributes["textBackToTop"]>;
|
|
2245
2276
|
"post-banner": Omit<PostBanner, keyof PostBannerAttributes> & { [K in keyof PostBanner & keyof PostBannerAttributes]?: PostBanner[K] } & { [K in keyof PostBanner & keyof PostBannerAttributes as `attr:${K}`]?: PostBannerAttributes[K] } & { [K in keyof PostBanner & keyof PostBannerAttributes as `prop:${K}`]?: PostBanner[K] };
|
|
2246
2277
|
"post-breadcrumb-item": Omit<PostBreadcrumbItem, keyof PostBreadcrumbItemAttributes> & { [K in keyof PostBreadcrumbItem & keyof PostBreadcrumbItemAttributes]?: PostBreadcrumbItem[K] } & { [K in keyof PostBreadcrumbItem & keyof PostBreadcrumbItemAttributes as `attr:${K}`]?: PostBreadcrumbItemAttributes[K] } & { [K in keyof PostBreadcrumbItem & keyof PostBreadcrumbItemAttributes as `prop:${K}`]?: PostBreadcrumbItem[K] };
|
|
2247
|
-
"post-breadcrumbs": Omit<PostBreadcrumbs, keyof PostBreadcrumbsAttributes> & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes]?: PostBreadcrumbs[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `attr:${K}`]?: PostBreadcrumbsAttributes[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `prop:${K}`]?: PostBreadcrumbs[K] } & OneOf<"
|
|
2278
|
+
"post-breadcrumbs": Omit<PostBreadcrumbs, keyof PostBreadcrumbsAttributes> & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes]?: PostBreadcrumbs[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `attr:${K}`]?: PostBreadcrumbsAttributes[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `prop:${K}`]?: PostBreadcrumbs[K] } & OneOf<"textBreadcrumbs", PostBreadcrumbs["textBreadcrumbs"], PostBreadcrumbsAttributes["textBreadcrumbs"]> & OneOf<"textMoreItems", PostBreadcrumbs["textMoreItems"], PostBreadcrumbsAttributes["textMoreItems"]>;
|
|
2248
2279
|
"post-closebutton": Omit<PostClosebutton, keyof PostClosebuttonAttributes> & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes]?: PostClosebutton[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `attr:${K}`]?: PostClosebuttonAttributes[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `prop:${K}`]?: PostClosebutton[K] };
|
|
2249
2280
|
"post-collapsible": Omit<PostCollapsible, keyof PostCollapsibleAttributes> & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes]?: PostCollapsible[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `attr:${K}`]?: PostCollapsibleAttributes[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `prop:${K}`]?: PostCollapsible[K] };
|
|
2250
2281
|
"post-collapsible-trigger": Omit<PostCollapsibleTrigger, keyof PostCollapsibleTriggerAttributes> & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes]?: PostCollapsibleTrigger[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `attr:${K}`]?: PostCollapsibleTriggerAttributes[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `prop:${K}`]?: PostCollapsibleTrigger[K] };
|
|
@@ -8,3 +8,11 @@ export declare function EventFrom(tag: string, option?: {
|
|
|
8
8
|
ignoreNestedComponents?: boolean;
|
|
9
9
|
allowDescendants?: boolean;
|
|
10
10
|
}): (target: object, propertyKey: string, descriptor?: PropertyDescriptor) => void;
|
|
11
|
+
/**
|
|
12
|
+
* Traverses up the DOM (including crossing shadow DOM boundaries) to find the closest ancestor
|
|
13
|
+
* matching the given predicate.
|
|
14
|
+
* @param start - The starting element
|
|
15
|
+
* @param predicate - A type guard used to test each ancestor
|
|
16
|
+
* @returns The closest matching ancestor or null if none found
|
|
17
|
+
*/
|
|
18
|
+
export declare function findClosestAcrossShadow<T extends Element>(start: Element, predicate: (el: Element) => el is T): T | null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This utility is covered by the end-to-end tests under 'clipping' in `popovercontainer.cy.ts`.
|
|
3
|
+
*/
|
|
4
|
+
import { computePosition } from '@floating-ui/dom';
|
|
5
|
+
/**
|
|
6
|
+
* Computes the coordinates that will position the `floating` element next to a given `reference`
|
|
7
|
+
* element while accounting for the safe area.
|
|
8
|
+
*
|
|
9
|
+
* The safe area is the part of the viewport that the header does not cover. Restricting the
|
|
10
|
+
* clipping rectangles to it makes floating elements behave as if they were clipped by the header.
|
|
11
|
+
*/
|
|
12
|
+
export declare const computePositionWithSafeArea: typeof computePosition;
|