@swisspost/design-system-components 10.0.0-next.38 → 10.0.0-next.40
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/index-2b2b85e5.js +96 -0
- package/dist/cjs/index-b60129c4.js +2 -6
- package/dist/cjs/index.cjs.js +23 -29
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{package-3e61e6f3.js → package-b731881e.js} +1 -1
- package/dist/cjs/placement-b2bb6ec4.js +18 -0
- package/dist/cjs/post-accordion-item-5c879102.js +161 -0
- package/dist/cjs/post-accordion_2.cjs.entry.js +16 -0
- package/dist/cjs/{post-avatar-22bfd12e.js → post-avatar-4f1681df.js} +21 -4
- package/dist/cjs/post-avatar.cjs.entry.js +3 -4
- package/dist/cjs/{post-back-to-top-f682ea05.js → post-back-to-top-abbb4ac4.js} +8 -11
- package/dist/cjs/post-back-to-top.cjs.entry.js +3 -5
- package/dist/cjs/{post-banner-5c749a94.js → post-banner-4d99c51c.js} +12 -17
- package/dist/cjs/post-banner.cjs.entry.js +3 -8
- package/dist/cjs/post-breadcrumb-item_2.cjs.entry.js +3 -7
- package/dist/cjs/{post-breadcrumbs-76f55ae5.js → post-breadcrumbs-5ceabb10.js} +13 -7
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +3 -3
- package/dist/cjs/{post-card-control-161a7102.js → post-card-control-b657aeaa.js} +42 -21
- package/dist/cjs/post-card-control.cjs.entry.js +3 -5
- package/dist/cjs/post-closebutton_15.cjs.entry.js +5 -9
- package/dist/cjs/{post-collapsible-trigger-6cdf4481.js → post-collapsible-trigger-33f09d6c.js} +5 -8
- package/dist/cjs/post-collapsible_2.cjs.entry.js +3 -8
- package/dist/cjs/post-components.cjs.js +1 -1
- package/dist/cjs/{post-footer-15d78645.js → post-footer-022cf408.js} +39 -11
- package/dist/cjs/post-footer.cjs.entry.js +3 -2
- package/dist/cjs/{post-linkarea-095d1928.js → post-linkarea-5fbb2e25.js} +2 -2
- package/dist/cjs/post-linkarea.cjs.entry.js +2 -2
- package/dist/cjs/{post-menu-item-387e079b.js → post-menu-item-d4cc4742.js} +4 -4
- package/dist/cjs/{post-popover-388c8091.js → post-popover-b7cd0091.js} +20 -5
- package/dist/cjs/post-popover.cjs.entry.js +4 -2
- package/dist/cjs/{post-rating-246e4d89.js → post-rating-c81d1ac3.js} +29 -8
- package/dist/cjs/post-rating.cjs.entry.js +4 -2
- package/dist/cjs/{post-tab-header-0e9d0e06.js → post-tab-header-1db15093.js} +4 -4
- package/dist/cjs/post-tab-header.cjs.entry.js +3 -4
- package/dist/cjs/{post-tab-panel-f952714f.js → post-tab-panel-698981b8.js} +11 -2
- package/dist/cjs/post-tab-panel.cjs.entry.js +4 -2
- package/dist/cjs/{post-tabs-97c30d81.js → post-tabs-79eab811.js} +2 -2
- package/dist/cjs/post-tabs.cjs.entry.js +2 -2
- package/dist/cjs/{post-tag-58003cf0.js → post-tag-66a52727.js} +18 -5
- package/dist/cjs/post-tag.cjs.entry.js +4 -2
- package/dist/cjs/{post-togglebutton-87c984d8.js → post-togglebutton-a6b8b75d.js} +89 -92
- package/dist/cjs/{post-tooltip-28e7711a.js → post-tooltip-560cf42c.js} +11 -10
- package/dist/cjs/{post-tooltip-trigger-cbc53d14.js → post-tooltip-trigger-2a54e3e4.js} +6 -8
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +3 -3
- package/dist/cjs/post-tooltip.cjs.entry.js +4 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/post-accordion/post-accordion.css +1 -1
- package/dist/collection/components/post-accordion/post-accordion.js +7 -7
- package/dist/collection/components/post-accordion-item/post-accordion-item.css +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +5 -6
- package/dist/collection/components/post-avatar/post-avatar.js +25 -2
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +8 -10
- package/dist/collection/components/post-banner/post-banner.js +13 -18
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.js +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +15 -7
- package/dist/collection/components/post-card-control/post-card-control.js +58 -33
- package/dist/collection/components/post-closebutton/post-closebutton.js +1 -1
- package/dist/collection/components/post-collapsible/post-collapsible.js +1 -1
- package/dist/collection/components/post-collapsible-trigger/post-collapsible-trigger.js +4 -5
- package/dist/collection/components/post-footer/post-footer.css +1 -1
- package/dist/collection/components/post-footer/post-footer.js +39 -8
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +29 -54
- package/dist/collection/components/post-icon/post-icon.js +17 -37
- package/dist/collection/components/post-language-option/post-language-option.js +13 -13
- package/dist/collection/components/post-language-switch/post-language-switch.js +5 -5
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-list/post-list.js +1 -1
- package/dist/collection/components/post-list-item/post-list-item.js +1 -1
- package/dist/collection/components/post-logo/post-logo.js +2 -2
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.css +1 -1
- package/dist/collection/components/post-mainnavigation/post-mainnavigation.js +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.css +1 -1
- package/dist/collection/components/post-megadropdown/post-megadropdown.js +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.css +1 -1
- package/dist/collection/components/post-megadropdown-trigger/post-megadropdown-trigger.js +3 -3
- package/dist/collection/components/post-menu/post-menu.js +13 -2
- package/dist/collection/components/post-menu-item/post-menu-item.js +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +3 -3
- package/dist/collection/components/post-popover/post-popover.js +21 -2
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +26 -4
- package/dist/collection/components/post-rating/post-rating.js +29 -2
- package/dist/collection/components/post-tab-header/post-tab-header.js +6 -11
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +13 -2
- package/dist/collection/components/post-tabs/post-tabs.js +2 -2
- package/dist/collection/components/post-tag/post-tag.js +23 -11
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -12
- package/dist/collection/components/post-tooltip/post-tooltip.css +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +12 -12
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +5 -7
- package/dist/collection/types/index.js +2 -0
- package/dist/collection/types/placement.js +14 -0
- package/dist/collection/types/property-types.js +1 -0
- package/dist/collection/utils/is-value-empty.js +4 -0
- package/dist/collection/utils/property-checkers/check-one-of.js +3 -4
- package/dist/collection/utils/property-checkers/check-pattern.js +3 -4
- package/dist/collection/utils/property-checkers/check-type.js +4 -6
- package/dist/collection/utils/property-checkers/check-url.js +5 -5
- package/dist/collection/utils/property-checkers/constants.js +1 -1
- package/dist/collection/utils/property-checkers/empty-or.js +4 -6
- package/dist/collection/utils/property-checkers/index.js +6 -6
- package/dist/collection/utils/property-checkers/required-and.js +14 -0
- package/dist/components/index2.js +60 -19
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +6 -6
- package/dist/components/post-accordion2.js +8 -8
- package/dist/components/post-avatar2.js +24 -4
- package/dist/components/post-back-to-top2.js +9 -12
- package/dist/components/post-banner2.js +12 -18
- package/dist/components/post-breadcrumb-item2.js +2 -2
- package/dist/components/post-breadcrumbs2.js +14 -7
- package/dist/components/post-card-control2.js +41 -16
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +3 -5
- package/dist/components/post-collapsible2.js +2 -2
- package/dist/components/post-footer2.js +46 -9
- package/dist/components/post-header2.js +31 -33
- package/dist/components/post-icon2.js +9 -25
- package/dist/components/post-language-option2.js +9 -10
- package/dist/components/post-language-switch2.js +4 -6
- package/dist/components/post-linkarea2.js +1 -1
- package/dist/components/post-list-item2.js +1 -1
- package/dist/components/post-list2.js +1 -1
- package/dist/components/post-logo2.js +2 -2
- package/dist/components/post-mainnavigation2.js +2 -2
- package/dist/components/post-megadropdown-trigger2.js +4 -4
- package/dist/components/post-megadropdown2.js +2 -2
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +3 -3
- package/dist/components/post-menu2.js +12 -2
- package/dist/components/post-popover2.js +20 -3
- package/dist/components/post-popovercontainer2.js +37 -3
- package/dist/components/post-rating2.js +26 -1
- package/dist/components/post-tab-header2.js +3 -3
- package/dist/components/post-tab-panel2.js +12 -1
- package/dist/components/post-tabs2.js +1 -1
- package/dist/components/post-tag2.js +19 -5
- package/dist/components/post-togglebutton2.js +1 -12
- package/dist/components/post-tooltip-trigger2.js +5 -7
- package/dist/components/post-tooltip2.js +11 -11
- package/dist/components/switch-variants.js +3 -0
- package/dist/docs.json +49 -89
- package/dist/esm/index-f4d19816.js +2 -6
- package/dist/esm/index-ffccd040.js +88 -0
- package/dist/esm/index.js +22 -28
- package/dist/esm/loader.js +1 -1
- package/dist/esm/package-9374eb90.js +3 -0
- package/dist/esm/placement-8d56605d.js +16 -0
- package/dist/esm/post-accordion-item-f416bd95.js +158 -0
- package/dist/esm/post-accordion_2.entry.js +7 -0
- package/dist/esm/{post-avatar-639dc17a.js → post-avatar-2cb5190b.js} +21 -4
- package/dist/esm/post-avatar.entry.js +3 -4
- package/dist/esm/{post-back-to-top-8099279e.js → post-back-to-top-f877d4c6.js} +8 -11
- package/dist/esm/post-back-to-top.entry.js +3 -5
- package/dist/esm/{post-banner-54834fbf.js → post-banner-576a5adb.js} +12 -17
- package/dist/esm/post-banner.entry.js +3 -8
- package/dist/esm/post-breadcrumb-item_2.entry.js +3 -7
- package/dist/esm/{post-breadcrumbs-caf56014.js → post-breadcrumbs-63223336.js} +13 -7
- package/dist/esm/post-breadcrumbs.entry.js +3 -3
- package/dist/esm/{post-card-control-b063586b.js → post-card-control-2eebe7b4.js} +37 -16
- package/dist/esm/post-card-control.entry.js +3 -5
- package/dist/esm/post-closebutton_15.entry.js +5 -9
- package/dist/esm/{post-collapsible-trigger-727bcde1.js → post-collapsible-trigger-561df34e.js} +5 -8
- package/dist/esm/post-collapsible_2.entry.js +3 -8
- package/dist/esm/post-components.js +1 -1
- package/dist/esm/{post-footer-16f1a8de.js → post-footer-a270f67b.js} +36 -8
- package/dist/esm/post-footer.entry.js +3 -2
- package/dist/esm/{post-linkarea-4e4228fb.js → post-linkarea-456ce63d.js} +2 -2
- package/dist/esm/post-linkarea.entry.js +2 -2
- package/dist/esm/{post-menu-item-e9dd8173.js → post-menu-item-e051284c.js} +4 -4
- package/dist/esm/{post-popover-46ede6b5.js → post-popover-7c3c9072.js} +17 -2
- package/dist/esm/post-popover.entry.js +4 -2
- package/dist/esm/{post-rating-8d0d970b.js → post-rating-2c9dd11f.js} +23 -2
- package/dist/esm/post-rating.entry.js +4 -2
- package/dist/esm/{post-tab-header-8224c7c2.js → post-tab-header-f90b2f93.js} +4 -4
- package/dist/esm/post-tab-header.entry.js +3 -4
- package/dist/esm/{post-tab-panel-dfdeccd3.js → post-tab-panel-c19b5e30.js} +11 -2
- package/dist/esm/post-tab-panel.entry.js +4 -2
- package/dist/esm/{post-tabs-fabd0569.js → post-tabs-0dadedf2.js} +2 -2
- package/dist/esm/post-tabs.entry.js +2 -2
- package/dist/esm/{post-tag-13994238.js → post-tag-b8be3b0c.js} +18 -5
- package/dist/esm/post-tag.entry.js +4 -2
- package/dist/esm/{post-togglebutton-87967c5b.js → post-togglebutton-83339cc9.js} +89 -92
- package/dist/esm/{post-tooltip-eecaa4c7.js → post-tooltip-3cc82984.js} +11 -10
- package/dist/esm/{post-tooltip-trigger-642cbb22.js → post-tooltip-trigger-898c3dbc.js} +6 -8
- package/dist/esm/post-tooltip-trigger.entry.js +3 -3
- package/dist/esm/post-tooltip.entry.js +4 -3
- package/dist/post-components/index.esm.js +1 -1
- package/dist/post-components/p-104ddc50.js +1 -0
- package/dist/post-components/p-13b41e32.entry.js +1 -0
- package/dist/post-components/p-1906d77c.js +1 -0
- package/dist/post-components/p-19d0e6ea.entry.js +1 -0
- package/dist/post-components/p-1b9afb34.entry.js +1 -0
- package/dist/post-components/{p-a07f85ee.js → p-1fbffc90.js} +1 -1
- package/dist/post-components/p-234925fa.js +1 -0
- package/dist/post-components/p-23fb976f.entry.js +1 -0
- package/dist/post-components/p-24c42ebe.entry.js +1 -0
- package/dist/post-components/{p-19317b15.js → p-28c19671.js} +2 -2
- package/dist/post-components/p-37aaa30f.js +1 -0
- package/dist/post-components/p-3baf0b40.entry.js +1 -0
- package/dist/post-components/p-4390192f.js +1 -0
- package/dist/post-components/p-4a071696.js +1 -0
- package/dist/post-components/p-4c2d5072.js +1 -0
- package/dist/post-components/p-51b6114c.entry.js +1 -0
- package/dist/post-components/p-59a38c23.js +1 -0
- package/dist/post-components/p-5fb4fc65.js +1 -0
- package/dist/post-components/p-64c13aaf.entry.js +1 -0
- package/dist/post-components/p-66679f9d.entry.js +1 -0
- package/dist/post-components/p-68a98f0b.js +1 -0
- package/dist/post-components/{p-692ba59d.js → p-6a4dc55e.js} +1 -1
- package/dist/post-components/p-789f9a23.entry.js +1 -0
- package/dist/post-components/p-7e6eae42.js +1 -0
- package/dist/post-components/p-8117dd0c.js +1 -0
- package/dist/post-components/p-814c0c4d.entry.js +1 -0
- package/dist/post-components/p-87e0d6fa.js +1 -0
- package/dist/post-components/p-988d20f4.js +1 -0
- package/dist/post-components/p-9b1e4e52.entry.js +1 -0
- package/dist/post-components/p-ab44a18c.entry.js +1 -0
- package/dist/post-components/p-b176309b.js +1 -0
- package/dist/post-components/p-b2952b0e.entry.js +1 -0
- package/dist/post-components/p-c10b2a2f.js +1 -0
- package/dist/post-components/{p-0dcd25ab.js → p-c80cb846.js} +1 -1
- package/dist/post-components/p-da4704c1.js +1 -0
- package/dist/post-components/p-dc4de84a.entry.js +1 -0
- package/dist/post-components/p-f1f0ace3.entry.js +1 -0
- package/dist/post-components/p-f34fb6c4.entry.js +1 -0
- package/dist/post-components/p-f6f914bb.js +1 -0
- package/dist/post-components/p-fe7e64cf.entry.js +1 -0
- package/dist/post-components/p-fee94252.entry.js +1 -0
- package/dist/post-components/post-components.css +1 -0
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/prebuild.js +26 -0
- package/dist/types/components/post-accordion/post-accordion.d.ts +2 -1
- package/dist/types/components/post-avatar/post-avatar.d.ts +3 -0
- package/dist/types/components/post-back-to-top/post-back-to-top.d.ts +1 -1
- package/dist/types/components/post-banner/post-banner.d.ts +3 -4
- package/dist/types/components/post-breadcrumbs/post-breadcrumbs.d.ts +2 -1
- package/dist/types/components/post-card-control/post-card-control.d.ts +10 -6
- package/dist/types/components/post-footer/post-footer.d.ts +8 -2
- package/dist/types/components/post-header/post-header.d.ts +5 -9
- package/dist/types/components/post-icon/post-icon.d.ts +5 -7
- package/dist/types/components/post-language-option/post-language-option.d.ts +5 -5
- package/dist/types/components/post-logo/post-logo.d.ts +1 -1
- package/dist/types/components/post-menu/post-menu.d.ts +1 -0
- package/dist/types/components/post-popover/post-popover.d.ts +2 -0
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +3 -0
- package/dist/types/components/post-rating/post-rating.d.ts +4 -0
- package/dist/types/components/post-tab-header/post-tab-header.d.ts +1 -1
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +1 -0
- package/dist/types/components/post-tabs/post-tabs.d.ts +1 -1
- package/dist/types/components/post-tag/post-tag.d.ts +5 -3
- package/dist/types/components/post-togglebutton/post-togglebutton.d.ts +0 -1
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +3 -3
- package/dist/types/components.d.ts +38 -59
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/prebuild.d.ts +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/types/index.d.ts +2 -0
- package/dist/types/types/placement.d.ts +1 -0
- package/dist/types/types/property-types.d.ts +1 -0
- package/dist/types/utils/is-value-empty.d.ts +1 -0
- package/dist/types/utils/property-checkers/check-one-of.d.ts +1 -1
- package/dist/types/utils/property-checkers/check-pattern.d.ts +1 -1
- package/dist/types/utils/property-checkers/check-type.d.ts +2 -2
- package/dist/types/utils/property-checkers/check-url.d.ts +1 -1
- package/dist/types/utils/property-checkers/constants.d.ts +1 -1
- package/dist/types/utils/property-checkers/empty-or.d.ts +3 -1
- package/dist/types/utils/property-checkers/index.d.ts +16 -9
- package/dist/types/utils/property-checkers/required-and.d.ts +3 -0
- package/loaders/index2.js +60 -19
- package/loaders/package.js +1 -1
- package/loaders/post-accordion-item2.js +6 -6
- package/loaders/post-accordion.js +1 -124
- package/{dist/esm/post-accordion-03796d13.js → loaders/post-accordion2.js} +43 -20
- package/loaders/post-avatar.js +24 -4
- package/loaders/post-back-to-top.js +9 -12
- package/loaders/post-banner.js +12 -18
- package/loaders/post-breadcrumb-item2.js +2 -2
- package/loaders/post-breadcrumbs.js +14 -7
- package/loaders/post-card-control.js +41 -16
- package/loaders/post-closebutton.js +1 -1
- package/loaders/post-collapsible-trigger2.js +3 -5
- package/loaders/post-collapsible2.js +2 -2
- package/loaders/post-footer.js +46 -9
- package/loaders/post-header.js +31 -33
- package/loaders/post-icon2.js +9 -25
- package/loaders/post-language-option.js +9 -10
- package/loaders/post-language-switch.js +4 -6
- package/loaders/post-linkarea.js +1 -1
- package/loaders/post-list-item.js +1 -1
- package/loaders/post-list.js +1 -1
- package/loaders/post-logo.js +2 -2
- package/loaders/post-mainnavigation.js +2 -2
- package/loaders/post-megadropdown-trigger.js +4 -4
- package/loaders/post-megadropdown.js +2 -2
- package/loaders/post-menu-item2.js +1 -1
- package/loaders/post-menu-trigger2.js +3 -3
- package/loaders/post-menu2.js +12 -2
- package/loaders/post-popover.js +20 -3
- package/loaders/post-popovercontainer.js +1 -1
- package/loaders/post-popovercontainer2.js +37 -3
- package/loaders/post-rating.js +26 -1
- package/loaders/post-tab-header.js +3 -3
- package/loaders/post-tab-panel.js +12 -1
- package/loaders/post-tabs.js +1 -1
- package/loaders/post-tag.js +19 -5
- package/loaders/post-togglebutton.js +1 -12
- package/loaders/post-tooltip-trigger.js +5 -7
- package/loaders/post-tooltip.js +11 -11
- package/loaders/switch-variants.js +3 -0
- package/package.json +19 -9
- package/dist/cjs/check-non-empty-bd99d236.js +0 -15
- package/dist/cjs/check-one-of-75d270b5.js +0 -13
- package/dist/cjs/check-type-cdbf6d29.js +0 -21
- package/dist/cjs/check-url-220a286c.js +0 -19
- package/dist/cjs/constants-238701d3.js +0 -5
- package/dist/cjs/heading-levels-608d432e.js +0 -5
- package/dist/cjs/index-23e36ff7.js +0 -37
- package/dist/cjs/post-accordion-e54524be.js +0 -105
- package/dist/cjs/post-accordion-item-86f11a16.js +0 -64
- package/dist/cjs/post-accordion-item.cjs.entry.js +0 -20
- package/dist/cjs/post-accordion.cjs.entry.js +0 -15
- package/dist/collection/utils/property-checkers/check-non-empty.js +0 -10
- package/dist/components/check-non-empty.js +0 -13
- package/dist/components/check-one-of.js +0 -11
- package/dist/components/check-type.js +0 -19
- package/dist/components/constants.js +0 -3
- package/dist/esm/check-non-empty-258a56b3.js +0 -13
- package/dist/esm/check-one-of-0bee20f5.js +0 -11
- package/dist/esm/check-type-37d5d307.js +0 -19
- package/dist/esm/check-url-17962bc8.js +0 -17
- package/dist/esm/constants-8d548297.js +0 -3
- package/dist/esm/heading-levels-5b7b4349.js +0 -3
- package/dist/esm/index-8f8fe5b0.js +0 -32
- package/dist/esm/package-33ac2576.js +0 -3
- package/dist/esm/post-accordion-item-d29c49e5.js +0 -62
- package/dist/esm/post-accordion-item.entry.js +0 -12
- package/dist/esm/post-accordion.entry.js +0 -7
- package/dist/post-components/p-0539071d.js +0 -1
- package/dist/post-components/p-181c73d5.js +0 -1
- package/dist/post-components/p-1ef9415b.js +0 -1
- package/dist/post-components/p-247a1668.js +0 -1
- package/dist/post-components/p-24d0695f.entry.js +0 -1
- package/dist/post-components/p-2e50a07d.entry.js +0 -1
- package/dist/post-components/p-30eb4d87.js +0 -1
- package/dist/post-components/p-440193f4.js +0 -1
- package/dist/post-components/p-46008c18.entry.js +0 -1
- package/dist/post-components/p-47ab2c2b.entry.js +0 -1
- package/dist/post-components/p-4c049de0.entry.js +0 -1
- package/dist/post-components/p-4c4acc32.entry.js +0 -1
- package/dist/post-components/p-5d473fcd.js +0 -1
- package/dist/post-components/p-5d539b30.js +0 -1
- package/dist/post-components/p-6783e509.entry.js +0 -1
- package/dist/post-components/p-6933fb57.entry.js +0 -1
- package/dist/post-components/p-72197a6b.js +0 -1
- package/dist/post-components/p-7709c14a.js +0 -1
- package/dist/post-components/p-77910344.entry.js +0 -1
- package/dist/post-components/p-80e5100e.entry.js +0 -1
- package/dist/post-components/p-84fbf49c.js +0 -1
- package/dist/post-components/p-85fdc2d3.js +0 -1
- package/dist/post-components/p-8c09291c.js +0 -1
- package/dist/post-components/p-93da1a5f.js +0 -1
- package/dist/post-components/p-9b8ee310.entry.js +0 -1
- package/dist/post-components/p-9efb84d3.entry.js +0 -1
- package/dist/post-components/p-9fbf2f82.entry.js +0 -1
- package/dist/post-components/p-a25019de.js +0 -1
- package/dist/post-components/p-a710ee00.js +0 -1
- package/dist/post-components/p-b94e5b4d.entry.js +0 -1
- package/dist/post-components/p-c2348d3d.js +0 -1
- package/dist/post-components/p-c6b03446.entry.js +0 -1
- package/dist/post-components/p-d0dfd5f9.js +0 -1
- package/dist/post-components/p-d45df336.js +0 -1
- package/dist/post-components/p-d4890d50.entry.js +0 -1
- package/dist/post-components/p-d5210531.entry.js +0 -1
- package/dist/post-components/p-dd39c542.entry.js +0 -1
- package/dist/post-components/p-df6c8a4c.js +0 -1
- package/dist/post-components/p-e068a41e.js +0 -1
- package/dist/post-components/p-e585c6fe.js +0 -1
- package/dist/post-components/p-f2c4a48d.js +0 -1
- package/dist/post-components/p-f31b9b5d.entry.js +0 -1
- package/dist/post-components/p-f58252d5.entry.js +0 -1
- package/dist/post-components/p-fda767f0.js +0 -1
- package/dist/types/utils/property-checkers/check-non-empty.d.ts +0 -3
- package/loaders/check-non-empty.js +0 -13
- package/loaders/check-one-of.js +0 -11
- package/loaders/check-type.js +0 -19
- package/loaders/constants.js +0 -3
|
@@ -7,12 +7,10 @@
|
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
8
|
import { HeadingLevel } from "./types/index";
|
|
9
9
|
import { BannerType } from "./components/post-banner/banner-types";
|
|
10
|
-
import { DEVICE_SIZE } from "./components/post-header/post-header";
|
|
11
10
|
import { SwitchVariant } from "./components/post-language-switch/switch-variants";
|
|
12
11
|
import { Placement } from "@floating-ui/dom";
|
|
13
12
|
export { HeadingLevel } from "./types/index";
|
|
14
13
|
export { BannerType } from "./components/post-banner/banner-types";
|
|
15
|
-
export { DEVICE_SIZE } from "./components/post-header/post-header";
|
|
16
14
|
export { SwitchVariant } from "./components/post-language-switch/switch-variants";
|
|
17
15
|
export { Placement } from "@floating-ui/dom";
|
|
18
16
|
export namespace Components {
|
|
@@ -85,7 +83,7 @@ export namespace Components {
|
|
|
85
83
|
/**
|
|
86
84
|
* The label to use for the close button of a dismissible banner.
|
|
87
85
|
*/
|
|
88
|
-
"dismissLabel"
|
|
86
|
+
"dismissLabel"?: string;
|
|
89
87
|
/**
|
|
90
88
|
* If `true`, a close button (×) is displayed and the banner can be dismissed by the user.
|
|
91
89
|
*/
|
|
@@ -93,7 +91,7 @@ export namespace Components {
|
|
|
93
91
|
/**
|
|
94
92
|
* The icon to display in the banner. By default, the icon depends on the banner type. If `none`, no icon is displayed.
|
|
95
93
|
*/
|
|
96
|
-
"icon"
|
|
94
|
+
"icon"?: string;
|
|
97
95
|
/**
|
|
98
96
|
* The type of the banner.
|
|
99
97
|
*/
|
|
@@ -126,7 +124,7 @@ export namespace Components {
|
|
|
126
124
|
/**
|
|
127
125
|
* Defines the description in the control-label.
|
|
128
126
|
*/
|
|
129
|
-
"description"
|
|
127
|
+
"description"?: string;
|
|
130
128
|
/**
|
|
131
129
|
* Defines the `disabled` attribute of the control. If `true`, the user can not interact with the control and the controls value will not be included in the forms' data.
|
|
132
130
|
*/
|
|
@@ -138,7 +136,7 @@ export namespace Components {
|
|
|
138
136
|
/**
|
|
139
137
|
* Defines the icon `name` inside the card. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span>
|
|
140
138
|
*/
|
|
141
|
-
"icon"
|
|
139
|
+
"icon"?: string;
|
|
142
140
|
/**
|
|
143
141
|
* Defines the text in the control-label.
|
|
144
142
|
*/
|
|
@@ -146,9 +144,9 @@ export namespace Components {
|
|
|
146
144
|
/**
|
|
147
145
|
* Defines the `name` attribute of the control. <span className="mb-4 banner banner-sm banner-info">This is a required property, when the control should participate in a native `form`. If not specified, a native `form` will never contain this controls value.</span> <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
148
146
|
*/
|
|
149
|
-
"name"
|
|
147
|
+
"name"?: string;
|
|
150
148
|
/**
|
|
151
|
-
* A public method to reset the controls `checked` and `validity` state. The validity state is set to `
|
|
149
|
+
* A public method to reset the controls `checked` and `validity` state. The validity state is set to `undefined`, so it's neither valid nor invalid.
|
|
152
150
|
*/
|
|
153
151
|
"reset": () => Promise<void>;
|
|
154
152
|
/**
|
|
@@ -158,11 +156,11 @@ export namespace Components {
|
|
|
158
156
|
/**
|
|
159
157
|
* Defines the validation `validity` of the control. To reset validity to an undefined state, simply remove the attribute from the control.
|
|
160
158
|
*/
|
|
161
|
-
"validity"
|
|
159
|
+
"validity"?: boolean;
|
|
162
160
|
/**
|
|
163
161
|
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
164
162
|
*/
|
|
165
|
-
"value"
|
|
163
|
+
"value"?: string;
|
|
166
164
|
}
|
|
167
165
|
interface PostClosebutton {
|
|
168
166
|
}
|
|
@@ -205,11 +203,11 @@ export namespace Components {
|
|
|
205
203
|
/**
|
|
206
204
|
* The name of the animation.
|
|
207
205
|
*/
|
|
208
|
-
"animation"?: Animation
|
|
206
|
+
"animation"?: Animation;
|
|
209
207
|
/**
|
|
210
208
|
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
211
209
|
*/
|
|
212
|
-
"base"?: string
|
|
210
|
+
"base"?: string;
|
|
213
211
|
/**
|
|
214
212
|
* When set to `true`, the icon will be flipped horizontally.
|
|
215
213
|
*/
|
|
@@ -225,17 +223,17 @@ export namespace Components {
|
|
|
225
223
|
/**
|
|
226
224
|
* The number of degree for the css rotate transformation.
|
|
227
225
|
*/
|
|
228
|
-
"rotate"?: number
|
|
226
|
+
"rotate"?: number;
|
|
229
227
|
/**
|
|
230
228
|
* The number for the css scale transformation.
|
|
231
229
|
*/
|
|
232
|
-
"scale"?: number
|
|
230
|
+
"scale"?: number;
|
|
233
231
|
}
|
|
234
232
|
interface PostLanguageOption {
|
|
235
233
|
/**
|
|
236
234
|
* If set to `true`, the language option is considered the current language for the page.
|
|
237
235
|
*/
|
|
238
|
-
"active"
|
|
236
|
+
"active"?: boolean;
|
|
239
237
|
/**
|
|
240
238
|
* The ISO 639 language code, formatted according to [RFC 5646 (also known as BCP 47)](https://datatracker.ietf.org/doc/html/rfc5646). For example, "de".
|
|
241
239
|
*/
|
|
@@ -243,7 +241,7 @@ export namespace Components {
|
|
|
243
241
|
/**
|
|
244
242
|
* The full name of the language. For example, "Deutsch".
|
|
245
243
|
*/
|
|
246
|
-
"name"
|
|
244
|
+
"name"?: string;
|
|
247
245
|
/**
|
|
248
246
|
* Selects the language option programmatically.
|
|
249
247
|
*/
|
|
@@ -251,11 +249,11 @@ export namespace Components {
|
|
|
251
249
|
/**
|
|
252
250
|
* The URL used for the href attribute of the internal anchor. This field is optional; if not provided, a button will be used internally instead of an anchor.
|
|
253
251
|
*/
|
|
254
|
-
"url"
|
|
252
|
+
"url"?: string;
|
|
255
253
|
/**
|
|
256
254
|
* To communicate the variant prop from the parent (post-language-switch) component to the child (post-language-option) component. See parent docs for a description about the property itself.
|
|
257
255
|
*/
|
|
258
|
-
"variant"?: SwitchVariant
|
|
256
|
+
"variant"?: SwitchVariant;
|
|
259
257
|
}
|
|
260
258
|
interface PostLanguageSwitch {
|
|
261
259
|
/**
|
|
@@ -289,7 +287,7 @@ export namespace Components {
|
|
|
289
287
|
/**
|
|
290
288
|
* The URL to which the user is redirected upon clicking the logo.
|
|
291
289
|
*/
|
|
292
|
-
"url"
|
|
290
|
+
"url"?: string | URL;
|
|
293
291
|
}
|
|
294
292
|
interface PostMainnavigation {
|
|
295
293
|
}
|
|
@@ -436,7 +434,7 @@ export namespace Components {
|
|
|
436
434
|
/**
|
|
437
435
|
* The name of the panel controlled by the tab header.
|
|
438
436
|
*/
|
|
439
|
-
"panel":
|
|
437
|
+
"panel": string;
|
|
440
438
|
}
|
|
441
439
|
interface PostTabPanel {
|
|
442
440
|
/**
|
|
@@ -448,7 +446,7 @@ export namespace Components {
|
|
|
448
446
|
/**
|
|
449
447
|
* The name of the panel that is initially shown. If not specified, it defaults to the panel associated with the first tab. **Changing this value after initialization has no effect.**
|
|
450
448
|
*/
|
|
451
|
-
"activePanel"
|
|
449
|
+
"activePanel"?: HTMLPostTabPanelElement['name'];
|
|
452
450
|
/**
|
|
453
451
|
* Shows the panel with the given name and selects its associated tab. Any other panel that was previously shown becomes hidden and its associated tab is unselected.
|
|
454
452
|
*/
|
|
@@ -458,15 +456,15 @@ export namespace Components {
|
|
|
458
456
|
/**
|
|
459
457
|
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
460
458
|
*/
|
|
461
|
-
"icon":
|
|
459
|
+
"icon": string;
|
|
462
460
|
/**
|
|
463
461
|
* Defines the size of the component.
|
|
464
462
|
*/
|
|
465
|
-
"size"
|
|
463
|
+
"size"?: 'sm';
|
|
466
464
|
/**
|
|
467
465
|
* Defines the color variant of the component.
|
|
468
466
|
*/
|
|
469
|
-
"variant"
|
|
467
|
+
"variant"?: 'white' | 'info' | 'success' | 'error' | 'warning' | 'yellow';
|
|
470
468
|
}
|
|
471
469
|
interface PostTogglebutton {
|
|
472
470
|
/**
|
|
@@ -478,7 +476,7 @@ export namespace Components {
|
|
|
478
476
|
/**
|
|
479
477
|
* Choose a tooltip animation
|
|
480
478
|
*/
|
|
481
|
-
"animation"?: 'pop-in'
|
|
479
|
+
"animation"?: 'pop-in';
|
|
482
480
|
/**
|
|
483
481
|
* Whether or not to display a little pointer arrow
|
|
484
482
|
*/
|
|
@@ -530,10 +528,6 @@ export interface PostCollapsibleCustomEvent<T> extends CustomEvent<T> {
|
|
|
530
528
|
detail: T;
|
|
531
529
|
target: HTMLPostCollapsibleElement;
|
|
532
530
|
}
|
|
533
|
-
export interface PostHeaderCustomEvent<T> extends CustomEvent<T> {
|
|
534
|
-
detail: T;
|
|
535
|
-
target: HTMLPostHeaderElement;
|
|
536
|
-
}
|
|
537
531
|
export interface PostLanguageOptionCustomEvent<T> extends CustomEvent<T> {
|
|
538
532
|
detail: T;
|
|
539
533
|
target: HTMLPostLanguageOptionElement;
|
|
@@ -668,18 +662,7 @@ declare global {
|
|
|
668
662
|
prototype: HTMLPostFooterElement;
|
|
669
663
|
new (): HTMLPostFooterElement;
|
|
670
664
|
};
|
|
671
|
-
interface HTMLPostHeaderElementEventMap {
|
|
672
|
-
"postUpdateDevice": DEVICE_SIZE;
|
|
673
|
-
}
|
|
674
665
|
interface HTMLPostHeaderElement extends Components.PostHeader, HTMLStencilElement {
|
|
675
|
-
addEventListener<K extends keyof HTMLPostHeaderElementEventMap>(type: K, listener: (this: HTMLPostHeaderElement, ev: PostHeaderCustomEvent<HTMLPostHeaderElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
676
|
-
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
677
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
678
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
679
|
-
removeEventListener<K extends keyof HTMLPostHeaderElementEventMap>(type: K, listener: (this: HTMLPostHeaderElement, ev: PostHeaderCustomEvent<HTMLPostHeaderElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
680
|
-
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
681
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
682
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
683
666
|
}
|
|
684
667
|
var HTMLPostHeaderElement: {
|
|
685
668
|
prototype: HTMLPostHeaderElement;
|
|
@@ -1015,7 +998,7 @@ declare namespace LocalJSX {
|
|
|
1015
998
|
/**
|
|
1016
999
|
* The URL for the home breadcrumb item.
|
|
1017
1000
|
*/
|
|
1018
|
-
"homeUrl"
|
|
1001
|
+
"homeUrl": string;
|
|
1019
1002
|
}
|
|
1020
1003
|
/**
|
|
1021
1004
|
* @class PostCardControl - representing a stencil component
|
|
@@ -1060,7 +1043,7 @@ declare namespace LocalJSX {
|
|
|
1060
1043
|
/**
|
|
1061
1044
|
* Defines the validation `validity` of the control. To reset validity to an undefined state, simply remove the attribute from the control.
|
|
1062
1045
|
*/
|
|
1063
|
-
"validity"?:
|
|
1046
|
+
"validity"?: boolean;
|
|
1064
1047
|
/**
|
|
1065
1048
|
* Defines the `value` attribute of the control. <span className="banner banner-sm banner-info">This is a required property, when the control is used with type `radio`.</span>
|
|
1066
1049
|
*/
|
|
@@ -1082,7 +1065,7 @@ declare namespace LocalJSX {
|
|
|
1082
1065
|
/**
|
|
1083
1066
|
* Link the trigger to a post-collapsible with this id
|
|
1084
1067
|
*/
|
|
1085
|
-
"for"
|
|
1068
|
+
"for": string;
|
|
1086
1069
|
}
|
|
1087
1070
|
interface PostFooter {
|
|
1088
1071
|
/**
|
|
@@ -1091,10 +1074,6 @@ declare namespace LocalJSX {
|
|
|
1091
1074
|
"label": string;
|
|
1092
1075
|
}
|
|
1093
1076
|
interface PostHeader {
|
|
1094
|
-
/**
|
|
1095
|
-
* An event emitted when the device has changed
|
|
1096
|
-
*/
|
|
1097
|
-
"onPostUpdateDevice"?: (event: PostHeaderCustomEvent<DEVICE_SIZE>) => void;
|
|
1098
1077
|
}
|
|
1099
1078
|
/**
|
|
1100
1079
|
* @class PostIcon - representing a stencil component
|
|
@@ -1103,11 +1082,11 @@ declare namespace LocalJSX {
|
|
|
1103
1082
|
/**
|
|
1104
1083
|
* The name of the animation.
|
|
1105
1084
|
*/
|
|
1106
|
-
"animation"?: Animation
|
|
1085
|
+
"animation"?: Animation;
|
|
1107
1086
|
/**
|
|
1108
1087
|
* The base path, where the icons are located (must be a public url).<br/>Leave this field empty to use the default cdn url.
|
|
1109
1088
|
*/
|
|
1110
|
-
"base"?: string
|
|
1089
|
+
"base"?: string;
|
|
1111
1090
|
/**
|
|
1112
1091
|
* When set to `true`, the icon will be flipped horizontally.
|
|
1113
1092
|
*/
|
|
@@ -1123,11 +1102,11 @@ declare namespace LocalJSX {
|
|
|
1123
1102
|
/**
|
|
1124
1103
|
* The number of degree for the css rotate transformation.
|
|
1125
1104
|
*/
|
|
1126
|
-
"rotate"?: number
|
|
1105
|
+
"rotate"?: number;
|
|
1127
1106
|
/**
|
|
1128
1107
|
* The number for the css scale transformation.
|
|
1129
1108
|
*/
|
|
1130
|
-
"scale"?: number
|
|
1109
|
+
"scale"?: number;
|
|
1131
1110
|
}
|
|
1132
1111
|
interface PostLanguageOption {
|
|
1133
1112
|
/**
|
|
@@ -1157,17 +1136,17 @@ declare namespace LocalJSX {
|
|
|
1157
1136
|
/**
|
|
1158
1137
|
* To communicate the variant prop from the parent (post-language-switch) component to the child (post-language-option) component. See parent docs for a description about the property itself.
|
|
1159
1138
|
*/
|
|
1160
|
-
"variant"?: SwitchVariant
|
|
1139
|
+
"variant"?: SwitchVariant;
|
|
1161
1140
|
}
|
|
1162
1141
|
interface PostLanguageSwitch {
|
|
1163
1142
|
/**
|
|
1164
1143
|
* A title for the list of language options
|
|
1165
1144
|
*/
|
|
1166
|
-
"caption"
|
|
1145
|
+
"caption": string;
|
|
1167
1146
|
/**
|
|
1168
1147
|
* A descriptive text for the list of language options
|
|
1169
1148
|
*/
|
|
1170
|
-
"description"
|
|
1149
|
+
"description": string;
|
|
1171
1150
|
/**
|
|
1172
1151
|
* Whether the component is rendered as a list or a menu
|
|
1173
1152
|
*/
|
|
@@ -1299,13 +1278,13 @@ declare namespace LocalJSX {
|
|
|
1299
1278
|
/**
|
|
1300
1279
|
* The name of the panel controlled by the tab header.
|
|
1301
1280
|
*/
|
|
1302
|
-
"panel"
|
|
1281
|
+
"panel": string;
|
|
1303
1282
|
}
|
|
1304
1283
|
interface PostTabPanel {
|
|
1305
1284
|
/**
|
|
1306
1285
|
* The name of the panel, used to associate it with a tab header.
|
|
1307
1286
|
*/
|
|
1308
|
-
"name"
|
|
1287
|
+
"name": string;
|
|
1309
1288
|
}
|
|
1310
1289
|
interface PostTabs {
|
|
1311
1290
|
/**
|
|
@@ -1321,11 +1300,11 @@ declare namespace LocalJSX {
|
|
|
1321
1300
|
/**
|
|
1322
1301
|
* Defines the icon `name` inside of the component. <span className="banner banner-sm banner-info">If not set the icon will not show up.</span> To learn which icons are available, please visit our <a href="/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs">icon library</a>.
|
|
1323
1302
|
*/
|
|
1324
|
-
"icon"?:
|
|
1303
|
+
"icon"?: string;
|
|
1325
1304
|
/**
|
|
1326
1305
|
* Defines the size of the component.
|
|
1327
1306
|
*/
|
|
1328
|
-
"size"?:
|
|
1307
|
+
"size"?: 'sm';
|
|
1329
1308
|
/**
|
|
1330
1309
|
* Defines the color variant of the component.
|
|
1331
1310
|
*/
|
|
@@ -1341,7 +1320,7 @@ declare namespace LocalJSX {
|
|
|
1341
1320
|
/**
|
|
1342
1321
|
* Choose a tooltip animation
|
|
1343
1322
|
*/
|
|
1344
|
-
"animation"?: 'pop-in'
|
|
1323
|
+
"animation"?: 'pop-in';
|
|
1345
1324
|
/**
|
|
1346
1325
|
* Whether or not to display a little pointer arrow
|
|
1347
1326
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function createComponentNamesScssMap(): void;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Components, JSX
|
|
1
|
+
export { Components, JSX } from './components';
|
|
2
2
|
export { PostAccordion } from './components/post-accordion/post-accordion';
|
|
3
3
|
export { PostAccordionItem } from './components/post-accordion-item/post-accordion-item';
|
|
4
4
|
export { PostAvatar } from './components/post-avatar/post-avatar';
|
|
@@ -11,7 +11,7 @@ export { PostClosebutton } from './components/post-closebutton/post-closebutton'
|
|
|
11
11
|
export { PostCollapsible } from './components/post-collapsible/post-collapsible';
|
|
12
12
|
export { PostCollapsibleTrigger } from './components/post-collapsible-trigger/post-collapsible-trigger';
|
|
13
13
|
export { PostFooter } from './components/post-footer/post-footer';
|
|
14
|
-
export { PostHeader
|
|
14
|
+
export { PostHeader } from './components/post-header/post-header';
|
|
15
15
|
export { PostIcon } from './components/post-icon/post-icon';
|
|
16
16
|
export { PostLanguageOption } from './components/post-language-option/post-language-option';
|
|
17
17
|
export { PostLanguageSwitch } from './components/post-language-switch/post-language-switch';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PLACEMENT_TYPES: readonly ["top", "right", "bottom", "left", "top-start", "top-end", "right-start", "right-end", "bottom-start", "bottom-end", "left-start", "left-end"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PropertyType = 'boolean' | 'number' | 'string' | 'array' | 'object' | 'function';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isValueEmpty(value: unknown): boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { PropertyType } from "../../types/property-types";
|
|
2
2
|
export declare function checkType<T extends {
|
|
3
3
|
host: HTMLElement;
|
|
4
|
-
}>(component: T, prop: keyof T, type: PropertyType
|
|
4
|
+
}>(component: T, prop: keyof T, type: PropertyType): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const EMPTY_VALUES: string[];
|
|
1
|
+
export declare const EMPTY_VALUES: (string | number)[];
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare function emptyOr<T extends
|
|
1
|
+
export declare function emptyOr<T extends {
|
|
2
|
+
host: HTMLElement;
|
|
3
|
+
}, K extends keyof T, ExtraArgs extends unknown[]>(check: (component: T, prop: K, ...extraArgs: ExtraArgs) => void): (component: T, prop: K, ...extraArgs: ExtraArgs) => void;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
1
|
export declare const checkEmptyOrOneOf: <T extends {
|
|
2
2
|
host: HTMLElement;
|
|
3
|
-
}>(component: T, prop: keyof T, possibleValues: readonly unknown[]
|
|
3
|
+
}>(component: T, prop: keyof T, possibleValues: readonly unknown[]) => void;
|
|
4
4
|
export declare const checkEmptyOrPattern: <T extends {
|
|
5
5
|
host: HTMLElement;
|
|
6
|
-
}>(component: T, prop: keyof T, pattern: RegExp
|
|
6
|
+
}>(component: T, prop: keyof T, pattern: RegExp) => void;
|
|
7
7
|
export declare const checkEmptyOrType: <T extends {
|
|
8
8
|
host: HTMLElement;
|
|
9
|
-
}>(component: T, prop: keyof T, type: import("
|
|
9
|
+
}>(component: T, prop: keyof T, type: import("../../types").PropertyType) => void;
|
|
10
10
|
export declare const checkEmptyOrUrl: <T extends {
|
|
11
11
|
host: HTMLElement;
|
|
12
|
-
}>(component: T, prop: keyof T
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
|
|
12
|
+
}>(component: T, prop: keyof T) => void;
|
|
13
|
+
export declare const checkRequiredAndOneOf: <T extends {
|
|
14
|
+
host: HTMLElement;
|
|
15
|
+
}>(component: T, prop: keyof T, possibleValues: readonly unknown[]) => void;
|
|
16
|
+
export declare const checkRequiredAndPattern: <T extends {
|
|
17
|
+
host: HTMLElement;
|
|
18
|
+
}>(component: T, prop: keyof T, pattern: RegExp) => void;
|
|
19
|
+
export declare const checkRequiredAndType: <T extends {
|
|
20
|
+
host: HTMLElement;
|
|
21
|
+
}>(component: T, prop: keyof T, type: import("../../types").PropertyType) => void;
|
|
22
|
+
export declare const checkRequiredAndUrl: <T extends {
|
|
23
|
+
host: HTMLElement;
|
|
24
|
+
}>(component: T, prop: keyof T) => void;
|
package/loaders/index2.js
CHANGED
|
@@ -1,47 +1,88 @@
|
|
|
1
|
-
|
|
2
|
-
import { c as checkOneOf } from './check-one-of.js';
|
|
3
|
-
import { c as checkType } from './check-type.js';
|
|
1
|
+
const EMPTY_VALUES = [undefined, null, '', NaN];
|
|
4
2
|
|
|
5
|
-
function
|
|
6
|
-
return (
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
function isValueEmpty(value) {
|
|
4
|
+
return EMPTY_VALUES.some(v => v === value);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function requiredAnd(check) {
|
|
8
|
+
return (component, prop, ...extraArgs) => {
|
|
9
|
+
const componentName = component.host.localName;
|
|
9
10
|
const value = component[prop];
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
const message = `The prop \`${String(prop)}\` of the \`${componentName}\` component is not defined.`;
|
|
12
|
+
if (isValueEmpty(value)) {
|
|
13
|
+
throw new Error(message);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
check(component, prop, ...extraArgs);
|
|
12
17
|
}
|
|
13
18
|
};
|
|
14
19
|
}
|
|
15
20
|
|
|
16
|
-
function
|
|
21
|
+
function checkOneOf(component, prop, possibleValues) {
|
|
17
22
|
const componentName = component.host.localName;
|
|
18
23
|
const value = component[prop];
|
|
19
|
-
const
|
|
20
|
-
|
|
24
|
+
const message = `The prop \`${String(prop)}\` of the \`${componentName}\` component must be one of the following values: ${possibleValues.join(', ')}.`;
|
|
25
|
+
if (!possibleValues.includes(value)) {
|
|
26
|
+
console.error(message);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
function checkPattern(component, prop, pattern) {
|
|
31
|
+
const componentName = component.host.localName;
|
|
32
|
+
const value = component[prop];
|
|
33
|
+
const message = `The prop \`${String(prop)}\` of the \`${componentName}\` component must follow the format \`${pattern}\`.`;
|
|
21
34
|
if (typeof value !== 'string' || !pattern.test(value)) {
|
|
22
|
-
|
|
35
|
+
console.error(message);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function checkType(component, prop, type) {
|
|
40
|
+
const componentName = component.host.localName;
|
|
41
|
+
const value = component[prop];
|
|
42
|
+
const typeIsArray = type === 'array';
|
|
43
|
+
const valueIsArray = Array.isArray(value);
|
|
44
|
+
const message = `The prop \`${String(prop)}\` of the \`${componentName}\` component must be of type \`${type}\`.`;
|
|
45
|
+
if (typeIsArray || valueIsArray) {
|
|
46
|
+
if (valueIsArray !== typeIsArray) {
|
|
47
|
+
console.error(message);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else if (typeof value !== type) {
|
|
51
|
+
console.error(message);
|
|
23
52
|
}
|
|
24
53
|
}
|
|
25
54
|
|
|
26
|
-
function checkUrl(component, prop
|
|
55
|
+
function checkUrl(component, prop) {
|
|
27
56
|
const componentName = component.host.localName;
|
|
28
57
|
const value = component[prop];
|
|
29
|
-
const
|
|
30
|
-
const message = customMessage || defaultMessage;
|
|
58
|
+
const message = `The prop \`${String(prop)}\` of the \`${componentName}\` component is invalid.`;
|
|
31
59
|
if (typeof value !== 'string' && !(value instanceof URL)) {
|
|
32
|
-
|
|
60
|
+
console.error(message);
|
|
61
|
+
return;
|
|
33
62
|
}
|
|
34
63
|
try {
|
|
35
64
|
new URL(value, 'https://www.post.ch');
|
|
36
65
|
}
|
|
37
66
|
catch {
|
|
38
|
-
|
|
67
|
+
console.error(message);
|
|
39
68
|
}
|
|
40
69
|
}
|
|
41
70
|
|
|
71
|
+
function emptyOr(check) {
|
|
72
|
+
return (component, prop, ...extraArgs) => {
|
|
73
|
+
const value = component[prop];
|
|
74
|
+
if (!isValueEmpty(value)) {
|
|
75
|
+
check(component, prop, ...extraArgs);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
42
80
|
const checkEmptyOrOneOf = emptyOr(checkOneOf);
|
|
43
81
|
const checkEmptyOrPattern = emptyOr(checkPattern);
|
|
44
82
|
const checkEmptyOrType = emptyOr(checkType);
|
|
45
83
|
const checkEmptyOrUrl = emptyOr(checkUrl);
|
|
84
|
+
const checkRequiredAndOneOf = requiredAnd(checkOneOf);
|
|
85
|
+
const checkRequiredAndType = requiredAnd(checkType);
|
|
86
|
+
const checkRequiredAndUrl = requiredAnd(checkUrl);
|
|
46
87
|
|
|
47
|
-
export {
|
|
88
|
+
export { checkEmptyOrType as a, checkEmptyOrPattern as b, checkRequiredAndType as c, checkEmptyOrOneOf as d, checkRequiredAndUrl as e, checkRequiredAndOneOf as f, checkEmptyOrUrl as g };
|
package/loaders/package.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { v as version } from './package.js';
|
|
3
3
|
import { H as HEADING_LEVELS } from './heading-levels.js';
|
|
4
|
-
import {
|
|
4
|
+
import { d as checkEmptyOrOneOf } from './index2.js';
|
|
5
5
|
import './breakpoints.js';
|
|
6
6
|
import { e as eventGuard } from './event-guard.js';
|
|
7
7
|
import { n as nanoid } from './index.browser.js';
|
|
@@ -9,7 +9,7 @@ import { d as defineCustomElement$3 } from './post-collapsible2.js';
|
|
|
9
9
|
import { d as defineCustomElement$2 } from './post-collapsible-trigger2.js';
|
|
10
10
|
import { d as defineCustomElement$1 } from './post-icon2.js';
|
|
11
11
|
|
|
12
|
-
const postAccordionItemCss = ".accordion-item::after{display:block;content:\"\";margin-block-start:calc(var(--post-device-border-width-default)*-1);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}.accordion-item:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-item:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;inset-block-end:auto;border-block-start:var(--post-accordion-button-border-top)}.accordion-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}";
|
|
12
|
+
const postAccordionItemCss = ".accordion-item::after{display:block;content:\"\";margin-block-start:calc(var(--post-device-border-width-default)*-1);border-block-end:var(--post-device-border-width-default) var(--post-core-border-style-solid) var(--post-scheme-color-interactive-primary-enabled-stroke)}.accordion-item:has(.accordion-button:hover)::after{border-color:var(--post-scheme-color-interactive-primary-hover-stroke)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-item:has(.accordion-button:hover)::after{border-color:Highlight}}.accordion-header{color:var(--post-scheme-color-interactive-primary-enabled-fg1);font-size:var(--post-device-font-size-5);margin:0;line-height:var(--post-device-line-height-heading);font-weight:var(--post-device-font-weight-black)}.accordion-button{padding:0;overflow:visible;border:0;background:none;color:var(--post-scheme-color-interactive-button-secondary-enabled-fg);font:inherit;-webkit-user-select:none;user-select:none;appearance:button;display:flex;position:relative;width:100%;align-items:center;text-align:start;gap:var(--post-device-spacing-gap-7);padding:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default)) calc(var(--post-device-spacing-padding-5) + var(--post-device-border-width-default));cursor:pointer}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button{background-color:ButtonFace !important}.accordion-button:hover{background-color:Highlight !important}}.accordion-button::before{display:block;position:absolute;content:\"\";inset:0;inset-block-end:auto;border-block-start-width:var(--post-accordion-button-border-top-width, var(--post-device-border-width-default));border-block-start-style:var(--post-core-border-style-solid);border-block-start-color:var(--post-scheme-color-interactive-primary-enabled-stroke)}.accordion-button{outline-offset:var(--post-device-spacing-padding-2) !important;outline:var(--post-scheme-color-interactive-focus-stroke) none var(--post-device-border-width-focus) !important}.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:has(:focus-visible),.pretend-focus){outline-color:Highlight !important}}@supports not selector(:has(:focus-visible)){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-style:var(--post-core-border-style-solid) !important;border-radius:var(--post-device-border-radius-focus)}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:is(:focus-visible,:focus-within,.pretend-focus){outline-color:Highlight !important}}}.accordion-button slot::slotted(span[slot=header]){flex-grow:1}.accordion-button post-icon{flex:none;width:var(--post-core-dimension-24);aspect-ratio:1;transition:transform 250ms cubic-bezier(0.4, 0, 0.2, 1)}.accordion-button.collapsed{padding-block-start:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default));padding-block-end:calc(var(--post-device-spacing-padding-19) + var(--post-device-border-width-default))}.accordion-button.collapsed post-icon{transform:rotate(-180deg)}.accordion-button:hover{color:var(--post-scheme-color-interactive-primary-hover-fg1)}.accordion-button>::slotted(.text-truncate){display:block}@media (forced-colors: active),(-ms-high-contrast: active),(-ms-high-contrast: white-on-black){.accordion-button:hover,.accordion-button:focus-visible{color:Highlight}}.accordion-body{padding-block-start:var(--post-device-spacing-padding-15);padding-block-end:calc(var(--post-device-spacing-padding-block-25) + var(--post-device-border-width-default));padding-inline:var(--post-device-spacing-padding-5)}.logo-container{display:none;width:var(--post-device-sizing-logo-1);aspect-ratio:1}.logo-container.has-image{display:block}.logo-container slot::slotted(img){display:block;width:100%;height:100%;object-fit:cover}.accordion-button>::slotted(:first-child),.accordion-body>::slotted(:first-child){margin-block-start:0 !important}.accordion-button>::slotted(:last-child),.accordion-body>::slotted(:last-child){margin-block-end:0 !important}";
|
|
13
13
|
const PostAccordionItemStyle0 = postAccordionItemCss;
|
|
14
14
|
|
|
15
15
|
const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionItem extends HTMLElement {
|
|
@@ -23,7 +23,7 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
23
23
|
this.headingLevel = undefined;
|
|
24
24
|
}
|
|
25
25
|
validateHeadingLevel() {
|
|
26
|
-
checkEmptyOrOneOf(this, 'headingLevel', HEADING_LEVELS
|
|
26
|
+
checkEmptyOrOneOf(this, 'headingLevel', HEADING_LEVELS);
|
|
27
27
|
}
|
|
28
28
|
componentWillLoad() {
|
|
29
29
|
this.id = this.host.id || `p${nanoid(6)}`;
|
|
@@ -33,7 +33,7 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
33
33
|
}
|
|
34
34
|
// Capture to make sure the "collapsed" property is updated before the event is consumed
|
|
35
35
|
onCollapseToggle(event) {
|
|
36
|
-
eventGuard(this.host, event, { targetLocalName: 'post-
|
|
36
|
+
eventGuard(this.host, event, { targetLocalName: 'post-accordion-item', delegatorSelector: 'post-accordion-item' }, () => {
|
|
37
37
|
this.collapsed = !event.detail;
|
|
38
38
|
});
|
|
39
39
|
}
|
|
@@ -52,10 +52,10 @@ const PostAccordionItem = /*@__PURE__*/ proxyCustomElement(class PostAccordionIt
|
|
|
52
52
|
render() {
|
|
53
53
|
const headingLevel = this.host.closest('post-accordion')?.getAttribute('heading-level');
|
|
54
54
|
const HeadingTag = `h${headingLevel ?? this.headingLevel ?? 2}`;
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '41b746c2ed269178d6a889899da6d55c44b647e1', id: this.id, "data-version": version }, h("div", { key: '8d675ccd039e8317673e68ac79cc3b99b5524200', part: "accordion-item", class: "accordion-item" }, h("post-collapsible-trigger", { key: 'b19a63493df6dded4797fc7286ee51a5984a6ecf', for: `${this.id}--collapse` }, h(HeadingTag, { key: 'c4dc2f1b5a6528ccd241a70da1b59ba3dbdc999c', class: "accordion-header", id: `${this.id}--header` }, h("button", { key: '27d5e2111b32819d9df23f824ee9bcfeb6ae0714', type: "button", class: `accordion-button${this.collapsed ? ' collapsed' : ''}`, part: "button" }, h("span", { key: '4e6840a49b432a39a93392aab9e1fb31ed13e120', class: {
|
|
56
56
|
'logo-container': true,
|
|
57
57
|
'has-image': !!this.slottedLogo,
|
|
58
|
-
} }, h("slot", { key: '
|
|
58
|
+
} }, h("slot", { key: '1f802c84252b6ba84d8a595fec744e345e6cc77f', name: "logo", onSlotchange: this.onSlotLogoChange.bind(this) })), h("slot", { key: '3d7b75e30b0aa31c36fd558db73b9055985c872c', name: "header" }), h("post-icon", { key: '1d5a701f86551bd62d3ed88892d0c4561a7b86c5', name: "2051" })))), h("post-collapsible", { key: '95f5c1d5fc09ffaa32eda367f2a1364e38007b4a', id: `${this.id}--collapse`, collapsed: this.collapsed, ref: el => (this.collapsible = el) }, h("div", { key: '69a4c7a8c20283477f637ee61185f576cdadfbb5', class: "accordion-body", part: "body" }, h("slot", { key: '24eb9e5998b86189d321367702a9e6c97ca0c0e1' }))))));
|
|
59
59
|
}
|
|
60
60
|
get host() { return this; }
|
|
61
61
|
static get watchers() { return {
|