@swisspost/design-system-components 10.0.0-next.71 → 10.0.0-next.72
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/create-validator-decorator-Bnx17kwi.js +223 -0
- package/dist/cjs/{index-CCteMCnR.js → index-ngUOBQot.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/one-of-BHyX4vYq.js +27 -0
- package/dist/cjs/{package-CscM89A7.js → package-Bi-tiNRc.js} +1 -1
- package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
- package/dist/cjs/post-accordion_2.cjs.entry.js +15 -21
- package/dist/cjs/post-autocomplete.cjs.entry.js +26 -13
- package/dist/cjs/post-avatar.cjs.entry.js +30 -33
- package/dist/cjs/post-back-to-top.cjs.entry.js +20 -11
- package/dist/cjs/post-banner.cjs.entry.js +8 -13
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +33 -23
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
- package/dist/cjs/post-closebutton_14.cjs.entry.js +238 -272
- package/dist/cjs/post-collapsible_2.cjs.entry.js +56 -39
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +140 -138
- package/dist/cjs/post-footer.cjs.entry.js +24 -17
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox.cjs.entry.js +3 -5
- package/dist/cjs/post-login-widget.cjs.entry.js +28 -29
- package/dist/cjs/post-number-input.cjs.entry.js +2 -2
- package/dist/cjs/post-pagination.cjs.entry.js +50 -80
- package/dist/cjs/post-popover-trigger.cjs.entry.js +21 -18
- package/dist/cjs/post-popover.cjs.entry.js +24 -22
- package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
- package/dist/cjs/post-rating.cjs.entry.js +33 -34
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +48 -37
- package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
- package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
- package/dist/cjs/post-tabs.cjs.entry.js +21 -7
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
- package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
- package/dist/cjs/required-lRDOdbd6.js +44 -0
- package/dist/cjs/type-shT641Eo.js +30 -0
- package/dist/cjs/url-DRUMqVBq.js +34 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/post-accordion/post-accordion.js +11 -8
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
- package/dist/collection/components/post-avatar/post-avatar.js +27 -33
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
- package/dist/collection/components/post-banner/post-banner.js +7 -14
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -34
- package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
- package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
- package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
- package/dist/collection/components/post-footer/post-footer.js +17 -13
- package/dist/collection/components/post-header/post-header.js +18 -24
- package/dist/collection/components/post-icon/post-icon.js +34 -47
- package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +3 -5
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +1 -1
- package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
- package/dist/collection/components/post-logo/post-logo.js +16 -13
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
- package/dist/collection/components/post-menu/post-menu.js +10 -23
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
- package/dist/collection/components/post-number-input/post-number-input.js +3 -3
- package/dist/collection/components/post-pagination/post-pagination.js +47 -82
- package/dist/collection/components/post-popover/post-popover.js +20 -22
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +25 -30
- package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
- package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
- package/dist/collection/components/post-rating/post-rating.js +25 -29
- package/dist/collection/components/post-stepper/post-stepper.js +44 -36
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
- package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
- package/dist/collection/components/post-tabs/post-tabs.js +20 -7
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
- package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
- package/dist/collection/utils/index.js +3 -4
- package/dist/collection/utils/is-value-empty.js +1 -1
- package/dist/collection/utils/property-decorators/bound.js +75 -0
- package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
- package/dist/collection/utils/property-decorators/index.js +1 -1
- package/dist/collection/utils/property-decorators/required.js +19 -3
- package/dist/component-names.json +1 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/one-of.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/pattern.js +1 -0
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-avatar2.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-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-listbox.js +1 -1
- package/dist/components/post-login-widget.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.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-progressbar.d.ts +11 -0
- package/dist/components/post-progressbar.js +1 -0
- 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-4wtxqxXu.js +1 -0
- package/dist/components/react/{p-DPKR_4uI.js → p-85IGlhtB.js} +1 -1
- package/dist/components/react/p-B9ZFuYey.js +1 -0
- package/dist/components/react/p-BXqGI600.js +1 -0
- package/dist/components/react/p-BZSAV0-K.js +1 -0
- package/dist/components/react/p-B_WnO-QF.js +1 -0
- package/dist/components/react/p-BaB8wJvk.js +1 -0
- package/dist/components/react/p-Bg9dtyzK.js +1 -0
- package/dist/components/react/p-Bji_4dfL.js +1 -0
- package/dist/components/react/p-Bn66acGG.js +1 -0
- package/dist/components/react/p-Bu2JeHDf.js +1 -0
- package/dist/components/react/p-BxoRVIIr.js +1 -0
- package/dist/components/react/p-CX2E_IXB.js +1 -0
- package/dist/components/react/p-Cd1TsNm7.js +1 -0
- package/dist/components/react/p-CkTAQJGd.js +1 -0
- package/dist/components/react/p-ClG-N42b.js +1 -0
- package/dist/components/react/p-D1zw8FxT.js +1 -0
- package/dist/components/react/p-DwuW52g5.js +1 -0
- package/dist/components/react/{p-BC0-M_SK.js → p-PM7l--ff.js} +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-login-widget.js +1 -1
- 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-progressbar.d.ts +11 -0
- package/dist/components/react/post-progressbar.js +1 -0
- 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/components/required.js +1 -0
- package/dist/components/type.js +1 -0
- package/dist/components/url.js +1 -0
- package/dist/docs.json +106 -4
- package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
- package/dist/esm/{index-DmBWUef5.js → index-BbDawWJ5.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/one-of-GPr3FflU.js +25 -0
- package/dist/esm/package-ClG-N42b.js +3 -0
- package/dist/esm/pattern-BWPRYpYv.js +25 -0
- package/dist/esm/post-accordion_2.entry.js +15 -21
- package/dist/esm/post-autocomplete.entry.js +26 -13
- package/dist/esm/post-avatar.entry.js +30 -33
- package/dist/esm/post-back-to-top.entry.js +20 -11
- package/dist/esm/post-banner.entry.js +8 -13
- package/dist/esm/post-breadcrumb-item.entry.js +33 -23
- package/dist/esm/post-breadcrumbs.entry.js +33 -34
- package/dist/esm/post-closebutton_14.entry.js +238 -272
- package/dist/esm/post-collapsible_2.entry.js +56 -39
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +140 -138
- package/dist/esm/post-footer.entry.js +20 -13
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +2 -2
- package/dist/esm/post-listbox.entry.js +3 -5
- package/dist/esm/post-login-widget.entry.js +28 -29
- package/dist/esm/post-number-input.entry.js +2 -2
- package/dist/esm/post-pagination.entry.js +50 -80
- package/dist/esm/post-popover-trigger.entry.js +19 -16
- package/dist/esm/post-popover.entry.js +24 -22
- package/dist/esm/post-progressbar.entry.js +145 -0
- package/dist/esm/post-rating.entry.js +28 -29
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +48 -37
- package/dist/esm/post-tab-item.entry.js +20 -12
- package/dist/esm/post-tab-panel.entry.js +20 -13
- package/dist/esm/post-tabs.entry.js +21 -7
- package/dist/esm/post-tooltip-trigger.entry.js +21 -12
- package/dist/esm/post-tooltip.entry.js +19 -16
- package/dist/esm/required-uK-rZZjy.js +42 -0
- package/dist/esm/type-obmwEgkM.js +28 -0
- package/dist/esm/url-B28ByZCe.js +32 -0
- package/dist/post-components/p-00f55af5.entry.js +1 -0
- package/dist/post-components/p-0288484f.entry.js +1 -0
- package/dist/post-components/p-07cdd022.entry.js +1 -0
- package/dist/post-components/{p-08a0e8e9.entry.js → p-12047216.entry.js} +1 -1
- package/dist/post-components/p-17df4e91.entry.js +1 -0
- package/dist/post-components/p-17e046fa.entry.js +1 -0
- package/dist/post-components/p-29bd31a0.entry.js +1 -0
- package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
- package/dist/post-components/p-3b05e01d.entry.js +1 -0
- package/dist/post-components/p-53fd5230.entry.js +1 -0
- package/dist/post-components/p-5b7e6369.entry.js +1 -0
- package/dist/post-components/p-5f4ca179.entry.js +1 -0
- package/dist/post-components/p-62b6154a.entry.js +1 -0
- package/dist/post-components/{p-4b445a35.entry.js → p-686a6e22.entry.js} +1 -1
- package/dist/post-components/p-758fc84f.entry.js +1 -0
- package/dist/post-components/{p-bab0f27f.entry.js → p-7f929bb9.entry.js} +1 -1
- package/dist/post-components/p-9865f72c.entry.js +1 -0
- package/dist/post-components/p-99803d57.entry.js +1 -0
- package/dist/post-components/p-BRNqUiXj.js +1 -0
- package/dist/post-components/p-BbDawWJ5.js +2 -0
- package/dist/post-components/p-CVsNfXZd.js +1 -0
- package/dist/post-components/p-Ck2qPht6.js +1 -0
- package/dist/post-components/p-ClG-N42b.js +1 -0
- package/dist/post-components/p-D4F0BqBW.js +1 -0
- package/dist/post-components/p-DSNGJB58.js +1 -0
- package/dist/post-components/p-IUnDBhPg.js +1 -0
- package/dist/post-components/p-a0e0a760.entry.js +1 -0
- package/dist/post-components/p-a850652d.entry.js +1 -0
- package/dist/post-components/p-aac1a8ea.entry.js +1 -0
- package/dist/post-components/{p-39143e19.entry.js → p-b3f0f9a2.entry.js} +1 -1
- package/dist/post-components/p-c37dba4b.entry.js +1 -0
- package/dist/post-components/p-d061773b.entry.js +1 -0
- package/dist/post-components/p-e2370e94.entry.js +1 -0
- package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
- package/dist/post-components/p-f2e5f44e.entry.js +1 -0
- package/dist/post-components/p-ff98ada4.entry.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
- package/dist/types/components/post-banner/post-banner.d.ts +0 -1
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
- package/dist/types/components/post-footer/post-footer.d.ts +0 -1
- package/dist/types/components/post-header/post-header.d.ts +0 -2
- package/dist/types/components/post-icon/post-icon.d.ts +0 -6
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
- package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
- package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
- package/dist/types/components/post-logo/post-logo.d.ts +0 -1
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
- package/dist/types/components/post-menu/post-menu.d.ts +1 -4
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
- package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
- package/dist/types/components/post-popover/post-popover.d.ts +1 -4
- package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
- package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
- package/dist/types/components/post-rating/post-rating.d.ts +0 -4
- package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
- package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
- package/dist/types/components.d.ts +51 -5
- package/dist/types/utils/index.d.ts +3 -4
- package/dist/types/utils/property-decorators/bound.d.ts +36 -0
- package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
- package/dist/types/utils/property-decorators/index.d.ts +1 -1
- package/dist/types/utils/property-decorators/required.d.ts +10 -1
- package/hydrate/index.js +1310 -926
- package/hydrate/index.mjs +1310 -926
- package/package.json +4 -4
- package/dist/cjs/index-qCzRmwgB.js +0 -114
- package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
- package/dist/collection/utils/property-checkers/check-date.js +0 -13
- package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
- package/dist/collection/utils/property-checkers/check-type.js +0 -15
- package/dist/collection/utils/property-checkers/check-url.js +0 -15
- package/dist/collection/utils/property-checkers/constants.js +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js +0 -9
- package/dist/collection/utils/property-checkers/index.js +0 -20
- package/dist/collection/utils/property-checkers/required-and.js +0 -14
- package/dist/components/heading-levels.js +0 -1
- package/dist/components/index2.js +0 -1
- package/dist/components/react/p-BQ3HlJPr.js +0 -1
- package/dist/components/react/p-C7s9oglQ.js +0 -1
- package/dist/components/react/p-CTgZ8DGr.js +0 -1
- package/dist/components/react/p-CVtlwDsT.js +0 -1
- package/dist/components/react/p-CaLwTf3T.js +0 -1
- package/dist/components/react/p-ClJyTIVM.js +0 -1
- package/dist/components/react/p-DGr-hfLq.js +0 -1
- package/dist/components/react/p-DJxdj9pa.js +0 -1
- package/dist/components/react/p-DKDEtjQe.js +0 -1
- package/dist/components/react/p-DcEDGaFs.js +0 -1
- package/dist/components/react/p-DipfA69b.js +0 -1
- package/dist/components/react/p-DwZxAC2u.js +0 -1
- package/dist/components/react/p-r4txK0AC.js +0 -1
- package/dist/components/react/p-x3kxyWSZ.js +0 -1
- package/dist/esm/index-D9bU2pIE.js +0 -104
- package/dist/esm/package-x3kxyWSZ.js +0 -3
- package/dist/post-components/p-1583817b.entry.js +0 -1
- package/dist/post-components/p-203d9abd.entry.js +0 -1
- package/dist/post-components/p-2c68af27.entry.js +0 -1
- package/dist/post-components/p-46dd9e7e.entry.js +0 -1
- package/dist/post-components/p-53a8cce5.entry.js +0 -1
- package/dist/post-components/p-72bff1fc.entry.js +0 -1
- package/dist/post-components/p-75045028.entry.js +0 -1
- package/dist/post-components/p-768b4516.entry.js +0 -1
- package/dist/post-components/p-7e072450.entry.js +0 -1
- package/dist/post-components/p-83cb6424.entry.js +0 -1
- package/dist/post-components/p-94f4da57.entry.js +0 -1
- package/dist/post-components/p-9dace750.entry.js +0 -1
- package/dist/post-components/p-9ea7e46f.entry.js +0 -1
- package/dist/post-components/p-D9bU2pIE.js +0 -1
- package/dist/post-components/p-DmBWUef5.js +0 -2
- package/dist/post-components/p-a0ac814c.entry.js +0 -1
- package/dist/post-components/p-a0d12ca8.entry.js +0 -1
- package/dist/post-components/p-cb039d66.entry.js +0 -1
- package/dist/post-components/p-e8cda4e1.entry.js +0 -1
- package/dist/post-components/p-e8e50d5c.entry.js +0 -1
- package/dist/post-components/p-eb64ec1d.entry.js +0 -1
- package/dist/post-components/p-f0746a9e.entry.js +0 -1
- package/dist/post-components/p-f5e33714.entry.js +0 -1
- package/dist/post-components/p-f93ce33d.entry.js +0 -1
- package/dist/post-components/p-fd0446b2.entry.js +0 -1
- package/dist/post-components/p-x3kxyWSZ.js +0 -1
- package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
- package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
- package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
- package/dist/types/utils/property-checkers/constants.d.ts +0 -1
- package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
- package/dist/types/utils/property-checkers/index.d.ts +0 -34
- package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
4
11
|
import { ANIMATION_KEYS } from "../../types/icon-animations";
|
|
12
|
+
import { OneOf, Required, Type } from "../../utils/index";
|
|
13
|
+
import { version } from "../../../../package";
|
|
14
|
+
import { Build, h, Host } from "@stencil/core";
|
|
5
15
|
const CDN_URL = `https://unpkg.com/@swisspost/design-system-icons@${version}/public/post-icons/`;
|
|
6
16
|
/**
|
|
7
17
|
* @class PostIcon - representing a stencil component
|
|
@@ -17,21 +27,6 @@ export class PostIcon {
|
|
|
17
27
|
*/
|
|
18
28
|
this.flipV = false;
|
|
19
29
|
}
|
|
20
|
-
validateAnimation() {
|
|
21
|
-
checkEmptyOrOneOf(this, 'animation', ANIMATION_KEYS);
|
|
22
|
-
}
|
|
23
|
-
validateBase() {
|
|
24
|
-
checkEmptyOrType(this, 'base', 'string');
|
|
25
|
-
}
|
|
26
|
-
validateName() {
|
|
27
|
-
checkRequiredAndType(this, 'name', 'string');
|
|
28
|
-
}
|
|
29
|
-
validateRotate() {
|
|
30
|
-
checkEmptyOrType(this, 'rotate', 'number');
|
|
31
|
-
}
|
|
32
|
-
validateScale() {
|
|
33
|
-
checkEmptyOrType(this, 'scale', 'number');
|
|
34
|
-
}
|
|
35
30
|
/**
|
|
36
31
|
* Construct the icon URL according to the following rules:
|
|
37
32
|
* 1. `@base` (absolute URL) → use directly.
|
|
@@ -101,19 +96,13 @@ export class PostIcon {
|
|
|
101
96
|
'-webkit-mask-image': `url(${url})`,
|
|
102
97
|
'mask-image': `url('${url}')`,
|
|
103
98
|
'transform': (this.scale && !Number.isNaN(Number(this.scale)) ? 'scale(' + this.scale + ')' : '') +
|
|
104
|
-
(this.rotate && !Number.isNaN(Number(this.rotate))
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
componentDidLoad() {
|
|
109
|
-
this.validateBase();
|
|
110
|
-
this.validateName();
|
|
111
|
-
this.validateScale();
|
|
112
|
-
this.validateRotate();
|
|
113
|
-
this.validateAnimation();
|
|
99
|
+
(this.rotate && !Number.isNaN(Number(this.rotate))
|
|
100
|
+
? ' rotate(' + this.rotate + 'deg)'
|
|
101
|
+
: ''),
|
|
102
|
+
}).filter(([_key, value]) => value !== null));
|
|
114
103
|
}
|
|
115
104
|
render() {
|
|
116
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: 'dc20dd6be14dd0aba54231b30be89730d4a6c757', "data-version": version }, h("span", { key: '8ef361e6b2721db5f312e0e67fc7d13cb7440abf', style: this.getStyles() })));
|
|
117
106
|
}
|
|
118
107
|
static get is() { return "post-icon"; }
|
|
119
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -293,22 +282,20 @@ export class PostIcon {
|
|
|
293
282
|
};
|
|
294
283
|
}
|
|
295
284
|
static get elementRef() { return "host"; }
|
|
296
|
-
static get watchers() {
|
|
297
|
-
return [{
|
|
298
|
-
"propName": "animation",
|
|
299
|
-
"methodName": "validateAnimation"
|
|
300
|
-
}, {
|
|
301
|
-
"propName": "base",
|
|
302
|
-
"methodName": "validateBase"
|
|
303
|
-
}, {
|
|
304
|
-
"propName": "name",
|
|
305
|
-
"methodName": "validateName"
|
|
306
|
-
}, {
|
|
307
|
-
"propName": "rotate",
|
|
308
|
-
"methodName": "validateRotate"
|
|
309
|
-
}, {
|
|
310
|
-
"propName": "scale",
|
|
311
|
-
"methodName": "validateScale"
|
|
312
|
-
}];
|
|
313
|
-
}
|
|
314
285
|
}
|
|
286
|
+
__decorate([
|
|
287
|
+
OneOf(ANIMATION_KEYS)
|
|
288
|
+
], PostIcon.prototype, "animation", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
Type('string')
|
|
291
|
+
], PostIcon.prototype, "base", void 0);
|
|
292
|
+
__decorate([
|
|
293
|
+
Required(),
|
|
294
|
+
Type('string')
|
|
295
|
+
], PostIcon.prototype, "name", void 0);
|
|
296
|
+
__decorate([
|
|
297
|
+
Type('number')
|
|
298
|
+
], PostIcon.prototype, "rotate", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
Type('number')
|
|
301
|
+
], PostIcon.prototype, "scale", void 0);
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
12
|
-
import { checkRequiredAndType, checkRequiredAndPattern, checkEmptyOrOneOf, EventFrom, nanoid, } from "../../utils/index";
|
|
11
|
+
import { EventFrom, nanoid, OneOf, Pattern, Required, Type } from "../../utils/index";
|
|
13
12
|
import { version } from "../../../../package";
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
14
14
|
import { SWITCH_VARIANTS } from "./switch-variants";
|
|
15
15
|
export class PostLanguageMenu {
|
|
16
16
|
constructor() {
|
|
@@ -24,14 +24,7 @@ export class PostLanguageMenu {
|
|
|
24
24
|
get languageOptions() {
|
|
25
25
|
return Array.from(this.host.querySelectorAll('post-language-menu-item'));
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
checkRequiredAndType(this, 'textChangeLanguage', 'string');
|
|
29
|
-
}
|
|
30
|
-
validateTextCurrentLanguage() {
|
|
31
|
-
checkRequiredAndPattern(this, 'textCurrentLanguage', /#name\b/);
|
|
32
|
-
}
|
|
33
|
-
validateVariant() {
|
|
34
|
-
checkEmptyOrOneOf(this, 'variant', SWITCH_VARIANTS);
|
|
27
|
+
handleVariantChange() {
|
|
35
28
|
this.updateChildrenVariant();
|
|
36
29
|
}
|
|
37
30
|
/* The complete accessible description */
|
|
@@ -43,9 +36,6 @@ export class PostLanguageMenu {
|
|
|
43
36
|
: undefined;
|
|
44
37
|
}
|
|
45
38
|
componentDidLoad() {
|
|
46
|
-
this.validateTextChangeLanguage();
|
|
47
|
-
this.validateTextCurrentLanguage();
|
|
48
|
-
this.validateVariant();
|
|
49
39
|
// Initially set variants and active language
|
|
50
40
|
// Handles cases where the language-menu is rendered after the language-options have been rendered
|
|
51
41
|
this.updateChildrenVariant();
|
|
@@ -185,14 +175,8 @@ export class PostLanguageMenu {
|
|
|
185
175
|
static get elementRef() { return "host"; }
|
|
186
176
|
static get watchers() {
|
|
187
177
|
return [{
|
|
188
|
-
"propName": "textChangeLanguage",
|
|
189
|
-
"methodName": "validateTextChangeLanguage"
|
|
190
|
-
}, {
|
|
191
|
-
"propName": "textCurrentLanguage",
|
|
192
|
-
"methodName": "validateTextCurrentLanguage"
|
|
193
|
-
}, {
|
|
194
178
|
"propName": "variant",
|
|
195
|
-
"methodName": "
|
|
179
|
+
"methodName": "handleVariantChange"
|
|
196
180
|
}];
|
|
197
181
|
}
|
|
198
182
|
static get listeners() {
|
|
@@ -217,6 +201,17 @@ export class PostLanguageMenu {
|
|
|
217
201
|
}];
|
|
218
202
|
}
|
|
219
203
|
}
|
|
204
|
+
__decorate([
|
|
205
|
+
Required(),
|
|
206
|
+
Type('string')
|
|
207
|
+
], PostLanguageMenu.prototype, "textChangeLanguage", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
Required(),
|
|
210
|
+
Pattern(/#name\b/)
|
|
211
|
+
], PostLanguageMenu.prototype, "textCurrentLanguage", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
OneOf(SWITCH_VARIANTS)
|
|
214
|
+
], PostLanguageMenu.prototype, "variant", void 0);
|
|
220
215
|
__decorate([
|
|
221
216
|
EventFrom('post-language-menu-item')
|
|
222
217
|
], PostLanguageMenu.prototype, "handlePostChange", null);
|
|
@@ -1,31 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { OneOf, Required, Type, Url } from "../../utils/index";
|
|
3
12
|
import { version } from "../../../../package";
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
import { SWITCH_VARIANTS } from "../post-language-menu/switch-variants";
|
|
5
15
|
/**
|
|
6
16
|
* @slot default - Slot for placing the content inside the anchor or button.
|
|
7
17
|
*/
|
|
8
18
|
export class PostLanguageMenuItem {
|
|
9
|
-
validateCode() {
|
|
10
|
-
checkRequiredAndType(this, 'code', 'string');
|
|
11
|
-
}
|
|
12
|
-
validateVariant() {
|
|
13
|
-
checkEmptyOrOneOf(this, 'variant', SWITCH_VARIANTS);
|
|
14
|
-
}
|
|
15
|
-
validateName() {
|
|
16
|
-
checkEmptyOrType(this, 'name', 'string');
|
|
17
|
-
}
|
|
18
|
-
validateDescription() {
|
|
19
|
-
checkEmptyOrType(this, 'description', 'string');
|
|
20
|
-
}
|
|
21
|
-
validateUrl() {
|
|
22
|
-
checkEmptyOrUrl(this, 'url');
|
|
23
|
-
}
|
|
24
19
|
componentDidLoad() {
|
|
25
|
-
this.validateCode();
|
|
26
|
-
this.validateName();
|
|
27
|
-
this.validateDescription();
|
|
28
|
-
this.validateUrl();
|
|
29
20
|
if (!this.name && this.isNameRequired()) {
|
|
30
21
|
throw new Error('The "name" property of the post-language-menu-item component is required when the full language name is not displayed.');
|
|
31
22
|
}
|
|
@@ -247,22 +238,20 @@ export class PostLanguageMenuItem {
|
|
|
247
238
|
};
|
|
248
239
|
}
|
|
249
240
|
static get elementRef() { return "host"; }
|
|
250
|
-
static get watchers() {
|
|
251
|
-
return [{
|
|
252
|
-
"propName": "code",
|
|
253
|
-
"methodName": "validateCode"
|
|
254
|
-
}, {
|
|
255
|
-
"propName": "variant",
|
|
256
|
-
"methodName": "validateVariant"
|
|
257
|
-
}, {
|
|
258
|
-
"propName": "name",
|
|
259
|
-
"methodName": "validateName"
|
|
260
|
-
}, {
|
|
261
|
-
"propName": "description",
|
|
262
|
-
"methodName": "validateDescription"
|
|
263
|
-
}, {
|
|
264
|
-
"propName": "url",
|
|
265
|
-
"methodName": "validateUrl"
|
|
266
|
-
}];
|
|
267
|
-
}
|
|
268
241
|
}
|
|
242
|
+
__decorate([
|
|
243
|
+
Required(),
|
|
244
|
+
Type('string')
|
|
245
|
+
], PostLanguageMenuItem.prototype, "code", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
OneOf(SWITCH_VARIANTS)
|
|
248
|
+
], PostLanguageMenuItem.prototype, "variant", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
Type('string')
|
|
251
|
+
], PostLanguageMenuItem.prototype, "name", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
Type('string')
|
|
254
|
+
], PostLanguageMenuItem.prototype, "description", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
Url()
|
|
257
|
+
], PostLanguageMenuItem.prototype, "url", void 0);
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
|
-
import { h, Host } from "@stencil/core";
|
|
12
|
-
import { version } from "../../../../package";
|
|
13
11
|
import { EventFrom } from "../../utils/index";
|
|
12
|
+
import { version } from "../../../../package";
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
14
14
|
export class PostListbox {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.highlightedIndex = -1;
|
|
@@ -60,12 +60,10 @@ export class PostListbox {
|
|
|
60
60
|
const input = this.inputElement;
|
|
61
61
|
if (input) {
|
|
62
62
|
this.popoverContainer?.show(input);
|
|
63
|
-
this.host.role = 'listbox';
|
|
64
63
|
}
|
|
65
64
|
}
|
|
66
65
|
/** Closes the listbox */
|
|
67
66
|
async hide() {
|
|
68
|
-
this.host.removeAttribute('role');
|
|
69
67
|
this.popoverContainer?.hide();
|
|
70
68
|
}
|
|
71
69
|
/** Uses the internal default filtering mode to filter the list of options.
|
|
@@ -131,7 +129,7 @@ export class PostListbox {
|
|
|
131
129
|
this.updateSelection(event.detail);
|
|
132
130
|
}
|
|
133
131
|
render() {
|
|
134
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: 'e1e88417d8b8f66fbaf7df481fcbd9a63b6189fb', "data-version": version, role: "listbox" }, h("post-popovercontainer", { key: '0fca1baeb51be6cf5f4d30c254217dce3349a377', placement: "bottom-start", ref: el => (this.popoverContainer = el) }, this.visibleOptions.length === 0 ? h("slot", { name: "blank-slate" }) : h("slot", null))));
|
|
135
133
|
}
|
|
136
134
|
static get is() { return "post-listbox"; }
|
|
137
135
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { Build, h, Host, } from "@stencil/core";
|
|
4
14
|
const SESSION_URL = 'https://n.account.post.ch/v1/session/subscribe';
|
|
5
15
|
/**
|
|
6
16
|
* @slot user-links - Links to show in the user menu when the user is authenticated.
|
|
@@ -11,20 +21,6 @@ export class PostLoginWidget {
|
|
|
11
21
|
this.authenticated = null;
|
|
12
22
|
this.user = null;
|
|
13
23
|
}
|
|
14
|
-
validateTextCurrentUser() {
|
|
15
|
-
checkRequiredAndType(this, 'textCurrentUser', 'string');
|
|
16
|
-
}
|
|
17
|
-
validateTextUserMenu() {
|
|
18
|
-
checkRequiredAndType(this, 'textUserMenu', 'string');
|
|
19
|
-
}
|
|
20
|
-
validateTextUserMenuTrigger() {
|
|
21
|
-
checkRequiredAndType(this, 'textUserMenuTrigger', 'string');
|
|
22
|
-
}
|
|
23
|
-
componentDidLoad() {
|
|
24
|
-
this.validateTextCurrentUser();
|
|
25
|
-
this.validateTextUserMenuTrigger();
|
|
26
|
-
this.validateTextUserMenu();
|
|
27
|
-
}
|
|
28
24
|
async componentWillLoad() {
|
|
29
25
|
if (Build.isBrowser) {
|
|
30
26
|
await this.fetchAuthState();
|
|
@@ -69,7 +65,7 @@ export class PostLoginWidget {
|
|
|
69
65
|
this.postChange.emit({ authenticated: next });
|
|
70
66
|
}
|
|
71
67
|
render() {
|
|
72
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '4aeda818bbda67c88aa188ac3bbb8f0377a5050e', "data-version": version }, this.authenticated === true ? (h("div", null, h("post-menu-trigger", { for: "user-menu-default" }, h("button", { class: "btn btn-link", type: "button" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, description: this.textCurrentUser.replace('{user}', `${this.user.name} ${this.user.surname}`) }), h("span", { class: "visually-hidden" }, this.textUserMenuTrigger))), h("post-menu", { label: this.textUserMenu, id: "user-menu-default" }, h("div", { slot: "header" }, h("post-avatar", { firstname: this.user.name, lastname: this.user.surname, email: this.user.email, "aria-hidden": "true" }), this.user.name, " ", this.user.surname), h("slot", { name: "user-links" })))) : (h("div", null, h("slot", { name: "login-link" })))));
|
|
73
69
|
}
|
|
74
70
|
static get is() { return "post-login-widget"; }
|
|
75
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -207,16 +203,16 @@ export class PostLoginWidget {
|
|
|
207
203
|
};
|
|
208
204
|
}
|
|
209
205
|
static get elementRef() { return "host"; }
|
|
210
|
-
static get watchers() {
|
|
211
|
-
return [{
|
|
212
|
-
"propName": "textCurrentUser",
|
|
213
|
-
"methodName": "validateTextCurrentUser"
|
|
214
|
-
}, {
|
|
215
|
-
"propName": "textUserMenu",
|
|
216
|
-
"methodName": "validateTextUserMenu"
|
|
217
|
-
}, {
|
|
218
|
-
"propName": "textUserMenuTrigger",
|
|
219
|
-
"methodName": "validateTextUserMenuTrigger"
|
|
220
|
-
}];
|
|
221
|
-
}
|
|
222
206
|
}
|
|
207
|
+
__decorate([
|
|
208
|
+
Required(),
|
|
209
|
+
Type('string')
|
|
210
|
+
], PostLoginWidget.prototype, "textCurrentUser", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
Required(),
|
|
213
|
+
Type('string')
|
|
214
|
+
], PostLoginWidget.prototype, "textUserMenu", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
Required(),
|
|
217
|
+
Type('string')
|
|
218
|
+
], PostLoginWidget.prototype, "textUserMenuTrigger", void 0);
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Url } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
/**
|
|
5
15
|
* @slot default - Slot for placing hidden descriptive text. If `url` is set, this text will serve as the accessible name of the link; otherwise, it will be used as the title of the SVG.
|
|
6
16
|
*/
|
|
7
17
|
export class PostLogo {
|
|
8
|
-
validateUrl() {
|
|
9
|
-
checkEmptyOrUrl(this, 'url');
|
|
10
|
-
}
|
|
11
18
|
componentDidLoad() {
|
|
12
|
-
this.validateUrl();
|
|
13
19
|
this.checkDescription();
|
|
14
20
|
}
|
|
15
21
|
checkDescription() {
|
|
@@ -20,7 +26,7 @@ export class PostLogo {
|
|
|
20
26
|
render() {
|
|
21
27
|
const logoLink = this.url && (typeof this.url === 'string' ? this.url : this.url.href);
|
|
22
28
|
const LogoTag = logoLink ? 'a' : 'span';
|
|
23
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: '07795d309bc89e4ad712d81638134d84e6f2cd3a', "data-version": version }, h(LogoTag, { key: '3265657e1c8857e5454b4907874b9f945dc391e4', class: `logo ${logoLink ? 'logo-link' : ''}`, ...(logoLink ? { href: logoLink } : {}) }, h("span", { key: 'f4c4da506329d0b754db9e6f64f6dba8e0f22681', class: "description" }, h("slot", { key: 'faabc37ede88aa6212259eda5f500e21cc48dc5e', onSlotchange: () => this.checkDescription() })), h("svg", { key: '5dffa0d4cd0d72811dcaf9390b4941d78abd4263', xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 72 72", "aria-hidden": "true" }, h("g", { key: '990a0da74a50b027e6999715e51a6e966c489222', id: "Logo" }, h("rect", { key: '59610e9b801362ebcbe77932cfcac1f2be83fc0d', fill: "#ffcc00", x: "0", y: "0", width: "72", height: "72" }), h("polygon", { key: '67e25d5dc835279852d6445b40dcea933a81a76e', fill: "#ff0000", points: "34,32.3 34,19 19.7,19 19.7,29.1 10,29.1 10,42.9 19.7,42.9 19.7,53 34,53 34,39.7 30.6,39.7 30.6,49.8 23.1,49.8 23.1,39.7 13.4,39.7 13.4,32.3 23.1,32.3 23.1,22.2 30.6,22.2 30.6,32.3" }), h("path", { key: '33fb461427e4112f38fb6487795e7df65bc33407', d: "M53.56234,31.10526c0,2.41272-1.99154,4.29475-4.51723,4.29475H45.2v-8.3h3.84511C51.66802,27.1,53.56234,28.78889,53.56234,31.10526z M50.69666,19H36v34h9.2V42.9h5.49666c6.75131,0,11.9971-5.15137,11.9971-11.8057C62.69376,24.39136,57.35099,19,50.69666,19z" }))))));
|
|
24
30
|
}
|
|
25
31
|
static get is() { return "post-logo"; }
|
|
26
32
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,10 +69,7 @@ export class PostLogo {
|
|
|
63
69
|
};
|
|
64
70
|
}
|
|
65
71
|
static get elementRef() { return "host"; }
|
|
66
|
-
static get watchers() {
|
|
67
|
-
return [{
|
|
68
|
-
"propName": "url",
|
|
69
|
-
"methodName": "validateUrl"
|
|
70
|
-
}];
|
|
71
|
-
}
|
|
72
72
|
}
|
|
73
|
+
__decorate([
|
|
74
|
+
Url()
|
|
75
|
+
], PostLogo.prototype, "url", void 0);
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Required, Type } from "../../utils/index";
|
|
3
12
|
import { version } from "../../../../package";
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
const SCROLL_REPEAT_INTERVAL = 100; // Interval for repeated scrolling when holding down scroll button
|
|
5
15
|
const NAVBAR_DISABLE_DURATION = 400; // Duration to temporarily disable navbar interactions during scrolling
|
|
6
16
|
export class PostMainnavigation {
|
|
7
|
-
validateTextMain() {
|
|
8
|
-
checkRequiredAndType(this, 'textMain', 'string');
|
|
9
|
-
}
|
|
10
17
|
constructor() {
|
|
11
18
|
this.canScrollLeft = false;
|
|
12
19
|
this.canScrollRight = false;
|
|
@@ -17,7 +24,6 @@ export class PostMainnavigation {
|
|
|
17
24
|
this.mutationObserver = new MutationObserver(this.checkScrollability);
|
|
18
25
|
}
|
|
19
26
|
componentDidLoad() {
|
|
20
|
-
this.validateTextMain();
|
|
21
27
|
setTimeout(() => {
|
|
22
28
|
this.checkScrollability();
|
|
23
29
|
});
|
|
@@ -123,7 +129,7 @@ export class PostMainnavigation {
|
|
|
123
129
|
}, NAVBAR_DISABLE_DURATION);
|
|
124
130
|
}
|
|
125
131
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
132
|
+
return (h(Host, { key: 'c36790fd729f8312c25f6a28c4586b08fc904c1a', version: version, class: this.canScroll ? 'scrollable' : '' }, h("div", { key: 'd0bea0dd7fe666e13f70b940a244a2172af37214', "aria-hidden": "true", class: { 'scroll-control scroll-left': true, 'd-none': !this.canScrollLeft }, onMouseDown: e => this.handleScrollButtonClick(e, 'left') }, h("post-icon", { key: 'e01c6e6f3e30533347f7cff7c9e528d56420ba50', "aria-hidden": "true", name: "chevronleft" })), h("nav", { key: '85f6fae1c607cef9036743c9ffe64792b7b60ccf', ref: el => (this.navbar = el), "aria-label": this.textMain }, h("slot", { key: '7658b213e13042954f3fcaefd9fe11d5a2e0ada1' })), h("div", { key: 'd427ae92b27176189ba8417f6fd589e88c044fe9', "aria-hidden": "true", class: { 'scroll-control scroll-right': true, 'd-none': !this.canScrollRight }, onMouseDown: e => this.handleScrollButtonClick(e, 'right') }, h("post-icon", { key: 'f16bcbdd3af293d5cb7bee757a6d1d81f396aa2f', "aria-hidden": "true", name: "chevronright" }))));
|
|
127
133
|
}
|
|
128
134
|
static get is() { return "post-mainnavigation"; }
|
|
129
135
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,12 +173,6 @@ export class PostMainnavigation {
|
|
|
167
173
|
};
|
|
168
174
|
}
|
|
169
175
|
static get elementRef() { return "host"; }
|
|
170
|
-
static get watchers() {
|
|
171
|
-
return [{
|
|
172
|
-
"propName": "textMain",
|
|
173
|
-
"methodName": "validateTextMain"
|
|
174
|
-
}];
|
|
175
|
-
}
|
|
176
176
|
static get listeners() {
|
|
177
177
|
return [{
|
|
178
178
|
"name": "mouseup",
|
|
@@ -189,3 +189,7 @@ export class PostMainnavigation {
|
|
|
189
189
|
}];
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
|
+
__decorate([
|
|
193
|
+
Required(),
|
|
194
|
+
Type('string')
|
|
195
|
+
], PostMainnavigation.prototype, "textMain", void 0);
|
|
@@ -1,17 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
5
11
|
import { slide } from "../../animations/index";
|
|
6
12
|
import { fadeSlide } from "../../animations/fade-slide";
|
|
7
|
-
import {
|
|
13
|
+
import { Required, Type } from "../../utils/index";
|
|
14
|
+
import { breakpoint } from "../../utils/breakpoints";
|
|
15
|
+
import { getFocusableChildren } from "../../utils/get-focusable-children";
|
|
16
|
+
import { version } from "../../../../package";
|
|
17
|
+
import { h, Host, } from "@stencil/core";
|
|
8
18
|
export class PostMegadropdown {
|
|
9
|
-
validateTextClose() {
|
|
10
|
-
checkRequiredAndType(this, 'textClose', 'string');
|
|
11
|
-
}
|
|
12
|
-
validateTextBack() {
|
|
13
|
-
checkRequiredAndType(this, 'textBack', 'string');
|
|
14
|
-
}
|
|
15
19
|
get megadropdownTrigger() {
|
|
16
20
|
const hostId = this.host.getAttribute('id');
|
|
17
21
|
return hostId ? document.querySelector(`post-megadropdown-trigger[for="${hostId}"]`) : null;
|
|
@@ -67,8 +71,6 @@ export class PostMegadropdown {
|
|
|
67
71
|
this.getFocusableElements();
|
|
68
72
|
}
|
|
69
73
|
componentDidLoad() {
|
|
70
|
-
this.validateTextClose();
|
|
71
|
-
this.validateTextBack();
|
|
72
74
|
this.checkInitialAriaCurrent();
|
|
73
75
|
this.setupObserver();
|
|
74
76
|
this.handleAriaCurrentChange([]);
|
|
@@ -293,7 +295,7 @@ export class PostMegadropdown {
|
|
|
293
295
|
}
|
|
294
296
|
render() {
|
|
295
297
|
const containerStyle = this.isVisible ? {} : { display: 'none' };
|
|
296
|
-
return (h(Host, { key: '
|
|
298
|
+
return (h(Host, { key: 'd009d9a8c81ea9ab3f2c42ecc01b6166281e6e7b', version: version }, h("div", { key: '4caa070e075bdb0024acbc2c19b5cd699d0fcac3', ref: el => (this.animatedContainer = el), class: "megadropdown", style: containerStyle }, h("div", { key: 'cc0a69ab0d7a886fe5fa0b8b63f0404d2eb6e63a', class: "section" }, this.device !== 'desktop' && this.megadropdownTitle && (h("p", { key: '9653be2ab067767d5c5338490101826f519bc3f5', class: "megadropdown-title" }, this.megadropdownTitle)), h("div", { key: '4f524c9ba3df153d2aa048d2293026af41aa4eb5', class: "megadropdown-content" }, h("slot", { key: '0deaca97b06fe15ce7924b15f6d81b96d439e41a' })), this.device === 'desktop' ? (h("post-closebutton", { onClick: () => this.hide(true), class: "close-button", size: "small", placement: "manual" }, this.textClose)) : (h("button", { onClick: () => this.hide(true), class: "back-button" }, h("post-icon", { name: "arrowleft" }), this.textBack))))));
|
|
297
299
|
}
|
|
298
300
|
static get is() { return "post-megadropdown"; }
|
|
299
301
|
static get encapsulation() { return "shadow"; }
|
|
@@ -457,15 +459,14 @@ export class PostMegadropdown {
|
|
|
457
459
|
};
|
|
458
460
|
}
|
|
459
461
|
static get elementRef() { return "host"; }
|
|
460
|
-
static get watchers() {
|
|
461
|
-
return [{
|
|
462
|
-
"propName": "textClose",
|
|
463
|
-
"methodName": "validateTextClose"
|
|
464
|
-
}, {
|
|
465
|
-
"propName": "textBack",
|
|
466
|
-
"methodName": "validateTextBack"
|
|
467
|
-
}];
|
|
468
|
-
}
|
|
469
462
|
}
|
|
470
463
|
/** Tracks the currently active dropdown instance. */
|
|
471
464
|
PostMegadropdown.activeDropdown = null;
|
|
465
|
+
__decorate([
|
|
466
|
+
Required(),
|
|
467
|
+
Type('string')
|
|
468
|
+
], PostMegadropdown.prototype, "textClose", void 0);
|
|
469
|
+
__decorate([
|
|
470
|
+
Required(),
|
|
471
|
+
Type('string')
|
|
472
|
+
], PostMegadropdown.prototype, "textBack", void 0);
|
|
@@ -8,9 +8,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
9
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { EventFrom, Required, Type } from "../../utils/index";
|
|
12
12
|
import { version } from "../../../../package";
|
|
13
|
-
import {
|
|
13
|
+
import { Build, h, Host } from "@stencil/core";
|
|
14
14
|
export class PostMegadropdownTrigger {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.isMegadropdownExpanded = false;
|
|
@@ -20,15 +20,9 @@ export class PostMegadropdownTrigger {
|
|
|
20
20
|
*/
|
|
21
21
|
this.active = false;
|
|
22
22
|
}
|
|
23
|
-
validateFor() {
|
|
24
|
-
checkRequiredAndType(this, 'for', 'string');
|
|
25
|
-
}
|
|
26
23
|
componentWillRender() {
|
|
27
24
|
this.handleSlottedContentChanges();
|
|
28
25
|
}
|
|
29
|
-
componentDidLoad() {
|
|
30
|
-
this.validateFor();
|
|
31
|
-
}
|
|
32
26
|
disconnectedCallback() {
|
|
33
27
|
if (this.mutationObserver)
|
|
34
28
|
this.mutationObserver.disconnect();
|
|
@@ -77,7 +71,7 @@ export class PostMegadropdownTrigger {
|
|
|
77
71
|
this.megadropdown.toggle();
|
|
78
72
|
}
|
|
79
73
|
render() {
|
|
80
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '1542f9690da3863d8aac10b22aba039c2639afae', "data-version": version }, h("button", { key: 'd6e8c38931478decb4e3e42ca780ee45e7d0f928', ref: el => (this.interactiveButton = el), type: "button", "aria-haspopup": "menu", "aria-expanded": this.isMegadropdownExpanded.toString(), onClick: this.onClick.bind(this), onKeyDown: this.onKeyDown.bind(this), class: { active: this.active } }, h("span", { key: 'ae5a0d76f7f372a6e64bb1bb05030180d05360e5' }, h("span", { key: 'b07e30d5895511f584c257c4402a0ecaad9bb12f', innerHTML: this.slottedContent }), h("span", { key: '6ad1214c4b348338cb07b373e224cf9b27cf919c', "aria-hidden": "true" }, h("slot", { key: '798372c050a8a0f39095aefe203c11c7eb83e623' }))), h("post-icon", { key: '2df09ffd02c59703eee7a5d9b4e89d8aa007de10', name: "chevrondown" }))));
|
|
81
75
|
}
|
|
82
76
|
static get is() { return "post-megadropdown-trigger"; }
|
|
83
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -141,12 +135,6 @@ export class PostMegadropdownTrigger {
|
|
|
141
135
|
};
|
|
142
136
|
}
|
|
143
137
|
static get elementRef() { return "host"; }
|
|
144
|
-
static get watchers() {
|
|
145
|
-
return [{
|
|
146
|
-
"propName": "for",
|
|
147
|
-
"methodName": "validateFor"
|
|
148
|
-
}];
|
|
149
|
-
}
|
|
150
138
|
static get listeners() {
|
|
151
139
|
return [{
|
|
152
140
|
"name": "postToggleMegadropdown",
|
|
@@ -157,6 +145,10 @@ export class PostMegadropdownTrigger {
|
|
|
157
145
|
}];
|
|
158
146
|
}
|
|
159
147
|
}
|
|
148
|
+
__decorate([
|
|
149
|
+
Required(),
|
|
150
|
+
Type('string')
|
|
151
|
+
], PostMegadropdownTrigger.prototype, "for", void 0);
|
|
160
152
|
__decorate([
|
|
161
153
|
EventFrom('post-megadropdown', { ignoreNestedComponents: false })
|
|
162
154
|
], PostMegadropdownTrigger.prototype, "onMegadropdownToggled", null);
|