@swisspost/design-system-components 10.0.0-next.66 → 10.0.0-next.68
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-B81j4H4_.js → breakpoints-B0Olgvgc.js} +8 -9
- package/dist/cjs/{get-focusable-children-SdEe5tt7.js → get-focusable-children-BGVgg7Te.js} +4 -4
- package/dist/cjs/{get-root-CUAv4k4C.js → get-root-B1FnQ50K.js} +1 -3
- package/dist/cjs/{index-YVR3WTTS.js → index-Du1lKw8D.js} +21 -9
- package/dist/cjs/{index-ChzLnSU8.js → index-qCzRmwgB.js} +2 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{package-Cixsn1Ql.js → package-DB6yM9Rp.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +6 -7
- package/dist/cjs/post-autocomplete.cjs.entry.js +181 -0
- package/dist/cjs/post-avatar.cjs.entry.js +6 -7
- package/dist/cjs/post-back-to-top.cjs.entry.js +8 -9
- package/dist/cjs/post-banner.cjs.entry.js +5 -6
- package/dist/cjs/{post-breadcrumb-item_2.cjs.entry.js → post-breadcrumb-item.cjs.entry.js} +7 -23
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +13 -12
- package/dist/cjs/{post-closebutton_13.cjs.entry.js → post-closebutton_14.cjs.entry.js} +97 -70
- package/dist/cjs/post-collapsible_2.cjs.entry.js +18 -12
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +12 -13
- package/dist/cjs/post-footer.cjs.entry.js +8 -9
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +26 -0
- package/dist/cjs/post-listbox.cjs.entry.js +151 -0
- package/dist/cjs/post-login-widget.cjs.entry.js +60 -0
- package/dist/cjs/post-number-input.cjs.entry.js +20 -14
- package/dist/cjs/post-pagination.cjs.entry.js +10 -11
- package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -6
- package/dist/cjs/post-popover.cjs.entry.js +7 -8
- package/dist/cjs/post-rating.cjs.entry.js +5 -6
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +6 -7
- package/dist/cjs/post-tab-item.cjs.entry.js +5 -6
- package/dist/cjs/post-tab-panel.cjs.entry.js +5 -6
- package/dist/cjs/post-tabs.cjs.entry.js +8 -9
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +7 -10
- package/dist/cjs/post-tooltip.cjs.entry.js +5 -6
- package/dist/collection/animations/collapse.js +10 -3
- package/dist/collection/collection-manifest.json +5 -2
- package/dist/collection/components/post-accordion/post-accordion.js +2 -2
- package/dist/collection/components/post-autocomplete/post-autocomplete.css +1 -0
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +271 -0
- package/dist/collection/components/post-avatar/post-avatar.js +2 -2
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +4 -4
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +42 -5
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +9 -7
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +4 -4
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +9 -9
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +3 -3
- package/dist/collection/components/post-header/post-header.js +13 -13
- package/dist/collection/components/post-icon/post-icon.js +16 -13
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +1 -1
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.css +1 -0
- package/dist/collection/components/post-listbox/post-listbox.js +293 -0
- package/dist/collection/components/post-listbox-option/post-listbox-option.css +1 -0
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +109 -0
- package/dist/collection/components/post-login-widget/post-login-widget.js +120 -0
- package/dist/collection/components/post-logo/post-logo.js +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +5 -5
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +1 -1
- package/dist/collection/components/post-menu/post-menu.js +2 -2
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +4 -1
- package/dist/collection/components/post-number-input/post-number-input.js +12 -3
- package/dist/collection/components/post-pagination/post-pagination.js +6 -6
- package/dist/collection/components/post-popover/post-popover.js +1 -1
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +26 -19
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-stepper/post-stepper.js +2 -2
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +1 -1
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +4 -4
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +1 -1
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +6 -6
- package/dist/collection/utils/attribute-observer.js +1 -2
- package/dist/collection/utils/breakpoints.js +8 -8
- package/dist/collection/utils/get-focusable-children.js +3 -3
- package/dist/collection/utils/get-root.js +1 -2
- package/dist/collection/utils/index.js +0 -1
- package/dist/collection/utils/is-iso-date.js +1 -1
- package/dist/collection/utils/is-motion-reduced.js +3 -2
- package/dist/collection/utils/property-checkers/check-date.js +1 -1
- package/dist/collection/utils/property-checkers/constants.js +1 -1
- package/dist/collection/utils/property-checkers/index.js +1 -2
- package/dist/collection/utils/repeat-on-long-press.js +6 -6
- package/dist/collection/utils/sass-export.js +1 -1
- package/dist/collection/utils/tests/helpers/mock-match-media.js +11 -0
- package/dist/collection/utils/tests/helpers/mock-stencil-constants.js +12 -0
- package/dist/component-names.json +4 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/get-focusable-children.js +1 -1
- package/dist/components/get-root.js +1 -1
- package/dist/components/index.d.ts +8 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.d.ts +11 -0
- package/dist/components/post-autocomplete.js +1 -0
- 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-item2.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.d.ts +11 -0
- package/dist/components/post-listbox-option.js +1 -0
- package/dist/components/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
- package/dist/components/post-listbox.js +1 -0
- package/dist/components/post-login-widget.d.ts +11 -0
- package/dist/components/post-login-widget.js +1 -0
- 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-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-08F-DB-d.js +1 -0
- package/dist/components/react/p-B2BDAeHI.js +1 -0
- package/dist/components/react/p-BADyL6qQ.js +1 -0
- package/dist/components/react/p-BFAXoyMM.js +1 -0
- package/dist/components/react/p-BOqFllSV.js +1 -0
- package/dist/components/react/p-BQ3HlJPr.js +1 -0
- package/dist/components/react/p-ByN3t9FX.js +1 -0
- package/dist/components/react/{p-CmA91vH_.js → p-CmkOK7QT.js} +1 -1
- package/dist/components/react/p-CuiEdxy9.js +1 -0
- package/dist/components/react/p-DPFq3I2q.js +1 -0
- package/dist/components/react/p-DSw_A3Mh.js +1 -0
- package/dist/components/react/p-DsaGKkkf.js +1 -0
- package/dist/components/react/p-NDMNbu5d.js +1 -0
- package/dist/components/react/p-_AAbD0Gm.js +1 -0
- package/dist/components/react/p-aFH1oGSZ.js +1 -0
- package/dist/components/react/p-rEK_D60T.js +1 -0
- package/dist/components/react/p-wHDwT4JH.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.d.ts +11 -0
- package/dist/components/react/post-autocomplete.js +1 -0
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.d.ts +11 -0
- package/dist/components/react/post-listbox-option.js +1 -0
- package/dist/components/react/{post-env-test.d.ts → post-listbox.d.ts} +4 -4
- package/dist/components/react/post-listbox.js +1 -0
- package/dist/components/react/post-login-widget.d.ts +11 -0
- package/dist/components/react/post-login-widget.js +1 -0
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +682 -56
- package/dist/esm/{breakpoints-_gmb7vUy.js → breakpoints-BQ3HlJPr.js} +8 -9
- package/dist/esm/{get-focusable-children-CFWKPWu9.js → get-focusable-children-DxYnH2ye.js} +4 -4
- package/dist/esm/{get-root-CXfAA093.js → get-root-08F-DB-d.js} +1 -3
- package/dist/esm/{index-Cj-Lzb7i.js → index-Ci4L1rzN.js} +21 -9
- package/dist/esm/{index-CCMeku7U.js → index-D9bU2pIE.js} +3 -3
- package/dist/esm/loader.js +3 -3
- package/dist/esm/package-NDMNbu5d.js +3 -0
- package/dist/esm/post-accordion_2.entry.js +6 -7
- package/dist/esm/post-autocomplete.entry.js +179 -0
- package/dist/esm/post-avatar.entry.js +6 -7
- package/dist/esm/post-back-to-top.entry.js +8 -9
- package/dist/esm/post-banner.entry.js +5 -6
- package/dist/esm/{post-breadcrumb-item_2.entry.js → post-breadcrumb-item.entry.js} +8 -23
- package/dist/esm/post-breadcrumbs.entry.js +13 -12
- package/dist/esm/{post-closebutton_13.entry.js → post-closebutton_14.entry.js} +97 -71
- package/dist/esm/post-collapsible_2.entry.js +18 -12
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +12 -13
- package/dist/esm/post-footer.entry.js +8 -9
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +24 -0
- package/dist/esm/post-listbox.entry.js +149 -0
- package/dist/esm/post-login-widget.entry.js +58 -0
- package/dist/esm/post-number-input.entry.js +20 -14
- package/dist/esm/post-pagination.entry.js +10 -11
- package/dist/esm/post-popover-trigger.entry.js +5 -6
- package/dist/esm/post-popover.entry.js +7 -8
- package/dist/esm/post-rating.entry.js +5 -6
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +6 -7
- package/dist/esm/post-tab-item.entry.js +5 -6
- package/dist/esm/post-tab-panel.entry.js +5 -6
- package/dist/esm/post-tabs.entry.js +8 -9
- package/dist/esm/post-tooltip-trigger.entry.js +7 -10
- package/dist/esm/post-tooltip.entry.js +5 -6
- package/dist/post-components/p-08F-DB-d.js +1 -0
- package/dist/post-components/p-1edd4d7c.entry.js +1 -0
- package/dist/post-components/p-319959ee.entry.js +1 -0
- package/dist/post-components/p-3364b421.entry.js +1 -0
- package/dist/post-components/p-38880c61.entry.js +1 -0
- package/dist/post-components/p-39b2b086.entry.js +1 -0
- package/dist/post-components/p-4ad6993e.entry.js +1 -0
- package/dist/post-components/p-4c021d5f.entry.js +1 -0
- package/dist/post-components/p-5c66d070.entry.js +1 -0
- package/dist/post-components/p-5f86479f.entry.js +1 -0
- package/dist/post-components/{p-fe35968d.entry.js → p-602960ff.entry.js} +1 -1
- package/dist/post-components/p-631f4bdd.entry.js +1 -0
- package/dist/post-components/p-6336ea0b.entry.js +1 -0
- package/dist/post-components/p-7ad4e293.entry.js +1 -0
- package/dist/post-components/p-82871134.entry.js +1 -0
- package/dist/post-components/p-8c91a9d8.entry.js +1 -0
- package/dist/post-components/p-9bdb92c0.entry.js +1 -0
- package/dist/post-components/p-BQ3HlJPr.js +1 -0
- package/dist/post-components/p-Ci4L1rzN.js +2 -0
- package/dist/post-components/p-D9bU2pIE.js +1 -0
- package/dist/post-components/p-DYYpZAAV.js +1 -0
- package/dist/post-components/p-NDMNbu5d.js +1 -0
- package/dist/post-components/p-cdc11592.entry.js +1 -0
- package/dist/post-components/p-df54677a.entry.js +1 -0
- package/dist/post-components/{p-46f30771.entry.js → p-e01ce660.entry.js} +1 -1
- package/dist/post-components/p-e331093d.entry.js +1 -0
- package/dist/post-components/p-e4fd234d.entry.js +1 -0
- package/dist/post-components/p-eb89eecb.entry.js +1 -0
- package/dist/post-components/p-ee03eed0.entry.js +1 -0
- package/dist/post-components/p-f1813327.entry.js +1 -0
- package/dist/post-components/p-f1bff988.entry.js +1 -0
- package/dist/post-components/p-f64c6491.entry.js +1 -0
- package/dist/post-components/p-fd10d5b9.entry.js +1 -0
- package/dist/post-components/post-components.css +6 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +34 -0
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +8 -0
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +8 -5
- package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +5 -0
- package/dist/types/components/post-listbox/post-listbox.d.ts +37 -0
- package/dist/types/components/post-listbox-option/post-listbox-option.d.ts +13 -0
- package/dist/types/components/post-login-widget/post-login-widget.d.ts +30 -0
- package/dist/types/components/post-number-input/post-number-input.d.ts +2 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -0
- package/dist/types/components.d.ts +240 -13
- package/dist/types/utils/breakpoints.d.ts +1 -0
- package/dist/types/utils/index.d.ts +0 -1
- package/dist/types/utils/property-checkers/index.d.ts +1 -2
- package/dist/types/utils/tests/helpers/mock-match-media.d.ts +4 -0
- package/dist/types/utils/tests/helpers/mock-stencil-constants.d.ts +0 -0
- package/hydrate/index.js +699 -1388
- package/hydrate/index.mjs +699 -1388
- package/package.json +9 -7
- package/dist/cjs/environment-BQE9Unf_.js +0 -52
- package/dist/cjs/post-env-test.cjs.entry.js +0 -15
- package/dist/collection/utils/environment.js +0 -47
- package/dist/collection/utils/tests/environment/hydrate-app-helper.js +0 -16
- package/dist/collection/utils/tests/environment/post-env-test.js +0 -9
- package/dist/components/environment.js +0 -1
- package/dist/components/post-env-test.js +0 -1
- package/dist/components/react/p-BVGcVycs.js +0 -1
- package/dist/components/react/p-Bb0ejJa3.js +0 -1
- package/dist/components/react/p-BbnDcq_W.js +0 -1
- package/dist/components/react/p-BcBg4WYn.js +0 -1
- package/dist/components/react/p-C1CrnSak.js +0 -1
- package/dist/components/react/p-C9bJM7_1.js +0 -1
- package/dist/components/react/p-CApN7QUn.js +0 -1
- package/dist/components/react/p-CGeIHu-8.js +0 -1
- package/dist/components/react/p-CVM28gRr.js +0 -1
- package/dist/components/react/p-CdMrnWjS.js +0 -1
- package/dist/components/react/p-CfXYLM9Y.js +0 -1
- package/dist/components/react/p-DH6JtVW9.js +0 -1
- package/dist/components/react/p-Dgo_BJCW.js +0 -1
- package/dist/components/react/p-Dne0jb7e.js +0 -1
- package/dist/components/react/p-FxUVQ4Tx.js +0 -1
- package/dist/components/react/p-htxkyM9X.js +0 -1
- package/dist/components/react/post-env-test.js +0 -1
- package/dist/esm/environment-CEmnRoA6.js +0 -49
- package/dist/esm/package-CApN7QUn.js +0 -3
- package/dist/esm/post-env-test.entry.js +0 -13
- package/dist/post-components/p-054c0046.entry.js +0 -1
- package/dist/post-components/p-102b69dd.entry.js +0 -1
- package/dist/post-components/p-1221cdd6.entry.js +0 -1
- package/dist/post-components/p-14ca5d65.entry.js +0 -1
- package/dist/post-components/p-38404768.entry.js +0 -1
- package/dist/post-components/p-388ac19f.entry.js +0 -1
- package/dist/post-components/p-5088354d.entry.js +0 -1
- package/dist/post-components/p-53c3195b.entry.js +0 -1
- package/dist/post-components/p-6e79a981.entry.js +0 -1
- package/dist/post-components/p-700c3e20.entry.js +0 -1
- package/dist/post-components/p-7fc1291f.entry.js +0 -1
- package/dist/post-components/p-84905b89.entry.js +0 -1
- package/dist/post-components/p-9127ee5c.entry.js +0 -1
- package/dist/post-components/p-91fbf90f.entry.js +0 -1
- package/dist/post-components/p-9e6b8aae.entry.js +0 -1
- package/dist/post-components/p-CApN7QUn.js +0 -1
- package/dist/post-components/p-CCMeku7U.js +0 -1
- package/dist/post-components/p-CEmnRoA6.js +0 -1
- package/dist/post-components/p-Cj-Lzb7i.js +0 -2
- package/dist/post-components/p-DI-h_mEL.js +0 -1
- package/dist/post-components/p-DppMBmK1.js +0 -1
- package/dist/post-components/p-Rr097A6n.js +0 -1
- package/dist/post-components/p-b7c02b48.entry.js +0 -1
- package/dist/post-components/p-bb2dc205.entry.js +0 -1
- package/dist/post-components/p-dd2d35fd.entry.js +0 -1
- package/dist/post-components/p-dde0c46e.entry.js +0 -1
- package/dist/post-components/p-e4978408.entry.js +0 -1
- package/dist/post-components/p-eb4eabe2.entry.js +0 -1
- package/dist/post-components/p-ece3d263.entry.js +0 -1
- package/dist/types/utils/environment.d.ts +0 -26
- package/dist/types/utils/tests/environment/hydrate-app-helper.d.ts +0 -5
- package/dist/types/utils/tests/environment/post-env-test.d.ts +0 -3
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var _package = require('./package-
|
|
3
|
+
var index = require('./index-Du1lKw8D.js');
|
|
4
|
+
var _package = require('./package-DB6yM9Rp.js');
|
|
5
5
|
var index_browser = require('./index.browser-Doj636JV.js');
|
|
6
|
-
var index$1 = require('./index-
|
|
7
|
-
require('./breakpoints-
|
|
8
|
-
require('./environment-BQE9Unf_.js');
|
|
6
|
+
var index$1 = require('./index-qCzRmwgB.js');
|
|
7
|
+
require('./breakpoints-B0Olgvgc.js');
|
|
9
8
|
|
|
10
9
|
const postTabPanelCss = () => `:host{display:none}`;
|
|
11
10
|
|
|
@@ -22,7 +21,7 @@ const PostTabPanel = class {
|
|
|
22
21
|
this.panelId = `panel-${this.host.id || index_browser.nanoid(6)}`;
|
|
23
22
|
}
|
|
24
23
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
24
|
+
return (index.h(index.Host, { key: '6feec1f002b3fadba76f8cb8f9ea76e455aa6ffe', "data-version": _package.version, id: this.panelId, role: "tabpanel", slot: "panels" }, index.h("slot", { key: '073a78293c22557d7b628351bf1eac9882cd98b0' })));
|
|
26
25
|
}
|
|
27
26
|
get host() { return index.getElement(this); }
|
|
28
27
|
static get watchers() { return {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var _package = require('./package-
|
|
3
|
+
var index = require('./index-Du1lKw8D.js');
|
|
4
|
+
var _package = require('./package-DB6yM9Rp.js');
|
|
5
5
|
var fade = require('./fade-CPQhl1fP.js');
|
|
6
|
-
var index$1 = require('./index-
|
|
7
|
-
require('./breakpoints-
|
|
6
|
+
var index$1 = require('./index-qCzRmwgB.js');
|
|
7
|
+
require('./breakpoints-B0Olgvgc.js');
|
|
8
8
|
require('./utils-s05L2ulk.js');
|
|
9
|
-
require('./environment-BQE9Unf_.js');
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* Invoke the `componentOnReady` method if it is available, simulate it otherwise
|
|
@@ -158,7 +157,7 @@ const PostTabs = class {
|
|
|
158
157
|
// This works even before post-tab-item sets data-navigation-mode attribute
|
|
159
158
|
const hasNavigationTabs = this.tabs.some(tab => {
|
|
160
159
|
const hasAnchor = tab.querySelector('a') !== null;
|
|
161
|
-
const navModeAttr = tab.
|
|
160
|
+
const navModeAttr = tab.dataset.navigationMode === 'true';
|
|
162
161
|
return hasAnchor || navModeAttr;
|
|
163
162
|
});
|
|
164
163
|
const hasPanels = this.panels.length > 0;
|
|
@@ -307,7 +306,7 @@ const PostTabs = class {
|
|
|
307
306
|
nextTab = this.tabs[activeTabIndex + 1] || this.tabs[0];
|
|
308
307
|
}
|
|
309
308
|
else {
|
|
310
|
-
nextTab = this.tabs[activeTabIndex - 1] || this.tabs
|
|
309
|
+
nextTab = this.tabs[activeTabIndex - 1] || this.tabs.at(-1);
|
|
311
310
|
}
|
|
312
311
|
if (!nextTab)
|
|
313
312
|
return;
|
|
@@ -316,10 +315,10 @@ const PostTabs = class {
|
|
|
316
315
|
}
|
|
317
316
|
render() {
|
|
318
317
|
const TabsContainer = this.isNavigationMode ? 'nav' : 'div';
|
|
319
|
-
return (index.h(index.Host, { key: '
|
|
318
|
+
return (index.h(index.Host, { key: 'edb1e06b1b1cdd23db32e42ff77dbc64a44905f0', "data-version": _package.version }, index.h("div", { key: 'd86eb9bb592aff23c38c92b12dfd72623d67f194', class: "tabs-wrapper", part: "post-tabs" }, index.h(TabsContainer, { key: '6646284be80e647c96065b3c791f34c4b64627f3', class: "tabs", role: this.isNavigationMode ? undefined : 'tablist', "aria-label": this.isNavigationMode ? this.label : undefined }, index.h("slot", { key: 'c71ddf4391144b7cb71671e8f564e723c408e723', onSlotchange: () => {
|
|
320
319
|
this.moveMisplacedTabs();
|
|
321
320
|
this.enableTabs();
|
|
322
|
-
} }))), !this.isNavigationMode && (index.h("div", { key: '
|
|
321
|
+
} }))), !this.isNavigationMode && (index.h("div", { key: '625d5b7d8ab2e8cfacce0c2ac6fa94d6f6fc2953', class: "tab-content", part: "post-tabs-content" }, index.h("slot", { key: '1ddaf37e585d3e9fbb9722e09829956e28dc7fd6', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
|
|
323
322
|
}
|
|
324
323
|
get host() { return index.getElement(this); }
|
|
325
324
|
static get watchers() { return {
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var index$1 = require('./index-
|
|
5
|
-
|
|
6
|
-
require('./
|
|
7
|
-
var _package = require('./package-Cixsn1Ql.js');
|
|
3
|
+
var index = require('./index-Du1lKw8D.js');
|
|
4
|
+
var index$1 = require('./index-qCzRmwgB.js');
|
|
5
|
+
require('./breakpoints-B0Olgvgc.js');
|
|
6
|
+
var _package = require('./package-DB6yM9Rp.js');
|
|
8
7
|
var focusable = require('./focusable-ZqET_zrB.js');
|
|
9
8
|
require('./_commonjsHelpers-BJu3ubxk.js');
|
|
10
9
|
|
|
11
10
|
const postTooltipTriggerCss = () => `post-tooltip-trigger{vertical-align:top}:host{cursor:pointer}`;
|
|
12
11
|
|
|
13
12
|
const TRIGGER_EVENTS = ['pointerenter', 'pointerleave', 'focusin', 'focusout', 'long-press'];
|
|
14
|
-
|
|
13
|
+
{
|
|
15
14
|
(async () => {
|
|
16
15
|
await Promise.resolve().then(function () { return require('./long-press-event-Q8jMUNXD.js'); });
|
|
17
16
|
})();
|
|
@@ -38,8 +37,6 @@ const PostTooltipTrigger = class {
|
|
|
38
37
|
index$1.checkEmptyOrType(this, 'for', 'string');
|
|
39
38
|
}
|
|
40
39
|
get tooltip() {
|
|
41
|
-
if (!environment.IS_BROWSER)
|
|
42
|
-
return null;
|
|
43
40
|
const ref = document.getElementById(this.for);
|
|
44
41
|
return ref?.localName === 'post-tooltip' ? ref : null;
|
|
45
42
|
}
|
|
@@ -157,7 +154,7 @@ const PostTooltipTrigger = class {
|
|
|
157
154
|
interestHandler() {
|
|
158
155
|
if (this.trigger) {
|
|
159
156
|
if (this.delay > 0) {
|
|
160
|
-
this.delayTimeout =
|
|
157
|
+
this.delayTimeout = globalThis.setTimeout(() => {
|
|
161
158
|
this.tooltip?.show(this.trigger);
|
|
162
159
|
this.delayTimeout = null;
|
|
163
160
|
}, this.delay);
|
|
@@ -175,7 +172,7 @@ const PostTooltipTrigger = class {
|
|
|
175
172
|
this.tooltip?.hide();
|
|
176
173
|
}
|
|
177
174
|
render() {
|
|
178
|
-
return (index.h(index.Host, { key: '
|
|
175
|
+
return (index.h(index.Host, { key: '67c7165030648b676b85c94cfe8a3d260c2ff9b5', "data-version": _package.version }, index.h("slot", { key: '84013d1f82ccd926d70026055c5a5be441aad9bf', onSlotchange: () => this.handleSlotChange() })));
|
|
179
176
|
}
|
|
180
177
|
get host() { return index.getElement(this); }
|
|
181
178
|
static get watchers() { return {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
4
|
-
var _package = require('./package-
|
|
5
|
-
var index$1 = require('./index-
|
|
6
|
-
require('./breakpoints-
|
|
3
|
+
var index = require('./index-Du1lKw8D.js');
|
|
4
|
+
var _package = require('./package-DB6yM9Rp.js');
|
|
5
|
+
var index$1 = require('./index-qCzRmwgB.js');
|
|
6
|
+
require('./breakpoints-B0Olgvgc.js');
|
|
7
7
|
var placement = require('./placement-qEFR9hmI.js');
|
|
8
|
-
require('./environment-BQE9Unf_.js');
|
|
9
8
|
|
|
10
9
|
const postTooltipCss = () => `:host{display:none}:host([open]){display:contents}post-popovercontainer[arrow]::after{position:absolute;content:"";inset:-13px;z-index:-1}post-popovercontainer::part(post-popovercontainer-content){color:var(--post-current-fg);background-color:var(--post-current-bg);padding:var(--post-core-dimension-4) var(--post-core-dimension-8);max-width:var(--post-tooltip-max-width, 280px);width:inherit;min-height:32px;word-wrap:break-word;white-space:normal}`;
|
|
11
10
|
|
|
@@ -72,7 +71,7 @@ const PostTooltip = class {
|
|
|
72
71
|
}
|
|
73
72
|
render() {
|
|
74
73
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
74
|
+
return (index.h(index.Host, { key: 'ad87cc5be1949a6a5490c6630b30a5d1d8c5940d', "data-version": _package.version }, index.h("post-popovercontainer", { key: '559478c129c495fa4189566957c22ad0ba3037a4', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, index.h("slot", { key: 'd72e049da6b42839e8c3b6f8f79d2c6bcd108676' }))));
|
|
76
75
|
}
|
|
77
76
|
get host() { return index.getElement(this); }
|
|
78
77
|
static get watchers() { return {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Build } from "@stencil/core";
|
|
2
|
+
import { isMotionReduced } from "../utils/index";
|
|
2
3
|
const collapseDuration = 350;
|
|
3
4
|
const collapseEasing = 'ease';
|
|
4
5
|
export const collapsedKeyframe = { height: '0', overflow: 'hidden' };
|
|
@@ -8,12 +9,18 @@ const animationOptions = {
|
|
|
8
9
|
fill: 'forwards',
|
|
9
10
|
};
|
|
10
11
|
export function collapse(el) {
|
|
11
|
-
const elHeight =
|
|
12
|
+
const elHeight = Build.isBrowser
|
|
13
|
+
? globalThis.getComputedStyle(el).height
|
|
14
|
+
: `${el.scrollHeight}px`;
|
|
12
15
|
const expandedKeyframe = { height: elHeight };
|
|
13
16
|
return el.animate([expandedKeyframe, collapsedKeyframe], animationOptions);
|
|
14
17
|
}
|
|
15
18
|
export function expand(el) {
|
|
16
|
-
const expandedKeyframe = {
|
|
19
|
+
const expandedKeyframe = {
|
|
20
|
+
height: `${el.scrollHeight}px`,
|
|
21
|
+
offset: 1,
|
|
22
|
+
overflow: 'hidden', // <- keep overflow hidden, until the final keyframe to prevent content from overflowing during the animation
|
|
23
|
+
};
|
|
17
24
|
const finalKeyframe = { height: 'auto', overflow: 'visible' };
|
|
18
25
|
return el.animate([collapsedKeyframe, expandedKeyframe, finalKeyframe], animationOptions);
|
|
19
26
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"components/post-date-picker/post-date-picker.js",
|
|
4
4
|
"components/post-accordion/post-accordion.js",
|
|
5
5
|
"components/post-accordion-item/post-accordion-item.js",
|
|
6
|
+
"components/post-autocomplete/post-autocomplete.js",
|
|
6
7
|
"components/post-avatar/post-avatar.js",
|
|
7
8
|
"components/post-back-to-top/post-back-to-top.js",
|
|
8
9
|
"components/post-banner/post-banner.js",
|
|
@@ -17,6 +18,9 @@
|
|
|
17
18
|
"components/post-language-menu/post-language-menu.js",
|
|
18
19
|
"components/post-language-menu-item/post-language-menu-item.js",
|
|
19
20
|
"components/post-linkarea/post-linkarea.js",
|
|
21
|
+
"components/post-listbox/post-listbox.js",
|
|
22
|
+
"components/post-listbox-option/post-listbox-option.js",
|
|
23
|
+
"components/post-login-widget/post-login-widget.js",
|
|
20
24
|
"components/post-logo/post-logo.js",
|
|
21
25
|
"components/post-mainnavigation/post-mainnavigation.js",
|
|
22
26
|
"components/post-megadropdown/post-megadropdown.js",
|
|
@@ -37,8 +41,7 @@
|
|
|
37
41
|
"components/post-tabs/post-tabs.js",
|
|
38
42
|
"components/post-togglebutton/post-togglebutton.js",
|
|
39
43
|
"components/post-tooltip/post-tooltip.js",
|
|
40
|
-
"components/post-tooltip-trigger/post-tooltip-trigger.js"
|
|
41
|
-
"utils/tests/environment/post-env-test.js"
|
|
44
|
+
"components/post-tooltip-trigger/post-tooltip-trigger.js"
|
|
42
45
|
],
|
|
43
46
|
"compiler": {
|
|
44
47
|
"name": "@stencil/core",
|
|
@@ -72,7 +72,7 @@ export class PostAccordion {
|
|
|
72
72
|
if (this.multiple) {
|
|
73
73
|
await Promise.all(this.accordionItems.map(item => item.toggle(true)));
|
|
74
74
|
}
|
|
75
|
-
else if (
|
|
75
|
+
else if (this.expandedItems.size === 0) {
|
|
76
76
|
await this.accordionItems[0].toggle(true);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
@@ -97,7 +97,7 @@ export class PostAccordion {
|
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (h(Host, { key: '
|
|
100
|
+
return (h(Host, { key: 'fa37ee5b4611a84d273229955bcf624e53120022', "data-version": version }, h("div", { key: '0884dc3582eb768c6dd4959168d7e9a9b4195c3c', class: "accordion" }, h("slot", { key: 'f6d81d89aca513094ac5c1d531ed9d63f7b93730', onSlotchange: () => this.registerAccordionItems() }))));
|
|
101
101
|
}
|
|
102
102
|
static get is() { return "post-accordion"; }
|
|
103
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:host{position:relative;display:block}.autocomplete-icon,.autocomplete-clear{position:absolute;inset-block-start:16px}@media screen and (min-width: 780px){.autocomplete-icon,.autocomplete-clear{inset-block-start:20px}}.autocomplete-icon{inset-inline-end:16px;width:24px;height:24px;pointer-events:none;transition:transform .2s ease-in-out}:host([open]) .autocomplete-icon{transform:rotate(180deg)}.autocomplete-clear{display:flex;align-items:center;justify-content:center;inset-inline-end:42px;background:none;border:none;cursor:pointer}.autocomplete-clear>post-icon{width:20px;height:20px}
|
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { version } from "../../../../package";
|
|
3
|
+
import { debounce } from "../../utils/index";
|
|
4
|
+
/**
|
|
5
|
+
* @slot default - Slot for placing post-autocomplete-item components.
|
|
6
|
+
*/
|
|
7
|
+
export class PostAutocomplete {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.debouncedHandleInput = debounce((event) => this.handleInput(event), 250);
|
|
10
|
+
/** Number of characters to type before filtering methods are called */
|
|
11
|
+
this.filterThreshold = 0;
|
|
12
|
+
/** Show or hide the clear button */
|
|
13
|
+
this.clearable = false;
|
|
14
|
+
this.inputValue = '';
|
|
15
|
+
this.handleOnBlur = () => {
|
|
16
|
+
this.inputElement.value = this.inputValue;
|
|
17
|
+
this.listBoxElement.filter('');
|
|
18
|
+
this.hideListBox();
|
|
19
|
+
};
|
|
20
|
+
this.handleInput = (event) => {
|
|
21
|
+
if (!this.listBoxElement)
|
|
22
|
+
return;
|
|
23
|
+
const value = event.target.value.trim();
|
|
24
|
+
const query = value.length >= this.filterThreshold ? value : '';
|
|
25
|
+
// Allow for consuming parent to handle filtering (e.g. for async data) and prevent default filtering behavior
|
|
26
|
+
const { defaultPrevented } = this.postFilteringEvent.emit(query && query.length >= this.filterThreshold ? query : '');
|
|
27
|
+
if (defaultPrevented)
|
|
28
|
+
return;
|
|
29
|
+
this.listBoxElement.filter(query);
|
|
30
|
+
if (query) {
|
|
31
|
+
this.showListBox();
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.inputValue = '';
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
this.handleKeyDown = (event) => {
|
|
38
|
+
const { key, altKey } = event;
|
|
39
|
+
switch (key) {
|
|
40
|
+
case 'ArrowDown':
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
this.showListBox();
|
|
43
|
+
if (!altKey) {
|
|
44
|
+
this.listBoxElement.navigate('down');
|
|
45
|
+
}
|
|
46
|
+
break;
|
|
47
|
+
case 'ArrowUp':
|
|
48
|
+
event.preventDefault();
|
|
49
|
+
this.listBoxElement.navigate('up');
|
|
50
|
+
break;
|
|
51
|
+
case 'Enter':
|
|
52
|
+
if (this.listBoxElement.hidden)
|
|
53
|
+
return;
|
|
54
|
+
event.preventDefault();
|
|
55
|
+
this.listBoxElement.selectActive();
|
|
56
|
+
this.hideListBox();
|
|
57
|
+
break;
|
|
58
|
+
case 'Escape':
|
|
59
|
+
this.hideListBox();
|
|
60
|
+
break;
|
|
61
|
+
case 'Tab':
|
|
62
|
+
this.listBoxElement.selectActive();
|
|
63
|
+
this.hideListBox();
|
|
64
|
+
break;
|
|
65
|
+
case 'Home':
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
this.listBoxElement.navigate('first');
|
|
68
|
+
break;
|
|
69
|
+
case 'End':
|
|
70
|
+
event.preventDefault();
|
|
71
|
+
this.listBoxElement.navigate('last');
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
this.handleOptionSelected = (e) => {
|
|
76
|
+
const value = e.detail;
|
|
77
|
+
this.inputElement.value = value;
|
|
78
|
+
this.inputValue = value;
|
|
79
|
+
this.hideListBox();
|
|
80
|
+
};
|
|
81
|
+
this.handleOptionActive = (e) => {
|
|
82
|
+
const value = e.detail;
|
|
83
|
+
if (value) {
|
|
84
|
+
this.inputElement.setAttribute('aria-activedescendant', value);
|
|
85
|
+
}
|
|
86
|
+
else {
|
|
87
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
this.hideListBox = () => {
|
|
91
|
+
this.listBoxElement.hide();
|
|
92
|
+
this.inputElement.ariaExpanded = 'false';
|
|
93
|
+
this.host.removeAttribute('open');
|
|
94
|
+
this.inputElement.removeAttribute('aria-activedescendant');
|
|
95
|
+
};
|
|
96
|
+
this.showListBox = () => {
|
|
97
|
+
this.listBoxElement.show();
|
|
98
|
+
this.inputElement.ariaExpanded = 'true';
|
|
99
|
+
this.host.setAttribute('open', '');
|
|
100
|
+
};
|
|
101
|
+
this.clearInput = () => {
|
|
102
|
+
if (this.inputElement) {
|
|
103
|
+
this.inputElement.value = '';
|
|
104
|
+
this.inputValue = '';
|
|
105
|
+
this.listBoxElement.clearSelection();
|
|
106
|
+
this.hideListBox();
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
get inputElement() {
|
|
111
|
+
return this.host.querySelector('input');
|
|
112
|
+
}
|
|
113
|
+
get listBoxElement() {
|
|
114
|
+
if (this.listbox) {
|
|
115
|
+
return document.getElementById(this.listbox);
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
return this.host.querySelector('post-listbox');
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
componentWillLoad() {
|
|
122
|
+
if (!this.inputElement)
|
|
123
|
+
return;
|
|
124
|
+
this.inputElement.role = 'combobox';
|
|
125
|
+
this.inputElement.ariaAutoComplete = 'list';
|
|
126
|
+
if (!this.listBoxElement)
|
|
127
|
+
return;
|
|
128
|
+
if (!this.listBoxElement.id)
|
|
129
|
+
this.listBoxElement.id = crypto.randomUUID();
|
|
130
|
+
this.inputElement.setAttribute('aria-controls', this.listBoxElement.id);
|
|
131
|
+
this.inputElement.setAttribute('aria-expanded', 'false');
|
|
132
|
+
// Because we're handling that and the browser would show a duplicate native autocomplete dropdown
|
|
133
|
+
this.inputElement.autocomplete = 'off';
|
|
134
|
+
this.attachInputListeners();
|
|
135
|
+
this.attachListboxListeners();
|
|
136
|
+
}
|
|
137
|
+
disconnectedCallback() {
|
|
138
|
+
this.detachInputListeners();
|
|
139
|
+
this.detachListboxListeners();
|
|
140
|
+
}
|
|
141
|
+
attachInputListeners() {
|
|
142
|
+
if (this.inputElement) {
|
|
143
|
+
this.inputElement.addEventListener('input', this.debouncedHandleInput);
|
|
144
|
+
this.inputElement.addEventListener('keydown', this.handleKeyDown);
|
|
145
|
+
this.inputElement.addEventListener('blur', this.handleOnBlur);
|
|
146
|
+
this.inputElement.addEventListener('click', this.showListBox);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
detachInputListeners() {
|
|
150
|
+
if (this.inputElement) {
|
|
151
|
+
this.inputElement.removeEventListener('input', this.debouncedHandleInput);
|
|
152
|
+
this.inputElement.removeEventListener('keydown', this.handleKeyDown);
|
|
153
|
+
this.inputElement.removeEventListener('blur', this.handleOnBlur);
|
|
154
|
+
this.inputElement.removeEventListener('click', this.showListBox);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
attachListboxListeners() {
|
|
158
|
+
if (this.listBoxElement) {
|
|
159
|
+
this.listBoxElement.addEventListener('postOptionSelected', this.handleOptionSelected);
|
|
160
|
+
this.listBoxElement.addEventListener('postOptionActive', this.handleOptionActive);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
detachListboxListeners() {
|
|
164
|
+
if (this.listBoxElement) {
|
|
165
|
+
this.listBoxElement.removeEventListener('postOptionSelected', this.handleOptionSelected);
|
|
166
|
+
this.listBoxElement.removeEventListener('postOptionActive', this.handleOptionActive);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
render() {
|
|
170
|
+
return (h(Host, { key: 'b6cae37c0a09a8ec76a2fdd56e0bb8c2c2f119fb', "data-version": version }, h("slot", { key: '2c5007aae99b96b9884bc3159add8beecad6fcc2' }), this.clearable && this.inputValue && (h("button", { key: 'a47ebadbbbdac11f00e9547d0a4c8224d24f31ca', type: "button", class: " autocomplete-clear", onClick: this.clearInput }, h("post-icon", { key: '2125443326e1656696815a93bda36136b48f2394', "aria-hidden": "true", name: "closex" }))), h("post-icon", { key: '109bba03d5d6567e166141a800c2f13198a16481', "aria-hidden": "true", class: "autocomplete-icon", name: "chevronDown" })));
|
|
171
|
+
}
|
|
172
|
+
static get is() { return "post-autocomplete"; }
|
|
173
|
+
static get encapsulation() { return "shadow"; }
|
|
174
|
+
static get originalStyleUrls() {
|
|
175
|
+
return {
|
|
176
|
+
"$": ["post-autocomplete.scss"]
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
static get styleUrls() {
|
|
180
|
+
return {
|
|
181
|
+
"$": ["post-autocomplete.css"]
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
static get properties() {
|
|
185
|
+
return {
|
|
186
|
+
"filterThreshold": {
|
|
187
|
+
"type": "number",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "number",
|
|
191
|
+
"resolved": "number",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Number of characters to type before filtering methods are called"
|
|
199
|
+
},
|
|
200
|
+
"getter": false,
|
|
201
|
+
"setter": false,
|
|
202
|
+
"reflect": true,
|
|
203
|
+
"attribute": "filter-threshold",
|
|
204
|
+
"defaultValue": "0"
|
|
205
|
+
},
|
|
206
|
+
"clearable": {
|
|
207
|
+
"type": "boolean",
|
|
208
|
+
"mutable": false,
|
|
209
|
+
"complexType": {
|
|
210
|
+
"original": "boolean",
|
|
211
|
+
"resolved": "boolean",
|
|
212
|
+
"references": {}
|
|
213
|
+
},
|
|
214
|
+
"required": false,
|
|
215
|
+
"optional": false,
|
|
216
|
+
"docs": {
|
|
217
|
+
"tags": [],
|
|
218
|
+
"text": "Show or hide the clear button"
|
|
219
|
+
},
|
|
220
|
+
"getter": false,
|
|
221
|
+
"setter": false,
|
|
222
|
+
"reflect": true,
|
|
223
|
+
"attribute": "clearable",
|
|
224
|
+
"defaultValue": "false"
|
|
225
|
+
},
|
|
226
|
+
"listbox": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"mutable": false,
|
|
229
|
+
"complexType": {
|
|
230
|
+
"original": "string",
|
|
231
|
+
"resolved": "string",
|
|
232
|
+
"references": {}
|
|
233
|
+
},
|
|
234
|
+
"required": false,
|
|
235
|
+
"optional": true,
|
|
236
|
+
"docs": {
|
|
237
|
+
"tags": [],
|
|
238
|
+
"text": "Optional idref to connect the autocomplete with the options dropdown if not nested"
|
|
239
|
+
},
|
|
240
|
+
"getter": false,
|
|
241
|
+
"setter": false,
|
|
242
|
+
"reflect": true,
|
|
243
|
+
"attribute": "listbox"
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
static get states() {
|
|
248
|
+
return {
|
|
249
|
+
"inputValue": {}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
static get events() {
|
|
253
|
+
return [{
|
|
254
|
+
"method": "postFilteringEvent",
|
|
255
|
+
"name": "postFilteringEvent",
|
|
256
|
+
"bubbles": true,
|
|
257
|
+
"cancelable": true,
|
|
258
|
+
"composed": true,
|
|
259
|
+
"docs": {
|
|
260
|
+
"tags": [],
|
|
261
|
+
"text": "Cancelable event emitted when the input value is to be filtered"
|
|
262
|
+
},
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "string",
|
|
265
|
+
"resolved": "string",
|
|
266
|
+
"references": {}
|
|
267
|
+
}
|
|
268
|
+
}];
|
|
269
|
+
}
|
|
270
|
+
static get elementRef() { return "host"; }
|
|
271
|
+
}
|
|
@@ -144,13 +144,13 @@ export class PostAvatar {
|
|
|
144
144
|
this.validateEmail();
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
|
-
const names = [this.firstname, this.lastname].filter(
|
|
147
|
+
const names = [this.firstname, this.lastname].filter(Boolean).map(n => n.trim());
|
|
148
148
|
const initials = names
|
|
149
149
|
.map(n => n.charAt(0))
|
|
150
150
|
.join('')
|
|
151
151
|
.trim();
|
|
152
152
|
const fullname = names.join(' ');
|
|
153
|
-
return (h(Host, { key: '
|
|
153
|
+
return (h(Host, { key: '56547a49f35e2d9ebafa54c2736b2ab60761c07b', "data-version": version }, h("span", { key: '864c5ab36c64bb440580ed307ce2f3dcefe2839d', class: this.avatarType === 'slotted' ? '' : 'd-none' }, h("slot", { key: 'cb06a958dc710675a97d197bffcee6ab742ad391', onSlotchange: this.slotChanged.bind(this) })), this.avatarType === 'image' && h("img", { key: 'abb6262b43b5fc5e2a7e4147c2375c6c623b5bf5', src: this.imageUrl, alt: this.imageAlt }), this.avatarType === 'initials' && (h("span", { key: '8bead70c99c12f3bbaab414e9431c3459553d36e', class: "initials" }, initials, h("span", { key: '45db185da4d9d82b1f08650f4dc40cd759e18c00' }, this.description ?? fullname)))));
|
|
154
154
|
}
|
|
155
155
|
static get is() { return "post-avatar"; }
|
|
156
156
|
static get encapsulation() { return "shadow"; }
|
|
@@ -40,7 +40,7 @@ export class PostBackToTop {
|
|
|
40
40
|
}
|
|
41
41
|
animateButton() {
|
|
42
42
|
// Get the back-to-top button top postiion
|
|
43
|
-
const positionTop =
|
|
43
|
+
const positionTop = globalThis.getComputedStyle(this.host).getPropertyValue('top');
|
|
44
44
|
const buttonElement = this.host.shadowRoot.querySelector('button');
|
|
45
45
|
// Extract the elevation height from the back-to-top button elevation token
|
|
46
46
|
const elevation = getComputedStyle(buttonElement).getPropertyValue('--post-back-to-top-elevation');
|
|
@@ -51,8 +51,8 @@ export class PostBackToTop {
|
|
|
51
51
|
// The translateY is calculated as => -100% (btt button height) - topPosition - elevationHeight
|
|
52
52
|
this.translateY =
|
|
53
53
|
(-1 * 100) / 100 -
|
|
54
|
-
parseFloat(positionTop.replace('px', '')) -
|
|
55
|
-
parseFloat(elevationHeight.replace('px', ''));
|
|
54
|
+
Number.parseFloat(positionTop.replace('px', '')) -
|
|
55
|
+
Number.parseFloat(elevationHeight.replace('px', ''));
|
|
56
56
|
if (this.belowFold) {
|
|
57
57
|
fadeSlide(this.host, 'in', { translate: this.translateY, fill: 'forwards' });
|
|
58
58
|
}
|
|
@@ -73,7 +73,7 @@ export class PostBackToTop {
|
|
|
73
73
|
window.removeEventListener('scroll', this.handleScroll);
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '61eb934495029c80935798908bec448664008db0', "data-version": version }, h("button", { key: 'e7b8b9df30aa1bedef8aae8a5db800bb638c8bf7', class: "back-to-top", "aria-hidden": this.belowFold ? 'false' : 'true', tabindex: this.belowFold ? '0' : '-1', onClick: this.scrollToTop }, h("post-icon", { key: '34d23e7069de235f64743cc791c98034bbf14b5f', "aria-hidden": "true", name: "arrowup" }), h("span", { key: '7479cc95e9e2825455fd8a7e69085ccedc73cb35', class: "visually-hidden" }, this.textBackToTop))));
|
|
77
77
|
}
|
|
78
78
|
static get is() { return "post-back-to-top"; }
|
|
79
79
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@ export class PostBanner {
|
|
|
57
57
|
this.hasActions = this.host.querySelectorAll('[slot="actions"]').length > 0;
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: 'aba639e5ce3ebc0498437f4011ff4b39e41489ee', "data-version": version, role: "alert", "data-color-scheme": "light" }, h("slot", { key: 'cd81197f4a8aecbec482bbc174783ad1d00fd5eb', name: "close-button" }), h("slot", { key: 'be9fd011e9d17207e1cb56dea3dcfd4481a4c31c', name: "heading" }), h("slot", { key: 'a06e94c05e4cfe4bbb1bdccf29fdc75ed67828ca' }), this.hasActions && (h("div", { key: '3ce94c84ea3eeda53694809432059b05b53c7cde', class: "actions" }, h("slot", { key: 'a33798352de63a23cfa77bbd9be58a8cc5585121', name: "actions" })))));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "post-banner"; }
|
|
63
63
|
static get encapsulation() { return "shadow"; }
|
|
@@ -9,7 +9,7 @@ export class PostBreadcrumbItem {
|
|
|
9
9
|
try {
|
|
10
10
|
this.validUrl = this.constructUrl(this.url);
|
|
11
11
|
}
|
|
12
|
-
catch
|
|
12
|
+
catch {
|
|
13
13
|
this.validUrl = undefined;
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -17,7 +17,7 @@ export class PostBreadcrumbItem {
|
|
|
17
17
|
constructUrl(value) {
|
|
18
18
|
const hasBaseURL = /^https?:\/\//.test(String(this.url));
|
|
19
19
|
if (typeof value === 'string') {
|
|
20
|
-
this.fullUrl = hasBaseURL ? value : `${
|
|
20
|
+
this.fullUrl = hasBaseURL ? value : `${globalThis.location.origin}${value}`;
|
|
21
21
|
checkEmptyOrUrl(this, 'fullUrl');
|
|
22
22
|
return this.fullUrl;
|
|
23
23
|
}
|
|
@@ -36,8 +36,7 @@ export class PostBreadcrumbItem {
|
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
|
|
40
|
-
return (h(Host, { key: '2d083dc9ebf3c47dce95f3f854a539afceb24102', "data-version": version }, h("post-icon", { key: '40cdd5b85dc3f906d29d7b696264b2f7e8057034', name: "chevronright", class: "breadcrumb-item-icon" }), h(BreadcrumbTag, { key: '5b82e332db134788695888f57e6e1e7f0bf0ddf5', class: "breadcrumb-item", ...(this.validUrl ? { href: this.validUrl } : {}), onKeyDown: event => this.handleKeyDown(event) }, h("slot", { key: 'ee75b4bdd1580edf775bc9322f3a421622e157ab' }))));
|
|
39
|
+
return (h(Host, { key: '0e991f1d731e932884c1d03650fc9deb743df5ce', "data-version": version }, h("post-icon", { key: '1a29e4d7a3c80a9a42dd3a63bea84b97bbe4f0a8', name: "chevronright", class: "breadcrumb-item-icon" }), this.validUrl ? (h("a", { class: "breadcrumb-item", href: this.validUrl, onKeyDown: event => this.handleKeyDown(event), "aria-label": this.label, "aria-description": this.description }, h("slot", null))) : (h("span", { class: "breadcrumb-item" }, h("slot", null)))));
|
|
41
40
|
}
|
|
42
41
|
static get is() { return "post-breadcrumb-item"; }
|
|
43
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -74,8 +73,46 @@ export class PostBreadcrumbItem {
|
|
|
74
73
|
},
|
|
75
74
|
"getter": false,
|
|
76
75
|
"setter": false,
|
|
77
|
-
"reflect":
|
|
76
|
+
"reflect": true,
|
|
78
77
|
"attribute": "url"
|
|
78
|
+
},
|
|
79
|
+
"label": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "string",
|
|
84
|
+
"resolved": "string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": true,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "ARIA label, screen readers will use this instead of the breadcrumb item content."
|
|
92
|
+
},
|
|
93
|
+
"getter": false,
|
|
94
|
+
"setter": false,
|
|
95
|
+
"reflect": true,
|
|
96
|
+
"attribute": "label"
|
|
97
|
+
},
|
|
98
|
+
"description": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"mutable": false,
|
|
101
|
+
"complexType": {
|
|
102
|
+
"original": "string",
|
|
103
|
+
"resolved": "string",
|
|
104
|
+
"references": {}
|
|
105
|
+
},
|
|
106
|
+
"required": false,
|
|
107
|
+
"optional": true,
|
|
108
|
+
"docs": {
|
|
109
|
+
"tags": [],
|
|
110
|
+
"text": "ARIA description for additional context, read after the breadcrumb item content or `label`."
|
|
111
|
+
},
|
|
112
|
+
"getter": false,
|
|
113
|
+
"setter": false,
|
|
114
|
+
"reflect": true,
|
|
115
|
+
"attribute": "description"
|
|
79
116
|
}
|
|
80
117
|
};
|
|
81
118
|
}
|