@swisspost/design-system-components 10.0.0-next.40 → 10.0.0-next.41
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/breakpoints-DIH5Oaz7.js +186 -0
- package/dist/cjs/event-from-AKK8RQrn.js +107 -0
- package/dist/cjs/{get-root-8102fecd.js → get-root-DmyBVSJ_.js} +1 -1
- package/dist/cjs/{index-b60129c4.js → index-CRMt-jq2.js} +1172 -309
- package/dist/cjs/index.cjs.js +0 -70
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/{package-b731881e.js → package-C2pR6Vs2.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +177 -10
- package/dist/cjs/post-avatar.cjs.entry.js +151 -8
- package/dist/cjs/post-back-to-top.cjs.entry.js +86 -9
- package/dist/cjs/post-banner.cjs.entry.js +81 -9
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +62 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +119 -7
- package/dist/cjs/post-card-control.cjs.entry.js +283 -8
- package/dist/cjs/post-closebutton_15.cjs.entry.js +4376 -30
- package/dist/cjs/post-collapsible_2.cjs.entry.js +196 -10
- package/dist/cjs/post-components.cjs.js +7 -8
- package/dist/cjs/post-footer.cjs.entry.js +59 -8
- package/dist/cjs/post-linkarea.cjs.entry.js +24 -6
- package/dist/cjs/post-popover.cjs.entry.js +151 -8
- package/dist/cjs/post-rating.cjs.entry.js +115 -8
- package/dist/cjs/post-tab-header.cjs.entry.js +26 -9
- package/dist/cjs/post-tab-panel.cjs.entry.js +28 -9
- package/dist/cjs/post-tabs.cjs.entry.js +165 -7
- package/dist/cjs/post-tag.cjs.entry.js +50 -8
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5195 -7
- package/dist/cjs/post-tooltip.cjs.entry.js +78 -9
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/post-accordion/post-accordion.js +39 -23
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +26 -11
- package/dist/collection/components/post-avatar/post-avatar.js +12 -9
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -3
- package/dist/collection/components/post-banner/post-banner.js +18 -9
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +4 -6
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +13 -9
- package/dist/collection/components/post-card-control/post-card-control.js +33 -16
- package/dist/collection/components/post-collapsible/post-collapsible.js +6 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +21 -9
- package/dist/collection/components/post-footer/post-footer.js +8 -7
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +28 -16
- package/dist/collection/components/post-icon/post-icon.js +66 -54
- package/dist/collection/components/post-language-option/post-language-option.css +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +17 -13
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +43 -24
- package/dist/collection/components/post-list/post-list.js +12 -3
- package/dist/collection/components/post-logo/post-logo.js +3 -4
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +12 -6
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +34 -20
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +43 -21
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -0
- package/dist/collection/components/post-menu-item/post-menu-item.js +11 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +9 -5
- package/dist/collection/components/post-popover/post-popover.js +19 -5
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +44 -16
- package/dist/collection/components/post-rating/post-rating.js +25 -5
- package/dist/collection/components/post-tab-header/post-tab-header.js +4 -6
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -6
- package/dist/collection/components/post-tabs/post-tabs.js +4 -3
- package/dist/collection/components/post-tag/post-tag.js +11 -9
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +7 -2
- package/dist/collection/components/post-tooltip/post-tooltip.js +24 -6
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +20 -12
- package/dist/collection/index.js +1 -37
- package/dist/collection/utils/breakpoints.js +38 -45
- package/dist/collection/utils/event-from.js +103 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/components/index.js +2315 -37
- package/dist/components/p-1KLiMO0w.js +3 -0
- package/dist/components/p-8U5GFtQP.js +105 -0
- package/dist/components/{post-menu2.js → p-BLhBouGz.js} +51 -30
- package/dist/{esm/index-ffccd040.js → components/p-CV7fm1rW.js} +1 -1
- package/dist/components/{post-menu-trigger2.js → p-CaPj3whI.js} +14 -12
- package/{loaders/post-breadcrumb-item2.js → dist/components/p-Cpaqct04.js} +9 -11
- package/dist/components/{post-accordion-item2.js → p-CtNCtg2z.js} +32 -21
- package/dist/components/p-Cx0AiN2A.js +182 -0
- package/dist/components/{post-collapsible-trigger2.js → p-D3LhzIrC.js} +25 -14
- package/dist/components/{get-root.js → p-DBHo9yGF.js} +1 -1
- package/dist/components/p-DQuPPEca.js +31 -0
- package/dist/components/{post-accordion2.js → p-DlEtlaNu.js} +41 -28
- package/{loaders/post-collapsible2.js → dist/components/p-DphlfQse.js} +11 -8
- package/dist/components/{post-popovercontainer2.js → p-elg4VvHg.js} +246 -278
- package/{loaders/post-icon2.js → dist/components/p-fmA57Ivd.js} +52 -54
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-avatar.js +183 -1
- package/dist/components/post-back-to-top.js +115 -1
- package/dist/components/post-banner.js +120 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +182 -1
- package/dist/components/post-card-control.js +322 -1
- package/dist/components/post-closebutton.js +37 -1
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-footer.js +112 -1
- package/dist/components/post-header.js +273 -1
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-language-option.js +96 -1
- package/dist/components/post-language-switch.js +154 -1
- package/dist/components/post-linkarea.js +41 -1
- package/dist/components/post-list-item.js +34 -1
- package/dist/components/post-list.js +57 -1
- package/dist/components/post-logo.js +54 -1
- package/dist/components/post-mainnavigation.js +181 -1
- package/dist/components/post-megadropdown-trigger.js +132 -1
- package/dist/components/post-megadropdown.js +194 -1
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-popover.js +184 -1
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-rating.js +148 -1
- package/dist/components/post-tab-header.js +48 -1
- package/dist/components/post-tab-panel.js +50 -1
- package/dist/components/post-tabs.js +186 -1
- package/dist/components/post-tag.js +82 -1
- package/dist/components/post-togglebutton.js +52 -1
- package/dist/components/post-tooltip-trigger.js +5218 -1
- package/dist/components/post-tooltip.js +110 -1
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +416 -116
- package/dist/esm/breakpoints-DyVir0ex.js +182 -0
- package/dist/esm/event-from-8U5GFtQP.js +105 -0
- package/{loaders/get-root.js → dist/esm/get-root-D9QC9-TY.js} +1 -1
- package/{loaders/index2.js → dist/esm/index-BWC0gtGU.js} +1 -1
- package/dist/esm/{index-f4d19816.js → index-CVhzhVv0.js} +1169 -305
- package/dist/esm/index.js +1 -29
- package/dist/esm/loader.js +3 -4
- package/dist/esm/package-1KLiMO0w.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +180 -7
- package/dist/esm/post-avatar.entry.js +154 -5
- package/dist/esm/post-back-to-top.entry.js +89 -6
- package/dist/esm/post-banner.entry.js +85 -7
- package/dist/esm/post-breadcrumb-item_2.entry.js +65 -5
- package/dist/esm/post-breadcrumbs.entry.js +123 -5
- package/dist/esm/post-card-control.entry.js +286 -5
- package/dist/esm/post-closebutton_15.entry.js +4362 -10
- package/dist/esm/post-collapsible_2.entry.js +199 -7
- package/dist/esm/post-components.js +5 -5
- package/dist/esm/post-footer.entry.js +62 -5
- package/dist/esm/post-linkarea.entry.js +27 -3
- package/dist/esm/post-popover.entry.js +155 -6
- package/dist/esm/post-rating.entry.js +118 -5
- package/dist/esm/post-tab-header.entry.js +29 -6
- package/dist/esm/post-tab-panel.entry.js +31 -6
- package/dist/esm/post-tabs.entry.js +169 -5
- package/dist/esm/post-tag.entry.js +53 -5
- package/dist/esm/post-tooltip-trigger.entry.js +5199 -5
- package/dist/esm/post-tooltip.entry.js +81 -6
- package/dist/post-components/index.esm.js +0 -1
- package/dist/post-components/p-0d08ab13.entry.js +1 -0
- package/dist/post-components/p-1KLiMO0w.js +1 -0
- package/dist/post-components/p-1e006e29.entry.js +1 -0
- package/dist/post-components/p-3a5bdb7f.entry.js +1 -0
- package/dist/post-components/p-4214b85e.entry.js +1 -0
- package/dist/post-components/p-50916d48.entry.js +1 -0
- package/dist/post-components/p-5f4126d8.entry.js +1 -0
- package/dist/post-components/p-62982420.entry.js +1 -0
- package/dist/post-components/p-78f4dd12.entry.js +1 -0
- package/dist/post-components/p-7a7d237b.entry.js +1 -0
- package/dist/post-components/p-80174475.entry.js +1 -0
- package/dist/post-components/p-8U5GFtQP.js +1 -0
- package/dist/post-components/p-8d5a4218.entry.js +1 -0
- package/dist/post-components/p-8e89ccc1.entry.js +1 -0
- package/dist/post-components/p-9003674b.entry.js +1 -0
- package/dist/post-components/p-925aee3d.entry.js +1 -0
- package/dist/post-components/p-9b446561.entry.js +1 -0
- package/dist/post-components/p-9ec29527.entry.js +1 -0
- package/dist/post-components/{p-b176309b.js → p-BWC0gtGU.js} +1 -1
- package/dist/post-components/{p-6b31a76a.js → p-Bkp2QDth.js} +1 -1
- package/dist/post-components/p-CVhzhVv0.js +2 -0
- package/dist/post-components/p-DyVir0ex.js +1 -0
- package/dist/post-components/p-ec764922.entry.js +1 -0
- package/dist/post-components/p-fa550b4a.entry.js +1 -0
- package/dist/post-components/p-fb46e260.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-header/post-header.d.ts +1 -0
- package/dist/types/components/post-icon/post-icon.d.ts +0 -4
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +1 -0
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components.d.ts +61 -1
- package/dist/types/index.d.ts +10 -37
- package/dist/types/stencil-public-runtime.d.ts +29 -1
- package/dist/types/utils/breakpoints.d.ts +12 -7
- package/dist/types/utils/event-from.d.ts +9 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/hydrate/index.d.ts +273 -0
- package/hydrate/index.js +32002 -0
- package/hydrate/index.mjs +31994 -0
- package/hydrate/package.json +12 -0
- package/package.json +45 -17
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/breakpoints-cdf1b747.js +0 -59
- package/dist/cjs/event-guard-efabc84f.js +0 -47
- package/dist/cjs/post-accordion-item-5c879102.js +0 -161
- package/dist/cjs/post-avatar-4f1681df.js +0 -162
- package/dist/cjs/post-back-to-top-abbb4ac4.js +0 -93
- package/dist/cjs/post-banner-4d99c51c.js +0 -87
- package/dist/cjs/post-breadcrumbs-5ceabb10.js +0 -126
- package/dist/cjs/post-card-control-b657aeaa.js +0 -290
- package/dist/cjs/post-collapsible-trigger-33f09d6c.js +0 -190
- package/dist/cjs/post-footer-022cf408.js +0 -66
- package/dist/cjs/post-linkarea-5fbb2e25.js +0 -30
- package/dist/cjs/post-menu-item-d4cc4742.js +0 -68
- package/dist/cjs/post-popover-b7cd0091.js +0 -150
- package/dist/cjs/post-rating-c81d1ac3.js +0 -109
- package/dist/cjs/post-tab-header-1db15093.js +0 -34
- package/dist/cjs/post-tab-panel-698981b8.js +0 -36
- package/dist/cjs/post-tabs-79eab811.js +0 -173
- package/dist/cjs/post-tag-66a52727.js +0 -60
- package/dist/cjs/post-togglebutton-a6b8b75d.js +0 -4491
- package/dist/cjs/post-tooltip-560cf42c.js +0 -74
- package/dist/cjs/post-tooltip-trigger-2a54e3e4.js +0 -4685
- package/dist/collection/utils/event-guard.js +0 -43
- package/dist/components/breakpoints.js +0 -56
- package/dist/components/event-guard.js +0 -45
- package/dist/components/index2.js +0 -88
- package/dist/components/package.js +0 -3
- package/dist/components/post-avatar2.js +0 -190
- package/dist/components/post-back-to-top2.js +0 -118
- package/dist/components/post-banner2.js +0 -121
- package/dist/components/post-breadcrumb-item2.js +0 -82
- package/dist/components/post-breadcrumbs2.js +0 -184
- package/dist/components/post-card-control2.js +0 -325
- package/dist/components/post-closebutton2.js +0 -39
- package/dist/components/post-collapsible2.js +0 -108
- package/dist/components/post-footer2.js +0 -115
- package/dist/components/post-header2.js +0 -397
- package/dist/components/post-icon2.js +0 -156
- package/dist/components/post-language-option2.js +0 -102
- package/dist/components/post-language-switch2.js +0 -143
- package/dist/components/post-linkarea2.js +0 -43
- package/dist/components/post-list-item2.js +0 -36
- package/dist/components/post-list2.js +0 -54
- package/dist/components/post-logo2.js +0 -57
- package/dist/components/post-mainnavigation2.js +0 -183
- package/dist/components/post-megadropdown-trigger2.js +0 -121
- package/dist/components/post-megadropdown2.js +0 -190
- package/dist/components/post-menu-item2.js +0 -27
- package/dist/components/post-popover2.js +0 -178
- package/dist/components/post-rating2.js +0 -138
- package/dist/components/post-tab-header2.js +0 -52
- package/dist/components/post-tab-panel2.js +0 -54
- package/dist/components/post-tabs2.js +0 -189
- package/dist/components/post-tag2.js +0 -88
- package/dist/components/post-togglebutton2.js +0 -51
- package/dist/components/post-tooltip-trigger2.js +0 -4703
- package/dist/components/post-tooltip2.js +0 -102
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/breakpoints-7812702e.js +0 -56
- package/dist/esm/event-guard-538ee077.js +0 -45
- package/dist/esm/get-root-1b1af46f.js +0 -15
- package/dist/esm/package-9374eb90.js +0 -3
- package/dist/esm/post-accordion-item-f416bd95.js +0 -158
- package/dist/esm/post-avatar-2cb5190b.js +0 -160
- package/dist/esm/post-back-to-top-f877d4c6.js +0 -91
- package/dist/esm/post-banner-576a5adb.js +0 -85
- package/dist/esm/post-breadcrumbs-63223336.js +0 -124
- package/dist/esm/post-card-control-2eebe7b4.js +0 -288
- package/dist/esm/post-collapsible-trigger-561df34e.js +0 -187
- package/dist/esm/post-footer-a270f67b.js +0 -64
- package/dist/esm/post-linkarea-456ce63d.js +0 -28
- package/dist/esm/post-menu-item-e051284c.js +0 -65
- package/dist/esm/post-popover-7c3c9072.js +0 -148
- package/dist/esm/post-rating-2c9dd11f.js +0 -107
- package/dist/esm/post-tab-header-f90b2f93.js +0 -32
- package/dist/esm/post-tab-panel-c19b5e30.js +0 -34
- package/dist/esm/post-tabs-0dadedf2.js +0 -171
- package/dist/esm/post-tag-b8be3b0c.js +0 -58
- package/dist/esm/post-togglebutton-83339cc9.js +0 -4475
- package/dist/esm/post-tooltip-3cc82984.js +0 -72
- package/dist/esm/post-tooltip-trigger-898c3dbc.js +0 -4683
- package/dist/post-components/p-0889c759.js +0 -1
- package/dist/post-components/p-104ddc50.js +0 -1
- package/dist/post-components/p-13b41e32.entry.js +0 -1
- package/dist/post-components/p-1906d77c.js +0 -1
- package/dist/post-components/p-19d0e6ea.entry.js +0 -1
- package/dist/post-components/p-1b9afb34.entry.js +0 -1
- package/dist/post-components/p-1fbffc90.js +0 -1
- package/dist/post-components/p-234925fa.js +0 -1
- package/dist/post-components/p-23fb976f.entry.js +0 -1
- package/dist/post-components/p-24c42ebe.entry.js +0 -1
- package/dist/post-components/p-28c19671.js +0 -8
- package/dist/post-components/p-37aaa30f.js +0 -1
- package/dist/post-components/p-3baf0b40.entry.js +0 -1
- package/dist/post-components/p-4390192f.js +0 -1
- package/dist/post-components/p-4a071696.js +0 -1
- package/dist/post-components/p-4c2d5072.js +0 -1
- package/dist/post-components/p-51b6114c.entry.js +0 -1
- package/dist/post-components/p-5fb4fc65.js +0 -1
- package/dist/post-components/p-64c13aaf.entry.js +0 -1
- package/dist/post-components/p-66679f9d.entry.js +0 -1
- package/dist/post-components/p-68a98f0b.js +0 -1
- package/dist/post-components/p-6a4dc55e.js +0 -1
- package/dist/post-components/p-722ffaae.js +0 -1
- package/dist/post-components/p-789f9a23.entry.js +0 -1
- package/dist/post-components/p-7e6eae42.js +0 -1
- package/dist/post-components/p-8117dd0c.js +0 -1
- package/dist/post-components/p-814c0c4d.entry.js +0 -1
- package/dist/post-components/p-87e0d6fa.js +0 -1
- package/dist/post-components/p-988d20f4.js +0 -1
- package/dist/post-components/p-9b1e4e52.entry.js +0 -1
- package/dist/post-components/p-9e461613.js +0 -2
- package/dist/post-components/p-ab44a18c.entry.js +0 -1
- package/dist/post-components/p-b2952b0e.entry.js +0 -1
- package/dist/post-components/p-c10b2a2f.js +0 -1
- package/dist/post-components/p-c80cb846.js +0 -1
- package/dist/post-components/p-da4704c1.js +0 -1
- package/dist/post-components/p-dc4de84a.entry.js +0 -1
- package/dist/post-components/p-e1255160.js +0 -1
- package/dist/post-components/p-f1f0ace3.entry.js +0 -1
- package/dist/post-components/p-f34fb6c4.entry.js +0 -1
- package/dist/post-components/p-f6f914bb.js +0 -1
- package/dist/post-components/p-fe7e64cf.entry.js +0 -1
- package/dist/post-components/p-fee94252.entry.js +0 -1
- package/dist/types/popover-fn.d.ts +0 -11
- package/dist/types/utils/event-guard.d.ts +0 -4
- package/loader/package.json +0 -11
- package/loaders/breakpoints.js +0 -56
- package/loaders/event-guard.js +0 -45
- package/loaders/fade.js +0 -11
- package/loaders/get-focusable-children.js +0 -35
- package/loaders/heading-levels.js +0 -3
- package/loaders/index.browser.js +0 -14
- package/loaders/index.d.ts +0 -108
- package/loaders/index.js +0 -39
- package/loaders/long-press-event.js +0 -264
- package/loaders/package.js +0 -3
- package/loaders/post-accordion-item.d.ts +0 -11
- package/loaders/post-accordion-item.js +0 -6
- package/loaders/post-accordion-item2.js +0 -103
- package/loaders/post-accordion.d.ts +0 -11
- package/loaders/post-accordion.js +0 -6
- package/loaders/post-accordion2.js +0 -126
- package/loaders/post-avatar.d.ts +0 -11
- package/loaders/post-avatar.js +0 -193
- package/loaders/post-back-to-top.d.ts +0 -11
- package/loaders/post-back-to-top.js +0 -121
- package/loaders/post-banner.d.ts +0 -11
- package/loaders/post-banner.js +0 -124
- package/loaders/post-breadcrumb-item.d.ts +0 -11
- package/loaders/post-breadcrumb-item.js +0 -6
- package/loaders/post-breadcrumbs.d.ts +0 -11
- package/loaders/post-breadcrumbs.js +0 -187
- package/loaders/post-card-control.d.ts +0 -11
- package/loaders/post-card-control.js +0 -328
- package/loaders/post-closebutton.d.ts +0 -11
- package/loaders/post-closebutton.js +0 -42
- package/loaders/post-collapsible-trigger.d.ts +0 -11
- package/loaders/post-collapsible-trigger.js +0 -6
- package/loaders/post-collapsible-trigger2.js +0 -125
- package/loaders/post-collapsible.d.ts +0 -11
- package/loaders/post-collapsible.js +0 -6
- package/loaders/post-footer.d.ts +0 -11
- package/loaders/post-footer.js +0 -118
- package/loaders/post-header.d.ts +0 -11
- package/loaders/post-header.js +0 -400
- package/loaders/post-icon.d.ts +0 -11
- package/loaders/post-icon.js +0 -6
- package/loaders/post-language-option.d.ts +0 -11
- package/loaders/post-language-option.js +0 -105
- package/loaders/post-language-switch.d.ts +0 -11
- package/loaders/post-language-switch.js +0 -146
- package/loaders/post-linkarea.d.ts +0 -11
- package/loaders/post-linkarea.js +0 -46
- package/loaders/post-list-item.d.ts +0 -11
- package/loaders/post-list-item.js +0 -39
- package/loaders/post-list.d.ts +0 -11
- package/loaders/post-list.js +0 -57
- package/loaders/post-logo.d.ts +0 -11
- package/loaders/post-logo.js +0 -60
- package/loaders/post-mainnavigation.d.ts +0 -11
- package/loaders/post-mainnavigation.js +0 -186
- package/loaders/post-megadropdown-trigger.d.ts +0 -11
- package/loaders/post-megadropdown-trigger.js +0 -124
- package/loaders/post-megadropdown.d.ts +0 -11
- package/loaders/post-megadropdown.js +0 -193
- package/loaders/post-menu-item.d.ts +0 -11
- package/loaders/post-menu-item.js +0 -6
- package/loaders/post-menu-item2.js +0 -27
- package/loaders/post-menu-trigger.d.ts +0 -11
- package/loaders/post-menu-trigger.js +0 -6
- package/loaders/post-menu-trigger2.js +0 -109
- package/loaders/post-menu.d.ts +0 -11
- package/loaders/post-menu.js +0 -6
- package/loaders/post-menu2.js +0 -202
- package/loaders/post-popover.d.ts +0 -11
- package/loaders/post-popover.js +0 -181
- package/loaders/post-popovercontainer.d.ts +0 -11
- package/loaders/post-popovercontainer.js +0 -6
- package/loaders/post-popovercontainer2.js +0 -3051
- package/loaders/post-rating.d.ts +0 -11
- package/loaders/post-rating.js +0 -141
- package/loaders/post-tab-header.d.ts +0 -11
- package/loaders/post-tab-header.js +0 -55
- package/loaders/post-tab-panel.d.ts +0 -11
- package/loaders/post-tab-panel.js +0 -57
- package/loaders/post-tabs.d.ts +0 -11
- package/loaders/post-tabs.js +0 -192
- package/loaders/post-tag.d.ts +0 -11
- package/loaders/post-tag.js +0 -91
- package/loaders/post-togglebutton.d.ts +0 -11
- package/loaders/post-togglebutton.js +0 -54
- package/loaders/post-tooltip-trigger.d.ts +0 -11
- package/loaders/post-tooltip-trigger.js +0 -4706
- package/loaders/post-tooltip.d.ts +0 -11
- package/loaders/post-tooltip.js +0 -105
- package/loaders/slide.js +0 -25
- package/loaders/switch-variants.js +0 -3
- /package/dist/cjs/{fade-72d5ef55.js → fade-nS5zzDQS.js} +0 -0
- /package/dist/cjs/{index-2b2b85e5.js → index-DtvYdwe1.js} +0 -0
- /package/dist/cjs/{index.browser-4af21c17.js → index.browser-Doj636JV.js} +0 -0
- /package/dist/cjs/{long-press-event-6e62d113.js → long-press-event-Q8jMUNXD.js} +0 -0
- /package/dist/cjs/{placement-b2bb6ec4.js → placement-qEFR9hmI.js} +0 -0
- /package/dist/cjs/{slide-cd1f09b3.js → slide-CbBL7A8w.js} +0 -0
- /package/dist/components/{index.browser.js → p-BLchVpF6.js} +0 -0
- /package/dist/components/{slide.js → p-BuLMaH5t.js} +0 -0
- /package/dist/components/{get-focusable-children.js → p-C35MCWIp.js} +0 -0
- /package/dist/components/{long-press-event.js → p-C_2k3G1c.js} +0 -0
- /package/dist/components/{switch-variants.js → p-DjIHLduJ.js} +0 -0
- /package/dist/components/{fade.js → p-SbIC4aZX.js} +0 -0
- /package/dist/components/{heading-levels.js → p-r4txK0AC.js} +0 -0
- /package/dist/esm/{fade-1f3cacf4.js → fade-SbIC4aZX.js} +0 -0
- /package/dist/esm/{index.browser-ff103197.js → index.browser-BLchVpF6.js} +0 -0
- /package/dist/esm/{long-press-event-04d24397.js → long-press-event-C_2k3G1c.js} +0 -0
- /package/dist/esm/{placement-8d56605d.js → placement-DRiVosES.js} +0 -0
- /package/dist/esm/{slide-cd2850ee.js → slide-BuLMaH5t.js} +0 -0
- /package/dist/post-components/{p-c65f32b0.js → p-BLchVpF6.js} +0 -0
- /package/dist/post-components/{p-9b052461.js → p-BuLMaH5t.js} +0 -0
- /package/dist/post-components/{p-8db32dab.js → p-C_2k3G1c.js} +0 -0
- /package/dist/post-components/{p-59a38c23.js → p-DRiVosES.js} +0 -0
- /package/dist/post-components/{p-64e3de38.js → p-SbIC4aZX.js} +0 -0
|
@@ -3,6 +3,11 @@ import { version } from "../../../../package";
|
|
|
3
3
|
import { checkRequiredAndUrl, checkEmptyOrType, debounce } from "../../utils/index";
|
|
4
4
|
export class PostBreadcrumbs {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* The text label for the home breadcrumb item.
|
|
8
|
+
*/
|
|
9
|
+
this.homeText = 'Home';
|
|
10
|
+
this.breadcrumbItems = [];
|
|
6
11
|
// Waits for breadcrumbs navigation reference to be available
|
|
7
12
|
this.waitForBreadcrumbsRef = debounce(() => {
|
|
8
13
|
if (this.breadcrumbsNavRef?.clientWidth > 0) {
|
|
@@ -19,11 +24,6 @@ export class PostBreadcrumbs {
|
|
|
19
24
|
this.lastWindowWidth = window.innerWidth;
|
|
20
25
|
this.checkConcatenation();
|
|
21
26
|
};
|
|
22
|
-
this.homeUrl = undefined;
|
|
23
|
-
this.homeText = 'Home';
|
|
24
|
-
this.breadcrumbItems = [];
|
|
25
|
-
this.isConcatenated = undefined;
|
|
26
|
-
this.lastWindowWidth = undefined;
|
|
27
27
|
}
|
|
28
28
|
validateHomeUrl() {
|
|
29
29
|
checkRequiredAndUrl(this, 'homeUrl');
|
|
@@ -84,7 +84,7 @@ export class PostBreadcrumbs {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const visibleItems = this.breadcrumbItems.slice(0, -1);
|
|
87
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'bfb41c03aa8e4eb1b756386759a22cea673f8e58', "data-version": version }, h("nav", { key: '8ec1727edb8ace33cfb6aeff9694276a241400d2', "aria-label": "Breadcrumbs", class: "breadcrumbs-nav", ref: el => (this.breadcrumbsNavRef = el) }, h("ol", { key: '7069c0b8affb3a0ae02fcbb8b4b141ec86560cba', class: "no-list breadcrumbs-list" }, h("li", { key: '258f6a1b228f6695f6d28019da495ac2d7d6abe0' }, h("a", { key: '223c58d20df9943972b36195f9a7401bfdba528b', href: this.homeUrl, class: "breadcrumb-link" }, h("span", { key: '830865dbd6f0d0f01976e48866b4e85fb988070a', class: "visually-hidden" }, this.homeText), h("post-icon", { key: '82ba4bcfbca701d0d5a96c1312c7f91540003b2b', name: "home", class: "home-icon" }))), this.isConcatenated ? (h("div", { class: "menu-trigger-wrapper", "aria-label": "More breadcrumbs", onKeyDown: e => {
|
|
88
88
|
if (e.key === 'Enter' || e.key === ' ') {
|
|
89
89
|
e.preventDefault();
|
|
90
90
|
this.handleBreadcrumbItemClick();
|
|
@@ -95,7 +95,7 @@ export class PostBreadcrumbs {
|
|
|
95
95
|
linkElement?.click();
|
|
96
96
|
e.preventDefault();
|
|
97
97
|
}
|
|
98
|
-
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text)))), this.lastItem && (h("post-breadcrumb-item", { key: '
|
|
98
|
+
} }, item.url ? h("a", { href: item.url }, item.text) : h("span", null, item.text)))))))) : (visibleItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: item.url || item.text }, item.text)))), this.lastItem && (h("post-breadcrumb-item", { key: 'cfa5c9753eaaf330b5568501521b3706b16aa8e3', url: this.lastItem.url, "aria-current": "page", tabindex: -1 }, this.lastItem.text))), h("div", { key: '19ea40941aa73eeafde12372efbda93bc513e6d2', class: "hidden-items" }, h("a", { key: '52ab7559148d3a897e0c4b2ab328f8e47f497353', href: this.homeUrl, class: "hidden-breadcrumb-item" }, h("span", { key: '1d5eb01bb09c841199727c6f5a365976535819f1', class: "visually-hidden" }, this.homeText), h("post-icon", { key: 'b4e670439f527af22e6fd3a09685f4817b62ec94', name: "home", class: "home-icon" })), this.breadcrumbItems.map(item => (h("post-breadcrumb-item", { url: item.url, key: `hidden-${item.url || item.text}`, class: "hidden-breadcrumb-item" }, item.text)))))));
|
|
99
99
|
}
|
|
100
100
|
static get is() { return "post-breadcrumbs"; }
|
|
101
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -113,6 +113,7 @@ export class PostBreadcrumbs {
|
|
|
113
113
|
return {
|
|
114
114
|
"homeUrl": {
|
|
115
115
|
"type": "string",
|
|
116
|
+
"attribute": "home-url",
|
|
116
117
|
"mutable": false,
|
|
117
118
|
"complexType": {
|
|
118
119
|
"original": "string",
|
|
@@ -125,11 +126,13 @@ export class PostBreadcrumbs {
|
|
|
125
126
|
"tags": [],
|
|
126
127
|
"text": "The URL for the home breadcrumb item."
|
|
127
128
|
},
|
|
128
|
-
"
|
|
129
|
+
"getter": false,
|
|
130
|
+
"setter": false,
|
|
129
131
|
"reflect": false
|
|
130
132
|
},
|
|
131
133
|
"homeText": {
|
|
132
134
|
"type": "string",
|
|
135
|
+
"attribute": "home-text",
|
|
133
136
|
"mutable": false,
|
|
134
137
|
"complexType": {
|
|
135
138
|
"original": "string",
|
|
@@ -142,7 +145,8 @@ export class PostBreadcrumbs {
|
|
|
142
145
|
"tags": [],
|
|
143
146
|
"text": "The text label for the home breadcrumb item."
|
|
144
147
|
},
|
|
145
|
-
"
|
|
148
|
+
"getter": false,
|
|
149
|
+
"setter": false,
|
|
146
150
|
"reflect": false,
|
|
147
151
|
"defaultValue": "'Home'"
|
|
148
152
|
}
|
|
@@ -73,15 +73,14 @@ export class PostCardControl {
|
|
|
73
73
|
};
|
|
74
74
|
this.controlId = `PostCardControl_${cardControlIds++}`;
|
|
75
75
|
this.focused = false;
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
this.name = undefined;
|
|
80
|
-
this.value = undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data.
|
|
78
|
+
*/
|
|
81
79
|
this.checked = false;
|
|
80
|
+
/**
|
|
81
|
+
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data.
|
|
82
|
+
*/
|
|
82
83
|
this.disabled = false;
|
|
83
|
-
this.validity = undefined;
|
|
84
|
-
this.icon = undefined;
|
|
85
84
|
this.cardClickHandler = this.cardClickHandler.bind(this);
|
|
86
85
|
this.controlClickHandler = this.controlClickHandler.bind(this);
|
|
87
86
|
this.controlChangeHandler = this.controlChangeHandler.bind(this);
|
|
@@ -280,6 +279,7 @@ export class PostCardControl {
|
|
|
280
279
|
return {
|
|
281
280
|
"label": {
|
|
282
281
|
"type": "string",
|
|
282
|
+
"attribute": "label",
|
|
283
283
|
"mutable": false,
|
|
284
284
|
"complexType": {
|
|
285
285
|
"original": "string",
|
|
@@ -292,11 +292,13 @@ export class PostCardControl {
|
|
|
292
292
|
"tags": [],
|
|
293
293
|
"text": "Defines the text in the control-label."
|
|
294
294
|
},
|
|
295
|
-
"
|
|
295
|
+
"getter": false,
|
|
296
|
+
"setter": false,
|
|
296
297
|
"reflect": true
|
|
297
298
|
},
|
|
298
299
|
"description": {
|
|
299
300
|
"type": "string",
|
|
301
|
+
"attribute": "description",
|
|
300
302
|
"mutable": false,
|
|
301
303
|
"complexType": {
|
|
302
304
|
"original": "string",
|
|
@@ -309,11 +311,13 @@ export class PostCardControl {
|
|
|
309
311
|
"tags": [],
|
|
310
312
|
"text": "Defines the description in the control-label."
|
|
311
313
|
},
|
|
312
|
-
"
|
|
314
|
+
"getter": false,
|
|
315
|
+
"setter": false,
|
|
313
316
|
"reflect": false
|
|
314
317
|
},
|
|
315
318
|
"type": {
|
|
316
319
|
"type": "string",
|
|
320
|
+
"attribute": "type",
|
|
317
321
|
"mutable": false,
|
|
318
322
|
"complexType": {
|
|
319
323
|
"original": "'checkbox' | 'radio'",
|
|
@@ -326,11 +330,13 @@ export class PostCardControl {
|
|
|
326
330
|
"tags": [],
|
|
327
331
|
"text": "Defines the `type` attribute of the control."
|
|
328
332
|
},
|
|
329
|
-
"
|
|
333
|
+
"getter": false,
|
|
334
|
+
"setter": false,
|
|
330
335
|
"reflect": false
|
|
331
336
|
},
|
|
332
337
|
"name": {
|
|
333
338
|
"type": "string",
|
|
339
|
+
"attribute": "name",
|
|
334
340
|
"mutable": false,
|
|
335
341
|
"complexType": {
|
|
336
342
|
"original": "string",
|
|
@@ -343,11 +349,13 @@ export class PostCardControl {
|
|
|
343
349
|
"tags": [],
|
|
344
350
|
"text": "Defines the `name` attribute of the control.\n<span className=\"mb-4 banner banner-sm banner-info\">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span>\n<span className=\"banner banner-sm banner-info\">This is a required property, when the control is used with type `radio`.</span>"
|
|
345
351
|
},
|
|
346
|
-
"
|
|
352
|
+
"getter": false,
|
|
353
|
+
"setter": false,
|
|
347
354
|
"reflect": false
|
|
348
355
|
},
|
|
349
356
|
"value": {
|
|
350
357
|
"type": "string",
|
|
358
|
+
"attribute": "value",
|
|
351
359
|
"mutable": false,
|
|
352
360
|
"complexType": {
|
|
353
361
|
"original": "string",
|
|
@@ -360,11 +368,13 @@ export class PostCardControl {
|
|
|
360
368
|
"tags": [],
|
|
361
369
|
"text": "Defines the `value` attribute of the control. <span className=\"banner banner-sm banner-info\">This is a required property, when the control is used with type `radio`.</span>"
|
|
362
370
|
},
|
|
363
|
-
"
|
|
371
|
+
"getter": false,
|
|
372
|
+
"setter": false,
|
|
364
373
|
"reflect": false
|
|
365
374
|
},
|
|
366
375
|
"checked": {
|
|
367
376
|
"type": "boolean",
|
|
377
|
+
"attribute": "checked",
|
|
368
378
|
"mutable": true,
|
|
369
379
|
"complexType": {
|
|
370
380
|
"original": "boolean",
|
|
@@ -377,12 +387,14 @@ export class PostCardControl {
|
|
|
377
387
|
"tags": [],
|
|
378
388
|
"text": "Defines the `checked` attribute of the control. If `true`, the control is selected at its value will be included in the forms' data."
|
|
379
389
|
},
|
|
380
|
-
"
|
|
390
|
+
"getter": false,
|
|
391
|
+
"setter": false,
|
|
381
392
|
"reflect": false,
|
|
382
393
|
"defaultValue": "false"
|
|
383
394
|
},
|
|
384
395
|
"disabled": {
|
|
385
396
|
"type": "boolean",
|
|
397
|
+
"attribute": "disabled",
|
|
386
398
|
"mutable": true,
|
|
387
399
|
"complexType": {
|
|
388
400
|
"original": "boolean",
|
|
@@ -395,12 +407,14 @@ export class PostCardControl {
|
|
|
395
407
|
"tags": [],
|
|
396
408
|
"text": "Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data."
|
|
397
409
|
},
|
|
398
|
-
"
|
|
410
|
+
"getter": false,
|
|
411
|
+
"setter": false,
|
|
399
412
|
"reflect": false,
|
|
400
413
|
"defaultValue": "false"
|
|
401
414
|
},
|
|
402
415
|
"validity": {
|
|
403
416
|
"type": "boolean",
|
|
417
|
+
"attribute": "validity",
|
|
404
418
|
"mutable": true,
|
|
405
419
|
"complexType": {
|
|
406
420
|
"original": "boolean",
|
|
@@ -413,11 +427,13 @@ export class PostCardControl {
|
|
|
413
427
|
"tags": [],
|
|
414
428
|
"text": "Defines the validation `validity` of the control.\nTo reset validity to an undefined state, simply remove the attribute from the control."
|
|
415
429
|
},
|
|
416
|
-
"
|
|
430
|
+
"getter": false,
|
|
431
|
+
"setter": false,
|
|
417
432
|
"reflect": false
|
|
418
433
|
},
|
|
419
434
|
"icon": {
|
|
420
435
|
"type": "string",
|
|
436
|
+
"attribute": "icon",
|
|
421
437
|
"mutable": false,
|
|
422
438
|
"complexType": {
|
|
423
439
|
"original": "string",
|
|
@@ -430,7 +446,8 @@ export class PostCardControl {
|
|
|
430
446
|
"tags": [],
|
|
431
447
|
"text": "Defines the icon `name` inside the card.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>"
|
|
432
448
|
},
|
|
433
|
-
"
|
|
449
|
+
"getter": false,
|
|
450
|
+
"setter": false,
|
|
434
451
|
"reflect": false
|
|
435
452
|
}
|
|
436
453
|
};
|
|
@@ -9,6 +9,9 @@ export class PostCollapsible {
|
|
|
9
9
|
constructor() {
|
|
10
10
|
this.isLoaded = false;
|
|
11
11
|
this.isOpen = true;
|
|
12
|
+
/**
|
|
13
|
+
* If `true`, the element is collapsed otherwise it is displayed.
|
|
14
|
+
*/
|
|
12
15
|
this.collapsed = false;
|
|
13
16
|
}
|
|
14
17
|
collapsedChange() {
|
|
@@ -68,6 +71,7 @@ export class PostCollapsible {
|
|
|
68
71
|
return {
|
|
69
72
|
"collapsed": {
|
|
70
73
|
"type": "boolean",
|
|
74
|
+
"attribute": "collapsed",
|
|
71
75
|
"mutable": true,
|
|
72
76
|
"complexType": {
|
|
73
77
|
"original": "boolean",
|
|
@@ -80,7 +84,8 @@ export class PostCollapsible {
|
|
|
80
84
|
"tags": [],
|
|
81
85
|
"text": "If `true`, the element is collapsed otherwise it is displayed."
|
|
82
86
|
},
|
|
83
|
-
"
|
|
87
|
+
"getter": false,
|
|
88
|
+
"setter": false,
|
|
84
89
|
"reflect": false,
|
|
85
90
|
"defaultValue": "false"
|
|
86
91
|
}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
1
11
|
import { h, Host } from "@stencil/core";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import { checkRequiredAndType,
|
|
13
|
+
import { checkRequiredAndType, EventFrom, getRoot } from "../../utils/index";
|
|
4
14
|
export class PostCollapsibleTrigger {
|
|
5
15
|
constructor() {
|
|
6
16
|
this.observer = new MutationObserver(() => this.setTrigger());
|
|
7
|
-
this.for = undefined;
|
|
8
17
|
}
|
|
9
18
|
/**
|
|
10
19
|
* Set the "aria-controls" and "aria-expanded" attributes on the trigger to match the state of the controlled post-collapsible
|
|
@@ -41,11 +50,9 @@ export class PostCollapsibleTrigger {
|
|
|
41
50
|
* This updates the trigger's "aria-expanded" attribute based on the event detail.
|
|
42
51
|
*/
|
|
43
52
|
handlePostToggle(e) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
});
|
|
53
|
+
if (this.trigger) {
|
|
54
|
+
this.trigger.setAttribute('aria-expanded', `${e.detail}`);
|
|
55
|
+
}
|
|
49
56
|
}
|
|
50
57
|
updateAriaAttributes() {
|
|
51
58
|
if (!this.trigger)
|
|
@@ -89,7 +96,7 @@ export class PostCollapsibleTrigger {
|
|
|
89
96
|
this.updateAriaAttributes();
|
|
90
97
|
}
|
|
91
98
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
99
|
+
return (h(Host, { key: '7fdf4338861df3ed4a61e2de68a0623f7f43df19', "data-version": version }, h("slot", { key: '4efa3ed29778dc162c4e8628f32d447d8b0b9ece' })));
|
|
93
100
|
}
|
|
94
101
|
static get is() { return "post-collapsible-trigger"; }
|
|
95
102
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,6 +104,7 @@ export class PostCollapsibleTrigger {
|
|
|
97
104
|
return {
|
|
98
105
|
"for": {
|
|
99
106
|
"type": "string",
|
|
107
|
+
"attribute": "for",
|
|
100
108
|
"mutable": false,
|
|
101
109
|
"complexType": {
|
|
102
110
|
"original": "string",
|
|
@@ -109,7 +117,8 @@ export class PostCollapsibleTrigger {
|
|
|
109
117
|
"tags": [],
|
|
110
118
|
"text": "Link the trigger to a post-collapsible with this id"
|
|
111
119
|
},
|
|
112
|
-
"
|
|
120
|
+
"getter": false,
|
|
121
|
+
"setter": false,
|
|
113
122
|
"reflect": true
|
|
114
123
|
}
|
|
115
124
|
};
|
|
@@ -143,3 +152,6 @@ export class PostCollapsibleTrigger {
|
|
|
143
152
|
}];
|
|
144
153
|
}
|
|
145
154
|
}
|
|
155
|
+
__decorate([
|
|
156
|
+
EventFrom('post-collapsible')
|
|
157
|
+
], PostCollapsibleTrigger.prototype, "handlePostToggle", null);
|
|
@@ -16,6 +16,8 @@ export class PostFooter {
|
|
|
16
16
|
checkRequiredAndType(this, 'label', 'string');
|
|
17
17
|
}
|
|
18
18
|
constructor() {
|
|
19
|
+
this.device = breakpoint.get('device');
|
|
20
|
+
this.gridSlotDisplayed = {};
|
|
19
21
|
this.breakpointChange = (e) => {
|
|
20
22
|
this.device = e.detail;
|
|
21
23
|
};
|
|
@@ -24,13 +26,10 @@ export class PostFooter {
|
|
|
24
26
|
this.updateGridSlotDisplay(e.target.name, e.target.assignedElements().length > 0);
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
|
-
this.label = undefined;
|
|
28
|
-
this.device = breakpoint.get('name');
|
|
29
|
-
this.gridSlotDisplayed = {};
|
|
30
29
|
this.handleGridSlotChange = this.handleGridSlotChange.bind(this);
|
|
31
30
|
}
|
|
32
31
|
connectedCallback() {
|
|
33
|
-
window.addEventListener('postBreakpoint:
|
|
32
|
+
window.addEventListener('postBreakpoint:device', this.breakpointChange);
|
|
34
33
|
}
|
|
35
34
|
componentWillLoad() {
|
|
36
35
|
this.validateLabel();
|
|
@@ -41,7 +40,7 @@ export class PostFooter {
|
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
disconnectedCallback() {
|
|
44
|
-
window.removeEventListener('postBreakpoint:
|
|
43
|
+
window.removeEventListener('postBreakpoint:device', this.breakpointChange);
|
|
45
44
|
}
|
|
46
45
|
updateGridSlotDisplay(slotName, hasContent) {
|
|
47
46
|
if (this.gridSlotDisplayed[slotName] !== hasContent) {
|
|
@@ -55,7 +54,7 @@ export class PostFooter {
|
|
|
55
54
|
return GRID_SLOTS.map(slotName => (h("div", { class: { 'd-none': !this.gridSlotDisplayed[slotName] } }, h("slot", { onSlotchange: this.handleGridSlotChange('tablet', 'desktop'), name: slotName }))));
|
|
56
55
|
}
|
|
57
56
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
57
|
+
return (h(Host, { key: 'a8e9b31b6397a0714dbf04344ab8b14a6557de33', "data-version": version }, h("footer", { key: 'ff7b4b44e16615386c5d12e22cede352f1713771' }, h("h2", { key: '3c9e6bb2abc6c8d780d2d8add008a6429d2e56c5', class: "visually-hidden" }, this.label), h("div", { key: 'ed1081328cc99f3a35fca694bcb46a06a0722e0c', class: "footer-container" }, h("div", { key: 'd251ed5c1cd48a58ffa13fcb3783c20ca0324f62', class: "footer-grid" }, this.device === 'mobile' ? this.renderAccordion() : this.renderColumns()), h("div", { key: '470c1bb6d26ba07b5aad802c7c4a857a4b677a33', class: "footer-column" }, h("div", { key: '1f5aa5b055e5843dbcd2b54e9f3e07f854131bdf', class: "footer-socialmedia" }, h("slot", { key: 'a0a4017352ff569ccda7f0f51192bf2e6ab5bf76', name: "socialmedia" })), h("div", { key: '52adfc1753529270eb3484581dac57978af5f447', class: "footer-app" }, h("slot", { key: '790891de631670fbca5460e3b1a118c22c707180', name: "app" }))), h("div", { key: 'a28cecfec455f31af7d098bf305c2b6382c85d8c', class: "footer-businesssectors" }, h("slot", { key: '14d504b9356313a3e631a9eca247bc3137ab22d5', name: "businesssectors" })), h("div", { key: '81a7114a63ac70c5e3fdf93c72c4f92ff93f8d14', class: "footer-meta" }, h("slot", { key: '346445c8df4d4ca575dff3a78408593b3fde805d', name: "meta" })), h("div", { key: '971e837c1c1553a5223c6a547bcc818baa252d1e', class: "footer-copyright" }, h("slot", { key: '7c22cadabaa8f1845226bccdbe3caf191e39e28e', name: "copyright" }))))));
|
|
59
58
|
}
|
|
60
59
|
static get is() { return "post-footer"; }
|
|
61
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -73,6 +72,7 @@ export class PostFooter {
|
|
|
73
72
|
return {
|
|
74
73
|
"label": {
|
|
75
74
|
"type": "string",
|
|
75
|
+
"attribute": "label",
|
|
76
76
|
"mutable": false,
|
|
77
77
|
"complexType": {
|
|
78
78
|
"original": "string",
|
|
@@ -85,7 +85,8 @@ export class PostFooter {
|
|
|
85
85
|
"tags": [],
|
|
86
86
|
"text": "The label to add to the footer (visually hidden)."
|
|
87
87
|
},
|
|
88
|
-
"
|
|
88
|
+
"getter": false,
|
|
89
|
+
"setter": false,
|
|
89
90
|
"reflect": false
|
|
90
91
|
}
|
|
91
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
*,::before,::after{box-sizing:border-box}:host{z-index:1020;position:relative;--post-global-header-top: calc( (var(--post-global-header-height) - var(--post-global-header-reduced-height)) * -1 );--post-local-header-top: calc( -1 * (var(--post-local-header-height) - var(--post-main-navigation-height)) + var(--post-global-header-reduced-height) );--post-logo-height: calc(var(--post-global-header-height) - var(--post-header-scroll-top, 0px));--post-global-controls-top: calc(min((var(--post-header-scroll-top) / 4), 20px) * -1)}:host:has(.global-sub>*:not(.logo):focus-within),:host:has(.local-sub:focus-within){--post-global-header-top: 0;--post-local-header-top: var(--post-global-header-height);--post-logo-height: var(--post-global-header-height);--post-global-controls-top: 0}
|
|
1
|
+
*,::before,::after{box-sizing:border-box}:host{z-index:1020;position:relative;--post-global-header-top: calc( (var(--post-global-header-height) - var(--post-global-header-reduced-height)) * -1 );--post-local-header-top: calc( -1 * (var(--post-local-header-height) - var(--post-main-navigation-height)) + var(--post-global-header-reduced-height) );--post-logo-height: calc(var(--post-global-header-height) - var(--post-header-scroll-top, 0px));--post-global-controls-top: calc(min((var(--post-header-scroll-top) / 4), 20px) * -1)}:host:has(.global-sub>*:not(.logo):focus-within),:host:has(.local-sub:focus-within){--post-global-header-top: 0;--post-local-header-top: var(--post-global-header-height);--post-logo-height: var(--post-global-header-height);--post-global-controls-top: 0}:host(:not(:has([slot=title]))) .local-header{padding-block-start:0}:host(:not(:has([slot=title]))) .local-sub{display:none}.d-flex{display:flex}.space-between{justify-content:space-between}.global-header{background-color:#fc0;display:flex;justify-content:space-between;position:sticky;padding-inline:4px;height:var(--post-global-header-height)}@media screen and (max-width: 1023.98px){.global-header{z-index:4;inset-block-start:0}}@media screen and (min-width: 1024px){.global-header{z-index:5;padding-inline-end:12px;inset-block-start:var(--post-global-header-top);transition:inset-block-start .2s ease-in-out}}.global-sub{display:flex;align-items:center;gap:24px}@media screen and (min-width: 1024px){.global-sub:not(:has(.logo)){position:relative;transition:inset-block-start .2s ease-in-out;inset-block-start:var(--post-global-controls-top)}}.align-end{align-items:flex-end}.logo{flex:1 0 auto;height:var(--post-global-header-height);width:var(--post-global-header-height);min-height:var(--post-global-header-reduced-height);align-self:flex-end}@media screen and (min-width: 1024px){.logo{transition:height .2 ease-in-out;height:var(--post-logo-height)}}::slotted(ul){margin-block:0 !important;list-style:none;display:flex;padding-inline-start:0;gap:1rem;flex-shrink:0 !important}.local-header{display:flex;position:sticky;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px;min-height:var(--post-local-header-min-height);background:#fff;transition:box-shadow .2s ease-in-out}.local-header::after{content:"";position:absolute;width:100%;height:1px;background-color:#e1e0dc;inset-block-end:-1px;z-index:1}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.local-header::after{background-color:Highlight}}@media screen and (min-width: 1024px){.local-header{z-index:3;inset-block-start:var(--post-local-header-top);padding-block-start:18px;box-shadow:var(--post-device-elevation-300);transition:box-shadow .2s ease-in-out,inset-block-start .2s ease-in-out}}@media screen and (max-width: 1023.98px){.local-header{z-index:3;inset-block-start:var(--post-global-header-height);padding-block:8px;flex-wrap:wrap;gap:12px}.local-header.local-header-mobile-extended::after{inset-block-end:0}.local-header:not(.local-header-mobile-extended){box-shadow:var(--post-device-elevation-300)}}.local-sub{margin-inline-end:8px}@media screen and (max-width: 1023.98px){.local-sub{margin-inline-end:4px}}::slotted(.list-inline){margin:0 !important;z-index:3 !important;position:relative !important}@media screen and (min-width: 1024px){.mobile-toggle{display:none}}.navigation{width:100%}@media screen and (min-width: 1024px){.navigation{inset-block-start:var(--post-global-header-reduced-height)}.navigation::before{display:block;content:"";position:absolute;inset:0;z-index:2;background:#fff}}@media screen and (max-width: 1023.98px){.navigation{position:sticky;z-index:2;inset-inline:0;inset-block-start:var(--post-header-height)}.mobile-menu{background-color:#fafafa}::slotted(post-mainnavigation),.navigation-footer{display:none;flex-direction:column;padding-block:16px 24px;padding-inline:32px}.navigation.extended ::slotted(post-mainnavigation),.navigation.extended .navigation-footer{display:flex}.navigation.extended>div{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;height:calc(min(var(--post-header-scroll-parent-height, 100dvh),100dvh) - var(--post-header-height))}.navigation.extended.megadropdown-open>div{overflow-y:hidden}.navigation.extended ::slotted(post-mainnavigation){flex-grow:1 !important}::slotted(post-mainnavigation){gap:32px}.navigation-footer{background-color:#f0efed;gap:24px}}@media screen and (max-width: 599.98px){::slotted(post-mainnavigation),.navigation-footer{padding-inline:16px}}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
1
11
|
import { h, Host, } from "@stencil/core";
|
|
2
12
|
import { throttle } from "throttle-debounce";
|
|
3
13
|
import { version } from "../../../../package";
|
|
4
14
|
import { breakpoint } from "../../utils/breakpoints";
|
|
5
15
|
import { slideDown, slideUp } from "../../animations/slide";
|
|
6
16
|
import { getFocusableChildren } from "../../utils/get-focusable-children";
|
|
7
|
-
import {
|
|
17
|
+
import { EventFrom } from "../../utils/event-from";
|
|
8
18
|
/**
|
|
9
19
|
* @slot post-logo - Should be used together with the `<post-logo>` component.
|
|
10
20
|
* @slot meta-navigation - Holds an `<ul>` with meta navigation links.
|
|
@@ -43,6 +53,9 @@ export class PostHeader {
|
|
|
43
53
|
}
|
|
44
54
|
constructor() {
|
|
45
55
|
this.throttledResize = throttle(50, () => this.updateLocalHeaderHeight());
|
|
56
|
+
this.device = breakpoint.get('device');
|
|
57
|
+
this.mobileMenuExtended = false;
|
|
58
|
+
this.megadropdownOpen = false;
|
|
46
59
|
this.breakpointChange = (e) => {
|
|
47
60
|
this.device = e.detail;
|
|
48
61
|
this.switchLanguageSwitchMode();
|
|
@@ -51,16 +64,8 @@ export class PostHeader {
|
|
|
51
64
|
}
|
|
52
65
|
};
|
|
53
66
|
this.megadropdownStateHandler = (event) => {
|
|
54
|
-
|
|
55
|
-
targetLocalName: 'post-megadropdown',
|
|
56
|
-
delegatorSelector: 'post-header',
|
|
57
|
-
}, () => {
|
|
58
|
-
this.megadropdownOpen = event.detail.isVisible;
|
|
59
|
-
});
|
|
67
|
+
this.megadropdownOpen = event.detail.isVisible;
|
|
60
68
|
};
|
|
61
|
-
this.device = breakpoint.get('name');
|
|
62
|
-
this.mobileMenuExtended = false;
|
|
63
|
-
this.megadropdownOpen = false;
|
|
64
69
|
this.handleScrollEvent = this.handleScrollEvent.bind(this);
|
|
65
70
|
this.updateScrollParentHeight = this.updateScrollParentHeight.bind(this);
|
|
66
71
|
this.updateLocalHeaderHeight = this.updateLocalHeaderHeight.bind(this);
|
|
@@ -77,9 +82,8 @@ export class PostHeader {
|
|
|
77
82
|
});
|
|
78
83
|
document.addEventListener('postToggleMegadropdown', this.megadropdownStateHandler);
|
|
79
84
|
this.host.addEventListener('click', this.handleLinkClick);
|
|
80
|
-
window.addEventListener('postBreakpoint:
|
|
85
|
+
window.addEventListener('postBreakpoint:device', this.breakpointChange);
|
|
81
86
|
this.switchLanguageSwitchMode();
|
|
82
|
-
this.updateLocalHeaderHeight();
|
|
83
87
|
this.handleScrollParentResize();
|
|
84
88
|
this.lockBody(false, this.mobileMenuExtended, 'mobileMenuExtended');
|
|
85
89
|
}
|
|
@@ -90,10 +94,13 @@ export class PostHeader {
|
|
|
90
94
|
this.getFocusableElements();
|
|
91
95
|
this.handleLocalHeaderResize();
|
|
92
96
|
}
|
|
97
|
+
componentDidLoad() {
|
|
98
|
+
this.updateLocalHeaderHeight();
|
|
99
|
+
}
|
|
93
100
|
// Clean up possible side effects when post-header is disconnected
|
|
94
101
|
disconnectedCallback() {
|
|
95
102
|
const scrollParent = this.scrollParent;
|
|
96
|
-
window.removeEventListener('postBreakpoint:
|
|
103
|
+
window.removeEventListener('postBreakpoint:device', this.breakpointChange);
|
|
97
104
|
window.removeEventListener('resize', this.throttledResize);
|
|
98
105
|
window.removeEventListener('scroll', this.handleScrollEvent);
|
|
99
106
|
scrollParent.removeEventListener('scroll', this.handleScrollEvent);
|
|
@@ -178,8 +185,10 @@ export class PostHeader {
|
|
|
178
185
|
document.documentElement.style.setProperty('--post-header-scroll-top', `${scrollTop}px`);
|
|
179
186
|
}
|
|
180
187
|
updateLocalHeaderHeight() {
|
|
181
|
-
const
|
|
182
|
-
|
|
188
|
+
const localHeaderElement = this.host.shadowRoot.querySelector('.local-header');
|
|
189
|
+
if (localHeaderElement) {
|
|
190
|
+
document.documentElement.style.setProperty('--post-local-header-height', `${localHeaderElement.clientHeight}px`);
|
|
191
|
+
}
|
|
183
192
|
}
|
|
184
193
|
updateScrollParentHeight() {
|
|
185
194
|
this.host.style.setProperty('--post-header-scroll-parent-height', `${this.scrollParent.clientHeight}px`);
|
|
@@ -232,7 +241,7 @@ export class PostHeader {
|
|
|
232
241
|
return (h("div", { class: navigationClasses.join(' '), style: { '--post-header-navigation-current-inset': `${mobileMenuScrollTop}px` } }, h("div", { class: "mobile-menu", ref: el => (this.mobileMenu = el) }, h("slot", { name: "post-mainnavigation" }), (this.device === 'mobile' || this.device === 'tablet') && (h("div", { class: "navigation-footer" }, h("slot", { name: "meta-navigation" }), h("slot", { name: "post-language-switch" }))))));
|
|
233
242
|
}
|
|
234
243
|
render() {
|
|
235
|
-
return (h(Host, { key: '
|
|
244
|
+
return (h(Host, { key: '90a8c0bedc440a7242167267a62772939c3e92bc', "data-version": version }, h("div", { key: '605d0dd51867f6748cc1148d6336c3e42943a4cb', class: "global-header" }, h("div", { key: '12ea812d7aca78f86cea0494029b92d7e7e5c4e7', class: "global-sub" }, h("div", { key: 'e6e2e92bedc2b2abd84546ed7bbf8d54b4cb6f79', class: "logo" }, h("slot", { key: '52b5fa88095656878d81b5bfae5d9e2d4e154d6d', name: "post-logo" }))), h("div", { key: '428c5a10001e44fb0fc0f4806bca223697de874f', class: "global-sub" }, this.device === 'desktop' && h("slot", { key: '806129b790ec2e92a2229c4c83b390604bf7402f', name: "meta-navigation" }), h("slot", { key: 'd1b8d1967dc6847999040f7d6be49ccdb9888c73', name: "global-controls" }), this.device === 'desktop' && h("slot", { key: 'c9dec95d646e20493efde8648e0962782844d218', name: "post-language-switch" }), h("div", { key: 'ce6105955665c13392a38968cea359c431e002a4', onClick: () => this.toggleMobileMenu(), class: "mobile-toggle" }, h("slot", { key: '0dadceedde6aa20e0e2255c49b8b56995a2131b2', name: "post-togglebutton" })))), h("div", { key: 'cffb43a5b2c1843f42b73288c713f633949879db', class: 'local-header ' + (this.mobileMenuExtended ? 'local-header-mobile-extended' : '') }, h("slot", { key: 'd36e0dda59b4a6d5fe61b3ac48fcdc1868fd0a4b', name: "title" }), h("div", { key: '998114aff9f726b3d9edf256756d399efd2e0751', class: "local-sub" }, h("slot", { key: '222017a680af7bbeca73d7414801fd3ce3a55099', name: "local-controls" }), h("slot", { key: '760849a61ffea59dc184c4ae31b254f7c53aaaa3' })), this.device === 'desktop' && this.renderNavigation()), this.device !== 'desktop' && this.renderNavigation()));
|
|
236
245
|
}
|
|
237
246
|
static get is() { return "post-header"; }
|
|
238
247
|
static get encapsulation() { return "shadow"; }
|
|
@@ -293,3 +302,6 @@ export class PostHeader {
|
|
|
293
302
|
}];
|
|
294
303
|
}
|
|
295
304
|
}
|
|
305
|
+
__decorate([
|
|
306
|
+
EventFrom('post-megadropdown')
|
|
307
|
+
], PostHeader.prototype, "megadropdownStateHandler", void 0);
|