@carbon/ibm-products-web-components 0.30.0-rc.0 → 0.31.0-rc.0
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/custom-elements.json +5202 -0
- package/es/components/about-modal/_story-assets/ansible-logo.svg.js +11 -0
- package/es/components/about-modal/_story-assets/ansible-logo.svg.js.map +1 -0
- package/es/components/about-modal/_story-assets/grafana-logo.svg.js +11 -0
- package/es/components/about-modal/_story-assets/grafana-logo.svg.js.map +1 -0
- package/es/components/about-modal/_story-assets/js-logo.svg.js +11 -0
- package/es/components/about-modal/_story-assets/js-logo.svg.js.map +1 -0
- package/es/components/about-modal/about-modal-helpers.d.ts +15 -0
- package/es/components/about-modal/about-modal-helpers.js +141 -0
- package/es/components/about-modal/about-modal-helpers.js.map +1 -0
- package/es/components/about-modal/about-modal.d.ts +458 -0
- package/es/components/about-modal/about-modal.figma.js +59 -0
- package/es/components/about-modal/about-modal.figma.js.map +1 -0
- package/es/components/about-modal/about-modal.js +203 -0
- package/es/components/about-modal/about-modal.js.map +1 -0
- package/es/components/about-modal/about-modal.scss.js +13 -0
- package/es/components/about-modal/about-modal.scss.js.map +1 -0
- package/es/components/about-modal/about-modal.test.d.ts +7 -0
- package/es/components/about-modal/about-modal.test.js +208 -0
- package/es/components/about-modal/about-modal.test.js.map +1 -0
- package/es/components/about-modal/index.d.ts +9 -0
- package/es/components/about-modal/index.js +9 -0
- package/es/components/about-modal/index.js.map +1 -0
- package/es/components/checklist/checklist-chart.d.ts +25 -0
- package/es/components/checklist/checklist-chart.js +81 -0
- package/es/components/checklist/checklist-chart.js.map +1 -0
- package/es/components/checklist/checklist-group.d.ts +25 -0
- package/es/components/checklist/checklist-group.js +58 -0
- package/es/components/checklist/checklist-group.js.map +1 -0
- package/es/components/checklist/checklist-icon.d.ts +26 -0
- package/es/components/checklist/checklist-icon.js +72 -0
- package/es/components/checklist/checklist-icon.js.map +1 -0
- package/es/components/checklist/checklist-item.d.ts +41 -0
- package/es/components/checklist/checklist-item.figma.js +49 -0
- package/es/components/checklist/checklist-item.figma.js.map +1 -0
- package/es/components/checklist/checklist-item.js +128 -0
- package/es/components/checklist/checklist-item.js.map +1 -0
- package/es/components/checklist/checklist.d.ts +73 -0
- package/es/components/checklist/checklist.figma.js +87 -0
- package/es/components/checklist/checklist.figma.js.map +1 -0
- package/es/components/checklist/checklist.js +198 -0
- package/es/components/checklist/checklist.js.map +1 -0
- package/es/components/checklist/checklist.scss.js +13 -0
- package/es/components/checklist/checklist.scss.js.map +1 -0
- package/es/components/checklist/checklist.test.d.ts +7 -0
- package/es/components/checklist/checklist.test.js +172 -0
- package/es/components/checklist/checklist.test.js.map +1 -0
- package/es/components/checklist/checklist.types.d.ts +22 -0
- package/es/components/checklist/checklist.types.js +32 -0
- package/es/components/checklist/checklist.types.js.map +1 -0
- package/es/components/checklist/index.d.ts +13 -0
- package/es/components/checklist/index.js +13 -0
- package/es/components/checklist/index.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js +139 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +13 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +77 -0
- package/es/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/es/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/es/components/coachmark/coachmark-beacon/index.js +9 -0
- package/es/components/coachmark/coachmark-beacon/index.js.map +1 -0
- package/es/components/coachmark/coachmark-body.d.ts +382 -0
- package/es/components/coachmark/coachmark-body.js +40 -0
- package/es/components/coachmark/coachmark-body.js.map +1 -0
- package/es/components/coachmark/coachmark-body.scss.js +13 -0
- package/es/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es/components/coachmark/coachmark-context.d.ts +11 -0
- package/es/components/coachmark/coachmark-context.js +39 -0
- package/es/components/coachmark/coachmark-context.js.map +1 -0
- package/es/components/coachmark/coachmark-header.d.ts +392 -0
- package/es/components/coachmark/coachmark-header.js +92 -0
- package/es/components/coachmark/coachmark-header.js.map +1 -0
- package/es/components/coachmark/coachmark-header.scss.js +13 -0
- package/es/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es/components/coachmark/coachmark.d.ts +416 -0
- package/es/components/coachmark/coachmark.js +165 -0
- package/es/components/coachmark/coachmark.js.map +1 -0
- package/es/components/coachmark/coachmark.scss.js +13 -0
- package/es/components/coachmark/coachmark.scss.js.map +1 -0
- package/es/components/coachmark/coachmark.test.d.ts +1 -0
- package/es/components/coachmark/coachmark.test.js +168 -0
- package/es/components/coachmark/coachmark.test.js.map +1 -0
- package/es/components/coachmark/index.d.ts +11 -0
- package/es/components/coachmark/index.js +11 -0
- package/es/components/coachmark/index.js.map +1 -0
- package/es/components/full-page-error/assets/error403SVG.js +831 -0
- package/es/components/full-page-error/assets/error403SVG.js.map +1 -0
- package/es/components/full-page-error/assets/error404SVG.js +735 -0
- package/es/components/full-page-error/assets/error404SVG.js.map +1 -0
- package/es/components/full-page-error/assets/errorGenericSVG.js +830 -0
- package/es/components/full-page-error/assets/errorGenericSVG.js.map +1 -0
- package/es/components/full-page-error/full-page-error.d.ts +43 -0
- package/es/components/full-page-error/full-page-error.figma.js +81 -0
- package/es/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es/components/full-page-error/full-page-error.js +102 -0
- package/es/components/full-page-error/full-page-error.js.map +1 -0
- package/es/components/full-page-error/full-page-error.scss.js +13 -0
- package/es/components/full-page-error/full-page-error.scss.js.map +1 -0
- package/es/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/es/components/full-page-error/full-page-error.test.js +102 -0
- package/es/components/full-page-error/full-page-error.test.js.map +1 -0
- package/es/components/full-page-error/index.d.ts +9 -0
- package/es/components/full-page-error/index.js +9 -0
- package/es/components/full-page-error/index.js.map +1 -0
- package/es/components/full-page-error/types.d.ts +13 -0
- package/es/components/full-page-error/types.js +24 -0
- package/es/components/full-page-error/types.js.map +1 -0
- package/es/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/es/components/guide-banner/guide-banner-element.js +38 -0
- package/es/components/guide-banner/guide-banner-element.js.map +1 -0
- package/es/components/guide-banner/guide-banner.d.ts +398 -0
- package/es/components/guide-banner/guide-banner.js +151 -0
- package/es/components/guide-banner/guide-banner.js.map +1 -0
- package/es/components/guide-banner/guide-banner.scss.js +13 -0
- package/es/components/guide-banner/guide-banner.scss.js.map +1 -0
- package/es/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/es/components/guide-banner/guide-banner.test.js +121 -0
- package/es/components/guide-banner/guide-banner.test.js.map +1 -0
- package/es/components/guide-banner/index.d.ts +10 -0
- package/es/components/guide-banner/index.js +10 -0
- package/es/components/guide-banner/index.js.map +1 -0
- package/es/components/interstitial-screen/index.d.ts +13 -0
- package/es/components/interstitial-screen/index.js +13 -0
- package/es/components/interstitial-screen/index.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js +71 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js +152 -0
- package/es/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js +263 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js +177 -0
- package/es/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/es/components/interstitial-screen/interstitial-screen.js +217 -0
- package/es/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/es/components/interstitial-screen/interstitial-screen.test.js +329 -0
- package/es/components/interstitial-screen/interstitial-screen.test.js.map +1 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es/components/notification-panel/date-time-context.d.ts +9 -0
- package/es/components/notification-panel/date-time-context.js +19 -0
- package/es/components/notification-panel/date-time-context.js.map +1 -0
- package/es/components/notification-panel/defs.d.ts +8 -0
- package/es/components/notification-panel/defs.js +8 -0
- package/es/components/notification-panel/defs.js.map +1 -0
- package/es/components/notification-panel/index.d.ts +11 -0
- package/es/components/notification-panel/index.js +11 -0
- package/es/components/notification-panel/index.js.map +1 -0
- package/es/components/notification-panel/notification-footer.d.ts +405 -0
- package/es/components/notification-panel/notification-footer.js +120 -0
- package/es/components/notification-panel/notification-footer.js.map +1 -0
- package/es/components/notification-panel/notification-footer.scss.js +13 -0
- package/es/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/es/components/notification-panel/notification-footer.test.js +65 -0
- package/es/components/notification-panel/notification-footer.test.js.map +1 -0
- package/es/components/notification-panel/notification-panel-footer.figma.js +31 -0
- package/es/components/notification-panel/notification-panel-footer.figma.js.map +1 -0
- package/es/components/notification-panel/notification-panel.d.ts +479 -0
- package/es/components/notification-panel/notification-panel.figma.js +114 -0
- package/es/components/notification-panel/notification-panel.figma.js.map +1 -0
- package/es/components/notification-panel/notification-panel.js +439 -0
- package/es/components/notification-panel/notification-panel.js.map +1 -0
- package/es/components/notification-panel/notification-panel.scss.js +13 -0
- package/es/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es/components/notification-panel/notification-panel.test.js +340 -0
- package/es/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es/components/notification-panel/notification.d.ts +415 -0
- package/es/components/notification-panel/notification.figma.js +55 -0
- package/es/components/notification-panel/notification.figma.js.map +1 -0
- package/es/components/notification-panel/notification.js +179 -0
- package/es/components/notification-panel/notification.js.map +1 -0
- package/es/components/notification-panel/notification.scss.js +13 -0
- package/es/components/notification-panel/notification.scss.js.map +1 -0
- package/es/components/notification-panel/notification.test.d.ts +7 -0
- package/es/components/notification-panel/notification.test.js +152 -0
- package/es/components/notification-panel/notification.test.js.map +1 -0
- package/es/components/options-tile/index.d.ts +9 -0
- package/es/components/options-tile/index.js +9 -0
- package/es/components/options-tile/index.js.map +1 -0
- package/es/components/options-tile/options-file.figma.js +96 -0
- package/es/components/options-tile/options-file.figma.js.map +1 -0
- package/es/components/options-tile/options-tile.d.ts +416 -0
- package/es/components/options-tile/options-tile.js +158 -0
- package/es/components/options-tile/options-tile.js.map +1 -0
- package/es/components/options-tile/options-tile.scss.js +13 -0
- package/es/components/options-tile/options-tile.scss.js.map +1 -0
- package/es/components/options-tile/options-tile.test.d.ts +1 -0
- package/es/components/options-tile/options-tile.test.js +129 -0
- package/es/components/options-tile/options-tile.test.js.map +1 -0
- package/es/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js +154 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.js +9 -0
- package/es/components/page-header/_story-assets/set-of-tags/index.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js +260 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +13 -0
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.js +44 -0
- package/es/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -0
- package/es/components/page-header/context.d.ts +15 -0
- package/es/components/page-header/context.js +27 -0
- package/es/components/page-header/context.js.map +1 -0
- package/es/components/page-header/index.d.ts +16 -0
- package/es/components/page-header/index.js +16 -0
- package/es/components/page-header/index.js.map +1 -0
- package/es/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/es/components/page-header/page-header-breadcrumb.js +106 -0
- package/es/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header-content-text.d.ts +22 -0
- package/es/components/page-header/page-header-content-text.js +56 -0
- package/es/components/page-header/page-header-content-text.js.map +1 -0
- package/es/components/page-header/page-header-content.d.ts +42 -0
- package/es/components/page-header/page-header-content.js +141 -0
- package/es/components/page-header/page-header-content.js.map +1 -0
- package/es/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es/components/page-header/page-header-hero-image.js +38 -0
- package/es/components/page-header/page-header-hero-image.js.map +1 -0
- package/es/components/page-header/page-header-scroller.d.ts +56 -0
- package/es/components/page-header/page-header-scroller.js +166 -0
- package/es/components/page-header/page-header-scroller.js.map +1 -0
- package/es/components/page-header/page-header-tabs.d.ts +18 -0
- package/es/components/page-header/page-header-tabs.js +48 -0
- package/es/components/page-header/page-header-tabs.js.map +1 -0
- package/es/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es/components/page-header/page-header-title-breadcrumb.js +71 -0
- package/es/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es/components/page-header/page-header.d.ts +31 -0
- package/es/components/page-header/page-header.js +128 -0
- package/es/components/page-header/page-header.js.map +1 -0
- package/es/components/page-header/page-header.scss.js +13 -0
- package/es/components/page-header/page-header.scss.js.map +1 -0
- package/es/components/page-header/page-header.test.d.ts +1 -0
- package/es/components/page-header/page-header.test.js +349 -0
- package/es/components/page-header/page-header.test.js.map +1 -0
- package/es/components/page-header/utils.d.ts +32 -0
- package/es/components/page-header/utils.js +76 -0
- package/es/components/page-header/utils.js.map +1 -0
- package/es/components/side-panel/_story-assets/index.d.ts +8 -0
- package/es/components/side-panel/_story-assets/index.js +275 -0
- package/es/components/side-panel/_story-assets/index.js.map +1 -0
- package/es/components/side-panel/defs.d.ts +39 -0
- package/es/components/side-panel/defs.js +51 -0
- package/es/components/side-panel/defs.js.map +1 -0
- package/es/components/side-panel/index.d.ts +9 -0
- package/es/components/side-panel/index.js +9 -0
- package/es/components/side-panel/index.js.map +1 -0
- package/es/components/side-panel/side-panel.d.ts +571 -0
- package/es/components/side-panel/side-panel.js +859 -0
- package/es/components/side-panel/side-panel.js.map +1 -0
- package/es/components/side-panel/side-panel.scss.js +13 -0
- package/es/components/side-panel/side-panel.scss.js.map +1 -0
- package/es/components/side-panel/side-panel.test.d.ts +3 -0
- package/es/components/side-panel/side-panel.test.js +273 -0
- package/es/components/side-panel/side-panel.test.js.map +1 -0
- package/es/components/side-panel/story-styles.scss.js +13 -0
- package/es/components/side-panel/story-styles.scss.js.map +1 -0
- package/es/components/tearsheet/defs.d.ts +26 -0
- package/es/components/tearsheet/defs.js +39 -0
- package/es/components/tearsheet/defs.js.map +1 -0
- package/es/components/tearsheet/index.d.ts +9 -0
- package/es/components/tearsheet/index.js +9 -0
- package/es/components/tearsheet/index.js.map +1 -0
- package/es/components/tearsheet/story-styles.scss.js +13 -0
- package/es/components/tearsheet/story-styles.scss.js.map +1 -0
- package/es/components/tearsheet/tearsheet.d.ts +535 -0
- package/es/components/tearsheet/tearsheet.js +721 -0
- package/es/components/tearsheet/tearsheet.js.map +1 -0
- package/es/components/tearsheet/tearsheet.scss.js +13 -0
- package/es/components/tearsheet/tearsheet.scss.js.map +1 -0
- package/es/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/es/components/tearsheet/tearsheet.test.js +305 -0
- package/es/components/tearsheet/tearsheet.test.js.map +1 -0
- package/es/components/tearsheet/utils.d.ts +34 -0
- package/es/components/tearsheet/utils.js +370 -0
- package/es/components/tearsheet/utils.js.map +1 -0
- package/es/components/truncated-text/index.d.ts +9 -0
- package/es/components/truncated-text/index.js +9 -0
- package/es/components/truncated-text/index.js.map +1 -0
- package/es/components/truncated-text/truncated-text.d.ts +78 -0
- package/es/components/truncated-text/truncated-text.js +257 -0
- package/es/components/truncated-text/truncated-text.js.map +1 -0
- package/es/components/truncated-text/truncated-text.scss.js +13 -0
- package/es/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es/components/truncated-text/truncated-text.test.js +77 -0
- package/es/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es/components/user-avatar/index.d.ts +9 -0
- package/es/components/user-avatar/index.js +9 -0
- package/es/components/user-avatar/index.js.map +1 -0
- package/es/components/user-avatar/user-avatar.d.ts +425 -0
- package/es/components/user-avatar/user-avatar.figma.js +161 -0
- package/es/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es/components/user-avatar/user-avatar.js +141 -0
- package/es/components/user-avatar/user-avatar.js.map +1 -0
- package/es/components/user-avatar/user-avatar.scss.js +13 -0
- package/es/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/es/components/user-avatar/user-avatar.test.js +128 -0
- package/es/components/user-avatar/user-avatar.test.js.map +1 -0
- package/es/globals/internal/handle.d.ts +18 -0
- package/es/globals/internal/handle.js +8 -0
- package/es/globals/internal/handle.js.map +1 -0
- package/es/globals/internal/pconsole.d.ts +15 -0
- package/es/globals/internal/pconsole.js +30 -0
- package/es/globals/internal/pconsole.js.map +1 -0
- package/es/globals/internal/storybook-cdn.js +78 -0
- package/es/globals/internal/storybook-cdn.js.map +1 -0
- package/es/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es/globals/js/utils/getSupportedLocale.js +35 -0
- package/es/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es/globals/settings.d.ts +15 -0
- package/es/globals/settings.js +28 -0
- package/es/globals/settings.js.map +1 -0
- package/es/index.d.ts +25 -0
- package/es/index.js +25 -0
- package/es/index.js.map +1 -0
- package/es/node_modules/@carbon/layout/es/index.js +44 -0
- package/es/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es/packages/ibm-products-web-components/package.json.js +13 -0
- package/es/packages/ibm-products-web-components/package.json.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
- package/es/patterns/step-flow/_story-assets/step-side-panel.js +217 -0
- package/es/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-side-panel.scss.js +13 -0
- package/es/patterns/step-flow/_story-assets/step-side-panel.scss.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js +255 -0
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es/patterns/step-flow/index.d.ts +10 -0
- package/es/patterns/step-flow/index.js +10 -0
- package/es/patterns/step-flow/index.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/es/patterns/step-flow/step-flow-signal.js +54 -0
- package/es/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/es/patterns/step-flow/step-flow-signal.test.js +88 -0
- package/es/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es/patterns/step-flow/step-group.d.ts +15 -0
- package/es/patterns/step-flow/step-group.js +28 -0
- package/es/patterns/step-flow/step-group.js.map +1 -0
- package/es/patterns/step-flow/story-styles.scss.js +13 -0
- package/es/patterns/step-flow/story-styles.scss.js.map +1 -0
- package/es/utilities/carousel/carousel.d.ts +14 -0
- package/es/utilities/carousel/carousel.js +341 -0
- package/es/utilities/carousel/carousel.js.map +1 -0
- package/es/utilities/carousel/index.d.ts +8 -0
- package/es/utilities/carousel/index.js +9 -0
- package/es/utilities/carousel/index.js.map +1 -0
- package/es/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es/utilities/carousel/swipeEvents.js +109 -0
- package/es/utilities/carousel/swipeEvents.js.map +1 -0
- package/es/utilities/carousel/types.d.ts +37 -0
- package/es/utilities/carousel/types.js +8 -0
- package/es/utilities/carousel/types.js.map +1 -0
- package/es/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/es/utilities/makeDraggable/makeDraggable.js +136 -0
- package/es/utilities/makeDraggable/makeDraggable.js.map +1 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.js +138 -0
- package/es/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -0
- package/es-custom/components/about-modal/_story-assets/ansible-logo.svg.js +11 -0
- package/es-custom/components/about-modal/_story-assets/ansible-logo.svg.js.map +1 -0
- package/es-custom/components/about-modal/_story-assets/grafana-logo.svg.js +11 -0
- package/es-custom/components/about-modal/_story-assets/grafana-logo.svg.js.map +1 -0
- package/es-custom/components/about-modal/_story-assets/js-logo.svg.js +11 -0
- package/es-custom/components/about-modal/_story-assets/js-logo.svg.js.map +1 -0
- package/es-custom/components/about-modal/about-modal-helpers.d.ts +15 -0
- package/es-custom/components/about-modal/about-modal-helpers.js +141 -0
- package/es-custom/components/about-modal/about-modal-helpers.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.d.ts +458 -0
- package/es-custom/components/about-modal/about-modal.figma.js +59 -0
- package/es-custom/components/about-modal/about-modal.figma.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.js +203 -0
- package/es-custom/components/about-modal/about-modal.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.scss.js +13 -0
- package/es-custom/components/about-modal/about-modal.scss.js.map +1 -0
- package/es-custom/components/about-modal/about-modal.test.d.ts +7 -0
- package/es-custom/components/about-modal/about-modal.test.js +208 -0
- package/es-custom/components/about-modal/about-modal.test.js.map +1 -0
- package/es-custom/components/about-modal/index.d.ts +9 -0
- package/es-custom/components/about-modal/index.js +9 -0
- package/es-custom/components/about-modal/index.js.map +1 -0
- package/es-custom/components/checklist/checklist-chart.d.ts +25 -0
- package/es-custom/components/checklist/checklist-chart.js +81 -0
- package/es-custom/components/checklist/checklist-chart.js.map +1 -0
- package/es-custom/components/checklist/checklist-group.d.ts +25 -0
- package/es-custom/components/checklist/checklist-group.js +58 -0
- package/es-custom/components/checklist/checklist-group.js.map +1 -0
- package/es-custom/components/checklist/checklist-icon.d.ts +26 -0
- package/es-custom/components/checklist/checklist-icon.js +72 -0
- package/es-custom/components/checklist/checklist-icon.js.map +1 -0
- package/es-custom/components/checklist/checklist-item.d.ts +41 -0
- package/es-custom/components/checklist/checklist-item.figma.js +49 -0
- package/es-custom/components/checklist/checklist-item.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist-item.js +128 -0
- package/es-custom/components/checklist/checklist-item.js.map +1 -0
- package/es-custom/components/checklist/checklist.d.ts +73 -0
- package/es-custom/components/checklist/checklist.figma.js +87 -0
- package/es-custom/components/checklist/checklist.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist.js +198 -0
- package/es-custom/components/checklist/checklist.js.map +1 -0
- package/es-custom/components/checklist/checklist.scss.js +13 -0
- package/es-custom/components/checklist/checklist.scss.js.map +1 -0
- package/es-custom/components/checklist/checklist.test.d.ts +7 -0
- package/es-custom/components/checklist/checklist.test.js +172 -0
- package/es-custom/components/checklist/checklist.test.js.map +1 -0
- package/es-custom/components/checklist/checklist.types.d.ts +22 -0
- package/es-custom/components/checklist/checklist.types.js +32 -0
- package/es-custom/components/checklist/checklist.types.js.map +1 -0
- package/es-custom/components/checklist/index.d.ts +13 -0
- package/es-custom/components/checklist/index.js +13 -0
- package/es-custom/components/checklist/index.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js +139 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js +77 -0
- package/es-custom/components/coachmark/coachmark-beacon/coachmark-beacon.test.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/es-custom/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.js +9 -0
- package/es-custom/components/coachmark/coachmark-beacon/index.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.d.ts +382 -0
- package/es-custom/components/coachmark/coachmark-body.js +40 -0
- package/es-custom/components/coachmark/coachmark-body.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-body.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-context.d.ts +11 -0
- package/es-custom/components/coachmark/coachmark-context.js +39 -0
- package/es-custom/components/coachmark/coachmark-context.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.d.ts +392 -0
- package/es-custom/components/coachmark/coachmark-header.js +92 -0
- package/es-custom/components/coachmark/coachmark-header.js.map +1 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark-header.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.d.ts +416 -0
- package/es-custom/components/coachmark/coachmark.js +165 -0
- package/es-custom/components/coachmark/coachmark.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.scss.js +13 -0
- package/es-custom/components/coachmark/coachmark.scss.js.map +1 -0
- package/es-custom/components/coachmark/coachmark.test.d.ts +1 -0
- package/es-custom/components/coachmark/coachmark.test.js +168 -0
- package/es-custom/components/coachmark/coachmark.test.js.map +1 -0
- package/es-custom/components/coachmark/index.d.ts +11 -0
- package/es-custom/components/coachmark/index.js +11 -0
- package/es-custom/components/coachmark/index.js.map +1 -0
- package/es-custom/components/full-page-error/assets/error403SVG.js +831 -0
- package/es-custom/components/full-page-error/assets/error403SVG.js.map +1 -0
- package/es-custom/components/full-page-error/assets/error404SVG.js +735 -0
- package/es-custom/components/full-page-error/assets/error404SVG.js.map +1 -0
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js +830 -0
- package/es-custom/components/full-page-error/assets/errorGenericSVG.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.d.ts +43 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js +81 -0
- package/es-custom/components/full-page-error/full-page-error.figma.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.js +102 -0
- package/es-custom/components/full-page-error/full-page-error.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.scss.js +13 -0
- package/es-custom/components/full-page-error/full-page-error.scss.js.map +1 -0
- package/es-custom/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/es-custom/components/full-page-error/full-page-error.test.js +102 -0
- package/es-custom/components/full-page-error/full-page-error.test.js.map +1 -0
- package/es-custom/components/full-page-error/index.d.ts +9 -0
- package/es-custom/components/full-page-error/index.js +9 -0
- package/es-custom/components/full-page-error/index.js.map +1 -0
- package/es-custom/components/full-page-error/types.d.ts +13 -0
- package/es-custom/components/full-page-error/types.js +24 -0
- package/es-custom/components/full-page-error/types.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/es-custom/components/guide-banner/guide-banner-element.js +38 -0
- package/es-custom/components/guide-banner/guide-banner-element.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.d.ts +398 -0
- package/es-custom/components/guide-banner/guide-banner.js +151 -0
- package/es-custom/components/guide-banner/guide-banner.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.scss.js +13 -0
- package/es-custom/components/guide-banner/guide-banner.scss.js.map +1 -0
- package/es-custom/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/es-custom/components/guide-banner/guide-banner.test.js +121 -0
- package/es-custom/components/guide-banner/guide-banner.test.js.map +1 -0
- package/es-custom/components/guide-banner/index.d.ts +10 -0
- package/es-custom/components/guide-banner/index.js +10 -0
- package/es-custom/components/guide-banner/index.js.map +1 -0
- package/es-custom/components/interstitial-screen/index.d.ts +13 -0
- package/es-custom/components/interstitial-screen/index.js +13 -0
- package/es-custom/components/interstitial-screen/index.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js +71 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body-item.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js +152 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-body.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js +48 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-context.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js +263 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-footer.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js +177 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen-header.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js +217 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js +13 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.scss.js.map +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js +329 -0
- package/es-custom/components/interstitial-screen/interstitial-screen.test.js.map +1 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js +45 -0
- package/es-custom/components/notification-panel/_story-assets/unread-notification-bell.js.map +1 -0
- package/es-custom/components/notification-panel/date-time-context.d.ts +9 -0
- package/es-custom/components/notification-panel/date-time-context.js +19 -0
- package/es-custom/components/notification-panel/date-time-context.js.map +1 -0
- package/es-custom/components/notification-panel/defs.d.ts +8 -0
- package/es-custom/components/notification-panel/defs.js +8 -0
- package/es-custom/components/notification-panel/defs.js.map +1 -0
- package/es-custom/components/notification-panel/index.d.ts +11 -0
- package/es-custom/components/notification-panel/index.js +11 -0
- package/es-custom/components/notification-panel/index.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.d.ts +405 -0
- package/es-custom/components/notification-panel/notification-footer.js +120 -0
- package/es-custom/components/notification-panel/notification-footer.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-footer.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-footer.test.js +65 -0
- package/es-custom/components/notification-panel/notification-footer.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel-footer.figma.js +31 -0
- package/es-custom/components/notification-panel/notification-panel-footer.figma.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.d.ts +479 -0
- package/es-custom/components/notification-panel/notification-panel.figma.js +114 -0
- package/es-custom/components/notification-panel/notification-panel.figma.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.js +439 -0
- package/es-custom/components/notification-panel/notification-panel.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js +13 -0
- package/es-custom/components/notification-panel/notification-panel.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification-panel.test.js +340 -0
- package/es-custom/components/notification-panel/notification-panel.test.js.map +1 -0
- package/es-custom/components/notification-panel/notification.d.ts +415 -0
- package/es-custom/components/notification-panel/notification.figma.js +55 -0
- package/es-custom/components/notification-panel/notification.figma.js.map +1 -0
- package/es-custom/components/notification-panel/notification.js +179 -0
- package/es-custom/components/notification-panel/notification.js.map +1 -0
- package/es-custom/components/notification-panel/notification.scss.js +13 -0
- package/es-custom/components/notification-panel/notification.scss.js.map +1 -0
- package/es-custom/components/notification-panel/notification.test.d.ts +7 -0
- package/es-custom/components/notification-panel/notification.test.js +152 -0
- package/es-custom/components/notification-panel/notification.test.js.map +1 -0
- package/es-custom/components/options-tile/index.d.ts +9 -0
- package/es-custom/components/options-tile/index.js +9 -0
- package/es-custom/components/options-tile/index.js.map +1 -0
- package/es-custom/components/options-tile/options-file.figma.js +96 -0
- package/es-custom/components/options-tile/options-file.figma.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.d.ts +416 -0
- package/es-custom/components/options-tile/options-tile.js +158 -0
- package/es-custom/components/options-tile/options-tile.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.scss.js +13 -0
- package/es-custom/components/options-tile/options-tile.scss.js.map +1 -0
- package/es-custom/components/options-tile/options-tile.test.d.ts +1 -0
- package/es-custom/components/options-tile/options-tile.test.js +129 -0
- package/es-custom/components/options-tile/options-tile.test.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/2x1.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js +11 -0
- package/es-custom/components/page-header/_story-assets/3x2.jpg.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js +156 -0
- package/es-custom/components/page-header/_story-assets/overflowHandler.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js +154 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +13 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js +9 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/index.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js +260 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +13 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js +44 -0
- package/es-custom/components/page-header/_story-assets/set-of-tags/utils.js.map +1 -0
- package/es-custom/components/page-header/context.d.ts +15 -0
- package/es-custom/components/page-header/context.js +27 -0
- package/es-custom/components/page-header/context.js.map +1 -0
- package/es-custom/components/page-header/index.d.ts +16 -0
- package/es-custom/components/page-header/index.js +16 -0
- package/es-custom/components/page-header/index.js.map +1 -0
- package/es-custom/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js +106 -0
- package/es-custom/components/page-header/page-header-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header-content-text.d.ts +22 -0
- package/es-custom/components/page-header/page-header-content-text.js +56 -0
- package/es-custom/components/page-header/page-header-content-text.js.map +1 -0
- package/es-custom/components/page-header/page-header-content.d.ts +42 -0
- package/es-custom/components/page-header/page-header-content.js +141 -0
- package/es-custom/components/page-header/page-header-content.js.map +1 -0
- package/es-custom/components/page-header/page-header-hero-image.d.ts +18 -0
- package/es-custom/components/page-header/page-header-hero-image.js +38 -0
- package/es-custom/components/page-header/page-header-hero-image.js.map +1 -0
- package/es-custom/components/page-header/page-header-scroller.d.ts +56 -0
- package/es-custom/components/page-header/page-header-scroller.js +166 -0
- package/es-custom/components/page-header/page-header-scroller.js.map +1 -0
- package/es-custom/components/page-header/page-header-tabs.d.ts +18 -0
- package/es-custom/components/page-header/page-header-tabs.js +48 -0
- package/es-custom/components/page-header/page-header-tabs.js.map +1 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js +71 -0
- package/es-custom/components/page-header/page-header-title-breadcrumb.js.map +1 -0
- package/es-custom/components/page-header/page-header.d.ts +31 -0
- package/es-custom/components/page-header/page-header.js +128 -0
- package/es-custom/components/page-header/page-header.js.map +1 -0
- package/es-custom/components/page-header/page-header.scss.js +13 -0
- package/es-custom/components/page-header/page-header.scss.js.map +1 -0
- package/es-custom/components/page-header/page-header.test.d.ts +1 -0
- package/es-custom/components/page-header/page-header.test.js +349 -0
- package/es-custom/components/page-header/page-header.test.js.map +1 -0
- package/es-custom/components/page-header/utils.d.ts +32 -0
- package/es-custom/components/page-header/utils.js +76 -0
- package/es-custom/components/page-header/utils.js.map +1 -0
- package/es-custom/components/side-panel/_story-assets/index.d.ts +8 -0
- package/es-custom/components/side-panel/_story-assets/index.js +275 -0
- package/es-custom/components/side-panel/_story-assets/index.js.map +1 -0
- package/es-custom/components/side-panel/defs.d.ts +39 -0
- package/es-custom/components/side-panel/defs.js +51 -0
- package/es-custom/components/side-panel/defs.js.map +1 -0
- package/es-custom/components/side-panel/index.d.ts +9 -0
- package/es-custom/components/side-panel/index.js +9 -0
- package/es-custom/components/side-panel/index.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.d.ts +571 -0
- package/es-custom/components/side-panel/side-panel.js +859 -0
- package/es-custom/components/side-panel/side-panel.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.scss.js +13 -0
- package/es-custom/components/side-panel/side-panel.scss.js.map +1 -0
- package/es-custom/components/side-panel/side-panel.test.d.ts +3 -0
- package/es-custom/components/side-panel/side-panel.test.js +273 -0
- package/es-custom/components/side-panel/side-panel.test.js.map +1 -0
- package/es-custom/components/side-panel/story-styles.scss.js +13 -0
- package/es-custom/components/side-panel/story-styles.scss.js.map +1 -0
- package/es-custom/components/tearsheet/defs.d.ts +26 -0
- package/es-custom/components/tearsheet/defs.js +39 -0
- package/es-custom/components/tearsheet/defs.js.map +1 -0
- package/es-custom/components/tearsheet/index.d.ts +9 -0
- package/es-custom/components/tearsheet/index.js +9 -0
- package/es-custom/components/tearsheet/index.js.map +1 -0
- package/es-custom/components/tearsheet/story-styles.scss.js +13 -0
- package/es-custom/components/tearsheet/story-styles.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.d.ts +535 -0
- package/es-custom/components/tearsheet/tearsheet.js +721 -0
- package/es-custom/components/tearsheet/tearsheet.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js +13 -0
- package/es-custom/components/tearsheet/tearsheet.scss.js.map +1 -0
- package/es-custom/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/es-custom/components/tearsheet/tearsheet.test.js +305 -0
- package/es-custom/components/tearsheet/tearsheet.test.js.map +1 -0
- package/es-custom/components/tearsheet/utils.d.ts +34 -0
- package/es-custom/components/tearsheet/utils.js +370 -0
- package/es-custom/components/tearsheet/utils.js.map +1 -0
- package/es-custom/components/truncated-text/index.d.ts +9 -0
- package/es-custom/components/truncated-text/index.js +9 -0
- package/es-custom/components/truncated-text/index.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.d.ts +78 -0
- package/es-custom/components/truncated-text/truncated-text.js +257 -0
- package/es-custom/components/truncated-text/truncated-text.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js +13 -0
- package/es-custom/components/truncated-text/truncated-text.scss.js.map +1 -0
- package/es-custom/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/es-custom/components/truncated-text/truncated-text.test.js +77 -0
- package/es-custom/components/truncated-text/truncated-text.test.js.map +1 -0
- package/es-custom/components/user-avatar/index.d.ts +9 -0
- package/es-custom/components/user-avatar/index.js +9 -0
- package/es-custom/components/user-avatar/index.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.d.ts +425 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js +161 -0
- package/es-custom/components/user-avatar/user-avatar.figma.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.js +141 -0
- package/es-custom/components/user-avatar/user-avatar.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js +13 -0
- package/es-custom/components/user-avatar/user-avatar.scss.js.map +1 -0
- package/es-custom/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/es-custom/components/user-avatar/user-avatar.test.js +128 -0
- package/es-custom/components/user-avatar/user-avatar.test.js.map +1 -0
- package/es-custom/globals/internal/handle.d.ts +18 -0
- package/es-custom/globals/internal/handle.js +8 -0
- package/es-custom/globals/internal/handle.js.map +1 -0
- package/es-custom/globals/internal/pconsole.d.ts +15 -0
- package/es-custom/globals/internal/pconsole.js +30 -0
- package/es-custom/globals/internal/pconsole.js.map +1 -0
- package/es-custom/globals/internal/storybook-cdn.js +78 -0
- package/es-custom/globals/internal/storybook-cdn.js.map +1 -0
- package/es-custom/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js +35 -0
- package/es-custom/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/es-custom/globals/settings.d.ts +15 -0
- package/es-custom/globals/settings.js +28 -0
- package/es-custom/globals/settings.js.map +1 -0
- package/es-custom/index.d.ts +25 -0
- package/es-custom/index.js +25 -0
- package/es-custom/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js +44 -0
- package/es-custom/node_modules/@carbon/layout/es/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js +13 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/index.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/dateTimeFormat/relative.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js +13 -0
- package/es-custom/packages/ibm-products-web-components/package.json.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
- package/es-custom/patterns/step-flow/_story-assets/step-side-panel.js +217 -0
- package/es-custom/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-side-panel.scss.js +13 -0
- package/es-custom/patterns/step-flow/_story-assets/step-side-panel.scss.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js +255 -0
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es-custom/patterns/step-flow/index.d.ts +10 -0
- package/es-custom/patterns/step-flow/index.js +10 -0
- package/es-custom/patterns/step-flow/index.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/es-custom/patterns/step-flow/step-flow-signal.js +54 -0
- package/es-custom/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.js +88 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es-custom/patterns/step-flow/step-group.d.ts +15 -0
- package/es-custom/patterns/step-flow/step-group.js +28 -0
- package/es-custom/patterns/step-flow/step-group.js.map +1 -0
- package/es-custom/patterns/step-flow/story-styles.scss.js +13 -0
- package/es-custom/patterns/step-flow/story-styles.scss.js.map +1 -0
- package/es-custom/utilities/carousel/carousel.d.ts +14 -0
- package/es-custom/utilities/carousel/carousel.js +341 -0
- package/es-custom/utilities/carousel/carousel.js.map +1 -0
- package/es-custom/utilities/carousel/index.d.ts +8 -0
- package/es-custom/utilities/carousel/index.js +9 -0
- package/es-custom/utilities/carousel/index.js.map +1 -0
- package/es-custom/utilities/carousel/swipeEvents.d.ts +7 -0
- package/es-custom/utilities/carousel/swipeEvents.js +109 -0
- package/es-custom/utilities/carousel/swipeEvents.js.map +1 -0
- package/es-custom/utilities/carousel/types.d.ts +37 -0
- package/es-custom/utilities/carousel/types.js +8 -0
- package/es-custom/utilities/carousel/types.js.map +1 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.js +136 -0
- package/es-custom/utilities/makeDraggable/makeDraggable.js.map +1 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js +138 -0
- package/es-custom/utilities/manageFocusTrap/manageFocusTrap.js.map +1 -0
- package/lib/components/about-modal/about-modal-helpers.d.ts +15 -0
- package/lib/components/about-modal/about-modal.d.ts +458 -0
- package/lib/components/about-modal/about-modal.test.d.ts +7 -0
- package/lib/components/about-modal/index.d.ts +9 -0
- package/lib/components/checklist/checklist-chart.d.ts +25 -0
- package/lib/components/checklist/checklist-group.d.ts +25 -0
- package/lib/components/checklist/checklist-icon.d.ts +26 -0
- package/lib/components/checklist/checklist-item.d.ts +41 -0
- package/lib/components/checklist/checklist.d.ts +73 -0
- package/lib/components/checklist/checklist.test.d.ts +7 -0
- package/lib/components/checklist/checklist.types.d.ts +22 -0
- package/lib/components/checklist/index.d.ts +13 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.d.ts +418 -0
- package/lib/components/coachmark/coachmark-beacon/coachmark-beacon.test.d.ts +9 -0
- package/lib/components/coachmark/coachmark-beacon/defs.d.ts +14 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js +25 -0
- package/lib/components/coachmark/coachmark-beacon/defs.js.map +1 -0
- package/lib/components/coachmark/coachmark-beacon/index.d.ts +9 -0
- package/lib/components/coachmark/coachmark-body.d.ts +382 -0
- package/lib/components/coachmark/coachmark-context.d.ts +11 -0
- package/lib/components/coachmark/coachmark-header.d.ts +392 -0
- package/lib/components/coachmark/coachmark.d.ts +416 -0
- package/lib/components/coachmark/coachmark.test.d.ts +1 -0
- package/lib/components/coachmark/index.d.ts +11 -0
- package/lib/components/full-page-error/full-page-error.d.ts +43 -0
- package/lib/components/full-page-error/full-page-error.test.d.ts +7 -0
- package/lib/components/full-page-error/index.d.ts +9 -0
- package/lib/components/full-page-error/types.d.ts +13 -0
- package/lib/components/guide-banner/guide-banner-element.d.ts +378 -0
- package/lib/components/guide-banner/guide-banner.d.ts +398 -0
- package/lib/components/guide-banner/guide-banner.test.d.ts +1 -0
- package/lib/components/guide-banner/index.d.ts +10 -0
- package/lib/components/interstitial-screen/index.d.ts +13 -0
- package/lib/components/interstitial-screen/interstitial-screen-body-item.d.ts +388 -0
- package/lib/components/interstitial-screen/interstitial-screen-body.d.ts +402 -0
- package/lib/components/interstitial-screen/interstitial-screen-context.d.ts +18 -0
- package/lib/components/interstitial-screen/interstitial-screen-footer.d.ts +429 -0
- package/lib/components/interstitial-screen/interstitial-screen-header.d.ts +413 -0
- package/lib/components/interstitial-screen/interstitial-screen.d.ts +441 -0
- package/lib/components/interstitial-screen/interstitial-screen.test.d.ts +1 -0
- package/lib/components/notification-panel/_story-assets/unread-notification-bell.d.ts +3 -0
- package/lib/components/notification-panel/date-time-context.d.ts +9 -0
- package/lib/components/notification-panel/defs.d.ts +8 -0
- package/lib/components/notification-panel/defs.js +10 -0
- package/lib/components/notification-panel/defs.js.map +1 -0
- package/lib/components/notification-panel/index.d.ts +11 -0
- package/lib/components/notification-panel/notification-footer.d.ts +405 -0
- package/lib/components/notification-panel/notification-footer.test.d.ts +7 -0
- package/lib/components/notification-panel/notification-panel.d.ts +479 -0
- package/lib/components/notification-panel/notification-panel.test.d.ts +7 -0
- package/lib/components/notification-panel/notification.d.ts +415 -0
- package/lib/components/notification-panel/notification.test.d.ts +7 -0
- package/lib/components/options-tile/index.d.ts +9 -0
- package/lib/components/options-tile/options-tile.d.ts +416 -0
- package/lib/components/options-tile/options-tile.test.d.ts +1 -0
- package/lib/components/page-header/_story-assets/overflowHandler.d.ts +98 -0
- package/lib/components/page-header/_story-assets/set-of-breadcrumbs.d.ts +43 -0
- package/lib/components/page-header/_story-assets/set-of-tags/index.d.ts +9 -0
- package/lib/components/page-header/_story-assets/set-of-tags/set-of-tags.d.ts +40 -0
- package/lib/components/page-header/_story-assets/set-of-tags/utils.d.ts +23 -0
- package/lib/components/page-header/context.d.ts +15 -0
- package/lib/components/page-header/index.d.ts +16 -0
- package/lib/components/page-header/page-header-breadcrumb.d.ts +36 -0
- package/lib/components/page-header/page-header-content-text.d.ts +22 -0
- package/lib/components/page-header/page-header-content.d.ts +42 -0
- package/lib/components/page-header/page-header-hero-image.d.ts +18 -0
- package/lib/components/page-header/page-header-scroller.d.ts +56 -0
- package/lib/components/page-header/page-header-tabs.d.ts +18 -0
- package/lib/components/page-header/page-header-title-breadcrumb.d.ts +20 -0
- package/lib/components/page-header/page-header.d.ts +31 -0
- package/lib/components/page-header/page-header.test.d.ts +1 -0
- package/lib/components/page-header/utils.d.ts +32 -0
- package/lib/components/side-panel/_story-assets/index.d.ts +8 -0
- package/lib/components/side-panel/defs.d.ts +39 -0
- package/lib/components/side-panel/defs.js +51 -0
- package/lib/components/side-panel/defs.js.map +1 -0
- package/lib/components/side-panel/index.d.ts +9 -0
- package/lib/components/side-panel/side-panel.d.ts +571 -0
- package/lib/components/side-panel/side-panel.test.d.ts +3 -0
- package/lib/components/tearsheet/defs.d.ts +26 -0
- package/lib/components/tearsheet/defs.js +39 -0
- package/lib/components/tearsheet/defs.js.map +1 -0
- package/lib/components/tearsheet/index.d.ts +9 -0
- package/lib/components/tearsheet/tearsheet.d.ts +535 -0
- package/lib/components/tearsheet/tearsheet.test.d.ts +14 -0
- package/lib/components/tearsheet/utils.d.ts +34 -0
- package/lib/components/truncated-text/index.d.ts +9 -0
- package/lib/components/truncated-text/truncated-text.d.ts +78 -0
- package/lib/components/truncated-text/truncated-text.test.d.ts +7 -0
- package/lib/components/user-avatar/index.d.ts +9 -0
- package/lib/components/user-avatar/user-avatar.d.ts +425 -0
- package/lib/components/user-avatar/user-avatar.test.d.ts +1 -0
- package/lib/globals/internal/handle.d.ts +18 -0
- package/lib/globals/internal/pconsole.d.ts +15 -0
- package/lib/globals/js/utils/getSupportedLocale.d.ts +12 -0
- package/lib/globals/js/utils/getSupportedLocale.js +37 -0
- package/lib/globals/js/utils/getSupportedLocale.js.map +1 -0
- package/lib/globals/settings.d.ts +15 -0
- package/lib/globals/settings.js +32 -0
- package/lib/globals/settings.js.map +1 -0
- package/lib/index.d.ts +25 -0
- package/lib/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/lib/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
- package/lib/patterns/step-flow/_story-assets/step-tearsheet.d.ts +41 -0
- package/lib/patterns/step-flow/index.d.ts +10 -0
- package/lib/patterns/step-flow/step-flow-signal.d.ts +24 -0
- package/lib/patterns/step-flow/step-flow-signal.test.d.ts +7 -0
- package/lib/patterns/step-flow/step-group.d.ts +15 -0
- package/lib/utilities/carousel/carousel.d.ts +14 -0
- package/lib/utilities/carousel/index.d.ts +8 -0
- package/lib/utilities/carousel/swipeEvents.d.ts +7 -0
- package/lib/utilities/carousel/types.d.ts +37 -0
- package/lib/utilities/makeDraggable/makeDraggable.d.ts +38 -0
- package/lib/utilities/manageFocusTrap/manageFocusTrap.d.ts +13 -0
- package/package.json +5 -4
- package/scss/components/about-modal/about-modal.scss +117 -0
- package/scss/components/checklist/checklist.scss +70 -0
- package/scss/components/coachmark/coachmark-beacon/coachmark-beacon.scss +91 -0
- package/scss/components/coachmark/coachmark-body.scss +19 -0
- package/scss/components/coachmark/coachmark-header.scss +32 -0
- package/scss/components/coachmark/coachmark.scss +30 -0
- package/scss/components/full-page-error/full-page-error.scss +29 -0
- package/scss/components/guide-banner/guide-banner.scss +30 -0
- package/scss/components/interstitial-screen/interstitial-screen-body-item.scss +18 -0
- package/scss/components/interstitial-screen/interstitial-screen-body.scss +29 -0
- package/scss/components/interstitial-screen/interstitial-screen-footer.scss +39 -0
- package/scss/components/interstitial-screen/interstitial-screen-header.scss +13 -0
- package/scss/components/interstitial-screen/interstitial-screen.scss +28 -0
- package/scss/components/notification-panel/notification-footer.scss +65 -0
- package/scss/components/notification-panel/notification-panel.scss +58 -0
- package/scss/components/notification-panel/notification.scss +147 -0
- package/scss/components/options-tile/options-tile.scss +102 -0
- package/scss/components/page-header/_story-assets/_storybook-styles.scss +35 -0
- package/scss/components/page-header/_story-assets/set-of-breadcrumbs.scss +41 -0
- package/scss/components/page-header/_story-assets/set-of-tags/set-of-tags.scss +96 -0
- package/scss/components/page-header/page-header.scss +422 -0
- package/scss/components/side-panel/side-panel.scss +307 -0
- package/scss/components/tearsheet/tearsheet.scss +343 -0
- package/scss/components/truncated-text/truncated-text.scss +110 -0
- package/scss/components/user-avatar/user-avatar.scss +119 -0
|
@@ -0,0 +1,859 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2024
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __decorate } from 'tslib';
|
|
9
|
+
import { LitElement, html } from 'lit';
|
|
10
|
+
import { query, queryAssignedElements, state, property } from 'lit/decorators.js';
|
|
11
|
+
import { prefix, carbonPrefix } from '../../globals/settings.js';
|
|
12
|
+
import HostListener from '@carbon/web-components/es/globals/decorators/host-listener.js';
|
|
13
|
+
import HostListenerMixin from '@carbon/web-components/es/globals/mixins/host-listener.js';
|
|
14
|
+
import { SIDE_PANEL_PLACEMENT, SIDE_PANEL_SIZE } from './defs.js';
|
|
15
|
+
import styles from './side-panel.scss.js';
|
|
16
|
+
import { selectorTabbable } from '@carbon/web-components/es/globals/settings.js';
|
|
17
|
+
import { carbonElement } from '@carbon/web-components/es/globals/decorators/carbon-element.js';
|
|
18
|
+
import ArrowLeft16 from '@carbon/icons/es/arrow--left/16';
|
|
19
|
+
import Close16 from '@carbon/icons/es/close/16';
|
|
20
|
+
import { iconLoader } from '@carbon/web-components/es/globals/internal/icon-loader.js';
|
|
21
|
+
import { moderate02 } from '@carbon/motion';
|
|
22
|
+
import '@carbon/web-components/es-custom/components/button/index.js';
|
|
23
|
+
import '@carbon/web-components/es-custom/components/button/button-set-base.js';
|
|
24
|
+
import '@carbon/web-components/es-custom/components/icon-button/index.js';
|
|
25
|
+
import '@carbon/web-components/es-custom/components/layer/index.js';
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @license
|
|
29
|
+
*
|
|
30
|
+
* Copyright IBM Corp. 2023, 2024
|
|
31
|
+
*
|
|
32
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
33
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
|
+
*/
|
|
35
|
+
const blockClass = `${prefix}--side-panel`;
|
|
36
|
+
const blockClassActionSet = `${prefix}--action-set`;
|
|
37
|
+
/**
|
|
38
|
+
* Observes resize of the given element with the given resize observer.
|
|
39
|
+
*
|
|
40
|
+
* @param observer The resize observer.
|
|
41
|
+
* @param elem The element to observe the resize.
|
|
42
|
+
*/
|
|
43
|
+
const observeResize = (observer, elem) => {
|
|
44
|
+
if (!elem) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
observer.observe(elem);
|
|
48
|
+
return {
|
|
49
|
+
release() {
|
|
50
|
+
observer.unobserve(elem);
|
|
51
|
+
return null;
|
|
52
|
+
},
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* SidePanel.
|
|
57
|
+
*
|
|
58
|
+
* @element c4p-side-panel
|
|
59
|
+
* @csspart dialog The dialog.
|
|
60
|
+
* @fires c4p-side-panel-beingclosed
|
|
61
|
+
* The custom event fired before this side-panel is being closed upon a user gesture.
|
|
62
|
+
* Cancellation of this event stops the user-initiated action of closing this side-panel.
|
|
63
|
+
* @fires c4p-side-panel-closed - The custom event fired after this side-panel is closed upon a user gesture.
|
|
64
|
+
* @fires c4p-side-panel-navigate-back - custom event fired when clicking navigate back (available when step > 0)
|
|
65
|
+
*/
|
|
66
|
+
let CDSSidePanel = class CDSSidePanel extends HostListenerMixin(LitElement) {
|
|
67
|
+
constructor() {
|
|
68
|
+
super(...arguments);
|
|
69
|
+
/**
|
|
70
|
+
* The handle for observing resize of the parent element of this element.
|
|
71
|
+
*/
|
|
72
|
+
this._hObserveResize = null;
|
|
73
|
+
/**
|
|
74
|
+
* The element that had focus before this side-panel gets open.
|
|
75
|
+
*/
|
|
76
|
+
this._launcher = null;
|
|
77
|
+
this._doAnimateTitle = true;
|
|
78
|
+
this._isOpen = false;
|
|
79
|
+
this._containerScrollTop = -16;
|
|
80
|
+
this._hasSubtitle = false;
|
|
81
|
+
this._hasSlug = false;
|
|
82
|
+
this._hasActionToolbar = false;
|
|
83
|
+
this._actionsCount = 0;
|
|
84
|
+
this._slugCloseSize = 'sm';
|
|
85
|
+
this._customHeaderElements = [];
|
|
86
|
+
/**
|
|
87
|
+
* Handle the keydown event.
|
|
88
|
+
* Trap the focus inside the side-panel by tracking keydown.key == `Tab`
|
|
89
|
+
*
|
|
90
|
+
* @param {KeyboardEvent} event The keyboard event object.
|
|
91
|
+
*/
|
|
92
|
+
this._handleHostKeydown = (event) => {
|
|
93
|
+
var _a;
|
|
94
|
+
if (event.key === 'Tab' && !this.slideIn) {
|
|
95
|
+
const { first: _firstElement, last: _lastElement } = this.getFocusable();
|
|
96
|
+
if (event.shiftKey &&
|
|
97
|
+
(((_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.activeElement) === _firstElement ||
|
|
98
|
+
document.activeElement === _firstElement)) {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
_lastElement === null || _lastElement === void 0 ? void 0 : _lastElement.focus();
|
|
101
|
+
}
|
|
102
|
+
else if (!event.shiftKey && document.activeElement === _lastElement) {
|
|
103
|
+
event.preventDefault();
|
|
104
|
+
_firstElement === null || _firstElement === void 0 ? void 0 : _firstElement.focus();
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
this._handleKeydown = ({ key, target }) => {
|
|
109
|
+
if (key === 'Esc' || key === 'Escape') {
|
|
110
|
+
this._handleUserInitiatedClose(target);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
this._reducedMotion = typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.matchMedia)
|
|
114
|
+
? window.matchMedia('(prefers-reduced-motion: reduce)')
|
|
115
|
+
: { matches: true };
|
|
116
|
+
this._adjustPageContent = () => {
|
|
117
|
+
var _a, _b;
|
|
118
|
+
// sets/resets styles based on slideIn property and selectorPageContent;
|
|
119
|
+
if (this.selectorPageContent) {
|
|
120
|
+
const pageContentEl = document.querySelector(this.selectorPageContent);
|
|
121
|
+
if (pageContentEl) {
|
|
122
|
+
const newValues = {
|
|
123
|
+
marginInlineStart: '',
|
|
124
|
+
marginInlineEnd: '',
|
|
125
|
+
inlineSize: '',
|
|
126
|
+
transition: this._reducedMotion.matches
|
|
127
|
+
? 'none'
|
|
128
|
+
: `all ${moderate02}`,
|
|
129
|
+
transitionProperty: 'margin-inline-start, margin-inline-end',
|
|
130
|
+
};
|
|
131
|
+
if (this.open) {
|
|
132
|
+
newValues.inlineSize = 'auto';
|
|
133
|
+
if (this.placement === 'left') {
|
|
134
|
+
newValues.marginInlineStart = `${(_a = this === null || this === void 0 ? void 0 : this._sidePanel) === null || _a === void 0 ? void 0 : _a.offsetWidth}px`;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
newValues.marginInlineEnd = `${(_b = this === null || this === void 0 ? void 0 : this._sidePanel) === null || _b === void 0 ? void 0 : _b.offsetWidth}px`;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (this.slideIn) {
|
|
141
|
+
Object.keys(newValues).forEach((key) => {
|
|
142
|
+
pageContentEl.style[key] = newValues[key];
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
this._checkSetOpen = () => {
|
|
149
|
+
var _a;
|
|
150
|
+
const { _sidePanel: sidePanel } = this;
|
|
151
|
+
if (sidePanel && this._isOpen) {
|
|
152
|
+
if ((_a = this._reducedMotion) === null || _a === void 0 ? void 0 : _a.matches) {
|
|
153
|
+
this._isOpen = false;
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
// wait until the side panel has transitioned off the screen to remove
|
|
157
|
+
sidePanel.addEventListener('transitionend', () => {
|
|
158
|
+
this._isOpen = false;
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
// allow the html to render before animating in the side panel
|
|
164
|
+
this._isOpen = this.open;
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
this._checkUpdateIconButtonSizes = () => {
|
|
168
|
+
var _a, _b;
|
|
169
|
+
const slug = this.querySelector(`${prefix}-slug`);
|
|
170
|
+
const otherButtons = (_a = this === null || this === void 0 ? void 0 : this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll('#nav-back-button, #close-button');
|
|
171
|
+
let iconButtonSize = 'sm';
|
|
172
|
+
if (slug || (otherButtons === null || otherButtons === void 0 ? void 0 : otherButtons.length)) {
|
|
173
|
+
const actions = (_b = this === null || this === void 0 ? void 0 : this.querySelectorAll) === null || _b === void 0 ? void 0 : _b.call(this, `${prefix}-button[slot='actions']`);
|
|
174
|
+
if ((actions === null || actions === void 0 ? void 0 : actions.length) && /l/.test(this.size)) {
|
|
175
|
+
iconButtonSize = 'md';
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (slug) {
|
|
179
|
+
slug === null || slug === void 0 ? void 0 : slug.setAttribute('size', iconButtonSize);
|
|
180
|
+
}
|
|
181
|
+
if (otherButtons) {
|
|
182
|
+
[...otherButtons].forEach((btn) => {
|
|
183
|
+
btn.setAttribute('size', iconButtonSize);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
};
|
|
187
|
+
this._checkUpdateActionSizes = () => {
|
|
188
|
+
if (this._actions) {
|
|
189
|
+
for (let i = 0; i < this._actions.length; i++) {
|
|
190
|
+
this._actions[i].setAttribute('size', this.condensedActions ? 'lg' : 'xl');
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
this._maxActions = 3;
|
|
195
|
+
this._checkSetDoAnimateTitle = () => {
|
|
196
|
+
var _a, _b, _c;
|
|
197
|
+
let canDoAnimateTitle = false;
|
|
198
|
+
if (this._sidePanel &&
|
|
199
|
+
this.open &&
|
|
200
|
+
this.animateTitle &&
|
|
201
|
+
((_a = this === null || this === void 0 ? void 0 : this.title) === null || _a === void 0 ? void 0 : _a.length) &&
|
|
202
|
+
!this._reducedMotion.matches) {
|
|
203
|
+
const scrollAnimationDistance = this._getScrollAnimationDistance();
|
|
204
|
+
// used to calculate the header moves
|
|
205
|
+
(_c = (_b = this === null || this === void 0 ? void 0 : this._sidePanel) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.setProperty(`--${blockClass}--scroll-animation-distance`, `${scrollAnimationDistance}`);
|
|
206
|
+
let scrollEl = this._animateScrollWrapper;
|
|
207
|
+
if (!scrollEl && this.animateTitle && !this._doAnimateTitle) {
|
|
208
|
+
scrollEl = this._innerContent;
|
|
209
|
+
}
|
|
210
|
+
if (scrollEl) {
|
|
211
|
+
const innerComputed = window === null || window === void 0 ? void 0 : window.getComputedStyle(this._innerContent);
|
|
212
|
+
const innerPaddingHeight = innerComputed
|
|
213
|
+
? parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingTop) +
|
|
214
|
+
parseFloat(innerComputed === null || innerComputed === void 0 ? void 0 : innerComputed.paddingBottom)
|
|
215
|
+
: 0;
|
|
216
|
+
canDoAnimateTitle =
|
|
217
|
+
(!!this.labelText || !!this._hasActionToolbar || this._hasSubtitle) &&
|
|
218
|
+
scrollEl.scrollHeight - scrollEl.clientHeight >=
|
|
219
|
+
scrollAnimationDistance + innerPaddingHeight;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
this._doAnimateTitle = canDoAnimateTitle;
|
|
223
|
+
};
|
|
224
|
+
/**
|
|
225
|
+
* The `ResizeObserver` instance for observing element resizes for re-positioning floating menu position.
|
|
226
|
+
*/
|
|
227
|
+
// TODO: Wait for `.d.ts` update to support `ResizeObserver`
|
|
228
|
+
// @ts-ignore
|
|
229
|
+
this._resizeObserver = new ResizeObserver(() => {
|
|
230
|
+
if (this._sidePanel) {
|
|
231
|
+
this._checkSetDoAnimateTitle();
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
this._getScrollAnimationDistance = () => {
|
|
235
|
+
var _a, _b, _c, _d;
|
|
236
|
+
const labelHeight = (_b = (_a = this === null || this === void 0 ? void 0 : this._label) === null || _a === void 0 ? void 0 : _a.offsetHeight) !== null && _b !== void 0 ? _b : 0;
|
|
237
|
+
const subtitleHeight = (_d = (_c = this === null || this === void 0 ? void 0 : this._subtitle) === null || _c === void 0 ? void 0 : _c.offsetHeight) !== null && _d !== void 0 ? _d : 0;
|
|
238
|
+
const titleVerticalBorder = this._hasActionToolbar
|
|
239
|
+
? this._title.offsetHeight - this._title.clientHeight
|
|
240
|
+
: 0;
|
|
241
|
+
return labelHeight + subtitleHeight + titleVerticalBorder;
|
|
242
|
+
};
|
|
243
|
+
this._scrollObserver = () => {
|
|
244
|
+
var _a, _b, _c, _d;
|
|
245
|
+
const scrollTop = (_b = (_a = this._animateScrollWrapper) === null || _a === void 0 ? void 0 : _a.scrollTop) !== null && _b !== void 0 ? _b : 0;
|
|
246
|
+
const scrollAnimationDistance = this._getScrollAnimationDistance();
|
|
247
|
+
const animationProgress = Math.min(scrollTop, scrollAnimationDistance) / scrollAnimationDistance;
|
|
248
|
+
(_d = (_c = this === null || this === void 0 ? void 0 : this._sidePanel) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.setProperty(`--${blockClass}--scroll-animation-progress`, `${animationProgress}`);
|
|
249
|
+
if (animationProgress === 1) {
|
|
250
|
+
this._customHeaderElements.forEach((el) => {
|
|
251
|
+
el.classList.add(`cds-custom--visually-hidden`);
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
else {
|
|
255
|
+
this._customHeaderElements.forEach((el) => {
|
|
256
|
+
el.classList.remove(`cds-custom--visually-hidden`);
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
this._handleCurrentStepUpdate = () => {
|
|
261
|
+
var _a;
|
|
262
|
+
const scrollable = (_a = this._animateScrollWrapper) !== null && _a !== void 0 ? _a : this._innerContent;
|
|
263
|
+
if (scrollable) {
|
|
264
|
+
scrollable.scrollTop = 0;
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
/**
|
|
268
|
+
* Determines if the title will animate on scroll
|
|
269
|
+
*/
|
|
270
|
+
this.animateTitle = true;
|
|
271
|
+
/**
|
|
272
|
+
* Sets the close button icon description
|
|
273
|
+
*/
|
|
274
|
+
this.closeIconDescription = 'Close';
|
|
275
|
+
/**
|
|
276
|
+
* Sets the close button tooltip alignment
|
|
277
|
+
*/
|
|
278
|
+
this.closeIconTooltipAlignment = 'left';
|
|
279
|
+
/**
|
|
280
|
+
* Determines whether the side panel should render the condensed version (affects action buttons primarily)
|
|
281
|
+
*/
|
|
282
|
+
this.condensedActions = false;
|
|
283
|
+
/**
|
|
284
|
+
* Determines whether the side panel should render with an overlay
|
|
285
|
+
*/
|
|
286
|
+
this.includeOverlay = false;
|
|
287
|
+
/**
|
|
288
|
+
* Sets the icon description for the navigation back icon button
|
|
289
|
+
*/
|
|
290
|
+
this.navigationBackIconDescription = 'Back';
|
|
291
|
+
/**
|
|
292
|
+
* `true` if the side-panel should be open.
|
|
293
|
+
*/
|
|
294
|
+
this.open = false;
|
|
295
|
+
/**
|
|
296
|
+
* SidePanel placement.
|
|
297
|
+
*/
|
|
298
|
+
this.placement = SIDE_PANEL_PLACEMENT.RIGHT;
|
|
299
|
+
/**
|
|
300
|
+
* Prevent closing on click outside of side-panel
|
|
301
|
+
*/
|
|
302
|
+
this.preventCloseOnClickOutside = false;
|
|
303
|
+
/**
|
|
304
|
+
* Selector for page content, used to push content to side except
|
|
305
|
+
*/
|
|
306
|
+
this.selectorPageContent = '';
|
|
307
|
+
/**
|
|
308
|
+
* Show/hide the "X" close button
|
|
309
|
+
*/
|
|
310
|
+
this.hideCloseButton = false;
|
|
311
|
+
/**
|
|
312
|
+
* SidePanel size.
|
|
313
|
+
*/
|
|
314
|
+
this.size = SIDE_PANEL_SIZE.MEDIUM;
|
|
315
|
+
/**
|
|
316
|
+
* Determines if this panel slides in
|
|
317
|
+
*/
|
|
318
|
+
this.slideIn = false;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Get focusable elements.
|
|
322
|
+
*
|
|
323
|
+
* Querying all tabbable items.
|
|
324
|
+
*
|
|
325
|
+
* @returns {{first: HTMLElement, last: HTMLElement, all: HTMLElement[]}} Returns an object with various elements.
|
|
326
|
+
*/
|
|
327
|
+
getFocusable() {
|
|
328
|
+
var _a, _b;
|
|
329
|
+
const elements = [];
|
|
330
|
+
// Add slug elements if present
|
|
331
|
+
if (this._hasSlug) {
|
|
332
|
+
elements.push(this.querySelectorAll(`${carbonPrefix}-slug`));
|
|
333
|
+
}
|
|
334
|
+
// Add close button if not hidden
|
|
335
|
+
if (!this.hideCloseButton) {
|
|
336
|
+
const closeButtons = (_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelectorAll(`${carbonPrefix}-icon-button`);
|
|
337
|
+
if (closeButtons) {
|
|
338
|
+
elements.push(closeButtons);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
// Add tabbable elements inside light DOM
|
|
342
|
+
const _tabbableItems = this.querySelectorAll(selectorTabbable);
|
|
343
|
+
if (_tabbableItems) {
|
|
344
|
+
elements.push(_tabbableItems);
|
|
345
|
+
}
|
|
346
|
+
// Flatten NodeList arrays and filter for focusable items
|
|
347
|
+
const all = (_b = elements === null || elements === void 0 ? void 0 : elements.flatMap((nodeList) => Array.from(nodeList))) === null || _b === void 0 ? void 0 : _b.filter((el) => typeof (el === null || el === void 0 ? void 0 : el.focus) === 'function');
|
|
348
|
+
return {
|
|
349
|
+
first: all[0],
|
|
350
|
+
last: all[all.length - 1],
|
|
351
|
+
all,
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Handles `click` event on the side-panel container.
|
|
356
|
+
*
|
|
357
|
+
* @param event The event.
|
|
358
|
+
*/
|
|
359
|
+
_handleClickOnOverlay(event) {
|
|
360
|
+
if (!this.preventCloseOnClickOutside) {
|
|
361
|
+
this._handleUserInitiatedClose(event.target);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Handles `click` event on the side-panel container.
|
|
366
|
+
*
|
|
367
|
+
* @param event The event.
|
|
368
|
+
*/
|
|
369
|
+
_handleCloseClick(event) {
|
|
370
|
+
this._handleUserInitiatedClose(event.target);
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* Handles user-initiated close request of this side-panel.
|
|
374
|
+
*
|
|
375
|
+
* @param triggeredBy The element that triggered this close request.
|
|
376
|
+
*/
|
|
377
|
+
_handleUserInitiatedClose(triggeredBy) {
|
|
378
|
+
if (this.open) {
|
|
379
|
+
const init = {
|
|
380
|
+
bubbles: true,
|
|
381
|
+
cancelable: true,
|
|
382
|
+
composed: true,
|
|
383
|
+
detail: {
|
|
384
|
+
triggeredBy,
|
|
385
|
+
},
|
|
386
|
+
};
|
|
387
|
+
if (this.dispatchEvent(new CustomEvent(this.constructor.eventBeforeClose, init))) {
|
|
388
|
+
this.open = false;
|
|
389
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventClose, init));
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
_handleNavigateBack(triggeredBy) {
|
|
394
|
+
this.dispatchEvent(new CustomEvent(this.constructor.eventNavigateBack, {
|
|
395
|
+
composed: true,
|
|
396
|
+
detail: {
|
|
397
|
+
triggeredBy,
|
|
398
|
+
},
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
_handleSlugChange(e) {
|
|
402
|
+
this._checkUpdateIconButtonSizes();
|
|
403
|
+
const childItems = e.target.assignedElements();
|
|
404
|
+
this._hasSlug = childItems.length > 0;
|
|
405
|
+
}
|
|
406
|
+
_handleSubtitleChange(e) {
|
|
407
|
+
const target = e.target;
|
|
408
|
+
const subtitle = target === null || target === void 0 ? void 0 : target.assignedElements();
|
|
409
|
+
this._hasSubtitle = subtitle.length > 0;
|
|
410
|
+
}
|
|
411
|
+
_handleCustomHeaderSlotChange(e) {
|
|
412
|
+
const target = e.target;
|
|
413
|
+
const customHeaderElms = target === null || target === void 0 ? void 0 : target.assignedElements();
|
|
414
|
+
customHeaderElms.forEach((el) => {
|
|
415
|
+
if (el instanceof HTMLElement) {
|
|
416
|
+
el.style.opacity = `calc(1 - var(--${blockClass}--scroll-animation-progress))`;
|
|
417
|
+
this._customHeaderElements.push(el);
|
|
418
|
+
}
|
|
419
|
+
});
|
|
420
|
+
}
|
|
421
|
+
_handleActionToolbarChange(e) {
|
|
422
|
+
const target = e.target;
|
|
423
|
+
const toolbarActions = target === null || target === void 0 ? void 0 : target.assignedElements();
|
|
424
|
+
this._hasActionToolbar = toolbarActions && toolbarActions.length > 0;
|
|
425
|
+
if (this._hasActionToolbar) {
|
|
426
|
+
for (const toolbarAction of toolbarActions) {
|
|
427
|
+
// toolbar actions size should always be sm
|
|
428
|
+
toolbarAction.setAttribute('size', 'sm');
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
_handleActionsChange(e) {
|
|
433
|
+
var _a;
|
|
434
|
+
const target = e.target;
|
|
435
|
+
const actions = target === null || target === void 0 ? void 0 : target.assignedElements();
|
|
436
|
+
// update slug size
|
|
437
|
+
this._checkUpdateIconButtonSizes();
|
|
438
|
+
const actionsCount = (_a = actions === null || actions === void 0 ? void 0 : actions.length) !== null && _a !== void 0 ? _a : 0;
|
|
439
|
+
if (actionsCount > this._maxActions) {
|
|
440
|
+
this._actionsCount = this._maxActions;
|
|
441
|
+
if (process.env.NODE_ENV === 'development') {
|
|
442
|
+
console.error(`Too many side-panel actions, max ${this._maxActions}.`);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
this._actionsCount = actionsCount;
|
|
447
|
+
}
|
|
448
|
+
for (let i = 0; i < (actions === null || actions === void 0 ? void 0 : actions.length); i++) {
|
|
449
|
+
if (i + 1 > this._maxActions) {
|
|
450
|
+
// hide excessive side panel actions
|
|
451
|
+
actions[i].setAttribute('hidden', 'true');
|
|
452
|
+
actions[i].setAttribute(`data-actions-limit-${this._maxActions}-exceeded`, `${actions.length}`);
|
|
453
|
+
}
|
|
454
|
+
else {
|
|
455
|
+
actions[i].classList.add(`${blockClassActionSet}__action-button`);
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
this._checkUpdateActionSizes();
|
|
459
|
+
}
|
|
460
|
+
async connectObservers() {
|
|
461
|
+
await this.updateComplete;
|
|
462
|
+
this._hObserveResize = observeResize(this._resizeObserver, this._sidePanel);
|
|
463
|
+
}
|
|
464
|
+
disconnectObservers() {
|
|
465
|
+
if (this._hObserveResize) {
|
|
466
|
+
this._hObserveResize = this._hObserveResize.release();
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
connectedCallback() {
|
|
470
|
+
super.connectedCallback();
|
|
471
|
+
this.disconnectObservers();
|
|
472
|
+
this.connectObservers();
|
|
473
|
+
}
|
|
474
|
+
disconnectedCallback() {
|
|
475
|
+
super.disconnectedCallback();
|
|
476
|
+
this.disconnectObservers();
|
|
477
|
+
}
|
|
478
|
+
render() {
|
|
479
|
+
const { closeIconDescription, closeIconTooltipAlignment, condensedActions, currentStep, includeOverlay, labelText, navigationBackIconDescription, open, placement, hideCloseButton, size, slideIn, title, } = this;
|
|
480
|
+
if (!open && !this._isOpen) {
|
|
481
|
+
return html ``;
|
|
482
|
+
}
|
|
483
|
+
const actionsMultiple = ['', 'single', 'double', 'triple'][this._actionsCount];
|
|
484
|
+
const titleTemplate = html ` <div
|
|
485
|
+
class=${`${blockClass}__title`}
|
|
486
|
+
?no-label=${!!labelText}
|
|
487
|
+
>
|
|
488
|
+
<h2 class=${title ? `${blockClass}__title-text` : ''}>${title}</h2>
|
|
489
|
+
${this._doAnimateTitle
|
|
490
|
+
? html `<h2
|
|
491
|
+
class=${`${blockClass}__collapsed-title-text`}
|
|
492
|
+
aria-hidden="true"
|
|
493
|
+
>
|
|
494
|
+
${title}
|
|
495
|
+
</h2>`
|
|
496
|
+
: ''}
|
|
497
|
+
</div>`;
|
|
498
|
+
const headerHasTitleClass = this.title
|
|
499
|
+
? ` ${blockClass}__header--has-title `
|
|
500
|
+
: '';
|
|
501
|
+
const headerTemplate = html `
|
|
502
|
+
<div
|
|
503
|
+
class=${`${blockClass}__header${headerHasTitleClass}`}
|
|
504
|
+
?detail-step=${currentStep > 0}
|
|
505
|
+
?no-title-animation=${!this._doAnimateTitle}
|
|
506
|
+
?reduced-motion=${this._reducedMotion.matches}
|
|
507
|
+
>
|
|
508
|
+
<!-- render back button -->
|
|
509
|
+
${currentStep > 0
|
|
510
|
+
? html `<cds-custom-icon-button
|
|
511
|
+
align="bottom-left"
|
|
512
|
+
aria-label=${navigationBackIconDescription}
|
|
513
|
+
kind="ghost"
|
|
514
|
+
size="sm"
|
|
515
|
+
class=${`${prefix}--btn ${blockClass}__navigation-back-button`}
|
|
516
|
+
@click=${this._handleNavigateBack}
|
|
517
|
+
>
|
|
518
|
+
${iconLoader(ArrowLeft16, { slot: 'icon' })}
|
|
519
|
+
<span slot="tooltip-content">
|
|
520
|
+
${navigationBackIconDescription}
|
|
521
|
+
</span>
|
|
522
|
+
</cds-custom-icon-button>`
|
|
523
|
+
: ''}
|
|
524
|
+
|
|
525
|
+
<!-- slot for custom header components -->
|
|
526
|
+
<slot
|
|
527
|
+
name="above-title"
|
|
528
|
+
@slotchange=${this._handleCustomHeaderSlotChange}
|
|
529
|
+
></slot>
|
|
530
|
+
|
|
531
|
+
<!-- render title label -->
|
|
532
|
+
${(title === null || title === void 0 ? void 0 : title.length) && (labelText === null || labelText === void 0 ? void 0 : labelText.length)
|
|
533
|
+
? html ` <p class=${`${blockClass}__label-text`}>${labelText}</p>`
|
|
534
|
+
: ''}
|
|
535
|
+
|
|
536
|
+
<!-- title -->
|
|
537
|
+
${title ? titleTemplate : ''}
|
|
538
|
+
|
|
539
|
+
<!-- render slug and close button area -->
|
|
540
|
+
<div class=${`${blockClass}__slug-and-close`}>
|
|
541
|
+
<slot name="slug" @slotchange=${this._handleSlugChange}></slot>
|
|
542
|
+
<!-- {normalizedSlug} -->
|
|
543
|
+
${!hideCloseButton
|
|
544
|
+
? html `<cds-custom-icon-button
|
|
545
|
+
align=${closeIconTooltipAlignment}
|
|
546
|
+
aria-label=${closeIconDescription}
|
|
547
|
+
kind="ghost"
|
|
548
|
+
size="sm"
|
|
549
|
+
class=${`${blockClass}__close-button`}
|
|
550
|
+
@click=${this._handleCloseClick}
|
|
551
|
+
>
|
|
552
|
+
${iconLoader(Close16, { slot: 'icon' })}
|
|
553
|
+
<span slot="tooltip-content"> ${closeIconDescription} </span>
|
|
554
|
+
</cds-custom-icon-button>`
|
|
555
|
+
: ''}
|
|
556
|
+
</div>
|
|
557
|
+
|
|
558
|
+
<!-- render sub title -->
|
|
559
|
+
<p
|
|
560
|
+
class=${this._hasSubtitle ? `${blockClass}__subtitle-text` : ''}
|
|
561
|
+
?hidden=${!this._hasSubtitle}
|
|
562
|
+
?no-title-animation=${!this._doAnimateTitle}
|
|
563
|
+
?no-action-toolbar=${!this._hasActionToolbar}
|
|
564
|
+
?no-title=${!title}
|
|
565
|
+
>
|
|
566
|
+
<slot
|
|
567
|
+
name="subtitle"
|
|
568
|
+
@slotchange=${this._handleSubtitleChange}
|
|
569
|
+
></slot>
|
|
570
|
+
</p>
|
|
571
|
+
|
|
572
|
+
<!-- slot for custom header components -->
|
|
573
|
+
<slot
|
|
574
|
+
name="below-title"
|
|
575
|
+
@slotchange=${this._handleCustomHeaderSlotChange}
|
|
576
|
+
></slot>
|
|
577
|
+
|
|
578
|
+
<div
|
|
579
|
+
class=${this._hasActionToolbar ? `${blockClass}__action-toolbar` : ''}
|
|
580
|
+
?hidden=${!this._hasActionToolbar}
|
|
581
|
+
?no-title-animation=${!this._doAnimateTitle}
|
|
582
|
+
>
|
|
583
|
+
<slot
|
|
584
|
+
name="action-toolbar"
|
|
585
|
+
@slotchange=${this._handleActionToolbarChange}
|
|
586
|
+
></slot>
|
|
587
|
+
</div>
|
|
588
|
+
</div>
|
|
589
|
+
`;
|
|
590
|
+
const mainTemplate = html `<div
|
|
591
|
+
class=${`${blockClass}__inner-content`}
|
|
592
|
+
?scrolls=${!this._doAnimateTitle}
|
|
593
|
+
>
|
|
594
|
+
<cds-custom-layer level="1">
|
|
595
|
+
<slot></slot>
|
|
596
|
+
</cds-custom-layer>
|
|
597
|
+
</div> `;
|
|
598
|
+
const sidePanelAnimateTitleClass = this._doAnimateTitle
|
|
599
|
+
? ` ${blockClass}--animated-title`
|
|
600
|
+
: '';
|
|
601
|
+
return html `
|
|
602
|
+
<div
|
|
603
|
+
class=${`${blockClass}${sidePanelAnimateTitleClass}`}
|
|
604
|
+
part="dialog"
|
|
605
|
+
role="complementary"
|
|
606
|
+
placement="${placement}"
|
|
607
|
+
?has-slug=${this._hasSlug}
|
|
608
|
+
?open=${this._isOpen}
|
|
609
|
+
?opening=${open && !this._isOpen}
|
|
610
|
+
?closing=${!open && this._isOpen}
|
|
611
|
+
?condensed-actions=${condensedActions}
|
|
612
|
+
?overlay=${includeOverlay || slideIn}
|
|
613
|
+
?slide-in=${slideIn}
|
|
614
|
+
size=${size}
|
|
615
|
+
>
|
|
616
|
+
${this._doAnimateTitle
|
|
617
|
+
? html `<div class=${`${blockClass}__animated-scroll-wrapper`} scrolls>
|
|
618
|
+
${headerTemplate} ${mainTemplate}
|
|
619
|
+
</div>`
|
|
620
|
+
: html ` ${headerTemplate} ${mainTemplate}`}
|
|
621
|
+
|
|
622
|
+
<cds-custom-button-set-base
|
|
623
|
+
class=${`${blockClass}__actions-container`}
|
|
624
|
+
?hidden=${this._actionsCount === 0}
|
|
625
|
+
?condensed=${condensedActions}
|
|
626
|
+
actions-multiple=${actionsMultiple}
|
|
627
|
+
size=${size}
|
|
628
|
+
>
|
|
629
|
+
<slot name="actions" @slotchange=${this._handleActionsChange}></slot>
|
|
630
|
+
</cds-custom-button-set-base>
|
|
631
|
+
</div>
|
|
632
|
+
|
|
633
|
+
${includeOverlay
|
|
634
|
+
? html `<div
|
|
635
|
+
?slide-in=${slideIn}
|
|
636
|
+
class=${`${blockClass}__overlay`}
|
|
637
|
+
?open=${this.open}
|
|
638
|
+
?opening=${open && !this._isOpen}
|
|
639
|
+
?closing=${!open && this._isOpen}
|
|
640
|
+
tabindex="-1"
|
|
641
|
+
@click=${this._handleClickOnOverlay}
|
|
642
|
+
></div>`
|
|
643
|
+
: ''}
|
|
644
|
+
`;
|
|
645
|
+
}
|
|
646
|
+
async updated(changedProperties) {
|
|
647
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
648
|
+
if (changedProperties.has('condensedActions')) {
|
|
649
|
+
this._checkUpdateActionSizes();
|
|
650
|
+
}
|
|
651
|
+
if (changedProperties.has('currentStep')) {
|
|
652
|
+
this._handleCurrentStepUpdate();
|
|
653
|
+
}
|
|
654
|
+
if (changedProperties.has('_doAnimateTitle')) {
|
|
655
|
+
(_a = this === null || this === void 0 ? void 0 : this._animateScrollWrapper) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', this._scrollObserver);
|
|
656
|
+
if (this._doAnimateTitle) {
|
|
657
|
+
(_b = this === null || this === void 0 ? void 0 : this._animateScrollWrapper) === null || _b === void 0 ? void 0 : _b.addEventListener('scroll', this._scrollObserver);
|
|
658
|
+
}
|
|
659
|
+
else {
|
|
660
|
+
(_d = (_c = this === null || this === void 0 ? void 0 : this._sidePanel) === null || _c === void 0 ? void 0 : _c.style) === null || _d === void 0 ? void 0 : _d.setProperty(`--${blockClass}--scroll-animation-progress`, '0');
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
if (changedProperties.has('_isOpen') ||
|
|
664
|
+
changedProperties.has('animateTitle')) {
|
|
665
|
+
/* @state property changed */
|
|
666
|
+
this._checkSetDoAnimateTitle();
|
|
667
|
+
}
|
|
668
|
+
if (changedProperties.has('slideIn') ||
|
|
669
|
+
changedProperties.has('open') ||
|
|
670
|
+
changedProperties.has('includeOverlay')) {
|
|
671
|
+
this._adjustPageContent();
|
|
672
|
+
}
|
|
673
|
+
if (changedProperties.has('open')) {
|
|
674
|
+
this._checkSetOpen();
|
|
675
|
+
this.disconnectObservers();
|
|
676
|
+
if (this.open) {
|
|
677
|
+
this.connectObservers();
|
|
678
|
+
this._launcher = this.ownerDocument.activeElement;
|
|
679
|
+
await this.constructor._delay();
|
|
680
|
+
if ((_f = (_e = this.selectorInitialFocus) === null || _e === void 0 ? void 0 : _e.trim()) === null || _f === void 0 ? void 0 : _f.length) {
|
|
681
|
+
const focusNode = this.querySelector(this.selectorInitialFocus);
|
|
682
|
+
focusNode === null || focusNode === void 0 ? void 0 : focusNode.focus();
|
|
683
|
+
}
|
|
684
|
+
else if (!this.slideIn) {
|
|
685
|
+
const { first: _firstElement } = this.getFocusable();
|
|
686
|
+
_firstElement === null || _firstElement === void 0 ? void 0 : _firstElement.focus();
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
else if (this._launcher &&
|
|
690
|
+
typeof ((_g = this._launcher) === null || _g === void 0 ? void 0 : _g.focus) === 'function') {
|
|
691
|
+
(_h = this._launcher) === null || _h === void 0 ? void 0 : _h.focus();
|
|
692
|
+
this._launcher = null;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
/**
|
|
697
|
+
* @param ms The number of milliseconds.
|
|
698
|
+
* @returns A promise that is resolves after the given milliseconds.
|
|
699
|
+
*/
|
|
700
|
+
static _delay(ms = 0) {
|
|
701
|
+
return new Promise((resolve) => {
|
|
702
|
+
setTimeout(resolve, ms);
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* A selector selecting tabbable nodes.
|
|
707
|
+
*/
|
|
708
|
+
static get selectorTabbable() {
|
|
709
|
+
return selectorTabbable;
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* The name of the custom event fired before this side-panel is being closed upon a user gesture.
|
|
713
|
+
* Cancellation of this event stops the user-initiated action of closing this side-panel.
|
|
714
|
+
*/
|
|
715
|
+
static get eventBeforeClose() {
|
|
716
|
+
return `${prefix}-side-panel-beingclosed`;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* The name of the custom event fired after this side-panel is closed upon a user gesture.
|
|
720
|
+
*/
|
|
721
|
+
static get eventClose() {
|
|
722
|
+
return `${prefix}-side-panel-closed`;
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* The name of the custom event fired on clicking the navigate back button
|
|
726
|
+
*/
|
|
727
|
+
static get eventNavigateBack() {
|
|
728
|
+
return `${prefix}-side-panel-navigate-back`;
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
CDSSidePanel.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
|
|
732
|
+
__decorate([
|
|
733
|
+
query(`.${blockClass}`)
|
|
734
|
+
], CDSSidePanel.prototype, "_sidePanel", void 0);
|
|
735
|
+
__decorate([
|
|
736
|
+
query(`.${blockClass}__animated-scroll-wrapper`)
|
|
737
|
+
], CDSSidePanel.prototype, "_animateScrollWrapper", void 0);
|
|
738
|
+
__decorate([
|
|
739
|
+
query(`.${blockClass}__label-text`)
|
|
740
|
+
], CDSSidePanel.prototype, "_label", void 0);
|
|
741
|
+
__decorate([
|
|
742
|
+
query(`.${blockClass}__title-text`)
|
|
743
|
+
], CDSSidePanel.prototype, "_title", void 0);
|
|
744
|
+
__decorate([
|
|
745
|
+
query(`.${blockClass}__subtitle-text`)
|
|
746
|
+
], CDSSidePanel.prototype, "_subtitle", void 0);
|
|
747
|
+
__decorate([
|
|
748
|
+
query(`.${blockClass}__inner-content`)
|
|
749
|
+
], CDSSidePanel.prototype, "_innerContent", void 0);
|
|
750
|
+
__decorate([
|
|
751
|
+
queryAssignedElements({
|
|
752
|
+
slot: 'actions',
|
|
753
|
+
selector: `${carbonPrefix}-button`,
|
|
754
|
+
})
|
|
755
|
+
], CDSSidePanel.prototype, "_actions", void 0);
|
|
756
|
+
__decorate([
|
|
757
|
+
state()
|
|
758
|
+
], CDSSidePanel.prototype, "_doAnimateTitle", void 0);
|
|
759
|
+
__decorate([
|
|
760
|
+
state()
|
|
761
|
+
], CDSSidePanel.prototype, "_isOpen", void 0);
|
|
762
|
+
__decorate([
|
|
763
|
+
state()
|
|
764
|
+
], CDSSidePanel.prototype, "_containerScrollTop", void 0);
|
|
765
|
+
__decorate([
|
|
766
|
+
state()
|
|
767
|
+
], CDSSidePanel.prototype, "_hasSubtitle", void 0);
|
|
768
|
+
__decorate([
|
|
769
|
+
state()
|
|
770
|
+
], CDSSidePanel.prototype, "_hasSlug", void 0);
|
|
771
|
+
__decorate([
|
|
772
|
+
state()
|
|
773
|
+
], CDSSidePanel.prototype, "_hasActionToolbar", void 0);
|
|
774
|
+
__decorate([
|
|
775
|
+
state()
|
|
776
|
+
], CDSSidePanel.prototype, "_actionsCount", void 0);
|
|
777
|
+
__decorate([
|
|
778
|
+
state()
|
|
779
|
+
], CDSSidePanel.prototype, "_slugCloseSize", void 0);
|
|
780
|
+
__decorate([
|
|
781
|
+
state()
|
|
782
|
+
], CDSSidePanel.prototype, "_customHeaderElements", void 0);
|
|
783
|
+
__decorate([
|
|
784
|
+
HostListener('keydown')
|
|
785
|
+
], CDSSidePanel.prototype, "_handleHostKeydown", void 0);
|
|
786
|
+
__decorate([
|
|
787
|
+
HostListener('document:keydown')
|
|
788
|
+
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
789
|
+
], CDSSidePanel.prototype, "_handleKeydown", void 0);
|
|
790
|
+
__decorate([
|
|
791
|
+
property({ reflect: true, attribute: 'animate-title', type: Boolean })
|
|
792
|
+
], CDSSidePanel.prototype, "animateTitle", void 0);
|
|
793
|
+
__decorate([
|
|
794
|
+
property({
|
|
795
|
+
reflect: true,
|
|
796
|
+
attribute: 'close-icon-description',
|
|
797
|
+
type: String,
|
|
798
|
+
})
|
|
799
|
+
], CDSSidePanel.prototype, "closeIconDescription", void 0);
|
|
800
|
+
__decorate([
|
|
801
|
+
property({
|
|
802
|
+
reflect: true,
|
|
803
|
+
attribute: 'close-icon-tooltip-alignment',
|
|
804
|
+
type: String,
|
|
805
|
+
})
|
|
806
|
+
], CDSSidePanel.prototype, "closeIconTooltipAlignment", void 0);
|
|
807
|
+
__decorate([
|
|
808
|
+
property({ type: Boolean, reflect: true, attribute: 'condensed-actions' })
|
|
809
|
+
], CDSSidePanel.prototype, "condensedActions", void 0);
|
|
810
|
+
__decorate([
|
|
811
|
+
property({ reflect: true, attribute: 'current-step', type: Number })
|
|
812
|
+
], CDSSidePanel.prototype, "currentStep", void 0);
|
|
813
|
+
__decorate([
|
|
814
|
+
property({ attribute: 'include-overlay', type: Boolean, reflect: true })
|
|
815
|
+
], CDSSidePanel.prototype, "includeOverlay", void 0);
|
|
816
|
+
__decorate([
|
|
817
|
+
property({ reflect: true, attribute: 'label-text' })
|
|
818
|
+
], CDSSidePanel.prototype, "labelText", void 0);
|
|
819
|
+
__decorate([
|
|
820
|
+
property({ reflect: true, attribute: 'navigation-back-icon-description' })
|
|
821
|
+
], CDSSidePanel.prototype, "navigationBackIconDescription", void 0);
|
|
822
|
+
__decorate([
|
|
823
|
+
property({ type: Boolean, reflect: true })
|
|
824
|
+
], CDSSidePanel.prototype, "open", void 0);
|
|
825
|
+
__decorate([
|
|
826
|
+
property({ reflect: true, type: String })
|
|
827
|
+
], CDSSidePanel.prototype, "placement", void 0);
|
|
828
|
+
__decorate([
|
|
829
|
+
property({ type: Boolean, attribute: 'prevent-close-on-click-outside' })
|
|
830
|
+
], CDSSidePanel.prototype, "preventCloseOnClickOutside", void 0);
|
|
831
|
+
__decorate([
|
|
832
|
+
property({
|
|
833
|
+
reflect: true,
|
|
834
|
+
attribute: 'selector-initial-focus',
|
|
835
|
+
type: String,
|
|
836
|
+
})
|
|
837
|
+
], CDSSidePanel.prototype, "selectorInitialFocus", void 0);
|
|
838
|
+
__decorate([
|
|
839
|
+
property({ reflect: true, attribute: 'selector-page-content' })
|
|
840
|
+
], CDSSidePanel.prototype, "selectorPageContent", void 0);
|
|
841
|
+
__decorate([
|
|
842
|
+
property({ attribute: 'hide-close-button', type: Boolean })
|
|
843
|
+
], CDSSidePanel.prototype, "hideCloseButton", void 0);
|
|
844
|
+
__decorate([
|
|
845
|
+
property({ reflect: true, type: String })
|
|
846
|
+
], CDSSidePanel.prototype, "size", void 0);
|
|
847
|
+
__decorate([
|
|
848
|
+
property({ attribute: 'slide-in', type: Boolean, reflect: true })
|
|
849
|
+
], CDSSidePanel.prototype, "slideIn", void 0);
|
|
850
|
+
__decorate([
|
|
851
|
+
property({ reflect: false, type: String })
|
|
852
|
+
], CDSSidePanel.prototype, "title", void 0);
|
|
853
|
+
CDSSidePanel = __decorate([
|
|
854
|
+
carbonElement(`${prefix}-side-panel`)
|
|
855
|
+
], CDSSidePanel);
|
|
856
|
+
var CDSSidePanel$1 = CDSSidePanel;
|
|
857
|
+
|
|
858
|
+
export { SIDE_PANEL_PLACEMENT, SIDE_PANEL_SIZE, CDSSidePanel$1 as default };
|
|
859
|
+
//# sourceMappingURL=side-panel.js.map
|