@swisspost/design-system-components 10.0.0-next.71 → 10.0.0-next.75
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-Bimhl6Ib.js +223 -0
- package/dist/cjs/{index-CCteMCnR.js → index-CyeY2muT.js} +54 -5
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/one-of-BVQP1dR3.js +27 -0
- package/dist/cjs/{package-CscM89A7.js → package-JSyXVavg.js} +1 -1
- package/dist/cjs/pattern-BDKu8-v6.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 +9 -14
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +34 -24
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +35 -38
- package/dist/cjs/post-closebutton_14.cjs.entry.js +284 -300
- 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 +142 -140
- package/dist/cjs/post-footer.cjs.entry.js +24 -17
- 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 +3 -5
- package/dist/cjs/post-login-widget.cjs.entry.js +29 -30
- package/dist/cjs/post-number-input.cjs.entry.js +5 -5
- package/dist/cjs/post-pagination.cjs.entry.js +60 -85
- 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-side-navigation-trigger.cjs.entry.js +109 -0
- package/dist/cjs/post-side-navigation.cjs.entry.js +129 -0
- package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/post-stepper.cjs.entry.js +50 -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-BsZuSJAl.js +44 -0
- package/dist/cjs/type-DXpEWY0w.js +30 -0
- package/dist/cjs/url-D-EbWRlF.js +34 -0
- package/dist/collection/collection-manifest.json +3 -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.css +2 -2
- 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 +27 -22
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +30 -37
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +45 -37
- package/dist/collection/components/post-closebutton/types.js +1 -1
- 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.css +1 -1
- package/dist/collection/components/post-header/post-header.js +25 -30
- package/dist/collection/components/post-icon/post-icon.js +34 -47
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- 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.css +1 -1
- 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 -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.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +10 -23
- 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.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +5 -5
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-pagination/post-pagination.js +58 -87
- 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 +29 -33
- 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-side-navigation/post-side-navigation.css +1 -0
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +231 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
- package/dist/collection/components/post-stepper/post-stepper.js +46 -36
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -1
- 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 +3 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/index.d.ts +6 -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-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-side-navigation-trigger.d.ts +11 -0
- package/dist/components/post-side-navigation-trigger.js +1 -0
- package/dist/components/post-side-navigation.d.ts +11 -0
- package/dist/components/post-side-navigation.js +1 -0
- 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-B3ZJPCU0.js +1 -0
- package/dist/components/react/p-BUAS73l8.js +1 -0
- package/dist/components/react/p-BUSQG9af.js +1 -0
- package/dist/components/react/p-BXqGI600.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-Bji_4dfL.js +1 -0
- package/dist/components/react/p-C7aYEQh5.js +1 -0
- package/dist/components/react/p-CX2E_IXB.js +1 -0
- package/dist/components/react/p-CbU3QFNG.js +1 -0
- package/dist/components/react/p-CdhbouMD.js +1 -0
- package/dist/components/react/p-Ci08Eesw.js +1 -0
- package/dist/components/react/{p-BC0-M_SK.js → p-DNddZV_h.js} +1 -1
- package/dist/components/react/p-DTg2SXJj.js +1 -0
- package/dist/components/react/p-DU4XzTGt.js +1 -0
- package/dist/components/react/p-DWlDkwjY.js +1 -0
- package/dist/components/react/p-wqJxIo5L.js +1 -0
- package/dist/components/react/p-ztiqEfbC.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-side-navigation-trigger.d.ts +11 -0
- package/dist/components/react/post-side-navigation-trigger.js +1 -0
- package/dist/components/react/post-side-navigation.d.ts +11 -0
- package/dist/components/react/post-side-navigation.js +1 -0
- 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 +344 -14
- package/dist/esm/create-validator-decorator-BNkS_yAb.js +218 -0
- package/dist/esm/{index-DmBWUef5.js → index-BGeKgZqi.js} +54 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/one-of-4BD_5pKR.js +25 -0
- package/dist/esm/package-CdhbouMD.js +3 -0
- package/dist/esm/pattern-D7tnGo1u.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 +9 -14
- package/dist/esm/post-breadcrumb-item.entry.js +34 -24
- package/dist/esm/post-breadcrumbs.entry.js +35 -38
- package/dist/esm/post-closebutton_14.entry.js +284 -300
- 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 +142 -140
- package/dist/esm/post-footer.entry.js +20 -13
- 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 +3 -5
- package/dist/esm/post-login-widget.entry.js +29 -30
- package/dist/esm/post-number-input.entry.js +5 -5
- package/dist/esm/post-pagination.entry.js +60 -85
- 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-side-navigation-trigger.entry.js +107 -0
- package/dist/esm/post-side-navigation.entry.js +127 -0
- package/dist/esm/post-stepper-item.entry.js +4 -4
- package/dist/esm/post-stepper.entry.js +50 -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-DhBxDSbP.js +42 -0
- package/dist/esm/type-icZlikjf.js +28 -0
- package/dist/esm/url-B_2x2YCy.js +32 -0
- package/dist/post-components/p-001f58d8.entry.js +1 -0
- package/dist/post-components/p-0a08ae23.entry.js +1 -0
- package/dist/post-components/p-12c8b073.entry.js +1 -0
- package/dist/post-components/{p-bab0f27f.entry.js → p-15fa7e60.entry.js} +1 -1
- package/dist/post-components/p-1839276a.entry.js +1 -0
- package/dist/post-components/p-28eeb5d8.entry.js +1 -0
- package/dist/post-components/p-3e83aa1f.entry.js +1 -0
- package/dist/post-components/p-41b5dbfc.entry.js +1 -0
- package/dist/post-components/p-5d20cbcb.entry.js +1 -0
- package/dist/post-components/p-6a1c4897.entry.js +1 -0
- package/dist/post-components/p-6cbb2e7f.entry.js +1 -0
- package/dist/post-components/p-6d14f78a.entry.js +1 -0
- package/dist/post-components/p-6e8b6249.entry.js +1 -0
- package/dist/post-components/p-71918d59.entry.js +1 -0
- package/dist/post-components/p-7ee4b829.entry.js +1 -0
- package/dist/post-components/p-8139b0cc.entry.js +1 -0
- package/dist/post-components/p-84c8d952.entry.js +1 -0
- package/dist/post-components/p-87ebb213.entry.js +1 -0
- package/dist/post-components/{p-4b445a35.entry.js → p-89da6378.entry.js} +1 -1
- package/dist/post-components/p-8SvFxSp6.js +1 -0
- package/dist/post-components/p-8caaa149.entry.js +1 -0
- package/dist/post-components/p-923439d1.entry.js +1 -0
- package/dist/post-components/p-97c1f070.entry.js +1 -0
- package/dist/post-components/p-9e240299.entry.js +1 -0
- package/dist/post-components/p-9ec32e7b.entry.js +1 -0
- package/dist/post-components/p-BGeKgZqi.js +2 -0
- package/dist/post-components/p-CIbyqT6u.js +1 -0
- package/dist/post-components/p-CdhbouMD.js +1 -0
- package/dist/post-components/p-D2ex14Ye.js +1 -0
- package/dist/post-components/p-DH5JdN6V.js +1 -0
- package/dist/post-components/p-DiBqDD4N.js +1 -0
- package/dist/post-components/p-I6rSjhbA.js +1 -0
- package/dist/post-components/p-aff9dd5e.entry.js +1 -0
- package/dist/post-components/p-c905a97c.entry.js +1 -0
- package/dist/post-components/p-e54a6be0.entry.js +1 -0
- package/dist/post-components/p-eca119d2.entry.js +1 -0
- package/dist/post-components/p-f9529d40.entry.js +1 -0
- package/dist/post-components/p-fac58cbd.entry.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/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 +5 -5
- package/dist/types/components/post-closebutton/types.d.ts +1 -1
- 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 +1 -3
- 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-side-navigation/post-side-navigation.d.ts +56 -0
- package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
- 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 +142 -5
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
- 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/dist/vrt/helpers/header-test-config.js +3 -2
- package/dist/vrt/helpers/header-variants.config.js +29 -2
- package/hydrate/index.js +1640 -980
- package/hydrate/index.mjs +1640 -980
- 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-DPKR_4uI.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-08a0e8e9.entry.js +0 -1
- 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-39143e19.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,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Placement } from '@floating-ui/dom';
|
|
2
2
|
/**
|
|
3
3
|
* @slot default - Slot for placing content inside the popover.
|
|
4
4
|
*/
|
|
@@ -11,17 +11,14 @@ export declare class PostPopover {
|
|
|
11
11
|
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
12
12
|
*/
|
|
13
13
|
readonly placement?: Placement;
|
|
14
|
-
validatePlacement(): void;
|
|
15
14
|
/**
|
|
16
15
|
* Define the text of the close button for assistive technology
|
|
17
16
|
*/
|
|
18
17
|
readonly textClose: string;
|
|
19
|
-
validateTextClose(): void;
|
|
20
18
|
/**
|
|
21
19
|
* Show a little indicator arrow
|
|
22
20
|
*/
|
|
23
21
|
readonly arrow?: boolean;
|
|
24
|
-
componentDidLoad(): void;
|
|
25
22
|
/**
|
|
26
23
|
* Programmatically display the popover
|
|
27
24
|
* @param target A focusable element inside the <post-popover-trigger> component that controls the popover
|
|
@@ -17,7 +17,6 @@ export declare class PostPopoverTrigger {
|
|
|
17
17
|
* Watch for changes to the `for` property to validate its type and ensure it is a string.
|
|
18
18
|
* @param forValue - The new value of the `for` property.
|
|
19
19
|
*/
|
|
20
|
-
validateFor(): void;
|
|
21
20
|
/**
|
|
22
21
|
* Reference to the element inside the host that will act as the trigger.
|
|
23
22
|
*/
|
|
@@ -76,9 +76,6 @@ export declare class PostPopovercontainer {
|
|
|
76
76
|
* Enables a safespace through which the cursor can be moved without the popover being disabled
|
|
77
77
|
*/
|
|
78
78
|
readonly safeSpace?: 'triangle' | 'trapezoid';
|
|
79
|
-
validatePlacement(): void;
|
|
80
|
-
validateEdgeGap(): void;
|
|
81
|
-
validateSafeSpace(): void;
|
|
82
79
|
/**
|
|
83
80
|
* Animation style
|
|
84
81
|
*/
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare class PostProgressbar {
|
|
2
|
+
host: HTMLPostProgressbarElement;
|
|
3
|
+
/**
|
|
4
|
+
* The minimum value of the progress bar.
|
|
5
|
+
* Must be a valid floating point number less than max.
|
|
6
|
+
*/
|
|
7
|
+
min: number;
|
|
8
|
+
/**
|
|
9
|
+
* Describes how much work the task indicated by the progress element requires.
|
|
10
|
+
* Must be a valid floating point number greater than min.
|
|
11
|
+
*/
|
|
12
|
+
max: number;
|
|
13
|
+
/**
|
|
14
|
+
* Specifies how much of the task has been completed.
|
|
15
|
+
* Must be a valid floating point number between min and max.
|
|
16
|
+
* If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
17
|
+
*/
|
|
18
|
+
value?: number;
|
|
19
|
+
private getEffectiveMin;
|
|
20
|
+
private getEffectiveMax;
|
|
21
|
+
private getEffectiveValue;
|
|
22
|
+
render(): any;
|
|
23
|
+
}
|
|
@@ -34,10 +34,6 @@ export declare class PostRating {
|
|
|
34
34
|
postChange: EventEmitter<{
|
|
35
35
|
value: number;
|
|
36
36
|
}>;
|
|
37
|
-
validateLabel(): void;
|
|
38
|
-
validateStars(): void;
|
|
39
|
-
validateCurrentRating(): void;
|
|
40
|
-
componentWillLoad(): void;
|
|
41
37
|
constructor();
|
|
42
38
|
private update;
|
|
43
39
|
private keydownHandler;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from "../../utils/breakpoints";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)
|
|
5
|
+
*/
|
|
6
|
+
export declare class PostSideNavigation {
|
|
7
|
+
host: HTMLPostSideNavigationElement;
|
|
8
|
+
device: Device;
|
|
9
|
+
/**
|
|
10
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
11
|
+
*/
|
|
12
|
+
textClose: string;
|
|
13
|
+
/**
|
|
14
|
+
* An event emitted when the navigation is shown or hidden on mobile.
|
|
15
|
+
* The payload is a boolean: `true` when the navigation opens, `false` when it closes.
|
|
16
|
+
*/
|
|
17
|
+
postToggle: EventEmitter<boolean>;
|
|
18
|
+
private breakpointChange;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
get dialog(): HTMLDialogElement;
|
|
22
|
+
private get collapsibleTrigger();
|
|
23
|
+
private get collapsible();
|
|
24
|
+
/**
|
|
25
|
+
* Collapses the active disclosure on Escape; lets the native dialog handle it otherwise.
|
|
26
|
+
*/
|
|
27
|
+
private handleKeyDown;
|
|
28
|
+
/**
|
|
29
|
+
* Toggles the navigation programmatically.
|
|
30
|
+
* No-op on desktop.
|
|
31
|
+
*/
|
|
32
|
+
toggle(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Opens the navigation programmatically.
|
|
35
|
+
* No-op on desktop.
|
|
36
|
+
*/
|
|
37
|
+
show(): Promise<void>;
|
|
38
|
+
/**
|
|
39
|
+
* Closes the navigation programmatically.
|
|
40
|
+
* No-op on desktop.
|
|
41
|
+
*/
|
|
42
|
+
hide(): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Move focus into the navigation when the dialog opens.
|
|
45
|
+
*/
|
|
46
|
+
private focusNav;
|
|
47
|
+
/**
|
|
48
|
+
* Render inline navigation (desktop).
|
|
49
|
+
*/
|
|
50
|
+
private renderNav;
|
|
51
|
+
/**
|
|
52
|
+
* Render modal navigation (mobile/tablet).
|
|
53
|
+
*/
|
|
54
|
+
private renderDialog;
|
|
55
|
+
render(): any;
|
|
56
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Slot for the `<button>` that toggles the navigation.
|
|
3
|
+
*/
|
|
4
|
+
export declare class PostSideNavigationTrigger {
|
|
5
|
+
host: HTMLPostSideNavigationTriggerElement;
|
|
6
|
+
for: string;
|
|
7
|
+
private trigger?;
|
|
8
|
+
private root;
|
|
9
|
+
private readonly observer;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
componentDidLoad(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the post-side-navigation controlled by the trigger.
|
|
16
|
+
*/
|
|
17
|
+
private get sideNavigation();
|
|
18
|
+
/**
|
|
19
|
+
* Find the button, attach the click listener and the initial ARIA attributes.
|
|
20
|
+
*/
|
|
21
|
+
private setTrigger;
|
|
22
|
+
private updateAriaAttributes;
|
|
23
|
+
/**
|
|
24
|
+
* Keep the trigger's `aria-expanded` in sync with the navigation state.
|
|
25
|
+
*/
|
|
26
|
+
private handlePostToggle;
|
|
27
|
+
/**
|
|
28
|
+
* Manually update the trigger's ARIA attributes.
|
|
29
|
+
*/
|
|
30
|
+
update(): Promise<void>;
|
|
31
|
+
private toggleSideNavigation;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -13,18 +13,15 @@ export declare class PostStepper {
|
|
|
13
13
|
* "Current step" label for accessibility
|
|
14
14
|
*/
|
|
15
15
|
textCurrentStep: string;
|
|
16
|
-
validateTextCurrentStep(): void;
|
|
17
16
|
/**
|
|
18
17
|
* "Completed step" label for accessibility
|
|
19
18
|
*/
|
|
20
19
|
textCompletedStep: string;
|
|
21
|
-
validateTextCompletedStep(): void;
|
|
22
20
|
/**
|
|
23
21
|
* Label for the "Step {number}:" indicator for mobile view.
|
|
24
22
|
* Use `{number}` as a placeholder — it will be replaced with the current step number at runtime.
|
|
25
23
|
*/
|
|
26
24
|
textStepNumber: string;
|
|
27
|
-
validateTextStepNumber(): void;
|
|
28
25
|
/**
|
|
29
26
|
* Defines the current step, which is the next step the user has to complete.
|
|
30
27
|
*/
|
|
@@ -36,9 +33,9 @@ export declare class PostStepper {
|
|
|
36
33
|
*/
|
|
37
34
|
selectedIndex?: number;
|
|
38
35
|
validateSelectedIndex(): void;
|
|
36
|
+
updateActiveStepNumber(): void;
|
|
39
37
|
componentDidLoad(): void;
|
|
40
38
|
private checkIndexes;
|
|
41
|
-
private updateActiveStepNumber;
|
|
42
39
|
private updateSteps;
|
|
43
40
|
private updateMobileActiveStepVisibility;
|
|
44
41
|
render(): any;
|
|
@@ -10,7 +10,6 @@ export declare class PostTabItem {
|
|
|
10
10
|
* The name of the tab, used to associate it with a tab panel or identify the active tab in panel mode.
|
|
11
11
|
*/
|
|
12
12
|
readonly name: string;
|
|
13
|
-
validateName(): void;
|
|
14
13
|
connectedCallback(): void;
|
|
15
14
|
componentWillLoad(): void;
|
|
16
15
|
disconnectedCallback(): void;
|
|
@@ -8,7 +8,6 @@ export declare class PostTooltip {
|
|
|
8
8
|
* For supported values and behavior details, see the [Floating UI placement documentation](https://floating-ui.com/docs/computePosition#placement).
|
|
9
9
|
*/
|
|
10
10
|
readonly placement?: Placement;
|
|
11
|
-
validatePlacement(): void;
|
|
12
11
|
/**
|
|
13
12
|
* Whether or not to display a little pointer arrow
|
|
14
13
|
*/
|
|
@@ -17,7 +16,6 @@ export declare class PostTooltip {
|
|
|
17
16
|
* Indicates the open state of the tooltip
|
|
18
17
|
*/
|
|
19
18
|
open: boolean;
|
|
20
|
-
componentWillLoad(): void;
|
|
21
19
|
componentDidLoad(): void;
|
|
22
20
|
/**
|
|
23
21
|
* Programmatically display the tooltip.
|
|
@@ -188,9 +188,9 @@ export namespace Components {
|
|
|
188
188
|
}
|
|
189
189
|
interface PostCollapsibleTrigger {
|
|
190
190
|
/**
|
|
191
|
-
* Link the trigger to a post-collapsible
|
|
191
|
+
* Link the trigger to a post-collapsible by its ID. If omitted, a post-collapsible nested directly inside this element is used instead.
|
|
192
192
|
*/
|
|
193
|
-
"for"
|
|
193
|
+
"for"?: string;
|
|
194
194
|
/**
|
|
195
195
|
* Update the "aria-controls" and "aria-expanded" attributes on the trigger button
|
|
196
196
|
*/
|
|
@@ -538,6 +538,7 @@ export namespace Components {
|
|
|
538
538
|
"label": string;
|
|
539
539
|
/**
|
|
540
540
|
* The current active page number. **If not specified, defaults to the first page.**
|
|
541
|
+
* @default 1
|
|
541
542
|
*/
|
|
542
543
|
"page"?: number;
|
|
543
544
|
/**
|
|
@@ -642,6 +643,22 @@ export namespace Components {
|
|
|
642
643
|
*/
|
|
643
644
|
"toggle": (target: HTMLElement, force?: boolean) => Promise<boolean>;
|
|
644
645
|
}
|
|
646
|
+
interface PostProgressbar {
|
|
647
|
+
/**
|
|
648
|
+
* Describes how much work the task indicated by the progress element requires. Must be a valid floating point number greater than min.
|
|
649
|
+
* @default 100
|
|
650
|
+
*/
|
|
651
|
+
"max": number;
|
|
652
|
+
/**
|
|
653
|
+
* The minimum value of the progress bar. Must be a valid floating point number less than max.
|
|
654
|
+
* @default 0
|
|
655
|
+
*/
|
|
656
|
+
"min": number;
|
|
657
|
+
/**
|
|
658
|
+
* Specifies how much of the task has been completed. Must be a valid floating point number between min and max. If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
659
|
+
*/
|
|
660
|
+
"value"?: number;
|
|
661
|
+
}
|
|
645
662
|
interface PostRating {
|
|
646
663
|
/**
|
|
647
664
|
* Defines the rating that the component should show.
|
|
@@ -663,6 +680,31 @@ export namespace Components {
|
|
|
663
680
|
*/
|
|
664
681
|
"stars": number;
|
|
665
682
|
}
|
|
683
|
+
interface PostSideNavigation {
|
|
684
|
+
/**
|
|
685
|
+
* Closes the navigation programmatically. No-op on desktop.
|
|
686
|
+
*/
|
|
687
|
+
"hide": () => Promise<void>;
|
|
688
|
+
/**
|
|
689
|
+
* Opens the navigation programmatically. No-op on desktop.
|
|
690
|
+
*/
|
|
691
|
+
"show": () => Promise<void>;
|
|
692
|
+
/**
|
|
693
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
694
|
+
*/
|
|
695
|
+
"textClose": string;
|
|
696
|
+
/**
|
|
697
|
+
* Toggles the navigation programmatically. No-op on desktop.
|
|
698
|
+
*/
|
|
699
|
+
"toggle": () => Promise<void>;
|
|
700
|
+
}
|
|
701
|
+
interface PostSideNavigationTrigger {
|
|
702
|
+
"for": string;
|
|
703
|
+
/**
|
|
704
|
+
* Manually update the trigger's ARIA attributes.
|
|
705
|
+
*/
|
|
706
|
+
"update": () => Promise<void>;
|
|
707
|
+
}
|
|
666
708
|
interface PostStepper {
|
|
667
709
|
/**
|
|
668
710
|
* Defines the current step, which is the next step the user has to complete.
|
|
@@ -822,6 +864,10 @@ export interface PostRatingCustomEvent<T> extends CustomEvent<T> {
|
|
|
822
864
|
detail: T;
|
|
823
865
|
target: HTMLPostRatingElement;
|
|
824
866
|
}
|
|
867
|
+
export interface PostSideNavigationCustomEvent<T> extends CustomEvent<T> {
|
|
868
|
+
detail: T;
|
|
869
|
+
target: HTMLPostSideNavigationElement;
|
|
870
|
+
}
|
|
825
871
|
export interface PostTabsCustomEvent<T> extends CustomEvent<T> {
|
|
826
872
|
detail: T;
|
|
827
873
|
target: HTMLPostTabsElement;
|
|
@@ -1165,6 +1211,12 @@ declare global {
|
|
|
1165
1211
|
prototype: HTMLPostPopovercontainerElement;
|
|
1166
1212
|
new (): HTMLPostPopovercontainerElement;
|
|
1167
1213
|
};
|
|
1214
|
+
interface HTMLPostProgressbarElement extends Components.PostProgressbar, HTMLStencilElement {
|
|
1215
|
+
}
|
|
1216
|
+
var HTMLPostProgressbarElement: {
|
|
1217
|
+
prototype: HTMLPostProgressbarElement;
|
|
1218
|
+
new (): HTMLPostProgressbarElement;
|
|
1219
|
+
};
|
|
1168
1220
|
interface HTMLPostRatingElementEventMap {
|
|
1169
1221
|
"postInput": { value: number };
|
|
1170
1222
|
"postChange": { value: number };
|
|
@@ -1183,6 +1235,29 @@ declare global {
|
|
|
1183
1235
|
prototype: HTMLPostRatingElement;
|
|
1184
1236
|
new (): HTMLPostRatingElement;
|
|
1185
1237
|
};
|
|
1238
|
+
interface HTMLPostSideNavigationElementEventMap {
|
|
1239
|
+
"postToggle": boolean;
|
|
1240
|
+
}
|
|
1241
|
+
interface HTMLPostSideNavigationElement extends Components.PostSideNavigation, HTMLStencilElement {
|
|
1242
|
+
addEventListener<K extends keyof HTMLPostSideNavigationElementEventMap>(type: K, listener: (this: HTMLPostSideNavigationElement, ev: PostSideNavigationCustomEvent<HTMLPostSideNavigationElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1243
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1244
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1245
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1246
|
+
removeEventListener<K extends keyof HTMLPostSideNavigationElementEventMap>(type: K, listener: (this: HTMLPostSideNavigationElement, ev: PostSideNavigationCustomEvent<HTMLPostSideNavigationElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
1247
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1248
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1249
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1250
|
+
}
|
|
1251
|
+
var HTMLPostSideNavigationElement: {
|
|
1252
|
+
prototype: HTMLPostSideNavigationElement;
|
|
1253
|
+
new (): HTMLPostSideNavigationElement;
|
|
1254
|
+
};
|
|
1255
|
+
interface HTMLPostSideNavigationTriggerElement extends Components.PostSideNavigationTrigger, HTMLStencilElement {
|
|
1256
|
+
}
|
|
1257
|
+
var HTMLPostSideNavigationTriggerElement: {
|
|
1258
|
+
prototype: HTMLPostSideNavigationTriggerElement;
|
|
1259
|
+
new (): HTMLPostSideNavigationTriggerElement;
|
|
1260
|
+
};
|
|
1186
1261
|
interface HTMLPostStepperElement extends Components.PostStepper, HTMLStencilElement {
|
|
1187
1262
|
}
|
|
1188
1263
|
var HTMLPostStepperElement: {
|
|
@@ -1276,7 +1351,10 @@ declare global {
|
|
|
1276
1351
|
"post-popover": HTMLPostPopoverElement;
|
|
1277
1352
|
"post-popover-trigger": HTMLPostPopoverTriggerElement;
|
|
1278
1353
|
"post-popovercontainer": HTMLPostPopovercontainerElement;
|
|
1354
|
+
"post-progressbar": HTMLPostProgressbarElement;
|
|
1279
1355
|
"post-rating": HTMLPostRatingElement;
|
|
1356
|
+
"post-side-navigation": HTMLPostSideNavigationElement;
|
|
1357
|
+
"post-side-navigation-trigger": HTMLPostSideNavigationTriggerElement;
|
|
1280
1358
|
"post-stepper": HTMLPostStepperElement;
|
|
1281
1359
|
"post-stepper-item": HTMLPostStepperItemElement;
|
|
1282
1360
|
"post-tab-item": HTMLPostTabItemElement;
|
|
@@ -1420,6 +1498,18 @@ declare namespace LocalJSX {
|
|
|
1420
1498
|
* @default 'button'
|
|
1421
1499
|
*/
|
|
1422
1500
|
"buttonType"?: ButtonType;
|
|
1501
|
+
/**
|
|
1502
|
+
* If `true`, the user cannot interact with the element.
|
|
1503
|
+
*/
|
|
1504
|
+
"disabled"?: boolean;
|
|
1505
|
+
/**
|
|
1506
|
+
* The `id` of a `<form>` element to associate this element with.
|
|
1507
|
+
*/
|
|
1508
|
+
"form"?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* The name of the element, used when submitting an HTML form.
|
|
1511
|
+
*/
|
|
1512
|
+
"name"?: string;
|
|
1423
1513
|
/**
|
|
1424
1514
|
* Defines whether the close button is positioned automatically by the component or left unpositioned for manual styling.
|
|
1425
1515
|
* @default 'auto'
|
|
@@ -1444,9 +1534,9 @@ declare namespace LocalJSX {
|
|
|
1444
1534
|
}
|
|
1445
1535
|
interface PostCollapsibleTrigger {
|
|
1446
1536
|
/**
|
|
1447
|
-
* Link the trigger to a post-collapsible
|
|
1537
|
+
* Link the trigger to a post-collapsible by its ID. If omitted, a post-collapsible nested directly inside this element is used instead.
|
|
1448
1538
|
*/
|
|
1449
|
-
"for"
|
|
1539
|
+
"for"?: string;
|
|
1450
1540
|
}
|
|
1451
1541
|
interface PostDatePicker {
|
|
1452
1542
|
/**
|
|
@@ -1749,6 +1839,7 @@ declare namespace LocalJSX {
|
|
|
1749
1839
|
"onPostChange"?: (event: PostPaginationCustomEvent<number>) => void;
|
|
1750
1840
|
/**
|
|
1751
1841
|
* The current active page number. **If not specified, defaults to the first page.**
|
|
1842
|
+
* @default 1
|
|
1752
1843
|
*/
|
|
1753
1844
|
"page"?: number;
|
|
1754
1845
|
/**
|
|
@@ -1843,6 +1934,22 @@ declare namespace LocalJSX {
|
|
|
1843
1934
|
*/
|
|
1844
1935
|
"safeSpace"?: 'triangle' | 'trapezoid';
|
|
1845
1936
|
}
|
|
1937
|
+
interface PostProgressbar {
|
|
1938
|
+
/**
|
|
1939
|
+
* Describes how much work the task indicated by the progress element requires. Must be a valid floating point number greater than min.
|
|
1940
|
+
* @default 100
|
|
1941
|
+
*/
|
|
1942
|
+
"max"?: number;
|
|
1943
|
+
/**
|
|
1944
|
+
* The minimum value of the progress bar. Must be a valid floating point number less than max.
|
|
1945
|
+
* @default 0
|
|
1946
|
+
*/
|
|
1947
|
+
"min"?: number;
|
|
1948
|
+
/**
|
|
1949
|
+
* Specifies how much of the task has been completed. Must be a valid floating point number between min and max. If there is no value attribute, the progress bar is indeterminate; this indicates that an activity is ongoing with no indication of how long it is expected to take.
|
|
1950
|
+
*/
|
|
1951
|
+
"value"?: number;
|
|
1952
|
+
}
|
|
1846
1953
|
interface PostRating {
|
|
1847
1954
|
/**
|
|
1848
1955
|
* Defines the rating that the component should show.
|
|
@@ -1872,6 +1979,19 @@ declare namespace LocalJSX {
|
|
|
1872
1979
|
*/
|
|
1873
1980
|
"stars"?: number;
|
|
1874
1981
|
}
|
|
1982
|
+
interface PostSideNavigation {
|
|
1983
|
+
/**
|
|
1984
|
+
* An event emitted when the navigation is shown or hidden on mobile. The payload is a boolean: `true` when the navigation opens, `false` when it closes.
|
|
1985
|
+
*/
|
|
1986
|
+
"onPostToggle"?: (event: PostSideNavigationCustomEvent<boolean>) => void;
|
|
1987
|
+
/**
|
|
1988
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
1989
|
+
*/
|
|
1990
|
+
"textClose": string;
|
|
1991
|
+
}
|
|
1992
|
+
interface PostSideNavigationTrigger {
|
|
1993
|
+
"for": string;
|
|
1994
|
+
}
|
|
1875
1995
|
interface PostStepper {
|
|
1876
1996
|
/**
|
|
1877
1997
|
* Defines the current step, which is the next step the user has to complete.
|
|
@@ -2118,12 +2238,23 @@ declare namespace LocalJSX {
|
|
|
2118
2238
|
"arrow": boolean;
|
|
2119
2239
|
"safeSpace": 'triangle' | 'trapezoid';
|
|
2120
2240
|
}
|
|
2241
|
+
interface PostProgressbarAttributes {
|
|
2242
|
+
"min": number;
|
|
2243
|
+
"max": number;
|
|
2244
|
+
"value": number;
|
|
2245
|
+
}
|
|
2121
2246
|
interface PostRatingAttributes {
|
|
2122
2247
|
"label": string;
|
|
2123
2248
|
"stars": number;
|
|
2124
2249
|
"currentRating": number;
|
|
2125
2250
|
"readonly": boolean;
|
|
2126
2251
|
}
|
|
2252
|
+
interface PostSideNavigationAttributes {
|
|
2253
|
+
"textClose": string;
|
|
2254
|
+
}
|
|
2255
|
+
interface PostSideNavigationTriggerAttributes {
|
|
2256
|
+
"for": string;
|
|
2257
|
+
}
|
|
2127
2258
|
interface PostStepperAttributes {
|
|
2128
2259
|
"textCurrentStep": string;
|
|
2129
2260
|
"textCompletedStep": string;
|
|
@@ -2166,7 +2297,7 @@ declare namespace LocalJSX {
|
|
|
2166
2297
|
"post-breadcrumbs": Omit<PostBreadcrumbs, keyof PostBreadcrumbsAttributes> & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes]?: PostBreadcrumbs[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `attr:${K}`]?: PostBreadcrumbsAttributes[K] } & { [K in keyof PostBreadcrumbs & keyof PostBreadcrumbsAttributes as `prop:${K}`]?: PostBreadcrumbs[K] } & OneOf<"homeUrl", PostBreadcrumbs["homeUrl"], PostBreadcrumbsAttributes["homeUrl"]> & OneOf<"textHome", PostBreadcrumbs["textHome"], PostBreadcrumbsAttributes["textHome"]> & OneOf<"textBreadcrumbs", PostBreadcrumbs["textBreadcrumbs"], PostBreadcrumbsAttributes["textBreadcrumbs"]> & OneOf<"textMoreItems", PostBreadcrumbs["textMoreItems"], PostBreadcrumbsAttributes["textMoreItems"]>;
|
|
2167
2298
|
"post-closebutton": Omit<PostClosebutton, keyof PostClosebuttonAttributes> & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes]?: PostClosebutton[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `attr:${K}`]?: PostClosebuttonAttributes[K] } & { [K in keyof PostClosebutton & keyof PostClosebuttonAttributes as `prop:${K}`]?: PostClosebutton[K] };
|
|
2168
2299
|
"post-collapsible": Omit<PostCollapsible, keyof PostCollapsibleAttributes> & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes]?: PostCollapsible[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `attr:${K}`]?: PostCollapsibleAttributes[K] } & { [K in keyof PostCollapsible & keyof PostCollapsibleAttributes as `prop:${K}`]?: PostCollapsible[K] };
|
|
2169
|
-
"post-collapsible-trigger": Omit<PostCollapsibleTrigger, keyof PostCollapsibleTriggerAttributes> & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes]?: PostCollapsibleTrigger[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `attr:${K}`]?: PostCollapsibleTriggerAttributes[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `prop:${K}`]?: PostCollapsibleTrigger[K] }
|
|
2300
|
+
"post-collapsible-trigger": Omit<PostCollapsibleTrigger, keyof PostCollapsibleTriggerAttributes> & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes]?: PostCollapsibleTrigger[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `attr:${K}`]?: PostCollapsibleTriggerAttributes[K] } & { [K in keyof PostCollapsibleTrigger & keyof PostCollapsibleTriggerAttributes as `prop:${K}`]?: PostCollapsibleTrigger[K] };
|
|
2170
2301
|
"post-date-picker": Omit<PostDatePicker, keyof PostDatePickerAttributes> & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes]?: PostDatePicker[K] } & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes as `attr:${K}`]?: PostDatePickerAttributes[K] } & { [K in keyof PostDatePicker & keyof PostDatePickerAttributes as `prop:${K}`]?: PostDatePicker[K] } & OneOf<"textNextMonth", PostDatePicker["textNextMonth"], PostDatePickerAttributes["textNextMonth"]> & OneOf<"textNextYear", PostDatePicker["textNextYear"], PostDatePickerAttributes["textNextYear"]> & OneOf<"textNextDecade", PostDatePicker["textNextDecade"], PostDatePickerAttributes["textNextDecade"]> & OneOf<"textPreviousMonth", PostDatePicker["textPreviousMonth"], PostDatePickerAttributes["textPreviousMonth"]> & OneOf<"textPreviousYear", PostDatePicker["textPreviousYear"], PostDatePickerAttributes["textPreviousYear"]> & OneOf<"textPreviousDecade", PostDatePicker["textPreviousDecade"], PostDatePickerAttributes["textPreviousDecade"]> & OneOf<"textSwitchYear", PostDatePicker["textSwitchYear"], PostDatePickerAttributes["textSwitchYear"]>;
|
|
2171
2302
|
"post-footer": Omit<PostFooter, keyof PostFooterAttributes> & { [K in keyof PostFooter & keyof PostFooterAttributes]?: PostFooter[K] } & { [K in keyof PostFooter & keyof PostFooterAttributes as `attr:${K}`]?: PostFooterAttributes[K] } & { [K in keyof PostFooter & keyof PostFooterAttributes as `prop:${K}`]?: PostFooter[K] } & OneOf<"textFooter", PostFooter["textFooter"], PostFooterAttributes["textFooter"]>;
|
|
2172
2303
|
"post-header": Omit<PostHeader, keyof PostHeaderAttributes> & { [K in keyof PostHeader & keyof PostHeaderAttributes]?: PostHeader[K] } & { [K in keyof PostHeader & keyof PostHeaderAttributes as `attr:${K}`]?: PostHeaderAttributes[K] } & { [K in keyof PostHeader & keyof PostHeaderAttributes as `prop:${K}`]?: PostHeader[K] } & OneOf<"textMenu", PostHeader["textMenu"], PostHeaderAttributes["textMenu"]>;
|
|
@@ -2189,7 +2320,10 @@ declare namespace LocalJSX {
|
|
|
2189
2320
|
"post-popover": Omit<PostPopover, keyof PostPopoverAttributes> & { [K in keyof PostPopover & keyof PostPopoverAttributes]?: PostPopover[K] } & { [K in keyof PostPopover & keyof PostPopoverAttributes as `attr:${K}`]?: PostPopoverAttributes[K] } & { [K in keyof PostPopover & keyof PostPopoverAttributes as `prop:${K}`]?: PostPopover[K] } & OneOf<"textClose", PostPopover["textClose"], PostPopoverAttributes["textClose"]>;
|
|
2190
2321
|
"post-popover-trigger": Omit<PostPopoverTrigger, keyof PostPopoverTriggerAttributes> & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes]?: PostPopoverTrigger[K] } & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes as `attr:${K}`]?: PostPopoverTriggerAttributes[K] } & { [K in keyof PostPopoverTrigger & keyof PostPopoverTriggerAttributes as `prop:${K}`]?: PostPopoverTrigger[K] };
|
|
2191
2322
|
"post-popovercontainer": Omit<PostPopovercontainer, keyof PostPopovercontainerAttributes> & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes]?: PostPopovercontainer[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `attr:${K}`]?: PostPopovercontainerAttributes[K] } & { [K in keyof PostPopovercontainer & keyof PostPopovercontainerAttributes as `prop:${K}`]?: PostPopovercontainer[K] };
|
|
2323
|
+
"post-progressbar": Omit<PostProgressbar, keyof PostProgressbarAttributes> & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes]?: PostProgressbar[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `attr:${K}`]?: PostProgressbarAttributes[K] } & { [K in keyof PostProgressbar & keyof PostProgressbarAttributes as `prop:${K}`]?: PostProgressbar[K] };
|
|
2192
2324
|
"post-rating": Omit<PostRating, keyof PostRatingAttributes> & { [K in keyof PostRating & keyof PostRatingAttributes]?: PostRating[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `attr:${K}`]?: PostRatingAttributes[K] } & { [K in keyof PostRating & keyof PostRatingAttributes as `prop:${K}`]?: PostRating[K] } & OneOf<"label", PostRating["label"], PostRatingAttributes["label"]>;
|
|
2325
|
+
"post-side-navigation": Omit<PostSideNavigation, keyof PostSideNavigationAttributes> & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes]?: PostSideNavigation[K] } & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes as `attr:${K}`]?: PostSideNavigationAttributes[K] } & { [K in keyof PostSideNavigation & keyof PostSideNavigationAttributes as `prop:${K}`]?: PostSideNavigation[K] } & OneOf<"textClose", PostSideNavigation["textClose"], PostSideNavigationAttributes["textClose"]>;
|
|
2326
|
+
"post-side-navigation-trigger": Omit<PostSideNavigationTrigger, keyof PostSideNavigationTriggerAttributes> & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes]?: PostSideNavigationTrigger[K] } & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes as `attr:${K}`]?: PostSideNavigationTriggerAttributes[K] } & { [K in keyof PostSideNavigationTrigger & keyof PostSideNavigationTriggerAttributes as `prop:${K}`]?: PostSideNavigationTrigger[K] } & OneOf<"for", PostSideNavigationTrigger["for"], PostSideNavigationTriggerAttributes["for"]>;
|
|
2193
2327
|
"post-stepper": Omit<PostStepper, keyof PostStepperAttributes> & { [K in keyof PostStepper & keyof PostStepperAttributes]?: PostStepper[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `attr:${K}`]?: PostStepperAttributes[K] } & { [K in keyof PostStepper & keyof PostStepperAttributes as `prop:${K}`]?: PostStepper[K] } & OneOf<"textCurrentStep", PostStepper["textCurrentStep"], PostStepperAttributes["textCurrentStep"]> & OneOf<"textCompletedStep", PostStepper["textCompletedStep"], PostStepperAttributes["textCompletedStep"]> & OneOf<"textStepNumber", PostStepper["textStepNumber"], PostStepperAttributes["textStepNumber"]>;
|
|
2194
2328
|
"post-stepper-item": PostStepperItem;
|
|
2195
2329
|
"post-tab-item": Omit<PostTabItem, keyof PostTabItemAttributes> & { [K in keyof PostTabItem & keyof PostTabItemAttributes]?: PostTabItem[K] } & { [K in keyof PostTabItem & keyof PostTabItemAttributes as `attr:${K}`]?: PostTabItemAttributes[K] } & { [K in keyof PostTabItem & keyof PostTabItemAttributes as `prop:${K}`]?: PostTabItem[K] } & OneOf<"name", PostTabItem["name"], PostTabItemAttributes["name"]>;
|
|
@@ -2240,7 +2374,10 @@ declare module "@stencil/core" {
|
|
|
2240
2374
|
"post-popover": LocalJSX.IntrinsicElements["post-popover"] & JSXBase.HTMLAttributes<HTMLPostPopoverElement>;
|
|
2241
2375
|
"post-popover-trigger": LocalJSX.IntrinsicElements["post-popover-trigger"] & JSXBase.HTMLAttributes<HTMLPostPopoverTriggerElement>;
|
|
2242
2376
|
"post-popovercontainer": LocalJSX.IntrinsicElements["post-popovercontainer"] & JSXBase.HTMLAttributes<HTMLPostPopovercontainerElement>;
|
|
2377
|
+
"post-progressbar": LocalJSX.IntrinsicElements["post-progressbar"] & JSXBase.HTMLAttributes<HTMLPostProgressbarElement>;
|
|
2243
2378
|
"post-rating": LocalJSX.IntrinsicElements["post-rating"] & JSXBase.HTMLAttributes<HTMLPostRatingElement>;
|
|
2379
|
+
"post-side-navigation": LocalJSX.IntrinsicElements["post-side-navigation"] & JSXBase.HTMLAttributes<HTMLPostSideNavigationElement>;
|
|
2380
|
+
"post-side-navigation-trigger": LocalJSX.IntrinsicElements["post-side-navigation-trigger"] & JSXBase.HTMLAttributes<HTMLPostSideNavigationTriggerElement>;
|
|
2244
2381
|
"post-stepper": LocalJSX.IntrinsicElements["post-stepper"] & JSXBase.HTMLAttributes<HTMLPostStepperElement>;
|
|
2245
2382
|
"post-stepper-item": LocalJSX.IntrinsicElements["post-stepper-item"] & JSXBase.HTMLAttributes<HTMLPostStepperItemElement>;
|
|
2246
2383
|
"post-tab-item": LocalJSX.IntrinsicElements["post-tab-item"] & JSXBase.HTMLAttributes<HTMLPostTabItemElement>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type HeaderSlot = 'post-logo' | 'language-menu' | 'title' | 'audience' | 'global-nav-primary' | 'global-nav-secondary' | 'main-nav' | 'local-nav' | 'post-login';
|
|
2
2
|
export interface VariantConfig {
|
|
3
3
|
slots: HeaderSlot[];
|
|
4
|
+
stylesheet?: string;
|
|
4
5
|
hasGlobalHeader: boolean;
|
|
5
6
|
hasUserMenu: boolean;
|
|
6
7
|
hasMegadropdown: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from './property-checkers';
|
|
2
1
|
export * from './property-decorators';
|
|
3
2
|
export * from './attribute-observer';
|
|
4
3
|
export * from './breakpoints';
|
|
@@ -8,11 +7,11 @@ export * from './event-from';
|
|
|
8
7
|
export * from './get-focusable-children';
|
|
9
8
|
export * from './get-root';
|
|
10
9
|
export * from './get-slotted-element';
|
|
10
|
+
export * from './is-iso-date';
|
|
11
11
|
export * from './is-motion-reduced';
|
|
12
12
|
export * from './is-value-empty';
|
|
13
|
+
export * from './locales';
|
|
14
|
+
export * from './nanoid';
|
|
13
15
|
export * from './repeat-on-long-press';
|
|
14
16
|
export * from './sass-export';
|
|
15
17
|
export * from './timeout';
|
|
16
|
-
export * from './is-iso-date';
|
|
17
|
-
export * from './locales';
|
|
18
|
-
export * from './nanoid';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for the GreaterThan decorator validation.
|
|
3
|
+
*
|
|
4
|
+
* @property includeMin - Whether the minimum value is inclusive (default: false for exclusive behavior).
|
|
5
|
+
*/
|
|
6
|
+
export type GreaterThanOptions = {
|
|
7
|
+
includeMin?: boolean;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Property decorator that validates the property value is greater than the specified minimum.
|
|
11
|
+
*
|
|
12
|
+
* Validation runs on `componentDidLoad` and whenever the property value changes.
|
|
13
|
+
*
|
|
14
|
+
* @typeParam T - Component type used to constrain property-name bounds.
|
|
15
|
+
* @param minimum - The minimum allowed value (exclusive by default) or property name to read it from.
|
|
16
|
+
* @param options - Configuration object with `includeMin` flag (default: false for exclusive behavior).
|
|
17
|
+
*/
|
|
18
|
+
export declare function GreaterThan<T extends object>(minimum: number | Extract<keyof T, string>, options?: GreaterThanOptions): (target: T, property: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Options for the LessThan decorator validation.
|
|
21
|
+
*
|
|
22
|
+
* @property includeMax - Whether the maximum value is inclusive (default: true).
|
|
23
|
+
*/
|
|
24
|
+
export type LessThanOptions = {
|
|
25
|
+
includeMax?: boolean;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Property decorator that validates the property value is less than the specified maximum.
|
|
29
|
+
*
|
|
30
|
+
* Validation runs on `componentDidLoad` and whenever the property value changes.
|
|
31
|
+
*
|
|
32
|
+
* @typeParam T - Component type used to constrain property-name bounds.
|
|
33
|
+
* @param maximum - The maximum allowed value (inclusive by default) or property name to read it from.
|
|
34
|
+
* @param options - Configuration object with `includeMax` flag (default: true for inclusive behavior).
|
|
35
|
+
*/
|
|
36
|
+
export declare function LessThan<T extends object>(maximum: number | Extract<keyof T, string>, options?: LessThanOptions): (target: T, property: string) => void;
|
|
@@ -12,6 +12,11 @@ interface Validator {
|
|
|
12
12
|
/** Executes the validation logic for the given component property. */
|
|
13
13
|
run: (component: object, property: string) => boolean;
|
|
14
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* Registers that `dependentProp` should be re-validated when `dependencyProp` changes.
|
|
17
|
+
* Ensures the dependency property has an accessor so its setter can trigger dependents.
|
|
18
|
+
*/
|
|
19
|
+
export declare function registerDependency(target: object, dependencyProp: string, dependentProp: string): void;
|
|
15
20
|
/**
|
|
16
21
|
* Creates a property decorator that registers a validator for a component property.
|
|
17
22
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ArrayOf } from './array-of';
|
|
2
|
-
export {
|
|
2
|
+
export { GreaterThan, LessThan } from './bound';
|
|
3
3
|
export { DateValue } from './date';
|
|
4
4
|
export { IsoDate } from './iso-date';
|
|
5
5
|
export { OneOf } from './one-of';
|
|
@@ -1,8 +1,17 @@
|
|
|
1
|
+
interface RequiredDecoratorOptions<T extends object> {
|
|
2
|
+
when: Extract<keyof T, string>;
|
|
3
|
+
truthy?: boolean;
|
|
4
|
+
}
|
|
1
5
|
/**
|
|
2
6
|
* Property decorator that validates the property is not empty.
|
|
3
7
|
* If the property is empty (undefined, null, '', NaN), an error is logged.
|
|
4
8
|
* This validator is blocking: if it fails, subsequent validators will not run.
|
|
5
9
|
*
|
|
6
10
|
* Validation runs on `componentDidLoad` and whenever the property value changes.
|
|
11
|
+
*
|
|
12
|
+
* @param options - Optional configuration.
|
|
13
|
+
* @param options.when - The property name to watch. Validation only runs when this property's value matches the `truthy` option.
|
|
14
|
+
* @param options.truthy - The value that the `when` property must match for validation to run. Defaults to `true`.
|
|
7
15
|
*/
|
|
8
|
-
export declare function Required(): (target:
|
|
16
|
+
export declare function Required<T extends object>(options?: RequiredDecoratorOptions<T>): (target: T, property: string) => void;
|
|
17
|
+
export {};
|
|
@@ -27,7 +27,7 @@ export const STATE_HANDLERS = {
|
|
|
27
27
|
await openBurgerMenu(page);
|
|
28
28
|
await openMegadropdown(page, 'letters');
|
|
29
29
|
},
|
|
30
|
-
scrolled: async (page) => {
|
|
30
|
+
'scrolled': async (page) => {
|
|
31
31
|
await page.evaluate(() => window.scrollTo(0, 200));
|
|
32
32
|
await page.waitForTimeout(300);
|
|
33
33
|
},
|
|
@@ -112,5 +112,6 @@ export const TEST_MATRIX = {
|
|
|
112
112
|
'microsite-loggedin': stateComposeHelper(LOGGED_IN),
|
|
113
113
|
'jobs-loggedout': stateComposeHelper(SCROLLED_ONLY, BURGER_FLOW_NO_SECOND),
|
|
114
114
|
'jobs-loggedin': stateComposeHelper(LOGGED_IN),
|
|
115
|
-
onepager: stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
115
|
+
'onepager': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
|
+
'application': stateComposeHelper(SCROLLED_ONLY, LANGUAGE_AND_SCROLL),
|
|
116
117
|
};
|