@swisspost/design-system-components 9.0.0-next.8 → 9.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index-e1f32cce.js +16 -36
- package/dist/cjs/index.cjs.js +23 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-a2b895fc.js → package-3ed88bb9.js} +1 -1
- package/dist/cjs/{post-accordion-3ce01432.js → post-accordion-9ef382e8.js} +2 -2
- package/dist/cjs/post-accordion-item-5f685bee.js +52 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/post-accordion.cjs.entry.js +2 -2
- package/dist/cjs/post-alert-88adc668.js +99 -0
- package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +3 -3
- package/dist/cjs/post-card-control-c6e5c427.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +2 -2
- package/dist/cjs/{post-collapsible-trigger-8ca4d85b.js → post-collapsible-trigger-1764e6dc.js} +12 -7
- package/dist/cjs/post-collapsible_2.cjs.entry.js +2 -3
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/post-icon-f735da00.js +139 -0
- package/dist/cjs/{post-language-option.cjs.entry.js → post-icon.cjs.entry.js} +4 -3
- package/dist/cjs/post-logo-2cd8ae98.js +39 -0
- package/dist/cjs/{post-breadcrumb-item.cjs.entry.js → post-logo.cjs.entry.js} +3 -3
- package/dist/cjs/post-popover-36c854a4.js +131 -0
- package/dist/cjs/post-popover.cjs.entry.js +2 -3
- package/dist/cjs/{post-megadropdown-trigger-7376d867.js → post-popovercontainer-cb4793c1.js} +142 -545
- package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
- package/dist/cjs/post-rating-d5073d8d.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +2 -2
- package/dist/cjs/post-tab-header-b756d9b1.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +2 -2
- package/dist/cjs/{post-tab-panel-34aed8e6.js → post-tab-panel-97b79ecd.js} +2 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +2 -2
- package/dist/cjs/{post-tabs-dd2da5d2.js → post-tabs-834497f2.js} +8 -6
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/post-tag-c70fb945.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +2 -2
- package/dist/cjs/post-tooltip-20ebe011.js +69 -0
- package/dist/cjs/{post-tooltip-3e0c1509.js → post-tooltip-trigger-6f4c9748.js} +506 -556
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
- package/dist/cjs/post-tooltip.cjs.entry.js +2 -6
- package/dist/collection/collection-manifest.json +3 -17
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +2 -2
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +8 -19
- package/dist/collection/components/post-alert/alert-types.js +1 -0
- package/dist/collection/components/post-alert/post-alert.css +35 -0
- package/dist/collection/components/{post-banner/post-banner.js → post-alert/post-alert.js} +68 -39
- package/dist/collection/components/post-card-control/post-card-control.css +30 -2
- package/dist/collection/components/post-card-control/post-card-control.js +8 -8
- package/dist/collection/components/post-collapsible/post-collapsible.js +2 -4
- package/dist/collection/components/post-icon/post-icon.css +1 -1
- package/dist/collection/components/post-icon/post-icon.js +52 -13
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-popover/post-popover.css +30 -2
- package/dist/collection/components/post-popover/post-popover.js +10 -6
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +31 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +180 -52
- package/dist/collection/components/post-rating/post-rating.css +29 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-tab-header/post-tab-header.css +29 -1
- package/dist/collection/components/post-tab-header/post-tab-header.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +6 -4
- package/dist/collection/components/post-tag/post-tag.css +29 -1
- package/dist/collection/components/post-tag/post-tag.js +2 -2
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +60 -213
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.css +1 -0
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +230 -0
- package/dist/collection/index.js +2 -16
- package/dist/components/index.js +2 -16
- package/dist/components/index2.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +10 -27
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/{post-menu.d.ts → post-alert.d.ts} +4 -4
- package/dist/components/post-alert.js +6 -0
- package/dist/components/post-alert2.js +136 -0
- package/dist/components/post-card-control2.js +3 -3
- package/dist/components/post-collapsible-trigger2.js +8 -1
- package/dist/components/post-collapsible2.js +3 -5
- package/dist/components/post-icon2.js +54 -15
- package/dist/components/post-logo2.js +2 -2
- package/dist/components/post-popover2.js +35 -8
- package/dist/components/post-popovercontainer2.js +136 -41
- package/dist/components/post-rating2.js +2 -2
- package/dist/components/post-tab-header2.js +2 -2
- package/dist/components/post-tab-panel2.js +1 -1
- package/dist/components/post-tabs2.js +7 -5
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/{post-banner.d.ts → post-tooltip-trigger.d.ts} +4 -4
- package/dist/components/post-tooltip-trigger.js +6 -0
- package/dist/components/post-tooltip-trigger2.js +4968 -0
- package/dist/components/post-tooltip2.js +32 -4962
- package/dist/docs.json +290 -1288
- package/dist/esm/{index-f8a00dc0.js → index-69587a51.js} +1 -1
- package/dist/esm/index-e1b64755.js +16 -36
- package/dist/esm/index.js +19 -26
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-983f957d.js +3 -0
- package/dist/esm/{post-accordion-19e88941.js → post-accordion-ad570427.js} +2 -2
- package/dist/esm/post-accordion-item-4db0aa2a.js +50 -0
- package/dist/esm/post-accordion-item.entry.js +3 -3
- package/dist/esm/post-accordion.entry.js +2 -2
- package/dist/esm/post-alert-1e9fbdfa.js +97 -0
- package/dist/esm/{post-banner.entry.js → post-alert.entry.js} +3 -3
- package/dist/esm/post-card-control-ccb189a8.js +270 -0
- package/dist/esm/post-card-control.entry.js +2 -2
- package/dist/esm/{post-collapsible-trigger-1d939eb6.js → post-collapsible-trigger-45fe328a.js} +12 -7
- package/dist/esm/post-collapsible_2.entry.js +3 -4
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/post-icon-3fc4dd7d.js +137 -0
- package/dist/esm/post-icon.entry.js +8 -0
- package/dist/esm/post-logo-e6cdea13.js +37 -0
- package/dist/esm/post-logo.entry.js +7 -0
- package/dist/esm/post-popover-afdf4906.js +129 -0
- package/dist/esm/post-popover.entry.js +2 -3
- package/dist/esm/{post-megadropdown-trigger-210b4ab3.js → post-popovercontainer-b19b7606.js} +144 -538
- package/dist/esm/post-popovercontainer.entry.js +3 -0
- package/dist/esm/post-rating-f60024fa.js +86 -0
- package/dist/esm/post-rating.entry.js +2 -2
- package/dist/esm/post-tab-header-333e15d5.js +30 -0
- package/dist/esm/post-tab-header.entry.js +2 -2
- package/dist/esm/{post-tab-panel-afce8d40.js → post-tab-panel-0ddb05a2.js} +2 -2
- package/dist/esm/post-tab-panel.entry.js +2 -2
- package/dist/esm/{post-tabs-fbb42496.js → post-tabs-ab7853cf.js} +8 -6
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/post-tag-4a7d14b9.js +45 -0
- package/dist/esm/post-tag.entry.js +2 -2
- package/dist/esm/post-tooltip-c03cd719.js +67 -0
- package/dist/esm/{post-tooltip-7101ed24.js → post-tooltip-trigger-1fefc8ad.js} +506 -556
- package/dist/esm/post-tooltip-trigger.entry.js +4 -0
- package/dist/esm/post-tooltip.entry.js +2 -6
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-0a45da5e.entry.js +1 -0
- package/dist/post-components/p-12e82863.entry.js +1 -0
- package/dist/post-components/p-1386b77d.js +1 -0
- package/dist/post-components/p-1528b798.js +1 -0
- package/dist/post-components/p-18dc1299.entry.js +1 -0
- package/dist/post-components/p-1a8f6c84.entry.js +1 -0
- package/dist/post-components/p-256453ca.js +1 -0
- package/dist/post-components/p-3272ebad.js +1 -0
- package/dist/post-components/p-3596035e.js +1 -0
- package/dist/post-components/p-3668f4fa.entry.js +1 -0
- package/dist/post-components/p-375845d4.js +1 -0
- package/dist/post-components/p-381de59d.entry.js +1 -0
- package/dist/post-components/p-4e68c514.js +1 -0
- package/dist/post-components/p-4eb5d9a1.entry.js +1 -0
- package/dist/post-components/p-61a7d216.js +1 -0
- package/dist/post-components/{p-0338f9da.js → p-788e64fb.js} +1 -1
- package/dist/post-components/p-7d5b41d1.js +1 -0
- package/dist/post-components/p-82ea24e7.js +1 -0
- package/dist/post-components/p-85c4d04f.js +1 -0
- package/dist/post-components/p-85c6d001.entry.js +1 -0
- package/dist/post-components/p-8e555dda.js +15 -0
- package/dist/post-components/p-962a6f36.entry.js +1 -0
- package/dist/post-components/p-a76c71bc.js +1 -0
- package/dist/post-components/p-a7e8fd41.entry.js +1 -0
- package/dist/post-components/p-ac216bd0.entry.js +1 -0
- package/dist/post-components/p-b17ecbee.entry.js +1 -0
- package/dist/post-components/p-bb4227ad.entry.js +1 -0
- package/dist/post-components/p-bc294d0b.js +1 -0
- package/dist/post-components/p-d0b3c5d3.entry.js +1 -0
- package/dist/post-components/p-d4e148d8.entry.js +1 -0
- package/dist/post-components/p-d9809281.js +1 -0
- package/dist/post-components/p-eb1e7a49.js +1 -0
- package/dist/post-components/p-f35291d5.entry.js +1 -0
- package/dist/post-components/p-fc3bfe08.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +1 -5
- package/dist/types/components/post-alert/alert-types.d.ts +2 -0
- package/dist/types/components/post-alert/post-alert.d.ts +54 -0
- package/dist/types/components/post-card-control/post-card-control.d.ts +7 -7
- package/dist/types/components/post-icon/post-icon.d.ts +1 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +31 -13
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +20 -34
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +47 -0
- package/dist/types/components.d.ts +124 -490
- package/dist/types/index.d.ts +2 -16
- package/loaders/index.d.ts +4 -32
- package/loaders/index.js +4 -18
- package/loaders/index2.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +11 -28
- package/loaders/post-accordion.js +1 -1
- package/loaders/{post-menu.d.ts → post-alert.d.ts} +4 -4
- package/loaders/post-alert.js +139 -0
- package/loaders/post-card-control.js +3 -3
- package/loaders/post-collapsible-trigger2.js +8 -1
- package/loaders/post-collapsible2.js +3 -5
- package/loaders/post-icon2.js +54 -15
- package/loaders/post-logo.js +2 -2
- package/loaders/post-popover.js +35 -8
- package/loaders/post-popovercontainer2.js +136 -41
- package/loaders/post-rating.js +2 -2
- package/loaders/post-tab-header.js +2 -2
- package/loaders/post-tab-panel.js +1 -1
- package/loaders/post-tabs.js +7 -5
- package/loaders/post-tag.js +2 -2
- package/loaders/{post-avatar.d.ts → post-tooltip-trigger.d.ts} +4 -4
- package/loaders/post-tooltip-trigger.js +4971 -0
- package/loaders/post-tooltip.js +32 -4962
- package/package.json +5 -7
- package/dist/cjs/attribute-observer-10f08c04.js +0 -27
- package/dist/cjs/get-root-7a3498ef.js +0 -11
- package/dist/cjs/post-accordion-item-81601b1e.js +0 -62
- package/dist/cjs/post-avatar-b1c97f51.js +0 -148
- package/dist/cjs/post-avatar.cjs.entry.js +0 -13
- package/dist/cjs/post-back-to-top-0ce98569.js +0 -98
- package/dist/cjs/post-back-to-top.cjs.entry.js +0 -14
- package/dist/cjs/post-banner-8611eab5.js +0 -90
- package/dist/cjs/post-breadcrumb-item-2075462a.js +0 -49
- package/dist/cjs/post-card-control-acd30573.js +0 -272
- package/dist/cjs/post-closebutton_10.cjs.entry.js +0 -25
- package/dist/cjs/post-language-option-cf32d0ed.js +0 -68
- package/dist/cjs/post-menu-a3b7b63b.js +0 -176
- package/dist/cjs/post-menu-item-28ab1a72.js +0 -20
- package/dist/cjs/post-menu-item.cjs.entry.js +0 -11
- package/dist/cjs/post-menu-trigger-821839f5.js +0 -75
- package/dist/cjs/post-menu-trigger.cjs.entry.js +0 -13
- package/dist/cjs/post-menu.cjs.entry.js +0 -11
- package/dist/cjs/post-popover-c4f50134.js +0 -104
- package/dist/cjs/post-rating-3a87ca46.js +0 -88
- package/dist/cjs/post-tab-header-5fdb05a1.js +0 -32
- package/dist/cjs/post-tag-59232922.js +0 -47
- package/dist/cjs/post-togglebutton-59c6357b.js +0 -28
- package/dist/cjs/post-togglebutton.cjs.entry.js +0 -11
- package/dist/collection/animations/slide.js +0 -23
- package/dist/collection/components/post-avatar/post-avatar.css +0 -3
- package/dist/collection/components/post-avatar/post-avatar.js +0 -237
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +0 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +0 -107
- package/dist/collection/components/post-banner/banner-types.js +0 -1
- package/dist/collection/components/post-banner/post-banner.css +0 -3
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +0 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +0 -83
- package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
- package/dist/collection/components/post-header/post-header.css +0 -1
- package/dist/collection/components/post-header/post-header.js +0 -103
- package/dist/collection/components/post-language-option/post-language-option.css +0 -3
- package/dist/collection/components/post-language-option/post-language-option.js +0 -191
- package/dist/collection/components/post-list/post-list.css +0 -3
- package/dist/collection/components/post-list/post-list.js +0 -87
- package/dist/collection/components/post-list-item/post-list-item.css +0 -1
- package/dist/collection/components/post-list-item/post-list-item.js +0 -25
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +0 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +0 -61
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -137
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +0 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +0 -48
- package/dist/collection/components/post-menu/post-menu.css +0 -3
- package/dist/collection/components/post-menu/post-menu.js +0 -278
- package/dist/collection/components/post-menu-item/post-menu-item.css +0 -1
- package/dist/collection/components/post-menu-item/post-menu-item.js +0 -20
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.css +0 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +0 -104
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -56
- package/dist/collection/utils/is-focusable.js +0 -26
- package/dist/components/attribute-observer.js +0 -25
- package/dist/components/get-root.js +0 -9
- package/dist/components/post-avatar.d.ts +0 -11
- package/dist/components/post-avatar.js +0 -6
- package/dist/components/post-avatar2.js +0 -173
- package/dist/components/post-back-to-top.d.ts +0 -11
- package/dist/components/post-back-to-top.js +0 -6
- package/dist/components/post-back-to-top2.js +0 -123
- package/dist/components/post-banner.js +0 -6
- package/dist/components/post-banner2.js +0 -125
- package/dist/components/post-breadcrumb-item.d.ts +0 -11
- package/dist/components/post-breadcrumb-item.js +0 -6
- package/dist/components/post-breadcrumb-item2.js +0 -72
- package/dist/components/post-closebutton.d.ts +0 -11
- package/dist/components/post-closebutton.js +0 -6
- package/dist/components/post-closebutton2.js +0 -34
- package/dist/components/post-header.d.ts +0 -11
- package/dist/components/post-header.js +0 -6
- package/dist/components/post-header2.js +0 -235
- package/dist/components/post-language-option.d.ts +0 -11
- package/dist/components/post-language-option.js +0 -6
- package/dist/components/post-language-option2.js +0 -92
- package/dist/components/post-list-item.d.ts +0 -11
- package/dist/components/post-list-item.js +0 -6
- package/dist/components/post-list-item2.js +0 -35
- package/dist/components/post-list.d.ts +0 -11
- package/dist/components/post-list.js +0 -6
- package/dist/components/post-list2.js +0 -53
- package/dist/components/post-mainnavigation.d.ts +0 -11
- package/dist/components/post-mainnavigation.js +0 -6
- package/dist/components/post-mainnavigation2.js +0 -48
- package/dist/components/post-megadropdown-trigger.d.ts +0 -11
- package/dist/components/post-megadropdown-trigger.js +0 -6
- package/dist/components/post-megadropdown-trigger2.js +0 -39
- package/dist/components/post-megadropdown.d.ts +0 -11
- package/dist/components/post-megadropdown.js +0 -6
- package/dist/components/post-megadropdown2.js +0 -67
- package/dist/components/post-menu-item.d.ts +0 -11
- package/dist/components/post-menu-item.js +0 -6
- package/dist/components/post-menu-item2.js +0 -33
- package/dist/components/post-menu-trigger.d.ts +0 -11
- package/dist/components/post-menu-trigger.js +0 -6
- package/dist/components/post-menu-trigger2.js +0 -92
- package/dist/components/post-menu.js +0 -6
- package/dist/components/post-menu2.js +0 -201
- package/dist/components/post-togglebutton.d.ts +0 -11
- package/dist/components/post-togglebutton.js +0 -6
- package/dist/components/post-togglebutton2.js +0 -43
- package/dist/esm/attribute-observer-37fa950a.js +0 -25
- package/dist/esm/get-root-7af2e0d1.js +0 -9
- package/dist/esm/package-9cafe148.js +0 -3
- package/dist/esm/post-accordion-item-33bbe4de.js +0 -60
- package/dist/esm/post-avatar-d15a9f9e.js +0 -146
- package/dist/esm/post-avatar.entry.js +0 -5
- package/dist/esm/post-back-to-top-bcf46150.js +0 -96
- package/dist/esm/post-back-to-top.entry.js +0 -6
- package/dist/esm/post-banner-bf5e6a18.js +0 -88
- package/dist/esm/post-breadcrumb-item-e3b41f74.js +0 -47
- package/dist/esm/post-breadcrumb-item.entry.js +0 -7
- package/dist/esm/post-card-control-f0788f6f.js +0 -270
- package/dist/esm/post-closebutton_10.entry.js +0 -8
- package/dist/esm/post-language-option-1436370d.js +0 -66
- package/dist/esm/post-language-option.entry.js +0 -7
- package/dist/esm/post-menu-e853e28b.js +0 -174
- package/dist/esm/post-menu-item-86d4c7ab.js +0 -18
- package/dist/esm/post-menu-item.entry.js +0 -3
- package/dist/esm/post-menu-trigger-80c2bdf4.js +0 -73
- package/dist/esm/post-menu-trigger.entry.js +0 -5
- package/dist/esm/post-menu.entry.js +0 -3
- package/dist/esm/post-popover-7195d05a.js +0 -102
- package/dist/esm/post-rating-8baf86fe.js +0 -86
- package/dist/esm/post-tab-header-a1d1d9d0.js +0 -30
- package/dist/esm/post-tag-d67b6a19.js +0 -45
- package/dist/esm/post-togglebutton-c3fb912d.js +0 -26
- package/dist/esm/post-togglebutton.entry.js +0 -3
- package/dist/post-components/p-00fa0152.js +0 -1
- package/dist/post-components/p-1667387e.entry.js +0 -1
- package/dist/post-components/p-19551c18.entry.js +0 -1
- package/dist/post-components/p-1b627f80.js +0 -1
- package/dist/post-components/p-24673919.js +0 -1
- package/dist/post-components/p-266b734f.entry.js +0 -1
- package/dist/post-components/p-282115c4.js +0 -1
- package/dist/post-components/p-2d0ffc1e.entry.js +0 -1
- package/dist/post-components/p-45018d7e.entry.js +0 -1
- package/dist/post-components/p-485dafcf.js +0 -1
- package/dist/post-components/p-4a647a78.js +0 -1
- package/dist/post-components/p-4abfa65b.js +0 -1
- package/dist/post-components/p-517f2b1f.entry.js +0 -1
- package/dist/post-components/p-55224ee7.entry.js +0 -1
- package/dist/post-components/p-558a9849.js +0 -1
- package/dist/post-components/p-59b31557.js +0 -1
- package/dist/post-components/p-5d1db85c.entry.js +0 -1
- package/dist/post-components/p-61e79941.js +0 -1
- package/dist/post-components/p-679978de.entry.js +0 -1
- package/dist/post-components/p-6a842b96.entry.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-6cea23cd.js +0 -15
- package/dist/post-components/p-71f03424.js +0 -1
- package/dist/post-components/p-8c2568c1.entry.js +0 -1
- package/dist/post-components/p-8fd3a3cb.entry.js +0 -1
- package/dist/post-components/p-939f2ba7.js +0 -1
- package/dist/post-components/p-a4c39296.entry.js +0 -1
- package/dist/post-components/p-af5d3b89.entry.js +0 -1
- package/dist/post-components/p-b4423249.entry.js +0 -1
- package/dist/post-components/p-c31a7d65.entry.js +0 -1
- package/dist/post-components/p-c544bb82.js +0 -1
- package/dist/post-components/p-ccb6dfa1.js +0 -1
- package/dist/post-components/p-d0b8820a.js +0 -1
- package/dist/post-components/p-d36adfb5.js +0 -1
- package/dist/post-components/p-da6a8268.entry.js +0 -1
- package/dist/post-components/p-ece14d88.js +0 -1
- package/dist/post-components/p-f0f8427e.js +0 -1
- package/dist/post-components/p-f2e1b4d8.js +0 -1
- package/dist/post-components/p-f627744e.js +0 -1
- package/dist/post-components/p-f7b6b96a.entry.js +0 -1
- package/dist/post-components/p-f812e93d.entry.js +0 -1
- package/dist/post-components/p-f8d41c32.js +0 -1
- package/dist/post-components/p-fc91cbc2.js +0 -1
- package/dist/post-components/p-fe516cdf.entry.js +0 -1
- package/dist/post-components/p-fe7467fb.entry.js +0 -1
- package/dist/types/animations/slide.d.ts +0 -2
- package/dist/types/components/post-avatar/post-avatar.d.ts +0 -51
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -19
- package/dist/types/components/post-banner/banner-types.d.ts +0 -2
- package/dist/types/components/post-banner/post-banner.d.ts +0 -49
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -15
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
- package/dist/types/components/post-header/post-header.d.ts +0 -16
- package/dist/types/components/post-language-option/post-language-option.d.ts +0 -40
- package/dist/types/components/post-list/post-list.d.ts +0 -24
- package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -10
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -23
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -10
- package/dist/types/components/post-menu/post-menu.d.ts +0 -47
- package/dist/types/components/post-menu-item/post-menu-item.d.ts +0 -4
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -27
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -13
- package/dist/types/utils/is-focusable.d.ts +0 -1
- package/loaders/attribute-observer.js +0 -25
- package/loaders/get-root.js +0 -9
- package/loaders/post-avatar.js +0 -176
- package/loaders/post-back-to-top.d.ts +0 -11
- package/loaders/post-back-to-top.js +0 -126
- package/loaders/post-banner.d.ts +0 -11
- package/loaders/post-banner.js +0 -128
- package/loaders/post-breadcrumb-item.d.ts +0 -11
- package/loaders/post-breadcrumb-item.js +0 -75
- package/loaders/post-closebutton.d.ts +0 -11
- package/loaders/post-closebutton.js +0 -37
- package/loaders/post-header.d.ts +0 -11
- package/loaders/post-header.js +0 -238
- package/loaders/post-language-option.d.ts +0 -11
- package/loaders/post-language-option.js +0 -95
- package/loaders/post-list-item.d.ts +0 -11
- package/loaders/post-list-item.js +0 -38
- package/loaders/post-list.d.ts +0 -11
- package/loaders/post-list.js +0 -56
- package/loaders/post-mainnavigation.d.ts +0 -11
- package/loaders/post-mainnavigation.js +0 -51
- package/loaders/post-megadropdown-trigger.d.ts +0 -11
- package/loaders/post-megadropdown-trigger.js +0 -42
- package/loaders/post-megadropdown.d.ts +0 -11
- package/loaders/post-megadropdown.js +0 -70
- package/loaders/post-menu-item.d.ts +0 -11
- package/loaders/post-menu-item.js +0 -36
- package/loaders/post-menu-trigger.d.ts +0 -11
- package/loaders/post-menu-trigger.js +0 -95
- package/loaders/post-menu.js +0 -204
- package/loaders/post-togglebutton.d.ts +0 -11
- package/loaders/post-togglebutton.js +0 -46
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { Host, h, } from "@stencil/core";
|
|
2
|
-
import { checkEmptyOrType, checkType } from "../../utils/index";
|
|
3
|
-
import { version } from "../../../../package";
|
|
4
|
-
/**
|
|
5
|
-
* @slot default - Slot for placing the content inside the anchor or button.
|
|
6
|
-
*/
|
|
7
|
-
export class PostLanguageOption {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.code = undefined;
|
|
10
|
-
this.active = undefined;
|
|
11
|
-
this.name = undefined;
|
|
12
|
-
this.url = undefined;
|
|
13
|
-
}
|
|
14
|
-
validateCode(value = this.code) {
|
|
15
|
-
checkType(value, 'string', 'The "code" property of the post-language-option component must be a string.');
|
|
16
|
-
}
|
|
17
|
-
validateActiveProp(value = this.active) {
|
|
18
|
-
checkEmptyOrType(value, 'boolean', 'The "active" property of the post-language-option component must be a boolean value.');
|
|
19
|
-
}
|
|
20
|
-
validateName(value = this.name) {
|
|
21
|
-
checkEmptyOrType(value, 'string', 'The "name" property of the post-language-option component must be a string.');
|
|
22
|
-
}
|
|
23
|
-
validateUrl(value = this.url) {
|
|
24
|
-
checkEmptyOrType(value, 'string', 'The "url" property of the post-language-option component must be a valid URL.');
|
|
25
|
-
}
|
|
26
|
-
componentDidLoad() {
|
|
27
|
-
this.validateCode();
|
|
28
|
-
this.validateActiveProp();
|
|
29
|
-
this.validateName();
|
|
30
|
-
this.validateUrl();
|
|
31
|
-
if (!this.name && this.isNameRequired()) {
|
|
32
|
-
throw new Error('The "name" property of the post-language-option component is required when the full language name is not displayed.');
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Selects the language option programmatically.
|
|
37
|
-
*/
|
|
38
|
-
async select() {
|
|
39
|
-
this.active = true;
|
|
40
|
-
this.emitChange();
|
|
41
|
-
}
|
|
42
|
-
emitChange() {
|
|
43
|
-
this.postChange.emit(this.code);
|
|
44
|
-
}
|
|
45
|
-
isNameRequired() {
|
|
46
|
-
return this.host.textContent.toLowerCase() === this.code.toLowerCase();
|
|
47
|
-
}
|
|
48
|
-
render() {
|
|
49
|
-
const lang = this.code.toLowerCase();
|
|
50
|
-
return (h(Host, { key: '0a80e062fecb20c7277b89f49a4d774fda80a18e', "data-version": version, role: "listitem" }, this.url ? (h("a", { "aria-current": this.active ? 'page' : undefined, "aria-label": this.name, href: this.url, hrefLang: lang, lang: lang, onClick: () => this.emitChange() }, h("slot", null))) : (h("button", { "aria-current": this.active ? 'true' : undefined, "aria-label": this.name, lang: lang, onClick: () => this.emitChange() }, h("slot", null)))));
|
|
51
|
-
}
|
|
52
|
-
static get is() { return "post-language-option"; }
|
|
53
|
-
static get encapsulation() { return "shadow"; }
|
|
54
|
-
static get originalStyleUrls() {
|
|
55
|
-
return {
|
|
56
|
-
"$": ["post-language-option.scss"]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
static get styleUrls() {
|
|
60
|
-
return {
|
|
61
|
-
"$": ["post-language-option.css"]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
static get properties() {
|
|
65
|
-
return {
|
|
66
|
-
"code": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"mutable": false,
|
|
69
|
-
"complexType": {
|
|
70
|
-
"original": "string",
|
|
71
|
-
"resolved": "string",
|
|
72
|
-
"references": {}
|
|
73
|
-
},
|
|
74
|
-
"required": true,
|
|
75
|
-
"optional": false,
|
|
76
|
-
"docs": {
|
|
77
|
-
"tags": [],
|
|
78
|
-
"text": "The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, \"de\"."
|
|
79
|
-
},
|
|
80
|
-
"attribute": "code",
|
|
81
|
-
"reflect": false
|
|
82
|
-
},
|
|
83
|
-
"active": {
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"mutable": true,
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "boolean",
|
|
88
|
-
"resolved": "boolean",
|
|
89
|
-
"references": {}
|
|
90
|
-
},
|
|
91
|
-
"required": false,
|
|
92
|
-
"optional": false,
|
|
93
|
-
"docs": {
|
|
94
|
-
"tags": [],
|
|
95
|
-
"text": "If set to `true`, the language option is considered the current language for the page."
|
|
96
|
-
},
|
|
97
|
-
"attribute": "active",
|
|
98
|
-
"reflect": true
|
|
99
|
-
},
|
|
100
|
-
"name": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"mutable": false,
|
|
103
|
-
"complexType": {
|
|
104
|
-
"original": "string",
|
|
105
|
-
"resolved": "string",
|
|
106
|
-
"references": {}
|
|
107
|
-
},
|
|
108
|
-
"required": false,
|
|
109
|
-
"optional": false,
|
|
110
|
-
"docs": {
|
|
111
|
-
"tags": [],
|
|
112
|
-
"text": "The full name of the language. For example, \"Deutsch\"."
|
|
113
|
-
},
|
|
114
|
-
"attribute": "name",
|
|
115
|
-
"reflect": false
|
|
116
|
-
},
|
|
117
|
-
"url": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"mutable": false,
|
|
120
|
-
"complexType": {
|
|
121
|
-
"original": "string",
|
|
122
|
-
"resolved": "string",
|
|
123
|
-
"references": {}
|
|
124
|
-
},
|
|
125
|
-
"required": false,
|
|
126
|
-
"optional": false,
|
|
127
|
-
"docs": {
|
|
128
|
-
"tags": [],
|
|
129
|
-
"text": "The URL used for the href attribute of the internal anchor.\nThis field is optional; if not provided, a button will be used internally instead of an anchor."
|
|
130
|
-
},
|
|
131
|
-
"attribute": "url",
|
|
132
|
-
"reflect": false
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
}
|
|
136
|
-
static get events() {
|
|
137
|
-
return [{
|
|
138
|
-
"method": "postChange",
|
|
139
|
-
"name": "postChange",
|
|
140
|
-
"bubbles": true,
|
|
141
|
-
"cancelable": true,
|
|
142
|
-
"composed": true,
|
|
143
|
-
"docs": {
|
|
144
|
-
"tags": [],
|
|
145
|
-
"text": "An event emitted when the language option is clicked. The payload is the ISO 639 code of the language."
|
|
146
|
-
},
|
|
147
|
-
"complexType": {
|
|
148
|
-
"original": "string",
|
|
149
|
-
"resolved": "string",
|
|
150
|
-
"references": {}
|
|
151
|
-
}
|
|
152
|
-
}];
|
|
153
|
-
}
|
|
154
|
-
static get methods() {
|
|
155
|
-
return {
|
|
156
|
-
"select": {
|
|
157
|
-
"complexType": {
|
|
158
|
-
"signature": "() => Promise<void>",
|
|
159
|
-
"parameters": [],
|
|
160
|
-
"references": {
|
|
161
|
-
"Promise": {
|
|
162
|
-
"location": "global",
|
|
163
|
-
"id": "global::Promise"
|
|
164
|
-
}
|
|
165
|
-
},
|
|
166
|
-
"return": "Promise<void>"
|
|
167
|
-
},
|
|
168
|
-
"docs": {
|
|
169
|
-
"text": "Selects the language option programmatically.",
|
|
170
|
-
"tags": []
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
static get elementRef() { return "host"; }
|
|
176
|
-
static get watchers() {
|
|
177
|
-
return [{
|
|
178
|
-
"propName": "code",
|
|
179
|
-
"methodName": "validateCode"
|
|
180
|
-
}, {
|
|
181
|
-
"propName": "active",
|
|
182
|
-
"methodName": "validateActiveProp"
|
|
183
|
-
}, {
|
|
184
|
-
"propName": "name",
|
|
185
|
-
"methodName": "validateName"
|
|
186
|
-
}, {
|
|
187
|
-
"propName": "url",
|
|
188
|
-
"methodName": "validateUrl"
|
|
189
|
-
}];
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright 2021 by Swiss Post, Information Technology
|
|
3
|
-
*/post-list{display:flex;gap:var(--post-list-title-gap);flex-direction:column;align-items:flex-start}post-list>div[role=list]{flex-direction:column;display:flex;gap:var(--post-list-item-gap)}post-list[horizontal]:not([horizontal=false]){flex-direction:row;align-items:baseline}post-list[horizontal]:not([horizontal=false])>div[role=list]{flex-direction:row;align-items:center}post-list>.list-title.visually-hidden{width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}post-list>.list-title.visually-hidden:not(caption){position:absolute !important}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { version } from "../../../../package";
|
|
3
|
-
/**
|
|
4
|
-
* @slot default - Slot for placing the list title.
|
|
5
|
-
* @slot post-list-item - Slot for placing post-list-item components.
|
|
6
|
-
*/
|
|
7
|
-
export class PostList {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.titleId = undefined;
|
|
10
|
-
this.titleHidden = false;
|
|
11
|
-
this.horizontal = false;
|
|
12
|
-
}
|
|
13
|
-
componentWillLoad() {
|
|
14
|
-
/**
|
|
15
|
-
* Get the id set on the host element or use a random id by default
|
|
16
|
-
*/
|
|
17
|
-
this.titleId = `list-${crypto.randomUUID()}`;
|
|
18
|
-
}
|
|
19
|
-
componentDidLoad() {
|
|
20
|
-
this.checkTitle();
|
|
21
|
-
}
|
|
22
|
-
checkTitle() {
|
|
23
|
-
if (!this.titleEl.textContent.trim()) {
|
|
24
|
-
throw new Error('Please provide a title to the list component. Title is mandatory for accessibility purposes.');
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
render() {
|
|
28
|
-
return (h(Host, { key: '017f05c43fa95bb93c856bbeddd5d26cbc2f4cfa', "data-version": version }, h("div", { key: '71fd7d32c761cecf7b4d5d5f39cedb3bf668a0cb', ref: el => (this.titleEl = el), id: this.titleId, class: `list-title${this.titleHidden ? ' visually-hidden' : ''}` }, h("slot", { key: 'fe0e03d5d25f6a975e04be00549facae49a0970b' })), h("div", { key: 'bb717e4338396c86fa28dbf8236f5f185823f9be', role: "list", "aria-labelledby": this.titleId }, h("slot", { key: '7fd25cab433f5fbbafaa7ca01f42774823cbf579', name: "post-list-item" }))));
|
|
29
|
-
}
|
|
30
|
-
static get is() { return "post-list"; }
|
|
31
|
-
static get originalStyleUrls() {
|
|
32
|
-
return {
|
|
33
|
-
"$": ["post-list.scss"]
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
static get styleUrls() {
|
|
37
|
-
return {
|
|
38
|
-
"$": ["post-list.css"]
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
static get properties() {
|
|
42
|
-
return {
|
|
43
|
-
"titleHidden": {
|
|
44
|
-
"type": "boolean",
|
|
45
|
-
"mutable": false,
|
|
46
|
-
"complexType": {
|
|
47
|
-
"original": "boolean",
|
|
48
|
-
"resolved": "boolean",
|
|
49
|
-
"references": {}
|
|
50
|
-
},
|
|
51
|
-
"required": false,
|
|
52
|
-
"optional": false,
|
|
53
|
-
"docs": {
|
|
54
|
-
"tags": [],
|
|
55
|
-
"text": "If `true`, the list title will be hidden. Otherwise, it will be displayed.`"
|
|
56
|
-
},
|
|
57
|
-
"attribute": "title-hidden",
|
|
58
|
-
"reflect": false,
|
|
59
|
-
"defaultValue": "false"
|
|
60
|
-
},
|
|
61
|
-
"horizontal": {
|
|
62
|
-
"type": "boolean",
|
|
63
|
-
"mutable": false,
|
|
64
|
-
"complexType": {
|
|
65
|
-
"original": "boolean",
|
|
66
|
-
"resolved": "boolean",
|
|
67
|
-
"references": {}
|
|
68
|
-
},
|
|
69
|
-
"required": false,
|
|
70
|
-
"optional": false,
|
|
71
|
-
"docs": {
|
|
72
|
-
"tags": [],
|
|
73
|
-
"text": "The list can become horizontal by setting `horizontal=\"true\"` or just `horizontal`"
|
|
74
|
-
},
|
|
75
|
-
"attribute": "horizontal",
|
|
76
|
-
"reflect": false,
|
|
77
|
-
"defaultValue": "false"
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
static get states() {
|
|
82
|
-
return {
|
|
83
|
-
"titleId": {}
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
static get elementRef() { return "host"; }
|
|
87
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:host{display:flex}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
/**
|
|
3
|
-
* @slot default- Slot for placing the content of the list item.
|
|
4
|
-
*/
|
|
5
|
-
export class PostListItem {
|
|
6
|
-
connectedCallback() {
|
|
7
|
-
this.host.setAttribute('slot', 'post-list-item');
|
|
8
|
-
}
|
|
9
|
-
render() {
|
|
10
|
-
return (h(Host, { key: 'bbf12424f2997b7d2e7cd9e272def0bf2838f94f', role: "listitem" }, h("slot", { key: '2ce4e71879485f16ad90dfddbd1b79512107bdb0' })));
|
|
11
|
-
}
|
|
12
|
-
static get is() { return "post-list-item"; }
|
|
13
|
-
static get encapsulation() { return "shadow"; }
|
|
14
|
-
static get originalStyleUrls() {
|
|
15
|
-
return {
|
|
16
|
-
"$": ["post-list-item.scss"]
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
static get styleUrls() {
|
|
20
|
-
return {
|
|
21
|
-
"$": ["post-list-item.css"]
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
static get elementRef() { return "host"; }
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,::before,::after{box-sizing:border-box}@media screen and (min-width: 1024px){slot[name=back-button],[slot=back-button]{display:none}}@media screen and (min-width: 1024px){h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}}post-mainnavigation{height:100%}:host{height:100%;display:block}.main-navigation{margin-block:0;list-style:none;display:flex;padding-left:0;gap:1rem}@media screen and (max-width: 1023.99px){.main-navigation{flex-direction:column}}.main-navigation>post-list{display:flex;align-items:stretch;gap:1rem;height:100%}@media screen and (max-width: 1023.99px){.main-navigation>post-list{flex-direction:column}}.main-navigation a,.main-navigation post-megadropdown-toggle{height:100%;display:flex;align-items:center}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class PostMainnavigation {
|
|
3
|
-
handleMegadropdownToggled(event) {
|
|
4
|
-
// Find next element sibling
|
|
5
|
-
let megalodon;
|
|
6
|
-
let target = event.target;
|
|
7
|
-
while (target !== null) {
|
|
8
|
-
if (target.tagName === 'POST-MEGADROPDOWN') {
|
|
9
|
-
megalodon = target;
|
|
10
|
-
break;
|
|
11
|
-
}
|
|
12
|
-
target = target.nextElementSibling;
|
|
13
|
-
}
|
|
14
|
-
if (megalodon)
|
|
15
|
-
megalodon.toggle(event.target);
|
|
16
|
-
}
|
|
17
|
-
handleBackButtonClick() {
|
|
18
|
-
this.postToggle.emit();
|
|
19
|
-
}
|
|
20
|
-
render() {
|
|
21
|
-
return (h(Host, { key: '7179d087e93ab9e14dc21e16b52beaf965c53cd3', slot: "post-mainnavigation" }, h("div", { key: '2aede886c29972bf1dfebbe4513c4acf2e47c6ea', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '4697ec520be78fccee832a358b349f68081b2f54', name: "back-button" })), h("nav", { key: '5bae57025152af07b9d68a19a07b61d0149d31dc', class: "main-navigation" }, h("slot", { key: 'e2a73a4b814a39a7cb1f7733f87c3c588f484006' }))));
|
|
22
|
-
}
|
|
23
|
-
static get is() { return "post-mainnavigation"; }
|
|
24
|
-
static get originalStyleUrls() {
|
|
25
|
-
return {
|
|
26
|
-
"$": ["./post-mainnavigation.scss"]
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
static get styleUrls() {
|
|
30
|
-
return {
|
|
31
|
-
"$": ["post-mainnavigation.css"]
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
static get events() {
|
|
35
|
-
return [{
|
|
36
|
-
"method": "postToggle",
|
|
37
|
-
"name": "postToggle",
|
|
38
|
-
"bubbles": true,
|
|
39
|
-
"cancelable": true,
|
|
40
|
-
"composed": true,
|
|
41
|
-
"docs": {
|
|
42
|
-
"tags": [],
|
|
43
|
-
"text": "Gets emitted when a user closes the main navigation on mobile"
|
|
44
|
-
},
|
|
45
|
-
"complexType": {
|
|
46
|
-
"original": "any",
|
|
47
|
-
"resolved": "any",
|
|
48
|
-
"references": {}
|
|
49
|
-
}
|
|
50
|
-
}];
|
|
51
|
-
}
|
|
52
|
-
static get listeners() {
|
|
53
|
-
return [{
|
|
54
|
-
"name": "postToggle",
|
|
55
|
-
"method": "handleMegadropdownToggled",
|
|
56
|
-
"target": undefined,
|
|
57
|
-
"capture": false,
|
|
58
|
-
"passive": false
|
|
59
|
-
}];
|
|
60
|
-
}
|
|
61
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,::before,::after{box-sizing:border-box}post-popovercontainer{background-color:#fafafa;width:100%;border-bottom:1px solid #000}@media screen and (max-width: 1023.99px){post-popovercontainer{position:absolute;top:var(--header-height) !important;bottom:0;left:0;width:100%;height:auto}}.megadropdown{display:flex;gap:1rem;padding:1.5rem;border-radius:0 0 3px 3px}@media screen and (max-width: 1023.99px){.megadropdown{flex-direction:column}}.megadropdown post-list{display:flex;flex-direction:column;gap:.5rem}.megadropdown post-list-item{border-bottom:1px solid gray}.megadropdown post-list-item>a{padding-block:.25rem;display:block;text-decoration:none}.back-button{display:none}@media screen and (max-width: 1023.99px){.back-button{display:block}}post-closebutton{margin-left:auto}@media screen and (max-width: 1023.99px){post-closebutton{display:none}}h3{font-size:20px}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class PostMegadropdown {
|
|
3
|
-
/**
|
|
4
|
-
* Show megadropdown
|
|
5
|
-
* @param element HTMLElement
|
|
6
|
-
* @returns boolean
|
|
7
|
-
*/
|
|
8
|
-
async show(element) {
|
|
9
|
-
return this.popoverRef.show(element);
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Hide megadropdown
|
|
13
|
-
* @returns boolean
|
|
14
|
-
*/
|
|
15
|
-
async hide() {
|
|
16
|
-
return this.popoverRef.hide();
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Toggle megadropdown
|
|
20
|
-
* @param element HTMLElement
|
|
21
|
-
* @param force boolean
|
|
22
|
-
* @returns boolean
|
|
23
|
-
*/
|
|
24
|
-
async toggle(element, force) {
|
|
25
|
-
return this.popoverRef.toggle(element, force !== null && force !== void 0 ? force : undefined);
|
|
26
|
-
}
|
|
27
|
-
handleBackButtonClick() {
|
|
28
|
-
this.hide();
|
|
29
|
-
}
|
|
30
|
-
render() {
|
|
31
|
-
return (h(Host, { key: '9b8e17f4120259f55ed3dbce4780559cb8876540', slot: "post-mainnavigation" }, h("post-popovercontainer", { key: 'ac48d1fffbcdff5aa20d9f2f6fed9beb4dd3be23', placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, h("div", { key: 'af02d9fd35973b6d889b639f1d856dd3d9921ae1', class: "megadropdown" }, h("div", { key: '445aa9b1a04e63c0d2b17466c610a30662f3db0e', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '8d8f4cad3d5860fdfc1c615e7122ab5dd2ca5ed3', name: "back-button" })), h("slot", { key: 'c9ba8c0941f86fd29a44153e186cd679bcd678f5' })))));
|
|
32
|
-
}
|
|
33
|
-
static get is() { return "post-megadropdown"; }
|
|
34
|
-
static get originalStyleUrls() {
|
|
35
|
-
return {
|
|
36
|
-
"$": ["./post-megadropdown.scss"]
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
static get styleUrls() {
|
|
40
|
-
return {
|
|
41
|
-
"$": ["post-megadropdown.css"]
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
static get methods() {
|
|
45
|
-
return {
|
|
46
|
-
"show": {
|
|
47
|
-
"complexType": {
|
|
48
|
-
"signature": "(element: HTMLElement) => Promise<void>",
|
|
49
|
-
"parameters": [{
|
|
50
|
-
"name": "element",
|
|
51
|
-
"type": "HTMLElement",
|
|
52
|
-
"docs": "HTMLElement"
|
|
53
|
-
}],
|
|
54
|
-
"references": {
|
|
55
|
-
"Promise": {
|
|
56
|
-
"location": "global",
|
|
57
|
-
"id": "global::Promise"
|
|
58
|
-
},
|
|
59
|
-
"HTMLElement": {
|
|
60
|
-
"location": "global",
|
|
61
|
-
"id": "global::HTMLElement"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
"return": "Promise<void>"
|
|
65
|
-
},
|
|
66
|
-
"docs": {
|
|
67
|
-
"text": "Show megadropdown",
|
|
68
|
-
"tags": [{
|
|
69
|
-
"name": "param",
|
|
70
|
-
"text": "element HTMLElement"
|
|
71
|
-
}, {
|
|
72
|
-
"name": "returns",
|
|
73
|
-
"text": "boolean"
|
|
74
|
-
}]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"hide": {
|
|
78
|
-
"complexType": {
|
|
79
|
-
"signature": "() => Promise<void>",
|
|
80
|
-
"parameters": [],
|
|
81
|
-
"references": {
|
|
82
|
-
"Promise": {
|
|
83
|
-
"location": "global",
|
|
84
|
-
"id": "global::Promise"
|
|
85
|
-
}
|
|
86
|
-
},
|
|
87
|
-
"return": "Promise<void>"
|
|
88
|
-
},
|
|
89
|
-
"docs": {
|
|
90
|
-
"text": "Hide megadropdown",
|
|
91
|
-
"tags": [{
|
|
92
|
-
"name": "returns",
|
|
93
|
-
"text": "boolean"
|
|
94
|
-
}]
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"toggle": {
|
|
98
|
-
"complexType": {
|
|
99
|
-
"signature": "(element: HTMLElement, force?: boolean) => Promise<boolean>",
|
|
100
|
-
"parameters": [{
|
|
101
|
-
"name": "element",
|
|
102
|
-
"type": "HTMLElement",
|
|
103
|
-
"docs": "HTMLElement"
|
|
104
|
-
}, {
|
|
105
|
-
"name": "force",
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"docs": "boolean"
|
|
108
|
-
}],
|
|
109
|
-
"references": {
|
|
110
|
-
"Promise": {
|
|
111
|
-
"location": "global",
|
|
112
|
-
"id": "global::Promise"
|
|
113
|
-
},
|
|
114
|
-
"HTMLElement": {
|
|
115
|
-
"location": "global",
|
|
116
|
-
"id": "global::HTMLElement"
|
|
117
|
-
}
|
|
118
|
-
},
|
|
119
|
-
"return": "Promise<boolean>"
|
|
120
|
-
},
|
|
121
|
-
"docs": {
|
|
122
|
-
"text": "Toggle megadropdown",
|
|
123
|
-
"tags": [{
|
|
124
|
-
"name": "param",
|
|
125
|
-
"text": "element HTMLElement"
|
|
126
|
-
}, {
|
|
127
|
-
"name": "param",
|
|
128
|
-
"text": "force boolean"
|
|
129
|
-
}, {
|
|
130
|
-
"name": "returns",
|
|
131
|
-
"text": "boolean"
|
|
132
|
-
}]
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:host{display:inline-block}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class PostMegadropdownTrigger {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.toggled = false;
|
|
5
|
-
}
|
|
6
|
-
handleClick() {
|
|
7
|
-
this.toggled = !this.toggled;
|
|
8
|
-
this.postToggle.emit();
|
|
9
|
-
}
|
|
10
|
-
render() {
|
|
11
|
-
return (h(Host, { key: 'd139b405fe28c7334c01eec4846a6f8b5bf1e261', slot: "post-megadropdown-trigger" }, h("button", { key: 'd3aee53488359a79764974d440d7a058d5d96873', "aria-expanded": this.toggled, onClick: () => this.handleClick() }, h("slot", { key: '7012055defbb7c8058481db5c4129919847010c6' }))));
|
|
12
|
-
}
|
|
13
|
-
static get is() { return "post-megadropdown-trigger"; }
|
|
14
|
-
static get encapsulation() { return "shadow"; }
|
|
15
|
-
static get originalStyleUrls() {
|
|
16
|
-
return {
|
|
17
|
-
"$": ["./post-megadropdown-trigger.scss"]
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
static get styleUrls() {
|
|
21
|
-
return {
|
|
22
|
-
"$": ["post-megadropdown-trigger.css"]
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
static get states() {
|
|
26
|
-
return {
|
|
27
|
-
"toggled": {}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
static get events() {
|
|
31
|
-
return [{
|
|
32
|
-
"method": "postToggle",
|
|
33
|
-
"name": "postToggle",
|
|
34
|
-
"bubbles": true,
|
|
35
|
-
"cancelable": true,
|
|
36
|
-
"composed": true,
|
|
37
|
-
"docs": {
|
|
38
|
-
"tags": [],
|
|
39
|
-
"text": "Emits after each toggle"
|
|
40
|
-
},
|
|
41
|
-
"complexType": {
|
|
42
|
-
"original": "any",
|
|
43
|
-
"resolved": "any",
|
|
44
|
-
"references": {}
|
|
45
|
-
}
|
|
46
|
-
}];
|
|
47
|
-
}
|
|
48
|
-
}
|