@swisspost/design-system-components 9.0.0-next.13 → 9.0.0-next.15
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-f1b08cdb.js → index-0ee3ab4a.js} +334 -152
- package/dist/cjs/index.cjs.js +22 -20
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-60e57542.js → package-da5224f8.js} +1 -1
- package/dist/cjs/{post-accordion-1e495c23.js → post-accordion-412a5841.js} +11 -5
- package/dist/cjs/{post-accordion-item-86b6950a.js → post-accordion-item-0bcc2d1d.js} +15 -8
- package/dist/cjs/post-accordion-item.cjs.entry.js +3 -3
- package/dist/cjs/post-accordion.cjs.entry.js +3 -3
- package/dist/cjs/{post-avatar-067c033b.js → post-avatar-8c349298.js} +23 -11
- package/dist/cjs/post-avatar.cjs.entry.js +3 -3
- package/dist/cjs/post-back-to-top-56f1cc8e.js +80 -0
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -3
- package/dist/cjs/post-banner-6295a2a0.js +110 -0
- package/dist/cjs/post-banner.cjs.entry.js +3 -3
- package/dist/cjs/{post-breadcrumb-b33abf67.js → post-breadcrumb-507266b2.js} +15 -9
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +3 -3
- package/dist/cjs/post-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/{post-card-control-7867a104.js → post-card-control-d7eabec9.js} +45 -14
- package/dist/cjs/post-card-control.cjs.entry.js +3 -3
- package/dist/cjs/post-closebutton_15.cjs.entry.js +3 -3
- package/dist/cjs/{post-collapsible-trigger-6affdc02.js → post-collapsible-trigger-0ee4d82a.js} +11 -5
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -3
- package/dist/cjs/post-components.cjs.js +3 -3
- package/dist/cjs/{post-footer-330e8999.js → post-footer-2bac2420.js} +8 -5
- package/dist/cjs/post-footer.cjs.entry.js +3 -3
- package/dist/cjs/post-linkarea-fc2f9c72.js +32 -0
- package/dist/cjs/post-linkarea.cjs.entry.js +11 -0
- package/dist/cjs/{post-menu-item-48191dfd.js → post-menu-item-709448cc.js} +8 -5
- package/dist/cjs/{post-popover-27f3e9aa.js → post-popover-0a247c47.js} +18 -6
- package/dist/cjs/post-popover.cjs.entry.js +3 -3
- package/dist/cjs/{post-rating-28904e91.js → post-rating-e09b9243.js} +21 -8
- package/dist/cjs/post-rating.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-header-86b129ab.js → post-tab-header-7fb08fb1.js} +8 -5
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -3
- package/dist/cjs/{post-tab-panel-94333a7e.js → post-tab-panel-e35b6f6d.js} +8 -5
- package/dist/cjs/post-tab-panel.cjs.entry.js +3 -3
- package/dist/cjs/{post-tabs-f8581050.js → post-tabs-3967f88b.js} +10 -4
- package/dist/cjs/post-tabs.cjs.entry.js +3 -3
- package/dist/cjs/{post-tag-3a24c574.js → post-tag-07461a94.js} +18 -7
- package/dist/cjs/post-tag.cjs.entry.js +3 -3
- package/dist/cjs/{post-togglebutton-e7d697bf.js → post-togglebutton-675dccb0.js} +516 -133
- package/dist/cjs/{post-tooltip-8c87dfe3.js → post-tooltip-1c754653.js} +17 -6
- package/dist/cjs/post-tooltip.cjs.entry.js +3 -3
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/post-accordion/post-accordion.js +13 -5
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +17 -8
- package/dist/collection/components/post-avatar/post-avatar.js +29 -11
- package/dist/collection/components/post-back-to-top/post-back-to-top.css +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +9 -5
- package/dist/collection/components/post-banner/post-banner.css +1 -1
- package/dist/collection/components/post-banner/post-banner.js +34 -14
- package/dist/collection/components/post-breadcrumb/post-breadcrumb.js +17 -9
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +7 -4
- package/dist/collection/components/post-card-control/post-card-control.js +61 -12
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +7 -4
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +6 -3
- package/dist/collection/components/post-footer/post-footer.js +8 -5
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +82 -8
- package/dist/collection/components/post-icon/post-icon.js +43 -10
- package/dist/collection/components/post-language-option/post-language-option.js +32 -8
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +23 -7
- package/dist/collection/components/post-linkarea/post-linkarea.css +1 -0
- package/dist/collection/components/post-linkarea/post-linkarea.js +32 -0
- package/dist/collection/components/post-list/post-list.js +17 -6
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +7 -4
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +193 -19
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +124 -66
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +12 -6
- package/dist/collection/components/post-menu/post-menu.js +15 -5
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +11 -5
- package/dist/collection/components/post-popover/post-popover.js +22 -4
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +46 -8
- package/dist/collection/components/post-rating/post-rating.js +27 -6
- package/dist/collection/components/post-tab-header/post-tab-header.js +8 -5
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +8 -5
- package/dist/collection/components/post-tabs/post-tabs.js +10 -4
- package/dist/collection/components/post-tag/post-tag.js +22 -5
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +7 -4
- package/dist/collection/components/post-tooltip/post-tooltip.js +21 -6
- package/dist/collection/index.js +1 -0
- package/dist/components/index.js +36 -35
- package/dist/components/{post-collapsible2.js → p-10c1a15a.js} +9 -6
- package/dist/components/{post-menu-trigger2.js → p-15877641.js} +14 -8
- package/dist/components/{post-breadcrumb2.js → p-23b12eda.js} +26 -20
- package/dist/components/p-2e509a60.js +237 -0
- package/dist/components/{post-tab-header2.js → p-32b7a0a8.js} +11 -8
- package/dist/components/{post-togglebutton2.js → p-3385af29.js} +9 -6
- package/dist/components/p-3aba7629.js +29 -0
- package/dist/components/p-3e8554e7.js +1646 -0
- package/dist/components/p-46a6c5ec.js +168 -0
- package/dist/components/{post-tooltip2.js → p-477784a7.js} +21 -10
- package/dist/components/{post-megadropdown-trigger2.js → p-4b60e5f8.js} +15 -9
- package/{loaders/post-menu-item2.js → dist/components/p-4bbdde2b.js} +4 -4
- package/dist/components/{post-avatar2.js → p-4f60823b.js} +25 -13
- package/dist/components/{post-collapsible-trigger2.js → p-5366ff92.js} +11 -8
- package/dist/components/p-54e097c7.js +199 -0
- package/dist/components/{post-language-switch2.js → p-61419ecc.js} +28 -16
- package/dist/components/{post-popover2.js → p-621f6dce.js} +21 -9
- package/dist/components/{post-card-control2.js → p-6d591e1c.js} +49 -18
- package/dist/components/{post-logo2.js → p-70e8b74f.js} +9 -6
- package/{loaders/post-menu2.js → dist/components/p-7202d5d4.js} +19 -36
- package/dist/components/p-74e13cb1.js +3 -0
- package/dist/components/{post-breadcrumb-item2.js → p-80478535.js} +10 -7
- package/dist/components/{post-back-to-top2.js → p-8b750ccb.js} +15 -11
- package/dist/components/p-9a726750.js +44 -0
- package/dist/components/{post-list-item2.js → p-9e4b1f10.js} +3 -3
- package/dist/components/{post-language-option2.js → p-a07e1562.js} +27 -11
- package/dist/components/{post-list2.js → p-a3711af3.js} +17 -8
- package/dist/components/{check-non-empty.js → p-b095519d.js} +1 -1
- package/dist/components/{post-accordion2.js → p-cf4cb17f.js} +14 -8
- package/dist/components/{post-rating2.js → p-d343757a.js} +23 -10
- package/dist/components/{post-footer2.js → p-d428a69c.js} +13 -10
- package/dist/components/{post-tab-panel2.js → p-db9fa77d.js} +10 -7
- package/dist/components/{post-tag2.js → p-e482b539.js} +20 -9
- package/dist/components/{index2.js → p-eabb09ad.js} +3 -3
- package/dist/components/{post-tabs2.js → p-efc1bc9c.js} +12 -6
- package/dist/components/{post-closebutton2.js → p-f5433ff7.js} +5 -5
- package/dist/components/p-f566dbe4.js +145 -0
- package/{loaders/post-popovercontainer2.js → dist/components/p-f59c8544.js} +25 -10
- package/{loaders/post-accordion-item2.js → dist/components/p-f60c925d.js} +22 -15
- package/dist/components/p-f7b9f90a.js +135 -0
- package/dist/components/{post-icon2.js → p-fcec301c.js} +35 -14
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumb.js +1 -1
- package/dist/components/post-card-control.js +1 -1
- package/dist/components/post-closebutton.js +1 -1
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-language-option.js +1 -1
- package/dist/components/post-language-switch.js +1 -1
- package/dist/components/post-linkarea.d.ts +11 -0
- package/dist/components/post-linkarea.js +6 -0
- package/dist/components/post-list-item.js +1 -1
- package/dist/components/post-list.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-tab-header.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-tag.js +1 -1
- package/dist/components/post-togglebutton.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +333 -149
- package/dist/esm/{index-6bfe6554.js → index-2c232bf2.js} +334 -152
- package/dist/esm/index.js +21 -20
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-fe605ce2.js +3 -0
- package/dist/esm/{post-accordion-48eb17c3.js → post-accordion-27faacb3.js} +11 -5
- package/dist/esm/{post-accordion-item-e0893bb3.js → post-accordion-item-518d7bd0.js} +15 -8
- package/dist/esm/post-accordion-item.entry.js +3 -3
- package/dist/esm/post-accordion.entry.js +3 -3
- package/dist/esm/{post-avatar-20cde806.js → post-avatar-80b061df.js} +23 -11
- package/dist/esm/post-avatar.entry.js +3 -3
- package/dist/esm/post-back-to-top-531e1376.js +78 -0
- package/dist/esm/post-back-to-top.entry.js +3 -3
- package/dist/esm/post-banner-e10a3101.js +108 -0
- package/dist/esm/post-banner.entry.js +3 -3
- package/dist/esm/{post-breadcrumb-39203792.js → post-breadcrumb-54bac634.js} +15 -9
- package/dist/esm/post-breadcrumb-item_2.entry.js +3 -3
- package/dist/esm/post-breadcrumb.entry.js +3 -3
- package/dist/esm/{post-card-control-d2c25c96.js → post-card-control-ba354a50.js} +45 -14
- package/dist/esm/post-card-control.entry.js +3 -3
- package/dist/esm/post-closebutton_15.entry.js +3 -3
- package/dist/esm/{post-collapsible-trigger-2f9ad9a5.js → post-collapsible-trigger-3dbedd6e.js} +11 -5
- package/dist/esm/post-collapsible_2.entry.js +3 -3
- package/dist/esm/post-components.js +4 -4
- package/dist/esm/{post-footer-e804a967.js → post-footer-c73c4669.js} +8 -5
- package/dist/esm/post-footer.entry.js +3 -3
- package/dist/esm/post-linkarea-65638949.js +30 -0
- package/dist/esm/post-linkarea.entry.js +3 -0
- package/dist/esm/{post-menu-item-f9793958.js → post-menu-item-fb5afbfe.js} +8 -5
- package/dist/esm/{post-popover-8205412a.js → post-popover-50930237.js} +18 -6
- package/dist/esm/post-popover.entry.js +3 -3
- package/dist/esm/{post-rating-95ecb434.js → post-rating-3077bc2d.js} +21 -8
- package/dist/esm/post-rating.entry.js +3 -3
- package/dist/esm/{post-tab-header-d520b99a.js → post-tab-header-359fe858.js} +8 -5
- package/dist/esm/post-tab-header.entry.js +3 -3
- package/dist/esm/{post-tab-panel-8c8d2332.js → post-tab-panel-1209fd6f.js} +8 -5
- package/dist/esm/post-tab-panel.entry.js +3 -3
- package/dist/esm/{post-tabs-dd6dfe43.js → post-tabs-3a9acd87.js} +10 -4
- package/dist/esm/post-tabs.entry.js +3 -3
- package/dist/esm/{post-tag-593813a4.js → post-tag-c8c9b213.js} +18 -7
- package/dist/esm/post-tag.entry.js +3 -3
- package/dist/esm/{post-togglebutton-120df903.js → post-togglebutton-1e02ab7c.js} +516 -133
- package/dist/esm/{post-tooltip-a13d6fbb.js → post-tooltip-65892d5f.js} +17 -6
- package/dist/esm/post-tooltip.entry.js +3 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-05d809f2.entry.js +1 -0
- package/dist/post-components/p-122f969e.js +1 -0
- package/dist/post-components/p-16c08e07.entry.js +1 -0
- package/dist/post-components/p-16f883f9.entry.js +1 -0
- package/dist/post-components/p-23a94c36.entry.js +1 -0
- package/dist/post-components/p-2ea6e06e.js +1 -0
- package/dist/post-components/p-36527185.js +1 -0
- package/dist/post-components/p-368cee4c.js +1 -0
- package/dist/post-components/p-3a408d41.entry.js +1 -0
- package/dist/post-components/p-43caa6b0.js +1 -0
- package/dist/post-components/{p-4fc83a1c.js → p-458d4560.js} +3 -3
- package/dist/post-components/p-52508346.entry.js +1 -0
- package/dist/post-components/p-54ae1f02.js +1 -0
- package/dist/post-components/p-55139ed4.js +1 -0
- package/dist/post-components/p-5a051654.entry.js +1 -0
- package/dist/post-components/p-5b058c27.entry.js +1 -0
- package/dist/post-components/p-5be385f2.js +1 -0
- package/dist/post-components/p-5cc36eb9.entry.js +1 -0
- package/dist/post-components/p-61ebfb27.js +1 -0
- package/dist/post-components/p-66552bf5.entry.js +1 -0
- package/dist/post-components/{p-a72cb18c.js → p-68defca9.js} +1 -1
- package/dist/post-components/p-74dbfcd3.js +1 -0
- package/dist/post-components/p-74e13cb1.js +1 -0
- package/dist/post-components/p-8abc347f.js +1 -0
- package/dist/post-components/p-8fe69fae.js +1 -0
- package/dist/post-components/p-902e52fb.entry.js +1 -0
- package/dist/post-components/p-9bf305da.entry.js +1 -0
- package/dist/post-components/{p-d6449a93.entry.js → p-a680d8b0.entry.js} +1 -1
- package/dist/post-components/p-a7199df3.js +1 -0
- package/dist/post-components/p-a7683dcd.entry.js +1 -0
- package/dist/post-components/p-aaef3917.js +1 -0
- package/dist/post-components/p-ad2a716a.entry.js +1 -0
- package/dist/post-components/p-b5758f64.js +1 -0
- package/dist/post-components/{p-92f8803c.entry.js → p-b64f5ba4.entry.js} +1 -1
- package/dist/post-components/p-ce4a94d4.entry.js +1 -0
- package/dist/post-components/p-d9833667.js +2 -0
- package/dist/post-components/p-dc8a4c6f.js +1 -0
- package/dist/post-components/p-e725b6f4.js +1 -0
- package/dist/post-components/p-ecc6a8fa.entry.js +1 -0
- package/dist/post-components/p-fed91ff7.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-header/post-header.d.ts +11 -2
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +1 -1
- package/dist/types/components/post-linkarea/post-linkarea.d.ts +5 -0
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +57 -3
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +26 -12
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +4 -0
- package/dist/types/components.d.ts +49 -23
- package/dist/types/index.d.ts +3 -2
- package/dist/types/stencil-public-runtime.d.ts +6 -0
- package/loaders/index.d.ts +2 -0
- package/loaders/index.js +3 -2
- package/loaders/{post-menu-trigger2.js → p-15877641.js} +14 -8
- package/loaders/p-3aba7629.js +29 -0
- package/loaders/p-3e8554e7.js +1646 -0
- package/{dist/components/post-menu-item2.js → loaders/p-4bbdde2b.js} +4 -4
- package/loaders/{post-icon2.js → p-51b50ca3.js} +35 -14
- package/loaders/{post-collapsible-trigger2.js → p-5366ff92.js} +11 -8
- package/loaders/{index2.js → p-56ad4838.js} +3 -3
- package/{dist/components/post-menu2.js → loaders/p-7202d5d4.js} +19 -36
- package/loaders/p-74e13cb1.js +3 -0
- package/loaders/{post-breadcrumb-item2.js → p-9e7120c3.js} +10 -7
- package/loaders/{check-non-empty.js → p-b095519d.js} +1 -1
- package/loaders/{post-collapsible2.js → p-c2033fcd.js} +9 -6
- package/{dist/components/post-accordion-item2.js → loaders/p-e57c041b.js} +22 -15
- package/{dist/components/post-popovercontainer2.js → loaders/p-f59c8544.js} +25 -10
- package/loaders/p-f7b9f90a.js +135 -0
- package/loaders/post-accordion-item.js +1 -1
- package/loaders/post-accordion.js +14 -8
- package/loaders/post-avatar.js +25 -13
- package/loaders/post-back-to-top.js +15 -11
- package/loaders/post-banner.js +36 -22
- package/loaders/post-breadcrumb-item.js +1 -1
- package/loaders/post-breadcrumb.js +26 -20
- package/loaders/post-card-control.js +49 -18
- package/loaders/post-closebutton.js +5 -5
- package/loaders/post-collapsible-trigger.js +1 -1
- package/loaders/post-collapsible.js +1 -1
- package/loaders/post-footer.js +13 -10
- package/loaders/post-header.js +65 -145
- package/loaders/post-icon.js +1 -1
- package/loaders/post-language-option.js +27 -11
- package/loaders/post-language-switch.js +28 -16
- package/loaders/post-linkarea.d.ts +11 -0
- package/loaders/post-linkarea.js +47 -0
- package/loaders/post-list-item.js +3 -3
- package/loaders/post-list.js +17 -8
- package/loaders/post-logo.js +9 -6
- package/loaders/post-mainnavigation.js +193 -9
- package/loaders/post-megadropdown-trigger.js +15 -9
- package/loaders/post-megadropdown.js +108 -51
- package/loaders/post-menu-item.js +1 -1
- package/loaders/post-menu-trigger.js +1 -1
- package/loaders/post-menu.js +1 -1
- package/loaders/post-popover.js +21 -9
- package/loaders/post-popovercontainer.js +1 -1
- package/loaders/post-rating.js +23 -10
- package/loaders/post-tab-header.js +11 -8
- package/loaders/post-tab-panel.js +10 -7
- package/loaders/post-tabs.js +12 -6
- package/loaders/post-tag.js +20 -9
- package/loaders/post-togglebutton.js +9 -6
- package/loaders/post-tooltip.js +21 -10
- package/package.json +10 -11
- package/dist/cjs/post-back-to-top-7efd1066.js +0 -76
- package/dist/cjs/post-banner-a6808d7d.js +0 -96
- package/dist/components/package.js +0 -3
- package/dist/components/post-banner2.js +0 -131
- package/dist/components/post-header2.js +0 -279
- package/dist/components/post-mainnavigation2.js +0 -53
- package/dist/components/post-megadropdown2.js +0 -111
- package/dist/esm/package-495dba42.js +0 -3
- package/dist/esm/post-back-to-top-e422c426.js +0 -74
- package/dist/esm/post-banner-7385397e.js +0 -94
- package/dist/post-components/p-0b613350.js +0 -1
- package/dist/post-components/p-0e216cc4.js +0 -2
- package/dist/post-components/p-20e1b680.js +0 -1
- package/dist/post-components/p-29bc8ddc.entry.js +0 -1
- package/dist/post-components/p-2b4c7ec7.entry.js +0 -1
- package/dist/post-components/p-2f327006.entry.js +0 -1
- package/dist/post-components/p-3632ace7.js +0 -1
- package/dist/post-components/p-3a978ea9.entry.js +0 -1
- package/dist/post-components/p-3d4fdde0.js +0 -1
- package/dist/post-components/p-427132e3.entry.js +0 -1
- package/dist/post-components/p-445dfa96.js +0 -1
- package/dist/post-components/p-4c0c13a9.js +0 -1
- package/dist/post-components/p-5384e6f4.js +0 -1
- package/dist/post-components/p-5630677a.entry.js +0 -1
- package/dist/post-components/p-5e5ee06d.entry.js +0 -1
- package/dist/post-components/p-68c43ef0.entry.js +0 -1
- package/dist/post-components/p-6e39bb59.entry.js +0 -1
- package/dist/post-components/p-6fede961.js +0 -1
- package/dist/post-components/p-72a5ee9b.js +0 -1
- package/dist/post-components/p-72d9d594.entry.js +0 -1
- package/dist/post-components/p-85bf673e.entry.js +0 -1
- package/dist/post-components/p-8decb072.entry.js +0 -1
- package/dist/post-components/p-9596c7d6.js +0 -1
- package/dist/post-components/p-975b30f5.js +0 -1
- package/dist/post-components/p-9a50697e.entry.js +0 -1
- package/dist/post-components/p-aaca7ca7.js +0 -1
- package/dist/post-components/p-ac2189b7.js +0 -1
- package/dist/post-components/p-afe3b28e.js +0 -1
- package/dist/post-components/p-b129c166.js +0 -1
- package/dist/post-components/p-bd49bb7e.entry.js +0 -1
- package/dist/post-components/p-c043686c.entry.js +0 -1
- package/dist/post-components/p-c8544b65.js +0 -1
- package/dist/post-components/p-c9f65844.entry.js +0 -1
- package/dist/post-components/p-f7c5b0c2.js +0 -1
- package/loaders/package.js +0 -3
- /package/dist/components/{heading-levels.js → p-247a1668.js} +0 -0
- /package/dist/components/{constants.js → p-440193f4.js} +0 -0
- /package/dist/components/{slide.js → p-4af6dbed.js} +0 -0
- /package/dist/components/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/dist/components/{fade.js → p-64e3de38.js} +0 -0
- /package/dist/components/{check-type.js → p-8562c7dc.js} +0 -0
- /package/dist/components/{attribute-observer.js → p-9748a355.js} +0 -0
- /package/dist/components/{check-one-of.js → p-bacd3e2c.js} +0 -0
- /package/dist/components/{debounce.js → p-e1baac59.js} +0 -0
- /package/dist/components/{get-root.js → p-fc91cbc2.js} +0 -0
- /package/loaders/{heading-levels.js → p-247a1668.js} +0 -0
- /package/loaders/{constants.js → p-440193f4.js} +0 -0
- /package/loaders/{slide.js → p-4af6dbed.js} +0 -0
- /package/loaders/{index.browser.js → p-5959f2bd.js} +0 -0
- /package/loaders/{fade.js → p-64e3de38.js} +0 -0
- /package/loaders/{check-type.js → p-8562c7dc.js} +0 -0
- /package/loaders/{attribute-observer.js → p-9748a355.js} +0 -0
- /package/loaders/{check-one-of.js → p-bacd3e2c.js} +0 -0
- /package/loaders/{debounce.js → p-e1baac59.js} +0 -0
- /package/loaders/{get-root.js → p-fc91cbc2.js} +0 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-3e8554e7.js';
|
|
2
|
+
import { v as version } from './p-74e13cb1.js';
|
|
3
|
+
import { f as fadeOut } from './p-64e3de38.js';
|
|
4
|
+
import { a as checkEmptyOrPattern, c as checkEmptyOrOneOf } from './p-eabb09ad.js';
|
|
5
|
+
import { n as nanoid } from './p-5959f2bd.js';
|
|
6
|
+
import { d as defineCustomElement$1 } from './p-fcec301c.js';
|
|
7
|
+
import { c as checkType } from './p-8562c7dc.js';
|
|
8
|
+
import { c as checkNonEmpty } from './p-b095519d.js';
|
|
9
|
+
|
|
10
|
+
const BANNER_TYPES = ['neutral', 'success', 'warning', 'danger', 'info'];
|
|
11
|
+
|
|
12
|
+
const postBannerCss = ".banner,.alert{min-height:calc(var(--post-device-sizing-notification-icon-2) + (2 * var(--post-device-spacing-padding-10)));box-sizing:border-box;box-shadow:var(--post-device-elevation-100);border-radius:var(--post-device-border-radius-2);padding:var(--post-device-spacing-padding-10) var(--post-device-spacing-padding-10);padding-inline-start:calc(var(--post-device-spacing-padding-10) + var(--post-device-sizing-notification-icon-2) + var(--post-device-spacing-gap-inline-6));font-weight:var(--post-core-font-weight-400);border-style:var(--post-core-border-style-solid);border-width:var(--post-device-border-width-default);position:relative;color:var(--post-scheme-color-surface-default-fg);background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner:not(.no-icon)::before,.alert:not(.no-icon)::before{color:CanvasText}}.banner:has(>post-icon)::before,.alert:has(>post-icon)::before{content:none}.banner>post-icon,.alert>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner::before,.alert::before{content:\"\";display:block}.banner::before,.banner>post-icon,.alert::before,.alert>post-icon{position:absolute;height:var(--post-device-sizing-notification-icon-2);width:var(--post-device-sizing-notification-icon-2);left:var(--post-device-spacing-padding-10);top:var(--post-device-spacing-padding-10)}.banner.no-icon,.alert.no-icon{min-height:calc(2*var(--post-device-spacing-padding-10) + var(--post-core-dimension-24));padding-inline-start:var(--post-device-spacing-padding-10)}.banner.no-icon::before,.alert.no-icon::before{content:unset}.banner.no-icon>post-icon,.alert.no-icon>post-icon{display:none}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner,.alert{filter:none !important;border:2px solid CanvasText}}.banner:not(.banner-action):not(.alert-action),.alert:not(.banner-action):not(.alert-action){display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner:not(.banner-action):not(.alert-action) a,.alert:not(.banner-action):not(.alert-action) a{font-weight:var(--post-core-font-weight-400)}.banner:not(.banner-action):not(.alert-action) hr,.alert:not(.banner-action):not(.alert-action) hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner:not(.banner-action):not(.alert-action)>*,.alert:not(.banner-action):not(.alert-action)>*{margin:0}.banner-container{border:unset;background-color:rgba(0,0,0,0)}.banner-dismissible,.alert-dismissible{pointer-events:auto;position:relative}.banner-dismissible:not(.banner-action):not(.alert-action),.alert-dismissible:not(.banner-action):not(.alert-action){padding-inline-end:calc(var(--post-device-spacing-padding-10) + var(--post-device-spacing-gap-inline-6) + var(--post-core-dimension-24))}.banner-dismissible>.btn-close,.alert-dismissible>.btn-close{position:absolute;inset-block-start:1rem;inset-inline-end:var(--post-device-spacing-padding-10)}.banner-buttons,.alert-buttons{display:flex;align-items:center;justify-content:flex-start;flex-direction:row-reverse;margin-block-start:var(--post-device-spacing-padding-block-10);gap:var(--post-device-spacing-gap-1)}@media (max-width: 779.98px){.banner-buttons,.alert-buttons{flex-direction:column}}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{display:flex;flex-direction:column;justify-content:center;gap:var(--post-core-dimension-4)}.banner-action>.banner-content a,.banner-action>.alert-content a,.alert-action>.banner-content a,.alert-action>.alert-content a{font-weight:var(--post-core-font-weight-400)}.banner-action>.banner-content hr,.banner-action>.alert-content hr,.alert-action>.banner-content hr,.alert-action>.alert-content hr{margin-block:var(--post-core-dimension-8) var(--post-core-dimension-12) !important}.banner-action>.banner-content>*,.banner-action>.alert-content>*,.alert-action>.banner-content>*,.alert-action>.alert-content>*{margin:0}@media (max-width: 779.98px){.banner-action,.alert-action{flex-direction:column;align-items:stretch}.banner-action>.banner-content,.banner-action>.alert-content,.alert-action>.banner-content,.alert-action>.alert-content{padding-inline-start:var(--post-device-spacing-gap-inline-6)var(--post-device-sizing-notification-icon-2);padding-inline-end:var(--post-device-spacing-gap-inline-6)var(--post-core-dimension-24)}.banner-action.no-icon>.banner-content,.banner-action.no-icon>.alert-content,.alert-action.no-icon>.banner-content,.alert-action.no-icon>.alert-content{padding-inline-start:0}.banner-action>.banner-buttons,.banner-action>.alert-buttons,.alert-action>.banner-buttons,.alert-action>.alert-buttons{display:flex}.banner-action>.banner-buttons>.btn,.banner-action>.banner-buttons>::slotted(.btn),.banner-action>.alert-buttons>.btn,.banner-action>.alert-buttons>::slotted(.btn),.alert-action>.banner-buttons>.btn,.alert-action>.banner-buttons>::slotted(.btn),.alert-action>.alert-buttons>.btn,.alert-action>.alert-buttons>::slotted(.btn){flex:1 0 0;width:100%}.banner-action>.banner-buttons>.btn:first-child,.banner-action>.banner-buttons>::slotted(.btn:first-child),.banner-action>.alert-buttons>.btn:first-child,.banner-action>.alert-buttons>::slotted(.btn:first-child),.alert-action>.banner-buttons>.btn:first-child,.alert-action>.banner-buttons>::slotted(.btn:first-child),.alert-action>.alert-buttons>.btn:first-child,.alert-action>.alert-buttons>::slotted(.btn:first-child){margin-inline-start:0}}.banner-neutral,.alert-neutral{background-color:var(--post-scheme-color-signal-neutral);border-color:var(--post-scheme-color-signal-neutral-dark);color-scheme:var(--post-core-bg-scheme-light)}.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M31.986 15.73c-.503.16-1.03.27-1.586.27a5.24 5.24 0 0 1-4.43-2.448c-.73.382-1.547.62-2.427.62a5.257 5.257 0 0 1-5.257-5.258c0-.88.237-1.698.62-2.427a5.24 5.24 0 0 1-2.449-4.43c0-.714.145-1.393.403-2.014C16.574.028 16.29 0 16 0 7.163 0 0 7.163 0 16s7.163 16 16 16 16-7.163 16-16c0-.091-.012-.18-.014-.27M16 30.667c-8.087 0-14.667-6.58-14.667-14.667 0-7.806 6.13-14.207 13.828-14.643a6.54 6.54 0 0 0 2.116 5.56 6.3 6.3 0 0 0-.325 1.997 6.6 6.6 0 0 0 6.59 6.59c.677 0 1.346-.108 1.998-.324a6.54 6.54 0 0 0 5.067 2.15C29.933 24.796 23.639 30.667 16 30.667M11.352 14.17a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 1 1 1.334 1.334 1.336 1.336 0 0 1-1.334-1.334m13.981 8.496a2.667 2.667 0 1 0-5.333 0 2.667 2.667 0 0 0 5.333 0m-4 0a1.335 1.335 0 0 1 2.667 0c0 .735-.598 1.333-1.333 1.333a1.335 1.335 0 0 1-1.334-1.333m-7.276-1.829a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.667a.667.667 0 1 1 .002-1.335.667.667 0 0 1-.002 1.335m7.772-6a2 2 0 1 0-4 0 2 2 0 0 0 4 0m-2 .666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M11.505 5.505a2 2 0 1 0 0 4 2 2 0 0 0 0-4m0 2.666a.667.667 0 1 1 .001-1.334.667.667 0 0 1-.001 1.334M28.93 18.548a13.2 13.2 0 0 1-4.335 7.357.663.663 0 0 1-.94-.073.666.666 0 0 1 .073-.94 11.84 11.84 0 0 0 3.894-6.61.668.668 0 0 1 1.307.266m-6.668 8.212a.667.667 0 0 1-.295.896c-.837.423-1.722.757-2.63.99a.665.665 0 1 1-.33-1.292 11.7 11.7 0 0 0 2.359-.888.67.67 0 0 1 .896.294M4 15.921a.666.666 0 1 1-1.333 0 13.13 13.13 0 0 1 4.597-9.984.666.666 0 1 1 .867 1.013A11.8 11.8 0 0 0 4 15.92'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-signal-neutral-dark)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-neutral:not(.no-icon)::before,.alert-neutral:not(.no-icon)::before{color:CanvasText}}.banner-neutral:has(>post-icon)::before,.alert-neutral:has(>post-icon)::before{content:none}.banner-neutral>post-icon,.alert-neutral>post-icon{background-color:var(--post-scheme-color-signal-neutral);color:var(--post-scheme-color-signal-neutral-dark)}.banner-success,.alert-success{background-color:var(--post-scheme-color-interactive-notification-success-bg);border-color:var(--post-scheme-color-interactive-notification-success-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12.667 24.533-7.6-7.6 1.867-1.867 5.733 5.733 12.4-12.4 1.867 1.867z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-success-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-success:not(.no-icon)::before,.alert-success:not(.no-icon)::before{color:CanvasText}}.banner-success:has(>post-icon)::before,.alert-success:has(>post-icon)::before{content:none}.banner-success>post-icon,.alert-success>post-icon{background-color:var(--post-scheme-color-interactive-notification-success-bg);color:var(--post-scheme-color-interactive-notification-success-icon)}.banner-warning,.alert-warning{background-color:var(--post-scheme-color-interactive-notification-warning-bg);border-color:var(--post-scheme-color-interactive-notification-warning-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-warning-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-warning:not(.no-icon)::before,.alert-warning:not(.no-icon)::before{color:CanvasText}}.banner-warning:has(>post-icon)::before,.alert-warning:has(>post-icon)::before{content:none}.banner-warning>post-icon,.alert-warning>post-icon{background-color:var(--post-scheme-color-interactive-notification-warning-bg);color:var(--post-scheme-color-interactive-notification-warning-icon)}.banner-error,.alert-error{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-error:not(.no-icon)::before,.alert-error:not(.no-icon)::before{color:CanvasText}}.banner-error:has(>post-icon)::before,.alert-error:has(>post-icon)::before{content:none}.banner-error>post-icon,.alert-error>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.banner-info,.alert-info{background-color:var(--post-scheme-color-interactive-notification-info-bg);border-color:var(--post-scheme-color-interactive-notification-info-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.33 25.33v-16h-4.67V12h2v13.33h-2V28h6.67v-2.67zM14.67 4h2.67v2.67h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-info-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-info:not(.no-icon)::before,.alert-info:not(.no-icon)::before{color:CanvasText}}.banner-info:has(>post-icon)::before,.alert-info:has(>post-icon)::before{content:none}.banner-info>post-icon,.alert-info>post-icon{background-color:var(--post-scheme-color-interactive-notification-info-bg);color:var(--post-scheme-color-interactive-notification-info-icon)}.banner-danger,.alert-danger{background-color:var(--post-scheme-color-interactive-notification-error-bg);border-color:var(--post-scheme-color-interactive-notification-error-stroke);color-scheme:var(--post-core-bg-scheme-light)}.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.67 4h2.67v18.67h-2.67zm0 21.33h2.67V28h-2.67z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;color:var(--post-scheme-color-interactive-notification-error-icon)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.banner-danger:not(.no-icon)::before,.alert-danger:not(.no-icon)::before{color:CanvasText}}.banner-danger:has(>post-icon)::before,.alert-danger:has(>post-icon)::before{content:none}.banner-danger>post-icon,.alert-danger>post-icon{background-color:var(--post-scheme-color-interactive-notification-error-bg);color:var(--post-scheme-color-interactive-notification-error-icon)}.btn-close{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;border-radius:var(--post-device-border-radius-round);color:#000;transition:opacity 250ms,border-color 250ms,background-color 250ms,color 250ms;cursor:pointer}.btn-close{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}.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:4px}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.btn-close::before{mask-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m16.267 16.667 6.667-6.533-.933-1.067-6.667 6.667-6.667-6.667-.933 1.067 6.667 6.533-6.667 6.667 1.067.933 6.533-6.667 6.667 6.667.933-1.067z'/%3E%3C/svg%3E\");background-color:currentColor;color:currentColor;forced-color-adjust:preserve-parent-color;content:\"\";display:block;height:var(--post-core-dimension-24);width:var(--post-core-dimension-24)}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:#000}.btn-close:disabled{color:#999}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.btn-close{color:CanvasText;forced-color-adjust:none}.btn-close:focus,.btn-close:not(:disabled):hover,.pretend-hover.btn-close{color:Highlight}}.btn-close-white{color:#e6e6e6}.btn-close-white:focus,.btn-close-white:not(:disabled):hover,.btn-close-white.pretend-hover{color:#fff}.btn-close-white:disabled{color:#999}/*!\n * Copyright 2021 by Swiss Post, Information Technology\n */:host{display:block}:host ::slotted(*){margin:0 !important}.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}.visually-hidden:not(caption){position:absolute !important}";
|
|
13
|
+
const PostBannerStyle0 = postBannerCss;
|
|
14
|
+
|
|
15
|
+
const PostBanner = /*@__PURE__*/ proxyCustomElement(class PostBanner extends H {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.__registerHost();
|
|
19
|
+
this.__attachShadow();
|
|
20
|
+
this.postDismissed = createEvent(this, "postDismissed", 7);
|
|
21
|
+
}
|
|
22
|
+
get host() { return this; }
|
|
23
|
+
bannerId = `p${nanoid(6)}`;
|
|
24
|
+
classes;
|
|
25
|
+
hasActions;
|
|
26
|
+
hasHeading;
|
|
27
|
+
onDismissButtonClick = () => this.dismiss();
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
30
|
+
*/
|
|
31
|
+
dismissible = false;
|
|
32
|
+
validateDismissible(isDismissible = this.dismissible) {
|
|
33
|
+
checkType(isDismissible, 'boolean', 'The post-banner "dismissible" prop should be a boolean.');
|
|
34
|
+
setTimeout(() => this.validateDismissLabel());
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The label to use for the close button of a dismissible banner.
|
|
38
|
+
*/
|
|
39
|
+
dismissLabel;
|
|
40
|
+
validateDismissLabel(dismissLabel = this.dismissLabel) {
|
|
41
|
+
if (this.dismissible) {
|
|
42
|
+
checkNonEmpty(dismissLabel, 'Dismissible post-banner\'s require a "dismiss-label" prop.');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The icon to display in the banner. By default, the icon depends on the banner type.
|
|
47
|
+
*
|
|
48
|
+
* If `none`, no icon is displayed.
|
|
49
|
+
*/
|
|
50
|
+
icon;
|
|
51
|
+
validateIcon(icon = this.icon) {
|
|
52
|
+
checkEmptyOrPattern(icon, /\d{4}|none/, 'The post-banner "icon" prop should be a 4-digits string.');
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* The type of the banner.
|
|
56
|
+
*/
|
|
57
|
+
type = 'neutral';
|
|
58
|
+
validateType(type = this.type) {
|
|
59
|
+
checkEmptyOrOneOf(type, BANNER_TYPES, `The post-banner requires a type form: ${BANNER_TYPES.join(', ')}`);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* An event emitted when the banner element is dismissed, after the transition.
|
|
63
|
+
* It has no payload and only relevant for dismissible banners.
|
|
64
|
+
*/
|
|
65
|
+
postDismissed;
|
|
66
|
+
componentDidLoad() {
|
|
67
|
+
this.validateDismissible();
|
|
68
|
+
this.validateIcon();
|
|
69
|
+
this.validateType();
|
|
70
|
+
}
|
|
71
|
+
componentWillRender() {
|
|
72
|
+
this.hasHeading = this.host.querySelectorAll('[slot=heading]').length > 0;
|
|
73
|
+
this.hasActions = this.host.querySelectorAll('[slot=actions]').length > 0;
|
|
74
|
+
this.classes = `banner ${this.type ? 'banner-' + this.type : ''}`;
|
|
75
|
+
if (this.dismissible)
|
|
76
|
+
this.classes += ' banner-dismissible';
|
|
77
|
+
if (this.hasActions)
|
|
78
|
+
this.classes += ' banner-action';
|
|
79
|
+
if (this.icon === 'none')
|
|
80
|
+
this.classes += ' no-icon';
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Triggers banner dismissal programmatically (same as clicking on the close button (×)).
|
|
84
|
+
*/
|
|
85
|
+
async dismiss() {
|
|
86
|
+
const dismissal = fadeOut(this.host);
|
|
87
|
+
await dismissal.finished;
|
|
88
|
+
this.host.remove();
|
|
89
|
+
this.postDismissed.emit();
|
|
90
|
+
}
|
|
91
|
+
render() {
|
|
92
|
+
const defaultBannerContent = [
|
|
93
|
+
this.hasHeading && (h("div", { key: `${this.bannerId}-heading`, class: "banner-heading" }, h("slot", { key: '9886e598c972c8c77c1d25a385edb0c604b47b44', name: "heading" }))),
|
|
94
|
+
h("slot", { key: `${this.bannerId}-message` }),
|
|
95
|
+
];
|
|
96
|
+
const actionBannerContent = [
|
|
97
|
+
h("div", { key: `${this.bannerId}-content`, class: "banner-content" }, defaultBannerContent),
|
|
98
|
+
h("div", { key: `${this.bannerId}-buttons`, class: "banner-buttons" }, h("slot", { key: '0463b479e1f6e9f2c287a06109bc9037de4de2e1', name: "actions" })),
|
|
99
|
+
];
|
|
100
|
+
return (h(Host, { key: '43b3385f47d4f7dcd0a150656a79258d045d41ad', "data-version": version }, h("div", { key: 'edb9c07973a4d8b1c0a9efe7f95e9fcf5bcb4b59', role: "alert", class: this.classes, part: this.classes }, this.dismissible && (h("button", { key: '537ee712114b5095e20e30cd5681fd287da0bd5d', class: "btn-close", onClick: this.onDismissButtonClick }, h("span", { key: 'a13b1b71e64c7e732487035f2d175c5a041538c0', class: "visually-hidden" }, this.dismissLabel))), this.icon && this.icon !== 'none' && (h("post-icon", { key: `${this.bannerId}-icon`, name: this.icon })), this.hasActions ? actionBannerContent : defaultBannerContent)));
|
|
101
|
+
}
|
|
102
|
+
static get watchers() { return {
|
|
103
|
+
"dismissible": ["validateDismissible"],
|
|
104
|
+
"dismissLabel": ["validateDismissLabel"],
|
|
105
|
+
"icon": ["validateIcon"],
|
|
106
|
+
"type": ["validateType"]
|
|
107
|
+
}; }
|
|
108
|
+
static get style() { return PostBannerStyle0; }
|
|
109
|
+
}, [1, "post-banner", {
|
|
110
|
+
"dismissible": [4],
|
|
111
|
+
"dismissLabel": [1, "dismiss-label"],
|
|
112
|
+
"icon": [1],
|
|
113
|
+
"type": [1],
|
|
114
|
+
"bannerId": [32],
|
|
115
|
+
"classes": [32],
|
|
116
|
+
"hasActions": [32],
|
|
117
|
+
"hasHeading": [32],
|
|
118
|
+
"onDismissButtonClick": [32],
|
|
119
|
+
"dismiss": [64]
|
|
120
|
+
}, undefined, {
|
|
121
|
+
"dismissible": ["validateDismissible"],
|
|
122
|
+
"dismissLabel": ["validateDismissLabel"],
|
|
123
|
+
"icon": ["validateIcon"],
|
|
124
|
+
"type": ["validateType"]
|
|
125
|
+
}]);
|
|
126
|
+
function defineCustomElement() {
|
|
127
|
+
if (typeof customElements === "undefined") {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const components = ["post-banner", "post-icon"];
|
|
131
|
+
components.forEach(tagName => { switch (tagName) {
|
|
132
|
+
case "post-banner":
|
|
133
|
+
if (!customElements.get(tagName)) {
|
|
134
|
+
customElements.define(tagName, PostBanner);
|
|
135
|
+
}
|
|
136
|
+
break;
|
|
137
|
+
case "post-icon":
|
|
138
|
+
if (!customElements.get(tagName)) {
|
|
139
|
+
defineCustomElement$1();
|
|
140
|
+
}
|
|
141
|
+
break;
|
|
142
|
+
} });
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export { PostBanner as P, defineCustomElement as d };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { proxyCustomElement,
|
|
2
|
-
import { v as version } from './
|
|
1
|
+
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-3e8554e7.js';
|
|
2
|
+
import { v as version } from './p-74e13cb1.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Custom positioning reference element.
|
|
@@ -2103,7 +2103,7 @@ const computePosition = (reference, floating, options) => {
|
|
|
2103
2103
|
}
|
|
2104
2104
|
`,E=null;function I(e){if(E===null)try{E=new CSSStyleSheet,E.replaceSync(C);}catch{E=!1;}if(E===!1){let t=document.createElement("style");t.textContent=C,e instanceof Document?e.head.prepend(t):e.prepend(t);}else e.adoptedStyleSheets=[E,...e.adoptedStyleSheets];}function K(){window.ToggleEvent=window.ToggleEvent||c;function e(n){return n?.includes(":popover-open")&&(n=n.replace(J,"$1.\\:popover-open")),n}f(Document.prototype,"querySelector",e),f(Document.prototype,"querySelectorAll",e),f(Element.prototype,"querySelector",e),f(Element.prototype,"querySelectorAll",e),f(Element.prototype,"matches",e),f(Element.prototype,"closest",e),f(DocumentFragment.prototype,"querySelectorAll",e),f(DocumentFragment.prototype,"querySelectorAll",e),Object.defineProperties(HTMLElement.prototype,{popover:{enumerable:!0,configurable:!0,get(){if(!this.hasAttribute("popover"))return null;let n=(this.getAttribute("popover")||"").toLowerCase();return n===""||n=="auto"?"auto":"manual"},set(n){this.setAttribute("popover",n);}},showPopover:{enumerable:!0,configurable:!0,value(){S(this);}},hidePopover:{enumerable:!0,configurable:!0,value(){m(this,!0,!0);}},togglePopover:{enumerable:!0,configurable:!0,value(n){h.get(this)==="showing"&&n===void 0||n===!1?m(this,!0,!0):(n===void 0||n===!0)&&S(this);}}});let t=Element.prototype.attachShadow;t&&Object.defineProperties(Element.prototype,{attachShadow:{enumerable:!0,configurable:!0,writable:!0,value(n){let s=t.call(this,n);return I(s),s}}});let o=HTMLElement.prototype.attachInternals;o&&Object.defineProperties(HTMLElement.prototype,{attachInternals:{enumerable:!0,configurable:!0,writable:!0,value(){let n=o.call(this);return n.shadowRoot&&I(n.shadowRoot),n}}});let r=new WeakMap;function i(n){Object.defineProperties(n.prototype,{popoverTargetElement:{enumerable:!0,configurable:!0,set(s){if(s===null)this.removeAttribute("popovertarget"),r.delete(this);else if(s instanceof Element)this.setAttribute("popovertarget",""),r.set(this,s);else throw new TypeError("popoverTargetElement must be an element or null")},get(){if(this.localName!=="button"&&this.localName!=="input"||this.localName==="input"&&this.type!=="reset"&&this.type!=="image"&&this.type!=="button"||this.disabled||this.form&&this.type==="submit")return null;let s=r.get(this);if(s&&s.isConnected)return s;if(s&&!s.isConnected)return r.delete(this),null;let u=v(this),w=this.getAttribute("popovertarget");return (u instanceof Document||u instanceof B)&&w&&u.getElementById(w)||null}},popoverTargetAction:{enumerable:!0,configurable:!0,get(){let s=(this.getAttribute("popovertargetaction")||"").toLowerCase();return s==="show"||s==="hide"?s:"toggle"},set(s){this.setAttribute("popovertargetaction",s);}}});}i(HTMLButtonElement),i(HTMLInputElement);let l=n=>{if(!n.isTrusted)return;let s=n.composedPath()[0];if(!(s instanceof Element)||s?.shadowRoot)return;let u=v(s);if(!(u instanceof B||u instanceof Document))return;let w=s.closest("[popovertargetaction],[popovertarget]");if(w){O(w),n.preventDefault();return}},a=n=>{let s=n.key,u=n.target;!n.defaultPrevented&&u&&(s==="Escape"||s==="Esc")&&T(u.ownerDocument,!0,!0);};(n=>{n.addEventListener("click",l),n.addEventListener("keydown",a),n.addEventListener("pointerdown",x),n.addEventListener("pointerup",x);})(document),I(document);}j()||K();})();
|
|
2105
2105
|
|
|
2106
|
-
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow
|
|
2106
|
+
const postPopovercontainerCss = "@layer polyfill{@supports not selector(:popover-open){[popover]:not(.\\:popover-open){display:none}}}:where(post-popovercontainer){box-shadow:var(--post-device-elevation-300);background:var(--post-current-palette-bg);color:var(--post-current-palette-fg);position:fixed;z-index:1060;width:max-content;margin:0;padding:0;box-sizing:border-box;border:2px solid rgba(0,0,0,0);border-radius:4px;overflow:visible}:where(post-popovercontainer)[tooltip]{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);border:0}:where(post-popovercontainer):not(:has(.arrow)){box-shadow:var(--post-device-elevation-300)}:where(post-popovercontainer):has(.arrow){filter:drop-shadow(1px 2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(2px 4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(4px 8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.top){filter:drop-shadow(0px -2px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(0px -4px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(0px -8px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.left){filter:drop-shadow(-2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(-4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(-8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer):has(.arrow.right){filter:drop-shadow(2px 0px 3px hsla(216, 9%, 11%, 0.15)) drop-shadow(4px 0px 6px hsla(225, 17%, 9%, 0.15)) drop-shadow(8px 0px 12px hsla(225, 7%, 11%, 0.15))}:where(post-popovercontainer) .arrow{position:absolute;width:.5825rem;height:.5825rem;background-color:inherit;rotate:45deg;pointer-events:none;z-index:-1}:where(post-popovercontainer) .arrow.top{border-left:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.right{border-right:2px solid rgba(0,0,0,0);border-top:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.left{border-left:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}:where(post-popovercontainer) .arrow.bottom{border-right:2px solid rgba(0,0,0,0);border-bottom:2px solid rgba(0,0,0,0)}";
|
|
2107
2107
|
const PostPopovercontainerStyle0 = postPopovercontainerCss;
|
|
2108
2108
|
|
|
2109
2109
|
const SIDE_MAP = {
|
|
@@ -2112,14 +2112,11 @@ const SIDE_MAP = {
|
|
|
2112
2112
|
bottom: 'top',
|
|
2113
2113
|
left: 'right',
|
|
2114
2114
|
};
|
|
2115
|
-
const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopovercontainer extends
|
|
2115
|
+
const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopovercontainer extends H {
|
|
2116
2116
|
constructor() {
|
|
2117
2117
|
super();
|
|
2118
2118
|
this.__registerHost();
|
|
2119
2119
|
this.postToggle = createEvent(this, "postToggle", 7);
|
|
2120
|
-
this.placement = 'top';
|
|
2121
|
-
this.edgeGap = 8;
|
|
2122
|
-
this.arrow = false;
|
|
2123
2120
|
}
|
|
2124
2121
|
get host() { return this; }
|
|
2125
2122
|
arrowRef;
|
|
@@ -2130,8 +2127,25 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
|
|
|
2130
2127
|
* Fires whenever the popover gets shown or hidden, passing the new state in event.details as a boolean
|
|
2131
2128
|
*/
|
|
2132
2129
|
postToggle;
|
|
2130
|
+
/**
|
|
2131
|
+
* Whether or not the popover should close when user clicks outside of it
|
|
2132
|
+
*/
|
|
2133
|
+
manualClose = false;
|
|
2134
|
+
/**
|
|
2135
|
+
* Defines the placement of the tooltip according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
2136
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
2137
|
+
* towards the viewport if they would overlap edge boundaries.
|
|
2138
|
+
*/
|
|
2139
|
+
placement = 'top';
|
|
2140
|
+
/**
|
|
2141
|
+
* Gap between the edge of the page and the popover
|
|
2142
|
+
*/
|
|
2143
|
+
edgeGap = 8;
|
|
2144
|
+
/**
|
|
2145
|
+
* Wheter or not to display a little pointer arrow
|
|
2146
|
+
*/
|
|
2147
|
+
arrow = false;
|
|
2133
2148
|
componentDidLoad() {
|
|
2134
|
-
this.host.setAttribute('popover', '');
|
|
2135
2149
|
this.host.addEventListener('beforetoggle', this.handleToggle.bind(this));
|
|
2136
2150
|
}
|
|
2137
2151
|
disconnectedCallback() {
|
|
@@ -2249,12 +2263,13 @@ const PostPopovercontainer = /*@__PURE__*/ proxyCustomElement(class PostPopoverc
|
|
|
2249
2263
|
}
|
|
2250
2264
|
}
|
|
2251
2265
|
render() {
|
|
2252
|
-
return (h(Host, { key: '
|
|
2266
|
+
return (h(Host, { key: '6bebf9ab3013796d0eebb3d543411a0e80d2e913', "data-version": version, popover: this.manualClose ? 'manual' : 'auto' }, this.arrow && (h("span", { key: 'd6eca10452a54073a293128e8faf76e45e35c4c5', class: "arrow", ref: el => {
|
|
2253
2267
|
this.arrowRef = el;
|
|
2254
|
-
} })), h("slot", { key: '
|
|
2268
|
+
} })), h("slot", { key: '3b6674dfa1b3ffac10c6640717c7ae713577c965' })));
|
|
2255
2269
|
}
|
|
2256
2270
|
static get style() { return PostPopovercontainerStyle0; }
|
|
2257
2271
|
}, [4, "post-popovercontainer", {
|
|
2272
|
+
"manualClose": [4, "manual-close"],
|
|
2258
2273
|
"placement": [1],
|
|
2259
2274
|
"edgeGap": [2, "edge-gap"],
|
|
2260
2275
|
"arrow": [4],
|
|
@@ -1,27 +1,34 @@
|
|
|
1
|
-
import { proxyCustomElement,
|
|
2
|
-
import { v as version } from './
|
|
3
|
-
import { H as HEADING_LEVELS } from './
|
|
4
|
-
import {
|
|
5
|
-
import { n as nanoid } from './
|
|
6
|
-
import { d as defineCustomElement$3 } from './
|
|
7
|
-
import { d as defineCustomElement$2 } from './
|
|
8
|
-
import { d as defineCustomElement$1 } from './
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-3e8554e7.js';
|
|
2
|
+
import { v as version } from './p-74e13cb1.js';
|
|
3
|
+
import { H as HEADING_LEVELS } from './p-247a1668.js';
|
|
4
|
+
import { c as checkEmptyOrOneOf } from './p-eabb09ad.js';
|
|
5
|
+
import { n as nanoid } from './p-5959f2bd.js';
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-10c1a15a.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-5366ff92.js';
|
|
8
|
+
import { d as defineCustomElement$1 } from './p-fcec301c.js';
|
|
9
9
|
|
|
10
10
|
const postAccordionItemCss = ":host::after{display:block;content:\"\";margin-top:calc(var(--post-device-border-width-default)*-1);border-bottom:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}:host:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){:host:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:inherit;font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;bottom:auto;border-top:var(--post-accordion-button-border-top)}.accordion-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}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}";
|
|
11
11
|
const PostAccordionItemStyle0 = postAccordionItemCss;
|
|
12
12
|
|
|
13
|
-
const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends
|
|
13
|
+
const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends H {
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
16
|
this.__registerHost();
|
|
17
17
|
this.__attachShadow();
|
|
18
|
-
this.id = undefined;
|
|
19
|
-
this.slottedLogo = undefined;
|
|
20
|
-
this.collapsed = false;
|
|
21
|
-
this.headingLevel = undefined;
|
|
22
18
|
}
|
|
23
19
|
collapsible;
|
|
24
20
|
get host() { return this; }
|
|
21
|
+
id;
|
|
22
|
+
slottedLogo;
|
|
23
|
+
/**
|
|
24
|
+
* If `true`, the element is collapsed otherwise it is displayed.
|
|
25
|
+
*/
|
|
26
|
+
collapsed = false;
|
|
27
|
+
/**
|
|
28
|
+
* Defines the hierarchical level of the accordion item header within the headings structure.
|
|
29
|
+
* @deprecated set the `heading-level` property on the parent `post-accordion` instead.
|
|
30
|
+
*/
|
|
31
|
+
headingLevel;
|
|
25
32
|
validateHeadingLevel(newValue = this.headingLevel) {
|
|
26
33
|
checkEmptyOrOneOf(newValue, HEADING_LEVELS, 'The `heading-level` property of the `post-accordion-item` must be a number between 1 and 6.');
|
|
27
34
|
}
|
|
@@ -53,10 +60,10 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
53
60
|
render() {
|
|
54
61
|
const headingLevel = this.host.closest('post-accordion')?.getAttribute('heading-level');
|
|
55
62
|
const HeadingTag = `h${headingLevel ?? this.headingLevel ?? 2}`;
|
|
56
|
-
return (h(Host, { key: '
|
|
63
|
+
return (h(Host, { key: 'f1275370d7aff41e1fc60285395af35a1ecc90e7', id: this.id, "data-version": version }, h("div", { key: 'd74f762805143939a891e40cfa7a4779ea29921d', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: '5ddad810d8b1f8564bdaaf2b09e9e89eee96e007', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'fc6dc947d426bb31de04e83d8c9795a0c826733c', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: 'bd8005bb87e8e00fee57794bd73c5f06cb642a3d', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, part: "button" }, h("span", { key: '89eb0b80e63867e2dcd6b27d95c6519d1e86b10d', class: {
|
|
57
64
|
'logo-container': true,
|
|
58
65
|
'has-image': !!this.slottedLogo,
|
|
59
|
-
} }, h("slot", { key: '
|
|
66
|
+
} }, h("slot", { key: '0940530a15ce04b50af007db7f1530ae3c6a456d', name: "logo", onSlotchange: this.onSlotLogoChange.bind(this) })), h("slot", { key: 'f06a6b067727be0667b4ea9384e75ee8aa435bfc', name: "header" }), h("post-icon", { key: '460b2c22083cc3049e0c83fc690cb44e3f984db7', name: "2051" })))), h("post-collapsible", { key: '2411f1f93d136ae0bfcbf0da9bb2902d7da0e2a0', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: 'e648a76e35c28bc1aa5cc57233bf6e8277532294', class: "accordion-body", part: "body" }, h("slot", { key: '7841fff45f2132990d8f1577dfe7d3707d1eb46c' }))))));
|
|
60
67
|
}
|
|
61
68
|
static get watchers() { return {
|
|
62
69
|
"headingLevel": ["validateHeadingLevel"]
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
/* eslint-disable no-undefined,no-param-reassign,no-shadow */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Throttle execution of a function. Especially useful for rate limiting
|
|
5
|
+
* execution of handlers on events like resize and scroll.
|
|
6
|
+
*
|
|
7
|
+
* @param {number} delay - A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher)
|
|
8
|
+
* are most useful.
|
|
9
|
+
* @param {Function} callback - A function to be executed after delay milliseconds. The `this` context and all arguments are passed through,
|
|
10
|
+
* as-is, to `callback` when the throttled-function is executed.
|
|
11
|
+
* @param {object} [options] - An object to configure options.
|
|
12
|
+
* @param {boolean} [options.noTrailing] - Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds
|
|
13
|
+
* while the throttled-function is being called. If noTrailing is false or unspecified, callback will be executed
|
|
14
|
+
* one final time after the last throttled-function call. (After the throttled-function has not been called for
|
|
15
|
+
* `delay` milliseconds, the internal counter is reset).
|
|
16
|
+
* @param {boolean} [options.noLeading] - Optional, defaults to false. If noLeading is false, the first throttled-function call will execute callback
|
|
17
|
+
* immediately. If noLeading is true, the first the callback execution will be skipped. It should be noted that
|
|
18
|
+
* callback will never executed if both noLeading = true and noTrailing = true.
|
|
19
|
+
* @param {boolean} [options.debounceMode] - If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is
|
|
20
|
+
* false (at end), schedule `callback` to execute after `delay` ms.
|
|
21
|
+
*
|
|
22
|
+
* @returns {Function} A new, throttled, function.
|
|
23
|
+
*/
|
|
24
|
+
function throttle (delay, callback, options) {
|
|
25
|
+
var _ref = options || {},
|
|
26
|
+
_ref$noTrailing = _ref.noTrailing,
|
|
27
|
+
noTrailing = _ref$noTrailing === void 0 ? false : _ref$noTrailing,
|
|
28
|
+
_ref$noLeading = _ref.noLeading,
|
|
29
|
+
noLeading = _ref$noLeading === void 0 ? false : _ref$noLeading,
|
|
30
|
+
_ref$debounceMode = _ref.debounceMode,
|
|
31
|
+
debounceMode = _ref$debounceMode === void 0 ? undefined : _ref$debounceMode;
|
|
32
|
+
/*
|
|
33
|
+
* After wrapper has stopped being called, this timeout ensures that
|
|
34
|
+
* `callback` is executed at the proper times in `throttle` and `end`
|
|
35
|
+
* debounce modes.
|
|
36
|
+
*/
|
|
37
|
+
var timeoutID;
|
|
38
|
+
var cancelled = false;
|
|
39
|
+
|
|
40
|
+
// Keep track of the last time `callback` was executed.
|
|
41
|
+
var lastExec = 0;
|
|
42
|
+
|
|
43
|
+
// Function to clear existing timeout
|
|
44
|
+
function clearExistingTimeout() {
|
|
45
|
+
if (timeoutID) {
|
|
46
|
+
clearTimeout(timeoutID);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// Function to cancel next exec
|
|
51
|
+
function cancel(options) {
|
|
52
|
+
var _ref2 = options || {},
|
|
53
|
+
_ref2$upcomingOnly = _ref2.upcomingOnly,
|
|
54
|
+
upcomingOnly = _ref2$upcomingOnly === void 0 ? false : _ref2$upcomingOnly;
|
|
55
|
+
clearExistingTimeout();
|
|
56
|
+
cancelled = !upcomingOnly;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/*
|
|
60
|
+
* The `wrapper` function encapsulates all of the throttling / debouncing
|
|
61
|
+
* functionality and when executed will limit the rate at which `callback`
|
|
62
|
+
* is executed.
|
|
63
|
+
*/
|
|
64
|
+
function wrapper() {
|
|
65
|
+
for (var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
66
|
+
arguments_[_key] = arguments[_key];
|
|
67
|
+
}
|
|
68
|
+
var self = this;
|
|
69
|
+
var elapsed = Date.now() - lastExec;
|
|
70
|
+
if (cancelled) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Execute `callback` and update the `lastExec` timestamp.
|
|
75
|
+
function exec() {
|
|
76
|
+
lastExec = Date.now();
|
|
77
|
+
callback.apply(self, arguments_);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/*
|
|
81
|
+
* If `debounceMode` is true (at begin) this is used to clear the flag
|
|
82
|
+
* to allow future `callback` executions.
|
|
83
|
+
*/
|
|
84
|
+
function clear() {
|
|
85
|
+
timeoutID = undefined;
|
|
86
|
+
}
|
|
87
|
+
if (!noLeading && debounceMode && !timeoutID) {
|
|
88
|
+
/*
|
|
89
|
+
* Since `wrapper` is being called for the first time and
|
|
90
|
+
* `debounceMode` is true (at begin), execute `callback`
|
|
91
|
+
* and noLeading != true.
|
|
92
|
+
*/
|
|
93
|
+
exec();
|
|
94
|
+
}
|
|
95
|
+
clearExistingTimeout();
|
|
96
|
+
if (debounceMode === undefined && elapsed > delay) {
|
|
97
|
+
if (noLeading) {
|
|
98
|
+
/*
|
|
99
|
+
* In throttle mode with noLeading, if `delay` time has
|
|
100
|
+
* been exceeded, update `lastExec` and schedule `callback`
|
|
101
|
+
* to execute after `delay` ms.
|
|
102
|
+
*/
|
|
103
|
+
lastExec = Date.now();
|
|
104
|
+
if (!noTrailing) {
|
|
105
|
+
timeoutID = setTimeout(debounceMode ? clear : exec, delay);
|
|
106
|
+
}
|
|
107
|
+
} else {
|
|
108
|
+
/*
|
|
109
|
+
* In throttle mode without noLeading, if `delay` time has been exceeded, execute
|
|
110
|
+
* `callback`.
|
|
111
|
+
*/
|
|
112
|
+
exec();
|
|
113
|
+
}
|
|
114
|
+
} else if (noTrailing !== true) {
|
|
115
|
+
/*
|
|
116
|
+
* In trailing throttle mode, since `delay` time has not been
|
|
117
|
+
* exceeded, schedule `callback` to execute `delay` ms after most
|
|
118
|
+
* recent execution.
|
|
119
|
+
*
|
|
120
|
+
* If `debounceMode` is true (at begin), schedule `clear` to execute
|
|
121
|
+
* after `delay` ms.
|
|
122
|
+
*
|
|
123
|
+
* If `debounceMode` is false (at end), schedule `callback` to
|
|
124
|
+
* execute after `delay` ms.
|
|
125
|
+
*/
|
|
126
|
+
timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
wrapper.cancel = cancel;
|
|
130
|
+
|
|
131
|
+
// Return the wrapper function.
|
|
132
|
+
return wrapper;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export { throttle as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { proxyCustomElement,
|
|
2
|
-
import { c as checkEmptyOrOneOf, e as checkEmptyOrType } from './
|
|
3
|
-
import { v as version } from './
|
|
4
|
-
import { c as checkNonEmpty } from './
|
|
5
|
-
import { c as checkType } from './
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-3e8554e7.js';
|
|
2
|
+
import { c as checkEmptyOrOneOf, e as checkEmptyOrType } from './p-eabb09ad.js';
|
|
3
|
+
import { v as version } from './p-74e13cb1.js';
|
|
4
|
+
import { c as checkNonEmpty } from './p-b095519d.js';
|
|
5
|
+
import { c as checkType } from './p-8562c7dc.js';
|
|
6
6
|
|
|
7
7
|
const postIconCss = ":host{display:inline-block;width:1em;height:1em;vertical-align:-0.15em}span{display:block;width:100%;height:100%;fill:currentColor;forced-color-adjust:preserve-parent-color;background-color:currentColor;-webkit-mask-position:center center;mask-position:center center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100%;mask-size:100%}:host([flip-h]:not([flip-h=false])){scale:-1 1}:host([flip-v]:not([flip-v=false])){scale:1 -1}:host([flip-h][flip-v]:not([flip-h=false],[flip-v=false])){scale:-1}:host([animation]){transform-origin:center}:host([animation=cylon]){animation:icon-animation-cylon .75s ease-in-out infinite alternate}:host([animation=cylon-vertical]){animation:icon-animation-cylon-vertical .75s ease-in-out infinite alternate}:host([animation=spin]){animation:icon-animation-spin 2s linear infinite normal}:host([animation=spin-reverse]){animation:icon-animation-spin 2s linear infinite reverse}:host([animation=fade]){animation:icon-animation-fade .75s ease-in-out infinite alternate}:host([animation=throb]){animation:icon-animation-throb .75s ease-in-out infinite alternate}@keyframes icon-animation-cylon{from{transform:translateX(-25%)}to{transform:translateX(25%)}}@keyframes icon-animation-cylon-vertical{from{transform:translateY(25%)}to{transform:translateY(-25%)}}@keyframes icon-animation-fade{from{opacity:.1}to{opacity:1}}@keyframes icon-animation-spin{from{transform:rotate(0deg)}to{transform:rotate(359deg)}}@keyframes icon-animation-throb{from{opacity:.5;transform:scale(0.5)}to{opacity:1;transform:scale(1)}}";
|
|
8
8
|
const PostIconStyle0 = postIconCss;
|
|
@@ -17,40 +17,61 @@ const ANIMATION_NAMES = [
|
|
|
17
17
|
'throb',
|
|
18
18
|
];
|
|
19
19
|
const ANIMATION_KEYS = [...ANIMATION_NAMES];
|
|
20
|
-
const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends
|
|
20
|
+
const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends H {
|
|
21
21
|
constructor() {
|
|
22
22
|
super();
|
|
23
23
|
this.__registerHost();
|
|
24
24
|
this.__attachShadow();
|
|
25
|
-
this.animation = null;
|
|
26
|
-
this.base = null;
|
|
27
|
-
this.flipH = false;
|
|
28
|
-
this.flipV = false;
|
|
29
|
-
this.name = undefined;
|
|
30
|
-
this.rotate = null;
|
|
31
|
-
this.scale = null;
|
|
32
25
|
}
|
|
33
26
|
get host() { return this; }
|
|
27
|
+
/**
|
|
28
|
+
* The name of the animation.
|
|
29
|
+
*/
|
|
30
|
+
animation = null;
|
|
34
31
|
validateAnimation(newValue = this.animation) {
|
|
35
32
|
if (newValue !== undefined)
|
|
36
33
|
checkEmptyOrOneOf(newValue, ANIMATION_KEYS, `The post-icon "animation" prop requires one of the following values: ${ANIMATION_KEYS.join(', ')}.`);
|
|
37
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
37
|
+
*/
|
|
38
|
+
base = null;
|
|
38
39
|
validateBase(newValue = this.base) {
|
|
39
40
|
checkEmptyOrType(newValue, 'string', 'The post-icon "base" prop should be a string.');
|
|
40
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* When set to `true`, the icon will be flipped horizontally.
|
|
44
|
+
*/
|
|
45
|
+
flipH = false;
|
|
41
46
|
validateFlipH(newValue = this.flipH) {
|
|
42
47
|
checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipH" prop should be a boolean.');
|
|
43
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* When set to `true`, the icon will be flipped vertically.
|
|
51
|
+
*/
|
|
52
|
+
flipV = false;
|
|
44
53
|
validateFlipV(newValue = this.flipV) {
|
|
45
54
|
checkEmptyOrType(newValue, 'boolean', 'The post-icon "flipV" prop should be a boolean.');
|
|
46
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* The name/id of the icon (e.g. 1000, 1001, ...).
|
|
58
|
+
*/
|
|
59
|
+
name;
|
|
47
60
|
validateName(newValue = this.name) {
|
|
48
61
|
checkNonEmpty(newValue, 'The post-icon "name" prop is required!.');
|
|
49
62
|
checkType(newValue, 'string', 'The post-icon "name" prop should be a string.');
|
|
50
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* The number of degree for the css rotate transformation.
|
|
66
|
+
*/
|
|
67
|
+
rotate = null;
|
|
51
68
|
validateRotate(newValue = this.rotate) {
|
|
52
69
|
checkEmptyOrType(newValue, 'number', 'The post-icon "rotate" prop should be a number.');
|
|
53
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* The number for the css scale transformation.
|
|
73
|
+
*/
|
|
74
|
+
scale = null;
|
|
54
75
|
validateScale(newValue = this.scale) {
|
|
55
76
|
checkEmptyOrType(newValue, 'number', 'The post-icon "scale" prop should be a number.');
|
|
56
77
|
}
|
|
@@ -122,7 +143,7 @@ const PostIcon = /*@__PURE__*/ proxyCustomElement(class PostIcon extends HTMLEle
|
|
|
122
143
|
this.validateAnimation();
|
|
123
144
|
}
|
|
124
145
|
render() {
|
|
125
|
-
return (h(Host, { key: '
|
|
146
|
+
return (h(Host, { key: '6c494ba3cdd2ee173fa99a8ce8ff0e8ab5cf2979', "data-version": version }, h("span", { key: 'd9e0192a2788541b97bf3e25468129ac335d44b5', style: this.getStyles() })));
|
|
126
147
|
}
|
|
127
148
|
static get watchers() { return {
|
|
128
149
|
"animation": ["validateAnimation"],
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostAccordionItem$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostAccordionItem$1, d as defineCustomElement$1 } from './p-f60c925d.js';
|
|
2
2
|
|
|
3
3
|
const PostAccordionItem = PostAccordionItem$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBackToTop$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBackToTop$1, d as defineCustomElement$1 } from './p-8b750ccb.js';
|
|
2
2
|
|
|
3
3
|
const PostBackToTop = PostBackToTop$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBreadcrumbItem$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBreadcrumbItem$1, d as defineCustomElement$1 } from './p-80478535.js';
|
|
2
2
|
|
|
3
3
|
const PostBreadcrumbItem = PostBreadcrumbItem$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostBreadcrumb$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostBreadcrumb$1, d as defineCustomElement$1 } from './p-23b12eda.js';
|
|
2
2
|
|
|
3
3
|
const PostBreadcrumb = PostBreadcrumb$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as PostCardControl$1, d as defineCustomElement$1 } from './
|
|
1
|
+
import { P as PostCardControl$1, d as defineCustomElement$1 } from './p-6d591e1c.js';
|
|
2
2
|
|
|
3
3
|
const PostCardControl = PostCardControl$1;
|
|
4
4
|
const defineCustomElement = defineCustomElement$1;
|