@swisspost/design-system-components 10.0.0-next.70 → 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/breakpoints-B0Olgvgc.js +206 -0
- package/dist/cjs/component-on-ready-CifOTqw1.js +24 -0
- package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
- package/dist/cjs/{focusable-ZqET_zrB.js → focusable-COT2uiEV.js} +25 -4
- package/dist/cjs/{index-DPdHkdGf.js → index-ngUOBQot.js} +17 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/nanoid-CmjyF1Cm.js +20 -0
- package/dist/cjs/one-of-BHyX4vYq.js +27 -0
- package/dist/cjs/{package-Ds_LS1pB.js → package-Bi-tiNRc.js} +1 -1
- package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
- package/dist/cjs/post-accordion_2.cjs.entry.js +18 -24
- package/dist/cjs/post-autocomplete.cjs.entry.js +27 -14
- package/dist/cjs/post-avatar.cjs.entry.js +33 -54
- package/dist/cjs/post-back-to-top.cjs.entry.js +21 -12
- package/dist/cjs/post-banner.cjs.entry.js +9 -14
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +48 -41
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +106 -105
- package/dist/cjs/post-closebutton_14.cjs.entry.js +257 -288
- package/dist/cjs/post-collapsible_2.cjs.entry.js +57 -40
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +154 -144
- package/dist/cjs/post-footer.cjs.entry.js +26 -19
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +4 -6
- package/dist/cjs/post-login-widget.cjs.entry.js +35 -3
- package/dist/cjs/post-number-input.cjs.entry.js +6 -6
- package/dist/cjs/post-pagination.cjs.entry.js +53 -83
- package/dist/cjs/post-popover-trigger.cjs.entry.js +22 -19
- package/dist/cjs/post-popover.cjs.entry.js +25 -23
- package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
- package/dist/cjs/post-rating.cjs.entry.js +34 -35
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +49 -38
- package/dist/cjs/post-tab-item.cjs.entry.js +23 -15
- package/dist/cjs/post-tab-panel.cjs.entry.js +23 -16
- package/dist/cjs/post-tabs.cjs.entry.js +24 -30
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +34 -21
- 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 -18
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
- package/dist/collection/components/post-avatar/avatar-utils.js +2 -2
- package/dist/collection/components/post-avatar/post-avatar.js +29 -72
- 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.css +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +92 -47
- package/dist/collection/components/post-breadcrumb-item/variants.js +1 -0
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +110 -114
- 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.css +1 -1
- 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 +36 -48
- package/dist/collection/components/post-language-menu/post-language-menu.js +16 -22
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
- package/dist/collection/components/post-linkarea/post-linkarea.js +2 -2
- package/dist/collection/components/post-listbox/post-listbox.js +3 -5
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +3 -3
- package/dist/collection/components/post-login-widget/post-login-widget.css +1 -0
- package/dist/collection/components/post-login-widget/post-login-widget.js +103 -5
- 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 +14 -24
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
- package/dist/collection/components/post-number-input/post-number-input.js +5 -5
- package/dist/collection/components/post-pagination/post-pagination.js +47 -83
- 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.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +28 -34
- 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 -13
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -14
- 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 +30 -19
- package/dist/collection/hydrate-stub/index.stub.js +5 -0
- package/dist/collection/test-setup.js +7 -0
- package/dist/collection/utils/index.js +4 -3
- package/dist/collection/utils/is-value-empty.js +1 -1
- package/dist/collection/utils/locales.js +9 -2
- package/dist/collection/utils/nanoid.js +16 -0
- package/dist/collection/utils/property-decorators/array-of.js +22 -0
- package/dist/collection/utils/property-decorators/bound.js +75 -0
- package/dist/collection/utils/property-decorators/create-validator-decorator.js +211 -0
- package/dist/collection/utils/property-decorators/date.js +21 -0
- package/dist/collection/utils/property-decorators/index.js +9 -0
- package/dist/collection/utils/property-decorators/iso-date.js +21 -0
- package/dist/collection/utils/property-decorators/one-of.js +22 -0
- package/dist/collection/utils/property-decorators/pattern.js +22 -0
- package/dist/collection/utils/property-decorators/required.js +40 -0
- package/dist/collection/utils/property-decorators/type.js +25 -0
- package/dist/collection/utils/property-decorators/url.js +29 -0
- package/dist/component-names.json +1 -0
- package/dist/components/breakpoints.js +1 -0
- package/dist/components/component-on-ready.js +1 -0
- package/dist/components/focusable.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/nanoid.js +1 -0
- 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-avatar.js +1 -1
- package/dist/components/post-avatar2.js +1 -0
- 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-linkarea.js +1 -1
- package/dist/components/post-listbox-option.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-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-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-85IGlhtB.js +1 -0
- package/dist/components/react/p-8LXe8Zt_.js +1 -0
- 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-BrY4VWTQ.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-PM7l--ff.js +1 -0
- package/dist/components/react/p-lpWRZjJp.js +1 -0
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.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 +307 -72
- package/dist/esm/breakpoints-BQ3HlJPr.js +202 -0
- package/dist/esm/component-on-ready-lpWRZjJp.js +22 -0
- package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
- package/dist/esm/{focusable-BD_WT2MO.js → focusable-C7afHKmo.js} +25 -5
- package/dist/esm/{index-DmAi35UF.js → index-BbDawWJ5.js} +17 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/nanoid-8LXe8Zt_.js +18 -0
- 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 +17 -23
- package/dist/esm/post-autocomplete.entry.js +27 -14
- package/dist/esm/post-avatar.entry.js +33 -54
- package/dist/esm/post-back-to-top.entry.js +21 -12
- package/dist/esm/post-banner.entry.js +9 -14
- package/dist/esm/post-breadcrumb-item.entry.js +48 -41
- package/dist/esm/post-breadcrumbs.entry.js +106 -105
- package/dist/esm/post-closebutton_14.entry.js +252 -283
- package/dist/esm/post-collapsible_2.entry.js +57 -40
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +151 -141
- package/dist/esm/post-footer.entry.js +21 -14
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +4 -6
- package/dist/esm/post-login-widget.entry.js +35 -3
- package/dist/esm/post-number-input.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +52 -82
- package/dist/esm/post-popover-trigger.entry.js +20 -17
- package/dist/esm/post-popover.entry.js +25 -23
- package/dist/esm/post-progressbar.entry.js +145 -0
- package/dist/esm/post-rating.entry.js +29 -30
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +49 -38
- package/dist/esm/post-tab-item.entry.js +22 -14
- package/dist/esm/post-tab-panel.entry.js +22 -15
- package/dist/esm/post-tabs.entry.js +23 -29
- package/dist/esm/post-tooltip-trigger.entry.js +34 -21
- 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-c2e05ba0.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-77d5e17b.entry.js → p-686a6e22.entry.js} +1 -1
- package/dist/post-components/p-758fc84f.entry.js +1 -0
- package/dist/post-components/{p-570d64dd.entry.js → p-7f929bb9.entry.js} +1 -1
- package/dist/post-components/p-8LXe8Zt_.js +1 -0
- 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-BQ3HlJPr.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-BrY4VWTQ.js +1 -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-092f8795.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/p-lpWRZjJp.js +1 -0
- package/dist/post-components/post-components.css +2 -2
- 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/avatar-utils.d.ts +1 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +0 -13
- 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 +11 -11
- package/dist/types/components/post-breadcrumb-item/variants.d.ts +2 -0
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +20 -26
- 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 +17 -2
- 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 +0 -3
- 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 +1 -3
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +1 -1
- package/dist/types/components.d.ts +119 -29
- package/dist/types/modules.d.ts +2 -0
- package/dist/types/utils/index.d.ts +4 -3
- package/dist/types/utils/nanoid.d.ts +8 -0
- package/dist/types/utils/property-decorators/array-of.d.ts +9 -0
- package/dist/types/utils/property-decorators/bound.d.ts +36 -0
- package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +48 -0
- package/dist/types/utils/property-decorators/date.d.ts +6 -0
- package/dist/types/utils/property-decorators/index.d.ts +9 -0
- package/dist/types/utils/property-decorators/iso-date.d.ts +6 -0
- package/dist/types/utils/property-decorators/one-of.d.ts +8 -0
- package/dist/types/utils/property-decorators/pattern.d.ts +8 -0
- package/dist/types/utils/property-decorators/required.d.ts +17 -0
- package/dist/types/utils/property-decorators/type.d.ts +9 -0
- package/dist/types/utils/property-decorators/url.d.ts +6 -0
- package/hydrate/index.js +1536 -115469
- package/hydrate/index.mjs +1536 -115469
- package/hydrate/index.stub.js +5 -0
- package/package.json +28 -18
- package/dist/cjs/index-YBj3gUJp.js +0 -114540
- package/dist/cjs/index-qCzRmwgB.js +0 -114
- package/dist/cjs/index.browser-BVb9l9T_.js +0 -16
- 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/index.browser.js +0 -1
- package/dist/components/index2.js +0 -1
- package/dist/components/index3.js +0 -6
- package/dist/components/post-breadcrumb-item2.js +0 -1
- package/dist/components/react/p-B076QoO3.js +0 -1
- package/dist/components/react/p-B2BDAeHI.js +0 -1
- package/dist/components/react/p-B2iQay0-.js +0 -1
- package/dist/components/react/p-B_RL4AOE.js +0 -1
- package/dist/components/react/p-BoFDru4R.js +0 -1
- package/dist/components/react/p-BuL0WAoF.js +0 -1
- package/dist/components/react/p-C8b6-YQl.js +0 -1
- package/dist/components/react/p-CJcRbvrI.js +0 -6
- package/dist/components/react/p-Cu9RsvYK.js +0 -1
- package/dist/components/react/p-D6uA8DbL.js +0 -1
- package/dist/components/react/p-DSSN7xW4.js +0 -1
- package/dist/components/react/p-DW7sbg9f.js +0 -1
- package/dist/components/react/p-DgdnwpId.js +0 -1
- package/dist/components/react/p-Dmnnz3fB.js +0 -1
- package/dist/components/react/p-PuHMz_9_.js +0 -1
- package/dist/components/react/p-nA1BKco0.js +0 -1
- package/dist/components/react/p-r4txK0AC.js +0 -1
- package/dist/components/react/p-tpgRP2Dr.js +0 -1
- package/dist/esm/index-CJcRbvrI.js +0 -114535
- package/dist/esm/index-D9bU2pIE.js +0 -104
- package/dist/esm/index.browser-nA1BKco0.js +0 -14
- package/dist/esm/package-DW7sbg9f.js +0 -3
- package/dist/post-components/p-17ccebe6.entry.js +0 -1
- package/dist/post-components/p-1d58bec1.entry.js +0 -1
- package/dist/post-components/p-25c28493.entry.js +0 -1
- package/dist/post-components/p-29ada3d7.entry.js +0 -1
- package/dist/post-components/p-2fcca5ec.entry.js +0 -1
- package/dist/post-components/p-3cefd49e.entry.js +0 -1
- package/dist/post-components/p-3fea238c.entry.js +0 -1
- package/dist/post-components/p-5068ae7e.entry.js +0 -1
- package/dist/post-components/p-521178f5.entry.js +0 -1
- package/dist/post-components/p-534fed55.entry.js +0 -1
- package/dist/post-components/p-5f52cba3.entry.js +0 -1
- package/dist/post-components/p-86697a58.entry.js +0 -1
- package/dist/post-components/p-987bebe8.entry.js +0 -1
- package/dist/post-components/p-9ca5c297.entry.js +0 -1
- package/dist/post-components/p-9ea3066f.entry.js +0 -1
- package/dist/post-components/p-CJcRbvrI.js +0 -6
- package/dist/post-components/p-D9bU2pIE.js +0 -1
- package/dist/post-components/p-DW7sbg9f.js +0 -1
- package/dist/post-components/p-DmAi35UF.js +0 -2
- package/dist/post-components/p-PuHMz_9_.js +0 -1
- package/dist/post-components/p-a6fc33fa.entry.js +0 -1
- package/dist/post-components/p-ac853d6b.entry.js +0 -1
- package/dist/post-components/p-bd09bc20.entry.js +0 -1
- package/dist/post-components/p-c55b537b.entry.js +0 -1
- package/dist/post-components/p-dded4f13.entry.js +0 -1
- package/dist/post-components/p-e6ba44b1.entry.js +0 -1
- package/dist/post-components/p-ead1094e.entry.js +0 -1
- package/dist/post-components/p-f12e59a0.entry.js +0 -1
- package/dist/post-components/p-nA1BKco0.js +0 -1
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/types/language-tags.d.ts +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
- /package/dist/types/{language-tags.js → test-setup.d.ts} +0 -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);
|
|
@@ -8,11 +8,10 @@ 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
11
|
import { PLACEMENT_TYPES } from "../../types/index";
|
|
12
|
+
import { EventFrom, getFocusableChildren, getRoot, OneOf, Required, Type } from "../../utils/index";
|
|
13
13
|
import { version } from "../../../../package";
|
|
14
|
-
import {
|
|
15
|
-
import { getRoot, checkEmptyOrOneOf, checkRequiredAndType, EventFrom } from "../../utils/index";
|
|
14
|
+
import { h, Host, } from "@stencil/core";
|
|
16
15
|
/**
|
|
17
16
|
* @part post-menu - The container element that holds the list of menu items.
|
|
18
17
|
* @slot header - Holds the header part of the menu.
|
|
@@ -59,12 +58,6 @@ export class PostMenu {
|
|
|
59
58
|
}
|
|
60
59
|
};
|
|
61
60
|
}
|
|
62
|
-
validatePlacement() {
|
|
63
|
-
checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
|
|
64
|
-
}
|
|
65
|
-
validateLabel() {
|
|
66
|
-
checkRequiredAndType(this, 'label', 'string');
|
|
67
|
-
}
|
|
68
61
|
connectedCallback() {
|
|
69
62
|
this.root = getRoot(this.host);
|
|
70
63
|
this.host.addEventListener('keydown', this.handleKeyDown);
|
|
@@ -74,10 +67,6 @@ export class PostMenu {
|
|
|
74
67
|
this.host.removeEventListener('keydown', this.handleKeyDown);
|
|
75
68
|
this.host.removeEventListener('click', this.handleClick);
|
|
76
69
|
}
|
|
77
|
-
componentDidLoad() {
|
|
78
|
-
this.validatePlacement();
|
|
79
|
-
this.validateLabel();
|
|
80
|
-
}
|
|
81
70
|
/**
|
|
82
71
|
* Toggles the menu visibility based on its current state.
|
|
83
72
|
*/
|
|
@@ -189,10 +178,13 @@ export class PostMenu {
|
|
|
189
178
|
// If the element is a slot, get the assigned elements
|
|
190
179
|
.flatMap(el => (el instanceof HTMLSlotElement ? el.assignedElements() : el))
|
|
191
180
|
// For each menu item, get any focusable children (e.g., buttons, links)
|
|
192
|
-
.flatMap(el =>
|
|
181
|
+
.flatMap(el => [
|
|
182
|
+
...getFocusableChildren(el),
|
|
183
|
+
...(el.shadowRoot ? getFocusableChildren(el.shadowRoot) : []),
|
|
184
|
+
]));
|
|
193
185
|
}
|
|
194
186
|
render() {
|
|
195
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: 'c5f2f3e06c6deb847959a573e450beb2b17f35a2', "data-version": version }, h("post-popovercontainer", { key: '3625a55c753d763313f0a17f0f8993bbcb39975d', onPostShow: this.handlePostShown.bind(this), onPostBeforeToggle: this.handlePostBeforeToggle.bind(this), placement: this.placement, ref: e => (this.popoverRef = e) }, h("div", { key: 'f296e5a99e12ee97c09206df7c05db394a4ae181', part: "post-menu" }, h("slot", { key: '7c322af6cc8e67b9c18c645920d8af7bbcab953f', name: "header" }), h("slot", { key: 'd17b77c7c12a38991d25fc251144198ed763cbbb' })))));
|
|
196
188
|
}
|
|
197
189
|
static get is() { return "post-menu"; }
|
|
198
190
|
static get encapsulation() { return "shadow"; }
|
|
@@ -354,16 +346,14 @@ export class PostMenu {
|
|
|
354
346
|
};
|
|
355
347
|
}
|
|
356
348
|
static get elementRef() { return "host"; }
|
|
357
|
-
static get watchers() {
|
|
358
|
-
return [{
|
|
359
|
-
"propName": "placement",
|
|
360
|
-
"methodName": "validatePlacement"
|
|
361
|
-
}, {
|
|
362
|
-
"propName": "label",
|
|
363
|
-
"methodName": "validateLabel"
|
|
364
|
-
}];
|
|
365
|
-
}
|
|
366
349
|
}
|
|
350
|
+
__decorate([
|
|
351
|
+
OneOf(PLACEMENT_TYPES)
|
|
352
|
+
], PostMenu.prototype, "placement", void 0);
|
|
353
|
+
__decorate([
|
|
354
|
+
Required(),
|
|
355
|
+
Type('string')
|
|
356
|
+
], PostMenu.prototype, "label", void 0);
|
|
367
357
|
__decorate([
|
|
368
358
|
EventFrom('post-popovercontainer')
|
|
369
359
|
], PostMenu.prototype, "handlePostShown", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item a{text-decoration:none}post-menu-item button,post-menu-item a{position:relative;display:flex;
|
|
1
|
+
post-menu-item button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button}@media(forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){post-menu-item button{background-color:ButtonFace !important}post-menu-item button:hover{background-color:Highlight !important}}post-menu-item a{text-decoration:none}post-menu-item button,post-menu-item a{width:100%;position:relative;display:flex;align-items:center;padding:.5rem .75rem .5rem 1rem;gap:.75rem;font-size:.875rem;color:#050400;border-radius:0}post-menu-item button post-icon,post-menu-item a post-icon{width:1rem;height:1rem;margin-block:.25rem}@media screen and (min-width: 780px){post-menu-item button,post-menu-item a{font-size:1rem;padding-block:.75rem;gap:1rem}post-menu-item button post-icon,post-menu-item a post-icon{width:1.5rem;height:1.5rem;margin:0}}@media screen and (min-width: 1024px){post-menu-item button,post-menu-item a{font-size:1.25rem;padding-block:.8125rem}}post-menu-item button:focus-visible,post-menu-item a:focus-visible{outline-offset:2px !important;border-radius:4px}post-menu-item button:hover,post-menu-item a:hover{background-color:#504f4b;color:#fff}
|
|
@@ -1,10 +1,17 @@
|
|
|
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 { getRoot, Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
export class PostMenuTrigger {
|
|
5
|
-
validateFor() {
|
|
6
|
-
checkRequiredAndType(this, 'for', 'string');
|
|
7
|
-
}
|
|
8
15
|
constructor() {
|
|
9
16
|
this.updateAriaExpanded = this.updateAriaExpanded.bind(this);
|
|
10
17
|
}
|
|
@@ -12,7 +19,6 @@ export class PostMenuTrigger {
|
|
|
12
19
|
this.root = getRoot(this.host);
|
|
13
20
|
}
|
|
14
21
|
componentDidLoad() {
|
|
15
|
-
this.validateFor();
|
|
16
22
|
this.setAriaAttributes();
|
|
17
23
|
if (this.root) {
|
|
18
24
|
this.root.addEventListener('toggleMenu', this.updateAriaExpanded);
|
|
@@ -59,7 +65,7 @@ export class PostMenuTrigger {
|
|
|
59
65
|
return null;
|
|
60
66
|
}
|
|
61
67
|
render() {
|
|
62
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: '53cdf95c4eaaf430f0ada66aa69588b7830903f9', "data-version": version }, h("slot", { key: 'ae764b0b2b93cd7934fd39ef68084871ddd3f94f' })));
|
|
63
69
|
}
|
|
64
70
|
static get is() { return "post-menu-trigger"; }
|
|
65
71
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,10 +103,8 @@ export class PostMenuTrigger {
|
|
|
97
103
|
};
|
|
98
104
|
}
|
|
99
105
|
static get elementRef() { return "host"; }
|
|
100
|
-
static get watchers() {
|
|
101
|
-
return [{
|
|
102
|
-
"propName": "for",
|
|
103
|
-
"methodName": "validateFor"
|
|
104
|
-
}];
|
|
105
|
-
}
|
|
106
106
|
}
|
|
107
|
+
__decorate([
|
|
108
|
+
Required(),
|
|
109
|
+
Type('string')
|
|
110
|
+
], PostMenuTrigger.prototype, "for", void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
|
-
import { debounce } from "throttle-debounce";
|
|
3
|
-
import { version } from "../../../../package";
|
|
4
1
|
import { getSlottedElement, repeatOnLongPress } from "../../utils/index";
|
|
2
|
+
import { version } from "../../../../package";
|
|
3
|
+
import { h, Host } from "@stencil/core";
|
|
4
|
+
import { debounce } from "throttle-debounce";
|
|
5
5
|
function parseNumber(input, key) {
|
|
6
6
|
const value = Number.parseFloat(input[key]);
|
|
7
7
|
return Number.isNaN(value) ? undefined : value;
|
|
@@ -88,10 +88,10 @@ export class PostNumberInput {
|
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
90
|
const areButtonsShown = !!this.input;
|
|
91
|
-
return (h(Host, { key: '
|
|
91
|
+
return (h(Host, { key: 'c8ef21f14edba7dcaf82dc66d7735f3ab3022e4f', "data-version": version, class: {
|
|
92
92
|
'number-input-sm': this.small,
|
|
93
93
|
'disabled': this.isDisabled,
|
|
94
|
-
} }, areButtonsShown && (h("div", { key: '
|
|
94
|
+
} }, areButtonsShown && (h("div", { key: '585049836ec48c09bcf49019375d798d58b1d56b', "aria-hidden": "true", onPointerDown: () => this.step('down'), class: { 'step-button': true, 'disabled': this.isDecrementDisabled } }, h("post-icon", { key: '1891fc6f71f9251e32b254d6a2da72560c86d3f2', name: "minus" }))), h("div", { key: '8cffde72970f70573f7d9afacd023bc87b9d9bae', class: "input-container" }, h("slot", { key: '69cdc0bef28f380690ce4d4887a3bec3a1dc30b9', onSlotchange: () => this.setupInput() })), areButtonsShown && (h("div", { key: '85cc8b04413b1a50ec493b45638f451fc2b5e0fd', "aria-hidden": "true", onPointerDown: () => this.step('up'), class: { 'step-button': true, 'disabled': this.isIncrementDisabled } }, h("post-icon", { key: '00b3a503d183042a406618aaad9a0e3f512e13e7', name: "plus" })))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "post-number-input"; }
|
|
97
97
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +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 { debounce, nanoid, Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
4
|
-
import { checkEmptyOrType, checkRequiredAndType, debounce } from "../../utils/index";
|
|
13
|
+
import { h, Host, } from "@stencil/core";
|
|
5
14
|
const ELLIPSIS = '...';
|
|
6
15
|
const MEASUREMENT_DEBOUNCE_MS = 50;
|
|
7
16
|
const RESIZE_DEBOUNCE_MS = 150;
|
|
@@ -18,33 +27,6 @@ export class PostPagination {
|
|
|
18
27
|
this.debouncedResize = debounce(this.handleResizeInternal.bind(this), RESIZE_DEBOUNCE_MS);
|
|
19
28
|
this.measurementTimeoutId = null;
|
|
20
29
|
}
|
|
21
|
-
validatePage() {
|
|
22
|
-
this.validateProp('page', 'number', false);
|
|
23
|
-
}
|
|
24
|
-
validatePageSize() {
|
|
25
|
-
this.validateProp('pageSize', 'number', true);
|
|
26
|
-
}
|
|
27
|
-
validateCollectionSize() {
|
|
28
|
-
this.validateProp('collectionSize', 'number', true);
|
|
29
|
-
}
|
|
30
|
-
validateLabel() {
|
|
31
|
-
this.validateProp('label', 'string', true);
|
|
32
|
-
}
|
|
33
|
-
validateTextPrevious() {
|
|
34
|
-
this.validateProp('textPrevious', 'string', true);
|
|
35
|
-
}
|
|
36
|
-
validateTextNext() {
|
|
37
|
-
this.validateProp('textNext', 'string', true);
|
|
38
|
-
}
|
|
39
|
-
validateTextPage() {
|
|
40
|
-
this.validateProp('textPage', 'string', true);
|
|
41
|
-
}
|
|
42
|
-
validateTextFirst() {
|
|
43
|
-
this.validateProp('textFirst', 'string', true);
|
|
44
|
-
}
|
|
45
|
-
validateTextLast() {
|
|
46
|
-
this.validateProp('textLast', 'string', true);
|
|
47
|
-
}
|
|
48
30
|
handlePropsChange() {
|
|
49
31
|
this.updatePagesWithValidation();
|
|
50
32
|
}
|
|
@@ -59,7 +41,6 @@ export class PostPagination {
|
|
|
59
41
|
}
|
|
60
42
|
componentDidLoad() {
|
|
61
43
|
this.loaded = true;
|
|
62
|
-
this.runAllValidations();
|
|
63
44
|
this.scheduleMeasurement();
|
|
64
45
|
}
|
|
65
46
|
disconnectedCallback() {
|
|
@@ -70,31 +51,6 @@ export class PostPagination {
|
|
|
70
51
|
this.measurementTimeoutId = null;
|
|
71
52
|
}
|
|
72
53
|
}
|
|
73
|
-
/**
|
|
74
|
-
* Validate a prop with the appropriate check function
|
|
75
|
-
*/
|
|
76
|
-
validateProp(propName, type, required = true) {
|
|
77
|
-
if (required) {
|
|
78
|
-
checkRequiredAndType(this, propName, type);
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
checkEmptyOrType(this, propName, type);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Run all prop validations
|
|
86
|
-
*/
|
|
87
|
-
runAllValidations() {
|
|
88
|
-
this.validateProp('page', 'number', false);
|
|
89
|
-
this.validateProp('pageSize', 'number', true);
|
|
90
|
-
this.validateProp('collectionSize', 'number', true);
|
|
91
|
-
this.validateProp('label', 'string', true);
|
|
92
|
-
this.validateProp('textPrevious', 'string', true);
|
|
93
|
-
this.validateProp('textNext', 'string', true);
|
|
94
|
-
this.validateProp('textPage', 'string', true);
|
|
95
|
-
this.validateProp('textFirst', 'string', true);
|
|
96
|
-
this.validateProp('textLast', 'string', true);
|
|
97
|
-
}
|
|
98
54
|
/**
|
|
99
55
|
* Schedule measurement attempt with timeout
|
|
100
56
|
*/
|
|
@@ -770,33 +726,6 @@ export class PostPagination {
|
|
|
770
726
|
static get elementRef() { return "host"; }
|
|
771
727
|
static get watchers() {
|
|
772
728
|
return [{
|
|
773
|
-
"propName": "page",
|
|
774
|
-
"methodName": "validatePage"
|
|
775
|
-
}, {
|
|
776
|
-
"propName": "pageSize",
|
|
777
|
-
"methodName": "validatePageSize"
|
|
778
|
-
}, {
|
|
779
|
-
"propName": "collectionSize",
|
|
780
|
-
"methodName": "validateCollectionSize"
|
|
781
|
-
}, {
|
|
782
|
-
"propName": "label",
|
|
783
|
-
"methodName": "validateLabel"
|
|
784
|
-
}, {
|
|
785
|
-
"propName": "textPrevious",
|
|
786
|
-
"methodName": "validateTextPrevious"
|
|
787
|
-
}, {
|
|
788
|
-
"propName": "textNext",
|
|
789
|
-
"methodName": "validateTextNext"
|
|
790
|
-
}, {
|
|
791
|
-
"propName": "textPage",
|
|
792
|
-
"methodName": "validateTextPage"
|
|
793
|
-
}, {
|
|
794
|
-
"propName": "textFirst",
|
|
795
|
-
"methodName": "validateTextFirst"
|
|
796
|
-
}, {
|
|
797
|
-
"propName": "textLast",
|
|
798
|
-
"methodName": "validateTextLast"
|
|
799
|
-
}, {
|
|
800
729
|
"propName": "page",
|
|
801
730
|
"methodName": "handlePropsChange"
|
|
802
731
|
}, {
|
|
@@ -808,3 +737,38 @@ export class PostPagination {
|
|
|
808
737
|
}];
|
|
809
738
|
}
|
|
810
739
|
}
|
|
740
|
+
__decorate([
|
|
741
|
+
Type('number')
|
|
742
|
+
], PostPagination.prototype, "page", void 0);
|
|
743
|
+
__decorate([
|
|
744
|
+
Required(),
|
|
745
|
+
Type('number')
|
|
746
|
+
], PostPagination.prototype, "pageSize", void 0);
|
|
747
|
+
__decorate([
|
|
748
|
+
Required(),
|
|
749
|
+
Type('number')
|
|
750
|
+
], PostPagination.prototype, "collectionSize", void 0);
|
|
751
|
+
__decorate([
|
|
752
|
+
Required(),
|
|
753
|
+
Type('string')
|
|
754
|
+
], PostPagination.prototype, "label", void 0);
|
|
755
|
+
__decorate([
|
|
756
|
+
Required(),
|
|
757
|
+
Type('string')
|
|
758
|
+
], PostPagination.prototype, "textPrevious", void 0);
|
|
759
|
+
__decorate([
|
|
760
|
+
Required(),
|
|
761
|
+
Type('string')
|
|
762
|
+
], PostPagination.prototype, "textNext", void 0);
|
|
763
|
+
__decorate([
|
|
764
|
+
Required(),
|
|
765
|
+
Type('string')
|
|
766
|
+
], PostPagination.prototype, "textPage", void 0);
|
|
767
|
+
__decorate([
|
|
768
|
+
Required(),
|
|
769
|
+
Type('string')
|
|
770
|
+
], PostPagination.prototype, "textFirst", void 0);
|
|
771
|
+
__decorate([
|
|
772
|
+
Required(),
|
|
773
|
+
Type('string')
|
|
774
|
+
], PostPagination.prototype, "textLast", void 0);
|