@swisspost/design-system-components 10.0.0-next.72 → 10.0.0-next.75
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/cjs/{create-validator-decorator-Bnx17kwi.js → create-validator-decorator-Bimhl6Ib.js} +1 -1
- package/dist/cjs/{index-ngUOBQot.js → index-CyeY2muT.js} +50 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BHyX4vYq.js → one-of-BVQP1dR3.js} +1 -1
- package/dist/cjs/{package-Bi-tiNRc.js → package-JSyXVavg.js} +1 -1
- package/dist/cjs/{pattern-BgBx5zGQ.js → pattern-BDKu8-v6.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +5 -5
- package/dist/cjs/post-autocomplete.cjs.entry.js +5 -5
- package/dist/cjs/post-avatar.cjs.entry.js +6 -6
- package/dist/cjs/post-back-to-top.cjs.entry.js +5 -5
- package/dist/cjs/post-banner.cjs.entry.js +6 -6
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +9 -11
- package/dist/cjs/post-closebutton_14.cjs.entry.js +69 -51
- package/dist/cjs/post-collapsible_2.cjs.entry.js +6 -6
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +6 -6
- package/dist/cjs/post-footer.cjs.entry.js +6 -6
- 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 +3 -3
- package/dist/cjs/post-login-widget.cjs.entry.js +7 -7
- package/dist/cjs/post-number-input.cjs.entry.js +5 -5
- package/dist/cjs/post-pagination.cjs.entry.js +15 -10
- package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-popover.cjs.entry.js +7 -7
- package/dist/cjs/post-progressbar.cjs.entry.js +3 -3
- package/dist/cjs/post-rating.cjs.entry.js +5 -5
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +109 -0
- package/dist/cjs/post-side-navigation.cjs.entry.js +129 -0
- package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/post-stepper.cjs.entry.js +9 -7
- package/dist/cjs/post-tab-item.cjs.entry.js +6 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/post-tabs.cjs.entry.js +6 -6
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +6 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -5
- package/dist/cjs/{required-lRDOdbd6.js → required-BsZuSJAl.js} +1 -1
- package/dist/cjs/{type-shT641Eo.js → type-DXpEWY0w.js} +1 -1
- package/dist/cjs/{url-DRUMqVBq.js → url-D-EbWRlF.js} +1 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/post-banner/post-banner.css +2 -2
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -4
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +22 -11
- package/dist/collection/components/post-closebutton/types.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +11 -10
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-login-widget/post-login-widget.css +1 -1
- package/dist/collection/components/post-login-widget/post-login-widget.js +1 -1
- 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.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +1 -1
- 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.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +2 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-pagination/post-pagination.js +11 -5
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +6 -5
- package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -0
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +231 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
- package/dist/collection/components/post-stepper/post-stepper.js +3 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +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 +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +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 +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +1 -1
- package/dist/component-names.json +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +1 -1
- package/dist/components/package.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-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.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-login-widget.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-pagination.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-side-navigation-trigger.d.ts +11 -0
- package/dist/components/post-side-navigation-trigger.js +1 -0
- package/dist/components/post-side-navigation.d.ts +11 -0
- package/dist/components/post-side-navigation.js +1 -0
- 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-BZSAV0-K.js → p-B3ZJPCU0.js} +1 -1
- package/dist/components/react/{p-Cd1TsNm7.js → p-BUAS73l8.js} +1 -1
- package/dist/components/react/{p-D1zw8FxT.js → p-BUSQG9af.js} +1 -1
- package/dist/components/react/{p-Bn66acGG.js → p-C7aYEQh5.js} +1 -1
- package/dist/components/react/p-CbU3QFNG.js +1 -0
- package/dist/components/react/p-CdhbouMD.js +1 -0
- package/dist/components/react/{p-B9ZFuYey.js → p-Ci08Eesw.js} +1 -1
- package/dist/components/react/{p-PM7l--ff.js → p-DNddZV_h.js} +1 -1
- package/dist/components/react/{p-BxoRVIIr.js → p-DTg2SXJj.js} +1 -1
- package/dist/components/react/{p-Bu2JeHDf.js → p-DU4XzTGt.js} +1 -1
- package/dist/components/react/{p-CkTAQJGd.js → p-DWlDkwjY.js} +1 -1
- package/dist/components/react/{p-Bg9dtyzK.js → p-wqJxIo5L.js} +1 -1
- package/dist/components/react/p-ztiqEfbC.js +1 -0
- 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-login-widget.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-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.d.ts +11 -0
- package/dist/components/react/post-side-navigation-trigger.js +1 -0
- package/dist/components/react/post-side-navigation.d.ts +11 -0
- package/dist/components/react/post-side-navigation.js +1 -0
- 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 +239 -11
- package/dist/esm/{create-validator-decorator-D8qwF5Qe.js → create-validator-decorator-BNkS_yAb.js} +1 -1
- package/dist/esm/{index-BbDawWJ5.js → index-BGeKgZqi.js} +50 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-GPr3FflU.js → one-of-4BD_5pKR.js} +1 -1
- package/dist/esm/package-CdhbouMD.js +3 -0
- package/dist/esm/{pattern-BWPRYpYv.js → pattern-D7tnGo1u.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +5 -5
- package/dist/esm/post-autocomplete.entry.js +5 -5
- package/dist/esm/post-avatar.entry.js +6 -6
- package/dist/esm/post-back-to-top.entry.js +5 -5
- package/dist/esm/post-banner.entry.js +6 -6
- package/dist/esm/post-breadcrumb-item.entry.js +8 -8
- package/dist/esm/post-breadcrumbs.entry.js +9 -11
- package/dist/esm/post-closebutton_14.entry.js +69 -51
- package/dist/esm/post-collapsible_2.entry.js +6 -6
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +6 -6
- package/dist/esm/post-footer.entry.js +6 -6
- 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 +3 -3
- package/dist/esm/post-login-widget.entry.js +7 -7
- package/dist/esm/post-number-input.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +15 -10
- package/dist/esm/post-popover-trigger.entry.js +5 -5
- package/dist/esm/post-popover.entry.js +7 -7
- package/dist/esm/post-progressbar.entry.js +3 -3
- package/dist/esm/post-rating.entry.js +5 -5
- package/dist/esm/post-side-navigation-trigger.entry.js +107 -0
- package/dist/esm/post-side-navigation.entry.js +127 -0
- package/dist/esm/post-stepper-item.entry.js +4 -4
- package/dist/esm/post-stepper.entry.js +9 -7
- package/dist/esm/post-tab-item.entry.js +6 -6
- package/dist/esm/post-tab-panel.entry.js +6 -6
- package/dist/esm/post-tabs.entry.js +6 -6
- package/dist/esm/post-tooltip-trigger.entry.js +6 -6
- package/dist/esm/post-tooltip.entry.js +5 -5
- package/dist/esm/{required-uK-rZZjy.js → required-DhBxDSbP.js} +1 -1
- package/dist/esm/{type-obmwEgkM.js → type-icZlikjf.js} +1 -1
- package/dist/esm/{url-B28ByZCe.js → url-B_2x2YCy.js} +1 -1
- package/dist/post-components/p-001f58d8.entry.js +1 -0
- package/dist/post-components/{p-00f55af5.entry.js → p-0a08ae23.entry.js} +1 -1
- package/dist/post-components/p-12c8b073.entry.js +1 -0
- package/dist/post-components/{p-7f929bb9.entry.js → p-15fa7e60.entry.js} +1 -1
- package/dist/post-components/{p-17df4e91.entry.js → p-1839276a.entry.js} +1 -1
- package/dist/post-components/{p-17e046fa.entry.js → p-28eeb5d8.entry.js} +1 -1
- package/dist/post-components/p-3e83aa1f.entry.js +1 -0
- package/dist/post-components/{p-3b05e01d.entry.js → p-41b5dbfc.entry.js} +1 -1
- package/dist/post-components/p-5d20cbcb.entry.js +1 -0
- package/dist/post-components/{p-ff98ada4.entry.js → p-6a1c4897.entry.js} +1 -1
- package/dist/post-components/{p-d061773b.entry.js → p-6cbb2e7f.entry.js} +1 -1
- package/dist/post-components/p-6d14f78a.entry.js +1 -0
- package/dist/post-components/{p-62b6154a.entry.js → p-6e8b6249.entry.js} +1 -1
- package/dist/post-components/p-71918d59.entry.js +1 -0
- package/dist/post-components/{p-758fc84f.entry.js → p-7ee4b829.entry.js} +1 -1
- package/dist/post-components/p-8139b0cc.entry.js +1 -0
- package/dist/post-components/{p-f1ca1d3f.entry.js → p-84c8d952.entry.js} +1 -1
- package/dist/post-components/p-87ebb213.entry.js +1 -0
- package/dist/post-components/{p-686a6e22.entry.js → p-89da6378.entry.js} +1 -1
- package/dist/post-components/{p-BRNqUiXj.js → p-8SvFxSp6.js} +1 -1
- package/dist/post-components/{p-07cdd022.entry.js → p-8caaa149.entry.js} +1 -1
- package/dist/post-components/{p-53fd5230.entry.js → p-923439d1.entry.js} +1 -1
- package/dist/post-components/p-97c1f070.entry.js +1 -0
- package/dist/post-components/p-9e240299.entry.js +1 -0
- package/dist/post-components/p-9ec32e7b.entry.js +1 -0
- package/dist/post-components/p-BGeKgZqi.js +2 -0
- package/dist/post-components/{p-DSNGJB58.js → p-CIbyqT6u.js} +1 -1
- package/dist/post-components/p-CdhbouMD.js +1 -0
- package/dist/post-components/{p-IUnDBhPg.js → p-D2ex14Ye.js} +1 -1
- package/dist/post-components/{p-D4F0BqBW.js → p-DH5JdN6V.js} +1 -1
- package/dist/post-components/p-DiBqDD4N.js +1 -0
- package/dist/post-components/p-I6rSjhbA.js +1 -0
- package/dist/post-components/p-aff9dd5e.entry.js +1 -0
- package/dist/post-components/{p-5f4ca179.entry.js → p-c905a97c.entry.js} +1 -1
- package/dist/post-components/p-e54a6be0.entry.js +1 -0
- package/dist/post-components/{p-e2370e94.entry.js → p-eca119d2.entry.js} +1 -1
- package/dist/post-components/p-f9529d40.entry.js +1 -0
- package/dist/post-components/{p-2c6b4e6a.entry.js → p-fac58cbd.entry.js} +1 -1
- package/dist/post-components/post-components.css +2 -2
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +5 -2
- package/dist/types/components/post-closebutton/types.d.ts +1 -1
- package/dist/types/components/post-header/post-header.d.ts +1 -1
- package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +56 -0
- package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
- package/dist/types/components.d.ts +91 -0
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
- package/dist/vrt/helpers/header-test-config.js +3 -2
- package/dist/vrt/helpers/header-variants.config.js +29 -2
- package/hydrate/index.js +485 -209
- package/hydrate/index.mjs +485 -209
- package/package.json +4 -4
- package/dist/components/react/p-85IGlhtB.js +0 -1
- package/dist/components/react/p-ClG-N42b.js +0 -1
- package/dist/components/react/p-DwuW52g5.js +0 -1
- package/dist/esm/package-ClG-N42b.js +0 -3
- package/dist/post-components/p-0288484f.entry.js +0 -1
- package/dist/post-components/p-12047216.entry.js +0 -1
- package/dist/post-components/p-29bd31a0.entry.js +0 -1
- package/dist/post-components/p-5b7e6369.entry.js +0 -1
- package/dist/post-components/p-9865f72c.entry.js +0 -1
- package/dist/post-components/p-99803d57.entry.js +0 -1
- package/dist/post-components/p-BbDawWJ5.js +0 -2
- package/dist/post-components/p-CVsNfXZd.js +0 -1
- package/dist/post-components/p-Ck2qPht6.js +0 -1
- package/dist/post-components/p-ClG-N42b.js +0 -1
- package/dist/post-components/p-a0e0a760.entry.js +0 -1
- package/dist/post-components/p-a850652d.entry.js +0 -1
- package/dist/post-components/p-aac1a8ea.entry.js +0 -1
- package/dist/post-components/p-b3f0f9a2.entry.js +0 -1
- package/dist/post-components/p-c37dba4b.entry.js +0 -1
- package/dist/post-components/p-f2e5f44e.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as t,H as i}from"./p-BGeKgZqi.js";import{v as o}from"./p-CdhbouMD.js";const r=class{constructor(t){e(this,t)}render(){return t(i,{key:"3034744042087279720159462ae44360d763a383","data-version":o,role:"listitem"},t("span",{key:"6d8cb68d6fe4a57a81bf1b0522e4ac8dfd947939",class:"stepper-item-content"},t("span",{key:"5541cd07686c34bbbeb0f3afa1a86d5277fbec81",class:"step-hidden-label visually-hidden"}),t("span",{key:"3c05aeeec3ce309451561cc0648901776c8ad96d",class:"label"},t("slot",{key:"d665e3dd564a08cf37ea7dbb02a583c4976ec79d"}))))}};r.style=':host{grid-row:1;position:relative;padding-inline-start:0}:host::before,:host::after{content:"";display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - 2px)/2);height:2px;background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);inset-inline:0}:host(:not(:first-of-type)){padding-inline-start:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2)}:host(:not(:last-of-type)){padding-inline-end:calc(var(--post-device-sizing-interactive-stepper-indicator) / 2);grid-column:span 2}:host(:not(:first-of-type,:last-of-type))::before{inset-inline-end:50%}:host(:not(:first-of-type,:last-of-type))::after{inset-inline-start:50%}:host(.stepper-item-current:not(:last-of-type))::after,:host(.stepper-item-current:first-of-type)::before,:host(.stepper-item-after-current)::before,:host(.stepper-item-after-current:last-of-type)::after{background-color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::before,:host(.stepper-item-completed)::after{background-color:var(--post-scheme-color-interactive-primary-selected-bg2);z-index:1}.stepper-item-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;position:relative;z-index:2;overflow:hidden;text-decoration:none;color:var(--post-scheme-color-interactive-primary-disabled-fg1);width:fit-content;word-break:break-word;font-size:var(--post-device-font-size-7)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content{margin-inline:auto;text-align:center}:host(:last-of-type)>.stepper-item-content{margin-inline-start:auto;margin-inline-end:-20px;text-align:end}:host(.stepper-item-completed)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-selected)>.stepper-item-content{font-weight:var(--post-device-font-weight-bold)}:host(.stepper-item-selected)>.stepper-item-content::before{font-weight:var(--post-device-font-weight-regular)}:host(.stepper-item-current)>.stepper-item-content{color:var(--post-scheme-color-interactive-primary-enabled-fg1)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3)}.stepper-item-content::before{content:var(--step-number, "?");display:flex;align-items:center;justify-content:center;z-index:1;height:var(--post-device-sizing-interactive-stepper-indicator);width:var(--post-device-sizing-interactive-stepper-indicator);box-sizing:border-box;margin-block-end:var(--post-device-spacing-gap-1);color:var(--post-scheme-color-interactive-primary-disabled-fg3);background-color:var(--post-scheme-color-interactive-primary-disabled-bg4);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-disabled-stroke3);border-radius:var(--post-device-border-radius-round);text-indent:initial}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::before{margin-inline:auto}:host(:last-of-type)>.stepper-item-content::before{margin-inline-start:auto}:host(.stepper-item-completed)>.stepper-item-content::before{color:rgba(0,0,0,0);background-color:var(--post-scheme-color-interactive-primary-selected-bg2);border-color:var(--post-scheme-color-interactive-primary-selected-stroke3)}:host(.stepper-item-current)>.stepper-item-content::before{color:var(--post-scheme-color-interactive-primary-enabled-fg3);background-color:var(--post-scheme-color-interactive-primary-enabled-bg2);border:var(--post-device-border-width-default) solid var(--post-scheme-color-interactive-primary-enabled-stroke3)}.stepper-item-content::after{display:block;position:absolute;inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2);z-index:1;mask-image:var(--post-icon-checkmark-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size7);height:var(--post-device-sizing-interactive-icon-size7);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3)}:root,:host{--post-icon-checkmark-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktY2hlY2ttYXJrLXNvbGlkIj48c3ltYm9sIGlkPSJzMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0ibTcuNDkgMTIuOTktMy42NC0zLjljLS40Ny0uNS0uNDQtMS4zLjA2LTEuNzdzMS4yOS0uNDQgMS43Ny4wNmwxLjQ4IDEuNTggMy4wNS00LjYyYy4zOC0uNTggMS4xNi0uNzQgMS43My0uMzUuNTguMzguNzQgMS4xNi4zNSAxLjczeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJtMTEuMTggMTguODgtNS4xNC01LjUxYTEuNSAxLjUgMCAwIDEgLjA3LTIuMTJjLjYtLjU2IDEuNTUtLjUzIDIuMTIuMDdsMi41NCAyLjcyIDQuODQtNy4zM2MuNDYtLjY5IDEuMzktLjg4IDIuMDgtLjQzLjY5LjQ2Ljg4IDEuMzkuNDMgMi4wOGwtNi45NCAxMC41MVoiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTTE0Ljg3IDI0LjgxIDguMjMgMTcuN2MtLjY2LS43MS0uNjItMS44MS4wOC0yLjQ3LjcxLS42NiAxLjgxLS42MiAyLjQ3LjA4bDMuNjEgMy44NiA2LjYyLTEwLjA0Yy41My0uODEgMS42Mi0xLjAzIDIuNDItLjUuODEuNTMgMS4wMyAxLjYyLjUgMi40MkwxNC44NiAyNC44WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJtMTguNTYgMzAuNi04LjE0LTguNzFjLS43NS0uODEtLjcxLTIuMDcuMS0yLjgzLjgxLS43NSAyLjA3LS43MSAyLjgzLjFsNC42NyA1IDguNDEtMTIuNzRhMiAyIDAgMCAxIDMuMzQgMi4yeiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0OCIgdmlld0JveD0iMCAwIDQ4IDQ4Ij48cGF0aCBkPSJtMjIuMjYgMzYuNTctOS42My0xMC4zMmMtLjg1LS45MS0uOC0yLjMzLjExLTMuMThzMi4zMy0uOCAzLjE4LjExbDUuNzQgNi4xNCAxMC4yLTE1LjQ1YTIuMjU0IDIuMjU0IDAgMCAxIDMuMTItLjY0YzEuMDQuNjggMS4zMiAyLjA4LjY0IDMuMTJMMjIuMjcgMzYuNTdaIi8+PC9zeW1ib2w+PHN5bWJvbCBpZD0iczY0IiB2aWV3Qm94PSIwIDAgNjQgNjQiPjxwYXRoIGQ9Ik0yOS42MSA0Ny45MSAxNy4yIDM0LjYyYTIuNDk3IDIuNDk3IDAgMSAxIDMuNjUtMy40MWw4LjA4IDguNjUgMTMuOTUtMjEuMTNhMi40OTkgMi40OTkgMCAwIDEgNC4xNyAyLjc1TDI5LjYgNDcuOTFaIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWNoZWNrbWFyay1zb2xpZCIvPjwvZz48L3N2Zz4=")}:host(:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size7)/2)}:host(:last-of-type)>.stepper-item-content::after{inset-inline-end:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size7))/2)}:host(.stepper-item-completed)>.stepper-item-content::after{content:""}:host([aria-current=step])>.stepper-item-content::after{mask-image:var(--post-icon-edit-solid);background-color:currentColor;width:var(--post-device-sizing-interactive-icon-size4);height:var(--post-device-sizing-interactive-icon-size4);background-color:var(--post-scheme-color-interactive-primary-enabled-fg3);inset-block-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:root,:host{--post-icon-edit-solid:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxzeW1ib2wgaWQ9ImktZWRpdC1zb2xpZCI+PHN5bWJvbCBpZD0iczE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiPjxwYXRoIGQ9Im0xLjUgMTAuOTkgOC41LTguNXMuMDMuMDUuMDUuMDdsMy41IDMuNDUtOC41MiA4LjUxem0tLjkyIDEuMi0uNTYgMy44IDMuODEtLjU2LTMuMjQtMy4yNFptMTUuMjUtOS4zN0wxMy4xOS4xOGEuNjMuNjMgMCAwIDAtLjg4IDBsLTEuMjcgMS4yN3MuMDQuMDIuMDYuMDRsMy41IDMuNDUgMS4yMy0xLjIzYy4yNC0uMjQuMjQtLjY0IDAtLjg4WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InMyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBkPSJNNS44NCAyMy4xNS4wMiAyNGwuODUtNS44MnptMS40MS0xLjA4TDIwLjQ5IDguODNsLTUuMjUtNS4xN3MtLjA0LS4wNy0uMDctLjFMMS45NSAxNi43OGw1LjMgNS4zWm0xNi41LTE3LjgzTDE5Ljc4LjI3YS45MzYuOTM2IDAgMCAwLTEuMzMgMGwtMi4wOSAyLjA5cy4wNi4wMy4wOS4wNmw1LjI2IDUuMTggMi4wMy0yLjAzYy4zNy0uMzcuMzctLjk2IDAtMS4zM1oiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzMzIiIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0ibTguMDcgMzAuNzctOC4wNCAxLjIgMS4yMS04LjA3em0xLjUzLTEuMzEgMTcuODMtMTcuODQtNi45OS02Ljg5cy0uMDYtLjA5LS4wOS0uMTRMMi41NiAyMi4zOGw3LjAzIDcuMDdaTTMxLjY2IDUuNjIgMjYuMzcuMzNjLS40OS0uNDktMS4yOC0uNDktMS43NiAwbC0yLjg5IDIuODlzLjA5LjA0LjEyLjA4bDcuMDEgNi45IDIuODItMi44MmMuNDktLjQ5LjQ5LTEuMjggMC0xLjc2WiIvPjwvc3ltYm9sPjxzeW1ib2wgaWQ9InM0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48cGF0aCBkPSJNMi40MSAyOC43OSAyNS41MiA1LjcxYy4wNC4wNi4wNi4xMi4xMS4xN2w4Ljc0IDguNkwxMS4yMyAzNy42em0tMS4wMiAyLjE2TC4wNCA0MC4wMWw5LjA0LTEuMzktNy42OS03LjY4Wk0zOS41OCA3LjA3IDMyLjk3LjQ3Yy0uNjEtLjYxLTEuNi0uNjEtMi4yMSAwbC0zLjcgMy43Yy4wNS4wNC4xMS4wNi4xNS4xbDguNzYgOC42MSAzLjYxLTMuNjFjLjYxLS42MS42MS0xLjYgMC0yLjIiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCI+PHBhdGggZD0iTTIuODMgMzQuNTggMzEuMyA2LjExYy4wNS4wNy4wOC4xNC4xNC4ybDEwLjQ5IDEwLjMzLTI4LjU1IDI4LjU0em0tMS4xOCAyLjM2TDAgNDhsMTAuOTktMS42NnpNNDcuNDYgOC40NyAzOS41My41NGMtLjczLS43My0xLjkyLS43My0yLjY1IDBsLTMuODcgMy44N2MuMDYuMDQuMTMuMDcuMTkuMTJsMTAuNTEgMTAuMzQgMy43NS0zLjc1Yy43My0uNzMuNzMtMS45MiAwLTIuNjUiLz48L3N5bWJvbD48c3ltYm9sIGlkPSJzNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCI+PHBhdGggZD0iTTE1LjA4IDYxLjcyIDAgNjMuOThsMi4zLTE1LjA0ek00Mi41MiA3Ljg0Yy0uMDgtLjA4LS4xMy0uMTgtLjE5LS4yOEwzLjU5IDQ2LjM0bDE0LjA5IDE0LjA5LTEuMDcgMS4wN2guMDJMNTYuNSAyMS42em0yMC43NiAzLjQ1TDUyLjcxLjcxYy0uOTctLjk3LTIuNTUtLjk3LTMuNTMgMGwtNC45OSA1Yy4wOS4wNS4xOC4xLjI2LjE3bDEzLjk5IDEzLjc4IDQuODQtNC44NGMuOTctLjk3Ljk3LTIuNTUgMC0zLjUzIi8+PC9zeW1ib2w+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczE2LCBub25lKSIgaHJlZj0iI3MxNiIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXMyNCwgbm9uZSkiIGhyZWY9IiNzMjQiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zMzIsIG5vbmUpIiBocmVmPSIjczMyIi8+PHVzZSBzdHlsZT0iZGlzcGxheTogdmFyKC0tczQwLCBub25lKSIgaHJlZj0iI3M0MCIvPjx1c2Ugc3R5bGU9ImRpc3BsYXk6IHZhcigtLXM0OCwgbm9uZSkiIGhyZWY9IiNzNDgiLz48dXNlIHN0eWxlPSJkaXNwbGF5OiB2YXIoLS1zNjQsIG5vbmUpIiBocmVmPSIjczY0Ii8+PC9zeW1ib2w+PC9kZWZzPjxzdHlsZT5AbWVkaWEgKG1heC13aWR0aDogMjMuOThweCkge2d7LS1zMTY6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogMjRweCkgYW5kIChtYXgtd2lkdGg6IDMxLjk4cHgpIHtney0tczI0OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDMycHgpIGFuZCAobWF4LXdpZHRoOiAzOS45OHB4KSB7Z3stLXMzMjpibG9jazt9fUBtZWRpYSAobWluLXdpZHRoOiA0MHB4KSBhbmQgKG1heC13aWR0aDogNDcuOThweCkge2d7LS1zNDA6YmxvY2s7fX1AbWVkaWEgKG1pbi13aWR0aDogNDhweCkgYW5kIChtYXgtd2lkdGg6IDYzLjk4cHgpIHtney0tczQ4OmJsb2NrO319QG1lZGlhIChtaW4td2lkdGg6IDY0cHgpIHtney0tczY0OmJsb2NrO319PC9zdHlsZT48Zz48dXNlIGhyZWY9IiNpLWVkaXQtc29saWQiLz48L2c+PC9zdmc+")}:host([aria-current=step]:first-of-type)>.stepper-item-content::after{inset-inline-start:calc((var(--post-device-sizing-interactive-stepper-indicator) - var(--post-device-sizing-interactive-icon-size4))/2)}:host([aria-current=step]:not(:first-of-type,:last-of-type))>.stepper-item-content::after{inset-inline-start:calc(50% - var(--post-device-sizing-interactive-icon-size4)/2)}@media screen and (max-width: 779.98px){:host{flex-grow:1;margin-inline:0;padding:0 !important}:host::before{content:unset}:host::after{inset-inline-start:0 !important}:host(:last-of-type){flex:0 0 32px}:host(:last-of-type)::after{content:unset}.stepper-item-content{margin-inline:0 !important}.label{display:none}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host::before,:host::after{background-color:CanvasText !important}:host(.stepper-item-current:not(:first-of-type))::before,:host(.stepper-item-current:last-of-type)::after,:host(.stepper-item-completed)::after,:host(.stepper-item-completed)::before{background-color:Highlight !important}.stepper-item-content::before{forced-color-adjust:none}:host(.stepper-item-current) .stepper-item-content::before{background-color:Canvas;color:CanvasText}:host(.stepper-item-completed) .stepper-item-content::before,:host(.stepper-item-inactive) .stepper-item-content::before{border-color:Canvas;background-color:CanvasText}:host(.stepper-item-inactive) .stepper-item-content::before{color:Canvas}.stepper-item-content::after{color:Canvas}}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{r as post_stepper_item}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,c as s,h as i,H as e,a as o}from"./p-
|
|
1
|
+
import{r as t,c as s,h as i,H as e,a as o}from"./p-BGeKgZqi.js";import"./p-BQ3HlJPr.js";import{E as h}from"./p-rEfV4v4a.js";import{v as n}from"./p-CdhbouMD.js";const a=class{constructor(i){t(this,i),this.postOptionActive=s(this,"postOptionActive"),this.highlightedIndex=-1,this.visibleOptions=[],this.diacriticPattern=/[\u0300-\u036F]/u,this.registerOptions=()=>{this.visibleOptions=this.options},this.updateSelection=t=>{this.options.forEach((s=>{s.selected=s.value===t,s.highlighted=!1})),this.highlightedIndex=-1,this.filter("")},this.clearActive=()=>{this.highlightedIndex=-1,this.postOptionActive.emit(null)},this.normalizeText=t=>t.trim().normalize("NFD").replace(this.diacriticPattern,"").toLocaleLowerCase(),this.resetFilter=()=>{this.visibleOptions=this.options,this.options.forEach((t=>{t.hidden=!1,t.highlighted=!1}))}}get options(){return Array.from(this.host.querySelectorAll("post-listbox-option"))}get inputElement(){let t=this.host.closest("post-autocomplete");return t||(t=document.querySelector(`post-autocomplete[listbox="${this.host.id}"]`)),t?.querySelector("input")}componentWillLoad(){this.registerOptions()}async show(){const t=this.inputElement;t&&this.popoverContainer?.show(t)}async hide(){this.popoverContainer?.hide()}async filter(t){const s=this.normalizeText(t);s?this.visibleOptions=this.options.filter((t=>{const i=this.normalizeText(t.textContent),e=this.normalizeText(t.value).includes(s)||i.includes(s);return t.hidden=!e,e})):this.resetFilter(),this.clearActive()}async clearSelection(){this.updateSelection()}async navigate(t){if(0===this.visibleOptions.length)return;switch(this.highlightedIndex>=0&&(this.visibleOptions[this.highlightedIndex].highlighted=!1),t){case"first":this.highlightedIndex=0;break;case"last":this.highlightedIndex=this.visibleOptions.length-1;break;case"up":this.highlightedIndex=(this.highlightedIndex-1+this.visibleOptions.length)%this.visibleOptions.length;break;case"down":this.highlightedIndex=(this.highlightedIndex+1)%this.visibleOptions.length}const s=this.visibleOptions[this.highlightedIndex];s.scrollIntoView({behavior:"smooth",block:"end"}),s.highlighted=!0,this.postOptionActive.emit(s.id)}async selectActive(){if(this.highlightedIndex>=0){const t=this.visibleOptions[this.highlightedIndex];this.updateSelection(t.value),this.host.dispatchEvent(new CustomEvent("postOptionSelected",{bubbles:!0,detail:t.value}))}}optionClicked(t){this.updateSelection(t.detail)}render(){return i(e,{key:"fc476c9f1a3478871604e83c178efd5eb19ef003","data-version":n,role:"listbox"},i("post-popovercontainer",{key:"8242a45777bcab5d9afb37133726d85798f9b626",placement:"bottom-start",ref:t=>this.popoverContainer=t},i("slot",0===this.visibleOptions.length?{name:"blank-slate"}:null)))}get host(){return o(this)}};(function(t,s,i,e){var o,h=arguments.length,n=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,i,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(h<3?o(n):h>3?o(s,i,n):o(s,i))||n);h>3&&n&&Object.defineProperty(s,i,n)})([h("post-listbox-option")],a.prototype,"optionClicked",null),a.style="post-popovercontainer{border-radius:4px;overflow:hidden;box-shadow:var(--post-device-elevation-300)}div[role=listbox]{max-height:384px;overflow:auto;display:flex;flex-direction:column}::slotted([slot=blank-slate]){display:block;padding:.75rem;color:#666}";export{a as post_listbox}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as o,h as e,H as i,a as s}from"./p-BGeKgZqi.js";import"./p-BQ3HlJPr.js";import{v as r}from"./p-CdhbouMD.js";import{R as n}from"./p-DH5JdN6V.js";import{T as a}from"./p-DiBqDD4N.js";import"./p-8SvFxSp6.js";var c=function(t,o,e,i){var s,r=arguments.length,n=r<3?o:null===i?i=Object.getOwnPropertyDescriptor(o,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,o,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(o,e,n):s(o,e))||n);return r>3&&n&&Object.defineProperty(o,e,n),n};const d=class{constructor(e){t(this,e),this.postChange=o(this,"postChange"),this.authenticated=null,this.user=null}async componentWillLoad(){await this.fetchAuthState()}async isAuthenticated(){return this.authenticated}async refresh(){await this.fetchAuthState()}async fetchAuthState(){try{const t=await fetch("https://n.account.post.ch/v1/session/subscribe",{credentials:"include"});if(!t.ok)return void this.setAuthState(!1);const o=await t.json(),e=void 0!==o?.data?.email;this.user=o?.data,this.setAuthState(e)}catch{this.setAuthState(!1)}}setAuthState(t){this.authenticated!==t&&(this.authenticated=t,this.postChange.emit({authenticated:t}))}render(){return e(i,{key:"74d00f53d1de12c739242183cb4551fe5127eb29","data-version":r},!0===this.authenticated?e("div",null,e("post-menu-trigger",{for:"user-menu-default"},e("button",{class:"btn btn-link",type:"button"},e("post-avatar",{firstname:this.user.name,lastname:this.user.surname,description:this.textCurrentUser.replace("{user}",`${this.user.name} ${this.user.surname}`)}),e("span",{class:"visually-hidden"},this.textUserMenuTrigger))),e("post-menu",{label:this.textUserMenu,id:"user-menu-default"},e("div",{slot:"header"},e("post-avatar",{firstname:this.user.name,lastname:this.user.surname,email:this.user.email,"aria-hidden":"true"}),this.user.name," ",this.user.surname),e("slot",{name:"user-links"}))):e("div",null,e("slot",{name:"login-link"})))}get host(){return s(this)}};c([n(),a("string")],d.prototype,"textCurrentUser",void 0),c([n(),a("string")],d.prototype,"textUserMenu",void 0),c([n(),a("string")],d.prototype,"textUserMenuTrigger",void 0),d.style=":host post-menu-trigger button{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;min-height:var(--post-device-sizing-interactive-button-height-1);gap:var(--post-device-spacing-gap-inline-10);padding:0 var(--post-device-spacing-padding-inline-6)}:host post-menu-trigger button:not(:disabled):hover{text-decoration:none}:host post-menu-trigger button:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}:host post-menu-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}:host post-menu-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host post-menu-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){:host post-menu-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host post-menu-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host post-menu-trigger button:is(a){color:LinkText;border:unset}:host post-menu-trigger button:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}:host post-menu-trigger button:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}:host post-menu-trigger button>post-icon{width:var(--post-device-sizing-interactive-button-icon-4);height:var(--post-device-sizing-interactive-button-icon-4)}:host post-menu-trigger button{border-radius:var(--post-device-border-radius-round) !important;border:0 none;min-height:0;padding:0}:host post-menu-trigger .visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}";export{d as post_login_widget}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as s,H as i,a as o}from"./p-
|
|
1
|
+
import{r as t,h as s,H as i,a as o}from"./p-BGeKgZqi.js";import"./p-BQ3HlJPr.js";import{v as e}from"./p-CdhbouMD.js";import{i as r}from"./p-BrY4VWTQ.js";import{T as h}from"./p-DiBqDD4N.js";import"./p-BFTU3MAI.js";import"./p-8SvFxSp6.js";const n=class{syncAriaExpanded(t){this.ariaExpanded=t,this.trigger&&this.trigger.setAttribute("aria-expanded",String(t))}hasAriaControlsElements(t){return"ariaControlsElements"in t}get popover(){const t=this.host.querySelector("post-popover")??document.getElementById(this.for);return t?"post-popover"===t?.localName?t:null:(console.error(`No post-popover found ${this.for?`with ID: ${this.for}`:"inside the <post-popover-trigger>"}.`),null)}setupTrigger(){const t=this.popover;this.trigger=this.host.querySelector("*"),this.trigger?(r(this.trigger)||(this.trigger.setAttribute("tabindex","0"),this.trigger.setAttribute("role","button")),t&&(this.trigger.setAttribute("aria-expanded",this.ariaExpanded.toString()),this.trigger.setAttribute("aria-haspopup","true"),this.for?this.trigger.setAttribute("aria-controls",this.for):this.hasAriaControlsElements(this.trigger)?this.trigger.ariaControlsElements=[t]:(t.id||(t.id=`popover-${crypto.randomUUID()}`),this.trigger.setAttribute("aria-controls",t.id)),this.trigger?.addEventListener("click",this.boundHandleToggle),this.trigger?.addEventListener("keydown",this.boundHandleKeyDown))):console.error("No content found in the post-popover-trigger slot. Please insert a focusable element or content that can receive focus.")}handleToggle(){this.popover?.toggle(this.trigger),this.focusTrigger()}focusTrigger(){!this.popoverOpen&&this.trigger&&this.trigger.focus()}constructor(s){t(this,s),this.ariaExpanded=!1,this.popoverOpen=!1,this.handleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.handleToggle())},this.boundHandleToggle=this.handleToggle.bind(this),this.boundHandleKeyDown=this.handleKeyDown.bind(this),this.boundHandlePostToggle=t=>{this.popoverOpen=t.detail.isOpen,this.focusTrigger()}}componentDidLoad(){this.setupTrigger(),this.popover?.addEventListener("postToggle",this.boundHandlePostToggle)}disconnectedCallback(){this.trigger?.removeEventListener("click",this.boundHandleToggle),this.trigger?.removeEventListener("keydown",this.boundHandleKeyDown),this.popover?.removeEventListener("postToggle",this.boundHandlePostToggle)}render(){return s(i,{key:"999ec824514eb6e340fd607ce03d82c76354e102","data-version":e},s("slot",{key:"3429ab6e44441c2660c14c40436682b5ac49a1b6",onSlotchange:()=>this.setupTrigger()}))}get host(){return o(this)}static get watchers(){return{popoverOpen:[{syncAriaExpanded:0}]}}};(function(t,s,i,o){var e,r=arguments.length,h=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,i,o);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(h=(r<3?e(h):r>3?e(s,i,h):e(s,i))||h);r>3&&h&&Object.defineProperty(s,i,h)})([h("string")],n.prototype,"for",void 0),n.style=":host{cursor:pointer}";export{n as post_popover_trigger}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(
|
|
1
|
+
:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-side-navigation,post-side-navigation-trigger,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:hidden}@media (scripting: none){:where(post-accordion,post-accordion-item,post-autocomplete,post-avatar,post-back-to-top,post-banner,post-breadcrumb-item,post-breadcrumbs,post-closebutton,post-collapsible,post-collapsible-trigger,post-date-picker,post-footer,post-header,post-icon,post-language-menu,post-language-menu-item,post-linkarea,post-listbox,post-listbox-option,post-login-widget,post-logo,post-mainnavigation,post-megadropdown,post-megadropdown-trigger,post-menu,post-menu-item,post-menu-trigger,post-number-input,post-pagination,post-popover,post-popover-trigger,post-popovercontainer,post-progressbar,post-rating,post-side-navigation,post-side-navigation-trigger,post-stepper,post-stepper-item,post-tab-item,post-tab-panel,post-tabs,post-togglebutton,post-tooltip,post-tooltip-trigger):not(:defined):not(.hydrated,[data-hydrated]){visibility:visible}}post-accordion:not([multiple]):not(:has([collapsed]))>post-accordion-item~post-accordion-item{--post-collapsible-initial-height:0;--post-collapsible-initial-overflow:hidden;--post-accordion-icon-initial-transform:rotate(-180deg)}.form-label:has(+post-number-input){display:block}.form-label:has(+post-number-input.number-input-sm){padding-inline:var(--post-device-spacing-padding-2);padding-block:var(--post-device-spacing-padding-30);font-weight:var(--post-device-font-weight-bold);font-size:var(--post-device-font-size-7)}.form-label:has(+post-number-input.disabled){color:var(--post-scheme-color-interactive-input-disabled-fg)}post-number-input.form-floating>input.form-control{padding:var(--post-device-spacing-padding-block-29) var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-block-3)}post-number-input.form-floating>input.form-control:focus~label,post-number-input.form-floating>input.form-control:not(:placeholder-shown)~label{padding-block-start:var(--post-device-spacing-padding-block-3);padding-inline:var(--post-device-spacing-padding-inline-1) var(--post-device-spacing-padding-15);font-size:var(--post-device-font-size-10)}post-number-input.form-floating::after{width:var(--post-device-sizing-notification-1);height:var(--post-device-sizing-notification-1)}post-number-input.form-floating:has(>input.form-control.is-valid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-valid)::after,post-number-input.form-floating:has(>input.form-control.is-invalid:not(:disabled))::after,post-number-input.form-floating:has(>input.form-control:-webkit-autofill.is-invalid)::after{top:calc(var(--post-device-sizing-interactive-button-height-6) / 2);right:calc(
|
|
2
2
|
var(--post-device-spacing-padding-inline-1) +
|
|
3
3
|
(var(--post-device-spacing-padding-23)* 2) +
|
|
4
4
|
var(--post-device-sizing-interactive-icon-size6) +
|
|
5
5
|
(var(--post-device-border-width-default) * 2)
|
|
6
|
-
)}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=login-link]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);
|
|
6
|
+
)}post-number-input input[type=number]{appearance:textfield}post-number-input input[type=number]::-webkit-inner-spin-button,post-number-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}post-login-widget>[slot=login-link]{display:inline-flex;position:relative;align-items:center;justify-content:center;max-width:100%;overflow:hidden;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;border-width:var(--post-device-border-width-default);border-style:solid;border-color:rgba(0,0,0,0);border-radius:var(--post-device-border-radius-round);background-color:rgba(0,0,0,0);box-shadow:none;font-family:inherit;font-size:var(--post-device-font-size-6);font-weight:var(--post-device-font-weight-bold);text-decoration:none;white-space:nowrap;cursor:pointer;border:unset;font-weight:unset;display:flex;padding:.25rem .625rem;gap:.375rem;font-size:1rem;border-color:var(--post-scheme-color-interactive-button-tertiary-enabled-stroke);color:var(--post-scheme-color-interactive-button-tertiary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-enabled-bg)}post-login-widget>[slot=login-link]:not(:disabled):hover{text-decoration:none}post-login-widget>[slot=login-link]:disabled{border-style:var(--post-core-border-style-dash);cursor:unset}post-login-widget>[slot=login-link]{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-login-widget>[slot=login-link]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=login-link]:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-login-widget>[slot=login-link]:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=login-link]:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-login-widget>[slot=login-link]:is(a){color:LinkText;border:unset}post-login-widget>[slot=login-link]:is(button){background-color:ButtonFace !important;border:1px solid ButtonBorder !important}post-login-widget>[slot=login-link]:not(:disabled,.disabled):is(button):hover{background-color:Highlight !important}post-login-widget>[slot=login-link]:not(:disabled,.disabled):is(button):hover>post-icon{color:HighlightText !important}}post-login-widget>[slot=login-link]:hover{border-color:var(--post-scheme-color-interactive-button-tertiary-hover-stroke);color:var(--post-scheme-color-interactive-button-tertiary-hover-fg);background-color:var(--post-scheme-color-interactive-button-tertiary-hover-bg)}post-login-widget>[slot=login-link]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active){box-shadow:var(--post-device-elevation-100);border-color:var(--post-scheme-color-interactive-button-primary-enabled-stroke);color:var(--post-scheme-color-interactive-button-primary-enabled-fg);background-color:var(--post-scheme-color-interactive-button-primary-enabled-bg)}post-login-widget>[slot=login-link]:is([aria-current],[aria-pressed=true],[aria-expanded=true],.active):hover{border-color:var(--post-scheme-color-interactive-button-primary-hover-stroke);color:var(--post-scheme-color-interactive-button-primary-hover-fg);background-color:var(--post-scheme-color-interactive-button-primary-hover-bg)}post-login-widget>[slot=login-link]{width:fit-content}@media screen and (min-width: 0)and (max-width: 599.98px){post-login-widget>[slot=login-link]>:not(post-icon){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}post-login-widget>[slot=login-link]>post-icon{font-size:1.5rem}}@media screen and (max-width: 599.98px){post-side-navigation:not([data-hydrated]){display:none !important}}post-side-navigation{--post-side-navigation-indent:2.5rem;--post-side-navigation-icon-size:1.25rem}post-side-navigation nav{width:100%}post-side-navigation nav ul{list-style:none;margin:0;padding-inline-start:0}post-side-navigation .post-side-navigation-heading{margin:0;padding:.5rem 1rem;font-size:1rem;font-weight:700;color:rgba(0,0,0,.6);border-bottom:1px solid rgba(0,0,0,.15)}post-side-navigation>ul>li>.post-side-navigation-item{font-weight:700}post-side-navigation .post-side-navigation-item[aria-current=page]{font-weight:700;background-color:#000;color:#fff;min-width:350px}post-side-navigation ul{--_indent-level:0}post-side-navigation ul ul{--_indent-level:1}post-side-navigation ul ul ul{--_indent-level:2}post-side-navigation ul ul ul ul{--_indent-level:3}post-side-navigation ul ul .post-side-navigation-item{padding-inline-start:calc(1rem + var(--_indent-level)*var(--post-side-navigation-indent))}@media screen and (max-width: 1023.98px){post-side-navigation ul ul .post-side-navigation-item{padding-inline-start:calc(1rem + var(--_indent-level)*2.25rem)}}post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>:where(a,span):not(:has(>post-icon:first-child))::before,post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>div:not(:has(>a>post-icon:first-child))::before{content:"";flex:none;inline-size:var(--post-side-navigation-icon-size)}@media screen and (max-width: 1023.98px){post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>:where(a,span):not(:has(>post-icon:first-child))::before,post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>div:not(:has(>a>post-icon:first-child))::before{inline-size:1rem}}post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>post-collapsible-trigger>button:not(:has(>post-icon:first-child))::before{content:"";flex:none;inline-size:var(--post-side-navigation-icon-size)}@media screen and (max-width: 1023.98px){post-side-navigation :where(nav)>ul:has(>li>:where(a,span,post-collapsible-trigger>button,div>a)>post-icon:first-child)>li>post-collapsible-trigger>button:not(:has(>post-icon:first-child))::before{inline-size:1rem}}post-collapsible-trigger post-icon[name=chevrondown]{color:#000}.post-side-navigation-item{display:flex;align-items:center;gap:.5rem;width:100%;min-width:0;margin:0;padding:.75rem 1rem;box-sizing:border-box;border:0;border-bottom:1px solid rgba(0,0,0,.15);border-radius:0;background-color:rgba(0,0,0,0);color:#000;font:inherit;text-align:start;text-decoration:none;appearance:none;line-height:1.5}.post-side-navigation-item button{display:flex;align-items:center;padding-inline:.5rem;border:0;border-inline-start:1px solid rgba(0,0,0,.15);background:rgba(0,0,0,0);cursor:pointer}.post-side-navigation-item button>post-icon{transition:transform .2s ease}.post-side-navigation-item button[aria-expanded=true]>post-icon{transform:rotate(180deg)}.post-side-navigation-item:where(a,button){cursor:pointer}.post-side-navigation-item:where(a,button):hover{background-color:rgba(0,0,0,.06)}.post-side-navigation-item>post-icon:first-child{flex:none}.post-side-navigation-item>post-icon[name=chevrondown]{margin-inline-start:auto}.post-side-navigation-item>post-icon:last-child{transition:transform .2s ease}.post-side-navigation-item[aria-expanded=true]>post-icon:last-child{transform:rotate(180deg)}.post-side-navigation-item>a{flex:1 1 auto;color:inherit;text-decoration:none}.post-side-navigation-item>post-collapsible-trigger{margin-inline-start:auto}.post-side-navigation-item>post-collapsible-trigger>button{display:flex;align-items:center;padding-inline:.5rem;border:0;border-inline-start:1px solid rgba(0,0,0,.15);background:rgba(0,0,0,0);cursor:pointer}.post-side-navigation-item>post-collapsible-trigger>button>post-icon{transition:transform .2s ease}.post-side-navigation-item>post-collapsible-trigger>button[aria-expanded=true]>post-icon{transform:rotate(180deg)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,g as t,b as a}from"./p-
|
|
1
|
+
import{p as e,g as t,b as a}from"./p-BGeKgZqi.js";export{s as setNonce}from"./p-BGeKgZqi.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((async e=>(await t(),a([["p-9ec32e7b",[[257,"post-footer",{textFooter:[513,"text-footer"],device:[32],gridSlotDisplayed:[32]}]]],["p-9e240299",[[257,"post-breadcrumbs",{homeUrl:[513,"home-url"],textHome:[513,"text-home"],textBreadcrumbs:[513,"text-breadcrumbs"],textMoreItems:[513,"text-more-items"],shouldRenderMenu:[32],id:[32]}]]],["p-f9529d40",[[257,"post-login-widget",{textCurrentUser:[513,"text-current-user"],textUserMenu:[513,"text-user-menu"],textUserMenuTrigger:[513,"text-user-menu-trigger"],authenticated:[32],user:[32],isAuthenticated:[64],refresh:[64]}]]],["p-001f58d8",[[257,"post-popover",{placement:[1],textClose:[513,"text-close"],arrow:[4],show:[64],hide:[64],toggle:[64]}]]],["p-c905a97c",[[257,"post-date-picker",{locale:[1],range:[4],selectedStartDate:[1025,"selected-start-date"],selectedEndDate:[1025,"selected-end-date"],min:[1],max:[1],renderCellCallback:[16],inline:[4],textNextMonth:[513,"text-next-month"],textNextYear:[513,"text-next-year"],textNextDecade:[513,"text-next-decade"],textPreviousMonth:[513,"text-previous-month"],textPreviousYear:[513,"text-previous-year"],textPreviousDecade:[513,"text-previous-decade"],textSwitchYear:[513,"text-switch-year"],textToggleCalendar:[1,"text-toggle-calendar"],inputDisabled:[32],today:[32],startDate:[32],show:[64],hide:[64]},null,{locale:[{validateLocale:0},{updateLocale:0}],range:[{updateRange:0}],inline:[{validateInline:0}]}]]],["p-6d14f78a",[[257,"post-side-navigation",{textClose:[513,"text-close"],device:[32],toggle:[64],show:[64],hide:[64]}]]],["p-0a08ae23",[[257,"post-autocomplete",{filterThreshold:[514,"filter-threshold"],clearable:[516],listbox:[513],textAvailableSuggestions:[513,"text-available-suggestions"],inputValue:[32]}]]],["p-41b5dbfc",[[1,"post-back-to-top",{textBackToTop:[513,"text-back-to-top"],belowFold:[32]},null,{belowFold:[{watchBelowFold:0}]}]]],["p-3e83aa1f",[[257,"post-breadcrumb-item",{url:[513],label:[513],description:[513],variant:[513],selected:[516]}]]],["p-eca119d2",[[257,"post-listbox",{show:[64],hide:[64],filter:[64],clearSelection:[64],navigate:[64],selectActive:[64]},[[0,"postOptionSelected","optionClicked"]]]]],["p-71918d59",[[257,"post-listbox-option",{value:[513],selected:[516],highlighted:[516]}]]],["p-89da6378",[[257,"post-number-input",{isDisabled:[32],isIncrementDisabled:[32],isDecrementDisabled:[32],small:[32],input:[32]}]]],["p-aff9dd5e",[[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"],paginationId:[32],maxVisiblePages:[32],items:[32]},null,{page:[{handlePropsChange:0}],pageSize:[{handlePropsChange:0}],collectionSize:[{handlePropsChange:0}]}]]],["p-6a1c4897",[[1,"post-rating",{label:[513],stars:[2],currentRating:[1026,"current-rating"],readonly:[4],hoveredIndex:[32]}]]],["p-84c8d952",[[257,"post-tooltip",{placement:[1],arrow:[4],open:[1540],show:[64],hide:[64],toggle:[64]}]]],["p-97c1f070",[[257,"post-banner",{type:[513],hasActions:[32],dismiss:[64]},[[0,"click","onCloseButtonClick"]]]]],["p-15fa7e60",[[257,"post-linkarea"]]],["p-fac58cbd",[[257,"post-popover-trigger",{for:[513],ariaExpanded:[32],popoverOpen:[32]},null,{popoverOpen:[{syncAriaExpanded:0}]}]]],["p-6cbb2e7f",[[1,"post-progressbar",{min:[2],max:[2],value:[2]}]]],["p-8139b0cc",[[257,"post-side-navigation-trigger",{for:[513],update:[64]}]]],["p-5d20cbcb",[[257,"post-stepper",{textCurrentStep:[513,"text-current-step"],textCompletedStep:[513,"text-completed-step"],textStepNumber:[513,"text-step-number"],currentIndex:[2,"current-index"],selectedIndex:[2,"selected-index"],mobileActiveStepLabel:[32],mobileActiveStepName:[32]},null,{currentIndex:[{validateCurrentIndex:0}],selectedIndex:[{validateSelectedIndex:0}],textStepNumber:[{updateActiveStepNumber:0}]}]]],["p-e54a6be0",[[257,"post-stepper-item"]]],["p-8caaa149",[[257,"post-tab-item",{name:[513],tabId:[32],isNavigationMode:[32]}]]],["p-12c8b073",[[257,"post-tab-panel",{for:[513],panelId:[32]}]]],["p-28eeb5d8",[[257,"post-tabs",{activeTab:[1,"active-tab"],fullWidth:[516,"full-width"],label:[513],isNavigationMode:[32],show:[64]},null,{label:[{validateLabel:0}]}]]],["p-1839276a",[[257,"post-tooltip-trigger",{for:[513],delay:[2]}]]],["p-923439d1",[[257,"post-avatar",{firstname:[513],lastname:[1],email:[1],description:[1],slottedImage:[32],avatarType:[32],imageUrl:[32],imageAlt:[32],initials:[32],storageKey:[32]},null,{email:[{updateEmail:0}]}]]],["p-7ee4b829",[[257,"post-collapsible",{collapsed:[1028],toggle:[64]}],[257,"post-collapsible-trigger",{for:[513],update:[64]}]]],["p-87ebb213",[[257,"post-language-menu",{textChangeLanguage:[513,"text-change-language"],textCurrentLanguage:[513,"text-current-language"],variant:[513],activeLang:[32]},[[0,"postChange","handlePostChange"],[7,"scroll","hideMenuOnScroll"],[0,"postLanguageMenuItemInitiallyActive","handleInitiallyActive"]],{variant:[{handleVariantChange:0}]}],[257,"post-header",{fullWidth:[516,"full-width"],textMenu:[513,"text-menu"],device:[32],hasTitle:[32],hasMainNav:[32],hasLocalNav:[32],burgerMenuExtended:[32],megadropdownOpen:[32],toggleBurgerMenu:[64]},[[0,"focusin","onFocusChange"],[0,"focusout","onFocusChange"]],{device:[{lockBody:0}],burgerMenuExtended:[{lockBody:0}]}],[257,"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]}],[260,"post-language-menu-item",{code:[513],active:[1540],variant:[1],name:[1],description:[1],url:[1],select:[64]}],[257,"post-mainnavigation",{textMain:[513,"text-main"],canScrollLeft:[32],canScrollRight:[32]},[[9,"mouseup","stopScrolling"],[9,"mouseleave","stopScrolling"]]],[257,"post-megadropdown-trigger",{active:[516],for:[513],isMegadropdownExpanded:[32],slottedContent:[32]},[[4,"postToggleMegadropdown","onMegadropdownToggled"]]],[257,"post-logo",{url:[1]}],[257,"post-togglebutton",{toggled:[1028]}],[0,"post-menu-item"],[321,"post-closebutton",{buttonType:[1,"button-type"],placement:[513],size:[513]}],[257,"post-menu",{placement:[1],label:[513],isVisible:[32],toggle:[64],show:[64],hide:[64]}],[257,"post-menu-trigger",{for:[513]}],[257,"post-popovercontainer",{placement:[1],edgeGap:[2,"edge-gap"],offset:[2],arrow:[4],safeSpace:[513,"safe-space"],dynamicPlacement:[32],show:[64],hide:[64],toggle:[64]}],[1,"post-icon",{animation:[513],base:[1],url:[1],flipH:[516,"flip-h"],flipV:[516,"flip-v"],name:[513],rotate:[2],scale:[2]}]]],["p-6e8b6249",[[257,"post-accordion-item",{collapsed:[1540],headingLevel:[2,"heading-level"],id:[32],slottedLogo:[32],toggle:[64]},[[2,"postToggle","onCollapseToggle"]]],[257,"post-accordion",{headingLevel:[514,"heading-level"],multiple:[516],toggle:[64],expandAll:[64],collapseAll:[64]},[[0,"postToggle","collapseToggleHandler"]],{headingLevel:[{syncHeadingLevel:0}]}]]]],e))));
|
|
@@ -3,10 +3,13 @@ import { ButtonType, Placement, Size } from './types';
|
|
|
3
3
|
* @slot default - Slot for placing visually hidden label in the close button.
|
|
4
4
|
*/
|
|
5
5
|
export declare class PostClosebutton {
|
|
6
|
-
|
|
6
|
+
internals: ElementInternals;
|
|
7
|
+
private mutationObserver?;
|
|
8
|
+
private visuallyHidden;
|
|
7
9
|
host: HTMLPostClosebuttonElement;
|
|
8
10
|
/**
|
|
9
11
|
* The "type" attribute used for the close button
|
|
12
|
+
|
|
10
13
|
*/
|
|
11
14
|
buttonType?: ButtonType;
|
|
12
15
|
/**
|
|
@@ -18,8 +21,8 @@ export declare class PostClosebutton {
|
|
|
18
21
|
*/
|
|
19
22
|
size: Size;
|
|
20
23
|
componentDidLoad(): void;
|
|
21
|
-
connectedCallback(): void;
|
|
22
24
|
disconnectedCallback(): void;
|
|
23
25
|
private checkContent;
|
|
26
|
+
private handleClick;
|
|
24
27
|
render(): any;
|
|
25
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BUTTON_TYPES: readonly ["button", "
|
|
1
|
+
export declare const BUTTON_TYPES: readonly ["button", "reset"];
|
|
2
2
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
3
3
|
export declare const PLACEMENT: readonly ["manual", "auto"];
|
|
4
4
|
export type Placement = (typeof PLACEMENT)[number];
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from "../../utils/breakpoints";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)
|
|
5
|
+
*/
|
|
6
|
+
export declare class PostSideNavigation {
|
|
7
|
+
host: HTMLPostSideNavigationElement;
|
|
8
|
+
device: Device;
|
|
9
|
+
/**
|
|
10
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
11
|
+
*/
|
|
12
|
+
textClose: string;
|
|
13
|
+
/**
|
|
14
|
+
* An event emitted when the navigation is shown or hidden on mobile.
|
|
15
|
+
* The payload is a boolean: `true` when the navigation opens, `false` when it closes.
|
|
16
|
+
*/
|
|
17
|
+
postToggle: EventEmitter<boolean>;
|
|
18
|
+
private breakpointChange;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
get dialog(): HTMLDialogElement;
|
|
22
|
+
private get collapsibleTrigger();
|
|
23
|
+
private get collapsible();
|
|
24
|
+
/**
|
|
25
|
+
* Collapses the active disclosure on Escape; lets the native dialog handle it otherwise.
|
|
26
|
+
*/
|
|
27
|
+
private handleKeyDown;
|
|
28
|
+
/**
|
|
29
|
+
* Toggles the navigation programmatically.
|
|
30
|
+
* No-op on desktop.
|
|
31
|
+
*/
|
|
32
|
+
toggle(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Opens the navigation programmatically.
|
|
35
|
+
* No-op on desktop.
|
|
36
|
+
*/
|
|
37
|
+
show(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Closes the navigation programmatically.
|
|
40
|
+
* No-op on desktop.
|
|
41
|
+
*/
|
|
42
|
+
hide(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Move focus into the navigation when the dialog opens.
|
|
45
|
+
*/
|
|
46
|
+
private focusNav;
|
|
47
|
+
/**
|
|
48
|
+
* Render inline navigation (desktop).
|
|
49
|
+
*/
|
|
50
|
+
private renderNav;
|
|
51
|
+
/**
|
|
52
|
+
* Render modal navigation (mobile/tablet).
|
|
53
|
+
*/
|
|
54
|
+
private renderDialog;
|
|
55
|
+
render(): any;
|
|
56
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Slot for the `<button>` that toggles the navigation.
|
|
3
|
+
*/
|
|
4
|
+
export declare class PostSideNavigationTrigger {
|
|
5
|
+
host: HTMLPostSideNavigationTriggerElement;
|
|
6
|
+
for: string;
|
|
7
|
+
private trigger?;
|
|
8
|
+
private root;
|
|
9
|
+
private readonly observer;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
componentDidLoad(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the post-side-navigation controlled by the trigger.
|
|
16
|
+
*/
|
|
17
|
+
private get sideNavigation();
|
|
18
|
+
/**
|
|
19
|
+
* Find the button, attach the click listener and the initial ARIA attributes.
|
|
20
|
+
*/
|
|
21
|
+
private setTrigger;
|
|
22
|
+
private updateAriaAttributes;
|
|
23
|
+
/**
|
|
24
|
+
* Keep the trigger's `aria-expanded` in sync with the navigation state.
|
|
25
|
+
*/
|
|
26
|
+
private handlePostToggle;
|
|
27
|
+
/**
|
|
28
|
+
* Manually update the trigger's ARIA attributes.
|
|
29
|
+
*/
|
|
30
|
+
update(): Promise<void>;
|
|
31
|
+
private toggleSideNavigation;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -538,6 +538,7 @@ export namespace Components {
|
|
|
538
538
|
"label": string;
|
|
539
539
|
/**
|
|
540
540
|
* The current active page number. **If not specified, defaults to the first page.**
|
|
541
|
+
* @default 1
|
|
541
542
|
*/
|
|
542
543
|
"page"?: number;
|
|
543
544
|
/**
|
|
@@ -679,6 +680,31 @@ export namespace Components {
|
|
|
679
680
|
*/
|
|
680
681
|
"stars": number;
|
|
681
682
|
}
|
|
683
|
+
interface PostSideNavigation {
|
|
684
|
+
/**
|
|
685
|
+
* Closes the navigation programmatically. No-op on desktop.
|
|
686
|
+
*/
|
|
687
|
+
"hide": () => Promise<void>;
|
|
688
|
+
/**
|
|
689
|
+
* Opens the navigation programmatically. No-op on desktop.
|
|
690
|
+
*/
|
|
691
|
+
"show": () => Promise<void>;
|
|
692
|
+
/**
|
|
693
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
694
|
+
*/
|
|
695
|
+
"textClose": string;
|
|
696
|
+
/**
|
|
697
|
+
* Toggles the navigation programmatically. No-op on desktop.
|
|
698
|
+
*/
|
|
699
|
+
"toggle": () => Promise<void>;
|
|
700
|
+
}
|
|
701
|
+
interface PostSideNavigationTrigger {
|
|
702
|
+
"for": string;
|
|
703
|
+
/**
|
|
704
|
+
* Manually update the trigger's ARIA attributes.
|
|
705
|
+
*/
|
|
706
|
+
"update": () => Promise<void>;
|
|
707
|
+
}
|
|
682
708
|
interface PostStepper {
|
|
683
709
|
/**
|
|
684
710
|
* Defines the current step, which is the next step the user has to complete.
|
|
@@ -838,6 +864,10 @@ export interface PostRatingCustomEvent<T> extends CustomEvent<T> {
|
|
|
838
864
|
detail: T;
|
|
839
865
|
target: HTMLPostRatingElement;
|
|
840
866
|
}
|
|
867
|
+
export interface PostSideNavigationCustomEvent<T> extends CustomEvent<T> {
|
|
868
|
+
detail: T;
|
|
869
|
+
target: HTMLPostSideNavigationElement;
|
|
870
|
+
}
|
|
841
871
|
export interface PostTabsCustomEvent<T> extends CustomEvent<T> {
|
|
842
872
|
detail: T;
|
|
843
873
|
target: HTMLPostTabsElement;
|
|
@@ -1205,6 +1235,29 @@ declare global {
|
|
|
1205
1235
|
prototype: HTMLPostRatingElement;
|
|
1206
1236
|
new (): HTMLPostRatingElement;
|
|
1207
1237
|
};
|
|
1238
|
+
interface HTMLPostSideNavigationElementEventMap {
|
|
1239
|
+
"postToggle": boolean;
|
|
1240
|
+
}
|
|
1241
|
+
interface HTMLPostSideNavigationElement extends Components.PostSideNavigation, HTMLStencilElement {
|
|
1242
|
+
addEventListener<K extends keyof HTMLPostSideNavigationElementEventMap>(type: K, listener: (this: HTMLPostSideNavigationElement, ev: PostSideNavigationCustomEvent<HTMLPostSideNavigationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1243
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1244
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1245
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1246
|
+
removeEventListener<K extends keyof HTMLPostSideNavigationElementEventMap>(type: K, listener: (this: HTMLPostSideNavigationElement, ev: PostSideNavigationCustomEvent<HTMLPostSideNavigationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1247
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1248
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1249
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1250
|
+
}
|
|
1251
|
+
var HTMLPostSideNavigationElement: {
|
|
1252
|
+
prototype: HTMLPostSideNavigationElement;
|
|
1253
|
+
new (): HTMLPostSideNavigationElement;
|
|
1254
|
+
};
|
|
1255
|
+
interface HTMLPostSideNavigationTriggerElement extends Components.PostSideNavigationTrigger, HTMLStencilElement {
|
|
1256
|
+
}
|
|
1257
|
+
var HTMLPostSideNavigationTriggerElement: {
|
|
1258
|
+
prototype: HTMLPostSideNavigationTriggerElement;
|
|
1259
|
+
new (): HTMLPostSideNavigationTriggerElement;
|
|
1260
|
+
};
|
|
1208
1261
|
interface HTMLPostStepperElement extends Components.PostStepper, HTMLStencilElement {
|
|
1209
1262
|
}
|
|
1210
1263
|
var HTMLPostStepperElement: {
|
|
@@ -1300,6 +1353,8 @@ declare global {
|
|
|
1300
1353
|
"post-popovercontainer": HTMLPostPopovercontainerElement;
|
|
1301
1354
|
"post-progressbar": HTMLPostProgressbarElement;
|
|
1302
1355
|
"post-rating": HTMLPostRatingElement;
|
|
1356
|
+
"post-side-navigation": HTMLPostSideNavigationElement;
|
|
1357
|
+
"post-side-navigation-trigger": HTMLPostSideNavigationTriggerElement;
|
|
1303
1358
|
"post-stepper": HTMLPostStepperElement;
|
|
1304
1359
|
"post-stepper-item": HTMLPostStepperItemElement;
|
|
1305
1360
|
"post-tab-item": HTMLPostTabItemElement;
|
|
@@ -1443,6 +1498,18 @@ declare namespace LocalJSX {
|
|
|
1443
1498
|
* @default 'button'
|
|
1444
1499
|
*/
|
|
1445
1500
|
"buttonType"?: ButtonType;
|
|
1501
|
+
/**
|
|
1502
|
+
* If `true`, the user cannot interact with the element.
|
|
1503
|
+
*/
|
|
1504
|
+
"disabled"?: boolean;
|
|
1505
|
+
/**
|
|
1506
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1507
|
+
*/
|
|
1508
|
+
"form"?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* The name of the element, used when submitting an HTML form.
|
|
1511
|
+
*/
|
|
1512
|
+
"name"?: string;
|
|
1446
1513
|
/**
|
|
1447
1514
|
* Defines whether the close button is positioned automatically by the component or left unpositioned for manual styling.
|
|
1448
1515
|
* @default 'auto'
|
|
@@ -1772,6 +1839,7 @@ declare namespace LocalJSX {
|
|
|
1772
1839
|
"onPostChange"?: (event: PostPaginationCustomEvent<number>) => void;
|
|
1773
1840
|
/**
|
|
1774
1841
|
* The current active page number. **If not specified, defaults to the first page.**
|
|
1842
|
+
* @default 1
|
|
1775
1843
|
*/
|
|
1776
1844
|
"page"?: number;
|
|
1777
1845
|
/**
|
|
@@ -1911,6 +1979,19 @@ declare namespace LocalJSX {
|
|
|
1911
1979
|
*/
|
|
1912
1980
|
"stars"?: number;
|
|
1913
1981
|
}
|
|
1982
|
+
interface PostSideNavigation {
|
|
1983
|
+
/**
|
|
1984
|
+
* An event emitted when the navigation is shown or hidden on mobile. The payload is a boolean: `true` when the navigation opens, `false` when it closes.
|
|
1985
|
+
*/
|
|
1986
|
+
"onPostToggle"?: (event: PostSideNavigationCustomEvent<boolean>) => void;
|
|
1987
|
+
/**
|
|
1988
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
1989
|
+
*/
|
|
1990
|
+
"textClose": string;
|
|
1991
|
+
}
|
|
1992
|
+
interface PostSideNavigationTrigger {
|
|
1993
|
+
"for": string;
|
|
1994
|
+
}
|
|
1914
1995
|
interface PostStepper {
|
|
1915
1996
|
/**
|
|
1916
1997
|
* Defines the current step, which is the next step the user has to complete.
|
|
@@ -2168,6 +2249,12 @@ declare namespace LocalJSX {
|
|
|
2168
2249
|
"currentRating": number;
|
|
2169
2250
|
"readonly": boolean;
|
|
2170
2251
|
}
|
|
2252
|
+
interface PostSideNavigationAttributes {
|
|
2253
|
+
"textClose": string;
|
|
2254
|
+
}
|
|
2255
|
+
interface PostSideNavigationTriggerAttributes {
|
|
2256
|
+
"for": string;
|
|
2257
|
+
}
|
|
2171
2258
|
interface PostStepperAttributes {
|
|
2172
2259
|
"textCurrentStep": string;
|
|
2173
2260
|
"textCompletedStep": string;
|
|
@@ -2235,6 +2322,8 @@ declare namespace LocalJSX {
|
|
|
2235
2322
|
"post-popovercontainer": Omit<PostPopovercontainer, keyof PostPopovercontainerAttributes> & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes]?: PostPopovercontainer[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `attr:${K}`]?: PostPopovercontainerAttributes[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `prop:${K}`]?: PostPopovercontainer[K] };
|
|
2236
2323
|
"post-progressbar": Omit<PostProgressbar, keyof PostProgressbarAttributes> & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes]?: PostProgressbar[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `attr:${K}`]?: PostProgressbarAttributes[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `prop:${K}`]?: PostProgressbar[K] };
|
|
2237
2324
|
"post-rating": Omit<PostRating, keyof PostRatingAttributes> & { [K in keyof PostRating & keyof PostRatingAttributes]?: PostRating[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `attr:${K}`]?: PostRatingAttributes[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `prop:${K}`]?: PostRating[K] } & OneOf<"label", PostRating["label"], PostRatingAttributes["label"]>;
|
|
2325
|
+
"post-side-navigation": Omit<PostSideNavigation, keyof PostSideNavigationAttributes> & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes]?: PostSideNavigation[K] } & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes as `attr:${K}`]?: PostSideNavigationAttributes[K] } & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes as `prop:${K}`]?: PostSideNavigation[K] } & OneOf<"textClose", PostSideNavigation["textClose"], PostSideNavigationAttributes["textClose"]>;
|
|
2326
|
+
"post-side-navigation-trigger": Omit<PostSideNavigationTrigger, keyof PostSideNavigationTriggerAttributes> & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes]?: PostSideNavigationTrigger[K] } & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes as `attr:${K}`]?: PostSideNavigationTriggerAttributes[K] } & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes as `prop:${K}`]?: PostSideNavigationTrigger[K] } & OneOf<"for", PostSideNavigationTrigger["for"], PostSideNavigationTriggerAttributes["for"]>;
|
|
2238
2327
|
"post-stepper": Omit<PostStepper, keyof PostStepperAttributes> & { [K in keyof PostStepper & keyof PostStepperAttributes]?: PostStepper[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `attr:${K}`]?: PostStepperAttributes[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `prop:${K}`]?: PostStepper[K] } & OneOf<"textCurrentStep", PostStepper["textCurrentStep"], PostStepperAttributes["textCurrentStep"]> & OneOf<"textCompletedStep", PostStepper["textCompletedStep"], PostStepperAttributes["textCompletedStep"]> & OneOf<"textStepNumber", PostStepper["textStepNumber"], PostStepperAttributes["textStepNumber"]>;
|
|
2239
2328
|
"post-stepper-item": PostStepperItem;
|
|
2240
2329
|
"post-tab-item": Omit<PostTabItem, keyof PostTabItemAttributes> & { [K in keyof PostTabItem & keyof PostTabItemAttributes]?: PostTabItem[K] } & { [K in keyof PostTabItem & keyof PostTabItemAttributes as `attr:${K}`]?: PostTabItemAttributes[K] } & { [K in keyof PostTabItem & keyof PostTabItemAttributes as `prop:${K}`]?: PostTabItem[K] } & OneOf<"name", PostTabItem["name"], PostTabItemAttributes["name"]>;
|
|
@@ -2287,6 +2376,8 @@ declare module "@stencil/core" {
|
|
|
2287
2376
|
"post-popovercontainer": LocalJSX.IntrinsicElements["post-popovercontainer"] & JSXBase.HTMLAttributes<HTMLPostPopovercontainerElement>;
|
|
2288
2377
|
"post-progressbar": LocalJSX.IntrinsicElements["post-progressbar"] & JSXBase.HTMLAttributes<HTMLPostProgressbarElement>;
|
|
2289
2378
|
"post-rating": LocalJSX.IntrinsicElements["post-rating"] & JSXBase.HTMLAttributes<HTMLPostRatingElement>;
|
|
2379
|
+
"post-side-navigation": LocalJSX.IntrinsicElements["post-side-navigation"] & JSXBase.HTMLAttributes<HTMLPostSideNavigationElement>;
|
|
2380
|
+
"post-side-navigation-trigger": LocalJSX.IntrinsicElements["post-side-navigation-trigger"] & JSXBase.HTMLAttributes<HTMLPostSideNavigationTriggerElement>;
|
|
2290
2381
|
"post-stepper": LocalJSX.IntrinsicElements["post-stepper"] & JSXBase.HTMLAttributes<HTMLPostStepperElement>;
|
|
2291
2382
|
"post-stepper-item": LocalJSX.IntrinsicElements["post-stepper-item"] & JSXBase.HTMLAttributes<HTMLPostStepperItemElement>;
|
|
2292
2383
|
"post-tab-item": LocalJSX.IntrinsicElements["post-tab-item"] & JSXBase.HTMLAttributes<HTMLPostTabItemElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type HeaderSlot = 'post-logo' | 'language-menu' | 'title' | 'audience' | 'global-nav-primary' | 'global-nav-secondary' | 'main-nav' | 'local-nav' | 'post-login';
|
|
2
2
|
export interface VariantConfig {
|
|
3
3
|
slots: HeaderSlot[];
|
|
4
|
+
stylesheet?: string;
|
|
4
5
|
hasGlobalHeader: boolean;
|
|
5
6
|
hasUserMenu: boolean;
|
|
6
7
|
hasMegadropdown: boolean;
|
|
@@ -27,7 +27,7 @@ export const STATE_HANDLERS = {
|
|
|
27
27
|
await openBurgerMenu(page);
|
|
28
28
|
await openMegadropdown(page, 'letters');
|
|
29
29
|
},
|
|
30
|
-
scrolled: async (page) => {
|
|
30
|
+
'scrolled': async (page) => {
|
|
31
31
|
await page.evaluate(() => window.scrollTo(0, 200));
|
|
32
32
|
await page.waitForTimeout(300);
|
|
33
33
|
},
|
|
@@ -112,5 +112,6 @@ export const TEST_MATRIX = {
|
|
|
112
112
|
'microsite-loggedin': stateComposeHelper(LOGGED_IN),
|
|
113
113
|
'jobs-loggedout': stateComposeHelper(SCROLLED_ONLY, BURGER_FLOW_NO_SECOND),
|
|
114
114
|
'jobs-loggedin': stateComposeHelper(LOGGED_IN),
|
|
115
|
-
onepager: stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
115
|
+
'onepager': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
|
+
'application': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
117
|
};
|
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
export const HEADER_VARIANTS = {
|
|
2
|
+
'application': {
|
|
3
|
+
slots: ['post-logo', 'local-nav', 'title'],
|
|
4
|
+
stylesheet: 'post-compact.css',
|
|
5
|
+
hasGlobalHeader: false,
|
|
6
|
+
hasUserMenu: false,
|
|
7
|
+
hasMegadropdown: false,
|
|
8
|
+
hasAudience: false,
|
|
9
|
+
hasGlobalNavSecondary: false,
|
|
10
|
+
hasGlobalNavPrimary: false,
|
|
11
|
+
hasLocalNavigation: true,
|
|
12
|
+
hasGlobalLogin: false,
|
|
13
|
+
features: [],
|
|
14
|
+
},
|
|
2
15
|
'onepager': {
|
|
3
16
|
slots: ['post-logo', 'language-menu', 'title'],
|
|
4
17
|
hasGlobalHeader: false,
|
|
@@ -36,7 +49,14 @@ export const HEADER_VARIANTS = {
|
|
|
36
49
|
features: ['main-navigation', 'local-user-menu'],
|
|
37
50
|
},
|
|
38
51
|
'jobs-loggedout': {
|
|
39
|
-
slots: [
|
|
52
|
+
slots: [
|
|
53
|
+
'post-logo',
|
|
54
|
+
'audience',
|
|
55
|
+
'global-nav-secondary',
|
|
56
|
+
'language-menu',
|
|
57
|
+
'main-nav',
|
|
58
|
+
'local-nav',
|
|
59
|
+
],
|
|
40
60
|
hasGlobalHeader: true,
|
|
41
61
|
hasUserMenu: false,
|
|
42
62
|
hasMegadropdown: true,
|
|
@@ -48,7 +68,14 @@ export const HEADER_VARIANTS = {
|
|
|
48
68
|
features: ['audience', 'global-nav-secondary', 'main-navigation', 'local-login'],
|
|
49
69
|
},
|
|
50
70
|
'jobs-loggedin': {
|
|
51
|
-
slots: [
|
|
71
|
+
slots: [
|
|
72
|
+
'post-logo',
|
|
73
|
+
'audience',
|
|
74
|
+
'global-nav-secondary',
|
|
75
|
+
'language-menu',
|
|
76
|
+
'main-nav',
|
|
77
|
+
'local-nav',
|
|
78
|
+
],
|
|
52
79
|
hasGlobalHeader: true,
|
|
53
80
|
hasUserMenu: true,
|
|
54
81
|
hasMegadropdown: true,
|