@swisspost/internet-header 1.5.0-beta.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -202
- package/dist/cjs/{if.component-313f59b8.js → if.component-51d000af.js} +6 -6
- package/dist/cjs/if.component-51d000af.js.map +1 -0
- package/dist/cjs/{klp-widget.controller-675b23db.js → klp-widget.controller-d8941c4e.js} +15755 -15755
- package/dist/cjs/klp-widget.controller-d8941c4e.js.map +1 -0
- package/dist/cjs/{language.service-a80ae01d.js → language.service-7dbf739d.js} +141 -141
- package/dist/cjs/language.service-7dbf739d.js.map +1 -0
- package/dist/cjs/post-klp-login-widget.cjs.entry.js +33 -33
- package/dist/cjs/post-klp-login-widget.cjs.entry.js.map +1 -1
- package/dist/cjs/post-language-switch.cjs.entry.js +88 -88
- package/dist/cjs/post-language-switch.cjs.entry.js.map +1 -1
- package/dist/cjs/post-logo.cjs.entry.js +51 -51
- package/dist/cjs/post-logo.cjs.entry.js.map +1 -1
- package/dist/cjs/post-main-navigation.cjs.entry.js +226 -226
- package/dist/cjs/post-main-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/post-meta-navigation.cjs.entry.js +15 -15
- package/dist/cjs/post-meta-navigation.cjs.entry.js.map +1 -1
- package/dist/cjs/post-search.cjs.entry.js +556 -534
- package/dist/cjs/post-search.cjs.entry.js.map +1 -1
- package/dist/cjs/post-skiplinks.cjs.entry.js +41 -41
- package/dist/cjs/post-skiplinks.cjs.entry.js.map +1 -1
- package/dist/cjs/{store-47e14589.js → store-d0d514fc.js} +20 -13
- package/dist/cjs/store-d0d514fc.js.map +1 -0
- package/dist/cjs/{svg-icon.component-10fbda11.js → svg-icon.component-be93f876.js} +2 -2
- package/dist/cjs/svg-icon.component-be93f876.js.map +1 -0
- package/dist/cjs/{svg-sprite.component-c3b454b3.js → svg-sprite.component-1bd7a058.js} +40 -40
- package/dist/cjs/svg-sprite.component-1bd7a058.js.map +1 -0
- package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js +370 -392
- package/dist/cjs/swisspost-internet-breadcrumbs.cjs.entry.js.map +1 -1
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js +125 -125
- package/dist/cjs/swisspost-internet-footer.cjs.entry.js.map +1 -1
- package/dist/cjs/swisspost-internet-header.cjs.entry.js +608 -608
- package/dist/cjs/swisspost-internet-header.cjs.entry.js.map +1 -1
- package/dist/cjs/{ui.service-db4a8252.js → ui.service-e1ebb6d4.js} +28 -28
- package/dist/cjs/ui.service-e1ebb6d4.js.map +1 -0
- package/dist/cjs/{utils-b6014257.js → utils-60853c5d.js} +15 -15
- package/dist/cjs/utils-60853c5d.js.map +1 -0
- package/dist/collection/assets/config/test-configuration.json +4067 -4067
- package/dist/collection/assets/i18n/translations.js +38 -38
- package/dist/collection/assets/i18n/translations.js.map +1 -1
- package/dist/collection/assets/js/klp-login-widget.js +1716 -1716
- package/dist/collection/assets/js/sockjs-client.js +5134 -5134
- package/dist/collection/components/post-internet-breadcrumbs/components/breadcrumb-list.component.js +11 -11
- package/dist/collection/components/post-internet-breadcrumbs/components/breadcrumb-list.component.js.map +1 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/focus-trap.component.js +42 -42
- package/dist/collection/components/post-internet-breadcrumbs/components/focus-trap.component.js.map +1 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-dropdown.component.js +8 -8
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-dropdown.component.js.map +1 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-links.component.js +6 -6
- package/dist/collection/components/post-internet-breadcrumbs/components/middle-links.component.js.map +1 -1
- package/dist/collection/components/post-internet-breadcrumbs/components/overlay.component.js +12 -12
- package/dist/collection/components/post-internet-breadcrumbs/components/overlay.component.js.map +1 -1
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js +253 -253
- package/dist/collection/components/post-internet-breadcrumbs/post-internet-breadcrumbs.js.map +1 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-address.component.js +12 -12
- package/dist/collection/components/post-internet-footer/components/post-footer-block-address.component.js.map +1 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-contact.component.js +24 -24
- package/dist/collection/components/post-internet-footer/components/post-footer-block-contact.component.js.map +1 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-custom.component.js +6 -6
- package/dist/collection/components/post-internet-footer/components/post-footer-block-custom.component.js.map +1 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-list.component.js +6 -6
- package/dist/collection/components/post-internet-footer/components/post-footer-block-list.component.js.map +1 -1
- package/dist/collection/components/post-internet-footer/components/post-footer-block-socials.component.js +5 -5
- package/dist/collection/components/post-internet-footer/components/post-footer-block-socials.component.js.map +1 -1
- package/dist/collection/components/post-internet-footer/post-internet-footer.js +86 -86
- package/dist/collection/components/post-internet-footer/post-internet-footer.js.map +1 -1
- package/dist/collection/components/post-internet-header/post-internet-header.js +676 -676
- package/dist/collection/components/post-internet-header/post-internet-header.js.map +1 -1
- package/dist/collection/components/post-klp-login-widget/klp-widget.controller.js +14 -14
- package/dist/collection/components/post-klp-login-widget/klp-widget.controller.js.map +1 -1
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js +67 -67
- package/dist/collection/components/post-klp-login-widget/post-klp-login-widget.js.map +1 -1
- package/dist/collection/components/post-language-switch/components/post-language-switch-list.js +9 -9
- package/dist/collection/components/post-language-switch/components/post-language-switch-list.js.map +1 -1
- package/dist/collection/components/post-language-switch/post-language-switch.js +186 -186
- package/dist/collection/components/post-language-switch/post-language-switch.js.map +1 -1
- package/dist/collection/components/post-logo/logo-sprite.component.js +4 -4
- package/dist/collection/components/post-logo/logo-sprite.component.js.map +1 -1
- package/dist/collection/components/post-logo/post-logo.js +60 -60
- package/dist/collection/components/post-logo/post-logo.js.map +1 -1
- package/dist/collection/components/post-main-navigation/components/level-one-action.component.js +13 -13
- package/dist/collection/components/post-main-navigation/components/level-one-action.component.js.map +1 -1
- package/dist/collection/components/post-main-navigation/post-main-navigation.js +347 -347
- package/dist/collection/components/post-main-navigation/post-main-navigation.js.map +1 -1
- package/dist/collection/components/post-meta-navigation/post-meta-navigation.js +67 -67
- package/dist/collection/components/post-meta-navigation/post-meta-navigation.js.map +1 -1
- package/dist/collection/components/post-search/post-search.js +362 -362
- package/dist/collection/components/post-search/post-search.js.map +1 -1
- package/dist/collection/components/post-skiplinks/post-skiplinks.js +51 -51
- package/dist/collection/components/post-skiplinks/post-skiplinks.js.map +1 -1
- package/dist/collection/data/store.js +11 -11
- package/dist/collection/data/store.js.map +1 -1
- package/dist/collection/index.js +2 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/models/breadcrumbs.model.js +2 -2
- package/dist/collection/models/breadcrumbs.model.js.map +1 -1
- package/dist/collection/models/coveo.model.js +2 -2
- package/dist/collection/models/coveo.model.js.map +1 -1
- package/dist/collection/models/footer.model.js +2 -2
- package/dist/collection/models/footer.model.js.map +1 -1
- package/dist/collection/models/general.model.js +2 -2
- package/dist/collection/models/general.model.js.map +1 -1
- package/dist/collection/models/geocode.model.js +10 -10
- package/dist/collection/models/geocode.model.js.map +1 -1
- package/dist/collection/models/header.model.js +2 -2
- package/dist/collection/models/header.model.js.map +1 -1
- package/dist/collection/models/implementor.model.js +2 -2
- package/dist/collection/models/implementor.model.js.map +1 -1
- package/dist/collection/models/language.model.js +2 -2
- package/dist/collection/models/language.model.js.map +1 -1
- package/dist/collection/models/track-and-trace.model.js +2 -2
- package/dist/collection/models/track-and-trace.model.js.map +1 -1
- package/dist/collection/services/config.service.js +170 -170
- package/dist/collection/services/config.service.js.map +1 -1
- package/dist/collection/services/language.service.js +107 -107
- package/dist/collection/services/language.service.js.map +1 -1
- package/dist/collection/services/route.service.js +163 -163
- package/dist/collection/services/route.service.js.map +1 -1
- package/dist/collection/services/search/coveo.service.js +34 -34
- package/dist/collection/services/search/coveo.service.js.map +1 -1
- package/dist/collection/services/search/coveo.settings.js +19 -19
- package/dist/collection/services/search/coveo.settings.js.map +1 -1
- package/dist/collection/services/search/parcel.service.js +54 -54
- package/dist/collection/services/search/parcel.service.js.map +1 -1
- package/dist/collection/services/search/places.service.js +95 -95
- package/dist/collection/services/search/places.service.js.map +1 -1
- package/dist/collection/services/search/places.settings.js +16 -16
- package/dist/collection/services/search/places.settings.js.map +1 -1
- package/dist/collection/services/search/search-utilities.js +26 -26
- package/dist/collection/services/search/search-utilities.js.map +1 -1
- package/dist/collection/services/search/search.service.js +42 -42
- package/dist/collection/services/search/search.service.js.map +1 -1
- package/dist/collection/services/ui.service.js +30 -30
- package/dist/collection/services/ui.service.js.map +1 -1
- package/dist/collection/tests/setup-tests.js +14 -14
- package/dist/collection/tests/setup-tests.js.map +1 -1
- package/dist/collection/utils/highlighted.component.js +11 -11
- package/dist/collection/utils/highlighted.component.js.map +1 -1
- package/dist/collection/utils/if.component.js +7 -7
- package/dist/collection/utils/if.component.js.map +1 -1
- package/dist/collection/utils/svg-icon.component.js +3 -3
- package/dist/collection/utils/svg-icon.component.js.map +1 -1
- package/dist/collection/utils/svg-sprite.component.js +3 -3
- package/dist/collection/utils/svg-sprite.component.js.map +1 -1
- package/dist/collection/utils/utils.js +16 -16
- package/dist/collection/utils/utils.js.map +1 -1
- package/dist/components/klp-widget.controller.js +15754 -15754
- package/dist/components/klp-widget.controller.js.map +1 -1
- package/dist/components/language.service.js +139 -139
- package/dist/components/language.service.js.map +1 -1
- package/dist/components/post-klp-login-widget2.js +48 -48
- package/dist/components/post-klp-login-widget2.js.map +1 -1
- package/dist/components/post-language-switch2.js +102 -102
- package/dist/components/post-language-switch2.js.map +1 -1
- package/dist/components/post-logo2.js +67 -67
- package/dist/components/post-logo2.js.map +1 -1
- package/dist/components/post-main-navigation2.js +243 -243
- package/dist/components/post-main-navigation2.js.map +1 -1
- package/dist/components/post-meta-navigation2.js +32 -32
- package/dist/components/post-meta-navigation2.js.map +1 -1
- package/dist/components/post-search2.js +577 -555
- package/dist/components/post-search2.js.map +1 -1
- package/dist/components/post-skiplinks2.js +52 -52
- package/dist/components/post-skiplinks2.js.map +1 -1
- package/dist/components/store.js +19 -12
- package/dist/components/store.js.map +1 -1
- package/dist/components/svg-icon.component.js +1 -1
- package/dist/components/svg-icon.component.js.map +1 -1
- package/dist/components/svg-sprite.component.js +39 -39
- package/dist/components/svg-sprite.component.js.map +1 -1
- package/dist/components/swisspost-internet-breadcrumbs.js +387 -409
- package/dist/components/swisspost-internet-breadcrumbs.js.map +1 -1
- package/dist/components/swisspost-internet-footer.js +140 -140
- package/dist/components/swisspost-internet-footer.js.map +1 -1
- package/dist/components/swisspost-internet-header.js +672 -672
- package/dist/components/swisspost-internet-header.js.map +1 -1
- package/dist/components/ui.service.js +27 -27
- package/dist/components/ui.service.js.map +1 -1
- package/dist/components/utils.js +14 -14
- package/dist/components/utils.js.map +1 -1
- package/dist/esm/{if.component-542fb8c3.js → if.component-0fe54385.js} +6 -6
- package/dist/esm/if.component-0fe54385.js.map +1 -0
- package/dist/esm/{klp-widget.controller-be1eeb16.js → klp-widget.controller-55366e6a.js} +15755 -15755
- package/dist/esm/klp-widget.controller-55366e6a.js.map +1 -0
- package/dist/esm/{language.service-e49858e0.js → language.service-023d2711.js} +141 -141
- package/dist/esm/language.service-023d2711.js.map +1 -0
- package/dist/esm/post-klp-login-widget.entry.js +33 -33
- package/dist/esm/post-klp-login-widget.entry.js.map +1 -1
- package/dist/esm/post-language-switch.entry.js +88 -88
- package/dist/esm/post-language-switch.entry.js.map +1 -1
- package/dist/esm/post-logo.entry.js +51 -51
- package/dist/esm/post-logo.entry.js.map +1 -1
- package/dist/esm/post-main-navigation.entry.js +226 -226
- package/dist/esm/post-main-navigation.entry.js.map +1 -1
- package/dist/esm/post-meta-navigation.entry.js +15 -15
- package/dist/esm/post-meta-navigation.entry.js.map +1 -1
- package/dist/esm/post-search.entry.js +556 -534
- package/dist/esm/post-search.entry.js.map +1 -1
- package/dist/esm/post-skiplinks.entry.js +41 -41
- package/dist/esm/post-skiplinks.entry.js.map +1 -1
- package/dist/esm/{store-d495dc07.js → store-837c3490.js} +20 -13
- package/dist/esm/store-837c3490.js.map +1 -0
- package/dist/esm/{svg-icon.component-1b1b27a2.js → svg-icon.component-e09b4bf9.js} +2 -2
- package/dist/esm/svg-icon.component-e09b4bf9.js.map +1 -0
- package/dist/esm/{svg-sprite.component-ec0ac38c.js → svg-sprite.component-cf60303f.js} +40 -40
- package/dist/esm/svg-sprite.component-cf60303f.js.map +1 -0
- package/dist/esm/swisspost-internet-breadcrumbs.entry.js +370 -392
- package/dist/esm/swisspost-internet-breadcrumbs.entry.js.map +1 -1
- package/dist/esm/swisspost-internet-footer.entry.js +125 -125
- package/dist/esm/swisspost-internet-footer.entry.js.map +1 -1
- package/dist/esm/swisspost-internet-header.entry.js +608 -608
- package/dist/esm/swisspost-internet-header.entry.js.map +1 -1
- package/dist/esm/{ui.service-1d9b0f51.js → ui.service-2fbc9c45.js} +28 -28
- package/dist/esm/ui.service-2fbc9c45.js.map +1 -0
- package/dist/esm/{utils-5bf107ff.js → utils-ee79122f.js} +15 -15
- package/dist/esm/utils-ee79122f.js.map +1 -0
- package/dist/esm-es5/{if.component-542fb8c3.js → if.component-0fe54385.js} +1 -1
- package/dist/esm-es5/if.component-0fe54385.js.map +1 -0
- package/dist/esm-es5/{klp-widget.controller-be1eeb16.js → klp-widget.controller-55366e6a.js} +2 -2
- package/dist/esm-es5/klp-widget.controller-55366e6a.js.map +1 -0
- package/dist/esm-es5/{language.service-e49858e0.js → language.service-023d2711.js} +2 -2
- package/dist/esm-es5/language.service-023d2711.js.map +1 -0
- package/dist/esm-es5/post-klp-login-widget.entry.js +1 -1
- package/dist/esm-es5/post-klp-login-widget.entry.js.map +1 -1
- package/dist/esm-es5/post-language-switch.entry.js +1 -1
- package/dist/esm-es5/post-language-switch.entry.js.map +1 -1
- package/dist/esm-es5/post-logo.entry.js +1 -1
- package/dist/esm-es5/post-logo.entry.js.map +1 -1
- package/dist/esm-es5/post-main-navigation.entry.js +1 -1
- package/dist/esm-es5/post-main-navigation.entry.js.map +1 -1
- package/dist/esm-es5/post-meta-navigation.entry.js +1 -1
- package/dist/esm-es5/post-meta-navigation.entry.js.map +1 -1
- package/dist/esm-es5/post-search.entry.js +1 -1
- package/dist/esm-es5/post-search.entry.js.map +1 -1
- package/dist/esm-es5/post-skiplinks.entry.js +1 -1
- package/dist/esm-es5/post-skiplinks.entry.js.map +1 -1
- package/dist/esm-es5/store-837c3490.js +2 -0
- package/dist/esm-es5/store-837c3490.js.map +1 -0
- package/dist/esm-es5/{svg-icon.component-1b1b27a2.js → svg-icon.component-e09b4bf9.js} +1 -1
- package/dist/esm-es5/svg-icon.component-e09b4bf9.js.map +1 -0
- package/dist/esm-es5/{svg-sprite.component-ec0ac38c.js → svg-sprite.component-cf60303f.js} +1 -1
- package/dist/esm-es5/svg-sprite.component-cf60303f.js.map +1 -0
- package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js +3 -3
- package/dist/esm-es5/swisspost-internet-breadcrumbs.entry.js.map +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-footer.entry.js.map +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js +1 -1
- package/dist/esm-es5/swisspost-internet-header.entry.js.map +1 -1
- package/dist/esm-es5/{ui.service-1d9b0f51.js → ui.service-2fbc9c45.js} +1 -1
- package/dist/esm-es5/ui.service-2fbc9c45.js.map +1 -0
- package/dist/esm-es5/{utils-5bf107ff.js → utils-ee79122f.js} +1 -1
- package/dist/esm-es5/utils-ee79122f.js.map +1 -0
- package/dist/swisspost-internet-header/assets/config/test-configuration.json +4067 -4067
- package/dist/swisspost-internet-header/p-06649b46.js +2 -0
- package/dist/swisspost-internet-header/p-06649b46.js.map +1 -0
- package/dist/swisspost-internet-header/{p-ec80c8fc.js → p-0942595f.js} +2 -2
- package/dist/swisspost-internet-header/p-0942595f.js.map +1 -0
- package/dist/swisspost-internet-header/{p-c29ec122.system.js → p-0c5624c0.system.js} +1 -1
- package/dist/swisspost-internet-header/p-0c5624c0.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-2eb04045.entry.js → p-0cba8ab4.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-0cba8ab4.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-17a47667.system.js +1 -1
- package/dist/swisspost-internet-header/{p-ddcb8258.entry.js → p-26879023.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-26879023.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-cb3de015.system.entry.js → p-28e6362f.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-28e6362f.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-00fd320e.entry.js → p-322526ef.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-322526ef.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-f4ff1e9e.system.js → p-3753a678.system.js} +2 -2
- package/dist/swisspost-internet-header/p-3753a678.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-a9c4b2d0.system.entry.js → p-38d645ba.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-38d645ba.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-4c9ec2d8.system.js → p-42695801.system.js} +2 -2
- package/dist/swisspost-internet-header/p-42695801.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-bdabd6ac.js → p-45db66a6.js} +1 -1
- package/dist/swisspost-internet-header/p-45db66a6.js.map +1 -0
- package/dist/swisspost-internet-header/p-493337e1.system.entry.js +2 -0
- package/dist/swisspost-internet-header/p-493337e1.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-78f653be.system.entry.js → p-5d2fac3b.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-5d2fac3b.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-62c5cf26.entry.js +2 -0
- package/dist/swisspost-internet-header/p-62c5cf26.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-9d0a7039.entry.js → p-64cb215a.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-64cb215a.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-a51ad207.system.entry.js → p-66144e99.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-66144e99.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-715ebef7.system.entry.js +7 -0
- package/dist/swisspost-internet-header/p-715ebef7.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-43cbbf42.entry.js → p-77d5e07f.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-77d5e07f.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-7ea26ee9.entry.js +2 -0
- package/dist/swisspost-internet-header/p-7ea26ee9.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-7fcba2e7.system.js +2 -0
- package/dist/swisspost-internet-header/p-7fcba2e7.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-549b62ba.system.js → p-88aac12c.system.js} +1 -1
- package/dist/swisspost-internet-header/p-88aac12c.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-0e2ec555.js → p-8bf099a8.js} +1 -1
- package/dist/swisspost-internet-header/p-8bf099a8.js.map +1 -0
- package/dist/swisspost-internet-header/{p-8717445f.entry.js → p-95b81c4d.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-95b81c4d.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-3eb881c3.js → p-a2f9d462.js} +1 -1
- package/dist/swisspost-internet-header/p-a2f9d462.js.map +1 -0
- package/dist/swisspost-internet-header/{p-eeff8b03.js → p-ab1dd269.js} +1 -1
- package/dist/swisspost-internet-header/p-ab1dd269.js.map +1 -0
- package/dist/swisspost-internet-header/p-b228fe49.system.entry.js +2 -0
- package/dist/swisspost-internet-header/p-b228fe49.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-a4160d23.entry.js → p-ccb522ba.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-ccb522ba.entry.js.map +1 -0
- package/dist/swisspost-internet-header/p-cfa787d7.entry.js +6 -0
- package/dist/swisspost-internet-header/p-cfa787d7.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-c946c5b8.system.entry.js → p-d6539597.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-d6539597.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-cb06a633.system.entry.js → p-e2990968.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-e2990968.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-7e653a26.js → p-ed24b372.js} +2 -2
- package/dist/swisspost-internet-header/p-ed24b372.js.map +1 -0
- package/dist/swisspost-internet-header/{p-9509f6c7.system.js → p-edb2802d.system.js} +1 -1
- package/dist/swisspost-internet-header/p-edb2802d.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-ee915bbe.system.js → p-ee119d2e.system.js} +1 -1
- package/dist/swisspost-internet-header/p-ee119d2e.system.js.map +1 -0
- package/dist/swisspost-internet-header/{p-883f9547.system.entry.js → p-f38f38f4.system.entry.js} +2 -2
- package/dist/swisspost-internet-header/p-f38f38f4.system.entry.js.map +1 -0
- package/dist/swisspost-internet-header/{p-3ba40afe.js → p-f7c0cf7b.js} +1 -1
- package/dist/swisspost-internet-header/p-f7c0cf7b.js.map +1 -0
- package/dist/swisspost-internet-header/{p-4654b2af.system.js → p-ffc59851.system.js} +1 -1
- package/dist/swisspost-internet-header/p-ffc59851.system.js.map +1 -0
- package/dist/swisspost-internet-header/swisspost-internet-header.esm.js +1 -1
- package/dist/types/assets/i18n/translations.d.ts +37 -37
- package/dist/types/components/post-internet-breadcrumbs/components/breadcrumb-list.component.d.ts +9 -9
- package/dist/types/components/post-internet-breadcrumbs/components/focus-trap.component.d.ts +12 -12
- package/dist/types/components/post-internet-breadcrumbs/components/middle-dropdown.component.d.ts +7 -7
- package/dist/types/components/post-internet-breadcrumbs/components/middle-links.component.d.ts +6 -6
- package/dist/types/components/post-internet-breadcrumbs/components/overlay.component.d.ts +16 -16
- package/dist/types/components/post-internet-breadcrumbs/post-internet-breadcrumbs.d.ts +45 -45
- package/dist/types/components/post-internet-footer/components/post-footer-block-address.component.d.ts +5 -5
- package/dist/types/components/post-internet-footer/components/post-footer-block-contact.component.d.ts +6 -6
- package/dist/types/components/post-internet-footer/components/post-footer-block-custom.component.d.ts +4 -4
- package/dist/types/components/post-internet-footer/components/post-footer-block-list.component.d.ts +5 -5
- package/dist/types/components/post-internet-footer/components/post-footer-block-socials.component.d.ts +5 -5
- package/dist/types/components/post-internet-footer/post-internet-footer.d.ts +10 -10
- package/dist/types/components/post-internet-header/post-internet-header.d.ts +124 -124
- package/dist/types/components/post-klp-login-widget/klp-widget.controller.d.ts +3 -3
- package/dist/types/components/post-klp-login-widget/post-klp-login-widget.d.ts +10 -10
- package/dist/types/components/post-language-switch/components/post-language-switch-list.d.ts +6 -6
- package/dist/types/components/post-language-switch/post-language-switch.d.ts +27 -27
- package/dist/types/components/post-logo/logo-sprite.component.d.ts +4 -4
- package/dist/types/components/post-logo/post-logo.d.ts +11 -11
- package/dist/types/components/post-main-navigation/components/level-one-action.component.d.ts +8 -8
- package/dist/types/components/post-main-navigation/post-main-navigation.d.ts +48 -48
- package/dist/types/components/post-meta-navigation/post-meta-navigation.d.ts +5 -5
- package/dist/types/components/post-search/post-search.d.ts +61 -61
- package/dist/types/components/post-skiplinks/post-skiplinks.d.ts +9 -9
- package/dist/types/data/store.d.ts +16 -16
- package/dist/types/index.d.ts +1 -1
- package/dist/types/models/breadcrumbs.model.d.ts +36 -36
- package/dist/types/models/coveo.model.d.ts +22 -22
- package/dist/types/models/footer.model.d.ts +48 -48
- package/dist/types/models/general.model.d.ts +46 -46
- package/dist/types/models/geocode.model.d.ts +52 -52
- package/dist/types/models/header.model.d.ts +163 -163
- package/dist/types/models/implementor.model.d.ts +22 -22
- package/dist/types/models/language.model.d.ts +6 -6
- package/dist/types/models/track-and-trace.model.d.ts +25 -25
- package/dist/types/services/config.service.d.ts +56 -56
- package/dist/types/services/language.service.d.ts +65 -65
- package/dist/types/services/route.service.d.ts +39 -39
- package/dist/types/services/search/coveo.service.d.ts +9 -9
- package/dist/types/services/search/coveo.settings.d.ts +2 -2
- package/dist/types/services/search/parcel.service.d.ts +28 -28
- package/dist/types/services/search/places.service.d.ts +24 -24
- package/dist/types/services/search/places.settings.d.ts +3 -3
- package/dist/types/services/search/search-utilities.d.ts +15 -15
- package/dist/types/services/search/search.service.d.ts +24 -24
- package/dist/types/services/ui.service.d.ts +23 -23
- package/dist/types/utils/highlighted.component.d.ts +4 -4
- package/dist/types/utils/if.component.d.ts +4 -4
- package/dist/types/utils/svg-icon.component.d.ts +4 -4
- package/dist/types/utils/svg-sprite.component.d.ts +1 -1
- package/dist/types/utils/utils.d.ts +8 -8
- package/package.json +7 -7
- package/readme.md +57 -15
- package/dist/cjs/if.component-313f59b8.js.map +0 -1
- package/dist/cjs/klp-widget.controller-675b23db.js.map +0 -1
- package/dist/cjs/language.service-a80ae01d.js.map +0 -1
- package/dist/cjs/store-47e14589.js.map +0 -1
- package/dist/cjs/svg-icon.component-10fbda11.js.map +0 -1
- package/dist/cjs/svg-sprite.component-c3b454b3.js.map +0 -1
- package/dist/cjs/ui.service-db4a8252.js.map +0 -1
- package/dist/cjs/utils-b6014257.js.map +0 -1
- package/dist/esm/if.component-542fb8c3.js.map +0 -1
- package/dist/esm/klp-widget.controller-be1eeb16.js.map +0 -1
- package/dist/esm/language.service-e49858e0.js.map +0 -1
- package/dist/esm/store-d495dc07.js.map +0 -1
- package/dist/esm/svg-icon.component-1b1b27a2.js.map +0 -1
- package/dist/esm/svg-sprite.component-ec0ac38c.js.map +0 -1
- package/dist/esm/ui.service-1d9b0f51.js.map +0 -1
- package/dist/esm/utils-5bf107ff.js.map +0 -1
- package/dist/esm-es5/if.component-542fb8c3.js.map +0 -1
- package/dist/esm-es5/klp-widget.controller-be1eeb16.js.map +0 -1
- package/dist/esm-es5/language.service-e49858e0.js.map +0 -1
- package/dist/esm-es5/store-d495dc07.js +0 -2
- package/dist/esm-es5/store-d495dc07.js.map +0 -1
- package/dist/esm-es5/svg-icon.component-1b1b27a2.js.map +0 -1
- package/dist/esm-es5/svg-sprite.component-ec0ac38c.js.map +0 -1
- package/dist/esm-es5/ui.service-1d9b0f51.js.map +0 -1
- package/dist/esm-es5/utils-5bf107ff.js.map +0 -1
- package/dist/swisspost-internet-header/p-00fd320e.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-0e2ec555.js.map +0 -1
- package/dist/swisspost-internet-header/p-1394ee67.entry.js +0 -2
- package/dist/swisspost-internet-header/p-1394ee67.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-26c2842e.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-26c2842e.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-2eb04045.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-3ba40afe.js.map +0 -1
- package/dist/swisspost-internet-header/p-3eb881c3.js.map +0 -1
- package/dist/swisspost-internet-header/p-43cbbf42.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-4654b2af.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-4c9ec2d8.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-549b62ba.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-5e43c5e0.js +0 -2
- package/dist/swisspost-internet-header/p-5e43c5e0.js.map +0 -1
- package/dist/swisspost-internet-header/p-74932c29.entry.js +0 -6
- package/dist/swisspost-internet-header/p-74932c29.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-76ce4acc.system.entry.js +0 -2
- package/dist/swisspost-internet-header/p-76ce4acc.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-78f653be.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-7e653a26.js.map +0 -1
- package/dist/swisspost-internet-header/p-7f16a46b.entry.js +0 -2
- package/dist/swisspost-internet-header/p-7f16a46b.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-8717445f.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-883f9547.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-9509f6c7.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-9d0a7039.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-a4160d23.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-a51ad207.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-a9c4b2d0.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-bdabd6ac.js.map +0 -1
- package/dist/swisspost-internet-header/p-c29ec122.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-c69923cd.system.js +0 -2
- package/dist/swisspost-internet-header/p-c69923cd.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-c946c5b8.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-cb06a633.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-cb3de015.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-d713a3b3.system.entry.js +0 -7
- package/dist/swisspost-internet-header/p-d713a3b3.system.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-ddcb8258.entry.js.map +0 -1
- package/dist/swisspost-internet-header/p-ec80c8fc.js.map +0 -1
- package/dist/swisspost-internet-header/p-ee915bbe.system.js.map +0 -1
- package/dist/swisspost-internet-header/p-eeff8b03.js.map +0 -1
- package/dist/swisspost-internet-header/p-f4ff1e9e.system.js.map +0 -1
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { ActiveRouteProp } from '../models/general.model';
|
|
2
|
-
import { NavMainEntity, MainNavScoreList } from '../models/header.model';
|
|
3
|
-
/**
|
|
4
|
-
* Activate the current route based on the config and the match mode
|
|
5
|
-
* @param config Main Navigation Config
|
|
6
|
-
* @param activeRouteProp Match mode
|
|
7
|
-
* @returns Modified Main Navigation Config
|
|
8
|
-
*/
|
|
9
|
-
export declare const markActiveRoute: (config: NavMainEntity[], activeRouteProp: ActiveRouteProp) => NavMainEntity[];
|
|
10
|
-
/**
|
|
11
|
-
* Check if the portal config set any active route
|
|
12
|
-
* @param config Main navigation config
|
|
13
|
-
* @returns True if portal set any route as active
|
|
14
|
-
*/
|
|
15
|
-
export declare const hasActivePortalRoute: (config: NavMainEntity[]) => boolean;
|
|
16
|
-
export declare const resetActiveStateToPortalConfig: (config: NavMainEntity[]) => NavMainEntity[];
|
|
17
|
-
/**
|
|
18
|
-
* Compile a list of scores based on the map mode, sorted in descending order
|
|
19
|
-
* @param config Main Nav Config
|
|
20
|
-
* @param compareUrl Current Browser URL or a custom URL
|
|
21
|
-
* @param activeRouteProp Match mode
|
|
22
|
-
* @returns A list of scored URLs if any matched
|
|
23
|
-
*/
|
|
24
|
-
export declare const compileScoreList: (config: NavMainEntity[], compareUrl: URL, activeRouteProp: ActiveRouteProp) => MainNavScoreList;
|
|
25
|
-
/**
|
|
26
|
-
* Compare two URLs for similarity based on a match mode
|
|
27
|
-
* @param baseUrl Browser URL
|
|
28
|
-
* @param compareUrl Navigatgion URL
|
|
29
|
-
* @param matchMode exact or auto matching
|
|
30
|
-
* @returns Score
|
|
31
|
-
*/
|
|
32
|
-
export declare const compareRoutes: (baseUrl: URL, compareUrl: URL, matchMode?: 'auto' | 'exact') => number;
|
|
33
|
-
/**
|
|
34
|
-
* Check how many items in an array match
|
|
35
|
-
* @param a Base array
|
|
36
|
-
* @param b Compare array
|
|
37
|
-
* @returns Score
|
|
38
|
-
*/
|
|
39
|
-
export declare const getSimilarityScore: (a: string[], b: string[]) => number;
|
|
1
|
+
import { ActiveRouteProp } from '../models/general.model';
|
|
2
|
+
import { NavMainEntity, MainNavScoreList } from '../models/header.model';
|
|
3
|
+
/**
|
|
4
|
+
* Activate the current route based on the config and the match mode
|
|
5
|
+
* @param config Main Navigation Config
|
|
6
|
+
* @param activeRouteProp Match mode
|
|
7
|
+
* @returns Modified Main Navigation Config
|
|
8
|
+
*/
|
|
9
|
+
export declare const markActiveRoute: (config: NavMainEntity[], activeRouteProp: ActiveRouteProp) => NavMainEntity[];
|
|
10
|
+
/**
|
|
11
|
+
* Check if the portal config set any active route
|
|
12
|
+
* @param config Main navigation config
|
|
13
|
+
* @returns True if portal set any route as active
|
|
14
|
+
*/
|
|
15
|
+
export declare const hasActivePortalRoute: (config: NavMainEntity[]) => boolean;
|
|
16
|
+
export declare const resetActiveStateToPortalConfig: (config: NavMainEntity[]) => NavMainEntity[];
|
|
17
|
+
/**
|
|
18
|
+
* Compile a list of scores based on the map mode, sorted in descending order
|
|
19
|
+
* @param config Main Nav Config
|
|
20
|
+
* @param compareUrl Current Browser URL or a custom URL
|
|
21
|
+
* @param activeRouteProp Match mode
|
|
22
|
+
* @returns A list of scored URLs if any matched
|
|
23
|
+
*/
|
|
24
|
+
export declare const compileScoreList: (config: NavMainEntity[], compareUrl: URL, activeRouteProp: ActiveRouteProp) => MainNavScoreList;
|
|
25
|
+
/**
|
|
26
|
+
* Compare two URLs for similarity based on a match mode
|
|
27
|
+
* @param baseUrl Browser URL
|
|
28
|
+
* @param compareUrl Navigatgion URL
|
|
29
|
+
* @param matchMode exact or auto matching
|
|
30
|
+
* @returns Score
|
|
31
|
+
*/
|
|
32
|
+
export declare const compareRoutes: (baseUrl: URL, compareUrl: URL, matchMode?: 'auto' | 'exact') => number;
|
|
33
|
+
/**
|
|
34
|
+
* Check how many items in an array match
|
|
35
|
+
* @param a Base array
|
|
36
|
+
* @param b Compare array
|
|
37
|
+
* @returns Score
|
|
38
|
+
*/
|
|
39
|
+
export declare const getSimilarityScore: (a: string[], b: string[]) => number;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { CoveoCompletion } from '../../models/coveo.model';
|
|
2
|
-
/**
|
|
3
|
-
* Get suggestions from coveo
|
|
4
|
-
* https://docs.coveo.com/en/1459/build-a-search-ui/get-query-suggestions#context-object
|
|
5
|
-
*
|
|
6
|
-
* @param query Search term
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const getCoveoSuggestions: (query: string) => Promise<CoveoCompletion[]>;
|
|
1
|
+
import { CoveoCompletion } from '../../models/coveo.model';
|
|
2
|
+
/**
|
|
3
|
+
* Get suggestions from coveo
|
|
4
|
+
* https://docs.coveo.com/en/1459/build-a-search-ui/get-query-suggestions#context-object
|
|
5
|
+
*
|
|
6
|
+
* @param query Search term
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const getCoveoSuggestions: (query: string) => Promise<CoveoCompletion[]>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { CoveoOptions } from '../../models/coveo.model';
|
|
2
|
-
export declare const coveo: CoveoOptions;
|
|
1
|
+
import { CoveoOptions } from '../../models/coveo.model';
|
|
2
|
+
export declare const coveo: CoveoOptions;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { ISearchConfig } from '../../models/header.model';
|
|
2
|
-
import { TrackAndTraceInfo } from '../../models/track-and-trace.model';
|
|
3
|
-
export declare const getTrackAndTraceApiUrl: (id: string) => string;
|
|
4
|
-
export declare const getTrackAndTraceRedirectUrl: (query: string, { packageTrackingRedirectUrl }: ISearchConfig) => string;
|
|
5
|
-
/**
|
|
6
|
-
* Check whether a query is a tracking id
|
|
7
|
-
*
|
|
8
|
-
* @param query User query
|
|
9
|
-
* @returns Boolean
|
|
10
|
-
*/
|
|
11
|
-
export declare const isParcel: (query: string, searchConfig: ISearchConfig) => Promise<boolean>;
|
|
12
|
-
/**
|
|
13
|
-
* Try to get parcel info from a query that is possibly a tracking id.
|
|
14
|
-
* This is mainly used to check if a search should redirect to track&trace instead of the regular search.
|
|
15
|
-
*
|
|
16
|
-
* @param query User query that is possibly a tracking number
|
|
17
|
-
* @returns Track and trace info
|
|
18
|
-
*/
|
|
19
|
-
export declare const getParcelInfo: (query: string, { redirectPattern }: ISearchConfig) => Promise<TrackAndTraceInfo>;
|
|
20
|
-
/**
|
|
21
|
-
* Get parcel info if query is a parcel or null
|
|
22
|
-
*
|
|
23
|
-
* @param query Parcel id
|
|
24
|
-
* @returns Parcel info and a redirect url or null if not a parcel
|
|
25
|
-
*/
|
|
26
|
-
export declare const getParcelSuggestion: (query: string, searchConfig: ISearchConfig) => Promise<(TrackAndTraceInfo & {
|
|
27
|
-
url: string;
|
|
28
|
-
}) | null>;
|
|
1
|
+
import { ISearchConfig } from '../../models/header.model';
|
|
2
|
+
import { TrackAndTraceInfo } from '../../models/track-and-trace.model';
|
|
3
|
+
export declare const getTrackAndTraceApiUrl: (id: string) => string;
|
|
4
|
+
export declare const getTrackAndTraceRedirectUrl: (query: string, { packageTrackingRedirectUrl }: ISearchConfig) => string;
|
|
5
|
+
/**
|
|
6
|
+
* Check whether a query is a tracking id
|
|
7
|
+
*
|
|
8
|
+
* @param query User query
|
|
9
|
+
* @returns Boolean
|
|
10
|
+
*/
|
|
11
|
+
export declare const isParcel: (query: string, searchConfig: ISearchConfig) => Promise<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Try to get parcel info from a query that is possibly a tracking id.
|
|
14
|
+
* This is mainly used to check if a search should redirect to track&trace instead of the regular search.
|
|
15
|
+
*
|
|
16
|
+
* @param query User query that is possibly a tracking number
|
|
17
|
+
* @returns Track and trace info
|
|
18
|
+
*/
|
|
19
|
+
export declare const getParcelInfo: (query: string, { redirectPattern }: ISearchConfig) => Promise<TrackAndTraceInfo>;
|
|
20
|
+
/**
|
|
21
|
+
* Get parcel info if query is a parcel or null
|
|
22
|
+
*
|
|
23
|
+
* @param query Parcel id
|
|
24
|
+
* @returns Parcel info and a redirect url or null if not a parcel
|
|
25
|
+
*/
|
|
26
|
+
export declare const getParcelSuggestion: (query: string, searchConfig: ISearchConfig) => Promise<(TrackAndTraceInfo & {
|
|
27
|
+
url: string;
|
|
28
|
+
}) | null>;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { GeocodeLocation } from '../../models/geocode.model';
|
|
2
|
-
/**
|
|
3
|
-
* Query the Gis API for locations and localities (pois)
|
|
4
|
-
*
|
|
5
|
-
* @param query User input string
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const queryPlaces: (query: string) => Promise<GeocodeLocation[]>;
|
|
9
|
-
/**
|
|
10
|
-
* Try to highlight place suggestions
|
|
11
|
-
* Limitation: accented chars are not handled by this basic function
|
|
12
|
-
*
|
|
13
|
-
* @param query Search term
|
|
14
|
-
* @param place Name of the suggested place
|
|
15
|
-
* @returns
|
|
16
|
-
*/
|
|
17
|
-
export declare const highlightPlacesString: (query: string | undefined, place: string) => string;
|
|
18
|
-
/**
|
|
19
|
-
* Get the deeplink to any location found via geocoder
|
|
20
|
-
*
|
|
21
|
-
* @param location A location from the Gis API Geocode endpoint
|
|
22
|
-
* @returns
|
|
23
|
-
*/
|
|
24
|
-
export declare const getPlacesUrl: (location: GeocodeLocation) => string;
|
|
1
|
+
import { GeocodeLocation } from '../../models/geocode.model';
|
|
2
|
+
/**
|
|
3
|
+
* Query the Gis API for locations and localities (pois)
|
|
4
|
+
*
|
|
5
|
+
* @param query User input string
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const queryPlaces: (query: string) => Promise<GeocodeLocation[]>;
|
|
9
|
+
/**
|
|
10
|
+
* Try to highlight place suggestions
|
|
11
|
+
* Limitation: accented chars are not handled by this basic function
|
|
12
|
+
*
|
|
13
|
+
* @param query Search term
|
|
14
|
+
* @param place Name of the suggested place
|
|
15
|
+
* @returns
|
|
16
|
+
*/
|
|
17
|
+
export declare const highlightPlacesString: (query: string | undefined, place: string) => string;
|
|
18
|
+
/**
|
|
19
|
+
* Get the deeplink to any location found via geocoder
|
|
20
|
+
*
|
|
21
|
+
* @param location A location from the Gis API Geocode endpoint
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
export declare const getPlacesUrl: (location: GeocodeLocation) => string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const gisAPIUrl = "https://places.post.ch/StandortSuche/StaoCacheService";
|
|
2
|
-
export declare const placesUrl = "https://places.post.ch";
|
|
3
|
-
export declare const pois: string[];
|
|
1
|
+
export declare const gisAPIUrl = "https://places.post.ch/StandortSuche/StaoCacheService";
|
|
2
|
+
export declare const placesUrl = "https://places.post.ch";
|
|
3
|
+
export declare const pois: string[];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Transform to lowercase, extract accents to separate unicode chars,
|
|
3
|
-
* replace all accent unicode chars so only standard latin chars remain
|
|
4
|
-
* https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/37511463#37511463
|
|
5
|
-
*
|
|
6
|
-
* @param str Input string
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export declare const hardNormalize: (str: string) => string;
|
|
10
|
-
/**
|
|
11
|
-
* Convert a poi name to a URL compatible slug, logic copied from TOPOS
|
|
12
|
-
* @param fragment A poi name
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare const createSlug: (fragment: string) => string;
|
|
1
|
+
/**
|
|
2
|
+
* Transform to lowercase, extract accents to separate unicode chars,
|
|
3
|
+
* replace all accent unicode chars so only standard latin chars remain
|
|
4
|
+
* https://stackoverflow.com/questions/990904/remove-accents-diacritics-in-a-string-in-javascript/37511463#37511463
|
|
5
|
+
*
|
|
6
|
+
* @param str Input string
|
|
7
|
+
* @returns
|
|
8
|
+
*/
|
|
9
|
+
export declare const hardNormalize: (str: string) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Convert a poi name to a URL compatible slug, logic copied from TOPOS
|
|
12
|
+
* @param fragment A poi name
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const createSlug: (fragment: string) => string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { ISearchConfig } from '../../models/header.model';
|
|
2
|
-
/**
|
|
3
|
-
* Construct a search page url from a query
|
|
4
|
-
*
|
|
5
|
-
* @param query Search term
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const getSearchRedirectUrl: (query: string, searchConfig: ISearchConfig) => Promise<string | undefined>;
|
|
9
|
-
/**
|
|
10
|
-
* Stitch toghether the search page URL
|
|
11
|
-
*
|
|
12
|
-
* @param query Search term
|
|
13
|
-
* @returns Search page URL
|
|
14
|
-
*/
|
|
15
|
-
export declare const getSearchPageUrl: (query: string) => string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Equalize the length of two arrays while filling up empty slots up to max. length
|
|
18
|
-
*
|
|
19
|
-
* @param arrayA First array
|
|
20
|
-
* @param arrayB Second array
|
|
21
|
-
* @param maxLength Max. length of result array
|
|
22
|
-
* @returns Array with two resulting arrays
|
|
23
|
-
*/
|
|
24
|
-
export declare const equalizeArrays: <A, B>(arrayA: A[], arrayB: B[], maxLength?: number) => [A[], B[]];
|
|
1
|
+
import { ISearchConfig } from '../../models/header.model';
|
|
2
|
+
/**
|
|
3
|
+
* Construct a search page url from a query
|
|
4
|
+
*
|
|
5
|
+
* @param query Search term
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const getSearchRedirectUrl: (query: string, searchConfig: ISearchConfig) => Promise<string | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* Stitch toghether the search page URL
|
|
11
|
+
*
|
|
12
|
+
* @param query Search term
|
|
13
|
+
* @returns Search page URL
|
|
14
|
+
*/
|
|
15
|
+
export declare const getSearchPageUrl: (query: string) => string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Equalize the length of two arrays while filling up empty slots up to max. length
|
|
18
|
+
*
|
|
19
|
+
* @param arrayA First array
|
|
20
|
+
* @param arrayB Second array
|
|
21
|
+
* @param maxLength Max. length of result array
|
|
22
|
+
* @returns Array with two resulting arrays
|
|
23
|
+
*/
|
|
24
|
+
export declare const equalizeArrays: <A, B>(arrayA: A[], arrayB: B[], maxLength?: number) => [A[], B[]];
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if an element with `text-overflow: ellipsis;` is fully displayed or concatenated
|
|
3
|
-
* https://stackoverflow.com/questions/7738117/html-text-overflow-ellipsis-detection
|
|
4
|
-
*
|
|
5
|
-
* @param element Element to check. This is the element with the `text-overflow: ellipsis;` style
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const isConcatenated: (element: HTMLElement) => boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Check if user preferes reduced motion
|
|
11
|
-
* Windows 10: `Windows Settings` > `Ease of Access` > `Display` > `Simplify and Personalize Windows` > `Show animations in Windows`
|
|
12
|
-
*
|
|
13
|
-
* @returns
|
|
14
|
-
*/
|
|
15
|
-
export declare const userPrefersReducedMotion: () => boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Check if an element has a transition applied
|
|
18
|
-
*
|
|
19
|
-
* @param element Element to check. This is the element with the `transition` style
|
|
20
|
-
* @param transition Specific transition to check for (e.g. `translate`)
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
export declare const elementHasTransition: (element: HTMLElement, transition: string) => boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Check if an element with `text-overflow: ellipsis;` is fully displayed or concatenated
|
|
3
|
+
* https://stackoverflow.com/questions/7738117/html-text-overflow-ellipsis-detection
|
|
4
|
+
*
|
|
5
|
+
* @param element Element to check. This is the element with the `text-overflow: ellipsis;` style
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare const isConcatenated: (element: HTMLElement) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Check if user preferes reduced motion
|
|
11
|
+
* Windows 10: `Windows Settings` > `Ease of Access` > `Display` > `Simplify and Personalize Windows` > `Show animations in Windows`
|
|
12
|
+
*
|
|
13
|
+
* @returns
|
|
14
|
+
*/
|
|
15
|
+
export declare const userPrefersReducedMotion: () => boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Check if an element has a transition applied
|
|
18
|
+
*
|
|
19
|
+
* @param element Element to check. This is the element with the `transition` style
|
|
20
|
+
* @param transition Specific transition to check for (e.g. `translate`)
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const elementHasTransition: (element: HTMLElement, transition: string) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const HighlightedText: (props: {
|
|
2
|
-
text: string;
|
|
3
|
-
highlightClass?: string;
|
|
4
|
-
}) => any;
|
|
1
|
+
export declare const HighlightedText: (props: {
|
|
2
|
+
text: string;
|
|
3
|
+
highlightClass?: string;
|
|
4
|
+
}) => any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { JSXBase } from '../stencil-public-runtime';
|
|
2
|
-
export declare const If: (props: {
|
|
3
|
-
condition: boolean;
|
|
4
|
-
}, children: JSXBase.IntrinsicElements) => JSXBase.IntrinsicElements | null;
|
|
1
|
+
import { JSXBase } from '../stencil-public-runtime';
|
|
2
|
+
export declare const If: (props: {
|
|
3
|
+
condition: boolean;
|
|
4
|
+
}, children: JSXBase.IntrinsicElements) => JSXBase.IntrinsicElements | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const SvgIcon: (props: {
|
|
2
|
-
name: string;
|
|
3
|
-
classNames?: string;
|
|
4
|
-
}) => any;
|
|
1
|
+
export declare const SvgIcon: (props: {
|
|
2
|
+
name: string;
|
|
3
|
+
classNames?: string;
|
|
4
|
+
}) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SvgSprite: () => any;
|
|
1
|
+
export declare const SvgSprite: () => any;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generates a (sequential) unique ID. If prefix is given, the ID is appended to it.
|
|
3
|
-
*
|
|
4
|
-
* @param prefix The value to prefix the ID with
|
|
5
|
-
* @returns Unique ID
|
|
6
|
-
*/
|
|
7
|
-
export declare const uniqueId: (prefix?: string) => string;
|
|
8
|
-
export declare const prefersReducedMotion: boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Generates a (sequential) unique ID. If prefix is given, the ID is appended to it.
|
|
3
|
+
*
|
|
4
|
+
* @param prefix The value to prefix the ID with
|
|
5
|
+
* @returns Unique ID
|
|
6
|
+
*/
|
|
7
|
+
export declare const uniqueId: (prefix?: string) => string;
|
|
8
|
+
export declare const prefersReducedMotion: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swisspost/internet-header",
|
|
3
|
-
"version": "1.5.0
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Swiss Post Internet Header",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "loader/index.cjs.js",
|
|
@@ -20,23 +20,23 @@
|
|
|
20
20
|
"loader/"
|
|
21
21
|
],
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@sindresorhus/slugify": "2.
|
|
23
|
+
"@sindresorhus/slugify": "2.2.0",
|
|
24
24
|
"@stencil/core": "3.0.0",
|
|
25
|
-
"@stencil/store": "
|
|
25
|
+
"@stencil/store": "2.0.3",
|
|
26
26
|
"body-scroll-lock": "4.0.0-beta.0",
|
|
27
27
|
"iframe-resizer": "4.3.2",
|
|
28
28
|
"jquery": "3.6.3",
|
|
29
|
-
"tabbable": "
|
|
29
|
+
"tabbable": "6.0.1",
|
|
30
30
|
"throttle-debounce": "3.0.1",
|
|
31
31
|
"url-polyfill": "1.1.12"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@babel/core": "7.20.12",
|
|
35
35
|
"@stencil/eslint-plugin": "0.4.0",
|
|
36
|
-
"@stencil/sass": "2.0.
|
|
37
|
-
"@swisspost/design-system-styles": "5.
|
|
36
|
+
"@stencil/sass": "2.0.3",
|
|
37
|
+
"@swisspost/design-system-styles": "5.3.0",
|
|
38
38
|
"@types/iframe-resizer": "3.5.9",
|
|
39
|
-
"@types/jest": "27.5.
|
|
39
|
+
"@types/jest": "27.5.2",
|
|
40
40
|
"@types/jquery": "3.5.16",
|
|
41
41
|
"@types/node": "18.11.18",
|
|
42
42
|
"@types/throttle-debounce": "2.1.0",
|
package/readme.md
CHANGED
|
@@ -1,15 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
# Swiss Post Internet Header
|
|
2
|
+
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
The official Swiss Post Internet Header implementation, built with [Stencil JS](https://stenciljs.com/).
|
|
6
|
+
|
|
7
|
+
## Documentation
|
|
8
|
+
The header docs are part of the storybook docs for the Design System.
|
|
9
|
+
|
|
10
|
+
[Internet Header Documentation](https://styles.design-system.post.ch/?path=/story/components-internet-header-getting-started--page)
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
There are two possibilities to install the header on a page.
|
|
14
|
+
### npm installation
|
|
15
|
+
Use this if your project uses a bundler or a framework like Angular, React or Vue.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install @swisspost/internet-header
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
`main.ts`
|
|
22
|
+
```ts
|
|
23
|
+
import { defineCustomElements } from '@swisspost/internet-header';
|
|
24
|
+
|
|
25
|
+
defineCustomElements();
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
### Basic installation
|
|
29
|
+
Use this if you want to use the CDN version and if you don't use a bundler or a framework.
|
|
30
|
+
|
|
31
|
+
`index.html`
|
|
32
|
+
```html
|
|
33
|
+
<body>
|
|
34
|
+
<swisspost-internet-header project="your-project-id"></swisspost-internet-header>
|
|
35
|
+
...
|
|
36
|
+
<script
|
|
37
|
+
type="module"
|
|
38
|
+
src="https://unpkg.com/@swisspost/internet-header/dist/swisspost-internet-header/swisspost-internet-header.esm.js"
|
|
39
|
+
></script>
|
|
40
|
+
</body>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Contribute
|
|
44
|
+
|
|
45
|
+
[](CODE_OF_CONDUCT.md)
|
|
46
|
+
|
|
47
|
+
Considering supporting the Swiss Post Design System with your contribution? Whether you like to contribute new patterns, fix a bug, spotted a typo or have ideas for improvement - we'd love to hear from you. Learn how you can contribute to this project in the [header contribution guidelines](./CONTRIBUTING.md) and also take a look at the [general contribution guidelines](/CONTRIBUTING.md).
|
|
48
|
+
|
|
49
|
+
For any questions regarding the pattern library, you can reach out on the [discussions page](https://github.com/swisspost/design-system/discussions).
|
|
50
|
+
|
|
51
|
+
In order to keep our community open and inclusive, we expect you to read and follow our [Code of Conduct](/CODE_OF_CONDUCT.md).
|
|
52
|
+
|
|
53
|
+
## License
|
|
54
|
+
|
|
55
|
+
Software contained in this repository is published by the Swiss Post Ltd. under the [Apache 2.0 License](./LICENSE).
|
|
56
|
+
|
|
57
|
+
© 2022 Swiss Post, Ltd.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"file":"if.component-313f59b8.js","mappings":";;MAEa,EAAE,GAAG,CAChB,KAEC,EACD,QAAmC;EAEnC,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE;IACpB,OAAO,IAAI,CAAC;GACb;EACD,OAAO,QAAQ,CAAC;AAClB;;;;","names":[],"sources":["./src/utils/if.component.tsx"],"sourcesContent":["import { JSXBase } from '@stencil/core/internal';\r\n\r\nexport const If = (\r\n props: {\r\n condition: boolean;\r\n },\r\n children: JSXBase.IntrinsicElements,\r\n) => {\r\n if (!props.condition) {\r\n return null;\r\n }\r\n return children;\r\n};\r\n"],"version":3}
|