@swisspost/design-system-components 9.0.0-next.9 → 9.0.1
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-5d4e0aed.js → index-824d2b71.js} +12 -2
- package/dist/cjs/{index-010dc207.js → index-e1f32cce.js} +17 -30
- package/dist/cjs/index.cjs.js +26 -50
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-8e810a59.js → package-93f142ae.js} +1 -1
- package/dist/cjs/{post-accordion-b9df8522.js → post-accordion-60af96cf.js} +3 -3
- package/dist/cjs/post-accordion-item-744c881d.js +52 -0
- package/dist/cjs/post-accordion-item.cjs.entry.js +4 -5
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/post-alert-2a768f58.js +99 -0
- package/dist/cjs/{post-banner.cjs.entry.js → post-alert.cjs.entry.js} +5 -6
- package/dist/cjs/post-card-control-197c8e44.js +272 -0
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-143cf84a.js → post-collapsible-trigger-3de8fe4e.js} +24 -11
- package/dist/cjs/post-collapsible_2.cjs.entry.js +4 -7
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-icon-df629079.js +139 -0
- package/dist/cjs/post-icon.cjs.entry.js +16 -0
- package/dist/cjs/post-logo-7caeb918.js +39 -0
- package/dist/cjs/post-logo.cjs.entry.js +15 -0
- package/dist/cjs/post-popover-090c3d01.js +131 -0
- package/dist/cjs/post-popover.cjs.entry.js +3 -4
- package/dist/cjs/{post-togglebutton-0984a694.js → post-popovercontainer-872681bf.js} +148 -1106
- package/dist/cjs/post-popovercontainer.cjs.entry.js +11 -0
- package/dist/cjs/post-rating-21f9c46d.js +88 -0
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/post-tab-header-422d0f03.js +32 -0
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-60f211a5.js → post-tab-panel-dd58f425.js} +3 -3
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-1f797ce4.js → post-tabs-83191b9a.js} +5 -5
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/post-tag-c72183f2.js +47 -0
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/post-tooltip-782f020b.js +69 -0
- package/dist/cjs/{post-tooltip-38c839a4.js → post-tooltip-trigger-b2aeb636.js} +507 -557
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +12 -0
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -8
- package/dist/collection/collection-manifest.json +4 -21
- 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 +10 -24
- 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 +2 -2
- 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 +3 -20
- package/dist/components/index.js +3 -20
- package/dist/components/index2.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +12 -30
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/{post-list.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 +17 -2
- package/dist/components/post-collapsible2.js +3 -5
- package/dist/components/post-icon2.js +54 -15
- package/dist/components/post-logo2.js +1 -1
- 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 +3 -3
- package/dist/components/post-tag2.js +2 -2
- package/dist/components/{post-breadcrumb-item.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 +401 -1776
- package/dist/esm/{index-b49c9904.js → index-69587a51.js} +12 -2
- package/dist/esm/{index-fb8d6be7.js → index-e1b64755.js} +17 -30
- package/dist/esm/index.js +20 -27
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-45827c3b.js +3 -0
- package/dist/esm/{post-accordion-ee54a3ef.js → post-accordion-bcfe7e61.js} +3 -3
- package/dist/esm/post-accordion-item-8869c90b.js +50 -0
- package/dist/esm/post-accordion-item.entry.js +4 -5
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/post-alert-21fd0068.js +97 -0
- package/dist/esm/post-alert.entry.js +9 -0
- package/dist/esm/post-card-control-60c132dc.js +270 -0
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-1c7833f8.js → post-collapsible-trigger-3168178e.js} +22 -9
- package/dist/esm/post-collapsible_2.entry.js +4 -7
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-icon-2e2e18ad.js +137 -0
- package/dist/esm/post-icon.entry.js +8 -0
- package/dist/esm/post-logo-f364eb72.js +37 -0
- package/dist/esm/post-logo.entry.js +7 -0
- package/dist/esm/post-popover-697201cd.js +129 -0
- package/dist/esm/post-popover.entry.js +3 -4
- package/dist/esm/{post-togglebutton-395bf3f0.js → post-popovercontainer-2b5f37fb.js} +149 -1093
- package/dist/esm/post-popovercontainer.entry.js +3 -0
- package/dist/esm/post-rating-0fd5de37.js +86 -0
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/post-tab-header-c8898fa2.js +30 -0
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-cafd9e04.js → post-tab-panel-6b1219e0.js} +3 -3
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-beef8eae.js → post-tabs-b8ff3c5d.js} +5 -5
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/post-tag-83470f28.js +45 -0
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/post-tooltip-aa745743.js +67 -0
- package/dist/esm/{post-tooltip-b298039a.js → post-tooltip-trigger-ce0b4106.js} +507 -557
- package/dist/esm/post-tooltip-trigger.entry.js +4 -0
- package/dist/esm/post-tooltip.entry.js +3 -8
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-08dc45bb.entry.js +1 -0
- package/dist/post-components/p-1a48d1b0.js +1 -0
- package/dist/post-components/p-2b61a526.entry.js +1 -0
- package/dist/post-components/{p-c0ae9886.js → p-3eab790d.js} +1 -1
- package/dist/post-components/p-3f5bf5d9.entry.js +1 -0
- package/dist/post-components/p-40e5bb56.entry.js +1 -0
- package/dist/post-components/p-56ca6bb5.js +1 -0
- package/dist/post-components/p-58cbb854.entry.js +1 -0
- package/dist/post-components/p-5c557e64.js +1 -0
- package/dist/post-components/p-5ce2abc9.entry.js +1 -0
- package/dist/post-components/p-5f08d625.js +15 -0
- package/dist/post-components/p-7069ac74.entry.js +1 -0
- package/dist/post-components/p-755b2746.js +1 -0
- package/dist/post-components/p-788e64fb.js +1 -0
- package/dist/post-components/p-799cf60e.js +1 -0
- package/dist/post-components/p-7bbcc8ee.js +1 -0
- package/dist/post-components/p-7cdf9571.entry.js +1 -0
- package/dist/post-components/p-7e4181ce.entry.js +1 -0
- package/dist/post-components/p-9409f729.js +1 -0
- package/dist/post-components/p-a07846ea.js +1 -0
- package/dist/post-components/p-a4560368.js +1 -0
- package/dist/post-components/p-a503cb2c.entry.js +1 -0
- package/dist/post-components/p-b46e2451.js +1 -0
- package/dist/post-components/p-b7207224.js +1 -0
- package/dist/post-components/p-bafc0491.js +1 -0
- package/dist/post-components/p-c078fd94.entry.js +1 -0
- package/dist/post-components/p-c0aebe5e.entry.js +1 -0
- package/dist/post-components/p-c7e4acde.js +1 -0
- package/dist/post-components/p-ca71a3ff.entry.js +1 -0
- package/dist/post-components/p-d582cc10.js +1 -0
- package/dist/post-components/p-e49f57c0.entry.js +1 -0
- package/dist/post-components/p-eb712f9b.entry.js +1 -0
- package/dist/post-components/p-eebd060d.js +1 -0
- package/dist/post-components/p-f7cead60.entry.js +1 -0
- package/dist/post-components/p-ffd75503.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 -7
- 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 -590
- package/dist/types/index.d.ts +3 -20
- package/loaders/index.d.ts +4 -38
- package/loaders/index.js +4 -21
- package/loaders/index2.js +1 -1
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item.js +82 -1
- package/loaders/post-accordion.js +1 -1
- package/loaders/{post-list.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 +17 -2
- 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 +3 -3
- 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 +6 -9
- package/dist/cjs/attribute-observer-10f08c04.js +0 -27
- package/dist/cjs/check-url-3ffdd2fb.js +0 -14
- package/dist/cjs/debounce-1151afe3.js +0 -12
- package/dist/cjs/get-root-7a3498ef.js +0 -11
- package/dist/cjs/post-accordion-item-ecc6749f.js +0 -63
- package/dist/cjs/post-avatar-f7236084.js +0 -148
- package/dist/cjs/post-avatar.cjs.entry.js +0 -13
- package/dist/cjs/post-back-to-top-60762f8e.js +0 -75
- package/dist/cjs/post-back-to-top.cjs.entry.js +0 -15
- package/dist/cjs/post-banner-9662f22c.js +0 -90
- package/dist/cjs/post-breadcrumb-b40732fc.js +0 -111
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +0 -17
- package/dist/cjs/post-breadcrumb.cjs.entry.js +0 -13
- package/dist/cjs/post-card-control-039c9a4b.js +0 -272
- package/dist/cjs/post-closebutton_15.cjs.entry.js +0 -33
- package/dist/cjs/post-footer-5f7fdf96.js +0 -84
- package/dist/cjs/post-footer.cjs.entry.js +0 -11
- package/dist/cjs/post-menu-item-bb0b0b9e.js +0 -74
- package/dist/cjs/post-popover-d0ce9dc6.js +0 -104
- package/dist/cjs/post-rating-1082197c.js +0 -88
- package/dist/cjs/post-tab-header-4b6d8d54.js +0 -32
- package/dist/cjs/post-tag-ddaaaedc.js +0 -47
- package/dist/cjs/slide-5d51abe8.js +0 -28
- 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/post-breadcrumb.css +0 -3
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +0 -161
- 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 -93
- package/dist/collection/components/post-closebutton/post-closebutton.js +0 -12
- package/dist/collection/components/post-footer/post-footer.css +0 -1
- package/dist/collection/components/post-footer/post-footer.js +0 -75
- package/dist/collection/components/post-header/post-header.css +0 -1
- package/dist/collection/components/post-header/post-header.js +0 -160
- 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 -215
- package/dist/collection/components/post-language-switch/post-language-switch.css +0 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +0 -163
- package/dist/collection/components/post-language-switch/switch-variants.js +0 -1
- 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 -52
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +0 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +0 -151
- 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 -104
- package/dist/collection/components/post-menu/post-menu.css +0 -3
- package/dist/collection/components/post-menu/post-menu.js +0 -280
- 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 -114
- package/dist/collection/components/post-togglebutton/post-togglebutton.css +0 -1
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +0 -74
- package/dist/collection/utils/breakpoints.js +0 -46
- package/dist/collection/utils/is-focusable.js +0 -26
- package/dist/components/attribute-observer.js +0 -25
- package/dist/components/debounce.js +0 -10
- 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 -100
- package/dist/components/post-banner.d.ts +0 -11
- package/dist/components/post-banner.js +0 -6
- package/dist/components/post-banner2.js +0 -125
- package/dist/components/post-breadcrumb-item.js +0 -6
- package/dist/components/post-breadcrumb-item2.js +0 -82
- package/dist/components/post-breadcrumb.d.ts +0 -11
- package/dist/components/post-breadcrumb.js +0 -6
- package/dist/components/post-breadcrumb2.js +0 -168
- 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-footer.d.ts +0 -11
- package/dist/components/post-footer.js +0 -6
- package/dist/components/post-footer2.js +0 -124
- package/dist/components/post-header.d.ts +0 -11
- package/dist/components/post-header.js +0 -6
- package/dist/components/post-header2.js +0 -276
- 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 -94
- package/dist/components/post-language-switch.d.ts +0 -11
- package/dist/components/post-language-switch.js +0 -6
- package/dist/components/post-language-switch2.js +0 -146
- 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.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 -91
- package/dist/components/post-megadropdown.d.ts +0 -11
- package/dist/components/post-megadropdown.js +0 -6
- package/dist/components/post-megadropdown2.js +0 -93
- 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 -102
- package/dist/components/post-menu.d.ts +0 -11
- package/dist/components/post-menu.js +0 -6
- package/dist/components/post-menu2.js +0 -203
- package/dist/components/post-togglebutton.d.ts +0 -11
- package/dist/components/post-togglebutton.js +0 -6
- package/dist/components/post-togglebutton2.js +0 -61
- package/dist/components/slide.js +0 -25
- package/dist/esm/attribute-observer-37fa950a.js +0 -25
- package/dist/esm/check-url-a974431e.js +0 -12
- package/dist/esm/debounce-abe98cc2.js +0 -10
- package/dist/esm/get-root-7af2e0d1.js +0 -9
- package/dist/esm/package-4d81f3c2.js +0 -3
- package/dist/esm/post-accordion-item-e10452dc.js +0 -61
- package/dist/esm/post-avatar-5572fa73.js +0 -146
- package/dist/esm/post-avatar.entry.js +0 -5
- package/dist/esm/post-back-to-top-1d823c43.js +0 -73
- package/dist/esm/post-back-to-top.entry.js +0 -7
- package/dist/esm/post-banner-78480475.js +0 -88
- package/dist/esm/post-banner.entry.js +0 -10
- package/dist/esm/post-breadcrumb-aaa77f74.js +0 -109
- package/dist/esm/post-breadcrumb-item_2.entry.js +0 -8
- package/dist/esm/post-breadcrumb.entry.js +0 -5
- package/dist/esm/post-card-control-862aa961.js +0 -270
- package/dist/esm/post-closebutton_15.entry.js +0 -11
- package/dist/esm/post-footer-b18875e7.js +0 -82
- package/dist/esm/post-footer.entry.js +0 -3
- package/dist/esm/post-menu-item-2906384b.js +0 -71
- package/dist/esm/post-popover-2432bb3f.js +0 -102
- package/dist/esm/post-rating-95cbdbb8.js +0 -86
- package/dist/esm/post-tab-header-dfea00ea.js +0 -30
- package/dist/esm/post-tag-a77e7af6.js +0 -45
- package/dist/esm/slide-3422b8a3.js +0 -25
- package/dist/post-components/p-0711f76d.entry.js +0 -1
- package/dist/post-components/p-095a06f6.entry.js +0 -1
- package/dist/post-components/p-0b5a5f32.js +0 -1
- package/dist/post-components/p-135fa60f.js +0 -1
- package/dist/post-components/p-18e38d8a.js +0 -1
- package/dist/post-components/p-2e1ec074.entry.js +0 -1
- package/dist/post-components/p-4202b433.entry.js +0 -1
- package/dist/post-components/p-45773f59.js +0 -1
- package/dist/post-components/p-4953de7e.js +0 -1
- package/dist/post-components/p-4f67c5f5.entry.js +0 -1
- package/dist/post-components/p-4f9746f6.js +0 -15
- package/dist/post-components/p-5075c672.entry.js +0 -1
- package/dist/post-components/p-515e0f96.js +0 -1
- package/dist/post-components/p-5467b223.js +0 -1
- package/dist/post-components/p-67036798.entry.js +0 -1
- package/dist/post-components/p-6adeaa6c.js +0 -1
- package/dist/post-components/p-6d953fb2.js +0 -1
- package/dist/post-components/p-6edb0ac5.js +0 -1
- package/dist/post-components/p-6f8f39ca.js +0 -1
- package/dist/post-components/p-7503a623.js +0 -1
- package/dist/post-components/p-761b24c7.entry.js +0 -1
- package/dist/post-components/p-77c4c1d2.js +0 -1
- package/dist/post-components/p-7cf0c2ad.js +0 -1
- package/dist/post-components/p-856c14d6.entry.js +0 -1
- package/dist/post-components/p-866bf50a.entry.js +0 -1
- package/dist/post-components/p-8d621781.js +0 -1
- package/dist/post-components/p-8fe2d72c.entry.js +0 -1
- package/dist/post-components/p-9ad5088f.entry.js +0 -1
- package/dist/post-components/p-a1d2b90e.js +0 -1
- package/dist/post-components/p-a521419d.entry.js +0 -1
- package/dist/post-components/p-aa538648.js +0 -1
- package/dist/post-components/p-afdbee2f.js +0 -1
- package/dist/post-components/p-b02817f2.entry.js +0 -1
- package/dist/post-components/p-b157dcba.entry.js +0 -1
- package/dist/post-components/p-b22656b1.js +0 -1
- package/dist/post-components/p-bdbd11cb.js +0 -1
- package/dist/post-components/p-c537e196.entry.js +0 -1
- package/dist/post-components/p-d4f93f2b.js +0 -1
- package/dist/post-components/p-dca4246a.entry.js +0 -1
- package/dist/post-components/p-f319b026.js +0 -1
- package/dist/post-components/p-f4b7b379.js +0 -1
- package/dist/post-components/p-fac66087.entry.js +0 -1
- package/dist/post-components/p-fc91cbc2.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/post-breadcrumb.d.ts +0 -30
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -16
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -7
- package/dist/types/components/post-footer/post-footer.d.ts +0 -23
- package/dist/types/components/post-header/post-header.d.ts +0 -24
- package/dist/types/components/post-language-option/post-language-option.d.ts +0 -45
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +0 -31
- package/dist/types/components/post-language-switch/switch-variants.d.ts +0 -2
- package/dist/types/components/post-list/post-list.d.ts +0 -24
- package/dist/types/components/post-list-item/post-list-item.d.ts +0 -8
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -19
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +0 -35
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -25
- package/dist/types/components/post-menu/post-menu.d.ts +0 -48
- 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 -15
- package/dist/types/utils/breakpoints.d.ts +0 -11
- package/dist/types/utils/is-focusable.d.ts +0 -1
- package/loaders/attribute-observer.js +0 -25
- package/loaders/debounce.js +0 -10
- package/loaders/get-root.js +0 -9
- package/loaders/post-accordion-item2.js +0 -102
- 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 -103
- 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 -6
- package/loaders/post-breadcrumb-item2.js +0 -82
- package/loaders/post-breadcrumb.d.ts +0 -11
- package/loaders/post-breadcrumb.js +0 -171
- package/loaders/post-closebutton.d.ts +0 -11
- package/loaders/post-closebutton.js +0 -37
- package/loaders/post-footer.d.ts +0 -11
- package/loaders/post-footer.js +0 -127
- package/loaders/post-header.d.ts +0 -11
- package/loaders/post-header.js +0 -279
- package/loaders/post-language-option.d.ts +0 -11
- package/loaders/post-language-option.js +0 -97
- package/loaders/post-language-switch.d.ts +0 -11
- package/loaders/post-language-switch.js +0 -149
- package/loaders/post-list-item.d.ts +0 -11
- package/loaders/post-list-item.js +0 -38
- 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 -94
- package/loaders/post-megadropdown.d.ts +0 -11
- package/loaders/post-megadropdown.js +0 -96
- package/loaders/post-menu-item.d.ts +0 -11
- package/loaders/post-menu-item.js +0 -6
- package/loaders/post-menu-item2.js +0 -33
- package/loaders/post-menu-trigger.d.ts +0 -11
- package/loaders/post-menu-trigger.js +0 -6
- package/loaders/post-menu-trigger2.js +0 -102
- package/loaders/post-menu.d.ts +0 -11
- package/loaders/post-menu.js +0 -6
- package/loaders/post-menu2.js +0 -203
- package/loaders/post-togglebutton.d.ts +0 -11
- package/loaders/post-togglebutton.js +0 -64
- package/loaders/slide.js +0 -25
|
@@ -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: 'aa9a31c64e3e8ba5dcac1d03b54ab3c886149c1f', role: "listitem", slot: "post-list-item" }, h("slot", { key: '06353140f8917fc5373de6d56708467af2ef52b2' })));
|
|
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
|
-
post-mainnavigation post-list-item>a{text-decoration:none;border-radius:0}post-mainnavigation post-list-item post-megadropdown-trigger button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;text-align:start}post-mainnavigation post-list-item post-megadropdown-trigger button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-mainnavigation post-list-item post-megadropdown-trigger button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{display:flex;align-items:center;justify-content:space-between}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}post-mainnavigation post-list-item>a:focus-visible,post-mainnavigation post-list-item>button:focus-visible,post-mainnavigation post-list-item post-megadropdown-trigger button:focus-visible{border-radius:var(--post-core-dimension-4);z-index:1}@media screen and (min-width: 1024px){post-mainnavigation nav{position:relative;max-width:100vw;max-height:var(--post-core-dimension-56);user-select:none}post-mainnavigation post-list{margin-inline:var(--post-core-dimension-4)}post-mainnavigation post-list>[role=list]{flex-direction:row;max-width:100vw;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline:var(--post-core-dimension-12);height:var(--post-core-dimension-56);gap:var(--post-core-dimension-4);font-size:var(--post-core-font-size-16);border-block:0 solid rgba(0,0,0,0);border-block-end-color:currentColor}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button:hover{border-block-width:var(--post-core-dimension-2)}post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>a[aria-expanded=true],post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item>button[aria-expanded=true],post-mainnavigation post-list-item post-megadropdown-trigger button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]{border-block-width:var(--post-core-dimension-4);font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{padding-inline-end:var(--post-core-dimension-12);transition:border-block-end-color 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button::after,post-mainnavigation post-list-item post-megadropdown-trigger button::after{content:"";-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.6 13.2-7.5 7.6-7.6-7.6.9-.9 6.6 6.6 6.6-6.6z'/%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24);transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}post-mainnavigation post-list-item>button.selected::after,post-mainnavigation post-list-item>button[aria-expanded=true]::after,post-mainnavigation post-list-item post-megadropdown-trigger button.selected::after,post-mainnavigation post-list-item post-megadropdown-trigger button[aria-expanded=true]::after{transform:rotate(180deg)}post-mainnavigation [slot=back-button]{display:none}}@media screen and (max-width: 1023.99px){post-mainnavigation post-list>[role=list]{transform:none !important}post-mainnavigation post-list-item>a,post-mainnavigation post-list-item>button,post-mainnavigation post-list-item post-megadropdown-trigger button{width:100%;height:var(--post-core-dimension-48);padding-inline-end:var(--post-core-dimension-6);gap:var(--post-core-dimension-16);border-block:var(--post-core-dimension-1) solid rgba(0,0,0,0);border-block-end-color:currentColor;font-weight:var(--post-core-font-weight-700)}post-mainnavigation post-list-item>a:hover,post-mainnavigation post-list-item>a.selected,post-mainnavigation post-list-item>button:hover,post-mainnavigation post-list-item>button.selected,post-mainnavigation post-list-item post-megadropdown-trigger button:hover,post-mainnavigation post-list-item post-megadropdown-trigger button.selected{border-block-width:var(--post-core-dimension-3)}post-mainnavigation post-list-item>a:hover::after,post-mainnavigation post-list-item>button:hover::after,post-mainnavigation post-list-item post-megadropdown-trigger button:hover::after{content:"";display:block;-webkit-mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20.667 5.333H18.8L29.467 16H0v1.333h29.467L18.8 28h1.867L32 16.667z'/%3E%3C/svg%3E");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;width:var(--post-core-dimension-24);height:var(--post-core-dimension-24)}}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
export class PostMainnavigation {
|
|
3
|
-
/**
|
|
4
|
-
* Retrieves a reference to the closest 'post-header' element when the main navigation is added to the DOM.
|
|
5
|
-
*/
|
|
6
|
-
connectedCallback() {
|
|
7
|
-
this.header = this.host.closest('post-header');
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Cleans up references and disconnects the MutationObserver when the main navigation is removed from the DOM.
|
|
11
|
-
*/
|
|
12
|
-
disconnectedCallback() {
|
|
13
|
-
this.header = null;
|
|
14
|
-
}
|
|
15
|
-
handleBackButtonClick() {
|
|
16
|
-
if (this.header)
|
|
17
|
-
this.header.toggleMobileMenu();
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
return (h(Host, { key: 'f21c438ac0bbcb08e08fd419589bf92b7d8b3a61', slot: "post-mainnavigation" }, h("div", { key: '1925f47932d7e842e8b9f059d7ade955c577fa50', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: 'fe18f6859a6d79c7ae701b65a31be1eab9c8b2ac', name: "back-button" })), h("nav", { key: 'ad2b0a52bc0bcf78a3c3340ba163ee6167be2c73' }, h("slot", { key: '8fc7b01cc0f3729cd2c12c4967ec87891fe0dcf5' }))));
|
|
21
|
-
}
|
|
22
|
-
static get is() { return "post-mainnavigation"; }
|
|
23
|
-
static get originalStyleUrls() {
|
|
24
|
-
return {
|
|
25
|
-
"$": ["./post-mainnavigation.scss"]
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
static get styleUrls() {
|
|
29
|
-
return {
|
|
30
|
-
"$": ["post-mainnavigation.css"]
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
static get events() {
|
|
34
|
-
return [{
|
|
35
|
-
"method": "postToggle",
|
|
36
|
-
"name": "postToggle",
|
|
37
|
-
"bubbles": true,
|
|
38
|
-
"cancelable": true,
|
|
39
|
-
"composed": true,
|
|
40
|
-
"docs": {
|
|
41
|
-
"tags": [],
|
|
42
|
-
"text": "Gets emitted when a user closes the main navigation on mobile"
|
|
43
|
-
},
|
|
44
|
-
"complexType": {
|
|
45
|
-
"original": "any",
|
|
46
|
-
"resolved": "any",
|
|
47
|
-
"references": {}
|
|
48
|
-
}
|
|
49
|
-
}];
|
|
50
|
-
}
|
|
51
|
-
static get elementRef() { return "host"; }
|
|
52
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@keyframes slide-in{0%{transform:translateX(100%)}100%{transform:translateX(0%)}}@keyframes slide-out{from{transform:translateX(0%)}to{transform:translateX(100%)}}*,::before,::after{box-sizing:border-box}post-popovercontainer{--post-global-header-height: 72px;--post-main-header-height: 56px;--post-header-height: calc(var(--post-global-header-height) + var(--post-main-header-height));background-color:#fafafa;border:none;border-top:1px solid #e1e0dc;width:100%;border-radius:0;box-shadow:0 8px 6px rgba(0,0,0,.16)}@media screen and (max-width: 1023.99px){post-popovercontainer{--post-global-header-height: 64px;position:absolute;top:var(--post-header-height) !important;bottom:0;left:0;width:100%;height:auto}post-popovercontainer.slide-in{animation:slide-in;animation-duration:350ms;animation-fill-mode:forwards}post-popovercontainer.slide-out{animation:slide-out;animation-duration:350ms;animation-fill-mode:forwards}}.megadropdown{padding:31px 40px 40px}@media screen and (max-width: 1023.99px){.megadropdown{padding:16px 32px 24px}}.megadropdown .megadropdown-content{gap:1.5rem;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(15vw, 100%), 1fr));grid-auto-rows:1fr auto;grid-auto-flow:dense}@media screen and (max-width: 1023.99px){.megadropdown .megadropdown-content{grid-template-columns:repeat(auto-fit, minmax(min(35vw, 100%), 1fr))}}@media screen and (max-width: 599.99px){.megadropdown .megadropdown-content{grid-template-columns:1fr}}.megadropdown h2{display:none;margin-top:0;margin-bottom:8px;font-weight:900}.megadropdown h2 a{text-decoration:none;font-weight:inherit;border-bottom:0;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown h2{display:block;font-size:20px}}.megadropdown a:hover{border-block-width:0}.megadropdown a:hover::after{content:unset}.megadropdown post-list{display:grid;grid-row:span 2;grid-template-rows:subgrid;row-gap:0px}.megadropdown post-list>[role=list]{flex-direction:unset;display:unset}.megadropdown post-list>*{width:100%}.megadropdown post-list .list-title{display:flex;flex-direction:column-reverse;height:100%}.megadropdown post-list .list-title h3{font-size:20px;border-bottom:1px solid #050400;padding:15px 12px 14px 0;display:block;font-weight:900}.megadropdown post-list .list-title h3 a{text-decoration:none;width:100%;font-size:inherit;display:inline-block;font-weight:inherit;height:unset;padding:0;border:0}@media screen and (max-width: 1023.99px){.megadropdown post-list .list-title h3{font-size:16px;padding:12px 12px 11px 0}}.megadropdown post-list-item{border-bottom:1px solid #050400}.megadropdown post-list-item>a{padding:13px 12px 12px 0;display:block;text-decoration:none;width:100%;border-bottom:0;height:auto;border-top:0}@media screen and (max-width: 1023.99px){.megadropdown post-list-item>a{padding:12px 12px 11px 0}}.megadropdown .back-button{display:none;margin-bottom:2rem}.megadropdown .back-button .btn{width:auto}.megadropdown .back-button post-icon{transform:rotate(180deg)}@media screen and (max-width: 1023.99px){.megadropdown .back-button{display:block}}.megadropdown .close-button{position:absolute;top:1rem;right:1rem}@media screen and (max-width: 1023.99px){.megadropdown .close-button{display:none}}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
export class PostMegadropdown {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.isVisible = false;
|
|
5
|
-
this.animationClass = null;
|
|
6
|
-
}
|
|
7
|
-
componentDidLoad() {
|
|
8
|
-
this.popoverRef.addEventListener('postToggle', (event) => {
|
|
9
|
-
this.isVisible = event.detail;
|
|
10
|
-
this.postToggleMegadropdown.emit(this.isVisible);
|
|
11
|
-
});
|
|
12
|
-
this.popoverRef.addEventListener('animationend', () => {
|
|
13
|
-
if (this.animationClass === 'slide-out') {
|
|
14
|
-
this.hide();
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Toggles the dropdown visibility based on its current state.
|
|
20
|
-
*/
|
|
21
|
-
async toggle(target) {
|
|
22
|
-
this.isVisible ? this.hide() : await this.show(target);
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Displays the popover dropdown
|
|
26
|
-
*
|
|
27
|
-
* @param target - The HTML element relative to which the popover dropdown should be displayed.
|
|
28
|
-
*/
|
|
29
|
-
async show(target) {
|
|
30
|
-
if (this.popoverRef) {
|
|
31
|
-
await this.popoverRef.show(target);
|
|
32
|
-
this.animationClass = 'slide-in';
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
console.error('show: popoverRef is null or undefined');
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Hides the popover dropdown
|
|
40
|
-
*/
|
|
41
|
-
hide() {
|
|
42
|
-
if (this.popoverRef) {
|
|
43
|
-
this.popoverRef.hide();
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
console.error('hide: popoverRef is null or undefined');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
handleBackButtonClick() {
|
|
50
|
-
this.animationClass = 'slide-out';
|
|
51
|
-
}
|
|
52
|
-
handleCloseButtonClick() {
|
|
53
|
-
this.popoverRef.hide();
|
|
54
|
-
}
|
|
55
|
-
render() {
|
|
56
|
-
return (h(Host, { key: 'cfd4e6c7bb87c50e471d304a4b4f086266e1c2fe' }, h("post-popovercontainer", { key: '31dc3a5e98a5c60a4db8d47375491a6f3957af0b', class: this.animationClass, placement: "bottom", "edge-gap": "0", ref: el => (this.popoverRef = el) }, h("div", { key: '7001d0e108544a0244af088be0bde49f90a3dea3', class: "megadropdown" }, h("div", { key: '513b0710163e8f58677b6b50d2ba2d241cf9ff35', onClick: () => this.handleBackButtonClick(), class: "back-button" }, h("slot", { key: '5457c0b9bfff045f39f470e600b5aa31036c0807', name: "back-button" })), h("div", { key: 'c3314a4ae4f386224a2db7fe32203f72f6a1b284', onClick: () => this.handleCloseButtonClick(), class: "close-button" }, h("slot", { key: '8feeec24fe5f2522ba1a54ab0b7c682d3a152086', name: "close-button" })), h("slot", { key: '6d9426756a809ed26045c9cd56cacf0f36aa9400', name: "megadropdown-title" }), h("div", { key: 'fd3b0ac7998eec76700ccc6668d8b2e3fcc4c63a', class: "megadropdown-content" }, h("slot", { key: '23638936fdffa224de9631bfd599c0872202a30d' }))))));
|
|
57
|
-
}
|
|
58
|
-
static get is() { return "post-megadropdown"; }
|
|
59
|
-
static get originalStyleUrls() {
|
|
60
|
-
return {
|
|
61
|
-
"$": ["post-megadropdown.scss"]
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
|
-
static get styleUrls() {
|
|
65
|
-
return {
|
|
66
|
-
"$": ["post-megadropdown.css"]
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
static get states() {
|
|
70
|
-
return {
|
|
71
|
-
"isVisible": {},
|
|
72
|
-
"animationClass": {}
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
static get events() {
|
|
76
|
-
return [{
|
|
77
|
-
"method": "postToggleMegadropdown",
|
|
78
|
-
"name": "postToggleMegadropdown",
|
|
79
|
-
"bubbles": true,
|
|
80
|
-
"cancelable": true,
|
|
81
|
-
"composed": true,
|
|
82
|
-
"docs": {
|
|
83
|
-
"tags": [],
|
|
84
|
-
"text": "Emits when the dropdown is shown or hidden.\nThe event payload is a boolean: `true` when the dropdown was opened, `false` when it was closed."
|
|
85
|
-
},
|
|
86
|
-
"complexType": {
|
|
87
|
-
"original": "boolean",
|
|
88
|
-
"resolved": "boolean",
|
|
89
|
-
"references": {}
|
|
90
|
-
}
|
|
91
|
-
}];
|
|
92
|
-
}
|
|
93
|
-
static get methods() {
|
|
94
|
-
return {
|
|
95
|
-
"toggle": {
|
|
96
|
-
"complexType": {
|
|
97
|
-
"signature": "(target: HTMLElement) => Promise<void>",
|
|
98
|
-
"parameters": [{
|
|
99
|
-
"name": "target",
|
|
100
|
-
"type": "HTMLElement",
|
|
101
|
-
"docs": ""
|
|
102
|
-
}],
|
|
103
|
-
"references": {
|
|
104
|
-
"Promise": {
|
|
105
|
-
"location": "global",
|
|
106
|
-
"id": "global::Promise"
|
|
107
|
-
},
|
|
108
|
-
"HTMLElement": {
|
|
109
|
-
"location": "global",
|
|
110
|
-
"id": "global::HTMLElement"
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
"return": "Promise<void>"
|
|
114
|
-
},
|
|
115
|
-
"docs": {
|
|
116
|
-
"text": "Toggles the dropdown visibility based on its current state.",
|
|
117
|
-
"tags": []
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
"show": {
|
|
121
|
-
"complexType": {
|
|
122
|
-
"signature": "(target: HTMLElement) => Promise<void>",
|
|
123
|
-
"parameters": [{
|
|
124
|
-
"name": "target",
|
|
125
|
-
"type": "HTMLElement",
|
|
126
|
-
"docs": "- The HTML element relative to which the popover dropdown should be displayed."
|
|
127
|
-
}],
|
|
128
|
-
"references": {
|
|
129
|
-
"Promise": {
|
|
130
|
-
"location": "global",
|
|
131
|
-
"id": "global::Promise"
|
|
132
|
-
},
|
|
133
|
-
"HTMLElement": {
|
|
134
|
-
"location": "global",
|
|
135
|
-
"id": "global::HTMLElement"
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
"return": "Promise<void>"
|
|
139
|
-
},
|
|
140
|
-
"docs": {
|
|
141
|
-
"text": "Displays the popover dropdown",
|
|
142
|
-
"tags": [{
|
|
143
|
-
"name": "param",
|
|
144
|
-
"text": "target - The HTML element relative to which the popover dropdown should be displayed."
|
|
145
|
-
}]
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
static get elementRef() { return "host"; }
|
|
151
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
post-megadropdown-trigger{width:100%}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { version } from "../../../../package";
|
|
3
|
-
import { checkType } from "../../utils/index";
|
|
4
|
-
export class PostMegadropdownTrigger {
|
|
5
|
-
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
* Reference to the slotted button within the trigger, if present.
|
|
8
|
-
* Used to manage click and key events for mega dropdown control.
|
|
9
|
-
*/
|
|
10
|
-
this.slottedButton = null;
|
|
11
|
-
this.for = undefined;
|
|
12
|
-
this.ariaExpanded = false;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
16
|
-
* @param forValue - The new value of the `for` property.
|
|
17
|
-
*/
|
|
18
|
-
validateControlFor(forValue = this.for) {
|
|
19
|
-
checkType(forValue, 'string', 'The "for" property is required and should be a string.');
|
|
20
|
-
}
|
|
21
|
-
get megadropdown() {
|
|
22
|
-
const ref = document.getElementById(this.for);
|
|
23
|
-
return ref && ref.localName === 'post-megadropdown'
|
|
24
|
-
? ref
|
|
25
|
-
: null;
|
|
26
|
-
}
|
|
27
|
-
handleToggle() {
|
|
28
|
-
if (this.megadropdown) {
|
|
29
|
-
this.megadropdown.toggle(this.host);
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
console.warn(`No post-megadropdown found with ID: ${this.for}`);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
componentDidLoad() {
|
|
36
|
-
this.validateControlFor();
|
|
37
|
-
// Check if the mega dropdown attached to the trigger is expanded or not
|
|
38
|
-
document.addEventListener('postToggleMegadropdown', (event) => {
|
|
39
|
-
if (event.target.id === this.for) {
|
|
40
|
-
this.ariaExpanded = event.detail;
|
|
41
|
-
if (this.slottedButton) {
|
|
42
|
-
this.slottedButton.setAttribute('aria-expanded', this.ariaExpanded.toString());
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
this.slottedButton = this.host.querySelector('button');
|
|
47
|
-
if (this.slottedButton) {
|
|
48
|
-
this.slottedButton.setAttribute('aria-haspopup', 'menu');
|
|
49
|
-
this.slottedButton.addEventListener('click', () => {
|
|
50
|
-
this.handleToggle();
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
console.warn('No button found within post-megadropdown-trigger');
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
return (h(Host, { key: '4ab919adeaa51fc12d45131fa540c76fb3ba73d9', "data-version": version, "tab-index": "-1" }, h("button", { key: 'e7dac321691cdb19a4874fd0b2097227d077af35' }, h("slot", { key: 'beffc38d2d35a67e74364c3b40b6d39896aa4de3' }))));
|
|
59
|
-
}
|
|
60
|
-
static get is() { return "post-megadropdown-trigger"; }
|
|
61
|
-
static get originalStyleUrls() {
|
|
62
|
-
return {
|
|
63
|
-
"$": ["post-megadropdown-trigger.scss"]
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
static get styleUrls() {
|
|
67
|
-
return {
|
|
68
|
-
"$": ["post-megadropdown-trigger.css"]
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
static get properties() {
|
|
72
|
-
return {
|
|
73
|
-
"for": {
|
|
74
|
-
"type": "string",
|
|
75
|
-
"mutable": false,
|
|
76
|
-
"complexType": {
|
|
77
|
-
"original": "string",
|
|
78
|
-
"resolved": "string",
|
|
79
|
-
"references": {}
|
|
80
|
-
},
|
|
81
|
-
"required": true,
|
|
82
|
-
"optional": false,
|
|
83
|
-
"docs": {
|
|
84
|
-
"tags": [],
|
|
85
|
-
"text": "ID of the mega dropdown element that this trigger is linked to. Used to open and close the specified mega dropdown."
|
|
86
|
-
},
|
|
87
|
-
"attribute": "for",
|
|
88
|
-
"reflect": false
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
}
|
|
92
|
-
static get states() {
|
|
93
|
-
return {
|
|
94
|
-
"ariaExpanded": {}
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
static get elementRef() { return "host"; }
|
|
98
|
-
static get watchers() {
|
|
99
|
-
return [{
|
|
100
|
-
"propName": "for",
|
|
101
|
-
"methodName": "validateControlFor"
|
|
102
|
-
}];
|
|
103
|
-
}
|
|
104
|
-
}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { version } from "../../../../package";
|
|
3
|
-
import { isFocusable } from "../../utils/is-focusable";
|
|
4
|
-
import { getRoot } from "../../utils/index";
|
|
5
|
-
export class PostMenu {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.lastFocusedElement = null;
|
|
8
|
-
this.KEYCODES = {
|
|
9
|
-
SPACE: ' ',
|
|
10
|
-
ENTER: 'Enter',
|
|
11
|
-
UP: 'ArrowUp',
|
|
12
|
-
DOWN: 'ArrowDown',
|
|
13
|
-
TAB: 'Tab',
|
|
14
|
-
HOME: 'Home',
|
|
15
|
-
END: 'End',
|
|
16
|
-
ESCAPE: 'Escape',
|
|
17
|
-
};
|
|
18
|
-
this.handleKeyDown = (e) => {
|
|
19
|
-
e.stopPropagation();
|
|
20
|
-
if (e.key === this.KEYCODES.ESCAPE) {
|
|
21
|
-
this.toggle(this.host);
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
if (Object.values(this.KEYCODES).includes(e.key)) {
|
|
25
|
-
this.controlKeyDownHandler(e);
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
this.handleClick = (e) => {
|
|
29
|
-
const target = e.target;
|
|
30
|
-
if (['BUTTON', 'A', 'INPUT', 'SELECT', 'TEXTAREA'].includes(target.tagName)) {
|
|
31
|
-
this.toggle(this.host);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
this.placement = 'bottom';
|
|
35
|
-
this.isVisible = false;
|
|
36
|
-
}
|
|
37
|
-
connectedCallback() {
|
|
38
|
-
this.root = getRoot(this.host);
|
|
39
|
-
this.host.addEventListener('keydown', this.handleKeyDown);
|
|
40
|
-
this.host.addEventListener('click', this.handleClick);
|
|
41
|
-
}
|
|
42
|
-
disconnectedCallback() {
|
|
43
|
-
this.host.removeEventListener('keydown', this.handleKeyDown);
|
|
44
|
-
this.host.removeEventListener('click', this.handleClick);
|
|
45
|
-
}
|
|
46
|
-
componentDidLoad() {
|
|
47
|
-
this.popoverRef.addEventListener('postToggle', (event) => {
|
|
48
|
-
this.isVisible = event.detail;
|
|
49
|
-
this.toggleMenu.emit(this.isVisible);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Toggles the menu visibility based on its current state.
|
|
54
|
-
*/
|
|
55
|
-
async toggle(target) {
|
|
56
|
-
this.isVisible ? await this.hide() : await this.show(target);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Displays the popover menu, focusing the first menu item.
|
|
60
|
-
*
|
|
61
|
-
* @param target - The HTML element relative to which the popover menu should be displayed.
|
|
62
|
-
*/
|
|
63
|
-
async show(target) {
|
|
64
|
-
if (this.popoverRef) {
|
|
65
|
-
await this.popoverRef.show(target);
|
|
66
|
-
this.lastFocusedElement = this.root.activeElement; // Use root's activeElement
|
|
67
|
-
const menuItems = this.getSlottedItems();
|
|
68
|
-
if (menuItems.length > 0) {
|
|
69
|
-
menuItems[0].focus();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
else {
|
|
73
|
-
console.error('show: popoverRef is null or undefined');
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* Hides the popover menu and restores focus to the previously focused element.
|
|
78
|
-
*/
|
|
79
|
-
async hide() {
|
|
80
|
-
if (this.popoverRef) {
|
|
81
|
-
await this.popoverRef.hide();
|
|
82
|
-
if (this.lastFocusedElement) {
|
|
83
|
-
this.lastFocusedElement.focus();
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
else {
|
|
87
|
-
console.error('hide: popoverRef is null or undefined');
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
controlKeyDownHandler(e) {
|
|
91
|
-
const menuItems = this.getSlottedItems();
|
|
92
|
-
if (!menuItems.length) {
|
|
93
|
-
return;
|
|
94
|
-
}
|
|
95
|
-
const currentFocusedElement = this.root.activeElement; // Use root's activeElement
|
|
96
|
-
let currentIndex = menuItems.findIndex(el => el === currentFocusedElement);
|
|
97
|
-
switch (e.key) {
|
|
98
|
-
case this.KEYCODES.UP:
|
|
99
|
-
e.preventDefault();
|
|
100
|
-
currentIndex = (currentIndex - 1 + menuItems.length) % menuItems.length;
|
|
101
|
-
break;
|
|
102
|
-
case this.KEYCODES.DOWN:
|
|
103
|
-
e.preventDefault();
|
|
104
|
-
currentIndex = (currentIndex + 1) % menuItems.length;
|
|
105
|
-
break;
|
|
106
|
-
case this.KEYCODES.HOME:
|
|
107
|
-
currentIndex = 0;
|
|
108
|
-
break;
|
|
109
|
-
case this.KEYCODES.END:
|
|
110
|
-
currentIndex = menuItems.length - 1;
|
|
111
|
-
break;
|
|
112
|
-
case this.KEYCODES.SPACE:
|
|
113
|
-
case this.KEYCODES.ENTER:
|
|
114
|
-
this.toggle(this.host);
|
|
115
|
-
return;
|
|
116
|
-
case this.KEYCODES.TAB:
|
|
117
|
-
this.toggle(this.host);
|
|
118
|
-
break;
|
|
119
|
-
default:
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
if (menuItems[currentIndex]) {
|
|
123
|
-
menuItems[currentIndex].focus();
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
getSlottedItems() {
|
|
127
|
-
const slot = this.host.shadowRoot.querySelector('slot');
|
|
128
|
-
const slottedElements = slot ? slot.assignedElements() : [];
|
|
129
|
-
const menuItems = slottedElements
|
|
130
|
-
.filter(el => el.tagName === 'POST-MENU-ITEM')
|
|
131
|
-
.map(el => {
|
|
132
|
-
const slot = el.shadowRoot.querySelector('slot');
|
|
133
|
-
const assignedElements = slot ? slot.assignedElements() : [];
|
|
134
|
-
return assignedElements.filter(isFocusable);
|
|
135
|
-
})
|
|
136
|
-
.flat();
|
|
137
|
-
return menuItems;
|
|
138
|
-
}
|
|
139
|
-
render() {
|
|
140
|
-
return (h(Host, { key: '48e04f36dc7a3d8ed81b9570d1a4c931ace3cadd', "data-version": version }, h("post-popovercontainer", { key: '58532143bd7a8be7ea77cbd0a929fa74ee0ee890', placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: '967bf8aa936611ac6d533d9a8a1e176ee84b2a73', class: "popover-container", part: "popover-container" }, h("slot", { key: '4eb6b7fe34e8ea1df0d7cd8de31b57452442c3bb' })))));
|
|
141
|
-
}
|
|
142
|
-
static get is() { return "post-menu"; }
|
|
143
|
-
static get encapsulation() { return "shadow"; }
|
|
144
|
-
static get originalStyleUrls() {
|
|
145
|
-
return {
|
|
146
|
-
"$": ["post-menu.scss"]
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
static get styleUrls() {
|
|
150
|
-
return {
|
|
151
|
-
"$": ["post-menu.css"]
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
static get properties() {
|
|
155
|
-
return {
|
|
156
|
-
"placement": {
|
|
157
|
-
"type": "string",
|
|
158
|
-
"mutable": false,
|
|
159
|
-
"complexType": {
|
|
160
|
-
"original": "Placement",
|
|
161
|
-
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
162
|
-
"references": {
|
|
163
|
-
"Placement": {
|
|
164
|
-
"location": "import",
|
|
165
|
-
"path": "@floating-ui/dom",
|
|
166
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.6.8/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"required": false,
|
|
171
|
-
"optional": true,
|
|
172
|
-
"docs": {
|
|
173
|
-
"tags": [],
|
|
174
|
-
"text": "Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.\nTooltips are automatically flipped to the opposite side if there is not enough available space and are shifted\ntowards the viewport if they would overlap edge boundaries."
|
|
175
|
-
},
|
|
176
|
-
"attribute": "placement",
|
|
177
|
-
"reflect": false,
|
|
178
|
-
"defaultValue": "'bottom'"
|
|
179
|
-
}
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
static get states() {
|
|
183
|
-
return {
|
|
184
|
-
"isVisible": {}
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
static get events() {
|
|
188
|
-
return [{
|
|
189
|
-
"method": "toggleMenu",
|
|
190
|
-
"name": "toggleMenu",
|
|
191
|
-
"bubbles": true,
|
|
192
|
-
"cancelable": true,
|
|
193
|
-
"composed": true,
|
|
194
|
-
"docs": {
|
|
195
|
-
"tags": [],
|
|
196
|
-
"text": "Emits when the menu is shown or hidden.\nThe event payload is a boolean: `true` when the menu was opened, `false` when it was closed."
|
|
197
|
-
},
|
|
198
|
-
"complexType": {
|
|
199
|
-
"original": "boolean",
|
|
200
|
-
"resolved": "boolean",
|
|
201
|
-
"references": {}
|
|
202
|
-
}
|
|
203
|
-
}];
|
|
204
|
-
}
|
|
205
|
-
static get methods() {
|
|
206
|
-
return {
|
|
207
|
-
"toggle": {
|
|
208
|
-
"complexType": {
|
|
209
|
-
"signature": "(target: HTMLElement) => Promise<void>",
|
|
210
|
-
"parameters": [{
|
|
211
|
-
"name": "target",
|
|
212
|
-
"type": "HTMLElement",
|
|
213
|
-
"docs": ""
|
|
214
|
-
}],
|
|
215
|
-
"references": {
|
|
216
|
-
"Promise": {
|
|
217
|
-
"location": "global",
|
|
218
|
-
"id": "global::Promise"
|
|
219
|
-
},
|
|
220
|
-
"HTMLElement": {
|
|
221
|
-
"location": "global",
|
|
222
|
-
"id": "global::HTMLElement"
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"return": "Promise<void>"
|
|
226
|
-
},
|
|
227
|
-
"docs": {
|
|
228
|
-
"text": "Toggles the menu visibility based on its current state.",
|
|
229
|
-
"tags": []
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
"show": {
|
|
233
|
-
"complexType": {
|
|
234
|
-
"signature": "(target: HTMLElement) => Promise<void>",
|
|
235
|
-
"parameters": [{
|
|
236
|
-
"name": "target",
|
|
237
|
-
"type": "HTMLElement",
|
|
238
|
-
"docs": "- The HTML element relative to which the popover menu should be displayed."
|
|
239
|
-
}],
|
|
240
|
-
"references": {
|
|
241
|
-
"Promise": {
|
|
242
|
-
"location": "global",
|
|
243
|
-
"id": "global::Promise"
|
|
244
|
-
},
|
|
245
|
-
"HTMLElement": {
|
|
246
|
-
"location": "global",
|
|
247
|
-
"id": "global::HTMLElement"
|
|
248
|
-
}
|
|
249
|
-
},
|
|
250
|
-
"return": "Promise<void>"
|
|
251
|
-
},
|
|
252
|
-
"docs": {
|
|
253
|
-
"text": "Displays the popover menu, focusing the first menu item.",
|
|
254
|
-
"tags": [{
|
|
255
|
-
"name": "param",
|
|
256
|
-
"text": "target - The HTML element relative to which the popover menu should be displayed."
|
|
257
|
-
}]
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
"hide": {
|
|
261
|
-
"complexType": {
|
|
262
|
-
"signature": "() => Promise<void>",
|
|
263
|
-
"parameters": [],
|
|
264
|
-
"references": {
|
|
265
|
-
"Promise": {
|
|
266
|
-
"location": "global",
|
|
267
|
-
"id": "global::Promise"
|
|
268
|
-
}
|
|
269
|
-
},
|
|
270
|
-
"return": "Promise<void>"
|
|
271
|
-
},
|
|
272
|
-
"docs": {
|
|
273
|
-
"text": "Hides the popover menu and restores focus to the previously focused element.",
|
|
274
|
-
"tags": []
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
};
|
|
278
|
-
}
|
|
279
|
-
static get elementRef() { return "host"; }
|
|
280
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
:host{display:block}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
|
-
import { version } from "../../../../package";
|
|
3
|
-
export class PostMenuItem {
|
|
4
|
-
render() {
|
|
5
|
-
return (h(Host, { key: '0f53b8f818c87c59b0ec56e522852af0966e37ad', role: "menuitem", "data-version": version }, h("slot", { key: '4b821e1282df9bcfd297d74af56dfd5605baa0ee' })));
|
|
6
|
-
}
|
|
7
|
-
static get is() { return "post-menu-item"; }
|
|
8
|
-
static get encapsulation() { return "shadow"; }
|
|
9
|
-
static get originalStyleUrls() {
|
|
10
|
-
return {
|
|
11
|
-
"$": ["post-menu-item.scss"]
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
static get styleUrls() {
|
|
15
|
-
return {
|
|
16
|
-
"$": ["post-menu-item.css"]
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
static get elementRef() { return "host"; }
|
|
20
|
-
}
|