@swisspost/design-system-components 10.0.0-next.71 → 10.0.0-next.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/create-validator-decorator-Bnx17kwi.js +223 -0
- package/dist/cjs/{index-CCteMCnR.js → index-ngUOBQot.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/one-of-BHyX4vYq.js +27 -0
- package/dist/cjs/{package-CscM89A7.js → package-Bi-tiNRc.js} +1 -1
- package/dist/cjs/pattern-BgBx5zGQ.js +27 -0
- package/dist/cjs/post-accordion_2.cjs.entry.js +15 -21
- package/dist/cjs/post-autocomplete.cjs.entry.js +26 -13
- package/dist/cjs/post-avatar.cjs.entry.js +30 -33
- package/dist/cjs/post-back-to-top.cjs.entry.js +20 -11
- package/dist/cjs/post-banner.cjs.entry.js +8 -13
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +33 -23
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +33 -34
- package/dist/cjs/post-closebutton_14.cjs.entry.js +238 -272
- package/dist/cjs/post-collapsible_2.cjs.entry.js +56 -39
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +140 -138
- package/dist/cjs/post-footer.cjs.entry.js +24 -17
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox-option.cjs.entry.js +2 -2
- package/dist/cjs/post-listbox.cjs.entry.js +3 -5
- package/dist/cjs/post-login-widget.cjs.entry.js +28 -29
- package/dist/cjs/post-number-input.cjs.entry.js +2 -2
- package/dist/cjs/post-pagination.cjs.entry.js +50 -80
- package/dist/cjs/post-popover-trigger.cjs.entry.js +21 -18
- package/dist/cjs/post-popover.cjs.entry.js +24 -22
- package/dist/cjs/post-progressbar.cjs.entry.js +147 -0
- package/dist/cjs/post-rating.cjs.entry.js +33 -34
- package/dist/cjs/post-stepper-item.cjs.entry.js +3 -3
- package/dist/cjs/post-stepper.cjs.entry.js +48 -37
- package/dist/cjs/post-tab-item.cjs.entry.js +20 -12
- package/dist/cjs/post-tab-panel.cjs.entry.js +20 -13
- package/dist/cjs/post-tabs.cjs.entry.js +21 -7
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +21 -12
- package/dist/cjs/post-tooltip.cjs.entry.js +19 -16
- package/dist/cjs/required-lRDOdbd6.js +44 -0
- package/dist/cjs/type-shT641Eo.js +30 -0
- package/dist/cjs/url-DRUMqVBq.js +34 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/post-accordion/post-accordion.js +11 -8
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -17
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +23 -13
- package/dist/collection/components/post-avatar/post-avatar.js +27 -33
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +17 -10
- package/dist/collection/components/post-banner/post-banner.js +7 -14
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +27 -22
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +29 -34
- package/dist/collection/components/post-closebutton/post-closebutton.js +24 -27
- package/dist/collection/components/post-collapsible/post-collapsible.js +26 -16
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +34 -30
- package/dist/collection/components/post-date-picker/post-date-picker.js +64 -96
- package/dist/collection/components/post-footer/post-footer.js +17 -13
- package/dist/collection/components/post-header/post-header.js +18 -24
- package/dist/collection/components/post-icon/post-icon.js +34 -47
- package/dist/collection/components/post-language-menu/post-language-menu.js +15 -20
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.js +28 -39
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +3 -5
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +1 -1
- package/dist/collection/components/post-login-widget/post-login-widget.js +25 -29
- package/dist/collection/components/post-logo/post-logo.js +16 -13
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +17 -13
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +24 -23
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +7 -15
- package/dist/collection/components/post-menu/post-menu.js +10 -23
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +17 -13
- package/dist/collection/components/post-number-input/post-number-input.js +3 -3
- package/dist/collection/components/post-pagination/post-pagination.js +47 -82
- package/dist/collection/components/post-popover/post-popover.js +20 -22
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +16 -14
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +25 -30
- package/dist/collection/components/post-progressbar/post-progressbar.css +1 -0
- package/dist/collection/components/post-progressbar/post-progressbar.js +136 -0
- package/dist/collection/components/post-rating/post-rating.js +25 -29
- package/dist/collection/components/post-stepper/post-stepper.js +44 -36
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +2 -2
- package/dist/collection/components/post-tab-item/post-tab-item.js +17 -12
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +17 -13
- package/dist/collection/components/post-tabs/post-tabs.js +20 -7
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +5 -3
- package/dist/collection/components/post-tooltip/post-tooltip.js +17 -16
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +17 -12
- package/dist/collection/utils/index.js +3 -4
- package/dist/collection/utils/is-value-empty.js +1 -1
- package/dist/collection/utils/property-decorators/bound.js +75 -0
- package/dist/collection/utils/property-decorators/create-validator-decorator.js +24 -0
- package/dist/collection/utils/property-decorators/index.js +1 -1
- package/dist/collection/utils/property-decorators/required.js +19 -3
- package/dist/component-names.json +1 -0
- package/dist/components/breakpoints.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/one-of.js +1 -0
- package/dist/components/package.js +1 -1
- package/dist/components/pattern.js +1 -0
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-avatar2.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-login-widget.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.d.ts +11 -0
- package/dist/components/post-progressbar.js +1 -0
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/p-4wtxqxXu.js +1 -0
- package/dist/components/react/{p-DPKR_4uI.js → p-85IGlhtB.js} +1 -1
- package/dist/components/react/p-B9ZFuYey.js +1 -0
- package/dist/components/react/p-BXqGI600.js +1 -0
- package/dist/components/react/p-BZSAV0-K.js +1 -0
- package/dist/components/react/p-B_WnO-QF.js +1 -0
- package/dist/components/react/p-BaB8wJvk.js +1 -0
- package/dist/components/react/p-Bg9dtyzK.js +1 -0
- package/dist/components/react/p-Bji_4dfL.js +1 -0
- package/dist/components/react/p-Bn66acGG.js +1 -0
- package/dist/components/react/p-Bu2JeHDf.js +1 -0
- package/dist/components/react/p-BxoRVIIr.js +1 -0
- package/dist/components/react/p-CX2E_IXB.js +1 -0
- package/dist/components/react/p-Cd1TsNm7.js +1 -0
- package/dist/components/react/p-CkTAQJGd.js +1 -0
- package/dist/components/react/p-ClG-N42b.js +1 -0
- package/dist/components/react/p-D1zw8FxT.js +1 -0
- package/dist/components/react/p-DwuW52g5.js +1 -0
- package/dist/components/react/{p-BC0-M_SK.js → p-PM7l--ff.js} +1 -1
- package/dist/components/react/post-accordion-item.js +1 -1
- package/dist/components/react/post-accordion.js +1 -1
- package/dist/components/react/post-autocomplete.js +1 -1
- package/dist/components/react/post-avatar.js +1 -1
- package/dist/components/react/post-back-to-top.js +1 -1
- package/dist/components/react/post-banner.js +1 -1
- package/dist/components/react/post-breadcrumb-item.js +1 -1
- package/dist/components/react/post-breadcrumbs.js +1 -1
- package/dist/components/react/post-closebutton.js +1 -1
- package/dist/components/react/post-collapsible-trigger.js +1 -1
- package/dist/components/react/post-collapsible.js +1 -1
- package/dist/components/react/post-date-picker.js +1 -1
- package/dist/components/react/post-footer.js +1 -1
- package/dist/components/react/post-header.js +1 -1
- package/dist/components/react/post-icon.js +1 -1
- package/dist/components/react/post-language-menu-item.js +1 -1
- package/dist/components/react/post-language-menu.js +1 -1
- package/dist/components/react/post-linkarea.js +1 -1
- package/dist/components/react/post-listbox-option.js +1 -1
- package/dist/components/react/post-listbox.js +1 -1
- package/dist/components/react/post-login-widget.js +1 -1
- package/dist/components/react/post-logo.js +1 -1
- package/dist/components/react/post-mainnavigation.js +1 -1
- package/dist/components/react/post-megadropdown-trigger.js +1 -1
- package/dist/components/react/post-megadropdown.js +1 -1
- package/dist/components/react/post-menu-item.js +1 -1
- package/dist/components/react/post-menu-trigger.js +1 -1
- package/dist/components/react/post-menu.js +1 -1
- package/dist/components/react/post-number-input.js +1 -1
- package/dist/components/react/post-pagination.js +1 -1
- package/dist/components/react/post-popover-trigger.js +1 -1
- package/dist/components/react/post-popover.js +1 -1
- package/dist/components/react/post-popovercontainer.js +1 -1
- package/dist/components/react/post-progressbar.d.ts +11 -0
- package/dist/components/react/post-progressbar.js +1 -0
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/components/required.js +1 -0
- package/dist/components/type.js +1 -0
- package/dist/components/url.js +1 -0
- package/dist/docs.json +106 -4
- package/dist/esm/create-validator-decorator-D8qwF5Qe.js +218 -0
- package/dist/esm/{index-DmBWUef5.js → index-BbDawWJ5.js} +5 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/one-of-GPr3FflU.js +25 -0
- package/dist/esm/package-ClG-N42b.js +3 -0
- package/dist/esm/pattern-BWPRYpYv.js +25 -0
- package/dist/esm/post-accordion_2.entry.js +15 -21
- package/dist/esm/post-autocomplete.entry.js +26 -13
- package/dist/esm/post-avatar.entry.js +30 -33
- package/dist/esm/post-back-to-top.entry.js +20 -11
- package/dist/esm/post-banner.entry.js +8 -13
- package/dist/esm/post-breadcrumb-item.entry.js +33 -23
- package/dist/esm/post-breadcrumbs.entry.js +33 -34
- package/dist/esm/post-closebutton_14.entry.js +238 -272
- package/dist/esm/post-collapsible_2.entry.js +56 -39
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +140 -138
- package/dist/esm/post-footer.entry.js +20 -13
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/post-listbox-option.entry.js +2 -2
- package/dist/esm/post-listbox.entry.js +3 -5
- package/dist/esm/post-login-widget.entry.js +28 -29
- package/dist/esm/post-number-input.entry.js +2 -2
- package/dist/esm/post-pagination.entry.js +50 -80
- package/dist/esm/post-popover-trigger.entry.js +19 -16
- package/dist/esm/post-popover.entry.js +24 -22
- package/dist/esm/post-progressbar.entry.js +145 -0
- package/dist/esm/post-rating.entry.js +28 -29
- package/dist/esm/post-stepper-item.entry.js +3 -3
- package/dist/esm/post-stepper.entry.js +48 -37
- package/dist/esm/post-tab-item.entry.js +20 -12
- package/dist/esm/post-tab-panel.entry.js +20 -13
- package/dist/esm/post-tabs.entry.js +21 -7
- package/dist/esm/post-tooltip-trigger.entry.js +21 -12
- package/dist/esm/post-tooltip.entry.js +19 -16
- package/dist/esm/required-uK-rZZjy.js +42 -0
- package/dist/esm/type-obmwEgkM.js +28 -0
- package/dist/esm/url-B28ByZCe.js +32 -0
- package/dist/post-components/p-00f55af5.entry.js +1 -0
- package/dist/post-components/p-0288484f.entry.js +1 -0
- package/dist/post-components/p-07cdd022.entry.js +1 -0
- package/dist/post-components/{p-08a0e8e9.entry.js → p-12047216.entry.js} +1 -1
- package/dist/post-components/p-17df4e91.entry.js +1 -0
- package/dist/post-components/p-17e046fa.entry.js +1 -0
- package/dist/post-components/p-29bd31a0.entry.js +1 -0
- package/dist/post-components/p-2c6b4e6a.entry.js +1 -0
- package/dist/post-components/p-3b05e01d.entry.js +1 -0
- package/dist/post-components/p-53fd5230.entry.js +1 -0
- package/dist/post-components/p-5b7e6369.entry.js +1 -0
- package/dist/post-components/p-5f4ca179.entry.js +1 -0
- package/dist/post-components/p-62b6154a.entry.js +1 -0
- package/dist/post-components/{p-4b445a35.entry.js → p-686a6e22.entry.js} +1 -1
- package/dist/post-components/p-758fc84f.entry.js +1 -0
- package/dist/post-components/{p-bab0f27f.entry.js → p-7f929bb9.entry.js} +1 -1
- package/dist/post-components/p-9865f72c.entry.js +1 -0
- package/dist/post-components/p-99803d57.entry.js +1 -0
- package/dist/post-components/p-BRNqUiXj.js +1 -0
- package/dist/post-components/p-BbDawWJ5.js +2 -0
- package/dist/post-components/p-CVsNfXZd.js +1 -0
- package/dist/post-components/p-Ck2qPht6.js +1 -0
- package/dist/post-components/p-ClG-N42b.js +1 -0
- package/dist/post-components/p-D4F0BqBW.js +1 -0
- package/dist/post-components/p-DSNGJB58.js +1 -0
- package/dist/post-components/p-IUnDBhPg.js +1 -0
- package/dist/post-components/p-a0e0a760.entry.js +1 -0
- package/dist/post-components/p-a850652d.entry.js +1 -0
- package/dist/post-components/p-aac1a8ea.entry.js +1 -0
- package/dist/post-components/{p-39143e19.entry.js → p-b3f0f9a2.entry.js} +1 -1
- package/dist/post-components/p-c37dba4b.entry.js +1 -0
- package/dist/post-components/p-d061773b.entry.js +1 -0
- package/dist/post-components/p-e2370e94.entry.js +1 -0
- package/dist/post-components/p-f1ca1d3f.entry.js +1 -0
- package/dist/post-components/p-f2e5f44e.entry.js +1 -0
- package/dist/post-components/p-ff98ada4.entry.js +1 -0
- package/dist/post-components/post-components.css +1 -1
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion/post-accordion.d.ts +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -2
- package/dist/types/components/post-autocomplete/post-autocomplete.d.ts +0 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +0 -5
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +0 -1
- package/dist/types/components/post-banner/post-banner.d.ts +0 -1
- package/dist/types/components/post-breadcrumb-item/post-breadcrumb-item.d.ts +0 -3
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +0 -4
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +0 -3
- package/dist/types/components/post-collapsible/post-collapsible.d.ts +1 -2
- package/dist/types/components/post-collapsible-trigger/post-collapsible-trigger.d.ts +3 -6
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +0 -12
- package/dist/types/components/post-footer/post-footer.d.ts +0 -1
- package/dist/types/components/post-header/post-header.d.ts +0 -2
- package/dist/types/components/post-icon/post-icon.d.ts +0 -6
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +1 -3
- package/dist/types/components/post-language-menu-item/post-language-menu-item.d.ts +0 -5
- package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -4
- package/dist/types/components/post-logo/post-logo.d.ts +0 -1
- package/dist/types/components/post-mainnavigation/post-mainnavigation.d.ts +0 -1
- package/dist/types/components/post-megadropdown/post-megadropdown.d.ts +1 -3
- package/dist/types/components/post-megadropdown-trigger/post-megadropdown-trigger.d.ts +0 -2
- package/dist/types/components/post-menu/post-menu.d.ts +1 -4
- package/dist/types/components/post-menu-trigger/post-menu-trigger.d.ts +0 -1
- package/dist/types/components/post-pagination/post-pagination.d.ts +0 -17
- package/dist/types/components/post-popover/post-popover.d.ts +1 -4
- package/dist/types/components/post-popover-trigger/post-popover-trigger.d.ts +0 -1
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +0 -3
- package/dist/types/components/post-progressbar/post-progressbar.d.ts +23 -0
- package/dist/types/components/post-rating/post-rating.d.ts +0 -4
- package/dist/types/components/post-stepper/post-stepper.d.ts +1 -4
- package/dist/types/components/post-tab-item/post-tab-item.d.ts +0 -1
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +0 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +0 -2
- package/dist/types/components/post-tooltip-trigger/post-tooltip-trigger.d.ts +0 -1
- package/dist/types/components.d.ts +51 -5
- package/dist/types/utils/index.d.ts +3 -4
- package/dist/types/utils/property-decorators/bound.d.ts +36 -0
- package/dist/types/utils/property-decorators/create-validator-decorator.d.ts +5 -0
- package/dist/types/utils/property-decorators/index.d.ts +1 -1
- package/dist/types/utils/property-decorators/required.d.ts +10 -1
- package/hydrate/index.js +1310 -926
- package/hydrate/index.mjs +1310 -926
- package/package.json +4 -4
- package/dist/cjs/index-qCzRmwgB.js +0 -114
- package/dist/collection/utils/property-checkers/check-array-of.js +0 -8
- package/dist/collection/utils/property-checkers/check-date.js +0 -13
- package/dist/collection/utils/property-checkers/check-iso-date.js +0 -9
- package/dist/collection/utils/property-checkers/check-one-of.js +0 -8
- package/dist/collection/utils/property-checkers/check-pattern.js +0 -8
- package/dist/collection/utils/property-checkers/check-type.js +0 -15
- package/dist/collection/utils/property-checkers/check-url.js +0 -15
- package/dist/collection/utils/property-checkers/constants.js +0 -1
- package/dist/collection/utils/property-checkers/empty-or.js +0 -9
- package/dist/collection/utils/property-checkers/index.js +0 -20
- package/dist/collection/utils/property-checkers/required-and.js +0 -14
- package/dist/components/heading-levels.js +0 -1
- package/dist/components/index2.js +0 -1
- package/dist/components/react/p-BQ3HlJPr.js +0 -1
- package/dist/components/react/p-C7s9oglQ.js +0 -1
- package/dist/components/react/p-CTgZ8DGr.js +0 -1
- package/dist/components/react/p-CVtlwDsT.js +0 -1
- package/dist/components/react/p-CaLwTf3T.js +0 -1
- package/dist/components/react/p-ClJyTIVM.js +0 -1
- package/dist/components/react/p-DGr-hfLq.js +0 -1
- package/dist/components/react/p-DJxdj9pa.js +0 -1
- package/dist/components/react/p-DKDEtjQe.js +0 -1
- package/dist/components/react/p-DcEDGaFs.js +0 -1
- package/dist/components/react/p-DipfA69b.js +0 -1
- package/dist/components/react/p-DwZxAC2u.js +0 -1
- package/dist/components/react/p-r4txK0AC.js +0 -1
- package/dist/components/react/p-x3kxyWSZ.js +0 -1
- package/dist/esm/index-D9bU2pIE.js +0 -104
- package/dist/esm/package-x3kxyWSZ.js +0 -3
- package/dist/post-components/p-1583817b.entry.js +0 -1
- package/dist/post-components/p-203d9abd.entry.js +0 -1
- package/dist/post-components/p-2c68af27.entry.js +0 -1
- package/dist/post-components/p-46dd9e7e.entry.js +0 -1
- package/dist/post-components/p-53a8cce5.entry.js +0 -1
- package/dist/post-components/p-72bff1fc.entry.js +0 -1
- package/dist/post-components/p-75045028.entry.js +0 -1
- package/dist/post-components/p-768b4516.entry.js +0 -1
- package/dist/post-components/p-7e072450.entry.js +0 -1
- package/dist/post-components/p-83cb6424.entry.js +0 -1
- package/dist/post-components/p-94f4da57.entry.js +0 -1
- package/dist/post-components/p-9dace750.entry.js +0 -1
- package/dist/post-components/p-9ea7e46f.entry.js +0 -1
- package/dist/post-components/p-D9bU2pIE.js +0 -1
- package/dist/post-components/p-DmBWUef5.js +0 -2
- package/dist/post-components/p-a0ac814c.entry.js +0 -1
- package/dist/post-components/p-a0d12ca8.entry.js +0 -1
- package/dist/post-components/p-cb039d66.entry.js +0 -1
- package/dist/post-components/p-e8cda4e1.entry.js +0 -1
- package/dist/post-components/p-e8e50d5c.entry.js +0 -1
- package/dist/post-components/p-eb64ec1d.entry.js +0 -1
- package/dist/post-components/p-f0746a9e.entry.js +0 -1
- package/dist/post-components/p-f5e33714.entry.js +0 -1
- package/dist/post-components/p-f93ce33d.entry.js +0 -1
- package/dist/post-components/p-fd0446b2.entry.js +0 -1
- package/dist/post-components/p-x3kxyWSZ.js +0 -1
- package/dist/types/utils/property-checkers/check-array-of.d.ts +0 -4
- package/dist/types/utils/property-checkers/check-date.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-iso-date.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-one-of.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-pattern.d.ts +0 -3
- package/dist/types/utils/property-checkers/check-type.d.ts +0 -4
- package/dist/types/utils/property-checkers/check-url.d.ts +0 -3
- package/dist/types/utils/property-checkers/constants.d.ts +0 -1
- package/dist/types/utils/property-checkers/empty-or.d.ts +0 -3
- package/dist/types/utils/property-checkers/index.d.ts +0 -34
- package/dist/types/utils/property-checkers/required-and.d.ts +0 -3
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
export class PostRating {
|
|
5
|
-
validateLabel() {
|
|
6
|
-
checkRequiredAndType(this, 'label', 'string');
|
|
7
|
-
}
|
|
8
|
-
validateStars() {
|
|
9
|
-
checkRequiredAndType(this, 'stars', 'number');
|
|
10
|
-
}
|
|
11
|
-
validateCurrentRating() {
|
|
12
|
-
checkRequiredAndType(this, 'currentRating', 'number');
|
|
13
|
-
}
|
|
14
|
-
componentWillLoad() {
|
|
15
|
-
this.validateLabel();
|
|
16
|
-
this.validateStars();
|
|
17
|
-
this.validateCurrentRating();
|
|
18
|
-
}
|
|
19
15
|
constructor() {
|
|
20
16
|
this.hasChanged = false;
|
|
21
17
|
/**
|
|
@@ -87,7 +83,7 @@ export class PostRating {
|
|
|
87
83
|
}
|
|
88
84
|
}
|
|
89
85
|
render() {
|
|
90
|
-
return (h(Host, { key: '
|
|
86
|
+
return (h(Host, { key: 'c037e21b074c9ebc433e325e49d17dbe06d8db43', "data-version": version }, h("div", { key: 'f661eac91003680598c38d54dbc5fa3f482b7ad8', role: "slider", class: "rating", tabindex: "0", "aria-label": this.label, "aria-valuemin": "0", "aria-valuemax": this.stars, "aria-valuenow": this.currentRating, "aria-valuetext": `${this.currentRating} / ${this.stars}`, "aria-readonly": this.readonly ? 'true' : 'false', onKeyDown: this.keydownHandler, onBlur: this.blurHandler }, Array.from({ length: this.stars }).map((v, i) => (h("div", { key: `star-${v}`, "aria-hidden": "true", class: {
|
|
91
87
|
'star': true,
|
|
92
88
|
'before-hover': i < this.hoveredIndex,
|
|
93
89
|
'active': i < Math.round(this.currentRating),
|
|
@@ -229,16 +225,16 @@ export class PostRating {
|
|
|
229
225
|
}];
|
|
230
226
|
}
|
|
231
227
|
static get elementRef() { return "host"; }
|
|
232
|
-
static get watchers() {
|
|
233
|
-
return [{
|
|
234
|
-
"propName": "label",
|
|
235
|
-
"methodName": "validateLabel"
|
|
236
|
-
}, {
|
|
237
|
-
"propName": "stars",
|
|
238
|
-
"methodName": "validateStars"
|
|
239
|
-
}, {
|
|
240
|
-
"propName": "currentRating",
|
|
241
|
-
"methodName": "validateCurrentRating"
|
|
242
|
-
}];
|
|
243
|
-
}
|
|
244
228
|
}
|
|
229
|
+
__decorate([
|
|
230
|
+
Required(),
|
|
231
|
+
Type('string')
|
|
232
|
+
], PostRating.prototype, "label", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
Required(),
|
|
235
|
+
Type('number')
|
|
236
|
+
], PostRating.prototype, "stars", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
Required(),
|
|
239
|
+
Type('number')
|
|
240
|
+
], PostRating.prototype, "currentRating", void 0);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Pattern, Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
export class PostStepper {
|
|
5
15
|
constructor() {
|
|
6
16
|
/**
|
|
@@ -8,18 +18,7 @@ export class PostStepper {
|
|
|
8
18
|
*/
|
|
9
19
|
this.currentIndex = -1;
|
|
10
20
|
}
|
|
11
|
-
validateTextCurrentStep() {
|
|
12
|
-
checkRequiredAndType(this, 'textCurrentStep', 'string');
|
|
13
|
-
}
|
|
14
|
-
validateTextCompletedStep() {
|
|
15
|
-
checkRequiredAndType(this, 'textCompletedStep', 'string');
|
|
16
|
-
}
|
|
17
|
-
validateTextStepNumber() {
|
|
18
|
-
checkRequiredAndPattern(this, 'textStepNumber', /\{number\}/);
|
|
19
|
-
this.updateActiveStepNumber();
|
|
20
|
-
}
|
|
21
21
|
validateCurrentIndex() {
|
|
22
|
-
checkRequiredAndType(this, 'currentIndex', 'number');
|
|
23
22
|
if (this.stepItems) {
|
|
24
23
|
this.updateSteps();
|
|
25
24
|
this.checkIndexes();
|
|
@@ -30,15 +29,20 @@ export class PostStepper {
|
|
|
30
29
|
this.selectedIndex = this.currentIndex;
|
|
31
30
|
}
|
|
32
31
|
else {
|
|
33
|
-
checkRequiredAndType(this, 'selectedIndex', 'number');
|
|
34
32
|
this.checkIndexes();
|
|
35
33
|
}
|
|
36
34
|
this.updateSteps();
|
|
37
35
|
}
|
|
36
|
+
updateActiveStepNumber() {
|
|
37
|
+
if (this.textStepNumber) {
|
|
38
|
+
const labelTemplate = this.textStepNumber;
|
|
39
|
+
this.mobileActiveStepLabel = labelTemplate.replaceAll('{number}', `${this.selectedIndex + 1}`);
|
|
40
|
+
if (this.stepItems) {
|
|
41
|
+
this.updateMobileActiveStepVisibility();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
38
45
|
componentDidLoad() {
|
|
39
|
-
this.validateTextCompletedStep();
|
|
40
|
-
this.validateTextCurrentStep();
|
|
41
|
-
this.validateTextStepNumber();
|
|
42
46
|
// Wait for slotchange
|
|
43
47
|
setTimeout(() => {
|
|
44
48
|
this.validateCurrentIndex();
|
|
@@ -50,15 +54,6 @@ export class PostStepper {
|
|
|
50
54
|
console.error('The selected-index cannot be higher than the current-index, as only the current and completed steps can be selected.');
|
|
51
55
|
}
|
|
52
56
|
}
|
|
53
|
-
updateActiveStepNumber() {
|
|
54
|
-
if (this.textStepNumber) {
|
|
55
|
-
const labelTemplate = this.textStepNumber;
|
|
56
|
-
this.mobileActiveStepLabel = labelTemplate.replaceAll('{number}', `${this.selectedIndex + 1}`);
|
|
57
|
-
if (this.stepItems) {
|
|
58
|
-
this.updateMobileActiveStepVisibility();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
57
|
updateSteps() {
|
|
63
58
|
this.stepItems = this.host.querySelectorAll('post-stepper-item');
|
|
64
59
|
if (!this.stepItems || this.stepItems.length < 3) {
|
|
@@ -107,7 +102,7 @@ export class PostStepper {
|
|
|
107
102
|
}
|
|
108
103
|
}
|
|
109
104
|
render() {
|
|
110
|
-
return (h(Host, { key: '
|
|
105
|
+
return (h(Host, { key: '54ed38463a97b7141fdd5ce7576547cb709b377a', "data-version": version }, h("ol", { key: '7bed20f941c892da6c00f973bf6cf99780d4cec1' }, h("slot", { key: '36cd434ae62f7e6ffa742ddedbea2f2f5a870825', onSlotchange: () => this.updateSteps() })), h("div", { key: 'b523effd246fb447cf5511d973b9cef463e6d316', class: "active-step", "aria-hidden": "true" }, h("span", { key: '506617bee389d6b6ee2c477e06388ae13d0eef16', class: "active-step-label" }, this.mobileActiveStepLabel), h("span", { key: '0aebdb5c031c30bc732a73a6a38544038a9f48ef', innerHTML: this.mobileActiveStepName }))));
|
|
111
106
|
}
|
|
112
107
|
static get is() { return "post-stepper"; }
|
|
113
108
|
static get encapsulation() { return "shadow"; }
|
|
@@ -230,20 +225,33 @@ export class PostStepper {
|
|
|
230
225
|
static get elementRef() { return "host"; }
|
|
231
226
|
static get watchers() {
|
|
232
227
|
return [{
|
|
233
|
-
"propName": "textCurrentStep",
|
|
234
|
-
"methodName": "validateTextCurrentStep"
|
|
235
|
-
}, {
|
|
236
|
-
"propName": "textCompletedStep",
|
|
237
|
-
"methodName": "validateTextCompletedStep"
|
|
238
|
-
}, {
|
|
239
|
-
"propName": "textStepNumber",
|
|
240
|
-
"methodName": "validateTextStepNumber"
|
|
241
|
-
}, {
|
|
242
228
|
"propName": "currentIndex",
|
|
243
229
|
"methodName": "validateCurrentIndex"
|
|
244
230
|
}, {
|
|
245
231
|
"propName": "selectedIndex",
|
|
246
232
|
"methodName": "validateSelectedIndex"
|
|
233
|
+
}, {
|
|
234
|
+
"propName": "textStepNumber",
|
|
235
|
+
"methodName": "updateActiveStepNumber"
|
|
247
236
|
}];
|
|
248
237
|
}
|
|
249
238
|
}
|
|
239
|
+
__decorate([
|
|
240
|
+
Required(),
|
|
241
|
+
Type('string')
|
|
242
|
+
], PostStepper.prototype, "textCurrentStep", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
Required(),
|
|
245
|
+
Type('string')
|
|
246
|
+
], PostStepper.prototype, "textCompletedStep", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
Required(),
|
|
249
|
+
Pattern(/\{number\}/)
|
|
250
|
+
], PostStepper.prototype, "textStepNumber", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
Required(),
|
|
253
|
+
Type('number')
|
|
254
|
+
], PostStepper.prototype, "currentIndex", void 0);
|
|
255
|
+
__decorate([
|
|
256
|
+
Type('number')
|
|
257
|
+
], PostStepper.prototype, "selectedIndex", void 0);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { h, Host } from "@stencil/core";
|
|
2
1
|
import { version } from "../../../../package";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
3
|
export class PostStepperItem {
|
|
4
4
|
render() {
|
|
5
|
-
return (h(Host, { key: '
|
|
5
|
+
return (h(Host, { key: '0919891d67f961e1ee2c8a7fb556d232ed34ed94', "data-version": version, role: "listitem" }, h("span", { key: '862705599a537267080fbf054e06353c65888bba', class: "stepper-item-content" }, h("span", { key: '96c62cc07fd460402d4e49a36fad70c80eb52f78', class: "step-hidden-label visually-hidden" }), h("span", { key: '6cce8bef3684d50f8dbb72f48b1ca3b0bbcd57ca', class: "label" }, h("slot", { key: '9ec06d2716870180309bbfde83a04953e7abb011' })))));
|
|
6
6
|
}
|
|
7
7
|
static get is() { return "post-stepper-item"; }
|
|
8
8
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { nanoid, Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
/**
|
|
5
15
|
* @slot default - Slot for the content of the tab item. Can contain text or an <a> element for navigation mode.
|
|
6
16
|
*/
|
|
@@ -9,9 +19,6 @@ export class PostTabItem {
|
|
|
9
19
|
this.mutationObserver = new MutationObserver(this.checkNavigationMode.bind(this));
|
|
10
20
|
this.isNavigationMode = false;
|
|
11
21
|
}
|
|
12
|
-
validateName() {
|
|
13
|
-
checkRequiredAndType(this, 'name', 'string');
|
|
14
|
-
}
|
|
15
22
|
connectedCallback() {
|
|
16
23
|
this.mutationObserver.observe(this.host, {
|
|
17
24
|
childList: true,
|
|
@@ -32,7 +39,7 @@ export class PostTabItem {
|
|
|
32
39
|
this.isNavigationMode = hasAnchor;
|
|
33
40
|
}
|
|
34
41
|
render() {
|
|
35
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'bd2713959afafd5dafa80c5f59e8249ffbb78b09', id: this.tabId, role: !this.isNavigationMode ? 'tab' : undefined, "data-version": version, "data-navigation-mode": this.isNavigationMode.toString(), "aria-selected": !this.isNavigationMode ? 'false' : undefined, tabindex: !this.isNavigationMode ? '-1' : undefined, class: !this.isNavigationMode ? 'tab-title' : 'nav-item' }, h("slot", { key: '87e22df81eae1ecef48a6ad443b959562d8a816b' })));
|
|
36
43
|
}
|
|
37
44
|
static get is() { return "post-tab-item"; }
|
|
38
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,10 +83,8 @@ export class PostTabItem {
|
|
|
76
83
|
};
|
|
77
84
|
}
|
|
78
85
|
static get elementRef() { return "host"; }
|
|
79
|
-
static get watchers() {
|
|
80
|
-
return [{
|
|
81
|
-
"propName": "name",
|
|
82
|
-
"methodName": "validateName"
|
|
83
|
-
}];
|
|
84
|
-
}
|
|
85
86
|
}
|
|
87
|
+
__decorate([
|
|
88
|
+
Required(),
|
|
89
|
+
Type('string')
|
|
90
|
+
], PostTabItem.prototype, "name", void 0);
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { nanoid, Required, Type } from "../../utils/index";
|
|
2
12
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
13
|
+
import { h, Host } from "@stencil/core";
|
|
4
14
|
/**
|
|
5
15
|
* @slot default - Slot for placing the content of the tab panel.
|
|
6
16
|
*/
|
|
7
17
|
export class PostTabPanel {
|
|
8
|
-
validateFor() {
|
|
9
|
-
checkRequiredAndType(this, 'for', 'string');
|
|
10
|
-
}
|
|
11
18
|
componentWillLoad() {
|
|
12
|
-
this.validateFor();
|
|
13
19
|
// get the id set on the host element or use a random id by default
|
|
14
20
|
this.panelId = `panel-${this.host.id || nanoid(6)}`;
|
|
15
21
|
}
|
|
16
22
|
render() {
|
|
17
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'a67cc32e99a26cafcdb39968252012d8b67810b1', "data-version": version, id: this.panelId, role: "tabpanel", slot: "panels" }, h("slot", { key: '2435e43fcecac9a863e4ba2fc215efa7b03c7c18' })));
|
|
18
24
|
}
|
|
19
25
|
static get is() { return "post-tab-panel"; }
|
|
20
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,10 +63,8 @@ export class PostTabPanel {
|
|
|
57
63
|
};
|
|
58
64
|
}
|
|
59
65
|
static get elementRef() { return "host"; }
|
|
60
|
-
static get watchers() {
|
|
61
|
-
return [{
|
|
62
|
-
"propName": "for",
|
|
63
|
-
"methodName": "validateFor"
|
|
64
|
-
}];
|
|
65
|
-
}
|
|
66
66
|
}
|
|
67
|
+
__decorate([
|
|
68
|
+
Required(),
|
|
69
|
+
Type('string')
|
|
70
|
+
], PostTabPanel.prototype, "for", void 0);
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
3
11
|
import { fade } from "../../animations/index";
|
|
4
|
-
import { componentOnReady,
|
|
12
|
+
import { componentOnReady, Type } from "../../utils/index";
|
|
13
|
+
import { version } from "../../../../package";
|
|
14
|
+
import { h, Host, } from "@stencil/core";
|
|
5
15
|
/**
|
|
6
16
|
* @slot default - Slot for placing tab items. Each tab item should be a <post-tab-item> element.
|
|
7
17
|
* @slot panels - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element.
|
|
@@ -26,8 +36,8 @@ export class PostTabs {
|
|
|
26
36
|
return Array.from(this.host.querySelectorAll('post-tab-panel')).filter(panel => panel.closest('post-tabs') === this.host);
|
|
27
37
|
}
|
|
28
38
|
validateLabel() {
|
|
29
|
-
if (this.isNavigationMode) {
|
|
30
|
-
|
|
39
|
+
if (this.isNavigationMode && !this.label) {
|
|
40
|
+
console.error(`[${this.host.localName}] Property "label" is required in navigation mode. Received: ${JSON.stringify(this.label)}.`, this.host);
|
|
31
41
|
}
|
|
32
42
|
}
|
|
33
43
|
componentWillRender() {
|
|
@@ -291,10 +301,10 @@ export class PostTabs {
|
|
|
291
301
|
}
|
|
292
302
|
render() {
|
|
293
303
|
const TabsContainer = this.isNavigationMode ? 'nav' : 'div';
|
|
294
|
-
return (h(Host, { key: '
|
|
304
|
+
return (h(Host, { key: '3b674ed455e34a7efc1c1ffed14ac719a7ecb061', "data-version": version }, h("div", { key: '749f4695adc7c3125bfb678606249c48a4d7ea31', class: "tabs-wrapper", part: "post-tabs" }, h(TabsContainer, { key: 'c06c83dbcbdf9f3fd38f01db7beae181748b369d', class: "tabs", role: this.isNavigationMode ? undefined : 'tablist', "aria-label": this.isNavigationMode ? this.label : undefined }, h("slot", { key: 'b065d0200fb2d4b6a63e23141d3e625a4147a93d', onSlotchange: () => {
|
|
295
305
|
this.moveMisplacedTabs();
|
|
296
306
|
this.enableTabs();
|
|
297
|
-
} }))), !this.isNavigationMode && (h("div", { key: '
|
|
307
|
+
} }))), !this.isNavigationMode && (h("div", { key: '8dc41274f8c9da24b2d65eebf213ea35c41368d0', class: "tab-content", part: "post-tabs-content" }, h("slot", { key: 'e859256ebcb60fc0457349ca991508406b3bc309', name: "panels", onSlotchange: () => this.moveMisplacedPanels() })))));
|
|
298
308
|
}
|
|
299
309
|
static get is() { return "post-tabs"; }
|
|
300
310
|
static get encapsulation() { return "shadow"; }
|
|
@@ -430,3 +440,6 @@ export class PostTabs {
|
|
|
430
440
|
}];
|
|
431
441
|
}
|
|
432
442
|
}
|
|
443
|
+
__decorate([
|
|
444
|
+
Type('string')
|
|
445
|
+
], PostTabs.prototype, "label", void 0);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
2
1
|
import { version } from "../../../../package";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
3
|
/**
|
|
4
4
|
* @slot default - Slot for the content of the button.
|
|
5
5
|
*/
|
|
@@ -24,10 +24,12 @@ export class PostTogglebutton {
|
|
|
24
24
|
// add event listener in capture phase so the toggle state is updated
|
|
25
25
|
// before any parent bubble listeners react to the click.
|
|
26
26
|
this.host.addEventListener('click', () => this.handleClick(), { capture: true });
|
|
27
|
-
this.host.addEventListener('keydown', (e) => this.handleKeydown(e), {
|
|
27
|
+
this.host.addEventListener('keydown', (e) => this.handleKeydown(e), {
|
|
28
|
+
capture: true,
|
|
29
|
+
});
|
|
28
30
|
}
|
|
29
31
|
render() {
|
|
30
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '6659870a07cf41d8808660906165797572f6a24d', "data-version": version, role: "button", tabindex: "0", "aria-pressed": this.toggled.toString() }, h("slot", { key: '08e6e5b43eeff5239eb40ec8ee960076058dede1' })));
|
|
31
33
|
}
|
|
32
34
|
static get is() { return "post-togglebutton"; }
|
|
33
35
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { PLACEMENT_TYPES } from "../../types/placement";
|
|
12
|
+
import { OneOf } from "../../utils/index";
|
|
2
13
|
import { version } from "../../../../package";
|
|
3
|
-
import {
|
|
4
|
-
import { PLACEMENT_TYPES } from "../../types/index";
|
|
14
|
+
import { h, Host } from "@stencil/core";
|
|
5
15
|
export class PostTooltip {
|
|
6
16
|
constructor() {
|
|
7
17
|
/**
|
|
@@ -19,12 +29,6 @@ export class PostTooltip {
|
|
|
19
29
|
*/
|
|
20
30
|
this.open = false;
|
|
21
31
|
}
|
|
22
|
-
validatePlacement() {
|
|
23
|
-
checkEmptyOrOneOf(this, 'placement', PLACEMENT_TYPES);
|
|
24
|
-
}
|
|
25
|
-
componentWillLoad() {
|
|
26
|
-
this.validatePlacement();
|
|
27
|
-
}
|
|
28
32
|
componentDidLoad() {
|
|
29
33
|
if (!this.host.id) {
|
|
30
34
|
console.error(
|
|
@@ -64,7 +68,7 @@ export class PostTooltip {
|
|
|
64
68
|
}
|
|
65
69
|
render() {
|
|
66
70
|
const popoverClass = `${this.arrow ? 'has-arrow' : ''}`;
|
|
67
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '8186d5446993e1c21c107a496239e56af2493e87', "data-version": version }, h("post-popovercontainer", { key: '6f916cddf8f3b577b7920b02c001905b782b6ff7', safeSpace: "trapezoid", class: popoverClass, role: "tooltip", arrow: this.arrow, placement: this.placement, onPostBeforeToggle: e => this.handleBeforeToggle(e), ref: (el) => (this.popoverRef = el) }, h("slot", { key: '0443322d0ef00792b14e69fd55abaf42f64c0838' }))));
|
|
68
72
|
}
|
|
69
73
|
static get is() { return "post-tooltip"; }
|
|
70
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -234,10 +238,7 @@ export class PostTooltip {
|
|
|
234
238
|
};
|
|
235
239
|
}
|
|
236
240
|
static get elementRef() { return "host"; }
|
|
237
|
-
static get watchers() {
|
|
238
|
-
return [{
|
|
239
|
-
"propName": "placement",
|
|
240
|
-
"methodName": "validatePlacement"
|
|
241
|
-
}];
|
|
242
|
-
}
|
|
243
241
|
}
|
|
242
|
+
__decorate([
|
|
243
|
+
OneOf(PLACEMENT_TYPES)
|
|
244
|
+
], PostTooltip.prototype, "placement", void 0);
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
4
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else
|
|
6
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
7
|
+
if (d = decorators[i])
|
|
8
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
9
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10
|
+
};
|
|
11
|
+
import { Required, Type } from "../../utils/index";
|
|
3
12
|
import { version } from "../../../../package";
|
|
13
|
+
import { Build, h, Host } from "@stencil/core";
|
|
4
14
|
const TRIGGER_EVENTS = ['pointerenter', 'pointerleave', 'focusin', 'focusout', 'long-press'];
|
|
5
15
|
let isFocusable;
|
|
6
16
|
/**
|
|
@@ -23,9 +33,6 @@ export class PostTooltipTrigger {
|
|
|
23
33
|
this.boundTriggerHandler = this.handleTriggerEvent.bind(this);
|
|
24
34
|
this.boundTooltipHandler = this.handleTooltipEvent.bind(this);
|
|
25
35
|
}
|
|
26
|
-
validateControlFor() {
|
|
27
|
-
checkEmptyOrType(this, 'for', 'string');
|
|
28
|
-
}
|
|
29
36
|
get tooltip() {
|
|
30
37
|
if (Build.isServer)
|
|
31
38
|
return null;
|
|
@@ -175,7 +182,7 @@ export class PostTooltipTrigger {
|
|
|
175
182
|
this.tooltip?.hide();
|
|
176
183
|
}
|
|
177
184
|
render() {
|
|
178
|
-
return (h(Host, { key: '
|
|
185
|
+
return (h(Host, { key: 'a1f51fabc4417e30a2b3454f9faf239a3a1f8071', "data-version": version }, h("slot", { key: '0ee1caede699ad7bc0c529f6fd1dd85c63107136', onSlotchange: () => this.handleSlotChange() })));
|
|
179
186
|
}
|
|
180
187
|
static get is() { return "post-tooltip-trigger"; }
|
|
181
188
|
static get encapsulation() { return "shadow"; }
|
|
@@ -233,10 +240,8 @@ export class PostTooltipTrigger {
|
|
|
233
240
|
};
|
|
234
241
|
}
|
|
235
242
|
static get elementRef() { return "host"; }
|
|
236
|
-
static get watchers() {
|
|
237
|
-
return [{
|
|
238
|
-
"propName": "for",
|
|
239
|
-
"methodName": "validateControlFor"
|
|
240
|
-
}];
|
|
241
|
-
}
|
|
242
243
|
}
|
|
244
|
+
__decorate([
|
|
245
|
+
Required(),
|
|
246
|
+
Type('string')
|
|
247
|
+
], PostTooltipTrigger.prototype, "for", void 0);
|
|
@@ -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,75 @@
|
|
|
1
|
+
import { createValidatorDecorator, getValidationContext, registerDependency, } from "./create-validator-decorator";
|
|
2
|
+
function resolveBound(component, bound) {
|
|
3
|
+
const resolvedValue = typeof bound === 'string' ? component[bound] : bound;
|
|
4
|
+
return typeof resolvedValue === 'number' ? resolvedValue : null;
|
|
5
|
+
}
|
|
6
|
+
function createBoundValidatorDecorator(bound, options, config) {
|
|
7
|
+
const decorator = createValidatorDecorator({
|
|
8
|
+
priority: 1,
|
|
9
|
+
blocking: false,
|
|
10
|
+
run(component, property) {
|
|
11
|
+
const { value, showError } = getValidationContext(component, property);
|
|
12
|
+
if (typeof value !== 'number') {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
const resolvedBound = resolveBound(component, bound);
|
|
16
|
+
if (resolvedBound === null) {
|
|
17
|
+
if (typeof bound === 'string') {
|
|
18
|
+
const boundVal = component[bound];
|
|
19
|
+
const boundType = typeof boundVal;
|
|
20
|
+
if (boundType !== 'number') {
|
|
21
|
+
showError(`references property "${bound}" which must be a number but got ${boundType}`);
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
const include = options.include ?? config.includeDefault;
|
|
28
|
+
if (!config.compare(value, resolvedBound, include)) {
|
|
29
|
+
const displayBound = typeof bound === 'string' ? String(resolvedBound) : String(bound);
|
|
30
|
+
const expectation = config.formatExpectation(displayBound, include);
|
|
31
|
+
showError(`must be ${expectation}`);
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
return true;
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
return function (target, property) {
|
|
38
|
+
if (typeof bound === 'string') {
|
|
39
|
+
registerDependency(target, bound, property);
|
|
40
|
+
}
|
|
41
|
+
decorator(target, property);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Property decorator that validates the property value is greater than the specified minimum.
|
|
46
|
+
*
|
|
47
|
+
* Validation runs on `componentDidLoad` and whenever the property value changes.
|
|
48
|
+
*
|
|
49
|
+
* @typeParam T - Component type used to constrain property-name bounds.
|
|
50
|
+
* @param minimum - The minimum allowed value (exclusive by default) or property name to read it from.
|
|
51
|
+
* @param options - Configuration object with `includeMin` flag (default: false for exclusive behavior).
|
|
52
|
+
*/
|
|
53
|
+
export function GreaterThan(minimum, options = {}) {
|
|
54
|
+
return createBoundValidatorDecorator(minimum, { include: options.includeMin }, {
|
|
55
|
+
includeDefault: false,
|
|
56
|
+
compare: (value, bound, include) => (include ? value >= bound : value > bound),
|
|
57
|
+
formatExpectation: (display, include) => include ? `greater than or equal to "${display}"` : `greater than "${display}"`,
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Property decorator that validates the property value is less than the specified maximum.
|
|
62
|
+
*
|
|
63
|
+
* Validation runs on `componentDidLoad` and whenever the property value changes.
|
|
64
|
+
*
|
|
65
|
+
* @typeParam T - Component type used to constrain property-name bounds.
|
|
66
|
+
* @param maximum - The maximum allowed value (inclusive by default) or property name to read it from.
|
|
67
|
+
* @param options - Configuration object with `includeMax` flag (default: true for inclusive behavior).
|
|
68
|
+
*/
|
|
69
|
+
export function LessThan(maximum, options = {}) {
|
|
70
|
+
return createBoundValidatorDecorator(maximum, { include: options.includeMax }, {
|
|
71
|
+
includeDefault: true,
|
|
72
|
+
compare: (value, bound, include) => (include ? value <= bound : value < bound),
|
|
73
|
+
formatExpectation: (display, include) => include ? `less than or equal to "${display}"` : `less than "${display}"`,
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -10,6 +10,8 @@ const validatorsByTarget = new WeakMap();
|
|
|
10
10
|
const decoratedPropertiesByTarget = new WeakMap();
|
|
11
11
|
/** Stores per-instance property values captured by dynamically created accessors. */
|
|
12
12
|
const propertyValuesByInstance = new WeakMap();
|
|
13
|
+
/** Stores dependency relationships per prototype: dependencyProp -> Set<dependentProp>. */
|
|
14
|
+
const dependenciesByTarget = new WeakMap();
|
|
13
15
|
/**
|
|
14
16
|
* Returns the value for a key in a {@link WeakMap} and lazily creates it when missing.
|
|
15
17
|
*
|
|
@@ -57,6 +59,17 @@ function getDecoratedProperties(target) {
|
|
|
57
59
|
function getValuesByProperty(instance) {
|
|
58
60
|
return getOrCreate(propertyValuesByInstance, instance, () => new Map());
|
|
59
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Registers that `dependentProp` should be re-validated when `dependencyProp` changes.
|
|
64
|
+
* Ensures the dependency property has an accessor so its setter can trigger dependents.
|
|
65
|
+
*/
|
|
66
|
+
export function registerDependency(target, dependencyProp, dependentProp) {
|
|
67
|
+
// Ensure dependency has an accessor so its setter can run dependent validators
|
|
68
|
+
createPropertyAccessor(target, dependencyProp);
|
|
69
|
+
const depsByProp = getOrCreate(dependenciesByTarget, target, () => new Map());
|
|
70
|
+
const dependents = getOrCreate(depsByProp, dependencyProp, () => new Set());
|
|
71
|
+
dependents.add(dependentProp);
|
|
72
|
+
}
|
|
60
73
|
/**
|
|
61
74
|
* Defines an accessor for a decorated property that stores values per instance and
|
|
62
75
|
* triggers validation after the component first loads.
|
|
@@ -79,6 +92,17 @@ function createPropertyAccessor(target, property) {
|
|
|
79
92
|
getValuesByProperty(this).set(property, newValue);
|
|
80
93
|
if (loadedInstances.has(this)) {
|
|
81
94
|
runValidators(this, property);
|
|
95
|
+
// Run validators for any properties that depend on this property.
|
|
96
|
+
const proto = Object.getPrototypeOf(this);
|
|
97
|
+
const depsByProp = dependenciesByTarget.get(proto);
|
|
98
|
+
if (depsByProp) {
|
|
99
|
+
const dependents = depsByProp.get(property);
|
|
100
|
+
if (dependents) {
|
|
101
|
+
for (const dependent of dependents) {
|
|
102
|
+
runValidators(this, dependent);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
82
106
|
}
|
|
83
107
|
},
|
|
84
108
|
enumerable: true,
|