@swisspost/design-system-components 10.0.0-next.72 → 10.0.0-next.76
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 → create-validator-decorator-4dRrOF30.js} +1 -1
- package/dist/cjs/{index-ngUOBQot.js → index-BqngpwGa.js} +56 -15
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{one-of-BHyX4vYq.js → one-of-D1veqtsm.js} +1 -1
- package/dist/cjs/{package-Bi-tiNRc.js → package-B0PdQ0Dm.js} +1 -1
- package/dist/cjs/{pattern-BgBx5zGQ.js → pattern-B7VKOu5m.js} +1 -1
- package/dist/cjs/post-accordion_2.cjs.entry.js +10 -12
- package/dist/cjs/post-autocomplete.cjs.entry.js +6 -6
- package/dist/cjs/post-avatar.cjs.entry.js +7 -7
- package/dist/cjs/post-back-to-top.cjs.entry.js +6 -6
- package/dist/cjs/post-banner.cjs.entry.js +6 -6
- package/dist/cjs/post-breadcrumb-item.cjs.entry.js +8 -8
- package/dist/cjs/post-breadcrumbs.cjs.entry.js +9 -11
- package/dist/cjs/post-closebutton_14.cjs.entry.js +86 -62
- package/dist/cjs/post-collapsible_2.cjs.entry.js +6 -6
- package/dist/cjs/post-components.cjs.js +2 -2
- package/dist/cjs/post-date-picker.cjs.entry.js +427 -257
- package/dist/cjs/post-footer.cjs.entry.js +6 -6
- package/dist/cjs/post-linkarea.cjs.entry.js +3 -3
- package/dist/cjs/post-listbox-option.cjs.entry.js +4 -4
- package/dist/cjs/post-listbox.cjs.entry.js +3 -3
- package/dist/cjs/post-number-input.cjs.entry.js +6 -5
- package/dist/cjs/post-pagination.cjs.entry.js +15 -10
- package/dist/cjs/post-popover-trigger.cjs.entry.js +5 -5
- package/dist/cjs/post-popover.cjs.entry.js +11 -12
- package/dist/cjs/post-progressbar.cjs.entry.js +4 -4
- package/dist/cjs/post-rating.cjs.entry.js +6 -6
- package/dist/cjs/post-side-navigation-trigger.cjs.entry.js +109 -0
- package/dist/cjs/post-side-navigation.cjs.entry.js +140 -0
- package/dist/cjs/post-stepper-item.cjs.entry.js +4 -4
- package/dist/cjs/post-stepper.cjs.entry.js +9 -7
- package/dist/cjs/post-tab-item.cjs.entry.js +15 -14
- package/dist/cjs/post-tab-panel.cjs.entry.js +6 -6
- package/dist/cjs/post-tabs.cjs.entry.js +196 -74
- package/dist/cjs/post-tooltip-trigger.cjs.entry.js +7 -9
- package/dist/cjs/post-tooltip.cjs.entry.js +9 -10
- package/dist/cjs/{required-lRDOdbd6.js → required-Bkz8MOYa.js} +1 -1
- package/dist/cjs/{type-shT641Eo.js → type-D8eD1JMd.js} +1 -1
- package/dist/cjs/{url-DRUMqVBq.js → url-C7MnIIZ_.js} +1 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/post-accordion/post-accordion.js +1 -1
- package/dist/collection/components/post-accordion-item/post-accordion-item.js +4 -36
- package/dist/collection/components/post-autocomplete/post-autocomplete.js +1 -1
- package/dist/collection/components/post-avatar/post-avatar.js +1 -1
- package/dist/collection/components/post-back-to-top/post-back-to-top.js +1 -1
- package/dist/collection/components/post-banner/post-banner.css +2 -2
- package/dist/collection/components/post-banner/post-banner.js +1 -1
- package/dist/collection/components/post-breadcrumb-item/post-breadcrumb-item.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.css +1 -1
- package/dist/collection/components/post-breadcrumbs/post-breadcrumbs.js +2 -4
- package/dist/collection/components/post-closebutton/post-closebutton.css +1 -1
- package/dist/collection/components/post-closebutton/post-closebutton.js +22 -11
- package/dist/collection/components/post-closebutton/types.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 +1 -1
- package/dist/collection/components/post-date-picker/accessibility-utils.js +59 -0
- package/dist/collection/components/post-date-picker/date-utils.js +102 -0
- package/dist/collection/components/post-date-picker/native-mask-element.js +36 -0
- package/dist/collection/components/post-date-picker/post-date-picker.css +1 -1
- package/dist/collection/components/post-date-picker/post-date-picker.js +224 -301
- package/dist/collection/components/post-footer/post-footer.js +1 -1
- package/dist/collection/components/post-header/post-header.css +1 -1
- package/dist/collection/components/post-header/post-header.js +13 -11
- package/dist/collection/components/post-icon/post-icon.js +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.css +1 -1
- package/dist/collection/components/post-language-menu/post-language-menu.js +7 -5
- package/dist/collection/components/post-language-menu-item/post-language-menu-item.css +1 -1
- package/dist/collection/components/post-linkarea/post-linkarea.js +1 -1
- package/dist/collection/components/post-listbox/post-listbox.js +1 -1
- package/dist/collection/components/post-listbox-option/post-listbox-option.js +2 -2
- package/dist/collection/components/post-logo/post-logo.js +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 +1 -1
- package/dist/collection/components/post-menu/post-menu.css +1 -1
- package/dist/collection/components/post-menu/post-menu.js +9 -12
- package/dist/collection/components/post-menu-item/post-menu-item.css +1 -1
- package/dist/collection/components/post-menu-trigger/post-menu-trigger.js +1 -1
- package/dist/collection/components/post-number-input/post-number-input.css +1 -1
- package/dist/collection/components/post-number-input/post-number-input.js +3 -2
- package/dist/collection/components/post-pagination/post-pagination.css +1 -1
- package/dist/collection/components/post-pagination/post-pagination.js +11 -5
- package/dist/collection/components/post-popover/post-popover.js +12 -22
- package/dist/collection/components/post-popover-trigger/post-popover-trigger.js +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.css +1 -1
- package/dist/collection/components/post-popovercontainer/post-popovercontainer.js +17 -12
- package/dist/collection/components/post-progressbar/post-progressbar.js +1 -1
- package/dist/collection/components/post-rating/post-rating.js +1 -1
- package/dist/collection/components/post-side-navigation/post-side-navigation.css +1 -0
- package/dist/collection/components/post-side-navigation/post-side-navigation.js +267 -0
- package/dist/collection/components/post-side-navigation/side-navigation-styles.js +1 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.css +1 -0
- package/dist/collection/components/post-side-navigation-trigger/post-side-navigation-trigger.js +154 -0
- package/dist/collection/components/post-stepper/post-stepper.js +3 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.css +1 -1
- package/dist/collection/components/post-stepper-item/post-stepper-item.js +1 -1
- package/dist/collection/components/post-tab-item/post-tab-item.js +36 -19
- package/dist/collection/components/post-tab-panel/post-tab-panel.js +3 -2
- package/dist/collection/components/post-tabs/post-tabs.css +1 -1
- package/dist/collection/components/post-tabs/post-tabs.js +255 -84
- package/dist/collection/components/post-togglebutton/post-togglebutton.js +1 -1
- package/dist/collection/components/post-tooltip/post-tooltip.js +12 -22
- package/dist/collection/components/post-tooltip-trigger/post-tooltip-trigger.js +2 -4
- package/dist/collection/types/element-api.js +3 -0
- package/dist/component-names.json +2 -1
- package/dist/components/index.d.ts +4 -2
- package/dist/components/index.js +1 -1
- package/dist/components/package.js +1 -1
- package/dist/components/post-accordion-item2.js +1 -1
- package/dist/components/post-accordion2.js +1 -1
- package/dist/components/post-autocomplete.js +1 -1
- package/dist/components/post-avatar.js +1 -1
- package/dist/components/post-back-to-top.js +1 -1
- package/dist/components/post-banner.js +1 -1
- package/dist/components/post-breadcrumb-item.js +1 -1
- package/dist/components/post-breadcrumbs.js +1 -1
- package/dist/components/post-closebutton2.js +1 -1
- package/dist/components/post-collapsible-trigger2.js +1 -1
- package/dist/components/post-collapsible2.js +1 -1
- package/dist/components/post-date-picker.js +1 -1
- package/dist/components/post-footer.js +1 -1
- package/dist/components/post-header.js +1 -1
- package/dist/components/post-icon2.js +1 -1
- package/dist/components/post-language-menu-item.js +1 -1
- package/dist/components/post-language-menu.js +1 -1
- package/dist/components/post-linkarea.js +1 -1
- package/dist/components/post-listbox-option.js +1 -1
- package/dist/components/post-listbox.js +1 -1
- package/dist/components/post-logo.js +1 -1
- package/dist/components/post-mainnavigation.js +1 -1
- package/dist/components/post-megadropdown-trigger.js +1 -1
- package/dist/components/post-megadropdown.js +1 -1
- package/dist/components/post-menu-item2.js +1 -1
- package/dist/components/post-menu-trigger2.js +1 -1
- package/dist/components/post-menu2.js +1 -1
- package/dist/components/post-number-input.js +1 -1
- package/dist/components/post-pagination.js +1 -1
- package/dist/components/post-popover-trigger.js +1 -1
- package/dist/components/post-popover.js +1 -1
- package/dist/components/post-popovercontainer2.js +1 -1
- package/dist/components/post-progressbar.js +1 -1
- package/dist/components/post-rating.js +1 -1
- package/dist/components/post-side-navigation-trigger.d.ts +11 -0
- package/dist/components/post-side-navigation-trigger.js +1 -0
- package/dist/components/{post-login-widget.d.ts → post-side-navigation.d.ts} +4 -4
- package/dist/components/post-side-navigation.js +1 -0
- package/dist/components/post-stepper-item.js +1 -1
- package/dist/components/post-stepper.js +1 -1
- package/dist/components/post-tab-item.js +1 -1
- package/dist/components/post-tab-panel.js +1 -1
- package/dist/components/post-tabs.js +1 -1
- package/dist/components/post-togglebutton2.js +1 -1
- package/dist/components/post-tooltip-trigger.js +1 -1
- package/dist/components/post-tooltip.js +1 -1
- package/dist/components/react/index.js +1 -1
- package/dist/components/react/{p-Bu2JeHDf.js → p-06VKKzxv.js} +1 -1
- package/dist/components/react/p-BkWqx_6U.js +1 -0
- package/dist/components/react/p-Chtl9X7o.js +1 -0
- package/dist/components/react/p-CrLBbthi.js +1 -0
- package/dist/components/react/{p-D1zw8FxT.js → p-D0kuUny7.js} +1 -1
- package/dist/components/react/{p-PM7l--ff.js → p-DKF__bJF.js} +1 -1
- package/dist/components/react/p-DkKOmXaG.js +1 -0
- package/dist/components/react/p-UdMqVxhd.js +1 -0
- package/dist/components/react/p-d02KpeUM.js +1 -0
- package/dist/components/react/{p-BZSAV0-K.js → p-gUhGka9h.js} +1 -1
- package/dist/components/react/{p-Cd1TsNm7.js → p-uQE3DVb8.js} +1 -1
- package/dist/components/react/{p-BxoRVIIr.js → p-wLn52OZT.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-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.js +1 -1
- package/dist/components/react/post-rating.js +1 -1
- package/dist/components/react/post-side-navigation-trigger.d.ts +11 -0
- package/dist/components/react/post-side-navigation-trigger.js +1 -0
- package/dist/components/react/{post-login-widget.d.ts → post-side-navigation.d.ts} +4 -4
- package/dist/components/react/post-side-navigation.js +1 -0
- package/dist/components/react/post-stepper-item.js +1 -1
- package/dist/components/react/post-stepper.js +1 -1
- package/dist/components/react/post-tab-item.js +1 -1
- package/dist/components/react/post-tab-panel.js +1 -1
- package/dist/components/react/post-tabs.js +1 -1
- package/dist/components/react/post-togglebutton.js +1 -1
- package/dist/components/react/post-tooltip-trigger.js +1 -1
- package/dist/components/react/post-tooltip.js +1 -1
- package/dist/docs.json +571 -529
- package/dist/esm/{create-validator-decorator-D8qwF5Qe.js → create-validator-decorator-CYYTw0AS.js} +1 -1
- package/dist/esm/{index-BbDawWJ5.js → index-DE1aWdqx.js} +56 -15
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{one-of-GPr3FflU.js → one-of-Ug1_Xoes.js} +1 -1
- package/dist/esm/package-d02KpeUM.js +3 -0
- package/dist/esm/{pattern-BWPRYpYv.js → pattern-WLk4tOqI.js} +1 -1
- package/dist/esm/post-accordion_2.entry.js +10 -12
- package/dist/esm/post-autocomplete.entry.js +6 -6
- package/dist/esm/post-avatar.entry.js +7 -7
- package/dist/esm/post-back-to-top.entry.js +6 -6
- package/dist/esm/post-banner.entry.js +6 -6
- package/dist/esm/post-breadcrumb-item.entry.js +8 -8
- package/dist/esm/post-breadcrumbs.entry.js +9 -11
- package/dist/esm/post-closebutton_14.entry.js +86 -62
- package/dist/esm/post-collapsible_2.entry.js +6 -6
- package/dist/esm/post-components.js +3 -3
- package/dist/esm/post-date-picker.entry.js +427 -257
- package/dist/esm/post-footer.entry.js +6 -6
- package/dist/esm/post-linkarea.entry.js +3 -3
- package/dist/esm/post-listbox-option.entry.js +4 -4
- package/dist/esm/post-listbox.entry.js +3 -3
- package/dist/esm/post-number-input.entry.js +6 -5
- package/dist/esm/post-pagination.entry.js +15 -10
- package/dist/esm/post-popover-trigger.entry.js +5 -5
- package/dist/esm/post-popover.entry.js +11 -12
- package/dist/esm/post-progressbar.entry.js +4 -4
- package/dist/esm/post-rating.entry.js +6 -6
- package/dist/esm/post-side-navigation-trigger.entry.js +107 -0
- package/dist/esm/post-side-navigation.entry.js +138 -0
- package/dist/esm/post-stepper-item.entry.js +4 -4
- package/dist/esm/post-stepper.entry.js +9 -7
- package/dist/esm/post-tab-item.entry.js +15 -14
- package/dist/esm/post-tab-panel.entry.js +6 -6
- package/dist/esm/post-tabs.entry.js +196 -74
- package/dist/esm/post-tooltip-trigger.entry.js +7 -9
- package/dist/esm/post-tooltip.entry.js +9 -10
- package/dist/esm/{required-uK-rZZjy.js → required-DeOhRbtk.js} +1 -1
- package/dist/esm/{type-obmwEgkM.js → type-S-4aPMGU.js} +1 -1
- package/dist/esm/{url-B28ByZCe.js → url-C8KSrmWc.js} +1 -1
- package/dist/post-components/{p-12047216.entry.js → p-0efb77f9.entry.js} +1 -1
- package/dist/post-components/p-1223e51d.entry.js +1 -0
- package/dist/post-components/{p-3b05e01d.entry.js → p-1878e9f8.entry.js} +1 -1
- package/dist/post-components/p-1eea2715.entry.js +1 -0
- package/dist/post-components/p-2233c37e.entry.js +1 -0
- package/dist/post-components/p-266e68a3.entry.js +1 -0
- package/dist/post-components/{p-00f55af5.entry.js → p-2a0b9ed0.entry.js} +1 -1
- package/dist/post-components/p-3c71d687.entry.js +1 -0
- package/dist/post-components/{p-IUnDBhPg.js → p-4-_BhJWV.js} +1 -1
- package/dist/post-components/{p-7f929bb9.entry.js → p-477c8c35.entry.js} +1 -1
- package/dist/post-components/{p-2c6b4e6a.entry.js → p-4b366aa0.entry.js} +1 -1
- package/dist/post-components/{p-53fd5230.entry.js → p-4c7750cd.entry.js} +1 -1
- package/dist/post-components/p-52e118e0.entry.js +1 -0
- package/dist/post-components/p-53f34806.entry.js +1 -0
- package/dist/post-components/p-621a81a7.entry.js +1 -0
- package/dist/post-components/p-85594193.entry.js +1 -0
- package/dist/post-components/p-89ea447b.entry.js +1 -0
- package/dist/post-components/p-8d8ac7ae.entry.js +1 -0
- package/dist/post-components/p-900dc8e1.entry.js +1 -0
- package/dist/post-components/p-93da9105.entry.js +1 -0
- package/dist/post-components/{p-d061773b.entry.js → p-95ad4d06.entry.js} +1 -1
- package/dist/post-components/p-9915ffee.entry.js +1 -0
- package/dist/post-components/{p-Ck2qPht6.js → p-B6uZASBE.js} +1 -1
- package/dist/post-components/{p-DSNGJB58.js → p-BDW1XHCO.js} +1 -1
- package/dist/post-components/{p-CVsNfXZd.js → p-CiOyV6Mo.js} +1 -1
- package/dist/post-components/p-DE1aWdqx.js +2 -0
- package/dist/post-components/{p-BRNqUiXj.js → p-DMiERazc.js} +1 -1
- package/dist/post-components/{p-D4F0BqBW.js → p-NPUljV0P.js} +1 -1
- package/dist/post-components/p-a08abdb2.entry.js +1 -0
- package/dist/post-components/p-a971ec25.entry.js +1 -0
- package/dist/post-components/{p-e2370e94.entry.js → p-ad69ed8c.entry.js} +1 -1
- package/dist/post-components/p-c11a8e06.entry.js +1 -0
- package/dist/post-components/p-d02KpeUM.js +1 -0
- package/dist/post-components/p-d9ce8f05.entry.js +1 -0
- package/dist/post-components/p-dcceab4e.entry.js +1 -0
- package/dist/post-components/{p-f1ca1d3f.entry.js → p-e219e22a.entry.js} +1 -1
- package/dist/post-components/{p-758fc84f.entry.js → p-f6c45fed.entry.js} +1 -1
- package/dist/post-components/post-components.css +2 -2
- package/dist/post-components/post-components.esm.js +1 -1
- package/dist/types/components/post-accordion-item/post-accordion-item.d.ts +0 -8
- package/dist/types/components/post-closebutton/post-closebutton.d.ts +5 -2
- package/dist/types/components/post-closebutton/types.d.ts +1 -1
- package/dist/types/components/post-date-picker/accessibility-utils.d.ts +19 -0
- package/dist/types/components/post-date-picker/date-utils.d.ts +48 -0
- package/dist/types/components/post-date-picker/native-mask-element.d.ts +12 -0
- package/dist/types/components/post-date-picker/post-date-picker.d.ts +23 -62
- package/dist/types/components/post-header/post-header.d.ts +3 -2
- package/dist/types/components/post-language-menu/post-language-menu.d.ts +2 -1
- package/dist/types/components/post-menu/post-menu.d.ts +4 -4
- package/dist/types/components/post-popover/post-popover.d.ts +4 -5
- package/dist/types/components/post-popovercontainer/post-popovercontainer.d.ts +2 -2
- package/dist/types/components/post-side-navigation/post-side-navigation.d.ts +62 -0
- package/dist/types/components/post-side-navigation/side-navigation-styles.d.ts +2 -0
- package/dist/types/components/post-side-navigation-trigger/post-side-navigation-trigger.d.ts +33 -0
- package/dist/types/components/post-tab-item/post-tab-item.d.ts +8 -4
- package/dist/types/components/post-tab-panel/post-tab-panel.d.ts +1 -1
- package/dist/types/components/post-tabs/post-tabs.d.ts +37 -17
- package/dist/types/components/post-tooltip/post-tooltip.d.ts +4 -5
- package/dist/types/components.d.ts +181 -164
- package/dist/types/home/runner/work/design-system/design-system/packages/components/.stencil/vrt/helpers/header-variants.config.d.ts +1 -0
- package/dist/types/types/element-api.d.ts +3 -0
- package/dist/vrt/helpers/header-test-config.js +3 -2
- package/dist/vrt/helpers/header-variants.config.js +29 -2
- package/hydrate/index.js +1174 -682
- package/hydrate/index.mjs +1174 -682
- package/package.json +11 -12
- package/dist/cjs/long-press-event-Dx21Ojod.js +0 -276
- package/dist/cjs/post-login-widget.cjs.entry.js +0 -92
- package/dist/collection/components/post-accordion-item/heading-levels.js +0 -1
- package/dist/collection/components/post-login-widget/post-login-widget.css +0 -1
- package/dist/collection/components/post-login-widget/post-login-widget.js +0 -218
- package/dist/collection/components/post-tab-item/post-tab-item.css +0 -1
- package/dist/components/long-press-event.js +0 -8
- package/dist/components/post-avatar2.js +0 -1
- package/dist/components/post-login-widget.js +0 -1
- package/dist/components/react/p-85IGlhtB.js +0 -1
- package/dist/components/react/p-B9ZFuYey.js +0 -1
- package/dist/components/react/p-BNgqqRsB.js +0 -8
- package/dist/components/react/p-Bg9dtyzK.js +0 -1
- package/dist/components/react/p-Bn66acGG.js +0 -1
- package/dist/components/react/p-CkTAQJGd.js +0 -1
- package/dist/components/react/p-ClG-N42b.js +0 -1
- package/dist/components/react/p-DwuW52g5.js +0 -1
- package/dist/components/react/post-login-widget.js +0 -1
- package/dist/esm/long-press-event-BNgqqRsB.js +0 -274
- package/dist/esm/package-ClG-N42b.js +0 -3
- package/dist/esm/post-login-widget.entry.js +0 -90
- package/dist/post-components/p-0288484f.entry.js +0 -1
- package/dist/post-components/p-07cdd022.entry.js +0 -1
- package/dist/post-components/p-17df4e91.entry.js +0 -1
- package/dist/post-components/p-17e046fa.entry.js +0 -1
- package/dist/post-components/p-29bd31a0.entry.js +0 -1
- package/dist/post-components/p-5b7e6369.entry.js +0 -1
- package/dist/post-components/p-5f4ca179.entry.js +0 -1
- package/dist/post-components/p-62b6154a.entry.js +0 -1
- package/dist/post-components/p-686a6e22.entry.js +0 -1
- package/dist/post-components/p-9865f72c.entry.js +0 -1
- package/dist/post-components/p-99803d57.entry.js +0 -1
- package/dist/post-components/p-BNgqqRsB.js +0 -8
- package/dist/post-components/p-BbDawWJ5.js +0 -2
- package/dist/post-components/p-ClG-N42b.js +0 -1
- package/dist/post-components/p-a0e0a760.entry.js +0 -1
- package/dist/post-components/p-a850652d.entry.js +0 -1
- package/dist/post-components/p-aac1a8ea.entry.js +0 -1
- package/dist/post-components/p-b3f0f9a2.entry.js +0 -1
- package/dist/post-components/p-c37dba4b.entry.js +0 -1
- package/dist/post-components/p-f2e5f44e.entry.js +0 -1
- package/dist/post-components/p-ff98ada4.entry.js +0 -1
- package/dist/types/components/post-accordion-item/heading-levels.d.ts +0 -2
- package/dist/types/components/post-login-widget/post-login-widget.d.ts +0 -45
|
@@ -3,10 +3,13 @@ import { ButtonType, Placement, Size } from './types';
|
|
|
3
3
|
* @slot default - Slot for placing visually hidden label in the close button.
|
|
4
4
|
*/
|
|
5
5
|
export declare class PostClosebutton {
|
|
6
|
-
|
|
6
|
+
internals: ElementInternals;
|
|
7
|
+
private mutationObserver?;
|
|
8
|
+
private visuallyHidden;
|
|
7
9
|
host: HTMLPostClosebuttonElement;
|
|
8
10
|
/**
|
|
9
11
|
* The "type" attribute used for the close button
|
|
12
|
+
|
|
10
13
|
*/
|
|
11
14
|
buttonType?: ButtonType;
|
|
12
15
|
/**
|
|
@@ -18,8 +21,8 @@ export declare class PostClosebutton {
|
|
|
18
21
|
*/
|
|
19
22
|
size: Size;
|
|
20
23
|
componentDidLoad(): void;
|
|
21
|
-
connectedCallback(): void;
|
|
22
24
|
disconnectedCallback(): void;
|
|
23
25
|
private checkContent;
|
|
26
|
+
private handleClick;
|
|
24
27
|
render(): any;
|
|
25
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const BUTTON_TYPES: readonly ["button", "
|
|
1
|
+
export declare const BUTTON_TYPES: readonly ["button", "reset"];
|
|
2
2
|
export type ButtonType = (typeof BUTTON_TYPES)[number];
|
|
3
3
|
export declare const PLACEMENT: readonly ["manual", "auto"];
|
|
4
4
|
export type Placement = (typeof PLACEMENT)[number];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AirDatepickerOptions } from 'air-datepicker';
|
|
2
|
+
type AirDatepickerRenderCellFn = NonNullable<AirDatepickerOptions<HTMLDivElement>['onRenderCell']>;
|
|
3
|
+
type AirDatepickerCellData = Parameters<AirDatepickerRenderCellFn>[0];
|
|
4
|
+
type AirDatepickerCellConfig = ReturnType<AirDatepickerRenderCellFn>;
|
|
5
|
+
/**
|
|
6
|
+
* Add role and aria-label to each grid cell based on its type.
|
|
7
|
+
* @param data The render cell data from AirDatepicker.
|
|
8
|
+
* @param localeCode The BCP 47 locale code for formatting.
|
|
9
|
+
* @returns An object with `attrs` to apply to the cell element.
|
|
10
|
+
*/
|
|
11
|
+
export declare function renderCellAccessibility({ date, cellType }: AirDatepickerCellData, localeCode: string): AirDatepickerCellConfig | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Merge the internal render cell (adding of role + aria-label attributes) and the user's render cell (disabling dates, etc.)
|
|
14
|
+
* @param base Internal render cell
|
|
15
|
+
* @param custom User render cell
|
|
16
|
+
* @returns Merged render cell
|
|
17
|
+
*/
|
|
18
|
+
export declare function mergeRenderCellResults(base?: AirDatepickerCellConfig, custom?: AirDatepickerCellConfig): AirDatepickerCellConfig;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pad the year component of an ISO date string to 4 digits.
|
|
3
|
+
* @param isoDateString An ISO formatted date string (YYYY-MM-DD).
|
|
4
|
+
* @returns The padded ISO date string.
|
|
5
|
+
*/
|
|
6
|
+
export declare function padIsoDate(isoDateString: string): string;
|
|
7
|
+
/**
|
|
8
|
+
* Convert an ISO 8601 formatted date string (YYYY-MM-DD) to a localtime date object.
|
|
9
|
+
* @param isoDateString An ISO formatted, localtime date string.
|
|
10
|
+
* @returns A localtime date object.
|
|
11
|
+
*/
|
|
12
|
+
export declare function isoToDate(isoDateString: string): Date | null;
|
|
13
|
+
/**
|
|
14
|
+
* Convert a date object to an ISO 8601 formatted date string (YYYY-MM-DD).
|
|
15
|
+
* @param date A localtime date object.
|
|
16
|
+
* @returns An ISO formatted, localtime date string.
|
|
17
|
+
*/
|
|
18
|
+
export declare function dateToIso(date: Date): string;
|
|
19
|
+
/**
|
|
20
|
+
* Convert a date object to a localized date string.
|
|
21
|
+
* @param date A localtime date object.
|
|
22
|
+
* @param localeCode The BCP 47 locale code to use for formatting.
|
|
23
|
+
* @returns A localized date string, depending on the given `localeCode`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function dateToString(date: Date, localeCode: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* Convert a localized date string to a date object.
|
|
28
|
+
* The date string should be in the same format as the date picker's `dateFormat`, which depends on the given `localeCode`.
|
|
29
|
+
* @param localeDateString A localized date string.
|
|
30
|
+
* @param dateFormat The date format string (e.g. "dd.mm.yyyy").
|
|
31
|
+
* @param isBuddhistCalendar Whether the locale uses the Buddhist calendar.
|
|
32
|
+
* @returns A localtime date object.
|
|
33
|
+
*/
|
|
34
|
+
export declare function stringToDate(localeDateString: string, dateFormat: string, isBuddhistCalendar: boolean): Date;
|
|
35
|
+
/**
|
|
36
|
+
* Get the date format string for a locale, by formatting a sample date and replacing the date parts
|
|
37
|
+
* with format keys (y, m, d). For example, it will return "dd.mm.yyyy" for "de-CH" locale and "mm/dd/yyyy" for "en-US" locale.
|
|
38
|
+
* @param localeCode The BCP 47 locale code.
|
|
39
|
+
* @param isBuddhistCalendar Whether the locale uses the Buddhist calendar.
|
|
40
|
+
* @returns The date format string.
|
|
41
|
+
*/
|
|
42
|
+
export declare function getDateFormat(localeCode: string, isBuddhistCalendar: boolean): string;
|
|
43
|
+
/**
|
|
44
|
+
* Check if a value is a valid Date object.
|
|
45
|
+
* @param date The value to check.
|
|
46
|
+
* @returns `true` if the value is a valid Date, `false` otherwise.
|
|
47
|
+
*/
|
|
48
|
+
export declare function isValidDate(date: Date): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLInputMaskElement } from 'imask';
|
|
2
|
+
import type { EventHandlers } from 'imask/esm/controls/mask-element';
|
|
3
|
+
export declare class NativeInputMaskElement extends HTMLInputMaskElement {
|
|
4
|
+
allowEvents: boolean;
|
|
5
|
+
private _inputEventSuppressor;
|
|
6
|
+
get value(): string;
|
|
7
|
+
set value(val: string);
|
|
8
|
+
bindEvents(handlers: EventHandlers): void;
|
|
9
|
+
unbindEvents(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare function getNativeValue(input: HTMLInputElement): string;
|
|
12
|
+
export declare function setNativeValue(input: HTMLInputElement, val: string): void;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
-
import AirDatepicker, { AirDatepickerOptions, AirDatepickerViewsSingle } from 'air-datepicker';
|
|
3
|
-
export interface AirDatepickerCustomOptions extends AirDatepickerOptions<HTMLDivElement> {
|
|
4
|
-
onShow?: (isAnimationComplete: boolean) => void;
|
|
5
|
-
onRenderCell?: (data: {
|
|
6
|
-
date: Date;
|
|
7
|
-
cellType: AirDatepickerViewsSingle;
|
|
8
|
-
datepicker: AirDatepicker<HTMLDivElement>;
|
|
9
|
-
}) => void;
|
|
10
|
-
}
|
|
11
1
|
export declare class PostDatePicker {
|
|
12
2
|
host: HTMLPostDatePickerElement;
|
|
13
3
|
/**
|
|
@@ -24,27 +14,22 @@ export declare class PostDatePicker {
|
|
|
24
14
|
range?: boolean;
|
|
25
15
|
updateRange(): void;
|
|
26
16
|
/**
|
|
27
|
-
*
|
|
28
|
-
* Must be a valid date in ISO 8601 format (YYYY-MM-DD).
|
|
29
|
-
*/
|
|
30
|
-
selectedStartDate?: string;
|
|
31
|
-
/**
|
|
32
|
-
* The date picker's selected end date (for range date picker only).
|
|
33
|
-
* Must be a valid date in ISO 8601 format (YYYY-MM-DD).
|
|
34
|
-
*/
|
|
35
|
-
selectedEndDate?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Minimun possible date to select. Must be a valid date in ISO 8601 format (YYYY-MM-DD).
|
|
17
|
+
* Minimum possible date to select. Must be a valid date in ISO 8601 format (YYYY-MM-DD).
|
|
38
18
|
*/
|
|
39
19
|
min?: string;
|
|
20
|
+
updateMin(): void;
|
|
40
21
|
/**
|
|
41
22
|
* Maximum possible date to select. Must be a valid date in ISO 8601 format (YYYY-MM-DD).
|
|
42
23
|
*/
|
|
43
24
|
max?: string;
|
|
25
|
+
updateMax(): void;
|
|
44
26
|
/**
|
|
45
|
-
*
|
|
27
|
+
* A callback to customize individual calendar cells, e.g. to disable specific dates or add CSS classes.
|
|
46
28
|
*/
|
|
47
|
-
|
|
29
|
+
cellConfig?: (date: Date, cellType: 'day' | 'month' | 'year') => {
|
|
30
|
+
disabled?: boolean;
|
|
31
|
+
classes?: string;
|
|
32
|
+
} | void;
|
|
48
33
|
/**
|
|
49
34
|
* Whether the calendar is inline in the page (not showing in a popover when input clicked).
|
|
50
35
|
*/
|
|
@@ -80,16 +65,12 @@ export declare class PostDatePicker {
|
|
|
80
65
|
textSwitchYear: string;
|
|
81
66
|
/**
|
|
82
67
|
* Label for the toggle button that opens the calendar.
|
|
83
|
-
* It is only needed when the calendar is
|
|
68
|
+
* It is only needed when the calendar is not inline.
|
|
84
69
|
*/
|
|
85
70
|
textToggleCalendar?: string;
|
|
86
71
|
inputDisabled: boolean;
|
|
87
72
|
today: Date;
|
|
88
73
|
startDate: Date;
|
|
89
|
-
/**
|
|
90
|
-
* An event emitted when a date or a range of dates have been selected.
|
|
91
|
-
*/
|
|
92
|
-
postUpdateDates: EventEmitter<string | string[]>;
|
|
93
74
|
/**
|
|
94
75
|
* Displays the popover calendar, focusing the first calendar item.
|
|
95
76
|
*/
|
|
@@ -108,6 +89,9 @@ export declare class PostDatePicker {
|
|
|
108
89
|
private dpInstance;
|
|
109
90
|
private dpContainer;
|
|
110
91
|
private inputMask;
|
|
92
|
+
private maskElement;
|
|
93
|
+
private _isInternalUpdate;
|
|
94
|
+
private _lastInputValue;
|
|
111
95
|
private gridObserver;
|
|
112
96
|
private navObserver;
|
|
113
97
|
private inputObserver;
|
|
@@ -143,31 +127,13 @@ export declare class PostDatePicker {
|
|
|
143
127
|
*/
|
|
144
128
|
private airLocale;
|
|
145
129
|
/**
|
|
146
|
-
* Convert a date object to a localized date string
|
|
147
|
-
* @param date A localtime date object.
|
|
148
|
-
* @returns A localized date string, depending on the given `localeCode` and the given `options`.
|
|
130
|
+
* Convert a date object to a localized date string, bound to the current locale.
|
|
149
131
|
*/
|
|
150
132
|
private dateToString;
|
|
151
133
|
/**
|
|
152
|
-
* Convert a localized date string to a date object.
|
|
153
|
-
* The date string should be in the same format as the date picker's `dateFormat`, which depends on the given `localeCode`.
|
|
154
|
-
* @param localeDateString A localized date string.
|
|
155
|
-
* @returns A localtime date object.
|
|
134
|
+
* Convert a localized date string to a date object, bound to the current locale and format.
|
|
156
135
|
*/
|
|
157
136
|
private stringToDate;
|
|
158
|
-
/**
|
|
159
|
-
* Convert a date object to an ISO 8601 formatted date string (YYYY-MM-DD) and vice versa.
|
|
160
|
-
* @param date A localtime date object.
|
|
161
|
-
* @returns An iso formatted, localtime date string.
|
|
162
|
-
*/
|
|
163
|
-
private dateToIso;
|
|
164
|
-
/**
|
|
165
|
-
* Convert an ISO 8601 formatted date string (YYYY-MM-DD) to a localtime date object.
|
|
166
|
-
* @param isoDateString An iso formatted, localtime date string.
|
|
167
|
-
* @returns A localtime date object.
|
|
168
|
-
*/
|
|
169
|
-
private isoToDate;
|
|
170
|
-
private padIsoDate;
|
|
171
137
|
private setupInputObserver;
|
|
172
138
|
/**
|
|
173
139
|
* Get all the active cells of the calendar
|
|
@@ -203,27 +169,22 @@ export declare class PostDatePicker {
|
|
|
203
169
|
*/
|
|
204
170
|
private setUpMask;
|
|
205
171
|
private updateMask;
|
|
172
|
+
private setupValueOverride;
|
|
173
|
+
private getIsoDates;
|
|
174
|
+
private getInputIsoValue;
|
|
175
|
+
private serializeIsoValue;
|
|
176
|
+
private setInputIsoValue;
|
|
206
177
|
private configDatePicker;
|
|
207
|
-
private
|
|
208
|
-
private
|
|
178
|
+
private emitInputEvents;
|
|
179
|
+
private handleInputEvent;
|
|
180
|
+
private formatDatesForMask;
|
|
181
|
+
private syncInputToDp;
|
|
209
182
|
private attachTitleBtnListener;
|
|
210
183
|
private forceTitleClickToYear;
|
|
211
|
-
/**
|
|
212
|
-
* Add role and aria-label to each grid cell
|
|
213
|
-
*/
|
|
214
|
-
private internalOnRenderCell;
|
|
215
|
-
/**
|
|
216
|
-
* Merge the internal render cell (adding of role + aria-label attributes) and the user's render cell (disabling dates, etc.)
|
|
217
|
-
* @param base Internal render cell
|
|
218
|
-
* @param custom User render cell
|
|
219
|
-
* @returns Merged render cell
|
|
220
|
-
*/
|
|
221
|
-
private mergeRenderCellResults;
|
|
222
184
|
private setupNavObserver;
|
|
223
185
|
private setupGridObserver;
|
|
224
186
|
private addInputListener;
|
|
225
187
|
private resetSelection;
|
|
226
|
-
private isValidDate;
|
|
227
188
|
private syncDatePickerState;
|
|
228
189
|
componentDidLoad(): Promise<void>;
|
|
229
190
|
disconnectedCallback(): void;
|
|
@@ -3,7 +3,8 @@ import { Device } from "../../utils/breakpoints";
|
|
|
3
3
|
* @slot post-logo - Should be used together with the `<post-logo>` component.
|
|
4
4
|
* @slot global-nav-primary - Holds search button in the global header.
|
|
5
5
|
* @slot global-nav-secondary - Holds an `<ul>` with meta navigation links.
|
|
6
|
-
* @slot language-menu - Should be used with the `<post-language-
|
|
6
|
+
* @slot language-menu - Should be used with the `<post-language-menu>` component.
|
|
7
|
+
* @slot side-nav - Should be used with the `<post-side-navigation>` component.
|
|
7
8
|
* @slot title - Holds the application title.
|
|
8
9
|
* @slot main-nav - Has a default slot because it's only meant to be used in the `<post-header>`.
|
|
9
10
|
* @slot audience - Holds the list of buttons to choose the audience.
|
|
@@ -65,7 +66,7 @@ export declare class PostHeader {
|
|
|
65
66
|
private handleSlottedContentChanges;
|
|
66
67
|
private checkSlottedContent;
|
|
67
68
|
private switchLanguageSwitchMode;
|
|
68
|
-
onFocusChange(
|
|
69
|
+
onFocusChange(): void;
|
|
69
70
|
private renderBurgerMenu;
|
|
70
71
|
render(): any;
|
|
71
72
|
}
|
|
@@ -10,7 +10,8 @@ export declare class PostLanguageMenu {
|
|
|
10
10
|
*/
|
|
11
11
|
textChangeLanguage: string;
|
|
12
12
|
/**
|
|
13
|
-
* An accessible description text for the list of language options.
|
|
13
|
+
* An accessible description text for the list of language options.
|
|
14
|
+
* The `{name}` placeholder is dynamic and will be replaced with the active language name.
|
|
14
15
|
*/
|
|
15
16
|
textCurrentLanguage: string;
|
|
16
17
|
/**
|
|
@@ -34,13 +34,13 @@ export declare class PostMenu {
|
|
|
34
34
|
connectedCallback(): void;
|
|
35
35
|
disconnectedCallback(): void;
|
|
36
36
|
/**
|
|
37
|
-
* Toggles the menu visibility based on its current state
|
|
37
|
+
* Toggles the menu visibility based on its current state,
|
|
38
|
+
* `target` is the HTML element the menu is anchored to.
|
|
38
39
|
*/
|
|
39
40
|
toggle(target: HTMLElement): Promise<void>;
|
|
40
41
|
/**
|
|
41
|
-
* Displays the popover menu, focusing the first menu item
|
|
42
|
-
*
|
|
43
|
-
* @param target - The HTML element relative to which the popover menu should be displayed.
|
|
42
|
+
* Displays the popover menu, focusing the first menu item,
|
|
43
|
+
* `target` is the HTML element the menu is anchored to.
|
|
44
44
|
*/
|
|
45
45
|
show(target: HTMLElement): Promise<void>;
|
|
46
46
|
/**
|
|
@@ -20,8 +20,8 @@ export declare class PostPopover {
|
|
|
20
20
|
*/
|
|
21
21
|
readonly arrow?: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* Programmatically display the popover
|
|
24
|
-
*
|
|
23
|
+
* Programmatically display the popover,
|
|
24
|
+
* `target` is the HTML element the menu is anchored to.
|
|
25
25
|
*/
|
|
26
26
|
show(target: HTMLElement): Promise<void>;
|
|
27
27
|
/**
|
|
@@ -29,9 +29,8 @@ export declare class PostPopover {
|
|
|
29
29
|
*/
|
|
30
30
|
hide(): Promise<void>;
|
|
31
31
|
/**
|
|
32
|
-
* Toggle popover display
|
|
33
|
-
*
|
|
34
|
-
* @param force Pass true to always show or false to always hide
|
|
32
|
+
* Toggle popover display,
|
|
33
|
+
* `target` is the HTML element the menu is anchored to.
|
|
35
34
|
*/
|
|
36
35
|
toggle(target: HTMLElement, force?: boolean): Promise<void>;
|
|
37
36
|
private focusFirstEl;
|
|
@@ -92,7 +92,7 @@ export declare class PostPopovercontainer {
|
|
|
92
92
|
disconnectedCallback(): void;
|
|
93
93
|
/**
|
|
94
94
|
* Programmatically display the popovercontainer
|
|
95
|
-
* @param target
|
|
95
|
+
* @param target The element that invokes the popover and to which it is visually anchored.
|
|
96
96
|
*/
|
|
97
97
|
show(target: HTMLElement): Promise<void>;
|
|
98
98
|
/**
|
|
@@ -101,7 +101,7 @@ export declare class PostPopovercontainer {
|
|
|
101
101
|
hide(): Promise<void>;
|
|
102
102
|
/**
|
|
103
103
|
* Toggle popovercontainer display
|
|
104
|
-
* @param target
|
|
104
|
+
* @param target The element that invokes the popover and to which it is visually anchored.
|
|
105
105
|
* @param force Pass true to always show or false to always hide
|
|
106
106
|
*/
|
|
107
107
|
toggle(target: HTMLElement, force?: boolean): Promise<boolean>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { Device } from "../../utils/breakpoints";
|
|
3
|
+
import { SideNavigationSize } from './side-navigation-styles';
|
|
4
|
+
/**
|
|
5
|
+
* @slot default - Slot for the navigation content (must be a `<nav>` landmark with proper heading)
|
|
6
|
+
*/
|
|
7
|
+
export declare class PostSideNavigation {
|
|
8
|
+
host: HTMLPostSideNavigationElement;
|
|
9
|
+
device: Device;
|
|
10
|
+
/**
|
|
11
|
+
* Accessible label for the close button shown in the mobile navigation dialog.
|
|
12
|
+
*/
|
|
13
|
+
textClose: string;
|
|
14
|
+
/**
|
|
15
|
+
* Controls the size of the navigation items.
|
|
16
|
+
* Choose "small" for deep and long navigation, and "large" (default) for a flat and short navigation.
|
|
17
|
+
*/
|
|
18
|
+
size?: SideNavigationSize;
|
|
19
|
+
/**
|
|
20
|
+
* An event emitted when the navigation is shown or hidden on mobile.
|
|
21
|
+
* The payload is a boolean: `true` when the navigation opens, `false` when it closes.
|
|
22
|
+
*/
|
|
23
|
+
postToggle: EventEmitter<boolean>;
|
|
24
|
+
private breakpointChange;
|
|
25
|
+
connectedCallback(): void;
|
|
26
|
+
disconnectedCallback(): void;
|
|
27
|
+
get dialog(): HTMLDialogElement;
|
|
28
|
+
private get collapsibleTrigger();
|
|
29
|
+
private get collapsible();
|
|
30
|
+
/**
|
|
31
|
+
* Collapses the active disclosure on Escape; lets the native dialog handle it otherwise.
|
|
32
|
+
*/
|
|
33
|
+
private handleKeyDown;
|
|
34
|
+
/**
|
|
35
|
+
* Toggles the navigation programmatically.
|
|
36
|
+
* No-op on desktop.
|
|
37
|
+
*/
|
|
38
|
+
toggle(): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* Opens the navigation programmatically.
|
|
41
|
+
* No-op on desktop.
|
|
42
|
+
*/
|
|
43
|
+
show(): Promise<void>;
|
|
44
|
+
/**
|
|
45
|
+
* Closes the navigation programmatically.
|
|
46
|
+
* No-op on desktop.
|
|
47
|
+
*/
|
|
48
|
+
hide(): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Move focus into the navigation when the dialog opens.
|
|
51
|
+
*/
|
|
52
|
+
private focusNav;
|
|
53
|
+
/**
|
|
54
|
+
* Render inline navigation (desktop).
|
|
55
|
+
*/
|
|
56
|
+
private renderNav;
|
|
57
|
+
/**
|
|
58
|
+
* Render modal navigation (mobile/tablet).
|
|
59
|
+
*/
|
|
60
|
+
private renderDialog;
|
|
61
|
+
render(): any;
|
|
62
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @slot default - Slot for the `<button>` that toggles the navigation.
|
|
3
|
+
*/
|
|
4
|
+
export declare class PostSideNavigationTrigger {
|
|
5
|
+
host: HTMLPostSideNavigationTriggerElement;
|
|
6
|
+
for: string;
|
|
7
|
+
private trigger?;
|
|
8
|
+
private root;
|
|
9
|
+
private readonly observer;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
componentDidLoad(): void;
|
|
13
|
+
disconnectedCallback(): void;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve the post-side-navigation controlled by the trigger.
|
|
16
|
+
*/
|
|
17
|
+
private get sideNavigation();
|
|
18
|
+
/**
|
|
19
|
+
* Find the button, attach the click listener and the initial ARIA attributes.
|
|
20
|
+
*/
|
|
21
|
+
private setTrigger;
|
|
22
|
+
private updateAriaAttributes;
|
|
23
|
+
/**
|
|
24
|
+
* Keep the trigger's `aria-expanded` in sync with the navigation state.
|
|
25
|
+
*/
|
|
26
|
+
private handlePostToggle;
|
|
27
|
+
/**
|
|
28
|
+
* Manually update the trigger's ARIA attributes.
|
|
29
|
+
*/
|
|
30
|
+
update(): Promise<void>;
|
|
31
|
+
private toggleSideNavigation;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @slot default - Slot for the content of the tab item. Can contain text or an <a> element for
|
|
2
|
+
* @slot default - Slot for the content of the tab item. Can contain text or an <a> element for Page Tabs variant.
|
|
3
3
|
*/
|
|
4
4
|
export declare class PostTabItem {
|
|
5
|
-
private mutationObserver;
|
|
5
|
+
private readonly mutationObserver;
|
|
6
6
|
host: HTMLPostTabItemElement;
|
|
7
7
|
tabId: string;
|
|
8
|
-
|
|
8
|
+
isPagesVariant: boolean;
|
|
9
9
|
/**
|
|
10
10
|
* The name of the tab, used to associate it with a tab panel or identify the active tab in panel mode.
|
|
11
11
|
*/
|
|
12
12
|
readonly name: string;
|
|
13
|
+
/**
|
|
14
|
+
* Whether the tab item is disabled.
|
|
15
|
+
*/
|
|
16
|
+
disabled: boolean;
|
|
13
17
|
connectedCallback(): void;
|
|
14
18
|
componentWillLoad(): void;
|
|
15
19
|
disconnectedCallback(): void;
|
|
16
|
-
private
|
|
20
|
+
private checkPagesVariant;
|
|
17
21
|
render(): any;
|
|
18
22
|
}
|
|
@@ -3,58 +3,74 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
3
3
|
* @slot default - Slot for placing tab items. Each tab item should be a <post-tab-item> element.
|
|
4
4
|
* @slot panels - Slot for placing tab panels. Each tab panel should be a <post-tab-panel> element.
|
|
5
5
|
* @part post-tabs - The container element that holds the set of tabs.
|
|
6
|
-
* @part post-tabs-content - The container element that displays the content of the currently active tab. Only available in
|
|
6
|
+
* @part post-tabs-content - The container element that displays the content of the currently active tab. Only available in Content variant.
|
|
7
7
|
*/
|
|
8
8
|
export declare class PostTabs {
|
|
9
|
-
private currentActiveTab
|
|
9
|
+
private currentActiveTab?;
|
|
10
10
|
private showing;
|
|
11
11
|
private hiding;
|
|
12
12
|
private isLoaded;
|
|
13
|
-
private contentObserver
|
|
14
|
-
|
|
13
|
+
private contentObserver?;
|
|
14
|
+
private resizeObserver?;
|
|
15
|
+
private tabsContainer;
|
|
16
|
+
host: HTMLPostTabsElement;
|
|
17
|
+
isPagesVariant: boolean;
|
|
18
|
+
private showLeftScrollButton;
|
|
19
|
+
private showRightScrollButton;
|
|
20
|
+
private leftScrollButton;
|
|
21
|
+
private rightScrollButton;
|
|
15
22
|
private get tabs();
|
|
16
23
|
private get panels();
|
|
17
|
-
host: HTMLPostTabsElement;
|
|
18
24
|
/**
|
|
19
|
-
*
|
|
25
|
+
* An accessible label for the "previous tab items" button.
|
|
26
|
+
*/
|
|
27
|
+
textPrevTabItems: string;
|
|
28
|
+
/**
|
|
29
|
+
* An accessible label for the "next tab items" button.
|
|
30
|
+
*/
|
|
31
|
+
textNextTabItems: string;
|
|
32
|
+
/**
|
|
33
|
+
* The name of the tab in the Content Tabs variant that is initially active.
|
|
20
34
|
* Changing this value after initialization has no effect.
|
|
21
35
|
* If not specified, defaults to the first tab.
|
|
22
36
|
*/
|
|
23
37
|
readonly activeTab?: string;
|
|
24
38
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* full width of the screen, from edge to edge.
|
|
39
|
+
* The size of the tabs, corresponding to the different designs in Figma.
|
|
40
|
+
* Default is 'large'.
|
|
28
41
|
*/
|
|
29
|
-
|
|
42
|
+
size: 'small' | 'large';
|
|
30
43
|
/**
|
|
31
|
-
*
|
|
44
|
+
* An accessible label for the Pages Tabs variant
|
|
32
45
|
*/
|
|
33
46
|
readonly label?: string;
|
|
34
47
|
validateLabel(): void;
|
|
35
48
|
/**
|
|
36
49
|
* An event emitted after the active tab changes, when the fade in transition of its associated panel is finished.
|
|
37
50
|
* The payload is the name of the newly active tab.
|
|
38
|
-
* Only emitted in
|
|
51
|
+
* Only emitted in Content Tabs variant.
|
|
39
52
|
*/
|
|
40
53
|
postChange: EventEmitter<string>;
|
|
41
54
|
componentWillRender(): void;
|
|
42
55
|
componentDidLoad(): void;
|
|
43
56
|
disconnectedCallback(): void;
|
|
44
57
|
private setupContentObserver;
|
|
58
|
+
private setupResizeObserver;
|
|
45
59
|
private handleContentChange;
|
|
46
|
-
private
|
|
60
|
+
private shouldRedetectVariant;
|
|
47
61
|
private hasAriaCurrentChanged;
|
|
48
|
-
private
|
|
49
|
-
private
|
|
62
|
+
private updateActivePagesTab;
|
|
63
|
+
private handleVariantChange;
|
|
50
64
|
private initializeActiveTab;
|
|
51
|
-
private
|
|
52
|
-
private
|
|
65
|
+
private detectVariant;
|
|
66
|
+
private findActivePagesTab;
|
|
53
67
|
/**
|
|
54
68
|
* Shows the panel with the given name and selects its associated tab.
|
|
55
69
|
* Any other panel that was previously shown becomes hidden and its associated tab is unselected.
|
|
56
70
|
*/
|
|
57
71
|
show(tabName: string): Promise<void>;
|
|
72
|
+
private awaitAnimation;
|
|
73
|
+
private isAbortError;
|
|
58
74
|
private moveMisplacedTabs;
|
|
59
75
|
private moveMisplacedPanels;
|
|
60
76
|
private enableTabs;
|
|
@@ -63,5 +79,9 @@ export declare class PostTabs {
|
|
|
63
79
|
private showSelectedPanel;
|
|
64
80
|
private getPanel;
|
|
65
81
|
private navigateTabs;
|
|
82
|
+
private readonly updateScrollButtons;
|
|
83
|
+
private scrollTabs;
|
|
84
|
+
private scrollTabIntoView;
|
|
85
|
+
private handleScrollButtons;
|
|
66
86
|
render(): any;
|
|
67
87
|
}
|
|
@@ -18,8 +18,8 @@ export declare class PostTooltip {
|
|
|
18
18
|
open: boolean;
|
|
19
19
|
componentDidLoad(): void;
|
|
20
20
|
/**
|
|
21
|
-
* Programmatically display the tooltip
|
|
22
|
-
*
|
|
21
|
+
* Programmatically display the tooltip,
|
|
22
|
+
* `target` is the HTML element the menu is anchored to.
|
|
23
23
|
*/
|
|
24
24
|
show(target: HTMLElement): Promise<void>;
|
|
25
25
|
/**
|
|
@@ -27,9 +27,8 @@ export declare class PostTooltip {
|
|
|
27
27
|
*/
|
|
28
28
|
hide(): Promise<void>;
|
|
29
29
|
/**
|
|
30
|
-
* Toggle tooltip display
|
|
31
|
-
*
|
|
32
|
-
* @param [force] Pass true to always show or false to always hide
|
|
30
|
+
* Toggle tooltip display,
|
|
31
|
+
* `target` is the HTML element the menu is anchored to.
|
|
33
32
|
*/
|
|
34
33
|
toggle(target: HTMLElement, force?: boolean): Promise<void>;
|
|
35
34
|
/**
|