@brandsync/wc 1.19.0 → 1.20.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/CHANGELOG.md +34 -0
- package/REFERENCE.md +264 -9
- package/custom-elements.json +11409 -6963
- package/dist/brandsync-wc/brandsync-wc.css +1 -1
- package/dist/brandsync-wc/brandsync-wc.esm.js +1 -1
- package/dist/brandsync-wc/index.esm.js +1 -1
- package/dist/brandsync-wc/p-040d4755.entry.js +1 -0
- package/dist/brandsync-wc/{p-30ff0659.entry.js → p-050270f5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a688a7ca.entry.js → p-08a5e178.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a50c5e68.entry.js → p-08d08dc9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-568de1b0.entry.js → p-0ebb60a8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f3b60029.entry.js → p-0f864a4f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e7c80f48.entry.js → p-105c316e.entry.js} +1 -1
- package/dist/brandsync-wc/{p-10b8937f.entry.js → p-11fefb5a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-313ec145.entry.js → p-13d98ec3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8ac86d16.entry.js → p-16f15ba5.entry.js} +1 -1
- package/dist/brandsync-wc/{p-42fcf134.entry.js → p-18cfec13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9751a12d.entry.js → p-1a549f9a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a28ef52e.entry.js → p-1bf8a54a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-5371b31c.entry.js → p-1ce4395a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-de0dfd1c.entry.js → p-1daf48b1.entry.js} +1 -1
- package/dist/brandsync-wc/{p-86f04e9e.entry.js → p-20dd8b76.entry.js} +1 -1
- package/dist/brandsync-wc/{p-391504ab.entry.js → p-2210c680.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f10b19a8.entry.js → p-23367a4d.entry.js} +1 -1
- package/dist/brandsync-wc/{p-02314404.entry.js → p-238be384.entry.js} +1 -1
- package/dist/brandsync-wc/p-23affb5d.entry.js +1 -0
- package/dist/brandsync-wc/p-23b3958e.entry.js +1 -0
- package/dist/brandsync-wc/{p-03ad83a3.entry.js → p-2621b1b2.entry.js} +1 -1
- package/dist/brandsync-wc/p-28723df1.entry.js +1 -0
- package/dist/brandsync-wc/{p-d484e976.entry.js → p-28a34097.entry.js} +1 -1
- package/dist/brandsync-wc/{p-129a4de7.entry.js → p-2a96ce61.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7160a72e.entry.js → p-2f58b161.entry.js} +1 -1
- package/dist/brandsync-wc/p-319b7baa.entry.js +1 -0
- package/dist/brandsync-wc/{p-8a606b38.entry.js → p-32004fb3.entry.js} +1 -1
- package/dist/brandsync-wc/{p-78c94cfe.entry.js → p-32157c7a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ab99b8c3.entry.js → p-32d83763.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8b21f623.entry.js → p-338b5e39.entry.js} +1 -1
- package/dist/brandsync-wc/p-3f6be3f7.entry.js +1 -0
- package/dist/brandsync-wc/p-409cf56b.entry.js +1 -0
- package/dist/brandsync-wc/{p-8e107d7a.entry.js → p-452f6c13.entry.js} +1 -1
- package/dist/brandsync-wc/{p-527fd08d.entry.js → p-47fc5f29.entry.js} +1 -1
- package/dist/brandsync-wc/p-4810bcc8.entry.js +1 -0
- package/dist/brandsync-wc/p-484a6546.entry.js +1 -0
- package/dist/brandsync-wc/p-4ae7b8b9.entry.js +1 -0
- package/dist/brandsync-wc/p-4d6f2fec.entry.js +1 -0
- package/dist/brandsync-wc/{p-4ffcf41a.entry.js → p-4f19e8d8.entry.js} +1 -1
- package/dist/brandsync-wc/p-50a154b8.entry.js +1 -0
- package/dist/brandsync-wc/{p-26e0ab15.entry.js → p-50ac6889.entry.js} +1 -1
- package/dist/brandsync-wc/p-520b277a.entry.js +1 -0
- package/dist/brandsync-wc/p-53b1c545.entry.js +1 -0
- package/dist/brandsync-wc/{p-90d8d45f.entry.js → p-548b96f7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-144b6ac8.entry.js → p-57ed5ac6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-028d3244.entry.js → p-587be2c6.entry.js} +1 -1
- package/dist/brandsync-wc/p-5a35d573.entry.js +1 -0
- package/dist/brandsync-wc/p-5b48a6c7.entry.js +1 -0
- package/dist/brandsync-wc/{p-4d1ee16e.entry.js → p-5ea899c4.entry.js} +1 -1
- package/dist/brandsync-wc/p-6096900b.entry.js +1 -0
- package/dist/brandsync-wc/{p-fc76031e.entry.js → p-630d41ab.entry.js} +1 -1
- package/dist/brandsync-wc/p-66f1ca2e.entry.js +1 -0
- package/dist/brandsync-wc/p-69489f45.entry.js +1 -0
- package/dist/brandsync-wc/p-6adc9c4f.entry.js +1 -0
- package/dist/brandsync-wc/p-6bdd9ef9.entry.js +1 -0
- package/dist/brandsync-wc/{p-dc2ea372.entry.js → p-6db03e96.entry.js} +1 -1
- package/dist/brandsync-wc/{p-64e19200.entry.js → p-70924681.entry.js} +1 -1
- package/dist/brandsync-wc/p-7632f773.entry.js +1 -0
- package/dist/brandsync-wc/{p-590deea0.entry.js → p-78e4dd14.entry.js} +1 -1
- package/dist/brandsync-wc/{p-f96f45ae.entry.js → p-806bb471.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2a8b2ac9.entry.js → p-86fdbe8f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-8a18864a.entry.js → p-89dbb3c8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-ebcd105d.entry.js → p-8a4d64fd.entry.js} +1 -1
- package/dist/brandsync-wc/p-8c83cc99.entry.js +1 -0
- package/dist/brandsync-wc/p-8ccd1735.entry.js +1 -0
- package/dist/brandsync-wc/p-8d674f11.entry.js +1 -0
- package/dist/brandsync-wc/{p-8d1ad4b0.entry.js → p-90442341.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a2bfbf02.entry.js → p-9e93b482.entry.js} +1 -1
- package/dist/brandsync-wc/{p-020cb767.entry.js → p-9f852c8b.entry.js} +1 -1
- package/dist/brandsync-wc/p-Vo0zbGRB.js +1 -0
- package/dist/brandsync-wc/p-a1d34ff3.entry.js +1 -0
- package/dist/brandsync-wc/{p-15c6f0f3.entry.js → p-a3c7b4e7.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9ba500f1.entry.js → p-a6cbb6c6.entry.js} +1 -1
- package/dist/brandsync-wc/{p-70a5897b.entry.js → p-a86560e6.entry.js} +1 -1
- package/dist/brandsync-wc/p-aa70e80c.entry.js +1 -0
- package/dist/brandsync-wc/{p-0dff9822.entry.js → p-b0f4cbca.entry.js} +1 -1
- package/dist/brandsync-wc/{p-3c6980b9.entry.js → p-b1663378.entry.js} +1 -1
- package/dist/brandsync-wc/{p-25914efc.entry.js → p-b1b14615.entry.js} +1 -1
- package/dist/brandsync-wc/{p-2389f473.entry.js → p-b7545d9b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-d80eecf4.entry.js → p-baca1abf.entry.js} +1 -1
- package/dist/brandsync-wc/{p-a92c0f06.entry.js → p-bfdd135b.entry.js} +1 -1
- package/dist/brandsync-wc/{p-89fa7567.entry.js → p-c23e274a.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4928c4ad.entry.js → p-c39e6be9.entry.js} +1 -1
- package/dist/brandsync-wc/{p-30736034.entry.js → p-c6c15b9f.entry.js} +1 -1
- package/dist/brandsync-wc/{p-776b677f.entry.js → p-c9888d09.entry.js} +1 -1
- package/dist/brandsync-wc/p-ca8a1e51.entry.js +1 -0
- package/dist/brandsync-wc/{p-9fa7bd83.entry.js → p-d263deec.entry.js} +1 -1
- package/dist/brandsync-wc/p-d555984e.entry.js +1 -0
- package/dist/brandsync-wc/p-d6600c7c.entry.js +1 -0
- package/dist/brandsync-wc/{p-e5235e76.entry.js → p-d67840f5.entry.js} +1 -1
- package/dist/brandsync-wc/p-d8a299a9.entry.js +1 -0
- package/dist/brandsync-wc/{p-f4796801.entry.js → p-dd3499ab.entry.js} +1 -1
- package/dist/brandsync-wc/p-debc308d.entry.js +1 -0
- package/dist/brandsync-wc/{p-c01e231e.entry.js → p-e18cb639.entry.js} +1 -1
- package/dist/brandsync-wc/{p-7bff3aa5.entry.js → p-e18e45bc.entry.js} +1 -1
- package/dist/brandsync-wc/{p-4c51da66.entry.js → p-e2268c96.entry.js} +1 -1
- package/dist/brandsync-wc/p-e4033ebc.entry.js +1 -0
- package/dist/brandsync-wc/{p-1e33bc10.entry.js → p-e6f57fae.entry.js} +1 -1
- package/dist/brandsync-wc/p-e8027825.entry.js +1 -0
- package/dist/brandsync-wc/{p-7c741b8d.entry.js → p-eb1b1497.entry.js} +1 -1
- package/dist/brandsync-wc/{p-9868ee72.entry.js → p-eb4ad606.entry.js} +1 -1
- package/dist/brandsync-wc/p-ecb1a27d.entry.js +1 -0
- package/dist/brandsync-wc/p-f229f59a.entry.js +1 -0
- package/dist/brandsync-wc/{p-0819add7.entry.js → p-f22d2db8.entry.js} +1 -1
- package/dist/brandsync-wc/{p-feb46fa6.entry.js → p-f71d7582.entry.js} +1 -1
- package/dist/brandsync-wc/p-fa894893.entry.js +1 -0
- package/dist/brandsync-wc/p-fbd204b6.entry.js +1 -0
- package/dist/brandsync-wc/{p-21e5d4d6.entry.js → p-fc7df528.entry.js} +1 -1
- package/dist/brandsync-wc/{p-27663faf.entry.js → p-fe6f71da.entry.js} +1 -1
- package/dist/brandsync-wc/{p-e1d30e31.entry.js → p-ff14edb6.entry.js} +1 -1
- package/dist/brandsync-wc/p-ff85a9d8.entry.js +1 -0
- package/dist/brandsync-wc/p-wz7B473u.js +3 -0
- package/dist/cjs/brandsync-wc.cjs.js +2 -2
- package/dist/cjs/bs-accordion-group.cjs.entry.js +2 -2
- package/dist/cjs/bs-accordion.cjs.entry.js +1 -1
- package/dist/cjs/bs-ai-disclaimer.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-greeting.cjs.entry.js +2 -2
- package/dist/cjs/bs-ai-thinking.cjs.entry.js +2 -2
- package/dist/cjs/bs-app-recent-item_3.cjs.entry.js +5 -5
- package/dist/cjs/bs-app-shell.cjs.entry.js +2 -2
- package/dist/cjs/bs-app-switcher.cjs.entry.js +1 -1
- package/dist/cjs/bs-attachment-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-attachment.cjs.entry.js +2 -2
- package/dist/cjs/bs-avatar.cjs.entry.js +3 -10
- package/dist/cjs/bs-badge.cjs.entry.js +2 -2
- package/dist/cjs/bs-breadcrumb-overflow.cjs.entry.js +1 -1
- package/dist/cjs/bs-breadcrumb.cjs.entry.js +3 -3
- package/dist/cjs/bs-breadcrumbs.cjs.entry.js +10 -2
- package/dist/cjs/bs-button-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-button_2.cjs.entry.js +17 -4
- package/dist/cjs/bs-card.cjs.entry.js +44 -3
- package/dist/cjs/bs-carousel.cjs.entry.js +1 -1
- package/dist/cjs/bs-chatbot-feedback.cjs.entry.js +3 -7
- package/dist/cjs/bs-chatbot-header.cjs.entry.js +3 -7
- package/dist/cjs/bs-chatbot-response-action.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-sources-drawer.cjs.entry.js +2 -2
- package/dist/cjs/bs-chatbot-suggestion-button.cjs.entry.js +3 -3
- package/dist/cjs/bs-checkbox-group.cjs.entry.js +80 -0
- package/dist/cjs/bs-checkbox-skeleton.cjs.entry.js +2 -2
- package/dist/cjs/bs-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/bs-chip-filter.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-informative.cjs.entry.js +2 -2
- package/dist/cjs/bs-chip-input.cjs.entry.js +2 -2
- package/dist/cjs/bs-citation-preview.cjs.entry.js +2 -2
- package/dist/cjs/bs-code-block.cjs.entry.js +75 -0
- package/dist/cjs/bs-command-palette.cjs.entry.js +2 -2
- package/dist/cjs/bs-compact-menu-block_2.cjs.entry.js +5 -5
- package/dist/cjs/bs-company-switcher.cjs.entry.js +3 -3
- package/dist/cjs/bs-composer-status-banner.cjs.entry.js +2 -2
- package/dist/cjs/bs-composer.cjs.entry.js +6 -4
- package/dist/cjs/bs-container.cjs.entry.js +2 -2
- package/dist/cjs/bs-cookie-consent.cjs.entry.js +1 -1
- package/dist/cjs/bs-data-table.cjs.entry.js +8 -5
- package/dist/cjs/bs-datepicker.cjs.entry.js +2 -2
- package/dist/cjs/bs-description-item.cjs.entry.js +23 -0
- package/dist/cjs/bs-description-list.cjs.entry.js +40 -0
- package/dist/cjs/bs-dialog.cjs.entry.js +1 -1
- package/dist/cjs/bs-divider.cjs.entry.js +2 -2
- package/dist/cjs/bs-dropdown.cjs.entry.js +96 -0
- package/dist/cjs/bs-empty-state.cjs.entry.js +7 -3
- package/dist/cjs/bs-error-page.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/bs-global-search.cjs.entry.js +3 -3
- package/dist/cjs/bs-grid.cjs.entry.js +3 -3
- package/dist/cjs/bs-heading.cjs.entry.js +28 -0
- package/dist/cjs/bs-icon-button.cjs.entry.js +10 -3
- package/dist/cjs/bs-icon-tile.cjs.entry.js +3 -3
- package/dist/cjs/bs-icon.cjs.entry.js +35 -0
- package/dist/cjs/bs-inline-tab.cjs.entry.js +3 -3
- package/dist/cjs/bs-input_4.cjs.entry.js +794 -0
- package/dist/cjs/bs-key-caps.cjs.entry.js +2 -2
- package/dist/cjs/bs-key.cjs.entry.js +2 -2
- package/dist/cjs/bs-keyboard-shortcuts.cjs.entry.js +3 -3
- package/dist/cjs/bs-link.cjs.entry.js +52 -0
- package/dist/cjs/bs-list-item.cjs.entry.js +68 -0
- package/dist/cjs/bs-list.cjs.entry.js +9 -3
- package/dist/cjs/bs-logo.cjs.entry.js +1 -1
- package/dist/cjs/bs-mega-menu.cjs.entry.js +2 -2
- package/dist/cjs/bs-message-list.cjs.entry.js +2 -2
- package/dist/cjs/bs-message.cjs.entry.js +2 -2
- package/dist/cjs/bs-navigation-drawer-item.cjs.entry.js +26 -5
- package/dist/cjs/bs-navigation-drawer.cjs.entry.js +4 -4
- package/dist/cjs/bs-navigation-header.cjs.entry.js +4 -4
- package/dist/cjs/bs-onboarding-checklist.cjs.entry.js +1 -1
- package/dist/cjs/bs-page-header.cjs.entry.js +2 -2
- package/dist/cjs/bs-pagination.cjs.entry.js +2 -2
- package/dist/cjs/{bs-list-item_2.cjs.entry.js → bs-popover.cjs.entry.js} +2 -64
- package/dist/cjs/bs-presence.cjs.entry.js +2 -2
- package/dist/cjs/bs-product-tour.cjs.entry.js +1 -1
- package/dist/cjs/bs-progress-linear.cjs.entry.js +4 -4
- package/dist/cjs/bs-progress.cjs.entry.js +3 -3
- package/dist/cjs/bs-qr-code.cjs.entry.js +2 -2
- package/dist/cjs/bs-radio-group.cjs.entry.js +90 -0
- package/dist/cjs/bs-radio.cjs.entry.js +6 -2
- package/dist/cjs/bs-search-item.cjs.entry.js +2 -2
- package/dist/cjs/bs-select.cjs.entry.js +234 -0
- package/dist/cjs/bs-session-timeout.cjs.entry.js +2 -2
- package/dist/cjs/bs-shortcut-row.cjs.entry.js +2 -2
- package/dist/cjs/bs-side-panel.cjs.entry.js +1 -1
- package/dist/cjs/bs-skip-link.cjs.entry.js +52 -0
- package/dist/cjs/bs-slider.cjs.entry.js +3 -3
- package/dist/cjs/bs-snackbar.cjs.entry.js +3 -3
- package/dist/cjs/bs-source-link.cjs.entry.js +4 -4
- package/dist/cjs/bs-split-pane.cjs.entry.js +2 -2
- package/dist/cjs/bs-stack.cjs.entry.js +2 -2
- package/dist/cjs/bs-stat.cjs.entry.js +53 -0
- package/dist/cjs/bs-stepper-step.cjs.entry.js +2 -2
- package/dist/cjs/bs-stepper.cjs.entry.js +2 -2
- package/dist/cjs/bs-switch.cjs.entry.js +2 -2
- package/dist/cjs/bs-tab_3.cjs.entry.js +16 -9
- package/dist/cjs/bs-table-of-contents.cjs.entry.js +171 -0
- package/dist/cjs/bs-tag.cjs.entry.js +51 -0
- package/dist/cjs/bs-text.cjs.entry.js +24 -0
- package/dist/cjs/bs-timepicker.cjs.entry.js +3 -3
- package/dist/cjs/bs-toast.cjs.entry.js +2 -2
- package/dist/cjs/bs-toggle-button-group.cjs.entry.js +108 -0
- package/dist/cjs/bs-toggle-button.cjs.entry.js +57 -0
- package/dist/cjs/bs-toolbar.cjs.entry.js +195 -0
- package/dist/cjs/bs-tooltip-trigger.cjs.entry.js +2 -2
- package/dist/cjs/bs-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/bs-tree-item.cjs.entry.js +3 -3
- package/dist/cjs/bs-tree.cjs.entry.js +2 -2
- package/dist/cjs/bs-whats-new.cjs.entry.js +1 -1
- package/dist/cjs/icon-registry-DWYCqjKw.js +64 -0
- package/dist/cjs/{index-BYfMRtlW.js → index-BFxk-bY6.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +19 -1
- package/dist/collection/components/bs-a11y.cmp.test.js +9 -0
- package/dist/collection/components/bs-accordion-group/bs-accordion-group.js +1 -1
- package/dist/collection/components/bs-ai-disclaimer/bs-ai-disclaimer.js +1 -1
- package/dist/collection/components/bs-ai-greeting/bs-ai-greeting.js +1 -1
- package/dist/collection/components/bs-ai-thinking/bs-ai-thinking.js +1 -1
- package/dist/collection/components/bs-app-recent-item/bs-app-recent-item.js +3 -3
- package/dist/collection/components/bs-app-shell/bs-app-shell.js +1 -1
- package/dist/collection/components/bs-attachment/bs-attachment.cmp.test.js +10 -0
- package/dist/collection/components/bs-attachment/bs-attachment.css +6 -6
- package/dist/collection/components/bs-attachment-list/bs-attachment-list.js +1 -1
- package/dist/collection/components/bs-avatar/bs-avatar.cmp.test.js +11 -1
- package/dist/collection/components/bs-avatar/bs-avatar.css +9 -4
- package/dist/collection/components/bs-avatar/bs-avatar.js +1 -8
- package/dist/collection/components/bs-badge/bs-badge.css +4 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.cmp.test.js +13 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.css +8 -0
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumb/bs-breadcrumb.js +1 -1
- package/dist/collection/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.js +26 -1
- package/dist/collection/components/bs-button/bs-button/bs-button.cmp.test.js +31 -2
- package/dist/collection/components/bs-button/bs-button/bs-button.css +16 -18
- package/dist/collection/components/bs-button/bs-button/bs-button.js +102 -7
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.cmp.test.js +43 -0
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.css +32 -2
- package/dist/collection/components/bs-button/bs-icon-button/bs-icon-button.js +68 -1
- package/dist/collection/components/bs-button-skeleton/bs-button-skeleton.js +1 -1
- package/dist/collection/components/bs-card/bs-card.cmp.test.js +78 -0
- package/dist/collection/components/bs-card/bs-card.css +75 -0
- package/dist/collection/components/bs-card/bs-card.js +200 -1
- package/dist/collection/components/bs-card/bs-card.stories.js +32 -0
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.cmp.test.js +8 -0
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.css +11 -8
- package/dist/collection/components/bs-chatbot-feedback/bs-chatbot-feedback.js +1 -5
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.css +2 -3
- package/dist/collection/components/bs-chatbot-header/bs-chatbot-header.js +1 -5
- package/dist/collection/components/bs-chatbot-response-action/bs-chatbot-response-action.js +1 -1
- package/dist/collection/components/bs-chatbot-sources-drawer/bs-chatbot-sources-drawer.js +1 -1
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.cmp.test.js +18 -0
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.css +8 -2
- package/dist/collection/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.js +4 -1
- package/dist/collection/components/bs-checkbox/bs-checkbox-skeleton/bs-checkbox-skeleton.js +1 -1
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.cmp.test.js +58 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.css +65 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.js +254 -0
- package/dist/collection/components/bs-checkbox-group/bs-checkbox-group.stories.js +34 -0
- package/dist/collection/components/bs-chip/bs-chip-filter/bs-chip-filter.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-informative/bs-chip-informative.js +1 -1
- package/dist/collection/components/bs-chip/bs-chip-input/bs-chip-input.js +1 -1
- package/dist/collection/components/bs-citation-preview/bs-citation-preview.js +1 -1
- package/dist/collection/components/bs-code-block/bs-code-block.cmp.test.js +78 -0
- package/dist/collection/components/bs-code-block/bs-code-block.css +132 -0
- package/dist/collection/components/bs-code-block/bs-code-block.js +317 -0
- package/dist/collection/components/bs-code-block/bs-code-block.stories.js +56 -0
- package/dist/collection/components/bs-command-palette/bs-command-palette.js +1 -1
- package/dist/collection/components/bs-compact-menu-block/bs-compact-menu-block.js +1 -1
- package/dist/collection/components/bs-company-switcher/bs-company-switcher.js +2 -2
- package/dist/collection/components/bs-composer/bs-composer.cmp.test.js +29 -0
- package/dist/collection/components/bs-composer/bs-composer.css +2 -1
- package/dist/collection/components/bs-composer/bs-composer.js +4 -2
- package/dist/collection/components/bs-composer/bs-composer.stories.js +0 -1
- package/dist/collection/components/bs-composer-status-banner/bs-composer-status-banner.js +1 -1
- package/dist/collection/components/bs-container/bs-container.js +1 -1
- package/dist/collection/components/bs-cookie-consent/bs-cookie-consent.cmp.test.js +1 -1
- package/dist/collection/components/bs-data-table/bs-data-table.cmp.test.js +39 -0
- package/dist/collection/components/bs-data-table/bs-data-table.css +12 -0
- package/dist/collection/components/bs-data-table/bs-data-table.js +34 -3
- package/dist/collection/components/bs-data-table/bs-data-table.stories.js +1 -1
- package/dist/collection/components/bs-datepicker/bs-datepicker.js +1 -1
- package/dist/collection/components/bs-description-item/bs-description-item.cmp.test.js +14 -0
- package/dist/collection/components/bs-description-item/bs-description-item.css +47 -0
- package/dist/collection/components/bs-description-item/bs-description-item.js +111 -0
- package/dist/collection/components/bs-description-list/bs-description-list.cmp.test.js +58 -0
- package/dist/collection/components/bs-description-list/bs-description-list.css +15 -0
- package/dist/collection/components/bs-description-list/bs-description-list.js +127 -0
- package/dist/collection/components/bs-description-list/bs-description-list.stories.js +34 -0
- package/dist/collection/components/bs-divider/bs-divider.js +1 -1
- package/dist/collection/components/bs-dropdown/bs-dropdown.cmp.test.js +135 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.css +3 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.js +218 -0
- package/dist/collection/components/bs-dropdown/bs-dropdown.stories.js +42 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.cmp.test.js +15 -0
- package/dist/collection/components/bs-empty-state/bs-empty-state.css +30 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.js +29 -1
- package/dist/collection/components/bs-empty-state/bs-empty-state.stories.js +24 -1
- package/dist/collection/components/bs-error-page/bs-error-page.js +1 -1
- package/dist/collection/components/bs-file-upload/bs-file-upload.js +1 -1
- package/dist/collection/components/bs-file-upload-item/bs-file-upload-item.js +1 -1
- package/dist/collection/components/bs-global-search/bs-global-search.js +2 -2
- package/dist/collection/components/bs-grid/bs-grid.js +2 -2
- package/dist/collection/components/bs-heading/bs-heading.cmp.test.js +38 -0
- package/dist/collection/components/bs-heading/bs-heading.css +42 -0
- package/dist/collection/components/bs-heading/bs-heading.js +154 -0
- package/dist/collection/components/bs-heading/bs-heading.stories.js +28 -0
- package/dist/collection/components/bs-icon/bs-icon.cmp.test.js +78 -0
- package/dist/collection/components/bs-icon/bs-icon.css +47 -0
- package/dist/collection/components/bs-icon/bs-icon.js +155 -0
- package/dist/collection/components/bs-icon/bs-icon.stories.js +52 -0
- package/dist/collection/components/bs-icon/icon-registry.js +58 -0
- package/dist/collection/components/bs-icon-tile/bs-icon-tile.js +2 -2
- package/dist/collection/components/bs-input/bs-input.cmp.test.js +431 -45
- package/dist/collection/components/bs-input/bs-input.css +196 -12
- package/dist/collection/components/bs-input/bs-input.js +565 -46
- package/dist/collection/components/bs-input/bs-input.stories.js +32 -4
- package/dist/collection/components/bs-key/bs-key.js +1 -1
- package/dist/collection/components/bs-key-caps/bs-key-caps.js +1 -1
- package/dist/collection/components/bs-keyboard-shortcuts/bs-keyboard-shortcuts.js +2 -2
- package/dist/collection/components/bs-link/bs-link.cmp.test.js +52 -0
- package/dist/collection/components/bs-link/bs-link.css +129 -0
- package/dist/collection/components/bs-link/bs-link.js +257 -0
- package/dist/collection/components/bs-link/bs-link.stories.js +31 -0
- package/dist/collection/components/bs-list/bs-list.cmp.test.js +23 -0
- package/dist/collection/components/bs-list/bs-list.js +32 -2
- package/dist/collection/components/bs-list/bs-list.stories.js +35 -2
- package/dist/collection/components/bs-list-item/bs-list-item.css +8 -0
- package/dist/collection/components/bs-list-item/bs-list-item.js +24 -1
- package/dist/collection/components/bs-mega-menu/bs-mega-menu.js +1 -1
- package/dist/collection/components/bs-menu/bs-menu.js +1 -1
- package/dist/collection/components/bs-menu-block/bs-menu-block.js +3 -3
- package/dist/collection/components/bs-menu-item/bs-menu-item.js +1 -1
- package/dist/collection/components/bs-message/bs-message.js +1 -1
- package/dist/collection/components/bs-message-list/bs-message-list.js +1 -1
- package/dist/collection/components/bs-page-header/bs-page-header.js +1 -1
- package/dist/collection/components/bs-pagination/bs-pagination.js +1 -1
- package/dist/collection/components/bs-popover/bs-popover.js +1 -1
- package/dist/collection/components/bs-presence/bs-presence.js +1 -1
- package/dist/collection/components/bs-progress/bs-progress.js +2 -2
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.css +4 -1
- package/dist/collection/components/bs-progress-linear/bs-progress-linear.js +2 -2
- package/dist/collection/components/bs-qr-code/bs-qr-code.js +1 -1
- package/dist/collection/components/bs-radio/bs-radio.cmp.test.js +8 -0
- package/dist/collection/components/bs-radio/bs-radio.js +25 -1
- package/dist/collection/components/bs-radio-group/bs-radio-group.cmp.test.js +85 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.css +59 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.js +309 -0
- package/dist/collection/components/bs-radio-group/bs-radio-group.stories.js +35 -0
- package/dist/collection/components/bs-ripple/bs-ripple.js +1 -1
- package/dist/collection/components/bs-search-item/bs-search-item.js +1 -1
- package/dist/collection/components/bs-select/bs-select.cmp.test.js +108 -0
- package/dist/collection/components/bs-select/bs-select.css +231 -0
- package/dist/collection/components/bs-select/bs-select.js +506 -0
- package/dist/collection/components/bs-select/bs-select.stories.js +58 -0
- package/dist/collection/components/bs-session-timeout/bs-session-timeout.js +1 -1
- package/dist/collection/components/bs-shortcut-row/bs-shortcut-row.js +1 -1
- package/dist/collection/components/bs-skeleton/bs-skeleton.js +1 -1
- package/dist/collection/components/bs-skip-link/bs-skip-link.cmp.test.js +60 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.css +58 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.js +123 -0
- package/dist/collection/components/bs-skip-link/bs-skip-link.stories.js +27 -0
- package/dist/collection/components/bs-slider/bs-slider.cmp.test.js +13 -0
- package/dist/collection/components/bs-slider/bs-slider.css +3 -2
- package/dist/collection/components/bs-slider/bs-slider.js +1 -1
- package/dist/collection/components/bs-snackbar/bs-snackbar.cmp.test.js +22 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.css +23 -0
- package/dist/collection/components/bs-snackbar/bs-snackbar.js +1 -1
- package/dist/collection/components/bs-source-link/bs-source-link.js +3 -3
- package/dist/collection/components/bs-spinner/bs-spinner.js +1 -1
- package/dist/collection/components/bs-split-pane/bs-split-pane.js +1 -1
- package/dist/collection/components/bs-stack/bs-stack.js +1 -1
- package/dist/collection/components/bs-stat/bs-stat.cmp.test.js +49 -0
- package/dist/collection/components/bs-stat/bs-stat.css +116 -0
- package/dist/collection/components/bs-stat/bs-stat.js +284 -0
- package/dist/collection/components/bs-stat/bs-stat.stories.js +44 -0
- package/dist/collection/components/bs-stepper/bs-stepper/bs-stepper.js +1 -1
- package/dist/collection/components/bs-stepper/bs-stepper-step/bs-stepper-step.js +1 -1
- package/dist/collection/components/bs-switch/bs-switch.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.css +2 -2
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.js +0 -4
- package/dist/collection/components/bs-tab/bs-tab/bs-tab.js +1 -1
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.cmp.test.js +35 -0
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.css +6 -2
- package/dist/collection/components/bs-tab/bs-tabs/bs-tabs.js +13 -6
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.cmp.test.js +125 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.css +115 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.js +392 -0
- package/dist/collection/components/bs-table-of-contents/bs-table-of-contents.stories.js +58 -0
- package/dist/collection/components/bs-tag/bs-tag.cmp.test.js +66 -0
- package/dist/collection/components/bs-tag/bs-tag.css +101 -0
- package/dist/collection/components/bs-tag/bs-tag.js +233 -0
- package/dist/collection/components/bs-tag/bs-tag.stories.js +59 -0
- package/dist/collection/components/bs-text/bs-text.cmp.test.js +33 -0
- package/dist/collection/components/bs-text/bs-text.css +48 -0
- package/dist/collection/components/bs-text/bs-text.js +126 -0
- package/dist/collection/components/bs-text/bs-text.stories.js +25 -0
- package/dist/collection/components/bs-timepicker/bs-timepicker.js +2 -2
- package/dist/collection/components/bs-toast/bs-toast.js +1 -1
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.cmp.test.js +47 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.css +125 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.js +234 -0
- package/dist/collection/components/bs-toggle-button/bs-toggle-button.stories.js +22 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.js +69 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.css +43 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.js +264 -0
- package/dist/collection/components/bs-toggle-button-group/bs-toggle-button-group.stories.js +42 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.cmp.test.js +149 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.css +82 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.js +345 -0
- package/dist/collection/components/bs-toolbar/bs-toolbar.stories.js +49 -0
- package/dist/collection/components/bs-tooltip/bs-tooltip.js +1 -1
- package/dist/collection/components/bs-tooltip-trigger/bs-tooltip-trigger.js +1 -1
- package/dist/collection/components/bs-tree/bs-tree.js +1 -1
- package/dist/collection/components/bs-tree-item/bs-tree-item.js +2 -2
- package/dist/collection/components/bs-whats-new-entry/bs-whats-new-entry.js +1 -1
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.cmp.test.js +25 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.css +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer/bs-navigation-drawer.js +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.cmp.test.js +58 -0
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.css +10 -2
- package/dist/collection/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.js +63 -4
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.cmp.test.js +42 -9
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.css +44 -37
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.js +2 -2
- package/dist/collection/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.js +22 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/test/helpers/block-link-navigation.js +13 -0
- package/dist/collection/test/helpers/contrast.js +57 -0
- package/dist/components/bs-accordion-group.js +1 -1
- package/dist/components/bs-accordion.js +1 -1
- package/dist/components/bs-ai-disclaimer.js +1 -1
- package/dist/components/bs-ai-greeting.js +1 -1
- package/dist/components/bs-ai-thinking.js +1 -1
- package/dist/components/bs-app-recent-item.js +1 -1
- package/dist/components/bs-app-shell.js +1 -1
- package/dist/components/bs-app-switcher.js +1 -1
- package/dist/components/bs-app-tile.js +1 -1
- package/dist/components/bs-attachment-list.js +1 -1
- package/dist/components/bs-attachment.js +1 -1
- package/dist/components/bs-avatar.js +1 -1
- package/dist/components/bs-badge.js +1 -1
- package/dist/components/bs-breadcrumb-overflow.js +1 -1
- package/dist/components/bs-breadcrumb.js +1 -1
- package/dist/components/bs-breadcrumbs.js +1 -1
- package/dist/components/bs-button-skeleton.js +1 -1
- package/dist/components/bs-button.js +1 -1
- package/dist/components/bs-card.js +1 -1
- package/dist/components/bs-carousel.js +1 -1
- package/dist/components/bs-chatbot-feedback.js +1 -1
- package/dist/components/bs-chatbot-header.js +1 -1
- package/dist/components/bs-chatbot-response-action.js +1 -1
- package/dist/components/bs-chatbot-sources-drawer.js +1 -1
- package/dist/components/bs-chatbot-suggestion-button.js +1 -1
- package/dist/components/bs-checkbox-group.d.ts +11 -0
- package/dist/components/bs-checkbox-group.js +1 -0
- package/dist/components/bs-checkbox-skeleton.js +1 -1
- package/dist/components/bs-checkbox.js +1 -1
- package/dist/components/bs-chip-filter.js +1 -1
- package/dist/components/bs-chip-informative.js +1 -1
- package/dist/components/bs-chip-input.js +1 -1
- package/dist/components/bs-citation-preview.js +1 -1
- package/dist/components/bs-code-block.d.ts +11 -0
- package/dist/components/bs-code-block.js +1 -0
- package/dist/components/bs-command-palette.js +1 -1
- package/dist/components/bs-compact-menu-block.js +1 -1
- package/dist/components/bs-company-switcher.js +1 -1
- package/dist/components/bs-composer-status-banner.js +1 -1
- package/dist/components/bs-composer.js +1 -1
- package/dist/components/bs-container.js +1 -1
- package/dist/components/bs-cookie-consent.js +1 -1
- package/dist/components/bs-data-table.js +1 -1
- package/dist/components/bs-datepicker.js +1 -1
- package/dist/components/bs-description-item.d.ts +11 -0
- package/dist/components/bs-description-item.js +1 -0
- package/dist/components/bs-description-list.d.ts +11 -0
- package/dist/components/bs-description-list.js +1 -0
- package/dist/components/bs-dialog.js +1 -1
- package/dist/components/bs-divider.js +1 -1
- package/dist/components/bs-dropdown.d.ts +11 -0
- package/dist/components/bs-dropdown.js +1 -0
- package/dist/components/bs-empty-state.js +1 -1
- package/dist/components/bs-error-page.js +1 -1
- package/dist/components/bs-file-upload-item.js +1 -1
- package/dist/components/bs-file-upload.js +1 -1
- package/dist/components/bs-global-search.js +1 -1
- package/dist/components/bs-grid.js +1 -1
- package/dist/components/bs-heading.d.ts +11 -0
- package/dist/components/bs-heading.js +1 -0
- package/dist/components/bs-icon-button.js +1 -1
- package/dist/components/bs-icon-tile.js +1 -1
- package/dist/components/bs-icon.d.ts +11 -0
- package/dist/components/bs-icon.js +1 -0
- package/dist/components/bs-inline-tab.js +1 -1
- package/dist/components/bs-input.js +1 -1
- package/dist/components/bs-key-caps.js +1 -1
- package/dist/components/bs-key.js +1 -1
- package/dist/components/bs-keyboard-shortcuts.js +1 -1
- package/dist/components/bs-link.d.ts +11 -0
- package/dist/components/bs-link.js +1 -0
- package/dist/components/bs-list-item.js +1 -1
- package/dist/components/bs-list.js +1 -1
- package/dist/components/bs-logo.js +1 -1
- package/dist/components/bs-mega-menu.js +1 -1
- package/dist/components/bs-menu-block.js +1 -1
- package/dist/components/bs-menu-item.js +1 -1
- package/dist/components/bs-menu.js +1 -1
- package/dist/components/bs-message-list.js +1 -1
- package/dist/components/bs-message.js +1 -1
- package/dist/components/bs-navigation-drawer-item.js +1 -1
- package/dist/components/bs-navigation-drawer.js +1 -1
- package/dist/components/bs-navigation-header.js +1 -1
- package/dist/components/bs-onboarding-checklist.js +1 -1
- package/dist/components/bs-page-header.js +1 -1
- package/dist/components/bs-pagination.js +1 -1
- package/dist/components/bs-popover.js +1 -1
- package/dist/components/bs-presence.js +1 -1
- package/dist/components/bs-product-tour.js +1 -1
- package/dist/components/bs-progress-linear.js +1 -1
- package/dist/components/bs-progress.js +1 -1
- package/dist/components/bs-qr-code.js +1 -1
- package/dist/components/bs-radio-group.d.ts +11 -0
- package/dist/components/bs-radio-group.js +1 -0
- package/dist/components/bs-radio.js +1 -1
- package/dist/components/bs-ripple.js +1 -1
- package/dist/components/bs-search-item.js +1 -1
- package/dist/components/bs-select.d.ts +11 -0
- package/dist/components/bs-select.js +1 -0
- package/dist/components/bs-session-timeout.js +1 -1
- package/dist/components/bs-shortcut-row.js +1 -1
- package/dist/components/bs-side-panel.js +1 -1
- package/dist/components/bs-skeleton.js +1 -1
- package/dist/components/bs-skip-link.d.ts +11 -0
- package/dist/components/bs-skip-link.js +1 -0
- package/dist/components/bs-slider.js +1 -1
- package/dist/components/bs-snackbar.js +1 -1
- package/dist/components/bs-source-link.js +1 -1
- package/dist/components/bs-spinner.js +1 -1
- package/dist/components/bs-split-pane.js +1 -1
- package/dist/components/bs-stack.js +1 -1
- package/dist/components/bs-stat.d.ts +11 -0
- package/dist/components/bs-stat.js +1 -0
- package/dist/components/bs-stepper-step.js +1 -1
- package/dist/components/bs-stepper.js +1 -1
- package/dist/components/bs-switch.js +1 -1
- package/dist/components/bs-tab.js +1 -1
- package/dist/components/bs-table-of-contents.d.ts +11 -0
- package/dist/components/bs-table-of-contents.js +1 -0
- package/dist/components/bs-tabs.js +1 -1
- package/dist/components/bs-tag.d.ts +11 -0
- package/dist/components/bs-tag.js +1 -0
- package/dist/components/bs-text.d.ts +11 -0
- package/dist/components/bs-text.js +1 -0
- package/dist/components/bs-timepicker.js +1 -1
- package/dist/components/bs-toast.js +1 -1
- package/dist/components/bs-toggle-button-group.d.ts +11 -0
- package/dist/components/bs-toggle-button-group.js +1 -0
- package/dist/components/bs-toggle-button.d.ts +11 -0
- package/dist/components/bs-toggle-button.js +1 -0
- package/dist/components/bs-toolbar.d.ts +11 -0
- package/dist/components/bs-toolbar.js +1 -0
- package/dist/components/bs-tooltip-trigger.js +1 -1
- package/dist/components/bs-tooltip.js +1 -1
- package/dist/components/bs-tree-item.js +1 -1
- package/dist/components/bs-tree.js +1 -1
- package/dist/components/bs-whats-new-entry.js +1 -1
- package/dist/components/bs-whats-new.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-CFR3Q0io.js → p-BB1HiIxJ.js} +1 -1
- package/dist/components/p-BLJL4BVY.js +1 -0
- package/dist/components/{p-D5eN9Lfa.js → p-BR7C-aKy.js} +1 -1
- package/dist/components/{p-D3PuUD8Z.js → p-Ba8J2kHD.js} +1 -1
- package/dist/components/p-CALH_mHQ.js +1 -0
- package/dist/components/{p-lPTgyF9v.js → p-CL99S8-7.js} +1 -1
- package/dist/components/{p-BpkPo4ay.js → p-CXv8kx8w.js} +1 -1
- package/dist/components/{p-Dj393s3S.js → p-CZfbB-t_.js} +1 -1
- package/dist/components/p-CcAX4o5o.js +1 -0
- package/dist/components/{p-DXwatzvM.js → p-CePOtLtZ.js} +1 -1
- package/dist/components/{p-6Rr9bjVN.js → p-Cso2DKAz.js} +1 -1
- package/dist/components/{p-CVQycAap.js → p-CxNNy2m6.js} +1 -1
- package/dist/components/{p-CHZE_FrW.js → p-Cz38kNDe.js} +1 -1
- package/dist/components/p-D3XmFqCQ.js +1 -0
- package/dist/components/{p-Y5FyLR8G.js → p-D4W5LcEW.js} +1 -1
- package/dist/components/{p--Tyv3LIl.js → p-DARbgzSz.js} +1 -1
- package/dist/components/{p-DXbcyEgd.js → p-DBgafacj.js} +1 -1
- package/dist/components/p-DHZ_DStJ.js +1 -0
- package/dist/components/{p-BQ4rSQDm.js → p-DK1uv2fu.js} +1 -1
- package/dist/components/{p-DLnZG_G9.js → p-DL9HtG41.js} +1 -1
- package/dist/components/{p-Cr8cHmpM.js → p-DLNoxNuW.js} +1 -1
- package/dist/components/{p-4yShCgRb.js → p-DMp5CvEJ.js} +1 -1
- package/dist/components/p-DO4sVZCh.js +1 -0
- package/dist/components/{p-DDgzEg1C.js → p-DOW-YekD.js} +1 -1
- package/dist/components/{p-BTPdjnXT.js → p-DVqoLSEW.js} +1 -1
- package/dist/components/{p-DF2FcJPs.js → p-DYpJMHAH.js} +1 -1
- package/dist/components/{p-DtkTnaOp.js → p-DaKBSL2O.js} +1 -1
- package/dist/components/{p-ZfE38vXZ.js → p-Dlp2c-Ii.js} +1 -1
- package/dist/components/{p-XZXdZpt4.js → p-DnagAPBF.js} +1 -1
- package/dist/components/p-Dt3b6VYT.js +1 -0
- package/dist/components/{p-DcD5eV_Z.js → p-DztU3DwY.js} +1 -1
- package/dist/components/{p-BWRkbt0f.js → p-KiyJJwzr.js} +1 -1
- package/dist/components/p-Vo0zbGRB.js +1 -0
- package/dist/components/p-abyVFrPp.js +1 -0
- package/dist/components/p-mxDA3wKn.js +1 -0
- package/dist/components/p-wd9-vGpQ.js +1 -0
- package/dist/components/p-wscU7FUD.js +1 -0
- package/dist/esm/brandsync-wc.js +3 -3
- package/dist/esm/bs-accordion-group.entry.js +2 -2
- package/dist/esm/bs-accordion.entry.js +1 -1
- package/dist/esm/bs-ai-disclaimer.entry.js +2 -2
- package/dist/esm/bs-ai-greeting.entry.js +2 -2
- package/dist/esm/bs-ai-thinking.entry.js +2 -2
- package/dist/esm/bs-app-recent-item_3.entry.js +5 -5
- package/dist/esm/bs-app-shell.entry.js +2 -2
- package/dist/esm/bs-app-switcher.entry.js +1 -1
- package/dist/esm/bs-attachment-list.entry.js +2 -2
- package/dist/esm/bs-attachment.entry.js +2 -2
- package/dist/esm/bs-avatar.entry.js +3 -10
- package/dist/esm/bs-badge.entry.js +2 -2
- package/dist/esm/bs-breadcrumb-overflow.entry.js +1 -1
- package/dist/esm/bs-breadcrumb.entry.js +3 -3
- package/dist/esm/bs-breadcrumbs.entry.js +10 -2
- package/dist/esm/bs-button-skeleton.entry.js +2 -2
- package/dist/esm/bs-button_2.entry.js +17 -4
- package/dist/esm/bs-card.entry.js +44 -3
- package/dist/esm/bs-carousel.entry.js +1 -1
- package/dist/esm/bs-chatbot-feedback.entry.js +3 -7
- package/dist/esm/bs-chatbot-header.entry.js +3 -7
- package/dist/esm/bs-chatbot-response-action.entry.js +2 -2
- package/dist/esm/bs-chatbot-sources-drawer.entry.js +2 -2
- package/dist/esm/bs-chatbot-suggestion-button.entry.js +3 -3
- package/dist/esm/bs-checkbox-group.entry.js +78 -0
- package/dist/esm/bs-checkbox-skeleton.entry.js +2 -2
- package/dist/esm/bs-checkbox.entry.js +1 -1
- package/dist/esm/bs-chip-filter.entry.js +2 -2
- package/dist/esm/bs-chip-informative.entry.js +2 -2
- package/dist/esm/bs-chip-input.entry.js +2 -2
- package/dist/esm/bs-citation-preview.entry.js +2 -2
- package/dist/esm/bs-code-block.entry.js +73 -0
- package/dist/esm/bs-command-palette.entry.js +2 -2
- package/dist/esm/bs-compact-menu-block_2.entry.js +5 -5
- package/dist/esm/bs-company-switcher.entry.js +3 -3
- package/dist/esm/bs-composer-status-banner.entry.js +2 -2
- package/dist/esm/bs-composer.entry.js +6 -4
- package/dist/esm/bs-container.entry.js +2 -2
- package/dist/esm/bs-cookie-consent.entry.js +1 -1
- package/dist/esm/bs-data-table.entry.js +8 -5
- package/dist/esm/bs-datepicker.entry.js +2 -2
- package/dist/esm/bs-description-item.entry.js +21 -0
- package/dist/esm/bs-description-list.entry.js +38 -0
- package/dist/esm/bs-dialog.entry.js +1 -1
- package/dist/esm/bs-divider.entry.js +2 -2
- package/dist/esm/bs-dropdown.entry.js +94 -0
- package/dist/esm/bs-empty-state.entry.js +7 -3
- package/dist/esm/bs-error-page.entry.js +2 -2
- package/dist/esm/bs-file-upload-item.entry.js +2 -2
- package/dist/esm/bs-file-upload.entry.js +2 -2
- package/dist/esm/bs-global-search.entry.js +3 -3
- package/dist/esm/bs-grid.entry.js +3 -3
- package/dist/esm/bs-heading.entry.js +26 -0
- package/dist/esm/bs-icon-button.entry.js +10 -3
- package/dist/esm/bs-icon-tile.entry.js +3 -3
- package/dist/esm/bs-icon.entry.js +33 -0
- package/dist/esm/bs-inline-tab.entry.js +3 -3
- package/dist/esm/bs-input_4.entry.js +789 -0
- package/dist/esm/bs-key-caps.entry.js +2 -2
- package/dist/esm/bs-key.entry.js +2 -2
- package/dist/esm/bs-keyboard-shortcuts.entry.js +3 -3
- package/dist/esm/bs-link.entry.js +50 -0
- package/dist/esm/bs-list-item.entry.js +66 -0
- package/dist/esm/bs-list.entry.js +9 -3
- package/dist/esm/bs-logo.entry.js +1 -1
- package/dist/esm/bs-mega-menu.entry.js +2 -2
- package/dist/esm/bs-message-list.entry.js +2 -2
- package/dist/esm/bs-message.entry.js +2 -2
- package/dist/esm/bs-navigation-drawer-item.entry.js +26 -5
- package/dist/esm/bs-navigation-drawer.entry.js +4 -4
- package/dist/esm/bs-navigation-header.entry.js +4 -4
- package/dist/esm/bs-onboarding-checklist.entry.js +1 -1
- package/dist/esm/bs-page-header.entry.js +2 -2
- package/dist/esm/bs-pagination.entry.js +2 -2
- package/dist/esm/{bs-list-item_2.entry.js → bs-popover.entry.js} +3 -64
- package/dist/esm/bs-presence.entry.js +2 -2
- package/dist/esm/bs-product-tour.entry.js +1 -1
- package/dist/esm/bs-progress-linear.entry.js +4 -4
- package/dist/esm/bs-progress.entry.js +3 -3
- package/dist/esm/bs-qr-code.entry.js +2 -2
- package/dist/esm/bs-radio-group.entry.js +88 -0
- package/dist/esm/bs-radio.entry.js +6 -2
- package/dist/esm/bs-search-item.entry.js +2 -2
- package/dist/esm/bs-select.entry.js +232 -0
- package/dist/esm/bs-session-timeout.entry.js +2 -2
- package/dist/esm/bs-shortcut-row.entry.js +2 -2
- package/dist/esm/bs-side-panel.entry.js +1 -1
- package/dist/esm/bs-skip-link.entry.js +50 -0
- package/dist/esm/bs-slider.entry.js +3 -3
- package/dist/esm/bs-snackbar.entry.js +3 -3
- package/dist/esm/bs-source-link.entry.js +4 -4
- package/dist/esm/bs-split-pane.entry.js +2 -2
- package/dist/esm/bs-stack.entry.js +2 -2
- package/dist/esm/bs-stat.entry.js +51 -0
- package/dist/esm/bs-stepper-step.entry.js +2 -2
- package/dist/esm/bs-stepper.entry.js +2 -2
- package/dist/esm/bs-switch.entry.js +2 -2
- package/dist/esm/bs-tab_3.entry.js +16 -9
- package/dist/esm/bs-table-of-contents.entry.js +169 -0
- package/dist/esm/bs-tag.entry.js +49 -0
- package/dist/esm/bs-text.entry.js +22 -0
- package/dist/esm/bs-timepicker.entry.js +3 -3
- package/dist/esm/bs-toast.entry.js +2 -2
- package/dist/esm/bs-toggle-button-group.entry.js +106 -0
- package/dist/esm/bs-toggle-button.entry.js +55 -0
- package/dist/esm/bs-toolbar.entry.js +193 -0
- package/dist/esm/bs-tooltip-trigger.entry.js +2 -2
- package/dist/esm/bs-tooltip.entry.js +2 -2
- package/dist/esm/bs-tree-item.entry.js +3 -3
- package/dist/esm/bs-tree.entry.js +2 -2
- package/dist/esm/bs-whats-new.entry.js +1 -1
- package/dist/esm/icon-registry-Vo0zbGRB.js +60 -0
- package/dist/esm/{index-D3SkQJpw.js → index-wz7B473u.js} +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +3 -3
- package/dist/types/components/bs-breadcrumb/bs-breadcrumbs/bs-breadcrumbs.d.ts +9 -0
- package/dist/types/components/bs-button/bs-button/bs-button.d.ts +22 -6
- package/dist/types/components/bs-button/bs-icon-button/bs-icon-button.d.ts +7 -0
- package/dist/types/components/bs-card/bs-card.d.ts +35 -0
- package/dist/types/components/bs-card/bs-card.stories.d.ts +3 -0
- package/dist/types/components/bs-chatbot-suggestion-button/bs-chatbot-suggestion-button.d.ts +3 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.d.ts +48 -0
- package/dist/types/components/bs-checkbox-group/bs-checkbox-group.stories.d.ts +15 -0
- package/dist/types/components/bs-code-block/bs-code-block.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-code-block/bs-code-block.d.ts +68 -0
- package/dist/types/components/bs-code-block/bs-code-block.stories.d.ts +18 -0
- package/dist/types/components/bs-data-table/bs-data-table.d.ts +11 -0
- package/dist/types/components/bs-description-item/bs-description-item.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-description-item/bs-description-item.d.ts +34 -0
- package/dist/types/components/bs-description-list/bs-description-list.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-description-list/bs-description-list.d.ts +33 -0
- package/dist/types/components/bs-description-list/bs-description-list.stories.d.ts +11 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.d.ts +51 -0
- package/dist/types/components/bs-dropdown/bs-dropdown.stories.d.ts +12 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.d.ts +6 -0
- package/dist/types/components/bs-empty-state/bs-empty-state.stories.d.ts +3 -0
- package/dist/types/components/bs-heading/bs-heading.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-heading/bs-heading.d.ts +34 -0
- package/dist/types/components/bs-heading/bs-heading.stories.d.ts +15 -0
- package/dist/types/components/bs-icon/bs-icon.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-icon/bs-icon.d.ts +39 -0
- package/dist/types/components/bs-icon/bs-icon.stories.d.ts +16 -0
- package/dist/types/components/bs-icon/icon-registry.d.ts +16 -0
- package/dist/types/components/bs-input/bs-input.d.ts +83 -12
- package/dist/types/components/bs-input/bs-input.stories.d.ts +3 -1
- package/dist/types/components/bs-link/bs-link.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-link/bs-link.d.ts +48 -0
- package/dist/types/components/bs-link/bs-link.stories.d.ts +19 -0
- package/dist/types/components/bs-list/bs-list.d.ts +6 -0
- package/dist/types/components/bs-list/bs-list.stories.d.ts +4 -0
- package/dist/types/components/bs-list-item/bs-list-item.d.ts +3 -0
- package/dist/types/components/bs-radio/bs-radio.d.ts +4 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.d.ts +57 -0
- package/dist/types/components/bs-radio-group/bs-radio-group.stories.d.ts +16 -0
- package/dist/types/components/bs-select/bs-select.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-select/bs-select.d.ts +85 -0
- package/dist/types/components/bs-select/bs-select.stories.d.ts +19 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.d.ts +40 -0
- package/dist/types/components/bs-skip-link/bs-skip-link.stories.d.ts +10 -0
- package/dist/types/components/bs-stat/bs-stat.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-stat/bs-stat.d.ts +56 -0
- package/dist/types/components/bs-stat/bs-stat.stories.d.ts +16 -0
- package/dist/types/components/bs-tab/bs-inline-tab/bs-inline-tab.stories.d.ts +0 -1
- package/dist/types/components/bs-tab/bs-tabs/bs-tabs.d.ts +5 -3
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.d.ts +96 -0
- package/dist/types/components/bs-table-of-contents/bs-table-of-contents.stories.d.ts +13 -0
- package/dist/types/components/bs-tag/bs-tag.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-tag/bs-tag.d.ts +49 -0
- package/dist/types/components/bs-tag/bs-tag.stories.d.ts +16 -0
- package/dist/types/components/bs-text/bs-text.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-text/bs-text.d.ts +31 -0
- package/dist/types/components/bs-text/bs-text.stories.d.ts +14 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.d.ts +48 -0
- package/dist/types/components/bs-toggle-button/bs-toggle-button.stories.d.ts +13 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.d.ts +42 -0
- package/dist/types/components/bs-toggle-button-group/bs-toggle-button-group.stories.d.ts +13 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.cmp.test.d.ts +1 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.d.ts +88 -0
- package/dist/types/components/bs-toolbar/bs-toolbar.stories.d.ts +13 -0
- package/dist/types/components/ui-shell/bs-navigation-drawer/bs-navigation-drawer-item/bs-navigation-drawer-item.d.ts +11 -1
- package/dist/types/components/ui-shell/bs-navigation-header/bs-navigation-header/bs-navigation-header.stories.d.ts +3 -0
- package/dist/types/components.d.ts +3107 -88
- package/dist/types/index.d.ts +1 -0
- package/dist/types/test/helpers/block-link-navigation.d.ts +8 -0
- package/dist/types/test/helpers/contrast.d.ts +5 -0
- package/package.json +1 -1
- package/reference.d.ts +63 -9
- package/reference.json +668 -15
- package/dist/brandsync-wc/p-08649f52.entry.js +0 -1
- package/dist/brandsync-wc/p-1580c56c.entry.js +0 -1
- package/dist/brandsync-wc/p-171fa239.entry.js +0 -1
- package/dist/brandsync-wc/p-197ac73f.entry.js +0 -1
- package/dist/brandsync-wc/p-270b2cb0.entry.js +0 -1
- package/dist/brandsync-wc/p-28c38959.entry.js +0 -1
- package/dist/brandsync-wc/p-2a967b45.entry.js +0 -1
- package/dist/brandsync-wc/p-2b3d0bd4.entry.js +0 -1
- package/dist/brandsync-wc/p-3627e0c6.entry.js +0 -1
- package/dist/brandsync-wc/p-38a2210a.entry.js +0 -1
- package/dist/brandsync-wc/p-3b212a8a.entry.js +0 -1
- package/dist/brandsync-wc/p-4dfd4715.entry.js +0 -1
- package/dist/brandsync-wc/p-6afacd47.entry.js +0 -1
- package/dist/brandsync-wc/p-6f32a08e.entry.js +0 -1
- package/dist/brandsync-wc/p-D3SkQJpw.js +0 -3
- package/dist/brandsync-wc/p-ab301e9d.entry.js +0 -1
- package/dist/brandsync-wc/p-d15e48eb.entry.js +0 -1
- package/dist/brandsync-wc/p-e776d145.entry.js +0 -1
- package/dist/brandsync-wc/p-eb680cff.entry.js +0 -1
- package/dist/brandsync-wc/p-f4628861.entry.js +0 -1
- package/dist/brandsync-wc/p-f5e6fdf8.entry.js +0 -1
- package/dist/brandsync-wc/p-f93127e1.entry.js +0 -1
- package/dist/cjs/bs-input_3.cjs.entry.js +0 -461
- package/dist/cjs/bs-spinner.cjs.entry.js +0 -24
- package/dist/components/p-B2gx7SZk.js +0 -1
- package/dist/components/p-BHzj13sd.js +0 -1
- package/dist/components/p-BIxcCDgl.js +0 -1
- package/dist/components/p-BfCah-Ij.js +0 -1
- package/dist/components/p-CvSewXZF.js +0 -1
- package/dist/components/p-DsBToIYE.js +0 -1
- package/dist/components/p-EGNLb4cQ.js +0 -1
- package/dist/components/p-Jik5UkAe.js +0 -1
- package/dist/components/p-syO0ipbw.js +0 -1
- package/dist/components/p-up01gvHY.js +0 -1
- package/dist/esm/bs-input_3.entry.js +0 -457
- package/dist/esm/bs-spinner.entry.js +0 -22
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { render, h, describe, it, expect } from "@stencil/vitest";
|
|
2
|
+
import { runAxeCheck, assertShadowParts, assertCssCustomProperties } from "../../test/helpers/conventions";
|
|
3
|
+
import { blockLinkNavigation } from "../../test/helpers/block-link-navigation";
|
|
4
|
+
blockLinkNavigation();
|
|
5
|
+
const tick = (ms = 80) => new Promise(r => setTimeout(r, ms));
|
|
6
|
+
const items = [
|
|
7
|
+
{ label: 'Intro', href: '#toc-intro' },
|
|
8
|
+
{ label: 'Usage', href: '#toc-usage', children: [{ label: 'Props', href: '#toc-props' }] },
|
|
9
|
+
{ label: 'Accessibility', href: '#toc-a11y' },
|
|
10
|
+
];
|
|
11
|
+
const page = (extra = {}) => (h("div", { style: { display: 'flex' } }, h("bs-table-of-contents", { items: items, ...extra }), h("div", { style: { height: '300px', overflow: 'auto' }, id: "toc-scroller" }, ['intro', 'usage', 'props', 'a11y'].map(id => (h("section", { id: `toc-${id}`, style: { height: '400px' } }, h("h2", null, id)))))));
|
|
12
|
+
describe('bs-table-of-contents', () => {
|
|
13
|
+
it('renders a labelled nav with nested lists from items', async () => {
|
|
14
|
+
const { root } = await render(h("bs-table-of-contents", { items: items }));
|
|
15
|
+
const nav = root.shadowRoot.querySelector('nav');
|
|
16
|
+
expect(nav.getAttribute('aria-label')).toBe('On this page');
|
|
17
|
+
expect(root.shadowRoot.querySelectorAll('a')).toHaveLength(4);
|
|
18
|
+
expect(root.shadowRoot.querySelectorAll('ul ul a')).toHaveLength(1);
|
|
19
|
+
expect(root.shadowRoot.querySelector('ul ul a').textContent).toBe('Props');
|
|
20
|
+
assertShadowParts(root.shadowRoot, ['container', 'title', 'list', 'item', 'link']);
|
|
21
|
+
assertCssCustomProperties(root, ['--bs-toc-gap', '--bs-toc-indent', '--bs-toc-sticky-top']);
|
|
22
|
+
});
|
|
23
|
+
it('can hide the title and customise the label', async () => {
|
|
24
|
+
const { root } = await render(h("bs-table-of-contents", { items: items, label: "Contents", hideTitle: true }));
|
|
25
|
+
expect(root.shadowRoot.querySelector('nav').getAttribute('aria-label')).toBe('Contents');
|
|
26
|
+
expect(root.shadowRoot.querySelector('[part="title"]')).toBeNull();
|
|
27
|
+
});
|
|
28
|
+
it('builds entries from slotted anchors, using nesting and data-level', async () => {
|
|
29
|
+
const { root } = await render(h("bs-table-of-contents", null, h("ul", null, h("li", null, h("a", { href: "#toc-intro" }, "Intro"), h("ul", null, h("li", null, h("a", { href: "#toc-usage" }, "Usage")))), h("li", null, h("a", { href: "#toc-a11y" }, "Accessibility"))), h("a", { href: "#toc-props", "data-level": "2" }, "Props")));
|
|
30
|
+
await tick();
|
|
31
|
+
const links = Array.from(root.shadowRoot.querySelectorAll('a')).map(a => a.textContent);
|
|
32
|
+
expect(links).toEqual(['Intro', 'Usage', 'Accessibility', 'Props']);
|
|
33
|
+
expect(root.shadowRoot.querySelectorAll('ul ul a').length).toBe(2);
|
|
34
|
+
});
|
|
35
|
+
it('marks the clicked link as current with aria-current and emits events', async () => {
|
|
36
|
+
const { root } = await render(h("bs-table-of-contents", { items: items, scrollSpy: false }));
|
|
37
|
+
const nav = [];
|
|
38
|
+
const changes = [];
|
|
39
|
+
root.addEventListener('bsNavigate', (e) => {
|
|
40
|
+
nav.push(e.detail.href);
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
});
|
|
43
|
+
root.addEventListener('bsChange', (e) => changes.push(e.detail));
|
|
44
|
+
root.shadowRoot.querySelectorAll('a')[1].click();
|
|
45
|
+
await tick(20);
|
|
46
|
+
expect(nav).toEqual(['#toc-usage']);
|
|
47
|
+
// cancelled navigation does not change current
|
|
48
|
+
expect(changes).toEqual([]);
|
|
49
|
+
});
|
|
50
|
+
it('sets current on an uncancelled click', async () => {
|
|
51
|
+
const { root } = await render(h("bs-table-of-contents", { items: [{ label: 'Intro', href: '#toc-intro' }], scrollSpy: false }));
|
|
52
|
+
const a = root.shadowRoot.querySelector('a');
|
|
53
|
+
a.addEventListener('click', e => e.preventDefault()); // keep the test page where it is
|
|
54
|
+
a.click();
|
|
55
|
+
await tick(20);
|
|
56
|
+
expect(root.shadowRoot.querySelector('a').getAttribute('aria-current')).toBe('location');
|
|
57
|
+
expect(root).toHaveAttribute('current');
|
|
58
|
+
});
|
|
59
|
+
it('reflects a programmatic current value', async () => {
|
|
60
|
+
const { root } = await render(h("bs-table-of-contents", { items: items, current: "#toc-a11y", scrollSpy: false }));
|
|
61
|
+
const current = root.shadowRoot.querySelectorAll('a[aria-current]');
|
|
62
|
+
expect(current).toHaveLength(1);
|
|
63
|
+
expect(current[0].textContent).toBe('Accessibility');
|
|
64
|
+
});
|
|
65
|
+
describe('scroll spy', () => {
|
|
66
|
+
it('follows the section in view', async () => {
|
|
67
|
+
const { root } = await render(page({ rootMargin: '0px 0px -50% 0px' }));
|
|
68
|
+
await tick(200);
|
|
69
|
+
const toc = root.querySelector('bs-table-of-contents');
|
|
70
|
+
const current = () => toc.shadowRoot.querySelector('a[aria-current]')?.textContent;
|
|
71
|
+
expect(current()).toBe('Intro');
|
|
72
|
+
document.getElementById('toc-usage').scrollIntoView();
|
|
73
|
+
await tick(300);
|
|
74
|
+
expect(current()).toBe('Usage');
|
|
75
|
+
});
|
|
76
|
+
it('disconnects the observer on removal', async () => {
|
|
77
|
+
const original = window.IntersectionObserver;
|
|
78
|
+
const instances = [];
|
|
79
|
+
let disconnected = 0;
|
|
80
|
+
window.IntersectionObserver = class extends original {
|
|
81
|
+
constructor(cb, o) {
|
|
82
|
+
super(cb, o);
|
|
83
|
+
instances.push(this);
|
|
84
|
+
}
|
|
85
|
+
disconnect() {
|
|
86
|
+
disconnected++;
|
|
87
|
+
super.disconnect();
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
try {
|
|
91
|
+
const { root } = await render(page());
|
|
92
|
+
await tick(150);
|
|
93
|
+
expect(instances.length).toBeGreaterThan(0);
|
|
94
|
+
const before = disconnected;
|
|
95
|
+
const toc = root.querySelector('bs-table-of-contents');
|
|
96
|
+
const parent = toc.parentElement;
|
|
97
|
+
toc.remove();
|
|
98
|
+
expect(disconnected).toBeGreaterThan(before);
|
|
99
|
+
// Re-attaching creates a fresh observer.
|
|
100
|
+
const count = instances.length;
|
|
101
|
+
parent.prepend(toc);
|
|
102
|
+
await tick(100);
|
|
103
|
+
expect(instances.length).toBeGreaterThan(count);
|
|
104
|
+
}
|
|
105
|
+
finally {
|
|
106
|
+
window.IntersectionObserver = original;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
it('is sticky when asked', async () => {
|
|
111
|
+
const { root } = await render(h("bs-table-of-contents", { items: items, sticky: true }));
|
|
112
|
+
expect(getComputedStyle(root).position).toBe('sticky');
|
|
113
|
+
expect(root).toHaveAttribute('sticky');
|
|
114
|
+
});
|
|
115
|
+
it('has a visible focus style on links', async () => {
|
|
116
|
+
const { root } = await render(h("bs-table-of-contents", { items: items }));
|
|
117
|
+
const a = root.shadowRoot.querySelector('a');
|
|
118
|
+
a.focus();
|
|
119
|
+
expect(root.shadowRoot.activeElement).toBe(a);
|
|
120
|
+
});
|
|
121
|
+
it('has no axe violations', async () => {
|
|
122
|
+
const { root } = await render(h("bs-table-of-contents", { items: items, current: "#toc-usage" }));
|
|
123
|
+
await runAxeCheck(root);
|
|
124
|
+
});
|
|
125
|
+
});
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --bs-toc-gap: Vertical gap between entries. Aliased to --bs-spacing-50.
|
|
3
|
+
* @prop --bs-toc-indent: Extra start padding per nesting level. Aliased to --bs-spacing-200.
|
|
4
|
+
* @prop --bs-toc-link-padding-x: Horizontal padding of a link. Aliased to --bs-spacing-150.
|
|
5
|
+
* @prop --bs-toc-link-padding-y: Vertical padding of a link. Aliased to --bs-spacing-50.
|
|
6
|
+
* @prop --bs-toc-color: Link colour. Aliased to --bs-text-secondary.
|
|
7
|
+
* @prop --bs-toc-color-hover: Link colour on hover. Aliased to --bs-text-default.
|
|
8
|
+
* @prop --bs-toc-color-current: Colour of the current section's link. Aliased to --bs-text-action.
|
|
9
|
+
* @prop --bs-toc-title-color: Title colour. Aliased to --bs-text-default.
|
|
10
|
+
* @prop --bs-toc-font-size: Link font size. Aliased to --bs-font-size-sm.
|
|
11
|
+
* @prop --bs-toc-font-weight-current: Font weight of the current link. Aliased to --bs-font-weight-semibold.
|
|
12
|
+
* @prop --bs-toc-track-color: Colour of the line running along the list. Aliased to --bs-border-default.
|
|
13
|
+
* @prop --bs-toc-indicator-color: Colour of the marker on the current link. Aliased to --bs-border-primary.
|
|
14
|
+
* @prop --bs-toc-focus-ring-color: Focus ring colour. Aliased to --bs-border-neutral-focus.
|
|
15
|
+
* @prop --bs-toc-radius: Corner radius of a link (its focus ring and hover). Aliased to --bs-border-radius-50.
|
|
16
|
+
* @prop --bs-toc-sticky-top: Distance from the top edge when `sticky`. Aliased to --bs-spacing-200.
|
|
17
|
+
*/
|
|
18
|
+
:host {
|
|
19
|
+
display: block;
|
|
20
|
+
|
|
21
|
+
--bs-toc-gap: var(--bs-spacing-50);
|
|
22
|
+
--bs-toc-indent: var(--bs-spacing-200);
|
|
23
|
+
--bs-toc-link-padding-x: var(--bs-spacing-150);
|
|
24
|
+
--bs-toc-link-padding-y: var(--bs-spacing-50);
|
|
25
|
+
--bs-toc-color: var(--bs-text-secondary);
|
|
26
|
+
--bs-toc-color-hover: var(--bs-text-default);
|
|
27
|
+
--bs-toc-color-current: var(--bs-text-action);
|
|
28
|
+
--bs-toc-title-color: var(--bs-text-default);
|
|
29
|
+
--bs-toc-font-size: var(--bs-font-size-sm);
|
|
30
|
+
--bs-toc-font-weight-current: var(--bs-font-weight-semibold);
|
|
31
|
+
--bs-toc-track-color: var(--bs-border-default);
|
|
32
|
+
--bs-toc-indicator-color: var(--bs-border-primary);
|
|
33
|
+
--bs-toc-focus-ring-color: var(--bs-border-neutral-focus);
|
|
34
|
+
--bs-toc-radius: var(--bs-border-radius-50);
|
|
35
|
+
--bs-toc-sticky-top: var(--bs-spacing-200);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
:host([sticky]) {
|
|
39
|
+
position: sticky;
|
|
40
|
+
top: var(--bs-toc-sticky-top);
|
|
41
|
+
align-self: flex-start;
|
|
42
|
+
max-height: calc(100vh - var(--bs-toc-sticky-top) * 2);
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.bs-toc {
|
|
47
|
+
font-family: inherit;
|
|
48
|
+
font-size: var(--bs-toc-font-size);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.bs-toc__title {
|
|
52
|
+
margin: 0 0 var(--bs-spacing-100);
|
|
53
|
+
color: var(--bs-toc-title-color);
|
|
54
|
+
font-size: var(--bs-font-size-md);
|
|
55
|
+
font-weight: var(--bs-font-weight-semibold);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.bs-toc__list {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: var(--bs-toc-gap);
|
|
62
|
+
margin: 0;
|
|
63
|
+
padding: 0;
|
|
64
|
+
list-style: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.bs-toc__list--level-1 {
|
|
68
|
+
border-inline-start: 2px solid var(--bs-toc-track-color);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.bs-toc__list .bs-toc__list {
|
|
72
|
+
margin-block-start: var(--bs-toc-gap);
|
|
73
|
+
padding-inline-start: var(--bs-toc-indent);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.bs-toc__link {
|
|
77
|
+
display: block;
|
|
78
|
+
margin-inline-start: -2px;
|
|
79
|
+
padding: var(--bs-toc-link-padding-y) var(--bs-toc-link-padding-x);
|
|
80
|
+
border-inline-start: 2px solid transparent;
|
|
81
|
+
border-radius: var(--bs-toc-radius);
|
|
82
|
+
color: var(--bs-toc-color);
|
|
83
|
+
text-decoration: none;
|
|
84
|
+
transition: color var(--bs-duration-fast) var(--bs-easing-standard);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/* Nested links sit inside the nested list's indent; the marker still aligns to the level-1 track. */
|
|
88
|
+
.bs-toc__list .bs-toc__list .bs-toc__link {
|
|
89
|
+
margin-inline-start: calc(var(--bs-toc-indent) * -1 - 2px);
|
|
90
|
+
padding-inline-start: calc(var(--bs-toc-indent) + var(--bs-toc-link-padding-x));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.bs-toc__link:hover {
|
|
94
|
+
color: var(--bs-toc-color-hover);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.bs-toc__link[aria-current] {
|
|
98
|
+
border-inline-start-color: var(--bs-toc-indicator-color);
|
|
99
|
+
color: var(--bs-toc-color-current);
|
|
100
|
+
font-weight: var(--bs-toc-font-weight-current);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.bs-toc__link:focus-visible {
|
|
104
|
+
outline: 2px solid var(--bs-toc-focus-ring-color);
|
|
105
|
+
outline-offset: 2px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* The slotted anchors are only read, never shown. */
|
|
109
|
+
slot {
|
|
110
|
+
display: none;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
@media (forced-colors: active) {
|
|
114
|
+
.bs-toc__link[aria-current] { border-inline-start-color: Highlight; color: Highlight; }
|
|
115
|
+
}
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
let tocId = 0;
|
|
3
|
+
/**
|
|
4
|
+
* An "On this page" navigation: a nested list of in-page links with a scroll spy that marks the
|
|
5
|
+
* section currently in view (`aria-current="location"`), optionally sticky beside long content.
|
|
6
|
+
*
|
|
7
|
+
* Give it entries in either of two ways:
|
|
8
|
+
* - **`items` property** (a JS array, `{ label, href, children? }`) -- the data-driven way.
|
|
9
|
+
* - **Slotted anchors** -- `<a href="#intro">Intro</a>`, optionally inside nested `<ul>`/`<li>` or with
|
|
10
|
+
* `data-level="2"` for sub-sections. The component reads them and renders its own styled links (the
|
|
11
|
+
* slotted markup is not displayed; it is the no-JavaScript fallback). Used when `items` is empty.
|
|
12
|
+
*
|
|
13
|
+
* The scroll spy uses an `IntersectionObserver` on the elements the links point at. The current section
|
|
14
|
+
* is the first one (in link order) that intersects the top band of the viewport defined by `rootMargin`;
|
|
15
|
+
* when none does (between two sections) the previous one stays current. Observers are disconnected when
|
|
16
|
+
* the element is removed from the DOM and re-created when it is re-attached.
|
|
17
|
+
*
|
|
18
|
+
* Link targets are looked up by id in the same document (or shadow tree) as the component. Links whose
|
|
19
|
+
* target does not exist are still shown but never become current.
|
|
20
|
+
*
|
|
21
|
+
* ## When to use
|
|
22
|
+
* - Long single-page content (documentation, policies, settings pages) with several headed sections.
|
|
23
|
+
*
|
|
24
|
+
* ## When not to use
|
|
25
|
+
* - Navigating between pages -- use `bs-navigation-drawer` or `bs-breadcrumbs`.
|
|
26
|
+
* - Switching between panels of content that are not all on the page -- use `bs-tabs`.
|
|
27
|
+
*
|
|
28
|
+
* Composition: leaf element (a nav landmark with anchors); no existing `bs-*` component renders links.
|
|
29
|
+
*
|
|
30
|
+
* @slot - Default slot: anchors (`<a href="#id">`) used as entries when `items` is empty. Not displayed.
|
|
31
|
+
* @part container - The `<nav>` landmark.
|
|
32
|
+
* @part title - The visible heading (unless `hideTitle`).
|
|
33
|
+
* @part list - Every `<ul>` (top level and nested).
|
|
34
|
+
* @part item - Every `<li>`.
|
|
35
|
+
* @part link - Every anchor. The current one also matches `[aria-current]`.
|
|
36
|
+
*/
|
|
37
|
+
// Note: CSS Custom Properties (--bs-toc-*) are documented via @prop comments in bs-table-of-contents.css.
|
|
38
|
+
export class BsTableOfContents {
|
|
39
|
+
el;
|
|
40
|
+
/** Entries as a JS array (set as a property, not an attribute). Takes precedence over slotted anchors. */
|
|
41
|
+
items = [];
|
|
42
|
+
/** Accessible name of the `nav` landmark, and the visible title text. */
|
|
43
|
+
label = 'On this page';
|
|
44
|
+
/** Hides the visible title; the landmark keeps its accessible name. */
|
|
45
|
+
hideTitle = false;
|
|
46
|
+
/** The `href` (`#id`) of the current section. Reflected; follows the scroll spy and clicks, and can be
|
|
47
|
+
* set to force a section. */
|
|
48
|
+
current;
|
|
49
|
+
/** Turns the scroll spy on or off. Off: `current` only changes when a link is clicked or it is set. */
|
|
50
|
+
scrollSpy = true;
|
|
51
|
+
/** `rootMargin` of the spy's `IntersectionObserver`: shrinks the viewport to the band in which a
|
|
52
|
+
* section counts as "current". The default is the top 40% of the viewport. Raise the top value (e.g.
|
|
53
|
+
* `-64px 0px -60% 0px`) when a fixed header covers the top of the page. */
|
|
54
|
+
rootMargin = '0px 0px -60% 0px';
|
|
55
|
+
/** Sticks the table of contents to the top of its scroll container (`position: sticky`) so it stays
|
|
56
|
+
* in view beside long content. Offset with `--bs-toc-sticky-top`. */
|
|
57
|
+
sticky = false;
|
|
58
|
+
/** Fires when a link is clicked, before navigation. **Cancelable**: `preventDefault()` stops the
|
|
59
|
+
* browser jump so you can scroll/route yourself. Detail is `{ href }`. Modified clicks are ignored. */
|
|
60
|
+
bsNavigate;
|
|
61
|
+
/** Fires when the current section changes (scroll spy or click), with its `href`. */
|
|
62
|
+
bsChange;
|
|
63
|
+
slotted = [];
|
|
64
|
+
titleId = `bs-toc-title-${++tocId}`;
|
|
65
|
+
observer;
|
|
66
|
+
visible = new Set();
|
|
67
|
+
order = [];
|
|
68
|
+
connectedCallback() {
|
|
69
|
+
if (this.el.shadowRoot?.querySelector('nav'))
|
|
70
|
+
this.setupSpy();
|
|
71
|
+
}
|
|
72
|
+
componentWillLoad() {
|
|
73
|
+
this.readSlotted();
|
|
74
|
+
}
|
|
75
|
+
componentDidLoad() {
|
|
76
|
+
this.setupSpy();
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
this.teardownSpy();
|
|
80
|
+
}
|
|
81
|
+
onSpyConfigChange() {
|
|
82
|
+
// Wait for the new list to render so the targets are known.
|
|
83
|
+
requestAnimationFrame(() => this.setupSpy());
|
|
84
|
+
}
|
|
85
|
+
tree() {
|
|
86
|
+
if (this.items && this.items.length) {
|
|
87
|
+
const conv = (i) => ({ label: i.label, href: i.href, children: (i.children ?? []).map(conv) });
|
|
88
|
+
return this.items.map(conv);
|
|
89
|
+
}
|
|
90
|
+
return this.slotted;
|
|
91
|
+
}
|
|
92
|
+
flat(nodes = this.tree()) {
|
|
93
|
+
return nodes.flatMap(n => [n, ...this.flat(n.children)]);
|
|
94
|
+
}
|
|
95
|
+
readSlotted = () => {
|
|
96
|
+
const anchors = Array.from(this.el.querySelectorAll('a[href]'));
|
|
97
|
+
const root = [];
|
|
98
|
+
const stack = [];
|
|
99
|
+
anchors.forEach(a => {
|
|
100
|
+
const explicit = parseInt(a.dataset.level ?? '', 10);
|
|
101
|
+
let depth = 0;
|
|
102
|
+
for (let p = a.parentElement; p && p !== this.el; p = p.parentElement)
|
|
103
|
+
if (p.tagName === 'UL' || p.tagName === 'OL')
|
|
104
|
+
depth++;
|
|
105
|
+
const level = Number.isFinite(explicit) ? explicit : Math.max(depth, 1);
|
|
106
|
+
const node = { label: (a.textContent ?? '').trim(), href: a.getAttribute('href') ?? '', children: [] };
|
|
107
|
+
while (stack.length && stack[stack.length - 1].level >= level)
|
|
108
|
+
stack.pop();
|
|
109
|
+
if (stack.length)
|
|
110
|
+
stack[stack.length - 1].node.children.push(node);
|
|
111
|
+
else
|
|
112
|
+
root.push(node);
|
|
113
|
+
stack.push({ level, node });
|
|
114
|
+
});
|
|
115
|
+
this.slotted = root;
|
|
116
|
+
requestAnimationFrame(() => this.setupSpy());
|
|
117
|
+
};
|
|
118
|
+
targetOf(href) {
|
|
119
|
+
if (!href || !href.startsWith('#') || href.length < 2)
|
|
120
|
+
return null;
|
|
121
|
+
const id = decodeURIComponent(href.slice(1));
|
|
122
|
+
const root = this.el.getRootNode();
|
|
123
|
+
return (root.getElementById?.(id) ?? document.getElementById(id));
|
|
124
|
+
}
|
|
125
|
+
teardownSpy() {
|
|
126
|
+
this.observer?.disconnect();
|
|
127
|
+
this.observer = undefined;
|
|
128
|
+
this.visible.clear();
|
|
129
|
+
}
|
|
130
|
+
setupSpy() {
|
|
131
|
+
this.teardownSpy();
|
|
132
|
+
if (!this.scrollSpy || typeof IntersectionObserver === 'undefined' || !this.el.isConnected)
|
|
133
|
+
return;
|
|
134
|
+
const targets = [];
|
|
135
|
+
this.flat().forEach(n => {
|
|
136
|
+
const t = this.targetOf(n.href);
|
|
137
|
+
if (t)
|
|
138
|
+
targets.push([n.href, t]);
|
|
139
|
+
});
|
|
140
|
+
if (!targets.length)
|
|
141
|
+
return;
|
|
142
|
+
this.order = targets.map(([href]) => href);
|
|
143
|
+
const byEl = new Map(targets.map(([href, t]) => [t, href]));
|
|
144
|
+
this.observer = new IntersectionObserver(entries => {
|
|
145
|
+
entries.forEach(e => {
|
|
146
|
+
const href = byEl.get(e.target);
|
|
147
|
+
if (!href)
|
|
148
|
+
return;
|
|
149
|
+
if (e.isIntersecting)
|
|
150
|
+
this.visible.add(href);
|
|
151
|
+
else
|
|
152
|
+
this.visible.delete(href);
|
|
153
|
+
});
|
|
154
|
+
const first = this.order.find(h => this.visible.has(h));
|
|
155
|
+
if (first && first !== this.current)
|
|
156
|
+
this.setCurrent(first);
|
|
157
|
+
}, { rootMargin: this.rootMargin, threshold: 0 });
|
|
158
|
+
targets.forEach(([, t]) => this.observer.observe(t));
|
|
159
|
+
}
|
|
160
|
+
setCurrent(href) {
|
|
161
|
+
this.current = href;
|
|
162
|
+
this.bsChange.emit(href);
|
|
163
|
+
}
|
|
164
|
+
onLinkClick = (ev, href) => {
|
|
165
|
+
if (ev.defaultPrevented || ev.button !== 0 || ev.metaKey || ev.ctrlKey || ev.shiftKey || ev.altKey)
|
|
166
|
+
return;
|
|
167
|
+
const go = this.bsNavigate.emit({ href });
|
|
168
|
+
if (go.defaultPrevented) {
|
|
169
|
+
ev.preventDefault();
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (href !== this.current)
|
|
173
|
+
this.setCurrent(href);
|
|
174
|
+
};
|
|
175
|
+
renderList(nodes, level) {
|
|
176
|
+
return (h("ul", { part: "list", class: `bs-toc__list bs-toc__list--level-${level}` }, nodes.map(n => (h("li", { part: "item", class: "bs-toc__item" }, h("a", { part: "link", class: "bs-toc__link", href: n.href, "aria-current": n.href === this.current ? 'location' : undefined, onClick: (ev) => this.onLinkClick(ev, n.href) }, n.label), n.children.length > 0 && this.renderList(n.children, level + 1))))));
|
|
177
|
+
}
|
|
178
|
+
render() {
|
|
179
|
+
const nodes = this.tree();
|
|
180
|
+
return (h("nav", { key: '76e2a4abce943d0dd8e567c7ab2beef7b0d5b1c4', part: "container", class: "bs-toc", "aria-label": this.label }, !this.hideTitle && (h("p", { key: 'ba45bce72e66d2b8ccb1bcd3960c0af0f3fc3717', part: "title", id: this.titleId, class: "bs-toc__title" }, this.label)), nodes.length > 0 && this.renderList(nodes, 1), h("slot", { key: '8c1b4c8cb93c35b43cd8bf91d1473d9fe5311aa9', onSlotchange: this.readSlotted })));
|
|
181
|
+
}
|
|
182
|
+
static get is() { return "bs-table-of-contents"; }
|
|
183
|
+
static get encapsulation() { return "shadow"; }
|
|
184
|
+
static get originalStyleUrls() {
|
|
185
|
+
return {
|
|
186
|
+
"$": ["bs-table-of-contents.css"]
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
static get styleUrls() {
|
|
190
|
+
return {
|
|
191
|
+
"$": ["bs-table-of-contents.css"]
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
static get properties() {
|
|
195
|
+
return {
|
|
196
|
+
"items": {
|
|
197
|
+
"type": "unknown",
|
|
198
|
+
"mutable": false,
|
|
199
|
+
"complexType": {
|
|
200
|
+
"original": "BsTocItem[]",
|
|
201
|
+
"resolved": "BsTocItem[]",
|
|
202
|
+
"references": {
|
|
203
|
+
"BsTocItem": {
|
|
204
|
+
"location": "local",
|
|
205
|
+
"path": "/home/runner/work/eg-brandsync-storybook/eg-brandsync-storybook/packages/wc/src/components/bs-table-of-contents/bs-table-of-contents.tsx",
|
|
206
|
+
"id": "src/components/bs-table-of-contents/bs-table-of-contents.tsx::BsTocItem"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
"required": false,
|
|
211
|
+
"optional": false,
|
|
212
|
+
"docs": {
|
|
213
|
+
"tags": [],
|
|
214
|
+
"text": "Entries as a JS array (set as a property, not an attribute). Takes precedence over slotted anchors."
|
|
215
|
+
},
|
|
216
|
+
"getter": false,
|
|
217
|
+
"setter": false,
|
|
218
|
+
"defaultValue": "[]"
|
|
219
|
+
},
|
|
220
|
+
"label": {
|
|
221
|
+
"type": "string",
|
|
222
|
+
"mutable": false,
|
|
223
|
+
"complexType": {
|
|
224
|
+
"original": "string",
|
|
225
|
+
"resolved": "string",
|
|
226
|
+
"references": {}
|
|
227
|
+
},
|
|
228
|
+
"required": false,
|
|
229
|
+
"optional": false,
|
|
230
|
+
"docs": {
|
|
231
|
+
"tags": [],
|
|
232
|
+
"text": "Accessible name of the `nav` landmark, and the visible title text."
|
|
233
|
+
},
|
|
234
|
+
"getter": false,
|
|
235
|
+
"setter": false,
|
|
236
|
+
"reflect": false,
|
|
237
|
+
"attribute": "label",
|
|
238
|
+
"defaultValue": "'On this page'"
|
|
239
|
+
},
|
|
240
|
+
"hideTitle": {
|
|
241
|
+
"type": "boolean",
|
|
242
|
+
"mutable": false,
|
|
243
|
+
"complexType": {
|
|
244
|
+
"original": "boolean",
|
|
245
|
+
"resolved": "boolean",
|
|
246
|
+
"references": {}
|
|
247
|
+
},
|
|
248
|
+
"required": false,
|
|
249
|
+
"optional": false,
|
|
250
|
+
"docs": {
|
|
251
|
+
"tags": [],
|
|
252
|
+
"text": "Hides the visible title; the landmark keeps its accessible name."
|
|
253
|
+
},
|
|
254
|
+
"getter": false,
|
|
255
|
+
"setter": false,
|
|
256
|
+
"reflect": false,
|
|
257
|
+
"attribute": "hide-title",
|
|
258
|
+
"defaultValue": "false"
|
|
259
|
+
},
|
|
260
|
+
"current": {
|
|
261
|
+
"type": "string",
|
|
262
|
+
"mutable": true,
|
|
263
|
+
"complexType": {
|
|
264
|
+
"original": "string",
|
|
265
|
+
"resolved": "string",
|
|
266
|
+
"references": {}
|
|
267
|
+
},
|
|
268
|
+
"required": false,
|
|
269
|
+
"optional": true,
|
|
270
|
+
"docs": {
|
|
271
|
+
"tags": [],
|
|
272
|
+
"text": "The `href` (`#id`) of the current section. Reflected; follows the scroll spy and clicks, and can be\nset to force a section."
|
|
273
|
+
},
|
|
274
|
+
"getter": false,
|
|
275
|
+
"setter": false,
|
|
276
|
+
"reflect": true,
|
|
277
|
+
"attribute": "current"
|
|
278
|
+
},
|
|
279
|
+
"scrollSpy": {
|
|
280
|
+
"type": "boolean",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "boolean",
|
|
284
|
+
"resolved": "boolean",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [],
|
|
291
|
+
"text": "Turns the scroll spy on or off. Off: `current` only changes when a link is clicked or it is set."
|
|
292
|
+
},
|
|
293
|
+
"getter": false,
|
|
294
|
+
"setter": false,
|
|
295
|
+
"reflect": false,
|
|
296
|
+
"attribute": "scroll-spy",
|
|
297
|
+
"defaultValue": "true"
|
|
298
|
+
},
|
|
299
|
+
"rootMargin": {
|
|
300
|
+
"type": "string",
|
|
301
|
+
"mutable": false,
|
|
302
|
+
"complexType": {
|
|
303
|
+
"original": "string",
|
|
304
|
+
"resolved": "string",
|
|
305
|
+
"references": {}
|
|
306
|
+
},
|
|
307
|
+
"required": false,
|
|
308
|
+
"optional": false,
|
|
309
|
+
"docs": {
|
|
310
|
+
"tags": [],
|
|
311
|
+
"text": "`rootMargin` of the spy's `IntersectionObserver`: shrinks the viewport to the band in which a\nsection counts as \"current\". The default is the top 40% of the viewport. Raise the top value (e.g.\n`-64px 0px -60% 0px`) when a fixed header covers the top of the page."
|
|
312
|
+
},
|
|
313
|
+
"getter": false,
|
|
314
|
+
"setter": false,
|
|
315
|
+
"reflect": false,
|
|
316
|
+
"attribute": "root-margin",
|
|
317
|
+
"defaultValue": "'0px 0px -60% 0px'"
|
|
318
|
+
},
|
|
319
|
+
"sticky": {
|
|
320
|
+
"type": "boolean",
|
|
321
|
+
"mutable": false,
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "boolean",
|
|
324
|
+
"resolved": "boolean",
|
|
325
|
+
"references": {}
|
|
326
|
+
},
|
|
327
|
+
"required": false,
|
|
328
|
+
"optional": false,
|
|
329
|
+
"docs": {
|
|
330
|
+
"tags": [],
|
|
331
|
+
"text": "Sticks the table of contents to the top of its scroll container (`position: sticky`) so it stays\nin view beside long content. Offset with `--bs-toc-sticky-top`."
|
|
332
|
+
},
|
|
333
|
+
"getter": false,
|
|
334
|
+
"setter": false,
|
|
335
|
+
"reflect": true,
|
|
336
|
+
"attribute": "sticky",
|
|
337
|
+
"defaultValue": "false"
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
static get states() {
|
|
342
|
+
return {
|
|
343
|
+
"slotted": {}
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
static get events() {
|
|
347
|
+
return [{
|
|
348
|
+
"method": "bsNavigate",
|
|
349
|
+
"name": "bsNavigate",
|
|
350
|
+
"bubbles": true,
|
|
351
|
+
"cancelable": true,
|
|
352
|
+
"composed": true,
|
|
353
|
+
"docs": {
|
|
354
|
+
"tags": [],
|
|
355
|
+
"text": "Fires when a link is clicked, before navigation. **Cancelable**: `preventDefault()` stops the\nbrowser jump so you can scroll/route yourself. Detail is `{ href }`. Modified clicks are ignored."
|
|
356
|
+
},
|
|
357
|
+
"complexType": {
|
|
358
|
+
"original": "{ href: string }",
|
|
359
|
+
"resolved": "{ href: string; }",
|
|
360
|
+
"references": {}
|
|
361
|
+
}
|
|
362
|
+
}, {
|
|
363
|
+
"method": "bsChange",
|
|
364
|
+
"name": "bsChange",
|
|
365
|
+
"bubbles": true,
|
|
366
|
+
"cancelable": true,
|
|
367
|
+
"composed": true,
|
|
368
|
+
"docs": {
|
|
369
|
+
"tags": [],
|
|
370
|
+
"text": "Fires when the current section changes (scroll spy or click), with its `href`."
|
|
371
|
+
},
|
|
372
|
+
"complexType": {
|
|
373
|
+
"original": "string",
|
|
374
|
+
"resolved": "string",
|
|
375
|
+
"references": {}
|
|
376
|
+
}
|
|
377
|
+
}];
|
|
378
|
+
}
|
|
379
|
+
static get elementRef() { return "el"; }
|
|
380
|
+
static get watchers() {
|
|
381
|
+
return [{
|
|
382
|
+
"propName": "items",
|
|
383
|
+
"methodName": "onSpyConfigChange"
|
|
384
|
+
}, {
|
|
385
|
+
"propName": "scrollSpy",
|
|
386
|
+
"methodName": "onSpyConfigChange"
|
|
387
|
+
}, {
|
|
388
|
+
"propName": "rootMargin",
|
|
389
|
+
"methodName": "onSpyConfigChange"
|
|
390
|
+
}];
|
|
391
|
+
}
|
|
392
|
+
}
|