@swisspost/design-system-components 10.0.0-next.39 → 10.0.0-next.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/breakpoints-DIH5Oaz7.js +186 -0
- package/dist/cjs/event-from-AKK8RQrn.js +107 -0
- package/dist/cjs/{get-root-8102fecd.js → get-root-DmyBVSJ_.js} +1 -1
- package/dist/cjs/{index-b60129c4.js → index-CRMt-jq2.js} +1172 -313
- package/dist/cjs/index.cjs.js +0 -72
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/{package-29dc73af.js → package-C2pR6Vs2.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +183 -0
- package/dist/cjs/post-avatar.cjs.entry.js +151 -8
- package/dist/cjs/post-back-to-top.cjs.entry.js +86 -9
- package/dist/cjs/post-banner.cjs.entry.js +81 -9
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +62 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +119 -7
- package/dist/cjs/post-card-control.cjs.entry.js +283 -8
- package/dist/cjs/post-closebutton_15.cjs.entry.js +4376 -30
- package/dist/cjs/post-collapsible_2.cjs.entry.js +196 -10
- package/dist/cjs/post-components.cjs.js +7 -8
- package/dist/cjs/post-footer.cjs.entry.js +59 -8
- package/dist/cjs/post-linkarea.cjs.entry.js +24 -6
- package/dist/cjs/post-popover.cjs.entry.js +151 -8
- package/dist/cjs/post-rating.cjs.entry.js +115 -8
- package/dist/cjs/post-tab-header.cjs.entry.js +26 -9
- package/dist/cjs/post-tab-panel.cjs.entry.js +28 -9
- package/dist/cjs/post-tabs.cjs.entry.js +165 -7
- package/dist/cjs/post-tag.cjs.entry.js +50 -8
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +5195 -7
- package/dist/cjs/post-tooltip.cjs.entry.js +78 -9
- package/dist/collection/collection-manifest.json +4 -4
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +39 -23
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +26 -12
- package/dist/collection/components/post-avatar/post-avatar.js +12 -9
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -3
- package/dist/collection/components/post-banner/post-banner.js +18 -9
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +4 -6
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +13 -9
- package/dist/collection/components/post-card-control/post-card-control.js +33 -16
- package/dist/collection/components/post-collapsible/post-collapsible.js +6 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +21 -9
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +35 -15
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +28 -16
- package/dist/collection/components/post-icon/post-icon.js +66 -54
- package/dist/collection/components/post-language-option/post-language-option.css +1 -1
- package/dist/collection/components/post-language-option/post-language-option.js +17 -13
- package/dist/collection/components/post-language-switch/post-language-switch.css +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +43 -24
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-list/post-list.js +13 -4
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +4 -5
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +12 -6
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +34 -20
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +43 -21
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -0
- package/dist/collection/components/post-menu-item/post-menu-item.js +11 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +9 -5
- package/dist/collection/components/post-popover/post-popover.js +20 -6
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +44 -16
- package/dist/collection/components/post-rating/post-rating.js +26 -6
- package/dist/collection/components/post-tab-header/post-tab-header.js +4 -6
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +4 -6
- package/dist/collection/components/post-tabs/post-tabs.js +4 -3
- package/dist/collection/components/post-tag/post-tag.js +11 -9
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +8 -3
- package/dist/collection/components/post-tooltip/post-tooltip.js +25 -7
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +20 -12
- package/dist/collection/index.js +1 -37
- package/dist/collection/utils/breakpoints.js +38 -45
- package/dist/collection/utils/event-from.js +103 -0
- package/dist/collection/utils/index.js +1 -1
- package/dist/components/index.js +2315 -37
- package/dist/components/p-1KLiMO0w.js +3 -0
- package/dist/components/p-8U5GFtQP.js +105 -0
- package/dist/components/{post-menu2.js → p-BLhBouGz.js} +51 -30
- package/dist/{esm/index-ffccd040.js → components/p-CV7fm1rW.js} +1 -1
- package/dist/components/{post-menu-trigger2.js → p-CaPj3whI.js} +14 -12
- package/dist/components/{post-breadcrumb-item2.js → p-Cpaqct04.js} +9 -11
- package/dist/components/p-CtNCtg2z.js +114 -0
- package/dist/components/p-Cx0AiN2A.js +182 -0
- package/{loaders/post-collapsible-trigger2.js → dist/components/p-D3LhzIrC.js} +25 -14
- package/dist/components/{get-root.js → p-DBHo9yGF.js} +1 -1
- package/dist/components/p-DQuPPEca.js +31 -0
- package/dist/components/{post-accordion2.js → p-DlEtlaNu.js} +42 -29
- package/dist/components/{post-collapsible2.js → p-DphlfQse.js} +11 -8
- package/dist/components/{post-popovercontainer2.js → p-elg4VvHg.js} +246 -278
- package/{loaders/post-icon2.js → dist/components/p-fmA57Ivd.js} +52 -54
- package/dist/components/post-accordion-item.js +1 -1
- package/dist/components/post-accordion.js +1 -1
- package/dist/components/post-avatar.js +183 -1
- package/dist/components/post-back-to-top.js +115 -1
- package/dist/components/post-banner.js +120 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +182 -1
- package/dist/components/post-card-control.js +322 -1
- package/dist/components/post-closebutton.js +37 -1
- package/dist/components/post-collapsible-trigger.js +1 -1
- package/dist/components/post-collapsible.js +1 -1
- package/dist/components/post-footer.js +112 -1
- package/dist/components/post-header.js +273 -1
- package/dist/components/post-icon.js +1 -1
- package/dist/components/post-language-option.js +96 -1
- package/dist/components/post-language-switch.js +154 -1
- package/dist/components/post-linkarea.js +41 -1
- package/dist/components/post-list-item.js +34 -1
- package/dist/components/post-list.js +57 -1
- package/dist/components/post-logo.js +54 -1
- package/dist/components/post-mainnavigation.js +181 -1
- package/dist/components/post-megadropdown-trigger.js +132 -1
- package/dist/components/post-megadropdown.js +194 -1
- package/dist/components/post-menu-item.js +1 -1
- package/dist/components/post-menu-trigger.js +1 -1
- package/dist/components/post-menu.js +1 -1
- package/dist/components/post-popover.js +184 -1
- package/dist/components/post-popovercontainer.js +1 -1
- package/dist/components/post-rating.js +148 -1
- package/dist/components/post-tab-header.js +48 -1
- package/dist/components/post-tab-panel.js +50 -1
- package/dist/components/post-tabs.js +186 -1
- package/dist/components/post-tag.js +82 -1
- package/dist/components/post-togglebutton.js +52 -1
- package/dist/components/post-tooltip-trigger.js +5218 -1
- package/dist/components/post-tooltip.js +110 -1
- package/dist/docs.d.ts +8 -0
- package/dist/docs.json +426 -118
- package/dist/esm/breakpoints-DyVir0ex.js +182 -0
- package/dist/esm/event-from-8U5GFtQP.js +105 -0
- package/{loaders/get-root.js → dist/esm/get-root-D9QC9-TY.js} +1 -1
- package/{loaders/index2.js → dist/esm/index-BWC0gtGU.js} +1 -1
- package/dist/esm/{index-f4d19816.js → index-CVhzhVv0.js} +1169 -309
- package/dist/esm/index.js +1 -31
- package/dist/esm/loader.js +3 -4
- package/dist/esm/package-1KLiMO0w.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +180 -0
- package/dist/esm/post-avatar.entry.js +154 -5
- package/dist/esm/post-back-to-top.entry.js +89 -6
- package/dist/esm/post-banner.entry.js +85 -7
- package/dist/esm/post-breadcrumb-item_2.entry.js +65 -5
- package/dist/esm/post-breadcrumbs.entry.js +123 -5
- package/dist/esm/post-card-control.entry.js +286 -5
- package/dist/esm/post-closebutton_15.entry.js +4362 -10
- package/dist/esm/post-collapsible_2.entry.js +199 -7
- package/dist/esm/post-components.js +5 -5
- package/dist/esm/post-footer.entry.js +62 -5
- package/dist/esm/post-linkarea.entry.js +27 -3
- package/dist/esm/post-popover.entry.js +155 -6
- package/dist/esm/post-rating.entry.js +118 -5
- package/dist/esm/post-tab-header.entry.js +29 -6
- package/dist/esm/post-tab-panel.entry.js +31 -6
- package/dist/esm/post-tabs.entry.js +169 -5
- package/dist/esm/post-tag.entry.js +53 -5
- package/dist/esm/post-tooltip-trigger.entry.js +5199 -5
- package/dist/esm/post-tooltip.entry.js +81 -6
- package/dist/post-components/index.esm.js +0 -1
- package/dist/post-components/p-0d08ab13.entry.js +1 -0
- package/dist/post-components/p-1KLiMO0w.js +1 -0
- package/dist/post-components/p-1e006e29.entry.js +1 -0
- package/dist/post-components/p-3a5bdb7f.entry.js +1 -0
- package/dist/post-components/p-4214b85e.entry.js +1 -0
- package/dist/post-components/p-50916d48.entry.js +1 -0
- package/dist/post-components/p-5f4126d8.entry.js +1 -0
- package/dist/post-components/p-62982420.entry.js +1 -0
- package/dist/post-components/p-78f4dd12.entry.js +1 -0
- package/dist/post-components/p-7a7d237b.entry.js +1 -0
- package/dist/post-components/p-80174475.entry.js +1 -0
- package/dist/post-components/p-8U5GFtQP.js +1 -0
- package/dist/post-components/p-8d5a4218.entry.js +1 -0
- package/dist/post-components/p-8e89ccc1.entry.js +1 -0
- package/dist/post-components/p-9003674b.entry.js +1 -0
- package/dist/post-components/p-925aee3d.entry.js +1 -0
- package/dist/post-components/p-9b446561.entry.js +1 -0
- package/dist/post-components/p-9ec29527.entry.js +1 -0
- package/dist/post-components/{p-b176309b.js → p-BWC0gtGU.js} +1 -1
- package/dist/post-components/{p-6b31a76a.js → p-Bkp2QDth.js} +1 -1
- package/dist/post-components/p-CVhzhVv0.js +2 -0
- package/dist/post-components/p-DyVir0ex.js +1 -0
- package/dist/post-components/p-ec764922.entry.js +1 -0
- package/dist/post-components/p-fa550b4a.entry.js +1 -0
- package/dist/post-components/p-fb46e260.entry.js +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-footer/post-footer.d.ts +7 -3
- package/dist/types/components/post-header/post-header.d.ts +1 -0
- package/dist/types/components/post-icon/post-icon.d.ts +0 -4
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +1 -0
- package/dist/types/components/post-tag/post-tag.d.ts +1 -1
- package/dist/types/components.d.ts +61 -1
- package/dist/types/index.d.ts +10 -37
- package/dist/types/stencil-public-runtime.d.ts +29 -1
- package/dist/types/utils/breakpoints.d.ts +12 -7
- package/dist/types/utils/event-from.d.ts +9 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/hydrate/index.d.ts +273 -0
- package/hydrate/index.js +32002 -0
- package/hydrate/index.mjs +31994 -0
- package/hydrate/package.json +12 -0
- package/package.json +45 -17
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/breakpoints-cdf1b747.js +0 -59
- package/dist/cjs/event-guard-efabc84f.js +0 -47
- package/dist/cjs/heading-levels-608d432e.js +0 -5
- package/dist/cjs/post-accordion-c433c493.js +0 -105
- package/dist/cjs/post-accordion-item-8d5a301d.js +0 -64
- package/dist/cjs/post-accordion-item.cjs.entry.js +0 -16
- package/dist/cjs/post-accordion.cjs.entry.js +0 -15
- package/dist/cjs/post-avatar-421043df.js +0 -162
- package/dist/cjs/post-back-to-top-3cca3803.js +0 -93
- package/dist/cjs/post-banner-2e99c9d8.js +0 -87
- package/dist/cjs/post-breadcrumbs-1be50860.js +0 -126
- package/dist/cjs/post-card-control-0bfdad92.js +0 -290
- package/dist/cjs/post-collapsible-trigger-4180b218.js +0 -190
- package/dist/cjs/post-footer-92adffac.js +0 -48
- package/dist/cjs/post-linkarea-26c457b3.js +0 -30
- package/dist/cjs/post-menu-item-d0a53c84.js +0 -68
- package/dist/cjs/post-popover-36cead3d.js +0 -150
- package/dist/cjs/post-rating-f50a9939.js +0 -109
- package/dist/cjs/post-tab-header-f47508da.js +0 -34
- package/dist/cjs/post-tab-panel-7c51798b.js +0 -36
- package/dist/cjs/post-tabs-2debea01.js +0 -173
- package/dist/cjs/post-tag-ac62c57f.js +0 -60
- package/dist/cjs/post-togglebutton-43c46511.js +0 -4491
- package/dist/cjs/post-tooltip-b7dcfb44.js +0 -74
- package/dist/cjs/post-tooltip-trigger-904061b6.js +0 -4685
- package/dist/collection/utils/event-guard.js +0 -43
- package/dist/components/breakpoints.js +0 -56
- package/dist/components/event-guard.js +0 -45
- package/dist/components/index2.js +0 -88
- package/dist/components/package.js +0 -3
- package/dist/components/post-accordion-item2.js +0 -103
- package/dist/components/post-avatar2.js +0 -190
- package/dist/components/post-back-to-top2.js +0 -118
- package/dist/components/post-banner2.js +0 -121
- package/dist/components/post-breadcrumbs2.js +0 -184
- package/dist/components/post-card-control2.js +0 -325
- package/dist/components/post-closebutton2.js +0 -39
- package/dist/components/post-collapsible-trigger2.js +0 -125
- package/dist/components/post-footer2.js +0 -90
- package/dist/components/post-header2.js +0 -397
- package/dist/components/post-icon2.js +0 -156
- package/dist/components/post-language-option2.js +0 -102
- package/dist/components/post-language-switch2.js +0 -143
- package/dist/components/post-linkarea2.js +0 -43
- package/dist/components/post-list-item2.js +0 -36
- package/dist/components/post-list2.js +0 -54
- package/dist/components/post-logo2.js +0 -57
- package/dist/components/post-mainnavigation2.js +0 -183
- package/dist/components/post-megadropdown-trigger2.js +0 -121
- package/dist/components/post-megadropdown2.js +0 -190
- package/dist/components/post-menu-item2.js +0 -27
- package/dist/components/post-popover2.js +0 -178
- package/dist/components/post-rating2.js +0 -138
- package/dist/components/post-tab-header2.js +0 -52
- package/dist/components/post-tab-panel2.js +0 -54
- package/dist/components/post-tabs2.js +0 -189
- package/dist/components/post-tag2.js +0 -88
- package/dist/components/post-togglebutton2.js +0 -51
- package/dist/components/post-tooltip-trigger2.js +0 -4703
- package/dist/components/post-tooltip2.js +0 -102
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/breakpoints-7812702e.js +0 -56
- package/dist/esm/event-guard-538ee077.js +0 -45
- package/dist/esm/get-root-1b1af46f.js +0 -15
- package/dist/esm/heading-levels-5b7b4349.js +0 -3
- package/dist/esm/package-8503eaa8.js +0 -3
- package/dist/esm/post-accordion-9365faca.js +0 -103
- package/dist/esm/post-accordion-item-2dc8e3b7.js +0 -62
- package/dist/esm/post-accordion-item.entry.js +0 -8
- package/dist/esm/post-accordion.entry.js +0 -7
- package/dist/esm/post-avatar-4f73dc4d.js +0 -160
- package/dist/esm/post-back-to-top-8f759d32.js +0 -91
- package/dist/esm/post-banner-ad979275.js +0 -85
- package/dist/esm/post-breadcrumbs-a20336c7.js +0 -124
- package/dist/esm/post-card-control-3c77e778.js +0 -288
- package/dist/esm/post-collapsible-trigger-5fd0e193.js +0 -187
- package/dist/esm/post-footer-3e117b5a.js +0 -46
- package/dist/esm/post-linkarea-16a14609.js +0 -28
- package/dist/esm/post-menu-item-b1604fe4.js +0 -65
- package/dist/esm/post-popover-49096648.js +0 -148
- package/dist/esm/post-rating-405bee8f.js +0 -107
- package/dist/esm/post-tab-header-b228c217.js +0 -32
- package/dist/esm/post-tab-panel-98110b64.js +0 -34
- package/dist/esm/post-tabs-44d9313c.js +0 -171
- package/dist/esm/post-tag-99cc9616.js +0 -58
- package/dist/esm/post-togglebutton-ea73e63f.js +0 -4475
- package/dist/esm/post-tooltip-78cd2988.js +0 -72
- package/dist/esm/post-tooltip-trigger-bdb21c45.js +0 -4683
- package/dist/post-components/p-0889c759.js +0 -1
- package/dist/post-components/p-09dd5aa4.js +0 -1
- package/dist/post-components/p-0f9322e5.js +0 -8
- package/dist/post-components/p-11572299.js +0 -1
- package/dist/post-components/p-19a83519.entry.js +0 -1
- package/dist/post-components/p-1afb3c43.entry.js +0 -1
- package/dist/post-components/p-214cd032.js +0 -1
- package/dist/post-components/p-21e5b028.js +0 -1
- package/dist/post-components/p-2320305b.js +0 -1
- package/dist/post-components/p-247a1668.js +0 -1
- package/dist/post-components/p-2523f97b.entry.js +0 -1
- package/dist/post-components/p-2bd3a436.js +0 -1
- package/dist/post-components/p-2ce8fbf5.js +0 -1
- package/dist/post-components/p-2f879f4e.entry.js +0 -1
- package/dist/post-components/p-33e26845.entry.js +0 -1
- package/dist/post-components/p-38b1c71e.entry.js +0 -1
- package/dist/post-components/p-38d59732.js +0 -1
- package/dist/post-components/p-3a67f1ff.js +0 -1
- package/dist/post-components/p-41450b6c.entry.js +0 -1
- package/dist/post-components/p-4c23ed05.entry.js +0 -1
- package/dist/post-components/p-57746c40.js +0 -1
- package/dist/post-components/p-6313d72e.entry.js +0 -1
- package/dist/post-components/p-64e0b0fc.js +0 -1
- package/dist/post-components/p-658a2e34.entry.js +0 -1
- package/dist/post-components/p-722ffaae.js +0 -1
- package/dist/post-components/p-746d3cd3.entry.js +0 -1
- package/dist/post-components/p-79a2dad0.entry.js +0 -1
- package/dist/post-components/p-7dd1807c.js +0 -1
- package/dist/post-components/p-817fbeaf.js +0 -1
- package/dist/post-components/p-85950200.js +0 -1
- package/dist/post-components/p-8ebecf22.entry.js +0 -1
- package/dist/post-components/p-8ed1cb53.entry.js +0 -1
- package/dist/post-components/p-91244b25.js +0 -1
- package/dist/post-components/p-91675004.js +0 -1
- package/dist/post-components/p-94ebc430.js +0 -1
- package/dist/post-components/p-95727a4f.entry.js +0 -1
- package/dist/post-components/p-9e461613.js +0 -2
- package/dist/post-components/p-a844da3a.entry.js +0 -1
- package/dist/post-components/p-af900651.js +0 -1
- package/dist/post-components/p-b373659e.entry.js +0 -1
- package/dist/post-components/p-b500b245.js +0 -1
- package/dist/post-components/p-bf182745.entry.js +0 -1
- package/dist/post-components/p-c9b6f9e7.entry.js +0 -1
- package/dist/post-components/p-cb7d8f67.entry.js +0 -1
- package/dist/post-components/p-e1255160.js +0 -1
- package/dist/post-components/p-e28eb73a.js +0 -1
- package/dist/types/popover-fn.d.ts +0 -11
- package/dist/types/utils/event-guard.d.ts +0 -4
- package/loader/package.json +0 -11
- package/loaders/breakpoints.js +0 -56
- package/loaders/event-guard.js +0 -45
- package/loaders/fade.js +0 -11
- package/loaders/get-focusable-children.js +0 -35
- package/loaders/heading-levels.js +0 -3
- package/loaders/index.browser.js +0 -14
- package/loaders/index.d.ts +0 -108
- package/loaders/index.js +0 -39
- package/loaders/long-press-event.js +0 -264
- package/loaders/package.js +0 -3
- package/loaders/post-accordion-item.d.ts +0 -11
- package/loaders/post-accordion-item.js +0 -6
- package/loaders/post-accordion-item2.js +0 -103
- package/loaders/post-accordion.d.ts +0 -11
- package/loaders/post-accordion.js +0 -129
- package/loaders/post-avatar.d.ts +0 -11
- package/loaders/post-avatar.js +0 -193
- package/loaders/post-back-to-top.d.ts +0 -11
- package/loaders/post-back-to-top.js +0 -121
- package/loaders/post-banner.d.ts +0 -11
- package/loaders/post-banner.js +0 -124
- package/loaders/post-breadcrumb-item.d.ts +0 -11
- package/loaders/post-breadcrumb-item.js +0 -6
- package/loaders/post-breadcrumb-item2.js +0 -82
- package/loaders/post-breadcrumbs.d.ts +0 -11
- package/loaders/post-breadcrumbs.js +0 -187
- package/loaders/post-card-control.d.ts +0 -11
- package/loaders/post-card-control.js +0 -328
- package/loaders/post-closebutton.d.ts +0 -11
- package/loaders/post-closebutton.js +0 -42
- package/loaders/post-collapsible-trigger.d.ts +0 -11
- package/loaders/post-collapsible-trigger.js +0 -6
- package/loaders/post-collapsible.d.ts +0 -11
- package/loaders/post-collapsible.js +0 -6
- package/loaders/post-collapsible2.js +0 -108
- package/loaders/post-footer.d.ts +0 -11
- package/loaders/post-footer.js +0 -93
- package/loaders/post-header.d.ts +0 -11
- package/loaders/post-header.js +0 -400
- package/loaders/post-icon.d.ts +0 -11
- package/loaders/post-icon.js +0 -6
- package/loaders/post-language-option.d.ts +0 -11
- package/loaders/post-language-option.js +0 -105
- package/loaders/post-language-switch.d.ts +0 -11
- package/loaders/post-language-switch.js +0 -146
- package/loaders/post-linkarea.d.ts +0 -11
- package/loaders/post-linkarea.js +0 -46
- package/loaders/post-list-item.d.ts +0 -11
- package/loaders/post-list-item.js +0 -39
- package/loaders/post-list.d.ts +0 -11
- package/loaders/post-list.js +0 -57
- package/loaders/post-logo.d.ts +0 -11
- package/loaders/post-logo.js +0 -60
- package/loaders/post-mainnavigation.d.ts +0 -11
- package/loaders/post-mainnavigation.js +0 -186
- package/loaders/post-megadropdown-trigger.d.ts +0 -11
- package/loaders/post-megadropdown-trigger.js +0 -124
- package/loaders/post-megadropdown.d.ts +0 -11
- package/loaders/post-megadropdown.js +0 -193
- package/loaders/post-menu-item.d.ts +0 -11
- package/loaders/post-menu-item.js +0 -6
- package/loaders/post-menu-item2.js +0 -27
- package/loaders/post-menu-trigger.d.ts +0 -11
- package/loaders/post-menu-trigger.js +0 -6
- package/loaders/post-menu-trigger2.js +0 -109
- package/loaders/post-menu.d.ts +0 -11
- package/loaders/post-menu.js +0 -6
- package/loaders/post-menu2.js +0 -202
- package/loaders/post-popover.d.ts +0 -11
- package/loaders/post-popover.js +0 -181
- package/loaders/post-popovercontainer.d.ts +0 -11
- package/loaders/post-popovercontainer.js +0 -6
- package/loaders/post-popovercontainer2.js +0 -3051
- package/loaders/post-rating.d.ts +0 -11
- package/loaders/post-rating.js +0 -141
- package/loaders/post-tab-header.d.ts +0 -11
- package/loaders/post-tab-header.js +0 -55
- package/loaders/post-tab-panel.d.ts +0 -11
- package/loaders/post-tab-panel.js +0 -57
- package/loaders/post-tabs.d.ts +0 -11
- package/loaders/post-tabs.js +0 -192
- package/loaders/post-tag.d.ts +0 -11
- package/loaders/post-tag.js +0 -91
- package/loaders/post-togglebutton.d.ts +0 -11
- package/loaders/post-togglebutton.js +0 -54
- package/loaders/post-tooltip-trigger.d.ts +0 -11
- package/loaders/post-tooltip-trigger.js +0 -4706
- package/loaders/post-tooltip.d.ts +0 -11
- package/loaders/post-tooltip.js +0 -105
- package/loaders/slide.js +0 -25
- package/loaders/switch-variants.js +0 -3
- /package/dist/cjs/{fade-72d5ef55.js → fade-nS5zzDQS.js} +0 -0
- /package/dist/cjs/{index-2b2b85e5.js → index-DtvYdwe1.js} +0 -0
- /package/dist/cjs/{index.browser-4af21c17.js → index.browser-Doj636JV.js} +0 -0
- /package/dist/cjs/{long-press-event-6e62d113.js → long-press-event-Q8jMUNXD.js} +0 -0
- /package/dist/cjs/{placement-b2bb6ec4.js → placement-qEFR9hmI.js} +0 -0
- /package/dist/cjs/{slide-cd1f09b3.js → slide-CbBL7A8w.js} +0 -0
- /package/dist/components/{index.browser.js → p-BLchVpF6.js} +0 -0
- /package/dist/components/{slide.js → p-BuLMaH5t.js} +0 -0
- /package/dist/components/{get-focusable-children.js → p-C35MCWIp.js} +0 -0
- /package/dist/components/{long-press-event.js → p-C_2k3G1c.js} +0 -0
- /package/dist/components/{switch-variants.js → p-DjIHLduJ.js} +0 -0
- /package/dist/components/{fade.js → p-SbIC4aZX.js} +0 -0
- /package/dist/components/{heading-levels.js → p-r4txK0AC.js} +0 -0
- /package/dist/esm/{fade-1f3cacf4.js → fade-SbIC4aZX.js} +0 -0
- /package/dist/esm/{index.browser-ff103197.js → index.browser-BLchVpF6.js} +0 -0
- /package/dist/esm/{long-press-event-04d24397.js → long-press-event-C_2k3G1c.js} +0 -0
- /package/dist/esm/{placement-8d56605d.js → placement-DRiVosES.js} +0 -0
- /package/dist/esm/{slide-cd2850ee.js → slide-BuLMaH5t.js} +0 -0
- /package/dist/post-components/{p-c65f32b0.js → p-BLchVpF6.js} +0 -0
- /package/dist/post-components/{p-9b052461.js → p-BuLMaH5t.js} +0 -0
- /package/dist/post-components/{p-8db32dab.js → p-C_2k3G1c.js} +0 -0
- /package/dist/post-components/{p-59a38c23.js → p-DRiVosES.js} +0 -0
- /package/dist/post-components/{p-64e3de38.js → p-SbIC4aZX.js} +0 -0
|
@@ -4,18 +4,34 @@ import { version } from "../../../../package";
|
|
|
4
4
|
import { arrow, autoUpdate, computePosition, flip, inline, limitShift, offset, shift, size, } from "@floating-ui/dom";
|
|
5
5
|
import { PLACEMENT_TYPES } from "../../types/index";
|
|
6
6
|
// Polyfill for popovers, can be removed when https://caniuse.com/?search=popover is green
|
|
7
|
-
import { apply, isSupported } from "@oddbird/popover-polyfill/
|
|
7
|
+
import { apply, isSupported } from "@oddbird/popover-polyfill/fn";
|
|
8
8
|
/**
|
|
9
9
|
* @slot - Default slot for placing content inside the popovercontainer.
|
|
10
10
|
*/
|
|
11
11
|
export class PostPopovercontainer {
|
|
12
12
|
constructor() {
|
|
13
|
+
/**
|
|
14
|
+
* Defines the placement of the popovercontainer according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.
|
|
15
|
+
* Popovercontainers are automatically flipped to the opposite side if there is not enough available space and are shifted
|
|
16
|
+
* towards the viewport if they would overlap edge boundaries.
|
|
17
|
+
*/
|
|
13
18
|
this.placement = 'top';
|
|
19
|
+
/**
|
|
20
|
+
* Gap between the edge of the page and the popovercontainer
|
|
21
|
+
*/
|
|
14
22
|
this.edgeGap = 8;
|
|
23
|
+
/**
|
|
24
|
+
* Animation style
|
|
25
|
+
*/
|
|
15
26
|
this.animation = null;
|
|
27
|
+
/**
|
|
28
|
+
* Whether or not to display a little pointer arrow
|
|
29
|
+
*/
|
|
16
30
|
this.arrow = false;
|
|
31
|
+
/**
|
|
32
|
+
* Whether or not the popovercontainer should close when user clicks outside of it
|
|
33
|
+
*/
|
|
17
34
|
this.manualClose = false;
|
|
18
|
-
this.safeSpace = undefined;
|
|
19
35
|
}
|
|
20
36
|
validatePlacement() {
|
|
21
37
|
checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
|
|
@@ -53,11 +69,11 @@ export class PostPopovercontainer {
|
|
|
53
69
|
* @param target An element with [data-popover-target="id"] where the popovercontainer should be shown
|
|
54
70
|
*/
|
|
55
71
|
async show(target) {
|
|
56
|
-
if (
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
72
|
+
if (this.toggleTimeoutId)
|
|
73
|
+
return;
|
|
74
|
+
this.eventTarget = target;
|
|
75
|
+
this.calculatePosition();
|
|
76
|
+
this.host.showPopover();
|
|
61
77
|
}
|
|
62
78
|
/**
|
|
63
79
|
* Programmatically hide the popovercontainer
|
|
@@ -235,9 +251,9 @@ export class PostPopovercontainer {
|
|
|
235
251
|
}
|
|
236
252
|
render() {
|
|
237
253
|
const animationClass = this.animation ? `animate-${this.animation}` : '';
|
|
238
|
-
return (h(Host, { key: '
|
|
254
|
+
return (h(Host, { key: '357f53696ca28ab2c137d47e2192038dc756c289', "data-version": version, popover: this.manualClose ? 'manual' : 'auto' }, h("div", { key: '9c40bdc5034ccf14157ee1ae8ce33fe58a9049e4', class: animationClass }, this.arrow && (h("span", { key: '6133ab54aaea6f198560ca5cb30f5604318203f6', class: "arrow", ref: el => {
|
|
239
255
|
this.arrowRef = el;
|
|
240
|
-
} })), h("slot", { key: '
|
|
256
|
+
} })), h("slot", { key: '39f53833a3f570b2c8807a5903b531c6733b0ada' }))));
|
|
241
257
|
}
|
|
242
258
|
static get is() { return "post-popovercontainer"; }
|
|
243
259
|
static get originalStyleUrls() {
|
|
@@ -254,6 +270,7 @@ export class PostPopovercontainer {
|
|
|
254
270
|
return {
|
|
255
271
|
"placement": {
|
|
256
272
|
"type": "string",
|
|
273
|
+
"attribute": "placement",
|
|
257
274
|
"mutable": false,
|
|
258
275
|
"complexType": {
|
|
259
276
|
"original": "Placement",
|
|
@@ -262,7 +279,7 @@ export class PostPopovercontainer {
|
|
|
262
279
|
"Placement": {
|
|
263
280
|
"location": "import",
|
|
264
281
|
"path": "@floating-ui/dom",
|
|
265
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.
|
|
282
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
266
283
|
}
|
|
267
284
|
}
|
|
268
285
|
},
|
|
@@ -272,12 +289,14 @@ export class PostPopovercontainer {
|
|
|
272
289
|
"tags": [],
|
|
273
290
|
"text": "Defines the placement of the popovercontainer according to the floating-ui options available at https://floating-ui.com/docs/computePosition#placement.\nPopovercontainers 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."
|
|
274
291
|
},
|
|
275
|
-
"
|
|
292
|
+
"getter": false,
|
|
293
|
+
"setter": false,
|
|
276
294
|
"reflect": false,
|
|
277
295
|
"defaultValue": "'top'"
|
|
278
296
|
},
|
|
279
297
|
"edgeGap": {
|
|
280
298
|
"type": "number",
|
|
299
|
+
"attribute": "edge-gap",
|
|
281
300
|
"mutable": false,
|
|
282
301
|
"complexType": {
|
|
283
302
|
"original": "number",
|
|
@@ -290,12 +309,14 @@ export class PostPopovercontainer {
|
|
|
290
309
|
"tags": [],
|
|
291
310
|
"text": "Gap between the edge of the page and the popovercontainer"
|
|
292
311
|
},
|
|
293
|
-
"
|
|
312
|
+
"getter": false,
|
|
313
|
+
"setter": false,
|
|
294
314
|
"reflect": false,
|
|
295
315
|
"defaultValue": "8"
|
|
296
316
|
},
|
|
297
317
|
"animation": {
|
|
298
318
|
"type": "string",
|
|
319
|
+
"attribute": "animation",
|
|
299
320
|
"mutable": false,
|
|
300
321
|
"complexType": {
|
|
301
322
|
"original": "'pop-in' | null",
|
|
@@ -308,12 +329,14 @@ export class PostPopovercontainer {
|
|
|
308
329
|
"tags": [],
|
|
309
330
|
"text": "Animation style"
|
|
310
331
|
},
|
|
311
|
-
"
|
|
332
|
+
"getter": false,
|
|
333
|
+
"setter": false,
|
|
312
334
|
"reflect": false,
|
|
313
335
|
"defaultValue": "null"
|
|
314
336
|
},
|
|
315
337
|
"arrow": {
|
|
316
338
|
"type": "boolean",
|
|
339
|
+
"attribute": "arrow",
|
|
317
340
|
"mutable": false,
|
|
318
341
|
"complexType": {
|
|
319
342
|
"original": "boolean",
|
|
@@ -326,12 +349,14 @@ export class PostPopovercontainer {
|
|
|
326
349
|
"tags": [],
|
|
327
350
|
"text": "Whether or not to display a little pointer arrow"
|
|
328
351
|
},
|
|
329
|
-
"
|
|
352
|
+
"getter": false,
|
|
353
|
+
"setter": false,
|
|
330
354
|
"reflect": false,
|
|
331
355
|
"defaultValue": "false"
|
|
332
356
|
},
|
|
333
357
|
"manualClose": {
|
|
334
358
|
"type": "boolean",
|
|
359
|
+
"attribute": "manual-close",
|
|
335
360
|
"mutable": false,
|
|
336
361
|
"complexType": {
|
|
337
362
|
"original": "boolean",
|
|
@@ -344,12 +369,14 @@ export class PostPopovercontainer {
|
|
|
344
369
|
"tags": [],
|
|
345
370
|
"text": "Whether or not the popovercontainer should close when user clicks outside of it"
|
|
346
371
|
},
|
|
347
|
-
"
|
|
372
|
+
"getter": false,
|
|
373
|
+
"setter": false,
|
|
348
374
|
"reflect": false,
|
|
349
375
|
"defaultValue": "false"
|
|
350
376
|
},
|
|
351
377
|
"safeSpace": {
|
|
352
378
|
"type": "string",
|
|
379
|
+
"attribute": "safe-space",
|
|
353
380
|
"mutable": false,
|
|
354
381
|
"complexType": {
|
|
355
382
|
"original": "'triangle' | 'trapezoid'",
|
|
@@ -362,7 +389,8 @@ export class PostPopovercontainer {
|
|
|
362
389
|
"tags": [],
|
|
363
390
|
"text": "Enables a safespace through which the cursor can be moved without the popover being disabled"
|
|
364
391
|
},
|
|
365
|
-
"
|
|
392
|
+
"getter": false,
|
|
393
|
+
"setter": false,
|
|
366
394
|
"reflect": true
|
|
367
395
|
}
|
|
368
396
|
};
|
|
@@ -18,10 +18,22 @@ export class PostRating {
|
|
|
18
18
|
}
|
|
19
19
|
constructor() {
|
|
20
20
|
this.hasChanged = false;
|
|
21
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Defines a hidden label for the component.
|
|
23
|
+
*/
|
|
22
24
|
this.label = 'Rating';
|
|
25
|
+
/**
|
|
26
|
+
* Defines the total amount of stars rendered in the component.
|
|
27
|
+
*/
|
|
23
28
|
this.stars = 5;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the rating that the component should show.
|
|
31
|
+
*/
|
|
24
32
|
this.currentRating = 0;
|
|
33
|
+
/**
|
|
34
|
+
* Defines if the component is readonly or not.
|
|
35
|
+
* This usually should be used together with the `currentRating` property.
|
|
36
|
+
*/
|
|
25
37
|
this.readonly = false;
|
|
26
38
|
this.keydownHandler = this.keydownHandler.bind(this);
|
|
27
39
|
this.blurHandler = this.blurHandler.bind(this);
|
|
@@ -79,7 +91,7 @@ export class PostRating {
|
|
|
79
91
|
}
|
|
80
92
|
}
|
|
81
93
|
render() {
|
|
82
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '588c5d3c4600faa939cab4b673e27d08182323da', "data-version": version }, h("div", { key: '8fced4724505cdc2f3fb3160cf276ed1280b5431', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} out of ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
83
95
|
'star': true,
|
|
84
96
|
'before-hover': i < this.hoveredIndex,
|
|
85
97
|
'active': i < Math.round(this.currentRating),
|
|
@@ -103,6 +115,7 @@ export class PostRating {
|
|
|
103
115
|
return {
|
|
104
116
|
"label": {
|
|
105
117
|
"type": "string",
|
|
118
|
+
"attribute": "label",
|
|
106
119
|
"mutable": false,
|
|
107
120
|
"complexType": {
|
|
108
121
|
"original": "string",
|
|
@@ -115,12 +128,14 @@ export class PostRating {
|
|
|
115
128
|
"tags": [],
|
|
116
129
|
"text": "Defines a hidden label for the component."
|
|
117
130
|
},
|
|
118
|
-
"
|
|
131
|
+
"getter": false,
|
|
132
|
+
"setter": false,
|
|
119
133
|
"reflect": false,
|
|
120
134
|
"defaultValue": "'Rating'"
|
|
121
135
|
},
|
|
122
136
|
"stars": {
|
|
123
137
|
"type": "number",
|
|
138
|
+
"attribute": "stars",
|
|
124
139
|
"mutable": false,
|
|
125
140
|
"complexType": {
|
|
126
141
|
"original": "number",
|
|
@@ -133,12 +148,14 @@ export class PostRating {
|
|
|
133
148
|
"tags": [],
|
|
134
149
|
"text": "Defines the total amount of stars rendered in the component."
|
|
135
150
|
},
|
|
136
|
-
"
|
|
151
|
+
"getter": false,
|
|
152
|
+
"setter": false,
|
|
137
153
|
"reflect": false,
|
|
138
154
|
"defaultValue": "5"
|
|
139
155
|
},
|
|
140
156
|
"currentRating": {
|
|
141
157
|
"type": "number",
|
|
158
|
+
"attribute": "current-rating",
|
|
142
159
|
"mutable": true,
|
|
143
160
|
"complexType": {
|
|
144
161
|
"original": "number",
|
|
@@ -151,12 +168,14 @@ export class PostRating {
|
|
|
151
168
|
"tags": [],
|
|
152
169
|
"text": "Defines the rating that the component should show."
|
|
153
170
|
},
|
|
154
|
-
"
|
|
171
|
+
"getter": false,
|
|
172
|
+
"setter": false,
|
|
155
173
|
"reflect": false,
|
|
156
174
|
"defaultValue": "0"
|
|
157
175
|
},
|
|
158
176
|
"readonly": {
|
|
159
177
|
"type": "boolean",
|
|
178
|
+
"attribute": "readonly",
|
|
160
179
|
"mutable": false,
|
|
161
180
|
"complexType": {
|
|
162
181
|
"original": "boolean",
|
|
@@ -169,7 +188,8 @@ export class PostRating {
|
|
|
169
188
|
"tags": [],
|
|
170
189
|
"text": "Defines if the component is readonly or not.\nThis usually should be used together with the `currentRating` property."
|
|
171
190
|
},
|
|
172
|
-
"
|
|
191
|
+
"getter": false,
|
|
192
|
+
"setter": false,
|
|
173
193
|
"reflect": false,
|
|
174
194
|
"defaultValue": "false"
|
|
175
195
|
}
|
|
@@ -6,10 +6,6 @@ import { nanoid } from "nanoid";
|
|
|
6
6
|
* @slot default - Slot for the content of the tab header.
|
|
7
7
|
*/
|
|
8
8
|
export class PostTabHeader {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.tabId = undefined;
|
|
11
|
-
this.panel = undefined;
|
|
12
|
-
}
|
|
13
9
|
validateFor() {
|
|
14
10
|
checkRequiredAndType(this, 'panel', 'string');
|
|
15
11
|
}
|
|
@@ -17,7 +13,7 @@ export class PostTabHeader {
|
|
|
17
13
|
this.tabId = `tab-${this.host.id || nanoid(6)}`;
|
|
18
14
|
}
|
|
19
15
|
render() {
|
|
20
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'd5f6cd0ceb819b475ec49f8ea66e6b4b25f04f8e', id: this.tabId, role: "tab", "data-version": version, "aria-selected": "false", tabindex: "-1", class: "tab-title", slot: "tabs" }, h("slot", { key: '8a87fef31572674981dab80e56e6b20163b448ae' })));
|
|
21
17
|
}
|
|
22
18
|
static get is() { return "post-tab-header"; }
|
|
23
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -35,6 +31,7 @@ export class PostTabHeader {
|
|
|
35
31
|
return {
|
|
36
32
|
"panel": {
|
|
37
33
|
"type": "string",
|
|
34
|
+
"attribute": "panel",
|
|
38
35
|
"mutable": false,
|
|
39
36
|
"complexType": {
|
|
40
37
|
"original": "string",
|
|
@@ -47,7 +44,8 @@ export class PostTabHeader {
|
|
|
47
44
|
"tags": [],
|
|
48
45
|
"text": "The name of the panel controlled by the tab header."
|
|
49
46
|
},
|
|
50
|
-
"
|
|
47
|
+
"getter": false,
|
|
48
|
+
"setter": false,
|
|
51
49
|
"reflect": true
|
|
52
50
|
}
|
|
53
51
|
};
|
|
@@ -6,10 +6,6 @@ import { checkRequiredAndType } from "../../utils/index";
|
|
|
6
6
|
* @slot default - Slot for placing the content of the tab panel.
|
|
7
7
|
*/
|
|
8
8
|
export class PostTabPanel {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.panelId = undefined;
|
|
11
|
-
this.name = undefined;
|
|
12
|
-
}
|
|
13
9
|
validateName() {
|
|
14
10
|
checkRequiredAndType(this, 'name', 'string');
|
|
15
11
|
}
|
|
@@ -19,7 +15,7 @@ export class PostTabPanel {
|
|
|
19
15
|
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
20
16
|
}
|
|
21
17
|
render() {
|
|
22
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: '609dd2b8bf26e58e92a1dbc827e4479ac416d95b', "data-version": version, id: this.panelId, role: "tabpanel" }, h("slot", { key: '121538878e0298f1f16f6e20eeb15d5da8a5ba9c' })));
|
|
23
19
|
}
|
|
24
20
|
static get is() { return "post-tab-panel"; }
|
|
25
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,6 +33,7 @@ export class PostTabPanel {
|
|
|
37
33
|
return {
|
|
38
34
|
"name": {
|
|
39
35
|
"type": "string",
|
|
36
|
+
"attribute": "name",
|
|
40
37
|
"mutable": false,
|
|
41
38
|
"complexType": {
|
|
42
39
|
"original": "string",
|
|
@@ -49,7 +46,8 @@ export class PostTabPanel {
|
|
|
49
46
|
"tags": [],
|
|
50
47
|
"text": "The name of the panel, used to associate it with a tab header."
|
|
51
48
|
},
|
|
52
|
-
"
|
|
49
|
+
"getter": false,
|
|
50
|
+
"setter": false,
|
|
53
51
|
"reflect": true
|
|
54
52
|
}
|
|
55
53
|
};
|
|
@@ -11,7 +11,6 @@ import { componentOnReady } from "../../utils/index";
|
|
|
11
11
|
export class PostTabs {
|
|
12
12
|
constructor() {
|
|
13
13
|
this.isLoaded = false;
|
|
14
|
-
this.activePanel = undefined;
|
|
15
14
|
}
|
|
16
15
|
get tabs() {
|
|
17
16
|
return Array.from(this.host.querySelectorAll('post-tab-header')).filter(tab => tab.closest('post-tabs') === this.host);
|
|
@@ -141,7 +140,7 @@ export class PostTabs {
|
|
|
141
140
|
nextTab.focus();
|
|
142
141
|
}
|
|
143
142
|
render() {
|
|
144
|
-
return (h(Host, { key: '
|
|
143
|
+
return (h(Host, { key: 'd7beaed26b8f79f7a8641bf5524236b8722a56d4', "data-version": version }, h("div", { key: '75449ea13ad30ca5bb402354cdf2eee51a6c8096', class: "tabs-wrapper", part: "tabs" }, h("div", { key: '4eeafd45c7bac47ff16ceffd2643adaabdd01234', class: "tabs", role: "tablist" }, h("slot", { key: 'e3299d68dc943c2b0bf2ff1b48d54de65f00eb94', name: "tabs", onSlotchange: () => this.enableTabs() }))), h("div", { key: '7bb1bf2984063cba9c7170e92cecbf4d4a4a21d9', class: "tab-content", part: "content" }, h("slot", { key: '8abb196b98d41eaa08c08598efed698533f215ec', onSlotchange: () => this.moveMisplacedTabs() }))));
|
|
145
144
|
}
|
|
146
145
|
static get is() { return "post-tabs"; }
|
|
147
146
|
static get encapsulation() { return "shadow"; }
|
|
@@ -159,6 +158,7 @@ export class PostTabs {
|
|
|
159
158
|
return {
|
|
160
159
|
"activePanel": {
|
|
161
160
|
"type": "string",
|
|
161
|
+
"attribute": "active-panel",
|
|
162
162
|
"mutable": false,
|
|
163
163
|
"complexType": {
|
|
164
164
|
"original": "HTMLPostTabPanelElement['name']",
|
|
@@ -176,7 +176,8 @@ export class PostTabs {
|
|
|
176
176
|
"tags": [],
|
|
177
177
|
"text": "The name of the panel that is initially shown.\nIf not specified, it defaults to the panel associated with the first tab.\n\n**Changing this value after initialization has no effect.**"
|
|
178
178
|
},
|
|
179
|
-
"
|
|
179
|
+
"getter": false,
|
|
180
|
+
"setter": false,
|
|
180
181
|
"reflect": false
|
|
181
182
|
}
|
|
182
183
|
};
|
|
@@ -6,10 +6,6 @@ import { checkEmptyOrOneOf, checkEmptyOrType } from "../../utils/index";
|
|
|
6
6
|
*/
|
|
7
7
|
export class PostTag {
|
|
8
8
|
constructor() {
|
|
9
|
-
this.classes = undefined;
|
|
10
|
-
this.variant = undefined;
|
|
11
|
-
this.size = undefined;
|
|
12
|
-
this.icon = undefined;
|
|
13
9
|
this.setClasses = this.setClasses.bind(this);
|
|
14
10
|
}
|
|
15
11
|
variantChanged() {
|
|
@@ -41,7 +37,7 @@ export class PostTag {
|
|
|
41
37
|
this.setClasses();
|
|
42
38
|
}
|
|
43
39
|
render() {
|
|
44
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '9e30e11663e54fb6bc389cfe7b060cace37c304e', "data-version": version }, h("div", { key: '09b0ea2d6df0631f00d78a6978d4aad4b429f39e', class: this.classes }, this.icon ? h("post-icon", { name: this.icon }) : null, h("div", { key: 'a041daf35564806f3bff974d04536972b1564a35', class: "tag-text" }, h("slot", { key: '97fb0e540d631062268b9080db3eb5e4aacf0242' })))));
|
|
45
41
|
}
|
|
46
42
|
static get is() { return "post-tag"; }
|
|
47
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,6 +55,7 @@ export class PostTag {
|
|
|
59
55
|
return {
|
|
60
56
|
"variant": {
|
|
61
57
|
"type": "string",
|
|
58
|
+
"attribute": "variant",
|
|
62
59
|
"mutable": false,
|
|
63
60
|
"complexType": {
|
|
64
61
|
"original": "'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow'",
|
|
@@ -71,11 +68,13 @@ export class PostTag {
|
|
|
71
68
|
"tags": [],
|
|
72
69
|
"text": "Defines the color variant of the component."
|
|
73
70
|
},
|
|
74
|
-
"
|
|
71
|
+
"getter": false,
|
|
72
|
+
"setter": false,
|
|
75
73
|
"reflect": false
|
|
76
74
|
},
|
|
77
75
|
"size": {
|
|
78
76
|
"type": "string",
|
|
77
|
+
"attribute": "size",
|
|
79
78
|
"mutable": false,
|
|
80
79
|
"complexType": {
|
|
81
80
|
"original": "'sm'",
|
|
@@ -88,11 +87,13 @@ export class PostTag {
|
|
|
88
87
|
"tags": [],
|
|
89
88
|
"text": "Defines the size of the component."
|
|
90
89
|
},
|
|
91
|
-
"
|
|
90
|
+
"getter": false,
|
|
91
|
+
"setter": false,
|
|
92
92
|
"reflect": false
|
|
93
93
|
},
|
|
94
94
|
"icon": {
|
|
95
95
|
"type": "string",
|
|
96
|
+
"attribute": "icon",
|
|
96
97
|
"mutable": false,
|
|
97
98
|
"complexType": {
|
|
98
99
|
"original": "string",
|
|
@@ -100,12 +101,13 @@ export class PostTag {
|
|
|
100
101
|
"references": {}
|
|
101
102
|
},
|
|
102
103
|
"required": false,
|
|
103
|
-
"optional":
|
|
104
|
+
"optional": true,
|
|
104
105
|
"docs": {
|
|
105
106
|
"tags": [],
|
|
106
107
|
"text": "Defines the icon `name` inside of the component.\n<span className=\"banner banner-sm banner-info\">If not set the icon will not show up.</span>\nTo learn which icons are available, please visit our <a href=\"/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs\">icon library</a>."
|
|
107
108
|
},
|
|
108
|
-
"
|
|
109
|
+
"getter": false,
|
|
110
|
+
"setter": false,
|
|
109
111
|
"reflect": false
|
|
110
112
|
}
|
|
111
113
|
};
|
|
@@ -5,6 +5,10 @@ import { version } from "../../../../package";
|
|
|
5
5
|
*/
|
|
6
6
|
export class PostTogglebutton {
|
|
7
7
|
constructor() {
|
|
8
|
+
/**
|
|
9
|
+
* If `true`, the button is in the "on" state, otherwise it is in the "off" state.
|
|
10
|
+
*/
|
|
11
|
+
this.toggled = false;
|
|
8
12
|
this.handleClick = () => {
|
|
9
13
|
this.toggled = !this.toggled;
|
|
10
14
|
};
|
|
@@ -15,7 +19,6 @@ export class PostTogglebutton {
|
|
|
15
19
|
this.host.click();
|
|
16
20
|
}
|
|
17
21
|
};
|
|
18
|
-
this.toggled = false;
|
|
19
22
|
}
|
|
20
23
|
componentWillLoad() {
|
|
21
24
|
// add event listener to not override listener that might be set on the host
|
|
@@ -23,7 +26,7 @@ export class PostTogglebutton {
|
|
|
23
26
|
this.host.addEventListener('keydown', (e) => this.handleKeydown(e));
|
|
24
27
|
}
|
|
25
28
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '1025fb988460e85c92e49241889363e1bcc840eb', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '20d3eb9415685fb9a00a5613474c432f6638692e' })));
|
|
27
30
|
}
|
|
28
31
|
static get is() { return "post-togglebutton"; }
|
|
29
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,6 +44,7 @@ export class PostTogglebutton {
|
|
|
41
44
|
return {
|
|
42
45
|
"toggled": {
|
|
43
46
|
"type": "boolean",
|
|
47
|
+
"attribute": "toggled",
|
|
44
48
|
"mutable": true,
|
|
45
49
|
"complexType": {
|
|
46
50
|
"original": "boolean",
|
|
@@ -53,7 +57,8 @@ export class PostTogglebutton {
|
|
|
53
57
|
"tags": [],
|
|
54
58
|
"text": "If `true`, the button is in the \"on\" state, otherwise it is in the \"off\" state."
|
|
55
59
|
},
|
|
56
|
-
"
|
|
60
|
+
"getter": false,
|
|
61
|
+
"setter": false,
|
|
57
62
|
"reflect": false,
|
|
58
63
|
"defaultValue": "false"
|
|
59
64
|
}
|
|
@@ -4,9 +4,19 @@ import { checkEmptyOrOneOf } from "../../utils/index";
|
|
|
4
4
|
import { PLACEMENT_TYPES } from "../../types/index";
|
|
5
5
|
export class PostTooltip {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* Defines the position of the tooltip relative to its trigger.
|
|
9
|
+
* Tooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.
|
|
10
|
+
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
11
|
+
*/
|
|
7
12
|
this.placement = 'top';
|
|
13
|
+
/**
|
|
14
|
+
* Whether or not to display a little pointer arrow
|
|
15
|
+
*/
|
|
8
16
|
this.arrow = false;
|
|
9
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Indicates the open state of the tooltip
|
|
19
|
+
*/
|
|
10
20
|
this.open = false;
|
|
11
21
|
}
|
|
12
22
|
validatePlacement() {
|
|
@@ -54,7 +64,7 @@ export class PostTooltip {
|
|
|
54
64
|
}
|
|
55
65
|
render() {
|
|
56
66
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
57
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '1e1d3f4e204b42c8202af63bd7dec12de3c8e16a', "data-version": version, role: "tooltip" }, h("post-popovercontainer", { key: 'e410952b4e75915e51d57eec2dbecce2b5d55733', safeSpace: "trapezoid", class: popoverClass, arrow: this.arrow, animation: this.animation, placement: this.placement, onPostToggle: e => this.handleToggle(e), ref: (el) => (this.popoverRef = el) }, h("slot", { key: '494e3136dbe96cf611a41753711efb03cab30a12' }))));
|
|
58
68
|
}
|
|
59
69
|
static get is() { return "post-tooltip"; }
|
|
60
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,6 +82,7 @@ export class PostTooltip {
|
|
|
72
82
|
return {
|
|
73
83
|
"placement": {
|
|
74
84
|
"type": "string",
|
|
85
|
+
"attribute": "placement",
|
|
75
86
|
"mutable": false,
|
|
76
87
|
"complexType": {
|
|
77
88
|
"original": "Placement",
|
|
@@ -80,7 +91,7 @@ export class PostTooltip {
|
|
|
80
91
|
"Placement": {
|
|
81
92
|
"location": "import",
|
|
82
93
|
"path": "@floating-ui/dom",
|
|
83
|
-
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.
|
|
94
|
+
"id": "../../node_modules/.pnpm/@floating-ui+dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.d.ts::Placement"
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
},
|
|
@@ -90,12 +101,14 @@ export class PostTooltip {
|
|
|
90
101
|
"tags": [],
|
|
91
102
|
"text": "Defines the position of the tooltip relative to its trigger.\nTooltips are automatically flipped to the opposite side if there is not enough available space and are shifted towards the viewport if they would overlap edge boundaries.\nFor supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement)."
|
|
92
103
|
},
|
|
93
|
-
"
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
94
106
|
"reflect": false,
|
|
95
107
|
"defaultValue": "'top'"
|
|
96
108
|
},
|
|
97
109
|
"arrow": {
|
|
98
110
|
"type": "boolean",
|
|
111
|
+
"attribute": "arrow",
|
|
99
112
|
"mutable": false,
|
|
100
113
|
"complexType": {
|
|
101
114
|
"original": "boolean",
|
|
@@ -108,12 +121,14 @@ export class PostTooltip {
|
|
|
108
121
|
"tags": [],
|
|
109
122
|
"text": "Whether or not to display a little pointer arrow"
|
|
110
123
|
},
|
|
111
|
-
"
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
112
126
|
"reflect": false,
|
|
113
127
|
"defaultValue": "false"
|
|
114
128
|
},
|
|
115
129
|
"animation": {
|
|
116
130
|
"type": "string",
|
|
131
|
+
"attribute": "animation",
|
|
117
132
|
"mutable": false,
|
|
118
133
|
"complexType": {
|
|
119
134
|
"original": "'pop-in'",
|
|
@@ -126,11 +141,13 @@ export class PostTooltip {
|
|
|
126
141
|
"tags": [],
|
|
127
142
|
"text": "Choose a tooltip animation"
|
|
128
143
|
},
|
|
129
|
-
"
|
|
144
|
+
"getter": false,
|
|
145
|
+
"setter": false,
|
|
130
146
|
"reflect": false
|
|
131
147
|
},
|
|
132
148
|
"open": {
|
|
133
149
|
"type": "boolean",
|
|
150
|
+
"attribute": "open",
|
|
134
151
|
"mutable": true,
|
|
135
152
|
"complexType": {
|
|
136
153
|
"original": "boolean",
|
|
@@ -143,7 +160,8 @@ export class PostTooltip {
|
|
|
143
160
|
"tags": [],
|
|
144
161
|
"text": "Indicates the open state of the tooltip"
|
|
145
162
|
},
|
|
146
|
-
"
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false,
|
|
147
165
|
"reflect": true,
|
|
148
166
|
"defaultValue": "false"
|
|
149
167
|
}
|