@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
package/dist/docs.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-06-
|
|
2
|
+
"timestamp": "2026-06-24T14:41:06",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.43.3",
|
|
@@ -1209,7 +1209,7 @@
|
|
|
1209
1209
|
},
|
|
1210
1210
|
{
|
|
1211
1211
|
"filePath": "src/components/post-closebutton/post-closebutton.tsx",
|
|
1212
|
-
"encapsulation": "
|
|
1212
|
+
"encapsulation": "shadow",
|
|
1213
1213
|
"tag": "post-closebutton",
|
|
1214
1214
|
"readme": "# post-closebutton\n",
|
|
1215
1215
|
"docs": "",
|
|
@@ -1223,10 +1223,10 @@
|
|
|
1223
1223
|
"props": [
|
|
1224
1224
|
{
|
|
1225
1225
|
"name": "buttonType",
|
|
1226
|
-
"type": "\"button\" | \"reset\"
|
|
1226
|
+
"type": "\"button\" | \"reset\"",
|
|
1227
1227
|
"complexType": {
|
|
1228
1228
|
"original": "ButtonType",
|
|
1229
|
-
"resolved": "\"button\" | \"reset\"
|
|
1229
|
+
"resolved": "\"button\" | \"reset\"",
|
|
1230
1230
|
"references": {
|
|
1231
1231
|
"ButtonType": {
|
|
1232
1232
|
"location": "import",
|
|
@@ -1255,10 +1255,6 @@
|
|
|
1255
1255
|
{
|
|
1256
1256
|
"value": "reset",
|
|
1257
1257
|
"type": "string"
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
"value": "submit",
|
|
1261
|
-
"type": "string"
|
|
1262
1258
|
}
|
|
1263
1259
|
],
|
|
1264
1260
|
"optional": true,
|
|
@@ -1363,7 +1359,8 @@
|
|
|
1363
1359
|
"states": [],
|
|
1364
1360
|
"dependents": [
|
|
1365
1361
|
"post-megadropdown",
|
|
1366
|
-
"post-popover"
|
|
1362
|
+
"post-popover",
|
|
1363
|
+
"post-side-navigation"
|
|
1367
1364
|
],
|
|
1368
1365
|
"dependencies": [
|
|
1369
1366
|
"post-icon"
|
|
@@ -1377,6 +1374,9 @@
|
|
|
1377
1374
|
],
|
|
1378
1375
|
"post-popover": [
|
|
1379
1376
|
"post-closebutton"
|
|
1377
|
+
],
|
|
1378
|
+
"post-side-navigation": [
|
|
1379
|
+
"post-closebutton"
|
|
1380
1380
|
]
|
|
1381
1381
|
}
|
|
1382
1382
|
},
|
|
@@ -1516,15 +1516,15 @@
|
|
|
1516
1516
|
"mutable": false,
|
|
1517
1517
|
"attr": "for",
|
|
1518
1518
|
"reflectToAttr": true,
|
|
1519
|
-
"docs": "Link the trigger to a post-collapsible
|
|
1519
|
+
"docs": "Link the trigger to a post-collapsible by its ID.\nIf omitted, a post-collapsible nested directly inside this element is used instead.",
|
|
1520
1520
|
"docsTags": [],
|
|
1521
1521
|
"values": [
|
|
1522
1522
|
{
|
|
1523
1523
|
"type": "string"
|
|
1524
1524
|
}
|
|
1525
1525
|
],
|
|
1526
|
-
"optional":
|
|
1527
|
-
"required":
|
|
1526
|
+
"optional": true,
|
|
1527
|
+
"required": false,
|
|
1528
1528
|
"getter": false,
|
|
1529
1529
|
"setter": false
|
|
1530
1530
|
}
|
|
@@ -4447,7 +4447,13 @@
|
|
|
4447
4447
|
"attr": "page",
|
|
4448
4448
|
"reflectToAttr": false,
|
|
4449
4449
|
"docs": "The current active page number.\n\n**If not specified, defaults to the first page.**",
|
|
4450
|
-
"docsTags": [
|
|
4450
|
+
"docsTags": [
|
|
4451
|
+
{
|
|
4452
|
+
"name": "default",
|
|
4453
|
+
"text": "1"
|
|
4454
|
+
}
|
|
4455
|
+
],
|
|
4456
|
+
"default": "1",
|
|
4451
4457
|
"values": [
|
|
4452
4458
|
{
|
|
4453
4459
|
"type": "number"
|
|
@@ -5417,6 +5423,108 @@
|
|
|
5417
5423
|
]
|
|
5418
5424
|
}
|
|
5419
5425
|
},
|
|
5426
|
+
{
|
|
5427
|
+
"filePath": "src/components/post-progressbar/post-progressbar.tsx",
|
|
5428
|
+
"encapsulation": "shadow",
|
|
5429
|
+
"tag": "post-progressbar",
|
|
5430
|
+
"readme": "# post-progressbar\n\n\n",
|
|
5431
|
+
"docs": "",
|
|
5432
|
+
"docsTags": [],
|
|
5433
|
+
"usage": {},
|
|
5434
|
+
"props": [
|
|
5435
|
+
{
|
|
5436
|
+
"name": "max",
|
|
5437
|
+
"type": "number",
|
|
5438
|
+
"complexType": {
|
|
5439
|
+
"original": "number",
|
|
5440
|
+
"resolved": "number",
|
|
5441
|
+
"references": {}
|
|
5442
|
+
},
|
|
5443
|
+
"mutable": false,
|
|
5444
|
+
"attr": "max",
|
|
5445
|
+
"reflectToAttr": false,
|
|
5446
|
+
"docs": "Describes how much work the task indicated by the progress element requires.\nMust be a valid floating point number greater than min.",
|
|
5447
|
+
"docsTags": [
|
|
5448
|
+
{
|
|
5449
|
+
"name": "default",
|
|
5450
|
+
"text": "100"
|
|
5451
|
+
}
|
|
5452
|
+
],
|
|
5453
|
+
"default": "100",
|
|
5454
|
+
"values": [
|
|
5455
|
+
{
|
|
5456
|
+
"type": "number"
|
|
5457
|
+
}
|
|
5458
|
+
],
|
|
5459
|
+
"optional": false,
|
|
5460
|
+
"required": false,
|
|
5461
|
+
"getter": false,
|
|
5462
|
+
"setter": false
|
|
5463
|
+
},
|
|
5464
|
+
{
|
|
5465
|
+
"name": "min",
|
|
5466
|
+
"type": "number",
|
|
5467
|
+
"complexType": {
|
|
5468
|
+
"original": "number",
|
|
5469
|
+
"resolved": "number",
|
|
5470
|
+
"references": {}
|
|
5471
|
+
},
|
|
5472
|
+
"mutable": false,
|
|
5473
|
+
"attr": "min",
|
|
5474
|
+
"reflectToAttr": false,
|
|
5475
|
+
"docs": "The minimum value of the progress bar.\nMust be a valid floating point number less than max.",
|
|
5476
|
+
"docsTags": [
|
|
5477
|
+
{
|
|
5478
|
+
"name": "default",
|
|
5479
|
+
"text": "0"
|
|
5480
|
+
}
|
|
5481
|
+
],
|
|
5482
|
+
"default": "0",
|
|
5483
|
+
"values": [
|
|
5484
|
+
{
|
|
5485
|
+
"type": "number"
|
|
5486
|
+
}
|
|
5487
|
+
],
|
|
5488
|
+
"optional": false,
|
|
5489
|
+
"required": false,
|
|
5490
|
+
"getter": false,
|
|
5491
|
+
"setter": false
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
"name": "value",
|
|
5495
|
+
"type": "number",
|
|
5496
|
+
"complexType": {
|
|
5497
|
+
"original": "number",
|
|
5498
|
+
"resolved": "number",
|
|
5499
|
+
"references": {}
|
|
5500
|
+
},
|
|
5501
|
+
"mutable": false,
|
|
5502
|
+
"attr": "value",
|
|
5503
|
+
"reflectToAttr": false,
|
|
5504
|
+
"docs": "Specifies how much of the task has been completed.\nMust be a valid floating point number between min and max.\nIf 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.",
|
|
5505
|
+
"docsTags": [],
|
|
5506
|
+
"values": [
|
|
5507
|
+
{
|
|
5508
|
+
"type": "number"
|
|
5509
|
+
}
|
|
5510
|
+
],
|
|
5511
|
+
"optional": true,
|
|
5512
|
+
"required": false,
|
|
5513
|
+
"getter": false,
|
|
5514
|
+
"setter": false
|
|
5515
|
+
}
|
|
5516
|
+
],
|
|
5517
|
+
"methods": [],
|
|
5518
|
+
"events": [],
|
|
5519
|
+
"listeners": [],
|
|
5520
|
+
"styles": [],
|
|
5521
|
+
"slots": [],
|
|
5522
|
+
"parts": [],
|
|
5523
|
+
"states": [],
|
|
5524
|
+
"dependents": [],
|
|
5525
|
+
"dependencies": [],
|
|
5526
|
+
"dependencyGraph": {}
|
|
5527
|
+
},
|
|
5420
5528
|
{
|
|
5421
5529
|
"filePath": "src/components/post-rating/post-rating.tsx",
|
|
5422
5530
|
"encapsulation": "shadow",
|
|
@@ -5583,6 +5691,228 @@
|
|
|
5583
5691
|
]
|
|
5584
5692
|
}
|
|
5585
5693
|
},
|
|
5694
|
+
{
|
|
5695
|
+
"filePath": "src/components/post-side-navigation/post-side-navigation.tsx",
|
|
5696
|
+
"encapsulation": "shadow",
|
|
5697
|
+
"tag": "post-side-navigation",
|
|
5698
|
+
"readme": "# post-side-navigation\n",
|
|
5699
|
+
"docs": "",
|
|
5700
|
+
"docsTags": [
|
|
5701
|
+
{
|
|
5702
|
+
"name": "slot",
|
|
5703
|
+
"text": "default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)"
|
|
5704
|
+
}
|
|
5705
|
+
],
|
|
5706
|
+
"usage": {},
|
|
5707
|
+
"props": [
|
|
5708
|
+
{
|
|
5709
|
+
"name": "textClose",
|
|
5710
|
+
"type": "string",
|
|
5711
|
+
"complexType": {
|
|
5712
|
+
"original": "string",
|
|
5713
|
+
"resolved": "string",
|
|
5714
|
+
"references": {}
|
|
5715
|
+
},
|
|
5716
|
+
"mutable": false,
|
|
5717
|
+
"attr": "text-close",
|
|
5718
|
+
"reflectToAttr": true,
|
|
5719
|
+
"docs": "Accessible label for the close button shown in the mobile navigation dialog.",
|
|
5720
|
+
"docsTags": [],
|
|
5721
|
+
"values": [
|
|
5722
|
+
{
|
|
5723
|
+
"type": "string"
|
|
5724
|
+
}
|
|
5725
|
+
],
|
|
5726
|
+
"optional": false,
|
|
5727
|
+
"required": true,
|
|
5728
|
+
"getter": false,
|
|
5729
|
+
"setter": false
|
|
5730
|
+
}
|
|
5731
|
+
],
|
|
5732
|
+
"methods": [
|
|
5733
|
+
{
|
|
5734
|
+
"name": "hide",
|
|
5735
|
+
"returns": {
|
|
5736
|
+
"type": "Promise<void>",
|
|
5737
|
+
"docs": ""
|
|
5738
|
+
},
|
|
5739
|
+
"complexType": {
|
|
5740
|
+
"signature": "() => Promise<void>",
|
|
5741
|
+
"parameters": [],
|
|
5742
|
+
"references": {
|
|
5743
|
+
"Promise": {
|
|
5744
|
+
"location": "global",
|
|
5745
|
+
"id": "global::Promise"
|
|
5746
|
+
}
|
|
5747
|
+
},
|
|
5748
|
+
"return": "Promise<void>"
|
|
5749
|
+
},
|
|
5750
|
+
"signature": "hide() => Promise<void>",
|
|
5751
|
+
"parameters": [],
|
|
5752
|
+
"docs": "Closes the navigation programmatically.\nNo-op on desktop.",
|
|
5753
|
+
"docsTags": []
|
|
5754
|
+
},
|
|
5755
|
+
{
|
|
5756
|
+
"name": "show",
|
|
5757
|
+
"returns": {
|
|
5758
|
+
"type": "Promise<void>",
|
|
5759
|
+
"docs": ""
|
|
5760
|
+
},
|
|
5761
|
+
"complexType": {
|
|
5762
|
+
"signature": "() => Promise<void>",
|
|
5763
|
+
"parameters": [],
|
|
5764
|
+
"references": {
|
|
5765
|
+
"Promise": {
|
|
5766
|
+
"location": "global",
|
|
5767
|
+
"id": "global::Promise"
|
|
5768
|
+
}
|
|
5769
|
+
},
|
|
5770
|
+
"return": "Promise<void>"
|
|
5771
|
+
},
|
|
5772
|
+
"signature": "show() => Promise<void>",
|
|
5773
|
+
"parameters": [],
|
|
5774
|
+
"docs": "Opens the navigation programmatically.\nNo-op on desktop.",
|
|
5775
|
+
"docsTags": []
|
|
5776
|
+
},
|
|
5777
|
+
{
|
|
5778
|
+
"name": "toggle",
|
|
5779
|
+
"returns": {
|
|
5780
|
+
"type": "Promise<void>",
|
|
5781
|
+
"docs": ""
|
|
5782
|
+
},
|
|
5783
|
+
"complexType": {
|
|
5784
|
+
"signature": "() => Promise<void>",
|
|
5785
|
+
"parameters": [],
|
|
5786
|
+
"references": {
|
|
5787
|
+
"Promise": {
|
|
5788
|
+
"location": "global",
|
|
5789
|
+
"id": "global::Promise"
|
|
5790
|
+
}
|
|
5791
|
+
},
|
|
5792
|
+
"return": "Promise<void>"
|
|
5793
|
+
},
|
|
5794
|
+
"signature": "toggle() => Promise<void>",
|
|
5795
|
+
"parameters": [],
|
|
5796
|
+
"docs": "Toggles the navigation programmatically.\nNo-op on desktop.",
|
|
5797
|
+
"docsTags": []
|
|
5798
|
+
}
|
|
5799
|
+
],
|
|
5800
|
+
"events": [
|
|
5801
|
+
{
|
|
5802
|
+
"event": "postToggle",
|
|
5803
|
+
"detail": "boolean",
|
|
5804
|
+
"bubbles": true,
|
|
5805
|
+
"complexType": {
|
|
5806
|
+
"original": "boolean",
|
|
5807
|
+
"resolved": "boolean",
|
|
5808
|
+
"references": {}
|
|
5809
|
+
},
|
|
5810
|
+
"cancelable": true,
|
|
5811
|
+
"composed": true,
|
|
5812
|
+
"docs": "An event emitted when the navigation is shown or hidden on mobile.\nThe payload is a boolean: `true` when the navigation opens, `false` when it closes.",
|
|
5813
|
+
"docsTags": []
|
|
5814
|
+
}
|
|
5815
|
+
],
|
|
5816
|
+
"listeners": [],
|
|
5817
|
+
"styles": [],
|
|
5818
|
+
"slots": [
|
|
5819
|
+
{
|
|
5820
|
+
"name": "default",
|
|
5821
|
+
"docs": "Slot for the navigation content (must be a `<nav>` landmark with proper heading)"
|
|
5822
|
+
}
|
|
5823
|
+
],
|
|
5824
|
+
"parts": [],
|
|
5825
|
+
"states": [],
|
|
5826
|
+
"dependents": [],
|
|
5827
|
+
"dependencies": [
|
|
5828
|
+
"post-closebutton"
|
|
5829
|
+
],
|
|
5830
|
+
"dependencyGraph": {
|
|
5831
|
+
"post-side-navigation": [
|
|
5832
|
+
"post-closebutton"
|
|
5833
|
+
],
|
|
5834
|
+
"post-closebutton": [
|
|
5835
|
+
"post-icon"
|
|
5836
|
+
]
|
|
5837
|
+
}
|
|
5838
|
+
},
|
|
5839
|
+
{
|
|
5840
|
+
"filePath": "src/components/post-side-navigation-trigger/post-side-navigation-trigger.tsx",
|
|
5841
|
+
"encapsulation": "shadow",
|
|
5842
|
+
"tag": "post-side-navigation-trigger",
|
|
5843
|
+
"readme": "# post-side-navigation-trigger\n",
|
|
5844
|
+
"docs": "",
|
|
5845
|
+
"docsTags": [
|
|
5846
|
+
{
|
|
5847
|
+
"name": "slot",
|
|
5848
|
+
"text": "default - Slot for the `<button>` that toggles the navigation."
|
|
5849
|
+
}
|
|
5850
|
+
],
|
|
5851
|
+
"usage": {},
|
|
5852
|
+
"props": [
|
|
5853
|
+
{
|
|
5854
|
+
"name": "for",
|
|
5855
|
+
"type": "string",
|
|
5856
|
+
"complexType": {
|
|
5857
|
+
"original": "string",
|
|
5858
|
+
"resolved": "string",
|
|
5859
|
+
"references": {}
|
|
5860
|
+
},
|
|
5861
|
+
"mutable": false,
|
|
5862
|
+
"attr": "for",
|
|
5863
|
+
"reflectToAttr": true,
|
|
5864
|
+
"docs": "",
|
|
5865
|
+
"docsTags": [],
|
|
5866
|
+
"values": [
|
|
5867
|
+
{
|
|
5868
|
+
"type": "string"
|
|
5869
|
+
}
|
|
5870
|
+
],
|
|
5871
|
+
"optional": false,
|
|
5872
|
+
"required": true,
|
|
5873
|
+
"getter": false,
|
|
5874
|
+
"setter": false
|
|
5875
|
+
}
|
|
5876
|
+
],
|
|
5877
|
+
"methods": [
|
|
5878
|
+
{
|
|
5879
|
+
"name": "update",
|
|
5880
|
+
"returns": {
|
|
5881
|
+
"type": "Promise<void>",
|
|
5882
|
+
"docs": ""
|
|
5883
|
+
},
|
|
5884
|
+
"complexType": {
|
|
5885
|
+
"signature": "() => Promise<void>",
|
|
5886
|
+
"parameters": [],
|
|
5887
|
+
"references": {
|
|
5888
|
+
"Promise": {
|
|
5889
|
+
"location": "global",
|
|
5890
|
+
"id": "global::Promise"
|
|
5891
|
+
}
|
|
5892
|
+
},
|
|
5893
|
+
"return": "Promise<void>"
|
|
5894
|
+
},
|
|
5895
|
+
"signature": "update() => Promise<void>",
|
|
5896
|
+
"parameters": [],
|
|
5897
|
+
"docs": "Manually update the trigger's ARIA attributes.",
|
|
5898
|
+
"docsTags": []
|
|
5899
|
+
}
|
|
5900
|
+
],
|
|
5901
|
+
"events": [],
|
|
5902
|
+
"listeners": [],
|
|
5903
|
+
"styles": [],
|
|
5904
|
+
"slots": [
|
|
5905
|
+
{
|
|
5906
|
+
"name": "default",
|
|
5907
|
+
"docs": "Slot for the `<button>` that toggles the navigation."
|
|
5908
|
+
}
|
|
5909
|
+
],
|
|
5910
|
+
"parts": [],
|
|
5911
|
+
"states": [],
|
|
5912
|
+
"dependents": [],
|
|
5913
|
+
"dependencies": [],
|
|
5914
|
+
"dependencyGraph": {}
|
|
5915
|
+
},
|
|
5586
5916
|
{
|
|
5587
5917
|
"filePath": "src/components/post-stepper/post-stepper.tsx",
|
|
5588
5918
|
"encapsulation": "shadow",
|
|
@@ -6499,7 +6829,7 @@
|
|
|
6499
6829
|
"path": "src/components/post-breadcrumb-item/variants.ts"
|
|
6500
6830
|
},
|
|
6501
6831
|
"src/components/post-closebutton/types.ts::ButtonType": {
|
|
6502
|
-
"declaration": "\"button\" | \"
|
|
6832
|
+
"declaration": "\"button\" | \"reset\"",
|
|
6503
6833
|
"docstring": "",
|
|
6504
6834
|
"path": "src/components/post-closebutton/types.ts"
|
|
6505
6835
|
},
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { a as getElement } from './index-BGeKgZqi.js';
|
|
2
|
+
|
|
3
|
+
const EMPTY_VALUES = [undefined, null, '', Number.NaN];
|
|
4
|
+
function isValueEmpty(value) {
|
|
5
|
+
return EMPTY_VALUES.some(v => Object.is(v, value));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/** Tracks prototypes whose `componentDidLoad` lifecycle has already been wrapped. */
|
|
9
|
+
const patchedTargets = new WeakSet();
|
|
10
|
+
/** Tracks component instances that already completed the first load cycle. */
|
|
11
|
+
const loadedInstances = new WeakSet();
|
|
12
|
+
/** Stores validators per component prototype and property name. */
|
|
13
|
+
const validatorsByTarget = new WeakMap();
|
|
14
|
+
/** Stores all properties that use a validator decorator for each component prototype. */
|
|
15
|
+
const decoratedPropertiesByTarget = new WeakMap();
|
|
16
|
+
/** Stores per-instance property values captured by dynamically created accessors. */
|
|
17
|
+
const propertyValuesByInstance = new WeakMap();
|
|
18
|
+
/** Stores dependency relationships per prototype: dependencyProp -> Set<dependentProp>. */
|
|
19
|
+
const dependenciesByTarget = new WeakMap();
|
|
20
|
+
/**
|
|
21
|
+
* Returns the value for a key in a {@link WeakMap} and lazily creates it when missing.
|
|
22
|
+
*
|
|
23
|
+
* @template K WeakMap key type.
|
|
24
|
+
* @template T WeakMap value type.
|
|
25
|
+
* @param map WeakMap used as storage.
|
|
26
|
+
* @param key Object key used to retrieve or initialize the value.
|
|
27
|
+
* @param factory Factory creating the value when no entry exists for the key.
|
|
28
|
+
* @returns Existing or newly created value associated with the key.
|
|
29
|
+
*/
|
|
30
|
+
function getOrCreate(map, key, factory) {
|
|
31
|
+
let value = map.get(key);
|
|
32
|
+
if (!value) {
|
|
33
|
+
value = factory();
|
|
34
|
+
map.set(key, value);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Returns the mutable validator list registered for a property on a component prototype.
|
|
40
|
+
*
|
|
41
|
+
* @param target Component prototype where decorators were applied.
|
|
42
|
+
* @param property Decorated property name.
|
|
43
|
+
* @returns Validator list for the property.
|
|
44
|
+
*/
|
|
45
|
+
function getValidators(target, property) {
|
|
46
|
+
const validatorsByProperty = getOrCreate(validatorsByTarget, target, () => new Map());
|
|
47
|
+
return getOrCreate(validatorsByProperty, property, () => []);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns all property names decorated with validator decorators for a prototype.
|
|
51
|
+
*
|
|
52
|
+
* @param target Component prototype where decorators were applied.
|
|
53
|
+
* @returns Set of decorated property names.
|
|
54
|
+
*/
|
|
55
|
+
function getDecoratedProperties(target) {
|
|
56
|
+
return getOrCreate(decoratedPropertiesByTarget, target, () => new Set());
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Returns the map containing tracked property values for a component instance.
|
|
60
|
+
*
|
|
61
|
+
* @param instance Component instance.
|
|
62
|
+
* @returns Map keyed by property name with last assigned values.
|
|
63
|
+
*/
|
|
64
|
+
function getValuesByProperty(instance) {
|
|
65
|
+
return getOrCreate(propertyValuesByInstance, instance, () => new Map());
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Registers that `dependentProp` should be re-validated when `dependencyProp` changes.
|
|
69
|
+
* Ensures the dependency property has an accessor so its setter can trigger dependents.
|
|
70
|
+
*/
|
|
71
|
+
function registerDependency(target, dependencyProp, dependentProp) {
|
|
72
|
+
// Ensure dependency has an accessor so its setter can run dependent validators
|
|
73
|
+
createPropertyAccessor(target, dependencyProp);
|
|
74
|
+
const depsByProp = getOrCreate(dependenciesByTarget, target, () => new Map());
|
|
75
|
+
const dependents = getOrCreate(depsByProp, dependencyProp, () => new Set());
|
|
76
|
+
dependents.add(dependentProp);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Defines an accessor for a decorated property that stores values per instance and
|
|
80
|
+
* triggers validation after the component first loads.
|
|
81
|
+
*
|
|
82
|
+
* Accessor creation is skipped when a getter already exists to avoid overriding
|
|
83
|
+
* component-defined accessors.
|
|
84
|
+
*
|
|
85
|
+
* @param target Component prototype receiving the accessor.
|
|
86
|
+
* @param property Decorated property name.
|
|
87
|
+
*/
|
|
88
|
+
function createPropertyAccessor(target, property) {
|
|
89
|
+
const descriptor = Object.getOwnPropertyDescriptor(target, property);
|
|
90
|
+
if (descriptor && descriptor.get)
|
|
91
|
+
return;
|
|
92
|
+
Object.defineProperty(target, property, {
|
|
93
|
+
get() {
|
|
94
|
+
return getValuesByProperty(this).get(property);
|
|
95
|
+
},
|
|
96
|
+
set(newValue) {
|
|
97
|
+
getValuesByProperty(this).set(property, newValue);
|
|
98
|
+
if (loadedInstances.has(this)) {
|
|
99
|
+
runValidators(this, property);
|
|
100
|
+
// Run validators for any properties that depend on this property.
|
|
101
|
+
const proto = Object.getPrototypeOf(this);
|
|
102
|
+
const depsByProp = dependenciesByTarget.get(proto);
|
|
103
|
+
if (depsByProp) {
|
|
104
|
+
const dependents = depsByProp.get(property);
|
|
105
|
+
if (dependents) {
|
|
106
|
+
for (const dependent of dependents) {
|
|
107
|
+
runValidators(this, dependent);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
enumerable: true,
|
|
114
|
+
configurable: true,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Wraps `componentDidLoad` once per prototype to execute validators on initial render.
|
|
119
|
+
*
|
|
120
|
+
* Existing `componentDidLoad` behavior is preserved and called after validation.
|
|
121
|
+
*
|
|
122
|
+
* @param target Component prototype to patch.
|
|
123
|
+
*/
|
|
124
|
+
function patchComponentDidLoad(target) {
|
|
125
|
+
if (patchedTargets.has(target))
|
|
126
|
+
return;
|
|
127
|
+
patchedTargets.add(target);
|
|
128
|
+
const original = 'componentDidLoad' in target && typeof target.componentDidLoad === 'function'
|
|
129
|
+
? target.componentDidLoad
|
|
130
|
+
: undefined;
|
|
131
|
+
Object.defineProperty(target, 'componentDidLoad', {
|
|
132
|
+
writable: true,
|
|
133
|
+
configurable: true,
|
|
134
|
+
value: function (...args) {
|
|
135
|
+
loadedInstances.add(this);
|
|
136
|
+
const decoratedProperties = getDecoratedProperties(Object.getPrototypeOf(this));
|
|
137
|
+
for (const property of decoratedProperties) {
|
|
138
|
+
runValidators(this, property);
|
|
139
|
+
}
|
|
140
|
+
if (original) {
|
|
141
|
+
return original.apply(this, args);
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Executes all validators for a property in ascending priority order.
|
|
148
|
+
*
|
|
149
|
+
* Validation is skipped for empty values unless a validator explicitly opts in via
|
|
150
|
+
* `validateEmptyValues`. Execution stops when a blocking validator fails.
|
|
151
|
+
*
|
|
152
|
+
* @param component Component instance.
|
|
153
|
+
* @param property Property name to validate.
|
|
154
|
+
*/
|
|
155
|
+
function runValidators(component, property) {
|
|
156
|
+
const prototype = Object.getPrototypeOf(component);
|
|
157
|
+
const validatorsByProperty = validatorsByTarget.get(prototype);
|
|
158
|
+
if (!validatorsByProperty)
|
|
159
|
+
return;
|
|
160
|
+
const validators = validatorsByProperty.get(property);
|
|
161
|
+
if (!validators || validators.length === 0)
|
|
162
|
+
return;
|
|
163
|
+
const sortedValidators = [...validators].sort((a, b) => a.priority - b.priority);
|
|
164
|
+
const value = component[property];
|
|
165
|
+
const valueIsEmpty = isValueEmpty(value);
|
|
166
|
+
for (const validator of sortedValidators) {
|
|
167
|
+
if (valueIsEmpty && !validator.validateEmptyValues) {
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
const passed = validator.run(component, property);
|
|
171
|
+
if (!passed && validator.blocking)
|
|
172
|
+
break;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Creates a property decorator that registers a validator for a component property.
|
|
177
|
+
*
|
|
178
|
+
* The returned decorator ensures property access is intercepted, initial-load
|
|
179
|
+
* validation is enabled, and the provided validator is stored for execution.
|
|
180
|
+
*
|
|
181
|
+
* @param validator Validator definition to register.
|
|
182
|
+
* @returns Property decorator compatible with TypeScript decorator syntax.
|
|
183
|
+
*/
|
|
184
|
+
function createValidatorDecorator(validator) {
|
|
185
|
+
return function (target, property) {
|
|
186
|
+
createPropertyAccessor(target, property);
|
|
187
|
+
patchComponentDidLoad(target);
|
|
188
|
+
getDecoratedProperties(target).add(property);
|
|
189
|
+
getValidators(target, property).push(validator);
|
|
190
|
+
};
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Builds a validation context for a decorated component property.
|
|
194
|
+
*
|
|
195
|
+
* The returned context includes:
|
|
196
|
+
* - `value`: current property value.
|
|
197
|
+
* - `showError(constraint)`: helper that logs a consistent error format and includes
|
|
198
|
+
* the host element for easier debugging in browser consoles.
|
|
199
|
+
*
|
|
200
|
+
* Message format: `[componentName] Property "property" <constraint>. Received: <value>.`
|
|
201
|
+
*
|
|
202
|
+
* @param component Component instance containing the validated property.
|
|
203
|
+
* @param property Property name being validated.
|
|
204
|
+
* @returns Validation context used by individual validator implementations.
|
|
205
|
+
*/
|
|
206
|
+
function getValidationContext(component, property) {
|
|
207
|
+
const host = getElement(component);
|
|
208
|
+
const componentName = host.localName;
|
|
209
|
+
const value = component[property];
|
|
210
|
+
return {
|
|
211
|
+
value,
|
|
212
|
+
showError(constraint) {
|
|
213
|
+
console.error(`[${componentName}] Property "${String(property)}" ${constraint}. Received: ${JSON.stringify(value)}.`, host);
|
|
214
|
+
},
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export { createValidatorDecorator as c, getValidationContext as g, isValueEmpty as i, registerDependency as r };
|